pict 1.0.277 → 1.0.279

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5101,7 +5101,7 @@ try{if(!global.localStorage)return false;}catch(_){return false;}var val=global.
5101
5101
  // presumably different callback function.
5102
5102
  // This makes sure that own properties are retained, so that
5103
5103
  // decorations and such are not lost along the way.
5104
- module.exports=wrappy;function wrappy(fn,cb){if(fn&&cb)return wrappy(fn)(cb);if(typeof fn!=='function')throw new TypeError('need wrapper function');Object.keys(fn).forEach(function(k){wrapper[k]=fn[k];});return wrapper;function wrapper(){var args=new Array(arguments.length);for(var i=0;i<args.length;i++){args[i]=arguments[i];}var ret=fn.apply(this,args);var cb=args[args.length-1];if(typeof ret==='function'&&ret!==cb){Object.keys(cb).forEach(function(k){ret[k]=cb[k];});}return ret;}}},{}],190:[function(require,module,exports){module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty;function extend(){var target={};for(var i=0;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;}},{}],191:[function(require,module,exports){module.exports={"name":"pict","version":"1.0.277","description":"Pict browser library.","main":"source/Pict.js","scripts":{"start":"node source/Pict.js","test":"npx mocha -u tdd -R spec","tests":"npx mocha -u tdd --exit -R spec --grep","coverage":"npx nyc --reporter=lcov --reporter=text-lcov npx mocha -- -u tdd -R spec","build":"npx quack build","docker-dev-build":"docker build ./ -f Dockerfile_LUXURYCode -t pict-image:local","docker-dev-run":"docker run -it -d --name pict-dev -p 37447:8080 -p 19506:8086 -v \"$PWD/.config:/home/coder/.config\" -v \"$PWD:/home/coder/pict\" -u \"$(id -u):$(id -g)\" -e \"DOCKER_USER=$USER\" pict-image:local","docker-dev-shell":"docker exec -it pict-dev /bin/bash","lint":"eslint source/**/*.js test/**/*.js","types":"tsc -p ."},"types":"types/source/Pict.d.ts","mocha":{"diff":true,"extension":["js"],"package":"./package.json","reporter":"spec","slow":"75","timeout":"5000","ui":"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},"repository":{"type":"git","url":"git+https://stevenvelozo@github.com/stevenvelozo/pict.git"},"author":"steven velozo <steven@velozo.com>","license":"MIT","bugs":{"url":"https://github.com/stevenvelozo/pict/issues"},"homepage":"https://github.com/stevenvelozo/pict#readme","devDependencies":{"@eslint/js":"^9.27.0","@types/jquery":"^3.5.32","@types/sinon":"^17.0.4","eslint":"^9.27.0","globals":"^16.2.0","quackage":"^1.0.42","sinon":"^20.0.0","typescript":"^5.8.3"},"dependencies":{"cachetrax":"^1.0.4","fable":"^3.1.16","pict-application":"^1.0.27","pict-provider":"^1.0.6","pict-template":"^1.0.12","pict-view":"^1.0.62"}};},{}],192:[function(require,module,exports){// This assumes Pict has been required in the browser. Delcare these as globals so linter can do its job.
5104
+ module.exports=wrappy;function wrappy(fn,cb){if(fn&&cb)return wrappy(fn)(cb);if(typeof fn!=='function')throw new TypeError('need wrapper function');Object.keys(fn).forEach(function(k){wrapper[k]=fn[k];});return wrapper;function wrapper(){var args=new Array(arguments.length);for(var i=0;i<args.length;i++){args[i]=arguments[i];}var ret=fn.apply(this,args);var cb=args[args.length-1];if(typeof ret==='function'&&ret!==cb){Object.keys(cb).forEach(function(k){ret[k]=cb[k];});}return ret;}}},{}],190:[function(require,module,exports){module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty;function extend(){var target={};for(var i=0;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;}},{}],191:[function(require,module,exports){module.exports={"name":"pict","version":"1.0.278","description":"Pict browser library.","main":"source/Pict.js","scripts":{"start":"node source/Pict.js","test":"npx mocha -u tdd -R spec","tests":"npx mocha -u tdd --exit -R spec --grep","coverage":"npx nyc --reporter=lcov --reporter=text-lcov npx mocha -- -u tdd -R spec","build":"npx quack build","docker-dev-build":"docker build ./ -f Dockerfile_LUXURYCode -t pict-image:local","docker-dev-run":"docker run -it -d --name pict-dev -p 37447:8080 -p 19506:8086 -v \"$PWD/.config:/home/coder/.config\" -v \"$PWD:/home/coder/pict\" -u \"$(id -u):$(id -g)\" -e \"DOCKER_USER=$USER\" pict-image:local","docker-dev-shell":"docker exec -it pict-dev /bin/bash","lint":"eslint source/**/*.js test/**/*.js","types":"tsc -p ."},"types":"types/source/Pict.d.ts","mocha":{"diff":true,"extension":["js"],"package":"./package.json","reporter":"spec","slow":"75","timeout":"5000","ui":"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},"repository":{"type":"git","url":"git+https://stevenvelozo@github.com/stevenvelozo/pict.git"},"author":"steven velozo <steven@velozo.com>","license":"MIT","bugs":{"url":"https://github.com/stevenvelozo/pict/issues"},"homepage":"https://github.com/stevenvelozo/pict#readme","devDependencies":{"@eslint/js":"^9.27.0","@types/jquery":"^3.5.32","@types/sinon":"^17.0.4","eslint":"^9.27.0","globals":"^16.2.0","quackage":"^1.0.42","sinon":"^20.0.0","typescript":"^5.8.3"},"dependencies":{"cachetrax":"^1.0.4","fable":"^3.1.16","pict-application":"^1.0.27","pict-provider":"^1.0.6","pict-template":"^1.0.12","pict-view":"^1.0.62"}};},{}],192:[function(require,module,exports){// This assumes Pict has been required in the browser. Delcare these as globals so linter can do its job.
5105
5105
  /* global Pict, _Pict: writeable *//**
5106
5106
  * Simple function to load a pict Application
5107
5107
  *
@@ -5434,7 +5434,7 @@ if(!(pTemplateHash in this.templates)){this.checkDefaultTemplateHash(pTemplateHa
5434
5434
  * },
5435
5435
  * MetaTemplate: any,
5436
5436
  * }} Fable
5437
- *//** @type {{ new(...args: any[]): Fable }} */var libFable=require('fable');var libPackage=require('../package.json');var libProviderFilterManager=require('./providers/Provider-Filter-Manager.js');var PictTemplateProvider=require('./Pict-Template-Provider.js');var PictContentAssignment=require('./Pict-Content-Assignment.js');var PictDataProvider=require('./Pict-DataProvider.js');var PictCSS=require('./Pict-CSS.js');var PictMeadowEntityProvider=require('./Pict-Meadow-EntityProvider.js');/**
5437
+ *//** @type {{ new(...args: any[]): Fable }} */var libFable=require('fable');var libPackage=require('../package.json');var libProviderFilterManager=require('./providers/Provider-Filter-Manager.js');var libProviderDataBroker=require('./providers/Provider-DataBroker.js');var PictTemplateProvider=require('./Pict-Template-Provider.js');var PictContentAssignment=require('./Pict-Content-Assignment.js');var PictDataProvider=require('./Pict-DataProvider.js');var PictCSS=require('./Pict-CSS.js');var PictMeadowEntityProvider=require('./Pict-Meadow-EntityProvider.js');/**
5438
5438
  * Pict management object.
5439
5439
  */var Pict=/*#__PURE__*/function(_libFable){/**
5440
5440
  * @param {Object<String, any>} pSettings - The settings for the Pict instance.
@@ -5466,7 +5466,7 @@ _this82.LogNoisiness=0;// Although we have log noisiness, sometimes we need cont
5466
5466
  _this82.LogControlFlow=false;// And an easy way to be introspective about data at various locations
5467
5467
  _this82.LogControlFlowWatchAddressList=[];// Load manifest sets
5468
5468
  if(_this82.settings.Manifests){_this82.loadManifestSet(_this82.settings.Manifests);}_this82._DefaultPictTemplatesInitialized=false;_this82.initializePictTemplateEngine();_this82.addServiceType("PictView",require("pict-view"));_this82.addServiceType("PictProvider",require("pict-provider"));_this82.addServiceType("PictApplication",require("pict-application"));// Expose the named views directly, through a convenience accessor
5469
- /** @type {{ FilterManager: libProviderFilterManager, [key: string]: any }} */_this82.providers=_this82.servicesMap.PictProvider;_this82.views=_this82.servicesMap.PictView;_this82.addProvider('FilterManager',{},libProviderFilterManager);return _this82;}/**
5469
+ /** @type {{ FilterManager: libProviderFilterManager, [key: string]: any }} */_this82.providers=_this82.servicesMap.PictProvider;_this82.views=_this82.servicesMap.PictView;_this82.addProvider('FilterManager',{},libProviderFilterManager);_this82.addProvider('DataBroker',{},libProviderDataBroker);return _this82;}/**
5470
5470
  * Load manifests in as Hashed services
5471
5471
  *
5472
5472
  * @param {Object<String, String>} pManifestSet - The manifest set to load.
@@ -5651,7 +5651,7 @@ var tmpValue="";if(typeof fCallback=="function"){if(Array.isArray(pDataSet)||_ty
5651
5651
  * @return {String?} The parsed template string, or undefined if a callback was provided
5652
5652
  */},{key:"parseTemplateSetWithPayloadByHash",value:function parseTemplateSetWithPayloadByHash(pTemplateHash,pDataSet,pPayload,fCallback,pContextArray,pScope){var tmpTemplateString=this.TemplateProvider.getTemplate(pTemplateHash);// TODO: Unsure if returning empty is always the right behavior -- if it isn't we will use config to set the behavior
5653
5653
  if(!tmpTemplateString){tmpTemplateString="";}return this.parseTemplateSetWithPayload(tmpTemplateString,pDataSet,pPayload,fCallback,pContextArray,pScope);}}]);}(libFable);module.exports=Pict;module.exports.PictApplicationClass=require("pict-application");module.exports.PictViewClass=require("pict-view");module.exports.PictProviderClass=require("pict-provider");module.exports.PictTemplateClass=require("pict-template");module.exports.EnvironmentLog=require("./environments/Pict-Environment-Log.js");module.exports.EnvironmentObject=require("./environments/Pict-Environment-Object.js");module.exports.FilterClauseBase=require('./filters/FilterClauseBase.js');module.exports.FilterClauseLocal=require('./filters/FilterClauseLocal.js');module.exports.FilterClauseInternalJoin=require('./filters/FilterClauseInternalJoin.js');module.exports.FilterClauseExternalJoin=require('./filters/FilterClauseExternalJoin.js');// This is to help understand the type of enivironement we're executing in
5654
- module.exports.isBrowser=new Function("try {return (this===window);} catch(pError) {return false;}");module.exports.safeOnDocumentReady=require("./Pict-Browser-SafeOnDocumentReady.js");module.exports.safeLoadPictApplication=require("./Pict-Browser-SafeLoad.js");},{"../package.json":191,"./Pict-Browser-SafeLoad.js":192,"./Pict-Browser-SafeOnDocumentReady.js":193,"./Pict-CSS.js":194,"./Pict-Content-Assignment.js":195,"./Pict-DataProvider.js":196,"./Pict-Meadow-EntityProvider.js":197,"./Pict-Template-Provider.js":198,"./environments/Pict-Environment-Log.js":200,"./environments/Pict-Environment-Object.js":201,"./filters/FilterClauseBase.js":203,"./filters/FilterClauseExternalJoin.js":204,"./filters/FilterClauseInternalJoin.js":205,"./filters/FilterClauseLocal.js":206,"./providers/Provider-Filter-Manager.js":207,"./templates/Pict-Template-Data.js":208,"./templates/Pict-Template-DataValueByKey.js":209,"./templates/Pict-Template-DataWithTemplateFallback.js":210,"./templates/Pict-Template-Entity.js":211,"./templates/Pict-Template-Self.js":212,"./templates/Pict-Template-SolveByReference.js":213,"./templates/Pict-Template-Template.js":214,"./templates/Pict-Template-TemplateByDataAddress.js":215,"./templates/Pict-Template-TemplateByReference.js":216,"./templates/Pict-Template-TemplateFromMap.js":217,"./templates/Pict-Template-TemplateSet.js":218,"./templates/Pict-Template-TemplateSetFromMap.js":219,"./templates/Pict-Template-TemplateSetWithPayload.js":220,"./templates/Pict-Template-TemplateValueSet.js":221,"./templates/Pict-Template-View.js":222,"./templates/data-generation/Pict-Template-RandomNumber.js":223,"./templates/data-generation/Pict-Template-RandomNumberString.js":224,"./templates/data/Pict-Template-DataEncodeJavascriptString.js":225,"./templates/data/Pict-Template-DataJson.js":226,"./templates/data/Pict-Template-DateOnlyFormat.js":227,"./templates/data/Pict-Template-DateOnlyYMD.js":228,"./templates/data/Pict-Template-DateTimeFormat.js":229,"./templates/data/Pict-Template-DateTimeYMD.js":230,"./templates/data/Pict-Template-Digits.js":231,"./templates/data/Pict-Template-Dollars.js":232,"./templates/data/Pict-Template-HtmlCommentEnd.js":233,"./templates/data/Pict-Template-HtmlCommentStart.js":234,"./templates/data/Pict-Template-Join.js":235,"./templates/data/Pict-Template-JoinUnique.js":236,"./templates/data/Pict-Template-PascalCaseIdentifier.js":237,"./templates/data/Pict-Template-PluckJoinUnique.js":238,"./templates/debugging/Pict-Template-Breakpoint.js":239,"./templates/debugging/Pict-Template-DataValueTree.js":240,"./templates/debugging/Pict-Template-LogStatement.js":241,"./templates/debugging/Pict-Template-LogValue.js":242,"./templates/debugging/Pict-Template-LogValueTree.js":243,"./templates/logic/Pict-Template-NotEmpty.js":244,"./templates/logic/Pict-Template-TemplateIf.js":246,"./templates/logic/Pict-Template-TemplateIfAbsolute.js":247,"fable":68,"pict-application":139,"pict-provider":141,"pict-template":143,"pict-view":145}],200:[function(require,module,exports){/**
5654
+ module.exports.isBrowser=new Function("try {return (this===window);} catch(pError) {return false;}");module.exports.safeOnDocumentReady=require("./Pict-Browser-SafeOnDocumentReady.js");module.exports.safeLoadPictApplication=require("./Pict-Browser-SafeLoad.js");},{"../package.json":191,"./Pict-Browser-SafeLoad.js":192,"./Pict-Browser-SafeOnDocumentReady.js":193,"./Pict-CSS.js":194,"./Pict-Content-Assignment.js":195,"./Pict-DataProvider.js":196,"./Pict-Meadow-EntityProvider.js":197,"./Pict-Template-Provider.js":198,"./environments/Pict-Environment-Log.js":200,"./environments/Pict-Environment-Object.js":201,"./filters/FilterClauseBase.js":203,"./filters/FilterClauseExternalJoin.js":204,"./filters/FilterClauseInternalJoin.js":205,"./filters/FilterClauseLocal.js":206,"./providers/Provider-DataBroker.js":207,"./providers/Provider-Filter-Manager.js":208,"./templates/Pict-Template-Data.js":209,"./templates/Pict-Template-DataValueByKey.js":210,"./templates/Pict-Template-DataWithTemplateFallback.js":211,"./templates/Pict-Template-Entity.js":212,"./templates/Pict-Template-Self.js":213,"./templates/Pict-Template-SolveByReference.js":214,"./templates/Pict-Template-Template.js":215,"./templates/Pict-Template-TemplateByDataAddress.js":216,"./templates/Pict-Template-TemplateByReference.js":217,"./templates/Pict-Template-TemplateFromMap.js":218,"./templates/Pict-Template-TemplateSet.js":219,"./templates/Pict-Template-TemplateSetFromMap.js":220,"./templates/Pict-Template-TemplateSetWithPayload.js":221,"./templates/Pict-Template-TemplateValueSet.js":222,"./templates/Pict-Template-View.js":223,"./templates/data-generation/Pict-Template-RandomNumber.js":224,"./templates/data-generation/Pict-Template-RandomNumberString.js":225,"./templates/data/Pict-Template-DataEncodeJavascriptString.js":226,"./templates/data/Pict-Template-DataJson.js":227,"./templates/data/Pict-Template-DateOnlyFormat.js":228,"./templates/data/Pict-Template-DateOnlyYMD.js":229,"./templates/data/Pict-Template-DateTimeFormat.js":230,"./templates/data/Pict-Template-DateTimeYMD.js":231,"./templates/data/Pict-Template-Digits.js":232,"./templates/data/Pict-Template-Dollars.js":233,"./templates/data/Pict-Template-HtmlCommentEnd.js":234,"./templates/data/Pict-Template-HtmlCommentStart.js":235,"./templates/data/Pict-Template-Join.js":236,"./templates/data/Pict-Template-JoinUnique.js":237,"./templates/data/Pict-Template-PascalCaseIdentifier.js":238,"./templates/data/Pict-Template-PluckJoinUnique.js":239,"./templates/debugging/Pict-Template-Breakpoint.js":240,"./templates/debugging/Pict-Template-DataValueTree.js":241,"./templates/debugging/Pict-Template-LogStatement.js":242,"./templates/debugging/Pict-Template-LogValue.js":243,"./templates/debugging/Pict-Template-LogValueTree.js":244,"./templates/logic/Pict-Template-NotEmpty.js":245,"./templates/logic/Pict-Template-TemplateIf.js":247,"./templates/logic/Pict-Template-TemplateIfAbsolute.js":248,"fable":68,"pict-application":139,"pict-provider":141,"pict-template":143,"pict-view":145}],200:[function(require,module,exports){/**
5655
5655
  * Pict browser shim loader
5656
5656
  * @author <steven@velozo.com>
5657
5657
  *
@@ -5920,12 +5920,26 @@ if(!pFilterState.Filter){pFilterState.Filter="".concat(pFilterState.Entity||'Unk
5920
5920
  * @param {import('../Pict.js')} pFable
5921
5921
  */function FilterClauseLocal(pFable){var _this89;_classCallCheck2(this,FilterClauseLocal);_this89=_callSuper(this,FilterClauseLocal,[pFable]);/** @type {import('./Filter.js').FilterType} */_this89._type='Match';/** @type {string} */_this89.filterByColumn;/** @type {boolean?} */_this89.exactMatch;/** @type {boolean?} */_this89.startExclusive;/** @type {boolean?} */_this89.endExclusive;return _this89;}/**
5922
5922
  * @return {import('./FilterClauseBase.js').FilterClauseConfig}
5923
- */_inherits(FilterClauseLocal,_libFilterClauseBase3);return _createClass2(FilterClauseLocal,[{key:"generateFilterClauseConfig",value:function generateFilterClauseConfig(){switch(this._type){case'Match':case'StringMatch':case'DateMatch':case'NumericMatch':return{Type:this._type,Values:Array.isArray(this.values)?this.values:[],ExactMatch:this.exactMatch,FilterByColumn:this.filterByColumn};case'Range':case'StringRange':case'DateRange':case'NumericRange':return{Type:this._type,Values:Array.isArray(this.values)?{Start:undefined,End:undefined}:Object.assign({},this.values),StartExclusive:this.startExclusive,EndExclusive:this.endExclusive,FilterByColumn:this.filterByColumn};default:throw new Error("Unsupported filter type: ".concat(this.type));}}}]);}(libFilterClauseBase);module.exports=FilterClauseLocal;},{"./FilterClauseBase.js":203}],207:[function(require,module,exports){var libPictProvider=require('pict-provider');var libFilter=require('../filters/Filter.js');/** @type {Record<string, any>} */var _DEFAULT_PROVIDER_CONFIGURATION={ProviderIdentifier:'Pict-RecordSet-FilterManager',AutoInitialize:true,AutoInitializeOrdinal:0};var PictRecordSetFilterManager=/*#__PURE__*/function(_libPictProvider){function PictRecordSetFilterManager(pFable,pOptions,pServiceHash){var _this90;_classCallCheck2(this,PictRecordSetFilterManager);var tmpOptions=Object.assign({},_DEFAULT_PROVIDER_CONFIGURATION,pOptions);_this90=_callSuper(this,PictRecordSetFilterManager,[pFable,tmpOptions,pServiceHash]);/** @type {Record<string, any>} */_this90.options;/** @type {import('../Pict.js')} */_this90.pict;_this90.filters={};_this90.filterCriteria={};return _this90;}/**
5923
+ */_inherits(FilterClauseLocal,_libFilterClauseBase3);return _createClass2(FilterClauseLocal,[{key:"generateFilterClauseConfig",value:function generateFilterClauseConfig(){switch(this._type){case'Match':case'StringMatch':case'DateMatch':case'NumericMatch':return{Type:this._type,Values:Array.isArray(this.values)?this.values:[],ExactMatch:this.exactMatch,FilterByColumn:this.filterByColumn};case'Range':case'StringRange':case'DateRange':case'NumericRange':return{Type:this._type,Values:Array.isArray(this.values)?{Start:undefined,End:undefined}:Object.assign({},this.values),StartExclusive:this.startExclusive,EndExclusive:this.endExclusive,FilterByColumn:this.filterByColumn};default:throw new Error("Unsupported filter type: ".concat(this.type));}}}]);}(libFilterClauseBase);module.exports=FilterClauseLocal;},{"./FilterClauseBase.js":203}],207:[function(require,module,exports){var libPictProvider=require('pict-provider');/** @type {Record<string, any>} */var _DEFAULT_PROVIDER_CONFIGURATION={ProviderIdentifier:'Pict-Provider-DataBroker',AutoInitialize:true,AutoInitializeOrdinal:0};var PictDataBrokerProvider=/*#__PURE__*/function(_libPictProvider){function PictDataBrokerProvider(pFable,pOptions,pServiceHash){var _this90;_classCallCheck2(this,PictDataBrokerProvider);var tmpOptions=Object.assign({},_DEFAULT_PROVIDER_CONFIGURATION,pOptions);_this90=_callSuper(this,PictDataBrokerProvider,[pFable,tmpOptions,pServiceHash]);/** @type {Record<string, any>} */_this90.options;/** @type {import('../Pict.js')} */_this90.pict;_this90.marshalDestination='AppData';return _this90;}/**
5924
+ * @param {string} pHash - The hash of the value to retrieve.
5925
+ */_inherits(PictDataBrokerProvider,_libPictProvider);return _createClass2(PictDataBrokerProvider,[{key:"getValue",value:function getValue(pHash){return this.getValueByHash(pHash);}/**
5926
+ * @param {string} pHash - The hash of the value to retrieve.
5927
+ */},{key:"getValueByHash",value:function getValueByHash(pHash){return this.pict.manifest.getValueByHash(this.getMarshalDestinationObject(),pHash);}/**
5928
+ * @param {string} pHash - The hash of the value to retrieve.
5929
+ * @param {any} pValue - The value to set.
5930
+ */},{key:"setValue",value:function setValue(pHash,pValue){return this.setValueByHash(pHash,pValue);}/**
5931
+ * @param {string} pHash - The hash of the value to retrieve.
5932
+ * @param {any} pValue - The value to set.
5933
+ */},{key:"setValueByHash",value:function setValueByHash(pHash,pValue){return this.pict.manifest.setValueByHash(this.getMarshalDestinationObject(),pHash,pValue);}/**
5934
+ * @param {string} pMarshalDestinationAddress - The address of the marshal destination.
5935
+ */},{key:"marshalDestination",set:function set(pMarshalDestinationAddress){this._marshalDestination=pMarshalDestinationAddress;this._marshalDestinationObject=this.pict.resolveStateFromAddress(pMarshalDestinationAddress);if(!this._marshalDestinationObject){throw new Error("Invalid marshal destination address: ".concat(pMarshalDestinationAddress));}}/**
5936
+ * @return {Record<string, any>} - The marshal destination object.
5937
+ */},{key:"marshalDestinationObject",get:function get(){return this._marshalDestinationObject;}},{key:"getMarshalDestinationObject",value:function getMarshalDestinationObject(){return this.marshalDestinationObject;}}]);}(libPictProvider);module.exports=PictDataBrokerProvider;module.exports.default_configuration=_DEFAULT_PROVIDER_CONFIGURATION;},{"pict-provider":141}],208:[function(require,module,exports){var libPictProvider=require('pict-provider');var libFilter=require('../filters/Filter.js');/** @type {Record<string, any>} */var _DEFAULT_PROVIDER_CONFIGURATION={ProviderIdentifier:'Pict-RecordSet-FilterManager',AutoInitialize:true,AutoInitializeOrdinal:0};var PictRecordSetFilterManager=/*#__PURE__*/function(_libPictProvider2){function PictRecordSetFilterManager(pFable,pOptions,pServiceHash){var _this91;_classCallCheck2(this,PictRecordSetFilterManager);var tmpOptions=Object.assign({},_DEFAULT_PROVIDER_CONFIGURATION,pOptions);_this91=_callSuper(this,PictRecordSetFilterManager,[pFable,tmpOptions,pServiceHash]);/** @type {Record<string, any>} */_this91.options;/** @type {import('../Pict.js')} */_this91.pict;_this91.filters={};_this91.filterCriteria={};return _this91;}/**
5924
5938
  * @param {string} pFilterHash
5925
5939
  * @param {Record<string, any>} pFilterConfig
5926
5940
  *
5927
5941
  * @return {void}
5928
- */_inherits(PictRecordSetFilterManager,_libPictProvider);return _createClass2(PictRecordSetFilterManager,[{key:"addFilter",value:function addFilter(pFilterHash,pFilterConfig){if(!pFilterHash||typeof pFilterHash!=='string'){this.log.error('Invalid filter hash provided. It must be a non-empty string.');return;}if(!pFilterConfig||_typeof(pFilterConfig)!=='object'||!pFilterConfig.Type){this.log.error('Invalid filter configuration provided. It must be an object with a Type property.');return;}var tmpFilterConfig=JSON.parse(JSON.stringify(pFilterConfig));if(tmpFilterConfig.Hash&&tmpFilterConfig.Hash!==pFilterHash){this.log.warn("Filter configuration hash mismatch: provided ".concat(tmpFilterConfig.Hash,", expected ").concat(pFilterHash,". Overriding with provided hash."));}tmpFilterConfig.Hash=pFilterHash;this.filters[tmpFilterConfig.Hash]=tmpFilterConfig;}/**
5942
+ */_inherits(PictRecordSetFilterManager,_libPictProvider2);return _createClass2(PictRecordSetFilterManager,[{key:"addFilter",value:function addFilter(pFilterHash,pFilterConfig){if(!pFilterHash||typeof pFilterHash!=='string'){this.log.error('Invalid filter hash provided. It must be a non-empty string.');return;}if(!pFilterConfig||_typeof(pFilterConfig)!=='object'||!pFilterConfig.Type){this.log.error('Invalid filter configuration provided. It must be an object with a Type property.');return;}var tmpFilterConfig=JSON.parse(JSON.stringify(pFilterConfig));if(tmpFilterConfig.Hash&&tmpFilterConfig.Hash!==pFilterHash){this.log.warn("Filter configuration hash mismatch: provided ".concat(tmpFilterConfig.Hash,", expected ").concat(pFilterHash,". Overriding with provided hash."));}tmpFilterConfig.Hash=pFilterHash;this.filters[tmpFilterConfig.Hash]=tmpFilterConfig;}/**
5929
5943
  * @param {string} pFilterCriteriaHash
5930
5944
  * @param {Record<string, any>} pFilterCriteriaConfig
5931
5945
  *
@@ -5965,11 +5979,11 @@ tmpPageSize=10000;}/** @type {import('../filters/Filter.js').FilterState} */var
5965
5979
  * @param {number | ((pError?: Error) => void)} pRecordOffset
5966
5980
  * @param {number | ((pError?: Error) => void)} pPageSize
5967
5981
  * @param {(pError?: Error) => void} fCallback
5968
- */},{key:"executeFilterPage",value:function executeFilterPage(pFilterConfigurationAddress,pFilterExperienceAddress,pRecordOffset,pPageSize,fCallback){var tmpCallback=typeof pRecordOffset==='function'?pRecordOffset:typeof pPageSize==='function'?pPageSize:fCallback;var tmpFilterConfiguration=this.pict.resolveStateFromAddress(pFilterConfigurationAddress);if(!Array.isArray(tmpFilterConfiguration)){return tmpCallback(new Error("Filter configuration at address ".concat(pFilterConfigurationAddress," is not an array.")));}var tmpFilterExperience=this.pict.resolveStateFromAddress(pFilterExperienceAddress);if(!tmpFilterExperience||_typeof(tmpFilterExperience)!=='object'){return tmpCallback(new Error("Filter experience at address ".concat(pFilterExperienceAddress," is not an object.")));}return this.loadRecordPageByFilter(tmpFilterConfiguration,tmpFilterExperience,pRecordOffset,pPageSize,fCallback);}},{key:"executeFilterCount",value:function executeFilterCount(pFilterConfigurationAddress,pFilterExperienceAddress,fCallback){var tmpFilterConfiguration=this.pict.resolveStateFromAddress(pFilterConfigurationAddress);if(!Array.isArray(tmpFilterConfiguration)){return fCallback(new Error("Filter configuration at address ".concat(pFilterConfigurationAddress," is not an array.")));}var tmpFilterExperience=this.pict.resolveStateFromAddress(pFilterExperienceAddress);if(!tmpFilterExperience||_typeof(tmpFilterExperience)!=='object'){return fCallback(new Error("Filter experience at address ".concat(pFilterExperienceAddress," is not an object.")));}return this.countRecordsByFilter(tmpFilterConfiguration,tmpFilterExperience,fCallback);}}]);}(libPictProvider);module.exports=PictRecordSetFilterManager;module.exports.default_configuration=_DEFAULT_PROVIDER_CONFIGURATION;},{"../filters/Filter.js":202,"pict-provider":141}],208:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderData=/*#__PURE__*/function(_libPictTemplate){/**
5982
+ */},{key:"executeFilterPage",value:function executeFilterPage(pFilterConfigurationAddress,pFilterExperienceAddress,pRecordOffset,pPageSize,fCallback){var tmpCallback=typeof pRecordOffset==='function'?pRecordOffset:typeof pPageSize==='function'?pPageSize:fCallback;var tmpFilterConfiguration=this.pict.resolveStateFromAddress(pFilterConfigurationAddress);if(!Array.isArray(tmpFilterConfiguration)){return tmpCallback(new Error("Filter configuration at address ".concat(pFilterConfigurationAddress," is not an array.")));}var tmpFilterExperience=this.pict.resolveStateFromAddress(pFilterExperienceAddress);if(!tmpFilterExperience||_typeof(tmpFilterExperience)!=='object'){return tmpCallback(new Error("Filter experience at address ".concat(pFilterExperienceAddress," is not an object.")));}return this.loadRecordPageByFilter(tmpFilterConfiguration,tmpFilterExperience,pRecordOffset,pPageSize,fCallback);}},{key:"executeFilterCount",value:function executeFilterCount(pFilterConfigurationAddress,pFilterExperienceAddress,fCallback){var tmpFilterConfiguration=this.pict.resolveStateFromAddress(pFilterConfigurationAddress);if(!Array.isArray(tmpFilterConfiguration)){return fCallback(new Error("Filter configuration at address ".concat(pFilterConfigurationAddress," is not an array.")));}var tmpFilterExperience=this.pict.resolveStateFromAddress(pFilterExperienceAddress);if(!tmpFilterExperience||_typeof(tmpFilterExperience)!=='object'){return fCallback(new Error("Filter experience at address ".concat(pFilterExperienceAddress," is not an object.")));}return this.countRecordsByFilter(tmpFilterConfiguration,tmpFilterExperience,fCallback);}}]);}(libPictProvider);module.exports=PictRecordSetFilterManager;module.exports.default_configuration=_DEFAULT_PROVIDER_CONFIGURATION;},{"../filters/Filter.js":202,"pict-provider":141}],209:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderData=/*#__PURE__*/function(_libPictTemplate){/**
5969
5983
  * @param {Object} pFable - The Fable Framework instance
5970
5984
  * @param {Object} pOptions - The options for the service
5971
5985
  * @param {String} pServiceHash - The hash of the service
5972
- */function PictTemplateProviderData(pFable,pOptions,pServiceHash){var _this91;_classCallCheck2(this,PictTemplateProviderData);_this91=_callSuper(this,PictTemplateProviderData,[pFable,pOptions,pServiceHash]);/** @type {any} */_this91.log;_this91.addPattern('{~Data:','~}');_this91.addPattern('{~D:','~}');return _this91;}/**
5986
+ */function PictTemplateProviderData(pFable,pOptions,pServiceHash){var _this92;_classCallCheck2(this,PictTemplateProviderData);_this92=_callSuper(this,PictTemplateProviderData,[pFable,pOptions,pServiceHash]);/** @type {any} */_this92.log;_this92.addPattern('{~Data:','~}');_this92.addPattern('{~D:','~}');return _this92;}/**
5973
5987
  * Render a template expression, returning a string with the resulting content or an optional default value.
5974
5988
  *
5975
5989
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -5978,11 +5992,11 @@ tmpPageSize=10000;}/** @type {import('../filters/Filter.js').FilterState} */var
5978
5992
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
5979
5993
  *
5980
5994
  * @return {string} The rendered template
5981
- */_inherits(PictTemplateProviderData,_libPictTemplate);return _createClass2(PictTemplateProviderData,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpRecord=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"] with tmpData:"),tmpRecord);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"]"));}var tmpDefaultValue='';if(tmpHash.indexOf(':')>-1){tmpDefaultValue=tmpHash.split(':')[1];tmpHash=tmpHash.split(':')[0];}var tmpValue='';if(tmpHash!=null){tmpValue=this.resolveStateFromAddress(tmpHash,tmpRecord,pContextArray,null,pScope);}if(tmpValue==null||tmpValue=='undefined'||typeof tmpValue=='undefined'||tmpValue===''){return tmpDefaultValue;}return tmpValue;}}]);}(libPictTemplate);module.exports=PictTemplateProviderData;},{"pict-template":143}],209:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDataValueByKey=/*#__PURE__*/function(_libPictTemplate2){/**
5995
+ */_inherits(PictTemplateProviderData,_libPictTemplate);return _createClass2(PictTemplateProviderData,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpRecord=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"] with tmpData:"),tmpRecord);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"]"));}var tmpDefaultValue='';if(tmpHash.indexOf(':')>-1){tmpDefaultValue=tmpHash.split(':')[1];tmpHash=tmpHash.split(':')[0];}var tmpValue='';if(tmpHash!=null){tmpValue=this.resolveStateFromAddress(tmpHash,tmpRecord,pContextArray,null,pScope);}if(tmpValue==null||tmpValue=='undefined'||typeof tmpValue=='undefined'||tmpValue===''){return tmpDefaultValue;}return tmpValue;}}]);}(libPictTemplate);module.exports=PictTemplateProviderData;},{"pict-template":143}],210:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDataValueByKey=/*#__PURE__*/function(_libPictTemplate2){/**
5982
5996
  * @param {Object} pFable - The Fable Framework instance
5983
5997
  * @param {Object} pOptions - The options for the service
5984
5998
  * @param {String} pServiceHash - The hash of the service
5985
- */function PictTemplateProviderDataValueByKey(pFable,pOptions,pServiceHash){var _this92;_classCallCheck2(this,PictTemplateProviderDataValueByKey);_this92=_callSuper(this,PictTemplateProviderDataValueByKey,[pFable,pOptions,pServiceHash]);/** @type {any} */_this92.log;_this92.addPattern('{~DataValueByKey:','~}');_this92.addPattern('{~DVBK:','~}');return _this92;}/**
5999
+ */function PictTemplateProviderDataValueByKey(pFable,pOptions,pServiceHash){var _this93;_classCallCheck2(this,PictTemplateProviderDataValueByKey);_this93=_callSuper(this,PictTemplateProviderDataValueByKey,[pFable,pOptions,pServiceHash]);/** @type {any} */_this93.log;_this93.addPattern('{~DataValueByKey:','~}');_this93.addPattern('{~DVBK:','~}');return _this93;}/**
5986
6000
  * Render a template expression, returning a string with the resulting content.
5987
6001
  *
5988
6002
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -5991,11 +6005,11 @@ tmpPageSize=10000;}/** @type {import('../filters/Filter.js').FilterState} */var
5991
6005
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
5992
6006
  *
5993
6007
  * @return {string} The rendered template
5994
- */_inherits(PictTemplateProviderDataValueByKey,_libPictTemplate2);return _createClass2(PictTemplateProviderDataValueByKey,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpRecord=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"] with tmpData:"),tmpRecord);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"]"));}var tmpHashArray=tmpHash.split(':');if(tmpHashArray.length<2){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"] failed because there were not two stanzas in the expression [").concat(pTemplateHash,"]"));return'';}var tmpDefaultValue='';if(tmpHashArray.length>2){tmpDefaultValue=tmpHashArray[2];}var tmpValueObject=this.resolveStateFromAddress(tmpHashArray[0],tmpRecord,pContextArray,null,pScope);var tmpValueAddress=this.resolveStateFromAddress(tmpHashArray[1],tmpRecord,pContextArray,null,pScope);var tmpValue=this.pict.manifest.getValueByHash(tmpValueObject,tmpValueAddress);if(tmpValue==null||tmpValue=='undefined'||typeof tmpValue=='undefined'){return tmpDefaultValue;}return tmpValue;}}]);}(libPictTemplate);module.exports=PictTemplateProviderDataValueByKey;},{"pict-template":143}],210:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderData=/*#__PURE__*/function(_libPictTemplate3){/**
6008
+ */_inherits(PictTemplateProviderDataValueByKey,_libPictTemplate2);return _createClass2(PictTemplateProviderDataValueByKey,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpRecord=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"] with tmpData:"),tmpRecord);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"]"));}var tmpHashArray=tmpHash.split(':');if(tmpHashArray.length<2){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"] failed because there were not two stanzas in the expression [").concat(pTemplateHash,"]"));return'';}var tmpDefaultValue='';if(tmpHashArray.length>2){tmpDefaultValue=tmpHashArray[2];}var tmpValueObject=this.resolveStateFromAddress(tmpHashArray[0],tmpRecord,pContextArray,null,pScope);var tmpValueAddress=this.resolveStateFromAddress(tmpHashArray[1],tmpRecord,pContextArray,null,pScope);var tmpValue=this.pict.manifest.getValueByHash(tmpValueObject,tmpValueAddress);if(tmpValue==null||tmpValue=='undefined'||typeof tmpValue=='undefined'){return tmpDefaultValue;}return tmpValue;}}]);}(libPictTemplate);module.exports=PictTemplateProviderDataValueByKey;},{"pict-template":143}],211:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderData=/*#__PURE__*/function(_libPictTemplate3){/**
5995
6009
  * @param {Object} pFable - The Fable Framework instance
5996
6010
  * @param {Object} pOptions - The options for the service
5997
6011
  * @param {String} pServiceHash - The hash of the service
5998
- */function PictTemplateProviderData(pFable,pOptions,pServiceHash){var _this93;_classCallCheck2(this,PictTemplateProviderData);_this93=_callSuper(this,PictTemplateProviderData,[pFable,pOptions,pServiceHash]);/** @type {any} */_this93.log;_this93.addPattern('{~DataWithTemplateFallback:','~}');_this93.addPattern('{~DWTF:','~}');return _this93;}/**
6012
+ */function PictTemplateProviderData(pFable,pOptions,pServiceHash){var _this94;_classCallCheck2(this,PictTemplateProviderData);_this94=_callSuper(this,PictTemplateProviderData,[pFable,pOptions,pServiceHash]);/** @type {any} */_this94.log;_this94.addPattern('{~DataWithTemplateFallback:','~}');_this94.addPattern('{~DWTF:','~}');return _this94;}/**
5999
6013
  * Render a template expression, returning a string with the resulting content or an optional default template string from an address.
6000
6014
  *
6001
6015
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6017,13 +6031,13 @@ return'';}if(this.pict.LogNoisiness>3){this.log.trace("PICT DataWithTemplateFall
6017
6031
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6018
6032
  *
6019
6033
  * @return {void} The result is passed to the callback function
6020
- */},{key:"renderAsync",value:function renderAsync(pTemplateHash,pRecord,fCallback,pContextArray,pScope){var _this94=this;var tmpHash=pTemplateHash.trim();var tmpRecord=_typeof(pRecord)==='object'?pRecord:{};var tmpCallback=typeof fCallback==='function'?fCallback:function(){return'';};if(this.pict.LogNoisiness>4){this.log.trace("PICT DataWithTemplateFallback [fDataRender]::[".concat(tmpHash,"] with tmpRecord:"),tmpRecord);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT DataWithTemplateFallback [fDataRender]::[".concat(tmpHash,"]"));}var tmpTemplateFallbackAddress='';if(tmpHash.indexOf(':')>-1){tmpTemplateFallbackAddress=tmpHash.split(':')[1];tmpHash=tmpHash.split(':')[0];}var tmpValue='';if(tmpHash!=null){tmpValue=this.resolveStateFromAddress(tmpHash,tmpRecord,pContextArray,null,pScope);if(tmpValue&&tmpValue!=='undefined'){if(this.pict.LogNoisiness>3){this.log.trace("PICT DataWithTemplateFallback [fDataRender]::[".concat(tmpHash,"] - Found value: ").concat(tmpValue));}return tmpCallback(null,tmpValue);}}// If the value is not found or is undefined, try to use the fallback template
6021
- this.pict.parseTemplateByHash(tmpTemplateFallbackAddress,tmpRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}if(pValue==null||pValue===''){_this94.log.warn("PICT DataWithTemplateFallback [fDataRender]::[".concat(tmpHash,"] - No fallback template found at address: ").concat(tmpTemplateFallbackAddress));// If no fallback template is found, return an empty string
6022
- return tmpCallback(null,'');}if(_this94.pict.LogNoisiness>3){_this94.log.trace("PICT DataWithTemplateFallback [fDataRender]::[".concat(tmpHash,"] - Using fallback template from address: ").concat(tmpTemplateFallbackAddress));}return tmpCallback(null,pValue);},pContextArray,pScope);}}]);}(libPictTemplate);module.exports=PictTemplateProviderData;},{"pict-template":143}],211:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderEntity=/*#__PURE__*/function(_libPictTemplate4){/**
6034
+ */},{key:"renderAsync",value:function renderAsync(pTemplateHash,pRecord,fCallback,pContextArray,pScope){var _this95=this;var tmpHash=pTemplateHash.trim();var tmpRecord=_typeof(pRecord)==='object'?pRecord:{};var tmpCallback=typeof fCallback==='function'?fCallback:function(){return'';};if(this.pict.LogNoisiness>4){this.log.trace("PICT DataWithTemplateFallback [fDataRender]::[".concat(tmpHash,"] with tmpRecord:"),tmpRecord);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT DataWithTemplateFallback [fDataRender]::[".concat(tmpHash,"]"));}var tmpTemplateFallbackAddress='';if(tmpHash.indexOf(':')>-1){tmpTemplateFallbackAddress=tmpHash.split(':')[1];tmpHash=tmpHash.split(':')[0];}var tmpValue='';if(tmpHash!=null){tmpValue=this.resolveStateFromAddress(tmpHash,tmpRecord,pContextArray,null,pScope);if(tmpValue&&tmpValue!=='undefined'){if(this.pict.LogNoisiness>3){this.log.trace("PICT DataWithTemplateFallback [fDataRender]::[".concat(tmpHash,"] - Found value: ").concat(tmpValue));}return tmpCallback(null,tmpValue);}}// If the value is not found or is undefined, try to use the fallback template
6035
+ this.pict.parseTemplateByHash(tmpTemplateFallbackAddress,tmpRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}if(pValue==null||pValue===''){_this95.log.warn("PICT DataWithTemplateFallback [fDataRender]::[".concat(tmpHash,"] - No fallback template found at address: ").concat(tmpTemplateFallbackAddress));// If no fallback template is found, return an empty string
6036
+ return tmpCallback(null,'');}if(_this95.pict.LogNoisiness>3){_this95.log.trace("PICT DataWithTemplateFallback [fDataRender]::[".concat(tmpHash,"] - Using fallback template from address: ").concat(tmpTemplateFallbackAddress));}return tmpCallback(null,pValue);},pContextArray,pScope);}}]);}(libPictTemplate);module.exports=PictTemplateProviderData;},{"pict-template":143}],212:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderEntity=/*#__PURE__*/function(_libPictTemplate4){/**
6023
6037
  * @param {Object} pFable - The Fable Framework instance
6024
6038
  * @param {Object} pOptions - The options for the service
6025
6039
  * @param {String} pServiceHash - The hash of the service
6026
- */function PictTemplateProviderEntity(pFable,pOptions,pServiceHash){var _this95;_classCallCheck2(this,PictTemplateProviderEntity);_this95=_callSuper(this,PictTemplateProviderEntity,[pFable,pOptions,pServiceHash]);/** @type {any} */_this95.log;_this95.addPattern('{~E:','~}');_this95.addPattern('{~Entity:','~}');return _this95;}/**
6040
+ */function PictTemplateProviderEntity(pFable,pOptions,pServiceHash){var _this96;_classCallCheck2(this,PictTemplateProviderEntity);_this96=_callSuper(this,PictTemplateProviderEntity,[pFable,pOptions,pServiceHash]);/** @type {any} */_this96.log;_this96.addPattern('{~E:','~}');_this96.addPattern('{~Entity:','~}');return _this96;}/**
6027
6041
  * Render a template expression, returning a string with the resulting content.
6028
6042
  *
6029
6043
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6048,11 +6062,11 @@ var tmpAddressParts=tmpHash.split('^');if(tmpAddressParts.length<2){this.log.war
6048
6062
  tmpEntityID=this.resolveStateFromAddress(String(tmpEntityID),tmpData,pContextArray,null,pScope);}// No Entity or EntityID
6049
6063
  if(!tmpEntity||!tmpEntityID){this.log.warn("Pict: Entity Render: Entity or entity ID not resolved for [".concat(tmpHash,"] Entity: ").concat(tmpEntity," ID: ").concat(tmpEntityID));return tmpCallback(null,'');}if(this.pict.LogNoisiness>3){this.log.trace("Pict: Entity Render: Entity [".concat(tmpEntity,"] with ID [").concat(tmpEntityID,"] as template [").concat(tmpEntityTemplate,"] from [").concat(tmpHash,"]"));}// Now try to get the entity
6050
6064
  this.pict.EntityProvider.getEntity(tmpEntity,tmpEntityID,function(pError,pRecord){if(pError){this.log.error("Pict: Entity Render: Error getting entity [".concat(tmpEntity,"] with ID [").concat(tmpEntityID,"] for [").concat(tmpHash,"]: ").concat(pError),pError);return tmpCallback(pError,'');}// Now render the template
6051
- if(tmpEntityTemplate){this.pict.parseTemplateByHash(tmpEntityTemplate,pRecord,tmpCallback,pContextArray,pScope);}else{tmpCallback(null,'');}}.bind(this));}}]);}(libPictTemplate);module.exports=PictTemplateProviderEntity;},{"pict-template":143}],212:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderSelf=/*#__PURE__*/function(_libPictTemplate5){/**
6065
+ if(tmpEntityTemplate){this.pict.parseTemplateByHash(tmpEntityTemplate,pRecord,tmpCallback,pContextArray,pScope);}else{tmpCallback(null,'');}}.bind(this));}}]);}(libPictTemplate);module.exports=PictTemplateProviderEntity;},{"pict-template":143}],213:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderSelf=/*#__PURE__*/function(_libPictTemplate5){/**
6052
6066
  * @param {Object} pFable - The Fable Framework instance
6053
6067
  * @param {Object} pOptions - The options for the service
6054
6068
  * @param {String} pServiceHash - The hash of the service
6055
- */function PictTemplateProviderSelf(pFable,pOptions,pServiceHash){var _this96;_classCallCheck2(this,PictTemplateProviderSelf);_this96=_callSuper(this,PictTemplateProviderSelf,[pFable,pOptions,pServiceHash]);_this96.addPattern('{~Pict','~}');_this96.addPattern('{~P','~}');_this96.addPattern('{~p','~}');return _this96;}/**
6069
+ */function PictTemplateProviderSelf(pFable,pOptions,pServiceHash){var _this97;_classCallCheck2(this,PictTemplateProviderSelf);_this97=_callSuper(this,PictTemplateProviderSelf,[pFable,pOptions,pServiceHash]);_this97.addPattern('{~Pict','~}');_this97.addPattern('{~P','~}');_this97.addPattern('{~p','~}');return _this97;}/**
6056
6070
  * Render a template expression, returning a string with the resulting content.
6057
6071
  *
6058
6072
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6061,11 +6075,11 @@ if(tmpEntityTemplate){this.pict.parseTemplateByHash(tmpEntityTemplate,pRecord,tm
6061
6075
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6062
6076
  *
6063
6077
  * @return {string} The rendered template
6064
- */_inherits(PictTemplateProviderSelf,_libPictTemplate5);return _createClass2(PictTemplateProviderSelf,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){return this.pict.browserAddress;}}]);}(libPictTemplate);module.exports=PictTemplateProviderSelf;},{"pict-template":143}],213:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderSolveByReference=/*#__PURE__*/function(_libPictTemplate6){/**
6078
+ */_inherits(PictTemplateProviderSelf,_libPictTemplate5);return _createClass2(PictTemplateProviderSelf,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){return this.pict.browserAddress;}}]);}(libPictTemplate);module.exports=PictTemplateProviderSelf;},{"pict-template":143}],214:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderSolveByReference=/*#__PURE__*/function(_libPictTemplate6){/**
6065
6079
  * @param {Object} pFable - The Fable Framework instance
6066
6080
  * @param {Object} pOptions - The options for the service
6067
6081
  * @param {String} pServiceHash - The hash of the service
6068
- */function PictTemplateProviderSolveByReference(pFable,pOptions,pServiceHash){var _this97;_classCallCheck2(this,PictTemplateProviderSolveByReference);_this97=_callSuper(this,PictTemplateProviderSolveByReference,[pFable,pOptions,pServiceHash]);/** @type {any} */_this97.log;_this97.addPattern('{~SolveByReference:','~}');_this97.addPattern('{~SBR:','~}');return _this97;}/**
6082
+ */function PictTemplateProviderSolveByReference(pFable,pOptions,pServiceHash){var _this98;_classCallCheck2(this,PictTemplateProviderSolveByReference);_this98=_callSuper(this,PictTemplateProviderSolveByReference,[pFable,pOptions,pServiceHash]);/** @type {any} */_this98.log;_this98.addPattern('{~SolveByReference:','~}');_this98.addPattern('{~SBR:','~}');return _this98;}/**
6069
6083
  * Render a template expression, returning a string with the resulting content.
6070
6084
  *
6071
6085
  * @param {string} pSolveParams - The solver parameters.
@@ -6075,11 +6089,11 @@ if(tmpEntityTemplate){this.pict.parseTemplateByHash(tmpEntityTemplate,pRecord,tm
6075
6089
  *
6076
6090
  * @return {string} The rendered template
6077
6091
  */_inherits(PictTemplateProviderSolveByReference,_libPictTemplate6);return _createClass2(PictTemplateProviderSolveByReference,[{key:"render",value:function render(pSolveParams,pRecord,pContextArray,pScope){// {~SBR:AppData.Equation:AppData.HomeworkRectangleSize:AppData.HomeworkManifest~}
6078
- var _pSolveParams$trim$sp=pSolveParams.trim().split(':',3),_pSolveParams$trim$sp2=_slicedToArray(_pSolveParams$trim$sp,3),tmpEquationAddress=_pSolveParams$trim$sp2[0],tmpRecordAddress=_pSolveParams$trim$sp2[1],tmpManifestAddress=_pSolveParams$trim$sp2[2];var tmpContextualRecord=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT SolveByReference [fTemplateRender]::[".concat(pSolveParams,"] with tmpData:"),tmpContextualRecord);}else if(this.pict.LogNoisiness>0){this.log.trace("PICT SolveByReference [fTemplateRender]::[".concat(pSolveParams,"]"));}var tmpEquation=this.pict.resolveStateFromAddress(tmpEquationAddress,tmpContextualRecord,pContextArray,null,pScope);if(!tmpEquation){if(this.pict.LogNoisiness>2){this.log.warn("Pict: SolveByReference: Equation not found for [".concat(tmpEquationAddress,"]"));}return'';}var tmpRecord=tmpRecordAddress&&this.pict.resolveStateFromAddress(tmpRecordAddress,tmpContextualRecord,pContextArray,null,pScope)||tmpContextualRecord;var tmpManifest=tmpManifestAddress&&this.pict.resolveStateFromAddress(tmpManifestAddress,tmpContextualRecord,pContextArray,null,pScope)||this.pict.manifest;var expressionParser=this.fable.instantiateServiceProviderIfNotExists('ExpressionParser');var tmpResultObject={};return expressionParser.solve(tmpEquation,tmpRecord,tmpResultObject,tmpManifest,tmpRecord);}}]);}(libPictTemplate);module.exports=PictTemplateProviderSolveByReference;},{"pict-template":143}],214:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplate=/*#__PURE__*/function(_libPictTemplate7){/**
6092
+ var _pSolveParams$trim$sp=pSolveParams.trim().split(':',3),_pSolveParams$trim$sp2=_slicedToArray(_pSolveParams$trim$sp,3),tmpEquationAddress=_pSolveParams$trim$sp2[0],tmpRecordAddress=_pSolveParams$trim$sp2[1],tmpManifestAddress=_pSolveParams$trim$sp2[2];var tmpContextualRecord=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT SolveByReference [fTemplateRender]::[".concat(pSolveParams,"] with tmpData:"),tmpContextualRecord);}else if(this.pict.LogNoisiness>0){this.log.trace("PICT SolveByReference [fTemplateRender]::[".concat(pSolveParams,"]"));}var tmpEquation=this.pict.resolveStateFromAddress(tmpEquationAddress,tmpContextualRecord,pContextArray,null,pScope);if(!tmpEquation){if(this.pict.LogNoisiness>2){this.log.warn("Pict: SolveByReference: Equation not found for [".concat(tmpEquationAddress,"]"));}return'';}var tmpRecord=tmpRecordAddress&&this.pict.resolveStateFromAddress(tmpRecordAddress,tmpContextualRecord,pContextArray,null,pScope)||tmpContextualRecord;var tmpManifest=tmpManifestAddress&&this.pict.resolveStateFromAddress(tmpManifestAddress,tmpContextualRecord,pContextArray,null,pScope)||this.pict.manifest;var expressionParser=this.fable.instantiateServiceProviderIfNotExists('ExpressionParser');var tmpResultObject={};return expressionParser.solve(tmpEquation,tmpRecord,tmpResultObject,tmpManifest,tmpRecord);}}]);}(libPictTemplate);module.exports=PictTemplateProviderSolveByReference;},{"pict-template":143}],215:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplate=/*#__PURE__*/function(_libPictTemplate7){/**
6079
6093
  * @param {Object} pFable - The Fable Framework instance
6080
6094
  * @param {Object} pOptions - The options for the service
6081
6095
  * @param {String} pServiceHash - The hash of the service
6082
- */function PictTemplateProviderTemplate(pFable,pOptions,pServiceHash){var _this98;_classCallCheck2(this,PictTemplateProviderTemplate);_this98=_callSuper(this,PictTemplateProviderTemplate,[pFable,pOptions,pServiceHash]);/** @type {any} */_this98.log;_this98.addPattern('{~Template:','~}');_this98.addPattern('{~T:','~}');return _this98;}/**
6096
+ */function PictTemplateProviderTemplate(pFable,pOptions,pServiceHash){var _this99;_classCallCheck2(this,PictTemplateProviderTemplate);_this99=_callSuper(this,PictTemplateProviderTemplate,[pFable,pOptions,pServiceHash]);/** @type {any} */_this99.log;_this99.addPattern('{~Template:','~}');_this99.addPattern('{~T:','~}');return _this99;}/**
6083
6097
  * Render a template expression, returning a string with the resulting content.
6084
6098
  *
6085
6099
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6105,11 +6119,11 @@ return this.pict.parseTemplateByHash(tmpTemplateHash,pRecord,null,pContextArray,
6105
6119
  var tmpHashTemplateSeparator=tmpHash.indexOf(':');tmpTemplateHash=tmpHash.substring(0,tmpHashTemplateSeparator);if(tmpHashTemplateSeparator>-1){tmpAddressOfData=tmpHash.substring(tmpHashTemplateSeparator+1);}else{tmpTemplateHash=tmpHash;}// No template hash
6106
6120
  if(!tmpTemplateHash){this.log.warn("Pict: Template Render Async: TemplateHash not resolved for [".concat(tmpHash,"]"));return fCallback(null,'');}if(!tmpAddressOfData){// No address was provided, just render the template with what this template has.
6107
6121
  // The async portion of this is a mind bender because of how entry can happen dynamically from templates
6108
- this.pict.parseTemplateByHash(tmpTemplateHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateByHash(tmpTemplateHash,this.resolveStateFromAddress(tmpAddressOfData,tmpData,pContextArray,null,pScope),function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplate;},{"pict-template":143}],215:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateByDataAddress=/*#__PURE__*/function(_libPictTemplate8){/**
6122
+ this.pict.parseTemplateByHash(tmpTemplateHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateByHash(tmpTemplateHash,this.resolveStateFromAddress(tmpAddressOfData,tmpData,pContextArray,null,pScope),function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplate;},{"pict-template":143}],216:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateByDataAddress=/*#__PURE__*/function(_libPictTemplate8){/**
6109
6123
  * @param {Object} pFable - The Fable Framework instance
6110
6124
  * @param {Object} pOptions - The options for the service
6111
6125
  * @param {String} pServiceHash - The hash of the service
6112
- */function PictTemplateProviderTemplateByDataAddress(pFable,pOptions,pServiceHash){var _this99;_classCallCheck2(this,PictTemplateProviderTemplateByDataAddress);_this99=_callSuper(this,PictTemplateProviderTemplateByDataAddress,[pFable,pOptions,pServiceHash]);/** @type {any} */_this99.log;_this99.addPattern('{~TemplateByDataAddress:','~}');_this99.addPattern('{~TBDA:','~}');return _this99;}/**
6126
+ */function PictTemplateProviderTemplateByDataAddress(pFable,pOptions,pServiceHash){var _this100;_classCallCheck2(this,PictTemplateProviderTemplateByDataAddress);_this100=_callSuper(this,PictTemplateProviderTemplateByDataAddress,[pFable,pOptions,pServiceHash]);/** @type {any} */_this100.log;_this100.addPattern('{~TemplateByDataAddress:','~}');_this100.addPattern('{~TBDA:','~}');return _this100;}/**
6113
6127
  * Render a template expression, returning a string with the resulting content.
6114
6128
  *
6115
6129
  * @param {string} pTemplateDataAddress - The hash contents of the template (what's between the template start and stop tags)
@@ -6135,11 +6149,11 @@ return this.pict.parseTemplate(tmpTemplate,pRecord,null,pContextArray,pScope);}e
6135
6149
  var tmpHashTemplateSeparator=tmpDataAddress.indexOf(':');tmpTemplateDataAddress=tmpDataAddress.substring(0,tmpHashTemplateSeparator);if(tmpHashTemplateSeparator>-1){tmpAddressOfData=tmpDataAddress.substring(tmpHashTemplateSeparator+1);}else{tmpTemplateDataAddress=tmpDataAddress;}// No template hash
6136
6150
  if(!tmpTemplateDataAddress){this.log.warn("Pict: Template Render Async: TemplateHash not resolved for [".concat(tmpDataAddress,"]"));return tmpCallback(null,'');}var tmpTemplate=this.pict.resolveStateFromAddress(tmpTemplateDataAddress,pRecord,pContextArray,null,pScope)||'';if(!tmpTemplate){if(this.pict.LogNoisiness>2){this.log.warn("Pict: Template Render: Template not found for [".concat(tmpTemplateDataAddress,"]"));}tmpTemplate='';}if(!tmpAddressOfData){// No address was provided, just render the template with what this template has.
6137
6151
  // The async portion of this is a mind bender because of how entry can happen dynamically from templates
6138
- this.pict.parseTemplate(tmpTemplate,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplate(tmpTemplate,this.resolveStateFromAddress(tmpAddressOfData,tmpData,pContextArray,null,pScope),function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateByDataAddress;},{"pict-template":143}],216:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplate=/*#__PURE__*/function(_libPictTemplate9){/**
6152
+ this.pict.parseTemplate(tmpTemplate,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplate(tmpTemplate,this.resolveStateFromAddress(tmpAddressOfData,tmpData,pContextArray,null,pScope),function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateByDataAddress;},{"pict-template":143}],217:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplate=/*#__PURE__*/function(_libPictTemplate9){/**
6139
6153
  * @param {Object} pFable - The Fable Framework instance
6140
6154
  * @param {Object} pOptions - The options for the service
6141
6155
  * @param {String} pServiceHash - The hash of the service
6142
- */function PictTemplateProviderTemplate(pFable,pOptions,pServiceHash){var _this100;_classCallCheck2(this,PictTemplateProviderTemplate);_this100=_callSuper(this,PictTemplateProviderTemplate,[pFable,pOptions,pServiceHash]);/** @type {any} */_this100.log;_this100.addPattern('{~TemplateByReference:','~}');_this100.addPattern('{~TBR:','~}');return _this100;}/**
6156
+ */function PictTemplateProviderTemplate(pFable,pOptions,pServiceHash){var _this101;_classCallCheck2(this,PictTemplateProviderTemplate);_this101=_callSuper(this,PictTemplateProviderTemplate,[pFable,pOptions,pServiceHash]);/** @type {any} */_this101.log;_this101.addPattern('{~TemplateByReference:','~}');_this101.addPattern('{~TBR:','~}');return _this101;}/**
6143
6157
  * Render a template expression, returning a string with the resulting content.
6144
6158
  *
6145
6159
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6169,11 +6183,11 @@ if(!tmpTemplateHashReferenceLocation){this.log.warn("Pict: Template Render Async
6169
6183
  var tmpTemplateHash=this.resolveStateFromAddress(tmpTemplateHashReferenceLocation,pRecord,pContextArray,null,pScope);// No template hash
6170
6184
  if(!tmpTemplateHash){this.log.warn("Pict: Template Render Async: TemplateHash not resolved for [".concat(tmpHash,"]"));return fCallback(null,'');}if(!tmpAddressOfData){// No address was provided, just render the template with what this template has.
6171
6185
  // The async portion of this is a mind bender because of how entry can happen dynamically from templates
6172
- this.pict.parseTemplateByHash(tmpTemplateHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateByHash(tmpTemplateHash,this.resolveStateFromAddress(tmpAddressOfData,tmpData,pContextArray,null,pScope),function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplate;},{"pict-template":143}],217:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateFromMap=/*#__PURE__*/function(_libPictTemplate0){/**
6186
+ this.pict.parseTemplateByHash(tmpTemplateHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateByHash(tmpTemplateHash,this.resolveStateFromAddress(tmpAddressOfData,tmpData,pContextArray,null,pScope),function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplate;},{"pict-template":143}],218:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateFromMap=/*#__PURE__*/function(_libPictTemplate0){/**
6173
6187
  * @param {Object} pFable - The Fable Framework instance
6174
6188
  * @param {Object} pOptions - The options for the service
6175
6189
  * @param {String} pServiceHash - The hash of the service
6176
- */function PictTemplateProviderTemplateFromMap(pFable,pOptions,pServiceHash){var _this101;_classCallCheck2(this,PictTemplateProviderTemplateFromMap);_this101=_callSuper(this,PictTemplateProviderTemplateFromMap,[pFable,pOptions,pServiceHash]);/** @type {any} */_this101.log;_this101.addPattern('{~TFM:','~}');_this101.addPattern('{~TemplateFromMap:','~}');return _this101;}/**
6190
+ */function PictTemplateProviderTemplateFromMap(pFable,pOptions,pServiceHash){var _this102;_classCallCheck2(this,PictTemplateProviderTemplateFromMap);_this102=_callSuper(this,PictTemplateProviderTemplateFromMap,[pFable,pOptions,pServiceHash]);/** @type {any} */_this102.log;_this102.addPattern('{~TFM:','~}');_this102.addPattern('{~TemplateFromMap:','~}');return _this102;}/**
6177
6191
  * Render a template expression, returning a string with the resulting content.
6178
6192
  *
6179
6193
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6201,11 +6215,11 @@ var tmpTemplateHashPart=tmpHash.split(':');if(tmpTemplateHashPart.length<3){this
6201
6215
  if(!tmpTemplateFromMapHash){this.log.warn("Pict: TemplateFromMap Render Async: TemplateFromMapHash not resolved for [".concat(tmpHash,"]"));return fCallback(null,'');}// Now resolve the data
6202
6216
  var tmpMap=this.resolveStateFromAddress(tmpAddressOfMap,tmpData,pContextArray,null,pScope);var tmpKey=this.resolveStateFromAddress(tmpAddressOfKey,tmpData,pContextArray,null,pScope);if(!tmpMap){this.log.warn("Pict: TemplateFromMap Render: Map not resolved for [".concat(tmpHash,"]"));return fCallback(null,'');}tmpData=tmpMap[tmpKey];if(!tmpData){// No address was provided, just render the TemplateFromMap with what this TemplateFromMap has.
6203
6217
  // The async portion of this is a mind bender because of how entry can happen dynamically from TemplateFromMaps
6204
- this.pict.parseTemplateByHash(tmpTemplateFromMapHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateByHash(tmpTemplateFromMapHash,tmpData,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateFromMap;},{"pict-template":143}],218:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateSet=/*#__PURE__*/function(_libPictTemplate1){/**
6218
+ this.pict.parseTemplateByHash(tmpTemplateFromMapHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateByHash(tmpTemplateFromMapHash,tmpData,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateFromMap;},{"pict-template":143}],219:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateSet=/*#__PURE__*/function(_libPictTemplate1){/**
6205
6219
  * @param {Object} pFable - The Fable Framework instance
6206
6220
  * @param {Object} pOptions - The options for the service
6207
6221
  * @param {String} pServiceHash - The hash of the service
6208
- */function PictTemplateProviderTemplateSet(pFable,pOptions,pServiceHash){var _this102;_classCallCheck2(this,PictTemplateProviderTemplateSet);_this102=_callSuper(this,PictTemplateProviderTemplateSet,[pFable,pOptions,pServiceHash]);/** @type {any} */_this102.log;_this102.addPattern('{~TemplateSet:','~}');_this102.addPattern('{~TS:','~}');return _this102;}/**
6222
+ */function PictTemplateProviderTemplateSet(pFable,pOptions,pServiceHash){var _this103;_classCallCheck2(this,PictTemplateProviderTemplateSet);_this103=_callSuper(this,PictTemplateProviderTemplateSet,[pFable,pOptions,pServiceHash]);/** @type {any} */_this103.log;_this103.addPattern('{~TemplateSet:','~}');_this103.addPattern('{~TS:','~}');return _this103;}/**
6209
6223
  * Render a template expression, returning a string with the resulting content.
6210
6224
  *
6211
6225
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6232,11 +6246,11 @@ var tmpTemplateHashPart=tmpHash.split(':');if(tmpTemplateHashPart.length<2){this
6232
6246
  if(!tmpTemplateFromMapHash){this.log.warn("Pict: TemplateFromMap Render Async: TemplateFromMapHash not resolved for [".concat(tmpHash,"]"));return fCallback(null,'');}// Now resolve the data
6233
6247
  tmpData=this.resolveStateFromAddress(tmpAddressOfData,tmpData,pContextArray,null,pScope);if(!tmpData){// No address was provided, just render the template with what this template has.
6234
6248
  // The async portion of this is a mind bender because of how entry can happen dynamically from templates
6235
- this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash,tmpData,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateSet;},{"pict-template":143}],219:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateSetFromMap=/*#__PURE__*/function(_libPictTemplate10){/**
6249
+ this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash,tmpData,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateSet;},{"pict-template":143}],220:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateSetFromMap=/*#__PURE__*/function(_libPictTemplate10){/**
6236
6250
  * @param {Object} pFable - The Fable Framework instance
6237
6251
  * @param {Object} pOptions - The options for the service
6238
6252
  * @param {String} pServiceHash - The hash of the service
6239
- */function PictTemplateProviderTemplateSetFromMap(pFable,pOptions,pServiceHash){var _this103;_classCallCheck2(this,PictTemplateProviderTemplateSetFromMap);_this103=_callSuper(this,PictTemplateProviderTemplateSetFromMap,[pFable,pOptions,pServiceHash]);/** @type {any} */_this103.log;_this103.addPattern('{~TSFM:','~}');_this103.addPattern('{~TemplateSetFromMap:','~}');return _this103;}/**
6253
+ */function PictTemplateProviderTemplateSetFromMap(pFable,pOptions,pServiceHash){var _this104;_classCallCheck2(this,PictTemplateProviderTemplateSetFromMap);_this104=_callSuper(this,PictTemplateProviderTemplateSetFromMap,[pFable,pOptions,pServiceHash]);/** @type {any} */_this104.log;_this104.addPattern('{~TSFM:','~}');_this104.addPattern('{~TemplateSetFromMap:','~}');return _this104;}/**
6240
6254
  * Render a template expression, returning a string with the resulting content.
6241
6255
  *
6242
6256
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6264,11 +6278,11 @@ var tmpTemplateHashPart=tmpHash.split(':');if(tmpTemplateHashPart.length<3){this
6264
6278
  if(!tmpTemplateFromMapHash){this.log.warn("Pict: TemplateFromMapSet Render Async: TemplateFromMapHash not resolved for [".concat(tmpHash,"]"));return fCallback(null,'');}// Now resolve the data
6265
6279
  var tmpMap=this.resolveStateFromAddress(tmpAddressOfMap,tmpData,pContextArray,null,pScope);var tmpKey=this.resolveStateFromAddress(tmpAddressOfKey,tmpData,pContextArray,null,pScope);if(!tmpMap){this.log.warn("Pict: TemplateFromMapSet Render: Map not resolved for [".concat(tmpHash,"]"));return fCallback(null,'');}tmpData=tmpMap[tmpKey];if(!tmpData){// No address was provided, just render the TemplateFromMap with what this TemplateFromMap has.
6266
6280
  // The async portion of this is a mind bender because of how entry can happen dynamically from TemplateFromMaps
6267
- this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash,tmpData,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateSetFromMap;},{"pict-template":143}],220:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateSetWithPayload=/*#__PURE__*/function(_libPictTemplate11){/**
6281
+ this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash,tmpData,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateSetFromMap;},{"pict-template":143}],221:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateSetWithPayload=/*#__PURE__*/function(_libPictTemplate11){/**
6268
6282
  * @param {Object} pFable - The Fable Framework instance
6269
6283
  * @param {Object} pOptions - The options for the service
6270
6284
  * @param {String} pServiceHash - The hash of the service
6271
- */function PictTemplateProviderTemplateSetWithPayload(pFable,pOptions,pServiceHash){var _this104;_classCallCheck2(this,PictTemplateProviderTemplateSetWithPayload);_this104=_callSuper(this,PictTemplateProviderTemplateSetWithPayload,[pFable,pOptions,pServiceHash]);/** @type {any} */_this104.log;_this104.addPattern('{~TemplateSetWithPayload:','~}');_this104.addPattern('{~TSWP:','~}');return _this104;}/**
6285
+ */function PictTemplateProviderTemplateSetWithPayload(pFable,pOptions,pServiceHash){var _this105;_classCallCheck2(this,PictTemplateProviderTemplateSetWithPayload);_this105=_callSuper(this,PictTemplateProviderTemplateSetWithPayload,[pFable,pOptions,pServiceHash]);/** @type {any} */_this105.log;_this105.addPattern('{~TemplateSetWithPayload:','~}');_this105.addPattern('{~TSWP:','~}');return _this105;}/**
6272
6286
  * Render a template expression, returning a string with the resulting content.
6273
6287
  *
6274
6288
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6289,11 +6303,11 @@ var tmpTemplateHashes=tmpHash.trim().split(':');if(tmpTemplateHashes.length<3){t
6289
6303
  *
6290
6304
  * @return {void}
6291
6305
  */},{key:"renderAsync",value:function renderAsync(pTemplateHash,pRecord,fCallback,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpCallback=typeof fCallback==='function'?fCallback:function(){return'';};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fTemplateSetWithPayloadRenderAsync]::[".concat(tmpHash,"]"));}else if(this.pict.LogNoisiness>0){this.log.trace("PICT Template [fTemplateSetWithPayloadRenderAsync]::[".concat(tmpHash,"]"));}var tmpTemplateHash;var tmpAddressOfData;var tmpAddressOfPayload;// This is just a simple 3 part hash (template, address of set, address of payload)
6292
- var tmpTemplateHashes=tmpHash.trim().split(':');if(tmpTemplateHashes.length<3){this.log.trace("PICT Template [fTemplateSetWithPayloadRender]::[".concat(tmpHash,"] failed because there were not three stanzas in the expression [").concat(pTemplateHash,"]"));return fCallback(null,'');}tmpTemplateHash=tmpTemplateHashes[0];tmpAddressOfData=tmpTemplateHashes[1];tmpAddressOfPayload=tmpTemplateHashes[2];var tmpData=this.resolveStateFromAddress(tmpAddressOfData,pRecord,pContextArray,null,pScope);if(!tmpData){tmpData=pRecord;}if(!tmpData){tmpData={};}var tmpPayloadData=this.resolveStateFromAddress(tmpAddressOfPayload,pRecord,pContextArray,null,pScope);if(!tmpPayloadData){tmpPayloadData=pRecord;}if(!tmpPayloadData){tmpPayloadData={};}this.pict.parseTemplateSetWithPayloadByHash(tmpTemplateHash,tmpData,tmpPayloadData,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateSetWithPayload;},{"pict-template":143}],221:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateValueSet=/*#__PURE__*/function(_libPictTemplate12){/**
6306
+ var tmpTemplateHashes=tmpHash.trim().split(':');if(tmpTemplateHashes.length<3){this.log.trace("PICT Template [fTemplateSetWithPayloadRender]::[".concat(tmpHash,"] failed because there were not three stanzas in the expression [").concat(pTemplateHash,"]"));return fCallback(null,'');}tmpTemplateHash=tmpTemplateHashes[0];tmpAddressOfData=tmpTemplateHashes[1];tmpAddressOfPayload=tmpTemplateHashes[2];var tmpData=this.resolveStateFromAddress(tmpAddressOfData,pRecord,pContextArray,null,pScope);if(!tmpData){tmpData=pRecord;}if(!tmpData){tmpData={};}var tmpPayloadData=this.resolveStateFromAddress(tmpAddressOfPayload,pRecord,pContextArray,null,pScope);if(!tmpPayloadData){tmpPayloadData=pRecord;}if(!tmpPayloadData){tmpPayloadData={};}this.pict.parseTemplateSetWithPayloadByHash(tmpTemplateHash,tmpData,tmpPayloadData,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateSetWithPayload;},{"pict-template":143}],222:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateValueSet=/*#__PURE__*/function(_libPictTemplate12){/**
6293
6307
  * @param {Object} pFable - The Fable Framework instance
6294
6308
  * @param {Object} pOptions - The options for the service
6295
6309
  * @param {String} pServiceHash - The hash of the service
6296
- */function PictTemplateProviderTemplateValueSet(pFable,pOptions,pServiceHash){var _this105;_classCallCheck2(this,PictTemplateProviderTemplateValueSet);_this105=_callSuper(this,PictTemplateProviderTemplateValueSet,[pFable,pOptions,pServiceHash]);/** @type {any} */_this105.log;_this105.addPattern('{~TemplateValueSet:','~}');_this105.addPattern('{~TVS:','~}');return _this105;}/**
6310
+ */function PictTemplateProviderTemplateValueSet(pFable,pOptions,pServiceHash){var _this106;_classCallCheck2(this,PictTemplateProviderTemplateValueSet);_this106=_callSuper(this,PictTemplateProviderTemplateValueSet,[pFable,pOptions,pServiceHash]);/** @type {any} */_this106.log;_this106.addPattern('{~TemplateValueSet:','~}');_this106.addPattern('{~TVS:','~}');return _this106;}/**
6297
6311
  * Render a template expression, returning a string with the resulting content.
6298
6312
  *
6299
6313
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6320,11 +6334,11 @@ var tmpTemplateHashPart=tmpHash.split(':');if(tmpTemplateHashPart.length<2){this
6320
6334
  if(!tmpTemplateFromMapHash){this.log.warn("Pict: TemplateFromMap Render Async: TemplateFromMapHash not resolved for [".concat(tmpHash,"]"));return fCallback(null,'');}// Now resolve the data
6321
6335
  tmpData=this.resolveStateFromAddress(tmpAddressOfData,tmpData,pContextArray,null,pScope);var tmpDataValueSet=[];if(Array.isArray(tmpData)){for(var i=0;i<tmpData.length;i++){tmpDataValueSet.push({Value:tmpData[i],Key:i});}}else if(_typeof(tmpData)==='object'){var tmpValueKeys=Object.keys(tmpData);for(var _i70=0;_i70<tmpValueKeys.length;_i70++){tmpDataValueSet.push({Value:tmpData[tmpValueKeys[_i70]],Key:tmpData[tmpValueKeys[_i70]]});}}else{tmpDataValueSet.push({Value:tmpData});}tmpData=tmpDataValueSet;if(!tmpData){// No address was provided, just render the template with what this template has.
6322
6336
  // The async portion of this is a mind bender because of how entry can happen dynamically from templates
6323
- this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash,tmpData,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateValueSet;},{"pict-template":143}],222:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderView=/*#__PURE__*/function(_libPictTemplate13){/**
6337
+ this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateSetByHash(tmpTemplateFromMapHash,tmpData,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateValueSet;},{"pict-template":143}],223:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderView=/*#__PURE__*/function(_libPictTemplate13){/**
6324
6338
  * @param {Object} pFable - The Fable Framework instance
6325
6339
  * @param {Object} pOptions - The options for the service
6326
6340
  * @param {String} pServiceHash - The hash of the service
6327
- */function PictTemplateProviderView(pFable,pOptions,pServiceHash){var _this106;_classCallCheck2(this,PictTemplateProviderView);_this106=_callSuper(this,PictTemplateProviderView,[pFable,pOptions,pServiceHash]);/** @type {any} */_this106.log;_this106.addPattern('{~V:','~}');_this106.addPattern('{~View:','~}');if(!('__TemplateOutputCache'in _this106.pict)){_this106.pict.__TemplateOutputCache={};}return _this106;}/**
6341
+ */function PictTemplateProviderView(pFable,pOptions,pServiceHash){var _this107;_classCallCheck2(this,PictTemplateProviderView);_this107=_callSuper(this,PictTemplateProviderView,[pFable,pOptions,pServiceHash]);/** @type {any} */_this107.log;_this107.addPattern('{~V:','~}');_this107.addPattern('{~View:','~}');if(!('__TemplateOutputCache'in _this107.pict)){_this107.pict.__TemplateOutputCache={};}return _this107;}/**
6328
6342
  * Render a template expression, returning a string with the resulting content.
6329
6343
  *
6330
6344
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6343,13 +6357,13 @@ return tmpResult;}/**
6343
6357
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6344
6358
  *
6345
6359
  * @return {void}
6346
- */},{key:"renderAsync",value:function renderAsync(pTemplateHash,pRecord,fCallback,pContextArray,pScope){var _this107=this;var tmpViewHash=pTemplateHash.trim();if(!(tmpViewHash in this.pict.views)){this.log.warn("Pict: View Template Render: View not found for [".concat(tmpViewHash,"]"));return fCallback(null,'');}var tmpRenderGUID=this.pict.getUUID();var tmpView=this.pict.views[tmpViewHash];return tmpView.renderAsync('__Virtual',"__TemplateOutputCache.".concat(tmpRenderGUID),pRecord,function(pError,pResult){if(pError){_this107.log.warn("Pict: View Template Render: Error rendering view [".concat(tmpViewHash,"]"),pError);return fCallback(pError,'');}var tmpResult=_this107.pict.__TemplateOutputCache[tmpRenderGUID];// TODO: Uncomment this when we like how it's working
6360
+ */},{key:"renderAsync",value:function renderAsync(pTemplateHash,pRecord,fCallback,pContextArray,pScope){var _this108=this;var tmpViewHash=pTemplateHash.trim();if(!(tmpViewHash in this.pict.views)){this.log.warn("Pict: View Template Render: View not found for [".concat(tmpViewHash,"]"));return fCallback(null,'');}var tmpRenderGUID=this.pict.getUUID();var tmpView=this.pict.views[tmpViewHash];return tmpView.renderAsync('__Virtual',"__TemplateOutputCache.".concat(tmpRenderGUID),pRecord,function(pError,pResult){if(pError){_this108.log.warn("Pict: View Template Render: Error rendering view [".concat(tmpViewHash,"]"),pError);return fCallback(pError,'');}var tmpResult=_this108.pict.__TemplateOutputCache[tmpRenderGUID];// TODO: Uncomment this when we like how it's working
6347
6361
  //delete this.pict.__TemplateOutputCache[tmpRenderGUID];
6348
- return fCallback(null,tmpResult);});}}]);}(libPictTemplate);module.exports=PictTemplateProviderView;},{"pict-template":143}],223:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderRandomNumber=/*#__PURE__*/function(_libPictTemplate14){/**
6362
+ return fCallback(null,tmpResult);});}}]);}(libPictTemplate);module.exports=PictTemplateProviderView;},{"pict-template":143}],224:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderRandomNumber=/*#__PURE__*/function(_libPictTemplate14){/**
6349
6363
  * @param {Object} pFable - The Fable Framework instance
6350
6364
  * @param {Object} pOptions - The options for the service
6351
6365
  * @param {String} pServiceHash - The hash of the service
6352
- */function PictTemplateProviderRandomNumber(pFable,pOptions,pServiceHash){var _this108;_classCallCheck2(this,PictTemplateProviderRandomNumber);_this108=_callSuper(this,PictTemplateProviderRandomNumber,[pFable,pOptions,pServiceHash]);/** @type {any} */_this108.log;_this108.addPattern('{~RandomNumber:','~}');_this108.addPattern('{~RN:','~}');return _this108;}/**
6366
+ */function PictTemplateProviderRandomNumber(pFable,pOptions,pServiceHash){var _this109;_classCallCheck2(this,PictTemplateProviderRandomNumber);_this109=_callSuper(this,PictTemplateProviderRandomNumber,[pFable,pOptions,pServiceHash]);/** @type {any} */_this109.log;_this109.addPattern('{~RandomNumber:','~}');_this109.addPattern('{~RN:','~}');return _this109;}/**
6353
6367
  * Render a template expression, returning a string with the resulting content.
6354
6368
  *
6355
6369
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6358,11 +6372,11 @@ return fCallback(null,tmpResult);});}}]);}(libPictTemplate);module.exports=PictT
6358
6372
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6359
6373
  *
6360
6374
  * @return {string} The rendered template
6361
- */_inherits(PictTemplateProviderRandomNumber,_libPictTemplate14);return _createClass2(PictTemplateProviderRandomNumber,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fRandomNumber]::[".concat(tmpHash,"]"));}var tmpMinimumNumber=0;var tmpMaxNumber=9999999;if(tmpHash.length>0){var tmpHashParts=tmpHash.split(',');if(tmpHashParts.length>0){try{tmpMinimumNumber=parseInt(tmpHashParts[0]);}catch(_unused2){tmpMinimumNumber=0;}}if(tmpHashParts.length>1){try{tmpMaxNumber=parseInt(tmpHashParts[1]);}catch(_unused3){tmpMaxNumber=9999999;}}}return this.fable.DataGeneration.randomIntegerBetween(tmpMinimumNumber,tmpMaxNumber);}}]);}(libPictTemplate);module.exports=PictTemplateProviderRandomNumber;},{"pict-template":143}],224:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderRandomNumberString=/*#__PURE__*/function(_libPictTemplate15){/**
6375
+ */_inherits(PictTemplateProviderRandomNumber,_libPictTemplate14);return _createClass2(PictTemplateProviderRandomNumber,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fRandomNumber]::[".concat(tmpHash,"]"));}var tmpMinimumNumber=0;var tmpMaxNumber=9999999;if(tmpHash.length>0){var tmpHashParts=tmpHash.split(',');if(tmpHashParts.length>0){try{tmpMinimumNumber=parseInt(tmpHashParts[0]);}catch(_unused2){tmpMinimumNumber=0;}}if(tmpHashParts.length>1){try{tmpMaxNumber=parseInt(tmpHashParts[1]);}catch(_unused3){tmpMaxNumber=9999999;}}}return this.fable.DataGeneration.randomIntegerBetween(tmpMinimumNumber,tmpMaxNumber);}}]);}(libPictTemplate);module.exports=PictTemplateProviderRandomNumber;},{"pict-template":143}],225:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderRandomNumberString=/*#__PURE__*/function(_libPictTemplate15){/**
6362
6376
  * @param {Object} pFable - The Fable Framework instance
6363
6377
  * @param {Object} pOptions - The options for the service
6364
6378
  * @param {String} pServiceHash - The hash of the service
6365
- */function PictTemplateProviderRandomNumberString(pFable,pOptions,pServiceHash){var _this109;_classCallCheck2(this,PictTemplateProviderRandomNumberString);_this109=_callSuper(this,PictTemplateProviderRandomNumberString,[pFable,pOptions,pServiceHash]);/** @type {any} */_this109.log;_this109.addPattern('{~RandomNumberString:','~}');_this109.addPattern('{~RNS:','~}');return _this109;}/**
6379
+ */function PictTemplateProviderRandomNumberString(pFable,pOptions,pServiceHash){var _this110;_classCallCheck2(this,PictTemplateProviderRandomNumberString);_this110=_callSuper(this,PictTemplateProviderRandomNumberString,[pFable,pOptions,pServiceHash]);/** @type {any} */_this110.log;_this110.addPattern('{~RandomNumberString:','~}');_this110.addPattern('{~RNS:','~}');return _this110;}/**
6366
6380
  * Render a template expression, returning a string with the resulting content.
6367
6381
  *
6368
6382
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6371,11 +6385,11 @@ return fCallback(null,tmpResult);});}}]);}(libPictTemplate);module.exports=PictT
6371
6385
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6372
6386
  *
6373
6387
  * @return {string} The rendered template
6374
- */_inherits(PictTemplateProviderRandomNumberString,_libPictTemplate15);return _createClass2(PictTemplateProviderRandomNumberString,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fRandomNumberString]::[".concat(tmpHash,"]"));}var tmpStringLength=4;var tmpMaxNumber=9999;if(tmpHash.length>0){var tmpHashParts=tmpHash.split(',');if(tmpHashParts.length>0){try{tmpStringLength=parseInt(tmpHashParts[0]);}catch(_unused4){tmpStringLength=4;}}if(tmpHashParts.length>1){try{tmpMaxNumber=parseInt(tmpHashParts[1]);}catch(_unused5){tmpMaxNumber=9999;}}}return this.fable.DataGeneration.randomNumericString(tmpStringLength,tmpMaxNumber);}}]);}(libPictTemplate);module.exports=PictTemplateProviderRandomNumberString;},{"pict-template":143}],225:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDataEncodeJavascriptString=/*#__PURE__*/function(_libPictTemplate16){/**
6388
+ */_inherits(PictTemplateProviderRandomNumberString,_libPictTemplate15);return _createClass2(PictTemplateProviderRandomNumberString,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fRandomNumberString]::[".concat(tmpHash,"]"));}var tmpStringLength=4;var tmpMaxNumber=9999;if(tmpHash.length>0){var tmpHashParts=tmpHash.split(',');if(tmpHashParts.length>0){try{tmpStringLength=parseInt(tmpHashParts[0]);}catch(_unused4){tmpStringLength=4;}}if(tmpHashParts.length>1){try{tmpMaxNumber=parseInt(tmpHashParts[1]);}catch(_unused5){tmpMaxNumber=9999;}}}return this.fable.DataGeneration.randomNumericString(tmpStringLength,tmpMaxNumber);}}]);}(libPictTemplate);module.exports=PictTemplateProviderRandomNumberString;},{"pict-template":143}],226:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDataEncodeJavascriptString=/*#__PURE__*/function(_libPictTemplate16){/**
6375
6389
  * @param {Object} pFable - The Fable Framework instance
6376
6390
  * @param {Object} pOptions - The options for the service
6377
6391
  * @param {String} pServiceHash - The hash of the service
6378
- */function PictTemplateProviderDataEncodeJavascriptString(pFable,pOptions,pServiceHash){var _this110;_classCallCheck2(this,PictTemplateProviderDataEncodeJavascriptString);_this110=_callSuper(this,PictTemplateProviderDataEncodeJavascriptString,[pFable,pOptions,pServiceHash]);/** @type {any} */_this110.log;_this110.addPattern('{~DataEncodeJavascriptString:','~}');_this110.addPattern('{~DEJS:','~}');return _this110;}/**
6392
+ */function PictTemplateProviderDataEncodeJavascriptString(pFable,pOptions,pServiceHash){var _this111;_classCallCheck2(this,PictTemplateProviderDataEncodeJavascriptString);_this111=_callSuper(this,PictTemplateProviderDataEncodeJavascriptString,[pFable,pOptions,pServiceHash]);/** @type {any} */_this111.log;_this111.addPattern('{~DataEncodeJavascriptString:','~}');_this111.addPattern('{~DEJS:','~}');return _this111;}/**
6379
6393
  * Render a template expression, returning a string with the resulting content.
6380
6394
  *
6381
6395
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6384,11 +6398,11 @@ return fCallback(null,tmpResult);});}}]);}(libPictTemplate);module.exports=PictT
6384
6398
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6385
6399
  *
6386
6400
  * @return {string} The rendered template
6387
- */_inherits(PictTemplateProviderDataEncodeJavascriptString,_libPictTemplate16);return _createClass2(PictTemplateProviderDataEncodeJavascriptString,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpData=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDataJson]::[".concat(tmpHash,"] with tmpData:"),tmpData);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDataJson]::[".concat(tmpHash,"]"));}var tmpDataToEncode=this.resolveStateFromAddress(tmpHash,tmpData,pContextArray,null,pScope);return this.pict.DataFormat.stringEncodeForJavascript(tmpDataToEncode);}}]);}(libPictTemplate);module.exports=PictTemplateProviderDataEncodeJavascriptString;},{"pict-template":143}],226:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderJSONOutput=/*#__PURE__*/function(_libPictTemplate17){/**
6401
+ */_inherits(PictTemplateProviderDataEncodeJavascriptString,_libPictTemplate16);return _createClass2(PictTemplateProviderDataEncodeJavascriptString,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpData=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDataJson]::[".concat(tmpHash,"] with tmpData:"),tmpData);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDataJson]::[".concat(tmpHash,"]"));}var tmpDataToEncode=this.resolveStateFromAddress(tmpHash,tmpData,pContextArray,null,pScope);return this.pict.DataFormat.stringEncodeForJavascript(tmpDataToEncode);}}]);}(libPictTemplate);module.exports=PictTemplateProviderDataEncodeJavascriptString;},{"pict-template":143}],227:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderJSONOutput=/*#__PURE__*/function(_libPictTemplate17){/**
6388
6402
  * @param {Object} pFable - The Fable Framework instance
6389
6403
  * @param {Object} pOptions - The options for the service
6390
6404
  * @param {String} pServiceHash - The hash of the service
6391
- */function PictTemplateProviderJSONOutput(pFable,pOptions,pServiceHash){var _this111;_classCallCheck2(this,PictTemplateProviderJSONOutput);_this111=_callSuper(this,PictTemplateProviderJSONOutput,[pFable,pOptions,pServiceHash]);/** @type {any} */_this111.log;_this111.addPattern('{~DataJson:','~}');_this111.addPattern('{~DJ:','~}');return _this111;}/**
6405
+ */function PictTemplateProviderJSONOutput(pFable,pOptions,pServiceHash){var _this112;_classCallCheck2(this,PictTemplateProviderJSONOutput);_this112=_callSuper(this,PictTemplateProviderJSONOutput,[pFable,pOptions,pServiceHash]);/** @type {any} */_this112.log;_this112.addPattern('{~DataJson:','~}');_this112.addPattern('{~DJ:','~}');return _this112;}/**
6392
6406
  * Render a template expression, returning a string with the resulting content.
6393
6407
  *
6394
6408
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6397,11 +6411,11 @@ return fCallback(null,tmpResult);});}}]);}(libPictTemplate);module.exports=PictT
6397
6411
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6398
6412
  *
6399
6413
  * @return {string} The rendered template
6400
- */_inherits(PictTemplateProviderJSONOutput,_libPictTemplate17);return _createClass2(PictTemplateProviderJSONOutput,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpData=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDataJson]::[".concat(tmpHash,"] with tmpData:"),tmpData);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDataJson]::[".concat(tmpHash,"]"));}var tmpDataToStringify=this.resolveStateFromAddress(tmpHash,tmpData,pContextArray,null,pScope);if(!tmpDataToStringify){tmpDataToStringify=pRecord;}return JSON.stringify(tmpDataToStringify);}}]);}(libPictTemplate);module.exports=PictTemplateProviderJSONOutput;},{"pict-template":143}],227:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDateOnlyFormat=/*#__PURE__*/function(_libPictTemplate18){/**
6414
+ */_inherits(PictTemplateProviderJSONOutput,_libPictTemplate17);return _createClass2(PictTemplateProviderJSONOutput,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpData=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDataJson]::[".concat(tmpHash,"] with tmpData:"),tmpData);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDataJson]::[".concat(tmpHash,"]"));}var tmpDataToStringify=this.resolveStateFromAddress(tmpHash,tmpData,pContextArray,null,pScope);if(!tmpDataToStringify){tmpDataToStringify=pRecord;}return JSON.stringify(tmpDataToStringify);}}]);}(libPictTemplate);module.exports=PictTemplateProviderJSONOutput;},{"pict-template":143}],228:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDateOnlyFormat=/*#__PURE__*/function(_libPictTemplate18){/**
6401
6415
  * @param {import('fable')} pFable - The Fable Framework instance
6402
6416
  * @param {any} pOptions - The options for the service
6403
6417
  * @param {String} pServiceHash - The hash of the service
6404
- */function PictTemplateProviderDateOnlyFormat(pFable,pOptions,pServiceHash){var _this112;_classCallCheck2(this,PictTemplateProviderDateOnlyFormat);_this112=_callSuper(this,PictTemplateProviderDateOnlyFormat,[pFable,pOptions,pServiceHash]);/** @type {any} */_this112.options;/** @type {any} */_this112.log;_this112.addPattern('{~DateOnlyFormat:','~}');return _this112;}/**
6418
+ */function PictTemplateProviderDateOnlyFormat(pFable,pOptions,pServiceHash){var _this113;_classCallCheck2(this,PictTemplateProviderDateOnlyFormat);_this113=_callSuper(this,PictTemplateProviderDateOnlyFormat,[pFable,pOptions,pServiceHash]);/** @type {any} */_this113.options;/** @type {any} */_this113.log;_this113.addPattern('{~DateOnlyFormat:','~}');return _this113;}/**
6405
6419
  * Render a template expression, returning a string with the resulting content.
6406
6420
  *
6407
6421
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6417,11 +6431,11 @@ var tmpDayJS=this.fable.Dates.dayJS.utc(tmpDateValue).tz('UTC');return tmpDayJS.
6417
6431
  ```javascript
6418
6432
 
6419
6433
  ```
6420
- */},{"pict-template":143}],228:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDateOnlyYMD=/*#__PURE__*/function(_libPictTemplate19){/**
6434
+ */},{"pict-template":143}],229:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDateOnlyYMD=/*#__PURE__*/function(_libPictTemplate19){/**
6421
6435
  * @param {Object} pFable - The Fable Framework instance
6422
6436
  * @param {Object} pOptions - The options for the service
6423
6437
  * @param {String} pServiceHash - The hash of the service
6424
- */function PictTemplateProviderDateOnlyYMD(pFable,pOptions,pServiceHash){var _this113;_classCallCheck2(this,PictTemplateProviderDateOnlyYMD);_this113=_callSuper(this,PictTemplateProviderDateOnlyYMD,[pFable,pOptions,pServiceHash]);/** @type {any} */_this113.options;/** @type {any} */_this113.log;_this113.addPattern('{~DateOnlyYMD:','~}');return _this113;}/**
6438
+ */function PictTemplateProviderDateOnlyYMD(pFable,pOptions,pServiceHash){var _this114;_classCallCheck2(this,PictTemplateProviderDateOnlyYMD);_this114=_callSuper(this,PictTemplateProviderDateOnlyYMD,[pFable,pOptions,pServiceHash]);/** @type {any} */_this114.options;/** @type {any} */_this114.log;_this114.addPattern('{~DateOnlyYMD:','~}');return _this114;}/**
6425
6439
  * Render a template expression, returning a string with the resulting content.
6426
6440
  *
6427
6441
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6433,12 +6447,12 @@ var tmpDayJS=this.fable.Dates.dayJS.utc(tmpDateValue).tz('UTC');return tmpDayJS.
6433
6447
  */_inherits(PictTemplateProviderDateOnlyYMD,_libPictTemplate19);return _createClass2(PictTemplateProviderDateOnlyYMD,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpData=_typeof(pRecord)==='object'?pRecord:{};var tmpDateValue=this.resolveStateFromAddress(tmpHash,tmpData,pContextArray,null,pScope);if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDateTimeYMD]::[".concat(tmpHash,"] with data:"),tmpData);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDateTimeYMD]::[".concat(tmpHash,"]"));}// TODO: Modularize this
