/*!
 * Thorium Initialization for framework7 projects
 * Version 3.2.0 november, 2021
 * framework7 v6.x (https://framework7.io) MIT Licensed
 * Copyright 2018-2021 Thorium builder, All Rights Reserved.
*/
const kAppBuild= "#VERSION";
const kDebugMessagesLevel= #DEBUGLEVEL;
const kHybridAppsLog = true;
const kAutoUpdate=#AUTOUPDATE;
const kShowPreloader=#SHOWPRELOADER;
const kLocalRoot = "#LOCALROOT";
const kMediaRoot = './db/dbassets/';
const kRemoteHost="#REMOTEHOST";
const kTimeOut =#TIMEOUT;
const kCrossDomain =#CROSSDOMAIN;
const kAuthMode =#AUTHMODE;
const kWebShareApi =#USEWEBSHARE;
const kAutoClosePanels =#AUTOCLOSEPANEL;
const kDesktopAllowed =#DESKTOPALLOWED;
const kOneSignalAppId="#ONESIGNALAPPID";
#THEMEVAR
const kPhotoBrowserBackLinkText="#ZOOMBACKLINKTEXT";
const kPhotoBrowserTheme="#CBZOOMTHEME";
const kPhotoBrowserEffect="#ZOOMEFFECT";
const kPhotoBrowserAutoPlay="#AUTOPLAY";

const kForceInstall = #kForceInstall;
const kAddToHomeScreenIos = #kAddToHomeScreenIos;
const kAddToHomeScreenMd = #kAddToHomeScreenMd;
const kSkipButton=#kSkipButton;
const kSkipButtonText="#kSkipButtonText";
const kAddToHomeScreenTitle="#kAddToHomeScreenTitle";
const kAddToHomeScreenMdText="#kAddToHomeScreenMdText";
const kAddToHomeScreenIosText="#kAddToHomeScreenIosText";
const kImgMaxSize=10;
const kDocMaxSize=10;
const kMultilingual=#MULTILINGUAL;
const kDbHTMLRendering= #kDbHTMLRendering;
const kRatingIcon="star_fill";


/*-- Dates --*/
const kDateFormat="#kDateFormat"; //"mm.dd.yyyy";
const kDateTimeFormat="#kDateTimeFormat"; //"mm.dd.yyyy hh::mm a";
const kHours12=#kHours12;
var kdayNames=['sunday','monday','tuesday','wednesday','thursday','friday','saturday'];
var kdayNamesShort=['sun','mon','tue','wed','thu','fri','sat'];
var kmonthNames=['January','February','March','April','May','June','July','August','September','October','November','December'];
var kmonthNamesShort=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];

/*-- dbExpress --*/
const kDbExpressEcommerce = #kDbExpressEcommerce;
const kDbExpressSocial = #kDbExpressSocial;
const kDeliveryAmount="#kDbExpressDeliveryfees";
const kCurrencySymbol= "#kDbExpressCurrencysymbol";  
const kCurrencyLeftSide= #kDbExpressSymbolposition; 


/*-- dbExpress Additional Strings --*/
const kLogout="Logout";
const kEmailSent="A Message has been sent to your email address";

/*-- dbExpress API --*/
const kApiRoot="db/webservices/";
const kAuthManagerApi="thorium.auth.signin.php";
const kGetDataApi="thorium.data.get.php";
const kSetDataApi="thorium.data.set.php";
const kRegisterApi ="thorium.auth.register.php";
const kSetProfileApi ="thorium.auth.set.php";
const kGetProfileApi ="thorium.auth.get.php";
const kSetShoppingCartQtyApi ="thorium.cart.qty.php";
const kGetShoppingCartApi ="thorium.cart.get.php";
const kSetShoppingCartApi ="thorium.cart.set.php";
const kSetOrderApi ="thorium.order.set.php";
const kSignOutApi ="thorium.auth.signout.php";
const kDeleteDataApi ="thorium.data.delete.php";
const kClearShoppingCartApi ="thorium.cart.clear.php";
const kgetChatMessages="thorium.chat.get.php";
const ksetChatMessages="thorium.chat.set.php"; 
const kresetPassword="thorium.auth.resetpassword.php";


