From 2fea8ca3adfe453b4e44a0cf5c2e9c84c2c535cf Mon Sep 17 00:00:00 2001
From: Steve Boyd <emteknetnz@gmail.com>
Date: Thu, 9 May 2024 14:18:04 +1200
Subject: [PATCH] ENH Rebuild bundle

---
 client/dist/js/bundle.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/dist/js/bundle.js b/client/dist/js/bundle.js
index 84e5f8829..e9cdc2082 100644
--- a/client/dist/js/bundle.js
+++ b/client/dist/js/bundle.js
@@ -1 +1 @@
-webpackJsonp([0],{"./client/src/boot/BootRoutes.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n("jquery"),s=r(a),l=n("react"),c=r(l),u=n("react-redux"),d=n("react-dom"),f=r(d),p=n("react-router-dom"),h=n("./node_modules/react-router-config/esm/react-router-config.js"),m=n("lib/Config"),b=r(m),g=n("lib/Router"),v=r(g),y=n("lib/ReactRouteRegister"),_=r(y),j=n("./client/src/containers/App/App.js"),w=r(j),O=n("react-apollo"),T=n("i18n"),C=r(T),E=n("redux-form"),x=n("lib/getFormState"),S=r(x),k=function(){function e(t,n){o(this,e),this.store=t,this.client=n;var r=b.default.get("absoluteBaseUrl");v.default.setAbsoluteBase(r),this.handleBeforeRoute=this.handleBeforeRoute.bind(this),this.handleBeforeUnload=this.handleBeforeUnload.bind(this)}return i(e,[{key:"setStore",value:function(e){this.store=e}},{key:"setClient",value:function(e){this.client=e}},{key:"start",value:function(e){var t=this;this.matchesReactRoute(e)?this.initReactRouter():this.initLegacyRouter();var n=window.onbeforeunload;window.onbeforeunload=function(){return t.shouldConfirmBeforeUnload()?C.default._t("Admin.CONFIRMUNSAVEDSHORT","WARNING: Your changes have not been saved."):"function"==typeof n?n():void 0}}},{key:"matchesReactRoute",value:function(e){var t=b.default.get("sections"),n=v.default.resolveURLToBase(e).replace(/\/$/,"");return!!t.find(function(e){var t=v.default.resolveURLToBase(e.url).replace(/\/$/,"");return!!e.reactRouter&&n.match(t)})}},{key:"initReactRouter",value:function(){_.default.updateRootRoute({component:w.default}),f.default.render(c.default.createElement(O.ApolloProvider,{client:this.client},c.default.createElement(u.Provider,{store:this.store},c.default.createElement(p.BrowserRouter,{basename:b.default.get("baseUrl"),getUserConfirmation:this.handleBeforeRoute},c.default.createElement(p.Prompt,{message:C.default._t("Admin.CONFIRMUNSAVEDSHORT","WARNING: Your changes have not been saved.")}),(0,h.renderRoutes)([_.default.getRootRoute()])))),document.getElementsByClassName("cms-content")[0])}},{key:"initLegacyRouter",value:function(){var e=this,t=b.default.get("sections"),n=this.store;(0,v.default)("*",function(t,r){var o=C.default._t("Admin.CONFIRMUNSAVED","Are you sure you want to navigate away from this page?\n\n\n          WARNING: Your changes have not been saved.\n\n\n          Press OK to continue, or Cancel to stay on the current page.");e.shouldConfirmBeforeUnload()&&!window.confirm(o)||(t.store=n,r())});var r=null;t.forEach(function(e){var t=v.default.resolveURLToBase(e.url);t=t.replace(/\/$/,""),t+="(/*?)?",(0,v.default)(t,function(e,t){if("complete"!==document.readyState||e.init)return void t();r||(r=window.location.pathname);var n=e.state&&e.state.__forceReload;(e.path!==r||n)&&(r=e.path.replace(/#.*$/,""),(0,s.default)(".cms-container").entwine("ss").handleStateChange(null,e.state))})}),f.default.render(c.default.createElement("a",{role:"none",onClick:function(){}}),document.createElement("div")),v.default.start()}},{key:"shouldConfirmBeforeUnload",value:function(){var e=this.store.getState(),t=e.unsavedForms||[],n=e.form.formSchemas;return t.filter(function(t){var r=Object.values(n).find(function(e){return e.name===t.name});return!!(r&&r.state&&r.state.notifyUnsavedChanges)&&(0,E.isDirty)(t.name,S.default)(e)}).length>0}},{key:"handleBeforeUnload",value:function(e,t){return t(!this.shouldConfirmBeforeUnload()||confirm(C.default._t("Admin.CONFIRMUNSAVEDSHORT","WARNING: Your changes have not been saved.")))}},{key:"handleBeforeRoute",value:function(e,t){return t(!this.shouldConfirmBeforeUnload()||confirm(C.default._t("Admin.CONFIRMUNSAVED","Are you sure you want to navigate away\n          from this page?\n\nWARNING: Your changes have not been saved.\n\n\n          Press OK to continue, or Cancel to stay on the current page.")))}}]),e}();t.default=k},"./client/src/boot/apollo/buildCache.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./node_modules/apollo-cache-inmemory/lib/bundle.esm.js"),o=n("./client/src/boot/apollo/dataIdFromObject.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=function(e){return new r.InMemoryCache({fragmentMatcher:e?new r.IntrospectionFragmentMatcher({introspectionQueryResultData:e}):null,dataIdFromObject:i.default,addTypename:!0})};t.default=a},"./client/src/boot/apollo/buildClient.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}return r("next")})}}Object.defineProperty(t,"__esModule",{value:!0});var a=n("apollo-client"),s=r(a),l=n("./node_modules/apollo-link-state/lib/index.js"),c=n("./node_modules/apollo-link/lib/bundle.esm.js"),u=n("./client/src/boot/apollo/getGraphqlFragments.js"),d=r(u),f=n("./client/src/boot/apollo/buildNetworkComponents.js"),p=r(f),h=n("./client/src/boot/apollo/buildCache.js"),m=r(h),b=n("lib/Config"),g=r(b),v=function(){var e=i(regeneratorRuntime.mark(function e(t){var n,r,i,a,u,f,h;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=g.default.getSection("SilverStripe\\Admin\\LeftAndMain").graphql,r=n&&n.cachedTypenames,i=void 0,e.prev=3,e.next=6,(0,d.default)(t,r);case 6:i=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),i=null;case 12:return a=(0,m.default)(i),u=(0,p.default)(t),f=(0,l.withClientState)({cache:a,resolvers:{}}),h=(0,c.from)([f].concat(o(u))),e.abrupt("return",new s.default({cache:a,link:h}));case 17:case"end":return e.stop()}},e,void 0,[[3,9]])}));return function(t){return e.apply(this,arguments)}}();t.default=v},"./client/src/boot/apollo/buildNetworkComponents.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./node_modules/apollo-link-http/lib/bundle.esm.js"),o=n("./node_modules/apollo-link-error/lib/bundle.esm.js"),i=n("./node_modules/apollo-link/lib/bundle.esm.js"),a=n("lib/Config"),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=function(e){var t=new r.HttpLink({uri:e+"admin/graphql",fetchOptions:{credentials:"same-origin",headers:{accept:"application/json"}}}),n=(0,o.onError)(function(e){var t=e.networkError;t&&console.log("[Network error]: "+t)});return[new i.ApolloLink(function(e,t){return e.setContext({headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8","X-CSRF-TOKEN":s.default.get("SecurityID")}}),t(e)}),n,t]};t.default=l},"./client/src/boot/apollo/dataIdFromObject.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){var t=e.id||e.ID;return t&&t>=0&&e.__typename?e.__typename+":"+t:null};t.default=r},"./client/src/boot/apollo/getGraphqlFragments.js":function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}return r("next")})}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("isomorphic-fetch"),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=function(e){var t=e.data;return t.__schema.types=t.__schema.types.filter(function(e){return null!==e.possibleTypes}),t},s=function(e){if(!e.ok)throw new Error("The types.graphql file could not be loaded. You probably need to run a ?flush to generate it.\n            Alternatively, you can use the IntrospectionProvider extension to generate the file dynamically.\n            More information: https://github.com/silverstripe/silverstripe-graphql/#schema-introspection");return e},l=function(){var e=r(regeneratorRuntime.mark(function e(t){var n,o,l,c,u,d,f,p,h=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=!!document.body.getAttribute("data-graphql-legacy"),o=[t+"_graphql/admin.types.graphql",t+"admin.types.graphql"],l=[t+"admin/graphql/types",t+"assets/admin.types.graphql"],c=void 0,u=void 0,n?(h&&l.reverse(),c=l[0],u=l[1]):(c=o[0],u=o[1]),d={method:"GET",headers:{"Content-Type":"application/json"},uri:""+t,credentials:"same-origin"},f=function(){var e=r(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.default)(t,d).then(s).then(function(e){return e.json()}).then(a));case 1:case"end":return e.stop()}},e,void 0)}));return function(t){return e.apply(this,arguments)}}(),p=void 0,e.prev=9,e.next=12,f(c);case 12:p=e.sent,e.next=28;break;case 15:if(e.prev=15,e.t0=e.catch(9),u){e.next=19;break}return e.abrupt("return",Promise.reject(e.t0));case 19:return e.prev=19,e.next=22,f(u);case 22:p=e.sent,e.next=28;break;case 25:return e.prev=25,e.t1=e.catch(19),e.abrupt("return",Promise.reject(e.t1));case 28:return e.abrupt("return",Promise.resolve(p));case 29:case"end":return e.stop()}},e,void 0,[[9,15],[19,25]])}));return function(t){return e.apply(this,arguments)}}();t.default=l},"./client/src/boot/applyDevtools.js":function(e,t,n){"use strict";function r(e){var t=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,n=window.__REDUX_DEVTOOLS_EXTENSION__||window.devToolsExtension;return"function"==typeof t?t(e):"function"==typeof n?(0,o.compose)(e,n()):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n("redux")},"./client/src/boot/applyTransforms.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("lib/Injector"),s=r(a),l=n("./client/src/lib/Validator.js"),c=r(l),u=n("classnames"),d=r(u),f=n("lib/schemaFieldValues"),p=n("components/FieldHolder/FieldHolder"),h=r(p),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.extraClass?e.extraClass.split(" ").reduce(function(e,t){return i({},e,o({},t,!0))},{}):{};"string"==typeof e.data.pristineClass&&(n[e.data.pristineClass]=t),"string"==typeof e.data.dirtyClass&&(n[e.data.dirtyClass]=!t);var r=t?e.data.pristineTitle:e.data.dirtyTitle,a=t?e.data.pristineIcon:e.data.dirtyIcon;return i({},e,{title:r||e.title,icon:a||e.icon,extraClass:(0,d.default)(n)})},b=function(){s.default.transform("field-holders",function(e){["FieldGroup"].forEach(function(t){return e.component("FieldGroup",h.default,t+"Holder")})}),s.default.transform("form-action-changed",function(e){e.form.alterSchema("*",function(e){return e.mutateField("action_save",function(t){var n=e.isPristine();return m(t,n)}),e.mutateField("action_publish",function(t){var n=t.data.isPublished&&!t.data.isModified&&e.isPristine();return m(t,n)}),e.getState()})}),s.default.transform("schema-validation",function(e){e.form.addValidation("*",function(e,t,n){var r=new c.default(e),a=Object.keys(e).reduce(function(e,t){var a=(0,f.findField)(n.fields,t);if(!a)return e;var s=r.validateFieldSchema(a),l=s.valid,c=s.errors;return l?e:i({},e,o({},t,c))},{});return t.addErrors(a),t.getState()})})};t.default=b},"./client/src/boot/index.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}return r("next")})}}var i=function(){var e=o(regeneratorRuntime.mark(function e(){var t,n,r,o,i,a,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=h.default.get("absoluteBaseUrl"),e.next=3,(0,b.default)(t);case 3:n=e.sent,(0,y.default)(),(0,j.default)(),r=[f.default],o=h.default.get("debugging"),i=u.applyMiddleware.apply(void 0,r),o&&(i=(0,O.default)(i)),a=i(u.createStore),window.ss.apolloClient=n,l=new s.default(null,n),(0,C.default)(),c.default.init(function(){var e=(0,u.combineReducers)(c.default.reducer.getAll()),t=a(e,{});t.dispatch((0,g.setConfig)(h.default.getAll())),c.default.reducer.setStore(t),window.ss.store=t,l.setStore(t),l.start(window.location.pathname),window.jQuery&&window.jQuery("body").addClass("js-react-boot").addClass("js-injector-boot")}),window.setTimeout(function(){return c.default.load()},0);case 16:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),a=n("./client/src/boot/BootRoutes.js"),s=r(a),l=n("lib/Injector"),c=r(l),u=n("redux"),d=n("redux-thunk"),f=r(d),p=n("lib/Config"),h=r(p),m=n("./client/src/boot/apollo/buildClient.js"),b=r(m),g=n("./client/src/state/config/ConfigActions.js"),v=n("./client/src/boot/registerComponents.js"),y=r(v),_=n("./client/src/boot/registerReducers.js"),j=r(_),w=n("./client/src/boot/applyDevtools.js"),O=r(w),T=n("./client/src/boot/applyTransforms.js"),C=r(T);window.ss=window.ss||{},window.onload=i},"./client/src/boot/registerComponents.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("redux-form"),i=n("lib/Injector"),a=r(i),s=n("./client/src/components/ActionMenu/ActionMenu.js"),l=r(s),c=n("components/Badge/Badge"),u=r(c),d=n("components/Button/Button"),f=r(d),p=n("components/Button/BackButton"),h=r(p),m=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TextField/TextField.js"),b=r(m),g=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/HiddenField/HiddenField.js"),v=r(g),y=n("./client/src/components/DateField/DateField.js"),_=r(y),j=n("./client/src/components/TimeField/TimeField.js"),w=r(j),O=n("./client/src/components/DatetimeField/DatetimeField.js"),T=r(O),C=n("./client/src/components/CheckboxField/CheckboxField.js"),E=r(C),x=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/CheckboxSetField/CheckboxSetField.js"),S=r(x),k=n("./client/src/components/OptionsetField/OptionsetField.js"),F=r(k),P=n("components/GridField/GridField"),A=r(P),M=n("./client/src/components/GridFieldActions/GridFieldActions.js"),D=r(M),R=n("./client/src/components/SingleSelectField/SingleSelectField.js"),I=r(R),N=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/PopoverField/PopoverField.js"),L=r(N),B=n("./client/src/components/HeaderField/HeaderField.js"),U=r(B),H=n("components/LiteralField/LiteralField"),V=r(H),q=n("./client/src/components/HtmlReadonlyField/HtmlReadonlyField.js"),G=r(q),z=n("./client/src/components/LookupField/LookupField.js"),$=r(z),W=n("./client/src/components/CompositeField/CompositeField.js"),K=r(W),X=n("./client/src/components/LabelField/LabelField.js"),Y=r(X),Q=n("./client/src/components/Tabs/Tabs.js"),J=r(Q),Z=n("./client/src/components/Tabs/TabItem.js"),ee=r(Z),te=n("components/FormAction/FormAction"),ne=r(te),re=n("./client/src/components/FieldGroup/FieldGroup.js"),oe=r(re),ie=n("components/TreeDropdownField/TreeDropdownField"),ae=r(ie),se=n("components/FormBuilderModal/FormBuilderModal"),le=r(se),ce=n("./client/src/components/NotFoundComponent/NotFoundComponent.js"),ue=r(ce),de=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Form/Form.js"),fe=r(de),pe=n("components/FormAlert/FormAlert"),he=r(pe),me=n("components/Preview/Preview"),be=r(me),ge=n("./client/src/containers/Form/Form.js"),ve=r(ge),ye=n("./client/src/components/UsedOnTable/UsedOnTable.js"),_e=r(ye),je=n("components/Loading/Loading"),we=r(je),Oe=n("components/VersionedBadge/VersionedBadge"),Te=r(Oe),Ce=n("components/ViewModeToggle/ViewModeToggle"),Ee=r(Ce),xe=n("components/ResizeAware/ResizeAware"),Se=r(xe),ke=n("components/Tag/Tag"),Fe=r(ke),Pe=n("components/Tag/TagList"),Ae=r(Pe),Me=n("components/Tag/CompactTagList"),De=r(Me),Re=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tip/Tip.js"),Ie=r(Re),Ne=n("components/Search/Search"),Le=r(Ne),Be=n("components/Search/SearchToggle"),Ue=r(Be),He=n("./client/src/components/HtmlEditorField/HtmlEditorField.js"),Ve=r(He),qe=n("./client/src/components/NumberField/NumberField.js"),Ge=r(qe),ze=n("./client/src/components/PopoverOptionSet/PopoverOptionSet.js"),$e=r(ze),We=n("./client/src/containers/ToastsContainer/ToastsContainer.js"),Ke=r(We);t.default=function(){a.default.component.registerMany({ActionMenu:l.default,Badge:u.default,Button:f.default,BackButton:h.default,TextField:b.default,HiddenField:v.default,DateField:_.default,TimeField:w.default,DatetimeField:T.default,CheckboxField:E.default,CheckboxSetField:S.default,OptionsetField:F.default,GridField:A.default,GridFieldActions:D.default,FieldGroup:oe.default,SingleSelectField:I.default,PopoverField:L.default,HeaderField:U.default,LiteralField:V.default,HtmlReadonlyField:G.default,LookupField:$.default,CompositeField:K.default,Tabs:J.default,TabItem:ee.default,FormAction:ne.default,LabelField:Y.default,TreeDropdownField:ae.default,Preview:be.default,ReduxForm:ve.default,ReduxFormField:o.Field,Form:fe.default,FormAlert:he.default,FormBuilderModal:le.default,NotFoundComponent:ue.default,UsedOnTable:_e.default,Loading:we.default,VersionedBadge:Te.default,ViewModeToggle:Ee.default,ResizeAware:Se.default,Tag:Fe.default,TagList:Ae.default,CompactTagList:De.default,Tip:Ie.default,Search:Le.default,SearchToggle:Ue.default,HtmlEditorField:Ve.default,NumberField:Ge.default,PopoverOptionSet:$e.default,ToastsContainer:Ke.default})}},"./client/src/boot/registerReducers.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("lib/Injector"),a=r(i),s=n("redux"),l=n("redux-form"),c=n("./client/src/state/config/ConfigReducer.js"),u=r(c),d=n("./client/src/state/schema/SchemaReducer.js"),f=r(d),p=n("./client/src/state/records/RecordsReducer.js"),h=r(p),m=n("./client/src/state/breadcrumbs/BreadcrumbsReducer.js"),b=r(m),g=n("./client/src/state/treeDropdownField/TreeDropdownFieldReducer.js"),v=r(g),y=n("./client/src/state/tabs/TabsReducer.js"),_=r(y),j=n("./client/src/state/mobileMenu/MobileMenuReducer.js"),w=r(j),O=n("./client/src/state/unsavedForms/UnsavedFormsReducer.js"),T=r(O),C=n("./client/src/state/usedOn/usedOnReducer.js"),E=r(C),x=n("./client/src/lib/dependency-injection/applyFormMiddleware.js"),S=r(x),k=n("./client/src/state/viewMode/ViewModeReducer.js"),F=r(k),P=n("./client/src/state/toasts/ToastsReducer.js"),A=r(P);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.combineReducers)({formState:l.reducer,formSchemas:f.default});a.default.reducer.registerMany(o({config:u.default,form:t,records:h.default,breadcrumbs:b.default,treeDropdownField:v.default,tabs:_.default,mobileMenu:w.default,unsavedForms:T.default,usedOn:E.default,viewMode:F.default,toasts:A.default},e)),a.default.transform("admin",function(e){e.reducer("form",S.default)})}},"./client/src/bundles/bundle.js":function(e,t,n){"use strict";n("./client/src/i18n.js"),n("./node_modules/expose-loader/index.js?SilverStripeComponent!./client/src/lib/SilverStripeComponent.js-exposed"),n("./node_modules/expose-loader/index.js?Backend!./client/src/lib/Backend.js-exposed"),n("./node_modules/expose-loader/index.js?schemaFieldValues!./client/src/lib/schemaFieldValues.js-exposed"),n("./node_modules/expose-loader/index.js?FormAlert!./client/src/components/FormAlert/FormAlert.js-exposed"),n("./node_modules/expose-loader/index.js?Injector!./client/src/lib/Injector.js-exposed"),n("./node_modules/expose-loader/index.js?reduxFieldReducer!./client/src/lib/reduxFieldReducer.js-exposed"),n("./node_modules/expose-loader/index.js?getFormState!./client/src/lib/getFormState.js-exposed"),n("./node_modules/expose-loader/index.js?PopoverField!./client/src/components/PopoverField/PopoverField.js-exposed"),n("./node_modules/expose-loader/index.js?FieldHolder!./client/src/components/FieldHolder/FieldHolder.js-exposed"),n("./node_modules/expose-loader/index.js?Form!./client/src/components/Form/Form.js-exposed"),n("./node_modules/expose-loader/index.js?FormConstants!./client/src/components/Form/FormConstants.js-exposed"),n("./node_modules/expose-loader/index.js?FormAction!./client/src/components/FormAction/FormAction.js-exposed"),n("./node_modules/expose-loader/index.js?SchemaActions!./client/src/state/schema/SchemaActions.js-exposed"),n("./node_modules/expose-loader/index.js?ToastsActions!./client/src/state/toasts/ToastsActions.js-exposed"),n("./node_modules/expose-loader/index.js?FileStatusIcon!./client/src/components/FileStatusIcon/FileStatusIcon.js-exposed"),n("./node_modules/expose-loader/index.js?FormBuilder!./client/src/components/FormBuilder/FormBuilder.js-exposed"),n("./node_modules/expose-loader/index.js?FormBuilderLoader!./client/src/containers/FormBuilderLoader/FormBuilderLoader.js-exposed"),n("./node_modules/expose-loader/index.js?FormBuilderModal!./client/src/components/FormBuilderModal/FormBuilderModal.js-exposed"),n("./node_modules/expose-loader/index.js?FileSchemaModalHandler!./client/src/containers/InsertLinkModal/fileSchemaModalHandler.js-exposed"),n("./node_modules/expose-loader/index.js?InsertLinkModal!./client/src/containers/InsertLinkModal/InsertLinkModal.js-exposed"),n("./node_modules/expose-loader/index.js?RecordsActions!./client/src/state/records/RecordsActions.js-exposed"),n("./node_modules/expose-loader/index.js?GridField!./client/src/components/GridField/GridField.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldCell!./client/src/components/GridField/GridFieldCell.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldHeader!./client/src/components/GridField/GridFieldHeader.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldHeaderCell!./client/src/components/GridField/GridFieldHeaderCell.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldRow!./client/src/components/GridField/GridFieldRow.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldTable!./client/src/components/GridField/GridFieldTable.js-exposed"),n("./node_modules/expose-loader/index.js?Accordion!./client/src/components/Accordion/Accordion.js-exposed"),n("./node_modules/expose-loader/index.js?AccordionBlock!./client/src/components/Accordion/AccordionBlock.js-exposed"),n("./node_modules/expose-loader/index.js?Button!./client/src/components/Button/Button.js-exposed"),n("./node_modules/expose-loader/index.js?BackButton!./client/src/components/Button/BackButton.js-exposed"),n("./node_modules/expose-loader/index.js?HiddenField!./client/src/components/HiddenField/HiddenField.js-exposed"),n("./node_modules/expose-loader/index.js?ListGroup!./client/src/components/ListGroup/ListGroup.js-exposed"),n("./node_modules/expose-loader/index.js?ListGroupItem!./client/src/components/ListGroup/ListGroupItem.js-exposed"),n("./node_modules/expose-loader/index.js?Loading!./client/src/components/Loading/Loading.js-exposed"),n("./node_modules/expose-loader/index.js?TextField!./client/src/components/TextField/TextField.js-exposed"),n("./node_modules/expose-loader/index.js?LiteralField!./client/src/components/LiteralField/LiteralField.js-exposed"),n("./node_modules/expose-loader/index.js?Toolbar!./client/src/components/Toolbar/Toolbar.js-exposed"),n("./node_modules/expose-loader/index.js?FileStatusIcon!./client/src/components/FileStatusIcon/FileStatusIcon.js-exposed"),n("./node_modules/expose-loader/index.js?Breadcrumb!./client/src/components/Breadcrumb/Breadcrumb.js-exposed"),n("./node_modules/expose-loader/index.js?ResizeAware!./client/src/components/ResizeAware/ResizeAware.js-exposed"),n("./node_modules/expose-loader/index.js?TabsActions!./client/src/state/tabs/TabsActions.js-exposed"),n("./node_modules/expose-loader/index.js?Tag!./client/src/components/Tag/Tag.js-exposed"),n("./node_modules/expose-loader/index.js?TagList!./client/src/components/Tag/TagList.js-exposed"),n("./node_modules/expose-loader/index.js?CompactTagList!./client/src/components/Tag/CompactTagList.js-exposed"),n("./node_modules/expose-loader/index.js?Tip!./client/src/components/Tip/Tip.js-exposed"),n("./node_modules/expose-loader/index.js?Search!./client/src/components/Search/Search.js-exposed"),n("./node_modules/expose-loader/index.js?SearchToggle!./client/src/components/Search/SearchToggle.js-exposed"),n("./node_modules/expose-loader/index.js?TreeDropdownFieldNode!./client/src/components/TreeDropdownField/TreeDropdownFieldNode.js-exposed"),n("./node_modules/expose-loader/index.js?TreeDropdownFieldMenu!./client/src/components/TreeDropdownField/TreeDropdownFieldMenu.js-exposed"),n("./node_modules/expose-loader/index.js?TreeDropdownField!./client/src/components/TreeDropdownField/TreeDropdownField.js-exposed"),n("./node_modules/expose-loader/index.js?BreadcrumbsActions!./client/src/state/breadcrumbs/BreadcrumbsActions.js-exposed"),n("./node_modules/expose-loader/index.js?RecordsActionTypes!./client/src/state/records/RecordsActionTypes.js-exposed"),n("./node_modules/expose-loader/index.js?UnsavedFormsActions!./client/src/state/unsavedForms/UnsavedFormsActions.js-exposed"),n("./node_modules/expose-loader/index.js?Badge!./client/src/components/Badge/Badge.js-exposed"),n("./node_modules/expose-loader/index.js?Button!./client/src/components/Button/Button.js-exposed"),n("./node_modules/expose-loader/index.js?BackButton!./client/src/components/Button/BackButton.js-exposed"),n("./node_modules/expose-loader/index.js?VersionedBadge!./client/src/components/VersionedBadge/VersionedBadge.js-exposed"),n("./node_modules/expose-loader/index.js?CheckboxSetField!./client/src/components/CheckboxSetField/CheckboxSetField.js-exposed"),n("./node_modules/expose-loader/index.js?Preview!./client/src/components/Preview/Preview.js-exposed"),n("./node_modules/expose-loader/index.js?ViewModeStates!./client/src/state/viewMode/ViewModeStates.js-exposed"),n("./node_modules/expose-loader/index.js?ViewModeActions!./client/src/state/viewMode/ViewModeActions.js-exposed"),n("./node_modules/expose-loader/index.js?ViewModeToggle!./client/src/components/ViewModeToggle/ViewModeToggle.js-exposed"),n("./node_modules/expose-loader/index.js?Focusedzone!./client/src/components/Focusedzone/Focusedzone.js-exposed"),n("./node_modules/expose-loader/index.js?Config!./client/src/lib/Config.js-exposed"),n("./node_modules/expose-loader/index.js?DataFormat!./client/src/lib/DataFormat.js-exposed"),n("./node_modules/expose-loader/index.js?ReactRouteRegister!./client/src/lib/ReactRouteRegister.js-exposed"),n("./node_modules/expose-loader/index.js?Router!./client/src/lib/Router.js-exposed"),n("./node_modules/expose-loader/index.js?TinyMCEActionRegistrar!./client/src/lib/TinyMCEActionRegistrar.js-exposed"),n("./node_modules/expose-loader/index.js?ShortcodeSerialiser!./client/src/lib/ShortcodeSerialiser.js-exposed"),n("./node_modules/expose-loader/index.js?formatWrittenNumber!./client/src/lib/formatWrittenNumber.js-exposed"),n("./node_modules/expose-loader/index.js?withDragDropContext!./client/src/lib/withDragDropContext.js-exposed"),n("./client/src/legacy/jquery.changetracker.js"),n("./client/src/legacy/sspath.js"),n("./client/src/legacy/ssui.core.js"),n("./client/src/legacy/LeftAndMain.js"),n("./client/src/legacy/LeftAndMain.ActionTabSet.js"),n("./client/src/legacy/LeftAndMain.Panel.js"),n("./client/src/legacy/LeftAndMain.Tree.js"),n("./client/src/legacy/LeftAndMain.Content.js"),n("./client/src/legacy/LeftAndMain.EditForm.js"),n("./client/src/legacy/LeftAndMain.Menu.js"),n("./client/src/legacy/LeftAndMain.MobileMenuToggle.js"),n("./client/src/legacy/LeftAndMain.Preview.js"),n("./client/src/legacy/LeftAndMain.BatchActions.js"),n("./client/src/legacy/LeftAndMain.FieldHelp.js"),n("./client/src/legacy/LeftAndMain.FieldDescriptionToggle.js"),n("./client/src/legacy/LeftAndMain.TreeDropdownField.js"),n("./client/src/legacy/AddToCampaignForm.js"),n("./client/src/legacy/SecurityAdmin.js"),n("./client/src/legacy/ModelAdmin.js"),n("./client/src/legacy/ToastsContainer.js"),n("./client/src/legacy/ConfirmedPasswordField.js"),n("./client/src/legacy/SelectionGroup.js"),n("./client/src/legacy/DateField.js"),n("./client/src/legacy/ToggleCompositeField.js"),n("./client/src/legacy/TreeDropdownField/TreeDropdownFieldEntwine.js"),n("./client/src/legacy/UsedOnTable/UsedOnTableEntwine.js"),n("./client/src/legacy/DateField.js"),n("./client/src/legacy/DatetimeField.js"),n("./client/src/legacy/HtmlEditorField.js"),n("./client/src/legacy/TabSet.js"),n("./client/src/legacy/GridField.js"),n("./client/src/boot/index.js")},"./client/src/components/ActionMenu/ActionMenu.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n("react"),d=r(u),f=n("prop-types"),p=r(f),h=n("reactstrap"),m=n("i18n"),b=r(m),g=n("classnames"),v=r(g),y=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggle=n.toggle.bind(n),n.state={isOpen:!1},n}return s(t,e),c(t,[{key:"toggle",value:function(e){var t=this.props.toggleCallback;t&&t(e),this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){var e=this.props,t=e.dropdownToggleProps,n=e.dropdownMenuProps,r=e.dropdownToggleClassNames,i=e.className,a=(e.toggleCallback,o(e,["dropdownToggleProps","dropdownMenuProps","dropdownToggleClassNames","className","toggleCallback"])),s=(0,v.default)(r,t.className),c=(0,v.default)("action-menu__dropdown",n.className);return d.default.createElement(h.Dropdown,l({className:(0,v.default)("action-menu",i),isOpen:this.state.isOpen,toggle:this.toggle},a),d.default.createElement(h.DropdownToggle,l({className:s,"aria-label":b.default._t("Admin.ACTIONS","View actions")},t)),d.default.createElement(h.DropdownMenu,l({className:c},n),this.props.children))}}]),t}(u.PureComponent);y.propTypes={toggleCallback:p.default.func,dropdownToggleClassNames:p.default.arrayOf(p.default.string)},y.defaultProps={className:"",dropdownToggleClassNames:["action-menu__toggle","btn","btn--no-text","btn--icon-xl","font-icon-dot-3"],dropdownToggleProps:{},dropdownMenuProps:{}},t.default=y},"./client/src/components/Button/IconHOC.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("react"),s=r(a),l=n("prop-types"),c=r(l),u=n("classnames"),d=r(u),f=function(e){var t=function(t){var n=t.icon,r=t.className,a=o(t,["icon","className"]);return s.default.createElement(e,i({className:(0,d.default)(r,n&&"font-icon-"+n)},a))};return t.propTypes=i({},e.propTypes,{icon:c.default.string}),t.defaultProps=e.defaultProps,t.displayName=e.name,t};t.default=f},"./client/src/components/CheckboxField/CheckboxField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("react"),a=r(i),s=n("components/FieldHolder/FieldHolder"),l=r(s),c=n("./client/src/components/OptionsetField/OptionField.js"),u=r(c),d=function(e){return a.default.createElement(u.default,o({},e,{type:"checkbox"}))},f=function(e){var t=(0,l.default)(d);return a.default.createElement(t,o({},e,{hideLabels:!0}))};t.Component=d,t.default=f},"./client/src/components/CompositeField/CompositeField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("./client/src/lib/castStringToElement.js"),d=r(u),f=n("prop-types"),p=r(f),h=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"getLegend",value:function(){return"fieldset"===this.props.data.tag&&this.props.data.legend?(0,d.default)("legend",this.props.data.legend):null}},{key:"getClassName",value:function(){return this.props.className+" "+this.props.extraClass}},{key:"render",value:function(){var e=this.getLegend(),t=this.props.data.tag||"div",n=this.getClassName();return c.default.createElement(t,{className:n},e,this.props.children)}}]),t}(l.Component);h.propTypes={data:p.default.oneOfType([p.default.array,p.default.shape({tag:p.default.string,legend:p.default.string})]),extraClass:p.default.string},h.defaultProps={className:"",extraClass:""},t.Component=h,t.default=h},"./client/src/components/DateField/DateField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},u=n("components/FieldHolder/FieldHolder"),d=r(u),f=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TextField/TextField.js"),p=n("moment"),h=r(p),m=n("modernizr"),b=r(m),g=n("i18n"),v=r(g),y=n("prop-types"),_=r(y),j=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){return c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this)}},{key:"moment",value:function(){return h.default.locale(this.getLang()),h.default.apply(void 0,arguments)}},{key:"getLang",value:function(){return(this.asHTML5()?this.props.isoLang:this.props.lang)||(0,h.default)().locale()}},{key:"asHTML5",value:function(){return this.props.data.html5&&this.hasNativeSupport()}},{key:"hasNativeSupport",value:function(){return this.props.modernizr.inputtypes.date}},{key:"getInputProps",value:function(){var e=v.default.inject(v.default._t("Admin.FormatExample","Example: {format}"),{format:this.moment().endOf("month").format("L")}),n=this.asHTML5()?this.props.value:this.getLocalisedValue(),r=this.asHTML5()?"date":"text";return s({},c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getInputProps",this).call(this),{type:r,value:n,placeholder:e})}},{key:"getLocalisedValue",value:function(){return this.convertToLocalised(this.props.value)}},{key:"isMultiline",value:function(){return!1}},{key:"handleChange",value:function(e){var t=e.target.value,n="";n=this.asHTML5()?t:this.convertToIso(t),"function"==typeof this.props.onChange&&this.triggerChange(e,n)}},{key:"triggerChange",value:function(e,t){this.props.onChange(e,{id:this.props.id,value:t})}},{key:"convertToIso",value:function(e){var t="";if(e){var n=this.moment(e,["L","YYYY-MM-DD"]);n.isValid()&&(t=n.format("YYYY-MM-DD"))}return t}},{key:"convertToLocalised",value:function(e){var t="";if(e){var n=this.moment(e);n.isValid()&&(t=n.format("L"))}return t}}]),t}(f.Component);j.propTypes={lang:_.default.string,isoLang:_.default.string,modernizr:_.default.object,data:_.default.shape({html5:_.default.bool})},j.defaultProps={modernizr:b.default,data:{}},t.Component=j,t.default=(0,d.default)(j)},"./client/src/components/DatetimeField/DatetimeField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},u=n("components/FieldHolder/FieldHolder"),d=r(u),f=n("./client/src/components/DateField/DateField.js"),p=n("moment"),h=r(p),m=n("i18n"),b=r(m),g=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"getInputProps",value:function(){var e=b.default.inject(b.default._t("Admin.FormatExample","Example: {format}"),{format:this.moment().endOf("month").format("L LT")}),n=this.asHTML5()?"datetime-local":"text";return s({},c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getInputProps",this).call(this),{type:n,placeholder:e})}},{key:"isMultiline",value:function(){return!1}},{key:"hasNativeSupport",value:function(){return this.props.modernizr.inputtypes["datetime-local"]}},{key:"triggerChange",value:function(e,t){/^\d{4}-\d\d-\d\dT\d\d:\d\d$/.test(t)?this.props.onChange(e,{id:this.props.id,value:t+":00"}):this.props.onChange(e,{id:this.props.id,value:t})}},{key:"convertToLocalised",value:function(e){h.default.locale(this.props.lang);var t="";if(e){var n=this.moment(e);n.isValid()&&(t=n.format("L LT"))}return t}},{key:"convertToIso",value:function(e){h.default.locale(this.props.lang);var t="";if(e){var n=["L LT","L",h.default.ISO_8601],r=this.moment(e,n);r.isValid()&&(t=r.format("YYYY-MM-DDTHH:mm:ss"))}return t}}]),t}(f.Component);g.propTypes=f.Component.propTypes,g.defaultProps=f.Component.defaultProps,t.Component=g,t.default=(0,d.default)(g)},"./client/src/components/FieldGroup/FieldGroup.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},u=n("./client/src/components/CompositeField/CompositeField.js"),d=r(u),f=n("prop-types"),p=r(f),h=n("classnames"),m=r(h),b=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"getClassName",value:function(){return(0,m.default)("field-group-component",{"field-group-component__small-holder":this.props.smallholder},c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getClassName",this).call(this))}}]),t}(d.default);b.propTypes=s({},d.default.propTypes,{smallholder:p.default.bool}),b.defaultProps=s({},d.default.defaultProps,{smallholder:!0}),t.default=b},"./client/src/components/GridField/GridFieldAction.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=n.handleClick.bind(n),n}return a(t,e),s(t,[{key:"handleClick",value:function(e){this.props.onClick(e,this.props.record.ID)}},{key:"render",value:function(){return c.default.createElement("button",{className:"grid-field__icon-action font-icon-"+this.props.icon+" btn--icon-lg",onClick:this.handleClick})}}]),t}(l.Component);f.propTypes={onClick:d.default.func.isRequired},t.default=f},"./client/src/components/GridFieldActions/GridFieldActions.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("reactstrap"),d=n("./client/src/components/GridFieldActions/GridFieldDropdownAction.js"),f=r(d),p=n("./client/src/components/ActionMenu/ActionMenu.js"),h=r(p),m=n("classnames"),b=r(m),g=n("prop-types"),v=r(g),y=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggle=n.toggle.bind(n),n.state={dropdownOpen:!1},n}return a(t,e),s(t,[{key:"toggle",value:function(){this.setState({dropdownOpen:!this.state.dropdownOpen})}},{key:"renderMultipleActions",value:function(e){var t=e.reduce(function(e,t){var n=e,r=t.group;if(!r)throw new Error('Action: "'+t.title+'" has no group assigned');return n[r]||(n[r]=[]),n[r].push(t),n},[]),n={right:!0},r=["action-menu__toggle","btn","btn--no-text","btn-sm","font-icon-dot-3"];return c.default.createElement(h.default,{dropdownMenuProps:n,dropdownToggleClassNames:r},Object.keys(t).map(function(e,n){return[0!==n&&c.default.createElement(u.DropdownItem,{divider:!0,key:e}),t[e].map(function(e,t){return c.default.createElement(f.default,{data:e.data,title:e.title,type:e.type,url:e.url,key:t})})]}))}},{key:"renderSingleAction",value:function(e){var t=e.type,n=e.title,r=e.data,o=e.url,i=void 0;"submit"===t&&(i="submit",o=void 0);var a=(0,b.default)("action",r.classNames);return c.default.createElement(u.Button,{className:a,type:i,href:o,"data-url":r["data-url"],"data-action-state":r["data-action-state"],name:r.name,color:"secondary"},n)}},{key:"render",value:function(){var e=this.props.schema;return e.length>1?this.renderMultipleActions(e):1===e.length?this.renderSingleAction(e[0]):null}}]),t}(l.PureComponent),_=f.default.propTypes;_.group=v.default.string,y.propTypes=v.default.arrayOf(v.default.shape(_)).isRequired,t.default=y},"./client/src/components/GridFieldActions/GridFieldDropdownAction.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("reactstrap"),d=n("classnames"),f=r(d),p=n("prop-types"),h=r(p),m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){var e=this.props,t=e.type,n=e.title,r=e.data,o=this.props.url,i=(0,f.default)("action",r.classNames),a=null;switch(t){case"submit":a="button",o=void 0;break;case"link":a="a";break;default:a=void 0}return c.default.createElement(u.DropdownItem,{className:i,href:o,tag:a,type:"button"===a?"button":void 0,"data-url":r["data-url"],"data-action-state":r["data-action-state"],name:r.name},n)}}]),t}(l.PureComponent);m.propTypes={data:h.default.object,title:h.default.string.isRequired,type:h.default.oneOf(["submit","link"]),url:h.default.string},t.default=m},"./client/src/components/HeaderField/HeaderField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.className,n=e.extraClass,r=e.id,o=e.data,i=o.headingLevel,s=o.title,l="h"+(i||3);return a.default.createElement("div",{className:"field"},a.default.createElement(l,{className:(0,u.default)(t,n),id:r},s))}Object.defineProperty(t,"__esModule",{value:!0});var i=n("react"),a=r(i),s=n("prop-types"),l=r(s),c=n("classnames"),u=r(c);o.propTypes={className:l.default.string,extraClass:l.default.string,id:l.default.string,data:l.default.oneOfType([l.default.array,l.default.shape({headingLevel:l.default.number,title:l.default.string})]).isRequired},o.defaultProps={className:"",extraClass:""},t.default=o},"./client/src/components/HtmlEditorField/HtmlEditorField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},u=n("react"),d=r(u),f=n("./node_modules/react-load-script/lib/index.js"),p=r(f),h=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TextField/TextField.js"),m=n("components/FieldHolder/FieldHolder"),b=r(m);n("./node_modules/events-polyfill/index.js");var g=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isReady:!e.data.editorjs},n.inputRef=null,n.handleReady=n.handleReady.bind(n),n}return a(t,e),l(t,[{key:"getInputProps",value:function(){var e=this;return s({},c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getInputProps",this).call(this),this.props.data.attributes,{innerRef:function(t){e.inputRef=t}})}},{key:"getEditorElement",value:function(){return document.getElementById(this.getInputProps().id)}},{key:"getEditor",value:function(){return window.TinyMCE&&window.TinyMCE.get(this.getInputProps().id)}},{key:"handleReady",value:function(){!window.TinyMCE&&window.tinymce&&(window.TinyMCE=window.tinymce),this.setState({isReady:!0})}},{key:"registerChangeListener",value:function(){var e=this,n=this.getEditorElement();this.getEditor().on("change keyup setcontent",function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleChange",e).call(e,{target:n})})}},{key:"renderDependencyScript",value:function(){var e=this;return window.tinymce||window.TinyMCE?(setTimeout(function(){e.handleReady()},0),null):d.default.createElement(p.default,{url:this.props.data.editorjs,onLoad:this.handleReady})}},{key:"render",value:function(){return this.state.isReady?c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this):this.renderDependencyScript()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.state.isReady;if(r){r!==t.isReady&&setTimeout(function(){var e=window,t=e.document,r=e.jQuery,o=r.Event("EntwineElementsAdded"),i=n.getEditorElement();o.targets=[i],r(t).triggerHandler(o),n.registerChangeListener()},1);var o=this.props.value;if(o!==e.value){var i=new Event("change",{bubbles:!0});i.simulated=!0,i.value=o,this.inputRef.dispatchEvent(i)}}}},{key:"componentWillUnmount",value:function(){if(this.state.isReady){var e=window,n=e.document,r=e.jQuery,o=r.Event("EntwineElementsRemoved"),i=this.getEditorElement(),a=this.getEditor();a&&a.save(),o.targets=[i],c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleChange",this).call(this,{target:i}),r(n).triggerHandler(o)}}}]),t}(h.Component);t.Component=g,t.default=(0,b.default)(g)},"./client/src/components/HtmlReadonlyField/HtmlReadonlyField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("components/FieldHolder/FieldHolder"),f=r(d),p=n("reactstrap"),h=n("prop-types"),m=r(h),b=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"getInputProps",value:function(){return{className:this.props.className+" "+this.props.extraClass,id:this.props.id,name:this.props.name}}},{key:"render",value:function(){return u.default.createElement(p.Input,s({plaintext:!0,tag:"p",dangerouslySetInnerHTML:{__html:this.props.value}},this.getInputProps()))}}]),t}(c.Component);b.propTypes={id:m.default.string,name:m.default.string.isRequired,extraClass:m.default.string,value:m.default.string},b.defaultProps={extraClass:"",className:""},t.Component=b,t.default=(0,f.default)(b)},"./client/src/components/IframeDialog/IframeDialog.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("reactstrap"),d=n("classnames"),f=r(d),p=n("prop-types"),h=r(p),m=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClosed=n.handleClosed.bind(n),n}return a(t,e),s(t,[{key:"handleClosed",value:function(){"function"==typeof this.props.onClosed&&this.props.onClosed()}},{key:"renderHeader",value:function(){var e=this.props.title;return e?c.default.createElement(u.ModalHeader,{toggle:this.handleClosed},e):null}},{key:"render",value:function(){return c.default.createElement(u.Modal,{isOpen:this.props.isOpen,onClosed:this.handleClosed,className:(0,f.default)("iframe-dialog",this.props.className),modalClassName:this.props.modalClassName},this.renderHeader(),c.default.createElement(u.ModalBody,{className:this.props.bodyClassName},c.default.createElement("iframe",{id:this.props.iframeId,className:(0,f.default)("iframe-dialog__iframe",this.props.iframeClassName),src:this.props.url,frameBorder:0})))}}]),t}(l.Component);m.propTypes={url:h.default.string.isRequired,onClosed:h.default.func,isOpen:h.default.bool,title:h.default.oneOfType([h.default.string,h.default.bool]),modalClassName:h.default.string,iframeId:h.default.string,iframeClassName:h.default.string,className:h.default.string,bodyClassName:h.default.string},m.defaultProps={isOpen:!1,title:null},t.default=m},"./client/src/components/InputField/InputField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("reactstrap"),f=n("prop-types"),p=r(f),h=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tip/Tip.js"),m=r(h),b=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=n.handleChange.bind(n),n}return a(t,e),l(t,[{key:"getInputProps",value:function(){var e={className:this.props.className+" "+this.props.extraClass,id:this.props.id,name:this.props.name,disabled:this.props.disabled,readOnly:this.props.readOnly,value:this.props.value||"",placeholder:this.props.placeholder,autoFocus:this.props.autoFocus,maxLength:this.props.data&&this.props.data.maxlength,type:this.props.type?this.props.type:null,onBlur:this.props.onBlur,onFocus:this.props.onFocus};return this.props.attributes&&!Array.isArray(this.props.attributes)&&Object.assign(e,this.props.attributes),this.props.readOnly||Object.assign(e,{onChange:this.handleChange}),e}},{key:"handleChange",value:function(e){if("function"==typeof this.props.onChange){if(!e.target)return;this.props.onChange(e,{id:this.props.id,value:e.target.value})}}},{key:"renderFieldWithTip",value:function(){var e=this.props,t=e.id,n=e.title,r=e.tip;return u.default.createElement(d.InputGroup,null,u.default.createElement(d.Input,this.getInputProps()),u.default.createElement(d.InputGroupAddon,{addonType:"append"},u.default.createElement(m.default,s({},r,{fieldTitle:n,id:t+"-tip"}))))}},{key:"render",value:function(){return this.props.tip?this.renderFieldWithTip():u.default.createElement(d.Input,this.getInputProps())}}]),t}(c.Component);b.propTypes={extraClass:p.default.string,id:p.default.string,name:p.default.string.isRequired,onChange:p.default.func,onBlur:p.default.func,onFocus:p.default.func,value:p.default.oneOfType([p.default.string,p.default.number]),readOnly:p.default.bool,disabled:p.default.bool,placeholder:p.default.string,type:p.default.string,autoFocus:p.default.bool,attributes:p.default.oneOfType([p.default.object,p.default.array]),tip:p.default.shape(h.tipShape)},b.defaultProps={value:"",extraClass:"",className:"",type:"text",attributes:{}},t.Component=b,t.default=b},"./client/src/components/LabelField/LabelField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("react"),i=r(o),a=n("prop-types"),s=r(a),l=function(e){var t=e.id,n=e.className,r=e.title,o=e.extraClass,a=e.data,s=a&&a.target,l=n+" "+o;return i.default.createElement("label",{id:t,className:l,htmlFor:s},r)};l.propTypes={id:s.default.number,className:s.default.string,extraClass:s.default.string,title:s.default.node,data:s.default.shape({target:s.default.string})},l.defaultProps={className:"",extraClass:""},t.default=l},"./client/src/components/LookupField/LookupField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("reactstrap"),f=n("components/FieldHolder/FieldHolder"),p=r(f),h=n("i18n"),m=r(h),b=n("prop-types"),g=r(b),v=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getValueCSV=n.getValueCSV.bind(n),n}return a(t,e),l(t,[{key:"getValueCSV",value:function(){var e=this,t=this.props.value;if(!Array.isArray(t)&&(t||"string"==typeof t||"number"==typeof t)){var n=this.props.source.find(function(e){return e.value===t});return n?n.title:""}return t&&t.length?t.map(function(t){var n=e.props.source.find(function(e){return e.value===t});return n&&n.title}).filter(function(e){return(""+e).length}).join(", "):""}},{key:"getFieldProps",value:function(){return{id:this.props.id,name:this.props.name,className:this.props.className+" "+this.props.extraClass}}},{key:"render",value:function(){if(!this.props.source)return null;var e="('"+m.default._t("Admin.NONE","None")+"')",t=this.getValueCSV()||e;return u.default.createElement(d.Input,s({plaintext:!0},this.getFieldProps(),{tag:"p"}),t)}}]),t}(c.Component);v.propTypes={extraClass:g.default.string,id:g.default.string,name:g.default.string.isRequired,source:g.default.arrayOf(g.default.shape({value:g.default.oneOfType([g.default.string,g.default.number]),title:g.default.any,disabled:g.default.bool})),value:g.default.any},v.defaultProps={extraClass:"",className:"",value:[]},t.Component=v,t.default=(0,p.default)(v)},"./client/src/components/MobileMenuToggle/MobileMenuToggle.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("classnames"),d=r(u),f=n("prop-types"),p=r(f),h=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.handleClick=e.handleClick.bind(e),e}return a(t,e),s(t,[{key:"handleClick",value:function(e){e.preventDefault(),"function"==typeof this.props.onClick&&this.props.onClick(e)}},{key:"render",value:function(){var e=(0,d.default)({"cms-mobile-menu-toggle":!0,"cms-mobile-menu-toggle--open":this.props.isOpen});return c.default.createElement("button",{className:e,href:"#toggle-mobile-menu",onClick:this.handleClick,"aria-controls":this.props.controls,"aria-expanded":Boolean(this.props.isOpen)},c.default.createElement("span",null),c.default.createElement("span",null),c.default.createElement("span",null),c.default.createElement("span",null))}}]),t}(l.Component);h.propTypes={isOpen:p.default.bool.isRequired,onClick:p.default.func.isRequired,controls:p.default.string},h.defaultProps={controls:""},t.default=h},"./client/src/components/MobileMenuToggle/MobileMenuToggleContainer.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./client/src/state/mobileMenu/MobileMenuActions.js"),o=n("react-redux"),i=n("./client/src/components/MobileMenuToggle/MobileMenuToggle.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,o.connect)(function(e){return{isOpen:e.mobileMenu.isOpen}},function(e){return{onClick:function(){e((0,r.toggleMobileMenu)())}}})(a.default)},"./client/src/components/NotFoundComponent/NotFoundComponent.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("react"),i=r(o),a=n("i18n"),s=r(a),l=n("classnames"),c=r(l),u=n("components/FormAlert/FormAlert"),d=r(u),f=n("prop-types"),p=r(f),h=function(e){var t=e.itemName,n=e.name,r=e.value;return i.default.createElement("div",{className:(0,c.default)(t,"not-found-component")},i.default.createElement(d.default,{value:s.default.inject(s.default._t("Admin.NOT_FOUND_COMPONENT","The component here ({component}) failed to load, there is a chance that you may lose data when saving due to this."),{component:t})}),n&&"string"==typeof r?i.default.createElement("input",{type:"hidden",name:n,value:r}):null)};h.propTypes={itemName:p.default.string.isRequired,name:p.default.string,value:p.default.any},t.default=h},"./client/src/components/NumberField/NumberField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},c=n("components/FieldHolder/FieldHolder"),u=r(c),d=n("./client/src/components/InputField/InputField.js"),f=r(d),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"getInputProps",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getInputProps",this).call(this);return Object.assign(e,{type:"number"}),e}}]),t}(f.default);t.Component=p,t.default=(0,u.default)(p)},"./client/src/components/OptionsetField/OptionField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("reactstrap"),f=n("classnames"),p=r(f),h=n("./client/src/lib/castStringToElement.js"),m=r(h),b=n("prop-types"),g=r(b),v=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=n.handleChange.bind(n),n}return s(t,e),l(t,[{key:"getInputProps",value:function(){var e,t=(0,p.default)((e={},o(e,this.props.className,!0),o(e,this.props.extraClass,!0),o(e,"form-check",!0),o(e,"checked",this.props.value),o(e,"disabled",this.props.readOnly),o(e,"option-field--disabled",this.props.readOnly||this.props.disabled),e));return{id:this.props.id,type:this.props.type,name:this.props.name,disabled:this.props.disabled||this.props.readOnly,readOnly:this.props.readOnly,className:t,onChange:this.handleChange,checked:!!this.props.value,value:1}}},{key:"handleChange",value:function(e){if(this.props.readOnly||this.props.disabled)return void e.preventDefault();var t=null;"function"==typeof this.props.onChange?t=this.props.onChange:"function"==typeof this.props.onClick&&(t=this.props.onClick),t&&t(e,{id:this.props.id,value:e.target.checked?1:0})}},{key:"render",value:function(){var e=null!==this.props.leftTitle?this.props.leftTitle:this.props.title,t=null!==this.props.rightTitle?e+" "+this.props.rightTitle:e;return u.default.createElement(d.FormGroup,{check:!0},u.default.createElement(d.Label,{check:!0},u.default.createElement(d.Input,this.getInputProps()),(0,m.default)("span",t)))}}]),t}(c.Component);v.propTypes={type:g.default.oneOf(["checkbox","radio"]),leftTitle:g.default.any,rightTitle:g.default.any,title:g.default.any,extraClass:g.default.string,id:g.default.string,name:g.default.string,onChange:g.default.func,value:g.default.oneOfType([g.default.string,g.default.number,g.default.bool]),readOnly:g.default.bool,disabled:g.default.bool},v.defaultProps={extraClass:"",className:"",type:"radio",leftTitle:null,rightTitle:null},t.Component=v,t.default=v},"./client/src/components/OptionsetField/OptionsetField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("./client/src/components/OptionsetField/OptionField.js"),f=r(d),p=n("components/FieldHolder/FieldHolder"),h=r(p),m=n("prop-types"),b=r(m),g=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getItemKey=n.getItemKey.bind(n),n.getOptionProps=n.getOptionProps.bind(n),n.handleChange=n.handleChange.bind(n),n}return a(t,e),l(t,[{key:"getItemKey",value:function(e,t){var n=e.value||"empty"+t;return this.props.id+"-"+n}},{key:"getOptionProps",value:function(e,t){var n=this.getItemKey(e,t);return{key:n,id:n,name:this.props.name,className:this.props.itemClass+" option-val--"+e.value,disabled:e.disabled||this.props.disabled,readOnly:this.props.readOnly,onChange:this.handleChange,value:""+this.props.value==""+e.value,title:e.title,type:"radio"}}},{key:"handleChange",value:function(e,t){var n=this;if("function"==typeof this.props.onChange&&1===t.value){var r=this.props.source.find(function(e,r){return n.getItemKey(e,r)===t.id});this.props.onChange(e,{id:this.props.id,value:r.value})}}},{key:"render",value:function(){var e=this;return this.props.source?u.default.createElement("div",null,this.props.source.map(function(t,n){return u.default.createElement(f.default,s({},e.getOptionProps(t,n),{hideLabels:!0}))})):null}}]),t}(c.Component);g.propTypes={extraClass:b.default.string,itemClass:b.default.string,id:b.default.string,name:b.default.string.isRequired,source:b.default.arrayOf(b.default.shape({value:b.default.oneOfType([b.default.string,b.default.number]),title:b.default.oneOfType([b.default.string,b.default.number]),disabled:b.default.bool})),onChange:b.default.func,value:b.default.oneOfType([b.default.string,b.default.number]),readOnly:b.default.bool,disabled:b.default.bool},g.defaultProps={extraClass:"",className:"",itemClass:""},t.Component=g,t.default=(0,h.default)(g)},"./client/src/components/PopoverOptionSet/PopoverOptionSet.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("prop-types"),f=r(d),p=n("reactstrap"),h=n("classnames"),m=r(h),b=n("i18n"),g=r(b),v=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleToggle=n.handleToggle.bind(n),n.handleSearchValueClear=n.handleSearchValueClear.bind(n),n.handleSearchValueChange=n.handleSearchValueChange.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.doToggle=n.doToggle.bind(n),n.focusOnTarget=n.focusOnTarget.bind(n),n.state={searchValue:""},n}return a(t,e),l(t,[{key:"handleToggle",value:function(){this.doToggle(!1)}},{key:"doToggle",value:function(e){(0,this.props.toggle)(),this.handleSearchValueClear(),e&&this.focusOnTarget()}},{key:"focusOnTarget",value:function(){var e=this.props.target;if(e){var t=p.Util.getTarget(e);t&&t.focus()}}},{key:"handleSearchValueClear",value:function(){this.setState({searchValue:""})}},{key:"handleSearchValueChange",value:function(e){this.setState({searchValue:e.target.value})}},{key:"handleKeyDown",value:function(e){"Escape"===e.key&&this.doToggle(!0)}},{key:"renderSearchValueClearLink",value:function(){var e=this.props.clearButtonClassName;return 0===this.state.searchValue.length?null:u.default.createElement(p.InputGroupAddon,{addonType:"append"},u.default.createElement("button",{className:(0,m.default)(e),onClick:this.handleSearchValueClear},g.default._t("PopoverOptionSet.CLEAR","Clear")))}},{key:"renderSearchBox",value:function(){var e=this.props,t=e.searchPlaceholder,n=e.disableSearch,r=e.searchClassName,o=e.searchInputClassName,i=this.state.searchValue;return n?null:u.default.createElement(p.InputGroup,{className:(0,m.default)(r)},u.default.createElement(p.Input,{autoFocus:!0,className:(0,m.default)(o),onChange:this.handleSearchValueChange,placeholder:t,type:"text",value:i}),this.renderSearchValueClearLink())}},{key:"renderOptionButtons",value:function(){var e=this.props,t=e.buttons,n=e.onSearch,r=e.buttonContainerClassName,o=e.emptyResultClassName,i=e.buttonClassName,a=e.ButtonComponent,l=this.state.searchValue,c=t;return 0!==l.length&&(c=n(l,c)),0===c.length?u.default.createElement("div",{className:(0,m.default)(r)},u.default.createElement("div",{className:(0,m.default)(o)},g.default._t("PopoverOptionSet.NO_RESULTS","No results found"))):u.default.createElement("div",{className:(0,m.default)(r)},c.map(function(e){return u.default.createElement(a,s({},e.buttonProps,{className:(0,m.default)(e.className,i),key:e.key,onClick:e.onClick}),e.content)}))}},{key:"render",value:function(){var e=this.props,t=e.container,n=e.className,r=e.isOpen,o=e.placement,i=e.target;return u.default.createElement(p.Popover,{className:(0,m.default)(n),container:t,hideArrow:!0,isOpen:r,onKeyDown:this.handleKeyDown,placement:o,target:i,toggle:this.handleToggle,trigger:"legacy"},this.renderSearchBox(),this.renderOptionButtons())}}]),t}(c.Component);v.propTypes={buttons:f.default.arrayOf(f.default.shape({key:f.default.string.isRequired,content:f.default.node.isRequired,onClick:f.default.func.isRequired,className:f.default.oneOfType([f.default.string,f.default.object,f.default.arrayOf(f.default.string)]),buttonProps:f.default.object})).isRequired,onSearch:f.default.func,container:f.default.oneOfType([f.default.string,f.default.func,f.default.object]),isOpen:f.default.bool.isRequired,placement:f.default.string,target:f.default.oneOfType([f.default.string,f.default.func,f.default.object]).isRequired,toggle:f.default.func.isRequired,searchPlaceholder:f.default.string,disableSearch:f.default.bool,ButtonComponent:f.default.oneOfType([f.default.func,f.default.object]),className:f.default.oneOfType([f.default.string,f.default.array,f.default.object]),searchClassName:f.default.oneOfType([f.default.string,f.default.array,f.default.object]),searchInputClassName:f.default.oneOfType([f.default.string,f.default.array,f.default.object]),clearButtonClassName:f.default.oneOfType([f.default.string,f.default.array,f.default.object]),buttonContainerClassName:f.default.oneOfType([f.default.string,f.default.array,f.default.object]),emptyResultClassName:f.default.oneOfType([f.default.string,f.default.array,f.default.object]),buttonClassName:f.default.oneOfType([f.default.string,f.default.array,f.default.object])},v.defaultProps={searchPlaceholder:g.default._t("PopoverOptionSet.SEARCH_PLACEHOLDER","Search"),onSearch:function(e,t){return t.filter(function(t){return t.content.toLowerCase().includes(e.toLowerCase())})},disableSearch:!1,ButtonComponent:p.Button,className:"popover-option-set",searchClassName:"popover-option-set__search",searchInputClassName:"popover-option-set__search-input",clearButtonClassName:"popover-option-set__search-clear btn btn-link",buttonContainerClassName:"popover-option-set__button-container",emptyResultClassName:"popover-option-set__no-results",buttonClassName:"popover-option-set__button"},t.default=v},"./client/src/components/Search/Search.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e){return e&&Object.keys(e).length>0}function u(e,t){var n=e.form.formSchemas[t.formSchemaUrl];if(!n||!n.name)return{formData:{}};var r=n.name,o=(0,S.default)((0,A.default)(e),r),i=o&&o.values||{},a=(0,U.default)(n,t.filters,t.tagHandlers||{});return{formData:i,formIsDirty:(0,E.isDirty)(r,A.default)(e),schemaName:r,tagData:a}}function d(e){return{actions:{schema:(0,w.bindActionCreators)(T,e),reduxForm:(0,w.bindActionCreators)({reset:C.reset,initialize:C.initialize,change:C.change},e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.hasFilters=t.Component=void 0;var f=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=n("i18n"),b=r(m),g=n("react"),v=r(g),y=n("react-redux"),_=n("react-dom"),j=r(_),w=n("redux"),O=n("state/schema/SchemaActions"),T=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(O),C=n("redux-form"),E=n("./node_modules/redux-form/lib/immutable.js"),x=n("./node_modules/redux-form/lib/structure/plain/getIn.js"),S=r(x),k=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Focusedzone/Focusedzone.js"),F=r(k),P=n("lib/getFormState"),A=r(P),M=n("./client/src/components/Search/SearchBox.js"),D=r(M),R=n("./client/src/components/Search/SearchForm.js"),I=r(R),N=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Search/SearchToggle.js"),L=r(N),B=n("./client/src/components/Search/utilities/mapFormSchemaToTags.js"),U=r(B),H=n("prop-types"),V=r(H),q={NONE:"NONE",VISIBLE:"VISIBLE",EXPANDED:"EXPANDED"},G={NONE:"NONE",HIDEABLE:"HIDEABLE",TOGGLABLE:"TOGGLABLE"},z=function(e){function t(e){a(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.expand=n.expand.bind(n),n.handleChange=n.handleChange.bind(n),n.getData=n.getData.bind(n),n.doSearch=n.doSearch.bind(n),n.focusInput=n.focusInput.bind(n),n.focusFirstFormField=n.focusFirstFormField.bind(n),n.hide=n.hide.bind(n),n.show=n.show.bind(n),n.toggle=n.toggle.bind(n),n.open=n.open.bind(n),n.searchTermIsDirty=n.searchTermIsDirty.bind(n),n.clearFilters=n.clearFilters.bind(n),n.clearSearchBox=n.clearSearchBox.bind(n),n.clearFormFilter=n.clearFormFilter.bind(n),n.focusFormFilter=n.focusFormFilter.bind(n),n.formatTagData=n.formatTagData.bind(n);var r=e.term||e.filters&&e.filters[""+e.filterPrefix+e.name]||"";return n.state={display:e.display,searchText:r,initialSearchText:r},n}return l(t,e),h(t,[{key:"componentDidMount",value:function(){this.setOverrides(this.props)}},{key:"componentWillUnmount",value:function(){this.setOverrides()}},{key:"setOverrides",value:function(e){if(e&&(!c(e.filters)||this.props.formSchemaUrl!==e.formSchemaUrl)){var t=e&&e.formSchemaUrl||this.props.formSchemaUrl;t&&this.props.actions.schema.setSchemaStateOverrides(t,null)}if(e&&c(e.filters)&&e.formSchemaUrl){var n=e.filters||{},r={fields:Object.keys(n).map(function(e){return{name:e,value:n[e]}})};this.props.actions.schema.setSchemaStateOverrides(e.formSchemaUrl,r)}}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props,n=t.name,r=t.filterPrefix,o=t.formData,i=this.state.searchText,a={};return Object.keys(o).forEach(function(e){var t=o[e];t&&(a[e]=t)}),!e&&i&&void 0===o[""+r+n]&&(a[""+r+n]=i.trim()),a}},{key:"handleChange",value:function(e){var t=e.target.value;this.state.searchText!==t&&this.setState({searchText:t});var n=this.props,r=n.schemaName,o=n.name,i=n.filterPrefix,a=n.actions;void 0!==n.formData[""+i+o]&&a.reduxForm.change(r,""+i+o,t)}},{key:"focusInput",value:function(){if(this.state.display!==q.NONE){var e=j.default.findDOMNode(this);if(e){var t=e.querySelector(".search-box__content-field");t!==document.activeElement&&(t.focus(),t.select&&t.select())}}}},{key:"focusFirstFormField",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"input:not([type=hidden]), textarea, select, button";if(this.state.display===q.EXPANDED){var t=j.default.findDOMNode(this);if(t){var n=t.querySelector(".search-form");if(n){var r=n.querySelector(e);r&&(r.focus(),r.select&&r.select())}}}}},{key:"clearFormData",value:function(e){""!==this.state.searchText&&this.setState({searchText:""});var t=e&&e.formSchemaUrl||this.props.formSchemaUrl;if(t){var n=e&&e.identifier||this.props.identifier;this.props.actions.schema.setSchemaStateOverrides(t,{fields:[]}),this.props.actions.reduxForm.reset(n)}}},{key:"clearFormFilter",value:function(e){var t=this.props.tagData[e],n=i({},e,void 0),r=this.props,o=r.schemaName,a=r.filters;this.props.actions.reduxForm.change(o,e,""),this.setOverrides(p({},this.props,{filters:p({},a,i({},e,void 0))})),Array.isArray(t.linkedFields)&&t.linkedFields.forEach(function(e){n[e]=void 0}),this.doSearch(n)}},{key:"focusFormFilter",value:function(e){var t=this,n=this.props.tagData[e],r=n.focusSelector||"[name="+e+"]";this.expand(),setTimeout(function(){return t.focusFirstFormField(r)},50)}},{key:"open",value:function(){this.show(),this.focusInput()}},{key:"hide",value:function(){this.clearSearchBox(),this.props.onHide?this.props.onHide():this.state.display!==q.NONE&&this.setState({display:q.NONE})}},{key:"show",value:function(){this.state.display!==q.VISIBLE&&this.setState({display:q.VISIBLE});var e=this.props,t=e.schemaName,n=e.formData,r=e.name,o=e.actions;void 0!==n[r]&&o.reduxForm.change(t,r,this.state.searchText)}},{key:"expand",value:function(){this.state.display!==q.EXPANDED&&this.setState({display:q.EXPANDED})}},{key:"toggle",value:function(){switch(this.state.display){case q.VISIBLE:this.expand(),setTimeout(this.focusFirstFormField,50);break;case q.EXPANDED:this.show()}}},{key:"searchTermIsDirty",value:function(){var e=this.state,t=e.searchText,n=e.initialSearchText;return t.trim()!==n.trim()}},{key:"doSearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props,n=t.name,r=t.filterPrefix,o={},i=this.getData();Object.entries(i).forEach(function(t){var a=f(t,2),s=a[0],l=a[1],c=s,u=l;e.hasOwnProperty(s)&&(u=e[s]),r.length>0&&s.startsWith(r)&&(c=s.substring(r.length)),(!r.length>0||s!==n||void 0===i[""+r+n])&&(o[c]=u)});var a=o[n]||"";this.state.display===q.VISIBLE&&this.state.initialSearchText===a&&this.state.searchText===a||this.setState({display:q.VISIBLE,initialSearchText:a,searchText:a}),this.props.onSearch(o)}},{key:"clearFilters",value:function(){this.clearFormData(),this.focusFirstFormField()}},{key:"clearSearchBox",value:function(){this.clearFormData(),this.focusInput()}},{key:"formatTagData",value:function(){var e=this.props,t=e.tagData,n=e.name,r=e.filterPrefix,o=Object.assign({},t),i=""+r+n;return o&&o[i]&&delete o[i],o?Object.values(o).map(function(e){return{key:e.key,label:e.label,value:e.value}}):[]}},{key:"render",value:function(){var e=this.props,t=e.formSchemaUrl,n=e.forceFilters,r=e.id,i=e.displayBehavior,a=e.identifier,s=e.formIsDirty,l=(e.tagData,e.name),c=o(e,["formSchemaUrl","forceFilters","id","displayBehavior","identifier","formIsDirty","tagData","name"]);if(this.state.display===q.NONE)return i===G.TOGGLABLE?v.default.createElement(L.default,{onToggle:this.show}):v.default.createElement("div",null);var u=r+"_ExtraFields",d=this.state.searchText,f=this.state.display===q.EXPANDED,h=this.state.display===q.VISIBLE,m=[G.HIDEABLE,G.TOGGLABLE].includes(i),b=s||this.searchTermIsDirty(),g=this.getData(),y=Object.keys(g).length>0;return v.default.createElement(F.default,{onClickOut:this.show,className:"search"},v.default.createElement(D.default,p({},c,{name:"SearchBox__"+l,onChange:this.handleChange,onSearch:this.doSearch,onToggleFilter:this.toggle,onHideFilter:this.show,onHide:this.hide,onClear:this.clearSearchBox,searchText:d,hideable:m,expanded:f,id:r+"_searchbox",showFilters:Boolean(n||t),dirty:b,clearable:y,onTagDelete:this.clearFormFilter,onTagClick:this.focusFormFilter,tagData:this.formatTagData()}),v.default.createElement(I.default,{id:u,identifier:a,visible:h,expanded:f,formSchemaUrl:t,onSearch:this.doSearch,onClear:this.clearFilters,clearable:y})))}}]),t}(g.Component);z.propTypes={onSearch:V.default.func,onHide:V.default.func,id:V.default.string.isRequired,display:V.default.oneOf(Object.values(q)),formSchemaUrl:V.default.string,filters:V.default.object,formData:V.default.object,placeholder:V.default.string,displayBehavior:V.default.oneOf(Object.values(G)),term:V.default.string,name:V.default.string,filterPrefix:V.default.string,forceFilters:V.default.bool,formIsDirty:V.default.bool,identifier:V.default.string,schemaName:V.default.string,tagHandlers:V.default.object,borders:V.default.shape({top:V.default.bool,right:V.default.bool,bottom:V.default.bool,left:V.default.bool})},z.defaultProps={placeholder:b.default._t("Admin.SEARCH","Search"),display:q.VISIBLE,displayBehavior:G.NONE,filters:{},formData:{},term:"",filterPrefix:"",forceFilters:!1,name:"searchTerm",identifier:"Admin.SearchForm"},t.Component=z,t.hasFilters=c,t.default=(0,y.connect)(u,d)(z)},"./client/src/components/Search/SearchBox.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("i18n"),u=r(c),d=n("react"),f=r(d),p=n("reactstrap"),h=n("classnames"),m=r(h),b=n("./client/src/components/Tag/TagPropType.js"),g=r(b),v=n("components/Tag/CompactTagList"),y=r(v),_=n("components/ResizeAware/ResizeAware"),j=r(_),w=n("react-dom"),O=r(w),T=n("prop-types"),C=r(T),E=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleKeyDown=n.handleKeyDown.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.renderInput=n.renderInput.bind(n),n.renderFilterButton=n.renderFilterButton.bind(n),n.renderEnterHint=n.renderEnterHint.bind(n),n.renderHideButton=n.renderHideButton.bind(n),n.componentDidUpdate=n.componentDidUpdate.bind(n),n.onResize=n.onResize.bind(n),n.setWidth=n.setWidth.bind(n),n.renderTags=n.renderTags.bind(n),n.getComponentWidth=n.getComponentWidth.bind(n),n.calculateSpaceForTags=n.calculateSpaceForTags.bind(n),n.calculateInputLeftPadding=n.calculateInputLeftPadding.bind(n),n.calculateInputRightPadding=n.calculateInputRightPadding.bind(n),n.onTagListResize=n.onTagListResize.bind(n),n.focusOnLastTag=n.focusOnLastTag.bind(n),n.focusOnInput=n.focusOnInput.bind(n),n.state={hasFocus:!1,width:window.innerWidth-180-55,tagWidth:0},n}return s(t,e),l(t,[{key:"componentDidUpdate",value:function(){var e=this.getComponentWidth();this.setWidth(e)}},{key:"onResize",value:function(e){this.setWidth(e.width)}},{key:"onTagListResize",value:function(e){var t=e.width;this.state.tagWidth!==t&&this.setState({tagWidth:t})}},{key:"setWidth",value:function(e){this.state.width!==e&&this.setState({width:e})}},{key:"getComponentWidth",value:function(){var e=O.default.findDOMNode(this);return e?e.getBoundingClientRect().width:0}},{key:"calculateInputLeftPadding",value:function(){var e=this.state.width>576?55:20;return this.state.tagWidth+e}},{key:"calculateInputRightPadding",value:function(){return this.state.width<576?121:264}},{key:"calculateSpaceForTags",value:function(){var e=this.state.width;e-=150,e=e-55-52;var t=this.props,n=t.hideable,r=t.showFilters;return n&&(e-=52),r&&(e-=52),e=Math.max(e,0)}},{key:"handleKeyDown",value:function(e){"Enter"===e.key?(e.preventDefault(),this.props.onSearch()):0===e.target.selectionStart&&("ArrowLeft"===e.key||"Backspace"===e.key&&e.target.selectionEnd-e.target.selectionStart==0)&&(e.preventDefault(),this.focusOnLastTag())}},{key:"handleFocus",value:function(){this.state.hasFocus||this.setState({hasFocus:!0}),this.props.onHideFilter&&this.props.onHideFilter()}},{key:"handleBlur",value:function(){this.state.hasFocus&&this.setState({hasFocus:!1})}},{key:"focusOnLastTag",value:function(){var e=O.default.findDOMNode(this);if(e){var t=e.querySelector(".compact-tag-list__visible .tag:last-child");t&&t.focus()}}},{key:"focusOnInput",value:function(){var e=O.default.findDOMNode(this);if(e){var t=e.querySelector("input");t&&t.focus()}}},{key:"renderInput",value:function(){var e,n=this.props,r=n.id,i=n.searchText,a=n.onChange,s=n.placeholder,l=n.name,c=n.borders,u={paddingLeft:this.calculateInputLeftPadding()+"px",paddingRight:this.calculateInputRightPadding()+"px"},d=Object.assign({},t.defaultProps.borders,c),p="search-box__content-field",h=(0,m.default)("form-control",p,(e={},o(e,p+"--top-border",d.top),o(e,p+"--right-border",d.right),o(e,p+"--bottom-border",d.bottom),o(e,p+"--left-border",d.left),e));return f.default.createElement("input",{"aria-labelledby":r+"_label",type:"search",name:l,placeholder:s,className:h,onKeyDown:this.handleKeyDown,onChange:a,onFocus:this.handleFocus,onBlur:this.handleBlur,value:i,id:r,autoFocus:!0,style:u})}},{key:"renderTags",value:function(){var e=this.props,t=e.tagData,n=e.onTagDelete,r=e.onTagClick,o=e.onToggleFilter;return f.default.createElement("div",{className:"search-box__tags"},f.default.createElement(j.default,{onResize:this.onTagListResize},f.default.createElement(y.default,{onTagDelete:n,onTagClick:r,onHolderFocus:this.focusOnInput,tags:t,onSummary:o,maxSize:this.calculateSpaceForTags(),deletable:!0})))}},{key:"renderEnterHint",value:function(){var e=this;return f.default.createElement("div",{role:"presentation",className:"search-box__enter",onClick:function(t){t.stopPropagation(),t.preventDefault(),e.props.onSearch()}},u.default._t("Admin.ENTER","Enter")," â†µ")}},{key:"renderFilterButton",value:function(){var e=this.props,t=e.expanded,n=e.onToggleFilter,r=e.formId,o=(0,m.default)("btn--icon","font-icon-caret-down-two","search-box__filter-trigger",this.state.width<576?"search-box--no-label":"",{collapsed:!t}),i=this.state.width<576?"sr-only":"";return f.default.createElement(p.Button,{"aria-expanded":t,"aria-controls":r,"aria-label":u.default._t("Admin.ADVANCED","Advanced"),onClick:n,className:o,title:u.default._t("Admin.ADVANCED","Advanced")},f.default.createElement("span",{className:i},u.default._t("Admin.SEARCH_OPTIONS","Search options")))}},{key:"renderHideButton",value:function(){var e=this.props,t=e.id,n=e.onHide;return f.default.createElement(p.Button,{onClick:n,title:u.default._t("Admin.CLOSE","Close"),"aria-label":u.default._t("Admin.CLOSE","Close"),className:"font-icon-cancel btn--no-text btn--icon-lg search-box__cancel","aria-controls":t,"aria-expanded":"true"})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.id,r=e.hideable,o=e.expanded,i=e.showFilters,a=e.dirty,s=e.clearable,l=(0,m.default)("search-box",{"search-box--hideable":r,"search-box--not-hideable":!r,"search-box--has-focus":this.state.hasFocus,"search-box--has-not-focus":!this.state.hasFocus,"search-box--has-filters":i,"search-box--has-not-filters":!i,"search-box--compact":this.state.width<576,"search-box--expanded":o}),c=(a||!s)&&this.state.hasFocus;return f.default.createElement("div",{className:l},f.default.createElement(j.default,{onResize:this.onResize},f.default.createElement("div",{className:"search-box__group"},f.default.createElement(p.Label,{for:n,id:n+"_label",hidden:!0},u.default._t("Admin.SEARCH","Search")),this.renderTags(),this.renderInput(),c&&this.renderEnterHint(),t,f.default.createElement("div",{className:"icon font-icon-search"}),i&&this.renderFilterButton(),r&&this.renderHideButton())))}}]),t}(d.Component);E.propTypes={onSearch:C.default.func,onToggleFilter:C.default.func,onHideFilter:C.default.func,onChange:C.default.func,onHide:C.default.func,onTagDelete:C.default.func,onTagClick:C.default.func,placeholder:C.default.string,expanded:C.default.bool,formId:C.default.string,id:C.default.string,searchText:C.default.string,hideable:C.default.bool,showFilters:C.default.bool,name:C.default.string,dirty:C.default.bool,clearable:C.default.bool,tagData:C.default.arrayOf(g.default)},E.defaultProps={placeholder:u.default._t("Admin.SEARCH","Search"),tagData:[],filters:{},formData:{},term:"",borders:{top:!1,right:!1,bottom:!0,left:!0}},t.Component=E,t.default=E},"./client/src/components/Search/SearchForm.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(t){"Enter"===t.key&&(t.preventDefault(),e())}}function i(e){var t=e.visible,n=e.expanded,r=e.onSearch,i=e.onClear,a=e.formSchemaUrl,s=e.id,l=e.identifier,u=e.clearable,p=o(r),h=t||n;return c.default.createElement(f.Collapse,{id:s,isOpen:n,className:"search-form"},c.default.createElement("div",{className:"search-form__wrapper",onKeyDown:p},h&&a&&c.default.createElement(d.default,{className:"no-change-track",formTag:"div",identifier:l,schemaUrl:a,onSubmit:function(){return r(),Promise.resolve()}}),c.default.createElement(f.Button,{className:"search-form__submit",onClick:function(){return r()},color:"primary",type:"button"},m),u&&c.default.createElement(f.Button,{className:"search-form__clear",onClick:function(){return i()}},b)))}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var a=n("i18n"),s=r(a),l=n("react"),c=r(l),u=n("containers/FormBuilderLoader/FormBuilderLoader"),d=r(u),f=n("reactstrap"),p=n("prop-types"),h=r(p),m=s.default._t("Admin.SEARCH","Search"),b=s.default._t("Admin.CLEAR","Clear");i.propTypes={onSearch:h.default.func,onClear:h.default.func,visible:h.default.bool,expanded:h.default.bool,id:h.default.string.isRequired,formSchemaUrl:h.default.string,identifier:h.default.string,clearable:h.default.bool},i.defaultProps={formData:{}},t.Component=i,t.default=i},"./client/src/components/Search/utilities/defaultTagHandlers.js":function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=n("./client/src/components/Search/utilities/genericDateTagHandler.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=function(e,t,n){if(!Array.isArray(t)||0===t.length)return!1;var r=n.state.fields.find(function(t){return t.name===e});return!(!r||!r.source)&&(t.map(function(e){var t=r.source.find(function(t){return t.value.toString()===e.toString()});return t&&t.title?t.title:e}).join(", ")||!1)},s={Date:(0,i.default)("ll"),Time:(0,i.default)("LT"),Datetime:(0,i.default)("lll"),Hidden:function(){return!1},SingleSelect:function(e,t,n){if(void 0===e.value)return!1;var r=a(e.key,[e.value],n);return!!r&&Object.assign({},e,{value:r})},Boolean:function(e){return!!e.value&&(e.value,r(e,["value"]))},MultiSelect:function(e,t,n){var r=a(e.key,e.value,n);return!!r&&Object.assign({},e,{value:r})},default:function(e){return!!e.value&&e}};t.default=s},"./client/src/components/Search/utilities/genericDateTagHandler.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("moment"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e){return function(t,n){var r=n.lang;if(!t.value)return!1;if(t.value&&r){o.default.locale(r);var i=(0,o.default)(t.value);if(i.isValid())return Object.assign({},t,{value:i.format(e)})}return t}};t.default=i},"./client/src/components/Search/utilities/mapFormSchemaToTags.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./client/src/components/Search/utilities/defaultTagHandlers.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e,t){var n=t.key,r=t.value;return""+e+(t.label.toLowerCase()||n)+" "+(r||"")+" "},a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.metadata.loading)return{};var r=void 0,a=function(n){var o={key:n.name,label:n.title,value:t[n.name]};return("function"==typeof r["#"+o.key]?r["#"+o.key]:"function"==typeof r[n.schemaType]?r[n.schemaType]:r.default)(o,n,e,t)},s=function(e,t){var n=t.children;if(!Array.isArray(n)||0===n.length)return!1;var r=n.map(a).filter(function(e){return!1!==e}).reduce(i,"").trim(),o=n.map(function(e){return e.name}),s="[name="+n[0].name+"]";return!!r&&Object.assign({},e,{value:r,linkedFields:o,focusSelector:s})};r=Object.assign({},o.default,{Structural:s},n);var l=e.schema.fields,c=l.map(a).filter(function(e){return!1!==e}),u={};return c.forEach(function(e){u[e.key]=e}),u};t.default=a},"./client/src/components/SingleSelectField/SingleSelectField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("components/FieldHolder/FieldHolder"),f=r(d),p=n("i18n"),h=r(p),m=n("reactstrap"),b=n("prop-types"),g=r(b),v=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=n.handleChange.bind(n),n}return a(t,e),l(t,[{key:"getReadonlyField",value:function(){var e=this,t=this.props.source&&this.props.source.find(function(t){return t.value===e.props.value});return t="string"==typeof t?t:this.props.value||"",u.default.createElement(m.Input,s({plaintext:!0},this.getInputProps(),{tag:"p"}),t)}},{key:"getSelectField",value:function(){var e=this,t=this.props.source?this.props.source.slice():[];return this.props.data.hasEmptyDefault&&!t.find(function(e){return!e.value})&&t.unshift({value:"",title:this.props.data.emptyString,disabled:!1}),u.default.createElement(m.Input,s({type:"select"},this.getInputProps()),t.map(function(t,n){var r=e.props.name+"-"+(t.value||"empty"+n),o=t.description||null;return u.default.createElement("option",{key:r,value:t.value,disabled:t.disabled,title:o},t.title)}))}},{key:"getInputProps",value:function(){var e={className:this.props.className+" "+this.props.extraClass+" no-chosen",id:this.props.id,name:this.props.name,disabled:this.props.disabled};return this.props.readOnly||Object.assign(e,{onChange:this.handleChange,value:this.props.value||""}),e}},{key:"handleChange",value:function(e){"function"==typeof this.props.onChange&&this.props.onChange(e,{id:this.props.id,value:e.target.value})}},{key:"render",value:function(){return this.props.readOnly?this.getReadonlyField():this.getSelectField()}}]),t}(c.Component);v.propTypes={id:g.default.string,name:g.default.string.isRequired,onChange:g.default.func,value:g.default.oneOfType([g.default.string,g.default.number]),readOnly:g.default.bool,disabled:g.default.bool,source:g.default.arrayOf(g.default.shape({value:g.default.oneOfType([g.default.string,g.default.number]),title:g.default.oneOfType([g.default.string,g.default.number]),description:g.default.string,disabled:g.default.bool})),data:g.default.oneOfType([g.default.array,g.default.shape({hasEmptyDefault:g.default.bool,emptyString:g.default.oneOfType([g.default.string,g.default.number])})])},v.defaultProps={source:[],extraClass:"",className:"",data:{emptyString:h.default._t("Boolean.ANY","Any")}},t.Component=v,t.default=(0,f.default)(v)},"./client/src/components/Tabs/Tab.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.title,n=e.disabled,r=e.active,o=e.tabClassName,i=e.onToggle;if(!t)return null;var l=(0,c.default)(o,{active:r});return a.default.createElement(s.NavItem,null,a.default.createElement(s.NavLink,{onClick:i,disabled:n,className:l},t))}Object.defineProperty(t,"__esModule",{value:!0});var i=n("react"),a=r(i),s=n("reactstrap"),l=n("classnames"),c=r(l),u=n("prop-types"),d=r(u);o.propTypes={title:d.default.string,disabled:d.default.bool,active:d.default.bool,tabClassName:d.default.string,onToggle:d.default.func.isRequired},o.defaultProps={disabled:!1,active:!1},t.default=o},"./client/src/components/Tabs/TabItem.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.name,n=e.className,r=e.extraClass,o=e.disabled,i=e.children,l=(0,d.default)(),c=l.activeTab,f=l.isOnActiveTab,h={activeTab:c,currentTab:t,isOnActiveTab:!1!==f&&c===t};return a.default.createElement(u.TabContext.Provider,{value:h},a.default.createElement(s.TabPane,{tabId:t,className:(0,p.default)(n,r),disabled:o},a.default.createElement(s.Fade,{in:f},i)))}Object.defineProperty(t,"__esModule",{value:!0});var i=n("react"),a=r(i),s=n("reactstrap"),l=n("prop-types"),c=r(l),u=n("./client/src/hooks/useTabContext.js"),d=r(u),f=n("classnames"),p=r(f);o.propTypes={name:c.default.string.isRequired,extraClass:c.default.string,className:c.default.string,disabled:c.default.bool},t.default=o},"./client/src/components/Tabs/TabNav.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.currentTab,n=e.children,r=e.onToggle,o=s.default.Children.map(n,function(e){var n=e.props;return s.default.createElement(f.default,i({},n,{onToggle:function(){return t!==n.name&&r(n.name)},active:t===n.name}))});return o&&o.length>1?s.default.createElement(l.Nav,{tabs:!0,role:"tablist"},o):null}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("react"),s=r(a),l=n("reactstrap"),c=n("prop-types"),u=r(c),d=n("./client/src/components/Tabs/Tab.js"),f=r(d);o.propTypes={currentTab:u.default.string,onToggle:u.default.func.isRequired},t.default=o},"./client/src/components/Tabs/Tabs.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.hideNav,n=e.children,r=e.activeTab,o=e.className,i=e.extraClass,a=e.id,s=e.activateTab,l=e.defaultActiveKey,d={className:(0,f.default)([o,i]),id:a},p=r||(0,j.default)(l,n),h=(0,O.default)(),m={activeTab:p,isOnActiveTab:h?h.isOnActiveTab:void 0};return c.default.createElement("div",d,c.default.createElement("div",{className:"wrapper"},!t&&c.default.createElement(y.default,{currentTab:p,onToggle:s},n),c.default.createElement(u.TabContent,{activeTab:p},c.default.createElement(w.TabContext.Provider,{value:m},n))))}function i(e,t){var n=T(t),r=e.tabs.fields[n]?e.tabs.fields[n]:{activeTab:null};return s({},r)}function a(e,t){var n=T(t);return{activateTab:function(t){e(g.activateTab(n,t))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n("react"),c=r(l),u=n("reactstrap"),d=n("classnames"),f=r(d),p=n("prop-types"),h=r(p),m=n("react-redux"),b=n("state/tabs/TabsActions"),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(b),v=n("./client/src/components/Tabs/TabNav.js"),y=r(v),_=n("./client/src/components/Tabs/getDefaultActiveKey.js"),j=r(_),w=n("./client/src/hooks/useTabContext.js"),O=r(w);o.propTypes={id:h.default.string.isRequired,defaultActiveKey:h.default.string,extraClass:h.default.string,hideNav:h.default.bool,activateTab:h.default.func,activeTab:h.default.string},o.defaultProps={className:"",extraClass:"",hideNav:!1},t.Component=o;var T=function(e){return e.formid+"__"+e.id};t.default=(0,m.connect)(i,a)(o)},"./client/src/components/Tabs/getDefaultActiveKey.js":function(e,t,n){"use strict";function r(e,t){var n=o.Children.toArray(t);if(!n||0===n.length)return"";var r=void 0;return"string"==typeof e&&(r=n.find(function(t){return t.props.name===e})),r||(r=n[0]),r.props.name}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n("react")},"./client/src/components/Tag/SummaryTag.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("react"),s=r(a),l=n("components/Tag/Tag"),c=r(l),u=n("i18n"),d=r(u),f=n("prop-types"),p=r(f),h=function(e){var t=e.label,n=e.count,r=o(e,["label","count"]);return s.default.createElement(c.default,i({},r,{deletable:!1,title:n+" "+t}),n," ",s.default.createElement("span",{className:"font-icon-sliders","aria-label":t}))};h.propTypes=Object.assign({},c.default.propTypes,{label:p.default.string,count:p.default.number}),h.defaultProps={label:d.default._t("Admin.SUMMARY_TAG_LABEL","filters")},t.default=h},"./client/src/components/Tag/TagPropType.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("prop-types"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=o.default.shape({key:o.default.string.required,label:o.default.string,value:o.default.string});t.default=i},"./client/src/components/TimeField/TimeField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},u=n("components/FieldHolder/FieldHolder"),d=r(u),f=n("./client/src/components/DateField/DateField.js"),p=n("moment"),h=r(p),m=n("modernizr"),b=r(m),g=n("i18n"),v=r(g),y=n("prop-types"),_=r(y),j=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"getInputProps",value:function(){var e=v.default.inject(v.default._t("Admin.FormatExample","Example: {format}"),{format:(0,h.default)().endOf("month").format("LT")}),n=this.asHTML5()?"time":"text";return s({},c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getInputProps",this).call(this),{type:n,placeholder:e})}},{key:"isMultiline",value:function(){return!1}},{key:"hasNativeSupport",value:function(){return this.props.modernizr.inputtypes.time}},{key:"convertToLocalised",value:function(e){var t="";if(e){var n=(0,h.default)(e,"HH:mm:ss");n.isValid()&&(t=n.format("LT"))}return t}},{key:"convertToIso",value:function(e){var t="";if(e){var n=(0,h.default)(e,"LT");n.isValid()&&(t=n.format("HH:mm:ss"))}return t}}]),t}(f.Component);j.propTypes={lang:_.default.string,modernizr:_.default.object,data:_.default.shape({html5:_.default.boolean})},j.defaultProps={modernizr:b.default,data:{}},t.Component=j,t.default=(0,d.default)(j)},"./client/src/components/Toasts/Toast.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.toastShape=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("react"),a=r(i),s=n("prop-types"),l=r(s),c=n("i18n"),u=r(c),d=n("reactstrap"),f=n("classnames"),p=r(f),h=n("./client/src/components/Toasts/ToastActions.js"),m=n("components/Button/Button"),b=r(m),g=t.toastShape={text:l.default.string.isRequired,dismissed:l.default.bool.isRequired,type:l.default.string.isRequired,actions:l.default.arrayOf(l.default.shape(b.default.propTypes))},v=function(e){var t=e.type,n=e.text,r=e.onDismiss,o=e.dismissed,i=e.actions,s=function(e){e.preventDefault(),r()},l=(0,p.default)("toast","toast--"+t,{"toast--dismissing":o});return a.default.createElement(d.Toast,{className:l,isOpen:!0},a.default.createElement(d.ToastBody,{className:"toast__body"},a.default.createElement(b.default,{className:"toast__close",icon:"cancel",noText:!0,onClick:s,color:"none"},u.default._t("Admin.DISMISS","Dismiss")),a.default.createElement("div",{className:"toast__content",role:"alert","aria-live":"assertive","aria-atomic":"true"},n)),i.length>0&&a.default.createElement(h.ToastActions,{actions:i,onDismiss:r,dismissed:o}))};v.propTypes=o({},g,{onDismiss:l.default.func.isRequired}),v.defaultProps={actions:[]},t.default=v},"./client/src/components/Toasts/ToastActions.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ToastActions=t.ToastAction=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("react"),a=r(i),s=n("prop-types"),l=r(s),c=n("components/Button/Button"),u=r(c),d=function(e){var t=e.label,n=e.href,r=e.onClick,i=e.dismissed,s=e.onDismiss,l=n?{href:n,tag:"a"}:{onClick:function(e){e.preventDefault(),i||(r&&r(),s())}};return a.default.createElement(u.default,o({color:"link",className:"toast__action"},l),t)},f=function(e){var t=e.actions,n=e.dismissed,r=e.onDismiss;return 0===t.length?null:a.default.createElement("div",{className:"toast__actions"},t.slice(0,2).map(function(e,t){return a.default.createElement(d,o({key:t},e,{onDismiss:r,dismissed:n}))}))};f.propTypes={dismissed:l.default.bool.isRequired,actions:l.default.arrayOf(l.default.shape({label:l.default.string.isRequired,href:l.default.string,onClick:l.default.func})),onDismiss:l.default.func.isRequired},f.defaultProps={actions:[]},t.ToastAction=d,t.ToastActions=f,t.default=f},"./client/src/components/Toasts/Toasts.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=n("react"),l=r(s),c=n("prop-types"),u=r(c),d=n("./client/src/components/Toasts/Toast.js"),f=r(d),p=function(e){var t=e.toasts,n=e.onDismiss,r=e.onPause,c=e.onResume,u=(0,s.useState)(void 0),d=a(u,2),p=d[0],h=d[1],m=function(e){return function(){p&&clearTimeout(p),h(setTimeout(e,100))}},b=m(r),g=m(c),v={onMouseEnter:b,onFocus:b,onMouseLeave:g,onBlur:g};return l.default.createElement("div",i({className:"toasts","aria-live":"polite","aria-atomic":"true"},v),l.default.createElement("div",{className:"toasts__wrapper"},t.map(function(e){var t=e.id,r=o(e,["id"]);return l.default.createElement(f.default,i({key:t,onDismiss:function(){return n(t)}},r))})))};p.propTypes={toasts:u.default.arrayOf(u.default.shape(d.toastPropType)).isRequired,onDismiss:u.default.func.isRequired,onPause:u.default.func.isRequired,onResume:u.default.func.isRequired},p.defaultProps={},t.default=p},"./client/src/components/TreeDropdownField/treeUtils.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findTreeByPath=function e(t,n){if(!t||0===Object.keys(t).length)return null;if(0===n.length)return t;var r=n.slice(0),o=r.shift(),i=t.children.find(function(e){return e.id===o});return i?e(i,r):null},t.findTreePath=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!n)return[];if(!t||0===Object.keys(t).length)return null;if(t.id===n)return[t.id];if(!t.children)return null;var o=!0,i=!1,a=void 0;try{for(var s,l=t.children[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value,u=e(c,n);if(null!==u)return t.id&&t.id!==r&&u.unshift(t.id),u}}catch(e){i=!0,a=e}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}return null}},"./client/src/components/UsedOnTable/UsedOnTable.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=n("classnames"),p=r(f),h=n("i18n"),m=r(h),b=n("components/Loading/Loading"),g=r(b),v=n("./client/src/components/UsedOnTable/provideUsedOnData.js"),y=r(v),_=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"renderHeader",value:function(){return c.default.createElement("thead",null,c.default.createElement("tr",null,c.default.createElement("th",{scope:"col",className:"used-on__col--index"},m.default._t("Admin.USED_ON_NUM","#")),c.default.createElement("th",{scope:"col",className:"used-on__col--title"},m.default._t("Admin.USED_ON","Used on"))))}},{key:"renderBody",value:function(){var e=this.props,t=e.usedOn,n=e.loading,r=e.error;if(r||!t||!t.length){var o=null,i=null;r?(o=m.default.inject(m.default._t("Admin.LOADING_ERROR","As error occured when loading the data: {message}"),{message:r}),i="error"):n?(o=c.default.createElement(g.default,null),i="loading"):(o=m.default._t("Admin.NOT_USED","This file is currently not in use."),i="empty");var a=(0,p.default)(["used-on__message","used-on__message--"+i]);return c.default.createElement("tbody",{"aria-live":"polite"},c.default.createElement("tr",null,c.default.createElement("td",{className:a,colSpan:"3"},o)))}return c.default.createElement("tbody",{"aria-live":"polite"},t.map(this.renderRow))}},{key:"renderRow",value:function(e,t){var n=e.id,r=e.type,o=[e].concat(e.ancestors).reverse(),i="#",a=!0,s=o.map(function(e,r){var o=e.title,s=e.link;o&&o.length>=25&&(o=o.substring(0,25).trim()+"..."),s&&(i=s);var l=t+"-"+n+"-"+r,u=["used-on__title-item"];return a&&(u.push("used-on__title-item--first"),a=!1),c.default.createElement("li",{className:(0,p.default)(u),key:l},o)}),l=t+"-"+n;return c.default.createElement("tr",{key:l,className:"used-on__row"},c.default.createElement("td",{className:"used-on__col--index"},c.default.createElement("a",{href:i,className:"used-on__cell-link"},t+1)),c.default.createElement("td",{className:"used-on__col--title"},c.default.createElement("a",{href:i,className:"used-on__cell-link"},c.default.createElement("ul",{className:"used-on__title-items"},s),c.default.createElement("span",{className:"used-on__type"},r))))}},{key:"render",value:function(){return c.default.createElement("table",{className:"table used-on__table"},this.renderHeader(),this.renderBody())}}]),t}(l.PureComponent);_.propTypes={loading:d.default.bool,usedOn:d.default.arrayOf(d.default.shape({id:d.default.oneOfType([d.default.string,d.default.number]),title:d.default.string,type:d.default.string,link:d.default.string,ancestors:d.default.arrayOf(d.default.shape({title:d.default.string,link:d.default.string})).isRequired})),error:d.default.string},t.Component=_,t.default=(0,y.default)(_)},"./client/src/components/UsedOnTable/provideUsedOnData.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=n("react-redux"),p=n("./client/src/state/usedOn/usedOnActions.js"),h=n("./client/src/hooks/useTabContext.js"),m=function(e){var t=function(t){function n(){return o(this,n),i(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,t),s(n,[{key:"componentDidMount",value:function(){this.haveFetchedData=!1,this.props.forceFetch&&this.fetchDataFromEndpoint()}},{key:"componentDidUpdate",value:function(e){var t=this.props.tabContext;(e.identifier!==this.props.identifier||!t||t.isOnActiveTab)&&this.fetchDataFromEndpoint()}},{key:"fetchDataFromEndpoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.data.readUsageEndpoint||{},n=t.method,r=t.url;this.haveFetchedData&&!this.props.forceFetch||e.loadUsedOn(e.identifier,n,r),this.haveFetchedData=!0}},{key:"render",value:function(){return c.default.createElement(e,this.props)}}]),n}(l.Component);t.propTypes={identifier:d.default.string,loading:d.default.bool,data:d.default.oneOfType([d.default.array,d.default.shape({recordClass:d.default.string,recordId:d.default.oneOfType([d.default.string,d.default.number]),readUsageEndpoint:d.default.shape({url:d.default.string,method:d.default.string})})]),usedOn:d.default.array,forceFetch:d.default.bool};var n=function(e,t){var n=t.data,r=n.recordClass,o=n.recordId,i=r&&o?r+"#"+o:"",a=e.usedOn;return{identifier:i,loading:a.loading.includes(i),usedOn:a.usedOn[i]||null,error:a.errors[i]||null}},r=(0,h.injectTabContext)(t),u=(0,f.connect)(n,{loadUsedOn:p.loadUsedOn})(r);return u.Component=r,u};t.default=m},"./client/src/containers/App/App.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("react"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=n("lib/Injector"),a=n("./node_modules/react-router-config/esm/react-router-config.js"),s=function(e){var t=e.route;return o.default.createElement("div",{className:"app"},(0,a.renderRoutes)(t.routes()))};t.default=(0,i.provideInjector)(s)},"./client/src/containers/Form/Form.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("react"),a=r(i),s=n("redux-form"),l=n("lib/Injector"),c=n("lib/getFormState"),u=r(c),d=n("prop-types"),f=r(d),p=function(e){var t=e.formComponent,n=o({},e);return delete n.formComponent,a.default.createElement(t,n)};p.propTypes={formComponent:f.default.func.isRequired};var h=(0,l.inject)(["Form"],function(e){return{formComponent:e}})(p);t.default=(0,s.reduxForm)({getFormState:u.default,destroyOnUnmount:!1})(h)},"./client/src/containers/ToastsContainer/ToastsContainer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("react"),i=r(o),a=n("./client/src/components/Toasts/Toasts.js"),s=r(a),l=n("react-redux"),c=n("redux"),u=n("state/toasts/ToastsActions"),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(u),f=function(e){var t=e.toasts,n=e.actions,r=n.dismiss,o=n.pause,a=n.resume;return i.default.createElement(s.default,{toasts:t,onDismiss:r,onPause:o,onResume:a})},p=function(e){return{toasts:e.toasts.toasts}},h=function(e){return{actions:(0,c.bindActionCreators)(d,e)}};t.default=(0,l.connect)(p,h)(f)},"./client/src/hooks/useTabContext.js":function(e,t,n){"use strict";function r(){return(0,l.useContext)(u)}function o(e){return function(t){var n=r();return c.default.createElement(e,s({},t,{tabContext:n}))}}function i(e){var t=r(),n=!t||t.isOnActiveTab,o=(0,l.useState)(!1),i=a(o,2),s=i[0],c=i[1];(0,l.useEffect)(function(){n&&(c(!0),e(t))},[s||n])}Object.defineProperty(t,"__esModule",{value:!0}),t.TabContext=void 0;var a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.injectTabContext=o,t.useTabFirstShow=i;var l=n("react"),c=function(e){return e&&e.__esModule?e:{default:e}}(l),u=t.TabContext=c.default.createContext(!1);t.default=r},"./client/src/i18n.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){r(this,e),this.defaultLocale="en_US",this.currentLocale=null,this.autoDetectLocale=!0,this.lang={}}return o(e,[{key:"setLocale",value:function(e){this.currentLocale=e,this.autoDetectLocale=!1}},{key:"getLocale",value:function(){return null!==this.currentLocale?this.currentLocale:this.defaultLocale}},{key:"_t",value:function(e,t,n,r){var o=t||"";if(!this.lang)return o;for(var i=this.getLocale(),a=[i,i.replace(/_[\w]+/i,""),this.defaultLocale,this.defaultLocale.replace(/_[\w]+/i,"")],s=0;s<a.length;s++){var l=a[s];if(this.lang[l]&&this.lang[l][e])return this.lang[l][e]}return o}},{key:"addDictionary",value:function(e,t){void 0===this.lang[e]&&(this.lang[e]={});for(var n in t)this.lang[e][n]=t[n];this.autoDetectLocale&&(this.currentLocale=this.detectLocale())}},{key:"getDictionary",value:function(e){return this.lang[e]}},{key:"stripStr",value:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}},{key:"stripStrML",value:function(e){for(var t=e.split("\n"),n=0;n<t.length;n+=1)t[n]=stripStr(t[n]);return stripStr(t.join(" "))}},{key:"sprintf",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0===n.length)return e;var o=new RegExp("(.?)(%s)","g"),i=0;return e.replace(o,function(e,t,r,o,a){return"%"===t?e:t+n[i++]})}},{key:"inject",value:function(e,t){var n=new RegExp("{([A-Za-z0-9_]*)}","g");return e.replace(n,function(e,n,r,o){return t[n]?t[n]:e})}},{key:"detectLocale",value:function(){var e=document.documentElement.getAttribute("lang");if(e||(e=document.body.getAttribute("lang")),!e)for(var t=document.getElementsByTagName("meta"),n=0;n<t.length;n++)t[n].attributes["http-equiv"]&&"content-language"===t[n].attributes["http-equiv"].nodeValue.toLowerCase()&&(e=t[n].attributes.content.nodeValue);if(e||(e=this.defaultLocale),2===e.length)for(var r in this.lang)if(r.substr(0,2).toLowerCase()===e.toLowerCase())return r;var o=e.match(/([^-|_]*)[-|_](.*)/);return o?o[1].toLowerCase()+"_"+o[2].toUpperCase():null}},{key:"addEvent",value:function(e,t,n,r){return e.addEventListener?(e.addEventListener(t,n,r),!0):e.attachEvent?e.attachEvent("on"+t,n):void console.log("Handler could not be attached")}}]),e}(),a=new i;window.ss=void 0!==window.ss?window.ss:{},window.ss.i18n=window.i18n=a,t.default=a},"./client/src/legacy/AddToCampaignForm.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("i18n"),i=r(o),a=n("jquery"),s=r(a),l=n("react"),c=r(l),u=n("react-dom"),d=r(u),f=n("lib/Injector"),p=(0,f.loadComponent)("FormBuilderModal");s.default.entwine("ss",function(e){e(".cms-content-actions .add-to-campaign-action,#add-to-campaign__action").entwine({onclick:function(){var t=e("#add-to-campaign__dialog-wrapper");return t.length||(t=e('<div id="add-to-campaign__dialog-wrapper" />'),e("body").append(t)),t.open(),!1}}),e(".add-to-campaign-modal .add-to-campaign-modal__nav-link").entwine({onclick:function(t){t.preventDefault();var n=e(t.target);window.location=n.attr("href")}}),e("#add-to-campaign__dialog-wrapper").entwine({onunmatch:function(){this._clearModal()},open:function(){this._renderModal(!0)},close:function(){this._renderModal(!1)},_renderModal:function(t){var n=this,r=function(){return n.close()},o=function(){return n._handleSubmitModal.apply(n,arguments)},a=e("form.cms-edit-form :input[name=ID]").val(),s=window.ss.store,l=s.getState().config.sections.find(function(e){return"SilverStripe\\CMS\\Controllers\\CMSPageEditController"===e.name}),u=l.form.AddToCampaignForm.schemaUrl+"/"+a,f=i.default._t("Admin.ADD_TO_CAMPAIGN","Add to campaign");d.default.render(c.default.createElement(p,{title:f,isOpen:t,onSubmit:o,onClosed:r,schemaUrl:u,bodyClassName:"modal__dialog",className:"add-to-campaign-modal",responseClassBad:"modal__response modal__response--error",responseClassGood:"modal__response modal__response--good",identifier:"Admin.AddToCampaign"}),this[0])},_clearModal:function(){d.default.unmountComponentAtNode(this[0])},_handleSubmitModal:function(e,t,n){return n()}})})},"./client/src/legacy/ConfirmedPasswordField.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);(0,o.default)(document).on("click",".confirmedpassword .showOnClick a",function(){var e=(0,o.default)(".showOnClickContainer",(0,o.default)(this).parent());return e.toggle("fast",function(){e.toggleClass("d-none").find('input[type="hidden"]').val(e.hasClass("d-none")?0:1)}),!1})},"./client/src/legacy/DateField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("jquery"),i=r(o),a=n("i18n"),s=r(a),l=n("moment"),c=r(l),u=n("modernizr"),d=r(u);i.default.entwine("ss",function(e){e("input[type=date]").entwine({onadd:function(){if(!d.default.inputtypes.date&&!(this.prop("disabled")||this.prop("readonly")||this.hasClass("hasDatepicker"))){var t=e("<input/>",{type:"hidden",name:this.attr("name"),value:this.val()});this.parent().append(t),this.removeAttr("name"),c.default.locale(this.attr("lang"));var n=this.val(),r="";if(n){var o=(0,c.default)(n);o.isValid()&&(r=o.format("L"))}this.val(r);var i=s.default.inject(s.default._t("Admin.FormatExample","Example: {format}"),{format:(0,c.default)().endOf("month").format("L")});this.attr("placeholder",i),this.updateValue()}},onchange:function(){this.updateValue()},updateValue:function(){var e=this.val(),t="";if(e)for(var n=["L","YYYY-MM-DD"],r=0;r<n.length;r++){var o=n[r],i=(0,c.default)(e,o);if(i.isValid()){t=i.format("YYYY-MM-DD");break}}this.parent().find("input[type=hidden]").val(t)}})})},"./client/src/legacy/DatetimeField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("jquery"),i=r(o),a=n("i18n"),s=r(a),l=n("moment"),c=r(l),u=n("modernizr"),d=r(u);n("./thirdparty/jquery-entwine/jquery.entwine.js"),i.default.entwine("ss",function(e){e("input[type=datetime-local]").entwine({onadd:function(){if(!d.default.inputtypes["datetime-local"]&&!(this.prop("disabled")||this.prop("readonly")||this.hasClass("hasDatepicker"))){var t=e("<input/>",{type:"hidden",name:this.attr("name"),value:this.val()});this.parent().append(t),this.removeAttr("name"),c.default.locale(this.attr("lang"));var n=this.val(),r="";if(n){var o=(0,c.default)(n);o.isValid()&&(r=o.format("L LT"))}this.val(r);var i=s.default.inject(s.default._t("Admin.FormatExample","Example: {format}"),{format:(0,c.default)().endOf("month").format("L LT")});this.attr("placeholder",i),this.updateValue()}},onchange:function(){this.updateValue()},updateValue:function(){var e=this.val(),t="";if(e){var n=(0,c.default)(e,["L LT",c.default.ISO_8601]);n.isValid()&&(t=n.format("YYYY-MM-DDTHH:mm:ss"))}this.parent().find("input[type=hidden]").val(t)}})})},"./client/src/legacy/GridField.js":function(e,t,n){"use strict";(function(e){function t(e){return e&&e.__esModule?e:{default:e}}var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=n("jquery"),a=t(i),s=n("i18n"),l=t(s),c=n("react"),u=t(c),d=n("react-dom"),f=t(d),p=n("./client/src/components/Search/Search.js"),h=(t(p),n("lib/schemaFieldValues"),n("lib/Injector"));n("./thirdparty/jquery-ui/jquery-ui.js"),n("./thirdparty/jquery-entwine/jquery.entwine.js"),a.default.entwine("ss",function(t){t(".grid-field").entwine({onmatch:function(){this.needsColumnFix()&&(this.fixColumns(),this.injectSearchButton(!1)),this.hasFilters()&&this.injectSearchButton(!0),!this.is(".grid-field--lazy-loadable")||0!==this.closest(".ss-tabset, .cms-tabset").length&&"force"!==this.data("gridfield-lazy-load-state")||(this.data("gridfield-lazy-load-state","ready"),this.lazyload()),this.data("gridfield-lazy-load-state","ready")},lazyload:function(){"ready"!==this.data("gridfield-lazy-load-state")?this.data("gridfield-lazy-load-state","force"):(this.removeClass("grid-field--lazy-loadable").addClass("grid-field--lazy-loaded"),this.reload())},reload:function(e,n){var r=this,o=this.closest("form"),i=this.find(":input:focus").attr("name"),a=o.find(":input:not(.grid-field__search-holder :input, .relation-search)").serializeArray(),s=this.find("tbody"),c=this.find(".grid-field__title-row th").attr("colspan");if(e||(e={}),e.data||(e.data=[]),e.data=e.data.concat(a),window.location.search)for(var u=window.location.search.replace(/^\?/,"").split("&"),d=0;d<u.length;d++){var f=u[d].split("=");2==f.length&&e.data.push({name:decodeURIComponent(f[0]),value:decodeURIComponent(f[1])})}s.find("tr").remove();var p=t("<td />").addClass("ss-gridfield-item loading").attr("colspan",c);s.append(t("<tr />").append(p)),t.ajax(t.extend({},{headers:{"X-Pjax":"CurrentField"},type:"POST",url:this.data("url"),dataType:"html",success:function(o){if(r.empty().append(t(o).children()),i&&r.find(':input[name="'+i+'"]').focus(),r.find(".grid-field__filter-header, .grid-field__search-holder").length){var a="show"===e.data[0].filter;r.needsColumnFix()&&r.fixColumns(),r.injectSearchButton(a)}n&&n.apply(this,arguments),r.trigger("reload",r),!1!==e.data[0].triggerChange&&r.trigger("change")},error:function(e){alert(l.default._t("Admin.ERRORINTRANSACTION"))},complete:function(e,t){r.find(".loading").removeClass("loading")}},e))},showDetailView:function(e){window.location.href=e},getItems:function(){return this.find(".ss-gridfield-item")},setState:function(e,t){var n=this.getState();n[e]=t,this.find(':input[name="'+this.data("name")+'[GridState]"]').val(JSON.stringify(n))},getState:function(){var e=this.find(':input[name="'+this.data("name")+'[GridState]"]').val();return e?JSON.parse(e):{}},hasFilters:function(){return!!this.getState().GridFieldFilterHeader},needsColumnFix:function(){return this.find(".grid-field__filter-header, .grid-field__search-holder").length&&!this.find(".grid-field__col-compact").length&&!this.find("th.col-Actions").length},fixColumns:function(e){this.find(".sortable-header").append('<th class="main col-Actions" />'),this.find("tbody tr").each(function(){t(this).find("td:last").attr("colspan",2)});var n=t('<th class="extra" />');t(".grid-field__filter-header th:last .action").each(function(){t(this).detach(),n.append(t(this))}),t(".grid-field__filter-header").append(n)},injectSearchButton:function(e){var t=this.find(".grid-field__filter-header").length>0,n=void 0;e?(n='<span class="non-sortable"></span>',this.addClass("show-filter").find(".grid-field__filter-header, .grid-field__search-holder").removeClass("grid-field__search-holder--hidden"),t||this.find(":button[name=showFilter]").hide()):(n='<button type="button" title="Open search and filter" name="showFilter" class="btn btn-secondary font-icon-search btn--no-text btn--icon-lg grid-field__filter-open"></button>',this.removeClass("show-filter").find(".grid-field__filter-header, .grid-field__search-holder").addClass("grid-field__search-holder--hidden")),t&&this.find(".sortable-header th:last").html(n)},keepStateInHistory:function(){var e=this,n=t(this).find(".gridfield-actionmenu__container").data("schema"),r=t(this).data("name");n&&n.length>0&&n.filter(function(t){if("link"===t.type){var n=e.buildUrlQueryString(t.url,r),o=window.location.pathname+n;window.ss.router.replace(o,void 0,void 0,!1)}})},buildUrlQueryString:function(e,t){var n={},r=!0,i=!1,a=void 0;try{for(var s,l=window.location.search.replace(/^\?/,"").split("&")[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var c=s.value,u=c.split("="),d=o(u,2),f=d[0],p=d[1];f.match(new RegExp("^gridState\\-"+t+"\\-[0-9]$"))||(n[f]=p)}}catch(e){i=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw a}}var h={},m=[window.location.origin,e].join("/"),b=new URL(m).searchParams,g=!0,v=!1,y=void 0;try{for(var _,j=b.entries()[Symbol.iterator]();!(g=(_=j.next()).done);g=!0){var w=_.value,O=o(w,2),f=O[0],p=O[1];h[f]=p}}catch(e){v=!0,y=e}finally{try{!g&&j.return&&j.return()}finally{if(v)throw y}}var T=Object.assign(n,h),C=[];for(var E in T)if(""!==E){var x=encodeURIComponent(T[E]);C.push([E,x].join("="))}return 0===C.length?"":"?"+C.join("&")}}),t(".grid-field *").entwine({getGridField:function(){return this.closest(".grid-field")}}),t(".gridfield-actionmenu__container").entwine({Timer:null,Component:null,Actions:null,onmatch:function(){this._super();var e=[];t(".action-menu--handled",this.parent()).each(function(){var n=t(this).detach();e.push(n)}),this.setActions(e);var n=this.closest(".cms-content").attr("id"),r=n?{context:n}:{},o=(0,h.loadComponent)("GridFieldActions",r);this.setComponent(o),this.refresh()},onunmatch:function(){this._super();var e=this[0];e&&f.default.unmountComponentAtNode(e);var n=this.getActions(),r=this.parent();n&&t(n).each(function(){t(this).appendTo(r)})},refresh:function(){var e=this.data("schema"),t=this.getComponent();f.default.render(u.default.createElement(t,{schema:e}),this[0])}}),t(".grid-field :button[name=showFilter]").entwine({onclick:function(e){this.closest(".grid-field").find(".grid-field__filter-header, .grid-field__search-holder").removeClass("grid-field__search-holder--hidden").find(":input:first").focus(),this.closest(".grid-field").addClass("show-filter"),this.parent().html('<span class="non-sortable"></span>'),e.preventDefault()}}),t(".grid-field .ss-gridfield-item").entwine({onclick:function(e){if(e.target.classList.contains("action-menu__toggle"))return this._super(e),!1;if(t(e.target).closest(".action").length)return this._super(e),!1;var n=this.find(".edit-link, .view-link");n.length&&this.getGridField().showDetailView(n.prop("href"))},onmouseover:function(){this.find(".edit-link, .view-link").length&&this.css("cursor","pointer")},onmouseout:function(){this.css("cursor","default")}}),t(".grid-field .action.action_import:button").entwine({onclick:function(e){e.preventDefault(),this.openmodal()},onmatch:function(){this._super(),"open"===this.data("state")&&this.openmodal()},onunmatch:function(){this._super()},openmodal:function(){function e(){o.removeClass("show"),n.removeClass("show"),setTimeout(function(){o.remove()},150)}var n=t(this.data("target")),r=t(this.data("modal"));n.length<1?(n=r,n.appendTo(document.body)):n.innerHTML=r.innerHTML;var o=t(".modal-backdrop");o.length<1&&(o=t('<div class="modal-backdrop fade"></div>'),o.appendTo(document.body)),n.find("[data-dismiss]").add(".modal-backdrop").on("click",function(){e()}),t(document).on("keydown",function(t){27===t.keyCode&&e()}),setTimeout(function(){o.addClass("show"),n.addClass("show")},0)}}),t(".grid-field .action:button").entwine({onclick:function(e){var n="show",r=!0;if(this.is(":disabled"))return void e.preventDefault();!this.hasClass("ss-gridfield-button-close")&&this.closest(".grid-field").hasClass("show-filter")||(n="hidden"),(this.hasClass("ss-gridfield-pagination-action")||this.hasClass("grid-field__sort"))&&(r=!1);var o=[{name:this.attr("name"),value:this.val(),filter:n,triggerChange:r}],i=this.data("action-state");i&&o.push({name:"ActionState",value:JSON.stringify(i)});var a=t(this).getGridField(),s=function(e,n,r){a.keepStateInHistory();var o=r.getResponseHeader("X-Message-Text"),i=r.getResponseHeader("X-Message-Type");if(o&&i){var s=t("#Form_EditForm_error");s.addClass(i),s.html(o),s.show()}};a.reload({data:o},s),e.preventDefault()},actionurl:function(){var e=this.closest(":button"),n=this.getGridField(),r=this.closest("form"),o=r.find(":input.gridstate").serialize(),i=r.find('input[name="SecurityID"]').val();o+="&"+encodeURIComponent(e.attr("name"))+"="+encodeURIComponent(e.val()),i&&(o+="&SecurityID="+encodeURIComponent(i));var a=this.data("action-state");a&&(o+="&ActionState="+encodeURIComponent(JSON.stringify(a))),window.location.search&&(o=window.location.search.replace(/^\?/,"")+"&"+o);var s=-1==n.data("url").indexOf("?")?"?":"&";return t.path.makeUrlAbsolute(n.data("url")+s+o,t("base").attr("href"))}}),t(".grid-field .add-existing-autocompleter").entwine({onbuttoncreate:function(){var e=this;this.toggleDisabled(),this.find('input[type="text"]').on("keyup",function(){e.toggleDisabled()})},onunmatch:function(){this.find('input[type="text"]').off("keyup")},toggleDisabled:function(){var e=this.find(".ss-ui-button"),t=this.find('input[type="text"]'),n=""!==t.val(),r=e.is(":disabled");(n&&r||!n&&!r)&&e.attr("disabled",!r)}}),t(".grid-field .grid-field__col-compact .action--delete, .grid-field .grid-field__col-compact .action--archive, .cms-edit-form .btn-toolbar .action--delete, .cms-edit-form .btn-toolbar .action--archive, .grid-field__col-compact .gridfield-button-unlink").entwine({onclick:function(n){var r=t(this).hasClass("action--archive")?l.default._t("Admin.ARCHIVECONFIRMMESSAGE","Are you sure you want to archive this record?"):l.default._t("Admin.DELETECONFIRMMESSAGE","Are you sure you want to delete this record?");if(!confirm(r))return n.preventDefault(),!1;this._super(n);var o=t(this).hasClass("action--archive")?ss.i18n._t("Admin.ARCHIVE_CONFIRM_MESSAGE","Archived"):ss.i18n._t("Admin.DELETE_CONFIRM_MESSAGE","Deleted");t(this).hasClass("dropdown-item")&&e.noticeAdd({text:o,type:"success",stayTime:5e3,inEffect:{left:"0",opacity:"show"}})}}),t(".grid-field .grid-print-button.action:button").entwine({UUID:null,onmatch:function(){this._super(),this.setUUID((new Date).getTime())},onunmatch:function(){this._super()},onclick:function(e){var t=this.actionurl();return window.open(t),e.preventDefault(),!1}}),t(".ss-gridfield-print-iframe").entwine({onmatch:function(){this._super(),this.hide().on("load",function(){this.focus(),(this.contentWindow||this).print()})},onunmatch:function(){this._super()}}),t(".grid-field .action.no-ajax, .grid-field .no-ajax .action:button").entwine({onclick:function(e){return window.location.href=this.actionurl(),e.preventDefault(),!1}}),t(".grid-field .action-detail").entwine({onclick:function(){return this.getGridField().showDetailView(t(this).prop("href")),!1}}),t(".grid-field[data-selectable]").entwine({getSelectedItems:function(){return this.find(".ss-gridfield-item.ui-selected")},getSelectedIDs:function(){return t.map(this.getSelectedItems(),function(e){return t(e).data("id")})}}),t(".grid-field[data-selectable] .ss-gridfield-items").entwine({onadd:function(){this._super(),this.selectable()},onremove:function(){this._super(),this.data("selectable")&&this.selectable("destroy")}}),t(".js-injector-boot .grid-field .grid-field__search-holder").entwine({Component:null,onmatch:function(){this._super(),this.prependTo(this.parent());var e=this.closest(".cms-content").attr("id"),t=e?{context:e}:{},n=(0,h.loadComponent)("Search",t);this.setComponent(n),this.refresh()},onunmatch:function(){this._super();var e=this[0];e&&f.default.unmountComponentAtNode(e)},close:function(){var e=this.data("schema"),n=[{name:e.clearAction,value:"",filter:"hidden",triggerChange:!1}];e.clearActionState&&n.push({name:"ActionState",value:e.clearActionState});var r=t(this).getGridField(),o=function(){r.keepStateInHistory()};r.reload({data:n},o)},search:function(e){var n=this.data("schema"),r=[{name:n.searchAction,value:"",filter:"show",triggerChange:!1}];n.searchActionState&&r.push({name:"ActionState",value:n.searchActionState});var i=!0,a=!1,s=void 0;try{for(var l,c=Object.entries(e)[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value,d=o(u,2),f=d[0],p=d[1];if(p){var h="filter["+n.gridfield+"]["+f+"]";r.push({name:h,value:p})}}}catch(e){a=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(a)throw s}}var m=t(this).getGridField(),b=function(){m.keepStateInHistory()};m.reload({data:r},b)},refresh:function(){var e=this,t=this.data("schema"),n=this.getComponent(),o=function(){return e.close()},i=function(t){return e.search(t)};String(t.gridfield).replace(/\-/g,"."),f.default.render(u.default.createElement(n,r({id:t.gridfield+"Search",display:"VISIBLE",displayBehavior:"HIDEABLE",filterPrefix:"Search__",onHide:o,onSearch:i},t)),this[0])}}),t(".js-injector-boot .grid-field .search-box__content-field").entwine({onkeydown:function(e){"Enter"===e.key&&e.preventDefault()}}),t(".grid-field .grid-field__filter-header :input").entwine({onmatch:function(){var e=this.closest(".extra").find(".ss-gridfield-button-filter"),t=this.closest(".extra").find(".ss-gridfield-button-reset");this.val()&&(e.addClass("filtered"),t.addClass("filtered")),this._super()},onunmatch:function(){this._super()},onkeydown:function(e){if(!this.closest(".ss-gridfield-button-reset").length){var n=this.closest(".extra").find(".ss-gridfield-button-filter"),r=this.closest(".extra").find(".ss-gridfield-button-reset");if("13"==e.keyCode){var o=this.closest(".grid-field__filter-header").find(".ss-gridfield-button-filter"),i="show";!this.hasClass("ss-gridfield-button-close")&&this.closest(".grid-field").hasClass("show-filter")||(i="hidden");var a=[{name:o.attr("name"),value:o.val(),filter:i,triggerChange:!1}];o.data("action-state")&&a.push({name:"ActionState",value:JSON.stringify(o.data("action-state"))});var s=t(this).getGridField(),l=function(){s.keepStateInHistory()};return s.reload({data:a},l),!1}n.addClass("hover-alike"),r.addClass("hover-alike")}}}),t(".grid-field .relation-search").entwine({onfocusin:function(e){this.autocomplete({source:function(e,n){var r=t(this.element);t(this.element).closest("form"),t.ajax({headers:{"X-Pjax":"Partial"},dataType:"json",type:"GET",url:t(r).data("searchUrl"),data:encodeURIComponent(r.attr("name"))+"="+encodeURIComponent(r.val()),success:n,error:function(e){alert(l.default._t("Admin.ERRORINTRANSACTION","An error occured while fetching data from the server\n Please try again later."))}})},select:function(e,n){var r=t('<input type="hidden" name="relationID" class="action_gridfield_relationfind no-change-track" />');r.val(n.item.id),t(this).closest(".grid-field").find(".action_gridfield_relationfind").replaceWith(r),t(this).closest(".grid-field").find(".action_gridfield_relationadd").removeAttr("disabled")}})}}),t(".grid-field .pagination-page-number input").entwine({onkeydown:function(e){if(13==e.keyCode){e.preventDefault();var n=parseInt(t(this).val(),10),r=t(this).getGridField();r.setState("GridFieldPaginator",{currentPage:n});var o=function(){r.keepStateInHistory()};return r.reload({},o),!1}}})})}).call(t,n("jquery"))},"./client/src/legacy/HtmlEditorField.js":function(module,exports,__webpack_require__){"use strict";(function($){function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _jquery=__webpack_require__("jquery"),_jquery2=_interopRequireDefault(_jquery);__webpack_require__("./node_modules/events-polyfill/index.js");var ss=void 0!==window.ss?window.ss:{};ss.editorWrappers={},ss.editorWrappers.tinyMCE=function(){var editorID;return{init:function(e){editorID=e,this.create()},destroy:function(){tinymce.EditorManager.execCommand("mceRemoveEditor",!1,editorID)},getInstance:function(){return tinymce.EditorManager.get(editorID)},onopen:function(){},onclose:function(){},getConfig:function(){var e="#"+editorID,t=(0,_jquery2.default)(e).data("config"),n=this;return t.selector=e,t.setup=function(e){e.on("change",function(){n.save()})},t},save:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getInstance();t.save(),e.silent||((0,_jquery2.default)(t.getElement()).trigger("change"),t.getElement().dispatchEvent(new Event("input",{bubbles:!0})))},create:function(){function e(e,t){var r=$(e).scrollTop();$(".mce-floatpanel").each(function(e,n){var o=parseFloat(n.style.top);$(n).css("top",o-(r-t)+"px")}),$(".mce-floatpanel").css("opacity","1"),n=void 0}function t(t){var i=t.target;!n||(new Date-n)/100>500?(o=$(i).scrollTop(),$(".mce-floatpanel").css("opacity","0")):window.clearTimeout(r),n=new Date,r=window.setTimeout(function(){return e(i,o)},500)}var n=void 0,r=void 0,o=void 0,i=this.getConfig();void 0!==i.baseURL&&(tinymce.EditorManager.baseURL=i.baseURL),i.skin=i.skin||"silverstripe",tinymce.init(i).then(function(e){e.length>0&&e[0].container&&$(e[0].container).closest(".panel--scrollable").on("scroll",function(e){return t(e)})})},repaint:function(){},isDirty:function(){return this.getInstance().isDirty()},getContent:function(){return this.getInstance().getContent()},getDOM:function(){return this.getInstance().getElement()},getContainer:function(){return this.getInstance().getContainer()},getSelectedNode:function(){return this.getInstance().selection.getNode()},selectNode:function(e){this.getInstance().selection.select(e)},setContent:function(e,t){this.getInstance().setContent(e,t)},insertContent:function(e,t){this.getInstance().insertContent(e,t)},replaceContent:function(e,t){this.getInstance().execCommand("mceReplaceContent",!1,e,t)},insertLink:function(e,t,n){if(n){n=n.replaceAll("<","&lt;").replaceAll(">","&gt;");var r=this.getInstance().dom.create("a",e,n);this.getInstance().selection.setNode(r)}else this.getInstance().execCommand("mceInsertLink",!1,e,t)},removeLink:function(){this.getInstance().execCommand("unlink",!1)},cleanLink:function cleanLink(href,node){var settings=this.getConfig,cb=settings.urlconverter_callback,cu=tinyMCE.settings.convert_urls;return cb&&(href=eval(cb+"(href, node, true);")),cu&&href.match(new RegExp("^"+tinyMCE.settings.document_base_url+"(.*)$"))&&(href=RegExp.$1),href.match(/^javascript:\s*mctmp/)&&(href=""),href},createBookmark:function(){return this.getInstance().selection.getBookmark()},moveToBookmark:function(e){this.getInstance().selection.moveToBookmark(e),this.getInstance().focus()},blur:function(){this.getInstance().selection.collapse()},addUndo:function(){this.getInstance().undoManager.add()}}},ss.editorWrappers.default=ss.editorWrappers.tinyMCE,_jquery2.default.entwine("ss",function(e){e("textarea.htmleditor").entwine({Editor:null,onadd:function(){var e=this.data("editor")||"default",t=ss.editorWrappers[e]();this.setEditor(t),t.init(this.attr("id")),this._super()},onmatch:function(){this.getEditor()||this.onadd(),this._super()},onremove:function(){this.getEditor().destroy(),this._super()},onunmatch:function(){this.getEditor()&&this.onremove(),this._super()},"from .cms-edit-form":{onbeforesubmitform:function(){this.getEditor().save({silent:!0}),this._super()}},openLinkDialog:function(){this.openDialog("link")},openMediaDialog:function(){this.openDialog("media")},openEmbedDialog:function(){this.openDialog("embed")},openDialog:function(t){if("media"===t&&window.InsertMediaModal){var n=e("#insert-media-react__dialog-wrapper");return n.length||(n=e('<div id="insert-media-react__dialog-wrapper" class="insert-link__dialog-wrapper" />'),e("body").append(n)),n.setElement(this),void n.open()}if("embed"===t&&window.InsertEmbedModal){var r=e("#insert-embed-react__dialog-wrapper");return r.length||(r=e('<div id="insert-embed-react__dialog-wrapper" />'),e("body").append(r)),r.setElement(this),void r.open()}throw new Error("Dialog named "+t+" is not available.")}})})}).call(exports,__webpack_require__("jquery"))},"./client/src/legacy/LeftAndMain.ActionTabSet.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".ss-tabset.ss-ui-action-tabset").entwine({IgnoreTabState:!0,onadd:function(){this._super(),this.tabs({collapsible:!0,active:!1})},onremove:function(){e(".cms-container").find("iframe").each(function(t,n){try{e(n).contents().off("click.ss-ui-action-tabset")}catch(e){console.warn("Unable to access iframe, possible https mis-match")}}),e(document).off("click.ss-ui-action-tabset"),this._super()},ontabsbeforeactivate:function(e,t){this.riseUp(e,t)},onclick:function(e,t){this.attachCloseHandler(e,t)},attachCloseHandler:function(t,n){var r,o=this,i=e(".cms-container").find("iframe");r=function(t){var n,i;n=e(t.target).closest(".ss-ui-action-tabset .ui-tabs-panel"),e(t.target).closest(o).length||n.length||(o.tabs("option","active",!1),i=e(".cms-container").find("iframe"),i.each(function(t,n){e(n).contents().off("click.ss-ui-action-tabset",r)}),e(document).off("click.ss-ui-action-tabset",r))},e(document).on("click.ss-ui-action-tabset",r),i.length>0&&i.each(function(t,n){e(n).contents().on("click.ss-ui-action-tabset",r)})},riseUp:function(t,n){var r,o,i,a,s,l,c,u,d;if(r=e(this).find(".ui-tabs-panel").outerHeight(),o=e(this).find(".ui-tabs-nav").outerHeight(),i=e(window).height()+e(document).scrollTop()-o,a=e(this).find(".ui-tabs-nav").offset().top,s=n.newPanel,l=n.newTab,a+r>=i&&a-r>0){if(this.addClass("rise-up"),null!==l.position()){if(c=-s.outerHeight(),u=s.parents(".toolbar--south")){var f=l.offset();d=f?f.top-u.offset().top:0,c-=d}e(s).css("top",c+"px")}}else this.removeClass("rise-up"),null!==l.position()&&e(s).css("bottom","100%");return!1}}),e(".cms-content-actions .ss-tabset.ss-ui-action-tabset").entwine({ontabsbeforeactivate:function(t,n){this._super(t,n),e(n.newPanel).length>0&&e(n.newPanel).css("left",n.newTab.position().left+"px")}}),e(".cms-actions-row.ss-tabset.ss-ui-action-tabset").entwine({ontabsbeforeactivate:function(t,n){this._super(t,n),e(this).closest(".ss-ui-action-tabset").removeClass("tabset-open tabset-open-last")}}),e(".cms-content-fields .ss-tabset.ss-ui-action-tabset").entwine({ontabsbeforeactivate:function(t,n){this._super(t,n),e(n.newPanel).length>0&&(e(n.newTab).hasClass("last")?(e(n.newPanel).css({left:"auto",right:"0px"}),e(n.newPanel).parent().addClass("tabset-open-last")):(e(n.newPanel).css("left",n.newTab.position().left+"px"),e(n.newTab).hasClass("first")&&(e(n.newPanel).css("left","0px"),e(n.newPanel).parent().addClass("tabset-open"))))}}),e(".cms-tree-view-sidebar .cms-actions-row.ss-tabset.ss-ui-action-tabset").entwine({"from .ui-tabs-nav li":{onhover:function(t){e(t.target).parent().find("li .active").removeClass("active"),e(t.target).find("a").addClass("active")}},ontabsbeforeactivate:function(t,n){this._super(t,n),e(n.newPanel).css({left:"auto",right:"auto"}),e(n.newPanel).length>0&&e(n.newPanel).parent().addClass("tabset-open")}})})},"./client/src/legacy/LeftAndMain.BatchActions.js":function(e,t,n){"use strict";(function(e){function t(e){return e&&e.__esModule?e:{default:e}}var r=n("jquery"),o=t(r),i=n("i18n"),a=t(i);o.default.entwine("ss.tree",function(t){t("#Form_BatchActionsForm").entwine({Actions:[],getTree:function(){return t(".cms-tree")},fromTree:{oncheck_node:function(e,t){this.serializeFromTree()},onuncheck_node:function(e,t){this.serializeFromTree()}},onmatch:function(){var e=this;e.getTree().on("load_node.jstree",function(t,n){e.refreshSelected()})},onunmatch:function(){this.getTree().off("load_node.jstree")},registerDefault:function(){this.register("publish",function(e){return!!confirm(a.default.inject(a.default._t("Admin.BATCH_PUBLISH_PROMPT","You have {num} page(s) selected.\n\nDo you really want to publish?"),{num:e.length}))&&e}),this.register("unpublish",function(e){return!!confirm(a.default.inject(a.default._t("Admin.BATCH_UNPUBLISH_PROMPT","You have {num} page(s) selected.\n\nDo you really want to unpublish"),{num:e.length}))&&e}),this.register("delete",function(e){return!!confirm(a.default.inject(a.default._t("Admin.BATCH_DELETE_PROMPT","You have {num} page(s) selected.\n\nAre you sure you want to delete these pages?\n\nThese pages and all of their children pages will be deleted and sent to the archive."),{num:e.length}))&&e}),this.register("restore",function(e){return!!confirm(a.default.inject(a.default._t("Admin.BATCH_RESTORE_PROMPT","You have {num} page(s) selected.\n\nDo you really want to restore to stage?\n\nChildren of archived pages will be restored to the root level, unless those pages are also being restored."),{num:e.length}))&&e})},onadd:function(){this.registerDefault(),this._super()},register:function(e,t){this.trigger("register",{type:e,callback:t});var n=this.getActions();n[e]=t,this.setActions(n)},unregister:function(e){this.trigger("unregister",{type:e});var t=this.getActions();t[e]&&delete t[e],this.setActions(t)},refreshSelected:function(n){var r=this,o=this.getTree(),i=this.getIDs(),a=[],s=t(".cms-content-batchactions-button"),l=this.find(":input[name=Action]").val();null==n&&(n=o);for(var c in i)t(t(o).getNodeByID(c)).addClass("selected").attr("selected","selected");if(!l||-1==l||!s.hasClass("active"))return void t(n).find("li").each(function(){t(this).setEnabled(!0)});t(n).find("li").each(function(){a.push(t(this).data("id")),t(this).addClass("treeloading").setEnabled(!1)});var u=t.path.parseUrl(l),d=u.hrefNoSearch+"/applicablepages/";d=t.path.addSearchParams(d,u.search),d=t.path.addSearchParams(d,{csvIDs:a.join(",")}),e.getJSON(d,function(o){e(n).find("li").each(function(){t(this).removeClass("treeloading");var e=t(this).data("id");0==e||t.inArray(e,o)>=0?t(this).setEnabled(!0):(t(this).removeClass("selected").setEnabled(!1),t(this).prop("selected",!1))}),r.serializeFromTree()})},serializeFromTree:function(){var e=this.getTree(),t=e.getSelectedIDs();return this.setIDs(t),!0},setIDs:function(e){this.find(":input[name=csvIDs]").val(e?e.join(","):null)},getIDs:function(){var e=this.find(":input[name=csvIDs]").val();return e?e.split(","):[]},onsubmit:function(n){var r=this,o=this.getIDs(),i=this.getTree(),s=this.getActions();if(!o||!o.length)return alert(a.default._t("Admin.SELECTONEPAGE","Please select at least one page")),n.preventDefault(),!1;var l=this.find(":input[name=Action]").val();if(!l)return n.preventDefault(),!1;var c=l.split("/").filter(function(e){return!!e}).pop();if(s[c]&&(o=s[c].apply(this,[o])),!o||!o.length)return n.preventDefault(),!1;this.setIDs(o),i.find("li").removeClass("failed");var u=this.find(":submit:first");return u.addClass("loading"),e.ajax({url:l,type:"POST",data:this.serializeArray(),complete:function(e,t){u.removeClass("loading"),i.jstree("refresh",-1),r.setIDs([]),r.find(":input[name=Action]").val("").change();var n=e.getResponseHeader("X-Status");n&&statusMessage(decodeURIComponent(n),"success"===t?"success":"error")},success:function(e,n){var r,o;if(e.modified){var a=[];for(r in e.modified)o=i.getNodeByID(r),i.jstree("set_text",o,e.modified[r].TreeTitle),a.push(o);t(a).effect("highlight")}if(e.deleted)for(r in e.deleted)o=i.getNodeByID(r),o.length&&i.jstree("delete_node",o);if(e.error)for(r in e.error)o=i.getNodeByID(r),t(o).addClass("failed")},dataType:"json"}),n.preventDefault(),!1}}),t(".cms-content-batchactions-button").entwine({onmatch:function(){this._super(),this.updateTree()},onunmatch:function(){this._super()},onclick:function(e){this.updateTree()},updateTree:function(){var e=t(".cms-tree"),n=t("#Form_BatchActionsForm");this._super(),this.data("active")?(e.addClass("multiple"),e.removeClass("draggable"),n.serializeFromTree()):(e.removeClass("multiple"),e.addClass("draggable")),t("#Form_BatchActionsForm").refreshSelected()}}),t("#Form_BatchActionsForm select[name=Action]").entwine({onchange:function(e){var n=t(e.target.form),r=(n.find(":submit"),t(e.target).val());if(r){var o=r.split("/"),i=o[o.length-1];t("#Form_BatchActionsForm").refreshSelected();var a=t("#BatchActionParameters_"+i);a.length?(a.find(":input").each(function(){var e=t(this)[0];"SELECT"===e.tagName?(e.selectedIndex=-1,t(this).trigger("chosen:updated")):"checkbox"===e.type?e.checked=e.defaultChecked:e.value=e.defaultValue}),a.siblings().hide(),a.show(),t("#BatchActionParameters").slideDown()):t("#BatchActionParameters").slideUp()}this.trigger("chosen:updated"),this._super(e)}})})}).call(t,n("jquery"))},"./client/src/legacy/LeftAndMain.Content.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".cms-content").entwine({onadd:function(){this.find(".cms-tabset").redrawTabs(),this._super()},redraw:function(){window.debug&&console.log("redraw",this.attr("class"),this.get(0)),this.add(this.find(".cms-tabset")).redrawTabs(),this.find(".cms-content-header").redraw(),this.find(".cms-content-actions").redraw()}}),e(".cms-content .cms-tree").entwine({onadd:function(){var t=this;this._super(),this.on("select_node.jstree",function(n,r){var o=r.rslt.obj,i=t.find(":input[name=ID]").val(),a=r.args[2],s=e(".cms-container");if(!a)return!1;if(e(o).hasClass("disabled"))return!1;if(e(o).data("id")!=i){var l=e(o).find("a:first").attr("href");l&&"#"!=l?(l=l.split("?")[0],t.jstree("deselect_all"),t.jstree("uncheck_all"),e.path.isExternal(e(o).find("a:first"))&&(l=l=e.path.makeUrlAbsolute(l,e("base").attr("href"))),document.location.search&&(l=e.path.addSearchParams(l,document.location.search.replace(/^\?/,""))),s.loadPanel(l)):t.removeForm()}})}}),e(".cms-content .cms-content-fields").entwine({redraw:function(){window.debug&&console.log("redraw",this.attr("class"),this.get(0))}}),e(".cms-content .cms-content-actions").entwine({redraw:function(){window.debug&&console.log("redraw",this.attr("class"),this.get(0)),this.height("auto");var e=parseInt(this.css("padding-top"),10),t=parseInt(this.css("padding-bottom"),10);this.height(this.innerHeight()-e-t)}})})},"./client/src/legacy/LeftAndMain.EditForm.js":function(e,t,n){"use strict";(function(e){function t(e){return e&&e.__esModule?e:{default:e}}var r=n("jquery"),o=t(r),i=n("i18n"),a=t(i),s=window.onbeforeunload;window.onbeforeunload=function(e){var t=(0,o.default)(".cms-edit-form");return t.trigger("beforesubmitform"),t.is(".changed")&&!t.is(".discardchanges")?a.default._t("Admin.CONFIRMUNSAVEDSHORT"):"function"==typeof s?s():void 0},o.default.entwine("ss",function(e){e(".cms-edit-form").entwine({PlaceholderHtml:"",ChangeTrackerOptions:{ignoreFieldSelector:".no-change-track, .ss-upload :input, .cms-navigator :input"},getValidationErrorShown:function(){return Boolean(this.data("_validationErrorShown"))},setValidationErrorShown:function(e){this.data("_validationErrorShown",e)},onadd:function(){this.attr("autocomplete","off"),this._setupChangeTracker();for(var e in{action:!0,method:!0,enctype:!0,name:!0}){var t=this.find(":input[name=_form_"+e+"]");t&&(this.attr(e,t.val()),t.remove())}this._super()},"from .cms-tabset":{onafterredrawtabs:function(){var t=ss.i18n._t("Admin.VALIDATION_ERRORS_IN_TAB","This tab contains validation errors."),n=ss.i18n._t("Admin.VALIDATION_ERRORS_IN_TAB_SCREEN_READER","(Has validation errors)"),r=ss.i18n._t("Admin.VALIDATION_ERRORS_ON_PAGE","There are validation errors on this page, please fix them before saving or publishing."),o=e("#Form_EditForm_error");this.find(".tab-attention, .tab-validation-error-sr").remove();var i=!1;if(this.hasClass("validationerror")&&(i=!0),""!==o.html()&&(i=!0),this.find(".alert.error").length>0&&(i=!0),!i)return void o.hide();var a=this.find(".tab-pane .alert-danger, .tab-pane .alert.error").closest(".tab-pane");if(a.length){var s=a.closest(".tab-content").closest(".ss-tabset");s.length&&(a.each(function(r){var o=a.eq(r).attr("id"),i=s.find("#tab-"+o).closest("li"),l=e('<i class="font-icon-attention-1 tab-attention" title="'+t+'" aria-hidden="true"></i>'),c=e('<span class="tab-validation-error-sr sr-only">'+n+"</span>");i.append(l),i.append(c)}),o.attr("class","alert alert-danger"),o.html(r),o.show()),this.addClass("validationerror")}}},onremove:function(){this.changetracker("destroy"),this._super()},onmatch:function(){this._super()},onunmatch:function(){this._super()},redraw:function(){if(window.debug&&console.log("redraw",this.attr("class"),this.get(0)),!this.getValidationErrorShown()&&this.hasClass("validationerror")){var e=ss.i18n._t("Admin.VALIDATIONERROR","Validation Error");l(e),this.setValidationErrorShown(!0)}this.add(this.find(".cms-tabset")).redrawTabs(),this.find(".cms-content-header").redraw()},_setupChangeTracker:function(){this.changetracker(this.getChangeTrackerOptions())},confirmUnsavedChanges:function(){if(this.trigger("beforesubmitform"),!this.is(".changed")||this.is(".discardchanges"))return!0;if(this.find(".btn-toolbar :submit.btn--loading.loading").length>0)return!0;var e=confirm(a.default._t("Admin.CONFIRMUNSAVED"));return e&&this.addClass("discardchanges"),e},onsubmit:function(e,t){if("_blank"!=this.prop("target"))return t&&this.closest(".cms-container").submitForm(this,t),!1},validate:function(){return this.trigger("validate",{isValid:!0}),!0},"from .htmleditor":{oneditorinit:function(t){var n=this,r=e(t.target).closest(".field.htmleditor");r.find("textarea.htmleditor").getEditor().getInstance().onClick.add(function(e){n.saveFieldFocus(r.attr("id"))})}},"from .cms-edit-form :input:not(:submit)":{onclick:function(t){this.saveFieldFocus(e(t.target).attr("id"))},onfocus:function(t){this.saveFieldFocus(e(t.target).attr("id"))}},"from .cms-edit-form .treedropdown *":{onfocusin:function(t){var n=e(t.target).closest(".field.treedropdown");this.saveFieldFocus(n.attr("id"))}},"from .cms-edit-form .dropdown .chosen-container a":{onfocusin:function(t){var n=e(t.target).closest(".field.dropdown");this.saveFieldFocus(n.attr("id"))}},"from .cms-container":{ontabstaterestored:function(e){this.restoreFieldFocus()}},saveFieldFocus:function(t){if(void 0!==window.sessionStorage&&null!==window.sessionStorage){var n=e(this).attr("id"),r=[];if(r.push({id:n,selected:t}),r)try{window.sessionStorage.setItem(n,JSON.stringify(r))}catch(e){if(e.code===DOMException.QUOTA_EXCEEDED_ERR&&0===window.sessionStorage.length)return;throw e}}},restoreFieldFocus:function(){if(void 0!==window.sessionStorage&&null!==window.sessionStorage){var t,n,r,o,i,a=this,s=void 0!==window.sessionStorage&&window.sessionStorage,l=s?window.sessionStorage.getItem(this.attr("id")):null,c=!!l&&JSON.parse(l),u=0!==this.find(".ss-tabset").length;if(s&&c.length>0){if(e.each(c,function(n,r){a.is("#"+r.id)&&(t=e("#"+r.selected))}),e(t).length<1)return void this.focusFirstInput();if(n=e(t).closest(".ss-tabset").find(".ui-tabs-nav .ui-tabs-active .ui-tabs-anchor").attr("id"),r="tab-"+e(t).closest(".ss-tabset .ui-tabs-panel").attr("id"),u&&r!==n)return;o=e(t).closest(".togglecomposite"),o.length>0&&o.accordion("option","active",o.find(".ui-accordion-header")),i=e(t).position().top,e(t).is(":visible")||(t="#"+e(t).closest(".field").attr("id"),i=e(t).position().top),e(t).focus(),i>e(window).height()/2&&a.find(".cms-content-fields").scrollTop(i)}else this.focusFirstInput()}},focusFirstInput:function(){this.find(':input:not(:submit)[data-skip-autofocus!="true"]').filter(":visible:first").focus()}}),e(".cms-edit-form .btn-toolbar input.action[type=submit], .cms-edit-form .btn-toolbar button.action").entwine({onclick:function(e){return this.is(":disabled")?(e.preventDefault(),!1):!1===this._super(e)||e.defaultPrevented||e.isDefaultPrevented()?void 0:(this.parents("form").trigger("submit",[this]),e.preventDefault(),!1)}}),e(".cms-edit-form .btn-toolbar input.action[type=submit].ss-ui-action-cancel, .cms-edit-form .btn-toolbar button.action.ss-ui-action-cancel").entwine({onclick:function(e){window.history.length>1?window.history.back():this.parents("form").trigger("submit",[this]),e.preventDefault()}}),e(".cms-edit-form .btn-toolbar button[name=action_doUnpublish].btn.action").entwine({onclick:function(e){var t=this.data("owners");if(t&&parseInt(t)>0){var n=[a.default.inject(a.default._t("Admin.OWNED_WARNING_1","You are unpublishing content that is being used in {count} other published section(s)."),{count:t}),a.default._t("Admin.OWNED_WARNING_2","This could cause a published page to have missing components on the live site."),a.default._t("Admin.OWNED_WARNING_3","Do you want to unpublish anyway?")];window.confirm(n.join("\n\n"))?this._super():e.preventDefault()}else this._super()}}),e(".cms-edit-form .ss-tabset").entwine({onmatch:function(){if(!this.hasClass("ss-ui-action-tabset")){var e=this.find("> ul:first");1==e.children("li").length&&e.hide().parent().addClass("ss-tabset-tabshidden")}this._super()},onunmatch:function(){this._super()}}),e('.cms-edit-form [name="CanViewType"], .cms-edit-form [name="CanEditType"], .cms-edit-form [name="CanCreateTopLevelType"]').entwine({onmatch:function(){"OnlyTheseUsers"===this.val()&&(this.is(":checked")?this.showList(!0):this.hideList(!0))},onchange:function(e){"OnlyTheseUsers"===e.target.value?this.showList():this.hideList()},showList:function(e){var t=this.closest(".field"),n=t.next().filter(".listbox, .treedropdown, .treemultiselect");t.addClass("field--merge-below"),e?n.show().css("overflow","visible"):n.slideDown(function(){n.css("overflow","visible")})},hideList:function(e){var t=this.closest(".field"),n=t.next().filter(".listbox, .treedropdown, .treemultiselect");n.css("overflow","hidden"),e?(n.hide().css("display","none"),t.removeClass("field--merge-below")):n.slideUp(function(){t.removeClass("field--merge-below")})}})});var l=function(t){e.noticeAdd({text:t,type:"error",stayTime:5e3,inEffect:{left:"0",opacity:"show"}})}}).call(t,n("jquery"))},"./client/src/legacy/LeftAndMain.FieldDescriptionToggle.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".cms-description-toggle").entwine({onadd:function(){var e=!1,t=this.prop("id").substr(0,this.prop("id").indexOf("_Holder")),n=this.find(".cms-description-trigger"),r=this.find(".description");this.hasClass("description-toggle-enabled")||(0===n.length&&(n=this.find(".middleColumn").first().after('<label class="right" for="'+t+'"><a class="cms-description-trigger" href="javascript:void(0)"><span class="btn-icon-information"></span></a></label>').next()),this.addClass("description-toggle-enabled"),n.on("click",function(){r[e?"hide":"show"](),e=!e}),r.hide())}})})},"./client/src/legacy/LeftAndMain.FieldHelp.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".cms .field.cms-description-tooltip").entwine({onmatch:function(){this._super();var e=this.find(".description");e.length&&(this.attr("title",e.text()).tooltip({content:e.html()}),e.remove())}}),e(".cms .field.cms-description-tooltip :input").entwine({onfocusin:function(e){this.closest(".field").tooltip("open")},onfocusout:function(e){this.closest(".field").tooltip("close")}})})},"./client/src/legacy/LeftAndMain.Menu.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".cms-panel.cms-menu").entwine({togglePanel:function(t,n,r){e(".cms-menu__list").children("li").each(function(){t?e(this).children("ul").each(function(){e(this).data("collapse")&&(e(this).removeData("collapse"),e(this).addClass("collapse"))}):e(this).children("ul").each(function(){e(this).hasClass("collapse"),e(this).removeClass("collapse"),e(this).data("collapse",!0)})}),this._super(t,n,r)},siteTreePresent:function(){return e("#cms-content-tools-CMSMain").length>0},getPersistedStickyState:function(){var t,n;return void 0!==e.cookie&&void 0!==(n=e.cookie("cms-menu-sticky"))&&null!==n&&(t="true"===n),t},setPersistedStickyState:function(t){void 0!==e.cookie&&e.cookie("cms-menu-sticky",t,{path:"/",expires:31})},getEvaluatedCollapsedState:function(){var t=this.getPersistedCollapsedState(),n=e(".cms-menu").getPersistedStickyState(),r=this.siteTreePresent();return void 0===t?r:t!==r&&n?t:r},onadd:function(){var t=this;setTimeout(function(){t.togglePanel(!t.getEvaluatedCollapsedState(),!1,!1)},0),e(window).on("ajaxComplete",function(e){setTimeout(function(){t.togglePanel(!t.getEvaluatedCollapsedState(),!1,!1)},0)}),this._super()}}),e(".cms-menu__list").entwine({onmatch:function(){this.find("li.current").select(),this.updateItems(),this._super()},onunmatch:function(){this._super()},updateMenuFromResponse:function(e){var t=e.getResponseHeader("X-Controller");if(t){var n=this.find("li#Menu-"+t.replace(/\\/g,"-").replace(/[^a-zA-Z0-9\-_:.]+/,""));n.hasClass("current")||n.select()}this.updateItems()},"from .cms-container":{onafterstatechange:function(e,t){this.updateMenuFromResponse(t.xhr)},onaftersubmitform:function(e,t){this.updateMenuFromResponse(t.xhr)}},"from .cms-edit-form":{onrelodeditform:function(e,t){this.updateMenuFromResponse(t.xmlhttp)}},getContainingPanel:function(){return this.closest(".cms-panel")},fromContainingPanel:{ontoggle:function(t){this.toggleClass("collapsed",e(t.target).hasClass("collapsed")),e(".cms-container").trigger("windowresize"),this.hasClass("collapsed")&&this.find("li.children.opened").removeClass("opened"),this.hasClass("collapsed")||e(".toggle-children.opened").closest("li").addClass("opened")}},updateItems:function(){var t=this.find("#Menu-CMSMain");t[t.is(".current")?"show":"hide"]();var n=e(".cms-content input[name=ID]").val();n&&this.find("li").each(function(){"function"==typeof e(this).setRecordID&&e(this).setRecordID(n)})}}),e(".cms-menu__list li").entwine({onmatch:function(){this.find("ul").length&&this.find("a:first").append('<span class="toggle-children"><span class="toggle-children-icon"></span></span>'),this._super()},onunmatch:function(){this._super()},toggle:function(){this[this.hasClass("opened")?"close":"open"]()},open:function(){var e=this.getMenuItem();e&&e.open(),this.find("li.clone")&&this.find("li.clone").remove(),this.addClass("opened").find("ul").show(),this.find(".toggle-children").addClass("opened")},close:function(){this.removeClass("opened").find("ul").hide(),this.find(".toggle-children").removeClass("opened")},select:function(){var e=this.getMenuItem();if(this.addClass("current").open(),this.siblings().removeClass("current").close(),this.siblings().find("li").removeClass("current"),e){var t=e.siblings();e.addClass("current"),t.removeClass("current").close(),t.find("li").removeClass("current").close()}this.getMenu().updateItems(),this.trigger("select")}}),e(".cms-menu__list *").entwine({getMenu:function(){return this.parents(".cms-menu__list:first")}}),e(".cms-menu__list li *").entwine({getMenuItem:function(){return this.parents("li:first")}}),e(".cms-menu__list li a").entwine({onclick:function(t){var n=e.path.isExternal(this.attr("href"));if(!(t.which>1||n)&&"_blank"!=this.attr("target")){t.preventDefault();var r=this.getMenuItem(),o=this.attr("href");n||(o=e("base").attr("href")+o);var i=r.find("li");i.length?i.first().find("a").click():document.location.href=o,r.select()}}}),e(".cms-menu__list li .toggle-children").entwine({onclick:function(e){return this.closest("li").toggle(),!1}}),e(".cms .profile-link").entwine({onclick:function(){return e(".cms-container").loadPanel(this.attr("href")),e(".cms-menu__list li").removeClass("current").close(),!1}}),e(".cms-menu .sticky-toggle__button").entwine({onadd:function(){var t=!!e(".cms-menu").getPersistedStickyState();this.toggleCSS(t),this.toggleIndicator(t),this._super()},toggleCSS:function(e){this[e?"addClass":"removeClass"]("active")},toggleIndicator:function(e){this.next(".sticky-toggle__status").text(e?"fixed":"auto")},onclick:function(){var e=this.closest(".cms-menu"),t=e.getPersistedCollapsedState(),n=e.getPersistedStickyState(),r=void 0===n?!this.hasClass("active"):!n;void 0===t?e.setPersistedCollapsedState(e.hasClass("collapsed")):void 0!==t&&!1===r&&e.clearPersistedCollapsedState(),e.setPersistedStickyState(r),this.toggleCSS(r),this.toggleIndicator(r),this._super()}}),e(".cms-help__menu").entwine({onclick:function(){var t="true"===this.attr("aria-expanded");this.attr("aria-expanded",!t),e(".cms-help__toggle").toggleClass("cms-help__toggle--show")}})})},"./client/src/legacy/LeftAndMain.MobileMenuToggle.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("jquery"),i=r(o),a=n("./client/src/components/MobileMenuToggle/MobileMenuToggleContainer.js"),s=r(a),l=n("./client/src/state/mobileMenu/MobileMenuActions.js"),c=n("react-dom"),u=r(c);i.default.entwine("ss",function(e){e(".js-react-boot").entwine({onmatch:function(){var t=e(".cms-mobile-menu-toggle-wrapper");t.length>0&&u.default.render(React.createElement(s.default,{store:window.ss.store,controls:"cms-menu"}),t[0]);var n=window.ss.store,r=e(".cms-menu"),o=e(".cms-menu-mobile-overlay");n.subscribe(function(){var e=n.getState(),t=e.mobileMenu.isOpen;r.toggleClass("cms-menu--open",t).attr("aria-expanded",t),o.attr("aria-expanded",t)})}}),e(".cms-menu-mobile-overlay").entwine({onclick:function(){window.ss.store.dispatch((0,l.closeMobileMenu)())}})})},"./client/src/legacy/LeftAndMain.Panel.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e.entwine.warningLevel=e.entwine.WARN_LEVEL_BESTPRACTISE,e(".cms-panel").entwine({WidthExpanded:null,WidthCollapsed:null,canSetCookie:function(){return void 0!==e.cookie&&void 0!==this.attr("id")},getPersistedCollapsedState:function(){var t,n;return this.canSetCookie()&&void 0!==(n=e.cookie("cms-panel-collapsed-"+this.attr("id")))&&null!==n&&(t="true"===n),t},setPersistedCollapsedState:function(t){this.canSetCookie()&&e.cookie("cms-panel-collapsed-"+this.attr("id"),t,{path:"/",expires:31})},clearPersistedCollapsedState:function(){this.canSetCookie()&&e.cookie("cms-panel-collapsed-"+this.attr("id"),"",{path:"/",expires:-1})},getInitialCollapsedState:function(){var e=this.getPersistedCollapsedState();return void 0===e&&(e=this.hasClass("collapsed")),e},onadd:function(){var t,n;if(!this.find(".cms-panel-content").length)throw new Exception('Content panel for ".cms-panel" not found');this.find(".cms-panel-toggle").length||(n=e("<div class='toolbar toolbar--south cms-panel-toggle'></div>").append('<a class="toggle-expand" href="#" data-toggle="tooltip" title="'+i18n._t("Admin.EXPANDPANEL","Expand Panel")+'"><span>&raquo;</span></a>').append('<a class="toggle-collapse" href="#" data-toggle="tooltip" title="'+i18n._t("Admin.COLLAPSEPANEL","Collapse Panel")+'"><span>&laquo;</span></a>'),this.append(n)),this.setWidthExpanded(this.find(".cms-panel-content").innerWidth()),t=this.find(".cms-panel-content-collapsed"),this.setWidthCollapsed(t.length?t.innerWidth():this.find(".toggle-expand").innerWidth()),this.togglePanel(!this.getInitialCollapsedState(),!0,!1),this._super()},togglePanel:function(e,t,n){var r,o;t||(this.trigger("beforetoggle.sspanel",e),this.trigger(e?"beforeexpand":"beforecollapse")),this.toggleClass("collapsed",!e),r=e?this.getWidthExpanded():this.getWidthCollapsed(),this.width(r),o=this.find(".cms-panel-content-collapsed"),o.length&&(this.find(".cms-panel-content")[e?"show":"hide"](),this.find(".cms-panel-content-collapsed")[e?"hide":"show"]()),!1!==n&&this.setPersistedCollapsedState(!e),this.trigger("toggle",e),this.trigger(e?"expand":"collapse")},expandPanel:function(e){(e||this.hasClass("collapsed"))&&this.togglePanel(!0)},collapsePanel:function(e){!e&&this.hasClass("collapsed")||this.togglePanel(!1)}}),e(".cms-panel.collapsed .cms-panel-toggle").entwine({onclick:function(e){this.expandPanel(),e.preventDefault()}}),e(".cms-panel *").entwine({getPanel:function(){return this.parents(".cms-panel:first")}}),e(".cms-panel .toggle-expand").entwine({onclick:function(e){e.preventDefault(),e.stopPropagation(),this.getPanel().expandPanel(),this._super(e)}}),e(".cms-panel .toggle-collapse").entwine({onclick:function(e){e.preventDefault(),e.stopPropagation(),this.getPanel().collapsePanel(),this._super(e)}}),e(".cms-content-tools.collapsed").entwine({onclick:function(e){this.expandPanel(),this._super(e)}})})},"./client/src/legacy/LeftAndMain.Preview.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("jquery"),i=r(o),a=n("i18n"),s=r(a);i.default.entwine("ss.preview",function(e){e(".cms-preview").entwine({AlreadyInitialised:!1,AllowedStates:["StageLink","LiveLink","Unversioned","ArchiveLink"],CurrentStateName:null,CurrentSizeName:"auto",IsPreviewEnabled:!1,DefaultMode:"split",Sizes:{auto:{width:"100%",height:"100%"},mobile:{width:"335px",height:"568px"},mobileLandscape:{width:"583px",height:"320px"},tablet:{width:"783px",height:"1024px"},tabletLandscape:{width:"1039px",height:"768px"},desktop:{width:"1024px",height:"800px"}},changeState:function(t,n){var r=this,o=this._getNavigatorStates();return!1!==n&&e.each(o,function(e,n){r.saveState("state",t)}),this.setCurrentStateName(t),this._loadCurrentState(),this.redraw(),this},changeMode:function(t,n){var r=e(".cms-container").entwine(".ss");if("split"==t)r.splitViewMode(),this.setIsPreviewEnabled(!0),this._loadCurrentState();else if("content"==t)r.contentViewMode(),this.setIsPreviewEnabled(!1);else{if("preview"!=t)throw"Invalid mode: "+t;r.previewMode(),this.setIsPreviewEnabled(!0),this._loadCurrentState()}return!1!==n&&this.saveState("mode",t),this.redraw(),this},changeSize:function(e){return this.getSizes(),this.setCurrentSizeName(e),this.removeClass("auto desktop tablet mobile").addClass(e),this.saveState("size",e),this.redraw(),this},redraw:function(){window.debug&&console.log("redraw",this.attr("class"),this.get(0));var t=this.getCurrentStateName();t&&this.find(".cms-preview-states").changeVisibleState(t);var n=e(".cms-container").entwine(".ss").getLayoutOptions();return n&&e(".preview-mode-selector").changeVisibleMode(n.mode),this.getCurrentSizeName()&&this.find(".preview-size-selector").changeVisibleSize(this.getCurrentSizeName()),this},saveState:function(e,t){this._supportsLocalStorage()&&window.localStorage.setItem("cms-preview-state-"+e,t)},loadState:function(e){if(this._supportsLocalStorage())return window.localStorage.getItem("cms-preview-state-"+e)},disablePreview:function(){return this.setPendingURL(null),this._loadUrl("about:blank"),this._block(),this.changeMode("content",!1),this.setIsPreviewEnabled(!1),this},enablePreview:function(){return this.getIsPreviewEnabled()||(this.setIsPreviewEnabled(!0),this.changeMode(this.getDefaultMode(),!1)),this},onadd:function(){var t=this,n=this.find("iframe");n.addClass("center"),n.on("load",function(){t._adjustIframeForPreview(),t._loadCurrentPage(),e(this).removeClass("loading")}),this._unblock(),this.disablePreview(),this._super()},_supportsLocalStorage:function(){var e,t,n=new Date;try{return(e=window.localStorage).setItem(n,n),t=e.getItem(n)==n,e.removeItem(n),t&&e}catch(e){console.warn("localStorge is not available due to current browser / system settings.")}},onforcecontent:function(){this.changeMode("content",!1)},onenable:function(){var t=e(".preview-mode-selector");t.removeClass("split-disabled"),t.find(".disabled-tooltip").hide()},ondisable:function(){var t=e(".preview-mode-selector");t.addClass("split-disabled"),t.find(".disabled-tooltip").show()},_block:function(){return this.find(".preview-note").show(),this},_unblock:function(){return this.find(".preview-note").hide(),this},_initialiseFromContent:function(){var t,n;if(e(".cms-previewable").length){t=this.loadState("mode"),n=this.loadState("size");var r=!0;this._moveNavigator(),t&&"content"==t||(this.enablePreview(),this._loadCurrentState()),this.redraw();var o=this.find("iframe").attr("src");this.getPendingURL()||o&&"about:blank"!==o||(t="content",r=!1),t&&this.changeMode(t,r),n&&this.changeSize(n)}else this.disablePreview();return this.setAlreadyInitialised(!0),this},"from .cms-container":{onafterstatechange:function(e,t){t.xhr.getResponseHeader("X-ControllerURL")||this._initialiseFromContent()}},PendingURL:null,oncolumnvisibilitychanged:function(){var e=this.getPendingURL();e&&!this.is(".column-hidden")&&(this.setPendingURL(null),this._loadUrl(e),this._unblock())},"from .cms-container .cms-edit-form":{onaftersubmitform:function(){this._initialiseFromContent()}},_loadUrl:function(e){return this.find("iframe").addClass("loading").attr("src",e),this},_getNavigatorStates:function(){return e.map(this.getAllowedStates(),function(t){var n=e(".cms-preview-states .state-name[data-name="+t+"]");return n.length?{name:t,url:n.attr("href"),active:n.hasClass("active")}:null})},_loadCurrentState:function(){if(!this.getIsPreviewEnabled())return this;var t=this._getNavigatorStates(),n=this.getCurrentStateName(),r=null;t&&(r=e.grep(t,function(e,t){return n===e.name||!n&&e.active}));var o=null;if(r[0]?o=r[0].url:t.length?(this.setCurrentStateName(t[0].name),o=t[0].url):this.setCurrentStateName(null),o){var i=o.split("#"),a=i.shift().split(/[?&]/),s=a.shift();a.push("CMSPreview=1"),i=i.length?"#"+i.join("#"):"",o=s+"?"+a.join("&")+i}return this.is(".column-hidden")?(this.setPendingURL(o),this._loadUrl("about:blank"),this._block()):(this.setPendingURL(null),o?(this._loadUrl(o),this._unblock()):(this._loadUrl("about:blank"),this._block())),this},_moveNavigator:function(){var t=e(".cms-preview .cms-preview-controls");e(".cms-edit-form .cms-navigator").length&&t.length?t.html(e(".cms-edit-form .cms-navigator").detach()):this._block()},_loadCurrentPage:function(){if(this.getIsPreviewEnabled()){var t;e(".cms-container");try{t=this.find("iframe")[0].contentDocument}catch(e){console.warn("Unable to access iframe, possible https mis-match")}if(t){var n=e(t).find("meta[name=x-page-id]").attr("content"),r=e(t).find("meta[name=x-cms-edit-link]").attr("content"),o=e(".cms-content");n&&o.find(":input[name=ID]").val()!=n&&e(".cms-container").entwine(".ss").loadPanel(r)}}},_adjustIframeForPreview:function(){var e,t=this.find("iframe")[0];if(t){try{e=t.contentDocument}catch(e){console.warn("Unable to access iframe, possible https mis-match")}if(e){for(var n=e.getElementsByTagName("A"),r=0;r<n.length;r++){var o=n[r].getAttribute("href");o&&o.match(/^http:\/\//)&&n[r].setAttribute("target","_blank")}var i=e.getElementById("SilverStripeNavigator");i&&(i.style.display="none");var a=e.getElementById("SilverStripeNavigatorMessage");a&&(a.style.display="none"),this.trigger("afterIframeAdjustedForPreview",[e])}}}}),e(".cms-edit-form").entwine({onadd:function(){this._super(),e(".cms-preview").setAlreadyInitialised(!1),e(".cms-preview")._initialiseFromContent()}}),e(".cms-preview-states").entwine({changeVisibleState:function(e){this.find('[data-name="'+e+'"]').addClass("active").siblings().removeClass("active")}}),e(".cms-preview-states .state-name").entwine({onclick:function(t){if(1==t.which){var n=e(this).attr("data-name");this.addClass("active").siblings().removeClass("active"),e(".cms-preview").changeState(n),t.preventDefault()}}}),e(".preview-mode-selector").entwine({changeVisibleMode:function(e){this.find("select").val(e).trigger("chosen:updated")._addIcon()}}),e(".preview-mode-selector select").entwine({onchange:function(t){this._super(t),t.preventDefault();var n=e(this).val();e(".cms-preview").changeMode(n)}}),e(".cms-container--content-mode").entwine({onmatch:function(){e(".cms-preview .result-selected").hasClass("font-icon-columns")&&statusMessage(s.default._t("Admin.DISABLESPLITVIEW","Screen too small to show site preview in split mode"),"error"),this._super()}}),e(".preview-size-selector").entwine({changeVisibleSize:function(e){this.find("select").val(e).trigger("chosen:updated")._addIcon()}}),e(".preview-size-selector select").entwine({onchange:function(t){t.preventDefault();var n=e(this).val();e(".cms-preview").changeSize(n)}}),e(".preview-selector select.preview-dropdown").entwine({"onchosen:ready":function(){this._super(),this._addIcon()},_addIcon:function(){var e=this.find(":selected"),t=e.attr("data-icon"),n=this.parent().find(".chosen-container a.chosen-single"),r=n.attr("data-icon");return void 0!==r&&n.removeClass(r),n.addClass(t),n.attr("data-icon",t),this}}),e(".preview-mode-selector .chosen-drop li:last-child").entwine({onmatch:function(){e(".preview-mode-selector").hasClass("split-disabled")?this.parent().append('<div class="disabled-tooltip"></div>'):this.parent().append('<div class="disabled-tooltip" style="display: none;"></div>')}}),e(".preview-device-outer").entwine({onclick:function(){this.parent(".preview__device").toggleClass("rotate")}})})},"./client/src/legacy/LeftAndMain.Tree.js":function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}return r("next")})}}var o=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(o).default.entwine("ss.tree",function(e){e(".cms-tree").entwine({Hints:null,IsUpdatingTree:!1,CanMoveCheckCompleted:!1,IsLoaded:!1,onadd:function(){if(this._super(),!e.isNumeric(this.data("jstree_instance_id"))){var t=this.attr("data-hints");t&&this.setHints(e.parseJSON(t));var n=function t(n,o){var i=o.rslt.o,a=o.rslt.np,s=e(a).data("id")||0,l=e(i).data("id"),c=e.map(e(i).siblings().addBack(),function(t){return e(t).data("id")});if(!r.getIsUpdatingTree()){if(!r.getCanMoveCheckCompleted())return void r.canMove(o).then(function(i){i?(r.setCanMoveCheckCompleted(!0),t(n,o)):e.jstree.rollback(o.rlbk)});r.setCanMoveCheckCompleted(!1),e.ajax({url:e.path.addSearchParams(r.data("urlSavetreenode"),r.data("extraParams")),type:"POST",data:{ID:l,ParentID:s,SiblingIDs:c},success:function(){e(".cms-edit-form :input[name=ID]").val()==l&&e(".cms-edit-form :input[name=ParentID]").val(s),r.updateNodesFromServer([l])},statusCode:{403:function(){e.jstree.rollback(o.rlbk)}}})}},r=this;this.jstree(this.getTreeConfig()).on("loaded.jstree",function(t,n){r.setIsLoaded(!0),n.inst._set_settings({html_data:{ajax:{url:r.data("urlTree"),data:function(t){var n=r.data("searchparams")||[];return n=e.grep(n,function(e,t){return"ID"!=e.name&&"value"!=e.name}),n.push({name:"ID",value:e(t).data("id")?e(t).data("id"):0}),n.push({name:"ajax",value:1}),n}}}}),r.updateFromEditForm(),r.css("visibility","visible"),n.inst.hide_checkboxes()}).on("before.jstree",function(t,n){if("start_drag"==n.func&&(!r.hasClass("draggable")||r.hasClass("multiselect")))return t.stopImmediatePropagation(),!1;if(e.inArray(n.func,["check_node","uncheck_node"])){var o=e(n.args[0]).parents("li:first"),i=o.find("li:not(.disabled)");if(o.hasClass("disabled")&&0==i)return t.stopImmediatePropagation(),!1}}).on("move_node.jstree",n).on("select_node.jstree check_node.jstree uncheck_node.jstree",function(t,n){t.namespace="",e(document).triggerHandler(t,n)})}},onremove:function(){this.jstree("destroy"),this._super()},"from .cms-container":{onafterstatechange:function(e){this.updateFromEditForm()}},"from .cms-container form":{onaftersubmitform:function(t){var n=this,r=e(".cms-edit-form :input[name=ID]").val(),o=this.find("[data-id="+r+"]"),i=[+r];o.find("li").each(function(){i.push(e(this).data("id"))});for(var a=[];i.length;){var s=i.slice(0,50);a.push(s),i=i.slice(50)}a.map(function(e){return n.updateNodesFromServer(e,!1)}).reduce(function(e,t){return e.then(t)},Promise.resolve())}},canMove:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve(!0));case 1:case"end":return e.stop()}},e,this)}));return e}(),getTreeConfig:function(){var t=this;return{core:{initially_open:["record-0"],animation:0,html_titles:!0},html_data:{},ui:{select_limit:1,initially_select:[this.find(".current").attr("id")]},crrm:{move:{check_move:function(n){var r=e(n.o),o=e(n.np),i=n.ot.get_container()[0]==n.np[0],a=r.getClassname(),s=o.getClassname(),l=t.getHints(),c=[],u=s||"Root",d=l&&void 0!==l[u]?l[u]:null;return d&&r.attr("class").match(/VirtualPage-([^\s]*)/)&&(a=RegExp.$1),d&&(c=void 0!==d.disallowedChildren?d.disallowedChildren:[]),!(0===r.data("id")||r.hasClass("status-archived")||i&&"inside"!=n.p||o.hasClass("nochildren")||c.length&&-1!=e.inArray(a,c))}}},dnd:{drop_target:!1,drag_target:!1},checkbox:{two_state:!0},themes:{theme:"apple",url:e("body").data("frameworkpath")+"/admin/thirdparty/jstree/themes/apple/style.css"},plugins:["html_data","ui","dnd","crrm","themes","checkbox"]}},search:function(e,t){e?this.data("searchparams",e):this.removeData("searchparams"),this.jstree("refresh",-1,t)},getNodeByID:function(e){return this.find("*[data-id="+e+"]")},createNode:function(t,n,r){var o=this,i=void 0!==n.ParentID&&o.getNodeByID(n.ParentID),a=e(t),s={data:""};a.hasClass("jstree-open")?s.state="open":a.hasClass("jstree-closed")&&(s.state="closed"),this.jstree("create_node",i.length?i:-1,"last",s,function(e){for(var t=e.attr("class"),n=0;n<a[0].attributes.length;n++){var o=a[0].attributes[n];e.attr(o.name,o.value)}e.addClass(t).html(a.html()),r&&r(e)})},updateNode:function(t,n,r){n=n.replace(/<!--[\s\S]*?-->/g,"");var o=e(n),i=!!r.NextID&&this.getNodeByID(r.NextID),a=!!r.PrevID&&this.getNodeByID(r.PrevID),s=!!r.ParentID&&this.getNodeByID(r.ParentID),l=this.jstree("is_open",s);e.each(["id","style","class","data-pagetype"],function(e,n){t.attr(n,o.attr(n))});var c=t.children("ul").detach();t.html(o.html()).append(c),i&&i.length?this.jstree("move_node",t,i,"before"):a&&a.length?this.jstree("move_node",t,a,"after"):this.jstree("move_node",t,s.length?s:-1),l?this.jstree("open_node",s):this.jstree("close_node",s)},updateFromEditForm:function(){var t,n=e(".cms-edit-form :input[name=ID]").val();n?(t=this.getNodeByID(n),t.length?(this.jstree("deselect_all"),this.jstree("select_node",t)):this.updateNodesFromServer([n])):this.jstree("deselect_all")},updateNodesFromServer:function(t){var n=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.getIsLoaded()&&(!r||!this.getIsUpdatingTree())){var o=this;this.setIsUpdatingTree(!0),o.jstree("save_selected"),o.jstree("open_node",this.getNodeByID(0)),o.jstree("save_opened"),o.jstree("save_selected");var i=o.jstree("get_selected");return new Promise(function(r){e.ajax({url:e.path.addSearchParams(n.data("urlUpdatetreenodes"),"ids="+t.join(",")),dataType:"json",success:function(n,a){r(n),e.each(n,function(e,n){var r=o.getNodeByID(e);if(!n)return void o.jstree("delete_node",r);r.length?o.updateNode(r,n.html,n):n.ParentID&&!o.find("li[data-id="+n.ParentID+"]").length?o.jstree("load_node",-1):o.createNode(n.html,n,function(e){i.length||1!==t.length||(i=e)})}),i.length&&(o.jstree("deselect_all"),o.jstree("reopen"),o.jstree("select_node",i))},complete:function(){o.setIsUpdatingTree(!1)}})})}}}),e(".cms-tree.multiple").entwine({onmatch:function(){this._super(),this.jstree("show_checkboxes")},onunmatch:function(){this._super(),this.jstree("uncheck_all"),this.jstree("hide_checkboxes")},getSelectedIDs:function(){return e(this).jstree("get_checked").not(".disabled").map(function(){return e(this).data("id")}).get()}}),e(".cms-tree li").entwine({setEnabled:function(e){this.toggleClass("disabled",!e)},getClassname:function(){var e=this.attr("class").match(/class-([^\s]*)/i);return e?e[1]:""},getID:function(){return this.data("id")}})})},"./client/src/legacy/LeftAndMain.TreeDropdownField.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".TreeDropdownField").entwine({"from .cms-container form":{onaftersubmitform:function(e){this.find(".tree-holder").empty(),this._super()}}})})},"./client/src/legacy/LeftAndMain.js":function(module,exports,__webpack_require__){"use strict";(function(jQuery){function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_slicedToArray=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_jquery=__webpack_require__("jquery"),_jquery2=_interopRequireDefault(_jquery),_react=__webpack_require__("react"),_react2=_interopRequireDefault(_react),_reactDom=__webpack_require__("react-dom"),_reactDom2=_interopRequireDefault(_reactDom),_IframeDialog=__webpack_require__("./client/src/components/IframeDialog/IframeDialog.js"),_IframeDialog2=_interopRequireDefault(_IframeDialog),_Search=__webpack_require__("components/Search/Search"),_Search2=_interopRequireDefault(_Search),_Loading=__webpack_require__("components/Loading/Loading"),_Loading2=_interopRequireDefault(_Loading),_schemaFieldValues=__webpack_require__("lib/schemaFieldValues"),_Injector=__webpack_require__("lib/Injector");__webpack_require__("./client/src/legacy/ssui.core.js"),_jquery2.default.noConflict(),window.ss=window.ss||{},window.ss.debounce=function(e,t,n){var r,o,i,a=function(){r=null,n||e.apply(o,i)};return function(){var s=n&&!r;o=this,i=arguments,clearTimeout(r),r=setTimeout(a,t),s&&e.apply(o,i)}},window.ss.tabStateUrl=function(){return window.ss.formatTabStateUrl(window.location.href)},window.ss.formatTabStateUrl=function(e){return e.replace(/\?.*/,"").replace(/#.*/,"").replace((0,_jquery2.default)("base").attr("href"),"")},(0,_jquery2.default)(window).on("resize.leftandmain",function(e){(0,_jquery2.default)(".cms-container").trigger("windowresize")}),_jquery2.default.entwine.warningLevel=_jquery2.default.entwine.WARN_LEVEL_BESTPRACTISE,_jquery2.default.entwine("ss",function($){$(window).on("message",function(e){var t,n=e.originalEvent,r=null;try{r="object"===_typeof(n.data)?n.data:JSON.parse(n.data)}catch(e){}if(r&&$.path.parseUrl(window.location.href).domain===$.path.parseUrl(n.origin).domain)switch(t=$(void 0===r.target?window:r.target),r.type){case"event":t.trigger(r.event,r.data);break;case"callback":t[r.callback].call(t,r.data)}});var positionLoadingSpinner=function(){var e=$(".ss-loading-screen .loading-animation"),t=($(window).height()-e.height())/2;e.css("top",t+120),e.show()},applyChosen=function e(t){t.is(":visible")?t.addClass("has-chosen").chosen({allow_single_deselect:!0,disable_search_threshold:20,display_disabled_options:!0,width:"100%"}):setTimeout(function(){t.show(),e(t)},500)},isSameUrl=function(e,t){var n=$("base").attr("href");e=$.path.isAbsoluteUrl(e)?e:$.path.makeUrlAbsolute(e,n),t=$.path.isAbsoluteUrl(t)?t:$.path.makeUrlAbsolute(t,n);var r=$.path.parseUrl(e),o=$.path.parseUrl(t);return r.pathname.replace(/\/*$/,"")==o.pathname.replace(/\/*$/,"")&&r.search==o.search},ajaxCompleteEvent=window.ss.debounce(function(){$(window).trigger("ajaxComplete")},1e3,!0);$(window).on("resize",positionLoadingSpinner).trigger("resize"),$(document).ajaxComplete(function(e,t,n){var r=document.URL,o=t.getResponseHeader("X-ControllerURL"),i=n.url,a=null!==t.getResponseHeader("X-Status")?t.getResponseHeader("X-Status"):t.statusText,s=t.status<200||t.status>399?"error":"success",l=["OK","success","load","HTTP/2.0 200"];if(null===o||isSameUrl(r,o)&&isSameUrl(i,o)||window.ss.router.show(o,{id:(new Date).getTime()+String(Math.random()).replace(/\D/g,""),pjax:t.getResponseHeader("X-Pjax")?t.getResponseHeader("X-Pjax"):n.headers["X-Pjax"]}),t.getResponseHeader("X-Reauthenticate"))return void $(".cms-container").showLoginDialog();0!==t.status&&a&&-1===$.inArray(a,l)&&statusMessage(decodeURIComponent(a),s),ajaxCompleteEvent(this)}),$(".cms-container").entwine({StateChangeXHR:null,FragmentXHR:{},StateChangeCount:0,LayoutOptions:{minContentWidth:940,minPreviewWidth:400,mode:"content"},onadd:function(){this.redraw(),$(".ss-loading-screen").hide(),$("body").removeClass("loading"),$(window).off("resize",positionLoadingSpinner),this.restoreTabState(),this._super()},onwindowresize:function(){this.redraw()},"from .cms-panel":{ontoggle:function(){this.redraw()}},"from .cms-container":{onaftersubmitform:function(){this.redraw()}},updateLayoutOptions:function(e){var t=this.getLayoutOptions(),n=!1;for(var r in e)t[r]!==e[r]&&(t[r]=e[r],n=!0);n&&this.redraw()},clearViewMode:function(){this.removeClass("cms-container--split-mode"),this.removeClass("cms-container--preview-mode"),this.removeClass("cms-container--content-mode")},splitViewMode:function(){this.updateLayoutOptions({mode:"split"})},contentViewMode:function(){this.updateLayoutOptions({mode:"content"})},previewMode:function(){this.updateLayoutOptions({mode:"preview"})},RedrawSuppression:!1,redraw:function(){this.getRedrawSuppression()||(window.debug&&console.log("redraw",this.attr("class"),this.get(0)),this.setProperMode()||(this.find(".cms-panel-layout").redraw(),this.find(".cms-content-fields[data-layout-type]").redraw(),this.find(".cms-edit-form[data-layout-type]").redraw(),this.find(".cms-preview").redraw(),this.find(".cms-content").redraw()))},setProperMode:function(){var e=this.getLayoutOptions(),t=e.mode;this.clearViewMode();var n=this.find(".cms-content"),r=this.find(".cms-preview");if(n.css({"min-width":0}),r.css({"min-width":0}),n.width()+r.width()>=e.minContentWidth+e.minPreviewWidth)n.css({"min-width":e.minContentWidth}),r.css({"min-width":e.minPreviewWidth}),r.trigger("enable");else if(r.trigger("disable"),"split"==t)return r.trigger("forcecontent"),!0;return this.addClass("cms-container--"+t+"-mode"),!1},checkCanNavigate:function(e){var t=this._findFragments(e||["Content"]),n=t.find(":data(changetracker)").add(t.filter(":data(changetracker)")),r=!0;return!n.length||(n.each(function(){$(this).confirmUnsavedChanges()||(r=!1)}),r)},loadPanel:function(e){var t=(arguments.length>1&&void 0!==arguments[1]&&arguments[1],arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),n=arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:document.URL;this.checkCanNavigate(t.pjax?t.pjax.split(","):["Content"])&&(this.clearTabState(window.ss.tabStateUrl()),this.saveTabState(window.ss.formatTabStateUrl(e),!0),t.__forceReferer=r,n&&(t.__forceReload=1+Math.random()),window.ss.router.show(e,t))},reloadCurrentPanel:function(){this.loadPanel(document.URL,null,null,!0)},submitForm:function(e,t,n,r){var o=this;t||(t=this.find(".btn-toolbar :submit[name=action_save]")),t||(t=this.find(".btn-toolbar :submit:first")),e.trigger("beforesubmitform"),this.trigger("submitform",{form:e,button:t}),$(t).addClass("btn--loading loading"),$(t).prop("disabled",!0),$(t).is("button")&&($(t).data("original-text",$(t).text()),$(t).append($('<div class="btn__loading-icon"><span class="btn__circle btn__circle--1"></span><span class="btn__circle btn__circle--2"></span><span class="btn__circle btn__circle--3"></span></div>')),$(t).css($(t).outerWidth()+"px"));var i=e.validate(),a=function(){$(t).removeClass("btn--loading loading"),$(t).prop("disabled",!1),$(t).find(".btn__loading-icon").remove(),$(t).css("width","auto"),$(t).text($(t).data("original-text"))};void 0===i||i||(statusMessage("Validation failed.","bad"),a());var s=e.serializeArray();return s.push({name:$(t).attr("name"),value:"1"}),s.push({name:"BackURL",value:document.URL.replace(/\/$/,"")}),this.saveTabState(window.ss.tabStateUrl(),!1),jQuery.ajax(jQuery.extend({headers:{"X-Pjax":"CurrentForm,Breadcrumbs,ValidationResult"},url:e.attr("action"),data:s,type:"POST",complete:function(){a()},success:function(t,r,i){a(),e.removeClass("changed"),n&&n(t,r,i);var l=o.handleAjaxResponse(t,r,i);l&&l.filter("form").trigger("aftersubmitform",{status:r,xhr:i,formData:s})}},r)),!1},LastState:null,PauseState:!1,handleStateChange:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.history.state;if(!this.getPauseState()){this.getStateChangeXHR()&&this.getStateChangeXHR().abort();var r=this,o=n.pjax||"Content",i={},a=o.split(","),s=this._findFragments(a);if(this.setStateChangeCount(this.getStateChangeCount()+1),!this.checkCanNavigate())return void this.reverseStateChange();if(s.length<a.length&&(o="Content",a=["Content"],s=this._findFragments(a)),this.trigger("beforestatechange",{state:n,element:s}),i["X-Pjax"]=o,void 0!==n.__forceReferer){var l=n.__forceReferer;try{l=decodeURI(l)}catch(e){}finally{i["X-Backurl"]=encodeURI(l)}}s.addClass("loading");var c=$.ajax({headers:i,url:n.path||document.URL}).fail(function(e,n,r){0!==e.readyState&&"1"!==e.getResponseHeader("X-Reauthenticate")&&t.reverseStateChange()}).done(function(e,o,i){t.setLastState(n);var a=r.handleAjaxResponse(e,o,i,n);r.trigger("afterstatechange",{data:e,status:o,xhr:i,element:a,state:n})}).always(function(){r.setStateChangeXHR(null),s.removeClass("loading")});return this.setStateChangeXHR(c),c}},reverseStateChange:function(){var e=this,t=this.getLastState();this.setPauseState(!0),this.setStateChangeCount(this.getStateChangeCount()-1),t&&t.path?(window.ss.router.show(t.path),this.setPauseState(!1)):(window.ss.router.back(),setTimeout(function(){e.setPauseState(!1)}))},loadFragment:function(e,t){var n,r=this,o={},i=$("base").attr("href"),a=this.getFragmentXHR();return void 0!==a[t]&&null!==a[t]&&(a[t].abort(),a[t]=null),e=$.path.isAbsoluteUrl(e)?e:$.path.makeUrlAbsolute(e,i),o["X-Pjax"]=t,n=$.ajax({headers:o,url:e,success:function(e,t,n){var o=r.handleAjaxResponse(e,t,n,null);r.trigger("afterloadfragment",{data:e,status:t,xhr:n,elements:o})},error:function(e,t,n){r.trigger("loadfragmenterror",{xhr:e,status:t,error:n})},complete:function(){var e=r.getFragmentXHR();void 0!==e[t]&&null!==e[t]&&(e[t]=null)}}),a[t]=n,n},handleAjaxResponse:function(e,t,n,r){var o=void 0,i=void 0;if(n.getResponseHeader("X-Reload")&&n.getResponseHeader("X-ControllerURL")){var a=$("base").attr("href"),s=n.getResponseHeader("X-ControllerURL"),l=$.path.isAbsoluteUrl(s)?s:$.path.makeUrlAbsolute(s,a);return void(document.location.href=l)}if(e){var c=n.getResponseHeader("X-Title");c&&(document.title=decodeURIComponent(c.replace(/\+/g," ")));var u={},d=void 0;n.getResponseHeader("Content-Type").match(/^((text)|(application))\/json[ \t]*;?/i)?u=e:(i=$($.parseHTML(e,document,!1)),o="Content",i.is("form")&&!i.is("[data-pjax-fragment~=Content]")&&(o="CurrentForm"),u[o]=i),this.setRedrawSuppression(!0);try{$.each(u,function(e,t){var n=$("[data-pjax-fragment]").filter(function(){return-1!=$.inArray(e,$(this).data("pjaxFragment").split(" "))}),r=$(t);if(d?d.add(r):d=r,r.find(".cms-container").length)throw'Content loaded via ajax is not allowed to contain tags matching the ".cms-container" selector to avoid infinite loops';var o=n.attr("style"),i=(n.parent(),["east","west","center","north","south","column-hidden"]),a=n.attr("class"),s=[];a&&(s=$.grep(a.split(" "),function(e){return $.inArray(e,i)>=0})),r.removeClass(i.join(" ")).addClass(s.join(" ")),o&&r.attr("style",o);var l=r.find("style").detach();l.length&&$(document).find("head").append(l),n.replaceWith(r)});var f=d.filter("form");f.hasClass("cms-tabset")&&f.removeClass("cms-tabset").addClass("cms-tabset")}finally{this.setRedrawSuppression(!1)}return this.redraw(),this.restoreTabState(r&&void 0!==r.tabState?r.tabState:null),d}},_findFragments:function(e){return $("[data-pjax-fragment]").filter(function(){var t,n=$(this).data("pjaxFragment").split(" ");for(t in e)if(-1!=$.inArray(e[t],n))return!0;return!1})},refresh:function(){$(window).trigger("statechange"),$(this).redraw()},saveTabState:function(e,t){if(void 0!==window.sessionStorage&&null!==window.sessionStorage){void 0===e&&window.ss.tabStateUrl();var n=[];if(this.find(".cms-tabset,.ss-tabset").each(function(e,r){var o=$(r).attr("id");o&&$(r).data("uiTabs")&&($(r).data("ignoreTabState")||$(r).getIgnoreTabState()||n.push({id:o,selected:t?0:$(r).tabs("option","active")}))}),n){var r="tabs-"+e;try{window.sessionStorage.setItem(r,JSON.stringify(n))}catch(e){if(e.code===DOMException.QUOTA_EXCEEDED_ERR&&0===window.sessionStorage.length)return;throw e}}}},restoreTabState:function(e){var t=this.find(".cms-tabset, .ss-tabset");t.length?t.each(function(){var t=$(this),n=t.attr("id"),r=e&&e[n]?e[n]:null;t.restoreState(r)}):$("#Form_AddForm_action_doAdd").focus()},clearTabState:function(e){if(void 0!==window.sessionStorage){var t=window.sessionStorage;if(e)t.removeItem("tabs-"+e);else for(var n=0;n<t.length;n++)t.key(n).match(/^tabs-/)&&t.removeItem(t.key(n))}},clearCurrentTabState:function(){this.clearTabState(window.ss.tabStateUrl())},showLoginDialog:function(){var e=$(".leftandmain__login-dialog");e.length&&e.destroy(),e=$('<div class="leftandmain__login-dialog" />'),$("body").append(e),e.open()}}),$(".leftandmain__login-dialog").entwine({destroy:function(){this.close(),this.remove()},close:function(){this.renderModal(!1)},open:function(){this.renderModal(!0)},renderModal:function(e){var t=$("body").data("member-tempid"),n=$.path.addSearchParams("CMSSecurity/login",{tempid:t,BackURL:window.location.href});_reactDom2.default.render(_react2.default.createElement(_IframeDialog2.default,{title:i18n._t("Admin.CMS_LOGIN_TITLE","Login"),className:"login-dialog",bodyClassName:"login-dialog__body",iframeId:"login-dialog-iframe",iframeClassName:"login-dialog__body__iframe",isOpen:e,url:n}),this[0])},reauthenticate:function(e){void 0!==e.SecurityID&&$(":input[name=SecurityID]").val(e.SecurityID),void 0!==e.TempID&&$("body").data("member-tempid",e.TempID),this.close()}}),$("form.loading,.cms-content.loading,.cms-content-fields.loading,.cms-content-view.loading,.ss-gridfield-item.loading").entwine({onmatch:function(){this._super();var e=$('<div class="cms-loading-container"/>');this.append(e),_reactDom2.default.render(_react2.default.createElement(_Loading2.default,null),e[0])},onunmatch:function(){this._super();var e=this.find(".cms-loading-container");e&&e.length&&(_reactDom2.default.unmountComponentAtNode(e[0]),e.remove())}}),$(".cms .cms-panel-link").entwine({onclick:function(e){if($(this).hasClass("external-link"))return void e.stopPropagation();var t=this.attr("href"),n=t&&!t.match(/^#/)?t:this.data("href"),r={pjax:this.data("pjaxTarget")};$(".cms-container").loadPanel(n,null,r),e.preventDefault()}}),$(".cms button.action.discard-confirmation").entwine({onclick:function(e){$(".cms-container").checkCanNavigate()||e.preventDefault()}}),$(".cms .ss-ui-button-ajax").entwine({onclick:function onclick(e){$(this).removeClass("ui-button-text-only"),$(this).addClass("ss-ui-button-loading ui-button-text-icons");var loading=$(this).find(".ss-ui-loading-icon");loading.length<1&&(loading=$("<span></span>").addClass("ss-ui-loading-icon ui-button-icon-primary ui-icon"),$(this).prepend(loading)),loading.show();var href=this.attr("href"),url=href||this.data("href");jQuery.ajax({url:url,complete:function complete(xmlhttp,status){var msg=xmlhttp.getResponseHeader("X-Status")?xmlhttp.getResponseHeader("X-Status"):xmlhttp.responseText;try{void 0!==msg&&null!==msg&&eval(msg)}catch(e){}loading.hide(),$(".cms-container").refresh(),$(this).removeClass("ss-ui-button-loading ui-button-text-icons"),$(this).addClass("ui-button-text-only")},dataType:"html"}),e.preventDefault()}}),$(".cms .ss-ui-dialog-link").entwine({UUID:null,onmatch:function(){this._super(),this.setUUID((new Date).getTime())},onunmatch:function(){this._super()},onclick:function(){this._super();var e="ss-ui-dialog-"+this.getUUID(),t=$("#"+e);t.length||(t=$('<div class="ss-ui-dialog" id="'+e+'" />'),$("body").append(t));var n=this.data("popupclass")?this.data("popupclass"):"";return t.ssdialog({iframeUrl:this.attr("href"),autoOpen:!0,dialogExtraClass:n}),!1}}),$(".cms .field.date input.text").entwine({onmatch:function(){var e=$(this).parents(".field.date:first"),t=e.data();if(!t.showcalendar)return void this._super();t.showOn="button",t.locale&&$.datepicker.regional[t.locale]&&(t=$.extend(t,$.datepicker.regional[t.locale],{})),this.prop("disabled")||this.prop("readonly")||$(this).datepicker(t),this._super()},onunmatch:function(){this._super()}}),$(".cms .field.dropdown select, .cms .field select[multiple], .form__fieldgroup-item select.dropdown").entwine({onmatch:function(){if(this.is(".no-chosen"))return void this._super();this.data("placeholder")||this.data("placeholder"," "),this.removeClass("has-chosen").chosen("destroy"),this.siblings(".chosen-container").remove(),applyChosen(this),this._super()},onunmatch:function(){this._super()}}),$(".cms-panel-layout").entwine({redraw:function(){window.debug&&console.log("redraw",this.attr("class"),this.get(0))}}),$(".cms .grid-field:not([cms-loading-ignore-url-params])").entwine({showDetailView:function(e){$(".cms-container").loadPanel(e)}}),$(".cms-search-form button[type=reset], .cms-search-form input[type=reset]").entwine({onclick:function(e){e.preventDefault();var t=$(this).parents("form");t.clearForm(),t.find(".dropdown select").prop("selectedIndex",0).trigger("chosen:updated"),t.submit()}}),window._panelDeferredCache={},$(".cms-panel-deferred").entwine({onadd:function(){this._super(),this.redraw()},onremove:function(){window.debug&&console.log("saving",this.data("url"),this),this.data("deferredNoCache")||(window._panelDeferredCache[this.data("url")]=this.html()),this._super()},redraw:function(){window.debug&&console.log("redraw",this.attr("class"),this.get(0));var e=this,t=this.data("url");if(!t)throw'Elements of class .cms-panel-deferred need a "data-url" attribute';this._super(),this.data("deferredNoCache")||void 0===window._panelDeferredCache[t]?(this.addClass("loading"),$.ajax({url:t,complete:function(){e.removeClass("loading")},success:function(t,n,r){e.html(t)}})):this.html(window._panelDeferredCache[t])}}),$(".cms-tabset").entwine({onadd:function(){this.redrawTabs(),this._super()},onremove:function(){this.data("uiTabs")&&this.tabs("destroy"),this._super()},redrawTabs:function(){this.rewriteHashlinks();var e=(this.attr("id"),this.find("ul:first .ui-tabs-active"));this.data("uiTabs")||this.tabs({active:-1!=e.index()?e.index():0,beforeLoad:function(e,t){return!1},beforeActivate:function(e,t){var n=t.oldTab.find(".cms-panel-link");if(n&&1===n.length)return!1},activate:function(e,t){var n=$(this).closest("form").find(".btn-toolbar");$(t.newTab).closest("li").hasClass("readonly")?n.fadeOut():n.show()}}),this.trigger("afterredrawtabs")},rewriteHashlinks:function(){$(this).find("ul a").each(function(){if($(this).attr("href")){var e=$(this).attr("href").match(/#.*/);e&&$(this).attr("href",document.location.href.replace(/#.*/,"")+e[0])}})}}),$("#filters-button").entwine({onmatch:function(){this._super(),this.data("collapsed",!0),this.data("animating",!1)},onunmatch:function(){this._super()},showHide:function(){var e=this,t=$(".cms-content-filters").first(),n=this.data("collapsed");n?(this.addClass("active"),t.removeClass("cms-content-filters--hidden")):(this.removeClass("active"),t.addClass("cms-content-filters--hidden")),e.data("collapsed",!n)},onclick:function(){this.showHide()}}),$(".js-injector-boot .search-holder").entwine({Component:null,onmatch:function(){this._super();var e=this.closest(".cms-content").attr("id"),t=e?{context:e}:{},n=(0,_Injector.loadComponent)("Search",t);this.setComponent(n),this.refresh(),this.data("schema")},onunmatch:function(){this._super();var e=this[0];e&&_reactDom2.default.unmountComponentAtNode(e)},onfocusin:function(){this.css("z-index","100")},onfocusout:function(){this.css("z-index","")},close:function(){if($("#filters-button").showHide(),this.data("schema").filters){var e=$(".cms-search-form").attr("action");this.closest(".cms-container").loadPanel(e,"",{},!0)}},search:function(e){this._super();var t=$(".cms-search-form").attr("action");if(t&&e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=Object.entries(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value,c=_slicedToArray(l,2),u=c[0],d=c[1];d&&(n["q["+u+"]"]=d)}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}0===Object.keys(n).length&&(n["q["+this.data("schema").name+"]"]=""),t=$.path.addSearchParams(t,n),$(".cms-panel-deferred.cms-content-view").data("deferredNoCache",!0),this.closest(".cms-container").loadPanel(t,"",{},!0)}},refresh:function(){var e=this,t=this.data("schema"),n=this.getComponent(),r=function(){return e.close()},o=function(t){return e.search(t)},i="cms-content-tools-CMSMain"===this.closest(".cms-content-tools").attr("id");_reactDom2.default.render(_react2.default.createElement(n,_extends({id:"Search",identifier:"Search",display:"VISIBLE",displayBehavior:"HIDEABLE",filterPrefix:"Search__",onHide:r,onSearch:o,borders:{left:!i}},t)),this[0])}})});var statusMessage=function(e,t){e=jQuery("<div/>").text(e).html(),jQuery.noticeAdd({text:e,type:t,stayTime:5e3,inEffect:{left:"0",opacity:"show"}})}}).call(exports,__webpack_require__("jquery"))},"./client/src/legacy/ModelAdmin.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);n("./client/src/legacy/LeftAndMain.js"),o.default.entwine("ss",function(e){e(".cms-content-tools #Form_SearchForm").entwine({onsubmit:function(e){this.trigger("beforeSubmit")}}),e(".importSpec").entwine({onmatch:function(){this.find("div.details").hide(),this.find("a.detailsLink").click(function(){return e("#"+e(this).attr("href").replace(/.*#/,"")).slideToggle(),!1}),this._super()},onunmatch:function(){this._super()}}),e(".cms .btn.clear-search").entwine({onclick:function(e){e.preventDefault(),this.parents(".cms-container").loadPanel(this.attr("href"),"",{},!0,!1)}})})},"./client/src/legacy/PermissionCheckboxSetField.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".permissioncheckboxset .valADMIN input").entwine({onmatch:function(){this._super()},onunmatch:function(){this._super()},onclick:function(e){this.toggleCheckboxes()},toggleCheckboxes:function(){var t=e(this).parents(".field:eq(0)").find(".checkbox").not(this);e(this).is(":checked")?t.each(function(){e(this).data("SecurityAdmin.oldChecked",e(this).attr("checked")),e(this).data("SecurityAdmin.oldDisabled",e(this).attr("disabled")),e(this).attr("disabled","disabled"),e(this).attr("checked","checked")}):t.each(function(){var t=e(this).data("SecurityAdmin.oldChecked"),n=e(this).data("SecurityAdmin.oldDisabled");null!==t&&e(this).attr("checked",t),null!==n&&e(this).attr("disabled",n)})}}),e(".permissioncheckboxset .valCMS_ACCESS_LeftAndMain input").entwine({getCheckboxesExceptThisOne:function(){return e(this).parents(".field:eq(0)").find("li").filter(function(t){var n=e(this).attr("class");return!!n&&n.match(/CMS_ACCESS_/)}).find(".checkbox").not(this)},onadd:function(){this.toggleCheckboxes(),this._super()},onclick:function(e){this.toggleCheckboxes()},toggleCheckboxes:function(){var t=this.getCheckboxesExceptThisOne();e(this).is(":checked")?t.each(function(){e(this).data("PermissionCheckboxSetField.oldChecked",e(this).is(":checked")),e(this).data("PermissionCheckboxSetField.oldDisabled",e(this).is(":disabled")),e(this).prop("disabled","disabled"),e(this).prop("checked","checked")}):t.each(function(){e(this).prop("checked",e(this).data("PermissionCheckboxSetField.oldChecked")),e(this).prop("disabled",e(this).data("PermissionCheckboxSetField.oldDisabled"))})}})})},"./client/src/legacy/SecurityAdmin.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);n("./client/src/legacy/LeftAndMain.js"),n("./client/src/legacy/PermissionCheckboxSetField.js");var i=function(e){var t=(0,o.default)((0,o.default)(this).contents()).find(".message");if(t&&t.html()){var n=(0,o.default)(window.parent.document).find("#Form_EditForm_Members").get(0);n&&n.refresh();var r=(0,o.default)(window.parent.document).find(".cms-tree").get(0);r&&r.reload()}};(0,o.default)("#MemberImportFormIframe, #GroupImportFormIframe").entwine({onadd:function(){this._super(),(0,o.default)(this).on("load",i)}}),o.default.entwine("ss",function(e){e(".permissioncheckboxset .checkbox[value=ADMIN]").entwine({onadd:function(){this.toggleCheckboxes(),this._super()},onclick:function(e){this.toggleCheckboxes()},toggleCheckboxes:function(){var t=this.parents(".field:eq(0)").find(".checkbox").not(this);this.is(":checked")?t.each(function(){e(this).data("SecurityAdmin.oldChecked",e(this).is(":checked")),e(this).data("SecurityAdmin.oldDisabled",e(this).is(":disabled")),e(this).prop("disabled",!0),e(this).prop("checked",!0)}):t.each(function(){e(this).prop("checked",e(this).data("SecurityAdmin.oldChecked")),e(this).prop("disabled",e(this).data("SecurityAdmin.oldDisabled"))})}})})},"./client/src/legacy/SelectionGroup.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);(0,o.default)(document).ready(function(){(0,o.default)(document).on("click","ul.SelectionGroup input.selector, ul.selection-group input.selector",function(){var e=(0,o.default)(this).closest("li");e.addClass("selected");var t=e.prevAll("li.selected");t.length&&t.removeClass("selected");var n=e.nextAll("li.selected");n.length&&n.removeClass("selected"),(0,o.default)(this).focus()})})},"./client/src/legacy/TabSet.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);n("./thirdparty/jquery-ui/jquery-ui.js"),n("./thirdparty/jquery-cookie/jquery.cookie.js"),n("./thirdparty/jquery-entwine/jquery.entwine.js"),o.default.entwine("ss",function(e){e(".ss-tabset, .cms-tabset").entwine({DeferRestoreState:!1,DefferredStateOverride:null,onmatch:function(){var e=window.location.hash;""!==e&&this.openTabFromURL(e),this._super()},onadd:function(){this.on("tabsactivate",function(e,t){var n=t.newPanel;this.lazyLoadGridFields(n),this.triggerLazyLoad(n)}.bind(this)),this.on("tabscreate",function(e,t){var n=t.panel;this.lazyLoadGridFields(n),this.triggerLazyLoad(n)}.bind(this)),this._super()},restoreState:function(t){var n=void 0!==window.sessionStorage&&window.sessionStorage,r=n?window.sessionStorage.getItem("tabs-"+window.ss.tabStateUrl()):null,o=!!r&&JSON.parse(r),i=void 0,a=void 0,s=this.attr("id"),l=this.children("ul").children("li.ss-tabs-force-active");if(!this.data("uiTabs"))return this.setDeferRestoreState(!0),void this.setDefferredStateOverride(t);this.tabs("refresh"),l.length?i=l.first().index():t?(a=this.find(t.tabSelector),a.length&&(i=a.index())):o&&e.each(o,function(e,t){s==t.id&&(i=t.selected)}),null!==i&&void 0!==i&&(this.tabs("option","active",i),this.parents(".cms-container").trigger("tabstaterestored"))},triggerLazyLoad:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".lazy-loadable";t.find(r).each(function(t,r){var o=e(r),i=r.dataset.lazyEvent||"lazyload";o.closest(".ss-tabset, .cms-tabset").is(n)&&r.dispatchEvent(new Event(i))})},lazyLoadGridFields:function(t){var n=this;t.find(".grid-field--lazy-loadable").each(function(t,r){e(r).closest(".ss-tabset, .cms-tabset").is(n)&&e(r).lazyload()})},openTabFromURL:function(t){var n;e.each(this.find(".ui-tabs-anchor"),function(){if(-1!==this.href.indexOf(t)&&1===e(t).length)return n=e(this),!1}),void 0!==n&&e(function(){n.click()})},redrawTabs:function(){this._super(),this.getDeferRestoreState()&&(this.restoreState(this.getDefferredStateOverride()),this.setDeferRestoreState(!1),this.setDefferredStateOverride(null))}}),e(".ss-tabset").entwine({IgnoreTabState:!1,onadd:function(){this.redrawTabs(),this._super()},onremove:function(){this.data("uiTabs")&&this.tabs("destroy"),this._super()},redrawTabs:function(){e(this).hasClass("ss-tabset")?(this.rewriteHashlinks(),this.tabs()):this._super()},rewriteHashlinks:function(){e(this).find("ul a").each(function(){if(e(this).attr("href")){var t=e(this).attr("href").match(/#.*/);t&&e(this).attr("href",document.location.href.replace(/#.*/,"")+t[0])}})}}),e(".ui-tabs-active .ui-tabs-anchor").entwine({onmatch:function(){this.addClass("nav-link active")},onunmatch:function(){this.removeClass("active")}})})},"./client/src/legacy/ToastsContainer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("jquery"),i=r(o),a=n("react"),s=r(a),l=n("react-dom"),c=r(l),u=n("lib/Injector"),d=r(u),f=n("state/toasts/ToastsActions"),p=(0,u.loadComponent)("ToastsContainer");i.default.entwine("ss",function(e){e("body").entwine({onmatch:function(){var t=e('<div class="toasts-container"></div>');this.append(t),c.default.render(s.default.createElement(p,null),t[0])}})}),function(e){e.extend({noticeAdd:function(e){d.default.ready(function(){(0,d.default.reducer.store.dispatch)((0,f.display)(e))})}})}(i.default)},"./client/src/legacy/ToggleCompositeField.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);n("./thirdparty/jquery-ui/jquery-ui.js"),o.default.entwine("ss",function(e){e(".ss-toggle").entwine({onadd:function(){this._super(),this.accordion({heightStyle:"content",collapsible:!0,active:!this.hasClass("ss-toggle-start-closed")&&0})},onremove:function(){this.data("uiAccordion")&&this.accordion("destroy"),this._super()},getTabSet:function(){return this.closest(".ss-tabset")},fromTabSet:{ontabsshow:function(){this.accordion("resize")}}})})},"./client/src/legacy/TreeDropdownField/TreeDropdownFieldEntwine.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("jquery"),a=r(i),s=n("react"),l=r(s),c=n("react-dom"),u=r(c),d=n("lib/schemaFieldValues"),f=n("components/TreeDropdownField/TreeDropdownField"),p=n("lib/Injector");a.default.entwine("ss",function(e){e(".js-injector-boot .TreeDropdownField").entwine({Value:null,Timer:null,Component:null,onmatch:function(){this._super();var e=this.closest(".cms-content").attr("id"),t=e?{context:e}:{},n=(0,p.loadComponent)("TreeDropdownField",t);this.setComponent(n);var r=this.data("state")||{},o=this.data("schema")||{};o.data&&o.data.multiple?this.setValue(r.value&&r.value!==f.MULTI_EMPTY_VALUE?r.value.map(function(e){return Number(e)}):[]):this.setValue(r.value?Number(r.value):""),this.refresh()},onunmatch:function(){this._super();var e=this[0];e&&u.default.unmountComponentAtNode(e)},refresh:function(){var e=this,t=this.getAttributes(),n=function(t){e.setValue(t),e.refresh(),clearTimeout(e.getTimer());var n=setTimeout(function(){e.find("input").trigger("change")},0);e.setTimer(n)},r=this.getComponent();u.default.render(l.default.createElement(r,o({},t,{onChange:n,value:this.getValue(),noHolder:!0})),this[0])},getAttributes:function(){var e=this.data("state"),t=this.data("schema");return(0,d.schemaMerge)(t,e)}})})},"./client/src/legacy/UsedOnTable/UsedOnTableEntwine.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("jquery"),i=r(o),a=n("react"),s=r(a),l=n("react-dom"),c=r(l),u=n("lib/schemaFieldValues"),d=n("lib/Injector");i.default.entwine("ss",function(e){e(".js-injector-boot .used-on__polyfill-holder").entwine({Timer:null,Component:null,onmatch:function(){this._super();var e=this.closest(".cms-content").attr("id"),t=e?{context:e}:{},n=(0,d.loadComponent)("UsedOnTable",t);this.setComponent(n),this.refresh()},onunmatch:function(){this._super();var e=this[0];e&&c.default.unmountComponentAtNode(e)},refresh:function(){var e=this.getAttributes(),t=this.getComponent();c.default.render(s.default.createElement(t,e),this[0])},getAttributes:function(){var e=this.data("state"),t=this.data("schema");return(0,u.schemaMerge)(t,e)}})})},"./client/src/legacy/jquery.changetracker.js":function(e,t,n){"use strict";(function(e){var t=n("./node_modules/lodash.debounce/index.js"),r=function(e){return e&&e.__esModule?e:{default:e}}(t);!function(e){e.fn.changetracker=function(t){var n=this;if(this.length>1)return this.each(function(e,n){this.changetracker(t)}),this;this.defaults={fieldSelector:':input:not(:button,[type="submit"],[type="search"],.gridstate)',ignoreFieldSelector:'.no-change-track,[type="search"]',changedCssClass:"changed"};var o=e.extend({},this.defaults,t);if(this.initialize=function(){e.meta&&(o=e.extend({},o,this.data())),n.data("dirty",!1);var t=function(t){if(t.is(":radio")){var r=n.find(":input[name="+t.attr("name")+"]:checked");return r.length?r.val():0}if(t.is(":checkbox"))return t.is(":checked")?1:0;var o=t.val();if(t&&t.hasClass("htmleditor"))switch(t.data("editor")||"default"){case"tinyMCE":case"default":var i=e.extend({forced_root_block:"p"},t.data("config")),a=new tinymce.html.Serializer(i),s=new tinymce.html.DomParser(i);o=a.serialize(s.parse(o))}return o},i=function(){var r=[];return n.getFields().each(function(){var n=e(this).prop("name");n&&r.push({name:n,value:t(e(this))})}),JSON.stringify(r)},a=i(),s=function(){var e=i();return n.data("dirty")||a!==e},l=function(t){if(!t||!e(t.target).is(o.ignoreFieldSelector)){var r=s();n.toggleClass(o.changedCssClass,r)}},c=function(r){var i=e(r.target),a=i.data("changetracker.origVal");if(!i.is(o.ignoreFieldSelector)){var s=t(i);null===a||s!==a?(i.addClass(o.changedCssClass),n.addClass(o.changedCssClass)):(i.removeClass(o.changedCssClass),i.is(":radio")&&n.find(":radio[name="+i.attr("name")+"]").removeClass(o.changedCssClass),u())}},u=(0,r.default)(l,250,{leading:!0,trailing:!0}),d=(0,r.default)(c,250,{leading:!0,trailing:!0});n.on("click.changetracker",o.fieldSelector,d),n.on("keyup.changetracker",o.fieldSelector,d),n.on("change.changetracker",o.fieldSelector,d),n.on("change.changetracker",u),this.getFields().each(function(){var n=t(e(this));e(this).data("changetracker.origVal",n)}),n.on("dirty.changetracker",function(){n.data("dirty",!0),u()}),this.data("changetracker",!0)},this.destroy=function(){this.reset(),this.off(".changetracker").removeData("changetracker")},this.reset=function(){this.getFields().each(function(){n.resetField(this)}),this.data("dirty",!1).removeClass(o.changedCssClass)},this.resetField=function(t){return e(t).removeData("changetracker.origVal").removeClass(o.changedCssClass)},this.getFields=function(){return this.find(o.fieldSelector).not(o.ignoreFieldSelector+", .search-box *")},"string"==typeof arguments[0]){var i=(arguments[1],Array.prototype.slice.call(arguments));return i.splice(0,1),this[arguments[0]].apply(this,i)}var n=this;return setTimeout(function(){n.initialize()},0),this}}(e)}).call(t,n("jquery"))},"./client/src/legacy/sspath.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=((0,o.default)(window),(0,o.default)("html"),(0,o.default)("head"),{urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,parseUrl:function(e){if("object"===o.default.type(e))return e;var t=i.urlParseRE.exec(e||"")||[];return{href:t[0]||"",hrefNoHash:t[1]||"",hrefNoSearch:t[2]||"",domain:t[3]||"",protocol:t[4]||"",doubleSlash:t[5]||"",authority:t[6]||"",username:t[8]||"",password:t[9]||"",host:t[10]||"",hostname:t[11]||"",port:t[12]||"",pathname:t[13]||"",directory:t[14]||"",filename:t[15]||"",search:t[16]||"",hash:t[17]||""}},makePathAbsolute:function(e,t){if(e&&"/"===e.charAt(0))return e;e=e||"",t=t?t.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"";for(var n=t?t.split("/"):[],r=e.split("/"),o=0;o<r.length;o++){var i=r[o];switch(i){case".":break;case"..":n.length&&n.pop();break;default:n.push(i)}}return"/"+n.join("/")},isSameDomain:function(e,t){return i.parseUrl(e).domain===i.parseUrl(t).domain},isRelativeUrl:function(e){return""===i.parseUrl(e).protocol},isAbsoluteUrl:function(e){return""!==i.parseUrl(e).protocol},makeUrlAbsolute:function(e,t){if(!i.isRelativeUrl(e))return e;var n=i.parseUrl(e),r=i.parseUrl(t),o=n.protocol||r.protocol,a=n.protocol?n.doubleSlash:n.doubleSlash||r.doubleSlash,s=n.authority||r.authority,l=""!==n.pathname;return o+a+s+i.makePathAbsolute(n.pathname||r.filename,r.pathname)+(n.search||!l&&r.search||"")+n.hash},addSearchParams:function(e,t){var n=i.parseUrl(e),t="string"==typeof t?i.convertSearchToArray(t):t,r=o.default.extend(i.convertSearchToArray(n.search),t),a=i.convertObjectToSearch(r);return n.hrefNoSearch+"?"+a+(n.hash||"")},getSearchParams:function(e){var t=i.parseUrl(e);return i.convertSearchToArray(t.search)},convertSearchToArray:function(e){var t,n,r,o={};for(e=e.replace(/^\?/,""),t=e?e.split("&"):[],n=0;n<t.length;n++)r=t[n].split("="),o[decodeURIComponent(r[0])]=decodeURIComponent(r[1]);return o},convertObjectToSearch:function(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")},convertUrlToDataUrl:function(e){var t=i.parseUrl(e);return i.isEmbeddedPage(t)?t.hash.split(dialogHashKey)[0].replace(/^#/,""):i.isSameDomain(t,document)?t.hrefNoHash.replace(document.domain,""):e},get:function(e){return void 0===e&&(e=location.hash),i.stripHash(e).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(e){var t="&"+o.default.mobile.subPageUrlKey;return e&&e.split(t)[0].split(dialogHashKey)[0]},set:function(e){location.hash=e},isPath:function(e){return/\//.test(e)},clean:function(e){return e.replace(document.domain,"")},stripHash:function(e){return e.replace(/^#/,"")},cleanHash:function(e){return i.stripHash(e.replace(/\?.*$/,"").replace(dialogHashKey,""))},isExternal:function(e){var t=i.parseUrl(e);return!(!t.protocol||t.domain===document.domain)},hasProtocol:function(e){return/^(:?\w+:)/.test(e)}});o.default.path=i},"./client/src/legacy/ssui.core.js":function(e,t,n){"use strict";(function(e){var t=n("jquery"),r=function(e){return e&&e.__esModule?e:{default:e}}(t);n("./thirdparty/jquery-ui/jquery-ui.js"),r.default.widget("ssui.ssdialog",r.default.ui.dialog,{options:{iframeUrl:"",reloadOnOpen:!0,dialogExtraClass:"",modal:!0,bgiframe:!0,autoOpen:!1,autoPosition:!0,minWidth:500,maxWidth:800,minHeight:300,maxHeight:700,widthRatio:.8,heightRatio:.8,resizable:!1},_create:function(){r.default.ui.dialog.prototype._create.call(this);var e=this,t=(0,r.default)('<iframe marginWidth="0" marginHeight="0" frameBorder="0" scrolling="auto"></iframe>');t.on("load",function(n){"about:blank"!=(0,r.default)(this).attr("src")&&(t.addClass("loaded").show(),e._resizeIframe(),e.uiDialog.removeClass("loading"))}).hide(),this.options.dialogExtraClass&&this.uiDialog.addClass(this.options.dialogExtraClass),this.element.append(t),this.options.iframeUrl&&this.element.css("overflow","hidden")},open:function(){r.default.ui.dialog.prototype.open.call(this);var e=this,t=this.element.children("iframe");!this.options.iframeUrl||t.hasClass("loaded")&&!this.options.reloadOnOpen||(t.hide(),t.attr("src",this.options.iframeUrl),this.uiDialog.addClass("loading")),(0,r.default)(window).on("resize.ssdialog",function(){e._resizeIframe()})},close:function(){r.default.ui.dialog.prototype.close.call(this),this.uiDialog.off("resize.ssdialog"),(0,r.default)(window).off("resize.ssdialog")},_resizeIframe:function(){var t,n,o={},i=this.element.children("iframe");this.options.widthRatio&&(t=(0,r.default)(window).width()*this.options.widthRatio,this.options.minWidth&&t<this.options.minWidth?o.width=this.options.minWidth:this.options.maxWidth&&t>this.options.maxWidth?o.width=this.options.maxWidth:o.width=t),this.options.heightRatio&&(n=(0,r.default)(window).height()*this.options.heightRatio,this.options.minHeight&&n<this.options.minHeight?o.height=this.options.minHeight:this.options.maxHeight&&n>this.options.maxHeight?o.height=this.options.maxHeight:o.height=n),e.isEmptyObject(o)||(this._setOptions(o),i.attr("width",o.width-parseFloat(this.element.css("paddingLeft"))-parseFloat(this.element.css("paddingRight"))),i.attr("height",o.height-parseFloat(this.element.css("paddingTop"))-parseFloat(this.element.css("paddingBottom"))),this.options.autoPosition&&this._setOption("position",this.options.position))}}),r.default.widget("ssui.titlebar",{_create:function(){this.originalTitle=this.element.attr("title");var e=this.options,t=e.title||this.originalTitle||"&nbsp;",n=r.default.ui.dialog.getTitleId(this.element);this.element.parent().addClass("ui-dialog");var o=this.element.addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix");if(e.closeButton){var i=(0,r.default)('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){i.addClass("ui-state-hover")},function(){i.removeClass("ui-state-hover")}).focus(function(){i.addClass("ui-state-focus")}).blur(function(){i.removeClass("ui-state-focus")}).mousedown(function(e){e.stopPropagation()}).appendTo(o);(this.uiDialogTitlebarCloseText=(0,r.default)("<span/>")).addClass("ui-icon ui-icon-closethick").text(e.closeText).appendTo(i)}(0,r.default)("<span/>").addClass("ui-dialog-title").attr("id",n).html(t).prependTo(o),o.find("*").add(o).disableSelection()},destroy:function(){this.element.off(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.originalTitle&&this.element.attr("title",this.originalTitle)}}),r.default.extend(r.default.ssui.titlebar,{version:"0.0.1",options:{title:"",closeButton:!1,closeText:"close"},uuid:0,getTitleId:function(e){return"ui-dialog-title-"+(e.attr("id")||++this.uuid)}})}).call(t,n("jquery"))},"./client/src/lib/Validator.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("validator"),c=r(l),u=n("i18n"),d=r(u),f=function(){function e(t){o(this,e),this.setValues(t)}return s(e,[{key:"setValues",value:function(e){this.values=e}},{key:"getFieldValue",value:function(e){var t=this.values[e];return"string"!=typeof t&&(t=void 0===t||null===t||!1===t?"":t.toString()),t}},{key:"validateValue",value:function(e,t,n,r){if(t.includes(e))return"required"!==n;switch(n){case"equals":var o=this.getFieldValue(r.field);return c.default.equals(e,o);case"numeric":return c.default.isNumeric(e);case"date":return c.default.isDate(e);case"alphanumeric":return c.default.isAlphanumeric(e);case"alpha":return c.default.isAlpha(e);case"regex":return c.default.matches(e,r.pattern);case"max":return e.length<=r.length;case"email":return c.default.isEmail(e);default:return console.warn("Unknown validation rule used: '"+n+"'"),!1}}},{key:"validateFieldSchema",value:function(e){return this.validateField(e.name,e.validation,null!==e.leftTitle?e.leftTitle:e.title,e.customValidationMessage)}},{key:"getMessage",value:function(e,t){var n=t.title,r="string"==typeof t.message?t.message:d.default._t("Admin.VALIDATOR_MESSAGE_"+e.toUpperCase(),d.default._t("Admin.VALIDATOR_MESSAGE_DEFAULT","{name} is not a valid value."));return d.default.inject(r,{name:n})}},{key:"validateField",value:function(e,t,n,r){var o=this,s={valid:!0,errors:[]};if(!t)return s;var l=this.getFieldValue(e),c=[""];if(t.required&&"object"===a(t.required)&&t.required.hasOwnProperty("extraEmptyValues")&&(c=c.concat(t.required.extraEmptyValues)),t.required&&c.includes(l)){var u=Object.assign({title:""!==n?n:e},t.required);return{valid:!1,errors:[r||this.getMessage("required",u)]}}return Object.entries(t).forEach(function(t){var r=i(t,2),a=r[0],u=r[1],d=Object.assign({title:e},{title:n},u);if("required"!==a&&!o.validateValue(l,c,a,d)){var f=o.getMessage(a,d);s.valid=!1,s.errors.push(f)}}),r&&!s.valid&&(s.errors=[r]),s}}]),e}();t.default=f},"./client/src/lib/castStringToElement.js":function(e,t,n){"use strict";function r(e,t,n){for(var r=0,o=e,i=[],a=t.toLocaleLowerCase();-1!==r;)if(-1!==(r=o.toLocaleLowerCase().indexOf(a))){var s=r+t.length,c=o.substring(0,r),u=o.substring(r,s),d=o.substring(s);c.length&&i.push(c),i.push(n?l.default.createElement(n,{key:i.length/2},u):u),o=d}return i.push(o),i}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t&&void 0!==t.react)return l.default.createElement(e,n,t.react);if(t&&void 0!==t.html){if(null!==t.html){var r={__html:t.html};return l.default.createElement(e,a({},n,{dangerouslySetInnerHTML:r}))}return null}var o=null;if((o=t&&void 0!==t.text?t.text:t)&&"object"===(void 0===o?"undefined":i(o)))throw new Error("Unsupported string value "+JSON.stringify(o));return null!==o&&void 0!==o?l.default.createElement(e,n,o):null}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.mapHighlight=r,t.default=o;var s=n("react"),l=function(e){return e&&e.__esModule?e:{default:e}}(s)},"./client/src/lib/constants.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SPLITMODE_BREAKPOINT=800},"./client/src/lib/createClassMap.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){var t={};return e&&e.split(" ").forEach(function(e){""!==e&&(t[e]=!0)}),t};t.default=r},"./client/src/lib/createErrorBlock.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorBlock=t.createErrorHtml=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n("react"),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=function(e){return{type:"error",value:{react:e.map(function(e,t){return s.default.createElement("span",{key:t,className:"form__validation-message"},e)})}}},c=function(e){return Object.entries(e).reduce(function(e,t){var n=i(t,2),a=n[0],s=n[1];if(!s||!s.length)return e;var c=Array.isArray(s)?s:[s];return o({},e,r({},a,l(c)))},{})};t.default=c,t.createErrorHtml=l,t.createErrorBlock=c},"./client/src/lib/dependency-injection/ApolloGraphqlManager.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n("graphql-tag"),f=r(d),p=n("./client/src/lib/dependency-injection/graphql/helpers.js"),h=n("./client/src/lib/dependency-injection/ApolloGraphqlProxy.js"),m=r(h),b=["templateName","fields","params","fragments"],g=["options","props","variables","skip","update"],v={params:{},args:{},fields:[],fragments:[],pagination:!0,apolloConfig:{}},y=function(){function e(t,n,r){s(this,e);var o=c({},v,t);o.fields=[].concat(a(o.fields));var l=o.apolloConfig,u=i(o,["apolloConfig"]);this.config=u,this.apolloConfigInitValues=l,this.apolloConfigTransforms={},this.templates=c({},n)||{},this.fragments=c({},r)||{},this.reduceApolloConfig=this.reduceApolloConfig.bind(this)}return u(e,[{key:"setConfig",value:function(e,t){if(b.includes(e))throw new Error("Tried to set protected config values: '"+e+"', which is discouraged.");return this.config=c({},this.config,o({},e,t)),this}},{key:"transformApolloConfig",value:function(e,t){var n=this.apolloConfigTransforms[e]||[];return this.apolloConfigTransforms=c({},this.apolloConfigTransforms,o({},e,[].concat(a(n),[t]))),this}},{key:"addParam",value:function(e,t){if(!e||!t)throw new Error("addParam must be passed a name and type parameter");return this.addParams(o({},e,t))}},{key:"addParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.config.params;return this.config.params=c({},t,e),this}},{key:"addArg",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.ROOT_FIELD;return this.addArgs(o({},e,t),n)}},{key:"addArgs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.ROOT_FIELD,n=this.config.args[t]||{};return this.config.args[t]=c({},n,e),this}},{key:"addField",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.ROOT_FIELD;return this.addFields([e],t)}},{key:"addFields",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.ROOT_FIELD,r=[];return n.split("/").forEach(function(t){if(t===p.ROOT_FIELD)r=e.config.fields;else{var o=r.indexOf(t),i=r[o+1];if(-1===o||!Array.isArray(i))throw new Error("Invalid path to field: "+n);r=i}}),t.forEach(function(e){return r.push(e)}),this}},{key:"useFragment",value:function(e){return this.config.fragments=[].concat(a(this.config.fragments),[e]),this}},{key:"useTemplate",value:function(e){if(!Object.keys(this.templates).includes(e))throw new Error("\nTried to use template '"+e+"', which could not be found. Please make sure that it is registered with your Injector.\n      ");return this.config.templateName=e,this}},{key:"addTempFragment",value:function(e,t){return this.fragments=c({},this.fragments,o({},e,t)),this.useFragment(e)}},{key:"setTemplate",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.config.templateName="__TEMPLATE_OVERRIDE__",this.templates=c({},this.templates,o({},"__TEMPLATE_OVERRIDE__",{strings:e,expressions:n})),this}},{key:"getRawTemplate",value:function(e){return this.templates[e]}},{key:"coallesceData",value:function(e,t,n){switch(e){case"options":case"props":case"variables":case"context":case"optimisticResponse":return c({},t||{},n||{});case"refetchQueries":return[].concat(a(t||[]),a(n||[]));case"skip":return"boolean"==typeof n?n:t;case"pollInterval":return"number"==typeof n?n:t;case"fetchPolicy":return"object"===(void 0===n?"undefined":l(n))?n:t;case"name":return"string"==typeof n?n:t;case"withRef":case"notifyOnNetworkStatusChange":return n||t;default:return null}}},{key:"reduceApolloConfig",value:function(e,t){var n=this,r=function(e,r){var o=r(e);return n.coallesceData(t,e,o)},i=this.apolloConfigInitValues[t],a=this.apolloConfigTransforms[t]||[];if(g.includes(t))return c({},e,o({},t,function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];var s=i.apply(void 0,n),l=a.map(function(e){return e.apply(void 0,n)});return"update"===t?null:l.reduce(r,s)}));if(void 0===i||null===i)return e;var s=a.reduce(r,i);return c({},e,o({},t,s))}},{key:"getConfig",value:function(){return c({},this.config,{availableFragments:c({},this.fragments)})}},{key:"getApolloConfig",value:function(){return[].concat(a(Object.keys(this.apolloConfigInitValues)),a(Object.keys(this.apolloConfigTransforms))).filter(function(e,t,n){return n.indexOf(e)===t}).reduce(this.reduceApolloConfig,{})}},{key:"getGraphqlAST",value:function(){var e=this.getConfig(),t=this.getRawTemplate(e.templateName),n=t.expressions.map(function(t){return"function"!=typeof t?t:t(e)});return f.default.apply(void 0,[t.strings].concat(a(n)))}},{key:"getContainer",value:function(){return new m.default(this.getGraphqlAST(),this.getApolloConfig())}}]),e}();t.default=y},"./client/src/lib/dependency-injection/ApolloGraphqlProxy.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n("react-apollo"),a=function(){function e(t,n){r(this,e),this.graphqlAST=t,this.apolloConfig=n}return o(e,[{key:"getApolloHOC",value:function(){return(0,i.graphql)(this.graphqlAST,this.apolloConfig)}},{key:"getGraphqlAST",value:function(){return this.graphqlAST}},{key:"getApolloConfig",value:function(){return this.apolloConfig}}]),e}();t.default=a},"./client/src/lib/dependency-injection/Container.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("./client/src/lib/dependency-injection/buildInjectorContainer.js"),i=r(o),a=n("./client/src/lib/dependency-injection/buildComponentContainer.js"),s=r(a),l=n("./client/src/lib/dependency-injection/buildReducerContainer.js"),c=r(l),u=n("./client/src/lib/dependency-injection/buildFormContainer.js"),d=r(u),f=n("./client/src/lib/dependency-injection/buildApolloGraphqlScaffoldingContainer.js"),p=r(f),h=(0,i.default)();h.register("component",(0,s.default)()),h.register("reducer",(0,c.default)()),h.register("form",(0,d.default)()),h.register("query",(0,p.default)()),t.default=h},"./client/src/lib/dependency-injection/FormStateManager.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("classnames"),c=r(l),u=n("./client/src/lib/createClassMap.js"),d=r(u),f=n("./node_modules/redux-form/lib/structure/plain/setIn.js"),p=r(f),h=n("redux-form"),m=n("lib/schemaFieldValues"),b=function(e){return e},g=function(){function e(t,n){i(this,e);var r=t.state||{},s=r.fields||[];this.schema=a({},t,{state:a({},r,{fields:[].concat(o(s))})}),this.mockGlobalState=(0,p.default)({},t.name,n)}return s(e,[{key:"getFieldByName",value:function(e){var t=a({fields:[],actions:[]},this.schema.schema),n=[].concat(o(t.fields),o(t.actions)),r=(0,m.findField)(n,e),i=this.schema.state.fields.find(function(t){return t.name===e});return(0,m.schemaMerge)(r,i)}},{key:"mutateField",value:function(e,t){var n=this.schema.state.fields||[],r=n.findIndex(function(t){return t.name===e});if(r<0)return this;var i=[].concat(o(n)),a=this.getFieldByName(e);return i[r]=(0,m.schemaMerge)(a,t(a)),this.schema.state.fields=i,this}},{key:"updateField",value:function(e,t){return this.mutateField(e,function(e){return a({},e,t)})}},{key:"updateFields",value:function(e){var t=this;return Object.keys(e).forEach(function(n){t.updateField(n,e[n])}),this}},{key:"setFieldComponent",value:function(e,t){return this.updateField(e,{component:t})}},{key:"setFieldClass",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.mutateField(e,function(e){var r=(0,d.default)(e.extraClass);return r[t]=n,a({},e,{extraClass:(0,c.default)(r)})})}},{key:"addFieldClass",value:function(e,t){return this.setFieldClass(e,t,!0)}},{key:"removeFieldClass",value:function(e,t){return this.setFieldClass(e,t,!1)}},{key:"getValues",value:function(){return(0,h.getFormValues)(this.schema.name,b)(this.mockGlobalState)||{}}},{key:"getValue",value:function(e){return this.getValues()[e]}},{key:"isDirty",value:function(){return(0,h.isDirty)(this.schema.name,b)(this.mockGlobalState)}},{key:"isPristine",value:function(){return(0,h.isPristine)(this.schema.name,b)(this.mockGlobalState)}},{key:"isValid",value:function(){return(0,h.isValid)(this.schema.name,b)(this.mockGlobalState)}},{key:"isInvalid",value:function(){return(0,h.isInvalid)(this.schema.name,b)(this.mockGlobalState)}},{key:"getState",value:function(){return this.schema}}]),e}();t.default=g},"./client/src/lib/dependency-injection/FormValidationManager.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(){function e(t){o(this,e),this.values=t,this.errorMap={}}return a(e,[{key:"addError",value:function(e,t){if(!this.fieldExists(e))throw new Error("Tried to add error to non-existent field: "+e);return this.errorMap[e]||(this.errorMap[e]=[]),this.errorMap[e]=[].concat(r(this.errorMap[e]),[t]),this}},{key:"addErrors",value:function(e){var t=this;return Object.entries(e).forEach(function(e){var n=i(e,1),r=n[0],o=i(e,2),a=o[1];Array.isArray(a)||(a=[a]),a.forEach(function(e){return t.addError(r,e)})}),this}},{key:"clearErrors",value:function(e){if(!this.fieldExists(e))throw new Error("Tried to clear errors for non-existent field: "+e);return delete this.errorMap[e],this}},{key:"hasError",value:function(e){return this.fieldExists(e)&&!!this.getErrors(e).length}},{key:"fieldExists",value:function(e){return Object.keys(this.values).includes(e)}},{key:"getErrors",value:function(e){if(!this.fieldExists(e))throw new Error("Tried to get errors for non-existent field: "+e);return this.errorMap[e]||[]}},{key:"reset",value:function(){this.errorMap={}}},{key:"getState",value:function(){return this.errorMap}}]),e}();t.default=s},"./client/src/lib/dependency-injection/MiddlewareRegistry.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.GLOBAL_CONTEXT=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n("./node_modules/toposort/index.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=["before","after"],c=function(e){l.forEach(function(t){if(void 0!==e[t]&&"string"!=typeof e[t]&&!Array.isArray(e[t]))throw new Error("Middleware key "+t+" must be a string or array")})},u=function(e){var t=null;return l.forEach(function(n){if(e[n].includes("*")){if(e[n].length>1)throw new Error("\n          Key "+n+" on "+e.name+' should only specify one key \n          if using the "*" wildcard\n        ');if(t)throw new Error("\n          Cannot specify a "+n+" rule on "+e.name+" if a wildcard \n          has been specified\n        ");t=n}}),t},d=function(){function e(){r(this,e),this._middlewares=[],this._contextCache={}}return i(e,[{key:"sort",value:function(){var e=this,t=["__HEAD__","__TAIL__"],n=[t],r=[];return this._middlewares.forEach(function(e){var t=e.name,r=u(e);"after"===r?n.push(["__TAIL__",t]):"before"===r?n.push([t,"__HEAD__"]):(n.push([t,"__TAIL__"]),n.push(["__HEAD__",t]),e.before.forEach(function(e){n.push([t,e])}),e.after.forEach(function(e){n.push([e,t])}))}),(0,s.default)(n).filter(function(e){return!t.includes(e)}).forEach(function(t){r=r.concat(e._middlewares.filter(function(e){return e.name===t}))}),this._middlewares=r,this}},{key:"add",value:function(e,t,n){c(e),this._contextCache={};var r=n;r&&r.length?Array.isArray(r)||(r=[r]):r=["__GLOBAL__"];var i=o({},e,{factory:t,context:r});return l.forEach(function(t){Array.isArray(e[t])?i[t]=e[t]:i[t]=e[t]?[e[t]]:[]}),l.every(function(e){return!i[e].length})&&(i.after=["__HEAD__"],i.before=["__TAIL__"]),this._middlewares.push(i),this}},{key:"getMatchesForContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"__GLOBAL__";if(!this._contextCache[e]){var t=e.split(".");this._contextCache[e]=this._middlewares.filter(function(e){return"__GLOBAL__"===e.context[0]||e.context.every(function(e,n){return"*"===e||t[n]===e})})}return this._contextCache[e]}}]),e}();t.GLOBAL_CONTEXT="__GLOBAL__",t.default=d},"./client/src/lib/dependency-injection/applyFormMiddleware.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Injector.js"),s=r(a),l=n("./node_modules/redux-form/lib/structure/plain/getIn.js"),c=r(l),u=n("./node_modules/redux-form/lib/structure/plain/setIn.js"),d=r(u),f=n("redux-form"),p=[f.actionTypes.REGISTER_FIELD,f.actionTypes.DESTROY],h=function(e){return function(){return function(t,n){var r=e(t,n),a=n.meta&&n.meta.form;if(!a||p.includes(n.type))return r;var l=s.default.form.getSchema(a);if(!l)return r;var u=(0,c.default)(r.formState,a);if(!u)return r;var f=i({},r),h=Object.entries(r.formSchemas).filter(function(e){return o(e,2)[1].name===a});return h.length?(h.forEach(function(e){var t=o(e,2),n=t[0],r=t[1],i=l(r,u);if(!i.state||!Array.isArray(i.state.fields))throw new Error("\n      One more calls to alterSchema did not return a properly formed schema state\n      object. Check your calls to Injector.transform() which could affect '"+n+"'.\n    ");f=(0,d.default)(f,"formSchemas."+n+".state",i.state)}),f):r}}};t.default=h},"./client/src/lib/dependency-injection/buildApolloGraphqlContainer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n("./client/src/lib/dependency-injection/buildBaseContainer.js"),l=r(s),c=n("./client/src/lib/dependency-injection/ApolloGraphqlManager.js"),u=r(c),d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,l.default)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a({},e,{templates:a({},t),fragments:a({},n),scaffold:function(e,t,n){throw n.force,new Error("This API endpoint is not available yet")},register:function(t,n){var r,o=n.templateName;if(!o||!this.templates[o])throw new Error("\nTried to register a new query '"+t+"' without a defined template '"+o+"'. Please ensure the\ntemplateName config is defined and that you have registered the template before registering a query.\n      ");for(var a=arguments.length,s=Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];return(r=e.register).call.apply(r,[this,t,n].concat(i(s)))},registerTemplate:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.force;return e.isProtected.call(this),function(e){for(var r=arguments.length,s=Array(r>1?r-1:0),l=1;l<r;l++)s[l-1]=arguments[l];if(n.templates[t]&&!i)throw new Error("\nTried to register template '"+t+"' more than once. This practice is discouraged. Consider\nusing Injector.update() to enhance the template rather than override it completely.\nOtherwise, invoke the registerTemplate() function with '{ force: true }' as the second argument.\n        ");n.templates=a({},n.templates,o({},t,{strings:e,expressions:s}))}},registerFragment:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.force;if(e.isProtected.call(this),this.fragments[t]&&!i)throw new Error("\nTried to register fragment '"+t+"' more than once. This practice is discouraged. Consider\nadding a new fragment or using Injector.update() to enhance the template you're working with.\nOtherwise, invoke the registerFragment() function with '{ force: true }' as the third argument.\n      ");this.fragments=a({},this.fragments,o({},t,n))},getTemplates:function(){return a({},this.templates)},getFragments:function(){return a({},this.fragments)},getProcessedManager:function(e,t){var n=t.map(function(e){return e.factory}).reverse(),r=this.services[e],o=new u.default(r,a({},this.templates),a({},this.fragments));return n.forEach(function(e){e(o)},r),o},getFactory:function(e,t){return this.getProcessedManager(e,t).getContainer()}})};t.default=d},"./client/src/lib/dependency-injection/buildApolloGraphqlScaffoldingContainer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i,a=n("./client/src/lib/dependency-injection/buildBaseContainer.js"),s=r(a),l=n("./client/src/lib/dependency-injection/buildApolloGraphqlContainer.js"),c=r(l),u=n("./client/src/lib/dependency-injection/graphql/buildCreateMutation.js"),d=r(u),f=n("./client/src/lib/dependency-injection/graphql/buildReadQuery.js"),p=r(f),h=n("./client/src/lib/dependency-injection/graphql/buildReadOneQuery.js"),m=r(h),b=n("./client/src/lib/dependency-injection/graphql/buildUpdateMutation.js"),g=r(b),v=n("./client/src/lib/dependency-injection/graphql/buildDeleteMutation.js"),y=r(v),_=n("./client/src/lib/dependency-injection/graphql/buildBaseQuery.js"),j=r(_),w=n("./client/src/lib/dependency-injection/graphql/templates.js"),O=n("./client/src/lib/dependency-injection/graphql/tags.js"),T=(i={},o(i,w.CREATE,(0,d.default)(O.captureTag)),o(i,w.READ,(0,p.default)(O.captureTag)),o(i,w.READ_ONE,(0,m.default)(O.captureTag)),o(i,w.UPDATE,(0,g.default)(O.captureTag)),o(i,w.DELETE,(0,y.default)(O.captureTag)),o(i,w.QUERY,(0,j.default)(O.captureTag)),i),C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,s.default)();return(0,c.default)(e,T)};t.default=C},"./client/src/lib/dependency-injection/buildBaseContainer.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return Array.isArray(e)?e:Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n("./client/src/lib/dependency-injection/MiddlewareRegistry.js"),l=function(e){return e&&e.__esModule?e:{default:e}}(s),c=n("redux"),u=function(){return{middlewareRegistries:{},services:{},factories:{},factoryCache:{},initialised:!1,isProtected:function(){if(this.initialised)throw new Error("Cannot mutate DI container after it has been initialised")},get:function(e,t){if(!this.initialised)throw new Error("\n      Injector.get(): Attempted to access DI layer before it was initialised.\n      Did you forget to invoke Injector.load()?");var n=this.factories[e];if(!n)throw new Error("Injector.get(): Component "+e+" does not exist");return n(t)},customise:function(e,t,n){this.isProtected();var r=t.split("."),s=i(r),c=s[0],u=s.slice(1),d=this.middlewareRegistries[c];d||(d=new l.default,this.middlewareRegistries=a({},this.middlewareRegistries,o({},c,d))),d.add(e,n,u)},load:function(){var e=this;this.isProtected(),this.factories=Object.keys(this.services).reduce(function(t,n){var r=e.middlewareRegistries[n];return r?(r.sort(),a({},t,o({},n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.GLOBAL_CONTEXT,o=n+"__"+t;if(!e.factoryCache[o]){var i=r.getMatchesForContext(t);e.factoryCache[o]=e.getFactory(n,i)}return e.factoryCache[o]}))):a({},t,o({},n,function(){return e.getFactory(n,[])}))},{}),this.initialised=!0},register:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.force;if(this.isProtected(),this.services[e]&&!0!==r)throw new Error("\n      Tried to register service '"+e+"' more than once. This practice is discouraged. Consider\n      using Injector.update() to enhance the service rather than override it completely.\n      Otherwise, invoke the register() function with { force: true } as the third argument.\n     ");this.services=a({},this.services,o({},e,t))},registerMany:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.force;this.isProtected();var r=Object.keys(e),o=Object.keys(this.services).filter(function(e){return r.includes(e)});if(o.length&&!0!==n){var i=o.join(", ");throw new Error("\n      Tried to register services ("+i+") more than once. This practice is discouraged. Consider\n      using Injector.update() to enhance the service rather than override it completely.\n      Otherwise, invoke the register() function with { force: true } as the third argument.\n     ")}this.services=a({},this.services,e)},transform:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.isProtected(),t(this.createTransformer(e,n))},createTransformer:function(e,t){var n=this;return function(r,o){n.customise(a({name:e},t),r,o)}},getFactory:function(e,t){var n=this.services[e],o=t.map(function(e){return e.factory});return c.compose.apply(void 0,r(o))(n)}}};t.default=u},"./client/src/lib/dependency-injection/buildComponentContainer.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("./client/src/lib/dependency-injection/buildBaseContainer.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(i),s=function(e,t){return[e.displayName||e.name||"Component"].concat(r(t)).reduce(function(e,t){return t+"("+e+")"})},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,a.default)();return o({},e,{get:function(t,n){for(var o,i=arguments.length,a=Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];var l=(o=e.get).call.apply(o,[this,t,n].concat(r(a)));if(l.displayName&&l.displayName.match(/\]$/))return l;var c=l.displayName||l.name||"Component",u=n?"["+n+"]":"";return l.displayName=""+c+u,l},createTransformer:function(e,t){var n=this;return function(r,i,a){n.customise(o({name:e},t,{displayName:a}),r,i)}},getFactory:function(t,n){var r=e.getFactory.call(this,t,n),o=n.map(function(e){return e.displayName||e.name});return r.displayName=s(this.services[t],o),r}})};t.default=l},"./client/src/lib/dependency-injection/buildFormContainer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATION_MIDDLEWARE_SERVICE=t.SCHEMA_MIDDLEWARE_SERVICE=void 0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n("./client/src/lib/dependency-injection/buildBaseContainer.js"),l=r(s),c=n("./client/src/lib/dependency-injection/FormStateManager.js"),u=r(c),d=n("./client/src/lib/dependency-injection/FormValidationManager.js"),f=r(d),p=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,l.default)();return a({},t,{services:(e={},i(e,"FormSchemaMiddleware",function(e){return e}),i(e,"FormValidationMiddleware",function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}),e),register:function(){throw new Error("\n      Attempted to register a service on Injector.form. This container accepts only two\n      services by design (FormSchemaMiddleware and FormValidationMiddleware) \n      for updating form schema and adding validation, respectively. Consider using a more\n      generic container, e.g. Injector.reducer.\n    ")},registerMany:function(){this.register()},getSchema:function(e){for(var n,r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return(n=t.get).call.apply(n,[this,"FormSchemaMiddleware",e].concat(o(i)))},getValidation:function(e){for(var n,r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return(n=t.get).call.apply(n,[this,"FormValidationMiddleware",e].concat(o(i)))},createTransformer:function(e,n){var r=this,o=function(o){return function(i,s){return t.customise.call(r,a({name:e},n),o+"."+i,s)}};return{alterSchema:o("FormSchemaMiddleware"),addValidation:o("FormValidationMiddleware")}},getFactory:function(e,t){var n=t.map(function(e){return e.factory});if("FormSchemaMiddleware"===e)return this.getSchemaReducer(n);if("FormValidationMiddleware"===e)return this.getValidationReducer(n);throw new Error("Invalid service for form injector: "+e)},getSchemaReducer:function(e){return function(t,n){return e.reduce(function(e,t){var r=new u.default(e,n),o=t(r);return a({},e,o)},t)}},getValidationReducer:function(e){return function(t,n){var r=new f.default(t);return e.forEach(function(e){return e(t,r,n)}),r.getState()}}})};t.SCHEMA_MIDDLEWARE_SERVICE="FormSchemaMiddleware",t.VALIDATION_MIDDLEWARE_SERVICE="FormValidationMiddleware",t.default=p},"./client/src/lib/dependency-injection/buildInjectorContainer.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){return{services:{},initialised:!1,callbacks:[],onInit:null,register:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.force;if(this.initialised)throw new Error("Cannot mutate DI container after it has been initialised");if(this.services[e]&&!0!==r)throw new Error("\n      Tried to register service "+e+" more than once. This practice is discouraged. Consider\n      using Injector.update() to enhance the service rather than override it completely.\n      Otherwise, invoke the register() function with { force: true } as the third argument.\n     ");if(void 0!==this[e]&&!this.services[e])throw new Error("\n      Tried to register service "+e+" which is a reserved keyword. This would affect the behaviour\n      of this API class, so it is forbidden to register with Injector.\n      ");var o=["load","createTransformer","get","register"];if(!o.every(function(e){return"function"==typeof t[e]}))throw new Error("\n      Tried to register service "+e+" that is not a valid object, Injector requires an object\n      which contains the following methods: "+o.join(", ")+"\n      ");this.services[e]=t,this[e]=t},load:function(){if(this.initialised)throw new Error("Cannot mutate DI container after it has been initialised");Object.values(this.services).forEach(function(e){return e.load()}),this.initialised=!0,this.onInit&&this.onInit(),this.callbacks.forEach(function(e){e()}),this.callbacks=[]},transform:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.initialised)throw new Error("Cannot mutate DI container after it has been initialised");t(Object.entries(this.services).reduce(function(t,r){var s=a(r,2),l=s[0],c=s[1];return i({},t,o({},l,c.createTransformer(e,n)))},{}))},ready:function(e){if("function"!=typeof e)throw new Error("Callback provided is not a function");if(this.initialised)return void e();this.callbacks=[].concat(r(this.callbacks),[e])},init:function(e){if("function"!=typeof e)throw new Error("Callback provided is not a function");if(this.initialised)throw new Error("Tried to add an init() callback after Injector was initialised");this.onInit=e}}};t.default=s},"./client/src/lib/dependency-injection/buildReducerContainer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n("./client/src/lib/dependency-injection/buildBaseContainer.js"),l=r(s),c=n("./client/src/lib/dependency-injection/MiddlewareRegistry.js"),u=r(c),d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,l.default)();return a({},e,{store:null,setStore:function(e){this.store=e},customise:function(e,t,n){var r=this;this.isProtected();var i=this.middlewareRegistries[t];i||(i=new u.default,this.middlewareRegistries=a({},this.middlewareRegistries,o({},t,i)));var s=function(e){var t=r.store&&r.store.getState;return n(e)(t)};i.add(e,s)},getAll:function(){return this.initialised?Object.entries(this.factories).reduce(function(e,t){var n=i(t,2),r=n[0],s=n[1];return a({},e,o({},r,s()))},{}):Object.entries(this.services).reduce(function(e,t){var n=i(t,2),r=n[0],s=n[1];return a({},e,o({},r,s))},{})}})};t.default=d},"./client/src/lib/dependency-injection/graphql/buildBaseQuery.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""," ",""," {\n    ","(",") {\n      ","\n    }\n  }\n  ",""],[""," ",""," {\n    ","(",") {\n      ","\n    }\n  }\n  ",""]),o=n("./client/src/lib/dependency-injection/graphql/tags.js"),i=n("./client/src/lib/dependency-injection/graphql/helpers.js"),a=function(e){var t=e.operationName,n=e.queryName;return t||""+n.charAt(0).toUpperCase()+n.slice(1)},s=function(e){return e.queryName},l=function(e){return e.queryType},c=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultTag)(r,l,a,i.getVariables,s,i.getParams,i.getFields,i.getFragments)};t.default=c},"./client/src/lib/dependency-injection/graphql/buildCreateMutation.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["mutation Create","(\n    $input:","!\n  ) {\n    create","(\n      input: $input\n    ) {\n      ","\n    }\n  }\n  ",""],["mutation Create","(\n    $input:","!\n  ) {\n    create","(\n      input: $input\n    ) {\n      ","\n    }\n  }\n  ",""]),o=n("./client/src/lib/dependency-injection/graphql/tags.js"),i=n("./client/src/lib/dependency-injection/graphql/helpers.js"),a=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultTag)(r,i.getSingularName,i.getCreateMutationType,i.getSingularName,i.getFields,i.getFragments)};t.default=a},"./client/src/lib/dependency-injection/graphql/buildDeleteMutation.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["mutation Delete","($IDs:[ID]!) {\n    delete","(IDs: $IDs)\n  }"],["mutation Delete","($IDs:[ID]!) {\n    delete","(IDs: $IDs)\n  }"]),o=n("./client/src/lib/dependency-injection/graphql/tags.js"),i=n("./client/src/lib/dependency-injection/graphql/helpers.js"),a=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultTag)(r,i.getSingularName,i.getSingularName)};t.default=a},"./client/src/lib/dependency-injection/graphql/buildReadOneQuery.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["query ReadOne","($ID: ID!)  {\n    readOne","(ID: $ID) {\n      ","\n    }\n  }\n  ",""],["query ReadOne","($ID: ID!)  {\n    readOne","(ID: $ID) {\n      ","\n    }\n  }\n  ",""]),o=n("./client/src/lib/dependency-injection/graphql/tags.js"),i=n("./client/src/lib/dependency-injection/graphql/helpers.js"),a=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultTag)(r,i.getSingularName,i.getSingularName,i.getFields,i.getFragments)};t.default=a},"./client/src/lib/dependency-injection/graphql/buildReadQuery.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["query Read",""," {\n    read",""," {\n      ","\n    }\n  }\n  ",""],["query Read",""," {\n    read",""," {\n      ","\n    }\n  }\n  ",""]),o=n("./client/src/lib/dependency-injection/graphql/tags.js"),i=n("./client/src/lib/dependency-injection/graphql/helpers.js"),a=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultTag)(r,i.getPluralName,i.getVariables,i.getPluralName,i.getRootParams,i.getFields,i.getFragments)};t.default=a},"./client/src/lib/dependency-injection/graphql/buildUpdateMutation.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["mutation Update","(\n    $input:","!\n    ","\n  ) {\n    update","(\n      input: $input\n      ","\n    ) {\n      ","\n    }\n  }\n  ",""],["mutation Update","(\n    $input:","!\n    ","\n  ) {\n    update","(\n      input: $input\n      ","\n    ) {\n      ","\n    }\n  }\n  ",""]),o=n("./client/src/lib/dependency-injection/graphql/tags.js"),i=n("./client/src/lib/dependency-injection/graphql/helpers.js"),a=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultTag)(r,i.getSingularName,i.getUpdateMutationType,i.getVariables,i.getSingularName,i.getParams,i.getFields,i.getFragments)};t.default=a},"./client/src/lib/dependency-injection/graphql/helpers.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(){return!!document.body.getAttribute("data-graphql-legacy")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t.ROOT_FIELD="root",l={limit:"Int",offset:"Int"},c=function(e){return"edges { node { "+e.join(" ")+" } } pageInfo { totalCount }"},u=(t.getSingularName=function(e){return e.singularName},t.getPluralName=function(e){return e.pluralName},t.getVariables=function(e){var t=e.params,n=e.pagination,r=void 0===n||n,o=r?a({},t,l):t,s=Object.entries(o).map(function(e){var t=i(e,2);return"$"+t[0]+": "+t[1]});return s.length?"("+s.join(", ")+")":""},t.getParams=function(e){var t=e.params,n=e.pagination,r=void 0===n||n,o=r?a({},t,l):t,s=Object.entries(o).map(function(e){var t=i(e,2);return t[0]+": $"+t[1]});return s.length?"("+s.join(", ")+")":""});t.getRootParams=function(e){var t=e.args,n=e.pagination,r=void 0===n||n,o=t[s]||{};return u({params:o,pagination:r})},t.getFields=function e(t){var n=t.args,o=t.fields,i=t.pagination,a=void 0===i||i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[s],d=o.map(function(t,i){if(Array.isArray(t))return"\n      {\n        "+e({args:n,fields:t,pagination:!1},[].concat(r(l),[o[i-1]]))+"\n      }";var a=[].concat(r(l),[t]),s=a.join("/"),c=n[s]||{};return""+t+u({params:c,pagination:!1})});return a?c(d):d.join(" ")},t.getFragments=function(e){var t=e.availableFragments,n=e.fragments,r=void 0===n?[]:n;return Object.entries(t).reduce(function(e,t){var n=i(t,2),o=n[0],a=n[1];return r.includes(o)?e+" "+a:e},"")},t.getCreateMutationType=function(e){var t=e.singularName;return o()?t+"CreateInputType":"Create"+t+"Input"},t.getUpdateMutationType=function(e){var t=e.singularName;return o()?t+"UpdateInputType":"Update"+t+"Input"}},"./client/src/lib/dependency-injection/graphql/tags.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=(t.captureTag=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{strings:e,expressions:n}},t.defaultTag=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.map(function(e,t){return""+e+(0===n[t]?n[t]:n[t]||"")}).join("")});t.processTag=function(e){return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var s=i.map(function(t){return"function"!=typeof t?t:t(e)});return o.apply(void 0,[t].concat(r(s)))}}},"./client/src/lib/dependency-injection/graphql/templates.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CREATE="scaffoldCreate",t.READ="scaffoldRead",t.READ_ONE="scaffoldReadOne",t.UPDATE="scaffoldUpdate",t.DELETE="scaffoldDelete",t.QUERY="baseQuery"},"./client/src/lib/dependency-injection/inject.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d=n("react"),f=r(d),p=n("./client/src/lib/dependency-injection/injectorContext.js"),h=r(p),m=function(e,t){return t},b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;return function(r){if(e&&!Array.isArray(e))throw new Error("\n      withInjector() passed an argument for dependencies that is "+("undefined"==typeof deps?"undefined":u(deps))+".\n      Must be an array of named dependencies.\n    ");if(t&&"function"!=typeof t)throw new Error("\n      Second parameter of inject() [mapDependenciesToProps] must be a function, taking the resolved\n      dependencies as enumerated arguments, and returning a map of prop names to dependencies.\n    ");if("function"!=typeof n)throw new Error("\n      Third parameter of inject() [getContext] must be a function, taking the component's props\n      and current inject context as parameters, and returning a string representing the Injector\n      context to use throughout the component.\n    ");var p=function(d){function p(e,t){i(this,p);var r=a(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,e,t));return r.state={context:n(e,t.injector.context)},r}return s(p,d),c(p,[{key:"getChildContext",value:function(){return{injector:l({},this.context.injector,{context:this.state.context})}}},{key:"render",value:function(){var n=this,i={};if(e){var a=this.context.injector.get,s=e.map(function(e){return a(e,n.state.context)});if(t?i=t.apply(void 0,o(s)):e.forEach(function(e,t){i[e]=s[t]}),!i||"object"!==(void 0===i?"undefined":u(i)))throw new Error("\n            mapDepedenciesToProps parameter passed to inject()\n            should return an object that maps prop names to dependencies\n          ")}var c=l({},i,this.props);return f.default.createElement(r,c)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=n(e,t.context);return r!==t.context?{context:r}:null}}]),p}(d.Component);return p.contextTypes=h.default,p.childContextTypes=h.default,p}};t.default=b},"./client/src/lib/dependency-injection/injectGraphql.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("./client/src/lib/dependency-injection/Container.js"),d=r(u),f=n("./client/src/lib/dependency-injection/withInjector.js"),p=r(f),h=function(e,t){return function(n){var r=function(r){function l(e){o(this,l);var t=i(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e));return t.state={target:null,error:!1},t}return a(l,r),s(l,[{key:"componentDidMount",value:function(){var r=this;d.default.ready(function(){var o=!0,i=null;try{var a=r.context.injector.query(e,t),s=a.getApolloHOC();i=s(n),o=!1}catch(e){throw r.setState({target:i,error:o}),e}r.setState({target:i,error:o})})}},{key:"render",value:function(){if(this.state.error){var n=[e,t].join("."),r="Error loading '"+n+"', perhaps it wasn't registered properly?";return c.default.createElement("div",null,r)}var o=this.state.target;return o?c.default.createElement(o,this.props):null}}]),l}(l.Component);return(0,p.default)(r)}};t.default=h},"./client/src/lib/dependency-injection/injectorContext.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("prop-types"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={injector:o.default.shape({get:o.default.func,context:o.default.string,validate:o.default.func})}},"./client/src/lib/dependency-injection/loadComponent.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("react-redux"),f=n("react-apollo"),p=n("./client/src/lib/dependency-injection/provideInjector.js"),h=r(p),m=n("./client/src/lib/dependency-injection/withInjector.js"),b=r(m),g=n("./client/src/lib/dependency-injection/Container.js"),v=r(g),y=n("./client/src/components/NotFoundComponent/NotFoundComponent.js"),_=r(y),j=n("./client/src/lib/dependency-injection/injectorContext.js"),w=r(j),O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=function(n){function r(e){o(this,r);var t=i(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.state={target:null,error:!1},t}return a(r,n),l(r,[{key:"getChildContext",value:function(){var e=t&&t.context;return e?{injector:s({},this.context.injector,{context:e})}:this.context}},{key:"componentDidMount",value:function(){var n=this;v.default.ready(function(){if("string"==typeof e){var r=!0,o=null;try{o=n.context.injector.get(e,t&&t.context),r=!1}catch(e){throw n.setState({target:o,error:r}),e}return void n.setState({target:o,error:r})}n.setState({target:e})})}},{key:"render",value:function(){var n=this.state.target;if(this.state.error){var r=_.default;try{r=this.context.injector.get("NotFoundComponent")}catch(e){}return u.default.createElement(r,s({},this.props,{itemName:e}))}if(n){if(t){var o=s({},window.ss,t),i=o.store,a=o.apolloClient;return u.default.createElement(f.ApolloProvider,{client:a},u.default.createElement(d.Provider,{store:i},u.default.createElement(n,this.props)))}return u.default.createElement(n,this.props)}return null}}]),r}(c.Component);return r.childContextTypes=w.default,(n||h.default)((0,b.default)(r))};t.default=O},"./client/src/lib/dependency-injection/provideContext.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("./client/src/lib/dependency-injection/injectorContext.js"),f=r(d),p=function(e){return function(t){var n=function(n){function r(){return o(this,r),i(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return a(r,n),l(r,[{key:"getChildContext",value:function(){return{injector:s({},this.context.injector,{context:e})}}},{key:"render",value:function(){return u.default.createElement(t,this.props)}}]),r}(c.Component);return n.contextTypes=f.default,n.childContextTypes=f.default,n}};t.default=p},"./client/src/lib/dependency-injection/provideInjector.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default,n=function(n){function r(){return o(this,r),i(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return a(r,n),l(r,[{key:"getChildContext",value:function(){var e=t.component,n=t.form,r=t.query;return{injector:{query:r.get.bind(r),get:e.get.bind(e),validate:n.getValidation.bind(n)}}}},{key:"render",value:function(){return u.default.createElement(e,this.props)}}]),r}(c.Component);return n.childContextTypes=h.default,n}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("./client/src/lib/dependency-injection/Container.js"),f=r(d),p=n("./client/src/lib/dependency-injection/injectorContext.js"),h=r(p);t.default=s},"./client/src/lib/dependency-injection/withInjector.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n("./client/src/lib/dependency-injection/injectorContext.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=function(e){return e.contextTypes=r({},e.contextTypes||{},i.default),e.displayName="withInjector(\n    "+(e.displayName||e.name||"Component")+"\n  )",e};t.default=a},"./client/src/state/breadcrumbs/BreadcrumbsActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={SET_BREADCRUMBS:"SET_BREADCRUMBS"}},"./client/src/state/breadcrumbs/BreadcrumbsReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments[1];switch(t.type){case l.default.SET_BREADCRUMBS:return(0,a.default)(Object.assign([],t.payload.breadcrumbs));default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n("deep-freeze-strict"),a=r(i),s=n("./client/src/state/breadcrumbs/BreadcrumbsActionTypes.js"),l=r(s),c=(0,a.default)([]);t.default=o},"./client/src/state/config/ConfigActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={SET_CONFIG:"SET_CONFIG"}},"./client/src/state/config/ConfigActions.js":function(e,t,n){"use strict";function r(e){return{type:i.default.SET_CONFIG,payload:{config:e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.setConfig=r;var o=n("./client/src/state/config/ConfigActionTypes.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o)},"./client/src/state/config/ConfigReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case l.default.SET_CONFIG:return(0,a.default)(Object.assign({},e,t.payload.config));default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n("deep-freeze-strict"),a=r(i),s=n("./client/src/state/config/ConfigActionTypes.js"),l=r(s);t.default=o},"./client/src/state/mobileMenu/MobileMenuActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TOGGLE_MENU:"TOGGLE_MENU",OPEN_MENU:"OPEN_MENU",CLOSE_MENU:"CLOSE_MENU"}},"./client/src/state/mobileMenu/MobileMenuActions.js":function(e,t,n){"use strict";function r(){return{type:s.default.TOGGLE_MENU,payload:null}}function o(){return{type:s.default.OPEN_MENU,payload:null}}function i(){return{type:s.default.CLOSE_MENU,payload:null}}Object.defineProperty(t,"__esModule",{value:!0}),t.toggleMobileMenu=r,t.openMobileMenu=o,t.closeMobileMenu=i;var a=n("./client/src/state/mobileMenu/MobileMenuActionTypes.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(a)},"./client/src/state/mobileMenu/MobileMenuReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;switch(arguments[1].type){case c.default.TOGGLE_MENU:return(0,s.default)(i({},e,{isOpen:!e.isOpen}));case c.default.OPEN_MENU:return(0,s.default)(i({},e,{isOpen:!0}));case c.default.CLOSE_MENU:return(0,s.default)(i({},e,{isOpen:!1}));default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("deep-freeze-strict"),s=r(a),l=n("./client/src/state/mobileMenu/MobileMenuActionTypes.js"),c=r(l),u={isOpen:!1};t.default=o},"./client/src/state/records/RecordsReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments[1];switch(t.type){case d.default.FETCH_RECORDS_SUCCESS:var n=t.payload.recordType;if(!n)throw new Error("Undefined record type");var r=t.payload.data._embedded[n]||[];return(0,c.default)(s({},e,i({},n,r)));case d.default.FETCH_RECORD_SUCCESS:var a=t.payload.recordType,l=t.payload.data;if(!a)throw new Error("Undefined record type");if(!l)throw new Error("Undefined record data given");var u=e[a]||[];return u.find(function(e){return e.ID===l.ID})?(0,c.default)(s({},e,i({},a,u.map(function(e){return e.ID===l.ID?l:e})))):(0,c.default)(s({},e,i({},a,[].concat(o(u),[l]))));case d.default.DELETE_RECORD_SUCCESS:var p=t.payload.recordType;if(!p)throw new Error("Undefined record type");var h=e[p].filter(function(e){return e.ID!==t.payload.id});return(0,c.default)(s({},e,i({},p,h)));default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n("deep-freeze-strict"),c=r(l),u=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/records/RecordsActionTypes.js"),d=r(u),f={};t.default=a},"./client/src/state/schema/SchemaActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={SET_SCHEMA:"SET_SCHEMA",SET_SCHEMA_STATE_OVERRIDES:"SET_SCHEMA_STATE_OVERRIDES",SET_SCHEMA_LOADING:"SET_SCHEMA_LOADING"};t.default=r},"./client/src/state/schema/SchemaReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;switch(t.type){case u.default.SET_SCHEMA:var n=e[t.payload.id]||{};return(0,l.default)(a({},e,o({},t.payload.id,a({},n,t.payload))));case u.default.SET_SCHEMA_STATE_OVERRIDES:var r=e[t.payload.id]||{},i=t.payload.stateOverride;return i&&i.fields?(0,l.default)(a({},e,o({},t.payload.id,a({},r,{stateOverride:i})))):e;case u.default.SET_SCHEMA_LOADING:var s=e[t.payload.id]||{},c=s.metadata||{};return(0,l.default)(a({},e,o({},t.payload.id,a({},s,{metadata:a({},c,{loading:t.payload.loading})}))));default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=i;var s=n("deep-freeze-strict"),l=r(s),c=n("./client/src/state/schema/SchemaActionTypes.js"),u=r(c),d=(0,l.default)({})},"./client/src/state/tabs/TabsActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TABS_ACTIVATE_TAB:"TABS_ACTIVATE_TAB"}},"./client/src/state/tabs/TabsReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=(0,l.default)(e,t,f);switch(t.type){case u.default.TABS_ACTIVATE_TAB:return n(function(){return{activeTab:t.payload.tab}});default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n("deep-freeze-strict"),a=r(i),s=n("lib/reduxFieldReducer"),l=r(s),c=n("./client/src/state/tabs/TabsActionTypes.js"),u=r(c),d=(0,a.default)({fields:{}}),f=(0,a.default)({activeTab:null})},"./client/src/state/toasts/ToastConstants.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STAY_TIME=6e3,t.FADEOUT_TIME=1200},"./client/src/state/toasts/ToastsActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={DISPLAY:"DISPLAY_TOAST",DISMISS:"DISMISS_TOAST",REMOVE:"REMOVE_TOAST",PAUSE:"PAUSE_TOAST",RESUME:"RESUME_TOAST"}},"./client/src/state/toasts/ToastsReducer.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1],n=t.type,r=t.payload;switch(n){case l.default.DISPLAY:return m(e,r);case l.default.DISMISS:return b(e,r.id);case l.default.REMOVE:return g(e,r.id);case l.default.PAUSE:return f(e);case l.default.RESUME:return p(e);default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n("./client/src/state/toasts/ToastsActionTypes.js"),l=function(e){return e&&e.__esModule?e:{default:e}}(s),c=n("./client/src/state/toasts/ToastConstants.js"),u={paused:!1,toasts:[]},d=function(e){var t=e.stay,n=e.dismissCallback;return t?void 0:setTimeout(n,c.STAY_TIME)},f=function(e){return{paused:!0,toasts:e.toasts.map(function(e){var t=e.timeout,n=o(e,["timeout"]);return t&&clearTimeout(t),n})}},p=function(e){return{paused:!1,toasts:e.toasts.map(function(e){return a({timeout:d(e)},e)})}},h=function(e,t){return a({},e,{toasts:t})},m=function(e,t){return h(e,[].concat(r(e.toasts),[a({},t,{timeout:e.paused?void 0:d(t),dismissed:!1})]))},b=function(e,t){return h(e,e.toasts.map(function(e){return e.id===t?a({},e,{dismissed:!0}):e}))},g=function(e,t){return h(e,e.toasts.filter(function(e){return e.id!==t}))};t.default=i},"./client/src/state/treeDropdownField/TreeDropdownFieldActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TREEFIELD_SET_VISIBLE:"TREEDROPDOWNFIELD_SET_VISIBLE",TREEFIELD_UPDATED_TREE:"TREEDROPDOWNFIELD_UPDATED_TREE",TREEFIELD_UPDATING_TREE:"TREEDROPDOWNFIELD_UPDATING_TREE",TREEFIELD_UPDATE_FAILED:"TREEFIELD_UPDATE_FAILED",TREEFIELD_SET_SEARCH:"TREEFIELD_SET_SEARCH",TREEFIELD_ADD_SELECTED_VALUES:"TREEFIELD_ADD_SELECTED_VALUES"}},"./client/src/state/treeDropdownField/TreeDropdownFieldActions.js":function(e,t,n){"use strict";function r(e,t){return{type:u.default.TREEFIELD_SET_VISIBLE,payload:{fieldId:e,path:t}}}function o(e,t){return{type:u.default.TREEFIELD_UPDATING_TREE,payload:{fieldId:e,path:t}}}function i(e,t,n){return{type:u.default.TREEFIELD_UPDATED_TREE,payload:{fieldId:e,path:t,tree:n}}}function a(e,t){return{type:u.default.TREEFIELD_UPDATE_FAILED,payload:{fieldId:e,path:t}}}function s(e,t){return{type:u.default.TREEFIELD_SET_SEARCH,payload:{fieldId:e,search:t}}}function l(e,t){return{type:u.default.TREEFIELD_ADD_SELECTED_VALUES,payload:{fieldId:e,values:t}}}Object.defineProperty(t,"__esModule",{value:!0}),t.setVisible=r,t.beginTreeUpdating=o,t.updateTree=i,t.updateTreeFailed=a,t.setSearch=s,t.addSelectedValues=l;var c=n("./client/src/state/treeDropdownField/TreeDropdownFieldActionTypes.js"),u=function(e){return e&&e.__esModule?e:{default:e}}(c)},"./client/src/state/treeDropdownField/TreeDropdownFieldReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e){return Array.isArray(e)?e:Array.from(e)}function a(e,t,n){if(0===t.length)return n;var r=i(t),o=r[0],s=r.slice(1);return e.children?(0,d.default)(c({},e,{children:e.children.map(function(e){return e.id===o?a(e,s,n):e})})):e}function s(e){return e.length?e[e.length-1]:0}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=(0,p.default)(e,t,g),r=function(e,t){return e.filter(function(e){return e!==t})},i=function(e,t){return e.find(function(e){return e===t})?e:[].concat(o(e),[t]).sort()};switch(t.type){case m.default.TREEFIELD_SET_VISIBLE:return n(function(){return{visible:t.payload.path}});case m.default.TREEFIELD_UPDATING_TREE:return n(function(e){return{loading:i(e.loading,s(t.payload.path)),failed:r(e.failed,s(t.payload.path))}});case m.default.TREEFIELD_UPDATED_TREE:return n(function(e){return{tree:a(e.tree,t.payload.path,t.payload.tree),loading:r(e.loading,s(t.payload.path)),failed:r(e.failed,s(t.payload.path))}});case m.default.TREEFIELD_UPDATE_FAILED:return n(function(e){return{loading:r(e.loading,s(t.payload.path)),failed:i(e.failed,s(t.payload.path))}});case m.default.TREEFIELD_SET_SEARCH:return n(function(e){return c({},e,{search:t.payload.search})});case m.default.TREEFIELD_ADD_SELECTED_VALUES:var l=t.payload.values||[];return n(function(e){return c({},e,{selectedValues:[].concat(o(e.selectedValues.filter(function(e){return!l.find(function(t){return t.id===e.id})})),o(l)).sort(function(e,t){return e.id-t.id})})});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=l;var u=n("deep-freeze-strict"),d=r(u),f=n("lib/reduxFieldReducer"),p=r(f),h=n("./client/src/state/treeDropdownField/TreeDropdownFieldActionTypes.js"),m=r(h),b=(0,d.default)({fields:{}}),g=(0,d.default)({visible:[],tree:{},loading:[],failed:[],search:"",selectedValues:[]})},"./client/src/state/unsavedForms/UnsavedFormsActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={ADD_FORM_CHANGED:"ADD_FORM_CHANGED",REMOVE_FORM_CHANGED:"REMOVE_FORM_CHANGED"}},"./client/src/state/unsavedForms/UnsavedFormsReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=t.meta&&t.meta.form;switch(t.type){case u.default.ADD_FORM_CHANGED:case l.actionTypes.CHANGE:return(0,s.default)([].concat(o(e.filter(function(e){return e.name!==n})),[{name:n}]));case u.default.REMOVE_FORM_CHANGED:case l.actionTypes.STOP_SUBMIT:return(0,s.default)([].concat(o(e.filter(function(e){return e.name!==n}))));case l.actionTypes.DESTROY:return(0,s.default)([].concat(o(e.filter(function(e){return!n.includes(e.name)}))));default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n("deep-freeze-strict"),s=r(a),l=n("redux-form"),c=n("./client/src/state/unsavedForms/UnsavedFormsActionTypes.js"),u=r(c);t.default=i},"./client/src/state/usedOn/usedOnActions.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return{type:u.default.SAVE_USED_ON,payload:{identifier:e,usedOn:t}}}function i(e,t){return{type:u.default.LOAD_USED_ON_FAILED,payload:{identifier:e,error:t.message}}}function a(e,t,n){var r={method:t,headers:{Accept:"application/json"},credentials:"same-origin"};return function(a){if(!e||!t||!n){var s=l.default._t("Admin.NOT_AVAILABLE_USED_DATA","The usage data is currently unavailable.");return Promise.resolve(a(i(e,s)))}return a({type:u.default.LOAD_USED_ON,payload:{identifier:e}}),(0,f.default)(n,r).then(function(e){return e.json()}).then(function(t){a(o(e,t))}).catch(function(t){a(i(e,t))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.saveUsedOn=o,t.loadUsedOnFailed=i,t.loadUsedOn=a;var s=n("i18n"),l=r(s),c=n("./client/src/state/usedOn/usedOnTypes.js"),u=r(c),d=n("isomorphic-fetch"),f=r(d)},"./client/src/state/usedOn/usedOnReducer.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1],n=t&&t.payload&&t.payload.identifier;if(!n)return e;switch(t.type){case c.default.SAVE_USED_ON:var i=t.payload.usedOn;return s({},e,{loading:e.loading.filter(function(e){return e!==n}),usedOn:s({},e.usedOn,o({},n,i.usage))});case c.default.LOAD_USED_ON:return e.loading.includes(n)?e:s({},e,{loading:[].concat(r(e.loading),[n]),errors:Object.entries(e.errors).reduce(function(e,t){var r=a(t,2),i=r[0],l=r[1];return i===n?e:s({},e,o({},i,l))},{})});case c.default.LOAD_USED_ON_FAILED:var l=t.payload.error;return s({},e,{loading:e.loading.filter(function(e){return e!==n}),errors:s({},e.errors,o({},n,l))});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n("./client/src/state/usedOn/usedOnTypes.js"),c=function(e){return e&&e.__esModule?e:{default:e}}(l),u={loading:[],usedOn:{},errors:{}};t.default=i},"./client/src/state/usedOn/usedOnTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={LOAD_USED_ON:"LOAD_USED_ON",SAVE_USED_ON:"SAVE_USED_ON",LOAD_USED_ON_FAILED:"LOAD_USED_ON_FAILED"};t.default=r},"./client/src/state/viewMode/ViewModeActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={SELECT_EDIT:"SELECT_EDIT",SELECT_PREVIEW:"SELECT_PREVIEW",SELECT_SPLIT:"SELECT_SPLIT",SPLIT_AVAILABLE:"SPLIT_AVAILABLE"}},"./client/src/state/viewMode/ViewModeReducer.js":function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments[1];switch(t.type){case a.default.SELECT_EDIT:return o({},e,{activeState:l.VIEW_MODE_STATES.EDIT,lockState:!0});case a.default.SELECT_PREVIEW:return o({},e,{activeState:l.VIEW_MODE_STATES.PREVIEW,lockState:!0});case a.default.SELECT_SPLIT:return o({},e,{activeState:l.VIEW_MODE_STATES.SPLIT,lockState:!1});case a.default.SPLIT_AVAILABLE:var n=t.payload.panelWidth>s.SPLITMODE_BREAKPOINT,r=e.activeState;return e.lockState||r!==l.VIEW_MODE_STATES.SPLIT||n?!e.lockState&&r===l.VIEW_MODE_STATES.EDIT&&n&&(r=l.VIEW_MODE_STATES.SPLIT):r=l.VIEW_MODE_STATES.EDIT,o({},e,{splitAvailable:n,activeState:r});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("./client/src/state/viewMode/ViewModeActionTypes.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n("./client/src/lib/constants.js"),l=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/viewMode/ViewModeStates.js"),c={activeState:l.VIEW_MODE_STATES.SPLIT,splitAvailable:!0,lockState:!1};t.default=r},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Accordion/Accordion.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("react"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e){return o.default.createElement("div",{className:"accordion",role:"tablist","aria-multiselectable":"true"},e.children)};t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Accordion/AccordionBlock.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("react"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e){var t=e.groupid+"_Header",n=e.groupid+"_Items",r=n.replace(/\\/g,"_"),i=t.replace(/\\/g,"_"),a={id:r,"aria-expanded":!0,className:"list-group list-group-flush collapse show",role:"tabpanel","aria-labelledby":t};return o.default.createElement("div",{className:"accordion__block"},o.default.createElement("a",{className:"accordion__title","data-toggle":"collapse",href:"#"+r,"aria-expanded":"true","aria-controls":n,id:i,role:"tab"},e.title),o.default.createElement("div",a,e.children))};t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Badge/Badge.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.statuses=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("classnames"),d=r(u),f=n("prop-types"),p=r(f),h=t.statuses=["default","info","success","warning","danger","primary","secondary"],m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){var e=this.props,t=e.status,n=e.inverted,r=e.className,o=e.message;if(!t)return null;var i=n?"badge-"+t+"--inverted":"",a=(0,d.default)(r,"badge","badge-"+t,i);return c.default.createElement("span",{className:a},o)}}]),t}(l.PureComponent);m.propTypes={message:p.default.node,status:p.default.oneOf(h),className:p.default.string,inverted:p.default.bool},m.defaultProps={status:"default",className:"badge-pill",inverted:!1},t.default=m},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Breadcrumb/Breadcrumb.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){return{crumbs:e.breadcrumbs}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n("react"),f=r(d),p=n("react-redux"),h=n("classnames"),m=r(h),b=n("prop-types"),g=r(b),v=n("components/FileStatusIcon/FileStatusIcon"),y=r(v),_=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"getLastCrumb",value:function(){return this.props.crumbs&&this.props.crumbs[this.props.crumbs.length-1]}},{key:"renderBreadcrumbs",value:function(){return this.props.crumbs?this.props.crumbs.slice(0,-1).map(function(e){return f.default.createElement("li",{key:e.text,className:"breadcrumb__item"},f.default.createElement("a",{className:"breadcrumb__item-title",href:e.href,onClick:e.onClick},e.text))}):null}},{key:"renderLastCrumb",value:function(){var e=this.getLastCrumb();return e?f.default.createElement("div",{className:"breadcrumb__item breadcrumb__item--last"},f.default.createElement("h2",{className:"breadcrumb__item-title"},e.text,e.icon&&this.renderIcons([e.icon]),e.icons&&this.renderIcons(e.icons))):null}},{key:"renderIcons",value:function(e){return e.map(function(e,t){var n=e.nodeName,r=e.className,i=e.hasRestrictedAccess,a=o(e,["nodeName","className","hasRestrictedAccess"]),s=c({},a),l=(0,m.default)(["breadcrumb__icon",r]);return s=c({tabIndex:"0"},s),s.hasOwnProperty("onClick")&&(s=c({role:"button"},s)),s.key="breadcrumb-icon-"+t,"FileStatusIcon"===n?(s.fileID=0,s.hasRestrictedAccess=i,s.extraClassName=l,f.default.createElement(y.default,s)):(s.className=l,f.default.createElement("span",s))})}},{key:"render",value:function(){return f.default.createElement("div",{className:"breadcrumb__container fill-height flexbox-area-grow"},this.props.crumbs&&this.props.crumbs.length>1&&f.default.createElement("div",{className:"breadcrumb__list-container"},f.default.createElement("ol",{className:"breadcrumb"},this.renderBreadcrumbs())),this.renderLastCrumb())}}]),t}(d.Component);_.propTypes={crumbs:g.default.arrayOf(g.default.shape({onClick:g.default.func,text:g.default.string,icon:g.default.shape({nodeName:g.default.string,className:g.default.string,onClick:g.default.func,action:function(e){if(e.action)throw new Error("action: no longer used")}}),icons:g.default.arrayOf(g.default.shape({nodeName:g.default.string,className:g.default.string,onClick:g.default.func}))}))},t.Component=_,t.default=(0,p.connect)(l)(_)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Button/BackButton.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("react"),s=r(a),l=n("components/Button/Button"),c=r(l),u=n("classnames"),d=r(u),f=n("i18n"),p=r(f),h=function(e){var t=e.className,n=o(e,["className"]);return s.default.createElement(c.default,i({className:(0,d.default)(t,"back-button")},n))};h.propTypes=c.default.propTypes,h.defaultProps=i({},c.default.defaultProps,{noText:!0,icon:"left-open-big",children:p.default._t("Admin.BACK","Back")}),t.default=h},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Button/Button.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("react"),s=r(a),l=n("reactstrap"),c=n("prop-types"),u=r(c),d=n("classnames"),f=r(d),p=n("./client/src/components/Button/IconHOC.js"),h=r(p),m=function(e){var t=e.className,n=e.noText,r=e.children,a=o(e,["className","noText","children"]);return s.default.createElement(l.Button,i({className:(0,f.default)(t,{"btn--no-text":n}),"aria-label":n?r:void 0},a),n?void 0:r)};m.propTypes=i({},l.Button.propTypes,{noText:u.default.bool}),m.defaultProps=i({},l.Button.defaultProps,{noText:!1}),t.default=(0,h.default)(m)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/CheckboxSetField/CheckboxSetField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("./client/src/components/OptionsetField/OptionField.js"),f=r(d),p=n("components/FieldHolder/FieldHolder"),h=r(p),m=n("prop-types"),b=r(m),g=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getItemKey=n.getItemKey.bind(n),n.getOptionProps=n.getOptionProps.bind(n),n.handleChange=n.handleChange.bind(n),n.getValues=n.getValues.bind(n),n}return a(t,e),l(t,[{key:"getItemKey",value:function(e,t){return this.props.id+"-"+(e.value||"empty"+t)}},{key:"getValues",value:function(){var e=this.props.value;return Array.isArray(e)||("string"==typeof e&&(e=e.length?[e]:[]),"number"==typeof e&&(e=[e])),e?e.map(function(e){return""+e}):[]}},{key:"getOptionProps",value:function(e,t){var n=this.getValues(),r=this.getItemKey(e,t);return{key:r,id:r,name:this.props.name,className:this.props.itemClass,disabled:e.disabled||this.props.disabled,readOnly:this.props.readOnly,onChange:this.handleChange,value:n.indexOf(""+e.value)>-1,title:e.title,type:"checkbox"}}},{key:"handleChange",value:function(e,t){var n=this;if("function"==typeof this.props.onChange){var r=this.getValues(),o=this.props.source.filter(function(e,o){return n.getItemKey(e,o)===t.id?1===t.value:r.indexOf(""+e.value)>-1}).map(function(e){return""+e.value});this.props.onChange(e,{id:this.props.id,value:o})}}},{key:"render",value:function(){var e=this;return this.props.source?u.default.createElement("div",null,this.props.source.map(function(t,n){return u.default.createElement(f.default,s({},e.getOptionProps(t,n),{hideLabels:!0}))})):null}}]),t}(c.Component);g.propTypes={className:b.default.string,extraClass:b.default.string,itemClass:b.default.string,id:b.default.string,name:b.default.string.isRequired,source:b.default.arrayOf(b.default.shape({value:b.default.oneOfType([b.default.string,b.default.number]),title:b.default.any,disabled:b.default.bool})),onChange:b.default.func,value:b.default.any,readOnly:b.default.bool,disabled:b.default.bool},g.defaultProps={extraClass:"",className:"",value:[]},t.Component=g;var v=function(e){var t=(0,h.default)(g);return u.default.createElement(t,e)};t.default=v},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FieldHolder/FieldHolder.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){var t=function(t){function n(){return i(this,n),a(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return s(n,t),u(n,[{key:"getMessage",value:function(){var e=null;this.props.message&&this.props.message.value&&(e=this.props.message);var t=this.props.meta;return t&&t.error&&t.touched&&(!e||t.dirty)&&(e=t.error),e}},{key:"getHolderProps",value:function(){var e;return{className:(0,g.default)((e={field:!0},o(e,this.props.extraClass,!0),o(e,"readonly",this.props.readOnly),e)),id:this.props.holderId}}},{key:"renderMessage",value:function(){var e=this.getMessage();if(!e)return null;var t=(0,g.default)(["form__field-message","form__field-message--"+e.type]),n=(0,m.default)("div",e.value);return f.default.createElement("div",{className:t},n)}},{key:"renderLeftTitle",value:function(){var e=null!==this.props.leftTitle?this.props.leftTitle:this.props.title;return!e||this.props.hideLabels?null:(0,m.default)(p.Label,e,{className:"form__field-label",for:this.props.id})}},{key:"renderRightTitle",value:function(){return!this.props.rightTitle||this.props.hideLabels?null:(0,m.default)(p.Label,this.props.rightTitle,{className:"form__field-label",for:this.props.id})}},{key:"renderField",value:function(){var t=Boolean(this.getMessage()),n=c({},this.props,{extraClass:(0,g.default)(this.props.extraClass,{"is-invalid":t})}),r=f.default.createElement(e,n),o=this.props.data.prefix,i=this.props.data.suffix;return o||i?f.default.createElement(p.InputGroup,null,o&&f.default.createElement(p.InputGroupAddon,{addonType:"prepend"},o),r,i&&f.default.createElement(p.InputGroupAddon,{addonType:"append"},i)):r}},{key:"renderTitleTip",value:function(){return this.props.id&&this.props.titleTip&&this.props.titleTip.content?f.default.createElement(j.default,{id:"FieldHolder-"+this.props.id+"-titleTip",content:this.props.titleTip.content,fieldTitle:this.props.title,type:_.TIP_TYPES.TITLE,icon:"menu-help"}):null}},{key:"renderDescription",value:function(){return null===this.props.description?null:(0,m.default)("div",this.props.description,{className:"form__field-description"})}},{key:"render",value:function(){return this.props.noHolder?this.renderField():f.default.createElement(p.FormGroup,this.getHolderProps(),this.renderLeftTitle(),this.renderTitleTip(),f.default.createElement("div",{className:"form__field-holder"},this.renderField(),this.renderMessage(),this.renderDescription()),this.renderRightTitle())}}]),n}(d.Component);return t.propTypes={leftTitle:y.default.any,rightTitle:y.default.any,title:y.default.any,extraClass:y.default.string,holderId:y.default.string,id:y.default.string,name:y.default.string,description:y.default.any,hideLabels:y.default.bool,message:y.default.shape({extraClass:y.default.string,value:y.default.any,type:y.default.string}),data:y.default.oneOfType([y.default.array,y.default.shape({prefix:y.default.string,suffix:y.default.string})]),titleTip:y.default.shape(_.tipShape)},t.defaultProps={className:"",extraClass:"",leftTitle:null,rightTitle:null,title:"",description:null,hideLabels:!1,noHolder:!1,message:null,data:{}},t}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n("react"),f=r(d),p=n("reactstrap"),h=n("./client/src/lib/castStringToElement.js"),m=r(h),b=n("classnames"),g=r(b),v=n("prop-types"),y=r(v),_=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tip/Tip.js"),j=r(_);t.default=l},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FileStatusIcon/FileStatusIcon.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("prop-types"),f=r(d),p=n("i18n"),h=r(p),m=n("classnames"),b=r(m),g=n("reactstrap"),v="file-status-icon",y=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"buildTrackedFormUpload",value:function(e){var t=e?"font-icon-address-card":"font-icon-address-card-warning";return{className:(0,b.default)("icon",v+"__icon",t),"data-title":e?h.default._t("SilverStripe\\Admin\\FileStatusIcon.TRACKED_FORM_UPLOAD_RESTRICTED","Form submission"):h.default._t("SilverStripe\\Admin\\FileStatusIcon.TRACKED_FORM_UPLOAD_UNRESTRICTED","Form submission, unrestricted access")}}},{key:"buildRestrictedFileAttrs",value:function(){return{className:(0,b.default)("icon",v+"__icon","font-icon-user-lock"),"data-title":h.default._t("SilverStripe\\Admin\\FileStatusIcon.ACCESS_RESTRICTED","Restricted access")}}},{key:"renderTooltip",value:function(e,t,n){return u.default.createElement(g.UncontrolledTooltip,{placement:e,target:t,delay:{show:300,hide:0}},n)}},{key:"render",value:function(){var e=this.props,t=e.fileID,n=e.hasRestrictedAccess,r=e.isTrackedFormUpload,o=e.placement,i=e.extraClassName,a=e.disableTooltip,l=e.includeBackground;if(!r&&!n)return"";var c=l?"file-status-icon--background":"",d=(0,b.default)([v,c,i]),f=r?this.buildTrackedFormUpload(n):this.buildRestrictedFileAttrs(),p=r?"tracked-form-upload":"restricted",h="FileStatusIcon-"+p+"-"+t,m=a?"":this.renderTooltip(o,h,f["data-title"]);return u.default.createElement("div",{className:d},u.default.createElement("span",s({id:h},f)),m)}}]),t}(c.PureComponent);y.propTypes={fileID:f.default.number,hasRestrictedAccess:f.default.bool,isTrackedFormUpload:f.default.bool,placement:f.default.string,disableTooltip:f.default.bool,extraClassName:f.default.string,includeBackground:f.default.bool},y.defaultProps={placement:"auto",disableTooltip:!1},t.default=y},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Focusedzone/Focusedzone.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.wasClicked=!1,n.handleElementClick=n.handleElementClick.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n}return a(t,e),s(t,[{key:"componentDidMount",value:function(){this.container.addEventListener("click",this.handleElementClick),document.addEventListener("click",this.handleDocumentClick)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("click",this.handleElementClick),document.removeEventListener("click",this.handleDocumentClick)}},{key:"handleElementClick",value:function(){this.wasClicked=!0}},{key:"handleDocumentClick",value:function(){this.wasClicked||this.props.onClickOut(),this.wasClicked=!1}},{key:"render",value:function(){var e=this;return c.default.createElement("div",{className:this.props.className,ref:function(t){e.container=t}},this.props.children)}}]),t}(l.Component);f.propTypes={children:d.default.any,className:d.default.string,onClickOut:d.default.func.isRequired},f.defaultProps={className:""},t.default=f},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Form/Form.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("components/FormAlert/FormAlert"),f=r(d),p=n("prop-types"),h=r(p),m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"componentDidMount",value:function(){if(this.props.autoFocus&&this.form){var e=this.form.querySelector("input:not([type=hidden]), select, textarea");e&&(e.focus(),e.select&&e.select())}}},{key:"renderMessages",value:function(){return Array.isArray(this.props.messages)?this.props.messages.map(function(e,t){return u.default.createElement(f.default,s({key:t,className:t?"":"message-box--panel-top"},e))}):null}},{key:"render",value:function(){var e=this,t=!1!==this.props.valid,n=this.props.mapFieldsToComponents(this.props.fields),r=this.props.mapActionsToComponents(this.props.actions),o=this.renderMessages(),i=this.props.formTag,a=["form"];!1===t&&a.push("form--invalid"),this.props.attributes&&this.props.attributes.className&&a.push(this.props.attributes.className);var l=s({},this.props.attributes,{onSubmit:this.props.handleSubmit,className:a.join(" ")});return u.default.createElement(i,s({},l,{ref:function(t){e.form=t,e.props.setDOM(t)},role:"form"}),n&&u.default.createElement("fieldset",this.props.fieldHolder,o,this.props.afterMessages,n),r&&r.length?u.default.createElement("div",this.props.actionHolder,r):null)}}]),t}(c.Component);m.propTypes={autoFocus:h.default.bool,setDOM:h.default.func,valid:h.default.bool,actions:h.default.array,fieldHolder:h.default.shape({className:h.default.string}),actionHolder:h.default.shape({className:h.default.string}),extraClass:h.default.string,afterMessages:h.default.node,attributes:h.default.shape({action:h.default.string.isRequired,className:h.default.string,encType:h.default.string,id:h.default.string,method:h.default.string.isRequired}),fields:h.default.array.isRequired,handleSubmit:h.default.func,mapActionsToComponents:h.default.func.isRequired,mapFieldsToComponents:h.default.func.isRequired,messages:h.default.arrayOf(h.default.shape({extraClass:h.default.string,value:h.default.any,type:h.default.string})),formTag:h.default.oneOfType([h.default.func,h.default.string])},m.defaultProps={setDOM:function(){return null},formTag:"form",actionHolder:{className:"btn-toolbar"}},t.Component=m,t.default=m},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Form/FormConstants.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={CSRF_HEADER:"X-SecurityID"}},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormAction/FormAction.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("./client/src/lib/castStringToElement.js"),f=r(d),p=n("classnames"),h=r(p),m=n("prop-types"),b=r(m),g=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=n.handleClick.bind(n),n}return a(t,e),l(t,[{key:"getButtonProps",value:function(){var e=this.props,t=e.attributes,n=e.id,r=e.name;return s({},void 0===t?{}:t,{id:n,name:r,className:this.getButtonClasses(),disabled:this.isDisabled(),onClick:this.handleClick})}},{key:"getButtonClasses",value:function(){var e=this.props,t=e.title,n=e.loading,r=e.extraClass,o={btn:!0,"btn--no-text":"string"!=typeof t,"btn--loading":n,disabled:this.isDisabled()},i=this.getButtonStyle();i&&(o["btn-"+i]=!0);var a=this.getIcon();return a&&(o["font-icon-"+a]=!0),"string"==typeof r&&(o[r]=!0),(0,h.default)(o)}},{key:"getButtonStyle",value:function(){return void 0!==this.props.data.buttonStyle?this.props.data.buttonStyle:void 0!==this.props.buttonStyle?this.props.buttonStyle:this.props.extraClass.split(" ").find(function(e){return e.indexOf("btn-")>-1})?null:this.isPrimary()?"primary":"secondary"}},{key:"getIcon",value:function(){return this.props.icon||this.props.data.icon||null}},{key:"getLoadingIcon",value:function(){return this.props.loading?u.default.createElement("div",{className:"btn__loading-icon"},u.default.createElement("span",{className:"btn__circle btn__circle--1"}),u.default.createElement("span",{className:"btn__circle btn__circle--2"}),u.default.createElement("span",{className:"btn__circle btn__circle--3"})):null}},{key:"isDisabled",value:function(){var e=this.props,t=e.disabled,n=e.readOnly;return t||n}},{key:"isPrimary",value:function(){var e=this.props,t=e.extraClass,n=e.name,r=t.split(" ");return"action_save"===n||!!r.find(function(e){return"ss-ui-action-constructive"===e})}},{key:"handleClick",value:function(e){"function"==typeof this.props.onClick&&this.props.onClick(e,this.props.name||this.props.id)}},{key:"render",value:function(){var e=this.props.title;return u.default.createElement("button",this.getButtonProps(),this.getLoadingIcon(),(0,f.default)("span",e,{className:"btn__title"}))}}]),t}(c.Component);g.propTypes={id:b.default.string,name:b.default.string,onClick:b.default.func,title:b.default.string,type:b.default.string,loading:b.default.bool,icon:b.default.string,disabled:b.default.bool,readOnly:b.default.bool,data:b.default.oneOfType([b.default.array,b.default.shape({buttonStyle:b.default.string})]),extraClass:b.default.string,attributes:b.default.object},g.defaultProps={title:"",icon:"",extraClass:"",attributes:{},data:{},disabled:!1,readOnly:!1},t.default=g},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormAlert/FormAlert.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("reactstrap"),d=n("./client/src/lib/castStringToElement.js"),f=r(d),p=n("classnames"),h=r(p),m=n("prop-types"),b=r(m),g=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClosed=n.handleClosed.bind(n),n.state={visible:!0},n}return a(t,e),s(t,[{key:"getMessageStyle",value:function(){switch(this.props.type){case"good":case"success":return"success";case"info":return"info";case"warn":case"warning":return"warning";default:return"danger"}}},{key:"getMessageProps",value:function(){var e=this.props.type||"no-type";return{className:(0,h.default)(["message-box","message-box--"+e,this.props.className,this.props.extraClass]),color:this.getMessageStyle(),toggle:this.props.closeLabel?this.handleClosed:null,isOpen:!this.props.closeLabel||this.state.visible}}},{key:"handleClosed",value:function(){"function"==typeof this.props.onClosed?this.props.onClosed():this.setState({visible:!1})}},{key:"render",value:function(){if("boolean"!=typeof this.props.visible&&this.state.visible||this.props.visible){var e=(0,f.default)("div",this.props.value);if(e)return c.default.createElement(u.Alert,this.getMessageProps(),e)}return null}}]),t}(l.Component);g.propTypes={extraClass:b.default.string,value:b.default.any,type:b.default.string,onClosed:b.default.func,closeLabel:b.default.string,visible:b.default.bool},g.defaultProps={extraClass:"",className:""},t.default=g},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormBuilder/FormBuilder.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.schemaPropType=t.basePropTypes=t.Component=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n("react"),d=r(u),f=n("prop-types"),p=r(f),h=n("merge"),m=r(h),b=n("lib/schemaFieldValues"),g=r(b),v=n("./client/src/lib/createErrorBlock.js"),y=n("lib/Backend"),_=r(y),j=n("lib/Injector"),w=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=e.schema.schema;return n.state={submittingAction:null},n.submitApi=_.default.createEndpointFetcher({url:r.attributes.action,method:r.attributes.method}),n.mapActionsToComponents=n.mapActionsToComponents.bind(n),n.mapFieldsToComponents=n.mapFieldsToComponents.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n.handleAction=n.handleAction.bind(n),n.buildComponent=n.buildComponent.bind(n),n.validateForm=n.validateForm.bind(n),n}return s(t,e),c(t,[{key:"getComponent",value:function(e){var t=e.name,n=e.schemaComponent,r=e.schemaType,o=this.props,i=o.identifier,a=o.getCustomFields;if(a){var s=a(r,i+"."+t);if(s)return s}return null!==n?this.context.injector.get(n,i+"."+t):this.getComponentForDataType(r,t)}},{key:"getComponentForDataType",value:function(e,t){var n=this,r=this.props.identifier,o=function(e){return n.context.injector.get(e,r+"."+t)};switch(e){case"Integer":case"Decimal":return o("NumberField");case"String":case"Text":return o("TextField");case"Date":return o("DateField");case"Time":return o("TimeField");case"Datetime":return o("DatetimeField");case"Hidden":return o("HiddenField");case"SingleSelect":return o("SingleSelectField");case"Custom":return o("GridField");case"Structural":return o("CompositeField");case"Boolean":return o("CheckboxField");case"MultiSelect":return o("CheckboxSetField");default:return null}}},{key:"validateForm",value:function(e){if("function"==typeof this.props.validate)return this.props.validate(e);if(!this.props.schema||!this.props.schema.schema)return{};var t=this.context.injector.validate(this.props.identifier),n={};return t&&(n=t(e,this.props.schema.schema)||{}),(0,v.createErrorBlock)(n)}},{key:"buildComponent",value:function(e){var t=e.input||{},n=l({},e,e.input,{onChange:t.onChange?function(e,n){t.onChange(n?n.value:e)}:null});delete n.input;var r=this.getComponent(n);if(null===r)return null;if(null!==n.schemaComponent&&void 0===r)throw Error("Component not found in injector: "+n.schemaComponent);var o=this.props.createFn;return"function"==typeof o?o(r,n):d.default.createElement(r,l({key:n.id},n))}},{key:"mapFieldsToComponents",value:function(e){var t=this,n=this.props.baseFieldComponent;return e.map(function(e){var r=e;return e.children&&(r=Object.assign({},e,{children:t.mapFieldsToComponents(e.children)})),r=Object.assign({onAutofill:t.props.onAutofill,formid:t.props.form},r),"Structural"===e.schemaType||!0===e.readOnly?t.buildComponent(r):d.default.createElement(n,l({key:r.id},r,{component:t.buildComponent}))})}},{key:"handleAction",value:function(e){"function"==typeof this.props.onAction&&this.props.onAction(e,this.props.values),e.isPropagationStopped()||this.setState({submittingAction:e.currentTarget.name})}},{key:"handleSubmit",value:function(e){var t=this,n="";this.state.submittingAction?n=this.state.submittingAction:this.props.schema.schema.actions[0]&&(n=this.props.schema.schema.actions[0].name);var r=Object.assign({},e,n?o({},n,1):{}),i=this.props.responseRequestedSchema.join(),a={"X-Formschema-Request":i,"X-Requested-With":"XMLHttpRequest"},s=function(e){return t.submitApi(e||r,a).then(function(e){return t.setState({submittingAction:null}),e}).catch(function(e){throw t.setState({submittingAction:null}),e})};return"function"==typeof this.props.onSubmit?this.props.onSubmit(r,n,s):s()}},{key:"mapActionsToComponents",value:function(e){var t=this;return e.map(function(e){var n=Object.assign({},e);return e.children?n.children=t.mapActionsToComponents(e.children):(n.onClick=t.handleAction,t.props.submitting&&t.state.submittingAction===e.name&&(n.loading=!0)),t.buildComponent(n)})}},{key:"normalizeFields",value:function(e,t){var n=this;return e.map(function(e){var r=t&&t.fields?t.fields.find(function(t){return t.id===e.id}):{},o=m.default.recursive(!0,(0,b.schemaMerge)(e,r),{schemaComponent:r&&r.component?r.component:e.component});return e.children&&(o.children=n.normalizeFields(e.children,t)),o})}},{key:"render",value:function(){var e=this,t=this.props.schema.schema,n=this.props.schema.state,r=this.props.baseFormComponent,o=l({},t.attributes,{className:t.attributes.class,encType:t.attributes.enctype,noValidate:!0});delete o.class,delete o.enctype;var i=this.props,a=i.asyncValidate,s=i.fieldHolder,c=i.actionHolder,u=i.onSubmitFail,f=i.onSubmitSuccess,p=i.shouldAsyncValidate,h=i.touchOnBlur,m=i.touchOnChange,b=i.persistentSubmitErrors,v=i.form,y=i.afterMessages,_=i.autoFocus,j=i.formTag,w={form:v,afterMessages:y,fields:this.normalizeFields(t.fields,n),fieldHolder:s,actions:this.normalizeFields(t.actions,n),actionHolder:c,attributes:o,data:t.data,initialValues:(0,g.default)(t,n),onSubmit:this.handleSubmit,valid:n&&n.valid,messages:n&&Array.isArray(n.messages)?n.messages:[],mapActionsToComponents:this.mapActionsToComponents,mapFieldsToComponents:this.mapFieldsToComponents,asyncValidate:a,onSubmitFail:u,onSubmitSuccess:f,shouldAsyncValidate:p,touchOnBlur:h,touchOnChange:m,persistentSubmitErrors:b,validate:this.validateForm,autoFocus:_,setDOM:function(t){e.formDOM=t},formTag:j};return d.default.createElement(r,w)}}]),t}(u.Component),O=p.default.shape({id:p.default.string,schema:p.default.shape({attributes:p.default.shape({class:p.default.string,enctype:p.default.string}),fields:p.default.array.isRequired}),state:p.default.shape({fields:p.default.array}),loading:p.default.boolean,stateOverride:p.default.shape({fields:p.default.array})}),T={createFn:p.default.func,onSubmit:p.default.func,onAction:p.default.func,asyncValidate:p.default.func,onSubmitFail:p.default.func,onSubmitSuccess:p.default.func,shouldAsyncValidate:p.default.func,touchOnBlur:p.default.bool,touchOnChange:p.default.bool,persistentSubmitErrors:p.default.bool,validate:p.default.func,values:p.default.object,submitting:p.default.bool,baseFormComponent:p.default.func.isRequired,baseFieldComponent:p.default.func.isRequired,getCustomFields:p.default.func,responseRequestedSchema:p.default.arrayOf(p.default.oneOf(["schema","state","errors","auto"])),identifier:function(e,t,n){return/^[A-Za-z0-9_.]+$/.test(e[t])?null:new Error("\n        Invalid identifier supplied to "+n+". Must be a set of\n        dot-separated alphanumeric strings.\n      ")}};w.propTypes=Object.assign({},T,{form:p.default.string.isRequired,schema:O.isRequired,autoFocus:p.default.bool}),w.defaultProps={responseRequestedSchema:["auto"],autoFocus:!1},t.Component=w,t.basePropTypes=T,t.schemaPropType=O,t.default=(0,j.withInjector)(w)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormBuilderModal/FormBuilderModal.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("i18n"),f=r(d),p=n("reactstrap"),h=n("containers/FormBuilderLoader/FormBuilderLoader"),m=r(h),b=n("./client/src/lib/castStringToElement.js"),g=r(b),v=n("classnames"),y=r(v),_=n("prop-types"),j=r(_),w=function(){return null},O=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleSubmit=n.handleSubmit.bind(n),n.handleHide=n.handleHide.bind(n),n.clearResponse=n.clearResponse.bind(n),n.handleLoadingError=n.handleLoadingError.bind(n),n}return a(t,e),l(t,[{key:"getForm",value:function(){return this.props.schemaUrl?u.default.createElement(m.default,{fieldHolder:{className:(0,y.default)("modal-body",this.props.bodyClassName)},actionHolder:{className:"modal-footer"},autoFocus:this.props.autoFocus,schemaUrl:this.props.schemaUrl,onSubmit:this.handleSubmit,onAction:this.props.onAction,onLoadingError:this.handleLoadingError,identifier:this.props.identifier}):null}},{key:"getResponse",value:function(){if(!this.state||!this.state.response)return null;var e="";return e=this.state.error?this.props.responseClassBad:this.props.responseClassGood,u.default.createElement("div",{className:e},(0,g.default)("span",{html:this.state.response}))}},{key:"clearResponse",value:function(){this.setState({response:null})}},{key:"handleLoadingError",value:function(e){var t=this.props.onLoadingError!==w;if(this.props.showErrorMessage||!t){var n=e.errors&&e.errors[0];this.setState({response:n.value,error:!0})}t&&this.props.onLoadingError(e)}},{key:"handleHide",value:function(){this.clearResponse(),"function"==typeof this.props.onClosed&&this.props.onClosed()}},{key:"handleSubmit",value:function(e,t,n){var r=this;this.clearResponse();var o=null;if(!(o="function"==typeof this.props.onSubmit?this.props.onSubmit(e,t,n):n()))throw new Error("Promise was not returned for submitting");return o.then(function(e){return e&&r.setState({response:e.message,error:!1}),e}).catch(function(e){e.then(function(e){r.setState({response:e,error:!0})})}),o}},{key:"renderHeader",value:function(){var e=this.props.title;return!1!==e?("object"===(void 0===e?"undefined":s(e))&&(e=(new DOMParser).parseFromString(e.html,"text/html").body.textContent||""),u.default.createElement(p.ModalHeader,{toggle:this.handleHide},e)):!0===this.props.showCloseButton&&"function"==typeof this.props.onClosed?u.default.createElement("button",{type:"button",className:"close modal__close-button",onClick:this.handleHide,"aria-label":f.default._t("Admin.CLOSE","Close")}):null}},{key:"render",value:function(){var e=this.getForm(),t=this.getResponse();return u.default.createElement(p.Modal,{isOpen:this.props.isOpen,toggle:this.handleHide,className:this.props.className,modalClassName:this.props.modalClassName,size:this.props.size},this.renderHeader(),t,e,this.props.children)}}]),t}(c.Component);O.propTypes={autoFocus:j.default.bool,isOpen:j.default.bool,title:j.default.oneOfType([j.default.string,j.default.bool,j.default.shape({html:j.default.string})]),className:j.default.string,bodyClassName:j.default.string,modalClassName:j.default.string,showCloseButton:j.default.bool,size:j.default.string,onClosed:j.default.func,schemaUrl:j.default.string,onSubmit:j.default.func,onAction:j.default.func,responseClassGood:j.default.string,responseClassBad:j.default.string,identifier:j.default.string,showErrorMessage:j.default.bool,onLoadingError:j.default.func},O.defaultProps={showErrorMessage:!1,showCloseButton:!0,onLoadingError:w,isOpen:!1,title:null,modalClassName:"form-builder-modal",responseClassGood:"alert alert-success",responseClassBad:"alert alert-danger"},t.default=O},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=t.data&&t.data.recordType;return{config:e.config,records:n&&e.records[n]?e.records[n]:I}}function l(e){return{actions:(0,h.bindActionCreators)(P,e)}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n("react"),d=r(u),f=n("i18n"),p=r(f),h=n("redux"),m=n("react-redux"),b=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldTable.js"),g=r(b),v=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldHeader.js"),y=r(v),_=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldHeaderCell.js"),j=r(_),w=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldRow.js"),O=r(w),T=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldCell.js"),C=r(T),E=n("./client/src/components/GridField/GridFieldAction.js"),x=r(E),S=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Form/FormConstants.js"),k=r(S),F=n("state/records/RecordsActions"),P=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(F),A=n("./client/src/lib/castStringToElement.js"),M=r(A),D=n("prop-types"),R=r(D),I=[],N=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.deleteRecord=n.deleteRecord.bind(n),n.editRecord=n.editRecord.bind(n),n}return a(t,e),c(t,[{key:"componentDidMount",value:function(){var e=this.props.data;this.props.actions.fetchRecords(e.recordType,e.collectionReadEndpoint.method,e.collectionReadEndpoint.url)}},{key:"createRowActions",value:function(e){return d.default.createElement(C.default,{className:"grid-field__cell--actions",key:"Actions"},d.default.createElement(x.default,{icon:"cog",onClick:this.editRecord,record:e}),d.default.createElement(x.default,{icon:"cancel",onClick:this.deleteRecord,record:e}))}},{key:"createCell",value:function(e,t){var n=this.props.data.onDrillDown,r={className:n?"grid-field__cell--drillable":"",onDrillDown:n?function(t){return n(t,e)}:null,key:""+t.name,width:t.width},o=t.field.split(".").reduce(function(e,t){return e[t]},e);return(0,M.default)(C.default,o,r)}},{key:"createRow",value:function(e){var t=this,n={className:this.props.data.onDrillDown?"grid-field__row--drillable":"",key:""+e.ID},r=this.props.data.columns.map(function(n){return t.createCell(e,n)}),o=this.createRowActions(e);return d.default.createElement(O.default,n,r,o)}},{key:"deleteRecord",value:function(e,t){e.preventDefault();var n={};n[k.default.CSRF_HEADER]=this.props.config.SecurityID,confirm(p.default._t("CampaignAdmin.DELETECAMPAIGN","Are you sure you want to delete this record?"))&&this.props.actions.deleteRecord(this.props.data.recordType,t,this.props.data.itemDeleteEndpoint.method,this.props.data.itemDeleteEndpoint.url,n)}},{key:"editRecord",value:function(e,t){e.preventDefault(),this.props.data&&"function"==typeof this.props.data.onEditRecord&&this.props.data.onEditRecord(e,t)}},{key:"render",value:function(){var e=this;if(this.props.records===I)return d.default.createElement("div",null,p.default._t("CampaignAdmin.LOADING","Loading..."));if(!this.props.records.length)return d.default.createElement("div",null,p.default._t("CampaignAdmin.NO_RECORDS","No campaigns created yet."));var t=d.default.createElement("th",{key:"holder",className:"grid-field__action-placeholder"}),n=this.props.data.columns.map(function(e){return d.default.createElement(j.default,{key:e.name},e.name)}),r=d.default.createElement(y.default,null,n.concat(t)),o=this.props.records.map(function(t){return e.createRow(t)});return d.default.createElement(g.default,{header:r,rows:o})}}]),t}(u.Component);N.propTypes={data:R.default.shape({recordType:R.default.string.isRequired,headerColumns:R.default.array,collectionReadEndpoint:R.default.object,onDrillDown:R.default.func,onEditRecord:R.default.func})},t.default=(0,m.connect)(s,l)(N)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldCell.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n("react"),d=r(u),f=n("classnames"),p=r(f),h=n("prop-types"),m=r(h),b=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleDrillDown=n.handleDrillDown.bind(n),n}return s(t,e),c(t,[{key:"handleDrillDown",value:function(e){"function"==typeof this.props.onDrillDown&&this.props.onDrillDown(e)}},{key:"render",value:function(){var e=["grid-field__cell",this.props.className],t=this.props,n=(t.onDrillDown,o(t,["onDrillDown"]));return d.default.createElement("td",l({},n,{className:(0,p.default)(e),onClick:this.handleDrillDown}))}}]),t}(u.Component);b.propTypes={className:m.default.string,onDrillDown:m.default.func},t.default=b},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldHeader.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("react"),i=r(o),a=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldRow.js"),s=r(a),l=function(e){return i.default.createElement(s.default,null,e.children)};t.default=l},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldHeaderCell.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("react"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e){return o.default.createElement("th",null,e.children)};t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldRow.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("react"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e){var t="grid-field__row "+e.className;return o.default.createElement("tr",{tabIndex:0,className:t},e.children)};t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldTable.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"generateHeader",value:function(){return void 0!==this.props.header?this.props.header:(this.props.data,null)}},{key:"generateRows",value:function(){return void 0!==this.props.rows?this.props.rows:(this.props.data,null)}},{key:"render",value:function(){return c.default.createElement("div",{className:"grid-field"},c.default.createElement("table",{className:"table table-hover grid-field__table"},c.default.createElement("thead",null,this.generateHeader()),c.default.createElement("tbody",null,this.generateRows())))}}]),t}(l.Component);f.propTypes={data:d.default.object,header:d.default.object,rows:d.default.array},t.default=f},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/HiddenField/HiddenField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("reactstrap"),d=n("classnames"),f=r(d),p=n("prop-types"),h=r(p),m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"getInputProps",value:function(){return{className:(0,f.default)(this.props.className,this.props.extraClass),id:this.props.id,name:this.props.name,type:"hidden",value:this.props.value||""}}},{key:"render",value:function(){return c.default.createElement(u.Input,this.getInputProps())}}]),t}(l.Component);m.propTypes={id:h.default.string,extraClass:h.default.string,name:h.default.string.isRequired,value:h.default.any},m.defaultProps={className:"",extraClass:"",value:""},t.default=m},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ListGroup/ListGroup.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("react"),i=r(o),a=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ListGroup/ListGroupItem.js"),s=r(a),l=n("prop-types"),c=r(l),u=function(e){return i.default.createElement("div",{className:"list-group"},e.items.map(function(e){return i.default.createElement(s.default,e)}))};u.propTypes={items:c.default.array},t.default=u},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ListGroup/ListGroupItem.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=n.handleClick.bind(n),n}return a(t,e),s(t,[{key:"handleClick",value:function(e){this.props.onClick&&this.props.onClick(e,this.props.onClickArg)}},{key:"render",value:function(){var e="list-group-item "+this.props.className;return c.default.createElement("a",{role:"button",tabIndex:0,className:e,onClick:this.handleClick},this.props.children)}}]),t}(l.Component);f.propTypes={onClickArg:d.default.any,onClick:d.default.func},t.default=f},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/LiteralField/LiteralField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("prop-types"),f=r(d),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"getContent",value:function(){return{__html:this.props.value}}},{key:"getInputProps",value:function(){return{className:this.props.className+" "+this.props.extraClass,id:this.props.id,name:this.props.name}}},{key:"render",value:function(){return u.default.createElement("div",s({},this.getInputProps(),{dangerouslySetInnerHTML:this.getContent()}))}}]),t}(c.Component);p.propTypes={id:f.default.string,name:f.default.string.isRequired,extraClass:f.default.string,value:f.default.string},p.defaultProps={extraClass:"",className:""},t.default=p},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Loading/Loading.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){var e=this.props.containerClass;return c.default.createElement("div",{className:e},c.default.createElement("div",{key:"overlay",className:"cms-content-loading-overlay ui-widget-overlay-light"}),c.default.createElement("div",{key:"spinner",className:"cms-content-loading-spinner"},c.default.createElement("div",{className:"spinner"},c.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 30 30",width:"30",height:"30",className:"spinner__animation"},c.default.createElement("g",null,c.default.createElement("defs",null,c.default.createElement("path",{id:"spinner__animation__outline",d:"M17.6,9.8c-2.3,1.7-2.8,5-1.1,7.3l4.2-3.1 c1.1-0.8,2.7-0.6,3.6,0.5c0.8,1.1,0.6,2.7-0.5,3.6l-6.2,4.6 c-2.3,1.7-2.8,5-1.1,7.3l10.4-7.7c3.4-2.6,4.1-7.4,1.6-10.8 C25.9,8,21.1,7.3,17.6,9.8z M13.4,12.9L9.3,16c-1.1,0.8-2.7,0.6-3.6-0.5 s-0.6-2.7,0.5-3.6l6.2-4.6c2.3-1.7,2.8-5,1.1-7.3L3.1,7.7 c-3.4,2.6-4.1,7.4-1.6,10.8c2.6,3.4,7.4,4.1,10.8,1.6 C14.7,18.4,15.1,15.2,13.4,12.9z"}),c.default.createElement("clipPath",{id:"spinner__animation__mask"},c.default.createElement("use",{xlinkHref:window.location+"#spinner__animation__outline"}))),c.default.createElement("use",{className:"spinner__animation__empty",xlinkHref:window.location+"#spinner__animation__outline"}),c.default.createElement("path",{className:"spinner__animation__fill",clipPath:"url("+window.location+"#spinner__animation__mask)",d:"M15,2.1L4.7,9.8c-2.3,1.7-2.8,4.9-1.1,7.2 s4.9,2.8,7.2,1.1l8.3-6.1c2.3-1.7,5.5-1.2,7.2,1.1 s1.2,5.5-1.1,7.2L15,27.9"}))))))}}]),t}(l.PureComponent);f.propTypes={containerClass:d.default.string},f.defaultProps={containerClass:"flexbox-area-grow"},t.default=f},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/PopoverField/PopoverField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("reactstrap"),f=n("classnames"),p=r(f),h=n("prop-types"),m=r(h),b=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggle=n.toggle.bind(n),n.state={isOpen:!1},n}return s(t,e),l(t,[{key:"getPlacement",value:function(){return this.props.data.placement||"bottom"}},{key:"getContainer",value:function(){return this.props.container?this.props.container:this.wrapper}},{key:"toggle",value:function(){var e=this.props.toggleCallback;this.setState({isOpen:!this.state.isOpen},e)}},{key:"render",value:function(){var e,t,n=this,r=this.getPlacement(),i=(0,p.default)((e={btn:!0,"btn-secondary":!0},o(e,this.props.className,!0),o(e,this.props.buttonClassName,!0),o(e,"btn--no-focus",this.state.isOpen),o(e,"font-icon-dot-3 btn--no-text",!this.props.title),o(e,"btn--icon-"+this.props.buttonSize,!this.props.title),e)),a={id:this.props.id,type:"button",className:i,onClick:this.toggle,title:this.props.data.buttonTooltip},s=(0,p.default)((t={},o(t,this.props.className,!0),o(t,"popover-container",!0),o(t,"popover-field",!0),t));return u.default.createElement("div",{className:s,ref:function(e){n.wrapper=e}},u.default.createElement(d.Button,a,this.props.title),u.default.createElement(d.Popover,{id:this.props.id+"_Popover",placement:r,isOpen:this.state.isOpen,target:this.props.id,toggle:this.toggle,className:this.props.popoverClassName,container:this.getContainer()},u.default.createElement(d.PopoverHeader,null,this.props.data.popoverTitle),u.default.createElement(d.PopoverBody,null,this.props.children)))}}]),t}(c.Component);b.propTypes={id:m.default.string.isRequired,title:m.default.any,container:m.default.any,className:m.default.string,buttonClassName:m.default.string,popoverClassName:m.default.string,buttonSize:m.default.oneOf(["sm","md","large","xl"]),data:m.default.oneOfType([m.default.array,m.default.shape({popoverTitle:m.default.string,buttonTooltip:m.default.string,placement:m.default.oneOf(["top","bottom","left","right"])})]),toggleCallback:m.default.func},b.defaultProps={data:{},className:"",buttonClassName:"",popoverClassName:"",buttonSize:"xl",toggleCallback:function(){}},t.default=b},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Preview/Preview.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("i18n"),d=r(u),f=n("./client/src/components/ActionMenu/ActionMenu.js"),p=r(f),h=n("classnames"),m=r(h),b=n("lib/Injector"),g=n("prop-types"),v=r(g),y=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={frameLoaded:!1},n.handleBackClick=n.handleBackClick.bind(n),n.setFrameLoaded=n.setFrameLoaded.bind(n),n}return a(t,e),s(t,[{key:"componentDidUpdate",value:function(e){this.state.frameLoaded&&e.previewUrl!==this.props.previewUrl&&this.setFrameLoaded(!1)}},{key:"setFrameLoaded",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState({frameLoaded:e})}},{key:"handleBackClick",value:function(e){"function"==typeof this.props.onBack&&(e.preventDefault(),this.props.onBack(e))}},{key:"buildToolbarButtons",value:function(){var e=[];if(this.props.itemLinks&&this.props.itemLinks.edit){var t=this.props.itemLinks.edit.href;e.push(c.default.createElement("a",{key:"edit",href:t,className:"btn btn-outline-secondary font-icon-edit"},c.default.createElement("span",{className:"btn__title"},d.default._t("Admin.EDIT","Edit"))))}return e}},{key:"renderMoreActions",value:function(){return this.props.moreActions&&0!==this.props.moreActions.length?c.default.createElement(p.default,null,this.props.moreActions):null}},{key:"renderBody",value:function(){var e=null,t="";return this.props.itemLinks&&this.props.itemLinks.preview&&(this.props.itemLinks.preview.Stage?(e=this.props.itemLinks.preview.Stage.href,t=this.props.itemLinks.preview.Stage.type):this.props.itemLinks.preview.Live&&(e=this.props.itemLinks.preview.Live.href,t=this.props.itemLinks.preview.Live.type)),this.props.itemId?e?t&&0===t.indexOf("image/")?c.default.createElement("div",{className:"preview__file-container panel--scrollable"},c.default.createElement("img",{alt:e,className:"preview__file--fits-space",src:e})):c.default.createElement("iframe",{style:{visibility:this.state.frameLoaded?"visible":"hidden"},className:"flexbox-area-grow preview__iframe",src:e,onLoad:this.setFrameLoaded}):c.default.createElement("div",{className:"preview__overlay"},c.default.createElement("h3",{className:"preview__overlay-text"},d.default._t("Admin.NO_ITEM_PREVIEW","There is no preview available for this item."))):c.default.createElement("div",{className:"preview__overlay"},c.default.createElement("h3",{className:"preview__overlay-text"},d.default._t("Admin.NO_PREVIEW","No preview available.")))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.ViewModeComponent,r=(0,m.default)("preview",t);return c.default.createElement("div",{className:r},this.renderBody(),c.default.createElement("div",{className:"toolbar toolbar--south"},c.default.createElement("div",{className:"btn-toolbar"},this.buildToolbarButtons(),c.default.createElement(n,{id:"view-mode-toggle-in-preview-nb",area:"preview"}),this.renderMoreActions())))}}]),t}(l.Component);y.propTypes={className:v.default.string,itemLinks:v.default.object,itemId:v.default.number,onBack:v.default.func,moreActions:v.default.arrayOf(v.default.element),ViewModeComponent:v.default.oneOfType([v.default.node,v.default.func])},y.defaultProps={className:"flexbox-area-grow fill-height"},t.Component=y,t.default=(0,b.inject)(["ViewModeToggle"],function(e){return{ViewModeComponent:e}},function(){return"Admin.Preview"})(y)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ResizeAware/ResizeAware.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n("react"),f=n("./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js"),p=r(f),h=n("prop-types"),m=r(h),b=function(e){function t(e){a(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.render=n.render.bind(n),n.handleResize=n.handleResize.bind(n),n.state={},n.observer=new p.default(function(e){return e.forEach(function(e){var t=e.contentRect;return n.handleResize(t)})}),n}return l(t,e),u(t,[{key:"componentDidMount",value:function(){this.observer.observe(this.container);var e={width:this.container.offsetWidth,height:this.container.offsetHeight};this.handleResize(e)}},{key:"componentWillUnmount",value:function(){this.observer.disconnect()}},{key:"handleResize",value:function(e){var t=this.state,n=t.width,r=t.height;n===e.width&&r===e.height||this.setState(e),this.props.onResize&&this.props.onResize(e)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.children,a=n.onlyEvent,s=n.component,l=(n.onResize,n.widthPropName),u=n.heightPropName,f=i(n,["children","onlyEvent","component","onResize","widthPropName","heightPropName"]),p=this.state,h=p.width,m=p.height,b="string"!=typeof s,g=[l||"width"],v=[u||"height"],y=(e={},o(e,g,h),o(e,v,m),e);return(0,d.createElement)(s,c(o({},b?"getRef":"ref",function(e){t.container=e}),b&&y,f),"function"==typeof r?r({width:h,height:m}):d.Children.map(r,function(e){return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,a?null:y):e}))}}]),t}(d.Component);t.default=b,b.propTypes={component:m.default.oneOfType([m.default.string,m.default.func]),onResize:m.default.func},b.defaultProps={component:"div"}},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Search/SearchToggle.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var o=n("i18n"),i=r(o),a=n("react"),s=r(a),l=n("reactstrap"),c=n("classnames"),u=r(c),d=n("prop-types"),f=r(d),p=i.default._t("Admin.SHOW_SEARCH","Show search"),h=function(e){return(0,u.default)("btn--no-text","search-toggle","font-icon-search","btn--icon-lg",{"search-toggle__active":e})},m=function(e){var t=e.onToggle,n=e.toggled;return s.default.createElement(l.Button,{title:p,onClick:t,className:h(n)},s.default.createElement("span",{className:"sr-only"},p))};m.propTypes={onToggle:f.default.func,toggled:f.default.bool},t.Component=m,t.default=m},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tag/CompactTagList.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n("react"),d=r(u),f=n("components/Tag/TagList"),p=r(f),h=n("./client/src/components/Tag/SummaryTag.js"),m=r(h),b=n("components/ResizeAware/ResizeAware"),g=r(b),v=n("classnames"),y=r(v),_=n("react-dom"),j=r(_),w=n("prop-types"),O=r(w),T=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.render=n.render.bind(n),n.onResize=n.onResize.bind(n),n.refreshShowSummaryView=n.refreshShowSummaryView.bind(n),n.getPlaceholderSize=n.getPlaceholderSize.bind(n),n.state={showSummaryView:!1},n}return s(t,e),c(t,[{key:"componentDidUpdate",value:function(){var e=this.getPlaceholderSize();this.refreshShowSummaryView(e)}},{key:"onResize",value:function(e){this.refreshShowSummaryView(e.width)}},{key:"getPlaceholderSize",value:function(){var e=j.default.findDOMNode(this);if(!e)return 0;var t=e.querySelector(".compact-tag-list__placeholder");return t?t.getBoundingClientRect().width:0}},{key:"refreshShowSummaryView",value:function(e){var t=this.props.maxSize,n=t<e;this.state.showSummaryView!==n&&this.setState(function(){return{showSummaryView:n}})}},{key:"render",value:function(){var e=this.props,t=(e.maxSize,e.onSummary),n=o(e,["maxSize","onSummary"]),r=this.state.showSummaryView,i=this.props.tags.length,a=(0,y.default)("compact-tag-list",{"compact-tag-list__show-summary-view":r});return d.default.createElement("div",{className:a},d.default.createElement(g.default,{onResize:this.onResize,className:"compact-tag-list__placeholder","aria-hidden":!0},d.default.createElement(p.default,l({},n,{focusable:!1}))),d.default.createElement("div",{className:"compact-tag-list__visible"},r?d.default.createElement(m.default,{count:i,onClick:t,onNext:n.onHolderFocus}):d.default.createElement(p.default,n)))}}]),t}(u.Component);T.propTypes=Object.assign({},p.default.propTypes,{maxSize:O.default.number,onSummary:O.default.func}),T.defaultProps={maxSize:0,onSummary:function(){}},t.default=T},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tag/Tag.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("react"),s=r(a),l=n("reactstrap"),c=n("classnames"),u=r(c),d=n("i18n"),f=r(d),p=n("prop-types"),h=r(p),m=function(e,t,n,r,o,i){switch(e.key){case"Backspace":e.preventDefault(),r(t);break;case"Delete":e.preventDefault(),n(t);break;case"ArrowLeft":e.preventDefault(),o(t);break;case"ArrowRight":e.preventDefault(),i(t)}},b=function(e,t,n){return(t||e)+(n?": "+n:"")},g=function(e){var t=e.onClick,n=e.onDelete,r=e.onDeleteKey,a=e.onBackSpace,c=e.onPrevious,d=e.onNext,f=e.deletable,p=e.dataKey,h=e.label,g=e.value,v=e.children,_=e.focusable,j=o(e,["onClick","onDelete","onDeleteKey","onBackSpace","onPrevious","onNext","deletable","dataKey","label","value","children","focusable"]),w=b(p,h,g);return s.default.createElement(l.Button,i({},j,{role:"button",className:(0,u.default)("tag-component","btn-sm",{"tag-component--deletable":f}),onClick:function(e){e.preventDefault(),t(p)},tabIndex:_?0:void 0,onKeyDown:function(e){m(e,p,r,a,c,d)},title:w}),f&&s.default.createElement(y,{onDelete:n,dataKey:p}),v||w)},v=function(e){e.target.parentElement.focus()},y=function(e){var t=e.dataKey,n=e.onDelete;return s.default.createElement(l.Button,{onClick:function(e){e.stopPropagation(),e.preventDefault(),n(t)},"aria-label":f.default._t("Admin.REMOVE_TAG","Remove Tag"),title:f.default._t("Admin.REMOVE_TAG","Remove Tag"),onFocus:v,tabIndex:-1,className:"tag-component__delete font-icon-cancel btn--no-text btn--icon-sm"})};g.propTypes={onClick:h.default.func,onDelete:h.default.func,onDeleteKey:h.default.func,onBackSpace:h.default.func,onPrevious:h.default.func,onNext:h.default.func,deletable:h.default.bool,dataKey:h.default.string,label:h.default.string,value:h.default.string,focusable:h.default.bool},g.defaultProps={tag:"span",deletable:!1,onClick:function(){},onDelete:function(){},onDeleteKey:function(){},onBackSpace:function(){},onPrevious:function(){},onNext:function(){},focusable:!0},t.default=g},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tag/TagList.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("react"),a=r(i),s=n("components/Tag/Tag"),l=r(s),c=n("./client/src/components/Tag/TagPropType.js"),u=r(c),d=n("prop-types"),f=r(d),p=function(e){var t=document.activeElement[e?"nextElementSibling":"previousElementSibling"];return!!t&&(t.focus(),!0)},h=function(e){var t=e.tags,n=e.deletable,r=e.focusable,i=e.onTagDelete,s=e.onTagClick,c=e.onHolderFocus,u=function(e){p(!0)||c(),i(e)},d=function(e){p(!1)||p(!0)||c(),i(e)};return a.default.createElement("ul",{className:"tag-list"},t.map(function(e){return a.default.createElement(l.default,o({},e,{tag:"li",deletable:n,dataKey:e.key,focusable:r,onDelete:i,onDeleteKey:n&&i?u:void 0,onBackSpace:n&&i?d:void 0,onNext:function(){p(!0)||c()},onPrevious:function(){p(!1)},onClick:s}))}))};h.propTypes={onTagClick:f.default.func,onTagDelete:f.default.func,onHolderFocus:f.default.func,deletable:f.default.bool,tags:f.default.arrayOf(u.default),focusable:f.default.bool},h.defaultProps={deletable:!1,focusable:!0,onTagDelete:function(){},onTagClick:function(){},onHolderFocus:function(){}},t.Component=h,t.default=h},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TextField/TextField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},c=n("components/FieldHolder/FieldHolder"),u=r(c),d=n("./client/src/components/InputField/InputField.js"),f=r(d),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"getInputProps",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getInputProps",this).call(this);return this.isMultiline()&&Object.assign(e,{type:"textarea",rows:this.props.data.rows,cols:this.props.data.columns}),e}},{key:"isMultiline",value:function(){return this.props.data&&this.props.data.rows>1}}]),t}(f.default);t.Component=p,t.default=(0,u.default)(p)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tip/Tip.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=e.content,n=e.fieldTitle,r=e.icon,o=e.id,i=e.importance,a=j[i],s=a.iconColor,u=a.description,d=h.default.inject(h.default._t("Admin.TIP_LABEL","{description} for {fieldTitle}"),{description:u,fieldTitle:n}),p=["tip",e.extraClass];e.type===y.TITLE?p.push("tip--title"):e.type===y.INPUT_GROUP&&p.push("tip--input-group","btn--last","btn-outline-secondary","text-"+s);var m=o+"-tip",g={id:m,onClick:function(){},className:(0,v.default)(p),noText:!0,icon:r};return c.default.createElement(l.Fragment,null,c.default.createElement(b.default,g,d),c.default.createElement(f.UncontrolledPopover,{trigger:"legacy",placement:"top-end",target:m},c.default.createElement(f.PopoverBody,null,t)))}Object.defineProperty(t,"__esModule",{value:!0}),t.tipShape=t.TIP_IMPORTANCE_LEVELS=t.TIP_TYPES=void 0;var a,s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=n("reactstrap"),p=n("i18n"),h=r(p),m=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Button/Button.js"),b=r(m),g=n("classnames"),v=r(g),y=t.TIP_TYPES={TITLE:"title",INPUT_GROUP:"input-group"},_=t.TIP_IMPORTANCE_LEVELS={NORMAL:"normal",HIGH:"high"},j=(a={},o(a,_.NORMAL,{iconColor:"muted",description:h.default._t("Admin.NORMAL_TIP","Tip")}),o(a,_.HIGH,{iconColor:"danger",description:h.default._t("Admin.IMPORTANT_TIP","Important tip")}),a),w=t.tipShape={content:d.default.string.isRequired,importance:d.default.oneOf(Object.values(_)),type:d.default.oneOf(Object.values(y)),icon:d.default.string};i.propTypes=s({},w,{extraClass:d.default.string,fieldTitle:d.default.string.isRequired,id:d.default.string.isRequired}),i.defaultProps={importance:_.NORMAL,icon:"lamp",type:y.INPUT_GROUP},t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Toolbar/Toolbar.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("react"),i=r(o),a=n("prop-types"),s=r(a),l=n("components/Button/BackButton"),c=r(l),u=function(e){var t=e.showBackButton,n=e.children,r=e.onBackButtonClick,o=function(e){e.preventDefault(),"function"==typeof r&&r(e)};return i.default.createElement("div",{className:"toolbar toolbar--north"},i.default.createElement("div",{className:"toolbar__navigation fill-width"},t&&i.default.createElement(c.default,{onClick:o,className:"toolbar__back-button"}),n))};u.propTypes={onBackButtonClick:s.default.func,showBackButton:s.default.bool},u.defaultProps={showBackButton:!1},t.default=u},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.id,r=e.treeDropdownField.fields[n]?e.treeDropdownField.fields[n]:{tree:{},visible:[],loading:[],failed:[],search:"",selectedValues:[]},o=t.value;return t.data.multiple&&t.value===I&&(o=[]),t.data.multiple||t.value||(o=N),d({},r,{value:o})}function c(e){return{actions:{treeDropdownField:(0,v.bindActionCreators)(E,e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.findTreeByPath=t.findTreeByID=t.findTreePath=t.SINGLE_EMPTY_VALUE=t.MULTI_EMPTY_VALUE=t.ConnectedTreeDropdownField=t.Component=void 0;var u=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n("react"),h=r(p),m=n("prop-types"),b=r(m),g=n("react-redux"),v=n("redux"),y=n("components/FieldHolder/FieldHolder"),_=r(y),j=n("isomorphic-fetch"),w=r(j),O=n("react-select"),T=r(O),C=n("./client/src/state/treeDropdownField/TreeDropdownFieldActions.js"),E=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(C),x=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldMenu.js"),S=r(x),k=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldNode.js"),F=r(k),P=n("url"),A=r(P),M=n("reactstrap"),D=n("./client/src/lib/castStringToElement.js"),R=n("./client/src/components/TreeDropdownField/treeUtils.js"),I="unchanged",N=0,L=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.render=n.render.bind(n),n.renderMenu=n.renderMenu.bind(n),n.renderOption=n.renderOption.bind(n),n.getBreadcrumbs=n.getBreadcrumbs.bind(n),n.getDropdownOptions=n.getDropdownOptions.bind(n),n.getVisibleTree=n.getVisibleTree.bind(n),n.handleBack=n.handleBack.bind(n),n.handleChange=n.handleChange.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleNavigate=n.handleNavigate.bind(n),n.handleSearchChange=n.handleSearchChange.bind(n),n.handleSearchReset=n.handleSearchReset.bind(n),n.handleOpen=n.handleOpen.bind(n),n.handleClose=n.handleClose.bind(n),n.callFetch=n.callFetch.bind(n),n.lazyLoad=n.lazyLoad.bind(n),n.filterOptions=n.filterOptions.bind(n),n.state={opened:!1},n.searchTimer=null,n}return s(t,e),f(t,[{key:"componentDidMount",value:function(){this.props.readOnly||this.props.disabled||this.initialise();var e=this.props.id,t=this.props.data.multiple?this.props.data.valueObjects||[]:[this.props.data.valueObject],n=t.filter(function(e){return e});n.length&&this.props.actions.treeDropdownField.addSelectedValues(e,n)}},{key:"componentDidUpdate",value:function(e){if(!this.props.readOnly&&!this.props.disabled){var t=!1,n=[];this.props.search!==e.search&&(t=!0,n=this.props.visible),e.data.urlTree!==this.props.data.urlTree&&(t=!0),e.data.cacheKey!==this.props.data.cacheKey&&(t=!0),t&&this.loadTree(n,this.props.search,this.props)}}},{key:"getVisibleTree",value:function(){return this.props.findTreeByPath(this.props.tree,this.props.visible)}},{key:"getBreadcrumbs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.visible,t=[];if(!e)return t;var n=this.props.tree,r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if("break"===function(e){return n.children&&(n=n.children.find(function(t){return t.id===e}))?void t.push(n):"break"}(l))break}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return t}},{key:"getDropdownOptions",value:function(){var e=this.props.value,t=this.getVisibleTree(),n=t?[].concat(o(t.children)):[],r=this.props.selectedValues.filter(function(t){return t.id===e||Array.isArray(e)&&e.find(function(e){return e===t.id})});return!this.state.opened&&this.props.data.showSelectedPath?n=r.map(function(e){return d({},e,{title:e.titlePath||e.title})}):r.length&&(n=[].concat(o(r.filter(function(e){return!n.find(function(t){return t.id===e.id})})),o(n))),n.unshift({id:this.props.data.multiple?"":N,title:this.props.data.hasEmptyDefault?this.props.data.emptyString:null,disabled:!n.length||!this.props.data.hasEmptyDefault}),n}},{key:"getPath",value:function(e){var t=this.props.findTreePath(this.props.tree,e,this.props.data.treeBaseId);return this.getBreadcrumbs(t).reduce(function(e,t){return""+e+(t.contextString||"")+t.title+"/"},"")}},{key:"initialise",value:function(){var e=this;return this.loadTree([],this.props.search).then(function(t){var n=[];!e.props.data.multiple&&e.props.value&&(n=e.props.findTreePath(t,e.props.value,e.props.data.treeBaseId),n?n.pop():n=[]),e.props.actions.treeDropdownField.setVisible(e.props.id,n)})}},{key:"callFetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props,r=A.default.parse(n.data.urlTree,!0);n.data.showSearch&&t.length&&(r.query.search=t,r.query.flatList="1"),e.length?r.query.ID=e[e.length-1]:!n.data.multiple&&n.value&&(r.query.forceValue=n.value),r.query.format="json",r.search=null;var o=A.default.format(r);return this.props.fetch(o,{credentials:"same-origin"}).then(function(e){return e.json()})}},{key:"lazyLoad",value:function(e){var t=this;if(e.find(function(e){return t.props.loading.indexOf(e)>-1||t.props.failed.indexOf(e)>-1}))return Promise.resolve({});var n=this.props.findTreeByPath(this.props.tree,e);return n&&(0===n.count||n.children.length)?Promise.resolve({}):this.loadTree(e)}},{key:"loadTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props;return n.actions.treeDropdownField.beginTreeUpdating(n.id,e),this.callFetch(e,t,n).then(function(t){return n.actions.treeDropdownField.updateTree(n.id,e,t),t}).catch(function(t){if(n.actions.treeDropdownField.updateTreeFailed(n.id,e),"function"==typeof n.onLoadingError)return n.onLoadingError({errors:[{value:t.message,type:"error"}]});throw t})}},{key:"hasSearch",value:function(){return this.props.data.showSearch&&Boolean(this.props.search)}},{key:"filterOptions",value:function(e){var t=this,n=this.getVisibleTree();return e.filter(function(e){if((e.id===N||""===e.id)&&(!t.props.data.hasEmptyDefault||t.props.visible.length||t.hasSearch()))return!1;var r=e.title&&e.title.toLocaleLowerCase(),o=t.props.search.toLocaleLowerCase();return o?r&&r.includes(o):!n||!e.id||n.children.find(function(t){return t.id===e.id})})}},{key:"handleOpen",value:function(){this.setState({opened:!0}),this.handleSearchReset()}},{key:"handleClose",value:function(){this.setState({opened:!1})}},{key:"handleSearchReset",value:function(){clearTimeout(this.searchTimer),this.props.actions.treeDropdownField.setSearch(this.props.id,"")}},{key:"handleSearchChange",value:function(e){var t=this;clearTimeout(this.searchTimer),this.searchTimer=setTimeout(function(){t.props.actions.treeDropdownField.setSearch(t.props.id,e)},500)}},{key:"handleChange",value:function(e){var t=null;if(this.handleSearchReset(),this.props.data.multiple){if(t=I,e&&e.length){var n=e&&e.filter(function(t,n){return e.findIndex(function(e){return e.id===t.id})===n});t=n.map(function(e){return e.id}),this.props.actions.treeDropdownField.addSelectedValues(this.props.id,n)}}else{var r=e?e.id:null,o=this.getVisibleTree()||this.props.tree,i=o.children.find(function(e){return e.id===r});i&&(this.props.data.showSelectedPath&&(i=d({},i,{titlePath:this.getPath(r)})),this.props.actions.treeDropdownField.addSelectedValues(this.props.id,[i])),t=r||N}"function"==typeof this.props.onChange&&this.props.onChange(t)}},{key:"handleNavigate",value:function(e,t){if(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault(),!this.hasSearch()){var n=this.props.findTreePath(this.props.tree,t,this.props.data.treeBaseId);n||(n=this.props.visible.slice(0),n.push(t)),this.lazyLoad(n),this.props.actions.treeDropdownField.setVisible(this.props.id,n)}}},{key:"handleKeyDown",value:function(e){if(this.hasSearch())return void(27===e.keyCode&&this.handleSearchReset(e));var t=this.selectField.getFocusedOption();if(t)switch(e.keyCode){case 37:this.handleBack(e);break;case 39:t.count&&this.handleNavigate(e,t.id)}}},{key:"handleBack",value:function(e){if(e.stopPropagation(),e.preventDefault(),!this.hasSearch()){var t=this.props.visible;t.length&&(t=t.slice(0,t.length-1)),this.lazyLoad(t),this.props.actions.treeDropdownField.setVisible(this.props.id,t)}}},{key:"renderMenu",value:function(e){var t=this.getVisibleTree()||{},n=this.props.loading.indexOf(t.id||0)>-1,r=this.props.failed.indexOf(t.id||0)>-1,o=this.getBreadcrumbs();return h.default.createElement(S.default,{loading:n,failed:r,tree:t,breadcrumbs:o,renderMenuOptions:e,onBack:this.handleBack,search:this.hasSearch(),value:this.props.value})}},{key:"renderOption",value:function(e){var t=this,n=null;if(e.count&&!this.hasSearch()){var r=function(n){return t.handleNavigate(n,e.id)};n=h.default.createElement("button",{className:"treedropdownfield__option-button fill-width",onClick:r,onMouseDown:r,onTouchStart:r},h.default.createElement("span",{className:"treedropdownfield__option-count-icon font-icon-right-open-big"}))}var o=function(e){var t=e.children;return h.default.createElement("span",{className:"treedropdownfield__option-title--highlighted"},t)},i=this.props.search.length?(0,D.mapHighlight)(e.title,this.props.search,o):e.title,a=null;return this.hasSearch()&&((a=e.contextString)||!this.props.data.hasEmptyDefault||this.props.visible.length||(a=this.props.data.emptyString)),h.default.createElement("div",{className:"treedropdownfield__option fill-width"},h.default.createElement("div",{className:"treedropdownfield__option-title-box flexbox-area-grow fill-height"},h.default.createElement("span",{className:"treedropdownfield__option-title"},i),a&&h.default.createElement("span",{className:"treedropdownfield__option-context"},a)),n)}},{key:"renderReadOnly",value:function(){var e=this,t={id:this.props.id,readOnly:this.props.readOnly,disabled:this.props.disabled},n=this.props.extraClass?"treedropdownfield "+this.props.extraClass:"treedropdownfield",r=this.props.data.hasEmptyDefault?this.props.data.emptyString:"",o=this.props.selectedValues;if(this.props.data.multiple)r=this.props.value.map(function(e){return o.find(function(t){return t.id===e})||e}).map(function(e){return e.title}).join(", ");else{var i=o.find(function(t){return t.id===e.props.value});r=this.props.value,i&&"string"==typeof i.title&&(r=i.title)}return h.default.createElement("div",{className:n},h.default.createElement("span",{className:"treedropdownfield__title"},r),h.default.createElement(M.Input,d({type:"hidden",name:this.props.name,value:this.props.value},t)))}},{key:"render",value:function(){var e=this;if(this.props.readOnly||this.props.disabled)return this.renderReadOnly();var t={id:this.props.id},n=this.props.extraClass?"treedropdownfield "+this.props.extraClass:"treedropdownfield",r=this.getDropdownOptions(),o=this.props.value;this.props.data.multiple&&(o=this.props.value?this.props.selectedValues.filter(function(e){return o.includes(e.id)}):[]);var i=this.props.data.hasEmptyDefault&&!this.props.visible.length?"":null,a=void 0!==this.props.data.showSearch&&this.props.data.showSearch;return h.default.createElement(T.default,{searchable:a,multi:this.props.data.multiple,className:n,name:this.props.name,options:r,inputProps:t,menuRenderer:this.renderMenu,filterOptions:this.filterOptions,optionRenderer:this.renderOption,onChange:this.handleChange,onOpen:this.handleOpen,onClose:this.handleClose,onBlurResetsInput:!0,onInputKeyDown:this.handleKeyDown,onInputChange:this.handleSearchChange,isLoading:Boolean(this.props.loading.length),value:o,resetValue:i,joinValues:!0,ref:function(t){e.selectField=t},placeholder:this.props.data.emptyString,labelKey:"title",valueKey:"id"})}}]),t}(p.Component);T.default.prototype.componentWillReceiveProps=function(e){var t=this.getValueArray(e.value,e);e.required?this.setState({required:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)}(t[0],e.multi)}):this.props.required&&this.setState({required:!1});var n=[this.props.value,e.value].map(JSON.stringify),r=u(n,2),o=r[0],i=r[1];this.state.inputValue&&o!==i&&e.onSelectResetsInput&&this.setState({inputValue:this.handleInputValueChange("")})},L.propTypes={extraClass:b.default.string,id:b.default.string,name:b.default.string.isRequired,onChange:b.default.func,value:b.default.oneOfType([b.default.string,b.default.number,b.default.array]),readOnly:b.default.bool,disabled:b.default.bool,tree:b.default.shape(F.default.propTypes),findTreeByPath:b.default.func,findTreePath:b.default.func,visible:b.default.array,loading:b.default.array,failed:b.default.array,selectedValues:b.default.array,data:b.default.shape({cacheKey:b.default.string,urlTree:b.default.string.isRequired,emptyString:b.default.string,valueObject:b.default.shape(F.default.propTypes),valueObjects:b.default.arrayOf(b.default.shape(F.default.propTypes)),hasEmptyDefault:b.default.bool,showSearch:b.default.bool,multiple:b.default.bool,showSelectedPath:b.default.bool,treeBaseId:b.default.number}),onLoadingError:b.default.func,search:b.default.string,actions:b.default.shape({treeDropdownField:b.default.object}),fetch:b.default.func},L.defaultProps={value:"",extraClass:"",className:"",tree:{},visible:[],loading:[],failed:[],findTreeByPath:R.findTreeByPath,findTreePath:R.findTreePath,fetch:w.default};var B=(0,g.connect)(l,c)(L);t.Component=L,t.ConnectedTreeDropdownField=B,t.MULTI_EMPTY_VALUE=I,t.SINGLE_EMPTY_VALUE=N,t.findTreePath=R.findTreePath,t.findTreeByID=R.findTreeByID,t.findTreeByPath=R.findTreeByPath,t.default=(0,_.default)(B)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldMenu.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=n("i18n"),p=r(f),h=n("classnames"),m=r(h),b=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldNode.js"),g=r(b),v=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.render=n.render.bind(n),n.renderOption=n.renderOption.bind(n),n.renderBreadcrumbs=n.renderBreadcrumbs.bind(n),n.handleBack=n.handleBack.bind(n),n}return a(t,e),s(t,[{key:"handleBack",value:function(e){"function"==typeof this.props.onBack?this.props.onBack(e):(e.stopPropagation(),e.preventDefault())}},{key:"renderBreadcrumbs",value:function(){if(0===this.props.breadcrumbs.length)return null;var e=this.props.breadcrumbs.map(function(e){return e.title}).join(" / "),t=this.props.search?"font-icon-search":"font-icon-left-open-big",n=c.default.createElement("button",{className:"treedropdownfield__breadcrumbs-button"},c.default.createElement("span",{className:"icon "+t}));return c.default.createElement("div",{className:"Select-option treedropdownfield__breadcrumbs flexbox-area-grow fill-width",onClick:this.handleBack,role:"button",tabIndex:0},n,c.default.createElement("span",{className:"treedropdownfield__breadcrumbs-crumbs flexbox-area-grow"},e))}},{key:"renderOption",value:function(e,t){if(!this.props.renderMenuOptions)return null;var n=this.props.renderMenuOptions,r=n.focusedOption,o=n.instancePrefix,i=n.onFocus,a=n.onSelect,s=n.optionClassName,l=n.optionComponent,u=n.optionRenderer,d=n.onOptionRef,f=l,p=this.props.value,h=p===e.id;Array.isArray(p)&&(h=p.includes(e.id));var b=r&&e.id===r.id,g=(0,m.default)(s,{treedropdownfield__option:!0,"Select-option":!0,"is-selected":h,"is-focused":b,"is-disabled":e.disabled});return c.default.createElement(f,{className:g,instancePrefix:o,isDisabled:e.disabled,isFocused:b,isSelected:h,key:"option-"+e.id+"-"+t,onFocus:i,onSelect:a,option:e,optionIndex:t,ref:function(e){d(e,b)}},u(e,t))}},{key:"render",value:function(){var e=(0,m.default)([this.props.className,"treedropdownfield__menu"]);if(this.props.loading)return c.default.createElement("div",{className:e},c.default.createElement("div",{className:"Select-option flexbox-area-grow fill-width"},c.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},c.default.createElement("span",{className:"Select-loading"})),c.default.createElement("span",{className:"treedropdownfield__menu-loading flexbox-area-grow"},p.default._t("Admin.TREEDROPDOWN_LOADING","Loading..."))));if(this.props.failed)return c.default.createElement("div",{className:e},c.default.createElement("div",{className:"Select-option"},p.default._t("Admin.TREEDROPDOWN_FAILED","Failed to load")));if(0===this.props.tree.count)return c.default.createElement("div",{className:e},c.default.createElement("div",{className:"Select-option"},p.default._t("Admin.TREEDROPDOWN_NO_CHILDREN","No children")));var t=this.renderBreadcrumbs(),n=this.props.renderMenuOptions&&this.props.renderMenuOptions.options,r=n?n.filter(function(e){return null!==e.title}).map(this.renderOption):null;return c.default.createElement("div",{className:e},t,r)}}]),t}(l.Component);v.propTypes={className:d.default.string,breadcrumbs:d.default.arrayOf(d.default.shape(g.default.propTypes)),loading:d.default.bool,failed:d.default.bool,tree:d.default.shape(g.default.propTypes),renderMenuOptions:d.default.object,onBack:d.default.func,search:d.default.bool,value:d.default.oneOfType([d.default.string,d.default.number,d.default.array])},t.default=v},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldNode.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("prop-types"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(){return null};i.propTypes={id:o.default.oneOfType([o.default.string,o.default.number]),title:o.default.string,titlePath:o.default.string,disabled:o.default.bool,parentid:o.default.number,count:o.default.number,depth:o.default.number,expanded:o.default.bool,limited:o.default.bool,marked:o.default.bool,opened:o.default.bool,children:o.default.array},t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/VersionedBadge/VersionedBadge.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.statuses=void 0;var o=n("react"),i=r(o),a=n("classnames"),s=r(a),l=n("prop-types"),c=r(l),u=n("components/Badge/Badge"),d=r(u),f=n("i18n"),p=r(f),h=t.statuses=["draft","modified","live","archived"],m=function(e){return e.replace(/^\w/,function(e){return e.toUpperCase()})},b=function(e){var t=e.status,n=e.className,r={className:(0,s.default)(n,"versioned-badge","versioned-badge--"+t),message:p.default._t("ADMIN."+t.toUpperCase(),m(t)),status:"default"};return i.default.createElement(d.default,r)};b.propTypes={status:c.default.oneOf(h).isRequired,className:c.default.string},t.default=b},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ViewModeToggle/ViewModeToggle.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeState:e.viewMode.activeState,splitAvailable:e.viewMode.splitAvailable}}function l(e){return{onSplitSelect:function(){e((0,_.selectSplitMode)())},onEditSelect:function(){e((0,_.selectEditMode)())},onPreviewSelect:function(){e((0,_.selectPreviewMode)())}}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n("react"),f=r(d),p=n("prop-types"),h=r(p),m=n("reactstrap"),b=n("i18n"),g=r(b),v=n("react-redux"),y=n("redux"),_=n("state/viewMode/ViewModeActions"),j=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/viewMode/ViewModeStates.js"),w=n("classnames"),O=r(w),T=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggle=n.toggle.bind(n),n.state={dropdownOpen:!1},n.handleSplitSelect=n.handleSplitSelect.bind(n),n.handlePreviewSelect=n.handlePreviewSelect.bind(n),n.handleEditSelect=n.handleEditSelect.bind(n),n}return a(t,e),u(t,[{key:"getIconClass",value:function(){var e=this.props,t=e.activeState,n=e.editIconClass,r=e.previewIconClass,o=e.splitIconClass;switch(t){case j.VIEW_MODE_STATES.EDIT:return n;case j.VIEW_MODE_STATES.PREVIEW:return r;default:return o}}},{key:"getTitle",value:function(){switch(this.props.activeState){case j.VIEW_MODE_STATES.EDIT:return g.default._t("Admin.EDIT_MODE","Edit mode");case j.VIEW_MODE_STATES.PREVIEW:return g.default._t("Admin.PREVIEW_MODE","Preview mode");default:return g.default._t("Admin.SPLIT_MODE","Split mode")}}},{key:"toggle",value:function(){this.setState(function(e){return{dropdownOpen:!e.dropdownOpen}})}},{key:"handleSplitSelect",value:function(){this.props.onSplitSelect()}},{key:"handlePreviewSelect",value:function(){this.props.onPreviewSelect()}},{key:"handleEditSelect",value:function(){this.props.onEditSelect()}},{key:"renderSplitDropdownItem",value:function(){var e=this.props,t=e.activeState,n=e.splitAvailable,r=e.splitIconClass,o=(0,O.default)("btn","icon-view","first",r,{"viewmode-toggle__button":!0,"viewmode-toggle--selected":t===j.VIEW_MODE_STATES.SPLIT,disabled:!n});return f.default.createElement(m.DropdownItem,{type:"button",disabled:!n,className:o,value:j.VIEW_MODE_STATES.SPLIT,onClick:this.handleSplitSelect,id:"splitModeButton"},g.default._t("Admin.SPLIT_MODE","Split mode"))}},{key:"renderEditDropDownItem",value:function(){var e=this.props,t=e.activeState,n=e.editIconClass,r=(0,O.default)("btn","icon-view","last","viewmode-toggle__button",n,{"viewmode-toggle--selected":t===j.VIEW_MODE_STATES.EDIT});return f.default.createElement(m.DropdownItem,{type:"button",className:r,value:"content",onClick:this.handleEditSelect},g.default._t("Admin.EDIT_MODE","Edit mode"))}},{key:"renderPreviewDropDownItem",value:function(){var e=this.props,t=e.activeState,n=e.previewIconClass,r=(0,O.default)("btn","icon-view","viewmode-toggle__button",n,{"viewmode-toggle--selected":t===j.VIEW_MODE_STATES.PREVIEW});return f.default.createElement(m.DropdownItem,{type:"button",className:r,value:"preview",onClick:this.handlePreviewSelect},g.default._t("Admin.PREVIEW_MODE","Preview mode"))}},{key:"render",value:function(){var e=this.props,t=e.activeState,n=e.area,r=e.splitAvailable,o=e.dropdownToggleProps;if(n===j.VIEW_MODE_STATES.EDIT&&t===j.VIEW_MODE_STATES.SPLIT)return null;var i=(0,O.default)(this.getIconClass(),"btn","viewmode-toggle__dropdown",o.classname);return f.default.createElement(m.Dropdown,{isOpen:this.state.dropdownOpen,toggle:this.toggle,className:"viewmode-toggle"},f.default.createElement(m.DropdownToggle,c({className:i,caret:!0},o),f.default.createElement("span",{className:"viewmode-toggle__chosen-view-title"},this.getTitle())),f.default.createElement(m.DropdownMenu,null,this.renderSplitDropdownItem(),this.renderEditDropDownItem(),this.renderPreviewDropDownItem(),!r&&f.default.createElement("div",{className:"disabled-tooltip"},f.default.createElement("span",{className:"disabled-tooltip-span"},g.default._t("Admin.SCREEN_TOO_SMALL","Screen size too small")))))}}]),t}(d.Component);T.propTypes={activeState:h.default.oneOf(Object.values(j.VIEW_MODE_STATES)),area:h.default.string.isRequired,splitAvailable:h.default.bool,onPreviewSelect:h.default.func,onEditSelect:h.default.func,onSplitSelect:h.default.func,editIconClass:h.default.string,previewIconClass:h.default.string,splitIconClass:h.default.string},T.defaultProps={splitAvailable:!0,editIconClass:"font-icon-edit-write",previewIconClass:"font-icon-eye",splitIconClass:"font-icon-columns",dropdownToggleProps:{}},t.Component=T,t.default=(0,y.compose)((0,v.connect)(s,l))(T)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/containers/FormBuilderLoader/FormBuilderLoader.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=e.identifier,n=e.schema,r=void 0===n?{}:n;return[t,r.schema&&r.schema.name].filter(function(e){return e}).join(".")}function l(e,t){var n=e.form.formSchemas[t.schemaUrl],r=s(u({},t,{schema:n})),o=(0,R.default)((0,L.default)(e),r);return{schema:n,submitting:o&&o.submitting,values:o&&o.values,stateOverrides:n&&n.stateOverride,loading:n&&n.metadata&&n.metadata.loading}}function c(e){return{actions:{schema:(0,y.bindActionCreators)(k,e),reduxForm:(0,y.bindActionCreators)({autofill:T.autofill,initialize:T.initialize},e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n("i18n"),p=r(f),h=n("react"),m=r(h),b=n("prop-types"),g=r(b),v=n("react-redux"),y=n("redux"),_=n("isomorphic-fetch"),j=r(_),w=n("deep-freeze-strict"),O=r(w),T=n("redux-form"),C=n("lib/schemaFieldValues"),E=r(C),x=n("./client/src/lib/createErrorBlock.js"),S=n("state/schema/SchemaActions"),k=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(S),F=n("merge"),P=r(F),A=n("components/FormBuilder/FormBuilder"),M=r(A),D=n("./node_modules/redux-form/lib/structure/plain/getIn.js"),R=r(D),I=n("lib/Injector"),N=n("lib/getFormState"),L=r(N),B=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleSubmit=n.handleSubmit.bind(n),n.reduceSchemaErrors=n.reduceSchemaErrors.bind(n),n.handleAutofill=n.handleAutofill.bind(n),n}return a(t,e),d(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.schema;!e.refetchSchemaOnMount&&t||this.fetch()}},{key:"componentDidUpdate",value:function(e){this.props.schemaUrl!==e.schemaUrl&&this.fetch()}},{key:"getMessages",value:function(e){var t={};return e&&e.fields&&e.fields.forEach(function(e){e.message&&(t[e.name]=e.message)}),t}},{key:"getIdentifier",value:function(){return s(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props)}},{key:"handleSubmit",value:function(e,t,n){var r=this,o=null,i=function(){return n().then(function(e){var t=e;if(t){var n=void 0!==t.state;if(t=r.reduceSchemaErrors(t),r.props.actions.schema.setSchema(r.props.schemaUrl,t,r.getIdentifier()),n){var o=t.schema||r.props.schema.schema,i=(0,E.default)(o,t.state);r.props.actions.reduxForm.initialize(r.getIdentifier(),i)}}return t})};if(!(o="function"==typeof this.props.onSubmit?this.props.onSubmit(e,t,i):i()))throw new Error("Promise was not returned for submitting");return o.then(function(e){if(!e||!e.state)return e;var t=r.getMessages(e.state);if(Object.keys(t).length)throw new T.SubmissionError(t);return e})}},{key:"reduceSchemaErrors",value:function(e){if(!e.errors)return e;var t=u({},e);return t.state||(t=u({},t,{state:this.props.schema.state})),t=u({},t,{state:u({},t.state,{fields:t.state.fields.map(function(t){var n=e.errors.find(function(e){return e.field===t.name});return n&&(n=(0,x.createErrorHtml)([n.value])),u({},t,{message:n})}),messages:e.errors.filter(function(e){return!e.field})})}),delete t.errors,(0,O.default)(t)}},{key:"overrideStateData",value:function(e){if(!this.props.stateOverrides||!e)return e;var t=this.props.stateOverrides.fields,n=e.fields;return t&&n&&(n=n.map(function(e){var n=t.find(function(t){return t.name===e.name});return n?P.default.recursive(!0,e,n):e})),Object.assign({},e,this.props.stateOverrides,{fields:n})}},{key:"callFetch",value:function(e){return(0,j.default)(this.props.schemaUrl,{headers:{"X-FormSchema-Request":e.join(","),Accept:"application/json"},credentials:"same-origin"}).then(function(e){return e.status>=200&&e.status<300?e.json():new Promise(function(t,n){return e.json().then(function(t){n({status:e.status,statusText:e.statusText,json:t})}).catch(function(){n({status:e.status,statusText:e.statusText,json:{}})})})})}},{key:"fetch",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this.props.loading)return Promise.resolve({});var o=["auto",e&&"schema",n&&"state",r&&"errors"].filter(function(e){return e});return this.props.actions.schema.setSchemaLoading(this.props.schemaUrl,!0),"function"==typeof this.props.onFetchingSchema&&this.props.onFetchingSchema(),this.callFetch(o).then(function(e){if(t.props.actions.schema.setSchemaLoading(t.props.schemaUrl,!1),e.errors?"function"==typeof t.props.onLoadingError&&t.props.onLoadingError(e):"function"==typeof t.props.onLoadingSuccess&&t.props.onLoadingSuccess(),void 0!==e.id&&e.state){var n=Object.assign({},e,{state:t.overrideStateData(e.state)}),r=s(u({},t.props,{schema:u({},t.props.schema,n)}));t.props.actions.schema.setSchema(t.props.schemaUrl,n,r);var o=e.schema||t.props.schema.schema,i=(0,E.default)(o,n.state);return t.props.actions.reduxForm.initialize(r,i,!1,{keepSubmitSucceeded:!0}),"function"==typeof t.props.onReduxFormInit&&t.props.onReduxFormInit(),n}return e}).catch(function(e){if(t.setState({didError:!0}),t.props.actions.schema.setSchemaLoading(t.props.schemaUrl,!1),"function"==typeof t.props.onLoadingError)return t.props.onLoadingError(t.normaliseError(e));throw e})}},{key:"normaliseError",value:function(e){return e.json&&e.json.errors?e.json:e.status&&e.statusText?{errors:[{code:e.status,value:e.statusText,type:"error"}]}:{errors:[{value:e.message||p.default._t("Admin.UNKNOWN_ERROR","An unknown error has occurred."),type:"error"}]}}},{key:"handleAutofill",value:function(e,t){this.props.actions.reduxForm.autofill(this.getIdentifier(),e,t)}},{key:"render",value:function(){if(this.state&&this.state.didError)return null;if(!this.props.schema||!this.props.schema.schema||this.props.loading){var e=this.props.loadingComponent;return m.default.createElement(e,{containerClass:"loading--form flexbox-area-grow"})}var t=Object.assign({},this.props,{form:this.getIdentifier(),onSubmitSuccess:this.props.onSubmitSuccess,onSubmit:this.handleSubmit,onAutofill:this.handleAutofill,autoFocus:this.props.autoFocus});return m.default.createElement(M.default,t)}}]),t}(h.Component);B.propTypes=Object.assign({},A.basePropTypes,{actions:g.default.shape({schema:g.default.object,reduxFrom:g.default.object}),autoFocus:g.default.bool,identifier:g.default.string.isRequired,schemaUrl:g.default.string.isRequired,schema:A.schemaPropType,refetchSchemaOnMount:g.default.bool.isRequired,form:g.default.string,submitting:g.default.bool,onFetchingSchema:g.default.func,onReduxFormInit:g.default.func,loadingComponent:g.default.oneOfType([g.default.func,g.default.node]).isRequired}),B.defaultProps={refetchSchemaOnMount:!0},t.Component=B,t.default=(0,y.compose)((0,I.inject)(["ReduxForm","ReduxFormField","Loading"],function(e,t,n){return{loadingComponent:n,baseFormComponent:e,baseFieldComponent:t}},function(e){return e.identifier}),(0,v.connect)(l,c))(B)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/containers/InsertLinkModal/InsertLinkModal.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{actions:{schema:(0,p.bindActionCreators)(_,e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.createInsertLinkModal=t.InsertLinkModal=void 0;var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("prop-types"),f=r(d),p=n("redux"),h=n("react-redux"),m=n("components/FormBuilderModal/FormBuilderModal"),b=r(m),g=n("containers/InsertLinkModal/fileSchemaModalHandler"),v=r(g),y=n("state/schema/SchemaActions"),_=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(y),j=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleSubmit=n.handleSubmit.bind(n),e.isOpen||e.setOverrides(null),n}return a(t,e),l(t,[{key:"componentDidUpdate",value:function(e){var t=this.props;(t.isOpen&&!e.isOpen||!t.isOpen&&e.isOpen)&&t.setOverrides(t.isOpen?t:null)}},{key:"getModalProps",value:function(){var e=Object.assign({},this.props,{onSubmit:this.handleSubmit,onClosed:this.props.onClosed,autoFocus:!0,showErrorMessage:!0});return delete e.onInsert,delete e.sectionConfig,e}},{key:"handleSubmit",value:function(e,t){switch(t){case"action_cancel":this.props.onClosed();break;default:this.props.onInsert(e,t)}return Promise.resolve()}},{key:"render",value:function(){var e=this.getModalProps();return u.default.createElement(b.default,e)}}]),t}(c.Component);j.propTypes={isOpen:f.default.bool,schemaUrl:f.default.string,onInsert:f.default.func.isRequired,onClosed:f.default.func.isRequired,setOverrides:f.default.func.isRequired,actions:f.default.object,requireLinkText:f.default.bool,currentPageID:f.default.number},j.defaultProps={};var w=function(e,t){function n(n,r){var o=n.config.sections.find(function(t){return t.name===e}),i=r.requireLinkText?"?requireLinkText":"";return{sectionConfig:o,schemaUrl:(""+o.form[t].schemaUrl+i).replace(/:pageid/,r.currentPageID)}}return(0,p.compose)((0,h.connect)(n,s),v.default)(j)};t.InsertLinkModal=j,t.createInsertLinkModal=w,t.default=(0,p.compose)((0,h.connect)(function(){return{}},s),v.default)(j)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/containers/InsertLinkModal/fileSchemaModalHandler.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t&&t.actions||{};return{actions:u({},n,{schema:(0,g.bindActionCreators)(y,e)})}}function c(e){function t(){return{Component:e}}return(0,_.connect)(t,l)(j)}Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectedFileSchemaHandler=t.FileSchemaHandler=void 0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n("react"),h=r(p),m=n("prop-types"),b=r(m),g=n("redux"),v=n("state/schema/SchemaActions"),y=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(v),_=n("react-redux"),j=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverrides=n.setOverrides.bind(n),n}return s(t,e),f(t,[{key:"componentDidMount",value:function(){this.setOverrides(this.props)}},{key:"componentWillUnmount",value:function(){this.setOverrides()}},{key:"setOverrides",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(e){if(e.schemaUrl){var t=Object.assign({},e.fileAttributes);delete t.ID;var n={fields:Object.entries(t).map(function(e){var t=d(e,2);return{name:t[0],value:t[1]}})};this.props.actions.schema.setSchemaStateOverrides(e.schemaUrl,n)}}else{var r=this.props.schemaUrl;r&&this.props.actions.schema.setSchemaStateOverrides(r,null)}}},{key:"render",value:function(){var e=this.props,t=e.Component,n=o(e,["Component"]);return h.default.createElement(t,u({setOverrides:this.setOverrides},n))}}]),t}(p.Component);j.propTypes={fileAttributes:b.default.object,Component:b.default.oneOfType([b.default.element,b.default.func]),schemaUrl:b.default.string,actions:b.default.object};var w=(0,_.connect)(function(){return{}},l())(j);t.FileSchemaHandler=j,t.ConnectedFileSchemaHandler=w,t.default=c},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Backend.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=null;if(!(e.status>=200&&e.status<300))throw t=new Error(e.statusText),t.response=e,t;return e}function s(e){var t=null;if(e instanceof FormData||"string"==typeof e)t=e;else{if(!e||"object"!==(void 0===e?"undefined":m(e)))throw new Error("Invalid body type");t=JSON.stringify(e)}return t}function l(e,t){switch(e){case"application/x-www-form-urlencoded":return j.default.stringify(t);case"application/json":case"application/x-json":case"application/x-javascript":case"text/javascript":case"text/x-javascript":case"text/x-json":return JSON.stringify(t);default:throw new Error("Can't encode format: "+e)}}function c(e,t){switch(e){case"application/x-www-form-urlencoded":return j.default.parse(t);case"application/json":case"application/x-json":case"application/x-javascript":case"text/javascript":case"text/x-javascript":case"text/x-json":return JSON.parse(t);default:throw new Error("Can't decode format: "+e)}}function u(e,t){return""===t?e:e.match(/\?/)?e+"&"+t:e+"?"+t}function d(e){return e.text().then(function(t){return c(e.headers.get("Content-Type"),t)})}function f(e,t){return Object.keys(t).reduce(function(n,r){var o=e[r];return!o||!0!==o.remove&&!0!==o.querystring?Object.assign(n,i({},r,t[r])):n},{})}function p(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{setFromData:!1},o=t;return o=u(o,l("application/x-www-form-urlencoded",Object.keys(n).reduce(function(t,o){var a=e[o],s=!0===r.setFromData&&!(a&&!0===a.remove),l=a&&!0===a.querystring&&!0!==a.remove;return s||l?Object.assign(t,i({},o,n[o])):t},{}))),o=Object.keys(e).reduce(function(t,r){var o=e[r].urlReplacement;return o?t.replace(o,n[r]):t},o)}Object.defineProperty(t,"__esModule",{value:!0});var h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b=n("isomorphic-fetch"),g=r(b),v=n("./node_modules/es6-promise/dist/es6-promise.js"),y=r(v),_=n("qs"),j=r(_),w=n("merge"),O=r(w);y.default.polyfill();var T=function(){function e(){o(this,e),this.fetch=g.default}return h(e,[{key:"createEndpointFetcher",value:function(e){var t=this,n=Object.assign({method:"get",payloadFormat:"application/x-www-form-urlencoded",responseFormat:"application/json",payloadSchema:{},defaultData:{}},e),r={json:"application/json",urlencoded:"application/x-www-form-urlencoded"};return["payloadFormat","responseFormat"].forEach(function(e){r[n[e]]&&(n[e]=r[n[e]])}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object.assign({},r,{Accept:n.responseFormat,"Content-Type":n.payloadFormat}),i=O.default.recursive({},n.defaultData,e),a=p(n.payloadSchema,n.url,i,{setFromData:"get"===n.method.toLowerCase()}),s="get"!==n.method.toLowerCase()?l(n.payloadFormat,f(n.payloadSchema,i)):"",c="get"===n.method.toLowerCase()?[a,o]:[a,s,o];return t[n.method.toLowerCase()].apply(t,c).then(d)}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.fetch(e,{method:"get",credentials:"same-origin",headers:t}).then(a)}},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={"Content-Type":"application/x-www-form-urlencoded"};return this.fetch(e,{method:"post",credentials:"same-origin",body:s(t),headers:Object.assign({},r,n)}).then(a)}},{key:"put",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.fetch(e,{method:"put",credentials:"same-origin",body:s(t),headers:n}).then(a)}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.fetch(e,{method:"delete",credentials:"same-origin",body:s(t),headers:n}).then(a)}}]),e}(),C=new T;t.default=C},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Config.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){r(this,e)}return o(e,null,[{key:"get",value:function(e){return window.ss.config[e]}},{key:"getAll",value:function(){return window.ss.config}},{key:"getSection",value:function(e){return window.ss.config.sections.find(function(t){return t.name===e})}},{key:"getCurrentSection",value:function(){}}]),e}();t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/DataFormat.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return u.default.parse(e.replace(/^\?/,""))}function i(e){var t=null,n="";return e<1024?(t=e,n="bytes"):e<10240?(t=Math.round(e/1024*10)/10,n="KB"):e<1048576?(t=Math.round(e/1024),n="KB"):e<10485760?(t=Math.round(e/1048576*10)/10,n="MB"):e<1073741824&&(t=Math.round(e/1048576),n="MB"),(t||0===t)&&n||(t=Math.round(e/1073741824*10)/10,n="GB"),isNaN(t)?l.default._t("Admin.NO_SIZE","N/A"):t+" "+n}function a(e){return/[.]/.exec(e)?e.replace(/^.+[.]/,""):""}Object.defineProperty(t,"__esModule",{value:!0}),t.decodeQuery=o,t.fileSize=i,t.getFileExtension=a;var s=n("i18n"),l=r(s),c=n("qs"),u=r(c)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Injector.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.graphqlTemplates=t.loadComponent=t.injectGraphql=t.inject=t.withInjector=t.provideContext=t.provideInjector=void 0;var o=n("./client/src/lib/dependency-injection/provideInjector.js"),i=r(o),a=n("./client/src/lib/dependency-injection/provideContext.js"),s=r(a),l=n("./client/src/lib/dependency-injection/withInjector.js"),c=r(l),u=n("./client/src/lib/dependency-injection/inject.js"),d=r(u),f=n("./client/src/lib/dependency-injection/injectGraphql.js"),p=r(f),h=n("./client/src/lib/dependency-injection/graphql/templates.js"),m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(h),b=n("./client/src/lib/dependency-injection/loadComponent.js"),g=r(b),v=n("./client/src/lib/dependency-injection/Container.js"),y=r(v);t.provideInjector=i.default,t.provideContext=s.default,t.withInjector=c.default,t.inject=d.default,t.injectGraphql=p.default,t.loadComponent=g.default,t.graphqlTemplates=m,t.default=y.default},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/ReactRouteRegister.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){r(this,e),this.reset()}return o(e,[{key:"reset",value:function(){var e=this;this.childRoutes=[],this.rootRoute={path:"/",routes:function(){return e.getChildRoutes()}}}},{key:"updateRootRoute",value:function(e){this.rootRoute=Object.assign({},this.rootRoute,e)}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.path===this.rootRoute.path&&Array.isArray(e.routes))return void(this.childRoutes=e.routes.concat(this.childRoutes));var n=this.findChildRoute(t),r=Object.assign({},{routes:[]},e),o=r.routes[r.routes.length-1];o&&"**"===o.path||(o={path:"**"},r.routes.push(o));var i=n.findIndex(function(t){return t.path===e.path});i>=0?n[i]=r:n.unshift(r)}},{key:"findChildRoute",value:function(e){var t=this.childRoutes;return e&&e.forEach(function(e){var n=t.find(function(t){return t.path===e});if(!n)throw new Error("Parent path "+e+" could not be found.");t=n.routes}),t}},{key:"getRootRoute",value:function(){return this.rootRoute}},{key:"getChildRoutes",value:function(){return this.childRoutes}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.findChildRoute(t),r=n.findIndex(function(t){return t.path===e});return r<0?null:n.splice(r,1)[0]}}]),e}();window.ss=window.ss||{},window.ss.routeRegister=window.ss.routeRegister||new i,t.default=window.ss.routeRegister},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Router.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=c.default.getAbsoluteBase(),n=d.default.resolve(t,e);return 0!==n.indexOf(t)?n:n.substring(t.length-1)}function i(e){return new c.default.Route(e).match(c.default.current,{})}function a(){return c.default.absoluteBaseURL}function s(e){c.default.absoluteBaseURL=e;var t=document.createElement("a");t.href=e;var n=t.pathname;n=n.replace(/\/$/,""),n.match(/^[^\/]/)&&(n="/"+n),c.default.base(n)}Object.defineProperty(t,"__esModule",{value:!0});var l=n("page.js"),c=r(l),u=n("url"),d=r(u);c.default.oldshow||(c.default.oldshow=c.default.show),c.default.setAbsoluteBase=s.bind(c.default),c.default.getAbsoluteBase=a.bind(c.default),c.default.resolveURLToBase=o.bind(c.default),c.default.show=function(e){return function(t,n,r,o){return e(c.default.resolveURLToBase(t),n,r,o)}}(c.default.oldshow),c.default.routeAppliesToCurrentLocation=i,window.ss=window.ss||{},window.ss.router=window.ss.router||c.default,t.default=window.ss.router},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/ShortcodeSerialiser.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.createHTMLSanitiser=t.sanitiseShortCodeProperties=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n("i18n"),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=function(e){return e.toString().slice(1,-1)},c=l(/((?:[,\s]+(?:[a-z0-9\-_]+)=(?:(?:[a-z0-9\-_]+)|(?:\d+\.\d+)|(?:'[^']*')|(?:"[^"]*")))*)/),u=/[,\s]+([a-z0-9\-_]+)=(?:([a-z0-9\-_]+)|(\d+\.\d+)|(?:'([^']*)')|(?:"([^"]*)"))/,d=l(/\[%s/),f=l(/\[\s*\/\s*%s\s*]/),p=l(/((?:.|\n|)*?)/),h=l(/\s*/),m={match:function(e,t,n){var r=s.default.sprintf(d,e),o=""+r+c+h+"\\]";t&&(o=""+o+p+s.default.sprintf(f,e));var i=new RegExp(o,"i"),a=i.exec(n);return a?{name:e,wrapped:t,properties:this.parseProperties(a[1]),original:a[0],content:t?a[2]:null}:null},parseProperties:function(e){for(var t=e,n={},r=t.match(u);r;){var o=r[1]||"",i=r[2]||r[3]||r[4]||r[5]||"";o&&(n[o]=i);var a=t.indexOf(r[0]);t=t.substr(a+r[0].length),r=t.match(u)}return n},serialise:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?{sep:",",quote:"",replacer:/[^a-z0-9\-_.]/gi}:{sep:" ",quote:'"',replacer:/"/g},r=Object.entries(e.properties).map(function(e){var t=i(e,2),r=t[0],o=t[1];return o?""+n.sep+r+"="+n.quote+(""+o).replace(n.replacer,"")+n.quote:null}).filter(function(e){return null!==e}).join("");return e.wrapped?"["+e.name+r+"]"+e.content+"[/"+e.name+"]":"["+e.name+r+"]"}},b=function(){var e=document.createElement("div");return function(t){return void 0===t?"":(e.textContent=t,e.innerHTML)}},g=function(e){var t=b();return Object.entries(e).reduce(function(e,n){var a=i(n,2),s=a[0],l=a[1];return o({},e,r({},s,t(l)))},{})};t.sanitiseShortCodeProperties=g,t.createHTMLSanitiser=b,t.default=m},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/SilverStripeComponent.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n("react"),l=null,c=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return clearTimeout(l),e}return i(t,e),a(t,[{key:"render",value:function(){return null}}]),t}(s.Component);c.propTypes={},t.default=c},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/TinyMCEActionRegistrar.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t){return e?e+"."+t:t},l=function(){function e(){o(this,e),this.actions={},this.editorCommandsToUrlTestsMap={},this.defaultCommand="sslinkexternal"}return a(e,[{key:"addAction",value:function(e,t,n){var o=t.priority||50,a=s(n,e);return this.getActions(e,n,!0).find(function(e){return t.text===e.text})||(this.actions[a]=[].concat(r(this.getActions(e,n,!1)),[i({},t,{priority:o})])),this}},{key:"getActions",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t&&!n||!this.actions[e]?[]:this.actions[e],i=s(t,e);return t&&this.actions[i]&&(o=[].concat(r(o),r(this.actions[i]))),o}},{key:"getSortedActions",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.getActions(e,t,n).sort(function(e,t){return t.priority-e.priority||(e.text.toLocaleLowerCase()>t.text.toLocaleLowerCase()?1:-1)})}},{key:"addCommandWithUrlTest",value:function(e,t){return this.editorCommandsToUrlTestsMap[e]=t,this}},{key:"setDefaultCommand",value:function(e){return this.defaultCommand=e,this}},{key:"getDefaultCommand",value:function(){return this.defaultCommand}},{key:"getEditorCommandFromUrl",value:function(e){var t=this,n=this.getDefaultCommand(),r=Object.keys(this.editorCommandsToUrlTestsMap),o=r.find(function(n){return t.editorCommandsToUrlTestsMap[n]&&t.editorCommandsToUrlTestsMap[n].test(e)});return o&&(n=o),n}}]),e}();window.ss=window.ss||{},window.ss.tinymceactions=window.ss.tinymceactions||new l,t.default=window.ss.tinymceactions},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/formatWrittenNumber.js":function(e,t,n){"use strict";function r(e){var t=Number(e);return null!==e&&t>=0&&t<10?[i.default._t("Admin.WRITTEN_NUMBER_ZERO","zero"),i.default._t("Admin.WRITTEN_NUMBER_ONE","one"),i.default._t("Admin.WRITTEN_NUMBER_TWO","two"),i.default._t("Admin.WRITTEN_NUMBER_THREE","three"),i.default._t("Admin.WRITTEN_NUMBER_FOUR","four"),i.default._t("Admin.WRITTEN_NUMBER_FIVE","five"),i.default._t("Admin.WRITTEN_NUMBER_SIX","six"),i.default._t("Admin.WRITTEN_NUMBER_SEVEN","seven"),i.default._t("Admin.WRITTEN_NUMBER_EIGHT","eight"),i.default._t("Admin.WRITTEN_NUMBER_NINE","nine")][t]:t?String(t):null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n("i18n"),i=function(e){return e&&e.__esModule?e:{default:e}}(o)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/getFormState.js":function(e,t,n){"use strict";function r(e){return e.form&&e.form.formState||{}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/reduxFieldReducer.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(o){if(!t.payload.fieldId)throw new Error("Invalid fieldId");var i=e.fields||{},s=i[t.payload.fieldId]?e.fields[t.payload.fieldId]:n;return(0,a.default)(Object.assign({},e,{fields:Object.assign({},i,r({},t.payload.fieldId,Object.assign({},s,o(s))))}))}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n("deep-freeze-strict"),a=function(e){return e&&e.__esModule?e:{default:e}}(i)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/schemaFieldValues.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){return void 0===t?e:l.default.recursive(!0,e,t)}function i(e,t){return e?e.reduce(function(e,n){return e||i(n.children,t)},e.find(function(e){return e.name===t||e.name===t+"[]"})):null}function a(e,t){return t?t.fields.reduce(function(t,n){var o=i(e.fields,n.name);return o?"Structural"===o.type||!0===o.readOnly?t:Object.assign({},t,r({},n.name,n.value)):t},{}):{}}Object.defineProperty(t,"__esModule",{value:!0}),t.schemaMerge=o,t.findField=i,t.default=a;var s=n("merge"),l=function(e){return e&&e.__esModule?e:{default:e}}(s)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/withDragDropContext.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("react-dnd"),o=n("react-dnd-html5-backend"),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=(0,r.DragDropContext)(i.default)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/breadcrumbs/BreadcrumbsActions.js":function(e,t,n){"use strict";function r(e){return{type:i.default.SET_BREADCRUMBS,payload:{breadcrumbs:e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.setBreadcrumbs=r;var o=n("./client/src/state/breadcrumbs/BreadcrumbsActionTypes.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/records/RecordsActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={FETCH_RECORDS_REQUEST:"FETCH_RECORDS_REQUEST",FETCH_RECORDS_FAILURE:"FETCH_RECORDS_FAILURE",FETCH_RECORDS_SUCCESS:"FETCH_RECORDS_SUCCESS",FETCH_RECORD_REQUEST:"FETCH_RECORD_REQUEST",FETCH_RECORD_FAILURE:"FETCH_RECORD_FAILURE",FETCH_RECORD_SUCCESS:"FETCH_RECORD_SUCCESS",DELETE_RECORD_REQUEST:"DELETE_RECORD_REQUEST",DELETE_RECORD_FAILURE:"DELETE_RECORD_FAILURE",DELETE_RECORD_SUCCESS:"DELETE_RECORD_SUCCESS"}},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/records/RecordsActions.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return Object.keys(t).reduce(function(e,n){return e.replace(":"+n,t[n])},e)}function i(e,t,n){var r={recordType:e},i={Accept:"application/json"},a=t.toLowerCase();return function(t){t({type:d.default.FETCH_RECORDS_REQUEST,payload:r});var s="get"===a?[o(n,r),i]:[o(n,r),{},i];return c.default[a].apply(c.default,s).then(function(e){return e.json()}).then(function(n){t({type:d.default.FETCH_RECORDS_SUCCESS,payload:{recordType:e,data:n}})}).catch(function(n){throw t({type:d.default.FETCH_RECORDS_FAILURE,payload:{error:n,recordType:e}}),n})}}function a(e,t,n){var r={recordType:e},i={Accept:"application/json"},a=t.toLowerCase();return function(t){t({type:d.default.FETCH_RECORD_REQUEST,payload:r});var s="get"===a?[o(n,r),i]:[o(n,r),{},i];return c.default[a].apply(c.default,s).then(function(e){return e.json()}).then(function(n){t({type:d.default.FETCH_RECORD_SUCCESS,payload:{recordType:e,data:n}})}).catch(function(n){throw t({type:d.default.FETCH_RECORD_FAILURE,payload:{error:n,recordType:e}}),n})}}function s(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a={recordType:e,id:t},s=n.toLowerCase(),l="get"===s?[o(r,a),i]:[o(r,a),{},i];return function(n){return n({type:d.default.DELETE_RECORD_REQUEST,payload:a}),c.default[s].apply(c.default,l).then(function(){n({type:d.default.DELETE_RECORD_SUCCESS,payload:{recordType:e,id:t}})}).catch(function(r){throw n({type:d.default.DELETE_RECORD_FAILURE,payload:{error:r,recordType:e,id:t}}),r})}}Object.defineProperty(t,"__esModule",{value:!0}),t.fetchRecords=i,t.fetchRecord=a,t.deleteRecord=s;var l=n("lib/Backend"),c=r(l),u=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/records/RecordsActionTypes.js"),d=r(u)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/schema/SchemaActions.js":function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];return{type:l.default.SET_SCHEMA,payload:a({},t,{id:e,name:n})}}function o(e,t){return{type:l.default.SET_SCHEMA_STATE_OVERRIDES,payload:{id:e,stateOverride:t}}}function i(e,t){return{type:l.default.SET_SCHEMA_LOADING,payload:{id:e,loading:t}}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.setSchema=r,t.setSchemaStateOverrides=o,t.setSchemaLoading=i;var s=n("./client/src/state/schema/SchemaActionTypes.js"),l=function(e){return e&&e.__esModule?e:{default:e}}(s)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/tabs/TabsActions.js":function(e,t,n){"use strict";function r(e,t){return{type:i.default.TABS_ACTIVATE_TAB,payload:{fieldId:e,tab:t}}}Object.defineProperty(t,"__esModule",{value:!0}),t.activateTab=r;var o=n("./client/src/state/tabs/TabsActionTypes.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/toasts/ToastsActions.js":function(e,t,n){"use strict";function r(e){return function(t){t({type:p.default.DISMISS,payload:{id:e}}),setTimeout(function(){return t({type:p.default.REMOVE,payload:{id:e}})},h.FADEOUT_TIME)}}function o(e){var t="toast-"+(0,m.v4)();return function(n){var o=function(){return r(t)(n)},i=d({id:t,dismissCallback:o},b,e);n({type:p.default.DISPLAY,payload:i})}}function i(e){return o({text:e,type:"success"})}function a(e){return o({text:e,type:"error",stay:!0})}function s(e){return o({text:e,type:"warning",stay:!0})}function l(e){return o({text:e})}function c(){return{type:p.default.PAUSE}}function u(){return{type:p.default.RESUME}}Object.defineProperty(t,"__esModule",{value:!0});var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.dismiss=r,t.display=o,t.success=i,t.error=a,t.warning=s,t.info=l,t.pause=c,t.resume=u;var f=n("./client/src/state/toasts/ToastsActionTypes.js"),p=function(e){return e&&e.__esModule?e:{default:e}}(f),h=n("./client/src/state/toasts/ToastConstants.js"),m=n("./node_modules/uuid/dist/esm-browser/index.js"),b={text:"",stay:!1,type:"notice"}},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/unsavedForms/UnsavedFormsActions.js":function(e,t,n){"use strict";function r(e){return{type:a.default.ADD_FORM_CHANGED,meta:{form:e}}}function o(e){return{type:a.default.REMOVE_FORM_CHANGED,meta:{form:e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.addFormChanged=r,t.removeFormChanged=o;var i=n("./client/src/state/unsavedForms/UnsavedFormsActionTypes.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(i)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/viewMode/ViewModeActions.js":function(e,t,n){"use strict";function r(){return{type:l.default.SELECT_EDIT}}function o(){return{type:l.default.SELECT_PREVIEW}}function i(){return{type:l.default.SELECT_SPLIT}}function a(e){return{type:l.default.SPLIT_AVAILABLE,payload:{panelWidth:e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.selectEditMode=r,t.selectPreviewMode=o,t.selectSplitMode=i,t.enableOrDisableSplitMode=a;var s=n("./client/src/state/viewMode/ViewModeActionTypes.js"),l=function(e){return e&&e.__esModule?e:{default:e}}(s)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/viewMode/ViewModeStates.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_MODE_STATES={EDIT:"edit",PREVIEW:"preview",SPLIT:"split"}},"./node_modules/expose-loader/index.js?Accordion!./client/src/components/Accordion/Accordion.js-exposed":function(e,t,n){(function(t){e.exports=t.Accordion=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Accordion/Accordion.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?AccordionBlock!./client/src/components/Accordion/AccordionBlock.js-exposed":function(e,t,n){(function(t){e.exports=t.AccordionBlock=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Accordion/AccordionBlock.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?BackButton!./client/src/components/Button/BackButton.js-exposed":function(e,t,n){(function(t){e.exports=t.BackButton=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Button/BackButton.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Backend!./client/src/lib/Backend.js-exposed":function(e,t,n){(function(t){e.exports=t.Backend=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Backend.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Badge!./client/src/components/Badge/Badge.js-exposed":function(e,t,n){(function(t){e.exports=t.Badge=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Badge/Badge.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Breadcrumb!./client/src/components/Breadcrumb/Breadcrumb.js-exposed":function(e,t,n){(function(t){e.exports=t.Breadcrumb=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Breadcrumb/Breadcrumb.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?BreadcrumbsActions!./client/src/state/breadcrumbs/BreadcrumbsActions.js-exposed":function(e,t,n){(function(t){e.exports=t.BreadcrumbsActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/breadcrumbs/BreadcrumbsActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Button!./client/src/components/Button/Button.js-exposed":function(e,t,n){(function(t){e.exports=t.Button=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Button/Button.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?CheckboxSetField!./client/src/components/CheckboxSetField/CheckboxSetField.js-exposed":function(e,t,n){(function(t){e.exports=t.CheckboxSetField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/CheckboxSetField/CheckboxSetField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?CompactTagList!./client/src/components/Tag/CompactTagList.js-exposed":function(e,t,n){(function(t){e.exports=t.CompactTagList=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tag/CompactTagList.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Config!./client/src/lib/Config.js-exposed":function(e,t,n){(function(t){e.exports=t.Config=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Config.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?DataFormat!./client/src/lib/DataFormat.js-exposed":function(e,t,n){(function(t){e.exports=t.DataFormat=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/DataFormat.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FieldHolder!./client/src/components/FieldHolder/FieldHolder.js-exposed":function(e,t,n){(function(t){e.exports=t.FieldHolder=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FieldHolder/FieldHolder.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FileSchemaModalHandler!./client/src/containers/InsertLinkModal/fileSchemaModalHandler.js-exposed":function(e,t,n){(function(t){e.exports=t.FileSchemaModalHandler=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/containers/InsertLinkModal/fileSchemaModalHandler.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FileStatusIcon!./client/src/components/FileStatusIcon/FileStatusIcon.js-exposed":function(e,t,n){(function(t){e.exports=t.FileStatusIcon=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FileStatusIcon/FileStatusIcon.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Focusedzone!./client/src/components/Focusedzone/Focusedzone.js-exposed":function(e,t,n){(function(t){e.exports=t.Focusedzone=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Focusedzone/Focusedzone.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Form!./client/src/components/Form/Form.js-exposed":function(e,t,n){(function(t){e.exports=t.Form=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Form/Form.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FormAction!./client/src/components/FormAction/FormAction.js-exposed":function(e,t,n){(function(t){e.exports=t.FormAction=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormAction/FormAction.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FormAlert!./client/src/components/FormAlert/FormAlert.js-exposed":function(e,t,n){(function(t){e.exports=t.FormAlert=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormAlert/FormAlert.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FormBuilder!./client/src/components/FormBuilder/FormBuilder.js-exposed":function(e,t,n){(function(t){e.exports=t.FormBuilder=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormBuilder/FormBuilder.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FormBuilderLoader!./client/src/containers/FormBuilderLoader/FormBuilderLoader.js-exposed":function(e,t,n){(function(t){e.exports=t.FormBuilderLoader=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/containers/FormBuilderLoader/FormBuilderLoader.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FormBuilderModal!./client/src/components/FormBuilderModal/FormBuilderModal.js-exposed":function(e,t,n){(function(t){e.exports=t.FormBuilderModal=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormBuilderModal/FormBuilderModal.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FormConstants!./client/src/components/Form/FormConstants.js-exposed":function(e,t,n){(function(t){e.exports=t.FormConstants=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Form/FormConstants.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?GridField!./client/src/components/GridField/GridField.js-exposed":function(e,t,n){(function(t){e.exports=t.GridField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?GridFieldCell!./client/src/components/GridField/GridFieldCell.js-exposed":function(e,t,n){(function(t){e.exports=t.GridFieldCell=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldCell.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?GridFieldHeader!./client/src/components/GridField/GridFieldHeader.js-exposed":function(e,t,n){(function(t){e.exports=t.GridFieldHeader=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldHeader.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?GridFieldHeaderCell!./client/src/components/GridField/GridFieldHeaderCell.js-exposed":function(e,t,n){(function(t){e.exports=t.GridFieldHeaderCell=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldHeaderCell.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?GridFieldRow!./client/src/components/GridField/GridFieldRow.js-exposed":function(e,t,n){(function(t){e.exports=t.GridFieldRow=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldRow.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?GridFieldTable!./client/src/components/GridField/GridFieldTable.js-exposed":function(e,t,n){(function(t){e.exports=t.GridFieldTable=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldTable.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?HiddenField!./client/src/components/HiddenField/HiddenField.js-exposed":function(e,t,n){(function(t){e.exports=t.HiddenField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/HiddenField/HiddenField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Injector!./client/src/lib/Injector.js-exposed":function(e,t,n){(function(t){e.exports=t.Injector=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Injector.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?InsertLinkModal!./client/src/containers/InsertLinkModal/InsertLinkModal.js-exposed":function(e,t,n){(function(t){e.exports=t.InsertLinkModal=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/containers/InsertLinkModal/InsertLinkModal.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ListGroup!./client/src/components/ListGroup/ListGroup.js-exposed":function(e,t,n){(function(t){e.exports=t.ListGroup=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ListGroup/ListGroup.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ListGroupItem!./client/src/components/ListGroup/ListGroupItem.js-exposed":function(e,t,n){(function(t){e.exports=t.ListGroupItem=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ListGroup/ListGroupItem.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?LiteralField!./client/src/components/LiteralField/LiteralField.js-exposed":function(e,t,n){(function(t){e.exports=t.LiteralField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/LiteralField/LiteralField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Loading!./client/src/components/Loading/Loading.js-exposed":function(e,t,n){(function(t){e.exports=t.Loading=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Loading/Loading.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?PopoverField!./client/src/components/PopoverField/PopoverField.js-exposed":function(e,t,n){(function(t){e.exports=t.PopoverField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/PopoverField/PopoverField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Preview!./client/src/components/Preview/Preview.js-exposed":function(e,t,n){(function(t){e.exports=t.Preview=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Preview/Preview.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ReactRouteRegister!./client/src/lib/ReactRouteRegister.js-exposed":function(e,t,n){(function(t){e.exports=t.ReactRouteRegister=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/ReactRouteRegister.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?RecordsActionTypes!./client/src/state/records/RecordsActionTypes.js-exposed":function(e,t,n){(function(t){e.exports=t.RecordsActionTypes=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/records/RecordsActionTypes.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?RecordsActions!./client/src/state/records/RecordsActions.js-exposed":function(e,t,n){(function(t){e.exports=t.RecordsActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/records/RecordsActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ResizeAware!./client/src/components/ResizeAware/ResizeAware.js-exposed":function(e,t,n){(function(t){e.exports=t.ResizeAware=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ResizeAware/ResizeAware.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Router!./client/src/lib/Router.js-exposed":function(e,t,n){(function(t){e.exports=t.Router=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Router.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?SchemaActions!./client/src/state/schema/SchemaActions.js-exposed":function(e,t,n){(function(t){e.exports=t.SchemaActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/schema/SchemaActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Search!./client/src/components/Search/Search.js-exposed":function(e,t,n){(function(t){e.exports=t.Search=n("./client/src/components/Search/Search.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?SearchToggle!./client/src/components/Search/SearchToggle.js-exposed":function(e,t,n){(function(t){e.exports=t.SearchToggle=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Search/SearchToggle.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ShortcodeSerialiser!./client/src/lib/ShortcodeSerialiser.js-exposed":function(e,t,n){(function(t){e.exports=t.ShortcodeSerialiser=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/ShortcodeSerialiser.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?SilverStripeComponent!./client/src/lib/SilverStripeComponent.js-exposed":function(e,t,n){(function(t){e.exports=t.SilverStripeComponent=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/SilverStripeComponent.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TabsActions!./client/src/state/tabs/TabsActions.js-exposed":function(e,t,n){(function(t){e.exports=t.TabsActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/tabs/TabsActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Tag!./client/src/components/Tag/Tag.js-exposed":function(e,t,n){(function(t){e.exports=t.Tag=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tag/Tag.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TagList!./client/src/components/Tag/TagList.js-exposed":function(e,t,n){(function(t){e.exports=t.TagList=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tag/TagList.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TextField!./client/src/components/TextField/TextField.js-exposed":function(e,t,n){(function(t){e.exports=t.TextField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TextField/TextField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TinyMCEActionRegistrar!./client/src/lib/TinyMCEActionRegistrar.js-exposed":function(e,t,n){(function(t){e.exports=t.TinyMCEActionRegistrar=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/TinyMCEActionRegistrar.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Tip!./client/src/components/Tip/Tip.js-exposed":function(e,t,n){(function(t){e.exports=t.Tip=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tip/Tip.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ToastsActions!./client/src/state/toasts/ToastsActions.js-exposed":function(e,t,n){(function(t){e.exports=t.ToastsActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/toasts/ToastsActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Toolbar!./client/src/components/Toolbar/Toolbar.js-exposed":function(e,t,n){(function(t){e.exports=t.Toolbar=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Toolbar/Toolbar.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TreeDropdownField!./client/src/components/TreeDropdownField/TreeDropdownField.js-exposed":function(e,t,n){(function(t){e.exports=t.TreeDropdownField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TreeDropdownFieldMenu!./client/src/components/TreeDropdownField/TreeDropdownFieldMenu.js-exposed":function(e,t,n){(function(t){e.exports=t.TreeDropdownFieldMenu=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldMenu.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TreeDropdownFieldNode!./client/src/components/TreeDropdownField/TreeDropdownFieldNode.js-exposed":function(e,t,n){(function(t){e.exports=t.TreeDropdownFieldNode=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldNode.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?UnsavedFormsActions!./client/src/state/unsavedForms/UnsavedFormsActions.js-exposed":function(e,t,n){(function(t){e.exports=t.UnsavedFormsActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/unsavedForms/UnsavedFormsActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?VersionedBadge!./client/src/components/VersionedBadge/VersionedBadge.js-exposed":function(e,t,n){(function(t){e.exports=t.VersionedBadge=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/VersionedBadge/VersionedBadge.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ViewModeActions!./client/src/state/viewMode/ViewModeActions.js-exposed":function(e,t,n){(function(t){e.exports=t.ViewModeActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/viewMode/ViewModeActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ViewModeStates!./client/src/state/viewMode/ViewModeStates.js-exposed":function(e,t,n){(function(t){e.exports=t.ViewModeStates=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/viewMode/ViewModeStates.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ViewModeToggle!./client/src/components/ViewModeToggle/ViewModeToggle.js-exposed":function(e,t,n){(function(t){e.exports=t.ViewModeToggle=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ViewModeToggle/ViewModeToggle.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?formatWrittenNumber!./client/src/lib/formatWrittenNumber.js-exposed":function(e,t,n){(function(t){e.exports=t.formatWrittenNumber=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/formatWrittenNumber.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?getFormState!./client/src/lib/getFormState.js-exposed":function(e,t,n){(function(t){e.exports=t.getFormState=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/getFormState.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?reduxFieldReducer!./client/src/lib/reduxFieldReducer.js-exposed":function(e,t,n){(function(t){e.exports=t.reduxFieldReducer=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/reduxFieldReducer.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?schemaFieldValues!./client/src/lib/schemaFieldValues.js-exposed":function(e,t,n){(function(t){e.exports=t.schemaFieldValues=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/schemaFieldValues.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?withDragDropContext!./client/src/lib/withDragDropContext.js-exposed":function(e,t,n){(function(t){e.exports=t.withDragDropContext=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/withDragDropContext.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},0:function(e,t){},"components/Badge/Badge":function(e,t){e.exports=Badge},"components/Button/BackButton":function(e,t){e.exports=BackButton},"components/Button/Button":function(e,t){e.exports=Button},"components/FieldHolder/FieldHolder":function(e,t){e.exports=FieldHolder},"components/FileStatusIcon/FileStatusIcon":function(e,t){e.exports=FileStatusIcon},"components/FormAction/FormAction":function(e,t){e.exports=FormAction},"components/FormAlert/FormAlert":function(e,t){e.exports=FormAlert},"components/FormBuilder/FormBuilder":function(e,t){e.exports=FormBuilder},"components/FormBuilderModal/FormBuilderModal":function(e,t){e.exports=FormBuilderModal},"components/GridField/GridField":function(e,t){e.exports=GridField},"components/LiteralField/LiteralField":function(e,t){e.exports=LiteralField},"components/Loading/Loading":function(e,t){e.exports=Loading},"components/Preview/Preview":function(e,t){e.exports=Preview},"components/ResizeAware/ResizeAware":function(e,t){e.exports=ResizeAware},"components/Search/Search":function(e,t){e.exports=Search},"components/Search/SearchToggle":function(e,t){e.exports=SearchToggle},"components/Tag/CompactTagList":function(e,t){e.exports=CompactTagList},"components/Tag/Tag":function(e,t){e.exports=Tag},"components/Tag/TagList":function(e,t){e.exports=TagList},"components/TreeDropdownField/TreeDropdownField":function(e,t){e.exports=TreeDropdownField},"components/VersionedBadge/VersionedBadge":function(e,t){e.exports=VersionedBadge},"components/ViewModeToggle/ViewModeToggle":function(e,t){e.exports=ViewModeToggle},"containers/FormBuilderLoader/FormBuilderLoader":function(e,t){e.exports=FormBuilderLoader},"containers/InsertLinkModal/fileSchemaModalHandler":function(e,t){e.exports=FileSchemaModalHandler},"deep-freeze-strict":function(e,t){e.exports=DeepFreezeStrict},"graphql-tag":function(e,t){e.exports=GraphQLTag},i18n:function(e,t){e.exports=i18n},"isomorphic-fetch":function(e,t){e.exports=IsomorphicFetch},"lib/Backend":function(e,t){e.exports=Backend},"lib/Config":function(e,t){e.exports=Config},"lib/Injector":function(e,t){e.exports=Injector},"lib/ReactRouteRegister":function(e,t){e.exports=ReactRouteRegister},"lib/Router":function(e,t){e.exports=Router},"lib/getFormState":function(e,t){e.exports=getFormState},"lib/reduxFieldReducer":function(e,t){e.exports=reduxFieldReducer},"lib/schemaFieldValues":function(e,t){e.exports=schemaFieldValues},merge:function(e,t){e.exports=merge},modernizr:function(e,t){e.exports=modernizr},moment:function(e,t){e.exports=moment},"page.js":function(e,t){e.exports=Page},qs:function(e,t){e.exports=qs},"react-apollo":function(e,t){e.exports=ReactApollo},"react-dnd":function(e,t){e.exports=ReactDND},"react-dnd-html5-backend":function(e,t){e.exports=ReactDNDHtml5Backend},"react-router-dom":function(e,t){e.exports=ReactRouterDom},"react-select":function(e,t){e.exports=ReactSelect},reactstrap:function(e,t){e.exports=Reactstrap},"redux-form":function(e,t){e.exports=ReduxForm},"redux-thunk":function(e,t){e.exports=ReduxThunk},"state/records/RecordsActions":function(e,t){e.exports=RecordsActions},"state/schema/SchemaActions":function(e,t){e.exports=SchemaActions},"state/tabs/TabsActions":function(e,t){e.exports=TabsActions},"state/toasts/ToastsActions":function(e,t){e.exports=ToastsActions},"state/viewMode/ViewModeActions":function(e,t){e.exports=ViewModeActions},url:function(e,t){e.exports=NodeUrl},validator:function(e,t){e.exports=validator}},["./client/src/bundles/bundle.js"]);
\ No newline at end of file
+webpackJsonp([0],{"./client/src/boot/BootRoutes.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n("jquery"),s=r(a),l=n("react"),c=r(l),u=n("react-redux"),d=n("react-dom"),f=r(d),p=n("react-router-dom"),h=n("./node_modules/react-router-config/esm/react-router-config.js"),m=n("lib/Config"),b=r(m),g=n("lib/Router"),v=r(g),y=n("lib/ReactRouteRegister"),_=r(y),j=n("./client/src/containers/App/App.js"),w=r(j),O=n("react-apollo"),T=n("i18n"),C=r(T),E=n("redux-form"),x=n("lib/getFormState"),S=r(x),k=function(){function e(t,n){o(this,e),this.store=t,this.client=n;var r=b.default.get("absoluteBaseUrl");v.default.setAbsoluteBase(r),this.handleBeforeRoute=this.handleBeforeRoute.bind(this),this.handleBeforeUnload=this.handleBeforeUnload.bind(this)}return i(e,[{key:"setStore",value:function(e){this.store=e}},{key:"setClient",value:function(e){this.client=e}},{key:"start",value:function(e){var t=this;this.matchesReactRoute(e)?this.initReactRouter():this.initLegacyRouter();var n=window.onbeforeunload;window.onbeforeunload=function(){return t.shouldConfirmBeforeUnload()?C.default._t("Admin.CONFIRMUNSAVEDSHORT","WARNING: Your changes have not been saved."):"function"==typeof n?n():void 0}}},{key:"matchesReactRoute",value:function(e){var t=b.default.get("sections"),n=v.default.resolveURLToBase(e).replace(/\/$/,"");return!!t.find(function(e){var t=v.default.resolveURLToBase(e.url).replace(/\/$/,"");return!!e.reactRouter&&n.match(t)})}},{key:"initReactRouter",value:function(){_.default.updateRootRoute({component:w.default}),f.default.render(c.default.createElement(O.ApolloProvider,{client:this.client},c.default.createElement(u.Provider,{store:this.store},c.default.createElement(p.BrowserRouter,{basename:b.default.get("baseUrl"),getUserConfirmation:this.handleBeforeRoute},c.default.createElement(p.Prompt,{message:C.default._t("Admin.CONFIRMUNSAVEDSHORT","WARNING: Your changes have not been saved.")}),(0,h.renderRoutes)([_.default.getRootRoute()])))),document.getElementsByClassName("cms-content")[0])}},{key:"initLegacyRouter",value:function(){var e=this,t=b.default.get("sections"),n=this.store;(0,v.default)("*",function(t,r){var o=C.default._t("Admin.CONFIRMUNSAVED","Are you sure you want to navigate away from this page?\n\n\n          WARNING: Your changes have not been saved.\n\n\n          Press OK to continue, or Cancel to stay on the current page.");e.shouldConfirmBeforeUnload()&&!window.confirm(o)||(t.store=n,r())});var r=null;t.forEach(function(e){var t=v.default.resolveURLToBase(e.url);t=t.replace(/\/$/,""),t+="(/*?)?",(0,v.default)(t,function(e,t){if("complete"!==document.readyState||e.init)return void t();r||(r=window.location.pathname);var n=e.state&&e.state.__forceReload;(e.path!==r||n)&&(r=e.path.replace(/#.*$/,""),(0,s.default)(".cms-container").entwine("ss").handleStateChange(null,e.state))})}),f.default.render(c.default.createElement("a",{role:"none",onClick:function(){}}),document.createElement("div")),v.default.start()}},{key:"shouldConfirmBeforeUnload",value:function(){var e=this.store.getState(),t=e.unsavedForms||[],n=e.form.formSchemas;return t.filter(function(t){var r=Object.values(n).find(function(e){return e.name===t.name});return!!(r&&r.state&&r.state.notifyUnsavedChanges)&&(0,E.isDirty)(t.name,S.default)(e)}).length>0}},{key:"handleBeforeUnload",value:function(e,t){return t(!this.shouldConfirmBeforeUnload()||confirm(C.default._t("Admin.CONFIRMUNSAVEDSHORT","WARNING: Your changes have not been saved.")))}},{key:"handleBeforeRoute",value:function(e,t){return t(!this.shouldConfirmBeforeUnload()||confirm(C.default._t("Admin.CONFIRMUNSAVED","Are you sure you want to navigate away\n          from this page?\n\nWARNING: Your changes have not been saved.\n\n\n          Press OK to continue, or Cancel to stay on the current page.")))}}]),e}();t.default=k},"./client/src/boot/apollo/buildCache.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./node_modules/apollo-cache-inmemory/lib/bundle.esm.js"),o=n("./client/src/boot/apollo/dataIdFromObject.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=function(e){return new r.InMemoryCache({fragmentMatcher:e?new r.IntrospectionFragmentMatcher({introspectionQueryResultData:e}):null,dataIdFromObject:i.default,addTypename:!0})};t.default=a},"./client/src/boot/apollo/buildClient.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}return r("next")})}}Object.defineProperty(t,"__esModule",{value:!0});var a=n("apollo-client"),s=r(a),l=n("./node_modules/apollo-link-state/lib/index.js"),c=n("./node_modules/apollo-link/lib/bundle.esm.js"),u=n("./client/src/boot/apollo/getGraphqlFragments.js"),d=r(u),f=n("./client/src/boot/apollo/buildNetworkComponents.js"),p=r(f),h=n("./client/src/boot/apollo/buildCache.js"),m=r(h),b=n("lib/Config"),g=r(b),v=function(){var e=i(regeneratorRuntime.mark(function e(t){var n,r,i,a,u,f,h;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=g.default.getSection("SilverStripe\\Admin\\LeftAndMain").graphql,r=n&&n.cachedTypenames,i=void 0,e.prev=3,e.next=6,(0,d.default)(t,r);case 6:i=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),i=null;case 12:return a=(0,m.default)(i),u=(0,p.default)(t),f=(0,l.withClientState)({cache:a,resolvers:{}}),h=(0,c.from)([f].concat(o(u))),e.abrupt("return",new s.default({cache:a,link:h}));case 17:case"end":return e.stop()}},e,void 0,[[3,9]])}));return function(t){return e.apply(this,arguments)}}();t.default=v},"./client/src/boot/apollo/buildNetworkComponents.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./node_modules/apollo-link-http/lib/bundle.esm.js"),o=n("./node_modules/apollo-link-error/lib/bundle.esm.js"),i=n("./node_modules/apollo-link/lib/bundle.esm.js"),a=n("lib/Config"),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=function(e){var t=new r.HttpLink({uri:e+"admin/graphql",fetchOptions:{credentials:"same-origin",headers:{accept:"application/json"}}}),n=(0,o.onError)(function(e){var t=e.networkError;t&&console.log("[Network error]: "+t)});return[new i.ApolloLink(function(e,t){return e.setContext({headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8","X-CSRF-TOKEN":s.default.get("SecurityID")}}),t(e)}),n,t]};t.default=l},"./client/src/boot/apollo/dataIdFromObject.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){var t=e.id||e.ID;return t&&t>=0&&e.__typename?e.__typename+":"+t:null};t.default=r},"./client/src/boot/apollo/getGraphqlFragments.js":function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}return r("next")})}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("isomorphic-fetch"),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=function(e){var t=e.data;return t.__schema.types=t.__schema.types.filter(function(e){return null!==e.possibleTypes}),t},s=function(e){if(!e.ok)throw new Error("The types.graphql file could not be loaded. You probably need to run a ?flush to generate it.\n            Alternatively, you can use the IntrospectionProvider extension to generate the file dynamically.\n            More information: https://github.com/silverstripe/silverstripe-graphql/#schema-introspection");return e},l=function(){var e=r(regeneratorRuntime.mark(function e(t){var n,o,l,c,u,d,f,p,h=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=!!document.body.getAttribute("data-graphql-legacy"),o=[t+"_graphql/admin.types.graphql",t+"admin.types.graphql"],l=[t+"admin/graphql/types",t+"assets/admin.types.graphql"],c=void 0,u=void 0,n?(h&&l.reverse(),c=l[0],u=l[1]):(c=o[0],u=o[1]),d={method:"GET",headers:{"Content-Type":"application/json"},uri:""+t,credentials:"same-origin"},f=function(){var e=r(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.default)(t,d).then(s).then(function(e){return e.json()}).then(a));case 1:case"end":return e.stop()}},e,void 0)}));return function(t){return e.apply(this,arguments)}}(),p=void 0,e.prev=9,e.next=12,f(c);case 12:p=e.sent,e.next=28;break;case 15:if(e.prev=15,e.t0=e.catch(9),u){e.next=19;break}return e.abrupt("return",Promise.reject(e.t0));case 19:return e.prev=19,e.next=22,f(u);case 22:p=e.sent,e.next=28;break;case 25:return e.prev=25,e.t1=e.catch(19),e.abrupt("return",Promise.reject(e.t1));case 28:return e.abrupt("return",Promise.resolve(p));case 29:case"end":return e.stop()}},e,void 0,[[9,15],[19,25]])}));return function(t){return e.apply(this,arguments)}}();t.default=l},"./client/src/boot/applyDevtools.js":function(e,t,n){"use strict";function r(e){var t=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,n=window.__REDUX_DEVTOOLS_EXTENSION__||window.devToolsExtension;return"function"==typeof t?t(e):"function"==typeof n?(0,o.compose)(e,n()):e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n("redux")},"./client/src/boot/applyTransforms.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("lib/Injector"),s=r(a),l=n("./client/src/lib/Validator.js"),c=r(l),u=n("classnames"),d=r(u),f=n("lib/schemaFieldValues"),p=n("components/FieldHolder/FieldHolder"),h=r(p),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.extraClass?e.extraClass.split(" ").reduce(function(e,t){return i({},e,o({},t,!0))},{}):{};"string"==typeof e.data.pristineClass&&(n[e.data.pristineClass]=t),"string"==typeof e.data.dirtyClass&&(n[e.data.dirtyClass]=!t);var r=t?e.data.pristineTitle:e.data.dirtyTitle,a=t?e.data.pristineIcon:e.data.dirtyIcon;return i({},e,{title:r||e.title,icon:a||e.icon,extraClass:(0,d.default)(n)})},b=function(){s.default.transform("field-holders",function(e){["FieldGroup"].forEach(function(t){return e.component("FieldGroup",h.default,t+"Holder")})}),s.default.transform("form-action-changed",function(e){e.form.alterSchema("*",function(e){return e.mutateField("action_save",function(t){var n=e.isPristine();return m(t,n)}),e.mutateField("action_publish",function(t){var n=t.data.isPublished&&!t.data.isModified&&e.isPristine();return m(t,n)}),e.getState()})}),s.default.transform("schema-validation",function(e){e.form.addValidation("*",function(e,t,n){var r=new c.default(e),a=Object.keys(e).reduce(function(e,t){var a=(0,f.findField)(n.fields,t);if(!a)return e;var s=r.validateFieldSchema(a),l=s.valid,c=s.errors;return l?e:i({},e,o({},t,c))},{});return t.addErrors(a),t.getState()})})};t.default=b},"./client/src/boot/index.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}return r("next")})}}var i=function(){var e=o(regeneratorRuntime.mark(function e(){var t,n,r,o,i,a,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=h.default.get("absoluteBaseUrl"),e.next=3,(0,b.default)(t);case 3:n=e.sent,(0,y.default)(),(0,j.default)(),r=[f.default],o=h.default.get("debugging"),i=u.applyMiddleware.apply(void 0,r),o&&(i=(0,O.default)(i)),a=i(u.createStore),window.ss.apolloClient=n,l=new s.default(null,n),(0,C.default)(),c.default.init(function(){var e=(0,u.combineReducers)(c.default.reducer.getAll()),t=a(e,{});t.dispatch((0,g.setConfig)(h.default.getAll())),c.default.reducer.setStore(t),window.ss.store=t,l.setStore(t),l.start(window.location.pathname),window.jQuery&&window.jQuery("body").addClass("js-react-boot").addClass("js-injector-boot")}),window.setTimeout(function(){return c.default.load()},0);case 16:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),a=n("./client/src/boot/BootRoutes.js"),s=r(a),l=n("lib/Injector"),c=r(l),u=n("redux"),d=n("redux-thunk"),f=r(d),p=n("lib/Config"),h=r(p),m=n("./client/src/boot/apollo/buildClient.js"),b=r(m),g=n("./client/src/state/config/ConfigActions.js"),v=n("./client/src/boot/registerComponents.js"),y=r(v),_=n("./client/src/boot/registerReducers.js"),j=r(_),w=n("./client/src/boot/applyDevtools.js"),O=r(w),T=n("./client/src/boot/applyTransforms.js"),C=r(T);window.ss=window.ss||{},window.onload=i},"./client/src/boot/registerComponents.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("redux-form"),i=n("lib/Injector"),a=r(i),s=n("./client/src/components/ActionMenu/ActionMenu.js"),l=r(s),c=n("components/Badge/Badge"),u=r(c),d=n("components/Button/Button"),f=r(d),p=n("components/Button/BackButton"),h=r(p),m=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TextField/TextField.js"),b=r(m),g=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/HiddenField/HiddenField.js"),v=r(g),y=n("./client/src/components/DateField/DateField.js"),_=r(y),j=n("./client/src/components/TimeField/TimeField.js"),w=r(j),O=n("./client/src/components/DatetimeField/DatetimeField.js"),T=r(O),C=n("./client/src/components/CheckboxField/CheckboxField.js"),E=r(C),x=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/CheckboxSetField/CheckboxSetField.js"),S=r(x),k=n("./client/src/components/OptionsetField/OptionsetField.js"),F=r(k),P=n("components/GridField/GridField"),A=r(P),M=n("./client/src/components/GridFieldActions/GridFieldActions.js"),D=r(M),R=n("./client/src/components/SingleSelectField/SingleSelectField.js"),I=r(R),N=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/PopoverField/PopoverField.js"),L=r(N),B=n("./client/src/components/HeaderField/HeaderField.js"),U=r(B),H=n("components/LiteralField/LiteralField"),V=r(H),q=n("./client/src/components/HtmlReadonlyField/HtmlReadonlyField.js"),G=r(q),z=n("./client/src/components/LookupField/LookupField.js"),$=r(z),W=n("./client/src/components/CompositeField/CompositeField.js"),K=r(W),X=n("./client/src/components/LabelField/LabelField.js"),Y=r(X),Q=n("./client/src/components/Tabs/Tabs.js"),J=r(Q),Z=n("./client/src/components/Tabs/TabItem.js"),ee=r(Z),te=n("components/FormAction/FormAction"),ne=r(te),re=n("./client/src/components/FieldGroup/FieldGroup.js"),oe=r(re),ie=n("components/TreeDropdownField/TreeDropdownField"),ae=r(ie),se=n("components/FormBuilderModal/FormBuilderModal"),le=r(se),ce=n("./client/src/components/NotFoundComponent/NotFoundComponent.js"),ue=r(ce),de=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Form/Form.js"),fe=r(de),pe=n("components/FormAlert/FormAlert"),he=r(pe),me=n("components/Preview/Preview"),be=r(me),ge=n("./client/src/containers/Form/Form.js"),ve=r(ge),ye=n("./client/src/components/UsedOnTable/UsedOnTable.js"),_e=r(ye),je=n("components/Loading/Loading"),we=r(je),Oe=n("components/VersionedBadge/VersionedBadge"),Te=r(Oe),Ce=n("components/ViewModeToggle/ViewModeToggle"),Ee=r(Ce),xe=n("components/ResizeAware/ResizeAware"),Se=r(xe),ke=n("components/Tag/Tag"),Fe=r(ke),Pe=n("components/Tag/TagList"),Ae=r(Pe),Me=n("components/Tag/CompactTagList"),De=r(Me),Re=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tip/Tip.js"),Ie=r(Re),Ne=n("components/Search/Search"),Le=r(Ne),Be=n("components/Search/SearchToggle"),Ue=r(Be),He=n("./client/src/components/HtmlEditorField/HtmlEditorField.js"),Ve=r(He),qe=n("./client/src/components/NumberField/NumberField.js"),Ge=r(qe),ze=n("./client/src/components/PopoverOptionSet/PopoverOptionSet.js"),$e=r(ze),We=n("./client/src/containers/ToastsContainer/ToastsContainer.js"),Ke=r(We);t.default=function(){a.default.component.registerMany({ActionMenu:l.default,Badge:u.default,Button:f.default,BackButton:h.default,TextField:b.default,HiddenField:v.default,DateField:_.default,TimeField:w.default,DatetimeField:T.default,CheckboxField:E.default,CheckboxSetField:S.default,OptionsetField:F.default,GridField:A.default,GridFieldActions:D.default,FieldGroup:oe.default,SingleSelectField:I.default,PopoverField:L.default,HeaderField:U.default,LiteralField:V.default,HtmlReadonlyField:G.default,LookupField:$.default,CompositeField:K.default,Tabs:J.default,TabItem:ee.default,FormAction:ne.default,LabelField:Y.default,TreeDropdownField:ae.default,Preview:be.default,ReduxForm:ve.default,ReduxFormField:o.Field,Form:fe.default,FormAlert:he.default,FormBuilderModal:le.default,NotFoundComponent:ue.default,UsedOnTable:_e.default,Loading:we.default,VersionedBadge:Te.default,ViewModeToggle:Ee.default,ResizeAware:Se.default,Tag:Fe.default,TagList:Ae.default,CompactTagList:De.default,Tip:Ie.default,Search:Le.default,SearchToggle:Ue.default,HtmlEditorField:Ve.default,NumberField:Ge.default,PopoverOptionSet:$e.default,ToastsContainer:Ke.default})}},"./client/src/boot/registerReducers.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("lib/Injector"),a=r(i),s=n("redux"),l=n("redux-form"),c=n("./client/src/state/config/ConfigReducer.js"),u=r(c),d=n("./client/src/state/schema/SchemaReducer.js"),f=r(d),p=n("./client/src/state/records/RecordsReducer.js"),h=r(p),m=n("./client/src/state/breadcrumbs/BreadcrumbsReducer.js"),b=r(m),g=n("./client/src/state/treeDropdownField/TreeDropdownFieldReducer.js"),v=r(g),y=n("./client/src/state/tabs/TabsReducer.js"),_=r(y),j=n("./client/src/state/mobileMenu/MobileMenuReducer.js"),w=r(j),O=n("./client/src/state/unsavedForms/UnsavedFormsReducer.js"),T=r(O),C=n("./client/src/state/usedOn/usedOnReducer.js"),E=r(C),x=n("./client/src/lib/dependency-injection/applyFormMiddleware.js"),S=r(x),k=n("./client/src/state/viewMode/ViewModeReducer.js"),F=r(k),P=n("./client/src/state/toasts/ToastsReducer.js"),A=r(P);t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.combineReducers)({formState:l.reducer,formSchemas:f.default});a.default.reducer.registerMany(o({config:u.default,form:t,records:h.default,breadcrumbs:b.default,treeDropdownField:v.default,tabs:_.default,mobileMenu:w.default,unsavedForms:T.default,usedOn:E.default,viewMode:F.default,toasts:A.default},e)),a.default.transform("admin",function(e){e.reducer("form",S.default)})}},"./client/src/bundles/bundle.js":function(e,t,n){"use strict";n("./client/src/i18n.js"),n("./node_modules/expose-loader/index.js?SilverStripeComponent!./client/src/lib/SilverStripeComponent.js-exposed"),n("./node_modules/expose-loader/index.js?Backend!./client/src/lib/Backend.js-exposed"),n("./node_modules/expose-loader/index.js?schemaFieldValues!./client/src/lib/schemaFieldValues.js-exposed"),n("./node_modules/expose-loader/index.js?FormAlert!./client/src/components/FormAlert/FormAlert.js-exposed"),n("./node_modules/expose-loader/index.js?Injector!./client/src/lib/Injector.js-exposed"),n("./node_modules/expose-loader/index.js?reduxFieldReducer!./client/src/lib/reduxFieldReducer.js-exposed"),n("./node_modules/expose-loader/index.js?getFormState!./client/src/lib/getFormState.js-exposed"),n("./node_modules/expose-loader/index.js?PopoverField!./client/src/components/PopoverField/PopoverField.js-exposed"),n("./node_modules/expose-loader/index.js?FieldHolder!./client/src/components/FieldHolder/FieldHolder.js-exposed"),n("./node_modules/expose-loader/index.js?Form!./client/src/components/Form/Form.js-exposed"),n("./node_modules/expose-loader/index.js?FormConstants!./client/src/components/Form/FormConstants.js-exposed"),n("./node_modules/expose-loader/index.js?FormAction!./client/src/components/FormAction/FormAction.js-exposed"),n("./node_modules/expose-loader/index.js?SchemaActions!./client/src/state/schema/SchemaActions.js-exposed"),n("./node_modules/expose-loader/index.js?ToastsActions!./client/src/state/toasts/ToastsActions.js-exposed"),n("./node_modules/expose-loader/index.js?FileStatusIcon!./client/src/components/FileStatusIcon/FileStatusIcon.js-exposed"),n("./node_modules/expose-loader/index.js?FormBuilder!./client/src/components/FormBuilder/FormBuilder.js-exposed"),n("./node_modules/expose-loader/index.js?FormBuilderLoader!./client/src/containers/FormBuilderLoader/FormBuilderLoader.js-exposed"),n("./node_modules/expose-loader/index.js?FormBuilderModal!./client/src/components/FormBuilderModal/FormBuilderModal.js-exposed"),n("./node_modules/expose-loader/index.js?FileSchemaModalHandler!./client/src/containers/InsertLinkModal/fileSchemaModalHandler.js-exposed"),n("./node_modules/expose-loader/index.js?InsertLinkModal!./client/src/containers/InsertLinkModal/InsertLinkModal.js-exposed"),n("./node_modules/expose-loader/index.js?RecordsActions!./client/src/state/records/RecordsActions.js-exposed"),n("./node_modules/expose-loader/index.js?GridField!./client/src/components/GridField/GridField.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldCell!./client/src/components/GridField/GridFieldCell.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldHeader!./client/src/components/GridField/GridFieldHeader.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldHeaderCell!./client/src/components/GridField/GridFieldHeaderCell.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldRow!./client/src/components/GridField/GridFieldRow.js-exposed"),n("./node_modules/expose-loader/index.js?GridFieldTable!./client/src/components/GridField/GridFieldTable.js-exposed"),n("./node_modules/expose-loader/index.js?Accordion!./client/src/components/Accordion/Accordion.js-exposed"),n("./node_modules/expose-loader/index.js?AccordionBlock!./client/src/components/Accordion/AccordionBlock.js-exposed"),n("./node_modules/expose-loader/index.js?Button!./client/src/components/Button/Button.js-exposed"),n("./node_modules/expose-loader/index.js?BackButton!./client/src/components/Button/BackButton.js-exposed"),n("./node_modules/expose-loader/index.js?HiddenField!./client/src/components/HiddenField/HiddenField.js-exposed"),n("./node_modules/expose-loader/index.js?ListGroup!./client/src/components/ListGroup/ListGroup.js-exposed"),n("./node_modules/expose-loader/index.js?ListGroupItem!./client/src/components/ListGroup/ListGroupItem.js-exposed"),n("./node_modules/expose-loader/index.js?Loading!./client/src/components/Loading/Loading.js-exposed"),n("./node_modules/expose-loader/index.js?TextField!./client/src/components/TextField/TextField.js-exposed"),n("./node_modules/expose-loader/index.js?LiteralField!./client/src/components/LiteralField/LiteralField.js-exposed"),n("./node_modules/expose-loader/index.js?Toolbar!./client/src/components/Toolbar/Toolbar.js-exposed"),n("./node_modules/expose-loader/index.js?FileStatusIcon!./client/src/components/FileStatusIcon/FileStatusIcon.js-exposed"),n("./node_modules/expose-loader/index.js?Breadcrumb!./client/src/components/Breadcrumb/Breadcrumb.js-exposed"),n("./node_modules/expose-loader/index.js?ResizeAware!./client/src/components/ResizeAware/ResizeAware.js-exposed"),n("./node_modules/expose-loader/index.js?TabsActions!./client/src/state/tabs/TabsActions.js-exposed"),n("./node_modules/expose-loader/index.js?Tag!./client/src/components/Tag/Tag.js-exposed"),n("./node_modules/expose-loader/index.js?TagList!./client/src/components/Tag/TagList.js-exposed"),n("./node_modules/expose-loader/index.js?CompactTagList!./client/src/components/Tag/CompactTagList.js-exposed"),n("./node_modules/expose-loader/index.js?Tip!./client/src/components/Tip/Tip.js-exposed"),n("./node_modules/expose-loader/index.js?Search!./client/src/components/Search/Search.js-exposed"),n("./node_modules/expose-loader/index.js?SearchToggle!./client/src/components/Search/SearchToggle.js-exposed"),n("./node_modules/expose-loader/index.js?TreeDropdownFieldNode!./client/src/components/TreeDropdownField/TreeDropdownFieldNode.js-exposed"),n("./node_modules/expose-loader/index.js?TreeDropdownFieldMenu!./client/src/components/TreeDropdownField/TreeDropdownFieldMenu.js-exposed"),n("./node_modules/expose-loader/index.js?TreeDropdownField!./client/src/components/TreeDropdownField/TreeDropdownField.js-exposed"),n("./node_modules/expose-loader/index.js?BreadcrumbsActions!./client/src/state/breadcrumbs/BreadcrumbsActions.js-exposed"),n("./node_modules/expose-loader/index.js?RecordsActionTypes!./client/src/state/records/RecordsActionTypes.js-exposed"),n("./node_modules/expose-loader/index.js?UnsavedFormsActions!./client/src/state/unsavedForms/UnsavedFormsActions.js-exposed"),n("./node_modules/expose-loader/index.js?Badge!./client/src/components/Badge/Badge.js-exposed"),n("./node_modules/expose-loader/index.js?Button!./client/src/components/Button/Button.js-exposed"),n("./node_modules/expose-loader/index.js?BackButton!./client/src/components/Button/BackButton.js-exposed"),n("./node_modules/expose-loader/index.js?VersionedBadge!./client/src/components/VersionedBadge/VersionedBadge.js-exposed"),n("./node_modules/expose-loader/index.js?CheckboxSetField!./client/src/components/CheckboxSetField/CheckboxSetField.js-exposed"),n("./node_modules/expose-loader/index.js?Preview!./client/src/components/Preview/Preview.js-exposed"),n("./node_modules/expose-loader/index.js?ViewModeStates!./client/src/state/viewMode/ViewModeStates.js-exposed"),n("./node_modules/expose-loader/index.js?ViewModeActions!./client/src/state/viewMode/ViewModeActions.js-exposed"),n("./node_modules/expose-loader/index.js?ViewModeToggle!./client/src/components/ViewModeToggle/ViewModeToggle.js-exposed"),n("./node_modules/expose-loader/index.js?Focusedzone!./client/src/components/Focusedzone/Focusedzone.js-exposed"),n("./node_modules/expose-loader/index.js?Config!./client/src/lib/Config.js-exposed"),n("./node_modules/expose-loader/index.js?DataFormat!./client/src/lib/DataFormat.js-exposed"),n("./node_modules/expose-loader/index.js?ReactRouteRegister!./client/src/lib/ReactRouteRegister.js-exposed"),n("./node_modules/expose-loader/index.js?Router!./client/src/lib/Router.js-exposed"),n("./node_modules/expose-loader/index.js?TinyMCEActionRegistrar!./client/src/lib/TinyMCEActionRegistrar.js-exposed"),n("./node_modules/expose-loader/index.js?ShortcodeSerialiser!./client/src/lib/ShortcodeSerialiser.js-exposed"),n("./node_modules/expose-loader/index.js?formatWrittenNumber!./client/src/lib/formatWrittenNumber.js-exposed"),n("./node_modules/expose-loader/index.js?withDragDropContext!./client/src/lib/withDragDropContext.js-exposed"),n("./client/src/legacy/jquery.changetracker.js"),n("./client/src/legacy/sspath.js"),n("./client/src/legacy/ssui.core.js"),n("./client/src/legacy/LeftAndMain.js"),n("./client/src/legacy/LeftAndMain.ActionTabSet.js"),n("./client/src/legacy/LeftAndMain.Panel.js"),n("./client/src/legacy/LeftAndMain.Tree.js"),n("./client/src/legacy/LeftAndMain.Content.js"),n("./client/src/legacy/LeftAndMain.EditForm.js"),n("./client/src/legacy/LeftAndMain.Menu.js"),n("./client/src/legacy/LeftAndMain.MobileMenuToggle.js"),n("./client/src/legacy/LeftAndMain.Preview.js"),n("./client/src/legacy/LeftAndMain.BatchActions.js"),n("./client/src/legacy/LeftAndMain.FieldHelp.js"),n("./client/src/legacy/LeftAndMain.FieldDescriptionToggle.js"),n("./client/src/legacy/LeftAndMain.TreeDropdownField.js"),n("./client/src/legacy/AddToCampaignForm.js"),n("./client/src/legacy/SecurityAdmin.js"),n("./client/src/legacy/ModelAdmin.js"),n("./client/src/legacy/ToastsContainer.js"),n("./client/src/legacy/ConfirmedPasswordField.js"),n("./client/src/legacy/SelectionGroup.js"),n("./client/src/legacy/DateField.js"),n("./client/src/legacy/ToggleCompositeField.js"),n("./client/src/legacy/TreeDropdownField/TreeDropdownFieldEntwine.js"),n("./client/src/legacy/UsedOnTable/UsedOnTableEntwine.js"),n("./client/src/legacy/DateField.js"),n("./client/src/legacy/DatetimeField.js"),n("./client/src/legacy/HtmlEditorField.js"),n("./client/src/legacy/TabSet.js"),n("./client/src/legacy/GridField.js"),n("./client/src/boot/index.js")},"./client/src/components/ActionMenu/ActionMenu.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n("react"),d=r(u),f=n("prop-types"),p=r(f),h=n("reactstrap"),m=n("i18n"),b=r(m),g=n("classnames"),v=r(g),y=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggle=n.toggle.bind(n),n.state={isOpen:!1},n}return s(t,e),c(t,[{key:"toggle",value:function(e){var t=this.props.toggleCallback;t&&t(e),this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){var e=this.props,t=e.dropdownToggleProps,n=e.dropdownMenuProps,r=e.dropdownToggleClassNames,i=e.className,a=(e.toggleCallback,o(e,["dropdownToggleProps","dropdownMenuProps","dropdownToggleClassNames","className","toggleCallback"])),s=(0,v.default)(r,t.className),c=(0,v.default)("action-menu__dropdown",n.className);return d.default.createElement(h.Dropdown,l({className:(0,v.default)("action-menu",i),isOpen:this.state.isOpen,toggle:this.toggle},a),d.default.createElement(h.DropdownToggle,l({className:s,"aria-label":b.default._t("Admin.ACTIONS","View actions")},t)),d.default.createElement(h.DropdownMenu,l({className:c},n),this.props.children))}}]),t}(u.PureComponent);y.propTypes={toggleCallback:p.default.func,dropdownToggleClassNames:p.default.arrayOf(p.default.string)},y.defaultProps={className:"",dropdownToggleClassNames:["action-menu__toggle","btn","btn--no-text","btn--icon-xl","font-icon-dot-3"],dropdownToggleProps:{},dropdownMenuProps:{}},t.default=y},"./client/src/components/Button/IconHOC.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("react"),s=r(a),l=n("prop-types"),c=r(l),u=n("classnames"),d=r(u),f=function(e){var t=function(t){var n=t.icon,r=t.className,a=o(t,["icon","className"]);return s.default.createElement(e,i({className:(0,d.default)(r,n&&"font-icon-"+n)},a))};return t.propTypes=i({},e.propTypes,{icon:c.default.string}),t.defaultProps=e.defaultProps,t.displayName=e.name,t};t.default=f},"./client/src/components/CheckboxField/CheckboxField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("react"),a=r(i),s=n("components/FieldHolder/FieldHolder"),l=r(s),c=n("./client/src/components/OptionsetField/OptionField.js"),u=r(c),d=function(e){return a.default.createElement(u.default,o({},e,{type:"checkbox"}))},f=function(e){var t=(0,l.default)(d);return a.default.createElement(t,o({},e,{hideLabels:!0}))};t.Component=d,t.default=f},"./client/src/components/CompositeField/CompositeField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("./client/src/lib/castStringToElement.js"),d=r(u),f=n("prop-types"),p=r(f),h=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"getLegend",value:function(){return"fieldset"===this.props.data.tag&&this.props.data.legend?(0,d.default)("legend",this.props.data.legend):null}},{key:"getClassName",value:function(){return this.props.className+" "+this.props.extraClass}},{key:"render",value:function(){var e=this.getLegend(),t=this.props.data.tag||"div",n=this.getClassName();return c.default.createElement(t,{className:n},e,this.props.children)}}]),t}(l.Component);h.propTypes={data:p.default.oneOfType([p.default.array,p.default.shape({tag:p.default.string,legend:p.default.string})]),extraClass:p.default.string},h.defaultProps={className:"",extraClass:""},t.Component=h,t.default=h},"./client/src/components/DateField/DateField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},u=n("components/FieldHolder/FieldHolder"),d=r(u),f=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TextField/TextField.js"),p=n("moment"),h=r(p),m=n("modernizr"),b=r(m),g=n("i18n"),v=r(g),y=n("prop-types"),_=r(y),j=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"render",value:function(){return c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this)}},{key:"moment",value:function(){return h.default.locale(this.getLang()),h.default.apply(void 0,arguments)}},{key:"getLang",value:function(){return(this.asHTML5()?this.props.isoLang:this.props.lang)||(0,h.default)().locale()}},{key:"asHTML5",value:function(){return this.props.data.html5&&this.hasNativeSupport()}},{key:"hasNativeSupport",value:function(){return this.props.modernizr.inputtypes.date}},{key:"getInputProps",value:function(){var e=v.default.inject(v.default._t("Admin.FormatExample","Example: {format}"),{format:this.moment().endOf("month").format("L")}),n=this.asHTML5()?this.props.value:this.getLocalisedValue(),r=this.asHTML5()?"date":"text";return s({},c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getInputProps",this).call(this),{type:r,value:n,placeholder:e})}},{key:"getLocalisedValue",value:function(){return this.convertToLocalised(this.props.value)}},{key:"isMultiline",value:function(){return!1}},{key:"handleChange",value:function(e){var t=e.target.value,n="";n=this.asHTML5()?t:this.convertToIso(t),"function"==typeof this.props.onChange&&this.triggerChange(e,n)}},{key:"triggerChange",value:function(e,t){this.props.onChange(e,{id:this.props.id,value:t})}},{key:"convertToIso",value:function(e){var t="";if(e){var n=this.moment(e,["L","YYYY-MM-DD"]);n.isValid()&&(t=n.format("YYYY-MM-DD"))}return t}},{key:"convertToLocalised",value:function(e){var t="";if(e){var n=this.moment(e);n.isValid()&&(t=n.format("L"))}return t}}]),t}(f.Component);j.propTypes={lang:_.default.string,isoLang:_.default.string,modernizr:_.default.object,data:_.default.shape({html5:_.default.bool})},j.defaultProps={modernizr:b.default,data:{}},t.Component=j,t.default=(0,d.default)(j)},"./client/src/components/DatetimeField/DatetimeField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},u=n("components/FieldHolder/FieldHolder"),d=r(u),f=n("./client/src/components/DateField/DateField.js"),p=n("moment"),h=r(p),m=n("i18n"),b=r(m),g=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"getInputProps",value:function(){var e=b.default.inject(b.default._t("Admin.FormatExample","Example: {format}"),{format:this.moment().endOf("month").format("L LT")}),n=this.asHTML5()?"datetime-local":"text";return s({},c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getInputProps",this).call(this),{type:n,placeholder:e})}},{key:"isMultiline",value:function(){return!1}},{key:"hasNativeSupport",value:function(){return this.props.modernizr.inputtypes["datetime-local"]}},{key:"triggerChange",value:function(e,t){/^\d{4}-\d\d-\d\dT\d\d:\d\d$/.test(t)?this.props.onChange(e,{id:this.props.id,value:t+":00"}):this.props.onChange(e,{id:this.props.id,value:t})}},{key:"convertToLocalised",value:function(e){h.default.locale(this.props.lang);var t="";if(e){var n=this.moment(e);n.isValid()&&(t=n.format("L LT"))}return t}},{key:"convertToIso",value:function(e){h.default.locale(this.props.lang);var t="";if(e){var n=["L LT","L",h.default.ISO_8601],r=this.moment(e,n);r.isValid()&&(t=r.format("YYYY-MM-DDTHH:mm:ss"))}return t}}]),t}(f.Component);g.propTypes=f.Component.propTypes,g.defaultProps=f.Component.defaultProps,t.Component=g,t.default=(0,d.default)(g)},"./client/src/components/FieldGroup/FieldGroup.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},u=n("./client/src/components/CompositeField/CompositeField.js"),d=r(u),f=n("prop-types"),p=r(f),h=n("classnames"),m=r(h),b=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"getClassName",value:function(){return(0,m.default)("field-group-component",{"field-group-component__small-holder":this.props.smallholder},c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getClassName",this).call(this))}}]),t}(d.default);b.propTypes=s({},d.default.propTypes,{smallholder:p.default.bool}),b.defaultProps=s({},d.default.defaultProps,{smallholder:!0}),t.default=b},"./client/src/components/GridField/GridFieldAction.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=n.handleClick.bind(n),n}return a(t,e),s(t,[{key:"handleClick",value:function(e){this.props.onClick(e,this.props.record.ID)}},{key:"render",value:function(){return c.default.createElement("button",{className:"grid-field__icon-action font-icon-"+this.props.icon+" btn--icon-lg",onClick:this.handleClick})}}]),t}(l.Component);f.propTypes={onClick:d.default.func.isRequired},t.default=f},"./client/src/components/GridFieldActions/GridFieldActions.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("reactstrap"),d=n("./client/src/components/GridFieldActions/GridFieldDropdownAction.js"),f=r(d),p=n("./client/src/components/ActionMenu/ActionMenu.js"),h=r(p),m=n("classnames"),b=r(m),g=n("prop-types"),v=r(g),y=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggle=n.toggle.bind(n),n.state={dropdownOpen:!1},n}return a(t,e),s(t,[{key:"toggle",value:function(){this.setState({dropdownOpen:!this.state.dropdownOpen})}},{key:"renderMultipleActions",value:function(e){var t=e.reduce(function(e,t){var n=e,r=t.group;if(!r)throw new Error('Action: "'+t.title+'" has no group assigned');return n[r]||(n[r]=[]),n[r].push(t),n},[]),n={right:!0},r=["action-menu__toggle","btn","btn--no-text","btn-sm","font-icon-dot-3"];return c.default.createElement(h.default,{dropdownMenuProps:n,dropdownToggleClassNames:r},Object.keys(t).map(function(e,n){return[0!==n&&c.default.createElement(u.DropdownItem,{divider:!0,key:e}),t[e].map(function(e,t){return c.default.createElement(f.default,{data:e.data,title:e.title,type:e.type,url:e.url,key:t})})]}))}},{key:"renderSingleAction",value:function(e){var t=e.type,n=e.title,r=e.data,o=e.url,i=void 0;"submit"===t&&(i="submit",o=void 0);var a=(0,b.default)("action",r.classNames);return c.default.createElement(u.Button,{className:a,type:i,href:o,"data-url":r["data-url"],"data-action-state":r["data-action-state"],name:r.name,color:"secondary"},n)}},{key:"render",value:function(){var e=this.props.schema;return e.length>1?this.renderMultipleActions(e):1===e.length?this.renderSingleAction(e[0]):null}}]),t}(l.PureComponent),_=f.default.propTypes;_.group=v.default.string,y.propTypes=v.default.arrayOf(v.default.shape(_)).isRequired,t.default=y},"./client/src/components/GridFieldActions/GridFieldDropdownAction.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("reactstrap"),d=n("classnames"),f=r(d),p=n("prop-types"),h=r(p),m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){var e=this.props,t=e.type,n=e.title,r=e.data,o=this.props.url,i=(0,f.default)("action",r.classNames),a=null;switch(t){case"submit":a="button",o=void 0;break;case"link":a="a";break;default:a=void 0}return c.default.createElement(u.DropdownItem,{className:i,href:o,tag:a,type:"button"===a?"button":void 0,"data-url":r["data-url"],"data-action-state":r["data-action-state"],name:r.name},n)}}]),t}(l.PureComponent);m.propTypes={data:h.default.object,title:h.default.string.isRequired,type:h.default.oneOf(["submit","link"]),url:h.default.string},t.default=m},"./client/src/components/HeaderField/HeaderField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.className,n=e.extraClass,r=e.id,o=e.data,i=o.headingLevel,s=o.title,l="h"+(i||3);return a.default.createElement("div",{className:"field"},a.default.createElement(l,{className:(0,u.default)(t,n),id:r},s))}Object.defineProperty(t,"__esModule",{value:!0});var i=n("react"),a=r(i),s=n("prop-types"),l=r(s),c=n("classnames"),u=r(c);o.propTypes={className:l.default.string,extraClass:l.default.string,id:l.default.string,data:l.default.oneOfType([l.default.array,l.default.shape({headingLevel:l.default.number,title:l.default.string})]).isRequired},o.defaultProps={className:"",extraClass:""},t.default=o},"./client/src/components/HtmlEditorField/HtmlEditorField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},u=n("react"),d=r(u),f=n("./node_modules/react-load-script/lib/index.js"),p=r(f),h=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TextField/TextField.js"),m=n("components/FieldHolder/FieldHolder"),b=r(m);n("./node_modules/events-polyfill/index.js");var g=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isReady:!e.data.editorjs},n.inputRef=null,n.handleReady=n.handleReady.bind(n),n}return a(t,e),l(t,[{key:"getInputProps",value:function(){var e=this;return s({},c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getInputProps",this).call(this),this.props.data.attributes,{innerRef:function(t){e.inputRef=t}})}},{key:"getEditorElement",value:function(){return document.getElementById(this.getInputProps().id)}},{key:"getEditor",value:function(){return window.TinyMCE&&window.TinyMCE.get(this.getInputProps().id)}},{key:"handleReady",value:function(){!window.TinyMCE&&window.tinymce&&(window.TinyMCE=window.tinymce),this.setState({isReady:!0})}},{key:"registerChangeListener",value:function(){var e=this,n=this.getEditorElement();this.getEditor().on("change keyup setcontent",function(){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleChange",e).call(e,{target:n})})}},{key:"renderDependencyScript",value:function(){var e=this;return window.tinymce||window.TinyMCE?(setTimeout(function(){e.handleReady()},0),null):d.default.createElement(p.default,{url:this.props.data.editorjs,onLoad:this.handleReady})}},{key:"render",value:function(){return this.state.isReady?c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this):this.renderDependencyScript()}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.state.isReady;if(r){r!==t.isReady&&setTimeout(function(){var e=window,t=e.document,r=e.jQuery,o=r.Event("EntwineElementsAdded"),i=n.getEditorElement();o.targets=[i],r(t).triggerHandler(o),n.registerChangeListener()},1);var o=this.props.value;if(o!==e.value){var i=new Event("change",{bubbles:!0});i.simulated=!0,i.value=o,this.inputRef.dispatchEvent(i)}}}},{key:"componentWillUnmount",value:function(){if(this.state.isReady){var e=window,n=e.document,r=e.jQuery,o=r.Event("EntwineElementsRemoved"),i=this.getEditorElement(),a=this.getEditor();a&&a.save(),o.targets=[i],c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"handleChange",this).call(this,{target:i}),r(n).triggerHandler(o)}}}]),t}(h.Component);t.Component=g,t.default=(0,b.default)(g)},"./client/src/components/HtmlReadonlyField/HtmlReadonlyField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("components/FieldHolder/FieldHolder"),f=r(d),p=n("reactstrap"),h=n("prop-types"),m=r(h),b=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"getInputProps",value:function(){return{className:this.props.className+" "+this.props.extraClass,id:this.props.id,name:this.props.name}}},{key:"render",value:function(){return u.default.createElement(p.Input,s({plaintext:!0,tag:"p",dangerouslySetInnerHTML:{__html:this.props.value}},this.getInputProps()))}}]),t}(c.Component);b.propTypes={id:m.default.string,name:m.default.string.isRequired,extraClass:m.default.string,value:m.default.string},b.defaultProps={extraClass:"",className:""},t.Component=b,t.default=(0,f.default)(b)},"./client/src/components/IframeDialog/IframeDialog.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("reactstrap"),d=n("classnames"),f=r(d),p=n("prop-types"),h=r(p),m=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClosed=n.handleClosed.bind(n),n}return a(t,e),s(t,[{key:"handleClosed",value:function(){"function"==typeof this.props.onClosed&&this.props.onClosed()}},{key:"renderHeader",value:function(){var e=this.props.title;return e?c.default.createElement(u.ModalHeader,{toggle:this.handleClosed},e):null}},{key:"render",value:function(){return c.default.createElement(u.Modal,{isOpen:this.props.isOpen,onClosed:this.handleClosed,className:(0,f.default)("iframe-dialog",this.props.className),modalClassName:this.props.modalClassName},this.renderHeader(),c.default.createElement(u.ModalBody,{className:this.props.bodyClassName},c.default.createElement("iframe",{id:this.props.iframeId,className:(0,f.default)("iframe-dialog__iframe",this.props.iframeClassName),src:this.props.url,frameBorder:0})))}}]),t}(l.Component);m.propTypes={url:h.default.string.isRequired,onClosed:h.default.func,isOpen:h.default.bool,title:h.default.oneOfType([h.default.string,h.default.bool]),modalClassName:h.default.string,iframeId:h.default.string,iframeClassName:h.default.string,className:h.default.string,bodyClassName:h.default.string},m.defaultProps={isOpen:!1,title:null},t.default=m},"./client/src/components/InputField/InputField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("reactstrap"),f=n("prop-types"),p=r(f),h=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tip/Tip.js"),m=r(h),b=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=n.handleChange.bind(n),n}return a(t,e),l(t,[{key:"getInputProps",value:function(){var e={className:this.props.className+" "+this.props.extraClass,id:this.props.id,name:this.props.name,disabled:this.props.disabled,readOnly:this.props.readOnly,value:this.props.value||"",placeholder:this.props.placeholder,autoFocus:this.props.autoFocus,maxLength:this.props.data&&this.props.data.maxlength,type:this.props.type?this.props.type:null,onBlur:this.props.onBlur,onFocus:this.props.onFocus};return this.props.attributes&&!Array.isArray(this.props.attributes)&&Object.assign(e,this.props.attributes),this.props.readOnly||Object.assign(e,{onChange:this.handleChange}),e}},{key:"handleChange",value:function(e){if("function"==typeof this.props.onChange){if(!e.target)return;this.props.onChange(e,{id:this.props.id,value:e.target.value})}}},{key:"renderFieldWithTip",value:function(){var e=this.props,t=e.id,n=e.title,r=e.tip;return u.default.createElement(d.InputGroup,null,u.default.createElement(d.Input,this.getInputProps()),u.default.createElement(d.InputGroupAddon,{addonType:"append"},u.default.createElement(m.default,s({},r,{fieldTitle:n,id:t+"-tip"}))))}},{key:"render",value:function(){return this.props.tip?this.renderFieldWithTip():u.default.createElement(d.Input,this.getInputProps())}}]),t}(c.Component);b.propTypes={extraClass:p.default.string,id:p.default.string,name:p.default.string.isRequired,onChange:p.default.func,onBlur:p.default.func,onFocus:p.default.func,value:p.default.oneOfType([p.default.string,p.default.number]),readOnly:p.default.bool,disabled:p.default.bool,placeholder:p.default.string,type:p.default.string,autoFocus:p.default.bool,attributes:p.default.oneOfType([p.default.object,p.default.array]),tip:p.default.shape(h.tipShape)},b.defaultProps={value:"",extraClass:"",className:"",type:"text",attributes:{}},t.Component=b,t.default=b},"./client/src/components/LabelField/LabelField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("react"),i=r(o),a=n("prop-types"),s=r(a),l=function(e){var t=e.id,n=e.className,r=e.title,o=e.extraClass,a=e.data,s=a&&a.target,l=n+" "+o;return i.default.createElement("label",{id:t,className:l,htmlFor:s},r)};l.propTypes={id:s.default.number,className:s.default.string,extraClass:s.default.string,title:s.default.node,data:s.default.shape({target:s.default.string})},l.defaultProps={className:"",extraClass:""},t.default=l},"./client/src/components/LookupField/LookupField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("reactstrap"),f=n("components/FieldHolder/FieldHolder"),p=r(f),h=n("i18n"),m=r(h),b=n("prop-types"),g=r(b),v=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getValueCSV=n.getValueCSV.bind(n),n}return a(t,e),l(t,[{key:"getValueCSV",value:function(){var e=this,t=this.props.value;if(!Array.isArray(t)&&(t||"string"==typeof t||"number"==typeof t)){var n=this.props.source.find(function(e){return e.value===t});return n?n.title:""}return t&&t.length?t.map(function(t){var n=e.props.source.find(function(e){return e.value===t});return n&&n.title}).filter(function(e){return(""+e).length}).join(", "):""}},{key:"getFieldProps",value:function(){return{id:this.props.id,name:this.props.name,className:this.props.className+" "+this.props.extraClass}}},{key:"render",value:function(){if(!this.props.source)return null;var e="('"+m.default._t("Admin.NONE","None")+"')",t=this.getValueCSV()||e;return u.default.createElement(d.Input,s({plaintext:!0},this.getFieldProps(),{tag:"p"}),t)}}]),t}(c.Component);v.propTypes={extraClass:g.default.string,id:g.default.string,name:g.default.string.isRequired,source:g.default.arrayOf(g.default.shape({value:g.default.oneOfType([g.default.string,g.default.number]),title:g.default.any,disabled:g.default.bool})),value:g.default.any},v.defaultProps={extraClass:"",className:"",value:[]},t.Component=v,t.default=(0,p.default)(v)},"./client/src/components/MobileMenuToggle/MobileMenuToggle.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("classnames"),d=r(u),f=n("prop-types"),p=r(f),h=function(e){function t(){o(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.handleClick=e.handleClick.bind(e),e}return a(t,e),s(t,[{key:"handleClick",value:function(e){e.preventDefault(),"function"==typeof this.props.onClick&&this.props.onClick(e)}},{key:"render",value:function(){var e=(0,d.default)({"cms-mobile-menu-toggle":!0,"cms-mobile-menu-toggle--open":this.props.isOpen});return c.default.createElement("button",{className:e,href:"#toggle-mobile-menu",onClick:this.handleClick,"aria-controls":this.props.controls,"aria-expanded":Boolean(this.props.isOpen)},c.default.createElement("span",null),c.default.createElement("span",null),c.default.createElement("span",null),c.default.createElement("span",null))}}]),t}(l.Component);h.propTypes={isOpen:p.default.bool.isRequired,onClick:p.default.func.isRequired,controls:p.default.string},h.defaultProps={controls:""},t.default=h},"./client/src/components/MobileMenuToggle/MobileMenuToggleContainer.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./client/src/state/mobileMenu/MobileMenuActions.js"),o=n("react-redux"),i=n("./client/src/components/MobileMenuToggle/MobileMenuToggle.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=(0,o.connect)(function(e){return{isOpen:e.mobileMenu.isOpen}},function(e){return{onClick:function(){e((0,r.toggleMobileMenu)())}}})(a.default)},"./client/src/components/NotFoundComponent/NotFoundComponent.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("react"),i=r(o),a=n("i18n"),s=r(a),l=n("classnames"),c=r(l),u=n("components/FormAlert/FormAlert"),d=r(u),f=n("prop-types"),p=r(f),h=function(e){var t=e.itemName,n=e.name,r=e.value;return i.default.createElement("div",{className:(0,c.default)(t,"not-found-component")},i.default.createElement(d.default,{value:s.default.inject(s.default._t("Admin.NOT_FOUND_COMPONENT","The component here ({component}) failed to load, there is a chance that you may lose data when saving due to this."),{component:t})}),n&&"string"==typeof r?i.default.createElement("input",{type:"hidden",name:n,value:r}):null)};h.propTypes={itemName:p.default.string.isRequired,name:p.default.string,value:p.default.any},t.default=h},"./client/src/components/NumberField/NumberField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},c=n("components/FieldHolder/FieldHolder"),u=r(c),d=n("./client/src/components/InputField/InputField.js"),f=r(d),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"getInputProps",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getInputProps",this).call(this);return Object.assign(e,{type:"number"}),e}}]),t}(f.default);t.Component=p,t.default=(0,u.default)(p)},"./client/src/components/OptionsetField/OptionField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("reactstrap"),f=n("classnames"),p=r(f),h=n("./client/src/lib/castStringToElement.js"),m=r(h),b=n("prop-types"),g=r(b),v=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=n.handleChange.bind(n),n}return s(t,e),l(t,[{key:"getInputProps",value:function(){var e,t=(0,p.default)((e={},o(e,this.props.className,!0),o(e,this.props.extraClass,!0),o(e,"form-check",!0),o(e,"checked",this.props.value),o(e,"disabled",this.props.readOnly),o(e,"option-field--disabled",this.props.readOnly||this.props.disabled),e));return{id:this.props.id,type:this.props.type,name:this.props.name,disabled:this.props.disabled||this.props.readOnly,readOnly:this.props.readOnly,className:t,onChange:this.handleChange,checked:!!this.props.value,value:1}}},{key:"handleChange",value:function(e){if(this.props.readOnly||this.props.disabled)return void e.preventDefault();var t=null;"function"==typeof this.props.onChange?t=this.props.onChange:"function"==typeof this.props.onClick&&(t=this.props.onClick),t&&t(e,{id:this.props.id,value:e.target.checked?1:0})}},{key:"render",value:function(){var e=null!==this.props.leftTitle?this.props.leftTitle:this.props.title,t=null!==this.props.rightTitle?e+" "+this.props.rightTitle:e;return u.default.createElement(d.FormGroup,{check:!0},u.default.createElement(d.Label,{check:!0},u.default.createElement(d.Input,this.getInputProps()),(0,m.default)("span",t)))}}]),t}(c.Component);v.propTypes={type:g.default.oneOf(["checkbox","radio"]),leftTitle:g.default.any,rightTitle:g.default.any,title:g.default.any,extraClass:g.default.string,id:g.default.string,name:g.default.string,onChange:g.default.func,value:g.default.oneOfType([g.default.string,g.default.number,g.default.bool]),readOnly:g.default.bool,disabled:g.default.bool},v.defaultProps={extraClass:"",className:"",type:"radio",leftTitle:null,rightTitle:null},t.Component=v,t.default=v},"./client/src/components/OptionsetField/OptionsetField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("./client/src/components/OptionsetField/OptionField.js"),f=r(d),p=n("components/FieldHolder/FieldHolder"),h=r(p),m=n("prop-types"),b=r(m),g=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getItemKey=n.getItemKey.bind(n),n.getOptionProps=n.getOptionProps.bind(n),n.handleChange=n.handleChange.bind(n),n}return a(t,e),l(t,[{key:"getItemKey",value:function(e,t){var n=e.value||"empty"+t;return this.props.id+"-"+n}},{key:"getOptionProps",value:function(e,t){var n=this.getItemKey(e,t);return{key:n,id:n,name:this.props.name,className:this.props.itemClass+" option-val--"+e.value,disabled:e.disabled||this.props.disabled,readOnly:this.props.readOnly,onChange:this.handleChange,value:""+this.props.value==""+e.value,title:e.title,type:"radio"}}},{key:"handleChange",value:function(e,t){var n=this;if("function"==typeof this.props.onChange&&1===t.value){var r=this.props.source.find(function(e,r){return n.getItemKey(e,r)===t.id});this.props.onChange(e,{id:this.props.id,value:r.value})}}},{key:"render",value:function(){var e=this;return this.props.source?u.default.createElement("div",null,this.props.source.map(function(t,n){return u.default.createElement(f.default,s({},e.getOptionProps(t,n),{hideLabels:!0}))})):null}}]),t}(c.Component);g.propTypes={extraClass:b.default.string,itemClass:b.default.string,id:b.default.string,name:b.default.string.isRequired,source:b.default.arrayOf(b.default.shape({value:b.default.oneOfType([b.default.string,b.default.number]),title:b.default.oneOfType([b.default.string,b.default.number]),disabled:b.default.bool})),onChange:b.default.func,value:b.default.oneOfType([b.default.string,b.default.number]),readOnly:b.default.bool,disabled:b.default.bool},g.defaultProps={extraClass:"",className:"",itemClass:""},t.Component=g,t.default=(0,h.default)(g)},"./client/src/components/PopoverOptionSet/PopoverOptionSet.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("prop-types"),f=r(d),p=n("reactstrap"),h=n("classnames"),m=r(h),b=n("i18n"),g=r(b),v=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleToggle=n.handleToggle.bind(n),n.handleSearchValueClear=n.handleSearchValueClear.bind(n),n.handleSearchValueChange=n.handleSearchValueChange.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.doToggle=n.doToggle.bind(n),n.focusOnTarget=n.focusOnTarget.bind(n),n.state={searchValue:""},n}return a(t,e),l(t,[{key:"handleToggle",value:function(){this.doToggle(!1)}},{key:"doToggle",value:function(e){(0,this.props.toggle)(),this.handleSearchValueClear(),e&&this.focusOnTarget()}},{key:"focusOnTarget",value:function(){var e=this.props.target;if(e){var t=p.Util.getTarget(e);t&&t.focus()}}},{key:"handleSearchValueClear",value:function(){this.setState({searchValue:""})}},{key:"handleSearchValueChange",value:function(e){this.setState({searchValue:e.target.value})}},{key:"handleKeyDown",value:function(e){"Escape"===e.key&&this.doToggle(!0)}},{key:"renderSearchValueClearLink",value:function(){var e=this.props.clearButtonClassName;return 0===this.state.searchValue.length?null:u.default.createElement(p.InputGroupAddon,{addonType:"append"},u.default.createElement("button",{className:(0,m.default)(e),onClick:this.handleSearchValueClear},g.default._t("PopoverOptionSet.CLEAR","Clear")))}},{key:"renderSearchBox",value:function(){var e=this.props,t=e.searchPlaceholder,n=e.disableSearch,r=e.searchClassName,o=e.searchInputClassName,i=this.state.searchValue;return n?null:u.default.createElement(p.InputGroup,{className:(0,m.default)(r)},u.default.createElement(p.Input,{autoFocus:!0,className:(0,m.default)(o),onChange:this.handleSearchValueChange,placeholder:t,type:"text",value:i}),this.renderSearchValueClearLink())}},{key:"renderOptionButtons",value:function(){var e=this.props,t=e.buttons,n=e.onSearch,r=e.buttonContainerClassName,o=e.emptyResultClassName,i=e.buttonClassName,a=e.ButtonComponent,l=this.state.searchValue,c=t;return 0!==l.length&&(c=n(l,c)),0===c.length?u.default.createElement("div",{className:(0,m.default)(r)},u.default.createElement("div",{className:(0,m.default)(o)},g.default._t("PopoverOptionSet.NO_RESULTS","No results found"))):u.default.createElement("div",{className:(0,m.default)(r)},c.map(function(e){return u.default.createElement(a,s({},e.buttonProps,{className:(0,m.default)(e.className,i),key:e.key,onClick:e.onClick}),e.content)}))}},{key:"render",value:function(){var e=this.props,t=e.container,n=e.className,r=e.isOpen,o=e.placement,i=e.target;return u.default.createElement(p.Popover,{className:(0,m.default)(n),container:t,hideArrow:!0,isOpen:r,onKeyDown:this.handleKeyDown,placement:o,target:i,toggle:this.handleToggle,trigger:"legacy"},this.renderSearchBox(),this.renderOptionButtons())}}]),t}(c.Component);v.propTypes={buttons:f.default.arrayOf(f.default.shape({key:f.default.string.isRequired,content:f.default.node.isRequired,onClick:f.default.func.isRequired,className:f.default.oneOfType([f.default.string,f.default.object,f.default.arrayOf(f.default.string)]),buttonProps:f.default.object})).isRequired,onSearch:f.default.func,container:f.default.oneOfType([f.default.string,f.default.func,f.default.object]),isOpen:f.default.bool.isRequired,placement:f.default.string,target:f.default.oneOfType([f.default.string,f.default.func,f.default.object]).isRequired,toggle:f.default.func.isRequired,searchPlaceholder:f.default.string,disableSearch:f.default.bool,ButtonComponent:f.default.oneOfType([f.default.func,f.default.object]),className:f.default.oneOfType([f.default.string,f.default.array,f.default.object]),searchClassName:f.default.oneOfType([f.default.string,f.default.array,f.default.object]),searchInputClassName:f.default.oneOfType([f.default.string,f.default.array,f.default.object]),clearButtonClassName:f.default.oneOfType([f.default.string,f.default.array,f.default.object]),buttonContainerClassName:f.default.oneOfType([f.default.string,f.default.array,f.default.object]),emptyResultClassName:f.default.oneOfType([f.default.string,f.default.array,f.default.object]),buttonClassName:f.default.oneOfType([f.default.string,f.default.array,f.default.object])},v.defaultProps={searchPlaceholder:g.default._t("PopoverOptionSet.SEARCH_PLACEHOLDER","Search"),onSearch:function(e,t){return t.filter(function(t){return t.content.toLowerCase().includes(e.toLowerCase())})},disableSearch:!1,ButtonComponent:p.Button,className:"popover-option-set",searchClassName:"popover-option-set__search",searchInputClassName:"popover-option-set__search-input",clearButtonClassName:"popover-option-set__search-clear btn btn-link",buttonContainerClassName:"popover-option-set__button-container",emptyResultClassName:"popover-option-set__no-results",buttonClassName:"popover-option-set__button"},t.default=v},"./client/src/components/Search/SearchBox.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("i18n"),u=r(c),d=n("react"),f=r(d),p=n("reactstrap"),h=n("classnames"),m=r(h),b=n("./client/src/components/Tag/TagPropType.js"),g=r(b),v=n("components/Tag/CompactTagList"),y=r(v),_=n("components/ResizeAware/ResizeAware"),j=r(_),w=n("react-dom"),O=r(w),T=n("prop-types"),C=r(T),E=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleKeyDown=n.handleKeyDown.bind(n),n.handleFocus=n.handleFocus.bind(n),n.handleBlur=n.handleBlur.bind(n),n.renderInput=n.renderInput.bind(n),n.renderFilterButton=n.renderFilterButton.bind(n),n.renderEnterHint=n.renderEnterHint.bind(n),n.renderHideButton=n.renderHideButton.bind(n),n.componentDidUpdate=n.componentDidUpdate.bind(n),n.onResize=n.onResize.bind(n),n.setWidth=n.setWidth.bind(n),n.renderTags=n.renderTags.bind(n),n.getComponentWidth=n.getComponentWidth.bind(n),n.calculateSpaceForTags=n.calculateSpaceForTags.bind(n),n.calculateInputLeftPadding=n.calculateInputLeftPadding.bind(n),n.calculateInputRightPadding=n.calculateInputRightPadding.bind(n),n.onTagListResize=n.onTagListResize.bind(n),n.focusOnLastTag=n.focusOnLastTag.bind(n),n.focusOnInput=n.focusOnInput.bind(n),n.state={hasFocus:!1,width:window.innerWidth-180-55,tagWidth:0},n}return s(t,e),l(t,[{key:"componentDidUpdate",value:function(){var e=this.getComponentWidth();this.setWidth(e)}},{key:"onResize",value:function(e){this.setWidth(e.width)}},{key:"onTagListResize",value:function(e){var t=e.width;this.state.tagWidth!==t&&this.setState({tagWidth:t})}},{key:"setWidth",value:function(e){this.state.width!==e&&this.setState({width:e})}},{key:"getComponentWidth",value:function(){var e=O.default.findDOMNode(this);return e?e.getBoundingClientRect().width:0}},{key:"calculateInputLeftPadding",value:function(){var e=this.state.width>576?55:20;return this.state.tagWidth+e}},{key:"calculateInputRightPadding",value:function(){return this.state.width<576?121:264}},{key:"calculateSpaceForTags",value:function(){var e=this.state.width;e-=150,e=e-55-52;var t=this.props,n=t.hideable,r=t.showFilters;return n&&(e-=52),r&&(e-=52),e=Math.max(e,0)}},{key:"handleKeyDown",value:function(e){"Enter"===e.key?(e.preventDefault(),this.props.onSearch()):0===e.target.selectionStart&&("ArrowLeft"===e.key||"Backspace"===e.key&&e.target.selectionEnd-e.target.selectionStart==0)&&(e.preventDefault(),this.focusOnLastTag())}},{key:"handleFocus",value:function(){this.state.hasFocus||this.setState({hasFocus:!0}),this.props.onHideFilter&&this.props.onHideFilter()}},{key:"handleBlur",value:function(){this.state.hasFocus&&this.setState({hasFocus:!1})}},{key:"focusOnLastTag",value:function(){var e=O.default.findDOMNode(this);if(e){var t=e.querySelector(".compact-tag-list__visible .tag:last-child");t&&t.focus()}}},{key:"focusOnInput",value:function(){var e=O.default.findDOMNode(this);if(e){var t=e.querySelector("input");t&&t.focus()}}},{key:"renderInput",value:function(){var e,n=this.props,r=n.id,i=n.searchText,a=n.onChange,s=n.placeholder,l=n.name,c=n.borders,u={paddingLeft:this.calculateInputLeftPadding()+"px",paddingRight:this.calculateInputRightPadding()+"px"},d=Object.assign({},t.defaultProps.borders,c),p="search-box__content-field",h=(0,m.default)("form-control",p,(e={},o(e,p+"--top-border",d.top),o(e,p+"--right-border",d.right),o(e,p+"--bottom-border",d.bottom),o(e,p+"--left-border",d.left),e));return f.default.createElement("input",{"aria-labelledby":r+"_label",type:"search",name:l,placeholder:s,className:h,onKeyDown:this.handleKeyDown,onChange:a,onFocus:this.handleFocus,onBlur:this.handleBlur,value:i,id:r,autoFocus:!0,style:u})}},{key:"renderTags",value:function(){var e=this.props,t=e.tagData,n=e.onTagDelete,r=e.onTagClick,o=e.onToggleFilter;return f.default.createElement("div",{className:"search-box__tags"},f.default.createElement(j.default,{onResize:this.onTagListResize},f.default.createElement(y.default,{onTagDelete:n,onTagClick:r,onHolderFocus:this.focusOnInput,tags:t,onSummary:o,maxSize:this.calculateSpaceForTags(),deletable:!0})))}},{key:"renderEnterHint",value:function(){var e=this;return f.default.createElement("div",{role:"presentation",className:"search-box__enter",onClick:function(t){t.stopPropagation(),t.preventDefault(),e.props.onSearch()}},u.default._t("Admin.ENTER","Enter")," â†µ")}},{key:"renderFilterButton",value:function(){var e=this.props,t=e.expanded,n=e.onToggleFilter,r=e.formId,o=(0,m.default)("btn--icon","font-icon-caret-down-two","search-box__filter-trigger",this.state.width<576?"search-box--no-label":"",{collapsed:!t}),i=this.state.width<576?"sr-only":"";return f.default.createElement(p.Button,{"aria-expanded":t,"aria-controls":r,"aria-label":u.default._t("Admin.ADVANCED","Advanced"),onClick:n,className:o,title:u.default._t("Admin.ADVANCED","Advanced")},f.default.createElement("span",{className:i},u.default._t("Admin.SEARCH_OPTIONS","Search options")))}},{key:"renderHideButton",value:function(){var e=this.props,t=e.id,n=e.onHide;return f.default.createElement(p.Button,{onClick:n,title:u.default._t("Admin.CLOSE","Close"),"aria-label":u.default._t("Admin.CLOSE","Close"),className:"font-icon-cancel btn--no-text btn--icon-lg search-box__cancel","aria-controls":t,"aria-expanded":"true"})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.id,r=e.hideable,o=e.expanded,i=e.showFilters,a=e.dirty,s=e.clearable,l=(0,m.default)("search-box",{"search-box--hideable":r,"search-box--not-hideable":!r,"search-box--has-focus":this.state.hasFocus,"search-box--has-not-focus":!this.state.hasFocus,"search-box--has-filters":i,"search-box--has-not-filters":!i,"search-box--compact":this.state.width<576,"search-box--expanded":o}),c=(a||!s)&&this.state.hasFocus;return f.default.createElement("div",{className:l},f.default.createElement(j.default,{onResize:this.onResize},f.default.createElement("div",{className:"search-box__group"},f.default.createElement(p.Label,{for:n,id:n+"_label",hidden:!0},u.default._t("Admin.SEARCH","Search")),this.renderTags(),this.renderInput(),c&&this.renderEnterHint(),t,f.default.createElement("div",{className:"icon font-icon-search"}),i&&this.renderFilterButton(),r&&this.renderHideButton())))}}]),t}(d.Component);E.propTypes={onSearch:C.default.func,onToggleFilter:C.default.func,onHideFilter:C.default.func,onChange:C.default.func,onHide:C.default.func,onTagDelete:C.default.func,onTagClick:C.default.func,placeholder:C.default.string,expanded:C.default.bool,formId:C.default.string,id:C.default.string,searchText:C.default.string,hideable:C.default.bool,showFilters:C.default.bool,name:C.default.string,dirty:C.default.bool,clearable:C.default.bool,tagData:C.default.arrayOf(g.default)},E.defaultProps={placeholder:u.default._t("Admin.SEARCH","Search"),tagData:[],filters:{},formData:{},term:"",borders:{top:!1,right:!1,bottom:!0,left:!0}},t.Component=E,t.default=E},"./client/src/components/Search/SearchForm.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(t){"Enter"===t.key&&(t.preventDefault(),e())}}function i(e){var t=e.visible,n=e.expanded,r=e.onSearch,i=e.onClear,a=e.formSchemaUrl,s=e.id,l=e.identifier,u=e.clearable,p=o(r),h=t||n;return c.default.createElement(f.Collapse,{id:s,isOpen:n,className:"search-form"},c.default.createElement("div",{className:"search-form__wrapper",onKeyDown:p},h&&a&&c.default.createElement(d.default,{className:"no-change-track",formTag:"div",identifier:l,schemaUrl:a,onSubmit:function(){return r(),Promise.resolve()}}),c.default.createElement(f.Button,{className:"search-form__submit",onClick:function(){return r()},color:"primary",type:"button"},m),u&&c.default.createElement(f.Button,{className:"search-form__clear",onClick:function(){return i()}},b)))}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var a=n("i18n"),s=r(a),l=n("react"),c=r(l),u=n("containers/FormBuilderLoader/FormBuilderLoader"),d=r(u),f=n("reactstrap"),p=n("prop-types"),h=r(p),m=s.default._t("Admin.SEARCH","Search"),b=s.default._t("Admin.CLEAR","Clear");i.propTypes={onSearch:h.default.func,onClear:h.default.func,visible:h.default.bool,expanded:h.default.bool,id:h.default.string.isRequired,formSchemaUrl:h.default.string,identifier:h.default.string,clearable:h.default.bool},i.defaultProps={formData:{}},t.Component=i,t.default=i},"./client/src/components/Search/utilities/defaultTagHandlers.js":function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=n("./client/src/components/Search/utilities/genericDateTagHandler.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=function(e,t,n){if(!Array.isArray(t)||0===t.length)return!1;var r=n.state.fields.find(function(t){return t.name===e});return!(!r||!r.source)&&(t.map(function(e){var t=r.source.find(function(t){return t.value.toString()===e.toString()});return t&&t.title?t.title:e}).join(", ")||!1)},s={Date:(0,i.default)("ll"),Time:(0,i.default)("LT"),Datetime:(0,i.default)("lll"),Hidden:function(){return!1},SingleSelect:function(e,t,n){if(void 0===e.value)return!1;var r=a(e.key,[e.value],n);return!!r&&Object.assign({},e,{value:r})},Boolean:function(e){return!!e.value&&(e.value,r(e,["value"]))},MultiSelect:function(e,t,n){var r=a(e.key,e.value,n);return!!r&&Object.assign({},e,{value:r})},default:function(e){return!!e.value&&e}};t.default=s},"./client/src/components/Search/utilities/genericDateTagHandler.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("moment"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e){return function(t,n){var r=n.lang;if(!t.value)return!1;if(t.value&&r){o.default.locale(r);var i=(0,o.default)(t.value);if(i.isValid())return Object.assign({},t,{value:i.format(e)})}return t}};t.default=i},"./client/src/components/Search/utilities/mapFormSchemaToTags.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("./client/src/components/Search/utilities/defaultTagHandlers.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e,t){var n=t.key,r=t.value;return""+e+(t.label.toLowerCase()||n)+" "+(r||"")+" "},a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.metadata.loading)return{};var r=void 0,a=function(n){var o={key:n.name,label:n.title,value:t[n.name]};return("function"==typeof r["#"+o.key]?r["#"+o.key]:"function"==typeof r[n.schemaType]?r[n.schemaType]:r.default)(o,n,e,t)},s=function(e,t){var n=t.children;if(!Array.isArray(n)||0===n.length)return!1;var r=n.map(a).filter(function(e){return!1!==e}).reduce(i,"").trim(),o=n.map(function(e){return e.name}),s="[name="+n[0].name+"]";return!!r&&Object.assign({},e,{value:r,linkedFields:o,focusSelector:s})};r=Object.assign({},o.default,{Structural:s},n);var l=e.schema.fields,c=l.map(a).filter(function(e){return!1!==e}),u={};return c.forEach(function(e){u[e.key]=e}),u};t.default=a},"./client/src/components/SingleSelectField/SingleSelectField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("components/FieldHolder/FieldHolder"),f=r(d),p=n("i18n"),h=r(p),m=n("reactstrap"),b=n("prop-types"),g=r(b),v=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=n.handleChange.bind(n),n}return a(t,e),l(t,[{key:"getReadonlyField",value:function(){var e=this,t=this.props.source&&this.props.source.find(function(t){return t.value===e.props.value});return t="string"==typeof t?t:this.props.value||"",u.default.createElement(m.Input,s({plaintext:!0},this.getInputProps(),{tag:"p"}),t)}},{key:"getSelectField",value:function(){var e=this,t=this.props.source?this.props.source.slice():[];return this.props.data.hasEmptyDefault&&!t.find(function(e){return!e.value})&&t.unshift({value:"",title:this.props.data.emptyString,disabled:!1}),u.default.createElement(m.Input,s({type:"select"},this.getInputProps()),t.map(function(t,n){var r=e.props.name+"-"+(t.value||"empty"+n),o=t.description||null;return u.default.createElement("option",{key:r,value:t.value,disabled:t.disabled,title:o},t.title)}))}},{key:"getInputProps",value:function(){var e={className:this.props.className+" "+this.props.extraClass+" no-chosen",id:this.props.id,name:this.props.name,disabled:this.props.disabled};return this.props.readOnly||Object.assign(e,{onChange:this.handleChange,value:this.props.value||""}),e}},{key:"handleChange",value:function(e){"function"==typeof this.props.onChange&&this.props.onChange(e,{id:this.props.id,value:e.target.value})}},{key:"render",value:function(){return this.props.readOnly?this.getReadonlyField():this.getSelectField()}}]),t}(c.Component);v.propTypes={id:g.default.string,name:g.default.string.isRequired,onChange:g.default.func,value:g.default.oneOfType([g.default.string,g.default.number]),readOnly:g.default.bool,disabled:g.default.bool,source:g.default.arrayOf(g.default.shape({value:g.default.oneOfType([g.default.string,g.default.number]),title:g.default.oneOfType([g.default.string,g.default.number]),description:g.default.string,disabled:g.default.bool})),data:g.default.oneOfType([g.default.array,g.default.shape({hasEmptyDefault:g.default.bool,emptyString:g.default.oneOfType([g.default.string,g.default.number])})])},v.defaultProps={source:[],extraClass:"",className:"",data:{emptyString:h.default._t("Boolean.ANY","Any")}},t.Component=v,t.default=(0,f.default)(v)},"./client/src/components/Tabs/Tab.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.title,n=e.disabled,r=e.active,o=e.tabClassName,i=e.onToggle;if(!t)return null;var l=(0,c.default)(o,{active:r});return a.default.createElement(s.NavItem,null,a.default.createElement(s.NavLink,{onClick:i,disabled:n,className:l},t))}Object.defineProperty(t,"__esModule",{value:!0});var i=n("react"),a=r(i),s=n("reactstrap"),l=n("classnames"),c=r(l),u=n("prop-types"),d=r(u);o.propTypes={title:d.default.string,disabled:d.default.bool,active:d.default.bool,tabClassName:d.default.string,onToggle:d.default.func.isRequired},o.defaultProps={disabled:!1,active:!1},t.default=o},"./client/src/components/Tabs/TabItem.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.name,n=e.className,r=e.extraClass,o=e.disabled,i=e.children,l=(0,d.default)(),c=l.activeTab,f=l.isOnActiveTab,h={activeTab:c,currentTab:t,isOnActiveTab:!1!==f&&c===t};return a.default.createElement(u.TabContext.Provider,{value:h},a.default.createElement(s.TabPane,{tabId:t,className:(0,p.default)(n,r),disabled:o},a.default.createElement(s.Fade,{in:f},i)))}Object.defineProperty(t,"__esModule",{value:!0});var i=n("react"),a=r(i),s=n("reactstrap"),l=n("prop-types"),c=r(l),u=n("./client/src/hooks/useTabContext.js"),d=r(u),f=n("classnames"),p=r(f);o.propTypes={name:c.default.string.isRequired,extraClass:c.default.string,className:c.default.string,disabled:c.default.bool},t.default=o},"./client/src/components/Tabs/TabNav.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.currentTab,n=e.children,r=e.onToggle,o=s.default.Children.map(n,function(e){var n=e.props;return s.default.createElement(f.default,i({},n,{onToggle:function(){return t!==n.name&&r(n.name)},active:t===n.name}))});return o&&o.length>1?s.default.createElement(l.Nav,{tabs:!0,role:"tablist"},o):null}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("react"),s=r(a),l=n("reactstrap"),c=n("prop-types"),u=r(c),d=n("./client/src/components/Tabs/Tab.js"),f=r(d);o.propTypes={currentTab:u.default.string,onToggle:u.default.func.isRequired},t.default=o},"./client/src/components/Tabs/Tabs.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.hideNav,n=e.children,r=e.activeTab,o=e.className,i=e.extraClass,a=e.id,s=e.activateTab,l=e.defaultActiveKey,d={className:(0,f.default)([o,i]),id:a},p=r||(0,j.default)(l,n),h=(0,O.default)(),m={activeTab:p,isOnActiveTab:h?h.isOnActiveTab:void 0};return c.default.createElement("div",d,c.default.createElement("div",{className:"wrapper"},!t&&c.default.createElement(y.default,{currentTab:p,onToggle:s},n),c.default.createElement(u.TabContent,{activeTab:p},c.default.createElement(w.TabContext.Provider,{value:m},n))))}function i(e,t){var n=T(t),r=e.tabs.fields[n]?e.tabs.fields[n]:{activeTab:null};return s({},r)}function a(e,t){var n=T(t);return{activateTab:function(t){e(g.activateTab(n,t))}}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n("react"),c=r(l),u=n("reactstrap"),d=n("classnames"),f=r(d),p=n("prop-types"),h=r(p),m=n("react-redux"),b=n("state/tabs/TabsActions"),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(b),v=n("./client/src/components/Tabs/TabNav.js"),y=r(v),_=n("./client/src/components/Tabs/getDefaultActiveKey.js"),j=r(_),w=n("./client/src/hooks/useTabContext.js"),O=r(w);o.propTypes={id:h.default.string.isRequired,defaultActiveKey:h.default.string,extraClass:h.default.string,hideNav:h.default.bool,activateTab:h.default.func,activeTab:h.default.string},o.defaultProps={className:"",extraClass:"",hideNav:!1},t.Component=o;var T=function(e){return e.formid+"__"+e.id};t.default=(0,m.connect)(i,a)(o)},"./client/src/components/Tabs/getDefaultActiveKey.js":function(e,t,n){"use strict";function r(e,t){var n=o.Children.toArray(t);if(!n||0===n.length)return"";var r=void 0;return"string"==typeof e&&(r=n.find(function(t){return t.props.name===e})),r||(r=n[0]),r.props.name}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n("react")},"./client/src/components/Tag/SummaryTag.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("react"),s=r(a),l=n("components/Tag/Tag"),c=r(l),u=n("i18n"),d=r(u),f=n("prop-types"),p=r(f),h=function(e){var t=e.label,n=e.count,r=o(e,["label","count"]);return s.default.createElement(c.default,i({},r,{deletable:!1,title:n+" "+t}),n," ",s.default.createElement("span",{className:"font-icon-sliders","aria-label":t}))};h.propTypes=Object.assign({},c.default.propTypes,{label:p.default.string,count:p.default.number}),h.defaultProps={label:d.default._t("Admin.SUMMARY_TAG_LABEL","filters")},t.default=h},"./client/src/components/Tag/TagPropType.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("prop-types"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=o.default.shape({key:o.default.string.required,label:o.default.string,value:o.default.string});t.default=i},"./client/src/components/TimeField/TimeField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},u=n("components/FieldHolder/FieldHolder"),d=r(u),f=n("./client/src/components/DateField/DateField.js"),p=n("moment"),h=r(p),m=n("modernizr"),b=r(m),g=n("i18n"),v=r(g),y=n("prop-types"),_=r(y),j=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"getInputProps",value:function(){var e=v.default.inject(v.default._t("Admin.FormatExample","Example: {format}"),{format:(0,h.default)().endOf("month").format("LT")}),n=this.asHTML5()?"time":"text";return s({},c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getInputProps",this).call(this),{type:n,placeholder:e})}},{key:"isMultiline",value:function(){return!1}},{key:"hasNativeSupport",value:function(){return this.props.modernizr.inputtypes.time}},{key:"convertToLocalised",value:function(e){var t="";if(e){var n=(0,h.default)(e,"HH:mm:ss");n.isValid()&&(t=n.format("LT"))}return t}},{key:"convertToIso",value:function(e){var t="";if(e){var n=(0,h.default)(e,"LT");n.isValid()&&(t=n.format("HH:mm:ss"))}return t}}]),t}(f.Component);j.propTypes={lang:_.default.string,modernizr:_.default.object,data:_.default.shape({html5:_.default.boolean})},j.defaultProps={modernizr:b.default,data:{}},t.Component=j,t.default=(0,d.default)(j)},"./client/src/components/Toasts/Toast.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.toastShape=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("react"),a=r(i),s=n("prop-types"),l=r(s),c=n("i18n"),u=r(c),d=n("reactstrap"),f=n("classnames"),p=r(f),h=n("./client/src/components/Toasts/ToastActions.js"),m=n("components/Button/Button"),b=r(m),g=t.toastShape={text:l.default.string.isRequired,dismissed:l.default.bool.isRequired,type:l.default.string.isRequired,actions:l.default.arrayOf(l.default.shape(b.default.propTypes))},v=function(e){var t=e.type,n=e.text,r=e.onDismiss,o=e.dismissed,i=e.actions,s=function(e){e.preventDefault(),r()},l=(0,p.default)("toast","toast--"+t,{"toast--dismissing":o});return a.default.createElement(d.Toast,{className:l,isOpen:!0},a.default.createElement(d.ToastBody,{className:"toast__body"},a.default.createElement(b.default,{className:"toast__close",icon:"cancel",noText:!0,onClick:s,color:"none"},u.default._t("Admin.DISMISS","Dismiss")),a.default.createElement("div",{className:"toast__content",role:"alert","aria-live":"assertive","aria-atomic":"true"},n)),i.length>0&&a.default.createElement(h.ToastActions,{actions:i,onDismiss:r,dismissed:o}))};v.propTypes=o({},g,{onDismiss:l.default.func.isRequired}),v.defaultProps={actions:[]},t.default=v},"./client/src/components/Toasts/ToastActions.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.ToastActions=t.ToastAction=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("react"),a=r(i),s=n("prop-types"),l=r(s),c=n("components/Button/Button"),u=r(c),d=function(e){var t=e.label,n=e.href,r=e.onClick,i=e.dismissed,s=e.onDismiss,l=n?{href:n,tag:"a"}:{onClick:function(e){e.preventDefault(),i||(r&&r(),s())}};return a.default.createElement(u.default,o({color:"link",className:"toast__action"},l),t)},f=function(e){var t=e.actions,n=e.dismissed,r=e.onDismiss;return 0===t.length?null:a.default.createElement("div",{className:"toast__actions"},t.slice(0,2).map(function(e,t){return a.default.createElement(d,o({key:t},e,{onDismiss:r,dismissed:n}))}))};f.propTypes={dismissed:l.default.bool.isRequired,actions:l.default.arrayOf(l.default.shape({label:l.default.string.isRequired,href:l.default.string,onClick:l.default.func})),onDismiss:l.default.func.isRequired},f.defaultProps={actions:[]},t.ToastAction=d,t.ToastActions=f,t.default=f},"./client/src/components/Toasts/Toasts.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=n("react"),l=r(s),c=n("prop-types"),u=r(c),d=n("./client/src/components/Toasts/Toast.js"),f=r(d),p=function(e){var t=e.toasts,n=e.onDismiss,r=e.onPause,c=e.onResume,u=(0,s.useState)(void 0),d=a(u,2),p=d[0],h=d[1],m=function(e){return function(){p&&clearTimeout(p),h(setTimeout(e,100))}},b=m(r),g=m(c),v={onMouseEnter:b,onFocus:b,onMouseLeave:g,onBlur:g};return l.default.createElement("div",i({className:"toasts","aria-live":"polite","aria-atomic":"true"},v),l.default.createElement("div",{className:"toasts__wrapper"},t.map(function(e){var t=e.id,r=o(e,["id"]);return l.default.createElement(f.default,i({key:t,onDismiss:function(){return n(t)}},r))})))};p.propTypes={toasts:u.default.arrayOf(u.default.shape(d.toastPropType)).isRequired,onDismiss:u.default.func.isRequired,onPause:u.default.func.isRequired,onResume:u.default.func.isRequired},p.defaultProps={},t.default=p},"./client/src/components/TreeDropdownField/treeUtils.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findTreeByPath=function e(t,n){if(!t||0===Object.keys(t).length)return null;if(0===n.length)return t;var r=n.slice(0),o=r.shift(),i=t.children.find(function(e){return e.id===o});return i?e(i,r):null},t.findTreePath=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!n)return[];if(!t||0===Object.keys(t).length)return null;if(t.id===n)return[t.id];if(!t.children)return null;var o=!0,i=!1,a=void 0;try{for(var s,l=t.children[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value,u=e(c,n);if(null!==u)return t.id&&t.id!==r&&u.unshift(t.id),u}}catch(e){i=!0,a=e}finally{try{!o&&l.return&&l.return()}finally{if(i)throw a}}return null}},"./client/src/components/UsedOnTable/UsedOnTable.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=n("classnames"),p=r(f),h=n("i18n"),m=r(h),b=n("components/Loading/Loading"),g=r(b),v=n("./client/src/components/UsedOnTable/provideUsedOnData.js"),y=r(v),_=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"renderHeader",value:function(){return c.default.createElement("thead",null,c.default.createElement("tr",null,c.default.createElement("th",{scope:"col",className:"used-on__col--index"},m.default._t("Admin.USED_ON_NUM","#")),c.default.createElement("th",{scope:"col",className:"used-on__col--title"},m.default._t("Admin.USED_ON","Used on"))))}},{key:"renderBody",value:function(){var e=this.props,t=e.usedOn,n=e.loading,r=e.error;if(r||!t||!t.length){var o=null,i=null;r?(o=m.default.inject(m.default._t("Admin.LOADING_ERROR","As error occured when loading the data: {message}"),{message:r}),i="error"):n?(o=c.default.createElement(g.default,null),i="loading"):(o=m.default._t("Admin.NOT_USED","This file is currently not in use."),i="empty");var a=(0,p.default)(["used-on__message","used-on__message--"+i]);return c.default.createElement("tbody",{"aria-live":"polite"},c.default.createElement("tr",null,c.default.createElement("td",{className:a,colSpan:"3"},o)))}return c.default.createElement("tbody",{"aria-live":"polite"},t.map(this.renderRow))}},{key:"renderRow",value:function(e,t){var n=e.id,r=e.type,o=[e].concat(e.ancestors).reverse(),i="#",a=!0,s=o.map(function(e,r){var o=e.title,s=e.link;o&&o.length>=25&&(o=o.substring(0,25).trim()+"..."),s&&(i=s);var l=t+"-"+n+"-"+r,u=["used-on__title-item"];return a&&(u.push("used-on__title-item--first"),a=!1),c.default.createElement("li",{className:(0,p.default)(u),key:l},o)}),l=t+"-"+n;return c.default.createElement("tr",{key:l,className:"used-on__row"},c.default.createElement("td",{className:"used-on__col--index"},c.default.createElement("a",{href:i,className:"used-on__cell-link"},t+1)),c.default.createElement("td",{className:"used-on__col--title"},c.default.createElement("a",{href:i,className:"used-on__cell-link"},c.default.createElement("ul",{className:"used-on__title-items"},s),c.default.createElement("span",{className:"used-on__type"},r))))}},{key:"render",value:function(){return c.default.createElement("table",{className:"table used-on__table"},this.renderHeader(),this.renderBody())}}]),t}(l.PureComponent);_.propTypes={loading:d.default.bool,usedOn:d.default.arrayOf(d.default.shape({id:d.default.oneOfType([d.default.string,d.default.number]),title:d.default.string,type:d.default.string,link:d.default.string,ancestors:d.default.arrayOf(d.default.shape({title:d.default.string,link:d.default.string})).isRequired})),error:d.default.string},t.Component=_,t.default=(0,y.default)(_)},"./client/src/components/UsedOnTable/provideUsedOnData.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=n("react-redux"),p=n("./client/src/state/usedOn/usedOnActions.js"),h=n("./client/src/hooks/useTabContext.js"),m=function(e){var t=function(t){function n(){return o(this,n),i(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,t),s(n,[{key:"componentDidMount",value:function(){this.haveFetchedData=!1,this.props.forceFetch&&this.fetchDataFromEndpoint()}},{key:"componentDidUpdate",value:function(e){var t=this.props.tabContext;(e.identifier!==this.props.identifier||!t||t.isOnActiveTab)&&this.fetchDataFromEndpoint()}},{key:"fetchDataFromEndpoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.data.readUsageEndpoint||{},n=t.method,r=t.url;this.haveFetchedData&&!this.props.forceFetch||e.loadUsedOn(e.identifier,n,r),this.haveFetchedData=!0}},{key:"render",value:function(){return c.default.createElement(e,this.props)}}]),n}(l.Component);t.propTypes={identifier:d.default.string,loading:d.default.bool,data:d.default.oneOfType([d.default.array,d.default.shape({recordClass:d.default.string,recordId:d.default.oneOfType([d.default.string,d.default.number]),readUsageEndpoint:d.default.shape({url:d.default.string,method:d.default.string})})]),usedOn:d.default.array,forceFetch:d.default.bool};var n=function(e,t){var n=t.data,r=n.recordClass,o=n.recordId,i=r&&o?r+"#"+o:"",a=e.usedOn;return{identifier:i,loading:a.loading.includes(i),usedOn:a.usedOn[i]||null,error:a.errors[i]||null}},r=(0,h.injectTabContext)(t),u=(0,f.connect)(n,{loadUsedOn:p.loadUsedOn})(r);return u.Component=r,u};t.default=m},"./client/src/containers/App/App.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("react"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=n("lib/Injector"),a=n("./node_modules/react-router-config/esm/react-router-config.js"),s=function(e){var t=e.route;return o.default.createElement("div",{className:"app"},(0,a.renderRoutes)(t.routes()))};t.default=(0,i.provideInjector)(s)},"./client/src/containers/Form/Form.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("react"),a=r(i),s=n("redux-form"),l=n("lib/Injector"),c=n("lib/getFormState"),u=r(c),d=n("prop-types"),f=r(d),p=function(e){var t=e.formComponent,n=o({},e);return delete n.formComponent,a.default.createElement(t,n)};p.propTypes={formComponent:f.default.func.isRequired};var h=(0,l.inject)(["Form"],function(e){return{formComponent:e}})(p);t.default=(0,s.reduxForm)({getFormState:u.default,destroyOnUnmount:!1})(h)},"./client/src/containers/ToastsContainer/ToastsContainer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("react"),i=r(o),a=n("./client/src/components/Toasts/Toasts.js"),s=r(a),l=n("react-redux"),c=n("redux"),u=n("state/toasts/ToastsActions"),d=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(u),f=function(e){var t=e.toasts,n=e.actions,r=n.dismiss,o=n.pause,a=n.resume;return i.default.createElement(s.default,{toasts:t,onDismiss:r,onPause:o,onResume:a})},p=function(e){return{toasts:e.toasts.toasts}},h=function(e){return{actions:(0,c.bindActionCreators)(d,e)}};t.default=(0,l.connect)(p,h)(f)},"./client/src/hooks/useTabContext.js":function(e,t,n){"use strict";function r(){return(0,l.useContext)(u)}function o(e){return function(t){var n=r();return c.default.createElement(e,s({},t,{tabContext:n}))}}function i(e){var t=r(),n=!t||t.isOnActiveTab,o=(0,l.useState)(!1),i=a(o,2),s=i[0],c=i[1];(0,l.useEffect)(function(){n&&(c(!0),e(t))},[s||n])}Object.defineProperty(t,"__esModule",{value:!0}),t.TabContext=void 0;var a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.injectTabContext=o,t.useTabFirstShow=i;var l=n("react"),c=function(e){return e&&e.__esModule?e:{default:e}}(l),u=t.TabContext=c.default.createContext(!1);t.default=r},"./client/src/i18n.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){r(this,e),this.defaultLocale="en_US",this.currentLocale=null,this.autoDetectLocale=!0,this.lang={}}return o(e,[{key:"setLocale",value:function(e){this.currentLocale=e,this.autoDetectLocale=!1}},{key:"getLocale",value:function(){return null!==this.currentLocale?this.currentLocale:this.defaultLocale}},{key:"_t",value:function(e,t,n,r){var o=t||"";if(!this.lang)return o;for(var i=this.getLocale(),a=[i,i.replace(/_[\w]+/i,""),this.defaultLocale,this.defaultLocale.replace(/_[\w]+/i,"")],s=0;s<a.length;s++){var l=a[s];if(this.lang[l]&&this.lang[l][e])return this.lang[l][e]}return o}},{key:"addDictionary",value:function(e,t){void 0===this.lang[e]&&(this.lang[e]={});for(var n in t)this.lang[e][n]=t[n];this.autoDetectLocale&&(this.currentLocale=this.detectLocale())}},{key:"getDictionary",value:function(e){return this.lang[e]}},{key:"stripStr",value:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}},{key:"stripStrML",value:function(e){for(var t=e.split("\n"),n=0;n<t.length;n+=1)t[n]=stripStr(t[n]);return stripStr(t.join(" "))}},{key:"sprintf",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(0===n.length)return e;var o=new RegExp("(.?)(%s)","g"),i=0;return e.replace(o,function(e,t,r,o,a){return"%"===t?e:t+n[i++]})}},{key:"inject",value:function(e,t){var n=new RegExp("{([A-Za-z0-9_]*)}","g");return e.replace(n,function(e,n,r,o){return t[n]?t[n]:e})}},{key:"detectLocale",value:function(){var e=document.documentElement.getAttribute("lang");if(e||(e=document.body.getAttribute("lang")),!e)for(var t=document.getElementsByTagName("meta"),n=0;n<t.length;n++)t[n].attributes["http-equiv"]&&"content-language"===t[n].attributes["http-equiv"].nodeValue.toLowerCase()&&(e=t[n].attributes.content.nodeValue);if(e||(e=this.defaultLocale),2===e.length)for(var r in this.lang)if(r.substr(0,2).toLowerCase()===e.toLowerCase())return r;var o=e.match(/([^-|_]*)[-|_](.*)/);return o?o[1].toLowerCase()+"_"+o[2].toUpperCase():null}},{key:"addEvent",value:function(e,t,n,r){return e.addEventListener?(e.addEventListener(t,n,r),!0):e.attachEvent?e.attachEvent("on"+t,n):void console.log("Handler could not be attached")}}]),e}(),a=new i;window.ss=void 0!==window.ss?window.ss:{},window.ss.i18n=window.i18n=a,t.default=a},"./client/src/legacy/AddToCampaignForm.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("i18n"),i=r(o),a=n("jquery"),s=r(a),l=n("react"),c=r(l),u=n("react-dom"),d=r(u),f=n("lib/Injector"),p=(0,f.loadComponent)("FormBuilderModal");s.default.entwine("ss",function(e){e(".cms-content-actions .add-to-campaign-action,#add-to-campaign__action").entwine({onclick:function(){var t=e("#add-to-campaign__dialog-wrapper");return t.length||(t=e('<div id="add-to-campaign__dialog-wrapper" />'),e("body").append(t)),t.open(),!1}}),e(".add-to-campaign-modal .add-to-campaign-modal__nav-link").entwine({onclick:function(t){t.preventDefault();var n=e(t.target);window.location=n.attr("href")}}),e("#add-to-campaign__dialog-wrapper").entwine({onunmatch:function(){this._clearModal()},open:function(){this._renderModal(!0)},close:function(){this._renderModal(!1)},_renderModal:function(t){var n=this,r=function(){return n.close()},o=function(){return n._handleSubmitModal.apply(n,arguments)},a=e("form.cms-edit-form :input[name=ID]").val(),s=window.ss.store,l=s.getState().config.sections.find(function(e){return"SilverStripe\\CMS\\Controllers\\CMSPageEditController"===e.name}),u=l.form.AddToCampaignForm.schemaUrl+"/"+a,f=i.default._t("Admin.ADD_TO_CAMPAIGN","Add to campaign");d.default.render(c.default.createElement(p,{title:f,isOpen:t,onSubmit:o,onClosed:r,schemaUrl:u,bodyClassName:"modal__dialog",className:"add-to-campaign-modal",responseClassBad:"modal__response modal__response--error",responseClassGood:"modal__response modal__response--good",identifier:"Admin.AddToCampaign"}),this[0])},_clearModal:function(){d.default.unmountComponentAtNode(this[0])},_handleSubmitModal:function(e,t,n){return n()}})})},"./client/src/legacy/ConfirmedPasswordField.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);(0,o.default)(document).on("click",".confirmedpassword .showOnClick a",function(){var e=(0,o.default)(".showOnClickContainer",(0,o.default)(this).parent());return e.toggle("fast",function(){e.toggleClass("d-none").find('input[type="hidden"]').val(e.hasClass("d-none")?0:1)}),!1})},"./client/src/legacy/DateField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("jquery"),i=r(o),a=n("i18n"),s=r(a),l=n("moment"),c=r(l),u=n("modernizr"),d=r(u);i.default.entwine("ss",function(e){e("input[type=date]").entwine({onadd:function(){if(!d.default.inputtypes.date&&!(this.prop("disabled")||this.prop("readonly")||this.hasClass("hasDatepicker"))){var t=e("<input/>",{type:"hidden",name:this.attr("name"),value:this.val()});this.parent().append(t),this.removeAttr("name"),c.default.locale(this.attr("lang"));var n=this.val(),r="";if(n){var o=(0,c.default)(n);o.isValid()&&(r=o.format("L"))}this.val(r);var i=s.default.inject(s.default._t("Admin.FormatExample","Example: {format}"),{format:(0,c.default)().endOf("month").format("L")});this.attr("placeholder",i),this.updateValue()}},onchange:function(){this.updateValue()},updateValue:function(){var e=this.val(),t="";if(e)for(var n=["L","YYYY-MM-DD"],r=0;r<n.length;r++){var o=n[r],i=(0,c.default)(e,o);if(i.isValid()){t=i.format("YYYY-MM-DD");break}}this.parent().find("input[type=hidden]").val(t)}})})},"./client/src/legacy/DatetimeField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("jquery"),i=r(o),a=n("i18n"),s=r(a),l=n("moment"),c=r(l),u=n("modernizr"),d=r(u);n("./thirdparty/jquery-entwine/jquery.entwine.js"),i.default.entwine("ss",function(e){e("input[type=datetime-local]").entwine({onadd:function(){if(!d.default.inputtypes["datetime-local"]&&!(this.prop("disabled")||this.prop("readonly")||this.hasClass("hasDatepicker"))){var t=e("<input/>",{type:"hidden",name:this.attr("name"),value:this.val()});this.parent().append(t),this.removeAttr("name"),c.default.locale(this.attr("lang"));var n=this.val(),r="";if(n){var o=(0,c.default)(n);o.isValid()&&(r=o.format("L LT"))}this.val(r);var i=s.default.inject(s.default._t("Admin.FormatExample","Example: {format}"),{format:(0,c.default)().endOf("month").format("L LT")});this.attr("placeholder",i),this.updateValue()}},onchange:function(){this.updateValue()},updateValue:function(){var e=this.val(),t="";if(e){var n=(0,c.default)(e,["L LT",c.default.ISO_8601]);n.isValid()&&(t=n.format("YYYY-MM-DDTHH:mm:ss"))}this.parent().find("input[type=hidden]").val(t)}})})},"./client/src/legacy/GridField.js":function(e,t,n){"use strict";(function(e){function t(e){return e&&e.__esModule?e:{default:e}}var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=n("jquery"),a=t(i),s=n("i18n"),l=t(s),c=n("react"),u=t(c),d=n("react-dom"),f=t(d),p=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Search/Search.js"),h=(t(p),n("lib/schemaFieldValues"),n("lib/Injector"));n("./thirdparty/jquery-ui/jquery-ui.js"),n("./thirdparty/jquery-entwine/jquery.entwine.js"),a.default.entwine("ss",function(t){t(".grid-field").entwine({onmatch:function(){this.needsColumnFix()&&(this.fixColumns(),this.injectSearchButton(!1)),this.hasFilters()&&this.injectSearchButton(!0),!this.is(".grid-field--lazy-loadable")||0!==this.closest(".ss-tabset, .cms-tabset").length&&"force"!==this.data("gridfield-lazy-load-state")||(this.data("gridfield-lazy-load-state","ready"),this.lazyload()),this.data("gridfield-lazy-load-state","ready")},lazyload:function(){"ready"!==this.data("gridfield-lazy-load-state")?this.data("gridfield-lazy-load-state","force"):(this.removeClass("grid-field--lazy-loadable").addClass("grid-field--lazy-loaded"),this.reload())},reload:function(e,n){var r=this,o=this.closest("form"),i=this.find(":input:focus").attr("name"),a=o.find(":input:not(.grid-field__search-holder :input, .relation-search)").serializeArray(),s=this.find("tbody"),c=this.find(".grid-field__title-row th").attr("colspan");if(e||(e={}),e.data||(e.data=[]),e.data=e.data.concat(a),window.location.search)for(var u=window.location.search.replace(/^\?/,"").split("&"),d=0;d<u.length;d++){var f=u[d].split("=");2==f.length&&e.data.push({name:decodeURIComponent(f[0]),value:decodeURIComponent(f[1])})}s.find("tr").remove();var p=t("<td />").addClass("ss-gridfield-item loading").attr("colspan",c);s.append(t("<tr />").append(p)),t.ajax(t.extend({},{headers:{"X-Pjax":"CurrentField"},type:"POST",url:this.data("url"),dataType:"html",success:function(o){if(r.empty().append(t(o).children()),i&&r.find(':input[name="'+i+'"]').focus(),r.find(".grid-field__filter-header, .grid-field__search-holder").length){var a="show"===e.data[0].filter;r.needsColumnFix()&&r.fixColumns(),r.injectSearchButton(a)}n&&n.apply(this,arguments),r.trigger("reload",r),!1!==e.data[0].triggerChange&&r.trigger("change")},error:function(e){alert(l.default._t("Admin.ERRORINTRANSACTION"))},complete:function(e,t){r.find(".loading").removeClass("loading")}},e))},showDetailView:function(e){window.location.href=e},getItems:function(){return this.find(".ss-gridfield-item")},setState:function(e,t){var n=this.getState();n[e]=t,this.find(':input[name="'+this.data("name")+'[GridState]"]').val(JSON.stringify(n))},getState:function(){var e=this.find(':input[name="'+this.data("name")+'[GridState]"]').val();return e?JSON.parse(e):{}},hasFilters:function(){return!!this.getState().GridFieldFilterHeader},needsColumnFix:function(){return this.find(".grid-field__filter-header, .grid-field__search-holder").length&&!this.find(".grid-field__col-compact").length&&!this.find("th.col-Actions").length},fixColumns:function(e){this.find(".sortable-header").append('<th class="main col-Actions" />'),this.find("tbody tr").each(function(){t(this).find("td:last").attr("colspan",2)});var n=t('<th class="extra" />');t(".grid-field__filter-header th:last .action").each(function(){t(this).detach(),n.append(t(this))}),t(".grid-field__filter-header").append(n)},injectSearchButton:function(e){var t=this.find(".grid-field__filter-header").length>0,n=void 0;e?(n='<span class="non-sortable"></span>',this.addClass("show-filter").find(".grid-field__filter-header, .grid-field__search-holder").removeClass("grid-field__search-holder--hidden"),t||this.find(":button[name=showFilter]").hide()):(n='<button type="button" title="Open search and filter" name="showFilter" class="btn btn-secondary font-icon-search btn--no-text btn--icon-lg grid-field__filter-open"></button>',this.removeClass("show-filter").find(".grid-field__filter-header, .grid-field__search-holder").addClass("grid-field__search-holder--hidden")),t&&this.find(".sortable-header th:last").html(n)},keepStateInHistory:function(){var e=this,n=t(this).find(".gridfield-actionmenu__container").data("schema"),r=t(this).data("name");n&&n.length>0&&n.filter(function(t){if("link"===t.type){var n=e.buildUrlQueryString(t.url,r),o=window.location.pathname+n;window.ss.router.replace(o,void 0,void 0,!1)}})},buildUrlQueryString:function(e,t){var n={},r=!0,i=!1,a=void 0;try{for(var s,l=window.location.search.replace(/^\?/,"").split("&")[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var c=s.value,u=c.split("="),d=o(u,2),f=d[0],p=d[1];f.match(new RegExp("^gridState\\-"+t+"\\-[0-9]$"))||(n[f]=p)}}catch(e){i=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw a}}var h={},m=[window.location.origin,e].join("/"),b=new URL(m).searchParams,g=!0,v=!1,y=void 0;try{for(var _,j=b.entries()[Symbol.iterator]();!(g=(_=j.next()).done);g=!0){var w=_.value,O=o(w,2),f=O[0],p=O[1];h[f]=p}}catch(e){v=!0,y=e}finally{try{!g&&j.return&&j.return()}finally{if(v)throw y}}var T=Object.assign(n,h),C=[];for(var E in T)if(""!==E){var x=encodeURIComponent(T[E]);C.push([E,x].join("="))}return 0===C.length?"":"?"+C.join("&")}}),t(".grid-field *").entwine({getGridField:function(){return this.closest(".grid-field")}}),t(".gridfield-actionmenu__container").entwine({Timer:null,Component:null,Actions:null,onmatch:function(){this._super();var e=[];t(".action-menu--handled",this.parent()).each(function(){var n=t(this).detach();e.push(n)}),this.setActions(e);var n=this.closest(".cms-content").attr("id"),r=n?{context:n}:{},o=(0,h.loadComponent)("GridFieldActions",r);this.setComponent(o),this.refresh()},onunmatch:function(){this._super();var e=this[0];e&&f.default.unmountComponentAtNode(e);var n=this.getActions(),r=this.parent();n&&t(n).each(function(){t(this).appendTo(r)})},refresh:function(){var e=this.data("schema"),t=this.getComponent();f.default.render(u.default.createElement(t,{schema:e}),this[0])}}),t(".grid-field :button[name=showFilter]").entwine({onclick:function(e){this.closest(".grid-field").find(".grid-field__filter-header, .grid-field__search-holder").removeClass("grid-field__search-holder--hidden").find(":input:first").focus(),this.closest(".grid-field").addClass("show-filter"),this.parent().html('<span class="non-sortable"></span>'),e.preventDefault()}}),t(".grid-field .ss-gridfield-item").entwine({onclick:function(e){if(e.target.classList.contains("action-menu__toggle"))return this._super(e),!1;if(t(e.target).closest(".action").length)return this._super(e),!1;var n=this.find(".edit-link, .view-link");n.length&&this.getGridField().showDetailView(n.prop("href"))},onmouseover:function(){this.find(".edit-link, .view-link").length&&this.css("cursor","pointer")},onmouseout:function(){this.css("cursor","default")}}),t(".grid-field .action.action_import:button").entwine({onclick:function(e){e.preventDefault(),this.openmodal()},onmatch:function(){this._super(),"open"===this.data("state")&&this.openmodal()},onunmatch:function(){this._super()},openmodal:function(){function e(){o.removeClass("show"),n.removeClass("show"),setTimeout(function(){o.remove()},150)}var n=t(this.data("target")),r=t(this.data("modal"));n.length<1?(n=r,n.appendTo(document.body)):n.innerHTML=r.innerHTML;var o=t(".modal-backdrop");o.length<1&&(o=t('<div class="modal-backdrop fade"></div>'),o.appendTo(document.body)),n.find("[data-dismiss]").add(".modal-backdrop").on("click",function(){e()}),t(document).on("keydown",function(t){27===t.keyCode&&e()}),setTimeout(function(){o.addClass("show"),n.addClass("show")},0)}}),t(".grid-field .action:button").entwine({onclick:function(e){var n="show",r=!0;if(this.is(":disabled"))return void e.preventDefault();!this.hasClass("ss-gridfield-button-close")&&this.closest(".grid-field").hasClass("show-filter")||(n="hidden"),(this.hasClass("ss-gridfield-pagination-action")||this.hasClass("grid-field__sort"))&&(r=!1);var o=[{name:this.attr("name"),value:this.val(),filter:n,triggerChange:r}],i=this.data("action-state");i&&o.push({name:"ActionState",value:JSON.stringify(i)});var a=t(this).getGridField(),s=function(e,n,r){a.keepStateInHistory();var o=r.getResponseHeader("X-Message-Text"),i=r.getResponseHeader("X-Message-Type");if(o&&i){var s=t("#Form_EditForm_error");s.addClass(i),s.html(o),s.show()}};a.reload({data:o},s),e.preventDefault()},actionurl:function(){var e=this.closest(":button"),n=this.getGridField(),r=this.closest("form"),o=r.find(":input.gridstate").serialize(),i=r.find('input[name="SecurityID"]').val();o+="&"+encodeURIComponent(e.attr("name"))+"="+encodeURIComponent(e.val()),i&&(o+="&SecurityID="+encodeURIComponent(i));var a=this.data("action-state");a&&(o+="&ActionState="+encodeURIComponent(JSON.stringify(a))),window.location.search&&(o=window.location.search.replace(/^\?/,"")+"&"+o);var s=-1==n.data("url").indexOf("?")?"?":"&";return t.path.makeUrlAbsolute(n.data("url")+s+o,t("base").attr("href"))}}),t(".grid-field .add-existing-autocompleter").entwine({onbuttoncreate:function(){var e=this;this.toggleDisabled(),this.find('input[type="text"]').on("keyup",function(){e.toggleDisabled()})},onunmatch:function(){this.find('input[type="text"]').off("keyup")},toggleDisabled:function(){var e=this.find(".ss-ui-button"),t=this.find('input[type="text"]'),n=""!==t.val(),r=e.is(":disabled");(n&&r||!n&&!r)&&e.attr("disabled",!r)}}),t(".grid-field .grid-field__col-compact .action--delete, .grid-field .grid-field__col-compact .action--archive, .cms-edit-form .btn-toolbar .action--delete, .cms-edit-form .btn-toolbar .action--archive, .grid-field__col-compact .gridfield-button-unlink").entwine({onclick:function(n){var r=t(this).hasClass("action--archive")?l.default._t("Admin.ARCHIVECONFIRMMESSAGE","Are you sure you want to archive this record?"):l.default._t("Admin.DELETECONFIRMMESSAGE","Are you sure you want to delete this record?");if(!confirm(r))return n.preventDefault(),!1;this._super(n);var o=t(this).hasClass("action--archive")?ss.i18n._t("Admin.ARCHIVE_CONFIRM_MESSAGE","Archived"):ss.i18n._t("Admin.DELETE_CONFIRM_MESSAGE","Deleted");t(this).hasClass("dropdown-item")&&e.noticeAdd({text:o,type:"success",stayTime:5e3,inEffect:{left:"0",opacity:"show"}})}}),t(".grid-field .grid-print-button.action:button").entwine({UUID:null,onmatch:function(){this._super(),this.setUUID((new Date).getTime())},onunmatch:function(){this._super()},onclick:function(e){var t=this.actionurl();return window.open(t),e.preventDefault(),!1}}),t(".ss-gridfield-print-iframe").entwine({onmatch:function(){this._super(),this.hide().on("load",function(){this.focus(),(this.contentWindow||this).print()})},onunmatch:function(){this._super()}}),t(".grid-field .action.no-ajax, .grid-field .no-ajax .action:button").entwine({onclick:function(e){return window.location.href=this.actionurl(),e.preventDefault(),!1}}),t(".grid-field .action-detail").entwine({onclick:function(){return this.getGridField().showDetailView(t(this).prop("href")),!1}}),t(".grid-field[data-selectable]").entwine({getSelectedItems:function(){return this.find(".ss-gridfield-item.ui-selected")},getSelectedIDs:function(){return t.map(this.getSelectedItems(),function(e){return t(e).data("id")})}}),t(".grid-field[data-selectable] .ss-gridfield-items").entwine({onadd:function(){this._super(),this.selectable()},onremove:function(){this._super(),this.data("selectable")&&this.selectable("destroy")}}),t(".js-injector-boot .grid-field .grid-field__search-holder").entwine({Component:null,onmatch:function(){this._super(),this.prependTo(this.parent());var e=this.closest(".cms-content").attr("id"),t=e?{context:e}:{},n=(0,h.loadComponent)("Search",t);this.setComponent(n),this.refresh()},onunmatch:function(){this._super();var e=this[0];e&&f.default.unmountComponentAtNode(e)},close:function(){var e=this.data("schema"),n=[{name:e.clearAction,value:"",filter:"hidden",triggerChange:!1}];e.clearActionState&&n.push({name:"ActionState",value:e.clearActionState});var r=t(this).getGridField(),o=function(){r.keepStateInHistory()};r.reload({data:n},o)},search:function(e){var n=this.data("schema"),r=[{name:n.searchAction,value:"",filter:"show",triggerChange:!1}];n.searchActionState&&r.push({name:"ActionState",value:n.searchActionState});var i=!0,a=!1,s=void 0;try{for(var l,c=Object.entries(e)[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value,d=o(u,2),f=d[0],p=d[1];if(p){var h="filter["+n.gridfield+"]["+f+"]";r.push({name:h,value:p})}}}catch(e){a=!0,s=e}finally{try{!i&&c.return&&c.return()}finally{if(a)throw s}}var m=t(this).getGridField(),b=function(){m.keepStateInHistory()};m.reload({data:r},b)},refresh:function(){var e=this,t=this.data("schema"),n=this.getComponent(),o=function(){return e.close()},i=function(t){return e.search(t)};String(t.gridfield).replace(/\-/g,"."),f.default.render(u.default.createElement(n,r({id:t.gridfield+"Search",display:"VISIBLE",displayBehavior:"HIDEABLE",filterPrefix:"Search__",onHide:o,onSearch:i},t)),this[0])}}),t(".js-injector-boot .grid-field .search-box__content-field").entwine({onkeydown:function(e){"Enter"===e.key&&e.preventDefault()}}),t(".grid-field .grid-field__filter-header :input").entwine({onmatch:function(){var e=this.closest(".extra").find(".ss-gridfield-button-filter"),t=this.closest(".extra").find(".ss-gridfield-button-reset");this.val()&&(e.addClass("filtered"),t.addClass("filtered")),this._super()},onunmatch:function(){this._super()},onkeydown:function(e){if(!this.closest(".ss-gridfield-button-reset").length){var n=this.closest(".extra").find(".ss-gridfield-button-filter"),r=this.closest(".extra").find(".ss-gridfield-button-reset");if("13"==e.keyCode){var o=this.closest(".grid-field__filter-header").find(".ss-gridfield-button-filter"),i="show";!this.hasClass("ss-gridfield-button-close")&&this.closest(".grid-field").hasClass("show-filter")||(i="hidden");var a=[{name:o.attr("name"),value:o.val(),filter:i,triggerChange:!1}];o.data("action-state")&&a.push({name:"ActionState",value:JSON.stringify(o.data("action-state"))});var s=t(this).getGridField(),l=function(){s.keepStateInHistory()};return s.reload({data:a},l),!1}n.addClass("hover-alike"),r.addClass("hover-alike")}}}),t(".grid-field .relation-search").entwine({onfocusin:function(e){this.autocomplete({source:function(e,n){var r=t(this.element);t(this.element).closest("form"),t.ajax({headers:{"X-Pjax":"Partial"},dataType:"json",type:"GET",url:t(r).data("searchUrl"),data:encodeURIComponent(r.attr("name"))+"="+encodeURIComponent(r.val()),success:n,error:function(e){alert(l.default._t("Admin.ERRORINTRANSACTION","An error occured while fetching data from the server\n Please try again later."))}})},select:function(e,n){var r=t('<input type="hidden" name="relationID" class="action_gridfield_relationfind no-change-track" />');r.val(n.item.id),t(this).closest(".grid-field").find(".action_gridfield_relationfind").replaceWith(r),t(this).closest(".grid-field").find(".action_gridfield_relationadd").removeAttr("disabled")}})}}),t(".grid-field .pagination-page-number input").entwine({onkeydown:function(e){if(13==e.keyCode){e.preventDefault();var n=parseInt(t(this).val(),10),r=t(this).getGridField();r.setState("GridFieldPaginator",{currentPage:n});var o=function(){r.keepStateInHistory()};return r.reload({},o),!1}}})})}).call(t,n("jquery"))},"./client/src/legacy/HtmlEditorField.js":function(module,exports,__webpack_require__){"use strict";(function($){function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _jquery=__webpack_require__("jquery"),_jquery2=_interopRequireDefault(_jquery);__webpack_require__("./node_modules/events-polyfill/index.js");var ss=void 0!==window.ss?window.ss:{};ss.editorWrappers={},ss.editorWrappers.tinyMCE=function(){var editorID;return{init:function(e){editorID=e,this.create()},destroy:function(){tinymce.EditorManager.execCommand("mceRemoveEditor",!1,editorID)},getInstance:function(){return tinymce.EditorManager.get(editorID)},onopen:function(){},onclose:function(){},getConfig:function(){var e="#"+editorID,t=(0,_jquery2.default)(e).data("config"),n=this;return t.selector=e,t.setup=function(e){e.on("change",function(){n.save()})},t},save:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getInstance();t.save(),e.silent||((0,_jquery2.default)(t.getElement()).trigger("change"),t.getElement().dispatchEvent(new Event("input",{bubbles:!0})))},create:function(){function e(e,t){var r=$(e).scrollTop();$(".mce-floatpanel").each(function(e,n){var o=parseFloat(n.style.top);$(n).css("top",o-(r-t)+"px")}),$(".mce-floatpanel").css("opacity","1"),n=void 0}function t(t){var i=t.target;!n||(new Date-n)/100>500?(o=$(i).scrollTop(),$(".mce-floatpanel").css("opacity","0")):window.clearTimeout(r),n=new Date,r=window.setTimeout(function(){return e(i,o)},500)}var n=void 0,r=void 0,o=void 0,i=this.getConfig();void 0!==i.baseURL&&(tinymce.EditorManager.baseURL=i.baseURL),i.skin=i.skin||"silverstripe",tinymce.init(i).then(function(e){e.length>0&&e[0].container&&$(e[0].container).closest(".panel--scrollable").on("scroll",function(e){return t(e)})})},repaint:function(){},isDirty:function(){return this.getInstance().isDirty()},getContent:function(){return this.getInstance().getContent()},getDOM:function(){return this.getInstance().getElement()},getContainer:function(){return this.getInstance().getContainer()},getSelectedNode:function(){return this.getInstance().selection.getNode()},selectNode:function(e){this.getInstance().selection.select(e)},setContent:function(e,t){this.getInstance().setContent(e,t)},insertContent:function(e,t){this.getInstance().insertContent(e,t)},replaceContent:function(e,t){this.getInstance().execCommand("mceReplaceContent",!1,e,t)},insertLink:function(e,t,n){if(n){n=n.replaceAll("<","&lt;").replaceAll(">","&gt;");var r=this.getInstance().dom.create("a",e,n);this.getInstance().selection.setNode(r)}else this.getInstance().execCommand("mceInsertLink",!1,e,t)},removeLink:function(){this.getInstance().execCommand("unlink",!1)},cleanLink:function cleanLink(href,node){var settings=this.getConfig,cb=settings.urlconverter_callback,cu=tinyMCE.settings.convert_urls;return cb&&(href=eval(cb+"(href, node, true);")),cu&&href.match(new RegExp("^"+tinyMCE.settings.document_base_url+"(.*)$"))&&(href=RegExp.$1),href.match(/^javascript:\s*mctmp/)&&(href=""),href},createBookmark:function(){return this.getInstance().selection.getBookmark()},moveToBookmark:function(e){this.getInstance().selection.moveToBookmark(e),this.getInstance().focus()},blur:function(){this.getInstance().selection.collapse()},addUndo:function(){this.getInstance().undoManager.add()}}},ss.editorWrappers.default=ss.editorWrappers.tinyMCE,_jquery2.default.entwine("ss",function(e){e("textarea.htmleditor").entwine({Editor:null,onadd:function(){var e=this.data("editor")||"default",t=ss.editorWrappers[e]();this.setEditor(t),t.init(this.attr("id")),this._super()},onmatch:function(){this.getEditor()||this.onadd(),this._super()},onremove:function(){this.getEditor().destroy(),this._super()},onunmatch:function(){this.getEditor()&&this.onremove(),this._super()},"from .cms-edit-form":{onbeforesubmitform:function(){this.getEditor().save({silent:!0}),this._super()}},openLinkDialog:function(){this.openDialog("link")},openMediaDialog:function(){this.openDialog("media")},openEmbedDialog:function(){this.openDialog("embed")},openDialog:function(t){if("media"===t&&window.InsertMediaModal){var n=e("#insert-media-react__dialog-wrapper");return n.length||(n=e('<div id="insert-media-react__dialog-wrapper" class="insert-link__dialog-wrapper" />'),e("body").append(n)),n.setElement(this),void n.open()}if("embed"===t&&window.InsertEmbedModal){var r=e("#insert-embed-react__dialog-wrapper");return r.length||(r=e('<div id="insert-embed-react__dialog-wrapper" />'),e("body").append(r)),r.setElement(this),void r.open()}throw new Error("Dialog named "+t+" is not available.")}})})}).call(exports,__webpack_require__("jquery"))},"./client/src/legacy/LeftAndMain.ActionTabSet.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".ss-tabset.ss-ui-action-tabset").entwine({IgnoreTabState:!0,onadd:function(){this._super(),this.tabs({collapsible:!0,active:!1})},onremove:function(){e(".cms-container").find("iframe").each(function(t,n){try{e(n).contents().off("click.ss-ui-action-tabset")}catch(e){console.warn("Unable to access iframe, possible https mis-match")}}),e(document).off("click.ss-ui-action-tabset"),this._super()},ontabsbeforeactivate:function(e,t){this.riseUp(e,t)},onclick:function(e,t){this.attachCloseHandler(e,t)},attachCloseHandler:function(t,n){var r,o=this,i=e(".cms-container").find("iframe");r=function(t){var n,i;n=e(t.target).closest(".ss-ui-action-tabset .ui-tabs-panel"),e(t.target).closest(o).length||n.length||(o.tabs("option","active",!1),i=e(".cms-container").find("iframe"),i.each(function(t,n){e(n).contents().off("click.ss-ui-action-tabset",r)}),e(document).off("click.ss-ui-action-tabset",r))},e(document).on("click.ss-ui-action-tabset",r),i.length>0&&i.each(function(t,n){e(n).contents().on("click.ss-ui-action-tabset",r)})},riseUp:function(t,n){var r,o,i,a,s,l,c,u,d;if(r=e(this).find(".ui-tabs-panel").outerHeight(),o=e(this).find(".ui-tabs-nav").outerHeight(),i=e(window).height()+e(document).scrollTop()-o,a=e(this).find(".ui-tabs-nav").offset().top,s=n.newPanel,l=n.newTab,a+r>=i&&a-r>0){if(this.addClass("rise-up"),null!==l.position()){if(c=-s.outerHeight(),u=s.parents(".toolbar--south")){var f=l.offset();d=f?f.top-u.offset().top:0,c-=d}e(s).css("top",c+"px")}}else this.removeClass("rise-up"),null!==l.position()&&e(s).css("bottom","100%");return!1}}),e(".cms-content-actions .ss-tabset.ss-ui-action-tabset").entwine({ontabsbeforeactivate:function(t,n){this._super(t,n),e(n.newPanel).length>0&&e(n.newPanel).css("left",n.newTab.position().left+"px")}}),e(".cms-actions-row.ss-tabset.ss-ui-action-tabset").entwine({ontabsbeforeactivate:function(t,n){this._super(t,n),e(this).closest(".ss-ui-action-tabset").removeClass("tabset-open tabset-open-last")}}),e(".cms-content-fields .ss-tabset.ss-ui-action-tabset").entwine({ontabsbeforeactivate:function(t,n){this._super(t,n),e(n.newPanel).length>0&&(e(n.newTab).hasClass("last")?(e(n.newPanel).css({left:"auto",right:"0px"}),e(n.newPanel).parent().addClass("tabset-open-last")):(e(n.newPanel).css("left",n.newTab.position().left+"px"),e(n.newTab).hasClass("first")&&(e(n.newPanel).css("left","0px"),e(n.newPanel).parent().addClass("tabset-open"))))}}),e(".cms-tree-view-sidebar .cms-actions-row.ss-tabset.ss-ui-action-tabset").entwine({"from .ui-tabs-nav li":{onhover:function(t){e(t.target).parent().find("li .active").removeClass("active"),e(t.target).find("a").addClass("active")}},ontabsbeforeactivate:function(t,n){this._super(t,n),e(n.newPanel).css({left:"auto",right:"auto"}),e(n.newPanel).length>0&&e(n.newPanel).parent().addClass("tabset-open")}})})},"./client/src/legacy/LeftAndMain.BatchActions.js":function(e,t,n){"use strict";(function(e){function t(e){return e&&e.__esModule?e:{default:e}}var r=n("jquery"),o=t(r),i=n("i18n"),a=t(i);o.default.entwine("ss.tree",function(t){t("#Form_BatchActionsForm").entwine({Actions:[],getTree:function(){return t(".cms-tree")},fromTree:{oncheck_node:function(e,t){this.serializeFromTree()},onuncheck_node:function(e,t){this.serializeFromTree()}},onmatch:function(){var e=this;e.getTree().on("load_node.jstree",function(t,n){e.refreshSelected()})},onunmatch:function(){this.getTree().off("load_node.jstree")},registerDefault:function(){this.register("publish",function(e){return!!confirm(a.default.inject(a.default._t("Admin.BATCH_PUBLISH_PROMPT","You have {num} page(s) selected.\n\nDo you really want to publish?"),{num:e.length}))&&e}),this.register("unpublish",function(e){return!!confirm(a.default.inject(a.default._t("Admin.BATCH_UNPUBLISH_PROMPT","You have {num} page(s) selected.\n\nDo you really want to unpublish"),{num:e.length}))&&e}),this.register("delete",function(e){return!!confirm(a.default.inject(a.default._t("Admin.BATCH_DELETE_PROMPT","You have {num} page(s) selected.\n\nAre you sure you want to delete these pages?\n\nThese pages and all of their children pages will be deleted and sent to the archive."),{num:e.length}))&&e}),this.register("restore",function(e){return!!confirm(a.default.inject(a.default._t("Admin.BATCH_RESTORE_PROMPT","You have {num} page(s) selected.\n\nDo you really want to restore to stage?\n\nChildren of archived pages will be restored to the root level, unless those pages are also being restored."),{num:e.length}))&&e})},onadd:function(){this.registerDefault(),this._super()},register:function(e,t){this.trigger("register",{type:e,callback:t});var n=this.getActions();n[e]=t,this.setActions(n)},unregister:function(e){this.trigger("unregister",{type:e});var t=this.getActions();t[e]&&delete t[e],this.setActions(t)},refreshSelected:function(n){var r=this,o=this.getTree(),i=this.getIDs(),a=[],s=t(".cms-content-batchactions-button"),l=this.find(":input[name=Action]").val();null==n&&(n=o);for(var c in i)t(t(o).getNodeByID(c)).addClass("selected").attr("selected","selected");if(!l||-1==l||!s.hasClass("active"))return void t(n).find("li").each(function(){t(this).setEnabled(!0)});t(n).find("li").each(function(){a.push(t(this).data("id")),t(this).addClass("treeloading").setEnabled(!1)});var u=t.path.parseUrl(l),d=u.hrefNoSearch+"/applicablepages/";d=t.path.addSearchParams(d,u.search),d=t.path.addSearchParams(d,{csvIDs:a.join(",")}),e.getJSON(d,function(o){e(n).find("li").each(function(){t(this).removeClass("treeloading");var e=t(this).data("id");0==e||t.inArray(e,o)>=0?t(this).setEnabled(!0):(t(this).removeClass("selected").setEnabled(!1),t(this).prop("selected",!1))}),r.serializeFromTree()})},serializeFromTree:function(){var e=this.getTree(),t=e.getSelectedIDs();return this.setIDs(t),!0},setIDs:function(e){this.find(":input[name=csvIDs]").val(e?e.join(","):null)},getIDs:function(){var e=this.find(":input[name=csvIDs]").val();return e?e.split(","):[]},onsubmit:function(n){var r=this,o=this.getIDs(),i=this.getTree(),s=this.getActions();if(!o||!o.length)return alert(a.default._t("Admin.SELECTONEPAGE","Please select at least one page")),n.preventDefault(),!1;var l=this.find(":input[name=Action]").val();if(!l)return n.preventDefault(),!1;var c=l.split("/").filter(function(e){return!!e}).pop();if(s[c]&&(o=s[c].apply(this,[o])),!o||!o.length)return n.preventDefault(),!1;this.setIDs(o),i.find("li").removeClass("failed");var u=this.find(":submit:first");return u.addClass("loading"),e.ajax({url:l,type:"POST",data:this.serializeArray(),complete:function(e,t){u.removeClass("loading"),i.jstree("refresh",-1),r.setIDs([]),r.find(":input[name=Action]").val("").change();var n=e.getResponseHeader("X-Status");n&&statusMessage(decodeURIComponent(n),"success"===t?"success":"error")},success:function(e,n){var r,o;if(e.modified){var a=[];for(r in e.modified)o=i.getNodeByID(r),i.jstree("set_text",o,e.modified[r].TreeTitle),a.push(o);t(a).effect("highlight")}if(e.deleted)for(r in e.deleted)o=i.getNodeByID(r),o.length&&i.jstree("delete_node",o);if(e.error)for(r in e.error)o=i.getNodeByID(r),t(o).addClass("failed")},dataType:"json"}),n.preventDefault(),!1}}),t(".cms-content-batchactions-button").entwine({onmatch:function(){this._super(),this.updateTree()},onunmatch:function(){this._super()},onclick:function(e){this.updateTree()},updateTree:function(){var e=t(".cms-tree"),n=t("#Form_BatchActionsForm");this._super(),this.data("active")?(e.addClass("multiple"),e.removeClass("draggable"),n.serializeFromTree()):(e.removeClass("multiple"),e.addClass("draggable")),t("#Form_BatchActionsForm").refreshSelected()}}),t("#Form_BatchActionsForm select[name=Action]").entwine({onchange:function(e){var n=t(e.target.form),r=(n.find(":submit"),t(e.target).val());if(r){var o=r.split("/"),i=o[o.length-1];t("#Form_BatchActionsForm").refreshSelected();var a=t("#BatchActionParameters_"+i);a.length?(a.find(":input").each(function(){var e=t(this)[0];"SELECT"===e.tagName?(e.selectedIndex=-1,t(this).trigger("chosen:updated")):"checkbox"===e.type?e.checked=e.defaultChecked:e.value=e.defaultValue}),a.siblings().hide(),a.show(),t("#BatchActionParameters").slideDown()):t("#BatchActionParameters").slideUp()}this.trigger("chosen:updated"),this._super(e)}})})}).call(t,n("jquery"))},"./client/src/legacy/LeftAndMain.Content.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".cms-content").entwine({onadd:function(){this.find(".cms-tabset").redrawTabs(),this._super()},redraw:function(){window.debug&&console.log("redraw",this.attr("class"),this.get(0)),this.add(this.find(".cms-tabset")).redrawTabs(),this.find(".cms-content-header").redraw(),this.find(".cms-content-actions").redraw()}}),e(".cms-content .cms-tree").entwine({onadd:function(){var t=this;this._super(),this.on("select_node.jstree",function(n,r){var o=r.rslt.obj,i=t.find(":input[name=ID]").val(),a=r.args[2],s=e(".cms-container");if(!a)return!1;if(e(o).hasClass("disabled"))return!1;if(e(o).data("id")!=i){var l=e(o).find("a:first").attr("href");l&&"#"!=l?(l=l.split("?")[0],t.jstree("deselect_all"),t.jstree("uncheck_all"),e.path.isExternal(e(o).find("a:first"))&&(l=l=e.path.makeUrlAbsolute(l,e("base").attr("href"))),document.location.search&&(l=e.path.addSearchParams(l,document.location.search.replace(/^\?/,""))),s.loadPanel(l)):t.removeForm()}})}}),e(".cms-content .cms-content-fields").entwine({redraw:function(){window.debug&&console.log("redraw",this.attr("class"),this.get(0))}}),e(".cms-content .cms-content-actions").entwine({redraw:function(){window.debug&&console.log("redraw",this.attr("class"),this.get(0)),this.height("auto");var e=parseInt(this.css("padding-top"),10),t=parseInt(this.css("padding-bottom"),10);this.height(this.innerHeight()-e-t)}})})},"./client/src/legacy/LeftAndMain.EditForm.js":function(e,t,n){"use strict";(function(e){function t(e){return e&&e.__esModule?e:{default:e}}var r=n("jquery"),o=t(r),i=n("i18n"),a=t(i),s=window.onbeforeunload;window.onbeforeunload=function(e){var t=(0,o.default)(".cms-edit-form");return t.trigger("beforesubmitform"),t.is(".changed")&&!t.is(".discardchanges")?a.default._t("Admin.CONFIRMUNSAVEDSHORT"):"function"==typeof s?s():void 0},o.default.entwine("ss",function(e){e(".cms-edit-form").entwine({PlaceholderHtml:"",ChangeTrackerOptions:{ignoreFieldSelector:".no-change-track, .ss-upload :input, .cms-navigator :input"},getValidationErrorShown:function(){return Boolean(this.data("_validationErrorShown"))},setValidationErrorShown:function(e){this.data("_validationErrorShown",e)},onadd:function(){this.attr("autocomplete","off"),this._setupChangeTracker();for(var e in{action:!0,method:!0,enctype:!0,name:!0}){var t=this.find(":input[name=_form_"+e+"]");t&&(this.attr(e,t.val()),t.remove())}this._super()},"from .cms-tabset":{onafterredrawtabs:function(){var t=ss.i18n._t("Admin.VALIDATION_ERRORS_IN_TAB","This tab contains validation errors."),n=ss.i18n._t("Admin.VALIDATION_ERRORS_IN_TAB_SCREEN_READER","(Has validation errors)"),r=ss.i18n._t("Admin.VALIDATION_ERRORS_ON_PAGE","There are validation errors on this page, please fix them before saving or publishing."),o=e("#Form_EditForm_error");this.find(".tab-attention, .tab-validation-error-sr").remove();var i=!1;if(this.hasClass("validationerror")&&(i=!0),""!==o.html()&&(i=!0),this.find(".alert.error").length>0&&(i=!0),!i)return void o.hide();var a=this.find(".tab-pane .alert-danger, .tab-pane .alert.error").closest(".tab-pane");if(a.length){var s=a.closest(".tab-content").closest(".ss-tabset");s.length&&(a.each(function(r){var o=a.eq(r).attr("id"),i=s.find("#tab-"+o).closest("li"),l=e('<i class="font-icon-attention-1 tab-attention" title="'+t+'" aria-hidden="true"></i>'),c=e('<span class="tab-validation-error-sr sr-only">'+n+"</span>");i.append(l),i.append(c)}),o.attr("class","alert alert-danger"),o.html(r),o.show()),this.addClass("validationerror")}}},onremove:function(){this.changetracker("destroy"),this._super()},onmatch:function(){this._super()},onunmatch:function(){this._super()},redraw:function(){if(window.debug&&console.log("redraw",this.attr("class"),this.get(0)),!this.getValidationErrorShown()&&this.hasClass("validationerror")){var e=ss.i18n._t("Admin.VALIDATIONERROR","Validation Error");l(e),this.setValidationErrorShown(!0)}this.add(this.find(".cms-tabset")).redrawTabs(),this.find(".cms-content-header").redraw()},_setupChangeTracker:function(){this.changetracker(this.getChangeTrackerOptions())},confirmUnsavedChanges:function(){if(this.trigger("beforesubmitform"),!this.is(".changed")||this.is(".discardchanges"))return!0;if(this.find(".btn-toolbar :submit.btn--loading.loading").length>0)return!0;var e=confirm(a.default._t("Admin.CONFIRMUNSAVED"));return e&&this.addClass("discardchanges"),e},onsubmit:function(e,t){if("_blank"!=this.prop("target"))return t&&this.closest(".cms-container").submitForm(this,t),!1},validate:function(){return this.trigger("validate",{isValid:!0}),!0},"from .htmleditor":{oneditorinit:function(t){var n=this,r=e(t.target).closest(".field.htmleditor");r.find("textarea.htmleditor").getEditor().getInstance().onClick.add(function(e){n.saveFieldFocus(r.attr("id"))})}},"from .cms-edit-form :input:not(:submit)":{onclick:function(t){this.saveFieldFocus(e(t.target).attr("id"))},onfocus:function(t){this.saveFieldFocus(e(t.target).attr("id"))}},"from .cms-edit-form .treedropdown *":{onfocusin:function(t){var n=e(t.target).closest(".field.treedropdown");this.saveFieldFocus(n.attr("id"))}},"from .cms-edit-form .dropdown .chosen-container a":{onfocusin:function(t){var n=e(t.target).closest(".field.dropdown");this.saveFieldFocus(n.attr("id"))}},"from .cms-container":{ontabstaterestored:function(e){this.restoreFieldFocus()}},saveFieldFocus:function(t){if(void 0!==window.sessionStorage&&null!==window.sessionStorage){var n=e(this).attr("id"),r=[];if(r.push({id:n,selected:t}),r)try{window.sessionStorage.setItem(n,JSON.stringify(r))}catch(e){if(e.code===DOMException.QUOTA_EXCEEDED_ERR&&0===window.sessionStorage.length)return;throw e}}},restoreFieldFocus:function(){if(void 0!==window.sessionStorage&&null!==window.sessionStorage){var t,n,r,o,i,a=this,s=void 0!==window.sessionStorage&&window.sessionStorage,l=s?window.sessionStorage.getItem(this.attr("id")):null,c=!!l&&JSON.parse(l),u=0!==this.find(".ss-tabset").length;if(s&&c.length>0){if(e.each(c,function(n,r){a.is("#"+r.id)&&(t=e("#"+r.selected))}),e(t).length<1)return void this.focusFirstInput();if(n=e(t).closest(".ss-tabset").find(".ui-tabs-nav .ui-tabs-active .ui-tabs-anchor").attr("id"),r="tab-"+e(t).closest(".ss-tabset .ui-tabs-panel").attr("id"),u&&r!==n)return;o=e(t).closest(".togglecomposite"),o.length>0&&o.accordion("option","active",o.find(".ui-accordion-header")),i=e(t).position().top,e(t).is(":visible")||(t="#"+e(t).closest(".field").attr("id"),i=e(t).position().top),e(t).focus(),i>e(window).height()/2&&a.find(".cms-content-fields").scrollTop(i)}else this.focusFirstInput()}},focusFirstInput:function(){this.find(':input:not(:submit)[data-skip-autofocus!="true"]').filter(":visible:first").focus()}}),e(".cms-edit-form .btn-toolbar input.action[type=submit], .cms-edit-form .btn-toolbar button.action").entwine({onclick:function(e){return this.is(":disabled")?(e.preventDefault(),!1):!1===this._super(e)||e.defaultPrevented||e.isDefaultPrevented()?void 0:(this.parents("form").trigger("submit",[this]),e.preventDefault(),!1)}}),e(".cms-edit-form .btn-toolbar input.action[type=submit].ss-ui-action-cancel, .cms-edit-form .btn-toolbar button.action.ss-ui-action-cancel").entwine({onclick:function(e){window.history.length>1?window.history.back():this.parents("form").trigger("submit",[this]),e.preventDefault()}}),e(".cms-edit-form .btn-toolbar button[name=action_doUnpublish].btn.action").entwine({onclick:function(e){var t=this.data("owners");if(t&&parseInt(t)>0){var n=[a.default.inject(a.default._t("Admin.OWNED_WARNING_1","You are unpublishing content that is being used in {count} other published section(s)."),{count:t}),a.default._t("Admin.OWNED_WARNING_2","This could cause a published page to have missing components on the live site."),a.default._t("Admin.OWNED_WARNING_3","Do you want to unpublish anyway?")];window.confirm(n.join("\n\n"))?this._super():e.preventDefault()}else this._super()}}),e(".cms-edit-form .ss-tabset").entwine({onmatch:function(){if(!this.hasClass("ss-ui-action-tabset")){var e=this.find("> ul:first");1==e.children("li").length&&e.hide().parent().addClass("ss-tabset-tabshidden")}this._super()},onunmatch:function(){this._super()}}),e('.cms-edit-form [name="CanViewType"], .cms-edit-form [name="CanEditType"], .cms-edit-form [name="CanCreateTopLevelType"]').entwine({onmatch:function(){"OnlyTheseUsers"===this.val()&&(this.is(":checked")?this.showList(!0):this.hideList(!0))},onchange:function(e){"OnlyTheseUsers"===e.target.value?this.showList():this.hideList()},showList:function(e){var t=this.closest(".field"),n=t.next().filter(".listbox, .treedropdown, .treemultiselect");t.addClass("field--merge-below"),e?n.show().css("overflow","visible"):n.slideDown(function(){n.css("overflow","visible")})},hideList:function(e){var t=this.closest(".field"),n=t.next().filter(".listbox, .treedropdown, .treemultiselect");n.css("overflow","hidden"),e?(n.hide().css("display","none"),t.removeClass("field--merge-below")):n.slideUp(function(){t.removeClass("field--merge-below")})}})});var l=function(t){e.noticeAdd({text:t,type:"error",stayTime:5e3,inEffect:{left:"0",opacity:"show"}})}}).call(t,n("jquery"))},"./client/src/legacy/LeftAndMain.FieldDescriptionToggle.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".cms-description-toggle").entwine({onadd:function(){var e=!1,t=this.prop("id").substr(0,this.prop("id").indexOf("_Holder")),n=this.find(".cms-description-trigger"),r=this.find(".description");this.hasClass("description-toggle-enabled")||(0===n.length&&(n=this.find(".middleColumn").first().after('<label class="right" for="'+t+'"><a class="cms-description-trigger" href="javascript:void(0)"><span class="btn-icon-information"></span></a></label>').next()),this.addClass("description-toggle-enabled"),n.on("click",function(){r[e?"hide":"show"](),e=!e}),r.hide())}})})},"./client/src/legacy/LeftAndMain.FieldHelp.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".cms .field.cms-description-tooltip").entwine({onmatch:function(){this._super();var e=this.find(".description");e.length&&(this.attr("title",e.text()).tooltip({content:e.html()}),e.remove())}}),e(".cms .field.cms-description-tooltip :input").entwine({onfocusin:function(e){this.closest(".field").tooltip("open")},onfocusout:function(e){this.closest(".field").tooltip("close")}})})},"./client/src/legacy/LeftAndMain.Menu.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".cms-panel.cms-menu").entwine({togglePanel:function(t,n,r){e(".cms-menu__list").children("li").each(function(){t?e(this).children("ul").each(function(){e(this).data("collapse")&&(e(this).removeData("collapse"),e(this).addClass("collapse"))}):e(this).children("ul").each(function(){e(this).hasClass("collapse"),e(this).removeClass("collapse"),e(this).data("collapse",!0)})}),this._super(t,n,r)},siteTreePresent:function(){return e("#cms-content-tools-CMSMain").length>0},getPersistedStickyState:function(){var t,n;return void 0!==e.cookie&&void 0!==(n=e.cookie("cms-menu-sticky"))&&null!==n&&(t="true"===n),t},setPersistedStickyState:function(t){void 0!==e.cookie&&e.cookie("cms-menu-sticky",t,{path:"/",expires:31})},getEvaluatedCollapsedState:function(){var t=this.getPersistedCollapsedState(),n=e(".cms-menu").getPersistedStickyState(),r=this.siteTreePresent();return void 0===t?r:t!==r&&n?t:r},onadd:function(){var t=this;setTimeout(function(){t.togglePanel(!t.getEvaluatedCollapsedState(),!1,!1)},0),e(window).on("ajaxComplete",function(e){setTimeout(function(){t.togglePanel(!t.getEvaluatedCollapsedState(),!1,!1)},0)}),this._super()}}),e(".cms-menu__list").entwine({onmatch:function(){this.find("li.current").select(),this.updateItems(),this._super()},onunmatch:function(){this._super()},updateMenuFromResponse:function(e){var t=e.getResponseHeader("X-Controller");if(t){var n=this.find("li#Menu-"+t.replace(/\\/g,"-").replace(/[^a-zA-Z0-9\-_:.]+/,""));n.hasClass("current")||n.select()}this.updateItems()},"from .cms-container":{onafterstatechange:function(e,t){this.updateMenuFromResponse(t.xhr)},onaftersubmitform:function(e,t){this.updateMenuFromResponse(t.xhr)}},"from .cms-edit-form":{onrelodeditform:function(e,t){this.updateMenuFromResponse(t.xmlhttp)}},getContainingPanel:function(){return this.closest(".cms-panel")},fromContainingPanel:{ontoggle:function(t){this.toggleClass("collapsed",e(t.target).hasClass("collapsed")),e(".cms-container").trigger("windowresize"),this.hasClass("collapsed")&&this.find("li.children.opened").removeClass("opened"),this.hasClass("collapsed")||e(".toggle-children.opened").closest("li").addClass("opened")}},updateItems:function(){var t=this.find("#Menu-CMSMain");t[t.is(".current")?"show":"hide"]();var n=e(".cms-content input[name=ID]").val();n&&this.find("li").each(function(){"function"==typeof e(this).setRecordID&&e(this).setRecordID(n)})}}),e(".cms-menu__list li").entwine({onmatch:function(){this.find("ul").length&&this.find("a:first").append('<span class="toggle-children"><span class="toggle-children-icon"></span></span>'),this._super()},onunmatch:function(){this._super()},toggle:function(){this[this.hasClass("opened")?"close":"open"]()},open:function(){var e=this.getMenuItem();e&&e.open(),this.find("li.clone")&&this.find("li.clone").remove(),this.addClass("opened").find("ul").show(),this.find(".toggle-children").addClass("opened")},close:function(){this.removeClass("opened").find("ul").hide(),this.find(".toggle-children").removeClass("opened")},select:function(){var e=this.getMenuItem();if(this.addClass("current").open(),this.siblings().removeClass("current").close(),this.siblings().find("li").removeClass("current"),e){var t=e.siblings();e.addClass("current"),t.removeClass("current").close(),t.find("li").removeClass("current").close()}this.getMenu().updateItems(),this.trigger("select")}}),e(".cms-menu__list *").entwine({getMenu:function(){return this.parents(".cms-menu__list:first")}}),e(".cms-menu__list li *").entwine({getMenuItem:function(){return this.parents("li:first")}}),e(".cms-menu__list li a").entwine({onclick:function(t){var n=e.path.isExternal(this.attr("href"));if(!(t.which>1||n)&&"_blank"!=this.attr("target")){t.preventDefault();var r=this.getMenuItem(),o=this.attr("href");n||(o=e("base").attr("href")+o);var i=r.find("li");i.length?i.first().find("a").click():document.location.href=o,r.select()}}}),e(".cms-menu__list li .toggle-children").entwine({onclick:function(e){return this.closest("li").toggle(),!1}}),e(".cms .profile-link").entwine({onclick:function(){return e(".cms-container").loadPanel(this.attr("href")),e(".cms-menu__list li").removeClass("current").close(),!1}}),e(".cms-menu .sticky-toggle__button").entwine({onadd:function(){var t=!!e(".cms-menu").getPersistedStickyState();this.toggleCSS(t),this.toggleIndicator(t),this._super()},toggleCSS:function(e){this[e?"addClass":"removeClass"]("active")},toggleIndicator:function(e){this.next(".sticky-toggle__status").text(e?"fixed":"auto")},onclick:function(){var e=this.closest(".cms-menu"),t=e.getPersistedCollapsedState(),n=e.getPersistedStickyState(),r=void 0===n?!this.hasClass("active"):!n;void 0===t?e.setPersistedCollapsedState(e.hasClass("collapsed")):void 0!==t&&!1===r&&e.clearPersistedCollapsedState(),e.setPersistedStickyState(r),this.toggleCSS(r),this.toggleIndicator(r),this._super()}}),e(".cms-help__menu").entwine({onclick:function(){var t="true"===this.attr("aria-expanded");this.attr("aria-expanded",!t),e(".cms-help__toggle").toggleClass("cms-help__toggle--show")}})})},"./client/src/legacy/LeftAndMain.MobileMenuToggle.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("jquery"),i=r(o),a=n("./client/src/components/MobileMenuToggle/MobileMenuToggleContainer.js"),s=r(a),l=n("./client/src/state/mobileMenu/MobileMenuActions.js"),c=n("react-dom"),u=r(c);i.default.entwine("ss",function(e){e(".js-react-boot").entwine({onmatch:function(){var t=e(".cms-mobile-menu-toggle-wrapper");t.length>0&&u.default.render(React.createElement(s.default,{store:window.ss.store,controls:"cms-menu"}),t[0]);var n=window.ss.store,r=e(".cms-menu"),o=e(".cms-menu-mobile-overlay");n.subscribe(function(){var e=n.getState(),t=e.mobileMenu.isOpen;r.toggleClass("cms-menu--open",t).attr("aria-expanded",t),o.attr("aria-expanded",t)})}}),e(".cms-menu-mobile-overlay").entwine({onclick:function(){window.ss.store.dispatch((0,l.closeMobileMenu)())}})})},"./client/src/legacy/LeftAndMain.Panel.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e.entwine.warningLevel=e.entwine.WARN_LEVEL_BESTPRACTISE,e(".cms-panel").entwine({WidthExpanded:null,WidthCollapsed:null,canSetCookie:function(){return void 0!==e.cookie&&void 0!==this.attr("id")},getPersistedCollapsedState:function(){var t,n;return this.canSetCookie()&&void 0!==(n=e.cookie("cms-panel-collapsed-"+this.attr("id")))&&null!==n&&(t="true"===n),t},setPersistedCollapsedState:function(t){this.canSetCookie()&&e.cookie("cms-panel-collapsed-"+this.attr("id"),t,{path:"/",expires:31})},clearPersistedCollapsedState:function(){this.canSetCookie()&&e.cookie("cms-panel-collapsed-"+this.attr("id"),"",{path:"/",expires:-1})},getInitialCollapsedState:function(){var e=this.getPersistedCollapsedState();return void 0===e&&(e=this.hasClass("collapsed")),e},onadd:function(){var t,n;if(!this.find(".cms-panel-content").length)throw new Exception('Content panel for ".cms-panel" not found');this.find(".cms-panel-toggle").length||(n=e("<div class='toolbar toolbar--south cms-panel-toggle'></div>").append('<a class="toggle-expand" href="#" data-toggle="tooltip" title="'+i18n._t("Admin.EXPANDPANEL","Expand Panel")+'"><span>&raquo;</span></a>').append('<a class="toggle-collapse" href="#" data-toggle="tooltip" title="'+i18n._t("Admin.COLLAPSEPANEL","Collapse Panel")+'"><span>&laquo;</span></a>'),this.append(n)),this.setWidthExpanded(this.find(".cms-panel-content").innerWidth()),t=this.find(".cms-panel-content-collapsed"),this.setWidthCollapsed(t.length?t.innerWidth():this.find(".toggle-expand").innerWidth()),this.togglePanel(!this.getInitialCollapsedState(),!0,!1),this._super()},togglePanel:function(e,t,n){var r,o;t||(this.trigger("beforetoggle.sspanel",e),this.trigger(e?"beforeexpand":"beforecollapse")),this.toggleClass("collapsed",!e),r=e?this.getWidthExpanded():this.getWidthCollapsed(),this.width(r),o=this.find(".cms-panel-content-collapsed"),o.length&&(this.find(".cms-panel-content")[e?"show":"hide"](),this.find(".cms-panel-content-collapsed")[e?"hide":"show"]()),!1!==n&&this.setPersistedCollapsedState(!e),this.trigger("toggle",e),this.trigger(e?"expand":"collapse")},expandPanel:function(e){(e||this.hasClass("collapsed"))&&this.togglePanel(!0)},collapsePanel:function(e){!e&&this.hasClass("collapsed")||this.togglePanel(!1)}}),e(".cms-panel.collapsed .cms-panel-toggle").entwine({onclick:function(e){this.expandPanel(),e.preventDefault()}}),e(".cms-panel *").entwine({getPanel:function(){return this.parents(".cms-panel:first")}}),e(".cms-panel .toggle-expand").entwine({onclick:function(e){e.preventDefault(),e.stopPropagation(),this.getPanel().expandPanel(),this._super(e)}}),e(".cms-panel .toggle-collapse").entwine({onclick:function(e){e.preventDefault(),e.stopPropagation(),this.getPanel().collapsePanel(),this._super(e)}}),e(".cms-content-tools.collapsed").entwine({onclick:function(e){this.expandPanel(),this._super(e)}})})},"./client/src/legacy/LeftAndMain.Preview.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("jquery"),i=r(o),a=n("i18n"),s=r(a);i.default.entwine("ss.preview",function(e){e(".cms-preview").entwine({AlreadyInitialised:!1,AllowedStates:["StageLink","LiveLink","Unversioned","ArchiveLink"],CurrentStateName:null,CurrentSizeName:"auto",IsPreviewEnabled:!1,DefaultMode:"split",Sizes:{auto:{width:"100%",height:"100%"},mobile:{width:"335px",height:"568px"},mobileLandscape:{width:"583px",height:"320px"},tablet:{width:"783px",height:"1024px"},tabletLandscape:{width:"1039px",height:"768px"},desktop:{width:"1024px",height:"800px"}},changeState:function(t,n){var r=this,o=this._getNavigatorStates();return!1!==n&&e.each(o,function(e,n){r.saveState("state",t)}),this.setCurrentStateName(t),this._loadCurrentState(),this.redraw(),this},changeMode:function(t,n){var r=e(".cms-container").entwine(".ss");if("split"==t)r.splitViewMode(),this.setIsPreviewEnabled(!0),this._loadCurrentState();else if("content"==t)r.contentViewMode(),this.setIsPreviewEnabled(!1);else{if("preview"!=t)throw"Invalid mode: "+t;r.previewMode(),this.setIsPreviewEnabled(!0),this._loadCurrentState()}return!1!==n&&this.saveState("mode",t),this.redraw(),this},changeSize:function(e){return this.getSizes(),this.setCurrentSizeName(e),this.removeClass("auto desktop tablet mobile").addClass(e),this.saveState("size",e),this.redraw(),this},redraw:function(){window.debug&&console.log("redraw",this.attr("class"),this.get(0));var t=this.getCurrentStateName();t&&this.find(".cms-preview-states").changeVisibleState(t);var n=e(".cms-container").entwine(".ss").getLayoutOptions();return n&&e(".preview-mode-selector").changeVisibleMode(n.mode),this.getCurrentSizeName()&&this.find(".preview-size-selector").changeVisibleSize(this.getCurrentSizeName()),this},saveState:function(e,t){this._supportsLocalStorage()&&window.localStorage.setItem("cms-preview-state-"+e,t)},loadState:function(e){if(this._supportsLocalStorage())return window.localStorage.getItem("cms-preview-state-"+e)},disablePreview:function(){return this.setPendingURL(null),this._loadUrl("about:blank"),this._block(),this.changeMode("content",!1),this.setIsPreviewEnabled(!1),this},enablePreview:function(){return this.getIsPreviewEnabled()||(this.setIsPreviewEnabled(!0),this.changeMode(this.getDefaultMode(),!1)),this},onadd:function(){var t=this,n=this.find("iframe");n.addClass("center"),n.on("load",function(){t._adjustIframeForPreview(),t._loadCurrentPage(),e(this).removeClass("loading")}),this._unblock(),this.disablePreview(),this._super()},_supportsLocalStorage:function(){var e,t,n=new Date;try{return(e=window.localStorage).setItem(n,n),t=e.getItem(n)==n,e.removeItem(n),t&&e}catch(e){console.warn("localStorge is not available due to current browser / system settings.")}},onforcecontent:function(){this.changeMode("content",!1)},onenable:function(){var t=e(".preview-mode-selector");t.removeClass("split-disabled"),t.find(".disabled-tooltip").hide()},ondisable:function(){var t=e(".preview-mode-selector");t.addClass("split-disabled"),t.find(".disabled-tooltip").show()},_block:function(){return this.find(".preview-note").show(),this},_unblock:function(){return this.find(".preview-note").hide(),this},_initialiseFromContent:function(){var t,n;if(e(".cms-previewable").length){t=this.loadState("mode"),n=this.loadState("size");var r=!0;this._moveNavigator(),t&&"content"==t||(this.enablePreview(),this._loadCurrentState()),this.redraw();var o=this.find("iframe").attr("src");this.getPendingURL()||o&&"about:blank"!==o||(t="content",r=!1),t&&this.changeMode(t,r),n&&this.changeSize(n)}else this.disablePreview();return this.setAlreadyInitialised(!0),this},"from .cms-container":{onafterstatechange:function(e,t){t.xhr.getResponseHeader("X-ControllerURL")||this._initialiseFromContent()}},PendingURL:null,oncolumnvisibilitychanged:function(){var e=this.getPendingURL();e&&!this.is(".column-hidden")&&(this.setPendingURL(null),this._loadUrl(e),this._unblock())},"from .cms-container .cms-edit-form":{onaftersubmitform:function(){this._initialiseFromContent()}},_loadUrl:function(e){return this.find("iframe").addClass("loading").attr("src",e),this},_getNavigatorStates:function(){return e.map(this.getAllowedStates(),function(t){var n=e(".cms-preview-states .state-name[data-name="+t+"]");return n.length?{name:t,url:n.attr("href"),active:n.hasClass("active")}:null})},_loadCurrentState:function(){if(!this.getIsPreviewEnabled())return this;var t=this._getNavigatorStates(),n=this.getCurrentStateName(),r=null;t&&(r=e.grep(t,function(e,t){return n===e.name||!n&&e.active}));var o=null;if(r[0]?o=r[0].url:t.length?(this.setCurrentStateName(t[0].name),o=t[0].url):this.setCurrentStateName(null),o){var i=o.split("#"),a=i.shift().split(/[?&]/),s=a.shift();a.push("CMSPreview=1"),i=i.length?"#"+i.join("#"):"",o=s+"?"+a.join("&")+i}return this.is(".column-hidden")?(this.setPendingURL(o),this._loadUrl("about:blank"),this._block()):(this.setPendingURL(null),o?(this._loadUrl(o),this._unblock()):(this._loadUrl("about:blank"),this._block())),this},_moveNavigator:function(){var t=e(".cms-preview .cms-preview-controls");e(".cms-edit-form .cms-navigator").length&&t.length?t.html(e(".cms-edit-form .cms-navigator").detach()):this._block()},_loadCurrentPage:function(){if(this.getIsPreviewEnabled()){var t;e(".cms-container");try{t=this.find("iframe")[0].contentDocument}catch(e){console.warn("Unable to access iframe, possible https mis-match")}if(t){var n=e(t).find("meta[name=x-page-id]").attr("content"),r=e(t).find("meta[name=x-cms-edit-link]").attr("content"),o=e(".cms-content");n&&o.find(":input[name=ID]").val()!=n&&e(".cms-container").entwine(".ss").loadPanel(r)}}},_adjustIframeForPreview:function(){var e,t=this.find("iframe")[0];if(t){try{e=t.contentDocument}catch(e){console.warn("Unable to access iframe, possible https mis-match")}if(e){for(var n=e.getElementsByTagName("A"),r=0;r<n.length;r++){var o=n[r].getAttribute("href");o&&o.match(/^http:\/\//)&&n[r].setAttribute("target","_blank")}var i=e.getElementById("SilverStripeNavigator");i&&(i.style.display="none");var a=e.getElementById("SilverStripeNavigatorMessage");a&&(a.style.display="none"),this.trigger("afterIframeAdjustedForPreview",[e])}}}}),e(".cms-edit-form").entwine({onadd:function(){this._super(),e(".cms-preview").setAlreadyInitialised(!1),e(".cms-preview")._initialiseFromContent()}}),e(".cms-preview-states").entwine({changeVisibleState:function(e){this.find('[data-name="'+e+'"]').addClass("active").siblings().removeClass("active")}}),e(".cms-preview-states .state-name").entwine({onclick:function(t){if(1==t.which){var n=e(this).attr("data-name");this.addClass("active").siblings().removeClass("active"),e(".cms-preview").changeState(n),t.preventDefault()}}}),e(".preview-mode-selector").entwine({changeVisibleMode:function(e){this.find("select").val(e).trigger("chosen:updated")._addIcon()}}),e(".preview-mode-selector select").entwine({onchange:function(t){this._super(t),t.preventDefault();var n=e(this).val();e(".cms-preview").changeMode(n)}}),e(".cms-container--content-mode").entwine({onmatch:function(){e(".cms-preview .result-selected").hasClass("font-icon-columns")&&statusMessage(s.default._t("Admin.DISABLESPLITVIEW","Screen too small to show site preview in split mode"),"error"),this._super()}}),e(".preview-size-selector").entwine({changeVisibleSize:function(e){this.find("select").val(e).trigger("chosen:updated")._addIcon()}}),e(".preview-size-selector select").entwine({onchange:function(t){t.preventDefault();var n=e(this).val();e(".cms-preview").changeSize(n)}}),e(".preview-selector select.preview-dropdown").entwine({"onchosen:ready":function(){this._super(),this._addIcon()},_addIcon:function(){var e=this.find(":selected"),t=e.attr("data-icon"),n=this.parent().find(".chosen-container a.chosen-single"),r=n.attr("data-icon");return void 0!==r&&n.removeClass(r),n.addClass(t),n.attr("data-icon",t),this}}),e(".preview-mode-selector .chosen-drop li:last-child").entwine({onmatch:function(){e(".preview-mode-selector").hasClass("split-disabled")?this.parent().append('<div class="disabled-tooltip"></div>'):this.parent().append('<div class="disabled-tooltip" style="display: none;"></div>')}}),e(".preview-device-outer").entwine({onclick:function(){this.parent(".preview__device").toggleClass("rotate")}})})},"./client/src/legacy/LeftAndMain.Tree.js":function(e,t,n){"use strict";function r(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),s=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(s).then(function(e){r("next",e)},function(e){r("throw",e)});e(s)}return r("next")})}}var o=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(o).default.entwine("ss.tree",function(e){e(".cms-tree").entwine({Hints:null,IsUpdatingTree:!1,CanMoveCheckCompleted:!1,IsLoaded:!1,onadd:function(){if(this._super(),!e.isNumeric(this.data("jstree_instance_id"))){var t=this.attr("data-hints");t&&this.setHints(e.parseJSON(t));var n=function t(n,o){var i=o.rslt.o,a=o.rslt.np,s=e(a).data("id")||0,l=e(i).data("id"),c=e.map(e(i).siblings().addBack(),function(t){return e(t).data("id")});if(!r.getIsUpdatingTree()){if(!r.getCanMoveCheckCompleted())return void r.canMove(o).then(function(i){i?(r.setCanMoveCheckCompleted(!0),t(n,o)):e.jstree.rollback(o.rlbk)});r.setCanMoveCheckCompleted(!1),e.ajax({url:e.path.addSearchParams(r.data("urlSavetreenode"),r.data("extraParams")),type:"POST",data:{ID:l,ParentID:s,SiblingIDs:c},success:function(){e(".cms-edit-form :input[name=ID]").val()==l&&e(".cms-edit-form :input[name=ParentID]").val(s),r.updateNodesFromServer([l])},statusCode:{403:function(){e.jstree.rollback(o.rlbk)}}})}},r=this;this.jstree(this.getTreeConfig()).on("loaded.jstree",function(t,n){r.setIsLoaded(!0),n.inst._set_settings({html_data:{ajax:{url:r.data("urlTree"),data:function(t){var n=r.data("searchparams")||[];return n=e.grep(n,function(e,t){return"ID"!=e.name&&"value"!=e.name}),n.push({name:"ID",value:e(t).data("id")?e(t).data("id"):0}),n.push({name:"ajax",value:1}),n}}}}),r.updateFromEditForm(),r.css("visibility","visible"),n.inst.hide_checkboxes()}).on("before.jstree",function(t,n){if("start_drag"==n.func&&(!r.hasClass("draggable")||r.hasClass("multiselect")))return t.stopImmediatePropagation(),!1;if(e.inArray(n.func,["check_node","uncheck_node"])){var o=e(n.args[0]).parents("li:first"),i=o.find("li:not(.disabled)");if(o.hasClass("disabled")&&0==i)return t.stopImmediatePropagation(),!1}}).on("move_node.jstree",n).on("select_node.jstree check_node.jstree uncheck_node.jstree",function(t,n){t.namespace="",e(document).triggerHandler(t,n)})}},onremove:function(){this.jstree("destroy"),this._super()},"from .cms-container":{onafterstatechange:function(e){this.updateFromEditForm()}},"from .cms-container form":{onaftersubmitform:function(t){var n=this,r=e(".cms-edit-form :input[name=ID]").val(),o=this.find("[data-id="+r+"]"),i=[+r];o.find("li").each(function(){i.push(e(this).data("id"))});for(var a=[];i.length;){var s=i.slice(0,50);a.push(s),i=i.slice(50)}a.map(function(e){return n.updateNodesFromServer(e,!1)}).reduce(function(e,t){return e.then(t)},Promise.resolve())}},canMove:function(){function e(e){return t.apply(this,arguments)}var t=r(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve(!0));case 1:case"end":return e.stop()}},e,this)}));return e}(),getTreeConfig:function(){var t=this;return{core:{initially_open:["record-0"],animation:0,html_titles:!0},html_data:{},ui:{select_limit:1,initially_select:[this.find(".current").attr("id")]},crrm:{move:{check_move:function(n){var r=e(n.o),o=e(n.np),i=n.ot.get_container()[0]==n.np[0],a=r.getClassname(),s=o.getClassname(),l=t.getHints(),c=[],u=s||"Root",d=l&&void 0!==l[u]?l[u]:null;return d&&r.attr("class").match(/VirtualPage-([^\s]*)/)&&(a=RegExp.$1),d&&(c=void 0!==d.disallowedChildren?d.disallowedChildren:[]),!(0===r.data("id")||r.hasClass("status-archived")||i&&"inside"!=n.p||o.hasClass("nochildren")||c.length&&-1!=e.inArray(a,c))}}},dnd:{drop_target:!1,drag_target:!1},checkbox:{two_state:!0},themes:{theme:"apple",url:e("body").data("frameworkpath")+"/admin/thirdparty/jstree/themes/apple/style.css"},plugins:["html_data","ui","dnd","crrm","themes","checkbox"]}},search:function(e,t){e?this.data("searchparams",e):this.removeData("searchparams"),this.jstree("refresh",-1,t)},getNodeByID:function(e){return this.find("*[data-id="+e+"]")},createNode:function(t,n,r){var o=this,i=void 0!==n.ParentID&&o.getNodeByID(n.ParentID),a=e(t),s={data:""};a.hasClass("jstree-open")?s.state="open":a.hasClass("jstree-closed")&&(s.state="closed"),this.jstree("create_node",i.length?i:-1,"last",s,function(e){for(var t=e.attr("class"),n=0;n<a[0].attributes.length;n++){var o=a[0].attributes[n];e.attr(o.name,o.value)}e.addClass(t).html(a.html()),r&&r(e)})},updateNode:function(t,n,r){n=n.replace(/<!--[\s\S]*?-->/g,"");var o=e(n),i=!!r.NextID&&this.getNodeByID(r.NextID),a=!!r.PrevID&&this.getNodeByID(r.PrevID),s=!!r.ParentID&&this.getNodeByID(r.ParentID),l=this.jstree("is_open",s);e.each(["id","style","class","data-pagetype"],function(e,n){t.attr(n,o.attr(n))});var c=t.children("ul").detach();t.html(o.html()).append(c),i&&i.length?this.jstree("move_node",t,i,"before"):a&&a.length?this.jstree("move_node",t,a,"after"):this.jstree("move_node",t,s.length?s:-1),l?this.jstree("open_node",s):this.jstree("close_node",s)},updateFromEditForm:function(){var t,n=e(".cms-edit-form :input[name=ID]").val();n?(t=this.getNodeByID(n),t.length?(this.jstree("deselect_all"),this.jstree("select_node",t)):this.updateNodesFromServer([n])):this.jstree("deselect_all")},updateNodesFromServer:function(t){var n=this,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.getIsLoaded()&&(!r||!this.getIsUpdatingTree())){var o=this;this.setIsUpdatingTree(!0),o.jstree("save_selected"),o.jstree("open_node",this.getNodeByID(0)),o.jstree("save_opened"),o.jstree("save_selected");var i=o.jstree("get_selected");return new Promise(function(r){e.ajax({url:e.path.addSearchParams(n.data("urlUpdatetreenodes"),"ids="+t.join(",")),dataType:"json",success:function(n,a){r(n),e.each(n,function(e,n){var r=o.getNodeByID(e);if(!n)return void o.jstree("delete_node",r);r.length?o.updateNode(r,n.html,n):n.ParentID&&!o.find("li[data-id="+n.ParentID+"]").length?o.jstree("load_node",-1):o.createNode(n.html,n,function(e){i.length||1!==t.length||(i=e)})}),i.length&&(o.jstree("deselect_all"),o.jstree("reopen"),o.jstree("select_node",i))},complete:function(){o.setIsUpdatingTree(!1)}})})}}}),e(".cms-tree.multiple").entwine({onmatch:function(){this._super(),this.jstree("show_checkboxes")},onunmatch:function(){this._super(),this.jstree("uncheck_all"),this.jstree("hide_checkboxes")},getSelectedIDs:function(){return e(this).jstree("get_checked").not(".disabled").map(function(){return e(this).data("id")}).get()}}),e(".cms-tree li").entwine({setEnabled:function(e){this.toggleClass("disabled",!e)},getClassname:function(){var e=this.attr("class").match(/class-([^\s]*)/i);return e?e[1]:""},getID:function(){return this.data("id")}})})},"./client/src/legacy/LeftAndMain.TreeDropdownField.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".TreeDropdownField").entwine({"from .cms-container form":{onaftersubmitform:function(e){this.find(".tree-holder").empty(),this._super()}}})})},"./client/src/legacy/LeftAndMain.js":function(module,exports,__webpack_require__){"use strict";(function(jQuery){function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_slicedToArray=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_jquery=__webpack_require__("jquery"),_jquery2=_interopRequireDefault(_jquery),_react=__webpack_require__("react"),_react2=_interopRequireDefault(_react),_reactDom=__webpack_require__("react-dom"),_reactDom2=_interopRequireDefault(_reactDom),_IframeDialog=__webpack_require__("./client/src/components/IframeDialog/IframeDialog.js"),_IframeDialog2=_interopRequireDefault(_IframeDialog),_Search=__webpack_require__("components/Search/Search"),_Search2=_interopRequireDefault(_Search),_Loading=__webpack_require__("components/Loading/Loading"),_Loading2=_interopRequireDefault(_Loading),_schemaFieldValues=__webpack_require__("lib/schemaFieldValues"),_Injector=__webpack_require__("lib/Injector");__webpack_require__("./client/src/legacy/ssui.core.js"),_jquery2.default.noConflict(),window.ss=window.ss||{},window.ss.debounce=function(e,t,n){var r,o,i,a=function(){r=null,n||e.apply(o,i)};return function(){var s=n&&!r;o=this,i=arguments,clearTimeout(r),r=setTimeout(a,t),s&&e.apply(o,i)}},window.ss.tabStateUrl=function(){return window.ss.formatTabStateUrl(window.location.href)},window.ss.formatTabStateUrl=function(e){return e.replace(/\?.*/,"").replace(/#.*/,"").replace((0,_jquery2.default)("base").attr("href"),"")},(0,_jquery2.default)(window).on("resize.leftandmain",function(e){(0,_jquery2.default)(".cms-container").trigger("windowresize")}),_jquery2.default.entwine.warningLevel=_jquery2.default.entwine.WARN_LEVEL_BESTPRACTISE,_jquery2.default.entwine("ss",function($){$(window).on("message",function(e){var t,n=e.originalEvent,r=null;try{r="object"===_typeof(n.data)?n.data:JSON.parse(n.data)}catch(e){}if(r&&$.path.parseUrl(window.location.href).domain===$.path.parseUrl(n.origin).domain)switch(t=$(void 0===r.target?window:r.target),r.type){case"event":t.trigger(r.event,r.data);break;case"callback":t[r.callback].call(t,r.data)}});var positionLoadingSpinner=function(){var e=$(".ss-loading-screen .loading-animation"),t=($(window).height()-e.height())/2;e.css("top",t+120),e.show()},applyChosen=function e(t){t.is(":visible")?t.addClass("has-chosen").chosen({allow_single_deselect:!0,disable_search_threshold:20,display_disabled_options:!0,width:"100%"}):setTimeout(function(){t.show(),e(t)},500)},isSameUrl=function(e,t){var n=$("base").attr("href");e=$.path.isAbsoluteUrl(e)?e:$.path.makeUrlAbsolute(e,n),t=$.path.isAbsoluteUrl(t)?t:$.path.makeUrlAbsolute(t,n);var r=$.path.parseUrl(e),o=$.path.parseUrl(t);return r.pathname.replace(/\/*$/,"")==o.pathname.replace(/\/*$/,"")&&r.search==o.search},ajaxCompleteEvent=window.ss.debounce(function(){$(window).trigger("ajaxComplete")},1e3,!0);$(window).on("resize",positionLoadingSpinner).trigger("resize"),$(document).ajaxComplete(function(e,t,n){var r=document.URL,o=t.getResponseHeader("X-ControllerURL"),i=n.url,a=null!==t.getResponseHeader("X-Status")?t.getResponseHeader("X-Status"):t.statusText,s=t.status<200||t.status>399?"error":"success",l=["OK","success","load","HTTP/2.0 200"];if(null===o||isSameUrl(r,o)&&isSameUrl(i,o)||window.ss.router.show(o,{id:(new Date).getTime()+String(Math.random()).replace(/\D/g,""),pjax:t.getResponseHeader("X-Pjax")?t.getResponseHeader("X-Pjax"):n.headers["X-Pjax"]}),t.getResponseHeader("X-Reauthenticate"))return void $(".cms-container").showLoginDialog();0!==t.status&&a&&-1===$.inArray(a,l)&&statusMessage(decodeURIComponent(a),s),ajaxCompleteEvent(this)}),$(".cms-container").entwine({StateChangeXHR:null,FragmentXHR:{},StateChangeCount:0,LayoutOptions:{minContentWidth:940,minPreviewWidth:400,mode:"content"},onadd:function(){this.redraw(),$(".ss-loading-screen").hide(),$("body").removeClass("loading"),$(window).off("resize",positionLoadingSpinner),this.restoreTabState(),this._super()},onwindowresize:function(){this.redraw()},"from .cms-panel":{ontoggle:function(){this.redraw()}},"from .cms-container":{onaftersubmitform:function(){this.redraw()}},updateLayoutOptions:function(e){var t=this.getLayoutOptions(),n=!1;for(var r in e)t[r]!==e[r]&&(t[r]=e[r],n=!0);n&&this.redraw()},clearViewMode:function(){this.removeClass("cms-container--split-mode"),this.removeClass("cms-container--preview-mode"),this.removeClass("cms-container--content-mode")},splitViewMode:function(){this.updateLayoutOptions({mode:"split"})},contentViewMode:function(){this.updateLayoutOptions({mode:"content"})},previewMode:function(){this.updateLayoutOptions({mode:"preview"})},RedrawSuppression:!1,redraw:function(){this.getRedrawSuppression()||(window.debug&&console.log("redraw",this.attr("class"),this.get(0)),this.setProperMode()||(this.find(".cms-panel-layout").redraw(),this.find(".cms-content-fields[data-layout-type]").redraw(),this.find(".cms-edit-form[data-layout-type]").redraw(),this.find(".cms-preview").redraw(),this.find(".cms-content").redraw()))},setProperMode:function(){var e=this.getLayoutOptions(),t=e.mode;this.clearViewMode();var n=this.find(".cms-content"),r=this.find(".cms-preview");if(n.css({"min-width":0}),r.css({"min-width":0}),n.width()+r.width()>=e.minContentWidth+e.minPreviewWidth)n.css({"min-width":e.minContentWidth}),r.css({"min-width":e.minPreviewWidth}),r.trigger("enable");else if(r.trigger("disable"),"split"==t)return r.trigger("forcecontent"),!0;return this.addClass("cms-container--"+t+"-mode"),!1},checkCanNavigate:function(e){var t=this._findFragments(e||["Content"]),n=t.find(":data(changetracker)").add(t.filter(":data(changetracker)")),r=!0;return!n.length||(n.each(function(){$(this).confirmUnsavedChanges()||(r=!1)}),r)},loadPanel:function(e){var t=(arguments.length>1&&void 0!==arguments[1]&&arguments[1],arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),n=arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:document.URL;this.checkCanNavigate(t.pjax?t.pjax.split(","):["Content"])&&(this.clearTabState(window.ss.tabStateUrl()),this.saveTabState(window.ss.formatTabStateUrl(e),!0),t.__forceReferer=r,n&&(t.__forceReload=1+Math.random()),window.ss.router.show(e,t))},reloadCurrentPanel:function(){this.loadPanel(document.URL,null,null,!0)},submitForm:function(e,t,n,r){var o=this;t||(t=this.find(".btn-toolbar :submit[name=action_save]")),t||(t=this.find(".btn-toolbar :submit:first")),e.trigger("beforesubmitform"),this.trigger("submitform",{form:e,button:t}),$(t).addClass("btn--loading loading"),$(t).prop("disabled",!0),$(t).is("button")&&($(t).data("original-text",$(t).text()),$(t).append($('<div class="btn__loading-icon"><span class="btn__circle btn__circle--1"></span><span class="btn__circle btn__circle--2"></span><span class="btn__circle btn__circle--3"></span></div>')),$(t).css($(t).outerWidth()+"px"));var i=e.validate(),a=function(){$(t).removeClass("btn--loading loading"),$(t).prop("disabled",!1),$(t).find(".btn__loading-icon").remove(),$(t).css("width","auto"),$(t).text($(t).data("original-text"))};void 0===i||i||(statusMessage("Validation failed.","bad"),a());var s=e.serializeArray();return s.push({name:$(t).attr("name"),value:"1"}),s.push({name:"BackURL",value:document.URL.replace(/\/$/,"")}),this.saveTabState(window.ss.tabStateUrl(),!1),jQuery.ajax(jQuery.extend({headers:{"X-Pjax":"CurrentForm,Breadcrumbs,ValidationResult"},url:e.attr("action"),data:s,type:"POST",complete:function(){a()},success:function(t,r,i){a(),e.removeClass("changed"),n&&n(t,r,i);var l=o.handleAjaxResponse(t,r,i);l&&l.filter("form").trigger("aftersubmitform",{status:r,xhr:i,formData:s})}},r)),!1},LastState:null,PauseState:!1,handleStateChange:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.history.state;if(!this.getPauseState()){this.getStateChangeXHR()&&this.getStateChangeXHR().abort();var r=this,o=n.pjax||"Content",i={},a=o.split(","),s=this._findFragments(a);if(this.setStateChangeCount(this.getStateChangeCount()+1),!this.checkCanNavigate())return void this.reverseStateChange();if(s.length<a.length&&(o="Content",a=["Content"],s=this._findFragments(a)),this.trigger("beforestatechange",{state:n,element:s}),i["X-Pjax"]=o,void 0!==n.__forceReferer){var l=n.__forceReferer;try{l=decodeURI(l)}catch(e){}finally{i["X-Backurl"]=encodeURI(l)}}s.addClass("loading");var c=$.ajax({headers:i,url:n.path||document.URL}).fail(function(e,n,r){0!==e.readyState&&"1"!==e.getResponseHeader("X-Reauthenticate")&&t.reverseStateChange()}).done(function(e,o,i){t.setLastState(n);var a=r.handleAjaxResponse(e,o,i,n);r.trigger("afterstatechange",{data:e,status:o,xhr:i,element:a,state:n})}).always(function(){r.setStateChangeXHR(null),s.removeClass("loading")});return this.setStateChangeXHR(c),c}},reverseStateChange:function(){var e=this,t=this.getLastState();this.setPauseState(!0),this.setStateChangeCount(this.getStateChangeCount()-1),t&&t.path?(window.ss.router.show(t.path),this.setPauseState(!1)):(window.ss.router.back(),setTimeout(function(){e.setPauseState(!1)}))},loadFragment:function(e,t){var n,r=this,o={},i=$("base").attr("href"),a=this.getFragmentXHR();return void 0!==a[t]&&null!==a[t]&&(a[t].abort(),a[t]=null),e=$.path.isAbsoluteUrl(e)?e:$.path.makeUrlAbsolute(e,i),o["X-Pjax"]=t,n=$.ajax({headers:o,url:e,success:function(e,t,n){var o=r.handleAjaxResponse(e,t,n,null);r.trigger("afterloadfragment",{data:e,status:t,xhr:n,elements:o})},error:function(e,t,n){r.trigger("loadfragmenterror",{xhr:e,status:t,error:n})},complete:function(){var e=r.getFragmentXHR();void 0!==e[t]&&null!==e[t]&&(e[t]=null)}}),a[t]=n,n},handleAjaxResponse:function(e,t,n,r){var o=void 0,i=void 0;if(n.getResponseHeader("X-Reload")&&n.getResponseHeader("X-ControllerURL")){var a=$("base").attr("href"),s=n.getResponseHeader("X-ControllerURL"),l=$.path.isAbsoluteUrl(s)?s:$.path.makeUrlAbsolute(s,a);return void(document.location.href=l)}if(e){var c=n.getResponseHeader("X-Title");c&&(document.title=decodeURIComponent(c.replace(/\+/g," ")));var u={},d=void 0;n.getResponseHeader("Content-Type").match(/^((text)|(application))\/json[ \t]*;?/i)?u=e:(i=$($.parseHTML(e,document,!1)),o="Content",i.is("form")&&!i.is("[data-pjax-fragment~=Content]")&&(o="CurrentForm"),u[o]=i),this.setRedrawSuppression(!0);try{$.each(u,function(e,t){var n=$("[data-pjax-fragment]").filter(function(){return-1!=$.inArray(e,$(this).data("pjaxFragment").split(" "))}),r=$(t);if(d?d.add(r):d=r,r.find(".cms-container").length)throw'Content loaded via ajax is not allowed to contain tags matching the ".cms-container" selector to avoid infinite loops';var o=n.attr("style"),i=(n.parent(),["east","west","center","north","south","column-hidden"]),a=n.attr("class"),s=[];a&&(s=$.grep(a.split(" "),function(e){return $.inArray(e,i)>=0})),r.removeClass(i.join(" ")).addClass(s.join(" ")),o&&r.attr("style",o);var l=r.find("style").detach();l.length&&$(document).find("head").append(l),n.replaceWith(r)});var f=d.filter("form");f.hasClass("cms-tabset")&&f.removeClass("cms-tabset").addClass("cms-tabset")}finally{this.setRedrawSuppression(!1)}return this.redraw(),this.restoreTabState(r&&void 0!==r.tabState?r.tabState:null),d}},_findFragments:function(e){return $("[data-pjax-fragment]").filter(function(){var t,n=$(this).data("pjaxFragment").split(" ");for(t in e)if(-1!=$.inArray(e[t],n))return!0;return!1})},refresh:function(){$(window).trigger("statechange"),$(this).redraw()},saveTabState:function(e,t){if(void 0!==window.sessionStorage&&null!==window.sessionStorage){void 0===e&&window.ss.tabStateUrl();var n=[];if(this.find(".cms-tabset,.ss-tabset").each(function(e,r){var o=$(r).attr("id");o&&$(r).data("uiTabs")&&($(r).data("ignoreTabState")||$(r).getIgnoreTabState()||n.push({id:o,selected:t?0:$(r).tabs("option","active")}))}),n){var r="tabs-"+e;try{window.sessionStorage.setItem(r,JSON.stringify(n))}catch(e){if(e.code===DOMException.QUOTA_EXCEEDED_ERR&&0===window.sessionStorage.length)return;throw e}}}},restoreTabState:function(e){var t=this.find(".cms-tabset, .ss-tabset");t.length?t.each(function(){var t=$(this),n=t.attr("id"),r=e&&e[n]?e[n]:null;t.restoreState(r)}):$("#Form_AddForm_action_doAdd").focus()},clearTabState:function(e){if(void 0!==window.sessionStorage){var t=window.sessionStorage;if(e)t.removeItem("tabs-"+e);else for(var n=0;n<t.length;n++)t.key(n).match(/^tabs-/)&&t.removeItem(t.key(n))}},clearCurrentTabState:function(){this.clearTabState(window.ss.tabStateUrl())},showLoginDialog:function(){var e=$(".leftandmain__login-dialog");e.length&&e.destroy(),e=$('<div class="leftandmain__login-dialog" />'),$("body").append(e),e.open()}}),$(".leftandmain__login-dialog").entwine({destroy:function(){this.close(),this.remove()},close:function(){this.renderModal(!1)},open:function(){this.renderModal(!0)},renderModal:function(e){var t=$("body").data("member-tempid"),n=$.path.addSearchParams("CMSSecurity/login",{tempid:t,BackURL:window.location.href});_reactDom2.default.render(_react2.default.createElement(_IframeDialog2.default,{title:i18n._t("Admin.CMS_LOGIN_TITLE","Login"),className:"login-dialog",bodyClassName:"login-dialog__body",iframeId:"login-dialog-iframe",iframeClassName:"login-dialog__body__iframe",isOpen:e,url:n}),this[0])},reauthenticate:function(e){void 0!==e.SecurityID&&$(":input[name=SecurityID]").val(e.SecurityID),void 0!==e.TempID&&$("body").data("member-tempid",e.TempID),this.close()}}),$("form.loading,.cms-content.loading,.cms-content-fields.loading,.cms-content-view.loading,.ss-gridfield-item.loading").entwine({onmatch:function(){this._super();var e=$('<div class="cms-loading-container"/>');this.append(e),_reactDom2.default.render(_react2.default.createElement(_Loading2.default,null),e[0])},onunmatch:function(){this._super();var e=this.find(".cms-loading-container");e&&e.length&&(_reactDom2.default.unmountComponentAtNode(e[0]),e.remove())}}),$(".cms .cms-panel-link").entwine({onclick:function(e){if($(this).hasClass("external-link"))return void e.stopPropagation();var t=this.attr("href"),n=t&&!t.match(/^#/)?t:this.data("href"),r={pjax:this.data("pjaxTarget")};$(".cms-container").loadPanel(n,null,r),e.preventDefault()}}),$(".cms button.action.discard-confirmation").entwine({onclick:function(e){$(".cms-container").checkCanNavigate()||e.preventDefault()}}),$(".cms .ss-ui-button-ajax").entwine({onclick:function onclick(e){$(this).removeClass("ui-button-text-only"),$(this).addClass("ss-ui-button-loading ui-button-text-icons");var loading=$(this).find(".ss-ui-loading-icon");loading.length<1&&(loading=$("<span></span>").addClass("ss-ui-loading-icon ui-button-icon-primary ui-icon"),$(this).prepend(loading)),loading.show();var href=this.attr("href"),url=href||this.data("href");jQuery.ajax({url:url,complete:function complete(xmlhttp,status){var msg=xmlhttp.getResponseHeader("X-Status")?xmlhttp.getResponseHeader("X-Status"):xmlhttp.responseText;try{void 0!==msg&&null!==msg&&eval(msg)}catch(e){}loading.hide(),$(".cms-container").refresh(),$(this).removeClass("ss-ui-button-loading ui-button-text-icons"),$(this).addClass("ui-button-text-only")},dataType:"html"}),e.preventDefault()}}),$(".cms .ss-ui-dialog-link").entwine({UUID:null,onmatch:function(){this._super(),this.setUUID((new Date).getTime())},onunmatch:function(){this._super()},onclick:function(){this._super();var e="ss-ui-dialog-"+this.getUUID(),t=$("#"+e);t.length||(t=$('<div class="ss-ui-dialog" id="'+e+'" />'),$("body").append(t));var n=this.data("popupclass")?this.data("popupclass"):"";return t.ssdialog({iframeUrl:this.attr("href"),autoOpen:!0,dialogExtraClass:n}),!1}}),$(".cms .field.date input.text").entwine({onmatch:function(){var e=$(this).parents(".field.date:first"),t=e.data();if(!t.showcalendar)return void this._super();t.showOn="button",t.locale&&$.datepicker.regional[t.locale]&&(t=$.extend(t,$.datepicker.regional[t.locale],{})),this.prop("disabled")||this.prop("readonly")||$(this).datepicker(t),this._super()},onunmatch:function(){this._super()}}),$(".cms .field.dropdown select, .cms .field select[multiple], .form__fieldgroup-item select.dropdown").entwine({onmatch:function(){if(this.is(".no-chosen"))return void this._super();this.data("placeholder")||this.data("placeholder"," "),this.removeClass("has-chosen").chosen("destroy"),this.siblings(".chosen-container").remove(),applyChosen(this),this._super()},onunmatch:function(){this._super()}}),$(".cms-panel-layout").entwine({redraw:function(){window.debug&&console.log("redraw",this.attr("class"),this.get(0))}}),$(".cms .grid-field:not([cms-loading-ignore-url-params])").entwine({showDetailView:function(e){$(".cms-container").loadPanel(e)}}),$(".cms-search-form button[type=reset], .cms-search-form input[type=reset]").entwine({onclick:function(e){e.preventDefault();var t=$(this).parents("form");t.clearForm(),t.find(".dropdown select").prop("selectedIndex",0).trigger("chosen:updated"),t.submit()}}),window._panelDeferredCache={},$(".cms-panel-deferred").entwine({onadd:function(){this._super(),this.redraw()},onremove:function(){window.debug&&console.log("saving",this.data("url"),this),this.data("deferredNoCache")||(window._panelDeferredCache[this.data("url")]=this.html()),this._super()},redraw:function(){window.debug&&console.log("redraw",this.attr("class"),this.get(0));var e=this,t=this.data("url");if(!t)throw'Elements of class .cms-panel-deferred need a "data-url" attribute';this._super(),this.data("deferredNoCache")||void 0===window._panelDeferredCache[t]?(this.addClass("loading"),$.ajax({url:t,complete:function(){e.removeClass("loading")},success:function(t,n,r){e.html(t)}})):this.html(window._panelDeferredCache[t])}}),$(".cms-tabset").entwine({onadd:function(){this.redrawTabs(),this._super()},onremove:function(){this.data("uiTabs")&&this.tabs("destroy"),this._super()},redrawTabs:function(){this.rewriteHashlinks();var e=(this.attr("id"),this.find("ul:first .ui-tabs-active"));this.data("uiTabs")||this.tabs({active:-1!=e.index()?e.index():0,beforeLoad:function(e,t){return!1},beforeActivate:function(e,t){var n=t.oldTab.find(".cms-panel-link");if(n&&1===n.length)return!1},activate:function(e,t){var n=$(this).closest("form").find(".btn-toolbar");$(t.newTab).closest("li").hasClass("readonly")?n.fadeOut():n.show()}}),this.trigger("afterredrawtabs")},rewriteHashlinks:function(){$(this).find("ul a").each(function(){if($(this).attr("href")){var e=$(this).attr("href").match(/#.*/);e&&$(this).attr("href",document.location.href.replace(/#.*/,"")+e[0])}})}}),$("#filters-button").entwine({onmatch:function(){this._super(),this.data("collapsed",!0),this.data("animating",!1)},onunmatch:function(){this._super()},showHide:function(){var e=this,t=$(".cms-content-filters").first(),n=this.data("collapsed");n?(this.addClass("active"),t.removeClass("cms-content-filters--hidden")):(this.removeClass("active"),t.addClass("cms-content-filters--hidden")),e.data("collapsed",!n)},onclick:function(){this.showHide()}}),$(".js-injector-boot .search-holder").entwine({Component:null,onmatch:function(){this._super();var e=this.closest(".cms-content").attr("id"),t=e?{context:e}:{},n=(0,_Injector.loadComponent)("Search",t);this.setComponent(n),this.refresh(),this.data("schema")},onunmatch:function(){this._super();var e=this[0];e&&_reactDom2.default.unmountComponentAtNode(e)},onfocusin:function(){this.css("z-index","100")},onfocusout:function(){this.css("z-index","")},close:function(){if($("#filters-button").showHide(),this.data("schema").filters){var e=$(".cms-search-form").attr("action");this.closest(".cms-container").loadPanel(e,"",{},!0)}},search:function(e){this._super();var t=$(".cms-search-form").attr("action");if(t&&e){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=Object.entries(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value,c=_slicedToArray(l,2),u=c[0],d=c[1];d&&(n["q["+u+"]"]=d)}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}0===Object.keys(n).length&&(n["q["+this.data("schema").name+"]"]=""),t=$.path.addSearchParams(t,n),$(".cms-panel-deferred.cms-content-view").data("deferredNoCache",!0),this.closest(".cms-container").loadPanel(t,"",{},!0)}},refresh:function(){var e=this,t=this.data("schema"),n=this.getComponent(),r=function(){return e.close()},o=function(t){return e.search(t)},i="cms-content-tools-CMSMain"===this.closest(".cms-content-tools").attr("id");_reactDom2.default.render(_react2.default.createElement(n,_extends({id:"Search",identifier:"Search",display:"VISIBLE",displayBehavior:"HIDEABLE",filterPrefix:"Search__",onHide:r,onSearch:o,borders:{left:!i}},t)),this[0])}})});var statusMessage=function(e,t){e=jQuery("<div/>").text(e).html(),jQuery.noticeAdd({text:e,type:t,stayTime:5e3,inEffect:{left:"0",opacity:"show"}})}}).call(exports,__webpack_require__("jquery"))},"./client/src/legacy/ModelAdmin.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);n("./client/src/legacy/LeftAndMain.js"),o.default.entwine("ss",function(e){e(".cms-content-tools #Form_SearchForm").entwine({onsubmit:function(e){this.trigger("beforeSubmit")}}),e(".importSpec").entwine({onmatch:function(){this.find("div.details").hide(),this.find("a.detailsLink").click(function(){return e("#"+e(this).attr("href").replace(/.*#/,"")).slideToggle(),!1}),this._super()},onunmatch:function(){this._super()}}),e(".cms .btn.clear-search").entwine({onclick:function(e){e.preventDefault(),this.parents(".cms-container").loadPanel(this.attr("href"),"",{},!0,!1)}})})},"./client/src/legacy/PermissionCheckboxSetField.js":function(e,t,n){"use strict";var r=n("jquery");(function(e){return e&&e.__esModule?e:{default:e}})(r).default.entwine("ss",function(e){e(".permissioncheckboxset .valADMIN input").entwine({onmatch:function(){this._super()},onunmatch:function(){this._super()},onclick:function(e){this.toggleCheckboxes()},toggleCheckboxes:function(){var t=e(this).parents(".field:eq(0)").find(".checkbox").not(this);e(this).is(":checked")?t.each(function(){e(this).data("SecurityAdmin.oldChecked",e(this).attr("checked")),e(this).data("SecurityAdmin.oldDisabled",e(this).attr("disabled")),e(this).attr("disabled","disabled"),e(this).attr("checked","checked")}):t.each(function(){var t=e(this).data("SecurityAdmin.oldChecked"),n=e(this).data("SecurityAdmin.oldDisabled");null!==t&&e(this).attr("checked",t),null!==n&&e(this).attr("disabled",n)})}}),e(".permissioncheckboxset .valCMS_ACCESS_LeftAndMain input").entwine({getCheckboxesExceptThisOne:function(){return e(this).parents(".field:eq(0)").find("li").filter(function(t){var n=e(this).attr("class");return!!n&&n.match(/CMS_ACCESS_/)}).find(".checkbox").not(this)},onadd:function(){this.toggleCheckboxes(),this._super()},onclick:function(e){this.toggleCheckboxes()},toggleCheckboxes:function(){var t=this.getCheckboxesExceptThisOne();e(this).is(":checked")?t.each(function(){e(this).data("PermissionCheckboxSetField.oldChecked",e(this).is(":checked")),e(this).data("PermissionCheckboxSetField.oldDisabled",e(this).is(":disabled")),e(this).prop("disabled","disabled"),e(this).prop("checked","checked")}):t.each(function(){e(this).prop("checked",e(this).data("PermissionCheckboxSetField.oldChecked")),e(this).prop("disabled",e(this).data("PermissionCheckboxSetField.oldDisabled"))})}})})},"./client/src/legacy/SecurityAdmin.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);n("./client/src/legacy/LeftAndMain.js"),n("./client/src/legacy/PermissionCheckboxSetField.js");var i=function(e){var t=(0,o.default)((0,o.default)(this).contents()).find(".message");if(t&&t.html()){var n=(0,o.default)(window.parent.document).find("#Form_EditForm_Members").get(0);n&&n.refresh();var r=(0,o.default)(window.parent.document).find(".cms-tree").get(0);r&&r.reload()}};(0,o.default)("#MemberImportFormIframe, #GroupImportFormIframe").entwine({onadd:function(){this._super(),(0,o.default)(this).on("load",i)}}),o.default.entwine("ss",function(e){e(".permissioncheckboxset .checkbox[value=ADMIN]").entwine({onadd:function(){this.toggleCheckboxes(),this._super()},onclick:function(e){this.toggleCheckboxes()},toggleCheckboxes:function(){var t=this.parents(".field:eq(0)").find(".checkbox").not(this);this.is(":checked")?t.each(function(){e(this).data("SecurityAdmin.oldChecked",e(this).is(":checked")),e(this).data("SecurityAdmin.oldDisabled",e(this).is(":disabled")),e(this).prop("disabled",!0),e(this).prop("checked",!0)}):t.each(function(){e(this).prop("checked",e(this).data("SecurityAdmin.oldChecked")),e(this).prop("disabled",e(this).data("SecurityAdmin.oldDisabled"))})}})})},"./client/src/legacy/SelectionGroup.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);(0,o.default)(document).ready(function(){(0,o.default)(document).on("click","ul.SelectionGroup input.selector, ul.selection-group input.selector",function(){var e=(0,o.default)(this).closest("li");e.addClass("selected");var t=e.prevAll("li.selected");t.length&&t.removeClass("selected");var n=e.nextAll("li.selected");n.length&&n.removeClass("selected"),(0,o.default)(this).focus()})})},"./client/src/legacy/TabSet.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);n("./thirdparty/jquery-ui/jquery-ui.js"),n("./thirdparty/jquery-cookie/jquery.cookie.js"),n("./thirdparty/jquery-entwine/jquery.entwine.js"),o.default.entwine("ss",function(e){e(".ss-tabset, .cms-tabset").entwine({DeferRestoreState:!1,DefferredStateOverride:null,onmatch:function(){var e=window.location.hash;""!==e&&this.openTabFromURL(e),this._super()},onadd:function(){this.on("tabsactivate",function(e,t){var n=t.newPanel;this.lazyLoadGridFields(n),this.triggerLazyLoad(n)}.bind(this)),this.on("tabscreate",function(e,t){var n=t.panel;this.lazyLoadGridFields(n),this.triggerLazyLoad(n)}.bind(this)),this._super()},restoreState:function(t){var n=void 0!==window.sessionStorage&&window.sessionStorage,r=n?window.sessionStorage.getItem("tabs-"+window.ss.tabStateUrl()):null,o=!!r&&JSON.parse(r),i=void 0,a=void 0,s=this.attr("id"),l=this.children("ul").children("li.ss-tabs-force-active");if(!this.data("uiTabs"))return this.setDeferRestoreState(!0),void this.setDefferredStateOverride(t);this.tabs("refresh"),l.length?i=l.first().index():t?(a=this.find(t.tabSelector),a.length&&(i=a.index())):o&&e.each(o,function(e,t){s==t.id&&(i=t.selected)}),null!==i&&void 0!==i&&(this.tabs("option","active",i),this.parents(".cms-container").trigger("tabstaterestored"))},triggerLazyLoad:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".lazy-loadable";t.find(r).each(function(t,r){var o=e(r),i=r.dataset.lazyEvent||"lazyload";o.closest(".ss-tabset, .cms-tabset").is(n)&&r.dispatchEvent(new Event(i))})},lazyLoadGridFields:function(t){var n=this;t.find(".grid-field--lazy-loadable").each(function(t,r){e(r).closest(".ss-tabset, .cms-tabset").is(n)&&e(r).lazyload()})},openTabFromURL:function(t){var n;e.each(this.find(".ui-tabs-anchor"),function(){if(-1!==this.href.indexOf(t)&&1===e(t).length)return n=e(this),!1}),void 0!==n&&e(function(){n.click()})},redrawTabs:function(){this._super(),this.getDeferRestoreState()&&(this.restoreState(this.getDefferredStateOverride()),this.setDeferRestoreState(!1),this.setDefferredStateOverride(null))}}),e(".ss-tabset").entwine({IgnoreTabState:!1,onadd:function(){this.redrawTabs(),this._super()},onremove:function(){this.data("uiTabs")&&this.tabs("destroy"),this._super()},redrawTabs:function(){e(this).hasClass("ss-tabset")?(this.rewriteHashlinks(),this.tabs()):this._super()},rewriteHashlinks:function(){e(this).find("ul a").each(function(){if(e(this).attr("href")){var t=e(this).attr("href").match(/#.*/);t&&e(this).attr("href",document.location.href.replace(/#.*/,"")+t[0])}})}}),e(".ui-tabs-active .ui-tabs-anchor").entwine({onmatch:function(){this.addClass("nav-link active")},onunmatch:function(){this.removeClass("active")}})})},"./client/src/legacy/ToastsContainer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("jquery"),i=r(o),a=n("react"),s=r(a),l=n("react-dom"),c=r(l),u=n("lib/Injector"),d=r(u),f=n("state/toasts/ToastsActions"),p=(0,u.loadComponent)("ToastsContainer");i.default.entwine("ss",function(e){e("body").entwine({onmatch:function(){var t=e('<div class="toasts-container"></div>');this.append(t),c.default.render(s.default.createElement(p,null),t[0])}})}),function(e){e.extend({noticeAdd:function(e){d.default.ready(function(){(0,d.default.reducer.store.dispatch)((0,f.display)(e))})}})}(i.default)},"./client/src/legacy/ToggleCompositeField.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);n("./thirdparty/jquery-ui/jquery-ui.js"),o.default.entwine("ss",function(e){e(".ss-toggle").entwine({onadd:function(){this._super(),this.accordion({heightStyle:"content",collapsible:!0,active:!this.hasClass("ss-toggle-start-closed")&&0})},onremove:function(){this.data("uiAccordion")&&this.accordion("destroy"),this._super()},getTabSet:function(){return this.closest(".ss-tabset")},fromTabSet:{ontabsshow:function(){this.accordion("resize")}}})})},"./client/src/legacy/TreeDropdownField/TreeDropdownFieldEntwine.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("jquery"),a=r(i),s=n("react"),l=r(s),c=n("react-dom"),u=r(c),d=n("lib/schemaFieldValues"),f=n("components/TreeDropdownField/TreeDropdownField"),p=n("lib/Injector");a.default.entwine("ss",function(e){e(".js-injector-boot .TreeDropdownField").entwine({Value:null,Timer:null,Component:null,onmatch:function(){this._super();var e=this.closest(".cms-content").attr("id"),t=e?{context:e}:{},n=(0,p.loadComponent)("TreeDropdownField",t);this.setComponent(n);var r=this.data("state")||{},o=this.data("schema")||{};o.data&&o.data.multiple?this.setValue(r.value&&r.value!==f.MULTI_EMPTY_VALUE?r.value.map(function(e){return Number(e)}):[]):this.setValue(r.value?Number(r.value):""),this.refresh()},onunmatch:function(){this._super();var e=this[0];e&&u.default.unmountComponentAtNode(e)},refresh:function(){var e=this,t=this.getAttributes(),n=function(t){e.setValue(t),e.refresh(),clearTimeout(e.getTimer());var n=setTimeout(function(){e.find("input").trigger("change")},0);e.setTimer(n)},r=this.getComponent();u.default.render(l.default.createElement(r,o({},t,{onChange:n,value:this.getValue(),noHolder:!0})),this[0])},getAttributes:function(){var e=this.data("state"),t=this.data("schema");return(0,d.schemaMerge)(t,e)}})})},"./client/src/legacy/UsedOnTable/UsedOnTableEntwine.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n("jquery"),i=r(o),a=n("react"),s=r(a),l=n("react-dom"),c=r(l),u=n("lib/schemaFieldValues"),d=n("lib/Injector");i.default.entwine("ss",function(e){e(".js-injector-boot .used-on__polyfill-holder").entwine({Timer:null,Component:null,onmatch:function(){this._super();var e=this.closest(".cms-content").attr("id"),t=e?{context:e}:{},n=(0,d.loadComponent)("UsedOnTable",t);this.setComponent(n),this.refresh()},onunmatch:function(){this._super();var e=this[0];e&&c.default.unmountComponentAtNode(e)},refresh:function(){var e=this.getAttributes(),t=this.getComponent();c.default.render(s.default.createElement(t,e),this[0])},getAttributes:function(){var e=this.data("state"),t=this.data("schema");return(0,u.schemaMerge)(t,e)}})})},"./client/src/legacy/jquery.changetracker.js":function(e,t,n){"use strict";(function(e){var t=n("./node_modules/lodash.debounce/index.js"),r=function(e){return e&&e.__esModule?e:{default:e}}(t);!function(e){e.fn.changetracker=function(t){var n=this;if(this.length>1)return this.each(function(e,n){this.changetracker(t)}),this;this.defaults={fieldSelector:':input:not(:button,[type="submit"],[type="search"],.gridstate)',ignoreFieldSelector:'.no-change-track,[type="search"]',changedCssClass:"changed"};var o=e.extend({},this.defaults,t);if(this.initialize=function(){e.meta&&(o=e.extend({},o,this.data())),n.data("dirty",!1);var t=function(t){if(t.is(":radio")){var r=n.find(":input[name="+t.attr("name")+"]:checked");return r.length?r.val():0}if(t.is(":checkbox"))return t.is(":checked")?1:0;var o=t.val();if(t&&t.hasClass("htmleditor"))switch(t.data("editor")||"default"){case"tinyMCE":case"default":var i=e.extend({forced_root_block:"p"},t.data("config")),a=new tinymce.html.Serializer(i),s=new tinymce.html.DomParser(i);o=a.serialize(s.parse(o))}return o},i=function(){var r=[];return n.getFields().each(function(){var n=e(this).prop("name");n&&r.push({name:n,value:t(e(this))})}),JSON.stringify(r)},a=i(),s=function(){var e=i();return n.data("dirty")||a!==e},l=function(t){if(!t||!e(t.target).is(o.ignoreFieldSelector)){var r=s();n.toggleClass(o.changedCssClass,r)}},c=function(r){var i=e(r.target),a=i.data("changetracker.origVal");if(!i.is(o.ignoreFieldSelector)){var s=t(i);null===a||s!==a?(i.addClass(o.changedCssClass),n.addClass(o.changedCssClass)):(i.removeClass(o.changedCssClass),i.is(":radio")&&n.find(":radio[name="+i.attr("name")+"]").removeClass(o.changedCssClass),u())}},u=(0,r.default)(l,250,{leading:!0,trailing:!0}),d=(0,r.default)(c,250,{leading:!0,trailing:!0});n.on("click.changetracker",o.fieldSelector,d),n.on("keyup.changetracker",o.fieldSelector,d),n.on("change.changetracker",o.fieldSelector,d),n.on("change.changetracker",u),this.getFields().each(function(){var n=t(e(this));e(this).data("changetracker.origVal",n)}),n.on("dirty.changetracker",function(){n.data("dirty",!0),u()}),this.data("changetracker",!0)},this.destroy=function(){this.reset(),this.off(".changetracker").removeData("changetracker")},this.reset=function(){this.getFields().each(function(){n.resetField(this)}),this.data("dirty",!1).removeClass(o.changedCssClass)},this.resetField=function(t){return e(t).removeData("changetracker.origVal").removeClass(o.changedCssClass)},this.getFields=function(){return this.find(o.fieldSelector).not(o.ignoreFieldSelector+", .search-box *")},"string"==typeof arguments[0]){var i=(arguments[1],Array.prototype.slice.call(arguments));return i.splice(0,1),this[arguments[0]].apply(this,i)}var n=this;return setTimeout(function(){n.initialize()},0),this}}(e)}).call(t,n("jquery"))},"./client/src/legacy/sspath.js":function(e,t,n){"use strict";var r=n("jquery"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=((0,o.default)(window),(0,o.default)("html"),(0,o.default)("head"),{urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,parseUrl:function(e){if("object"===o.default.type(e))return e;var t=i.urlParseRE.exec(e||"")||[];return{href:t[0]||"",hrefNoHash:t[1]||"",hrefNoSearch:t[2]||"",domain:t[3]||"",protocol:t[4]||"",doubleSlash:t[5]||"",authority:t[6]||"",username:t[8]||"",password:t[9]||"",host:t[10]||"",hostname:t[11]||"",port:t[12]||"",pathname:t[13]||"",directory:t[14]||"",filename:t[15]||"",search:t[16]||"",hash:t[17]||""}},makePathAbsolute:function(e,t){if(e&&"/"===e.charAt(0))return e;e=e||"",t=t?t.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"";for(var n=t?t.split("/"):[],r=e.split("/"),o=0;o<r.length;o++){var i=r[o];switch(i){case".":break;case"..":n.length&&n.pop();break;default:n.push(i)}}return"/"+n.join("/")},isSameDomain:function(e,t){return i.parseUrl(e).domain===i.parseUrl(t).domain},isRelativeUrl:function(e){return""===i.parseUrl(e).protocol},isAbsoluteUrl:function(e){return""!==i.parseUrl(e).protocol},makeUrlAbsolute:function(e,t){if(!i.isRelativeUrl(e))return e;var n=i.parseUrl(e),r=i.parseUrl(t),o=n.protocol||r.protocol,a=n.protocol?n.doubleSlash:n.doubleSlash||r.doubleSlash,s=n.authority||r.authority,l=""!==n.pathname;return o+a+s+i.makePathAbsolute(n.pathname||r.filename,r.pathname)+(n.search||!l&&r.search||"")+n.hash},addSearchParams:function(e,t){var n=i.parseUrl(e),t="string"==typeof t?i.convertSearchToArray(t):t,r=o.default.extend(i.convertSearchToArray(n.search),t),a=i.convertObjectToSearch(r);return n.hrefNoSearch+"?"+a+(n.hash||"")},getSearchParams:function(e){var t=i.parseUrl(e);return i.convertSearchToArray(t.search)},convertSearchToArray:function(e){var t,n,r,o={};for(e=e.replace(/^\?/,""),t=e?e.split("&"):[],n=0;n<t.length;n++)r=t[n].split("="),o[decodeURIComponent(r[0])]=decodeURIComponent(r[1]);return o},convertObjectToSearch:function(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")},convertUrlToDataUrl:function(e){var t=i.parseUrl(e);return i.isEmbeddedPage(t)?t.hash.split(dialogHashKey)[0].replace(/^#/,""):i.isSameDomain(t,document)?t.hrefNoHash.replace(document.domain,""):e},get:function(e){return void 0===e&&(e=location.hash),i.stripHash(e).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(e){var t="&"+o.default.mobile.subPageUrlKey;return e&&e.split(t)[0].split(dialogHashKey)[0]},set:function(e){location.hash=e},isPath:function(e){return/\//.test(e)},clean:function(e){return e.replace(document.domain,"")},stripHash:function(e){return e.replace(/^#/,"")},cleanHash:function(e){return i.stripHash(e.replace(/\?.*$/,"").replace(dialogHashKey,""))},isExternal:function(e){var t=i.parseUrl(e);return!(!t.protocol||t.domain===document.domain)},hasProtocol:function(e){return/^(:?\w+:)/.test(e)}});o.default.path=i},"./client/src/legacy/ssui.core.js":function(e,t,n){"use strict";(function(e){var t=n("jquery"),r=function(e){return e&&e.__esModule?e:{default:e}}(t);n("./thirdparty/jquery-ui/jquery-ui.js"),r.default.widget("ssui.ssdialog",r.default.ui.dialog,{options:{iframeUrl:"",reloadOnOpen:!0,dialogExtraClass:"",modal:!0,bgiframe:!0,autoOpen:!1,autoPosition:!0,minWidth:500,maxWidth:800,minHeight:300,maxHeight:700,widthRatio:.8,heightRatio:.8,resizable:!1},_create:function(){r.default.ui.dialog.prototype._create.call(this);var e=this,t=(0,r.default)('<iframe marginWidth="0" marginHeight="0" frameBorder="0" scrolling="auto"></iframe>');t.on("load",function(n){"about:blank"!=(0,r.default)(this).attr("src")&&(t.addClass("loaded").show(),e._resizeIframe(),e.uiDialog.removeClass("loading"))}).hide(),this.options.dialogExtraClass&&this.uiDialog.addClass(this.options.dialogExtraClass),this.element.append(t),this.options.iframeUrl&&this.element.css("overflow","hidden")},open:function(){r.default.ui.dialog.prototype.open.call(this);var e=this,t=this.element.children("iframe");!this.options.iframeUrl||t.hasClass("loaded")&&!this.options.reloadOnOpen||(t.hide(),t.attr("src",this.options.iframeUrl),this.uiDialog.addClass("loading")),(0,r.default)(window).on("resize.ssdialog",function(){e._resizeIframe()})},close:function(){r.default.ui.dialog.prototype.close.call(this),this.uiDialog.off("resize.ssdialog"),(0,r.default)(window).off("resize.ssdialog")},_resizeIframe:function(){var t,n,o={},i=this.element.children("iframe");this.options.widthRatio&&(t=(0,r.default)(window).width()*this.options.widthRatio,this.options.minWidth&&t<this.options.minWidth?o.width=this.options.minWidth:this.options.maxWidth&&t>this.options.maxWidth?o.width=this.options.maxWidth:o.width=t),this.options.heightRatio&&(n=(0,r.default)(window).height()*this.options.heightRatio,this.options.minHeight&&n<this.options.minHeight?o.height=this.options.minHeight:this.options.maxHeight&&n>this.options.maxHeight?o.height=this.options.maxHeight:o.height=n),e.isEmptyObject(o)||(this._setOptions(o),i.attr("width",o.width-parseFloat(this.element.css("paddingLeft"))-parseFloat(this.element.css("paddingRight"))),i.attr("height",o.height-parseFloat(this.element.css("paddingTop"))-parseFloat(this.element.css("paddingBottom"))),this.options.autoPosition&&this._setOption("position",this.options.position))}}),r.default.widget("ssui.titlebar",{_create:function(){this.originalTitle=this.element.attr("title");var e=this.options,t=e.title||this.originalTitle||"&nbsp;",n=r.default.ui.dialog.getTitleId(this.element);this.element.parent().addClass("ui-dialog");var o=this.element.addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix");if(e.closeButton){var i=(0,r.default)('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){i.addClass("ui-state-hover")},function(){i.removeClass("ui-state-hover")}).focus(function(){i.addClass("ui-state-focus")}).blur(function(){i.removeClass("ui-state-focus")}).mousedown(function(e){e.stopPropagation()}).appendTo(o);(this.uiDialogTitlebarCloseText=(0,r.default)("<span/>")).addClass("ui-icon ui-icon-closethick").text(e.closeText).appendTo(i)}(0,r.default)("<span/>").addClass("ui-dialog-title").attr("id",n).html(t).prependTo(o),o.find("*").add(o).disableSelection()},destroy:function(){this.element.off(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"),this.originalTitle&&this.element.attr("title",this.originalTitle)}}),r.default.extend(r.default.ssui.titlebar,{version:"0.0.1",options:{title:"",closeButton:!1,closeText:"close"},uuid:0,getTitleId:function(e){return"ui-dialog-title-"+(e.attr("id")||++this.uuid)}})}).call(t,n("jquery"))},"./client/src/lib/Validator.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("validator"),c=r(l),u=n("i18n"),d=r(u),f=function(){function e(t){o(this,e),this.setValues(t)}return s(e,[{key:"setValues",value:function(e){this.values=e}},{key:"getFieldValue",value:function(e){var t=this.values[e];return"string"!=typeof t&&(t=void 0===t||null===t||!1===t?"":t.toString()),t}},{key:"validateValue",value:function(e,t,n,r){if(t.includes(e))return"required"!==n;switch(n){case"equals":var o=this.getFieldValue(r.field);return c.default.equals(e,o);case"numeric":return c.default.isNumeric(e);case"date":return c.default.isDate(e);case"alphanumeric":return c.default.isAlphanumeric(e);case"alpha":return c.default.isAlpha(e);case"regex":return c.default.matches(e,r.pattern);case"max":return e.length<=r.length;case"email":return c.default.isEmail(e);default:return console.warn("Unknown validation rule used: '"+n+"'"),!1}}},{key:"validateFieldSchema",value:function(e){return this.validateField(e.name,e.validation,null!==e.leftTitle?e.leftTitle:e.title,e.customValidationMessage)}},{key:"getMessage",value:function(e,t){var n=t.title,r="string"==typeof t.message?t.message:d.default._t("Admin.VALIDATOR_MESSAGE_"+e.toUpperCase(),d.default._t("Admin.VALIDATOR_MESSAGE_DEFAULT","{name} is not a valid value."));return d.default.inject(r,{name:n})}},{key:"validateField",value:function(e,t,n,r){var o=this,s={valid:!0,errors:[]};if(!t)return s;var l=this.getFieldValue(e),c=[""];if(t.required&&"object"===a(t.required)&&t.required.hasOwnProperty("extraEmptyValues")&&(c=c.concat(t.required.extraEmptyValues)),t.required&&c.includes(l)){var u=Object.assign({title:""!==n?n:e},t.required);return{valid:!1,errors:[r||this.getMessage("required",u)]}}return Object.entries(t).forEach(function(t){var r=i(t,2),a=r[0],u=r[1],d=Object.assign({title:e},{title:n},u);if("required"!==a&&!o.validateValue(l,c,a,d)){var f=o.getMessage(a,d);s.valid=!1,s.errors.push(f)}}),r&&!s.valid&&(s.errors=[r]),s}}]),e}();t.default=f},"./client/src/lib/castStringToElement.js":function(e,t,n){"use strict";function r(e,t,n){for(var r=0,o=e,i=[],a=t.toLocaleLowerCase();-1!==r;)if(-1!==(r=o.toLocaleLowerCase().indexOf(a))){var s=r+t.length,c=o.substring(0,r),u=o.substring(r,s),d=o.substring(s);c.length&&i.push(c),i.push(n?l.default.createElement(n,{key:i.length/2},u):u),o=d}return i.push(o),i}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t&&void 0!==t.react)return l.default.createElement(e,n,t.react);if(t&&void 0!==t.html){if(null!==t.html){var r={__html:t.html};return l.default.createElement(e,a({},n,{dangerouslySetInnerHTML:r}))}return null}var o=null;if((o=t&&void 0!==t.text?t.text:t)&&"object"===(void 0===o?"undefined":i(o)))throw new Error("Unsupported string value "+JSON.stringify(o));return null!==o&&void 0!==o?l.default.createElement(e,n,o):null}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.mapHighlight=r,t.default=o;var s=n("react"),l=function(e){return e&&e.__esModule?e:{default:e}}(s)},"./client/src/lib/constants.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SPLITMODE_BREAKPOINT=800},"./client/src/lib/createClassMap.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){var t={};return e&&e.split(" ").forEach(function(e){""!==e&&(t[e]=!0)}),t};t.default=r},"./client/src/lib/createErrorBlock.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorBlock=t.createErrorHtml=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n("react"),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=function(e){return{type:"error",value:{react:e.map(function(e,t){return s.default.createElement("span",{key:t,className:"form__validation-message"},e)})}}},c=function(e){return Object.entries(e).reduce(function(e,t){var n=i(t,2),a=n[0],s=n[1];if(!s||!s.length)return e;var c=Array.isArray(s)?s:[s];return o({},e,r({},a,l(c)))},{})};t.default=c,t.createErrorHtml=l,t.createErrorBlock=c},"./client/src/lib/dependency-injection/ApolloGraphqlManager.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n("graphql-tag"),f=r(d),p=n("./client/src/lib/dependency-injection/graphql/helpers.js"),h=n("./client/src/lib/dependency-injection/ApolloGraphqlProxy.js"),m=r(h),b=["templateName","fields","params","fragments"],g=["options","props","variables","skip","update"],v={params:{},args:{},fields:[],fragments:[],pagination:!0,apolloConfig:{}},y=function(){function e(t,n,r){s(this,e);var o=c({},v,t);o.fields=[].concat(a(o.fields));var l=o.apolloConfig,u=i(o,["apolloConfig"]);this.config=u,this.apolloConfigInitValues=l,this.apolloConfigTransforms={},this.templates=c({},n)||{},this.fragments=c({},r)||{},this.reduceApolloConfig=this.reduceApolloConfig.bind(this)}return u(e,[{key:"setConfig",value:function(e,t){if(b.includes(e))throw new Error("Tried to set protected config values: '"+e+"', which is discouraged.");return this.config=c({},this.config,o({},e,t)),this}},{key:"transformApolloConfig",value:function(e,t){var n=this.apolloConfigTransforms[e]||[];return this.apolloConfigTransforms=c({},this.apolloConfigTransforms,o({},e,[].concat(a(n),[t]))),this}},{key:"addParam",value:function(e,t){if(!e||!t)throw new Error("addParam must be passed a name and type parameter");return this.addParams(o({},e,t))}},{key:"addParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.config.params;return this.config.params=c({},t,e),this}},{key:"addArg",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.ROOT_FIELD;return this.addArgs(o({},e,t),n)}},{key:"addArgs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.ROOT_FIELD,n=this.config.args[t]||{};return this.config.args[t]=c({},n,e),this}},{key:"addField",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.ROOT_FIELD;return this.addFields([e],t)}},{key:"addFields",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.ROOT_FIELD,r=[];return n.split("/").forEach(function(t){if(t===p.ROOT_FIELD)r=e.config.fields;else{var o=r.indexOf(t),i=r[o+1];if(-1===o||!Array.isArray(i))throw new Error("Invalid path to field: "+n);r=i}}),t.forEach(function(e){return r.push(e)}),this}},{key:"useFragment",value:function(e){return this.config.fragments=[].concat(a(this.config.fragments),[e]),this}},{key:"useTemplate",value:function(e){if(!Object.keys(this.templates).includes(e))throw new Error("\nTried to use template '"+e+"', which could not be found. Please make sure that it is registered with your Injector.\n      ");return this.config.templateName=e,this}},{key:"addTempFragment",value:function(e,t){return this.fragments=c({},this.fragments,o({},e,t)),this.useFragment(e)}},{key:"setTemplate",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.config.templateName="__TEMPLATE_OVERRIDE__",this.templates=c({},this.templates,o({},"__TEMPLATE_OVERRIDE__",{strings:e,expressions:n})),this}},{key:"getRawTemplate",value:function(e){return this.templates[e]}},{key:"coallesceData",value:function(e,t,n){switch(e){case"options":case"props":case"variables":case"context":case"optimisticResponse":return c({},t||{},n||{});case"refetchQueries":return[].concat(a(t||[]),a(n||[]));case"skip":return"boolean"==typeof n?n:t;case"pollInterval":return"number"==typeof n?n:t;case"fetchPolicy":return"object"===(void 0===n?"undefined":l(n))?n:t;case"name":return"string"==typeof n?n:t;case"withRef":case"notifyOnNetworkStatusChange":return n||t;default:return null}}},{key:"reduceApolloConfig",value:function(e,t){var n=this,r=function(e,r){var o=r(e);return n.coallesceData(t,e,o)},i=this.apolloConfigInitValues[t],a=this.apolloConfigTransforms[t]||[];if(g.includes(t))return c({},e,o({},t,function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];var s=i.apply(void 0,n),l=a.map(function(e){return e.apply(void 0,n)});return"update"===t?null:l.reduce(r,s)}));if(void 0===i||null===i)return e;var s=a.reduce(r,i);return c({},e,o({},t,s))}},{key:"getConfig",value:function(){return c({},this.config,{availableFragments:c({},this.fragments)})}},{key:"getApolloConfig",value:function(){return[].concat(a(Object.keys(this.apolloConfigInitValues)),a(Object.keys(this.apolloConfigTransforms))).filter(function(e,t,n){return n.indexOf(e)===t}).reduce(this.reduceApolloConfig,{})}},{key:"getGraphqlAST",value:function(){var e=this.getConfig(),t=this.getRawTemplate(e.templateName),n=t.expressions.map(function(t){return"function"!=typeof t?t:t(e)});return f.default.apply(void 0,[t.strings].concat(a(n)))}},{key:"getContainer",value:function(){return new m.default(this.getGraphqlAST(),this.getApolloConfig())}}]),e}();t.default=y},"./client/src/lib/dependency-injection/ApolloGraphqlProxy.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n("react-apollo"),a=function(){function e(t,n){r(this,e),this.graphqlAST=t,this.apolloConfig=n}return o(e,[{key:"getApolloHOC",value:function(){return(0,i.graphql)(this.graphqlAST,this.apolloConfig)}},{key:"getGraphqlAST",value:function(){return this.graphqlAST}},{key:"getApolloConfig",value:function(){return this.apolloConfig}}]),e}();t.default=a},"./client/src/lib/dependency-injection/Container.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("./client/src/lib/dependency-injection/buildInjectorContainer.js"),i=r(o),a=n("./client/src/lib/dependency-injection/buildComponentContainer.js"),s=r(a),l=n("./client/src/lib/dependency-injection/buildReducerContainer.js"),c=r(l),u=n("./client/src/lib/dependency-injection/buildFormContainer.js"),d=r(u),f=n("./client/src/lib/dependency-injection/buildApolloGraphqlScaffoldingContainer.js"),p=r(f),h=(0,i.default)();h.register("component",(0,s.default)()),h.register("reducer",(0,c.default)()),h.register("form",(0,d.default)()),h.register("query",(0,p.default)()),t.default=h},"./client/src/lib/dependency-injection/FormStateManager.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("classnames"),c=r(l),u=n("./client/src/lib/createClassMap.js"),d=r(u),f=n("./node_modules/redux-form/lib/structure/plain/setIn.js"),p=r(f),h=n("redux-form"),m=n("lib/schemaFieldValues"),b=function(e){return e},g=function(){function e(t,n){i(this,e);var r=t.state||{},s=r.fields||[];this.schema=a({},t,{state:a({},r,{fields:[].concat(o(s))})}),this.mockGlobalState=(0,p.default)({},t.name,n)}return s(e,[{key:"getFieldByName",value:function(e){var t=a({fields:[],actions:[]},this.schema.schema),n=[].concat(o(t.fields),o(t.actions)),r=(0,m.findField)(n,e),i=this.schema.state.fields.find(function(t){return t.name===e});return(0,m.schemaMerge)(r,i)}},{key:"mutateField",value:function(e,t){var n=this.schema.state.fields||[],r=n.findIndex(function(t){return t.name===e});if(r<0)return this;var i=[].concat(o(n)),a=this.getFieldByName(e);return i[r]=(0,m.schemaMerge)(a,t(a)),this.schema.state.fields=i,this}},{key:"updateField",value:function(e,t){return this.mutateField(e,function(e){return a({},e,t)})}},{key:"updateFields",value:function(e){var t=this;return Object.keys(e).forEach(function(n){t.updateField(n,e[n])}),this}},{key:"setFieldComponent",value:function(e,t){return this.updateField(e,{component:t})}},{key:"setFieldClass",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.mutateField(e,function(e){var r=(0,d.default)(e.extraClass);return r[t]=n,a({},e,{extraClass:(0,c.default)(r)})})}},{key:"addFieldClass",value:function(e,t){return this.setFieldClass(e,t,!0)}},{key:"removeFieldClass",value:function(e,t){return this.setFieldClass(e,t,!1)}},{key:"getValues",value:function(){return(0,h.getFormValues)(this.schema.name,b)(this.mockGlobalState)||{}}},{key:"getValue",value:function(e){return this.getValues()[e]}},{key:"isDirty",value:function(){return(0,h.isDirty)(this.schema.name,b)(this.mockGlobalState)}},{key:"isPristine",value:function(){return(0,h.isPristine)(this.schema.name,b)(this.mockGlobalState)}},{key:"isValid",value:function(){return(0,h.isValid)(this.schema.name,b)(this.mockGlobalState)}},{key:"isInvalid",value:function(){return(0,h.isInvalid)(this.schema.name,b)(this.mockGlobalState)}},{key:"getState",value:function(){return this.schema}}]),e}();t.default=g},"./client/src/lib/dependency-injection/FormValidationManager.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(){function e(t){o(this,e),this.values=t,this.errorMap={}}return a(e,[{key:"addError",value:function(e,t){if(!this.fieldExists(e))throw new Error("Tried to add error to non-existent field: "+e);return this.errorMap[e]||(this.errorMap[e]=[]),this.errorMap[e]=[].concat(r(this.errorMap[e]),[t]),this}},{key:"addErrors",value:function(e){var t=this;return Object.entries(e).forEach(function(e){var n=i(e,1),r=n[0],o=i(e,2),a=o[1];Array.isArray(a)||(a=[a]),a.forEach(function(e){return t.addError(r,e)})}),this}},{key:"clearErrors",value:function(e){if(!this.fieldExists(e))throw new Error("Tried to clear errors for non-existent field: "+e);return delete this.errorMap[e],this}},{key:"hasError",value:function(e){return this.fieldExists(e)&&!!this.getErrors(e).length}},{key:"fieldExists",value:function(e){return Object.keys(this.values).includes(e)}},{key:"getErrors",value:function(e){if(!this.fieldExists(e))throw new Error("Tried to get errors for non-existent field: "+e);return this.errorMap[e]||[]}},{key:"reset",value:function(){this.errorMap={}}},{key:"getState",value:function(){return this.errorMap}}]),e}();t.default=s},"./client/src/lib/dependency-injection/MiddlewareRegistry.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0}),t.GLOBAL_CONTEXT=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n("./node_modules/toposort/index.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=["before","after"],c=function(e){l.forEach(function(t){if(void 0!==e[t]&&"string"!=typeof e[t]&&!Array.isArray(e[t]))throw new Error("Middleware key "+t+" must be a string or array")})},u=function(e){var t=null;return l.forEach(function(n){if(e[n].includes("*")){if(e[n].length>1)throw new Error("\n          Key "+n+" on "+e.name+' should only specify one key \n          if using the "*" wildcard\n        ');if(t)throw new Error("\n          Cannot specify a "+n+" rule on "+e.name+" if a wildcard \n          has been specified\n        ");t=n}}),t},d=function(){function e(){r(this,e),this._middlewares=[],this._contextCache={}}return i(e,[{key:"sort",value:function(){var e=this,t=["__HEAD__","__TAIL__"],n=[t],r=[];return this._middlewares.forEach(function(e){var t=e.name,r=u(e);"after"===r?n.push(["__TAIL__",t]):"before"===r?n.push([t,"__HEAD__"]):(n.push([t,"__TAIL__"]),n.push(["__HEAD__",t]),e.before.forEach(function(e){n.push([t,e])}),e.after.forEach(function(e){n.push([e,t])}))}),(0,s.default)(n).filter(function(e){return!t.includes(e)}).forEach(function(t){r=r.concat(e._middlewares.filter(function(e){return e.name===t}))}),this._middlewares=r,this}},{key:"add",value:function(e,t,n){c(e),this._contextCache={};var r=n;r&&r.length?Array.isArray(r)||(r=[r]):r=["__GLOBAL__"];var i=o({},e,{factory:t,context:r});return l.forEach(function(t){Array.isArray(e[t])?i[t]=e[t]:i[t]=e[t]?[e[t]]:[]}),l.every(function(e){return!i[e].length})&&(i.after=["__HEAD__"],i.before=["__TAIL__"]),this._middlewares.push(i),this}},{key:"getMatchesForContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"__GLOBAL__";if(!this._contextCache[e]){var t=e.split(".");this._contextCache[e]=this._middlewares.filter(function(e){return"__GLOBAL__"===e.context[0]||e.context.every(function(e,n){return"*"===e||t[n]===e})})}return this._contextCache[e]}}]),e}();t.GLOBAL_CONTEXT="__GLOBAL__",t.default=d},"./client/src/lib/dependency-injection/applyFormMiddleware.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Injector.js"),s=r(a),l=n("./node_modules/redux-form/lib/structure/plain/getIn.js"),c=r(l),u=n("./node_modules/redux-form/lib/structure/plain/setIn.js"),d=r(u),f=n("redux-form"),p=[f.actionTypes.REGISTER_FIELD,f.actionTypes.DESTROY],h=function(e){return function(){return function(t,n){var r=e(t,n),a=n.meta&&n.meta.form;if(!a||p.includes(n.type))return r;var l=s.default.form.getSchema(a);if(!l)return r;var u=(0,c.default)(r.formState,a);if(!u)return r;var f=i({},r),h=Object.entries(r.formSchemas).filter(function(e){return o(e,2)[1].name===a});return h.length?(h.forEach(function(e){var t=o(e,2),n=t[0],r=t[1],i=l(r,u);if(!i.state||!Array.isArray(i.state.fields))throw new Error("\n      One more calls to alterSchema did not return a properly formed schema state\n      object. Check your calls to Injector.transform() which could affect '"+n+"'.\n    ");f=(0,d.default)(f,"formSchemas."+n+".state",i.state)}),f):r}}};t.default=h},"./client/src/lib/dependency-injection/buildApolloGraphqlContainer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n("./client/src/lib/dependency-injection/buildBaseContainer.js"),l=r(s),c=n("./client/src/lib/dependency-injection/ApolloGraphqlManager.js"),u=r(c),d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,l.default)(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a({},e,{templates:a({},t),fragments:a({},n),scaffold:function(e,t,n){throw n.force,new Error("This API endpoint is not available yet")},register:function(t,n){var r,o=n.templateName;if(!o||!this.templates[o])throw new Error("\nTried to register a new query '"+t+"' without a defined template '"+o+"'. Please ensure the\ntemplateName config is defined and that you have registered the template before registering a query.\n      ");for(var a=arguments.length,s=Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];return(r=e.register).call.apply(r,[this,t,n].concat(i(s)))},registerTemplate:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.force;return e.isProtected.call(this),function(e){for(var r=arguments.length,s=Array(r>1?r-1:0),l=1;l<r;l++)s[l-1]=arguments[l];if(n.templates[t]&&!i)throw new Error("\nTried to register template '"+t+"' more than once. This practice is discouraged. Consider\nusing Injector.update() to enhance the template rather than override it completely.\nOtherwise, invoke the registerTemplate() function with '{ force: true }' as the second argument.\n        ");n.templates=a({},n.templates,o({},t,{strings:e,expressions:s}))}},registerFragment:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.force;if(e.isProtected.call(this),this.fragments[t]&&!i)throw new Error("\nTried to register fragment '"+t+"' more than once. This practice is discouraged. Consider\nadding a new fragment or using Injector.update() to enhance the template you're working with.\nOtherwise, invoke the registerFragment() function with '{ force: true }' as the third argument.\n      ");this.fragments=a({},this.fragments,o({},t,n))},getTemplates:function(){return a({},this.templates)},getFragments:function(){return a({},this.fragments)},getProcessedManager:function(e,t){var n=t.map(function(e){return e.factory}).reverse(),r=this.services[e],o=new u.default(r,a({},this.templates),a({},this.fragments));return n.forEach(function(e){e(o)},r),o},getFactory:function(e,t){return this.getProcessedManager(e,t).getContainer()}})};t.default=d},"./client/src/lib/dependency-injection/buildApolloGraphqlScaffoldingContainer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i,a=n("./client/src/lib/dependency-injection/buildBaseContainer.js"),s=r(a),l=n("./client/src/lib/dependency-injection/buildApolloGraphqlContainer.js"),c=r(l),u=n("./client/src/lib/dependency-injection/graphql/buildCreateMutation.js"),d=r(u),f=n("./client/src/lib/dependency-injection/graphql/buildReadQuery.js"),p=r(f),h=n("./client/src/lib/dependency-injection/graphql/buildReadOneQuery.js"),m=r(h),b=n("./client/src/lib/dependency-injection/graphql/buildUpdateMutation.js"),g=r(b),v=n("./client/src/lib/dependency-injection/graphql/buildDeleteMutation.js"),y=r(v),_=n("./client/src/lib/dependency-injection/graphql/buildBaseQuery.js"),j=r(_),w=n("./client/src/lib/dependency-injection/graphql/templates.js"),O=n("./client/src/lib/dependency-injection/graphql/tags.js"),T=(i={},o(i,w.CREATE,(0,d.default)(O.captureTag)),o(i,w.READ,(0,p.default)(O.captureTag)),o(i,w.READ_ONE,(0,m.default)(O.captureTag)),o(i,w.UPDATE,(0,g.default)(O.captureTag)),o(i,w.DELETE,(0,y.default)(O.captureTag)),o(i,w.QUERY,(0,j.default)(O.captureTag)),i),C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,s.default)();return(0,c.default)(e,T)};t.default=C},"./client/src/lib/dependency-injection/buildBaseContainer.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return Array.isArray(e)?e:Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n("./client/src/lib/dependency-injection/MiddlewareRegistry.js"),l=function(e){return e&&e.__esModule?e:{default:e}}(s),c=n("redux"),u=function(){return{middlewareRegistries:{},services:{},factories:{},factoryCache:{},initialised:!1,isProtected:function(){if(this.initialised)throw new Error("Cannot mutate DI container after it has been initialised")},get:function(e,t){if(!this.initialised)throw new Error("\n      Injector.get(): Attempted to access DI layer before it was initialised.\n      Did you forget to invoke Injector.load()?");var n=this.factories[e];if(!n)throw new Error("Injector.get(): Component "+e+" does not exist");return n(t)},customise:function(e,t,n){this.isProtected();var r=t.split("."),s=i(r),c=s[0],u=s.slice(1),d=this.middlewareRegistries[c];d||(d=new l.default,this.middlewareRegistries=a({},this.middlewareRegistries,o({},c,d))),d.add(e,n,u)},load:function(){var e=this;this.isProtected(),this.factories=Object.keys(this.services).reduce(function(t,n){var r=e.middlewareRegistries[n];return r?(r.sort(),a({},t,o({},n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.GLOBAL_CONTEXT,o=n+"__"+t;if(!e.factoryCache[o]){var i=r.getMatchesForContext(t);e.factoryCache[o]=e.getFactory(n,i)}return e.factoryCache[o]}))):a({},t,o({},n,function(){return e.getFactory(n,[])}))},{}),this.initialised=!0},register:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.force;if(this.isProtected(),this.services[e]&&!0!==r)throw new Error("\n      Tried to register service '"+e+"' more than once. This practice is discouraged. Consider\n      using Injector.update() to enhance the service rather than override it completely.\n      Otherwise, invoke the register() function with { force: true } as the third argument.\n     ");this.services=a({},this.services,o({},e,t))},registerMany:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.force;this.isProtected();var r=Object.keys(e),o=Object.keys(this.services).filter(function(e){return r.includes(e)});if(o.length&&!0!==n){var i=o.join(", ");throw new Error("\n      Tried to register services ("+i+") more than once. This practice is discouraged. Consider\n      using Injector.update() to enhance the service rather than override it completely.\n      Otherwise, invoke the register() function with { force: true } as the third argument.\n     ")}this.services=a({},this.services,e)},transform:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.isProtected(),t(this.createTransformer(e,n))},createTransformer:function(e,t){var n=this;return function(r,o){n.customise(a({name:e},t),r,o)}},getFactory:function(e,t){var n=this.services[e],o=t.map(function(e){return e.factory});return c.compose.apply(void 0,r(o))(n)}}};t.default=u},"./client/src/lib/dependency-injection/buildComponentContainer.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("./client/src/lib/dependency-injection/buildBaseContainer.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(i),s=function(e,t){return[e.displayName||e.name||"Component"].concat(r(t)).reduce(function(e,t){return t+"("+e+")"})},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,a.default)();return o({},e,{get:function(t,n){for(var o,i=arguments.length,a=Array(i>2?i-2:0),s=2;s<i;s++)a[s-2]=arguments[s];var l=(o=e.get).call.apply(o,[this,t,n].concat(r(a)));if(l.displayName&&l.displayName.match(/\]$/))return l;var c=l.displayName||l.name||"Component",u=n?"["+n+"]":"";return l.displayName=""+c+u,l},createTransformer:function(e,t){var n=this;return function(r,i,a){n.customise(o({name:e},t,{displayName:a}),r,i)}},getFactory:function(t,n){var r=e.getFactory.call(this,t,n),o=n.map(function(e){return e.displayName||e.name});return r.displayName=s(this.services[t],o),r}})};t.default=l},"./client/src/lib/dependency-injection/buildFormContainer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATION_MIDDLEWARE_SERVICE=t.SCHEMA_MIDDLEWARE_SERVICE=void 0;var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n("./client/src/lib/dependency-injection/buildBaseContainer.js"),l=r(s),c=n("./client/src/lib/dependency-injection/FormStateManager.js"),u=r(c),d=n("./client/src/lib/dependency-injection/FormValidationManager.js"),f=r(d),p=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,l.default)();return a({},t,{services:(e={},i(e,"FormSchemaMiddleware",function(e){return e}),i(e,"FormValidationMiddleware",function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}),e),register:function(){throw new Error("\n      Attempted to register a service on Injector.form. This container accepts only two\n      services by design (FormSchemaMiddleware and FormValidationMiddleware) \n      for updating form schema and adding validation, respectively. Consider using a more\n      generic container, e.g. Injector.reducer.\n    ")},registerMany:function(){this.register()},getSchema:function(e){for(var n,r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return(n=t.get).call.apply(n,[this,"FormSchemaMiddleware",e].concat(o(i)))},getValidation:function(e){for(var n,r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return(n=t.get).call.apply(n,[this,"FormValidationMiddleware",e].concat(o(i)))},createTransformer:function(e,n){var r=this,o=function(o){return function(i,s){return t.customise.call(r,a({name:e},n),o+"."+i,s)}};return{alterSchema:o("FormSchemaMiddleware"),addValidation:o("FormValidationMiddleware")}},getFactory:function(e,t){var n=t.map(function(e){return e.factory});if("FormSchemaMiddleware"===e)return this.getSchemaReducer(n);if("FormValidationMiddleware"===e)return this.getValidationReducer(n);throw new Error("Invalid service for form injector: "+e)},getSchemaReducer:function(e){return function(t,n){return e.reduce(function(e,t){var r=new u.default(e,n),o=t(r);return a({},e,o)},t)}},getValidationReducer:function(e){return function(t,n){var r=new f.default(t);return e.forEach(function(e){return e(t,r,n)}),r.getState()}}})};t.SCHEMA_MIDDLEWARE_SERVICE="FormSchemaMiddleware",t.VALIDATION_MIDDLEWARE_SERVICE="FormValidationMiddleware",t.default=p},"./client/src/lib/dependency-injection/buildInjectorContainer.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){return{services:{},initialised:!1,callbacks:[],onInit:null,register:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.force;if(this.initialised)throw new Error("Cannot mutate DI container after it has been initialised");if(this.services[e]&&!0!==r)throw new Error("\n      Tried to register service "+e+" more than once. This practice is discouraged. Consider\n      using Injector.update() to enhance the service rather than override it completely.\n      Otherwise, invoke the register() function with { force: true } as the third argument.\n     ");if(void 0!==this[e]&&!this.services[e])throw new Error("\n      Tried to register service "+e+" which is a reserved keyword. This would affect the behaviour\n      of this API class, so it is forbidden to register with Injector.\n      ");var o=["load","createTransformer","get","register"];if(!o.every(function(e){return"function"==typeof t[e]}))throw new Error("\n      Tried to register service "+e+" that is not a valid object, Injector requires an object\n      which contains the following methods: "+o.join(", ")+"\n      ");this.services[e]=t,this[e]=t},load:function(){if(this.initialised)throw new Error("Cannot mutate DI container after it has been initialised");Object.values(this.services).forEach(function(e){return e.load()}),this.initialised=!0,this.onInit&&this.onInit(),this.callbacks.forEach(function(e){e()}),this.callbacks=[]},transform:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.initialised)throw new Error("Cannot mutate DI container after it has been initialised");t(Object.entries(this.services).reduce(function(t,r){var s=a(r,2),l=s[0],c=s[1];return i({},t,o({},l,c.createTransformer(e,n)))},{}))},ready:function(e){if("function"!=typeof e)throw new Error("Callback provided is not a function");if(this.initialised)return void e();this.callbacks=[].concat(r(this.callbacks),[e])},init:function(e){if("function"!=typeof e)throw new Error("Callback provided is not a function");if(this.initialised)throw new Error("Tried to add an init() callback after Injector was initialised");this.onInit=e}}};t.default=s},"./client/src/lib/dependency-injection/buildReducerContainer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n("./client/src/lib/dependency-injection/buildBaseContainer.js"),l=r(s),c=n("./client/src/lib/dependency-injection/MiddlewareRegistry.js"),u=r(c),d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,l.default)();return a({},e,{store:null,setStore:function(e){this.store=e},customise:function(e,t,n){var r=this;this.isProtected();var i=this.middlewareRegistries[t];i||(i=new u.default,this.middlewareRegistries=a({},this.middlewareRegistries,o({},t,i)));var s=function(e){var t=r.store&&r.store.getState;return n(e)(t)};i.add(e,s)},getAll:function(){return this.initialised?Object.entries(this.factories).reduce(function(e,t){var n=i(t,2),r=n[0],s=n[1];return a({},e,o({},r,s()))},{}):Object.entries(this.services).reduce(function(e,t){var n=i(t,2),r=n[0],s=n[1];return a({},e,o({},r,s))},{})}})};t.default=d},"./client/src/lib/dependency-injection/graphql/buildBaseQuery.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""," ",""," {\n    ","(",") {\n      ","\n    }\n  }\n  ",""],[""," ",""," {\n    ","(",") {\n      ","\n    }\n  }\n  ",""]),o=n("./client/src/lib/dependency-injection/graphql/tags.js"),i=n("./client/src/lib/dependency-injection/graphql/helpers.js"),a=function(e){var t=e.operationName,n=e.queryName;return t||""+n.charAt(0).toUpperCase()+n.slice(1)},s=function(e){return e.queryName},l=function(e){return e.queryType},c=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultTag)(r,l,a,i.getVariables,s,i.getParams,i.getFields,i.getFragments)};t.default=c},"./client/src/lib/dependency-injection/graphql/buildCreateMutation.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["mutation Create","(\n    $input:","!\n  ) {\n    create","(\n      input: $input\n    ) {\n      ","\n    }\n  }\n  ",""],["mutation Create","(\n    $input:","!\n  ) {\n    create","(\n      input: $input\n    ) {\n      ","\n    }\n  }\n  ",""]),o=n("./client/src/lib/dependency-injection/graphql/tags.js"),i=n("./client/src/lib/dependency-injection/graphql/helpers.js"),a=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultTag)(r,i.getSingularName,i.getCreateMutationType,i.getSingularName,i.getFields,i.getFragments)};t.default=a},"./client/src/lib/dependency-injection/graphql/buildDeleteMutation.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["mutation Delete","($IDs:[ID]!) {\n    delete","(IDs: $IDs)\n  }"],["mutation Delete","($IDs:[ID]!) {\n    delete","(IDs: $IDs)\n  }"]),o=n("./client/src/lib/dependency-injection/graphql/tags.js"),i=n("./client/src/lib/dependency-injection/graphql/helpers.js"),a=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultTag)(r,i.getSingularName,i.getSingularName)};t.default=a},"./client/src/lib/dependency-injection/graphql/buildReadOneQuery.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["query ReadOne","($ID: ID!)  {\n    readOne","(ID: $ID) {\n      ","\n    }\n  }\n  ",""],["query ReadOne","($ID: ID!)  {\n    readOne","(ID: $ID) {\n      ","\n    }\n  }\n  ",""]),o=n("./client/src/lib/dependency-injection/graphql/tags.js"),i=n("./client/src/lib/dependency-injection/graphql/helpers.js"),a=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultTag)(r,i.getSingularName,i.getSingularName,i.getFields,i.getFragments)};t.default=a},"./client/src/lib/dependency-injection/graphql/buildReadQuery.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["query Read",""," {\n    read",""," {\n      ","\n    }\n  }\n  ",""],["query Read",""," {\n    read",""," {\n      ","\n    }\n  }\n  ",""]),o=n("./client/src/lib/dependency-injection/graphql/tags.js"),i=n("./client/src/lib/dependency-injection/graphql/helpers.js"),a=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultTag)(r,i.getPluralName,i.getVariables,i.getPluralName,i.getRootParams,i.getFields,i.getFragments)};t.default=a},"./client/src/lib/dependency-injection/graphql/buildUpdateMutation.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["mutation Update","(\n    $input:","!\n    ","\n  ) {\n    update","(\n      input: $input\n      ","\n    ) {\n      ","\n    }\n  }\n  ",""],["mutation Update","(\n    $input:","!\n    ","\n  ) {\n    update","(\n      input: $input\n      ","\n    ) {\n      ","\n    }\n  }\n  ",""]),o=n("./client/src/lib/dependency-injection/graphql/tags.js"),i=n("./client/src/lib/dependency-injection/graphql/helpers.js"),a=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.defaultTag)(r,i.getSingularName,i.getUpdateMutationType,i.getVariables,i.getSingularName,i.getParams,i.getFields,i.getFragments)};t.default=a},"./client/src/lib/dependency-injection/graphql/helpers.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(){return!!document.body.getAttribute("data-graphql-legacy")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=t.ROOT_FIELD="root",l={limit:"Int",offset:"Int"},c=function(e){return"edges { node { "+e.join(" ")+" } } pageInfo { totalCount }"},u=(t.getSingularName=function(e){return e.singularName},t.getPluralName=function(e){return e.pluralName},t.getVariables=function(e){var t=e.params,n=e.pagination,r=void 0===n||n,o=r?a({},t,l):t,s=Object.entries(o).map(function(e){var t=i(e,2);return"$"+t[0]+": "+t[1]});return s.length?"("+s.join(", ")+")":""},t.getParams=function(e){var t=e.params,n=e.pagination,r=void 0===n||n,o=r?a({},t,l):t,s=Object.entries(o).map(function(e){var t=i(e,2);return t[0]+": $"+t[1]});return s.length?"("+s.join(", ")+")":""});t.getRootParams=function(e){var t=e.args,n=e.pagination,r=void 0===n||n,o=t[s]||{};return u({params:o,pagination:r})},t.getFields=function e(t){var n=t.args,o=t.fields,i=t.pagination,a=void 0===i||i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[s],d=o.map(function(t,i){if(Array.isArray(t))return"\n      {\n        "+e({args:n,fields:t,pagination:!1},[].concat(r(l),[o[i-1]]))+"\n      }";var a=[].concat(r(l),[t]),s=a.join("/"),c=n[s]||{};return""+t+u({params:c,pagination:!1})});return a?c(d):d.join(" ")},t.getFragments=function(e){var t=e.availableFragments,n=e.fragments,r=void 0===n?[]:n;return Object.entries(t).reduce(function(e,t){var n=i(t,2),o=n[0],a=n[1];return r.includes(o)?e+" "+a:e},"")},t.getCreateMutationType=function(e){var t=e.singularName;return o()?t+"CreateInputType":"Create"+t+"Input"},t.getUpdateMutationType=function(e){var t=e.singularName;return o()?t+"UpdateInputType":"Update"+t+"Input"}},"./client/src/lib/dependency-injection/graphql/tags.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=(t.captureTag=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return{strings:e,expressions:n}},t.defaultTag=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.map(function(e,t){return""+e+(0===n[t]?n[t]:n[t]||"")}).join("")});t.processTag=function(e){return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];var s=i.map(function(t){return"function"!=typeof t?t:t(e)});return o.apply(void 0,[t].concat(r(s)))}}},"./client/src/lib/dependency-injection/graphql/templates.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CREATE="scaffoldCreate",t.READ="scaffoldRead",t.READ_ONE="scaffoldReadOne",t.UPDATE="scaffoldUpdate",t.DELETE="scaffoldDelete",t.QUERY="baseQuery"},"./client/src/lib/dependency-injection/inject.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d=n("react"),f=r(d),p=n("./client/src/lib/dependency-injection/injectorContext.js"),h=r(p),m=function(e,t){return t},b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m;return function(r){if(e&&!Array.isArray(e))throw new Error("\n      withInjector() passed an argument for dependencies that is "+("undefined"==typeof deps?"undefined":u(deps))+".\n      Must be an array of named dependencies.\n    ");if(t&&"function"!=typeof t)throw new Error("\n      Second parameter of inject() [mapDependenciesToProps] must be a function, taking the resolved\n      dependencies as enumerated arguments, and returning a map of prop names to dependencies.\n    ");if("function"!=typeof n)throw new Error("\n      Third parameter of inject() [getContext] must be a function, taking the component's props\n      and current inject context as parameters, and returning a string representing the Injector\n      context to use throughout the component.\n    ");var p=function(d){function p(e,t){i(this,p);var r=a(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,e,t));return r.state={context:n(e,t.injector.context)},r}return s(p,d),c(p,[{key:"getChildContext",value:function(){return{injector:l({},this.context.injector,{context:this.state.context})}}},{key:"render",value:function(){var n=this,i={};if(e){var a=this.context.injector.get,s=e.map(function(e){return a(e,n.state.context)});if(t?i=t.apply(void 0,o(s)):e.forEach(function(e,t){i[e]=s[t]}),!i||"object"!==(void 0===i?"undefined":u(i)))throw new Error("\n            mapDepedenciesToProps parameter passed to inject()\n            should return an object that maps prop names to dependencies\n          ")}var c=l({},i,this.props);return f.default.createElement(r,c)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=n(e,t.context);return r!==t.context?{context:r}:null}}]),p}(d.Component);return p.contextTypes=h.default,p.childContextTypes=h.default,p}};t.default=b},"./client/src/lib/dependency-injection/injectGraphql.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("./client/src/lib/dependency-injection/Container.js"),d=r(u),f=n("./client/src/lib/dependency-injection/withInjector.js"),p=r(f),h=function(e,t){return function(n){var r=function(r){function l(e){o(this,l);var t=i(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e));return t.state={target:null,error:!1},t}return a(l,r),s(l,[{key:"componentDidMount",value:function(){var r=this;d.default.ready(function(){var o=!0,i=null;try{var a=r.context.injector.query(e,t),s=a.getApolloHOC();i=s(n),o=!1}catch(e){throw r.setState({target:i,error:o}),e}r.setState({target:i,error:o})})}},{key:"render",value:function(){if(this.state.error){var n=[e,t].join("."),r="Error loading '"+n+"', perhaps it wasn't registered properly?";return c.default.createElement("div",null,r)}var o=this.state.target;return o?c.default.createElement(o,this.props):null}}]),l}(l.Component);return(0,p.default)(r)}};t.default=h},"./client/src/lib/dependency-injection/injectorContext.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("prop-types"),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default={injector:o.default.shape({get:o.default.func,context:o.default.string,validate:o.default.func})}},"./client/src/lib/dependency-injection/loadComponent.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("react-redux"),f=n("react-apollo"),p=n("./client/src/lib/dependency-injection/provideInjector.js"),h=r(p),m=n("./client/src/lib/dependency-injection/withInjector.js"),b=r(m),g=n("./client/src/lib/dependency-injection/Container.js"),v=r(g),y=n("./client/src/components/NotFoundComponent/NotFoundComponent.js"),_=r(y),j=n("./client/src/lib/dependency-injection/injectorContext.js"),w=r(j),O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=function(n){function r(e){o(this,r);var t=i(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.state={target:null,error:!1},t}return a(r,n),l(r,[{key:"getChildContext",value:function(){var e=t&&t.context;return e?{injector:s({},this.context.injector,{context:e})}:this.context}},{key:"componentDidMount",value:function(){var n=this;v.default.ready(function(){if("string"==typeof e){var r=!0,o=null;try{o=n.context.injector.get(e,t&&t.context),r=!1}catch(e){throw n.setState({target:o,error:r}),e}return void n.setState({target:o,error:r})}n.setState({target:e})})}},{key:"render",value:function(){var n=this.state.target;if(this.state.error){var r=_.default;try{r=this.context.injector.get("NotFoundComponent")}catch(e){}return u.default.createElement(r,s({},this.props,{itemName:e}))}if(n){if(t){var o=s({},window.ss,t),i=o.store,a=o.apolloClient;return u.default.createElement(f.ApolloProvider,{client:a},u.default.createElement(d.Provider,{store:i},u.default.createElement(n,this.props)))}return u.default.createElement(n,this.props)}return null}}]),r}(c.Component);return r.childContextTypes=w.default,(n||h.default)((0,b.default)(r))};t.default=O},"./client/src/lib/dependency-injection/provideContext.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("./client/src/lib/dependency-injection/injectorContext.js"),f=r(d),p=function(e){return function(t){var n=function(n){function r(){return o(this,r),i(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return a(r,n),l(r,[{key:"getChildContext",value:function(){return{injector:s({},this.context.injector,{context:e})}}},{key:"render",value:function(){return u.default.createElement(t,this.props)}}]),r}(c.Component);return n.contextTypes=f.default,n.childContextTypes=f.default,n}};t.default=p},"./client/src/lib/dependency-injection/provideInjector.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default,n=function(n){function r(){return o(this,r),i(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return a(r,n),l(r,[{key:"getChildContext",value:function(){var e=t.component,n=t.form,r=t.query;return{injector:{query:r.get.bind(r),get:e.get.bind(e),validate:n.getValidation.bind(n)}}}},{key:"render",value:function(){return u.default.createElement(e,this.props)}}]),r}(c.Component);return n.childContextTypes=h.default,n}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("./client/src/lib/dependency-injection/Container.js"),f=r(d),p=n("./client/src/lib/dependency-injection/injectorContext.js"),h=r(p);t.default=s},"./client/src/lib/dependency-injection/withInjector.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n("./client/src/lib/dependency-injection/injectorContext.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o),a=function(e){return e.contextTypes=r({},e.contextTypes||{},i.default),e.displayName="withInjector(\n    "+(e.displayName||e.name||"Component")+"\n  )",e};t.default=a},"./client/src/state/breadcrumbs/BreadcrumbsActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={SET_BREADCRUMBS:"SET_BREADCRUMBS"}},"./client/src/state/breadcrumbs/BreadcrumbsReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments[1];switch(t.type){case l.default.SET_BREADCRUMBS:return(0,a.default)(Object.assign([],t.payload.breadcrumbs));default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n("deep-freeze-strict"),a=r(i),s=n("./client/src/state/breadcrumbs/BreadcrumbsActionTypes.js"),l=r(s),c=(0,a.default)([]);t.default=o},"./client/src/state/config/ConfigActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={SET_CONFIG:"SET_CONFIG"}},"./client/src/state/config/ConfigActions.js":function(e,t,n){"use strict";function r(e){return{type:i.default.SET_CONFIG,payload:{config:e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.setConfig=r;var o=n("./client/src/state/config/ConfigActionTypes.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o)},"./client/src/state/config/ConfigReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case l.default.SET_CONFIG:return(0,a.default)(Object.assign({},e,t.payload.config));default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n("deep-freeze-strict"),a=r(i),s=n("./client/src/state/config/ConfigActionTypes.js"),l=r(s);t.default=o},"./client/src/state/mobileMenu/MobileMenuActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TOGGLE_MENU:"TOGGLE_MENU",OPEN_MENU:"OPEN_MENU",CLOSE_MENU:"CLOSE_MENU"}},"./client/src/state/mobileMenu/MobileMenuActions.js":function(e,t,n){"use strict";function r(){return{type:s.default.TOGGLE_MENU,payload:null}}function o(){return{type:s.default.OPEN_MENU,payload:null}}function i(){return{type:s.default.CLOSE_MENU,payload:null}}Object.defineProperty(t,"__esModule",{value:!0}),t.toggleMobileMenu=r,t.openMobileMenu=o,t.closeMobileMenu=i;var a=n("./client/src/state/mobileMenu/MobileMenuActionTypes.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(a)},"./client/src/state/mobileMenu/MobileMenuReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;switch(arguments[1].type){case c.default.TOGGLE_MENU:return(0,s.default)(i({},e,{isOpen:!e.isOpen}));case c.default.OPEN_MENU:return(0,s.default)(i({},e,{isOpen:!0}));case c.default.CLOSE_MENU:return(0,s.default)(i({},e,{isOpen:!1}));default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("deep-freeze-strict"),s=r(a),l=n("./client/src/state/mobileMenu/MobileMenuActionTypes.js"),c=r(l),u={isOpen:!1};t.default=o},"./client/src/state/records/RecordsReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments[1];switch(t.type){case d.default.FETCH_RECORDS_SUCCESS:var n=t.payload.recordType;if(!n)throw new Error("Undefined record type");var r=t.payload.data._embedded[n]||[];return(0,c.default)(s({},e,i({},n,r)));case d.default.FETCH_RECORD_SUCCESS:var a=t.payload.recordType,l=t.payload.data;if(!a)throw new Error("Undefined record type");if(!l)throw new Error("Undefined record data given");var u=e[a]||[];return u.find(function(e){return e.ID===l.ID})?(0,c.default)(s({},e,i({},a,u.map(function(e){return e.ID===l.ID?l:e})))):(0,c.default)(s({},e,i({},a,[].concat(o(u),[l]))));case d.default.DELETE_RECORD_SUCCESS:var p=t.payload.recordType;if(!p)throw new Error("Undefined record type");var h=e[p].filter(function(e){return e.ID!==t.payload.id});return(0,c.default)(s({},e,i({},p,h)));default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n("deep-freeze-strict"),c=r(l),u=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/records/RecordsActionTypes.js"),d=r(u),f={};t.default=a},"./client/src/state/schema/SchemaActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={SET_SCHEMA:"SET_SCHEMA",SET_SCHEMA_STATE_OVERRIDES:"SET_SCHEMA_STATE_OVERRIDES",SET_SCHEMA_LOADING:"SET_SCHEMA_LOADING"};t.default=r},"./client/src/state/schema/SchemaReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;switch(t.type){case u.default.SET_SCHEMA:var n=e[t.payload.id]||{};return(0,l.default)(a({},e,o({},t.payload.id,a({},n,t.payload))));case u.default.SET_SCHEMA_STATE_OVERRIDES:var r=e[t.payload.id]||{},i=t.payload.stateOverride;return i&&i.fields?(0,l.default)(a({},e,o({},t.payload.id,a({},r,{stateOverride:i})))):e;case u.default.SET_SCHEMA_LOADING:var s=e[t.payload.id]||{},c=s.metadata||{};return(0,l.default)(a({},e,o({},t.payload.id,a({},s,{metadata:a({},c,{loading:t.payload.loading})}))));default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=i;var s=n("deep-freeze-strict"),l=r(s),c=n("./client/src/state/schema/SchemaActionTypes.js"),u=r(c),d=(0,l.default)({})},"./client/src/state/tabs/TabsActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TABS_ACTIVATE_TAB:"TABS_ACTIVATE_TAB"}},"./client/src/state/tabs/TabsReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=(0,l.default)(e,t,f);switch(t.type){case u.default.TABS_ACTIVATE_TAB:return n(function(){return{activeTab:t.payload.tab}});default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n("deep-freeze-strict"),a=r(i),s=n("lib/reduxFieldReducer"),l=r(s),c=n("./client/src/state/tabs/TabsActionTypes.js"),u=r(c),d=(0,a.default)({fields:{}}),f=(0,a.default)({activeTab:null})},"./client/src/state/toasts/ToastConstants.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STAY_TIME=6e3,t.FADEOUT_TIME=1200},"./client/src/state/toasts/ToastsActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={DISPLAY:"DISPLAY_TOAST",DISMISS:"DISMISS_TOAST",REMOVE:"REMOVE_TOAST",PAUSE:"PAUSE_TOAST",RESUME:"RESUME_TOAST"}},"./client/src/state/toasts/ToastsReducer.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1],n=t.type,r=t.payload;switch(n){case l.default.DISPLAY:return m(e,r);case l.default.DISMISS:return b(e,r.id);case l.default.REMOVE:return g(e,r.id);case l.default.PAUSE:return f(e);case l.default.RESUME:return p(e);default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=n("./client/src/state/toasts/ToastsActionTypes.js"),l=function(e){return e&&e.__esModule?e:{default:e}}(s),c=n("./client/src/state/toasts/ToastConstants.js"),u={paused:!1,toasts:[]},d=function(e){var t=e.stay,n=e.dismissCallback;return t?void 0:setTimeout(n,c.STAY_TIME)},f=function(e){return{paused:!0,toasts:e.toasts.map(function(e){var t=e.timeout,n=o(e,["timeout"]);return t&&clearTimeout(t),n})}},p=function(e){return{paused:!1,toasts:e.toasts.map(function(e){return a({timeout:d(e)},e)})}},h=function(e,t){return a({},e,{toasts:t})},m=function(e,t){return h(e,[].concat(r(e.toasts),[a({},t,{timeout:e.paused?void 0:d(t),dismissed:!1})]))},b=function(e,t){return h(e,e.toasts.map(function(e){return e.id===t?a({},e,{dismissed:!0}):e}))},g=function(e,t){return h(e,e.toasts.filter(function(e){return e.id!==t}))};t.default=i},"./client/src/state/treeDropdownField/TreeDropdownFieldActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TREEFIELD_SET_VISIBLE:"TREEDROPDOWNFIELD_SET_VISIBLE",TREEFIELD_UPDATED_TREE:"TREEDROPDOWNFIELD_UPDATED_TREE",TREEFIELD_UPDATING_TREE:"TREEDROPDOWNFIELD_UPDATING_TREE",TREEFIELD_UPDATE_FAILED:"TREEFIELD_UPDATE_FAILED",TREEFIELD_SET_SEARCH:"TREEFIELD_SET_SEARCH",TREEFIELD_ADD_SELECTED_VALUES:"TREEFIELD_ADD_SELECTED_VALUES"}},"./client/src/state/treeDropdownField/TreeDropdownFieldActions.js":function(e,t,n){"use strict";function r(e,t){return{type:u.default.TREEFIELD_SET_VISIBLE,payload:{fieldId:e,path:t}}}function o(e,t){return{type:u.default.TREEFIELD_UPDATING_TREE,payload:{fieldId:e,path:t}}}function i(e,t,n){return{type:u.default.TREEFIELD_UPDATED_TREE,payload:{fieldId:e,path:t,tree:n}}}function a(e,t){return{type:u.default.TREEFIELD_UPDATE_FAILED,payload:{fieldId:e,path:t}}}function s(e,t){return{type:u.default.TREEFIELD_SET_SEARCH,payload:{fieldId:e,search:t}}}function l(e,t){return{type:u.default.TREEFIELD_ADD_SELECTED_VALUES,payload:{fieldId:e,values:t}}}Object.defineProperty(t,"__esModule",{value:!0}),t.setVisible=r,t.beginTreeUpdating=o,t.updateTree=i,t.updateTreeFailed=a,t.setSearch=s,t.addSelectedValues=l;var c=n("./client/src/state/treeDropdownField/TreeDropdownFieldActionTypes.js"),u=function(e){return e&&e.__esModule?e:{default:e}}(c)},"./client/src/state/treeDropdownField/TreeDropdownFieldReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e){return Array.isArray(e)?e:Array.from(e)}function a(e,t,n){if(0===t.length)return n;var r=i(t),o=r[0],s=r.slice(1);return e.children?(0,d.default)(c({},e,{children:e.children.map(function(e){return e.id===o?a(e,s,n):e})})):e}function s(e){return e.length?e[e.length-1]:0}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=(0,p.default)(e,t,g),r=function(e,t){return e.filter(function(e){return e!==t})},i=function(e,t){return e.find(function(e){return e===t})?e:[].concat(o(e),[t]).sort()};switch(t.type){case m.default.TREEFIELD_SET_VISIBLE:return n(function(){return{visible:t.payload.path}});case m.default.TREEFIELD_UPDATING_TREE:return n(function(e){return{loading:i(e.loading,s(t.payload.path)),failed:r(e.failed,s(t.payload.path))}});case m.default.TREEFIELD_UPDATED_TREE:return n(function(e){return{tree:a(e.tree,t.payload.path,t.payload.tree),loading:r(e.loading,s(t.payload.path)),failed:r(e.failed,s(t.payload.path))}});case m.default.TREEFIELD_UPDATE_FAILED:return n(function(e){return{loading:r(e.loading,s(t.payload.path)),failed:i(e.failed,s(t.payload.path))}});case m.default.TREEFIELD_SET_SEARCH:return n(function(e){return c({},e,{search:t.payload.search})});case m.default.TREEFIELD_ADD_SELECTED_VALUES:var l=t.payload.values||[];return n(function(e){return c({},e,{selectedValues:[].concat(o(e.selectedValues.filter(function(e){return!l.find(function(t){return t.id===e.id})})),o(l)).sort(function(e,t){return e.id-t.id})})});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=l;var u=n("deep-freeze-strict"),d=r(u),f=n("lib/reduxFieldReducer"),p=r(f),h=n("./client/src/state/treeDropdownField/TreeDropdownFieldActionTypes.js"),m=r(h),b=(0,d.default)({fields:{}}),g=(0,d.default)({visible:[],tree:{},loading:[],failed:[],search:"",selectedValues:[]})},"./client/src/state/unsavedForms/UnsavedFormsActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={ADD_FORM_CHANGED:"ADD_FORM_CHANGED",REMOVE_FORM_CHANGED:"REMOVE_FORM_CHANGED"}},"./client/src/state/unsavedForms/UnsavedFormsReducer.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=t.meta&&t.meta.form;switch(t.type){case u.default.ADD_FORM_CHANGED:case l.actionTypes.CHANGE:return(0,s.default)([].concat(o(e.filter(function(e){return e.name!==n})),[{name:n}]));case u.default.REMOVE_FORM_CHANGED:case l.actionTypes.STOP_SUBMIT:return(0,s.default)([].concat(o(e.filter(function(e){return e.name!==n}))));case l.actionTypes.DESTROY:return(0,s.default)([].concat(o(e.filter(function(e){return!n.includes(e.name)}))));default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n("deep-freeze-strict"),s=r(a),l=n("redux-form"),c=n("./client/src/state/unsavedForms/UnsavedFormsActionTypes.js"),u=r(c);t.default=i},"./client/src/state/usedOn/usedOnActions.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return{type:u.default.SAVE_USED_ON,payload:{identifier:e,usedOn:t}}}function i(e,t){return{type:u.default.LOAD_USED_ON_FAILED,payload:{identifier:e,error:t.message}}}function a(e,t,n){var r={method:t,headers:{Accept:"application/json"},credentials:"same-origin"};return function(a){if(!e||!t||!n){var s=l.default._t("Admin.NOT_AVAILABLE_USED_DATA","The usage data is currently unavailable.");return Promise.resolve(a(i(e,s)))}return a({type:u.default.LOAD_USED_ON,payload:{identifier:e}}),(0,f.default)(n,r).then(function(e){return e.json()}).then(function(t){a(o(e,t))}).catch(function(t){a(i(e,t))})}}Object.defineProperty(t,"__esModule",{value:!0}),t.saveUsedOn=o,t.loadUsedOnFailed=i,t.loadUsedOn=a;var s=n("i18n"),l=r(s),c=n("./client/src/state/usedOn/usedOnTypes.js"),u=r(c),d=n("isomorphic-fetch"),f=r(d)},"./client/src/state/usedOn/usedOnReducer.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments[1],n=t&&t.payload&&t.payload.identifier;if(!n)return e;switch(t.type){case c.default.SAVE_USED_ON:var i=t.payload.usedOn;return s({},e,{loading:e.loading.filter(function(e){return e!==n}),usedOn:s({},e.usedOn,o({},n,i.usage))});case c.default.LOAD_USED_ON:return e.loading.includes(n)?e:s({},e,{loading:[].concat(r(e.loading),[n]),errors:Object.entries(e.errors).reduce(function(e,t){var r=a(t,2),i=r[0],l=r[1];return i===n?e:s({},e,o({},i,l))},{})});case c.default.LOAD_USED_ON_FAILED:var l=t.payload.error;return s({},e,{loading:e.loading.filter(function(e){return e!==n}),errors:s({},e.errors,o({},n,l))});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n("./client/src/state/usedOn/usedOnTypes.js"),c=function(e){return e&&e.__esModule?e:{default:e}}(l),u={loading:[],usedOn:{},errors:{}};t.default=i},"./client/src/state/usedOn/usedOnTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={LOAD_USED_ON:"LOAD_USED_ON",SAVE_USED_ON:"SAVE_USED_ON",LOAD_USED_ON_FAILED:"LOAD_USED_ON_FAILED"};t.default=r},"./client/src/state/viewMode/ViewModeActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={SELECT_EDIT:"SELECT_EDIT",SELECT_PREVIEW:"SELECT_PREVIEW",SELECT_SPLIT:"SELECT_SPLIT",SPLIT_AVAILABLE:"SPLIT_AVAILABLE"}},"./client/src/state/viewMode/ViewModeReducer.js":function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments[1];switch(t.type){case a.default.SELECT_EDIT:return o({},e,{activeState:l.VIEW_MODE_STATES.EDIT,lockState:!0});case a.default.SELECT_PREVIEW:return o({},e,{activeState:l.VIEW_MODE_STATES.PREVIEW,lockState:!0});case a.default.SELECT_SPLIT:return o({},e,{activeState:l.VIEW_MODE_STATES.SPLIT,lockState:!1});case a.default.SPLIT_AVAILABLE:var n=t.payload.panelWidth>s.SPLITMODE_BREAKPOINT,r=e.activeState;return e.lockState||r!==l.VIEW_MODE_STATES.SPLIT||n?!e.lockState&&r===l.VIEW_MODE_STATES.EDIT&&n&&(r=l.VIEW_MODE_STATES.SPLIT):r=l.VIEW_MODE_STATES.EDIT,o({},e,{splitAvailable:n,activeState:r});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("./client/src/state/viewMode/ViewModeActionTypes.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(i),s=n("./client/src/lib/constants.js"),l=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/viewMode/ViewModeStates.js"),c={activeState:l.VIEW_MODE_STATES.SPLIT,splitAvailable:!0,lockState:!1};t.default=r},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Accordion/Accordion.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("react"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e){return o.default.createElement("div",{className:"accordion",role:"tablist","aria-multiselectable":"true"},e.children)};t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Accordion/AccordionBlock.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("react"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e){var t=e.groupid+"_Header",n=e.groupid+"_Items",r=n.replace(/\\/g,"_"),i=t.replace(/\\/g,"_"),a={id:r,"aria-expanded":!0,className:"list-group list-group-flush collapse show",role:"tabpanel","aria-labelledby":t};return o.default.createElement("div",{className:"accordion__block"},o.default.createElement("a",{className:"accordion__title","data-toggle":"collapse",href:"#"+r,"aria-expanded":"true","aria-controls":n,id:i,role:"tab"},e.title),o.default.createElement("div",a,e.children))};t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Badge/Badge.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.statuses=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("classnames"),d=r(u),f=n("prop-types"),p=r(f),h=t.statuses=["default","info","success","warning","danger","primary","secondary"],m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){var e=this.props,t=e.status,n=e.inverted,r=e.className,o=e.message;if(!t)return null;var i=n?"badge-"+t+"--inverted":"",a=(0,d.default)(r,"badge","badge-"+t,i);return c.default.createElement("span",{className:a},o)}}]),t}(l.PureComponent);m.propTypes={message:p.default.node,status:p.default.oneOf(h),className:p.default.string,inverted:p.default.bool},m.defaultProps={status:"default",className:"badge-pill",inverted:!1},t.default=m},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Breadcrumb/Breadcrumb.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){return{crumbs:e.breadcrumbs}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n("react"),f=r(d),p=n("react-redux"),h=n("classnames"),m=r(h),b=n("prop-types"),g=r(b),v=n("components/FileStatusIcon/FileStatusIcon"),y=r(v),_=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return s(t,e),u(t,[{key:"getLastCrumb",value:function(){return this.props.crumbs&&this.props.crumbs[this.props.crumbs.length-1]}},{key:"renderBreadcrumbs",value:function(){return this.props.crumbs?this.props.crumbs.slice(0,-1).map(function(e){return f.default.createElement("li",{key:e.text,className:"breadcrumb__item"},f.default.createElement("a",{className:"breadcrumb__item-title",href:e.href,onClick:e.onClick},e.text))}):null}},{key:"renderLastCrumb",value:function(){var e=this.getLastCrumb();return e?f.default.createElement("div",{className:"breadcrumb__item breadcrumb__item--last"},f.default.createElement("h2",{className:"breadcrumb__item-title"},e.text,e.icon&&this.renderIcons([e.icon]),e.icons&&this.renderIcons(e.icons))):null}},{key:"renderIcons",value:function(e){return e.map(function(e,t){var n=e.nodeName,r=e.className,i=e.hasRestrictedAccess,a=o(e,["nodeName","className","hasRestrictedAccess"]),s=c({},a),l=(0,m.default)(["breadcrumb__icon",r]);return s=c({tabIndex:"0"},s),s.hasOwnProperty("onClick")&&(s=c({role:"button"},s)),s.key="breadcrumb-icon-"+t,"FileStatusIcon"===n?(s.fileID=0,s.hasRestrictedAccess=i,s.extraClassName=l,f.default.createElement(y.default,s)):(s.className=l,f.default.createElement("span",s))})}},{key:"render",value:function(){return f.default.createElement("div",{className:"breadcrumb__container fill-height flexbox-area-grow"},this.props.crumbs&&this.props.crumbs.length>1&&f.default.createElement("div",{className:"breadcrumb__list-container"},f.default.createElement("ol",{className:"breadcrumb"},this.renderBreadcrumbs())),this.renderLastCrumb())}}]),t}(d.Component);_.propTypes={crumbs:g.default.arrayOf(g.default.shape({onClick:g.default.func,text:g.default.string,icon:g.default.shape({nodeName:g.default.string,className:g.default.string,onClick:g.default.func,action:function(e){if(e.action)throw new Error("action: no longer used")}}),icons:g.default.arrayOf(g.default.shape({nodeName:g.default.string,className:g.default.string,onClick:g.default.func}))}))},t.Component=_,t.default=(0,p.connect)(l)(_)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Button/BackButton.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("react"),s=r(a),l=n("components/Button/Button"),c=r(l),u=n("classnames"),d=r(u),f=n("i18n"),p=r(f),h=function(e){var t=e.className,n=o(e,["className"]);return s.default.createElement(c.default,i({className:(0,d.default)(t,"back-button")},n))};h.propTypes=c.default.propTypes,h.defaultProps=i({},c.default.defaultProps,{noText:!0,icon:"left-open-big",children:p.default._t("Admin.BACK","Back")}),t.default=h},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Button/Button.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("react"),s=r(a),l=n("reactstrap"),c=n("prop-types"),u=r(c),d=n("classnames"),f=r(d),p=n("./client/src/components/Button/IconHOC.js"),h=r(p),m=function(e){var t=e.className,n=e.noText,r=e.children,a=o(e,["className","noText","children"]);return s.default.createElement(l.Button,i({className:(0,f.default)(t,{"btn--no-text":n}),"aria-label":n?r:void 0},a),n?void 0:r)};m.propTypes=i({},l.Button.propTypes,{noText:u.default.bool}),m.defaultProps=i({},l.Button.defaultProps,{noText:!1}),t.default=(0,h.default)(m)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/CheckboxSetField/CheckboxSetField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("./client/src/components/OptionsetField/OptionField.js"),f=r(d),p=n("components/FieldHolder/FieldHolder"),h=r(p),m=n("prop-types"),b=r(m),g=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getItemKey=n.getItemKey.bind(n),n.getOptionProps=n.getOptionProps.bind(n),n.handleChange=n.handleChange.bind(n),n.getValues=n.getValues.bind(n),n}return a(t,e),l(t,[{key:"getItemKey",value:function(e,t){return this.props.id+"-"+(e.value||"empty"+t)}},{key:"getValues",value:function(){var e=this.props.value;return Array.isArray(e)||("string"==typeof e&&(e=e.length?[e]:[]),"number"==typeof e&&(e=[e])),e?e.map(function(e){return""+e}):[]}},{key:"getOptionProps",value:function(e,t){var n=this.getValues(),r=this.getItemKey(e,t);return{key:r,id:r,name:this.props.name,className:this.props.itemClass,disabled:e.disabled||this.props.disabled,readOnly:this.props.readOnly,onChange:this.handleChange,value:n.indexOf(""+e.value)>-1,title:e.title,type:"checkbox"}}},{key:"handleChange",value:function(e,t){var n=this;if("function"==typeof this.props.onChange){var r=this.getValues(),o=this.props.source.filter(function(e,o){return n.getItemKey(e,o)===t.id?1===t.value:r.indexOf(""+e.value)>-1}).map(function(e){return""+e.value});this.props.onChange(e,{id:this.props.id,value:o})}}},{key:"render",value:function(){var e=this;return this.props.source?u.default.createElement("div",null,this.props.source.map(function(t,n){return u.default.createElement(f.default,s({},e.getOptionProps(t,n),{hideLabels:!0}))})):null}}]),t}(c.Component);g.propTypes={className:b.default.string,extraClass:b.default.string,itemClass:b.default.string,id:b.default.string,name:b.default.string.isRequired,source:b.default.arrayOf(b.default.shape({value:b.default.oneOfType([b.default.string,b.default.number]),title:b.default.any,disabled:b.default.bool})),onChange:b.default.func,value:b.default.any,readOnly:b.default.bool,disabled:b.default.bool},g.defaultProps={extraClass:"",className:"",value:[]},t.Component=g;var v=function(e){var t=(0,h.default)(g);return u.default.createElement(t,e)};t.default=v},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FieldHolder/FieldHolder.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e){var t=function(t){function n(){return i(this,n),a(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return s(n,t),u(n,[{key:"getMessage",value:function(){var e=null;this.props.message&&this.props.message.value&&(e=this.props.message);var t=this.props.meta;return t&&t.error&&t.touched&&(!e||t.dirty)&&(e=t.error),e}},{key:"getHolderProps",value:function(){var e;return{className:(0,g.default)((e={field:!0},o(e,this.props.extraClass,!0),o(e,"readonly",this.props.readOnly),e)),id:this.props.holderId}}},{key:"renderMessage",value:function(){var e=this.getMessage();if(!e)return null;var t=(0,g.default)(["form__field-message","form__field-message--"+e.type]),n=(0,m.default)("div",e.value);return f.default.createElement("div",{className:t},n)}},{key:"renderLeftTitle",value:function(){var e=null!==this.props.leftTitle?this.props.leftTitle:this.props.title;return!e||this.props.hideLabels?null:(0,m.default)(p.Label,e,{className:"form__field-label",for:this.props.id})}},{key:"renderRightTitle",value:function(){return!this.props.rightTitle||this.props.hideLabels?null:(0,m.default)(p.Label,this.props.rightTitle,{className:"form__field-label",for:this.props.id})}},{key:"renderField",value:function(){var t=Boolean(this.getMessage()),n=c({},this.props,{extraClass:(0,g.default)(this.props.extraClass,{"is-invalid":t})}),r=f.default.createElement(e,n),o=this.props.data.prefix,i=this.props.data.suffix;return o||i?f.default.createElement(p.InputGroup,null,o&&f.default.createElement(p.InputGroupAddon,{addonType:"prepend"},o),r,i&&f.default.createElement(p.InputGroupAddon,{addonType:"append"},i)):r}},{key:"renderTitleTip",value:function(){return this.props.id&&this.props.titleTip&&this.props.titleTip.content?f.default.createElement(j.default,{id:"FieldHolder-"+this.props.id+"-titleTip",content:this.props.titleTip.content,fieldTitle:this.props.title,type:_.TIP_TYPES.TITLE,icon:"menu-help"}):null}},{key:"renderDescription",value:function(){return null===this.props.description?null:(0,m.default)("div",this.props.description,{className:"form__field-description"})}},{key:"render",value:function(){return this.props.noHolder?this.renderField():f.default.createElement(p.FormGroup,this.getHolderProps(),this.renderLeftTitle(),this.renderTitleTip(),f.default.createElement("div",{className:"form__field-holder"},this.renderField(),this.renderMessage(),this.renderDescription()),this.renderRightTitle())}}]),n}(d.Component);return t.propTypes={leftTitle:y.default.any,rightTitle:y.default.any,title:y.default.any,extraClass:y.default.string,holderId:y.default.string,id:y.default.string,name:y.default.string,description:y.default.any,hideLabels:y.default.bool,message:y.default.shape({extraClass:y.default.string,value:y.default.any,type:y.default.string}),data:y.default.oneOfType([y.default.array,y.default.shape({prefix:y.default.string,suffix:y.default.string})]),titleTip:y.default.shape(_.tipShape)},t.defaultProps={className:"",extraClass:"",leftTitle:null,rightTitle:null,title:"",description:null,hideLabels:!1,noHolder:!1,message:null,data:{}},t}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n("react"),f=r(d),p=n("reactstrap"),h=n("./client/src/lib/castStringToElement.js"),m=r(h),b=n("classnames"),g=r(b),v=n("prop-types"),y=r(v),_=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tip/Tip.js"),j=r(_);t.default=l},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FileStatusIcon/FileStatusIcon.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("prop-types"),f=r(d),p=n("i18n"),h=r(p),m=n("classnames"),b=r(m),g=n("reactstrap"),v="file-status-icon",y=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"buildTrackedFormUpload",value:function(e){var t=e?"font-icon-address-card":"font-icon-address-card-warning";return{className:(0,b.default)("icon",v+"__icon",t),"data-title":e?h.default._t("SilverStripe\\Admin\\FileStatusIcon.TRACKED_FORM_UPLOAD_RESTRICTED","Form submission"):h.default._t("SilverStripe\\Admin\\FileStatusIcon.TRACKED_FORM_UPLOAD_UNRESTRICTED","Form submission, unrestricted access")}}},{key:"buildRestrictedFileAttrs",value:function(){return{className:(0,b.default)("icon",v+"__icon","font-icon-user-lock"),"data-title":h.default._t("SilverStripe\\Admin\\FileStatusIcon.ACCESS_RESTRICTED","Restricted access")}}},{key:"renderTooltip",value:function(e,t,n){return u.default.createElement(g.UncontrolledTooltip,{placement:e,target:t,delay:{show:300,hide:0}},n)}},{key:"render",value:function(){var e=this.props,t=e.fileID,n=e.hasRestrictedAccess,r=e.isTrackedFormUpload,o=e.placement,i=e.extraClassName,a=e.disableTooltip,l=e.includeBackground;if(!r&&!n)return"";var c=l?"file-status-icon--background":"",d=(0,b.default)([v,c,i]),f=r?this.buildTrackedFormUpload(n):this.buildRestrictedFileAttrs(),p=r?"tracked-form-upload":"restricted",h="FileStatusIcon-"+p+"-"+t,m=a?"":this.renderTooltip(o,h,f["data-title"]);return u.default.createElement("div",{className:d},u.default.createElement("span",s({id:h},f)),m)}}]),t}(c.PureComponent);y.propTypes={fileID:f.default.number,hasRestrictedAccess:f.default.bool,isTrackedFormUpload:f.default.bool,placement:f.default.string,disableTooltip:f.default.bool,extraClassName:f.default.string,includeBackground:f.default.bool},y.defaultProps={placement:"auto",disableTooltip:!1},t.default=y},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Focusedzone/Focusedzone.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.wasClicked=!1,n.handleElementClick=n.handleElementClick.bind(n),n.handleDocumentClick=n.handleDocumentClick.bind(n),n}return a(t,e),s(t,[{key:"componentDidMount",value:function(){this.container.addEventListener("click",this.handleElementClick),document.addEventListener("click",this.handleDocumentClick)}},{key:"componentWillUnmount",value:function(){this.container.removeEventListener("click",this.handleElementClick),document.removeEventListener("click",this.handleDocumentClick)}},{key:"handleElementClick",value:function(){this.wasClicked=!0}},{key:"handleDocumentClick",value:function(){this.wasClicked||this.props.onClickOut(),this.wasClicked=!1}},{key:"render",value:function(){var e=this;return c.default.createElement("div",{className:this.props.className,ref:function(t){e.container=t}},this.props.children)}}]),t}(l.Component);f.propTypes={children:d.default.any,className:d.default.string,onClickOut:d.default.func.isRequired},f.defaultProps={className:""},t.default=f},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Form/Form.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("components/FormAlert/FormAlert"),f=r(d),p=n("prop-types"),h=r(p),m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"componentDidMount",value:function(){if(this.props.autoFocus&&this.form){var e=this.form.querySelector("input:not([type=hidden]), select, textarea");e&&(e.focus(),e.select&&e.select())}}},{key:"renderMessages",value:function(){return Array.isArray(this.props.messages)?this.props.messages.map(function(e,t){return u.default.createElement(f.default,s({key:t,className:t?"":"message-box--panel-top"},e))}):null}},{key:"render",value:function(){var e=this,t=!1!==this.props.valid,n=this.props.mapFieldsToComponents(this.props.fields),r=this.props.mapActionsToComponents(this.props.actions),o=this.renderMessages(),i=this.props.formTag,a=["form"];!1===t&&a.push("form--invalid"),this.props.attributes&&this.props.attributes.className&&a.push(this.props.attributes.className);var l=s({},this.props.attributes,{onSubmit:this.props.handleSubmit,className:a.join(" ")});return u.default.createElement(i,s({},l,{ref:function(t){e.form=t,e.props.setDOM(t)},role:"form"}),n&&u.default.createElement("fieldset",this.props.fieldHolder,o,this.props.afterMessages,n),r&&r.length?u.default.createElement("div",this.props.actionHolder,r):null)}}]),t}(c.Component);m.propTypes={autoFocus:h.default.bool,setDOM:h.default.func,valid:h.default.bool,actions:h.default.array,fieldHolder:h.default.shape({className:h.default.string}),actionHolder:h.default.shape({className:h.default.string}),extraClass:h.default.string,afterMessages:h.default.node,attributes:h.default.shape({action:h.default.string.isRequired,className:h.default.string,encType:h.default.string,id:h.default.string,method:h.default.string.isRequired}),fields:h.default.array.isRequired,handleSubmit:h.default.func,mapActionsToComponents:h.default.func.isRequired,mapFieldsToComponents:h.default.func.isRequired,messages:h.default.arrayOf(h.default.shape({extraClass:h.default.string,value:h.default.any,type:h.default.string})),formTag:h.default.oneOfType([h.default.func,h.default.string])},m.defaultProps={setDOM:function(){return null},formTag:"form",actionHolder:{className:"btn-toolbar"}},t.Component=m,t.default=m},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Form/FormConstants.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={CSRF_HEADER:"X-SecurityID"}},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormAction/FormAction.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("./client/src/lib/castStringToElement.js"),f=r(d),p=n("classnames"),h=r(p),m=n("prop-types"),b=r(m),g=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=n.handleClick.bind(n),n}return a(t,e),l(t,[{key:"getButtonProps",value:function(){var e=this.props,t=e.attributes,n=e.id,r=e.name;return s({},void 0===t?{}:t,{id:n,name:r,className:this.getButtonClasses(),disabled:this.isDisabled(),onClick:this.handleClick})}},{key:"getButtonClasses",value:function(){var e=this.props,t=e.title,n=e.loading,r=e.extraClass,o={btn:!0,"btn--no-text":"string"!=typeof t,"btn--loading":n,disabled:this.isDisabled()},i=this.getButtonStyle();i&&(o["btn-"+i]=!0);var a=this.getIcon();return a&&(o["font-icon-"+a]=!0),"string"==typeof r&&(o[r]=!0),(0,h.default)(o)}},{key:"getButtonStyle",value:function(){return void 0!==this.props.data.buttonStyle?this.props.data.buttonStyle:void 0!==this.props.buttonStyle?this.props.buttonStyle:this.props.extraClass.split(" ").find(function(e){return e.indexOf("btn-")>-1})?null:this.isPrimary()?"primary":"secondary"}},{key:"getIcon",value:function(){return this.props.icon||this.props.data.icon||null}},{key:"getLoadingIcon",value:function(){return this.props.loading?u.default.createElement("div",{className:"btn__loading-icon"},u.default.createElement("span",{className:"btn__circle btn__circle--1"}),u.default.createElement("span",{className:"btn__circle btn__circle--2"}),u.default.createElement("span",{className:"btn__circle btn__circle--3"})):null}},{key:"isDisabled",value:function(){var e=this.props,t=e.disabled,n=e.readOnly;return t||n}},{key:"isPrimary",value:function(){var e=this.props,t=e.extraClass,n=e.name,r=t.split(" ");return"action_save"===n||!!r.find(function(e){return"ss-ui-action-constructive"===e})}},{key:"handleClick",value:function(e){"function"==typeof this.props.onClick&&this.props.onClick(e,this.props.name||this.props.id)}},{key:"render",value:function(){var e=this.props.title;return u.default.createElement("button",this.getButtonProps(),this.getLoadingIcon(),(0,f.default)("span",e,{className:"btn__title"}))}}]),t}(c.Component);g.propTypes={id:b.default.string,name:b.default.string,onClick:b.default.func,title:b.default.string,type:b.default.string,loading:b.default.bool,icon:b.default.string,disabled:b.default.bool,readOnly:b.default.bool,data:b.default.oneOfType([b.default.array,b.default.shape({buttonStyle:b.default.string})]),extraClass:b.default.string,attributes:b.default.object},g.defaultProps={title:"",icon:"",extraClass:"",attributes:{},data:{},disabled:!1,readOnly:!1},t.default=g},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormAlert/FormAlert.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("reactstrap"),d=n("./client/src/lib/castStringToElement.js"),f=r(d),p=n("classnames"),h=r(p),m=n("prop-types"),b=r(m),g=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClosed=n.handleClosed.bind(n),n.state={visible:!0},n}return a(t,e),s(t,[{key:"getMessageStyle",value:function(){switch(this.props.type){case"good":case"success":return"success";case"info":return"info";case"warn":case"warning":return"warning";default:return"danger"}}},{key:"getMessageProps",value:function(){var e=this.props.type||"no-type";return{className:(0,h.default)(["message-box","message-box--"+e,this.props.className,this.props.extraClass]),color:this.getMessageStyle(),toggle:this.props.closeLabel?this.handleClosed:null,isOpen:!this.props.closeLabel||this.state.visible}}},{key:"handleClosed",value:function(){"function"==typeof this.props.onClosed?this.props.onClosed():this.setState({visible:!1})}},{key:"render",value:function(){if("boolean"!=typeof this.props.visible&&this.state.visible||this.props.visible){var e=(0,f.default)("div",this.props.value);if(e)return c.default.createElement(u.Alert,this.getMessageProps(),e)}return null}}]),t}(l.Component);g.propTypes={extraClass:b.default.string,value:b.default.any,type:b.default.string,onClosed:b.default.func,closeLabel:b.default.string,visible:b.default.bool},g.defaultProps={extraClass:"",className:""},t.default=g},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormBuilder/FormBuilder.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.schemaPropType=t.basePropTypes=t.Component=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n("react"),d=r(u),f=n("prop-types"),p=r(f),h=n("merge"),m=r(h),b=n("lib/schemaFieldValues"),g=r(b),v=n("./client/src/lib/createErrorBlock.js"),y=n("lib/Backend"),_=r(y),j=n("lib/Injector"),w=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),r=e.schema.schema;return n.state={submittingAction:null},n.submitApi=_.default.createEndpointFetcher({url:r.attributes.action,method:r.attributes.method}),n.mapActionsToComponents=n.mapActionsToComponents.bind(n),n.mapFieldsToComponents=n.mapFieldsToComponents.bind(n),n.handleSubmit=n.handleSubmit.bind(n),n.handleAction=n.handleAction.bind(n),n.buildComponent=n.buildComponent.bind(n),n.validateForm=n.validateForm.bind(n),n}return s(t,e),c(t,[{key:"getComponent",value:function(e){var t=e.name,n=e.schemaComponent,r=e.schemaType,o=this.props,i=o.identifier,a=o.getCustomFields;if(a){var s=a(r,i+"."+t);if(s)return s}return null!==n?this.context.injector.get(n,i+"."+t):this.getComponentForDataType(r,t)}},{key:"getComponentForDataType",value:function(e,t){var n=this,r=this.props.identifier,o=function(e){return n.context.injector.get(e,r+"."+t)};switch(e){case"Integer":case"Decimal":return o("NumberField");case"String":case"Text":return o("TextField");case"Date":return o("DateField");case"Time":return o("TimeField");case"Datetime":return o("DatetimeField");case"Hidden":return o("HiddenField");case"SingleSelect":return o("SingleSelectField");case"Custom":return o("GridField");case"Structural":return o("CompositeField");case"Boolean":return o("CheckboxField");case"MultiSelect":return o("CheckboxSetField");default:return null}}},{key:"validateForm",value:function(e){if("function"==typeof this.props.validate)return this.props.validate(e);if(!this.props.schema||!this.props.schema.schema)return{};var t=this.context.injector.validate(this.props.identifier),n={};return t&&(n=t(e,this.props.schema.schema)||{}),(0,v.createErrorBlock)(n)}},{key:"buildComponent",value:function(e){var t=e.input||{},n=l({},e,e.input,{onChange:t.onChange?function(e,n){t.onChange(n?n.value:e)}:null});delete n.input;var r=this.getComponent(n);if(null===r)return null;if(null!==n.schemaComponent&&void 0===r)throw Error("Component not found in injector: "+n.schemaComponent);var o=this.props.createFn;return"function"==typeof o?o(r,n):d.default.createElement(r,l({key:n.id},n))}},{key:"mapFieldsToComponents",value:function(e){var t=this,n=this.props.baseFieldComponent;return e.map(function(e){var r=e;return e.children&&(r=Object.assign({},e,{children:t.mapFieldsToComponents(e.children)})),r=Object.assign({onAutofill:t.props.onAutofill,formid:t.props.form},r),"Structural"===e.schemaType||!0===e.readOnly?t.buildComponent(r):d.default.createElement(n,l({key:r.id},r,{component:t.buildComponent}))})}},{key:"handleAction",value:function(e){"function"==typeof this.props.onAction&&this.props.onAction(e,this.props.values),e.isPropagationStopped()||this.setState({submittingAction:e.currentTarget.name})}},{key:"handleSubmit",value:function(e){var t=this,n="";this.state.submittingAction?n=this.state.submittingAction:this.props.schema.schema.actions[0]&&(n=this.props.schema.schema.actions[0].name);var r=Object.assign({},e,n?o({},n,1):{}),i=this.props.responseRequestedSchema.join(),a={"X-Formschema-Request":i,"X-Requested-With":"XMLHttpRequest"},s=function(e){return t.submitApi(e||r,a).then(function(e){return t.setState({submittingAction:null}),e}).catch(function(e){throw t.setState({submittingAction:null}),e})};return"function"==typeof this.props.onSubmit?this.props.onSubmit(r,n,s):s()}},{key:"mapActionsToComponents",value:function(e){var t=this;return e.map(function(e){var n=Object.assign({},e);return e.children?n.children=t.mapActionsToComponents(e.children):(n.onClick=t.handleAction,t.props.submitting&&t.state.submittingAction===e.name&&(n.loading=!0)),t.buildComponent(n)})}},{key:"normalizeFields",value:function(e,t){var n=this;return e.map(function(e){var r=t&&t.fields?t.fields.find(function(t){return t.id===e.id}):{},o=m.default.recursive(!0,(0,b.schemaMerge)(e,r),{schemaComponent:r&&r.component?r.component:e.component});return e.children&&(o.children=n.normalizeFields(e.children,t)),o})}},{key:"render",value:function(){var e=this,t=this.props.schema.schema,n=this.props.schema.state,r=this.props.baseFormComponent,o=l({},t.attributes,{className:t.attributes.class,encType:t.attributes.enctype,noValidate:!0});delete o.class,delete o.enctype;var i=this.props,a=i.asyncValidate,s=i.fieldHolder,c=i.actionHolder,u=i.onSubmitFail,f=i.onSubmitSuccess,p=i.shouldAsyncValidate,h=i.touchOnBlur,m=i.touchOnChange,b=i.persistentSubmitErrors,v=i.form,y=i.afterMessages,_=i.autoFocus,j=i.formTag,w={form:v,afterMessages:y,fields:this.normalizeFields(t.fields,n),fieldHolder:s,actions:this.normalizeFields(t.actions,n),actionHolder:c,attributes:o,data:t.data,initialValues:(0,g.default)(t,n),onSubmit:this.handleSubmit,valid:n&&n.valid,messages:n&&Array.isArray(n.messages)?n.messages:[],mapActionsToComponents:this.mapActionsToComponents,mapFieldsToComponents:this.mapFieldsToComponents,asyncValidate:a,onSubmitFail:u,onSubmitSuccess:f,shouldAsyncValidate:p,touchOnBlur:h,touchOnChange:m,persistentSubmitErrors:b,validate:this.validateForm,autoFocus:_,setDOM:function(t){e.formDOM=t},formTag:j};return d.default.createElement(r,w)}}]),t}(u.Component),O=p.default.shape({id:p.default.string,schema:p.default.shape({attributes:p.default.shape({class:p.default.string,enctype:p.default.string}),fields:p.default.array.isRequired}),state:p.default.shape({fields:p.default.array}),loading:p.default.boolean,stateOverride:p.default.shape({fields:p.default.array})}),T={createFn:p.default.func,onSubmit:p.default.func,onAction:p.default.func,asyncValidate:p.default.func,onSubmitFail:p.default.func,onSubmitSuccess:p.default.func,shouldAsyncValidate:p.default.func,touchOnBlur:p.default.bool,touchOnChange:p.default.bool,persistentSubmitErrors:p.default.bool,validate:p.default.func,values:p.default.object,submitting:p.default.bool,baseFormComponent:p.default.func.isRequired,baseFieldComponent:p.default.func.isRequired,getCustomFields:p.default.func,responseRequestedSchema:p.default.arrayOf(p.default.oneOf(["schema","state","errors","auto"])),identifier:function(e,t,n){return/^[A-Za-z0-9_.]+$/.test(e[t])?null:new Error("\n        Invalid identifier supplied to "+n+". Must be a set of\n        dot-separated alphanumeric strings.\n      ")}};w.propTypes=Object.assign({},T,{form:p.default.string.isRequired,schema:O.isRequired,autoFocus:p.default.bool}),w.defaultProps={responseRequestedSchema:["auto"],autoFocus:!1},t.Component=w,t.basePropTypes=T,t.schemaPropType=O,t.default=(0,j.withInjector)(w)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormBuilderModal/FormBuilderModal.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("i18n"),f=r(d),p=n("reactstrap"),h=n("containers/FormBuilderLoader/FormBuilderLoader"),m=r(h),b=n("./client/src/lib/castStringToElement.js"),g=r(b),v=n("classnames"),y=r(v),_=n("prop-types"),j=r(_),w=function(){return null},O=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleSubmit=n.handleSubmit.bind(n),n.handleHide=n.handleHide.bind(n),n.clearResponse=n.clearResponse.bind(n),n.handleLoadingError=n.handleLoadingError.bind(n),n}return a(t,e),l(t,[{key:"getForm",value:function(){return this.props.schemaUrl?u.default.createElement(m.default,{fieldHolder:{className:(0,y.default)("modal-body",this.props.bodyClassName)},actionHolder:{className:"modal-footer"},autoFocus:this.props.autoFocus,schemaUrl:this.props.schemaUrl,onSubmit:this.handleSubmit,onAction:this.props.onAction,onLoadingError:this.handleLoadingError,identifier:this.props.identifier}):null}},{key:"getResponse",value:function(){if(!this.state||!this.state.response)return null;var e="";return e=this.state.error?this.props.responseClassBad:this.props.responseClassGood,u.default.createElement("div",{className:e},(0,g.default)("span",{html:this.state.response}))}},{key:"clearResponse",value:function(){this.setState({response:null})}},{key:"handleLoadingError",value:function(e){var t=this.props.onLoadingError!==w;if(this.props.showErrorMessage||!t){var n=e.errors&&e.errors[0];this.setState({response:n.value,error:!0})}t&&this.props.onLoadingError(e)}},{key:"handleHide",value:function(){this.clearResponse(),"function"==typeof this.props.onClosed&&this.props.onClosed()}},{key:"handleSubmit",value:function(e,t,n){var r=this;this.clearResponse();var o=null;if(!(o="function"==typeof this.props.onSubmit?this.props.onSubmit(e,t,n):n()))throw new Error("Promise was not returned for submitting");return o.then(function(e){return e&&r.setState({response:e.message,error:!1}),e}).catch(function(e){e.then(function(e){r.setState({response:e,error:!0})})}),o}},{key:"renderHeader",value:function(){var e=this.props.title;return!1!==e?("object"===(void 0===e?"undefined":s(e))&&(e=(new DOMParser).parseFromString(e.html,"text/html").body.textContent||""),u.default.createElement(p.ModalHeader,{toggle:this.handleHide},e)):!0===this.props.showCloseButton&&"function"==typeof this.props.onClosed?u.default.createElement("button",{type:"button",className:"close modal__close-button",onClick:this.handleHide,"aria-label":f.default._t("Admin.CLOSE","Close")}):null}},{key:"render",value:function(){var e=this.getForm(),t=this.getResponse();return u.default.createElement(p.Modal,{isOpen:this.props.isOpen,toggle:this.handleHide,className:this.props.className,modalClassName:this.props.modalClassName,size:this.props.size},this.renderHeader(),t,e,this.props.children)}}]),t}(c.Component);O.propTypes={autoFocus:j.default.bool,isOpen:j.default.bool,title:j.default.oneOfType([j.default.string,j.default.bool,j.default.shape({html:j.default.string})]),className:j.default.string,bodyClassName:j.default.string,modalClassName:j.default.string,showCloseButton:j.default.bool,size:j.default.string,onClosed:j.default.func,schemaUrl:j.default.string,onSubmit:j.default.func,onAction:j.default.func,responseClassGood:j.default.string,responseClassBad:j.default.string,identifier:j.default.string,showErrorMessage:j.default.bool,onLoadingError:j.default.func},O.defaultProps={showErrorMessage:!1,showCloseButton:!0,onLoadingError:w,isOpen:!1,title:null,modalClassName:"form-builder-modal",responseClassGood:"alert alert-success",responseClassBad:"alert alert-danger"},t.default=O},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){var n=t.data&&t.data.recordType;return{config:e.config,records:n&&e.records[n]?e.records[n]:I}}function l(e){return{actions:(0,h.bindActionCreators)(P,e)}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n("react"),d=r(u),f=n("i18n"),p=r(f),h=n("redux"),m=n("react-redux"),b=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldTable.js"),g=r(b),v=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldHeader.js"),y=r(v),_=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldHeaderCell.js"),j=r(_),w=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldRow.js"),O=r(w),T=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldCell.js"),C=r(T),E=n("./client/src/components/GridField/GridFieldAction.js"),x=r(E),S=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Form/FormConstants.js"),k=r(S),F=n("state/records/RecordsActions"),P=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(F),A=n("./client/src/lib/castStringToElement.js"),M=r(A),D=n("prop-types"),R=r(D),I=[],N=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.deleteRecord=n.deleteRecord.bind(n),n.editRecord=n.editRecord.bind(n),n}return a(t,e),c(t,[{key:"componentDidMount",value:function(){var e=this.props.data;this.props.actions.fetchRecords(e.recordType,e.collectionReadEndpoint.method,e.collectionReadEndpoint.url)}},{key:"createRowActions",value:function(e){return d.default.createElement(C.default,{className:"grid-field__cell--actions",key:"Actions"},d.default.createElement(x.default,{icon:"cog",onClick:this.editRecord,record:e}),d.default.createElement(x.default,{icon:"cancel",onClick:this.deleteRecord,record:e}))}},{key:"createCell",value:function(e,t){var n=this.props.data.onDrillDown,r={className:n?"grid-field__cell--drillable":"",onDrillDown:n?function(t){return n(t,e)}:null,key:""+t.name,width:t.width},o=t.field.split(".").reduce(function(e,t){return e[t]},e);return(0,M.default)(C.default,o,r)}},{key:"createRow",value:function(e){var t=this,n={className:this.props.data.onDrillDown?"grid-field__row--drillable":"",key:""+e.ID},r=this.props.data.columns.map(function(n){return t.createCell(e,n)}),o=this.createRowActions(e);return d.default.createElement(O.default,n,r,o)}},{key:"deleteRecord",value:function(e,t){e.preventDefault();var n={};n[k.default.CSRF_HEADER]=this.props.config.SecurityID,confirm(p.default._t("CampaignAdmin.DELETECAMPAIGN","Are you sure you want to delete this record?"))&&this.props.actions.deleteRecord(this.props.data.recordType,t,this.props.data.itemDeleteEndpoint.method,this.props.data.itemDeleteEndpoint.url,n)}},{key:"editRecord",value:function(e,t){e.preventDefault(),this.props.data&&"function"==typeof this.props.data.onEditRecord&&this.props.data.onEditRecord(e,t)}},{key:"render",value:function(){var e=this;if(this.props.records===I)return d.default.createElement("div",null,p.default._t("CampaignAdmin.LOADING","Loading..."));if(!this.props.records.length)return d.default.createElement("div",null,p.default._t("CampaignAdmin.NO_RECORDS","No campaigns created yet."));var t=d.default.createElement("th",{key:"holder",className:"grid-field__action-placeholder"}),n=this.props.data.columns.map(function(e){return d.default.createElement(j.default,{key:e.name},e.name)}),r=d.default.createElement(y.default,null,n.concat(t)),o=this.props.records.map(function(t){return e.createRow(t)});return d.default.createElement(g.default,{header:r,rows:o})}}]),t}(u.Component);N.propTypes={data:R.default.shape({recordType:R.default.string.isRequired,headerColumns:R.default.array,collectionReadEndpoint:R.default.object,onDrillDown:R.default.func,onEditRecord:R.default.func})},t.default=(0,m.connect)(s,l)(N)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldCell.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n("react"),d=r(u),f=n("classnames"),p=r(f),h=n("prop-types"),m=r(h),b=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleDrillDown=n.handleDrillDown.bind(n),n}return s(t,e),c(t,[{key:"handleDrillDown",value:function(e){"function"==typeof this.props.onDrillDown&&this.props.onDrillDown(e)}},{key:"render",value:function(){var e=["grid-field__cell",this.props.className],t=this.props,n=(t.onDrillDown,o(t,["onDrillDown"]));return d.default.createElement("td",l({},n,{className:(0,p.default)(e),onClick:this.handleDrillDown}))}}]),t}(u.Component);b.propTypes={className:m.default.string,onDrillDown:m.default.func},t.default=b},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldHeader.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("react"),i=r(o),a=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldRow.js"),s=r(a),l=function(e){return i.default.createElement(s.default,null,e.children)};t.default=l},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldHeaderCell.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("react"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e){return o.default.createElement("th",null,e.children)};t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldRow.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("react"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(e){var t="grid-field__row "+e.className;return o.default.createElement("tr",{tabIndex:0,className:t},e.children)};t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldTable.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"generateHeader",value:function(){return void 0!==this.props.header?this.props.header:(this.props.data,null)}},{key:"generateRows",value:function(){return void 0!==this.props.rows?this.props.rows:(this.props.data,null)}},{key:"render",value:function(){return c.default.createElement("div",{className:"grid-field"},c.default.createElement("table",{className:"table table-hover grid-field__table"},c.default.createElement("thead",null,this.generateHeader()),c.default.createElement("tbody",null,this.generateRows())))}}]),t}(l.Component);f.propTypes={data:d.default.object,header:d.default.object,rows:d.default.array},t.default=f},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/HiddenField/HiddenField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("reactstrap"),d=n("classnames"),f=r(d),p=n("prop-types"),h=r(p),m=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"getInputProps",value:function(){return{className:(0,f.default)(this.props.className,this.props.extraClass),id:this.props.id,name:this.props.name,type:"hidden",value:this.props.value||""}}},{key:"render",value:function(){return c.default.createElement(u.Input,this.getInputProps())}}]),t}(l.Component);m.propTypes={id:h.default.string,extraClass:h.default.string,name:h.default.string.isRequired,value:h.default.any},m.defaultProps={className:"",extraClass:"",value:""},t.default=m},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ListGroup/ListGroup.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("react"),i=r(o),a=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ListGroup/ListGroupItem.js"),s=r(a),l=n("prop-types"),c=r(l),u=function(e){return i.default.createElement("div",{className:"list-group"},e.items.map(function(e){return i.default.createElement(s.default,e)}))};u.propTypes={items:c.default.array},t.default=u},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ListGroup/ListGroupItem.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=n.handleClick.bind(n),n}return a(t,e),s(t,[{key:"handleClick",value:function(e){this.props.onClick&&this.props.onClick(e,this.props.onClickArg)}},{key:"render",value:function(){var e="list-group-item "+this.props.className;return c.default.createElement("a",{role:"button",tabIndex:0,className:e,onClick:this.handleClick},this.props.children)}}]),t}(l.Component);f.propTypes={onClickArg:d.default.any,onClick:d.default.func},t.default=f},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/LiteralField/LiteralField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("prop-types"),f=r(d),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),l(t,[{key:"getContent",value:function(){return{__html:this.props.value}}},{key:"getInputProps",value:function(){return{className:this.props.className+" "+this.props.extraClass,id:this.props.id,name:this.props.name}}},{key:"render",value:function(){return u.default.createElement("div",s({},this.getInputProps(),{dangerouslySetInnerHTML:this.getContent()}))}}]),t}(c.Component);p.propTypes={id:f.default.string,name:f.default.string.isRequired,extraClass:f.default.string,value:f.default.string},p.defaultProps={extraClass:"",className:""},t.default=p},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Loading/Loading.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"render",value:function(){var e=this.props.containerClass;return c.default.createElement("div",{className:e},c.default.createElement("div",{key:"overlay",className:"cms-content-loading-overlay ui-widget-overlay-light"}),c.default.createElement("div",{key:"spinner",className:"cms-content-loading-spinner"},c.default.createElement("div",{className:"spinner"},c.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 30 30",width:"30",height:"30",className:"spinner__animation"},c.default.createElement("g",null,c.default.createElement("defs",null,c.default.createElement("path",{id:"spinner__animation__outline",d:"M17.6,9.8c-2.3,1.7-2.8,5-1.1,7.3l4.2-3.1 c1.1-0.8,2.7-0.6,3.6,0.5c0.8,1.1,0.6,2.7-0.5,3.6l-6.2,4.6 c-2.3,1.7-2.8,5-1.1,7.3l10.4-7.7c3.4-2.6,4.1-7.4,1.6-10.8 C25.9,8,21.1,7.3,17.6,9.8z M13.4,12.9L9.3,16c-1.1,0.8-2.7,0.6-3.6-0.5 s-0.6-2.7,0.5-3.6l6.2-4.6c2.3-1.7,2.8-5,1.1-7.3L3.1,7.7 c-3.4,2.6-4.1,7.4-1.6,10.8c2.6,3.4,7.4,4.1,10.8,1.6 C14.7,18.4,15.1,15.2,13.4,12.9z"}),c.default.createElement("clipPath",{id:"spinner__animation__mask"},c.default.createElement("use",{xlinkHref:window.location+"#spinner__animation__outline"}))),c.default.createElement("use",{className:"spinner__animation__empty",xlinkHref:window.location+"#spinner__animation__outline"}),c.default.createElement("path",{className:"spinner__animation__fill",clipPath:"url("+window.location+"#spinner__animation__mask)",d:"M15,2.1L4.7,9.8c-2.3,1.7-2.8,4.9-1.1,7.2 s4.9,2.8,7.2,1.1l8.3-6.1c2.3-1.7,5.5-1.2,7.2,1.1 s1.2,5.5-1.1,7.2L15,27.9"}))))))}}]),t}(l.PureComponent);f.propTypes={containerClass:d.default.string},f.defaultProps={containerClass:"flexbox-area-grow"},t.default=f},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/PopoverField/PopoverField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("reactstrap"),f=n("classnames"),p=r(f),h=n("prop-types"),m=r(h),b=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggle=n.toggle.bind(n),n.state={isOpen:!1},n}return s(t,e),l(t,[{key:"getPlacement",value:function(){return this.props.data.placement||"bottom"}},{key:"getContainer",value:function(){return this.props.container?this.props.container:this.wrapper}},{key:"toggle",value:function(){var e=this.props.toggleCallback;this.setState({isOpen:!this.state.isOpen},e)}},{key:"render",value:function(){var e,t,n=this,r=this.getPlacement(),i=(0,p.default)((e={btn:!0,"btn-secondary":!0},o(e,this.props.className,!0),o(e,this.props.buttonClassName,!0),o(e,"btn--no-focus",this.state.isOpen),o(e,"font-icon-dot-3 btn--no-text",!this.props.title),o(e,"btn--icon-"+this.props.buttonSize,!this.props.title),e)),a={id:this.props.id,type:"button",className:i,onClick:this.toggle,title:this.props.data.buttonTooltip},s=(0,p.default)((t={},o(t,this.props.className,!0),o(t,"popover-container",!0),o(t,"popover-field",!0),t));return u.default.createElement("div",{className:s,ref:function(e){n.wrapper=e}},u.default.createElement(d.Button,a,this.props.title),u.default.createElement(d.Popover,{id:this.props.id+"_Popover",placement:r,isOpen:this.state.isOpen,target:this.props.id,toggle:this.toggle,className:this.props.popoverClassName,container:this.getContainer()},u.default.createElement(d.PopoverHeader,null,this.props.data.popoverTitle),u.default.createElement(d.PopoverBody,null,this.props.children)))}}]),t}(c.Component);b.propTypes={id:m.default.string.isRequired,title:m.default.any,container:m.default.any,className:m.default.string,buttonClassName:m.default.string,popoverClassName:m.default.string,buttonSize:m.default.oneOf(["sm","md","large","xl"]),data:m.default.oneOfType([m.default.array,m.default.shape({popoverTitle:m.default.string,buttonTooltip:m.default.string,placement:m.default.oneOf(["top","bottom","left","right"])})]),toggleCallback:m.default.func},b.defaultProps={data:{},className:"",buttonClassName:"",popoverClassName:"",buttonSize:"xl",toggleCallback:function(){}},t.default=b},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Preview/Preview.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("i18n"),d=r(u),f=n("./client/src/components/ActionMenu/ActionMenu.js"),p=r(f),h=n("classnames"),m=r(h),b=n("lib/Injector"),g=n("prop-types"),v=r(g),y=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={frameLoaded:!1},n.handleBackClick=n.handleBackClick.bind(n),n.setFrameLoaded=n.setFrameLoaded.bind(n),n}return a(t,e),s(t,[{key:"componentDidUpdate",value:function(e){this.state.frameLoaded&&e.previewUrl!==this.props.previewUrl&&this.setFrameLoaded(!1)}},{key:"setFrameLoaded",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState({frameLoaded:e})}},{key:"handleBackClick",value:function(e){"function"==typeof this.props.onBack&&(e.preventDefault(),this.props.onBack(e))}},{key:"buildToolbarButtons",value:function(){var e=[];if(this.props.itemLinks&&this.props.itemLinks.edit){var t=this.props.itemLinks.edit.href;e.push(c.default.createElement("a",{key:"edit",href:t,className:"btn btn-outline-secondary font-icon-edit"},c.default.createElement("span",{className:"btn__title"},d.default._t("Admin.EDIT","Edit"))))}return e}},{key:"renderMoreActions",value:function(){return this.props.moreActions&&0!==this.props.moreActions.length?c.default.createElement(p.default,null,this.props.moreActions):null}},{key:"renderBody",value:function(){var e=null,t="";return this.props.itemLinks&&this.props.itemLinks.preview&&(this.props.itemLinks.preview.Stage?(e=this.props.itemLinks.preview.Stage.href,t=this.props.itemLinks.preview.Stage.type):this.props.itemLinks.preview.Live&&(e=this.props.itemLinks.preview.Live.href,t=this.props.itemLinks.preview.Live.type)),this.props.itemId?e?t&&0===t.indexOf("image/")?c.default.createElement("div",{className:"preview__file-container panel--scrollable"},c.default.createElement("img",{alt:e,className:"preview__file--fits-space",src:e})):c.default.createElement("iframe",{style:{visibility:this.state.frameLoaded?"visible":"hidden"},className:"flexbox-area-grow preview__iframe",src:e,onLoad:this.setFrameLoaded}):c.default.createElement("div",{className:"preview__overlay"},c.default.createElement("h3",{className:"preview__overlay-text"},d.default._t("Admin.NO_ITEM_PREVIEW","There is no preview available for this item."))):c.default.createElement("div",{className:"preview__overlay"},c.default.createElement("h3",{className:"preview__overlay-text"},d.default._t("Admin.NO_PREVIEW","No preview available.")))}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.ViewModeComponent,r=(0,m.default)("preview",t);return c.default.createElement("div",{className:r},this.renderBody(),c.default.createElement("div",{className:"toolbar toolbar--south"},c.default.createElement("div",{className:"btn-toolbar"},this.buildToolbarButtons(),c.default.createElement(n,{id:"view-mode-toggle-in-preview-nb",area:"preview"}),this.renderMoreActions())))}}]),t}(l.Component);y.propTypes={className:v.default.string,itemLinks:v.default.object,itemId:v.default.number,onBack:v.default.func,moreActions:v.default.arrayOf(v.default.element),ViewModeComponent:v.default.oneOfType([v.default.node,v.default.func])},y.defaultProps={className:"flexbox-area-grow fill-height"},t.Component=y,t.default=(0,b.inject)(["ViewModeToggle"],function(e){return{ViewModeComponent:e}},function(){return"Admin.Preview"})(y)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ResizeAware/ResizeAware.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n("react"),f=n("./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js"),p=r(f),h=n("prop-types"),m=r(h),b=function(e){function t(e){a(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.render=n.render.bind(n),n.handleResize=n.handleResize.bind(n),n.state={},n.observer=new p.default(function(e){return e.forEach(function(e){var t=e.contentRect;return n.handleResize(t)})}),n}return l(t,e),u(t,[{key:"componentDidMount",value:function(){this.observer.observe(this.container);var e={width:this.container.offsetWidth,height:this.container.offsetHeight};this.handleResize(e)}},{key:"componentWillUnmount",value:function(){this.observer.disconnect()}},{key:"handleResize",value:function(e){var t=this.state,n=t.width,r=t.height;n===e.width&&r===e.height||this.setState(e),this.props.onResize&&this.props.onResize(e)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.children,a=n.onlyEvent,s=n.component,l=(n.onResize,n.widthPropName),u=n.heightPropName,f=i(n,["children","onlyEvent","component","onResize","widthPropName","heightPropName"]),p=this.state,h=p.width,m=p.height,b="string"!=typeof s,g=[l||"width"],v=[u||"height"],y=(e={},o(e,g,h),o(e,v,m),e);return(0,d.createElement)(s,c(o({},b?"getRef":"ref",function(e){t.container=e}),b&&y,f),"function"==typeof r?r({width:h,height:m}):d.Children.map(r,function(e){return(0,d.isValidElement)(e)?(0,d.cloneElement)(e,a?null:y):e}))}}]),t}(d.Component);t.default=b,b.propTypes={component:m.default.oneOfType([m.default.string,m.default.func]),onResize:m.default.func},b.defaultProps={component:"div"}},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Search/Search.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e){return e&&Object.keys(e).length>0}function u(e,t){var n=e.form.formSchemas[t.formSchemaUrl];if(!n||!n.name)return{formData:{}};var r=n.name,o=(0,S.default)((0,A.default)(e),r),i=o&&o.values||{},a=(0,U.default)(n,t.filters,t.tagHandlers||{});return{formData:i,formIsDirty:(0,E.isDirty)(r,A.default)(e),schemaName:r,tagData:a}}function d(e){return{actions:{schema:(0,w.bindActionCreators)(T,e),reduxForm:(0,w.bindActionCreators)({reset:C.reset,initialize:C.initialize,change:C.change},e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.hasFilters=t.Component=void 0;var f=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=n("i18n"),b=r(m),g=n("react"),v=r(g),y=n("react-redux"),_=n("react-dom"),j=r(_),w=n("redux"),O=n("state/schema/SchemaActions"),T=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(O),C=n("redux-form"),E=n("./node_modules/redux-form/lib/immutable.js"),x=n("./node_modules/redux-form/lib/structure/plain/getIn.js"),S=r(x),k=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Focusedzone/Focusedzone.js"),F=r(k),P=n("lib/getFormState"),A=r(P),M=n("./client/src/components/Search/SearchBox.js"),D=r(M),R=n("./client/src/components/Search/SearchForm.js"),I=r(R),N=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Search/SearchToggle.js"),L=r(N),B=n("./client/src/components/Search/utilities/mapFormSchemaToTags.js"),U=r(B),H=n("prop-types"),V=r(H),q={NONE:"NONE",VISIBLE:"VISIBLE",EXPANDED:"EXPANDED"},G={NONE:"NONE",HIDEABLE:"HIDEABLE",TOGGLABLE:"TOGGLABLE"},z=function(e){function t(e){a(this,t);var n=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.expand=n.expand.bind(n),n.handleChange=n.handleChange.bind(n),n.getData=n.getData.bind(n),n.doSearch=n.doSearch.bind(n),n.focusInput=n.focusInput.bind(n),n.focusFirstFormField=n.focusFirstFormField.bind(n),n.hide=n.hide.bind(n),n.show=n.show.bind(n),n.toggle=n.toggle.bind(n),n.open=n.open.bind(n),n.searchTermIsDirty=n.searchTermIsDirty.bind(n),n.clearFilters=n.clearFilters.bind(n),n.clearSearchBox=n.clearSearchBox.bind(n),n.clearFormFilter=n.clearFormFilter.bind(n),n.focusFormFilter=n.focusFormFilter.bind(n),n.formatTagData=n.formatTagData.bind(n);var r=e.term||e.filters&&e.filters[""+e.filterPrefix+e.name]||"";return n.state={display:e.display,searchText:r,initialSearchText:r},n}return l(t,e),h(t,[{key:"componentDidMount",value:function(){this.setOverrides(this.props)}},{key:"componentWillUnmount",value:function(){this.setOverrides()}},{key:"setOverrides",value:function(e){if(e&&(!c(e.filters)||this.props.formSchemaUrl!==e.formSchemaUrl)){var t=e&&e.formSchemaUrl||this.props.formSchemaUrl;t&&this.props.actions.schema.setSchemaStateOverrides(t,null)}if(e&&c(e.filters)&&e.formSchemaUrl){var n=e.filters||{},r={fields:Object.keys(n).map(function(e){return{name:e,value:n[e]}})};this.props.actions.schema.setSchemaStateOverrides(e.formSchemaUrl,r)}}},{key:"getData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.props,n=t.name,r=t.filterPrefix,o=t.formData,i=this.state.searchText,a={};return Object.keys(o).forEach(function(e){var t=o[e];t&&(a[e]=t)}),!e&&i&&void 0===o[""+r+n]&&(a[""+r+n]=i.trim()),a}},{key:"handleChange",value:function(e){var t=e.target.value;this.state.searchText!==t&&this.setState({searchText:t});var n=this.props,r=n.schemaName,o=n.name,i=n.filterPrefix,a=n.actions;void 0!==n.formData[""+i+o]&&a.reduxForm.change(r,""+i+o,t)}},{key:"focusInput",value:function(){if(this.state.display!==q.NONE){var e=j.default.findDOMNode(this);if(e){var t=e.querySelector(".search-box__content-field");t!==document.activeElement&&(t.focus(),t.select&&t.select())}}}},{key:"focusFirstFormField",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"input:not([type=hidden]), textarea, select, button";if(this.state.display===q.EXPANDED){var t=j.default.findDOMNode(this);if(t){var n=t.querySelector(".search-form");if(n){var r=n.querySelector(e);r&&(r.focus(),r.select&&r.select())}}}}},{key:"clearFormData",value:function(e){""!==this.state.searchText&&this.setState({searchText:""});var t=e&&e.formSchemaUrl||this.props.formSchemaUrl;if(t){var n=e&&e.identifier||this.props.identifier;this.props.actions.schema.setSchemaStateOverrides(t,{fields:[]}),this.props.actions.reduxForm.reset(n)}}},{key:"clearFormFilter",value:function(e){var t=this.props.tagData[e],n=i({},e,void 0),r=this.props,o=r.schemaName,a=r.filters;this.props.actions.reduxForm.change(o,e,""),this.setOverrides(p({},this.props,{filters:p({},a,i({},e,void 0))})),Array.isArray(t.linkedFields)&&t.linkedFields.forEach(function(e){n[e]=void 0}),this.doSearch(n)}},{key:"focusFormFilter",value:function(e){var t=this,n=this.props.tagData[e],r=n.focusSelector||"[name="+e+"]";this.expand(),setTimeout(function(){return t.focusFirstFormField(r)},50)}},{key:"open",value:function(){this.show(),this.focusInput()}},{key:"hide",value:function(){this.clearSearchBox(),this.props.onHide?this.props.onHide():this.state.display!==q.NONE&&this.setState({display:q.NONE})}},{key:"show",value:function(){this.state.display!==q.VISIBLE&&this.setState({display:q.VISIBLE});var e=this.props,t=e.schemaName,n=e.formData,r=e.name,o=e.actions;void 0!==n[r]&&o.reduxForm.change(t,r,this.state.searchText)}},{key:"expand",value:function(){this.state.display!==q.EXPANDED&&this.setState({display:q.EXPANDED})}},{key:"toggle",value:function(){switch(this.state.display){case q.VISIBLE:this.expand(),setTimeout(this.focusFirstFormField,50);break;case q.EXPANDED:this.show()}}},{key:"searchTermIsDirty",value:function(){var e=this.state,t=e.searchText,n=e.initialSearchText;return t.trim()!==n.trim()}},{key:"doSearch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.props,n=t.name,r=t.filterPrefix,o={},i=this.getData();Object.entries(i).forEach(function(t){var a=f(t,2),s=a[0],l=a[1],c=s,u=l;e.hasOwnProperty(s)&&(u=e[s]),r.length>0&&s.startsWith(r)&&(c=s.substring(r.length)),(!r.length>0||s!==n||void 0===i[""+r+n])&&(o[c]=u)});var a=o[n]||"";this.state.display===q.VISIBLE&&this.state.initialSearchText===a&&this.state.searchText===a||this.setState({display:q.VISIBLE,initialSearchText:a,searchText:a}),this.props.onSearch(o)}},{key:"clearFilters",value:function(){this.clearFormData(),this.focusFirstFormField()}},{key:"clearSearchBox",value:function(){this.clearFormData(),this.focusInput()}},{key:"formatTagData",value:function(){var e=this.props,t=e.tagData,n=e.name,r=e.filterPrefix,o=Object.assign({},t),i=""+r+n;return o&&o[i]&&delete o[i],o?Object.values(o).map(function(e){return{key:e.key,label:e.label,value:e.value}}):[]}},{key:"render",value:function(){var e=this.props,t=e.formSchemaUrl,n=e.forceFilters,r=e.id,i=e.displayBehavior,a=e.identifier,s=e.formIsDirty,l=(e.tagData,e.name),c=o(e,["formSchemaUrl","forceFilters","id","displayBehavior","identifier","formIsDirty","tagData","name"]);if(this.state.display===q.NONE)return i===G.TOGGLABLE?v.default.createElement(L.default,{onToggle:this.show}):v.default.createElement("div",null);var u=r+"_ExtraFields",d=this.state.searchText,f=this.state.display===q.EXPANDED,h=this.state.display===q.VISIBLE,m=[G.HIDEABLE,G.TOGGLABLE].includes(i),b=s||this.searchTermIsDirty(),g=this.getData(),y=Object.keys(g).length>0;return v.default.createElement(F.default,{onClickOut:this.show,className:"search"},v.default.createElement(D.default,p({},c,{name:"SearchBox__"+l,onChange:this.handleChange,onSearch:this.doSearch,onToggleFilter:this.toggle,onHideFilter:this.show,onHide:this.hide,onClear:this.clearSearchBox,searchText:d,hideable:m,expanded:f,id:r+"_searchbox",showFilters:Boolean(n||t),dirty:b,clearable:y,onTagDelete:this.clearFormFilter,onTagClick:this.focusFormFilter,tagData:this.formatTagData()}),v.default.createElement(I.default,{id:u,identifier:a,visible:h,expanded:f,formSchemaUrl:t,onSearch:this.doSearch,onClear:this.clearFilters,clearable:y})))}}]),t}(g.Component);z.propTypes={onSearch:V.default.func,onHide:V.default.func,id:V.default.string.isRequired,display:V.default.oneOf(Object.values(q)),formSchemaUrl:V.default.string,filters:V.default.object,formData:V.default.object,placeholder:V.default.string,displayBehavior:V.default.oneOf(Object.values(G)),term:V.default.string,name:V.default.string,filterPrefix:V.default.string,forceFilters:V.default.bool,formIsDirty:V.default.bool,identifier:V.default.string,schemaName:V.default.string,tagHandlers:V.default.object,borders:V.default.shape({top:V.default.bool,right:V.default.bool,bottom:V.default.bool,left:V.default.bool})},z.defaultProps={placeholder:b.default._t("Admin.SEARCH","Search"),display:q.VISIBLE,displayBehavior:G.NONE,filters:{},formData:{},term:"",filterPrefix:"",forceFilters:!1,name:"searchTerm",identifier:"Admin.SearchForm"},t.Component=z,t.hasFilters=c,t.default=(0,y.connect)(u,d)(z)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Search/SearchToggle.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var o=n("i18n"),i=r(o),a=n("react"),s=r(a),l=n("reactstrap"),c=n("classnames"),u=r(c),d=n("prop-types"),f=r(d),p=i.default._t("Admin.SHOW_SEARCH","Show search"),h=function(e){return(0,u.default)("btn--no-text","search-toggle","font-icon-search","btn--icon-lg",{"search-toggle__active":e})},m=function(e){var t=e.onToggle,n=e.toggled;return s.default.createElement(l.Button,{title:p,onClick:t,className:h(n)},s.default.createElement("span",{className:"sr-only"},p))};m.propTypes={onToggle:f.default.func,toggled:f.default.bool},t.Component=m,t.default=m},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tag/CompactTagList.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n("react"),d=r(u),f=n("components/Tag/TagList"),p=r(f),h=n("./client/src/components/Tag/SummaryTag.js"),m=r(h),b=n("components/ResizeAware/ResizeAware"),g=r(b),v=n("classnames"),y=r(v),_=n("react-dom"),j=r(_),w=n("prop-types"),O=r(w),T=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.render=n.render.bind(n),n.onResize=n.onResize.bind(n),n.refreshShowSummaryView=n.refreshShowSummaryView.bind(n),n.getPlaceholderSize=n.getPlaceholderSize.bind(n),n.state={showSummaryView:!1},n}return s(t,e),c(t,[{key:"componentDidUpdate",value:function(){var e=this.getPlaceholderSize();this.refreshShowSummaryView(e)}},{key:"onResize",value:function(e){this.refreshShowSummaryView(e.width)}},{key:"getPlaceholderSize",value:function(){var e=j.default.findDOMNode(this);if(!e)return 0;var t=e.querySelector(".compact-tag-list__placeholder");return t?t.getBoundingClientRect().width:0}},{key:"refreshShowSummaryView",value:function(e){var t=this.props.maxSize,n=t<e;this.state.showSummaryView!==n&&this.setState(function(){return{showSummaryView:n}})}},{key:"render",value:function(){var e=this.props,t=(e.maxSize,e.onSummary),n=o(e,["maxSize","onSummary"]),r=this.state.showSummaryView,i=this.props.tags.length,a=(0,y.default)("compact-tag-list",{"compact-tag-list__show-summary-view":r});return d.default.createElement("div",{className:a},d.default.createElement(g.default,{onResize:this.onResize,className:"compact-tag-list__placeholder","aria-hidden":!0},d.default.createElement(p.default,l({},n,{focusable:!1}))),d.default.createElement("div",{className:"compact-tag-list__visible"},r?d.default.createElement(m.default,{count:i,onClick:t,onNext:n.onHolderFocus}):d.default.createElement(p.default,n)))}}]),t}(u.Component);T.propTypes=Object.assign({},p.default.propTypes,{maxSize:O.default.number,onSummary:O.default.func}),T.defaultProps={maxSize:0,onSummary:function(){}},t.default=T},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tag/Tag.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n("react"),s=r(a),l=n("reactstrap"),c=n("classnames"),u=r(c),d=n("i18n"),f=r(d),p=n("prop-types"),h=r(p),m=function(e,t,n,r,o,i){switch(e.key){case"Backspace":e.preventDefault(),r(t);break;case"Delete":e.preventDefault(),n(t);break;case"ArrowLeft":e.preventDefault(),o(t);break;case"ArrowRight":e.preventDefault(),i(t)}},b=function(e,t,n){return(t||e)+(n?": "+n:"")},g=function(e){var t=e.onClick,n=e.onDelete,r=e.onDeleteKey,a=e.onBackSpace,c=e.onPrevious,d=e.onNext,f=e.deletable,p=e.dataKey,h=e.label,g=e.value,v=e.children,_=e.focusable,j=o(e,["onClick","onDelete","onDeleteKey","onBackSpace","onPrevious","onNext","deletable","dataKey","label","value","children","focusable"]),w=b(p,h,g);return s.default.createElement(l.Button,i({},j,{role:"button",className:(0,u.default)("tag-component","btn-sm",{"tag-component--deletable":f}),onClick:function(e){e.preventDefault(),t(p)},tabIndex:_?0:void 0,onKeyDown:function(e){m(e,p,r,a,c,d)},title:w}),f&&s.default.createElement(y,{onDelete:n,dataKey:p}),v||w)},v=function(e){e.target.parentElement.focus()},y=function(e){var t=e.dataKey,n=e.onDelete;return s.default.createElement(l.Button,{onClick:function(e){e.stopPropagation(),e.preventDefault(),n(t)},"aria-label":f.default._t("Admin.REMOVE_TAG","Remove Tag"),title:f.default._t("Admin.REMOVE_TAG","Remove Tag"),onFocus:v,tabIndex:-1,className:"tag-component__delete font-icon-cancel btn--no-text btn--icon-sm"})};g.propTypes={onClick:h.default.func,onDelete:h.default.func,onDeleteKey:h.default.func,onBackSpace:h.default.func,onPrevious:h.default.func,onNext:h.default.func,deletable:h.default.bool,dataKey:h.default.string,label:h.default.string,value:h.default.string,focusable:h.default.bool},g.defaultProps={tag:"span",deletable:!1,onClick:function(){},onDelete:function(){},onDeleteKey:function(){},onBackSpace:function(){},onPrevious:function(){},onNext:function(){},focusable:!0},t.default=g},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tag/TagList.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=n("react"),a=r(i),s=n("components/Tag/Tag"),l=r(s),c=n("./client/src/components/Tag/TagPropType.js"),u=r(c),d=n("prop-types"),f=r(d),p=function(e){var t=document.activeElement[e?"nextElementSibling":"previousElementSibling"];return!!t&&(t.focus(),!0)},h=function(e){var t=e.tags,n=e.deletable,r=e.focusable,i=e.onTagDelete,s=e.onTagClick,c=e.onHolderFocus,u=function(e){p(!0)||c(),i(e)},d=function(e){p(!1)||p(!0)||c(),i(e)};return a.default.createElement("ul",{className:"tag-list"},t.map(function(e){return a.default.createElement(l.default,o({},e,{tag:"li",deletable:n,dataKey:e.key,focusable:r,onDelete:i,onDeleteKey:n&&i?u:void 0,onBackSpace:n&&i?d:void 0,onNext:function(){p(!0)||c()},onPrevious:function(){p(!1)},onClick:s}))}))};h.propTypes={onTagClick:f.default.func,onTagDelete:f.default.func,onHolderFocus:f.default.func,deletable:f.default.bool,tags:f.default.arrayOf(u.default),focusable:f.default.bool},h.defaultProps={deletable:!1,focusable:!0,onTagDelete:function(){},onTagClick:function(){},onHolderFocus:function(){}},t.Component=h,t.default=h},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TextField/TextField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0},c=n("components/FieldHolder/FieldHolder"),u=r(c),d=n("./client/src/components/InputField/InputField.js"),f=r(d),p=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),s(t,[{key:"getInputProps",value:function(){var e=l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getInputProps",this).call(this);return this.isMultiline()&&Object.assign(e,{type:"textarea",rows:this.props.data.rows,cols:this.props.data.columns}),e}},{key:"isMultiline",value:function(){return this.props.data&&this.props.data.rows>1}}]),t}(f.default);t.Component=p,t.default=(0,u.default)(p)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tip/Tip.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=e.content,n=e.fieldTitle,r=e.icon,o=e.id,i=e.importance,a=j[i],s=a.iconColor,u=a.description,d=h.default.inject(h.default._t("Admin.TIP_LABEL","{description} for {fieldTitle}"),{description:u,fieldTitle:n}),p=["tip",e.extraClass];e.type===y.TITLE?p.push("tip--title"):e.type===y.INPUT_GROUP&&p.push("tip--input-group","btn--last","btn-outline-secondary","text-"+s);var m=o+"-tip",g={id:m,onClick:function(){},className:(0,v.default)(p),noText:!0,icon:r};return c.default.createElement(l.Fragment,null,c.default.createElement(b.default,g,d),c.default.createElement(f.UncontrolledPopover,{trigger:"legacy",placement:"top-end",target:m},c.default.createElement(f.PopoverBody,null,t)))}Object.defineProperty(t,"__esModule",{value:!0}),t.tipShape=t.TIP_IMPORTANCE_LEVELS=t.TIP_TYPES=void 0;var a,s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=n("reactstrap"),p=n("i18n"),h=r(p),m=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Button/Button.js"),b=r(m),g=n("classnames"),v=r(g),y=t.TIP_TYPES={TITLE:"title",INPUT_GROUP:"input-group"},_=t.TIP_IMPORTANCE_LEVELS={NORMAL:"normal",HIGH:"high"},j=(a={},o(a,_.NORMAL,{iconColor:"muted",description:h.default._t("Admin.NORMAL_TIP","Tip")}),o(a,_.HIGH,{iconColor:"danger",description:h.default._t("Admin.IMPORTANT_TIP","Important tip")}),a),w=t.tipShape={content:d.default.string.isRequired,importance:d.default.oneOf(Object.values(_)),type:d.default.oneOf(Object.values(y)),icon:d.default.string};i.propTypes=s({},w,{extraClass:d.default.string,fieldTitle:d.default.string.isRequired,id:d.default.string.isRequired}),i.defaultProps={importance:_.NORMAL,icon:"lamp",type:y.INPUT_GROUP},t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Toolbar/Toolbar.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n("react"),i=r(o),a=n("prop-types"),s=r(a),l=n("components/Button/BackButton"),c=r(l),u=function(e){var t=e.showBackButton,n=e.children,r=e.onBackButtonClick,o=function(e){e.preventDefault(),"function"==typeof r&&r(e)};return i.default.createElement("div",{className:"toolbar toolbar--north"},i.default.createElement("div",{className:"toolbar__navigation fill-width"},t&&i.default.createElement(c.default,{onClick:o,className:"toolbar__back-button"}),n))};u.propTypes={onBackButtonClick:s.default.func,showBackButton:s.default.bool},u.defaultProps={showBackButton:!1},t.default=u},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownField.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t.id,r=e.treeDropdownField.fields[n]?e.treeDropdownField.fields[n]:{tree:{},visible:[],loading:[],failed:[],search:"",selectedValues:[]},o=t.value;return t.data.multiple&&t.value===I&&(o=[]),t.data.multiple||t.value||(o=N),d({},r,{value:o})}function c(e){return{actions:{treeDropdownField:(0,v.bindActionCreators)(E,e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.findTreeByPath=t.findTreeByID=t.findTreePath=t.SINGLE_EMPTY_VALUE=t.MULTI_EMPTY_VALUE=t.ConnectedTreeDropdownField=t.Component=void 0;var u=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n("react"),h=r(p),m=n("prop-types"),b=r(m),g=n("react-redux"),v=n("redux"),y=n("components/FieldHolder/FieldHolder"),_=r(y),j=n("isomorphic-fetch"),w=r(j),O=n("react-select"),T=r(O),C=n("./client/src/state/treeDropdownField/TreeDropdownFieldActions.js"),E=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(C),x=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldMenu.js"),S=r(x),k=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldNode.js"),F=r(k),P=n("url"),A=r(P),M=n("reactstrap"),D=n("./client/src/lib/castStringToElement.js"),R=n("./client/src/components/TreeDropdownField/treeUtils.js"),I="unchanged",N=0,L=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.render=n.render.bind(n),n.renderMenu=n.renderMenu.bind(n),n.renderOption=n.renderOption.bind(n),n.getBreadcrumbs=n.getBreadcrumbs.bind(n),n.getDropdownOptions=n.getDropdownOptions.bind(n),n.getVisibleTree=n.getVisibleTree.bind(n),n.handleBack=n.handleBack.bind(n),n.handleChange=n.handleChange.bind(n),n.handleKeyDown=n.handleKeyDown.bind(n),n.handleNavigate=n.handleNavigate.bind(n),n.handleSearchChange=n.handleSearchChange.bind(n),n.handleSearchReset=n.handleSearchReset.bind(n),n.handleOpen=n.handleOpen.bind(n),n.handleClose=n.handleClose.bind(n),n.callFetch=n.callFetch.bind(n),n.lazyLoad=n.lazyLoad.bind(n),n.filterOptions=n.filterOptions.bind(n),n.state={opened:!1},n.searchTimer=null,n}return s(t,e),f(t,[{key:"componentDidMount",value:function(){this.props.readOnly||this.props.disabled||this.initialise();var e=this.props.id,t=this.props.data.multiple?this.props.data.valueObjects||[]:[this.props.data.valueObject],n=t.filter(function(e){return e});n.length&&this.props.actions.treeDropdownField.addSelectedValues(e,n)}},{key:"componentDidUpdate",value:function(e){if(!this.props.readOnly&&!this.props.disabled){var t=!1,n=[];this.props.search!==e.search&&(t=!0,n=this.props.visible),e.data.urlTree!==this.props.data.urlTree&&(t=!0),e.data.cacheKey!==this.props.data.cacheKey&&(t=!0),t&&this.loadTree(n,this.props.search,this.props)}}},{key:"getVisibleTree",value:function(){return this.props.findTreeByPath(this.props.tree,this.props.visible)}},{key:"getBreadcrumbs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.visible,t=[];if(!e)return t;var n=this.props.tree,r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;if("break"===function(e){return n.children&&(n=n.children.find(function(t){return t.id===e}))?void t.push(n):"break"}(l))break}}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return t}},{key:"getDropdownOptions",value:function(){var e=this.props.value,t=this.getVisibleTree(),n=t?[].concat(o(t.children)):[],r=this.props.selectedValues.filter(function(t){return t.id===e||Array.isArray(e)&&e.find(function(e){return e===t.id})});return!this.state.opened&&this.props.data.showSelectedPath?n=r.map(function(e){return d({},e,{title:e.titlePath||e.title})}):r.length&&(n=[].concat(o(r.filter(function(e){return!n.find(function(t){return t.id===e.id})})),o(n))),n.unshift({id:this.props.data.multiple?"":N,title:this.props.data.hasEmptyDefault?this.props.data.emptyString:null,disabled:!n.length||!this.props.data.hasEmptyDefault}),n}},{key:"getPath",value:function(e){var t=this.props.findTreePath(this.props.tree,e,this.props.data.treeBaseId);return this.getBreadcrumbs(t).reduce(function(e,t){return""+e+(t.contextString||"")+t.title+"/"},"")}},{key:"initialise",value:function(){var e=this;return this.loadTree([],this.props.search).then(function(t){var n=[];!e.props.data.multiple&&e.props.value&&(n=e.props.findTreePath(t,e.props.value,e.props.data.treeBaseId),n?n.pop():n=[]),e.props.actions.treeDropdownField.setVisible(e.props.id,n)})}},{key:"callFetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props,r=A.default.parse(n.data.urlTree,!0);n.data.showSearch&&t.length&&(r.query.search=t,r.query.flatList="1"),e.length?r.query.ID=e[e.length-1]:!n.data.multiple&&n.value&&(r.query.forceValue=n.value),r.query.format="json",r.search=null;var o=A.default.format(r);return this.props.fetch(o,{credentials:"same-origin"}).then(function(e){return e.json()})}},{key:"lazyLoad",value:function(e){var t=this;if(e.find(function(e){return t.props.loading.indexOf(e)>-1||t.props.failed.indexOf(e)>-1}))return Promise.resolve({});var n=this.props.findTreeByPath(this.props.tree,e);return n&&(0===n.count||n.children.length)?Promise.resolve({}):this.loadTree(e)}},{key:"loadTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props;return n.actions.treeDropdownField.beginTreeUpdating(n.id,e),this.callFetch(e,t,n).then(function(t){return n.actions.treeDropdownField.updateTree(n.id,e,t),t}).catch(function(t){if(n.actions.treeDropdownField.updateTreeFailed(n.id,e),"function"==typeof n.onLoadingError)return n.onLoadingError({errors:[{value:t.message,type:"error"}]});throw t})}},{key:"hasSearch",value:function(){return this.props.data.showSearch&&Boolean(this.props.search)}},{key:"filterOptions",value:function(e){var t=this,n=this.getVisibleTree();return e.filter(function(e){if((e.id===N||""===e.id)&&(!t.props.data.hasEmptyDefault||t.props.visible.length||t.hasSearch()))return!1;var r=e.title&&e.title.toLocaleLowerCase(),o=t.props.search.toLocaleLowerCase();return o?r&&r.includes(o):!n||!e.id||n.children.find(function(t){return t.id===e.id})})}},{key:"handleOpen",value:function(){this.setState({opened:!0}),this.handleSearchReset()}},{key:"handleClose",value:function(){this.setState({opened:!1})}},{key:"handleSearchReset",value:function(){clearTimeout(this.searchTimer),this.props.actions.treeDropdownField.setSearch(this.props.id,"")}},{key:"handleSearchChange",value:function(e){var t=this;clearTimeout(this.searchTimer),this.searchTimer=setTimeout(function(){t.props.actions.treeDropdownField.setSearch(t.props.id,e)},500)}},{key:"handleChange",value:function(e){var t=null;if(this.handleSearchReset(),this.props.data.multiple){if(t=I,e&&e.length){var n=e&&e.filter(function(t,n){return e.findIndex(function(e){return e.id===t.id})===n});t=n.map(function(e){return e.id}),this.props.actions.treeDropdownField.addSelectedValues(this.props.id,n)}}else{var r=e?e.id:null,o=this.getVisibleTree()||this.props.tree,i=o.children.find(function(e){return e.id===r});i&&(this.props.data.showSelectedPath&&(i=d({},i,{titlePath:this.getPath(r)})),this.props.actions.treeDropdownField.addSelectedValues(this.props.id,[i])),t=r||N}"function"==typeof this.props.onChange&&this.props.onChange(t)}},{key:"handleNavigate",value:function(e,t){if(e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),e.preventDefault(),!this.hasSearch()){var n=this.props.findTreePath(this.props.tree,t,this.props.data.treeBaseId);n||(n=this.props.visible.slice(0),n.push(t)),this.lazyLoad(n),this.props.actions.treeDropdownField.setVisible(this.props.id,n)}}},{key:"handleKeyDown",value:function(e){if(this.hasSearch())return void(27===e.keyCode&&this.handleSearchReset(e));var t=this.selectField.getFocusedOption();if(t)switch(e.keyCode){case 37:this.handleBack(e);break;case 39:t.count&&this.handleNavigate(e,t.id)}}},{key:"handleBack",value:function(e){if(e.stopPropagation(),e.preventDefault(),!this.hasSearch()){var t=this.props.visible;t.length&&(t=t.slice(0,t.length-1)),this.lazyLoad(t),this.props.actions.treeDropdownField.setVisible(this.props.id,t)}}},{key:"renderMenu",value:function(e){var t=this.getVisibleTree()||{},n=this.props.loading.indexOf(t.id||0)>-1,r=this.props.failed.indexOf(t.id||0)>-1,o=this.getBreadcrumbs();return h.default.createElement(S.default,{loading:n,failed:r,tree:t,breadcrumbs:o,renderMenuOptions:e,onBack:this.handleBack,search:this.hasSearch(),value:this.props.value})}},{key:"renderOption",value:function(e){var t=this,n=null;if(e.count&&!this.hasSearch()){var r=function(n){return t.handleNavigate(n,e.id)};n=h.default.createElement("button",{className:"treedropdownfield__option-button fill-width",onClick:r,onMouseDown:r,onTouchStart:r},h.default.createElement("span",{className:"treedropdownfield__option-count-icon font-icon-right-open-big"}))}var o=function(e){var t=e.children;return h.default.createElement("span",{className:"treedropdownfield__option-title--highlighted"},t)},i=this.props.search.length?(0,D.mapHighlight)(e.title,this.props.search,o):e.title,a=null;return this.hasSearch()&&((a=e.contextString)||!this.props.data.hasEmptyDefault||this.props.visible.length||(a=this.props.data.emptyString)),h.default.createElement("div",{className:"treedropdownfield__option fill-width"},h.default.createElement("div",{className:"treedropdownfield__option-title-box flexbox-area-grow fill-height"},h.default.createElement("span",{className:"treedropdownfield__option-title"},i),a&&h.default.createElement("span",{className:"treedropdownfield__option-context"},a)),n)}},{key:"renderReadOnly",value:function(){var e=this,t={id:this.props.id,readOnly:this.props.readOnly,disabled:this.props.disabled},n=this.props.extraClass?"treedropdownfield "+this.props.extraClass:"treedropdownfield",r=this.props.data.hasEmptyDefault?this.props.data.emptyString:"",o=this.props.selectedValues;if(this.props.data.multiple)r=this.props.value.map(function(e){return o.find(function(t){return t.id===e})||e}).map(function(e){return e.title}).join(", ");else{var i=o.find(function(t){return t.id===e.props.value});r=this.props.value,i&&"string"==typeof i.title&&(r=i.title)}return h.default.createElement("div",{className:n},h.default.createElement("span",{className:"treedropdownfield__title"},r),h.default.createElement(M.Input,d({type:"hidden",name:this.props.name,value:this.props.value},t)))}},{key:"render",value:function(){var e=this;if(this.props.readOnly||this.props.disabled)return this.renderReadOnly();var t={id:this.props.id},n=this.props.extraClass?"treedropdownfield "+this.props.extraClass:"treedropdownfield",r=this.getDropdownOptions(),o=this.props.value;this.props.data.multiple&&(o=this.props.value?this.props.selectedValues.filter(function(e){return o.includes(e.id)}):[]);var i=this.props.data.hasEmptyDefault&&!this.props.visible.length?"":null,a=void 0!==this.props.data.showSearch&&this.props.data.showSearch;return h.default.createElement(T.default,{searchable:a,multi:this.props.data.multiple,className:n,name:this.props.name,options:r,inputProps:t,menuRenderer:this.renderMenu,filterOptions:this.filterOptions,optionRenderer:this.renderOption,onChange:this.handleChange,onOpen:this.handleOpen,onClose:this.handleClose,onBlurResetsInput:!0,onInputKeyDown:this.handleKeyDown,onInputChange:this.handleSearchChange,isLoading:Boolean(this.props.loading.length),value:o,resetValue:i,joinValues:!0,ref:function(t){e.selectField=t},placeholder:this.props.data.emptyString,labelKey:"title",valueKey:"id"})}}]),t}(p.Component);T.default.prototype.componentWillReceiveProps=function(e){var t=this.getValueArray(e.value,e);e.required?this.setState({required:function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)}(t[0],e.multi)}):this.props.required&&this.setState({required:!1});var n=[this.props.value,e.value].map(JSON.stringify),r=u(n,2),o=r[0],i=r[1];this.state.inputValue&&o!==i&&e.onSelectResetsInput&&this.setState({inputValue:this.handleInputValueChange("")})},L.propTypes={extraClass:b.default.string,id:b.default.string,name:b.default.string.isRequired,onChange:b.default.func,value:b.default.oneOfType([b.default.string,b.default.number,b.default.array]),readOnly:b.default.bool,disabled:b.default.bool,tree:b.default.shape(F.default.propTypes),findTreeByPath:b.default.func,findTreePath:b.default.func,visible:b.default.array,loading:b.default.array,failed:b.default.array,selectedValues:b.default.array,data:b.default.shape({cacheKey:b.default.string,urlTree:b.default.string.isRequired,emptyString:b.default.string,valueObject:b.default.shape(F.default.propTypes),valueObjects:b.default.arrayOf(b.default.shape(F.default.propTypes)),hasEmptyDefault:b.default.bool,showSearch:b.default.bool,multiple:b.default.bool,showSelectedPath:b.default.bool,treeBaseId:b.default.number}),onLoadingError:b.default.func,search:b.default.string,actions:b.default.shape({treeDropdownField:b.default.object}),fetch:b.default.func},L.defaultProps={value:"",extraClass:"",className:"",tree:{},visible:[],loading:[],failed:[],findTreeByPath:R.findTreeByPath,findTreePath:R.findTreePath,fetch:w.default};var B=(0,g.connect)(l,c)(L);t.Component=L,t.ConnectedTreeDropdownField=B,t.MULTI_EMPTY_VALUE=I,t.SINGLE_EMPTY_VALUE=N,t.findTreePath=R.findTreePath,t.findTreeByID=R.findTreeByID,t.findTreeByPath=R.findTreeByPath,t.default=(0,_.default)(B)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldMenu.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n("react"),c=r(l),u=n("prop-types"),d=r(u),f=n("i18n"),p=r(f),h=n("classnames"),m=r(h),b=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldNode.js"),g=r(b),v=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.render=n.render.bind(n),n.renderOption=n.renderOption.bind(n),n.renderBreadcrumbs=n.renderBreadcrumbs.bind(n),n.handleBack=n.handleBack.bind(n),n}return a(t,e),s(t,[{key:"handleBack",value:function(e){"function"==typeof this.props.onBack?this.props.onBack(e):(e.stopPropagation(),e.preventDefault())}},{key:"renderBreadcrumbs",value:function(){if(0===this.props.breadcrumbs.length)return null;var e=this.props.breadcrumbs.map(function(e){return e.title}).join(" / "),t=this.props.search?"font-icon-search":"font-icon-left-open-big",n=c.default.createElement("button",{className:"treedropdownfield__breadcrumbs-button"},c.default.createElement("span",{className:"icon "+t}));return c.default.createElement("div",{className:"Select-option treedropdownfield__breadcrumbs flexbox-area-grow fill-width",onClick:this.handleBack,role:"button",tabIndex:0},n,c.default.createElement("span",{className:"treedropdownfield__breadcrumbs-crumbs flexbox-area-grow"},e))}},{key:"renderOption",value:function(e,t){if(!this.props.renderMenuOptions)return null;var n=this.props.renderMenuOptions,r=n.focusedOption,o=n.instancePrefix,i=n.onFocus,a=n.onSelect,s=n.optionClassName,l=n.optionComponent,u=n.optionRenderer,d=n.onOptionRef,f=l,p=this.props.value,h=p===e.id;Array.isArray(p)&&(h=p.includes(e.id));var b=r&&e.id===r.id,g=(0,m.default)(s,{treedropdownfield__option:!0,"Select-option":!0,"is-selected":h,"is-focused":b,"is-disabled":e.disabled});return c.default.createElement(f,{className:g,instancePrefix:o,isDisabled:e.disabled,isFocused:b,isSelected:h,key:"option-"+e.id+"-"+t,onFocus:i,onSelect:a,option:e,optionIndex:t,ref:function(e){d(e,b)}},u(e,t))}},{key:"render",value:function(){var e=(0,m.default)([this.props.className,"treedropdownfield__menu"]);if(this.props.loading)return c.default.createElement("div",{className:e},c.default.createElement("div",{className:"Select-option flexbox-area-grow fill-width"},c.default.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},c.default.createElement("span",{className:"Select-loading"})),c.default.createElement("span",{className:"treedropdownfield__menu-loading flexbox-area-grow"},p.default._t("Admin.TREEDROPDOWN_LOADING","Loading..."))));if(this.props.failed)return c.default.createElement("div",{className:e},c.default.createElement("div",{className:"Select-option"},p.default._t("Admin.TREEDROPDOWN_FAILED","Failed to load")));if(0===this.props.tree.count)return c.default.createElement("div",{className:e},c.default.createElement("div",{className:"Select-option"},p.default._t("Admin.TREEDROPDOWN_NO_CHILDREN","No children")));var t=this.renderBreadcrumbs(),n=this.props.renderMenuOptions&&this.props.renderMenuOptions.options,r=n?n.filter(function(e){return null!==e.title}).map(this.renderOption):null;return c.default.createElement("div",{className:e},t,r)}}]),t}(l.Component);v.propTypes={className:d.default.string,breadcrumbs:d.default.arrayOf(d.default.shape(g.default.propTypes)),loading:d.default.bool,failed:d.default.bool,tree:d.default.shape(g.default.propTypes),renderMenuOptions:d.default.object,onBack:d.default.func,search:d.default.bool,value:d.default.oneOfType([d.default.string,d.default.number,d.default.array])},t.default=v},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldNode.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("prop-types"),o=function(e){return e&&e.__esModule?e:{default:e}}(r),i=function(){return null};i.propTypes={id:o.default.oneOfType([o.default.string,o.default.number]),title:o.default.string,titlePath:o.default.string,disabled:o.default.bool,parentid:o.default.number,count:o.default.number,depth:o.default.number,expanded:o.default.bool,limited:o.default.bool,marked:o.default.bool,opened:o.default.bool,children:o.default.array},t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/VersionedBadge/VersionedBadge.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.statuses=void 0;var o=n("react"),i=r(o),a=n("classnames"),s=r(a),l=n("prop-types"),c=r(l),u=n("components/Badge/Badge"),d=r(u),f=n("i18n"),p=r(f),h=t.statuses=["draft","modified","live","archived"],m=function(e){return e.replace(/^\w/,function(e){return e.toUpperCase()})},b=function(e){var t=e.status,n=e.className,r={className:(0,s.default)(n,"versioned-badge","versioned-badge--"+t),message:p.default._t("ADMIN."+t.toUpperCase(),m(t)),status:"default"};return i.default.createElement(d.default,r)};b.propTypes={status:c.default.oneOf(h).isRequired,className:c.default.string},t.default=b},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ViewModeToggle/ViewModeToggle.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{activeState:e.viewMode.activeState,splitAvailable:e.viewMode.splitAvailable}}function l(e){return{onSplitSelect:function(){e((0,_.selectSplitMode)())},onEditSelect:function(){e((0,_.selectEditMode)())},onPreviewSelect:function(){e((0,_.selectPreviewMode)())}}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n("react"),f=r(d),p=n("prop-types"),h=r(p),m=n("reactstrap"),b=n("i18n"),g=r(b),v=n("react-redux"),y=n("redux"),_=n("state/viewMode/ViewModeActions"),j=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/viewMode/ViewModeStates.js"),w=n("classnames"),O=r(w),T=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggle=n.toggle.bind(n),n.state={dropdownOpen:!1},n.handleSplitSelect=n.handleSplitSelect.bind(n),n.handlePreviewSelect=n.handlePreviewSelect.bind(n),n.handleEditSelect=n.handleEditSelect.bind(n),n}return a(t,e),u(t,[{key:"getIconClass",value:function(){var e=this.props,t=e.activeState,n=e.editIconClass,r=e.previewIconClass,o=e.splitIconClass;switch(t){case j.VIEW_MODE_STATES.EDIT:return n;case j.VIEW_MODE_STATES.PREVIEW:return r;default:return o}}},{key:"getTitle",value:function(){switch(this.props.activeState){case j.VIEW_MODE_STATES.EDIT:return g.default._t("Admin.EDIT_MODE","Edit mode");case j.VIEW_MODE_STATES.PREVIEW:return g.default._t("Admin.PREVIEW_MODE","Preview mode");default:return g.default._t("Admin.SPLIT_MODE","Split mode")}}},{key:"toggle",value:function(){this.setState(function(e){return{dropdownOpen:!e.dropdownOpen}})}},{key:"handleSplitSelect",value:function(){this.props.onSplitSelect()}},{key:"handlePreviewSelect",value:function(){this.props.onPreviewSelect()}},{key:"handleEditSelect",value:function(){this.props.onEditSelect()}},{key:"renderSplitDropdownItem",value:function(){var e=this.props,t=e.activeState,n=e.splitAvailable,r=e.splitIconClass,o=(0,O.default)("btn","icon-view","first",r,{"viewmode-toggle__button":!0,"viewmode-toggle--selected":t===j.VIEW_MODE_STATES.SPLIT,disabled:!n});return f.default.createElement(m.DropdownItem,{type:"button",disabled:!n,className:o,value:j.VIEW_MODE_STATES.SPLIT,onClick:this.handleSplitSelect,id:"splitModeButton"},g.default._t("Admin.SPLIT_MODE","Split mode"))}},{key:"renderEditDropDownItem",value:function(){var e=this.props,t=e.activeState,n=e.editIconClass,r=(0,O.default)("btn","icon-view","last","viewmode-toggle__button",n,{"viewmode-toggle--selected":t===j.VIEW_MODE_STATES.EDIT});return f.default.createElement(m.DropdownItem,{type:"button",className:r,value:"content",onClick:this.handleEditSelect},g.default._t("Admin.EDIT_MODE","Edit mode"))}},{key:"renderPreviewDropDownItem",value:function(){var e=this.props,t=e.activeState,n=e.previewIconClass,r=(0,O.default)("btn","icon-view","viewmode-toggle__button",n,{"viewmode-toggle--selected":t===j.VIEW_MODE_STATES.PREVIEW});return f.default.createElement(m.DropdownItem,{type:"button",className:r,value:"preview",onClick:this.handlePreviewSelect},g.default._t("Admin.PREVIEW_MODE","Preview mode"))}},{key:"render",value:function(){var e=this.props,t=e.activeState,n=e.area,r=e.splitAvailable,o=e.dropdownToggleProps;if(n===j.VIEW_MODE_STATES.EDIT&&t===j.VIEW_MODE_STATES.SPLIT)return null;var i=(0,O.default)(this.getIconClass(),"btn","viewmode-toggle__dropdown",o.classname);return f.default.createElement(m.Dropdown,{isOpen:this.state.dropdownOpen,toggle:this.toggle,className:"viewmode-toggle"},f.default.createElement(m.DropdownToggle,c({className:i,caret:!0},o),f.default.createElement("span",{className:"viewmode-toggle__chosen-view-title"},this.getTitle())),f.default.createElement(m.DropdownMenu,null,this.renderSplitDropdownItem(),this.renderEditDropDownItem(),this.renderPreviewDropDownItem(),!r&&f.default.createElement("div",{className:"disabled-tooltip"},f.default.createElement("span",{className:"disabled-tooltip-span"},g.default._t("Admin.SCREEN_TOO_SMALL","Screen size too small")))))}}]),t}(d.Component);T.propTypes={activeState:h.default.oneOf(Object.values(j.VIEW_MODE_STATES)),area:h.default.string.isRequired,splitAvailable:h.default.bool,onPreviewSelect:h.default.func,onEditSelect:h.default.func,onSplitSelect:h.default.func,editIconClass:h.default.string,previewIconClass:h.default.string,splitIconClass:h.default.string},T.defaultProps={splitAvailable:!0,editIconClass:"font-icon-edit-write",previewIconClass:"font-icon-eye",splitIconClass:"font-icon-columns",dropdownToggleProps:{}},t.Component=T,t.default=(0,y.compose)((0,v.connect)(s,l))(T)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/containers/FormBuilderLoader/FormBuilderLoader.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=e.identifier,n=e.schema,r=void 0===n?{}:n;return[t,r.schema&&r.schema.name].filter(function(e){return e}).join(".")}function l(e,t){var n=e.form.formSchemas[t.schemaUrl],r=s(u({},t,{schema:n})),o=(0,R.default)((0,L.default)(e),r);return{schema:n,submitting:o&&o.submitting,values:o&&o.values,stateOverrides:n&&n.stateOverride,loading:n&&n.metadata&&n.metadata.loading}}function c(e){return{actions:{schema:(0,y.bindActionCreators)(k,e),reduxForm:(0,y.bindActionCreators)({autofill:T.autofill,initialize:T.initialize},e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n("i18n"),p=r(f),h=n("react"),m=r(h),b=n("prop-types"),g=r(b),v=n("react-redux"),y=n("redux"),_=n("isomorphic-fetch"),j=r(_),w=n("deep-freeze-strict"),O=r(w),T=n("redux-form"),C=n("lib/schemaFieldValues"),E=r(C),x=n("./client/src/lib/createErrorBlock.js"),S=n("state/schema/SchemaActions"),k=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(S),F=n("merge"),P=r(F),A=n("components/FormBuilder/FormBuilder"),M=r(A),D=n("./node_modules/redux-form/lib/structure/plain/getIn.js"),R=r(D),I=n("lib/Injector"),N=n("lib/getFormState"),L=r(N),B=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleSubmit=n.handleSubmit.bind(n),n.reduceSchemaErrors=n.reduceSchemaErrors.bind(n),n.handleAutofill=n.handleAutofill.bind(n),n}return a(t,e),d(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.schema;!e.refetchSchemaOnMount&&t||this.fetch()}},{key:"componentDidUpdate",value:function(e){this.props.schemaUrl!==e.schemaUrl&&this.fetch()}},{key:"getMessages",value:function(e){var t={};return e&&e.fields&&e.fields.forEach(function(e){e.message&&(t[e.name]=e.message)}),t}},{key:"getIdentifier",value:function(){return s(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props)}},{key:"handleSubmit",value:function(e,t,n){var r=this,o=null,i=function(){return n().then(function(e){var t=e;if(t){var n=void 0!==t.state;if(t=r.reduceSchemaErrors(t),r.props.actions.schema.setSchema(r.props.schemaUrl,t,r.getIdentifier()),n){var o=t.schema||r.props.schema.schema,i=(0,E.default)(o,t.state);r.props.actions.reduxForm.initialize(r.getIdentifier(),i)}}return t})};if(!(o="function"==typeof this.props.onSubmit?this.props.onSubmit(e,t,i):i()))throw new Error("Promise was not returned for submitting");return o.then(function(e){if(!e||!e.state)return e;var t=r.getMessages(e.state);if(Object.keys(t).length)throw new T.SubmissionError(t);return e})}},{key:"reduceSchemaErrors",value:function(e){if(!e.errors)return e;var t=u({},e);return t.state||(t=u({},t,{state:this.props.schema.state})),t=u({},t,{state:u({},t.state,{fields:t.state.fields.map(function(t){var n=e.errors.find(function(e){return e.field===t.name});return n&&(n=(0,x.createErrorHtml)([n.value])),u({},t,{message:n})}),messages:e.errors.filter(function(e){return!e.field})})}),delete t.errors,(0,O.default)(t)}},{key:"overrideStateData",value:function(e){if(!this.props.stateOverrides||!e)return e;var t=this.props.stateOverrides.fields,n=e.fields;return t&&n&&(n=n.map(function(e){var n=t.find(function(t){return t.name===e.name});return n?P.default.recursive(!0,e,n):e})),Object.assign({},e,this.props.stateOverrides,{fields:n})}},{key:"callFetch",value:function(e){return(0,j.default)(this.props.schemaUrl,{headers:{"X-FormSchema-Request":e.join(","),Accept:"application/json"},credentials:"same-origin"}).then(function(e){return e.status>=200&&e.status<300?e.json():new Promise(function(t,n){return e.json().then(function(t){n({status:e.status,statusText:e.statusText,json:t})}).catch(function(){n({status:e.status,statusText:e.statusText,json:{}})})})})}},{key:"fetch",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this.props.loading)return Promise.resolve({});var o=["auto",e&&"schema",n&&"state",r&&"errors"].filter(function(e){return e});return this.props.actions.schema.setSchemaLoading(this.props.schemaUrl,!0),"function"==typeof this.props.onFetchingSchema&&this.props.onFetchingSchema(),this.callFetch(o).then(function(e){if(t.props.actions.schema.setSchemaLoading(t.props.schemaUrl,!1),e.errors?"function"==typeof t.props.onLoadingError&&t.props.onLoadingError(e):"function"==typeof t.props.onLoadingSuccess&&t.props.onLoadingSuccess(),void 0!==e.id&&e.state){var n=Object.assign({},e,{state:t.overrideStateData(e.state)}),r=s(u({},t.props,{schema:u({},t.props.schema,n)}));t.props.actions.schema.setSchema(t.props.schemaUrl,n,r);var o=e.schema||t.props.schema.schema,i=(0,E.default)(o,n.state);return t.props.actions.reduxForm.initialize(r,i,!1,{keepSubmitSucceeded:!0}),"function"==typeof t.props.onReduxFormInit&&t.props.onReduxFormInit(),n}return e}).catch(function(e){if(t.setState({didError:!0}),t.props.actions.schema.setSchemaLoading(t.props.schemaUrl,!1),"function"==typeof t.props.onLoadingError)return t.props.onLoadingError(t.normaliseError(e));throw e})}},{key:"normaliseError",value:function(e){return e.json&&e.json.errors?e.json:e.status&&e.statusText?{errors:[{code:e.status,value:e.statusText,type:"error"}]}:{errors:[{value:e.message||p.default._t("Admin.UNKNOWN_ERROR","An unknown error has occurred."),type:"error"}]}}},{key:"handleAutofill",value:function(e,t){this.props.actions.reduxForm.autofill(this.getIdentifier(),e,t)}},{key:"render",value:function(){if(this.state&&this.state.didError)return null;if(!this.props.schema||!this.props.schema.schema||this.props.loading){var e=this.props.loadingComponent;return m.default.createElement(e,{containerClass:"loading--form flexbox-area-grow"})}var t=Object.assign({},this.props,{form:this.getIdentifier(),onSubmitSuccess:this.props.onSubmitSuccess,onSubmit:this.handleSubmit,onAutofill:this.handleAutofill,autoFocus:this.props.autoFocus});return m.default.createElement(M.default,t)}}]),t}(h.Component);B.propTypes=Object.assign({},A.basePropTypes,{actions:g.default.shape({schema:g.default.object,reduxFrom:g.default.object}),autoFocus:g.default.bool,identifier:g.default.string.isRequired,schemaUrl:g.default.string.isRequired,schema:A.schemaPropType,refetchSchemaOnMount:g.default.bool.isRequired,form:g.default.string,submitting:g.default.bool,onFetchingSchema:g.default.func,onReduxFormInit:g.default.func,loadingComponent:g.default.oneOfType([g.default.func,g.default.node]).isRequired}),B.defaultProps={refetchSchemaOnMount:!0},t.Component=B,t.default=(0,y.compose)((0,I.inject)(["ReduxForm","ReduxFormField","Loading"],function(e,t,n){return{loadingComponent:n,baseFormComponent:e,baseFieldComponent:t}},function(e){return e.identifier}),(0,v.connect)(l,c))(B)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/containers/InsertLinkModal/InsertLinkModal.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return{actions:{schema:(0,p.bindActionCreators)(_,e)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.createInsertLinkModal=t.InsertLinkModal=void 0;var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n("react"),u=r(c),d=n("prop-types"),f=r(d),p=n("redux"),h=n("react-redux"),m=n("components/FormBuilderModal/FormBuilderModal"),b=r(m),g=n("containers/InsertLinkModal/fileSchemaModalHandler"),v=r(g),y=n("state/schema/SchemaActions"),_=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(y),j=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleSubmit=n.handleSubmit.bind(n),e.isOpen||e.setOverrides(null),n}return a(t,e),l(t,[{key:"componentDidUpdate",value:function(e){var t=this.props;(t.isOpen&&!e.isOpen||!t.isOpen&&e.isOpen)&&t.setOverrides(t.isOpen?t:null)}},{key:"getModalProps",value:function(){var e=Object.assign({},this.props,{onSubmit:this.handleSubmit,onClosed:this.props.onClosed,autoFocus:!0,showErrorMessage:!0});return delete e.onInsert,delete e.sectionConfig,e}},{key:"handleSubmit",value:function(e,t){switch(t){case"action_cancel":this.props.onClosed();break;default:this.props.onInsert(e,t)}return Promise.resolve()}},{key:"render",value:function(){var e=this.getModalProps();return u.default.createElement(b.default,e)}}]),t}(c.Component);j.propTypes={isOpen:f.default.bool,schemaUrl:f.default.string,onInsert:f.default.func.isRequired,onClosed:f.default.func.isRequired,setOverrides:f.default.func.isRequired,actions:f.default.object,requireLinkText:f.default.bool,currentPageID:f.default.number},j.defaultProps={};var w=function(e,t){function n(n,r){var o=n.config.sections.find(function(t){return t.name===e}),i=r.requireLinkText?"?requireLinkText":"";return{sectionConfig:o,schemaUrl:(""+o.form[t].schemaUrl+i).replace(/:pageid/,r.currentPageID)}}return(0,p.compose)((0,h.connect)(n,s),v.default)(j)};t.InsertLinkModal=j,t.createInsertLinkModal=w,t.default=(0,p.compose)((0,h.connect)(function(){return{}},s),v.default)(j)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/containers/InsertLinkModal/fileSchemaModalHandler.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){var n=t&&t.actions||{};return{actions:u({},n,{schema:(0,g.bindActionCreators)(y,e)})}}function c(e){function t(){return{Component:e}}return(0,_.connect)(t,l)(j)}Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectedFileSchemaHandler=t.FileSchemaHandler=void 0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=n("react"),h=r(p),m=n("prop-types"),b=r(m),g=n("redux"),v=n("state/schema/SchemaActions"),y=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(v),_=n("react-redux"),j=function(e){function t(e){i(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverrides=n.setOverrides.bind(n),n}return s(t,e),f(t,[{key:"componentDidMount",value:function(){this.setOverrides(this.props)}},{key:"componentWillUnmount",value:function(){this.setOverrides()}},{key:"setOverrides",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(e){if(e.schemaUrl){var t=Object.assign({},e.fileAttributes);delete t.ID;var n={fields:Object.entries(t).map(function(e){var t=d(e,2);return{name:t[0],value:t[1]}})};this.props.actions.schema.setSchemaStateOverrides(e.schemaUrl,n)}}else{var r=this.props.schemaUrl;r&&this.props.actions.schema.setSchemaStateOverrides(r,null)}}},{key:"render",value:function(){var e=this.props,t=e.Component,n=o(e,["Component"]);return h.default.createElement(t,u({setOverrides:this.setOverrides},n))}}]),t}(p.Component);j.propTypes={fileAttributes:b.default.object,Component:b.default.oneOfType([b.default.element,b.default.func]),schemaUrl:b.default.string,actions:b.default.object};var w=(0,_.connect)(function(){return{}},l())(j);t.FileSchemaHandler=j,t.ConnectedFileSchemaHandler=w,t.default=c},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Backend.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=null;if(!(e.status>=200&&e.status<300))throw t=new Error(e.statusText),t.response=e,t;return e}function s(e){var t=null;if(e instanceof FormData||"string"==typeof e)t=e;else{if(!e||"object"!==(void 0===e?"undefined":m(e)))throw new Error("Invalid body type");t=JSON.stringify(e)}return t}function l(e,t){switch(e){case"application/x-www-form-urlencoded":return j.default.stringify(t);case"application/json":case"application/x-json":case"application/x-javascript":case"text/javascript":case"text/x-javascript":case"text/x-json":return JSON.stringify(t);default:throw new Error("Can't encode format: "+e)}}function c(e,t){switch(e){case"application/x-www-form-urlencoded":return j.default.parse(t);case"application/json":case"application/x-json":case"application/x-javascript":case"text/javascript":case"text/x-javascript":case"text/x-json":return JSON.parse(t);default:throw new Error("Can't decode format: "+e)}}function u(e,t){return""===t?e:e.match(/\?/)?e+"&"+t:e+"?"+t}function d(e){return e.text().then(function(t){return c(e.headers.get("Content-Type"),t)})}function f(e,t){return Object.keys(t).reduce(function(n,r){var o=e[r];return!o||!0!==o.remove&&!0!==o.querystring?Object.assign(n,i({},r,t[r])):n},{})}function p(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{setFromData:!1},o=t;return o=u(o,l("application/x-www-form-urlencoded",Object.keys(n).reduce(function(t,o){var a=e[o],s=!0===r.setFromData&&!(a&&!0===a.remove),l=a&&!0===a.querystring&&!0!==a.remove;return s||l?Object.assign(t,i({},o,n[o])):t},{}))),o=Object.keys(e).reduce(function(t,r){var o=e[r].urlReplacement;return o?t.replace(o,n[r]):t},o)}Object.defineProperty(t,"__esModule",{value:!0});var h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b=n("isomorphic-fetch"),g=r(b),v=n("./node_modules/es6-promise/dist/es6-promise.js"),y=r(v),_=n("qs"),j=r(_),w=n("merge"),O=r(w);y.default.polyfill();var T=function(){function e(){o(this,e),this.fetch=g.default}return h(e,[{key:"createEndpointFetcher",value:function(e){var t=this,n=Object.assign({method:"get",payloadFormat:"application/x-www-form-urlencoded",responseFormat:"application/json",payloadSchema:{},defaultData:{}},e),r={json:"application/json",urlencoded:"application/x-www-form-urlencoded"};return["payloadFormat","responseFormat"].forEach(function(e){r[n[e]]&&(n[e]=r[n[e]])}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object.assign({},r,{Accept:n.responseFormat,"Content-Type":n.payloadFormat}),i=O.default.recursive({},n.defaultData,e),a=p(n.payloadSchema,n.url,i,{setFromData:"get"===n.method.toLowerCase()}),s="get"!==n.method.toLowerCase()?l(n.payloadFormat,f(n.payloadSchema,i)):"",c="get"===n.method.toLowerCase()?[a,o]:[a,s,o];return t[n.method.toLowerCase()].apply(t,c).then(d)}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.fetch(e,{method:"get",credentials:"same-origin",headers:t}).then(a)}},{key:"post",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={"Content-Type":"application/x-www-form-urlencoded"};return this.fetch(e,{method:"post",credentials:"same-origin",body:s(t),headers:Object.assign({},r,n)}).then(a)}},{key:"put",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.fetch(e,{method:"put",credentials:"same-origin",body:s(t),headers:n}).then(a)}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.fetch(e,{method:"delete",credentials:"same-origin",body:s(t),headers:n}).then(a)}}]),e}(),C=new T;t.default=C},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Config.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){r(this,e)}return o(e,null,[{key:"get",value:function(e){return window.ss.config[e]}},{key:"getAll",value:function(){return window.ss.config}},{key:"getSection",value:function(e){return window.ss.config.sections.find(function(t){return t.name===e})}},{key:"getCurrentSection",value:function(){}}]),e}();t.default=i},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/DataFormat.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return u.default.parse(e.replace(/^\?/,""))}function i(e){var t=null,n="";return e<1024?(t=e,n="bytes"):e<10240?(t=Math.round(e/1024*10)/10,n="KB"):e<1048576?(t=Math.round(e/1024),n="KB"):e<10485760?(t=Math.round(e/1048576*10)/10,n="MB"):e<1073741824&&(t=Math.round(e/1048576),n="MB"),(t||0===t)&&n||(t=Math.round(e/1073741824*10)/10,n="GB"),isNaN(t)?l.default._t("Admin.NO_SIZE","N/A"):t+" "+n}function a(e){return/[.]/.exec(e)?e.replace(/^.+[.]/,""):""}Object.defineProperty(t,"__esModule",{value:!0}),t.decodeQuery=o,t.fileSize=i,t.getFileExtension=a;var s=n("i18n"),l=r(s),c=n("qs"),u=r(c)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Injector.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.graphqlTemplates=t.loadComponent=t.injectGraphql=t.inject=t.withInjector=t.provideContext=t.provideInjector=void 0;var o=n("./client/src/lib/dependency-injection/provideInjector.js"),i=r(o),a=n("./client/src/lib/dependency-injection/provideContext.js"),s=r(a),l=n("./client/src/lib/dependency-injection/withInjector.js"),c=r(l),u=n("./client/src/lib/dependency-injection/inject.js"),d=r(u),f=n("./client/src/lib/dependency-injection/injectGraphql.js"),p=r(f),h=n("./client/src/lib/dependency-injection/graphql/templates.js"),m=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(h),b=n("./client/src/lib/dependency-injection/loadComponent.js"),g=r(b),v=n("./client/src/lib/dependency-injection/Container.js"),y=r(v);t.provideInjector=i.default,t.provideContext=s.default,t.withInjector=c.default,t.inject=d.default,t.injectGraphql=p.default,t.loadComponent=g.default,t.graphqlTemplates=m,t.default=y.default},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/ReactRouteRegister.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(){r(this,e),this.reset()}return o(e,[{key:"reset",value:function(){var e=this;this.childRoutes=[],this.rootRoute={path:"/",routes:function(){return e.getChildRoutes()}}}},{key:"updateRootRoute",value:function(e){this.rootRoute=Object.assign({},this.rootRoute,e)}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.path===this.rootRoute.path&&Array.isArray(e.routes))return void(this.childRoutes=e.routes.concat(this.childRoutes));var n=this.findChildRoute(t),r=Object.assign({},{routes:[]},e),o=r.routes[r.routes.length-1];o&&"**"===o.path||(o={path:"**"},r.routes.push(o));var i=n.findIndex(function(t){return t.path===e.path});i>=0?n[i]=r:n.unshift(r)}},{key:"findChildRoute",value:function(e){var t=this.childRoutes;return e&&e.forEach(function(e){var n=t.find(function(t){return t.path===e});if(!n)throw new Error("Parent path "+e+" could not be found.");t=n.routes}),t}},{key:"getRootRoute",value:function(){return this.rootRoute}},{key:"getChildRoutes",value:function(){return this.childRoutes}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.findChildRoute(t),r=n.findIndex(function(t){return t.path===e});return r<0?null:n.splice(r,1)[0]}}]),e}();window.ss=window.ss||{},window.ss.routeRegister=window.ss.routeRegister||new i,t.default=window.ss.routeRegister},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Router.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=c.default.getAbsoluteBase(),n=d.default.resolve(t,e);return 0!==n.indexOf(t)?n:n.substring(t.length-1)}function i(e){return new c.default.Route(e).match(c.default.current,{})}function a(){return c.default.absoluteBaseURL}function s(e){c.default.absoluteBaseURL=e;var t=document.createElement("a");t.href=e;var n=t.pathname;n=n.replace(/\/$/,""),n.match(/^[^\/]/)&&(n="/"+n),c.default.base(n)}Object.defineProperty(t,"__esModule",{value:!0});var l=n("page.js"),c=r(l),u=n("url"),d=r(u);c.default.oldshow||(c.default.oldshow=c.default.show),c.default.setAbsoluteBase=s.bind(c.default),c.default.getAbsoluteBase=a.bind(c.default),c.default.resolveURLToBase=o.bind(c.default),c.default.show=function(e){return function(t,n,r,o){return e(c.default.resolveURLToBase(t),n,r,o)}}(c.default.oldshow),c.default.routeAppliesToCurrentLocation=i,window.ss=window.ss||{},window.ss.router=window.ss.router||c.default,t.default=window.ss.router},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/ShortcodeSerialiser.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.createHTMLSanitiser=t.sanitiseShortCodeProperties=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=n("i18n"),s=function(e){return e&&e.__esModule?e:{default:e}}(a),l=function(e){return e.toString().slice(1,-1)},c=l(/((?:[,\s]+(?:[a-z0-9\-_]+)=(?:(?:[a-z0-9\-_]+)|(?:\d+\.\d+)|(?:'[^']*')|(?:"[^"]*")))*)/),u=/[,\s]+([a-z0-9\-_]+)=(?:([a-z0-9\-_]+)|(\d+\.\d+)|(?:'([^']*)')|(?:"([^"]*)"))/,d=l(/\[%s/),f=l(/\[\s*\/\s*%s\s*]/),p=l(/((?:.|\n|)*?)/),h=l(/\s*/),m={match:function(e,t,n){var r=s.default.sprintf(d,e),o=""+r+c+h+"\\]";t&&(o=""+o+p+s.default.sprintf(f,e));var i=new RegExp(o,"i"),a=i.exec(n);return a?{name:e,wrapped:t,properties:this.parseProperties(a[1]),original:a[0],content:t?a[2]:null}:null},parseProperties:function(e){for(var t=e,n={},r=t.match(u);r;){var o=r[1]||"",i=r[2]||r[3]||r[4]||r[5]||"";o&&(n[o]=i);var a=t.indexOf(r[0]);t=t.substr(a+r[0].length),r=t.match(u)}return n},serialise:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?{sep:",",quote:"",replacer:/[^a-z0-9\-_.]/gi}:{sep:" ",quote:'"',replacer:/"/g},r=Object.entries(e.properties).map(function(e){var t=i(e,2),r=t[0],o=t[1];return o?""+n.sep+r+"="+n.quote+(""+o).replace(n.replacer,"")+n.quote:null}).filter(function(e){return null!==e}).join("");return e.wrapped?"["+e.name+r+"]"+e.content+"[/"+e.name+"]":"["+e.name+r+"]"}},b=function(){var e=document.createElement("div");return function(t){return void 0===t?"":(e.textContent=t,e.innerHTML)}},g=function(e){var t=b();return Object.entries(e).reduce(function(e,n){var a=i(n,2),s=a[0],l=a[1];return o({},e,r({},s,t(l)))},{})};t.sanitiseShortCodeProperties=g,t.createHTMLSanitiser=b,t.default=m},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/SilverStripeComponent.js":function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n("react"),l=null,c=function(e){function t(){r(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return clearTimeout(l),e}return i(t,e),a(t,[{key:"render",value:function(){return null}}]),t}(s.Component);c.propTypes={},t.default=c},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/TinyMCEActionRegistrar.js":function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(e,t){return e?e+"."+t:t},l=function(){function e(){o(this,e),this.actions={},this.editorCommandsToUrlTestsMap={},this.defaultCommand="sslinkexternal"}return a(e,[{key:"addAction",value:function(e,t,n){var o=t.priority||50,a=s(n,e);return this.getActions(e,n,!0).find(function(e){return t.text===e.text})||(this.actions[a]=[].concat(r(this.getActions(e,n,!1)),[i({},t,{priority:o})])),this}},{key:"getActions",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t&&!n||!this.actions[e]?[]:this.actions[e],i=s(t,e);return t&&this.actions[i]&&(o=[].concat(r(o),r(this.actions[i]))),o}},{key:"getSortedActions",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.getActions(e,t,n).sort(function(e,t){return t.priority-e.priority||(e.text.toLocaleLowerCase()>t.text.toLocaleLowerCase()?1:-1)})}},{key:"addCommandWithUrlTest",value:function(e,t){return this.editorCommandsToUrlTestsMap[e]=t,this}},{key:"setDefaultCommand",value:function(e){return this.defaultCommand=e,this}},{key:"getDefaultCommand",value:function(){return this.defaultCommand}},{key:"getEditorCommandFromUrl",value:function(e){var t=this,n=this.getDefaultCommand(),r=Object.keys(this.editorCommandsToUrlTestsMap),o=r.find(function(n){return t.editorCommandsToUrlTestsMap[n]&&t.editorCommandsToUrlTestsMap[n].test(e)});return o&&(n=o),n}}]),e}();window.ss=window.ss||{},window.ss.tinymceactions=window.ss.tinymceactions||new l,t.default=window.ss.tinymceactions},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/formatWrittenNumber.js":function(e,t,n){"use strict";function r(e){var t=Number(e);return null!==e&&t>=0&&t<10?[i.default._t("Admin.WRITTEN_NUMBER_ZERO","zero"),i.default._t("Admin.WRITTEN_NUMBER_ONE","one"),i.default._t("Admin.WRITTEN_NUMBER_TWO","two"),i.default._t("Admin.WRITTEN_NUMBER_THREE","three"),i.default._t("Admin.WRITTEN_NUMBER_FOUR","four"),i.default._t("Admin.WRITTEN_NUMBER_FIVE","five"),i.default._t("Admin.WRITTEN_NUMBER_SIX","six"),i.default._t("Admin.WRITTEN_NUMBER_SEVEN","seven"),i.default._t("Admin.WRITTEN_NUMBER_EIGHT","eight"),i.default._t("Admin.WRITTEN_NUMBER_NINE","nine")][t]:t?String(t):null}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n("i18n"),i=function(e){return e&&e.__esModule?e:{default:e}}(o)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/getFormState.js":function(e,t,n){"use strict";function r(e){return e.form&&e.form.formState||{}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/reduxFieldReducer.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return function(o){if(!t.payload.fieldId)throw new Error("Invalid fieldId");var i=e.fields||{},s=i[t.payload.fieldId]?e.fields[t.payload.fieldId]:n;return(0,a.default)(Object.assign({},e,{fields:Object.assign({},i,r({},t.payload.fieldId,Object.assign({},s,o(s))))}))}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n("deep-freeze-strict"),a=function(e){return e&&e.__esModule?e:{default:e}}(i)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/schemaFieldValues.js":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){return void 0===t?e:l.default.recursive(!0,e,t)}function i(e,t){return e?e.reduce(function(e,n){return e||i(n.children,t)},e.find(function(e){return e.name===t||e.name===t+"[]"})):null}function a(e,t){return t?t.fields.reduce(function(t,n){var o=i(e.fields,n.name);return o?"Structural"===o.type||!0===o.readOnly?t:Object.assign({},t,r({},n.name,n.value)):t},{}):{}}Object.defineProperty(t,"__esModule",{value:!0}),t.schemaMerge=o,t.findField=i,t.default=a;var s=n("merge"),l=function(e){return e&&e.__esModule?e:{default:e}}(s)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/withDragDropContext.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("react-dnd"),o=n("react-dnd-html5-backend"),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=(0,r.DragDropContext)(i.default)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/breadcrumbs/BreadcrumbsActions.js":function(e,t,n){"use strict";function r(e){return{type:i.default.SET_BREADCRUMBS,payload:{breadcrumbs:e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.setBreadcrumbs=r;var o=n("./client/src/state/breadcrumbs/BreadcrumbsActionTypes.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/records/RecordsActionTypes.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={FETCH_RECORDS_REQUEST:"FETCH_RECORDS_REQUEST",FETCH_RECORDS_FAILURE:"FETCH_RECORDS_FAILURE",FETCH_RECORDS_SUCCESS:"FETCH_RECORDS_SUCCESS",FETCH_RECORD_REQUEST:"FETCH_RECORD_REQUEST",FETCH_RECORD_FAILURE:"FETCH_RECORD_FAILURE",FETCH_RECORD_SUCCESS:"FETCH_RECORD_SUCCESS",DELETE_RECORD_REQUEST:"DELETE_RECORD_REQUEST",DELETE_RECORD_FAILURE:"DELETE_RECORD_FAILURE",DELETE_RECORD_SUCCESS:"DELETE_RECORD_SUCCESS"}},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/records/RecordsActions.js":function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return Object.keys(t).reduce(function(e,n){return e.replace(":"+n,t[n])},e)}function i(e,t,n){var r={recordType:e},i={Accept:"application/json"},a=t.toLowerCase();return function(t){t({type:d.default.FETCH_RECORDS_REQUEST,payload:r});var s="get"===a?[o(n,r),i]:[o(n,r),{},i];return c.default[a].apply(c.default,s).then(function(e){return e.json()}).then(function(n){t({type:d.default.FETCH_RECORDS_SUCCESS,payload:{recordType:e,data:n}})}).catch(function(n){throw t({type:d.default.FETCH_RECORDS_FAILURE,payload:{error:n,recordType:e}}),n})}}function a(e,t,n){var r={recordType:e},i={Accept:"application/json"},a=t.toLowerCase();return function(t){t({type:d.default.FETCH_RECORD_REQUEST,payload:r});var s="get"===a?[o(n,r),i]:[o(n,r),{},i];return c.default[a].apply(c.default,s).then(function(e){return e.json()}).then(function(n){t({type:d.default.FETCH_RECORD_SUCCESS,payload:{recordType:e,data:n}})}).catch(function(n){throw t({type:d.default.FETCH_RECORD_FAILURE,payload:{error:n,recordType:e}}),n})}}function s(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a={recordType:e,id:t},s=n.toLowerCase(),l="get"===s?[o(r,a),i]:[o(r,a),{},i];return function(n){return n({type:d.default.DELETE_RECORD_REQUEST,payload:a}),c.default[s].apply(c.default,l).then(function(){n({type:d.default.DELETE_RECORD_SUCCESS,payload:{recordType:e,id:t}})}).catch(function(r){throw n({type:d.default.DELETE_RECORD_FAILURE,payload:{error:r,recordType:e,id:t}}),r})}}Object.defineProperty(t,"__esModule",{value:!0}),t.fetchRecords=i,t.fetchRecord=a,t.deleteRecord=s;var l=n("lib/Backend"),c=r(l),u=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/records/RecordsActionTypes.js"),d=r(u)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/schema/SchemaActions.js":function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];return{type:l.default.SET_SCHEMA,payload:a({},t,{id:e,name:n})}}function o(e,t){return{type:l.default.SET_SCHEMA_STATE_OVERRIDES,payload:{id:e,stateOverride:t}}}function i(e,t){return{type:l.default.SET_SCHEMA_LOADING,payload:{id:e,loading:t}}}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.setSchema=r,t.setSchemaStateOverrides=o,t.setSchemaLoading=i;var s=n("./client/src/state/schema/SchemaActionTypes.js"),l=function(e){return e&&e.__esModule?e:{default:e}}(s)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/tabs/TabsActions.js":function(e,t,n){"use strict";function r(e,t){return{type:i.default.TABS_ACTIVATE_TAB,payload:{fieldId:e,tab:t}}}Object.defineProperty(t,"__esModule",{value:!0}),t.activateTab=r;var o=n("./client/src/state/tabs/TabsActionTypes.js"),i=function(e){return e&&e.__esModule?e:{default:e}}(o)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/toasts/ToastsActions.js":function(e,t,n){"use strict";function r(e){return function(t){t({type:p.default.DISMISS,payload:{id:e}}),setTimeout(function(){return t({type:p.default.REMOVE,payload:{id:e}})},h.FADEOUT_TIME)}}function o(e){var t="toast-"+(0,m.v4)();return function(n){var o=function(){return r(t)(n)},i=d({id:t,dismissCallback:o},b,e);n({type:p.default.DISPLAY,payload:i})}}function i(e){return o({text:e,type:"success"})}function a(e){return o({text:e,type:"error",stay:!0})}function s(e){return o({text:e,type:"warning",stay:!0})}function l(e){return o({text:e})}function c(){return{type:p.default.PAUSE}}function u(){return{type:p.default.RESUME}}Object.defineProperty(t,"__esModule",{value:!0});var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.dismiss=r,t.display=o,t.success=i,t.error=a,t.warning=s,t.info=l,t.pause=c,t.resume=u;var f=n("./client/src/state/toasts/ToastsActionTypes.js"),p=function(e){return e&&e.__esModule?e:{default:e}}(f),h=n("./client/src/state/toasts/ToastConstants.js"),m=n("./node_modules/uuid/dist/esm-browser/index.js"),b={text:"",stay:!1,type:"notice"}},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/unsavedForms/UnsavedFormsActions.js":function(e,t,n){"use strict";function r(e){return{type:a.default.ADD_FORM_CHANGED,meta:{form:e}}}function o(e){return{type:a.default.REMOVE_FORM_CHANGED,meta:{form:e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.addFormChanged=r,t.removeFormChanged=o;var i=n("./client/src/state/unsavedForms/UnsavedFormsActionTypes.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(i)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/viewMode/ViewModeActions.js":function(e,t,n){"use strict";function r(){return{type:l.default.SELECT_EDIT}}function o(){return{type:l.default.SELECT_PREVIEW}}function i(){return{type:l.default.SELECT_SPLIT}}function a(e){return{type:l.default.SPLIT_AVAILABLE,payload:{panelWidth:e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.selectEditMode=r,t.selectPreviewMode=o,t.selectSplitMode=i,t.enableOrDisableSplitMode=a;var s=n("./client/src/state/viewMode/ViewModeActionTypes.js"),l=function(e){return e&&e.__esModule?e:{default:e}}(s)},"./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/viewMode/ViewModeStates.js":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_MODE_STATES={EDIT:"edit",PREVIEW:"preview",SPLIT:"split"}},"./node_modules/expose-loader/index.js?Accordion!./client/src/components/Accordion/Accordion.js-exposed":function(e,t,n){(function(t){e.exports=t.Accordion=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Accordion/Accordion.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?AccordionBlock!./client/src/components/Accordion/AccordionBlock.js-exposed":function(e,t,n){(function(t){e.exports=t.AccordionBlock=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Accordion/AccordionBlock.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?BackButton!./client/src/components/Button/BackButton.js-exposed":function(e,t,n){(function(t){e.exports=t.BackButton=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Button/BackButton.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Backend!./client/src/lib/Backend.js-exposed":function(e,t,n){(function(t){e.exports=t.Backend=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Backend.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Badge!./client/src/components/Badge/Badge.js-exposed":function(e,t,n){(function(t){e.exports=t.Badge=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Badge/Badge.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Breadcrumb!./client/src/components/Breadcrumb/Breadcrumb.js-exposed":function(e,t,n){(function(t){e.exports=t.Breadcrumb=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Breadcrumb/Breadcrumb.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?BreadcrumbsActions!./client/src/state/breadcrumbs/BreadcrumbsActions.js-exposed":function(e,t,n){(function(t){e.exports=t.BreadcrumbsActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/breadcrumbs/BreadcrumbsActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Button!./client/src/components/Button/Button.js-exposed":function(e,t,n){(function(t){e.exports=t.Button=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Button/Button.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?CheckboxSetField!./client/src/components/CheckboxSetField/CheckboxSetField.js-exposed":function(e,t,n){(function(t){e.exports=t.CheckboxSetField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/CheckboxSetField/CheckboxSetField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?CompactTagList!./client/src/components/Tag/CompactTagList.js-exposed":function(e,t,n){(function(t){e.exports=t.CompactTagList=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tag/CompactTagList.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Config!./client/src/lib/Config.js-exposed":function(e,t,n){(function(t){e.exports=t.Config=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Config.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?DataFormat!./client/src/lib/DataFormat.js-exposed":function(e,t,n){(function(t){e.exports=t.DataFormat=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/DataFormat.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FieldHolder!./client/src/components/FieldHolder/FieldHolder.js-exposed":function(e,t,n){(function(t){e.exports=t.FieldHolder=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FieldHolder/FieldHolder.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FileSchemaModalHandler!./client/src/containers/InsertLinkModal/fileSchemaModalHandler.js-exposed":function(e,t,n){(function(t){e.exports=t.FileSchemaModalHandler=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/containers/InsertLinkModal/fileSchemaModalHandler.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FileStatusIcon!./client/src/components/FileStatusIcon/FileStatusIcon.js-exposed":function(e,t,n){(function(t){e.exports=t.FileStatusIcon=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FileStatusIcon/FileStatusIcon.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Focusedzone!./client/src/components/Focusedzone/Focusedzone.js-exposed":function(e,t,n){(function(t){e.exports=t.Focusedzone=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Focusedzone/Focusedzone.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Form!./client/src/components/Form/Form.js-exposed":function(e,t,n){(function(t){e.exports=t.Form=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Form/Form.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FormAction!./client/src/components/FormAction/FormAction.js-exposed":function(e,t,n){(function(t){e.exports=t.FormAction=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormAction/FormAction.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FormAlert!./client/src/components/FormAlert/FormAlert.js-exposed":function(e,t,n){(function(t){e.exports=t.FormAlert=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormAlert/FormAlert.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FormBuilder!./client/src/components/FormBuilder/FormBuilder.js-exposed":function(e,t,n){(function(t){e.exports=t.FormBuilder=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormBuilder/FormBuilder.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FormBuilderLoader!./client/src/containers/FormBuilderLoader/FormBuilderLoader.js-exposed":function(e,t,n){(function(t){e.exports=t.FormBuilderLoader=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/containers/FormBuilderLoader/FormBuilderLoader.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FormBuilderModal!./client/src/components/FormBuilderModal/FormBuilderModal.js-exposed":function(e,t,n){(function(t){e.exports=t.FormBuilderModal=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/FormBuilderModal/FormBuilderModal.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?FormConstants!./client/src/components/Form/FormConstants.js-exposed":function(e,t,n){(function(t){e.exports=t.FormConstants=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Form/FormConstants.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?GridField!./client/src/components/GridField/GridField.js-exposed":function(e,t,n){(function(t){e.exports=t.GridField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?GridFieldCell!./client/src/components/GridField/GridFieldCell.js-exposed":function(e,t,n){(function(t){e.exports=t.GridFieldCell=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldCell.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?GridFieldHeader!./client/src/components/GridField/GridFieldHeader.js-exposed":function(e,t,n){(function(t){e.exports=t.GridFieldHeader=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldHeader.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?GridFieldHeaderCell!./client/src/components/GridField/GridFieldHeaderCell.js-exposed":function(e,t,n){(function(t){e.exports=t.GridFieldHeaderCell=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldHeaderCell.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?GridFieldRow!./client/src/components/GridField/GridFieldRow.js-exposed":function(e,t,n){(function(t){e.exports=t.GridFieldRow=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldRow.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?GridFieldTable!./client/src/components/GridField/GridFieldTable.js-exposed":function(e,t,n){(function(t){e.exports=t.GridFieldTable=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/GridField/GridFieldTable.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?HiddenField!./client/src/components/HiddenField/HiddenField.js-exposed":function(e,t,n){(function(t){e.exports=t.HiddenField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/HiddenField/HiddenField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Injector!./client/src/lib/Injector.js-exposed":function(e,t,n){(function(t){e.exports=t.Injector=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Injector.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?InsertLinkModal!./client/src/containers/InsertLinkModal/InsertLinkModal.js-exposed":function(e,t,n){(function(t){e.exports=t.InsertLinkModal=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/containers/InsertLinkModal/InsertLinkModal.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ListGroup!./client/src/components/ListGroup/ListGroup.js-exposed":function(e,t,n){(function(t){e.exports=t.ListGroup=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ListGroup/ListGroup.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ListGroupItem!./client/src/components/ListGroup/ListGroupItem.js-exposed":function(e,t,n){(function(t){e.exports=t.ListGroupItem=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ListGroup/ListGroupItem.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?LiteralField!./client/src/components/LiteralField/LiteralField.js-exposed":function(e,t,n){(function(t){e.exports=t.LiteralField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/LiteralField/LiteralField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Loading!./client/src/components/Loading/Loading.js-exposed":function(e,t,n){(function(t){e.exports=t.Loading=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Loading/Loading.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?PopoverField!./client/src/components/PopoverField/PopoverField.js-exposed":function(e,t,n){(function(t){e.exports=t.PopoverField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/PopoverField/PopoverField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Preview!./client/src/components/Preview/Preview.js-exposed":function(e,t,n){(function(t){e.exports=t.Preview=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Preview/Preview.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ReactRouteRegister!./client/src/lib/ReactRouteRegister.js-exposed":function(e,t,n){(function(t){e.exports=t.ReactRouteRegister=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/ReactRouteRegister.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?RecordsActionTypes!./client/src/state/records/RecordsActionTypes.js-exposed":function(e,t,n){(function(t){e.exports=t.RecordsActionTypes=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/records/RecordsActionTypes.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?RecordsActions!./client/src/state/records/RecordsActions.js-exposed":function(e,t,n){(function(t){e.exports=t.RecordsActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/records/RecordsActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ResizeAware!./client/src/components/ResizeAware/ResizeAware.js-exposed":function(e,t,n){(function(t){e.exports=t.ResizeAware=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ResizeAware/ResizeAware.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Router!./client/src/lib/Router.js-exposed":function(e,t,n){(function(t){e.exports=t.Router=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/Router.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?SchemaActions!./client/src/state/schema/SchemaActions.js-exposed":function(e,t,n){(function(t){e.exports=t.SchemaActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/schema/SchemaActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Search!./client/src/components/Search/Search.js-exposed":function(e,t,n){(function(t){e.exports=t.Search=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Search/Search.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?SearchToggle!./client/src/components/Search/SearchToggle.js-exposed":function(e,t,n){(function(t){e.exports=t.SearchToggle=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Search/SearchToggle.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ShortcodeSerialiser!./client/src/lib/ShortcodeSerialiser.js-exposed":function(e,t,n){(function(t){e.exports=t.ShortcodeSerialiser=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/ShortcodeSerialiser.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?SilverStripeComponent!./client/src/lib/SilverStripeComponent.js-exposed":function(e,t,n){(function(t){e.exports=t.SilverStripeComponent=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/SilverStripeComponent.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TabsActions!./client/src/state/tabs/TabsActions.js-exposed":function(e,t,n){(function(t){e.exports=t.TabsActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/tabs/TabsActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Tag!./client/src/components/Tag/Tag.js-exposed":function(e,t,n){(function(t){e.exports=t.Tag=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tag/Tag.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TagList!./client/src/components/Tag/TagList.js-exposed":function(e,t,n){(function(t){e.exports=t.TagList=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tag/TagList.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TextField!./client/src/components/TextField/TextField.js-exposed":function(e,t,n){(function(t){e.exports=t.TextField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TextField/TextField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TinyMCEActionRegistrar!./client/src/lib/TinyMCEActionRegistrar.js-exposed":function(e,t,n){(function(t){e.exports=t.TinyMCEActionRegistrar=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/TinyMCEActionRegistrar.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Tip!./client/src/components/Tip/Tip.js-exposed":function(e,t,n){(function(t){e.exports=t.Tip=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Tip/Tip.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ToastsActions!./client/src/state/toasts/ToastsActions.js-exposed":function(e,t,n){(function(t){e.exports=t.ToastsActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/toasts/ToastsActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?Toolbar!./client/src/components/Toolbar/Toolbar.js-exposed":function(e,t,n){(function(t){e.exports=t.Toolbar=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/Toolbar/Toolbar.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TreeDropdownField!./client/src/components/TreeDropdownField/TreeDropdownField.js-exposed":function(e,t,n){(function(t){e.exports=t.TreeDropdownField=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownField.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TreeDropdownFieldMenu!./client/src/components/TreeDropdownField/TreeDropdownFieldMenu.js-exposed":function(e,t,n){(function(t){e.exports=t.TreeDropdownFieldMenu=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldMenu.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?TreeDropdownFieldNode!./client/src/components/TreeDropdownField/TreeDropdownFieldNode.js-exposed":function(e,t,n){(function(t){e.exports=t.TreeDropdownFieldNode=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/TreeDropdownField/TreeDropdownFieldNode.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?UnsavedFormsActions!./client/src/state/unsavedForms/UnsavedFormsActions.js-exposed":function(e,t,n){(function(t){e.exports=t.UnsavedFormsActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/unsavedForms/UnsavedFormsActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?VersionedBadge!./client/src/components/VersionedBadge/VersionedBadge.js-exposed":function(e,t,n){(function(t){e.exports=t.VersionedBadge=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/VersionedBadge/VersionedBadge.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ViewModeActions!./client/src/state/viewMode/ViewModeActions.js-exposed":function(e,t,n){(function(t){e.exports=t.ViewModeActions=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/viewMode/ViewModeActions.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ViewModeStates!./client/src/state/viewMode/ViewModeStates.js-exposed":function(e,t,n){(function(t){e.exports=t.ViewModeStates=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/state/viewMode/ViewModeStates.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?ViewModeToggle!./client/src/components/ViewModeToggle/ViewModeToggle.js-exposed":function(e,t,n){(function(t){e.exports=t.ViewModeToggle=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/components/ViewModeToggle/ViewModeToggle.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?formatWrittenNumber!./client/src/lib/formatWrittenNumber.js-exposed":function(e,t,n){(function(t){e.exports=t.formatWrittenNumber=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/formatWrittenNumber.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?getFormState!./client/src/lib/getFormState.js-exposed":function(e,t,n){(function(t){e.exports=t.getFormState=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/getFormState.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?reduxFieldReducer!./client/src/lib/reduxFieldReducer.js-exposed":function(e,t,n){(function(t){e.exports=t.reduxFieldReducer=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/reduxFieldReducer.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?schemaFieldValues!./client/src/lib/schemaFieldValues.js-exposed":function(e,t,n){(function(t){e.exports=t.schemaFieldValues=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/schemaFieldValues.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/expose-loader/index.js?withDragDropContext!./client/src/lib/withDragDropContext.js-exposed":function(e,t,n){(function(t){e.exports=t.withDragDropContext=n("./node_modules/babel-loader/lib/index.js??ref--0!./client/src/lib/withDragDropContext.js")}).call(t,n("./node_modules/webpack/buildin/global.js"))},0:function(e,t){},"components/Badge/Badge":function(e,t){e.exports=Badge},"components/Button/BackButton":function(e,t){e.exports=BackButton},"components/Button/Button":function(e,t){e.exports=Button},"components/FieldHolder/FieldHolder":function(e,t){e.exports=FieldHolder},"components/FileStatusIcon/FileStatusIcon":function(e,t){e.exports=FileStatusIcon},"components/FormAction/FormAction":function(e,t){e.exports=FormAction},"components/FormAlert/FormAlert":function(e,t){e.exports=FormAlert},"components/FormBuilder/FormBuilder":function(e,t){e.exports=FormBuilder},"components/FormBuilderModal/FormBuilderModal":function(e,t){e.exports=FormBuilderModal},"components/GridField/GridField":function(e,t){e.exports=GridField},"components/LiteralField/LiteralField":function(e,t){e.exports=LiteralField},"components/Loading/Loading":function(e,t){e.exports=Loading},"components/Preview/Preview":function(e,t){e.exports=Preview},"components/ResizeAware/ResizeAware":function(e,t){e.exports=ResizeAware},"components/Search/Search":function(e,t){e.exports=Search},"components/Search/SearchToggle":function(e,t){e.exports=SearchToggle},"components/Tag/CompactTagList":function(e,t){e.exports=CompactTagList},"components/Tag/Tag":function(e,t){e.exports=Tag},"components/Tag/TagList":function(e,t){e.exports=TagList},"components/TreeDropdownField/TreeDropdownField":function(e,t){e.exports=TreeDropdownField},"components/VersionedBadge/VersionedBadge":function(e,t){e.exports=VersionedBadge},"components/ViewModeToggle/ViewModeToggle":function(e,t){e.exports=ViewModeToggle},"containers/FormBuilderLoader/FormBuilderLoader":function(e,t){e.exports=FormBuilderLoader},"containers/InsertLinkModal/fileSchemaModalHandler":function(e,t){e.exports=FileSchemaModalHandler},"deep-freeze-strict":function(e,t){e.exports=DeepFreezeStrict},"graphql-tag":function(e,t){e.exports=GraphQLTag},i18n:function(e,t){e.exports=i18n},"isomorphic-fetch":function(e,t){e.exports=IsomorphicFetch},"lib/Backend":function(e,t){e.exports=Backend},"lib/Config":function(e,t){e.exports=Config},"lib/Injector":function(e,t){e.exports=Injector},"lib/ReactRouteRegister":function(e,t){e.exports=ReactRouteRegister},"lib/Router":function(e,t){e.exports=Router},"lib/getFormState":function(e,t){e.exports=getFormState},"lib/reduxFieldReducer":function(e,t){e.exports=reduxFieldReducer},"lib/schemaFieldValues":function(e,t){e.exports=schemaFieldValues},merge:function(e,t){e.exports=merge},modernizr:function(e,t){e.exports=modernizr},moment:function(e,t){e.exports=moment},"page.js":function(e,t){e.exports=Page},qs:function(e,t){e.exports=qs},"react-apollo":function(e,t){e.exports=ReactApollo},"react-dnd":function(e,t){e.exports=ReactDND},"react-dnd-html5-backend":function(e,t){e.exports=ReactDNDHtml5Backend},"react-router-dom":function(e,t){e.exports=ReactRouterDom},"react-select":function(e,t){e.exports=ReactSelect},reactstrap:function(e,t){e.exports=Reactstrap},"redux-form":function(e,t){e.exports=ReduxForm},"redux-thunk":function(e,t){e.exports=ReduxThunk},"state/records/RecordsActions":function(e,t){e.exports=RecordsActions},"state/schema/SchemaActions":function(e,t){e.exports=SchemaActions},"state/tabs/TabsActions":function(e,t){e.exports=TabsActions},"state/toasts/ToastsActions":function(e,t){e.exports=ToastsActions},"state/viewMode/ViewModeActions":function(e,t){e.exports=ViewModeActions},url:function(e,t){e.exports=NodeUrl},validator:function(e,t){e.exports=validator}},["./client/src/bundles/bundle.js"]);
\ No newline at end of file