Womanade at The Pinehills

Providing Emergency Financial Aid for
Plymouth School Families

Womanade at The Pinehills is a registered 501 (c)3 charitable organization founded in 2007 by women residents of  The Pinehills who wanted to give back to the greater Plymouth community. Womanade welcomes all women residing in The Pinehills to join us in supporting our mission.

Mission

Our mission is to provide short-term, emergency financial assistance to families with children in the Plymouth Public Schools. Womanade works with a liaison from the Plymouth Schools who forwards requests initiated by teachers, nurses, psychologists, guidance counselors and principals working directly with the students.

In the past, Womanade has provided assistance including but not limited to: groceries, rent, utility bills, clothing, and personal items. Since 2007, Womanade at The Pinehills has helped over 500 families and children in the Plymouth Schools with emergency aid amounting to more than $300,000.

How to help

Anyone interested in supporting our mission is encouraged to send a donation in the form of a check made out to Womanade at The Pinehills. Our mailing address is:    

WOMANADE AT THE PINEHILLS

55 Stonebridge Road, Plymouth, MA 02360.

Residents of The Pinehills are welcome to join us at our bi-monthly gatherings. Our meetings are held on the second Monday of January, March, May, July, September, and November. Attendees are encouraged to make a donation in the suggested amount of $25 per person when attending a meeting.

We now accept donations on Venmo.

Light refreshments are provided by our guests.  If you would like to provide a sweet or savory refreshment for an upcoming meeting, please contact us at womanadeph@gmail.com.

If you are interested in becoming more involved in the “hands on” work of Womanade, you are encouraged to consider joining the Board of Directors. Positions are open to residents of The Pinehills.

More Information

If you would like to receive information regarding our programs, please contact Womanade at womanadeph@gmail.com or click the following link:

<div id="mc_embed_shell">

<link href="//cdn-images.mailchimp.com/embedcode/classic-061523.css" rel="stylesheet" type="text/css">

<style type="text/css">

#mc_embed_signup{background:#fff; false;clear:left; font:14px Helvetica,Arial,sans-serif; width: 600px;}

/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.

We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */

</style>

<div id="mc_embed_signup">

<form action="https://pinehills.us5.list-manage.com/subscribe/post?u=0d1b86a8bf318257e56a3e39b&amp;id=47f82a2622&amp;f_id=00bcbeedf0" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank">

<div id="mc_embed_signup_scroll"><h2>Subscribe</h2>

<div class="indicates-required"><span class="asterisk">*</span> indicates required</div>

<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 class="mc-field-group"><label for="mce-FNAME">First Name </label><input type="text" name="FNAME" class=" text" id="mce-FNAME" value=""></div><div class="mc-field-group"><label for="mce-LNAME">Last Name </label><input type="text" name="LNAME" class=" text" id="mce-LNAME" value=""></div><div class="mc-field-group"><label for="mce-PHONE">Phone Number </label><input type="text" name="PHONE" class="REQ_CSS" id="mce-PHONE" value=""></div>

<div id="mce-responses" class="clear foot">

<div class="response" id="mce-error-response" style="display: none;"></div>

<div class="response" id="mce-success-response" style="display: none;"></div>

</div>

<div aria-hidden="true" style="position: absolute; left: -5000px;">

/* real people should not fill this in and expect good things - do not remove this or risk form bot signups */

<input type="text" name="b_0d1b86a8bf318257e56a3e39b_47f82a2622" tabindex="-1" value="">

</div>

<div class="optionalParent">

<div class="clear foot">

<input type="submit" name="subscribe" id="mc-embedded-subscribe" class="button" value="Subscribe">

<p style="margin: 0px auto;"><a href="http://eepurl.com/iKIRes" title="Mailchimp - email marketing made easy and fun"><span style="display: inline-block; background-color: transparent; border-radius: 4px;"><img 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>

</div>

</div>

</div>

</form>

</div>

<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[4]='PHONE';ftypes[4]='phone';}(jQuery));var $mcj = jQuery.noConflict(true);

