{"id":2015,"date":"2023-06-22T06:00:00","date_gmt":"2023-06-22T12:00:00","guid":{"rendered":"https:\/\/processprimer.com\/?p=2015"},"modified":"2026-07-27T18:12:11","modified_gmt":"2026-07-28T00:12:11","slug":"mac-automator-and-shortcuts-june","status":"publish","type":"post","link":"https:\/\/processprimer.com\/blog\/mac-automator-and-shortcuts-june\/","title":{"rendered":"Learn How to Use Mac Automator and Shortcuts"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"alignright size-thumbnail is-resized\" id=\"<a-href=&quot;https:\/\/www.flaticon.com\/free-icons\/logo&quot;-title=&quot;logo-icons&quot;&gt;Logo-icons-created-by-Pixel-perfect---Flaticon<\/a&gt;\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/apple-150x150.png\" alt=\"\" class=\"wp-image-4036\" style=\"width:75px;height:75px\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/apple-150x150.png 150w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/apple-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/apple.png 512w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/figure>\n<\/div>\n\n\n<p>If you are an <strong>Apple user<\/strong> you may be happy to know that your devices come<strong> pre-installed<\/strong> with automation software!<\/p>\n\n\n\n<p>From sending automated emails and notifications to scheduling events on your calendar to launching applications and turning on focus mode and playing music while you work, the Apple ecosystem can do it all. <strong>And it doesn&#8217;t cost you anything extra<\/strong>!<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-thumbnail is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/automation-150x150.png\" alt=\"\" class=\"wp-image-4038\" style=\"width:113px;height:113px\" title=\"<a href=&quot;https:\/\/www.flaticon.com\/free-icons\/automation&quot; title=&quot;automation icons&quot;&gt;Automation icons created by Flat Icons - Flaticon<\/a&gt;\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/automation-150x150.png 150w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/automation-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/automation.png 512w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/figure>\n<\/div>\n\n\n<p>What&#8217;s the value in automation? If a task only takes you a<strong> few seconds<\/strong> or a <strong>couple of minutes<\/strong>, why would you need to automate this? There are <strong>two reasons<\/strong> for automation: <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create efficiencies to free up more of your time. <\/li>\n\n\n\n<li>Eliminate the chance of error and rework.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-thumbnail is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/repeat-150x150.png\" alt=\"\" class=\"wp-image-4039\" style=\"width:98px;height:98px\" title=\"<a href=&quot;https:\/\/www.flaticon.com\/free-icons\/routine&quot; title=&quot;routine icons&quot;&gt;Routine icons created by Parzival\u2019 1997 - Flaticon<\/a&gt;\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/repeat-150x150.png 150w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/repeat-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/repeat.png 512w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/figure>\n<\/div>\n\n\n<p>Now that we understand there is value to automation, how do you determine when you should create an automation? As a general rule, if you perform an activity <strong>more than a few times on a regular basis <\/strong>and there is very little variation in the steps to the activity, then it is considered a <strong>good candidate<\/strong> for automation.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n\n\n\n<p><strong>Let&#8217;s give you a few examples of good automation scenarios:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Each morning when I wake up I want to check the weather so I set up an <strong>automation <\/strong>that announces the weather to me as soon I turn off my wake-up alarm. <\/li>\n\n\n\n<li>Booking an event in my calendar. I regularly need to schedule time in my calendar for various  purposes. Rather then open my calendar and click &#8220;new event&#8221; and type in the subject, enter the start date and the time and enter the end date and time, then click the check mark and close the app, I created<strong> one button<\/strong> that prompts me for the event topic, the start and end date\/times and it automatically enters the details into my appropriate calendar (I have several calendars) and closes.<\/li>\n\n\n\n<li>When I open my MacBook to start my work day I open the following applications: a web browser, my email application, my password manager and my task list\/reminders. Then I turn on &#8220;do not disturb\/focus&#8221; mode, open my music app and select a playlist based on my energy level that day. I created a <strong>one<\/strong>&#8211;<strong>click automation <\/strong>to open all those apps and prompt me for which playlist I would like it to play. I select the specific playlist I want and it shuffles my tunes and I get on with my day! When I am done my work day I click another button and it turns off my music, closes all the apps I opened originally and turns off &#8220;do not disturb\/focus&#8221; mode.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-thumbnail is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/ios-150x150.png\" alt=\"\" class=\"wp-image-4041\" style=\"width:75px;height:75px\" title=\"<a href=&quot;https:\/\/www.flaticon.com\/free-icons\/smartphone&quot; title=&quot;smartphone icons&quot;&gt;Smartphone icons created by Flat Icons - Flaticon<\/a&gt;\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/ios-150x150.png 150w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/ios-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/ios.png 512w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/figure>\n<\/div>\n\n\n<p>Read on to learn<strong> how to set up your first automation<\/strong> with a few productivity examples you might find useful. If you are using a Mac, you have two applications you can use for automation: Mac Automator and Shortcuts. If you are using an iPad or iPhone, you can use Shortcuts. When creating automations with Shortcuts on your iPad, <strong>the automations you create will sync to your iPhone and vice versa.<\/strong><\/p>\n\n\n\n<p><strong>Lets show you how to set up a few simple automations using your MacBook and your iPhone.<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">MacBook automation example using Mac Automator.  <\/mark><\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"responsive-embed widescreen\"><iframe loading=\"lazy\" title=\"Mac Automation Using the Automator Application\" width=\"1000\" height=\"563\" src=\"https:\/\/www.youtube.com\/embed\/2Rzf84t1H08?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><figcaption class=\"wp-element-caption\">Click the video above for the full tutorial!<\/figcaption><\/figure>\n\n\n\n<p>Scenario: add today&#8217;s date to any filename.<\/p>\n\n\n\n<ol style=\"list-style-type:1\" class=\"wp-block-list\">\n<li>Open Automator by typing \u201cCommand + space bar\u201d and typing in &#8220;Automator&#8221; and you should be able to find the Automator.app &#8211; open it.<\/li>\n\n\n\n<li>Click the [File] menu and click [New].<\/li>\n\n\n\n<li>Select [Quick Action] and click [Choose].<\/li>\n\n\n\n<li>Where it says, \u201cWorkflow receives current\u201d, select the drop-down menu beside it and choose [files or folders].<\/li>\n\n\n\n<li>Where it says \u201cin\u201d, select the drop-down menu beside it and choose [Finder.app].<\/li>\n\n\n\n<li>In the menu on the left side, select [Files &amp; Folders] and then select [Rename finder items].<\/li>\n\n\n\n<li>You can either double-click [Rename finder items] with your left-mouse button or click and drag [Rename finder items] to the window on the right.<\/li>\n\n\n\n<li>Change the drop-down menu option from [Add Date or Time] to [Add Text].<\/li>\n\n\n\n<li>In the \u201cAdd\u201d section, type a hyphen (-) and press the space bar to add in a space.&nbsp;<\/li>\n\n\n\n<li>On the top left of the window, it says \u201cActions\u201d and \u201cVariables\u201d. Choose [Variables].<\/li>\n\n\n\n<li>Look for the \u201cToday\u2019s Date\u201d variable in the list in the second column, and double-click it with the left-mouse button.<\/li>\n\n\n\n<li>In the lower section of the window on the right you will see a \u201cVariable\u201d area. Double-click [Today\u2019s Date] with your left-mouse button.&nbsp;<\/li>\n\n\n\n<li>Change the \u201cFormat\u201d drop-down menu to [Custom Format\u2026] and customize it to your liking. I chose to leave it as the \u201cDDMONTHYYYY\u201d format.<\/li>\n\n\n\n<li>Click [Done].<\/li>\n\n\n\n<li>Drag the \u201cToday\u2019s Date\u201d field that you edited into the \u201cAdd\u201d section just after the hyphen and space that you entered in step 9.<\/li>\n\n\n\n<li>Click the [File] menu and click [Save] and name your quick action something like \u201cAdd Today\u2019s Date to Filename\u201d and click [Save].<\/li>\n\n\n\n<li>You can now test out your quick action by opening a Finder window, opening the menu on a file (click the right-mouse button on a file), selecting the \u201cQuick Actions\u201d menu and choosing \u201cAdd Today\u2019s Date to Filename\u201d \u2013 this will append the filename you selected with \u201c- Today\u2019s Date\u201d<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">MacBook automation example using Shortcuts. <\/mark><\/h3>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"responsive-embed widescreen\"><iframe loading=\"lazy\" title=\"MacBook Automation Example Using Shortcuts\" width=\"1000\" height=\"750\" src=\"https:\/\/www.youtube.com\/embed\/ZASf1vUY1nQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><figcaption class=\"wp-element-caption\">Click the video above for the full tutorial!<\/figcaption><\/figure>\n\n\n\n<p>Scenario: open the web browser and the activity monitor and turn on do not disturb\/focus mode.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the shortcuts app.<\/li>\n\n\n\n<li>Create a new shortcut.<\/li>\n\n\n\n<li>Type &#8220;open app&#8221; into the search field.<\/li>\n\n\n\n<li>Select &#8220;open app&#8221; or drag it into the main window.<\/li>\n\n\n\n<li>Click app and select &#8220;safari.&#8221;<\/li>\n\n\n\n<li>Type &#8220;open app&#8221; into the search field again.<\/li>\n\n\n\n<li>Select &#8220;open app&#8221; or drag it into the main window again.<\/li>\n\n\n\n<li>Click app and select &#8220;activity and monitor.&#8221;<\/li>\n\n\n\n<li>Type &#8220;set focus&#8221; into the search field.<\/li>\n\n\n\n<li>Select &#8220;set focus&#8221; or drag it into the main window.<\/li>\n\n\n\n<li>Select the focus mode (ex. &#8220;do not disturb&#8221;) and select &#8220;on until turned off&#8221;.<\/li>\n\n\n\n<li>Name or rename the shortcut &#8220;turn on work mode.&#8221;<\/li>\n\n\n\n<li>Return to the main shortcuts screen.<\/li>\n\n\n\n<li>Run your new &#8220;turn on work mode&#8221; shortcut.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-thumbnail is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/shortcut-script-app-150x150.png\" alt=\"\" class=\"wp-image-4042\" style=\"width:75px;height:75px\" title=\"<a href=&quot;https:\/\/www.flaticon.com\/free-icons\/shortcut&quot; title=&quot;shortcut icons&quot;&gt;Shortcut icons created by Freepik - Flaticon<\/a&gt;\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/shortcut-script-app-150x150.png 150w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/shortcut-script-app-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/shortcut-script-app.png 512w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/figure>\n<\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-dots\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-red-color\">iPhone automation example using Shortcuts. <\/mark><\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"responsive-embed widescreen\"><iframe loading=\"lazy\" title=\"Create Automations using Shortcuts App on iPhone\" width=\"1000\" height=\"563\" src=\"https:\/\/www.youtube.com\/embed\/8pqz8XipPFk?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><figcaption class=\"wp-element-caption\">Click the video above for the full tutorial!<\/figcaption><\/figure>\n\n\n\n<p>Scenario: Open the music app and play my entire song list automatically.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the shortcuts app.<\/li>\n\n\n\n<li>Create a new shortcut.<\/li>\n\n\n\n<li>Type &#8220;play music&#8221; into the search field.<\/li>\n\n\n\n<li>Select &#8220;play music&#8221; or drag it into the main window.<\/li>\n\n\n\n<li>Click the arrow to the right.<\/li>\n\n\n\n<li>Choose the shuffle setting (off or songs).<\/li>\n\n\n\n<li>Choose the repeat setting (none, one, all).<\/li>\n\n\n\n<li>Name or rename the shortcut &#8220;play song list.&#8221;<\/li>\n\n\n\n<li>Return to the main shortcuts screen.<\/li>\n\n\n\n<li>Run your new &#8220;play song list&#8221; shortcut. <\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Now that you have a few simple examples, you can begin to identify new automations scenarios that would<strong> save you time<\/strong> and <strong>increase your accuracy<\/strong>. Also note that when you first open up shortcuts, it has a gallery section with pre-made automation templates. You can use any of these templates and customize them to <strong>suit your needs. <\/strong><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-thumbnail is-resized\" id=\"<a-href=&quot;https:\/\/www.flaticon.com\/free-icons\/theme&quot;-title=&quot;theme-icons&quot;&gt;Theme-icons-created-by-monkik---Flaticon<\/a&gt;\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/web-design-1-150x150.png\" alt=\"\" class=\"wp-image-4044\" style=\"width:75px;height:75px\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/web-design-1-150x150.png 150w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/web-design-1-300x300.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2023\/06\/web-design-1.png 512w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/figure>\n<\/div>\n\n\n<p><strong>One final note: All shortcuts created within Shortcuts can be initiated by a voice control using Siri<\/strong>! So if you create a Shortcuts automation called &#8220;Book Event in my Work Calendar&#8221;, you can say, &#8220;Hey Siri, book event in my work calendar&#8221; and it will execute that automation.<\/p>\n\n\n\n<p>Once you begin<strong> identifying<\/strong> and <strong>creating automations,<\/strong> the possibilities are <strong>endless <\/strong>and you may find yourself trying to<strong> automate anything and everything!<\/strong><\/p>\n\n\n\n<p>We hope you enjoy these <strong>simple <\/strong>but <strong>useful automations<\/strong> in the Apple ecosystem.<\/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\n<p>If you have any questions, please feel free to reach out or leave a comment.<\/p>\n\n\n\n<p><span style=\"color:#0693e3\" class=\"tadv-color\">Comprehend.<\/span> <span style=\"color:#cf2e2e\" class=\"tadv-color\">Reimagine. <\/span><span style=\"color:#c8b568\" class=\"tadv-color\">Outperform.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are an Apple user you may be happy to know that your devices come pre-installed with automation software! From sending automated emails and notifications to scheduling events on your calendar to launching applications and turning on focus mode&#8230;<\/p>\n","protected":false},"author":2,"featured_media":4046,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,5],"tags":[],"class_list":["post-2015","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-process-improvement","category-tips"],"_links":{"self":[{"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/posts\/2015","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=2015"}],"version-history":[{"count":3,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/posts\/2015\/revisions"}],"predecessor-version":[{"id":4287,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/posts\/2015\/revisions\/4287"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/media\/4046"}],"wp:attachment":[{"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/media?parent=2015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/categories?post=2015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/tags?post=2015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}