From 5cea931aee7b8830d61cb1d211fe41e52f0d93c8 Mon Sep 17 00:00:00 2001
From: Bashar
Date: Tue, 1 Oct 2024 01:06:46 +0300
Subject: [PATCH] add ability to change titlebar text
---
package.json | 2 +-
pluginTester/scripts/framework/app.min.js | 14 +++++++-------
pluginTester/scripts/framework/web.min.js | 12 ++++++------
pluginTester/styles/appStyle.css | 14 ++++++++++++--
scripts/_bundles/buildfire_lightcarousel.min.js | 2 +-
.../_bundles/buildfire_lightcarousel.min.js.map | 2 +-
.../jquery_angular_buildfire_smartcrop.min.js | 2 +-
.../jquery_angular_buildfire_smartcrop.min.js.map | 2 +-
scripts/buildfire.js | 4 ++++
scripts/buildfire.min.js | 2 +-
scripts/buildfire.min.js.map | 2 +-
11 files changed, 36 insertions(+), 22 deletions(-)
diff --git a/package.json b/package.json
index 1e00de09..286c0ca9 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "BuildFireSDK",
- "version": "1.103.1",
+ "version": "1.104.0",
"description": "This SDK helps in building BuildFire Plugins",
"main": "index.js",
"scripts": {
diff --git a/pluginTester/scripts/framework/app.min.js b/pluginTester/scripts/framework/app.min.js
index f960a92d..b4251450 100755
--- a/pluginTester/scripts/framework/app.min.js
+++ b/pluginTester/scripts/framework/app.min.js
@@ -5,7 +5,7 @@
"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(l){function u(t,e){if(e=e||{},(t=t||"")instanceof u)return t;if(!(this instanceof u))return new u(t,e);var r,n,i,a,o,s,f,h,i=(n={r:0,g:0,b:0},s=o=a=null,h=f=!(i=1),"object"==_typeof(r="string"==typeof(r=t)?function(t){t=t.replace(F,"").replace(C,"").toLowerCase();var e,r=!1;if(j[t])t=j[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=P.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=P.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=P.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=P.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=P.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=P.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=P.hex8.exec(t))?{r:x(e[1]),g:x(e[2]),b:x(e[3]),a:H(e[4]),format:r?"name":"hex8"}:(e=P.hex6.exec(t))?{r:x(e[1]),g:x(e[2]),b:x(e[3]),format:r?"name":"hex"}:(e=P.hex4.exec(t))?{r:x(e[1]+""+e[1]),g:x(e[2]+""+e[2]),b:x(e[3]+""+e[3]),a:H(e[4]+""+e[4]),format:r?"name":"hex8"}:!!(e=P.hex3.exec(t))&&{r:x(e[1]+""+e[1]),g:x(e[2]+""+e[2]),b:x(e[3]+""+e[3]),format:r?"name":"hex"}}(r):r)&&(R(r.r)&&R(r.g)&&R(r.b)?(n=function(t,e,r){return{r:255*v(t,255),g:255*v(e,255),b:255*v(r,255)}}(r.r,r.g,r.b),f=!0,h="%"===String(r.r).substr(-1)?"prgb":"rgb"):R(r.h)&&R(r.s)&&R(r.v)?(a=w(r.s),o=w(r.v),n=function(t,e,r){t=6*v(t,360),e=v(e,100),r=v(r,100);var n=l.floor(t),i=t-n,a=r*(1-e),t=r*(1-i*e),e=r*(1-(1-i)*e),n=n%6;return{r:255*[r,t,a,a,e,r][n],g:255*[e,r,r,t,a,a][n],b:255*[a,a,e,r,r,t][n]}}(r.h,a,o),f=!0,h="hsv"):R(r.h)&&R(r.s)&&R(r.l)&&(a=w(r.s),s=w(r.l),n=function(t,e,r){function n(t,e,r){return r<0&&(r+=1),1>1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(u(n));return a}function m(t,e){e=e||6;for(var t=u(t).toHsv(),r=t.h,n=t.s,i=t.v,a=[],o=1/e;e--;)a.push(u({h:r,s:n,v:i})),i=(i+o)%1;return a}function y(t){return t=parseFloat(t),t=isNaN(t)||t<0||1e.length)&&(t=e.length);for(var n=0,i=new Array(t);ne.length)&&(t=e.length);for(var n=0,i=new Array(t);nr.length)&&(t=r.length);for(var a=0,e=new Array(t);al.settings.maxAgeRequired?this.error=l.options.errorMessages.maxAge+" "+l.settings.maxAgeRequired:l.settings.minAgeIsRequired&&l.settings.minAgeRequired&&ef.settings.maxNumRequired&&f.settings.maxNumEnabled?this.error=f.options.errorMessages.maxNum+" "+f.settings.maxNumRequired:ee.maxLength&&(e.value=e.value.substring(0,e.maxLength))},editVisibilityOptions:function(e,s){var t=new ComponentUIAPI;t.openDrawer({header:e.field.label,listItems:[{text:"Public"},{text:"Private"}],enableFilter:!1},function(e,i){return e?console.error(e):(i&&s(null,i),void t.closeDrawer())})}};function gm_authFailure(){customRegistration.googleMapServices.checkMapsApiKeyErrors&&(customRegistration.googleMapServices.mapsApiKeyError="There seems to be an issue with google maps key")}
"use strict";function _readOnlyError(e){throw new TypeError('"'+e+'" is read-only')}function ownKeys(t,e){var n,a=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,n)),a}function _objectSpread(t){for(var e=1;e=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,p=!0,r=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return p=e.done,e},e:function(e){r=!0,o=e},f:function(){try{p||null==n.return||n.return()}finally{if(r)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,p=!0,r=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return p=e.done,e},e:function(e){r=!0,o=e},f:function(){try{p||null==n.return||n.return()}finally{if(r)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,n=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){n=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(n)throw i}}}}function _unsupportedIterableToArray(e,a){if(e){if("string"==typeof e)return _arrayLikeToArray(e,a);var t=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(t="Object"===t&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,a):void 0}}function _arrayLikeToArray(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,r=new Array(a);tthis.audio.duration?this.audio.currentTime=this.audio.duration:this.audio.currentTime+=e,this.triggerOnEvent("skip",e))},pause:function(e){(this._isPlaying()||e&&e.forcePause)&&(audioPlayer.audio.pause(),audioPlayer._allowPlay=!0)},isPaused:function(e,a){a&&a(null,audioPlayer.audio.paused)},_isAwaitingPlay:function(){return!this.audio.paused&&0===this.audio.readyState&&!this.audio.error},_isPlaying:function(){return this.audio&&0=audioPlayer.playlist.tracks.length){if(!audioPlayer.settings.loopPlaylist||!audioPlayer.playlist.tracks.length)return audioPlayer.playlist.lastIndex=audioPlayer.playlist.tracks.length-1,null;audioPlayer.playlist.lastIndex=0}return e=audioPlayer.playlist.tracks[audioPlayer.playlist.lastIndex],audioPlayer.save(),audioPlayer.triggerOnEvent("next",{index:audioPlayer.playlist.lastIndex,track:e}),e&&audioPlayer.play(e),e},previous:function(){var e;if(audioPlayer.settings.shufflePlaylist?audioPlayer.playlist.lastIndex=Math.round((audioPlayer.playlist.tracks.length-1)*Math.random()):audioPlayer.playlist.lastIndex--,audioPlayer.playlist.lastIndex<0){if(!audioPlayer.settings.loopPlaylist||!audioPlayer.playlist.tracks.length)return audioPlayer.playlist.lastIndex=0,null;audioPlayer.playlist.lastIndex=audioPlayer.playlist.tracks.length-1}return e=audioPlayer.playlist.tracks[audioPlayer.playlist.lastIndex],audioPlayer.save(),audioPlayer.triggerOnEvent("previous",{index:audioPlayer.playlist.lastIndex,track:e}),e&&audioPlayer.play(e),e},removeFromPlaylist:function(e){var a;e<0||e>=audioPlayer.playlist.tracks.length||(a=audioPlayer.playlist.tracks.splice(e,1),e==audioPlayer.playlist.lastIndex?audioPlayer.playlist.lastIndex=-1:e".concat(e.value,"")}),e.emails&&e.emails.forEach(function(e){a.secondaryText+="".concat(e.value,"
")}),a.text&&(i.push(a),a={})});o.openDrawer({header:n.header||" ",content:n.content||"",listItems:i,multiSelection:!0,multiSelectionActionButton:{text:n.drawerButtonText||"Import",type:n.drawerButtonType||"success"},enableFilter:!0},function(e,n){n&&n.forEach(function(e){delete e.text,delete e.secondaryText,delete e.imageUrl}),t(e,n)})},function(e){t(e,null)},e)):t("Contacts plugin is not integrated or not working properly",null)},showDialog:function(e,n){var t=this;permissionRequestsAPI.queueRequest("contacts",this,function(){t._showDialog(e,n)})},_showDialog:function(e,t){navigator.contacts&&navigator.contacts.pickContact?navigator.contacts.pickContact(function(e){var n={};n.name=e.displayName||e.name.formatted||e.nickname||"".concat(e.name.givenName||""," ").concat(e.name.familyName||""),n.emails=e.emails||[],n.photos=e.photos||[],n.phoneNumbers=e.phoneNumbers||[],t(null,n)},function(e){t(e,null)}):t("Contacts plugin is not integrated or not working properly",null)}}};document.addEventListener("deviceready",function(){window.open=function(e,n,t){var o,i="_blank"===n,n=bridge.InAppBrowser.open(e,n,t),t=n&&n.channels&&n.channels.close;return i&&t&&((o=document.getElementById("webviewBackdrop"))&&(o.querySelector("#removeBackdropBtn").addEventListener("click",function(){a()}),o.classList.remove("hide")),n&&n.addEventListener("close",function(){a()}),n&&n.addEventListener("exit",function(){a()})),n;function a(){var e=document.getElementById("webviewBackdrop");e&&!e.classList.contains("hide")&&(e.classList.add("closing"),setTimeout(function(){e.classList.replace("closing","hide")},250))}},"undefined"!=typeof bridge&&bridge.capabilities&&bridge.capabilities.backgroundMode&&bridge.capabilities.backgroundMode.enable&&bridge.capabilities.backgroundMode.setDefaults({title:"App is running in background",text:""}),"undefined"!=typeof CdvPurchase&&(window.store=CdvPurchase.store)});
+"use strict";function PluginInstanceAPI(t){this.templateUrl="pages/plugins/pluginInstanceDialog/pluginInstanceDialog.html",this.controller="pluginInstanceDialog",this.appId=t.appId,this.liveMode=t.liveMode,this.appHost=window.siteConfig.endPoints.appHost;t=JSON.parse(JSON.stringify(t));t.pluginId="pluginInstances",t.instanceId=1,this.ds=new DatastoreAPI(t)}PluginInstanceAPI.prototype={showDialog:function(t,n){window.openDialog?(t={templateUrl:this.templateUrl,controller:this.controller,size:"lg",data:t},window.openDialog(t,function(t){n&&n(null,t)})):console.error("openDialog isnt defined")},get:function(t,i){var n={};n.obj={filter:{"$json.instanceId":t},pageSize:1,withDynamicData:!0},this.ds.search(n,function(t,n){t?i(t,null):n&&n.length?i(null,n[0].data):i(null)})},_createReadUrl:function(){return this.appHost+"/api/appPluginInstances/getByIds/"+this.appId},_httpGet:function(t,n,i){bfUtils.http.get(t,{params:n}).success(function(t){i(null,t)}).error(function(t){i(t)})},search:function(t,n){var i;(t.title||t.instanceIds)&&(i={}),t.title&&(i["$json.title"]={$regex:t.title,$options:"i"}),t.instanceIds&&(i["$json.instanceId"]={$in:t.instanceIds});t={obj:{filter:i,page:t.pageIndex,pageSize:t.pageSize,withDynamicData:!0,recordCount:!0},tag:""};this.ds.search(t,n)}};
+"use strict";var deviceAPI={calendar:{addEvent:function(u,n){permissionRequestsAPI.queueRequest("calendar",this,function(){var s;function e(){function a(e){n(null,e)}function r(e){n(e)}function c(e,n){function t(e){n(null,e)}function o(e){n(e)}var i;u.startDate instanceof Date||(u.startDate=new Date(u.startDate)),u.endDate instanceof Date||(u.endDate=new Date(u.endDate)),e&&(u.options=u.options||{},u.options=Object.assign(u.options,e)),u.options?(i={},(i=s.getCalendarOptions()).calendarId=null!==(e=null===(e=u.options)||void 0===e?void 0:e.calendarId)&&void 0!==e?e:null,i.firstReminderMinutes=u.options.firstReminderMinutes||i.firstReminderMinutes,i.secondReminderMinutes=u.options.secondReminderMinutes||i.secondReminderMinutes,i.recurrence=u.options.recurrence||i.recurrence,u.options.recurrenceEndDate&&(i.recurrenceEndDate=new Date(u.options.recurrenceEndDate)),s.createEventWithOptions(u.title,u.location,u.notes,u.startDate,u.endDate,i,t,o)):s.createEvent(u.title,u.location,u.notes,u.startDate,u.endDate,t,o)}bfUtils.isAndroid?s.listCalendars(function(e){var o=[];e&&0".concat(e.value,"")}),e.emails&&e.emails.forEach(function(e){o.secondaryText+="".concat(e.value,"
")}),o.text&&(i&&i.exclude&&i.exclude.terms&&0=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n".concat(t,"
"),showDismissButton:!1,forceShow:!0,action:{title:e.dismissBtn||"OK",handler:function(){}}}))}),authAPI.logout(),o(null,null)):1309===e.error.code?authAPI.logout():(console.error(e.error),o(e.error,null)):o(null,e.result):o(null,null)}).error(function(e,t,n,s){console.error(e),o(e,null)})},login:function(e,n){var t=this.getCurrentUser();t?(n&&n(null,t),authAPI.triggerOnLogin(t)):(t=function(){authAPI.authCtrlScope.loginOptions=e,authAPI.authCtrlScope.showLogin(function(e,t){!e&&t&&(authAPI._setCurrentUser(t),authAPI.session.start(),authAPI.triggerOnLogin(t),authAPI._checkGDPR(t),authAPI.checkForceUpdate({user:t}),authAPI.authCtrlScope.hideLogin(),authAPI.authCtrlScope.$$phase||authAPI.authCtrlScope.$apply()),n&&n(e,t)}),authAPI.authCtrlScope.$$phase||authAPI.authCtrlScope.$apply()},authAPI.authCtrlScope?t():setTimeout(t,250))},_setCurrentUser:function(e){window.appContext&&window.appContext.currentApp&&window.appContext.currentApp.appId&&(e?localStorage.setItem(window.appContext.currentApp.appId+"-AUTH_CURRENT_USER",JSON.stringify(e)):localStorage.removeItem(window.appContext.currentApp.appId+"-AUTH_CURRENT_USER"))},secondaryUserLookup:function(){return null},getCurrentUser:function(e,t){"function"==typeof e&&(t=e);e=this.secondaryUserLookup();if(e||window.appContext&&window.appContext.currentApp&&window.appContext.currentApp.appId&&(e=localStorage.getItem(window.appContext.currentApp.appId+"-AUTH_CURRENT_USER"),e=JSON.parse(e)),e&&e.userToken||(e=null),!t)return e;t(null,e)},_checkGDPR:function(t){t&&termsAPI.getKeys(function(e,n){if(e)return console.error(e);e=siteConfig.endPoints.crmHost+"/documents/"+n.join(",")+"/check?userKey="+encodeURIComponent(t.email||t.username);(bfUtils.isAppHtml5Version||bfUtils.isMobileDevice||bfUtils.isPwaAndroid||bfUtils.isHtml5iOS)&&window.appContext&&1==window.appContext.liveMode&&bfUtils.http.get(e).success(function(e){if(e)for(var t=0;t00:10",showDismissButton:!1,forceShow:!0,action:{title:e.continueBtn||"CONTINUE",handler:function(){}}}),setTimeout(function(){var t=10,n=setInterval(function(){var e;document.getElementById("alertDialog")?(e=10".concat(t,""),showDismissButton:!1,forceShow:!0,action:{title:e.dismissBtn||"OK",handler:function(){}}}))},fakeKickedOutDialog:function(e){var t=document.getElementById("kickedOutDialog");richModal.isVisible()&&!t&&richModal.clearAll(),t?(document.getElementById("modalTitle").innerText=e.title,document.getElementsByClassName("action-button")[0].innerText=e.dismissBtn,t.innerText=e.content):(t=e.content||"Please login again to continue",richModal.display({title:e.title||"You've been kicked out of your session",richContent:"".concat(t,"
"),showDismissButton:!1,forceShow:!0,action:{title:e.dismissBtn||"OK",handler:function(){}}}))},session:{sessionExpires:!1,idleTimeSeconds:null,lastIdleTimeUpdateOn:null,stopWatchInterval:null,updateIdleTimeInterval:null,init:function(){authAPI.getAuthSettings(null,function(e,t){var n,s;function o(){s||(s=!0,setTimeout(function(){s=!1},1e3),setTimeout(n))}!e&&t&&!bfUtils.isEmulatorCP&&bfUtils.isApp&&t.data&&t.data.sessionSettings&&(t.data.sessionSettings.expireWhenIdleFor&&t.data.sessionSettings.expireWhenIdleFor.isActive||t.data.sessionSettings.expireWhenAppClose)&&(authAPI.getCurrentUser()&&authAPI.logout(),authAPI.session.sessionExpires=t.data.sessionSettings.expireWhenIdleFor&&t.data.sessionSettings.expireWhenIdleFor.isActive,n=function(){null===authAPI.session.stopWatchInterval&&authAPI.session._resetIdleTime()},document.addEventListener("sessionActivity",n,!1),s=!1,document.addEventListener("click",o),document.addEventListener("touchstart",o))})},start:function(){authAPI.getAuthSettings(null,function(e,t){var n,s,o,r,i,a;e?console.error(e):!bfUtils.isEmulatorCP&&bfUtils.isApp&&t&&t.data&&t.data.sessionSettings&&t.data.sessionSettings.expireWhenIdleFor&&t.data.sessionSettings.expireWhenIdleFor.isActive&&(n=60*t.data.sessionSettings.expireWhenIdleFor.timeInMinutes,s=t.data.sessionSettings.expireWhenIdleFor.showTimeoutDialog,o=t.data.sessionSettings.expireWhenIdleFor.alertDialogOptions||{},r=t.data.sessionSettings.expireWhenIdleFor.expiredDialogOptions||{},i=!1,authAPI.session.lastIdleTimeUpdateOn=new Date,authAPI.session.idleTimeSeconds=0,a=function(){var e=r.content||"Please login again to continue";richModal.display({title:r.title||"Your session is expired due to inactivity",richContent:"".concat(e,"
"),showDismissButton:!1,action:{title:r.dismissBtn||"OK",handler:function(){}}})},authAPI.session.updateIdleTimeInterval=setInterval(function(){var e,t=new Date;authAPI.session.idleTimeSeconds+=(t.getTime()-authAPI.session.lastIdleTimeUpdateOn.getTime())/1e3,authAPI.session.lastIdleTimeUpdateOn=t,authAPI.session.idleTimeSeconds>5+n&&(console.error("abnormally forced logout"),authAPI.session._clean(),authAPI.logout()),s&&!i&&authAPI.session.idleTimeSeconds>n-60?(i=!0,e=0,richModal.isVisible()&&(e=1e3,richModal.clearAll()),richModal.display({title:o.title||"Your session is about to expire",richContent:"01:00
",showDismissButton:!1,action:{title:o.continueBtn||"CONTINUE",handler:function(){i=!1,authAPI.session._resetIdleTime(),console.log("login session extended - continue")}}}),setTimeout(function(){var n=(new Date).getTime()/1e3+60;authAPI.session.stopWatchInterval=setInterval(function(){var e,t;document.getElementById("logout-timer")?(t=9<(e=Math.round(n-(new Date).getTime()/1e3))?e:"0".concat(e),document.getElementById("logout-timer").innerText="00:".concat(t),e<=0&&(i=!1,authAPI.session._clean(),richModal.close(),setTimeout(function(){a(),authAPI.logout()},1e3),console.log("login session terminated - continue"))):(i=!1,authAPI.session._resetIdleTime(),console.log("login session extended - closed"))},1e3)},e)):!s&&authAPI.session.idleTimeSeconds>n&&(a(),console.log("login session terminated without warning"),authAPI.session._clean(),authAPI.logout())},3e3))})},end:function(){authAPI.session._clean()},_clean:function(){authAPI.session.stopWatchInterval&&(clearInterval(authAPI.session.stopWatchInterval),authAPI.session.stopWatchInterval=null),authAPI.session.updateIdleTimeInterval&&(clearInterval(authAPI.session.updateIdleTimeInterval),authAPI.session.updateIdleTimeInterval=null),authAPI.session.idleTimeSeconds=0},_resetIdleTime:function(){authAPI.session.idleTimeSeconds=0,authAPI.session.stopWatchInterval&&(clearInterval(authAPI.session.stopWatchInterval),authAPI.session.stopWatchInterval=null)}},changePassword:function(e,o){var t={},n=authAPI.getCurrentUser();if(!(window.appContext&&window.appContext.currentApp&&window.appContext.currentApp.appId&&n))return console.error("Error",{code:"MissedData",message:"Missed context's data"}),o({code:"MissedData",message:"Missed context's data"},null);t={appId:window.appContext.currentApp.appId,accessToken:n.accessToken,currentPassword:e.oldPassword,newPassword:e.newPassword,passwordStrength:e.passwordStrength},window.bfUtils.http.post(window.siteConfig.endPoints.appHost+"/api/auth/user/changePassword",t,{headers:{"Content-Type":"application/json"}}).success(function(e){n.accessToken=e.accessToken,authAPI._setCurrentUser(n),o(null,null)}).error(function(e,t,n,s){o(e,null),console.error("Error",e,t)})},validateProfileImage:function(e){var t=e.file,n=e.type;if(!t)return!1;if(t.type&&["image/jpeg","image/png","image/jpg"].indexOf(t.type)<0)return e.stringResource.getData().then(function(e){e={forceShow:!0,richContent:''.concat(e["coverPhoto"===n?"coverImageTypeInvalid":"profileImageTypeInvalid"]||("coverPhoto"===n?"Cover":"Profile")+" photo does not support this file type.","
"),dismissButtonText:"OK"};richModal.display(e)}),!1;return!(t.size&&1e7'.concat(e["coverPhoto"===n?"coverPhotoLess10mb":"profilePhotoLess10mb"]||("coverPhoto"===n?"Cover":"Profile")+" photo must be less than 10mb.",""),dismissButtonText:"OK"};richModal.display(e)}),!1)},uploadProfileImage:function(e,o){var t,n=authAPI.getCurrentUser();n?(t=window.siteConfig.endPoints.authHost+"/src/server.js?method=users/uploadImage",e.file?e.uploader.upload({url:t,data:{file:e.file,userToken:n.userToken,externalAppId:window.currentAppId}}).progress(function(e){e=parseInt(100*e.loaded/e.total);console.log("progress: "+e+"%")}).success(function(e,t,n,s){console.log("file "+s.data.file.name+" uploaded."),o&&o(null,e)}).error(function(e){o&&o(e,null)}):o&&o(null,null)):o&&o("Invalid user",null)},checkForceUpdate:function(n,e){var s;!bfUtils.isEmulatorCP&&bfUtils.isApp&&(s=!1,AppearanceAPI.prototype.getAppearance(null,function(e,t){return e?console.error(e):void(t&&t.customRegistration&&t.customRegistration.active&&t.customRegistration.singlePage&&t.customRegistration.singlePage.formControls&&(t.customRegistration.singlePage.formControls.forEach(function(t){var e;if(t.active&&t.settings.required&&"registrationOnly"!==t.settings.displayOn&&!1!==t.settings.allowEditingInProfile)if("custom"!==t.type)switch(t.id){case"fullName":(t.settings.displayNameEnabled&&!n.user.displayName||t.settings.firstNameEnabled&&!n.user.firstName||t.settings.lastNameEnabled&&!n.user.lastName)&&(s=!0);break;case"address":(!t.settings.showFullAddress||n.user.userProfile&&n.user.userProfile.address&&n.user.userProfile.address.fullAddress)&&(!t.settings.showFullAddress||!t.settings.showAptNo||n.user.userProfile&&n.user.userProfile.address&&n.user.userProfile.address.customFields&&n.user.userProfile.address.customFields.aptNo)&&(!t.settings.showZipCode||n.user.userProfile&&n.user.userProfile.address&&n.user.userProfile.address.customFields&&n.user.userProfile.address.customFields.zipCode)||(s=!0);break;case"bio":n.user.userProfile&&n.user.userProfile.bio||(s=!0);break;case"telephone":n.user.userProfile&&n.user.userProfile.tel||(s=!0);break;case"birthDate":n.user.userProfile&&n.user.userProfile.birthDate||(s=!0);break;case"profilePicture":n.user.imageUrl||(s=!0)}else"custom"===t.type&&(n.user.userProfile&&n.user.userProfile.customTypeFields&&((e=n.user.userProfile.customTypeFields.find(function(e){return e.id===t.id}))&&e.value||e&&e.values&&0Always in the in the Location Services ".concat(BackgroundGeolocation.ignoreMotionAndFitnessAuthorization?"":"and Motion & Fitness permission"," in settings?"),isMessageHTML:!0,showCancelButton:!1,forceAction:!0,actionButtons:[{text:"Later",type:"primary"},{text:"Open Settings",type:"primary"},{text:"Yes",type:"primary"}]},function(e,s){e&&console.warn("error showing dialog: ",e),s&&s.selectedButton&&("Open Settings"==s.selectedButton.text&&bridge.capabilities.diagnostic.switchToSettings(),s&&"Yes"==s.selectedButton.text&&localStorage.removeItem("showFitnessPermissionDialogFlag"),s&&"Later"==s.selectedButton.text&&(geoAPI._fitnessPermissionLaterFlag=!0))})}(!geoAPI._alwaysPermissionShownTimestamp||1e4<=Date.now()-geoAPI._alwaysPermissionShownTimestamp)&&(bfUtils.isIOS||bfUtils.isAndroid&&10<=bfUtils.osVersion)&&(geoAPI._alwaysPermissionShownTimestamp=Date.now(),bridge.capabilities&&bridge.capabilities.diagnostic?bridge.capabilities.diagnostic.getLocationAuthorizationStatus(function(e){var s,n;console.log("[INFO] BackgroundGeolocation authorization diagnostic status: ".concat(e)),e==bridge.capabilities.diagnostic.permissionStatus.NOT_REQUESTED||e==bridge.capabilities.diagnostic.permissionStatus.NOT_DETERMINED?setTimeout(function(){o()},15e3):e==bridge.capabilities.diagnostic.permissionStatus.GRANTED_WHEN_IN_USE?(s=new DialogAPI,n="To use background location, you must enable Always in the in the Location Services settings.",bfUtils.isIOS&&!BackgroundGeolocation.ignoreMotionAndFitnessAuthorization&&(n="To use background location, you must enable Always in the in the Location Services settings. Also, ensure that the Motion & Fitness permission is enabled."),s.show({title:"Location Permission",message:n,isMessageHTML:!0,showCancelButton:!0,forceAction:!0,actionButtons:[{text:"Open Settings",type:"primary"}]},function(e,s){e&&console.warn("error showing dialog: ",e),s&&s.selectedButton&&"Open Settings"==s.selectedButton.text&&(bfUtils.isIOS&&(localStorage.setItem("showFitnessPermissionDialogFlag",!0),setTimeout(function(){i()},1e3)),bridge.capabilities.diagnostic.switchToSettings())})):e==bridge.capabilities.diagnostic.permissionStatus.GRANTED&&(geoAPI._isAlwaysGranted=!0,bfUtils.isIOS&&(!geoAPI._fitnessPermissionShownTimestamp||15e3<=Date.now()-geoAPI._fitnessPermissionShownTimestamp)&&(geoAPI._fitnessPermissionShownTimestamp=Date.now(),setTimeout(function(){geoAPI._gotPositionWhileAlwaysGranted||localStorage.getItem("showFitnessPermissionDialogFlag")&&!geoAPI._fitnessPermissionLaterFlag&&i()},1e4)))},function(e){console.warn("diagnostic location authorization status error",e)}):console.warn("Diagnostic plugin not available"))},setTimeout(function(){e()},1e3),BackgroundGeolocation.on("location",a),BackgroundGeolocation.on("error",r),BackgroundGeolocation.on("authorization",function(e){console.log("[INFO] BackgroundGeolocation authorization status: "+e)}),BackgroundGeolocation.checkStatus(function(e){console.log("[INFO] BackgroundGeolocation service is running",e.isRunning),console.log("[INFO] BackgroundGeolocation services enabled",e.locationServicesEnabled),console.log("[INFO] BackgroundGeolocation auth status: "+e.authorization),e.authorization?e.isRunning||bfUtils.isAndroid&&13<=bfUtils.osVersion||(BackgroundGeolocation.start(),c()):n()})):(i="backgroundLocation",backgroundGeolocation.configure(a,r,{desiredAccuracy:0,stationaryRadius:1,distanceFilter:1,interval:1e3,locationProvider:backgroundGeolocation.provider.ANDROID_ACTIVITY_PROVIDER}),backgroundGeolocation.start(),c())):n()})):n()):(console.log("HTML5 position"),i=setInterval(function(){geoAPI.getCurrentPosition(s,function(e,s){e?l(e):u(s,"HTML5")})},s&&s.timeout?s.timeout:5e3)),o())},_log:function(s){setTimeout(function(){var e;"undefined"!=typeof loggerAPI&&(e={level:s.error?"error":"info",message:s.message,context:s.data,tags:["app","tracker"],exception:s.error},loggerAPI.log(e),console.log("logging "+s.message,{data:s.data,error:s.error})),bfUtils.traceDevice({message:s.message+JSON.stringify(s.data)})})},clearWatch:function(e,s){"BackgroundLocation"===e?BackgroundGeolocation.stop():"backgroundLocation"===e?backgroundGeolocation.stop():navigator.geolocation&&navigator.geolocation.watchPosition?navigator.geolocation.clearWatch(e):clearInterval(e),s&&s()},isEnabled:function(e,s){BackgroundGeolocation.checkStatus(function(e){return s(null,e.locationServicesEnabled)})},_updateLastKnownLocation:function(t,a){authAPI.getCurrentUser(function(e,s){var n;if(e)return a("error getting user",null);if(!s)return a("user not logged in",null);geoAPI.session._lastTracked=geoAPI.session._lastTracked||{},geoAPI.session._lastTracked[s.accessToken]=geoAPI.session._lastTracked[s.accessToken]||{};var o=null,o=null!==(e=t.position.coords)&&void 0!==e&&e.longitude&&null!==(n=t.position.coords)&&void 0!==n&&n.latitude?[t.position.coords.longitude,t.position.coords.latitude]:[null,null];if(geoAPI.session._lastTracked[s.accessToken][t.source]&&geoAPI.session._lastTracked[s.accessToken][t.source][0]===o[0]&&geoAPI.session._lastTracked[s.accessToken][t.source][1]===o[1])return bfUtils.traceDevice({message:"ignoring same position"+JSON.stringify(t.position)}),void a(null,{isSuccessful:!0});var i={data:{source:t.source,position:{type:"Point",coordinates:o},metadata:t.position.coords},isSecureAPI:!0};geoAPI.session._apiClient("users/updateLocation",i).then(function(e){geoAPI.session._lastTracked[s.accessToken][t.source]=o,"ipInfo"===t.source||"registration"===t.source?authAPI.refreshAndTriggerUpdate():bfUtils.traceDevice({message:"Updated GPS Location: "+JSON.stringify(i.data)}),a(null,{isSuccessful:e})}).catch(function(e){console.error("error updating last known location",e),a(e,null),geoAPI._log({message:"update location API failed",data:{coordinates:o},error:e})})})},_currentTrackingOperation:{trackingWatchIds:{},trackingTimeoutReference:null,trackingStartTime:null,trackingMaxDuration:null},startTracking:function(o,e){if(geoAPI._currentTrackingOperation.trackingWatchIds[o.instanceId])return geoAPI.session._lastPosition&&geoAPI._updateLastKnownLocation({position:geoAPI.session._lastPosition,source:"tracker"},function(){}),e("tracker already running",null);if(!o.maximumDuration||isNaN(o.maximumDuration))o.maximumDuration=60;else if(1440geoAPI._currentTrackingOperation.trackingMaxDuration-(Date.now()-geoAPI._currentTrackingOperation.trackingStartTime))&&(clearTimeout(geoAPI._currentTrackingOperation.trackingTimeoutReference),geoAPI._currentTrackingOperation.trackingStartTime=Date.now(),geoAPI._currentTrackingOperation.trackingMaxDuration=o.maximumDuration,geoAPI._currentTrackingOperation.trackingTimeoutReference=setTimeout(function(){geoAPI.stopTracking({instanceId:o.instanceId},function(){})},geoAPI._currentTrackingOperation.trackingMaxDuration)),e(null,{isSuccessful:!0}),geoAPI.session._lastGeneratedPositionSequence=geoAPI.session._lastGeneratedPositionSequence||0,permissionRequestsAPI.queueRequest(geoAPI.getPermissionType(),geoAPI,function(){var n=!1;geoAPI._watchPosition({_preferHighFrequencyProvider:!0,enableHighAccuracy:!1},function(e,s){e?(e.watchId&&(geoAPI._currentTrackingOperation.trackingWatchIds[o.instanceId]=e.watchId),console.log("tracking position",e,s),0===geoAPI.session._lastGeneratedPositionSequence&&geoAPI._log({message:"first tracker session position captured",data:{instanceId:o.instanceId,position:e}}),e.sequence=geoAPI.session._lastGeneratedPositionSequence++,e&&e.coords&&(geoAPI.session._lastPosition=e,geoAPI.session._lastPositionFetchDate=e,s=geoAPI.session._lastPositionUpdate?(new Date).getTime()-geoAPI.session._lastPositionUpdate:0,n&&s<2e3?setTimeout(function(){e.sequence>geoAPI.session._lastProcessedPositionSequence&&2e3<(new Date).getTime()-geoAPI.session._lastPositionUpdate&&(geoAPI.session._lastPositionUpdate=(new Date).getTime(),geoAPI.session._lastProcessedPositionSequence=e.sequence,geoAPI._updateLastKnownLocation({position:e,source:"tracker"},function(){}))},2e3):(geoAPI.session._lastPositionUpdate=(new Date).getTime(),geoAPI.session._lastProcessedPositionSequence=e.sequence,geoAPI._updateLastKnownLocation({position:e,source:"tracker"},function(){}),n=!0))):setTimeout(function(){!n&&geoAPI.session._lastPosition&&((new Date).getTime()-geoAPI.session._lastPositionFetchDate)/1e3<300&&geoAPI._updateLastKnownLocation({position:geoAPI.session._lastPosition,source:"tracker"},function(){})},1e3)},function(e){geoAPI._currentTrackingOperation.trackingWatchIds[o.instanceId]=e}),geoAPI._log({message:"tracker session started",data:{instanceId:o.instanceId}})})},isTracking:function(e,s){return e&&e.level&&"app"!=e.level?"plugin"==e.level?geoAPI._currentTrackingOperation.trackingWatchIds[e.instanceId]?s(null,{isTracking:!0}):s(null,{isTracking:!1}):void s("please provide a valid level",null):Object.keys(geoAPI._currentTrackingOperation.trackingWatchIds).length?s(null,{isTracking:!0}):s(null,{isTracking:!1})},stopTracking:function(e,s){geoAPI._currentTrackingOperation.trackingWatchIds[e.instanceId]?geoAPI.clearWatch(geoAPI._currentTrackingOperation.trackingWatchIds[e.instanceId],function(){delete geoAPI._currentTrackingOperation.trackingWatchIds[e.instanceId],Object.keys(geoAPI._currentTrackingOperation.trackingWatchIds).length||(clearTimeout(geoAPI._currentTrackingOperation.trackingTimeoutReference),geoAPI._currentTrackingOperation={trackingWatchIds:{},trackingTimeoutReference:null,trackingStartTime:null,trackingMaxDuration:null}),s(null,{isSuccessful:!0})}):s("no active trackers found",null)},syncUserLocation:function(){setTimeout(function(){function n(t,a){authAPI.getAuthSettings(null,function(e,s){var n,o,i;s&&s.data&&s.data.enableUserLocationTracking&&(o=n=null,t.userProfile&&t.userProfile.address&&t.userProfile.address.geoLocation&&(n={type:"Point",coords:{longitude:t.userProfile.address.geoLocation.lng,latitude:t.userProfile.address.geoLocation.lat}}),(i=JSON.parse(localStorage.getItem("analyticsUserIpInfo")))&&i.data&&i.data.lat&&i.data.lon&&(o={type:"Point",coords:{longitude:Number(i.data.lon),latitude:Number(i.data.lat)}}),s=function(e,s){return!(!e&&!s)&&(!(!(e=e.coordinates?{coords:{longitude:e.coordinates[0],latitude:e.coordinates[1]}}:e)||!s)&&!(e&&e.coords&&e.coords.longitude.toString()===s.coords.longitude.toString()&&e.coords.latitude.toString()===s.coords.latitude.toString()))},t.locationTracking&&t.locationTracking.homeLocation?(i=t.locationTracking.homeLocation,(a||864e5<(new Date).getTime()-new Date(i.lastUpdatedOn))&&(n?s(i.position,n)&&(geoAPI._updateLastKnownLocation({position:n,source:"registration"},function(){}),geoAPI._log({message:"updated home address for tracker",data:{position:n,userToken:t.userToken,accessToken:t.accessToken,source:"registration"}})):o&&s(i.position,o)&&(geoAPI._updateLastKnownLocation({position:o,source:"ipInfo"},function(){}),geoAPI._log({message:"updated home address for tracker",data:{position:o,userToken:t.userToken,accessToken:t.accessToken,source:"ipInfo"}})))):n?(geoAPI._updateLastKnownLocation({position:n,source:"registration"},function(){}),geoAPI._log({message:"new home address for tracker",data:{position:n,userToken:t.userToken,accessToken:t.accessToken,source:"registration"}})):o&&(geoAPI._updateLastKnownLocation({position:o,source:"ipInfo"},function(){}),geoAPI._log({message:"new home address for tracker",data:{position:o,userToken:t.userToken,accessToken:t.accessToken,source:"ipInfo"}})))})}authAPI.getCurrentUser(function(e,s){s?n(s):authAPI.onLogin(function(){authAPI.getCurrentUser(function(e,s){s&&n(s)})})}),authAPI.onUpdate(function(e){e&&e.detail&&e.detail.user&&n(e.detail.user,!0)})},6e3)},session:{sessionId:null,_sessions:[],_isFakeClient:!1,init:function(){geoAPI.session._isFakeClient?(geoAPI.session._apiClient=geoAPI.session._fakeClient.fakeClientHandler,geoAPI.session._sessions=[{sessionId:"session-1",expiresOn:new Date,createdBy:"adimes",createdOn:new Date("2023-11-01"),externalAppId:"app-id-a2",instanceId:"",users:[{userToken:"Daniel",lastLocation:[20,-2],metadata:{}},{userToken:"Ayman",lastLocation:[10,-1],metadata:{}},{userToken:"Mahmoud"}]},{sessionId:"session-2",expiresOn:new Date,createdBy:"adimes",createdOn:new Date("2023-06-06"),externalAppId:"app-id-a1",users:[{userToken:"Salem",lastLocation:[12,24],metadata:{}},{userToken:"Mike",lastLocation:[12,25],metadata:{}}]}]):geoAPI.session._apiClient=authAPI.getAuthResponse},onUserLocationChange:{intervals:{},activeSessions:{},subscribe:function(e){var n=this,o=e.sessionId,i=e.watchId,t=e.instanceId;o&&i&&t&&geoAPI.session.get({sessionId:o},function(e,s){n.activeSessions[o]&&n.activeSessions[o].subscriptions.some(function(e){return e.instanceId==t&&e.watchIds.some(function(e){return e==i})})||(n.activeSessions[o]?n.activeSessions[o].subscriptions.some(function(e){return e.instanceId==t})?n.activeSessions[o].subscriptions=n.activeSessions[o].subscriptions.map(function(e){return e.instanceId==t&&e.watchIds.push(i),e}):n.activeSessions[o].subscriptions.push({watchIds:[i],instanceId:t}):(n.activeSessions[o]={subscriptions:[],sessionSnapshot:JSON.parse(JSON.stringify(_objectSpread({},s)))},n.activeSessions[o].subscriptions.push({watchIds:[i],instanceId:t})),n.publish(o),n.intervals[o]||(n.intervals[o]=setInterval(function(){geoAPI.session.get({sessionId:o},function(e,s){e&&(clearInterval(n.intervals[o]),delete n.intervals[o]),JSON.stringify(n.activeSessions[o].sessionSnapshot)!=JSON.stringify(s)&&(n.activeSessions[o].sessionSnapshot=JSON.parse(JSON.stringify(_objectSpread({},s))),n.publish(o))})},2e3)))})},publish:function(n){var o=this;this._isActive()&&this.activeSessions[n]&&geoAPI.session._isAlive(this.activeSessions[n].sessionSnapshot)&&this.activeSessions[n].subscriptions.forEach(function(e){var s=e.instanceId,e=e.watchIds;postMaster.isInstanceAlive(s)?e.forEach(function(e){e=new Packet(null,"geo.session._triggerOnSessionWatchChange",{watchId:e,session:o.activeSessions[n].sessionSnapshot});postMaster.broadcast(e)}):(clearInterval(o.intervals[n]),delete o.intervals[n])})},unsubscribe:function(o,e){var i,s=this;Object.keys(this.activeSessions)?(Object.keys(this.activeSessions).forEach(function(n){s.activeSessions[n].subscriptions.map(function(e){var s=e.watchIds.findIndex(function(e){return e==o});return-1(new Date).getTime()},_apiClient:{},_fakeClient:{fakeClientHandler:function(e,s){return new Promise(function(n,o){switch(s=JSON.stringify(s),e){case"users/updateLocation":geoAPI.session._fakeClient.user.updateLocation(s,function(e,s){e&&o(e),n(s)});break;case"geoSessions/create":geoAPI.session._fakeClient.geoSession.create(s,function(e,s){e&&o(e),n(s)});break;case"geoSessions/get":geoAPI.session._fakeClient.geoSession.get(s,function(e,s){e&&o(e),n(s)});break;case"geoSessions/removeUsers":geoAPI.session._fakeClient.geoSession.removeUsers(s,function(e,s){e&&o(e),n(s)});break;case"geoSessions/addUsers":geoAPI.session._fakeClient.geoSession.addUsers(s,function(e,s){e&&o(e),n(s)});break;case"geoSessions/updateInfo":geoAPI.session._fakeClient.geoSession.updateInfo(s,function(e,s){e&&o(e),n(s)});break;case"geoSessions/delete":geoAPI.session._fakeClient.geoSession.delete(s,function(e,s){e&&o(e),n(s)});break;case"geoSessions/getCurrentUserSessions":geoAPI.session._fakeClient.user.getCurrentUserSessions(s,function(e,s){e&&o(e),n(s)});break;case"geoSessions/updateUser":s.isTrackable?geoAPI.session._fakeClient.geoSession.enableTrackability(s,function(e,s){e&&o(e),n(s)}):geoAPI.session._fakeClient.geoSession.disableTrackability(s,function(e,s){e&&o(e),n(s)});break;default:return}})},geoSession:{create:function(n,o){setTimeout(function(){var e;if(null!==(e=(n=JSON.parse(n)).mockBehavior)&&void 0!==e&&e.error)return o(null===(s=n.mockBehavior)||void 0===s?void 0:s.error,null);var s=geoAPI.session._sessions.findIndex(function(e){return e.sessionId==n.session.sessionId});if(-1",this.position={type:n||"POINT",coordinates:s||[null,null]}},Session=function e(s){var n=s.sessionId,o=s.expiresOn,i=s.createdBy,s=s.users;_classCallCheck(this,e),this.sessionId=n||"session-".concat(Date.now()),this.expiresOn=new Date(o||Date.now()+9999999999),this.createdBy=i||"simulation-user",this.createdOn=new Date,this.externalAppId=window.currentAppId,s&&s.length&&s.map(function(e){e.isTrackable=!1}),this.users=s||[]};
"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var inputAPI={initialized:!1,timer:null,currentStepData:null,currentStepOptions:null,init:function(){var e=this;this.inputDialog?this.inputDialog.innerHTML="":(this.inputDialog=document.createElement("div"),this.inputDialog.style.display="none"),this.listDialog?this.listDialog.innerHTML="":(this.listDialog=document.createElement("div"),this.listDialog.style.display="none"),this.backdrop?this.backdrop.className="":(this.backdrop=document.createElement("div"),this.backdrop.id="input-backdrop"),0<=window.location.pathname.indexOf("pluginTester")?(this.inputDialog.style.height=document.getElementById("app").offsetHeight+"px",this.inputDialog.style.position="absolute",this.listDialog.style.height=document.getElementById("app").offsetHeight+"px",this.listDialog.style.position="absolute"):(this.inputDialog.style.height="var(--full-app-height, 100vh)",this.inputDialog.style.maxHeight="var(--full-app-height, 100vh)",this.listDialog.style.height="var(--full-app-height, 100vh)",this.listDialog.style.maxHeight="var(--full-app-height, 100vh)");var t=localStorage.getItem("footerMenu");this.inputDialog.id="inputDialog",this.inputDialog.className=t?"has-footer-menu":"";var i=document.createElement("div");i.className="input-dialog-container backgroundColorTheme",this.inputDialog.appendChild(i),this.dialogNav=document.createElement("div"),this.dialogNav.className="inputapi-nav titleBarBackgroundTheme",i.appendChild(this.dialogNav),this.dialogNavFlex=document.createElement("div"),this.dialogNavFlex.className="inputapi-nav-flex",this.dialogNav.appendChild(this.dialogNavFlex),this.dialogNavSecondary=document.createElement("div"),this.dialogNavSecondary.className="inputapi-nav secondary titleBarBackgroundTheme",i.appendChild(this.dialogNavSecondary),this.dialogNavFlexSecondary=document.createElement("div"),this.dialogNavFlexSecondary.className="inputapi-nav-flex secondary",this.dialogNavSecondary.appendChild(this.dialogNavFlexSecondary),this.currentUserContainer=document.createElement("div"),this.currentUserContainer.className="inputapi-user-container",i.appendChild(this.currentUserContainer),this.textarea=document.createElement("textarea"),this.textarea.className="inputapi-textarea needsfocus bodyTextTheme",this.textarea.id="inputapi-textarea",this.textarea.onclick=window.keyboardResize,this.textarea.addEventListener("touchend",function(t){t.target.click()}),this.textarea.addEventListener("focus",function(t){var e=t.target;e.style.webkitTransform="translate3d(0px,-10000px,0)",requestAnimationFrame(function(){return e.style.webkitTransform=""})}),this.textarea.addEventListener("input",function(t){e.currentStepData.textValue=t.target.value,e.currentStepData.textValue.length>e.currentStepOptions.maxLength&&(e.currentStepData.textValue=e.currentStepData.textValue.substring(0,e.currentStepOptions.maxLength),t.target.value=e.currentStepData.textValue),e.doneButton.disabled=!e.validate()}),i.appendChild(this.textarea),this.imageGallery=document.createElement("div"),this.imageGallery.id="imageGallery",this.geoContainer=document.createElement("div"),this.geoContainer.id="geo-container",this.geoContainer.classList="img-gallery-container",this.geoContainer.style.display="none",this.geoImage=document.createElement("img"),this.geoImage.id="geo-img",this.geoContainer.appendChild(this.geoImage),this.geoDeleteBtn=document.createElement("span"),this.geoDeleteBtn.className="galery-delete glyphicon glyphicon-minus-sign",this.geoDeleteBtn.onclick=function(){return e.setLocation()},this.geoContainer.appendChild(this.geoDeleteBtn),this.imageGallery.appendChild(this.geoContainer),i.appendChild(this.imageGallery),this.cancelButton=document.createElement("button"),this.cancelButton.className="inputapi-cancel titleBarTextAndIcons",this.dialogNavFlex.appendChild(this.cancelButton),this.title=document.createElement("h1"),this.title.className="inputapi-nav-title primary titleBarTextAndIcons ellipsis",this.title.style.whiteSpace="nowrap",this.dialogNavFlex.appendChild(this.title),this.titleSecondary=document.createElement("h1"),this.titleSecondary.className="inputapi-nav-title secondary titleBarTextAndIcons ellipsis",this.titleSecondary.style.whiteSpace="nowrap",this.dialogNavFlexSecondary.appendChild(this.titleSecondary),this.doneButton=document.createElement("button"),this.doneButton.className="inputapi-done titleBarTextAndIcons",this.dialogNavFlex.appendChild(this.doneButton),this.actionFooter=document.createElement("div"),this.actionFooter.className="inputapi-footer",i.appendChild(this.actionFooter),this.cameraBtn=document.createElement("span"),this.cameraBtn.className="icon icon-camera2 needsclick",this.cameraBtn.onclick=function(t){return e.showFileDialog()},this.actionFooter.appendChild(this.cameraBtn),this.geoPin=document.createElement("span"),this.geoPin.id="goc-pin",this.geoPin.className="icon icon-map-marker",this.geoPin.onclick=function(t){return e.showLocationModal()},this.actionFooter.appendChild(this.geoPin),this.gifBtn=document.createElement("span"),this.gifBtn.className="icon icon-gif",this.gifBtn.id="gif-btn",this.gifBtn.onclick=function(t){return e.showGifDialog()},this.actionFooter.appendChild(this.gifBtn),this.listDialog.id="listDialog";t=document.createElement("div");t.className="body backgroundColorTheme",this.listDialog.appendChild(t),this.listDialogHeader=document.createElement("h1"),this.listDialogHeader.className="list-header",t.appendChild(this.listDialogHeader),this.listDialogItems=document.createElement("form"),this.listDialogItems.className="input-list",t.appendChild(this.listDialogItems);i=document.createElement("div");i.className="button-container",t.appendChild(i),this.listDialogCancelBtn=document.createElement("button"),this.listDialogCancelBtn.className="cancel primaryTheme",i.appendChild(this.listDialogCancelBtn),this.listDialogConfirmBtn=document.createElement("button"),this.listDialogConfirmBtn.className="confirm primaryTheme",i.appendChild(this.listDialogConfirmBtn),0<=window.location.pathname.indexOf("pluginTester")?(document.getElementById("app").appendChild(this.inputDialog),document.getElementById("app").appendChild(this.listDialog),document.getElementById("app").appendChild(this.backdrop)):(document.body.appendChild(this.inputDialog),document.body.appendChild(this.listDialog),document.body.appendChild(this.backdrop)),this.initialized=!0},showLocationModal:function(){var d=this;window.spinner&&window.spinner.show(),this.getLocation(function(t,e){try{if(t)throw t;var i=e.coords,n=i.latitude,a=i.longitude,o=d.getMapUrl(e),l=o.mapUrl,r=o.thumbnail;if(d.currentStepOptions.attachments.location.required)return window.spinner&&window.spinner.hide(),d.geoDeleteBtn.style.display="none",d.setLocation({latitude:n,longitude:a},r);var s={title:"Send My Current Location",richContent:'\n \n '),action:{title:"Confirm",handler:function(){return d.setLocation({latitude:n,longitude:a},r)}}};window.spinner&&window.spinner.hide(),richModal.display(s)}catch(t){console.error("inputAPI location error",t);var c="Failed to determine location. Please try again later.";if(t.code)switch(t.code){case 1:c="App does not have location access.";break;case 2:c="Location information is not availible to this device.";break;case 3:c="Location request timed out. Try again.";break;case 4:c="Failed to determine location. Please try again later (code 4)";break;case 5:c="This app does not have access to this feature."}richModal.display({title:"Could not determine location",richContent:c}),window.spinner&&window.spinner.hide()}})},getLocation:function(i){var n,a=null;appApiKeys.get(function(t,e){(n=e.googleMapKey)||((a=new Error("no google API key")).code=5),a||"object"==("undefined"==typeof geoAPI?"undefined":_typeof(geoAPI))||((a=new Error("geoAPI not defined")).code=4),a?i(a,null):geoAPI.getCurrentPosition({timeout:1e4},function(t,e){e&&(e.googleMapKey=n),i(t,e)})})},setLocation:function(t,e){t&&e?"undefined"!=typeof tinymce&&tinymce.activeEditor?(tinymce.activeEditor.insertContent(' ')),this.currentStepData.location=t):(this.currentStepData.location=t,this.geoContainer.style.display="block",this.geoImage.src=e):(this.currentStepData.location={},this.geoContainer.style.display="none",this.geoImage.removeAttribute("src")),this.doneButton.disabled=!this.validate()},getMapUrl:function(t){var e=t.coords,i=e.latitude,n=e.longitude,e=t.googleMapKey,t="size=".concat(window.innerWidth,"x").concat(window.innerWidth),t="zoom=15&".concat(t,"&maptype=roadmap&key=").concat(e),e="center=".concat(i,",").concat(n),n="markers=color:blue|size:large|".concat(i,",").concat(n),n="".concat("https://maps.googleapis.com/maps/api/staticmap","?").concat(e,"&").concat(n,"&").concat(t),t=n.replace(/size:large/g,"size:mid").replace(/size=\d{1,4}x\d{1,4}/g,"size=100x100").replace(/zoom=15/g,"zoom=12");return{mapUrl:n,thumbnail:t}},showGifDialog:function(){var n,t,a,o=this,i=0inputAPI.currentStepOptions.maxLength&&(inputAPI.currentStepData.textValue=inputAPI.currentStepData.textValue.substring(0,inputAPI.currentStepOptions.maxLength),t.target.value=inputAPI.currentStepData.textValue),inputAPI.doneButton.disabled=!inputAPI.validate()})}}},fullWidthIcon:' \x3c!-- Generator: Sketch 59.1 (86144) - https://sketch.com --\x3e full_width Created with Sketch. ',halfWidthIcon:' \x3c!-- Generator: Sketch 59.1 (86144) - https://sketch.com --\x3e half_width Created with Sketch. ',thirdWidthIcon:' \x3c!-- Generator: Sketch 59.1 (86144) - https://sketch.com --\x3e third_width Created with Sketch. ',quarterWidthIcon:' \x3c!-- Generator: Sketch 59.1 (86144) - https://sketch.com --\x3e quarter_width Created with Sketch. ',_showTinyMceDialog:function(a,t){var e="image"===t?"Image":"Gif",i="Insert ".concat(e),t={title:"Save",handler:function(){var e;["fullWidth","halfWidth","thirdWidth","quarterWidth"].some(function(t){if(document.querySelector('input[value="'.concat(t,'"]')).checked)return e=t,!0});var t,i=tinyMCE.activeEditor.getContainer().clientWidth;switch(e){case"fullWidth":i="calc(".concat(i,"px - 2rem)"),t="full_width";break;case"halfWidth":i="calc(".concat(i/2,"px - 1rem)"),t="half_width";break;case"thirdWidth":i="calc((".concat(i,"px - 2rem) / 3)"),t="third_width";break;case"quarterWidth":i="calc(".concat(i/4,"px - .5rem)"),t="quarter_width"}var n=imageTools.resizeImage(a,{size:t,aspect:"1:1"});tinymce.activeEditor.insertContent(' ')),richModal.close()}},e='\n \n ");richModal.display({title:i,richContent:e,action:t})},renderStep:function(e,i,n){var a=this;this.currentStepData={wysiwygValue:e.defaultValue||"",textValue:e.defaultValue||"",images:[],location:{},gifs:[]},e.maxLength=e.maxLength||2e3,this.currentStepOptions=e,this.title.innerHTML=e.title||"",this.titleSecondary.innerHTML=e.title||"";var t=this.currentStepOptions.attachments,o=t.location,l=t.images,r=t.gifs,s=!1;["images","gifs","location"].forEach(function(t){e.attachments[t]&&e.attachments[t].enable&&(e.attachments[t].required||(s=!0))}),this.actionFooter.style.display=s?"flex":"none",this.cameraBtn.style.display=l.enable&&this.currentStepData.images.length<6?"block":"none",this.geoPin.style.display=o.enable&&!o.required?"block":"none",this.gifBtn.style.display=r.enable?"block":"none",this.imageGallery.style.display=e.wysiwyg?"none":"flex",this.currentUserContainer.innerHTML="";var c=authAPI.getCurrentUser();this.userImage=document.createElement("img"),c&&c.imageUrl?"undefined"!=typeof imageTools?this.userImage.src=imageTools.cropImage(c.imageUrl,{size:"xs",aspect:"1:1",compression:70}):this.userImage.src=c.imageUrl:this.userImage.src="https://pluginserver.buildfire.com/styles/media/avatar-placeholder.png",this.userImage.className="inputapi-user-image",this.currentUserContainer.appendChild(this.userImage),this.userTitle=document.createElement("h1"),this.userTitle.className="inputapi-user-title ellipsis",c&&(this.userTitle.innerHTML=c.displayName||(c.firstName?c.firstName+" ":"")+(c.lastName||"")||""),this.currentUserContainer.appendChild(this.userTitle),e.wysiwyg?(document.getElementById("tinymce-styles")||document.head.appendChild(inputAPI.getTinyMceStyles()),"undefined"!=typeof Keyboard&&Keyboard.shrinkView&&Keyboard.shrinkView(!0),this.textarea.innerHTML=this.textarea.value=e.defaultValue||"",tinymce.init(this.getTinyMceOptions(e,this)),this.cameraBtn.onclick=function(t){return a.showFileDialog(!0)},this.gifBtn.onclick=function(t){return a.showGifDialog(!0)}):(this.textarea.placeholder=e.placeholder||"Type something...",this.textarea.maxLength=e.maxLength||2e3,this.textarea.value=e.defaultValue?e.defaultValue.substring(0,this.textarea.maxLength):"");t=document.createElement("div");t.className="btn-txt primary",t.innerHTML=e.saveText||(e._buffer.length?"Next":"Done");l=document.createElement("div");l.className="btn-txt secondary iconsTheme",l.innerHTML=e.saveText||(e._buffer.length?"Next":"Done");r=document.createElement("div");r.className="btn-txt primary",r.innerHTML=e.cancelText||"Cancel";c=document.createElement("div");for(c.className="btn-txt secondary iconsTheme",c.innerHTML=e.cancelText||"Cancel",this.doneButton.innerHTML="",this.cancelButton.innerHTML="",this.doneButton.appendChild(t),this.doneButton.appendChild(l),this.cancelButton.appendChild(r),this.cancelButton.appendChild(c),this.doneButton.onclick=function(t){a.doneButton.disabled||n(a.currentStepData)},this.cancelButton.onclick=function(t){return i()},this.backdrop.onclick=function(t){return i()},e.prefill&&(this.textarea.value=e.prefill),this.doneButton.disabled=!this.validate();this.imageGallery.childNodes[1];)this.imageGallery.removeChild(this.imageGallery.childNodes[1]);"object"==_typeof(e.defaultAttachments)&&(r=(l=e.defaultAttachments).images,c=l.gifs,l=l.location,r&&r.length&&(this.currentStepData.images=r).forEach(function(t){a.addToGallery(t,"images")}),c&&c.length&&(this.currentStepData.gifs=c).forEach(function(t){return a.addToGallery(t,"gifs")}),this.currentStepData.gifs=c,this.currentStepData.location=l),o.required?this.showLocationModal():this.setLocation()},showTextDialog:function(t,e){var i,n=this;t&&e&&("undefined"==typeof tinymce&&("function"==typeof t.some?t.some(function(t){return t.wysiwyg}):t.wysiwyg)?((i=document.createElement("script")).src=window._appRoot+"scripts/lib/tinymce/js/tinymce/tinymce.min.js",i.type="text/javascript",i.onload=function(){n._showTextDialog(t,e)},document.getElementsByTagName("head")[0].appendChild(i)):this._showTextDialog(t,e))},_showTextDialog:function(t,e){var n=this;if(t&&e){if(this.currentStepOptions&&this.currentStepOptions._buffer)return e({message:"inputDialog is already active"});this.initialized||this.init();var a=new PublicFilesAPI(window.appContext.currentApp),o=Array.isArray(t)?t:[t],l=[],i=!1,r=!1;if(o.forEach(function(t){t.cancelText&&9Payment in progress Please wait...",action:{title:"Cancel",handler:function(){g({invokeDismiss:!1})}}}),r&&"function"==typeof r.onProgress&&r.onProgress(K),K()},_openStripeConnect:function(e,i){var n=e.accessToken,t=e.accountLinkUrl,s=e.events,c=this,o=null,a=!1,u=null,l=!1;function r(e){e=e||{},clearInterval(o),(e.invokeDismiss||void 0===e.invokeDismiss)&&window.richModal&&window.richModal.close(),u&&u.close(),s&&"function"==typeof s.onClose&&s.onClose()}function p(){c._sendRequest("GET","connect/account",{access_token:n},{"x-api-key":c.context.apiKeys.awsApiPublicKey},function(e,n){n&&n.is_active&&(l||(l=!0,r(),i&&i(e,n)))})}var m=t;function d(){u=window.open(m,"_blank","location=no"),o=setInterval(function(){u&&u.closed&&r(),"visible"==window.document.visibilityState?p():a||(a=!0,setTimeout(function(){a=!1,p()},6e4))},1e4),setTimeout(function(){r()},18e5)}s&&"function"==typeof s.onProgress&&s.onProgress(d),window.bfUtils.isApp&&window.richModal.display({title:"",showDismissButton:!1,richContent:"Stripe Connect in progress Please wait...
",action:{title:"Cancel",handler:function(){r({invokeDismiss:!1})}}}),!1===c.openPaymentWindow||d()},_checkApiKeys:function(i){var t=this;function e(){appApiKeys.get(function(e,n){t.context.apiKeys=n,i&&i()})}t.context.apiKeys&&t.context.apiKeys.awsApiPublicKey?i&&i():!window.appContext.currentApp.apiKeys||0===Object.keys(window.appContext.currentApp.apiKeys).length&&window.appContext.currentApp.apiKeys.constructor===Object?e():(t.context.apiKeys=window.appContext.currentApp.apiKeys,i&&i())},pay:function(e,i){var t=this;t._checkApiKeys(function(){t.context.apiKeys.stripePublicKey?t._loadScript({url:"https://checkout.stripe.com/checkout.js"},function(){var n=StripeCheckout.configure({key:t.context.apiKeys.stripePublicKey,image:"https://stripe.com/img/documentation/checkout/marketplace.png",locale:"auto",token:function(e){n.close(),i&&i(null,{sourceToken:e})}});n.open({}),window.addEventListener("popstate",function(){n.close()})}):i&&i("Missing stripePublicKey in context",null)})},charge:function(a,u){var l=this;l._checkApiKeys(function(){if(l.context.apiKeys.stripePublicKey)if(a){l.openPaymentWindow=a.openPaymentWindow;var e=[];if(!a.invoiceId){if(!a.items||0==a.items.length)return void(u&&u("Missing items",null));for(var n=0;n Unknown, an event was received and we do not know what it is")}},successHandler:function(e){},errorHandler:function(e){console.error("error:"+e)}},pushiOSNotificationHandler.prototype={onRegistered:function(e){push.deviceId=e},register:function(){if(navigator.onLine)try{this.pushNotification.register(this.onRegistered,this.errorHandler,{badge:"true",sound:"true",alert:"true",ecb:"_oldPush.notificationHandler.onNotification"})}catch(e){console.error("There was an error on this page.\n\nError description: "+e.message+"\n\n")}else console.warn("offline: not attempting to register push notifications")},onNotification:function(e){var i=new CustomEvent("pushNotificationsOnReceived",{detail:e});document.dispatchEvent(i),e?(i={},"social"==e.messageType?i.buttons=["Dismiss"]:i.buttons=["Dismiss","Show Details"],e.alert&&(push.decrementBadge(),push.displayMessage(e,i))):window.location.hash="/pushHistory",e.sound},tokenHandler:function(e){push.deviceId=e},successHandler:function(e){this.onRegistered(e)},errorHandler:function(e){console.error("ios error:"+e)}},bfUtils.isMobileDevice&&appState.subscribe({state:appState.RUNNING},function(){window.capabilities&&window.capabilities.pushNotification?(console.log("running old plugin for push notification"),_oldPush.init()):(console.log("running new plugin phonegap-plugin-push"),push.init())}),window.testNotification=function(){push.displayMessage({message:"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corrupti officiis perferendis expedita rerum delectus dolor neque veniam necessitatibus fuga cum voluptatibus placeat, totam voluptate, nisi reprehenderit odio porro cumque ipsa. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corrupti officiis perferendis expedita rerum delectus dolor neque veniam necessitatibus fuga cum voluptatibus placeat, totam voluptate, nisi reprehenderit odio porro cumque ipsa. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corrupti officiis perferendis expedita rerum delectus dolor neque veniam necessitatibus fuga cum voluptatibus placeat, totam voluptate, nisi reprehenderit odio porro cumque ipsa. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corrupti officiis perferendis expedita rerum delectus dolor neque veniam necessitatibus fuga cum voluptatibus placeat, totam voluptate, nisi reprehenderit odio porro cumque ipsa. ",title:"Notification Title",alert:"This is the alert, not sure what it means",messageType:null,additionalData:{notificationId:"5b5f9bbe39003904daa4f093",coldstart:!0,foreground:!0}},{buttons:["Dismiss","Show Details"]})};
+"use strict";var _push;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _defineProperty(e,i,t){return i in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}var push=(_defineProperty(_push={get instance(){return window.capabilities&&window.capabilities.pushNotification?_oldPush:"undefined"!=typeof bridge&&bridge.capabilities&&bridge.capabilities.firebase&&bridge.capabilities.firebase.messaging?push_firebase:push_phonegap},init:function(){return window.push=this,window.capabilities&&window.capabilities.pushNotification?(console.log("running old plugin for push notification"),_oldPush.init()):"undefined"!=typeof bridge&&bridge.capabilities&&bridge.capabilities.firebase&&bridge.capabilities.firebase.messaging?push_firebase.init():(console.log("running new plugin phonegap-plugin-push"),void push_phonegap.init())},get deviceId(){return this.instance.deviceId},get platform(){return"undefined"!=typeof device&&device.platform&&device.platform.toLowerCase()||""},get getBadgeNumber(){return this.instance.getBadgeNumber},get decrementBadge(){return this.instance.decrementBadge},get clearBadge(){return this.instance.clearBadge},get displayMessage(){return this.instance.displayMessage},getNotificationData:function(e,i,t,n){window.bfUtils.http.jsonp(e,i).success(function(e){e=e&&e.result[0]?e.result[0]:{actionItem:!1};t=Object.assign(t,e),n(null,t)}).catch(n)}},"displayMessage",function(e,i){i=i||{};push.trackPushNotifications({eventName:"push_notification/viewed",payload:e}),console.log("pushNotifications#displayMessage L152",e),localStorage.payload=JSON.stringify(e);try{var t=e._id||e.notificationId||e.additionalData.notificationId;if(console.log("Checking message type",e.messageType,e),e.additionalData&&"social"===e.additionalData.messageType)return e.title="Alert",e.richContent=e.message,richModal.display(e),void console.log("Got social notification",e);var n=window.siteConfig.endPoints.push+"/src/server.js?callback=JSON_CALLBACK",o={params:{data:{method:"notifications/get",params:{appID:window.appContext.currentApp.appId.toString(),notificationID:t}}}};push.getNotificationData(n,o,e,function(e,i){if(e)return console.error(e);e=Object.assign({},i);i.actionItem&&(e.action={title:i.actionItem&&i.actionItem.title?i.actionItem.title:"View",handler:function(){var e=new ActionItemsAPI;push.trackPushNotifications({eventName:"push_notification/clicked",payload:i}),window.closeSideMenu&&window.closeSideMenu(),e.execute(i.actionItem,function(e,i){console.info("Action Taken!")})}}),e.richContent=e.richMessage||e.message,e.subtitle="Sent "+moment(e.sendAfter).fromNow(),richModal.display(e)})}catch(e){console.error("Failed to parse push notification",e)}}),_defineProperty(_push,"notificationsTracked",{}),_defineProperty(_push,"trackPushNotifications",function(e){var i,t,n;"undefined"!=typeof device&&"undefined"!=typeof AnalyticsAPI&&e&&e.payload&&e.eventName&&((i=e.payload._id||e.payload.notificationId||e.payload.additionalData.notificationId)&&(push.notificationsTracked||(push.notificationsTracked={}),(t=(t=push.notificationsTracked[i])||(push.notificationsTracked[i]={events:[]})).events||(t.events=[]),-1 Unknown, an event was received and we do not know what it is")}},successHandler:function(e){},errorHandler:function(e){console.error("error:"+e)}},pushiOSNotificationHandler.prototype={onRegistered:function(e){push.deviceId=e},register:function(){if(navigator.onLine)try{this.pushNotification.register(this.onRegistered,this.errorHandler,{badge:"true",sound:"true",alert:"true",ecb:"_oldPush.notificationHandler.onNotification"})}catch(e){console.error("There was an error on this page.\n\nError description: "+e.message+"\n\n")}else console.warn("offline: not attempting to register push notifications")},onNotification:function(e){var i=new CustomEvent("pushNotificationsOnReceived",{detail:e});document.dispatchEvent(i),e?(i={},"social"==e.messageType?i.buttons=["Dismiss"]:i.buttons=["Dismiss","Show Details"],e.alert&&(push.decrementBadge(),push.displayMessage(e,i))):window.location.hash="/pushHistory",e.sound},tokenHandler:function(e){push.deviceId=e},successHandler:function(e){this.onRegistered(e)},errorHandler:function(e){console.error("ios error:"+e)}},bfUtils.isMobileDevice&&appState.subscribe({state:appState.RUNNING},function(){window.capabilities&&window.capabilities.pushNotification?(console.log("running old plugin for push notification"),_oldPush.init()):(console.log("running new plugin phonegap-plugin-push"),push.init())}),window.testNotification=function(){push.displayMessage({message:"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corrupti officiis perferendis expedita rerum delectus dolor neque veniam necessitatibus fuga cum voluptatibus placeat, totam voluptate, nisi reprehenderit odio porro cumque ipsa. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corrupti officiis perferendis expedita rerum delectus dolor neque veniam necessitatibus fuga cum voluptatibus placeat, totam voluptate, nisi reprehenderit odio porro cumque ipsa. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corrupti officiis perferendis expedita rerum delectus dolor neque veniam necessitatibus fuga cum voluptatibus placeat, totam voluptate, nisi reprehenderit odio porro cumque ipsa. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Corrupti officiis perferendis expedita rerum delectus dolor neque veniam necessitatibus fuga cum voluptatibus placeat, totam voluptate, nisi reprehenderit odio porro cumque ipsa. ",title:"Notification Title",alert:"This is the alert, not sure what it means",messageType:null,additionalData:{notificationId:"5b5f9bbe39003904daa4f093",coldstart:!0,foreground:!0}},{buttons:["Dismiss","Show Details"]})};
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,n){for(var t=0;t';var y=t.querySelector(".bottom-drawer");t.querySelector(".bottom-drawer-backdrop").onclick=function(){e.closeDrawer(),s.triggerCallbackOnUIDismiss&&c(null,null)},s.height&&(y.style.height=s.height),"undefined"!=typeof globalEvents&&(window.addEventListener(globalEvents.TABCHANGE.CONTENT,function(){e.closeDrawer()}),window.addEventListener(globalEvents.TABCHANGE.PURCHASE,function(){e.closeDrawer()}));var n,i,o,v,f,g,S,T,I=function(e){return a?-1\n\t\t\t
close \n\t\t\t
\n\t\t\t \n\t\t\t \n\t\t
\n\t\t\t
\n\t\t\t
search \n\t\t\t
',s.isHTML?this.sanitize(s.header,n.children[0]):n.children[0].innerText=s.header,s.multiSelection&&s.allowSelectAll&&(n.querySelector("#checkboxSelectAll").style.display="block",(i=n.querySelector("#selectAllCheckbox")).onclick=function(){var e=y.querySelectorAll("input[type=checkbox]");a=!i.checked,u=[],m=[],i.checked?s.listItems&&(u=s.listItems.slice(),L(s.listItems.length),e.forEach(function(e){e.checked=!0})):(u=[],L(),e.forEach(function(e){e.checked=!1}))}),s.enableFilter&&(o={},v=n.querySelector("#closeSearch"),f=n.querySelector("#searchIcon"),g=n.querySelector("#drawerSearch"),S=g.children[0],f.style.display="block",f.onclick=function(){g.classList.add("show-drawer-search"),g.classList.remove("hide-drawer-search"),S.disabled=!1,window.keyboardResize(),S.focus(),n.querySelector("#checkboxSelectAll").style.display="none",n.children[0].classList.add("hide-header-text"),n.children[0].classList.remove("show-header-text"),v.style.display="block"},v.onclick=function(){g.classList.add("hide-drawer-search"),g.classList.remove("show-drawer-search"),n.children[0].classList.remove("hide-header-text"),n.children[0].classList.add("show-header-text"),n.querySelector("#checkboxSelectAll").style.display=s.allowSelectAll&&s.multiSelection?"block":"none",n.children[0].style.display="block",v.style.display="none",g.children[0].value&&(w({target:{value:""}}),S.value=""),S.disabled=!0},S.onkeydown=function(e){var t=e.target;o&&clearTimeout(o),o=setTimeout(function(){return w({target:t})},500)}),y.appendChild(n)),s.header&&(T=function(e){y.querySelector("#drawerSearch").children[0].placeholder=s.filterInputPlaceholder||e||"Search"},window.stringResource?window.stringResource.getData().then(function(e){T(e.appSearch)}).catch(function(){T(null)}):T(null));var k,w=function(e){var i,o,t,n=e.target;l&&p&&(e=[],o=!(i=!0),n=n.value,0<(t=n?n.toLowerCase().split(/[\s-_():,/\\|]+/g):[]).length?(e=l.filter(function(e){o=!(i=!0);var n=(e.text+" "+(e.secondaryText||"")).toLowerCase().split(/<[^>]+>|[\s-_():,/\\|]+/g);return t.forEach(function(t){t&&(n.forEach(function(e){e.startsWith(t)&&(o=!0)}),i=!(!o||!i),o=!1)}),i}),p.innerHTML="",p.scrollTop=0,x(e,p),z(e)):(p.innerHTML="",p.scrollTop=0,x(l,p),z(l)))};function L(e){var t=y.querySelector("#drawerButton");y.querySelector("#buttonBadge").innerHTML=e||"",s.requireSelection&&(e?(t.classList.remove("disabled-drawer-button"),t.disabled=!1):(t.classList.add("disabled-drawer-button"),t.disabled=!0))}function x(i,e){var o={};e?o=e:((o=document.createElement("ul")).classList.add("action-list"),o.onclick=function(e){for(var t,n=e.target;"LI"!==n.nodeName;){if("UL"===n.nodeName)return void console.log("Wrong Click");n=n.parentElement}s.multiSelection?(t=n.querySelector("input[type=checkbox]"),"checkbox"!=e.target.type&&(t.checked=!t.checked),function(e,t){{var n;t?(a?u.push(e):(n=m.indexOf(e),m.splice(n,1)),L(Number(y.querySelector("#buttonBadge").innerHTML)+1)):(a?(n=u.indexOf(e),u.splice(n,1)):m.push(e),L(Number(y.querySelector("#buttonBadge").innerHTML)-1))}}(n.item,t.checked)):c(null,n.item)});var l=0;function t(){for(var e,t,n=l;n\n\t\t\t\t\t\t \n\t\t\t\t\t\t\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t
'),s.isHTML?(r.sanitize(i[n].text,e.children[1].children[0]),r.sanitize(i[n].secondaryText,e.children[1].children[1])):(e.children[1].children[0].innerText=i[n].text,e.children[1].children[1].innerText=i[n].secondaryText||""),s.multiSelection&&(e.querySelector("input[type=checkbox]").checked=I(i[n])||!1),e.item=i[n],o.appendChild(e));l+=50,console.log("Load Other Items")}if(b&&o.removeEventListener("scroll",b),b=function(){o.scrollTop+o.clientHeight+1e3>=o.scrollHeight&&t()},o.addEventListener("scroll",b),t(),!e){for(var n=0;n '),s.isHTML?this.sanitize(s.multiSelectionActionButton.text,A.children[0]):A.children[0].innerText=s.multiSelectionActionButton.text,k.appendChild(A),y.appendChild(k),y.querySelector("#drawerButton").onclick=function(){e.closeDrawer(),c(null,(a||m.forEach(function(e){e=u.indexOf(e);u.splice(e,1)}),u))},L(u.length)),this.closeDrawer({force:!0}),(document.querySelector("#emulatorContainer #app")||document.body).appendChild(t),!s.tabs||s.multiSelection||s.listItems||setTimeout(function(){e.scrollBooster=new ScrollBooster({viewport:t.querySelector(".md-tabs-scroll"),content:t.querySelector(".md-tabs"),scrollMode:"native",direction:"horizontal"}),setTimeout(function(){e.scrollBooster&&e.scrollBooster.updateMetrics()},1e3),setTimeout(function(){e.scrollBooster&&e.scrollBooster.updateMetrics()},3e3)},0)},showToastMessage:function(e,t){var n=this;e=e||{};var i=document.getElementById(this.SNACKBAR_UI_ID);i.querySelector(".snackbar-message").innerText=e.text;var o=i.querySelector(".snackbar");e.type||(e.type="info"),o.className="snackbar ".concat(e.type+"BackgroundTheme");var l=i.querySelector(".snackbar-actions"),o=l.querySelector(".snackbar-action");e.action&&e.action.title?(o.querySelector("span").innerText=e.action.title,o.classList.remove("hide"),o.onclick=function(){t&&t(null,e.action)}):o.classList.add("hide"),e.hideDismiss?l.querySelector(".dismiss").classList.add("hide"):(l.querySelector(".dismiss").classList.remove("hide"),l.querySelector(".dismiss").onclick=function(){n.closeToastMessage({force:!0})}),i.classList.remove("hide"),i.querySelector(".snackbar").classList.add("open"),this.closeToastMessage(e)},closeToastMessage:function(e,t){(e=e||{}).duration||(e.duration=8e3);var n=document.getElementById(this.SNACKBAR_UI_ID);e.force?(n.querySelector(".snackbar").classList.remove("closing"),n.querySelector(".snackbar").classList.remove("open"),setTimeout(function(){n.classList.add("hide")},250)):(n.querySelector(".snackbar").classList.add("closing"),ComponentUIAPI._startClosingTimeoutId&&clearTimeout(ComponentUIAPI._startClosingTimeoutId),ComponentUIAPI._finalizeClosingTimeoutId&&clearTimeout(ComponentUIAPI._finalizeClosingTimeoutId),ComponentUIAPI._startClosingTimeoutId=setTimeout(function(){n.querySelector(".snackbar").classList.remove("closing"),n.querySelector(".snackbar").classList.remove("open"),console.log("set snackbar timeout"),ComponentUIAPI._finalizeClosingTimeoutId=setTimeout(function(){n.classList.add("hide"),ComponentUIAPI._finalizeClosingTimeoutId=null},250),ComponentUIAPI._startClosingTimeoutId=null},e.duration))}};
"use strict";function _typeof(i){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(i)}var imageTools={get ENUMS(){return{SIZES:{xxs:32,xs:64,s:128,m:200,l:304,xl:416,xxl:600,720:720,1080:1080,1440:1440,1920:1920,2560:2560,3840:3840,get full_width(){return this.findNearest(1)},get half_width(){return this.findNearest(2)},get third_width(){return this.findNearest(3)},get fourth_width(){return this.findNearest(4)},get fifth_width(){return this.findNearest(5)},get sixth_width(){return this.findNearest(6)},findNearest:function(i){for(var t=null,e=0;eWarning: Existing data will be overwritten ':"",'You can customize the following AI request.
").concat(a?''+a+" ":""),showCancelButton:!0,actionButtons:[{text:"Generate",type:"success"}]},function(t,e){var n;return t?o(t):void("success"===(null==e||null===(n=e.selectedButton)||void 0===n?void 0:n.type)&&(n=document.querySelector("#aiDataRequest"),o(null,{userMessage:n.value})))})})},AiAPI.prototype.showSeederCSVPrompt=function(t,o){var e=t.sampleCSV,n=t.showResetAndSaveButton,a=t.hintText;if("string"!=typeof e)return o("Invalid parameter 'sampleCSV'. It must be a valid string.");var i=new DialogAPI(this.context),t=[{text:"Save",type:"success"}];n&&t.unshift({type:"warning",text:"Reset And Save"}),i._show({isMessageHTML:!0,title:"AI Import Data",message:'I have the following comma separated records:
").concat(a?''+a+" ":""),showCancelButton:!0,actionButtons:t},function(t,e){var n;return t?o(t):void(["warning","success"].includes(null==e||null===(n=e.selectedButton)||void 0===n?void 0:n.type)&&(n=e.selectedButton.type,e=document.querySelector("#aiDataRequest"),o(null,{sampleCSV:e.value,reset:"warning"===n})))})},AiAPI.prototype.getAppRecipe=function(t,n){var e,o,a;"function"==typeof n&&(e=window.appContext.currentApp.appId,o=window.appContext.liveMode,a=window.appContext.currentApp.keys.datastoreKey,new DatastoreAPI({appId:e,pluginId:"$$appRecipe",instanceId:"$$appRecipe",liveMode:o,writeKey:a}).get("$$appRecipe",function(t,e){t?n(t):n(null,e)}))};
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(o,e){var n,r=Object.keys(o);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(o),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable})),r.push.apply(r,n)),r}function _objectSpread(o){for(var e=1;e\n \n ',this._loadingContainer=i,document.addEventListener("click",function(i){n.lockCP||n._loadingContainer.contains(i.target)||AiAPI.stopLoadingAnimation()})),t?(this._loadingContainer.classList.remove("z-index-0"),this._loadingContainer.classList.add("ai-container-overlay")):(this._loadingContainer.classList.remove("ai-container-overlay"),this._loadingContainer.classList.add("z-index-0")),this._loadingContainer.classList.remove("stop"),document.body.classList.add("fixed-position")},AiAPI.stopLoadingAnimation=function(){this._loadingContainer&&(this._loadingContainer.classList.add("stop"),document.body.classList.remove("fixed-position"))};
"use strict";"undefined"==typeof loggerAPI&&(window.loggerAPI={}),window.loggerAPI.log=function(){var n=0=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){i=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(i)throw o}}}}function _unsupportedIterableToArray(e,n){if(e){if("string"==typeof e)return _arrayLikeToArray(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(t="Object"===t&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,n):void 0}}function _arrayLikeToArray(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,r=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){r=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(r)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z\-0-9]{2,}))$/.test(e)},t.validate=function(){var e=!0;return t.errors.title="",t.errors.email="",t.errors.subject="",t.errors.body="",!t.options||t.options.hideActionText||null!=t.actionItem.title&&""!=t.actionItem.title||(e=!1,t.errors.title="Required"),null==t.actionItem.email||""==t.actionItem.email?(e=!1,t.errors.email="Required"):t.isValidEmail(t.actionItem.email)||(e=!1,t.errors.email="Invalid Email"),null!=t.actionItem.subject&&""!=t.actionItem.subject||(e=!1,t.errors.subject="Required"),null!=t.actionItem.body&&""!=t.actionItem.body||(e=!1,t.errors.body="Required"),e}}]),$app.controller("linkToSocialMediaCtrl",["$scope","$analytics",function(t,e){t.cancel=function(){t.$dialog.close(null)},t.save=function(){t.validate()&&(e.eventTrack("cp/linkToSocialMediaActionItemAdded"),t.$dialog.close(t.actionItem))},t.validate=function(){var e=!0;return t.errors.title="",t.errors.urlError="",!t.options||t.options.hideActionText||null!=t.actionItem.title&&""!=t.actionItem.title||(e=!1,t.errors.title="Required"),null==t.actionItem.url||""==t.actionItem.url?(e=!1,t.errors.urlError="Required"):t.validUrl(t.actionItem.url)||(e=!1,t.errors.urlError="Invalid URL format. Example: http://www.google.com"),e}}]),$app.controller("linkToAppContentCtrl",["$scope","addPluginService","$analytics",function(s,l,e){s.contextOptions={title:"Select Feature"};var c=new DatastoreAPI(appContext.currentApp.appId,"pluginInstances",1,appContext.currentApp.liveMode,appContext.currentApp.keys.datastoreKey);s.getPluginInstances=function(e,t,n){function i(e){c.search({obj:{filter:e,page:n-1,pageSize:t,withDynamicData:!0,recordCount:!0},tag:""},function(e,t){e?console.error(e):(e=t.result||[],s.totalItems=t.totalRecord,s.pluginInstances=s.pluginInstances.concat(e),0===e.length&&(s.notEmptyData=!1),s.notscrolly=!0,s.loading=!1)})}s.loading=!0;var o={$or:[{"$json.title":{$regex:null!=e?e:"",$options:"-i"}}]};if(!e)return i(o);var a,r=[];a={pluginTypeName:e,appId:appContext.currentApp.appId,whitelabelId:window.whitelabelContext.whitelabelId,reload:!l.miniSearchLoaded,fuzzy:.2,fields:["pluginTypeName"]},new Promise(function(n,i){l.searchAppPluginTypes(a,function(e,t){return e?i(e):void n(t)})}).then(function(e){e.plugins.forEach(function(e){r.push({"$json.pluginTypeId":e.pluginTypeId})}),r&&0=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,n=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw n}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,r=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){r=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(r)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z\-0-9]{2,}))$/.test(e)},t.validate=function(){var e=!0;return t.errors.title="",t.errors.email="",t.errors.subject="",t.errors.body="",!t.options||t.options.hideActionText||null!=t.actionItem.title&&""!=t.actionItem.title||(e=!1,t.errors.title="Required"),null==t.actionItem.email||""==t.actionItem.email?(e=!1,t.errors.email="Required"):t.isValidEmail(t.actionItem.email)||(e=!1,t.errors.email="Invalid Email"),null!=t.actionItem.subject&&""!=t.actionItem.subject||(e=!1,t.errors.subject="Required"),null!=t.actionItem.body&&""!=t.actionItem.body||(e=!1,t.errors.body="Required"),e}}]),$app.controller("linkToSocialMediaCtrl",["$scope","$analytics",function(t,e){t.cancel=function(){t.$dialog.close(null)},t.save=function(){t.validate()&&(e.eventTrack("cp/linkToSocialMediaActionItemAdded"),t.$dialog.close(t.actionItem))},t.validate=function(){var e=!0;return t.errors.title="",t.errors.urlError="",!t.options||t.options.hideActionText||null!=t.actionItem.title&&""!=t.actionItem.title||(e=!1,t.errors.title="Required"),null==t.actionItem.url||""==t.actionItem.url?(e=!1,t.errors.urlError="Required"):t.validUrl(t.actionItem.url)||(e=!1,t.errors.urlError="Invalid URL format. Example: http://www.google.com"),e}}]),$app.controller("linkToAppContentCtrl",["$scope","addPluginService","$analytics",function(s,l,e){s.contextOptions={title:"Select Feature"};var c=new DatastoreAPI(appContext.currentApp.appId,"pluginInstances",1,appContext.currentApp.liveMode,appContext.currentApp.keys.datastoreKey);s.getPluginInstances=function(e,t,n){function i(e){c.search({obj:{filter:e,page:n-1,pageSize:t,withDynamicData:!0,recordCount:!0},tag:""},function(e,t){e?console.error(e):(e=t.result||[],s.totalItems=t.totalRecord,s.pluginInstances=s.pluginInstances.concat(e),0===e.length&&(s.notEmptyData=!1),s.notscrolly=!0,s.loading=!1)})}s.loading=!0;var o={$or:[{"$json.title":{$regex:null!=e?e:"",$options:"i"}}]};if(!e)return i(o);var a,r=[];a={pluginTypeName:e,appId:appContext.currentApp.appId,whitelabelId:window.whitelabelContext.whitelabelId,reload:!l.miniSearchLoaded,fuzzy:.2,fields:["pluginTypeName"]},new Promise(function(n,i){l.searchAppPluginTypes(a,function(e,t){return e?i(e):void n(t)})}).then(function(e){e.plugins.forEach(function(e){r.push({"$json.pluginTypeId":e.pluginTypeId})}),r&&0=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,n=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw n}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,o=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){o=!0,r=t},f:function(){try{a||null==e.return||e.return()}finally{if(o)throw r}}}}function _unsupportedIterableToArray(t,n){if(t){if("string"==typeof t)return _arrayLikeToArray(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?_arrayLikeToArray(t,n):void 0}}function _arrayLikeToArray(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=new Array(n);e=s?e(i+1,r+s,a):a(null,u))})}(0,0,function(t,n){t?e&&e(t,null):o.bulkDelete({tag:"events",ids:u.map(function(t){return t.id})},function(t,n){t?e&&e(t,null):e(null,u)})})):e&&e("Missing event key",null):e&&e("invalid params",null)},AnalyticsAPI.prototype.showReports=function(t,n){var e="";window.siteConfig&&window.siteConfig.endPoints&&window.siteConfig.endPoints.appHost&&"sdk"==window.siteConfig.scope&&(e=window.siteConfig.endPoints.appHost);var i=this.pluginId,r=this.instanceId,a=t||{},t=a.eventKey,a=a.aggregates;if(Array.isArray(a)){var o,s=["avg","sum","min","max"],l=_createForOfIteratorHelper(a);try{for(l.s();!(o=l.n()).done;){var u=o.value;if(!s.includes(u.toLowerCase()))return n('"'.concat(u,'" is not a valid aggregation option. Supported options are: ').concat(s.join(", ")))}}catch(t){l.e(t)}finally{l.f()}}window.openDialog({templateUrl:e+"/pages/plugins/pluginControl/analytics/pluginAnalyticsPopup.html",controller:"pluginAnalyticsPopupCtrl",size:"lg",data:{pluginId:i,instanceId:r,series:a,activeEvent:t}},function(t){}),n(null,!0)};var t=AnalyticsAPI.prototype.trackAction,n=AnalyticsAPI.prototype.trackView;AnalyticsAPI.prototype.trackAction=function(){t.apply(this,arguments),"undefined"!=typeof dataLayer&&dataLayer.push&&arguments&&arguments[0]&&window.dataLayer.push({event:"custom_page_view",custom_title:arguments[0],app_id:this.appId})},AnalyticsAPI.prototype.trackView=function(){n.apply(this,arguments),"undefined"!=typeof dataLayer&&dataLayer.push&&arguments&&arguments[0]&&window.dataLayer.push({event:"custom_page_view",custom_title:arguments[0],app_id:this.appId})},AnalyticsAPI.prototype._prepareEvent=function(t){t._titleLowerCase=t.title.toLowerCase()},AnalyticsAPI.prototype._dispatchEvent=function(t,n){n=new CustomEvent("pluginAnalyticsRegisterEvent",{detail:{data:t,options:n}});document.dispatchEvent(n)}}();
"use strict";function ownKeys(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _objectSpread(t){for(var e=1;e()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z\-0-9]{2,}))$/.test(s))||r)?n.push({email:e.toLowerCase()}):e&&(t=/[\!\@\#\$\%\^\&\*\)\(\+\=\.\<\>\{\}\[\]\:\;\'\"\|\~\`\_\-]/g,e=e.split("").map(function(e){return t.test(e)?"\\".concat(e):e}).join(""),n.push({displayName:{$regex:e,$options:"-i"}},{email:{$regex:e,$options:"-i"}}))}),t.push({$or:n})),-1!=i.currentUserStatusFilter&&(e.isActive=1==i.currentUserStatusFilter),i.showAdvancedSearch){i.searchFromDate&&(e.signupDateFrom=i.searchFromDate),i.searchToDate&&(e.signupDateTo=i.searchToDate);var s=[];if(i.searchTags&&i.searchTags.length){for(var r=0;r()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z\-0-9]{2,}))$/.test(s))||r)?n.push({email:e.toLowerCase()}):e&&(t=/[\!\@\#\$\%\^\&\*\)\(\+\=\.\<\>\{\}\[\]\:\;\'\"\|\~\`\_\-]/g,e=e.split("").map(function(e){return t.test(e)?"\\".concat(e):e}).join(""),n.push({displayName:{$regex:e,$options:"i"}},{email:{$regex:e,$options:"i"}}))}),t.push({$or:n})),-1!=i.currentUserStatusFilter&&(e.isActive=1==i.currentUserStatusFilter),i.showAdvancedSearch){i.searchFromDate&&(e.signupDateFrom=i.searchFromDate),i.searchToDate&&(e.signupDateTo=i.searchToDate);var s=[];if(i.searchTags&&i.searchTags.length){for(var r=0;r=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return n=e.done,e},e:function(e){o=!0,s=e},f:function(){try{n||null==r.return||r.return()}finally{if(o)throw s}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);rt.threshold&&(t.missedKeyword=!0)}else t.missedKeyword=!0;f._trackAction("cp/marketplace/search",null,null,{result:t})},f.searchAppPluginTypes=function(n,t){var i=n.pluginTypeName,e=n.appId,r=n.whitelabelId;function a(a){f.getMarketPlacePlugins("",e,r).then(function(e){var n=e.data[0];f.formatPluginLicenses(n),f.logToCrm(n,i,1);var t,e={plugins:n};n=e.plugins,t=new Set(["and","or","to","in","a","the","you","is","are"]),f.miniSearch=new MiniSearch({fields:["pluginTypeName","keywords","description"],storeFields:["pluginTypeId","description","author","awsAPIPublicKey","createdOn","folderName","lastUpdatedOn","license","marketplacepluginTypeId","pluginTypeId","pluginTypeName","price","publishableKey","stripePlan","supportEmail","supportLink","useCount","keywords","token"],boost:{pluginTypeName:3,keywords:2},idField:"pluginTypeId",prefix:!0,processTerm:function(e,n){return t.has(e)?null:e.toLowerCase()},searchOptions:{fuzzy:.3}}),f.miniSearch.addAll(n),f.miniSearchLoaded=!0,a(null,e)})}function l(){var e={prefix:!0};n.fields&&(e.fields=n.fields),void 0!==n.fuzzy&&(e.fuzzy=n.fuzzy),void 0!==n.prefix&&(e.prefix=n.prefix),void 0!==n.filter&&(e.filter=n.filter);e=f.miniSearch.search(i,e);f.checkAndSaveMissedKeywords(i,e),t(null,{plugins:e})}i&&f.miniSearchLoaded?n.reload?a(function(){l()}):l():a(i?function(){l()}:t)},f.instanceExists=function(t,a){var e=window.siteConfig.endPoints.pluginHost+"/"+t.folderName+"/plugin.json?v="+(t.lastUpdatedOn||""),i={isInUse:!1};r.get(e).success(function(e){e.singleton?l.getPluginInstances(t,function(e,n){e?a(e):(0<(n=n.filter(function(e){return e.data.pluginTypeId==t.pluginTypeId})).length&&(i.isInUse=!0,i.matches=n),a(null,i))}):a(null,i)}).error(function(e){a(e)})},f.getPlanType=function(e){var n=null;if(e.stripePlan)try{n=JSON.parse(e.stripePlan)}catch(e){}switch(n.type){case"subscriptions":return"subscriptions";case"onetime":case e.price&&0{i.queue.forEach(e=>{e&&e(t)}),i.loaded=!0,i.queue=[]}))},loadScript:function({url:t,scriptId:e},n=Function()){let i=document.getElementById(e);var a=document.getElementsByTagName("script");if(i||Array.from(a).some(e=>e.src.includes(t.replaceAll("../",""))))return n();const r=document.head||document.body;i=document.createElement("script"),i.id=e||"",i.type="text/javascript",i.src=t,i.onload=n,i.onerror=function(){n(new Error("failed to load script component")),console.error("failed to load script component")},r.appendChild(i)},ratingSystem:{inject:function(){var e,t,n,i;void 0!==buildfire&&(void 0===buildfire.components||void 0===buildfire.components.ratingSystem?(t=function(e){var t=document.head||document.body,n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href="../../../scripts/buildfire/components/ratingSystem/index.min.css",t.appendChild(n);const i=t.querySelector("meta[charset]");i&&i.getAttribute("charset").toLowerCase().includes("utf-8")||console.warn("UTF-8 charset is required for ratingSystem to function properly"),buildfire.components.ratingSystem.injectRatings({isFromWysiwyg:!0})},function(e){for(;e.includes("../");)e=e.replace("../","");for(var t=document.getElementsByTagName("script"),n=0;n{.9<=Math.random()&&buildfire.logger.log({message:e.message,level:"error",category:"BrowserJsException",exception:{colno:e.colno,lineno:e.lineno,message:e.message,stack:e.error&&e.error.stack?e.error&&e.error.stack:"n/a",url:e.filename}}),t("Error: "+e.message," Script: "+e.filename," Line: "+e.lineno," Column: "+e.colno,(e.error,e.error.stack?e.error&&e.error.stack:"n/a"))})},log:function(n,i){n&&"object"==typeof n||(n={}),buildfire.getContext((e,t)=>{n.context||(n.context={}),n.context.pluginId=t?.pluginId,n.context.instanceId=t?.instanceId,n.context.pluginTitle=t?.title,n.tags||(n.tags=[]),n.tags.push("sdkAndPlugins");t=new Packet(null,"logger.log",n);buildfire._sendPacket(t,i)})}},_callbacks:{},parseQueryString:function(e){for(var t=(e||window.location.search.substring(1)).split("&"),n=new Object,i=0;i{return e?console.error(e):void(t&&"sdk"===t.scope?(n=(e,t)=>{var n,i;e&&console.error(e),window.pluginJson=t,buildfire._cssInjection.handleCssLayoutInjection(t),t&&t.control&&t.control.language&&t.control.language.enabled&&(n=(e,t)=>{e&&console.error(e),window.pluginLanguageJson=t,buildfire.language.handleLanguageSettings(window.pluginJson,t)},i=`../${t.control.language.languageJsonPath}`,fetch(i).then(e=>e.json()).then(e=>{n(null,e)}).catch(e=>{n(e,null)}))},t=`../plugin.json?v=${(new Date).getTime()}`,fetch(t).then(e=>e.json()).then(e=>{n(null,e)}).catch(e=>{n(e,null)})):document.write('');\n\t}\n\n\t//Add Lory CSS\n\tvar style = document.getElementById('loryInjectedStyle');\n\tif (style) document.head.removeChild(style);\n\n\tstyle = document.createElement('style');\n\tstyle.id = 'loryInjectedStyle';\n\tstyle.innerHTML += ' .loryFrame {position: relative;font-size: 0; line-height: 0; overflow: hidden; white-space: nowrap;}';\n\tstyle.innerHTML += ' .loryFrame li { position: relative; display: inline-block; height: 100%;}';\n\tstyle.innerHTML += ' .lorySlides { display: inline-block;}';\n\tstyle.innerHTML += ' .loryPercentage .lorySlides { display: block; padding: 0px;}';\n\tstyle.innerHTML += ' .loryPercentage li { width: 100%;}';\n\tstyle.innerHTML += ' .js_slide { text-align: center; position: relative; max-height: 380px; vertical-align: top; }';\n\tstyle.innerHTML += ' .js_slide img { max-height: 380px; width: auto !important; margin: 0 auto }';\n\tstyle.innerHTML += ' .js_slide.static_slide { display: none }';\n\tstyle.innerHTML += ' .js_slide.static_slide.active { display: block }';\n\n\tdocument.head.appendChild(style);\n})();\n// This is the class that will be used in the mobile\n//{selector:selector, items:items, layout:layout, speed:speed}\nbuildfire.components.carousel.view = function (options) {\n\tlet self = this;\n\tthis.config = this.mergeSettings(options);\n\tthis._initDimensions(self.config.layout);\n\tthis.selector = typeof this.config.selector === 'string' ? document.querySelector(this.config.selector) : this.config.selector;\n\tthis._attachEventListeners();\n\tif (options.items && options.items.length > 0) {\n\t\tthis._applyConfigurations(options, (err, result) => {\n\t\t\tif (result.shouldInitializeLory) { // loryCarousel\n\t\t\t\tself.init();\n\t\t\t} else {\n\t\t\t\tself._renderStaticSlides(options.items);\n\t\t\t}\n\t\t});\n\t\tif (options.selector) {\n\t\t\toptions.selector.style.display = '';\n\t\t} else {\n\t\t\tconsole.error('Selector element should be provided');\n\t\t}\n\t\t\n\t} else {\n\t\tif (options.selector) {\n\t\t\toptions.selector.style.display = 'none';\n\t\t} else {\n\t\t\tconsole.error('Selector element should be provided');\n\t\t}\n\t}\n};\nbuildfire.components.carousel.view.lastCarouselTimer = null;\n// Carousel view methods\nbuildfire.components.carousel.view.prototype = {\n\tlastImage: null,\n _applyConfigurations: function(options, callback) {\n\t\tlet self = this;\n\t\tlet { items, autoInterval, order, display } = options;\n\t\tif (buildfire.components.carousel.view.lastCarouselTimer) {\n\t\t\tclearInterval(buildfire.components.carousel.view.lastCarouselTimer);\n\t\t\tbuildfire.components.carousel.view.lastCarouselTimer = null;\n\t\t}\n\t\tlet isHome = buildfire.getFrameType() == 'LAUNCHER_PLUGIN';\n\t\tlet storagePlace = (isHome) ? \"carouselLastImageHome\" : \"carouselLastImage\";\n\t\tif (order == 0 && display == 1 && items.length > 1) {\n\t\t\tbuildfire.localStorage.getItem(storagePlace, function(err, res) {\n\t\t\t\tlet images = items;\n\t\t\t\tlet sendIndex = 0;\n\t\t\t\tlet item = null;\n\t\t\t\tif (res == null) {\n\t\t\t\t\titem = items[0];\n\t\t\t\t} else {\n\t\t\t\t\tlet index = Number(res);\n\t\t\t\t\tif (index == -1 || index == items.length - 1) item = items[0];\n\t\t\t\t\telse {item = items[index + 1]; sendIndex = index + 1;}\n\t\t\t\t}\n\t\t\t\tself.lastImage = item;\n\t\t\t\tbuildfire.localStorage.setItem(storagePlace, sendIndex, function(e, r) {\n\t\t\t\t\tif (autoInterval != 0) buildfire.components.carousel.view.lastCarouselTimer = setInterval(self._changeImage.bind(self), self.config.autoInterval, images, false);\n\t\t\t\t});\n\t\t\t\tcallback(null, {shouldInitializeLory: false});\n\t\t\t});\n\t\t} else if (order == 1 && display == 1 && items.length > 1) {\n\t\t\tif (autoInterval != 0) {\n\t\t\t\tbuildfire.components.carousel.view.lastCarouselTimer = setInterval(this._changeImage.bind(this), this.config.autoInterval, items, true);\n\t\t\t}\n\t\t\titem = items[Math.floor(Math.random() * items.length)];\n\t\t\tthis.lastImage = item;\n\t\t\tbuildfire.localStorage.removeItem(storagePlace);\n\t\t\tcallback(null, {shouldInitializeLory: false});\n\t\t} else if (order == 1 && display == 0 && items.length > 1) {\n\t\t\tthis._randomizeArray(items);\n\t\t\tbuildfire.localStorage.removeItem(storagePlace);\n\t\t\tcallback(null, {shouldInitializeLory: true});\n\t\t} else if (display == 1) {\n\t\t\tcallback(null, {shouldInitializeLory: false});\n\t\t} else {\n\t\t\tcallback(null, {shouldInitializeLory: true});\n\t\t}\n\t},\n\t_randomizeArray: function (images) {\n this._shuffle(images, null, null);\n let imagesCopy = Array.from(images);\n this._shuffle(imagesCopy, null, images[images.length - 1]);\n images.push(...imagesCopy);\n this._shuffle(imagesCopy, images[0], images[images.length - 1]);\n images.push(...imagesCopy);\n },\n\t_shuffle: function (images, first, last) {\n let j, x, i;\n for (i = images.length - 1; i > 0; i--) {\n j = Math.floor(Math.random() * (i + 1));\n x = images[i];\n images[i] = images[j];\n images[j] = x;\n }\n if (last == images[0] || first == images[images.length - 1]) return this._shuffle(images, first, last);\n else return images;\n },\n\t_changeImage: function (carouselImages, random) {\n let self = this;\n\t\tlet carouselImage = null;\n if (random) {\n this._changeStaticSlides(carouselImages, true);\n } else {\n let index = carouselImages.indexOf(this.lastImage);\n let sendIndex = 0;\n if (index == -1 || index == carouselImages.length - 1) {\n\t\t\t\tcarouselImage = carouselImages[0];\n\t\t\t} else {\n\t\t\t\tcarouselImage = carouselImages[index + 1]; \n\t\t\t\tsendIndex = index + 1;\n\t\t\t}\n this.lastImage = carouselImage;\n let isHome = buildfire.getFrameType() == 'LAUNCHER_PLUGIN';\n let storagePlace = (isHome) ? \"carouselLastImageHome\" : \"carouselLastImage\";\n buildfire.localStorage.setItem(storagePlace, sendIndex, function(e, r) {\n self._changeStaticSlides(carouselImages);\n });\n }\n },\n\t_changeStaticSlides: function (carouselImages, random) {\n\t\tlet activeSlide = document.querySelector('.js_slide.static_slide.active');\n\t\tlet siblingSlide = activeSlide.nextSibling;\n\t\tif (random) {\n\t\t\tlet nextSlide = document.querySelectorAll('.js_slide.static_slide')[Math.floor(Math.random() * carouselImages.length)];\n\t\t\tif (nextSlide.children[0].src == activeSlide.children[0].src) {\n\t\t\t\tthis._changeStaticSlides(carouselImages, true);\n\t\t\t} else {\n\t\t\t\tactiveSlide.classList.remove('active');\n\t\t\t\tnextSlide.classList.add('active');\n\t\t\t}\n\t\t} else {\n\t\t\tactiveSlide.classList.remove('active');\n\t\t\tif (siblingSlide) {\n\t\t\t\tsiblingSlide.classList.add('active');\n\t\t\t} else {\n\t\t\t\tdocument.querySelector('.js_slide.static_slide').classList.add('active');\n\t\t\t}\n\t\t}\n\t},\n\t_renderStaticSlides: function (carouselImages) {\n\t\tlet self = this;\n\t\tthis.selector.innerHTML = '';\n\t\tcarouselImages.forEach((carouselImage, index) => {\n\t\t\tlet slide = document.createElement('div');\n\t\t\tslide.classList.add('js_slide', 'static_slide');\n\t\t\tif (index == 0 && !self.lastImage) {\n\t\t\t\tslide.classList.add('active');\n\t\t\t} else if (self.lastImage && self.lastImage.iconUrl == carouselImage.iconUrl) {\n\t\t\t\tslide.classList.add('active');\n\t\t\t}\n\t\t\tslide.addEventListener('click', function () {\n\t\t\t\tbuildfire.actionItems.execute(carouselImage, function (err, result) {\n\t\t\t\t\tif (err) {\n\t\t\t\t\t\tconsole.warn('Error opening slider action: ', err);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\n\t\t\tlet options = {\n\t\t\t\titem: carouselImage,\n\t\t\t\tslide: slide\n\t\t\t}\n\t\t\tif (self.layout == 'Fit') {\n\t\t\t\tself._resizeImage(options, (err, result) => {\n\t\t\t\t\tif (err) console.error('Error occurred while resizing image: ', err);\n\t\t\t\t\tself.selector.appendChild(slide);\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tself._cropImage(options, (err, result) => {\n\t\t\t\t\tif (err) console.error('Error occurred while cropping image: ', err);\n\t\t\t\t\tself.selector.appendChild(slide);\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tlet activeSlide = document.querySelector('.js_slide.static_slide.active');\n\t\tif (!activeSlide) {\n\t\t\tdocument.querySelector('.js_slide.static_slide').classList.add('active');\n\t\t}\n\t},\n\tmergeSettings: function (options) {\n\t\tvar settings = {\n\t\t\tselector: '.js_percentage',\n\t\t\titems: [],\n\t\t\tlayout: null,\n\t\t\tspeed: 200,\n\t\t\tloop: true,\n\t\t\tautoInterval: 5 * 1000,\n\t\t\tdisplay: 0,\n\t\t\torder: 0\n\t\t};\n\t\tvar userSettings = options;\n\t\tfor (var attrName in userSettings) {\n\t\t\tsettings[attrName] = userSettings[attrName];\n\t\t}\n\t\treturn settings;\n\t},\n\tinit: function () {\n\t\tif (!this.selector) {\n\t\t\tthrow ('selector not found');\n\t\t\treturn;\n\t\t}\n\t\t// Add min-height to carousel to prevent it from pushing content down\n\t\tthis.selector.style['min-height'] = this._minHeight;\n\n\t\tvar self = this;\n\n\t\tfunction validateLauncherCarousel() {\n\t\t\tbuildfire.getContext(function (err, result) {\n\t\t\t\tif (result && result.device && result.device.platform && result.device.platform.toLowerCase() == 'ios' && buildfire.getFrameType() == 'LAUNCHER_PLUGIN') {\n\t\t\t\t\tbuildfire.navigation.onAppLauncherActive(function () {\n\t\t\t\t\t\tself._applySlider();\n\t\t\t\t\t}, true);\n\t\t\t\t\tbuildfire.navigation.onAppLauncherInactive(function () {\n\t\t\t\t\t\tself._destroySlider();\n\t\t\t\t\t}, true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tif (this.config.items && this.config.items.length > 0) {\n\t\t\tthis._renderHTMLItems(function () {\n\t\t\t\tself._applySlider();\n\t\t\t\tvalidateLauncherCarousel();\n\t\t\t});\n\t\t} else {\n\t\t\tself._applySlider();\n\t\t\tvalidateLauncherCarousel();\n\t\t}\n\t},\n\t_destroySlider: function () {\n\t\tif (this.timerInterval) {\n\t\t\tclearInterval(this.timerInterval);\n\t\t\tthis.timerInterval = null;\n\t\t}\n\t},\n\t_applySlider: function () {\n\t\tif (!this.lorySlider) {\n\t\t\tthis.lorySlider = lory(this.config.selector, {\n\t\t\t\tclassNameSlideContainer: this.config.classNameSlideContainer || 'js_slides',\n\t\t\t\tclassNameFrame: this.config.classNameFrame || 'js_frame',\n\t\t\t\tease: 'ease',\n\t\t\t\trewindSpeed: 600,//ms\n\t\t\t\tslideSpeed: this.config.speed,//ms\n\t\t\t\tslidesToScroll: this.config.slidesToScroll || 1,\n\t\t\t\tinfinite: this.config.items.length > 1 ? 1 : 0,\n\t\t\t\tenableMouseEvents: true\n\t\t\t});\n\t\t}\n\n\t\tif (this.config.loop && this.config.items && this.config.items.length > 1) {\n\t\t\tvar self = this;\n\n\t\t\tif (this.timerInterval) {\n\t\t\t\tclearInterval(this.timerInterval);\n\t\t\t\tthis.timerInterval = null;\n\t\t\t}\n\n\t\t\tthis.timerInterval = setInterval(function () {\n\t\t\t\tself.lorySlider.next();\n\t\t\t}, this.config.autoInterval);\n\t\t}\n\t},\n\t_renderHTMLItems: function (callback) {\n\t\tvar self = this;\n\n\t\twhile (this.selector.firstChild) {\n\t\t\tthis.selector.removeChild(this.selector.firstChild);\n\t\t}\n\n\t\tthis.sliderFrame = document.createElement('div');\n\t\t['loryFrame', 'js_frame'].forEach(function (cname) {\n\t\t\tself.sliderFrame.classList.add(cname);\n\t\t});\n\n\t\tthis.slideContainer = document.createElement('ul');\n\t\t['lorySlides', 'js_slides'].forEach(function (cname) {\n\t\t\tself.slideContainer.classList.add(cname);\n\t\t});\n\n\t\tthis._loadImages(this.config.items, function () {\n\t\t\t['slider', 'js_percentage', 'loryPercentage'].forEach(function (cname) {\n\t\t\t\tself.selector.classList.add(cname);\n\t\t\t});\n\n\t\t\tself.sliderFrame.appendChild(self.slideContainer);\n\t\t\tself.selector.appendChild(self.sliderFrame);\n\n\t\t\tcallback();\n\t\t});\n\t},\n\t_loadImages: function (items, callback) {\n\t\tvar self = this;\n\n\t\tvar itemsLength = items.length;\n\t\tvar pending = itemsLength;\n\n\t\tif (itemsLength == 0) {\n\t\t\tcallback();\n\t\t}\n\n\t\tfor (var i = 0; i < itemsLength; i++) {\n\t\t\tthis._appendItem(items[i], function (itemSlide) {\n\t\t\t\tpending--;\n\t\t\t\tself.slideContainer.appendChild(itemSlide);\n\n\t\t\t\tif (pending == 0) {\n\t\t\t\t\tcallback();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t},\n\t_appendItem: function (item, callback) {\n\t\tlet self = this;\n\t\tlet slide = document.createElement('li');\n\t\tslide.classList.add('js_slide');\n\n\t\tslide.addEventListener('click', function () {\n\t\t\tif (self.preventClicks) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tbuildfire.actionItems.execute(item, function (err, result) {\n\t\t\t\tif (err) {\n\t\t\t\t\tconsole.warn('Error opening slider action: ', err);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tlet options = { item, slide }\n\t\tif (self.layout == 'Fit') {\n\t\t\tthis._resizeImage(options, (err, result) => {\n\t\t\t\tif (err) console.error('Error occurred while cropping image: ', err);\n\t\t\t\tcallback(slide);\n\t\t\t});\n\t\t} else {\n\t\t\tthis._cropImage(options, (err, result) => {\n\t\t\t\tif (err) console.error('Error occurred while cropping image: ', err);\n\t\t\t\tcallback(slide);\n\t\t\t});\n\t\t}\n\t},\n\t// allows you to append a single item or an array of items\n\tappend: function (items) {\n\t\tif (!items)\n\t\t\treturn;\n\t\telse if (!(items instanceof Array) && typeof(items) == 'object')\n\t\t\titems = [items];\n\n\t\tif (items && items instanceof Array && items.length) {\n\t\t\tfor (var i = 0; i < items.length; i++) {\n\t\t\t\tthis.config.items.push(items[i]);\n\t\t\t}\n\t\t\tvar self = this;\n\t\t\tif (this.config.display == 0) {\n\t\t\t\tthis.slideContainer.innerHTML = '';\n\t\t\t\tthis._loadImages(this.config.items, function () {\n\t\t\t\t\tif (self.config.items.length > 1 && !self.timerInterval) {\n\t\t\t\t\t\tself.lorySlider = null;\n\t\t\t\t\t\tself._applySlider();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tself.lorySlider.setup();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis._renderStaticSlides(this.config.items);\n\t\t\t}\n\t\t}\n\t},\n\tloadItems: function (items, appendItems) {\n\t\tif (appendItems) {\n\t\t\tthis.append(items);\n\t\t} else {\n\t\t\tlet self = this;\n\t\t\tthis.config.items = items;\n\t\t\tif (this.config.display == 0) {\n\t\t\t\tif (this.config.order == 1) {\n\t\t\t\t\tthis._randomizeArray(items);\n\t\t\t\t}\n\t\t\t\tthis.slideContainer.innerHTML = '';\n\t\t\t\tthis._loadImages(items, function () {\n\t\t\t\t\tif (items.length > 1 && !self.timerInterval) {\n\t\t\t\t\t\tself.lorySlider = null;\n\t\t\t\t\t\tself._applySlider();\n\t\t\t\t\t} else if (items.length <= 1 && self.timerInterval) {\n\t\t\t\t\t\tself._destroySlider();\n\t\t\t\t\t\tself.lorySlider = null;\n\t\t\t\t\t\tself._applySlider();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tself.lorySlider.setup();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tif (buildfire.components.carousel.view.lastCarouselTimer) {\n\t\t\t\t\tclearInterval(buildfire.components.carousel.view.lastCarouselTimer);\n\t\t\t\t\tbuildfire.components.carousel.view.lastCarouselTimer = null;\n\t\t\t\t}\n\t\t\t\tthis._renderStaticSlides(items);\n\t\t\t\tif (items.length > 1) {\n\t\t\t\t\tbuildfire.components.carousel.view.lastCarouselTimer = setInterval(this._changeImage.bind(this), this.config.autoInterval, items, this.config.order);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\t_initDimensions: function (layout) {\n\t\tthis.width = window.innerWidth;\n\t\tthis.layout = layout;\n\t\tlayout = layout || 'WideScreen';\n\t\tif (layout == 'WideScreen') {\n\t\t\tthis.height = Math.ceil(9 * this.width / 16);\n\t\t\tthis.aspect = '16:9';\n\t\t} else if (layout == 'Square') {\n\t\t\tthis.height = this.width;\n\t\t\tthis.aspect = '1:1';\n\t\t} else if (layout == 'Cinema') {\n\t\t\tthis.height = Math.ceil(1 * this.width / 2.39);\n\t\t\tthis.aspect = '2.39:1';\n\t\t} else if (layout == 'MobileScreen' || layout == 'Fit') {\n\t\t\tthis.height = (window.innerHeight / this.width) * this.width;\n\t\t\tthis.aspect = '9:16';\n\t\t} else {\n\t\t\tthis.height = Math.ceil(9 * this.width / 16);\n\t\t}\n\n\t\tthis.cssWidth = this.width + 'px';\n\t\tif (this.height > 380) {\n\t\t\tthis.cssHeight = '380px';\n\t\t} else {\n\t\t\tthis.cssHeight = this.height + 'px';\n\t\t}\n\n\t\t// Set Min height on carousel so doesn't push content down on load.\n\t\tthis._minHeight = this.cssHeight;\n\t},\n\t_cropImage: function(options, callback) {\n\t\tlet self = this;\n\t\tlet { item, slide } = options;\n\t\tbuildfire.imageLib.local.cropImage(item.iconUrl, {\n\t\t\twidth: this.width,\n\t\t\theight: this.height,\n\t\t\taspect: this.aspect,\n\t\t\tsize: 'full_width',\n\t\t}, function (err, result) {\n\t\t\tif (!err) {\n\t\t\t\tlet image = document.createElement('img');\n\t\t\t\tlet backgroundImage = document.createElement('img');\n\t\t\t\timage.src = result;\n\t\t\t\tbackgroundImage.src = buildfire.imageLib.cropImage(item.iconUrl, {\n\t\t\t\t\theight: Math.ceil(self.height / 20),\n\t\t\t\t\twidth: Math.ceil(self.width / 20),\n\t\t\t\t\tblur: 40,\n\t\t\t\t});\n\t\t\t\timage.alt = backgroundImage.alt = item.title || '';\n\t\t\t\tbackgroundImage.className = 'blurred-background-image';\n\t\t\t\tbackgroundImage.setAttribute('style', `width: 100% !important; height: ${self.height}px; top: 50%; left: 50%; transform: translate(-50%, -50%);`);\n\t\t\t\tslide.style.overflow = 'hidden';\n\t\t\t\timage.style.transform = 'translateZ(0)';\n\t\t\t\tif (self.height > 380) {\n\t\t\t\t\tslide.appendChild(backgroundImage);\n\t\t\t\t}\n\t\t\t\tslide.appendChild(image);\n\t\t\t\tcallback(null, result);\n\t\t\t} else {\n\t\t\t\tcallback(err, null);\n\t\t\t}\n\t\t});\n\t},\n\t_resizeImage: function(options, callback) {\n\t\tlet self = this;\n\t\tlet { item, slide } = options;\n\t\tbuildfire.imageLib.local.resizeImage(item.iconUrl, {\n\t\t\theight: self.height,\n\t\t}, function (err, result) {\n\t\t\tif (!err) {\n\t\t\t\tlet image = document.createElement('img');\n\t\t\t\tlet backgroundImage = document.createElement('img');\n\t\t\t\timage.src = result;\n\t\t\t\tbackgroundImage.src = buildfire.imageLib.cropImage(item.iconUrl, {\n\t\t\t\t\theight: Math.ceil(self.height / 20),\n\t\t\t\t\twidth: Math.ceil(self.width / 20),\n\t\t\t\t\tblur: 40,\n\t\t\t\t});\n\t\t\t\timage.alt = backgroundImage.alt = item.title || '';\n\t\t\t\tbackgroundImage.className = 'blurred-background-image';\n\t\t\t\tbackgroundImage.setAttribute('style', `width: 100% !important; height: ${self.height}px; top: 50%; left: 50%; transform: translate(-50%, -50%);`);\n\t\t\t\timage.style.transform = 'translateZ(0)';\n\t\t\t\tslide.setAttribute('style', `vertical-align: middle; overflow: visible;`);\n\t\t\t\tslide.appendChild(backgroundImage);\n\t\t\t\tslide.appendChild(image);\n\t\t\t\tcallback(null, result);\n\t\t\t} else {\n\t\t\t\tcallback(err, null);\n\t\t\t}\n\t\t});\n\t},\n\t_attachEventListeners: function() {\n\t\tlet self = this;\n\t\t// add event listeners to prevent immediate click event after scrolling \n\t\tthis.selector.addEventListener('on.lory.touchmove', function () {\n\t\t\tif (!self.preventClicks) {\n\t\t\t\tself.preventClicks = true;\n\t\t\t}\n\t\t});\n\t\tthis.selector.addEventListener('on.lory.touchend', function () {\n\t\t\tsetTimeout(() => {\n\t\t\t\tself.preventClicks = false;\n\t\t\t}, 0);\n\t\t});\n\t}\n};\n"]}
\ No newline at end of file
+{"version":3,"sources":["../sdk/scripts/buildfire.js","../sdk/scripts/lory/lory.min.js","../sdk/scripts/buildfire/components/carouselLight/carouselLight.js"],"names":["Packet","id","cmd","data","this","Date","toISOString","Math","random","instanceId","buildfire","isFileServer","url","indexOf","isWidget","window","location","href","isWidgetService","isWeb","callback","isWebFromContext","context","device","platform","toLowerCase","console","error","protocol","getContext","err","callbackContext","warn","_lazyScriptsQueues","lazyLoadScript","relativeScriptsUrl","scriptId","readyCallback","loaded","queue","lazyQueue","push","length","type","loadScript","forEach","Function","script","document","getElementById","scripts","getElementsByTagName","Array","from","some","s","src","includes","replaceAll","parentElement","head","body","createElement","onload","onerror","Error","appendChild","ratingSystem","inject","components","link","rel","charset","querySelector","getAttribute","injectRatings","isFromWysiwyg","replace","i","hasScript","onreadystatechange","logger","attachRemoteLogger","tag","buildFireAppDebuggerScript","header","removeChild","prompt","init","originalConsoleError","args","log","message","undefined","level","category","addEventListener","event","exception","colno","lineno","stack","filename","options","pluginId","pluginTitle","title","tags","p","_sendPacket","_callbacks","parseQueryString","str","vars","search","substring","split","obj","Object","pair","decodeURIComponent","index","key","value","parseMetaOptions","content","section","eventManager","events","add","handler","allowMultipleHandlers","clear","eh","splice","trigger","e","_context","removeEventListener","_postMessageHandler","appearance","insertHTMLAttributes","attachCSSFiles","localStorage","overrideNativeLocalStorage","wysiwyg","extend","pathname","enablePluginJsonLoad","scope","pluginJson","_cssInjection","handleCssLayoutInjection","control","language","enabled","pluginLanguageJson","handleLanguageSettings","languageJsonPath","fetch","then","response","json","res","catch","getTime","write","_whitelistedCommands","source","packet","JSON","parse","origin","sequence","parent","apply","result","newPacket","_parentPost","originInstanceId","timeout","command","resendAttempts","isDataStoreRetry","isGetContextRetry","setTimeout","d","clearTimeout","fid","sanitize","$$hashKey","postMessage","parsedQuerystring","appcontext","getGlobalSettings","navigation","navigateTo","pluginData","pluginTypeId","folderName","queryString","navigateToSocialWall","encodedHeaderContent","wallUserIds","wid","sort","reverse","join","headerContentHtml","encodeURIComponent","predefinedPluginIds","community","premium_social","social","orderedPluginIds","pluginTypeOrder","orderIndex","navigate","cb","status","navigateHome","scrollTop","openWindow","target","openIn","info","_goBackOne","onBackButtonClick","restoreBackButtonClick","goBack","makeSafeLinks","element","t","anchors","querySelectorAll","setAttribute","evt","preventDefault","navigateEmulator","onAppLauncherActive","onAppLauncherInactive","triggerOnAppLauncherActive","triggerOnAppLauncherInactive","onPluginOpened","triggerOnPluginOpened","getBackNavigationInstanceId","qs","backnavigationinstance","navigateToTab","getFrameType","PLUGIN_STRING_ENUM","PLUGIN_TYPE_ENUM","ready","_defaultTheme","appName","colors","backgroundColor","bodyText","dangerTheme","defaultTheme","footerMenuBackgroundColor","footerMenuIconColor","headerText","icons","infoTheme","primaryTheme","successTheme","titleBar","titleBarTextAndIcons","warningTheme","fontId","fontName","_setFontUrl","appTheme","isCustomFont","fontUrl","endPoints","pluginRootHost","fontFolderPath","appId","fontFileName","fontLastUpdatedOn","getAppTheme","getWidgetTheme","widgetTheme","_forceCSSRender","html","style","innerHTML","navigator","appVersion","nameOffset","ix","nAgt","userAgent","browserName","fullVersion","parseFloat","majorVersion","parseInt","os","verOffset","lastIndexOf","toUpperCase","isNaN","vendor","opera","match","maxTouchPoints","footerMenu","settings","turnOnFooterMenu","getCSSFiles","files","base","disableBootstrap","disableTheme","enableMDTheme","disableFontIcons","disableAppStyles","styleElement","applyMDTheme","css","fontFormat","theme","bfWidgetTheme","_getCommonCss","iconPack","fontFilePath","_attachAppCSSFiles","attachFontIcons","onUpdate","_sharedStyle","disableFastClickOnLoad","attachFastClick","path","references","j","ref","FastClick","attach","applyFastClick","attachAppThemeCSSFiles","liveMode","appHost","cssUrl","CSSBusterCounter","attachLocalAppThemeCSSFiles","attachCustomAppCSSUrl","attachLocalCustomAppCSSUrl","linkElement","_resizedTo","autosizeContainer","height","max","documentElement","clientHeight","scrollHeight","offsetHeight","setHeaderVisibility","triggerOnUpdate","appThemeCSSElement","customAppCSSElement","dynamic","triggerContextChange","contextProperty","titlebar","show","hide","isVisible","setText","navbar","sideMenu","open","close","fullScreenMode","enable","disable","lightBodyText","startsWith","analytics","trackAction","actionName","metadata","trackView","registerEvent","bulkRegisterEvents","unregisterEvent","bulkUnregisterEvents","keys","showReports","params","datastore","get","tagType","getWithDynamicData","withDynamicData","getById","save","insert","checkDuplicate","checkDuplicateType","bulkInsert","arrayObj","constructor","code","update","searchAndUpdate","delete","bulkDelete","ids","filter","onRefresh","triggerOnRefresh","disableRefresh","userData","userToken","userTokenType","hasIndex","_buildfire","filterKeys","validKeys","$text","$search","stringify","aggregate","publicData","appData","_isTagValid","isTagValid","imageLib","ENUMS","SIZES","xxs","xs","m","l","xl","xxl","720","1080","1440","1920","2560","full_width","findNearest","half_width","third_width","fourth_width","quarter_width","fifth_width","sixth_width","ratio","size","VALID_SIZES","innerWidth","ASPECT_RATIOS","1:1","4:3","16:9","9:16","11:5","4:1","2.39:1","VALID_RATIOS","showDialog","isProdImageServer","resizeImage","imageCdnHandler","forceImgix","_imgix","_cloudImg","isSupportedUrl","width","disablePixelRation","disablePixelRatio","devicePixelRatio","innerHeight","aspect","sizes","ratios","blur","floor","constructUrl","method","_handleElement","cropImage","_getLocalPath","tagName","setProperty","removeProperty","_handleBgImage","applyStyle","img","Image","ele","localPath","requestAnimationFrame","string","extension","hash","charCodeAt","pluginHost","getCompression","c","test","local","_parser","localImageLibPath","parseFileFromUrl","sections","toLocalPath","localURL","canvas","ctx","drawImage","toDataURL","onLine","dim","offset","x","y","_transformToImgix","baseImgUrl","hasQueryString","_imgixWhitelistedUrls","http://imageserver.prod.s3.amazonaws.com","http://s3-us-west-2.amazonaws.com/imageserver.prod","http://pluginserver.buildfire.com","http://s3.amazonaws.com/Kaleo.DevBucket","http://s3-us-west-2.amazonaws.com/imagelibserver","http://s3-us-west-2.amazonaws.com/pluginserver.uat","whitelistedUrl","colorLib","onchange","packetData","_triggerOnChange","notifications","alert","buttonName","okButton","text","confirm","buttonLabels","confirmButton","cancelButton","beep","vibrate","dialog","confirmButtonText","actionButtonCallbacks","actionButtons","button","action","selectedButton","toast","actionButton","assign","actionClicked","bookmarks","_getParameterByName","name","results","RegExp","exec","param","getAll","actionItems","actionItem","execute","list","create","iconUrl","history","label","onPop","triggerOnPop","pop","messaging","sendMessageToControl","sendMessageToWidget","onReceivedMessage","sendMessageToService","broadcast","onReceivedBroadcast","pluginInstance","showCreatePluginInstancesDialog","skipPluginInstances","clone","deeplink","getData","_data","dld","template","setData","createLink","root","generateUrl","registerDeeplink","deeplinkData","_self","deeplinkItem","deeplinkId","imageUrl","pluginInstanceId","string1","array1","getDeeplink","searchOptions","_buildfire.index.string1","_buildfire.index.array1.string1","getAllDeeplinks","pageSize","unregisterDeeplink","spinner","auth","login","logout","getCurrentUser","onLogin","triggerOnLogin","user","onLogout","triggerOnLogout","openProfile","userId","getUserProfile","getUserProfiles","getUsersByEmail","getUserPictureUrl","email","username","qString","authUrl","authHost","showUsersSearchDialog","showTagsSearchDialog","assignUserTags","keepSessionAlive","searchUsers","getDeletedUsers","fromDate","_buildfire.index.date1","$gte","deletedUsers","map","deletedOn","date1","calendar","addEvent","share","messageObj","onAppBackgrounded","onAppResumed","triggerOnAppBackgrounded","triggerOnAppResumed","isKeyboardVisible","classList","contains","onKeyboardShow","onKeyboardHide","triggerKeyboardWillShow","keyboardHeight","triggerKeyboardWillHide","remove","contacts","geo","getCurrentPosition","watchPosition","onPositionChange","position","clearWatch","watchId","calculateDistance","start","end","R","unitSystem","decimalPlaces","dLat","degreesToRadians","latitude","dLon","longitude","lat1","lat2","a","sin","cos","atan2","sqrt","round","decimals","Number","degrees","PI","startTracking","isTracking","stopTracking","session","addUsers","removeUsers","updateInfo","getCurrentUserSessions","enableTrackability","isTrackable","disableTrackability","startWatch","sessionId","generatedWatchId","now","_triggerOnSessionWatchChange","stopWatch","_updateLastKnownLocation","setItem","getItem","val","removeItem","input","showTextDialog","showListDialog","imagePreviewer","notes","openDialog","onSeekTo","triggerOnSeekTo","getByItemId","dynamicBlocks","requestWidgetContext","onReceivedWidgetContextRequest","expressions","_prepareContext","_cleanseContext","dynamicEngine","arguments","imageContainer","targets","VALID_TYPES","dataset","handleContentExecution","requestPluginCustomExpressions","onReceivedCustomExpressionsRequest","getCustomExpressions","request","_mergeContext","appUser","expressionsContext","newContext","cleansedContext","sdk","_dynamicEngineQueue","_htmlContainers","_getDynamicEngine","_executeDynamicEngineQueue","evaluate","container","innerText","children","expressionHtmlContainers","expression","find","item","tempElement","evaluatedExpression","elements","attributes","cleanedName","attributeName","slice","removeAttribute","appDatasources","injectPluginStyles","tinymcePluginStylesElement","tinymcePluginStyles","appContext","originalTinymceInit","tinymce","isBuildfire","bind","_bfInitialize","images_dataimg_filter","hasAttribute","dynamicExpressionsEnabled","bf_dynamic_expressions","originalSetup","setup","editor","dynamicExpressionsActivated","originalSetContent","setContent","_syncExpressionButtonActivation","EXPRESSION_HTML","_injectExpressionNode","currentContent","dom","doc","getContent","div","_restoreCursorPosition","selection","collapse","execCommand","select","checkExpressionStatus","isNotDirty","fire","_removeExpressionNode","on","scriptElm","getDoc","allLayouts","styleElementsInBody","layout","layoutName","classes","expressionImage","className","prepend","keyupListenerDelay","ui","registry","addMenuItem","icon","onAction","shortcut","selectedNode","getNode","insertAdjacentHTML","addContextMenu","bfLayout","insertContent","content_style","content_css","splittedStyleFiles","menubar","userMenu","menu","edit","items","view","format","tools","ai","splittedPlugins","defaultPlugins","plugins","concat","defaultToolbar","toolbar","toolbarGroup","extended_valid_elements","supportedElement","toolbar_mode","skin","contextmenu","fontsize_formats","custom_elements","convert_urls","cssInjection","layouts","activeLayoutTag","_handleDataStoreActiveLayoutResponse","activeLayout","design","selectedLayout","cssPath","activeLayoutStyleElement","_attachActiveLayoutCSSFile","cssContent","_attachActiveLayoutCSSContent","$set","languageTag","getLanguage","strings","mergeUpdatedDefaultStrings","prepareDataObjectToRead","_strings","injectStrings","_handleDataStoreLanguageSettingsResponse","sectionKey","labelKey","labels","defaultValue","bfElements","_handleNode","watch","dbSection","defaultSection","hasOwnProperty","hasExpression","_onUpdate","reload","stringKey","stringKeys","onStringsReady","getStringValue","stringObj","checkExpression","valueObj","stringValue","node","destroy","evaluationRequest","executeCallbackOnUpdate","registerStringsReady","destroyRemovedNodeExpressionsCallbacks","mutationList","observer","mutation","removedNodes","removedNode","childList","observe","targetNode","MutationObserver","subtree","currentTrial","intervalId","setInterval","clearInterval","injectAttributes","parentNode","attr","onPluginLanguageJsLoaded","getAppRecipe","diagnostics","checkFeature","requestFeaturePermission","onPluginJsonLoaded","iframes","videos","vimeo_command","youtube_command","func","contentWindow","pause","stopVideos","handleEvent","eventType","processedClick","disableSelect","injectCSS","classNames","paths","debugTag","customCSS","active","disableFastClick","disableExternalLinkOverride","onclick","srcElement","inAppBrowser","regexp","CustomEvent","bubbles","cancelable","detail","createEvent","initCustomEvent","prototype","Event","exports","module","define","amd","n","eval","__esModule","default","defineProperty","r","call","lory","z","classNameActiveSlide","o","B","T","transition","hasTranslate3d","transform","slideSpeed","slidesToScroll","infinite","rewind","rewindSpeed","u","ease","v","A","h","M","nextSlide","O","k","min","S","b","offsetLeft","abs","N","P","f","currentSlide","classNameFrame","classNameSlideContainer","classNamePrevCtrl","classNameNextCtrl","enableMouseEvents","E","_","getElementsByClassName","offsetTop","cloneNode","insertBefore","firstChild","transitionEnd","L","g","C","rewindOnResize","getBoundingClientRect","offsetWidth","reduce","touches","w","pageX","pageY","D","time","F","snapBackSpeed","jQuery","reset","slideTo","returnIndex","prev","next","lastChild","getComputedStyle","getPropertyValue","dispatchEvent","foo","createEventObject","Boolean","configurable","enumerable","carousel","self","config","mergeSettings","_initDimensions","selector","_attachEventListeners","_applyConfigurations","shouldInitializeLory","_renderStaticSlides","display","lastCarouselTimer","lastImage","autoInterval","order","storagePlace","images","sendIndex","_changeImage","_randomizeArray","_shuffle","imagesCopy","first","last","carouselImages","carouselImage","_changeStaticSlides","isHome","activeSlide","siblingSlide","nextSibling","slide","_resizeImage","_cropImage","attrName","speed","loop","userSettings","_minHeight","validateLauncherCarousel","_applySlider","_destroySlider","_renderHTMLItems","timerInterval","lorySlider","sliderFrame","cname","slideContainer","_loadImages","itemsLength","pending","_appendItem","itemSlide","preventClicks","append","loadItems","appendItems","ceil","cssWidth","cssHeight","image","backgroundImage","alt","overflow"],"mappings":"AAEA,SAASA,OAAOC,EAAIC,EAAKC,GACxBC,KAAKH,GAAKA,IAAU,IAAII,MAAOC,cAAgBC,KAAKC,SACpDJ,KAAKF,IAAMA,EACXE,KAAKD,KAAOA,EACZC,KAAKK,WAAa,KAMnB,IAAIC,UAAY,CACfC,aAAc,SAASC,GACtB,OAA6C,IAArCA,EAAIC,QAAQ,qBAEnBC,SAAU,WACX,OAAkD,EAA3CC,OAAOC,SAASC,KAAKJ,QAAQ,aAEnCK,gBAAiB,WAClB,OAAOR,UAAUI,YAAcC,OAAOC,SAASC,KAAKJ,QAAQ,sBAAwB,GAEnFM,MAAO,SAASC,GACM,SAAnBC,EAA6BC,GAChC,OAAIA,GAAWA,EAAQC,QAAUD,EAAQC,OAAOC,SACE,QAA1CF,EAAQC,OAAOC,SAASC,eAE/BC,QAAQC,MAAM,uCACuC,IAA7CZ,OAAOC,SAASY,SAASf,QAA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AC9EkvB,EAAMpzB,MAAMqrB,UAAY,gBACxBkG,EAAM30B,aAAa,QAAS,8CAC5B20B,EAAMp/B,YAAYkhC,GAClB9B,EAAMp/B,YAAYihC,GAClB/jC,EAAS,KAAM4J,OAMlB62B,sBAAuB,WACtB,IAAIL,EAAOphC,KAEXA,KAAKwhC,SAAS57B,iBAAiB,oBAAqB,WAC9Cw7B,EAAKoD,gBACTpD,EAAKoD,eAAgB,KAGvBxkC,KAAKwhC,SAAS57B,iBAAiB,mBAAoB,WAClDyF,WAAW,KACV+1B,EAAKoD,eAAgB,GACnB","file":"buildfire_lightcarousel.min.js","sourcesContent":["//\"use strict\";\n\nfunction Packet(id, cmd, data) {\n\tthis.id = id ? id : new Date().toISOString() + Math.random();\n\tthis.cmd = cmd;\n\tthis.data = data;\n\tthis.instanceId = null;\n}\n\n\n\n/// ref: https://github.com/BuildFire/sdk/wiki\nvar buildfire = {\n\tisFileServer: function(url){\n\t\treturn (url.indexOf('s3.amazonaws.com') !== -1);\n\t}\n\t, isWidget: function() {\n\t\treturn window.location.href.indexOf('/widget/') > 0;\n\t}\n\t, isWidgetService: function() {\n\t\treturn buildfire.isWidget() && window.location.href.indexOf('/widget/index.html') < 0;\n\t}\n\t, isWeb: function(callback){\n\t\tvar isWebFromContext = function (context) {\n\t\t\tif (context && context.device && context.device.platform) {\n\t\t\t\treturn context.device.platform.toLowerCase() === 'web';\n\t\t\t} else {\n\t\t\t\tconsole.error('context device platform not defined');\n\t\t\t\treturn (window.location.protocol.indexOf('http') === 0);\n\t\t\t}\n\t\t};\n\t\tvar context = buildfire.getContext(function(err, callbackContext){\n\t\t\tif(callback){\n\t\t\t\tif(err) {\n\t\t\t\t\tcallback(err);\n\t\t\t\t} else {\n\t\t\t\t\tcallback(null, isWebFromContext(callbackContext));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tif(context) {\n\t\t\treturn isWebFromContext(context);\n\t\t} else {\n\t\t\tif(!callback) {\n\t\t\t\tconsole.warn('context not ready. must use isWeb with callback parameter: function(err, isWebResult)');\n\t\t\t\treturn (window.location.protocol.indexOf('http') === 0);\n\t\t\t}\n\t\t\t// don't return anything if context is not ready but we have a callback\n\t\t}\n\n\t},\n\t_lazyScriptsQueues: {},\n\tlazyLoadScript: function({ relativeScriptsUrl, scriptId }, readyCallback) {\n\t\tif (!this._lazyScriptsQueues[scriptId]) {\n\t\t\tthis._lazyScriptsQueues[scriptId] = { loaded: false, queue:[] };\n\t\t} else if (this._lazyScriptsQueues[scriptId].loaded && readyCallback) {\n\t\t\treturn readyCallback();\n\t\t}\n\n\n\t\tconst lazyQueue = this._lazyScriptsQueues[scriptId];\n\t\tlazyQueue.queue.push(readyCallback);\n\n\t\tif (lazyQueue.queue.length > 1) {\n\t\t\treturn;\n\t\t}\n\t\tconst url = buildfire.getContext().type === 'control' ?\n\t\t\t`../../../../scripts/${relativeScriptsUrl}`\n\t\t\t: `../../../scripts/${relativeScriptsUrl}`;\n\n\t\tconst _executeQueue = (err) => {\n\t\t\tlazyQueue.queue.forEach((callback) => {\n\t\t\t\tif (callback) callback(err);\n\t\t\t});\n\t\t\tlazyQueue.loaded = true;\n\t\t\tlazyQueue.queue = []; // clear queue\n\t\t};\n\t\tbuildfire.loadScript({ url, scriptId }, _executeQueue);\n\t},\n\tloadScript: function({ url, scriptId }, callback = Function()) {\n\t\tlet script = document.getElementById(scriptId);\n\t\tconst scripts = document.getElementsByTagName('script');\n\n\t\t// script exist\n\t\tif (script || Array.from(scripts).some((s) => s.src.includes(url.replaceAll(\"../\", \"\")))) {\n\t\t\treturn callback();\n\t\t}\n\n\t\tconst parentElement = (document.head || document.body);\n\t\tscript = document.createElement('script');\n\t\tscript.id = scriptId || '';\n\t\tscript.type = 'text/javascript';\n\t\tscript.src = url;\n\t\tscript.onload = callback;\n\t\tscript.onerror = function () {\n\t\t\tcallback(new Error('failed to load script component'));\n\t\t\tconsole.error('failed to load script component');\n\t\t};\n\t\tparentElement.appendChild(script);\n\t}, ratingSystem: {\n\t\tinject: function () {\n\t\t\tif (typeof buildfire === 'undefined') return;\n\t\t\tif (typeof (buildfire.components) == 'undefined' || typeof (buildfire.components.ratingSystem) == 'undefined') {\n\t\t\t\tloadScript('../../../scripts/buildfire/components/ratingSystem/index.min.js', function (err) {\n\t\t\t\t\tvar parentElement = (document.head || document.body);\n\t\t\t\t\tvar link = document.createElement('link');\n\t\t\t\t\tlink.rel = 'stylesheet';\n\t\t\t\t\tlink.type = 'text/css';\n\t\t\t\t\tlink.href = '../../../scripts/buildfire/components/ratingSystem/index.min.css';\n\t\t\t\t\tparentElement.appendChild(link);\n\t\t\t\t\t// utf-8 encoding is necessary for the rating system to function\n\t\t\t\t\tconst charset = parentElement.querySelector('meta[charset]');\n\t\t\t\t\tif (!charset || !charset.getAttribute('charset').toLowerCase().includes('utf-8')) {\n\t\t\t\t\t\tconsole.warn('UTF-8 charset is required for ratingSystem to function properly');\n\t\t\t\t\t}\n\t\t\t\t\tbuildfire.components.ratingSystem.injectRatings({ isFromWysiwyg: true });\n\t\t\t\t});\n\t\t\t} else buildfire.components.ratingSystem.injectRatings({ isFromWysiwyg: true });\n\n\t\t\tfunction hasScript(url) {\n\t\t\t\twhile (url.includes('../')) url = url.replace('../', '');\n\t\t\t\tvar scripts = document.getElementsByTagName('script');\n\t\t\t\tfor (var i = 0; i < scripts.length; i++) {\n\t\t\t\t\tif(scripts[i].src.includes(url)) return true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tfunction loadScript(url, callback) {\n\t\t\t\tif(hasScript(url)) return;\n\t\t\t\tvar parentElement = (document.head || document.body);\n\t\t\t\tvar script = document.createElement('script');\n\t\t\t\tscript.type = 'text/javascript';\n\t\t\t\tscript.src = url;\n\t\t\t\tscript.charset = 'utf-8';\n\t\t\t\tscript.onreadystatechange = callback;\n\t\t\t\tscript.onload = callback;\n\t\t\t\tparentElement.appendChild(script);\n\t\t\t}\n\t\t}\n\t}\n\t, logger: {\n\t\tattachRemoteLogger:function (tag){\n\n\t\t\t// dont attach twice\n\t\t\tlet buildFireAppDebuggerScript = document.getElementById('BuildFireAppDebuggerScript');\n\t\t\tif (buildFireAppDebuggerScript) {\n\t\t\t\tbuildFireAppDebuggerScript.parentElement.removeChild(buildFireAppDebuggerScript);\n\t\t\t}\n\n\t\t\tif(!tag)\n\t\t\t\ttag = prompt('Enter is a unique tag to send your logs to');\n\n\t\t\tif(!tag) return;\n\n\t\t\tvar header = document.querySelector('head');\n\t\t\tvar script = document.createElement('script');\n\t\t\tscript.src='http://debug.buildfire.com/target/target-script-min.js#' + tag;\n\t\t\tscript.id = 'BuildFireAppDebuggerScript';\n\t\t\theader.appendChild(script);\n\n\t\t},\n\t\tinit: function () {\n\t\t\tconst originalConsoleError = console.error;\n\t\t\tconsole.error = function (...args) {\n\t\t\t\tif (args && args[0]) {\n\t\t\t\t\tbuildfire.logger.log({\n\t\t\t\t\t\tmessage: typeof args[0] == \"string\" ? args[0] : \"no error message provided.\",\n\t\t\t\t\t\tdata: args.length > 1 ? {...args} : undefined,\n\t\t\t\t\t\tlevel: \"error\",\n\t\t\t\t\t\tcategory: \"ConsoleError\"\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\toriginalConsoleError(...args);\n\t\t\t};\n\t\t\twindow.addEventListener(\"error\", (event) => {\n\t\t\t\t// ignore 90% of errors to sample error reporting\n\t\t\t\tif(Math.random() >= 0.9) {\n\t\t\t\t\tbuildfire.logger.log({\n\t\t\t\t\t\tmessage: event.message,\n\t\t\t\t\t\tlevel: \"error\",\n\t\t\t\t\t\tcategory: \"BrowserJsException\",\n\t\t\t\t\t\texception: {\n\t\t\t\t\t\t\tcolno: event.colno,\n\t\t\t\t\t\t\tlineno: event.lineno,\n\t\t\t\t\t\t\tmessage: event.message,\n\t\t\t\t\t\t\tstack: event.error && event.error.stack ? event.error && event.error.stack : \"n/a\",\n\t\t\t\t\t\t\turl: event.filename\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\toriginalConsoleError('Error: ' + event.message, ' Script: ' + event.filename, ' Line: ' + event.lineno\n\t\t\t\t\t, ' Column: ' + event.colno, ' StackTrace: ' + event.error && event.error.stack ? event.error && event.error.stack : \"n/a\");\n\t\t\t});\n\t\t},\n\t\tlog: function (options, callback) {\n\t\t\tif (!options || (options && typeof options != 'object')) {\n\t\t\t\toptions = {};\n\t\t\t}\n\t\t\tbuildfire.getContext((err, context) => {\n\t\t\t\tif (!options.context) {\n\t\t\t\t\toptions.context = {};\n\t\t\t\t}\n\t\t\t\toptions.context.pluginId = context?.pluginId;\n\t\t\t\toptions.context.instanceId = context?.instanceId;\n\t\t\t\toptions.context.pluginTitle = context?.title;\n\t\t\t\tif (!options.tags) {\n\t\t\t\t\toptions.tags = [];\n\t\t\t\t}\n\t\t\t\toptions.tags.push('sdkAndPlugins');\n\t\t\t\tconst p = new Packet(null, 'logger.log', options);\n\t\t\t\tbuildfire._sendPacket(p, callback);\n\t\t\t});\n\t\t}\n\t}\n\t, _callbacks: {}\n\t, parseQueryString: function (str) {\n\t\tvar query = str || window.location.search.substring(1);\n\t\tvar vars = query.split('&');\n\t\tvar obj = new Object();\n\t\tfor (var i = 0; i < vars.length; i++) {\n\t\t\tvar pair = vars[i].split('=');\n\t\t\tobj[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);\n\t\t\tvar index = vars[i].indexOf('=');\n\t\t\tvar key = vars[i].substring(0, index);\n\t\t\tvar value = vars[i].substring(index + 1);\n\t\t\tobj[decodeURIComponent(key)] = decodeURIComponent(value);\n\t\t}\n\t\treturn obj;\n\t}\n\t, options:{}\n\t, parseMetaOptions: function(){\n\t\tvar options = {};\n\n\t\tvar tags = document.head.querySelector('meta[name=buildfire]');\n\t\tif(tags && tags.content) {\n\t\t\tvar sections = tags.content.split(',');\n\t\t\tsections.forEach(function(section){\n\t\t\t\tvar s = section.split('=');\n\t\t\t\toptions[s[0]] = s.length>1?s[1]:true;\n\t\t\t});\n\t\t}\n\n\t\treturn options;\n\t}\n\t///custom events are super thus this implementation\n\t, eventManager: {\n\t\tevents: {}\n\t\t, add: function (event, handler, allowMultipleHandlers) {\n\t\t\tif (typeof(handler) != 'function')throw ('Invalid event handler');\n\n\t\t\tif (!allowMultipleHandlers) this.clear(event);\n\n\t\t\tif (!this.events[event])\n\t\t\t\tthis.events[event] = [handler];\n\t\t\telse\n\t\t\t\tthis.events[event].push(handler);\n\n\t\t\tvar eh = this.events[event];\n\t\t\treturn {\n\t\t\t\tclear: function () {\n\t\t\t\t\tfor (var i = 0; i < eh.length; i++)\n\t\t\t\t\t\tif (eh[i] === handler)\n\t\t\t\t\t\t\teh.splice(i, 1);\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\t, clear: function (event) {\n\t\t\tthis.events[event] = [];\n\t\t}\n\t\t, trigger: function (event, data) {\n\t\t\tif (this.events[event])\n\t\t\t\tfor (var i = 0; i < this.events[event].length; i++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.events[event][i](data);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (e) {\n\t\t\t\t\t\tconsole.error(e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t}\n\t, _context: null\n\t, get context() {\n\t\tconsole.warn('buildfire.context is obsolete and will be removed soon');\n\t\treturn buildfire._context;\n\t}\n\t, set context(obj) {\n\t\tbuildfire._context = obj;\n\t}\n\t, init: function () {\n\t\t// Listen to message from child window\n\t\twindow.removeEventListener('message', buildfire._postMessageHandler, false);\n\t\twindow.addEventListener('message', buildfire._postMessageHandler, false);\n\n\t\tbuildfire.options = buildfire.parseMetaOptions();\n\n\n\t\tbuildfire.appearance.insertHTMLAttributes();\n\n\t\tbuildfire.appearance.attachCSSFiles();\n\n\t\tbuildfire.localStorage.overrideNativeLocalStorage();\n\n\t\tbuildfire.wysiwyg.extend();\n\n\t\t//attach plugin.js script that contains plugin.json content.\n\t\tfunction attachPluginJsScript () {\n\t\t\tdocument.write('');\n\t}\n\n\t//Add Lory CSS\n\tvar style = document.getElementById('loryInjectedStyle');\n\tif (style) document.head.removeChild(style);\n\n\tstyle = document.createElement('style');\n\tstyle.id = 'loryInjectedStyle';\n\tstyle.innerHTML += ' .loryFrame {position: relative;font-size: 0; line-height: 0; overflow: hidden; white-space: nowrap;}';\n\tstyle.innerHTML += ' .loryFrame li { position: relative; display: inline-block; height: 100%;}';\n\tstyle.innerHTML += ' .lorySlides { display: inline-block;}';\n\tstyle.innerHTML += ' .loryPercentage .lorySlides { display: block; padding: 0px;}';\n\tstyle.innerHTML += ' .loryPercentage li { width: 100%;}';\n\tstyle.innerHTML += ' .js_slide { text-align: center; position: relative; max-height: 380px; vertical-align: top; }';\n\tstyle.innerHTML += ' .js_slide img { max-height: 380px; width: auto !important; margin: 0 auto }';\n\tstyle.innerHTML += ' .js_slide.static_slide { display: none }';\n\tstyle.innerHTML += ' .js_slide.static_slide.active { display: block }';\n\n\tdocument.head.appendChild(style);\n})();\n// This is the class that will be used in the mobile\n//{selector:selector, items:items, layout:layout, speed:speed}\nbuildfire.components.carousel.view = function (options) {\n\tlet self = this;\n\tthis.config = this.mergeSettings(options);\n\tthis._initDimensions(self.config.layout);\n\tthis.selector = typeof this.config.selector === 'string' ? document.querySelector(this.config.selector) : this.config.selector;\n\tthis._attachEventListeners();\n\tif (options.items && options.items.length > 0) {\n\t\tthis._applyConfigurations(options, (err, result) => {\n\t\t\tif (result.shouldInitializeLory) { // loryCarousel\n\t\t\t\tself.init();\n\t\t\t} else {\n\t\t\t\tself._renderStaticSlides(options.items);\n\t\t\t}\n\t\t});\n\t\tif (options.selector) {\n\t\t\toptions.selector.style.display = '';\n\t\t} else {\n\t\t\tconsole.error('Selector element should be provided');\n\t\t}\n\t\t\n\t} else {\n\t\tif (options.selector) {\n\t\t\toptions.selector.style.display = 'none';\n\t\t} else {\n\t\t\tconsole.error('Selector element should be provided');\n\t\t}\n\t}\n};\nbuildfire.components.carousel.view.lastCarouselTimer = null;\n// Carousel view methods\nbuildfire.components.carousel.view.prototype = {\n\tlastImage: null,\n _applyConfigurations: function(options, callback) {\n\t\tlet self = this;\n\t\tlet { items, autoInterval, order, display } = options;\n\t\tif (buildfire.components.carousel.view.lastCarouselTimer) {\n\t\t\tclearInterval(buildfire.components.carousel.view.lastCarouselTimer);\n\t\t\tbuildfire.components.carousel.view.lastCarouselTimer = null;\n\t\t}\n\t\tlet isHome = buildfire.getFrameType() == 'LAUNCHER_PLUGIN';\n\t\tlet storagePlace = (isHome) ? \"carouselLastImageHome\" : \"carouselLastImage\";\n\t\tif (order == 0 && display == 1 && items.length > 1) {\n\t\t\tbuildfire.localStorage.getItem(storagePlace, function(err, res) {\n\t\t\t\tlet images = items;\n\t\t\t\tlet sendIndex = 0;\n\t\t\t\tlet item = null;\n\t\t\t\tif (res == null) {\n\t\t\t\t\titem = items[0];\n\t\t\t\t} else {\n\t\t\t\t\tlet index = Number(res);\n\t\t\t\t\tif (index == -1 || index == items.length - 1) item = items[0];\n\t\t\t\t\telse {item = items[index + 1]; sendIndex = index + 1;}\n\t\t\t\t}\n\t\t\t\tself.lastImage = item;\n\t\t\t\tbuildfire.localStorage.setItem(storagePlace, sendIndex, function(e, r) {\n\t\t\t\t\tif (autoInterval != 0) buildfire.components.carousel.view.lastCarouselTimer = setInterval(self._changeImage.bind(self), self.config.autoInterval, images, false);\n\t\t\t\t});\n\t\t\t\tcallback(null, {shouldInitializeLory: false});\n\t\t\t});\n\t\t} else if (order == 1 && display == 1 && items.length > 1) {\n\t\t\tif (autoInterval != 0) {\n\t\t\t\tbuildfire.components.carousel.view.lastCarouselTimer = setInterval(this._changeImage.bind(this), this.config.autoInterval, items, true);\n\t\t\t}\n\t\t\titem = items[Math.floor(Math.random() * items.length)];\n\t\t\tthis.lastImage = item;\n\t\t\tbuildfire.localStorage.removeItem(storagePlace);\n\t\t\tcallback(null, {shouldInitializeLory: false});\n\t\t} else if (order == 1 && display == 0 && items.length > 1) {\n\t\t\tthis._randomizeArray(items);\n\t\t\tbuildfire.localStorage.removeItem(storagePlace);\n\t\t\tcallback(null, {shouldInitializeLory: true});\n\t\t} else if (display == 1) {\n\t\t\tcallback(null, {shouldInitializeLory: false});\n\t\t} else {\n\t\t\tcallback(null, {shouldInitializeLory: true});\n\t\t}\n\t},\n\t_randomizeArray: function (images) {\n this._shuffle(images, null, null);\n let imagesCopy = Array.from(images);\n this._shuffle(imagesCopy, null, images[images.length - 1]);\n images.push(...imagesCopy);\n this._shuffle(imagesCopy, images[0], images[images.length - 1]);\n images.push(...imagesCopy);\n },\n\t_shuffle: function (images, first, last) {\n let j, x, i;\n for (i = images.length - 1; i > 0; i--) {\n j = Math.floor(Math.random() * (i + 1));\n x = images[i];\n images[i] = images[j];\n images[j] = x;\n }\n if (last == images[0] || first == images[images.length - 1]) return this._shuffle(images, first, last);\n else return images;\n },\n\t_changeImage: function (carouselImages, random) {\n let self = this;\n\t\tlet carouselImage = null;\n if (random) {\n this._changeStaticSlides(carouselImages, true);\n } else {\n let index = carouselImages.indexOf(this.lastImage);\n let sendIndex = 0;\n if (index == -1 || index == carouselImages.length - 1) {\n\t\t\t\tcarouselImage = carouselImages[0];\n\t\t\t} else {\n\t\t\t\tcarouselImage = carouselImages[index + 1]; \n\t\t\t\tsendIndex = index + 1;\n\t\t\t}\n this.lastImage = carouselImage;\n let isHome = buildfire.getFrameType() == 'LAUNCHER_PLUGIN';\n let storagePlace = (isHome) ? \"carouselLastImageHome\" : \"carouselLastImage\";\n buildfire.localStorage.setItem(storagePlace, sendIndex, function(e, r) {\n self._changeStaticSlides(carouselImages);\n });\n }\n },\n\t_changeStaticSlides: function (carouselImages, random) {\n\t\tlet activeSlide = document.querySelector('.js_slide.static_slide.active');\n\t\tlet siblingSlide = activeSlide.nextSibling;\n\t\tif (random) {\n\t\t\tlet nextSlide = document.querySelectorAll('.js_slide.static_slide')[Math.floor(Math.random() * carouselImages.length)];\n\t\t\tif (nextSlide.children[0].src == activeSlide.children[0].src) {\n\t\t\t\tthis._changeStaticSlides(carouselImages, true);\n\t\t\t} else {\n\t\t\t\tactiveSlide.classList.remove('active');\n\t\t\t\tnextSlide.classList.add('active');\n\t\t\t}\n\t\t} else {\n\t\t\tactiveSlide.classList.remove('active');\n\t\t\tif (siblingSlide) {\n\t\t\t\tsiblingSlide.classList.add('active');\n\t\t\t} else {\n\t\t\t\tdocument.querySelector('.js_slide.static_slide').classList.add('active');\n\t\t\t}\n\t\t}\n\t},\n\t_renderStaticSlides: function (carouselImages) {\n\t\tlet self = this;\n\t\tthis.selector.innerHTML = '';\n\t\tcarouselImages.forEach((carouselImage, index) => {\n\t\t\tlet slide = document.createElement('div');\n\t\t\tslide.classList.add('js_slide', 'static_slide');\n\t\t\tif (index == 0 && !self.lastImage) {\n\t\t\t\tslide.classList.add('active');\n\t\t\t} else if (self.lastImage && self.lastImage.iconUrl == carouselImage.iconUrl) {\n\t\t\t\tslide.classList.add('active');\n\t\t\t}\n\t\t\tslide.addEventListener('click', function () {\n\t\t\t\tbuildfire.actionItems.execute(carouselImage, function (err, result) {\n\t\t\t\t\tif (err) {\n\t\t\t\t\t\tconsole.warn('Error opening slider action: ', err);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\n\t\t\tlet options = {\n\t\t\t\titem: carouselImage,\n\t\t\t\tslide: slide\n\t\t\t}\n\t\t\tif (self.layout == 'Fit') {\n\t\t\t\tself._resizeImage(options, (err, result) => {\n\t\t\t\t\tif (err) console.error('Error occurred while resizing image: ', err);\n\t\t\t\t\tself.selector.appendChild(slide);\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tself._cropImage(options, (err, result) => {\n\t\t\t\t\tif (err) console.error('Error occurred while cropping image: ', err);\n\t\t\t\t\tself.selector.appendChild(slide);\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t\tlet activeSlide = document.querySelector('.js_slide.static_slide.active');\n\t\tif (!activeSlide) {\n\t\t\tdocument.querySelector('.js_slide.static_slide').classList.add('active');\n\t\t}\n\t},\n\tmergeSettings: function (options) {\n\t\tvar settings = {\n\t\t\tselector: '.js_percentage',\n\t\t\titems: [],\n\t\t\tlayout: null,\n\t\t\tspeed: 200,\n\t\t\tloop: true,\n\t\t\tautoInterval: 5 * 1000,\n\t\t\tdisplay: 0,\n\t\t\torder: 0\n\t\t};\n\t\tvar userSettings = options;\n\t\tfor (var attrName in userSettings) {\n\t\t\tsettings[attrName] = userSettings[attrName];\n\t\t}\n\t\treturn settings;\n\t},\n\tinit: function () {\n\t\tif (!this.selector) {\n\t\t\tthrow ('selector not found');\n\t\t\treturn;\n\t\t}\n\t\t// Add min-height to carousel to prevent it from pushing content down\n\t\tthis.selector.style['min-height'] = this._minHeight;\n\n\t\tvar self = this;\n\n\t\tfunction validateLauncherCarousel() {\n\t\t\tbuildfire.getContext(function (err, result) {\n\t\t\t\tif (result && result.device && result.device.platform && result.device.platform.toLowerCase() == 'ios' && buildfire.getFrameType() == 'LAUNCHER_PLUGIN') {\n\t\t\t\t\tbuildfire.navigation.onAppLauncherActive(function () {\n\t\t\t\t\t\tself._applySlider();\n\t\t\t\t\t}, true);\n\t\t\t\t\tbuildfire.navigation.onAppLauncherInactive(function () {\n\t\t\t\t\t\tself._destroySlider();\n\t\t\t\t\t}, true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tif (this.config.items && this.config.items.length > 0) {\n\t\t\tthis._renderHTMLItems(function () {\n\t\t\t\tself._applySlider();\n\t\t\t\tvalidateLauncherCarousel();\n\t\t\t});\n\t\t} else {\n\t\t\tself._applySlider();\n\t\t\tvalidateLauncherCarousel();\n\t\t}\n\t},\n\t_destroySlider: function () {\n\t\tif (this.timerInterval) {\n\t\t\tclearInterval(this.timerInterval);\n\t\t\tthis.timerInterval = null;\n\t\t}\n\t},\n\t_applySlider: function () {\n\t\tif (!this.lorySlider) {\n\t\t\tthis.lorySlider = lory(this.config.selector, {\n\t\t\t\tclassNameSlideContainer: this.config.classNameSlideContainer || 'js_slides',\n\t\t\t\tclassNameFrame: this.config.classNameFrame || 'js_frame',\n\t\t\t\tease: 'ease',\n\t\t\t\trewindSpeed: 600,//ms\n\t\t\t\tslideSpeed: this.config.speed,//ms\n\t\t\t\tslidesToScroll: this.config.slidesToScroll || 1,\n\t\t\t\tinfinite: this.config.items.length > 1 ? 1 : 0,\n\t\t\t\tenableMouseEvents: true\n\t\t\t});\n\t\t}\n\n\t\tif (this.config.loop && this.config.items && this.config.items.length > 1) {\n\t\t\tvar self = this;\n\n\t\t\tif (this.timerInterval) {\n\t\t\t\tclearInterval(this.timerInterval);\n\t\t\t\tthis.timerInterval = null;\n\t\t\t}\n\n\t\t\tthis.timerInterval = setInterval(function () {\n\t\t\t\tself.lorySlider.next();\n\t\t\t}, this.config.autoInterval);\n\t\t}\n\t},\n\t_renderHTMLItems: function (callback) {\n\t\tvar self = this;\n\n\t\twhile (this.selector.firstChild) {\n\t\t\tthis.selector.removeChild(this.selector.firstChild);\n\t\t}\n\n\t\tthis.sliderFrame = document.createElement('div');\n\t\t['loryFrame', 'js_frame'].forEach(function (cname) {\n\t\t\tself.sliderFrame.classList.add(cname);\n\t\t});\n\n\t\tthis.slideContainer = document.createElement('ul');\n\t\t['lorySlides', 'js_slides'].forEach(function (cname) {\n\t\t\tself.slideContainer.classList.add(cname);\n\t\t});\n\n\t\tthis._loadImages(this.config.items, function () {\n\t\t\t['slider', 'js_percentage', 'loryPercentage'].forEach(function (cname) {\n\t\t\t\tself.selector.classList.add(cname);\n\t\t\t});\n\n\t\t\tself.sliderFrame.appendChild(self.slideContainer);\n\t\t\tself.selector.appendChild(self.sliderFrame);\n\n\t\t\tcallback();\n\t\t});\n\t},\n\t_loadImages: function (items, callback) {\n\t\tvar self = this;\n\n\t\tvar itemsLength = items.length;\n\t\tvar pending = itemsLength;\n\n\t\tif (itemsLength == 0) {\n\t\t\tcallback();\n\t\t}\n\n\t\tfor (var i = 0; i < itemsLength; i++) {\n\t\t\tthis._appendItem(items[i], function (itemSlide) {\n\t\t\t\tpending--;\n\t\t\t\tself.slideContainer.appendChild(itemSlide);\n\n\t\t\t\tif (pending == 0) {\n\t\t\t\t\tcallback();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t},\n\t_appendItem: function (item, callback) {\n\t\tlet self = this;\n\t\tlet slide = document.createElement('li');\n\t\tslide.classList.add('js_slide');\n\n\t\tslide.addEventListener('click', function () {\n\t\t\tif (self.preventClicks) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tbuildfire.actionItems.execute(item, function (err, result) {\n\t\t\t\tif (err) {\n\t\t\t\t\tconsole.warn('Error opening slider action: ', err);\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tlet options = { item, slide }\n\t\tif (self.layout == 'Fit') {\n\t\t\tthis._resizeImage(options, (err, result) => {\n\t\t\t\tif (err) console.error('Error occurred while cropping image: ', err);\n\t\t\t\tcallback(slide);\n\t\t\t});\n\t\t} else {\n\t\t\tthis._cropImage(options, (err, result) => {\n\t\t\t\tif (err) console.error('Error occurred while cropping image: ', err);\n\t\t\t\tcallback(slide);\n\t\t\t});\n\t\t}\n\t},\n\t// allows you to append a single item or an array of items\n\tappend: function (items) {\n\t\tif (!items)\n\t\t\treturn;\n\t\telse if (!(items instanceof Array) && typeof(items) == 'object')\n\t\t\titems = [items];\n\n\t\tif (items && items instanceof Array && items.length) {\n\t\t\tfor (var i = 0; i < items.length; i++) {\n\t\t\t\tthis.config.items.push(items[i]);\n\t\t\t}\n\t\t\tvar self = this;\n\t\t\tif (this.config.display == 0) {\n\t\t\t\tthis.slideContainer.innerHTML = '';\n\t\t\t\tthis._loadImages(this.config.items, function () {\n\t\t\t\t\tif (self.config.items.length > 1 && !self.timerInterval) {\n\t\t\t\t\t\tself.lorySlider = null;\n\t\t\t\t\t\tself._applySlider();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tself.lorySlider.setup();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tthis._renderStaticSlides(this.config.items);\n\t\t\t}\n\t\t}\n\t},\n\tloadItems: function (items, appendItems) {\n\t\tif (appendItems) {\n\t\t\tthis.append(items);\n\t\t} else {\n\t\t\tlet self = this;\n\t\t\tthis.config.items = items;\n\t\t\tif (this.config.display == 0) {\n\t\t\t\tif (this.config.order == 1) {\n\t\t\t\t\tthis._randomizeArray(items);\n\t\t\t\t}\n\t\t\t\tthis.slideContainer.innerHTML = '';\n\t\t\t\tthis._loadImages(items, function () {\n\t\t\t\t\tif (items.length > 1 && !self.timerInterval) {\n\t\t\t\t\t\tself.lorySlider = null;\n\t\t\t\t\t\tself._applySlider();\n\t\t\t\t\t} else if (items.length <= 1 && self.timerInterval) {\n\t\t\t\t\t\tself._destroySlider();\n\t\t\t\t\t\tself.lorySlider = null;\n\t\t\t\t\t\tself._applySlider();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tself.lorySlider.setup();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\tif (buildfire.components.carousel.view.lastCarouselTimer) {\n\t\t\t\t\tclearInterval(buildfire.components.carousel.view.lastCarouselTimer);\n\t\t\t\t\tbuildfire.components.carousel.view.lastCarouselTimer = null;\n\t\t\t\t}\n\t\t\t\tthis._renderStaticSlides(items);\n\t\t\t\tif (items.length > 1) {\n\t\t\t\t\tbuildfire.components.carousel.view.lastCarouselTimer = setInterval(this._changeImage.bind(this), this.config.autoInterval, items, this.config.order);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\t_initDimensions: function (layout) {\n\t\tthis.width = window.innerWidth;\n\t\tthis.layout = layout;\n\t\tlayout = layout || 'WideScreen';\n\t\tif (layout == 'WideScreen') {\n\t\t\tthis.height = Math.ceil(9 * this.width / 16);\n\t\t\tthis.aspect = '16:9';\n\t\t} else if (layout == 'Square') {\n\t\t\tthis.height = this.width;\n\t\t\tthis.aspect = '1:1';\n\t\t} else if (layout == 'Cinema') {\n\t\t\tthis.height = Math.ceil(1 * this.width / 2.39);\n\t\t\tthis.aspect = '2.39:1';\n\t\t} else if (layout == 'MobileScreen' || layout == 'Fit') {\n\t\t\tthis.height = (window.innerHeight / this.width) * this.width;\n\t\t\tthis.aspect = '9:16';\n\t\t} else {\n\t\t\tthis.height = Math.ceil(9 * this.width / 16);\n\t\t}\n\n\t\tthis.cssWidth = this.width + 'px';\n\t\tif (this.height > 380) {\n\t\t\tthis.cssHeight = '380px';\n\t\t} else {\n\t\t\tthis.cssHeight = this.height + 'px';\n\t\t}\n\n\t\t// Set Min height on carousel so doesn't push content down on load.\n\t\tthis._minHeight = this.cssHeight;\n\t},\n\t_cropImage: function(options, callback) {\n\t\tlet self = this;\n\t\tlet { item, slide } = options;\n\t\tbuildfire.imageLib.local.cropImage(item.iconUrl, {\n\t\t\twidth: this.width,\n\t\t\theight: this.height,\n\t\t\taspect: this.aspect,\n\t\t\tsize: 'full_width',\n\t\t}, function (err, result) {\n\t\t\tif (!err) {\n\t\t\t\tlet image = document.createElement('img');\n\t\t\t\tlet backgroundImage = document.createElement('img');\n\t\t\t\timage.src = result;\n\t\t\t\tbackgroundImage.src = buildfire.imageLib.cropImage(item.iconUrl, {\n\t\t\t\t\theight: Math.ceil(self.height / 20),\n\t\t\t\t\twidth: Math.ceil(self.width / 20),\n\t\t\t\t\tblur: 40,\n\t\t\t\t});\n\t\t\t\timage.alt = backgroundImage.alt = item.title || '';\n\t\t\t\tbackgroundImage.className = 'blurred-background-image';\n\t\t\t\tbackgroundImage.setAttribute('style', `width: 100% !important; height: ${self.height}px; top: 50%; left: 50%; transform: translate(-50%, -50%);`);\n\t\t\t\tslide.style.overflow = 'hidden';\n\t\t\t\timage.style.transform = 'translateZ(0)';\n\t\t\t\tif (self.height > 380) {\n\t\t\t\t\tslide.appendChild(backgroundImage);\n\t\t\t\t}\n\t\t\t\tslide.appendChild(image);\n\t\t\t\tcallback(null, result);\n\t\t\t} else {\n\t\t\t\tcallback(err, null);\n\t\t\t}\n\t\t});\n\t},\n\t_resizeImage: function(options, callback) {\n\t\tlet self = this;\n\t\tlet { item, slide } = options;\n\t\tbuildfire.imageLib.local.resizeImage(item.iconUrl, {\n\t\t\theight: self.height,\n\t\t}, function (err, result) {\n\t\t\tif (!err) {\n\t\t\t\tlet image = document.createElement('img');\n\t\t\t\tlet backgroundImage = document.createElement('img');\n\t\t\t\timage.src = result;\n\t\t\t\tbackgroundImage.src = buildfire.imageLib.cropImage(item.iconUrl, {\n\t\t\t\t\theight: Math.ceil(self.height / 20),\n\t\t\t\t\twidth: Math.ceil(self.width / 20),\n\t\t\t\t\tblur: 40,\n\t\t\t\t});\n\t\t\t\timage.alt = backgroundImage.alt = item.title || '';\n\t\t\t\tbackgroundImage.className = 'blurred-background-image';\n\t\t\t\tbackgroundImage.setAttribute('style', `width: 100% !important; height: ${self.height}px; top: 50%; left: 50%; transform: translate(-50%, -50%);`);\n\t\t\t\timage.style.transform = 'translateZ(0)';\n\t\t\t\tslide.setAttribute('style', `vertical-align: middle; overflow: visible;`);\n\t\t\t\tslide.appendChild(backgroundImage);\n\t\t\t\tslide.appendChild(image);\n\t\t\t\tcallback(null, result);\n\t\t\t} else {\n\t\t\t\tcallback(err, null);\n\t\t\t}\n\t\t});\n\t},\n\t_attachEventListeners: function() {\n\t\tlet self = this;\n\t\t// add event listeners to prevent immediate click event after scrolling \n\t\tthis.selector.addEventListener('on.lory.touchmove', function () {\n\t\t\tif (!self.preventClicks) {\n\t\t\t\tself.preventClicks = true;\n\t\t\t}\n\t\t});\n\t\tthis.selector.addEventListener('on.lory.touchend', function () {\n\t\t\tsetTimeout(() => {\n\t\t\t\tself.preventClicks = false;\n\t\t\t}, 0);\n\t\t});\n\t}\n};\n"]}
\ No newline at end of file
diff --git a/scripts/_bundles/jquery_angular_buildfire_smartcrop.min.js b/scripts/_bundles/jquery_angular_buildfire_smartcrop.min.js
index d2c0cb0e..90636daf 100644
--- a/scripts/_bundles/jquery_angular_buildfire_smartcrop.min.js
+++ b/scripts/_bundles/jquery_angular_buildfire_smartcrop.min.js
@@ -4,6 +4,6 @@
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(h,e){function t(e,t){return t.toUpperCase()}var d=[],c=d.slice,m=d.concat,s=d.push,i=d.indexOf,n={},r=n.toString,g=n.hasOwnProperty,v={},o="1.11.2",T=function(e,t){return new T.fn.init(e,t)},a=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,l=/^-ms-/,u=/-([\da-z])/gi;function f(e){var t=e.length,n=T.type(e);return"function"!==n&&!T.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&0>10|55296,1023&r|56320)}function t(){g()}var e,f,x,o,r,p,h,m,w,u,c,g,T,i,v,y,a,s,b,C="sizzle"+ +new Date,N=n.document,E=0,k=0,l=oe(),S=oe(),A=oe(),D=function(e,t){return e===t&&(c=!0),0},j={}.hasOwnProperty,L=[],H=L.pop,q=L.push,_=L.push,M=L.slice,F=function(e,t){for(var n=0,r=e.length;n+~]|"+B+")"+B+"*"),V=new RegExp("="+B+"*([^\\]'\"]*?)"+B+"*\\]","g"),J=new RegExp($),Y=new RegExp("^"+R+"$"),G={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P.replace("w","w*")+")"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,ee=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,te=/[+~]/,ne=/'|\\/g,re=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig");try{_.apply(L=M.call(N.childNodes),N.childNodes),L[N.childNodes.length].nodeType}catch(n){_={apply:L.length?function(e,t){q.apply(e,M.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,n,r){var i,o,a,s,l,u,c;if((t?t.ownerDocument||t:N)!==T&&g(t),n=n||[],i=(t=t||T).nodeType,"string"!=typeof e||!e||1!==i&&9!==i&&11!==i)return n;if(!r&&v){if(11!==i&&(u=ee.exec(e)))if(c=u[1]){if(9===i){if(!(s=t.getElementById(c))||!s.parentNode)return n;if(s.id===c)return n.push(s),n}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(c))&&b(t,s)&&s.id===c)return n.push(s),n}else{if(u[2])return _.apply(n,t.getElementsByTagName(e)),n;if((c=u[3])&&f.getElementsByClassName)return _.apply(n,t.getElementsByClassName(c)),n}if(f.qsa&&(!y||!y.test(e))){if(l=s=C,u=t,c=1!==i&&e,1===i&&"object"!==t.nodeName.toLowerCase()){for(a=p(e),(s=t.getAttribute("id"))?l=s.replace(ne,"\\$&"):t.setAttribute("id",l),l="[id='"+l+"'] ",o=a.length;o--;)a[o]=l+pe(a[o]);u=te.test(e)&&de(t.parentNode)||t,c=a.join(",")}if(c)try{return _.apply(n,u.querySelectorAll(c)),n}catch(e){}finally{s||t.removeAttribute("id")}}}return m(e.replace(I,"$1"),t,n,r)}function oe(){var r=[];return function e(t,n){return r.push(t+" ")>x.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function ae(e){return e[C]=!0,e}function se(e){var t=T.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function le(e,t){for(var n=e.split("|"),r=e.length;r--;)x.attrHandle[n[r]]=t}function ue(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ce(a){return ae(function(o){return o=+o,ae(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function de(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=ie.support={},r=ie.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},g=ie.setDocument=function(e){var l=e?e.ownerDocument||e:N;return l!==T&&9===l.nodeType&&l.documentElement?(i=(T=l).documentElement,(e=l.defaultView)&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",t,!1):e.attachEvent&&e.attachEvent("onunload",t)),v=!r(l),f.attributes=se(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=se(function(e){return e.appendChild(l.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=Z.test(l.getElementsByClassName),f.getById=se(function(e){return i.appendChild(e).id=C,!l.getElementsByName||!l.getElementsByName(C).length}),f.getById?(x.find.ID=function(e,t){if(void 0!==t.getElementById&&v){e=t.getElementById(e);return e&&e.parentNode?[e]:[]}},x.filter.ID=function(e){var t=e.replace(re,d);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(re,d);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}}),x.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[i++];)1===n.nodeType&&r.push(n);return r},x.find.CLASS=f.getElementsByClassName&&function(e,t){return v?t.getElementsByClassName(e):void 0},a=[],y=[],(f.qsa=Z.test(l.querySelectorAll))&&(se(function(e){i.appendChild(e).innerHTML=" ",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+B+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+C+"-]").length||y.push("~="),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+C+"+*").length||y.push(".#.+[+~]")}),se(function(e){var t=l.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+B+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(f.matchesSelector=Z.test(s=i.matches||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector||i.msMatchesSelector))&&se(function(e){f.disconnectedMatch=s.call(e,"div"),s.call(e,"[s!='']:x"),a.push("!=",$)}),y=y.length&&new RegExp(y.join("|")),a=a.length&&new RegExp(a.join("|")),e=Z.test(i.compareDocumentPosition),b=e||Z.test(i.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=e?function(e,t){return e===t?(c=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument===N&&b(N,e)?-1:t===l||t.ownerDocument===N&&b(N,t)?1:u?F(u,e)-F(u,t):0:4&n?-1:1);var n}:function(e,t){if(e===t)return c=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===l?-1:t===l?1:i?-1:o?1:u?F(u,e)-F(u,t):0;if(i===o)return ue(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ue(a[r],s[r]):a[r]===N?-1:s[r]===N?1:0},l):T},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==T&&g(e),t=t.replace(V,"='$1']"),!(!f.matchesSelector||!v||a&&a.test(t)||y&&y.test(t)))try{var n=s.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(re,d),e[3]=(e[3]||e[4]||e[5]||"").replace(re,d),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&J.test(n)&&(t=p(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(re,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=l[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&l(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,r){return function(e){e=ie.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===r:"!="===n?e!==r:"^="===n?r&&0===e.indexOf(r):"*="===n?r&&-1(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function w(e,n,r){if(T.isFunction(n))return T.grep(e,function(e,t){return!!n.call(e,t,e)!==r});if(n.nodeType)return T.grep(e,function(e){return e===n!==r});if("string"==typeof n){if(x.test(n))return T.filter(n,e,r);n=T.filter(n,e)}return T.grep(e,function(e){return 0<=T.inArray(e,n)!==r})}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,function(e){return 1===e.nodeType}))},T.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(T(e).filter(function(){for(t=0;t)[^>]*|#([\w-]*))$/;(T.fn.init=function(e,t){var n,r;if(!e)return this;if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):T.isFunction(e)?void 0!==E.ready?E.ready(e):e(T):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),T.makeArray(e,this));if(!(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:N.exec(e))||!n[1]&&t)return(!t||t.jquery?t||E:this.constructor(t)).find(e);if(n[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),b.test(n[1])&&T.isPlainObject(t))for(n in t)T.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if((r=C.getElementById(n[2]))&&r.parentNode){if(r.id!==n[2])return E.find(e);this.length=1,this[0]=r}return this.context=C,this.selector=e,this}).prototype=T.fn;var E=T(C),k=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.extend({dir:function(e,t,n){for(var r=[],i=e[t];i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!T(i).is(n));)1===i.nodeType&&r.push(i),i=i[t];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),T.fn.extend({has:function(e){var t,n=T(e,this),r=n.length;return this.filter(function(){for(t=0;ta ",v.leadingWhitespace=3===t.firstChild.nodeType,v.tbody=!t.getElementsByTagName("tbody").length,v.htmlSerialize=!!t.getElementsByTagName("link").length,v.html5Clone="<:nav>"!==C.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),v.appendChecked=e.checked,t.innerHTML="",v.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML=" ",v.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,v.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){v.noCloneEvent=!1}),t.cloneNode(!0).click()),null==v.deleteExpando){v.deleteExpando=!0;try{delete t.test}catch(e){v.deleteExpando=!1}}}(),function(){var e,t,n=C.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(v[e+"Bubbles"]=t in h)||(n.setAttribute(t,"t"),v[e+"Bubbles"]=!1===n.attributes[t].expando)}();var V=/^(?:input|select|textarea)$/i,J=/^key/,Y=/^(?:mouse|pointer|contextmenu)|click/,G=/^(?:focusinfocus|focusoutblur)$/,Q=/^([^.]*)(?:\.(.+)|)$/;function K(){return!0}function Z(){return!1}function ee(){try{return C.activeElement}catch(e){}}function te(e){var t=ne.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}T.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h=T._data(e);if(h)for(n.handler&&(n=(s=n).handler,i=s.selector),n.guid||(n.guid=T.guid++),(o=h.events)||(o=h.events={}),(u=h.handle)||((u=h.handle=function(e){return typeof T==M||e&&T.event.triggered===e.type?void 0:T.event.dispatch.apply(u.elem,arguments)}).elem=e),a=(t=(t||"").match(j)||[""]).length;a--;)d=p=(c=Q.exec(t[a])||[])[1],f=(c[2]||"").split(".").sort(),d&&(l=T.event.special[d]||{},d=(i?l.delegateType:l.bindType)||d,l=T.event.special[d]||{},c=T.extend({type:d,origType:p,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:f.join(".")},s),(p=o[d])||((p=o[d]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,r,f,u)||(e.addEventListener?e.addEventListener(d,u,!1):e.attachEvent&&e.attachEvent("on"+d,u))),l.add&&(l.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),T.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,d,f,p,h,m,g=T.hasData(e)&&T._data(e);if(g&&(c=g.events)){for(u=(t=(t||"").match(j)||[""]).length;u--;)if(p=m=(s=Q.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},f=c[p=(r?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=f.length;o--;)a=f[o],!i&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,d.remove&&d.remove.call(e,a));l&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||T.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)T.event.remove(e,p+t[u],n,r,!0);T.isEmptyObject(c)&&(delete g.handle,T._removeData(e,"events"))}},trigger:function(e,t,n,r){var i,o,a,s,l,u,c=[n||C],d=g.call(e,"type")?e.type:e,f=g.call(e,"namespace")?e.namespace.split("."):[],p=l=n=n||C;if(3!==n.nodeType&&8!==n.nodeType&&!G.test(d+T.event.triggered)&&(0<=d.indexOf(".")&&(d=(f=d.split(".")).shift(),f.sort()),o=d.indexOf(":")<0&&"on"+d,(e=e[T.expando]?e:new T.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),s=T.event.special[d]||{},r||!s.trigger||!1!==s.trigger.apply(n,t))){if(!r&&!s.noBubble&&!T.isWindow(n)){for(a=s.delegateType||d,G.test(a+d)||(p=p.parentNode);p;p=p.parentNode)c.push(p),l=p;l===(n.ownerDocument||C)&&c.push(l.defaultView||l.parentWindow||h)}for(u=0;(p=c[u++])&&!e.isPropagationStopped();)e.type=1 ]","i"),oe=/^\s+/,ae=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,se=/<([\w:]+)/,le=/\s*$/g,me={option:[1,""," "],legend:[1,""," "],area:[1,""," "],param:[1,""," "],thead:[1,""],tr:[2,""],col:[2,""],td:[3,""],_default:v.htmlSerialize?[0,"",""]:[1,"X","
"]},ge=te(C).appendChild(C.createElement("div"));function ve(e,t){var n,r,i=0,o=typeof e.getElementsByTagName!=M?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!=M?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||T.nodeName(r,t)?o.push(r):T.merge(o,ve(r,t));return void 0===t||t&&T.nodeName(e,t)?T.merge([e],o):o}function ye(e){U.test(e.type)&&(e.defaultChecked=e.checked)}function be(e,t){return T.nodeName(e,"table")&&T.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function xe(e){return e.type=(null!==T.find.attr(e,"type"))+"/"+e.type,e}function we(e){var t=pe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Te(e,t){for(var n,r=0;null!=(n=e[r]);r++)T._data(n,"globalEval",!t||T._data(t[r],"globalEval"))}function Ce(e,t){if(1===t.nodeType&&T.hasData(e)){var n,r,i,o=T._data(e),e=T._data(t,o),a=o.events;if(a)for(n in delete e.handle,e.events={},a)for(r=0,i=a[n].length;r")?o=e.cloneNode(!0):(ge.innerHTML=e.outerHTML,ge.removeChild(o=ge.firstChild)),!(v.noCloneEvent&&v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(r=ve(o),s=ve(e),a=0;null!=(i=s[a]);++a)r[a]&&function(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!v.noCloneEvent&&t[T.expando]){for(r in(i=T._data(t)).events)T.removeEvent(t,r,i.handle);t.removeAttribute(T.expando)}"script"===n&&t.text!==e.text?(xe(t).text=e.text,we(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),v.html5Clone&&e.innerHTML&&!T.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&U.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}(i,r[a]);if(t)if(n)for(s=s||ve(e),r=r||ve(o),a=0;null!=(i=s[a]);a++)Ce(i,r[a]);else Ce(e,o);return 0<(r=ve(o,"script")).length&&Te(r,!l&&ve(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){for(var i,o,a,s,l,u,c,d=e.length,f=te(t),p=[],h=0;h$2>")+c[2],i=c[0];i--;)s=s.lastChild;if(!v.leadingWhitespace&&oe.test(o)&&p.push(t.createTextNode(oe.exec(o)[0])),!v.tbody)for(i=(o="table"!==l||le.test(o)?""!==c[1]||le.test(o)?0:s:s.firstChild)&&o.childNodes.length;i--;)T.nodeName(u=o.childNodes[i],"tbody")&&!u.childNodes.length&&o.removeChild(u);for(T.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=f.lastChild}else p.push(t.createTextNode(o));for(s&&f.removeChild(s),v.appendChecked||T.grep(ve(p,"input"),ye),h=0;o=p[h++];)if((!r||-1===T.inArray(o,r))&&(a=T.contains(o.ownerDocument,o),s=ve(f.appendChild(o),"script"),a&&Te(s),n))for(i=0;o=s[i++];)fe.test(o.type||"")&&n.push(o);return s=null,f},cleanData:function(e,t){for(var n,r,i,o,a=0,s=T.expando,l=T.cache,u=v.deleteExpando,c=T.event.special;null!=(n=e[a]);a++)if((t||T.acceptData(n))&&(o=(i=n[s])&&l[i])){if(o.events)for(r in o.events)c[r]?T.event.remove(n,r):T.removeEvent(n,r,o.handle);l[i]&&(delete l[i],u?delete n[s]:typeof n.removeAttribute!=M?n.removeAttribute(s):n[s]=null,d.push(i))}}}),T.fn.extend({text:function(e){return X(this,function(e){return void 0===e?T.text(this):this.empty().append((this[0]&&this[0].ownerDocument||C).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||be(this,e).appendChild(e)})},prepend:function(){return this.domManip(arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=be(this,e)).insertBefore(e,t.firstChild)})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?T.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||T.cleanData(ve(n)),n.parentNode&&(t&&T.contains(n.ownerDocument,n)&&Te(ve(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&T.cleanData(ve(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&T.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return T.clone(this,e,t)})},html:function(e){return X(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(re,""):void 0;if(!("string"!=typeof e||ce.test(e)||!v.htmlSerialize&&ie.test(e)||!v.leadingWhitespace&&oe.test(e)||me[(se.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(ae,"<$1>$2>");try{for(;n ")).appendTo(t.documentElement))[0].contentWindow||Ne[0].contentDocument).document).write(),t.close(),n=Se(e,t),Ne.detach()),ke[e]=n),n}v.shrinkWrapBlocks=function(){return null!=Ee?Ee:(Ee=!1,(t=C.getElementsByTagName("body")[0])&&t.style?(e=C.createElement("div"),(n=C.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),typeof e.style.zoom!=M&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(C.createElement("div")).style.width="5px",Ee=3!==e.offsetWidth),t.removeChild(n),Ee):void 0);var e,t,n};var De,je,Le,He,qe,_e,Me=/^margin/,Fe=new RegExp("^("+z+")(?!px)[a-z%]+$","i"),Oe=/^(top|right|bottom|left)$/;function Be(t,n){return{get:function(){var e=t();if(null!=e)return e?void delete this.get:(this.get=n).apply(this,arguments)}}}function Pe(){var e,t,n,r;(t=C.getElementsByTagName("body")[0])&&t.style&&(e=C.createElement("div"),(n=C.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",Le=He=!1,_e=!0,h.getComputedStyle&&(Le="1%"!==(h.getComputedStyle(e,null)||{}).top,He="4px"===(h.getComputedStyle(e,null)||{width:"4px"}).width,(r=e.appendChild(C.createElement("div"))).style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",r.style.marginRight=r.style.width="0",e.style.width="1px",_e=!parseFloat((h.getComputedStyle(r,null)||{}).marginRight),e.removeChild(r)),e.innerHTML="",(r=e.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(qe=0===r[0].offsetHeight)&&(r[0].style.display="",r[1].style.display="none",qe=0===r[0].offsetHeight),t.removeChild(n))}h.getComputedStyle?(De=function(e){return(e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView:h).getComputedStyle(e,null)},je=function(e,t,n){var r,i=e.style,o=(n=n||De(e))?n.getPropertyValue(t)||n[t]:void 0;return n&&(""!==o||T.contains(e.ownerDocument,e)||(o=T.style(e,t)),Fe.test(o)&&Me.test(t)&&(r=i.width,e=i.minWidth,t=i.maxWidth,i.minWidth=i.maxWidth=i.width=o,o=n.width,i.width=r,i.minWidth=e,i.maxWidth=t)),void 0===o?o:o+""}):C.documentElement.currentStyle&&(De=function(e){return e.currentStyle},je=function(e,t,n){var r,i,o,a=e.style;return null==(o=(n=n||De(e))?n[t]:void 0)&&a&&a[t]&&(o=a[t]),Fe.test(o)&&!Oe.test(t)&&(r=a.left,(n=(i=e.runtimeStyle)&&i.left)&&(i.left=e.currentStyle.left),a.left="fontSize"===t?"1em":o,o=a.pixelLeft+"px",a.left=r,n&&(i.left=n)),void 0===o?o:o+""||"auto"}),(nt=C.createElement("div")).innerHTML=" a ",(rt=(rt=nt.getElementsByTagName("a")[0])&&rt.style)&&(rt.cssText="float:left;opacity:.5",v.opacity="0.5"===rt.opacity,v.cssFloat=!!rt.cssFloat,nt.style.backgroundClip="content-box",nt.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===nt.style.backgroundClip,v.boxSizing=""===rt.boxSizing||""===rt.MozBoxSizing||""===rt.WebkitBoxSizing,T.extend(v,{reliableHiddenOffsets:function(){return null==qe&&Pe(),qe},boxSizingReliable:function(){return null==He&&Pe(),He},pixelPosition:function(){return null==Le&&Pe(),Le},reliableMarginRight:function(){return null==_e&&Pe(),_e}})),T.swap=function(e,t,n,r){var i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.apply(e,r||[]),t)e.style[i]=o[i];return r};var Re=/alpha\([^)]*\)/i,We=/opacity\s*=\s*([^)]*)/,$e=/^(none|table(?!-c[ea]).+)/,ze=new RegExp("^("+z+")(.*)$","i"),Ie=new RegExp("^([+-])=("+z+")","i"),Xe={position:"absolute",visibility:"hidden",display:"block"},Ue={letterSpacing:"0",fontWeight:"400"},Ve=["Webkit","O","Moz","ms"];function Je(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Ve.length;i--;)if((t=Ve[i]+n)in e)return t;return r}function Ye(e,t){for(var n,r,i,o=[],a=0,s=e.length;aa ",p=o.getElementsByTagName("a")[0],rt=(nt=C.createElement("select")).appendChild(C.createElement("option")),z=o.getElementsByTagName("input")[0],p.style.cssText="top:1px",v.getSetAttribute="t"!==o.className,v.style=/top/.test(p.getAttribute("style")),v.hrefNormalized="/a"===p.getAttribute("href"),v.checkOn=!!z.value,v.optSelected=rt.selected,v.enctype=!!C.createElement("form").enctype,nt.disabled=!0,v.optDisabled=!rt.disabled,(z=C.createElement("input")).setAttribute("value",""),v.input=""===z.getAttribute("value"),z.value="t",z.setAttribute("type","radio"),v.radioValue="t"===z.value;var pt=/\r/g;T.fn.extend({val:function(t){var n,e,r,i=this[0];return arguments.length?(r=T.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=r?t.call(this,e,T(this).val()):t)?e="":"number"==typeof e?e+="":T.isArray(e)&&(e=T.map(e,function(e){return null==e?"":e+""})),(n=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):i?(n=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(i,"value"))?e:"string"==typeof(e=i.value)?e.replace(pt,""):null==e?"":e:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:T.trim(T.text(e))}},select:{get:function(e){for(var t,n=e.options,r=e.selectedIndex,i="select-one"===e.type||r<0,o=i?null:[],a=i?r+1:n.length,s=r<0?a:i?r:0;s").append(T.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.expr.filters.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length};var Qt=h.document.documentElement;function Kt(e){return T.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}T.offset={setOffset:function(e,t,n){var r,i,o,a,s=T.css(e,"position"),l=T(e),u={};"static"===s&&(e.style.position="relative"),o=l.offset(),r=T.css(e,"top"),a=T.css(e,"left"),a=("absolute"===s||"fixed"===s)&&-1").append(t).html();try{return t[0].nodeType===Tn?cn(e):e.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+cn(e)})}catch(t){return cn(e)}}function o(t){try{return decodeURIComponent(t)}catch(t){}}function a(t){var e,n,r={};return ot((t||"").split("&"),function(t){t&&(e=t.replace(/\+/g,"%20").split("="),H(n=o(e[0]))&&(t=!H(e[1])||o(e[1]),ln.call(r,n)?bn(r[n])?r[n].push(t):r[n]=[r[n],t]:r[n]=t))}),r}function g(t){var n=[];return ot(t,function(t,e){bn(t)?ot(t,function(t){n.push(S(e,!0)+(!0===t?"":"="+S(t,!0)))}):n.push(S(e,!0)+(!0===t?"":"="+S(t,!0)))}),n.length?n.join("&"):""}function w(t){return S(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function S(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}function t(n,t){var r,i,e={};ot(An,function(t){t+="app",!r&&n.hasAttribute&&n.hasAttribute(t)&&(i=(r=n).getAttribute(t))}),ot(An,function(t){var e;t+="app",!r&&(e=n.querySelector("["+t.replace(":","\\:")+"]"))&&(i=(r=e).getAttribute(t))}),r&&(e.strictDi=null!==function(t,e){var n,r,i=An.length;for(t=on(t),r=0;r /,">"))}return(n=n||[]).unshift(["$provide",function(t){t.value("$rootElement",e)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}]),n.unshift("ng"),(t=St(n,r.strictDi)).invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply(function(){e.data("$injector",r),n(e)(t)})}]),t}var t=/^NG_ENABLE_DEBUG_INFO!/,o=/^NG_DEFER_BOOTSTRAP!/;if(u&&t.test(u.name)&&(r.debugInfoEnabled=!0,u.name=u.name.replace(t,"")),u&&!o.test(u.name))return i();u.name=u.name.replace(o,""),vn.resumeBootstrap=function(t){return ot(t,function(t){n.push(t)}),i()},ct(vn.resumeDeferredBootstrap)&&vn.resumeDeferredBootstrap()}function j(){u.name="NG_ENABLE_DEBUG_INFO!"+u.name,u.location.reload()}function P(t){if(!(t=vn.element(t).injector()))throw mn("test");return t.get("$$testability")}function $t(t,n){return n=n||"_",t.replace(kn,function(t,e){return(e?n:"")+t.toLowerCase()})}function pt(t,e,n){if(!t)throw mn("areq",e||"?",n||"required");return t}function R(t,e,n){return pt(ct(t=n&&bn(t)?t[t.length-1]:t),e,"not a function, got "+(t&&"object"==typeof t?t.constructor.name||"Object":typeof t)),t}function _(t,e){if("hasOwnProperty"===t)throw mn("badname",e)}function I(t,e,n){if(!e)return t;for(var r,i=t,o=(e=e.split(".")).length,a=0;a$2>")+r[2],r=r[0];r--;)n=n.lastChild;o=k(o,n.childNodes),(n=i.firstChild).textContent=""}else o.push(e.createTextNode(t));return i.textContent="",i.innerHTML="",ot(o,function(t){i.appendChild(t)}),i}function z(t){if(t instanceof z)return t;var e,n;if(ut(t)&&(t=xn(t),n=!0),!(this instanceof z)){if(n&&"<"!=t.charAt(0))throw Rn("nosel");return new z(t)}n&&(n=rt,t=(e=In.exec(t))?[n.createElement(e[1])]:(e=B(t,n))?e.childNodes:[]),tt(this,t)}function mt(t){return t.cloneNode(!0)}function G(t,e){if(e||J(t),t.querySelectorAll)for(var n=t.querySelectorAll("*"),r=0,i=n.length;r 4096 bytes)!")},l.defer=function(t,e){var n;return m++,n=i(function(){delete d[n],r(t)},e||0),d[n]=!0,n},l.defer.cancel=function(t){return!!d[t]&&(delete d[t],p(t),r(V),!0)}}function Et(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,r){return new kt(t,r,e,n)}]}function Ot(){this.$get=function(){function t(t,e){function n(t){t!=c&&(l?l==t&&(l=t.n):l=t,r(t.n,t.p),r(t,c),(c=t).n=null)}function r(t,e){t!=e&&(t&&(t.p=e),e&&(e.n=t))}if(t in f)throw C("$cacheFactory")("iid",t);var i=0,o=T({},e,{id:t}),a={},s=e&&e.capacity||Number.MAX_VALUE,u={},c=null,l=null;return f[t]={put:function(t,e){if(s").parent()[0])});var s=H(a,t,a,e,n,r);F.$$addScopeClass(a);var u=null;return function(t,e,n){pt(t,"scope");var r=(n=n||{}).parentBoundTranscludeFn,i=n.transcludeControllers;if(n=n.futureParentElement,r&&r.$$boundTransclude&&(r=r.$$boundTransclude),n="html"!==(u=u||((n=n&&n[0])&&"foreignobject"!==M(n)&&n.toString().match(/SVG/)?"svg":"html"))?on(K(u,on("").append(a).html())):e?_n.clone.call(a):a,i)for(var o in i)n.data("$"+o+"Controller",i[o].instance);return F.$$addScopeInfo(n,t),e&&e(n,t),s&&s(t,n,n,r),n}}function H(t,l,e,n,r,i){for(var o,a,s,u,f,h=[],c=0;c
O.priority)break;if((V=O.scope)&&(O.templateUrl||(st(V)?(Z("new/isolated scope",x||s,O,p),x=O):Z("new/isolated scope",x,O,p)),s=s||O),u=O.name,!O.templateUrl&&O.controller&&(V=O.controller,Z("'"+u+"' controller",(b=b||{})[u],O,p),b[u]=O),(V=O.transclude)&&(h=!0,O.$$tlb||(Z("transclusion",f,O,p),f=O),A="element"==V?(C=!0,l=O.priority,V=p,p=m.$$element=on(rt.createComment(" "+u+": "+m[u]+" ")),d=p[0],Y(n,hn.call(V,0),d),F(V,e,l,r&&r.name,{nonTlbTranscludeDirective:f})):(V=on(mt(d)).contents(),p.empty(),F(V,e))),O.template)if($=!0,Z("template",S,O,p),V=ct((S=O).template)?O.template(p,m):O.template,V=et(V),O.replace){if(r=O,V=qn.test(V)?Dt(K(O.templateNamespace,xn(V))):[],d=V[0],1!=V.length||d.nodeType!==On)throw tr("tplrt",u,"");Y(n,p,d);var V=L(d,[],E={$attr:{}}),N=t.splice(k+1,t.length-(k+1));x&&W(V),t=t.concat(V).concat(N),J(m,E),E=t.length}else p.html(V);if(O.templateUrl)$=!0,Z("template",S,O,p),(S=O).replace&&(r=O),a=function(s,u,c,l,f,h,$,p){var d,m,v=[],g=u[0],y=s.shift(),w=at(y,{templateUrl:null,transclude:null,replace:null,$$originalDirective:y}),b=ct(y.templateUrl)?y.templateUrl(u,c):y.templateUrl,x=y.templateNamespace;return u.empty(),P(q.getTrustedResourceUrl(b)).then(function(t){var n;if(t=et(t),y.replace){if(t=qn.test(t)?Dt(K(x,xn(t))):[],n=t[0],1!=t.length||n.nodeType!==On)throw tr("tplrt",y.name,b);t={$attr:{}},Y(l,u,n);var e=L(n,[],t);st(y.scope)&&W(e),s=e.concat(s),J(c,t)}else n=g,u.html(t);for(s.unshift(w),d=G(s,n,c,f,u,y,h,$,p),ot(l,function(t,e){t==n&&(l[e]=u[0])}),m=H(u[0].childNodes,f);v.length;){t=v.shift();var r,i=v.shift(),o=v.shift(),a=v.shift(),e=u[0];t.$$destroyed||(i!==g&&(r=i.className,p.hasElementTranscludeDirective&&y.replace||(e=mt(n)),Y(o,on(i),e),U(on(e),r)),i=d.transcludeOnThisElement?_(t,d.transclude,a):a,d(m,t,e,l,i))}v=null}),function(t,e,n,r,i){t=i,e.$$destroyed||(v?v.push(e,n,r,t):(d.transcludeOnThisElement&&(t=_(e,d.transclude,i)),d(m,e,n,r,t)))}}(t.splice(k,t.length-k),p,m,n,h&&A,v,g,{controllerDirectives:b,newIsolateScopeDirective:x,templateDirective:S,nonTlbTranscludeDirective:f}),E=t.length;else if(O.compile)try{ct(c=O.compile(p,m,A))?o(null,c,T,M):c&&o(c.pre,c.post,T,M)}catch(t){j(t,ht(p))}O.terminal&&(a.terminal=!0,l=Math.max(l,O.priority))}return a.scope=s&&!0===s.scope,a.transcludeOnThisElement=h,a.elementTranscludeOnThisElement=C,a.templateOnThisElement=$,a.transclude=A,i.hasElementTranscludeDirective=C,a}function W(t){for(var e=0,n=t.length;es.priority)&&-1!=s.restrict.indexOf(n)&&(o&&(s=at(s,{$$start:o,$$end:a})),t.push(s),i=s)}catch(t){j(t)}return i}}function J(n,r){var i=r.$attr,o=n.$attr,a=n.$$element;ot(n,function(t,e){"$"!=e.charAt(0)&&(r[e]&&r[e]!==t&&(t+=("style"===e?";":" ")+r[e]),n.$set(e,t,!0,i[e]))}),ot(r,function(t,e){"class"==e?(U(a,t),n.class=(n.class?n.class+" ":"")+t):"style"==e?(a.attr("style",a.attr("style")+";"+t),n.style=(n.style?n.style+";":"")+t):"$"==e.charAt(0)||n.hasOwnProperty(e)||(n[e]=t,o[e]=i[e])})}function b(t,e){var n=e.priority-t.priority;return 0!=n?n:t.name!==e.name?t.name"+e+""+t+">",n.childNodes[0].childNodes;default:return e}}function Y(t,e,n){var r,i=e[0],o=e.length,a=i.parentNode;if(t)for(r=0,s=t.length;ri+1?t=0:(s=l,c=!0)),c)0=h+$)for(f=c.length-h,o=0;o=l},n.$observe("min",function(t){l=u(t),r.$validate()})),(H(n.max)||n.ngMax)&&(r.$validators.max=function(t){return!s(t)||F(f)||d(t)<=f},n.$observe("max",function(t){f=u(t),r.$validate()}))}}function Qe(t,n,e,r){(r.$$hasNativeValidators=st(n[0].validity))&&r.$parsers.push(function(t){var e=n.prop("validity")||{};return e.badInput&&!e.typeMismatch?it:t})}function tn(t,e,n,r,i){if(H(r)){if(!(t=t(r)).constant)throw C("ngModel")("constexpr",n,r);return t(e)}return i}function en(n,h){return n="ngClass"+n,["$animate",function(c){function l(t,e){var n=[],r=0;t:for(;r(?:<\/\1>|)$/,qn=/<|?\w+;/,Un=/<([\w:]+)/,Fn=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Hn={option:[1,''," "],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};Hn.optgroup=Hn.option,Hn.tbody=Hn.tfoot=Hn.colgroup=Hn.caption=Hn.thead,Hn.th=Hn.td;var _n=z.prototype={ready:function(t){function e(){n||(n=!0,t())}var n=!1;"complete"===rt.readyState?setTimeout(e):(this.on("DOMContentLoaded",e),z(u).on("load",e))},toString:function(){var e=[];return ot(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(t){return on(0<=t?this[t]:this[this.length+t])},length:0,push:pn,sort:[].sort,splice:[].splice},Ln={};ot("multiple selected checked disabled readOnly required open".split(" "),function(t){Ln[cn(t)]=t});var Bn={};ot("input select option textarea button form details".split(" "),function(t){Bn[t]=!0});var zn={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};function Gn(t,e){if(F(e)){var n=t.nodeType;return n===On||n===Tn?t.textContent:""}t.textContent=e}ot({data:K,removeData:J},function(t,e){z[e]=t}),ot({data:K,inheritedData:nt,scope:function(t){return on.data(t,"$scope")||nt(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return on.data(t,"$isolateScope")||on.data(t,"$isolateScopeNoTemplate")},controller:et,injector:function(t){return nt(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:Y,css:function(t,e,n){if(e=U(e),!H(n))return t.style[e];t.style[e]=n},attr:function(t,e,n){var r=cn(e);if(Ln[r]){if(!H(n))return t[e]||(t.attributes.getNamedItem(e)||V).specified?r:it;n?(t[e]=!0,t.setAttribute(e,r)):(t[e]=!1,t.removeAttribute(r))}else if(H(n))t.setAttribute(e,n);else if(t.getAttribute)return null===(t=t.getAttribute(e,2))?it:t},prop:function(t,e,n){if(!H(n))return t[e];t[e]=n},text:(Gn.$dv="",Gn),val:function(t,e){if(F(e)){if(t.multiple&&"select"===M(t)){var n=[];return ot(t.options,function(t){t.selected&&n.push(t.value||t.text)}),0===n.length?null:n}return t.value}t.value=e},html:function(t,e){if(F(e))return t.innerHTML;G(t,!0),t.innerHTML=e},empty:vt},function(a,t){z.prototype[t]=function(t,e){var n,r=this.length;if(a!==vt&&(2==a.length&&a!==Y&&a!==et?t:e)===it){if(st(t)){for(o=0;o":function(t,e,n,r){return n(t,e)>r(t,e)},"<=":function(t,e,n,r){return n(t,e)<=r(t,e)},">=":function(t,e,n,r){return n(t,e)>=r(t,e)},"&&":function(t,e,n,r){return n(t,e)&&r(t,e)},"||":function(t,e,n,r){return n(t,e)||r(t,e)},"!":function(t,e,n){return!n(t,e)},"=":!0,"|":!0}),yr={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},wr=function(t){this.options=t};wr.prototype={constructor:wr,lex:function(t){for(this.text=t,this.index=0,this.tokens=[];this.indext){var o=(t=this.tokens[t]).text;if(o===e||o===n||o===r||o===i||!(e||n||r||i))return t}return!1},expect:function(t,e,n,r){return!!(t=this.peek(t,e,n,r))&&(this.tokens.shift(),t)},consume:function(t){if(0===this.tokens.length)throw $r("ueoe",this.text);var e=this.expect(t);return e||this.throwError("is unexpected, expecting ["+t+"]",this.peek()),e},unaryFn:function(t,n){var r=gr[t];return T(function(t,e){return r(t,e,n)},{constant:n.constant,inputs:[n]})},binaryFn:function(n,t,r,e){var i=gr[t];return T(function(t,e){return i(t,e,n,r)},{constant:n.constant&&r.constant,inputs:!e&&[n,r]})},identifier:function(){for(var t=this.consume().text;this.peek(".")&&this.peekAhead(1).identifier&&!this.peekAhead(2,"(");)t+=this.consume().text+this.consume().text;return $e(t,this.options,this.text)},constant:function(){var t=this.consume().value;return T(function(){return t},{constant:!0,literal:!0})},statements:function(){for(var o=[];;)if(0","<=",">=");)e=this.binaryFn(e,t.text,this.additive());return e},additive:function(){for(var t,e=this.multiplicative();t=this.expect("+","-");)e=this.binaryFn(e,t.text,this.multiplicative());return e},multiplicative:function(){for(var t,e=this.unary();t=this.expect("*","/","%");)e=this.binaryFn(e,t.text,this.unary());return e},unary:function(){var t;return this.expect("+")?this.primary():(t=this.expect("-"))?this.binaryFn(br.ZERO,t.text,this.unary()):(t=this.expect("!"))?this.unaryFn(t.text,this.unary()):this.primary()},fieldAccess:function(i){var o=this.identifier();return T(function(t,e,n){return null==(t=n||i(t,e))?it:o(t)},{assign:function(t,e,n){var r=i(t,n);return r||i.assign(t,r={},n),o.assign(r,e)}})},objectIndex:function(o){var a=this.text,s=this.expression();return this.consume("]"),T(function(t,e){var n=o(t,e),e=s(t,e);return se(e,a),n?ue(n[e],a):it},{assign:function(t,e,n){var r=se(s(t,n),a),i=ue(o(t,n),a);return i||o.assign(t,i={},n),i[r]=e}})},functionCall:function(o,a){var s=[];if(")"!==this.peekToken().text)for(;s.push(this.expression()),this.expect(","););this.consume(")");var u=this.text,c=s.length?[]:null;return function(t,e){var n=a?a(t,e):H(a)?it:t,r=o(t,e,n)||V;if(c)for(var i=s.length;i--;)c[i]=ue(s[i](t,e),u);if(ue(n,u),r){if(r.constructor===r)throw $r("isecfn",u);if(r===pr||r===dr||r===mr)throw $r("isecff",u)}return n=r.apply?r.apply(n,c):r(c[0],c[1],c[2],c[3],c[4]),c&&(c.length=0),ue(n,u)}},arrayDeclaration:function(){var o=[];if("]"!==this.peekToken().text)for(;!this.peek("]")&&(o.push(this.expression()),this.expect(",")););return this.consume("]"),T(function(t,e){for(var n=[],r=0,i=o.length;r=i})}}}var di,mi=["$animate",function(u){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(t,n,r,e,i){var o,a,s;t.$watch(r.ngIf,function(t){t?a||i(function(t,e){a=e,t[t.length++]=rt.createComment(" end ngIf: "+r.ngIf+" "),o={clone:t},u.enter(t,n.parent(),n)}):(s&&(s.remove(),s=null),a&&(a.$destroy(),a=null),o&&(s=q(o.clone),u.leave(s).then(function(){s=null}),o=null))})}}}],vi=["$templateRequest","$anchorScroll","$animate","$sce",function(d,m,v,r){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:vn.noop,compile:function(t,e){var n=e.ngInclude||e.src,$=e.onload||"",p=e.autoscroll;return function(o,a,t,s,u){function c(){e&&(e.remove(),e=null),l&&(l.$destroy(),l=null),f&&(v.leave(f).then(function(){e=null}),e=f,f=null)}var l,e,f,h=0;o.$watch(r.parseAsResourceUrl(n),function(n){function r(){!H(p)||p&&!o.$eval(p)||m()}var i=++h;n?(d(n,!0).then(function(t){var e;i===h&&(e=o.$new(),s.template=t,t=u(e,function(t){c(),v.enter(t,null,a).then(r)}),f=t,(l=e).$emit("$includeContentLoaded",n),o.$eval($))},function(){i===h&&(c(),o.$emit("$includeContentError",n))}),o.$emit("$includeContentRequested",n)):(c(),s.template=null)})}}}}],gi=["$compile",function(i){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(t,e,n,r){/SVG/.test(e[0].toString())?(e.empty(),i(B(r.template,rt).childNodes)(t,function(t){e.append(t)},{futureParentElement:e})):(e.html(r.template),i(e.contents())(t))}}}],yi=We({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}}),wi="ng-valid",bi="ng-invalid",xi="ng-pristine",Si="ng-dirty",Ci="ng-pending",Ai=new C("ngModel"),ki=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(i,e,o,a,s,t,r,u,l,n){this.$modelValue=this.$viewValue=Number.NaN,this.$$rawModelValue=it,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=it,this.$name=n(o.name||"",!1)(i);var f,c=s(o.ngModel),h=c.assign,$=c,p=h,d=null,m=this;this.$$setOptions=function(t){if((m.$options=t)&&t.getterSetter){var n=s(o.ngModel+"()"),r=s(o.ngModel+"($$$p)");$=function(t){var e=c(t);return e=ct(e)?n(t):e},p=function(t,e){ct(c(t))?r(t,{$$$p:m.$modelValue}):h(t,m.$modelValue)}}else if(!c.assign)throw Ai("nonassign",o.ngModel,ht(a))},this.$render=V,this.$isEmpty=function(t){return F(t)||""===t||null===t||t!=t};var v=a.inheritedData("$formController")||Ir,g=0;nn({ctrl:this,$element:a,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},parentForm:v,$animate:t}),this.$setPristine=function(){m.$dirty=!1,m.$pristine=!0,t.removeClass(a,Si),t.addClass(a,xi)},this.$setDirty=function(){m.$dirty=!0,m.$pristine=!1,t.removeClass(a,xi),t.addClass(a,Si),v.$setDirty()},this.$setUntouched=function(){m.$touched=!1,m.$untouched=!0,t.setClass(a,"ng-untouched","ng-touched")},this.$setTouched=function(){m.$touched=!0,m.$untouched=!1,t.setClass(a,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){r.cancel(d),m.$viewValue=m.$$lastCommittedViewValue,m.$render()},this.$validate=function(){var e,n,r,i;y(m.$modelValue)&&isNaN(m.$modelValue)||(e=m.$$rawModelValue,n=m.$valid,r=m.$modelValue,i=m.$options&&m.$options.allowInvalid,m.$$runValidators(e,m.$$lastCommittedViewValue,function(t){i||n===t||(m.$modelValue=t?e:it,m.$modelValue!==r&&m.$$writeModelToScope())}))},this.$$runValidators=function(n,r,e){function i(t,e){c===g&&m.$setValidity(t,e)}function t(t){c===g&&e(t)}var o,a,s,u,c=++g;u=m.$$parserName||"parse",(f!==it?(f||(ot(m.$validators,function(t,e){i(e,null)}),ot(m.$asyncValidators,function(t,e){i(e,null)})),i(u,f),f):(i(u,null),1))?(s=!0,ot(m.$validators,function(t,e){t=t(n,r);s=s&&t,i(e,t)}),s||(ot(m.$asyncValidators,function(t,e){i(e,null)}),0)?(o=[],a=!0,ot(m.$asyncValidators,function(t,e){t=t(n,r);if(!t||!ct(t.then))throw Ai("$asyncValidators",t);i(e,it),o.push(t.then(function(){i(e,!0)},function(t){i(e,a=!1)}))}),o.length?l.all(o).then(function(){t(a)},V):t(!0)):t(!1)):t(!1)},this.$commitViewValue=function(){var t=m.$viewValue;r.cancel(d),(m.$$lastCommittedViewValue!==t||""===t&&m.$$hasNativeValidators)&&(m.$$lastCommittedViewValue=t,m.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var e=m.$$lastCommittedViewValue;if(f=!F(e)||it)for(var t=0;to;)w($,(t=f.pop()).label,!1),t.element.remove()}for(;T.length>n;){for(e=T.pop(),o=1;o@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}');
-function Packet(e,t,n){this.id=e||(new Date).toISOString()+Math.random(),this.cmd=t,this.data=n,this.instanceId=null}var buildfire={isFileServer:function(e){return-1!==e.indexOf("s3.amazonaws.com")},isWidget:function(){return 0{i.queue.forEach(e=>{e&&e(t)}),i.loaded=!0,i.queue=[]}))},loadScript:function({url:t,scriptId:e},n=Function()){let i=document.getElementById(e);var a=document.getElementsByTagName("script");if(i||Array.from(a).some(e=>e.src.includes(t.replaceAll("../",""))))return n();const r=document.head||document.body;i=document.createElement("script"),i.id=e||"",i.type="text/javascript",i.src=t,i.onload=n,i.onerror=function(){n(new Error("failed to load script component")),console.error("failed to load script component")},r.appendChild(i)},ratingSystem:{inject:function(){var e,t,n,i;void 0!==buildfire&&(void 0===buildfire.components||void 0===buildfire.components.ratingSystem?(t=function(e){var t=document.head||document.body,n=document.createElement("link");n.rel="stylesheet",n.type="text/css",n.href="../../../scripts/buildfire/components/ratingSystem/index.min.css",t.appendChild(n);const i=t.querySelector("meta[charset]");i&&i.getAttribute("charset").toLowerCase().includes("utf-8")||console.warn("UTF-8 charset is required for ratingSystem to function properly"),buildfire.components.ratingSystem.injectRatings({isFromWysiwyg:!0})},function(e){for(;e.includes("../");)e=e.replace("../","");for(var t=document.getElementsByTagName("script"),n=0;n{.9<=Math.random()&&buildfire.logger.log({message:e.message,level:"error",category:"BrowserJsException",exception:{colno:e.colno,lineno:e.lineno,message:e.message,stack:e.error&&e.error.stack?e.error&&e.error.stack:"n/a",url:e.filename}}),t("Error: "+e.message," Script: "+e.filename," Line: "+e.lineno," Column: "+e.colno,(e.error,e.error.stack?e.error&&e.error.stack:"n/a"))})},log:function(n,i){n&&"object"==typeof n||(n={}),buildfire.getContext((e,t)=>{n.context||(n.context={}),n.context.pluginId=t?.pluginId,n.context.instanceId=t?.instanceId,n.context.pluginTitle=t?.title,n.tags||(n.tags=[]),n.tags.push("sdkAndPlugins");t=new Packet(null,"logger.log",n);buildfire._sendPacket(t,i)})}},_callbacks:{},parseQueryString:function(e){for(var t=(e||window.location.search.substring(1)).split("&"),n=new Object,i=0;i{return e?console.error(e):void(t&&"sdk"===t.scope?(n=(e,t)=>{var n,i;e&&console.error(e),window.pluginJson=t,buildfire._cssInjection.handleCssLayoutInjection(t),t&&t.control&&t.control.language&&t.control.language.enabled&&(n=(e,t)=>{e&&console.error(e),window.pluginLanguageJson=t,buildfire.language.handleLanguageSettings(window.pluginJson,t)},i=`../${t.control.language.languageJsonPath}`,fetch(i).then(e=>e.json()).then(e=>{n(null,e)}).catch(e=>{n(e,null)}))},t=`../plugin.json?v=${(new Date).getTime()}`,fetch(t).then(e=>e.json()).then(e=>{n(null,e)}).catch(e=>{n(e,null)})):document.write('