diff --git a/build/index.js b/build/index.js index 5b58669..1360134 100644 --- a/build/index.js +++ b/build/index.js @@ -1,10 +1,10 @@ /*! * - * @openlattice/access-request - v0.5.1 + * @openlattice/access-request - v0.6.0 * OpenLattice module for access request workflows * https://github.com/openlattice/access-request * * Copyright (c) 2017-2021, OpenLattice, Inc. All rights reserved. * */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.openlatticeAccessRequest=t():e.openlatticeAccessRequest=t()}(self,(function(){return(()=>{var e={6419:(e,t,r)=>{e.exports=r(9330)},1511:(e,t,r)=>{e.exports=r(9718)},7766:(e,t,r)=>{e.exports=r(7010)},62:(e,t,r)=>{e.exports=r(973)},116:(e,t,r)=>{e.exports=r(1672)},8914:(e,t,r)=>{e.exports=r(2142)},1643:(e,t,r)=>{e.exports=r(3769)},2991:(e,t,r)=>{e.exports=r(3919)},2366:(e,t,r)=>{e.exports=r(9871)},3649:(e,t,r)=>{e.exports=r(8646)},2762:(e,t,r)=>{e.exports=r(9874)},9828:(e,t,r)=>{e.exports=r(6214)},9340:(e,t,r)=>{e.exports=r(4098)},368:(e,t,r)=>{e.exports=r(7833)},3978:(e,t,r)=>{e.exports=r(2598)},6295:(e,t,r)=>{e.exports=r(1135)},4074:(e,t,r)=>{e.exports=r(9091)},9649:(e,t,r)=>{e.exports=r(9389)},4310:(e,t,r)=>{e.exports=r(3143)},6902:(e,t,r)=>{e.exports=r(6986)},455:(e,t,r)=>{e.exports=r(9027)},1068:(e,t,r)=>{e.exports=r(4471)},3592:(e,t,r)=>{e.exports=r(9387)},8363:(e,t,r)=>{e.exports=r(1801)},9996:(e,t,r)=>{e.exports=r(5976)},5683:(e,t,r)=>{e.exports=r(4502)},5238:(e,t,r)=>{e.exports=r(3085)},189:(e,t,r)=>{e.exports=r(8639)},4341:(e,t,r)=>{e.exports=r(9219)},3263:(e,t,r)=>{e.exports=r(3800)},4889:(e,t,r)=>{e.exports=r(5347)},9356:(e,t,r)=>{e.exports=r(4785)},9542:(e,t,r)=>{e.exports=r(9402)},1446:(e,t,r)=>{e.exports=r(8564)},3882:(e,t,r)=>{e.exports=r(1882)},3109:(e,t,r)=>{e.exports=r(6512)},7116:function(e,t,r){var n,a;"undefined"!=typeof self&&self,e.exports=(n=r(9297),a=r(2268),function(){"use strict";var e={655:function(e,t,r){r.r(t),r.d(t,{__extends:function(){return a},__assign:function(){return o},__rest:function(){return i},__decorate:function(){return s},__param:function(){return c},__metadata:function(){return u},__awaiter:function(){return l},__generator:function(){return f},__createBinding:function(){return p},__exportStar:function(){return d},__values:function(){return v},__read:function(){return h},__spread:function(){return y},__spreadArrays:function(){return g},__spreadArray:function(){return m},__await:function(){return x},__asyncGenerator:function(){return S},__asyncDelegator:function(){return E},__asyncValues:function(){return b},__makeTemplateObject:function(){return w},__importStar:function(){return A},__importDefault:function(){return R},__classPrivateFieldGet:function(){return T},__classPrivateFieldSet:function(){return C}});var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(a,o){function i(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,n=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function y(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(r=a[e](t)).value instanceof x?Promise.resolve(r.value.v).then(c,u):l(o[0][2],r)}catch(e){l(o[0][3],e)}var r}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function E(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,a){t[n]=e[n]?function(t){return(r=!r)?{value:x(e[n](t)),done:"return"===n}:a?a(t):t}:a}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,a){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,a,(t=e[r](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&p(t,e,r);return I(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function T(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function C(e,t,r,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r}},297:function(e){e.exports=n},268:function(e){e.exports=a}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=e.PrintContextConsumer=void 0;var t=r(655),n=r(297),a=r(268),i=Object.prototype.hasOwnProperty.call(n,"createContext"),s=Object.prototype.hasOwnProperty.call(n,"useMemo")&&Object.prototype.hasOwnProperty.call(n,"useCallback"),c=i?n.createContext({}):null;e.PrintContextConsumer=c?c.Consumer:function(){return null};var u={copyStyles:!0,pageStyle:"@page { size: auto; margin: 0mm; } @media print { body { -webkit-print-color-adjust: exact; } }",removeAfterPrint:!1,suppressErrors:!1},l=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.startPrint=function(e){var t=r.props,n=t.onAfterPrint,a=t.onPrintError,o=t.print,i=t.suppressErrors,s=t.documentTitle;setTimeout((function(){if(e.contentWindow){if(e.contentWindow.focus(),o)o(e).then(r.handleRemoveIframe).catch((function(e){a?a("print",e):i||console.error("An error was thrown by the specified `print` function",e)}));else if(e.contentWindow.print){var t=document.title;s&&(document.title=s),e.contentWindow.print(),s&&(document.title=t),n&&n()}else i||console.error("Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes.");r.handleRemoveIframe()}else i||console.error("Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/")}),500)},r.triggerPrint=function(e){var t=r.props,n=t.onBeforePrint,a=t.onPrintError;if(n){var o=n();o&&"function"==typeof o.then?o.then((function(){r.startPrint(e)})).catch((function(e){a&&a("onBeforePrint",e)})):r.startPrint(e)}else r.startPrint(e)},r.handleClick=function(){var e=r.props,t=e.onBeforeGetContent,n=e.onPrintError;if(t){var a=t();a&&"function"==typeof a.then?a.then(r.handlePrint).catch((function(e){n&&n("onBeforeGetContent",e)})):r.handlePrint()}else r.handlePrint()},r.handlePrint=function(){var e=r.props,n=e.bodyClass,o=e.content,i=e.copyStyles,s=e.fonts,c=e.pageStyle,u=e.suppressErrors,l=o();if(void 0!==l)if(null!==l){var f=document.createElement("iframe");f.style.position="absolute",f.style.top="-1000px",f.style.left="-1000px",f.id="printWindow",f.title="Print Window";var p=a.findDOMNode(l);if(p){var d=p instanceof Text,v=document.querySelectorAll("link[rel='stylesheet']"),h=d?[]:p.querySelectorAll("img");r.linkTotal=v.length+h.length,r.linksLoaded=[],r.linksErrored=[],r.fontsLoaded=[],r.fontsErrored=[];var y=function(e,t){t?r.linksLoaded.push(e):(u||console.error('"react-to-print" was unable to load a linked node. It may be invalid. "react-to-print" will continue attempting to print the page. The linked node that errored was:',e),r.linksErrored.push(e)),r.linksLoaded.length+r.linksErrored.length+r.fontsLoaded.length+r.fontsErrored.length===r.linkTotal&&r.triggerPrint(f)};f.onload=function(){var e,a,o,l;f.onload=null;var v=f.contentDocument||(null===(a=f.contentWindow)||void 0===a?void 0:a.document);if(v){v.body.appendChild(p.cloneNode(!0)),s&&((null===(o=f.contentDocument)||void 0===o?void 0:o.fonts)&&(null===(l=f.contentWindow)||void 0===l?void 0:l.FontFace)?s.forEach((function(e){var t=new FontFace(e.family,e.source);f.contentDocument.fonts.add(t),t.loaded.then((function(e){r.fontsLoaded.push(e)})).catch((function(e){r.fontsErrored.push(t),u||console.error('"react-to-print" was unable to load a font. "react-to-print" will continue attempting to print the page. The font that failed to load is:',t,"The error from loading the font is:",e)}))})):u||console.error('"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API'));var g="function"==typeof c?c():c;if("string"!=typeof g)u||console.error('"react-to-print" expected a "string" from `pageStyle` but received "'+typeof g+'". Styles from `pageStyle` will not be applied.');else{var m=v.createElement("style");m.appendChild(v.createTextNode(g)),v.head.appendChild(m)}if(n&&(e=v.body.classList).add.apply(e,t.__spreadArray([],t.__read(n.split(" ")))),!d){for(var x=v.querySelectorAll("canvas"),S=p.querySelectorAll("canvas"),E=0,b=x.length;E tag with an empty "src" attribute. It will not attempt to pre-load it. The is:',I)}var T="input",C=p.querySelectorAll(T),D=v.querySelectorAll(T);for(E=0;E tag with an empty "href" attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the was not loaded. The is:',L),y(L,!0)}}0!==r.linkTotal&&i||r.triggerPrint(f)},r.handleRemoveIframe(!0),document.body.appendChild(f)}else u||console.error('"react-to-print" could not locate the DOM node corresponding with the `content` prop')}else u||console.error('There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.');else u||console.error('For "react-to-print" to work only Class based components can be printed.')},r.handleRemoveIframe=function(e){var t=r.props.removeAfterPrint;if(e||t){var n=document.getElementById("printWindow");n&&document.body.removeChild(n)}},r}return t.__extends(r,e),r.prototype.render=function(){var e=this.props,t=e.children,r=e.suppressErrors,a=e.trigger;if(a)return n.cloneElement(a(),{onClick:this.handleClick});if(!c)return r||console.error('"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"'),null;var o={handlePrint:this.handleClick};return n.createElement(c.Provider,{value:o},t)},r.defaultProps=u,r}(n.Component);e.default=l,e.useReactToPrint=s?function(e){var r=n.useMemo((function(){return new l(t.__assign(t.__assign({},u),e))}),[e]);return n.useCallback((function(){return r.handleClick()}),[r])}:function(e){e.suppressErrors||console.warn('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')}}(),o}())},9387:e=>{"use strict";e.exports=require("core-js-pure/features/array/from")},1801:e=>{"use strict";e.exports=require("core-js-pure/features/array/is-array")},5976:e=>{"use strict";e.exports=require("core-js-pure/features/get-iterator-method")},4502:e=>{"use strict";e.exports=require("core-js-pure/features/instance/index-of")},3085:e=>{"use strict";e.exports=require("core-js-pure/features/instance/slice")},8639:e=>{"use strict";e.exports=require("core-js-pure/features/object/create")},9219:e=>{"use strict";e.exports=require("core-js-pure/features/object/define-property")},3800:e=>{"use strict";e.exports=require("core-js-pure/features/object/get-own-property-symbols")},5347:e=>{"use strict";e.exports=require("core-js-pure/features/object/get-prototype-of")},4785:e=>{"use strict";e.exports=require("core-js-pure/features/object/keys")},9402:e=>{"use strict";e.exports=require("core-js-pure/features/object/set-prototype-of")},8564:e=>{"use strict";e.exports=require("core-js-pure/features/symbol")},1882:e=>{"use strict";e.exports=require("core-js-pure/features/symbol/iterator")},9330:e=>{"use strict";e.exports=require("core-js-pure/stable/array/from")},9718:e=>{"use strict";e.exports=require("core-js-pure/stable/array/is-array")},7010:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/concat")},973:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/every")},1672:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/filter")},2142:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/for-each")},3769:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/index-of")},3919:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/map")},9871:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/reduce")},8646:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/slice")},9874:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/splice")},6214:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/starts-with")},4098:e=>{"use strict";e.exports=require("core-js-pure/stable/json/stringify")},7833:e=>{"use strict";e.exports=require("core-js-pure/stable/object/define-properties")},2598:e=>{"use strict";e.exports=require("core-js-pure/stable/object/define-property")},1135:e=>{"use strict";e.exports=require("core-js-pure/stable/object/entries")},9091:e=>{"use strict";e.exports=require("core-js-pure/stable/object/get-own-property-descriptor")},9389:e=>{"use strict";e.exports=require("core-js-pure/stable/object/get-own-property-descriptors")},3143:e=>{"use strict";e.exports=require("core-js-pure/stable/object/get-own-property-symbols")},6986:e=>{"use strict";e.exports=require("core-js-pure/stable/object/keys")},9027:e=>{"use strict";e.exports=require("core-js-pure/stable/object/values")},4471:e=>{"use strict";e.exports=require("core-js-pure/stable/reflect/construct")},9297:e=>{"use strict";e.exports=require("react")},2268:e=>{"use strict";e.exports=require("react-dom")},6512:e=>{"use strict";e.exports=require("regenerator-runtime")}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{AccessRequestContainer:()=>Tc,initializeAccessRequestStore:()=>Ka});const e=require("immutable");var t=r.n(e);const a=require("@redux-saga/core");var o=r.n(a);const i=require("connected-react-router/immutable"),s=require("redux");var c=r(4341);function u(e,t,r){return t in e?c(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const l=require("lattice-auth"),f=require("redux-immutable"),p=require("lattice-utils"),d=require("redux-reqseq");var v,h="access",y=p.ReduxConstants.APP,g=p.ReduxConstants.AUTH,m=p.ReduxConstants.EDM,x=p.ReduxConstants.ENTITY_SETS,S=p.ReduxConstants.ENTITY_SETS_INDEX_MAP,E=p.ReduxConstants.ENTITY_TYPES,b=p.ReduxConstants.ENTITY_TYPES_INDEX_MAP,w=p.ReduxConstants.ERROR,I=p.ReduxConstants.PROPERTY_TYPES,A=p.ReduxConstants.PROPERTY_TYPES_INDEX_MAP,R=p.ReduxConstants.REQUEST_STATE,T=(u(v={},w,!1),u(v,R,d.RequestStates.STANDBY),v),C="accessRequest",D="attachments",j="forms",_="GET_FORMS",q=(0,d.newRequestSequence)(_),k="GET_ALL_ACCESS_REQUESTS",O=(0,d.newRequestSequence)(k),U="GET_ACCESS_REQUEST",P=(0,d.newRequestSequence)(U),F="SUBMIT_ACCESS_REQUEST",L=(0,d.newRequestSequence)(F),N="SELECT_ACCESS_REQUEST",M="CLEAR_ACCESS_REQUEST",B=function(){return{type:M}},Q="UPDATE_ACCESS_REQUEST",W=(0,d.newRequestSequence)(Q),z="GET_ATTACHMENTS",H=(0,d.newRequestSequence)(z),G="UPLOAD_ATTACHMENTS",J=(0,d.newRequestSequence)(G),K="DELETE_ATTACHMENTS",Y=(0,d.newRequestSequence)(K),V="SAVE_NEW_FORM_TEMPLATE",X=(0,d.newRequestSequence)(V),$="UPDATE_ATTACHMENT_TAG",Z=(0,d.newRequestSequence)($),ee=p.ReduxConstants.REQUEST_STATE;function te(e,t){return Y.reducer(e,t,{REQUEST:function(){return e.setIn([K,ee],d.RequestStates.PENDING)},SUCCESS:function(){var r=t.value,n=e.get(D).deleteAll(r);return e.set(D,n).setIn([K,ee],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([K,ee],d.RequestStates.FAILURE)}})}var re=p.ReduxConstants.REQUEST_STATE;function ne(e,t){return P.reducer(e,t,{REQUEST:function(){return e.setIn([U,re],d.RequestStates.PENDING)},SUCCESS:function(){return e.merge(t.value).setIn([U,re],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([U,re],d.RequestStates.FAILURE)}})}var ae=p.ReduxConstants.REQUEST_STATE;function oe(e,t){return O.reducer(e,t,{REQUEST:function(){return e.setIn([k,ae],d.RequestStates.PENDING)},SUCCESS:function(){return e.merge(t.value).setIn([k,ae],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([k,ae],d.RequestStates.FAILURE)}})}var ie=p.ReduxConstants.REQUEST_STATE;function se(e,t){return H.reducer(e,t,{REQUEST:function(){return e.setIn([z,ie],d.RequestStates.PENDING)},SUCCESS:function(){return e.set(D,t.value).setIn([z,ie],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([z,ie],d.RequestStates.FAILURE)}})}var ce=p.ReduxConstants.REQUEST_STATE;function ue(e,t){return q.reducer(e,t,{REQUEST:function(){return e.setIn([_,ce],d.RequestStates.PENDING)},SUCCESS:function(){return e.merge(t.value).setIn([_,ce],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([_,ce],d.RequestStates.FAILURE)}})}var le=p.ReduxConstants.REQUEST_STATE;function fe(e,t){return L.reducer(e,t,{REQUEST:function(){return e.setIn([F,le],d.RequestStates.PENDING)},SUCCESS:function(){return e.set(C,t.value).setIn([F,le],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([F,le],d.RequestStates.FAILURE)}})}var pe=p.ReduxConstants.REQUEST_STATE;function de(e,t){return W.reducer(e,t,{REQUEST:function(){var r=t.value,n=r.path,a=r.formData;return e.setIn(n,a).setIn([Q,pe],d.RequestStates.PENDING)},SUCCESS:function(){return e.setIn([Q,pe],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([Q,pe],d.RequestStates.FAILURE)}})}var ve=p.ReduxConstants.REQUEST_STATE;function he(e,t){return Z.reducer(e,t,{REQUEST:function(){var r=t.value,n=r.path,a=r.tag;return e.setIn(n,a).setIn([$,ve],d.RequestStates.PENDING)},SUCCESS:function(){return e.setIn([$,ve],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([$,ve],d.RequestStates.FAILURE)}})}var ye=p.ReduxConstants.REQUEST_STATE;function ge(e,t){return J.reducer(e,t,{REQUEST:function(){return e.setIn([G,ye],d.RequestStates.PENDING)},SUCCESS:function(){return e.setIn([G,ye],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([G,ye],d.RequestStates.FAILURE)}})}var me="RESET_REQUEST_STATE",xe=function(e){return{path:e,type:me}},Se=r(8363);function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:ke,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case me:return _e(e,t);case N:return e.set(C,t.value);case M:return e.set(C,ke.get(C));case q.case(t.type):return ue(e,t);case P.case(t.type):return ne(e,t);case O.case(t.type):return oe(e,t);case L.case(t.type):return fe(e,t);case W.case(t.type):return de(e,t);case H.case(t.type):return se(e,t);case J.case(t.type):return ge(e,t);case Y.case(t.type):return te(e,t);case Z.case(t.type):return he(e,t);default:return e}}var Ue=r(3109),Pe=r.n(Ue),Fe=r(2366),Le=r.n(Fe);const Ne=require("@redux-saga/core/effects"),Me=require("lattice-sagas");var Be="GET_EDM_TYPES",Qe=(0,d.newRequestSequence)(Be),We=Pe().mark(Xe),ze=Pe().mark($e),He=new p.Logger("EDMSagas"),Ge=p.LangUtils.isDefined,Je=Me.EntityDataModelApiActions.getAllEntityTypes,Ke=Me.EntityDataModelApiActions.getAllPropertyTypes,Ye=Me.EntityDataModelApiSagas.getAllEntityTypesWorker,Ve=Me.EntityDataModelApiSagas.getAllPropertyTypesWorker;function Xe(e){var t,r,n,a;return Pe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,(0,Ne.put)(Qe.request(e.id));case 3:return o.next=5,(0,Ne.all)([(0,Ne.call)(Ye,Je()),(0,Ne.call)(Ve,Ke())]);case 5:if(n=o.sent,!(a=Le()(n).call(n,(function(e,t){return Ge(e)?e:t.error}),void 0))){o.next=9;break}throw a;case 9:return t={data:(r={},u(r,E,n[0].data),u(r,I,n[1].data),r)},o.next=12,(0,Ne.put)(Qe.success(e.id,t.data));case 12:o.next=20;break;case 14:return o.prev=14,o.t0=o.catch(0),t={error:o.t0},He.error(e.type,o.t0),o.next=20,(0,Ne.put)(Qe.failure(e.id,o.t0));case 20:return o.prev=20,o.next=23,(0,Ne.put)(Qe.finally(e.id));case 23:return o.finish(20);case 24:return o.abrupt("return",t);case 25:case"end":return o.stop()}}),We,null,[[0,14,20,24]])}function $e(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeEvery)(Be,Xe);case 2:case"end":return e.stop()}}),ze)}var Ze=Error("invalid parameter: action.value is required and must be defined"),et=Error("invalid parameter: action.value is the incorrect type"),tt=(Error('invalid route: a route must be a non-empty string that starts with "/"'),Error("invalid uuid"),Error("unexpected state"),Error("caught exception in worker saga"),"INITIALIZE_APPLICATION"),rt=(0,d.newRequestSequence)(tt),nt="SET_ROOT",at=Pe().mark(dt),ot=Pe().mark(vt),it=Me.AppApiActions.getApp,st=Me.AppApiActions.getAppConfigs,ct=Me.AppApiSagas.getAppWorker,ut=Me.AppApiSagas.getAppConfigsWorker,lt=p.ValidationUtils.isValidUUID,ft=p.LangUtils.isDefined,pt=new p.Logger("AppSagas");function dt(e){var t,r,n,a,o,i,s,c,u,l;return Pe().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:if(t={},f.prev=1,n=e.value,a=n.match,o=n.organizationId,i=n.root,lt(o)){f.next=5;break}throw et;case 5:if("string"==typeof i){f.next=7;break}throw et;case 7:if(ft(a)){f.next=9;break}throw et;case 9:return f.next=11,(0,Ne.put)(rt.request(e.id));case 11:return f.next=13,(0,Ne.all)([(0,Ne.call)(Xe,Qe()),(0,Ne.call)(ct,it("access_requests"))]);case 13:if(!(s=f.sent)[0].error){f.next=16;break}throw s[0].error;case 16:if(!s[1].error){f.next=18;break}throw s[1].error;case 18:return c=s[1].data,f.next=21,(0,Ne.call)(ut,st(c.id));case 21:if(!(u=f.sent).error){f.next=24;break}throw u.error;case 24:return l=Le()(r=u.data).call(r,(function(e,t){var r=e;return t.organization.id===o&&(r=t),r}),{}),t.data={appConfig:l,root:i,match:a},f.next=28,(0,Ne.put)(rt.success(e.id,t.data));case 28:f.next=35;break;case 30:return f.prev=30,f.t0=f.catch(1),pt.error(e.type,f.t0),f.next=35,(0,Ne.put)(rt.failure(e.id,f.t0));case 35:return f.prev=35,f.next=38,(0,Ne.put)(rt.finally(e.id));case 38:return f.finish(35);case 39:case"end":return f.stop()}}),at,null,[[1,30,35,39]])}function vt(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeEvery)(tt,dt);case 2:case"end":return e.stop()}}),ot)}var ht,yt=p.ReduxConstants.REQUEST_STATE;function gt(e,t){switch(t.type){case nt:var r=t.value;return e.set("root",r);case rt.case(t.type):var n=t;return rt.reducer(e,n,{REQUEST:function(){return e.setIn([tt,yt],d.RequestStates.PENDING)},SUCCESS:function(){return e.merge(t.value).setIn([tt,yt],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([tt,yt],d.RequestStates.FAILURE)}});default:return e}}var mt=(0,e.fromJS)((u(ht={},tt,T),u(ht,"appConfig",{}),u(ht,"root","/"),u(ht,"match",{}),ht)),xt=["app","appConfig","config"],St=["app","root"],Et=["app","match"];function bt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case me:return _e(e,t);case rt.case(t.type):return gt(e,t);default:return e}}var wt=r(8914),It=r.n(wt);const At=require("lattice");var Rt=At.Models.EntityTypeBuilder,Tt=At.Models.PropertyTypeBuilder;function Ct(t,r){return Qe.reducer(t,r,{REQUEST:function(){return t.setIn([Be,R],d.RequestStates.PENDING).setIn([Be,r.id],r)},SUCCESS:function(){var n=r.value.entityTypes,a=(0,e.List)().asMutable(),o=(0,e.Map)().asMutable();It()(n).call(n,(function(e,t){var r=new Rt(e).build();a.push(r),o.set(r.id,t),o.set(r.type,t)}));var i=r.value.propertyTypes,s=(0,e.List)().asMutable(),c=(0,e.Map)().asMutable();return It()(i).call(i,(function(e,t){var r=new Tt(e).build();s.push(r),c.set(r.id,t),c.set(r.type,t)})),t.set(E,a.asImmutable()).set(b,o.asImmutable()).set(I,s.asImmutable()).set(A,c.asImmutable()).setIn([Be,R],d.RequestStates.SUCCESS)},FAILURE:function(){return t.set(E,(0,e.List)()).set(b,(0,e.Map)()).set(I,(0,e.List)()).set(A,(0,e.Map)()).setIn([Be,R],d.RequestStates.FAILURE)},FINALLY:function(){return t.deleteIn([Be,r.id])}})}var Dt=At.Models.EntitySetBuilder,jt=Me.EntitySetsApiActions.GET_ENTITY_SET,_t=Me.EntitySetsApiActions.getEntitySet;function qt(e,t){return _t.reducer(e,t,{REQUEST:function(){return e.setIn([jt,R],d.RequestStates.PENDING).setIn([jt,t.id],t)},SUCCESS:function(){if(e.hasIn([jt,t.id])){var r=new Dt(t.value).build(),n=e.get(x),a=e.get(S);if(a.has(r.id))n=n.update(a.get(r.id),(function(){return r}));else{var o=(n=n.push(r)).count()-1;a=a.set(r.id,o).set(r.name,o)}return e.set(x,n).set(S,a).setIn([jt,R],d.RequestStates.SUCCESS)}return e},FAILURE:function(){return e.hasIn([jt,t.id])?e.setIn([jt,R],d.RequestStates.FAILURE):e},FINALLY:function(){return e.deleteIn([jt,t.id])}})}var kt,Ot=r(455),Ut=r.n(Ot),Pt=At.Models.EntitySetBuilder,Ft=Me.EntitySetsApiActions.GET_ENTITY_SETS,Lt=Me.EntitySetsApiActions.getEntitySets;function Nt(e,t){return Lt.reducer(e,t,{REQUEST:function(){return e.setIn([Ft,R],d.RequestStates.PENDING).setIn([Ft,t.id],t)},SUCCESS:function(){if(e.hasIn([Ft,t.id])){var r,n=e.get(x),a=e.get(S);return It()(r=Ut()(t.value)).call(r,(function(e){var t=new Pt(e).build();if(a.has(t.id))n=n.update(a.get(t.id),(function(){return t}));else{var r=(n=n.push(t)).count()-1;a=a.set(t.id,r).set(t.name,r)}})),e.set(x,n).set(S,a).setIn([Ft,R],d.RequestStates.SUCCESS)}return e},FAILURE:function(){return e.hasIn([Ft,t.id])?e.setIn([Ft,R],d.RequestStates.FAILURE):e},FINALLY:function(){return e.deleteIn([Ft,t.id])}})}var Mt=Me.EntitySetsApiActions.GET_ENTITY_SET,Bt=Me.EntitySetsApiActions.GET_ENTITY_SETS,Qt=Me.EntitySetsApiActions.getEntitySet,Wt=Me.EntitySetsApiActions.getEntitySets,zt=(0,e.fromJS)((u(kt={},Be,T),u(kt,Bt,T),u(kt,Mt,T),u(kt,x,(0,e.List)()),u(kt,S,(0,e.Map)()),u(kt,E,(0,e.List)()),u(kt,b,(0,e.Map)()),u(kt,I,(0,e.List)()),u(kt,A,(0,e.Map)()),kt));function Ht(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case me:return _e(e,t);case Qe.case(t.type):return Ct(e,t);case Qt.case(t.type):return qt(e,t);case Wt.case(t.type):return Nt(e,t);default:return e}}var Gt=r(1511),Jt=r.n(Gt),Kt=r(62),Yt=r.n(Kt);function Vt(t,r){return(0,e.getIn)(t,[r,"entitySetId"])}var Xt="DELETE_BULK_ENTITIES",$t=(0,d.newRequestSequence)(Xt),Zt=At.Models.FQN;const er={ACCESS_REQUEST_SUBMISSION:Zt.of("app.accessrequestsubmission"),ATTACHED_TO:Zt.of("app.attachedto"),FILE:Zt.of("app.file"),FORM:Zt.of("app.form")};var tr=At.Models.FQN;const rr={DATE_TIME:tr.of("ol.datetime"),DESCRIPTION:tr.of("ol.description"),FILE_DATA:tr.of("ol.filedata"),FORM_DATA:tr.of("ol.formdata"),ID:tr.of("ol.id"),LABEL:tr.of("ol.label"),NAME:tr.of("ol.name"),REQUEST_DATE_TIME:tr.of("ol.requestdatetime"),RJSF_JSON_SCHEMA:tr.of("ol.rjsfjsonschema"),RJSF_UI_SCHEMA:tr.of("ol.rjsfuischema"),TYPE:tr.of("ol.type")};var nr=p.ReduxConstants.HITS;function ar(){return function(t){return t.getIn([h,C],(0,e.List)())}}function or(){return function(e){return e.getIn(xt,{})}}const ir=require("lodash/isArray");var sr=r.n(ir),cr=At.Models.FQN,ur=(0,e.Map)();function lr(t){return function(r){if(!sr()(t)&&!(0,e.isCollection)(t))return ur;var n=(0,e.Map)().withMutations((function(n){It()(t).call(t,(function(t){if(cr.isValid(t)){var a=(0,e.getIn)(r,[m,A,t],-1);if(a>=0){var o=(0,e.getIn)(r,[m,I,a]);o&&o.id&&n.set(t,o.id)}}}))}));return n.isEmpty()?ur:n}}p.ReduxUtils.selectEntitySets,p.ReduxUtils.selectEntityTypes,p.ReduxUtils.selectOrganization,p.ReduxUtils.selectPropertyTypes;var fr=r(2991),pr=r.n(fr),dr=r(6902),vr=r.n(dr),hr=r(6419),yr=r.n(hr),gr=Pe().mark(br),mr=new p.Logger("DataSagas"),xr=At.Types.DeleteTypes,Sr=Me.DataApiActions.deleteEntityData,Er=Me.DataApiSagas.deleteEntityDataWorker;function br(e){var t,r,n,a,o,i;return Pe().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t={},s.prev=1,null!=(n=e.value)){s.next=5;break}throw Ze;case 5:return s.next=7,(0,Ne.put)($t.request(e.id));case 7:return a=pr()(r=vr()(n)).call(r,(function(e){var t=yr()(n[e]);return(0,Ne.call)(Er,Sr({entitySetId:e,entityKeyIds:t,deleteType:xr.SOFT}))})),s.next=10,(0,Ne.all)(a);case 10:if(o=s.sent,!(i=Le()(o).call(o,(function(e,t){return e.error=e.error||t.error,e}),{})).error){s.next=14;break}throw i;case 14:return s.next=16,(0,Ne.put)($t.success(e.id));case 16:s.next=24;break;case 18:return s.prev=18,s.t0=s.catch(1),mr.error(e.type,s.t0),t.error=s.t0,s.next=24,(0,Ne.put)($t.failure(e.id,s.t0));case 24:return s.prev=24,s.next=27,(0,Ne.put)($t.finally(e.id));case 27:return s.finish(24);case 28:return s.abrupt("return",t);case 29:case"end":return s.stop()}}),gr,null,[[1,18,24,28]])}var wr=Pe().mark(Cr),Ir=Pe().mark(Dr),Ar=p.ValidationUtils.isValidUUID,Rr=er.FILE,Tr=new p.Logger("AccessSagas");function Cr(e){var t,r,n,a,o,i;return Pe().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t={},s.prev=1,r=e.value,!Jt()(r)||Yt()(r).call(r,Ar)){s.next=5;break}throw et;case 5:return s.next=7,(0,Ne.put)(Y.request(e.id));case 7:return s.next=9,(0,Ne.select)(or());case 9:return n=s.sent,a=Vt(n,Rr),o=u({},a,r),s.next=14,(0,Ne.call)(br,$t(o));case 14:if(!(i=s.sent).error){s.next=17;break}throw i.error;case 17:return t={data:o},s.next=20,(0,Ne.put)(Y.success(e.id,r));case 20:s.next=28;break;case 22:return s.prev=22,s.t0=s.catch(1),Tr.error(e.type,s.t0),t={error:s.t0},s.next=28,(0,Ne.put)(Y.failure(e.id,s.t0));case 28:return s.prev=28,s.next=31,(0,Ne.put)(Y.finally(e.id));case 31:return s.finish(28);case 32:return s.abrupt("return",t);case 33:case"end":return s.stop()}}),wr,null,[[1,22,28,32]])}function Dr(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeEvery)(K,Cr);case 2:case"end":return e.stop()}}),Ir)}var jr=Pe().mark(Fr),_r=Pe().mark(Lr),qr=p.ValidationUtils.isValidUUID,kr=Me.DataApiActions.getEntityData,Or=Me.DataApiSagas.getEntityDataWorker,Ur=er.ACCESS_REQUEST_SUBMISSION,Pr=new p.Logger("getAccessRequestSagas");function Fr(t){var r,n,a,o,i;return Pe().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(s.prev=0,n=t.value,qr(n)){s.next=4;break}throw et;case 4:return s.next=6,(0,Ne.put)(P.request(t.id));case 6:return s.next=8,(0,Ne.select)(or());case 8:return a=s.sent,o=Vt(a,Ur),s.next=12,(0,Ne.call)(Or,kr({entitySetId:o,entityKeyId:n}));case 12:if(!(i=s.sent).error){s.next=15;break}throw i.error;case 15:return r={data:(0,e.fromJS)(i.data)},s.next=18,(0,Ne.put)(P.success(t.id,u({},C,r.data)));case 18:s.next=26;break;case 20:return s.prev=20,s.t0=s.catch(0),r={error:s.t0},Pr.error(t.type,s.t0),s.next=26,(0,Ne.put)(P.failure(t.id,s.t0));case 26:return s.prev=26,s.next=29,(0,Ne.put)(P.finally(t.id));case 29:return s.finish(26);case 30:return s.abrupt("return",r);case 31:case"end":return s.stop()}}),jr,null,[[0,20,26,30]])}function Lr(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeEvery)(U,Fr);case 2:case"end":return e.stop()}}),_r)}var Nr=Pe().mark(Gr),Mr=Pe().mark(Jr),Br=Me.SearchApiActions.searchEntitySetData,Qr=Me.SearchApiSagas.searchEntitySetDataWorker,Wr=er.ACCESS_REQUEST_SUBMISSION,zr=rr.REQUEST_DATE_TIME,Hr=new p.Logger("getAllAccessRequestsSagas");function Gr(t){var r,n,a,o,i,s;return Pe().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,(0,Ne.put)(O.request(t.id));case 3:return c.next=5,(0,Ne.select)(or());case 5:return n=c.sent,a=Vt(n,Wr),c.next=9,(0,Ne.select)(lr([zr]));case 9:return o=c.sent,i=o.get(zr),c.next=13,(0,Ne.call)(Qr,Br({entitySetIds:[a],maxHits:1e4,start:0,constraints:[{constraints:[{type:"simple",searchTerm:"*",fuzzy:!1}]}],sort:{propertyTypeId:i,type:"field"}}));case 13:if(!(s=c.sent).error){c.next=16;break}throw s.error;case 16:return r={data:s.data},c.next=19,(0,Ne.put)(O.success(t.id,{hits:(0,e.fromJS)(s.data.hits)}));case 19:c.next=27;break;case 21:return c.prev=21,c.t0=c.catch(0),r={error:c.t0},Hr.error(t.type,c.t0),c.next=27,(0,Ne.put)(O.failure(t.id,c.t0));case 27:return c.prev=27,c.next=30,(0,Ne.put)(O.finally(t.id));case 30:return c.finish(27);case 31:return c.abrupt("return",r);case 32:case"end":return c.stop()}}),Nr,null,[[0,21,27,31]])}function Jr(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeEvery)(k,Gr);case 2:case"end":return e.stop()}}),Mr)}var Kr=Pe().mark(an),Yr=Pe().mark(on),Vr=new p.Logger("DocumentsSagas"),Xr=p.DataUtils.getEntityKeyId,$r=p.ValidationUtils.isValidUUID,Zr=Me.SearchApiActions.searchEntityNeighborsWithFilter,en=Me.SearchApiSagas.searchEntityNeighborsWithFilterWorker,tn=er.FILE,rn=er.ATTACHED_TO,nn=er.ACCESS_REQUEST_SUBMISSION;function an(t){var r,n,a,o,i,s,c,u,l,f,p;return Pe().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if(r={},d.prev=1,a=t.value,$r(a)){d.next=5;break}throw et;case 5:return d.next=7,(0,Ne.put)(H.request(t.id));case 7:return d.next=9,(0,Ne.select)(or());case 9:return o=d.sent,i=Vt(o,nn),s=Vt(o,tn),c=Vt(o,rn),u={entitySetId:i,filter:{entityKeyIds:[a],edgeEntitySetIds:[c],destinationEntitySetIds:[],sourceEntitySetIds:[s]}},d.next=16,(0,Ne.call)(en,Zr(u));case 16:if(!(l=d.sent).error){d.next=19;break}throw l.error;case 19:return f=pr()(n=(0,e.fromJS)(l.data).get(a,(0,e.List)())).call(n,(function(e){return e.get("neighborDetails")})),p=(0,e.Map)(pr()(f).call(f,(function(e){return[Xr(e),e]}))),r.data=p,d.next=24,(0,Ne.put)(H.success(t.id,p));case 24:d.next=31;break;case 26:return d.prev=26,d.t0=d.catch(1),Vr.error(t.type,d.t0),d.next=31,(0,Ne.put)(H.failure(t.id));case 31:return d.prev=31,d.next=34,(0,Ne.put)(H.finally(t.id));case 34:return d.finish(31);case 35:return d.abrupt("return",r);case 36:case"end":return d.stop()}}),Kr,null,[[1,26,31,35]])}function on(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeLatest)(z,an);case 2:case"end":return e.stop()}}),Yr)}var sn=Pe().mark(dn),cn=Pe().mark(vn),un=Me.SearchApiActions.searchEntitySetData,ln=Me.SearchApiSagas.searchEntitySetDataWorker,fn=er.FORM,pn=new p.Logger("getFormsSagas");function dn(t){var r,n,a,o;return Pe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,(0,Ne.put)(q.request(t.id));case 3:return i.next=5,(0,Ne.select)(or());case 5:return n=i.sent,a=Vt(n,fn),i.next=9,(0,Ne.call)(ln,un({entitySetIds:[a],maxHits:1e4,start:0,constraints:[{constraints:[{type:"simple",searchTerm:"Common Application",fuzzy:!1}]}]}));case 9:if(!(o=i.sent).error){i.next=12;break}throw o.error;case 12:return r={data:o.data},i.next=15,(0,Ne.put)(q.success(t.id,{forms:(0,e.fromJS)(o.data.hits)}));case 15:i.next=23;break;case 17:return i.prev=17,i.t0=i.catch(0),r={error:i.t0},pn.error(t.type,i.t0),i.next=23,(0,Ne.put)(q.failure(t.id,i.t0));case 23:return i.prev=23,i.next=26,(0,Ne.put)(q.finally(t.id));case 26:return i.finish(23);case 27:return i.abrupt("return",r);case 28:case"end":return i.stop()}}),sn,null,[[0,17,23,27]])}function vn(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeEvery)(_,dn);case 2:case"end":return e.stop()}}),cn)}var hn=r(9340),yn=r.n(hn);const gn=require("lodash/isPlainObject");var mn=r.n(gn),xn=Pe().mark(Cn),Sn=Pe().mark(Dn),En=Me.DataApiActions.createOrMergeEntityData,bn=Me.DataApiSagas.createOrMergeEntityDataWorker,wn=er.FORM,In=rr.RJSF_JSON_SCHEMA,An=rr.RJSF_UI_SCHEMA,Rn=rr.TYPE,Tn=new p.Logger("saveNewFormTemplateSagas");function Cn(e){var t,r,n,a,o,i,s,c,l,f,p,d,v,h,y,g;return Pe().wrap((function(m){for(;;)switch(m.prev=m.next){case 0:if(m.prev=0,n=e.value,mn()(n)){m.next=4;break}throw et;case 4:return m.next=6,(0,Ne.put)(X.request(e.id));case 6:return m.next=8,(0,Ne.select)(or());case 8:return a=m.sent,o=Vt(a,wn),i=n.schema,s=n.uiSchema,c=n.type,m.next=13,(0,Ne.select)(lr([In,An,Rn]));case 13:return l=m.sent,f=l.get(In),p=l.get(An),d=l.get(Rn),v=yn()(i),h=yn()(s),y=[(r={},u(r,d,[c||"Common Application"]),u(r,f,[v]),u(r,p,[h]),r)],m.next=22,(0,Ne.call)(bn,En({entitySetId:o,entityData:y}));case 22:if(!(g=m.sent).error){m.next=25;break}throw g.error;case 25:return t=g,m.next=28,(0,Ne.put)(X.success(e.id));case 28:m.next=36;break;case 30:return m.prev=30,m.t0=m.catch(0),t={error:m.t0},Tn.error(e.type,m.t0),m.next=36,(0,Ne.put)(X.failure(e.id,m.t0));case 36:return m.prev=36,m.next=39,(0,Ne.put)(X.finally(e.id));case 39:return m.finish(36);case 40:return m.abrupt("return",t);case 41:case"end":return m.stop()}}),xn,null,[[0,30,36,40]])}function Dn(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeEvery)(V,Cn);case 2:case"end":return e.stop()}}),Sn)}const jn=require("luxon");var _n=Pe().mark(Wn),qn=Pe().mark(zn),kn=At.Constants.OPENLATTICE_ID_FQN,On=Me.DataApiActions.createOrMergeEntityData,Un=Me.DataApiSagas.createOrMergeEntityDataWorker,Pn=er.ACCESS_REQUEST_SUBMISSION,Fn=rr.FORM_DATA,Ln=rr.REQUEST_DATE_TIME,Nn=rr.RJSF_JSON_SCHEMA,Mn=rr.RJSF_UI_SCHEMA,Bn=rr.TYPE,Qn=new p.Logger("submitAccessRequestSagas");function Wn(t){var r,n,a,o,i,s,c,l,f,p,d,v,h,y,g,m,x,S,E,b,w,I,A;return Pe().wrap((function(R){for(;;)switch(R.prev=R.next){case 0:if(R.prev=0,o=t.value,mn()(o)){R.next=4;break}throw et;case 4:return R.next=6,(0,Ne.put)(L.request(t.id));case 6:return R.next=8,(0,Ne.select)(or());case 8:return i=R.sent,s=Vt(i,Pn),c=o.formData,l=o.schema,f=o.uiSchema,p=o.type,R.next=13,(0,Ne.select)(lr([Fn,Ln,Nn,Mn,Bn]));case 13:return d=R.sent,v=d.get(Fn),h=d.get(Ln),y=d.get(Nn),g=d.get(Mn),m=d.get(Bn),x=yn()(c),S=yn()(l),E=yn()(f),b=jn.DateTime.local().toISO(),w=[(n={},u(n,m,[p||"Common Application"]),u(n,v,[x]),u(n,y,[S]),u(n,g,[E]),u(n,h,[b]),n)],R.next=26,(0,Ne.call)(Un,On({entitySetId:s,entityData:w}));case 26:if(!(I=R.sent).error){R.next=29;break}throw I.error;case 29:return A=(0,e.Map)((u(a={},Bn,[p||"Common Application"]),u(a,Fn,[x]),u(a,Nn,[S]),u(a,Mn,[E]),u(a,Ln,[b]),u(a,kn,I.data),a)),r={data:A},R.next=33,(0,Ne.put)(L.success(t.id,r.data));case 33:R.next=41;break;case 35:return R.prev=35,R.t0=R.catch(0),r={error:R.t0},Qn.error(t.type,R.t0),R.next=41,(0,Ne.put)(L.failure(t.id,R.t0));case 41:return R.prev=41,R.next=44,(0,Ne.put)(L.finally(t.id));case 44:return R.finish(41);case 45:return R.abrupt("return",r);case 46:case"end":return R.stop()}}),_n,null,[[0,35,41,45]])}function zn(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeEvery)(F,Wn);case 2:case"end":return e.stop()}}),qn)}var Hn=Pe().mark(Zn),Gn=Pe().mark(ea),Jn=Me.DataApiActions.updateEntityData,Kn=Me.DataApiSagas.updateEntityDataWorker,Yn=At.Types.UpdateTypes,Vn=er.ACCESS_REQUEST_SUBMISSION,Xn=rr.FORM_DATA,$n=new p.Logger("updateAccessRequest");function Zn(e){var t,r,n,a,o,i,s,c,l,f,p;return Pe().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if(d.prev=0,r=e.value,mn()(r)){d.next=4;break}throw et;case 4:return n=r.formData,a=r.entityKeyId,o=yn()(n),d.next=8,(0,Ne.put)(W.request(e.id,{path:["accessRequest",Xn.toString(),0],formData:o}));case 8:return d.next=10,(0,Ne.select)(or());case 10:return i=d.sent,s=Vt(i,Vn),d.next=14,(0,Ne.select)(lr([Xn]));case 14:return c=d.sent,l=c.get(Xn),f=u({},a,u({},l,[o])),d.next=19,(0,Ne.call)(Kn,Jn({entitySetId:s,entities:f,updateType:Yn.PartialReplace}));case 19:if(!(p=d.sent).error){d.next=22;break}throw p.error;case 22:return t={data:p.data},d.next=25,(0,Ne.put)(W.success(e.id));case 25:d.next=33;break;case 27:return d.prev=27,d.t0=d.catch(0),t={error:d.t0},$n.error(e.type,d.t0),d.next=33,(0,Ne.put)(W.failure(e.id,d.t0));case 33:return d.prev=33,d.next=36,(0,Ne.put)(W.finally(e.id));case 36:return d.finish(33);case 37:return d.abrupt("return",t);case 38:case"end":return d.stop()}}),Hn,null,[[0,27,33,37]])}function ea(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeEvery)(Q,Zn);case 2:case"end":return e.stop()}}),Gn)}var ta=Pe().mark(ua),ra=Pe().mark(la),na=Me.DataApiActions.updateEntityData,aa=Me.DataApiSagas.updateEntityDataWorker,oa=At.Types.UpdateTypes,ia=er.FILE,sa=rr.LABEL,ca=new p.Logger("updateAttachmentTag");function ua(e){var t,r,n,a,o,i,s,c,l,f;return Pe().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:if(p.prev=0,r=e.value,mn()(r)){p.next=4;break}throw et;case 4:return n=r.tag,a=r.entityKeyId,p.next=7,(0,Ne.put)(Z.request(e.id,{path:[D,a,sa.toString(),0],tag:n}));case 7:return p.next=9,(0,Ne.select)(or());case 9:return o=p.sent,i=Vt(o,ia),p.next=13,(0,Ne.select)(lr([sa]));case 13:return s=p.sent,c=s.get(sa),l=u({},a,u({},c,[n])),p.next=18,(0,Ne.call)(aa,na({entitySetId:i,entities:l,updateType:oa.PartialReplace}));case 18:if(!(f=p.sent).error){p.next=21;break}throw f.error;case 21:return t={data:f.data},p.next=24,(0,Ne.put)(Z.success(e.id));case 24:p.next=32;break;case 26:return p.prev=26,p.t0=p.catch(0),t={error:p.t0},ca.error(e.type,p.t0),p.next=32,(0,Ne.put)(Z.failure(e.id,p.t0));case 32:return p.prev=32,p.next=35,(0,Ne.put)(Z.finally(e.id));case 35:return p.finish(32);case 36:return p.abrupt("return",t);case 37:case"end":return p.stop()}}),ta,null,[[0,26,32,36]])}function la(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeEvery)($,ua);case 2:case"end":return e.stop()}}),ra)}var fa=r(1643),pa=r.n(fa),da=";base64,";const va=function(e){var t=pa()(e).call(e,da);return t<0?e:e.substring(t+da.length)};var ha=Pe().mark(Ta),ya=Pe().mark(Ca),ga=At.Models.DataGraphBuilder,ma=er.ACCESS_REQUEST_SUBMISSION,xa=er.ATTACHED_TO,Sa=er.FILE,Ea=rr.DATE_TIME,ba=rr.FILE_DATA,wa=rr.LABEL,Ia=rr.NAME,Aa=rr.TYPE,Ra=new p.Logger("DocumentsSagas");function Ta(e){var t,r,n,a,o,i,s,c,l,f,p,d,v,h,y,g,m,x,S,E,b,w,I;return Pe().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.prev=0,A.next=3,(0,Ne.put)(J.request(e.id));case 3:return r=e.value,n=r.accessRequestId,a=r.files,o=r.tags,A.next=6,(0,Ne.select)(or());case 6:return i=A.sent,s=Vt(i,ma),c=Vt(i,Sa),l=Vt(i,xa),A.next=12,(0,Ne.select)(lr([Ea,ba,wa,Ia,Aa]));case 12:return f=A.sent,p=f.get(Ea),d=f.get(ba),v=f.get(Ia),h=f.get(Aa),y=f.get(wa),g=jn.DateTime.local().toISO(),m=pr()(a).call(a,(function(e,t){var r,n=e.base64,a=e.name,i=e.type;return u(r={},y,[o[t]]),u(r,p,[g]),u(r,h,[i]),u(r,v,[a]),u(r,d,[{"content-type":i,"content-disposition":'attachment; filename="'.concat(a,'"'),data:va(n)}]),r})),x=u({},p,[g]),S=[],It()(a).call(a,(function(e,t){S.push({srcEntitySetId:c,srcEntityIndex:t,dstEntitySetId:s,dstEntityKeyId:n,data:x})})),E=u({},c,m),b=u({},l,S),w=(new ga).setAssociations(b).setEntities(E).build(),A.next=28,(0,Ne.call)(At.DataApi.createEntityAndAssociationData,w);case 28:if(!(I=A.sent).error){A.next=31;break}throw I.error;case 31:return t={data:{}},A.next=34,(0,Ne.put)(J.success(e.id));case 34:A.next=42;break;case 36:return A.prev=36,A.t0=A.catch(0),Ra.error(e.type,A.t0),t={error:A.t0},A.next=42,(0,Ne.put)(J.failure(e.id,A.t0));case 42:return A.prev=42,A.next=45,(0,Ne.put)(J.finally(e.id));case 45:return A.finish(42);case 46:return A.abrupt("return",t);case 47:case"end":return A.stop()}}),ha,null,[[0,36,42,46]])}function Ca(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeEvery)(G,Ta);case 2:case"end":return e.stop()}}),ya)}const Da=require("history");var ja="/request/".concat(":accessRequestId"),_a="GO_TO_ROOT";var qa="GO_TO_ROUTE";function ka(e,t){return{route:t,error:e,type:"ROUTING_FAILURE"}}var Oa=r(9828),Ua=r.n(Oa);const Pa=require("connected-react-router");var Fa=Pe().mark(Qa),La=Pe().mark(Wa),Na=Pe().mark(za),Ma=new p.Logger("RoutingSagas"),Ba='invalid route: a route must be a non-empty string that starts with "/"';function Qa(e){var t,r,n;return Pe().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t=e.route,r=e.state,n=void 0===r?{}:r,null!=t&&Ua()(t).call(t,"/",0)){a.next=6;break}return Ma.error(Ba,t),a.next=5,(0,Ne.put)(ka(Ba,t));case 5:return a.abrupt("return");case 6:return a.next=8,(0,Ne.put)((0,Pa.push)({state:yn()(n),pathname:t}));case 8:case"end":return a.stop()}}),Fa)}function Wa(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeEvery)(qa,Qa);case 2:case"end":return e.stop()}}),La)}function za(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.takeEvery)(_a,Qa);case 2:case"end":return e.stop()}}),Na)}var Ha=(0,Da.createHashHistory)(),Ga=Pe().mark(Ja);function Ja(){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Ne.all)([(0,Ne.fork)(l.AuthSagas.watchAuthAttempt),(0,Ne.fork)(l.AuthSagas.watchAuthSuccess),(0,Ne.fork)(l.AuthSagas.watchAuthFailure),(0,Ne.fork)(l.AuthSagas.watchAuthExpired),(0,Ne.fork)(l.AuthSagas.watchLogout),(0,Ne.fork)(vt),(0,Ne.fork)($e),(0,Ne.fork)(za),(0,Ne.fork)(Wa),(0,Ne.fork)(Lr),(0,Ne.fork)(on),(0,Ne.fork)(Jr),(0,Ne.fork)(zn),(0,Ne.fork)(ea),(0,Ne.fork)(Ca),(0,Ne.fork)(Dr),(0,Ne.fork)(Dn),(0,Ne.fork)(vn),(0,Ne.fork)(la)]);case 2:case"end":return e.stop()}}),Ga)}function Ka(e){var r=o()(),n=[r,(0,i.routerMiddleware)(e)],a=[s.applyMiddleware.apply(void 0,n)],c=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({stateSanitizer:function(e){return e.setIn(["edm","entityTypes"],"HIDDEN").setIn(["edm","entityTypesIndexMap"],"HIDDEN").setIn(["edm","propertyTypes"],"HIDDEN").setIn(["edm","propertyTypesIndexMap"],"HIDDEN")},maxAge:100}):s.compose,p=(0,s.createStore)(function(e){var t;return(0,f.combineReducers)((u(t={},h,Oe),u(t,y,bt),u(t,g,l.AuthReducer),u(t,m,Ht),u(t,"router",(0,i.connectRouter)(e)),t))}(e),t().Map(),c.apply(void 0,a));return r.run(Ja),p}var Ya=r(9297),Va=r.n(Ya);const Xa=require("lattice-ui-kit"),$a=require("react-router-dom"),Za=require("styled-components");var eo=r.n(Za),to=r(3649),ro=r.n(to);const no=require("react-redux");var ao=Ka(Ha),oo=(0,Ya.createContext)(null),io=((0,no.createStoreHook)(oo),(0,no.createDispatchHook)(oo)),so=(0,no.createSelectorHook)(oo);const co=require("react/jsx-runtime");var uo=At.Constants.OPENLATTICE_LAST_WRITE_FQN,lo=rr.REQUEST_DATE_TIME,fo=rr.TYPE,po=p.DataUtils.getPropertyValue;const vo=function(e){var t,r,n=e.data,a=e.to,o=io(),i=po(n,[fo,0]),s=po(n,[lo,0]),c=po(n,[uo,0]),u=jn.DateTime.fromISO(s),l=jn.DateTime.fromISO(c),f=u.toLocaleString(jn.DateTime.DATE_SHORT),p="Created: ".concat(f);if(l.diff(u,"seconds").seconds>1){var d=l.toRelative({style:"short"});p=je()(p).call(p," · Updated: ".concat(d))}var v=pr()(t=ro()(r=i.split(" ")).call(r,0,2)).call(t,(function(e){return e.charAt(0).toUpperCase()})).join("");return(0,co.jsxs)(Xa.ListItem,{button:!0,component:$a.Link,disableGutters:!0,onClick:function(){o({type:N,value:n})},to:a,children:[(0,co.jsx)(Xa.ListItemAvatar,{children:(0,co.jsx)(Xa.Avatar,{children:v})}),(0,co.jsx)(Xa.ListItemText,{primary:i,secondary:p})]})};function ho(e,t){return function(e){if(Se(e))return e}(e)||function(e,t){var r=e&&(void 0!==be&&we(e)||e["@@iterator"]);if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||Re(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var yo=r(6295),go=r.n(yo);const mo=function(e,t){var r;return t.params?Le()(r=go()(t.params)).call(r,(function(e,t){var r=ho(t,2),n=r[0],a=r[1];return e.replace(RegExp(":".concat(n),"g"),a)}),e):e};var xo=p.DataUtils.getEntityKeyId;const So=function(){var t=io(),r=so((function(t){return t.getIn([h,nr],(0,e.List)())})),n=so((function(e){return e.getIn(St)})),a=so((function(e){return e.getIn(Et)})),o=mo(n,a);return(0,Ya.useEffect)((function(){t(O())}),[t]),(0,co.jsx)(Xa.List,{children:pr()(r).call(r,(function(e){var t,r=xo(e)||"";return(0,co.jsx)(vo,{data:e,to:je()(t="".concat(o,"/request/")).call(t,r)},r)}))})};var Eo=eo().div.withConfig({displayName:"AllRequestsContainer__HeaderRow",componentId:"k7n8n2-0"})(["display:flex;justify-content:space-between;align-items:center;"]);const bo=function(){var e=so((function(e){return e.getIn(St)})),t=so((function(e){return e.getIn(Et)})),r=mo(e,t);return(0,co.jsxs)("div",{children:[(0,co.jsxs)(Eo,{children:[(0,co.jsx)(Xa.Typography,{variant:"h1",children:"Access Requests"}),(0,co.jsx)(Xa.Button,{color:"primary",component:$a.Link,to:"".concat(r,"/new"),children:"New Request"})]}),(0,co.jsx)(So,{})]})},wo=require("@fortawesome/pro-regular-svg-icons/faPrint"),Io=require("@fortawesome/react-fontawesome"),Ao=require("react-router");var Ro=r(7116);const To=require("@fortawesome/pro-regular-svg-icons/faPaperclip"),Co=require("@fortawesome/pro-light-svg-icons/faFilePdf"),Do=require("@fortawesome/pro-light-svg-icons/faFileWord"),jo=require("@fortawesome/pro-regular-svg-icons/faDownload"),_o=require("@fortawesome/pro-regular-svg-icons/faPen"),qo=require("@fortawesome/pro-regular-svg-icons/faTimes"),ko=require("@fortawesome/pro-regular-svg-icons/faTrashAlt");var Oo="Consent Form",Uo="CPHS Review",Po="Data Release Letter",Fo="Data Security Letter",Lo="Data Use Agreement",No="Department Support Letter",Mo="IRB Approval",Bo="Participant's Bill of Rights",Qo=[{label:Oo,value:Oo},{label:Uo,value:Uo},{label:Po,value:Po},{label:Fo,value:Fo},{label:Lo,value:Lo},{label:No,value:No},{label:Mo,value:Mo},{label:Bo,value:Bo}];const Wo=function(e){var t=e.index,r=e.onTagChange,n=e.value;return(0,co.jsx)(Xa.Creatable,{isClearable:!0,onChange:function(e){r(t,e)},options:Qo,placeholder:"Select or create tag",useRawValues:!0,value:n})};var zo,Ho=eo().div.withConfig({displayName:"styled__CenterWrapper",componentId:"sc-6qf0vq-0"})(["align-items:center;display:flex;height:100%;justify-content:center;"]),Go=eo().div.withConfig({displayName:"styled__ItemTextWrapper",componentId:"sc-6qf0vq-1"})(["padding-right:",";width:100%;"],(function(e){return e.paddingRight?e.paddingRight:"16px"})),Jo=("".concat("audio/","*"),"".concat("image/","*")),Ko=("".concat("video/","*"),"application/vnd.openxmlformats-officedocument.wordprocessingml.document"),Yo="application/pdf",Vo=(u(zo={},Yo,Co.faFilePdf),u(zo,Ko,Do.faFileWord),zo),Xo=p.DataUtils.getEntityKeyId,$o=p.DataUtils.getPropertyValue,Zo=rr.DATE_TIME,ei=rr.FILE_DATA,ti=rr.LABEL,ri=rr.NAME,ni=rr.TYPE,ai=eo().img.withConfig({displayName:"AttachmentItem__ImagePreview",componentId:"olj6j0-0"})(["max-height:40px;max-width:40px;"]),oi=function(e){var t=e.date,r=e.tag;return(0,co.jsxs)(co.Fragment,{children:[t,r&&(0,co.jsx)(Xa.Tag,{mode:"secondary",children:r})]})};const ii=function(e){var t,r,n=e.divider,a=e.file,o=e.onDelete,i=io(),s=ho((0,Ya.useState)(!1),2),c=s[0],u=s[1],l=$o(a,[Zo,0]),f=jn.DateTime.fromISO(l).toLocaleString(jn.DateTime.DATE_SHORT),p=$o(a,[ei,0]),d=Xo(a),v=$o(a,[ri,0]),h=$o(a,[ti,0]),y=$o(a,[ni,0]);It()(t=go()(Vo)).call(t,(function(e){var t=ho(e,2),n=t[0],a=t[1];Ua()(y).call(y,n)&&(r=a)}));var g=r?(0,co.jsx)(Io.FontAwesomeIcon,{fixedWidth:!0,icon:r,size:"2x"}):(0,co.jsx)(ai,{src:p});return(0,co.jsxs)(Xa.ListItem,{divider:n,children:[(0,co.jsx)(Xa.ListItemAvatar,{children:g}),(0,co.jsxs)(Go,{paddingRight:"96px",children:[(0,co.jsx)(Xa.ListItemText,{primary:v,secondary:c?null:(0,co.jsx)(oi,{date:f,tag:h})}),c&&(0,co.jsx)(Wo,{index:d,onTagChange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";i(Z({entityKeyId:e,tag:t})),u(!1)},value:h})]}),(0,co.jsxs)(Xa.ListItemSecondaryAction,{children:[(0,co.jsx)(Xa.IconButton,{"aria-label":"Edit Tag",onClick:function(){u(!c)},title:"Edit Tag",children:(0,co.jsx)(Io.FontAwesomeIcon,{fixedWidth:!0,icon:c?qo.faTimes:_o.faPen})}),(0,co.jsx)("a",{"aria-label":"Download",download:!0,href:p,rel:"noreferrer",target:"_blank",title:"Download",children:(0,co.jsx)(Xa.IconButton,{children:(0,co.jsx)(Io.FontAwesomeIcon,{icon:jo.faDownload,fixedWidth:!0})})}),(0,co.jsx)(Xa.IconButton,{"aria-label":"Delete",onClick:function(){o(d)},title:"Delete",children:(0,co.jsx)(Io.FontAwesomeIcon,{fixedWidth:!0,icon:ko.faTrashAlt})})]})]})};var si=p.DataUtils.getEntityKeyId;const ci=function(t){var r,n=t.accessRequestId,a=so((function(t){return t.getIn([h,D])||(0,e.Map)()})),o=io();(0,Ya.useEffect)((function(){o(H(n))}),[n,o]);var i=function(e){o(Y([e]))};return(0,co.jsx)(Xa.List,{children:pr()(r=a.valueSeq()).call(r,(function(e,t){var r=si(e),n=t!==a.size-1;return(0,co.jsx)(ii,{divider:n,file:e,onDelete:i},r)}))})};var ui=r(1068),li=r.n(ui);function fi(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rr)return[!1,Ui(r)];if(e.sizer)return[!1,Ui(r)]}return[!0,null]}function Mi(e){return null!=e}function Bi(e){var t=e.files,r=e.accept,n=e.minSize,a=e.maxSize,o=e.multiple,i=e.maxFiles;return!(!o&&t.length>1||o&&i>=1&&t.length>i)&&t.every((function(e){var t=qi(Li(e,r),1)[0],o=qi(Ni(e,n,a),1)[0];return t&&o}))}function Qi(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Wi(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function zi(e){e.preventDefault()}function Hi(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function Gi(e){return-1!==e.indexOf("Edge/")}function Ji(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return Hi(e)||Gi(e)}function Ki(){for(var e=arguments.length,t=new Array(e),r=0;r1?r-1:0),a=1;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var ns=(0,Ya.forwardRef)((function(e,t){var r=e.children,n=is(rs(e,["children"])),a=n.open,o=rs(n,["open"]);return(0,Ya.useImperativeHandle)(t,(function(){return{open:a}}),[a]),Va().createElement(Ya.Fragment,null,r(es(es({},o),{},{open:a})))}));ns.displayName="Dropzone";var as={disabled:!1,getFilesFromEvent:Di.fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};ns.defaultProps=as,ns.propTypes={children:Ci().func,accept:Ci().oneOfType([Ci().string,Ci().arrayOf(Ci().string)]),multiple:Ci().bool,preventDropOnDocument:Ci().bool,noClick:Ci().bool,noKeyboard:Ci().bool,noDrag:Ci().bool,noDragEventsBubbling:Ci().bool,minSize:Ci().number,maxSize:Ci().number,maxFiles:Ci().number,disabled:Ci().bool,getFilesFromEvent:Ci().func,onFileDialogCancel:Ci().func,onDragEnter:Ci().func,onDragLeave:Ci().func,onDragOver:Ci().func,onDrop:Ci().func,onDropAccepted:Ci().func,onDropRejected:Ci().func,validator:Ci().func};var os={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function is(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=es(es({},as),e),r=t.accept,n=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,i=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,f=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,v=t.onDropRejected,h=t.onFileDialogCancel,y=t.preventDropOnDocument,g=t.noClick,m=t.noKeyboard,x=t.noDrag,S=t.noDragEventsBubbling,E=t.validator,b=(0,Ya.useRef)(null),w=(0,Ya.useRef)(null),I=(0,Ya.useReducer)(ss,os),A=Vi(I,2),R=A[0],T=A[1],C=R.isFocused,D=R.isFileDialogActive,j=R.draggedFiles,_=(0,Ya.useCallback)((function(){w.current&&(T({type:"openDialog"}),w.current.value=null,w.current.click())}),[T]),q=function(){D&&setTimeout((function(){w.current&&(w.current.files.length||(T({type:"closeDialog"}),"function"==typeof h&&h()))}),300)};(0,Ya.useEffect)((function(){return window.addEventListener("focus",q,!1),function(){window.removeEventListener("focus",q,!1)}}),[w,D,h]);var k=(0,Ya.useCallback)((function(e){b.current&&b.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),_()))}),[b,w]),O=(0,Ya.useCallback)((function(){T({type:"focus"})}),[]),U=(0,Ya.useCallback)((function(){T({type:"blur"})}),[]),P=(0,Ya.useCallback)((function(){g||(Ji()?setTimeout(_,0):_())}),[w,g]),F=(0,Ya.useRef)([]),L=function(e){b.current&&b.current.contains(e.target)||(e.preventDefault(),F.current=[])};(0,Ya.useEffect)((function(){return y&&(document.addEventListener("dragover",zi,!1),document.addEventListener("drop",L,!1)),function(){y&&(document.removeEventListener("dragover",zi),document.removeEventListener("drop",L))}}),[b,y]);var N=(0,Ya.useCallback)((function(e){e.preventDefault(),e.persist(),G(e),F.current=[].concat(Yi(F.current),[e.target]),Wi(e)&&Promise.resolve(a(e)).then((function(t){Qi(e)&&!S||(T({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e))}))}),[a,u,S]),M=(0,Ya.useCallback)((function(e){e.preventDefault(),e.persist(),G(e);var t=Wi(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,S]),B=(0,Ya.useCallback)((function(e){e.preventDefault(),e.persist(),G(e);var t=F.current.filter((function(e){return b.current&&b.current.contains(e)})),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),F.current=t,t.length>0||(T({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Wi(e)&&l&&l(e))}),[b,l,S]),Q=(0,Ya.useCallback)((function(e){e.preventDefault(),e.persist(),G(e),F.current=[],Wi(e)&&Promise.resolve(a(e)).then((function(t){if(!Qi(e)||S){var n=[],a=[];t.forEach((function(e){var t=Vi(Li(e,r),2),s=t[0],c=t[1],u=Vi(Ni(e,i,o),2),l=u[0],f=u[1],p=E?E(e):null;if(s&&l&&!p)n.push(e);else{var d=[c,f];p&&(d=d.concat(p)),a.push({file:e,errors:d.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&c>=1&&n.length>c)&&(n.forEach((function(e){a.push({file:e,errors:[Fi]})})),n.splice(0)),T({acceptedFiles:n,fileRejections:a,type:"setFiles"}),p&&p(n,a,e),a.length>0&&v&&v(a,e),n.length>0&&d&&d(n,e)}})),T({type:"reset"})}),[s,r,i,o,c,a,p,d,v,S]),W=function(e){return n?null:e},z=function(e){return m?null:W(e)},H=function(e){return x?null:W(e)},G=function(e){S&&e.stopPropagation()},J=(0,Ya.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,a=e.onKeyDown,o=e.onFocus,i=e.onBlur,s=e.onClick,c=e.onDragEnter,u=e.onDragOver,l=e.onDragLeave,f=e.onDrop,p=rs(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return es(es(ts({onKeyDown:z(Ki(a,k)),onFocus:z(Ki(o,O)),onBlur:z(Ki(i,U)),onClick:W(Ki(s,P)),onDragEnter:H(Ki(c,N)),onDragOver:H(Ki(u,M)),onDragLeave:H(Ki(l,B)),onDrop:H(Ki(f,Q))},r,b),n||m?{}:{tabIndex:0}),p)}}),[b,k,O,U,P,N,M,B,Q,m,x,n]),K=(0,Ya.useCallback)((function(e){e.stopPropagation()}),[]),Y=(0,Ya.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,a=e.onChange,o=e.onClick,i=rs(e,["refKey","onChange","onClick"]),c=ts({accept:r,multiple:s,type:"file",style:{display:"none"},onChange:W(Ki(a,Q)),onClick:W(Ki(o,K)),autoComplete:"off",tabIndex:-1},n,w);return es(es({},c),i)}}),[w,r,s,Q,n]),V=j.length,X=V>0&&Bi({files:j,accept:r,minSize:i,maxSize:o,multiple:s,maxFiles:c}),$=V>0&&!X;return es(es({},R),{},{isDragAccept:X,isDragReject:$,isFocused:C&&!n,getRootProps:J,getInputProps:Y,rootRef:b,inputRef:w,open:W(_)})}function ss(e,t){switch(t.type){case"focus":return es(es({},e),{},{isFocused:!0});case"blur":return es(es({},e),{},{isFocused:!1});case"openDialog":return es(es({},e),{},{isFileDialogActive:!0});case"closeDialog":return es(es({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var r=t.isDragActive,n=t.draggedFiles;return es(es({},e),{},{draggedFiles:n,isDragActive:r});case"setFiles":return es(es({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return es(es({},e),{},{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return e}}var cs=Xa.Colors.BLUE,us=Xa.Colors.NEUTRAL,ls=Xa.Colors.PURPLE,fs=Xa.Colors.RED,ps=[Jo,Yo,Ko],ds=eo().div.withConfig({displayName:"Dropzone__DropzoneWrapper",componentId:"j9e9j-0"})(["align-items:center;background-color:",";border-color:",";border-radius:3px;border-style:dashed;border-width:2px;display:flex;flex-direction:column;flex:1;outline:none;padding:32px;transition:border 250ms ease-in-out;"],us.N50,(function(e){return function(e){return e.isDragAccept?ls.P300:e.isDragReject?fs.R300:e.isDragActive?cs.B300:us.N100}(e)}));const vs=function(e){var t=e.onDrop,r=is({accept:ps.join(","),onDrop:t}),n=r.getRootProps,a=r.getInputProps,o=r.isDragActive,i=r.isDragAccept,s=r.isDragReject,c=n(),u=c.onBlur,l=c.onClick,f=c.onDragEnter,p=c.onDragLeave,d=c.onDragOver,v=c.onDrop,h=c.onFocus,y=c.onKeyDown,g=c.ref,m=c.tabIndex,x=a(),S=x.accept,E=x.autoComplete,b=x.multiple,w=x.onChange,I=x.onClick,A=x.ref,R=x.style,T=x.tabIndex,C=x.type;return(0,co.jsxs)(ds,{isDragActive:o,isDragAccept:i,isDragReject:s,onBlur:u,onClick:l,onDragEnter:f,onDragLeave:p,onDragOver:d,onDrop:v,onFocus:h,onKeyDown:y,ref:g,tabIndex:m,children:[(0,co.jsx)("input",{accept:S,autoComplete:E,multiple:b,onChange:w,onClick:I,ref:A,style:R,tabIndex:T,type:C}),(0,co.jsx)(Xa.Typography,{component:"span",children:"Drop files here or click to select."})]})};const hs=function(e){var t=e.onChange,r=(0,Ya.useCallback)((function(e){return t(e)}),[t]);return(0,co.jsx)(vs,{onDrop:function(e){It()(e).call(e,(function(e){var t=e.name,n=e.type,a=new FileReader;a.onload=function(){var e=a.result;r({file:{base64:e,name:t,type:n}})},a.readAsDataURL(e)}))}})};function ys(e){var t=function(){if("undefined"==typeof Reflect||!li())return!1;if(li().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(li()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Si(e);if(t){var a=Si(this).constructor;r=li()(n,arguments,a)}else r=n.apply(this,arguments);return mi(this,r)}}var gs=p.ReduxUtils.isSuccess,ms=p.ReduxUtils.isPending,xs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=di(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hi(e,t)}(o,e);var t,r,n,a=ys(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),u(pi(t=a.call(this,e)),"onDrop",(function(e){var r,n=e.file,a=t.state.files;t.setState({files:je()(r=[]).call(r,Te(a),[n])})})),u(pi(t),"onDelete",(function(e){var r=t.state,n=r.files,a=r.tags,o=yr()(n),i=yr()(a);wi()(o).call(o,e,1),wi()(i).call(i,e,1),t.setState({files:o,tags:i})})),u(pi(t),"onTagChange",(function(e,r){var n=t.state.tags,a=yr()(n);a[e]=r,t.setState({tags:a})})),u(pi(t),"onUpload",(function(){var e=t.props,r=e.accessRequestId,n=e.actions,a=t.state,o=a.files,i=a.tags;n.uploadAttachments({accessRequestId:r,files:o,tags:i})})),t.state={files:[],tags:[]},t}return t=o,(r=[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.requestState,r=e.onSuccess;gs(t)&&r()}},{key:"componentWillUnmount",value:function(){this.props.actions.resetRequestState([G])}},{key:"render",value:function(){var e=this,t=this.state,r=t.files,n=t.tags,a=this.props.requestState;return(0,co.jsxs)("div",{children:[(0,co.jsx)(hs,{onChange:this.onDrop}),(0,co.jsx)(Xa.List,{children:pr()(r).call(r,(function(t,a){var o=a!==r.length-1;return(0,co.jsx)(Ri,{divider:o,file:t,index:a,onDelete:e.onDelete,onTagChange:e.onTagChange,tag:n[a]},"document-".concat(a))}))}),(0,co.jsx)(Xa.Button,{color:"primary",disabled:!r.length,fullWidth:!0,isLoading:ms(a),onClick:this.onUpload,children:"Upload"})]})}}])&&fi(t.prototype,r),n&&fi(t,n),o}(Ya.Component);const Ss=(0,no.connect)((function(e){return{requestState:e.getIn([h,G,R])}}),(function(e){return{actions:(0,s.bindActionCreators)({resetRequestState:xe,uploadAttachments:J},e)}}),null,{context:oo})(xs);var Es=r(4310),bs=r.n(Es),ws=r(116),Is=r.n(ws),As=r(4074),Rs=r.n(As),Ts=r(9649),Cs=r.n(Ts),Ds=r(368),js=r.n(Ds),_s=r(3978),qs=r.n(_s),ks=r(3263),Os=r(5683),Us=r(9356);function Ps(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Us(e);for(n=0;n=0||(a[r]=e[r]);return a}(e,t);if(ks){var o=ks(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Fs(e,t){var r=vr()(e);if(bs()){var n=bs()(e);t&&(n=Is()(n).call(n,(function(t){return Rs()(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ls(e){for(var t=1;t0?t:720}));const Ws=function(e){var t=e.accessRequestId,r=ho((0,Ya.useState)(0),2),n=r[0],a=r[1];return(0,co.jsxs)(Qs,{children:[(0,co.jsxs)(Xa.Tabs,{indicatorColor:"primary",onChange:function(e,t){a(t)},textColor:"primary",value:n,children:[(0,co.jsx)(Xa.Tab,{label:"Manage"}),(0,co.jsx)(Xa.Tab,{label:"Upload"})]}),(0,co.jsx)(Ns,{index:0,value:n,children:(0,co.jsx)(ci,{accessRequestId:t})}),(0,co.jsx)(Ns,{index:1,value:n,children:(0,co.jsx)(Ss,{accessRequestId:t,onSuccess:function(){a(0)}})})]})};const zs=function(e){var t=e.accessRequestId,r=e.isVisible,n=e.onClose;return(0,co.jsx)(Xa.Modal,{viewportScrolling:!0,textTitle:"Attachments",isVisible:r,onClose:n,withFooter:!1,children:(0,co.jsx)(Ws,{accessRequestId:t})})};const Hs=function(e){var t=e.accessRequestId,r=ho((0,Ya.useState)(!1),2),n=r[0],a=r[1];return(0,co.jsxs)(co.Fragment,{children:[(0,co.jsx)(Xa.IconButton,{"aria-controls":n?"access-request-attachment-menu":void 0,"aria-expanded":n?"true":void 0,"aria-haspopup":"menu","aria-label":"access request attachment button",onClick:function(){a(!0)},children:(0,co.jsx)(Io.FontAwesomeIcon,{fixedWidth:!0,icon:To.faPaperclip})}),(0,co.jsx)(zs,{accessRequestId:t,isVisible:n,onClose:function(){a(!1)}})]})},Gs=require("lodash/merge");var Js=r.n(Gs),Ks=new p.Logger("SchemaUtils"),Ys=function(e,t){var r=t.schema,n=t.uiSchema,a=e.schema,o=void 0===a?{}:a,i=e.uiSchema,s=void 0===i?{}:i;return{schema:Js()(o,r),uiSchema:Js()(s,n)}};const Vs=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={schema:{},uiSchema:{}};return e.length!==t.length&&Ks.warn("generateReviewSchema","schemas and uiSchemas have mismatching lengths"),It()(e).call(e,(function(r,a){Ys(n,{schema:e[a],uiSchema:t[a]})})),r&&Js()(n.uiSchema,{"ui:disabled":!0,"ui:readonly":!0}),n};function Xs(e,t){var r=vr()(e);if(bs()){var n=bs()(e);t&&(n=Is()(n).call(n,(function(t){return Rs()(e,t).enumerable}))),r.push.apply(r,n)}return r}function $s(e){for(var t=1;t0),onClick:s,children:"Back"}),(0,co.jsx)("span",{children:je()(a="".concat(u+1," of ")).call(a,p)}),(0,co.jsx)(Xa.Button,{isLoading:i,mode:"primary",onClick:v,children:d?"Complete Survey":"Next"})]})]})}})};var hc=p.DataUtils.getPropertyValue,yc=rr.RJSF_JSON_SCHEMA,gc=rr.RJSF_UI_SCHEMA,mc=p.ReduxUtils.isFailure,xc=p.ReduxUtils.isPending,Sc=p.ReduxUtils.isStandby;const Ec=function(){var t=io(),r=so((function(e){return e.getIn([h,_,R])})),n=so((function(t){return t.getIn([h,j],(0,e.List)())}));if((0,Ya.useEffect)((function(){return t(q()),function(){return t(xe([_]))}}),[t]),xc(r)||Sc(r))return(0,co.jsx)(Ho,{children:(0,co.jsx)(Xa.Spinner,{size:"2x"})});if(mc(r))return(0,co.jsx)("div",{children:"An error has occurred in fetching the form template. Please contact support."});try{var a=n.first(),o=hc(a,[yc,0]),i=hc(a,[gc,0]),s=JSON.parse(o),c=JSON.parse(i);return(0,co.jsx)(vc,{schemas:s,uiSchemas:c})}catch(e){return(0,co.jsx)("div",{children:"An error has occured in parsing the form template. Please contact support."})}};var bc=p.ReduxUtils.isPending,wc=p.ReduxUtils.isStandby,Ic=p.ValidationUtils.isValidUUID;const Ac=function(e){var t,r=e.match,n=e.organizationId,a=e.root,o=io();(0,Ya.useEffect)((function(){Ic(n)&&o(rt({match:r,organizationId:n,root:a}))}),[o,n,a]);var i=so((function(e){return e.getIn([y,tt,R])}));return bc(i)||wc(i)?(0,co.jsx)(Ho,{children:(0,co.jsx)(Xa.Spinner,{size:"2x"})}):(0,co.jsxs)($a.Switch,{children:[(0,co.jsx)($a.Route,{path:"".concat(a,"/new"),render:function(){return(0,co.jsx)(Ec,{})}}),(0,co.jsx)($a.Route,{path:je()(t="".concat(a)).call(t,ja),render:function(){return(0,co.jsx)(uc,{})}}),(0,co.jsx)($a.Route,{render:function(){return(0,co.jsx)(bo,{})}})]})};function Rc(e){var t=e.children;return(0,co.jsx)(no.Provider,{context:oo,store:ao,children:(0,co.jsx)(i.ConnectedRouter,{history:Ha,context:oo,children:t})})}const Tc=function(e){var t=e.match,r=e.organizationId,n=e.root;return(0,co.jsx)(Rc,{children:(0,co.jsx)(Ac,{match:t,organizationId:r,root:n})})}})(),n})()})); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.openlatticeAccessRequest=t():e.openlatticeAccessRequest=t()}(self,(function(){return(()=>{var e={6419:(e,t,r)=>{e.exports=r(9330)},1511:(e,t,r)=>{e.exports=r(9718)},7766:(e,t,r)=>{e.exports=r(7010)},62:(e,t,r)=>{e.exports=r(973)},116:(e,t,r)=>{e.exports=r(1672)},8914:(e,t,r)=>{e.exports=r(2142)},1643:(e,t,r)=>{e.exports=r(3769)},2991:(e,t,r)=>{e.exports=r(3919)},2366:(e,t,r)=>{e.exports=r(9871)},3649:(e,t,r)=>{e.exports=r(8646)},2762:(e,t,r)=>{e.exports=r(9874)},9828:(e,t,r)=>{e.exports=r(6214)},9340:(e,t,r)=>{e.exports=r(4098)},368:(e,t,r)=>{e.exports=r(7833)},3978:(e,t,r)=>{e.exports=r(2598)},6295:(e,t,r)=>{e.exports=r(1135)},4074:(e,t,r)=>{e.exports=r(9091)},9649:(e,t,r)=>{e.exports=r(9389)},4310:(e,t,r)=>{e.exports=r(3143)},6902:(e,t,r)=>{e.exports=r(6986)},455:(e,t,r)=>{e.exports=r(9027)},1068:(e,t,r)=>{e.exports=r(4471)},3592:(e,t,r)=>{e.exports=r(9387)},8363:(e,t,r)=>{e.exports=r(1801)},9996:(e,t,r)=>{e.exports=r(5976)},5683:(e,t,r)=>{e.exports=r(4502)},5238:(e,t,r)=>{e.exports=r(3085)},189:(e,t,r)=>{e.exports=r(8639)},4341:(e,t,r)=>{e.exports=r(9219)},3263:(e,t,r)=>{e.exports=r(3800)},4889:(e,t,r)=>{e.exports=r(5347)},9356:(e,t,r)=>{e.exports=r(4785)},9542:(e,t,r)=>{e.exports=r(9402)},1446:(e,t,r)=>{e.exports=r(8564)},3882:(e,t,r)=>{e.exports=r(1882)},3109:(e,t,r)=>{e.exports=r(6512)},7116:function(e,t,r){var n,a;"undefined"!=typeof self&&self,e.exports=(n=r(9297),a=r(2268),function(){"use strict";var e={655:function(e,t,r){r.r(t),r.d(t,{__extends:function(){return a},__assign:function(){return o},__rest:function(){return i},__decorate:function(){return s},__param:function(){return c},__metadata:function(){return u},__awaiter:function(){return l},__generator:function(){return f},__createBinding:function(){return p},__exportStar:function(){return d},__values:function(){return v},__read:function(){return h},__spread:function(){return y},__spreadArrays:function(){return g},__spreadArray:function(){return m},__await:function(){return x},__asyncGenerator:function(){return S},__asyncDelegator:function(){return E},__asyncValues:function(){return b},__makeTemplateObject:function(){return I},__importStar:function(){return A},__importDefault:function(){return T},__classPrivateFieldGet:function(){return R},__classPrivateFieldSet:function(){return D}});var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;s--)(a=e[s])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(a,o){function i(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,n=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function y(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(r=a[e](t)).value instanceof x?Promise.resolve(r.value.v).then(c,u):l(o[0][2],r)}catch(e){l(o[0][3],e)}var r}function c(e){s("next",e)}function u(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function E(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,a){t[n]=e[n]?function(t){return(r=!r)?{value:x(e[n](t)),done:"return"===n}:a?a(t):t}:a}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,a){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,a,(t=e[r](t)).done,t.value)}))}}}function I(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var w=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&p(t,e,r);return w(t,e),t}function T(e){return e&&e.__esModule?e:{default:e}}function R(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function D(e,t,r,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r}},297:function(e){e.exports=n},268:function(e){e.exports=a}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return function(){var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=e.PrintContextConsumer=void 0;var t=r(655),n=r(297),a=r(268),i=Object.prototype.hasOwnProperty.call(n,"createContext"),s=Object.prototype.hasOwnProperty.call(n,"useMemo")&&Object.prototype.hasOwnProperty.call(n,"useCallback"),c=i?n.createContext({}):null;e.PrintContextConsumer=c?c.Consumer:function(){return null};var u={copyStyles:!0,pageStyle:"@page { size: auto; margin: 0mm; } @media print { body { -webkit-print-color-adjust: exact; } }",removeAfterPrint:!1,suppressErrors:!1},l=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.startPrint=function(e){var t=r.props,n=t.onAfterPrint,a=t.onPrintError,o=t.print,i=t.suppressErrors,s=t.documentTitle;setTimeout((function(){if(e.contentWindow){if(e.contentWindow.focus(),o)o(e).then(r.handleRemoveIframe).catch((function(e){a?a("print",e):i||console.error("An error was thrown by the specified `print` function",e)}));else if(e.contentWindow.print){var t=document.title;s&&(document.title=s),e.contentWindow.print(),s&&(document.title=t),n&&n()}else i||console.error("Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes.");r.handleRemoveIframe()}else i||console.error("Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/")}),500)},r.triggerPrint=function(e){var t=r.props,n=t.onBeforePrint,a=t.onPrintError;if(n){var o=n();o&&"function"==typeof o.then?o.then((function(){r.startPrint(e)})).catch((function(e){a&&a("onBeforePrint",e)})):r.startPrint(e)}else r.startPrint(e)},r.handleClick=function(){var e=r.props,t=e.onBeforeGetContent,n=e.onPrintError;if(t){var a=t();a&&"function"==typeof a.then?a.then(r.handlePrint).catch((function(e){n&&n("onBeforeGetContent",e)})):r.handlePrint()}else r.handlePrint()},r.handlePrint=function(){var e=r.props,n=e.bodyClass,o=e.content,i=e.copyStyles,s=e.fonts,c=e.pageStyle,u=e.suppressErrors,l=o();if(void 0!==l)if(null!==l){var f=document.createElement("iframe");f.style.position="absolute",f.style.top="-1000px",f.style.left="-1000px",f.id="printWindow",f.title="Print Window";var p=a.findDOMNode(l);if(p){var d=p instanceof Text,v=document.querySelectorAll("link[rel='stylesheet']"),h=d?[]:p.querySelectorAll("img");r.linkTotal=v.length+h.length,r.linksLoaded=[],r.linksErrored=[],r.fontsLoaded=[],r.fontsErrored=[];var y=function(e,t){t?r.linksLoaded.push(e):(u||console.error('"react-to-print" was unable to load a linked node. It may be invalid. "react-to-print" will continue attempting to print the page. The linked node that errored was:',e),r.linksErrored.push(e)),r.linksLoaded.length+r.linksErrored.length+r.fontsLoaded.length+r.fontsErrored.length===r.linkTotal&&r.triggerPrint(f)};f.onload=function(){var e,a,o,l;f.onload=null;var v=f.contentDocument||(null===(a=f.contentWindow)||void 0===a?void 0:a.document);if(v){v.body.appendChild(p.cloneNode(!0)),s&&((null===(o=f.contentDocument)||void 0===o?void 0:o.fonts)&&(null===(l=f.contentWindow)||void 0===l?void 0:l.FontFace)?s.forEach((function(e){var t=new FontFace(e.family,e.source);f.contentDocument.fonts.add(t),t.loaded.then((function(e){r.fontsLoaded.push(e)})).catch((function(e){r.fontsErrored.push(t),u||console.error('"react-to-print" was unable to load a font. "react-to-print" will continue attempting to print the page. The font that failed to load is:',t,"The error from loading the font is:",e)}))})):u||console.error('"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API'));var g="function"==typeof c?c():c;if("string"!=typeof g)u||console.error('"react-to-print" expected a "string" from `pageStyle` but received "'+typeof g+'". Styles from `pageStyle` will not be applied.');else{var m=v.createElement("style");m.appendChild(v.createTextNode(g)),v.head.appendChild(m)}if(n&&(e=v.body.classList).add.apply(e,t.__spreadArray([],t.__read(n.split(" ")))),!d){for(var x=v.querySelectorAll("canvas"),S=p.querySelectorAll("canvas"),E=0,b=x.length;E tag with an empty "src" attribute. It will not attempt to pre-load it. The is:',w)}var R="input",D=p.querySelectorAll(R),C=v.querySelectorAll(R);for(E=0;E tag with an empty "href" attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the was not loaded. The is:',L),y(L,!0)}}0!==r.linkTotal&&i||r.triggerPrint(f)},r.handleRemoveIframe(!0),document.body.appendChild(f)}else u||console.error('"react-to-print" could not locate the DOM node corresponding with the `content` prop')}else u||console.error('There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.');else u||console.error('For "react-to-print" to work only Class based components can be printed.')},r.handleRemoveIframe=function(e){var t=r.props.removeAfterPrint;if(e||t){var n=document.getElementById("printWindow");n&&document.body.removeChild(n)}},r}return t.__extends(r,e),r.prototype.render=function(){var e=this.props,t=e.children,r=e.suppressErrors,a=e.trigger;if(a)return n.cloneElement(a(),{onClick:this.handleClick});if(!c)return r||console.error('"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"'),null;var o={handlePrint:this.handleClick};return n.createElement(c.Provider,{value:o},t)},r.defaultProps=u,r}(n.Component);e.default=l,e.useReactToPrint=s?function(e){var r=n.useMemo((function(){return new l(t.__assign(t.__assign({},u),e))}),[e]);return n.useCallback((function(){return r.handleClick()}),[r])}:function(e){e.suppressErrors||console.warn('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')}}(),o}())},9387:e=>{"use strict";e.exports=require("core-js-pure/features/array/from")},1801:e=>{"use strict";e.exports=require("core-js-pure/features/array/is-array")},5976:e=>{"use strict";e.exports=require("core-js-pure/features/get-iterator-method")},4502:e=>{"use strict";e.exports=require("core-js-pure/features/instance/index-of")},3085:e=>{"use strict";e.exports=require("core-js-pure/features/instance/slice")},8639:e=>{"use strict";e.exports=require("core-js-pure/features/object/create")},9219:e=>{"use strict";e.exports=require("core-js-pure/features/object/define-property")},3800:e=>{"use strict";e.exports=require("core-js-pure/features/object/get-own-property-symbols")},5347:e=>{"use strict";e.exports=require("core-js-pure/features/object/get-prototype-of")},4785:e=>{"use strict";e.exports=require("core-js-pure/features/object/keys")},9402:e=>{"use strict";e.exports=require("core-js-pure/features/object/set-prototype-of")},8564:e=>{"use strict";e.exports=require("core-js-pure/features/symbol")},1882:e=>{"use strict";e.exports=require("core-js-pure/features/symbol/iterator")},9330:e=>{"use strict";e.exports=require("core-js-pure/stable/array/from")},9718:e=>{"use strict";e.exports=require("core-js-pure/stable/array/is-array")},7010:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/concat")},973:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/every")},1672:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/filter")},2142:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/for-each")},3769:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/index-of")},3919:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/map")},9871:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/reduce")},8646:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/slice")},9874:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/splice")},6214:e=>{"use strict";e.exports=require("core-js-pure/stable/instance/starts-with")},4098:e=>{"use strict";e.exports=require("core-js-pure/stable/json/stringify")},7833:e=>{"use strict";e.exports=require("core-js-pure/stable/object/define-properties")},2598:e=>{"use strict";e.exports=require("core-js-pure/stable/object/define-property")},1135:e=>{"use strict";e.exports=require("core-js-pure/stable/object/entries")},9091:e=>{"use strict";e.exports=require("core-js-pure/stable/object/get-own-property-descriptor")},9389:e=>{"use strict";e.exports=require("core-js-pure/stable/object/get-own-property-descriptors")},3143:e=>{"use strict";e.exports=require("core-js-pure/stable/object/get-own-property-symbols")},6986:e=>{"use strict";e.exports=require("core-js-pure/stable/object/keys")},9027:e=>{"use strict";e.exports=require("core-js-pure/stable/object/values")},4471:e=>{"use strict";e.exports=require("core-js-pure/stable/reflect/construct")},9297:e=>{"use strict";e.exports=require("react")},2268:e=>{"use strict";e.exports=require("react-dom")},6512:e=>{"use strict";e.exports=require("regenerator-runtime")}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";r.r(n),r.d(n,{AccessRequestContainer:()=>Zc,initializeAccessRequestStore:()=>fo});const e=require("immutable");var t=r.n(e);const a=require("@redux-saga/core");var o=r.n(a);const i=require("connected-react-router/immutable"),s=require("redux");var c=r(4341);function u(e,t,r){return t in e?c(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const l=require("lattice-auth"),f=require("redux-immutable"),p=require("lattice-utils"),d=require("redux-reqseq");var v,h="access",y=p.ReduxConstants.APP,g=p.ReduxConstants.AUTH,m=p.ReduxConstants.EDM,x=p.ReduxConstants.ENTITY_SETS,S=p.ReduxConstants.ENTITY_SETS_INDEX_MAP,E=p.ReduxConstants.ENTITY_TYPES,b=p.ReduxConstants.ENTITY_TYPES_INDEX_MAP,I=p.ReduxConstants.ERROR,w=p.ReduxConstants.PROPERTY_TYPES,A=p.ReduxConstants.PROPERTY_TYPES_INDEX_MAP,T=p.ReduxConstants.REQUEST_STATE,R=(u(v={},I,!1),u(v,T,d.RequestStates.STANDBY),v),D="accessRequest",C="attachments",_="forms",j="GET_FORMS",q=(0,d.newRequestSequence)(j),k="GET_ALL_ACCESS_REQUESTS",O=(0,d.newRequestSequence)(k),U="GET_ACCESS_REQUEST",P=(0,d.newRequestSequence)(U),F="SUBMIT_ACCESS_REQUEST",L=(0,d.newRequestSequence)(F),N="SELECT_ACCESS_REQUEST",M="CLEAR_ACCESS_REQUEST",B=function(){return{type:M}},Q="UPDATE_ACCESS_REQUEST",W=(0,d.newRequestSequence)(Q),z="GET_ATTACHMENTS",H=(0,d.newRequestSequence)(z),G="UPLOAD_ATTACHMENTS",K=(0,d.newRequestSequence)(G),J="DELETE_ATTACHMENTS",V=(0,d.newRequestSequence)(J),Y="SAVE_NEW_FORM_TEMPLATE",X=(0,d.newRequestSequence)(Y),$="UPDATE_ATTACHMENT_TAG",Z=(0,d.newRequestSequence)($),ee="UPLOAD_FIELD_ATTACHMENT",te=(0,d.newRequestSequence)(ee),re="DELETE_FIELD_ATTACHMENT",ne=(0,d.newRequestSequence)(re),ae=p.ReduxConstants.REQUEST_STATE;function oe(e,t){return V.reducer(e,t,{REQUEST:function(){return e.setIn([J,ae],d.RequestStates.PENDING)},SUCCESS:function(){var r=t.value,n=e.get(C).deleteAll(r);return e.set(C,n).setIn([J,ae],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([J,ae],d.RequestStates.FAILURE)}})}var ie=p.ReduxConstants.REQUEST_STATE;function se(e,t){return P.reducer(e,t,{REQUEST:function(){return e.setIn([U,ie],d.RequestStates.PENDING)},SUCCESS:function(){return e.merge(t.value).setIn([U,ie],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([U,ie],d.RequestStates.FAILURE)}})}var ce=p.ReduxConstants.REQUEST_STATE;function ue(e,t){return O.reducer(e,t,{REQUEST:function(){return e.setIn([k,ce],d.RequestStates.PENDING)},SUCCESS:function(){return e.merge(t.value).setIn([k,ce],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([k,ce],d.RequestStates.FAILURE)}})}var le=p.ReduxConstants.REQUEST_STATE;function fe(e,t){return H.reducer(e,t,{REQUEST:function(){return e.setIn([z,le],d.RequestStates.PENDING)},SUCCESS:function(){return e.set(C,t.value).setIn([z,le],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([z,le],d.RequestStates.FAILURE)}})}var pe=p.ReduxConstants.REQUEST_STATE;function de(e,t){return q.reducer(e,t,{REQUEST:function(){return e.setIn([j,pe],d.RequestStates.PENDING)},SUCCESS:function(){return e.merge(t.value).setIn([j,pe],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([j,pe],d.RequestStates.FAILURE)}})}var ve=p.ReduxConstants.REQUEST_STATE;function he(e,t){return L.reducer(e,t,{REQUEST:function(){return e.setIn([F,ve],d.RequestStates.PENDING)},SUCCESS:function(){return e.set(D,t.value).setIn([F,ve],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([F,ve],d.RequestStates.FAILURE)}})}var ye=p.ReduxConstants.REQUEST_STATE;function ge(e,t){return W.reducer(e,t,{REQUEST:function(){var r=t.value,n=r.path,a=r.formData;return e.setIn(n,a).setIn([Q,ye],d.RequestStates.PENDING)},SUCCESS:function(){return e.setIn([Q,ye],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([Q,ye],d.RequestStates.FAILURE)}})}var me=p.ReduxConstants.REQUEST_STATE;function xe(e,t){return Z.reducer(e,t,{REQUEST:function(){var r=t.value,n=r.path,a=r.tag;return e.setIn(n,a).setIn([$,me],d.RequestStates.PENDING)},SUCCESS:function(){return e.setIn([$,me],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([$,me],d.RequestStates.FAILURE)}})}var Se=p.ReduxConstants.REQUEST_STATE;function Ee(e,t){return K.reducer(e,t,{REQUEST:function(){return e.setIn([G,Se],d.RequestStates.PENDING)},SUCCESS:function(){return e.setIn([G,Se],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([G,Se],d.RequestStates.FAILURE)}})}var be="RESET_REQUEST_STATE",Ie=function(e){return{path:e,type:be}},we=r(8363);function Ae(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:Fe,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case be:return Ue(e,t);case N:return e.set(D,t.value);case M:return e.set(D,Fe.get(D));case q.case(t.type):return de(e,t);case P.case(t.type):return se(e,t);case O.case(t.type):return ue(e,t);case L.case(t.type):return he(e,t);case W.case(t.type):return ge(e,t);case H.case(t.type):return fe(e,t);case K.case(t.type):return Ee(e,t);case V.case(t.type):return oe(e,t);case Z.case(t.type):return xe(e,t);default:return e}}var Ne=r(3109),Me=r.n(Ne),Be=r(2366),Qe=r.n(Be);const We=require("@redux-saga/core/effects"),ze=require("lattice-sagas");var He="GET_EDM_TYPES",Ge=(0,d.newRequestSequence)(He),Ke=Me().mark(tt),Je=Me().mark(rt),Ve=new p.Logger("EDMSagas"),Ye=p.LangUtils.isDefined,Xe=ze.EntityDataModelApiActions.getAllEntityTypes,$e=ze.EntityDataModelApiActions.getAllPropertyTypes,Ze=ze.EntityDataModelApiSagas.getAllEntityTypesWorker,et=ze.EntityDataModelApiSagas.getAllPropertyTypesWorker;function tt(e){var t,r,n,a;return Me().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,(0,We.put)(Ge.request(e.id));case 3:return o.next=5,(0,We.all)([(0,We.call)(Ze,Xe()),(0,We.call)(et,$e())]);case 5:if(n=o.sent,!(a=Qe()(n).call(n,(function(e,t){return Ye(e)?e:t.error}),void 0))){o.next=9;break}throw a;case 9:return t={data:(r={},u(r,E,n[0].data),u(r,w,n[1].data),r)},o.next=12,(0,We.put)(Ge.success(e.id,t.data));case 12:o.next=20;break;case 14:return o.prev=14,o.t0=o.catch(0),t={error:o.t0},Ve.error(e.type,o.t0),o.next=20,(0,We.put)(Ge.failure(e.id,o.t0));case 20:return o.prev=20,o.next=23,(0,We.put)(Ge.finally(e.id));case 23:return o.finish(20);case 24:return o.abrupt("return",t);case 25:case"end":return o.stop()}}),Ke,null,[[0,14,20,24]])}function rt(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(He,tt);case 2:case"end":return e.stop()}}),Je)}var nt=Error("invalid parameter: action.value is required and must be defined"),at=Error("invalid parameter: action.value is the incorrect type"),ot=(Error('invalid route: a route must be a non-empty string that starts with "/"'),Error("invalid uuid"),Error("unexpected state"),Error("caught exception in worker saga"),"INITIALIZE_APPLICATION"),it=(0,d.newRequestSequence)(ot),st="SET_ROOT",ct=Me().mark(gt),ut=Me().mark(mt),lt=ze.AppApiActions.getApp,ft=ze.AppApiActions.getAppConfigs,pt=ze.AppApiSagas.getAppWorker,dt=ze.AppApiSagas.getAppConfigsWorker,vt=p.ValidationUtils.isValidUUID,ht=p.LangUtils.isDefined,yt=new p.Logger("AppSagas");function gt(e){var t,r,n,a,o,i,s,c,u,l;return Me().wrap((function(f){for(;;)switch(f.prev=f.next){case 0:if(t={},f.prev=1,n=e.value,a=n.match,o=n.organizationId,i=n.root,vt(o)){f.next=5;break}throw at;case 5:if("string"==typeof i){f.next=7;break}throw at;case 7:if(ht(a)){f.next=9;break}throw at;case 9:return f.next=11,(0,We.put)(it.request(e.id));case 11:return f.next=13,(0,We.all)([(0,We.call)(tt,Ge()),(0,We.call)(pt,lt("access_requests"))]);case 13:if(!(s=f.sent)[0].error){f.next=16;break}throw s[0].error;case 16:if(!s[1].error){f.next=18;break}throw s[1].error;case 18:return c=s[1].data,f.next=21,(0,We.call)(dt,ft(c.id));case 21:if(!(u=f.sent).error){f.next=24;break}throw u.error;case 24:return l=Qe()(r=u.data).call(r,(function(e,t){var r=e;return t.organization.id===o&&(r=t),r}),{}),t.data={appConfig:l,root:i,match:a},f.next=28,(0,We.put)(it.success(e.id,t.data));case 28:f.next=35;break;case 30:return f.prev=30,f.t0=f.catch(1),yt.error(e.type,f.t0),f.next=35,(0,We.put)(it.failure(e.id,f.t0));case 35:return f.prev=35,f.next=38,(0,We.put)(it.finally(e.id));case 38:return f.finish(35);case 39:case"end":return f.stop()}}),ct,null,[[1,30,35,39]])}function mt(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(ot,gt);case 2:case"end":return e.stop()}}),ut)}var xt,St=p.ReduxConstants.REQUEST_STATE;function Et(e,t){switch(t.type){case st:var r=t.value;return e.set("root",r);case it.case(t.type):var n=t;return it.reducer(e,n,{REQUEST:function(){return e.setIn([ot,St],d.RequestStates.PENDING)},SUCCESS:function(){return e.merge(t.value).setIn([ot,St],d.RequestStates.SUCCESS)},FAILURE:function(){return e.setIn([ot,St],d.RequestStates.FAILURE)}});default:return e}}var bt=(0,e.fromJS)((u(xt={},ot,R),u(xt,"appConfig",{}),u(xt,"root","/"),u(xt,"match",{}),xt)),It=["app","appConfig","config"],wt=["app","root"],At=["app","match"];function Tt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case be:return Ue(e,t);case it.case(t.type):return Et(e,t);default:return e}}var Rt=r(8914),Dt=r.n(Rt);const Ct=require("lattice");var _t=Ct.Models.EntityTypeBuilder,jt=Ct.Models.PropertyTypeBuilder;function qt(t,r){return Ge.reducer(t,r,{REQUEST:function(){return t.setIn([He,T],d.RequestStates.PENDING).setIn([He,r.id],r)},SUCCESS:function(){var n=r.value.entityTypes,a=(0,e.List)().asMutable(),o=(0,e.Map)().asMutable();Dt()(n).call(n,(function(e,t){var r=new _t(e).build();a.push(r),o.set(r.id,t),o.set(r.type,t)}));var i=r.value.propertyTypes,s=(0,e.List)().asMutable(),c=(0,e.Map)().asMutable();return Dt()(i).call(i,(function(e,t){var r=new jt(e).build();s.push(r),c.set(r.id,t),c.set(r.type,t)})),t.set(E,a.asImmutable()).set(b,o.asImmutable()).set(w,s.asImmutable()).set(A,c.asImmutable()).setIn([He,T],d.RequestStates.SUCCESS)},FAILURE:function(){return t.set(E,(0,e.List)()).set(b,(0,e.Map)()).set(w,(0,e.List)()).set(A,(0,e.Map)()).setIn([He,T],d.RequestStates.FAILURE)},FINALLY:function(){return t.deleteIn([He,r.id])}})}var kt=Ct.Models.EntitySetBuilder,Ot=ze.EntitySetsApiActions.GET_ENTITY_SET,Ut=ze.EntitySetsApiActions.getEntitySet;function Pt(e,t){return Ut.reducer(e,t,{REQUEST:function(){return e.setIn([Ot,T],d.RequestStates.PENDING).setIn([Ot,t.id],t)},SUCCESS:function(){if(e.hasIn([Ot,t.id])){var r=new kt(t.value).build(),n=e.get(x),a=e.get(S);if(a.has(r.id))n=n.update(a.get(r.id),(function(){return r}));else{var o=(n=n.push(r)).count()-1;a=a.set(r.id,o).set(r.name,o)}return e.set(x,n).set(S,a).setIn([Ot,T],d.RequestStates.SUCCESS)}return e},FAILURE:function(){return e.hasIn([Ot,t.id])?e.setIn([Ot,T],d.RequestStates.FAILURE):e},FINALLY:function(){return e.deleteIn([Ot,t.id])}})}var Ft,Lt=r(455),Nt=r.n(Lt),Mt=Ct.Models.EntitySetBuilder,Bt=ze.EntitySetsApiActions.GET_ENTITY_SETS,Qt=ze.EntitySetsApiActions.getEntitySets;function Wt(e,t){return Qt.reducer(e,t,{REQUEST:function(){return e.setIn([Bt,T],d.RequestStates.PENDING).setIn([Bt,t.id],t)},SUCCESS:function(){if(e.hasIn([Bt,t.id])){var r,n=e.get(x),a=e.get(S);return Dt()(r=Nt()(t.value)).call(r,(function(e){var t=new Mt(e).build();if(a.has(t.id))n=n.update(a.get(t.id),(function(){return t}));else{var r=(n=n.push(t)).count()-1;a=a.set(t.id,r).set(t.name,r)}})),e.set(x,n).set(S,a).setIn([Bt,T],d.RequestStates.SUCCESS)}return e},FAILURE:function(){return e.hasIn([Bt,t.id])?e.setIn([Bt,T],d.RequestStates.FAILURE):e},FINALLY:function(){return e.deleteIn([Bt,t.id])}})}var zt=ze.EntitySetsApiActions.GET_ENTITY_SET,Ht=ze.EntitySetsApiActions.GET_ENTITY_SETS,Gt=ze.EntitySetsApiActions.getEntitySet,Kt=ze.EntitySetsApiActions.getEntitySets,Jt=(0,e.fromJS)((u(Ft={},He,R),u(Ft,Ht,R),u(Ft,zt,R),u(Ft,x,(0,e.List)()),u(Ft,S,(0,e.Map)()),u(Ft,E,(0,e.List)()),u(Ft,b,(0,e.Map)()),u(Ft,w,(0,e.List)()),u(Ft,A,(0,e.Map)()),Ft));function Vt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jt,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case be:return Ue(e,t);case Ge.case(t.type):return qt(e,t);case Gt.case(t.type):return Pt(e,t);case Kt.case(t.type):return Wt(e,t);default:return e}}var Yt=r(1511),Xt=r.n(Yt),$t=r(62),Zt=r.n($t);function er(t,r){return(0,e.getIn)(t,[r,"entitySetId"])}var tr="DELETE_BULK_ENTITIES",rr=(0,d.newRequestSequence)(tr),nr=Ct.Models.FQN;const ar={ACCESS_REQUEST_SUBMISSION:nr.of("app.accessrequestsubmission"),ATTACHED_TO:nr.of("app.attachedto"),FILE:nr.of("app.file"),FORM:nr.of("app.form")};var or=Ct.Models.FQN;const ir={DATE_TIME:or.of("ol.datetime"),DESCRIPTION:or.of("ol.description"),FILE_DATA:or.of("ol.filedata"),FORM_DATA:or.of("ol.formdata"),GROUP_ID:or.of("ol.groupid"),ID:or.of("ol.id"),LABEL:or.of("ol.label"),NAME:or.of("ol.name"),REQUEST_DATE_TIME:or.of("ol.requestdatetime"),RJSF_JSON_SCHEMA:or.of("ol.rjsfjsonschema"),RJSF_UI_SCHEMA:or.of("ol.rjsfuischema"),TYPE:or.of("ol.type")};var sr=p.ReduxConstants.HITS;function cr(){return function(t){return t.getIn([h,D],(0,e.List)())}}function ur(){return function(e){return e.getIn(It,{})}}function lr(){return function(t){return t.getIn([h,C])||(0,e.Map)()}}const fr=require("lodash/isArray");var pr=r.n(fr),dr=Ct.Models.FQN,vr=(0,e.Map)();function hr(t){return function(r){if(!pr()(t)&&!(0,e.isCollection)(t))return vr;var n=(0,e.Map)().withMutations((function(n){Dt()(t).call(t,(function(t){if(dr.isValid(t)){var a=(0,e.getIn)(r,[m,A,t],-1);if(a>=0){var o=(0,e.getIn)(r,[m,w,a]);o&&o.id&&n.set(t,o.id)}}}))}));return n.isEmpty()?vr:n}}p.ReduxUtils.selectEntitySets,p.ReduxUtils.selectEntityTypes,p.ReduxUtils.selectOrganization,p.ReduxUtils.selectPropertyTypes;var yr=r(2991),gr=r.n(yr),mr=r(6902),xr=r.n(mr),Sr=r(6419),Er=r.n(Sr),br=Me().mark(Rr),Ir=new p.Logger("DataSagas"),wr=Ct.Types.DeleteTypes,Ar=ze.DataApiActions.deleteEntityData,Tr=ze.DataApiSagas.deleteEntityDataWorker;function Rr(e){var t,r,n,a,o,i;return Me().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t={},s.prev=1,null!=(n=e.value)){s.next=5;break}throw nt;case 5:return s.next=7,(0,We.put)(rr.request(e.id));case 7:return a=gr()(r=xr()(n)).call(r,(function(e){var t=Er()(n[e]);return(0,We.call)(Tr,Ar({entitySetId:e,entityKeyIds:t,deleteType:wr.SOFT}))})),s.next=10,(0,We.all)(a);case 10:if(o=s.sent,!(i=Qe()(o).call(o,(function(e,t){return e.error=e.error||t.error,e}),{})).error){s.next=14;break}throw i;case 14:return s.next=16,(0,We.put)(rr.success(e.id));case 16:s.next=24;break;case 18:return s.prev=18,s.t0=s.catch(1),Ir.error(e.type,s.t0),t.error=s.t0,s.next=24,(0,We.put)(rr.failure(e.id,s.t0));case 24:return s.prev=24,s.next=27,(0,We.put)(rr.finally(e.id));case 27:return s.finish(24);case 28:return s.abrupt("return",t);case 29:case"end":return s.stop()}}),br,null,[[1,18,24,28]])}var Dr=Me().mark(kr),Cr=Me().mark(Or),_r=p.ValidationUtils.isValidUUID,jr=ar.FILE,qr=new p.Logger("AccessSagas");function kr(e){var t,r,n,a,o,i;return Me().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(t={},s.prev=1,r=e.value,!Xt()(r)||Zt()(r).call(r,_r)){s.next=5;break}throw at;case 5:return s.next=7,(0,We.put)(V.request(e.id));case 7:return s.next=9,(0,We.select)(ur());case 9:return n=s.sent,a=er(n,jr),o=u({},a,r),s.next=14,(0,We.call)(Rr,rr(o));case 14:if(!(i=s.sent).error){s.next=17;break}throw i.error;case 17:return t={data:o},s.next=20,(0,We.put)(V.success(e.id,r));case 20:s.next=28;break;case 22:return s.prev=22,s.t0=s.catch(1),qr.error(e.type,s.t0),t={error:s.t0},s.next=28,(0,We.put)(V.failure(e.id,s.t0));case 28:return s.prev=28,s.next=31,(0,We.put)(V.finally(e.id));case 31:return s.finish(28);case 32:return s.abrupt("return",t);case 33:case"end":return s.stop()}}),Dr,null,[[1,22,28,32]])}function Or(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(J,kr);case 2:case"end":return e.stop()}}),Cr)}function Ur(e,t){return function(e){if(we(e))return e}(e)||function(e,t){var r=e&&(void 0!==Te&&Re(e)||e["@@iterator"]);if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||_e(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Pr=r(9340),Fr=r.n(Pr);const Lr=require("lodash/isPlainObject");var Nr=r.n(Lr),Mr=Me().mark(Jr),Br=Me().mark(Vr),Qr=ze.DataApiActions.updateEntityData,Wr=ze.DataApiSagas.updateEntityDataWorker,zr=Ct.Types.UpdateTypes,Hr=ar.ACCESS_REQUEST_SUBMISSION,Gr=ir.FORM_DATA,Kr=new p.Logger("updateAccessRequest");function Jr(e){var t,r,n,a,o,i,s,c,l,f,p;return Me().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if(d.prev=0,r=e.value,Nr()(r)){d.next=4;break}throw at;case 4:return n=r.formData,a=r.entityKeyId,o=Fr()(n),d.next=8,(0,We.put)(W.request(e.id,{path:["accessRequest",Gr.toString(),0],formData:o}));case 8:return d.next=10,(0,We.select)(ur());case 10:return i=d.sent,s=er(i,Hr),d.next=14,(0,We.select)(hr([Gr]));case 14:return c=d.sent,l=c.get(Gr),f=u({},a,u({},l,[o])),d.next=19,(0,We.call)(Wr,Qr({entitySetId:s,entities:f,updateType:zr.PartialReplace}));case 19:if(!(p=d.sent).error){d.next=22;break}throw p.error;case 22:return t={data:p.data},d.next=25,(0,We.put)(W.success(e.id));case 25:d.next=33;break;case 27:return d.prev=27,d.t0=d.catch(0),t={error:d.t0},Kr.error(e.type,d.t0),d.next=33,(0,We.put)(W.failure(e.id,d.t0));case 33:return d.prev=33,d.next=36,(0,We.put)(W.finally(e.id));case 36:return d.finish(33);case 37:return d.abrupt("return",t);case 38:case"end":return d.stop()}}),Mr,null,[[0,27,33,37]])}function Vr(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(Q,Jr);case 2:case"end":return e.stop()}}),Br)}var Yr=Me().mark(Zr),Xr=Me().mark(en),$r=new p.Logger("DocumentsSagas");function Zr(e){var t,r,n,a,o,i,s,c,u,l,f;return Me().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,p.next=3,(0,We.put)(ne.request(e.id));case 3:return r=e.value,n=r.accessRequestId,a=r.attachment,o=r.formData,i=(0,We.call)(kr,V([a.id])),s=(0,We.call)(Jr,W({formData:o,entityKeyId:n})),p.next=8,(0,We.all)([i,s]);case 8:if(c=p.sent,u=Ur(c,2),l=u[0],f=u[1],!l.error){p.next=14;break}throw l.error;case 14:if(!f.error){p.next=16;break}throw f.error;case 16:return t={data:{}},p.next=19,(0,We.put)(ne.success(e.id));case 19:p.next=27;break;case 21:return p.prev=21,p.t0=p.catch(0),$r.error(e.type,p.t0),t={error:p.t0},p.next=27,(0,We.put)(ne.failure(e.id,p.t0));case 27:return p.prev=27,p.next=30,(0,We.put)(ne.finally(e.id));case 30:return p.finish(27);case 31:return p.abrupt("return",t);case 32:case"end":return p.stop()}}),Yr,null,[[0,21,27,31]])}function en(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(re,Zr);case 2:case"end":return e.stop()}}),Xr)}var tn=Me().mark(un),rn=Me().mark(ln),nn=p.ValidationUtils.isValidUUID,an=ze.DataApiActions.getEntityData,on=ze.DataApiSagas.getEntityDataWorker,sn=ar.ACCESS_REQUEST_SUBMISSION,cn=new p.Logger("getAccessRequestSagas");function un(t){var r,n,a,o,i;return Me().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(s.prev=0,n=t.value,nn(n)){s.next=4;break}throw at;case 4:return s.next=6,(0,We.put)(P.request(t.id));case 6:return s.next=8,(0,We.select)(ur());case 8:return a=s.sent,o=er(a,sn),s.next=12,(0,We.call)(on,an({entitySetId:o,entityKeyId:n}));case 12:if(!(i=s.sent).error){s.next=15;break}throw i.error;case 15:return r={data:(0,e.fromJS)(i.data)},s.next=18,(0,We.put)(P.success(t.id,u({},D,r.data)));case 18:s.next=26;break;case 20:return s.prev=20,s.t0=s.catch(0),r={error:s.t0},cn.error(t.type,s.t0),s.next=26,(0,We.put)(P.failure(t.id,s.t0));case 26:return s.prev=26,s.next=29,(0,We.put)(P.finally(t.id));case 29:return s.finish(26);case 30:return s.abrupt("return",r);case 31:case"end":return s.stop()}}),tn,null,[[0,20,26,30]])}function ln(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(U,un);case 2:case"end":return e.stop()}}),rn)}var fn=Me().mark(mn),pn=Me().mark(xn),dn=ze.SearchApiActions.searchEntitySetData,vn=ze.SearchApiSagas.searchEntitySetDataWorker,hn=ar.ACCESS_REQUEST_SUBMISSION,yn=ir.REQUEST_DATE_TIME,gn=new p.Logger("getAllAccessRequestsSagas");function mn(t){var r,n,a,o,i,s;return Me().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,(0,We.put)(O.request(t.id));case 3:return c.next=5,(0,We.select)(ur());case 5:return n=c.sent,a=er(n,hn),c.next=9,(0,We.select)(hr([yn]));case 9:return o=c.sent,i=o.get(yn),c.next=13,(0,We.call)(vn,dn({entitySetIds:[a],maxHits:1e4,start:0,constraints:[{constraints:[{type:"simple",searchTerm:"*",fuzzy:!1}]}],sort:{propertyTypeId:i,type:"field"}}));case 13:if(!(s=c.sent).error){c.next=16;break}throw s.error;case 16:return r={data:s.data},c.next=19,(0,We.put)(O.success(t.id,{hits:(0,e.fromJS)(s.data.hits)}));case 19:c.next=27;break;case 21:return c.prev=21,c.t0=c.catch(0),r={error:c.t0},gn.error(t.type,c.t0),c.next=27,(0,We.put)(O.failure(t.id,c.t0));case 27:return c.prev=27,c.next=30,(0,We.put)(O.finally(t.id));case 30:return c.finish(27);case 31:return c.abrupt("return",r);case 32:case"end":return c.stop()}}),fn,null,[[0,21,27,31]])}function xn(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(k,mn);case 2:case"end":return e.stop()}}),pn)}var Sn=Me().mark(_n),En=Me().mark(jn),bn=new p.Logger("DocumentsSagas"),In=p.DataUtils.getEntityKeyId,wn=p.ValidationUtils.isValidUUID,An=ze.SearchApiActions.searchEntityNeighborsWithFilter,Tn=ze.SearchApiSagas.searchEntityNeighborsWithFilterWorker,Rn=ar.FILE,Dn=ar.ATTACHED_TO,Cn=ar.ACCESS_REQUEST_SUBMISSION;function _n(t){var r,n,a,o,i,s,c,u,l,f,p;return Me().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:if(r={},d.prev=1,a=t.value,wn(a)){d.next=5;break}throw at;case 5:return d.next=7,(0,We.put)(H.request(t.id));case 7:return d.next=9,(0,We.select)(ur());case 9:return o=d.sent,i=er(o,Cn),s=er(o,Rn),c=er(o,Dn),u={entitySetId:i,filter:{entityKeyIds:[a],edgeEntitySetIds:[c],destinationEntitySetIds:[],sourceEntitySetIds:[s]}},d.next=16,(0,We.call)(Tn,An(u));case 16:if(!(l=d.sent).error){d.next=19;break}throw l.error;case 19:return f=gr()(n=(0,e.fromJS)(l.data).get(a,(0,e.List)())).call(n,(function(e){return e.get("neighborDetails")})),p=(0,e.Map)(gr()(f).call(f,(function(e){return[In(e),e]}))),r.data=p,d.next=24,(0,We.put)(H.success(t.id,p));case 24:d.next=31;break;case 26:return d.prev=26,d.t0=d.catch(1),bn.error(t.type,d.t0),d.next=31,(0,We.put)(H.failure(t.id));case 31:return d.prev=31,d.next=34,(0,We.put)(H.finally(t.id));case 34:return d.finish(31);case 35:return d.abrupt("return",r);case 36:case"end":return d.stop()}}),Sn,null,[[1,26,31,35]])}function jn(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeLatest)(z,_n);case 2:case"end":return e.stop()}}),En)}var qn=Me().mark(Ln),kn=Me().mark(Nn),On=ze.SearchApiActions.searchEntitySetData,Un=ze.SearchApiSagas.searchEntitySetDataWorker,Pn=ar.FORM,Fn=new p.Logger("getFormsSagas");function Ln(t){var r,n,a,o;return Me().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,i.next=3,(0,We.put)(q.request(t.id));case 3:return i.next=5,(0,We.select)(ur());case 5:return n=i.sent,a=er(n,Pn),i.next=9,(0,We.call)(Un,On({entitySetIds:[a],maxHits:1e4,start:0,constraints:[{constraints:[{type:"simple",searchTerm:"Common Application",fuzzy:!1}]}]}));case 9:if(!(o=i.sent).error){i.next=12;break}throw o.error;case 12:return r={data:o.data},i.next=15,(0,We.put)(q.success(t.id,{forms:(0,e.fromJS)(o.data.hits)}));case 15:i.next=23;break;case 17:return i.prev=17,i.t0=i.catch(0),r={error:i.t0},Fn.error(t.type,i.t0),i.next=23,(0,We.put)(q.failure(t.id,i.t0));case 23:return i.prev=23,i.next=26,(0,We.put)(q.finally(t.id));case 26:return i.finish(23);case 27:return i.abrupt("return",r);case 28:case"end":return i.stop()}}),qn,null,[[0,17,23,27]])}function Nn(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(j,Ln);case 2:case"end":return e.stop()}}),kn)}var Mn=Me().mark(Vn),Bn=Me().mark(Yn),Qn=ze.DataApiActions.createOrMergeEntityData,Wn=ze.DataApiSagas.createOrMergeEntityDataWorker,zn=ar.FORM,Hn=ir.RJSF_JSON_SCHEMA,Gn=ir.RJSF_UI_SCHEMA,Kn=ir.TYPE,Jn=new p.Logger("saveNewFormTemplateSagas");function Vn(e){var t,r,n,a,o,i,s,c,l,f,p,d,v,h,y,g;return Me().wrap((function(m){for(;;)switch(m.prev=m.next){case 0:if(m.prev=0,n=e.value,Nr()(n)){m.next=4;break}throw at;case 4:return m.next=6,(0,We.put)(X.request(e.id));case 6:return m.next=8,(0,We.select)(ur());case 8:return a=m.sent,o=er(a,zn),i=n.schema,s=n.uiSchema,c=n.type,m.next=13,(0,We.select)(hr([Hn,Gn,Kn]));case 13:return l=m.sent,f=l.get(Hn),p=l.get(Gn),d=l.get(Kn),v=Fr()(i),h=Fr()(s),y=[(r={},u(r,d,[c||"Common Application"]),u(r,f,[v]),u(r,p,[h]),r)],m.next=22,(0,We.call)(Wn,Qn({entitySetId:o,entityData:y}));case 22:if(!(g=m.sent).error){m.next=25;break}throw g.error;case 25:return t=g,m.next=28,(0,We.put)(X.success(e.id));case 28:m.next=36;break;case 30:return m.prev=30,m.t0=m.catch(0),t={error:m.t0},Jn.error(e.type,m.t0),m.next=36,(0,We.put)(X.failure(e.id,m.t0));case 36:return m.prev=36,m.next=39,(0,We.put)(X.finally(e.id));case 39:return m.finish(36);case 40:return m.abrupt("return",t);case 41:case"end":return m.stop()}}),Mn,null,[[0,30,36,40]])}function Yn(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(Y,Vn);case 2:case"end":return e.stop()}}),Bn)}const Xn=require("luxon");var $n=Me().mark(la),Zn=Me().mark(fa),ea=Ct.Constants.OPENLATTICE_ID_FQN,ta=ze.DataApiActions.createOrMergeEntityData,ra=ze.DataApiSagas.createOrMergeEntityDataWorker,na=ar.ACCESS_REQUEST_SUBMISSION,aa=ir.FORM_DATA,oa=ir.REQUEST_DATE_TIME,ia=ir.RJSF_JSON_SCHEMA,sa=ir.RJSF_UI_SCHEMA,ca=ir.TYPE,ua=new p.Logger("submitAccessRequestSagas");function la(t){var r,n,a,o,i,s,c,l,f,p,d,v,h,y,g,m,x,S,E,b,I,w,A;return Me().wrap((function(T){for(;;)switch(T.prev=T.next){case 0:if(T.prev=0,o=t.value,Nr()(o)){T.next=4;break}throw at;case 4:return T.next=6,(0,We.put)(L.request(t.id));case 6:return T.next=8,(0,We.select)(ur());case 8:return i=T.sent,s=er(i,na),c=o.formData,l=o.schema,f=o.uiSchema,p=o.type,T.next=13,(0,We.select)(hr([aa,oa,ia,sa,ca]));case 13:return d=T.sent,v=d.get(aa),h=d.get(oa),y=d.get(ia),g=d.get(sa),m=d.get(ca),x=Fr()(c),S=Fr()(l),E=Fr()(f),b=Xn.DateTime.local().toISO(),I=[(n={},u(n,m,[p||"Common Application"]),u(n,v,[x]),u(n,y,[S]),u(n,g,[E]),u(n,h,[b]),n)],T.next=26,(0,We.call)(ra,ta({entitySetId:s,entityData:I}));case 26:if(!(w=T.sent).error){T.next=29;break}throw w.error;case 29:return A=(0,e.Map)((u(a={},ca,[p||"Common Application"]),u(a,aa,[x]),u(a,ia,[S]),u(a,sa,[E]),u(a,oa,[b]),u(a,ea,w.data),a)),r={data:A},T.next=33,(0,We.put)(L.success(t.id,r.data));case 33:T.next=41;break;case 35:return T.prev=35,T.t0=T.catch(0),r={error:T.t0},ua.error(t.type,T.t0),T.next=41,(0,We.put)(L.failure(t.id,T.t0));case 41:return T.prev=41,T.next=44,(0,We.put)(L.finally(t.id));case 44:return T.finish(41);case 45:return T.abrupt("return",r);case 46:case"end":return T.stop()}}),$n,null,[[0,35,41,45]])}function fa(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(F,la);case 2:case"end":return e.stop()}}),Zn)}var pa=Me().mark(Sa),da=Me().mark(Ea),va=ze.DataApiActions.updateEntityData,ha=ze.DataApiSagas.updateEntityDataWorker,ya=Ct.Types.UpdateTypes,ga=ar.FILE,ma=ir.LABEL,xa=new p.Logger("updateAttachmentTag");function Sa(e){var t,r,n,a,o,i,s,c,l,f;return Me().wrap((function(p){for(;;)switch(p.prev=p.next){case 0:if(p.prev=0,r=e.value,Nr()(r)){p.next=4;break}throw at;case 4:return n=r.tag,a=r.entityKeyId,p.next=7,(0,We.put)(Z.request(e.id,{path:[C,a,ma.toString(),0],tag:n}));case 7:return p.next=9,(0,We.select)(ur());case 9:return o=p.sent,i=er(o,ga),p.next=13,(0,We.select)(hr([ma]));case 13:return s=p.sent,c=s.get(ma),l=u({},a,u({},c,[n])),p.next=18,(0,We.call)(ha,va({entitySetId:i,entities:l,updateType:ya.PartialReplace}));case 18:if(!(f=p.sent).error){p.next=21;break}throw f.error;case 21:return t={data:f.data},p.next=24,(0,We.put)(Z.success(e.id));case 24:p.next=32;break;case 26:return p.prev=26,p.t0=p.catch(0),t={error:p.t0},xa.error(e.type,p.t0),p.next=32,(0,We.put)(Z.failure(e.id,p.t0));case 32:return p.prev=32,p.next=35,(0,We.put)(Z.finally(e.id));case 35:return p.finish(32);case 36:return p.abrupt("return",t);case 37:case"end":return p.stop()}}),pa,null,[[0,26,32,36]])}function Ea(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)($,Sa);case 2:case"end":return e.stop()}}),da)}var ba=r(1643),Ia=r.n(ba),wa=";base64,";const Aa=function(e){var t=Ia()(e).call(e,wa);return t<0?e:e.substring(t+wa.length)};var Ta=Me().mark(Na),Ra=Me().mark(Ma),Da=Ct.Models.DataGraphBuilder,Ca=ar.ACCESS_REQUEST_SUBMISSION,_a=ar.ATTACHED_TO,ja=ar.FILE,qa=ir.DATE_TIME,ka=ir.FILE_DATA,Oa=ir.GROUP_ID,Ua=ir.LABEL,Pa=ir.NAME,Fa=ir.TYPE,La=new p.Logger("DocumentsSagas");function Na(e){var t,r,n,a,o,i,s,c,l,f,p,d,v,h,y,g,m,x,S,E,b,I,w,A,T,R,D,C;return Me().wrap((function(_){for(;;)switch(_.prev=_.next){case 0:return _.prev=0,_.next=3,(0,We.put)(K.request(e.id));case 3:return r=e.value,n=r.accessRequestId,a=r.files,o=void 0===a?[]:a,i=r.tags,s=void 0===i?[]:i,c=r.groupId,l=void 0===c?"":c,_.next=6,(0,We.select)(ur());case 6:return f=_.sent,p=er(f,Ca),d=er(f,ja),v=er(f,_a),_.next=12,(0,We.select)(hr([qa,ka,Oa,Ua,Pa,Fa]));case 12:return h=_.sent,y=h.get(qa),g=h.get(ka),m=h.get(Pa),x=h.get(Fa),S=h.get(Ua),E=h.get(Oa),b=Xn.DateTime.local().toISO(),I=gr()(o).call(o,(function(e,t){var r,n=e.base64,a=e.name,o=e.type;return u(r={},y,[b]),u(r,g,[{"content-type":o,"content-disposition":'attachment; filename="'.concat(a,'"'),data:Aa(n)}]),u(r,E,[l]),u(r,m,[a]),u(r,S,[s[t]]),u(r,x,[o]),r})),w=u({},y,[b]),A=[],Dt()(o).call(o,(function(e,t){A.push({srcEntitySetId:d,srcEntityIndex:t,dstEntitySetId:p,dstEntityKeyId:n,data:w})})),T=u({},d,I),R=u({},v,A),D=(new Da).setAssociations(R).setEntities(T).build(),_.next=29,(0,We.call)(Ct.DataApi.createEntityAndAssociationData,D);case 29:if(!(C=_.sent).error){_.next=32;break}throw C.error;case 32:return t={data:{}},_.next=35,(0,We.put)(K.success(e.id));case 35:_.next=43;break;case 37:return _.prev=37,_.t0=_.catch(0),La.error(e.type,_.t0),t={error:_.t0},_.next=43,(0,We.put)(K.failure(e.id,_.t0));case 43:return _.prev=43,_.next=46,(0,We.put)(K.finally(e.id));case 46:return _.finish(43);case 47:return _.abrupt("return",t);case 48:case"end":return _.stop()}}),Ta,null,[[0,37,43,47]])}function Ma(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(G,Na);case 2:case"end":return e.stop()}}),Ra)}var Ba=Me().mark(za),Qa=Me().mark(Ha),Wa=new p.Logger("DocumentsSagas");function za(e){var t,r,n,a,o,i,s,c,u,l,f,p;return Me().wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,(0,We.put)(te.request(e.id));case 3:return r=e.value,n=r.accessRequestId,a=r.file,o=r.formData,i=r.groupId,s=(0,We.call)(Na,K({files:[a],accessRequestId:n,groupId:i})),c=(0,We.call)(Jr,W({formData:o,entityKeyId:n})),d.next=8,(0,We.all)([s,c]);case 8:if(u=d.sent,l=Ur(u,2),f=l[0],p=l[1],!f.error){d.next=14;break}throw f.error;case 14:if(!p.error){d.next=16;break}throw p.error;case 16:return t={data:{}},d.next=19,(0,We.call)(_n,H(n));case 19:return d.next=21,(0,We.put)(te.success(e.id));case 21:d.next=29;break;case 23:return d.prev=23,d.t0=d.catch(0),Wa.error(e.type,d.t0),t={error:d.t0},d.next=29,(0,We.put)(te.failure(e.id,d.t0));case 29:return d.prev=29,d.next=32,(0,We.put)(te.finally(e.id));case 32:return d.finish(29);case 33:return d.abrupt("return",t);case 34:case"end":return d.stop()}}),Ba,null,[[0,23,29,33]])}function Ha(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(ee,za);case 2:case"end":return e.stop()}}),Qa)}const Ga=require("history");var Ka="/request/".concat(":accessRequestId"),Ja="GO_TO_ROOT";var Va="GO_TO_ROUTE";function Ya(e,t){return{route:t,error:e,type:"ROUTING_FAILURE"}}var Xa=r(9828),$a=r.n(Xa);const Za=require("connected-react-router");var eo=Me().mark(oo),to=Me().mark(io),ro=Me().mark(so),no=new p.Logger("RoutingSagas"),ao='invalid route: a route must be a non-empty string that starts with "/"';function oo(e){var t,r,n;return Me().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(t=e.route,r=e.state,n=void 0===r?{}:r,null!=t&&$a()(t).call(t,"/",0)){a.next=6;break}return no.error(ao,t),a.next=5,(0,We.put)(Ya(ao,t));case 5:return a.abrupt("return");case 6:return a.next=8,(0,We.put)((0,Za.push)({state:Fr()(n),pathname:t}));case 8:case"end":return a.stop()}}),eo)}function io(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(Va,oo);case 2:case"end":return e.stop()}}),to)}function so(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.takeEvery)(Ja,oo);case 2:case"end":return e.stop()}}),ro)}var co=(0,Ga.createHashHistory)(),uo=Me().mark(lo);function lo(){return Me().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,We.all)([(0,We.fork)(l.AuthSagas.watchAuthAttempt),(0,We.fork)(l.AuthSagas.watchAuthSuccess),(0,We.fork)(l.AuthSagas.watchAuthFailure),(0,We.fork)(l.AuthSagas.watchAuthExpired),(0,We.fork)(l.AuthSagas.watchLogout),(0,We.fork)(mt),(0,We.fork)(rt),(0,We.fork)(so),(0,We.fork)(io),(0,We.fork)(Or),(0,We.fork)(en),(0,We.fork)(ln),(0,We.fork)(xn),(0,We.fork)(jn),(0,We.fork)(Nn),(0,We.fork)(Yn),(0,We.fork)(fa),(0,We.fork)(Vr),(0,We.fork)(Ea),(0,We.fork)(Ma),(0,We.fork)(Ha)]);case 2:case"end":return e.stop()}}),uo)}function fo(e){var r=o()(),n=[r,(0,i.routerMiddleware)(e)],a=[s.applyMiddleware.apply(void 0,n)],c=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({stateSanitizer:function(e){return e.setIn(["edm","entityTypes"],"HIDDEN").setIn(["edm","entityTypesIndexMap"],"HIDDEN").setIn(["edm","propertyTypes"],"HIDDEN").setIn(["edm","propertyTypesIndexMap"],"HIDDEN")},maxAge:100}):s.compose,p=(0,s.createStore)(function(e){var t;return(0,f.combineReducers)((u(t={},h,Le),u(t,y,Tt),u(t,g,l.AuthReducer),u(t,m,Vt),u(t,"router",(0,i.connectRouter)(e)),t))}(e),t().Map(),c.apply(void 0,a));return r.run(lo),p}var po=r(9297),vo=r.n(po);const ho=require("lattice-ui-kit"),yo=require("react-router-dom"),go=require("styled-components");var mo=r.n(go),xo=r(3649),So=r.n(xo);const Eo=require("react-redux");var bo=fo(co),Io=(0,po.createContext)(null),wo=((0,Eo.createStoreHook)(Io),(0,Eo.createDispatchHook)(Io)),Ao=(0,Eo.createSelectorHook)(Io);const To=require("react/jsx-runtime");var Ro=Ct.Constants.OPENLATTICE_LAST_WRITE_FQN,Do=ir.REQUEST_DATE_TIME,Co=ir.TYPE,_o=p.DataUtils.getPropertyValue;const jo=function(e){var t,r,n=e.data,a=e.to,o=wo(),i=_o(n,[Co,0]),s=_o(n,[Do,0]),c=_o(n,[Ro,0]),u=Xn.DateTime.fromISO(s),l=Xn.DateTime.fromISO(c),f=u.toLocaleString(Xn.DateTime.DATE_SHORT),p="Created: ".concat(f);if(l.diff(u,"seconds").seconds>1){var d=l.toRelative({style:"short"});p=Oe()(p).call(p," · Updated: ".concat(d))}var v=gr()(t=So()(r=i.split(" ")).call(r,0,2)).call(t,(function(e){return e.charAt(0).toUpperCase()})).join("");return(0,To.jsxs)(ho.ListItem,{button:!0,component:yo.Link,disableGutters:!0,onClick:function(){o({type:N,value:n})},to:a,children:[(0,To.jsx)(ho.ListItemAvatar,{children:(0,To.jsx)(ho.Avatar,{children:v})}),(0,To.jsx)(ho.ListItemText,{primary:i,secondary:p})]})};var qo=r(6295),ko=r.n(qo);const Oo=function(e,t){var r;return t.params?Qe()(r=ko()(t.params)).call(r,(function(e,t){var r=Ur(t,2),n=r[0],a=r[1];return e.replace(RegExp(":".concat(n),"g"),a)}),e):e};var Uo=p.DataUtils.getEntityKeyId;const Po=function(){var t=wo(),r=Ao((function(t){return t.getIn([h,sr],(0,e.List)())})),n=Ao((function(e){return e.getIn(wt)})),a=Ao((function(e){return e.getIn(At)})),o=Oo(n,a);return(0,po.useEffect)((function(){t(O())}),[t]),(0,To.jsx)(ho.List,{children:gr()(r).call(r,(function(e){var t,r=Uo(e)||"";return(0,To.jsx)(jo,{data:e,to:Oe()(t="".concat(o,"/request/")).call(t,r)},r)}))})};var Fo=mo().div.withConfig({displayName:"AllRequestsContainer__HeaderRow",componentId:"k7n8n2-0"})(["display:flex;justify-content:space-between;align-items:center;"]);const Lo=function(){var e=Ao((function(e){return e.getIn(wt)})),t=Ao((function(e){return e.getIn(At)})),r=Oo(e,t);return(0,To.jsxs)("div",{children:[(0,To.jsxs)(Fo,{children:[(0,To.jsx)(ho.Typography,{variant:"h1",children:"Access Requests"}),(0,To.jsx)(ho.Button,{color:"primary",component:yo.Link,to:"".concat(r,"/new"),children:"New Request"})]}),(0,To.jsx)(Po,{})]})},No=require("@fortawesome/pro-regular-svg-icons/faPrint"),Mo=require("@fortawesome/react-fontawesome"),Bo=require("react-router");var Qo=r(7116);const Wo=require("@fortawesome/pro-regular-svg-icons/faPaperclip"),zo=require("@fortawesome/pro-light-svg-icons/faFilePdf"),Ho=require("@fortawesome/pro-light-svg-icons/faFileWord"),Go=require("@fortawesome/pro-regular-svg-icons/faDownload"),Ko=require("@fortawesome/pro-regular-svg-icons/faPen"),Jo=require("@fortawesome/pro-regular-svg-icons/faTimes"),Vo=require("@fortawesome/pro-regular-svg-icons/faTrashAlt");var Yo="Consent Form",Xo="CPHS Review",$o="Data Release Letter",Zo="Data Security Letter",ei="Data Use Agreement",ti="Department Support Letter",ri="IRB Approval",ni="Participant's Bill of Rights",ai=[{label:Yo,value:Yo},{label:Xo,value:Xo},{label:$o,value:$o},{label:Zo,value:Zo},{label:ei,value:ei},{label:ti,value:ti},{label:ri,value:ri},{label:ni,value:ni}];const oi=function(e){var t=e.index,r=e.onTagChange,n=e.value;return(0,To.jsx)(ho.Creatable,{isClearable:!0,onChange:function(e){r(t,e)},options:ai,placeholder:"Select or create tag",useRawValues:!0,value:n})};var ii,si=mo().div.withConfig({displayName:"styled__CenterWrapper",componentId:"sc-6qf0vq-0"})(["align-items:center;display:flex;height:100%;justify-content:center;"]),ci=mo().div.withConfig({displayName:"styled__ItemTextWrapper",componentId:"sc-6qf0vq-1"})(["padding-right:",";width:100%;"],(function(e){return e.paddingRight?e.paddingRight:"16px"})),ui=("".concat("audio/","*"),"".concat("image/","*")),li=("".concat("video/","*"),"application/vnd.openxmlformats-officedocument.wordprocessingml.document"),fi="application/pdf",pi=(u(ii={},fi,zo.faFilePdf),u(ii,li,Ho.faFileWord),ii),di=p.DataUtils.getEntityKeyId,vi=p.DataUtils.getPropertyValue,hi=ir.DATE_TIME,yi=ir.FILE_DATA,gi=ir.LABEL,mi=ir.NAME,xi=ir.TYPE,Si=mo().img.withConfig({displayName:"AttachmentItem__ImagePreview",componentId:"olj6j0-0"})(["max-height:40px;max-width:40px;"]),Ei=function(e){var t=e.date,r=e.tag;return(0,To.jsxs)(To.Fragment,{children:[t,r&&(0,To.jsx)(ho.Tag,{mode:"secondary",children:r})]})};const bi=function(e){var t,r,n=e.divider,a=e.file,o=e.onDelete,i=wo(),s=Ur((0,po.useState)(!1),2),c=s[0],u=s[1],l=vi(a,[hi,0]),f=Xn.DateTime.fromISO(l).toLocaleString(Xn.DateTime.DATE_SHORT),p=vi(a,[yi,0]),d=di(a),v=vi(a,[mi,0]),h=vi(a,[gi,0]),y=vi(a,[xi,0]);Dt()(t=ko()(pi)).call(t,(function(e){var t=Ur(e,2),n=t[0],a=t[1];$a()(y).call(y,n)&&(r=a)}));var g=r?(0,To.jsx)(Mo.FontAwesomeIcon,{fixedWidth:!0,icon:r,size:"2x"}):(0,To.jsx)(Si,{src:p});return(0,To.jsxs)(ho.ListItem,{divider:n,children:[(0,To.jsx)(ho.ListItemAvatar,{children:g}),(0,To.jsxs)(ci,{paddingRight:"96px",children:[(0,To.jsx)(ho.ListItemText,{primary:v,secondary:c?null:(0,To.jsx)(Ei,{date:f,tag:h})}),c&&(0,To.jsx)(oi,{index:d,onTagChange:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";i(Z({entityKeyId:e,tag:t})),u(!1)},value:h})]}),(0,To.jsxs)(ho.ListItemSecondaryAction,{children:[(0,To.jsx)(ho.IconButton,{"aria-label":"Edit Tag",onClick:function(){u(!c)},title:"Edit Tag",children:(0,To.jsx)(Mo.FontAwesomeIcon,{fixedWidth:!0,icon:c?Jo.faTimes:Ko.faPen})}),(0,To.jsx)("a",{"aria-label":"Download",download:!0,href:p,rel:"noreferrer",target:"_blank",title:"Download",children:(0,To.jsx)(ho.IconButton,{children:(0,To.jsx)(Mo.FontAwesomeIcon,{icon:Go.faDownload,fixedWidth:!0})})}),(0,To.jsx)(ho.IconButton,{"aria-label":"Delete",onClick:function(){o(d)},title:"Delete",children:(0,To.jsx)(Mo.FontAwesomeIcon,{fixedWidth:!0,icon:Vo.faTrashAlt})})]})]})};var Ii=p.DataUtils.getEntityKeyId;const wi=function(e){var t,r=e.accessRequestId,n=Ao(lr()),a=wo();(0,po.useEffect)((function(){a(H(r))}),[r,a]);var o=function(e){a(V([e]))};return(0,To.jsx)(ho.List,{children:gr()(t=n.valueSeq()).call(t,(function(e,t){var r=Ii(e),a=t!==n.size-1;return(0,To.jsx)(bi,{divider:a,file:e,onDelete:o},r)}))})};var Ai=r(1068),Ti=r.n(Ai);function Ri(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);rr)return[!1,Xi(r)];if(e.sizer)return[!1,Xi(r)]}return[!0,null]}function rs(e){return null!=e}function ns(e){var t=e.files,r=e.accept,n=e.minSize,a=e.maxSize,o=e.multiple,i=e.maxFiles;return!(!o&&t.length>1||o&&i>=1&&t.length>i)&&t.every((function(e){var t=Ji(es(e,r),1)[0],o=Ji(ts(e,n,a),1)[0];return t&&o}))}function as(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function os(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function is(e){e.preventDefault()}function ss(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function cs(e){return-1!==e.indexOf("Edge/")}function us(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return ss(e)||cs(e)}function ls(){for(var e=arguments.length,t=new Array(e),r=0;r1?r-1:0),a=1;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var xs=(0,po.forwardRef)((function(e,t){var r=e.children,n=bs(ms(e,["children"])),a=n.open,o=ms(n,["open"]);return(0,po.useImperativeHandle)(t,(function(){return{open:a}}),[a]),vo().createElement(po.Fragment,null,r(ys(ys({},o),{},{open:a})))}));xs.displayName="Dropzone";var Ss={disabled:!1,getFilesFromEvent:Hi.fromEvent,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null};xs.defaultProps=Ss,xs.propTypes={children:zi().func,accept:zi().oneOfType([zi().string,zi().arrayOf(zi().string)]),multiple:zi().bool,preventDropOnDocument:zi().bool,noClick:zi().bool,noKeyboard:zi().bool,noDrag:zi().bool,noDragEventsBubbling:zi().bool,minSize:zi().number,maxSize:zi().number,maxFiles:zi().number,disabled:zi().bool,getFilesFromEvent:zi().func,onFileDialogCancel:zi().func,onDragEnter:zi().func,onDragLeave:zi().func,onDragOver:zi().func,onDrop:zi().func,onDropAccepted:zi().func,onDropRejected:zi().func,validator:zi().func};var Es={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function bs(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ys(ys({},Ss),e),r=t.accept,n=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,i=t.minSize,s=t.multiple,c=t.maxFiles,u=t.onDragEnter,l=t.onDragLeave,f=t.onDragOver,p=t.onDrop,d=t.onDropAccepted,v=t.onDropRejected,h=t.onFileDialogCancel,y=t.preventDropOnDocument,g=t.noClick,m=t.noKeyboard,x=t.noDrag,S=t.noDragEventsBubbling,E=t.validator,b=(0,po.useRef)(null),I=(0,po.useRef)(null),w=(0,po.useReducer)(Is,Es),A=ps(w,2),T=A[0],R=A[1],D=T.isFocused,C=T.isFileDialogActive,_=T.draggedFiles,j=(0,po.useCallback)((function(){I.current&&(R({type:"openDialog"}),I.current.value=null,I.current.click())}),[R]),q=function(){C&&setTimeout((function(){I.current&&(I.current.files.length||(R({type:"closeDialog"}),"function"==typeof h&&h()))}),300)};(0,po.useEffect)((function(){return window.addEventListener("focus",q,!1),function(){window.removeEventListener("focus",q,!1)}}),[I,C,h]);var k=(0,po.useCallback)((function(e){b.current&&b.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),j()))}),[b,I]),O=(0,po.useCallback)((function(){R({type:"focus"})}),[]),U=(0,po.useCallback)((function(){R({type:"blur"})}),[]),P=(0,po.useCallback)((function(){g||(us()?setTimeout(j,0):j())}),[I,g]),F=(0,po.useRef)([]),L=function(e){b.current&&b.current.contains(e.target)||(e.preventDefault(),F.current=[])};(0,po.useEffect)((function(){return y&&(document.addEventListener("dragover",is,!1),document.addEventListener("drop",L,!1)),function(){y&&(document.removeEventListener("dragover",is),document.removeEventListener("drop",L))}}),[b,y]);var N=(0,po.useCallback)((function(e){e.preventDefault(),e.persist(),G(e),F.current=[].concat(fs(F.current),[e.target]),os(e)&&Promise.resolve(a(e)).then((function(t){as(e)&&!S||(R({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),u&&u(e))}))}),[a,u,S]),M=(0,po.useCallback)((function(e){e.preventDefault(),e.persist(),G(e);var t=os(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&f&&f(e),!1}),[f,S]),B=(0,po.useCallback)((function(e){e.preventDefault(),e.persist(),G(e);var t=F.current.filter((function(e){return b.current&&b.current.contains(e)})),r=t.indexOf(e.target);-1!==r&&t.splice(r,1),F.current=t,t.length>0||(R({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),os(e)&&l&&l(e))}),[b,l,S]),Q=(0,po.useCallback)((function(e){e.preventDefault(),e.persist(),G(e),F.current=[],os(e)&&Promise.resolve(a(e)).then((function(t){if(!as(e)||S){var n=[],a=[];t.forEach((function(e){var t=ps(es(e,r),2),s=t[0],c=t[1],u=ps(ts(e,i,o),2),l=u[0],f=u[1],p=E?E(e):null;if(s&&l&&!p)n.push(e);else{var d=[c,f];p&&(d=d.concat(p)),a.push({file:e,errors:d.filter((function(e){return e}))})}})),(!s&&n.length>1||s&&c>=1&&n.length>c)&&(n.forEach((function(e){a.push({file:e,errors:[Zi]})})),n.splice(0)),R({acceptedFiles:n,fileRejections:a,type:"setFiles"}),p&&p(n,a,e),a.length>0&&v&&v(a,e),n.length>0&&d&&d(n,e)}})),R({type:"reset"})}),[s,r,i,o,c,a,p,d,v,S]),W=function(e){return n?null:e},z=function(e){return m?null:W(e)},H=function(e){return x?null:W(e)},G=function(e){S&&e.stopPropagation()},K=(0,po.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,a=e.onKeyDown,o=e.onFocus,i=e.onBlur,s=e.onClick,c=e.onDragEnter,u=e.onDragOver,l=e.onDragLeave,f=e.onDrop,p=ms(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return ys(ys(gs({onKeyDown:z(ls(a,k)),onFocus:z(ls(o,O)),onBlur:z(ls(i,U)),onClick:W(ls(s,P)),onDragEnter:H(ls(c,N)),onDragOver:H(ls(u,M)),onDragLeave:H(ls(l,B)),onDrop:H(ls(f,Q))},r,b),n||m?{}:{tabIndex:0}),p)}}),[b,k,O,U,P,N,M,B,Q,m,x,n]),J=(0,po.useCallback)((function(e){e.stopPropagation()}),[]),V=(0,po.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,a=e.onChange,o=e.onClick,i=ms(e,["refKey","onChange","onClick"]),c=gs({accept:r,multiple:s,type:"file",style:{display:"none"},onChange:W(ls(a,Q)),onClick:W(ls(o,J)),autoComplete:"off",tabIndex:-1},n,I);return ys(ys({},c),i)}}),[I,r,s,Q,n]),Y=_.length,X=Y>0&&ns({files:_,accept:r,minSize:i,maxSize:o,multiple:s,maxFiles:c}),$=Y>0&&!X;return ys(ys({},T),{},{isDragAccept:X,isDragReject:$,isFocused:D&&!n,getRootProps:K,getInputProps:V,rootRef:b,inputRef:I,open:W(j)})}function Is(e,t){switch(t.type){case"focus":return ys(ys({},e),{},{isFocused:!0});case"blur":return ys(ys({},e),{},{isFocused:!1});case"openDialog":return ys(ys({},e),{},{isFileDialogActive:!0});case"closeDialog":return ys(ys({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var r=t.isDragActive,n=t.draggedFiles;return ys(ys({},e),{},{draggedFiles:n,isDragActive:r});case"setFiles":return ys(ys({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ys(ys({},e),{},{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return e}}var ws=ho.Colors.BLUE,As=ho.Colors.NEUTRAL,Ts=ho.Colors.PURPLE,Rs=ho.Colors.RED,Ds=[ui,fi,li],Cs=mo().div.withConfig({displayName:"Dropzone__DropzoneWrapper",componentId:"j9e9j-0"})(["align-items:center;background-color:",";border-color:",";border-radius:3px;border-style:dashed;border-width:2px;display:flex;flex-direction:column;flex:1;outline:none;padding:32px;transition:border 250ms ease-in-out;"],As.N50,(function(e){return function(e){return e.isDragAccept?Ts.P300:e.isDragReject?Rs.R300:e.isDragActive?ws.B300:As.N100}(e)}));const _s=function(e){var t=e.onDrop,r=bs({accept:Ds.join(","),onDrop:t}),n=r.getRootProps,a=r.getInputProps,o=r.isDragActive,i=r.isDragAccept,s=r.isDragReject,c=n(),u=c.onBlur,l=c.onClick,f=c.onDragEnter,p=c.onDragLeave,d=c.onDragOver,v=c.onDrop,h=c.onFocus,y=c.onKeyDown,g=c.ref,m=c.tabIndex,x=a(),S=x.accept,E=x.autoComplete,b=x.multiple,I=x.onChange,w=x.onClick,A=x.ref,T=x.style,R=x.tabIndex,D=x.type;return(0,To.jsxs)(Cs,{isDragActive:o,isDragAccept:i,isDragReject:s,onBlur:u,onClick:l,onDragEnter:f,onDragLeave:p,onDragOver:d,onDrop:v,onFocus:h,onKeyDown:y,ref:g,tabIndex:m,children:[(0,To.jsx)("input",{accept:S,autoComplete:E,multiple:b,onChange:I,onClick:w,ref:A,style:T,tabIndex:R,type:D}),(0,To.jsx)(ho.Typography,{component:"span",children:"Drop files here or click to select."})]})};const js=function(e){var t=e.onChange,r=(0,po.useCallback)((function(e){return t(e)}),[t]);return(0,To.jsx)(_s,{onDrop:function(e){Dt()(e).call(e,(function(e){var t=e.name,n=e.type,a=new FileReader;a.onload=function(){var e=a.result;r({file:{base64:e,name:t,type:n}})},a.readAsDataURL(e)}))}})};function qs(e){var t=function(){if("undefined"==typeof Reflect||!Ti())return!1;if(Ti().sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Ti()(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Pi(e);if(t){var a=Pi(this).constructor;r=Ti()(n,arguments,a)}else r=n.apply(this,arguments);return Oi(this,r)}}var ks=p.ReduxUtils.isSuccess,Os=p.ReduxUtils.isPending,Us=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Ci(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ji(e,t)}(o,e);var t,r,n,a=qs(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),u(Di(t=a.call(this,e)),"onDrop",(function(e){var r,n=e.file,a=t.state.files;t.setState({files:Oe()(r=[]).call(r,je(a),[n])})})),u(Di(t),"onDelete",(function(e){var r=t.state,n=r.files,a=r.tags,o=Er()(n),i=Er()(a);Ni()(o).call(o,e,1),Ni()(i).call(i,e,1),t.setState({files:o,tags:i})})),u(Di(t),"onTagChange",(function(e,r){var n=t.state.tags,a=Er()(n);a[e]=r,t.setState({tags:a})})),u(Di(t),"onUpload",(function(){var e=t.props,r=e.accessRequestId,n=e.actions,a=t.state,o=a.files,i=a.tags;n.uploadAttachments({accessRequestId:r,files:o,tags:i})})),t.state={files:[],tags:[]},t}return t=o,(r=[{key:"componentDidUpdate",value:function(){var e=this.props,t=e.requestState,r=e.onSuccess;ks(t)&&r()}},{key:"componentWillUnmount",value:function(){this.props.actions.resetRequestState([G])}},{key:"render",value:function(){var e=this,t=this.state,r=t.files,n=t.tags,a=this.props.requestState;return(0,To.jsxs)("div",{children:[(0,To.jsx)(js,{onChange:this.onDrop}),(0,To.jsx)(ho.List,{children:gr()(r).call(r,(function(t,a){var o=a!==r.length-1;return(0,To.jsx)(Qi,{divider:o,file:t,index:a,onDelete:e.onDelete,onTagChange:e.onTagChange,tag:n[a]},"document-".concat(a))}))}),(0,To.jsx)(ho.Button,{color:"primary",disabled:!r.length,fullWidth:!0,isLoading:Os(a),onClick:this.onUpload,children:"Upload"})]})}}])&&Ri(t.prototype,r),n&&Ri(t,n),o}(po.Component);const Ps=(0,Eo.connect)((function(e){return{requestState:e.getIn([h,G,T])}}),(function(e){return{actions:(0,s.bindActionCreators)({resetRequestState:Ie,uploadAttachments:K},e)}}),null,{context:Io})(Us);var Fs=r(4310),Ls=r.n(Fs),Ns=r(116),Ms=r.n(Ns),Bs=r(4074),Qs=r.n(Bs),Ws=r(9649),zs=r.n(Ws),Hs=r(368),Gs=r.n(Hs),Ks=r(3978),Js=r.n(Ks),Vs=r(3263),Ys=r(5683),Xs=r(9356);function $s(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Xs(e);for(n=0;n=0||(a[r]=e[r]);return a}(e,t);if(Vs){var o=Vs(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Zs(e,t){var r=xr()(e);if(Ls()){var n=Ls()(e);t&&(n=Ms()(n).call(n,(function(t){return Qs()(e,t).enumerable}))),r.push.apply(r,n)}return r}function ec(e){for(var t=1;t0?t:720}));const oc=function(e){var t=e.accessRequestId,r=Ur((0,po.useState)(0),2),n=r[0],a=r[1];return(0,To.jsxs)(ac,{children:[(0,To.jsxs)(ho.Tabs,{indicatorColor:"primary",onChange:function(e,t){a(t)},textColor:"primary",value:n,children:[(0,To.jsx)(ho.Tab,{label:"Manage"}),(0,To.jsx)(ho.Tab,{label:"Upload"})]}),(0,To.jsx)(tc,{index:0,value:n,children:(0,To.jsx)(wi,{accessRequestId:t})}),(0,To.jsx)(tc,{index:1,value:n,children:(0,To.jsx)(Ps,{accessRequestId:t,onSuccess:function(){a(0)}})})]})};const ic=function(e){var t=e.accessRequestId,r=e.isVisible,n=e.onClose;return(0,To.jsx)(ho.Modal,{viewportScrolling:!0,textTitle:"Attachments",isVisible:r,onClose:n,withFooter:!1,children:(0,To.jsx)(oc,{accessRequestId:t})})};const sc=function(e){var t=e.accessRequestId,r=Ur((0,po.useState)(!1),2),n=r[0],a=r[1];return(0,To.jsxs)(To.Fragment,{children:[(0,To.jsx)(ho.IconButton,{"aria-controls":n?"access-request-attachment-menu":void 0,"aria-expanded":n?"true":void 0,"aria-haspopup":"menu","aria-label":"access request attachment button",onClick:function(){a(!0)},children:(0,To.jsx)(Mo.FontAwesomeIcon,{fixedWidth:!0,icon:Wo.faPaperclip})}),(0,To.jsx)(ic,{accessRequestId:t,isVisible:n,onClose:function(){a(!1)}})]})},cc=require("lodash/merge");var uc=r.n(cc),lc=new p.Logger("SchemaUtils"),fc=function(e,t){var r=t.schema,n=t.uiSchema,a=e.schema,o=void 0===a?{}:a,i=e.uiSchema,s=void 0===i?{}:i;return{schema:uc()(o,r),uiSchema:uc()(s,n)}};const pc=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={schema:{},uiSchema:{}};return e.length!==t.length&&lc.warn("generateReviewSchema","schemas and uiSchemas have mismatching lengths"),Dt()(e).call(e,(function(r,a){fc(n,{schema:e[a],uiSchema:t[a]})})),r&&uc()(n.uiSchema,{"ui:disabled":!0,"ui:readonly":!0}),n};var dc=p.DataUtils.getEntityKeyId,vc=p.DataUtils.getPropertyValue,hc=ir.DATE_TIME,yc=ir.FILE_DATA,gc=ir.GROUP_ID,mc=ir.NAME,xc=ir.TYPE;const Sc=function(e){return gr()(e).call(e,(function(e){var t=vc(e,[hc,0]);return{date:Xn.DateTime.fromISO(t).toLocaleString(Xn.DateTime.DATETIME_SHORT),fieldId:vc(e,[gc,0]),href:vc(e,[yc,0]),id:dc(e),name:vc(e,[mc,0]),type:vc(e,[xc,0])}})).valueSeq().groupBy((function(e){return e.fieldId})).toJS()};function Ec(e,t){var r=xr()(e);if(Ls()){var n=Ls()(e);t&&(n=Ms()(n).call(n,(function(t){return Qs()(e,t).enumerable}))),r.push.apply(r,n)}return r}function bc(e){for(var t=1;t0),onClick:i,children:"Back"}),(0,To.jsx)("span",{children:Oe()(a="".concat(l+1," of ")).call(a,h)}),(0,To.jsx)(ho.Button,{isLoading:c,mode:"primary",onClick:g,children:y?"Complete Survey":"Next"})]})]})}})};var Bc=p.DataUtils.getPropertyValue,Qc=ir.RJSF_JSON_SCHEMA,Wc=ir.RJSF_UI_SCHEMA,zc=p.ReduxUtils.isFailure,Hc=p.ReduxUtils.isPending,Gc=p.ReduxUtils.isStandby;const Kc=function(){var t=wo(),r=Ao((function(e){return e.getIn([h,j,T])})),n=Ao((function(t){return t.getIn([h,_],(0,e.List)())}));if((0,po.useEffect)((function(){return t(q()),function(){return t(Ie([j]))}}),[t]),Hc(r)||Gc(r))return(0,To.jsx)(si,{children:(0,To.jsx)(ho.Spinner,{size:"2x"})});if(zc(r))return(0,To.jsx)("div",{children:"An error has occurred in fetching the form template. Please contact support."});try{var a=n.first(),o=Bc(a,[Qc,0]),i=Bc(a,[Wc,0]),s=JSON.parse(o),c=JSON.parse(i);return(0,To.jsx)(Mc,{schemas:s,uiSchemas:c})}catch(e){return(0,To.jsx)("div",{children:"An error has occured in parsing the form template. Please contact support."})}};var Jc=p.ReduxUtils.isPending,Vc=p.ReduxUtils.isStandby,Yc=p.ValidationUtils.isValidUUID;const Xc=function(e){var t,r=e.match,n=e.organizationId,a=e.root,o=wo();(0,po.useEffect)((function(){Yc(n)&&o(it({match:r,organizationId:n,root:a}))}),[o,n,a]);var i=Ao((function(e){return e.getIn([y,ot,T])}));return Jc(i)||Vc(i)?(0,To.jsx)(si,{children:(0,To.jsx)(ho.Spinner,{size:"2x"})}):(0,To.jsxs)(yo.Switch,{children:[(0,To.jsx)(yo.Route,{path:"".concat(a,"/new"),render:function(){return(0,To.jsx)(Kc,{})}}),(0,To.jsx)(yo.Route,{path:Oe()(t="".concat(a)).call(t,Ka),render:function(){return(0,To.jsx)(kc,{})}}),(0,To.jsx)(yo.Route,{render:function(){return(0,To.jsx)(Lo,{})}})]})};function $c(e){var t=e.children;return(0,To.jsx)(Eo.Provider,{context:Io,store:bo,children:(0,To.jsx)(i.ConnectedRouter,{history:co,context:Io,children:t})})}const Zc=function(e){var t=e.match,r=e.organizationId,n=e.root;return(0,To.jsx)($c,{children:(0,To.jsx)(Xc,{match:t,organizationId:r,root:n})})}})(),n})()})); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 47f2687..8a98de4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@openlattice/access-request", - "version": "0.5.1", + "version": "0.6.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@openlattice/access-request", - "version": "0.5.1", + "version": "0.6.0", "license": "Apache-2.0", "dependencies": { "@babel/runtime-corejs3": "~7.13.17", diff --git a/package.json b/package.json index 5660571..35cfead 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@openlattice/access-request", - "version": "0.5.1", + "version": "0.6.0", "homepage": "https://github.com/openlattice/access-request", "description": "OpenLattice module for access request workflows", "author": {