if (window.consentPolicy.advertising) {
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-MDD5C4′);
}
console && console.log && console.log(‘ADI version 2.5036.0’);
var getMetadata = function() {
return {“storyId”:”70b3c7cc-26ae-4dfc-b924-839737251f79″,”publicUri”:”https://solomonafolabi764.wixsite.com/atech”,”htmlEditorUri”:”https://editor.wix.com/html/editor/web/renderer/edit/3def2f5d-7ba4-4b05-ae83-d7b2fd7151c8?metaSiteId=a790e9c1-9790-4f65-847b-ad067b4c146c”,”dashboardUri”:”https://www.wix.com/my-account/sites/a790e9c1-9790-4f65-847b-ad067b4c146c”,”siteSettingsUri”:”https://manage.wix.com/dashboard/a790e9c1-9790-4f65-847b-ad067b4c146c/settings/”,”connectDomainUri”:”https://www.wix.com/dashboard/a790e9c1-9790-4f65-847b-ad067b4c146c/manage-website/domains”,”siteMediaToken”:”JWS.eyJraWQiOiJuRVF5Y0M5TiIsImFsZyI6IkhTMjU2In0.eyJkYXRhIjoie1widXNlcklkXCI6XCJkOGE3Njg2NS1hMTU5LTQ3ZDMtYTRkOC1jZDUwNGZiN2ZlM2RcIixcIm1ldGFzaXRlSWRcIjpcImE3OTBlOWMxLTk3OTAtNGY2NS04NDdiLWFkMDY3YjRjMTQ2Y1wifSIsImlhdCI6MTYzNTM0MTI1NSwiZXhwIjoxNjM2NTUwODU1fQ.235KuZJZvAX_mNo6oiJVgg86kEdGi8J4ZVk7V8Dsdpg”,”htmlEditorId”:”3def2f5d-7ba4-4b05-ae83-d7b2fd7151c8″,”metaSiteId”:”a790e9c1-9790-4f65-847b-ad067b4c146c”};
};
function getUrlWithoutParameter(location) {
var fixedUrl = location.href;
var metaData = getMetadata();
var storyId = metaData && metaData.storyId;
var htmlEditorUriLocation = new URL(metaData.htmlEditorUri);
var msId = metaData && new URLSearchParams(htmlEditorUriLocation.search).get(‘metaSiteId’);
if (storyId && msId) {
fixedUrl = `${location.href.split(‘#’)[0]}#!/builder/story/${storyId}:${msId}`;
}
return fixedUrl;
}
function getFixedUrlForMultipleStories(location) {
var fixedUrl = location.href;
var hashStory = location.hash.match(new RegExp(‘story/’ + “(.*)” + ‘:’));
if (hashStory && hashStory.length > 1) {
var realStoryId = hashStory[1];
var searchParamStoryId = new URLSearchParams(location.search).get(‘storyId’);
if (realStoryId !== searchParamStoryId) {
fixedUrl = location.href.replace(searchParamStoryId, realStoryId);
}
}
return fixedUrl;
}
function removeTrailingSlashes(url) {
return url.replace(/\/+$/, “”);
}
function getFixedUrl(url) {
var fixedUrl = url.replace(‘#/!’, ‘#!’)
.replace(/#\/{0,}$/, ‘#!’);
var location = new URL(fixedUrl);
if (location.search.indexOf(‘storyId=’) !== -1) {
if (location.hash.indexOf(‘/story/’) !== -1) {
fixedUrl = getFixedUrlForMultipleStories(location);
} else {
fixedUrl = getUrlWithoutParameter(location);
}
}
return fixedUrl;
}
var currentUrl = window.location.href;
var fixedUrl = getFixedUrl(currentUrl);
if (removeTrailingSlashes(fixedUrl) !== removeTrailingSlashes(currentUrl)) {
window.location.replace(fixedUrl);
}
var commonConfig = {“brand”:”wix”};
//
var ADI = {};
ADI.getExperiments = function() {
return {“specs.ob.pagePermissions”:”true”,”specs.ob.introChallengesTPA”:”true”,”specs.ob.newAndUpdateKits”:”true”,”specs.ob.med_oneAppDeepLinkWithOwnersAppDomain”:”true”,”specs.ob.formTitles”:”true”,”specs.ob.fixStorePresets”:”true”,”specs.ob.addPageFromLinkPopup”:”true”,”specs.ob.fixDeserializeWidget”:”true”,”specs.ob.lightboxSEO”:”true”,”specs.ob.platformUseAppActive”:”true”,”specs.ob.newContentManager”:”true”,”specs.wossm.LimitNumOfFreeSites”:”true”,”specs.premium.mailbox.EnableRenameUserModal”:”false”,”specs.ob.useSquidProxy”:”true”,”specs.AdiMedReactIntroEnabled”:”true”,”specs.ascend.AccessPackagePicker”:”true”,”specs.ValidateAutopilotMigration”:”true”,”specs.ob.usePlatformUninstall”:”true”,”specs.ob.noSearchRelatedResultsLabel”:”true”,”specs.ob.squeezeAllContacts”:”true”,”specs.ob.oldBlogRender”:”true”,”specs.ob.refComponentPoc”:”true”,”specs.ob.liveVideoForWixEventsMigration”:”true”,”specs.ob.med_skipEditSectionPageToOwnerApp”:”true”,”specs.ob.disableMMCustomTab”:”true”,”specs.adi.EnableHardDeleteEvent”:”true”,”specs.experts.FeedBackNg2″:”true”,”specs.ob.showPostPage”:”true”,”specs.ob.encodeHTMLAgainstXSS”:”true”,”specs.vod.siteBased”:”true”,”specs.adi.EnableNewLocalesInSearch”:”false”,”specs.ob.newUpgradeBanner”:”true”,”specs.ob.eventsSchedulePage”:”true”,”specs.CompressStoryEvents”:”true”,”specs.ob.unsupportedTpa”:”true”,”specs.ob.adiPlatformHostIntegration”:”true”,”specs.ob.bookingsServicePageSettings”:”true”,”specs.ob.newTopBarTpa”:”true”,”specs.ob.loyaltyOnAdi”:”false”,”specs.ob.med_blockPagesAddWithTPA”:”true”,”specs.ob.med_menuMarketplaceLink”:”true”,”specs.media.MediaManager3Migrate”:”true”,”specs.AdiAutoCompleteCustomWeightsEnabled”:”true”,”specs.vod.useGraphAPI”:”false”,”specs.ob.med_oneAppNewDeepLink”:”true”,”specs.funnel.EnableNewCreateSiteUrl”:”true”,”specs.ob.ignorePendingAppErrors”:”true”,”specs.ob.fixBrowserHistoryOnIntro”:”true”,”specs.ob.challengesTPAIntegration”:”true”,”specs.media.MediaManager3″:”true”,”specs.ob.med_businessQuestions”:”true”,”specs.premium.EnablePurchaseFlowSepaNoRefundDisclaimers”:”false”,”specs.ob.med_videoUploader”:”true”,”specs.ob.newBusinessQuestions”:”true”,”specs.EnableMedReactForMobileEndpoint”:”false”,”specs.ob.fixMembersLoginCaching”:”true”,”specs.ob.FeedbackWidget”:”true”,”specs.ob.deprecateDsSeo”:”true”,”specs.premium.mailbox.EnableNewMyMailboxSpec”:”true”,”specs.ob.reactIntro”:”true”,”specs.ob.adiOfflineFormsMigration”:”true”,”specs.ob.syncMembersMenu”:”true”,”specs.ob.med_bookingsBanner”:”true”,”specs.ob.newResponsiveTopBar”:”true”,”specs.ob.handleGtm”:”true”,”specs.ob.ckEditorInit”:”true”,”specs.wos.SiteHistoryBM”:”true”,”specs.ob.med_oneAppDeepLink”:”true”,”specs.ob.TemplateFullStory”:”true”,”specs.ob.ascendPanel”:”true”,”specs.LimitContentSearchTerm”:”true”,”specs.ob.hideSendFeedback”:”true”,”specs.ob.newDealerApi”:”true”,”specs.ob.addPendingAllMembers”:”true”,”se_wixStores_ecomPlatformInstallation”:”false”,”specs.funnel.EnableIntroFitnessFlow”:”true”,”specs.ob.pendingApps”:”true”,”specs.adi.EnableRedirectLangDomainToEditorDomain”:”true”,”specs.UseBoltInPreviewForAdi”:”true”,”specs.ob.pagePermissionsSiteMembers”:”true”,”specs.FeedBackReactUI”:”true”,”specs.ob.handleSaveError”:”true”,”specs.ob.tpaConfiguration”:”true”,”specs.ob.notifyBmClosed”:”true”,”specs.ob.platformsScreen4″:”true”,”specs.ob.AdiInstallBookCheckoutPage”:”true”,”specs.ob.readSeoOnLoad”:”true”,”specs.ob.showLoyaltyOnAdiAppPanel”:”false”,”specs.ob.otherFormTitles”:”true”,”specs.adi.UseWixLocale”:”true”,”specs.ob.wixEvents”:”true”,”specs.ob.med_attachGoBackFunctionToWindowObject”:”true”,”specs.ob.headlessPendingApps”:”true”,”specs.ob.focalPointOSI”:”true”,”specs.adi.EnableRedirectToEditorDomain”:”true”,”specs.ob.blogGoToEditor”:”true”,”specs.ob.deleteAdiIntro”:”true”,”specs.ob.bookingsPlatformAPI”:”true”};
};
ADI.messageQueue = [];
ADI.messagesSaver = function(event) {
ADI.messageQueue.push(event);
};
window.addEventListener(‘message’, ADI.messagesSaver);
(function (window) {
var guidRegex = ‘[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}’;
var siteIdRegex = new RegExp(‘/builder/story/(‘ + guidRegex + ‘):(‘ + guidRegex + ‘)’, ‘i’);
ADI.siteId = siteIdRegex.exec(window.location.hash);
})(window);
(function (window) {
function redirectToURLWithStoryId(storyId) {
var storyIdParam = ‘storyId=’ + storyId;
var prefix = window.location.search.length === 0 ? ‘?’ : ‘&’;
window.location.search += prefix + storyIdParam;
throw new Error(‘storyId query parameter is missing – redirecting’);
}
var storyId = ADI.siteId && ADI.siteId[1];
var hasStoryIdParam = /\bstoryId=/.test(window.location.search);
var hasTemplateStoryIdParam = /\btemplateStoryId=/.test(window.location.search);
if (storyId && !hasStoryIdParam && !hasTemplateStoryIdParam) {
redirectToURLWithStoryId(storyId);
}
})(window);
(function (window) {
ADI.getParameterByName = function(name, url) {
if (!url) url = window.location.href;
name = name.replace(/[\[\]]/g, ‘\\$&’);
var regex = new RegExp(‘[?&]’ + name + ‘(=([^&#]*)|&|#|$)’),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return ”;
return decodeURIComponent(results[2].replace(/\+/g, ‘ ‘));
}
})(window);
// fedops
(function () {
if (!ADI.siteId) {
return;
}
var appName = ‘site-generator-statics-consumer’;
window.fedops = window.fedops || {};
window.fedops.apps = window.fedops.apps || {};
window.fedops.apps[appName] = {startLoadTime: performance && performance.now && performance.now()};
window.fedops = window.fedops || {};
window.fedops.sessionId = window.localStorage.getItem(‘fedops.logger.sessionId’) || ‘xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx’.replace(/[xy]/g, function (c) {
var r = Math.random() * 16 | 0, v = c == ‘x’ ? r : (r & 0x3 | 0x8);
return v.toString(16);
});
(new Image()).src = ‘//frog.wix.com/fed?appName=’ + appName + ‘&src=72&evid=14&session_id=’ + window.fedops.sessionId;
})();
ADI.getTimestamp = typeof performance === ‘object’ && typeof performance.now === ‘function’
? function () {return performance.now()}
: function () {return Date.now()};
//fire start open here
(function (window) {
if (!ADI.siteId) {
return;
}
ADI.loadStartTime = ADI.getTimestamp();
ADI.isTemplate = window.location.href.indexOf(‘templateSite=true’) >= 0 || /\btemplateStoryId=/.test(window.location.search);
var instanceId = ADI.siteId[1];
var msid = ADI.siteId[2];
var loadType = ADI.isTemplate ? ‘template’ : ‘existing%20site’;
ADI.headlessApi = window.location.hash.indexOf(‘headlessApi’) !== -1;
var silentBIValue = ADI.getParameterByName(‘silentBI’);
var silentBI = silentBIValue === ” || silentBIValue === ‘true’;
if (!silentBI) {
var viewerName = (ADI.getExperiments() || {})[‘specs.UseBoltInPreviewForAdi’] === ‘true’ ? ‘bolt’ : ‘santa’;
if (!ADI.headlessApi) {
(new Image()).src = ‘//frog.wix.com/onboarding?src=66&evid=135&origin=home’ +
‘&instanceId=’ + instanceId +
‘&msid=’ + msid +
‘&loadType=’ + loadType +
‘&viewerName=’ + viewerName +
‘&esi=5dbcca7a-79b6-4b84-ba93-41440820d526’;
(new Image()).src = ‘//frog.wix.com/fed?appName=site-generator-statics-consumer’ +
‘&name=init%20existing’ +
‘&src=72’ +
‘&evid=15’ +
‘&viewerName=’ + viewerName +
‘&session_id=’ + window.fedops.sessionId +
‘&_=’ + new Date().getTime();
// add interaction manually so later call to interactionEnded() works
window.fedops.apps[‘site-generator-statics-consumer’].interactions = window.fedops.apps[‘site-generator-statics-consumer’].interactions || {};
window.fedops.apps[‘site-generator-statics-consumer’].interactions[‘init existing’] = {timestamp: performance && performance.now && performance.now()};
}
(new Image()).src = ‘//frog.wix.com/onboarding?src=66&evid=1&origin=home’ +
‘&phaseName=pre%20init’ +
‘&subPhaseName=’ +
‘&msid=’ + msid +
‘&esi=5dbcca7a-79b6-4b84-ba93-41440820d526’ +
‘&loadType=’ + loadType +
‘&viewerName=’ + viewerName +
‘&loadTime=’ + Math.round(ADI.loadStartTime);
}
})(window);
//
ADI.getMetadata = function() {
return {“storyId”:”70b3c7cc-26ae-4dfc-b924-839737251f79″,”publicUri”:”https://solomonafolabi764.wixsite.com/atech”,”htmlEditorUri”:”https://editor.wix.com/html/editor/web/renderer/edit/3def2f5d-7ba4-4b05-ae83-d7b2fd7151c8?metaSiteId=a790e9c1-9790-4f65-847b-ad067b4c146c”,”dashboardUri”:”https://www.wix.com/my-account/sites/a790e9c1-9790-4f65-847b-ad067b4c146c”,”siteSettingsUri”:”https://manage.wix.com/dashboard/a790e9c1-9790-4f65-847b-ad067b4c146c/settings/”,”connectDomainUri”:”https://www.wix.com/dashboard/a790e9c1-9790-4f65-847b-ad067b4c146c/manage-website/domains”,”siteMediaToken”:”JWS.eyJraWQiOiJuRVF5Y0M5TiIsImFsZyI6IkhTMjU2In0.eyJkYXRhIjoie1widXNlcklkXCI6XCJkOGE3Njg2NS1hMTU5LTQ3ZDMtYTRkOC1jZDUwNGZiN2ZlM2RcIixcIm1ldGFzaXRlSWRcIjpcImE3OTBlOWMxLTk3OTAtNGY2NS04NDdiLWFkMDY3YjRjMTQ2Y1wifSIsImlhdCI6MTYzNTM0MTI1NSwiZXhwIjoxNjM2NTUwODU1fQ.235KuZJZvAX_mNo6oiJVgg86kEdGi8J4ZVk7V8Dsdpg”,”htmlEditorId”:”3def2f5d-7ba4-4b05-ae83-d7b2fd7151c8″,”metaSiteId”:”a790e9c1-9790-4f65-847b-ad067b4c146c”};
};
ADI.videoLoaderSrc = ‘https://static.parastorage.com/services/adi-web/2.5036.0/assets/videos/loader.mp4’;
//measure time
(function (window) {
var totalTabVisibleTime, tabVisibleStartTime;
var visibilitychangeHandler = function visibilitychangeHandler() {
if (document.hidden) { // blur tab
totalTabVisibleTime += ADI.getTimestamp() – tabVisibleStartTime;
} else { // focus tab
tabVisibleStartTime = ADI.getTimestamp();
}
};
ADI.measureTimeInTab = {
start: function () {
totalTabVisibleTime = 0;
tabVisibleStartTime = !document.hidden && ADI.getTimestamp();
document.addEventListener(‘visibilitychange’, visibilitychangeHandler);
},
end: function () {
document.removeEventListener(‘visibilitychange’, visibilitychangeHandler);
if (!document.hidden) {
totalTabVisibleTime += ADI.getTimestamp() – tabVisibleStartTime;
}
return Math.round(totalTabVisibleTime);
}
};
ADI.measureTimeInTab.start();
})(window);
// if Sentry failed to load, could happen when using certain ad blocks.
if (typeof Sentry === ‘undefined’) {
var Sentry = undefined;
}
Sentry && Sentry.init({ dsn: ‘https://2e21bb4dae02428f9a177b942abc4832@sentry.wixpress.com/205’ });
ADI.openPanel = ADI.getParameterByName(‘openPanel’);
ADI.focusSpecificAppInPanel = ADI.getParameterByName(‘openpanel’); // for marketing!
ADI.etpa = ADI.getParameterByName(‘etpa’); // for marketing!
ADI.fixOrigin = function(url, forceHttps) {
if ((location.protocol === ‘https:’ || forceHttps) && url.indexOf(‘http:’) === 0) {
url = ‘https:’ + url.substr(‘http:’.length);
}
if (url.indexOf(‘//’) === 0) {
var protocol = forceHttps ? ‘https:’ : location.protocol;
return protocol + url;
}
if (url.indexOf(‘://www.’) === -1) {
return url;
} else {
return url.replace(/:\/\/www\./g, ‘://’ + window.location.host.substr(0, window.location.host.indexOf(‘.’)) + ‘.’);
}
};
//fix cross domain issue
document.domain = window.location.hostname.split(‘.’).slice(-2).join(‘.’);
window.onerror = function() {
window.onerror.errors.push([].slice.call(arguments));
};
window.onerror.errors = [];
(function (window) {
if (window.consentPolicyManager && window.consentPolicyManager.init) {
window.consentPolicyManager.init({
baseUrl: `https://www.wix.com`,
consentPolicy: {“functional”:true,”analytics”:true,”advertising”:true,”dataToThirdParty”:true,”essential”:true},
});
}
if (window.wixTagManager) {
window.wixTagManager.init(window.wixTagManager.HOST_NAMES.ADI, ‘en’);
}
})(window);
(function (window) {
if (ADI.isTemplate) {
ADI.templateStoryId = ADI.getParameterByName(‘templateStoryId’) || true;
var newUrl = location.href.replace(/&templateStoryId=[^&#]*|templateStoryId=[^&#]*&/, ”)
.replace(/templateSite=true(\/?)/, ”)
.replace(‘?&’, ‘?’).replace(‘&&’, ‘&’)
.replace(‘&#’, ‘#’).replace(‘?#’, ‘#’);
history.replaceState({}, ”, newUrl);
var loaderContainer = document.createElement(‘div’);
loaderContainer.id = ‘videoLoader’;
loaderContainer.style.cssText = ‘width: 100vw; height: 100vh; display: flex; justify-content: center; background: #fff;’;
loaderContainer.innerHTML += ‘‘;
document.body.appendChild(loaderContainer);
document.body.classList.add(‘loading-site’);
}
if (!ADI.siteId || window.location.href.indexOf(‘previewRevision=’) >= 0 || ADI.isTemplate) {
return;
}
var storyId = ADI.siteId[1] + ‘:’ + ADI.siteId[2];
var url = ‘/_api/onboarding-server-web/story/’ + storyId;
url += ‘?cacheKiller=’ + Date.now();
url += ‘&editorSessionId=5dbcca7a-79b6-4b84-ba93-41440820d526’;
ADI.storyCache = {};
ADI.storyCache[storyId] = $.get(url);
})(window);
(function (window) {
var resApi, res;
if (typeof Promise !== ‘undefined’) {
window.resApiLoaded = new Promise(function (resolve, reject) {
resApi = resolve;
});
window.signalApiLoaded = function() {
resApi && resApi();
};
window.headlessReady = new Promise(function (resolve, reject) {
res = resolve;
});
window.signalHeadlessReady = function() {
res && res();
};
}
})(window);
window.AnswersWidget = {
onLoaded: function(callback) {
window.AnswersWidget.queue.push(callback);
},
queue: [function() {
window.AnswersWidget.hide();
}],
};
ADI.clientTopology = {
production: ‘false’ !== ‘true’,
staticsVersion: ‘2.5036.0’,
staticsUrl: ‘https://static.parastorage.com/services/adi-web/2.5036.0/’,
staticBaseUrl: ‘https://static.parastorage.com/’,
experiments: ADI.getExperiments(),
siteMediaToken: (ADI.getMetadata() || {}).siteMediaToken,
isNewSite: !ADI.getMetadata(),
mediaUrl: ‘//static.wixstatic.com/media’,
videoUrl: ‘https://video.wixstatic.com/’,
filesBaseUrl: ‘//docs.wixstatic.com/’,
editorBaseUrl: ADI.fixOrigin(‘http://editor.wix.com’, false),
baseDomain: ‘wix.com’,
contentVersionNumber: ‘${contentVersionNumber}’,
esi: ‘5dbcca7a-79b6-4b84-ba93-41440820d526’,
isWixStaff: false,
isAnonymous: false,
hasSession: true,
isImpersonatedUser: false,
isTemplatesUser: false,
schedulerBaseUrl: ADI.fixOrigin(‘http://scheduler.wix.com’, false),
appsBaseUrl: ‘https://apps.wix.com’,
businessManagerBaseUrl: ADI.fixOrigin(‘https://manage.wix.com/dashboard’, false),
locale: ‘en’,
templateTranslationServerBaseUrl: ‘${clientTopology.templateTranslationUrl}’,
mediaGalleryUrl: ‘https://www.wix.com/_partials/media-gallery-g5/1.1361.0/’,
mediaManagerPartialsUrlG6: ‘https://www.wix.com/_partials/media-manager-g6/1.1864.0/’,
santaEditorStaticsUrl: ‘//static.parastorage.com/services/santa-editor/1.13164.0/’
};
angular.module(‘adiIntroReact’, []);
angular.module(‘siteGeneratorCommon’)
.constant(‘clientTopology’, ADI.clientTopology)
.constant(‘metaDataBaseUrl’, ADI.fixOrigin(‘//static.parastorage.com/services/site-generator-statics-metadata/1.1703.0/’, true))
.constant(‘metaDataUrl’, ‘//static.parastorage.com/services/site-generator-statics-metadata/1.1703.0/scripts’)
.constant(‘metaDataVersion’, ”);
ADI.lazyLoadCss = function(src) {
var flink = document.getElementsByTagName(‘link’)[0];
var link = document.createElement(‘link’);
link.rel=’stylesheet’
link.href = src;
flink.parentNode.insertBefore(link, flink);
};
ADI.lazyLoadCss(‘https://static.parastorage.com/services/adi-web/2.5036.0/third-parties-css.min.css’);
ADI.lazyLoadCss(‘https://static.parastorage.com/services/adi-web/2.5036.0/first-parties-js.min.css’);