6434
6448
  var tmpDayJS=this.fable.Dates.dayJS.utc(tmpDateValue).tz('UTC');//FIXME: this is kind of wacked out; -62167219200000 is the unix ms timestamp for 0000-01-01 00:00:00 UTC
6435
6449
  // not even sure showing negative is right; showing the era is probably better (BCE vs CE)
6436
- var prefix=tmpDayJS.valueOf()<-62167219200000?'-':'';return prefix+tmpDayJS.format('YYYY-MM-DD');}}]);}(libPictTemplate);module.exports=PictTemplateProviderDateOnlyYMD;},{"pict-template":143}],229:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDateTimeFormat=/*#__PURE__*/function(_libPictTemplate20){/**
6450
+ var prefix=tmpDayJS.valueOf()<-62167219200000?'-':'';return prefix+tmpDayJS.format('YYYY-MM-DD');}}]);}(libPictTemplate);module.exports=PictTemplateProviderDateOnlyYMD;},{"pict-template":143}],230:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDateTimeFormat=/*#__PURE__*/function(_libPictTemplate20){/**
6437
6451
  * @param {Object} pFable - The Fable Framework instance
6438
6452
  * @param {Object} pOptions - The options for the service
6439
6453
  * @param {String} pServiceHash - The hash of the service
6440
- */function PictTemplateProviderDateTimeFormat(pFable,pOptions,pServiceHash){var _this114;_classCallCheck2(this,PictTemplateProviderDateTimeFormat);_this114=_callSuper(this,PictTemplateProviderDateTimeFormat,[pFable,pOptions,pServiceHash]);/** @type {any} */_this114.options;/** @type {any} */_this114.log;_this114.addPattern('{~DateTimeFormat:','~}');_this114.addPattern('{~DateFormat:','~}');// for backwards compatibility
6441
- return _this114;}/**
6454
+ */function PictTemplateProviderDateTimeFormat(pFable,pOptions,pServiceHash){var _this115;_classCallCheck2(this,PictTemplateProviderDateTimeFormat);_this115=_callSuper(this,PictTemplateProviderDateTimeFormat,[pFable,pOptions,pServiceHash]);/** @type {any} */_this115.options;/** @type {any} */_this115.log;_this115.addPattern('{~DateTimeFormat:','~}');_this115.addPattern('{~DateFormat:','~}');// for backwards compatibility
6455
+ return _this115;}/**
6442
6456
  * Render a template expression, returning a string with the resulting content.
6443
6457
  *
6444
6458
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6457,12 +6471,12 @@ try{tmpDayJS=tmpDayJS.tz(this.fable.Dates.dayJS.tz.guess());}catch(pError){this.
6457
6471
  ```javascript
6458
6472
 
6459
6473
  ```
6460
- */},{"pict-template":143}],230:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDateTimeYMD=/*#__PURE__*/function(_libPictTemplate21){/**
6474
+ */},{"pict-template":143}],231:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDateTimeYMD=/*#__PURE__*/function(_libPictTemplate21){/**
6461
6475
  * @param {Object} pFable - The Fable Framework instance
6462
6476
  * @param {Object} pOptions - The options for the service
6463
6477
  * @param {String} pServiceHash - The hash of the service
6464
- */function PictTemplateProviderDateTimeYMD(pFable,pOptions,pServiceHash){var _this115;_classCallCheck2(this,PictTemplateProviderDateTimeYMD);_this115=_callSuper(this,PictTemplateProviderDateTimeYMD,[pFable,pOptions,pServiceHash]);/** @type {any} */_this115.options;/** @type {any} */_this115.log;_this115.addPattern('{~DateTimeYMD:','~}');_this115.addPattern('{~DateYMD:','~}');// for backwards compatibility
6465
- return _this115;}/**
6478
+ */function PictTemplateProviderDateTimeYMD(pFable,pOptions,pServiceHash){var _this116;_classCallCheck2(this,PictTemplateProviderDateTimeYMD);_this116=_callSuper(this,PictTemplateProviderDateTimeYMD,[pFable,pOptions,pServiceHash]);/** @type {any} */_this116.options;/** @type {any} */_this116.log;_this116.addPattern('{~DateTimeYMD:','~}');_this116.addPattern('{~DateYMD:','~}');// for backwards compatibility
6479
+ return _this116;}/**
6466
6480
  * Render a template expression, returning a string with the resulting content.
6467
6481
  *
6468
6482
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6475,11 +6489,11 @@ return _this115;}/**
6475
6489
  var tmpDayJS=this.fable.Dates.dayJS.utc(tmpDateValue);try{// Try to cast the day to be a specific timezone if one is set for the app
6476
6490
  if(this.options.Timezone){tmpDayJS=tmpDayJS.tz(this.options.Timezone);}else{try{tmpDayJS=tmpDayJS.tz(this.fable.Dates.dayJS.tz.guess());}catch(pError){this.log.error("Error guessing dayJS guess() function; dates may be formatted to GMT by default. (".concat(pError.message||pError,")"));}}}catch(_unused7){//this.log.error(`Error casting timezone using tz .. casting to the browser guess which is [${this.fable.Dates.dayJS.tz.guess()}].`);
6477
6491
  // Day.js will try to guess the user's timezone for us
6478
- try{tmpDayJS=tmpDayJS.tz(this.fable.Dates.dayJS.tz.guess());}catch(pError){this.log.error("Error guessing dayJS guess() function; dates may be formatted to GMT by default. (".concat(pError.message||pError,")"));}}return tmpDayJS.format('YYYY-MM-DD');}}]);}(libPictTemplate);module.exports=PictTemplateProviderDateTimeYMD;},{"pict-template":143}],231:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDigits=/*#__PURE__*/function(_libPictTemplate22){/**
6492
+ try{tmpDayJS=tmpDayJS.tz(this.fable.Dates.dayJS.tz.guess());}catch(pError){this.log.error("Error guessing dayJS guess() function; dates may be formatted to GMT by default. (".concat(pError.message||pError,")"));}}return tmpDayJS.format('YYYY-MM-DD');}}]);}(libPictTemplate);module.exports=PictTemplateProviderDateTimeYMD;},{"pict-template":143}],232:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDigits=/*#__PURE__*/function(_libPictTemplate22){/**
6479
6493
  * @param {Object} pFable - The Fable Framework instance
6480
6494
  * @param {Object} pOptions - The options for the service
6481
6495
  * @param {String} pServiceHash - The hash of the service
6482
- */function PictTemplateProviderDigits(pFable,pOptions,pServiceHash){var _this116;_classCallCheck2(this,PictTemplateProviderDigits);_this116=_callSuper(this,PictTemplateProviderDigits,[pFable,pOptions,pServiceHash]);/** @type {any} */_this116.options;/** @type {any} */_this116.log;_this116.addPattern('{~Digits:','~}');return _this116;}/**
6496
+ */function PictTemplateProviderDigits(pFable,pOptions,pServiceHash){var _this117;_classCallCheck2(this,PictTemplateProviderDigits);_this117=_callSuper(this,PictTemplateProviderDigits,[pFable,pOptions,pServiceHash]);/** @type {any} */_this117.options;/** @type {any} */_this117.log;_this117.addPattern('{~Digits:','~}');return _this117;}/**
6483
6497
  * Render a template expression, returning a string with the resulting content.
6484
6498
  *
6485
6499
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6488,11 +6502,11 @@ try{tmpDayJS=tmpDayJS.tz(this.fable.Dates.dayJS.tz.guess());}catch(pError){this.
6488
6502
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6489
6503
  *
6490
6504
  * @return {string} The rendered template
6491
- */_inherits(PictTemplateProviderDigits,_libPictTemplate22);return _createClass2(PictTemplateProviderDigits,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpData=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDigits]::[".concat(tmpHash,"] with tmpData:"),tmpData);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDigits]::[".concat(tmpHash,"]"));}var tmpColumnData=this.resolveStateFromAddress(tmpHash,tmpData,pContextArray,null,pScope);return this.fable.DataFormat.formatterAddCommasToNumber(this.fable.DataFormat.formatterRoundNumber(tmpColumnData,2));}}]);}(libPictTemplate);module.exports=PictTemplateProviderDigits;},{"pict-template":143}],232:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDollars=/*#__PURE__*/function(_libPictTemplate23){/**
6505
+ */_inherits(PictTemplateProviderDigits,_libPictTemplate22);return _createClass2(PictTemplateProviderDigits,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpData=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDigits]::[".concat(tmpHash,"] with tmpData:"),tmpData);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDigits]::[".concat(tmpHash,"]"));}var tmpColumnData=this.resolveStateFromAddress(tmpHash,tmpData,pContextArray,null,pScope);return this.fable.DataFormat.formatterAddCommasToNumber(this.fable.DataFormat.formatterRoundNumber(tmpColumnData,2));}}]);}(libPictTemplate);module.exports=PictTemplateProviderDigits;},{"pict-template":143}],233:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDollars=/*#__PURE__*/function(_libPictTemplate23){/**
6492
6506
  * @param {Object} pFable - The Fable Framework instance
6493
6507
  * @param {Object} pOptions - The options for the service
6494
6508
  * @param {String} pServiceHash - The hash of the service
6495
- */function PictTemplateProviderDollars(pFable,pOptions,pServiceHash){var _this117;_classCallCheck2(this,PictTemplateProviderDollars);_this117=_callSuper(this,PictTemplateProviderDollars,[pFable,pOptions,pServiceHash]);/** @type {any} */_this117.options;/** @type {any} */_this117.log;_this117.addPattern('{~Dollars:','~}');return _this117;}/**
6509
+ */function PictTemplateProviderDollars(pFable,pOptions,pServiceHash){var _this118;_classCallCheck2(this,PictTemplateProviderDollars);_this118=_callSuper(this,PictTemplateProviderDollars,[pFable,pOptions,pServiceHash]);/** @type {any} */_this118.options;/** @type {any} */_this118.log;_this118.addPattern('{~Dollars:','~}');return _this118;}/**
6496
6510
  * Render a template expression, returning a string with the resulting content.
6497
6511
  *
6498
6512
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6501,11 +6515,11 @@ try{tmpDayJS=tmpDayJS.tz(this.fable.Dates.dayJS.tz.guess());}catch(pError){this.
6501
6515
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6502
6516
  *
6503
6517
  * @return {string} The rendered template
6504
- */_inherits(PictTemplateProviderDollars,_libPictTemplate23);return _createClass2(PictTemplateProviderDollars,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpData=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDollars]::[".concat(tmpHash,"] with tmpData:"),tmpData);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDollars]::[".concat(tmpHash,"]"));}var tmpColumnData=this.resolveStateFromAddress(tmpHash,tmpData,pContextArray,null,pScope);return this.fable.DataFormat.formatterDollars(tmpColumnData);}}]);}(libPictTemplate);module.exports=PictTemplateProviderDollars;},{"pict-template":143}],233:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderHTMLCommandEnd=/*#__PURE__*/function(_libPictTemplate24){/**
6518
+ */_inherits(PictTemplateProviderDollars,_libPictTemplate23);return _createClass2(PictTemplateProviderDollars,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpData=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDollars]::[".concat(tmpHash,"] with tmpData:"),tmpData);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDollars]::[".concat(tmpHash,"]"));}var tmpColumnData=this.resolveStateFromAddress(tmpHash,tmpData,pContextArray,null,pScope);return this.fable.DataFormat.formatterDollars(tmpColumnData);}}]);}(libPictTemplate);module.exports=PictTemplateProviderDollars;},{"pict-template":143}],234:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderHTMLCommandEnd=/*#__PURE__*/function(_libPictTemplate24){/**
6505
6519
  * @param {Object} pFable - The Fable Framework instance
6506
6520
  * @param {Object} pOptions - The options for the service
6507
6521
  * @param {String} pServiceHash - The hash of the service
6508
- */function PictTemplateProviderHTMLCommandEnd(pFable,pOptions,pServiceHash){var _this118;_classCallCheck2(this,PictTemplateProviderHTMLCommandEnd);_this118=_callSuper(this,PictTemplateProviderHTMLCommandEnd,[pFable,pOptions,pServiceHash]);/** @type {any} */_this118.log;_this118.addPattern('{~HtmlCommentEnd:','~}');_this118.addPattern('{~HCE:','~}');return _this118;}/**
6522
+ */function PictTemplateProviderHTMLCommandEnd(pFable,pOptions,pServiceHash){var _this119;_classCallCheck2(this,PictTemplateProviderHTMLCommandEnd);_this119=_callSuper(this,PictTemplateProviderHTMLCommandEnd,[pFable,pOptions,pServiceHash]);/** @type {any} */_this119.log;_this119.addPattern('{~HtmlCommentEnd:','~}');_this119.addPattern('{~HCE:','~}');return _this119;}/**
6509
6523
  * Render a template expression, returning a string with the resulting content.
6510
6524
  *
6511
6525
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6514,11 +6528,11 @@ try{tmpDayJS=tmpDayJS.tz(this.fable.Dates.dayJS.tz.guess());}catch(pError){this.
6514
6528
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6515
6529
  *
6516
6530
  * @return {string} The rendered template
6517
- */_inherits(PictTemplateProviderHTMLCommandEnd,_libPictTemplate24);return _createClass2(PictTemplateProviderHTMLCommandEnd,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpRecord=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"] with tmpData:"),tmpRecord);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"]"));}var tmpValue=false;if(tmpHash!=null){tmpValue=this.resolveStateFromAddress(tmpHash,tmpRecord,pContextArray,null,pScope);}if(!tmpValue){return' -->';}return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderHTMLCommandEnd;},{"pict-template":143}],234:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderHTMLCommandStart=/*#__PURE__*/function(_libPictTemplate25){/**
6531
+ */_inherits(PictTemplateProviderHTMLCommandEnd,_libPictTemplate24);return _createClass2(PictTemplateProviderHTMLCommandEnd,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpRecord=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"] with tmpData:"),tmpRecord);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"]"));}var tmpValue=false;if(tmpHash!=null){tmpValue=this.resolveStateFromAddress(tmpHash,tmpRecord,pContextArray,null,pScope);}if(!tmpValue){return' -->';}return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderHTMLCommandEnd;},{"pict-template":143}],235:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderHTMLCommandStart=/*#__PURE__*/function(_libPictTemplate25){/**
6518
6532
  * @param {Object} pFable - The Fable Framework instance
6519
6533
  * @param {Object} pOptions - The options for the service
6520
6534
  * @param {String} pServiceHash - The hash of the service
6521
- */function PictTemplateProviderHTMLCommandStart(pFable,pOptions,pServiceHash){var _this119;_classCallCheck2(this,PictTemplateProviderHTMLCommandStart);_this119=_callSuper(this,PictTemplateProviderHTMLCommandStart,[pFable,pOptions,pServiceHash]);/** @type {any} */_this119.log;_this119.addPattern('{~HtmlCommentStart:','~}');_this119.addPattern('{~HCS:','~}');return _this119;}/**
6535
+ */function PictTemplateProviderHTMLCommandStart(pFable,pOptions,pServiceHash){var _this120;_classCallCheck2(this,PictTemplateProviderHTMLCommandStart);_this120=_callSuper(this,PictTemplateProviderHTMLCommandStart,[pFable,pOptions,pServiceHash]);/** @type {any} */_this120.log;_this120.addPattern('{~HtmlCommentStart:','~}');_this120.addPattern('{~HCS:','~}');return _this120;}/**
6522
6536
  * Render a template expression, returning a string with the resulting content.
6523
6537
  *
6524
6538
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6527,11 +6541,11 @@ try{tmpDayJS=tmpDayJS.tz(this.fable.Dates.dayJS.tz.guess());}catch(pError){this.
6527
6541
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6528
6542
  *
6529
6543
  * @return {string} The rendered template
6530
- */_inherits(PictTemplateProviderHTMLCommandStart,_libPictTemplate25);return _createClass2(PictTemplateProviderHTMLCommandStart,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpRecord=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"] with tmpData:"),tmpRecord);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"]"));}var tmpValue=false;if(tmpHash!=null){tmpValue=this.resolveStateFromAddress(tmpHash,tmpRecord,pContextArray,null,pScope);}if(!tmpValue){return'<!-- ';}return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderHTMLCommandStart;},{"pict-template":143}],235:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderJoin=/*#__PURE__*/function(_libPictTemplate26){/**
6544
+ */_inherits(PictTemplateProviderHTMLCommandStart,_libPictTemplate25);return _createClass2(PictTemplateProviderHTMLCommandStart,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpRecord=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"] with tmpData:"),tmpRecord);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Template [fDataRender]::[".concat(tmpHash,"]"));}var tmpValue=false;if(tmpHash!=null){tmpValue=this.resolveStateFromAddress(tmpHash,tmpRecord,pContextArray,null,pScope);}if(!tmpValue){return'<!-- ';}return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderHTMLCommandStart;},{"pict-template":143}],236:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderJoin=/*#__PURE__*/function(_libPictTemplate26){/**
6531
6545
  * @param {Object} pFable - The Fable Framework instance