const kTextEditorButtons=[
    ['bold', 'italic', 'underline', 'strikeThrough'],
    ['alignLeft', 'alignCenter', 'alignRight'],
    ['indent', 'outdent'],
  ];

const kMode="#kMode"; //cors, no-cors, same-origin
const kCache="#kCache"; //default, no-cache, reload, force-cache, only-if-cached
const kCredentials="#kCredentials"; //include, same-origin, omit
const kContenttype="#kContenttype"; //application/json, application/x-www-form-urlencoded ...
const kRedirect="#kRedirect"; //manual, follow, error
const kReferrerpolicy="#kReferrerpolicy"; //no-referrer, no-referrer-when-downgrade, origin, origin-when-cross-origin, same-origin, strict-origin, strict-origin-when-cross-origin, unsafe-url
const kAuthorization="#kAuthorization"; //'Authorization': 'Basic xxxxx'


#FIREBASE

#ROUTES

#KEYPAD

var theme = 'auto';
if (document.location.search.indexOf('theme=') >= 0) {
    theme = document.location.search.split('theme=')[1].split('&')[0];
}


var app = new Framework7({
    "version": "1.0.0",
    "id": "#BUNDLEID",
    "root": "#app",
    "theme": theme,
    #AUTODARK
    "language": "#APPLANGUAGE",
    "routes": routes,
    "name": "#APPNAME",
    "initOnDeviceReady": true,
    "init": true,
    "iosTranslucentBars": true,
    "iosTranslucentModals": true,
    "touch": {
        "disableContextMenu": true,
        "tapHold": false,
        "tapHoldDelay": 2,
        "tapHoldPreventClicks": false,
        "activeState": true,
        "activeStateElements": "a, button, label, span, .actions-button",
        "materialRipple": true,
        "iosTouchRipple": false,
        "materialRippleElements": ".ripple, .link, .item-link, .links-list a, .button, button, .input-clear-button, .dialog-button, .tab-link, .item-radio, .item-checkbox, .actions-button, .searchbar-disable-button, .fab a, .checkbox, .radio, .data-table .sortable-cell, .notification-close-button"
    },
    "clicks": {
        "externalLinks": ".external"
    },
    "statusbar": {
        "enabled": "true",
        "overlay": "auto",
        "scrollTopOnClick": true,
        "iosOverlaysWebView": true,
        "iosTextColor": "black",
        "iosBackgroundColor": "white",
        "materialBackgroundColor": null
    },
    "view": {
        "main": true,
        "router": true,
        "reloadAll": true,
        "stackPages": true,
        "reloadPages": false,
        "reloadDetail": true,
        "keepAlive": false,
        "linksView": null,
        "xhrCache": true,
        "xhrCacheIgnore": [],
        "xhrCacheIgnoreGetParameters": false,
        "xhrCacheDuration": 600000,
        "preloadPreviousPage": true,
        "uniqueHistory": false,
        "uniqueHistoryIgnoreGetParameters": false,
        "allowDuplicateUrls": false,
        "removeElements": true,
        "removeElementsWithTimeout": false,
        "removeElementsTimeout": 0,
        "restoreScrollTopOnBack": true,
        "unloadTabContent": true,
        "iosSwipeBack": #SWIPEBACK,
        "iosSwipeBackAnimateShadow": true,
        "iosSwipeBackAnimateOpacity": false,
        "iosSwipeBackActiveArea": 30,
        "iosSwipeBackThreshold": 0,
        "pushState": false,
        "pushStateAnimate": true,
        "pushStateAnimateOnLoad": true,
        "pushStateSeparator": "#!",
        "pushStateOnLoad": false,
        "animate": true,
        "animateWithJS": false,
        "iosDynamicNavbar": false,
        "iosSeparateDynamicNavbar": true,
        "iosAnimateNavbarBackIcon": true,
        "iosPageLoadDelay": 0,
        "materialPageLoadDelay": 0
    },
    "navbar": {
        "scrollTopOnTitleClick": true,
        "iosCenterTitle": true,
        "hideOnPageScroll": false,
        "showOnPageScrollEnd": true,
        "showOnPageScrollTop": true
    },
    "toolbar": {
        "hideOnPageScroll": false,
        "showOnPageScrollEnd": true,
        "showOnPageScrollTop": true
    },
    "modal": {
        "moveToRoot": true,
        "queueDialogs": true
    },
    "dialog": {
        "buttonOk": "OK",
        "buttonCancel": "Cancel",
        "usernamePlaceholder": "Username",
        "passwordPlaceholder": "Password",
        "preloaderTitle": "Loading... ",
        "progressTitle": "Loading... ",
        "closeByBackdropClick": false
    },
    "popup": {
        "backdrop": true,
        "closeByBackdropClick": true
    },
    "popover": {
        "closeByBackdropClick": true,
        "closeByOutsideClick": true,
        "backdrop": true
    },
    "actions": {
        "convertToPopover": true,
        "forceToPopover": false,
        "closeByBackdropClick": true,
        "render": null,
        "renderPopover": null,
        "backdrop": true
    },
    "sheet": {
        "closeByBackdropClick": true,
        "closeByOutsideClick": false
    },
    "toast": {
        "icon": null,
        "text": null,
        "position": "bottom",
        "closeButton": false,
        "closeButtonColor": null,
        "closeButtonText": "Ok",
        "closeTimeout": null,
        "cssClass": null,
        "render": null
    },
    "sortable": false,
    "swipeout": {
        "actionsNoFold": false,
        "noFollow": false,
        "removeElements": true,
        "removeElementsWithTimeout": false,
        "removeElementsTimeout": 0
    },
    "panel": {
        "visibleBreakpoint": "0px",
        "resizable" : false,
        "collapsedBreakpoint": "0px",
        "swipeNoFollow": false,
        "swipeActiveArea": 0,
        "swipeOnlyClose": true,
        "swipeThreshold": 0,
        "backdrop" : true,
        "closeByBackdropClick": true
    },
    "input": {
        "scrollIntoViewOnFocus": false,
        "scrollIntoViewCentered": false
    },
    "smartSelect": {
        "openIn": "page",
        "pageBackLinkText": "#BACKLABEL",
        "popupCloseLinkText": "#CLOSELABEL",
        "sheetCloseLinkText": "#DONELABEL",
        "searchbar": false,
        "searchbarPlaceholder": "#SEARCHLABEL",
        "searchbarDisableText": "#CANCELLABEL",
        "closeOnSelect": false,
        "virtualList": false,
        "routableModals": true,
        "url": "select/"
    },
    "calendar": {
        "monthNames": [
            "January",
            "February",
            "March",
            "April",
            "May",
            "June",
            "July",
            "August",
            "September",
            "October",
            "November",
            "December"
        ],
        "monthNamesShort": [
            "Jan",
            "Feb",
            "Mar",
            "Apr",
            "May",
            "Jun",
            "Jul",
            "Aug",
            "Sep",
            "Oct",
            "Nov",
            "Dec"
        ],
        "dayNames": [
            "Sunday",
            "Monday",
            "Tuesday",
            "Wednesday",
            "Thursday",
            "Friday",
            "Saturday"
        ],
        "dayNamesShort": [
            "Sun",
            "Mon",
            "Tue",
            "Wed",
            "Thu",
            "Fri",
            "Sat"
        ],
        "firstDay": 1,
        "weekendDays": [
            0,
            6
        ],
        "multiple": false,
        "rangePicker": false,
        "dateFormat": kDateFormat,
        "direction": "horizontal",
        "minDate": null,
        "maxDate": null,
        "disabled": null,
        "events": null,
        "rangesClasses": null,
        "touchMove": true,
        "animate": true,
        "closeOnSelect": false,
        "monthSelector": true,
        "yearSelector": true,
        "weekHeader": true,
        "value": null,
        "containerEl": null,
        "openIn": "auto",
        "formatValue": null,
        "inputEl": null,
        "inputReadOnly": false,
        "closeByOutsideClick": true,
        "scrollToInput": true,
        "header": false,
        "headerPlaceholder": "Select date",
        "footer": false,
        "toolbar": true,
        "toolbarCloseText": "#DONELABEL",
        "cssClass": null,
        "routableModals": true,
        "view": null,
        "url": "date/",
        "renderWeekHeader": null,
        "renderMonths": null,
        "renderMonth": null,
        "renderMonthSelector": null,
        "renderYearSelector": null,
        "renderHeader": null,
        "renderFooter": null,
        "renderToolbar": null,
        "renderInline": null,
        "renderPopover": null,
        "renderSheet": null,
        "render": null
    },
    "picker": {
        "updateValuesOnMomentum": false,
        "updateValuesOnTouchmove": true,
        "rotateEffect": false,
        "momentumRatio": 7,
        "freeMode": false,
        "cols": [],
        "containerEl": null,
        "openIn": "auto",
        "formatValue": null,
        "inputEl": null,
        "inputReadOnly": true,
        "closeByOutsideClick": true,
        "scrollToInput": true,
        "toolbar": true,
        "toolbarCloseText": "#DONELABEL",
        "cssClass": null,
        "routableModals": true,
        "view": null,
        "url": "select/",
        "renderColumn": null,
        "renderToolbar": null,
        "renderInline": null,
        "renderPopover": null,
        "renderSheet": null,
        "render": null
    },
    "lazy": {
        "placeholder": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEXCwsK592mkAAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",
        "threshold": 0,
        "sequential": true
    },
    "photoBrowser": {
        "photos": [],
        "exposition": true,
        "expositionHideCaptions": false,
        "type": "standalone",
        "navbar": true,
        "toolbar": true,
        "theme": "light",
        "swipeToClose": true,
        "backLinkText": "#CLOSELABEL",
        "navbarOfText": "of",
        "url": "photos/",
        "routableModals": true,
        "virtualSlides": true,
        "swiper": {
            "initialSlide": 0,
            "spaceBetween": 20,
            "speed": 300,
            "loop": false,
            "preloadImages": true,
            "navigation": {
                "nextEl": ".photo-browser-next",
                "prevEl": ".photo-browser-prev"
            },
            "zoom": {
                "enabled": true,
                "maxRatio": 3,
                "minRatio": 1
            },
            "lazy": {
                "enabled": true
            }
        }
    },
    "notification": {
        "icon": null,
        "title": null,
        "titleRightText": null,
        "subtitle": null,
        "text": null,
        "closeButton": false,
        "closeTimeout": null,
        "closeOnClick": false,
        "swipeToClose": true,
        "cssClass": null,
        "render": null
    },
    "autocomplete": {
        "typeahead": false,
        "highlightMatches": true,
        "expandInput": false,
        "updateInputValueOnSelect": true,
        "multiple": false,
        "valueProperty": "id",
        "textProperty": "text",
        "openIn": "page",
        "pageBackLinkText": "#BACKLABEL",
        "popupCloseLinkText": "#CLOSELABEL",
        "searchbarPlaceholder": "#SEARCHLABEL...",
        "searchbarDisableText": "#CANCELLABEL",
        "animate": true,
        "autoFocus": false,
        "closeOnSelect": false,
        "notFoundText": "#NOTHINGFOUNDLABEL",
        "requestSourceOnOpen": false,
        "preloader": false,
        "routableModals": true,
        "url": "select"
    },
    textEditor: {
        buttons: [
            ['bold', 'italic', 'underline', 'strikeThrough'],
            ['orderedList', 'unorderedList'],
            ['link', 'image'],
            ['paragraph', 'h1', 'h2', 'h3'],
            ['alignLeft', 'alignCenter', 'alignRight', 'alignJustify'],
            ['subscript', 'superscript'],
            ['indent', 'outdent']
          ]
    },
    colors: {
        primary: '#2196f3',
        red: '#ff3b30',
        green: '#4cd964',
        blue: '#2196f3',
        pink: '#ff2d55',
        yellow: '#ffcc00',
        orange: '#ff9500',
        purple: '#9c27b0',
        deeppurple: '#673ab7',
        lightblue: '#5ac8fa',
        teal: '#009688',
        lime: '#cddc39',
        deeporange: '#ff6b22',
        white: '#ffffff',
        black: '#010101',
        gray: '#cccccc'
      },
    
});
