<commit_before>export const demoColumn = `<section class="column js-column will-animate"><div class="column-holder js-column-holder"><div class="flex flex-column height-p--100 column-panel"><header class="flex-shrink--0 column-header"><i class="pull-left icon column-type-icon icon-home"></i><div class="flex column-title flex-justify-content--space-between"><div class="flex column-header-title flex-align--center flex-grow--2 flex-wrap--wrap"><span class=column-heading>Home</span> <span class="txt-ellipsis attribution txt-mute txt-sub-antialiased vertical-align--baseline">@dangeredwolf</span></div></div></header><div class="flex flex-column height-p--100 mtd-example-column column-content flex-auto position-rel"><div class="position-rel column-scroller scroll-v"><div class="chirp-container js-chirp-container"><article class="is-actionable stream-item"><div class="item-box js-show-detail js-stream-item-content"><div class="js-tweet tweet"><header class="flex flex-align--baseline flex-row js-tweet-header tweet-header"><a class="account-link block flex-auto link-complex"><div class="position-rel item-img obj-left tweet-img"><img class="avatar pin-top-full-width tweet-avatar"src=https://pbs.twimg.com/profile_images/1134136444577091586/LBv0Nhjq_normal.png style=border-radius:10px!important></div><div class=nbfc><span class="txt-ellipsis account-inline"><b class="fullname link-complex-target">ModernDeck</b> <span class="txt-mute username">@ModernDeck</span></span></div></a><time class="txt-mute flex-shrink--0 tweet-timestamp"><a class="no-wrap txt-size-variable--12">now</a></time></header><div class="js-tweet-body tweet-body"><div class="txt-ellipsis nbfc txt-size-variable--12"></div><p class="js-tweet-text tweet-text with-linebreaks"style=padding-bottom:0>This tweet is quite light!</div></div><footer class="cf tweet-footer"><ul class="full-width js-tweet-actions tweet-actions"><li class="pull-left margin-r--10 tweet-action-item"><a class="position-rel tweet-action js-reply-action"href=# rel=reply><i class="pull-left icon txt-center icon-reply"></i> <span class="margin-t--1 pull-right txt-size--12 margin-l--2 icon-reply-toggle js-reply-count reply-count">1</span> <span class=is-vishidden>Reply</span> <span class=reply-triangle></span></a><li class="pull-left margin-r--10 tweet-action-item"><a class=tweet-action href=# rel=retweet><i class="pull-left icon txt-center icon-retweet icon-retweet-toggle js-icon-retweet"></i> <span class="margin-t--1 pull-right txt-size--12 icon-retweet-toggle js-retweet-count margin-l--3 retweet-count">4</span></a><li class="pull-left margin-r--10 tweet-action-item"><a class="position-rel tweet-action js-show-tip"href=# rel=favorite data-original-title=""><i class="pull-left icon txt-center icon-favorite icon-favorite-toggle js-icon-favorite"></i> <span class="margin-t--1 pull-right txt-size--12 margin-l--2 icon-favorite-toggle js-like-count like-count">20</span></a><li class="pull-left margin-r--10 tweet-action-item position-rel"><a class=tweet-action href=# rel=actionsMenu><i class="icon icon-more txt-right"></i></a></ul></footer><div class=js-show-this-thread></div></div></article></div></div></div></div><div class="flex flex-column height-p--100 column-panel column-detail js-column-detail"></div><div class="flex flex-column height-p--100 column-panel column-detail-level-2 js-column-social-proof"></div></div></section>`

import { isApp } from "./Utils.js";
import { I18n } from "./I18n.js";
import { getPref, setPref } from "./StoragePreferences.js";
import { settingsData } from "./DataSettings.js";


