@genesislcap/design-system-configurator 14.167.2 → 14.167.3-alpha-69ba23f.0
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/dist/{117.117.666f4783b89ccb939e34.js → 104.104.eb07ccfb64543ac7b778.js} +2 -2
- package/dist/{946.191cdb53604b57e8e570e16c45969c58.js.map → 104.89f5d15ad9e34bb896b2e091a01bd2f4.js.map} +1 -1
- package/dist/223.223.145b4135cb41b88d86f0.js +2 -0
- package/dist/223.7d62a0692c0f2a60a363ff33876ea2e8.js.map +1 -0
- package/dist/{614.614.00f40dcb6436dda7b655.js → 227.227.5ac4b5d5283a38f12857.js} +3 -3
- package/dist/227.48a6cd6f0266b173ce60ba053f5c391b.js.map +1 -0
- package/dist/{205.205.e504f09f84d503c36bc1.js → 254.254.2432d5e58e8db8736235.js} +2 -2
- package/dist/{514.4c9a9078af0272a89cf44998ff715266.js.map → 254.5d86e9f0afb0b6b635f7c48ff847d20c.js.map} +1 -1
- package/dist/279.279.5bec60753fd1d7e05ddd.js +4 -0
- package/dist/279.61388040d5212cf9d2f9ec0b74af86b1.js.map +1 -0
- package/dist/{234.234.8a57d6aa4ae3d89f5a31.js → 359.359.e036e01a879624cdc3b5.js} +2 -2
- package/dist/{234.952bf408b225f6c58063df9fea95103c.js.map → 359.5a6df2fa69f71d02b96edad812335685.js.map} +1 -1
- package/dist/{205.db0943e1bb75c75fbc40f8e9a9389c06.js.map → 401.1eecdf26f5fb03237b4d6056a6840542.js.map} +1 -1
- package/dist/{514.514.0231ed19dc3b191ef531.js → 401.401.720caaf793da40e61253.js} +2 -2
- package/dist/{300.300.0c070751ae10da710b08.js → 445.445.2ba7d4f10beca887a425.js} +3 -3
- package/dist/{153.ed4de14c0d63c04b9410a297fd64327f.js.map → 445.c50ffd4726ee25b236e7bf65a987fa89.js.map} +1 -1
- package/dist/548.1302eba0ac52ed9874e55977e489e1e8.js.map +1 -0
- package/dist/548.548.16a7bf09a7d3dd44cc10.js +13 -0
- package/dist/648.648.7db0677b6cbdd90b47e3.js +2 -0
- package/dist/{667.c2e056ba91bea60c1844d80c1e05d12b.js.map → 648.64f343b0b4456706b2898bb18d0ebe3e.js.map} +1 -1
- package/dist/653.653.c62509653415c8faca35.js +2 -0
- package/dist/653.cda2755851515fbf4ce54a3f75f7351b.js.map +1 -0
- package/dist/677.677.b7020bbdb6b2aad19226.js +2 -0
- package/dist/{117.dc0b8ada43c4f471a7d79be55dc10810.js.map → 677.d43c2a841bdd138d54d9e7d2c5618d61.js.map} +1 -1
- package/dist/689.61ed89f0323c9cf836311884dbc8a5ce.js.map +1 -0
- package/dist/689.689.9f0c858e447d6db2ca55.js +2 -0
- package/dist/738.738.d55a266c63dc3615cb99.js +2 -0
- package/dist/{542.9ffdb2fe7c3a7be85727ddaaea4cf96c.js.map → 738.cb15708a600650e664febd4d804346dc.js.map} +1 -1
- package/dist/{849.849.c0960cfc38f4b6b1ed8d.js → 801.801.fe505f23446372d4420b.js} +177 -177
- package/dist/801.bcc9e7b8efd00c1be2da86e59fcc7b8e.js.map +1 -0
- package/dist/803.803.d83a509d3c9ad2332a7d.js +2 -0
- package/dist/{827.82083263b3da28ecf451fce04682d408.js.map → 803.813d4781a2e6c2a93f740a13b135c834.js.map} +1 -1
- package/dist/{300.90062a243781a61458ed021fe6f327ac.js.map → 826.4b4f684e828a56a17a42ead55be0567b.js.map} +1 -1
- package/dist/{153.153.bee77dddd8cea3bb1520.js → 826.826.1e632865488cd8a9db67.js} +3 -3
- package/dist/842.842.a0fef2425cf4c7848a37.js +2 -0
- package/dist/842.f6987d52cf428de80d41d9c4f3004d46.js.map +1 -0
- package/dist/{827.827.8e25d6e1d7cbeb4c5bf9.js → 938.938.86ae25d2eacca36ae701.js} +2 -2
- package/dist/938.9addb36745ec7e34fbd148c097deffd3.js.map +1 -0
- package/dist/{806.806.df6304a6e1227a622b6e.js → 952.952.55862fed331f7dce8ccb.js} +214 -214
- package/dist/952.fe29b370d756f30b2bf0e946b11c1830.js.map +1 -0
- package/dist/999.999.1fc5aafe569c493bca27.js +2 -0
- package/dist/{597.27d30fda47b9b3b3703acaa20f229c6b.js.map → 999.f6ec9482e2175fd15901ab54fb68eff8.js.map} +1 -1
- package/dist/designSystemConfigurator.8d995c67f2a195a06cac6bb7b881b212.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/main.16e186f65f6b6bb1a4a43f350a93ceab.js.map +1 -0
- package/dist/main.bcf50b855f00f949b3cf.js +2 -0
- package/dist/npm.ag-grid-community.909.fda3af82c75743cc9fec.js +3 -0
- package/dist/npm.ag-grid-community.c79b2ae2bd4ec712dbfab22a68395400.js.map +1 -0
- package/dist/npm.ajv.04b8f78233b619816106d6f71a0be112.js.map +1 -0
- package/dist/npm.ajv.353.f2a591538146b9124232.js +8 -0
- package/dist/npm.analytics.140.78869ced13074401388c.js +2 -0
- package/dist/npm.analytics.9569a83884eb0a76b3bb098520c66881.js.map +1 -0
- package/dist/npm.dialog-polyfill.1cc147f3b8f2187ffa4b07cbd7c32798.js.map +1 -0
- package/dist/npm.dialog-polyfill.724.1dd27dae9b5d32e51925.js +2 -0
- package/dist/{npm.fortawesome.fffe635f9bc4f80101a05de59c9f7b9f.js.map → npm.fortawesome.0599c0019ce005f108ac2b46b4a140bf.js.map} +1 -1
- package/dist/npm.fortawesome.308.757f6d1eafa49a539361.js +2 -0
- package/dist/npm.json-schema-tools.6eea636248ad604d9c73563fcbd938c2.js.map +1 -0
- package/dist/npm.json-schema-tools.708.b818843c8ef3875c3cda.js +2 -0
- package/dist/{npm.jsonforms.832.4588d0d8489041bf4ca7.js → npm.jsonforms.283.517815cff18e3c561760.js} +2 -2
- package/dist/npm.jsonforms.7b2decaa3b67871c304a81991ed655bc.js.map +1 -0
- package/dist/npm.lodash.23.1d7f9ce2acd1e0fa6690.js +2 -0
- package/dist/npm.lodash.ba3e45e67057652ae73919baee634464.js.map +1 -0
- package/dist/npm.lossless-json.333.787d51aac38f55c560a0.js +2 -0
- package/dist/{npm.lossless-json.181e52e9623f55b9cbf6f1ed8c1b6de6.js.map → npm.lossless-json.bc69d27ef21a1dd7020fc82d631cfa61.js.map} +1 -1
- package/dist/{npm.microsoft.127.fb65bada17a525386c80.js → npm.microsoft.544.30cb8ac428c8a7bcc21d.js} +651 -651
- package/dist/npm.microsoft.bca284de61a7fd135d55e9b60b8307cf.js.map +1 -0
- package/dist/npm.popperjs.5fa0b67b695c11e87e47128e58df98b2.js.map +1 -0
- package/dist/npm.popperjs.843.e3a0f5748b70fd20e7ae.js +2 -0
- package/dist/npm.rxjs.543.0485910d2a9683db7383.js +2 -0
- package/dist/npm.rxjs.68c71c3823ee6c9090f942ed571ce52b.js.map +1 -0
- package/dist/{npm.tslib.1acdf05613ac52b0840122cf25d84ff7.js.map → npm.tslib.33dc2d6b97ea85e1110deaf4ea8d4ea8.js.map} +1 -1
- package/dist/npm.tslib.520.a8b9712326a227afa1b2.js +3 -0
- package/dist/{npm.uri-js.415.79c1893683e025ba1dc0.js → npm.uri-js.498.fb2b5a38c722074714af.js} +3 -3
- package/dist/{npm.uri-js.18db090930f1e476b7574eb2f5bc6d69.js.map → npm.uri-js.4c0e5073c738ecc37f4419d371115b6f.js.map} +1 -1
- package/dist/remoteEntry.js +2 -2
- package/package.json +12 -12
- package/dist/200.200.c3035a0394a0f0154665.js +0 -2
- package/dist/200.b969aa21c130d00f304fd17d1f5d7083.js.map +0 -1
- package/dist/461.461.723925a5bde9aa35846f.js +0 -2
- package/dist/461.8db5f05dd186acb5bbef1493bce4d773.js.map +0 -1
- package/dist/542.542.8668d8f3644abbf0e6d0.js +0 -2
- package/dist/597.597.b38d51685e91f02e1186.js +0 -2
- package/dist/614.ab2243ef12594b651aabfda555ad6136.js.map +0 -1
- package/dist/667.667.28630254545cfba8e661.js +0 -2
- package/dist/746.00e85c55b64e58733fc11e761cc0cb67.js.map +0 -1
- package/dist/746.746.3d0b78f0bda7fbc60e1b.js +0 -4
- package/dist/755.755.e65d16e701302cc19617.js +0 -2
- package/dist/755.9a7aecd6f809d3501c72cb59e24e35af.js.map +0 -1
- package/dist/8.8.cabffc3a0348840d5b01.js +0 -13
- package/dist/8.a53ad2394b2581a3c855ecd3bf2ca07f.js.map +0 -1
- package/dist/806.c79e1a261b79702c2079dd3e21c52362.js.map +0 -1
- package/dist/849.08a5ccbc241f730a7a50ef70b1f414e3.js.map +0 -1
- package/dist/946.946.d24e120faf8a3f3c66dc.js +0 -2
- package/dist/95.5b2dd72604956e5604070d484f4e2b66.js.map +0 -1
- package/dist/95.95.030c6f8abc719ecebae6.js +0 -2
- package/dist/966.966.f34c316b0fe1d04dcd46.js +0 -2
- package/dist/966.9e96d2e5569d5dce6604939f479e4c82.js.map +0 -1
- package/dist/designSystemConfigurator.d065b6cabe69e87dbe55e1b47a7154a8.js.map +0 -1
- package/dist/main.213f99ff1fd6c68d8276c4e369b4c185.js.map +0 -1
- package/dist/main.7df0a875506a38195fe4.js +0 -2
- package/dist/npm.ag-grid-community.260.ed296352518f7a0c6b26.js +0 -3
- package/dist/npm.ag-grid-community.639a7875b9b28e356bec68b9f027ac62.js.map +0 -1
- package/dist/npm.ajv.08466a67076325d025125525760b0dce.js.map +0 -1
- package/dist/npm.ajv.213.ffd70782a76e409cc4cd.js +0 -8
- package/dist/npm.analytics.343.79e1c5e4e199a7ab816c.js +0 -2
- package/dist/npm.analytics.37376e06e9e5aef70bd3e95f74782ad3.js.map +0 -1
- package/dist/npm.dialog-polyfill.1ac89506c1962ef9e9344579bb705cb3.js.map +0 -1
- package/dist/npm.dialog-polyfill.47.c89df860900f879dc18c.js +0 -2
- package/dist/npm.fortawesome.104.2cd89f9bb41a8885c3b3.js +0 -2
- package/dist/npm.json-schema-tools.141.444cc04cd767d536fea2.js +0 -2
- package/dist/npm.json-schema-tools.181f54b3f09ef804ac1e0d10122bbbb9.js.map +0 -1
- package/dist/npm.jsonforms.993e04cc63524e99ee4c6395a10884a1.js.map +0 -1
- package/dist/npm.lodash.1460b2ca1d394235bbfdaf3d90884ce5.js.map +0 -1
- package/dist/npm.lodash.913.118ad493316103ca6e4d.js +0 -2
- package/dist/npm.lossless-json.816.c99bf343815801ec2b52.js +0 -2
- package/dist/npm.microsoft.195d71c3cb4b532ac5f722f5b46f412b.js.map +0 -1
- package/dist/npm.popperjs.591.7db624b09f810ff25907.js +0 -2
- package/dist/npm.popperjs.eda74532847dc31fb1e97092d77902fc.js.map +0 -1
- package/dist/npm.rxjs.271.97c4a50d790b7f988ef3.js +0 -2
- package/dist/npm.rxjs.af0fdd7c6eef2b80c50efc049a01cda7.js.map +0 -1
- package/dist/npm.tslib.453.230015d5bdb68f66ed4c.js +0 -3
- /package/dist/{614.614.00f40dcb6436dda7b655.js.LICENSE.txt → 227.227.5ac4b5d5283a38f12857.js.LICENSE.txt} +0 -0
- /package/dist/{153.153.bee77dddd8cea3bb1520.js.LICENSE.txt → 445.445.2ba7d4f10beca887a425.js.LICENSE.txt} +0 -0
- /package/dist/{300.300.0c070751ae10da710b08.js.LICENSE.txt → 826.826.1e632865488cd8a9db67.js.LICENSE.txt} +0 -0
- /package/dist/{npm.ag-grid-community.260.ed296352518f7a0c6b26.js.LICENSE.txt → npm.ag-grid-community.909.fda3af82c75743cc9fec.js.LICENSE.txt} +0 -0
- /package/dist/{npm.tslib.453.230015d5bdb68f66ed4c.js.LICENSE.txt → npm.tslib.520.a8b9712326a227afa1b2.js.LICENSE.txt} +0 -0
- /package/dist/{npm.uri-js.415.79c1893683e025ba1dc0.js.LICENSE.txt → npm.uri-js.498.fb2b5a38c722074714af.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[141],{22348:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NonStringRefError=void 0;var s=a(r(84180)),u=a(r(38307)),l=a(r(93641)),c=function(e){this.name="NonStringRefError",this.message=["NonStringRefError","Found an improperly formatted $ref in schema. $ref must be a string","schema in question: ".concat((0,l.default)(e))].join("\n")};t.NonStringRefError=c;var f=function(e,t){if(void 0!==e.$ref&&Object.keys(e).length>1&&!0!==t&&!1!==t){var r=n(n({},t),e);return delete r.$ref,r}return t},h=function(){function e(e,t){var r;if(void 0===t&&(t={}),this.options=t,this.refCache={},r=!0===this.options.mutate||!0===e||!1===e?e:n({},e),void 0===this.options.recursive&&(this.options.recursive=!0),void 0===this.options.rootSchema&&(this.options.rootSchema=r),!0!==e&&!1!==e&&e.$id&&(this.options.rootSchema=r),this.options.refCache&&(this.refCache=this.options.refCache),this.options.protocolHandlerMap)for(var o=0,i=Object.keys(this.options.protocolHandlerMap);o<i.length;o++){var a=i[o];u.default.protocolHandlerMap[a]=this.options.protocolHandlerMap[a]}this.schema=r,this.refs=this.collectRefs()}return e.prototype.resolve=function(){return o(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this._resolve()];case 1:return e.sent(),delete this.schema.definitions,delete this.schema.components,[2,this.schema]}}))}))},e.prototype._resolve=function(){return o(this,void 0,void 0,(function(){var t,r,o,a,l,c,h,p,d,v,b,y=this;return i(this,(function(i){switch(i.label){case 0:if(!0===this.schema||!1===this.schema)return[2,Promise.resolve(this.schema)];if(0===this.refs.length)return[2,Promise.resolve(this.schema)];t=this.refs.filter((function(e){return void 0===y.refCache[e]})),r=[],o=0,a=t,i.label=1;case 1:return o<a.length?(l=a[o],c=void 0,void 0===this.refCache[l]?[3,2]:(c=this.refCache[l],[3,5])):[3,11];case 2:if("#"!==l)return[3,3];if(void 0===this.options.rootSchema)throw new Error("options.rootSchema was not provided, but one of the schemas references '#'");return c=this.options.rootSchema,[3,5];case 3:return h=u.default.resolve(l,this.options.rootSchema),r.push(h),[4,h];case 4:c=i.sent(),i.label=5;case 5:return!0!==this.options.recursive||!0===c||!1===c||"#"===l?[3,9]:(p=n(n({},this.options),{refCache:this.refCache}),0===(d=new e(c,p)).refs.length?[3,7]:(v=d._resolve(),r.push(v),[4,v]));case 6:return b=i.sent(),this.refCache[l]=f(c,b),[3,8];case 7:this.refCache[l]=c,i.label=8;case 8:return[3,10];case 9:this.refCache[l]=c,i.label=10;case 10:return o++,[3,1];case 11:return void 0!==this.schema.$ref?this.schema=f(this.schema,this.refCache[this.schema.$ref]):(0,s.default)(this.schema,(function(e){if(!0===e||!1===e)return e;if(void 0!==e.$ref){var t=y.refCache[e.$ref];return f(e,t)}return e}),{mutable:!0}),[4,Promise.all(r)];case 12:return i.sent(),[2,this.schema]}}))}))},e.prototype.collectRefs=function(){var e=[];return(0,s.default)(this.schema,(function(t){if(!0===t||!1===t)return t;if(t.$ref&&-1===e.indexOf(t.$ref)){if("string"!=typeof t.$ref)throw new c(t);e.push(t.$ref)}return t})),e},e}();t.default=h},86776:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NonStringRefError=void 0;var o=n(r(22348)),i=r(22348);Object.defineProperty(t,"NonStringRefError",{enumerable:!0,get:function(){return i.NonStringRefError}}),t.default=o.default},85890:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(6518),s=i(r(61937)),u=function(e){return n(void 0,void 0,void 0,(function(){var t,r;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,(0,s.default)(e)];case 1:return t=n.sent(),[3,3];case 2:throw n.sent(),new a.InvalidRemoteURLError(e);case 3:return n.trys.push([3,5,,6]),[4,t.json()];case 4:return[2,n.sent()];case 5:throw r=n.sent(),new a.NonJsonRefError({$ref:e},r.message);case 6:return[2]}}))}))};t.default={https:u,http:u}},6518:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidFileSystemPathError=t.InvalidRemoteURLError=t.NotResolvableError=t.NonJsonRefError=void 0;var r=function(e,t){this.name="NonJsonRefError",this.message=["NonJsonRefError","The resolved value at the reference: ".concat(e.$ref," was not JSON.parse 'able"),"The non-json content in question: ".concat(t)].join("\n")};t.NonJsonRefError=r;var n=function(e){this.name="NotResolvableError",this.message=["NotResolvableError","Could not resolve the reference: ".concat(e),"No protocol handler was found, and it was not found to be an internal reference"].join("\n")};t.NotResolvableError=n;var o=function(e){this.name="InvalidRemoteURLError",this.message=["InvalidRemoteURLError","The url was not resolvable: ".concat(e)].join("\n")};t.InvalidRemoteURLError=o;var i=function(e){this.name="InvalidFileSystemPathError",this.message=["InvalidFileSystemPathError","The path was not resolvable: ".concat(e)].join("\n")};t.InvalidFileSystemPathError=i},38307:function(e,t,r){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},n.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(r(85890)),u=a(r(66754)),l=n(n({},s.default),{file:function(){return o(void 0,void 0,void 0,(function(){return i(this,(function(e){return[2,void 0]}))}))}});t.default=new u.default(l)},66754:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(6518),s=i(r(42705)),u=function(){function e(e){this.protocolHandlerMap=e}return e.prototype.resolve=function(e,t){return void 0===t&&(t={}),n(this,void 0,void 0,(function(){var r,n,i,u,l,c,f,h,p,d;return o(this,(function(o){switch(o.label){case 0:if("#"===e[0])return[2,Promise.resolve((0,s.default)(e,t))];(r=e.split("#")).length>1&&(n=r[r.length-1]),i=r[0],o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.protocolHandlerMap.file(i,t)];case 2:return u=o.sent(),[3,4];case 3:throw l=o.sent(),new a.NonJsonRefError({$ref:e},l.message);case 4:if(void 0!==u)return d=u,n&&(d=(0,s.default)(n,d)),[2,d];if(!1===e.includes("://"))throw new a.InvalidFileSystemPathError(e);c=0,f=Object.keys(this.protocolHandlerMap),o.label=5;case 5:return c<f.length?(h=f[c],i.startsWith(h)?[4,this.protocolHandlerMap[h](i,t)]:[3,7]):[3,8];case 6:if(void 0!==(p=o.sent()))return d=p,n&&(d=(0,s.default)(n,d)),[2,d];o.label=7;case 7:return c++,[3,5];case 8:throw new a.NotResolvableError(e)}}))}))},e}();t.default=u},42705:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidJsonPointerRefError=void 0;var o=n(r(57277)),i=function(e,t){this.name="InvalidJsonPointerRefError",this.message=["InvalidJsonPointerRefError","The provided RFC6901 JSON Pointer is invalid: ".concat(e),"","addition info: ",t].join("\n")};t.InvalidJsonPointerRefError=i,t.default=function(e,t){try{var r=e.replace("#","");return o.default.parse(r).eval(t)}catch(t){throw new i(e,t.message)}}},84180:function(e,t){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},n=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultOptions=void 0,t.defaultOptions={skipFirstMutation:!1,mutable:!1,bfs:!1};var o=function(e){return e.map((function(e){return""===e?"$":".".concat(e)})).join("")},i=function(e,t){var r=t.find((function(t){return t===e}));return r||!1},a=function(e,t){void 0===t&&(t=!1);var r=t?-2:-1;return e[e.length-r]};t.default=function e(s,u,l,c,f,h,p,d){void 0===l&&(l=t.defaultOptions),void 0===c&&(c=0),void 0===f&&(f=[]),void 0===h&&(h=[]),void 0===p&&(p=[]),void 0===d&&(d=[]);var v=r(r({},t.defaultOptions),l);if(0===c&&(h=[""]),"boolean"==typeof s||s instanceof Boolean)return!0===v.skipFirstMutation&&0===c?s:u(s,!1,o(h),a(f)||s);var b=s;!1===v.mutable&&(b=r({},s)),!0===v.bfs&&(!1!==v.skipFirstMutation&&0===c||(b=u(b,!1,o(h),a(f)||s))),f.push(s),p.push([s,b]);var y=function(t,r){var n=i(t,f);return n?(d.push(n),!0===v.skipFirstMutation&&n===f[0]?u(t,!0,o(r),a(f,!0)||s):p.find((function(e){var t=e[0];return n===t}))[1]):e(t,u,l,c+1,f,r,p,d)};if(s.anyOf)b.anyOf=s.anyOf.map((function(e,t){return y(e,n(n([],h,!0),["anyOf[".concat(t,"]")],!1))}));else if(s.allOf)b.allOf=s.allOf.map((function(e,t){return y(e,n(n([],h,!0),["allOf[".concat(t,"]")],!1))}));else if(s.oneOf)b.oneOf=s.oneOf.map((function(e,t){return y(e,n(n([],h,!0),["oneOf[".concat(t,"]")],!1))}));else{if(s.items)if(s.items instanceof Array)b.items=s.items.map((function(e,t){return y(e,n(n([],h,!0),["items[".concat(t,"]")],!1))}));else{var m=i(s.items,f);if(m)if(d.push(m),!0===v.skipFirstMutation&&m===f[0])b.items=u(s.items,!0,o(h),a(f,!0)||s);else{var w=p.find((function(e){var t=e[0];return m===t}))[1];b.items=w}else b.items=e(s.items,u,l,c+1,f,n(n([],h,!0),["items"],!1),p,d)}if(void 0!==s.additionalItems&&(b.additionalItems=y(s.additionalItems,n(n([],h,!0),["additionalItems"],!1))),void 0!==s.properties){var _=s.properties,g={};Object.keys(s.properties).forEach((function(e){g[e]=y(_[e],n(n([],h,!0),["properties",e.toString()],!1))})),b.properties=g}if(void 0!==s.patternProperties){var O=s.patternProperties,P={};Object.keys(s.patternProperties).forEach((function(e){P[e]=y(O[e],n(n([],h,!0),["patternProperties",e.toString()],!1))})),b.patternProperties=P}void 0!==s.additionalProperties&&!0==!!s.additionalProperties&&(b.additionalProperties=y(s.additionalProperties,n(n([],h,!0),["additionalProperties"],!1)))}if(!0===v.skipFirstMutation&&0===c)return b;if(!0===v.bfs)return b;var E=-1!==d.indexOf(s);return u(b,E,o(h),a(f,!0)||s)}}}]);
|
|
2
|
-
//# sourceMappingURL=npm.json-schema-tools.181f54b3f09ef804ac1e0d10122bbbb9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"npm.json-schema-tools.141.xxxxxxxxxxxxxxxxxxxx.js","mappings":"wKACA,IAAIA,EAAYC,MAAQA,KAAKD,UAAa,WAStC,OARAA,EAAWE,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACX,EACOJ,EAASc,MAAMb,KAAMO,UAChC,EACIO,EAAad,MAAQA,KAAKc,WAAc,SAAUC,EAASC,EAAYC,EAAGC,GAE1E,OAAO,IAAKD,IAAMA,EAAIE,WAAU,SAAUC,EAASC,GAC/C,SAASC,EAAUC,GAAS,IAAMC,EAAKN,EAAUO,KAAKF,GAAS,CAAE,MAAOG,GAAKL,EAAOK,EAAI,CAAE,CAC1F,SAASC,EAASJ,GAAS,IAAMC,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O,CAAC,oBAAqB2B,EAAMJ,aAAa,GAC5I,IACAlB,EAAcmB,kBAAoBE,CACtC,MACoCpI,IAAhCK,EAAOiI,uBAAwE,KAAhCjI,EAAOiI,uBACtDvB,EAAcuB,qBAAuBtB,EAAI3G,EAAOiI,qBAAsBrD,EAAcA,EAAc,GAAIyB,GAAW,GAAO,CAAC,yBAAyB,IAE1J,CACA,IAA+B,IAA3BG,EAAKnB,mBAAwC,IAAVe,EACnC,OAAOM,EAEX,IAAiB,IAAbF,EAAKlB,IACL,OAAOoB,EAGP,IAAIwB,GAA0C,IAA9B3B,EAASrE,QAAQlC,GACjC,OAAOkG,EAASQ,EAAewB,EAAW3C,EAAkBc,GAAYP,EAAKJ,GAAgB,IAAS1F,EAE9G,C","sources":["webpack://@genesislcap/design-system-configurator/../../../node_modules/@json-schema-tools/dereferencer/build/dereferencer.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/@json-schema-tools/dereferencer/build/index.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/@json-schema-tools/reference-resolver/build/default-protocol-handler-map.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/@json-schema-tools/reference-resolver/build/errors.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/@json-schema-tools/reference-resolver/build/index-web.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/@json-schema-tools/reference-resolver/build/reference-resolver.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/@json-schema-tools/reference-resolver/build/resolve-pointer.js","webpack://@genesislcap/design-system-configurator/../../../node_modules/@json-schema-tools/traverse/build/index.js"],"sourcesContent":["\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NonStringRefError = void 0;\nvar traverse_1 = __importDefault(require(\"@json-schema-tools/traverse\"));\nvar reference_resolver_1 = __importDefault(require(\"@json-schema-tools/reference-resolver\"));\nvar fast_safe_stringify_1 = __importDefault(require(\"fast-safe-stringify\"));\n/**\n * Error thrown by the constructor when given a ref that isn't a string\n *\n *\n * @example\n * ```typescript\n *\n * import Dereferencer, { NonStringRefError } from \"@json-schema-tools/dereferencer\";\n *\n * try { const dereffer = new Dereferencer({}); }\n * catch(e) {\n * if (e instanceof NonStringRefError) { ... }\n * }\n * ```\n *\n */\nvar NonStringRefError = /** @class */ (function () {\n function NonStringRefError(s) {\n this.name = \"NonStringRefError\";\n this.message = [\n \"NonStringRefError\",\n \"Found an improperly formatted $ref in schema. $ref must be a string\",\n \"schema in question: \".concat((0, fast_safe_stringify_1.default)(s)),\n ].join(\"\\n\");\n }\n return NonStringRefError;\n}());\nexports.NonStringRefError = NonStringRefError;\nvar copyOrNot = function (s1, s2) {\n if (s1.$ref !== undefined &&\n Object.keys(s1).length > 1 &&\n (s2 !== true && s2 !== false)) {\n var reflessCopy = __assign(__assign({}, s2), s1);\n delete reflessCopy.$ref;\n return reflessCopy;\n }\n else {\n return s2;\n }\n};\n/**\n * When instantiated, represents a fully configured dereferencer. When constructed, references are pulled out.\n * No references are fetched until .resolve is called.\n */\nvar Dereferencer = /** @class */ (function () {\n function Dereferencer(schema, options) {\n if (options === void 0) { options = {}; }\n this.options = options;\n this.refCache = {};\n var workingSchema;\n if (this.options.mutate === true) {\n workingSchema = schema;\n }\n else {\n workingSchema = schema === true || schema === false ? schema : __assign({}, schema);\n }\n if (this.options.recursive === undefined) {\n this.options.recursive = true;\n }\n if (this.options.rootSchema === undefined) {\n this.options.rootSchema = workingSchema;\n }\n if (schema !== true && schema !== false && schema.$id) {\n this.options.rootSchema = workingSchema;\n }\n if (this.options.refCache) {\n this.refCache = this.options.refCache;\n }\n if (this.options.protocolHandlerMap) {\n for (var _i = 0, _a = Object.keys(this.options.protocolHandlerMap); _i < _a.length; _i++) {\n var k = _a[_i];\n reference_resolver_1.default.protocolHandlerMap[k] = this.options.protocolHandlerMap[k];\n }\n }\n this.schema = workingSchema; // shallow copy breaks recursive\n this.refs = this.collectRefs();\n }\n /**\n * Fetches the schemas for all the refs in the configured input schema(s)\n *\n * @returns a promise that will resolve a fully dereferenced schema, where all the\n * promises for each ref has been resolved as well.\n *\n *\n */\n Dereferencer.prototype.resolve = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, this._resolve()];\n case 1:\n _a.sent();\n delete this.schema.definitions;\n delete this.schema.components;\n return [2 /*return*/, this.schema];\n }\n });\n });\n };\n Dereferencer.prototype._resolve = function () {\n return __awaiter(this, void 0, void 0, function () {\n var unfetchedRefs, proms, _i, unfetchedRefs_1, ref, fetched, refProm, subDerefferOpts, subDereffer, subFetchedProm, subFetched;\n var _this = this;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (this.schema === true || this.schema === false) {\n return [2 /*return*/, Promise.resolve(this.schema)];\n }\n if (this.refs.length === 0) {\n return [2 /*return*/, Promise.resolve(this.schema)];\n }\n unfetchedRefs = this.refs.filter(function (r) { return _this.refCache[r] === undefined; });\n proms = [];\n _i = 0, unfetchedRefs_1 = unfetchedRefs;\n _a.label = 1;\n case 1:\n if (!(_i < unfetchedRefs_1.length)) return [3 /*break*/, 11];\n ref = unfetchedRefs_1[_i];\n fetched = void 0;\n if (!(this.refCache[ref] !== undefined)) return [3 /*break*/, 2];\n fetched = this.refCache[ref];\n return [3 /*break*/, 5];\n case 2:\n if (!(ref === \"#\")) return [3 /*break*/, 3];\n if (this.options.rootSchema === undefined) {\n throw new Error(\"options.rootSchema was not provided, but one of the schemas references '#'\");\n }\n fetched = this.options.rootSchema;\n return [3 /*break*/, 5];\n case 3:\n refProm = reference_resolver_1.default.resolve(ref, this.options.rootSchema);\n proms.push(refProm);\n return [4 /*yield*/, refProm];\n case 4:\n fetched = (_a.sent());\n _a.label = 5;\n case 5:\n if (!(this.options.recursive === true && fetched !== true && fetched !== false && ref !== \"#\")) return [3 /*break*/, 9];\n subDerefferOpts = __assign(__assign({}, this.options), { refCache: this.refCache });\n subDereffer = new Dereferencer(fetched, subDerefferOpts);\n if (!(subDereffer.refs.length !== 0)) return [3 /*break*/, 7];\n subFetchedProm = subDereffer._resolve();\n proms.push(subFetchedProm);\n return [4 /*yield*/, subFetchedProm];\n case 6:\n subFetched = _a.sent();\n this.refCache[ref] = copyOrNot(fetched, subFetched);\n return [3 /*break*/, 8];\n case 7:\n this.refCache[ref] = fetched;\n _a.label = 8;\n case 8: return [3 /*break*/, 10];\n case 9:\n this.refCache[ref] = fetched;\n _a.label = 10;\n case 10:\n _i++;\n return [3 /*break*/, 1];\n case 11:\n if (this.schema.$ref !== undefined) {\n this.schema = copyOrNot(this.schema, this.refCache[this.schema.$ref]);\n }\n else {\n (0, traverse_1.default)(this.schema, function (s) {\n if (s === true || s === false) {\n return s;\n }\n if (s.$ref !== undefined) {\n var reffedSchema = _this.refCache[s.$ref];\n return copyOrNot(s, reffedSchema);\n }\n return s;\n }, { mutable: true });\n }\n return [4 /*yield*/, Promise.all(proms)];\n case 12:\n _a.sent();\n return [2 /*return*/, this.schema];\n }\n });\n });\n };\n /**\n * First-pass traversal to collect all the refs that we can find. This allows us to\n * optimize the async work required as well.\n */\n Dereferencer.prototype.collectRefs = function () {\n var refs = [];\n (0, traverse_1.default)(this.schema, function (s) {\n if (s === true || s === false) {\n return s;\n }\n if (s.$ref && refs.indexOf(s.$ref) === -1) {\n if (typeof s.$ref !== \"string\") {\n throw new NonStringRefError(s);\n }\n refs.push(s.$ref);\n }\n return s;\n });\n return refs;\n };\n return Dereferencer;\n}());\nexports.default = Dereferencer;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.NonStringRefError = void 0;\nvar dereferencer_1 = __importDefault(require(\"./dereferencer\"));\nvar dereferencer_2 = require(\"./dereferencer\");\nObject.defineProperty(exports, \"NonStringRefError\", { enumerable: true, get: function () { return dereferencer_2.NonStringRefError; } });\nexports.default = dereferencer_1.default;\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar errors_1 = require(\"./errors\");\nvar isomorphic_fetch_1 = __importDefault(require(\"isomorphic-fetch\"));\nvar fetchHandler = function (uri) { return __awaiter(void 0, void 0, void 0, function () {\n var schemaReq, e_1, e_2;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 2, , 3]);\n return [4 /*yield*/, (0, isomorphic_fetch_1.default)(uri)];\n case 1:\n schemaReq = _a.sent();\n return [3 /*break*/, 3];\n case 2:\n e_1 = _a.sent();\n throw new errors_1.InvalidRemoteURLError(uri);\n case 3:\n _a.trys.push([3, 5, , 6]);\n return [4 /*yield*/, schemaReq.json()];\n case 4: return [2 /*return*/, _a.sent()];\n case 5:\n e_2 = _a.sent();\n throw new errors_1.NonJsonRefError({ $ref: uri }, e_2.message);\n case 6: return [2 /*return*/];\n }\n });\n}); };\nexports.default = {\n \"https\": fetchHandler,\n \"http\": fetchHandler,\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InvalidFileSystemPathError = exports.InvalidRemoteURLError = exports.NotResolvableError = exports.NonJsonRefError = void 0;\n/**\n * Error thrown when the fetched reference is not properly formatted JSON or is encoded\n * incorrectly\n *\n * @example\n * ```typescript\n *\n * import Dereferencer, { NonJsonRefError } from \"@json-schema-tools/dereferencer\";\n * const dereffer = new Dereferencer({});\n * try { await dereffer.resolve(); }\n * catch(e) {\n * if (e instanceof NonJsonRefError) { ... }\n * }\n * ```\n *\n */\nvar NonJsonRefError = /** @class */ (function () {\n function NonJsonRefError(obj, nonJson) {\n this.name = \"NonJsonRefError\";\n this.message = [\n \"NonJsonRefError\",\n \"The resolved value at the reference: \".concat(obj.$ref, \" was not JSON.parse 'able\"),\n \"The non-json content in question: \".concat(nonJson),\n ].join(\"\\n\");\n }\n return NonJsonRefError;\n}());\nexports.NonJsonRefError = NonJsonRefError;\nvar NotResolvableError = /** @class */ (function () {\n function NotResolvableError(ref) {\n this.name = \"NotResolvableError\";\n this.message = [\n \"NotResolvableError\",\n \"Could not resolve the reference: \".concat(ref),\n \"No protocol handler was found, and it was not found to be an internal reference\",\n ].join(\"\\n\");\n }\n return NotResolvableError;\n}());\nexports.NotResolvableError = NotResolvableError;\n/**\n * Error thrown when given an invalid file system path as a reference.\n *\n */\nvar InvalidRemoteURLError = /** @class */ (function () {\n function InvalidRemoteURLError(ref) {\n this.name = \"InvalidRemoteURLError\";\n this.message = [\n \"InvalidRemoteURLError\",\n \"The url was not resolvable: \".concat(ref),\n ].join(\"\\n\");\n }\n return InvalidRemoteURLError;\n}());\nexports.InvalidRemoteURLError = InvalidRemoteURLError;\n/**\n * Error thrown when given an invalid file system path as a reference.\n *\n * @example\n * ```typescript\n *\n * import Dereferencer, { InvalidFileSystemPathError } from \"@json-schema-tools/dereferencer\";\n * const dereffer = new Dereferencer({});\n * try { await dereffer.resolve(); }\n * catch(e) {\n * if (e instanceof InvalidFileSystemPathError) { ... }\n * }\n * ```\n *\n */\nvar InvalidFileSystemPathError = /** @class */ (function () {\n function InvalidFileSystemPathError(ref) {\n this.name = \"InvalidFileSystemPathError\";\n this.message = [\n \"InvalidFileSystemPathError\",\n \"The path was not resolvable: \".concat(ref),\n ].join(\"\\n\");\n }\n return InvalidFileSystemPathError;\n}());\nexports.InvalidFileSystemPathError = InvalidFileSystemPathError;\n","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar default_protocol_handler_map_1 = __importDefault(require(\"./default-protocol-handler-map\"));\nvar reference_resolver_1 = __importDefault(require(\"./reference-resolver\"));\nvar nodeProtocolHandlerMap = __assign(__assign({}, default_protocol_handler_map_1.default), { \"file\": function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {\n return [2 /*return*/, undefined];\n }); }); } });\nexports.default = new reference_resolver_1.default(nodeProtocolHandlerMap);\n","\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar errors_1 = require(\"./errors\");\nvar resolve_pointer_1 = __importDefault(require(\"./resolve-pointer\"));\nvar isUrlLike = function (s) {\n return s.includes(\"://\");\n};\nvar ReferenceResolver = /** @class */ (function () {\n function ReferenceResolver(protocolHandlerMap) {\n this.protocolHandlerMap = protocolHandlerMap;\n }\n /**\n * Given a $ref string, it will return the underlying pointed-to value.\n * For remote references, the root object is not used.\n */\n ReferenceResolver.prototype.resolve = function (ref, root) {\n if (root === void 0) { root = {}; }\n return __awaiter(this, void 0, void 0, function () {\n var hashFragmentSplit, hashFragment, hashlessRef, relativePathSchema, e_1, schema, _i, _a, protocol, maybeSchema, schema;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n // Check if its an internal reference that starts from the root\n // Internal references.\n if (ref[0] === \"#\") {\n return [2 /*return*/, Promise.resolve((0, resolve_pointer_1.default)(ref, root))];\n }\n hashFragmentSplit = ref.split(\"#\");\n if (hashFragmentSplit.length > 1) {\n hashFragment = hashFragmentSplit[hashFragmentSplit.length - 1];\n }\n hashlessRef = hashFragmentSplit[0];\n _b.label = 1;\n case 1:\n _b.trys.push([1, 3, , 4]);\n return [4 /*yield*/, this.protocolHandlerMap.file(hashlessRef, root)];\n case 2:\n relativePathSchema = _b.sent();\n return [3 /*break*/, 4];\n case 3:\n e_1 = _b.sent();\n throw new errors_1.NonJsonRefError({ $ref: ref }, e_1.message);\n case 4:\n if (relativePathSchema !== undefined) {\n schema = relativePathSchema;\n if (hashFragment) {\n schema = (0, resolve_pointer_1.default)(hashFragment, schema);\n }\n return [2 /*return*/, schema];\n }\n else if (isUrlLike(ref) === false) {\n throw new errors_1.InvalidFileSystemPathError(ref);\n }\n _i = 0, _a = Object.keys(this.protocolHandlerMap);\n _b.label = 5;\n case 5:\n if (!(_i < _a.length)) return [3 /*break*/, 8];\n protocol = _a[_i];\n if (!hashlessRef.startsWith(protocol)) return [3 /*break*/, 7];\n return [4 /*yield*/, this.protocolHandlerMap[protocol](hashlessRef, root)];\n case 6:\n maybeSchema = _b.sent();\n if (maybeSchema !== undefined) {\n schema = maybeSchema;\n if (hashFragment) {\n schema = (0, resolve_pointer_1.default)(hashFragment, schema);\n }\n return [2 /*return*/, schema];\n }\n _b.label = 7;\n case 7:\n _i++;\n return [3 /*break*/, 5];\n case 8: \n // if we get to the end and nothing has handled it yet, then we are hooped.\n throw new errors_1.NotResolvableError(ref);\n }\n });\n });\n };\n return ReferenceResolver;\n}());\nexports.default = ReferenceResolver;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.InvalidJsonPointerRefError = void 0;\nvar json_pointer_1 = __importDefault(require(\"@json-schema-spec/json-pointer\"));\n/**\n * Error thrown when a JSON pointer is provided but is not parseable as per the RFC6901\n *\n */\nvar InvalidJsonPointerRefError = /** @class */ (function () {\n function InvalidJsonPointerRefError(ref, additionalMsg) {\n this.name = \"InvalidJsonPointerRefError\";\n this.message = [\n \"InvalidJsonPointerRefError\",\n \"The provided RFC6901 JSON Pointer is invalid: \".concat(ref),\n \"\",\n \"addition info: \",\n additionalMsg,\n ].join(\"\\n\");\n }\n return InvalidJsonPointerRefError;\n}());\nexports.InvalidJsonPointerRefError = InvalidJsonPointerRefError;\nexports.default = (function (ref, root) {\n try {\n var withoutHash = ref.replace(\"#\", \"\");\n var pointer = json_pointer_1.default.parse(withoutHash);\n return pointer.eval(root);\n }\n catch (e) {\n throw new InvalidJsonPointerRefError(ref, e.message);\n }\n});\n","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.defaultOptions = void 0;\nexports.defaultOptions = {\n skipFirstMutation: false,\n mutable: false,\n bfs: false,\n};\nvar jsonPathStringify = function (s) {\n return s.map(function (i) {\n if (i === \"\") {\n return '$';\n }\n else {\n return \".\".concat(i);\n }\n }).join(\"\");\n};\nvar isCycle = function (s, recursiveStack) {\n var foundInRecursiveStack = recursiveStack.find(function (recSchema) { return recSchema === s; });\n if (foundInRecursiveStack) {\n return foundInRecursiveStack;\n }\n return false;\n};\nvar last = function (i, skipTwo) {\n if (skipTwo === void 0) { skipTwo = false; }\n var skip = skipTwo ? -2 : -1;\n return i[i.length - skip];\n};\n/**\n * Traverse all subschema of a schema, calling the mutator function with each.\n * The mutator is called on leaf nodes first.\n *\n * @param schema the schema to traverse\n * @param mutation the function to pass each node in the subschema tree.\n * @param traverseOptions a set of options for traversal.\n * @param depth For internal use. Tracks the current recursive depth in the tree. This is used to implement\n * some of the options.\n *\n */\nfunction traverse(schema, mutation, traverseOptions, depth, recursiveStack, pathStack, prePostMap, cycleSet) {\n if (traverseOptions === void 0) { traverseOptions = exports.defaultOptions; }\n if (depth === void 0) { depth = 0; }\n if (recursiveStack === void 0) { recursiveStack = []; }\n if (pathStack === void 0) { pathStack = []; }\n if (prePostMap === void 0) { prePostMap = []; }\n if (cycleSet === void 0) { cycleSet = []; }\n var opts = __assign(__assign({}, exports.defaultOptions), traverseOptions); // would be nice to make an 'entry' func when we get around to optimizations\n // booleans are a bit messed. Since all other schemas are objects (non-primitive type\n // which gets a new address in mem) for each new JS refer to one of 2 memory addrs, and\n // thus adding it to the recursive stack will prevent it from being explored if the\n // boolean is seen in a further nested schema.\n if (depth === 0) {\n pathStack = [\"\"];\n }\n if (typeof schema === \"boolean\" || schema instanceof Boolean) {\n if (opts.skipFirstMutation === true && depth === 0) {\n return schema;\n }\n else {\n return mutation(schema, false, jsonPathStringify(pathStack), last(recursiveStack) || schema);\n }\n }\n var mutableSchema = schema;\n if (opts.mutable === false) {\n mutableSchema = __assign({}, schema);\n }\n if (opts.bfs === true) {\n if (opts.skipFirstMutation === false || depth !== 0) {\n mutableSchema = mutation(mutableSchema, false, jsonPathStringify(pathStack), last(recursiveStack) || schema);\n }\n }\n recursiveStack.push(schema);\n prePostMap.push([schema, mutableSchema]);\n var rec = function (s, path) {\n var foundCycle = isCycle(s, recursiveStack);\n if (foundCycle) {\n cycleSet.push(foundCycle);\n // if the cycle is a ref to the root schema && skipFirstMutation is try we need to call mutate.\n // If we don't, it will never happen.\n if (opts.skipFirstMutation === true && foundCycle === recursiveStack[0]) {\n return mutation(s, true, jsonPathStringify(path), last(recursiveStack, true) || schema);\n }\n var _a = prePostMap.find(function (_a) {\n var orig = _a[0];\n return foundCycle === orig;\n }), cycledMutableSchema = _a[1];\n return cycledMutableSchema;\n }\n // else\n return traverse(s, mutation, traverseOptions, depth + 1, recursiveStack, path, prePostMap, cycleSet);\n };\n if (schema.anyOf) {\n mutableSchema.anyOf = schema.anyOf.map(function (x, i) {\n var result = rec(x, __spreadArray(__spreadArray([], pathStack, true), [\"anyOf[\".concat(i, \"]\")], false));\n return result;\n });\n }\n else if (schema.allOf) {\n mutableSchema.allOf = schema.allOf.map(function (x, i) {\n var result = rec(x, __spreadArray(__spreadArray([], pathStack, true), [\"allOf[\".concat(i, \"]\")], false));\n return result;\n });\n }\n else if (schema.oneOf) {\n mutableSchema.oneOf = schema.oneOf.map(function (x, i) {\n var result = rec(x, __spreadArray(__spreadArray([], pathStack, true), [\"oneOf[\".concat(i, \"]\")], false));\n return result;\n });\n }\n else {\n if (schema.items) {\n if (schema.items instanceof Array) {\n mutableSchema.items = schema.items.map(function (x, i) {\n var result = rec(x, __spreadArray(__spreadArray([], pathStack, true), [\"items[\".concat(i, \"]\")], false));\n return result;\n });\n }\n else {\n var foundCycle_1 = isCycle(schema.items, recursiveStack);\n if (foundCycle_1) {\n cycleSet.push(foundCycle_1);\n if (opts.skipFirstMutation === true && foundCycle_1 === recursiveStack[0]) {\n mutableSchema.items = mutation(schema.items, true, jsonPathStringify(pathStack), last(recursiveStack, true) || schema);\n }\n else {\n var _a = prePostMap.find(function (_a) {\n var orig = _a[0];\n return foundCycle_1 === orig;\n }), cycledMutableSchema = _a[1];\n mutableSchema.items = cycledMutableSchema;\n }\n }\n else {\n mutableSchema.items = traverse(schema.items, mutation, traverseOptions, depth + 1, recursiveStack, __spreadArray(__spreadArray([], pathStack, true), [\"items\"], false), prePostMap, cycleSet);\n }\n }\n }\n if (schema.additionalItems !== undefined) {\n mutableSchema.additionalItems = rec(schema.additionalItems, __spreadArray(__spreadArray([], pathStack, true), [\"additionalItems\"], false));\n }\n if (schema.properties !== undefined) {\n var sProps_1 = schema.properties;\n var mutableProps_1 = {};\n Object.keys(schema.properties).forEach(function (schemaPropKey) {\n mutableProps_1[schemaPropKey] = rec(sProps_1[schemaPropKey], __spreadArray(__spreadArray([], pathStack, true), [\"properties\", schemaPropKey.toString()], false));\n });\n mutableSchema.properties = mutableProps_1;\n }\n if (schema.patternProperties !== undefined) {\n var sProps_2 = schema.patternProperties;\n var mutableProps_2 = {};\n Object.keys(schema.patternProperties).forEach(function (regex) {\n mutableProps_2[regex] = rec(sProps_2[regex], __spreadArray(__spreadArray([], pathStack, true), [\"patternProperties\", regex.toString()], false));\n });\n mutableSchema.patternProperties = mutableProps_2;\n }\n if (schema.additionalProperties !== undefined && !!schema.additionalProperties === true) {\n mutableSchema.additionalProperties = rec(schema.additionalProperties, __spreadArray(__spreadArray([], pathStack, true), [\"additionalProperties\"], false));\n }\n }\n if (opts.skipFirstMutation === true && depth === 0) {\n return mutableSchema;\n }\n if (opts.bfs === true) {\n return mutableSchema;\n }\n else {\n var isCycle_1 = cycleSet.indexOf(schema) !== -1;\n return mutation(mutableSchema, isCycle_1, jsonPathStringify(pathStack), last(recursiveStack, true) || schema);\n }\n}\nexports.default = traverse;\n"],"names":["__assign","this","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","__generator","body","f","y","g","_","label","sent","trys","ops","verb","Symbol","iterator","v","op","TypeError","pop","push","__importDefault","mod","__esModule","defineProperty","exports","NonStringRefError","traverse_1","reference_resolver_1","fast_safe_stringify_1","name","message","concat","default","join","copyOrNot","s1","s2","undefined","$ref","keys","reflessCopy","Dereferencer","schema","options","workingSchema","refCache","mutate","recursive","rootSchema","$id","protocolHandlerMap","_i","_a","k","refs","collectRefs","_resolve","definitions","components","unfetchedRefs","proms","unfetchedRefs_1","ref","fetched","refProm","subDerefferOpts","subDereffer","subFetchedProm","subFetched","_this","filter","r","Error","reffedSchema","mutable","all","indexOf","dereferencer_1","dereferencer_2","enumerable","get","errors_1","isomorphic_fetch_1","fetchHandler","uri","schemaReq","e_2","InvalidRemoteURLError","json","NonJsonRefError","InvalidFileSystemPathError","NotResolvableError","obj","nonJson","default_protocol_handler_map_1","nodeProtocolHandlerMap","resolve_pointer_1","ReferenceResolver","root","hashFragmentSplit","hashFragment","hashlessRef","relativePathSchema","e_1","protocol","maybeSchema","_b","split","file","includes","startsWith","InvalidJsonPointerRefError","json_pointer_1","additionalMsg","withoutHash","replace","parse","eval","__spreadArray","to","from","pack","ar","l","Array","slice","defaultOptions","skipFirstMutation","bfs","jsonPathStringify","map","isCycle","recursiveStack","foundInRecursiveStack","find","recSchema","last","skipTwo","skip","traverse","mutation","traverseOptions","depth","pathStack","prePostMap","cycleSet","opts","Boolean","mutableSchema","rec","path","foundCycle","orig","anyOf","x","allOf","oneOf","items","foundCycle_1","cycledMutableSchema","additionalItems","properties","sProps_1","mutableProps_1","forEach","schemaPropKey","toString","patternProperties","sProps_2","mutableProps_2","regex","additionalProperties","isCycle_1"],"sourceRoot":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"npm.jsonforms.832.xxxxxxxxxxxxxxxxxxxx.js","mappings":"i6BAyBA,MAAMA,EAAwB,uBACxBC,EAAsB,WAc5B,MAAMC,EACFC,YAAYC,GACRC,KAAKD,WAAaA,EAClBC,KAAKC,aAAgBC,IACjB,MAAMC,EAAQH,KAAKI,WAAWF,GACxBG,EAAS,CACXC,KAAM,SACNF,WAAYD,EACZI,qBAAsBP,KAAKD,WAAWI,EAAhBH,CAAuBL,IAE3Ca,EAAWR,KAAKD,WAAWI,EAAhBH,CAAuBJ,GAIxC,OAHIY,EAASC,OAAS,IAClBJ,EAAOG,SAAWA,GAEfH,CAAM,EAEjBL,KAAKI,WAAcF,GAERQ,OAAOC,KAAKT,GAAMU,QAAO,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,EAAMG,EAAQ2C,EAAUT,KAAY,CACpDjC,KAAMwF,GACN5F,OACAG,SACA2C,WACAT,YAkHFuY,oBAhH0B,CAACjO,EAAY3M,KAAS,CAC9CI,KAAMia,GACN1N,aACA3M,SA8GF6a,sBA5G6BlO,IAAe,CAC1CvM,KAAMka,GACN3N,eA2GFmO,OAzGclW,IAAQ,CACpBxE,KAAMyF,GACNjB,QAwGFiS,OAAQA,GACRkE,aAlGoBrW,IAAW,CAC7BtE,KAAMoG,GACN9B,WAiGFsW,iBA/FuB,CAACnN,EAAQoN,KAAa,CAC3C7a,KAAM2Z,GACNlM,SACAoN,aA6FFC,aA3FmB,CAACrN,EAAQsN,KAAS,CACnC/a,KAAM6Z,GACNpM,SACAsN,SAyFFC,eAvFqB,CAACvN,EAAQsN,KAAS,CACrC/a,KAAM8Z,GACNrM,SACAsN,SAqFFE,mBAnFyB,CAACxN,EAAQoN,KAAa,CAC7C7a,KAAM4Z,GACNnM,SACAoN,aAiFFK,UA/EiBnX,IAAW,CAC1B/D,KAAMmE,GACNJ,WA8EFoX,kBA5EyB1W,IAAmB,CAC1CzE,KAAMqG,GACN5B,mBA2EF2W,iBAzEuB,CAAC3N,EAAQ/K,KACvB,CACH1C,KAAM+Z,GACNtM,SACA/K,aAsEN2Y,mBAnE0B5N,IACjB,CACHzN,KAAMga,GACNvM,WAiEN6N,UA9DiB/P,IAAW,CAC1BvL,KAAM+L,GACNR,WA6DFgQ,UA3DiBxb,IAAW,CAC1BC,KAAM2F,GACN5F,WA0DFyb,cAxDoB,CAAC5P,EAAYC,KAAoB,CACnD7L,KAAM8L,GACNF,aACAC,oBAsDF4P,WApDiB,CAAClQ,EAAQK,EAAYC,KAAoB,CACxD7L,KAAM2L,GACNJ,SACAK,aACAC,oBAiDF6P,YA/CmBhZ,IAAa,CAC9B1C,KAAM4F,GACNlD,c","sources":["webpack://@genesislcap/design-system-configurator/../../../node_modules/@jsonforms/core/lib/jsonforms-core.esm.js"],"sourcesContent":["import isEmpty from 'lodash/isEmpty';\nimport startCase from 'lodash/startCase';\nimport keys from 'lodash/keys';\nimport merge from 'lodash/merge';\nimport cloneDeep from 'lodash/cloneDeep';\nimport setFp from 'lodash/fp/set';\nimport unsetFp from 'lodash/fp/unset';\nimport get from 'lodash/get';\nimport filter from 'lodash/filter';\nimport isEqual from 'lodash/isEqual';\nimport isFunction from 'lodash/isFunction';\nimport maxBy from 'lodash/maxBy';\nimport remove from 'lodash/remove';\nimport endsWith from 'lodash/endsWith';\nimport last from 'lodash/last';\nimport isArray from 'lodash/isArray';\nimport reduce from 'lodash/reduce';\nimport toPairs from 'lodash/toPairs';\nimport includes from 'lodash/includes';\nimport find from 'lodash/find';\nimport range from 'lodash/range';\nimport has from 'lodash/has';\nimport Ajv from 'ajv';\nimport addFormats from 'ajv-formats';\n\nconst ADDITIONAL_PROPERTIES = 'additionalProperties';\nconst REQUIRED_PROPERTIES = 'required';\nconst distinct = (properties, discriminator) => {\n const known = {};\n return properties.filter((item) => {\n const discriminatorValue = discriminator(item);\n if (Object.prototype.hasOwnProperty.call(known, discriminatorValue)) {\n return false;\n }\n else {\n known[discriminatorValue] = true;\n return true;\n }\n });\n};\nclass Gen {\n constructor(findOption) {\n this.findOption = findOption;\n this.schemaObject = (data) => {\n const props = this.properties(data);\n const schema = {\n type: 'object',\n properties: props,\n additionalProperties: this.findOption(props)(ADDITIONAL_PROPERTIES),\n };\n const required = this.findOption(props)(REQUIRED_PROPERTIES);\n if (required.length > 0) {\n schema.required = required;\n }\n return schema;\n };\n this.properties = (data) => {\n const emptyProps = {};\n return Object.keys(data).reduce((acc, propName) => {\n acc[propName] = this.property(data[propName]);\n return acc;\n }, emptyProps);\n };\n this.property = (data) => {\n switch (typeof data) {\n case 'string':\n return { type: 'string' };\n case 'boolean':\n return { type: 'boolean' };\n case 'number':\n if (Number.isInteger(data)) {\n return { type: 'integer' };\n }\n return { type: 'number' };\n case 'object':\n if (data == null) {\n return { type: 'null' };\n }\n return this.schemaObjectOrArray(data);\n default:\n return {};\n }\n };\n this.schemaObjectOrArray = (data) => {\n if (data instanceof Array) {\n return this.schemaArray(data);\n }\n else {\n return this.schemaObject(data);\n }\n };\n this.schemaArray = (data) => {\n if (data.length > 0) {\n const allProperties = data.map(this.property);\n const uniqueProperties = distinct(allProperties, (prop) => JSON.stringify(prop));\n if (uniqueProperties.length === 1) {\n return {\n type: 'array',\n items: uniqueProperties[0],\n };\n }\n else {\n return {\n type: 'array',\n items: {\n oneOf: uniqueProperties,\n },\n };\n }\n }\n else {\n return {\n type: 'array',\n items: {},\n };\n }\n };\n }\n}\nconst generateJsonSchema = (\ninstance, options = {}) => {\n const findOption = (props) => (optionName) => {\n switch (optionName) {\n case ADDITIONAL_PROPERTIES:\n if (Object.prototype.hasOwnProperty.call(options, ADDITIONAL_PROPERTIES)) {\n return options[ADDITIONAL_PROPERTIES];\n }\n return true;\n case REQUIRED_PROPERTIES:\n if (Object.prototype.hasOwnProperty.call(options, REQUIRED_PROPERTIES)) {\n return options[REQUIRED_PROPERTIES](props);\n }\n return Object.keys(props);\n default:\n return;\n }\n };\n const gen = new Gen(findOption);\n return gen.schemaObject(instance);\n};\n\nconst Draft4 = {\n id: 'http://json-schema.org/draft-04/schema#',\n $schema: 'http://json-schema.org/draft-04/schema#',\n description: 'Core schema meta-schema',\n definitions: {\n schemaArray: {\n type: 'array',\n minItems: 1,\n items: { $ref: '#' },\n },\n positiveInteger: {\n type: 'integer',\n minimum: 0,\n },\n positiveIntegerDefault0: {\n allOf: [{ $ref: '#/definitions/positiveInteger' }, { default: 0 }],\n },\n simpleTypes: {\n enum: [\n 'array',\n 'boolean',\n 'integer',\n 'null',\n 'number',\n 'object',\n 'string',\n ],\n },\n stringArray: {\n type: 'array',\n items: { type: 'string' },\n minItems: 1,\n uniqueItems: true,\n },\n },\n type: 'object',\n properties: {\n id: {\n type: 'string',\n format: 'uri',\n },\n $schema: {\n type: 'string',\n format: 'uri',\n },\n title: {\n type: 'string',\n },\n description: {\n type: 'string',\n },\n default: {},\n multipleOf: {\n type: 'number',\n minimum: 0,\n exclusiveMinimum: true,\n },\n maximum: {\n type: 'number',\n },\n exclusiveMaximum: {\n type: 'boolean',\n default: false,\n },\n minimum: {\n type: 'number',\n },\n exclusiveMinimum: {\n type: 'boolean',\n default: false,\n },\n maxLength: { $ref: '#/definitions/positiveInteger' },\n minLength: { $ref: '#/definitions/positiveIntegerDefault0' },\n pattern: {\n type: 'string',\n format: 'regex',\n },\n additionalItems: {\n anyOf: [{ type: 'boolean' }, { $ref: '#' }],\n default: {},\n },\n items: {\n anyOf: [{ $ref: '#' }, { $ref: '#/definitions/schemaArray' }],\n default: {},\n },\n maxItems: { $ref: '#/definitions/positiveInteger' },\n minItems: { $ref: '#/definitions/positiveIntegerDefault0' },\n uniqueItems: {\n type: 'boolean',\n default: false,\n },\n maxProperties: { $ref: '#/definitions/positiveInteger' },\n minProperties: { $ref: '#/definitions/positiveIntegerDefault0' },\n required: { $ref: '#/definitions/stringArray' },\n additionalProperties: {\n anyOf: [{ type: 'boolean' }, { $ref: '#' }],\n default: {},\n },\n definitions: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n default: {},\n },\n properties: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n default: {},\n },\n patternProperties: {\n type: 'object',\n additionalProperties: { $ref: '#' },\n default: {},\n },\n dependencies: {\n type: 'object',\n additionalProperties: {\n anyOf: [{ $ref: '#' }, { $ref: '#/definitions/stringArray' }],\n },\n },\n enum: {\n type: 'array',\n minItems: 1,\n uniqueItems: true,\n },\n type: {\n anyOf: [\n { $ref: '#/definitions/simpleTypes' },\n {\n type: 'array',\n items: { $ref: '#/definitions/simpleTypes' },\n minItems: 1,\n uniqueItems: true,\n },\n ],\n },\n allOf: { $ref: '#/definitions/schemaArray' },\n anyOf: { $ref: '#/definitions/schemaArray' },\n oneOf: { $ref: '#/definitions/schemaArray' },\n not: { $ref: '#' },\n },\n dependencies: {\n exclusiveMaximum: ['maximum'],\n exclusiveMinimum: ['minimum'],\n },\n default: {},\n};\n\nvar RuleEffect;\n(function (RuleEffect) {\n RuleEffect[\"HIDE\"] = \"HIDE\";\n RuleEffect[\"SHOW\"] = \"SHOW\";\n RuleEffect[\"ENABLE\"] = \"ENABLE\";\n RuleEffect[\"DISABLE\"] = \"DISABLE\";\n})(RuleEffect || (RuleEffect = {}));\nconst isInternationalized = (element) => typeof element === 'object' &&\n element !== null &&\n typeof element.i18n === 'string';\nconst isGroup = (layout) => layout.type === 'Group';\nconst isLayout = (uischema) => uischema.elements !== undefined;\nconst isScopable = (obj) => !!obj && typeof obj === 'object';\nconst isScoped = (obj) => isScopable(obj) && typeof obj.scope === 'string';\nconst isLabelable = (obj) => !!obj && typeof obj === 'object';\nconst isLabeled = (obj) => isLabelable(obj) && ['string', 'boolean'].includes(typeof obj.label);\n\nconst move = (array, index, delta) => {\n const newIndex = index + delta;\n if (newIndex < 0 || newIndex >= array.length) {\n return;\n }\n const indexes = [index, newIndex].sort((a, b) => a - b);\n array.splice(indexes[0], 2, array[indexes[1]], array[indexes[0]]);\n};\nconst moveUp = (array, toMove) => {\n move(array, toMove, -1);\n};\nconst moveDown = (array, toMove) => {\n move(array, toMove, 1);\n};\n\nconst cellReducer = (state = [], { type, tester, cell }) => {\n switch (type) {\n case ADD_CELL:\n return state.concat([{ tester, cell }]);\n case REMOVE_CELL:\n return state.filter((t) => t.tester !== tester);\n default:\n return state;\n }\n};\n\nconst configDefault = {\n restrict: false,\n trim: false,\n showUnfocusedDescription: false,\n hideRequiredAsterisk: false,\n};\n\nconst applyDefaultConfiguration = (config = {}) => merge({}, configDefault, config);\nconst configReducer = (state = applyDefaultConfiguration(), action) => {\n switch (action.type) {\n case SET_CONFIG:\n return applyDefaultConfiguration(action.config);\n default:\n return state;\n }\n};\n\nconst validate = (validator, data) => {\n if (validator === undefined) {\n return [];\n }\n const valid = validator(data);\n if (valid) {\n return [];\n }\n return validator.errors;\n};\nconst initState = {\n data: {},\n schema: {},\n uischema: undefined,\n errors: [],\n validator: undefined,\n ajv: undefined,\n validationMode: 'ValidateAndShow',\n additionalErrors: [],\n};\nconst getOrCreateAjv = (state, action) => {\n if (action) {\n if (hasAjvOption(action.options)) {\n return action.options.ajv;\n }\n else if (action.options !== undefined) {\n if (isFunction(action.options.compile)) {\n return action.options;\n }\n }\n }\n return state.ajv ? state.ajv : createAjv();\n};\nconst hasAjvOption = (option) => {\n if (option) {\n return option.ajv !== undefined;\n }\n return false;\n};\nconst getValidationMode = (state, action) => {\n if (action && hasValidationModeOption(action.options)) {\n return action.options.validationMode;\n }\n return state.validationMode;\n};\nconst hasValidationModeOption = (option) => {\n if (option) {\n return option.validationMode !== undefined;\n }\n return false;\n};\nconst hasAdditionalErrorsOption = (option) => {\n if (option) {\n return option.additionalErrors !== undefined;\n }\n return false;\n};\nconst getAdditionalErrors = (state, action) => {\n if (action && hasAdditionalErrorsOption(action.options)) {\n return action.options.additionalErrors;\n }\n return state.additionalErrors;\n};\nconst coreReducer = (state = initState, action) => {\n switch (action.type) {\n case INIT: {\n const thisAjv = getOrCreateAjv(state, action);\n const validationMode = getValidationMode(state, action);\n const v = validationMode === 'NoValidation'\n ? undefined\n : thisAjv.compile(action.schema);\n const e = validate(v, action.data);\n const additionalErrors = getAdditionalErrors(state, action);\n return {\n ...state,\n data: action.data,\n schema: action.schema,\n uischema: action.uischema,\n additionalErrors,\n errors: e,\n validator: v,\n ajv: thisAjv,\n validationMode,\n };\n }\n case UPDATE_CORE: {\n const thisAjv = getOrCreateAjv(state, action);\n const validationMode = getValidationMode(state, action);\n let validator = state.validator;\n let errors = state.errors;\n if (state.schema !== action.schema ||\n state.validationMode !== validationMode ||\n state.ajv !== thisAjv) {\n validator =\n validationMode === 'NoValidation'\n ? undefined\n : thisAjv.compile(action.schema);\n errors = validate(validator, action.data);\n }\n else if (state.data !== action.data) {\n errors = validate(validator, action.data);\n }\n const additionalErrors = getAdditionalErrors(state, action);\n const stateChanged = state.data !== action.data ||\n state.schema !== action.schema ||\n state.uischema !== action.uischema ||\n state.ajv !== thisAjv ||\n state.errors !== errors ||\n state.validator !== validator ||\n state.validationMode !== validationMode ||\n state.additionalErrors !== additionalErrors;\n return stateChanged\n ? {\n ...state,\n data: action.data,\n schema: action.schema,\n uischema: action.uischema,\n ajv: thisAjv,\n errors: isEqual(errors, state.errors) ? state.errors : errors,\n validator: validator,\n validationMode: validationMode,\n additionalErrors,\n }\n : state;\n }\n case SET_AJV: {\n const currentAjv = action.ajv;\n const validator = state.validationMode === 'NoValidation'\n ? undefined\n : currentAjv.compile(state.schema);\n const errors = validate(validator, state.data);\n return {\n ...state,\n validator,\n errors,\n };\n }\n case SET_SCHEMA: {\n const needsNewValidator = action.schema && state.ajv && state.validationMode !== 'NoValidation';\n const v = needsNewValidator\n ? state.ajv.compile(action.schema)\n : state.validator;\n const errors = validate(v, state.data);\n return {\n ...state,\n validator: v,\n schema: action.schema,\n errors,\n };\n }\n case SET_UISCHEMA: {\n return {\n ...state,\n uischema: action.uischema,\n };\n }\n case UPDATE_DATA: {\n if (action.path === undefined || action.path === null) {\n return state;\n }\n else if (action.path === '') {\n const result = action.updater(cloneDeep(state.data));\n const errors = validate(state.validator, result);\n return {\n ...state,\n data: result,\n errors,\n };\n }\n else {\n const oldData = get(state.data, action.path);\n const newData = action.updater(cloneDeep(oldData));\n let newState;\n if (newData !== undefined) {\n newState = setFp(action.path, newData, state.data === undefined ? {} : state.data);\n }\n else {\n newState = unsetFp(action.path, state.data === undefined ? {} : state.data);\n }\n const errors = validate(state.validator, newState);\n return {\n ...state,\n data: newState,\n errors,\n };\n }\n }\n case UPDATE_ERRORS: {\n return {\n ...state,\n errors: action.errors,\n };\n }\n case SET_VALIDATION_MODE: {\n if (state.validationMode === action.validationMode) {\n return state;\n }\n if (action.validationMode === 'NoValidation') {\n const errors = validate(undefined, state.data);\n return {\n ...state,\n errors,\n validationMode: action.validationMode,\n };\n }\n if (state.validationMode === 'NoValidation') {\n const validator = state.ajv.compile(state.schema);\n const errors = validate(validator, state.data);\n return {\n ...state,\n validator,\n errors,\n validationMode: action.validationMode,\n };\n }\n return {\n ...state,\n validationMode: action.validationMode,\n };\n }\n default:\n return state;\n }\n};\nconst extractData = (state) => get(state, 'data');\nconst extractSchema = (state) => get(state, 'schema');\nconst extractUiSchema = (state) => get(state, 'uischema');\nconst extractAjv = (state) => get(state, 'ajv');\nconst getInvalidProperty = (error) => {\n switch (error.keyword) {\n case 'required':\n case 'dependencies':\n return error.params.missingProperty;\n case 'additionalProperties':\n return error.params.additionalProperty;\n default:\n return undefined;\n }\n};\nconst getControlPath = (error) => {\n let controlPath = error.dataPath || error.instancePath || '';\n controlPath = controlPath.replace(/\\//g, '.');\n const invalidProperty = getInvalidProperty(error);\n if (invalidProperty !== undefined && !controlPath.endsWith(invalidProperty)) {\n controlPath = `${controlPath}.${invalidProperty}`;\n }\n controlPath = controlPath.replace(/^./, '');\n controlPath = decode(controlPath);\n return controlPath;\n};\nconst errorsAt = (instancePath, schema, matchPath) => (errors) => {\n const combinatorPaths = filter(errors, (error) => error.keyword === 'oneOf' || error.keyword === 'anyOf').map((error) => getControlPath(error));\n return filter(errors, (error) => {\n if (filteredErrorKeywords.indexOf(error.keyword) !== -1 &&\n !isOneOfEnumSchema(error.parentSchema)) {\n return false;\n }\n const controlPath = getControlPath(error);\n let result = matchPath(controlPath);\n const parentSchema = error.parentSchema;\n if (result &&\n !isObjectSchema$1(parentSchema) &&\n !isOneOfEnumSchema(parentSchema) &&\n combinatorPaths.findIndex((p) => instancePath.startsWith(p)) !== -1) {\n result = result && isEqual(parentSchema, schema);\n }\n return result;\n });\n};\nconst isObjectSchema$1 = (schema) => {\n return schema?.type === 'object' || !!schema?.properties;\n};\nconst filteredErrorKeywords = [\n 'additionalProperties',\n 'allOf',\n 'anyOf',\n 'oneOf',\n];\nconst getErrorsAt = (instancePath, schema, matchPath) => (state) => {\n const errors = state.errors ?? [];\n const additionalErrors = state.additionalErrors ?? [];\n return errorsAt(instancePath, schema, matchPath)(state.validationMode === 'ValidateAndHide'\n ? additionalErrors\n : [...errors, ...additionalErrors]);\n};\nconst errorAt = (instancePath, schema) => getErrorsAt(instancePath, schema, (path) => path === instancePath);\nconst subErrorsAt = (instancePath, schema) => getErrorsAt(instancePath, schema, (path) => path.startsWith(instancePath + '.'));\n\nconst defaultDataReducer = (state = [], action) => {\n switch (action.type) {\n case ADD_DEFAULT_DATA:\n return state.concat([\n { schemaPath: action.schemaPath, data: action.data },\n ]);\n case REMOVE_DEFAULT_DATA:\n return state.filter((t) => t.schemaPath !== action.schemaPath);\n default:\n return state;\n }\n};\nconst extractDefaultData = (state) => state;\n\nconst getI18nKeyPrefixBySchema = (schema, uischema) => {\n if (isInternationalized(uischema)) {\n return uischema.i18n;\n }\n return schema?.i18n ?? undefined;\n};\nconst transformPathToI18nPrefix = (path) => {\n return (path\n ?.split('.')\n .filter((segment) => !/^\\d+$/.test(segment))\n .join('.') || 'root');\n};\nconst getI18nKeyPrefix = (schema, uischema, path) => {\n return (getI18nKeyPrefixBySchema(schema, uischema) ??\n transformPathToI18nPrefix(path));\n};\nconst getI18nKey = (schema, uischema, path, key) => {\n return `${getI18nKeyPrefix(schema, uischema, path)}.${key}`;\n};\nconst addI18nKeyToPrefix = (i18nKeyPrefix, key) => {\n return `${i18nKeyPrefix}.${key}`;\n};\nconst defaultTranslator = (_id, defaultMessage) => defaultMessage;\nconst defaultErrorTranslator = (error, t, uischema) => {\n const i18nKey = getI18nKey(error.parentSchema, uischema, getControlPath(error), `error.${error.keyword}`);\n const specializedKeywordMessage = t(i18nKey, undefined, { error });\n if (specializedKeywordMessage !== undefined) {\n return specializedKeywordMessage;\n }\n const genericKeywordMessage = t(`error.${error.keyword}`, undefined, {\n error,\n });\n if (genericKeywordMessage !== undefined) {\n return genericKeywordMessage;\n }\n const messageCustomization = t(error.message, undefined, { error });\n if (messageCustomization !== undefined) {\n return messageCustomization;\n }\n if (error.keyword === 'required' &&\n error.message?.startsWith('must have required property')) {\n return t('is a required property', 'is a required property', { error });\n }\n return error.message;\n};\nconst getCombinedErrorMessage = (errors, et, t, schema, uischema, path) => {\n if (errors.length > 0 && t) {\n const customErrorKey = getI18nKey(schema, uischema, path, 'error.custom');\n const specializedErrorMessage = t(customErrorKey, undefined, {\n schema,\n uischema,\n path,\n errors,\n });\n if (specializedErrorMessage !== undefined) {\n return specializedErrorMessage;\n }\n }\n return formatErrorMessage(errors.map((error) => et(error, t, uischema)));\n};\nconst deriveLabelForUISchemaElement = (uischema, t) => {\n if (uischema.label === false) {\n return undefined;\n }\n if ((uischema.label === undefined ||\n uischema.label === null ||\n uischema.label === true) &&\n !isInternationalized(uischema)) {\n return undefined;\n }\n const stringifiedLabel = typeof uischema.label === 'string'\n ? uischema.label\n : JSON.stringify(uischema.label);\n const i18nKeyPrefix = getI18nKeyPrefixBySchema(undefined, uischema);\n const i18nKey = typeof i18nKeyPrefix === 'string'\n ? `${i18nKeyPrefix}.label`\n : stringifiedLabel;\n return t(i18nKey, stringifiedLabel, { uischema: uischema });\n};\nconst getArrayTranslations = (t, defaultTranslations, i18nKeyPrefix, label) => {\n const translations = {};\n defaultTranslations.forEach((controlElement) => {\n const key = addI18nKeyToPrefix(i18nKeyPrefix, controlElement.key);\n translations[controlElement.key] = t(key, controlElement.default(label));\n });\n return translations;\n};\nconst getCombinatorTranslations = (t, defaultTranslations, i18nKeyPrefix, label) => {\n const translations = {};\n defaultTranslations.forEach((controlElement) => {\n const key = addI18nKeyToPrefix(i18nKeyPrefix, controlElement.key);\n translations[controlElement.key] = t(key, controlElement.default(label));\n });\n return translations;\n};\n\nvar ArrayTranslationEnum;\n(function (ArrayTranslationEnum) {\n ArrayTranslationEnum[\"addTooltip\"] = \"addTooltip\";\n ArrayTranslationEnum[\"addAriaLabel\"] = \"addAriaLabel\";\n ArrayTranslationEnum[\"removeTooltip\"] = \"removeTooltip\";\n ArrayTranslationEnum[\"upAriaLabel\"] = \"upAriaLabel\";\n ArrayTranslationEnum[\"downAriaLabel\"] = \"downAriaLabel\";\n ArrayTranslationEnum[\"noSelection\"] = \"noSelection\";\n ArrayTranslationEnum[\"removeAriaLabel\"] = \"removeAriaLabel\";\n ArrayTranslationEnum[\"noDataMessage\"] = \"noDataMessage\";\n ArrayTranslationEnum[\"deleteDialogTitle\"] = \"deleteDialogTitle\";\n ArrayTranslationEnum[\"deleteDialogMessage\"] = \"deleteDialogMessage\";\n ArrayTranslationEnum[\"deleteDialogAccept\"] = \"deleteDialogAccept\";\n ArrayTranslationEnum[\"deleteDialogDecline\"] = \"deleteDialogDecline\";\n ArrayTranslationEnum[\"up\"] = \"up\";\n ArrayTranslationEnum[\"down\"] = \"down\";\n})(ArrayTranslationEnum || (ArrayTranslationEnum = {}));\nconst arrayDefaultTranslations = [\n {\n key: ArrayTranslationEnum.addTooltip,\n default: (input) => (input ? `Add to ${input}` : 'Add'),\n },\n {\n key: ArrayTranslationEnum.addAriaLabel,\n default: (input) => (input ? `Add to ${input} button` : 'Add button'),\n },\n { key: ArrayTranslationEnum.removeTooltip, default: () => 'Delete' },\n { key: ArrayTranslationEnum.removeAriaLabel, default: () => 'Delete button' },\n { key: ArrayTranslationEnum.upAriaLabel, default: () => `Move item up` },\n { key: ArrayTranslationEnum.up, default: () => 'Up' },\n { key: ArrayTranslationEnum.down, default: () => 'Down' },\n { key: ArrayTranslationEnum.downAriaLabel, default: () => `Move item down` },\n { key: ArrayTranslationEnum.noDataMessage, default: () => 'No data' },\n { key: ArrayTranslationEnum.noSelection, default: () => 'No selection' },\n {\n key: ArrayTranslationEnum.deleteDialogTitle,\n default: () => 'Confirm Deletion',\n },\n {\n key: ArrayTranslationEnum.deleteDialogMessage,\n default: () => 'Are you sure you want to delete the selected entry?',\n },\n { key: ArrayTranslationEnum.deleteDialogAccept, default: () => 'Yes' },\n { key: ArrayTranslationEnum.deleteDialogDecline, default: () => 'No' },\n];\n\nvar CombinatorTranslationEnum;\n(function (CombinatorTranslationEnum) {\n CombinatorTranslationEnum[\"clearDialogTitle\"] = \"clearDialogTitle\";\n CombinatorTranslationEnum[\"clearDialogMessage\"] = \"clearDialogMessage\";\n CombinatorTranslationEnum[\"clearDialogAccept\"] = \"clearDialogAccept\";\n CombinatorTranslationEnum[\"clearDialogDecline\"] = \"clearDialogDecline\";\n})(CombinatorTranslationEnum || (CombinatorTranslationEnum = {}));\nconst combinatorDefaultTranslations = [\n {\n key: CombinatorTranslationEnum.clearDialogTitle,\n default: () => 'Clear form?',\n },\n {\n key: CombinatorTranslationEnum.clearDialogMessage,\n default: () => 'Your data will be cleared. Do you want to proceed?',\n },\n { key: CombinatorTranslationEnum.clearDialogAccept, default: () => 'Yes' },\n { key: CombinatorTranslationEnum.clearDialogDecline, default: () => 'No' },\n];\n\nconst defaultJsonFormsI18nState = {\n locale: 'en',\n translate: defaultTranslator,\n translateError: defaultErrorTranslator,\n};\nconst i18nReducer = (state = defaultJsonFormsI18nState, action) => {\n switch (action.type) {\n case UPDATE_I18N: {\n const locale = action.locale ?? defaultJsonFormsI18nState.locale;\n const translate = action.translator ?? defaultJsonFormsI18nState.translate;\n const translateError = action.errorTranslator ?? defaultJsonFormsI18nState.translateError;\n if (locale !== state.locale ||\n translate !== state.translate ||\n translateError !== state.translateError) {\n return {\n ...state,\n locale,\n translate,\n translateError,\n };\n }\n return state;\n }\n case SET_TRANSLATOR:\n return {\n ...state,\n translate: action.translator ?? defaultTranslator,\n translateError: action.errorTranslator ?? defaultErrorTranslator,\n };\n case SET_LOCALE:\n return {\n ...state,\n locale: action.locale ?? navigator.languages[0],\n };\n default:\n return state;\n }\n};\nconst fetchLocale = (state) => {\n if (state === undefined) {\n return undefined;\n }\n return state.locale;\n};\nconst fetchTranslator = (state) => {\n if (state === undefined) {\n return defaultTranslator;\n }\n return state.translate;\n};\nconst fetchErrorTranslator = (state) => {\n if (state === undefined) {\n return defaultErrorTranslator;\n }\n return state.translateError;\n};\n\nconst rendererReducer = (state = [], action) => {\n switch (action.type) {\n case ADD_RENDERER:\n return state.concat([\n { tester: action.tester, renderer: action.renderer },\n ]);\n case REMOVE_RENDERER:\n return state.filter((t) => t.tester !== action.tester);\n default:\n return state;\n }\n};\n\nconst NOT_APPLICABLE = -1;\nconst isControl = (uischema) => !isEmpty(uischema) && uischema.scope !== undefined;\nconst schemaMatches = (predicate) => (uischema, schema, context) => {\n if (isEmpty(uischema) || !isControl(uischema)) {\n return false;\n }\n if (isEmpty(schema)) {\n return false;\n }\n const schemaPath = uischema.scope;\n if (isEmpty(schemaPath)) {\n return false;\n }\n let currentDataSchema = schema;\n if (hasType(schema, 'object')) {\n currentDataSchema = resolveSchema(schema, schemaPath, context?.rootSchema);\n }\n if (currentDataSchema === undefined) {\n return false;\n }\n return predicate(currentDataSchema, context?.rootSchema);\n};\nconst schemaSubPathMatches = (subPath, predicate) => (uischema, schema, context) => {\n if (isEmpty(uischema) || !isControl(uischema)) {\n return false;\n }\n const schemaPath = uischema.scope;\n let currentDataSchema = schema;\n if (hasType(schema, 'object')) {\n currentDataSchema = resolveSchema(schema, schemaPath, context?.rootSchema);\n }\n currentDataSchema = get(currentDataSchema, subPath);\n if (currentDataSchema === undefined) {\n return false;\n }\n return predicate(currentDataSchema, context?.rootSchema);\n};\nconst schemaTypeIs = (expectedType) => schemaMatches((schema) => !isEmpty(schema) && hasType(schema, expectedType));\nconst formatIs = (expectedFormat) => schemaMatches((schema) => !isEmpty(schema) &&\n schema.format === expectedFormat &&\n hasType(schema, 'string'));\nconst uiTypeIs = (expected) => (uischema) => !isEmpty(uischema) && uischema.type === expected;\nconst optionIs = (optionName, optionValue) => (uischema) => {\n if (isEmpty(uischema)) {\n return false;\n }\n const options = uischema.options;\n return !isEmpty(options) && options[optionName] === optionValue;\n};\nconst scopeEndsWith = (expected) => (uischema) => {\n if (isEmpty(expected) || !isControl(uischema)) {\n return false;\n }\n return endsWith(uischema.scope, expected);\n};\nconst scopeEndIs = (expected) => (uischema) => {\n if (isEmpty(expected) || !isControl(uischema)) {\n return false;\n }\n const schemaPath = uischema.scope;\n return !isEmpty(schemaPath) && last(schemaPath.split('/')) === expected;\n};\nconst and = (...testers) => (uischema, schema, context) => testers.reduce((acc, tester) => acc && tester(uischema, schema, context), true);\nconst or = (...testers) => (uischema, schema, context) => testers.reduce((acc, tester) => acc || tester(uischema, schema, context), false);\nconst rankWith = (rank, tester) => (uischema, schema, context) => {\n if (tester(uischema, schema, context)) {\n return rank;\n }\n return NOT_APPLICABLE;\n};\nconst withIncreasedRank = (by, rankedTester) => (uischema, schema, context) => {\n const rank = rankedTester(uischema, schema, context);\n if (rank === NOT_APPLICABLE) {\n return NOT_APPLICABLE;\n }\n return rank + by;\n};\nconst isBooleanControl = and(uiTypeIs('Control'), schemaTypeIs('boolean'));\nconst isObjectControl = and(uiTypeIs('Control'), schemaTypeIs('object'));\nconst isAllOfControl = and(uiTypeIs('Control'), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, 'allOf')));\nconst isAnyOfControl = and(uiTypeIs('Control'), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, 'anyOf')));\nconst isOneOfControl = and(uiTypeIs('Control'), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, 'oneOf')));\nconst isEnumControl = and(uiTypeIs('Control'), or(schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, 'enum')), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, 'const'))));\nconst isOneOfEnumControl = and(uiTypeIs('Control'), schemaMatches((schema) => isOneOfEnumSchema(schema)));\nconst isIntegerControl = and(uiTypeIs('Control'), schemaTypeIs('integer'));\nconst isNumberControl = and(uiTypeIs('Control'), schemaTypeIs('number'));\nconst isStringControl = and(uiTypeIs('Control'), schemaTypeIs('string'));\nconst isMultiLineControl = and(uiTypeIs('Control'), optionIs('multi', true));\nconst isDateControl = and(uiTypeIs('Control'), or(formatIs('date'), optionIs('format', 'date')));\nconst isTimeControl = and(uiTypeIs('Control'), or(formatIs('time'), optionIs('format', 'time')));\nconst isDateTimeControl = and(uiTypeIs('Control'), or(formatIs('date-time'), optionIs('format', 'date-time')));\nconst isObjectArray = and(schemaMatches((schema, rootSchema) => hasType(schema, 'array') &&\n !Array.isArray(resolveSchema(schema, 'items', rootSchema))\n), schemaSubPathMatches('items', (schema, rootSchema) => {\n const resolvedSchema = schema.$ref\n ? resolveSchema(rootSchema, schema.$ref, rootSchema)\n : schema;\n return hasType(resolvedSchema, 'object');\n}));\nconst isObjectArrayControl = and(uiTypeIs('Control'), isObjectArray);\nconst traverse = (any, pred, rootSchema) => {\n if (isArray(any)) {\n return reduce(any, (acc, el) => acc || traverse(el, pred, rootSchema), false);\n }\n if (pred(any)) {\n return true;\n }\n if (any.$ref) {\n const toTraverse = resolveSchema(rootSchema, any.$ref, rootSchema);\n if (toTraverse && !toTraverse.$ref) {\n return traverse(toTraverse, pred, rootSchema);\n }\n }\n if (any.items) {\n return traverse(any.items, pred, rootSchema);\n }\n if (any.properties) {\n return reduce(toPairs(any.properties), (acc, [_key, val]) => acc || traverse(val, pred, rootSchema), false);\n }\n return false;\n};\nconst isObjectArrayWithNesting = (uischema, schema, context) => {\n if (!uiTypeIs('Control')(uischema, schema, context)) {\n return false;\n }\n const schemaPath = uischema.scope;\n const resolvedSchema = resolveSchema(schema, schemaPath, context?.rootSchema ?? schema);\n let objectDepth = 0;\n if (resolvedSchema !== undefined && resolvedSchema.items !== undefined) {\n if (traverse(resolvedSchema.items, (val) => {\n if (val === schema) {\n return false;\n }\n if (val.$ref !== undefined) {\n return false;\n }\n if (val.anyOf || val.allOf) {\n return true;\n }\n if (val.oneOf && !isOneOfEnumSchema(val)) {\n return true;\n }\n if (hasType(val, 'object')) {\n objectDepth++;\n if (objectDepth === 2) {\n return true;\n }\n }\n if (hasType(val, 'array')) {\n return true;\n }\n return false;\n }, context?.rootSchema)) {\n return true;\n }\n if (uischema.options && uischema.options.detail) {\n if (typeof uischema.options.detail === 'string') {\n return uischema.options.detail.toUpperCase() !== 'DEFAULT';\n }\n else if (typeof uischema.options.detail === 'object' &&\n uischema.options.detail.type) {\n return true;\n }\n }\n }\n return false;\n};\nconst isArrayObjectControl = isObjectArrayControl;\nconst isPrimitiveArrayControl = and(uiTypeIs('Control'), schemaMatches((schema, rootSchema) => deriveTypes(schema).length !== 0 &&\n !Array.isArray(resolveSchema(schema, 'items', rootSchema))\n), schemaSubPathMatches('items', (schema, rootSchema) => {\n const resolvedSchema = schema.$ref\n ? resolveSchema(rootSchema, schema.$ref, rootSchema)\n : schema;\n const types = deriveTypes(resolvedSchema);\n return (types.length === 1 &&\n includes(['integer', 'number', 'boolean', 'string'], types[0]));\n}));\nconst isRangeControl = and(uiTypeIs('Control'), or(schemaTypeIs('number'), schemaTypeIs('integer')), schemaMatches((schema) => Object.prototype.hasOwnProperty.call(schema, 'maximum') &&\n Object.prototype.hasOwnProperty.call(schema, 'minimum') &&\n Object.prototype.hasOwnProperty.call(schema, 'default')), optionIs('slider', true));\nconst isNumberFormatControl = and(uiTypeIs('Control'), schemaTypeIs('integer'), optionIs('format', true));\nconst isCategorization = (category) => category.type === 'Categorization';\nconst isCategory = (uischema) => uischema.type === 'Category';\nconst hasCategory = (categorization) => {\n if (isEmpty(categorization.elements)) {\n return false;\n }\n return categorization.elements\n .map((elem) => isCategorization(elem) ? hasCategory(elem) : isCategory(elem))\n .reduce((prev, curr) => prev && curr, true);\n};\nconst categorizationHasCategory = (uischema) => hasCategory(uischema);\nconst not = (tester) => (uischema, schema, context) => !tester(uischema, schema, context);\n\nvar index$1 = /*#__PURE__*/Object.freeze({\n __proto__: null,\n NOT_APPLICABLE: NOT_APPLICABLE,\n isControl: isControl,\n schemaMatches: schemaMatches,\n schemaSubPathMatches: schemaSubPathMatches,\n schemaTypeIs: schemaTypeIs,\n formatIs: formatIs,\n uiTypeIs: uiTypeIs,\n optionIs: optionIs,\n scopeEndsWith: scopeEndsWith,\n scopeEndIs: scopeEndIs,\n and: and,\n or: or,\n rankWith: rankWith,\n withIncreasedRank: withIncreasedRank,\n isBooleanControl: isBooleanControl,\n isObjectControl: isObjectControl,\n isAllOfControl: isAllOfControl,\n isAnyOfControl: isAnyOfControl,\n isOneOfControl: isOneOfControl,\n isEnumControl: isEnumControl,\n isOneOfEnumControl: isOneOfEnumControl,\n isIntegerControl: isIntegerControl,\n isNumberControl: isNumberControl,\n isStringControl: isStringControl,\n isMultiLineControl: isMultiLineControl,\n isDateControl: isDateControl,\n isTimeControl: isTimeControl,\n isDateTimeControl: isDateTimeControl,\n isObjectArray: isObjectArray,\n isObjectArrayControl: isObjectArrayControl,\n isObjectArrayWithNesting: isObjectArrayWithNesting,\n isArrayObjectControl: isArrayObjectControl,\n isPrimitiveArrayControl: isPrimitiveArrayControl,\n isRangeControl: isRangeControl,\n isNumberFormatControl: isNumberFormatControl,\n isCategorization: isCategorization,\n isCategory: isCategory,\n hasCategory: hasCategory,\n categorizationHasCategory: categorizationHasCategory,\n not: not\n});\n\nconst uischemaRegistryReducer = (state = [], action) => {\n switch (action.type) {\n case ADD_UI_SCHEMA:\n return state\n .slice()\n .concat({ tester: action.tester, uischema: action.uischema });\n case REMOVE_UI_SCHEMA: {\n const copy = state.slice();\n remove(copy, (entry) => entry.tester === action.tester);\n return copy;\n }\n default:\n return state;\n }\n};\nconst findMatchingUISchema = (state) => (jsonSchema, schemaPath, path) => {\n const match = maxBy(state, (entry) => entry.tester(jsonSchema, schemaPath, path));\n if (match !== undefined &&\n match.tester(jsonSchema, schemaPath, path) !== NOT_APPLICABLE) {\n return match.uischema;\n }\n return undefined;\n};\n\nconst jsonFormsReducerConfig = {\n core: coreReducer,\n renderers: rendererReducer,\n cells: cellReducer,\n config: configReducer,\n uischemas: uischemaRegistryReducer,\n defaultData: defaultDataReducer,\n i18n: i18nReducer,\n};\nconst findUISchema = (uischemas, schema, schemaPath, path, fallback = 'VerticalLayout', control, rootSchema) => {\n if (control && control.options && control.options.detail) {\n if (typeof control.options.detail === 'string') {\n if (control.options.detail.toUpperCase() === 'GENERATE') {\n if (typeof fallback === 'function') {\n return fallback();\n }\n return Generate.uiSchema(schema, fallback, undefined, rootSchema);\n }\n }\n else if (typeof control.options.detail === 'object') {\n if (control.options.detail.type &&\n typeof control.options.detail.type === 'string') {\n return control.options.detail;\n }\n }\n }\n const uiSchema = findMatchingUISchema(uischemas)(schema, schemaPath, path);\n if (uiSchema === undefined) {\n if (typeof fallback === 'function') {\n return fallback();\n }\n return Generate.uiSchema(schema, fallback, '#', rootSchema);\n }\n return uiSchema;\n};\nconst getErrorAt = (instancePath, schema) => (state) => {\n return errorAt(instancePath, schema)(state.jsonforms.core);\n};\nconst getSubErrorsAt = (instancePath, schema) => (state) => subErrorsAt(instancePath, schema)(state.jsonforms.core);\nconst getConfig = (state) => state.jsonforms.config;\nconst getLocale = (state) => fetchLocale(get(state, 'jsonforms.i18n'));\nconst getTranslator = () => (state) => fetchTranslator(get(state, 'jsonforms.i18n'));\nconst getErrorTranslator = () => (state) => fetchErrorTranslator(get(state, 'jsonforms.i18n'));\n\nconst getData = (state) => extractData(get(state, 'jsonforms.core'));\nconst getSchema = (state) => extractSchema(get(state, 'jsonforms.core'));\nconst getUiSchema = (state) => extractUiSchema(get(state, 'jsonforms.core'));\nconst getAjv = (state) => extractAjv(get(state, 'jsonforms.core'));\nconst getDefaultData = (state) => extractDefaultData(get(state, 'jsonforms.defaultData'));\nconst getRenderers = (state) => get(state, 'jsonforms.renderers');\nconst getCells = (state) => get(state, 'jsonforms.cells');\nconst getUISchemas = (state) => get(state, 'jsonforms.uischemas');\n\nconst defaultMiddleware = (state, action, defaultReducer) => defaultReducer(state, action);\n\nconst compose = (path1, path2) => {\n let p1 = path1;\n if (!isEmpty(path1) && !isEmpty(path2) && !path2.startsWith('[')) {\n p1 = path1 + '.';\n }\n if (isEmpty(p1)) {\n return path2;\n }\n else if (isEmpty(path2)) {\n return p1;\n }\n else {\n return `${p1}${path2}`;\n }\n};\nconst toDataPathSegments = (schemaPath) => {\n const s = schemaPath\n .replace(/(anyOf|allOf|oneOf)\\/[\\d]+\\//g, '')\n .replace(/(then|else)\\//g, '');\n const segments = s.split('/');\n const decodedSegments = segments.map(decode);\n const startFromRoot = decodedSegments[0] === '#' || decodedSegments[0] === '';\n const startIndex = startFromRoot ? 2 : 1;\n return range(startIndex, decodedSegments.length, 2).map((idx) => decodedSegments[idx]);\n};\nconst toDataPath = (schemaPath) => {\n return toDataPathSegments(schemaPath).join('.');\n};\nconst composeWithUi = (scopableUi, path) => {\n if (!isScoped(scopableUi)) {\n return path ?? '';\n }\n const segments = toDataPathSegments(scopableUi.scope);\n if (isEmpty(segments)) {\n return path ?? '';\n }\n return compose(path, segments.join('.'));\n};\nconst encode = (segment) => segment?.replace(/~/g, '~0').replace(/\\//g, '~1');\nconst decode = (pointerSegment) => pointerSegment?.replace(/~1/g, '/').replace(/~0/, '~');\n\nconst isObjectSchema = (schema) => {\n return schema.properties !== undefined;\n};\nconst isArraySchema = (schema) => {\n return schema.type === 'array' && schema.items !== undefined;\n};\nconst resolveData = (instance, dataPath) => {\n if (isEmpty(dataPath)) {\n return instance;\n }\n const dataPathSegments = dataPath.split('.');\n return dataPathSegments.reduce((curInstance, decodedSegment) => {\n if (!curInstance ||\n !Object.prototype.hasOwnProperty.call(curInstance, decodedSegment)) {\n return undefined;\n }\n return curInstance[decodedSegment];\n }, instance);\n};\nconst findAllRefs = (schema, result = {}, resolveTuples = false) => {\n if (isObjectSchema(schema)) {\n Object.keys(schema.properties).forEach((key) => findAllRefs(schema.properties[key], result));\n }\n if (isArraySchema(schema)) {\n if (Array.isArray(schema.items)) {\n if (resolveTuples) {\n const items = schema.items;\n items.forEach((child) => findAllRefs(child, result));\n }\n }\n else {\n findAllRefs(schema.items, result);\n }\n }\n if (Array.isArray(schema.anyOf)) {\n const anyOf = schema.anyOf;\n anyOf.forEach((child) => findAllRefs(child, result));\n }\n if (schema.$ref !== undefined) {\n result[schema.$ref] = schema;\n }\n return result;\n};\nconst invalidSegment = (pathSegment) => pathSegment === '#' || pathSegment === undefined || pathSegment === '';\nconst resolveSchema = (schema, schemaPath, rootSchema) => {\n const segments = schemaPath?.split('/').map(decode);\n return resolveSchemaWithSegments(schema, segments, rootSchema);\n};\nconst resolveSchemaWithSegments = (schema, pathSegments, rootSchema) => {\n if (isEmpty(schema)) {\n return undefined;\n }\n if (schema.$ref) {\n schema = resolveSchema(rootSchema, schema.$ref, rootSchema);\n }\n if (!pathSegments || pathSegments.length === 0) {\n return schema;\n }\n const [segment, ...remainingSegments] = pathSegments;\n if (invalidSegment(segment)) {\n return resolveSchemaWithSegments(schema, remainingSegments, rootSchema);\n }\n const singleSegmentResolveSchema = get(schema, segment);\n const resolvedSchema = resolveSchemaWithSegments(singleSegmentResolveSchema, remainingSegments, rootSchema);\n if (resolvedSchema) {\n return resolvedSchema;\n }\n if (segment === 'properties' || segment === 'items') {\n let alternativeResolveResult = undefined;\n const subSchemas = [].concat(schema.oneOf ?? [], schema.allOf ?? [], schema.anyOf ?? [], schema.then ?? [], schema.else ?? []);\n for (const subSchema of subSchemas) {\n alternativeResolveResult = resolveSchemaWithSegments(subSchema, [segment, ...remainingSegments], rootSchema);\n if (alternativeResolveResult) {\n break;\n }\n }\n return alternativeResolveResult;\n }\n return undefined;\n};\n\nconst isOrCondition = (condition) => condition.type === 'OR';\nconst isAndCondition = (condition) => condition.type === 'AND';\nconst isLeafCondition = (condition) => condition.type === 'LEAF';\nconst isSchemaCondition = (condition) => has(condition, 'schema');\nconst getConditionScope = (condition, path) => {\n return composeWithUi(condition, path);\n};\nconst evaluateCondition = (data, condition, path, ajv) => {\n if (isAndCondition(condition)) {\n return condition.conditions.reduce((acc, cur) => acc && evaluateCondition(data, cur, path, ajv), true);\n }\n else if (isOrCondition(condition)) {\n return condition.conditions.reduce((acc, cur) => acc || evaluateCondition(data, cur, path, ajv), false);\n }\n else if (isLeafCondition(condition)) {\n const value = resolveData(data, getConditionScope(condition, path));\n return value === condition.expectedValue;\n }\n else if (isSchemaCondition(condition)) {\n const value = resolveData(data, getConditionScope(condition, path));\n if (condition.failWhenUndefined && value === undefined) {\n return false;\n }\n return ajv.validate(condition.schema, value);\n }\n else {\n return true;\n }\n};\nconst isRuleFulfilled = (uischema, data, path, ajv) => {\n const condition = uischema.rule.condition;\n return evaluateCondition(data, condition, path, ajv);\n};\nconst evalVisibility = (uischema, data, path = undefined, ajv) => {\n const fulfilled = isRuleFulfilled(uischema, data, path, ajv);\n switch (uischema.rule.effect) {\n case RuleEffect.HIDE:\n return !fulfilled;\n case RuleEffect.SHOW:\n return fulfilled;\n default:\n return true;\n }\n};\nconst evalEnablement = (uischema, data, path = undefined, ajv) => {\n const fulfilled = isRuleFulfilled(uischema, data, path, ajv);\n switch (uischema.rule.effect) {\n case RuleEffect.DISABLE:\n return !fulfilled;\n case RuleEffect.ENABLE:\n return fulfilled;\n default:\n return true;\n }\n};\nconst hasShowRule = (uischema) => {\n if (uischema.rule &&\n (uischema.rule.effect === RuleEffect.SHOW ||\n uischema.rule.effect === RuleEffect.HIDE)) {\n return true;\n }\n return false;\n};\nconst hasEnableRule = (uischema) => {\n if (uischema.rule &&\n (uischema.rule.effect === RuleEffect.ENABLE ||\n uischema.rule.effect === RuleEffect.DISABLE)) {\n return true;\n }\n return false;\n};\nconst isVisible = (uischema, data, path = undefined, ajv) => {\n if (uischema.rule) {\n return evalVisibility(uischema, data, path, ajv);\n }\n return true;\n};\nconst isEnabled = (uischema, data, path = undefined, ajv) => {\n if (uischema.rule) {\n return evalEnablement(uischema, data, path, ajv);\n }\n return true;\n};\nconst isInherentlyEnabled = (state, ownProps, uischema, schema, rootData, config) => {\n if (state?.jsonforms?.readonly) {\n return false;\n }\n if (uischema && hasEnableRule(uischema)) {\n return isEnabled(uischema, rootData, ownProps?.path, getAjv(state));\n }\n if (typeof uischema?.options?.readonly === 'boolean') {\n return !uischema.options.readonly;\n }\n if (typeof uischema?.options?.readOnly === 'boolean') {\n return !uischema.options.readOnly;\n }\n if (typeof config?.readonly === 'boolean') {\n return !config.readonly;\n }\n if (typeof config?.readOnly === 'boolean') {\n return !config.readOnly;\n }\n if (schema?.readOnly === true) {\n return false;\n }\n if (typeof ownProps?.enabled === 'boolean') {\n return ownProps.enabled;\n }\n return true;\n};\n\nconst convertDateToString = (date, format) => {\n const dateString = date.toISOString();\n if (format === 'date-time') {\n return dateString;\n }\n else if (format === 'date') {\n return dateString.split('T')[0];\n }\n else if (format === 'time') {\n return dateString.split('T')[1].split('.')[0];\n }\n return dateString;\n};\nconst convertToValidClassName = (s) => s.replace('#', 'root').replace(new RegExp('/', 'g'), '_');\nconst formatErrorMessage = (errors) => {\n if (errors === undefined || errors === null) {\n return '';\n }\n return errors.join('\\n');\n};\nconst hasType = (jsonSchema, expected) => {\n return includes(deriveTypes(jsonSchema), expected);\n};\nconst deriveTypes = (jsonSchema) => {\n if (isEmpty(jsonSchema)) {\n return [];\n }\n if (!isEmpty(jsonSchema.type) && typeof jsonSchema.type === 'string') {\n return [jsonSchema.type];\n }\n if (isArray(jsonSchema.type)) {\n return jsonSchema.type;\n }\n if (!isEmpty(jsonSchema.properties) ||\n !isEmpty(jsonSchema.additionalProperties)) {\n return ['object'];\n }\n if (!isEmpty(jsonSchema.items)) {\n return ['array'];\n }\n if (!isEmpty(jsonSchema.enum)) {\n const types = new Set();\n jsonSchema.enum.forEach((enumElement) => {\n if (typeof enumElement === 'string') {\n types.add('string');\n }\n else {\n deriveTypes(enumElement).forEach((type) => types.add(type));\n }\n });\n return Array.from(types);\n }\n if (!isEmpty(jsonSchema.allOf)) {\n const allOfType = find(jsonSchema.allOf, (schema) => deriveTypes(schema).length !== 0);\n if (allOfType) {\n return deriveTypes(allOfType);\n }\n }\n return [];\n};\nconst Resolve = {\n schema: resolveSchema,\n data: resolveData,\n};\nconst fromScoped = (scopable) => toDataPathSegments(scopable.scope).join('.');\nconst Paths = {\n compose: compose,\n fromScoped,\n};\nconst Runtime = {\n isEnabled(uischema, data, ajv) {\n return isEnabled(uischema, data, undefined, ajv);\n },\n isVisible(uischema, data, ajv) {\n return isVisible(uischema, data, undefined, ajv);\n },\n};\n\nconst deriveLabel = (controlElement, schemaElement) => {\n if (schemaElement && typeof schemaElement.title === 'string') {\n return schemaElement.title;\n }\n if (typeof controlElement.scope === 'string') {\n const ref = controlElement.scope;\n const label = decode(ref.substr(ref.lastIndexOf('/') + 1));\n return startCase(label);\n }\n return '';\n};\nconst createCleanLabel = (label) => {\n return startCase(label.replace('_', ' '));\n};\nconst createLabelDescriptionFrom = (withLabel, schema) => {\n const labelProperty = withLabel.label;\n if (typeof labelProperty === 'boolean') {\n return labelDescription(deriveLabel(withLabel, schema), labelProperty);\n }\n if (typeof labelProperty === 'string') {\n return labelDescription(labelProperty, true);\n }\n if (typeof labelProperty === 'object') {\n const label = typeof labelProperty.text === 'string'\n ? labelProperty.text\n : deriveLabel(withLabel, schema);\n const show = typeof labelProperty.show === 'boolean' ? labelProperty.show : true;\n return labelDescription(label, show);\n }\n return labelDescription(deriveLabel(withLabel, schema), true);\n};\nconst labelDescription = (text, show) => ({\n text: text,\n show: show,\n});\n\nconst isRequired = (schema, schemaPath, rootSchema) => {\n const pathSegments = schemaPath.split('/');\n const lastSegment = pathSegments[pathSegments.length - 1];\n const nextHigherSchemaSegments = pathSegments.slice(0, pathSegments.length - 2);\n const nextHigherSchemaPath = nextHigherSchemaSegments.join('/');\n const nextHigherSchema = Resolve.schema(schema, nextHigherSchemaPath, rootSchema);\n return (nextHigherSchema !== undefined &&\n nextHigherSchema.required !== undefined &&\n nextHigherSchema.required.indexOf(lastSegment) !== -1);\n};\nconst computeLabel = (label, required, hideRequiredAsterisk) => {\n return `${label ?? ''}${required && !hideRequiredAsterisk ? '*' : ''}`;\n};\nconst showAsRequired = (required, hideRequiredAsterisk) => {\n return required && !hideRequiredAsterisk;\n};\nconst createDefaultValue = (schema, rootSchema) => {\n const resolvedSchema = Resolve.schema(schema, schema.$ref, rootSchema);\n if (resolvedSchema.default !== undefined) {\n return extractDefaults(resolvedSchema, rootSchema);\n }\n if (hasType(resolvedSchema, 'string')) {\n if (resolvedSchema.format === 'date-time' ||\n resolvedSchema.format === 'date' ||\n resolvedSchema.format === 'time') {\n return convertDateToString(new Date(), resolvedSchema.format);\n }\n return '';\n }\n else if (hasType(resolvedSchema, 'integer') ||\n hasType(resolvedSchema, 'number')) {\n return 0;\n }\n else if (hasType(resolvedSchema, 'boolean')) {\n return false;\n }\n else if (hasType(resolvedSchema, 'array')) {\n return [];\n }\n else if (hasType(resolvedSchema, 'object')) {\n return extractDefaults(resolvedSchema, rootSchema);\n }\n else if (hasType(resolvedSchema, 'null')) {\n return null;\n }\n else {\n return {};\n }\n};\nconst extractDefaults = (schema, rootSchema) => {\n if (hasType(schema, 'object') && schema.default === undefined) {\n const result = {};\n for (const key in schema.properties) {\n const property = schema.properties[key];\n const resolvedProperty = property.$ref\n ? Resolve.schema(rootSchema, property.$ref, rootSchema)\n : property;\n if (resolvedProperty.default !== undefined) {\n result[key] = cloneDeep(resolvedProperty.default);\n }\n }\n return result;\n }\n return cloneDeep(schema.default);\n};\nconst isDescriptionHidden = (visible, description, isFocused, showUnfocusedDescription) => {\n return (description === undefined ||\n (description !== undefined && !visible) ||\n (!showUnfocusedDescription && !isFocused));\n};\nconst enumToEnumOptionMapper = (e, t, i18nKey) => {\n let label = typeof e === 'string' ? e : JSON.stringify(e);\n if (t) {\n if (i18nKey) {\n label = t(`${i18nKey}.${label}`, label);\n }\n else {\n label = t(label, label);\n }\n }\n return { label, value: e };\n};\nconst oneOfToEnumOptionMapper = (e, t, fallbackI18nKey) => {\n let label = e.title ??\n (typeof e.const === 'string' ? e.const : JSON.stringify(e.const));\n if (t) {\n if (e.i18n) {\n label = t(e.i18n, label);\n }\n else if (fallbackI18nKey) {\n label = t(`${fallbackI18nKey}.${label}`, label);\n }\n else {\n label = t(label, label);\n }\n }\n return {\n label,\n value: e.const,\n };\n};\nconst mapStateToControlProps = (state, ownProps) => {\n const { uischema } = ownProps;\n const rootData = getData(state);\n const path = composeWithUi(uischema, ownProps.path);\n const visible = ownProps.visible === undefined || hasShowRule(uischema)\n ? isVisible(uischema, rootData, ownProps.path, getAjv(state))\n : ownProps.visible;\n const controlElement = uischema;\n const id = ownProps.id;\n const rootSchema = getSchema(state);\n const required = controlElement.scope !== undefined &&\n isRequired(ownProps.schema, controlElement.scope, rootSchema);\n const resolvedSchema = Resolve.schema(ownProps.schema || rootSchema, controlElement.scope, rootSchema);\n const errors = getErrorAt(path, resolvedSchema)(state);\n const description = resolvedSchema !== undefined ? resolvedSchema.description : '';\n const data = Resolve.data(rootData, path);\n const labelDesc = createLabelDescriptionFrom(uischema, resolvedSchema);\n const label = labelDesc.show ? labelDesc.text : '';\n const config = getConfig(state);\n const enabled = isInherentlyEnabled(state, ownProps, uischema, resolvedSchema || rootSchema, rootData, config);\n const schema = resolvedSchema ?? rootSchema;\n const t = getTranslator()(state);\n const te = getErrorTranslator()(state);\n const i18nKeyPrefix = getI18nKeyPrefix(schema, uischema, path);\n const i18nLabel = t(getI18nKey(schema, uischema, path, 'label'), label, {\n schema,\n uischema,\n path,\n errors,\n });\n const i18nDescription = t(getI18nKey(schema, uischema, path, 'description'), description, { schema, uischema, path, errors });\n const i18nErrorMessage = getCombinedErrorMessage(errors, te, t, schema, uischema, path);\n return {\n data,\n description: i18nDescription,\n errors: i18nErrorMessage,\n label: i18nLabel,\n visible,\n enabled,\n id,\n path,\n required,\n uischema,\n schema,\n config: getConfig(state),\n cells: ownProps.cells || state.jsonforms.cells,\n rootSchema,\n i18nKeyPrefix,\n };\n};\nconst mapDispatchToControlProps = (dispatch) => ({\n handleChange(path, value) {\n dispatch(update(path, () => value));\n },\n});\nconst mapStateToEnumControlProps = (state, ownProps) => {\n const props = mapStateToControlProps(state, ownProps);\n const options = ownProps.options ||\n props.schema.enum?.map((e) => enumToEnumOptionMapper(e, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path))) ||\n (props.schema.const && [\n enumToEnumOptionMapper(props.schema.const, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path)),\n ]);\n return {\n ...props,\n options,\n };\n};\nconst mapStateToOneOfEnumControlProps = (state, ownProps) => {\n const props = mapStateToControlProps(state, ownProps);\n const options = ownProps.options ||\n props.schema.oneOf?.map((oneOfSubSchema) => oneOfToEnumOptionMapper(oneOfSubSchema, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path)));\n return {\n ...props,\n options,\n };\n};\nconst mapStateToMultiEnumControlProps = (state, ownProps) => {\n const props = mapStateToControlProps(state, ownProps);\n let items = props.schema.items;\n items =\n items && items.$ref\n ? resolveSchema(props.rootSchema, items.$ref, props.rootSchema)\n : items;\n const options = ownProps.options ||\n (items?.oneOf &&\n items.oneOf.map((oneOfSubSchema) => oneOfToEnumOptionMapper(oneOfSubSchema, state.jsonforms.i18n?.translate, getI18nKeyPrefix(props.schema, props.uischema, props.path)))) ||\n items?.enum?.map((e) => enumToEnumOptionMapper(e, state.jsonforms.i18n?.translate, getI18nKeyPrefix(props.schema, props.uischema, props.path)));\n return {\n ...props,\n options,\n };\n};\nconst mapStateToMasterListItemProps = (state, ownProps) => {\n const { schema, path, index } = ownProps;\n const firstPrimitiveProp = schema.properties\n ? find(Object.keys(schema.properties), (propName) => {\n const prop = schema.properties[propName];\n return (prop.type === 'string' ||\n prop.type === 'number' ||\n prop.type === 'integer');\n })\n : undefined;\n const childPath = compose(path, `${index}`);\n const childData = Resolve.data(getData(state), childPath);\n const childLabel = firstPrimitiveProp ? childData[firstPrimitiveProp] : '';\n return {\n ...ownProps,\n childLabel,\n };\n};\nconst mapStateToControlWithDetailProps = (state, ownProps) => {\n const { ...props } = mapStateToControlProps(state, ownProps);\n return {\n ...props,\n uischemas: state.jsonforms.uischemas,\n };\n};\nconst mapStateToArrayControlProps = (state, ownProps) => {\n const { path, schema, uischema, i18nKeyPrefix, label, ...props } = mapStateToControlWithDetailProps(state, ownProps);\n const resolvedSchema = Resolve.schema(schema, 'items', props.rootSchema);\n const childErrors = getSubErrorsAt(path, resolvedSchema)(state);\n const t = getTranslator()(state);\n return {\n ...props,\n label,\n path,\n uischema,\n schema: resolvedSchema,\n childErrors,\n renderers: ownProps.renderers || getRenderers(state),\n cells: ownProps.cells || getCells(state),\n translations: getArrayTranslations(t, arrayDefaultTranslations, i18nKeyPrefix, label),\n };\n};\nconst mapDispatchToArrayControlProps = (dispatch) => ({\n addItem: (path, value) => () => {\n dispatch(update(path, (array) => {\n if (array === undefined || array === null) {\n return [value];\n }\n array.push(value);\n return array;\n }));\n },\n removeItems: (path, toDelete) => () => {\n dispatch(update(path, (array) => {\n toDelete\n .sort((a, b) => a - b)\n .reverse()\n .forEach((s) => array.splice(s, 1));\n return array;\n }));\n },\n moveUp: (path, toMove) => () => {\n dispatch(update(path, (array) => {\n moveUp(array, toMove);\n return array;\n }));\n },\n moveDown: (path, toMove) => () => {\n dispatch(update(path, (array) => {\n moveDown(array, toMove);\n return array;\n }));\n },\n});\nconst mapDispatchToMultiEnumProps = (dispatch) => ({\n addItem: (path, value) => {\n dispatch(update(path, (data) => {\n if (data === undefined || data === null) {\n return [value];\n }\n data.push(value);\n return data;\n }));\n },\n removeItem: (path, toDelete) => {\n dispatch(update(path, (data) => {\n const indexInData = data.indexOf(toDelete);\n data.splice(indexInData, 1);\n return data;\n }));\n },\n});\nconst layoutDefaultProps = {\n visible: true,\n enabled: true,\n path: '',\n direction: 'column',\n};\nconst getDirection = (uischema) => {\n if (uischema.type === 'HorizontalLayout') {\n return 'row';\n }\n if (uischema.type === 'VerticalLayout') {\n return 'column';\n }\n return layoutDefaultProps.direction;\n};\nconst mapStateToLayoutProps = (state, ownProps) => {\n const rootData = getData(state);\n const { uischema } = ownProps;\n const visible = ownProps.visible === undefined || hasShowRule(uischema)\n ? isVisible(ownProps.uischema, rootData, ownProps.path, getAjv(state))\n : ownProps.visible;\n const data = Resolve.data(rootData, ownProps.path);\n const config = getConfig(state);\n const enabled = isInherentlyEnabled(state, ownProps, uischema, undefined,\n rootData, config);\n const t = getTranslator()(state);\n const label = isLabelable(uischema)\n ? deriveLabelForUISchemaElement(uischema, t)\n : undefined;\n return {\n ...layoutDefaultProps,\n renderers: ownProps.renderers || getRenderers(state),\n cells: ownProps.cells || getCells(state),\n visible,\n enabled,\n path: ownProps.path,\n data,\n uischema: ownProps.uischema,\n schema: ownProps.schema,\n direction: ownProps.direction ?? getDirection(uischema),\n config,\n label,\n };\n};\nconst mapStateToJsonFormsRendererProps = (state, ownProps) => {\n return {\n renderers: ownProps.renderers || get(state.jsonforms, 'renderers'),\n cells: ownProps.cells || get(state.jsonforms, 'cells'),\n schema: ownProps.schema || getSchema(state),\n rootSchema: getSchema(state),\n uischema: ownProps.uischema || getUiSchema(state),\n path: ownProps.path,\n enabled: ownProps.enabled,\n config: getConfig(state),\n };\n};\nconst controlDefaultProps = {\n ...layoutDefaultProps,\n errors: [],\n};\nconst mapStateToCombinatorRendererProps = (state, ownProps, keyword) => {\n const { data, schema, rootSchema, i18nKeyPrefix, label, ...props } = mapStateToControlProps(state, ownProps);\n const ajv = state.jsonforms.core.ajv;\n const t = getTranslator()(state);\n const translations = getCombinatorTranslations(t, combinatorDefaultTranslations, i18nKeyPrefix, label);\n const structuralKeywords = [\n 'required',\n 'additionalProperties',\n 'type',\n 'enum',\n 'const',\n ];\n const dataIsValid = (errors) => {\n return (!errors ||\n errors.length === 0 ||\n !errors.find((e) => structuralKeywords.indexOf(e.keyword) !== -1));\n };\n let indexOfFittingSchema;\n for (let i = 0; i < schema[keyword]?.length; i++) {\n try {\n let _schema = schema[keyword][i];\n if (_schema.$ref) {\n _schema = Resolve.schema(rootSchema, _schema.$ref, rootSchema);\n }\n const valFn = ajv.compile(_schema);\n valFn(data);\n if (dataIsValid(valFn.errors)) {\n indexOfFittingSchema = i;\n break;\n }\n }\n catch (error) {\n console.debug(\"Combinator subschema is not self contained, can't hand it over to AJV\");\n }\n }\n return {\n data,\n schema,\n rootSchema,\n ...props,\n i18nKeyPrefix,\n label,\n indexOfFittingSchema,\n uischemas: getUISchemas(state),\n translations,\n };\n};\nconst mapStateToAllOfProps = (state, ownProps) => mapStateToCombinatorRendererProps(state, ownProps, 'allOf');\nconst mapStateToAnyOfProps = (state, ownProps) => {\n return mapStateToCombinatorRendererProps(state, ownProps, 'anyOf');\n};\nconst mapStateToOneOfProps = (state, ownProps) => {\n return mapStateToCombinatorRendererProps(state, ownProps, 'oneOf');\n};\nconst mapStateToArrayLayoutProps = (state, ownProps) => {\n const { path, schema, uischema, errors, i18nKeyPrefix, label, ...props } = mapStateToControlWithDetailProps(state, ownProps);\n const resolvedSchema = Resolve.schema(schema, 'items', props.rootSchema);\n const t = getTranslator()(state);\n const childErrors = getCombinedErrorMessage(getSubErrorsAt(path, resolvedSchema)(state), getErrorTranslator()(state), t, undefined, undefined, undefined);\n const allErrors = errors +\n (errors.length > 0 && childErrors.length > 0 ? '\\n' : '') +\n childErrors;\n return {\n ...props,\n label,\n path,\n uischema,\n schema: resolvedSchema,\n data: props.data ? props.data.length : 0,\n errors: allErrors,\n minItems: schema.minItems,\n translations: getArrayTranslations(t, arrayDefaultTranslations, i18nKeyPrefix, label),\n };\n};\nconst mapStateToLabelProps = (state, props) => {\n const { uischema } = props;\n const visible = props.visible === undefined || hasShowRule(uischema)\n ? isVisible(props.uischema, getData(state), props.path, getAjv(state))\n : props.visible;\n const text = uischema.text;\n const t = getTranslator()(state);\n const i18nKeyPrefix = getI18nKeyPrefixBySchema(undefined, uischema);\n const i18nKey = i18nKeyPrefix ? `${i18nKeyPrefix}.text` : text ?? '';\n const i18nText = t(i18nKey, text, { uischema });\n return {\n text: i18nText,\n visible,\n config: getConfig(state),\n renderers: props.renderers || getRenderers(state),\n cells: props.cells || getCells(state),\n };\n};\n\nconst mapStateToCellProps = (state, ownProps) => {\n const { id, schema, path, uischema, renderers, cells } = ownProps;\n const rootData = getData(state);\n const visible = ownProps.visible !== undefined\n ? ownProps.visible\n : isVisible(uischema, rootData, undefined, getAjv(state));\n const rootSchema = getSchema(state);\n const config = getConfig(state);\n let enabled;\n if (state.jsonforms.readonly === true) {\n enabled = false;\n }\n else if (typeof ownProps.enabled === 'boolean') {\n enabled = ownProps.enabled;\n }\n else {\n enabled = isInherentlyEnabled(state, ownProps, uischema, schema || rootSchema, rootData, config);\n }\n const t = getTranslator()(state);\n const te = getErrorTranslator()(state);\n const errors = getCombinedErrorMessage(getErrorAt(path, schema)(state), te, t, schema, uischema, path);\n const isValid = isEmpty(errors);\n return {\n data: Resolve.data(rootData, path),\n visible,\n enabled,\n id,\n path,\n errors,\n isValid,\n schema,\n uischema,\n config: getConfig(state),\n rootSchema,\n renderers,\n cells,\n };\n};\nconst mapStateToDispatchCellProps = (state, ownProps) => {\n const props = mapStateToCellProps(state, ownProps);\n const { renderers: _renderers, cells, ...otherOwnProps } = ownProps;\n return {\n ...props,\n ...otherOwnProps,\n cells: cells || state.jsonforms.cells || [],\n };\n};\nconst defaultMapStateToEnumCellProps = (state, ownProps) => {\n const props = mapStateToCellProps(state, ownProps);\n const options = ownProps.options ||\n props.schema.enum?.map((e) => enumToEnumOptionMapper(e, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path))) ||\n (props.schema.const && [\n enumToEnumOptionMapper(props.schema.const, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path)),\n ]);\n return {\n ...props,\n options,\n };\n};\nconst mapStateToOneOfEnumCellProps = (state, ownProps) => {\n const props = mapStateToCellProps(state, ownProps);\n const options = ownProps.options ||\n props.schema.oneOf?.map((oneOfSubSchema) => oneOfToEnumOptionMapper(oneOfSubSchema, getTranslator()(state), getI18nKeyPrefix(props.schema, props.uischema, props.path)));\n return {\n ...props,\n options,\n };\n};\nconst mapDispatchToCellProps = mapDispatchToControlProps;\nconst defaultMapDispatchToControlProps =\n(dispatch, ownProps) => {\n const { handleChange } = mapDispatchToCellProps(dispatch);\n return {\n handleChange: ownProps.handleChange || handleChange,\n };\n};\n\nconst createCombinatorRenderInfos = (combinatorSubSchemas, rootSchema, keyword, control, path, uischemas) => combinatorSubSchemas.map((subSchema, subSchemaIndex) => {\n const resolvedSubSchema = subSchema.$ref && Resolve.schema(rootSchema, subSchema.$ref, rootSchema);\n const schema = resolvedSubSchema ?? subSchema;\n return {\n schema,\n uischema: findUISchema(uischemas, schema, control.scope, path, undefined, control, rootSchema),\n label: subSchema.title ??\n resolvedSubSchema?.title ??\n `${keyword}-${subSchemaIndex}`,\n };\n});\n\nconst usedIds = new Set();\nconst makeId = (idBase, iteration) => iteration <= 1 ? idBase : idBase + iteration.toString();\nconst isUniqueId = (idBase, iteration) => {\n const newID = makeId(idBase, iteration);\n return !usedIds.has(newID);\n};\nconst createId = (proposedId) => {\n if (proposedId === undefined) {\n proposedId = 'undefined';\n }\n let tries = 0;\n while (!isUniqueId(proposedId, tries)) {\n tries++;\n }\n const newID = makeId(proposedId, tries);\n usedIds.add(newID);\n return newID;\n};\nconst removeId = (id) => usedIds.delete(id);\nconst clearAllIds = () => usedIds.clear();\n\nconst getFirstPrimitiveProp = (schema) => {\n if (schema.properties) {\n return find(Object.keys(schema.properties), (propName) => {\n const prop = schema.properties[propName];\n return (prop.type === 'string' ||\n prop.type === 'number' ||\n prop.type === 'integer');\n });\n }\n return undefined;\n};\nconst isOneOfEnumSchema = (schema) => !!schema &&\n Object.prototype.hasOwnProperty.call(schema, 'oneOf') &&\n schema.oneOf &&\n schema.oneOf.every((s) => s.const !== undefined);\n\nconst setReadonlyPropertyValue = (value) => (child) => {\n if (!child.options) {\n child.options = {};\n }\n child.options.readonly = value;\n};\nconst setReadonly = (uischema) => {\n iterateSchema(uischema, setReadonlyPropertyValue(true));\n};\nconst unsetReadonly = (uischema) => {\n iterateSchema(uischema, setReadonlyPropertyValue(false));\n};\nconst iterateSchema = (uischema, toApply) => {\n if (isEmpty(uischema)) {\n return;\n }\n if (isLayout(uischema)) {\n uischema.elements.forEach((child) => iterateSchema(child, toApply));\n return;\n }\n toApply(uischema);\n};\n\nconst createAjv = (options) => {\n const ajv = new Ajv({\n allErrors: true,\n verbose: true,\n strict: false,\n addUsedSchema: false,\n ...options,\n });\n addFormats(ajv);\n return ajv;\n};\n\nconst defaultDateFormat = 'YYYY-MM-DD';\nconst defaultTimeFormat = 'HH:mm:ss';\nconst defaultDateTimeFormat = 'YYYY-MM-DDTHH:mm:ss.sssZ';\n\nconst createLayout = (layoutType) => ({\n type: layoutType,\n elements: [],\n});\nconst createControlElement = (ref) => ({\n type: 'Control',\n scope: ref,\n});\nconst wrapInLayoutIfNecessary = (uischema, layoutType) => {\n if (!isEmpty(uischema) && !isLayout(uischema)) {\n const verticalLayout = createLayout(layoutType);\n verticalLayout.elements.push(uischema);\n return verticalLayout;\n }\n return uischema;\n};\nconst addLabel = (layout, labelName) => {\n if (!isEmpty(labelName)) {\n const fixedLabel = startCase(labelName);\n if (isGroup(layout)) {\n layout.label = fixedLabel;\n }\n else {\n const label = {\n type: 'Label',\n text: fixedLabel,\n };\n layout.elements.push(label);\n }\n }\n};\nconst isCombinator = (jsonSchema) => {\n return (!isEmpty(jsonSchema) &&\n (!isEmpty(jsonSchema.oneOf) ||\n !isEmpty(jsonSchema.anyOf) ||\n !isEmpty(jsonSchema.allOf)));\n};\nconst generateUISchema = (jsonSchema, schemaElements, currentRef, schemaName, layoutType, rootSchema) => {\n if (!isEmpty(jsonSchema) && jsonSchema.$ref !== undefined) {\n return generateUISchema(resolveSchema(rootSchema, jsonSchema.$ref, rootSchema), schemaElements, currentRef, schemaName, layoutType, rootSchema);\n }\n if (isCombinator(jsonSchema)) {\n const controlObject = createControlElement(currentRef);\n schemaElements.push(controlObject);\n return controlObject;\n }\n const types = deriveTypes(jsonSchema);\n if (types.length === 0) {\n return null;\n }\n if (types.length > 1) {\n const controlObject = createControlElement(currentRef);\n schemaElements.push(controlObject);\n return controlObject;\n }\n if (currentRef === '#' && types[0] === 'object') {\n const layout = createLayout(layoutType);\n schemaElements.push(layout);\n if (jsonSchema.properties && keys(jsonSchema.properties).length > 1) {\n addLabel(layout, schemaName);\n }\n if (!isEmpty(jsonSchema.properties)) {\n const nextRef = currentRef + '/properties';\n Object.keys(jsonSchema.properties).map((propName) => {\n let value = jsonSchema.properties[propName];\n const ref = `${nextRef}/${encode(propName)}`;\n if (value.$ref !== undefined) {\n value = resolveSchema(rootSchema, value.$ref, rootSchema);\n }\n generateUISchema(value, layout.elements, ref, propName, layoutType, rootSchema);\n });\n }\n return layout;\n }\n switch (types[0]) {\n case 'object':\n case 'array':\n case 'string':\n case 'number':\n case 'integer':\n case 'null':\n case 'boolean': {\n const controlObject = createControlElement(currentRef);\n schemaElements.push(controlObject);\n return controlObject;\n }\n default:\n throw new Error('Unknown type: ' + JSON.stringify(jsonSchema));\n }\n};\nconst generateDefaultUISchema = (jsonSchema, layoutType = 'VerticalLayout', prefix = '#', rootSchema = jsonSchema) => wrapInLayoutIfNecessary(generateUISchema(jsonSchema, [], prefix, '', layoutType, rootSchema), layoutType);\n\nconst Generate = {\n jsonSchema: generateJsonSchema,\n uiSchema: generateDefaultUISchema,\n controlElement: createControlElement,\n};\n\nconst INIT = 'jsonforms/INIT';\nconst UPDATE_CORE = 'jsonforms/UPDATE_CORE';\nconst SET_AJV = 'jsonforms/SET_AJV';\nconst UPDATE_DATA = 'jsonforms/UPDATE';\nconst UPDATE_ERRORS = 'jsonforms/UPDATE_ERRORS';\nconst VALIDATE = 'jsonforms/VALIDATE';\nconst ADD_RENDERER = 'jsonforms/ADD_RENDERER';\nconst REMOVE_RENDERER = 'jsonforms/REMOVE_RENDERER';\nconst ADD_CELL = 'jsonforms/ADD_CELL';\nconst REMOVE_CELL = 'jsonforms/REMOVE_CELL';\nconst SET_CONFIG = 'jsonforms/SET_CONFIG';\nconst ADD_UI_SCHEMA = 'jsonforms/ADD_UI_SCHEMA';\nconst REMOVE_UI_SCHEMA = 'jsonforms/REMOVE_UI_SCHEMA';\nconst SET_SCHEMA = 'jsonforms/SET_SCHEMA';\nconst SET_UISCHEMA = 'jsonforms/SET_UISCHEMA';\nconst SET_VALIDATION_MODE = 'jsonforms/SET_VALIDATION_MODE';\nconst SET_LOCALE = 'jsonforms/SET_LOCALE';\nconst SET_TRANSLATOR = 'jsonforms/SET_TRANSLATOR';\nconst UPDATE_I18N = 'jsonforms/UPDATE_I18N';\nconst ADD_DEFAULT_DATA = 'jsonforms/ADD_DEFAULT_DATA';\nconst REMOVE_DEFAULT_DATA = 'jsonforms/REMOVE_DEFAULT_DATA';\nconst init = (data, schema = generateJsonSchema(data), uischema, options) => ({\n type: INIT,\n data,\n schema,\n uischema: typeof uischema === 'object' ? uischema : generateDefaultUISchema(schema),\n options,\n});\nconst updateCore = (data, schema, uischema, options) => ({\n type: UPDATE_CORE,\n data,\n schema,\n uischema,\n options,\n});\nconst registerDefaultData = (schemaPath, data) => ({\n type: ADD_DEFAULT_DATA,\n schemaPath,\n data,\n});\nconst unregisterDefaultData = (schemaPath) => ({\n type: REMOVE_DEFAULT_DATA,\n schemaPath,\n});\nconst setAjv = (ajv) => ({\n type: SET_AJV,\n ajv,\n});\nconst update = (path, updater) => ({\n type: UPDATE_DATA,\n path,\n updater,\n});\nconst updateErrors = (errors) => ({\n type: UPDATE_ERRORS,\n errors,\n});\nconst registerRenderer = (tester, renderer) => ({\n type: ADD_RENDERER,\n tester,\n renderer,\n});\nconst registerCell = (tester, cell) => ({\n type: ADD_CELL,\n tester,\n cell,\n});\nconst unregisterCell = (tester, cell) => ({\n type: REMOVE_CELL,\n tester,\n cell,\n});\nconst unregisterRenderer = (tester, renderer) => ({\n type: REMOVE_RENDERER,\n tester,\n renderer,\n});\nconst setConfig = (config) => ({\n type: SET_CONFIG,\n config,\n});\nconst setValidationMode = (validationMode) => ({\n type: SET_VALIDATION_MODE,\n validationMode,\n});\nconst registerUISchema = (tester, uischema) => {\n return {\n type: ADD_UI_SCHEMA,\n tester,\n uischema,\n };\n};\nconst unregisterUISchema = (tester) => {\n return {\n type: REMOVE_UI_SCHEMA,\n tester,\n };\n};\nconst setLocale = (locale) => ({\n type: SET_LOCALE,\n locale,\n});\nconst setSchema = (schema) => ({\n type: SET_SCHEMA,\n schema,\n});\nconst setTranslator = (translator, errorTranslator) => ({\n type: SET_TRANSLATOR,\n translator,\n errorTranslator,\n});\nconst updateI18n = (locale, translator, errorTranslator) => ({\n type: UPDATE_I18N,\n locale,\n translator,\n errorTranslator,\n});\nconst setUISchema = (uischema) => ({\n type: SET_UISCHEMA,\n uischema,\n});\n\nvar index = /*#__PURE__*/Object.freeze({\n __proto__: null,\n INIT: INIT,\n UPDATE_CORE: UPDATE_CORE,\n SET_AJV: SET_AJV,\n UPDATE_DATA: UPDATE_DATA,\n UPDATE_ERRORS: UPDATE_ERRORS,\n VALIDATE: VALIDATE,\n ADD_RENDERER: ADD_RENDERER,\n REMOVE_RENDERER: REMOVE_RENDERER,\n ADD_CELL: ADD_CELL,\n REMOVE_CELL: REMOVE_CELL,\n SET_CONFIG: SET_CONFIG,\n ADD_UI_SCHEMA: ADD_UI_SCHEMA,\n REMOVE_UI_SCHEMA: REMOVE_UI_SCHEMA,\n SET_SCHEMA: SET_SCHEMA,\n SET_UISCHEMA: SET_UISCHEMA,\n SET_VALIDATION_MODE: SET_VALIDATION_MODE,\n SET_LOCALE: SET_LOCALE,\n SET_TRANSLATOR: SET_TRANSLATOR,\n UPDATE_I18N: UPDATE_I18N,\n ADD_DEFAULT_DATA: ADD_DEFAULT_DATA,\n REMOVE_DEFAULT_DATA: REMOVE_DEFAULT_DATA,\n init: init,\n updateCore: updateCore,\n registerDefaultData: registerDefaultData,\n unregisterDefaultData: unregisterDefaultData,\n setAjv: setAjv,\n update: update,\n updateErrors: updateErrors,\n registerRenderer: registerRenderer,\n registerCell: registerCell,\n unregisterCell: unregisterCell,\n unregisterRenderer: unregisterRenderer,\n setConfig: setConfig,\n setValidationMode: setValidationMode,\n registerUISchema: registerUISchema,\n unregisterUISchema: unregisterUISchema,\n setLocale: setLocale,\n setSchema: setSchema,\n setTranslator: setTranslator,\n updateI18n: updateI18n,\n setUISchema: setUISchema\n});\n\nconst Helpers = {\n createLabelDescriptionFrom,\n convertToValidClassName,\n};\n\nexport { ADD_CELL, ADD_DEFAULT_DATA, ADD_RENDERER, ADD_UI_SCHEMA, index as Actions, ArrayTranslationEnum, CombinatorTranslationEnum, Draft4, Generate, Helpers, INIT, NOT_APPLICABLE, Paths, REMOVE_CELL, REMOVE_DEFAULT_DATA, REMOVE_RENDERER, REMOVE_UI_SCHEMA, Resolve, RuleEffect, Runtime, SET_AJV, SET_CONFIG, SET_LOCALE, SET_SCHEMA, SET_TRANSLATOR, SET_UISCHEMA, SET_VALIDATION_MODE, index$1 as Test, UPDATE_CORE, UPDATE_DATA, UPDATE_ERRORS, UPDATE_I18N, VALIDATE, addI18nKeyToPrefix, and, arrayDefaultTranslations, categorizationHasCategory, cellReducer, clearAllIds, combinatorDefaultTranslations, compose, compose as composePaths, composeWithUi, computeLabel, configReducer, controlDefaultProps, convertDateToString, convertToValidClassName, coreReducer, createAjv, createCleanLabel, createCombinatorRenderInfos, createControlElement, createDefaultValue, createId, createLabelDescriptionFrom, decode, defaultDataReducer, defaultDateFormat, defaultDateTimeFormat, defaultErrorTranslator, defaultJsonFormsI18nState, defaultMapDispatchToControlProps, defaultMapStateToEnumCellProps, defaultMiddleware, defaultTimeFormat, defaultTranslator, deriveLabelForUISchemaElement, deriveTypes, encode, enumToEnumOptionMapper, errorAt, errorsAt, evalEnablement, evalVisibility, extractAjv, extractData, extractDefaultData, extractDefaults, extractSchema, extractUiSchema, fetchErrorTranslator, fetchLocale, fetchTranslator, findAllRefs, findMatchingUISchema, findUISchema, formatErrorMessage, formatIs, generateDefaultUISchema, generateJsonSchema, getAjv, getArrayTranslations, getCells, getCombinatorTranslations, getCombinedErrorMessage, getConfig, getControlPath, getData, getDefaultData, getErrorAt, getErrorTranslator, getFirstPrimitiveProp, getI18nKey, getI18nKeyPrefix, getI18nKeyPrefixBySchema, getLocale, getRenderers, getSchema, getSubErrorsAt, getTranslator, getUISchemas, getUiSchema, hasCategory, hasEnableRule, hasShowRule, hasType, i18nReducer, init, isAllOfControl, isAnyOfControl, isArrayObjectControl, isBooleanControl, isCategorization, isCategory, isControl, isDateControl, isDateTimeControl, isDescriptionHidden, isEnabled, isEnumControl, isGroup, isInherentlyEnabled, isIntegerControl, isInternationalized, isLabelable, isLabeled, isLayout, isMultiLineControl, isNumberControl, isNumberFormatControl, isObjectArray, isObjectArrayControl, isObjectArrayWithNesting, isObjectControl, isOneOfControl, isOneOfEnumControl, isOneOfEnumSchema, isPrimitiveArrayControl, isRangeControl, isScopable, isScoped, isStringControl, isTimeControl, isVisible, iterateSchema, jsonFormsReducerConfig, layoutDefaultProps, mapDispatchToArrayControlProps, mapDispatchToCellProps, mapDispatchToControlProps, mapDispatchToMultiEnumProps, mapStateToAllOfProps, mapStateToAnyOfProps, mapStateToArrayControlProps, mapStateToArrayLayoutProps, mapStateToCellProps, mapStateToCombinatorRendererProps, mapStateToControlProps, mapStateToControlWithDetailProps, mapStateToDispatchCellProps, mapStateToEnumControlProps, mapStateToJsonFormsRendererProps, mapStateToLabelProps, mapStateToLayoutProps, mapStateToMasterListItemProps, mapStateToMultiEnumControlProps, mapStateToOneOfEnumCellProps, mapStateToOneOfEnumControlProps, mapStateToOneOfProps, moveDown, moveUp, not, oneOfToEnumOptionMapper, optionIs, or, rankWith, registerCell, registerDefaultData, registerRenderer, registerUISchema, removeId, rendererReducer, resolveData, resolveSchema, schemaMatches, schemaSubPathMatches, schemaTypeIs, scopeEndIs, scopeEndsWith, setAjv, setConfig, setLocale, setReadonly, setSchema, setTranslator, setUISchema, setValidationMode, showAsRequired, subErrorsAt, toDataPath, toDataPathSegments, transformPathToI18nPrefix, uiTypeIs, uischemaRegistryReducer, unregisterCell, unregisterDefaultData, unregisterRenderer, unregisterUISchema, unsetReadonly, update, updateCore, updateErrors, updateI18n, validate, withIncreasedRank };\n//# sourceMappingURL=jsonforms-core.esm.js.map\n"],"names":["ADDITIONAL_PROPERTIES","REQUIRED_PROPERTIES","Gen","constructor","findOption","this","schemaObject","data","props","properties","schema","type","additionalProperties","required","length","Object","keys","reduce","acc","propName","property","Number","isInteger","schemaObjectOrArray","Array","schemaArray","uniqueProperties","discriminator","known","filter","item","discriminatorValue","prototype","hasOwnProperty","call","distinct","map","prop","JSON","stringify","items","oneOf","generateJsonSchema","instance","options","optionName","RuleEffect","isInternationalized","element","i18n","isGroup","layout","isLayout","uischema","undefined","elements","isLabelable","obj","move","array","index","delta","newIndex","indexes","sort","a","b","splice","configDefault","restrict","trim","showUnfocusedDescription","hideRequiredAsterisk","applyDefaultConfiguration","config","configReducer","state","action","SET_CONFIG","validate","validator","errors","initState","ajv","validationMode","additionalErrors","getOrCreateAjv","hasAjvOption","compile","createAjv","option","getValidationMode","hasValidationModeOption","getAdditionalErrors","coreReducer","INIT","thisAjv","v","e","UPDATE_CORE","SET_AJV","currentAjv","SET_SCHEMA","SET_UISCHEMA","UPDATE_DATA","path","result","updater","oldData","newData","newState","UPDATE_ERRORS","SET_VALIDATION_MODE","getControlPath","error","controlPath","dataPath","instancePath","replace","invalidProperty","keyword","params","missingProperty","additionalProperty","getInvalidProperty","endsWith","decode","isObjectSchema$1","filteredErrorKeywords","getErrorsAt","matchPath","combinatorPaths","indexOf","isOneOfEnumSchema","parentSchema","findIndex","p","startsWith","errorsAt","getI18nKeyPrefixBySchema","getI18nKeyPrefix","split","segment","test","join","transformPathToI18nPrefix","getI18nKey","key","addI18nKeyToPrefix","i18nKeyPrefix","defaultTranslator","_id","defaultMessage","defaultErrorTranslator","t","specializedKeywordMessage","genericKeywordMessage","messageCustomization","message","getCombinedErrorMessage","et","customErrorKey","specializedErrorMessage","formatErrorMessage","getArrayTranslations","defaultTranslations","label","translations","forEach","controlElement","default","ArrayTranslationEnum","arrayDefaultTranslations","addTooltip","input","addAriaLabel","removeTooltip","removeAriaLabel","upAriaLabel","up","down","downAriaLabel","noDataMessage","noSelection","deleteDialogTitle","deleteDialogMessage","deleteDialogAccept","deleteDialogDecline","CombinatorTranslationEnum","clearDialogTitle","clearDialogMessage","clearDialogAccept","clearDialogDecline","defaultJsonFormsI18nState","locale","translate","translateError","i18nReducer","UPDATE_I18N","translator","errorTranslator","SET_TRANSLATOR","SET_LOCALE","navigator","languages","isControl","scope","schemaMatches","predicate","context","schemaPath","currentDataSchema","hasType","resolveSchema","rootSchema","schemaSubPathMatches","subPath","schemaTypeIs","expectedType","formatIs","expectedFormat","format","uiTypeIs","expected","optionIs","optionValue","and","testers","tester","or","rankWith","rank","isBooleanControl","isEnumControl","isStringControl","isObjectArray","isArray","resolvedSchema","$ref","deriveTypes","types","getErrorAt","errorAt","jsonforms","core","getSubErrorsAt","subErrorsAt","getConfig","getTranslator","fetchTranslator","getErrorTranslator","fetchErrorTranslator","getData","extractData","getSchema","extractSchema","getUiSchema","extractUiSchema","getAjv","extractAjv","getRenderers","getCells","compose","path1","path2","p1","toDataPathSegments","decodedSegments","startIndex","idx","composeWithUi","scopableUi","isScopable","segments","pointerSegment","resolveData","curInstance","decodedSegment","resolveSchemaWithSegments","pathSegments","remainingSegments","pathSegment","singleSegmentResolveSchema","alternativeResolveResult","subSchemas","concat","allOf","anyOf","then","else","subSchema","getConditionScope","condition","evaluateCondition","isAndCondition","conditions","cur","isOrCondition","isLeafCondition","expectedValue","isSchemaCondition","value","failWhenUndefined","isRuleFulfilled","rule","hasShowRule","effect","SHOW","HIDE","isVisible","fulfilled","evalVisibility","isEnabled","DISABLE","ENABLE","evalEnablement","isInherentlyEnabled","ownProps","rootData","readonly","hasEnableRule","readOnly","enabled","jsonSchema","enum","Set","enumElement","add","from","allOfType","Resolve","deriveLabel","schemaElement","title","ref","substr","lastIndexOf","createLabelDescriptionFrom","withLabel","labelProperty","labelDescription","text","show","computeLabel","createDefaultValue","extractDefaults","date","dateString","toISOString","convertDateToString","Date","resolvedProperty","isDescriptionHidden","visible","description","isFocused","enumToEnumOptionMapper","i18nKey","mapStateToControlProps","id","lastSegment","nextHigherSchemaPath","slice","nextHigherSchema","isRequired","labelDesc","te","i18nLabel","cells","mapDispatchToControlProps","dispatch","handleChange","update","mapStateToControlWithDetailProps","uischemas","mapDispatchToArrayControlProps","addItem","push","removeItems","toDelete","reverse","s","moveUp","toMove","moveDown","layoutDefaultProps","direction","getDirection","mapStateToLayoutProps","stringifiedLabel","deriveLabelForUISchemaElement","renderers","mapStateToJsonFormsRendererProps","mapStateToArrayLayoutProps","childErrors","allErrors","minItems","every","const","verbose","strict","addUsedSchema","createLayout","layoutType","createControlElement","generateUISchema","schemaElements","currentRef","schemaName","isCombinator","controlObject","labelName","fixedLabel","addLabel","nextRef","Error","generateDefaultUISchema","prefix","verticalLayout","wrapInLayoutIfNecessary","Generate","uiSchema","ADD_RENDERER","REMOVE_RENDERER","ADD_CELL","REMOVE_CELL","ADD_UI_SCHEMA","REMOVE_UI_SCHEMA","ADD_DEFAULT_DATA","REMOVE_DEFAULT_DATA","freeze","__proto__","VALIDATE","init","updateCore","registerDefaultData","unregisterDefaultData","setAjv","updateErrors","registerRenderer","renderer","registerCell","cell","unregisterCell","unregisterRenderer","setConfig","setValidationMode","registerUISchema","unregisterUISchema","setLocale","setSchema","setTranslator","updateI18n","setUISchema"],"sourceRoot":""}
|