6532
6546
  * @param {Object} pOptions - The options for the service
6533
6547
  * @param {String} pServiceHash - The hash of the service
6534
- */function PictTemplateProviderJoin(pFable,pOptions,pServiceHash){var _this120;_classCallCheck2(this,PictTemplateProviderJoin);_this120=_callSuper(this,PictTemplateProviderJoin,[pFable,pOptions,pServiceHash]);/** @type {any} */_this120.options;/** @type {any} */_this120.log;_this120.addPattern('{~Join:','~}');_this120.addPattern('{~J:','~}');return _this120;}/**
6548
+ */function PictTemplateProviderJoin(pFable,pOptions,pServiceHash){var _this121;_classCallCheck2(this,PictTemplateProviderJoin);_this121=_callSuper(this,PictTemplateProviderJoin,[pFable,pOptions,pServiceHash]);/** @type {any} */_this121.options;/** @type {any} */_this121.log;_this121.addPattern('{~Join:','~}');_this121.addPattern('{~J:','~}');return _this121;}/**
6535
6549
  * Render a template expression, returning a string with the resulting content.
6536
6550
  *
6537
6551
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6541,11 +6555,11 @@ try{tmpDayJS=tmpDayJS.tz(this.fable.Dates.dayJS.tz.guess());}catch(pError){this.
6541
6555
  *
6542
6556
  * @return {string} The rendered template
6543
6557
  */_inherits(PictTemplateProviderJoin,_libPictTemplate26);return _createClass2(PictTemplateProviderJoin,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash;var tmpData=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Join [fDataRender]::[".concat(tmpHash,"] with tmpData:"),tmpData);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Join [fDataRender]::[".concat(tmpHash,"]"));}var tmpDataAddresses=tmpHash.split('^');if(tmpDataAddresses.length<2){return'';}// Get the separator string
