tocco-widget-bundle 0.1.49 → 0.1.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tocco-widget-bundle",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "compile:prod": "cd ../../../ && npm run compile:prod -- --package=widget-bundle",
@@ -13,6 +13,7 @@
13
13
  "tocco-docs-browser": "*",
14
14
  "tocco-entity-browser": "*",
15
15
  "tocco-mailing-list": "*",
16
+ "tocco-personal-dms": "*",
16
17
  "tocco-stint-auction": "*",
17
18
  "tocco-user-availability": "*",
18
19
  "tocco-user-grades": "*",
@@ -1 +0,0 @@
1
- (self.webpackChunktocco_widget_bundle=self.webpackChunktocco_widget_bundle||[]).push([[85],{67154:e=>{function t(){return e.exports=t=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.apply(this,arguments)}e.exports=t},24295:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>be});var r=n(68957),o=n(91411),i=n(86249),a=n.n(i),c=(n(58900),n(78634)),s=n(84100),u=n(60131),l=n(48230),f=n(64952),d=n(469),p=n(81896),v=n(46940),m=n(27361),h=n.n(m),y=n(14293),g=n.n(y),w=n(13218),b=n.n(w),k=n(47037),x=n.n(k),_=n(1024),E=n(58804),O=(n(39335),n(28212),n(6488),n(32510),n(79657),n(20844),n(41030),n(98827),n(37363),n(53299),n(54159)),R=function(e){return O.Z.executeRequest("rest/".concat(e))},S=function(e){return 200===e.status?e.json():null},A=n(44822),Z=n(11259),j=n(32208),T=n(99357),I=n(19241),N=(n(70646),n(1469)),P=n.n(N),C=n(30236),F=n.n(C),U=["==","!=","<=",">=","<",">","~="],L=["true","false","null"],$=["string","long","serial","bool","boolean","double","float","time","timestamp","char","varchar","date","datetime"],M=["now_date","yesterday_date","tomorrow_date","today_date","now_start","yesterday_start","tomorrow_start","today_start","now","yesterday","tomorrow","today","currentUsername","currentUser","currentBu"],D=["in","dateadd","datetimeadd","duedate","birthdayin","fulltext","likeall","distance","inboundingbox"];function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,I.Z)(e);if(t){var o=(0,I.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,T.Z)(this,n)}}const q=function(e){return function(t){(0,j.Z)(r,t);var n=B(r);function r(){var t;(0,Z.Z)(this,r),t=n.call(this);var o=[{token:"keyword.operator.conjunction",regex:/(\s*)(and|or|not)($|\s+)/,caseInsensitive:!0},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.exists",regex:/exists\s*/,push:"exists",caseInsensitive:!0},{token:"keyword.count",regex:/count\s*/,push:"count",caseInsensitive:!0},{token:["keyword.function.nice_function","paren.lparen.function_arguments","text.function_arguments","paren.rparen","text.whitespace"],regex:"((?:".concat(D.join("|"),")\\s*)(\\()(.*?)(\\))($|\\s+)"),caseInsensitive:!0},{token:"keyword.other.chaining",regex:/\./},{token:"support.function.field",regex:/([a-z_]+)($|\s+)/,push:"comparison"}],i={start:e?[{token:"keyword.where",regex:/\s*/,next:"rootwhere",caseInsensitive:!0}]:[{token:"keyword.find",regex:/find($|\s+)/,push:"model",caseInsensitive:!0},{token:"keyword.where",regex:/where($|\s+)/,next:"rootwhere",caseInsensitive:!0}],model:[{token:"support.class.model",regex:/[A-Z][a-z_0-9]*\s*/,next:"pop"}],rootwhere:[{token:"keyword.order_by",regex:/order by($|\s+)/,next:"order",caseInsensitive:!0}].concat(o),comparison:[{token:"keyword.operator.comparison",regex:"(".concat(U.join("|"),")\\s*"),next:"value"}],value:[{token:"string",regex:/".*?"\s*/,next:"pop"},{token:"constant.numeric",regex:/\d+(.\d+)?\s*/,next:"pop"},{token:"constant.language.tocco_placeholder",regex:"\\:(".concat(M.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"constant.language",regex:"(".concat(L.join("|"),")\\s*"),next:"pop",caseInsensitive:!0},{token:"support.type",regex:"(".concat($.join("|"),"):\\s*"),caseInsensitive:!0}],exists:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"existswhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"pop"}],existswhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"pop"}]),count:[{token:"paren.lparen",regex:/\(\s*/},{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:"keyword.where",regex:/where($|\s+)/,next:"countwhere",caseInsensitive:!0},{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}],countwhere:[].concat(o,[{token:"paren.rparen",regex:/\)\s*/,next:"comparison"}]),order:[{token:"support.class.relation",regex:/rel/,push:"model"},{token:"keyword.other.chaining",regex:/\./},{token:["support.function.field","keyword.direction","separator"],regex:/([a-z_]+\s*)(asc|desc)?($|,|\s+)/}]};return t.$rules=F()(t.$rules,i,(function(e,t){return P()(e)?e.concat(t):void 0})),t.normalizeRules(),t}return(0,A.Z)(r)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules)};function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,I.Z)(e);if(t){var o=(0,I.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,T.Z)(this,n)}}var W=function(e){(0,j.Z)(n,e);var t=V(n);function n(){var e;(0,Z.Z)(this,n);return(e=t.call(this)).$rules={start:[{token:"constant.character.entity",regex:/&[^;]+;/},{token:"support.function",regex:"\\?(\\?|substring|cap_first|uncap_first|capitalize|chop_linebreak|date|time|datetime|ends_with|html|groups|index_of|j_string|js_string|json_string|last_index_of|length|lower_case|left_pad|right_pad|contains|matches|number|replace|rtf|url|split|starts_with|string|trim|upper_case|word_list|xhtml|xmlc|round|floor|ceilingiso_[a-z_]+first|last|seq_contains|seq_index_of|seq_last_index_of|reverse|size|sort|sort_by|chunkkeys|valueschildren|parent|root|ancestors|node_name|node_type|node_namespacebyte|double|float|int|long|short|number_to_date|number_to_time|number_to_datetime|eval|has_content|interpret|is_[a-z_]+|namespacenew)"},{token:"support.function.deprecated",regex:"\\?(default|exists|if_exists|web_safe)"},{token:"language.variable",regex:"\\.(?:data_model|error|globals|lang|locale|locals|main|namespace|node|current_node|now|output_encoding|template_name|url_escaping_charset|vars|version)"},{token:"constant.language",regex:"\\b(true|false)\\b"},{token:"keyword.operator",regex:"\\b(?:gt|gte|lt|lte|as|in|using)\\b"},{token:"entity.other.attribute-name",regex:"encoding|parse|locale|number_format|date_format|time_format|datetime_format|time_zone|url_escaping_charset|classic_compatible|strip_whitespace|strip_text|strict_syntax|ns_prefixes|attributes"},{token:"string",regex:/['"]/,next:"qstring"},{token:function(e){return e.match("^[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?$")?"constant.numeric":"variable"},regex:/[\w.+-]+/},{token:"keyword.operator",regex:"!|\\.|\\$|%|&|\\*|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|!=|!==|<=|>=|<<=|>>=|>>>=|<>|<|>|&&|\\|\\||\\?\\:|\\*=|%=|\\+=|\\-=|&=|\\^="},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],qstring:[{token:"constant.character.escape",regex:'\\\\[nrtvef\\\\"$]'},{token:"string",regex:/['"]/,next:"start"},{defaultToken:"string"}]},e}return(0,A.Z)(n)}(a().require("ace/mode/text_highlight_rules").TextHighlightRules),z=function(e){(0,j.Z)(n,e);var t=V(n);function n(){var e;(0,Z.Z)(this,n),e=t.call(this);var r=["query","queryCount"],o=[{token:"keyword.function",regex:"\\[@(".concat(r.join("|"),").*?]"),push:"tql-start"},{token:"comment",regex:"\\[#--",next:"ftl-dcomment"},{token:"string.interpolated",regex:"\\${",push:"ftl-start"},{token:"keyword.function",regex:"\\[/?#(assign|attempt|break|case|compress|default|elseif|else|escape|fallback|function|flush|ftl|global|if|import|include|list|local|lt|macro|nested|noescape|noparse|nt|recover|recurse|return|rt|setting|stop|switch|t|visit)",push:"ftl-start"},{token:"keyword.other",regex:"\\[/?@[a-zA-Z\\.]+",push:"ftl-start"}];for(var i in e.$rules)e.$rules[i].unshift.apply(e.$rules[i],o);e.embedRules(W,"ftl-",[{token:"keyword",regex:"/?\\]",next:"pop"},{token:"string.interpolated",regex:"}",next:"pop"}],["start"]),e.addRules({"ftl-dcomment":[{token:"comment",regex:"--\\]",next:"pop"},{defaultToken:"comment"}]});var a=[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}];e.embedRules(q(),"tql-",a,["start"]);var c={"tql-rootwhere":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}],"tql-order":[{token:"keyword.function",regex:"\\[/@(".concat(r.join("|"),")]"),next:"pop"}]};return e.$rules=F()(e.$rules,c,(function(e,t){return P()(e)?e.concat(t):void 0})),e.normalizeRules(),e}return(0,A.Z)(n)}(a().require("ace/mode/html_highlight_rules").HtmlHighlightRules),H=n(52902),Y=n(45915),G=a().require("ace/token_iterator").TokenIterator,K=function(e){return e?e.type.substring(e.type.lastIndexOf(".")+1):null},J=function(e,t){return K(e.getCurrentToken())===t},Q=function(e){if(J(e,"model")&&e.stepBackward(),(J(e,"field")||J(e,"relation"))&&e.stepBackward(),!J(e,"chaining"))return null;if(e.stepBackward(),J(e,"model")){var t=e.getCurrentToken();return e.stepBackward(),e.stepBackward(),t?t.value.trim():null}return null},X=function(e,t){for(;!J(e,t);)if(!e.stepBackward())return!1;return!0},ee=function(e,t){return J(e,"rparen")?1:t>0&&J(e,"lparen")?(e.stepBackward(),-1):0},te=function(e){for(var t=0;e.getCurrentToken();){if(0===t&&J(e,"where")){var n=e.stepBackward();return n?[n.value.trim()].concat((0,Y.Z)(re(e))):[]}if(J(e,"order_by")){if(X(e,"find")){var r=e.stepForward();return r?r.value.trim():[]}return[]}if(t+=ee(e,t),!e.stepBackward())return null}return null},ne=function(e,t){for(var n=[],r=t(e);r;)Array.isArray(r)?r.forEach((function(e){return n.unshift(e)})):n.unshift(r),r=t(e);return n},re=function(e){return ne(e,Q)},oe=function(e){return ne(e,te)},ie=1e3,ae=function(e,t,n){var r=function(e,t){if(t){var n=oe(e());return{baseModel:t,modelScope:(0,H.Z)(n).slice(0)}}var r=oe(e()),o=(0,H.Z)(r);return{baseModel:o[0],modelScope:o.slice(1)}}(e,n),o=r.baseModel,i=r.modelScope;if(o){var a=re(e()),c=[].concat((0,Y.Z)(i),(0,Y.Z)(a)).map((function(e){return"rel".concat(e)}));(function(e){var t=(0,H.Z)(e),n=t[0],r=t.slice(1);return R(function(e,t){var n=t.length>0?"/resolve?path="+t.join("."):"";return"entities/".concat(e,"/model").concat(n)}(n,r)).then(S).then((function(e){if(!e)return[];var t=e.fields||[],n=e.relations||[];return[].concat((0,Y.Z)(t.map((function(e){return{label:(t=e,t.label?"".concat(t.fieldName," (").concat(t.label,")"):t.fieldName),value:e.fieldName,meta:e.type};var t}))),(0,Y.Z)(n.map((function(e){return{label:(t=e,t.label?"".concat(t.relationName," (").concat(t.label,")"):t.relationName),value:e.relationName,meta:e.targetEntity};var t}))))}))})([o].concat((0,Y.Z)(c))).then((function(e){var n=e.map((function(e){return{caption:e.label,value:e.value,meta:e.meta,score:ie}}));t(null,n)})).catch((function(e){return t(e)}))}},ce=function(e,t){return t?"".concat(e," (").concat(t,")"):e},se=function(e){return R("entities").then(S).then((function(e){return e?e.entities:{}})).then((function(e){return e?Object.values(e):[]})).then((function(e){return e.map((function(e){return e.metaData}))})).then((function(t){var n=t.map((function(e){var t=e.modelName,n=e.label;return{caption:ce(t,n),value:t,score:ie}}));e(null,n)})).catch((function(t){return e(t)}))},ue=function(){return D.map((function(e){return e.toUpperCase()})).map((function(e){return{caption:e,value:"".concat(e,"()"),meta:"function",score:970}}))};const le=function(e){return{getCompletions:function(t,n,r,o,i){var a=function(){return new G(n,r.row,r.column)},c=a(),s=c.getCurrentToken(),u=c.stepBackward()?c.getCurrentToken():null;switch(K(s)){case"chaining":case"relation":case"separator":case"order_by":case"count":case"exists":case"field":case"function_arguments":ae(a,i,e);break;case"where":case"conjunction":ae(a,i,e),i(null,ue());break;case"nice_function":i(null,ue());break;case"find":se(i);break;case"type":case"tocco_placeholder":case"comparison":i(null,$.map((function(e){return{caption:e,value:"".concat(e,":"),meta:"type",score:980}}))),i(null,M.map((function(e){return{caption:e,value:":".concat(e),meta:"placeholder",score:990}})));break;case"model":ae(a,i,e),u&&"relation"!==K(u)&&se(i);break;case null:e&&ae(a,i,e),i(null,ue())}}}};function fe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,I.Z)(e);if(t){var o=(0,I.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,T.Z)(this,n)}}var de=function(e){(0,j.Z)(n,e);var t=fe(n);function n(){var e;return(0,Z.Z)(this,n),(e=t.call(this)).HighlightRules=z,e.completer=le(),e}return(0,A.Z)(n)}(a().require("ace/mode/ftl").Mode);function pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,I.Z)(e);if(t){var o=(0,I.Z)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,T.Z)(this,n)}}var ve,me=function(e){(0,j.Z)(n,e);var t=pe(n);function n(e){var r,o=e.implicitModelName;return(0,Z.Z)(this,n),(r=t.call(this)).HighlightRules=q(o),r.completer=le(o),r.snippedIdField=null,r}return(0,A.Z)(n)}(a().require("ace/mode/text").Mode),he=n(85893),ye=E.ZP.div.withConfig({displayName:"StyledEditor"})(ve||(ve=(0,o.Z)(["\n width: 100%;\n z-index: 0; /* gutter lays over menu otherwise */\n"]))),ge={groovy:function(){return new s.Mode},html:function(){return new u.Mode},xml:function(){return new v.Mode},properties:function(){return new d.Mode},json:function(){return new l.Mode},htmlmixed:function(){return new de},freemarkermixed:function(){return new de},ftl:function(){return new de},tql:function(e){return new me(e)},less:function(){return new f.Mode},drools:function(){return new c.Mode},text:function(){return new p.Mode}},we=function(e,t){var n=t.mode,o=t.theme,i=t.showGutter,a=t.editorOptions,c=void 0===a?{}:a;(function(e){return x()(e)?Promise.resolve(e):b()(e)?R("entities/2.0/".concat(e.entityModel,"/").concat(e.key,"?_paths=").concat(e.field)).then(S).then((function(e){return h()(e,["paths","entity_name","value"],null)})):Promise.resolve(null)})(t.implicitModel).then((function(e){return function(e,t){return h()(ge,e,e)(t)}(n,{implicitModelName:e})})).then((function(t){return e.getSession().setMode(t)})),e.setTheme("ace/theme/".concat(o)),Object.entries(c).forEach((function(t){var n=(0,r.Z)(t,2),o=n[0],i=n[1];e.setOption(o,i)})),e.renderer.setShowGutter(i),e.resize()};const be=function(e){var t=e.mode,n=e.theme,r=void 0===n?"textmate":n,o=e.value,i=e.onChange,c=e.showGutter,s=void 0===c||c,u=e.editorOptions,l=void 0===u?{}:u,f=e.implicitModel,d=(0,_.useRef)(null),p=(0,_.useRef)(null),v=(0,_.useMemo)((function(){return{mode:t,theme:r,showGutter:s,editorOptions:l,implicitModel:f}}),[t,r,s,l,f]);return(0,_.useEffect)((function(){var e=a().edit(d.current);return e.getSession().setValue(o||""),e.on("change",(function(){return i(e.getValue())})),we(e,v),p.current=e,function(){return e.destroy()}}),[]),(0,_.useEffect)((function(){p.current&&we(p.current,v)}),[v]),(0,_.useEffect)((function(){p.current&&!g()(o)&&o!==p.current.getValue()&&p.current.getSession().setValue(o)}),[o]),(0,he.jsx)(ye,{ref:d})}},41654:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(319),o=n.n(r),i=n(44759),a=function(e){return void 0!==e};const c={getDispatchActions:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.reduce((function(t,r){return a(e[r.name])&&"function"==typeof r.action?t.push(r.action.apply(r,o()(r.argsFactory(e)))):r.mandatory&&n&&i.Z.logError("Mandatory field '".concat(r.name,"' not set in input")),t}),[])}}},67210:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(74806),o=n(20005),i=n(25660),a=n(80722),c=n(20247),s=n(85893);const u=(0,c.U)((0,r.ZP)((function(e){var t=e.path,n=e.context,r=e.onSuccess,c=e.intl,u=e.locale,l=e.emitAction,f=(0,a.Z)(t),d=f?[{id:"rel".concat(f.model),value:f.key}]:[],p=(0,i.Z)(n,"Domain");return(0,s.jsx)(o.ZP,{entityName:"Domain",formName:p,mode:"create",defaultValues:d,locale:u,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Domain/".concat(t)}]}}];r({title:c.formatMessage({id:"client.docs-browser.createDomainSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||l(e)}})})))},36340:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(74806),o=n(20005),i=n(25660),a=n(80722),c=n(20247),s=n(85893);const u=(0,c.U)((0,r.ZP)((function(e){var t=e.context,n=e.path,r=e.onSuccess,c=e.intl,u=e.locale,l=e.emitAction,f=(0,a.Z)(n),d=f?[{id:"rel".concat(f.model),value:f.key}]:[],p=(0,i.Z)(t,"Folder");return(0,s.jsx)(o.ZP,{entityName:"Folder",formName:p,mode:"create",defaultValues:d,locale:u,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Folder/".concat(t)}]}}];r({title:c.formatMessage({id:"client.docs-browser.createFolderSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||l(e)}})})))},96954:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(59713),o=n.n(r);if(763==n.j)var i=n(12750);var a=n(85893);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const u=function(e){return(0,a.jsx)(i.Z,s(s({},e),{},{customDeleteEndpoint:"documents/delete"}))}},90100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var r=n(63038),o=n.n(r),i=n(20005),a=n(25660),c=n(20247),s=n(85893);const u=(0,c.U)((function(e){var t=e.selection,n=e.onSuccess,r=e.onCancel,c=e.locale,u=e.context,l=e.emitAction,f=e.navigate,d=t.ids[0].split("/"),p=o()(d,2),v=p[0],m=p[1];"Resource"===v&&(f("/docs/doc/".concat(m,"/detail")),r());var h=(0,a.Z)(u,v);return(0,s.jsx)(i.ZP,{entityName:v,formName:h,entityId:m,mode:"update",locale:c,onEntityUpdated:function(){var e=[{type:"entity-update-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},onEntityDeleted:function(){var e=[{type:"entity-delete-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},emitAction:function(e){(function(e){var t,n;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(n=t.toaster)||void 0===n?void 0:n.title)})(e)||l(e)}})}))},4505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Z});var r,o,i,a=n(74806),c=n(50558),s=n(30081),u=n(20247),l=n(63038),f=n.n(l),d=n(28655),p=n.n(d),v=n(18446),m=n.n(v),h=n(1024),y=n(44012),g=n(58804),w=n(58129),b=n(50258),k=n(65035),x=n(83956),_=n(80722),E=n(85893),O=g.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(r||(r=p()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),w.Z),R=(0,g.ZP)(b.Z).withConfig({displayName:"StyledLoadMask"})(o||(o=p()(["\n height: auto;\n"]))),S=function(e){return null===e?"Move_root_docs_list_item":"Move_docs_list_item"},A={initialize:s.j2,moveElements:s.w6};const Z=(0,u.U)((0,c.connect)((function(e){return{isWaiting:e.docs.move.isWaiting,domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,businessUnit:e.input.businessUnit,locale:e.intl.locale}}),A)((0,a.ZP)((function(e){var t=e.selection,n=e.onSuccess,r=e.onError,o=e.path,a=e.initialize,c=e.moveElements,s=e.isWaiting,u=e.domainTypes,l=e.rootNodes,d=e.businessUnit,p=e.locale,v=e.emitAction,g=(0,_.Z)(o),w={model:"Docs_list_item",key:"".concat(g.model,"/").concat(g.key)},b=(0,h.useState)(w),A=f()(b,2),Z=A[0],j=A[1];(0,h.useEffect)((function(){a(t,n,r)}),[]);var T=function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return;default:throw new Error("Unexpected model: ".concat(e))}};return(0,E.jsxs)(R,{required:[!s],children:[(0,E.jsx)(x.ZP,{routerType:"routerless",initialLocation:function(){if(null===Z)return null;var e=Z.key.split("/"),t=f()(e,2),n=t[0],r=t[1];return T(n,r)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",disableViewPersistor:!0,getListFormName:S,onListParentChange:j,getCustomLocation:T,navigationStrategy:{},embedded:!0,emitAction:v,noLeftPadding:!0,domainTypes:u,rootNodes:l,businessUnit:d,sortable:!1,scrollBehaviour:"none",locale:p}),(0,E.jsx)(O,{children:(0,E.jsx)(k.Z,{onClick:function(){return c(Z.key,t.ids)},look:"raised",ink:"primary",disabled:null===Z||m()(Z,w),children:i||(i=(0,E.jsx)(y.Z,{id:"client.actions.dms-move.button"}))})})]})}))))},77840:(e,t,n)=>{"use strict";if(n.r(t),n.d(t,{default:()=>r.ZP}),763==n.j)var r=n(14218)},82445:(e,t,n)=>{"use strict";if(n.r(t),n.d(t,{default:()=>r.ZP}),763==n.j)var r=n(20005)},25660:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=763==n.j?function(e,t){return e.detailFormNames&&e.detailFormNames[t]?e.detailFormNames[t]:"Dms".concat(t)}:null},44020:e=>{"use strict";var t="%[a-f0-9]{2}",n=new RegExp(t,"gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n),r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=i(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),c=0;c<a.length;c++){var s=a[c];e=e.replace(new RegExp(s,"g"),t[s])}return e}(e)}}},92806:e=>{"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var a=r[i],c=e[a];(o?-1!==t.indexOf(a):t(a,c,e))&&(n[a]=c)}return n}},28368:(e,t,n)=>{var r=n(90939);e.exports=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?r(e,t,void 0,n):!!o}},14293:e=>{e.exports=function(e){return null==e}},30084:(e,t,n)=>{var r=n(29932),o=n(278),i=n(1469),a=n(33448),c=n(55514),s=n(40327),u=n(79833);e.exports=function(e){return i(e)?r(e,s):a(e)?[e]:o(c(u(e)))}},17563:(e,t,n)=>{"use strict";const r=n(70610),o=n(44020),i=n(80500),a=n(92806),c=Symbol("encodeFragmentIdentifier");function s(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function u(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function l(e,t){return t.decode?o(e):e}function f(e){return Array.isArray(e)?e.sort():"object"==typeof e?f(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function d(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=d(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function v(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&l(n,e).includes(e.arrayFormatSeparator);n=i?l(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map((t=>l(t,e))):null===n?n:l(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?l(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>l(t,e)));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:l(a,t),n(l(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=v(n[e],t);else r[e]=v(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=f(n):e[t]=n,e}),Object.create(null))}t.extract=p,t.parse=m,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[",o,"]"].join("")]:[...n,[u(t,e),"[",u(o,e),"]=",u(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),"[]"].join("")]:[...n,[u(t,e),"[]=",u(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[u(t,e),":list="].join("")]:[...n,[u(t,e),":list=",u(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[u(n,e),t,u(o,e)].join("")]:[[r,u(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,u(t,e)]:[...n,[u(t,e),"=",u(r,e)].join("")]}}(t),o={};for(const t of Object.keys(e))n(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map((n=>{const o=e[n];return void 0===o?"":null===o?u(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?u(n,t)+"[]":o.reduce(r(n),[]).join("&"):u(n,t)+"="+u(o,t)})).filter((e=>e.length>0)).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:m(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[c]:!0},n);const r=d(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let s=t.stringify(a,n);s&&(s=`?${s}`);let l=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l=`#${n[c]?u(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${s}${l}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[c]:!1},r);const{url:o,query:i,fragmentIdentifier:s}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:a(i,n),fragmentIdentifier:s},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},58934:(e,t,n)=>{"use strict";n.d(t,{rU:()=>F});var r=n(3975),o=n(2396);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,o.Z)(e,t)}var a=n(1024),c=n.n(a),s=n(75677),u=n(96547),l=n(2177);function f(e){return"/"===e.charAt(0)?e:"/"+e}function d(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function v(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function m(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function h(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,s.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=(0,u.Z)(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var g=!("undefined"==typeof window||!window.document||!window.document.createElement);function w(e,t){t(window.confirm(e))}var b="popstate",k="hashchange";function x(){try{return window.history.state||{}}catch(e){return{}}}function _(e){void 0===e&&(e={}),g||(0,l.Z)(!1);var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),i=e,a=i.forceRefresh,c=void 0!==a&&a,u=i.getUserConfirmation,d=void 0===u?w:u,_=i.keyLength,E=void 0===_?6:_,O=e.basename?v(f(e.basename)):"";function R(e){var t=e||{},n=t.key,r=t.state,o=window.location,i=o.pathname+o.search+o.hash;return O&&(i=p(i,O)),h(i,r,n)}function S(){return Math.random().toString(36).substr(2,E)}var A=y();function Z(e){(0,s.Z)(D,e),D.length=n.length,A.notifyListeners(D.location,D.action)}function j(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||N(R(e.state))}function T(){N(R(x()))}var I=!1;function N(e){if(I)I=!1,Z();else{A.confirmTransitionTo(e,"POP",d,(function(t){t?Z({action:"POP",location:e}):function(e){var t=D.location,n=C.indexOf(t.key);-1===n&&(n=0);var r=C.indexOf(e.key);-1===r&&(r=0);var o=n-r;o&&(I=!0,U(o))}(e)}))}}var P=R(x()),C=[P.key];function F(e){return O+m(e)}function U(e){n.go(e)}var L=0;function $(e){1===(L+=e)&&1===e?(window.addEventListener(b,j),o&&window.addEventListener(k,T)):0===L&&(window.removeEventListener(b,j),o&&window.removeEventListener(k,T))}var M=!1;var D={length:n.length,action:"POP",location:P,createHref:F,push:function(e,t){var o="PUSH",i=h(e,t,S(),D.location);A.confirmTransitionTo(i,o,d,(function(e){if(e){var t=F(i),a=i.key,s=i.state;if(r)if(n.pushState({key:a,state:s},null,t),c)window.location.href=t;else{var u=C.indexOf(D.location.key),l=C.slice(0,u+1);l.push(i.key),C=l,Z({action:o,location:i})}else window.location.href=t}}))},replace:function(e,t){var o="REPLACE",i=h(e,t,S(),D.location);A.confirmTransitionTo(i,o,d,(function(e){if(e){var t=F(i),a=i.key,s=i.state;if(r)if(n.replaceState({key:a,state:s},null,t),c)window.location.replace(t);else{var u=C.indexOf(D.location.key);-1!==u&&(C[u]=i.key),Z({action:o,location:i})}else window.location.replace(t)}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(e){void 0===e&&(e=!1);var t=A.setPrompt(e);return M||($(1),M=!0),function(){return M&&(M=!1,$(-1)),t()}},listen:function(e){var t=A.appendListener(e);return $(1),function(){$(-1),t()}}};return D}var E="hashchange",O={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+d(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:d,decodePath:f},slash:{encodePath:f,decodePath:f}};function R(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function S(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function A(e){window.location.replace(R(window.location.href)+"#"+e)}function Z(e){void 0===e&&(e={}),g||(0,l.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),r=n.getUserConfirmation,o=void 0===r?w:r,i=n.hashType,a=void 0===i?"slash":i,c=e.basename?v(f(e.basename)):"",u=O[a],d=u.encodePath,b=u.decodePath;function k(){var e=b(S());return c&&(e=p(e,c)),h(e)}var x=y();function _(e){(0,s.Z)(M,e),M.length=t.length,x.notifyListeners(M.location,M.action)}var Z=!1,j=null;function T(){var e,t,n=S(),r=d(n);if(n!==r)A(r);else{var i=k(),a=M.location;if(!Z&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(j===m(i))return;j=null,function(e){if(Z)Z=!1,_();else{var t="POP";x.confirmTransitionTo(e,t,o,(function(n){n?_({action:t,location:e}):function(e){var t=M.location,n=C.lastIndexOf(m(t));-1===n&&(n=0);var r=C.lastIndexOf(m(e));-1===r&&(r=0);var o=n-r;o&&(Z=!0,F(o))}(e)}))}}(i)}}var I=S(),N=d(I);I!==N&&A(N);var P=k(),C=[m(P)];function F(e){t.go(e)}var U=0;function L(e){1===(U+=e)&&1===e?window.addEventListener(E,T):0===U&&window.removeEventListener(E,T)}var $=!1;var M={length:t.length,action:"POP",location:P,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=R(window.location.href)),n+"#"+d(c+m(e))},push:function(e,t){var n="PUSH",r=h(e,void 0,void 0,M.location);x.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),o=d(c+t);if(S()!==o){j=t,function(e){window.location.hash=e}(o);var i=C.lastIndexOf(m(M.location)),a=C.slice(0,i+1);a.push(t),C=a,_({action:n,location:r})}else _()}}))},replace:function(e,t){var n="REPLACE",r=h(e,void 0,void 0,M.location);x.confirmTransitionTo(r,n,o,(function(e){if(e){var t=m(r),o=d(c+t);S()!==o&&(j=t,A(o));var i=C.indexOf(m(M.location));-1!==i&&(C[i]=t),_({action:n,location:r})}}))},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return $||(L(1),$=!0),function(){return $&&($=!1,L(-1)),t()}},listen:function(e){var t=x.appendListener(e);return L(1),function(){L(-1),t()}}};return M}n(94662);function j(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}c().Component;c().Component;var T=function(e,t){return"function"==typeof e?e(t):e},I=function(e,t){return"string"==typeof e?h(e,null,null,t):e},N=function(e){return e},P=c().forwardRef;void 0===P&&(P=N);var C=P((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,i=j(e,["innerRef","navigate","onClick"]),a=i.target,u=(0,s.Z)({},i,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=N!==P&&t||n,c().createElement("a",u)}));var F=P((function(e,t){var n=e.component,o=void 0===n?C:n,i=e.replace,a=e.to,u=e.innerRef,f=j(e,["component","replace","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(e){e||(0,l.Z)(!1);var n=e.history,r=I(T(a,e.location),e.location),d=r?n.createHref(r):"",p=(0,s.Z)({},f,{href:d,navigate:function(){var t=T(a,e.location),r=m(e.location)===m(I(t));(i||r?n.replace:n.push)(t)}});return N!==P?p.ref=t||u:p.innerRef=u,c().createElement(o,p)}))})),U=function(e){return e},L=c().forwardRef;void 0===L&&(L=U);L((function(e,t){var n=e["aria-current"],o=void 0===n?"page":n,i=e.activeClassName,a=void 0===i?"active":i,u=e.activeStyle,f=e.className,d=e.exact,p=e.isActive,v=e.location,m=e.sensitive,h=e.strict,y=e.style,g=e.to,w=e.innerRef,b=j(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return c().createElement(r.s6.Consumer,null,(function(e){e||(0,l.Z)(!1);var n=v||e.location,i=I(T(g,n),n),k=i.pathname,x=k&&k.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),_=x?(0,r.LX)(n.pathname,{path:x,exact:d,sensitive:m,strict:h}):null,E=!!(p?p(_,n):_),O="function"==typeof f?f(E):f,R="function"==typeof y?y(E):y;E&&(O=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(O,a),R=(0,s.Z)({},R,u));var S=(0,s.Z)({"aria-current":E&&o||null,className:O,style:R,to:i},b);return U!==L?S.ref=t||w:S.innerRef=w,c().createElement(F,S)}))}))},126:(e,t,n)=>{"use strict";var r=n(51235);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},94662:(e,t,n)=>{e.exports=n(126)()},51235:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},96547:(e,t,n)=>{"use strict";function r(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,o=e.length;r<o;n+=1,r+=1)e[n]=e[r];e.pop()}n.d(t,{Z:()=>i});const i=function(e,t){void 0===t&&(t="");var n,i=e&&e.split("/")||[],a=t&&t.split("/")||[],c=e&&r(e),s=t&&r(t),u=c||s;if(e&&r(e)?a=i:i.length&&(a.pop(),a=a.concat(i)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var f=0,d=a.length;d>=0;d--){var p=a[d];"."===p?o(a,d):".."===p?(o(a,d),f++):f&&(o(a,d),f--)}if(!u)for(;f--;f)a.unshift("..");!u||""===a[0]||a[0]&&r(a[0])||a.unshift("");var v=a.join("/");return n&&"/"!==v.substr(-1)&&(v+="/"),v}},66448:(e,t,n)=>{"use strict";n.d(t,{$U:()=>p,CO:()=>b,EK:()=>E,En:()=>w,FT:()=>o,IV:()=>y,Kn:()=>k,LD:()=>u,Lo:()=>A,O4:()=>r,Qm:()=>P,VZ:()=>Z,Ve:()=>h,WF:()=>U,WL:()=>f,Wu:()=>R,_V:()=>S,bh:()=>j,c4:()=>I,cc:()=>x,dO:()=>m,gV:()=>C,gm:()=>T,gy:()=>c,hL:()=>i,kF:()=>L,m$:()=>s,ou:()=>v,qh:()=>_,td:()=>O,tn:()=>F,ud:()=>d,v7:()=>g,w8:()=>l,z$:()=>a,zD:()=>N});var r="@@redux-form/",o=r+"ARRAY_INSERT",i=r+"ARRAY_MOVE",a=r+"ARRAY_POP",c=r+"ARRAY_PUSH",s=r+"ARRAY_REMOVE",u=r+"ARRAY_REMOVE_ALL",l=r+"ARRAY_SHIFT",f=r+"ARRAY_SPLICE",d=r+"ARRAY_UNSHIFT",p=r+"ARRAY_SWAP",v=r+"AUTOFILL",m=r+"BLUR",h=r+"CHANGE",y=r+"CLEAR_FIELDS",g=r+"CLEAR_SUBMIT",w=r+"CLEAR_SUBMIT_ERRORS",b=r+"CLEAR_ASYNC_ERROR",k=r+"DESTROY",x=r+"FOCUS",_=r+"INITIALIZE",E=r+"REGISTER_FIELD",O=r+"RESET",R=r+"RESET_SECTION",S=r+"SET_SUBMIT_FAILED",A=r+"SET_SUBMIT_SUCCEEDED",Z=r+"START_ASYNC_VALIDATION",j=r+"START_SUBMIT",T=r+"STOP_ASYNC_VALIDATION",I=r+"STOP_SUBMIT",N=r+"SUBMIT",P=r+"TOUCH",C=r+"UNREGISTER_FIELD",F=r+"UNTOUCH",U=r+"UPDATE_SYNC_ERRORS",L=r+"UPDATE_SYNC_WARNINGS"},44049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(14892);const o=(i=r.Z,a=i.getIn,function(e,t){return function(n){var r=t||function(e){return a(e,"form")};return a(r(n),e+".initial")}});var i,a},30496:(e,t,n)=>{"use strict";n.d(t,{Z:()=>v});var r=n(37316),o=n.n(r),i=n(23560),a=n.n(i),c=n(66448),s=n(30084),u=n.n(s);const l=function(e){var t=function(e){return function(t,n){return void 0!==e.getIn(t,n)}},n=e.deepEqual,r=e.empty,o=e.getIn,i=e.deleteIn,a=e.setIn;return function(c){void 0===c&&(c=t);return function t(s,l){if("]"===l[l.length-1]){var f=u()(l);return f.pop(),o(s,f.join("."))?a(s,l):s}var d=s;c(e)(s,l)&&(d=i(s,l));var p=l.lastIndexOf(".");if(p>0){var v=l.substring(0,p);if("]"!==v[v.length-1]){var m=o(d,v);if(n(m,r))return t(d,v)}}return d}}};var f=n(14892),d=function(e){var t=e.getIn;return function(e,n){var r=null;/^values/.test(n)&&(r=n.replace("values","initial"));var o=!r||void 0===t(e,r);return void 0!==t(e,n)&&o}};const p=function(e){var t,n=e.deepEqual,r=e.empty,i=e.forEach,s=e.getIn,u=e.setIn,p=e.deleteIn,v=e.fromJS,m=e.keys,h=e.size,y=e.some,g=e.splice,w=l(e)(d),b=l(f.Z)(d),k=function(e,t,n,r,o,i,a){var c=s(e,t+"."+n);return c||a?u(e,t+"."+n,g(c,r,o,i)):e},x=function(e,t,n,r,o,i,a){var c=s(e,t),l=f.Z.getIn(c,n);return l||a?u(e,t,f.Z.setIn(c,n,f.Z.splice(l,r,o,i))):e},_=["values","fields","submitErrors","asyncErrors"],E=function(e,t,n,o,i){var a=e,c=null!=i?r:void 0;return a=k(a,"values",t,n,o,i,!0),a=k(a,"fields",t,n,o,c),a=x(a,"syncErrors",t,n,o,void 0),a=x(a,"syncWarnings",t,n,o,void 0),a=k(a,"submitErrors",t,n,o,void 0),a=k(a,"asyncErrors",t,n,o,void 0)},O=((t={})[c.FT]=function(e,t){var n=t.meta,r=n.field,o=n.index,i=t.payload;return E(e,r,o,0,i)},t[c.hL]=function(e,t){var n=t.meta,r=n.field,o=n.from,i=n.to,a=s(e,"values."+r),c=a?h(a):0,l=e;return c&&_.forEach((function(e){var t=e+"."+r;if(s(l,t)){var n=s(l,t+"["+o+"]");l=u(l,t,g(s(l,t),o,1)),l=u(l,t,g(s(l,t),i,0,n))}})),l},t[c.z$]=function(e,t){var n=t.meta.field,r=s(e,"values."+n),o=r?h(r):0;return o?E(e,n,o-1,1):e},t[c.gy]=function(e,t){var n=t.meta.field,r=t.payload,o=s(e,"values."+n),i=o?h(o):0;return E(e,n,i,0,r)},t[c.m$]=function(e,t){var n=t.meta,r=n.field,o=n.index;return E(e,r,o,1)},t[c.LD]=function(e,t){var n=t.meta.field,r=s(e,"values."+n),o=r?h(r):0;return o?E(e,n,0,o):e},t[c.w8]=function(e,t){var n=t.meta.field;return E(e,n,0,1)},t[c.WL]=function(e,t){var n=t.meta,r=n.field,o=n.index,i=n.removeNum,a=t.payload;return E(e,r,o,i,a)},t[c.$U]=function(e,t){var n=t.meta,r=n.field,o=n.indexA,i=n.indexB,a=e;return _.forEach((function(e){var t=s(a,e+"."+r+"["+o+"]"),n=s(a,e+"."+r+"["+i+"]");void 0===t&&void 0===n||(a=u(a,e+"."+r+"["+o+"]",n),a=u(a,e+"."+r+"["+i+"]",t))})),a},t[c.ud]=function(e,t){var n=t.meta.field,r=t.payload;return E(e,n,0,0,r)},t[c.ou]=function(e,t){var n=t.meta.field,r=t.payload,o=e;return o=w(o,"asyncErrors."+n),o=w(o,"submitErrors."+n),o=u(o,"fields."+n+".autofilled",!0),o=u(o,"values."+n,r)},t[c.dO]=function(e,t){var n=t.meta,r=n.field,o=n.touch,i=t.payload,a=e;return void 0===s(a,"initial."+r)&&""===i?a=w(a,"values."+r):void 0!==i&&(a=u(a,"values."+r,i)),r===s(a,"active")&&(a=p(a,"active")),a=p(a,"fields."+r+".active"),o&&(a=u(a,"fields."+r+".touched",!0),a=u(a,"anyTouched",!0)),a},t[c.Ve]=function(e,t){var n=t.meta,r=n.field,o=n.touch,i=n.persistentSubmitErrors,c=t.payload,l=e;if(void 0===s(l,"initial."+r)&&""===c||void 0===c)l=w(l,"values."+r);else if(a()(c)){var f=s(e,"values."+r);l=u(l,"values."+r,c(f,e.values))}else l=u(l,"values."+r,c);return l=w(l,"asyncErrors."+r),i||(l=w(l,"submitErrors."+r)),l=w(l,"fields."+r+".autofilled"),o&&(l=u(l,"fields."+r+".touched",!0),l=u(l,"anyTouched",!0)),l},t[c.v7]=function(e){return p(e,"triggerSubmit")},t[c.En]=function(e){var t=e;return t=w(t,"submitErrors"),t=p(t,"error")},t[c.CO]=function(e,t){var n=t.meta.field;return p(e,"asyncErrors."+n)},t[c.IV]=function(e,t){var n=t.meta,r=n.keepTouched,o=n.persistentSubmitErrors,i=n.fields,a=e;i.forEach((function(t){a=w(a,"asyncErrors."+t),o||(a=w(a,"submitErrors."+t)),a=w(a,"fields."+t+".autofilled"),r||(a=p(a,"fields."+t+".touched"));var n=s(e,"initial."+t);a=n?u(a,"values."+t,n):w(a,"values."+t)}));var c=y(m(s(a,"registeredFields")),(function(e){return s(a,"fields."+e+".touched")}));return a=c?u(a,"anyTouched",!0):p(a,"anyTouched")},t[c.cc]=function(e,t){var n=t.meta.field,r=e,o=s(e,"active");return r=p(r,"fields."+o+".active"),r=u(r,"fields."+n+".visited",!0),r=u(r,"fields."+n+".active",!0),r=u(r,"active",n)},t[c.qh]=function(e,t){var o=t.payload,a=t.meta,c=a.keepDirty,l=a.keepSubmitSucceeded,f=a.updateUnregisteredFields,d=a.keepValues,p=v(o),h=r,y=s(e,"warning");y&&(h=u(h,"warning",y));var g=s(e,"syncWarnings");g&&(h=u(h,"syncWarnings",g));var w=s(e,"error");w&&(h=u(h,"error",w));var b=s(e,"syncErrors");b&&(h=u(h,"syncErrors",b));var k=s(e,"registeredFields");k&&(h=u(h,"registeredFields",k));var x=s(e,"values"),_=s(e,"initial"),E=p,O=x;if(c&&k){if(!n(E,_)){var R=function(e){var t=s(_,e),r=s(x,e);if(n(r,t)){var o=s(E,e);s(O,e)!==o&&(O=u(O,e,o))}};f||i(m(k),(function(e){return R(e)})),i(m(E),(function(e){if(void 0===s(_,e)){var t=s(E,e);O=u(O,e,t)}f&&R(e)}))}}else O=E;return d&&(i(m(x),(function(e){var t=s(x,e);O=u(O,e,t)})),i(m(_),(function(e){var t=s(_,e);E=u(E,e,t)}))),l&&s(e,"submitSucceeded")&&(h=u(h,"submitSucceeded",!0)),h=u(h,"values",O),h=u(h,"initial",E)},t[c.EK]=function(e,t){var n=t.payload,r=n.name,o=n.type,i="registeredFields['"+r+"']",a=s(e,i);if(a){var c=s(a,"count")+1;a=u(a,"count",c)}else a=v({name:r,type:o,count:1});return u(e,i,a)},t[c.td]=function(e){var t=r,n=s(e,"registeredFields");n&&(t=u(t,"registeredFields",n));var o=s(e,"initial");return o&&(t=u(t,"values",o),t=u(t,"initial",o)),t},t[c.Wu]=function(e,t){var n=t.meta.sections,r=e;n.forEach((function(t){r=w(r,"asyncErrors."+t),r=w(r,"submitErrors."+t),r=w(r,"fields."+t);var n=s(e,"initial."+t);r=n?u(r,"values."+t,n):w(r,"values."+t)}));var o=y(m(s(r,"registeredFields")),(function(e){return s(r,"fields."+e+".touched")}));return r=o?u(r,"anyTouched",!0):p(r,"anyTouched")},t[c.zD]=function(e){return u(e,"triggerSubmit",!0)},t[c.VZ]=function(e,t){var n=t.meta.field;return u(e,"asyncValidating",n||!0)},t[c.bh]=function(e){return u(e,"submitting",!0)},t[c.gm]=function(e,t){var n=t.payload,r=e;if(r=p(r,"asyncValidating"),n&&Object.keys(n).length){var i=n._error,a=o()(n,["_error"]);i&&(r=u(r,"error",i)),Object.keys(a).length&&(r=u(r,"asyncErrors",v(a)))}else r=p(r,"error"),r=p(r,"asyncErrors");return r},t[c.c4]=function(e,t){var n=t.payload,r=e;if(r=p(r,"submitting"),r=p(r,"submitFailed"),r=p(r,"submitSucceeded"),n&&Object.keys(n).length){var i=n._error,a=o()(n,["_error"]);r=i?u(r,"error",i):p(r,"error"),r=Object.keys(a).length?u(r,"submitErrors",v(a)):p(r,"submitErrors"),r=u(r,"submitFailed",!0)}else r=p(r,"error"),r=p(r,"submitErrors");return r},t[c._V]=function(e,t){var n=t.meta.fields,r=e;return r=u(r,"submitFailed",!0),r=p(r,"submitSucceeded"),r=p(r,"submitting"),n.forEach((function(e){return r=u(r,"fields."+e+".touched",!0)})),n.length&&(r=u(r,"anyTouched",!0)),r},t[c.Lo]=function(e){var t=e;return t=p(t,"submitFailed"),t=u(t,"submitSucceeded",!0)},t[c.Qm]=function(e,t){var n=t.meta.fields,r=e;return n.forEach((function(e){return r=u(r,"fields."+e+".touched",!0)})),r=u(r,"anyTouched",!0)},t[c.gV]=function(e,t){var o=t.payload,i=o.name,a=o.destroyOnUnmount,c=e,l="registeredFields['"+i+"']",d=s(c,l);if(!d)return c;var v=s(d,"count")-1;if(v<=0&&a){c=p(c,l),n(s(c,"registeredFields"),r)&&(c=p(c,"registeredFields"));var m=s(c,"syncErrors");m&&(m=b(m,i),c=f.Z.deepEqual(m,f.Z.empty)?p(c,"syncErrors"):u(c,"syncErrors",m));var h=s(c,"syncWarnings");h&&(h=b(h,i),c=f.Z.deepEqual(h,f.Z.empty)?p(c,"syncWarnings"):u(c,"syncWarnings",h)),c=w(c,"submitErrors."+i),c=w(c,"asyncErrors."+i)}else d=u(d,"count",v),c=u(c,l,d);return c},t[c.tn]=function(e,t){var n=t.meta.fields,r=e;n.forEach((function(e){return r=p(r,"fields."+e+".touched")}));var o=y(m(s(r,"registeredFields")),(function(e){return s(r,"fields."+e+".touched")}));return r=o?u(r,"anyTouched",!0):p(r,"anyTouched")},t[c.WF]=function(e,t){var n=t.payload,r=n.syncErrors,o=n.error,i=e;return o?(i=u(i,"error",o),i=u(i,"syncError",!0)):(i=p(i,"error"),i=p(i,"syncError")),i=Object.keys(r).length?u(i,"syncErrors",r):p(i,"syncErrors")},t[c.kF]=function(e,t){var n=t.payload,r=n.syncWarnings,o=n.warning,i=e;return i=o?u(i,"warning",o):p(i,"warning"),i=Object.keys(r).length?u(i,"syncWarnings",r):p(i,"syncWarnings")},t);return function e(t){return t.plugin=function(t,n){var o=this;return void 0===n&&(n={}),e((function(e,i){void 0===e&&(e=r),void 0===i&&(i={type:"NONE"});var a=function(n,r){var o=s(n,r),a=t[r](o,i,s(e,r));return a!==o?u(n,r,a):n},c=o(e,i),l=i&&i.meta&&i.meta.form;return l&&!n.receiveAllFormActions?t[l]?a(c,l):c:Object.keys(t).reduce(a,c)}))},t}(function(e){return function(t,n){void 0===t&&(t=r),void 0===n&&(n={type:"NONE"});var o=n&&n.meta&&n.meta.form;if(!o||!function(e){return e&&e.type&&e.type.length>c.O4.length&&e.type.substring(0,c.O4.length)===c.O4}(n))return t;if(n.type===c.Kn&&n.meta&&n.meta.form)return n.meta.form.reduce((function(e,t){return w(e,t)}),t);var i=s(t,o),a=e(i,n);return a===i?t:u(t,o,a)}}((function(e,t){void 0===e&&(e=r);var n=O[t.type];return n?n(e,t):e})))},v=p(f.Z)},14892:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});const r=function(e,t,n,r){if(t<(e=e||[]).length){if(void 0===r&&!n){var o=[].concat(e);return o.splice(t,0,!0),o[t]=void 0,o}if(null!=r){var i=[].concat(e);return i.splice(t,n,r),i}var a=[].concat(e);return a.splice(t,n),a}if(n)return e;var c=[].concat(e);return c[t]=r,c};var o=n(30084),i=n.n(o);const a=function(e,t){if(!e)return e;var n=i()(t),r=n.length;if(r){for(var o=e,a=0;a<r&&o;++a)o=o[n[a]];return o}};var c=n(67154),s=n.n(c),u=function e(t,n,r,o){var i;if(o>=r.length)return n;var a=r[o],c=e(t&&(Array.isArray(t)?t[Number(a)]:t[a]),n,r,o+1);if(!t){var u;if(isNaN(a))return(u={})[a]=c,u;var l=[];return l[parseInt(a,10)]=c,l}if(Array.isArray(t)){var f=[].concat(t);return f[parseInt(a,10)]=c,f}return s()({},t,((i={})[a]=c,i))};const l=function(e,t,n){return u(e,n,i()(t),0)};var f=n(14293),d=n.n(f),p=n(28368),v=n.n(p),m=n(1024),h=n.n(m),y=function(e){return d()(e)||""===e||isNaN(e)},g=function(e,t){return e===t||(e||t?(!e||!t||e._error===t._error)&&((!e||!t||e._warning===t._warning)&&(!h().isValidElement(e)&&!h().isValidElement(t)&&void 0)):y(e)===y(t))};function w(e,t){if(null==e||null==t)return e;for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(r.length){if(Array.isArray(e)){if(isNaN(t))throw new Error('Must access array elements with a number, not "'+String(t)+'".');var i=Number(t);if(i<e.length){var a=w.apply(void 0,[e&&e[i]].concat(r));if(a!==e[i]){var c=[].concat(e);return c[i]=a,c}}return e}if(t in e){var u,l=w.apply(void 0,[e&&e[t]].concat(r));return e[t]===l?e:s()({},e,((u={})[t]=l,u))}return e}if(Array.isArray(e)){if(isNaN(t))throw new Error('Cannot delete non-numerical index from an array. Given: "'+String(t));var f=Number(t);if(f<e.length){var d=[].concat(e);return d.splice(f,1),d}return e}if(t in e){var p=s()({},e);return delete p[t],p}return e}const b={allowsArrayErrors:!0,empty:{},emptyList:[],getIn:a,setIn:l,deepEqual:function(e,t){return v()(e,t,g)},deleteIn:function(e,t){return w.apply(void 0,[e].concat(i()(t)))},forEach:function(e,t){return e.forEach(t)},fromJS:function(e){return e},keys:function(e){return e?Array.isArray(e)?e.map((function(e){return e.name})):Object.keys(e):[]},size:function(e){return e?e.length:0},some:function(e,t){return e.some(t)},splice:r,equals:function(e,t){return t.every((function(t){return~e.indexOf(t)}))},orderChanged:function(e,t){return t.some((function(t,n){return t!==e[n]}))},toJS:function(e){return e}}},80500:e=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},70610:e=>{"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},75677:(e,t,n)=>{"use strict";function r(){return 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},r.apply(this,arguments)}n.d(t,{Z:()=>r})},2396:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},72753:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},45915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(88911);var o=n(72753),i=n(61917);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}}}]);