export let _welcomeData = {
	welcome: {
		title: "<i class='icon icon-moderndeck icon-xxlarge mtd-welcome-head-icon' style='color:var(--secondaryColor)'></i>" + I18n("Welcome to ModernDeck!"),
		body: I18n("We're glad to have you here. Click Next to continue."),
		nextFunc: () => {
			if (!isApp || html.hasClass("mtd-winstore") || html.hasClass("mtd-macappstore")) {
				return;
			}
			const {ipcRenderer} = require('electron');
			ipcRenderer.send('checkForUpdates');
		}
	},
	update: {
		title: I18n("Checking for updates..."),
		body: I18n("This should only take a few seconds."),
		html: "",
		enabled: false,
		nextText: I18n("Skip")
	},
	theme: {
		title: I18n("Pick a core theme"),
		body: I18n("There are additional options for themes in <i class='icon icon-settings'></i> <b>Settings</b>"),
		html: `<div class="obj-left mtd-welcome-theme-picker">
			<label class="fixed-width-label radio">
			<input type="radio" name="theme" onclick="parseActions(settingsData.themes.options.coretheme.activate,'dark');$('.mtd-welcome-inner .tweet-text').html('${I18n("This tweet is quite dark!")}')" value="dark">
				${I18n("Dark")}
			</label>
			<label class="fixed-width-label radio">
			<input type="radio" name="theme" onclick="parseActions(settingsData.themes.options.coretheme.activate,'light');$('.mtd-welcome-inner .tweet-text').html('${I18n("This tweet is quite light!")}')" value="light">
				${I18n("Light")}
			</label>
		</div>` + demoColumn,
		prevFunc: () => {
			if (!isApp || html.hasClass("mtd-winstore") || html.hasClass("mtd-macappstore")) {
				return;
			}
			const {ipcRenderer} = require('electron');
			ipcRenderer.send('checkForUpdates');
		},
		nextFunc: () => {
			let pos = getPref("mtd_headposition");
			if (pos === "top") {
				$("input[value='top']").click();
			} else if (pos === "classic") {
				$("input[value='classic']").click();
			} else {
				$("input[value='left']").click();
			}
		}
	},
	layout: {
		title: I18n("Select a layout"),
		body: I18n("<b>Top:</b> Your column icons are laid out along the top. Uses navigation drawer.<br>")+<commit_msg>Update DataWelcome.js<commit_after>export const demoColumn = `<section class="column js-column will-animate"><div class="column-holder js-column-holder"><div class="flex flex-column height-p--100 column-panel"><header class="flex-shrink--0 column-header"><i class="pull-left icon column-type-icon icon-home"></i><div class="flex column-title flex-justify-content--space-between"><div class="flex column-header-title flex-align--center flex-grow--2 flex-wrap--wrap"><span class=column-heading>Home</span> <span class="txt-ellipsis attribution txt-mute txt-sub-antialiased vertical-align--baseline">@dangeredwolf</span></div></div></header><div class="flex flex-column height-p--100 mtd-example-column column-content flex-auto position-rel"><div class="position-rel column-scroller scroll-v"><div class="chirp-container js-chirp-container"><article class="is-actionable stream-item"><div class="item-box js-show-detail js-stream-item-content"><div class="js-tweet tweet"><header class="flex flex-align--baseline flex-row js-tweet-header tweet-header"><a class="account-link block flex-auto link-complex"><div class="position-rel item-img obj-left tweet-img"><img class="avatar pin-top-full-width tweet-avatar"src=https://pbs.twimg.com/profile_images/1134136444577091586/LBv0Nhjq_normal.png style=border-radius:10px!important></div><div class=nbfc><span class="txt-ellipsis account-inline"><b class="fullname link-complex-target">ModernDeck</b> <span class="txt-mute username">@ModernDeck</span></span></div></a><time class="txt-mute flex-shrink--0 tweet-timestamp"><a class="no-wrap txt-size-variable--12">now</a></time></header><div class="js-tweet-body tweet-body"><div class="txt-ellipsis nbfc txt-size-variable--12"></div><p class="js-tweet-text tweet-text with-linebreaks"style=padding-bottom:0>This tweet is quite light!</div></div><footer class="cf tweet-footer"><ul class="full-width js-tweet-actions tweet-actions"><li class="pull-left margin-r--10 tweet-action-item"><a class="position-rel tweet-action js-reply-action"href=# rel=reply><i class="pull-left icon txt-center icon-reply"></i> <span class="margin-t--1 pull-right txt-size--12 margin-l--2 icon-reply-toggle js-reply-count reply-count">1</span> <span class=is-vishidden>Reply</span> <span class=reply-triangle></span></a><li class="pull-left margin-r--10 tweet-action-item"><a class=tweet-action href=# rel=retweet><i class="pull-left icon txt-center icon-retweet icon-retweet-toggle js-icon-retweet"></i> <span class="margin-t--1 pull-right txt-size--12 icon-retweet-toggle js-retweet-count margin-l--3 retweet-count">4</span></a><li class="pull-left margin-r--10 tweet-action-item"><a class="position-rel tweet-action js-show-tip"href=# rel=favorite data-original-title=""><i class="pull-left icon txt-center icon-favorite icon-favorite-toggle js-icon-favorite"></i> <span class="margin-t--1 pull-right txt-size--12 margin-l--2 icon-favorite-toggle js-like-count like-count">20</span></a><li class="pull-left margin-r--10 tweet-action-item position-rel"><a class=tweet-action href=# rel=actionsMenu><i class="icon icon-more txt-right"></i></a></ul></footer><div class=js-show-this-thread></div></div></article></div></div></div></div><div class="flex flex-column height-p--100 column-panel column-detail js-column-detail"></div><div class="flex flex-column height-p--100 column-panel column-detail-level-2 js-column-social-proof"></div></div></section>`

import { isApp } from "./Utils.js";
import { I18n } from "./I18n.js";
import { getPref, setPref } from "./StoragePreferences.js";
import { settingsData } from "./DataSettings.js";


export let _welcomeData = {
	welcome: {
		title: "<i class='icon icon-moderndeck icon-xxlarge mtd-welcome-head-icon' style='color:var(--secondaryColor)'></i>" + I18n("Welcome to ModernDeck!"),
		body: I18n("We're glad to have you here. Click Next to continue."),
		nextFunc: () => {
			if (!require || !isApp || html.hasClass("mtd-winstore") || html.hasClass("mtd-macappstore")) {
				return;
			}
			const {ipcRenderer} = require('electron');
			ipcRenderer.send('checkForUpdates');
		}
	},
	update: {
		title: I18n("Checking for updates..."),
		body: I18n("This should only take a few seconds."),
		html: "",
		enabled: false,
		nextText: I18n("Skip")
	},
	theme: {
		title: I18n("Pick a core theme"),
		body: I18n("There are additional options for themes in <i class='icon icon-settings'></i> <b>Settings</b>"),
		html: `<div class="obj-left mtd-welcome-theme-picker">
			<label class="fixed-width-label radio">
			<input type="radio" name="theme" onclick="parseActions(settingsData.themes.options.coretheme.activate,'dark');$('.mtd-welcome-inner .tweet-text').html('${I18n("This tweet is quite dark!")}')" value="dark">
				${I18n("Dark")}
			</label>
			<label class="fixed-width-label radio">
			<input type="radio" name="theme" onclick="parseActions(settingsData.themes.options.coretheme.activate,'light');$('.mtd-welcome-inner .tweet-text').html('${I18n("This tweet is quite light!")}')" value="light">
				${I18n("Light")}
			</label>
		</div>` + demoColumn,
		prevFunc: () => {
			if (!require || !isApp || html.hasClass("mtd-winstore") || html.hasClass("mtd-macappstore")) {
				return;
			}
			const {ipcRenderer} = require('electron');
			ipcRenderer.send('checkForUpdates');
		},
		nextFunc: () => {
			let pos = getPref("mtd_headposition");
			if (pos === "top") {
				$("input[value='top']").click();
			} else if (pos === "classic") {
				$("input[value='classic']").click();
			} else {
				$("input[value='left']").click();
			}
		}
	},
	layout: {
		title: I18n("Select a layout"),
		body: I18n("<b>Top:</b> Your column icons are laid out along the top. Uses navigation drawer.<br>")+
{'fraction_non_alphanumeric': 0.19766420793818054, 'fraction_numerical': 0.01703547593958553, 'mean_word_length': 5.220098306936101, 'pattern_counts': {'":': 0, '<': 225, '<?xml version=': 0, '>': 231, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7513915', 'n_tokens_mistral': 4066, 'n_tokens_neox': 3718, 'n_words': 714}