(function(window){window.MDIGITAL=window.MDIGITAL||{};window.MDIGITAL.version='2.38.0';})(window);window.KAMPYLE_CONSTANT={PLACEHOLDERS:{URL_PREFIX:'https://resources.digital-cloud-gov.medallia.com/',USERSNAP_CDN_URL:'//screencaptue-cdn.kampyle.com/',USERSNAP_HOST_PREFIX:'//screencapture.kampyle.com/',COOLADATA_SRC_PREFIX:'//nebula-cdn.kampyle.com/',COOLDATA_API_HOST:'udc-neb.kampyle.com/',USERSNAP_V4_HOST_PREFIX:'//scp.kampyle.com',USERSNAP_ONPREM_HOST_PREFIX:'https://md-scp.kampyle.com/'},SRC:{OPEN_SANS:'resources/form/FormBuilder/vendor/fonts-googleapis/css/open-sans-v14.css',KLOADER:'resources/onsite/images/kloader.gif',COOLADATA:'resources/onsite/js/cool-2.1.15.min.js',OOPS:'resources/onsite/images/oops.svg'},FORM_HEIGHT:'450',FORM_WIDTH:'450',COOKIE_EXPIRATION:365,DEVICES:{DESKTOP:'desktop',MOBILE:'mobile',TABLET:'tablet',},FEATURE_VERSIONS:{MOBILE_DYNAMIC_SIZING:2,},TIME_FORMATS:{SECONDS:'seconds',MINUTES:'minutes',HOURS:'hours',DAYS:'days',WEEKS:'weeks',MONTHS:'months',YEARS:'years',},DISPLAY_TYPES:{LIGHTBOX:'lightbox',ANIMATION:'animation',POPUP:'popup',EMBEDDED:'embedded',},FORM_TYPES:{EMBEDDED:'embedded',INVITATION:'invitation',BUTTON:'button',CODE:'code',},EVENT_DATA:{PAGE_NUMBER:'pageNumber',FEEDBACK_CORRELATION_UUID:'feedbackCorrelationUUID',FEEDBACK_UUID:'feedbackUUID'},EVENT_NAME:{NEB_LOAD_FORM:'neb_loadForm'},FEATURE_FLAGS:{WCAG:'WCAG',EXEMPT_BUTTON_FORMS_FROM_QUARANTINE:'exemptButtonFormsFromQuarantine',EXEMPT_EMBEDDED_FORMS_FROM_QUARANTINE:'exemptEmbeddedFormsFromQuarantine',EXEMPT_CODE_FORMS_FROM_QUARANTINE:'exemptCodeFormsFromQuarantine'},PROVISIONS:{cooladataNewEvents:'cooladataNewEvents',NEW_SCREEN_CAPTURE_CONFIG:'newScreenCaptureConfiguration',ON_PREM_HYBRID:'onPremHybrid',API_GATEWAY:'apiGateway',LOCALIZED_FORMS:'localizedForms',FORM_TEMPLATE_DATA_SEPERATION:'separateFormTemplateFromData',EVENT_INCLUDE_FEEDBACK_CONTENT:'eventIncludeFeedbackContent',CP_EXT_REFACTOR:'cpExtractRefactor',ADOBE_INCLUDE_LINK_TRACK_VARS:'adobeIncludeLinkTrackVars',ADOBE_ANALYTICS_OBJECT_NAME:'adobeAnalyticsObjectName',ADOBE_CONCAT_LINK_TRACK_VARS:'adobeConcatLinkTrackVars',ENABLE_OVERFLOW:'enableOverflow',SERVER_BASED_TARGETING:'serverBasedTargeting',NATIVE_SCREEN_CAPTURE:'nativeScreenCapture',COOLADATA_EVNETS_LIMIT:'cooladataEventsLimit',UBT_EXTRA_EVENTS:'UBTExtraEvents',ALTERNATIVE_UUID:'alternativeUUID',DISABLE_COOKIE_STORAGE:'cookieStorageDisable',SHARE_PROPERTY_DOMAIN:'sharePropertyBetweenSubdomains',SKIP_INVITATION_OPTIMIZATION:'skipInvitationOptimization',COOLADATA_SUBMITTED_BY_XHR:'cooladataSubmittedByXhr',DO_NOT_SURVEY_ON_UBT_NETWORK_FAIL:'doNotSurveyOnUBTNetworkFail',DHH:'dynamicHybridHosting',USER_SNAP_V4:'userSnapV4',USER_SNAP_ONPREM:'21dcr2_MPC3296_enable_usersnapOnpremCSP',DYNAMIC_ONSITE_EVENTS:'dynamicOnsiteEvents',CSP_RULES:'CSPRemoveInlineStyling',CREATE_SESSION:'cooladataCreateSessionEvent',FORM_TEMPLATES_WCAG:'formTemplatesWCAG',PREVENT_IFRAME_SCROLLBAR_FLICKERING:'20dcr32_NM11146_PreventIFrameScrollFlickering',BACKEND_GENERATED_UUID:'20dcr4_MPC2802_enable_backendGeneratedUUID',CHTML_LOGS:'chtmlLogs',EXEMPT_FORMS_FROM_QUARANTINE:'20dcr4_MPC2952_enable_exemptFormsFromQuarantine',USER_SNAP_AS_COMPONENT:'20dcr4_MPC2893_enable_ScreenCaptureAsComponent',ADDITIONAL_BUTTON_STYLES:'21dcr1_MPC3199_AdditionalButtonStyles',COOLADATA_UPGRADE:'21dcr1_MPC2883_UpgradeCooladataVersion',RTL:'21dcr1_MPC_3283_enable_RTL',GREATER_SMALLER_THAN_DECODE:'21dcr1_MPC3370_EnableGreaterSmallerThanSupport',EMBEDDED_TARGETING:'21dcr2_MPC2800_enable_EmbeddedTargeting',NEW_MODAL_DIALOGS:'21dcr3_MPC3281_enable_newModalDialogs',IS_CHTML_HANDLE_INIT_FOCUS_INDEPENDENTLY:'21dcr3_MPC3281_enable_CHTMLHandleFocusIndependently',WCAG_TRAP_FOCUS_IN_MODAL:'WCAGTrapFocusInModal',WCAG_REVIEW_FIXES:'20dcr4_MPC2905_wcagReviewFixes',PROPERTY_MESSAGES:'propertyMessages',NOT_SCROLL_TO_LAST_POSITION_DISPLAY_TYPE_ANIMATION:'willNotScrollToLastPositionDisplayTypeAnimation',CLEAR_EMBEDDED_ON_UPDATE_PAGE:'21dcr2_MPC3571_enable_ClearEmbeddedFormOnUpdatePageView',ENABLE_EVENTS_FOR_CE_DEBUG:'21DCR2_MPC3662_EnableEventsForCEDebug'},MEDALLIA_DIGITAL_EMBED_FILE:'medallia-digital-embed.js',DEFAULT_ADOBE_SDK_NAME:'s',ONPREM_URL_PREFIX:'/****ONPREM_URL_PREFIX****/',ONPREM_UDC_PREFIX:'/****JS_UDC****/',ANALYTICS_EVENT_FORBIDDEN_PROPERTIES:{sourceWindow:true,content:true,feedbackCorrelationUUID:true},FORM_TRIGGER_TYPES_MAP:{embedded:'Embedded',invitation:'Intercept',button:'AlwaysOn',code:'TriggeredByCode',},LANG_MEMORY_DATA_KEY_PREFIX:'formLanguage:',FORM_JSON_DATA_KEY_PREFIX:'formJsonData:',INVITE_JSON_DATA_KEY_PREFIX:'inviteJsonData:',FORM_BUTTON:'button',FORM_INVITATION:'invitation',CUSTOM_EVENT_OTHER:'Other',EXPOSED_FORM_ID_LABEL:'Form_ID',EXPOSED_FORM_TYPE_LABEL:'Form_Type',EXPOSED_FEEDBACK_UUID_LABEL:'Feedback_UUID',EXPOSED_FEEDBACK_CONTENT_LABEL:'Content',LOCALIZED_FORM_DEFAULT_REPLACE_VALUE:'default',NOT_RECORDING:'NOT_RECORDING',IFRAME_SETTINGS:{EMBEDDED:{IFRAME_ID_PREFIX:"embeddedIframe"},LIGHTBOX:{IFRAME_ID_PREFIX:"kampyleForm",CONTAINER_ID_PREFIX:"kampyleFormModal"},ANIMATION:{CONTAINER_ID:'KampyleAnimationContainer',IFRAME_ID:'kampyleFormAnimation',},INVITATION:{IFRAME_ID:'kampyleInvite',CONTAINER_ID:'kampyleInviteModal',IFRAME_TITLE:'Invitation to provide feedback'},OOPS:{CONTAINER_ID_PREFIX:'mdigital-no-json-modal_',CLOSE_BUTTON_ID:'close-no-json-modal'},IFRAME_TITLE:"Feedback Survey",},PROPERTY_SETTINGS:{MANUALLY_INVITE_TARGETING:'MANUALLY_INVITE_TARGETING',CUSTOM_CSS_UPLOAD:'CUSTOM_CSS_UPLOAD'},EVENTS:{MDIGITAL_MANUALLY_INVITE_TARGETING:'MDigital_manuallyInviteTargeting',MDIGITAL_PAGE_TARGETING_PHASE_ENDED:'MDigital_pageTargetingPhaseEnded',MDIGITAL_BEHAVIORAL_TARGETING_PHASE_ENDED:'MDigital_behavioralTargetingPhaseEnded',MDIGITAL_QUARANTINED_SURVEY_PHASE_ENDED:'MDigital_quarantinedSurveyPhaseEnded',MDIGITAL_TARGETING_RULE_EVALUATED:'MDigital_targetingRuleEvaluated',MDIGITAL_SCREEN_CAPTURE_LOADED:'neb_screenCaptureLoaded',MDIGITAL_SDK_PAGE_VIEW:'neb_sdkPageView',MDIGITAL_WARNING:'MDigital_warning',MDIGITAL_COULD_NOT_FETCH_DATA:'MDigital_couldNotFetchData',MDIGITAL_COULD_NOT_LOAD_FORM_APPLICATION:'MDigital_couldNotLoadFormApplication',NEB_EVENT_DISPATCHER_ERROR:'neb_eventDispatcherError',NEB_LOAD_FORM:'neb_loadForm',NEB_FORM_LOADING_HAS_FAILED:'neb_formLoadingHasFailed',MDIGITAL_DYNAMIC_ONSITE_INITIALIZED_SUCCESSFULLY:'MDigital_DynamicOnsiteInitializedSuccessfully',CREATE_SESSION:'createSession',MDIGITAL_NO_JSON_MODAL_SHOWN:'MDigital_noJsonModalShown',MDIGITAL_NO_JSON_MODAL_CLOSED:'MDigital_noJsonModalClosed',MDIGITAL_UPDATE_TARGETING_WITH_DECLINED_DATE_FORM_CLOSED:'MDigital_updateTargetingWithDeclinedDateFormClosed',MDIGITAL_UPDATE_TARGETING_WITH_DECLINED_DATE_INVITE_DECLINED:'MDigital_updateTargetingWithDeclinedDateInviteDeclined',MDIGITAL_CHTML_LOGS:'MDigital_CHTML_Logs',SCREEN_CAPTURE_RETAKE:'MDigital_screenCaptureRetake',SCREEN_CAPTURE_DELETE:'MDigital_screenCaptureDelete',CUSTOM_EVENTS_DEBUG_MESSAGE:'mdigital_customEventsDebugMessage'},LOG_MESSAGES:{TRIGGER_MESSAGE_TEMPLATE:'Event {{EVENT_NAME}} has been {{STATUS}}. \n the data is: {{DATA}}. \n the context is :{{CONTEXT}}. \n the options are : {{OPTIONS}}.\n',ERROR_LOG_TEMPLATE:'Error Message is {{ERROR_MESSAGE}}',ERROR_DYNAMIC_ONSITE_INITIALIZATION:'Failed to fetch onsite data.',ERROR_ONSITE_SDK_CONFIGURATION_MISSING:'Failed to execute KAMPYLE_ONSITE_SDK.{{METHOD}}, due to missing onsite configuration.'},LOG_STATUSES:{FAILED:'failed',TRIGGERED:'triggered'},OPERATORS:{REGEX:'regex',EQUALS:'equals',DOES_NOT_EQUAL:'doesnotequal',CONTAINS:'contains',DOES_NOT_CONTAIN:'doesnotcontain',STARTS_WITH:'startswith',ENDS_WITH:'endswith',HAS_VALUE:'hasvalue',LATER_THAN:'laterthan',EARLIER_THAN:'earlierthan',GREATER_THAN:'greaterthan',SMALLER_THAN:'smallerthan'},TARGETING_STATUS:{CANDIDACY:'candidacy',TRIGGERED:'triggered',QUARANTINED:'quarantined'},TARGETING_PHASES:{PAGE_TARGETING:"pageTargeting",BEHAVIORAL_TARGETING:"behavioralTargeting",QUARANTINE_TARGETING:"quarantineTargeting"},TARGETING_RULES:{INVITE_IF_ANY_SURVEY_ALREADY_SUBMITTED_PER_SESSION:'InviteAnySurveyAlreadySubmittedPerSession',INVITE_IF_ANY_INVITE_ALREADY_SHOWN_PER_SESSION:'InvitePerSession'},REGIONS:{DEV:'dev',QA:'qa',COLO_QA:'digital-cloud-qa',COLO_US:'digital-cloud-us',},MEMORY_DATA_FIELDS:{MDIGITAL_ALTERNATIVE_UUID:'mdigital_alternative_uuid',FETCHING_DATA_IN_PROGRESS:'FETCHING_DATA_IN_PROGRESS_',DATA_JSON:'dataJson',HAS_ONSITE_CONFIGURATION:'hasOnsiteConfiguration',TIMEOUT_HANDLERS:'mdTimeoutHandlers',FEEDBACK_CORRELATION_UUID:'feedbackCorrelationUUID',IS_BUTTON_CONTAINER_CREATED:'isButtonContainerCreated',REGION:'region',FEEDBACK_BUTTON_POSITION_STYLE:'buttonPositionStyle'},SESSION_DATA_FIELDS:{IS_SURVEY_SUBMITTED_IN_SESSION:'md_isSurveySubmittedInSession'},TIMEOUT_HANDLERS:{FORM_APP_STATUS:'formAppStatus',EMBEDDED_STATUS:'embeddedFormStatus',},CSS_FONT_RULE:'CSSFontFaceRule',NETWORK:{RETRY_TIMEOUT:1000,REQUEST_TIMEOUT:5000,TIME_FOR_FORM_TO_LOAD_MS:60000,NUM_OF_RETRIES:3},ERROR_CODE:{SECURITY_ERROR:18},KEY_CODES:{SPACE:32,TAB:9,ENTER:13,ESC:27,},BROWSERS:{IE:'IE',CHROME:'Chrome',FIREFOX:'Firefox',SAFARI:'Safari'},URLS:{KMA_UDC:'https://nginx-log-post.kampyle.com/?data='},TEXTS:{DEFAULT_JSON_ERROR_MESSAGES:{title:'Oops...',body:'We can’t collect your feedback at the moment.
Refresh your page and try again',close:'Close this modal',},SCREEN_CAPTURE:{DEFAULT_DESCRIPTION:'Click "Capture Image" button or drag the cursor to highlight a specific area'}},FORM_LOADING_FAILURE_CAUSE:{APPLICATION_FAILED:'applicationFailed',JSON_FAILED:'jsonFailed'},PROPERTY_MESSAGES:{NO_JSON_MESSAGE:{TYPE:'noJsonMessage',KEYS:{TITLE:'title',BODY:'body',CLOSE:'close'}}},BROWSER_EVENTS:{FOCUS:'focus',MOUSE_DOWN:'mousedown'},COOLADATA_INSTANCE_NAME:"cooladata_instance_for_medallia_digital",SCREEN_CAPTURE:{DOM_SELECTION:"DOM_SELECTION",DOM_SELECTION_VALUE:"domSelector",AREA_SELECTION_VALUE:"highlight",},COOLADATA_HTTP_EVENTS_BY_METHOD:{BEFORE:{GET:'neb_beforeHttpGetRequest',POST:'neb_beforeHttpPostRequest'},AFTER:{GET:'neb_afterHttpGetRequest',POST:'neb_afterHttpPostRequest'},TIMEOUT:{GET:'neb_afterHttpGetRequestOnTimeout',POST:'neb_afterHttpPostRequestOnTimeout'},ERROR:{GET:'neb_afterHttpGetRequestOnError',POST:'neb_afterHttpPostRequestOnError'},ERROR_STATUS_CODE:{GET:'neb_afterHttpGetRequestOnErrorStatusCode',POST:'neb_afterHttpPostRequestOnErrorStatusCode'}},HTTP_METHODS:{GET:'GET',POST:'POST'},COLORS:{USERSNAP_V4_SELECTION_COLOR:"#fb585b",USERSNAP_ONPREM_SELECTION_COLOR:"#004CCB",},VIEW:{FEEDBACK_BUTTON_ID:'nebula_div_btn',FEEDBACK_BUTTON_CONTAINER_ID:'kampyleButtonContainer',},CLOSE_FORM_PARAM_VALUES:{ALL:'all',EMBEDDED:'embedded',MODAL:'modal'}};window.MDIGITAL.CONFIGURATION=(function(window,document){function init(){KAMPYLE_DATA.setMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.HAS_ONSITE_CONFIGURATION,false);var basicConfig=getOnsiteConfiguration();var region=basicConfig&&basicConfig.region||KAMPYLE_CONSTANT.REGIONS.DEV;KAMPYLE_DATA.setMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.REGION,region);}
function isOnsiteConfigurationMissing(){return!KAMPYLE_DATA.getMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.HAS_ONSITE_CONFIGURATION);}
function getOnsiteConfiguration(){var dataJson=KAMPYLE_DATA.getMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.DATA_JSON);if(dataJson){return dataJson;}
return{"provisions":{"21dcr1_mpc3281_alignWCAGLogoMarkup":null,"mobileSDKUseSDKMetaDataInsteadOfUA":null,"20dcr4_MPC2905_wcagReviewFixes":null,"cpExtractRefactor":null,"chtmlLogs":null,"disableFormReloadOnClose":null,"mobileSDKV2FormWCAGSupport":null,"googleAnalyticsClientEventsEnabled":null,"20dcr4_MPC2802_enable_backendGeneratedUUID":null,"tealeafEnabled":null,"21dcr2_MPC2743_enable_newLiveForm":null,"mobileSdkSupport":null,"cooladataNewEvents":null,"20dcr4_MPC2893_enable_ScreenCaptureAsComponent":null,"adobeAnalytics":null,"eventIncludeFeedbackContent":null,"userSnapV4":null,"dynamicModalSizeInCustomHtml":null,"mobileSDKV2AndroidNewSubmitButton":true,"cspUsersnapV2Support":null,"sessionRecording":null,"21dcr3_MPC3281_enable_CHTMLHandleFocusIndependently":null,"doNotSurveyOnUBTNetworkFail":null,"mobileInvitationLayout":null,"addingRandomTimeForTimeInSession":null,"21dcr2_MPC3571_enable_ClearEmbeddedFormOnUpdatePageView":null,"21dcr3_mpc3662_delaySurveyUntilCSSLoad":null,"mobileWebDynamicFormSizeInFormBuilder":true,"cookieStorageDisable":null,"screenCaptureEnabled":null,"reusableResourcesLibrary":null,"formTemplatesWCAG":true,"formSpacing":null,"onPremHybrid":null,"21dcr1_MPC2883_UpgradeCooladataVersion":null,"mobileWebDynamicFormSize":null,"mobileSDKV2ScoreTargeting":null,"WCAGTrapFocusInModal":null,"disableButtonProximity":null,"errorMessageWcagSupport":null,"multiOptionsID":true,"20dcr32_NM11146_PreventIFrameScrollFlickering":null,"separateFormTemplateFromData":true,"dynamicOnsiteEvents":null,"mobileSDKV2AppRatingsiOSDirect":null,"cooladataCreateSessionEvent":null,"mobileSDKV2Responsive1to5Grading":null,"mobileSDKV2AppRatingsAndroidDestination":null,"21dcr3_MPC3662_EnableContentSquareSupport":null,"ibmIncludeSpecificCPsInCooladataEvent":null,"exportFeedbackSpinner":null,"customEventsBroadcast":true,"sharePropertyBetweenSubdomains":null,"spaUrlPolling":null,"customCssUpload":true,"willNotScrollToLastPositionDisplayTypeAnimation":null,"21dcr2_MPC2800_enable_EmbeddedTargeting":null,"mobileResponsiveRatingComponent":true,"customHtmlFormsEnable":true,"propertyMessages":null,"cooladataEventsLimit":null,"mobileSDKV2BannerRevamp":null,"targetingEventsReporting":null,"mobileSdkFixIos12KeyboardIssue":null,"serverBasedTargeting":null,"CSPRemoveInlineStyling":null,"enableOverflow":null,"coolodataEventsByXhr":null,"nativeScreenCapture":null,"mobileSDKV2UiRevamp":true,"skipInvitationOptimization":null,"mobileSDKV2AppRating":null,"21dcr1_MPC_3283_enable_RTL":null,"20dcr4_MPC2952_enable_exemptFormsFromQuarantine":null,"21dcr1_MPC3199_AdditionalButtonStyles":null,"targetingRuleIdleTime":null,"responsiveRatingComponent":null,"localizedForms":true,"21dcr3_MPC3281_enable_newModalDialogs":null,"mediaCapture":null,"UBTExtraEvents":null,"21dcr2_MPC3296_enable_usersnapOnpremCSP":null,"adobeAnalyticsObjectName":null,"21dcr3_MPC3779_enable_targetingNotice":null,"onsiteLogger":null,"dynamicHybridHosting":null,"21dcr1_MPC3370_EnableGreaterSmallerThanSupport":null,"underScoreLocalization":null,"thermoFisherTeaLeafIntegration":null,"alternativeUUID":null,"mobileSDKV2CustomIntercept":null,"adobeConcatLinkTrackVars":null,"adobeIncludeLinkTrackVars":null,"cooladataIntegration":false,"21DCR1_MPC3199_enable_RatingLabelAlign":null,"21DCR2_MPC3662_EnableEventsForCEDebug":null,"parallelTabSolution":null,"mobileSDKV2PoweredByFooter":null},"sbtServerDomain":"NOT_SET","sbtEnvPrefix":"wdcgov_","endUserIdentifier":{},"formNodes":[{"formId":"306","isCustomHtmlEnabled":"false","formVersion":"2","formHtmlUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/306/form1622203197013.html","formDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/306/formData1622203197127_###LANGUAGE_CODE###.json","formWidth":"450","formHeight":"450","isFixedSize":"false","isFullWidthEmbedded":"null","designSettings":{"formBackgroundColor":"","thankYouPageBackgroundColor":""},"formLocalizationSettings":{"defaultLanguage":"en","useCustomParam":"false","customParam":"null"},"formJsonRelativePath":"wdcgov/2/forms/306/formData1622203197127_###LANGUAGE_CODE###.json","formJsonV2RelativePath":"wdcgov/2/forms/306/formDataV2_1622203197127_###LANGUAGE_CODE###.json","availableLanguages":["en"],"inviteJsonRelativePath":"wdcgov/2/forms/306/invitationData1622827972695_###LANGUAGE_CODE###.json","triggerAvailableLanguages":["en"],"functionFileUrl":"","customParams":"[{\"id\":\"5984\",\"unique_name\":\"Product Name\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaPname\",\"is_identifier\":\"false\"}, {\"id\":\"5983\",\"unique_name\":\"Domain Language\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaSurveyLanguage\",\"is_identifier\":\"false\"}, {\"id\":\"4\",\"unique_name\":\"_gid\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_gid\",\"is_identifier\":\"false\"}, {\"id\":\"7\",\"unique_name\":\"_ga\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_ga\",\"is_identifier\":\"false\"}, {\"id\":\"5973\",\"unique_name\":\"Tracking Category 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTcat\",\"is_identifier\":\"false\"}, {\"id\":\"5975\",\"unique_name\":\"Tracking ID 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTid\",\"is_identifier\":\"false\"}, {\"id\":\"5974\",\"unique_name\":\"Tracking Name 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTname\",\"is_identifier\":\"false\"}, {\"id\":\"6\",\"unique_name\":\"Number Randomizer\",\"type\":\"Number\",\"source\":\"Cookie\",\"source_name\":\"mab_usps\",\"is_identifier\":\"false\"}, {\"id\":\"5\",\"unique_name\":\"Cart Count\",\"type\":\"Number\",\"source\":\"Var\",\"source_name\":\"cart_count\",\"is_identifier\":\"false\"}]","formType":"invitation","formDisplay":{"displayType":"lightbox","displayDirection":"centerRight","isSelfHosted":"","selfHostedUrl":""},"inviteData":{"inviteUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/306/invitation1622827972636.html","inviteHeight":"400","inviteWidth":"700","skipInvitation":"true","invitationPosition":"top","inviteDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/306/invitationData1622827972695_###LANGUAGE_CODE###.json"},"urlRules":{"exclusionUrl":{"rule":""},"inclusionUrl":{"rule":"https://loyalty.usps.com/"}},"onSiteData":{"devicetypes":["desktop","mobile","tablet"],"kampyleInvitePercentageUsers":{"prec":"95.0"},"kampyleTimeOnPage":{"time":"5"},"declined":{"days":"30"},"kampyleInvitePerSession":{"inviteOncePerSession":"false"},"kampyleTimeInSession":{"time":"5"},"submitted":{"days":"60"},"genericRule":"{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"60\",\"formId\":-1,\"fieldId\":6,\"formName\":\"All Forms\",\"uniqueId\":\"customParam6\",\"condition\":\"greaterThan\",\"fieldName\":\"Number Randomizer\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"},{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"101\",\"formId\":-1,\"fieldId\":6,\"formName\":\"All Forms\",\"uniqueId\":\"customParam6\",\"condition\":\"smallerThan\",\"fieldName\":\"Number Randomizer\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"}]}]}"}},{"formId":"305","isCustomHtmlEnabled":"false","formVersion":"2","formHtmlUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/305/form1622827762626.html","formDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/305/formData1622827762771_###LANGUAGE_CODE###.json","formWidth":"450","formHeight":"450","isFixedSize":"false","isFullWidthEmbedded":"null","designSettings":{"formBackgroundColor":"","thankYouPageBackgroundColor":""},"formLocalizationSettings":{"defaultLanguage":"en","useCustomParam":"true","customParam":"5983"},"formJsonRelativePath":"wdcgov/2/forms/305/formData1622827762771_###LANGUAGE_CODE###.json","formJsonV2RelativePath":"wdcgov/2/forms/305/formDataV2_1622827762771_###LANGUAGE_CODE###.json","availableLanguages":["en","es","zh"],"inviteJsonRelativePath":"wdcgov/2/forms/305/invitationData1621541001229_###LANGUAGE_CODE###.json","triggerAvailableLanguages":["en","es","zh"],"functionFileUrl":"","customParams":"[{\"id\":\"5984\",\"unique_name\":\"Product Name\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaPname\",\"is_identifier\":\"false\"}, {\"id\":\"5983\",\"unique_name\":\"Domain Language\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaSurveyLanguage\",\"is_identifier\":\"false\"}, {\"id\":\"4\",\"unique_name\":\"_gid\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_gid\",\"is_identifier\":\"false\"}, {\"id\":\"7\",\"unique_name\":\"_ga\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_ga\",\"is_identifier\":\"false\"}, {\"id\":\"5977\",\"unique_name\":\"Tracking Features\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"window.dataLayer.0.ecommerce.impressions.0.dimension149\",\"is_identifier\":\"false\"}, {\"id\":\"5973\",\"unique_name\":\"Tracking Category 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTcat\",\"is_identifier\":\"false\"}, {\"id\":\"5975\",\"unique_name\":\"Tracking ID 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTid\",\"is_identifier\":\"false\"}, {\"id\":\"5974\",\"unique_name\":\"Tracking Name 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTname\",\"is_identifier\":\"false\"}, {\"id\":\"6\",\"unique_name\":\"Number Randomizer\",\"type\":\"Number\",\"source\":\"Cookie\",\"source_name\":\"mab_usps\",\"is_identifier\":\"false\"}, {\"id\":\"5\",\"unique_name\":\"Cart Count\",\"type\":\"Number\",\"source\":\"Var\",\"source_name\":\"cart_count\",\"is_identifier\":\"false\"}]","formType":"invitation","formDisplay":{"displayType":"lightbox","displayDirection":"centerRight","isSelfHosted":"","selfHostedUrl":""},"inviteData":{"inviteUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/305/invitation1621541001155.html","inviteHeight":"400","inviteWidth":"700","skipInvitation":"true","invitationPosition":"top","inviteDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/305/invitationData1621541001229_###LANGUAGE_CODE###.json"},"onSiteData":{"kampyleTimeInSession":{"time":"2"},"kampyleInvitePerSession":{"inviteOncePerSession":"true"},"genericRule":"{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"Tracking Plus\",\"formId\":305,\"fieldId\":5984,\"formName\":\"TEST Tracking Plus Confirmation Page Survey\",\"uniqueId\":\"customParam5984\",\"condition\":\"contains\",\"fieldName\":\"Product Name\",\"fieldType\":\"Text\",\"fieldOrigin\":\"customParam\"}]}","kampyleTimeOnPage":{"time":"1"},"kampyleInvitePercentageUsers":{"prec":"95.0"},"devicetypes":["desktop","mobile","tablet"]}},{"formId":"300","isCustomHtmlEnabled":"false","formVersion":"2","formHtmlUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/300/form1615833300235.html","formDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/300/formData1615833300372_###LANGUAGE_CODE###.json","formWidth":"450","formHeight":"700","isFixedSize":"true","isFullWidthEmbedded":"null","designSettings":{"formBackgroundColor":"","thankYouPageBackgroundColor":""},"formLocalizationSettings":{"defaultLanguage":"en","useCustomParam":"false","customParam":"null"},"formJsonRelativePath":"wdcgov/2/forms/300/formData1615833300372_###LANGUAGE_CODE###.json","availableLanguages":["en"],"inviteJsonRelativePath":"wdcgov/2/forms/300/invitationData1615833489338_###LANGUAGE_CODE###.json","triggerAvailableLanguages":["en"],"functionFileUrl":"","customParams":"[{\"id\":\"5984\",\"unique_name\":\"Product Name\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaPname\",\"is_identifier\":\"false\"}, {\"id\":\"5983\",\"unique_name\":\"Domain Language\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaSurveyLanguage\",\"is_identifier\":\"false\"}, {\"id\":\"4\",\"unique_name\":\"_gid\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_gid\",\"is_identifier\":\"false\"}, {\"id\":\"7\",\"unique_name\":\"_ga\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_ga\",\"is_identifier\":\"false\"}, {\"id\":\"5977\",\"unique_name\":\"Tracking Features\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"window.dataLayer.0.ecommerce.impressions.0.dimension149\",\"is_identifier\":\"false\"}, {\"id\":\"5973\",\"unique_name\":\"Tracking Category 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTcat\",\"is_identifier\":\"false\"}, {\"id\":\"5975\",\"unique_name\":\"Tracking ID 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTid\",\"is_identifier\":\"false\"}, {\"id\":\"5974\",\"unique_name\":\"Tracking Name 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTname\",\"is_identifier\":\"false\"}, {\"id\":\"6\",\"unique_name\":\"Number Randomizer\",\"type\":\"Number\",\"source\":\"Cookie\",\"source_name\":\"mab_usps\",\"is_identifier\":\"false\"}, {\"id\":\"5\",\"unique_name\":\"Cart Count\",\"type\":\"Number\",\"source\":\"Var\",\"source_name\":\"cart_count\",\"is_identifier\":\"false\"}]","formType":"invitation","formDisplay":{"displayType":"animation","displayDirection":"centerRight","isSelfHosted":"","selfHostedUrl":""},"inviteData":{"inviteUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/300/invitation1615833489302.html","inviteHeight":"400","inviteWidth":"700","skipInvitation":"true","invitationPosition":"top","inviteDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/300/invitationData1615833489338_###LANGUAGE_CODE###.json"},"urlRules":{"exclusionUrl":{"rule":"https://tools.usps.com/go/TrackConfirmAction_input;https://www.uspsdelivers.com/"},"inclusionUrl":{"rule":"https://tools.usps.com/go/TrackConfirmAction?tLabels=;https://tools.usps.com/go/TrackConfirmAction?tRef=;https://tools.usps.com/go/TrackConfirmAction?qtc_tLabels1=;https://tools.usps.com/go/TrackConfirmActionllpage&tLc"}},"onSiteData":{"kampyleTimeOnPage":{"time":"5"},"kampyleInvitePercentageUsers":{"prec":"8.0"},"devicetypes":["desktop","tablet"],"declined":{"days":"30"},"kampyleInvitePerSession":{"inviteOncePerSession":"true"},"submitted":{"days":"60"},"genericRule":"{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"15\",\"formId\":-1,\"fieldId\":6,\"formName\":\"All Forms\",\"uniqueId\":\"customParam6\",\"condition\":\"greaterThan\",\"fieldName\":\"Number Randomizer\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"},{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"21\",\"formId\":-1,\"fieldId\":6,\"formName\":\"All Forms\",\"uniqueId\":\"customParam6\",\"condition\":\"smallerThan\",\"fieldName\":\"Number Randomizer\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"}]}]}"}},{"formId":"264","isCustomHtmlEnabled":"false","formVersion":"2","formHtmlUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/264/form1604523595264.html","formDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/264/formData1604523595336_###LANGUAGE_CODE###.json","formWidth":"450","formHeight":"450","isFixedSize":"false","isFullWidthEmbedded":"null","designSettings":{"formBackgroundColor":"","thankYouPageBackgroundColor":""},"formLocalizationSettings":{"defaultLanguage":"en","useCustomParam":"false","customParam":"null"},"formJsonRelativePath":"wdcgov/2/forms/264/formData1604523595336_###LANGUAGE_CODE###.json","availableLanguages":["en"],"inviteJsonRelativePath":"wdcgov/2/forms/264/invitationData1604946217303_###LANGUAGE_CODE###.json","triggerAvailableLanguages":["en"],"functionFileUrl":"","customParams":"[{\"id\":\"5984\",\"unique_name\":\"Product Name\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaPname\",\"is_identifier\":\"false\"}, {\"id\":\"5983\",\"unique_name\":\"Domain Language\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaSurveyLanguage\",\"is_identifier\":\"false\"}, {\"id\":\"4\",\"unique_name\":\"_gid\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_gid\",\"is_identifier\":\"false\"}, {\"id\":\"7\",\"unique_name\":\"_ga\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_ga\",\"is_identifier\":\"false\"}, {\"id\":\"5973\",\"unique_name\":\"Tracking Category 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTcat\",\"is_identifier\":\"false\"}, {\"id\":\"5975\",\"unique_name\":\"Tracking ID 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTid\",\"is_identifier\":\"false\"}, {\"id\":\"5974\",\"unique_name\":\"Tracking Name 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTname\",\"is_identifier\":\"false\"}, {\"id\":\"6\",\"unique_name\":\"Number Randomizer\",\"type\":\"Number\",\"source\":\"Cookie\",\"source_name\":\"mab_usps\",\"is_identifier\":\"false\"}, {\"id\":\"5\",\"unique_name\":\"Cart Count\",\"type\":\"Number\",\"source\":\"Var\",\"source_name\":\"cart_count\",\"is_identifier\":\"false\"}]","formType":"invitation","formDisplay":{"displayType":"lightbox","displayDirection":"centerRight","isSelfHosted":"","selfHostedUrl":""},"inviteData":{"inviteUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/264/invitation1604946217277.html","inviteHeight":"400","inviteWidth":"700","skipInvitation":"true","invitationPosition":"top","inviteDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/264/invitationData1604946217303_###LANGUAGE_CODE###.json"},"urlRules":{"exclusionUrl":{"rule":"/cart/;/cart;/checkout/;/checkout;/payment/;/payment;/shipping.jsp;/mobile-cart.jsp;/labelSummary.shtml;/createLabel.shtml;/LoginAction_input;/labelInformation;/store/cart/cart.jsp;/checkout/shipping.jsp;/store/checkout/confirm.jsp;/pse-form-enter.action;https://pay.usps.com;https://reg.usps.com;/checkout/login.jsp;/gxgLocationsDestinations.shtml;/customsInformationGxg.shtml;/customsInformation.shtml;/go/ZipLookupAction_input;/go/ScheduleAPickupAction!input.action;/go/POLocatorAction!input.action;/go/TrackConfirmAction_input;/holdmail/home.jsp;/holdmail/;/redelivery/;/redelivery/home.jsp;/pfs/home.jsp;/m/shipping.jsp;/m/login?;/payment/MCheckout_input;/m/POLocatorAction.action;/m/ZipLookupAction?search;/go/pages/myusps/loadNotificationsSettings.action?save=Preferences;/eddm/customer/routeSearch.action;/anyapp_outage_apology.htm;/authorizeUser.jsp;/searchResultSignedIn.do;/onlineApplicationOrg.do;/receiptNewCustLoadBack.do;/eregLanding.do;/\\/go\\/ScheduleAPickupAction!input.action/;/findBox.html?q=*;/pobol/app/secure/boxholds/holdPostLogin?;/reserveBox.html?;/pay/checkout.html;/pay;/store/cart/cart.jsp;/mobile-cart.jsp;/checkout/login.jsp;/checkout/shipping.jsp;/payment/MCheckout_input;/store/checkout/confirm.jsp;https://pay.usps.com/;https://catpx-pay.usps.com/;https://sitpx-pay.usps.com/;/pse-form-enter.action;/store/pse/pse-configure.jsp;/pfs/;/shippingCart.shtml;/zip-code-lookup.htm;/schedule-pickup-steps.htm;https://ecom-cat.usps.com/store/checkout/shipping.jsp;https://ecom-sit.usps.com/store/checkout/shipping.jsp;https://store.usps.com/store/checkout/shipping.jsp;https://postalpro.usps.com/;https://gateway.usps.com/;https://prodpx-promotool.usps.com/promoreg/campaignView.do;https://pfsr-cat.usps.com/;https://about.usps.com/;https://pe.usps.com/;http://about.usps.com/;http://pe.usps.com/;https://prodpx-promotool.usps.com/promoregadmin/editCampaignEmailAction.do;https://prodpx-promotool.usps.com/;http://origin-about.usps.com/;https://origin-about.usps.com/;http://origin-catpx-about.usps.com/;https://origin-catpx-about.usps.com/;http://irresistiblemail.com/;https://irresistiblemail.com/;https://delivercheer.com/;https://dbcalc-cat.usps.com/CalculatorSetPage.aspx;https://dbcalc.usps.com/CalculatorSetPage.aspx;https://fast.usps.com/;http://uspsid.com;https://m.usps.com/;https://gateway-dev.usps.com;https://gateway-sit.usps.com;https://gateway-cat.usps.com;https://dm.taradel.com/;https://usps.taradel.com/;https://www.usps.com/styleguide"},"inclusionUrl":{"rule":"https://www.usps.com/business/label-broker.htm;https://www.usps.com/business/prices.htm;https://www.usps.com/business/prices.htm;https://www.usps.com/manage/;https://www.usps.com/manage/forward.htm;https://www.usps.com/manage/mail-for-deceased.htm;https://www.usps.com/manage/mailboxes.htm;https://www.usps.com/manage/package-intercept.htm;https://www.usps.com/manage/po-boxes.htm;https://www.usps.com/ship/;https://www.usps.com/ship/apo-fpo-dpo.htm;https://www.usps.com/ship/custom-mail.htm;https://www.usps.com/ship/first-class-mail.htm;https://www.usps.com/ship/insurance-extra-services.htm;https://www.usps.com/ship/letters.htm;https://www.usps.com/ship/mail-shipping-services.htm;https://www.usps.com/ship/online-shipping.htm;https://www.usps.com/ship/packages.htm;https://www.usps.com/ship/priority-mail-express.htm;https://www.usps.com/ship/priority-mail.htm;https://www.usps.com/ship/shipping-restrictions.htm;https://www.usps.com/shop/money-orders.htm;https://www.usps.com/shop/returns-exchanges.htm"}},"onSiteData":{"devicetypes":["desktop","mobile","tablet"],"kampyleInvitePercentageUsers":{"prec":"75.0"},"kampyleTimeOnPage":{"time":"5"},"declined":{"days":"30"},"kampyleInvitePerSession":{"inviteOncePerSession":"false"},"kampyleTimeInSession":{"time":"5"},"submitted":{"days":"60"},"genericRule":"{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"50\",\"formId\":-1,\"fieldId\":6,\"formName\":\"All Forms\",\"uniqueId\":\"customParam6\",\"condition\":\"greaterThan\",\"fieldName\":\"Number Randomizer\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"},{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"56\",\"formId\":-1,\"fieldId\":6,\"formName\":\"All Forms\",\"uniqueId\":\"customParam6\",\"condition\":\"smallerThan\",\"fieldName\":\"Number Randomizer\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"}]}]}"}},{"formId":"259","isCustomHtmlEnabled":"false","formVersion":"2","formHtmlUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/259/form1617141721795.html","formDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/259/formData1617141721927_###LANGUAGE_CODE###.json","formWidth":"450","formHeight":"450","isFixedSize":"false","isFullWidthEmbedded":"null","designSettings":{"formBackgroundColor":"","thankYouPageBackgroundColor":""},"formLocalizationSettings":{"defaultLanguage":"en","useCustomParam":"true","customParam":"5983"},"formJsonRelativePath":"wdcgov/2/forms/259/formData1617141721927_###LANGUAGE_CODE###.json","availableLanguages":["en","es","zh"],"inviteJsonRelativePath":"wdcgov/2/forms/259/invitationData1617141721968_###LANGUAGE_CODE###.json","triggerAvailableLanguages":["en","es","zh"],"functionFileUrl":"","customParams":"[{\"id\":\"5984\",\"unique_name\":\"Product Name\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaPname\",\"is_identifier\":\"false\"}, {\"id\":\"5983\",\"unique_name\":\"Domain Language\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaSurveyLanguage\",\"is_identifier\":\"false\"}, {\"id\":\"4\",\"unique_name\":\"_gid\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_gid\",\"is_identifier\":\"false\"}, {\"id\":\"7\",\"unique_name\":\"_ga\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_ga\",\"is_identifier\":\"false\"}, {\"id\":\"5973\",\"unique_name\":\"Tracking Category 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTcat\",\"is_identifier\":\"false\"}, {\"id\":\"5975\",\"unique_name\":\"Tracking ID 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTid\",\"is_identifier\":\"false\"}, {\"id\":\"5974\",\"unique_name\":\"Tracking Name 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTname\",\"is_identifier\":\"false\"}, {\"id\":\"6\",\"unique_name\":\"Number Randomizer\",\"type\":\"Number\",\"source\":\"Cookie\",\"source_name\":\"mab_usps\",\"is_identifier\":\"false\"}, {\"id\":\"5\",\"unique_name\":\"Cart Count\",\"type\":\"Number\",\"source\":\"Var\",\"source_name\":\"cart_count\",\"is_identifier\":\"false\"}]","formType":"invitation","formDisplay":{"displayType":"lightbox","displayDirection":"centerRight","isSelfHosted":"","selfHostedUrl":""},"inviteData":{"inviteUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/259/invitation1617141721914.html","inviteHeight":"400","inviteWidth":"700","skipInvitation":"true","invitationPosition":"top","inviteDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/259/invitationData1617141721968_###LANGUAGE_CODE###.json"},"urlRules":{"exclusionUrl":{"rule":""},"inclusionUrl":{"rule":"https://store.usps.com/store/results/gifts/;http://store.usps.com/store/results/gifts/;https://store.usps.com/store/product/stamp-gifts/;http://store.usps.com/store/product/stamp-gifts/;https://store.usps.com/store/results/gifts/_/N-nnxamr#content;https://store.usps.com/store/results/first-day-of-issue-framed-art/framed-art/gifts/_/N-1wi4gweZ17obwk9Znnxamr;http://store.usps.com/store/results/first-day-of-issue-framed-art/framed-art/gifts/_/N-1wi4gweZ17obwk9Znnxamr;https://store.usps.com/store/results/jewelry/gifts/_/N-ggn7cwZnnxamr;http://store.usps.com/store/results/jewelry/gifts/_/N-ggn7cwZnnxamr;https://store.usps.com/store/results/novelty-gifts/gifts/_/N-1e74lfrZnnxamr;http://store.usps.com/store/results/novelty-gifts/gifts/_/N-1e74lfrZnnxamr;https://store.usps.com/store/results/bags/gifts/_/N-tfnpmnZnnxamr;http://store.usps.com/store/results/bags/gifts/_/N-tfnpmnZnnxamr;https://store.usps.com/store/results/gift-cachets/gifts/_/N-1rwwcqdZnnxamr;http://store.usps.com/store/results/gift-cachets/gifts/_/N-1rwwcqdZnnxamr;https://store.usps.com/store/results/clothing/gifts/_/N-1yueprwZnnxamr;http://store.usps.com/store/results/clothing/gifts/_/N-1yueprwZnnxamr;https://store.usps.com/store/results/toys/gifts/_/N-110bzaeZnnxamr;http://store.usps.com/store/results/toys/gifts/_/N-110bzaeZnnxamr;https://store.usps.com/store/results/puzzles/gifts/_/N-aa89hjZnnxamr;http://store.usps.com/store/results/puzzles/gifts/_/N-aa89hjZnnxamr;https://store.usps.com/store/results/ornaments/gifts/_/N-179iv85Znnxamr;http://store.usps.com/store/results/ornaments/gifts/_/N-179iv85Znnxamr;https://store.usps.com/store/results/books/gifts/_/N-j015lcZnnxamr;http://store.usps.com/store/results/books/gifts/_/N-j015lcZnnxamr;https://store.usps.com/store/results/framed-art/gifts/_/N-17obwk9Znnxamr;http://store.usps.com/store/results/framed-art/gifts/_/N-17obwk9Znnxamr;https://store.usps.com/store/results/art-gicl%C3%A9es/gifts/_/N-lsu5ugZnnxamr;http://store.usps.com/store/results/art-gicl%C3%A9es/gifts/_/N-lsu5ugZnnxamr;https://store.usps.com/store/results/cards-envelopes;http://store.usps.com/store/results/cards-envelopes;https://store.usps.com/store/results/greeting-note-cards/;http://store.usps.com/store/results/greeting-note-cards/;https://store.usps.com/store/product/cards-envelopes/;http://store.usps.com/store/product/cards-envelopes/"}},"onSiteData":{"kampyleTimeOnPage":{"time":"5"},"kampyleInvitePercentageUsers":{"prec":"50.0"},"devicetypes":["desktop","mobile","tablet"],"declined":{"days":"30"},"kampyleTimeInSession":{"time":"5"},"kampyleInvitePerSession":{"inviteOncePerSession":"false"},"submitted":{"days":"60"},"genericRule":"{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"20\",\"formId\":-1,\"fieldId\":6,\"formName\":\"All Forms\",\"uniqueId\":\"customParam6\",\"condition\":\"greaterThan\",\"fieldName\":\"Number Randomizer\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"},{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"31\",\"formId\":-1,\"fieldId\":6,\"formName\":\"All Forms\",\"uniqueId\":\"customParam6\",\"condition\":\"smallerThan\",\"fieldName\":\"Number Randomizer\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"}]}]}"}},{"formId":"254","isCustomHtmlEnabled":"false","formVersion":"2","formHtmlUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/254/form1623875738105.html","formDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/254/formData1623875738205_###LANGUAGE_CODE###.json","formWidth":"450","formHeight":"450","isFixedSize":"false","isFullWidthEmbedded":"null","designSettings":{"formBackgroundColor":"","thankYouPageBackgroundColor":""},"formLocalizationSettings":{"defaultLanguage":"en","useCustomParam":"true","customParam":"5983"},"formJsonRelativePath":"wdcgov/2/forms/254/formData1623875738205_###LANGUAGE_CODE###.json","formJsonV2RelativePath":"wdcgov/2/forms/254/formDataV2_1623875738205_###LANGUAGE_CODE###.json","availableLanguages":["en","es","zh"],"inviteJsonRelativePath":"wdcgov/2/forms/254/invitationData1617744247543_###LANGUAGE_CODE###.json","triggerAvailableLanguages":["zh","en","es"],"functionFileUrl":"","customParams":"[{\"id\":\"5984\",\"unique_name\":\"Product Name\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaPname\",\"is_identifier\":\"false\"}, {\"id\":\"5983\",\"unique_name\":\"Domain Language\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaSurveyLanguage\",\"is_identifier\":\"false\"}, {\"id\":\"4\",\"unique_name\":\"_gid\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_gid\",\"is_identifier\":\"false\"}, {\"id\":\"7\",\"unique_name\":\"_ga\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_ga\",\"is_identifier\":\"false\"}, {\"id\":\"5977\",\"unique_name\":\"Tracking Features\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"window.dataLayer.0.ecommerce.impressions.0.dimension149\",\"is_identifier\":\"false\"}, {\"id\":\"5973\",\"unique_name\":\"Tracking Category 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTcat\",\"is_identifier\":\"false\"}, {\"id\":\"5975\",\"unique_name\":\"Tracking ID 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTid\",\"is_identifier\":\"false\"}, {\"id\":\"5974\",\"unique_name\":\"Tracking Name 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTname\",\"is_identifier\":\"false\"}, {\"id\":\"6\",\"unique_name\":\"Number Randomizer\",\"type\":\"Number\",\"source\":\"Cookie\",\"source_name\":\"mab_usps\",\"is_identifier\":\"false\"}, {\"id\":\"5\",\"unique_name\":\"Cart Count\",\"type\":\"Number\",\"source\":\"Var\",\"source_name\":\"cart_count\",\"is_identifier\":\"false\"}]","formType":"invitation","formDisplay":{"displayType":"lightbox","displayDirection":"centerRight","isSelfHosted":"","selfHostedUrl":""},"inviteData":{"inviteUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/254/invitation1617744247447.html","inviteHeight":"400","inviteWidth":"700","skipInvitation":"true","invitationPosition":"top","inviteDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/254/invitationData1617744247543_###LANGUAGE_CODE###.json"},"urlRules":{"exclusionUrl":{"rule":"/cart/;/cart;/checkout/;/checkout;/payment/;/payment;/shipping.jsp;/mobile-cart.jsp;/labelSummary.shtml;/createLabel.shtml;/LoginAction_input;/labelInformation;/store/cart/cart.jsp;/checkout/shipping.jsp;/store/checkout/confirm.jsp;/pse-form-enter.action;https://pay.usps.com;https://reg.usps.com;/checkout/login.jsp;/gxgLocationsDestinations.shtml;/customsInformationGxg.shtml;/customsInformation.shtml;/go/ZipLookupAction_input;/go/ScheduleAPickupAction!input.action;/go/POLocatorAction!input.action;/go/TrackConfirmAction_input;/holdmail/home.jsp;/holdmail/;/redelivery/;/redelivery/home.jsp;/pfs/home.jsp;/m/shipping.jsp;/m/login?;/payment/MCheckout_input;/m/POLocatorAction.action;/m/ZipLookupAction?search;/go/pages/myusps/loadNotificationsSettings.action?save=Preferences;/eddm/customer/routeSearch.action;/anyapp_outage_apology.htm;/authorizeUser.jsp;/searchResultSignedIn.do;/onlineApplicationOrg.do;/receiptNewCustLoadBack.do;/eregLanding.do;/\\/go\\/ScheduleAPickupAction!input.action/;/findBox.html?q=*;/pobol/app/secure/boxholds/holdPostLogin?;/reserveBox.html?;/pay/checkout.html;/pay;/store/cart/cart.jsp;/mobile-cart.jsp;/checkout/login.jsp;/checkout/shipping.jsp;/payment/MCheckout_input;/store/checkout/confirm.jsp;https://pay.usps.com/;https://catpx-pay.usps.com/;https://sitpx-pay.usps.com/;/pse-form-enter.action;/store/pse/pse-configure.jsp;/pfs/;/shippingCart.shtml;/zip-code-lookup.htm;/schedule-pickup-steps.htm;https://ecom-cat.usps.com/store/checkout/shipping.jsp;https://ecom-sit.usps.com/store/checkout/shipping.jsp;https://store.usps.com/store/checkout/shipping.jsp;https://postalpro.usps.com/;https://gateway.usps.com/;https://prodpx-promotool.usps.com/promoreg/campaignView.do;https://pfsr-cat.usps.com/;https://about.usps.com/;https://pe.usps.com/;http://about.usps.com/;http://pe.usps.com/;https://prodpx-promotool.usps.com/promoregadmin/editCampaignEmailAction.do;https://prodpx-promotool.usps.com/;http://origin-about.usps.com/;https://origin-about.usps.com/;http://origin-catpx-about.usps.com/;https://origin-catpx-about.usps.com/;http://irresistiblemail.com/;https://irresistiblemail.com/;https://delivercheer.com/;https://dbcalc-cat.usps.com/CalculatorSetPage.aspx;https://dbcalc.usps.com/CalculatorSetPage.aspx;https://fast.usps.com/;http://uspsid.com;https://m.usps.com/;https://gateway-dev.usps.com;https://gateway-sit.usps.com;https://gateway-cat.usps.com;https://dm.taradel.com/;https://usps.taradel.com/;https://www.usps.com/styleguide;dm.taradel.com/;dm.taradel.com;http://dm.taradel.com/;http://dm.taradel.com;https://postalpro.usps.com/;http://postalpro.usps.com/;postalpro.usps.com;https://pfsr.usps.com/;https://postalpro.usps.com/;https://gateway.usps.com/;https://gateway-cat.usps.com/;https://prodpx-promotool.usps.com/promoreg/campaignView.do;https://about.usps.com/;https://pe.usps.com/;https://pe.usps.gov/;http://about.usps.com/;http://pe.usps.com/;https://prodpx-promotool.usps.com/promoregadmin/editCampaignEmailAction.do;https://prodpx-promotool.usps.com/promoregadmin/editCampaignInfo.do;https://prodpx-promotool.usps.com/;http://origin-about.usps.com/;https://origin-about.usps.com/;http://origin-catpx-about.usps.com/;https://origin-catpx-about.usps.com/;http://irresistiblemail.com/;https://irresistiblemail.com/;https://gateway-cat.usps.com;https://postcalc.usps.com;https://postcalcsm.usps.com;https://postcalcea.usps.com;https://postcalc-cat.usps.com;https://postcalc-cat1.usps.com;https://postcalc-cat2.usps.com;https://postcalc-cat3.usps.com;https://postcalc-cat4.usps.com;https://postcalc-cat5.usps.com;https://postcalc-cat6.usps.com;https://postcalc-sit.usps.com;https://postcalc-sit1.usps.com;https://postcalc-sit2.usps.com;https://ibcalc.usps.com;https://ibcalcsm.usps.com;https://ibcalcea.usps.com;https://ibcalc-cat.usps.com;https://ibcalc-cat1.usps.com;https://ibcalc-cat2.usps.com;https://ibcalc-cat3.usps.com;https://ibcalc-cat4.usps.com;https://ibcalc-cat5.usps.com;https://ibcalc-cat6.usps.com;https://ibcalc-sit.usps.com;https://ibcalc-sit1.usps.com;https://ibcalc-sit2.usps.com;https://dbcalc.usps.com;https://dbcalcsm.usps.com;https://dbcalcea.usps.com;https://dbcalc-cat.usps.com;https://dbcalc-cat1.usps.com;https://dbcalc-cat2.usps.com;https://dbcalc-cat3.usps.com;https://dbcalc-cat4.usps.com;https://dbcalc-cat5.usps.com;https://dbcalc-cat6.usps.com;https://dbcalc-sit.usps.com;https://dbcalc-sit1.usps.com/;https://dbcalc-sit2.usps.com/;https://pe.usps.com;https://pe-ea.usps.com;https://pe-sm.usps.com;https://pe-cat.usps.com;https://pe-cat.usps.com;https://pe-sit.usps.com;https://www.usps.com/datadial;https://www.usps.com/datadial/;https://www.uspscybersafe.com/businesses;https://www.uspscybersafe.com/businesses/;https://smartbusinessmoments.usps.com;https://smartbusinessmoments.usps.com/;https://delivercheer.com/;http://delivercheer.com;http://delivercheer.com/;https://www.usps.com/holiday/holiday-shipping-dates.htm;https://stage-www.usps.com/holiday/holiday-shipping-dates.htm;https://tusps.usps.com/holiday/holiday-shipping-dates.htm;https://dbcalc-cat.usps.com/CalculatorSetPage.aspx;https://dbcalc.usps.com/CalculatorSetPage.aspx;https://www.imresearchcenter.com/;https://www.delivercheer.com/;http://stage.usps-op-santa-adopter2018.mrmclient.com/;https://www.uspsdelivers.com/;http://usprioritymailing.com/;https://fast.usps.com/;https://cat-tools.usps.com/schedule-pickup-steps.htm#;https://pe-sit.usps.com;https://pe-cat.usps.com;https://catpx-pay.usps.com;https://sitpx-pay.usps.com;https://pay.usps.com;uspsid.com;http://uspsid.com;https://usps.taradel.com;https://dm.taradel.com;http://www.deliveringinnovation.com/;https://tools.usps.com/redelivery.htm"},"inclusionUrl":{"rule":""}},"onSiteData":{"devicetypes":["desktop","mobile","tablet"],"kampyleInvitePercentageUsers":{"prec":"32.0"},"kampyleTimeOnPage":{"time":"5"},"declined":{"days":"30"},"kampyleInvitePerSession":{"inviteOncePerSession":"false"},"kampyleTimeInSession":{"time":"5"},"submitted":{"days":"60"},"numberOfPagesViewed":{"numberOfRepeats":"2","compareString":"greaterThan"},"genericRule":"{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"5\",\"formId\":-1,\"fieldId\":6,\"formName\":\"All Forms\",\"uniqueId\":\"customParam6\",\"condition\":\"greaterThan\",\"fieldName\":\"Number Randomizer\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"},{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"11\",\"formId\":-1,\"fieldId\":6,\"formName\":\"All Forms\",\"uniqueId\":\"customParam6\",\"condition\":\"smallerThan\",\"fieldName\":\"Number Randomizer\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"}]}]}"}},{"formId":"245","isCustomHtmlEnabled":"false","formVersion":"2","formHtmlUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/245/form1624914935768.html","formDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/245/formData1624914935909_###LANGUAGE_CODE###.json","formWidth":"450","formHeight":"450","isFixedSize":"false","isFullWidthEmbedded":"null","designSettings":{"formBackgroundColor":"","thankYouPageBackgroundColor":""},"formLocalizationSettings":{"defaultLanguage":"en","useCustomParam":"true","customParam":"5983"},"formJsonRelativePath":"wdcgov/2/forms/245/formData1624914935909_###LANGUAGE_CODE###.json","formJsonV2RelativePath":"wdcgov/2/forms/245/formDataV2_1624914935909_###LANGUAGE_CODE###.json","availableLanguages":["en","es"],"inviteJsonRelativePath":"wdcgov/2/forms/245/invitationData1624914936144_###LANGUAGE_CODE###.json","triggerAvailableLanguages":["en","es"],"functionFileUrl":"","customParams":"[{\"id\":\"5984\",\"unique_name\":\"Product Name\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaPname\",\"is_identifier\":\"false\"}, {\"id\":\"5983\",\"unique_name\":\"Domain Language\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaSurveyLanguage\",\"is_identifier\":\"false\"}, {\"id\":\"4\",\"unique_name\":\"_gid\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_gid\",\"is_identifier\":\"false\"}, {\"id\":\"7\",\"unique_name\":\"_ga\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_ga\",\"is_identifier\":\"false\"}, {\"id\":\"5977\",\"unique_name\":\"Tracking Features\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"window.dataLayer.0.ecommerce.impressions.0.dimension149\",\"is_identifier\":\"false\"}, {\"id\":\"5973\",\"unique_name\":\"Tracking Category 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTcat\",\"is_identifier\":\"false\"}, {\"id\":\"5975\",\"unique_name\":\"Tracking ID 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTid\",\"is_identifier\":\"false\"}, {\"id\":\"5974\",\"unique_name\":\"Tracking Name 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTname\",\"is_identifier\":\"false\"}, {\"id\":\"6\",\"unique_name\":\"Number Randomizer\",\"type\":\"Number\",\"source\":\"Cookie\",\"source_name\":\"mab_usps\",\"is_identifier\":\"false\"}, {\"id\":\"5\",\"unique_name\":\"Cart Count\",\"type\":\"Number\",\"source\":\"Var\",\"source_name\":\"cart_count\",\"is_identifier\":\"false\"}]","formType":"invitation","formDisplay":{"displayType":"lightbox","displayDirection":"centerRight","isSelfHosted":"","selfHostedUrl":""},"inviteData":{"inviteUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/245/invitation1624914936116.html","inviteHeight":"400","inviteWidth":"700","skipInvitation":"true","invitationPosition":"top","inviteDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/245/invitationData1624914936144_###LANGUAGE_CODE###.json"},"urlRules":{"exclusionUrl":{"rule":"/cart/;/cart;/checkout/;/checkout;/payment/;/payment;/shipping;/mobile-cart.jsp;/labelSummary.shtml;/createLabel.shtml;/LoginAction_input;/labelInformation;/store/cart/cart.jsp;/checkout/shipping;/store/checkout/confirm.jsp;/pse-form-enter.action;https://pay.usps.com;https://reg.usps.com;/checkout/login.jsp;/gxgLocationsDestinations.shtml;/customsInformationGxg.shtml;/customsInformation.shtml;/go/ZipLookupAction_input;/go/ScheduleAPickupAction!input.action;/go/POLocatorAction!input.action;/go/TrackConfirmAction_input;/holdmail/home.jsp;/holdmail/;/redelivery/;/redelivery/home.jsp;/pfs/home.jsp;/m/shipping.jsp;/m/login?;/payment/MCheckout_input;/m/POLocatorAction.action;/m/ZipLookupAction?search;/go/pages/myusps/loadNotificationsSettings.action?save=Preferences;/eddm/customer/routeSearch.action;/anyapp_outage_apology.htm;/authorizeUser.jsp;/searchResultSignedIn.do;/onlineApplicationOrg.do;/receiptNewCustLoadBack.do;/eregLanding.do;/\\/go\\/ScheduleAPickupAction!input.action/;/findBox.html?q=*;/pobol/app/secure/boxholds/holdPostLogin?;/reserveBox.html?;/pay/checkout.html;/pay;/store/cart/cart.jsp;/mobile-cart.jsp;/checkout/login.jsp;/checkout/shipping;/payment/MCheckout_input;/store/checkout/confirm.jsp;https://pay.usps.com/;https://catpx-pay.usps.com/;https://sitpx-pay.usps.com/;/pse-form-enter.action;/store/pse/pse-configure.jsp;/pfs/;/shippingCart.shtml;/zip-code-lookup.htm;/schedule-pickup-steps.htm;https://ecom-cat.usps.com/store/checkout/shipping.jsp;https://ecom-sit.usps.com/store/checkout/shipping.jsp;https://store.usps.com/store/checkout/shipping.jsp;https://postalpro.usps.com/;https://gateway.usps.com/;https://prodpx-promotool.usps.com/promoreg/campaignView.do;http://irresistiblemail.com/;https://irresistiblemail.com/;https://pfsr-cat.usps.com/;https://about.usps.com/;https://pe.usps.com/;http://pe.usps.com/;https://prodpx-promotool.usps.com/promoregadmin/editCampaignEmailAction.do;https://prodpx-promotool.usps.com/promoregadmin/editCampaignInfo.do;https://prodpx-promotool.usps.com/;http://origin-about.usps.com/;https://origin-about.usps.com/;http://origin-catpx-about.usps.com/;https://origin-catpx-about.usps.com/;https://delivercheer.com/;https://dbcalc-cat.usps.com/CalculatorSetPage.aspx;https://dbcalc.usps.com/CalculatorSetPage.aspx;https://fast.usps.com/;http://uspsid.com;https://m.usps.com/;https://gateway-dev.usps.com;https://gateway-sit.usps.com;https://gateway-cat.usps.com;https://www.usps.com/styleguide;https://dm.taradel.com;https://dm.taradel.com/;dm.taradel.com;dm.taradel.com/;https://postalpro.usps.com/;http://postalpro.usps.com/;postalpro.usps.com;https://pfsr.usps.com/;https://postalpro.usps.com/;https://gateway.usps.com/;https://gateway-cat.usps.com/;https://prodpx-promotool.usps.com/promoreg/campaignView.do;https://about.usps.com/;https://pe.usps.com/;https://pe.usps.gov/;http://about.usps.com/;http://pe.usps.com/;https://prodpx-promotool.usps.com/promoregadmin/editCampaignEmailAction.do;https://prodpx-promotool.usps.com/promoregadmin/editCampaignInfo.do;https://prodpx-promotool.usps.com/;http://origin-about.usps.com/;https://origin-about.usps.com/;http://origin-catpx-about.usps.com/;https://origin-catpx-about.usps.com/;http://irresistiblemail.com/;https://irresistiblemail.com/;https://gateway-cat.usps.com;https://postcalc.usps.com;https://postcalcsm.usps.com;https://postcalcea.usps.com;https://postcalc-cat.usps.com;https://postcalc-cat1.usps.com;https://postcalc-cat2.usps.com;https://postcalc-cat3.usps.com;https://postcalc-cat4.usps.com;https://postcalc-cat5.usps.com;https://postcalc-cat6.usps.com;https://postcalc-sit.usps.com;https://postcalc-sit1.usps.com;https://postcalc-sit2.usps.com;https://ibcalc.usps.com;https://ibcalcsm.usps.com;https://ibcalcea.usps.com;https://ibcalc-cat.usps.com;https://ibcalc-cat1.usps.com;https://ibcalc-cat2.usps.com;https://ibcalc-cat3.usps.com;https://ibcalc-cat4.usps.com;https://ibcalc-cat5.usps.com;https://ibcalc-cat6.usps.com;https://ibcalc-sit.usps.com;https://ibcalc-sit1.usps.com;https://ibcalc-sit2.usps.com;https://dbcalc.usps.com;https://dbcalcsm.usps.com;https://dbcalcea.usps.com;https://dbcalc-cat.usps.com;https://dbcalc-cat1.usps.com;https://dbcalc-cat2.usps.com;https://dbcalc-cat3.usps.com;https://dbcalc-cat4.usps.com;https://dbcalc-cat5.usps.com;https://dbcalc-cat6.usps.com;https://dbcalc-sit.usps.com;https://dbcalc-sit1.usps.com/;https://dbcalc-sit2.usps.com/;https://pe.usps.com;https://pe-ea.usps.com;https://pe-sm.usps.com;https://pe-cat.usps.com;https://pe-cat.usps.com;https://pe-sit.usps.com;https://www.usps.com/datadial;https://www.usps.com/datadial/;https://www.uspscybersafe.com/businesses;https://www.uspscybersafe.com/businesses/;https://smartbusinessmoments.usps.com;https://smartbusinessmoments.usps.com/;https://delivercheer.com/;http://delivercheer.com;http://delivercheer.com/;https://www.usps.com/holiday/holiday-shipping-dates.htm;https://stage-www.usps.com/holiday/holiday-shipping-dates.htm;https://tusps.usps.com/holiday/holiday-shipping-dates.htm;https://dbcalc-cat.usps.com/CalculatorSetPage.aspx;https://dbcalc.usps.com/CalculatorSetPage.aspx;https://www.imresearchcenter.com/;https://www.delivercheer.com/;http://stage.usps-op-santa-adopter2018.mrmclient.com/;https://www.uspsdelivers.com/;http://usprioritymailing.com/;https://fast.usps.com/;https://cat-tools.usps.com/schedule-pickup-steps.htm#;https://pe-sit.usps.com;https://pe-cat.usps.com;https://catpx-pay.usps.com;https://sitpx-pay.usps.com;https://pay.usps.com;uspsid.com;http://uspsid.com;https://usps.taradel.com;https://dm.taradel.com;http://www.deliveringinnovation.com/;https://tools.usps.com/redelivery.htm"},"inclusionUrl":{"rule":""}},"onSiteData":{"kampyleInvitePercentageUsers":{"prec":"16.0"},"devicetypes":["desktop"],"kampyleTimeOnPage":{"time":"5"},"declined":{"days":"30"},"kampyleInvitePerSession":{"inviteOncePerSession":"false"},"kampyleTimeInSession":{"time":"5"},"submitted":{"days":"60"},"numberOfPagesViewed":{"numberOfRepeats":"2","compareString":"greaterThan"},"genericRule":"{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"6\",\"formId\":-1,\"fieldId\":6,\"formName\":\"All Forms\",\"uniqueId\":\"customParam6\",\"condition\":\"smallerThan\",\"fieldName\":\"Number Randomizer\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"}]}"}},{"formId":"11","isCustomHtmlEnabled":"false","formVersion":"2","formHtmlUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/11/form1624916775055.html","formDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/11/formData1624916775163_###LANGUAGE_CODE###.json","formWidth":"450","formHeight":"450","isFixedSize":"false","isFullWidthEmbedded":"null","designSettings":{"formBackgroundColor":"","thankYouPageBackgroundColor":""},"formLocalizationSettings":{"defaultLanguage":"en","useCustomParam":"true","customParam":"5983"},"formJsonRelativePath":"wdcgov/2/forms/11/formData1624916775163_###LANGUAGE_CODE###.json","formJsonV2RelativePath":"wdcgov/2/forms/11/formDataV2_1624916775163_###LANGUAGE_CODE###.json","availableLanguages":["en","es","zh"],"inviteJsonRelativePath":"wdcgov/2/forms/11/invitationData1624916775064_###LANGUAGE_CODE###.json","triggerAvailableLanguages":["en","zh","es"],"functionFileUrl":"","customParams":"[{\"id\":\"5984\",\"unique_name\":\"Product Name\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaPname\",\"is_identifier\":\"false\"}, {\"id\":\"5983\",\"unique_name\":\"Domain Language\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaSurveyLanguage\",\"is_identifier\":\"false\"}, {\"id\":\"4\",\"unique_name\":\"_gid\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_gid\",\"is_identifier\":\"false\"}, {\"id\":\"7\",\"unique_name\":\"_ga\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_ga\",\"is_identifier\":\"false\"}, {\"id\":\"5977\",\"unique_name\":\"Tracking Features\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"window.dataLayer.0.ecommerce.impressions.0.dimension149\",\"is_identifier\":\"false\"}, {\"id\":\"5973\",\"unique_name\":\"Tracking Category 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTcat\",\"is_identifier\":\"false\"}, {\"id\":\"5975\",\"unique_name\":\"Tracking ID 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTid\",\"is_identifier\":\"false\"}, {\"id\":\"5974\",\"unique_name\":\"Tracking Name 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTname\",\"is_identifier\":\"false\"}, {\"id\":\"6\",\"unique_name\":\"Number Randomizer\",\"type\":\"Number\",\"source\":\"Cookie\",\"source_name\":\"mab_usps\",\"is_identifier\":\"false\"}, {\"id\":\"5\",\"unique_name\":\"Cart Count\",\"type\":\"Number\",\"source\":\"Var\",\"source_name\":\"cart_count\",\"is_identifier\":\"false\"}]","formType":"invitation","formDisplay":{"displayType":"lightbox","displayDirection":"centerRight","isSelfHosted":"","selfHostedUrl":""},"inviteData":{"inviteUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/11/invitation1624916775035.html","inviteHeight":"400","inviteWidth":"700","skipInvitation":"true","invitationPosition":"top","inviteDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/11/invitationData1624916775064_###LANGUAGE_CODE###.json"},"urlRules":{"exclusionUrl":{"rule":"https://tools.usps.com/go/TrackConfirmAction_input;https://www.uspsdelivers.com/"},"inclusionUrl":{"rule":"https://tools.usps.com/go/TrackConfirmAction?tLabels=;https://tools.usps.com/go/TrackConfirmAction?tRef=;https://tools.usps.com/go/TrackConfirmAction?qtc_tLabels1=;https://tools.usps.com/go/TrackConfirmAction"}},"onSiteData":{"kampyleInvitePercentageUsers":{"prec":"8.0"},"kampyleTimeOnPage":{"time":"8"},"devicetypes":["desktop","mobile","tablet"],"kampyleInvitePerSession":{"inviteOncePerSession":"true"},"declined":{"days":"30"},"submitted":{"days":"60"},"genericRule":"{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"10\",\"formId\":-1,\"fieldId\":6,\"formName\":\"All Forms\",\"uniqueId\":\"customParam6\",\"condition\":\"greaterThan\",\"fieldName\":\"Number Randomizer\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"},{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"16\",\"formId\":-1,\"fieldId\":6,\"formName\":\"All Forms\",\"uniqueId\":\"customParam6\",\"condition\":\"smallerThan\",\"fieldName\":\"Number Randomizer\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"}]}]}"}},{"formId":"7","isCustomHtmlEnabled":"false","formVersion":"2","formHtmlUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/7/form1624915460793.html","formDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/7/formData1624915460915_###LANGUAGE_CODE###.json","formWidth":"450","formHeight":"450","isFixedSize":"false","isFullWidthEmbedded":"null","designSettings":{"formBackgroundColor":"","thankYouPageBackgroundColor":""},"formLocalizationSettings":{"defaultLanguage":"en","useCustomParam":"true","customParam":"5983"},"formJsonRelativePath":"wdcgov/2/forms/7/formData1624915460915_###LANGUAGE_CODE###.json","formJsonV2RelativePath":"wdcgov/2/forms/7/formDataV2_1624915460915_###LANGUAGE_CODE###.json","availableLanguages":["es","zh","en"],"inviteJsonRelativePath":"wdcgov/2/forms/7/invitationData1624915460808_###LANGUAGE_CODE###.json","triggerAvailableLanguages":["en","zh","es"],"functionFileUrl":"","customParams":"[{\"id\":\"5984\",\"unique_name\":\"Product Name\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaPname\",\"is_identifier\":\"false\"}, {\"id\":\"5983\",\"unique_name\":\"Domain Language\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaSurveyLanguage\",\"is_identifier\":\"false\"}, {\"id\":\"4\",\"unique_name\":\"_gid\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_gid\",\"is_identifier\":\"false\"}, {\"id\":\"7\",\"unique_name\":\"_ga\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_ga\",\"is_identifier\":\"false\"}, {\"id\":\"5973\",\"unique_name\":\"Tracking Category 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTcat\",\"is_identifier\":\"false\"}, {\"id\":\"5975\",\"unique_name\":\"Tracking ID 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTid\",\"is_identifier\":\"false\"}, {\"id\":\"5974\",\"unique_name\":\"Tracking Name 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTname\",\"is_identifier\":\"false\"}, {\"id\":\"6\",\"unique_name\":\"Number Randomizer\",\"type\":\"Number\",\"source\":\"Cookie\",\"source_name\":\"mab_usps\",\"is_identifier\":\"false\"}, {\"id\":\"5\",\"unique_name\":\"Cart Count\",\"type\":\"Number\",\"source\":\"Var\",\"source_name\":\"cart_count\",\"is_identifier\":\"false\"}]","formType":"invitation","formDisplay":{"displayType":"lightbox","displayDirection":"centerRight","isSelfHosted":"","selfHostedUrl":""},"inviteData":{"inviteUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/7/invitation1624915460769.html","inviteHeight":"400","inviteWidth":"700","skipInvitation":"true","invitationPosition":"top","inviteDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/7/invitationData1624915460808_###LANGUAGE_CODE###.json"},"urlRules":{"exclusionUrl":{"rule":"/mobile-cart.jsp;/checkout/login.jsp;/checkout/shipping.jsp;/checkout/;/payment/MCheckout_input;/store/checkout/confirm.jsp;https://pay.usps.com/;https://catpx-pay.usps.com/;https://sitpx-pay.usps.com/;/pse-form-enter.action;/store/pse/pse-configure.jsp;/pfs/;/schedule-pickup-steps.htm;https://ecom-cat.usps.com/store/checkout/shipping.jsp;https://ecom-sit.usps.com/store/checkout/shipping.jsp;https://store.usps.com/store/checkout/shipping.jsp;https://postalpro.usps.com/;https://gateway.usps.com/;https://prodpx-promotool.usps.com/promoreg/campaignView.do;https://about.usps.com/;https://pe.usps.com/;http://pe.usps.com/;https://delivercheer.com/;https://dbcalc-cat.usps.com/CalculatorSetPage.aspx;https://dbcalc.usps.com/CalculatorSetPage.aspx"},"inclusionUrl":{"rule":"https://ecom-sit.usps.com;https://ecom-cat.usps.com;https://store.usps.com"}},"onSiteData":{"devicetypes":["desktop"],"kampyleInvitePercentageUsers":{"prec":"2.0"},"abandon":{"height":"1","zIndex":"9999999"},"kampyleInvitePerSession":{"inviteOncePerSession":"false"},"declined":{"days":"30"},"submitted":{"days":"60"},"genericRule":"{\"type\":\"criteriaGroup\",\"conjunction\":\"AND\",\"childrenCriterias\":[{\"type\":\"criteria\",\"value\":\"0\",\"formId\":7,\"fieldId\":5,\"formName\":\"Store Abandonment\",\"uniqueId\":\"customParam5\",\"condition\":\"greaterThan\",\"fieldName\":\"Cart Count\",\"fieldType\":\"Number\",\"fieldOrigin\":\"customParam\"}]}"}},{"formId":"307","isCustomHtmlEnabled":"false","formVersion":"2","formHtmlUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/307/form1623875747329.html","formDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/307/formData1623875747426_###LANGUAGE_CODE###.json","formWidth":"450","formHeight":"450","isFixedSize":"false","isFullWidthEmbedded":"null","designSettings":{"formBackgroundColor":"","thankYouPageBackgroundColor":""},"formLocalizationSettings":{"defaultLanguage":"en","useCustomParam":"true","customParam":"5983"},"formJsonRelativePath":"wdcgov/2/forms/307/formData1623875747426_###LANGUAGE_CODE###.json","formJsonV2RelativePath":"wdcgov/2/forms/307/formDataV2_1623875747426_###LANGUAGE_CODE###.json","availableLanguages":["en","es","zh"],"triggerAvailableLanguages":["en","es","zh"],"buttonData":{"textLocalization":{"en":"Feedback","es":"Comentarios","zh":"反馈"},"type":"vertical","text":"Feedback","textColor":"#ffffff","backgroundColor":"#333366","buttonUrl":"","position":"right","cornerMargin":"0.0","verticalOffset":"0.0","zIndex":"","backgroundHoverColor":"","textHoverColor":""},"functionFileUrl":"","customParams":"[{\"id\":\"5984\",\"unique_name\":\"Product Name\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaPname\",\"is_identifier\":\"false\"}, {\"id\":\"5983\",\"unique_name\":\"Domain Language\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaSurveyLanguage\",\"is_identifier\":\"false\"}, {\"id\":\"4\",\"unique_name\":\"_gid\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_gid\",\"is_identifier\":\"false\"}, {\"id\":\"7\",\"unique_name\":\"_ga\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_ga\",\"is_identifier\":\"false\"}, {\"id\":\"5973\",\"unique_name\":\"Tracking Category 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTcat\",\"is_identifier\":\"false\"}, {\"id\":\"5975\",\"unique_name\":\"Tracking ID 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTid\",\"is_identifier\":\"false\"}, {\"id\":\"5974\",\"unique_name\":\"Tracking Name 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTname\",\"is_identifier\":\"false\"}, {\"id\":\"6\",\"unique_name\":\"Number Randomizer\",\"type\":\"Number\",\"source\":\"Cookie\",\"source_name\":\"mab_usps\",\"is_identifier\":\"false\"}, {\"id\":\"5\",\"unique_name\":\"Cart Count\",\"type\":\"Number\",\"source\":\"Var\",\"source_name\":\"cart_count\",\"is_identifier\":\"false\"}]","formType":"button","formDisplay":{"displayType":"lightbox","displayDirection":"centerRight","isSelfHosted":"","selfHostedUrl":""},"onSiteData":{"devicetypes":["desktop","tablet"]},"urlRules":{"exclusionUrl":{"rule":""},"inclusionUrl":{"rule":"https://tusps.usps.com/"}}},{"formId":"302","isCustomHtmlEnabled":"false","formVersion":"2","formHtmlUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/302/form1617410740176.html","formDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/302/formData1617410740313_###LANGUAGE_CODE###.json","formWidth":"450","formHeight":"450","isFixedSize":"false","isFullWidthEmbedded":"null","designSettings":{"formBackgroundColor":"","thankYouPageBackgroundColor":""},"formLocalizationSettings":{"defaultLanguage":"en","useCustomParam":"false","customParam":"null"},"formJsonRelativePath":"wdcgov/2/forms/302/formData1617410740313_###LANGUAGE_CODE###.json","availableLanguages":["en"],"inviteJsonRelativePath":"wdcgov/2/forms/302/invitationData1617394798016_###LANGUAGE_CODE###.json","triggerAvailableLanguages":["en"],"functionFileUrl":"","customParams":"[{\"id\":\"5984\",\"unique_name\":\"Product Name\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaPname\",\"is_identifier\":\"false\"}, {\"id\":\"5983\",\"unique_name\":\"Domain Language\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaSurveyLanguage\",\"is_identifier\":\"false\"}, {\"id\":\"4\",\"unique_name\":\"_gid\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_gid\",\"is_identifier\":\"false\"}, {\"id\":\"7\",\"unique_name\":\"_ga\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_ga\",\"is_identifier\":\"false\"}, {\"id\":\"5973\",\"unique_name\":\"Tracking Category 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTcat\",\"is_identifier\":\"false\"}, {\"id\":\"5975\",\"unique_name\":\"Tracking ID 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTid\",\"is_identifier\":\"false\"}, {\"id\":\"5974\",\"unique_name\":\"Tracking Name 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTname\",\"is_identifier\":\"false\"}, {\"id\":\"6\",\"unique_name\":\"Number Randomizer\",\"type\":\"Number\",\"source\":\"Cookie\",\"source_name\":\"mab_usps\",\"is_identifier\":\"false\"}, {\"id\":\"5\",\"unique_name\":\"Cart Count\",\"type\":\"Number\",\"source\":\"Var\",\"source_name\":\"cart_count\",\"is_identifier\":\"false\"}]","formType":"invitation","formDisplay":{"displayType":"lightbox","displayDirection":"centerRight","isSelfHosted":"","selfHostedUrl":""},"inviteData":{"inviteUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/302/invitation1617394797949.html","inviteHeight":"400","inviteWidth":"700","skipInvitation":"true","invitationPosition":"top","inviteDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/302/invitationData1617394798016_###LANGUAGE_CODE###.json"},"urlRules":{"exclusionUrl":{"rule":""},"inclusionUrl":{"rule":"https://postalpro.usps.com/"}},"onSiteData":{"devicetypes":["desktop","mobile","tablet"],"kampyleInvitePercentageUsers":{"prec":"30.0"},"kampyleTimeOnPage":{"time":"7"},"declined":{"days":"30"},"kampyleInvitePerSession":{"inviteOncePerSession":"false"},"kampyleTimeInSession":{"time":"10"},"submitted":{"days":"60"}}},{"formId":"244","isCustomHtmlEnabled":"false","formVersion":"2","formHtmlUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/244/form1623869669625.html","formDataUrl":"https://resources.digital-cloud-gov.medallia.com/wdcgov/2/forms/244/formData1623869669784_###LANGUAGE_CODE###.json","formWidth":"450","formHeight":"450","isFixedSize":"false","isFullWidthEmbedded":"null","designSettings":{"formBackgroundColor":"","thankYouPageBackgroundColor":""},"formLocalizationSettings":{"defaultLanguage":"en","useCustomParam":"true","customParam":"5983"},"formJsonRelativePath":"wdcgov/2/forms/244/formData1623869669784_###LANGUAGE_CODE###.json","formJsonV2RelativePath":"wdcgov/2/forms/244/formDataV2_1623869669784_###LANGUAGE_CODE###.json","availableLanguages":["en","es","zh"],"triggerAvailableLanguages":["en","es","zh"],"buttonData":{"textLocalization":{"en":"Feedback","es":"Comentarios","zh":"反馈"},"type":"vertical","text":"Feedback","textColor":"#ffffff","backgroundColor":"#333366","buttonUrl":"","position":"right","cornerMargin":"0.0","verticalOffset":"0.0","zIndex":"","backgroundHoverColor":"","textHoverColor":""},"functionFileUrl":"","customParams":"[{\"id\":\"5984\",\"unique_name\":\"Product Name\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaPname\",\"is_identifier\":\"false\"}, {\"id\":\"5983\",\"unique_name\":\"Domain Language\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaSurveyLanguage\",\"is_identifier\":\"false\"}, {\"id\":\"4\",\"unique_name\":\"_gid\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_gid\",\"is_identifier\":\"false\"}, {\"id\":\"7\",\"unique_name\":\"_ga\",\"type\":\"Text\",\"source\":\"Cookie\",\"source_name\":\"_ga\",\"is_identifier\":\"false\"}, {\"id\":\"5977\",\"unique_name\":\"Tracking Features\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"window.dataLayer.0.ecommerce.impressions.0.dimension149\",\"is_identifier\":\"false\"}, {\"id\":\"5973\",\"unique_name\":\"Tracking Category 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTcat\",\"is_identifier\":\"false\"}, {\"id\":\"5975\",\"unique_name\":\"Tracking ID 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTid\",\"is_identifier\":\"false\"}, {\"id\":\"5974\",\"unique_name\":\"Tracking Name 2.0\",\"type\":\"Text\",\"source\":\"Var\",\"source_name\":\"medalliaTname\",\"is_identifier\":\"false\"}, {\"id\":\"6\",\"unique_name\":\"Number Randomizer\",\"type\":\"Number\",\"source\":\"Cookie\",\"source_name\":\"mab_usps\",\"is_identifier\":\"false\"}, {\"id\":\"5\",\"unique_name\":\"Cart Count\",\"type\":\"Number\",\"source\":\"Var\",\"source_name\":\"cart_count\",\"is_identifier\":\"false\"}]","formType":"button","formDisplay":{"displayType":"lightbox","displayDirection":"centerRight","isSelfHosted":"","selfHostedUrl":""},"urlRules":{"exclusionUrl":{"rule":"https://cat-tools.usps.com/;https://tusps.usps.com/;https://postalpro.usps.com/;https://gateway.usps.com/;https://gateway-cat.usps.com/;https://prodpx-promotool.usps.com/promoreg/campaignView.do;https://about.usps.com/;https://pe.usps.com/;https://pe.usps.gov/;http://about.usps.com/;http://pe.usps.com/;https://prodpx-promotool.usps.com/promoregadmin/editCampaignEmailAction.do;https://prodpx-promotool.usps.com/promoregadmin/editCampaignInfo.do;https://prodpx-promotool.usps.com/;http://origin-about.usps.com/;https://origin-about.usps.com/;http://origin-catpx-about.usps.com/;https://origin-catpx-about.usps.com/;http://irresistiblemail.com/;https://irresistiblemail.com/;https://gateway-cat.usps.com;https://postcalc.usps.com;https://postcalcsm.usps.com;https://postcalcea.usps.com;https://postcalc-cat.usps.com;https://postcalc-cat1.usps.com;https://postcalc-cat2.usps.com;https://postcalc-cat3.usps.com;https://postcalc-cat4.usps.com;https://postcalc-cat5.usps.com;https://postcalc-cat6.usps.com;https://postcalc-sit.usps.com;https://postcalc-sit1.usps.com;https://postcalc-sit2.usps.com;https://ibcalc.usps.com;https://ibcalcsm.usps.com;https://ibcalcea.usps.com;https://ibcalc-cat.usps.com;https://ibcalc-cat1.usps.com;https://ibcalc-cat2.usps.com;https://ibcalc-cat3.usps.com;https://ibcalc-cat4.usps.com;https://ibcalc-cat5.usps.com;https://ibcalc-cat6.usps.com;https://ibcalc-sit.usps.com;https://ibcalc-sit1.usps.com;https://ibcalc-sit2.usps.com;https://dbcalc.usps.com;https://dbcalcsm.usps.com;https://dbcalcea.usps.com;https://dbcalc-cat.usps.com;https://dbcalc-cat1.usps.com;https://dbcalc-cat2.usps.com;https://dbcalc-cat3.usps.com;https://dbcalc-cat4.usps.com;https://dbcalc-cat5.usps.com;https://dbcalc-cat6.usps.com;https://dbcalc-sit.usps.com;https://dbcalc-sit1.usps.com/;https://dbcalc-sit2.usps.com/;https://pe.usps.com;https://pe-ea.usps.com;https://pe-sm.usps.com;https://pe-cat.usps.com;https://pe-cat.usps.com;https://pe-sit.usps.com;https://www.usps.com/datadial;https://www.usps.com/datadial/;https://www.uspscybersafe.com/businesses;https://www.uspscybersafe.com/businesses/;https://smartbusinessmoments.usps.com;https://smartbusinessmoments.usps.com/;https://delivercheer.com/;http://delivercheer.com;http://delivercheer.com/;https://www.usps.com/holiday/holiday-shipping-dates.htm;https://stage-www.usps.com/holiday/holiday-shipping-dates.htm;https://tusps.usps.com/holiday/holiday-shipping-dates.htm;https://dbcalc-cat.usps.com/CalculatorSetPage.aspx;https://dbcalc.usps.com/CalculatorSetPage.aspx;https://www.imresearchcenter.com/;https://www.delivercheer.com/;http://stage.usps-op-santa-adopter2018.mrmclient.com/;https://www.uspsdelivers.com/;http://usprioritymailing.com/;https://fast.usps.com/;https://cat-tools.usps.com/schedule-pickup-steps.htm#;https://pe-sit.usps.com;https://pe-cat.usps.com;https://catpx-pay.usps.com;https://sitpx-pay.usps.com;https://pay.usps.com;uspsid.com;http://uspsid.com;https://usps.taradel.com;https://dm.taradel.com;http://www.deliveringinnovation.com/"},"inclusionUrl":{"rule":""}},"onSiteData":{"devicetypes":["desktop","tablet"]}}],"integrations":{"recordedSessions":[]},"usersnapEnvId":"NOT_SET","usersnapOnpremWidgetLoaderPath":null,"propertyMessages":null,"globalResourcesUrl":"https://resources.digital-cloud-gov.medallia.com/liveApp/resources","submitUrlPrefix":"https://feedback.digital-cloud-gov.medallia.com/","submitUrlSuffix":"feedback/api/feedback/submit","submitUrlWithBackendUUID":"https://feedback.digital-cloud-gov.medallia.com/feedback/api/v2/feedback/submit","region":"digital-cloud-gov","websiteId":2,"accountId":1,"packageVersion":null,"isSpa":false,"isWCAG":true,"isManuallyInviteTargeting":false,"isGoogleAnalyticsClientGTM":false,"isFormsPreloaded":true,"cookieExpirationTime":null,"adobeSdkName":null,"sharedSubdomain":null,"customCssUpload":false,"exemptButtonFormsFromQuarantine":false,"exemptCodeFormsFromQuarantine":false,"exemptEmbeddedFormsFromQuarantine":false,"screenCaptureSelectionTool":null};}
function fetchOnsiteExternalConfiguration(onsiteDataUrl){KAMPYLE_UTILS.httpRequest(KAMPYLE_CONSTANT.HTTP_METHODS.GET,onsiteDataUrl,null,MDIGITAL.CONFIGURATION.onsiteDataSuccess,MDIGITAL.CONFIGURATION.onsiteDataFailed);}
function onsiteDataSuccess(data){if(!data||data.error){MDIGITAL.CONFIGURATION.onsiteDataFailed(data);}else{if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.DYNAMIC_ONSITE_EVENTS)){KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.MDIGITAL_DYNAMIC_ONSITE_INITIALIZED_SUCCESSFULLY);}
KAMPYLE_DATA.setMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.HAS_ONSITE_CONFIGURATION,true);var formattedData=MDIGITAL.CONFIGURATION.formatConfiguration(data);var fullConfiguration=Object.assign({},getOnsiteConfiguration(),formattedData);MDIGITAL.INIT.initOnsite(fullConfiguration);}}
function onsiteDataFailed(error){var eventData={errorMessage:KAMPYLE_CONSTANT.LOG_MESSAGES.ERROR_DYNAMIC_ONSITE_INITIALIZATION,additionalInfo:error};KAMPYLE_EVENT_DISPATCHER.triggerError(eventData);KAMPYLE_DATA.setMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.HAS_ONSITE_CONFIGURATION,false);}
function formatConfiguration(propertyData){var formattedData=propertyData;var customParams;if(formattedData.formNodes&&formattedData.formNodes.length){for(var i=0;i9)){}
KAMPYLE_SESSIONCAM.init();MDIGITAL.CUSTOM_EVENTS.init();createSession();subscribeToPageEvents();subscribeToCustomEvents();KAMPYLE_UTILS.setEventHandler(window,'hashchange',handleHashChanged);}
function validateFormContract(formsObj){formsObj.formNodes=formsObj.formNodes||[];var currForm;for(var i=formsObj.formNodes.length-1;i>=0;i--){currForm=formsObj.formNodes[i];if(!currForm.formHeight||currForm.formHeight==='null'){currForm.formHeight=KAMPYLE_CONSTANT.FORM_HEIGHT;}
if(!currForm.formWidth||currForm.formWidth==='null'){currForm.formWidth=KAMPYLE_CONSTANT.FORM_WIDTH;}}
return formsObj;}
function subscribeFirstToPageEvents(){var eventMapping={neb_inviteReady:[sendInviteInitialData],neb_buttonClicked:[loadFormFirst],neb_inviteAccepted:[loadFormFirst],neb_showInvitation:[prepareInviteTriggeringData],neb_sdkPageView:[setInviteState,KAMPYLE_DATA.initOnsiteDefaultState,KAMPYLE_DATA.resetAllFormsLanguagesCode],};KAMPYLE_EVENT_DISPATCHER.subscribeMany(eventMapping);}
function loadFormFirst(eventName,data){var formState=KAMPYLE_DATA.getFormState(data.formId);if(!formState.loaded&&!formState.loading){KAMPYLE_EVENT_DISPATCHER.trigger('neb_loadForm',{formId:data.formId});}}
function loadMultipileForms(eventName,data){var formIds=(data||{}).formIds||[];formIds.forEach(function(fid){KAMPYLE_COMMON.loadForm(fid);});}
function routeToForm(eventName,data){data=data||{};KAMPYLE_COMMON.closeForm(data.sourceFormId);if(!KAMPYLE_COMMON.showForm(data.formId)){throw new Error('Form cannot be loaded');}}
function focusOnInviteIframe(){if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.NEW_MODAL_DIALOGS)){return;}
var iframe=document.querySelector('#kampyleInvite');if(iframe&&typeof iframe.focus==='function'){iframe.focus();}}
function handleInviteApplicationUpdated(eventName,data){data=data||{};var shouldShowInvite=(KAMPYLE_DATA.getFormState(data.formId)||{}).inviteShown;if(shouldShowInvite&&MDIGITAL.FORM_STATE.isInviteLoaded(data.formId)&&isJsonDataLoaded(data.formId,true)&&!isAnyOtherFormAlreadyShown()){KAMPYLE_VIEW.showInvite("",{formId:data.formId});KAMPYLE_EVENT_DISPATCHER.trigger('neb_inviteReady',data);KAMPYLE_DATA.setMemoryData('inviteLoadedAndShown',true);}
else if(hasApplicationLoadingFailed(data.formId,true)||isAnyOtherFormAlreadyShown()){KAMPYLE_DATA.setFormState(data.formId,{inviteShown:false});}}
function subscribeToCustomEvents(){var eventMapping={neb_inviteDeclined:['neb_displayClosed'],neb_formClosed:['neb_displayClosed'],};KAMPYLE_EVENT_DISPATCHER.subscribeMany(eventMapping);}
function isFormAlreadyShown(formId){var shouldSkipShowingForm=KAMPYLE_DATA.isSkipInvitation(formId)&&isAnyOtherFormAlreadyShown(formId);if(shouldSkipShowingForm){KAMPYLE_EVENT_DISPATCHER.trigger('neb_formReady',{formId:formId});KAMPYLE_DATA.setFormState(formId,{shouldBeShown:false});KAMPYLE_EVENT_DISPATCHER.trigger('neb_skipShowingForm',{formId:formId});}
return shouldSkipShowingForm;}
function hasApplicationLoadingFailed(formId,isInvite){var jsonDataKey=KAMPYLE_DATA.getMemoryJsonKey(formId,isInvite);var currentMemoryData=KAMPYLE_DATA.getMemoryData(jsonDataKey);var formState=KAMPYLE_DATA.getFormState(formId);return currentMemoryData===false||(!isInvite&&formState&&formState.loaded===false)||(isInvite&&formState&&formState.inviteLoaded===false);}
function isJsonDataLoaded(formId,isInvite){var jsonDataKey=KAMPYLE_DATA.getMemoryJsonKey(formId,isInvite);return!KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.FORM_TEMPLATE_DATA_SEPERATION)||KAMPYLE_DATA.getMemoryData(jsonDataKey);}
function shouldSkipFetchingFormData(formId,isInvite,formLanguage,isLocalizedForm){var isFetchingDataInProgressKey=KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.FETCHING_DATA_IN_PROGRESS+formId;if(isLocalizedForm){isFetchingDataInProgressKey=isFetchingDataInProgressKey+'_'+formLanguage;}
var isFetchingDataInProgress=KAMPYLE_DATA.getMemoryData(isFetchingDataInProgressKey);return!KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.FORM_TEMPLATE_DATA_SEPERATION)||isJsonDataLoaded(formId,false)||hasApplicationLoadingFailed(formId,isInvite)||isFetchingDataInProgress;}
function handleFormLoadingFailed(eventName,data){if(data.failureCause===KAMPYLE_CONSTANT.FORM_LOADING_FAILURE_CAUSE.APPLICATION_FAILED){var formData=KAMPYLE_DATA.getFormData(data.formId);var displayType=KAMPYLE_DATA.getDisplayType(formData);var formState=KAMPYLE_DATA.getFormState(data.formId);var eventData={errorData:{formId:data.formId,displayType:displayType,formState:formState}};KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.MDIGITAL_COULD_NOT_LOAD_FORM_APPLICATION,eventData);}
setTimeout(function(){KAMPYLE_DATA.setFormState(data.formId,{shouldBeShown:false,loaded:false});},0);}
function isFormLoaded(formId){var formData=KAMPYLE_DATA.getFormData(formId);var displayType=KAMPYLE_DATA.getDisplayType(formData);return MDIGITAL.FORM_STATE.isFormLoaded(formId)||displayType===KAMPYLE_CONSTANT.DISPLAY_TYPES.POPUP;}
function handleInviteVersion(formId){var inviteDataKey=KAMPYLE_DATA.getMemoryJsonKey(formId,true);var inviteData=KAMPYLE_DATA.getMemoryData(inviteDataKey);KAMPYLE_DATA.setMemoryData('inviteVersion',inviteData&&inviteData.mobileDesign?1:-1);}
function prepareJsonData(eventName,data){var isInvite=eventName==='neb_loadInvitation';var formLanguage=KAMPYLE_DATA.getMemoryData(KAMPYLE_CONSTANT.LANG_MEMORY_DATA_KEY_PREFIX+data.formId);var isLocalizationOn=KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.LOCALIZED_FORMS);var fetchingDataInProgressKey=KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.FETCHING_DATA_IN_PROGRESS+data.formId;if(isLocalizationOn){fetchingDataInProgressKey=fetchingDataInProgressKey+'_'+formLanguage}
if(isInvite){fetchingDataInProgressKey=fetchingDataInProgressKey+'_invite';}
if(KAMPYLE_FUNC.shouldSkipFetchingFormData(data.formId,isInvite,formLanguage,isLocalizationOn)){return;}
else{KAMPYLE_DATA.setMemoryData(fetchingDataInProgressKey,true);}
KAMPYLE_DATA.fetchFormJsonData({formId:data.formId,isInvite:isInvite,fetchingDataInProgressKey:fetchingDataInProgressKey,callback:function(){if(isInvite){KAMPYLE_VIEW.updateInviteIframeTitle("",data);handleInviteVersion(data.formId);KAMPYLE_FUNC.handleInviteApplicationUpdated("",data);}
else{KAMPYLE_FUNC.handleFormStateUpdated(data);}},onError:onJsonFetchingFailed.bind(null,data,isInvite)});}
function shouldRenderForm(data){var isFormLoadedSuccessfully=isFormLoaded(data.formId)&&isJsonDataLoaded(data.formId,false);var shouldShowForm=MDIGITAL.FORM_STATE.shouldFormBeShown(data.formId)&&!isFormAlreadyShown(data.formId);return isFormLoadedSuccessfully&&shouldShowForm;}
function onJsonFetchingFailed(data,isInvite,error){var jsonDataKey=KAMPYLE_DATA.getMemoryJsonKey(data.formId,isInvite);KAMPYLE_DATA.setMemoryData(jsonDataKey,false);if(!isInvite){KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.NEB_FORM_LOADING_HAS_FAILED,{formId:data.formId,failureCause:KAMPYLE_CONSTANT.FORM_LOADING_FAILURE_CAUSE.JSON_FAILED});}
var eventData={errorData:{formId:data.formId,isInvite:isInvite,errorDetails:error}};KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.MDIGITAL_COULD_NOT_FETCH_DATA,eventData);}
function handleFormStateUpdated(data){if(shouldRenderForm(data)){KAMPYLE_EVENT_DISPATCHER.trigger('neb_showForm',{formId:data.formId});KAMPYLE_EVENT_DISPATCHER.trigger('neb_formReady',{formId:data.formId});KAMPYLE_DATA.setFormState(data.formId,{shown:true,isCurrentlySubmitted:false});}
else if(hasApplicationLoadingFailed(data.formId,false)){KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.NEB_FORM_LOADING_HAS_FAILED,{formId:data.formId});}}
function subscribeToPageEvents(){var eventMapping={neb_pageView:[increasePageViewCounter],neb_showInvitation:[setInviteState,KAMPYLE_UTILS.setCurrentScrollPosition,setFocusedElement,focusOnInviteIframe,handleInviteApplicationUpdated],neb_buttonClicked:[KAMPYLE_UTILS.setCurrentScrollPosition,setFocusedElement,handleShowForm],neb_sdkShowForm:[KAMPYLE_UTILS.setCurrentScrollPosition,setFocusedElement,handleShowForm],neb_skipInvitation:[KAMPYLE_UTILS.setCurrentScrollPosition,handleShowForm],neb_inviteLoaded:[setInviteState,handleInviteLoaded],neb_inviteAccepted:[setInviteState,KAMPYLE_UTILS.setCurrentScrollPosition,handleShowForm],neb_inviteDeclined:[setInviteState,handleInviteDeclined,KAMPYLE_UTILS.handleAfterFormPosition],neb_formClosed:[handleFormClosed,KAMPYLE_UTILS.handleAfterFormPosition],neb_popupBlocked:[handleFormClosed,KAMPYLE_UTILS.handleAfterFormPosition],neb_loadForm:[prepareJsonData,handleFormLoading],neb_loadInvitation:[prepareJsonData],neb_formLoaded:[handleFormLoaded],neb_loadMultipileForms:[loadMultipileForms],neb_routeToForm:[routeToForm],neb_formReady:[sendFormExtraData,handleVersion,loadScreenCaptureApi],neb_feedbackSubmitted:[handleFeedbackSubmitted],neb_sdkPageView:[startCheckingTargeting],neb_screenCaptureLoaded:[handleScreenCaptureApiLoaded],neb_formLoadingHasFailed:[handleFormLoadingFailed]};KAMPYLE_EVENT_DISPATCHER.subscribeMany(eventMapping);}
function getTriggerTypeByEvent(eventName){var eventTriggerMapping={neb_buttonClicked:'Button',neb_sdkShowForm:'ByCode',neb_routeToForm:'ByCode',neb_skipInvitation:'Invitation',neb_inviteAccepted:'Invitation',};return eventTriggerMapping[eventName]||null;}
function handleShowForm(eventName,data){data=data||{};data.triggerType=data.triggerType||getTriggerTypeByEvent(eventName);KAMPYLE_DATA.saveFormExtraData(data.formId,{triggerType:data.triggerType,});KAMPYLE_DATA.setMemoryData('currentFormId',data.formId);KAMPYLE_DATA.setMemoryData('formIsShown',true);KAMPYLE_DATA.setFormState(data.formId,{shouldBeShown:true,triggerType:data.triggerType});handleFormStateUpdated(data);}
function createSession(){var referrerDifferentThanHost=KAMPYLE_FUNC.isReferrerDifferentThanHost();var kampyleUserSession=KAMPYLE_DATA.getData('kampyleUserSession');var isDirectNavigation=false;try{isDirectNavigation=document.referrer===''||window.parent.document.referrer==='';}catch(e){var data={errorMessage:e.message,errorStack:e.stack,additionalInfo:"createSession- failed to access document.referrer, probably CORS problem when the customer's iframe is hosted in a website with different domain."};referrerDifferentThanHost=false;}finally{if(!kampyleUserSession||isDirectNavigation||referrerDifferentThanHost){KAMPYLE_DATA.setMemoryData('isSyncedIdentifierData',false);KAMPYLE_DATA.setData('kampyleUserSession',KAMPYLE_UTILS.getCurrentTimestamp());KAMPYLE_DATA.setData('kampyleSessionPageCounter',0);addToSessionCount();KAMPYLE_DATA.deleteData('kampyleUserPercentile');KAMPYLE_DATA.deleteData('kampyleInvitePresented');KAMPYLE_DATA.deleteData(KAMPYLE_CONSTANT.SESSION_DATA_FIELDS.IS_SURVEY_SUBMITTED_IN_SESSION)}}}
function isReferrerDifferentThanHost(){var referrerDomain=document.referrer.match(/:\/\/(.[^/]+)/);if(!referrerDomain){return true;}
referrerDomain=referrerDomain[1];if(referrerDomain===window.location.host){return false;}
var propertySharedSubdomain=KAMPYLE_DATA.getPropertySharedSubdomain();if(propertySharedSubdomain){return!KAMPYLE_UTILS.isHostMatchesSubdomain(referrerDomain,propertySharedSubdomain)||!KAMPYLE_UTILS.isHostMatchesSubdomain(window.location.host,propertySharedSubdomain);}
return true;}
function handleInviteLoaded(eventName,data){data=data||{};if(!KAMPYLE_DATA.getMemoryData('inviteVersion')){var inviteVersion=KAMPYLE_UTILS.getNestedPropertyValue(data,'inviteVersion');KAMPYLE_DATA.setMemoryData('inviteVersion',inviteVersion);}
var formState=KAMPYLE_DATA.getFormState(data.formId)||{};if(formState.inviteShown){handleInviteApplicationUpdated("",data);}}
function handleFormLoading(eventName,data){data=data||{};KAMPYLE_DATA.setFormState(data.formId,{loading:true,});KAMPYLE_EVENT_DISPATCHER.trigger('neb_form_loaded',{formId:data.formId});}
function sendInviteInitialData(eventName,data){data=data||{};if(!KAMPYLE_DATA.getFormState(data.formId).inviteLoaded){return false;}
KAMPYLE_UTILS.sendMessageToIframe('kampyleInvite',{action:'inviteShown',});var messageData={accountId:data.accountId,websiteId:data.websiteId,environment:data.enviroment,url:document.location.href,kampyle_version:window.MDIGITAL.version||'0.0.0.0',formId:data.formId,cookie_size:KAMPYLE_UTILS.getByteSize(document.cookie),isWCAG:KAMPYLE_DATA.isFeatureEnabled('WCAG'),deviceType:checkDevice(),provisions:getAllProvisions(),position:KAMPYLE_VIEW.getInvitePosition(data.formId),customCssUpload:KAMPYLE_DATA.isFeatureEnabled(KAMPYLE_CONSTANT.PROPERTY_SETTINGS.CUSTOM_CSS_UPLOAD)};if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.FORM_TEMPLATE_DATA_SEPERATION)){var callbackFunction=function(jsonData){var formData=KAMPYLE_DATA.getFormData(data.formId);var onsiteConfiguration=MDIGITAL.CONFIGURATION.getOnsiteConfiguration();var extraMessageData={submitUrlPrefix:onsiteConfiguration.submitUrlPrefix,submitUrlSuffix:onsiteConfiguration.submitUrlSuffix,globalResourcesUrl:onsiteConfiguration.globalResourcesUrl,versionedResourcesUrl:formData.versionedResourcesUrl};messageData=Object.assign({},messageData,{inviteData:jsonData},extraMessageData);if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.LOCALIZED_FORMS)){messageData.formLanguage=MDIGITAL.LOCALIZATION.getFormLanguage(data.formId)||null;}
KAMPYLE_UTILS.sendMessageToIframe('kampyleInvite',{action:'setExtraData',data:messageData,});};var onError=function(error){console.error(error);};KAMPYLE_DATA.fetchFormJsonData({formId:data.formId,callback:callbackFunction,onError:onError,isInvite:true},true)}else{KAMPYLE_UTILS.sendMessageToIframe('kampyleInvite',{action:'setExtraData',data:messageData,});}}
function setInviteState(eventName,data){data=data||{};data.formId=data.formId||KAMPYLE_DATA.getMemoryData('currentFormId');switch(eventName){case'neb_showInvitation':KAMPYLE_DATA.setFormState(data.formId,{inviteShown:true,});break;case'neb_inviteDeclined':case'neb_inviteAccepted':KAMPYLE_DATA.setFormState(data.formId,{inviteShown:false,});break;case'neb_inviteLoaded':KAMPYLE_DATA.setFormState(data.formId,{inviteLoaded:true,});break;case'neb_sdkPageView':KAMPYLE_DATA.setFormState(data.formId,{inviteLoaded:null,inviteShown:false,});break;default:KAMPYLE_UTILS.showWarning('Unhandled event name '+eventName);}}
function updatePreviewIframeStyle(formData){var currentFormId=formData.formId;var formWidth;var formHeight;if(formData){formWidth=parseInt(formData.formWidth,10);formHeight=parseInt(formData.formHeight,10);}
var hostWidth=document.documentElement.clientWidth;var hostHeight=document.documentElement.clientHeight;var innerContainerStyle={overflowY:'auto',height:'100%',};KAMPYLE_UTILS.setElementStyle(document.getElementById('innerContainer'),innerContainerStyle);var iframeStyleObject={border:0,position:'relative',margin:'50px auto 50px',height:formHeight+'px',width:formWidth+'px',};if(hostWidth>formWidth&&hostHeight>formHeight){if(KAMPYLE_DATA.isCustomHtmlAndFixedSizeForm(currentFormId)){iframeStyleObject={position:'absolute',top:'50%','margin-top':-formHeight/2+'px',left:'50%','margin-left':-formWidth/2+'px',height:formHeight+'px',width:formWidth+'px',};}
else{iframeStyleObject={position:'fixed',height:'100%',width:'100%',};}}
var modal=document.getElementById('kampyleFormModal');if(modal&&modal.style&&modal.removeAttribute){modal.removeAttribute('style');KAMPYLE_UTILS.setElementStyle(modal,iframeStyleObject);}}
function showPreviewForm(){var formHeight=450;var formWidth=450;var formUrl=KAMPYLE_UTILS.getUrlParam('url');var url;if(KAMPYLE_DATA.getMemoryData('kampyleDevice')===KAMPYLE_CONSTANT.DEVICES.MOBILE){formWidth='100%';formHeight='100%';}
else{var height=KAMPYLE_UTILS.getUrlParam('height');var width=KAMPYLE_UTILS.getUrlParam('width');if(!!height&&!isNaN(height)){formHeight=height;}
if(!!width&&!isNaN(width)){formWidth=width;}}
if(!!formUrl&&KAMPYLE_UTILS.validateKampyleDomain(decodeURIComponent(formUrl))){formUrl=decodeURIComponent(formUrl);formUrl+='?region='+KAMPYLE_DATA.getMemoryData('region');var formId=KAMPYLE_UTILS.getUrlParam('formId');if(!!formId){formUrl+='&formId='+formId;KAMPYLE_DATA.setMemoryData('currentFormId',formId);}
else{url=location.protocol+'//'+location.host;window.location=url+'/#/error/404';}
var provisions=decodeURIComponent(window.getUrlParam('provisions'));if(!!provisions){formUrl+='&provisions='+encodeURIComponent(provisions);}
var currentWebsiteId=decodeURIComponent(window.getUrlParam('websiteId'));if(!!currentWebsiteId){formUrl+='&websiteId='+encodeURIComponent(currentWebsiteId);}
var type=KAMPYLE_UTILS.getUrlParam('type')||'direct';var validTypes=['live','direct','preview'];if(validTypes.indexOf(type.toLowerCase())===-1){type='direct';}
formUrl+='&type='+type;var iframeHeight='100%';var iframeWidth='100%';if(KAMPYLE_DATA.isCustomHtmlAndFixedSizeForm(formId)){iframeHeight=formHeight;iframeWidth=formWidth;}
var iframe=KAMPYLE_UTILS.createIframe(formUrl,iframeWidth,iframeHeight,'kampyleForm'+formId);if(KAMPYLE_DATA.isCustomHtmlForm(formId)){updatePreviewIframeStyle({formId:formId,formHeight:formHeight,formWidth:formWidth,});}
var modal=document.getElementById('kampyleFormModal');if(!!modal){modal.appendChild(iframe);if(iframe.offsetTop<30&&!KAMPYLE_DATA.getMemoryData('kampyleDevice')===KAMPYLE_CONSTANT.DEVICES.MOBILE){modal.style.paddingTop=30-iframe.offsetTop+'px';}}}
else{url=location.protocol+'//'+location.host;window.location=url+'/#/error/404';}}
function getUserIdentifierVal(){var identifierCustomParam=KAMPYLE_DATA.getUserIdentifier();if(!identifierCustomParam){return null;}
var userIdentifierVal=MDIGITAL.CUSTOM_PARAMETERS.getCustomParamValue({name:identifierCustomParam.source_name,type:identifierCustomParam.type,source:identifierCustomParam.source,});if(!userIdentifierVal){return null;}
return userIdentifierVal;}
function setIdentifierData(identifierData){KAMPYLE_DATA.setMemoryData('isSyncedIdentifierData',true);updateIdentifierDataIfNecessary(identifierData.data);}
function updateIdentifierDataIfNecessary(identifierData){updateIdentifierDataIntegerIfNecessary(identifierData.DECLINED_DATE,'DECLINED_DATE');updateIdentifierDataIntegerIfNecessary(identifierData.SUBMITTED_DATE,'SUBMITTED_DATE');}
function updateIdentifierDataIntegerIfNecessary(identifierDataValue,userStateString){var localStorageDate=parseInt(KAMPYLE_DATA.getData(userStateString));localStorageDate=localStorageDate?localStorageDate:null;var identifierDataToSync={identifierDataState:userStateString,identifierValOnLocalStorage:localStorageDate};var identifierDataValues={identifierDataState:userStateString,identifierValOnSbt:identifierDataValue,identifierValOnLocalStorage:localStorageDate};identifierDataValue=identifierDataValue?identifierDataValue:null;if(identifierDataValue===localStorageDate){return null;}
if((identifierDataValue!==null&&localStorageDate===null)||identifierDataValue>localStorageDate){KAMPYLE_DATA.setData(userStateString,identifierDataValue);}
else if((localStorageDate!==null&&identifierDataValue===null)||identifierDataValue=requiredVersion;}
function isMobile(){var device=KAMPYLE_DATA.getMemoryData('kampyleDevice');return(device&&device!=='desktop');}
function getServerBasedTargetingPrefix(){return getNestedConfigurationProperty('sbtServerDomain');}
function getServerBasedTargetingEnv(){return getNestedConfigurationProperty('sbtEnvPrefix');}
function getPropertySharedSubdomain(){var sharedSubdomain=getNestedConfigurationProperty('sharedSubdomain');return sharedSubdomain&&KAMPYLE_UTILS.isHostMatchesSubdomain(window.location.host,sharedSubdomain)?sharedSubdomain:null;}
function getUserIdentifier(){var formNodes=getNestedConfigurationProperty('formNodes')||[];for(var i=0;iKAMPYLE_UTILS.getCurrentTimestamp();}
function handleButton(eventName,data){data=data||{};var formData=KAMPYLE_DATA.getFormData(data.formId);if(!formData){return false;}
var kampyleDevice=KAMPYLE_DATA.getMemoryData('kampyleDevice');if(kampyleDevice===KAMPYLE_CONSTANT.DEVICES.MOBILE||kampyleDevice===KAMPYLE_CONSTANT.DEVICES.TABLET){if(KAMPYLE_FUNC.isPreloadConfigured()){KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.NEB_LOAD_FORM,{formId:data.formId});}}
KAMPYLE_DATA.setFormState(data.formId,{loaded:null});KAMPYLE_DATA.setMemoryData('buttonFormId',data.formId);KAMPYLE_EVENT_DISPATCHER.trigger('neb_showButton',{formId:data.formId});KAMPYLE_DATA.setMemoryData('isButtonShown',true);return true;}
function getTextByQuarentine(quarentineKey){if(KAMPYLE_DATA.getData(quarentineKey)){return new Date(parseInt(KAMPYLE_DATA.getData(quarentineKey)));}
else{return QUARANTINE_DEFAULT_TEXTS[quarentineKey];}}
function isShowInvite(formData){var currentFormId=KAMPYLE_DATA.getMemoryData('currentInviteFormId');formData=formData||KAMPYLE_DATA.getFormData(currentFormId);if(!formData||KAMPYLE_DATA.getMemoryData('isInvitationShouldBeIgnored')){return false;}
var targetingState=KAMPYLE_DATA.getMemoryData('targetingState');for(var index in targetingState){if(targetingState[index]!==true){return false;}}
var shouldDisableIntercept=KAMPYLE_TARGETING.shouldDisableIntercept(formData);KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.MDIGITAL_BEHAVIORAL_TARGETING_PHASE_ENDED,formData);if(shouldDisableIntercept){return false;}
var isQuarantinePassed=isQuarantinePhasePassed(formData);KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.MDIGITAL_QUARANTINED_SURVEY_PHASE_ENDED,formData);if(!isQuarantinePassed){return false;}
KAMPYLE_DATA.setData('kampyleInvitePresented',true);var isSkipInvitation=KAMPYLE_UTILS.getNestedPropertyValue(formData,'inviteData.skipInvitation');KAMPYLE_UTILS.isTruthy(isSkipInvitation)?handleSkippedInvitaion(formData):KAMPYLE_TARGETING.handleNotSkippedInvitaion(formData);return true;}
function isQuarantinePhasePassed(formData){var isCheckQuarentinePassed=checkQuarantine(formData);var isFormIsShown=KAMPYLE_DATA.getMemoryData('formIsShown')===true;var isInviteMoreThanOncePerSession=KAMPYLE_UTILS.isTrue(KAMPYLE_UTILS.getNestedPropertyValue(formData,'onSiteData.kampyleInvitePerSession.inviteOncePerSession'));var isInviteAlreadyShownInSession=!isInviteMoreThanOncePerSession&&KAMPYLE_UTILS.isTrue(KAMPYLE_DATA.getData('kampyleInvitePresented'))
KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.MDIGITAL_TARGETING_RULE_EVALUATED,{formId:formData.formId,targetingRule:KAMPYLE_CONSTANT.TARGETING_RULES.INVITE_IF_ANY_INVITE_ALREADY_SHOWN_PER_SESSION,formTriggerType:KAMPYLE_DATA.getFormTriggerType(formData.formId),targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.QUARANTINE_TARGETING,isPassed:!isInviteAlreadyShownInSession,expected:"Display Invite "+(isInviteMoreThanOncePerSession?"more than once per session":"once per session"),actual:!isInviteAlreadyShownInSession,});var isSurveySubmittedInSession=false
if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.EXEMPT_FORMS_FROM_QUARANTINE)){isSurveySubmittedInSession=!isInviteMoreThanOncePerSession&&KAMPYLE_UTILS.isTrue(KAMPYLE_DATA.getData(KAMPYLE_CONSTANT.SESSION_DATA_FIELDS.IS_SURVEY_SUBMITTED_IN_SESSION))
KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.MDIGITAL_TARGETING_RULE_EVALUATED,{formId:formData.formId,targetingRule:KAMPYLE_CONSTANT.TARGETING_RULES.INVITE_IF_ANY_SURVEY_ALREADY_SUBMITTED_PER_SESSION,formTriggerType:KAMPYLE_DATA.getFormTriggerType(formData.formId),targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.QUARANTINE_TARGETING,isPassed:!isSurveySubmittedInSession,expected:"Display Invite "+(isInviteMoreThanOncePerSession?"more than once per session":"once per session"),actual:!isSurveySubmittedInSession});}
return(!isCheckQuarentinePassed&&!isFormIsShown&&!isInviteAlreadyShownInSession&&!isSurveySubmittedInSession)}
function isUbtFailed(formData){var isUbtCheckFailed=KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.SERVER_BASED_TARGETING)&&KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.DO_NOT_SURVEY_ON_UBT_NETWORK_FAIL)&&!KAMPYLE_DATA.getMemoryData('isGuest')&&!KAMPYLE_DATA.getMemoryData('isSyncedIdentifierData');if(isUbtCheckFailed){KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_targetingRuleEvaluated',{formId:formData.formId,targetingRule:'ubtFailed',formTriggerType:KAMPYLE_DATA.getFormTriggerType(formData.formId),targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.PAGE_TARGETING,isPassed:!isUbtCheckFailed,expected:'should ignore quarantine rules evaluation',actual:isUbtCheckFailed,});}
return isUbtCheckFailed;}
function handleSkippedInvitaion(formData){if(!KAMPYLE_FUNC.isPreloadConfigured()){KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.NEB_LOAD_FORM,{formId:formData.formId});}
KAMPYLE_EVENT_DISPATCHER.trigger('neb_skipInvitation',{formId:formData.formId});}
function isAlreadySubmitted(formData){var isAlreadySubmitted=isSubmitted(formData.onSiteData)===true;var submittedDays=KAMPYLE_UTILS.getNestedPropertyValue(formData,'onSiteData.submitted.days');var submittedDateText=KAMPYLE_TARGETING.getTextByQuarentine("SUBMITTED_DATE");submittedDays&&KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_targetingRuleEvaluated',{formId:formData.formId,targetingRule:'DontInviteOnSubmitted',formTriggerType:KAMPYLE_DATA.getFormTriggerType(formData.formId),targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.QUARANTINE_TARGETING,isPassed:!isAlreadySubmitted,expected:submittedDays+" days",actual:"Current: "+new Date()+" Submitted: "+submittedDateText,});return isAlreadySubmitted;}
function isAlreadyDeclined(formData){var isAlreadyDeclined=isDeclined(formData.onSiteData)===true;var declinedDateText=KAMPYLE_TARGETING.getTextByQuarentine("DECLINED_DATE");var declinedDays=KAMPYLE_UTILS.getNestedPropertyValue(formData,'onSiteData.declined.days');declinedDays&&KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_targetingRuleEvaluated',{formId:formData.formId,targetingRule:'DontInviteOnDeclined',formTriggerType:KAMPYLE_DATA.getFormTriggerType(formData.formId),targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.QUARANTINE_TARGETING,isPassed:!isAlreadyDeclined,expected:declinedDays+" days",actual:"Current: "+new Date()+" Declined: "+declinedDateText,});return isAlreadyDeclined;}
function shouldDisableIntercept(formData){var shouldDisableIntercept=false;var disableInterceptRule=KAMPYLE_UTILS.getNestedPropertyValue(formData,'onSiteData.disableInterceptRule');if(disableInterceptRule){if(typeof disableInterceptRule==='string'){disableInterceptRule=JSON.parse(disableInterceptRule);}
shouldDisableIntercept=KAMPYLE_TARGETING.evaluateRule(disableInterceptRule,formData);KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_targetingRuleEvaluated',{formId:formData.formId,targetingRule:'disableInterceptRule',formTriggerType:KAMPYLE_DATA.getFormTriggerType(formData.formId),targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.BEHAVIORAL_TARGETING,isPassed:shouldDisableIntercept,expected:"Disable intercept rule should be true",actual:shouldDisableIntercept,});}
return shouldDisableIntercept;}
function handleNotSkippedInvitaion(formData){if(KAMPYLE_DATA.getDisplayType(formData)===KAMPYLE_CONSTANT.DISPLAY_TYPES.POPUP){KAMPYLE_DATA.setFormState(formData.formId,{inviteShown:true});KAMPYLE_EVENT_DISPATCHER.trigger('neb_showInvitation',{formId:formData.formId});}else{if(KAMPYLE_FUNC.isFormLoaded(formData.formId)){KAMPYLE_EVENT_DISPATCHER.trigger("neb_showInvitation",{formId:formData.formId});}else{KAMPYLE_DATA.setMemoryData(KAMPYLE_TARGETING.generateShouldShowInviteParamName(formData.formId),true);KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.NEB_LOAD_FORM,{formId:formData.formId});}}}
function initTargetingObject(){var targetingState=KAMPYLE_DATA.getMemoryData('targetingState');targetingState.kampyleTimeInSession=false;if(KAMPYLE_DATA.getMemoryData('kampyleDevice')==='desktop'){targetingState.abandon=false;}
targetingState.kampylePageElementEvent=false;targetingState.kampyleTimeOnPage=false;targetingState.kampyleIdleTime=false;KAMPYLE_DATA.setMemoryData('targetingState',targetingState);}
function validateCommonTargetingOnForm(form){var canShow=true;var isUrlExcludedResult;if(canShow===true){isUrlExcludedResult=isUrlExcluded(form);KAMPYLE_UTILS.getNestedPropertyValue(form,'urlRules.exclusionUrl.rule')&&KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_targetingRuleEvaluated',{formId:form.formId,targetingRule:'UrlExclude',formTriggerType:KAMPYLE_DATA.getFormTriggerType(form.formId),targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.PAGE_TARGETING,isPassed:!isUrlExcludedResult,expected:KAMPYLE_UTILS.getNestedPropertyValue(form,'urlRules.exclusionUrl.rule'),actual:location.href,});if(isUrlExcludedResult===true){canShow=false;}}
if(canShow===true){var isIncluded=isUrlIncluded(form);(KAMPYLE_UTILS.getNestedPropertyValue(form,'urlRules.inclusionUrl.rule')&&KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_targetingRuleEvaluated',{formId:form.formId,formTriggerType:KAMPYLE_DATA.getFormTriggerType(form.formId),targetingRule:'UrlInclude',targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.PAGE_TARGETING,isPassed:isIncluded,expected:KAMPYLE_UTILS.getNestedPropertyValue(form,'urlRules.inclusionUrl.rule'),actual:location.href,}));if(isIncluded===false){canShow=false;}}
if(canShow===true){var isGenericRuleValidResult=isGenericRuleValid(form);(KAMPYLE_UTILS.getNestedPropertyValue(form,'onSiteData.genericRule')&&KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_targetingRuleEvaluated',{formId:form.formId,targetingRule:'GenericRule',formTriggerType:KAMPYLE_DATA.getFormTriggerType(form.formId),targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.PAGE_TARGETING,isPassed:isGenericRuleValidResult,expected:"Generic rule evaluation result should be true",actual:isGenericRuleValidResult,}));canShow=isGenericRuleValidResult;}
if(canShow===true){canShow=targetingDevice(form);(KAMPYLE_UTILS.getNestedPropertyValue(form,'onSiteData.devicetypes')&&KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_targetingRuleEvaluated',{formId:form.formId,targetingRule:'DeviceTypes',formTriggerType:KAMPYLE_DATA.getFormTriggerType(form.formId),targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.PAGE_TARGETING,isPassed:canShow,expected:KAMPYLE_UTILS.getNestedPropertyValue(form,'onSiteData.devicetypes').toString(),actual:KAMPYLE_DATA.getMemoryData('kampyleDevice'),}));}
return canShow;}
function isGenericRuleValid(data){if(data&&data.onSiteData&&data.onSiteData.genericRule){if(typeof data.onSiteData.genericRule==='string'){if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.GREATER_SMALLER_THAN_DECODE)){data.onSiteData.genericRule=KAMPYLE_UTILS.htmlDecode(data.onSiteData.genericRule);}
data.onSiteData.genericRule=JSON.parse(data.onSiteData.genericRule);}
return KAMPYLE_TARGETING.evaluateRule(data.onSiteData.genericRule,data);}
return true;}
function isUrlMatch(urlToMatch){if(!(typeof urlToMatch==='string')){return false;}
urlToMatch=urlToMatch.toLowerCase();var currentUrl=document.location.href.toLowerCase();var matchUrl=currentUrl.substring(0,urlToMatch.length);if(matchUrl===urlToMatch){return true;}
else{currentUrl=currentUrl.replace(/^(?:https?:\/\/)?(?:www\.)?([^\/]+)/i,'');matchUrl=currentUrl.substring(0,urlToMatch.length);if(matchUrl===urlToMatch){return true;}}
return false;}
function isUrlLimits(urlsData){urlsData=urlsData.split(';');var length=urlsData.length;for(var i=0;i=requiredTimeInSession){targetingState.kampyleTimeInSession=true;KAMPYLE_DATA.setMemoryData('targetingState',targetingState);KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_targetingRuleEvaluated',{formId:formData.formId,targetingRule:'TimeInSession',formTriggerType:KAMPYLE_DATA.getFormTriggerType(formData.formId),targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.BEHAVIORAL_TARGETING,isPassed:true,expected:requiredTimeInSession,actual:"Over on the expected "+requiredTimeInSession,});KAMPYLE_TARGETING.isShowInvite();}
else{var randomTime=0;var diff=requiredTimeInSession-timeInSession;var thisObj=this;setTimeout(function(){validateGap(time,formData,false);},diff+randomTime);}}
function isDeclined(data){data=data||{};if(data.declined!==null&&data.declined!==undefined){var isStillDeclined=isDataValid(data.declined.days,'DECLINED_DATE');return isStillDeclined;}
return false;}
function isSubmitted(data){if(KAMPYLE_UTILS.getNestedPropertyValue(data,'submitted')){var isStillSubmitted=isDataValid(data.submitted.days,'SUBMITTED_DATE');return isStillSubmitted;}
return false;}
function checkAbandon(formData){KAMPYLE_DATA.setMemoryData('targetingState.abandon',true);KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_targetingRuleEvaluated',{formId:formData.formId,targetingRule:'UserAbandonment',formTriggerType:KAMPYLE_DATA.getFormTriggerType(formData.formId),isPassed:true,targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.BEHAVIORAL_TARGETING,expected:"Mouse over user abandonment",actual:"Mouse was over user abandonment",});if(isShowInvite()===false){KAMPYLE_DATA.setMemoryData('targetingState.abandon',false);}}
function abandon(abandonObj,formData){var zIndexDef="0",heightDef="5";if(!abandonObj){abandonObj={height:heightDef,zIndex:zIndexDef};}
var zIndex=(!!abandonObj.zIndex)?abandonObj.zIndex:zIndexDef;var height=(!!abandonObj.height&&abandonObj.height!=="0")?abandonObj.height+'px':heightDef+'px';var abandon=document.getElementById('kampyle_abandon_zone');if(abandon===null){var abandon=document.createElement('div');abandon.id='kampyle_abandon_zone';abandon.style.width='100%';abandon.style.height=height;abandon.style.zIndex=zIndex;abandon.style.position='fixed';abandon.style.top='0px';abandon.onmouseover=function(){checkAbandon(formData);};document.body.appendChild(abandon);}
else{abandon.style.height=height;abandon.style.zIndex=zIndex;}}
function getEventQuery(eventObj){if(!eventObj||!eventObj.selectorValue||!eventObj.selectorType){return null;}
var query='{{selector}}{{value}}';switch(eventObj.selectorType){case'className':query=query.replace('{{selector}}','.');break;case'objectId':query=query.replace('{{selector}}','#');break;default:KAMPYLE_UTILS.showWarning('Invalid selector type:'+eventObj.selectorType);return null;}
query=query.replace('{{value}}',eventObj.selectorValue);return query;}
function handleTriggerByEvents(eventsObj,formData){var queryString=getEventQuery(eventsObj);if(!queryString){return null;}
var delay=Number(eventsObj.time)||0;var selectedElements=document.querySelectorAll(queryString)||[];for(var i=0;i=timeSpan*1000){KAMPYLE_DATA.setMemoryData('targetingState.kampyleIdleTime',true);isShowInvite();removeListeners();clearInterval(interval);}},1000);addListeners();}
function getUserPercentile(formId){var percentile=KAMPYLE_DATA.getData('kampyleUserPercentile');if(!percentile&&percentile!=='0')
{percentile=Math.random()*100;KAMPYLE_DATA.setData('kampyleUserPercentile',percentile);}
if(Number(percentile)&&Number(percentile).toFixed){return Number(percentile).toFixed(1);}
else{return Number(percentile);}}
function checkPercentageUsers(precUsersObj){var userPercentile=getUserPercentile();if(!!precUsersObj&&!!userPercentile){var prec=Number(precUsersObj.prec);if(userPercentile>prec){return false;}}
return true;}
function initDynamicTargeting(formData){KAMPYLE_DATA.setMemoryData('isInviteActivated',true);var targetingState=KAMPYLE_DATA.getMemoryData('targetingState');if(formData.onSiteData.kampyleTimeInSession!==undefined){timeInSession(formData.onSiteData.kampyleTimeInSession.time,formData);}
else{targetingState.kampyleTimeInSession=true;}
if(!!formData.onSiteData.abandon){if(KAMPYLE_DATA.getMemoryData('kampyleDevice')==='desktop'){abandon(formData.onSiteData.abandon,formData);}}
else{targetingState.abandon=true;}
var eventsContract=KAMPYLE_DATA.getTargetingData(formData.formId,'pageEvents');if(eventsContract){handleTriggerByEvents(eventsContract,formData);}
else{targetingState.kampylePageElementEvent=true;}
if(formData.onSiteData.kampyleTimeOnPage!==undefined){timeOnPage(formData.onSiteData.kampyleTimeOnPage.time,formData);}
else{targetingState.kampyleTimeOnPage=true;}
if(KAMPYLE_FUNC.checkProvision('targetingRuleIdleTime')&&formData.onSiteData.kampyleIdleTime!==undefined){idleTime(formData.onSiteData.kampyleIdleTime.timeSpan);}
else{targetingState.kampyleIdleTime=true;}
KAMPYLE_DATA.setMemoryData('targetingState',targetingState);for(var key in targetingState){if(targetingState.hasOwnProperty(key)&&!targetingState[key]){return false;}}
isShowInvite(formData);}
function initTargeting(eventName,data){if(!KAMPYLE_TARGETING.isEmbbeddedTargetingEnabled()){KAMPYLE_TARGETING.initEmbeddedTargeting();}
initTargetingMemoryData();initTargetingObject();handleFormsTargeting(eventName,data);}
function initTargetingMemoryData(){KAMPYLE_DATA.setMemoryData('invitationTimeStamp',null);KAMPYLE_DATA.setMemoryData('buttonFormId',null);KAMPYLE_DATA.setMemoryData('formIsShown',false);KAMPYLE_DATA.setMemoryData('isButtonShown',false);KAMPYLE_DATA.setMemoryData('isInviteActivated',false);KAMPYLE_DATA.setMemoryData('targetingState',{});}
function isEmbbeddedTargetingEnabled(){return KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.EMBEDDED_TARGETING);}
function initEmbeddedTargeting(){var allForms=KAMPYLE_DATA.getAllForms();if(!allForms||!allForms.length){return;}
var canShow;for(var i=allForms.length-1;i>=0;i--){if(allForms[i].formType===KAMPYLE_CONSTANT.FORM_TYPES.EMBEDDED){canShow=KAMPYLE_TARGETING.validateCommonTargetingOnForm(allForms[i]);if(canShow&&KAMPYLE_TARGETING.isEmbbeddedTargetingEnabled()){var quarantineTargetingPassed=!KAMPYLE_TARGETING.checkQuarantine(allForms[i]);var sessionTargetingPassed=KAMPYLE_TARGETING.validateCommonSessionTargeting(allForms[i].formId);canShow=!isUbtFailed(allForms[i])&&quarantineTargetingPassed&&sessionTargetingPassed;}
if(canShow){KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.NEB_LOAD_FORM,{formId:allForms[i].formId});}}}}
function initUserIdentifier(){var userIdentifierVal=null;if(!!KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.SERVER_BASED_TARGETING)){userIdentifierVal=KAMPYLE_FUNC.getUserIdentifierVal();var hasIdentifierValue=userIdentifierVal!==null;KAMPYLE_DATA.setMemoryData('isGuest',!hasIdentifierValue);KAMPYLE_EVENT_DISPATCHER.trigger('neb_initUserIdentifier',{hasIdentifierValue:hasIdentifierValue});}
return userIdentifierVal;}
function handleFormsTargeting(eventName,data){var userIdentifierVal=initUserIdentifier();if(KAMPYLE_FUNC.shouldSyncIdentifier(userIdentifierVal)){KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_settingIdentifierValueOnMemory',{hasIdentifierValue:userIdentifierVal!==null});KAMPYLE_DATA.setMemoryData('identifierValue',userIdentifierVal);KAMPYLE_FUNC.syncIdentifierData(encodeURIComponent(userIdentifierVal),initFormsTargeting.bind(this,arguments[0],arguments[1]));}else{KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_shouldNotSyncIdentifier');initFormsTargeting(eventName,data);}}
function initFormsTargeting(eventName,data){data=data||{};var allForms=KAMPYLE_DATA.getAllForms();if(!allForms||!allForms.length){return;}
if(KAMPYLE_TARGETING.isEmbbeddedTargetingEnabled()){KAMPYLE_TARGETING.initEmbeddedTargeting();}
var canShow;for(var i=allForms.length-1;i>=0;i--){if(allForms[i].formType===KAMPYLE_CONSTANT.FORM_TYPES.BUTTON&&!data.skipButtonTargeting&&KAMPYLE_DATA.getMemoryData('isButtonShown')===false){canShow=KAMPYLE_TARGETING.validateCommonTargetingOnForm(allForms[i]);if(canShow===true){KAMPYLE_EVENT_DISPATCHER.trigger('neb_initButton',{formId:allForms[i].formId});}}
else if(KAMPYLE_TARGETING.shouldCheckInvite(allForms[i],data)){canShow=KAMPYLE_TARGETING.validateCommonTargetingOnForm(allForms[i])&&KAMPYLE_TARGETING.validateCommonSessionTargeting(allForms[i].formId);if(canShow===true){KAMPYLE_TARGETING.initDynamicTargeting(allForms[i]);}}
if(KAMPYLE_DATA.getMemoryData('isInviteActivated')===true&&KAMPYLE_DATA.getMemoryData('isButtonShown')===true){break;}}
KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.MDIGITAL_PAGE_TARGETING_PHASE_ENDED);}
function shouldCheckInvite(form,targetingSettings){return(form.formType===KAMPYLE_CONSTANT.FORM_TYPES.INVITATION&&KAMPYLE_UTILS.kampyleIsCookieEnabled()&&!targetingSettings.skipInviteTargeting&&KAMPYLE_DATA.getMemoryData('isInviteActivated')===false&&!KAMPYLE_TARGETING.isUbtFailed(form))}
function validateCommonSessionTargeting(formId){formId=formId||'';var data=KAMPYLE_DATA.getFormData(formId)||{};var isInvite=data.formType===KAMPYLE_CONSTANT.FORM_TYPES.INVITATION;if(isInvite){KAMPYLE_DATA.setMemoryData('currentInviteFormId',formId);}
if(KAMPYLE_TARGETING.isNumSessions(data)===false){return false;}
if(KAMPYLE_UTILS.getNestedPropertyValue(data,'onSiteData.kampyleInvitePercentageUsers.prec')){var formPercentageUsersResult=checkPercentageUsers(data.onSiteData.kampyleInvitePercentageUsers);KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_targetingRuleEvaluated',{formId:data.formId,targetingRule:'UsersPercentage',formTriggerType:KAMPYLE_DATA.getFormTriggerType(data.formId),targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.PAGE_TARGETING,isPassed:formPercentageUsersResult,expected:KAMPYLE_UTILS.getNestedPropertyValue(data,'onSiteData.kampyleInvitePercentageUsers.prec'),actual:getUserPercentile(),});if(formPercentageUsersResult===false){return false;}}
var numberOfPagesResult=!!data.onSiteData.numberOfPagesViewed&&checkPagesInSession(data.onSiteData.numberOfPagesViewed)===false;(KAMPYLE_UTILS.getNestedPropertyValue(data,'onSiteData.numberOfPagesViewed.numberOfRepeats')&&KAMPYLE_EVENT_DISPATCHER.trigger('MDigital_targetingRuleEvaluated',{formId:data.formId,targetingRule:'NumberOfPagesViewed',targetingPhase:KAMPYLE_CONSTANT.TARGETING_PHASES.PAGE_TARGETING,isPassed:!numberOfPagesResult,expected:KAMPYLE_UTILS.getNestedPropertyValue(data,'onSiteData.numberOfPagesViewed.numberOfRepeats'),actual:KAMPYLE_DATA.getData('kampyleSessionPageCounter'),}));if(numberOfPagesResult){return false;}
if(isInvite){if(KAMPYLE_UTILS.isTrue(data.inviteData.skipInvitation)){if(KAMPYLE_FUNC.isPreloadConfigured()){KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.NEB_LOAD_FORM,{formId:formId});}}
else{KAMPYLE_EVENT_DISPATCHER.trigger('neb_loadInvitation',{formId:formId});}}
return true;}
function setTargetingState(targetingName,isPassed){KAMPYLE_DATA.setMemoryData('targetingState.'+targetingName,isPassed);}
function generateShouldShowInviteParamName(formId){if(!formId){return null;}
return'shouldShowInvite'+'_'+formId;}
function checkQuarantine(formData){var isDeclined=KAMPYLE_TARGETING.isAlreadyDeclined(formData);var isSubmitted=KAMPYLE_TARGETING.isAlreadySubmitted(formData);return isDeclined||isSubmitted;}
return{init:init,initTargeting:initTargeting,initFormsTargeting:initFormsTargeting,validateCommonTargetingOnForm:validateCommonTargetingOnForm,isShowInvite:isShowInvite,handleButton:handleButton,isDataValid:isDataValid,generateShouldShowInviteParamName:generateShouldShowInviteParamName,handleNotSkippedInvitaion:handleNotSkippedInvitaion,initDynamicTargeting:initDynamicTargeting,validateCommonSessionTargeting:validateCommonSessionTargeting,isUbtFailed:isUbtFailed,evaluateRule:evaluateRule,shouldDisableIntercept:shouldDisableIntercept,checkPagesInSession:checkPagesInSession,isNumSessions:isNumSessions,targetingDevice:targetingDevice,getUserPercentile:getUserPercentile,checkPercentageUsers:checkPercentageUsers,validateGap:validateGap,getEventQuery:getEventQuery,handleTriggerByEvents:handleTriggerByEvents,isUrlMatch:isUrlMatch,setTargetingState:setTargetingState,getTextByQuarentine:getTextByQuarentine,shouldCheckInvite:shouldCheckInvite,isQuarantinePhasePassed:isQuarantinePhasePassed,isGenericRuleValid:isGenericRuleValid,checkQuarantine:checkQuarantine,initEmbeddedTargeting:initEmbeddedTargeting,isEmbbeddedTargetingEnabled:isEmbbeddedTargetingEnabled,isAlreadyDeclined:isAlreadyDeclined,isAlreadySubmitted:isAlreadySubmitted};})(window,document);window.KAMPYLE_ANIMATION=(function(){var DEFAULTS={ANIMATION_DIRECTION:'centerRight',};function init(){var eventMapping={neb_buttonClicked:[animateWithInit],neb_sdkShowForm:[animateWithInit],neb_loadForm:[handleAnimationIframe,initAnimationPosition],neb_inviteAccepted:[animateWithInit],neb_skipInvitation:[animateWithInit],neb_formClosed:[animateOut,refreshFormIframe],neb_popupBlocked:[animateOut,refreshFormIframe],neb_captureInit:[animateOut],neb_captureImageClicked:[animateIn],MDigital_Capture_Cancelled:[animateIn],neb_formHide:[animateOut],neb_formLoadingHasFailed:[hideAnimationContainer],neb_skipShowingForm:[hideFormAnimationContainer]};KAMPYLE_EVENT_DISPATCHER.subscribeMany(eventMapping);KAMPYLE_ANIMATION.getOrCreateAnimationContainer();hideAnimationContainer();}
function animateWithInit(eventName,data){initAnimationPosition(eventName,data);setTimeout(function(){animateIn(eventName,data);},10);}
function shouldIgnoreRenderAnimationForm(formData,animationContainer,formId){return!formData||!animationContainer||!isAnimationForm(formData)||KAMPYLE_FUNC.hasApplicationLoadingFailed(formId,false)}
function animateIn(eventName,data){data=data||{};var formData=KAMPYLE_DATA.getFormData(data.formId);var animationContainer=document.getElementById(KAMPYLE_CONSTANT.IFRAME_SETTINGS.ANIMATION.CONTAINER_ID);if(shouldIgnoreRenderAnimationForm(formData,animationContainer,data.formId)){return false;}
KAMPYLE_DATA.setMemoryData('isInvitationShouldBeIgnored',true);var formIframe=document.getElementById(KAMPYLE_CONSTANT.IFRAME_SETTINGS.ANIMATION.IFRAME_ID+data.formId);if(formIframe){formIframe.style.display='block';}
var displayDirection=getDisplayDirection(formData);switch(displayDirection){case'centerRight':KAMPYLE_UTILS.setElementStyle(animationContainer,{right:0,});break;case'centerLeft':KAMPYLE_UTILS.setElementStyle(animationContainer,{left:0,});break;case'bottomRight':case'bottomLeft':KAMPYLE_UTILS.setElementStyle(animationContainer,{bottom:0,});break;case'topRight':case'topLeft':KAMPYLE_UTILS.setElementStyle(animationContainer,{top:0,});break;default:KAMPYLE_UTILS.showWarning('Invalid animation type - '+displayDirection);return false;}}
function hideAnimationContainer(){var animationContainer=document.getElementById(KAMPYLE_CONSTANT.IFRAME_SETTINGS.ANIMATION.CONTAINER_ID);if(animationContainer){KAMPYLE_UTILS.setElementStyle(animationContainer,{width:0,height:0,});}}
function refreshFormIframe(eventName,data){setTimeout(function(){var formData=KAMPYLE_DATA.getFormData(data.formId);var currIframe=document.getElementById(KAMPYLE_CONSTANT.IFRAME_SETTINGS.ANIMATION.IFRAME_ID+data.formId);if(!!currIframe){if(KAMPYLE_FUNC.checkProvision("disableFormReloadOnClose")){currIframe.remove();KAMPYLE_DATA.initOnsiteDefaultState();}else{currIframe.src=currIframe.src;currIframe.style.display='none';if(currIframe.removeAttribute){currIframe.removeAttribute('origin');}}}
hideAnimationContainer();},1000);}
function animateOut(eventName,data){var formData=KAMPYLE_DATA.getFormData(data.formId);if(KAMPYLE_DATA.getDisplayType(formData)!=='animation'){return false;}
data=data||{};var animationContainer=document.getElementById(KAMPYLE_CONSTANT.IFRAME_SETTINGS.ANIMATION.CONTAINER_ID);if(!formData||!animationContainer||!isAnimationForm(formData)){return false;}
setAnimationContainerInitialPosition(formData,animationContainer);}
function getMiddleHeight(formHeight){return String((window.innerHeight-parseInt(formHeight,10))/2)+'px';}
function getDisplayDirection(formData){formData=formData||{};return KAMPYLE_UTILS.getNestedPropertyValue(formData,'formDisplay.displayDirection')||DEFAULTS.ANIMATION_DIRECTION;}
function setAnimationContainerInitialPosition(formData,animationContainer){var cornerMargin;switch(getDisplayDirection(formData)){case'centerRight':KAMPYLE_UTILS.setElementStyle(animationContainer,{top:getMiddleHeight(animationContainer.style.height),right:'-'+formData.formWidth+'px',bottom:null,left:null,transition:'right 1s ease-in-out',});break;case'centerLeft':KAMPYLE_UTILS.setElementStyle(animationContainer,{top:getMiddleHeight(animationContainer.style.height),right:null,bottom:null,left:'-'+formData.formWidth+'px',transition:'left 1s ease-in-out',});break;case'bottomRight':cornerMargin=KAMPYLE_VIEW.getCornerMargin(formData)+'px';KAMPYLE_UTILS.setElementStyle(animationContainer,{top:null,right:cornerMargin,bottom:'-'+formData.formHeight+'px',left:null,transition:'bottom 1s ease-in-out',});break;case'bottomLeft':cornerMargin=KAMPYLE_VIEW.getCornerMargin(formData)+'px';KAMPYLE_UTILS.setElementStyle(animationContainer,{top:null,right:null,bottom:'-'+formData.formHeight+'px',left:cornerMargin,transition:'bottom 1s ease-in-out',});break;case'topLeft':cornerMargin=KAMPYLE_VIEW.getCornerMargin(formData)+'px';KAMPYLE_UTILS.setElementStyle(animationContainer,{top:'-'+formData.formHeight+'px',right:null,bottom:null,left:cornerMargin,transition:'top 1s ease-in-out',});break;case'topRight':cornerMargin=KAMPYLE_VIEW.getCornerMargin(formData)+'px';KAMPYLE_UTILS.setElementStyle(animationContainer,{top:'-'+formData.formHeight+'px',right:cornerMargin,bottom:null,left:null,transition:'top 1s ease-in-out',});break;default:KAMPYLE_UTILS.showWarning('Invalid animation type - '+formData.formDisplayDirection);return false;}}
function isAnimationForm(formData){return KAMPYLE_DATA.getDisplayType(formData)==='animation';}
function hideFormAnimationContainer(eventName,data){var formData=KAMPYLE_DATA.getFormData(data.formId);if(isAnimationForm(formData)){var formIframe=document.getElementById(KAMPYLE_CONSTANT.IFRAME_SETTINGS.ANIMATION.IFRAME_ID+data.formId);if(formIframe){KAMPYLE_UTILS.setElementStyle(formIframe,{display:'none',});}}}
function getOrCreateAnimationContainer(){var container=document.getElementById(KAMPYLE_CONSTANT.IFRAME_SETTINGS.ANIMATION.CONTAINER_ID);if(!container){var formSpanPlacer=document.createElement('span');container=document.createElement('div');KAMPYLE_UTILS.addAttributesOnElement(container,{id:KAMPYLE_CONSTANT.IFRAME_SETTINGS.ANIMATION.CONTAINER_ID});container.style.zIndex='2147483000';formSpanPlacer.appendChild(container);document.body.appendChild(formSpanPlacer);KAMPYLE_UTILS.setElementStyle(container,{border:0,position:'fixed',display:'block',zIndex:'2147483000',});}
return container;}
function handleAnimationIframe(eventName,data){data=data||{};var formData=KAMPYLE_DATA.getFormData(data.formId);var animationContainer=KAMPYLE_ANIMATION.getOrCreateAnimationContainer();if(!animationContainer||!formData||!KAMPYLE_ANIMATION.isAnimationForm(formData)){return false;}
var formIframe=document.getElementById(KAMPYLE_CONSTANT.IFRAME_SETTINGS.ANIMATION.IFRAME_ID+data.formId);if(!formIframe){var animationIframeStyle={border:0,height:formData.formHeight+'px',width:formData.formWidth+'px',display:'none',}
var isStyleImportant=false;KAMPYLE_VIEW.createFormIframe(data.formId,KAMPYLE_CONSTANT.IFRAME_SETTINGS.ANIMATION.IFRAME_ID,animationContainer,animationIframeStyle,isStyleImportant);}}
function initAnimationPosition(eventName,data){data=data||{};var formData=KAMPYLE_DATA.getFormData(data.formId);var isSkipInvitation=KAMPYLE_DATA.isSkipInvitation(data.formId);var animationContainer=document.getElementById(KAMPYLE_CONSTANT.IFRAME_SETTINGS.ANIMATION.CONTAINER_ID);if(!animationContainer||!formData||!isAnimationForm(formData)||(isSkipInvitation&&KAMPYLE_FUNC.isAnyOtherFormAlreadyShown(data.formId))){return false;}
if(!document.getElementById(KAMPYLE_CONSTANT.IFRAME_SETTINGS.ANIMATION.IFRAME_ID+data.formId)){handleAnimationIframe(eventName,data);}
KAMPYLE_UTILS.setElementStyle(animationContainer,{height:formData.formHeight+'px',width:formData.formWidth+'px',});setAnimationContainerInitialPosition(formData,animationContainer);}
return{initAnimationPosition:initAnimationPosition,getDisplayDirection:getDisplayDirection,getOrCreateAnimationContainer:getOrCreateAnimationContainer,init:init,hideAnimationContainer:hideAnimationContainer,hideFormAnimationContainer:hideFormAnimationContainer,handleAnimationIframe:handleAnimationIframe,isAnimationForm:isAnimationForm,};})();window.KAMPYLE_VIEW=(function(window,document){var DEFAULTS={CORNER_MARGIN:0,TRIANGULAR_MARGIN:0,VERTICAL_MARGIN:30,};var BUTTON_FUNCTION_ENUM={vertical:'getVerticalButton',triangular:'getTriangularButton',custom:'getCustomButton',}
function handleInviteReady(eventName,data){data=data||{};if(KAMPYLE_FUNC.hasApplicationLoadingFailed(data.formId,true)){return;}
var inviteContainer=document.getElementById('kampyleInviteContainer');if(newMobileInvite()){restoreHostingDOM();if(inviteContainer){KAMPYLE_UTILS.setElementStyle(inviteContainer,{top:'',bottom:'',left:'',right:'',background:'none',visibility:'',display:'none',},true);}}
else{KAMPYLE_UTILS.setElementStyle(inviteContainer,{visibility:'visible',},true);var iframe=document.getElementById('kampyleInvite');if(iframe){KAMPYLE_UTILS.setElementStyle(iframe,{visibility:'visible',},true);}}}
function onKeyboardClose(e){KAMPYLE_UTILS.showInvite();KAMPYLE_UTILS.removeEventHandler(e.srcElement,'blur',onKeyboardClose);}
function onKeyboardOpen(e){KAMPYLE_UTILS.hideInvite();KAMPYLE_UTILS.setEventHandler(e.srcElement,'blur',onKeyboardClose);}
function getAllFocusableElements(){var inputs=document.querySelectorAll('input');var textarea=document.querySelectorAll('textarea');var allFocusableElements=[];var i;for(i=0;i]+>/g,'').trim();var iframe=document.getElementById('kampyleInvite');iframe.title=titleText;}}
function handleInvitationSkippedForms(eventName,data){if(KAMPYLE_DATA.getData('isSkipInvitationOptimized')!=='true'){return;}
KAMPYLE_UTILS.setElementStyle(document.getElementById('kampyleFormContainer'),{visibility:'visible',},true);KAMPYLE_VIEW.prepareHostingDOM();KAMPYLE_DATA.setData('isSkipInvitationOptimized',false);}
function init(){var eventMapping={neb_targetingInit:[removeAllShownElements],neb_loadInvitation:[createInviteIframe],neb_loadForm:[handleLightBoxIframe,showSpinner,applyMobileDynamicStyles],neb_formReady:[hideButton],neb_formLoaded:[setIframeOrigin,hideSpinner,showInviteIfNeeded],neb_formShown:[handleInvitationSkippedForms],neb_inviteHeightChanged:[changeInviteHeight],neb_iFrameHeightChanged:[reactToIframeHeightChange],neb_scrollToTop:[scrollToTop],neb_scrollFromTop:[scrollFromTop],neb_inviteReady:[handleInviteReady,setupListenersForHideInviteWhenVirtualKeyboardIsOpen],neb_scrollToForm:[scrollToForm],neb_showButton:[showButton,alignButtonWithForm,setVerticalOffset],neb_buttonClicked:[handleButtonClicked],neb_sdkShowForm:[hideButton],neb_captureInit:[hideVisibility,hideButton],neb_inviteAccepted:[hideInvite,hideButton,removeListenersForHideInviteWhenVirtualKeyboardIsOpen],neb_showForm:[showForm],neb_sdkPageView:[hideInvite,removeListenersForHideInviteWhenVirtualKeyboardIsOpen],neb_inviteDeclined:[hideInvite,removeListenersForHideInviteWhenVirtualKeyboardIsOpen],neb_formClosed:[hideForm],neb_popupBlocked:[hideForm],neb_formHide:[hideVisibility],neb_captureImageClicked:[showVisibility],MDigital_Capture_Cancelled:[showVisibility],neb_formLoadingHasFailed:[showFormCouldNotFechtedErrorMsg],neb_inviteLoaded:[updateInviteIframeTitle],};if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.ADDITIONAL_BUTTON_STYLES)){eventMapping.neb_showButton.push(setZIndex);}
KAMPYLE_EVENT_DISPATCHER.subscribeMany(eventMapping);if(!KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.CSP_RULES)){KAMPYLE_UTILS.addStyle('.noOutline{outline: none !important;}');KAMPYLE_UTILS.addStyle('.wcagOutline:focus{outline: 1px dashed #595959 !important;outline-offset: 2px !important;transition: none !important;}');}
KAMPYLE_UTILS.setEventHandler(window,'resize',function(e){updateIframeStyle();});}
function toggleSpinner(isShow){var display=isShow?'block':'none';var spinners=document.getElementsByClassName('neb-loading-spinner');if(spinners&&spinners.length){for(var i=spinners.length-1;i>=0;i--){KAMPYLE_UTILS.setElementStyle(spinners[i],{display:display});}}}
function hideSpinner(eventName,data){toggleSpinner(false);}
function showSpinner(eventName,data){toggleSpinner(true);}
function scrollToForm(eventName,data){document.getElementById('kampyleFormContainer').scrollIntoView();}
function getCornerMargin(formData){formData=formData||{};var isInvite=KAMPYLE_UTILS.getNestedPropertyValue(formData,'formType')==='invitation';var margin;if(!isInvite){var buttonType=KAMPYLE_UTILS.getNestedPropertyValue(formData,'buttonData.type');switch(buttonType){case'vertical':case'triangular':margin=DEFAULTS.TRIANGULAR_MARGIN;break;case'custom':margin=KAMPYLE_UTILS.getNestedPropertyValue(formData,'buttonData.cornerMargin')||DEFAULTS.CORNER_MARGIN;break;default:margin=DEFAULTS.CORNER_MARGIN;break;}}
else{margin=DEFAULTS.CORNER_MARGIN;}
return parseInt(margin,10);}
function getButtonDirection(formData){formData=formData||{};return KAMPYLE_UTILS.getNestedPropertyValue(formData,'buttonData.position')||'right';}
function alignButtonWithForm(eventName,data){data=data||{};var formData=KAMPYLE_DATA.getFormData(data.formId);var buttonContainer=document.getElementById('nebula_div_btn');if(!buttonContainer||!formData){return false;}
var cornerMargin=getCornerMargin(formData)+'px';switch(getButtonDirection(formData)){case'bottomRight':buttonContainer.style.right=cornerMargin;break;case'bottomLeft':buttonContainer.style.left=cornerMargin;break;default:break;}}
function setVerticalOffset(eventName,data){var formData=KAMPYLE_DATA.getFormData(data.formId);var buttonData=KAMPYLE_UTILS.getNestedPropertyValue(formData,'buttonData');var offset=KAMPYLE_UTILS.getNestedPropertyValue(buttonData,'verticalOffset')||0;if(!isNaN(offset)){var nebButton=document.getElementById('nebula_div_btn');if(nebButton&&nebButton.style){if(buttonData.position.indexOf('bottom')>-1){nebButton.style.marginBottom=offset+'px';}else{offset=Number(offset)*-1;nebButton.style.marginTop=offset+'px';}}}}
function setZIndex(eventName,data){var formData=KAMPYLE_DATA.getFormData(data.formId);var zIndex=KAMPYLE_UTILS.getNestedPropertyValue(formData,'buttonData.zIndex');if(KAMPYLE_UTILS.isValueNumericAndDefined(zIndex)){var nebButton=document.getElementById('nebula_div_btn');nebButton.style.zIndex=zIndex;}}
function showVisibility(eventName,data){var currentFormId=KAMPYLE_DATA.getMemoryData('currentFormId');var formData=KAMPYLE_DATA.getFormData(currentFormId);if(KAMPYLE_DATA.getDisplayType(formData)==='animation'){return false;}
var formContainer=document.getElementById('kampyleFormContainer');var formIframe=document.getElementById('kampyleForm'+currentFormId);if(!!formContainer&&!!formIframe)
{KAMPYLE_UTILS.setElementStyle(formContainer,{display:'block',visibility:'visible',},true);}}
function getWCAGClass(){return KAMPYLE_DATA.isFeatureEnabled(KAMPYLE_CONSTANT.FEATURE_FLAGS.WCAG)?' wcagOutline ':' noOutline ';}
function hideVisibility(){var currentFormId=KAMPYLE_DATA.getMemoryData('currentFormId');if(!currentFormId){return;}
var formContainer=document.getElementById('kampyleFormContainer');var formIframe=document.getElementById('kampyleForm'+currentFormId);var noDataContainer=document.getElementById("mdigital-no-json-modal_"+currentFormId);if(!!formContainer&&(!!formIframe||!!noDataContainer))
{KAMPYLE_UTILS.setElementStyle(formContainer,{display:'none',visibility:'hidden',},true);}}
function hideForm(eventName,data){data=data||{};var currentFormId=KAMPYLE_DATA.getMemoryData('currentFormId');setMetaViewport('remove');if(document.getElementById('kampyleFormContainer')!==null){var currIframe=document.getElementById('kampyleForm'+currentFormId);if(!!currIframe){if(!KAMPYLE_FUNC.checkProvision("disableFormReloadOnClose")){currIframe.src=currIframe.src;KAMPYLE_EVENT_DISPATCHER.trigger('neb_load_form_form_reload',{formId:data.formId});}else{KAMPYLE_DATA.initOnsiteDefaultState();var kampyleFormContainer=document.getElementById('kampyleFormContainer');if(kampyleFormContainer){kampyleFormContainer.remove();}}
KAMPYLE_UTILS.setElementStyle(currIframe,{display:'none',},true);if(currIframe.removeAttribute){currIframe.removeAttribute('origin');}}
hideVisibility();restoreHostingDOM();}
if(!KAMPYLE_FUNC.checkProvision("disableFormReloadOnClose")||KAMPYLE_DATA.isPopupDisplayType(currentFormId)){if(data.sourceWindow&&data.sourceWindow.close){data.sourceWindow.close();}}}
function formatTriangularStyle(formData){var buttonData=formData.buttonData||{};var triangularStyle=['button#nebula_div_btn { height: auto !important }','.kampyle_feedback-button{','background-color:transparent !important;font-family:"Open Sans",sans-serif;cursor:pointer;position:fixed;z-index:99999990','}','.kampyle_feedback-button .kampyle_triangle{position:absolute;width:0;height:0;z-index:-1}','.kampyle_feedback-button .kampyle_button-text{','height:81px;width:81px;text-align:center;z-index:1000;color:'+buttonData.textColor+';font-size:14px;font-weight:normal !important;','}','.kampyle_feedback-button .kampyle_bottom{','line-height:108px !important;','}','.kampyle_feedback-button .kampyle_top {','line-height:53px !important;','}','.kampyle_feedback-button.kampyle_top-right{','top:0;right:0;','}','.kampyle_feedback-button.kampyle_top-left .kampyle_triangle, .kampyle_feedback-button.kampyle_top-right .kampyle_triangle {','top:0;border-top:81px solid;','}','.kampyle_feedback-button.kampyle_bottom-left .kampyle_triangle, .kampyle_feedback-button.kampyle_bottom-right .kampyle_triangle {','bottom:0;border-bottom:81px solid;','}','.kampyle_feedback-button.kampyle_bottom-right .kampyle_triangle, .kampyle_feedback-button.kampyle_top-right .kampyle_triangle {','right:0;border-left:81px solid transparent;','}','.kampyle_feedback-button.kampyle_bottom-left .kampyle_triangle, .kampyle_feedback-button.kampyle_top-left .kampyle_triangle {','left:0;border-right:81px solid transparent;','}','#nebula_div_btn .kampyle_triangle {','border-bottom-color: '+buttonData.backgroundColor+';','border-top-color: '+buttonData.backgroundColor+';','}','.kampyle_feedback-button.kampyle_top-right .kampyle_button-text, .kampyle_feedback-button.kampyle_bottom-left .kampyle_button-text {','-ms-transform:rotate(45deg);-webkit-transform:rotate(45deg);transform:rotate(45deg);','}','.kampyle_feedback-button.kampyle_top-left .kampyle_button-text, .kampyle_feedback-button.kampyle_bottom-right .kampyle_button-text {','-ms-transform:rotate(-45deg);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);','}','.kampyle_feedback-button.kampyle_top-left {','top:0;left:0;','}','.kampyle_feedback-button.kampyle_bottom-right {','bottom:0;right:0;','}','.kampyle_feedback-button.kampyle_bottom-left {','bottom:0;left:0;','}','.kampyle_feedback-button.kampyle_bottom-left, .kampyle_feedback-button.kampyle_bottom-right, .kampyle_feedback-button.kampyle_top-left, .kampyle_feedback-button.kampyle_top-right {','padding: 0 !important;','}'].join(' ');return triangularStyle;}
function formatVerticalStyle(formData){var buttonData=formData.buttonData||{};var textScaling='';if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.RTL)&&MDIGITAL.LOCALIZATION.isFormLanguageRtl(formData)){textScaling='transform: scale(-1);-ms-transform: scale(-1);-webkit-transform: scale(-1)';}
var verticalStyle=['button#nebula_div_btn { height: auto !important }','.kampyle_vertical_button {','background-color:transparent !important;font-family:"Open Sans",sans-serif;cursor:pointer;position:fixed;top:45%;z-index:99999990;height:35px !important;min-height: 35px !important;max-height: 35px !important;width:125px !important;max-width: 125px !important;min-width: 125px !important;-ms-transform:rotate(90deg);-webkit-transform:rotate(90deg);transform:rotate(90deg)','}','.kampyle_vertical_button .kampyle_button {','height:35px;min-height: 35px !important;max-height: 35px !important;width:125px !important;min-width: 125px !important;max-width: 125px !important; background:{{BUTTON_BACKGROUND_COLOR}};color:{{BUTTON_TEXT_COLOR}};position:absolute;top:0;left:0;z-index:-1;','}','.kampyle_vertical_button .kampyle_button-text {','color:{{BUTTON_TEXT_COLOR}};font-size:14px;line-height:35px;text-align:center;font-weight:normal !important;'+textScaling,'}','.kampyle_vertical_button.kampyle_left .kampyle_button {','-webkit-border-radius:3px 3px 0 0;-moz-border-radius:3px 3px 0 0;-ms-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0;','}','.kampyle_vertical_button.kampyle_right {','right:-45px;','}','.kampyle_vertical_button.kampyle_left {','left:-45px','}','.kampyle_vertical_button.kampyle_right .kampyle_button {','-webkit-border-radius:0 0 3px 3px;-moz-border-radius:0 0 3px 3px;-ms-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px','}','.kampyle_vertical_button.kampyle_right, .kampyle_vertical_button.kampyle_left {','padding: 0 !important;','}',].join(' ');verticalStyle=verticalStyle.replace(/{{BUTTON_TEXT_COLOR}}/g,buttonData.textColor);verticalStyle=verticalStyle.replace(/{{BUTTON_BACKGROUND_COLOR}}/g,buttonData.backgroundColor);if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.ADDITIONAL_BUTTON_STYLES)){verticalStyle+=['.kampyle_vertical_button:hover .kampyle_button-text {','color:'+buttonData.textHoverColor+';','}','.kampyle_vertical_button:hover .kampyle_button {','background-color:'+buttonData.backgroundHoverColor+';','}',].join(' ');}
return verticalStyle;}
function getTriangleButtonStyle(formData){var buttonText=KAMPYLE_VIEW.getButtonText(formData);var classDirection=getClassDirectonByPosition(formData.buttonData.position);return'';}
function getVerticalButtonStyle(formData){var direction='kampyle_left';var buttonText=KAMPYLE_VIEW.getButtonText(formData);switch(formData.buttonData.position){case'left':direction='kampyle_left';break;case'right':direction='kampyle_right';break;}
return'';}
function displayGenericFormBtn(formData){var btnBuilders=({vertical:{html:getVerticalButtonStyle,style:formatVerticalStyle},triangular:{html:getTriangleButtonStyle,style:formatTriangularStyle}})[formData.buttonData.type];if(!btnBuilders){KAMPYLE_UTILS.showWarning('Invalid button type '+formData.buttonData.type);return'';}
KAMPYLE_UTILS.addStyle(btnBuilders.style(formData));return btnBuilders.html(formData);}
function displayImageFormBtn(formData){var divStyle='z-index: 99999990 !important;position: fixed !important;cursor: pointer !important;line-height:1px !important; padding:0;';var buttonText=KAMPYLE_VIEW.getButtonText(formData);var imageBtnStyles=['.nebula_image_button {','width: auto !important;','background: transparent !important;','}',].join(' ');KAMPYLE_UTILS.addStyle(imageBtnStyles);switch(formData.buttonData.position){case'bottomLeft':divStyle+='bottom:0;left:0;';break;case'bottomRight':divStyle+='bottom:0;right:0;';break;case'topLeft':divStyle+='top:0;left:0;';break;case'topRight':divStyle+='top:0;right:0;';break;case'left':divStyle+='left:0;top:50%;';break;case'right':divStyle+='right:0;top:50%;';break;default:break;}
return'';}
function showIframeContainers(formId){setMetaViewport('add');var kampyleFormContainer=document.getElementById('kampyleFormContainer');if(kampyleFormContainer){var currIframe=document.getElementById('kampyleForm'+formId);if(!!currIframe){KAMPYLE_UTILS.setElementStyle(currIframe,{display:'block',},true);}
KAMPYLE_UTILS.setElementStyle(kampyleFormContainer,{display:'block',visibility:'visible',},true);}}
function onErrModalClose(formId){var NO_JSON_MODAL_ID="mdigital-no-json-modal_"+formId;hideForm({formId:formId});document.getElementById(NO_JSON_MODAL_ID).style.display="none";KAMPYLE_DATA.setFormState(formId,{shown:false});showButton("",{formId:KAMPYLE_DATA.getMemoryData('buttonFormId')});KAMPYLE_UTILS.triggerCustomEvent(KAMPYLE_CONSTANT.EVENTS.MDIGITAL_NO_JSON_MODAL_CLOSED,{formId:formId});KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.MDIGITAL_NO_JSON_MODAL_CLOSED,{formId:formId});}
function getErrorFetchedModal(formId){var errorModalLang="en";var errorMessageTitle=KAMPYLE_CONSTANT.TEXTS.DEFAULT_JSON_ERROR_MESSAGES.title;var errorMessageBody=KAMPYLE_CONSTANT.TEXTS.DEFAULT_JSON_ERROR_MESSAGES.body;var errorMessageClose=KAMPYLE_CONSTANT.TEXTS.DEFAULT_JSON_ERROR_MESSAGES.close;var NO_JSON_MODAL_ID="mdigital-no-json-modal_"+formId;return MDIGITAL_ELEMENT_BUILDER.getErrorModal(NO_JSON_MODAL_ID,errorModalLang,errorMessageTitle,errorMessageBody,errorMessageClose);}
function handleButtonClicked(eventName,data){var formData=KAMPYLE_DATA.getFormData(data.formId);var displayType=KAMPYLE_DATA.getDisplayType(formData);displayType=displayType.toLowerCase();if(displayType==='lightbox'){var kampyleFormContainer=document.getElementById('kampyleFormContainer');if(!kampyleFormContainer||KAMPYLE_FUNC.hasApplicationLoadingFailed(data.formId,false)||KAMPYLE_FUNC.isAnyOtherFormAlreadyShown(data.formId,true)){return false;}
KAMPYLE_UTILS.setElementStyle(kampyleFormContainer,{display:'block',visibility:'visible',},true);}}
function getClassDirectonByPosition(position){var classDirection={topbottom:'kampyle_bottom',leftright:'kampyle_bottom-left'};switch(position){case'bottomLeft':classDirection.leftright='kampyle_bottom-left';classDirection.topbottom='kampyle_bottom';break;case'bottomRight':classDirection.leftright='kampyle_bottom-right';classDirection.topbottom='kampyle_bottom';break;case'topLeft':classDirection.leftright='kampyle_top-left';classDirection.topbottom='kampyle_top';break;case'topRight':classDirection.leftright='kampyle_top-right';classDirection.topbottom='kampyle_top';break;default:break;}
return classDirection;}
function shouldShowErrMsgOnForm(formId){var formTriggerType=KAMPYLE_DATA.getFormTriggerType(formId);return MDIGITAL.FORM_STATE.shouldFormBeShown(formId)&&(formTriggerType===KAMPYLE_CONSTANT.FORM_TYPES.BUTTON||formTriggerType===KAMPYLE_CONSTANT.FORM_TYPES.CODE);}
function handleCloseButtonInErroModalKeydown(e,formId){if(e.keyCode===KAMPYLE_CONSTANT.KEY_CODES.SPACE||e.keyCode===KAMPYLE_CONSTANT.KEY_CODES.ENTER){KAMPYLE_VIEW.onErrModalClose(formId);}
else if(e.keyCode===KAMPYLE_CONSTANT.KEY_CODES.TAB){e.preventDefault();e.stopPropagation();}}
function onErrorModalKeyPressed(e,formId){e.preventDefault();if(e.keyCode===KAMPYLE_CONSTANT.KEY_CODES.ESC){KAMPYLE_VIEW.onErrModalClose(formId);return;}
var closeButtonEl=document.querySelector("#mdigital-no-json-modal_"+formId+" #close-no-json-modal");if(!closeButtonEl)return;if(e.keyCode===KAMPYLE_CONSTANT.KEY_CODES.TAB&&!e.shiftKey){closeButtonEl.setAttribute('aria-hidden',false);if(KAMPYLE_UTILS.isIE()&&HTMLElement){HTMLElement.prototype.focus.apply(closeButtonEl);}else{closeButtonEl.focus();}}}
function showFormCouldNotFechtedErrorMsg(eventName,data){if(KAMPYLE_FUNC.isAnyOtherFormAlreadyShown(data.formId)||!KAMPYLE_VIEW.shouldShowErrMsgOnForm(data.formId)){return;}
var NO_JSON_MODAL_ID="mdigital-no-json-modal_"+data.formId;var kampyleFormModal=document.getElementById('kampyleFormModal');hideSpinner();showIframeContainers(data.formId);if(document.getElementById(NO_JSON_MODAL_ID)){document.getElementById(NO_JSON_MODAL_ID).style.display="block";}
else{var fetchedDataErrrModal=getErrorFetchedModal(data.formId);if(!kampyleFormModal){createFormContainer();kampyleFormModal=document.getElementById('kampyleFormModal');showIframeContainers(data.formId);}
kampyleFormModal.innerHTML="";kampyleFormModal.appendChild(fetchedDataErrrModal);var closeBtnElem=document.querySelector("#"+NO_JSON_MODAL_ID+" #close-no-json-modal");closeBtnElem.onclick=onErrModalClose.bind(null,data.formId);if(KAMPYLE_DATA.isFeatureEnabled(KAMPYLE_CONSTANT.FEATURE_FLAGS.WCAG)||KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.NEW_MODAL_DIALOGS)){fetchedDataErrrModal.addEventListener("keydown",function(e){onErrorModalKeyPressed(e,data.formId)});closeBtnElem.addEventListener("keydown",function(e){handleCloseButtonInErroModalKeydown(e,data.formId);});}}
KAMPYLE_DATA.setFormState(data.formId,{shown:true});hideButton("",{formId:KAMPYLE_DATA.getMemoryData('buttonFormId')});KAMPYLE_UTILS.triggerCustomEvent(KAMPYLE_CONSTANT.EVENTS.MDIGITAL_NO_JSON_MODAL_SHOWN,{formId:data.formId});var failureCause=KAMPYLE_COMMON.getFormFailureCause(data.formId);var payload={failureCause:failureCause};if(failureCause===KAMPYLE_CONSTANT.FORM_LOADING_FAILURE_CAUSE.JSON_FAILED){payload.jsonPath=KAMPYLE_DATA.getDataJsonUrl(data.formId,false);}
KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.MDIGITAL_NO_JSON_MODAL_SHOWN,{additionalInfo:payload,formId:data.formId});}
function showFeedbackButtonVisually(){var button=document.getElementById(KAMPYLE_CONSTANT.VIEW.FEEDBACK_BUTTON_ID);if(button==null)return;var positionStyles=KAMPYLE_DATA.getMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.FEEDBACK_BUTTON_POSITION_STYLE)||{};KAMPYLE_UTILS.setElementStyle(button,positionStyles,true);KAMPYLE_UTILS.removeAttribute(button,"tabindex")
KAMPYLE_UTILS.removeAttribute(button,"aria-hidden")}
function hideFeedbackButtonVisually(){var button=document.getElementById(KAMPYLE_CONSTANT.VIEW.FEEDBACK_BUTTON_ID);if(button==null)return;KAMPYLE_UTILS.setElementStyle(button,getVisualHidingStyleProperties(),true);KAMPYLE_UTILS.addAttributesOnElement(button,{tabindex:-1,'aria-hidden':true})}
function showButton(eventName,data){if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.NEW_MODAL_DIALOGS)&&document.getElementById(KAMPYLE_CONSTANT.VIEW.FEEDBACK_BUTTON_CONTAINER_ID)!=null&&document.getElementById(KAMPYLE_CONSTANT.VIEW.FEEDBACK_BUTTON_ID)!=null){KAMPYLE_VIEW.showFeedbackButtonVisually();triggerDisplayEvent(eventName,data);}
else{KAMPYLE_VIEW.createButton(eventName,data);}}
function triggerDisplayEvent(evetName,data){data=data||{};var formData=KAMPYLE_DATA.getFormData(data.formId)||{};KAMPYLE_EVENT_DISPATCHER.trigger('neb_button_displayed',{formId:data.formId,position:KAMPYLE_UTILS.getNestedPropertyValue(formData,'buttonData.position')||'',formClosed:KAMPYLE_UTILS.getNestedPropertyValue(data,'formClosed')||false});}
function getVisualHidingStyleProperties(){return{position:'absolute',top:'-9999px',right:'-9999px'}}
function pickElementStyleProperties(button,properties){var buttonStyle=button&&button.style;return(buttonStyle!=null&&properties!=null&&properties.length)?properties.reduce(function(acc,key){var value=buttonStyle[key];if(value!=null){acc[key]=value;}
return acc;},{}):{}}
function createButton(eventName,data){var btnHtml='';data=data||{};var formData=KAMPYLE_DATA.getFormData(data.formId)||{};var buttonType=KAMPYLE_UTILS.getNestedPropertyValue(formData,'buttonData.type')||'';if(!KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.CSP_RULES)){switch(buttonType.toLowerCase()){case'vertical':case'triangular':btnHtml=displayGenericFormBtn(formData);break;case'custom':btnHtml=displayImageFormBtn(formData);break;default:KAMPYLE_UTILS.showWarning('Invalid button type - '+buttonType);return false;}
var spanContainer=document.getElementById('kampyleButtonContainer');if(spanContainer===null){spanContainer=document.createElement('span');spanContainer.innerHTML=btnHtml;spanContainer.id='kampyleButtonContainer';document.body.appendChild(spanContainer);}
else{spanContainer.innerHTML=btnHtml;}}
if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.NEW_MODAL_DIALOGS)){var button=document.getElementById(KAMPYLE_CONSTANT.VIEW.FEEDBACK_BUTTON_ID);KAMPYLE_DATA.setMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.FEEDBACK_BUTTON_POSITION_STYLE,pickElementStyleProperties(button,['position','top','right']));}
KAMPYLE_EVENT_DISPATCHER.trigger('neb_button_displayed',{formId:data.formId,position:KAMPYLE_UTILS.getNestedPropertyValue(formData,'buttonData.position')||'',formClosed:KAMPYLE_UTILS.getNestedPropertyValue(data,'formClosed')||false});spanContainer.onclick=function(event){if(!KAMPYLE_FUNC.isAnyOtherFormAlreadyShown(data.formId,true)){KAMPYLE_EVENT_DISPATCHER.trigger('neb_buttonClicked',{formId:data.formId});event.preventDefault();event.stopPropagation();}};var isDesktop=KAMPYLE_DATA.getMemoryData('kampyleDevice')===KAMPYLE_CONSTANT.DEVICES.DESKTOP;if(isDesktop){this.boundHandleLoadFormEvent=handleLoadFormEvent.bind(this,data,spanContainer);KAMPYLE_UTILS.setEventHandler(spanContainer,'mouseover',this.boundHandleLoadFormEvent);var buttonProximityFunc=function(event){var formState=KAMPYLE_DATA.getFormState(data.formId);if(!formState||formState.loading||formState.loaded||KAMPYLE_DATA.getMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.IS_BUTTON_CONTAINER_CREATED)){return false;}
var isNear=KAMPYLE_UTILS.isNear('nebula_div_btn',100,event);if(isNear){KAMPYLE_EVENT_DISPATCHER.trigger('neb_load_form_preload_proximity',{formId:data.formId});KAMPYLE_EVENT_DISPATCHER.trigger('neb_loadForm',{formId:data.formId});KAMPYLE_DATA.setMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.IS_BUTTON_CONTAINER_CREATED,true);}};KAMPYLE_UTILS.setEventHandler(window,'mousemove',buttonProximityFunc);}
else{KAMPYLE_EVENT_DISPATCHER.trigger('neb_loadForm',{formId:data.formId});}
spanContainer.onkeyup=function(event){switch(event.keyCode){case KAMPYLE_CONSTANT.KEY_CODES.TAB:KAMPYLE_EVENT_DISPATCHER.trigger('neb_loadForm',{formId:data.formId});break;default:break;}};spanContainer.onkeypress=function(event){switch(event.keyCode){case KAMPYLE_CONSTANT.KEY_CODES.ENTER:if(!KAMPYLE_FUNC.isAnyOtherFormAlreadyShown(data.formId,true)){KAMPYLE_EVENT_DISPATCHER.trigger('neb_buttonClicked',{formId:data.formId});}
break;default:break;}};}
function handleLoadFormEvent(data,spanContainer){var formState=KAMPYLE_DATA.getFormState(data.formId);if(!(formState.loaded||KAMPYLE_DATA.getMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.IS_BUTTON_CONTAINER_CREATED))){KAMPYLE_EVENT_DISPATCHER.trigger('neb_loadForm',{formId:data.formId});KAMPYLE_DATA.setMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.IS_BUTTON_CONTAINER_CREATED,true);}
KAMPYLE_UTILS.removeEventHandler(spanContainer,'mouseover',this.boundHandleLoadFormEvent);}
function setIframeOrigin(eventName,data){if(data.origin!=undefined){var formIframe=document.getElementById('kampyleForm'+data.formId);if(formIframe&&formIframe.setAttribute){formIframe.setAttribute('origin',data.origin);}}}
function updateIframeStyle(formData){var currentFormId=KAMPYLE_DATA.getMemoryData('currentFormId')||KAMPYLE_DATA.getShownFormId();if(document.getElementById('kampyleFormContainer')===null||!currentFormId){return;}
formData=formData||KAMPYLE_DATA.getFormData(currentFormId)||{};if(KAMPYLE_DATA.isMobileDynamicSizing(formData.formId)){return updateDynamicIframeStyle(formData);}else{updateStaticIframeStyle(formData);}}
function updateStaticIframeStyle(formData){var currentFormId=(formData||{}).formId||KAMPYLE_DATA.getMemoryData('currentFormId')||KAMPYLE_DATA.getShownFormId();var formWidth;var formHeight;if(formData){formWidth=parseInt(formData.formWidth,10)||450;formHeight=parseInt(formData.formHeight,10)||450;}
var hostHeight=document.documentElement.clientHeight;var innerContainerStyle={overflowY:'auto',height:'100%',};KAMPYLE_UTILS.setElementStyle(document.getElementById('innerContainer'),innerContainerStyle);var iframeStyleObject={border:0,position:'relative',margin:'50px auto 50px',height:formHeight+'px',width:formWidth+'px',};var kampyleDevice=KAMPYLE_DATA.getMemoryData('kampyleDevice');if(kampyleDevice===KAMPYLE_CONSTANT.DEVICES.MOBILE||kampyleDevice===KAMPYLE_CONSTANT.DEVICES.TABLET){formHeight='100%';formWidth='100%';iframeStyleObject={position:'relative',margin:'0',height:formHeight,width:formWidth,};}
else if(KAMPYLE_DATA.isCustomHtmlAndFixedSizeForm(currentFormId)){iframeStyleObject={position:'absolute',top:'50%','margin-top':-formHeight/2+'px',left:'50%','margin-left':-formWidth/2+'px',height:formHeight+'px',width:formWidth+'px',};if(hostHeight=0;i--){if(hostedViewportContent[i].hasAttribute('content')){savedViewportContent.push(hostedViewportContent[i]);}}}
switch(optional.toLowerCase()){case'add':if(savedViewportContent&&savedViewportContent.length){for(var i=savedViewportContent.length-1;i>=0;i--){if(savedViewportContent[i].hasAttribute('id')&&savedViewportContent[i].id==='kampyleMetaViewport'){continue;}
else{if(savedViewportContent[i].remove){savedViewportContent[i].remove();}}}}
if(!kampyleMeta){var meta=document.createElement('meta');meta.content=isWCAGUserScalable;meta.name='viewport';meta.id='kampyleMetaViewport';document.getElementsByTagName('head')[0].appendChild(meta);}else{kampyleMeta.content=isWCAGUserScalable;kampyleMeta.name='viewport';}
break;case'remove':if(kampyleMeta){kampyleMeta.content='';kampyleMeta.name='';if(kampyleMeta.remove){kampyleMeta.remove();}}
if(savedViewportContent&&savedViewportContent.length){for(var i=savedViewportContent.length-1;i>=0;i--){if(savedViewportContent[i].hasAttribute('id')&&savedViewportContent[i].id==='kampyleMetaViewport'){continue;}
else{document.getElementsByTagName('head')[0].appendChild(savedViewportContent[i]);}}}
break;}
KAMPYLE_DATA.setMemoryData('hostedViewportContent',savedViewportContent);}
function newMobileInvite(){return(Number(KAMPYLE_DATA.getMemoryData('inviteVersion'))>0)&&KAMPYLE_DATA.isNewMobileInvitation();}
function getInvitePosition(formId){var formData=(KAMPYLE_DATA.getFormData(formId)||{});return(formData.inviteData||{}).invitationPosition||'top';}
function showInvite(eventName,data){setMetaViewport('add');var inviteTop='25%';var inviteData=KAMPYLE_DATA.getInviteData(data.formId);if(!inviteData||!MDIGITAL.FORM_STATE.isInviteLoaded(data.formId)||!KAMPYLE_FUNC.isJsonDataLoaded(data.formId,true)){return false;}
var kampyleDevice=KAMPYLE_DATA.getMemoryData('kampyleDevice');if(kampyleDevice===KAMPYLE_CONSTANT.DEVICES.MOBILE||kampyleDevice===KAMPYLE_CONSTANT.DEVICES.TABLET){inviteData.inviteHeight='100%';inviteData.inviteWidth='100%';inviteTop=0;}
var invitationTimeStamp=KAMPYLE_UTILS.getCurrentTimestamp();KAMPYLE_DATA.setMemoryData('invitationTimeStamp',invitationTimeStamp);KAMPYLE_DATA.setData('LAST_INVITATION_VIEW',invitationTimeStamp);var inviteContainer=document.getElementById('kampyleInviteContainer');if(inviteContainer&&KAMPYLE_DATA.getMemoryData('formIsShown')===false){KAMPYLE_UTILS.setElementStyle(inviteContainer,{display:'block',visibility:KAMPYLE_DATA.isNewMobileInvitation()?'hidden':'visible',},true);prepareHostingDOM();KAMPYLE_EVENT_DISPATCHER.trigger('neb_invitation_ready',{formId:data.formId});var inviteModal=document.getElementById('kampyleInviteModal');if(inviteModal){KAMPYLE_UTILS.setElementStyle(inviteModal,{top:inviteTop,width:inviteData.inviteWidth+'px','max-width':inviteData.inviteWidth+'px',height:inviteData.inviteHeight+'px','max-height':inviteData.inviteHeight+'px',display:'block',},true);}
var inviteIframe=document.getElementById('kampyleInvite');if(inviteIframe){KAMPYLE_UTILS.setElementStyle(inviteIframe,{width:inviteData.inviteWidth+'px','max-width':inviteData.inviteWidth+'px',height:inviteData.inviteHeight+'px','max-height':inviteData.inviteHeight+'px',display:'block',visibility:KAMPYLE_DATA.isNewMobileInvitation()?'hidden':'visible',},true);}}
return true;}
function prepareHostingDOM(){if(KAMPYLE_DATA.isMobileDynamicSizing()){KAMPYLE_VIEW.manipulateAriaHiddens();KAMPYLE_DATA.setMemoryData('hostedBodyOverflowXAttr',document.body.style.overflowX);document.body.style.overflowX='hidden';}else{KAMPYLE_DATA.setMemoryData('hostedBodyPositionAttr',document.body.style.position);if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.ENABLE_OVERFLOW)){return false;}else{KAMPYLE_DATA.setMemoryData('hostedBodyOverflowAttr',document.body.style.overflow);document.body.style.overflow='hidden';var kampyleDevice=KAMPYLE_DATA.getMemoryData('kampyleDevice');if(kampyleDevice===KAMPYLE_CONSTANT.DEVICES.MOBILE||kampyleDevice===KAMPYLE_CONSTANT.DEVICES.TABLET){document.body.style.position='fixed';}}}}
function restoreHostingDOM(){if(KAMPYLE_DATA.isMobileDynamicSizing()){var modal=document.getElementById('kampyleFormModal');KAMPYLE_UTILS.setElementStyle(modal,{height:'100%'},true);KAMPYLE_VIEW.restoreAriaHidden();document.body.style.overflowX=KAMPYLE_DATA.getMemoryData('hostedBodyOverflowXAttr')||'';}else{if(!KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.ENABLE_OVERFLOW)){document.body.style.overflow=KAMPYLE_DATA.getMemoryData('hostedBodyOverflowAttr')||'';}
document.body.style.position=KAMPYLE_DATA.getMemoryData('hostedBodyPositionAttr')||'';}}
function getLoaderGifUrl(){var kloaderBase=KAMPYLE_CONSTANT.PLACEHOLDERS.URL_PREFIX;return kloaderBase+'resources/onsite/images/kloader.gif'}
function createFormContainer(){var kloaderSrc=getLoaderGifUrl();if(!KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.CSP_RULES)){var formSpanPlacer=document.createElement('span');formSpanPlacer.id='formLightboxContainer';var html='';html+='';formSpanPlacer.innerHTML=html;document.body.appendChild(formSpanPlacer);}}
function handleLightBoxIframe(eventName,data){data=data||{};var formState=KAMPYLE_DATA.getFormState(data.formId);if(formState&&formState.loaded||KAMPYLE_FUNC.hasApplicationLoadingFailed(data.formId,false)){return;}
var formData=KAMPYLE_DATA.getFormData(data.formId);var displayType=KAMPYLE_DATA.getDisplayType(formData);if(!formData||!data.formId||displayType!=='lightbox'){return;}
var timeoutKey=KAMPYLE_CONSTANT.TIMEOUT_HANDLERS.FORM_APP_STATUS+"_"+
data.formId;var timeoutAlreadyCreated=!!KAMPYLE_DATA.getTimeoutHandler(timeoutKey);if(!timeoutAlreadyCreated){var appStatusCheck=window.setTimeout(function(){if(!KAMPYLE_FUNC.isFormLoaded(data.formId)){KAMPYLE_EVENT_DISPATCHER.trigger(KAMPYLE_CONSTANT.EVENTS.NEB_FORM_LOADING_HAS_FAILED,{formId:data.formId,failureCause:KAMPYLE_CONSTANT.FORM_LOADING_FAILURE_CAUSE.APPLICATION_FAILED,formState:KAMPYLE_DATA.getFormState(data.formId)});}},KAMPYLE_CONSTANT.NETWORK.TIME_FOR_FORM_TO_LOAD_MS);KAMPYLE_DATA.setTimeoutHandler(timeoutKey,appStatusCheck);}
if(!document.getElementById('kampyleFormContainer')){createFormContainer();}
var formIframe=document.getElementById('kampyleForm'+data.formId);if(!formIframe){var iframeStyleObject={border:0,height:'100%','max-height':'100%','min-height':'100%',width:'100%','max-width':'100%','min-width':'100%',display:'none',};if(!KAMPYLE_DATA.isCustomHtmlForm(data.formId)&&!KAMPYLE_DATA.isMobileDynamicSizing(formData.formId)){iframeStyleObject.position='fixed';}
var isStyleImportant=true;var lightboxContainer=document.getElementById(KAMPYLE_CONSTANT.IFRAME_SETTINGS.LIGHTBOX.CONTAINER_ID_PREFIX);KAMPYLE_VIEW.createFormIframe(data.formId,KAMPYLE_CONSTANT.IFRAME_SETTINGS.LIGHTBOX.IFRAME_ID_PREFIX,lightboxContainer,iframeStyleObject,isStyleImportant);}}
function createFormIframe(formId,formPrefixId,iframeContainer,iframeStyleObject,isStyleImportant){var formData=KAMPYLE_DATA.getFormData(formId);var formIframe=document.createElement('iframe');KAMPYLE_UTILS.setElementStyle(formIframe,iframeStyleObject,isStyleImportant);formIframe.id=formPrefixId+formId;var formHtml=formData.formHtmlUrl;formHtml=KAMPYLE_COMMON.createFormUrl(formHtml,formId);formIframe.src=formHtml;formIframe.tabIndex=-1;formIframe.setAttribute('title',KAMPYLE_CONSTANT.IFRAME_SETTINGS.IFRAME_TITLE);iframeContainer.appendChild(formIframe);return formIframe}
function applyMobileDynamicStyles(eventName,data){var formId=data.formId;var kFormContainer=document.getElementById('kampyleFormContainer');if(!(formId&&kFormContainer&&KAMPYLE_DATA.isMobileDynamicSizing(formId))){return false;}
KAMPYLE_UTILS.setElementStyle(kFormContainer,{height:KAMPYLE_UTILS.getDocumentSize().height+'px',position:'absolute',},true);}
function getDefaultIframeHeight(){return KAMPYLE_UTILS.isIos()?'30px':'100%';}
function iFrameHeightChangedHandler(eventData){if(KAMPYLE_DATA.isLightBoxDisplayType(eventData.formId)){var modal=document.getElementById('kampyleFormModal');var newHeight=Number((eventData||{}).newHeight);newHeight=isNaN(newHeight)?getDefaultIframeHeight():(newHeight)+'px';KAMPYLE_UTILS.setElementStyle(modal,{height:newHeight},true);}}
function reactToIframeHeightChange(eventName,eventData){if(KAMPYLE_DATA.isMobileDynamicSizing((eventData||{}).formId)){iFrameHeightChangedHandler(eventData);var formHeight=KAMPYLE_UTILS.getNestedPropertyValue(eventData,'newHeight');if(KAMPYLE_VIEW.shouldAddScroll(formHeight)){var kFormContainer=document.getElementById('kampyleFormContainer');KAMPYLE_UTILS.setElementStyle(kFormContainer,{overflowY:'auto'},true);}}}
function manipulateAriaHiddens(){var bodyChilds=document.body.children;var ariaHiddenValues=[];for(var i=0;i';var s=document.body.appendChild(inviteSpanPlacer);}
var inviteIframe=document.createElement('iframe');inviteIframe.id=KAMPYLE_CONSTANT.IFRAME_SETTINGS.INVITATION.IFRAME_ID;inviteIframe.title=KAMPYLE_CONSTANT.IFRAME_SETTINGS.INVITATION.IFRAME_TITLE;inviteIframe.tabIndex=-1;var inviteHeight=data.inviteData.inviteHeight;var inviteWidth=data.inviteData.inviteWidth;var kampyleDevice=KAMPYLE_DATA.getMemoryData('kampyleDevice');if(kampyleDevice===KAMPYLE_CONSTANT.DEVICES.MOBILE||kampyleDevice===KAMPYLE_CONSTANT.DEVICES.TABLET){inviteHeight='100%';inviteWidth='100%';var inviteModal=document.getElementById('kampyleInviteModal');if(!!inviteModal)
{KAMPYLE_UTILS.setElementStyle(inviteModal,{height:'100%',width:'100%',},true);}}
KAMPYLE_UTILS.setElementStyle(inviteIframe,{height:inviteHeight,width:inviteWidth,display:'none',border:'0',},true);var iframeSrc=data.inviteData.inviteUrl+'?formId='+eventData.formId;if(KAMPYLE_DATA.isFeatureEnabled(KAMPYLE_CONSTANT.FEATURE_FLAGS.WCAG)){iframeSrc+='&isWCAG=true';}
inviteIframe.src=iframeSrc;document.getElementById('kampyleInviteModal').appendChild(inviteIframe);if(KAMPYLE_DATA.isNewMobileInvitation()){var spinner=document.getElementsByClassName('neb-loading-spinner')[0];KAMPYLE_UTILS.setElementStyle(spinner,{display:'none',},true);KAMPYLE_UTILS.setElementStyle(inviteSpanPlacer,{'z-index':99999998,},true);var inviteContainer=document.getElementById('kampyleInviteContainer');if(inviteContainer){KAMPYLE_UTILS.setElementStyle(inviteContainer,{'z-index':99999998,},true);}}
setTimeout(function(){if(KAMPYLE_DATA.getFormState(data.formId).inviteLoaded!==true){KAMPYLE_DATA.setFormState(data.formId,{inviteLoaded:false,inviteShown:false});}},KAMPYLE_CONSTANT.NETWORK.TIME_FOR_FORM_TO_LOAD_MS);}
function hideButton(eventName,data){if(!data||KAMPYLE_DATA.isEmbeddedDisplayType(data.formId)){return;}
if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.NEW_MODAL_DIALOGS)){KAMPYLE_VIEW.hideFeedbackButtonVisually();}
else{KAMPYLE_VIEW.removeButton(eventName,data);}}
function removeButton(eventName,data){var buttonElementById=document.getElementById('kampyleButtonContainer');if(!buttonElementById){return;}
buttonElementById.innerHTML='';if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.NEW_MODAL_DIALOGS)){KAMPYLE_DATA.setMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.FEEDBACK_BUTTON_POSITION_STYLE,{});}}
function removeAllShownElements(eventName,data){var kampyleFormContainer=document.getElementById('kampyleFormContainer');var kampyleInviteContainer=document.getElementById('kampyleInviteContainer');var kampyleAnimationContainer=document.getElementById(KAMPYLE_CONSTANT.IFRAME_SETTINGS.ANIMATION.CONTAINER_ID);KAMPYLE_VIEW.removeButton(eventName,data);if(kampyleFormContainer){KAMPYLE_UTILS.removeAllContent(kampyleFormContainer);}
if(kampyleInviteContainer){KAMPYLE_UTILS.removeAllContent(kampyleInviteContainer);}
if(kampyleAnimationContainer){KAMPYLE_UTILS.removeAllContent(kampyleAnimationContainer);}}
function getButtonText(formData){if(typeof MDIGITAL.LOCALIZATION!=='undefined'&&KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.LOCALIZED_FORMS)){return MDIGITAL.LOCALIZATION.getLocalizedButtonText(formData);}
else{return formData.buttonData.text;}}
function shouldAddScroll(formHeight){var bodyPosition=KAMPYLE_UTILS.getElementStyle(document.body,'position');return(bodyPosition==='fixed'||bodyPosition==='absolute')&&(KAMPYLE_UTILS.getDocumentSize().height<=formHeight);}
return{setIframeOrigin:setIframeOrigin,ignoreShowForm:ignoreShowForm,scrollToEmbeddedForm:scrollToEmbeddedForm,scrollFromTop:scrollFromTop,doScrollY:doScrollY,removeAllShownElements:removeAllShownElements,handleLightBoxIframe:handleLightBoxIframe,createFormIframe:createFormIframe,createFormContainer:createFormContainer,showForm:showForm,hideForm:hideForm,showButton:showButton,createButton:createButton,hideInvite:hideInvite,hideButton:hideButton,hideFeedbackButtonVisually:hideFeedbackButtonVisually,showFeedbackButtonVisually:showFeedbackButtonVisually,removeButton:removeButton,handleInvitationSkippedForms:handleInvitationSkippedForms,updateIframeStyle:updateIframeStyle,formatTriangularStyle:formatTriangularStyle,formatVerticalStyle:formatVerticalStyle,prepareHostingDOM:prepareHostingDOM,restoreHostingDOM:restoreHostingDOM,getInvitePosition:getInvitePosition,newMobileInvite:newMobileInvite,changeInviteHeight:changeInviteHeight,iFrameHeightChangedHandler:iFrameHeightChangedHandler,manipulateAriaHiddens:manipulateAriaHiddens,restoreAriaHidden:restoreAriaHidden,getDefaultIframeHeight:getDefaultIframeHeight,shouldAddScroll:shouldAddScroll,shouldShowErrMsgOnForm:shouldShowErrMsgOnForm,onErrModalClose:onErrModalClose,handleLoadFormEvent:handleLoadFormEvent,handleCloseButtonInErroModalKeydown:handleCloseButtonInErroModalKeydown,onErrorModalKeyPressed:onErrorModalKeyPressed,pickElementStyleProperties:pickElementStyleProperties,init:init,setMetaViewport:setMetaViewport,setZIndex:setZIndex,showVisibility:showVisibility,getCornerMargin:getCornerMargin,showFormCouldNotFechtedErrorMsg:showFormCouldNotFechtedErrorMsg,handleInviteReady:handleInviteReady,getButtonText:getButtonText,showInvite:showInvite,getWCAGClass:getWCAGClass,getClassDirectonByPosition:getClassDirectonByPosition,getLoaderGifUrl:getLoaderGifUrl,updateInviteIframeTitle:updateInviteIframeTitle};})(window,document);window.KAMPYLE_MESSAGE=(function(){function init(){KAMPYLE_UTILS.setEventHandler(window,'message',handleMessage);}
function validateMessageEvent(e){if(KAMPYLE_UTILS.isDebugMode()){return true;}
if(!e||!e.origin||!e.data){return false;}
var baseUrl=KAMPYLE_CONSTANT.PLACEHOLDERS.URL_PREFIX;if(baseUrl.indexOf("://")>-1){var baseUrlSplitted=baseUrl.split('/');baseUrl=baseUrlSplitted[0]+"//"+baseUrlSplitted[2];}else{var indexOfFirstSlash=baseUrl.indexOf("/");if(indexOfFirstSlash>-1){baseUrl=baseUrl.slice(0,indexOfFirstSlash)}}
return KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.ON_PREM_HYBRID)||e.origin===baseUrl;}
function handleMessage(e){if(!validateMessageEvent(e)){return false;}
var data;try{data=JSON.parse(e.data);}
catch(e){return false;}
switch(data.action){case'inviteAccepted':KAMPYLE_EVENT_DISPATCHER.trigger('neb_inviteAccepted',{'formId':data.formId});break;case'inviteDeclined':case'inviteDefered':KAMPYLE_EVENT_DISPATCHER.trigger('neb_inviteDeclined',{'formId':data.formId});break;case'inviteHeightChanged':KAMPYLE_EVENT_DISPATCHER.trigger('neb_inviteHeightChanged',{formId:data.formId,newHeight:data.newHeight,});break;case'formLoaded':KAMPYLE_EVENT_DISPATCHER.trigger('neb_formLoaded',{'formId':data.formId,origin:e.origin,isScreenCaptureEnabled:data.isScreenCaptureEnabled,});break;case'formSubmitPending':case'formHide':KAMPYLE_EVENT_DISPATCHER.trigger('neb_formHide',{'formId':data.formId});break;case'formSubmitted':var payload={formId:data.formId,feedbackUUID:KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.BACKEND_GENERATED_UUID)?data.feedbackUUID:data.uuid,feedbackCorrelationUUID:KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.BACKEND_GENERATED_UUID)?data.feedbackCorrelationUUID:data.uuid};if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.EVENT_INCLUDE_FEEDBACK_CONTENT)&&data.content){payload.content=data.content;}
KAMPYLE_EVENT_DISPATCHER.trigger('neb_feedbackSubmitted',payload);break;case'formClose':var payload={formId:data.formId,feedbackUUID:KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.BACKEND_GENERATED_UUID)?data.feedbackUUID:data.uuid,sourceWindow:e.source,isFormSubmitted:data.isFormSubmitted,feedbackCorrelationUUID:KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.BACKEND_GENERATED_UUID)?data.feedbackCorrelationUUID:data.uuid};KAMPYLE_EVENT_DISPATCHER.trigger('neb_formClosed',payload);break;case'formPageShown':var payload={'formId':data.formId,'pageNumber':data.pageNumber,feedbackCorrelationUUID:KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.BACKEND_GENERATED_UUID)?data.feedbackCorrelationUUID:data.uuid};KAMPYLE_EVENT_DISPATCHER.trigger('neb_formPageShown',payload);break;case'triggerScreenCapture':var payload={'formId':data.formId,'screenCaptureSettings':data.screenCaptureSettings,feedbackCorrelationUUID:KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.BACKEND_GENERATED_UUID)?data.feedbackCorrelationUUID:data.uuid,screenCaptureUuid:KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.USER_SNAP_AS_COMPONENT)?data.screenCaptureUuid:null}
break;case'screenCaptureDelete':KAMPYLE_EVENT_DISPATCHER.trigger('screenCaptureDelete',data);break;case'screenCaptureRetake':KAMPYLE_EVENT_DISPATCHER.trigger('screenCaptureRetake',data);break;case'scrollToForm':KAMPYLE_EVENT_DISPATCHER.trigger('neb_scrollToForm',{formId:data.formId});break;case'iFrameHeightChanged':KAMPYLE_EVENT_DISPATCHER.trigger('neb_iFrameHeightChanged',{formId:data.formId,newHeight:data.newHeight,});break;case'scrollToTop':KAMPYLE_EVENT_DISPATCHER.trigger('neb_scrollToTop',{formId:data.formId,});break;case'scrollFromTop':KAMPYLE_EVENT_DISPATCHER.trigger('neb_scrollFromTop',{formId:data.formId,numberOfPixels:data.numberOfPixels});break;case'inviteLoaded':KAMPYLE_EVENT_DISPATCHER.trigger('neb_inviteLoaded',{formId:data.formId,inviteVersion:data.inviteVersion,inviteContent:data.inviteContent});break;case'loadMultipleForms':KAMPYLE_EVENT_DISPATCHER.trigger('neb_loadMultipileForms',{formId:data.formId,formIds:data.formIds,});break;case'routeToForm':KAMPYLE_EVENT_DISPATCHER.trigger('neb_routeToForm',{formId:data.destinationForm,sourceFormId:data.formId,},null,{isStrictMode:true});break;case'submitFeedbackFailed':KAMPYLE_EVENT_DISPATCHER.trigger('neb_submitFeedbackFailed',data);break;case'feedbackUUIDisNull':KAMPYLE_EVENT_DISPATCHER.trigger('neb_feedbackUUIDisNull',data);break;case'MDigital_Form_Next_Page':case'MDigital_Form_Back_Page':case'MDigital_ThankYou_Displayed':case'MDigital_ThankYou_Close':case'MDigital_Form_Close_No_Submit':case'MDigital_Form_Close_Submitted':case'MDigital_CHTML_Logs':if(!KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.BACKEND_GENERATED_UUID)){data.feedbackCorrelationUUID=data.uuid;}
KAMPYLE_EVENT_DISPATCHER.trigger(data.action,data);break;default:if(!KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.ON_PREM_HYBRID)){KAMPYLE_UTILS.showWarning('invalid action - '+data.action);}
return false;}}
return{init:init,handleMessage:handleMessage,validateMessageEvent:validateMessageEvent};})();window.KAMPYLE_UTILS={TOP_LEVEL_DOMAIN_COOKIE_PREFIX:'Tld-',startsWith:function(originalString,searchString,position){return originalString.substr(position||0,searchString.length)===searchString;},isIos:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;},isSafari:function(){return navigator.userAgent.indexOf("Safari")>-1&&navigator.userAgent.indexOf("Chrome")<0;},isiPhone:function(){return/iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;},isiPadOS13:function(){return KAMPYLE_UTILS.isSafari()&&!KAMPYLE_UTILS.isiPhone()&&window.DeviceOrientationEvent!==undefined;},isIE:function(){return/rv:11.0/i.test(navigator.userAgent)||/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent);},isDesktop:function(){return KAMPYLE_DATA.getMemoryData('kampyleDevice')===KAMPYLE_CONSTANT.DEVICES.DESKTOP},createIEEvent:function(eventName,data){var e=document.createEvent('HTMLEvents');e.initEvent(eventName,true,true);e.detail=data||{};return e;},triggerCustomEvent:function(eventName,data){var e;var isIE=KAMPYLE_UTILS.isIE();if(isIE){e=KAMPYLE_UTILS.createIEEvent(eventName,data);}else{data=data?{detail:data}:{};e=new CustomEvent(eventName,data);}
try{window.dispatchEvent(e);}catch(e){KAMPYLE_UTILS.showWarning('Could not trigger custom event '+eventName);}},isDebugMode:function(){var region=KAMPYLE_DATA.getMemoryData('region');return(region===KAMPYLE_CONSTANT.REGIONS.DEV||region===KAMPYLE_CONSTANT.REGIONS.QA);},showErrorStack:function(e){if(KAMPYLE_UTILS.isDebugMode()){console.warn(e.stack);}},showWarning:function(message){if(KAMPYLE_UTILS.isDebugMode()){console.warn(message);}},addStyle:function(cssStyle,referencedDocument){if(!KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.CSP_RULES)){referencedDocument=referencedDocument||window.document;var style=referencedDocument.getElementById('kampyleStyle');if(style===null){style=referencedDocument.createElement('style');style.type='text/css';style.id='kampyleStyle';var head=referencedDocument.head||referencedDocument.getElementsByTagName('head')[0];head.appendChild(style);}
if(style.styleSheet){style.styleSheet.cssText+=cssStyle;}else{style.appendChild(document.createTextNode(cssStyle));}}
else{console.error("Should not use this method if the provision csp rules is on");}},addAttributesOnElement:function(element,attributesObj){if(element&&attributesObj){for(var key in attributesObj){if(attributesObj.hasOwnProperty(key)){element.setAttribute(key,attributesObj[key]);}}}},removeAttribute:function(element,name){if(element&&element.hasAttribute(name)){element.removeAttribute(name);}},getViewportSize:function(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0),};},getDocumentSize:function(){var body=document.body;var html=document.documentElement;var height=Math.max(body.scrollHeight||0,body.offsetHeight||0,html.clientHeight||0,html.scrollHeight||0,html.offsetHeight||0);var width=Math.max(body.scrollWidth||0,html.scrollWidth||0,body.offsetWidth||0,html.offsetWidth||0,html.clientWidth||0);return{width:width+(body.getBoundingClientRect?body.getBoundingClientRect().left||0:0),height:height+(body.getBoundingClientRect?body.getBoundingClientRect().top||0:0),};},getElementSize:function(element){var height=Math.max(element.scrollHeight||0,element.offsetHeight||0,element.clientHeight||0);var width=Math.max(element.scrollWidth||0,element.offsetWidth||0,element.clientWidth||0);return{width:width,height:height,};},getCurrentTimestamp:function(){return new Date().getTime();},getTimeDiff:function(time,format){var datetime=typeof time!=='undefined'?time:'2014-01-01 01:02:03.123456';datetime=new Date(datetime).getTime();var now=KAMPYLE_UTILS.getCurrentTimestamp();if(isNaN(datetime)){return'';}
var miliSecDiff=0;if(datetimeleft&&xtop&&y');return inputHtml;},escapeRegExp:function(str){return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,'\\$1');},replaceAll:function(str,find,replace){return str.replace(new RegExp(KAMPYLE_UTILS.escapeRegExp(find),'g'),replace);},sendMessageToIframe:function(iframeId,message){var origin;var targetWindow;var iframe;if(!iframeId){return;}
iframe=document.getElementById(iframeId);if(!iframe||!iframe.getAttribute){return;}
var origin=iframe.getAttribute('origin')||'*';var targetWindow=iframe.contentWindow;if(targetWindow&&targetWindow.postMessage)
{targetWindow.postMessage(JSON.stringify(message),origin);}},getBrowser:function(){var ua=navigator.userAgent,tem,M=ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if(/trident/i.test(M[1])){tem=/\brv[ :]+(\d+)/g.exec(ua)||[];return{name:'IE',version:tem[1]||'',};}
if(M[1]==='Chrome'){tem=ua.match(/\b(OPR|Edge)\/(\d+)/);if(tem!=null){var temArr=tem.slice(1);return{name:temArr[0].replace('OPR','Opera'),version:temArr[1]||'',};}}
M=M[2]?[M[1],M[2]]:[navigator.appName,navigator.appVersion,'-?'];if((tem=ua.match(/version\/(\d+)/i))!=null)M.splice(1,1,tem[1]);return{name:M[0],version:M[1],};},initEventSubscriptions:function(eventObj,callback){for(var prop in eventObj)
{if(eventObj.hasOwnProperty(prop))
{KAMPYLE_EVENT_DISPATCHER.subscribe(prop,callback);}}},getRandomTimeMS:function(minValue,maxValue){return minValue+(Math.round(Math.random()*(maxValue-minValue)));},kampyleGetUserId:function(){var userid=KAMPYLE_DATA.getData('kampyle_userid');if(!userid){userid=KAMPYLE_UTILS.kampyleCreateUUID();KAMPYLE_DATA.setData('kampyle_userid',userid);if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.ALTERNATIVE_UUID)){KAMPYLE_DATA.setData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.MDIGITAL_ALTERNATIVE_UUID,KAMPYLE_UTILS.generateUUID());}}
return userid;},kampyleCreateUUID:function(){var numAttempts=8;var uuidAlgorithm=function(){return Math.floor((1+Math.random())*0x10000).toString(16).substring(1);};var uuid=uuidAlgorithm();for(var i=0;i'+s).length;},getAllKampyleData:function(){var kampyleDataNames=['SUBMITTED_DATE','kampyleUserPercentile','kampyleUserSession','kampyle_userid','kampyleInvitePresented','DECLINED_DATE','LAST_INVITATION_VIEW',];if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.ALTERNATIVE_UUID)){kampyleDataNames.push(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.MDIGITAL_ALTERNATIVE_UUID);}
if(KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.EXEMPT_FORMS_FROM_QUARANTINE)){kampyleDataNames.push(KAMPYLE_CONSTANT.SESSION_DATA_FIELDS.IS_SURVEY_SUBMITTED_IN_SESSION)}
var result={};for(var i=kampyleDataNames.length-1;i>=0;i--){result[kampyleDataNames[i]]=KAMPYLE_DATA.getData(kampyleDataNames[i]);}
return result;},kampyleDeleteCookie:function(cookieName,propertySharedSubdomain){var domain='';if(propertySharedSubdomain){domain=';domain='+propertySharedSubdomain+';';}
var cookieFlag=KAMPYLE_UTILS.getCookieFlagByProtocol();var expires='expires=Thu, 01 Jan 1970 00:00:00 UTC';document.cookie=cookieName+'= ; '+cookieFlag+expires+';path=/'+domain;},kampyleIsCookieEnabled:function(){return navigator.cookieEnabled;},kampyleCompareTimestamps:function(source,toCompare,operator)
{if(typeof source!=='number'||typeof toCompare!=='number')
{return false;}
source=new Date(source);toCompare=new Date(toCompare);source.setHours(0,0,0,0);switch(operator){case'equals':toCompare.setHours(0,0,0,0);return(source.getTime()===toCompare.getTime());break;case'laterthan':toCompare.setHours(23,59,59,999);return(source>toCompare);break;case'earlierthan':toCompare.setHours(0,0,0,0);return(sourcetoCompare);break;case KAMPYLE_CONSTANT.OPERATORS.LATER_THAN:if(varType==='datetime')
{ans=KAMPYLE_UTILS.kampyleCompareTimestamps(source,toCompare,operator);}
else{ans=(source>toCompare);}
break;case KAMPYLE_CONSTANT.OPERATORS.SMALLER_THAN:ans=(sourcetoCompare);}
break;case KAMPYLE_CONSTANT.OPERATORS.CONTAINS:ans=(!!source&&source.indexOf&&source.indexOf(toCompare)!==-1);break;case KAMPYLE_CONSTANT.OPERATORS.DOES_NOT_CONTAIN:ans=(!!source&&source.indexOf&&source.indexOf(toCompare)===-1);break;case KAMPYLE_CONSTANT.OPERATORS.STARTS_WITH:ans=(!!source&&source.indexOf&&source.indexOf(toCompare)===0);break;case KAMPYLE_CONSTANT.OPERATORS.ENDS_WITH:ans=(!!source&&source.indexOf&&source.length&&source.indexOf(toCompare,source.length-source.length)!==-1);break;case KAMPYLE_CONSTANT.OPERATORS.HAS_VALUE:ans=(!!source||source===''||source===false||source===0);break;case KAMPYLE_CONSTANT.OPERATORS.REGEX:try{var regex=new RegExp(toCompare);ans=(!!source&®ex.exec(source)!==null);}catch(e){ans=false;}
break;default:break;}
return ans;},setNestedPropertyValue:function(obj,propString,value){var schema=obj;var pList=propString.split('.');var len=pList.length;for(var i=0;i0?objectProperties:null;},httpRequest:function(method,url,jsonData,onSuccess,onError,config){var counter=0;var numOfTimes=(config||{}).numOfTimes||KAMPYLE_CONSTANT.NETWORK.NUM_OF_RETRIES;var timeout=(config||{}).timeout||KAMPYLE_CONSTANT.NETWORK.REQUEST_TIMEOUT;function handleError(error,eventName,eventData){if(counter0){if(q.length==2){if(typeof q[1]==FUNC_TYPE){device[q[0]]=q[1].call(device,match);}else{device[q[0]]=q[1];}}else if(q.length==3){if(typeof q[1]===FUNC_TYPE&&!(q[1].exec&&q[1].test)){device[q[0]]=match?q[1].call(device,match,q[2]):undefined;}else{device[q[0]]=match?match.replace(q[1],q[2]):undefined;}}else if(q.length==4){device[q[0]]=match?q[3].call(device,match.replace(q[1],q[2])):undefined;}}else{device[q]=match?match:undefined;}}}}
i+=2;}
if(!device[TYPE]||(device[TYPE]!==MOBILE&&device[TYPE]!==TABLET)){return DESKTOP;}
return device[TYPE];},getElementStyle:function(domElement,styleProperty){if(domElement instanceof HTMLElement){try{return window.getComputedStyle(domElement).getPropertyValue(styleProperty);}catch(err){}}
return null;},isTruthy:function(expression){if(typeof expression!=='string'){return expression;}
try{expression=JSON.parse(expression);}catch(err){}
return expression;},safeJsonParse:function(str,msgOnFail){try{return JSON.parse(str);}catch(e){KAMPYLE_UTILS.showWarning(msgOnFail?msgOnFail:'Failed to parse JSON, error message: '+(e||{}).message);KAMPYLE_UTILS.showErrorStack(e||{});return null;}},addWcagStyleOnFocus:function(element){if(KAMPYLE_DATA.isFeatureEnabled(KAMPYLE_CONSTANT.FEATURE_FLAGS.WCAG)){element.addEventListener("focusin",function(){KAMPYLE_UTILS.setElementStyle(element,{outline:'1px dashed #595959',outlineOffset:'2px',transition:'none'},true);})
element.addEventListener("focusout",function(){element.style.outline='none';element.style.outlineOffset=null;element.style.transition=null;});}},addHoverEffectOnElement:function(element,defaultStyle,onHoverStyle){if(element&&typeof(element.addEventListener)==='function'){element.addEventListener("mouseenter",function(){KAMPYLE_UTILS.setElementStyle(element,onHoverStyle);})
element.addEventListener("mouseleave",function(){KAMPYLE_UTILS.setElementStyle(element,defaultStyle);})}},handleAfterFormPosition:function(eventName,data){var isScrollToPostion=true;if(isScrollToPostion){KAMPYLE_UTILS.scrollToLastPosition()}},scrollToLastPosition:function(){var position=KAMPYLE_DATA.getMemoryData('scrollPosition');if(position){window.scroll(position.x,position.y);KAMPYLE_DATA.deleteMemoryData('scrollPosition');}},setCurrentScrollPosition:function(){if(!KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.NOT_SCROLL_TO_LAST_POSITION_DISPLAY_TYPE_ANIMATION)&&(document.body!==document.activeElement)){return false;}
var position=KAMPYLE_UTILS.getScrollPosition()||{};KAMPYLE_DATA.setMemoryData('scrollPosition',{x:position.x,y:position.y});},getScrollPosition:function(){var isPageOffsetSupported=window.pageXOffset!==undefined;var isCSS1Compat=((document.compatMode||"")==="CSS1Compat");var x=isPageOffsetSupported?window.pageXOffset:isCSS1Compat?document.documentElement.scrollLeft:document.body.scrollLeft;var y=isPageOffsetSupported?window.pageYOffset:isCSS1Compat?document.documentElement.scrollTop:document.body.scrollTop;return{x:x,y:y}},getLangCodeFromNavAPI:function(){return window.navigator.language||window.navigator.userLanguage||null;},getStrigifiedData:function(data){var strigifyData;if(typeof data==='object'&&data!==null){try{strigifyData=JSON.stringify(data);}
catch(err){strigifyData=data;}}
else{strigifyData=data;}
return strigifyData;},appendScript:function(scriptSrc){var s=document.createElement('script');s.src=scriptSrc;document.body.appendChild(s);},toBase64:function(str){str=str||'';return btoa(unescape(encodeURIComponent(str)));},styleObjToInline:function(styleObj){var inlineStyle='';for(var prop in styleObj){inlineStyle+=prop+':'+styleObj[prop]+';';}
return inlineStyle;},getBaseUrl:function(){return location.origin+location.pathname;},generateUUID:function(){var seed=KAMPYLE_UTILS.getCurrentTimestamp();if(window.performance&&typeof window.performance.now==='function'){seed+=performance.now();}
var UUID='xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx'.replace(/[x]/g,function(){var random=(seed+Math.random()*16)%16|0;seed=Math.floor(seed/16);return random.toString(16);});return UUID;},getRetryTimeout:function(){var dataJson=KAMPYLE_DATA.getMemoryData(KAMPYLE_CONSTANT.MEMORY_DATA_FIELDS.DATA_JSON);return KAMPYLE_UTILS.getNestedPropertyValue(dataJson,'retryTimout')||KAMPYLE_CONSTANT.NETWORK.RETRY_TIMEOUT;},isTrue:function(value){return value===true||value==="true"},isValueNumericAndDefined:function(value){var isValueDefined=!!value;var isValueNumeric=!isNaN(value);return isValueDefined&&isValueNumeric;},focusElement:function(element){if(element&&typeof element.focus==='function'){element.focus();}},isModalFormType:function(formId){var formData=KAMPYLE_DATA.getFormData(formId);var displayType=KAMPYLE_DATA.getDisplayType(formData);var validFormTypes=(Boolean(formData)&&Boolean(displayType)&&formData.formType!==KAMPYLE_CONSTANT.FORM_TYPES.EMBEDDED&&displayType!==KAMPYLE_CONSTANT.DISPLAY_TYPES.POPUP);return KAMPYLE_FUNC.checkProvision(KAMPYLE_CONSTANT.PROVISIONS.NEW_MODAL_DIALOGS)?validFormTypes&&displayType!==KAMPYLE_CONSTANT.DISPLAY_TYPES.ANIMATION:validFormTypes;},isFormInPreviewContext:function(formId){var formState=KAMPYLE_DATA.getFormState(formId);return formState!=null&&formState.triggerType=="Preview"}};window.KAMPYLE_EVENT_DISPATCHER=(function(window,document){var eventSubscriptions;function init(){eventSubscriptions={};}
function getTriggerMessage(settings){var messageTemplate=KAMPYLE_CONSTANT.LOG_MESSAGES.TRIGGER_MESSAGE_TEMPLATE;messageTemplate=messageTemplate.replace("{{EVENT_NAME}}",settings.eventName).replace("{{DATA}}",KAMPYLE_UTILS.getStrigifiedData(settings.data)).replace("{{CONTEXT}}",KAMPYLE_UTILS.getStrigifiedData(settings.context)).replace("{{OPTIONS}}",KAMPYLE_UTILS.getStrigifiedData(settings.options));if(settings.errorMessage){messageTemplate=messageTemplate.replace('{{STATUS}}',KAMPYLE_CONSTANT.LOG_STATUSES.FAILED);messageTemplate+=KAMPYLE_CONSTANT.LOG_MESSAGES.ERROR_LOG_TEMPLATE.replace("{{ERROR_MESSAGE}}",settings.errorMessage);}
else{messageTemplate=messageTemplate.replace('{{STATUS}}',KAMPYLE_CONSTANT.LOG_STATUSES.TRIGGERED);}
return messageTemplate;}
function getEventSubscriptions(eventName){if(eventName&&eventSubscriptions&&eventSubscriptions[eventName]){return eventSubscriptions[eventName];}
else{return eventSubscriptions;}};var unsubscribe=function(eventName,callback){if(!eventName||typeof eventName!=='string'||!callback||typeof callback!=='function'){return false;}
var subscribers=eventSubscriptions[eventName];if(typeof subscribers!=='undefined'){var callbackIndex=subscribers.indexOf(callback);if(callbackIndex!==-1)
{subscribers.splice(callbackIndex,1);}}
return true;};var subscribe=function(eventName,callback){if(!eventName||typeof eventName!=='string'||!callback||(typeof callback!=='function'&&typeof callback!=='string')){return false;}
var subscribers=eventSubscriptions[eventName];if(typeof subscribers==='undefined'){subscribers=eventSubscriptions[eventName]=[];}
var callbackIndex=subscribers.indexOf(callback);if(callbackIndex===-1)
{subscribers.push(callback);}
return true;};function appendDefaultEventParams(data){data=data||{};var allData=MDIGITAL.CONFIGURATION.getOnsiteConfiguration();var defaultValues={};if(allData){defaultValues={'accountId':allData.accountId,'websiteId':allData.websiteId,'enviroment':allData.region};}
return Object.assign(data,defaultValues);}
var trigger=function(eventName,data,context,options){var subscribers=KAMPYLE_UTILS.getNestedPropertyValue(eventSubscriptions,eventName);var i,iMax;if(typeof subscribers==='undefined'||subscribers===null){return false;}
data=appendDefaultEventParams(data);var dataAsArray=(data instanceof Array)?data:[data];context=context||null;iMax=subscribers.length;for(i=0;ihostMaxHeight){hostMaxHeight=hostMinHeight;}
return getNewHeightSettings(formHeight,shouldBeStatic,isDynamicHost,hostMaxHeight,hostMinHeight,hostHeight);}
function getNewHeightSettings(formHeight,shouldBeStatic,isDynamicHost,hostMaxHeight,hostMinHeight,hostHeight){var newIframeHeight;var newFormHeight=formHeight;if(isDynamicHost){newFormHeight=formHeight;newIframeHeight=newFormHeight;}
else{if(hostMaxHeight!==0&&formHeight>=hostMaxHeight){newFormHeight=hostMaxHeight;shouldBeStatic=true;}
newIframeHeight=newFormHeight;if(formHeight