@nodeject/ui-components
Version:
UI library for non-trivial components
1 lines • 269 kB
JavaScript
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("schedio-ui-components",[],t):"object"==typeof exports?exports["schedio-ui-components"]=t():e["schedio-ui-components"]=t()}(window,function(){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=170)}([function(e,t){e.exports=require("react")},function(e,t){e.exports=require("@ant-design/icons")},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){e.exports=require("classcat")},function(e,t){e.exports=require("immer")},function(e,t){e.exports=require("antd/lib/button")},function(e,t){e.exports=require("react-responsive")},function(e,t,r){"use strict";var o=r(82);r.d(t,"a",function(){return o.a}),r.d(t,"b",function(){return o.b}),r.d(t,"c",function(){return o.c}),r.d(t,"d",function(){return o.d}),r.d(t,"e",function(){return o.e}),r.d(t,"f",function(){return o.f}),r.d(t,"g",function(){return o.g}),r.d(t,"h",function(){return o.h}),r.d(t,"i",function(){return o.i}),r.d(t,"j",function(){return o.j}),r.d(t,"k",function(){return o.k}),r.d(t,"l",function(){return o.l}),r.d(t,"m",function(){return o.m}),r.d(t,"n",function(){return o.n}),r.d(t,"o",function(){return o.o}),r.d(t,"p",function(){return o.p}),r.d(t,"q",function(){return o.q}),r.d(t,"r",function(){return o.r}),r.d(t,"s",function(){return o.s}),r.d(t,"t",function(){return o.t}),r.d(t,"u",function(){return o.u}),r.d(t,"v",function(){return o.v}),r.d(t,"w",function(){return o.w}),r.d(t,"x",function(){return o.x}),r.d(t,"y",function(){return o.y}),r.d(t,"z",function(){return o.z}),r.d(t,"A",function(){return o.A}),r.d(t,"B",function(){return o.B}),r.d(t,"C",function(){return o.C}),r.d(t,"D",function(){return o.D}),r.d(t,"E",function(){return o.E}),r.d(t,"F",function(){return o.F}),r.d(t,"G",function(){return o.G}),r.d(t,"H",function(){return o.H}),r.d(t,"I",function(){return o.I}),r.d(t,"J",function(){return o.J}),r.d(t,"K",function(){return o.K}),r.d(t,"L",function(){return o.L}),r.d(t,"M",function(){return o.M}),r.d(t,"N",function(){return o.N}),r.d(t,"O",function(){return o.O}),r.d(t,"P",function(){return o.P}),r.d(t,"Q",function(){return o.Q}),r.d(t,"R",function(){return o.R}),r.d(t,"S",function(){return o.S}),r.d(t,"T",function(){return o.T}),r.d(t,"U",function(){return o.U}),r.d(t,"V",function(){return o.V}),r.d(t,"W",function(){return o.W}),r.d(t,"X",function(){return o.X}),r.d(t,"Y",function(){return o.Y}),r.d(t,"Z",function(){return o.Z}),r.d(t,"ab",function(){return o.ab}),r.d(t,"bb",function(){return o.bb}),r.d(t,"cb",function(){return o.cb}),r.d(t,"db",function(){return o.db}),r.d(t,"eb",function(){return o.eb}),r.d(t,"fb",function(){return o.fb}),r.d(t,"gb",function(){return o.gb}),r.d(t,"hb",function(){return o.hb}),r.d(t,"ib",function(){return o.ib}),r.d(t,"jb",function(){return o.jb}),r.d(t,"kb",function(){return o.kb}),r.d(t,"lb",function(){return o.lb}),r.d(t,"mb",function(){return o.mb}),r.d(t,"nb",function(){return o.nb}),r.d(t,"ob",function(){return o.ob}),r.d(t,"pb",function(){return o.pb}),r.d(t,"qb",function(){return o.qb}),r.d(t,"rb",function(){return o.rb}),r.d(t,"sb",function(){return o.sb}),r.d(t,"tb",function(){return o.tb}),r.d(t,"ub",function(){return o.ub}),r.d(t,"vb",function(){return o.vb}),r.d(t,"wb",function(){return o.wb}),r.d(t,"xb",function(){return o.xb}),r.d(t,"yb",function(){return o.yb}),r.d(t,"zb",function(){return o.zb}),r.d(t,"Ab",function(){return o.Ab}),r.d(t,"Bb",function(){return o.Bb}),r.d(t,"Cb",function(){return o.Cb}),r.d(t,"Db",function(){return o.Db}),r.d(t,"Eb",function(){return o.Eb}),r.d(t,"Fb",function(){return o.Fb}),r.d(t,"Gb",function(){return o.Gb}),r.d(t,"Hb",function(){return o.Hb}),r.d(t,"Ib",function(){return o.Ib}),r.d(t,"Jb",function(){return o.Jb}),r.d(t,"Kb",function(){return o.Kb}),r.d(t,"Lb",function(){return o.Lb}),r.d(t,"Mb",function(){return o.Mb}),r.d(t,"Nb",function(){return o.Nb}),r.d(t,"Ob",function(){return o.Ob}),r.d(t,"Pb",function(){return o.Pb}),r.d(t,"Qb",function(){return o.Qb}),r.d(t,"Rb",function(){return o.Rb}),r.d(t,"Sb",function(){return o.Sb}),r.d(t,"Tb",function(){return o.Tb}),r.d(t,"Ub",function(){return o.Ub});"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t){e.exports=require("antd/lib/typography")},function(e,t,r){"use strict";(function(e){var o;r.d(t,"d",function(){return n}),r.d(t,"a",function(){return a}),r.d(t,"c",function(){return d}),r.d(t,"b",function(){return l}),(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);var n,a;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;!function(e){e.Error="error",e.Loading="loading",e.Success="success"}(n||(n={})),function(e){e.create="create",e.delete="delete",e.move="move"}(a||(a={}));var i,c,d="list",l="item";(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(i.register(n,"ServerEventStatus","D:\\code\\schedio\\uic\\src\\dnd-lists\\dtos.ts"),i.register(a,"BoardEvent","D:\\code\\schedio\\uic\\src\\dnd-lists\\dtos.ts"),i.register(d,"DroppableListType","D:\\code\\schedio\\uic\\src\\dnd-lists\\dtos.ts"),i.register(l,"DroppableItemType","D:\\code\\schedio\\uic\\src\\dnd-lists\\dtos.ts")),(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&c(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";(function(e){var o;r.d(t,"a",function(){return i}),(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var n,a,i={content:"SchedioLayoutContent",footer:"SchedioLayoutFooter",header:"SchedioLayoutHeader",layout:"SchedioLayout",sider:"SchedioLayoutSider"};(n="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&n.register(i,"displayNames","D:\\code\\schedio\\uic\\src\\schedio-layout\\types.ts"),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";var o=r(92);r.d(t,"a",function(){return o.a});"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t){e.exports=require("lodash")},function(e,t,r){"use strict";var o=r(139);r.d(t,"a",function(){return o.a}),r.d(t,"b",function(){return o.b});"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,r){"use strict";var o=r(97);r.d(t,"a",function(){return o.a});"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,r){"use strict";(function(e){var o;r.d(t,"a",function(){return n}),(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);var n,a,i;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;!function(e){e[e.Org=0]="Org",e[e.List=1]="List"}(n||(n={})),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&a.register(n,"LayoutStyle","D:\\code\\schedio\\uic\\src\\dnd-tree\\dtos.ts"),(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&i(e)}).call(this,r(2)(e))},function(e,t){e.exports=require("antd/lib/typography/style/index.js")},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return f});var o,n=r(20),a=r.n(n),i=r(0);(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var c,d=(c=function(e,t){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){var t=this.selection.blocks();if(t.length){var r=t[0],o="N",n=this.html.defaultTag();r.tagName.toLowerCase()!=n&&r!=this.el&&(o=r.tagName)}return["LI","TD","TH"].indexOf(o)>=0&&(o="N"),o.toLowerCase()==e};a.a.DefineIcon("code",{NAME:"code",PATH:"m 16 3 h 3 c 1 0 1 1 1 1 v 16 c 0 0 0 1 -1 1 h -16 c -1 0 -1 -1 -1 -1 v -3 h 2 v 2 h 14 v -14 h -2 Z"}),a.a.RegisterCommand("code",{title:"Block code",callback:function(e){l.apply(this,["pre"])?this.paragraphFormat.apply("N"):this.paragraphFormat.apply("pre")},refresh:function(e){e.toggleClass("fr-active",l.apply(this,[e.data("cmd")]))}}),a.a.DefineIcon("codeBlock",{NAME:"Block code",PATH:"M 18 5 h 3 c 1 0 1 1 1 1 v 14 c 0 0 0 1 -1 1 h -16 c -1 0 -1 -1 -1 -1 v -3 h 2 v 2 h 14 v -12 h -2 Z m -0.5 4 v 0.255 a 0.595 0.595 90 0 1 -0.17 0.425 l -3.145 3.145 a 0.34 0.34 90 0 1 -0.595 0 l -0.51 -0.51 a 0.34 0.34 90 0 1 0 -0.51 l 2.635 -2.635 l -2.635 -2.635 a 0.34 0.34 90 0 1 0 -0.51 l 0.51 -0.51 a 0.34 0.34 90 0 1 0.595 0 l 3.145 3.145 a 0.595 0.595 90 0 1 0.17 0.425 z m -13.6 0.17 l 2.635 -2.635 a 0.34 0.34 90 0 0 0 -0.51 l -0.595 -0.51 a 0.34 0.34 90 0 0 -0.51 0 l -3.145 3.145 a 0.595 0.595 90 0 0 -0.17 0.425 v 0.255 a 0.595 0.595 90 0 0 0.17 0.425 l 3.145 3.145 a 0.34 0.34 90 0 0 0.595 0 l 0.51 -0.51 a 0.34 0.34 90 0 0 0 -0.51 z m 8.5 -5.865 l -0.765 -0.255 a 0.425 0.425 90 0 0 -0.51 0.255 l -4.08 11.305 a 0.34 0.34 90 0 0 0.255 0.51 l 0.765 0.255 a 0.425 0.425 90 0 0 0.51 -0.255 l 4.08 -11.305 a 0.34 0.34 90 0 0 -0.255 -0.51 z"}),a.a.RegisterCommand("codeBlock",{title:"Block code",callback:function(e){l.apply(this,["pre"])?this.paragraphFormat.apply("N"):this.paragraphFormat.apply("pre")},refresh:function(e){e.toggleClass("fr-active",l.apply(this,[e.data("cmd")]))}}),a.a.DefineIcon("send",{NAME:"Send",PATH:"M 2.1 18.9 l 18.9 -8.4 l -18.9 -8.4 v 6.3 l 13.3 2.1 l -13.3 2.1 v 6.3 z"}),a.a.RegisterCommand("send",{icon:"send",title:"Send",undo:!1,callback:function(){this.save.save()},refresh:function(e){var t=this.html.get().replace('<p data-f-id="pbf" style="text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;">Powered by <a href="https://www.froala.com/wysiwyg-editor?pb=1" title="Schedio Editor">Schedio Editor</a></p>',"").replace('<a id="fr-logo" href="https://froala.com/wysiwyg-editor" target="_blank" title="Schedio WYSIWYG HTML Editor"><span>Powered by</span><svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 822.8 355.33"><defs><style>.fr-logo{fill:#b1b2b7;}</style></defs><title>Schedio</title><path class="fr-logo" d="M123.58,78.65A16.16,16.16,0,0,0,111.13,73H16.6C7.6,73,0,80.78,0,89.94V128.3a16.45,16.45,0,0,0,32.9,0V104.14h78.5A15.63,15.63,0,0,0,126.87,91.2,15.14,15.14,0,0,0,123.58,78.65Z"/><path class="fr-logo" d="M103.54,170a16.05,16.05,0,0,0-11.44-4.85H15.79A15.81,15.81,0,0,0,0,180.93v88.69a16.88,16.88,0,0,0,5,11.92,16,16,0,0,0,11.35,4.7h.17a16.45,16.45,0,0,0,16.41-16.6v-73.4H92.2A15.61,15.61,0,0,0,107.89,181,15.1,15.1,0,0,0,103.54,170Z"/><path class="fr-logo" d="M233,144.17c-5.29-6.22-16-7.52-24.14-7.52-16.68,0-28.72,7.71-36.5,23.47v-5.67a16.15,16.15,0,1,0-32.3,0v115.5a16.15,16.15,0,1,0,32.3,0v-38.7c0-19.09,3.5-63.5,35.9-63.5a44.73,44.73,0,0,1,5.95.27h.12c12.79,1.2,20.06-2.73,21.6-11.69C236.76,151.48,235.78,147.39,233,144.17Z"/><path class="fr-logo" d="M371.83,157c-13.93-13.11-32.9-20.33-53.43-20.33S279,143.86,265.12,157c-14.67,13.88-22.42,32.82-22.42,54.77,0,21.68,8,41.28,22.4,55.2,13.92,13.41,32.85,20.8,53.3,20.8s39.44-7.38,53.44-20.79c14.55-13.94,22.56-33.54,22.56-55.21S386.39,170.67,371.83,157Zm-9.73,54.77c0,25.84-18.38,44.6-43.7,44.6s-43.7-18.76-43.7-44.6c0-25.15,18.38-43.4,43.7-43.4S362.1,186.59,362.1,211.74Z"/><path class="fr-logo" d="M552.7,138.14a16.17,16.17,0,0,0-16,16.3v1C526.41,143.85,509,136.64,490,136.64c-19.83,0-38.19,7.24-51.69,20.4C424,171,416.4,190,416.4,212c0,21.61,7.78,41.16,21.9,55,13.56,13.33,31.92,20.67,51.7,20.67,18.83,0,36.29-7.41,46.7-19.37v1.57a16.15,16.15,0,1,0,32.3,0V154.44A16.32,16.32,0,0,0,552.7,138.14Zm-16.3,73.6c0,30.44-22.81,44.3-44,44.3-24.57,0-43.1-19-43.1-44.3s18.13-43.4,43.1-43.4C513.73,168.34,536.4,183.55,536.4,211.74Z"/><path class="fr-logo" d="M623.5,61.94a16.17,16.17,0,0,0-16,16.3v191.7a16.15,16.15,0,1,0,32.3,0V78.24A16.32,16.32,0,0,0,623.5,61.94Z"/><path class="fr-logo" d="M806.5,138.14a16.17,16.17,0,0,0-16,16.3v1c-10.29-11.63-27.74-18.84-46.7-18.84-19.83,0-38.19,7.24-51.69,20.4-14.33,14-21.91,33-21.91,55,0,21.61,7.78,41.16,21.9,55,13.56,13.33,31.92,20.67,51.7,20.67,18.83,0,36.29-7.41,46.7-19.37v1.57a16.15,16.15,0,1,0,32.3,0V154.44A16.32,16.32,0,0,0,806.5,138.14Zm-16.3,73.6c0,30.44-22.81,44.3-44,44.3-24.57,0-43.1-19-43.1-44.3s18.13-43.4,43.1-43.4C767.53,168.34,790.2,183.55,790.2,211.74Z"/></svg></a>',""),r=(new DOMParser).parseFromString(t,"text/html").documentElement.textContent.trim();e.toggleClass("fr-disabled",""===r)},refreshAfterCallback:!0}),a.a.RegisterShortcut(a.a.KEYCODE.ENTER,"send",null,"Save",!1,!1);var s,u,f=function(e){function t(t){var r=e.call(this,t)||this;return r.tag=null,r.defaultTag="div",r.listeningEvents=[],r.element=null,r.editor=null,r.config={immediateReactModelUpdate:!1,reactIgnoreAttrs:null},r.editorInitialized=!1,r.SPECIAL_TAGS=["img","button","input","a"],r.INNER_HTML_ATTR="innerHTML",r.hasSpecialTag=!1,r.oldModel=null,r}return d(t,e),t.prototype.componentWillMount=function(){this.tag=this.props.tag||this.defaultTag},t.prototype.componentDidMount=function(){var e=this.el.tagName.toLowerCase();-1!=this.SPECIAL_TAGS.indexOf(e)&&(this.tag=e,this.hasSpecialTag=!0),this.props.onManualControllerReady?this.generateManualController():this.createEditor()},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(){JSON.stringify(this.oldModel)!=JSON.stringify(this.props.model)&&this.setContent()},t.prototype.createEditor=function(){var e=this;if(!this.editorInitialized&&(this.config=this.props.config||this.config,this.element=this.el,this.props.model&&(this.element.innerHTML=this.props.model),this.setContent(!0),this.registerEvent("initialized",this.config.events&&this.config.events.initialized),this.config.events||(this.config.events={}),this.config.events.initialized=function(){return e.initListeners()},this.editor=new a.a(this.element,this.config),this._initEvents))for(var t=0;t<this._initEvents.length;t++)this._initEvents[t].call(this.editor)},t.prototype.setContent=function(e){(this.props.model||""==this.props.model)&&(this.oldModel=this.props.model,this.hasSpecialTag?this.setSpecialTagContent():this.setNormalTagContent(e))},t.prototype.setNormalTagContent=function(e){var t=this,r=this;function o(){r.editor.html&&r.editor.html.set(r.props.model||""),r.editorInitialized&&r.editor.undo&&(r.editor.undo.reset(),r.editor.undo.saveStep())}e?this.config.initOnClick?(this.registerEvent("initializationDelayed",function(){o()}),this.registerEvent("initialized",function(){t.editorInitialized=!0})):this.registerEvent("initialized",function(){t.editorInitialized=!0,o()}):o()},t.prototype.setSpecialTagContent=function(){var e=this.props.model;if(e){for(var t in e)e.hasOwnProperty(t)&&t!=this.INNER_HTML_ATTR&&this.element.setAttribute(t,e[t]);e.hasOwnProperty(this.INNER_HTML_ATTR)&&(this.element.innerHTML=e[this.INNER_HTML_ATTR])}},t.prototype.destroyEditor=function(){this.element&&(this.editor.destroy&&this.editor.destroy(),this.listeningEvents.length=0,this.element=null,this.editorInitialized=!1)},t.prototype.getEditor=function(){return this.element?this.editor:null},t.prototype.generateManualController=function(){var e=this,t={initialize:function(){return e.createEditor.call(e)},destroy:function(){return e.destroyEditor.call(e)},getEditor:function(){return e.getEditor.call(e)}};this.props.onManualControllerReady(t)},t.prototype.updateModel=function(){if(this.props.onModelChange){var e="";if(this.hasSpecialTag){for(var t=this.element.attributes,r={},o=0;o<t.length;o++){var n=t[o].name;this.config.reactIgnoreAttrs&&-1!=this.config.reactIgnoreAttrs.indexOf(n)||(r[n]=t[o].value)}this.element.innerHTML&&(r[this.INNER_HTML_ATTR]=this.element.innerHTML),e=r}else{var a=this.editor.html.get();"string"==typeof a&&(e=a)}this.oldModel=e,this.props.onModelChange(e)}},t.prototype.initListeners=function(){var e=this;this.editor.events.on("contentChanged",function(){e.updateModel()}),this.config.immediateReactModelUpdate&&this.editor.events.on("keyup",function(){e.updateModel()})},t.prototype.registerEvent=function(e,t){e&&t&&("initialized"==e?(this._initEvents||(this._initEvents=[]),this._initEvents.push(t)):(this.config.events||(this.config.events={}),this.config.events[e]=t))},t}(i.Component);(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(s.register(d,"__extends","D:\\code\\schedio\\uic\\src\\rich-text-editor\\react-editor\\SchedioEditorFunctionality.tsx"),s.register(l,"isActive","D:\\code\\schedio\\uic\\src\\rich-text-editor\\react-editor\\SchedioEditorFunctionality.tsx"),s.register(0,"lastId","D:\\code\\schedio\\uic\\src\\rich-text-editor\\react-editor\\SchedioEditorFunctionality.tsx"),s.register(f,"SchedioEditorFunctionality","D:\\code\\schedio\\uic\\src\\rich-text-editor\\react-editor\\SchedioEditorFunctionality.tsx")),(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&u(e)}).call(this,r(2)(e))},function(e,t){e.exports=require("@richardrout/react-smooth-dnd")},function(e,t,r){"use strict";var o=r(118);r.d(t,"a",function(){return o.a}),r.d(t,"b",function(){return o.b}),r.d(t,"g",function(){return o.c});var n=r(119);r.d(t,"h",function(){return n.a});var a=r(120);r.d(t,"f",function(){return a.a});var i=r(121);r.d(t,"c",function(){return i.a});var c=r(122);r.d(t,"e",function(){return c.a});var d=r(123);r.d(t,"d",function(){return d.a});"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t){e.exports=require("@averystupidtest/editor")},function(e,t){e.exports=require("antd/lib/button/style/index.js")},function(e,t,r){"use strict";r.d(t,"k",function(){return o.a}),r.d(t,"o",function(){return n.c}),r.d(t,"n",function(){return n.b}),r.d(t,"a",function(){return n.a}),r.d(t,"b",function(){return a.a}),r.d(t,"l",function(){return a.b}),r.d(t,"c",function(){return i.a}),r.d(t,"m",function(){return i.b}),r.d(t,"j",function(){return c.a}),r.d(t,"d",function(){return d.a}),r.d(t,"e",function(){return l.a}),r.d(t,"f",function(){return s.a}),r.d(t,"g",function(){return u.a}),r.d(t,"h",function(){return f.a}),r.d(t,"i",function(){return p.a});"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o=r(51),n=r(126),a=r(127),i=r(134),c=r(53),d=r(52),l=r(135),s=r(136),u=r(137),f=r(138),p=r(54);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,r){"use strict";r.d(t,"a",function(){return o.a}),r.d(t,"b",function(){return o.b});var o=r(79);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature,"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,r){"use strict";var o=r(101);r.d(t,"a",function(){return o.a});"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t){e.exports=require("antd/lib/tooltip")},function(e,t,r){"use strict";var o=r(85);r.d(t,"a",function(){return o.a});"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,r){"use strict";var o=r(55);r.d(t,"a",function(){return o.a});var n=r(146);r.d(t,"b",function(){return n.a});"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return v});var o,n=r(4),a=r.n(n),i=r(58),c=r(0),d=r(34),l=r(15);(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);var s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},u=function(){return(u=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},f=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r},p=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var o=Array(e),n=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,n++)o[n]=a[i];return o},m=function(e){var t=Object(c.useRef)(0),r=Object(c.useState)(0),o=r[0],n=r[1];t.current=o,document.body.onmousedown=function(){n(function(e){return e+1})},document.body.onmouseup=function(){n(function(e){return e-1}),F(null),Q(null)};var i=e.actions,d=e.activeNode,s=e.components,m=e.onNodeClicked,b=e.treeMode,h=u(u({},{canEditTreeStructure:!1,canExpandCollapse:!0}),e.treeOptions),v=e.treeData,y=Object(c.useState)(),L=y[0],H=y[1],E=Object(c.useState)({saveNewNode:null}),D=E[0],I=E[1],w=Object(c.useState)(e.treeData),G=w[0],C=w[1],S=Object(c.useState)({id:"",isExpanded:!1}),_=S[0],T=S[1],O=Object(c.useState)(Object.assign.apply(Object,p([{}],e.treeData.nodes.map(function(e){var t;return(t={})[e.data.id]={isExpanded:!1},t})))),N=O[0],M=O[1],k=Object(c.useState)(g(e.treeData.nodes)),P=k[0],j=k[1],W=Object(c.useState)(""),z=W[0],A=W[1];Object(c.useEffect)(function(){C(v),M(function(e){return Object.assign.apply(Object,p([{}],v.nodes.map(function(t){var r;return(r={})[t.data.id]={isExpanded:e[t.data.id]},r})))})},[JSON.stringify(v.nodes)]),Object(c.useEffect)(function(){""===z&&""!==_.id&&M(function(e){return a()(e,function(e){e[_.id]={isExpanded:_.isExpanded}})})},[z]);var B=Object(c.useState)(null),R=B[0],F=B[1],q=Object(c.useRef)(null);q.current=R,Object(c.useLayoutEffect)(function(){var e=a()(G,function(e){return g(e.nodes)});j(e)},[JSON.stringify(G)]);var V,Q=function(e){A(e)},U=function(t){var r=e.actions.createNewNode(t);return H(r.data.id),M(function(e){return a()(e,function(e){e[r.data.id]={isExpanded:!1}})}),r},Y=function(e){var t=e.arr,r=e.id,o=e.toId,n=e.newElement,i=t.find(function(e){return e.data.id===r}),c=t.find(function(e){return e.data.id===o}),d=t.findIndex(function(e){return e.data.id===r}),l=function(e,t){var r=e[t];return{array:a()(e,function(e){return e.splice(t,1)[0],e}),removedElement:r}}(t,d).array,s=o?l.findIndex(function(e){return e.data.id===o}):l.length,u=s;s===l.length-1&&(u=s+1),d<s&&(u=i.data.parent===c.data.parent?s+1:s),d===s&&(u=i.data.parent===c.data.parent?s+1:s),d>s&&(u=s),n.data.parent;var f=function(e,t,r){return a()(e,function(e){e.splice(t,0,r)})}(l,u,n);return Z(f)},Z=function(e){return a()(e,function(e){var t=[],r=e.find(function(e){return null===e.data.parent});return function e(r,o){for(var n=J(r,o.data.id)-1;!t[n];)t.push([]);t[n].push(o),r.filter(function(e){return e.data.parent===o.data.id}).map(function(t){e(r,t)})}(e,r),[].concat.apply([],t)})},J=function(e,t){for(var r=1,o=e.find(function(e){return e.data.id===t});o.data.parent;)r+=1,o=e.find(function(e){return e.data.id===o.data.parent});return r};return{actions:{addChildNode:function(e){if(e){var t=U({data:{parent:e,layoutStyle:l.a.List}});if(C(function(r){return a()(r,function(o){var n,a=x(e,P);if(a.length>0){var i=a[a.length-1].data.id;n=r.nodes.findIndex(function(e){return e.data.id===i})+1}else n=r.nodes.findIndex(function(t){return t.data.id===e})+1;o.nodes.splice(n,0,t)})}),i.addChildNode){I({saveNewNode:function(r){return i.addChildNode({component:e,newComponent:t.data.id,data:r}).then(function(){return H("")})}})}else console.warn("actionsFromServer is not implemented. Please provide a actionsFromServer function")}},collapseNode:function(e){var t=a()(N,function(t){t[e].isExpanded=!1});M(t)},expandNode:function(e){var t=a()(N,function(t){t[e].isExpanded=!0});M(t)},toggleNode:function(e){var t=a()(N,function(t){t[e].isExpanded=!t[e].isExpanded});M(t)},createNewNode:U,deleteNode:function(e){var t=G.nodes.find(function(t){return t.data.id===e}),r=G.nodes.findIndex(function(t){return t.data.id===e});-1!==r&&t&&(C(function(e){return a()(e,function(e){var o=x(t.data.id,P).length;e.nodes.splice(r,1+o)})}),i.deleteNode?i.deleteNode(e):console.warn("deleteNode is not implemented. Please provide a deleteNode function"))},insertSiblingBefore:function(e){var t=G.nodes.find(function(t){return t.data.id===e}).data.parent;if(t){var r=U({data:{layoutStyle:l.a.List,parent:t}});if(C(function(t){return a()(t,function(o){var n=t.nodes.findIndex(function(t){return t.data.id===e});o.nodes.splice(n,0,r)})}),i.insertSiblingBefore){I({saveNewNode:function(t){return i.insertSiblingBefore({component:e,newComponent:r.data.id,data:t}).then(function(){return H("")})}})}else console.warn("actionsFromServer is not implemented. Please provide a actionsFromServer function")}},insertParent:function(e){var t;if(C(function(r){return a()(r,function(o){var n=r.nodes.find(function(t){return t.data.id===e}),i=U({data:{layoutStyle:l.a.List,parent:n.data.parent}});t=i.data.id;var c=a()(n,function(e){e.data.parent=i.data.id}),d=r.nodes.findIndex(function(t){return t.data.id===e});o.nodes.splice(d,1,c),o.nodes.splice(d-1,0,i)})}),i.insertParent){I({saveNewNode:function(r){return i.insertParent({component:e,newComponent:t,data:r}).then(function(){return H("")})}})}else console.warn("insertParent is not implemented. Please provide a insertParent function")},insertSiblingAfter:function(e){var t=G.nodes.find(function(t){return t.data.id===e}).data.parent;if(t){var r=U({data:{layoutStyle:l.a.List,parent:t}});if(C(function(t){return a()(t,function(o){var n=t.nodes.findIndex(function(t){return t.data.id===e});o.nodes.splice(n+1,0,r)})}),i.insertSiblingAfter){I({saveNewNode:function(t){return i.insertSiblingAfter({component:e,newComponent:r.data.id,data:t}).then(function(){return H("")})}})}else console.warn("actionsFromServer is not implemented. Please provide a actionsFromServer function")}},moveNode:function(e){var t,r,o=e.index,n=e.parentContainerNode,c=e.droppedNode,d=(c.children,f(c,["children"]));if(0===n.children.length)r=G.nodes.find(function(e){return e.data.id===n.data.id});else if(o>n.children.length-1){var l=G.nodes.findIndex(function(e){return e.data.id===n.children[o-1].data.id});r=G.nodes[l+1]||G.nodes[l]}else r=G.nodes.find(function(e){return e.data.id===n.children[o].data.id});d.data.id!==(null===(t=n.children[o])||void 0===t?void 0:t.data.id)&&(C(function(e){var t=a()(d,function(e){return u(u({},e),{data:u(u({},e.data),{parent:n.data.id})})});return{nodes:Y({arr:e.nodes,id:d.data.id,toId:r.data.id,newElement:t})}}),i.moveNode?i.moveNode({index:o,nodeKey:d.data.id,parentKey:n.data.id}):console.warn("insertParent is not implemented. Please provide a insertParent function")),Q("")},saveNewNode:D.saveNewNode,setNodeDraggingId:Q},activeNode:d,events:{onMouseDownHandle:function e(r){"dragdrop"===b&&r!==q.current&&(F(r),V=setTimeout(function(){q.current&&(0!==t.current&&(e(r),T({id:r,isExpanded:N[r].isExpanded}),Q(r)))},100))},onMouseUpHandle:function(e){"dragdrop"===b&&(F(null),V&&clearTimeout(V),Q(null))}},components:s,onNodeClicked:m,treeMode:b,treeOptions:h,state:{expandedNodes:N,draggingId:z,newNodeId:L,unflattenedTreeData:P}}};s(m,"useRef{mouseDownRef}\nuseState{_a(0)}\nuseState{_b}\nuseState{_c({ saveNewNode: null })}\nuseState{_d(props.treeData)}\nuseState{_e({ id: '', isExpanded: false })}\nuseState{_f(Object.assign.apply(Object, __spreadArrays([{}], props.treeData.nodes.map(function (item) {\r\n var _a;\r\n return _a = {},\r\n _a[item.data.id] = { isExpanded: false },\r\n _a;\r\n }))))}\nuseState{_g(getUnflattenedTreeData(props.treeData.nodes))}\nuseState{_h('')}\nuseEffect{}\nuseEffect{}\nuseState{_j(null)}\nuseRef{isDragValidRef}\nuseLayoutEffect{}");var b,h,v=Object(i.createContainer)(m),g=function(e){return{nodes:Object(d.a)(e,{dataField:null,id:"data.id",parentId:"data.parent"})}},y=function e(t){var r=t.children.length;return r>0?e(t.children[r-1]):t.data.id},L=function e(t,r){if(!t)return[];var o=r||[];return t.children.map(function(t){o.push(t),e(t,o)}),o},x=function(e,t){var r=null;return function t(o){for(var n=0;n<o.length&&!r;n++){if(o[n].data.id===e){r=o[n];break}t(o[n].children)}}(t.nodes),L(r)},H=function(e,t){return"string"==typeof e?t.nodes.findIndex(function(t){return t.data.id===e}):t.nodes.findIndex(function(t){return t.data.id===e.data.id})},E=function(e){var t=e.index;return void 0===e.parent.children[t]},D=function(e){return L(e).length+1},I=function(e){return e+1},w=function(e,t){return e.data.parent!==t.data.id},G=function(e){var t=e.array,r=e.id,o=e.value;return"string"==typeof o?Object.assign.apply(Object,p([{}],t.map(function(e){var t;return(t={})[C(e,r)]={data:C(e,o)},t}))):Object.assign.apply(Object,p([{}],t.map(function(e){var t;return(t={})[C(e,r)]=!0,t})))},C=function(e,t){return t.split(".").reduce(function(e,t){return e[t]},e)};(b="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(b.register(u,"__assign","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(f,"__rest","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(p,"__spreadArrays","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(m,"useDnDTree","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(v,"DnDTreeContainer","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(g,"getUnflattenedTreeData","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(y,"getDeepestDescendant","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(L,"getDescendants","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(x,"getDescendantsFromFlatNode","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(H,"getNodeIndex","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(E,"isDroppedAsLastChild","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(D,"branchNodeQty","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(I,"indexAfterNode","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(w,"isNodeInserted","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(G,"arrayToObject","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts"),b.register(C,"getItemNestedProperty","D:\\code\\schedio\\uic\\src\\dnd-tree\\hooks\\useDnDTree.ts")),(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&h(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";var o=r(102);r.d(t,"a",function(){return o.a});var n=r(103);r.d(t,"b",function(){return n.a});var a=r(104);r.d(t,"c",function(){return a.a}),r.d(t,"d",function(){return a.b});r(32),"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,r){"use strict";(function(e){r.d(t,"b",function(){return p}),r.d(t,"a",function(){return v});var o,n=r(0),a=r(77),i=r(51);(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var c,d,l=function(){return(l=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},s=function(e,t){var r=(new DOMParser).parseFromString(e,"text/html");return t?u(e,v(r),t):e},u=function(e,t,r){var o=e;return t.map(function(e){var t=m(e),n=r(t).Placeholder;o=h(o,e.outerHTML,Object(a.renderToString)(n))}),o},f=function(e){var t=null==e?void 0:e.replace('<p data-f-id="pbf" style="text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;">Powered by <a href="https://www.Schedio.com/wysiwyg-editor?pb=1" title="Schedio Editor">Schedio Editor</a></p>',""),r=(new DOMParser).parseFromString(t,"text/html"),o=v?v(r):[];return b(t,o)},p={dbToHtml:s,htmlToDb:f},m=function(e){var t=e.getAttribute("id")||"",r=e.getAttribute("data-tribute-title")||"",o=e.getAttribute("data-tribute-type")||"";return{domId:t,organization:e.getAttribute("data-tribute-organization")||"",ppm:e.getAttribute("data-tribute-ppm")||"",title:r,type:o,wbsComponent:e.getAttribute("data-tribute-wbscomponent")||"",workItem:e.getAttribute("data-tribute-workitem")||""}},b=function(e,t){var r=e;return t.map(function(e){var t=m(e),o=l(l({},t),{domId:t.domId+"_"+parseInt(Math.random().toString(8).substr(2,9),10)}),c=n.createElement(i.a,l({},o));r=h(r,e.outerHTML,Object(a.renderToString)(c))}),r},h=function(e,t,r){return e.replace(t,r)},v=function(e){var t=e.getElementsByClassName("schedio-tribute-component"),r=[];return Array.from(t).forEach(function(e){r.push(e)}),r};(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(c.register(l,"__assign","D:\\code\\schedio\\uic\\src\\rich-text-editor\\parser.tsx"),c.register(s,"dbToHtml","D:\\code\\schedio\\uic\\src\\rich-text-editor\\parser.tsx"),c.register(u,"replaceHtmlComponentsWithPlaceholder","D:\\code\\schedio\\uic\\src\\rich-text-editor\\parser.tsx"),c.register(f,"htmlToDb","D:\\code\\schedio\\uic\\src\\rich-text-editor\\parser.tsx"),c.register(p,"parser","D:\\code\\schedio\\uic\\src\\rich-text-editor\\parser.tsx"),c.register(m,"getComponentParams","D:\\code\\schedio\\uic\\src\\rich-text-editor\\parser.tsx"),c.register(b,"replaceFullHtmlComponentsWithDbHtmlComponents","D:\\code\\schedio\\uic\\src\\rich-text-editor\\parser.tsx"),c.register(h,"replaceComponent","D:\\code\\schedio\\uic\\src\\rich-text-editor\\parser.tsx"),c.register(v,"getTributeComponentsFromHtml","D:\\code\\schedio\\uic\\src\\rich-text-editor\\parser.tsx")),(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&d(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";var o=r(28);r.d(t,"a",function(){return o.a});"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return p});var o,n=r(5),a=r.n(n),i=(r(21),r(3)),c=r.n(i),d=r(0),l=r(203);(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var s,u,f={fontSize:"1.6rem",lineHeight:"1rem"},p=function(e){var t,r=e.onNewItemClicked,o=e.position,n=void 0!==e.isDisabled&&e.isDisabled,i=e.title||"+",s=c()(((t={})[l.newItemButton]=Boolean(l.newItemButton),t[e.className]=Boolean(e.className),t));return d.createElement("div",{className:s},d.createElement(a.a,{block:!0,size:"small",type:"primary",disabled:n,onClick:function(){return r(o)}},d.createElement("span",{style:f},i)))};(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(s.register(f,"btnStyle","D:\\code\\schedio\\uic\\src\\dnd-lists\\list\\components\\NewItemButton.tsx"),s.register(p,"NewItemButtonDefault","D:\\code\\schedio\\uic\\src\\dnd-lists\\list\\components\\NewItemButton.tsx")),(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&u(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return v});var o,n=r(5),a=r.n(n),i=(r(21),r(8)),c=r.n(i),d=(r(16),r(0)),l=r(24),s=r(7),u=r(207),f=r(209);(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);var p,m,b="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},h=c.a.Text,v=function(e){var t=e.onCancelNewItem,r=e.onSaveNewItem,o=e.saveButtonTitle,n=Object(d.useState)("New item"),i=n[0],c=n[1],p=Object(d.useState)(!1),m=p[0],b=p[1],v=Object(d.useState)(function(){return Math.random()}),g=v[0],y=v[1],L=Object(d.useCallback)(function(e){27===e.keyCode?t&&t():e.keyCode},[]);Object(d.useEffect)(function(){return document.addEventListener("keydown",L,!1),function(){document.removeEventListener("keydown",L,!1)}},[]);Object(d.useEffect)(function(){b(void 0!==i)},[i]);return d.createElement("div",{key:g,className:u.item},d.createElement("div",{className:f.newItem},d.createElement(l.a,{canEdit:!0,initialValue:i,focusOnMount:!0,onSave:function(e){c(e)},htmlTag:"span",editOnClick:!0,setCursorOnFocus:"selectAll"})),d.createElement(a.a,{type:"primary",onClick:function(){m&&(r(i),y(Math.random()),c("New item"))}},o||"Save"),d.createElement(a.a,{type:"link",onClick:t},d.createElement(h,{type:"secondary"},d.createElement(s.q,null))))};b(v,"useState{_a(initialValue)}\nuseState{_b(false)}\nuseState{_c(function () { return Math.random(); })}\nuseCallback{keyDown}\nuseEffect{}\nuseEffect{}"),(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(p.register(h,"Text","D:\\code\\schedio\\uic\\src\\dnd-lists\\item\\components\\NewItem.tsx"),p.register(v,"NewItemDefault","D:\\code\\schedio\\uic\\src\\dnd-lists\\item\\components\\NewItem.tsx")),(m="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&m(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";(function(e){var o;r.d(t,"a",function(){return l}),(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var n,a,i=function(){return(i=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},c={id:"id",parentId:"parentId",dataField:"data",childrenField:"children",throwChildrenFieldIfEmpty:!1,throwIfOrphans:!1},d=function(e,t){return t.split(".").reduce(function(e,t){return e[t]},e)};function l(e,t){void 0===t&&(t={});var r=i(i({},c),t),o=[],n={},a=t.throwIfOrphans?new Set:null;if(e)for(var l=function(t){var c,l,s,u=d(t,r.id),f=d(t,r.parentId),p=0===(null===(c=e.filter(function(e){return u===d(e,r.parentId)}))||void 0===c?void 0:c.length);Object.prototype.hasOwnProperty.call(n,u)||(n[u]=((c={})[r.childrenField]=[],c)),a&&a.delete(u),r.dataField?n[u][r.dataField]=t:r.throwChildrenFieldIfEmpty&&p?n[u]=i({},t):n[u]=i(i({},t),((l={})[r.childrenField]=n[u][r.childrenField],l));var m=n[u];null==f||""===f?o.push(m):(Object.prototype.hasOwnProperty.call(n,f)||(n[f]=((s={})[r.childrenField]=[],s),a&&a.add(f)),n[f][r.childrenField].push(m))},s=0,u=e;s<u.length;s++){l(u[s])}if(a&&a.size)throw new Error("The items array contains orphans that point to the following parentIds: ["+Array.from(a)+"]. These parentIds do not exist in the items array. Hint: prevent orphans to result in an error by passing the following option: { throwIfOrphans: false }");return o}(n="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(n.register(i,"__assign","D:\\code\\schedio\\uic\\src\\arrayToTree.ts"),n.register(c,"defaultConfig","D:\\code\\schedio\\uic\\src\\arrayToTree.ts"),n.register(d,"getItemNestedProperty","D:\\code\\schedio\\uic\\src\\arrayToTree.ts"),n.register(l,"arrayToTree","D:\\code\\schedio\\uic\\src\\arrayToTree.ts")),(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&a(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";r.d(t,"a",function(){return o.a}),r.d(t,"c",function(){return n.a}),r.d(t,"b",function(){return a.a});"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var o=r(148),n=r(149),a=r(151);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t){e.exports=require("uuid")},function(e,t){e.exports=require("antd/lib/list")},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return f});var o,n=r(8),a=r.n(n),i=(r(16),r(0)),c=r(56),d=r(189);(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var l,s,u=a.a.Text,f=function(e){var t=e.className,r=e.label,o=e.Link,n=e.onLinkClick,a=e.url;return a?i.createElement(o,{className:t,to:a,onClick:function(){n&&n(a)}},i.createElement(u,{className:d.breadcrumb,type:"secondary"},r)):i.createElement(u,{className:d.breadcrumb,type:"secondary"},r)};f.defaultProps={Link:c.Link},(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(l.register(u,"Text","D:\\code\\schedio\\uic\\src\\breadcrumbs\\Breadcrumb.tsx"),l.register(f,"Breadcrumb","D:\\code\\schedio\\uic\\src\\breadcrumbs\\Breadcrumb.tsx")),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&s(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return x});var o,n=r(1),a=r(158),i=r.n(a),c=(r(172),r(67)),d=r.n(c),l=(r(173),r(8)),s=r.n(l),u=(r(16),r(0)),f=r(56),p=r(45),m=r(26),b=r(193);(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);var h,v,g="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},y=s.a.Text,L=u.createElement(n.RightOutlined,null),x=function(e){var t=e.className,r=e.id,o=e.islinkListLoading,n=e.linkList,a=e.onDropDownClick,c=e.path,l=e.separatorRender||L,s=Object(m.a)(),h=s.active,v=s.toggleOn,g=s.toggleOff,x=void 0!==e.Link?e.Link:f.Link,H=u.createElement(p.a,{className:t,onClick:function(){a&&(a({id:r,url:c}),v()),!a&&n&&v()},active:h},u.createElement(y,{type:"secondary",className:b.separator},l));return(null==n?void 0:n.length)>0?u.createElement(i.a,{onVisibleChange:function(e){e||g()},overlay:u.createElement(d.a,null,o?null:n.map(function(t){return u.createElement(d.a.Item,{key:""+t.url+t.label},u.createElement(x,{to:null==t?void 0:t.url,onClick:function(){return r=t.url,void(e.onLinkClick&&e.onLinkClick(r));var r}},t.label))})),trigger:["click"],visible:h},H):H};g(x,"useToggle{_a}",function(){return[m.a]}),(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(h.register(y,"Text","D:\\code\\schedio\\uic\\src\\breadcrumbs\\Separator.tsx"),h.register(L,"separatorRenderDefault","D:\\code\\schedio\\uic\\src\\breadcrumbs\\Separator.tsx"),h.register(x,"Separator","D:\\code\\schedio\\uic\\src\\breadcrumbs\\Separator.tsx")),(v="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&v(e)}).call(this,r(2)(e))},function(e,t){e.exports=require("antd/lib/avatar")},function(e,t){e.exports=require("antd/lib/checkbox")},function(e,t){e.exports=require("antd/lib/tooltip/style/index.js")},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return p}),r.d(t,"b",function(){return m});var o,n=r(8),a=r.n(n),i=(r(16),r(0));(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var c,d,l=function(){return(l=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},s=a.a.Text,u=a.a.Title,f=function(e,t){var r={children:void 0,events:void 0,id:void 0,index:void 0,isDragging:void 0},o=Object.assign({},e,r),n=Object.assign({},t,r);return JSON.stringify(o)===JSON.stringify(n)},p=i.memo(function(e){return i.createElement("div",{className:"defaultDraggableItem"},e.children)},f),m=i.memo(function(e){var t=e.data,r=parseInt(Math.random().toString(8).substr(2,2),10);return i.createElement(p,l({},e),i.createElement("div",{style:{padding:"12px"}},i.createElement("div",{style:{alignItems:"baseline",width:"100%",display:"flex",justifyContent:"space-between"}},i.createElement(u,{level:3},null==t?void 0:t.title),i.createElement("div",{style:{fontSize:"1.2rem",fontWeight:"bold",color:"red"}},null==t?void 0:t.index),i.createElement(u,{level:4,type:"secondary"},null==t?void 0:t.owner)),i.createElement("div",{style:{alignItems:"baseline",width:"100%",display:"flex",justifyContent:"space-between"}},e.children,i.createElement(s,{type:"secondary"},r))))},f);(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(c.register(l,"__assign","D:\\code\\schedio\\uic\\src\\dnd-lists\\item\\components\\DefaultItem.tsx"),c.register(s,"Text","D:\\code\\schedio\\uic\\src\\dnd-lists\\item\\components\\DefaultItem.tsx"),c.register(u,"Title","D:\\code\\schedio\\uic\\src\\dnd-lists\\item\\components\\DefaultItem.tsx"),c.register(f,"itemPropsAreEqual","D:\\code\\schedio\\uic\\src\\dnd-lists\\item\\components\\DefaultItem.tsx"),c.register(p,"DefaultItem","D:\\code\\schedio\\uic\\src\\dnd-lists\\item\\components\\DefaultItem.tsx"),c.register(m,"DefaultItemWithRenderWatcher","D:\\code\\schedio\\uic\\src\\dnd-lists\\item\\components\\DefaultItem.tsx")),(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&d(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"h",function(){return c}),r.d(t,"a",function(){return d}),r.d(t,"b",function(){return l}),r.d(t,"c",function(){return s}),r.d(t,"g",function(){return u}),r.d(t,"f",function(){return f}),r.d(t,"e",function(){return p}),r.d(t,"d",function(){return m}),r.d(t,"i",function(){return b});var o,n=r(12);(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var a,i,c=function e(t,r){for(var o,n=0;n<r.length;n++){var a=r[n];a.children&&(a.children.some(function(e){return e.value===t})?o=a.value:e(t,a.children)&&(o=e(t,a.children)))}return o},d=function e(t){return t?n.flatMapDeep(t,function(t){return[t,t.children?e(t.children):[]]}):[]},l=function(e,t,r){return void 0===r&&(r=0),e||(e=0),t+""+e.toFixed(r).replace(/\B(?=(\d{3})+(?!\d))/g,",")},s=function(e,t){return e||(e=0),e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")+" "+t},u=function(e,t){return e+"_"+t},f=function(e){return e},p=function(e,t){return{className:f(e),idName:u(e,t)}},m=function(e,t){var r=p(e,t);return{key:r.idName,className:r.className,id:r.idName}},b=function(e){if(e){for(var t=0,r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);var o="#";for(r=0;r<3;r++){o+=("00"+(t>>8*r&255).toString(16)).substr(-2)}return o}return"#ffffff"};(a="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(a.register(c,"getNodeParentKey","D:\\code\\schedio\\uic\\src\\helpers.ts"),a.register(d,"flattenTree","D:\\code\\schedio\\uic\\src\\helpers.ts"),a.register(l,"formatCurrency","D:\\code\\schedio\\uic\\src\\helpers.ts"),a.register(s,"formatWork","D:\\code\\schedio\\uic\\src\\helpers.ts"),a.register(u,"getIdName","D:\\code\\schedio\\uic\\src\\helpers.ts"),a.register(f,"getClassName","D:\\code\\schedio\\uic\\src\\helpers.ts"),a.register(p,"getClassAndIdNames","D:\\code\\schedio\\uic\\src\\helpers.ts"),a.register(m,"getBasicProps","D:\\code\\schedio\\uic\\src\\helpers.ts"),a.register(b,"stringToColour","D:\\code\\schedio\\uic\\src\\helpers.ts")),(i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&i(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return s});var o,n=r(3),a=r.n(n),i=r(0),c=r(191);(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var d,l,s=function(e){var t,r=e.className,o=e.active,n=e.children,d=e.onClick,l=void 0!==o&&o,s=a()(((t={})[c.label]=!0,t[c.labelActive]=l,t[r]=Boolean(r),t));return i.createElement("a",{className:s,onClick:d},n)};(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(d.register(!1,"activeDefault","D:\\code\\schedio\\uic\\src\\buttons\\ButtonLabel.tsx"),d.register(s,"ButtonLabel","D:\\code\\schedio\\uic\\src\\buttons\\ButtonLabel.tsx")),(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&l(e)}).call(this,r(2)(e))},function(e,t,r){"use strict";var o=r(89);r.d(t,"a",function(){return o.a});"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,r){"use strict";var o=r(90);r.d(t,"a",function(){return o.a});"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return s}),r.d(t,"b",function(){return u});var o,n=r(160),a=r.n(n),i=r(161),c=r.n(i);r(174);(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var d,l,s=c()(a.a),u=function(