tocco-admin 3.8.2 → 3.8.3

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.
@@ -0,0 +1 @@
1
+ (self.webpackChunktocco_admin=self.webpackChunktocco_admin||[]).push([[141],{67210:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(74806),o=n(92290),r=n(44834),a=n(33773),s=n(25660),c=n(80722),l=n(20247),u=n(85893);const d=(0,l.U)((0,i.ZP)((function(e){var t=e.path,n=e.context,i=e.onSuccess,l=e.intl,d=e.locale,m=e.emitAction,f=(0,c.Z)(t),p=f?[{id:"rel".concat(f.model),value:f.key}]:[],y=(0,s.Z)(n,"Domain");return(0,u.jsx)(o.ZP,{entityName:"Domain",formName:y,mode:"create",defaultValues:p,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Domain/".concat(t)}]}}];i({title:l.formatMessage({id:"client.docs-browser.createDomainSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(t=t.toaster)||void 0===t?void 0:t.title)})(e)||m(e)},listApp:r.ZP,docsApp:a.default,labelPosition:"inside"})})))},36340:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>d});var i=n(74806),o=n(92290),r=n(44834),a=n(33773),s=n(25660),c=n(80722),l=n(20247),u=n(85893);const d=(0,l.U)((0,i.ZP)((function(e){var t=e.context,n=e.path,i=e.onSuccess,l=e.intl,d=e.locale,m=e.emitAction,f=(0,c.Z)(n),p=f?[{id:"rel".concat(f.model),value:f.key}]:[],y=(0,s.Z)(t,"Folder");return(0,u.jsx)(o.ZP,{entityName:"Folder",formName:y,mode:"create",defaultValues:p,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Folder/".concat(t)}]}}];i({title:l.formatMessage({id:"client.docs-browser.createFolderSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(t=t.toaster)||void 0===t?void 0:t.title)})(e)||m(e)},listApp:r.ZP,docsApp:a.default,labelPosition:"inside"})})))},96954:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(4942),o=n(78788),r=n(85893);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,i.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const c=function(e){return(0,r.jsx)(o.Z,s(s({},e),{},{customDeleteEndpoint:"documents/delete"}))}},90100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(29439),o=n(92290),r=n(44834),a=n(33773),s=n(25660),c=n(20247),l=n(85893);const u=(0,c.U)((function(e){var t=e.selection,n=e.onSuccess,c=e.onCancel,u=e.locale,d=e.context,m=e.emitAction,f=e.navigate,p=t.ids[0].split("/"),y=(0,i.Z)(p,2),v=y[0],h=y[1];"Resource"===v&&(f("/docs/doc/".concat(h,"/detail")),c());var g=(0,s.Z)(d,v);return(0,l.jsx)(o.ZP,{entityName:v,formName:g,entityId:h,mode:"update",locale:u,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;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(t=t.toaster)||void 0===t?void 0:t.title)})(e)||m(e)},listApp:r.ZP,docsApp:a.default,labelPosition:"inside"})}))},4505:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});var i,o,r,a=n(74806),s=n(50558),c=n(30081),l=n(20247),u=n(29439),d=n(30168),m=n(18446),f=n.n(m),p=n(1024),y=n(44012),v=n(67165),h=n(36589),g=n(35728),Z=n(65035),b=n(33773),P=n(80722),_=n(85893),j=v.ZP.div.withConfig({displayName:"StyledButtonsWrapper"})(i||(i=(0,d.Z)(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),h.Z),N=(0,v.ZP)(g.Z).withConfig({displayName:"StyledLoadMask"})(o||(o=(0,d.Z)(["\n height: auto;\n"]))),k=function(e,t){return null!==e?"Move_docs_list_item":null!==t?"Move_root_docs_list_item_specific":"Move_root_docs_list_item"},w={initialize:c.j2,moveElements:c.w6};const x=(0,l.U)((0,s.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}}),w)((0,a.ZP)((function(e){var t=e.selection,n=e.onSuccess,i=e.onError,o=e.path,a=e.initialize,s=e.moveElements,c=e.isWaiting,l=e.domainTypes,d=e.rootNodes,m=e.businessUnit,v=e.locale,h=e.emitAction,g=(0,P.Z)(o),w={model:"Docs_list_item",key:"".concat(g.model,"/").concat(g.key)},x=(0,p.useState)(w),D=(0,u.Z)(x,2),O=D[0],E=D[1];(0,p.useEffect)((function(){a(t,n,i)}),[]);var S=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,_.jsxs)(N,{required:[!c],children:[(0,_.jsx)(b.default,{routerType:"routerless",initialLocation:function(){if(null===O)return null;var e=O.key.split("/"),t=(0,u.Z)(e,2),n=t[0],i=t[1];return S(n,i)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",disableViewPersistor:!0,getListFormName:k,onListParentChange:E,getCustomLocation:S,navigationStrategy:{},embedded:!0,emitAction:h,noLeftPadding:!0,domainTypes:l,rootNodes:d,businessUnit:m,sortable:!1,scrollBehaviour:"none",locale:v}),(0,_.jsx)(j,{children:(0,_.jsx)(Z.Z,{onClick:function(){return s(O.key,t.ids)},look:"raised",ink:"primary",disabled:null===O||f()(O,w),children:r||(r=(0,_.jsx)(y.Z,{id:"client.actions.dms-move.button"}))})})]})}))))},25660:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const i=function(e,t){return e.detailFormNames&&e.detailFormNames[t]?e.detailFormNames[t]:"Dms".concat(t)}},47556:(e,t,n)=>{var i=n(88668),o=n(47443),r=n(1196),a=n(29932),s=n(7518),c=n(74757),l=Math.min;e.exports=function(e,t,n){for(var u=n?r:o,d=e[0].length,m=e.length,f=m,p=Array(m),y=1/0,v=[];f--;){var h=e[f];f&&t&&(h=a(h,s(t))),y=l(h.length,y),p[f]=!n&&(t||d>=120&&h.length>=120)?new i(f&&h):void 0}h=e[0];var g=-1,Z=p[0];e:for(;++g<d&&v.length<y;){var b=h[g],P=t?t(b):b;if(b=n||0!==b?b:0,!(Z?c(Z,P):u(v,P,n))){for(f=m;--f;){var _=p[f];if(!(_?c(_,P):u(e[f],P,n)))continue e}Z&&Z.push(P),v.push(b)}}return v}},24387:(e,t,n)=>{var i=n(29246);e.exports=function(e){return i(e)?e:[]}},25325:(e,t,n)=>{var i=n(29932),o=n(47556),r=n(5976),a=n(24387),s=r((function(e){var t=i(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=s},44049:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var i=n(14892);const o=(r=i.Z,a=r.getIn,function(e,t){return function(n){var i=t||function(e){return a(e,"form")};return a(i(n),e+".initial")}});var r,a}}]);