scrubMonetary

Scrub monetary signs from value.

Parameters

submit

Submit PDF generator form.

component

Output a location name when given a location ID.

component

Output a location name when given a location ID.

component

Display the appropriate edit button/link for the various types of gift payment types.

component

Indicates the payment method (credit card, paypal, etc...) of a recurring gift from either LOM or BBCRM.

component

Supporter center debug bar.

component

Summary of giving component.

sponsoredChildTemplate

Component is in used to render the children on the dashboard

bbcrmKeyMap

Maps & data

bbcrmGiftPredicateActive

Predicates

transposeBBCRMKeys

Transformers

Parameters

bbcrmFormatCcExpiryDate

Format an expiration date provided by BBCRM.

TW#10358693 - Due to a bug in the api, some expiration dates contain a date part of "00". Since we're omitting the date part from our formatted return string (M/YYYY) we're simply ignoring the date portion of the provided date.

Parameters

Returns string Formatted date in M/YYYY format.

bbcrmGiftsFilterActive

Logic

Parameters

sfClone

File of utilities that aid in interactions with smart fields.

sfClone

Gets clone of smartfields object from Vuex. Not accessing the clone was resulting in unusual results. Also, cache results for speed.

Parameters

Returns any array

sfExtractFieldsbyName

Extract array of smartfields by name.

Parameters

Returns any array

sfExtractField

Extract a smartfield by name. Else return null.

Parameters

Returns any null|obj

sfExtractFieldValue

Extract a smartfield's value. If doesn't exist then return the default.

Parameters

Returns any mixed

MemberCenter

Main app of the Member Center (not a Vue instance, that's provided by the router)

bbcrmFetchData

Mixin for fetching transactiond data from "the window" via "the proxy" and stashing it in the vuex store.

TW#9919507 - Instead of automatically fetching all data onCreate, make the vm explicitly call the necessary methods or the inclusive bbcrmFetchAll method. This allows the logic to be repurposed across components.

cancelForm

formats cc inputs

childLivesInMixin

Calculates value for "i live in" attribute of a child's record. The child's home country should be returned for this attribute. Because the ODS data model is not strictly geographic and requires some aliasing it is necessary to apply some logic here rather than simply returning a string from the child's record.

Note: For this mixin to work the chid object must have been fetched from ODS with their countryOffice expanded. (ie. $expand=community($expand=impactArea($expand=countryOffice)))

formatCCinputs

formats cc inputs

giftDeduplicationMixin

Deduplicates LOM/BBCRM gifts in store by finding BBCRM gifts with an 'LOPledgeID' that matches an 'id' of a LOM gift. If found, add bbcrm gift to lom gift and remove BBCRM gift from store.

giftV2CanEditMixin

Some computeds which dictated whether a given gift can be editted by the user.

internationalAddressDetectionMixin

Provides some flags which indicate whether the the user is international or domestic.

Expects the user's data to be present in localAccount.

isICSMixin

Returns true if the current child has the same id as the ICS category

Note: For this mixin to work the child object must have been fetched from ODS and the sponsorship categories must also have been detched from ODS.

lightboxMixin

Display's the element identified by this.$els[el] in a lightbox.

lomFetchData

Mixin which fetches transaction data from LOM.

formats cc inputs

setDefaultState

formats cc inputs

SurveyMixin

getSurvey

get the survey via API

Parameters

parseSurvey

Gets API data, parses it and puts it into a uniform object

Parameters

Returns [type] [description]

orderQuestions

orders questions by rank of each question for ease of rendering and tracking

Parameters

Returns array an array of ordered questions

processQuestion

goes through the question and assigns it's parameter

Parameters

Returns object [description]

isFormValid

Checks if all the required fields on the form have been entered

Parameters

Returns boolean returns true if all required fiels have been entered, false otherwise

submitSurvey

submits the survey to the API, the response is sent to submitSurveyCallback()

submitSurveyCallback

process response of the Survey submission

Parameters

updateSVGsMixin

Mixing that goes through the component, finds SVG images and triggers an SVG rewrite function

zipPhoneMasking

formats zip input

analyticsPageNameMap

Provides router path to pagename mapping fo the analytics.

getLinkName

Returns the name of the link based on elements attributes or a current route

Parameters

Returns [type] [description]

setupAnalyticsClicks

Sets up a member center anlaytics handler after each transition. This enables us to accurately track clicked links in each page/view.

Parameters

triggerPageView

Records a virtual page view in analytics

Parameters

Returns [type] [description]

updateIframes

Adds in resizing function to iframes, add in markup for analytics

updateIframes

Adds in resizing function to iframes, add in markup for analytics

enableValidation

Enables the form validation on all forms & sets up the validation success callbacks.

Returns [type] [description]

enableZipMaskingValidation

Enables zip masking and validation based on the country

Parameters

mailingAddressCheckSetCustomError

Sets a custom error message next to the mailing address checkbox if mailing fields are empty. Removes it when we have fewer than 4 errors in the mailing form. TW#10167792

Parameters

primaryIsMailing

Computes if the primary address is the same as mailing

Returns [type] [description]

save

Submits the forms within Manage My Account for saving by the Luminate.

Parameters

setBillingAsPrimary

Updates the billing address based on "Make this my mailing address" checkbox. Sets the values of the billing address if the box is checks, sets to empty otherwise.

updateAlternativeAddressField

Helper function that updates one field in the alternative address

Parameters

enableFancybox

Enables fancybox interactions within the body content of the component

sponsorshipGiftsFetched


Giving getters


Parameters