6544
- var tmpSeparator=tmpDataAddresses.shift();var tmpValueList=[];for(var i=0;i<tmpDataAddresses.length;i++){var tmpValueSet=this.resolveStateFromAddress(tmpDataAddresses[i],tmpData,pContextArray,null,pScope);if(tmpValueSet&&Array.isArray(tmpValueSet)){for(var j=0;j<tmpValueSet.length;j++){tmpValueList.push(tmpValueSet[j]);}}else if(tmpValueSet){tmpValueList.push(tmpValueSet);}}return tmpValueList.join(tmpSeparator);}}]);}(libPictTemplate);module.exports=PictTemplateProviderJoin;},{"pict-template":143}],236:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderJoinUnique=/*#__PURE__*/function(_libPictTemplate27){/**
6558
+ var tmpSeparator=tmpDataAddresses.shift();var tmpValueList=[];for(var i=0;i<tmpDataAddresses.length;i++){var tmpValueSet=this.resolveStateFromAddress(tmpDataAddresses[i],tmpData,pContextArray,null,pScope);if(tmpValueSet&&Array.isArray(tmpValueSet)){for(var j=0;j<tmpValueSet.length;j++){tmpValueList.push(tmpValueSet[j]);}}else if(tmpValueSet){tmpValueList.push(tmpValueSet);}}return tmpValueList.join(tmpSeparator);}}]);}(libPictTemplate);module.exports=PictTemplateProviderJoin;},{"pict-template":143}],237:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderJoinUnique=/*#__PURE__*/function(_libPictTemplate27){/**
6545
6559
  * @param {Object} pFable - The Fable Framework instance
6546
6560
  * @param {Object} pOptions - The options for the service
6547
6561
  * @param {String} pServiceHash - The hash of the service
6548
- */function PictTemplateProviderJoinUnique(pFable,pOptions,pServiceHash){var _this121;_classCallCheck2(this,PictTemplateProviderJoinUnique);_this121=_callSuper(this,PictTemplateProviderJoinUnique,[pFable,pOptions,pServiceHash]);/** @type {any} */_this121.options;/** @type {any} */_this121.log;_this121.addPattern('{~JoinUnique:','~}');_this121.addPattern('{~JU:','~}');return _this121;}/**
6562
+ */function PictTemplateProviderJoinUnique(pFable,pOptions,pServiceHash){var _this122;_classCallCheck2(this,PictTemplateProviderJoinUnique);_this122=_callSuper(this,PictTemplateProviderJoinUnique,[pFable,pOptions,pServiceHash]);/** @type {any} */_this122.options;/** @type {any} */_this122.log;_this122.addPattern('{~JoinUnique:','~}');_this122.addPattern('{~JU:','~}');return _this122;}/**
6549
6563
  * Render a template expression, returning a string with the resulting content.
6550
6564
  *
6551
6565
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6555,11 +6569,11 @@ var tmpSeparator=tmpDataAddresses.shift();var tmpValueList=[];for(var i=0;i<tmpD
6555
6569
  *
6556
6570
  * @return {string} The rendered template
6557
6571
  */_inherits(PictTemplateProviderJoinUnique,_libPictTemplate27);return _createClass2(PictTemplateProviderJoinUnique,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash;var tmpData=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Join Unique [fDataRender]::[".concat(tmpHash,"] with tmpData:"),tmpData);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Join Unique [fDataRender]::[".concat(tmpHash,"]"));}var tmpDataAddresses=tmpHash.split('^');if(tmpDataAddresses.length<2){return'';}// Get the separator string
6558
- var tmpSeparator=tmpDataAddresses.shift();var tmpValueList=[];var tmpValueMap={};for(var i=0;i<tmpDataAddresses.length;i++){var tmpValueSet=this.resolveStateFromAddress(tmpDataAddresses[i],tmpData,pContextArray,null,pScope);if(tmpValueSet&&Array.isArray(tmpValueSet)){for(var j=0;j<tmpValueSet.length;j++){if(!(tmpValueSet[j]in tmpValueMap)){tmpValueMap[tmpValueSet[j]]=true;tmpValueList.push(tmpValueSet[j]);}}}else if(tmpValueSet){if(!(tmpValueSet in tmpValueMap)){tmpValueMap[tmpValueSet]=true;tmpValueList.push(tmpValueSet);}}}return tmpValueList.join(tmpSeparator);}}]);}(libPictTemplate);module.exports=PictTemplateProviderJoinUnique;},{"pict-template":143}],237:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderPascalCaseIdentifier=/*#__PURE__*/function(_libPictTemplate28){/**
6572
+ var tmpSeparator=tmpDataAddresses.shift();var tmpValueList=[];var tmpValueMap={};for(var i=0;i<tmpDataAddresses.length;i++){var tmpValueSet=this.resolveStateFromAddress(tmpDataAddresses[i],tmpData,pContextArray,null,pScope);if(tmpValueSet&&Array.isArray(tmpValueSet)){for(var j=0;j<tmpValueSet.length;j++){if(!(tmpValueSet[j]in tmpValueMap)){tmpValueMap[tmpValueSet[j]]=true;tmpValueList.push(tmpValueSet[j]);}}}else if(tmpValueSet){if(!(tmpValueSet in tmpValueMap)){tmpValueMap[tmpValueSet]=true;tmpValueList.push(tmpValueSet);}}}return tmpValueList.join(tmpSeparator);}}]);}(libPictTemplate);module.exports=PictTemplateProviderJoinUnique;},{"pict-template":143}],238:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderPascalCaseIdentifier=/*#__PURE__*/function(_libPictTemplate28){/**
6559
6573
  * @param {Object} pFable - The Fable Framework instance
6560
6574
  * @param {Object} pOptions - The options for the service
6561
6575
  * @param {String} pServiceHash - The hash of the service
6562
- */function PictTemplateProviderPascalCaseIdentifier(pFable,pOptions,pServiceHash){var _this122;_classCallCheck2(this,PictTemplateProviderPascalCaseIdentifier);_this122=_callSuper(this,PictTemplateProviderPascalCaseIdentifier,[pFable,pOptions,pServiceHash]);/** @type {any} */_this122.options;/** @type {any} */_this122.log;_this122.addPattern('{~PascalCaseIdentifier:','~}');return _this122;}/**
6576
+ */function PictTemplateProviderPascalCaseIdentifier(pFable,pOptions,pServiceHash){var _this123;_classCallCheck2(this,PictTemplateProviderPascalCaseIdentifier);_this123=_callSuper(this,PictTemplateProviderPascalCaseIdentifier,[pFable,pOptions,pServiceHash]);/** @type {any} */_this123.options;/** @type {any} */_this123.log;_this123.addPattern('{~PascalCaseIdentifier:','~}');return _this123;}/**
6563
6577
  * Render a template expression, returning a string with the resulting content.
6564
6578
  *
6565
6579
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6574,11 +6588,11 @@ var tmpSeparator=tmpDataAddresses.shift();var tmpValueList=[];var tmpValueMap={}
6574
6588
  ```javascript
6575
6589
 
6576
6590
  ```
6577
- */},{"pict-template":143}],238:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderPluckJoinUnique=/*#__PURE__*/function(_libPictTemplate29){/**
6591
+ */},{"pict-template":143}],239:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderPluckJoinUnique=/*#__PURE__*/function(_libPictTemplate29){/**
6578
6592
  * @param {Object} pFable - The Fable Framework instance
6579
6593
  * @param {Object} pOptions - The options for the service
6580
6594
  * @param {String} pServiceHash - The hash of the service
6581
- */function PictTemplateProviderPluckJoinUnique(pFable,pOptions,pServiceHash){var _this123;_classCallCheck2(this,PictTemplateProviderPluckJoinUnique);_this123=_callSuper(this,PictTemplateProviderPluckJoinUnique,[pFable,pOptions,pServiceHash]);/** @type {any} */_this123.options;/** @type {any} */_this123.log;_this123.addPattern('{~PluckJoinUnique:','~}');_this123.addPattern('{~PJU:','~}');return _this123;}/**
6595
+ */function PictTemplateProviderPluckJoinUnique(pFable,pOptions,pServiceHash){var _this124;_classCallCheck2(this,PictTemplateProviderPluckJoinUnique);_this124=_callSuper(this,PictTemplateProviderPluckJoinUnique,[pFable,pOptions,pServiceHash]);/** @type {any} */_this124.options;/** @type {any} */_this124.log;_this124.addPattern('{~PluckJoinUnique:','~}');_this124.addPattern('{~PJU:','~}');return _this124;}/**
6582
6596
  * Render a template expression, returning a string with the resulting content.
6583
6597
  *
6584
6598
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6589,11 +6603,11 @@ var tmpSeparator=tmpDataAddresses.shift();var tmpValueList=[];var tmpValueMap={}
6589
6603
  * @return {string} The rendered template
6590
6604
  */_inherits(PictTemplateProviderPluckJoinUnique,_libPictTemplate29);return _createClass2(PictTemplateProviderPluckJoinUnique,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash;var tmpData=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Pluck Join Unique [fDataRender]::[".concat(tmpHash,"] with tmpData:"),tmpData);}else if(this.pict.LogNoisiness>3){this.log.trace("PICT Pluck Join Unique [fDataRender]::[".concat(tmpHash,"]"));}var tmpDataAddresses=tmpHash.split('^');if(tmpDataAddresses.length<3){return'';}// Get the separator string
6591
6605
  var tmpSeparator=tmpDataAddresses.shift();var tmpAddress=tmpDataAddresses.shift();var tmpValueList=[];var tmpValueMap={};for(var i=0;i<tmpDataAddresses.length;i++){var tmpValueSet=this.resolveStateFromAddress(tmpDataAddresses[i],tmpData,pContextArray,null,pScope);if(tmpValueSet&&Array.isArray(tmpValueSet)){// This one only works on arrays of objects.
6592
- for(var j=0;j<tmpValueSet.length;j++){if(tmpValueSet[j]===null||_typeof(tmpValueSet)!=='object'){continue;}var tmpValue=this.pict.manifest.getValueByHash(tmpValueSet[j],tmpAddress);if(!(tmpValue in tmpValueMap)){tmpValueMap[tmpValue]=true;tmpValueList.push(tmpValue);}}}else if(tmpValueSet){if(!(tmpValueSet in tmpValueMap)){tmpValueMap[tmpValueSet]=true;tmpValueList.push(tmpValueSet);}}}return tmpValueList.join(tmpSeparator);}}]);}(libPictTemplate);module.exports=PictTemplateProviderPluckJoinUnique;},{"pict-template":143}],239:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderBreakpoint=/*#__PURE__*/function(_libPictTemplate30){/**
6606
+ for(var j=0;j<tmpValueSet.length;j++){if(tmpValueSet[j]===null||_typeof(tmpValueSet)!=='object'){continue;}var tmpValue=this.pict.manifest.getValueByHash(tmpValueSet[j],tmpAddress);if(!(tmpValue in tmpValueMap)){tmpValueMap[tmpValue]=true;tmpValueList.push(tmpValue);}}}else if(tmpValueSet){if(!(tmpValueSet in tmpValueMap)){tmpValueMap[tmpValueSet]=true;tmpValueList.push(tmpValueSet);}}}return tmpValueList.join(tmpSeparator);}}]);}(libPictTemplate);module.exports=PictTemplateProviderPluckJoinUnique;},{"pict-template":143}],240:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderBreakpoint=/*#__PURE__*/function(_libPictTemplate30){/**
6593
6607
  * @param {Object} pFable - The Fable Framework instance
6594
6608
  * @param {Object} pOptions - The options for the service
6595
6609
  * @param {String} pServiceHash - The hash of the service
6596
- */function PictTemplateProviderBreakpoint(pFable,pOptions,pServiceHash){var _this124;_classCallCheck2(this,PictTemplateProviderBreakpoint);_this124=_callSuper(this,PictTemplateProviderBreakpoint,[pFable,pOptions,pServiceHash]);/** @type {any} */_this124.log;_this124.addPattern('{~Breakpoint','~}');return _this124;}/**
6610
+ */function PictTemplateProviderBreakpoint(pFable,pOptions,pServiceHash){var _this125;_classCallCheck2(this,PictTemplateProviderBreakpoint);_this125=_callSuper(this,PictTemplateProviderBreakpoint,[pFable,pOptions,pServiceHash]);/** @type {any} */_this125.log;_this125.addPattern('{~Breakpoint','~}');return _this125;}/**
6597
6611
  * Render a template expression, returning a string with the resulting content.
6598
6612
  *
6599
6613
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6604,11 +6618,11 @@ for(var j=0;j<tmpValueSet.length;j++){if(tmpValueSet[j]===null||_typeof(tmpValue
6604
6618
  * @return {string} The rendered template
6605
6619
  */_inherits(PictTemplateProviderBreakpoint,_libPictTemplate30);return _createClass2(PictTemplateProviderBreakpoint,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpError=new Error("PICT Template Breakpoint: ".concat(tmpHash));this.log.trace("PICT Template Breakpoint: ".concat(tmpHash),tmpError.stack);//throw tmpError;
6606
6620
  debugger;// eslint-disable-line no-debugger
6607
- return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderBreakpoint;},{"pict-template":143}],240:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDataValueTree=/*#__PURE__*/function(_libPictTemplate31){/**
6621
+ return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderBreakpoint;},{"pict-template":143}],241:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderDataValueTree=/*#__PURE__*/function(_libPictTemplate31){/**
6608
6622
  * @param {Object} pFable - The Fable Framework instance
6609
6623
  * @param {Object} pOptions - The options for the service
6610
6624
  * @param {String} pServiceHash - The hash of the service
6611
- */function PictTemplateProviderDataValueTree(pFable,pOptions,pServiceHash){var _this125;_classCallCheck2(this,PictTemplateProviderDataValueTree);_this125=_callSuper(this,PictTemplateProviderDataValueTree,[pFable,pOptions,pServiceHash]);/** @type {any} */_this125.log;_this125.addPattern('{~DataTree:','~}');_this125.addPattern('{~DT:','~}');return _this125;}/**
6625
+ */function PictTemplateProviderDataValueTree(pFable,pOptions,pServiceHash){var _this126;_classCallCheck2(this,PictTemplateProviderDataValueTree);_this126=_callSuper(this,PictTemplateProviderDataValueTree,[pFable,pOptions,pServiceHash]);/** @type {any} */_this126.log;_this126.addPattern('{~DataTree:','~}');_this126.addPattern('{~DT:','~}');return _this126;}/**
6612
6626
  * Render a template expression, returning a string with the resulting content.
6613
6627
  *
6614
6628
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6630,11 +6644,11 @@ tmpPictObjectWrapTemplate="<div class=\"PICT PICTObjectSet\">{~D:Record.ObjectVa
6630
6644
  *
6631
6645
  * @return {string} The rendered template
6632
6646
  */},{key:"dataValueTreeObjectSet",value:function dataValueTreeObjectSet(pObject,pRootObject,pCurrentDepth,pMaxDepth,pContextArray,pScope){var tmpTemplateResult='';if(_typeof(pObject)!=='object'){return tmpTemplateResult;}var tmpObjectValueKeys=Object.keys(pObject);var tmpPictObjectBranchTemplate=this.pict.TemplateProvider.getTemplate('PICT-Object-Branch');if(!tmpPictObjectBranchTemplate){// This template is here because it is a default template. Users can override this template by providing their own as PICT-Object-Branch
6633
- tmpPictObjectBranchTemplate="\n<div class=\"PICTObjectBranchDepth_{~D:Record.CurrentDepth~}\"><div class=\"PICTObjectBranch\">{~D:Record.BranchKey~}</div><div class=\"PICTObjectBranchValue\">{~D:Record.BranchValue~}</div></div>\n";}for(var i=0;i<tmpObjectValueKeys.length;i++){var tmpBranchType=_typeof(pObject[tmpObjectValueKeys[i]]);var tmpBranchValue='';switch(tmpBranchType){case'object':if(pCurrentDepth+1>pMaxDepth){tmpBranchValue='...';}else{tmpBranchValue=this.dataValueTreeObjectSet(pObject[tmpObjectValueKeys[i]],pRootObject,pCurrentDepth+1,pMaxDepth,pContextArray,pScope);}break;default:tmpBranchValue=pObject[tmpObjectValueKeys[i]];break;}var tmpDataValue={AppData:this.pict.AppData,Bundle:this.pict.Bundle,RootContainer:pRootObject,Container:pObject,BranchEntryCount:tmpObjectValueKeys.length,BranchIndex:i,BranchKey:tmpObjectValueKeys[i],BranchValue:tmpBranchValue,BranchDataType:tmpBranchType,CurrentDepth:pCurrentDepth,MaxDepth:pMaxDepth};tmpTemplateResult+=this.pict.parseTemplate(tmpPictObjectBranchTemplate,tmpDataValue,null,pContextArray,pScope);}return tmpTemplateResult;}}]);}(libPictTemplate);module.exports=PictTemplateProviderDataValueTree;},{"pict-template":143}],241:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderLogStatement=/*#__PURE__*/function(_libPictTemplate32){/**
6647
+ tmpPictObjectBranchTemplate="\n<div class=\"PICTObjectBranchDepth_{~D:Record.CurrentDepth~}\"><div class=\"PICTObjectBranch\">{~D:Record.BranchKey~}</div><div class=\"PICTObjectBranchValue\">{~D:Record.BranchValue~}</div></div>\n";}for(var i=0;i<tmpObjectValueKeys.length;i++){var tmpBranchType=_typeof(pObject[tmpObjectValueKeys[i]]);var tmpBranchValue='';switch(tmpBranchType){case'object':if(pCurrentDepth+1>pMaxDepth){tmpBranchValue='...';}else{tmpBranchValue=this.dataValueTreeObjectSet(pObject[tmpObjectValueKeys[i]],pRootObject,pCurrentDepth+1,pMaxDepth,pContextArray,pScope);}break;default:tmpBranchValue=pObject[tmpObjectValueKeys[i]];break;}var tmpDataValue={AppData:this.pict.AppData,Bundle:this.pict.Bundle,RootContainer:pRootObject,Container:pObject,BranchEntryCount:tmpObjectValueKeys.length,BranchIndex:i,BranchKey:tmpObjectValueKeys[i],BranchValue:tmpBranchValue,BranchDataType:tmpBranchType,CurrentDepth:pCurrentDepth,MaxDepth:pMaxDepth};tmpTemplateResult+=this.pict.parseTemplate(tmpPictObjectBranchTemplate,tmpDataValue,null,pContextArray,pScope);}return tmpTemplateResult;}}]);}(libPictTemplate);module.exports=PictTemplateProviderDataValueTree;},{"pict-template":143}],242:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderLogStatement=/*#__PURE__*/function(_libPictTemplate32){/**
6634
6648
  * @param {Object} pFable - The Fable Framework instance
6635
6649
  * @param {Object} pOptions - The options for the service
6636
6650
  * @param {String} pServiceHash - The hash of the service
6637
- */function PictTemplateProviderLogStatement(pFable,pOptions,pServiceHash){var _this126;_classCallCheck2(this,PictTemplateProviderLogStatement);_this126=_callSuper(this,PictTemplateProviderLogStatement,[pFable,pOptions,pServiceHash]);/** @type {any} */_this126.log;_this126.addPattern('{~LogStatement:','~}');_this126.addPattern('{~LS:','~}');return _this126;}/**
6651
+ */function PictTemplateProviderLogStatement(pFable,pOptions,pServiceHash){var _this127;_classCallCheck2(this,PictTemplateProviderLogStatement);_this127=_callSuper(this,PictTemplateProviderLogStatement,[pFable,pOptions,pServiceHash]);/** @type {any} */_this127.log;_this127.addPattern('{~LogStatement:','~}');_this127.addPattern('{~LS:','~}');return _this127;}/**
6638
6652
  * Render a template expression, returning a string with the resulting content.
6639
6653
  *
6640
6654
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6643,11 +6657,11 @@ tmpPictObjectBranchTemplate="\n<div class=\"PICTObjectBranchDepth_{~D:Record.Cur
6643
6657
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6644
6658
  *
6645
6659
  * @return {string} The rendered template
6646
- */_inherits(PictTemplateProviderLogStatement,_libPictTemplate32);return _createClass2(PictTemplateProviderLogStatement,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();this.log.trace("PICT Template Log Message: ".concat(tmpHash));return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderLogStatement;},{"pict-template":143}],242:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderLogValue=/*#__PURE__*/function(_libPictTemplate33){/**
6660
+ */_inherits(PictTemplateProviderLogStatement,_libPictTemplate32);return _createClass2(PictTemplateProviderLogStatement,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();this.log.trace("PICT Template Log Message: ".concat(tmpHash));return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderLogStatement;},{"pict-template":143}],243:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderLogValue=/*#__PURE__*/function(_libPictTemplate33){/**
6647
6661
  * @param {Object} pFable - The Fable Framework instance
6648
6662
  * @param {Object} pOptions - The options for the service
6649
6663
  * @param {String} pServiceHash - The hash of the service
6650
- */function PictTemplateProviderLogValue(pFable,pOptions,pServiceHash){var _this127;_classCallCheck2(this,PictTemplateProviderLogValue);_this127=_callSuper(this,PictTemplateProviderLogValue,[pFable,pOptions,pServiceHash]);/** @type {any} */_this127.log;_this127.addPattern('{~LogValue:','~}');_this127.addPattern('{~LV:','~}');return _this127;}/**
6664
+ */function PictTemplateProviderLogValue(pFable,pOptions,pServiceHash){var _this128;_classCallCheck2(this,PictTemplateProviderLogValue);_this128=_callSuper(this,PictTemplateProviderLogValue,[pFable,pOptions,pServiceHash]);/** @type {any} */_this128.log;_this128.addPattern('{~LogValue:','~}');_this128.addPattern('{~LV:','~}');return _this128;}/**
6651
6665
  * Render a template expression, returning a string with the resulting content.
6652
6666
  *
6653
6667
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6656,11 +6670,11 @@ tmpPictObjectBranchTemplate="\n<div class=\"PICTObjectBranchDepth_{~D:Record.Cur
6656
6670
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6657
6671
  *
6658
6672
  * @return {string} The rendered template
6659
- */_inherits(PictTemplateProviderLogValue,_libPictTemplate33);return _createClass2(PictTemplateProviderLogValue,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpData=_typeof(pRecord)==='object'?pRecord:{};var tmpValue=this.resolveStateFromAddress(tmpHash,tmpData,pContextArray,null,pScope);var tmpValueType=_typeof(tmpValue);if(tmpValue==null||tmpValueType=='undefined'){this.log.trace("PICT Template Log Value: [".concat(tmpHash,"] is ").concat(tmpValueType,"."));}else if(tmpValueType=='object'){this.log.trace("PICT Template Log Value: [".concat(tmpHash,"] is an object."),tmpValue);}else{this.log.trace("PICT Template Log Value: [".concat(tmpHash,"] is a ").concat(tmpValueType," = [").concat(tmpValue,"]"));}return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderLogValue;},{"pict-template":143}],243:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderLogValueTree=/*#__PURE__*/function(_libPictTemplate34){/**
6673
+ */_inherits(PictTemplateProviderLogValue,_libPictTemplate33);return _createClass2(PictTemplateProviderLogValue,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpData=_typeof(pRecord)==='object'?pRecord:{};var tmpValue=this.resolveStateFromAddress(tmpHash,tmpData,pContextArray,null,pScope);var tmpValueType=_typeof(tmpValue);if(tmpValue==null||tmpValueType=='undefined'){this.log.trace("PICT Template Log Value: [".concat(tmpHash,"] is ").concat(tmpValueType,"."));}else if(tmpValueType=='object'){this.log.trace("PICT Template Log Value: [".concat(tmpHash,"] is an object."),tmpValue);}else{this.log.trace("PICT Template Log Value: [".concat(tmpHash,"] is a ").concat(tmpValueType," = [").concat(tmpValue,"]"));}return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderLogValue;},{"pict-template":143}],244:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderLogValueTree=/*#__PURE__*/function(_libPictTemplate34){/**
6660
6674
  * @param {Object} pFable - The Fable Framework instance
6661
6675
  * @param {Object} pOptions - The options for the service
6662
6676
  * @param {String} pServiceHash - The hash of the service
6663
- */function PictTemplateProviderLogValueTree(pFable,pOptions,pServiceHash){var _this128;_classCallCheck2(this,PictTemplateProviderLogValueTree);_this128=_callSuper(this,PictTemplateProviderLogValueTree,[pFable,pOptions,pServiceHash]);/** @type {any} */_defineProperty2(_this128,"logValueTreeObjectSet",function(pObject,pBaseAddress,pRootObject,pCurrentDepth,pMaxDepth){var tmpTemplateResult='';if(_typeof(pObject)!=='object'){return tmpTemplateResult;}var tmpObjectValueKeys=Object.keys(pObject);for(var i=0;i<tmpObjectValueKeys.length;i++){var tmpBranchType=_typeof(pObject[tmpObjectValueKeys[i]]);var tmpBranchValue='';switch(tmpBranchType){case'object':tmpBranchValue='...';break;default:tmpBranchValue=pObject[tmpObjectValueKeys[i]];break;}_this128.log.trace("[".concat(pBaseAddress,".").concat(tmpObjectValueKeys[i],"] (").concat(tmpBranchType,"): ").concat(tmpBranchValue));if(pCurrentDepth+1>pMaxDepth){return'';}else if(tmpBranchType=='object'){tmpBranchValue=_this128.logValueTreeObjectSet(pObject[tmpObjectValueKeys[i]],"".concat(pBaseAddress,".").concat(tmpObjectValueKeys[i]),pRootObject,pCurrentDepth+1,pMaxDepth);}}return'';});_this128.log;_this128.addPattern('{~LogValueTree:','~}');_this128.addPattern('{~LVT:','~}');return _this128;}/**
6677
+ */function PictTemplateProviderLogValueTree(pFable,pOptions,pServiceHash){var _this129;_classCallCheck2(this,PictTemplateProviderLogValueTree);_this129=_callSuper(this,PictTemplateProviderLogValueTree,[pFable,pOptions,pServiceHash]);/** @type {any} */_defineProperty2(_this129,"logValueTreeObjectSet",function(pObject,pBaseAddress,pRootObject,pCurrentDepth,pMaxDepth){var tmpTemplateResult='';if(_typeof(pObject)!=='object'){return tmpTemplateResult;}var tmpObjectValueKeys=Object.keys(pObject);for(var i=0;i<tmpObjectValueKeys.length;i++){var tmpBranchType=_typeof(pObject[tmpObjectValueKeys[i]]);var tmpBranchValue='';switch(tmpBranchType){case'object':tmpBranchValue='...';break;default:tmpBranchValue=pObject[tmpObjectValueKeys[i]];break;}_this129.log.trace("[".concat(pBaseAddress,".").concat(tmpObjectValueKeys[i],"] (").concat(tmpBranchType,"): ").concat(tmpBranchValue));if(pCurrentDepth+1>pMaxDepth){return'';}else if(tmpBranchType=='object'){tmpBranchValue=_this129.logValueTreeObjectSet(pObject[tmpObjectValueKeys[i]],"".concat(pBaseAddress,".").concat(tmpObjectValueKeys[i]),pRootObject,pCurrentDepth+1,pMaxDepth);}}return'';});_this129.log;_this129.addPattern('{~LogValueTree:','~}');_this129.addPattern('{~LVT:','~}');return _this129;}/**
6664
6678
  * Render a template expression, returning a string with the resulting content.
6665
6679
  *
6666
6680
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6669,11 +6683,11 @@ tmpPictObjectBranchTemplate="\n<div class=\"PICTObjectBranchDepth_{~D:Record.Cur
6669
6683
  * @param {any} [pScope] - A sticky scope that can be used to carry state and simplify template
6670
6684
  *
6671
6685
  * @return {string} The rendered template
6672
- */_inherits(PictTemplateProviderLogValueTree,_libPictTemplate34);return _createClass2(PictTemplateProviderLogValueTree,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpData=_typeof(pRecord)==='object'?pRecord:{};tmpData.TemplateHash=pTemplateHash.trim();tmpData.ValueTreeParameters=tmpData.TemplateHash.split('^');if(tmpData.ValueTreeParameters.length<1){return'';}tmpData.ResolvedValue=this.resolveStateFromAddress(tmpData.ValueTreeParameters[0],tmpData,pContextArray,null,pScope);tmpData.ResolvedValueType=_typeof(tmpData.ResolvedValue);try{tmpData.TreeMaxDepth=tmpData.ValueTreeParameters.length<2?1:parseInt(tmpData.ValueTreeParameters[1]);}catch(_unused9){tmpData.TreeMaxDepth=1;}if(tmpData.ResolvedValueType=='object'){this.logValueTreeObjectSet(tmpData.ResolvedValue,tmpData.ValueTreeParameters[0],tmpData.ResolvedValue,0,tmpData.TreeMaxDepth);}else{this.log.trace("PICT Template Log Value Tree: [".concat(tmpData.TemplateHash,"] resolved data is not an object."),tmpData.ResolvedValue);}return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderLogValueTree;},{"pict-template":143}],244:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderNotEmpty=/*#__PURE__*/function(_libPictTemplate35){/**
6686
+ */_inherits(PictTemplateProviderLogValueTree,_libPictTemplate34);return _createClass2(PictTemplateProviderLogValueTree,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpData=_typeof(pRecord)==='object'?pRecord:{};tmpData.TemplateHash=pTemplateHash.trim();tmpData.ValueTreeParameters=tmpData.TemplateHash.split('^');if(tmpData.ValueTreeParameters.length<1){return'';}tmpData.ResolvedValue=this.resolveStateFromAddress(tmpData.ValueTreeParameters[0],tmpData,pContextArray,null,pScope);tmpData.ResolvedValueType=_typeof(tmpData.ResolvedValue);try{tmpData.TreeMaxDepth=tmpData.ValueTreeParameters.length<2?1:parseInt(tmpData.ValueTreeParameters[1]);}catch(_unused9){tmpData.TreeMaxDepth=1;}if(tmpData.ResolvedValueType=='object'){this.logValueTreeObjectSet(tmpData.ResolvedValue,tmpData.ValueTreeParameters[0],tmpData.ResolvedValue,0,tmpData.TreeMaxDepth);}else{this.log.trace("PICT Template Log Value Tree: [".concat(tmpData.TemplateHash,"] resolved data is not an object."),tmpData.ResolvedValue);}return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderLogValueTree;},{"pict-template":143}],245:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderNotEmpty=/*#__PURE__*/function(_libPictTemplate35){/**
6673
6687
  * @param {Object} pFable - The Fable Framework instance
6674
6688
  * @param {Object} pOptions - The options for the service
6675
6689
  * @param {String} pServiceHash - The hash of the service
6676
- */function PictTemplateProviderNotEmpty(pFable,pOptions,pServiceHash){var _this129;_classCallCheck2(this,PictTemplateProviderNotEmpty);_this129=_callSuper(this,PictTemplateProviderNotEmpty,[pFable,pOptions,pServiceHash]);/** @type {any} */_this129.log;_this129.addPattern('{~NotEmpty:','~}');_this129.addPattern('{~NE:','~}');return _this129;}/**
6690
+ */function PictTemplateProviderNotEmpty(pFable,pOptions,pServiceHash){var _this130;_classCallCheck2(this,PictTemplateProviderNotEmpty);_this130=_callSuper(this,PictTemplateProviderNotEmpty,[pFable,pOptions,pServiceHash]);/** @type {any} */_this130.log;_this130.addPattern('{~NotEmpty:','~}');_this130.addPattern('{~NE:','~}');return _this130;}/**
6677
6691
  * Render a template expression, returning a string with the resulting content.
6678
6692
  *
6679
6693
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6683,15 +6697,15 @@ tmpPictObjectBranchTemplate="\n<div class=\"PICTObjectBranchDepth_{~D:Record.Cur
6683
6697
  *
6684
6698
  * @return {string} The rendered template
6685
6699
  */_inherits(PictTemplateProviderNotEmpty,_libPictTemplate35);return _createClass2(PictTemplateProviderNotEmpty,[{key:"render",value:function render(pTemplateHash,pRecord,pContextArray,pScope){var tmpHash=pTemplateHash.trim();var tmpData=_typeof(pRecord)==='object'?pRecord:{};if(this.pict.LogNoisiness>4){this.log.trace("PICT Template [fNotEmptyRender]::[".concat(tmpHash,"] with tmpData:"),tmpData);}else if(this.pict.LogNoisiness>2){this.log.trace("PICT Template [fNotEmptyRender]::[".concat(tmpHash,"]"));}var tmpHashParts=tmpHash.split('^');// For now just check truthiness. Not sure if this is grand.
6686
- if(this.resolveStateFromAddress(tmpHashParts[0],tmpData,pContextArray,null,pScope)){return tmpHashParts[1];}return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderNotEmpty;},{"pict-template":143}],245:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateIfBase=/*#__PURE__*/function(_libPictTemplate36){/**
6700
+ if(this.resolveStateFromAddress(tmpHashParts[0],tmpData,pContextArray,null,pScope)){return tmpHashParts[1];}return'';}}]);}(libPictTemplate);module.exports=PictTemplateProviderNotEmpty;},{"pict-template":143}],246:[function(require,module,exports){var libPictTemplate=require('pict-template');var PictTemplateProviderTemplateIfBase=/*#__PURE__*/function(_libPictTemplate36){/**
6687
6701
  * @param {Object} pFable - The Fable Framework instance
6688
6702
  * @param {Object} pOptions - The options for the service
6689
6703
  * @param {String} pServiceHash - The hash of the service
6690
- */function PictTemplateProviderTemplateIfBase(pFable,pOptions,pServiceHash){_classCallCheck2(this,PictTemplateProviderTemplateIfBase);return _callSuper(this,PictTemplateProviderTemplateIfBase,[pFable,pOptions,pServiceHash]);}_inherits(PictTemplateProviderTemplateIfBase,_libPictTemplate36);return _createClass2(PictTemplateProviderTemplateIfBase,[{key:"compareValues",value:function compareValues(pValueLeft,pOperator,pValueRight){switch(pOperator){case'TRUE':return pValueLeft===true;case'FALSE':return pValueLeft===false;case'LNGT':case'LENGTH_GREATER_THAN':switch(_typeof(pValueLeft)){case'string':return pValueLeft.length>pValueRight;case'object':return pValueLeft.length>pValueRight;default:return false;}case'LNLT':case'LENGTH_LESS_THAN':switch(_typeof(pValueLeft)){case'string':return pValueLeft.length<pValueRight;case'object':return pValueLeft.length<pValueRight;default:return false;}case'!=':return pValueLeft!=pValueRight;case'<':return pValueLeft<pValueRight;case'>':return pValueLeft>pValueRight;case'<=':return pValueLeft<=pValueRight;case'>=':return pValueLeft>=pValueRight;case'===':return pValueLeft===pValueRight;case'==':return pValueLeft==pValueRight;default:return false;}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateIfBase;},{"pict-template":143}],246:[function(require,module,exports){var libPictTemplateIf=require('./Pict-Template-TemplateIf-Base.js');var PictTemplateProviderTemplateIf=/*#__PURE__*/function(_libPictTemplateIf){/**
6704
+ */function PictTemplateProviderTemplateIfBase(pFable,pOptions,pServiceHash){_classCallCheck2(this,PictTemplateProviderTemplateIfBase);return _callSuper(this,PictTemplateProviderTemplateIfBase,[pFable,pOptions,pServiceHash]);}_inherits(PictTemplateProviderTemplateIfBase,_libPictTemplate36);return _createClass2(PictTemplateProviderTemplateIfBase,[{key:"compareValues",value:function compareValues(pValueLeft,pOperator,pValueRight){switch(pOperator){case'TRUE':return pValueLeft===true;case'FALSE':return pValueLeft===false;case'LNGT':case'LENGTH_GREATER_THAN':switch(_typeof(pValueLeft)){case'string':return pValueLeft.length>pValueRight;case'object':return pValueLeft.length>pValueRight;default:return false;}case'LNLT':case'LENGTH_LESS_THAN':switch(_typeof(pValueLeft)){case'string':return pValueLeft.length<pValueRight;case'object':return pValueLeft.length<pValueRight;default:return false;}case'!=':return pValueLeft!=pValueRight;case'<':return pValueLeft<pValueRight;case'>':return pValueLeft>pValueRight;case'<=':return pValueLeft<=pValueRight;case'>=':return pValueLeft>=pValueRight;case'===':return pValueLeft===pValueRight;case'==':return pValueLeft==pValueRight;default:return false;}}}]);}(libPictTemplate);module.exports=PictTemplateProviderTemplateIfBase;},{"pict-template":143}],247:[function(require,module,exports){var libPictTemplateIf=require('./Pict-Template-TemplateIf-Base.js');var PictTemplateProviderTemplateIf=/*#__PURE__*/function(_libPictTemplateIf){/**
6691
6705
  * @param {Object} pFable - The Fable Framework instance
6692
6706
  * @param {Object} pOptions - The options for the service
6693
6707
  * @param {String} pServiceHash - The hash of the service
6694
- */function PictTemplateProviderTemplateIf(pFable,pOptions,pServiceHash){var _this130;_classCallCheck2(this,PictTemplateProviderTemplateIf);_this130=_callSuper(this,PictTemplateProviderTemplateIf,[pFable,pOptions,pServiceHash]);/** @type {any} */_this130.log;_this130.addPattern('{~TemplateIf:','~}');_this130.addPattern('{~TIf:','~}');return _this130;}/**
6708
+ */function PictTemplateProviderTemplateIf(pFable,pOptions,pServiceHash){var _this131;_classCallCheck2(this,PictTemplateProviderTemplateIf);_this131=_callSuper(this,PictTemplateProviderTemplateIf,[pFable,pOptions,pServiceHash]);/** @type {any} */_this131.log;_this131.addPattern('{~TemplateIf:','~}');_this131.addPattern('{~TIf:','~}');return _this131;}/**
6695
6709
  * Render a template expression, returning a string with the resulting content.
6696
6710
  *
6697
6711
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6720,11 +6734,11 @@ if(!tmpTemplateHash){this.log.warn("Pict: Template Render: TemplateHash not reso
6720
6734
  if(!tmpComparisonOperation){this.log.warn("Pict: Template Render: Comparison Operation not resolved for [".concat(tmpHash,"]"));return tmpCallback(null,'');}// Now try to break the comparison into three parts...
6721
6735
  var tmpComparisonParts=tmpComparisonOperation.split('^');if(tmpComparisonParts.length<3){this.log.warn("Pict: Template Render: Comparison Operation not complete (three parts expected) for [".concat(tmpHash,"]"));return tmpCallback(null,'');}// Now look up the data at the comparison location
6722
6736
  try{// This is the only thing that's different from the absolute value function above. Collapse these.
6723
- var tmpComparisonResult=this.compareValues(this.resolveStateFromAddress(tmpComparisonParts[0],tmpData,pContextArray,null,pScope),tmpComparisonParts[1],this.resolveStateFromAddress(tmpComparisonParts[2],tmpData,pContextArray,null,pScope));if(!tmpComparisonResult){return tmpCallback(null,'');}if(!tmpAddressOfData){this.pict.parseTemplateByHash(tmpTemplateHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateByHash(tmpTemplateHash,this.resolveStateFromAddress(tmpAddressOfData,tmpData,pContextArray,null,pScope),function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}catch(pError){this.log.error("Pict: Template Render: Error looking up comparison data for [".concat(tmpHash,"]: ").concat(pError),pError);return tmpCallback(pError,'');}}}]);}(libPictTemplateIf);module.exports=PictTemplateProviderTemplateIf;},{"./Pict-Template-TemplateIf-Base.js":245}],247:[function(require,module,exports){var libPictTemplateIf=require('./Pict-Template-TemplateIf-Base.js');var PictTemplateProviderTemplateIfAbsolute=/*#__PURE__*/function(_libPictTemplateIf2){/**
6737
+ var tmpComparisonResult=this.compareValues(this.resolveStateFromAddress(tmpComparisonParts[0],tmpData,pContextArray,null,pScope),tmpComparisonParts[1],this.resolveStateFromAddress(tmpComparisonParts[2],tmpData,pContextArray,null,pScope));if(!tmpComparisonResult){return tmpCallback(null,'');}if(!tmpAddressOfData){this.pict.parseTemplateByHash(tmpTemplateHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateByHash(tmpTemplateHash,this.resolveStateFromAddress(tmpAddressOfData,tmpData,pContextArray,null,pScope),function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}catch(pError){this.log.error("Pict: Template Render: Error looking up comparison data for [".concat(tmpHash,"]: ").concat(pError),pError);return tmpCallback(pError,'');}}}]);}(libPictTemplateIf);module.exports=PictTemplateProviderTemplateIf;},{"./Pict-Template-TemplateIf-Base.js":246}],248:[function(require,module,exports){var libPictTemplateIf=require('./Pict-Template-TemplateIf-Base.js');var PictTemplateProviderTemplateIfAbsolute=/*#__PURE__*/function(_libPictTemplateIf2){/**
6724
6738
  * @param {Object} pFable - The Fable Framework instance
6725
6739
  * @param {Object} pOptions - The options for the service
6726
6740
  * @param {String} pServiceHash - The hash of the service
6727
- */function PictTemplateProviderTemplateIfAbsolute(pFable,pOptions,pServiceHash){var _this131;_classCallCheck2(this,PictTemplateProviderTemplateIfAbsolute);_this131=_callSuper(this,PictTemplateProviderTemplateIfAbsolute,[pFable,pOptions,pServiceHash]);/** @type {any} */_this131.log;_this131.addPattern('{~TemplateIfAbsolute:','~}');_this131.addPattern('{~TIfAbs:','~}');return _this131;}/**
6741
+ */function PictTemplateProviderTemplateIfAbsolute(pFable,pOptions,pServiceHash){var _this132;_classCallCheck2(this,PictTemplateProviderTemplateIfAbsolute);_this132=_callSuper(this,PictTemplateProviderTemplateIfAbsolute,[pFable,pOptions,pServiceHash]);/** @type {any} */_this132.log;_this132.addPattern('{~TemplateIfAbsolute:','~}');_this132.addPattern('{~TIfAbs:','~}');return _this132;}/**
6728
6742
  * Render a template expression, returning a string with the resulting content.
6729
6743
  *
6730
6744
  * @param {string} pTemplateHash - The hash contents of the template (what's between the template start and stop tags)
@@ -6752,5 +6766,5 @@ return this.pict.parseTemplateByHash(tmpTemplateHash,pRecord,null,pContextArray,
6752
6766
  if(!tmpTemplateHash){this.log.warn("Pict: Template Render: TemplateHash not resolved for [".concat(tmpHash,"]"));return tmpCallback(null,'');}// No comparison operation
6753
6767
  if(!tmpComparisonOperation){this.log.warn("Pict: Template Render: Comparison Operation not resolved for [".concat(tmpHash,"]"));return tmpCallback(null,'');}// Now try to break the comparison into three parts...
6754
6768
  var tmpComparisonParts=tmpComparisonOperation.split('^');if(tmpComparisonParts.length<3){this.log.warn("Pict: Template Render: Comparison Operation not complete (three parts expected) for [".concat(tmpHash,"]"));return tmpCallback(null,'');}// Now look up the data at the comparison location
6755
- try{var tmpComparisonResult=this.compareValues(this.resolveStateFromAddress(tmpComparisonParts[0],tmpData,pContextArray,null,pScope),tmpComparisonParts[1],tmpComparisonParts[2]);if(!tmpComparisonResult){return tmpCallback(null,'');}if(!tmpAddressOfData){this.pict.parseTemplateByHash(tmpTemplateHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateByHash(tmpTemplateHash,this.resolveStateFromAddress(tmpAddressOfData,tmpData,pContextArray,null,pScope),function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}catch(pError){this.log.error("Pict: Template Render: Error looking up comparison data for [".concat(tmpHash,"]: ").concat(pError),pError);return tmpCallback(pError,'');}}}]);}(libPictTemplateIf);module.exports=PictTemplateProviderTemplateIfAbsolute;},{"./Pict-Template-TemplateIf-Base.js":245}]},{},[199])(199);});
6769
+ try{var tmpComparisonResult=this.compareValues(this.resolveStateFromAddress(tmpComparisonParts[0],tmpData,pContextArray,null,pScope),tmpComparisonParts[1],tmpComparisonParts[2]);if(!tmpComparisonResult){return tmpCallback(null,'');}if(!tmpAddressOfData){this.pict.parseTemplateByHash(tmpTemplateHash,pRecord,function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}else{this.pict.parseTemplateByHash(tmpTemplateHash,this.resolveStateFromAddress(tmpAddressOfData,tmpData,pContextArray,null,pScope),function(pError,pValue){if(pError){return tmpCallback(pError,'');}return tmpCallback(null,pValue);},pContextArray,pScope);}}catch(pError){this.log.error("Pict: Template Render: Error looking up comparison data for [".concat(tmpHash,"]: ").concat(pError),pError);return tmpCallback(pError,'');}}}]);}(libPictTemplateIf);module.exports=PictTemplateProviderTemplateIfAbsolute;},{"./Pict-Template-TemplateIf-Base.js":246}]},{},[199])(199);});
6756
6770
  //# sourceMappingURL=pict.compatible.js.map