pict-docuserve 0.0.1
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.
- package/LICENSE +21 -0
- package/build-site.js +172 -0
- package/css/docuserve.css +73 -0
- package/dist/css/docuserve.css +73 -0
- package/dist/index.html +32 -0
- package/dist/js/pict.compatible.js +7793 -0
- package/dist/js/pict.compatible.js.map +1 -0
- package/dist/js/pict.compatible.min.js +12 -0
- package/dist/js/pict.compatible.min.js.map +1 -0
- package/dist/js/pict.js +7792 -0
- package/dist/js/pict.js.map +1 -0
- package/dist/js/pict.min.js +12 -0
- package/dist/js/pict.min.js.map +1 -0
- package/dist/pict-docuserve.compatible.js +5148 -0
- package/dist/pict-docuserve.compatible.js.map +1 -0
- package/dist/pict-docuserve.compatible.min.js +2 -0
- package/dist/pict-docuserve.compatible.min.js.map +1 -0
- package/dist/pict-docuserve.js +4670 -0
- package/dist/pict-docuserve.js.map +1 -0
- package/dist/pict-docuserve.min.js +2 -0
- package/dist/pict-docuserve.min.js.map +1 -0
- package/html/index.html +32 -0
- package/package.json +52 -0
- package/source/Pict-Application-Docuserve-Configuration.json +15 -0
- package/source/Pict-Application-Docuserve.js +246 -0
- package/source/cli/Docuserve-CLI-Program.js +16 -0
- package/source/cli/Docuserve-CLI-Run.js +3 -0
- package/source/cli/commands/Docuserve-Command-Inject.js +127 -0
- package/source/cli/commands/Docuserve-Command-Serve.js +135 -0
- package/source/providers/Pict-Provider-Docuserve-Documentation.js +1156 -0
- package/source/providers/PictRouter-Docuserve-Configuration.json +26 -0
- package/source/views/PictView-Docuserve-Content.js +208 -0
- package/source/views/PictView-Docuserve-Layout.js +105 -0
- package/source/views/PictView-Docuserve-Sidebar.js +362 -0
- package/source/views/PictView-Docuserve-Splash.js +264 -0
- package/source/views/PictView-Docuserve-TopBar.js +213 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";function _superPropGet(t,e,i,n){var o=_get(_getPrototypeOf(1&n?t.prototype:t),e,i);return 2&n&&"function"==typeof o?function(t){return o.apply(i,t)}:o}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,i){var n=_superPropBase(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:i):o.value}},_get.apply(null,arguments)}function _superPropBase(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _createForOfIteratorHelper(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return s=t.done,t},e:function(t){r=!0,a=t},f:function(){try{s||null==i.return||i.return()}finally{if(r)throw a}}}}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=Array(e);i<e;i++)n[i]=t[i];return n}function _callSuper(t,e,i){return e=_getPrototypeOf(e),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(e,i||[],_getPrototypeOf(t).constructor):e.apply(t,i))}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,_toPropertyKey(n.key),n)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function _defineProperty(t,e,i){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}!function(t){if("object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PictDocuserve=t()}}(function(){return function t(e,i,n){function o(s,r){if(!i[s]){if(!e[s]){var c="function"==typeof require&&require;if(!r&&c)return c(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var p=i[s]={exports:{}};e[s][0].call(p.exports,function(t){return o(e[s][1][t]||t)},p,p.exports,t,e,i,n)}return i[s].exports}for(var a="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e,i){e.exports={name:"fable-serviceproviderbase",version:"3.0.15",description:"Simple base classes for fable services.",main:"source/Fable-ServiceProviderBase.js",scripts:{start:"node source/Fable-ServiceProviderBase.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"},mocha:{diff:!0,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:"https://github.com/stevenvelozo/fable-serviceproviderbase.git"},keywords:["entity","behavior"],author:"Steven Velozo <steven@velozo.com> (http://velozo.com/)",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/fable-serviceproviderbase/issues"},homepage:"https://github.com/stevenvelozo/fable-serviceproviderbase",devDependencies:{fable:"^3.0.143",quackage:"^1.0.33"}}},{}],2:[function(t,e,i){var n=t("../package.json"),o=function(){return _createClass(function t(e,i,o){_classCallCheck(this,t),"object"===_typeof(e)&&e.isFable?this.connectFable(e):this.fable=!1,this._PackageFableServiceProvider=n,this.fable?(this.UUID=e.getUUID(),this.options="object"===_typeof(i)?i:{}):(this.options="object"!==_typeof(e)||e.isFable?"object"===_typeof(i)?i:{}:e,this.UUID="CORE-SVC-".concat(Math.floor(89999*Math.random()+1e4))),this.serviceType="Unknown-".concat(this.UUID),this.Hash="string"==typeof o?o:this.fable||"string"!=typeof i?"".concat(this.UUID):i},[{key:"connectFable",value:function(t){if("object"!==_typeof(t)||!t.isFable){var e="Fable Service Provider Base: Cannot connect to Fable, invalid Fable object passed in. The pFable parameter was a [".concat(_typeof(t),"].}");return console.log(e),new Error(e)}return this.fable||(this.fable=t),this.log||(this.log=this.fable.Logging),this.services||(this.services=this.fable.services),this.servicesMap||(this.servicesMap=this.fable.servicesMap),!0}}])}();_defineProperty(o,"isFableService",!0),e.exports=o,e.exports.CoreServiceProviderBase=o},{"../package.json":1}],3:[function(t,e,i){e.exports={name:"pict-application",version:"1.0.30",description:"Application base class for a pict view-based application",main:"source/Pict-Application.js",scripts:{test:"npx mocha -u tdd -R spec",start:"node source/Pict-Application.js",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-application-image:local","docker-dev-run":'docker run -it -d --name pict-application-dev -p 30001:8080 -p 38086:8086 -v "$PWD/.config:/home/coder/.config" -v "$PWD:/home/coder/pict-application" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" pict-application-image:local',"docker-dev-shell":"docker exec -it pict-application-dev /bin/bash",tests:"npx mocha -u tdd --exit -R spec --grep",lint:"eslint source/**",types:"tsc -p ."},types:"types/source/Pict-Application.d.ts",repository:{type:"git",url:"git+https://github.com/stevenvelozo/pict-application.git"},author:"steven velozo <steven@velozo.com>",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/pict-application/issues"},homepage:"https://github.com/stevenvelozo/pict-application#readme",devDependencies:{"@eslint/js":"^9.28.0","browser-env":"^3.3.0",eslint:"^9.28.0",pict:"^1.0.343","pict-provider":"^1.0.7","pict-view":"^1.0.64",quackage:"^1.0.45",typescript:"^5.9.3"},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},dependencies:{"fable-serviceproviderbase":"^3.0.15"}}},{}],4:[function(t,e,i){var n=t("fable-serviceproviderbase"),o=t("../package.json"),a={Name:"DefaultPictApplication",MainViewportViewIdentifier:"Default-View",MainViewportRenderableHash:!1,MainViewportDestinationAddress:!1,MainViewportDefaultDataAddress:!1,AutoSolveAfterInitialize:!0,AutoRenderMainViewportViewAfterInitialize:!0,AutoRenderViewsAfterInitialize:!1,AutoLoginAfterInitialize:!1,AutoLoadDataAfterLogin:!1,ConfigurationOnlyViews:[],Manifests:{},IdentifierAddressPrefix:"PICT-"},s=function(t){function e(t,i,n){var s;_classCallCheck(this,e);var r="object"===_typeof(t.settings.PictApplicationConfiguration)?t.settings.PictApplicationConfiguration:{};(s=_callSuper(this,e,[t,Object.assign({},JSON.parse(JSON.stringify(a)),r,i),n])).options,s.log,s.fable,s.UUID,s.Hash,s.servicesMap,s.serviceType="PictApplication",s._Package=o,s.pict=s.fable,s.AppData=s.fable.AppData,s.Bundle=s.fable.Bundle,s.initializeTimestamp,s.lastSolvedTimestamp,s.lastLoginTimestamp,s.lastMarshalFromViewsTimestamp,s.lastMarshalToViewsTimestamp,s.lastAutoRenderTimestamp,s.lastLoadDataTimestamp;var c=Object.keys(s.options.Manifests);if(c.length>0)for(var l=0;l<c.length;l++){var p=c[l];s.fable.instantiateServiceProvider("Manifest",s.options.Manifests[p],p)}return s}return _inherits(e,t),_createClass(e,[{key:"onPreSolve",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onPreSolve:")),!0}},{key:"onPreSolveAsync",value:function(t){return this.onPreSolve(),t()}},{key:"onBeforeSolve",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeSolve:")),!0}},{key:"onBeforeSolveAsync",value:function(t){return this.onBeforeSolve(),t()}},{key:"onSolve",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onSolve:")),!0}},{key:"onSolveAsync",value:function(t){return this.onSolve(),t()}},{key:"solve",value:function(){this.pict.LogNoisiness>2&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," executing solve() function..."));for(var t=Object.keys(this.pict.providers),e=[],i=0;i<t.length;i++){var n=this.pict.providers[t[i]];n.options.AutoSolveWithApp&&e.push(n)}e.sort(function(t,e){return t.options.AutoSolveOrdinal-e.options.AutoSolveOrdinal});for(var o=0;o<e.length;o++)e[o].solve(e[o]);this.onBeforeSolve();for(var a=Object.keys(this.pict.views),s=[],r=0;r<a.length;r++){var c=this.pict.views[a[r]];c.options.AutoInitialize&&s.push(c)}s.sort(function(t,e){return t.options.AutoInitializeOrdinal-e.options.AutoInitializeOrdinal});for(var l=0;l<s.length;l++)s[l].solve();return this.onSolve(),this.onAfterSolve(),this.lastSolvedTimestamp=this.fable.log.getTimeStamp(),!0}},{key:"solveAsync",value:function(t){var e=this,i=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate");i.anticipate(this.onBeforeSolveAsync.bind(this));var n="function"==typeof t&&t;n||(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," solveAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),n=function(t){t&&e.log.error("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," solveAsync Auto Callback Error: ").concat(t),t)});for(var o=Object.keys(this.pict.providers),a=[],s=0;s<o.length;s++){var r=this.pict.providers[o[s]];r.options.AutoSolveWithApp&&a.push(r)}a.sort(function(t,e){return t.options.AutoSolveOrdinal-e.options.AutoSolveOrdinal});for(var c=0;c<a.length;c++)i.anticipate(a[c].solveAsync.bind(a[c]));for(var l=Object.keys(this.pict.views),p=[],h=0;h<l.length;h++){var u=this.pict.views[l[h]];u.options.AutoSolveWithApp&&p.push(u)}p.sort(function(t,e){return t.options.AutoSolveOrdinal-e.options.AutoSolveOrdinal});for(var d=0;d<p.length;d++)i.anticipate(p[d].solveAsync.bind(p[d]));i.anticipate(this.onSolveAsync.bind(this)),i.anticipate(this.onAfterSolveAsync.bind(this)),i.wait(function(t){return e.pict.LogNoisiness>2&&e.log.trace("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," solveAsync() complete.")),e.lastSolvedTimestamp=e.fable.log.getTimeStamp(),n(t)})}},{key:"onAfterSolve",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterSolve:")),!0}},{key:"onAfterSolveAsync",value:function(t){return this.onAfterSolve(),t()}},{key:"onBeforeLoginAsync",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeLoginAsync:")),t()}},{key:"onLoginAsync",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onLoginAsync:")),t()}},{key:"loginAsync",value:function(t){var e=this,i=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate"),n=t;"function"!=typeof n&&(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," loginAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),n=function(t){t&&e.log.error("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," loginAsync Auto Callback Error: ").concat(t),t)}),i.anticipate(this.onBeforeLoginAsync.bind(this)),i.anticipate(this.onLoginAsync.bind(this)),i.anticipate(this.onAfterLoginAsync.bind(this)),this.options.AutoLoadDataAfterLogin&&i.anticipate(function(t){if(!e.isLoggedIn())return t();e.pict.LogNoisiness>1&&e.log.trace("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," auto loading data after login...")),e.loadDataAsync(function(e){t(e)})}),i.wait(function(t){return e.pict.LogNoisiness>2&&e.log.trace("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," loginAsync() complete.")),e.lastLoginTimestamp=e.fable.log.getTimeStamp(),n(t)})}},{key:"isLoggedIn",value:function(){return!0}},{key:"onAfterLoginAsync",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterLoginAsync:")),t()}},{key:"onBeforeLoadDataAsync",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeLoadDataAsync:")),t()}},{key:"onLoadDataAsync",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onLoadDataAsync:")),t()}},{key:"loadDataAsync",value:function(t){var e=this,i=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate"),n=t;"function"!=typeof n&&(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," loadDataAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),n=function(t){t&&e.log.error("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," loadDataAsync Auto Callback Error: ").concat(t),t)}),i.anticipate(this.onBeforeLoadDataAsync.bind(this));for(var o=Object.keys(this.pict.providers),a=[],s=0;s<o.length;s++){var r=this.pict.providers[o[s]];r.options.AutoLoadDataWithApp&&a.push(r)}a.sort(function(t,e){return t.options.AutoLoadDataOrdinal-e.options.AutoLoadDataOrdinal});for(var c=0,l=a;c<l.length;c++){var p=l[c];i.anticipate(p.onBeforeLoadDataAsync.bind(p))}i.anticipate(this.onLoadDataAsync.bind(this));for(var h=0,u=a;h<u.length;h++){var d=u[h];i.anticipate(d.onLoadDataAsync.bind(d))}i.anticipate(this.onAfterLoadDataAsync.bind(this));for(var f=0,v=a;f<v.length;f++){var g=v[f];i.anticipate(g.onAfterLoadDataAsync.bind(g))}i.wait(function(t){return e.pict.LogNoisiness>2&&e.log.trace("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," loadDataAsync() complete.")),e.lastLoadDataTimestamp=e.fable.log.getTimeStamp(),n(t)})}},{key:"onAfterLoadDataAsync",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterLoadDataAsync:")),t()}},{key:"onBeforeSaveDataAsync",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeSaveDataAsync:")),t()}},{key:"onSaveDataAsync",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onSaveDataAsync:")),t()}},{key:"saveDataAsync",value:function(t){var e=this,i=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate"),n=t;"function"!=typeof n&&(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," saveDataAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),n=function(t){t&&e.log.error("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," saveDataAsync Auto Callback Error: ").concat(t),t)}),i.anticipate(this.onBeforeSaveDataAsync.bind(this));for(var o=Object.keys(this.pict.providers),a=[],s=0;s<o.length;s++){var r=this.pict.providers[o[s]];r.options.AutoSaveDataWithApp&&a.push(r)}a.sort(function(t,e){return t.options.AutoSaveDataOrdinal-e.options.AutoSaveDataOrdinal});for(var c=0,l=a;c<l.length;c++){var p=l[c];i.anticipate(p.onBeforeSaveDataAsync.bind(p))}i.anticipate(this.onSaveDataAsync.bind(this));for(var h=0,u=a;h<u.length;h++){var d=u[h];i.anticipate(d.onSaveDataAsync.bind(d))}i.anticipate(this.onAfterSaveDataAsync.bind(this));for(var f=0,v=a;f<v.length;f++){var g=v[f];i.anticipate(g.onAfterSaveDataAsync.bind(g))}i.wait(function(t){return e.pict.LogNoisiness>2&&e.log.trace("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," saveDataAsync() complete.")),e.lastSaveDataTimestamp=e.fable.log.getTimeStamp(),n(t)})}},{key:"onAfterSaveDataAsync",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterSaveDataAsync:")),t()}},{key:"onBeforeInitialize",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeInitialize:")),!0}},{key:"onBeforeInitializeAsync",value:function(t){return this.onBeforeInitialize(),t()}},{key:"onInitialize",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onInitialize:")),!0}},{key:"onInitializeAsync",value:function(t){return this.onInitialize(),t()}},{key:"initialize",value:function(){if(this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow APPLICATION [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," initialize:")),this.initializeTimestamp)return this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," initialize called but initialization is already completed. Aborting.")),!1;if(this.onBeforeInitialize(),"ConfigurationOnlyViews"in this.options)for(var t=0;t<this.options.ConfigurationOnlyViews.length;t++){var e=void 0===this.options.ConfigurationOnlyViews[t].ViewIdentifier?"AutoView-".concat(this.fable.getUUID()):this.options.ConfigurationOnlyViews[t].ViewIdentifier;this.log.info("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," adding configuration only view: ").concat(e)),this.pict.addView(e,this.options.ConfigurationOnlyViews[t])}this.onInitialize();for(var i=Object.keys(this.pict.providers),n=[],o=0;o<i.length;o++){var a=this.pict.providers[i[o]];a.options.AutoInitialize&&n.push(a)}n.sort(function(t,e){return t.options.AutoInitializeOrdinal-e.options.AutoInitializeOrdinal});for(var s=0;s<n.length;s++)n[s].initialize();for(var r=Object.keys(this.pict.views),c=[],l=0;l<r.length;l++){var p=this.pict.views[r[l]];p.options.AutoInitialize&&c.push(p)}c.sort(function(t,e){return t.options.AutoInitializeOrdinal-e.options.AutoInitializeOrdinal});for(var h=0;h<c.length;h++)c[h].initialize();return this.onAfterInitialize(),this.options.AutoSolveAfterInitialize&&(this.pict.LogNoisiness>1&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," auto solving after initialization...")),this.solve()),this.options.AutoRenderMainViewportViewAfterInitialize&&(this.pict.LogNoisiness>1&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," auto rendering after initialization...")),this.render()),this.initializeTimestamp=this.fable.log.getTimeStamp(),this.onCompletionOfInitialize(),!0}},{key:"initializeAsync",value:function(t){var e=this;this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow APPLICATION [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," initializeAsync:"));var i="function"==typeof t&&t;if(i||(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," initializeAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),i=function(t){t&&e.log.error("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," initializeAsync Auto Callback Error: ").concat(t),t)}),this.initializeTimestamp)return this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," async initialize called but initialization is already completed. Aborting.")),this.onCompletionOfInitializeAsync(i);var n=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate");if(this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," beginning initialization...")),"ConfigurationOnlyViews"in this.options)for(var o=0;o<this.options.ConfigurationOnlyViews.length;o++){var a=void 0===this.options.ConfigurationOnlyViews[o].ViewIdentifier?"AutoView-".concat(this.fable.getUUID()):this.options.ConfigurationOnlyViews[o].ViewIdentifier;this.log.info("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," adding configuration only view: ").concat(a)),this.pict.addView(a,this.options.ConfigurationOnlyViews[o])}n.anticipate(this.onBeforeInitializeAsync.bind(this)),n.anticipate(this.onInitializeAsync.bind(this));for(var s=Object.keys(this.pict.providers),r=[],c=0;c<s.length;c++){var l=this.pict.providers[s[c]];l.options.AutoInitialize&&r.push(l)}r.sort(function(t,e){return t.options.AutoInitializeOrdinal-e.options.AutoInitializeOrdinal});for(var p=0;p<r.length;p++)n.anticipate(r[p].initializeAsync.bind(r[p]));for(var h=Object.keys(this.pict.views),u=[],d=0;d<h.length;d++){var f=this.pict.views[h[d]];f.options.AutoInitialize&&u.push(f)}u.sort(function(t,e){return t.options.AutoInitializeOrdinal-e.options.AutoInitializeOrdinal});for(var v=0;v<u.length;v++){var g=u[v];n.anticipate(g.initializeAsync.bind(g))}n.anticipate(this.onAfterInitializeAsync.bind(this)),this.options.AutoLoginAfterInitialize&&(this.pict.LogNoisiness>1&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," auto login (asynchronously) after initialization...")),n.anticipate(this.loginAsync.bind(this))),this.options.AutoSolveAfterInitialize&&(this.pict.LogNoisiness>1&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," auto solving (asynchronously) after initialization...")),n.anticipate(this.solveAsync.bind(this))),this.options.AutoRenderMainViewportViewAfterInitialize&&(this.pict.LogNoisiness>1&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," auto rendering (asynchronously) after initialization...")),n.anticipate(this.renderMainViewportAsync.bind(this))),n.wait(function(t){return t&&e.log.error("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," initializeAsync Error: ").concat(t.message||t),{stack:t.stack}),e.initializeTimestamp=e.fable.log.getTimeStamp(),e.pict.LogNoisiness>2&&e.log.trace("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," initialization complete.")),i()})}},{key:"onAfterInitialize",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterInitialize:")),!0}},{key:"onAfterInitializeAsync",value:function(t){return this.onAfterInitialize(),t()}},{key:"onCompletionOfInitialize",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onCompletionOfInitialize:")),!0}},{key:"onCompletionOfInitializeAsync",value:function(t){return this.onCompletionOfInitialize(),t()}},{key:"onBeforeMarshalFromViews",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeMarshalFromViews:")),!0}},{key:"onBeforeMarshalFromViewsAsync",value:function(t){return this.onBeforeMarshalFromViews(),t()}},{key:"onMarshalFromViews",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onMarshalFromViews:")),!0}},{key:"onMarshalFromViewsAsync",value:function(t){return this.onMarshalFromViews(),t()}},{key:"marshalFromViews",value:function(){this.pict.LogNoisiness>2&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," executing marshalFromViews() function...")),this.onBeforeMarshalFromViews();for(var t=Object.keys(this.pict.views),e=[],i=0;i<t.length;i++){var n=this.pict.views[t[i]];e.push(n)}for(var o=0;o<e.length;o++)e[o].marshalFromView();return this.onMarshalFromViews(),this.onAfterMarshalFromViews(),this.lastMarshalFromViewsTimestamp=this.fable.log.getTimeStamp(),!0}},{key:"marshalFromViewsAsync",value:function(t){var e=this,i=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate"),n="function"==typeof t&&t;n||(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalFromViewsAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),n=function(t){t&&e.log.error("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," marshalFromViewsAsync Auto Callback Error: ").concat(t),t)}),i.anticipate(this.onBeforeMarshalFromViewsAsync.bind(this));for(var o=Object.keys(this.pict.views),a=[],s=0;s<o.length;s++){var r=this.pict.views[o[s]];a.push(r)}for(var c=0;c<a.length;c++)i.anticipate(a[c].marshalFromViewAsync.bind(a[c]));i.anticipate(this.onMarshalFromViewsAsync.bind(this)),i.anticipate(this.onAfterMarshalFromViewsAsync.bind(this)),i.wait(function(t){return e.pict.LogNoisiness>2&&e.log.trace("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," marshalFromViewsAsync() complete.")),e.lastMarshalFromViewsTimestamp=e.fable.log.getTimeStamp(),n(t)})}},{key:"onAfterMarshalFromViews",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterMarshalFromViews:")),!0}},{key:"onAfterMarshalFromViewsAsync",value:function(t){return this.onAfterMarshalFromViews(),t()}},{key:"onBeforeMarshalToViews",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeMarshalToViews:")),!0}},{key:"onBeforeMarshalToViewsAsync",value:function(t){return this.onBeforeMarshalToViews(),t()}},{key:"onMarshalToViews",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onMarshalToViews:")),!0}},{key:"onMarshalToViewsAsync",value:function(t){return this.onMarshalToViews(),t()}},{key:"marshalToViews",value:function(){this.pict.LogNoisiness>2&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," executing marshalToViews() function...")),this.onBeforeMarshalToViews();for(var t=Object.keys(this.pict.views),e=[],i=0;i<t.length;i++){var n=this.pict.views[t[i]];e.push(n)}for(var o=0;o<e.length;o++)e[o].marshalToView();return this.onMarshalToViews(),this.onAfterMarshalToViews(),this.lastMarshalToViewsTimestamp=this.fable.log.getTimeStamp(),!0}},{key:"marshalToViewsAsync",value:function(t){var e=this,i=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate"),n="function"==typeof t&&t;n||(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalToViewsAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),n=function(t){t&&e.log.error("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," marshalToViewsAsync Auto Callback Error: ").concat(t),t)}),i.anticipate(this.onBeforeMarshalToViewsAsync.bind(this));for(var o=Object.keys(this.pict.views),a=[],s=0;s<o.length;s++){var r=this.pict.views[o[s]];a.push(r)}for(var c=0;c<a.length;c++)i.anticipate(a[c].marshalToViewAsync.bind(a[c]));i.anticipate(this.onMarshalToViewsAsync.bind(this)),i.anticipate(this.onAfterMarshalToViewsAsync.bind(this)),i.wait(function(t){return e.pict.LogNoisiness>2&&e.log.trace("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," marshalToViewsAsync() complete.")),e.lastMarshalToViewsTimestamp=e.fable.log.getTimeStamp(),n(t)})}},{key:"onAfterMarshalToViews",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterMarshalToViews:")),!0}},{key:"onAfterMarshalToViewsAsync",value:function(t){return this.onAfterMarshalToViews(),t()}},{key:"onBeforeRender",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onBeforeRender:")),!0}},{key:"onBeforeRenderAsync",value:function(t){return this.onBeforeRender(),t()}},{key:"render",value:function(t,e,i,n){var o="string"!=typeof t?this.options.MainViewportViewIdentifier:t,a="string"!=typeof e?this.options.MainViewportRenderableHash:e,s="string"!=typeof i?this.options.MainViewportDestinationAddress:i,r="string"!=typeof n?this.options.MainViewportDefaultDataAddress:n;this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow APPLICATION [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," VIEW Renderable[").concat(a,"] Destination[").concat(s,"] TemplateDataAddress[").concat(r,"] render:")),this.onBeforeRender();var c="string"==typeof o&&this.servicesMap.PictView[o];return c?(this.onRender(),c.render(a,s,r),this.onAfterRender(),!0):(this.log.error("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," could not render from View ").concat(o," because it is not a valid view.")),!1)}},{key:"onRender",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onRender:")),!0}},{key:"onRenderAsync",value:function(t){return this.onRender(),t()}},{key:"renderAsync",value:function(t,e,i,n,o){var a=this,s="string"!=typeof t?this.options.MainViewportViewIdentifier:t,r="string"!=typeof e?this.options.MainViewportRenderableHash:e,c="string"!=typeof i?this.options.MainViewportDestinationAddress:i,l="string"!=typeof n?this.options.MainViewportDefaultDataAddress:n,p="function"==typeof o?o:"function"==typeof n?n:"function"==typeof i?i:"function"==typeof e?e:"function"==typeof t&&t;p||(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),p=function(t){t&&a.log.error("PictApp [".concat(a.UUID,"]::[").concat(a.Hash,"] ").concat(a.options.Name," renderAsync Auto Callback Error: ").concat(t),t)}),this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow APPLICATION [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," VIEW Renderable[").concat(r,"] Destination[").concat(c,"] TemplateDataAddress[").concat(l,"] renderAsync:"));var h=this.fable.newAnticipate();h.anticipate(this.onBeforeRenderAsync.bind(this));var u="string"==typeof s&&this.servicesMap.PictView[s];if(!u){var d="PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," could not asynchronously render from View ").concat(s," because it is not a valid view.");return this.pict.LogNoisiness>3&&this.log.error(d),p(new Error(d))}return h.anticipate(this.onRenderAsync.bind(this)),h.anticipate(function(t){u.renderAsync.call(u,r,c,l,t)}),h.anticipate(this.onAfterRenderAsync.bind(this)),h.wait(p)}},{key:"onAfterRender",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," onAfterRender:")),!0}},{key:"onAfterRenderAsync",value:function(t){return this.onAfterRender(),t()}},{key:"renderMainViewport",value:function(){return this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow APPLICATION [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderMainViewport:")),this.render()}},{key:"renderMainViewportAsync",value:function(t){return this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow APPLICATION [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderMainViewportAsync:")),this.renderAsync(t)}},{key:"renderAutoViews",value:function(){var t=this;this.pict.LogNoisiness>0&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," beginning renderAutoViews..."));var e=Object.keys(this.pict.views);e.sort(function(e,i){return t.pict.views[e].options.AutoRenderOrdinal-t.pict.views[i].options.AutoRenderOrdinal});for(var i=0;i<e.length;i++){var n=this.pict.views[e[i]];n.options.AutoRender&&n.render()}this.pict.LogNoisiness>0&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderAutoViewsAsync complete."))}},{key:"renderAutoViewsAsync",value:function(t){var e=this,i=this.fable.instantiateServiceProviderWithoutRegistration("Anticipate"),n="function"==typeof t&&t;n||(this.log.warn("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderAutoViewsAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),n=function(t){t&&e.log.error("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," renderAutoViewsAsync Auto Callback Error: ").concat(t),t)}),this.pict.LogNoisiness>0&&this.log.trace("PictApp [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," beginning renderAutoViewsAsync..."));var o=Object.keys(this.pict.views);o.sort(function(t,i){return e.pict.views[t].options.AutoRenderOrdinal-e.pict.views[i].options.AutoRenderOrdinal});for(var a=0;a<o.length;a++){var s=this.pict.views[o[a]];s.options.AutoRender&&i.anticipate(s.renderAsync.bind(s))}i.wait(function(t){return e.lastAutoRenderTimestamp=e.fable.log.getTimeStamp(),e.pict.LogNoisiness>0&&e.log.trace("PictApp [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," renderAutoViewsAsync complete.")),n(t)})}},{key:"isPictApplication",get:function(){return!0}}])}(n);e.exports=s},{"../package.json":3,"fable-serviceproviderbase":2}],5:[function(t,e,i){e.exports={name:"pict-provider",version:"1.0.7",description:"Pict Provider Base Class",main:"source/Pict-Provider.js",scripts:{start:"node source/Pict-Provider.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-provider-image:local","docker-dev-run":'docker run -it -d --name pict-provider-dev -p 24125:8080 -p 30027:8086 -v "$PWD/.config:/home/coder/.config" -v "$PWD:/home/coder/pict-provider" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" pict-provider-image:local',"docker-dev-shell":"docker exec -it pict-provider-dev /bin/bash",lint:"eslint source/**",types:"tsc -p ."},types:"types/source/Pict-Provider.d.ts",repository:{type:"git",url:"git+https://github.com/stevenvelozo/pict-provider.git"},author:"steven velozo <steven@velozo.com>",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/pict-provider/issues"},homepage:"https://github.com/stevenvelozo/pict-provider#readme",devDependencies:{"@eslint/js":"^9.39.1",eslint:"^9.39.1",pict:"^1.0.342",quackage:"^1.0.45",typescript:"^5.9.3"},dependencies:{"fable-serviceproviderbase":"^3.0.15"},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]}}},{}],6:[function(t,e,i){var n=t("fable-serviceproviderbase"),o=t("../package.json"),a={ProviderIdentifier:!1,AutoInitialize:!0,AutoInitializeOrdinal:0,AutoLoadDataWithApp:!0,AutoSolveWithApp:!0,AutoSolveOrdinal:0,Manifests:{},Templates:[]},s=function(t){function e(t,i,n){var s;_classCallCheck(this,e),(s=_callSuper(this,e,[t,Object.assign({},JSON.parse(JSON.stringify(a)),i),n])).fable,s.pict,s.log,s.options,s.UUID,s.Hash,s.options.ProviderIdentifier||(s.options.ProviderIdentifier="AutoProviderID-".concat(s.fable.getUUID())),s.serviceType="PictProvider",s._Package=o,s.pict=s.fable,s.AppData=s.pict.AppData,s.Bundle=s.pict.Bundle,s.initializeTimestamp=!1,s.lastSolvedTimestamp=!1;for(var r=0;r<s.options.Templates.length;r++){var c=s.options.Templates[r];c.hasOwnProperty("Postfix")&&c.hasOwnProperty("Template")?(c.Source||(c.Source="PictProvider [".concat(s.UUID,"]::[").concat(s.Hash,"] ").concat(s.options.ProviderIdentifier," options object.")),s.pict.TemplateProvider.addDefaultTemplate(c.Prefix,c.Postfix,c.Template,c.Source)):s.log.error("PictProvider [".concat(s.UUID,"]::[").concat(s.Hash,"] ").concat(s.options.ProviderIdentifier," could not load Default Template ").concat(r," in the options array."),c)}return s}return _inherits(e,t),_createClass(e,[{key:"onBeforeInitialize",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onBeforeInitialize:")),!0}},{key:"onBeforeInitializeAsync",value:function(t){return this.onBeforeInitialize(),t()}},{key:"onInitialize",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onInitialize:")),!0}},{key:"onInitializeAsync",value:function(t){return this.onInitialize(),t()}},{key:"initialize",value:function(){return this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow PROVIDER [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," initialize:")),this.initializeTimestamp?(this.log.warn("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," initialize called but initialization is already completed. Aborting.")),!1):(this.onBeforeInitialize(),this.onInitialize(),this.onAfterInitialize(),this.initializeTimestamp=this.pict.log.getTimeStamp(),!0)}},{key:"initializeAsync",value:function(t){var e=this;if(this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow PROVIDER [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," initializeAsync:")),this.initializeTimestamp)return this.log.warn("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," async initialize called but initialization is already completed. Aborting.")),t();var i=this.pict.instantiateServiceProviderWithoutRegistration("Anticipate");this.pict.LogNoisiness>0&&this.log.info("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," beginning initialization...")),i.anticipate(this.onBeforeInitializeAsync.bind(this)),i.anticipate(this.onInitializeAsync.bind(this)),i.anticipate(this.onAfterInitializeAsync.bind(this)),i.wait(function(i){return e.initializeTimestamp=e.pict.log.getTimeStamp(),i?e.log.error("PictProvider [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.ProviderIdentifier," initialization failed: ").concat(i.message||i),{Stack:i.stack}):e.pict.LogNoisiness>0&&e.log.info("PictProvider [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.ProviderIdentifier," initialization complete.")),t()})}},{key:"onAfterInitialize",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onAfterInitialize:")),!0}},{key:"onAfterInitializeAsync",value:function(t){return this.onAfterInitialize(),t()}},{key:"onPreRender",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onPreRender:")),!0}},{key:"onPreRenderAsync",value:function(t){return this.onPreRender(),t()}},{key:"render",value:function(){return this.onPreRender()}},{key:"renderAsync",value:function(t){return this.onPreRender(),t()}},{key:"onPreSolve",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onPreSolve:")),!0}},{key:"onPreSolveAsync",value:function(t){return this.onPreSolve(),t()}},{key:"solve",value:function(){return this.onPreSolve()}},{key:"solveAsync",value:function(t){return this.onPreSolve(),t()}},{key:"onBeforeLoadDataAsync",value:function(t){return t()}},{key:"onLoadDataAsync",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onLoadDataAsync:")),t()}},{key:"onAfterLoadDataAsync",value:function(t){return t()}},{key:"onBeforeSaveDataAsync",value:function(t){return t()}},{key:"onSaveDataAsync",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictProvider [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ProviderIdentifier," onSaveDataAsync:")),t()}},{key:"onAfterSaveDataAsync",value:function(t){return t()}}])}(n);e.exports=s},{"../package.json":5,"fable-serviceproviderbase":2}],7:[function(t,e,i){e.exports={name:"pict-view",version:"1.0.64",description:"Pict View Base Class",main:"source/Pict-View.js",scripts:{test:"mocha -u tdd -R spec",tests:"mocha -u tdd -R spec -g",start:"node source/Pict-View.js",coverage:"nyc --reporter=lcov --reporter=text-lcov npm test",build:"npx quack build","docker-dev-build":"docker build ./ -f Dockerfile_LUXURYCode -t pict-view-image:local","docker-dev-run":'docker run -it -d --name pict-view-dev -p 30001:8080 -p 38086:8086 -v "$PWD/.config:/home/coder/.config" -v "$PWD:/home/coder/pict-view" -u "$(id -u):$(id -g)" -e "DOCKER_USER=$USER" pict-view-image:local',"docker-dev-shell":"docker exec -it pict-view-dev /bin/bash",types:"tsc -p .",lint:"eslint source/**"},types:"types/source/Pict-View.d.ts",repository:{type:"git",url:"git+https://github.com/stevenvelozo/pict-view.git"},author:"steven velozo <steven@velozo.com>",license:"MIT",bugs:{url:"https://github.com/stevenvelozo/pict-view/issues"},homepage:"https://github.com/stevenvelozo/pict-view#readme",devDependencies:{"@eslint/js":"^9.39.1","browser-env":"^3.3.0",eslint:"^9.39.1",pict:"^1.0.337",quackage:"^1.0.45",typescript:"^5.9.3"},mocha:{diff:!0,extension:["js"],package:"./package.json",reporter:"spec",slow:"75",timeout:"5000",ui:"tdd","watch-files":["source/**/*.js","test/**/*.js"],"watch-ignore":["lib/vendor"]},dependencies:{fable:"^3.1.46","fable-serviceproviderbase":"^3.0.15"}}},{}],8:[function(t,e,i){var n=t("fable-serviceproviderbase"),o=t("../package.json"),a={DefaultRenderable:!1,DefaultDestinationAddress:!1,DefaultTemplateRecordAddress:!1,ViewIdentifier:!1,AutoInitialize:!0,AutoInitializeOrdinal:0,AutoRender:!0,AutoRenderOrdinal:0,AutoSolveWithApp:!0,AutoSolveOrdinal:0,CSSHash:!1,CSS:!1,CSSProvider:!1,CSSPriority:500,Templates:[],DefaultTemplates:[],Renderables:[],Manifests:{}},s=function(t){function e(t,i,n){var s;_classCallCheck(this,e),(s=_callSuper(this,e,[t,Object.assign({},JSON.parse(JSON.stringify(a)),i),n])).fable,s.options,s.UUID,s.Hash,s.log;var r=s.Hash===s.UUID;s.UUID="V-".concat(s.UUID),r&&(s.Hash=s.UUID),s.options.ViewIdentifier||(s.options.ViewIdentifier="AutoViewID-".concat(s.fable.getUUID())),s.serviceType="PictView",s._Package=o,s.pict=s.fable,s.AppData=s.pict.AppData,s.Bundle=s.pict.Bundle,s.initializeTimestamp=!1,s.lastSolvedTimestamp=!1,s.lastRenderedTimestamp=!1,s.lastMarshalFromViewTimestamp=!1,s.lastMarshalToViewTimestamp=!1,s.pict.instantiateServiceProviderIfNotExists("TransactionTracking");for(var c=0;c<s.options.Templates.length;c++){var l=s.options.Templates[c];"Hash"in l&&"Template"in l?(l.Source||(l.Source="PictView [".concat(s.UUID,"]::[").concat(s.Hash,"] ").concat(s.options.ViewIdentifier," options object.")),s.pict.TemplateProvider.addTemplate(l.Hash,l.Template,l.Source)):s.log.error("PictView [".concat(s.UUID,"]::[").concat(s.Hash,"] ").concat(s.options.ViewIdentifier," could not load Template ").concat(c," in the options array."),l)}for(var p=0;p<s.options.DefaultTemplates.length;p++){var h=s.options.DefaultTemplates[p];"Postfix"in h&&"Template"in h?(h.Source||(h.Source="PictView [".concat(s.UUID,"]::[").concat(s.Hash,"] ").concat(s.options.ViewIdentifier," options object.")),s.pict.TemplateProvider.addDefaultTemplate(h.Prefix,h.Postfix,h.Template,h.Source)):s.log.error("PictView [".concat(s.UUID,"]::[").concat(s.Hash,"] ").concat(s.options.ViewIdentifier," could not load Default Template ").concat(p," in the options array."),h)}if(s.options.CSS){var u=s.options.CSSHash?s.options.CSSHash:"View-".concat(s.options.ViewIdentifier),d=s.options.CSSProvider?s.options.CSSProvider:u;s.pict.CSSMap.addCSS(u,s.options.CSS,d,s.options.CSSPriority)}s.renderables={};for(var f=0;f<s.options.Renderables.length;f++){var v=s.options.Renderables[f];s.addRenderable(v)}return s}return _inherits(e,t),_createClass(e,[{key:"addRenderable",value:function(t,e,i,n,o){var a;"object"==_typeof(t)?a=t:a={RenderableHash:t,TemplateHash:e,DefaultTemplateRecordAddress:i,ContentDestinationAddress:n,RenderMethod:"string"!=typeof o?o:"replace"};"string"!=typeof a.RenderableHash||"string"!=typeof a.TemplateHash?this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not load Renderable; RenderableHash or TemplateHash are invalid."),a):(this.pict.LogNoisiness>0&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," adding renderable [").concat(a.RenderableHash,"] pointed to template ").concat(a.TemplateHash,".")),this.renderables[a.RenderableHash]=a)}},{key:"onBeforeInitialize",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onBeforeInitialize:")),!0}},{key:"onBeforeInitializeAsync",value:function(t){return this.onBeforeInitialize(),t()}},{key:"onInitialize",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onInitialize:")),!0}},{key:"onInitializeAsync",value:function(t){return this.onInitialize(),t()}},{key:"initialize",value:function(){return this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow VIEW [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," initialize:")),this.initializeTimestamp?(this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," initialize called but initialization is already completed. Aborting.")),!1):(this.onBeforeInitialize(),this.onInitialize(),this.onAfterInitialize(),this.initializeTimestamp=this.pict.log.getTimeStamp(),!0)}},{key:"initializeAsync",value:function(t){var e=this;if(this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow VIEW [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," initializeAsync:")),this.initializeTimestamp)return this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," async initialize called but initialization is already completed. Aborting.")),t();var i=this.pict.instantiateServiceProviderWithoutRegistration("Anticipate");this.pict.LogNoisiness>0&&this.log.info("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," beginning initialization...")),i.anticipate(this.onBeforeInitializeAsync.bind(this)),i.anticipate(this.onInitializeAsync.bind(this)),i.anticipate(this.onAfterInitializeAsync.bind(this)),i.wait(function(i){return i&&e.log.error("PictView [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.ViewIdentifier," initialization failed: ").concat(i.message||i),{stack:i.stack}),e.initializeTimestamp=e.pict.log.getTimeStamp(),e.pict.LogNoisiness>0&&e.log.info("PictView [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.ViewIdentifier," initialization complete.")),t()})}},{key:"onAfterInitialize",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterInitialize:")),!0}},{key:"onAfterInitializeAsync",value:function(t){return this.onAfterInitialize(),t()}},{key:"onBeforeRender",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onBeforeRender:")),!0}},{key:"onBeforeRenderAsync",value:function(t,e){return this.onBeforeRender(e),t()}},{key:"onBeforeProject",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onBeforeProject:")),!0}},{key:"onBeforeProjectAsync",value:function(t,e){return this.onBeforeProject(e),t()}},{key:"buildRenderOptions",value:function(t,e,i){var n={Valid:!0};return n.RenderableHash="string"==typeof t?t:"string"==typeof this.options.DefaultRenderable&&this.options.DefaultRenderable,n.RenderableHash||(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not find a suitable RenderableHash ").concat(n.RenderableHash," (param ").concat(t,"because it is not a valid renderable.")),n.Valid=!1),n.Renderable=this.renderables[n.RenderableHash],n.Renderable||(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(n.RenderableHash," (param ").concat(t,") because it does not exist.")),n.Valid=!1),n.DestinationAddress="string"==typeof e?e:"string"==typeof n.Renderable.ContentDestinationAddress?n.Renderable.ContentDestinationAddress:"string"==typeof this.options.DefaultDestinationAddress&&this.options.DefaultDestinationAddress,n.DestinationAddress||(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(n.RenderableHash," (param ").concat(t,") because it does not have a valid destination address (param ").concat(e,").")),n.Valid=!1),"object"===_typeof(i)?(n.RecordAddress="Passed in as object",n.Record=i):(n.RecordAddress="string"==typeof i?i:"string"==typeof n.Renderable.DefaultTemplateRecordAddress?n.Renderable.DefaultTemplateRecordAddress:"string"==typeof this.options.DefaultTemplateRecordAddress&&this.options.DefaultTemplateRecordAddress,n.Record="string"==typeof n.RecordAddress?this.pict.DataProvider.getDataByAddress(n.RecordAddress):void 0),n}},{key:"assignRenderContent",value:function(t,e,i){return this.pict.ContentAssignment.projectContent(t.RenderMethod,e,i,t.TestAddress)}},{key:"render",value:function(t,e,i,n){return this.renderWithScope(this,t,e,i,n)}},{key:"renderWithScope",value:function(t,e,i,n,o){var a,s,r,c="string"==typeof e?e:"string"==typeof this.options.DefaultRenderable&&this.options.DefaultRenderable;return c?("__Virtual"==c?a={RenderableHash:"__Virtual",TemplateHash:this.renderables[this.options.DefaultRenderable].TemplateHash,ContentDestinationAddress:"string"==typeof i?i:"string"==typeof a.ContentDestinationAddress?a.ContentDestinationAddress:"string"==typeof this.options.DefaultDestinationAddress?this.options.DefaultDestinationAddress:null,RenderMethod:"virtual-assignment",TransactionHash:o&&o.TransactionHash,RootRenderableViewHash:o&&o.RootRenderableViewHash}:(a=Object.assign({},this.renderables[c])).ContentDestinationAddress="string"==typeof i?i:"string"==typeof a.ContentDestinationAddress?a.ContentDestinationAddress:"string"==typeof this.options.DefaultDestinationAddress?this.options.DefaultDestinationAddress:null,a.TransactionHash||(a.TransactionHash="ViewRender-V-".concat(this.options.ViewIdentifier,"-R-").concat(c,"-U-").concat(this.pict.getUUID()),a.RootRenderableViewHash=this.Hash,this.pict.TransactionTracking.registerTransaction(a.TransactionHash)),a?a.ContentDestinationAddress?("object"===_typeof(n)?(r=n,s="Passed in as object"):r="string"==typeof(s="string"==typeof n?n:"string"==typeof a.DefaultTemplateRecordAddress?a.DefaultTemplateRecordAddress:"string"==typeof this.options.DefaultTemplateRecordAddress&&this.options.DefaultTemplateRecordAddress)?this.pict.DataProvider.getDataByAddress(s):void 0,this.onBeforeRender(a),this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow VIEW [".concat(this.UUID,"]::[").concat(this.Hash,"] Renderable[").concat(c,"] Destination[").concat(a.ContentDestinationAddress,"] TemplateRecordAddress[").concat(s,"] render:")),this.pict.LogNoisiness>0&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," Beginning Render of Renderable[").concat(c,"] to Destination [").concat(a.ContentDestinationAddress,"]...")),a.Content=this.pict.parseTemplateByHash(a.TemplateHash,r,null,[this],t,{RootRenderable:"object"===_typeof(o)?o:a}),this.pict.LogNoisiness>0&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," Assigning Renderable[").concat(c,"] content length ").concat(a.Content.length," to Destination [").concat(a.ContentDestinationAddress,"] using render method [").concat(a.RenderMethod,"].")),this.onBeforeProject(a),this.onProject(a),"virtual-assignment"!==a.RenderMethod&&(this.onAfterProject(a),this.onAfterRender(a)),!0):(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(c," (param ").concat(e,") because it does not have a valid destination address.")),!1):(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(c," (param ").concat(e,") because it does not exist.")),!1)):(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(c," (param ").concat(e,") because it is not a valid renderable.")),!1)}},{key:"renderAsync",value:function(t,e,i,n,o){return this.renderWithScopeAsync(this,t,e,i,n,o)}},{key:"renderWithScopeAsync",value:function(t,e,i,n,o,a){var s,r,c,l=this,p="string"==typeof e?e:"string"==typeof this.options.DefaultRenderable&&this.options.DefaultRenderable,h="function"==typeof a?a:"function"==typeof n?n:"function"==typeof i?i:"function"==typeof e?e:"function"==typeof o?o:null;if(h||(this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," renderAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),h=function(t){t&&l.log.error("PictView [".concat(l.UUID,"]::[").concat(l.Hash,"] ").concat(l.options.Name," renderAsync Auto Callback Error: ").concat(t),t)}),!p)return this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not asynchronously render ").concat(p," (param ").concat(e,"because it is not a valid renderable.")),h(new Error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not asynchronously render ").concat(p," (param ").concat(e,"because it is not a valid renderable.")));if("__Virtual"==p?s={RenderableHash:"__Virtual",TemplateHash:this.renderables[this.options.DefaultRenderable].TemplateHash,ContentDestinationAddress:"string"==typeof i?i:"string"==typeof this.options.DefaultDestinationAddress?this.options.DefaultDestinationAddress:null,RenderMethod:"virtual-assignment",TransactionHash:o&&"function"!=typeof o&&o.TransactionHash,RootRenderableViewHash:o&&"function"!=typeof o&&o.RootRenderableViewHash}:(s=Object.assign({},this.renderables[p])).ContentDestinationAddress="string"==typeof i?i:"string"==typeof s.ContentDestinationAddress?s.ContentDestinationAddress:"string"==typeof this.options.DefaultDestinationAddress?this.options.DefaultDestinationAddress:null,s.TransactionHash||(s.TransactionHash="ViewRender-V-".concat(this.options.ViewIdentifier,"-R-").concat(p,"-U-").concat(this.pict.getUUID()),s.RootRenderableViewHash=this.Hash,this.pict.TransactionTracking.registerTransaction(s.TransactionHash)),!s)return this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(p," (param ").concat(e,") because it does not exist.")),h(new Error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(p," (param ").concat(e,") because it does not exist.")));if(!s.ContentDestinationAddress)return this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not render ").concat(p," (param ").concat(e,") because it does not have a valid destination address.")),h(new Error("Could not render ".concat(p)));"object"===_typeof(n)?(c=n,r="Passed in as object"):(r="string"==typeof n?n:"string"==typeof s.DefaultTemplateRecordAddress?s.DefaultTemplateRecordAddress:"string"==typeof this.options.DefaultTemplateRecordAddress&&this.options.DefaultTemplateRecordAddress,c="string"==typeof r?this.pict.DataProvider.getDataByAddress(r):void 0),this.pict.LogControlFlow&&this.log.trace("PICT-ControlFlow VIEW [".concat(this.UUID,"]::[").concat(this.Hash,"] Renderable[").concat(p,"] Destination[").concat(s.ContentDestinationAddress,"] TemplateRecordAddress[").concat(r,"] renderAsync:")),this.pict.LogNoisiness>2&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," Beginning Asynchronous Render (callback-style)..."));var u=this.fable.newAnticipate();u.anticipate(function(t){l.onBeforeRenderAsync(t,s)}),u.anticipate(function(i){l.pict.parseTemplateByHash(s.TemplateHash,c,function(t,n){return t?(l.log.error("PictView [".concat(l.UUID,"]::[").concat(l.Hash,"] ").concat(l.options.ViewIdentifier," could not render (asynchronously) ").concat(p," (param ").concat(e,") because it did not parse the template."),t),i(t)):(s.Content=n,i())},[l],t,{RootRenderable:"object"===_typeof(o)?o:s})}),u.anticipate(function(t){l.onBeforeProjectAsync(t,s)}),u.anticipate(function(t){l.onProjectAsync(t,s)}),"virtual-assignment"!==s.RenderMethod&&(u.anticipate(function(t){l.onAfterProjectAsync(t,s)}),u.anticipate(function(t){l.onAfterRenderAsync(t,s)})),u.wait(h)}},{key:"renderDefaultAsync",value:function(t){this.renderAsync(t)}},{key:"basicRender",value:function(t,e,i){return this.basicRenderWithScope(this,t,e,i)}},{key:"basicRenderWithScope",value:function(t,e,i,n){var o=this.buildRenderOptions(e,i,n);return o.Valid?(this.assignRenderContent(o.Renderable,o.DestinationAddress,this.pict.parseTemplateByHash(o.Renderable.TemplateHash,o.Record,null,[this],t,{RootRenderable:o.Renderable})),!0):(this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not perform a basic render of ").concat(o.RenderableHash," because it is not valid.")),!1)}},{key:"basicRenderAsync",value:function(t,e,i,n){return this.basicRenderWithScopeAsync(this,t,e,i,n)}},{key:"basicRenderWithScopeAsync",value:function(t,e,i,n,o){var a=this,s="function"==typeof o?o:"function"==typeof n?n:"function"==typeof i?i:"function"==typeof e?e:null;s||(this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," basicRenderAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),s=function(t){t&&a.log.error("PictView [".concat(a.UUID,"]::[").concat(a.Hash,"] ").concat(a.options.Name," basicRenderAsync Auto Callback Error: ").concat(t),t)});var r=this.buildRenderOptions(e,i,n);if(!r.Valid){var c="PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," could not perform a basic render of ").concat(r.RenderableHash," because it is not valid.");return this.log.error(c),s(new Error(c))}this.pict.parseTemplateByHash(r.Renderable.TemplateHash,r.Record,function(t,e){return t?(a.log.error("PictView [".concat(a.UUID,"]::[").concat(a.Hash,"] ").concat(a.options.ViewIdentifier," could not render (asynchronously) ").concat(r.RenderableHash," because it did not parse the template."),t),s(t)):(a.assignRenderContent(r.Renderable,r.DestinationAddress,e),s())},[this],t,{RootRenderable:r.Renderable})}},{key:"onProject",value:function(t){this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onProject:")),"virtual-assignment"===t.RenderMethod&&this.pict.TransactionTracking.pushToTransactionQueue(t.TransactionHash,{ViewHash:this.Hash,Renderable:t},"Deferred-Post-Content-Assignment"),this.pict.LogNoisiness>0&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," Assigning Renderable[").concat(t.RenderableHash,"] content length ").concat(t.Content.length," to Destination [").concat(t.ContentDestinationAddress,"] using Async render method ").concat(t.RenderMethod,".")),this.pict.ContentAssignment.projectContent(t.RenderMethod,t.ContentDestinationAddress,t.Content,t.TestAddress),this.lastRenderedTimestamp=this.pict.log.getTimeStamp()}},{key:"onProjectAsync",value:function(t,e){return this.onProject(e),t()}},{key:"onAfterRender",value:function(t){if(this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterRender:")),t&&t.RootRenderableViewHash===this.Hash){var e,i=_createForOfIteratorHelper(this.pict.TransactionTracking.clearTransactionQueue(t.TransactionHash)||[]);try{for(i.s();!(e=i.n()).done;){var n=e.value,o=this.pict.views[n.Data.ViewHash];o?(o.onAfterProject(),o.onAfterRender(n.Data.Renderable)):this.log.error("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterRender: Could not find view for transaction hash ").concat(t.TransactionHash," and ViewHash ").concat(n.Data.ViewHash,"."))}}catch(t){i.e(t)}finally{i.f()}}return!0}},{key:"onAfterRenderAsync",value:function(t,e){var i=this;this.onAfterRender(e);var n=this.fable.newAnticipate();if(e&&e.RootRenderableViewHash===this.Hash){var o,a=_createForOfIteratorHelper(this.pict.TransactionTracking.clearTransactionQueue(e.TransactionHash)||[]);try{var s=function(){var t=o.value,a=i.pict.views[t.Data.ViewHash];if(!a)return i.log.error("PictView [".concat(i.UUID,"]::[").concat(i.Hash,"] ").concat(i.options.ViewIdentifier," onAfterRenderAsync: Could not find view for transaction hash ").concat(e.TransactionHash," and ViewHash ").concat(t.Data.ViewHash,".")),1;n.anticipate(a.onAfterProjectAsync.bind(a)),n.anticipate(function(e){a.onAfterRenderAsync(e,t.Data.Renderable)})};for(a.s();!(o=a.n()).done;)s()}catch(t){a.e(t)}finally{a.f()}}return n.wait(t)}},{key:"onAfterProject",value:function(t){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterProject:")),!0}},{key:"onAfterProjectAsync",value:function(t,e){return t()}},{key:"onBeforeSolve",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onBeforeSolve:")),!0}},{key:"onBeforeSolveAsync",value:function(t){return this.onBeforeSolve(),t()}},{key:"onSolve",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onSolve:")),!0}},{key:"onSolveAsync",value:function(t){return this.onSolve(),t()}},{key:"solve",value:function(){return this.pict.LogNoisiness>2&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," executing solve() function...")),this.onBeforeSolve(),this.onSolve(),this.onAfterSolve(),this.lastSolvedTimestamp=this.pict.log.getTimeStamp(),!0}},{key:"solveAsync",value:function(t){var e=this,i=this.pict.instantiateServiceProviderWithoutRegistration("Anticipate"),n="function"==typeof t?t:null;n||(this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," solveAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),n=function(t){t&&e.log.error("PictView [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," solveAsync Auto Callback Error: ").concat(t),t)}),i.anticipate(this.onBeforeSolveAsync.bind(this)),i.anticipate(this.onSolveAsync.bind(this)),i.anticipate(this.onAfterSolveAsync.bind(this)),i.wait(function(t){return e.pict.LogNoisiness>2&&e.log.trace("PictView [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.ViewIdentifier," solveAsync() complete.")),e.lastSolvedTimestamp=e.pict.log.getTimeStamp(),n(t)})}},{key:"onAfterSolve",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterSolve:")),!0}},{key:"onAfterSolveAsync",value:function(t){return this.onAfterSolve(),t()}},{key:"onBeforeMarshalFromView",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onBeforeMarshalFromView:")),!0}},{key:"onBeforeMarshalFromViewAsync",value:function(t){return this.onBeforeMarshalFromView(),t()}},{key:"onMarshalFromView",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onMarshalFromView:")),!0}},{key:"onMarshalFromViewAsync",value:function(t){return this.onMarshalFromView(),t()}},{key:"marshalFromView",value:function(){return this.pict.LogNoisiness>2&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," executing solve() function...")),this.onBeforeMarshalFromView(),this.onMarshalFromView(),this.onAfterMarshalFromView(),this.lastMarshalFromViewTimestamp=this.pict.log.getTimeStamp(),!0}},{key:"marshalFromViewAsync",value:function(t){var e=this,i=this.pict.instantiateServiceProviderWithoutRegistration("Anticipate"),n="function"==typeof t?t:null;n||(this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalFromViewAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),n=function(t){t&&e.log.error("PictView [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," marshalFromViewAsync Auto Callback Error: ").concat(t),t)}),i.anticipate(this.onBeforeMarshalFromViewAsync.bind(this)),i.anticipate(this.onMarshalFromViewAsync.bind(this)),i.anticipate(this.onAfterMarshalFromViewAsync.bind(this)),i.wait(function(t){return e.pict.LogNoisiness>2&&e.log.trace("PictView [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.ViewIdentifier," marshalFromViewAsync() complete.")),e.lastMarshalFromViewTimestamp=e.pict.log.getTimeStamp(),n(t)})}},{key:"onAfterMarshalFromView",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterMarshalFromView:")),!0}},{key:"onAfterMarshalFromViewAsync",value:function(t){return this.onAfterMarshalFromView(),t()}},{key:"onBeforeMarshalToView",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onBeforeMarshalToView:")),!0}},{key:"onBeforeMarshalToViewAsync",value:function(t){return this.onBeforeMarshalToView(),t()}},{key:"onMarshalToView",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onMarshalToView:")),!0}},{key:"onMarshalToViewAsync",value:function(t){return this.onMarshalToView(),t()}},{key:"marshalToView",value:function(){return this.pict.LogNoisiness>2&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," executing solve() function...")),this.onBeforeMarshalToView(),this.onMarshalToView(),this.onAfterMarshalToView(),this.lastMarshalToViewTimestamp=this.pict.log.getTimeStamp(),!0}},{key:"marshalToViewAsync",value:function(t){var e=this,i=this.pict.instantiateServiceProviderWithoutRegistration("Anticipate"),n="function"==typeof t?t:null;n||(this.log.warn("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.Name," marshalToViewAsync was called without a valid callback. A callback will be generated but this could lead to race conditions.")),n=function(t){t&&e.log.error("PictView [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.Name," marshalToViewAsync Auto Callback Error: ").concat(t),t)}),i.anticipate(this.onBeforeMarshalToViewAsync.bind(this)),i.anticipate(this.onMarshalToViewAsync.bind(this)),i.anticipate(this.onAfterMarshalToViewAsync.bind(this)),i.wait(function(t){return e.pict.LogNoisiness>2&&e.log.trace("PictView [".concat(e.UUID,"]::[").concat(e.Hash,"] ").concat(e.options.ViewIdentifier," marshalToViewAsync() complete.")),e.lastMarshalToViewTimestamp=e.pict.log.getTimeStamp(),n(t)})}},{key:"onAfterMarshalToView",value:function(){return this.pict.LogNoisiness>3&&this.log.trace("PictView [".concat(this.UUID,"]::[").concat(this.Hash,"] ").concat(this.options.ViewIdentifier," onAfterMarshalToView:")),!0}},{key:"onAfterMarshalToViewAsync",value:function(t){return this.onAfterMarshalToView(),t()}},{key:"isPictView",get:function(){return!0}}])}(n);e.exports=s},{"../package.json":7,"fable-serviceproviderbase":2}],9:[function(t,e,i){e.exports={Name:"Pict Docuserve",Hash:"Docuserve",MainViewportViewIdentifier:"Docuserve-Layout",AutoSolveAfterInitialize:!0,AutoRenderMainViewportViewAfterInitialize:!1,AutoRenderViewsAfterInitialize:!1,pict_configuration:{Product:"Docuserve-Pict-Application"}}},{}],10:[function(t,e,i){var n=t("pict-application"),o=t("./providers/Pict-Provider-Docuserve-Documentation.js"),a=t("./views/PictView-Docuserve-Layout.js"),s=t("./views/PictView-Docuserve-TopBar.js"),r=t("./views/PictView-Docuserve-Sidebar.js"),c=t("./views/PictView-Docuserve-Splash.js"),l=t("./views/PictView-Docuserve-Content.js"),p=function(t){function e(t,i,n){var p;return _classCallCheck(this,e),(p=_callSuper(this,e,[t,i,n])).pict.addProvider("Docuserve-Documentation",o.default_configuration,o),p.pict.addView("Docuserve-Layout",a.default_configuration,a),p.pict.addView("Docuserve-TopBar",s.default_configuration,s),p.pict.addView("Docuserve-Sidebar",r.default_configuration,r),p.pict.addView("Docuserve-Splash",c.default_configuration,c),p.pict.addView("Docuserve-Content",l.default_configuration,l),p}return _inherits(e,t),_createClass(e,[{key:"onAfterInitializeAsync",value:function(t){var i=this;this.pict.AppData.Docuserve={CatalogLoaded:!1,Catalog:null,CoverLoaded:!1,Cover:null,SidebarLoaded:!1,SidebarGroups:[],TopBarLoaded:!1,TopBar:null,ErrorPageLoaded:!1,ErrorPageHTML:null,CurrentGroup:"",CurrentModule:"",CurrentPath:"",SidebarVisible:!0,DocsBaseURL:"",CatalogURL:"retold-catalog.json"},this.pict.providers["Docuserve-Documentation"].loadCatalog(function(){return i.pict.views["Docuserve-Layout"].render(),_superPropGet(e,"onAfterInitializeAsync",i,3)([t])})}},{key:"resolveHash",value:function(){var t=(window.location.hash||"").replace(/^#\/?/,"");if(t&&"Home"!==t){var e=t.split("/");if("page"===e[0]&&e.length>=2){var i=e.slice(1).join("/");this.navigateToPage(i)}else if("doc"===e[0]&&e.length>=3){var n=e[1],o=e[2];if(e.length>=4){var a=e.slice(3).join("/");this.navigateToModulePath(n,o,a)}else this.navigateToModule(n,o)}else this.navigateToPage(t)}else this.showView("Docuserve-Splash")}},{key:"navigateTo",value:function(t){window.location.hash=t}},{key:"showView",value:function(t){t in this.pict.views&&(this.pict.AppData.Docuserve.CurrentGroup="",this.pict.AppData.Docuserve.CurrentModule="",this.pict.AppData.Docuserve.CurrentPath="",this.pict.views[t].render(),this.pict.views["Docuserve-Sidebar"].clearModuleNav(),this.pict.views["Docuserve-Sidebar"].renderSidebarGroups())}},{key:"navigateToModule",value:function(t,e){this.navigateToModulePath(t,e,"README.md")}},{key:"navigateToModulePath",value:function(t,e,i){var n=this.pict.providers["Docuserve-Documentation"],o=this.pict.views["Docuserve-Content"],a=this.pict.views["Docuserve-Sidebar"];this.pict.AppData.Docuserve.CurrentGroup=t,this.pict.AppData.Docuserve.CurrentModule=e,this.pict.AppData.Docuserve.CurrentPath=i,o.render(),o.showLoading(),a.renderSidebarGroups(),a.renderModuleNav(t,e);var s=n.resolveDocumentURL(t,e,i||"README.md");s?n.fetchDocument(s,function(t,e){o.displayContent(e)}):o.displayContent(n.getErrorPageHTML(t+"/"+e))}},{key:"navigateToPage",value:function(t){var e=this.pict.providers["Docuserve-Documentation"],i=this.pict.views["Docuserve-Content"],n=this.pict.views["Docuserve-Sidebar"];this.pict.AppData.Docuserve.CurrentGroup="",this.pict.AppData.Docuserve.CurrentModule="",this.pict.AppData.Docuserve.CurrentPath=t,i.render(),i.showLoading(),n.clearModuleNav(),n.renderSidebarGroups();var o=t;o.match(/\.md$/)||(o+=".md"),e.fetchLocalDocument(o,function(t,e){i.displayContent(e)})}}])}(n);e.exports=p,e.exports.default_configuration=t("./Pict-Application-Docuserve-Configuration.json")},{"./Pict-Application-Docuserve-Configuration.json":9,"./providers/Pict-Provider-Docuserve-Documentation.js":11,"./views/PictView-Docuserve-Content.js":12,"./views/PictView-Docuserve-Layout.js":13,"./views/PictView-Docuserve-Sidebar.js":14,"./views/PictView-Docuserve-Splash.js":15,"./views/PictView-Docuserve-TopBar.js":16,"pict-application":4}],11:[function(t,e,i){var n=function(t){function e(t,i,n){var o;return _classCallCheck(this,e),(o=_callSuper(this,e,[t,i,n]))._Catalog=null,o._ContentCache={},o}return _inherits(e,t),_createClass(e,[{key:"loadCatalog",value:function(t){var e=this,i="function"==typeof t?t:function(){},n=this.pict.AppData.Docuserve.CatalogURL||"retold-catalog.json";fetch(n).then(function(t){return t.ok?t.json():(e.log.warn("Docuserve: Could not load catalog from [".concat(n,"].")),null)}).then(function(t){t&&(e._Catalog=t,e.pict.AppData.Docuserve.Catalog=t,e.pict.AppData.Docuserve.CatalogLoaded=!0,e.buildSidebarData(t));var n=4,o=function(){if(--n<=0)return i()};e.loadCover(o),e.loadSidebar(o),e.loadTopbar(o),e.loadErrorPage(o)}).catch(function(t){return e.log.warn("Docuserve: Error loading catalog: ".concat(t)),i()})}},{key:"loadCover",value:function(t){var e=this,i="function"==typeof t?t:function(){},n=this.pict.AppData.Docuserve.DocsBaseURL||"";fetch(n+"cover.md").then(function(t){return t.ok?t.text():null}).then(function(t){return t?(e.pict.AppData.Docuserve.Cover=e.parseCover(t),e.pict.AppData.Docuserve.CoverLoaded=!0,i()):(e.log.info("Docuserve: No cover.md found; splash will use catalog data."),i())}).catch(function(t){return e.log.warn("Docuserve: Error loading cover.md: ".concat(t)),i()})}},{key:"parseCover",value:function(t){for(var e={Title:"",Tagline:"",Description:"",Highlights:[],Actions:[]},i=t.split("\n"),n=0;n<i.length;n++){var o=i[n].trim();if(o){var a=o.match(/^#+\s+(.+)/);if(a)e.Title=a[1].trim();else{var s=o.match(/^>\s*(.*)/);if(s)e.Tagline=s[1].trim();else{var r=o.match(/^[-*+]\s+(.*)/);if(r){var c=r[1],l=c.match(/^\*\*([^*]+)\*\*\s*[-—:]\s*(.*)/);l?e.Highlights.push({Label:l[1].trim(),Text:l[2].trim()}):e.Highlights.push({Label:"",Text:c.trim()})}else{var p=o.match(/^\[([^\]]+)\]\(([^)]+)\)\s*$/);p?e.Actions.push({Text:p[1].trim(),Href:p[2].trim()}):e.Description?e.Description+=" "+o:e.Description=o}}}}}return e}},{key:"loadSidebar",value:function(t){var e=this,i="function"==typeof t?t:function(){},n=this.pict.AppData.Docuserve.DocsBaseURL||"";fetch(n+"_sidebar.md").then(function(t){return t.ok?t.text():null}).then(function(t){if(!t)return e.log.info("Docuserve: No _sidebar.md found; sidebar will use catalog data."),i();var n=e.parseSidebarMarkdown(t);return n&&n.length>0&&(e.pict.AppData.Docuserve.SidebarGroups=n,e.pict.AppData.Docuserve.SidebarLoaded=!0),i()}).catch(function(t){return e.log.warn("Docuserve: Error loading _sidebar.md: ".concat(t)),i()})}},{key:"loadTopbar",value:function(t){var e=this,i="function"==typeof t?t:function(){},n=this.pict.AppData.Docuserve.DocsBaseURL||"";fetch(n+"_topbar.md").then(function(t){return t.ok?t.text():null}).then(function(t){return t?(e.pict.AppData.Docuserve.TopBar=e.parseTopbar(t),e.pict.AppData.Docuserve.TopBarLoaded=!0,i()):(e.log.info("Docuserve: No _topbar.md found; top bar will use defaults."),i())}).catch(function(t){return e.log.warn("Docuserve: Error loading _topbar.md: ".concat(t)),i()})}},{key:"parseTopbar",value:function(t){for(var e={Brand:"",NavLinks:[],ExternalLinks:[]},i=t.split("\n"),n=0;n<i.length;n++){var o=i[n].trim();if(o){var a=o.match(/^#+\s+(.+)/);if(a)e.Brand=a[1].trim();else{var s=o.match(/^[-*+]\s+(.*)/);if(s){var r=s[1].trim().match(/^\[([^\]]+)\]\(([^)]+)\)/);if(r){var c=r[1].trim(),l=r[2].trim();if(l.match(/^https?:\/\//))e.ExternalLinks.push({Text:c,Href:l});else{var p=this.convertSidebarLink(l);e.NavLinks.push({Text:c,Href:p})}}}else;}}}return e}},{key:"loadErrorPage",value:function(t){var e=this,i="function"==typeof t?t:function(){},n=this.pict.AppData.Docuserve.DocsBaseURL||"";fetch(n+"errorpage.md").then(function(t){return t.ok?t.text():null}).then(function(t){return t?(e.pict.AppData.Docuserve.ErrorPageHTML=e.parseMarkdown(t),e.pict.AppData.Docuserve.ErrorPageLoaded=!0,i()):(e.log.info("Docuserve: No errorpage.md found; errors will use default page."),i())}).catch(function(t){return e.log.warn("Docuserve: Error loading errorpage.md: ".concat(t)),i()})}},{key:"getErrorPageHTML",value:function(t){var e=t||"unknown";return this.pict.AppData.Docuserve.ErrorPageLoaded&&this.pict.AppData.Docuserve.ErrorPageHTML?this.pict.AppData.Docuserve.ErrorPageHTML.replace(/\{\{path\}\}/g,this.escapeHTML(e)):'<div class="docuserve-not-found"><h2>Page Not Found</h2><p>The document <code>'+this.escapeHTML(e)+'</code> could not be loaded.</p><p><a href="#/Home">Return to the home page</a></p></div>'}},{key:"parseSidebarMarkdown",value:function(t){for(var e=[],i=null,n=t.split("\n"),o=0;o<n.length;o++){var a=n[o];if(a.trim()){var s=a.match(/^(\s*)/),r=s?s[1].length:0,c=a.trim().match(/^[-*+]\s+(.*)/);if(c){var l=c[1].trim(),p=l.match(/^\[([^\]]+)\]\(([^)]+)\)/);if(r<2)if(p){var h=p[1].trim(),u=p[2].trim();i={Name:h,Key:this.deriveGroupKey(h,u),Route:this.convertSidebarLink(u),Modules:[]},e.push(i)}else{var d=l,f=d.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");i={Name:d,Key:f,Route:"",Modules:[]},e.push(i)}else if(i)if(p){var v=p[1].trim(),g=p[2].trim(),m=this.convertSidebarLink(g);i.Modules.push({Name:v,HasDocs:!0,Group:i.Key,Route:m})}else i.Modules.push({Name:l,HasDocs:!1,Group:i.Key,Route:""})}}}return e}},{key:"convertSidebarLink",value:function(t){if(!t)return"";if("/"===t)return"#/Home";var e=t.replace(/^\//,"").replace(/\/$/,"");if(!e)return"#/Home";var i=e.split("/");if(i.length>=2){if(["fable","meadow","orator","pict","utility"].indexOf(i[0])>=0)return"#/doc/"+e}return e.match(/\.md$/)?"#/page/"+e.replace(/\.md$/,""):"#/page/"+e}},{key:"deriveGroupKey",value:function(t,e){if(e&&"/"!==e){var i=e.replace(/^\//,"").replace(/\.md$/,"").replace(/\/$/,"");if(i&&!i.includes("/"))return i.toLowerCase()}return t.split(/[\s—\-:]+/)[0].toLowerCase().replace(/[^a-z0-9]/g,"")}},{key:"buildSidebarData",value:function(t){for(var e=[],i=0;i<t.Groups.length;i++){for(var n=t.Groups[i],o={Name:n.Name,Key:n.Key,Description:n.Description,Modules:[]},a=0;a<n.Modules.length;a++){var s=n.Modules[a];o.Modules.push({Name:s.Name,HasDocs:s.HasDocs,Group:n.Key,Route:"#/doc/"+n.Key+"/"+s.Name})}e.push(o)}this.pict.AppData.Docuserve.SidebarGroups=e}},{key:"resolveDocumentURL",value:function(t,e,i){if(!this._Catalog)return null;for(var n=this._Catalog.GitHubOrg||"stevenvelozo",o=this._Catalog.DefaultBranch||"master",a=0;a<this._Catalog.Groups.length;a++){var s=this._Catalog.Groups[a];if(s.Key===t)for(var r=0;r<s.Modules.length;r++){var c=s.Modules[r];if(c.Name===e){var l=c.Branch||o,p=i||"README.md";return"https://raw.githubusercontent.com/"+n+"/"+c.Repo+"/"+l+"/docs/"+p}}}return null}},{key:"getModuleSidebar",value:function(t,e){if(!this._Catalog)return null;for(var i=0;i<this._Catalog.Groups.length;i++){var n=this._Catalog.Groups[i];if(n.Key===t)for(var o=0;o<n.Modules.length;o++){var a=n.Modules[o];if(a.Name===e)return a.Sidebar||null}}return null}},{key:"fetchDocument",value:function(t,e){var i=this,n="function"==typeof e?e:function(){};return t?this._ContentCache[t]?n(null,this._ContentCache[t]):void fetch(t).then(function(t){return t.ok?t.text():null}).then(function(e){if(!e)return n("Document not found",i.getErrorPageHTML(t));var o=i.parseMarkdown(e);return i._ContentCache[t]=o,n(null,o)}).catch(function(e){return i.log.warn("Docuserve: Error fetching document [".concat(t,"]: ").concat(e)),n(e,i.getErrorPageHTML(t))}):n("No URL provided","")}},{key:"fetchLocalDocument",value:function(t,e){var i=(this.pict.AppData.Docuserve.DocsBaseURL||"")+t;this.fetchDocument(i,e)}},{key:"parseMarkdown",value:function(t){if(!t)return"";for(var e=t.split("\n"),i=[],n=!1,o="",a=[],s=!1,r="",c=!1,l=[],p=0;p<e.length;p++){var h=e[p];if(h.match(/^```/))n?(i.push('<pre><code class="language-'+this.escapeHTML(o)+'">'+this.escapeHTML(a.join("\n"))+"</code></pre>"),n=!1,o="",a=[]):(s&&(i.push("ul"===r?"</ul>":"</ol>"),s=!1),c&&(i.push("<blockquote>"+this.parseMarkdown(l.join("\n"))+"</blockquote>"),c=!1,l=[]),o=h.replace(/^```/,"").trim(),n=!0);else if(n)a.push(h);else if(h.match(/^>\s?/))c||(s&&(i.push("ul"===r?"</ul>":"</ol>"),s=!1),c=!0,l=[]),l.push(h.replace(/^>\s?/,""));else if(c&&(i.push("<blockquote>"+this.parseMarkdown(l.join("\n"))+"</blockquote>"),c=!1,l=[]),h.match(/^(-{3,}|\*{3,}|_{3,})\s*$/))s&&(i.push("ul"===r?"</ul>":"</ol>"),s=!1),i.push("<hr>");else{var u=h.match(/^(#{1,6})\s+(.+)/);if(u){s&&(i.push("ul"===r?"</ul>":"</ol>"),s=!1);var d=u[1].length,f=this.parseInline(u[2]),v=u[2].toLowerCase().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-");i.push("<h"+d+' id="'+v+'">'+f+"</h"+d+">")}else{var g=h.match(/^(\s*)[-*+]\s+(.*)/);if(g)s&&"ul"===r||(s&&i.push("ul"===r?"</ul>":"</ol>"),i.push("<ul>"),s=!0,r="ul"),i.push("<li>"+this.parseInline(g[2])+"</li>");else{var m=h.match(/^(\s*)\d+\.\s+(.*)/);if(m)s&&"ol"===r||(s&&i.push("ul"===r?"</ul>":"</ol>"),i.push("<ol>"),s=!0,r="ol"),i.push("<li>"+this.parseInline(m[2])+"</li>");else if(s&&""!==h.trim()&&(i.push("ul"===r?"</ul>":"</ol>"),s=!1),""!==h.trim())if(h.match(/^\|/)&&p+1<e.length&&e[p+1].match(/^\|[\s-:|]+\|/)){s&&(i.push("ul"===r?"</ul>":"</ol>"),s=!1);var y="<table>",b=h.split("|").filter(function(t){return""!==t.trim()});y+="<thead><tr>";for(var A=0;A<b.length;A++)y+="<th>"+this.parseInline(b[A].trim())+"</th>";for(y+="</tr></thead>",p++,y+="<tbody>";p+1<e.length&&e[p+1].match(/^\|/);){var D=e[++p].split("|").filter(function(t){return""!==t.trim()});y+="<tr>";for(var w=0;w<D.length;w++)y+="<td>"+this.parseInline(D[w].trim())+"</td>";y+="</tr>"}y+="</tbody></table>",i.push(y)}else i.push("<p>"+this.parseInline(h)+"</p>")}}}}return s&&i.push("ul"===r?"</ul>":"</ol>"),c&&i.push("<blockquote>"+this.parseMarkdown(l.join("\n"))+"</blockquote>"),n&&i.push("<pre><code>"+this.escapeHTML(a.join("\n"))+"</code></pre>"),i.join("\n")}},{key:"parseInline",value:function(t){var e=this;if(!t)return"";var i=t;return i=(i=(i=(i=(i=(i=(i=i.replace(/`([^`]+)`/g,"<code>$1</code>")).replace(/!\[([^\]]*)\]\(([^)]+)\)/g,'<img src="$2" alt="$1">')).replace(/\[([^\]]+)\]\(([^)]+)\)/g,function(t,i,n){return n.match(/^\//)||n.match(/^[^:]+\.md/)?'<a href="'+e.convertDocLink(n)+'">'+i+"</a>":'<a href="'+n+'" target="_blank" rel="noopener">'+i+"</a>"})).replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>")).replace(/__([^_]+)__/g,"<strong>$1</strong>")).replace(/\*([^*]+)\*/g,"<em>$1</em>")).replace(/_([^_]+)_/g,"<em>$1</em>")}},{key:"convertDocLink",value:function(t){var e=t.replace(/^\//,""),i=e.split("/");if(i.length>=2){if(["fable","meadow","orator","pict","utility"].indexOf(i[0])>=0)return"#/doc/"+e}return e.match(/\.md$/)?"#/page/"+e.replace(/\.md$/,""):"#/page/"+e}},{key:"escapeHTML",value:function(t){return t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):""}}])}(t("pict-provider"));e.exports=n,e.exports.default_configuration={ProviderIdentifier:"Docuserve-Documentation",AutoInitialize:!0,AutoInitializeOrdinal:0}},{"pict-provider":6}],12:[function(t,e,i){var n=function(t){function e(t,i,n){return _classCallCheck(this,e),_callSuper(this,e,[t,i,n])}return _inherits(e,t),_createClass(e,[{key:"displayContent",value:function(t){this.pict.ContentAssignment.assignContent("#Docuserve-Content-Body",t);var e=document.getElementById("Docuserve-Content-Container");e&&(e.scrollTop=0)}},{key:"showLoading",value:function(){this.pict.ContentAssignment.assignContent("#Docuserve-Content-Body",'<div class="docuserve-content-loading">Loading documentation...</div>')}}])}(t("pict-view"));e.exports=n,e.exports.default_configuration={ViewIdentifier:"Docuserve-Content",DefaultRenderable:"Docuserve-Content-Display",DefaultDestinationAddress:"#Docuserve-Content-Container",AutoRender:!1,CSS:"\n\t\t.docuserve-content {\n\t\t\tpadding: 2em 3em;\n\t\t\tmax-width: 900px;\n\t\t\tmargin: 0 auto;\n\t\t}\n\t\t.docuserve-content-loading {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tmin-height: 200px;\n\t\t\tcolor: #999;\n\t\t\tfont-size: 1em;\n\t\t}\n\t\t.docuserve-content h1 {\n\t\t\tfont-size: 2em;\n\t\t\tcolor: #2c3e50;\n\t\t\tborder-bottom: 1px solid #eee;\n\t\t\tpadding-bottom: 0.3em;\n\t\t\tmargin-top: 0;\n\t\t}\n\t\t.docuserve-content h2 {\n\t\t\tfont-size: 1.5em;\n\t\t\tcolor: #2c3e50;\n\t\t\tborder-bottom: 1px solid #f0f0f0;\n\t\t\tpadding-bottom: 0.25em;\n\t\t\tmargin-top: 1.5em;\n\t\t}\n\t\t.docuserve-content h3 {\n\t\t\tfont-size: 1.25em;\n\t\t\tcolor: #333;\n\t\t\tmargin-top: 1.25em;\n\t\t}\n\t\t.docuserve-content h4, .docuserve-content h5, .docuserve-content h6 {\n\t\t\tcolor: #555;\n\t\t\tmargin-top: 1em;\n\t\t}\n\t\t.docuserve-content p {\n\t\t\tline-height: 1.7;\n\t\t\tcolor: #444;\n\t\t\tmargin: 0.75em 0;\n\t\t}\n\t\t.docuserve-content a {\n\t\t\tcolor: #42b983;\n\t\t\ttext-decoration: none;\n\t\t}\n\t\t.docuserve-content a:hover {\n\t\t\ttext-decoration: underline;\n\t\t}\n\t\t.docuserve-content pre {\n\t\t\tbackground: #2c3e50;\n\t\t\tcolor: #ecf0f1;\n\t\t\tpadding: 1.25em;\n\t\t\tborder-radius: 6px;\n\t\t\toverflow-x: auto;\n\t\t\tline-height: 1.5;\n\t\t\tfont-size: 0.9em;\n\t\t}\n\t\t.docuserve-content code {\n\t\t\tbackground: #f4f4f5;\n\t\t\tpadding: 0.15em 0.4em;\n\t\t\tborder-radius: 3px;\n\t\t\tfont-size: 0.9em;\n\t\t\tcolor: #e74c3c;\n\t\t}\n\t\t.docuserve-content pre code {\n\t\t\tbackground: none;\n\t\t\tpadding: 0;\n\t\t\tcolor: inherit;\n\t\t\tfont-size: inherit;\n\t\t}\n\t\t.docuserve-content blockquote {\n\t\t\tborder-left: 4px solid #42b983;\n\t\t\tmargin: 1em 0;\n\t\t\tpadding: 0.5em 1em;\n\t\t\tbackground: #f9f9f9;\n\t\t\tcolor: #666;\n\t\t}\n\t\t.docuserve-content blockquote p {\n\t\t\tmargin: 0.25em 0;\n\t\t}\n\t\t.docuserve-content ul, .docuserve-content ol {\n\t\t\tpadding-left: 2em;\n\t\t\tline-height: 1.8;\n\t\t}\n\t\t.docuserve-content li {\n\t\t\tmargin: 0.25em 0;\n\t\t\tcolor: #444;\n\t\t}\n\t\t.docuserve-content hr {\n\t\t\tborder: none;\n\t\t\tborder-top: 1px solid #eee;\n\t\t\tmargin: 2em 0;\n\t\t}\n\t\t.docuserve-content table {\n\t\t\twidth: 100%;\n\t\t\tborder-collapse: collapse;\n\t\t\tmargin: 1em 0;\n\t\t}\n\t\t.docuserve-content table th {\n\t\t\tbackground: #f5f7fa;\n\t\t\tborder: 1px solid #e0e0e0;\n\t\t\tpadding: 0.6em 0.8em;\n\t\t\ttext-align: left;\n\t\t\tfont-weight: 600;\n\t\t\tcolor: #2c3e50;\n\t\t}\n\t\t.docuserve-content table td {\n\t\t\tborder: 1px solid #e0e0e0;\n\t\t\tpadding: 0.5em 0.8em;\n\t\t\tcolor: #444;\n\t\t}\n\t\t.docuserve-content table tr:nth-child(even) {\n\t\t\tbackground: #fafafa;\n\t\t}\n\t\t.docuserve-content img {\n\t\t\tmax-width: 100%;\n\t\t\theight: auto;\n\t\t}\n\t\t.docuserve-not-found {\n\t\t\ttext-align: center;\n\t\t\tpadding: 3em 1em;\n\t\t\tcolor: #666;\n\t\t}\n\t\t.docuserve-not-found h2 {\n\t\t\tcolor: #999;\n\t\t\tfont-size: 1.5em;\n\t\t\tborder-bottom: none;\n\t\t}\n\t\t.docuserve-not-found code {\n\t\t\tbackground: #f4f4f5;\n\t\t\tpadding: 0.15em 0.4em;\n\t\t\tborder-radius: 3px;\n\t\t\tfont-size: 0.9em;\n\t\t\tcolor: #e74c3c;\n\t\t}\n\t",Templates:[{Hash:"Docuserve-Content-Template",Template:'\n<div class="docuserve-content" id="Docuserve-Content-Body">\n\t<div class="docuserve-content-loading">Loading documentation...</div>\n</div>\n'}],Renderables:[{RenderableHash:"Docuserve-Content-Display",TemplateHash:"Docuserve-Content-Template",DestinationAddress:"#Docuserve-Content-Container",RenderMethod:"replace"}]}},{"pict-view":8}],13:[function(t,e,i){var n=function(t){function e(t,i,n){return _classCallCheck(this,e),_callSuper(this,e,[t,i,n])}return _inherits(e,t),_createClass(e,[{key:"onAfterRender",value:function(t,i,n,o){if(this.pict.views["Docuserve-TopBar"].render(),this.pict.views["Docuserve-Sidebar"].render(),this.pict.views["Docuserve-Splash"].render(),this.pict.CSSMap.injectCSS(),this.pict.PictApplication.resolveHash(),!this._HashChangeListenerBound){this._HashChangeListenerBound=!0;var a=this;window.addEventListener("hashchange",function(){a.pict.PictApplication.resolveHash()})}return _superPropGet(e,"onAfterRender",this,3)([t,i,n,o])}}])}(t("pict-view"));e.exports=n,e.exports.default_configuration={ViewIdentifier:"Docuserve-Layout",DefaultRenderable:"Docuserve-Layout-Shell",DefaultDestinationAddress:"#Docuserve-Application-Container",AutoRender:!1,CSS:"\n\t\t#Docuserve-Application-Container {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\theight: 100vh;\n\t\t\toverflow: hidden;\n\t\t}\n\t\t#Docuserve-TopBar-Container {\n\t\t\tflex-shrink: 0;\n\t\t}\n\t\t.docuserve-body {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\t\t\tmin-height: 0;\n\t\t}\n\t\t#Docuserve-Sidebar-Container {\n\t\t\tflex-shrink: 0;\n\t\t\twidth: 280px;\n\t\t\toverflow-y: auto;\n\t\t}\n\t\t#Docuserve-Content-Container {\n\t\t\tflex: 1;\n\t\t\tmin-width: 0;\n\t\t\toverflow-y: auto;\n\t\t}\n\t",Templates:[{Hash:"Docuserve-Layout-Shell-Template",Template:'\n<div id="Docuserve-TopBar-Container"></div>\n<div class="docuserve-body">\n\t<div id="Docuserve-Sidebar-Container"></div>\n\t<div id="Docuserve-Content-Container"></div>\n</div>\n'}],Renderables:[{RenderableHash:"Docuserve-Layout-Shell",TemplateHash:"Docuserve-Layout-Shell-Template",DestinationAddress:"#Docuserve-Application-Container",RenderMethod:"replace"}]}},{"pict-view":8}],14:[function(t,e,i){var n=function(t){function e(t,i,n){return _classCallCheck(this,e),_callSuper(this,e,[t,i,n])}return _inherits(e,t),_createClass(e,[{key:"onAfterRender",value:function(t,i,n,o){return this.renderSidebarGroups(),_superPropGet(e,"onAfterRender",this,3)([t,i,n,o])}},{key:"renderSidebarGroups",value:function(){var t=this.pict.AppData.Docuserve.SidebarGroups;if(!t||t.length<1)this.pict.ContentAssignment.assignContent("#Docuserve-Sidebar-Groups",'<p style="padding: 1em; color: #999; font-size: 0.85em;">Loading catalog...</p>');else{for(var e="",i=0;i<t.length;i++){var n=t[i];e+='<div class="docuserve-sidebar-group">';var o=n.Route||"";if(!o)for(var a=0;a<n.Modules.length;a++)if(n.Modules[a].HasDocs&&n.Modules[a].Route){o=n.Modules[a].Route;break}e+=o?'<a class="docuserve-sidebar-group-title" href="'+o+'">'+this.escapeHTML(n.Name)+"</a>":'<div class="docuserve-sidebar-group-title">'+this.escapeHTML(n.Name)+"</div>",e+='<ul class="docuserve-sidebar-modules">';for(var s=0;s<n.Modules.length;s++){var r=n.Modules[s];if(r.HasDocs){var c="";this.pict.AppData.Docuserve.CurrentGroup===r.Group&&this.pict.AppData.Docuserve.CurrentModule===r.Name&&(c=' class="active"'),e+="<li><a"+c+' href="'+r.Route+'">'+this.escapeHTML(r.Name)+"</a></li>"}else e+='<li><span class="no-docs">'+this.escapeHTML(r.Name)+"</span></li>"}e+="</ul>",e+="</div>"}this.pict.ContentAssignment.assignContent("#Docuserve-Sidebar-Groups",e)}}},{key:"renderModuleNav",value:function(t,e){var i=this.pict.providers["Docuserve-Documentation"];if(i){var n=i.getModuleSidebar(t,e);if(n){for(var o="#/doc/"+t+"/"+e+"/",a='<div class="docuserve-sidebar-module-nav">',s=0;s<n.length;s++){var r=n[s];if(r.Children){a+='<div class="docuserve-sidebar-module-nav-section">'+this.escapeHTML(r.Title)+"</div>";for(var c=0;c<r.Children.length;c++){var l=r.Children[c];l.Path&&(a+='<a href="'+o+l.Path+'">'+this.escapeHTML(l.Title)+"</a>")}}else r.Path&&(a+='<a href="'+o+r.Path+'">'+this.escapeHTML(r.Title)+"</a>")}a+="</div>",this.pict.ContentAssignment.assignContent("#Docuserve-Sidebar-ModuleNav",a)}else this.pict.ContentAssignment.assignContent("#Docuserve-Sidebar-ModuleNav","")}}},{key:"toggleSidebar",value:function(){this.pict.AppData.Docuserve.SidebarVisible=!this.pict.AppData.Docuserve.SidebarVisible;var t=document.getElementById("Docuserve-Sidebar-Container"),e=document.getElementById("Docuserve-TopBar-Toggle");this.pict.AppData.Docuserve.SidebarVisible?(t&&(t.style.display=""),e&&(e.style.display="none")):(t&&(t.style.display="none"),e&&(e.style.display="inline-block"))}},{key:"clearModuleNav",value:function(){this.pict.ContentAssignment.assignContent("#Docuserve-Sidebar-ModuleNav","")}},{key:"escapeHTML",value:function(t){return t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):""}}])}(t("pict-view"));e.exports=n,e.exports.default_configuration={ViewIdentifier:"Docuserve-Sidebar",DefaultRenderable:"Docuserve-Sidebar-Content",DefaultDestinationAddress:"#Docuserve-Sidebar-Container",AutoRender:!1,CSS:"\n\t\t.docuserve-sidebar {\n\t\t\tbackground-color: #f8f9fa;\n\t\t\tborder-right: 1px solid #e0e0e0;\n\t\t\tpadding: 1em 0;\n\t\t\theight: 100%;\n\t\t\tposition: relative;\n\t\t}\n\t\t.docuserve-sidebar-close {\n\t\t\tposition: absolute;\n\t\t\ttop: 0.5em;\n\t\t\tright: 0.5em;\n\t\t\tbackground: none;\n\t\t\tborder: none;\n\t\t\tcolor: #999;\n\t\t\tfont-size: 1.2em;\n\t\t\tcursor: pointer;\n\t\t\tpadding: 0.2em 0.4em;\n\t\t\tline-height: 1;\n\t\t}\n\t\t.docuserve-sidebar-close:hover {\n\t\t\tcolor: #42b983;\n\t\t}\n\t\t.docuserve-sidebar-search {\n\t\t\tpadding: 0 1em 1em 1em;\n\t\t\tborder-bottom: 1px solid #e9ecef;\n\t\t\tmargin-bottom: 0.5em;\n\t\t}\n\t\t.docuserve-sidebar-search input {\n\t\t\twidth: 100%;\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder: 1px solid #ddd;\n\t\t\tborder-radius: 4px;\n\t\t\tfont-size: 0.85em;\n\t\t\toutline: none;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\t.docuserve-sidebar-search input:focus {\n\t\t\tborder-color: #42b983;\n\t\t}\n\t\t.docuserve-sidebar-home {\n\t\t\tpadding: 0.5em 1.25em;\n\t\t\tfont-weight: 600;\n\t\t\tfont-size: 0.85em;\n\t\t\ttext-transform: uppercase;\n\t\t\tletter-spacing: 0.03em;\n\t\t}\n\t\t.docuserve-sidebar-home a {\n\t\t\tcolor: #666;\n\t\t\ttext-decoration: none;\n\t\t\tcursor: pointer;\n\t\t\tuser-select: none;\n\t\t}\n\t\t.docuserve-sidebar-home a:hover {\n\t\t\tcolor: #42b983;\n\t\t}\n\t\t.docuserve-sidebar-group {\n\t\t\tmargin-top: 0.25em;\n\t\t}\n\t\t.docuserve-sidebar-group-title {\n\t\t\tdisplay: block;\n\t\t\tpadding: 0.5em 1.25em;\n\t\t\tfont-weight: 600;\n\t\t\tfont-size: 0.85em;\n\t\t\tcolor: #666;\n\t\t\ttext-decoration: none;\n\t\t\ttext-transform: uppercase;\n\t\t\tletter-spacing: 0.03em;\n\t\t\tcursor: pointer;\n\t\t\tuser-select: none;\n\t\t}\n\t\t.docuserve-sidebar-group-title:hover {\n\t\t\tcolor: #42b983;\n\t\t}\n\t\t.docuserve-sidebar-modules {\n\t\t\tlist-style: none;\n\t\t\tmargin: 0;\n\t\t\tpadding: 0;\n\t\t}\n\t\t.docuserve-sidebar-modules li {\n\t\t\tpadding: 0;\n\t\t}\n\t\t.docuserve-sidebar-modules a {\n\t\t\tdisplay: block;\n\t\t\tpadding: 0.3em 1.25em 0.3em 2em;\n\t\t\tcolor: #555;\n\t\t\ttext-decoration: none;\n\t\t\tfont-size: 0.85em;\n\t\t\ttransition: background-color 0.1s, color 0.1s;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t.docuserve-sidebar-modules a:hover {\n\t\t\tbackground-color: #e9ecef;\n\t\t\tcolor: #42b983;\n\t\t}\n\t\t.docuserve-sidebar-modules a.active {\n\t\t\tcolor: #42b983;\n\t\t\tfont-weight: 600;\n\t\t\tbackground-color: #e8f5e9;\n\t\t}\n\t\t.docuserve-sidebar-modules .no-docs {\n\t\t\tdisplay: block;\n\t\t\tpadding: 0.3em 1.25em 0.3em 2em;\n\t\t\tcolor: #bbb;\n\t\t\tfont-size: 0.85em;\n\t\t}\n\t\t.docuserve-sidebar-module-nav {\n\t\t\tborder-top: 1px solid #e9ecef;\n\t\t\tmargin-top: 0.5em;\n\t\t\tpadding-top: 0.5em;\n\t\t}\n\t\t.docuserve-sidebar-module-nav-section {\n\t\t\tpadding: 0.4em 1.25em;\n\t\t\tfont-weight: 600;\n\t\t\tfont-size: 0.8em;\n\t\t\tcolor: #888;\n\t\t\ttext-transform: uppercase;\n\t\t\tletter-spacing: 0.02em;\n\t\t}\n\t\t.docuserve-sidebar-module-nav a {\n\t\t\tdisplay: block;\n\t\t\tpadding: 0.25em 1.25em 0.25em 2.25em;\n\t\t\tcolor: #555;\n\t\t\ttext-decoration: none;\n\t\t\tfont-size: 0.82em;\n\t\t\ttransition: background-color 0.1s, color 0.1s;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t.docuserve-sidebar-module-nav a:hover {\n\t\t\tbackground-color: #e9ecef;\n\t\t\tcolor: #42b983;\n\t\t}\n\t",Templates:[{Hash:"Docuserve-Sidebar-Template",Template:'\n<div class="docuserve-sidebar">\n\t<button class="docuserve-sidebar-close" onclick="{~P~}.views[\'Docuserve-Sidebar\'].toggleSidebar()">×</button>\n\t<div class="docuserve-sidebar-home">\n\t\t<a onclick="{~P~}.PictApplication.navigateTo(\'/Home\')">Home</a>\n\t</div>\n\t<div id="Docuserve-Sidebar-Groups"></div>\n\t<div id="Docuserve-Sidebar-ModuleNav"></div>\n</div>\n'}],Renderables:[{RenderableHash:"Docuserve-Sidebar-Content",TemplateHash:"Docuserve-Sidebar-Template",DestinationAddress:"#Docuserve-Sidebar-Container",RenderMethod:"replace"}]}},{"pict-view":8}],15:[function(t,e,i){var n=function(t){function e(t,i,n){return _classCallCheck(this,e),_callSuper(this,e,[t,i,n])}return _inherits(e,t),_createClass(e,[{key:"onAfterRender",value:function(t,i,n,o){var a=this.pict.AppData.Docuserve;return a.CoverLoaded&&a.Cover?this.renderFromCover(a.Cover):this.renderFromCatalog(a),_superPropGet(e,"onAfterRender",this,3)([t,i,n,o])}},{key:"renderFromCover",value:function(t){this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Title",this.escapeHTML(t.Title)),this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Tagline",this.escapeHTML(t.Tagline)),this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Description",this.escapeHTML(t.Description));for(var e="",i=0;i<t.Highlights.length;i++){var n=t.Highlights[i];e+='<div class="docuserve-splash-highlight-card">',n.Label&&(e+="<h3>"+this.escapeHTML(n.Label)+"</h3>"),e+="<p>"+this.escapeHTML(n.Text)+"</p>",e+="</div>"}this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Highlights",e);for(var o="",a=this.pict.providers["Docuserve-Documentation"],s=0;s<t.Actions.length;s++){var r=t.Actions[s],c=0===s?"primary":"secondary",l=r.Href;if(l.match(/^https?:\/\//))o+='<a class="'+c+'" href="'+this.escapeHTML(l)+'" target="_blank" rel="noopener">'+this.escapeHTML(r.Text)+"</a>";else{var p=a.convertSidebarLink(l);o+='<a class="'+c+'" href="'+this.escapeHTML(p)+'">'+this.escapeHTML(r.Text)+"</a>"}}this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Actions",o)}},{key:"renderFromCatalog",value:function(t){this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Title","Retold"),this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Tagline","Documentation"),this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Description","");for(var e="",i=t.SidebarGroups||[],n=0;n<i.length;n++){var o=i[n];if(o.Modules&&!(o.Modules.length<1)){var a=o.Description||o.Modules.length+" modules";e+='<div class="docuserve-splash-highlight-card">',e+="<h3>"+this.escapeHTML(o.Name)+"</h3>",e+="<p>"+this.escapeHTML(a)+"</p>",e+="</div>"}}this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Highlights",e),this.pict.ContentAssignment.assignContent("#Docuserve-Splash-Actions","")}},{key:"escapeHTML",value:function(t){return t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,"""):""}}])}(t("pict-view"));e.exports=n,e.exports.default_configuration={ViewIdentifier:"Docuserve-Splash",DefaultRenderable:"Docuserve-Splash-Content",DefaultDestinationAddress:"#Docuserve-Content-Container",AutoRender:!1,CSS:"\n\t\t.docuserve-splash {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\talign-items: center;\n\t\t\tjustify-content: center;\n\t\t\tmin-height: calc(100vh - 56px);\n\t\t\tpadding: 3em 2em;\n\t\t\ttext-align: center;\n\t\t\tbackground: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);\n\t\t}\n\t\t.docuserve-splash h1 {\n\t\t\tfont-size: 3em;\n\t\t\tfont-weight: 700;\n\t\t\tcolor: #2c3e50;\n\t\t\tmargin: 0 0 0.25em 0;\n\t\t}\n\t\t.docuserve-splash-tagline {\n\t\t\tfont-size: 1.25em;\n\t\t\tcolor: #666;\n\t\t\tmargin-bottom: 1.5em;\n\t\t\tfont-style: italic;\n\t\t}\n\t\t.docuserve-splash-description {\n\t\t\tfont-size: 1em;\n\t\t\tcolor: #555;\n\t\t\tmax-width: 600px;\n\t\t\tline-height: 1.7;\n\t\t\tmargin-bottom: 2em;\n\t\t}\n\t\t.docuserve-splash-highlights {\n\t\t\tdisplay: grid;\n\t\t\tgrid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n\t\t\tgap: 1.25em;\n\t\t\tmax-width: 900px;\n\t\t\twidth: 100%;\n\t\t\tmargin-bottom: 2.5em;\n\t\t}\n\t\t.docuserve-splash-highlight-card {\n\t\t\tbackground: #fff;\n\t\t\tborder: 1px solid #e0e0e0;\n\t\t\tborder-radius: 8px;\n\t\t\tpadding: 1.25em;\n\t\t\ttext-align: left;\n\t\t\ttransition: box-shadow 0.2s, border-color 0.2s;\n\t\t}\n\t\t.docuserve-splash-highlight-card:hover {\n\t\t\tbox-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);\n\t\t\tborder-color: #42b983;\n\t\t}\n\t\t.docuserve-splash-highlight-card h3 {\n\t\t\tmargin: 0 0 0.5em 0;\n\t\t\tcolor: #2c3e50;\n\t\t\tfont-size: 1em;\n\t\t}\n\t\t.docuserve-splash-highlight-card p {\n\t\t\tmargin: 0;\n\t\t\tcolor: #777;\n\t\t\tfont-size: 0.85em;\n\t\t\tline-height: 1.5;\n\t\t}\n\t\t.docuserve-splash-actions {\n\t\t\tdisplay: flex;\n\t\t\tgap: 1em;\n\t\t\tflex-wrap: wrap;\n\t\t\tjustify-content: center;\n\t\t}\n\t\t.docuserve-splash-actions a {\n\t\t\tdisplay: inline-block;\n\t\t\tpadding: 0.7em 1.5em;\n\t\t\tborder-radius: 6px;\n\t\t\tfont-size: 0.95em;\n\t\t\tfont-weight: 600;\n\t\t\ttext-decoration: none;\n\t\t\ttransition: background-color 0.15s, color 0.15s;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t.docuserve-splash-actions .primary {\n\t\t\tbackground-color: #42b983;\n\t\t\tcolor: #fff;\n\t\t}\n\t\t.docuserve-splash-actions .primary:hover {\n\t\t\tbackground-color: #38a373;\n\t\t}\n\t\t.docuserve-splash-actions .secondary {\n\t\t\tbackground-color: #fff;\n\t\t\tcolor: #2c3e50;\n\t\t\tborder: 1px solid #ddd;\n\t\t}\n\t\t.docuserve-splash-actions .secondary:hover {\n\t\t\tborder-color: #42b983;\n\t\t\tcolor: #42b983;\n\t\t}\n\t",Templates:[{Hash:"Docuserve-Splash-Template",Template:'\n<div class="docuserve-splash">\n\t<h1 id="Docuserve-Splash-Title"></h1>\n\t<div class="docuserve-splash-tagline" id="Docuserve-Splash-Tagline"></div>\n\t<div class="docuserve-splash-description" id="Docuserve-Splash-Description"></div>\n\t<div class="docuserve-splash-highlights" id="Docuserve-Splash-Highlights"></div>\n\t<div class="docuserve-splash-actions" id="Docuserve-Splash-Actions"></div>\n</div>\n'}],Renderables:[{RenderableHash:"Docuserve-Splash-Content",TemplateHash:"Docuserve-Splash-Template",DestinationAddress:"#Docuserve-Content-Container",RenderMethod:"replace"}]}},{"pict-view":8}],16:[function(t,e,i){var n=function(t){function e(t,i,n){return _classCallCheck(this,e),_callSuper(this,e,[t,i,n])}return _inherits(e,t),_createClass(e,[{key:"onAfterRender",value:function(t,i,n,o){return this.renderTopBarContent(),_superPropGet(e,"onAfterRender",this,3)([t,i,n,o])}},{key:"renderTopBarContent",value:function(){var t=this.pict.AppData.Docuserve,e=document.getElementById("Docuserve-TopBar-Brand"),i=document.getElementById("Docuserve-TopBar-Nav"),n=document.getElementById("Docuserve-TopBar-Links");if(e&&i&&n)if(t.TopBarLoaded&&t.TopBar){var o=t.TopBar;e.textContent=o.Brand||"Documentation";for(var a='<a href="#/Home">Home</a>',s=0;s<o.NavLinks.length;s++){var r=o.NavLinks[s];a+='<a href="'+r.Href+'">'+this.escapeHTML(r.Text)+"</a>"}i.innerHTML=a;for(var c="",l=0;l<o.ExternalLinks.length;l++){var p=o.ExternalLinks[l];c+='<a href="'+this.escapeHTML(p.Href)+'" target="_blank" rel="noopener">'+this.escapeHTML(p.Text)+"</a>"}n.innerHTML=c}else{var h="Documentation";t.CoverLoaded&&t.Cover&&t.Cover.Title?h=t.Cover.Title:t.CatalogLoaded&&t.Catalog&&t.Catalog.Name&&(h=t.Catalog.Name),e.textContent=h,i.innerHTML='<a href="#/Home">Home</a>',n.innerHTML=""}}},{key:"escapeHTML",value:function(t){return t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):""}}])}(t("pict-view"));e.exports=n,e.exports.default_configuration={ViewIdentifier:"Docuserve-TopBar",DefaultRenderable:"Docuserve-TopBar-Content",DefaultDestinationAddress:"#Docuserve-TopBar-Container",AutoRender:!1,CSS:"\n\t\t.docuserve-topbar {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tjustify-content: space-between;\n\t\t\tbackground-color: #2c3e50;\n\t\t\tcolor: #ecf0f1;\n\t\t\tpadding: 0 1.5em;\n\t\t\theight: 56px;\n\t\t\tbox-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);\n\t\t\tposition: sticky;\n\t\t\ttop: 0;\n\t\t\tz-index: 100;\n\t\t}\n\t\t.docuserve-topbar-brand {\n\t\t\tfont-size: 1.25em;\n\t\t\tfont-weight: 600;\n\t\t\tletter-spacing: 0.02em;\n\t\t\tcolor: #ecf0f1;\n\t\t\ttext-decoration: none;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t.docuserve-topbar-brand:hover {\n\t\t\tcolor: #fff;\n\t\t}\n\t\t.docuserve-topbar-nav {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tgap: 0.25em;\n\t\t}\n\t\t.docuserve-topbar-nav a {\n\t\t\tcolor: #bdc3c7;\n\t\t\ttext-decoration: none;\n\t\t\tpadding: 0.5em 0.75em;\n\t\t\tborder-radius: 4px;\n\t\t\tfont-size: 0.9em;\n\t\t\ttransition: background-color 0.15s, color 0.15s;\n\t\t\tcursor: pointer;\n\t\t}\n\t\t.docuserve-topbar-nav a:hover {\n\t\t\tbackground-color: #34495e;\n\t\t\tcolor: #fff;\n\t\t}\n\t\t.docuserve-topbar-links {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tgap: 0.5em;\n\t\t}\n\t\t.docuserve-topbar-links a {\n\t\t\tcolor: #95a5a6;\n\t\t\ttext-decoration: none;\n\t\t\tfont-size: 0.85em;\n\t\t\tpadding: 0.4em 0.6em;\n\t\t\tborder-radius: 4px;\n\t\t\ttransition: background-color 0.15s, color 0.15s;\n\t\t}\n\t\t.docuserve-topbar-links a:hover {\n\t\t\tbackground-color: #34495e;\n\t\t\tcolor: #ecf0f1;\n\t\t}\n\t\t.docuserve-topbar-toggle {\n\t\t\tdisplay: none;\n\t\t\tbackground: none;\n\t\t\tborder: none;\n\t\t\tcolor: #bdc3c7;\n\t\t\tfont-size: 1.3em;\n\t\t\tcursor: pointer;\n\t\t\tpadding: 0.3em 0.5em;\n\t\t\tmargin-left: 0.5em;\n\t\t\tline-height: 1;\n\t\t}\n\t\t.docuserve-topbar-toggle:hover {\n\t\t\tcolor: #fff;\n\t\t}\n\t\t.docuserve-topbar-right {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t}\n\t",Templates:[{Hash:"Docuserve-TopBar-Template",Template:'\n<div class="docuserve-topbar">\n\t<a id="Docuserve-TopBar-Brand" class="docuserve-topbar-brand" href="#/Home"></a>\n\t<div id="Docuserve-TopBar-Nav" class="docuserve-topbar-nav"></div>\n\t<div class="docuserve-topbar-right">\n\t\t<div id="Docuserve-TopBar-Links" class="docuserve-topbar-links"></div>\n\t\t<button id="Docuserve-TopBar-Toggle" class="docuserve-topbar-toggle" onclick="{~P~}.views[\'Docuserve-Sidebar\'].toggleSidebar()">☰</button>\n\t</div>\n</div>\n'}],Renderables:[{RenderableHash:"Docuserve-TopBar-Content",TemplateHash:"Docuserve-TopBar-Template",DestinationAddress:"#Docuserve-TopBar-Container",RenderMethod:"replace"}]}},{"pict-view":8}]},{},[10])(10)});
|
|
2
|
+
//# sourceMappingURL=pict-docuserve.compatible.min.js.map
|