{"id":46026,"date":"2025-11-04T15:14:46","date_gmt":"2025-11-04T15:14:46","guid":{"rendered":"https:\/\/www.postcardteas.com\/site\/?page_id=46026"},"modified":"2025-11-04T15:46:01","modified_gmt":"2025-11-04T15:46:01","slug":"mailing-list","status":"publish","type":"page","link":"https:\/\/www.postcardteas.com\/site\/mailing-list\/","title":{"rendered":"Mailing List"},"content":{"rendered":"<div id=\"mc_embed_shell\">\n<style type=\"text\/css\">\n        #mc_embed_signup{font:14px Garamond,Garamond,serif; width: px;}<br \/>        \/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.<br \/>           We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. *\/<br \/><\/style>\n<style type=\"text\/css\">\n        #mc-embedded-subscribe-form input[type=checkbox]{display: inline; width: auto;margin-right: 10px;}<br \/>#mergeRow-gdpr {margin-top: 20px;}<br \/>#mergeRow-gdpr fieldset label {font-weight: normal;}<br \/>#mc-embedded-subscribe-form .mc_fieldset{border:none;min-height: 0px;padding-bottom:0px;}<br \/><\/style>\n<div id=\"mc_embed_signup\">\n<form id=\"mc-embedded-subscribe-form\" class=\"validate\" action=\"https:\/\/postcardteas.us7.list-manage.com\/subscribe\/post?u=7c942cbeed0c643dc08c59bc1&amp;id=424ca24c28&amp;f_id=001347e4f0\" method=\"post\" name=\"mc-embedded-subscribe-form\" target=\"_blank\">\n<div id=\"mc_embed_signup_scroll\">\n<h2>Subscribe<\/h2>\n<div class=\"indicates-required\"><span class=\"asterisk\">*<\/span> indicates required<\/div>\n<div class=\"mc-field-group\"><label for=\"mce-EMAIL\">Email Address <span class=\"asterisk\">*<\/span><\/label><input id=\"mce-EMAIL\" class=\"required email\" name=\"EMAIL\" required=\"\" type=\"email\" value=\"\" \/><\/div>\n<div id=\"mergeRow-gdpr\" class=\"mergeRow gdpr-mergeRow content__gdprBlock mc-field-group\">\n<div class=\"content__gdpr\">\n<p>Postcard Teas will use the information you provide on this form to be in touch with you and to provide updates and marketing.<\/p>\n<p>You can change your mind at any time by clicking the unsubscribe link in the footer of any email you receive from us, or by contacting us at info@postcardteas.com. We will treat your information with respect. For more information about our privacy practices please visit our website. By clicking below, you agree that we may process your information in accordance with these terms.<\/p>\n<\/div>\n<div class=\"content__gdprLegal\">\n<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\">Learn more<\/a> about Mailchimp&#8217;s privacy practices.<\/p>\n<\/div>\n<\/div>\n<div id=\"mce-responses\" class=\"clear\">\n<div id=\"mce-error-response\" class=\"response\" style=\"display: none;\"><\/div>\n<div id=\"mce-success-response\" class=\"response\" style=\"display: none;\"><\/div>\n<\/div>\n<div style=\"position: absolute; left: -5000px;\" aria-hidden=\"true\"><input tabindex=\"-1\" name=\"b_7c942cbeed0c643dc08c59bc1_424ca24c28\" type=\"text\" value=\"\" \/><\/div>\n<div class=\"clear\"><input id=\"mc-embedded-subscribe\" class=\"button\" name=\"subscribe\" type=\"submit\" value=\"Subscribe\" \/><\/div>\n<\/div>\n<\/form>\n<\/div>\n<p><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[3]='MMERGE3';ftypes[3]='address';}(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: 'GB',\n      programs: [],\n      smsProgramDataCountryNames: []\n    };<\/p>\n<p>    function getCountryUnicodeFlag(countryCode) {\n       return countryCode.toUpperCase().replace(\/.\/g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397))\n    };<\/p>\n<p>    \/\/ 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;') .replace(\/>\/g, '&gt;')\n        .replace(\/\"\/g, '&quot;')\n        .replace(\/'\/g, '&#x27;')\n        .replace(\/\\\/\/g, '&#x2F;');\n    }<\/p>\n<p>    \/\/ 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    }<\/p>\n<p>    const getBrowserLanguage = () => {\n      if (!window?.navigator?.language?.split('-')[1]) {\n        return window?.navigator?.language?.toUpperCase();\n      }\n      return window?.navigator?.language?.split('-')[1];\n    };<\/p>\n<p>    function getDefaultCountryProgram(defaultCountryCode, smsProgramData) {\n      if (!smsProgramData || smsProgramData.length === 0) {\n        return null;\n      }<\/p>\n<p>      const browserLanguage = getBrowserLanguage();<\/p>\n<p>      if (browserLanguage) {\n        const foundProgram = smsProgramData.find(\n          (program) => program?.countryCode === browserLanguage,\n        );\n        if (foundProgram) {\n          return foundProgram;\n        }\n      }<\/p>\n<p>      if (defaultCountryCode) {\n        const foundProgram = smsProgramData.find(\n          (program) => program?.countryCode === defaultCountryCode,\n        );\n        if (foundProgram) {\n          return foundProgram;\n        }\n      }<\/p>\n<p>      return smsProgramData[0];\n    }<\/p>\n<p>    function updateSmsLegalText(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }<\/p>\n<p>      const programs = window?.MC?.smsPhoneData?.programs;\n      if (!programs || !Array.isArray(programs)) {\n        return;\n      }<\/p>\n<p>      const program = programs.find(program => program?.countryCode === countryCode);\n      if (!program || !program.requiredTemplate) {\n        return;\n      }<\/p>\n<p>      const legalTextElement = document.querySelector('#legal-text-' + fieldName);\n      if (!legalTextElement) {\n        return;\n      }<\/p>\n<p>      \/\/ Remove HTML tags and clean up the text\n      const divRegex = new RegExp('<\/?[div][^>]*>', 'gi');\n      const fullAnchorRegex = new RegExp('<a.*?<\/a>', 'g');\n      const anchorRegex = new RegExp('<a href=\"(.*?)\" target=\"(.*?)\">(.*?)<\/a>');<\/p>\n<p>      const requiredLegalText = program.requiredTemplate\n        .replace(divRegex, '')\n        .replace(fullAnchorRegex, '')\n        .slice(0, -1);<\/p>\n<p>      const anchorMatches = program.requiredTemplate.match(anchorRegex);<\/p>\n<p>      if (anchorMatches && anchorMatches.length >= 4) {\n        \/\/ Create link element safely using DOM methods instead of innerHTML\n        const linkElement = document.createElement('a');\n        linkElement.href = sanitizeUrl(anchorMatches[1]);\n        linkElement.target = sanitizeHtml(anchorMatches[2]);\n        linkElement.textContent = sanitizeHtml(anchorMatches[3]);<\/p>\n<p>        legalTextElement.textContent = requiredLegalText + ' ';\n        legalTextElement.appendChild(linkElement);\n        legalTextElement.appendChild(document.createTextNode('.'));\n      } else {\n        legalTextElement.textContent = requiredLegalText + '.';\n      }\n    }<\/p>\n<p>    function generateDropdownOptions(smsProgramData) {\n      if (!smsProgramData || smsProgramData.length === 0) {\n        return '';\n      }<\/p>\n<p>      return smsProgramData.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    }<\/p>\n<p>    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      const 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:\n        'Includere il prefisso internazionale IT +39 prima del numero di telefono',\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      const 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      \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\":\"Email Address\",\"helper_text\":\"\",\"merge_id\":0,\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Email Address\",\"field_type\":\"merge\",\"enabled\":true,\"order\":0},\"MMERGE3\":{\"name\":\"MMERGE3\",\"label\":\"Untitled\",\"helper_text\":\"\",\"type\":\"address\",\"required\":false,\"audience_field_name\":\"Untitled\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":3,\"countries\":{\"2\":\"Albania\",\"3\":\"Algeria\",\"4\":\"Andorra\",\"5\":\"Angola\",\"6\":\"Argentina\",\"7\":\"Armenia\",\"8\":\"Australia\",\"9\":\"Austria\",\"10\":\"Azerbaijan\",\"11\":\"Bahamas\",\"12\":\"Bahrain\",\"13\":\"Bangladesh\",\"14\":\"Barbados\",\"15\":\"Belarus\",\"16\":\"Belgium\",\"17\":\"Belize\",\"18\":\"Benin\",\"19\":\"Bermuda\",\"20\":\"Bhutan\",\"21\":\"Bolivia\",\"22\":\"Bosnia and Herzegovina\",\"23\":\"Botswana\",\"24\":\"Brazil\",\"25\":\"Bulgaria\",\"26\":\"Burkina Faso\",\"27\":\"Burundi\",\"28\":\"Cambodia\",\"29\":\"Cameroon\",\"30\":\"Canada\",\"31\":\"Cape Verde\",\"32\":\"Cayman Islands\",\"33\":\"Central African Republic\",\"34\":\"Chad\",\"35\":\"Chile\",\"36\":\"China\",\"37\":\"Colombia\",\"38\":\"Congo\",\"40\":\"Croatia\",\"41\":\"Cyprus\",\"42\":\"Czech Republic\",\"43\":\"Denmark\",\"44\":\"Djibouti\",\"45\":\"Ecuador\",\"46\":\"Egypt\",\"47\":\"El Salvador\",\"48\":\"Equatorial Guinea\",\"49\":\"Eritrea\",\"50\":\"Estonia\",\"51\":\"Ethiopia\",\"52\":\"Fiji\",\"53\":\"Finland\",\"54\":\"France\",\"56\":\"Gabon\",\"57\":\"Gambia\",\"58\":\"Georgia\",\"59\":\"Germany\",\"60\":\"Ghana\",\"61\":\"Greece\",\"62\":\"Guam\",\"63\":\"Guinea\",\"64\":\"Guinea-Bissau\",\"65\":\"Guyana\",\"66\":\"Honduras\",\"67\":\"Hong Kong\",\"68\":\"Hungary\",\"69\":\"Iceland\",\"70\":\"India\",\"71\":\"Indonesia\",\"74\":\"Ireland\",\"75\":\"Israel\",\"76\":\"Italy\",\"78\":\"Japan\",\"79\":\"Jordan\",\"80\":\"Kazakhstan\",\"81\":\"Kenya\",\"82\":\"Kuwait\",\"83\":\"Kyrgyzstan\",\"84\":\"Lao People's Democratic Republic\",\"85\":\"Latvia\",\"86\":\"Lebanon\",\"87\":\"Lesotho\",\"88\":\"Liberia\",\"90\":\"Liechtenstein\",\"91\":\"Lithuania\",\"92\":\"Luxembourg\",\"93\":\"Macedonia\",\"94\":\"Madagascar\",\"95\":\"Malawi\",\"96\":\"Malaysia\",\"97\":\"Maldives\",\"98\":\"Mali\",\"99\":\"Malta\",\"100\":\"Mauritania\",\"101\":\"Mexico\",\"102\":\"Moldova\",\"103\":\"Monaco\",\"104\":\"Mongolia\",\"105\":\"Morocco\",\"106\":\"Mozambique\",\"107\":\"Namibia\",\"108\":\"Nepal\",\"109\":\"Netherlands\",\"110\":\"Netherlands Antilles\",\"111\":\"New Zealand\",\"112\":\"Nicaragua\",\"113\":\"Niger\",\"114\":\"Nigeria\",\"116\":\"Norway\",\"117\":\"Oman\",\"118\":\"Pakistan\",\"119\":\"Panama\",\"120\":\"Paraguay\",\"121\":\"Peru\",\"122\":\"Philippines\",\"123\":\"Poland\",\"124\":\"Portugal\",\"126\":\"Qatar\",\"127\":\"Reunion\",\"128\":\"Romania\",\"129\":\"Russia\",\"130\":\"Rwanda\",\"132\":\"Samoa (Independent)\",\"133\":\"Saudi Arabia\",\"134\":\"Senegal\",\"135\":\"Seychelles\",\"136\":\"Sierra Leone\",\"137\":\"Singapore\",\"138\":\"Slovakia\",\"139\":\"Slovenia\",\"140\":\"Somalia\",\"141\":\"South Africa\",\"142\":\"South Korea\",\"143\":\"Spain\",\"144\":\"Sri Lanka\",\"146\":\"Suriname\",\"147\":\"Swaziland\",\"148\":\"Sweden\",\"149\":\"Switzerland\",\"152\":\"Taiwan\",\"153\":\"Tanzania\",\"154\":\"Thailand\",\"155\":\"Togo\",\"156\":\"Tunisia\",\"157\":\"Turkiye\",\"158\":\"Turkmenistan\",\"159\":\"Uganda\",\"161\":\"Ukraine\",\"162\":\"United Arab Emirates\",\"163\":\"Uruguay\",\"164\":\"USA\",\"165\":\"Uzbekistan\",\"166\":\"Vatican City State (Holy See)\",\"167\":\"Venezuela\",\"168\":\"Vietnam\",\"169\":\"Virgin Islands (British)\",\"170\":\"Yemen\",\"173\":\"Zambia\",\"174\":\"Zimbabwe\",\"175\":\"Antigua And Barbuda\",\"176\":\"Anguilla\",\"178\":\"American Samoa\",\"179\":\"Aruba\",\"180\":\"Brunei Darussalam\",\"181\":\"Bouvet Island\",\"183\":\"Cook Islands\",\"185\":\"Christmas Island\",\"187\":\"Dominican Republic\",\"188\":\"Western Sahara\",\"189\":\"Falkland Islands\",\"191\":\"Faroe Islands\",\"192\":\"Grenada\",\"193\":\"French Guiana\",\"194\":\"Gibraltar\",\"195\":\"Greenland\",\"196\":\"Guadeloupe\",\"198\":\"Guatemala\",\"200\":\"Haiti\",\"202\":\"Jamaica\",\"203\":\"Kiribati\",\"204\":\"Comoros\",\"205\":\"Saint Kitts and Nevis\",\"206\":\"Saint Lucia\",\"207\":\"Marshall Islands\",\"208\":\"Macau\",\"210\":\"Martinique\",\"212\":\"Mauritius\",\"213\":\"New Caledonia\",\"214\":\"Norfolk Island\",\"215\":\"Nauru\",\"217\":\"Niue\",\"219\":\"Papua New Guinea\",\"221\":\"Pitcairn\",\"222\":\"Palau\",\"223\":\"Solomon Islands\",\"225\":\"Svalbard and Jan Mayen Islands\",\"227\":\"San Marino\",\"232\":\"Tonga\",\"233\":\"Timor-Leste\",\"234\":\"Trinidad and Tobago\",\"235\":\"Tuvalu\",\"237\":\"Saint Vincent and the Grenadines\",\"238\":\"Virgin Islands (U.S.)\",\"239\":\"Vanuatu\",\"241\":\"Mayotte\",\"242\":\"Myanmar\",\"255\":\"Sao Tome and Principe\",\"257\":\"South Georgia and the South Sandwich Islands\",\"260\":\"Tajikistan\",\"262\":\"United Kingdom\",\"268\":\"Costa Rica\",\"270\":\"Guernsey\",\"272\":\"North Korea\",\"274\":\"Afghanistan\",\"275\":\"Cote D'Ivoire\",\"276\":\"Cuba\",\"277\":\"French Polynesia\",\"278\":\"Iran\",\"279\":\"Iraq\",\"281\":\"Libya\",\"282\":\"Palestine\",\"285\":\"Syria\",\"286\":\"Aaland Islands\",\"287\":\"Turks &#038; Caicos Islands\",\"288\":\"Jersey  (Channel Islands)\",\"289\":\"Dominica\",\"290\":\"Montenegro\",\"293\":\"Sudan\",\"294\":\"Montserrat\",\"298\":\"Curacao\",\"302\":\"Sint Maarten\",\"311\":\"South Sudan\",\"315\":\"Republic of Kosovo\",\"318\":\"Congo, Democratic Republic of the\",\"323\":\"Isle of Man\",\"324\":\"Saint Martin\",\"325\":\"Bonaire, Saint Eustatius and Saba\",\"326\":\"Serbia\"},\"defaultcountry\":\"262\"}}).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\":\"Email Address\",\"helper_text\":\"\",\"merge_id\":0,\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Email Address\",\"field_type\":\"merge\",\"enabled\":true,\"order\":0},\"MMERGE3\":{\"name\":\"MMERGE3\",\"label\":\"Untitled\",\"helper_text\":\"\",\"type\":\"address\",\"required\":false,\"audience_field_name\":\"Untitled\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":3,\"countries\":{\"2\":\"Albania\",\"3\":\"Algeria\",\"4\":\"Andorra\",\"5\":\"Angola\",\"6\":\"Argentina\",\"7\":\"Armenia\",\"8\":\"Australia\",\"9\":\"Austria\",\"10\":\"Azerbaijan\",\"11\":\"Bahamas\",\"12\":\"Bahrain\",\"13\":\"Bangladesh\",\"14\":\"Barbados\",\"15\":\"Belarus\",\"16\":\"Belgium\",\"17\":\"Belize\",\"18\":\"Benin\",\"19\":\"Bermuda\",\"20\":\"Bhutan\",\"21\":\"Bolivia\",\"22\":\"Bosnia and Herzegovina\",\"23\":\"Botswana\",\"24\":\"Brazil\",\"25\":\"Bulgaria\",\"26\":\"Burkina Faso\",\"27\":\"Burundi\",\"28\":\"Cambodia\",\"29\":\"Cameroon\",\"30\":\"Canada\",\"31\":\"Cape Verde\",\"32\":\"Cayman Islands\",\"33\":\"Central African Republic\",\"34\":\"Chad\",\"35\":\"Chile\",\"36\":\"China\",\"37\":\"Colombia\",\"38\":\"Congo\",\"40\":\"Croatia\",\"41\":\"Cyprus\",\"42\":\"Czech Republic\",\"43\":\"Denmark\",\"44\":\"Djibouti\",\"45\":\"Ecuador\",\"46\":\"Egypt\",\"47\":\"El Salvador\",\"48\":\"Equatorial Guinea\",\"49\":\"Eritrea\",\"50\":\"Estonia\",\"51\":\"Ethiopia\",\"52\":\"Fiji\",\"53\":\"Finland\",\"54\":\"France\",\"56\":\"Gabon\",\"57\":\"Gambia\",\"58\":\"Georgia\",\"59\":\"Germany\",\"60\":\"Ghana\",\"61\":\"Greece\",\"62\":\"Guam\",\"63\":\"Guinea\",\"64\":\"Guinea-Bissau\",\"65\":\"Guyana\",\"66\":\"Honduras\",\"67\":\"Hong Kong\",\"68\":\"Hungary\",\"69\":\"Iceland\",\"70\":\"India\",\"71\":\"Indonesia\",\"74\":\"Ireland\",\"75\":\"Israel\",\"76\":\"Italy\",\"78\":\"Japan\",\"79\":\"Jordan\",\"80\":\"Kazakhstan\",\"81\":\"Kenya\",\"82\":\"Kuwait\",\"83\":\"Kyrgyzstan\",\"84\":\"Lao People's Democratic Republic\",\"85\":\"Latvia\",\"86\":\"Lebanon\",\"87\":\"Lesotho\",\"88\":\"Liberia\",\"90\":\"Liechtenstein\",\"91\":\"Lithuania\",\"92\":\"Luxembourg\",\"93\":\"Macedonia\",\"94\":\"Madagascar\",\"95\":\"Malawi\",\"96\":\"Malaysia\",\"97\":\"Maldives\",\"98\":\"Mali\",\"99\":\"Malta\",\"100\":\"Mauritania\",\"101\":\"Mexico\",\"102\":\"Moldova\",\"103\":\"Monaco\",\"104\":\"Mongolia\",\"105\":\"Morocco\",\"106\":\"Mozambique\",\"107\":\"Namibia\",\"108\":\"Nepal\",\"109\":\"Netherlands\",\"110\":\"Netherlands Antilles\",\"111\":\"New Zealand\",\"112\":\"Nicaragua\",\"113\":\"Niger\",\"114\":\"Nigeria\",\"116\":\"Norway\",\"117\":\"Oman\",\"118\":\"Pakistan\",\"119\":\"Panama\",\"120\":\"Paraguay\",\"121\":\"Peru\",\"122\":\"Philippines\",\"123\":\"Poland\",\"124\":\"Portugal\",\"126\":\"Qatar\",\"127\":\"Reunion\",\"128\":\"Romania\",\"129\":\"Russia\",\"130\":\"Rwanda\",\"132\":\"Samoa (Independent)\",\"133\":\"Saudi Arabia\",\"134\":\"Senegal\",\"135\":\"Seychelles\",\"136\":\"Sierra Leone\",\"137\":\"Singapore\",\"138\":\"Slovakia\",\"139\":\"Slovenia\",\"140\":\"Somalia\",\"141\":\"South Africa\",\"142\":\"South Korea\",\"143\":\"Spain\",\"144\":\"Sri Lanka\",\"146\":\"Suriname\",\"147\":\"Swaziland\",\"148\":\"Sweden\",\"149\":\"Switzerland\",\"152\":\"Taiwan\",\"153\":\"Tanzania\",\"154\":\"Thailand\",\"155\":\"Togo\",\"156\":\"Tunisia\",\"157\":\"Turkiye\",\"158\":\"Turkmenistan\",\"159\":\"Uganda\",\"161\":\"Ukraine\",\"162\":\"United Arab Emirates\",\"163\":\"Uruguay\",\"164\":\"USA\",\"165\":\"Uzbekistan\",\"166\":\"Vatican City State (Holy See)\",\"167\":\"Venezuela\",\"168\":\"Vietnam\",\"169\":\"Virgin Islands (British)\",\"170\":\"Yemen\",\"173\":\"Zambia\",\"174\":\"Zimbabwe\",\"175\":\"Antigua And Barbuda\",\"176\":\"Anguilla\",\"178\":\"American Samoa\",\"179\":\"Aruba\",\"180\":\"Brunei Darussalam\",\"181\":\"Bouvet Island\",\"183\":\"Cook Islands\",\"185\":\"Christmas Island\",\"187\":\"Dominican Republic\",\"188\":\"Western Sahara\",\"189\":\"Falkland Islands\",\"191\":\"Faroe Islands\",\"192\":\"Grenada\",\"193\":\"French Guiana\",\"194\":\"Gibraltar\",\"195\":\"Greenland\",\"196\":\"Guadeloupe\",\"198\":\"Guatemala\",\"200\":\"Haiti\",\"202\":\"Jamaica\",\"203\":\"Kiribati\",\"204\":\"Comoros\",\"205\":\"Saint Kitts and Nevis\",\"206\":\"Saint Lucia\",\"207\":\"Marshall Islands\",\"208\":\"Macau\",\"210\":\"Martinique\",\"212\":\"Mauritius\",\"213\":\"New Caledonia\",\"214\":\"Norfolk Island\",\"215\":\"Nauru\",\"217\":\"Niue\",\"219\":\"Papua New Guinea\",\"221\":\"Pitcairn\",\"222\":\"Palau\",\"223\":\"Solomon Islands\",\"225\":\"Svalbard and Jan Mayen Islands\",\"227\":\"San Marino\",\"232\":\"Tonga\",\"233\":\"Timor-Leste\",\"234\":\"Trinidad and Tobago\",\"235\":\"Tuvalu\",\"237\":\"Saint Vincent and the Grenadines\",\"238\":\"Virgin Islands (U.S.)\",\"239\":\"Vanuatu\",\"241\":\"Mayotte\",\"242\":\"Myanmar\",\"255\":\"Sao Tome and Principe\",\"257\":\"South Georgia and the South Sandwich Islands\",\"260\":\"Tajikistan\",\"262\":\"United Kingdom\",\"268\":\"Costa Rica\",\"270\":\"Guernsey\",\"272\":\"North Korea\",\"274\":\"Afghanistan\",\"275\":\"Cote D'Ivoire\",\"276\":\"Cuba\",\"277\":\"French Polynesia\",\"278\":\"Iran\",\"279\":\"Iraq\",\"281\":\"Libya\",\"282\":\"Palestine\",\"285\":\"Syria\",\"286\":\"Aaland Islands\",\"287\":\"Turks &#038; Caicos Islands\",\"288\":\"Jersey  (Channel Islands)\",\"289\":\"Dominica\",\"290\":\"Montenegro\",\"293\":\"Sudan\",\"294\":\"Montserrat\",\"298\":\"Curacao\",\"302\":\"Sint Maarten\",\"311\":\"South Sudan\",\"315\":\"Republic of Kosovo\",\"318\":\"Congo, Democratic Republic of the\",\"323\":\"Isle of Man\",\"324\":\"Saint Martin\",\"325\":\"Bonaire, Saint Eustatius and Saba\",\"326\":\"Serbia\"},\"defaultcountry\":\"262\"}}).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><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Subscribe * indicates required Email Address * Postcard Teas will use the information you provide on this form to be in touch with you and to provide updates and marketing&#8230;.<\/p>\n","protected":false},"author":100000002430,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-46026","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/www.postcardteas.com\/site\/wp-json\/wp\/v2\/pages\/46026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.postcardteas.com\/site\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.postcardteas.com\/site\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.postcardteas.com\/site\/wp-json\/wp\/v2\/users\/100000002430"}],"replies":[{"embeddable":true,"href":"https:\/\/www.postcardteas.com\/site\/wp-json\/wp\/v2\/comments?post=46026"}],"version-history":[{"count":12,"href":"https:\/\/www.postcardteas.com\/site\/wp-json\/wp\/v2\/pages\/46026\/revisions"}],"predecessor-version":[{"id":46050,"href":"https:\/\/www.postcardteas.com\/site\/wp-json\/wp\/v2\/pages\/46026\/revisions\/46050"}],"wp:attachment":[{"href":"https:\/\/www.postcardteas.com\/site\/wp-json\/wp\/v2\/media?parent=46026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}