{"id":3721,"date":"2026-02-18T18:41:21","date_gmt":"2026-02-19T01:41:21","guid":{"rendered":"https:\/\/processprimer.com\/blog\/?p=3721"},"modified":"2026-07-16T21:22:44","modified_gmt":"2026-07-17T03:22:44","slug":"the-risks-of-implementing-ai-decision-making-in-canada","status":"publish","type":"post","link":"https:\/\/processprimer.com\/blog\/the-risks-of-implementing-ai-decision-making-in-canada\/","title":{"rendered":"The Risks of Implementing AI Decision-Making in Canada"},"content":{"rendered":"\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-ad2f72ca wp-block-group-is-layout-flex\">\n<p><strong>AI decision-making<\/strong> is everywhere right now. Credit approvals, insurance underwriting, telecom onboarding, rental applications, loyalty programs\u2014if it involves volume and rules, someone has suggested \u201cjust use AI.\u201d<\/p>\n<\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2026\/02\/image.png\" alt=\"\" class=\"wp-image-3955\" style=\"width:94px;height:auto\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2026\/02\/image.png 512w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2026\/02\/image-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2026\/02\/image-150x150.png 150w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n<\/div>\n\n\n<p>On paper, it sounds brilliant: faster decisions, consistent outcomes, lower operational costs, fewer humans in the loop. In reality\u2014especially in Canada\u2014automating customer application decisions with AI introduces a stack of risks that organizations often underestimate until a complaint, audit, or regulator shows up asking uncomfortable questions.<\/p>\n\n\n\n<p>And \u201cthe model did it\u201d is not an acceptable answer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why AI decision-making is tempting\u2014and dangerous<\/h3>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-ad2f72ca wp-block-group-is-layout-flex\">\n<p>Customer applications are high-volume and repetitive, which makes them <strong>prime automation targets.<\/strong> AI promises to reduce manual reviews, flag risky applicants, and scale decision-making without adding headcount.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/warning-sign.png\" alt=\"\" class=\"wp-image-3736\" style=\"aspect-ratio:1;width:181px;height:auto\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/warning-sign.png 512w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/warning-sign-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/warning-sign-150x150.png 150w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n<\/div>\n\n\n\n<p>The problem is that these decisions directly affect people\u2019s access to services, pricing, credit, or opportunities. The moment AI influences approval, denial, or eligibility, you\u2019re no longer just optimizing a workflow\u2014you\u2019re running a decision-making process with legal, ethical, and reputational consequences.<\/p>\n\n\n\n<p>In Canada, that means privacy, fairness, transparency, and accountability all come into play.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Privacy risk and purpose creep<\/h3>\n\n\n\n<p>AI models <strong>love <\/strong>data. The more variables you feed them, the better they&nbsp;<em>appear<\/em>&nbsp;to perform. That creates a real risk of collecting or using more personal information than is necessary to evaluate an application.<\/p>\n\n\n\n<p>Purpose creep is a common failure point. Data collected for an application review slowly gets reused for profiling, cross-selling, fraud detection, or \u201cfuture model improvements.\u201d If that secondary use isn\u2019t clearly disclosed and aligned with reasonable customer expectations, you\u2019re setting yourself up for<strong> compliance trouble.<\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2026\/01\/analysis.png\" alt=\"\" class=\"wp-image-3765\" style=\"width:106px;height:auto\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2026\/01\/analysis.png 512w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2026\/01\/analysis-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2026\/01\/analysis-150x150.png 150w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n<\/div>\n\n\n<p>Add third-party data sources\u2014credit bureaus, identity providers, device intelligence, behavioural signals\u2014and the risk multiplies. More vendors mean more consent complexity, more data accuracy issues, and more exposure if something goes wrong.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Bias and discriminatory outcomes<\/h3>\n\n\n\n<p>AI doesn\u2019t invent bias out of thin air\u2014it learns it from historical data. If past decisions were uneven, inconsistent, or influenced by structural inequities, the model will happily learn those patterns and scale them at machine speed.<\/p>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-ad2f72ca wp-block-group-is-layout-flex\">\n<p>Even when protected characteristics are excluded, proxy variables sneak in. Postal codes, employment gaps, education paths, spending patterns, and language usage can all correlate with protected groups. The result may be statistically \u201caccurate\u201d but socially and legally <strong>problematic<\/strong>.<\/p>\n<\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/bias.png\" alt=\"scale\" class=\"wp-image-3738\" style=\"width:80px;height:auto\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/bias.png 512w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/bias-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/bias-150x150.png 150w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n<\/div>\n\n\n<p>This is where organizations often say, \u201cThe model works overall.\u201d That\u2019s not the standard customers or regulators care about. The real question is whether it works&nbsp;<em>fairly<\/em>, and whether certain groups are disproportionately harmed by automated outcomes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Transparency and explainability failures<\/h3>\n\n\n\n<p>When a customer is denied a product or service, \u201cbecause the AI said so\u201d is not a reason\u2014it\u2019s a trust killer.<\/p>\n\n\n\n<p>Organizations need to explain decisions in plain language: what factors mattered, what can be improved, and whether a human review is available. Black-box models make this difficult, especially when front-line teams are left with nothing more than a score and a shrug.<\/p>\n\n\n\n<p>Explainability isn\u2019t just about compliance; it\u2019s operational. If customer service can\u2019t explain outcomes, complaints escalate. If compliance teams can\u2019t trace logic, audits stall. If leadership can\u2019t understand risk, governance breaks down.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Accountability gaps inside the organization<\/h3>\n\n\n\n<p>One of the <strong>biggest <\/strong>hidden risks is organizational, not technical.<\/p>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-ad2f72ca wp-block-group-is-layout-flex\">\n<p>Data science builds the model. Operations owns the workflow. IT manages integrations. Legal reviews contracts. Privacy does a one-time assessment. Then the system goes live\u2014and no one clearly owns the decision.<\/p>\n<\/div>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/corporate.png\" alt=\"building\" class=\"wp-image-3741\" style=\"width:94px;height:auto\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/corporate.png 512w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/corporate-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/corporate-150x150.png 150w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n<\/div>\n\n\n<p>When something goes wrong, accountability fragments fast. Who approved the model? Who monitors performance drift? Who decides when human review is required? Who can shut the system off?<\/p>\n\n\n\n<p>Without clear ownership, AI decision-making becomes a runaway process: everyone is involved, but no one is responsible.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Data quality and model drift<\/h3>\n\n\n\n<p>AI decisions are only as good as the data feeding them. Incomplete applications, inconsistent formatting, stale third-party attributes, or mislabelled training data can all produce confident but wrong outcomes.<\/p>\n\n\n\n<p><strong>Even well-designed models<\/strong> degrade over time. Economic shifts, fraud tactics, and customer behaviour evolve. If you\u2019re not actively monitoring accuracy, false positives, false negatives, and fairness metrics, your model will drift\u2014and keep making decisions as if nothing changed.<\/p>\n\n\n\n<p>That\u2019s how you end up denying good customers based on yesterday\u2019s assumptions.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/cyber-security-1.png\" alt=\"\" class=\"wp-image-3744\" style=\"width:125px;height:auto\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/cyber-security-1.png 512w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/cyber-security-1-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/12\/cyber-security-1-150x150.png 150w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">6. Security and third-party risk<\/h3>\n\n\n\n<p>AI decision pipelines often involve multiple systems and vendors: data storage, feature engineering, model hosting, monitoring tools, and external APIs. Each integration is another attack surface.<\/p>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-ad2f72ca wp-block-group-is-layout-flex\">\n<p>Third-party risk becomes especially serious when personal data crosses borders, subcontractors change, or breach responsibilities aren\u2019t crystal clear. On top of that, adversarial behaviour is real\u2014applicants may manipulate inputs, submit synthetic identities, or probe systems to game outcomes.<\/p>\n<\/div>\n\n\n\n<p>Security failures in AI decision systems don\u2019t just expose data\u2014they undermine trust in every decision the system makes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Reducing risk without abandoning AI<\/h3>\n\n\n\n<p>This <strong>isn\u2019t<\/strong> an argument against AI. It\u2019s an argument against treating AI decision-making like a plug-and-play feature.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2026\/01\/risk.png\" alt=\"\" class=\"wp-image-3753\" style=\"width:82px;height:auto\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2026\/01\/risk.png 512w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2026\/01\/risk-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2026\/01\/risk-150x150.png 150w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/figure>\n<\/div>\n\n\n<p>Organizations that <strong>succeed <\/strong>in Canada apply discipline:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Human-in-the-loop reviews for high-impact or borderline cases<\/li>\n\n\n\n<li>Clear decision categories with auditable thresholds<\/li>\n\n\n\n<li>Data minimization tied to documented purposes<\/li>\n\n\n\n<li>Bias testing before launch and continuous monitoring after<\/li>\n\n\n\n<li>Explainability standards for both customers and staff<\/li>\n\n\n\n<li>Strong vendor due diligence and audit rights<\/li>\n\n\n\n<li>Clear rollback and incident response plans<\/li>\n<\/ul>\n\n\n\n<p>Most importantly, they treat AI decisions as governed business processes\u2014not technical experiments.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The bottom line<\/h3>\n\n\n\n<p>AI can absolutely <strong>improve <\/strong>customer application processing. But it can also <strong>scale mistakes <\/strong>faster than any human team ever could.<\/p>\n\n\n\n<p>In Canada, the winners won\u2019t be the organizations with the most advanced models. They\u2019ll be the ones that design AI decision-making with privacy, fairness, transparency, and accountability baked in\u2014before the first rejected applicant asks, \u201cWhy?\u201d<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<center>\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: 1200px;}\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:\/\/processprimer.us19.list-manage.com\/subscribe\/post?u=038e832b4fa1270b3c70c58de&amp;id=d49dd67c2c&amp;v_id=5164&amp;f_id=004ba2e4f0\" method=\"post\" id=\"mc-embedded-subscribe-form\" name=\"mc-embedded-subscribe-form\" class=\"validate\" target=\"_blank\">\n        <div id=\"mc_embed_signup_scroll\"><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 type=\"email\" name=\"EMAIL\" class=\"required email\" id=\"mce-EMAIL\" required=\"\" value=\"\"><\/div><div id=\"mergeRow-gdpr\" class=\"mergeRow gdpr-mergeRow content__gdprBlock mc-field-group\"><div class=\"content__gdpr\"><label>Consent<\/label><p>By checking the box below, you give Process Primer Consulting Services Ltd. consent to use the information you provide to contact you regarding process improvement tips, ideas, solutions, and services.<\/p><fieldset class=\"mc_fieldset gdprRequired mc-field-group\" name=\"interestgroup_field\"><label class=\"checkbox subfield\" for=\"gdpr74688\"><input type=\"checkbox\" id=\"gdpr_74688\" name=\"gdpr[74688]\" class=\"gdpr\" value=\"Y\"><span>I consent<\/span><\/label><\/fieldset><p>We will never use or share your personal information without your permission. To learn more about how we manage your personal information, please see our Privacy Policy at processprimer.com\/privacy-policy.<\/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\">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_038e832b4fa1270b3c70c58de_d49dd67c2c\" 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=\"Subscribe\">\n                <p style=\"margin: 0px auto;\"><a href=\"http:\/\/eepurl.com\/LbO0Nyw_ij\" title=\"Mailchimp - email marketing made easy and fun\"><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]='LNAME';ftypes[2]='text';fnames[3]='ADDRESS';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: 'CA',\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\":\"Email Address\",\"helper_text\":\"\",\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Email Address\",\"merge_id\":0,\"help_text_enabled\":false,\"enabled\":true,\"order\":0,\"field_type\":\"merge\"},\"FNAME\":{\"name\":\"FNAME\",\"label\":\"First Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"First Name\",\"merge_id\":1,\"help_text_enabled\":false,\"enabled\":false,\"order\":null,\"field_type\":\"merge\"},\"LNAME\":{\"name\":\"LNAME\",\"label\":\"Last Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Last Name\",\"merge_id\":2,\"help_text_enabled\":false,\"enabled\":false,\"order\":null,\"field_type\":\"merge\"},\"ADDRESS\":{\"name\":\"ADDRESS\",\"label\":\"Address\",\"helper_text\":\"\",\"type\":\"address\",\"required\":false,\"audience_field_name\":\"Address\",\"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\",\"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\",\"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\",\"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\",\"327\":\"Saint Barthelemy\"},\"defaultcountry\":164},\"interests_179003\":{\"name\":\"interests_179003\",\"label\":\"Your Interests\",\"helper_text\":\"\",\"type\":\"checkbox\",\"required\":false,\"choices\":[],\"audience_field_name\":\"Your Interests\",\"enabled\":false,\"order\":null,\"field_type\":\"group\",\"group_id\":179003}}).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\":\"\",\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Email Address\",\"merge_id\":0,\"help_text_enabled\":false,\"enabled\":true,\"order\":0,\"field_type\":\"merge\"},\"FNAME\":{\"name\":\"FNAME\",\"label\":\"First Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"First Name\",\"merge_id\":1,\"help_text_enabled\":false,\"enabled\":false,\"order\":null,\"field_type\":\"merge\"},\"LNAME\":{\"name\":\"LNAME\",\"label\":\"Last Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Last Name\",\"merge_id\":2,\"help_text_enabled\":false,\"enabled\":false,\"order\":null,\"field_type\":\"merge\"},\"ADDRESS\":{\"name\":\"ADDRESS\",\"label\":\"Address\",\"helper_text\":\"\",\"type\":\"address\",\"required\":false,\"audience_field_name\":\"Address\",\"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\",\"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\",\"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\",\"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\",\"327\":\"Saint Barthelemy\"},\"defaultcountry\":164},\"interests_179003\":{\"name\":\"interests_179003\",\"label\":\"Your Interests\",\"helper_text\":\"\",\"type\":\"checkbox\",\"required\":false,\"choices\":[],\"audience_field_name\":\"Your Interests\",\"enabled\":false,\"order\":null,\"field_type\":\"group\",\"group_id\":179003}}).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\n<\/center>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"https:\/\/www.processprimer.com\/#contact\"><img loading=\"lazy\" decoding=\"async\" width=\"512\" height=\"512\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/06\/contact-us-1.png\" alt=\"\" class=\"wp-image-3782\" style=\"width:132px;height:auto\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/06\/contact-us-1.png 512w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/06\/contact-us-1-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2025\/06\/contact-us-1-150x150.png 150w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/a><\/figure>\n<\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AI decision-making is everywhere right now. Credit approvals, insurance underwriting, telecom onboarding, rental applications, loyalty programs\u2014if it involves volume and rules, someone has suggested \u201cjust use AI.\u201d On paper, it sounds brilliant: faster decisions, consistent outcomes, lower operational costs, fewer&#8230;<\/p>\n","protected":false},"author":2,"featured_media":3734,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,31],"tags":[],"class_list":["post-3721","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-privacy"],"_links":{"self":[{"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/posts\/3721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/comments?post=3721"}],"version-history":[{"count":25,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/posts\/3721\/revisions"}],"predecessor-version":[{"id":4237,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/posts\/3721\/revisions\/4237"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/media\/3734"}],"wp:attachment":[{"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/media?parent=3721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/categories?post=3721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/tags?post=3721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}