// SMS Phone Multi-Country Functionality

if(!window.MC) {

window.MC = {};

}

window.MC.smsPhoneData = {

defaultCountryCode: 'US',

programs: [],

smsProgramDataCountryNames: []

};

function getCountryUnicodeFlag(countryCode) {

return countryCode.toUpperCase().replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397))

};

// HTML sanitization function to prevent XSS

function sanitizeHtml(str) {

if (typeof str !== 'string') return '';

return str

.replace(/&/g, '&amp;')

.replace(/</g, '&lt;')

.replace(/>/g, '&gt;')

.replace(/"/g, '&quot;')

.replace(/'/g, '&#x27;')

.replace(/\//g, '&#x2F;');

}

// URL sanitization function to prevent javascript: and data: URLs

function sanitizeUrl(url) {

if (typeof url !== 'string') return '';

const trimmedUrl = url.trim().toLowerCase();

if (trimmedUrl.startsWith('javascript:') || trimmedUrl.startsWith('data:') || trimmedUrl.startsWith('vbscript:')) {

return '#';

}

return url;

}

const getBrowserLanguage = () => {

if (!window?.navigator?.language?.split('-')[1]) {

return window?.navigator?.language?.toUpperCase();

}

return window?.navigator?.language?.split('-')[1];

};

function getDefaultCountryProgram(defaultCountryCode, smsProgramData) {

if (!smsProgramData || smsProgramData.length === 0) {

return null;

}

const browserLanguage = getBrowserLanguage();

if (browserLanguage) {

const foundProgram = smsProgramData.find(

(program) => program?.countryCode === browserLanguage,

);

if (foundProgram) {

return foundProgram;

}

}

if (defaultCountryCode) {

const foundProgram = smsProgramData.find(

(program) => program?.countryCode === defaultCountryCode,

);

if (foundProgram) {

return foundProgram;

}

}

return smsProgramData[0];

}

function updateSmsLegalText(countryCode, fieldName) {

if (!countryCode || !fieldName) {

return;

}

const programs = window?.MC?.smsPhoneData?.programs;

if (!programs || !Array.isArray(programs)) {

return;

}

const program = programs.find(program => program?.countryCode === countryCode);

if (!program || !program.requiredTemplate) {

return;

}

const legalTextElement = document.querySelector('#legal-text-' + fieldName);

if (!legalTextElement) {

return;

}

// Remove HTML tags and clean up the text

const divRegex = new RegExp('</?[div][^>]*>', 'gi');

const fullAnchorRegex = new RegExp('<a.*?</a>', 'g');

const anchorRegex = new RegExp('<a href="(.*?)" target="(.*?)">(.*?)</a>');

const template = program.requiredTemplate.replace(divRegex, '');

legalTextElement.textContent = '';

const parts = template.split(/(<a href=".*?" target=".*?">.*?<\/a>)/g);

parts.forEach(function(part) {

if (!part) {

return;

}

const anchorMatch = part.match(/<a href="(.*?)" target="(.*?)">(.*?)<\/a>/);

if (anchorMatch) {

const linkElement = document.createElement('a');

linkElement.href = sanitizeUrl(anchorMatch[1]);

linkElement.target = sanitizeHtml(anchorMatch[2]);

linkElement.textContent = sanitizeHtml(anchorMatch[3]);

legalTextElement.appendChild(linkElement);

} else {

legalTextElement.appendChild(document.createTextNode(part));

}

});

}

function generateDropdownOptions(smsProgramData) {

if (!smsProgramData || smsProgramData.length === 0) {

return '';

}

return smsProgramData.map(program => {

const flag = getCountryUnicodeFlag(program.countryCode);

const countryName = getCountryName(program.countryCode);

const callingCode = program.countryCallingCode || '';

// Sanitize all values to prevent XSS

const sanitizedCountryCode = sanitizeHtml(program.countryCode || '');

const sanitizedCountryName = sanitizeHtml(countryName || '');

const sanitizedCallingCode = sanitizeHtml(callingCode || '');

return '<option value="' + sanitizedCountryCode + '">' + sanitizedCountryName + ' ' + sanitizedCallingCode + '</option>';

}).join('');

}

function getCountryName(countryCode) {

if (window.MC?.smsPhoneData?.smsProgramDataCountryNames && Array.isArray(window.MC.smsPhoneData.smsProgramDataCountryNames)) {

for (let i = 0; i < window.MC.smsPhoneData.smsProgramDataCountryNames.length; i++) {

if (window.MC.smsPhoneData.smsProgramDataCountryNames[i].code === countryCode) {

return window.MC.smsPhoneData.smsProgramDataCountryNames[i].name;

}

}

}

return countryCode;

}

function getDefaultPlaceholder(countryCode) {

if (!countryCode || typeof countryCode !== 'string') {

return '+1 000 000 0000'; // Default US placeholder

}

var mockPlaceholders = [

{

countryCode: 'US',

placeholder: '+1 000 000 0000',

helpText: 'Include the US country code +1 before the phone number',

},

{

countryCode: 'GB',

placeholder: '+44 0000 000000',

helpText: 'Include the GB country code +44 before the phone number',

},

{

countryCode: 'CA',

placeholder: '+1 000 000 0000',

helpText: 'Include the CA country code +1 before the phone number',

},

{

countryCode: 'AU',

placeholder: '+61 000 000 000',

helpText: 'Include the AU country code +61 before the phone number',

},

{

countryCode: 'DE',

placeholder: '+49 000 0000000',

helpText: 'Fügen Sie vor der Telefonnummer die DE-Ländervorwahl +49 ein',

},

{

countryCode: 'FR',

placeholder: '+33 0 00 00 00 00',

helpText: 'Incluez le code pays FR +33 avant le numéro de téléphone',

},

{

countryCode: 'ES',

placeholder: '+34 000 000 000',

helpText: 'Incluya el código de país ES +34 antes del número de teléfono',

},

{

countryCode: 'NL',

placeholder: '+31 0 00000000',

helpText: 'Voeg de NL-landcode +31 toe vóór het telefoonnummer',

},

{

countryCode: 'BE',

placeholder: '+32 000 00 00 00',

helpText: 'Incluez le code pays BE +32 avant le numéro de téléphone',

},

{

countryCode: 'CH',

placeholder: '+41 00 000 00 00',

helpText: 'Fügen Sie vor der Telefonnummer die CH-Ländervorwahl +41 ein',

},

{

countryCode: 'AT',

placeholder: '+43 000 000 0000',

helpText: 'Fügen Sie vor der Telefonnummer die AT-Ländervorwahl +43 ein',

},

{

countryCode: 'IE',

placeholder: '+353 00 000 0000',

helpText: 'Include the IE country code +353 before the phone number',

},

{

countryCode: 'IT',

placeholder: '+39 000 000 0000',

helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono',

},

{

countryCode: 'NO',

placeholder: '+47 000 00 000',

helpText: 'Inkluder NO landskode +47 før telefonnummeret',

},

{

countryCode: 'SE',

placeholder: '+46 00 000 00 00',

helpText: 'Inkludera SE landskod +46 före telefonnumret',

},

{

countryCode: 'DK',

placeholder: '+45 00 00 00 00',

helpText: 'Inkluder DK landekode +45 før telefonnummeret',

},

{

countryCode: 'FI',

placeholder: '+358 00 000 0000',

helpText: 'Sisällytä FI-maakoodi +358 ennen puhelinnumeroa',

},

{

countryCode: 'EE',

placeholder: '+372 0000 0000',

helpText: 'Lisage EE riigikood +372 telefoninumbri ette',

},

{

countryCode: 'PL',

placeholder: '+48 000 000 000',

helpText: 'Podaj numer kierunkowy PL +48 przed numerem telefonu',

},

{

countryCode: 'SK',

placeholder: '+421 000 000 000',

helpText: 'Pred telefónne číslo uveďte kód krajiny SK +421',

},

{

countryCode: 'LV',

placeholder: '+371 0000 0000',

helpText: 'Iekļaujiet LV valsts kodu +371 pirms tālruņa numura',

},

{

countryCode: 'LT',

placeholder: '+370 0000 0000',

helpText: 'Įtraukite LT šalies kodą +370 prieš telefono numerį',

},

{

countryCode: 'GR',

placeholder: '+30 000 000 0000',

helpText: 'Συμπεριλάβετε τον κωδικό χώρας GR +30 πριν από τον αριθμό τηλεφώνου',

},

{

countryCode: 'PT',

placeholder: '+351 000 000 000',

helpText: 'Inclua o código de país PT +351 antes do número de telefone',

},

{

countryCode: 'HR',

placeholder: '+385 00 000 0000',

helpText: 'Uključite HR pozivni broj države +385 prije telefonskog broja',

},

{

countryCode: 'SI',

placeholder: '+386 00 000 000',

helpText: 'Vključite SI kodo države +386 pred telefonsko številko',

},

{

countryCode: 'IS',

placeholder: '+354 000 0000',

helpText: 'Láttu IS landsnúmer +354 fylgja á undan símanúmerinu',

},

{

countryCode: 'LU',

placeholder: '+352 000 000 000',

helpText: 'Incluez le code pays LU +352 avant le numéro de téléphone',

},

{

countryCode: 'MC',

placeholder: '+377 00 00 00 00',

helpText: 'Incluez le code pays MC +377 avant le numéro de téléphone',

},

{

countryCode: 'AD',

placeholder: '+376 000 000',

helpText: 'Incloeu el codi de país AD +376 abans del número de telèfon',

},

{

countryCode: 'JE',

placeholder: '+44 0000 000000',

helpText: 'Include the JE country code +44 before the phone number',

},

{

countryCode: 'IM',

placeholder: '+44 0000 000000',

helpText: 'Include the IM country code +44 before the phone number',

},

{

countryCode: 'GG',

placeholder: '+44 0000 000000',

helpText: 'Include the GG country code +44 before the phone number',

},

{

countryCode: 'AL',

placeholder: '+355 00 000 0000',

helpText: 'Përfshini kodin e vendit AL +355 para numrit të telefonit',

},

{

countryCode: 'SM',

placeholder: '+378 0000 000000',

helpText: 'Includere il prefisso internazionale SM +378 prima del numero di telefono',

},

{

countryCode: 'FO',

placeholder: '+298 000000',

helpText: 'Inkluder FO landekode +298 før telefonnummeret',

},

{

countryCode: 'MT',

placeholder: '+356 0000 0000',

helpText: 'Include the MT country code +356 before the phone number',

},

{

countryCode: 'LI',

placeholder: '+423 000 0000',

helpText: 'Fügen Sie vor der Telefonnummer die LI-Ländervorwahl +423 ein',

},

{

countryCode: 'GI',

placeholder: '+350 000 00000',

helpText: 'Include the GI country code +350 before the phone number',

},

{

countryCode: 'MD',

placeholder: '+373 00 000 000',

helpText: 'Includeți codul de țară MD +373 înaintea numărului de telefon',

},

{

countryCode: 'HU',

placeholder: '+36 00 000 0000',

helpText: 'A telefonszám előtt adja meg a HU országkódot +36',

},

{

countryCode: 'NZ',

placeholder: '+64 00 000 0000',

helpText: 'Include the NZ country code +64 before the phone number',

},

{

countryCode: 'ME',

placeholder: '+382 00 000 000',

helpText: 'Uključite ME pozivni broj države +382 prije telefonskog broja',

},

];

const selectedPlaceholder = mockPlaceholders.find(function(item) {

return item && item.countryCode === countryCode;

});

return selectedPlaceholder ? selectedPlaceholder.placeholder : mockPlaceholders[0].placeholder;

}

function updatePlaceholder(countryCode, fieldName) {

if (!countryCode || !fieldName) {

return;

}

const phoneInput = document.querySelector('#mce-' + fieldName);

if (!phoneInput) {

return;

}

const placeholder = getDefaultPlaceholder(countryCode);

if (placeholder) {

phoneInput.placeholder = placeholder;

}

}

function updateCountryCodeInstruction(countryCode, fieldName) {

updatePlaceholder(countryCode, fieldName);

}

function getDefaultHelpText(countryCode) {

var mockPlaceholders = [

{

countryCode: 'US',

placeholder: '+1 000 000 0000',

helpText: 'Include the US country code +1 before the phone number',

},

{

countryCode: 'GB',

placeholder: '+44 0000 000000',

helpText: 'Include the GB country code +44 before the phone number',

},

{

countryCode: 'CA',

placeholder: '+1 000 000 0000',

helpText: 'Include the CA country code +1 before the phone number',

},

{

countryCode: 'AU',

placeholder: '+61 000 000 000',

helpText: 'Include the AU country code +61 before the phone number',

},

{

countryCode: 'DE',

placeholder: '+49 000 0000000',

helpText: 'Fügen Sie vor der Telefonnummer die DE-Ländervorwahl +49 ein',

},

{

countryCode: 'FR',

placeholder: '+33 0 00 00 00 00',

helpText: 'Incluez le code pays FR +33 avant le numéro de téléphone',

},

{

countryCode: 'ES',

placeholder: '+34 000 000 000',

helpText: 'Incluya el código de país ES +34 antes del número de teléfono',

},

{

countryCode: 'NL',

placeholder: '+31 0 00000000',

helpText: 'Voeg de NL-landcode +31 toe vóór het telefoonnummer',

},

{

countryCode: 'BE',

placeholder: '+32 000 00 00 00',

helpText: 'Incluez le code pays BE +32 avant le numéro de téléphone',

},

{

countryCode: 'CH',

placeholder: '+41 00 000 00 00',

helpText: 'Fügen Sie vor der Telefonnummer die CH-Ländervorwahl +41 ein',

},

{

countryCode: 'AT',

placeholder: '+43 000 000 0000',

helpText: 'Fügen Sie vor der Telefonnummer die AT-Ländervorwahl +43 ein',

},

{

countryCode: 'IE',

placeholder: '+353 00 000 0000',

helpText: 'Include the IE country code +353 before the phone number',

},

{

countryCode: 'IT',

placeholder: '+39 000 000 0000',

helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono',

},

{

countryCode: 'NO',

placeholder: '+47 000 00 000',

helpText: 'Inkluder NO landskode +47 før telefonnummeret',

},

{

countryCode: 'SE',

placeholder: '+46 00 000 00 00',

helpText: 'Inkludera SE landskod +46 före telefonnumret',

},

{

countryCode: 'DK',

placeholder: '+45 00 00 00 00',

helpText: 'Inkluder DK landekode +45 før telefonnummeret',

},

{

countryCode: 'FI',

placeholder: '+358 00 000 0000',

helpText: 'Sisällytä FI-maakoodi +358 ennen puhelinnumeroa',

},

{

countryCode: 'EE',

placeholder: '+372 0000 0000',

helpText: 'Lisage EE riigikood +372 telefoninumbri ette',

},

{

countryCode: 'PL',

placeholder: '+48 000 000 000',

helpText: 'Podaj numer kierunkowy PL +48 przed numerem telefonu',

},

{

countryCode: 'SK',

placeholder: '+421 000 000 000',

helpText: 'Pred telefónne číslo uveďte kód krajiny SK +421',

},

{

countryCode: 'LV',

placeholder: '+371 0000 0000',

helpText: 'Iekļaujiet LV valsts kodu +371 pirms tālruņa numura',

},

{

countryCode: 'LT',

placeholder: '+370 0000 0000',

helpText: 'Įtraukite LT šalies kodą +370 prieš telefono numerį',

},

{

countryCode: 'GR',

placeholder: '+30 000 000 0000',

helpText: 'Συμπεριλάβετε τον κωδικό χώρας GR +30 πριν από τον αριθμό τηλεφώνου',

},

{

countryCode: 'PT',

placeholder: '+351 000 000 000',

helpText: 'Inclua o código de país PT +351 antes do número de telefone',

},

{

countryCode: 'HR',

placeholder: '+385 00 000 0000',

helpText: 'Uključite HR pozivni broj države +385 prije telefonskog broja',

},

{

countryCode: 'SI',

placeholder: '+386 00 000 000',

helpText: 'Vključite SI kodo države +386 pred telefonsko številko',

},

{

countryCode: 'IS',

placeholder: '+354 000 0000',

helpText: 'Láttu IS landsnúmer +354 fylgja á undan símanúmerinu',

},

{

countryCode: 'LU',

placeholder: '+352 000 000 000',

helpText: 'Incluez le code pays LU +352 avant le numéro de téléphone',

},

{

countryCode: 'MC',

placeholder: '+377 00 00 00 00',

helpText: 'Incluez le code pays MC +377 avant le numéro de téléphone',

},

{

countryCode: 'AD',

placeholder: '+376 000 000',

helpText: 'Incloeu el codi de país AD +376 abans del número de telèfon',

},

{

countryCode: 'JE',

placeholder: '+44 0000 000000',

helpText: 'Include the JE country code +44 before the phone number',

},

{

countryCode: 'IM',

placeholder: '+44 0000 000000',

helpText: 'Include the IM country code +44 before the phone number',

},

{

countryCode: 'GG',

placeholder: '+44 0000 000000',

helpText: 'Include the GG country code +44 before the phone number',

},

{

countryCode: 'AL',

placeholder: '+355 00 000 0000',

helpText: 'Përfshini kodin e vendit AL +355 para numrit të telefonit',

},

{

countryCode: 'SM',

placeholder: '+378 0000 000000',

helpText: 'Includere il prefisso internazionale SM +378 prima del numero di telefono',

},

{

countryCode: 'FO',

placeholder: '+298 000000',

helpText: 'Inkluder FO landekode +298 før telefonnummeret',

},

{

countryCode: 'MT',

placeholder: '+356 0000 0000',

helpText: 'Include the MT country code +356 before the phone number',

},

{

countryCode: 'LI',

placeholder: '+423 000 0000',

helpText: 'Fügen Sie vor der Telefonnummer die LI-Ländervorwahl +423 ein',

},

{

countryCode: 'GI',

placeholder: '+350 000 00000',

helpText: 'Include the GI country code +350 before the phone number',

},

{

countryCode: 'MD',

placeholder: '+373 00 000 000',

helpText: 'Includeți codul de țară MD +373 înaintea numărului de telefon',

},

{

countryCode: 'HU',

placeholder: '+36 00 000 0000',

helpText: 'A telefonszám előtt adja meg a HU országkódot +36',

},

{

countryCode: 'NZ',

placeholder: '+64 00 000 0000',

helpText: 'Include the NZ country code +64 before the phone number',

},

{

countryCode: 'ME',

placeholder: '+382 00 000 000',

helpText: 'Uključite ME pozivni broj države +382 prije telefonskog broja',

},

];

if (!countryCode || typeof countryCode !== 'string') {

return mockPlaceholders[0].helpText;

}

const selectedHelpText = mockPlaceholders.find(function(item) {

return item && item.countryCode === countryCode;

});

return selectedHelpText ? selectedHelpText.helpText : mockPlaceholders[0].helpText;

}

function setDefaultHelpText(countryCode) {

const helpTextSpan = document.querySelector('#help-text');

if (!helpTextSpan) {

return;

}

}

function updateHelpTextCountryCode(countryCode, fieldName) {

if (!countryCode || !fieldName) {

return;

}

setDefaultHelpText(countryCode);

}

function initializeSmsPhoneDropdown(fieldName) {

if (!fieldName || typeof fieldName !== 'string') {

return;

}

const dropdown = document.querySelector('#country-select-' + fieldName);

const displayFlag = document.querySelector('#flag-display-' + fieldName);

if (!dropdown || !displayFlag) {

return;

}

const smsPhoneData = window.MC?.smsPhoneData;

if (smsPhoneData && smsPhoneData.programs && Array.isArray(smsPhoneData.programs)) {

dropdown.innerHTML = generateDropdownOptions(smsPhoneData.programs);

}

const defaultProgram = getDefaultCountryProgram(smsPhoneData?.defaultCountryCode, smsPhoneData?.programs);

if (defaultProgram && defaultProgram.countryCode) {

dropdown.value = defaultProgram.countryCode;

const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName);

if (flagSpan) {

flagSpan.textContent = getCountryUnicodeFlag(defaultProgram.countryCode);

flagSpan.setAttribute('aria-label', sanitizeHtml(defaultProgram.countryCode) + ' flag');

}

updateSmsLegalText(defaultProgram.countryCode, fieldName);

updatePlaceholder(defaultProgram.countryCode, fieldName);

updateCountryCodeInstruction(defaultProgram.countryCode, fieldName);

}

var smsNotRequiredRemoveCountryCodeEnabled = true;

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":true,"order":"1","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":true,"order":"2","field_type":"merge"},"PHONE":{"name":"PHONE","label":"Phone Number","helper_text":"","type":"phone","required":false,"audience_field_name":"Phone Number","phoneformat":"none","merge_id":4,"help_text_enabled":false,"enabled":true,"order":"3","field_type":"merge"}}).find(function(f) { return f.name === fieldName && f.type === 'smsphone'; });

var isRequired = smsField ? smsField.required : false;

var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true;

var phoneInput = document.querySelector('#mce-' + fieldName);

if (phoneInput && defaultProgram.countryCallingCode && shouldAppendCountryCode) {

phoneInput.value = defaultProgram.countryCallingCode;

}

displayFlag?.addEventListener('click', function(e) {

dropdown.focus();

});

dropdown?.addEventListener('change', function() {

const selectedCountry = this.value;

if (!selectedCountry || typeof selectedCountry !== 'string') {

return;

}

const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName);

if (flagSpan) {

flagSpan.textContent = getCountryUnicodeFlag(selectedCountry);

flagSpan.setAttribute('aria-label', sanitizeHtml(selectedCountry) + ' flag');

}

const selectedProgram = window.MC?.smsPhoneData?.programs.find(function(program) {

return program && program.countryCode === selectedCountry;

});

var smsNotRequiredRemoveCountryCodeEnabled = true;

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":true,"order":"1","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":true,"order":"2","field_type":"merge"},"PHONE":{"name":"PHONE","label":"Phone Number","helper_text":"","type":"phone","required":false,"audience_field_name":"Phone Number","phoneformat":"none","merge_id":4,"help_text_enabled":false,"enabled":true,"order":"3","field_type":"merge"}}).find(function(f) { return f.name === fieldName && f.type === 'smsphone'; });

var isRequired = smsField ? smsField.required : false;

var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true;

var phoneInput = document.querySelector('#mce-' + fieldName);

if (phoneInput && selectedProgram.countryCallingCode && shouldAppendCountryCode) {

phoneInput.value = selectedProgram.countryCallingCode;

}

updateSmsLegalText(selectedCountry, fieldName);

updatePlaceholder(selectedCountry, fieldName);

updateCountryCodeInstruction(selectedCountry, fieldName);

});

}

document.addEventListener('DOMContentLoaded', function() {

const smsPhoneFields = document.querySelectorAll('[id^="country-select-"]');

smsPhoneFields.forEach(function(dropdown) {

const fieldName = dropdown?.id.replace('country-select-', '');

initializeSmsPhoneDropdown(fieldName);

});

});

</script></div>

Donate

Financial support in the form of a check made out to Womanade at The Pinehills is greatly appreciated and may be mailed to: Womanade at The Pinehills, 55 Stonebridge Road, Plymouth, MA 02360.

Womanade at The Pinehills 

Providing financial assistance for families in the
Plymouth Public Schools

 

Intuit Mailchimp logo