!function(n){function h(t){for(var u,r,l=t[0],e=t[1],a=t[2],o=0,h=[];o<l.length;o++)r=l[o],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&h.push(i[r][0]),i[r]=0;for(u in e)Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=e[u]);for(s&&s(t);h.length;)h.shift()();return f.push.apply(f,a||[]),c()}function c(){for(var e,s,n=0;n<f.length;n++){for(var r=f[n],o=!0,u=1;u<r.length;u++)s=r[u],0!==i[s]&&(o=!1);o&&(f.splice(n--,1),e=t(t.s=r[0]))}return e}function t(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return n[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var e={},u={main:0},i={main:0},f=[],r,l,o,s;for(t.e=function(n){var o=[],f,h,s,r,e,c;return u[n]?o.push(u[n]):0!==u[n]&&{monaco:1,scheduler:1,sfcommons:1,sfdiagram:1,sfgantt:1}[n]&&o.push(u[n]=new Promise(function(i,r){for(var o,l,h,f,c="../css/"+n+".css",s=t.p+c,a=document.getElementsByTagName("link"),e=0;e<a.length;e++)if(o=(h=a[e]).getAttribute("data-href")||h.getAttribute("href"),"stylesheet"===h.rel&&(o===c||o===s))return i();for(l=document.getElementsByTagName("style"),e=0;e<l.length;e++)if((o=(h=l[e]).getAttribute("data-href"))===c||o===s)return i();f=document.createElement("link");f.rel="stylesheet";f.type="text/css";f.onload=i;f.onerror=function(t){var e=t&&t.target&&t.target.src||s,i=new Error("Loading CSS chunk "+n+" failed.\n("+e+")");i.code="CSS_CHUNK_LOAD_FAILED";i.request=e;delete u[n];f.parentNode.removeChild(f);r(i)};f.href=s;document.getElementsByTagName("head")[0].appendChild(f)}).then(function(){u[n]=0})),f=i[n],0!==f&&(f?o.push(f[2]):(h=new Promise(function(t,r){f=i[n]=[t,r]}),o.push(f[2]=h),r=document.createElement("script"),r.charset="utf-8",r.timeout=120,t.nc&&r.setAttribute("nonce",t.nc),r.src=function(n){return t.p+""+n+".201014.js"}(n),e=new Error,s=function(t){var u,f,o;r.onerror=r.onload=null;clearTimeout(c);u=i[n];0!==u&&(u&&(f=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src,e.message="Loading chunk "+n+" failed.\n("+f+": "+o+")",e.name="ChunkLoadError",e.type=f,e.request=o,u[1](e)),i[n]=void 0)},c=setTimeout(function(){s({type:"timeout",target:r})},12e4),r.onerror=r.onload=s,document.head.appendChild(r))),Promise.all(o)},t.m=n,t.c=e,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){var r,u;if((1&i&&(n=t(n)),8&i)||4&i&&"object"==typeof n&&n&&n.__esModule)return n;if(r=Object.create(null),t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&i&&"string"!=typeof n)for(u in n)t.d(r,u,function(t){return n[t]}.bind(null,u));return r},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="/Dist/scripts/",t.oe=function(n){throw console.error(n),n;},r=window.webpackJsonp=window.webpackJsonp||[],l=r.push.bind(r),r.push=h,r=r.slice(),o=0;o<r.length;o++)h(r[o]);s=l;f.push([559,"vendors"]);c()}([function(n,t,i){"use strict";var ot,st,ht,ct,lt,at,vt,yt,pt,wt,bt,kt,dt,gt,ni,ti,ii,ri,ui,fi,ei,oi,si,hi,ci,li,ai,y,vi,yi,pi,wi,bi,ki,di,gi,nr,tr,ir,rr,ur,b,fr,er,or,sr,hr,cr,lr,ar,vr,yr,pr,wr,br,k,kr,dr,gr,nu,tu,iu,ru,uu,fu,eu,ou,su,hu,cu,lu,au,vu,yu,pu,wu,bu,ku,du,gu,nf,d,tf,rf,uf,ff,ef,of,sf,hf,cf,lf,af,vf,yf,pf,wf,bf,kf,df,gf,ne,te,l,r,g,ie,re,ue,fe,ee,oe,se,he,ce,le,ae,ve,ye,pe,we,be,ke,de,ge,no,to,io,ro,uo,fo,eo,oo,so,ho,co,lo,ao,vo,yo,po,wo,bo,a,ko,go,u,ns,ts,is,rs,us,fs,es,os,ss,hs,cs,ls,as,vs,nt,ys,ps,ws,bs,ks,ds,gs,nh,th,ih,rh,uh,fh,eh,oh,sh,hh,ch,lh,ah,vh,yh,ph,wh,bh,kh,dh,gh,nc,tc,ic,rc,uc,fc,ec,oc,f,sc,hc,cc,lc,ac,vc,yc,pc,wc,bc,kc,dc,gc,nl,tl,il,rl,ul,fl,el,ol,sl,hl,cl,ll,al,e,vl,yl,tt,pl,wl,bl,kl,dl,gl,na,ta,ia,ra,ua,fa,ea,oa,sa,ha,o,ca,la,aa,va,ya,pa,wa,ba,ka,da,ga,nv,tv,iv,rv,uv,fv,ev,ov,sv,hv,cv,lv,av,vv,yv,pv,wv,bv,kv,dv,gv,ny,ty,iy,it,ry,uy,fy,ey,oy,sy,v,hy,cy,ly,ay,vy,yy,py,wy,by,ky,dy,gy,np,rt,tp,ip,rp,up,fp,ep,op,sp,hp,cp,lp,ap,vp,yp,pp,wp,s,bp,kp,dp,gp,nw,tw,iw,rw,uw,fw,ew,ow,sw,hw,cw,lw,aw,vw,yw,pw,ww,bw,kw,dw,gw,nb,tb,ib,rb,ut,ub,fb,eb,p,ob,sb,hb,cb,lb,ab,vb,yb,pb,wb,bb,kb,db,gb,nk,tk,ik,rk,uk,fk,ek,ok,sk,hk,ck,lk,ak,vk,yk,pk,wk,w,bk,kk,dk,gk,nd,h,td,id,rd,ud,fd,ed,od,sd,hd,ft,et,cd,ld,c,ad,vd;i(134);i(135);ot=i(136);i.d(t,"ControlEventListener",function(){return ot.a});st=i(71);i.d(t,"ControlBase",function(){return st.a});ht=i(137);i.d(t,"TooltipBase",function(){return ht.a});ct=i(138);i.d(t,"BaseKeyNavigator",function(){return ct.a});lt=i(139);i.d(t,"ComponentKeyNavigator",function(){return lt.a});at=i(140);i.d(t,"ControlKeyNavigator",function(){return at.a});vt=i(141);i.d(t,"EditorKeyNavigator",function(){return vt.a});yt=i(142);i.d(t,"LookupBaseMouseNavigator",function(){return yt.a});pt=i(143);i.d(t,"ButtonKeyNavigator",function(){return pt.a});wt=i(144);i.d(t,"CheckBoxKeyNavigator",function(){return wt.a});bt=i(145);i.d(t,"ColorPickerMouseNavigator",function(){return bt.a});kt=i(146);i.d(t,"CommandToggleKeyNavigator",function(){return kt.a});dt=i(147);i.d(t,"DatePickerKeyNavigator",function(){return dt.a});gt=i(148);i.d(t,"DatePickerMouseNavigator",function(){return gt.a});ni=i(149);i.d(t,"DictionaryMouseNavigator",function(){return ni.a});ti=i(150);i.d(t,"DomTreeWalker",function(){return ti.a});ii=i(151);i.d(t,"KeyboardDomTreeWalker",function(){return ii.a});ri=i(152);i.d(t,"MouseDomTreeWalker",function(){return ri.a});ui=i(153);i.d(t,"SimpleKeyboardDomTreeWalker",function(){return ui.a});fi=i(154);i.d(t,"SignInKeyboardDomTreeWalker",function(){return fi.a});ei=i(155);i.d(t,"EipEventProps",function(){return ei.a});oi=i(156);i.d(t,"InitiatorEventProps",function(){return oi.a});si=i(157);i.d(t,"KeyboardController",function(){return si.a});hi=i(158);i.d(t,"KeyboardEventProps",function(){return hi.a});ci=i(159);i.d(t,"LookupKeyNavigator",function(){return ci.a});li=i(160);i.d(t,"LookupMouseNavigator",function(){return li.a});ai=i(161);i.d(t,"MouseEventProps",function(){return ai.a});y=i(162);i.d(t,"CodeKeyNavigator",function(){return y.a});i.d(t,"MemoTextKeyNavigator",function(){return y.b});i.d(t,"RichTextKeyNavigator",function(){return y.c});vi=i(163);i.d(t,"RadioButtonKeyNavigator",function(){return vi.a});yi=i(164);i.d(t,"SimpleKeyboardController",function(){return yi.a});pi=i(165);i.d(t,"ThemePickerMouseNavigator",function(){return pi.a});wi=i(166);i.d(t,"TimePickerKeyNavigator",function(){return wi.a});bi=i(167);i.d(t,"EditorBase",function(){return bi.a});ki=i(168);i.d(t,"EditorText",function(){return ki.a});di=i(169);i.d(t,"EditorCheckBox",function(){return di.a});gi=i(170);i.d(t,"EditorCheckBoxPremium",function(){return gi.a});nr=i(171);i.d(t,"EditorCode",function(){return nr.a});tr=i(172);i.d(t,"EditorHtml",function(){return tr.a});ir=i(173);i.d(t,"EditorMemoText",function(){return ir.a});rr=i(174);i.d(t,"EditorPlaceholder",function(){return rr.a});ur=i(175);i.d(t,"EditorRadioButton",function(){return ur.a});b=i(176);i.d(t,"EditorRangeSlider",function(){return b.a});i.d(t,"RangeSliderMode",function(){return b.b});fr=i(177);i.d(t,"EditorRating",function(){return fr.a});er=i(178);i.d(t,"EditorRichText",function(){return er.a});or=i(179);i.d(t,"EditorSaveFile",function(){return or.a});sr=i(180);i.d(t,"EditorSignature",function(){return sr.a});hr=i(181);i.d(t,"EditorStopwatch",function(){return hr.a});i(182);cr=i(183);i.d(t,"BaseAuthPanel",function(){return cr.a});lr=i(184);i.d(t,"Bar",function(){return lr.a});ar=i(185);i.d(t,"BaseBar",function(){return ar.a});vr=i(186);i.d(t,"FloatingBar",function(){return vr.a});yr=i(187);i.d(t,"MenuBar",function(){return yr.a});pr=i(188);i.d(t,"NavigationBar",function(){return pr.a});wr=i(189);i.d(t,"SecondHeaderBar",function(){return wr.a});br=i(190);i.d(t,"TopBar",function(){return br.a});k=i(191);i.d(t,"BookmarkBase",function(){return k.a});i.d(t,"IBookmarksElement",function(){return k.b});kr=i(192);i.d(t,"Bookmark",function(){return kr.a});dr=i(193);i.d(t,"BookmarkBar",function(){return dr.a});gr=i(194);i.d(t,"BookmarkNew",function(){return gr.a});nu=i(195);i.d(t,"Carousel",function(){return nu.a});tu=i(196);i.d(t,"Chart",function(){return tu.a});iu=i(197);i.d(t,"ColorPicker",function(){return iu.a});ru=i(198);i.d(t,"ColorPickerContent",function(){return ru.a});uu=i(199);i.d(t,"CommandBase",function(){return uu.a});fu=i(200);i.d(t,"Button",function(){return fu.a});eu=i(201);i.d(t,"ClickableElement",function(){return eu.a});ou=i(202);i.d(t,"Command",function(){return ou.a});su=i(203);i.d(t,"CommandAttachTo",function(){return su.a});hu=i(204);i.d(t,"CommandDashboardBase",function(){return hu.a});cu=i(205);i.d(t,"CommandDashboard",function(){return cu.a});lu=i(206);i.d(t,"CommandDashboardMobile",function(){return lu.a});au=i(207);i.d(t,"CommandFloatingBar",function(){return au.a});vu=i(208);i.d(t,"CommandGroupItem",function(){return vu.a});yu=i(209);i.d(t,"CommandList",function(){return yu.a});pu=i(210);i.d(t,"CommandModal",function(){return pu.a});wu=i(211);i.d(t,"LogoutCommandNavigationBar",function(){return wu.a});bu=i(212);i.d(t,"CommandPopup",function(){return bu.a});ku=i(213);i.d(t,"CommandReminder",function(){return ku.a});du=i(214);i.d(t,"CommandSecondHeaderBar",function(){return du.a});gu=i(215);i.d(t,"CommandToggle",function(){return gu.a});nf=i(216);i.d(t,"CommandTopBar",function(){return nf.a});d=i(217);i.d(t,"CursorPos",function(){return d.a});i.d(t,"Ripple",function(){return d.b});tf=i(218);i.d(t,"TileDashboardMobile",function(){return tf.a});rf=i(219);i.d(t,"CommandClickEventArgs",function(){return rf.a});uf=i(220);i.d(t,"ControlFactory",function(){return uf.a});ff=i(221);i.d(t,"AreaRect",function(){return ff.a});ef=i(222);i.d(t,"DashboardGrid",function(){return ef.a});of=i(223);i.d(t,"DashboardItem",function(){return of.a});sf=i(224);i.d(t,"DashboardItemDesign",function(){return sf.a});hf=i(225);i.d(t,"Point",function(){return hf.a});cf=i(226);i.d(t,"Size",function(){return cf.a});lf=i(227);i.d(t,"DatePicker",function(){return lf.a});af=i(228);i.d(t,"DatePickerButton",function(){return af.a});vf=i(229);i.d(t,"DatePickerButtons",function(){return vf.a});yf=i(230);i.d(t,"DatePickerCalendarBase",function(){return yf.a});pf=i(231);i.d(t,"DatePickerCalendar",function(){return pf.a});wf=i(232);i.d(t,"DatePickerContent",function(){return wf.a});bf=i(233);i.d(t,"DatePickerHeader",function(){return bf.a});kf=i(234);i.d(t,"DatePickerNavigation",function(){return kf.a});df=i(235);i.d(t,"DatePickerYearMonthContent",function(){return df.a});gf=i(236);i.d(t,"FastNavigation",function(){return gf.a});ne=i(555);i.d(t,"Diagram",function(){return ne.a});te=i(237);i.d(t,"DiagramPalette",function(){return te.a});l=i(238);i.d(t,"CollectionChangeState",function(){return l.a});i.d(t,"CollectionChangeType",function(){return l.b});i.d(t,"ConnectionChangeState",function(){return l.c});i.d(t,"ConnectorType",function(){return l.d});i.d(t,"DiagramConstraints",function(){return l.e});i.d(t,"DiagramElementType",function(){return l.f});i.d(t,"DiagramFieldMapping",function(){return l.g});i.d(t,"PortConstraints",function(){return l.h});i.d(t,"PortVisibility",function(){return l.i});i.d(t,"PositionChangeState",function(){return l.j});i.d(t,"ShapeGroup",function(){return l.k});i.d(t,"ShapeType",function(){return l.l});i.d(t,"SizeChangeState",function(){return l.m});i.d(t,"SwimLaneHeaderOrientation",function(){return l.n});i.d(t,"TaskType",function(){return l.o});i(18);r=i(239);i.o(r,"AdfsInfoPage")&&i.d(t,"AdfsInfoPage",function(){return r.AdfsInfoPage});i.o(r,"AnchorPosition")&&i.d(t,"AnchorPosition",function(){return r.AnchorPosition});i.o(r,"App")&&i.d(t,"App",function(){return r.App});i.o(r,"AppearancePalette")&&i.d(t,"AppearancePalette",function(){return r.AppearancePalette});i.o(r,"Assert")&&i.d(t,"Assert",function(){return r.Assert});i.o(r,"AssertError")&&i.d(t,"AssertError",function(){return r.AssertError});i.o(r,"AttachmentUrlHelper")&&i.d(t,"AttachmentUrlHelper",function(){return r.AttachmentUrlHelper});i.o(r,"Base64")&&i.d(t,"Base64",function(){return r.Base64});i.o(r,"BaseElement")&&i.d(t,"BaseElement",function(){return r.BaseElement});i.o(r,"BaseHomePage")&&i.d(t,"BaseHomePage",function(){return r.BaseHomePage});i.o(r,"BasePage")&&i.d(t,"BasePage",function(){return r.BasePage});i.o(r,"BaseScroll")&&i.d(t,"BaseScroll",function(){return r.BaseScroll});i.o(r,"BiGroup")&&i.d(t,"BiGroup",function(){return r.BiGroup});i.o(r,"BrowserInfoPage")&&i.d(t,"BrowserInfoPage",function(){return r.BrowserInfoPage});i.o(r,"ColorHelper")&&i.d(t,"ColorHelper",function(){return r.ColorHelper});i.o(r,"CommandData")&&i.d(t,"CommandData",function(){return r.CommandData});i.o(r,"Constants")&&i.d(t,"Constants",function(){return r.Constants});i.o(r,"CookieBox")&&i.d(t,"CookieBox",function(){return r.CookieBox});i.o(r,"CookieHelper")&&i.d(t,"CookieHelper",function(){return r.CookieHelper});i.o(r,"CookieInfoPage")&&i.d(t,"CookieInfoPage",function(){return r.CookieInfoPage});i.o(r,"Credentials")&&i.d(t,"Credentials",function(){return r.Credentials});i.o(r,"CredentialsAdfs")&&i.d(t,"CredentialsAdfs",function(){return r.CredentialsAdfs});i.o(r,"CredentialsImpersonate")&&i.d(t,"CredentialsImpersonate",function(){return r.CredentialsImpersonate});i.o(r,"CredentialsLink")&&i.d(t,"CredentialsLink",function(){return r.CredentialsLink});i.o(r,"CredentialsLogin")&&i.d(t,"CredentialsLogin",function(){return r.CredentialsLogin});i.o(r,"DOMHelper")&&i.d(t,"DOMHelper",function(){return r.DOMHelper});i.o(r,"DataElement")&&i.d(t,"DataElement",function(){return r.DataElement});i.o(r,"DateHelper")&&i.d(t,"DateHelper",function(){return r.DateHelper});i.o(r,"DbInfoPage")&&i.d(t,"DbInfoPage",function(){return r.DbInfoPage});i.o(r,"DecodeUri")&&i.d(t,"DecodeUri",function(){return r.DecodeUri});i.o(r,"Describer")&&i.d(t,"Describer",function(){return r.Describer});i.o(r,"DeviceType")&&i.d(t,"DeviceType",function(){return r.DeviceType});i.o(r,"DiagramLoader")&&i.d(t,"DiagramLoader",function(){return r.DiagramLoader});i.o(r,"Dialog")&&i.d(t,"Dialog",function(){return r.Dialog});i.o(r,"DialogCommand")&&i.d(t,"DialogCommand",function(){return r.DialogCommand});i.o(r,"DialogCommandBar")&&i.d(t,"DialogCommandBar",function(){return r.DialogCommandBar});i.o(r,"DialogData")&&i.d(t,"DialogData",function(){return r.DialogData});i.o(r,"DialogKeyNavigator")&&i.d(t,"DialogKeyNavigator",function(){return r.DialogKeyNavigator});i.o(r,"DialogType")&&i.d(t,"DialogType",function(){return r.DialogType});i.o(r,"Dictionary")&&i.d(t,"Dictionary",function(){return r.Dictionary});i.o(r,"DictionaryContent")&&i.d(t,"DictionaryContent",function(){return r.DictionaryContent});i.o(r,"DictionaryEx")&&i.d(t,"DictionaryEx",function(){return r.DictionaryEx});i.o(r,"EditCombo")&&i.d(t,"EditCombo",function(){return r.EditCombo});i.o(r,"EditDictionary")&&i.d(t,"EditDictionary",function(){return r.EditDictionary});i.o(r,"EditLookup")&&i.d(t,"EditLookup",function(){return r.EditLookup});i.o(r,"ErrorPage")&&i.d(t,"ErrorPage",function(){return r.ErrorPage});i.o(r,"EventListenerRegistrar")&&i.d(t,"EventListenerRegistrar",function(){return r.EventListenerRegistrar});i.o(r,"EventSet")&&i.d(t,"EventSet",function(){return r.EventSet});i.o(r,"FactoryNavigationMenuSource")&&i.d(t,"FactoryNavigationMenuSource",function(){return r.FactoryNavigationMenuSource});i.o(r,"FactorySlideMenuSource")&&i.d(t,"FactorySlideMenuSource",function(){return r.FactorySlideMenuSource});i.o(r,"FeatureBarElement")&&i.d(t,"FeatureBarElement",function(){return r.FeatureBarElement});i.o(r,"FeatureElement")&&i.d(t,"FeatureElement",function(){return r.FeatureElement});i.o(r,"FeaturesBar")&&i.d(t,"FeaturesBar",function(){return r.FeaturesBar});i.o(r,"FieldBase")&&i.d(t,"FieldBase",function(){return r.FieldBase});i.o(r,"FieldCheckBox")&&i.d(t,"FieldCheckBox",function(){return r.FieldCheckBox});i.o(r,"FieldCheckBoxPremium")&&i.d(t,"FieldCheckBoxPremium",function(){return r.FieldCheckBoxPremium});i.o(r,"FieldCodeEdit")&&i.d(t,"FieldCodeEdit",function(){return r.FieldCodeEdit});i.o(r,"FieldColor")&&i.d(t,"FieldColor",function(){return r.FieldColor});i.o(r,"FieldCombo")&&i.d(t,"FieldCombo",function(){return r.FieldCombo});i.o(r,"FieldContact")&&i.d(t,"FieldContact",function(){return r.FieldContact});i.o(r,"FieldData")&&i.d(t,"FieldData",function(){return r.FieldData});i.o(r,"FieldDate")&&i.d(t,"FieldDate",function(){return r.FieldDate});i.o(r,"FieldDictionary")&&i.d(t,"FieldDictionary",function(){return r.FieldDictionary});i.o(r,"FieldEmail")&&i.d(t,"FieldEmail",function(){return r.FieldEmail});i.o(r,"FieldFileUpload")&&i.d(t,"FieldFileUpload",function(){return r.FieldFileUpload});i.o(r,"FieldGsm")&&i.d(t,"FieldGsm",function(){return r.FieldGsm});i.o(r,"FieldHyperlink")&&i.d(t,"FieldHyperlink",function(){return r.FieldHyperlink});i.o(r,"FieldImage")&&i.d(t,"FieldImage",function(){return r.FieldImage});i.o(r,"FieldInput")&&i.d(t,"FieldInput",function(){return r.FieldInput});i.o(r,"FieldLocator")&&i.d(t,"FieldLocator",function(){return r.FieldLocator});i.o(r,"FieldLookup")&&i.d(t,"FieldLookup",function(){return r.FieldLookup});i.o(r,"FieldLookupBase")&&i.d(t,"FieldLookupBase",function(){return r.FieldLookupBase});i.o(r,"FieldMemoText")&&i.d(t,"FieldMemoText",function(){return r.FieldMemoText});i.o(r,"FieldPhone")&&i.d(t,"FieldPhone",function(){return r.FieldPhone});i.o(r,"FieldRadioButton")&&i.d(t,"FieldRadioButton",function(){return r.FieldRadioButton});i.o(r,"FieldRangeSlider")&&i.d(t,"FieldRangeSlider",function(){return r.FieldRangeSlider});i.o(r,"FieldRating")&&i.d(t,"FieldRating",function(){return r.FieldRating});i.o(r,"FieldRichEdit")&&i.d(t,"FieldRichEdit",function(){return r.FieldRichEdit});i.o(r,"FieldSaveFile")&&i.d(t,"FieldSaveFile",function(){return r.FieldSaveFile});i.o(r,"FieldSignature")&&i.d(t,"FieldSignature",function(){return r.FieldSignature});i.o(r,"FieldSkype")&&i.d(t,"FieldSkype",function(){return r.FieldSkype});i.o(r,"FieldStopwatch")&&i.d(t,"FieldStopwatch",function(){return r.FieldStopwatch});i.o(r,"FieldTextRight")&&i.d(t,"FieldTextRight",function(){return r.FieldTextRight});i.o(r,"FieldTime")&&i.d(t,"FieldTime",function(){return r.FieldTime});i.o(r,"FieldYearMonth")&&i.d(t,"FieldYearMonth",function(){return r.FieldYearMonth});i.o(r,"FilterGroup")&&i.d(t,"FilterGroup",function(){return r.FilterGroup});i.o(r,"FireCustomFocus")&&i.d(t,"FireCustomFocus",function(){return r.FireCustomFocus});i.o(r,"FolderData")&&i.d(t,"FolderData",function(){return r.FolderData});i.o(r,"FolderWindow")&&i.d(t,"FolderWindow",function(){return r.FolderWindow});i.o(r,"FormEditInPlace")&&i.d(t,"FormEditInPlace",function(){return r.FormEditInPlace});i.o(r,"FormView")&&i.d(t,"FormView",function(){return r.FormView});i.o(r,"FormWindow")&&i.d(t,"FormWindow",function(){return r.FormWindow});i.o(r,"FrameWindow")&&i.d(t,"FrameWindow",function(){return r.FrameWindow});i.o(r,"Gantt")&&i.d(t,"Gantt",function(){return r.Gantt});i.o(r,"GanttData")&&i.d(t,"GanttData",function(){return r.GanttData});i.o(r,"GanttFieldMapping")&&i.d(t,"GanttFieldMapping",function(){return r.GanttFieldMapping});i.o(r,"GanttLoader")&&i.d(t,"GanttLoader",function(){return r.GanttLoader});i.o(r,"GanttSourceFactory")&&i.d(t,"GanttSourceFactory",function(){return r.GanttSourceFactory});i.o(r,"GetDeviceInfo")&&i.d(t,"GetDeviceInfo",function(){return r.GetDeviceInfo});i.o(r,"GetIgnoreNextHashChanging")&&i.d(t,"GetIgnoreNextHashChanging",function(){return r.GetIgnoreNextHashChanging});i.o(r,"GetLink")&&i.d(t,"GetLink",function(){return r.GetLink});i.o(r,"GetValueFormNode")&&i.d(t,"GetValueFormNode",function(){return r.GetValueFormNode});i.o(r,"GlobalSettings")&&i.d(t,"GlobalSettings",function(){return r.GlobalSettings});i.o(r,"GridBarCommand")&&i.d(t,"GridBarCommand",function(){return r.GridBarCommand});i.o(r,"GridBarGroup")&&i.d(t,"GridBarGroup",function(){return r.GridBarGroup});i.o(r,"GridBase")&&i.d(t,"GridBase",function(){return r.GridBase});i.o(r,"GridBrowser")&&i.d(t,"GridBrowser",function(){return r.GridBrowser});i.o(r,"GridCanvas")&&i.d(t,"GridCanvas",function(){return r.GridCanvas});i.o(r,"GridColumnBase")&&i.d(t,"GridColumnBase",function(){return r.GridColumnBase});i.o(r,"GridColumnCheckBox")&&i.d(t,"GridColumnCheckBox",function(){return r.GridColumnCheckBox});i.o(r,"GridColumnColor")&&i.d(t,"GridColumnColor",function(){return r.GridColumnColor});i.o(r,"GridColumnColorStatus")&&i.d(t,"GridColumnColorStatus",function(){return r.GridColumnColorStatus});i.o(r,"GridColumnEipContent")&&i.d(t,"GridColumnEipContent",function(){return r.GridColumnEipContent});i.o(r,"GridColumnFrozen")&&i.d(t,"GridColumnFrozen",function(){return r.GridColumnFrozen});i.o(r,"GridColumnGroupingSum")&&i.d(t,"GridColumnGroupingSum",function(){return r.GridColumnGroupingSum});i.o(r,"GridColumnIcon")&&i.d(t,"GridColumnIcon",function(){return r.GridColumnIcon});i.o(r,"GridColumnImage")&&i.d(t,"GridColumnImage",function(){return r.GridColumnImage});i.o(r,"GridColumnSelectAll")&&i.d(t,"GridColumnSelectAll",function(){return r.GridColumnSelectAll});i.o(r,"GridColumnSelectBase")&&i.d(t,"GridColumnSelectBase",function(){return r.GridColumnSelectBase});i.o(r,"GridColumnSelectRow")&&i.d(t,"GridColumnSelectRow",function(){return r.GridColumnSelectRow});i.o(r,"GridColumnSum")&&i.d(t,"GridColumnSum",function(){return r.GridColumnSum});i.o(r,"GridColumnText")&&i.d(t,"GridColumnText",function(){return r.GridColumnText});i.o(r,"GridContentBuilderBase")&&i.d(t,"GridContentBuilderBase",function(){return r.GridContentBuilderBase});i.o(r,"GridContentBuilderBrowser")&&i.d(t,"GridContentBuilderBrowser",function(){return r.GridContentBuilderBrowser});i.o(r,"GridContentBuilderMobile")&&i.d(t,"GridContentBuilderMobile",function(){return r.GridContentBuilderMobile});i.o(r,"GridData")&&i.d(t,"GridData",function(){return r.GridData});i.o(r,"GridDataElementExtender")&&i.d(t,"GridDataElementExtender",function(){return r.GridDataElementExtender});i.o(r,"GridEipExtender")&&i.d(t,"GridEipExtender",function(){return r.GridEipExtender});i.o(r,"GridFooter")&&i.d(t,"GridFooter",function(){return r.GridFooter});i.o(r,"GridHeader")&&i.d(t,"GridHeader",function(){return r.GridHeader});i.o(r,"GridHeaderColumn")&&i.d(t,"GridHeaderColumn",function(){return r.GridHeaderColumn});i.o(r,"GridHeaderColumnResizer")&&i.d(t,"GridHeaderColumnResizer",function(){return r.GridHeaderColumnResizer});i.o(r,"GridHeaderColumns")&&i.d(t,"GridHeaderColumns",function(){return r.GridHeaderColumns});i.o(r,"GridHeaderFilter")&&i.d(t,"GridHeaderFilter",function(){return r.GridHeaderFilter});i.o(r,"GridHeaderFilters")&&i.d(t,"GridHeaderFilters",function(){return r.GridHeaderFilters});i.o(r,"GridKeyNavigator")&&i.d(t,"GridKeyNavigator",function(){return r.GridKeyNavigator});i.o(r,"GridLocator")&&i.d(t,"GridLocator",function(){return r.GridLocator});i.o(r,"GridMobile")&&i.d(t,"GridMobile",function(){return r.GridMobile});i.o(r,"GridMultiHeaderColumns")&&i.d(t,"GridMultiHeaderColumns",function(){return r.GridMultiHeaderColumns});i.o(r,"GridPatternHelper")&&i.d(t,"GridPatternHelper",function(){return r.GridPatternHelper});i.o(r,"GridRowBase")&&i.d(t,"GridRowBase",function(){return r.GridRowBase});i.o(r,"GridRowBuilderBase")&&i.d(t,"GridRowBuilderBase",function(){return r.GridRowBuilderBase});i.o(r,"GridRowBuilderBrowser")&&i.d(t,"GridRowBuilderBrowser",function(){return r.GridRowBuilderBrowser});i.o(r,"GridRowBuilderMobile")&&i.d(t,"GridRowBuilderMobile",function(){return r.GridRowBuilderMobile});i.o(r,"GridRowEmptyContent")&&i.d(t,"GridRowEmptyContent",function(){return r.GridRowEmptyContent});i.o(r,"GridRowFooterSum")&&i.d(t,"GridRowFooterSum",function(){return r.GridRowFooterSum});i.o(r,"GridRowGrouping")&&i.d(t,"GridRowGrouping",function(){return r.GridRowGrouping});i.o(r,"GridRowGroupingSum")&&i.d(t,"GridRowGroupingSum",function(){return r.GridRowGroupingSum});i.o(r,"GridRowLoadMore")&&i.d(t,"GridRowLoadMore",function(){return r.GridRowLoadMore});i.o(r,"GridRowLocator")&&i.d(t,"GridRowLocator",function(){return r.GridRowLocator});i.o(r,"GridRowNew")&&i.d(t,"GridRowNew",function(){return r.GridRowNew});i.o(r,"GridRowNonOptimal")&&i.d(t,"GridRowNonOptimal",function(){return r.GridRowNonOptimal});i.o(r,"GridRowNormal")&&i.d(t,"GridRowNormal",function(){return r.GridRowNormal});i.o(r,"GridRowPlaceholder")&&i.d(t,"GridRowPlaceholder",function(){return r.GridRowPlaceholder});i.o(r,"GridRowSpecial")&&i.d(t,"GridRowSpecial",function(){return r.GridRowSpecial});i.o(r,"GridScroll")&&i.d(t,"GridScroll",function(){return r.GridScroll});i.o(r,"GridSelectionExtender")&&i.d(t,"GridSelectionExtender",function(){return r.GridSelectionExtender});i.o(r,"GridViewPort")&&i.d(t,"GridViewPort",function(){return r.GridViewPort});i.o(r,"Group")&&i.d(t,"Group",function(){return r.Group});i.o(r,"GroupBase")&&i.d(t,"GroupBase",function(){return r.GroupBase});i.o(r,"GroupMenu")&&i.d(t,"GroupMenu",function(){return r.GroupMenu});i.o(r,"Guid")&&i.d(t,"Guid",function(){return r.Guid});i.o(r,"HashHelper")&&i.d(t,"HashHelper",function(){return r.HashHelper});i.o(r,"HeaderBarBrowser")&&i.d(t,"HeaderBarBrowser",function(){return r.HeaderBarBrowser});i.o(r,"HeaderBarCommand")&&i.d(t,"HeaderBarCommand",function(){return r.HeaderBarCommand});i.o(r,"HeaderBarKeyNavigator")&&i.d(t,"HeaderBarKeyNavigator",function(){return r.HeaderBarKeyNavigator});i.o(r,"HeaderBarMobile")&&i.d(t,"HeaderBarMobile",function(){return r.HeaderBarMobile});i.o(r,"Html")&&i.d(t,"Html",function(){return r.Html});i.o(r,"Image")&&i.d(t,"Image",function(){return r.Image});i.o(r,"ImageControlView")&&i.d(t,"ImageControlView",function(){return r.ImageControlView});i.o(r,"ImpersonateInfoPage")&&i.d(t,"ImpersonateInfoPage",function(){return r.ImpersonateInfoPage});i.o(r,"Include")&&i.d(t,"Include",function(){return r.Include});i.o(r,"Indicator")&&i.d(t,"Indicator",function(){return r.Indicator});i.o(r,"IndicatorPremium")&&i.d(t,"IndicatorPremium",function(){return r.IndicatorPremium});i.o(r,"IndicatorPremiumDashboard")&&i.d(t,"IndicatorPremiumDashboard",function(){return r.IndicatorPremiumDashboard});i.o(r,"InfiniteScroll")&&i.d(t,"InfiniteScroll",function(){return r.InfiniteScroll});i.o(r,"IpInfoPage")&&i.d(t,"IpInfoPage",function(){return r.IpInfoPage});i.o(r,"IsDebug")&&i.d(t,"IsDebug",function(){return r.IsDebug});i.o(r,"JoditLoader")&&i.d(t,"JoditLoader",function(){return r.JoditLoader});i.o(r,"KeyPressInject")&&i.d(t,"KeyPressInject",function(){return r.KeyPressInject});i.o(r,"KeyShortcut")&&i.d(t,"KeyShortcut",function(){return r.KeyShortcut});i.o(r,"Label")&&i.d(t,"Label",function(){return r.Label});i.o(r,"LanguageConstants")&&i.d(t,"LanguageConstants",function(){return r.LanguageConstants});i.o(r,"LibraryLoader")&&i.d(t,"LibraryLoader",function(){return r.LibraryLoader});i.o(r,"Loader")&&i.d(t,"Loader",function(){return r.Loader});i.o(r,"Location")&&i.d(t,"Location",function(){return r.Location});i.o(r,"LogOffInfoPage")&&i.d(t,"LogOffInfoPage",function(){return r.LogOffInfoPage});i.o(r,"LogOffPage")&&i.d(t,"LogOffPage",function(){return r.LogOffPage});i.o(r,"Login")&&i.d(t,"Login",function(){return r.Login});i.o(r,"LoginAdfsPage")&&i.d(t,"LoginAdfsPage",function(){return r.LoginAdfsPage});i.o(r,"LoginImpersonate")&&i.d(t,"LoginImpersonate",function(){return r.LoginImpersonate});i.o(r,"LookupBase")&&i.d(t,"LookupBase",function(){return r.LookupBase});i.o(r,"LookupContent")&&i.d(t,"LookupContent",function(){return r.LookupContent});i.o(r,"LookupHeader")&&i.d(t,"LookupHeader",function(){return r.LookupHeader});i.o(r,"LookupRowElement")&&i.d(t,"LookupRowElement",function(){return r.LookupRowElement});i.o(r,"LookupRowSpecial")&&i.d(t,"LookupRowSpecial",function(){return r.LookupRowSpecial});i.o(r,"MenuKeyNavigatorBase")&&i.d(t,"MenuKeyNavigatorBase",function(){return r.MenuKeyNavigatorBase});i.o(r,"MergeRecursive")&&i.d(t,"MergeRecursive",function(){return r.MergeRecursive});i.o(r,"ModalWindow")&&i.d(t,"ModalWindow",function(){return r.ModalWindow});i.o(r,"NavArrow")&&i.d(t,"NavArrow",function(){return r.NavArrow});i.o(r,"NavigationMenu")&&i.d(t,"NavigationMenu",function(){return r.NavigationMenu});i.o(r,"NavigationMenuElement")&&i.d(t,"NavigationMenuElement",function(){return r.NavigationMenuElement});i.o(r,"NavigationMenuForm")&&i.d(t,"NavigationMenuForm",function(){return r.NavigationMenuForm});i.o(r,"NavigationMenuItem")&&i.d(t,"NavigationMenuItem",function(){return r.NavigationMenuItem});i.o(r,"NavigationMenuKeyNavigator")&&i.d(t,"NavigationMenuKeyNavigator",function(){return r.NavigationMenuKeyNavigator});i.o(r,"OnErrorLogin")&&i.d(t,"OnErrorLogin",function(){return r.OnErrorLogin});i.o(r,"OnSuccessLogin")&&i.d(t,"OnSuccessLogin",function(){return r.OnSuccessLogin});i.o(r,"OpenFileControl")&&i.d(t,"OpenFileControl",function(){return r.OpenFileControl});i.o(r,"PageFactory")&&i.d(t,"PageFactory",function(){return r.PageFactory});i.o(r,"PathBar")&&i.d(t,"PathBar",function(){return r.PathBar});i.o(r,"PathBarCommand")&&i.d(t,"PathBarCommand",function(){return r.PathBarCommand});i.o(r,"PathBarPremium")&&i.d(t,"PathBarPremium",function(){return r.PathBarPremium});i.o(r,"PdfViewer")&&i.d(t,"PdfViewer",function(){return r.PdfViewer});i.o(r,"PercentIndicator")&&i.d(t,"PercentIndicator",function(){return r.PercentIndicator});i.o(r,"Player")&&i.d(t,"Player",function(){return r.Player});i.o(r,"PopupHelper")&&i.d(t,"PopupHelper",function(){return r.PopupHelper});i.o(r,"PopupWindow")&&i.d(t,"PopupWindow",function(){return r.PopupWindow});i.o(r,"ProfileInfo")&&i.d(t,"ProfileInfo",function(){return r.ProfileInfo});i.o(r,"ProfileMenu")&&i.d(t,"ProfileMenu",function(){return r.ProfileMenu});i.o(r,"ProfileMenuItem")&&i.d(t,"ProfileMenuItem",function(){return r.ProfileMenuItem});i.o(r,"RecoveryPage")&&i.d(t,"RecoveryPage",function(){return r.RecoveryPage});i.o(r,"RecoveryPanel")&&i.d(t,"RecoveryPanel",function(){return r.RecoveryPanel});i.o(r,"ReminderHelper")&&i.d(t,"ReminderHelper",function(){return r.ReminderHelper});i.o(r,"Request")&&i.d(t,"Request",function(){return r.Request});i.o(r,"Row")&&i.d(t,"Row",function(){return r.Row});i.o(r,"RowData")&&i.d(t,"RowData",function(){return r.RowData});i.o(r,"RowElement")&&i.d(t,"RowElement",function(){return r.RowElement});i.o(r,"SPromise")&&i.d(t,"SPromise",function(){return r.SPromise});i.o(r,"SchedulerBase")&&i.d(t,"SchedulerBase",function(){return r.SchedulerBase});i.o(r,"SchedulerBrowser")&&i.d(t,"SchedulerBrowser",function(){return r.SchedulerBrowser});i.o(r,"SchedulerCalendar")&&i.d(t,"SchedulerCalendar",function(){return r.SchedulerCalendar});i.o(r,"SchedulerCommonSelector")&&i.d(t,"SchedulerCommonSelector",function(){return r.SchedulerCommonSelector});i.o(r,"SchedulerCustomizer")&&i.d(t,"SchedulerCustomizer",function(){return r.SchedulerCustomizer});i.o(r,"SchedulerDayLineSelector")&&i.d(t,"SchedulerDayLineSelector",function(){return r.SchedulerDayLineSelector});i.o(r,"SchedulerDaySelector")&&i.d(t,"SchedulerDaySelector",function(){return r.SchedulerDaySelector});i.o(r,"SchedulerEvent")&&i.d(t,"SchedulerEvent",function(){return r.SchedulerEvent});i.o(r,"SchedulerEventPeriod")&&i.d(t,"SchedulerEventPeriod",function(){return r.SchedulerEventPeriod});i.o(r,"SchedulerLoader")&&i.d(t,"SchedulerLoader",function(){return r.SchedulerLoader});i.o(r,"SchedulerMobile")&&i.d(t,"SchedulerMobile",function(){return r.SchedulerMobile});i.o(r,"SchedulerMonthSelector")&&i.d(t,"SchedulerMonthSelector",function(){return r.SchedulerMonthSelector});i.o(r,"SchedulerSelector")&&i.d(t,"SchedulerSelector",function(){return r.SchedulerSelector});i.o(r,"SchedulerSimple")&&i.d(t,"SchedulerSimple",function(){return r.SchedulerSimple});i.o(r,"SchedulerTask")&&i.d(t,"SchedulerTask",function(){return r.SchedulerTask});i.o(r,"SchedulerTimeLineSelector")&&i.d(t,"SchedulerTimeLineSelector",function(){return r.SchedulerTimeLineSelector});i.o(r,"SchedulerWeekSelector")&&i.d(t,"SchedulerWeekSelector",function(){return r.SchedulerWeekSelector});i.o(r,"ScriptPlayer")&&i.d(t,"ScriptPlayer",function(){return r.ScriptPlayer});i.o(r,"Scroll")&&i.d(t,"Scroll",function(){return r.Scroll});i.o(r,"SetAddressHash")&&i.d(t,"SetAddressHash",function(){return r.SetAddressHash});i.o(r,"SetIgnoreNextHashChanging")&&i.d(t,"SetIgnoreNextHashChanging",function(){return r.SetIgnoreNextHashChanging});i.o(r,"ShortcutCommand")&&i.d(t,"ShortcutCommand",function(){return r.ShortcutCommand});i.o(r,"ShortcutWindow")&&i.d(t,"ShortcutWindow",function(){return r.ShortcutWindow});i.o(r,"ShortcutWindowKeyNavigator")&&i.d(t,"ShortcutWindowKeyNavigator",function(){return r.ShortcutWindowKeyNavigator});i.o(r,"SignInPanel")&&i.d(t,"SignInPanel",function(){return r.SignInPanel});i.o(r,"SimpleFormBase")&&i.d(t,"SimpleFormBase",function(){return r.SimpleFormBase});i.o(r,"SimpleMenu")&&i.d(t,"SimpleMenu",function(){return r.SimpleMenu});i.o(r,"SimpleMenuItem")&&i.d(t,"SimpleMenuItem",function(){return r.SimpleMenuItem});i.o(r,"SimpleMenuKeyNavigator")&&i.d(t,"SimpleMenuKeyNavigator",function(){return r.SimpleMenuKeyNavigator});i.o(r,"SlideMenu")&&i.d(t,"SlideMenu",function(){return r.SlideMenu});i.o(r,"SlideMenuContent")&&i.d(t,"SlideMenuContent",function(){return r.SlideMenuContent});i.o(r,"SlideMenuGroup")&&i.d(t,"SlideMenuGroup",function(){return r.SlideMenuGroup});i.o(r,"SlideMenuItem")&&i.d(t,"SlideMenuItem",function(){return r.SlideMenuItem});i.o(r,"SonetaServer")&&i.d(t,"SonetaServer",function(){return r.SonetaServer});i.o(r,"Spinner")&&i.d(t,"Spinner",function(){return r.Spinner});i.o(r,"Splitter")&&i.d(t,"Splitter",function(){return r.Splitter});i.o(r,"Stack")&&i.d(t,"Stack",function(){return r.Stack});i.o(r,"StorageHelper")&&i.d(t,"StorageHelper",function(){return r.StorageHelper});i.o(r,"StorageType")&&i.d(t,"StorageType",function(){return r.StorageType});i.o(r,"SvgIcon")&&i.d(t,"SvgIcon",function(){return r.SvgIcon});i.o(r,"SvgManager")&&i.d(t,"SvgManager",function(){return r.SvgManager});i.o(r,"SvgType")&&i.d(t,"SvgType",function(){return r.SvgType});i.o(r,"SwipeDetector")&&i.d(t,"SwipeDetector",function(){return r.SwipeDetector});i.o(r,"SwipeDir")&&i.d(t,"SwipeDir",function(){return r.SwipeDir});i.o(r,"SwipeMode")&&i.d(t,"SwipeMode",function(){return r.SwipeMode});i.o(r,"SwipeRange")&&i.d(t,"SwipeRange",function(){return r.SwipeRange});i.o(r,"SwipedPanel")&&i.d(t,"SwipedPanel",function(){return r.SwipedPanel});i.o(r,"Test")&&i.d(t,"Test",function(){return r.Test});i.o(r,"TestBase")&&i.d(t,"TestBase",function(){return r.TestBase});i.o(r,"TestServer")&&i.d(t,"TestServer",function(){return r.TestServer});i.o(r,"TestStep")&&i.d(t,"TestStep",function(){return r.TestStep});i.o(r,"TestsWindow")&&i.d(t,"TestsWindow",function(){return r.TestsWindow});i.o(r,"TestsWindowFinished")&&i.d(t,"TestsWindowFinished",function(){return r.TestsWindowFinished});i.o(r,"TestsWindowHeader")&&i.d(t,"TestsWindowHeader",function(){return r.TestsWindowHeader});i.o(r,"TextControlView")&&i.d(t,"TextControlView",function(){return r.TextControlView});i.o(r,"ThemePicker")&&i.d(t,"ThemePicker",function(){return r.ThemePicker});i.o(r,"TileGroup")&&i.d(t,"TileGroup",function(){return r.TileGroup});i.o(r,"TileGroupPremium")&&i.d(t,"TileGroupPremium",function(){return r.TileGroupPremium});i.o(r,"TileItem")&&i.d(t,"TileItem",function(){return r.TileItem});i.o(r,"TileItemLarge")&&i.d(t,"TileItemLarge",function(){return r.TileItemLarge});i.o(r,"TileItemPremium")&&i.d(t,"TileItemPremium",function(){return r.TileItemPremium});i.o(r,"TileMenu")&&i.d(t,"TileMenu",function(){return r.TileMenu});i.o(r,"TileMenuKeyNavigator")&&i.d(t,"TileMenuKeyNavigator",function(){return r.TileMenuKeyNavigator});i.o(r,"TimePicker")&&i.d(t,"TimePicker",function(){return r.TimePicker});i.o(r,"TimePickerContent")&&i.d(t,"TimePickerContent",function(){return r.TimePickerContent});i.o(r,"TimelineUnit")&&i.d(t,"TimelineUnit",function(){return r.TimelineUnit});i.o(r,"TimelineViewMode")&&i.d(t,"TimelineViewMode",function(){return r.TimelineViewMode});i.o(r,"TreeState")&&i.d(t,"TreeState",function(){return r.TreeState});i.o(r,"UnverifiedProductInfo")&&i.d(t,"UnverifiedProductInfo",function(){return r.UnverifiedProductInfo});i.o(r,"UriHelper")&&i.d(t,"UriHelper",function(){return r.UriHelper});i.o(r,"UtilsData")&&i.d(t,"UtilsData",function(){return r.UtilsData});i.o(r,"ValueThenable")&&i.d(t,"ValueThenable",function(){return r.ValueThenable});i.o(r,"Verifier")&&i.d(t,"Verifier",function(){return r.Verifier});i.o(r,"VerifierBar")&&i.d(t,"VerifierBar",function(){return r.VerifierBar});i.o(r,"VerifierElement")&&i.d(t,"VerifierElement",function(){return r.VerifierElement});i.o(r,"VerifierType")&&i.d(t,"VerifierType",function(){return r.VerifierType});i.o(r,"WindowBarBase")&&i.d(t,"WindowBarBase",function(){return r.WindowBarBase});i.o(r,"WindowBarBrowser")&&i.d(t,"WindowBarBrowser",function(){return r.WindowBarBrowser});i.o(r,"WindowBarBrowserPremium")&&i.d(t,"WindowBarBrowserPremium",function(){return r.WindowBarBrowserPremium});i.o(r,"WindowBarCalculator")&&i.d(t,"WindowBarCalculator",function(){return r.WindowBarCalculator});i.o(r,"WindowBarCommand")&&i.d(t,"WindowBarCommand",function(){return r.WindowBarCommand});i.o(r,"WindowBarCommandClose")&&i.d(t,"WindowBarCommandClose",function(){return r.WindowBarCommandClose});i.o(r,"WindowBarCommands")&&i.d(t,"WindowBarCommands",function(){return r.WindowBarCommands});i.o(r,"WindowBarCommandsKeyNavigator")&&i.d(t,"WindowBarCommandsKeyNavigator",function(){return r.WindowBarCommandsKeyNavigator});i.o(r,"WindowBarKeyNavigator")&&i.d(t,"WindowBarKeyNavigator",function(){return r.WindowBarKeyNavigator});i.o(r,"WindowBarNavFormCommand")&&i.d(t,"WindowBarNavFormCommand",function(){return r.WindowBarNavFormCommand});i.o(r,"WindowBase")&&i.d(t,"WindowBase",function(){return r.WindowBase});i.o(r,"WindowElement")&&i.d(t,"WindowElement",function(){return r.WindowElement});i.o(r,"WindowManager")&&i.d(t,"WindowManager",function(){return r.WindowManager});i.o(r,"WizardWindow")&&i.d(t,"WizardWindow",function(){return r.WizardWindow});i.o(r,"YearMonth")&&i.d(t,"YearMonth",function(){return r.YearMonth});i.o(r,"ZoomDirection")&&i.d(t,"ZoomDirection",function(){return r.ZoomDirection});i.o(r,"checkElements")&&i.d(t,"checkElements",function(){return r.checkElements});i.o(r,"decodeScript")&&i.d(t,"decodeScript",function(){return r.decodeScript});i.o(r,"decodeString")&&i.d(t,"decodeString",function(){return r.decodeString});i.o(r,"encodeString")&&i.d(t,"encodeString",function(){return r.encodeString});i.o(r,"getToday")&&i.d(t,"getToday",function(){return r.getToday});i.o(r,"hasParentNode")&&i.d(t,"hasParentNode",function(){return r.hasParentNode});i.o(r,"isEdge")&&i.d(t,"isEdge",function(){return r.isEdge});i.o(r,"isIE11")&&i.d(t,"isIE11",function(){return r.isIE11});i.o(r,"isTouchDevice")&&i.d(t,"isTouchDevice",function(){return r.isTouchDevice});i.o(r,"log")&&i.d(t,"log",function(){return r.log});i.o(r,"resetCacheElements")&&i.d(t,"resetCacheElements",function(){return r.resetCacheElements});i.o(r,"returnDeviseType")&&i.d(t,"returnDeviseType",function(){return r.returnDeviseType});i.o(r,"scrollToSmoothly")&&i.d(t,"scrollToSmoothly",function(){return r.scrollToSmoothly});i.o(r,"setTimeoutPromise")&&i.d(t,"setTimeoutPromise",function(){return r.setTimeoutPromise});i.o(r,"uploadFile")&&i.d(t,"uploadFile",function(){return r.uploadFile});i.o(r,"zeroPad")&&i.d(t,"zeroPad",function(){return r.zeroPad});g=i(240);i.d(t,"Dialog",function(){return g.a});i.d(t,"DialogType",function(){return g.b});ie=i(241);i.d(t,"DialogCommand",function(){return ie.a});re=i(242);i.d(t,"DialogCommandBar",function(){return re.a});ue=i(243);i.d(t,"DialogKeyNavigator",function(){return ue.a});fe=i(72);i.d(t,"FeaturesBar",function(){return fe.a});ee=i(244);i.d(t,"FeatureBarElement",function(){return ee.a});oe=i(245);i.d(t,"FieldBase",function(){return oe.a});se=i(246);i.d(t,"FieldLookupBase",function(){return se.a});he=i(247);i.d(t,"FieldCheckBox",function(){return he.a});ce=i(248);i.d(t,"FieldCheckBoxPremium",function(){return ce.a});le=i(249);i.d(t,"FieldCodeEdit",function(){return le.a});ae=i(250);i.d(t,"FieldColor",function(){return ae.a});ve=i(251);i.d(t,"FieldCombo",function(){return ve.a});ye=i(252);i.d(t,"FieldContact",function(){return ye.a});pe=i(253);i.d(t,"FieldDate",function(){return pe.a});we=i(254);i.d(t,"FieldDictionary",function(){return we.a});be=i(255);i.d(t,"FieldEmail",function(){return be.a});ke=i(256);i.d(t,"FieldFileUpload",function(){return ke.a});de=i(257);i.d(t,"FieldGsm",function(){return de.a});ge=i(258);i.d(t,"FieldHyperlink",function(){return ge.a});no=i(259);i.d(t,"FieldImage",function(){return no.a});to=i(260);i.d(t,"FieldInput",function(){return to.a});io=i(261);i.d(t,"FieldLocator",function(){return io.a});ro=i(262);i.d(t,"FieldLookup",function(){return ro.a});uo=i(263);i.d(t,"FieldMemoText",function(){return uo.a});fo=i(264);i.d(t,"FieldPhone",function(){return fo.a});eo=i(265);i.d(t,"FieldRadioButton",function(){return eo.a});oo=i(266);i.d(t,"FieldRangeSlider",function(){return oo.a});so=i(267);i.d(t,"FieldRating",function(){return so.a});ho=i(268);i.d(t,"FieldRichEdit",function(){return ho.a});co=i(269);i.d(t,"FieldSaveFile",function(){return co.a});lo=i(270);i.d(t,"FieldSignature",function(){return lo.a});ao=i(271);i.d(t,"FieldSkype",function(){return ao.a});vo=i(272);i.d(t,"FieldStopwatch",function(){return vo.a});yo=i(273);i.d(t,"FieldTextRight",function(){return yo.a});po=i(274);i.d(t,"FieldTime",function(){return po.a});wo=i(275);i.d(t,"FieldYearMonth",function(){return wo.a});bo=i(276);i.d(t,"OpenFileControl",function(){return bo.a});a=i(99);i.d(t,"GanttFieldMapping",function(){return a.c});i.d(t,"TimelineUnit",function(){return a.d});i.d(t,"TimelineViewMode",function(){return a.e});i.d(t,"ZoomDirection",function(){return a.f});ko=i(277);i.d(t,"GanttSourceFactory",function(){return ko.a});go=i(556);i.d(t,"Gantt",function(){return go.a});u=i(278);i.o(u,"AdfsInfoPage")&&i.d(t,"AdfsInfoPage",function(){return u.AdfsInfoPage});i.o(u,"AnchorPosition")&&i.d(t,"AnchorPosition",function(){return u.AnchorPosition});i.o(u,"App")&&i.d(t,"App",function(){return u.App});i.o(u,"AppearancePalette")&&i.d(t,"AppearancePalette",function(){return u.AppearancePalette});i.o(u,"Assert")&&i.d(t,"Assert",function(){return u.Assert});i.o(u,"AssertError")&&i.d(t,"AssertError",function(){return u.AssertError});i.o(u,"AttachmentUrlHelper")&&i.d(t,"AttachmentUrlHelper",function(){return u.AttachmentUrlHelper});i.o(u,"Base64")&&i.d(t,"Base64",function(){return u.Base64});i.o(u,"BaseElement")&&i.d(t,"BaseElement",function(){return u.BaseElement});i.o(u,"BaseHomePage")&&i.d(t,"BaseHomePage",function(){return u.BaseHomePage});i.o(u,"BasePage")&&i.d(t,"BasePage",function(){return u.BasePage});i.o(u,"BaseScroll")&&i.d(t,"BaseScroll",function(){return u.BaseScroll});i.o(u,"BiGroup")&&i.d(t,"BiGroup",function(){return u.BiGroup});i.o(u,"BrowserInfoPage")&&i.d(t,"BrowserInfoPage",function(){return u.BrowserInfoPage});i.o(u,"ColorHelper")&&i.d(t,"ColorHelper",function(){return u.ColorHelper});i.o(u,"CommandData")&&i.d(t,"CommandData",function(){return u.CommandData});i.o(u,"Constants")&&i.d(t,"Constants",function(){return u.Constants});i.o(u,"CookieBox")&&i.d(t,"CookieBox",function(){return u.CookieBox});i.o(u,"CookieHelper")&&i.d(t,"CookieHelper",function(){return u.CookieHelper});i.o(u,"CookieInfoPage")&&i.d(t,"CookieInfoPage",function(){return u.CookieInfoPage});i.o(u,"Credentials")&&i.d(t,"Credentials",function(){return u.Credentials});i.o(u,"CredentialsAdfs")&&i.d(t,"CredentialsAdfs",function(){return u.CredentialsAdfs});i.o(u,"CredentialsImpersonate")&&i.d(t,"CredentialsImpersonate",function(){return u.CredentialsImpersonate});i.o(u,"CredentialsLink")&&i.d(t,"CredentialsLink",function(){return u.CredentialsLink});i.o(u,"CredentialsLogin")&&i.d(t,"CredentialsLogin",function(){return u.CredentialsLogin});i.o(u,"DOMHelper")&&i.d(t,"DOMHelper",function(){return u.DOMHelper});i.o(u,"DataElement")&&i.d(t,"DataElement",function(){return u.DataElement});i.o(u,"DateHelper")&&i.d(t,"DateHelper",function(){return u.DateHelper});i.o(u,"DbInfoPage")&&i.d(t,"DbInfoPage",function(){return u.DbInfoPage});i.o(u,"DecodeUri")&&i.d(t,"DecodeUri",function(){return u.DecodeUri});i.o(u,"Describer")&&i.d(t,"Describer",function(){return u.Describer});i.o(u,"DeviceType")&&i.d(t,"DeviceType",function(){return u.DeviceType});i.o(u,"DiagramLoader")&&i.d(t,"DiagramLoader",function(){return u.DiagramLoader});i.o(u,"DialogData")&&i.d(t,"DialogData",function(){return u.DialogData});i.o(u,"Dictionary")&&i.d(t,"Dictionary",function(){return u.Dictionary});i.o(u,"DictionaryContent")&&i.d(t,"DictionaryContent",function(){return u.DictionaryContent});i.o(u,"DictionaryEx")&&i.d(t,"DictionaryEx",function(){return u.DictionaryEx});i.o(u,"EditCombo")&&i.d(t,"EditCombo",function(){return u.EditCombo});i.o(u,"EditDictionary")&&i.d(t,"EditDictionary",function(){return u.EditDictionary});i.o(u,"EditLookup")&&i.d(t,"EditLookup",function(){return u.EditLookup});i.o(u,"ErrorPage")&&i.d(t,"ErrorPage",function(){return u.ErrorPage});i.o(u,"EventListenerRegistrar")&&i.d(t,"EventListenerRegistrar",function(){return u.EventListenerRegistrar});i.o(u,"EventSet")&&i.d(t,"EventSet",function(){return u.EventSet});i.o(u,"FactoryNavigationMenuSource")&&i.d(t,"FactoryNavigationMenuSource",function(){return u.FactoryNavigationMenuSource});i.o(u,"FactorySlideMenuSource")&&i.d(t,"FactorySlideMenuSource",function(){return u.FactorySlideMenuSource});i.o(u,"FeatureElement")&&i.d(t,"FeatureElement",function(){return u.FeatureElement});i.o(u,"FieldData")&&i.d(t,"FieldData",function(){return u.FieldData});i.o(u,"FilterGroup")&&i.d(t,"FilterGroup",function(){return u.FilterGroup});i.o(u,"FireCustomFocus")&&i.d(t,"FireCustomFocus",function(){return u.FireCustomFocus});i.o(u,"FolderData")&&i.d(t,"FolderData",function(){return u.FolderData});i.o(u,"FolderWindow")&&i.d(t,"FolderWindow",function(){return u.FolderWindow});i.o(u,"FormEditInPlace")&&i.d(t,"FormEditInPlace",function(){return u.FormEditInPlace});i.o(u,"FormView")&&i.d(t,"FormView",function(){return u.FormView});i.o(u,"FormWindow")&&i.d(t,"FormWindow",function(){return u.FormWindow});i.o(u,"FrameWindow")&&i.d(t,"FrameWindow",function(){return u.FrameWindow});i.o(u,"GanttData")&&i.d(t,"GanttData",function(){return u.GanttData});i.o(u,"GanttLoader")&&i.d(t,"GanttLoader",function(){return u.GanttLoader});i.o(u,"GetDeviceInfo")&&i.d(t,"GetDeviceInfo",function(){return u.GetDeviceInfo});i.o(u,"GetIgnoreNextHashChanging")&&i.d(t,"GetIgnoreNextHashChanging",function(){return u.GetIgnoreNextHashChanging});i.o(u,"GetLink")&&i.d(t,"GetLink",function(){return u.GetLink});i.o(u,"GetValueFormNode")&&i.d(t,"GetValueFormNode",function(){return u.GetValueFormNode});i.o(u,"GlobalSettings")&&i.d(t,"GlobalSettings",function(){return u.GlobalSettings});i.o(u,"GridBarCommand")&&i.d(t,"GridBarCommand",function(){return u.GridBarCommand});i.o(u,"GridBarGroup")&&i.d(t,"GridBarGroup",function(){return u.GridBarGroup});i.o(u,"GridBase")&&i.d(t,"GridBase",function(){return u.GridBase});i.o(u,"GridBrowser")&&i.d(t,"GridBrowser",function(){return u.GridBrowser});i.o(u,"GridCanvas")&&i.d(t,"GridCanvas",function(){return u.GridCanvas});i.o(u,"GridColumnBase")&&i.d(t,"GridColumnBase",function(){return u.GridColumnBase});i.o(u,"GridColumnCheckBox")&&i.d(t,"GridColumnCheckBox",function(){return u.GridColumnCheckBox});i.o(u,"GridColumnColor")&&i.d(t,"GridColumnColor",function(){return u.GridColumnColor});i.o(u,"GridColumnColorStatus")&&i.d(t,"GridColumnColorStatus",function(){return u.GridColumnColorStatus});i.o(u,"GridColumnEipContent")&&i.d(t,"GridColumnEipContent",function(){return u.GridColumnEipContent});i.o(u,"GridColumnFrozen")&&i.d(t,"GridColumnFrozen",function(){return u.GridColumnFrozen});i.o(u,"GridColumnGroupingSum")&&i.d(t,"GridColumnGroupingSum",function(){return u.GridColumnGroupingSum});i.o(u,"GridColumnIcon")&&i.d(t,"GridColumnIcon",function(){return u.GridColumnIcon});i.o(u,"GridColumnImage")&&i.d(t,"GridColumnImage",function(){return u.GridColumnImage});i.o(u,"GridColumnSelectAll")&&i.d(t,"GridColumnSelectAll",function(){return u.GridColumnSelectAll});i.o(u,"GridColumnSelectBase")&&i.d(t,"GridColumnSelectBase",function(){return u.GridColumnSelectBase});i.o(u,"GridColumnSelectRow")&&i.d(t,"GridColumnSelectRow",function(){return u.GridColumnSelectRow});i.o(u,"GridColumnSum")&&i.d(t,"GridColumnSum",function(){return u.GridColumnSum});i.o(u,"GridColumnText")&&i.d(t,"GridColumnText",function(){return u.GridColumnText});i.o(u,"GridContentBuilderBase")&&i.d(t,"GridContentBuilderBase",function(){return u.GridContentBuilderBase});i.o(u,"GridContentBuilderBrowser")&&i.d(t,"GridContentBuilderBrowser",function(){return u.GridContentBuilderBrowser});i.o(u,"GridContentBuilderMobile")&&i.d(t,"GridContentBuilderMobile",function(){return u.GridContentBuilderMobile});i.o(u,"GridData")&&i.d(t,"GridData",function(){return u.GridData});i.o(u,"GridDataElementExtender")&&i.d(t,"GridDataElementExtender",function(){return u.GridDataElementExtender});i.o(u,"GridEipExtender")&&i.d(t,"GridEipExtender",function(){return u.GridEipExtender});i.o(u,"GridFooter")&&i.d(t,"GridFooter",function(){return u.GridFooter});i.o(u,"GridHeader")&&i.d(t,"GridHeader",function(){return u.GridHeader});i.o(u,"GridHeaderColumn")&&i.d(t,"GridHeaderColumn",function(){return u.GridHeaderColumn});i.o(u,"GridHeaderColumnResizer")&&i.d(t,"GridHeaderColumnResizer",function(){return u.GridHeaderColumnResizer});i.o(u,"GridHeaderColumns")&&i.d(t,"GridHeaderColumns",function(){return u.GridHeaderColumns});i.o(u,"GridHeaderFilter")&&i.d(t,"GridHeaderFilter",function(){return u.GridHeaderFilter});i.o(u,"GridHeaderFilters")&&i.d(t,"GridHeaderFilters",function(){return u.GridHeaderFilters});i.o(u,"GridKeyNavigator")&&i.d(t,"GridKeyNavigator",function(){return u.GridKeyNavigator});i.o(u,"GridLocator")&&i.d(t,"GridLocator",function(){return u.GridLocator});i.o(u,"GridMobile")&&i.d(t,"GridMobile",function(){return u.GridMobile});i.o(u,"GridMultiHeaderColumns")&&i.d(t,"GridMultiHeaderColumns",function(){return u.GridMultiHeaderColumns});i.o(u,"GridPatternHelper")&&i.d(t,"GridPatternHelper",function(){return u.GridPatternHelper});i.o(u,"GridRowBase")&&i.d(t,"GridRowBase",function(){return u.GridRowBase});i.o(u,"GridRowBuilderBase")&&i.d(t,"GridRowBuilderBase",function(){return u.GridRowBuilderBase});i.o(u,"GridRowBuilderBrowser")&&i.d(t,"GridRowBuilderBrowser",function(){return u.GridRowBuilderBrowser});i.o(u,"GridRowBuilderMobile")&&i.d(t,"GridRowBuilderMobile",function(){return u.GridRowBuilderMobile});i.o(u,"GridRowEmptyContent")&&i.d(t,"GridRowEmptyContent",function(){return u.GridRowEmptyContent});i.o(u,"GridRowFooterSum")&&i.d(t,"GridRowFooterSum",function(){return u.GridRowFooterSum});i.o(u,"GridRowGrouping")&&i.d(t,"GridRowGrouping",function(){return u.GridRowGrouping});i.o(u,"GridRowGroupingSum")&&i.d(t,"GridRowGroupingSum",function(){return u.GridRowGroupingSum});i.o(u,"GridRowLoadMore")&&i.d(t,"GridRowLoadMore",function(){return u.GridRowLoadMore});i.o(u,"GridRowLocator")&&i.d(t,"GridRowLocator",function(){return u.GridRowLocator});i.o(u,"GridRowNew")&&i.d(t,"GridRowNew",function(){return u.GridRowNew});i.o(u,"GridRowNonOptimal")&&i.d(t,"GridRowNonOptimal",function(){return u.GridRowNonOptimal});i.o(u,"GridRowNormal")&&i.d(t,"GridRowNormal",function(){return u.GridRowNormal});i.o(u,"GridRowPlaceholder")&&i.d(t,"GridRowPlaceholder",function(){return u.GridRowPlaceholder});i.o(u,"GridRowSpecial")&&i.d(t,"GridRowSpecial",function(){return u.GridRowSpecial});i.o(u,"GridScroll")&&i.d(t,"GridScroll",function(){return u.GridScroll});i.o(u,"GridSelectionExtender")&&i.d(t,"GridSelectionExtender",function(){return u.GridSelectionExtender});i.o(u,"GridViewPort")&&i.d(t,"GridViewPort",function(){return u.GridViewPort});i.o(u,"Group")&&i.d(t,"Group",function(){return u.Group});i.o(u,"GroupBase")&&i.d(t,"GroupBase",function(){return u.GroupBase});i.o(u,"GroupMenu")&&i.d(t,"GroupMenu",function(){return u.GroupMenu});i.o(u,"Guid")&&i.d(t,"Guid",function(){return u.Guid});i.o(u,"HashHelper")&&i.d(t,"HashHelper",function(){return u.HashHelper});i.o(u,"HeaderBarBrowser")&&i.d(t,"HeaderBarBrowser",function(){return u.HeaderBarBrowser});i.o(u,"HeaderBarCommand")&&i.d(t,"HeaderBarCommand",function(){return u.HeaderBarCommand});i.o(u,"HeaderBarKeyNavigator")&&i.d(t,"HeaderBarKeyNavigator",function(){return u.HeaderBarKeyNavigator});i.o(u,"HeaderBarMobile")&&i.d(t,"HeaderBarMobile",function(){return u.HeaderBarMobile});i.o(u,"Html")&&i.d(t,"Html",function(){return u.Html});i.o(u,"Image")&&i.d(t,"Image",function(){return u.Image});i.o(u,"ImageControlView")&&i.d(t,"ImageControlView",function(){return u.ImageControlView});i.o(u,"ImpersonateInfoPage")&&i.d(t,"ImpersonateInfoPage",function(){return u.ImpersonateInfoPage});i.o(u,"Include")&&i.d(t,"Include",function(){return u.Include});i.o(u,"Indicator")&&i.d(t,"Indicator",function(){return u.Indicator});i.o(u,"IndicatorPremium")&&i.d(t,"IndicatorPremium",function(){return u.IndicatorPremium});i.o(u,"IndicatorPremiumDashboard")&&i.d(t,"IndicatorPremiumDashboard",function(){return u.IndicatorPremiumDashboard});i.o(u,"InfiniteScroll")&&i.d(t,"InfiniteScroll",function(){return u.InfiniteScroll});i.o(u,"IpInfoPage")&&i.d(t,"IpInfoPage",function(){return u.IpInfoPage});i.o(u,"IsDebug")&&i.d(t,"IsDebug",function(){return u.IsDebug});i.o(u,"JoditLoader")&&i.d(t,"JoditLoader",function(){return u.JoditLoader});i.o(u,"KeyPressInject")&&i.d(t,"KeyPressInject",function(){return u.KeyPressInject});i.o(u,"KeyShortcut")&&i.d(t,"KeyShortcut",function(){return u.KeyShortcut});i.o(u,"Label")&&i.d(t,"Label",function(){return u.Label});i.o(u,"LanguageConstants")&&i.d(t,"LanguageConstants",function(){return u.LanguageConstants});i.o(u,"LibraryLoader")&&i.d(t,"LibraryLoader",function(){return u.LibraryLoader});i.o(u,"Loader")&&i.d(t,"Loader",function(){return u.Loader});i.o(u,"Location")&&i.d(t,"Location",function(){return u.Location});i.o(u,"LogOffInfoPage")&&i.d(t,"LogOffInfoPage",function(){return u.LogOffInfoPage});i.o(u,"LogOffPage")&&i.d(t,"LogOffPage",function(){return u.LogOffPage});i.o(u,"Login")&&i.d(t,"Login",function(){return u.Login});i.o(u,"LoginAdfsPage")&&i.d(t,"LoginAdfsPage",function(){return u.LoginAdfsPage});i.o(u,"LoginImpersonate")&&i.d(t,"LoginImpersonate",function(){return u.LoginImpersonate});i.o(u,"LookupBase")&&i.d(t,"LookupBase",function(){return u.LookupBase});i.o(u,"LookupContent")&&i.d(t,"LookupContent",function(){return u.LookupContent});i.o(u,"LookupHeader")&&i.d(t,"LookupHeader",function(){return u.LookupHeader});i.o(u,"LookupRowElement")&&i.d(t,"LookupRowElement",function(){return u.LookupRowElement});i.o(u,"LookupRowSpecial")&&i.d(t,"LookupRowSpecial",function(){return u.LookupRowSpecial});i.o(u,"MenuKeyNavigatorBase")&&i.d(t,"MenuKeyNavigatorBase",function(){return u.MenuKeyNavigatorBase});i.o(u,"MergeRecursive")&&i.d(t,"MergeRecursive",function(){return u.MergeRecursive});i.o(u,"ModalWindow")&&i.d(t,"ModalWindow",function(){return u.ModalWindow});i.o(u,"NavArrow")&&i.d(t,"NavArrow",function(){return u.NavArrow});i.o(u,"NavigationMenu")&&i.d(t,"NavigationMenu",function(){return u.NavigationMenu});i.o(u,"NavigationMenuElement")&&i.d(t,"NavigationMenuElement",function(){return u.NavigationMenuElement});i.o(u,"NavigationMenuForm")&&i.d(t,"NavigationMenuForm",function(){return u.NavigationMenuForm});i.o(u,"NavigationMenuItem")&&i.d(t,"NavigationMenuItem",function(){return u.NavigationMenuItem});i.o(u,"NavigationMenuKeyNavigator")&&i.d(t,"NavigationMenuKeyNavigator",function(){return u.NavigationMenuKeyNavigator});i.o(u,"OnErrorLogin")&&i.d(t,"OnErrorLogin",function(){return u.OnErrorLogin});i.o(u,"OnSuccessLogin")&&i.d(t,"OnSuccessLogin",function(){return u.OnSuccessLogin});i.o(u,"PageFactory")&&i.d(t,"PageFactory",function(){return u.PageFactory});i.o(u,"PathBar")&&i.d(t,"PathBar",function(){return u.PathBar});i.o(u,"PathBarCommand")&&i.d(t,"PathBarCommand",function(){return u.PathBarCommand});i.o(u,"PathBarPremium")&&i.d(t,"PathBarPremium",function(){return u.PathBarPremium});i.o(u,"PdfViewer")&&i.d(t,"PdfViewer",function(){return u.PdfViewer});i.o(u,"PercentIndicator")&&i.d(t,"PercentIndicator",function(){return u.PercentIndicator});i.o(u,"Player")&&i.d(t,"Player",function(){return u.Player});i.o(u,"PopupHelper")&&i.d(t,"PopupHelper",function(){return u.PopupHelper});i.o(u,"PopupWindow")&&i.d(t,"PopupWindow",function(){return u.PopupWindow});i.o(u,"ProfileInfo")&&i.d(t,"ProfileInfo",function(){return u.ProfileInfo});i.o(u,"ProfileMenu")&&i.d(t,"ProfileMenu",function(){return u.ProfileMenu});i.o(u,"ProfileMenuItem")&&i.d(t,"ProfileMenuItem",function(){return u.ProfileMenuItem});i.o(u,"RecoveryPage")&&i.d(t,"RecoveryPage",function(){return u.RecoveryPage});i.o(u,"RecoveryPanel")&&i.d(t,"RecoveryPanel",function(){return u.RecoveryPanel});i.o(u,"ReminderHelper")&&i.d(t,"ReminderHelper",function(){return u.ReminderHelper});i.o(u,"Request")&&i.d(t,"Request",function(){return u.Request});i.o(u,"Row")&&i.d(t,"Row",function(){return u.Row});i.o(u,"RowData")&&i.d(t,"RowData",function(){return u.RowData});i.o(u,"RowElement")&&i.d(t,"RowElement",function(){return u.RowElement});i.o(u,"SPromise")&&i.d(t,"SPromise",function(){return u.SPromise});i.o(u,"SchedulerBase")&&i.d(t,"SchedulerBase",function(){return u.SchedulerBase});i.o(u,"SchedulerBrowser")&&i.d(t,"SchedulerBrowser",function(){return u.SchedulerBrowser});i.o(u,"SchedulerCalendar")&&i.d(t,"SchedulerCalendar",function(){return u.SchedulerCalendar});i.o(u,"SchedulerCommonSelector")&&i.d(t,"SchedulerCommonSelector",function(){return u.SchedulerCommonSelector});i.o(u,"SchedulerCustomizer")&&i.d(t,"SchedulerCustomizer",function(){return u.SchedulerCustomizer});i.o(u,"SchedulerDayLineSelector")&&i.d(t,"SchedulerDayLineSelector",function(){return u.SchedulerDayLineSelector});i.o(u,"SchedulerDaySelector")&&i.d(t,"SchedulerDaySelector",function(){return u.SchedulerDaySelector});i.o(u,"SchedulerEvent")&&i.d(t,"SchedulerEvent",function(){return u.SchedulerEvent});i.o(u,"SchedulerEventPeriod")&&i.d(t,"SchedulerEventPeriod",function(){return u.SchedulerEventPeriod});i.o(u,"SchedulerLoader")&&i.d(t,"SchedulerLoader",function(){return u.SchedulerLoader});i.o(u,"SchedulerMobile")&&i.d(t,"SchedulerMobile",function(){return u.SchedulerMobile});i.o(u,"SchedulerMonthSelector")&&i.d(t,"SchedulerMonthSelector",function(){return u.SchedulerMonthSelector});i.o(u,"SchedulerSelector")&&i.d(t,"SchedulerSelector",function(){return u.SchedulerSelector});i.o(u,"SchedulerSimple")&&i.d(t,"SchedulerSimple",function(){return u.SchedulerSimple});i.o(u,"SchedulerTask")&&i.d(t,"SchedulerTask",function(){return u.SchedulerTask});i.o(u,"SchedulerTimeLineSelector")&&i.d(t,"SchedulerTimeLineSelector",function(){return u.SchedulerTimeLineSelector});i.o(u,"SchedulerWeekSelector")&&i.d(t,"SchedulerWeekSelector",function(){return u.SchedulerWeekSelector});i.o(u,"ScriptPlayer")&&i.d(t,"ScriptPlayer",function(){return u.ScriptPlayer});i.o(u,"Scroll")&&i.d(t,"Scroll",function(){return u.Scroll});i.o(u,"SetAddressHash")&&i.d(t,"SetAddressHash",function(){return u.SetAddressHash});i.o(u,"SetIgnoreNextHashChanging")&&i.d(t,"SetIgnoreNextHashChanging",function(){return u.SetIgnoreNextHashChanging});i.o(u,"ShortcutCommand")&&i.d(t,"ShortcutCommand",function(){return u.ShortcutCommand});i.o(u,"ShortcutWindow")&&i.d(t,"ShortcutWindow",function(){return u.ShortcutWindow});i.o(u,"ShortcutWindowKeyNavigator")&&i.d(t,"ShortcutWindowKeyNavigator",function(){return u.ShortcutWindowKeyNavigator});i.o(u,"SignInPanel")&&i.d(t,"SignInPanel",function(){return u.SignInPanel});i.o(u,"SimpleFormBase")&&i.d(t,"SimpleFormBase",function(){return u.SimpleFormBase});i.o(u,"SimpleMenu")&&i.d(t,"SimpleMenu",function(){return u.SimpleMenu});i.o(u,"SimpleMenuItem")&&i.d(t,"SimpleMenuItem",function(){return u.SimpleMenuItem});i.o(u,"SimpleMenuKeyNavigator")&&i.d(t,"SimpleMenuKeyNavigator",function(){return u.SimpleMenuKeyNavigator});i.o(u,"SlideMenu")&&i.d(t,"SlideMenu",function(){return u.SlideMenu});i.o(u,"SlideMenuContent")&&i.d(t,"SlideMenuContent",function(){return u.SlideMenuContent});i.o(u,"SlideMenuGroup")&&i.d(t,"SlideMenuGroup",function(){return u.SlideMenuGroup});i.o(u,"SlideMenuItem")&&i.d(t,"SlideMenuItem",function(){return u.SlideMenuItem});i.o(u,"SonetaServer")&&i.d(t,"SonetaServer",function(){return u.SonetaServer});i.o(u,"Spinner")&&i.d(t,"Spinner",function(){return u.Spinner});i.o(u,"Splitter")&&i.d(t,"Splitter",function(){return u.Splitter});i.o(u,"Stack")&&i.d(t,"Stack",function(){return u.Stack});i.o(u,"StorageHelper")&&i.d(t,"StorageHelper",function(){return u.StorageHelper});i.o(u,"StorageType")&&i.d(t,"StorageType",function(){return u.StorageType});i.o(u,"SvgIcon")&&i.d(t,"SvgIcon",function(){return u.SvgIcon});i.o(u,"SvgManager")&&i.d(t,"SvgManager",function(){return u.SvgManager});i.o(u,"SvgType")&&i.d(t,"SvgType",function(){return u.SvgType});i.o(u,"SwipeDetector")&&i.d(t,"SwipeDetector",function(){return u.SwipeDetector});i.o(u,"SwipeDir")&&i.d(t,"SwipeDir",function(){return u.SwipeDir});i.o(u,"SwipeMode")&&i.d(t,"SwipeMode",function(){return u.SwipeMode});i.o(u,"SwipeRange")&&i.d(t,"SwipeRange",function(){return u.SwipeRange});i.o(u,"SwipedPanel")&&i.d(t,"SwipedPanel",function(){return u.SwipedPanel});i.o(u,"Test")&&i.d(t,"Test",function(){return u.Test});i.o(u,"TestBase")&&i.d(t,"TestBase",function(){return u.TestBase});i.o(u,"TestServer")&&i.d(t,"TestServer",function(){return u.TestServer});i.o(u,"TestStep")&&i.d(t,"TestStep",function(){return u.TestStep});i.o(u,"TestsWindow")&&i.d(t,"TestsWindow",function(){return u.TestsWindow});i.o(u,"TestsWindowFinished")&&i.d(t,"TestsWindowFinished",function(){return u.TestsWindowFinished});i.o(u,"TestsWindowHeader")&&i.d(t,"TestsWindowHeader",function(){return u.TestsWindowHeader});i.o(u,"TextControlView")&&i.d(t,"TextControlView",function(){return u.TextControlView});i.o(u,"ThemePicker")&&i.d(t,"ThemePicker",function(){return u.ThemePicker});i.o(u,"TileGroup")&&i.d(t,"TileGroup",function(){return u.TileGroup});i.o(u,"TileGroupPremium")&&i.d(t,"TileGroupPremium",function(){return u.TileGroupPremium});i.o(u,"TileItem")&&i.d(t,"TileItem",function(){return u.TileItem});i.o(u,"TileItemLarge")&&i.d(t,"TileItemLarge",function(){return u.TileItemLarge});i.o(u,"TileItemPremium")&&i.d(t,"TileItemPremium",function(){return u.TileItemPremium});i.o(u,"TileMenu")&&i.d(t,"TileMenu",function(){return u.TileMenu});i.o(u,"TileMenuKeyNavigator")&&i.d(t,"TileMenuKeyNavigator",function(){return u.TileMenuKeyNavigator});i.o(u,"TimePicker")&&i.d(t,"TimePicker",function(){return u.TimePicker});i.o(u,"TimePickerContent")&&i.d(t,"TimePickerContent",function(){return u.TimePickerContent});i.o(u,"TreeState")&&i.d(t,"TreeState",function(){return u.TreeState});i.o(u,"UnverifiedProductInfo")&&i.d(t,"UnverifiedProductInfo",function(){return u.UnverifiedProductInfo});i.o(u,"UriHelper")&&i.d(t,"UriHelper",function(){return u.UriHelper});i.o(u,"UtilsData")&&i.d(t,"UtilsData",function(){return u.UtilsData});i.o(u,"ValueThenable")&&i.d(t,"ValueThenable",function(){return u.ValueThenable});i.o(u,"Verifier")&&i.d(t,"Verifier",function(){return u.Verifier});i.o(u,"VerifierBar")&&i.d(t,"VerifierBar",function(){return u.VerifierBar});i.o(u,"VerifierElement")&&i.d(t,"VerifierElement",function(){return u.VerifierElement});i.o(u,"VerifierType")&&i.d(t,"VerifierType",function(){return u.VerifierType});i.o(u,"WindowBarBase")&&i.d(t,"WindowBarBase",function(){return u.WindowBarBase});i.o(u,"WindowBarBrowser")&&i.d(t,"WindowBarBrowser",function(){return u.WindowBarBrowser});i.o(u,"WindowBarBrowserPremium")&&i.d(t,"WindowBarBrowserPremium",function(){return u.WindowBarBrowserPremium});i.o(u,"WindowBarCalculator")&&i.d(t,"WindowBarCalculator",function(){return u.WindowBarCalculator});i.o(u,"WindowBarCommand")&&i.d(t,"WindowBarCommand",function(){return u.WindowBarCommand});i.o(u,"WindowBarCommandClose")&&i.d(t,"WindowBarCommandClose",function(){return u.WindowBarCommandClose});i.o(u,"WindowBarCommands")&&i.d(t,"WindowBarCommands",function(){return u.WindowBarCommands});i.o(u,"WindowBarCommandsKeyNavigator")&&i.d(t,"WindowBarCommandsKeyNavigator",function(){return u.WindowBarCommandsKeyNavigator});i.o(u,"WindowBarKeyNavigator")&&i.d(t,"WindowBarKeyNavigator",function(){return u.WindowBarKeyNavigator});i.o(u,"WindowBarNavFormCommand")&&i.d(t,"WindowBarNavFormCommand",function(){return u.WindowBarNavFormCommand});i.o(u,"WindowBase")&&i.d(t,"WindowBase",function(){return u.WindowBase});i.o(u,"WindowElement")&&i.d(t,"WindowElement",function(){return u.WindowElement});i.o(u,"WindowManager")&&i.d(t,"WindowManager",function(){return u.WindowManager});i.o(u,"WizardWindow")&&i.d(t,"WizardWindow",function(){return u.WizardWindow});i.o(u,"YearMonth")&&i.d(t,"YearMonth",function(){return u.YearMonth});i.o(u,"checkElements")&&i.d(t,"checkElements",function(){return u.checkElements});i.o(u,"decodeScript")&&i.d(t,"decodeScript",function(){return u.decodeScript});i.o(u,"decodeString")&&i.d(t,"decodeString",function(){return u.decodeString});i.o(u,"encodeString")&&i.d(t,"encodeString",function(){return u.encodeString});i.o(u,"getToday")&&i.d(t,"getToday",function(){return u.getToday});i.o(u,"hasParentNode")&&i.d(t,"hasParentNode",function(){return u.hasParentNode});i.o(u,"isEdge")&&i.d(t,"isEdge",function(){return u.isEdge});i.o(u,"isIE11")&&i.d(t,"isIE11",function(){return u.isIE11});i.o(u,"isTouchDevice")&&i.d(t,"isTouchDevice",function(){return u.isTouchDevice});i.o(u,"log")&&i.d(t,"log",function(){return u.log});i.o(u,"resetCacheElements")&&i.d(t,"resetCacheElements",function(){return u.resetCacheElements});i.o(u,"returnDeviseType")&&i.d(t,"returnDeviseType",function(){return u.returnDeviseType});i.o(u,"scrollToSmoothly")&&i.d(t,"scrollToSmoothly",function(){return u.scrollToSmoothly});i.o(u,"setTimeoutPromise")&&i.d(t,"setTimeoutPromise",function(){return u.setTimeoutPromise});i.o(u,"uploadFile")&&i.d(t,"uploadFile",function(){return u.uploadFile});i.o(u,"zeroPad")&&i.d(t,"zeroPad",function(){return u.zeroPad});ns=i(279);i.d(t,"GridContentBuilderBase",function(){return ns.a});ts=i(280);i.d(t,"GridContentBuilderBrowser",function(){return ts.a});is=i(281);i.d(t,"GridContentBuilderMobile",function(){return is.a});rs=i(282);i.d(t,"GridRowBuilderBase",function(){return rs.a});us=i(283);i.d(t,"GridRowBuilderBrowser",function(){return us.a});fs=i(284);i.d(t,"GridRowBuilderMobile",function(){return fs.a});es=i(285);i.d(t,"GridDataElementExtender",function(){return es.a});os=i(286);i.d(t,"GridEipExtender",function(){return os.a});ss=i(287);i.d(t,"GridSelectionExtender",function(){return ss.a});hs=i(288);i.d(t,"GridBarCommand",function(){return hs.a});cs=i(289);i.d(t,"GridBase",function(){return cs.a});ls=i(290);i.d(t,"GridBrowser",function(){return ls.a});as=i(291);i.d(t,"GridColumnFrozen",function(){return as.a});vs=i(292);i.d(t,"GridCanvas",function(){return vs.a});nt=i(293);i.d(t,"GridColumnBase",function(){return nt.a});i.d(t,"TreeState",function(){return nt.b});ys=i(294);i.d(t,"GridColumnCheckBox",function(){return ys.a});ps=i(295);i.d(t,"GridColumnColor",function(){return ps.a});ws=i(296);i.d(t,"GridColumnColorStatus",function(){return ws.a});bs=i(297);i.d(t,"GridColumnEipContent",function(){return bs.a});ks=i(298);i.d(t,"GridColumnSum",function(){return ks.a});ds=i(299);i.d(t,"GridColumnGroupingSum",function(){return ds.a});gs=i(300);i.d(t,"GridColumnIcon",function(){return gs.a});nh=i(301);i.d(t,"GridColumnImage",function(){return nh.a});th=i(302);i.d(t,"GridColumnSelectBase",function(){return th.a});ih=i(303);i.d(t,"GridColumnSelectAll",function(){return ih.a});rh=i(304);i.d(t,"GridColumnSelectRow",function(){return rh.a});uh=i(305);i.d(t,"GridColumnText",function(){return uh.a});fh=i(306);i.d(t,"GridFooter",function(){return fh.a});eh=i(307);i.d(t,"GridHeader",function(){return eh.a});oh=i(308);i.d(t,"GridHeaderColumn",function(){return oh.a});sh=i(309);i.d(t,"GridHeaderColumnResizer",function(){return sh.a});hh=i(310);i.d(t,"GridHeaderColumns",function(){return hh.a});ch=i(311);i.d(t,"GridHeaderFilter",function(){return ch.a});lh=i(312);i.d(t,"GridHeaderFilters",function(){return lh.a});ah=i(313);i.d(t,"GridMultiHeaderColumns",function(){return ah.a});vh=i(314);i.d(t,"GridKeyNavigator",function(){return vh.a});yh=i(315);i.d(t,"GridLocator",function(){return yh.a});ph=i(316);i.d(t,"GridMobile",function(){return ph.a});wh=i(317);i.d(t,"GridRowBase",function(){return wh.a});bh=i(318);i.d(t,"GridRowEmptyContent",function(){return bh.a});kh=i(319);i.d(t,"GridRowFooterSum",function(){return kh.a});dh=i(320);i.d(t,"GridRowSpecial",function(){return dh.a});gh=i(321);i.d(t,"GridRowGrouping",function(){return gh.a});nc=i(322);i.d(t,"GridRowGroupingSum",function(){return nc.a});tc=i(323);i.d(t,"GridRowLoadMore",function(){return tc.a});ic=i(324);i.d(t,"GridRowLocator",function(){return ic.a});rc=i(325);i.d(t,"GridRowNew",function(){return rc.a});uc=i(326);i.d(t,"GridRowNonOptimal",function(){return uc.a});fc=i(327);i.d(t,"GridRowNormal",function(){return fc.a});ec=i(328);i.d(t,"GridRowPlaceholder",function(){return ec.a});i(329);oc=i(330);i.d(t,"GridViewPort",function(){return oc.a});i(331);f=i(332);i.o(f,"AdfsInfoPage")&&i.d(t,"AdfsInfoPage",function(){return f.AdfsInfoPage});i.o(f,"AnchorPosition")&&i.d(t,"AnchorPosition",function(){return f.AnchorPosition});i.o(f,"App")&&i.d(t,"App",function(){return f.App});i.o(f,"AppearancePalette")&&i.d(t,"AppearancePalette",function(){return f.AppearancePalette});i.o(f,"Assert")&&i.d(t,"Assert",function(){return f.Assert});i.o(f,"AssertError")&&i.d(t,"AssertError",function(){return f.AssertError});i.o(f,"AttachmentUrlHelper")&&i.d(t,"AttachmentUrlHelper",function(){return f.AttachmentUrlHelper});i.o(f,"Base64")&&i.d(t,"Base64",function(){return f.Base64});i.o(f,"BaseElement")&&i.d(t,"BaseElement",function(){return f.BaseElement});i.o(f,"BaseHomePage")&&i.d(t,"BaseHomePage",function(){return f.BaseHomePage});i.o(f,"BasePage")&&i.d(t,"BasePage",function(){return f.BasePage});i.o(f,"BaseScroll")&&i.d(t,"BaseScroll",function(){return f.BaseScroll});i.o(f,"BiGroup")&&i.d(t,"BiGroup",function(){return f.BiGroup});i.o(f,"BrowserInfoPage")&&i.d(t,"BrowserInfoPage",function(){return f.BrowserInfoPage});i.o(f,"ColorHelper")&&i.d(t,"ColorHelper",function(){return f.ColorHelper});i.o(f,"CommandData")&&i.d(t,"CommandData",function(){return f.CommandData});i.o(f,"Constants")&&i.d(t,"Constants",function(){return f.Constants});i.o(f,"CookieBox")&&i.d(t,"CookieBox",function(){return f.CookieBox});i.o(f,"CookieHelper")&&i.d(t,"CookieHelper",function(){return f.CookieHelper});i.o(f,"CookieInfoPage")&&i.d(t,"CookieInfoPage",function(){return f.CookieInfoPage});i.o(f,"Credentials")&&i.d(t,"Credentials",function(){return f.Credentials});i.o(f,"CredentialsAdfs")&&i.d(t,"CredentialsAdfs",function(){return f.CredentialsAdfs});i.o(f,"CredentialsImpersonate")&&i.d(t,"CredentialsImpersonate",function(){return f.CredentialsImpersonate});i.o(f,"CredentialsLink")&&i.d(t,"CredentialsLink",function(){return f.CredentialsLink});i.o(f,"CredentialsLogin")&&i.d(t,"CredentialsLogin",function(){return f.CredentialsLogin});i.o(f,"DOMHelper")&&i.d(t,"DOMHelper",function(){return f.DOMHelper});i.o(f,"DataElement")&&i.d(t,"DataElement",function(){return f.DataElement});i.o(f,"DateHelper")&&i.d(t,"DateHelper",function(){return f.DateHelper});i.o(f,"DbInfoPage")&&i.d(t,"DbInfoPage",function(){return f.DbInfoPage});i.o(f,"DecodeUri")&&i.d(t,"DecodeUri",function(){return f.DecodeUri});i.o(f,"Describer")&&i.d(t,"Describer",function(){return f.Describer});i.o(f,"DeviceType")&&i.d(t,"DeviceType",function(){return f.DeviceType});i.o(f,"DiagramLoader")&&i.d(t,"DiagramLoader",function(){return f.DiagramLoader});i.o(f,"DialogData")&&i.d(t,"DialogData",function(){return f.DialogData});i.o(f,"Dictionary")&&i.d(t,"Dictionary",function(){return f.Dictionary});i.o(f,"DictionaryContent")&&i.d(t,"DictionaryContent",function(){return f.DictionaryContent});i.o(f,"DictionaryEx")&&i.d(t,"DictionaryEx",function(){return f.DictionaryEx});i.o(f,"EditCombo")&&i.d(t,"EditCombo",function(){return f.EditCombo});i.o(f,"EditDictionary")&&i.d(t,"EditDictionary",function(){return f.EditDictionary});i.o(f,"EditLookup")&&i.d(t,"EditLookup",function(){return f.EditLookup});i.o(f,"ErrorPage")&&i.d(t,"ErrorPage",function(){return f.ErrorPage});i.o(f,"EventListenerRegistrar")&&i.d(t,"EventListenerRegistrar",function(){return f.EventListenerRegistrar});i.o(f,"EventSet")&&i.d(t,"EventSet",function(){return f.EventSet});i.o(f,"FactoryNavigationMenuSource")&&i.d(t,"FactoryNavigationMenuSource",function(){return f.FactoryNavigationMenuSource});i.o(f,"FactorySlideMenuSource")&&i.d(t,"FactorySlideMenuSource",function(){return f.FactorySlideMenuSource});i.o(f,"FeatureElement")&&i.d(t,"FeatureElement",function(){return f.FeatureElement});i.o(f,"FieldData")&&i.d(t,"FieldData",function(){return f.FieldData});i.o(f,"FilterGroup")&&i.d(t,"FilterGroup",function(){return f.FilterGroup});i.o(f,"FireCustomFocus")&&i.d(t,"FireCustomFocus",function(){return f.FireCustomFocus});i.o(f,"FolderData")&&i.d(t,"FolderData",function(){return f.FolderData});i.o(f,"FolderWindow")&&i.d(t,"FolderWindow",function(){return f.FolderWindow});i.o(f,"FormEditInPlace")&&i.d(t,"FormEditInPlace",function(){return f.FormEditInPlace});i.o(f,"FormView")&&i.d(t,"FormView",function(){return f.FormView});i.o(f,"FormWindow")&&i.d(t,"FormWindow",function(){return f.FormWindow});i.o(f,"FrameWindow")&&i.d(t,"FrameWindow",function(){return f.FrameWindow});i.o(f,"GanttData")&&i.d(t,"GanttData",function(){return f.GanttData});i.o(f,"GanttLoader")&&i.d(t,"GanttLoader",function(){return f.GanttLoader});i.o(f,"GetDeviceInfo")&&i.d(t,"GetDeviceInfo",function(){return f.GetDeviceInfo});i.o(f,"GetIgnoreNextHashChanging")&&i.d(t,"GetIgnoreNextHashChanging",function(){return f.GetIgnoreNextHashChanging});i.o(f,"GetLink")&&i.d(t,"GetLink",function(){return f.GetLink});i.o(f,"GetValueFormNode")&&i.d(t,"GetValueFormNode",function(){return f.GetValueFormNode});i.o(f,"GlobalSettings")&&i.d(t,"GlobalSettings",function(){return f.GlobalSettings});i.o(f,"GridBarGroup")&&i.d(t,"GridBarGroup",function(){return f.GridBarGroup});i.o(f,"GridData")&&i.d(t,"GridData",function(){return f.GridData});i.o(f,"GridPatternHelper")&&i.d(t,"GridPatternHelper",function(){return f.GridPatternHelper});i.o(f,"GridScroll")&&i.d(t,"GridScroll",function(){return f.GridScroll});i.o(f,"Group")&&i.d(t,"Group",function(){return f.Group});i.o(f,"GroupBase")&&i.d(t,"GroupBase",function(){return f.GroupBase});i.o(f,"GroupMenu")&&i.d(t,"GroupMenu",function(){return f.GroupMenu});i.o(f,"Guid")&&i.d(t,"Guid",function(){return f.Guid});i.o(f,"HashHelper")&&i.d(t,"HashHelper",function(){return f.HashHelper});i.o(f,"HeaderBarBrowser")&&i.d(t,"HeaderBarBrowser",function(){return f.HeaderBarBrowser});i.o(f,"HeaderBarCommand")&&i.d(t,"HeaderBarCommand",function(){return f.HeaderBarCommand});i.o(f,"HeaderBarKeyNavigator")&&i.d(t,"HeaderBarKeyNavigator",function(){return f.HeaderBarKeyNavigator});i.o(f,"HeaderBarMobile")&&i.d(t,"HeaderBarMobile",function(){return f.HeaderBarMobile});i.o(f,"Html")&&i.d(t,"Html",function(){return f.Html});i.o(f,"Image")&&i.d(t,"Image",function(){return f.Image});i.o(f,"ImageControlView")&&i.d(t,"ImageControlView",function(){return f.ImageControlView});i.o(f,"ImpersonateInfoPage")&&i.d(t,"ImpersonateInfoPage",function(){return f.ImpersonateInfoPage});i.o(f,"Include")&&i.d(t,"Include",function(){return f.Include});i.o(f,"Indicator")&&i.d(t,"Indicator",function(){return f.Indicator});i.o(f,"IndicatorPremium")&&i.d(t,"IndicatorPremium",function(){return f.IndicatorPremium});i.o(f,"IndicatorPremiumDashboard")&&i.d(t,"IndicatorPremiumDashboard",function(){return f.IndicatorPremiumDashboard});i.o(f,"InfiniteScroll")&&i.d(t,"InfiniteScroll",function(){return f.InfiniteScroll});i.o(f,"IpInfoPage")&&i.d(t,"IpInfoPage",function(){return f.IpInfoPage});i.o(f,"IsDebug")&&i.d(t,"IsDebug",function(){return f.IsDebug});i.o(f,"JoditLoader")&&i.d(t,"JoditLoader",function(){return f.JoditLoader});i.o(f,"KeyPressInject")&&i.d(t,"KeyPressInject",function(){return f.KeyPressInject});i.o(f,"KeyShortcut")&&i.d(t,"KeyShortcut",function(){return f.KeyShortcut});i.o(f,"Label")&&i.d(t,"Label",function(){return f.Label});i.o(f,"LanguageConstants")&&i.d(t,"LanguageConstants",function(){return f.LanguageConstants});i.o(f,"LibraryLoader")&&i.d(t,"LibraryLoader",function(){return f.LibraryLoader});i.o(f,"Loader")&&i.d(t,"Loader",function(){return f.Loader});i.o(f,"Location")&&i.d(t,"Location",function(){return f.Location});i.o(f,"LogOffInfoPage")&&i.d(t,"LogOffInfoPage",function(){return f.LogOffInfoPage});i.o(f,"LogOffPage")&&i.d(t,"LogOffPage",function(){return f.LogOffPage});i.o(f,"Login")&&i.d(t,"Login",function(){return f.Login});i.o(f,"LoginAdfsPage")&&i.d(t,"LoginAdfsPage",function(){return f.LoginAdfsPage});i.o(f,"LoginImpersonate")&&i.d(t,"LoginImpersonate",function(){return f.LoginImpersonate});i.o(f,"LookupBase")&&i.d(t,"LookupBase",function(){return f.LookupBase});i.o(f,"LookupContent")&&i.d(t,"LookupContent",function(){return f.LookupContent});i.o(f,"LookupHeader")&&i.d(t,"LookupHeader",function(){return f.LookupHeader});i.o(f,"LookupRowElement")&&i.d(t,"LookupRowElement",function(){return f.LookupRowElement});i.o(f,"LookupRowSpecial")&&i.d(t,"LookupRowSpecial",function(){return f.LookupRowSpecial});i.o(f,"MenuKeyNavigatorBase")&&i.d(t,"MenuKeyNavigatorBase",function(){return f.MenuKeyNavigatorBase});i.o(f,"MergeRecursive")&&i.d(t,"MergeRecursive",function(){return f.MergeRecursive});i.o(f,"ModalWindow")&&i.d(t,"ModalWindow",function(){return f.ModalWindow});i.o(f,"NavArrow")&&i.d(t,"NavArrow",function(){return f.NavArrow});i.o(f,"NavigationMenu")&&i.d(t,"NavigationMenu",function(){return f.NavigationMenu});i.o(f,"NavigationMenuElement")&&i.d(t,"NavigationMenuElement",function(){return f.NavigationMenuElement});i.o(f,"NavigationMenuForm")&&i.d(t,"NavigationMenuForm",function(){return f.NavigationMenuForm});i.o(f,"NavigationMenuItem")&&i.d(t,"NavigationMenuItem",function(){return f.NavigationMenuItem});i.o(f,"NavigationMenuKeyNavigator")&&i.d(t,"NavigationMenuKeyNavigator",function(){return f.NavigationMenuKeyNavigator});i.o(f,"OnErrorLogin")&&i.d(t,"OnErrorLogin",function(){return f.OnErrorLogin});i.o(f,"OnSuccessLogin")&&i.d(t,"OnSuccessLogin",function(){return f.OnSuccessLogin});i.o(f,"PageFactory")&&i.d(t,"PageFactory",function(){return f.PageFactory});i.o(f,"PathBar")&&i.d(t,"PathBar",function(){return f.PathBar});i.o(f,"PathBarCommand")&&i.d(t,"PathBarCommand",function(){return f.PathBarCommand});i.o(f,"PathBarPremium")&&i.d(t,"PathBarPremium",function(){return f.PathBarPremium});i.o(f,"PdfViewer")&&i.d(t,"PdfViewer",function(){return f.PdfViewer});i.o(f,"PercentIndicator")&&i.d(t,"PercentIndicator",function(){return f.PercentIndicator});i.o(f,"Player")&&i.d(t,"Player",function(){return f.Player});i.o(f,"PopupHelper")&&i.d(t,"PopupHelper",function(){return f.PopupHelper});i.o(f,"PopupWindow")&&i.d(t,"PopupWindow",function(){return f.PopupWindow});i.o(f,"ProfileInfo")&&i.d(t,"ProfileInfo",function(){return f.ProfileInfo});i.o(f,"ProfileMenu")&&i.d(t,"ProfileMenu",function(){return f.ProfileMenu});i.o(f,"ProfileMenuItem")&&i.d(t,"ProfileMenuItem",function(){return f.ProfileMenuItem});i.o(f,"RecoveryPage")&&i.d(t,"RecoveryPage",function(){return f.RecoveryPage});i.o(f,"RecoveryPanel")&&i.d(t,"RecoveryPanel",function(){return f.RecoveryPanel});i.o(f,"ReminderHelper")&&i.d(t,"ReminderHelper",function(){return f.ReminderHelper});i.o(f,"Request")&&i.d(t,"Request",function(){return f.Request});i.o(f,"Row")&&i.d(t,"Row",function(){return f.Row});i.o(f,"RowData")&&i.d(t,"RowData",function(){return f.RowData});i.o(f,"RowElement")&&i.d(t,"RowElement",function(){return f.RowElement});i.o(f,"SPromise")&&i.d(t,"SPromise",function(){return f.SPromise});i.o(f,"SchedulerBase")&&i.d(t,"SchedulerBase",function(){return f.SchedulerBase});i.o(f,"SchedulerBrowser")&&i.d(t,"SchedulerBrowser",function(){return f.SchedulerBrowser});i.o(f,"SchedulerCalendar")&&i.d(t,"SchedulerCalendar",function(){return f.SchedulerCalendar});i.o(f,"SchedulerCommonSelector")&&i.d(t,"SchedulerCommonSelector",function(){return f.SchedulerCommonSelector});i.o(f,"SchedulerCustomizer")&&i.d(t,"SchedulerCustomizer",function(){return f.SchedulerCustomizer});i.o(f,"SchedulerDayLineSelector")&&i.d(t,"SchedulerDayLineSelector",function(){return f.SchedulerDayLineSelector});i.o(f,"SchedulerDaySelector")&&i.d(t,"SchedulerDaySelector",function(){return f.SchedulerDaySelector});i.o(f,"SchedulerEvent")&&i.d(t,"SchedulerEvent",function(){return f.SchedulerEvent});i.o(f,"SchedulerEventPeriod")&&i.d(t,"SchedulerEventPeriod",function(){return f.SchedulerEventPeriod});i.o(f,"SchedulerLoader")&&i.d(t,"SchedulerLoader",function(){return f.SchedulerLoader});i.o(f,"SchedulerMobile")&&i.d(t,"SchedulerMobile",function(){return f.SchedulerMobile});i.o(f,"SchedulerMonthSelector")&&i.d(t,"SchedulerMonthSelector",function(){return f.SchedulerMonthSelector});i.o(f,"SchedulerSelector")&&i.d(t,"SchedulerSelector",function(){return f.SchedulerSelector});i.o(f,"SchedulerSimple")&&i.d(t,"SchedulerSimple",function(){return f.SchedulerSimple});i.o(f,"SchedulerTask")&&i.d(t,"SchedulerTask",function(){return f.SchedulerTask});i.o(f,"SchedulerTimeLineSelector")&&i.d(t,"SchedulerTimeLineSelector",function(){return f.SchedulerTimeLineSelector});i.o(f,"SchedulerWeekSelector")&&i.d(t,"SchedulerWeekSelector",function(){return f.SchedulerWeekSelector});i.o(f,"ScriptPlayer")&&i.d(t,"ScriptPlayer",function(){return f.ScriptPlayer});i.o(f,"Scroll")&&i.d(t,"Scroll",function(){return f.Scroll});i.o(f,"SetAddressHash")&&i.d(t,"SetAddressHash",function(){return f.SetAddressHash});i.o(f,"SetIgnoreNextHashChanging")&&i.d(t,"SetIgnoreNextHashChanging",function(){return f.SetIgnoreNextHashChanging});i.o(f,"ShortcutCommand")&&i.d(t,"ShortcutCommand",function(){return f.ShortcutCommand});i.o(f,"ShortcutWindow")&&i.d(t,"ShortcutWindow",function(){return f.ShortcutWindow});i.o(f,"ShortcutWindowKeyNavigator")&&i.d(t,"ShortcutWindowKeyNavigator",function(){return f.ShortcutWindowKeyNavigator});i.o(f,"SignInPanel")&&i.d(t,"SignInPanel",function(){return f.SignInPanel});i.o(f,"SimpleFormBase")&&i.d(t,"SimpleFormBase",function(){return f.SimpleFormBase});i.o(f,"SimpleMenu")&&i.d(t,"SimpleMenu",function(){return f.SimpleMenu});i.o(f,"SimpleMenuItem")&&i.d(t,"SimpleMenuItem",function(){return f.SimpleMenuItem});i.o(f,"SimpleMenuKeyNavigator")&&i.d(t,"SimpleMenuKeyNavigator",function(){return f.SimpleMenuKeyNavigator});i.o(f,"SlideMenu")&&i.d(t,"SlideMenu",function(){return f.SlideMenu});i.o(f,"SlideMenuContent")&&i.d(t,"SlideMenuContent",function(){return f.SlideMenuContent});i.o(f,"SlideMenuGroup")&&i.d(t,"SlideMenuGroup",function(){return f.SlideMenuGroup});i.o(f,"SlideMenuItem")&&i.d(t,"SlideMenuItem",function(){return f.SlideMenuItem});i.o(f,"SonetaServer")&&i.d(t,"SonetaServer",function(){return f.SonetaServer});i.o(f,"Spinner")&&i.d(t,"Spinner",function(){return f.Spinner});i.o(f,"Splitter")&&i.d(t,"Splitter",function(){return f.Splitter});i.o(f,"Stack")&&i.d(t,"Stack",function(){return f.Stack});i.o(f,"StorageHelper")&&i.d(t,"StorageHelper",function(){return f.StorageHelper});i.o(f,"StorageType")&&i.d(t,"StorageType",function(){return f.StorageType});i.o(f,"SvgIcon")&&i.d(t,"SvgIcon",function(){return f.SvgIcon});i.o(f,"SvgManager")&&i.d(t,"SvgManager",function(){return f.SvgManager});i.o(f,"SvgType")&&i.d(t,"SvgType",function(){return f.SvgType});i.o(f,"SwipeDetector")&&i.d(t,"SwipeDetector",function(){return f.SwipeDetector});i.o(f,"SwipeDir")&&i.d(t,"SwipeDir",function(){return f.SwipeDir});i.o(f,"SwipeMode")&&i.d(t,"SwipeMode",function(){return f.SwipeMode});i.o(f,"SwipeRange")&&i.d(t,"SwipeRange",function(){return f.SwipeRange});i.o(f,"SwipedPanel")&&i.d(t,"SwipedPanel",function(){return f.SwipedPanel});i.o(f,"Test")&&i.d(t,"Test",function(){return f.Test});i.o(f,"TestBase")&&i.d(t,"TestBase",function(){return f.TestBase});i.o(f,"TestServer")&&i.d(t,"TestServer",function(){return f.TestServer});i.o(f,"TestStep")&&i.d(t,"TestStep",function(){return f.TestStep});i.o(f,"TestsWindow")&&i.d(t,"TestsWindow",function(){return f.TestsWindow});i.o(f,"TestsWindowFinished")&&i.d(t,"TestsWindowFinished",function(){return f.TestsWindowFinished});i.o(f,"TestsWindowHeader")&&i.d(t,"TestsWindowHeader",function(){return f.TestsWindowHeader});i.o(f,"TextControlView")&&i.d(t,"TextControlView",function(){return f.TextControlView});i.o(f,"ThemePicker")&&i.d(t,"ThemePicker",function(){return f.ThemePicker});i.o(f,"TileGroup")&&i.d(t,"TileGroup",function(){return f.TileGroup});i.o(f,"TileGroupPremium")&&i.d(t,"TileGroupPremium",function(){return f.TileGroupPremium});i.o(f,"TileItem")&&i.d(t,"TileItem",function(){return f.TileItem});i.o(f,"TileItemLarge")&&i.d(t,"TileItemLarge",function(){return f.TileItemLarge});i.o(f,"TileItemPremium")&&i.d(t,"TileItemPremium",function(){return f.TileItemPremium});i.o(f,"TileMenu")&&i.d(t,"TileMenu",function(){return f.TileMenu});i.o(f,"TileMenuKeyNavigator")&&i.d(t,"TileMenuKeyNavigator",function(){return f.TileMenuKeyNavigator});i.o(f,"TimePicker")&&i.d(t,"TimePicker",function(){return f.TimePicker});i.o(f,"TimePickerContent")&&i.d(t,"TimePickerContent",function(){return f.TimePickerContent});i.o(f,"UnverifiedProductInfo")&&i.d(t,"UnverifiedProductInfo",function(){return f.UnverifiedProductInfo});i.o(f,"UriHelper")&&i.d(t,"UriHelper",function(){return f.UriHelper});i.o(f,"UtilsData")&&i.d(t,"UtilsData",function(){return f.UtilsData});i.o(f,"ValueThenable")&&i.d(t,"ValueThenable",function(){return f.ValueThenable});i.o(f,"Verifier")&&i.d(t,"Verifier",function(){return f.Verifier});i.o(f,"VerifierBar")&&i.d(t,"VerifierBar",function(){return f.VerifierBar});i.o(f,"VerifierElement")&&i.d(t,"VerifierElement",function(){return f.VerifierElement});i.o(f,"VerifierType")&&i.d(t,"VerifierType",function(){return f.VerifierType});i.o(f,"WindowBarBase")&&i.d(t,"WindowBarBase",function(){return f.WindowBarBase});i.o(f,"WindowBarBrowser")&&i.d(t,"WindowBarBrowser",function(){return f.WindowBarBrowser});i.o(f,"WindowBarBrowserPremium")&&i.d(t,"WindowBarBrowserPremium",function(){return f.WindowBarBrowserPremium});i.o(f,"WindowBarCalculator")&&i.d(t,"WindowBarCalculator",function(){return f.WindowBarCalculator});i.o(f,"WindowBarCommand")&&i.d(t,"WindowBarCommand",function(){return f.WindowBarCommand});i.o(f,"WindowBarCommandClose")&&i.d(t,"WindowBarCommandClose",function(){return f.WindowBarCommandClose});i.o(f,"WindowBarCommands")&&i.d(t,"WindowBarCommands",function(){return f.WindowBarCommands});i.o(f,"WindowBarCommandsKeyNavigator")&&i.d(t,"WindowBarCommandsKeyNavigator",function(){return f.WindowBarCommandsKeyNavigator});i.o(f,"WindowBarKeyNavigator")&&i.d(t,"WindowBarKeyNavigator",function(){return f.WindowBarKeyNavigator});i.o(f,"WindowBarNavFormCommand")&&i.d(t,"WindowBarNavFormCommand",function(){return f.WindowBarNavFormCommand});i.o(f,"WindowBase")&&i.d(t,"WindowBase",function(){return f.WindowBase});i.o(f,"WindowElement")&&i.d(t,"WindowElement",function(){return f.WindowElement});i.o(f,"WindowManager")&&i.d(t,"WindowManager",function(){return f.WindowManager});i.o(f,"WizardWindow")&&i.d(t,"WizardWindow",function(){return f.WizardWindow});i.o(f,"YearMonth")&&i.d(t,"YearMonth",function(){return f.YearMonth});i.o(f,"checkElements")&&i.d(t,"checkElements",function(){return f.checkElements});i.o(f,"decodeScript")&&i.d(t,"decodeScript",function(){return f.decodeScript});i.o(f,"decodeString")&&i.d(t,"decodeString",function(){return f.decodeString});i.o(f,"encodeString")&&i.d(t,"encodeString",function(){return f.encodeString});i.o(f,"getToday")&&i.d(t,"getToday",function(){return f.getToday});i.o(f,"hasParentNode")&&i.d(t,"hasParentNode",function(){return f.hasParentNode});i.o(f,"isEdge")&&i.d(t,"isEdge",function(){return f.isEdge});i.o(f,"isIE11")&&i.d(t,"isIE11",function(){return f.isIE11});i.o(f,"isTouchDevice")&&i.d(t,"isTouchDevice",function(){return f.isTouchDevice});i.o(f,"log")&&i.d(t,"log",function(){return f.log});i.o(f,"resetCacheElements")&&i.d(t,"resetCacheElements",function(){return f.resetCacheElements});i.o(f,"returnDeviseType")&&i.d(t,"returnDeviseType",function(){return f.returnDeviseType});i.o(f,"scrollToSmoothly")&&i.d(t,"scrollToSmoothly",function(){return f.scrollToSmoothly});i.o(f,"setTimeoutPromise")&&i.d(t,"setTimeoutPromise",function(){return f.setTimeoutPromise});i.o(f,"uploadFile")&&i.d(t,"uploadFile",function(){return f.uploadFile});i.o(f,"zeroPad")&&i.d(t,"zeroPad",function(){return f.zeroPad});sc=i(333);i.d(t,"GroupBase",function(){return sc.a});hc=i(334);i.d(t,"Group",function(){return hc.a});cc=i(335);i.d(t,"BiGroup",function(){return cc.a});lc=i(336);i.d(t,"FilterGroup",function(){return lc.a});ac=i(337);i.d(t,"GridBarGroup",function(){return ac.a});vc=i(338);i.d(t,"GroupMenu",function(){return vc.a});yc=i(339);i.d(t,"HeaderBarBrowser",function(){return yc.a});pc=i(340);i.d(t,"HeaderBarCommand",function(){return pc.a});wc=i(341);i.d(t,"HeaderBarKeyNavigator",function(){return wc.a});bc=i(342);i.d(t,"HeaderBarMobile",function(){return bc.a});kc=i(343);i.d(t,"Html",function(){return kc.a});dc=i(344);i.d(t,"Image",function(){return dc.a});gc=i(345);i.d(t,"Include",function(){return gc.a});nl=i(346);i.d(t,"Indicator",function(){return nl.a});tl=i(347);i.d(t,"IndicatorPremium",function(){return tl.a});il=i(348);i.d(t,"IndicatorPremiumDashboard",function(){return il.a});rl=i(349);i.d(t,"PercentIndicator",function(){return rl.a});ul=i(350);i.d(t,"InfiniteScroll",function(){return ul.a});fl=i(351);i.d(t,"Label",function(){return fl.a});el=i(352);i.d(t,"Loader",function(){return el.a});ol=i(353);i.d(t,"Spinner",function(){return ol.a});sl=i(354);i.d(t,"DictionaryContent",function(){return sl.a});hl=i(355);i.d(t,"LookupBase",function(){return hl.a});cl=i(356);i.d(t,"EditCombo",function(){return cl.a});ll=i(357);i.d(t,"EditDictionary",function(){return ll.a});al=i(358);i.d(t,"EditLookup",function(){return al.a});e=i(359);i.o(e,"AdfsInfoPage")&&i.d(t,"AdfsInfoPage",function(){return e.AdfsInfoPage});i.o(e,"AnchorPosition")&&i.d(t,"AnchorPosition",function(){return e.AnchorPosition});i.o(e,"App")&&i.d(t,"App",function(){return e.App});i.o(e,"AppearancePalette")&&i.d(t,"AppearancePalette",function(){return e.AppearancePalette});i.o(e,"Assert")&&i.d(t,"Assert",function(){return e.Assert});i.o(e,"AssertError")&&i.d(t,"AssertError",function(){return e.AssertError});i.o(e,"AttachmentUrlHelper")&&i.d(t,"AttachmentUrlHelper",function(){return e.AttachmentUrlHelper});i.o(e,"Base64")&&i.d(t,"Base64",function(){return e.Base64});i.o(e,"BaseElement")&&i.d(t,"BaseElement",function(){return e.BaseElement});i.o(e,"BaseHomePage")&&i.d(t,"BaseHomePage",function(){return e.BaseHomePage});i.o(e,"BasePage")&&i.d(t,"BasePage",function(){return e.BasePage});i.o(e,"BaseScroll")&&i.d(t,"BaseScroll",function(){return e.BaseScroll});i.o(e,"BrowserInfoPage")&&i.d(t,"BrowserInfoPage",function(){return e.BrowserInfoPage});i.o(e,"ColorHelper")&&i.d(t,"ColorHelper",function(){return e.ColorHelper});i.o(e,"CommandData")&&i.d(t,"CommandData",function(){return e.CommandData});i.o(e,"Constants")&&i.d(t,"Constants",function(){return e.Constants});i.o(e,"CookieBox")&&i.d(t,"CookieBox",function(){return e.CookieBox});i.o(e,"CookieHelper")&&i.d(t,"CookieHelper",function(){return e.CookieHelper});i.o(e,"CookieInfoPage")&&i.d(t,"CookieInfoPage",function(){return e.CookieInfoPage});i.o(e,"Credentials")&&i.d(t,"Credentials",function(){return e.Credentials});i.o(e,"CredentialsAdfs")&&i.d(t,"CredentialsAdfs",function(){return e.CredentialsAdfs});i.o(e,"CredentialsImpersonate")&&i.d(t,"CredentialsImpersonate",function(){return e.CredentialsImpersonate});i.o(e,"CredentialsLink")&&i.d(t,"CredentialsLink",function(){return e.CredentialsLink});i.o(e,"CredentialsLogin")&&i.d(t,"CredentialsLogin",function(){return e.CredentialsLogin});i.o(e,"DOMHelper")&&i.d(t,"DOMHelper",function(){return e.DOMHelper});i.o(e,"DataElement")&&i.d(t,"DataElement",function(){return e.DataElement});i.o(e,"DateHelper")&&i.d(t,"DateHelper",function(){return e.DateHelper});i.o(e,"DbInfoPage")&&i.d(t,"DbInfoPage",function(){return e.DbInfoPage});i.o(e,"DecodeUri")&&i.d(t,"DecodeUri",function(){return e.DecodeUri});i.o(e,"Describer")&&i.d(t,"Describer",function(){return e.Describer});i.o(e,"DeviceType")&&i.d(t,"DeviceType",function(){return e.DeviceType});i.o(e,"DiagramLoader")&&i.d(t,"DiagramLoader",function(){return e.DiagramLoader});i.o(e,"DialogData")&&i.d(t,"DialogData",function(){return e.DialogData});i.o(e,"Dictionary")&&i.d(t,"Dictionary",function(){return e.Dictionary});i.o(e,"DictionaryEx")&&i.d(t,"DictionaryEx",function(){return e.DictionaryEx});i.o(e,"ErrorPage")&&i.d(t,"ErrorPage",function(){return e.ErrorPage});i.o(e,"EventListenerRegistrar")&&i.d(t,"EventListenerRegistrar",function(){return e.EventListenerRegistrar});i.o(e,"EventSet")&&i.d(t,"EventSet",function(){return e.EventSet});i.o(e,"FactoryNavigationMenuSource")&&i.d(t,"FactoryNavigationMenuSource",function(){return e.FactoryNavigationMenuSource});i.o(e,"FactorySlideMenuSource")&&i.d(t,"FactorySlideMenuSource",function(){return e.FactorySlideMenuSource});i.o(e,"FeatureElement")&&i.d(t,"FeatureElement",function(){return e.FeatureElement});i.o(e,"FieldData")&&i.d(t,"FieldData",function(){return e.FieldData});i.o(e,"FireCustomFocus")&&i.d(t,"FireCustomFocus",function(){return e.FireCustomFocus});i.o(e,"FolderData")&&i.d(t,"FolderData",function(){return e.FolderData});i.o(e,"FolderWindow")&&i.d(t,"FolderWindow",function(){return e.FolderWindow});i.o(e,"FormEditInPlace")&&i.d(t,"FormEditInPlace",function(){return e.FormEditInPlace});i.o(e,"FormView")&&i.d(t,"FormView",function(){return e.FormView});i.o(e,"FormWindow")&&i.d(t,"FormWindow",function(){return e.FormWindow});i.o(e,"FrameWindow")&&i.d(t,"FrameWindow",function(){return e.FrameWindow});i.o(e,"GanttData")&&i.d(t,"GanttData",function(){return e.GanttData});i.o(e,"GanttLoader")&&i.d(t,"GanttLoader",function(){return e.GanttLoader});i.o(e,"GetDeviceInfo")&&i.d(t,"GetDeviceInfo",function(){return e.GetDeviceInfo});i.o(e,"GetIgnoreNextHashChanging")&&i.d(t,"GetIgnoreNextHashChanging",function(){return e.GetIgnoreNextHashChanging});i.o(e,"GetLink")&&i.d(t,"GetLink",function(){return e.GetLink});i.o(e,"GetValueFormNode")&&i.d(t,"GetValueFormNode",function(){return e.GetValueFormNode});i.o(e,"GlobalSettings")&&i.d(t,"GlobalSettings",function(){return e.GlobalSettings});i.o(e,"GridData")&&i.d(t,"GridData",function(){return e.GridData});i.o(e,"GridPatternHelper")&&i.d(t,"GridPatternHelper",function(){return e.GridPatternHelper});i.o(e,"GridScroll")&&i.d(t,"GridScroll",function(){return e.GridScroll});i.o(e,"Guid")&&i.d(t,"Guid",function(){return e.Guid});i.o(e,"HashHelper")&&i.d(t,"HashHelper",function(){return e.HashHelper});i.o(e,"ImageControlView")&&i.d(t,"ImageControlView",function(){return e.ImageControlView});i.o(e,"ImpersonateInfoPage")&&i.d(t,"ImpersonateInfoPage",function(){return e.ImpersonateInfoPage});i.o(e,"IpInfoPage")&&i.d(t,"IpInfoPage",function(){return e.IpInfoPage});i.o(e,"IsDebug")&&i.d(t,"IsDebug",function(){return e.IsDebug});i.o(e,"JoditLoader")&&i.d(t,"JoditLoader",function(){return e.JoditLoader});i.o(e,"KeyPressInject")&&i.d(t,"KeyPressInject",function(){return e.KeyPressInject});i.o(e,"KeyShortcut")&&i.d(t,"KeyShortcut",function(){return e.KeyShortcut});i.o(e,"LanguageConstants")&&i.d(t,"LanguageConstants",function(){return e.LanguageConstants});i.o(e,"LibraryLoader")&&i.d(t,"LibraryLoader",function(){return e.LibraryLoader});i.o(e,"Location")&&i.d(t,"Location",function(){return e.Location});i.o(e,"LogOffInfoPage")&&i.d(t,"LogOffInfoPage",function(){return e.LogOffInfoPage});i.o(e,"LogOffPage")&&i.d(t,"LogOffPage",function(){return e.LogOffPage});i.o(e,"Login")&&i.d(t,"Login",function(){return e.Login});i.o(e,"LoginAdfsPage")&&i.d(t,"LoginAdfsPage",function(){return e.LoginAdfsPage});i.o(e,"LoginImpersonate")&&i.d(t,"LoginImpersonate",function(){return e.LoginImpersonate});i.o(e,"LookupContent")&&i.d(t,"LookupContent",function(){return e.LookupContent});i.o(e,"LookupHeader")&&i.d(t,"LookupHeader",function(){return e.LookupHeader});i.o(e,"LookupRowElement")&&i.d(t,"LookupRowElement",function(){return e.LookupRowElement});i.o(e,"LookupRowSpecial")&&i.d(t,"LookupRowSpecial",function(){return e.LookupRowSpecial});i.o(e,"MenuKeyNavigatorBase")&&i.d(t,"MenuKeyNavigatorBase",function(){return e.MenuKeyNavigatorBase});i.o(e,"MergeRecursive")&&i.d(t,"MergeRecursive",function(){return e.MergeRecursive});i.o(e,"ModalWindow")&&i.d(t,"ModalWindow",function(){return e.ModalWindow});i.o(e,"NavArrow")&&i.d(t,"NavArrow",function(){return e.NavArrow});i.o(e,"NavigationMenu")&&i.d(t,"NavigationMenu",function(){return e.NavigationMenu});i.o(e,"NavigationMenuElement")&&i.d(t,"NavigationMenuElement",function(){return e.NavigationMenuElement});i.o(e,"NavigationMenuForm")&&i.d(t,"NavigationMenuForm",function(){return e.NavigationMenuForm});i.o(e,"NavigationMenuItem")&&i.d(t,"NavigationMenuItem",function(){return e.NavigationMenuItem});i.o(e,"NavigationMenuKeyNavigator")&&i.d(t,"NavigationMenuKeyNavigator",function(){return e.NavigationMenuKeyNavigator});i.o(e,"OnErrorLogin")&&i.d(t,"OnErrorLogin",function(){return e.OnErrorLogin});i.o(e,"OnSuccessLogin")&&i.d(t,"OnSuccessLogin",function(){return e.OnSuccessLogin});i.o(e,"PageFactory")&&i.d(t,"PageFactory",function(){return e.PageFactory});i.o(e,"PathBar")&&i.d(t,"PathBar",function(){return e.PathBar});i.o(e,"PathBarCommand")&&i.d(t,"PathBarCommand",function(){return e.PathBarCommand});i.o(e,"PathBarPremium")&&i.d(t,"PathBarPremium",function(){return e.PathBarPremium});i.o(e,"PdfViewer")&&i.d(t,"PdfViewer",function(){return e.PdfViewer});i.o(e,"Player")&&i.d(t,"Player",function(){return e.Player});i.o(e,"PopupHelper")&&i.d(t,"PopupHelper",function(){return e.PopupHelper});i.o(e,"PopupWindow")&&i.d(t,"PopupWindow",function(){return e.PopupWindow});i.o(e,"ProfileInfo")&&i.d(t,"ProfileInfo",function(){return e.ProfileInfo});i.o(e,"ProfileMenu")&&i.d(t,"ProfileMenu",function(){return e.ProfileMenu});i.o(e,"ProfileMenuItem")&&i.d(t,"ProfileMenuItem",function(){return e.ProfileMenuItem});i.o(e,"RecoveryPage")&&i.d(t,"RecoveryPage",function(){return e.RecoveryPage});i.o(e,"RecoveryPanel")&&i.d(t,"RecoveryPanel",function(){return e.RecoveryPanel});i.o(e,"ReminderHelper")&&i.d(t,"ReminderHelper",function(){return e.ReminderHelper});i.o(e,"Request")&&i.d(t,"Request",function(){return e.Request});i.o(e,"Row")&&i.d(t,"Row",function(){return e.Row});i.o(e,"RowData")&&i.d(t,"RowData",function(){return e.RowData});i.o(e,"RowElement")&&i.d(t,"RowElement",function(){return e.RowElement});i.o(e,"SPromise")&&i.d(t,"SPromise",function(){return e.SPromise});i.o(e,"SchedulerBase")&&i.d(t,"SchedulerBase",function(){return e.SchedulerBase});i.o(e,"SchedulerBrowser")&&i.d(t,"SchedulerBrowser",function(){return e.SchedulerBrowser});i.o(e,"SchedulerCalendar")&&i.d(t,"SchedulerCalendar",function(){return e.SchedulerCalendar});i.o(e,"SchedulerCommonSelector")&&i.d(t,"SchedulerCommonSelector",function(){return e.SchedulerCommonSelector});i.o(e,"SchedulerCustomizer")&&i.d(t,"SchedulerCustomizer",function(){return e.SchedulerCustomizer});i.o(e,"SchedulerDayLineSelector")&&i.d(t,"SchedulerDayLineSelector",function(){return e.SchedulerDayLineSelector});i.o(e,"SchedulerDaySelector")&&i.d(t,"SchedulerDaySelector",function(){return e.SchedulerDaySelector});i.o(e,"SchedulerEvent")&&i.d(t,"SchedulerEvent",function(){return e.SchedulerEvent});i.o(e,"SchedulerEventPeriod")&&i.d(t,"SchedulerEventPeriod",function(){return e.SchedulerEventPeriod});i.o(e,"SchedulerLoader")&&i.d(t,"SchedulerLoader",function(){return e.SchedulerLoader});i.o(e,"SchedulerMobile")&&i.d(t,"SchedulerMobile",function(){return e.SchedulerMobile});i.o(e,"SchedulerMonthSelector")&&i.d(t,"SchedulerMonthSelector",function(){return e.SchedulerMonthSelector});i.o(e,"SchedulerSelector")&&i.d(t,"SchedulerSelector",function(){return e.SchedulerSelector});i.o(e,"SchedulerSimple")&&i.d(t,"SchedulerSimple",function(){return e.SchedulerSimple});i.o(e,"SchedulerTask")&&i.d(t,"SchedulerTask",function(){return e.SchedulerTask});i.o(e,"SchedulerTimeLineSelector")&&i.d(t,"SchedulerTimeLineSelector",function(){return e.SchedulerTimeLineSelector});i.o(e,"SchedulerWeekSelector")&&i.d(t,"SchedulerWeekSelector",function(){return e.SchedulerWeekSelector});i.o(e,"ScriptPlayer")&&i.d(t,"ScriptPlayer",function(){return e.ScriptPlayer});i.o(e,"Scroll")&&i.d(t,"Scroll",function(){return e.Scroll});i.o(e,"SetAddressHash")&&i.d(t,"SetAddressHash",function(){return e.SetAddressHash});i.o(e,"SetIgnoreNextHashChanging")&&i.d(t,"SetIgnoreNextHashChanging",function(){return e.SetIgnoreNextHashChanging});i.o(e,"ShortcutCommand")&&i.d(t,"ShortcutCommand",function(){return e.ShortcutCommand});i.o(e,"ShortcutWindow")&&i.d(t,"ShortcutWindow",function(){return e.ShortcutWindow});i.o(e,"ShortcutWindowKeyNavigator")&&i.d(t,"ShortcutWindowKeyNavigator",function(){return e.ShortcutWindowKeyNavigator});i.o(e,"SignInPanel")&&i.d(t,"SignInPanel",function(){return e.SignInPanel});i.o(e,"SimpleFormBase")&&i.d(t,"SimpleFormBase",function(){return e.SimpleFormBase});i.o(e,"SimpleMenu")&&i.d(t,"SimpleMenu",function(){return e.SimpleMenu});i.o(e,"SimpleMenuItem")&&i.d(t,"SimpleMenuItem",function(){return e.SimpleMenuItem});i.o(e,"SimpleMenuKeyNavigator")&&i.d(t,"SimpleMenuKeyNavigator",function(){return e.SimpleMenuKeyNavigator});i.o(e,"SlideMenu")&&i.d(t,"SlideMenu",function(){return e.SlideMenu});i.o(e,"SlideMenuContent")&&i.d(t,"SlideMenuContent",function(){return e.SlideMenuContent});i.o(e,"SlideMenuGroup")&&i.d(t,"SlideMenuGroup",function(){return e.SlideMenuGroup});i.o(e,"SlideMenuItem")&&i.d(t,"SlideMenuItem",function(){return e.SlideMenuItem});i.o(e,"SonetaServer")&&i.d(t,"SonetaServer",function(){return e.SonetaServer});i.o(e,"Splitter")&&i.d(t,"Splitter",function(){return e.Splitter});i.o(e,"Stack")&&i.d(t,"Stack",function(){return e.Stack});i.o(e,"StorageHelper")&&i.d(t,"StorageHelper",function(){return e.StorageHelper});i.o(e,"StorageType")&&i.d(t,"StorageType",function(){return e.StorageType});i.o(e,"SvgIcon")&&i.d(t,"SvgIcon",function(){return e.SvgIcon});i.o(e,"SvgManager")&&i.d(t,"SvgManager",function(){return e.SvgManager});i.o(e,"SvgType")&&i.d(t,"SvgType",function(){return e.SvgType});i.o(e,"SwipeDetector")&&i.d(t,"SwipeDetector",function(){return e.SwipeDetector});i.o(e,"SwipeDir")&&i.d(t,"SwipeDir",function(){return e.SwipeDir});i.o(e,"SwipeMode")&&i.d(t,"SwipeMode",function(){return e.SwipeMode});i.o(e,"SwipeRange")&&i.d(t,"SwipeRange",function(){return e.SwipeRange});i.o(e,"SwipedPanel")&&i.d(t,"SwipedPanel",function(){return e.SwipedPanel});i.o(e,"Test")&&i.d(t,"Test",function(){return e.Test});i.o(e,"TestBase")&&i.d(t,"TestBase",function(){return e.TestBase});i.o(e,"TestServer")&&i.d(t,"TestServer",function(){return e.TestServer});i.o(e,"TestStep")&&i.d(t,"TestStep",function(){return e.TestStep});i.o(e,"TestsWindow")&&i.d(t,"TestsWindow",function(){return e.TestsWindow});i.o(e,"TestsWindowFinished")&&i.d(t,"TestsWindowFinished",function(){return e.TestsWindowFinished});i.o(e,"TestsWindowHeader")&&i.d(t,"TestsWindowHeader",function(){return e.TestsWindowHeader});i.o(e,"TextControlView")&&i.d(t,"TextControlView",function(){return e.TextControlView});i.o(e,"ThemePicker")&&i.d(t,"ThemePicker",function(){return e.ThemePicker});i.o(e,"TileGroup")&&i.d(t,"TileGroup",function(){return e.TileGroup});i.o(e,"TileGroupPremium")&&i.d(t,"TileGroupPremium",function(){return e.TileGroupPremium});i.o(e,"TileItem")&&i.d(t,"TileItem",function(){return e.TileItem});i.o(e,"TileItemLarge")&&i.d(t,"TileItemLarge",function(){return e.TileItemLarge});i.o(e,"TileItemPremium")&&i.d(t,"TileItemPremium",function(){return e.TileItemPremium});i.o(e,"TileMenu")&&i.d(t,"TileMenu",function(){return e.TileMenu});i.o(e,"TileMenuKeyNavigator")&&i.d(t,"TileMenuKeyNavigator",function(){return e.TileMenuKeyNavigator});i.o(e,"TimePicker")&&i.d(t,"TimePicker",function(){return e.TimePicker});i.o(e,"TimePickerContent")&&i.d(t,"TimePickerContent",function(){return e.TimePickerContent});i.o(e,"UnverifiedProductInfo")&&i.d(t,"UnverifiedProductInfo",function(){return e.UnverifiedProductInfo});i.o(e,"UriHelper")&&i.d(t,"UriHelper",function(){return e.UriHelper});i.o(e,"UtilsData")&&i.d(t,"UtilsData",function(){return e.UtilsData});i.o(e,"ValueThenable")&&i.d(t,"ValueThenable",function(){return e.ValueThenable});i.o(e,"Verifier")&&i.d(t,"Verifier",function(){return e.Verifier});i.o(e,"VerifierBar")&&i.d(t,"VerifierBar",function(){return e.VerifierBar});i.o(e,"VerifierElement")&&i.d(t,"VerifierElement",function(){return e.VerifierElement});i.o(e,"VerifierType")&&i.d(t,"VerifierType",function(){return e.VerifierType});i.o(e,"WindowBarBase")&&i.d(t,"WindowBarBase",function(){return e.WindowBarBase});i.o(e,"WindowBarBrowser")&&i.d(t,"WindowBarBrowser",function(){return e.WindowBarBrowser});i.o(e,"WindowBarBrowserPremium")&&i.d(t,"WindowBarBrowserPremium",function(){return e.WindowBarBrowserPremium});i.o(e,"WindowBarCalculator")&&i.d(t,"WindowBarCalculator",function(){return e.WindowBarCalculator});i.o(e,"WindowBarCommand")&&i.d(t,"WindowBarCommand",function(){return e.WindowBarCommand});i.o(e,"WindowBarCommandClose")&&i.d(t,"WindowBarCommandClose",function(){return e.WindowBarCommandClose});i.o(e,"WindowBarCommands")&&i.d(t,"WindowBarCommands",function(){return e.WindowBarCommands});i.o(e,"WindowBarCommandsKeyNavigator")&&i.d(t,"WindowBarCommandsKeyNavigator",function(){return e.WindowBarCommandsKeyNavigator});i.o(e,"WindowBarKeyNavigator")&&i.d(t,"WindowBarKeyNavigator",function(){return e.WindowBarKeyNavigator});i.o(e,"WindowBarNavFormCommand")&&i.d(t,"WindowBarNavFormCommand",function(){return e.WindowBarNavFormCommand});i.o(e,"WindowBase")&&i.d(t,"WindowBase",function(){return e.WindowBase});i.o(e,"WindowElement")&&i.d(t,"WindowElement",function(){return e.WindowElement});i.o(e,"WindowManager")&&i.d(t,"WindowManager",function(){return e.WindowManager});i.o(e,"WizardWindow")&&i.d(t,"WizardWindow",function(){return e.WizardWindow});i.o(e,"YearMonth")&&i.d(t,"YearMonth",function(){return e.YearMonth});i.o(e,"checkElements")&&i.d(t,"checkElements",function(){return e.checkElements});i.o(e,"decodeScript")&&i.d(t,"decodeScript",function(){return e.decodeScript});i.o(e,"decodeString")&&i.d(t,"decodeString",function(){return e.decodeString});i.o(e,"encodeString")&&i.d(t,"encodeString",function(){return e.encodeString});i.o(e,"getToday")&&i.d(t,"getToday",function(){return e.getToday});i.o(e,"hasParentNode")&&i.d(t,"hasParentNode",function(){return e.hasParentNode});i.o(e,"isEdge")&&i.d(t,"isEdge",function(){return e.isEdge});i.o(e,"isIE11")&&i.d(t,"isIE11",function(){return e.isIE11});i.o(e,"isTouchDevice")&&i.d(t,"isTouchDevice",function(){return e.isTouchDevice});i.o(e,"log")&&i.d(t,"log",function(){return e.log});i.o(e,"resetCacheElements")&&i.d(t,"resetCacheElements",function(){return e.resetCacheElements});i.o(e,"returnDeviseType")&&i.d(t,"returnDeviseType",function(){return e.returnDeviseType});i.o(e,"scrollToSmoothly")&&i.d(t,"scrollToSmoothly",function(){return e.scrollToSmoothly});i.o(e,"setTimeoutPromise")&&i.d(t,"setTimeoutPromise",function(){return e.setTimeoutPromise});i.o(e,"uploadFile")&&i.d(t,"uploadFile",function(){return e.uploadFile});i.o(e,"zeroPad")&&i.d(t,"zeroPad",function(){return e.zeroPad});vl=i(360);i.d(t,"LookupContent",function(){return vl.a});yl=i(361);i.d(t,"LookupHeader",function(){return yl.a});tt=i(362);i.d(t,"LookupRowElement",function(){return tt.a});i.d(t,"LookupRowSpecial",function(){return tt.b});pl=i(363);i.d(t,"FactoryNavigationMenuSource",function(){return pl.a});wl=i(364);i.d(t,"NavArrow",function(){return wl.a});bl=i(365);i.d(t,"NavigationMenu",function(){return bl.a});kl=i(366);i.d(t,"NavigationMenuElement",function(){return kl.a});dl=i(367);i.d(t,"NavigationMenuForm",function(){return dl.a});gl=i(368);i.d(t,"NavigationMenuItem",function(){return gl.a});na=i(369);i.d(t,"NavigationMenuKeyNavigator",function(){return na.a});ta=i(370);i.d(t,"PathBar",function(){return ta.a});ia=i(371);i.d(t,"PathBarCommand",function(){return ia.a});ra=i(372);i.d(t,"PathBarPremium",function(){return ra.a});ua=i(373);i.d(t,"CookieBox",function(){return ua.a});fa=i(374);i.d(t,"ProfileInfo",function(){return fa.a});ea=i(375);i.d(t,"ProfileMenu",function(){return ea.a});oa=i(376);i.d(t,"ProfileMenuItem",function(){return oa.a});sa=i(377);i.d(t,"RecoveryPanel",function(){return sa.a});ha=i(378);i.d(t,"Row",function(){return ha.a});o=i(379);i.o(o,"AdfsInfoPage")&&i.d(t,"AdfsInfoPage",function(){return o.AdfsInfoPage});i.o(o,"AnchorPosition")&&i.d(t,"AnchorPosition",function(){return o.AnchorPosition});i.o(o,"App")&&i.d(t,"App",function(){return o.App});i.o(o,"AppearancePalette")&&i.d(t,"AppearancePalette",function(){return o.AppearancePalette});i.o(o,"Assert")&&i.d(t,"Assert",function(){return o.Assert});i.o(o,"AssertError")&&i.d(t,"AssertError",function(){return o.AssertError});i.o(o,"AttachmentUrlHelper")&&i.d(t,"AttachmentUrlHelper",function(){return o.AttachmentUrlHelper});i.o(o,"Base64")&&i.d(t,"Base64",function(){return o.Base64});i.o(o,"BaseElement")&&i.d(t,"BaseElement",function(){return o.BaseElement});i.o(o,"BaseHomePage")&&i.d(t,"BaseHomePage",function(){return o.BaseHomePage});i.o(o,"BasePage")&&i.d(t,"BasePage",function(){return o.BasePage});i.o(o,"BaseScroll")&&i.d(t,"BaseScroll",function(){return o.BaseScroll});i.o(o,"BrowserInfoPage")&&i.d(t,"BrowserInfoPage",function(){return o.BrowserInfoPage});i.o(o,"ColorHelper")&&i.d(t,"ColorHelper",function(){return o.ColorHelper});i.o(o,"CommandData")&&i.d(t,"CommandData",function(){return o.CommandData});i.o(o,"Constants")&&i.d(t,"Constants",function(){return o.Constants});i.o(o,"CookieHelper")&&i.d(t,"CookieHelper",function(){return o.CookieHelper});i.o(o,"CookieInfoPage")&&i.d(t,"CookieInfoPage",function(){return o.CookieInfoPage});i.o(o,"Credentials")&&i.d(t,"Credentials",function(){return o.Credentials});i.o(o,"CredentialsAdfs")&&i.d(t,"CredentialsAdfs",function(){return o.CredentialsAdfs});i.o(o,"CredentialsImpersonate")&&i.d(t,"CredentialsImpersonate",function(){return o.CredentialsImpersonate});i.o(o,"CredentialsLink")&&i.d(t,"CredentialsLink",function(){return o.CredentialsLink});i.o(o,"CredentialsLogin")&&i.d(t,"CredentialsLogin",function(){return o.CredentialsLogin});i.o(o,"DOMHelper")&&i.d(t,"DOMHelper",function(){return o.DOMHelper});i.o(o,"DataElement")&&i.d(t,"DataElement",function(){return o.DataElement});i.o(o,"DateHelper")&&i.d(t,"DateHelper",function(){return o.DateHelper});i.o(o,"DbInfoPage")&&i.d(t,"DbInfoPage",function(){return o.DbInfoPage});i.o(o,"DecodeUri")&&i.d(t,"DecodeUri",function(){return o.DecodeUri});i.o(o,"Describer")&&i.d(t,"Describer",function(){return o.Describer});i.o(o,"DeviceType")&&i.d(t,"DeviceType",function(){return o.DeviceType});i.o(o,"DiagramLoader")&&i.d(t,"DiagramLoader",function(){return o.DiagramLoader});i.o(o,"DialogData")&&i.d(t,"DialogData",function(){return o.DialogData});i.o(o,"Dictionary")&&i.d(t,"Dictionary",function(){return o.Dictionary});i.o(o,"DictionaryEx")&&i.d(t,"DictionaryEx",function(){return o.DictionaryEx});i.o(o,"ErrorPage")&&i.d(t,"ErrorPage",function(){return o.ErrorPage});i.o(o,"EventListenerRegistrar")&&i.d(t,"EventListenerRegistrar",function(){return o.EventListenerRegistrar});i.o(o,"EventSet")&&i.d(t,"EventSet",function(){return o.EventSet});i.o(o,"FactorySlideMenuSource")&&i.d(t,"FactorySlideMenuSource",function(){return o.FactorySlideMenuSource});i.o(o,"FeatureElement")&&i.d(t,"FeatureElement",function(){return o.FeatureElement});i.o(o,"FieldData")&&i.d(t,"FieldData",function(){return o.FieldData});i.o(o,"FireCustomFocus")&&i.d(t,"FireCustomFocus",function(){return o.FireCustomFocus});i.o(o,"FolderData")&&i.d(t,"FolderData",function(){return o.FolderData});i.o(o,"FolderWindow")&&i.d(t,"FolderWindow",function(){return o.FolderWindow});i.o(o,"FormEditInPlace")&&i.d(t,"FormEditInPlace",function(){return o.FormEditInPlace});i.o(o,"FormView")&&i.d(t,"FormView",function(){return o.FormView});i.o(o,"FormWindow")&&i.d(t,"FormWindow",function(){return o.FormWindow});i.o(o,"FrameWindow")&&i.d(t,"FrameWindow",function(){return o.FrameWindow});i.o(o,"GanttData")&&i.d(t,"GanttData",function(){return o.GanttData});i.o(o,"GanttLoader")&&i.d(t,"GanttLoader",function(){return o.GanttLoader});i.o(o,"GetDeviceInfo")&&i.d(t,"GetDeviceInfo",function(){return o.GetDeviceInfo});i.o(o,"GetIgnoreNextHashChanging")&&i.d(t,"GetIgnoreNextHashChanging",function(){return o.GetIgnoreNextHashChanging});i.o(o,"GetLink")&&i.d(t,"GetLink",function(){return o.GetLink});i.o(o,"GetValueFormNode")&&i.d(t,"GetValueFormNode",function(){return o.GetValueFormNode});i.o(o,"GlobalSettings")&&i.d(t,"GlobalSettings",function(){return o.GlobalSettings});i.o(o,"GridData")&&i.d(t,"GridData",function(){return o.GridData});i.o(o,"GridPatternHelper")&&i.d(t,"GridPatternHelper",function(){return o.GridPatternHelper});i.o(o,"GridScroll")&&i.d(t,"GridScroll",function(){return o.GridScroll});i.o(o,"Guid")&&i.d(t,"Guid",function(){return o.Guid});i.o(o,"HashHelper")&&i.d(t,"HashHelper",function(){return o.HashHelper});i.o(o,"ImageControlView")&&i.d(t,"ImageControlView",function(){return o.ImageControlView});i.o(o,"ImpersonateInfoPage")&&i.d(t,"ImpersonateInfoPage",function(){return o.ImpersonateInfoPage});i.o(o,"IpInfoPage")&&i.d(t,"IpInfoPage",function(){return o.IpInfoPage});i.o(o,"IsDebug")&&i.d(t,"IsDebug",function(){return o.IsDebug});i.o(o,"JoditLoader")&&i.d(t,"JoditLoader",function(){return o.JoditLoader});i.o(o,"KeyPressInject")&&i.d(t,"KeyPressInject",function(){return o.KeyPressInject});i.o(o,"KeyShortcut")&&i.d(t,"KeyShortcut",function(){return o.KeyShortcut});i.o(o,"LanguageConstants")&&i.d(t,"LanguageConstants",function(){return o.LanguageConstants});i.o(o,"LibraryLoader")&&i.d(t,"LibraryLoader",function(){return o.LibraryLoader});i.o(o,"Location")&&i.d(t,"Location",function(){return o.Location});i.o(o,"LogOffInfoPage")&&i.d(t,"LogOffInfoPage",function(){return o.LogOffInfoPage});i.o(o,"LogOffPage")&&i.d(t,"LogOffPage",function(){return o.LogOffPage});i.o(o,"Login")&&i.d(t,"Login",function(){return o.Login});i.o(o,"LoginAdfsPage")&&i.d(t,"LoginAdfsPage",function(){return o.LoginAdfsPage});i.o(o,"LoginImpersonate")&&i.d(t,"LoginImpersonate",function(){return o.LoginImpersonate});i.o(o,"MenuKeyNavigatorBase")&&i.d(t,"MenuKeyNavigatorBase",function(){return o.MenuKeyNavigatorBase});i.o(o,"MergeRecursive")&&i.d(t,"MergeRecursive",function(){return o.MergeRecursive});i.o(o,"ModalWindow")&&i.d(t,"ModalWindow",function(){return o.ModalWindow});i.o(o,"OnErrorLogin")&&i.d(t,"OnErrorLogin",function(){return o.OnErrorLogin});i.o(o,"OnSuccessLogin")&&i.d(t,"OnSuccessLogin",function(){return o.OnSuccessLogin});i.o(o,"PageFactory")&&i.d(t,"PageFactory",function(){return o.PageFactory});i.o(o,"PdfViewer")&&i.d(t,"PdfViewer",function(){return o.PdfViewer});i.o(o,"Player")&&i.d(t,"Player",function(){return o.Player});i.o(o,"PopupHelper")&&i.d(t,"PopupHelper",function(){return o.PopupHelper});i.o(o,"PopupWindow")&&i.d(t,"PopupWindow",function(){return o.PopupWindow});i.o(o,"RecoveryPage")&&i.d(t,"RecoveryPage",function(){return o.RecoveryPage});i.o(o,"ReminderHelper")&&i.d(t,"ReminderHelper",function(){return o.ReminderHelper});i.o(o,"Request")&&i.d(t,"Request",function(){return o.Request});i.o(o,"RowData")&&i.d(t,"RowData",function(){return o.RowData});i.o(o,"RowElement")&&i.d(t,"RowElement",function(){return o.RowElement});i.o(o,"SPromise")&&i.d(t,"SPromise",function(){return o.SPromise});i.o(o,"SchedulerBase")&&i.d(t,"SchedulerBase",function(){return o.SchedulerBase});i.o(o,"SchedulerBrowser")&&i.d(t,"SchedulerBrowser",function(){return o.SchedulerBrowser});i.o(o,"SchedulerCalendar")&&i.d(t,"SchedulerCalendar",function(){return o.SchedulerCalendar});i.o(o,"SchedulerCommonSelector")&&i.d(t,"SchedulerCommonSelector",function(){return o.SchedulerCommonSelector});i.o(o,"SchedulerCustomizer")&&i.d(t,"SchedulerCustomizer",function(){return o.SchedulerCustomizer});i.o(o,"SchedulerDayLineSelector")&&i.d(t,"SchedulerDayLineSelector",function(){return o.SchedulerDayLineSelector});i.o(o,"SchedulerDaySelector")&&i.d(t,"SchedulerDaySelector",function(){return o.SchedulerDaySelector});i.o(o,"SchedulerEvent")&&i.d(t,"SchedulerEvent",function(){return o.SchedulerEvent});i.o(o,"SchedulerEventPeriod")&&i.d(t,"SchedulerEventPeriod",function(){return o.SchedulerEventPeriod});i.o(o,"SchedulerLoader")&&i.d(t,"SchedulerLoader",function(){return o.SchedulerLoader});i.o(o,"SchedulerMobile")&&i.d(t,"SchedulerMobile",function(){return o.SchedulerMobile});i.o(o,"SchedulerMonthSelector")&&i.d(t,"SchedulerMonthSelector",function(){return o.SchedulerMonthSelector});i.o(o,"SchedulerSelector")&&i.d(t,"SchedulerSelector",function(){return o.SchedulerSelector});i.o(o,"SchedulerSimple")&&i.d(t,"SchedulerSimple",function(){return o.SchedulerSimple});i.o(o,"SchedulerTask")&&i.d(t,"SchedulerTask",function(){return o.SchedulerTask});i.o(o,"SchedulerTimeLineSelector")&&i.d(t,"SchedulerTimeLineSelector",function(){return o.SchedulerTimeLineSelector});i.o(o,"SchedulerWeekSelector")&&i.d(t,"SchedulerWeekSelector",function(){return o.SchedulerWeekSelector});i.o(o,"ScriptPlayer")&&i.d(t,"ScriptPlayer",function(){return o.ScriptPlayer});i.o(o,"Scroll")&&i.d(t,"Scroll",function(){return o.Scroll});i.o(o,"SetAddressHash")&&i.d(t,"SetAddressHash",function(){return o.SetAddressHash});i.o(o,"SetIgnoreNextHashChanging")&&i.d(t,"SetIgnoreNextHashChanging",function(){return o.SetIgnoreNextHashChanging});i.o(o,"ShortcutCommand")&&i.d(t,"ShortcutCommand",function(){return o.ShortcutCommand});i.o(o,"ShortcutWindow")&&i.d(t,"ShortcutWindow",function(){return o.ShortcutWindow});i.o(o,"ShortcutWindowKeyNavigator")&&i.d(t,"ShortcutWindowKeyNavigator",function(){return o.ShortcutWindowKeyNavigator});i.o(o,"SignInPanel")&&i.d(t,"SignInPanel",function(){return o.SignInPanel});i.o(o,"SimpleFormBase")&&i.d(t,"SimpleFormBase",function(){return o.SimpleFormBase});i.o(o,"SimpleMenu")&&i.d(t,"SimpleMenu",function(){return o.SimpleMenu});i.o(o,"SimpleMenuItem")&&i.d(t,"SimpleMenuItem",function(){return o.SimpleMenuItem});i.o(o,"SimpleMenuKeyNavigator")&&i.d(t,"SimpleMenuKeyNavigator",function(){return o.SimpleMenuKeyNavigator});i.o(o,"SlideMenu")&&i.d(t,"SlideMenu",function(){return o.SlideMenu});i.o(o,"SlideMenuContent")&&i.d(t,"SlideMenuContent",function(){return o.SlideMenuContent});i.o(o,"SlideMenuGroup")&&i.d(t,"SlideMenuGroup",function(){return o.SlideMenuGroup});i.o(o,"SlideMenuItem")&&i.d(t,"SlideMenuItem",function(){return o.SlideMenuItem});i.o(o,"SonetaServer")&&i.d(t,"SonetaServer",function(){return o.SonetaServer});i.o(o,"Splitter")&&i.d(t,"Splitter",function(){return o.Splitter});i.o(o,"Stack")&&i.d(t,"Stack",function(){return o.Stack});i.o(o,"StorageHelper")&&i.d(t,"StorageHelper",function(){return o.StorageHelper});i.o(o,"StorageType")&&i.d(t,"StorageType",function(){return o.StorageType});i.o(o,"SvgIcon")&&i.d(t,"SvgIcon",function(){return o.SvgIcon});i.o(o,"SvgManager")&&i.d(t,"SvgManager",function(){return o.SvgManager});i.o(o,"SvgType")&&i.d(t,"SvgType",function(){return o.SvgType});i.o(o,"SwipeDetector")&&i.d(t,"SwipeDetector",function(){return o.SwipeDetector});i.o(o,"SwipeDir")&&i.d(t,"SwipeDir",function(){return o.SwipeDir});i.o(o,"SwipeMode")&&i.d(t,"SwipeMode",function(){return o.SwipeMode});i.o(o,"SwipeRange")&&i.d(t,"SwipeRange",function(){return o.SwipeRange});i.o(o,"SwipedPanel")&&i.d(t,"SwipedPanel",function(){return o.SwipedPanel});i.o(o,"Test")&&i.d(t,"Test",function(){return o.Test});i.o(o,"TestBase")&&i.d(t,"TestBase",function(){return o.TestBase});i.o(o,"TestServer")&&i.d(t,"TestServer",function(){return o.TestServer});i.o(o,"TestStep")&&i.d(t,"TestStep",function(){return o.TestStep});i.o(o,"TestsWindow")&&i.d(t,"TestsWindow",function(){return o.TestsWindow});i.o(o,"TestsWindowFinished")&&i.d(t,"TestsWindowFinished",function(){return o.TestsWindowFinished});i.o(o,"TestsWindowHeader")&&i.d(t,"TestsWindowHeader",function(){return o.TestsWindowHeader});i.o(o,"TextControlView")&&i.d(t,"TextControlView",function(){return o.TextControlView});i.o(o,"ThemePicker")&&i.d(t,"ThemePicker",function(){return o.ThemePicker});i.o(o,"TileGroup")&&i.d(t,"TileGroup",function(){return o.TileGroup});i.o(o,"TileGroupPremium")&&i.d(t,"TileGroupPremium",function(){return o.TileGroupPremium});i.o(o,"TileItem")&&i.d(t,"TileItem",function(){return o.TileItem});i.o(o,"TileItemLarge")&&i.d(t,"TileItemLarge",function(){return o.TileItemLarge});i.o(o,"TileItemPremium")&&i.d(t,"TileItemPremium",function(){return o.TileItemPremium});i.o(o,"TileMenu")&&i.d(t,"TileMenu",function(){return o.TileMenu});i.o(o,"TileMenuKeyNavigator")&&i.d(t,"TileMenuKeyNavigator",function(){return o.TileMenuKeyNavigator});i.o(o,"TimePicker")&&i.d(t,"TimePicker",function(){return o.TimePicker});i.o(o,"TimePickerContent")&&i.d(t,"TimePickerContent",function(){return o.TimePickerContent});i.o(o,"UnverifiedProductInfo")&&i.d(t,"UnverifiedProductInfo",function(){return o.UnverifiedProductInfo});i.o(o,"UriHelper")&&i.d(t,"UriHelper",function(){return o.UriHelper});i.o(o,"UtilsData")&&i.d(t,"UtilsData",function(){return o.UtilsData});i.o(o,"ValueThenable")&&i.d(t,"ValueThenable",function(){return o.ValueThenable});i.o(o,"Verifier")&&i.d(t,"Verifier",function(){return o.Verifier});i.o(o,"VerifierBar")&&i.d(t,"VerifierBar",function(){return o.VerifierBar});i.o(o,"VerifierElement")&&i.d(t,"VerifierElement",function(){return o.VerifierElement});i.o(o,"VerifierType")&&i.d(t,"VerifierType",function(){return o.VerifierType});i.o(o,"WindowBarBase")&&i.d(t,"WindowBarBase",function(){return o.WindowBarBase});i.o(o,"WindowBarBrowser")&&i.d(t,"WindowBarBrowser",function(){return o.WindowBarBrowser});i.o(o,"WindowBarBrowserPremium")&&i.d(t,"WindowBarBrowserPremium",function(){return o.WindowBarBrowserPremium});i.o(o,"WindowBarCalculator")&&i.d(t,"WindowBarCalculator",function(){return o.WindowBarCalculator});i.o(o,"WindowBarCommand")&&i.d(t,"WindowBarCommand",function(){return o.WindowBarCommand});i.o(o,"WindowBarCommandClose")&&i.d(t,"WindowBarCommandClose",function(){return o.WindowBarCommandClose});i.o(o,"WindowBarCommands")&&i.d(t,"WindowBarCommands",function(){return o.WindowBarCommands});i.o(o,"WindowBarCommandsKeyNavigator")&&i.d(t,"WindowBarCommandsKeyNavigator",function(){return o.WindowBarCommandsKeyNavigator});i.o(o,"WindowBarKeyNavigator")&&i.d(t,"WindowBarKeyNavigator",function(){return o.WindowBarKeyNavigator});i.o(o,"WindowBarNavFormCommand")&&i.d(t,"WindowBarNavFormCommand",function(){return o.WindowBarNavFormCommand});i.o(o,"WindowBase")&&i.d(t,"WindowBase",function(){return o.WindowBase});i.o(o,"WindowElement")&&i.d(t,"WindowElement",function(){return o.WindowElement});i.o(o,"WindowManager")&&i.d(t,"WindowManager",function(){return o.WindowManager});i.o(o,"WizardWindow")&&i.d(t,"WizardWindow",function(){return o.WizardWindow});i.o(o,"YearMonth")&&i.d(t,"YearMonth",function(){return o.YearMonth});i.o(o,"checkElements")&&i.d(t,"checkElements",function(){return o.checkElements});i.o(o,"decodeScript")&&i.d(t,"decodeScript",function(){return o.decodeScript});i.o(o,"decodeString")&&i.d(t,"decodeString",function(){return o.decodeString});i.o(o,"encodeString")&&i.d(t,"encodeString",function(){return o.encodeString});i.o(o,"getToday")&&i.d(t,"getToday",function(){return o.getToday});i.o(o,"hasParentNode")&&i.d(t,"hasParentNode",function(){return o.hasParentNode});i.o(o,"isEdge")&&i.d(t,"isEdge",function(){return o.isEdge});i.o(o,"isIE11")&&i.d(t,"isIE11",function(){return o.isIE11});i.o(o,"isTouchDevice")&&i.d(t,"isTouchDevice",function(){return o.isTouchDevice});i.o(o,"log")&&i.d(t,"log",function(){return o.log});i.o(o,"resetCacheElements")&&i.d(t,"resetCacheElements",function(){return o.resetCacheElements});i.o(o,"returnDeviseType")&&i.d(t,"returnDeviseType",function(){return o.returnDeviseType});i.o(o,"scrollToSmoothly")&&i.d(t,"scrollToSmoothly",function(){return o.scrollToSmoothly});i.o(o,"setTimeoutPromise")&&i.d(t,"setTimeoutPromise",function(){return o.setTimeoutPromise});i.o(o,"uploadFile")&&i.d(t,"uploadFile",function(){return o.uploadFile});i.o(o,"zeroPad")&&i.d(t,"zeroPad",function(){return o.zeroPad});ca=i(380);i.d(t,"SchedulerBase",function(){return ca.a});la=i(381);i.d(t,"SchedulerBrowser",function(){return la.a});aa=i(382);i.d(t,"SchedulerCustomizer",function(){return aa.a});va=i(383);i.d(t,"SchedulerEvent",function(){return va.a});ya=i(384);i.d(t,"SchedulerEventPeriod",function(){return ya.a});pa=i(385);i.d(t,"SchedulerMobile",function(){return pa.a});wa=i(386);i.d(t,"SchedulerSelector",function(){return wa.a});ba=i(387);i.d(t,"SchedulerCommonSelector",function(){return ba.a});ka=i(388);i.d(t,"SchedulerDayLineSelector",function(){return ka.a});da=i(389);i.d(t,"SchedulerDaySelector",function(){return da.a});ga=i(390);i.d(t,"SchedulerMonthSelector",function(){return ga.a});nv=i(391);i.d(t,"SchedulerTimeLineSelector",function(){return nv.a});tv=i(392);i.d(t,"SchedulerWeekSelector",function(){return tv.a});iv=i(393);i.d(t,"SchedulerCalendar",function(){return iv.a});rv=i(394);i.d(t,"SchedulerSimple",function(){return rv.a});uv=i(395);i.d(t,"SchedulerTask",function(){return uv.a});fv=i(396);i.d(t,"BaseScroll",function(){return fv.a});ev=i(397);i.d(t,"GridScroll",function(){return ev.a});ov=i(398);i.d(t,"Scroll",function(){return ov.a});sv=i(399);i.d(t,"KeyShortcut",function(){return sv.a});hv=i(400);i.d(t,"ShortcutCommand",function(){return hv.a});cv=i(401);i.d(t,"ShortcutWindow",function(){return cv.a});lv=i(402);i.d(t,"ShortcutWindowKeyNavigator",function(){return lv.a});av=i(403);i.d(t,"SignInPanel",function(){return av.a});vv=i(404);i.d(t,"SimpleFormBase",function(){return vv.a});yv=i(405);i.d(t,"FormEditInPlace",function(){return yv.a});pv=i(406);i.d(t,"FormView",function(){return pv.a});wv=i(407);i.d(t,"ImageControlView",function(){return wv.a});bv=i(408);i.d(t,"TextControlView",function(){return bv.a});kv=i(409);i.d(t,"MenuKeyNavigatorBase",function(){return kv.a});dv=i(410);i.d(t,"SimpleMenu",function(){return dv.a});gv=i(411);i.d(t,"SimpleMenuItem",function(){return gv.a});ny=i(412);i.d(t,"SimpleMenuKeyNavigator",function(){return ny.a});ty=i(413);i.d(t,"WindowBarCommandsKeyNavigator",function(){return ty.a});iy=i(414);i.d(t,"FactorySlideMenuSource",function(){return iy.a});it=i(415);i.d(t,"AnchorPosition",function(){return it.a});i.d(t,"SlideMenu",function(){return it.b});ry=i(416);i.d(t,"SlideMenuContent",function(){return ry.a});uy=i(417);i.d(t,"SlideMenuGroup",function(){return uy.a});fy=i(418);i.d(t,"SlideMenuItem",function(){return fy.a});ey=i(419);i.d(t,"Splitter",function(){return ey.a});oy=i(420);i.d(t,"Stack",function(){return oy.a});sy=i(421);i.d(t,"SvgIcon",function(){return sy.a});v=i(422);i.d(t,"SwipeDetector",function(){return v.a});i.d(t,"SwipeDir",function(){return v.b});i.d(t,"SwipeMode",function(){return v.c});i.d(t,"SwipeRange",function(){return v.d});hy=i(423);i.d(t,"SwipedPanel",function(){return hy.a});cy=i(424);i.d(t,"ThemePicker",function(){return cy.a});ly=i(425);i.d(t,"TileGroup",function(){return ly.a});ay=i(426);i.d(t,"TileGroupPremium",function(){return ay.a});vy=i(427);i.d(t,"TileItem",function(){return vy.a});yy=i(428);i.d(t,"TileItemPremium",function(){return yy.a});py=i(429);i.d(t,"TileItemLarge",function(){return py.a});wy=i(430);i.d(t,"TileMenu",function(){return wy.a});by=i(431);i.d(t,"TileMenuKeyNavigator",function(){return by.a});ky=i(432);i.d(t,"TimePicker",function(){return ky.a});dy=i(433);i.d(t,"TimePickerContent",function(){return dy.a});gy=i(434);i.d(t,"PdfViewer",function(){return gy.a});np=i(435);i.d(t,"Verifier",function(){return np.a});rt=i(436);i.d(t,"VerifierBar",function(){return rt.a});i.d(t,"VerifierType",function(){return rt.b});tp=i(437);i.d(t,"WindowBase",function(){return tp.a});ip=i(438);i.d(t,"FolderWindow",function(){return ip.a});rp=i(439);i.d(t,"FormWindow",function(){return rp.a});up=i(440);i.d(t,"FrameWindow",function(){return up.a});fp=i(441);i.d(t,"ModalWindow",function(){return fp.a});ep=i(442);i.d(t,"PopupWindow",function(){return ep.a});op=i(443);i.d(t,"WizardWindow",function(){return op.a});sp=i(444);i.d(t,"WindowBarBase",function(){return sp.a});hp=i(445);i.d(t,"WindowBarBrowser",function(){return hp.a});cp=i(446);i.d(t,"WindowBarBrowserPremium",function(){return cp.a});lp=i(447);i.d(t,"WindowBarCalculator",function(){return lp.a});ap=i(448);i.d(t,"WindowBarCommand",function(){return ap.a});vp=i(449);i.d(t,"WindowBarCommandClose",function(){return vp.a});yp=i(450);i.d(t,"WindowBarCommands",function(){return yp.a});pp=i(451);i.d(t,"WindowBarKeyNavigator",function(){return pp.a});wp=i(452);i.d(t,"WindowBarNavFormCommand",function(){return wp.a});s=i(0);i.o(s,"AdfsInfoPage")&&i.d(t,"AdfsInfoPage",function(){return s.AdfsInfoPage});i.o(s,"App")&&i.d(t,"App",function(){return s.App});i.o(s,"AppearancePalette")&&i.d(t,"AppearancePalette",function(){return s.AppearancePalette});i.o(s,"Assert")&&i.d(t,"Assert",function(){return s.Assert});i.o(s,"AssertError")&&i.d(t,"AssertError",function(){return s.AssertError});i.o(s,"AttachmentUrlHelper")&&i.d(t,"AttachmentUrlHelper",function(){return s.AttachmentUrlHelper});i.o(s,"Base64")&&i.d(t,"Base64",function(){return s.Base64});i.o(s,"BaseElement")&&i.d(t,"BaseElement",function(){return s.BaseElement});i.o(s,"BaseHomePage")&&i.d(t,"BaseHomePage",function(){return s.BaseHomePage});i.o(s,"BasePage")&&i.d(t,"BasePage",function(){return s.BasePage});i.o(s,"BrowserInfoPage")&&i.d(t,"BrowserInfoPage",function(){return s.BrowserInfoPage});i.o(s,"ColorHelper")&&i.d(t,"ColorHelper",function(){return s.ColorHelper});i.o(s,"CommandData")&&i.d(t,"CommandData",function(){return s.CommandData});i.o(s,"Constants")&&i.d(t,"Constants",function(){return s.Constants});i.o(s,"CookieHelper")&&i.d(t,"CookieHelper",function(){return s.CookieHelper});i.o(s,"CookieInfoPage")&&i.d(t,"CookieInfoPage",function(){return s.CookieInfoPage});i.o(s,"Credentials")&&i.d(t,"Credentials",function(){return s.Credentials});i.o(s,"CredentialsAdfs")&&i.d(t,"CredentialsAdfs",function(){return s.CredentialsAdfs});i.o(s,"CredentialsImpersonate")&&i.d(t,"CredentialsImpersonate",function(){return s.CredentialsImpersonate});i.o(s,"CredentialsLink")&&i.d(t,"CredentialsLink",function(){return s.CredentialsLink});i.o(s,"CredentialsLogin")&&i.d(t,"CredentialsLogin",function(){return s.CredentialsLogin});i.o(s,"DOMHelper")&&i.d(t,"DOMHelper",function(){return s.DOMHelper});i.o(s,"DataElement")&&i.d(t,"DataElement",function(){return s.DataElement});i.o(s,"DateHelper")&&i.d(t,"DateHelper",function(){return s.DateHelper});i.o(s,"DbInfoPage")&&i.d(t,"DbInfoPage",function(){return s.DbInfoPage});i.o(s,"DecodeUri")&&i.d(t,"DecodeUri",function(){return s.DecodeUri});i.o(s,"Describer")&&i.d(t,"Describer",function(){return s.Describer});i.o(s,"DeviceType")&&i.d(t,"DeviceType",function(){return s.DeviceType});i.o(s,"DiagramLoader")&&i.d(t,"DiagramLoader",function(){return s.DiagramLoader});i.o(s,"DialogData")&&i.d(t,"DialogData",function(){return s.DialogData});i.o(s,"Dictionary")&&i.d(t,"Dictionary",function(){return s.Dictionary});i.o(s,"DictionaryEx")&&i.d(t,"DictionaryEx",function(){return s.DictionaryEx});i.o(s,"ErrorPage")&&i.d(t,"ErrorPage",function(){return s.ErrorPage});i.o(s,"EventListenerRegistrar")&&i.d(t,"EventListenerRegistrar",function(){return s.EventListenerRegistrar});i.o(s,"EventSet")&&i.d(t,"EventSet",function(){return s.EventSet});i.o(s,"FeatureElement")&&i.d(t,"FeatureElement",function(){return s.FeatureElement});i.o(s,"FieldData")&&i.d(t,"FieldData",function(){return s.FieldData});i.o(s,"FireCustomFocus")&&i.d(t,"FireCustomFocus",function(){return s.FireCustomFocus});i.o(s,"FolderData")&&i.d(t,"FolderData",function(){return s.FolderData});i.o(s,"GanttData")&&i.d(t,"GanttData",function(){return s.GanttData});i.o(s,"GanttLoader")&&i.d(t,"GanttLoader",function(){return s.GanttLoader});i.o(s,"GetDeviceInfo")&&i.d(t,"GetDeviceInfo",function(){return s.GetDeviceInfo});i.o(s,"GetIgnoreNextHashChanging")&&i.d(t,"GetIgnoreNextHashChanging",function(){return s.GetIgnoreNextHashChanging});i.o(s,"GetLink")&&i.d(t,"GetLink",function(){return s.GetLink});i.o(s,"GetValueFormNode")&&i.d(t,"GetValueFormNode",function(){return s.GetValueFormNode});i.o(s,"GlobalSettings")&&i.d(t,"GlobalSettings",function(){return s.GlobalSettings});i.o(s,"GridData")&&i.d(t,"GridData",function(){return s.GridData});i.o(s,"GridPatternHelper")&&i.d(t,"GridPatternHelper",function(){return s.GridPatternHelper});i.o(s,"Guid")&&i.d(t,"Guid",function(){return s.Guid});i.o(s,"HashHelper")&&i.d(t,"HashHelper",function(){return s.HashHelper});i.o(s,"ImpersonateInfoPage")&&i.d(t,"ImpersonateInfoPage",function(){return s.ImpersonateInfoPage});i.o(s,"IpInfoPage")&&i.d(t,"IpInfoPage",function(){return s.IpInfoPage});i.o(s,"IsDebug")&&i.d(t,"IsDebug",function(){return s.IsDebug});i.o(s,"JoditLoader")&&i.d(t,"JoditLoader",function(){return s.JoditLoader});i.o(s,"KeyPressInject")&&i.d(t,"KeyPressInject",function(){return s.KeyPressInject});i.o(s,"LanguageConstants")&&i.d(t,"LanguageConstants",function(){return s.LanguageConstants});i.o(s,"LibraryLoader")&&i.d(t,"LibraryLoader",function(){return s.LibraryLoader});i.o(s,"Location")&&i.d(t,"Location",function(){return s.Location});i.o(s,"LogOffInfoPage")&&i.d(t,"LogOffInfoPage",function(){return s.LogOffInfoPage});i.o(s,"LogOffPage")&&i.d(t,"LogOffPage",function(){return s.LogOffPage});i.o(s,"Login")&&i.d(t,"Login",function(){return s.Login});i.o(s,"LoginAdfsPage")&&i.d(t,"LoginAdfsPage",function(){return s.LoginAdfsPage});i.o(s,"LoginImpersonate")&&i.d(t,"LoginImpersonate",function(){return s.LoginImpersonate});i.o(s,"MergeRecursive")&&i.d(t,"MergeRecursive",function(){return s.MergeRecursive});i.o(s,"OnErrorLogin")&&i.d(t,"OnErrorLogin",function(){return s.OnErrorLogin});i.o(s,"OnSuccessLogin")&&i.d(t,"OnSuccessLogin",function(){return s.OnSuccessLogin});i.o(s,"PageFactory")&&i.d(t,"PageFactory",function(){return s.PageFactory});i.o(s,"Player")&&i.d(t,"Player",function(){return s.Player});i.o(s,"PopupHelper")&&i.d(t,"PopupHelper",function(){return s.PopupHelper});i.o(s,"RecoveryPage")&&i.d(t,"RecoveryPage",function(){return s.RecoveryPage});i.o(s,"ReminderHelper")&&i.d(t,"ReminderHelper",function(){return s.ReminderHelper});i.o(s,"Request")&&i.d(t,"Request",function(){return s.Request});i.o(s,"RowData")&&i.d(t,"RowData",function(){return s.RowData});i.o(s,"RowElement")&&i.d(t,"RowElement",function(){return s.RowElement});i.o(s,"SPromise")&&i.d(t,"SPromise",function(){return s.SPromise});i.o(s,"SchedulerLoader")&&i.d(t,"SchedulerLoader",function(){return s.SchedulerLoader});i.o(s,"ScriptPlayer")&&i.d(t,"ScriptPlayer",function(){return s.ScriptPlayer});i.o(s,"SetAddressHash")&&i.d(t,"SetAddressHash",function(){return s.SetAddressHash});i.o(s,"SetIgnoreNextHashChanging")&&i.d(t,"SetIgnoreNextHashChanging",function(){return s.SetIgnoreNextHashChanging});i.o(s,"SonetaServer")&&i.d(t,"SonetaServer",function(){return s.SonetaServer});i.o(s,"StorageHelper")&&i.d(t,"StorageHelper",function(){return s.StorageHelper});i.o(s,"StorageType")&&i.d(t,"StorageType",function(){return s.StorageType});i.o(s,"SvgManager")&&i.d(t,"SvgManager",function(){return s.SvgManager});i.o(s,"SvgType")&&i.d(t,"SvgType",function(){return s.SvgType});i.o(s,"Test")&&i.d(t,"Test",function(){return s.Test});i.o(s,"TestBase")&&i.d(t,"TestBase",function(){return s.TestBase});i.o(s,"TestServer")&&i.d(t,"TestServer",function(){return s.TestServer});i.o(s,"TestStep")&&i.d(t,"TestStep",function(){return s.TestStep});i.o(s,"TestsWindow")&&i.d(t,"TestsWindow",function(){return s.TestsWindow});i.o(s,"TestsWindowFinished")&&i.d(t,"TestsWindowFinished",function(){return s.TestsWindowFinished});i.o(s,"TestsWindowHeader")&&i.d(t,"TestsWindowHeader",function(){return s.TestsWindowHeader});i.o(s,"UnverifiedProductInfo")&&i.d(t,"UnverifiedProductInfo",function(){return s.UnverifiedProductInfo});i.o(s,"UriHelper")&&i.d(t,"UriHelper",function(){return s.UriHelper});i.o(s,"UtilsData")&&i.d(t,"UtilsData",function(){return s.UtilsData});i.o(s,"ValueThenable")&&i.d(t,"ValueThenable",function(){return s.ValueThenable});i.o(s,"VerifierElement")&&i.d(t,"VerifierElement",function(){return s.VerifierElement});i.o(s,"WindowElement")&&i.d(t,"WindowElement",function(){return s.WindowElement});i.o(s,"WindowManager")&&i.d(t,"WindowManager",function(){return s.WindowManager});i.o(s,"YearMonth")&&i.d(t,"YearMonth",function(){return s.YearMonth});i.o(s,"checkElements")&&i.d(t,"checkElements",function(){return s.checkElements});i.o(s,"decodeScript")&&i.d(t,"decodeScript",function(){return s.decodeScript});i.o(s,"decodeString")&&i.d(t,"decodeString",function(){return s.decodeString});i.o(s,"encodeString")&&i.d(t,"encodeString",function(){return s.encodeString});i.o(s,"getToday")&&i.d(t,"getToday",function(){return s.getToday});i.o(s,"hasParentNode")&&i.d(t,"hasParentNode",function(){return s.hasParentNode});i.o(s,"isEdge")&&i.d(t,"isEdge",function(){return s.isEdge});i.o(s,"isIE11")&&i.d(t,"isIE11",function(){return s.isIE11});i.o(s,"isTouchDevice")&&i.d(t,"isTouchDevice",function(){return s.isTouchDevice});i.o(s,"log")&&i.d(t,"log",function(){return s.log});i.o(s,"resetCacheElements")&&i.d(t,"resetCacheElements",function(){return s.resetCacheElements});i.o(s,"returnDeviseType")&&i.d(t,"returnDeviseType",function(){return s.returnDeviseType});i.o(s,"scrollToSmoothly")&&i.d(t,"scrollToSmoothly",function(){return s.scrollToSmoothly});i.o(s,"setTimeoutPromise")&&i.d(t,"setTimeoutPromise",function(){return s.setTimeoutPromise});i.o(s,"uploadFile")&&i.d(t,"uploadFile",function(){return s.uploadFile});i.o(s,"zeroPad")&&i.d(t,"zeroPad",function(){return s.zeroPad});bp=i(453);i.d(t,"BasePage",function(){return bp.a});kp=i(454);i.d(t,"BaseHomePage",function(){return kp.a});dp=i(455);i.d(t,"AdfsInfoPage",function(){return dp.a});gp=i(84);i.d(t,"App",function(){return gp.App});nw=i(456);i.d(t,"BrowserInfoPage",function(){return nw.a});tw=i(457);i.d(t,"CookieInfoPage",function(){return tw.a});iw=i(458);i.d(t,"DbInfoPage",function(){return iw.a});rw=i(459);i.d(t,"ErrorPage",function(){return rw.a});uw=i(460);i.d(t,"GetLink",function(){return uw.a});fw=i(461);i.d(t,"ImpersonateInfoPage",function(){return fw.a});ew=i(462);i.d(t,"IpInfoPage",function(){return ew.a});ow=i(463);i.d(t,"Login",function(){return ow.a});sw=i(464);i.d(t,"LoginAdfsPage",function(){return sw.a});hw=i(465);i.d(t,"LoginImpersonate",function(){return hw.a});cw=i(466);i.d(t,"LogOffPage",function(){return cw.a});lw=i(467);i.d(t,"LogOffInfoPage",function(){return lw.a});aw=i(468);i.d(t,"PageFactory",function(){return aw.a});vw=i(469);i.d(t,"RecoveryPage",function(){return vw.a});yw=i(470);i.d(t,"UnverifiedProductInfo",function(){return yw.a});pw=i(471);i.d(t,"Assert",function(){return pw.a});ww=i(472);i.d(t,"AssertError",function(){return ww.a});bw=i(473);i.d(t,"Player",function(){return bw.a});kw=i(474);i.d(t,"ScriptPlayer",function(){return kw.a});dw=i(475);i.d(t,"Test",function(){return dw.a});i(476);gw=i(477);i.d(t,"AppearancePalette",function(){return gw.a});nb=i(478);i.d(t,"BaseElement",function(){return nb.a});tb=i(479);i.d(t,"DataElement",function(){return tb.a});ib=i(480);i.d(t,"EventSet",function(){return ib.a});rb=i(481);i.d(t,"FeatureElement",function(){return rb.a});ut=i(482);i.d(t,"checkElements",function(){return ut.a});i.d(t,"resetCacheElements",function(){return ut.b});ub=i(483);i.d(t,"RowData",function(){return ub.a});fb=i(484);i.d(t,"RowElement",function(){return fb.a});eb=i(485);i.d(t,"SonetaServer",function(){return eb.a});p=i(486);i.d(t,"SPromise",function(){return p.a});i.d(t,"ValueThenable",function(){return p.b});i.d(t,"setTimeoutPromise",function(){return p.c});ob=i(487);i.d(t,"VerifierElement",function(){return ob.a});sb=i(488);i.d(t,"WindowElement",function(){return sb.a});hb=i(489);i.d(t,"WindowManager",function(){return hb.a});cb=i(490);i.d(t,"TestBase",function(){return cb.a});lb=i(491);i.d(t,"TestServer",function(){return lb.a});i(492);ab=i(493);i.d(t,"TestStep",function(){return ab.a});vb=i(494);i.d(t,"TestsWindow",function(){return vb.a});yb=i(495);i.d(t,"TestsWindowFinished",function(){return yb.a});pb=i(496);i.d(t,"TestsWindowHeader",function(){return pb.a});i(497);i(498);i(499);i(500);i(501);i(502);i(503);wb=i(504);i.d(t,"CommandData",function(){return wb.a});bb=i(505);i.d(t,"DialogData",function(){return bb.a});kb=i(506);i.d(t,"FieldData",function(){return kb.a});db=i(507);i.d(t,"FolderData",function(){return db.a});gb=i(508);i.d(t,"GanttData",function(){return gb.a});nk=i(509);i.d(t,"GridData",function(){return nk.a});tk=i(510);i.d(t,"UtilsData",function(){return tk.a});i(511);i(512);i(513);i(514);i(515);i(516);i(517);i(518);ik=i(519);i.d(t,"AttachmentUrlHelper",function(){return ik.a});rk=i(520);i.d(t,"Base64",function(){return rk.a});uk=i(100);i.d(t,"ColorHelper",function(){return uk.a});fk=i(521);i.d(t,"Constants",function(){return fk.a});ek=i(522);i.d(t,"DictionaryEx",function(){return ek.a});ok=i(523);i.d(t,"CookieHelper",function(){return ok.a});sk=i(524);i.d(t,"Credentials",function(){return sk.a});hk=i(525);i.d(t,"CredentialsAdfs",function(){return hk.a});ck=i(526);i.d(t,"CredentialsImpersonate",function(){return ck.a});lk=i(527);i.d(t,"CredentialsLink",function(){return lk.a});ak=i(528);i.d(t,"CredentialsLogin",function(){return ak.a});vk=i(101);i.d(t,"DateHelper",function(){return vk.a});yk=i(529);i.d(t,"Describer",function(){return yk.a});pk=i(530);i.d(t,"Dictionary",function(){return pk.a});wk=i(531);i.d(t,"DOMHelper",function(){return wk.a});w=i(532);i.d(t,"DeviceType",function(){return w.a});i.d(t,"StorageType",function(){return w.b});i.d(t,"SvgType",function(){return w.c});bk=i(533);i.d(t,"EventListenerRegistrar",function(){return bk.a});kk=i(534);i.d(t,"Guid",function(){return kk.a});dk=i(535);i.d(t,"StorageHelper",function(){return dk.a});gk=i(536);i.d(t,"GlobalSettings",function(){return gk.a});nd=i(537);i.d(t,"GridPatternHelper",function(){return nd.a});h=i(538);i.o(h,"DecodeUri")&&i.d(t,"DecodeUri",function(){return h.DecodeUri});i.o(h,"DiagramLoader")&&i.d(t,"DiagramLoader",function(){return h.DiagramLoader});i.o(h,"FireCustomFocus")&&i.d(t,"FireCustomFocus",function(){return h.FireCustomFocus});i.o(h,"GanttLoader")&&i.d(t,"GanttLoader",function(){return h.GanttLoader});i.o(h,"GetDeviceInfo")&&i.d(t,"GetDeviceInfo",function(){return h.GetDeviceInfo});i.o(h,"GetIgnoreNextHashChanging")&&i.d(t,"GetIgnoreNextHashChanging",function(){return h.GetIgnoreNextHashChanging});i.o(h,"GetValueFormNode")&&i.d(t,"GetValueFormNode",function(){return h.GetValueFormNode});i.o(h,"HashHelper")&&i.d(t,"HashHelper",function(){return h.HashHelper});i.o(h,"IsDebug")&&i.d(t,"IsDebug",function(){return h.IsDebug});i.o(h,"JoditLoader")&&i.d(t,"JoditLoader",function(){return h.JoditLoader});i.o(h,"KeyPressInject")&&i.d(t,"KeyPressInject",function(){return h.KeyPressInject});i.o(h,"LanguageConstants")&&i.d(t,"LanguageConstants",function(){return h.LanguageConstants});i.o(h,"LibraryLoader")&&i.d(t,"LibraryLoader",function(){return h.LibraryLoader});i.o(h,"Location")&&i.d(t,"Location",function(){return h.Location});i.o(h,"MergeRecursive")&&i.d(t,"MergeRecursive",function(){return h.MergeRecursive});i.o(h,"OnErrorLogin")&&i.d(t,"OnErrorLogin",function(){return h.OnErrorLogin});i.o(h,"OnSuccessLogin")&&i.d(t,"OnSuccessLogin",function(){return h.OnSuccessLogin});i.o(h,"PopupHelper")&&i.d(t,"PopupHelper",function(){return h.PopupHelper});i.o(h,"ReminderHelper")&&i.d(t,"ReminderHelper",function(){return h.ReminderHelper});i.o(h,"Request")&&i.d(t,"Request",function(){return h.Request});i.o(h,"SchedulerLoader")&&i.d(t,"SchedulerLoader",function(){return h.SchedulerLoader});i.o(h,"SetAddressHash")&&i.d(t,"SetAddressHash",function(){return h.SetAddressHash});i.o(h,"SetIgnoreNextHashChanging")&&i.d(t,"SetIgnoreNextHashChanging",function(){return h.SetIgnoreNextHashChanging});i.o(h,"SvgManager")&&i.d(t,"SvgManager",function(){return h.SvgManager});i.o(h,"UriHelper")&&i.d(t,"UriHelper",function(){return h.UriHelper});i.o(h,"YearMonth")&&i.d(t,"YearMonth",function(){return h.YearMonth});i.o(h,"decodeScript")&&i.d(t,"decodeScript",function(){return h.decodeScript});i.o(h,"decodeString")&&i.d(t,"decodeString",function(){return h.decodeString});i.o(h,"encodeString")&&i.d(t,"encodeString",function(){return h.encodeString});i.o(h,"getToday")&&i.d(t,"getToday",function(){return h.getToday});i.o(h,"hasParentNode")&&i.d(t,"hasParentNode",function(){return h.hasParentNode});i.o(h,"isEdge")&&i.d(t,"isEdge",function(){return h.isEdge});i.o(h,"isIE11")&&i.d(t,"isIE11",function(){return h.isIE11});i.o(h,"isTouchDevice")&&i.d(t,"isTouchDevice",function(){return h.isTouchDevice});i.o(h,"log")&&i.d(t,"log",function(){return h.log});i.o(h,"returnDeviseType")&&i.d(t,"returnDeviseType",function(){return h.returnDeviseType});i.o(h,"scrollToSmoothly")&&i.d(t,"scrollToSmoothly",function(){return h.scrollToSmoothly});i.o(h,"uploadFile")&&i.d(t,"uploadFile",function(){return h.uploadFile});i.o(h,"zeroPad")&&i.d(t,"zeroPad",function(){return h.zeroPad});td=i(539);i.d(t,"LanguageConstants",function(){return td.a});id=i(540);i.d(t,"LibraryLoader",function(){return id.a});rd=i(541);i.d(t,"DiagramLoader",function(){return rd.a});ud=i(542);i.d(t,"GanttLoader",function(){return ud.a});fd=i(543);i.d(t,"JoditLoader",function(){return fd.a});ed=i(544);i.d(t,"SchedulerLoader",function(){return ed.a});od=i(545);i.d(t,"Location",function(){return od.a});sd=i(546);i.d(t,"PopupHelper",function(){return sd.a});hd=i(547);i.d(t,"ReminderHelper",function(){return hd.a});ft=i(557);i.d(t,"Request",function(){return ft.a});i.d(t,"uploadFile",function(){return ft.b});et=i(548);i.d(t,"decodeString",function(){return et.a});i.d(t,"encodeString",function(){return et.b});cd=i(549);i.d(t,"SvgManager",function(){return cd.a});i(550);ld=i(551);i.d(t,"UriHelper",function(){return ld.a});c=i(552);i.d(t,"DecodeUri",function(){return c.a});i.d(t,"FireCustomFocus",function(){return c.b});i.d(t,"GetDeviceInfo",function(){return c.c});i.d(t,"GetIgnoreNextHashChanging",function(){return c.d});i.d(t,"GetValueFormNode",function(){return c.e});i.d(t,"IsDebug",function(){return c.f});i.d(t,"KeyPressInject",function(){return c.g});i.d(t,"MergeRecursive",function(){return c.h});i.d(t,"OnErrorLogin",function(){return c.i});i.d(t,"OnSuccessLogin",function(){return c.j});i.d(t,"SetAddressHash",function(){return c.k});i.d(t,"SetIgnoreNextHashChanging",function(){return c.l});i.d(t,"decodeScript",function(){return c.m});i.d(t,"getToday",function(){return c.n});i.d(t,"hasParentNode",function(){return c.o});i.d(t,"isEdge",function(){return c.p});i.d(t,"isIE11",function(){return c.q});i.d(t,"isTouchDevice",function(){return c.r});i.d(t,"log",function(){return c.s});i.d(t,"returnDeviseType",function(){return c.t});i.d(t,"scrollToSmoothly",function(){return c.u});i.d(t,"zeroPad",function(){return c.v});ad=i(553);i.d(t,"YearMonth",function(){return ad.a});vd=i(554);i.d(t,"HashHelper",function(){return vd.a})},,,,,,,,,,,,,,,,,,function(n,t,i){"use strict";i.d(t,"a",function(){return f});var u=i(2),r=i(0),f=function(){function n(n){this.dataElement=n;this.idMap=new r.DictionaryEx;this.laneIdxMap=new r.DictionaryEx}return Object.defineProperty(n.prototype,"DiagramData",{get:function(){return this.dataElement.Rows&&0!==this.dataElement.Rows.length?(this.diagramData||(this.diagramData=u.a.map(this.dataElement.Rows,function(n){var t=n.Data,u=n.getAppearance(t[r.DiagramFieldMapping.Id]),i=t[r.DiagramFieldMapping.Size]?t[r.DiagramFieldMapping.Size].split(","):null,f=t[r.DiagramFieldMapping.sourcePoint]?t[r.DiagramFieldMapping.sourcePoint].split(","):null,e=t[r.DiagramFieldMapping.targetPoint]?t[r.DiagramFieldMapping.targetPoint].split(","):null,o=f?{x:parseInt(f[0]),y:parseInt(f[1])}:null,s=e?{x:parseInt(e[0]),y:parseInt(e[1])}:null;return{id:t[r.DiagramFieldMapping.Id],text:t[r.DiagramFieldMapping.NodeText],type:parseInt(t[r.DiagramFieldMapping.Shape]),shapeGroup:parseInt(t[r.DiagramFieldMapping.ShapeGroup]),shapeType:parseInt(t[r.DiagramFieldMapping.ShapeType]),iconName:parseInt(t[r.DiagramFieldMapping.IconName]),offsetX:i&&i[0]?parseInt(i[0]):null,offsetY:i&&i[1]?parseInt(i[1]):null,width:i&&i[2]?parseInt(i[2]):null,height:i&&i[3]?parseInt(i[3]):null,related:t[r.DiagramFieldMapping.Related],from:t[r.DiagramFieldMapping.From],to:t[r.DiagramFieldMapping.To],sourcePoint:o,targetPoint:s,sourcePortID:t[r.DiagramFieldMapping.sourcePortID],targetPortID:t[r.DiagramFieldMapping.targetPortID],appearance:u?{backColor:u.BackColor?u.BackColor:null,foreColor:u.ForeColor?u.ForeColor:null,fontStyle:u.FontStyle?u.FontStyle:null}:null}})),this.diagramData):null},enumerable:!1,configurable:!0}),n.prototype.getShapeForm=function(n){switch(n){case"Task":case"SubProcess":return"Activity";default:return n}},n.prototype.clearCache=function(){this.idMap.clear();this.laneIdxMap.clear()},n.prototype.updateData=function(n){this.dataElement=n;this.diagramData=null},n.prototype.chengeLaneIdx=function(n,t){var i=!1;return this.laneIdxMap.containsKey(n)&&(i=this.laneIdxMap.get(n)!==t),i},n.prototype.findOriginalElementData=function(n){return u.a.find(this.DiagramData,function(t){return t.id===n})},n.prototype.findOriginalParentById=function(n){var t=u.a.find(this.DiagramData,function(t){return t.id===n});return t?t.related:null},n.prototype.findOriginalIdByElement=function(n){var t=n.id;return n.LaneHeaderParent?t=n.LaneHeaderParent:n.isLane&&n.parentId&&(t=(t=t.replace(n.parentId,"")).substr(0,t.length-1)),this.findOriginalIdById(t)},n.prototype.findOriginalIdByArgsSearch=function(n,t){var i=n.replace(t,"");return i=i.substr(0,i.length-1),this.findOriginalIdById(i)},n.prototype.findOriginalIdById=function(n){return this.idMap.containsKey(n)?this.idMap.get(n):""},n.prototype.findParamsShapeGroupId=function(n){var i=-1,t;for(t in r.DiagramElementType)parseInt(t,10)>=0&&r.DiagramElementType[t]===n&&(i=parseInt(t));return i},n.prototype.findParamsShapeTypeId=function(n){var i=-1,t;for(t in r.ShapeType)parseInt(t,10)>=0&&r.ShapeType[t]===n&&(i=parseInt(t));return i},n.prototype.findShapeTypeEnumValue=function(n){var t=-1,i;return"Activity"!==n.shape?t=this.findParamsShapeTypeId(n.shape):(i=n.activity.activity,t=this.findParamsShapeTypeId(i)),t},n.prototype.registerElement=function(n,t){this.idMap.add(n,t)},n.prototype.registerLane=function(n,t,i){this.registerElement(n,t);this.laneIdxMap.add(t,i)},Object.defineProperty(n.prototype,"DataElement",{get:function(){return this.dataElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Shapes",{get:function(){return u.a.filter(this.DiagramData,function(n){return n.type===r.DiagramElementType.Shape&&!n.related})},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"SwimLanes",{get:function(){return u.a.filter(this.DiagramData,function(n){return n.type===r.DiagramElementType.SwimLane&&!n.related})},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ChildLanes",{get:function(){return u.a.filter(this.DiagramData,function(n){return n.type===r.DiagramElementType.Lane})},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Connectors",{get:function(){return u.a.filter(this.DiagramData,function(n){return n.type===r.DiagramElementType.Connector})},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"TaskSend",{get:function(){return u.a.filter(this.DiagramData,function(n){return n.iconName===r.TaskType.Send})},enumerable:!1,configurable:!0}),n.prototype.GetFilteredLanes=function(n){return u.a.filter(this.DiagramData,function(t){return t.type===r.DiagramElementType.Shape&&t.related===n})},n.nodePrefix="node-",n.connectorPrefix="connector-",n.lanePrefix="lane-",n.swimlanePrefix="swimlane-",n}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,f=i(4),e=i.n(f),r=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.state={version:0},i.orientationChange=i.orientationListener.bind(i),i}return o(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.domElement&&(this.rect=this.domElement.getBoundingClientRect())},t.prototype.componentDidUpdate=function(){this.domElement&&(this.rect=this.domElement.getBoundingClientRect())},t.prototype.componentWillReceiveProps=function(n){this.props.dataElement!==n.dataElement&&(this.props.dataElement&&this.props.dataElement.removeListener(this),n.dataElement&&n.dataElement.addListenerAndCall(this))},t.switchClass=function(n,t,i){i&&!n.classList.contains(t)?n.classList.add(t):!i&&n.classList.contains(t)&&n.classList.remove(t)},Object.defineProperty(t.prototype,"id",{get:function(){return this.props.dataElement?this.props.dataElement.Name:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsMobile",{get:function(){return this.props.dataElement&&this.props.dataElement.IsMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsMobileApp",{get:function(){return this.props.dataElement&&this.props.dataElement.IsMobileApp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DeviceType",{get:function(){return this.props.dataElement?this.props.dataElement.Window.DeviceType:r.DeviceType.FullBrowser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AppearanceInfo",{get:function(){return this.props.dataElement&&this.props.dataElement.AppearancePalette&&(this.appearanceInfo=this.props.dataElement.AppearancePalette.getAppearance(this.id)),this.appearanceInfo},enumerable:!1,configurable:!0}),t.prototype.orientationListener=function(){this.updateState()},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.IsMobile&&this.eventRegistrar.registerEventListener({domElement:window,type:"orientationchange",handler:this.orientationListener.bind(this)})},t.prototype.attachEventListeners=function(){n.prototype.attachEventListeners.call(this);this.props.dataElement&&this.props.dataElement.addListenerAndCall(this)},t.prototype.detachEventListeners=function(){n.prototype.detachEventListeners.call(this);this.props.dataElement&&this.props.dataElement.removeListener(this)},t.prototype.getDomElementByRefName=function(n){var t=this.refs[n];return t?e.a.findDOMNode(t):null},t.prototype.prepareClasses=function(){this.classes={};this.className&&(this.classes[this.className]=!0)},t.prototype.prepareStyle=function(){if(!this.props.dataElement)return null;var n=this.props.dataElement.Location.toCssProperties;this.style=n!=={}?n:null},t.prototype.createControls=function(){return this.props.dataElement?this.props.dataElement.Elements.filter(function(n){return n.IsVisible}).map(function(n){return r.WindowBase.createDataControl(n)}):null},t.prototype.handler=function(n){(n.PropertiesChanged||n.ElementsChanged||n.LocationChanged||n.ParentLocationChanged)&&this.updateState()},t.prototype.updateState=function(){this.props.dataElement&&this.setState({version:this.props.dataElement.Version})},t.prototype.renderMobile=function(){return console.assert(!r.IsDebug,"Brak implementacji metody ["+this.constructor.name+".renderMobile()] dla interfejsu mobilnego"),null},t.prototype.renderBrowser=function(){return null},t.prototype.render=function(){return this.IsMobile?this.renderMobile():this.renderBrowser()},t}(r.ControlEventListener)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var f,s=i(1),r=i.n(s),h=i(3),e=i.n(h),c=i(2),u=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},a=function(n){function t(t){var i=n.call(this,t)||this;return i.className="features-bar",i}return l(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.initialWidth=this.domElement.getBoundingClientRect().width;this.targetGridDOM=document.getElementsByClassName("grid-main")[0]},t.prototype.onCommandClick=function(n){this.props.dataElement.post("groupapply","");this.props.onCommandClick(n)},t.prototype.createBarContent=function(){return this.createFeatureBarContent()},Object.defineProperty(t.prototype,"id",{get:function(){return this.props.dataElement.Name+"-ft"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizer",{get:function(){var n=this;return this.IsMobile?null:r.a.createElement(u.Splitter,{parent:this,onResizeStart:function(){return n.onResizeStart()},onResizeDrag:function(t){return n.onResizeDrag(t)}})},enumerable:!1,configurable:!0}),t.prototype.zeroPad=function(n,t){var i=t-n.toString().length+1;return Array(+(i>0&&i)).join("0")+n},t.prototype.createFeatureBarContent=function(){var h=this,i={},e=[],l={postion:"absolute",name:""+this.id,left:0},t=1,f="",n,s;for(i[0]={head:!0,features:[this.props.dataElement.Groups[0]]};t<this.props.dataElement.Groups.length;)if(n=this.props.dataElement.Groups[t],f=this.zeroPad(n.ID,5),n.IsRoot||"GroupExp"===n.Type){i[f]={head:!0,features:[]};do i[f].features.push(n),t++,n=this.props.dataElement.Groups[t];while(n&&n.IsExpandable&&t<this.props.dataElement.Groups.length)}else{i[f]={head:!1,features:[]};do i[f].features.push(n),t++,n=this.props.dataElement.Groups[t];while(n&&!n.IsExpandable&&t<this.props.dataElement.Groups.length)}return s=0,c.a.forEach(i,function(n){s++;h.renderSection(e,n,s)}),[this.IsMobile?r.a.createElement("div",{key:"fe-con-mobile",className:"features-container"},e):r.a.createElement(u.Scroll,o({key:"fe-con-scroll",ref:"scroll"},l),r.a.createElement("div",{key:"".CreateReactKey(),className:"features-container"},e))]},t.prototype.renderSection=function(n,t,i){var u=this,f=t.head?"features-header":"features-items";n.push(r.a.createElement("div",{key:"fe-section-"+i,className:f},t.features.map(function(n,i){return u.renderFeatureElementControl(t.head,n,i)})))},t.prototype.renderFeatureElementControl=function(n,t,i){return r.a.createElement(u.FeatureBarElement,{key:t.Name+"_"+i,header:n,featureElement:t,dataElement:t.Parent})},t.prototype.createHeaderCommands=function(){var n=this;return[{Name:"apply",Icon:"ok",IsVisible:!0}].map(function(t){var i=new u.CommandClickEventArgs(t.Name);return u.HeaderBarMobile.createHeaderCommand(t,n.onCommandClick.bind(n,i))},this)},t.prototype.onResizeStart=function(){this.startWidth=this.domElement.getBoundingClientRect().width},t.prototype.onResizeDrag=function(n){var t,i;this.domElement&&(t=this.startWidth+n,t>this.initialWidth&&(i=t+"px",this.domElement.style.width=i,this.targetGridDOM&&(this.targetGridDOM.style.left=i)))},t.prototype.renderMobile=function(){var n=this;return this.prepareClasses(),r.a.createElement("div",{id:this.id,className:e()(this.classes)},r.a.createElement(u.HeaderBarMobile,{searchActive:!1,searchState:!1,captionHtml:u.LanguageConstants.RESOURCES.Str_GroupingFeatures,className:"headerbar-features",commands:this.createHeaderCommands(),onMenuClick:function(t){return n.onCommandClick(t)}}),this.createBarContent())},t.prototype.renderBrowser=function(){return this.prepareClasses(),this.prepareStyle(),r.a.createElement("div",{id:this.id,className:e()(this.classes)},this.resizer,this.createBarContent())},t}(u.BaseBar)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var r,u=i(0),f=function(){function n(){}return n.syncfusion=function(n){switch(n){case"pl":return[i.e("locales/sflocale.PL").then(i.t.bind(null,1196,3)),i.e("locales/sflocale.PL").then(i.t.bind(null,1197,3)),i.e("locales/sflocale.PL").then(i.t.bind(null,1198,3)),i.e("locales/sflocale.PL").then(i.t.bind(null,1199,3)),i.e("locales/sflocale.PL").then(i.t.bind(null,1200,3)),i.e("locales/sflocale.common").then(i.t.bind(null,1201,3))];case"en":return[i.e("locales/sflocale.EN").then(i.t.bind(null,1202,3)),i.e("locales/sflocale.EN").then(i.t.bind(null,1203,3)),i.e("locales/sflocale.EN").then(i.t.bind(null,1204,3)),i.e("locales/sflocale.EN").then(i.t.bind(null,1205,3)),i.e("locales/sflocale.EN").then(i.t.bind(null,1206,3)),i.e("locales/sflocale.common").then(i.t.bind(null,1201,3))];case"de":return[i.e("locales/sflocale.DE").then(i.t.bind(null,1207,3)),i.e("locales/sflocale.DE").then(i.t.bind(null,1208,3)),i.e("locales/sflocale.DE").then(i.t.bind(null,1209,3)),i.e("locales/sflocale.DE").then(i.t.bind(null,1210,3)),i.e("locales/sflocale.DE").then(i.t.bind(null,1211,3)),i.e("locales/sflocale.common").then(i.t.bind(null,1201,3))];case"ru":return[i.e("locales/sflocale.RU").then(i.t.bind(null,1212,3)),i.e("locales/sflocale.RU").then(i.t.bind(null,1213,3)),i.e("locales/sflocale.RU").then(i.t.bind(null,1214,3)),i.e("locales/sflocale.RU").then(i.t.bind(null,1215,3)),i.e("locales/sflocale.RU").then(i.t.bind(null,1216,3)),i.e("locales/sflocale.common").then(i.t.bind(null,1201,3))];case"fr":return[i.e("locales/sflocale.FR").then(i.t.bind(null,1217,3)),i.e("locales/sflocale.FR").then(i.t.bind(null,1218,3)),i.e("locales/sflocale.FR").then(i.t.bind(null,1219,3)),i.e("locales/sflocale.FR").then(i.t.bind(null,1220,3)),i.e("locales/sflocale.FR").then(i.t.bind(null,1221,3)),i.e("locales/sflocale.common").then(i.t.bind(null,1201,3))];default:return null}},n}(),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this)||this;return i.initLiveCounter(i),i.viewer=t,i.locale=u.GlobalSettings.Instance.CurrentLanguage,i}return e(t,n),t.prototype.cssToLoad=function(){return[i.e("sfcommons").then(i.t.bind(null,1182,7)),i.e("sfcommons").then(i.t.bind(null,1183,7)),i.e("sfcommons").then(i.t.bind(null,1184,7)),i.e("sfdiagram").then(i.t.bind(null,1185,7)),i.e("sfcommons").then(i.t.bind(null,1186,7)),i.e("sfgantt").then(i.t.bind(null,1187,7)),i.e("sfcommons").then(i.t.bind(null,1188,7)),i.e("sfcommons").then(i.t.bind(null,1189,7)),i.e("sfcommons").then(i.t.bind(null,1190,7)),i.e("sfcommons").then(i.t.bind(null,1191,7)),i.e("sfcommons").then(i.t.bind(null,1192,7)),i.e("sfcommons").then(i.t.bind(null,1193,7)),i.e("sfcommons").then(i.t.bind(null,1194,7)),i.e("sfcommons").then(i.t.bind(null,1195,7))]},Object.defineProperty(t.prototype,"Locale",{get:function(){return this.locale},enumerable:!1,configurable:!0}),t.prototype.mountLibrary=function(){var t=this;this.incrementLiveCounter();var n=u.GlobalSettings.Instance.CurrentLanguage,i=this.componentsToImport(),r=f.syncfusion(n);return new Promise(function(u){Promise.all(i).then(function(i){var f=i[0];Promise.all(r).then(function(r){f.setCulture(n);f.L10n.load(r[0]);f.loadCldr(r.slice(1));t.isMounted=!0;u(i)})})})},t.prototype.unMountLibrary=function(){this.isMounted&&(this.isMounted=!1,this.decrementLiveCounter())},t}(u.LibraryLoader)},,,,,,,,,,,function(n,t,i){"use strict";i.r(t);i.d(t,"App",function(){return l});i(565);i(708);var f,s=i(1),u=i.n(s),h=i(4),e=i.n(h),o=i(2),r=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(n){function t(t){var i=n.call(this,t)||this;return i.UrlHashMonitor={oldHref:"",newHref:""},i.componentFactory=new r.DictionaryEx,i.componentFactory.add("Form",r.FormWindow),i.componentFactory.add("Folder",r.FolderWindow),i.componentFactory.add("Wizard",r.WizardWindow),i.componentFactory.add("Modal",r.ModalWindow),i.componentFactory.add("Popup",r.PopupWindow),i.componentFactory.add("Frame",r.FrameWindow),r.LanguageConstants.Init(),i.state={windows:[]},i}return c(t,n),t.prototype.componentWillMount=function(){r.WindowManager.Instance.addListenerAndCall(this);window.addEventListener("resize",this.onResizeEventHandler.bind(this));window.addEventListener("hashchange",this.onHashChangeEventHandler.bind(this))},t.prototype.componentWillUnmount=function(){r.WindowManager.Instance.removeListener(this);window.removeEventListener("resize",this.onResizeEventHandler.bind(this));window.removeEventListener("hashchange",this.onHashChangeEventHandler.bind(this))},t.prototype.componentDidUpdate=function(){var n=this.refs.frame;n&&n.windowAddressChange()},t.prototype.onResizeEventHandler=function(){if("MobileApp"!==r.CookieHelper.GetDeviceType()&&"MobileBrowser"!==r.CookieHelper.GetDeviceType()){var n=document.getElementsByClassName("window");1===n.length&&(this.delayOnResize&&clearTimeout(this.delayOnResize),this.delayOnResize=setTimeout(function(){var t={deviceInfo:Object(r.GetDeviceInfo)(n[0]),window:r.WindowManager.Instance.ActiveWindow};r.WindowManager.Instance.post(t)},500))}},t.prototype.onHashChangeEventHandler=function(n){if("MobileApp"!==r.CookieHelper.GetDeviceType()&&"MobileBrowser"!==r.CookieHelper.GetDeviceType())if(Object(r.GetIgnoreNextHashChanging)())Object(r.SetIgnoreNextHashChanging)(!1);else if(this.UrlHashMonitor.newHref&&(this.UrlHashMonitor.oldHref=n.oldURL?n.oldURL:this.UrlHashMonitor.newHref),this.UrlHashMonitor.newHref=n.newURL?n.newURL:window.location.href,this.UrlHashMonitor.newHref&&this.UrlHashMonitor.newHref!==this.UrlHashMonitor.oldHref){var t=this.UrlHashMonitor.newHref.split("#");2===t.length&&t[1]&&r.WindowManager.Instance.ActiveWindow.postEsc()}},t.prototype.findActiveWindow=function(n){var t=n;return t&&t.ChildrenWindows.length>0?this.findActiveWindow(t.ChildrenWindows[t.ChildrenWindows.length-1]):t},t.prototype.findParentWindows=function(n){for(var i=[],t=n.Parent;t;){if(r.WindowManager.Instance.checkIsWindowOpen(t)&&(i.push(t),"Modal"!==t.Mode&&"Popup"!==t.Mode))return i;t=t.Parent}return this.findBackgroundWindows(n)},t.prototype.findBackgroundWindows=function(n){for(var i=r.WindowManager.Instance.WindowsHistory,u=[],t=0;t<i.length;t++)if(r.WindowManager.Instance.checkIsWindowOpen(i[t])&&i[t]!==n&&("Modal"===i[t].Mode&&i[t-1]&&"Modal"===i[t-1].Mode?u.unshift(i[t]):u.push(i[t]),"Modal"!==i[t].Mode&&"Popup"!==i[t].Mode))return u;return u.length>0?u:null},t.prototype.handler=function(n){var t,i;(n.Redirect&&("NewWindow"===n.Redirect.Target&&"MobileApp"===r.CookieHelper.GetDeviceType()?"scan"===n.Redirect.Url?Android.openScanner():Android.openUrl(n.Redirect.Url):(r.StorageHelper.RemoveLastWindowHandle(),"Self"===n.Redirect.Target||n.Redirect.Url.indexOf("LogOff")>=0?document.location.href=n.Redirect.Url:window.open(n.Redirect.Url))),n.ActiveWindowChanged||n.WindowsChanged||n.FirstCall)&&(t=this.getVisibleWindows(),t&&this.state.windows[0]!==t[0]&&(i=r.WindowManager.Instance.ActiveWindow,i&&i.Address&&Object(r.SetAddressHash)(r.WindowManager.Instance.ActiveWindow.Address),this.setState({windows:t}),r.WindowManager.Instance.addWindowsToHistory(t)));n.GlobalDialog&&this.openDialog(n.GlobalDialog)},t.prototype.initRootDom=function(){return document.getElementById("container")},t.prototype.render=function(){var n=this,t=u.a.createElement(r.KeyboardController,{initRoot:function(){return n.initRootDom()}});return u.a.createElement(u.a.Fragment,null,u.a.createElement(r.Loader,null),this.createFrame(),this.state.windows.map(function(t){return n.createWindow(t)}),t)},t.prototype.createWindow=function(n,t){var i=t?"frame":null,r=this.componentFactory.get(n.Mode);return u.a.createElement(r,{window:n,key:"w"+n.LocalID,ref:i})},Object.defineProperty(t.prototype,"recentWindowHandle",{get:function(){return r.StorageHelper.GetLastWindowHandle()},enumerable:!1,configurable:!0}),t.prototype.createFrame=function(){var n=r.WindowManager.Instance.Frame;return n?this.createWindow(n,!0):null},t.prototype.getVisibleWindows=function(){var n=r.WindowManager.Instance.ActiveWindow,t=[],i,u;return n&&null!==n.Root&&(t.push(n),"Popup"===n.Mode||"Modal"===n.Mode)&&(n.Parent?(i=this.findParentWindows(n))&&i.length>0&&t.push.apply(t,i):("Modal"===n.Mode||"Popup"===n.Mode)&&(i=this.findBackgroundWindows(n))&&i.length>0&&t.push.apply(t,i)),0!==t.length||r.WindowManager.Instance.IsServerRequesting||(this.recentWindowHandle?(u={WindowHandle:this.recentWindowHandle,LiveCounter:0},r.CookieHelper.SetDeviceType(Android?"MobileApp":"MobileBrowser"),r.WindowManager.Instance.execute(u)):r.WindowManager.Instance.start()),t},t.prototype.findWindow=function(n){return"Popup"!==n.Mode&&"Modal"!==n.Mode||!n.Parent?n:"Popup"!==n.Parent.Mode&&"Modal"!==n.Parent.Mode?n.Parent:this.findWindow(n.Parent)},t.prototype.findWindowCollection=function(n,t){if(t.push(n),"Popup"!==n.Mode&&"Modal"!==n.Mode)return t;if(n.Parent)return"Popup"!==n.Parent.Mode&&"Modal"!==n.Parent.Mode?(t.push(n.Parent),t):this.findWindowCollection(n.Parent,t);var i=this.findBackgroundWindow();if(i&&!o.a.contains(t,i))return(t.push(i),t)},t.prototype.findBackgroundWindow=function(){var n=r.WindowManager.Instance.Roots,t=o.a.findIndex(n,function(n){return n&&!n.IsFrame&&"Modal"!==n.Mode&&"Popup"!==n.Mode});return n[t]&&n[t].Mode?this.findWindow(n[t]):null},t.prototype.findLast=function(n){var i,t;if(!n.IsVisible)return null;for(i=n.ChildrenWindows.length;--i>=0;)if(t=n.ChildrenWindows[i],null!==(t=this.findLast(t)))return t;return n},t.prototype.openDialog=function(n){if(n){var t=n.message.split("\r\n"),i=r.DOMHelper.createDomElement("div","dialogContainer"),f=n.type===r.DialogType.Error?r.LanguageConstants.RESOURCES.Str_DialogError:r.LanguageConstants.RESOURCES.Str_DialogInfo;void 0!==n.caption&&(f=n.caption);e.a.unmountComponentAtNode(i);e.a.render(u.a.createElement(r.Dialog,{id:"GlobalDialog",type:n.type,caption:f,sections:t.length>1?t:null,textHtml:t.length<=1?n.message:null,defaultIconSvg:r.SvgIcon.errorIcon,isMobile:r.CookieHelper.IsMobile,closeRedirect:n.loginRedirect}),i)}},t}(u.a.Component);document.addEventListener("DOMContentLoaded",function(){r.LanguageConstants.RegisterResources().then(function(){r.PageFactory.Instance.checkPageLocation()||r.PageFactory.Instance.createPageContent(document.location.href)})})},,,,,,,,,,,,,,,function(n,t,i){"use strict";var r,h,u,f,c,e,o,s;i.d(t,"c",function(){return r});i.d(t,"e",function(){return u});i.d(t,"d",function(){return f});i.d(t,"f",function(){return e});i.d(t,"a",function(){return o});i.d(t,"b",function(){return s}),function(n){n[n.TaskId=0]="TaskId";n[n.StartDate=1]="StartDate";n[n.EndDate=2]="EndDate";n[n.IsMileStone=3]="IsMileStone";n[n.Progress=4]="Progress";n[n.TaskName=5]="TaskName";n[n.Dependency=6]="Dependency";n[n.Resources=7]="Resources";n[n.BaselineStartDate=8]="BaselineStartDate";n[n.BaselineEndDate=9]="BaselineEndDate";n[n.ParentId=10]="ParentId";n[n.BackColor=11]="BackColor";n[n.ForeColor=12]="ForeColor"}(r||(r={})),function(n){n[n.id=0]="id";n[n.name=1]="name"}(h||(h={})),function(n){n[n.HourMinute=0]="HourMinute";n[n.DayHour=1]="DayHour";n[n.WeekDay=2]="WeekDay";n[n.MonthDay=3]="MonthDay"}(u||(u={})),function(n){n[n.Hour=0]="Hour";n[n.Day=1]="Day";n[n.Minute=2]="Minute"}(f||(f={})),function(n){n[n.Prev=0]="Prev";n[n.Next=1]="Next"}(c||(c={})),function(n){n[n.zoomIn=0]="zoomIn";n[n.zoomOut=1]="zoomOut";n[n.zoomFit=2]="zoomFit"}(e||(e={})),function(n){n[n.None=0]="None";n[n.StartToStart=1]="StartToStart";n[n.StartToEnd=2]="StartToEnd";n[n.EndToStart=3]="EndToStart";n[n.EndToEnd=4]="EndToEnd"}(o||(o={})),function(n){n[n.GanttElement=0]="GanttElement";n[n.HTMLElement=1]="HTMLElement"}(s||(s={}))},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(2),u=function(){function n(){}return n.hexToRgb=function(t,i){if(!n.isHexColor(t))return t;var r="0123456789ABCDEF",u=16*r.indexOf(t[1])+r.indexOf(t[2]),f=16*r.indexOf(t[3])+r.indexOf(t[4]),e=16*r.indexOf(t[5])+r.indexOf(t[6]);return i?"rgba("+u+", "+f+", "+e+", "+i+")":"rgb("+u+", "+f+", "+e+")"},n.isHexColor=function(n){return/^#[0-9A-F]{6}$/i.test(n)},n.colorNameToRgbTab=function(n){var i,t,u=new Uint8ClampedArray;return(i=document.createElement("canvas")).height=1,i.width=1,(t=i.getContext("2d"))&&(t.fillStyle=n,t.fillRect(0,0,1,1),u=t.getImageData(0,0,1,1).data),u?r.a.map(u,function(n){return n.toString()}).slice(0,3):["0","0","0"]},n.shadeColor=function(t,i){var r,u,f,o="1",e;if(t.indexOf("#")>=0)if(t.match(/\#\b[0-F]{3}\b|\#\b[0-f]{3}\b/))r=parseInt(t.slice(1,2)+t.slice(1,2),16),u=parseInt(t.slice(2,3)+t.slice(2,3),16),f=parseInt(t.slice(3,4)+t.slice(3,4),16);else if(t.match(/\#\b[0-F]{6}\b|\#\b[0-f]{6}\b/))r=parseInt(t.slice(1,3),16),u=parseInt(t.slice(3,5),16),f=parseInt(t.slice(5,7),16);else{if(!t.match(/\#\b[0-F]{8}\b|\#\b[0-f]{8}\b/))return null;r=parseInt(t.slice(1,3),16);u=parseInt(t.slice(3,5),16);f=parseInt(t.slice(5,7),16);o=t.slice(7,9)}else{if(e=void 0,t.indexOf("rgb")>=0){if(!(t=t.replace(/\s/g,"")).match(/(rgb|RGB)\(((0*([1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])),){2}(0*([1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5]))\)/)&&!t.match(/(rgba|RGBA)\(((0*([1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])),){3}(0*([0]*\.[0-9]+)|(1)|(0))\)/))return null;e=t.slice(t.indexOf("(")+1,t.indexOf(")")).split(",")}else e=n.colorNameToRgbTab(t);r=parseInt(e[0]);u=parseInt(e[1]);f=parseInt(e[2]);e.length>3&&(o=Math.round(255*parseFloat(e[3])).toString(16))}r=Math.round(r*(100-i)/100);u=(u=Math.round(u*(100-i)/100))<255?u:255;f=(f=Math.round(f*(100-i)/100))<255?f:255;var s=1===(r=r<255?r:255).toString(16).length?"0"+r.toString(16):r.toString(16),h=1===u.toString(16).length?"0"+u.toString(16):u.toString(16),c=1===f.toString(16).length?"0"+f.toString(16):f.toString(16),l=o?1===o.length?"0"+o:o:null;return"#"+s+h+c+(l||"")},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return f});var r=i(0),u=function(){function n(){this.fromYear=0;this.fromMonth=0;this.fromDay=0;this.toYear=0;this.toMonth=0;this.toDay=0}return n.prototype.getFromAsUTC=function(){return Date.UTC(this.fromYear,this.fromMonth-1,this.fromDay)},n.prototype.getToAsUTC=function(){return Date.UTC(this.toYear,this.toMonth-1,this.toDay)},n}(),f=function(){function n(){}return n.formatOneDigitNumber=function(n){return(n<=9?"0":"")+n},n.findSeparator=function(n){return n.indexOf("-")>0?"-":n.indexOf("/")>0?"/":"."},n.parseFromTo=function(t){var e=n.findSeparator(t),o="."===e?2:0,s="."===e?0:2,h=t.split("..."),c=h[0],l=h[1],r=c.split(e),f=l.split(e),i=new u;return r.length>1&&(i.fromYear=parseInt(r[o],10),i.fromMonth=parseInt(r[1],10),i.fromDay=parseInt(r[s],10)),f.length>1&&(i.toYear=parseInt(f[o],10),i.toMonth=parseInt(f[1],10),i.toDay=parseInt(f[s],10)),1===r.length&&(r=[i.toYear.toString(),i.toMonth.toString(),r[0]],i.fromYear=parseInt(r[0],10),i.fromMonth=parseInt(r[1],10),i.fromDay=parseInt(r[2],10)),1===f.length&&(f=[i.fromYear.toString(),i.fromMonth.toString(),f[0]],i.toYear=parseInt(f[0],10),i.toMonth=parseInt(f[1],10),i.toDay=parseInt(f[2],10)),i},n.prepareDateValue=function(n){if(n.indexOf(".")>=0){var t=n.substring(6,n.length),i=n.substring(3,5),r=n.substring(0,2);n=t+"-"+i+"-"+r}return n},n.incrementOneMonth=function(t){var i=new Date(t),r=new Date(t);return i.setMonth(i.getMonth()+1),i.getMonth()-1>r.getMonth()&&(i.setDate(n.getLastDayOfMonth(i.getFullYear(),i.getMonth())),i.setMonth(i.getMonth()-1)),[i.getFullYear(),"-",n.formatOneDigitNumber(i.getMonth()+1),"-",n.formatOneDigitNumber(i.getDate())].join("")},n.decrementOneMonth=function(t){var i=new Date(t);return i.setMonth(i.getMonth()-1),[i.getFullYear(),"-",n.formatOneDigitNumber(i.getMonth()+1),"-",n.formatOneDigitNumber(i.getDate())].join("")},n.incrementOneDayDate=function(t){var i=new Date(Date.parse(n.prepareDateValue(t))+864e5);return"."===n.findSeparator(t)?[n.formatOneDigitNumber(i.getDate()),".",n.formatOneDigitNumber(i.getMonth()+1),".",i.getFullYear()].join(""):[i.getFullYear(),"-",n.formatOneDigitNumber(i.getMonth()+1),"-",n.formatOneDigitNumber(i.getDate())].join("")},n.decrementOneDayDate=function(t){var i=new Date(Date.parse(n.prepareDateValue(t))-864e5);return"."===n.findSeparator(t)?[n.formatOneDigitNumber(i.getDate()),".",n.formatOneDigitNumber(i.getMonth()+1),".",i.getFullYear()].join(""):[i.getFullYear(),"-",n.formatOneDigitNumber(i.getMonth()+1),"-",n.formatOneDigitNumber(i.getDate())].join("")},n.incrementYearMonth=function(n,t,i){var r=i.indexOf(n);return i[r+1>i.length-1?0:r+1]+" "+(r+1>i.length-1?(parseInt(t)+1).toString():t)},n.decrementYearMonth=function(n,t,i){var r=i.indexOf(n);return i[r-1<0?i.length-1:r-1]+" "+(r-1<0?(parseInt(t)-1).toString():t)},n.increment=function(t){var i,r,u="",l=n.findSeparator(t),s;if("("===t[0])return s=new Date,[s.getFullYear(),n.formatOneDigitNumber(s.getMonth()+1),"01"].join("-")+"..."+n.getLastDayOfMonth(s.getFullYear(),s.getMonth()+1);if(!(t.indexOf("...")>=0))return this.incrementOneDayDate(t);if(i=n.parseFromTo(t),"."!==l)if(1==i.fromMonth&&1==i.fromDay&&12==i.toMonth&&31==i.toDay)i.fromYear+=1,u=i.fromYear+"-01-01..."+i.fromYear+"-12-31";else if(1==i.fromDay&&15==i.toDay)u=[i.fromYear,n.formatOneDigitNumber(i.fromMonth),16].join("-")+"..."+n.getLastDayOfMonth(i.fromYear,i.fromMonth);else if(16==i.fromDay&&i.toDay==n.getLastDayOfMonth(i.toYear,i.toMonth))(r=i.fromMonth+1)>12&&(r=1,i.fromYear+=1),u=[i.fromYear,n.formatOneDigitNumber(r),"01"].join("-")+"...15";else if(1==i.fromDay&&i.toDay==n.getLastDayOfMonth(i.toYear,i.toMonth))(r=i.fromMonth+1)>12&&(r=1,i.fromYear+=1),u=[i.fromYear,n.formatOneDigitNumber(r),n.formatOneDigitNumber(i.fromDay)].join("-")+"..."+n.getLastDayOfMonth(i.fromYear,r);else if(1==i.fromDay&&10==i.toDay)u=[i.fromYear,n.formatOneDigitNumber(i.fromMonth),11].join("-")+"...20";else if(11==i.fromDay&&20==i.toDay)u=[i.fromYear,n.formatOneDigitNumber(i.fromMonth),21].join("-")+"..."+n.getLastDayOfMonth(i.fromYear,i.fromMonth);else if(21==i.fromDay&&i.toDay==n.getLastDayOfMonth(i.fromYear,i.fromMonth))(r=i.fromMonth+1)>12&&(r=1,i.fromYear+=1),u=[i.fromYear,n.formatOneDigitNumber(r),"01"].join("-")+"...10";else{var h=i.getFromAsUTC(),f=i.getToAsUTC(),c=Math.floor((f-h)/n.one_day)+1,e=new Date(f+n.one_day),o=new Date(f+n.one_day*c);u=[e.getFullYear(),n.formatOneDigitNumber(e.getMonth()+1),n.formatOneDigitNumber(e.getDate())].join("-")+"..."+[o.getFullYear(),n.formatOneDigitNumber(o.getMonth()+1),n.formatOneDigitNumber(o.getDate())].join("-")}else"."===l&&(1==i.fromMonth&&1==i.fromDay&&12==i.toMonth&&31==i.toDay?(i.fromYear+=1,u="01.01."+i.fromYear+"...31.12."+i.fromYear):1==i.fromDay&&15==i.toDay?u="16..."+[n.getLastDayOfMonth(i.fromYear,i.fromMonth),n.formatOneDigitNumber(i.fromMonth),i.fromYear].join("."):16==i.fromDay&&i.toDay==n.getLastDayOfMonth(i.toYear,i.toMonth)?((r=i.fromMonth+1)>12&&(r=1,i.fromYear+=1),u="01..."+["15",n.formatOneDigitNumber(r),i.fromYear].join(".")):1==i.fromDay&&i.toDay==n.getLastDayOfMonth(i.toYear,i.toMonth)?((r=i.fromMonth+1)>12&&(r=1,i.fromYear+=1),u=n.formatOneDigitNumber(i.fromDay)+"..."+[n.getLastDayOfMonth(i.fromYear,r),n.formatOneDigitNumber(r),i.fromYear].join(".")):1==i.fromDay&&10==i.toDay?u="20..."+["11",n.formatOneDigitNumber(i.fromMonth),i.fromYear].join("."):11==i.fromDay&&20==i.toDay?(u="21..."+[n.getLastDayOfMonth(i.fromYear,i.fromMonth),n.formatOneDigitNumber(i.fromMonth),i.fromYear].join("."),u=[i.fromYear,n.formatOneDigitNumber(i.fromMonth),21].join("-")+"..."+n.getLastDayOfMonth(i.fromYear,i.fromMonth)):21==i.fromDay&&i.toDay==n.getLastDayOfMonth(i.fromYear,i.fromMonth)?((r=i.fromMonth+1)>12&&(r=1,i.fromYear+=1),u="01..."+["10",n.formatOneDigitNumber(r),i.fromYear].join(".")):(h=i.getFromAsUTC(),f=i.getToAsUTC(),c=Math.floor((f-h)/n.one_day)+1,e=new Date(f+n.one_day),o=new Date(f+n.one_day*c),u=[n.formatOneDigitNumber(e.getDate()),n.formatOneDigitNumber(e.getMonth()+1),e.getFullYear()].join(".")+"..."+[n.formatOneDigitNumber(o.getDate()),n.formatOneDigitNumber(o.getMonth()+1),o.getFullYear()].join(".")));return u},n.decrement=function(t){var i,r,u="",s,h;if("("===t[0])return s=new Date,[s.getFullYear(),n.formatOneDigitNumber(s.getMonth()+1),"01"].join("-")+"..."+n.getLastDayOfMonth(s.getFullYear(),s.getMonth()+1);if(!(t.indexOf("...")>=0))return this.decrementOneDayDate(t);if(i=n.parseFromTo(t),h=n.findSeparator(t),"."!==h)if(1==i.fromMonth&&1==i.fromDay&&12==i.toMonth&&31==i.toDay)i.fromYear-=1,u=i.fromYear+"-01-01..."+i.fromYear+"-12-31";else if(1==i.fromDay&&i.toDay==n.getLastDayOfMonth(i.toYear,i.toMonth))0==(r=i.fromMonth-1)&&(i.fromYear-=1,r=12),u=[i.fromYear,n.formatOneDigitNumber(r),n.formatOneDigitNumber(i.fromDay)].join("-")+"..."+n.getLastDayOfMonth(i.fromYear,r);else if(1==i.fromDay&&15==i.toDay)r=i.fromMonth-1,u=[i.fromYear,n.formatOneDigitNumber(r),"16"].join("-")+"..."+n.getLastDayOfMonth(i.fromYear,r);else if(16==i.fromDay&&i.toDay==n.getLastDayOfMonth(i.fromYear,i.fromMonth))u=[i.fromYear,n.formatOneDigitNumber(i.fromMonth),"01"].join("-")+"...15";else if(1==i.fromDay&&10==i.toDay)0==(r=i.fromMonth-1)&&(i.fromYear-=1,r=12),u=[i.fromYear,n.formatOneDigitNumber(r),21].join("-")+"..."+n.getLastDayOfMonth(i.fromYear,r);else if(11==i.fromDay&&20==i.toDay)u=[i.fromYear,n.formatOneDigitNumber(i.fromMonth),"01"].join("-")+"...10";else if(21==i.fromDay&&i.toDay==n.getLastDayOfMonth(i.fromYear,i.fromMonth))u=[i.fromYear,n.formatOneDigitNumber(i.fromMonth),11].join("-")+"...20";else{var f=i.getFromAsUTC(),c=i.getToAsUTC(),l=Math.floor((c-f)/n.one_day)+1,e=new Date(f-n.one_day*l),o=new Date(f-n.one_day);u=[e.getFullYear(),n.formatOneDigitNumber(e.getMonth()+1),n.formatOneDigitNumber(e.getDate())].join("-")+"..."+[o.getFullYear(),n.formatOneDigitNumber(o.getMonth()+1),n.formatOneDigitNumber(o.getDate())].join("-")}else"."===h&&(1===i.fromMonth&&1===i.fromDay&&12===i.toMonth&&31===i.toDay?(i.fromYear-=1,u="01.01."+i.fromYear+"...31.12."+i.fromYear):1==i.fromDay&&i.toDay==n.getLastDayOfMonth(i.toYear,i.toMonth)?(0==(r=i.fromMonth-1)&&(i.fromYear-=1,r=12),u=n.formatOneDigitNumber(i.fromDay)+"..."+[n.getLastDayOfMonth(i.fromYear,r),n.formatOneDigitNumber(r),i.fromYear].join(".")):1===i.fromDay&&15===i.toDay?(r=i.fromMonth-1,u="16..."+[n.getLastDayOfMonth(i.fromYear,r),n.formatOneDigitNumber(r),i.fromYear].join(".")):16===i.fromDay&&i.toDay==n.getLastDayOfMonth(i.fromYear,i.fromMonth)?u="15..."+["01",n.formatOneDigitNumber(i.fromMonth),i.fromYear].join("."):1==i.fromDay&&10==i.toDay?(0==(r=i.fromMonth-1)&&(i.fromYear-=1,r=12),u="21..."+[n.getLastDayOfMonth(i.fromYear,r),n.formatOneDigitNumber(r),i.fromYear].join(".")):11==i.fromDay&&20==i.toDay?u="01..."+["01",n.formatOneDigitNumber(i.fromMonth),i.fromYear].join("."):21==i.fromDay&&i.toDay==n.getLastDayOfMonth(i.fromYear,i.fromMonth)?u="20..."+["11",n.formatOneDigitNumber(i.fromMonth),i.fromYear].join("."):(f=i.getFromAsUTC(),c=i.getToAsUTC(),l=Math.floor((c-f)/n.one_day)+1,e=new Date(f-n.one_day*l),o=new Date(f-n.one_day),u=[n.formatOneDigitNumber(e.getDate()),n.formatOneDigitNumber(e.getMonth()+1),e.getFullYear()].join(".")+"..."+[n.formatOneDigitNumber(o.getDate()),n.formatOneDigitNumber(o.getMonth()+1),o.getFullYear()].join(".")));return u},n.parseDateToString=function(n,t){return t.replace("dd",Object(r.zeroPad)(n.getDate(),2)).replace("MM",n.getMonth()>8?(n.getMonth()+1).toString():"0"+(n.getMonth()+1)).replace("yyyy",n.getFullYear().toString()).replace("hh",Object(r.zeroPad)(n.getHours(),2)).replace("mm",Object(r.zeroPad)(n.getMinutes(),2)).replace("ss",Object(r.zeroPad)(n.getSeconds(),2))},n.one_day=864e5,n.isLeapYear=function(n){return!(n%400)||!!(n%100)&&!(n%4)},n.getLastDayOfMonth=function(t,i){return[31,n.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][i-1]},n}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,i){"use strict";var r=i(2);Array.prototype.IndexOf=function(n){for(var i=-1,t=0;t<this.length;t++)if(this[t]===n){i=t;break}return i};Array.prototype.Exist=function(n){var i=!1,t;if(!this)return!1;for(t=0;t<this.length;t++)if(this[t]===n){i=!0;break}return i};Array.prototype.Chunk=function(n,t){for(var i=[],r=0;r<this.length;r+=n)i.push(this.slice(r,r+n));if(t)for(;i[i.length-1].length<n;)i[i.length-1].push(null);return i};Array.prototype.Clone=function(){return r.a.map(this,function(n){return n})}},function(n,t,i){"use strict";var r=i(2),u=i(0);String.prototype.Capitalize=function(){if(!this)return this;var n=this.split(" ");return r.a.each(n,function(t,i){n[i]=t.charAt(0).toUpperCase()+t.slice(1)}),n.join(" ").trim()};String.prototype.CreateHash=function(){return u.HashHelper.CreateHash(this)};String.prototype.CreateReactKey=function(){var n=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return n()+n()};String.prototype.Empty=function(){return""};String.prototype.Format=function(){for(var t=this,i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];try{return this.replace(/{(\d+(:.*)?)}/g,function(n,r){var f=n.split(":"),u;return f.length>1&&(r=r[0],n=f[1].replace("}","")),u=t.FormatPattern(n,i[r]),void 0!==u&&null!=u?u:t.Empty()})}catch(t){return this.Empty()}};String.prototype.FormatPattern=function(n,t){switch(n){case"L":t=t.toLowerCase();break;case"U":t=t.toUpperCase()}return t};String.prototype.GetSplittedElement=function(n,t){return void 0===n&&(n="/"),void 0===t&&(t=1),this&&this.indexOf(n)>=0?this.split(n)[t]:this};String.prototype.RemoveCarriageReturn=function(){return this?this.replace(new RegExp("\r","g"),""):this};String.prototype.ReplaceAll=function(n,t){if(!this)return this;var i=new RegExp(n,"g");return this.replace(i,t)};String.prototype.StringToCharCodeList=function(){for(var i,t=[],n=0,r=this.length;n<r;n++)i=this.charCodeAt(n),t.push(i);return t.join(",")};String.prototype.WithoutPL=function(){if(!this)return this;var n={"ą":"a","Ą":"A","ć":"c","Ć":"C","ę":"e","Ę":"E","ł":"l","Ł":"L","ń":"n",N:"N","ó":"o","Ó":"O","ś":"s","Ś":"S","ź":"z","Ź":"Z","ż":"z","Ż":"Z"};return this.replace(/[^\w ]/g,function(t){return n[t]||t})};Number.prototype.ZeroPad=function(n){if(0!==this&&!this)return null;var t=n-this.toString().length+1;return Array(+(t>0&&t)).join("0")+this}},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,f=i(1),e=i.n(f),o=i(4),s=i.n(o),u=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.eventRegistrar=new u.EventListenerRegistrar,i}return h(t,n),t.prototype.componentDidMount=function(){!this.domElement&&this.id&&(this.domElement=document.getElementById(this.id));this.domElement||(this.domElement=s.a.findDOMNode(this));this.initEventListeners();this.attachEventListeners()},t.prototype.componentWillUnmount=function(){this.detachEventListeners()},t.prototype.attachEventListeners=function(){this.eventRegistrar.attachEvents()},t.prototype.detachEventListeners=function(){this.eventRegistrar.detachEvents()},t.prototype.reAttachEventListeners=function(){this.eventRegistrar.detachEvents(!0);this.initEventListeners();this.eventRegistrar.attachEvents(!0)},t.prototype.preventEvents=function(n,t){n.stopPropagation();(t||0!==n.type.indexOf("touch"))&&n.preventDefault()},t.prototype.initEventListeners=function(){},Object.defineProperty(t.prototype,"IsStandardProduct",{get:function(){return u.GlobalSettings.Instance.IsStandardProduct},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.id?this.props.id:null},enumerable:!1,configurable:!0}),t}(e.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){var i=n.call(this,t)||this;return i.doNotInitEvents=i.IsMobile||!i.hasDescription,i}return f(t,n),t.prototype.componentDidMount=function(){this.domTooltip||(this.domTooltip=document.getElementById(this.tooltipId));n.prototype.componentDidMount.call(this)},Object.defineProperty(t.prototype,"tooltipId",{get:function(){return this.id+"_tt"},enumerable:!1,configurable:!0}),t.prototype.InitToolTip=function(){this.followMouse?this.onMouseMoveHandler=this.mouseMoveListener.bind(this):this.onMouseEnterHandler=this.mouseEnterListener.bind(this);this.onMouseLeaveHandler=this.mouseLeaveListener.bind(this)},t.prototype.InitToolTipStyle=function(){this.tooltipDiv.style.visibility="hidden";this.tooltipDiv.style.left=this.getRect().left+"px"},t.prototype.CreateToolTip=function(){this.tooltipDiv=document.createElement("div");this.tooltipDiv.className="tooltip";this.tooltipDiv.innerHTML=this.initTooltipText();document.body.appendChild(this.tooltipDiv)},t.prototype.getRect=function(){return this.domTooltip.getBoundingClientRect()},t.prototype.mouseEnterListener=function(n){var i,t;this.tooltipDiv||(i=this.getRect(),this.CreateToolTip(),this.InitToolTipStyle(),t=this.tooltipDiv.getBoundingClientRect(),n.clientX+t.width>document.defaultView.innerWidth&&(this.tooltipDiv.style.left=i.left-(n.clientX+t.width-document.defaultView.innerWidth)-10+"px"),n.clientY+t.height>document.defaultView.innerHeight&&(this.tooltipDiv.style.top=i.top-t.height-5+"px"),this.tooltipDiv.style.visibility="visible")},t.prototype.mouseMoveListener=function(n){var t=this;this.tooltipDiv||(this.CreateToolTip(),this.tooltipDiv.style.visibility="hidden",setTimeout(function(){t.tooltipDiv&&(t.tooltipDiv.style.visibility="visible")},250));this.tooltipDiv.style.left=n.clientX+10+"px";this.tooltipDiv.style.top=n.clientY+10+"px"},t.prototype.mouseLeaveListener=function(){this.tooltipDiv&&(document.body.removeChild(this.tooltipDiv),this.tooltipDiv=null)},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.initEventMouse()},t.prototype.initEventMouse=function(){if(!this.doNotInitEvents){var n=[{domElement:this.domTooltip,type:"mouseleave",handler:this.onMouseLeaveHandler}];this.followMouse?n.push({domElement:this.domTooltip,type:"mousemove",handler:this.onMouseMoveHandler}):n.push({domElement:this.domTooltip,type:"mouseover",handler:this.onMouseEnterHandler});this.eventRegistrar.registerEventListeners(n)}},Object.defineProperty(t.prototype,"hasDescription",{get:function(){return this.props.dataElement&&!!this.props.dataElement.DescriptionHtml},enumerable:!1,configurable:!0}),t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var u=i(4),f=i.n(u),r=i(0),e=function(){function n(n){this._eipMode=!1;this.allowFocusCurrent=!1;this.reactElement=n;this.controlEditor=n;this.domWalker=new r.MouseDomTreeWalker(document.getElementById("container"));this.eventRegistrar=new r.EventListenerRegistrar}return n.prototype.onComponentDidMount=function(){this.domElement=f.a.findDOMNode(this.reactElement);this.domElement&&(this.domElement.setAttribute("tabindex","-1"),this.domElement.style.outline="none",n.setKeyListener(this.domElement,this.reactElement),n.setMouseListener(this.domElement,this.reactElement));this.initEventListeners();this.attachEventListeners()},n.prototype.onComponentWillUnmount=function(){this.domElement&&(n.setKeyListener(this.domElement),n.setMouseListener(this.domElement));this.detachEventListeners()},n.prototype.onComponentDidUpdate=function(){},Object.defineProperty(n,"keyListenerName",{get:function(){return"keyNavigator"},enumerable:!1,configurable:!0}),Object.defineProperty(n,"mouseListenerName",{get:function(){return"mouseNavigator"},enumerable:!1,configurable:!0}),n.prototype.onKeyDownListener=function(n){var t=new r.KeyboardEventProps(n);t.event.ctrlKey&&t.isF10&&(this.allowFocusCurrent=!0)},n.prototype.onFocusListener=function(n){this.allowFocusCurrent&&this.focusCurrentItem(n);this.allowFocusCurrent=!1},n.prototype.onBlurListener=function(){this.blurCurrentItem()},n.prototype.initEventListeners=function(){this.domElement&&(this.eventRegistrar.registerEventListener({domElement:this.domElement,type:"focus",handler:this.onFocusListener.bind(this)}),this.eventRegistrar.registerEventListener({domElement:this.domElement,type:"blur",handler:this.onBlurListener.bind(this)}),this.eventRegistrar.registerEventListener({domElement:this.domElement,type:"keydown",handler:this.onKeyDownListener.bind(this)}))},n.prototype.attachEventListeners=function(){this.eventRegistrar.attachEvents()},n.prototype.detachEventListeners=function(){this.eventRegistrar.detachEvents()},n.prototype.navigateAfterMouse=function(n,t){n.ownerName=t;this.domWalker.navigate(n)},n.prototype.accept=function(){},n.prototype.handleAcceptKeyDown=function(n){this.isNotMobileAcceptedKey(n)||(n.isEnter||n.isTab||n.isArrowKey&&!n.event.shiftKey)&&this.navigateEditor(n)},n.prototype.handleEscKeyDown=function(n){this.isNotMobileAcceptedKey(n)||!n.isEsc||n.handled||(this.eipMode?this.closeEip(n):this.resetEditor(n))},n.prototype.navigateEditor=function(n){if(this.controlEditor){var t=new r.EipEventProps("Unknown","Unknown",n);this.controlEditor.allowBlurOnDirection(t)&&(this.controlEditor.onBlurEditor(n.event),this.controlEditor.parentless||n.setHandled())}},n.prototype.navigateMouseEditor=function(n){this.controlEditor&&(this.controlEditor.onBlurEditor(n.event),n.setHandled())},n.prototype.closeEip=function(n){this.controlEditor&&(this.controlEditor.onCloseEditor(n.event),n.setHandled())},n.prototype.resetEditor=function(n){this.controlEditor&&this.controlEditor.onResetEditor&&this.controlEditor.onResetEditor(n)},n.setKeyListener=function(t,i){void 0===i&&(i=null);n.setListener(t,n.keyListenerName,i)},n.setMouseListener=function(t,i){void 0===i&&(i=null);n.setListener(t,n.mouseListenerName,i)},n.setListener=function(n,t,i){void 0===i&&(i=null);n&&(n[t]=i)},Object.defineProperty(n.prototype,"isFolderMenu",{get:function(){var n=this.reactElement.props.dataElement,t;return n?(t=n.findElement(function(n){return"FolderMenuList"===n.Name}),"Folder"===n.Window.Mode&&(null!==t||"MenuList"===n.Name)):!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isFolder",{get:function(){var n=this.reactElement.props.dataElement;return!!n&&"Folder"===n.Window.Mode},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isForm",{get:function(){var n=this.reactElement.props.dataElement;return!!n&&"Form"===n.Window.Mode},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isModal",{get:function(){var n=r.WindowManager.Instance;return!(!n||!n.ActiveWindow)&&("Popup"===n.ActiveWindow.Mode||"Modal"===n.ActiveWindow.Mode)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"eipMode",{get:function(){return this._eipMode},enumerable:!1,configurable:!0}),n.prototype.isNotMobileAcceptedKey=function(n){return r.CookieHelper.IsMobile&&!n.isEnter},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){var i=n.call(this,t)||this;return i.currentIdx=0,i.currentItem=null,i}return f(t,n),Object.defineProperty(t.prototype,"NavigationItems",{get:function(){return this.navigationItems},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CurrentItemIdx",{get:function(){return this.currentIdx},enumerable:!1,configurable:!0}),t.prototype.onComponentDidMount=function(){n.prototype.onComponentDidMount.call(this);this.initItems();this.isModal&&this.setFocus()},t.prototype.onComponentDidUpdate=function(){this.initItems()},t.prototype.focusFirst=function(){this.domElement?this.domElement.focus():this.navigateFirst()},t.prototype.setFocus=function(){this.domElement&&this.domElement.focus()},t.prototype.initItems=function(){this.navigationItems=[]},t.prototype.mouseDownListener=function(n){n.event.type},t.prototype.keyDownListener=function(n){"keydown"!==n.event.type||n.handled||(n.isEnter&&this.accept(n),n.isRight&&this.navigateNext(n),n.isLeft&&this.navigatePrevious(n),n.isUp&&this.navigateUp(n),n.isDown&&this.navigateDown(n),n.isHome&&this.navigateFirst(n),n.isEnd&&this.navigateLast(n),!n.handled&&n.isFunctionKey)},t.prototype.navigateFirst=function(n){this.currentIdx=0;this.setCurrentItem(n)},t.prototype.navigateLast=function(n){this.currentIdx=this.NavigationItems.length-1;this.setCurrentItem(n)},t.prototype.navigateNext=function(n){var t=this.NavigationItems.indexOf(this.currentItem);this.currentIdx=t+1<=this.NavigationItems.length-1?t+1:0;this.setCurrentItem(n)},t.prototype.navigatePrevious=function(n){var t=this.NavigationItems.indexOf(this.currentItem);this.currentIdx=t-1>=0?t-1:this.NavigationItems.length-1;this.setCurrentItem(n)},t.prototype.navigateToSelectedIndex=function(n){n>=0&&n<this.NavigationItems.length&&(this.currentIdx=n,this.setCurrent(this.NavigationItems[this.currentIdx]))},t.prototype.navigateUp=function(){},t.prototype.navigateDown=function(){},t.prototype.accept=function(n){this.currentItem&&(this.currentItem.onClick(n.event),n.setHandled())},t.prototype.resetCurrentItem=function(){this.currentItem=null},t.prototype.setCurrent=function(n){n&&(this.blurCurrentItem(),this.currentItem=n,this.focusCurrentItem())},t.prototype.setCurrentItem=function(n){this.setCurrent(this.NavigationItems[this.currentIdx]);n&&n.setHandled()},t.prototype.blurCurrentItem=function(){this.currentItem&&this.currentItem.blur&&this.currentItem.blur()},t.prototype.focusCurrentItem=function(){this.currentItem?this.currentItem.focus&&this.currentItem.focus():this.navigateFirst()},t}(u.BaseKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.keyDownListener=function(n){"keydown"===n.event.type&&n.isSpace&&this.accept(n)},t.prototype.mouseDownListener=function(n){n.event.type},t.prototype.accept=function(n){n.setHandled()},t.prototype.blurCurrentItem=function(){this.domElement&&!this.domElement.classList.contains("disabled")&&this.domElement.classList.remove("focused")},t.prototype.focusCurrentItem=function(){this.domElement&&!this.domElement.classList.contains("disabled")&&this.domElement.classList.add("focused")},t}(u.BaseKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){var i=n.call(this,t)||this;return i._eipMode=i.reactElement.eipMode,i}return f(t,n),t.prototype.keyDownListener=function(n){"keydown"===n.event.type&&(this.handleAcceptKeyDown(n),this.handleEscKeyDown(n))},t}(u.ControlKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var r,u=i(0),f=i(2),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this,t)||this;return i.lookupBase=t,i.lookupContent=t,i.controlEditor=i.lookupContent.props.parent,i}return e(t,n),t.prototype.onComponentDidUpdate=function(){this.lookupBase.state.active?this.attachMouseScroll():this.detachMouseScroll()},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);var t="Modal"===u.WindowManager.Instance.ActiveWindow.Mode?document.getElementsByClassName("modal-sections")[0]:document.getElementsByClassName("window")[0];this.eventRegistrar.registerEventListener({domElement:t,type:"scroll",handler:this.onScrollListener.bind(this)})},t.prototype.attachMouseScroll=function(){this.eventRegistrar.detachEvents();this.eventRegistrar.attachEvents()},t.prototype.detachMouseScroll=function(){this.eventRegistrar.detachEvents()},t.prototype.isLookupItem=function(n){return!(!n||n.classList&&n.classList.length>0&&(n.classList.contains("content")||n.classList.contains("lookup")||n.classList.contains("dic")))&&(!!n.classList.contains("lookup-item")||this.isLookupItem(n.parentElement))},Object.defineProperty(t.prototype,"currentLookupItem",{get:function(){var n,t;return this.currentItem||(n=this.lookupContent.props.parent.input.value,n&&(t=f.a.find(this.lookupContent.refs,function(t){return t.value===n}),t&&(this.currentItem=t)),!this.currentItem&&this.lookupBase.input&&this.lookupBase.input.value&&(this.currentItem=f.a.find(this.lookupContent.refs,function(n){if(n.props.refName.indexOf("l-row")>=0)return n}))),this.currentItem},enumerable:!1,configurable:!0}),t.prototype.mouseDownListener=function(n){var t,i,r;"mousedown"===n.event.type&&(t=n.event.target,this.isLookupItem(t)&&((n.event.stopPropagation(),n.event.preventDefault(),n.event.stopImmediatePropagation(),u.LookupBase.isRowLoadMore(t))?this.lookupContent.triggerLoadMore():(i=t.dataset.ref,r=this.lookupBase.refs[i],this.currentItem=r,this.navigateMouseEditor(n))))},t.prototype.onScrollListener=function(){this.reactElement.recalculateLocation&&this.reactElement.recalculateLocation()},t}(u.ComponentKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.accept=function(n){var t=this;this.delaySendingValue&&clearTimeout(this.delaySendingValue);this.delaySendingValue=setTimeout(function(){t.reactElement.onClick(n.event)},500);n.setHandled()},t.prototype.keyDownListener=function(n){"keydown"===n.event.type&&n.isEnter&&this.accept(n)},t}(u.ControlKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.accept=function(n){this.reactElement.onClick(n.event);n.setHandled()},t.prototype.keyDownListener=function(n){"keydown"===n.event.type&&(n.isSpace&&(this.accept(n),n.handled)||this.handleAcceptKeyDown(n))},t}(u.EditorKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.isColorBox=function(n){return!(!n||n.classList&&n.classList.length>0&&n.classList.contains("cp-ov"))&&(!(!n.classList.contains("cp-color")&&!n.classList.contains("cp-box"))||this.isColorBox(n.parentElement))},t.prototype.isColorEditText=function(n){return!n||n.classList&&n.classList.length>0&&!n.classList.contains("cp-editor")&&"INPUT"===n.nodeName},t.prototype.mouseDownListener=function(n){if("mousedown"===n.event.type){var t=n.event.target;this.isColorBox(t)&&(n.event.stopPropagation(),n.event.stopImmediatePropagation(),this.isColorEditText(t)||n.event.preventDefault())}},t}(u.ComponentKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.accept=function(n){this.reactElement.onClick(n.event);n.setHandled()},t.prototype.keyDownListener=function(n){"keydown"===n.event.type&&n.isSpace&&this.accept(n)},t}(u.ControlKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.returnCurrentMonthName=function(){return this.schedulerRes.monthNames[(new Date).getMonth()]},t.prototype.returnMonthName=function(n){return n.split(" ")[0]},t.prototype.returnCurrentYear=function(){return(new Date).getFullYear().toString()},t.prototype.returnYear=function(n){return n.split(" ")[1]},t.prototype.keyDownListener=function(n){var i,e,o;if("keydown"===n.event.type&&!this.isNotMobileAcceptedKey(n)){var s=n.event.ctrlKey,t=this.reactElement,u=t.input.value,f=u||t.returnToday();if(n.isDown||n.isUp||n.isF4)n.isDown||n.isUp?(i="",t.props.modeYearMonth?(this.schedulerRes||(this.schedulerRes=JSON.parse(r.LanguageConstants.RESOURCES.Str_SchedulerResources)),e=u?this.returnMonthName(u):this.returnCurrentMonthName(),o=u?this.returnYear(u):this.returnCurrentYear(),n.isDown?i=r.DateHelper.decrementYearMonth(e,o,this.schedulerRes.monthNames):n.isUp&&(i=r.DateHelper.incrementYearMonth(e,o,this.schedulerRes.monthNames))):n.isDown?i=s?r.DateHelper.decrementOneMonth(f):r.DateHelper.decrement(f):n.isUp&&(i=s?r.DateHelper.incrementOneMonth(f):r.DateHelper.increment(f)),clearTimeout(t.delaySendingValue),t.valueFromKeyboard=i,t.input.value=i,n.setHandled(),t.setDateFromKeyPress(i,n)):n.isF4&&(t.toogleDP(n.event),n.setHandled());else if(this.handleAcceptKeyDown(n),n.handled)return}},t}(r.EditorKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.isButtonSection=function(n){return!(!n||n.classList&&n.classList.length>0&&(n.classList.contains("dp-close")||n.classList.contains("dp-overlay-screen")||n.classList.contains("tp-overlay-screen")||n.classList.contains("dp-box")))&&(!(!n.classList.contains("dp-button")&&!n.classList.contains("tp-button"))||this.isButtonSection(n.parentElement))},t.prototype.navigateMouseEditor=function(n){this.controlEditor&&(this.controlEditor.onBlurEditor(n.event),n.setHandled())},t.prototype.mouseDownListener=function(n){if("mousedown"===n.event.type){var t=n.event.target;this.isButtonSection(t)&&(n.event.stopPropagation(),n.event.preventDefault(),n.event.stopImmediatePropagation(),n.walkNext=!0,this.reactElement instanceof u.DatePicker&&(n.ownerName=this.reactElement.props.parent.Name),this.navigateMouseEditor(n))}},t}(u.ComponentKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){var i=n.call(this,t)||this,r=t;return i.controlEditor=r.props.parent,i}return f(t,n),t}(u.LookupBaseMouseNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(2),u=function(){function n(n){var i=this,t;this.currentScope=null;t=function(n){return i.acceptNode(n)};t.acceptNode=function(n){return i.acceptNode(n)};this.treeWalker=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,t,!1)}return Object.defineProperty(n.prototype,"currentNode",{get:function(){return this.treeWalker.currentNode},set:function(n){this.treeWalker.currentNode=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"CurrentScope",{get:function(){return this.currentScope},enumerable:!1,configurable:!0}),n.prototype.setCurrentScope=function(n){this.currentScope=this.findScope(n)},n.prototype.findScope=function(n){for(var i=document.getElementsByClassName("swiped-panel"),t=0;t<i.length;t++)if(i[t].contains(n))return i[t];return null},Object.defineProperty(n.prototype,"TreeWalker",{get:function(){return this.treeWalker},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"eventProps",{get:function(){return this._eventProps},set:function(n){this._eventProps=n},enumerable:!1,configurable:!0}),n.prototype.jumpNext=function(){var t=this.getMethodName(),i=this.TreeWalker,n=i[t]();return r.a.isNull(n)&&(this.TreeWalker.currentNode=this.TreeWalker.root,n=i[t]()),n},n.prototype.findOwner=function(n,t){if(t)return document.getElementById(t);var i=n&&n.dataset?n.dataset.lparent:null;return i?document.getElementById(i):!n||n.classList&&n.classList.length>0&&(n.classList.contains("container")||n.classList.contains("field")||n.classList.contains("auto-con"))?null:i?document.getElementById(i):this.findOwner(n.parentElement)},n.prototype.keyDownInject=function(n,t,i){i||(i=document);var r={get:function(){return n}},u={get:function(){return t}},f=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!1,view:window});Object.defineProperties(f,{charCode:r,which:r,keyCode:r,key:u,char:u});i.dispatchEvent(f)},n.isSvg=function(n){return n instanceof SVGElement},n.isElementEditor=function(n){var t=n;return t&&r.a.indexOf(["INPUT","TEXTAREA"],t.tagName)>=0},n.isTileMenu=function(n){var t=n;return t&&t.classList&&t.classList.contains("tile-menu")},n.isNavigationMenu=function(n){var t=n;return t&&t.classList&&t.classList.contains("nav-bar-c")},n.isWindowBar=function(n){var t=n;return t&&t.classList&&t.classList.contains("wb")},n.isHeaderBar=function(n){var t=n;return t&&t.classList&&t.classList.contains("hb-main")},n.isField=function(n){return n.classList.contains("fieldInput")},n.isTextArea=function(n){return n.classList.contains("fieldInput")},n.isGrid=function(n){return n.classList.contains("grid")},n.isScheduler=function(n){return n.classList.contains("scheduler")},n.isRichTextEdit=function(n){return n.classList.contains("jodit_editor")},n.isTextAreaEditor=function(n){return n&&"textarea"===n.tagName.toLowerCase()},n.isChart=function(n){return n.classList.contains("chart")},n.isComponentControl=function(t){return n.isGrid(t)||n.isScheduler(t)},n.isButton=function(n){return n.classList.contains("button")},n.isThemePicker=function(n){return n.classList.contains("theme-picker")},n.isCommand=function(n){return n.classList.contains("command")&&!n.classList.contains("disabled")&&!n.parentElement.classList.contains("hb-top")},n.isDashboardCommand=function(n){return n.classList.contains("command-dashboard")&&!n.classList.contains("disabled")},n.isCommandToggle=function(n){return n.classList.contains("loc-command")},n.isTileItem=function(n){return n.classList.contains("tile-item")||n.classList.contains("tile-item-large")||n.classList.contains("tile-item-small")},n.isCheckBox=function(n){var r=n,u=!1,t,i;return r.classList.contains("editor-checkbox")&&(t=r.getElementsByTagName("input"),t&&t.length>0&&(i=t[0],u=i&&!i.disabled)),u},n.isRadioButton=function(n){return n.classList.contains("editor-radiobutton")},n.isVisible=function(n){return n.offsetWidth>0&&n.offsetHeight>0},n.isDisabled=function(n){return n?n.disabled:!!n&&n.disabled},n.findSvgParent=function(t){return this.isSvg(t)?n.findSvgParent(t.parentNode):t},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var u,r=i(0),f=i(2),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e(t,n),t.prototype.getMethodName=function(){return(this.eventProps.event&&this.eventProps.event.shiftKey?"previous":"next")+"Node"},t.prototype.initCurrentNode=function(){return this.TreeWalker.currentNode=this.eventProps.element,r.CookieHelper.IsMobile&&this.setCurrentScope(this.TreeWalker.currentNode),!0},t.prototype.isFullbrowserAcceptableControl=function(n){return r.DomTreeWalker.isElementEditor(n)||r.DomTreeWalker.isButton(n)||r.DomTreeWalker.isCommand(n)||r.DomTreeWalker.isDashboardCommand(n)||r.DomTreeWalker.isCheckBox(n)||r.DomTreeWalker.isRadioButton(n)||r.DomTreeWalker.isGrid(n)||r.DomTreeWalker.isScheduler(n)||r.DomTreeWalker.isRichTextEdit(n)||r.DomTreeWalker.isCommandToggle(n)||r.DomTreeWalker.isTileItem(n)},t.prototype.isMobileAcceptableControl=function(n){return r.DomTreeWalker.isElementEditor(n)||r.DomTreeWalker.isRichTextEdit(n)},t.prototype.acceptNode=function(n){var t=!r.CookieHelper.IsMobile||this.CurrentScope===this.findScope(n),i=!r.DomTreeWalker.isSvg(n)&&this.eventProps.isControlNavigationKey&&r.CookieHelper.IsMobile?this.isMobileAcceptableControl(n):this.isFullbrowserAcceptableControl(n),u=this.eventProps.isComponentNavigationKey&&(r.DomTreeWalker.isNavigationMenu(n)||r.DomTreeWalker.isTileMenu(n)||r.DomTreeWalker.isHeaderBar(n)||r.DomTreeWalker.isWindowBar(n));return r.DomTreeWalker.isVisible(n)&&!r.DomTreeWalker.isDisabled(n)&&t&&(i||u)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},t.prototype.navigate=function(n){var t=n,i,e,u;if(t&&t.walkNext&&(t.isF10||t.isEnter||t.isTab)&&!t.event.ctrlKey){for(this.eventProps=t,this.initCurrentNode(),i=this.jumpNext(),e=i;!f.a.isNull(i)&&this.TreeWalker.currentNode!==this.TreeWalker.root;){if(document.activeElement!==this.TreeWalker.currentNode){u=this.TreeWalker.currentNode;u.classList.contains("grid")?Object(r.FireCustomFocus)(u,{keyboard:!0,open:!0}):u.focus();break}if((i=this.jumpNext())===e)break}this.eventProps.handled=!0}},t}(r.DomTreeWalker)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var u,r=i(0),f=i(2),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e(t,n),t.prototype.getMethodName=function(){return"nextNode"},t.prototype.initCurrentNode=function(n){var t=this.findOwner(this.eventProps.element,n);return!!t&&(this.TreeWalker.currentNode=t,!0)},t.prototype.acceptNode=function(n){var t=!r.DomTreeWalker.isSvg(n)&&(r.DomTreeWalker.isElementEditor(n)||r.DomTreeWalker.isButton(n)||r.DomTreeWalker.isCheckBox(n)||r.DomTreeWalker.isRadioButton(n)||r.DomTreeWalker.isGrid(n)||r.DomTreeWalker.isScheduler(n)||r.DomTreeWalker.isRichTextEdit(n)||r.DomTreeWalker.isCommandToggle(n)),i=r.DomTreeWalker.isNavigationMenu(n)||r.DomTreeWalker.isTileMenu(n)||r.DomTreeWalker.isHeaderBar(n)||r.DomTreeWalker.isWindowBar(n);return r.DomTreeWalker.isVisible(n)&&!r.DomTreeWalker.isDisabled(n)&&(t||i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},t.prototype.navigate=function(n){var i,u,t;if(n.walkNext){for(this.eventProps=n,this.initCurrentNode(n.ownerName),i=this.jumpNext(),u=i;!f.a.isNull(i)&&this.TreeWalker.currentNode!==this.TreeWalker.root;){if(t=this.TreeWalker.currentNode,document.activeElement!==t){t.classList.contains("grid")?Object(r.FireCustomFocus)(t,{mouse:!0,open:!0}):t.focus();break}if((i=this.jumpNext())===u)break}this.eventProps.handled=!0}},t}(r.DomTreeWalker)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var u,r=i(0),f=i(2),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e(t,n),t.prototype.getMethodName=function(){return(this.eventProps.event&&this.eventProps.event.shiftKey?"previous":"next")+"Node"},t.prototype.initCurrentNode=function(){return this.TreeWalker.currentNode=this.eventProps.element,!0},t.prototype.acceptNode=function(n){var t=!r.DomTreeWalker.isSvg(n)&&this.eventProps.isControlNavigationKey&&(r.DomTreeWalker.isElementEditor(n)||r.DomTreeWalker.isButton(n)||r.DomTreeWalker.isCommand(n)||r.DomTreeWalker.isThemePicker(n)||r.DomTreeWalker.isCheckBox(n)),i=r.DomTreeWalker.isVisible(n)&&!r.DomTreeWalker.isDisabled(n);return t&&i?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},t.prototype.navigate=function(n){var t=n,i,u,r;if(t&&t.walkNext&&(t.isF10||t.isEnter||t.isTab)&&!t.event.ctrlKey){for(this.eventProps=t,this.initCurrentNode(),i=this.jumpNext(),u=i;!f.a.isNull(i)&&this.TreeWalker.currentNode!==this.TreeWalker.root;){if(document.activeElement!==this.TreeWalker.currentNode){r=this.TreeWalker.currentNode;r&&r.focus();break}if((i=this.jumpNext())===u)break}this.eventProps.handled=!0}},t}(r.DomTreeWalker)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.acceptNode=function(t){var i=this.TreeWalker.currentNode,r=t;return new u.KeyboardEventProps(event).isEnter&&i&&"userPassword"===i.id&&"btnLogin"===r.id?(this.keyDownInject(13,"Enter",t),NodeFilter.FILTER_ACCEPT):n.prototype.acceptNode.call(this,t)},t}(u.SimpleKeyboardDomTreeWalker)},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(n,t,i){this._isAcceptEditorKey=!1;this._isEscKey=!1;this._eipCaller="Unknown";this._direction="Unknown";n&&(this._eipCaller=n);this._direction=t||("Mouse"===this._eipCaller?"Close":"Unknown");i&&this.init(i)}return Object.defineProperty(n.prototype,"eipCaller",{get:function(){return this._eipCaller},set:function(n){this._eipCaller=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"direction",{get:function(){return this._direction},set:function(n){this._direction=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isAcceptEditorKey",{get:function(){return this._isAcceptEditorKey},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isEscKey",{get:function(){return this._isEscKey},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isKeyboardEvent",{get:function(){return!!this.eventProps&&this.eventProps.isKeyboardEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isMouseEvent",{get:function(){return!!this.eventProps&&this.eventProps.isMouseEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"walkNext",{get:function(){return!this.eventProps||this.eventProps.walkNext},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"eventProps",{get:function(){return this._eventProps},enumerable:!1,configurable:!0}),n.prototype.init=function(t){if(this._eventProps=t,t.isKeyboardEvent){var i=t;this._eipCaller="Keyboard";this._eipCaller="Process";this._direction=n.initDirectionByKeyboard(i);this._isAcceptEditorKey=i.isAcceptEditorKey;this._isEscKey=i.isEsc}else t.isMouseEvent&&(this._eipCaller="Process",this._isAcceptEditorKey=!0,this._isEscKey=!1,this._eipCaller="Mouse")},n.prototype.setHandled=function(n){this.eventProps&&this.eventProps.setHandled(n)},n.initDirectionByKeyboard=function(n){var t="Unknown";return n.isKeyboardEvent?n.isAcceptEditorKey&&!n.event.shiftKey||n.isRight?t="Right":n.isAcceptEditorKey&&n.event.shiftKey||n.isLeft?t="Left":n.isUp?t="Up":n.isDown?t="Down":n.isEsc&&(t="Close"):n.isMouseEvent&&(t="Right"),t},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(n){this._event=n;this._element=n.target;this._eventType=n.type;this._handled=!1;this._walkNext=!0}return Object.defineProperty(n.prototype,"isKeyboardEvent",{get:function(){return 0===this._eventType.indexOf("key")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isMouseEvent",{get:function(){return 0===this._eventType.indexOf("mouse")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"eventType",{get:function(){return this._eventType},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"element",{get:function(){return this._element},set:function(n){this._element=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"handled",{get:function(){return this._handled},set:function(n){this._handled=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"walkNext",{get:function(){return this._walkNext},set:function(n){this._walkNext=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ownerName",{get:function(){return this._ownerName},set:function(n){this._ownerName=n},enumerable:!1,configurable:!0}),n.prototype.setHandled=function(n){this.handled=!0;this.walkNext=n},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),f=i.n(e),r=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.barCodeChars=[],i.blockOpeningShortcuts=!1,i.ctrlHolded=!1,i.altRightKey=!1,i.initBarcodeReader(),i.state={isShortcutWindowVisible:!1,inProgress:!1},i}return o(t,n),t.prototype.componentDidMount=function(){this.attachListeners();var n=null;this.props.initRoot&&(n=this.props.initRoot());n||(n=document.getElementById("container"));this.walker=new r.KeyboardDomTreeWalker(n)},t.prototype.componentDidUpdate=function(){this.attachListeners()},t.prototype.componentWillUnmount=function(){this.detachListeners()},t.prototype.componentWillReceiveProps=function(n){this.props.window&&this.props.window!==n.window&&(this.props.window&&this.props.window.removeListener(this),n.window.addListenerAndCall(this))},t.prototype.shouldComponentUpdate=function(n,t){return!r.CookieHelper.IsMobile&&t.isShortcutWindowVisible!==this.state.isShortcutWindowVisible},t.prototype.attachListeners=function(){this.props.window&&this.props.window.addListenerAndCall(this);this.mouseDownHandler||r.CookieHelper.IsMobile||(this.mouseDownHandler=this.mouseDownListener.bind(this),document.addEventListener("mousedown",this.mouseDownHandler,!1));this.keyDownHandler||(this.keyDownHandler=r.CookieHelper.IsMobile?this.keyDownListenerMobile.bind(this):this.keyDownListener.bind(this),this.keyUpHandler=r.CookieHelper.IsMobile?null:this.keyUpListener.bind(this),document.addEventListener("keydown",this.keyDownHandler,!1),this.keyUpHandler&&document.addEventListener("keyup",this.keyUpHandler,!1))},t.prototype.detachListeners=function(){this.props.window&&this.props.window.removeListener(this);this.mouseDownHandler&&document.removeEventListener("mousedown",this.mouseDownHandler,!1);this.keyDownHandler&&document.removeEventListener("keydown",this.keyDownHandler,!1);this.keyUpHandler&&document.removeEventListener("keyup",this.keyUpHandler,!1)},t.prototype.keyDownListener=function(n){var t=new r.KeyboardEventProps(n);this.handleBarcodeReader(t);r.WindowManager.Instance.IsProgress||this.barCodeListenChars||(this.handleKeyNavigators(t),this.handleGlobalKeys(t),this.handleSpecialKeys(t),this.navigate(t),t.handled&&this.cancelEvent(t))},t.prototype.keyUpListener=function(n){if(!r.WindowManager.Instance.IsProgress){var t=new r.KeyboardEventProps(n);this.altRightKey&&(t.isCtrl||t.isAltRight)?this.altRightKey=!1:this.ctrlHolded?this.blockOpeningShortcuts?this.blockOpeningShortcuts=!1:this.handleShortcutWindow(t):t.handleKeyUp()}},t.prototype.keyDownListenerMobile=function(n){if(!r.WindowManager.Instance.IsProgress){var t=new r.KeyboardEventProps(n);this.handleBarcodeReader(t);this.handleKeyNavigators(t);t.handled&&this.cancelEvent(t)}},Object.defineProperty(t.prototype,"ActiveWindow",{get:function(){return r.WindowManager.Instance&&r.WindowManager.Instance.ActiveWindow?r.WindowManager.Instance.ActiveWindow:null},enumerable:!1,configurable:!0}),t.prototype.handleGlobalKeys=function(n){var t=n.keyCode;if(!n.handled)if(this.state.inProgress&&(n.isFunctionKey||n.isEsc||n.isEnter))n.handled=!0;else{if(this.state.isShortcutWindowVisible||!n.isEsc)return this.state.isShortcutWindowVisible&&n.isEsc?(this.hideWindow(),void n.setHandled()):void(!n.isBackspace||r.DomTreeWalker.isElementEditor(n.element)||r.DomTreeWalker.isRichTextEdit(n.element)?112!==t||n.event.ctrlKey?120!==t||n.event.ctrlKey?120===t&&n.event.ctrlKey&&this.sendClick(n,"OptionsCommand"):this.sendClick(n,"UserCommand"):this.sendClick(n,"HelpCommand"):n.setHandled());this.sendEsc(n)}},t.prototype.handleSpecialKeys=function(n){n.handled||(this.altRightKey||(this.altRightKey=n.isAltRight),this.ctrlHolded=n.isCtrl,this.ctrlHolded||n.isShift||this.altRightKey||!this.shortcutWindow||(this.shortcutWindow.handleShortcutCommand(n),this.delayShowWindow&&clearTimeout(this.delayShowWindow)))},t.prototype.handleKeyNavigators=function(n){n.handled||(n.handleKeyDown(),n.handled&&(this.ctrlHolded=!1))},t.prototype.handleBarcodeReader=function(n){var i,t;this.barCodeEnabled&&!n.handled&&(i=n.keyCode,i===this.barCodePrefix?(this.barCodeListenChars=!0,this.barCodeChars=[],this.cancelEvent(n,!0)):this.barCodeListenChars&&(n.isEsc?(this.barCodeListenChars=!1,this.barCodeChars=[]):n.isEnter?(this.flushBarCodeBuffer(),t=this.barCodeChars.filter(function(n){return"\x10"!==n}).join(""),this.barCodeListenChars=!1,this.barCodeChars=[],t&&(r.WindowManager.Instance.IsProgress?this.pushBarCodeBuffer(t):this.sendBarCodeChars(n,t))):n.isShift||this.barCodeChars.push(this.barCodeCharMap[i]||n.event.key),this.cancelEvent(n,!0)))},t.prototype.handleShortcutWindow=function(n){var t=this;this.ctrlHolded&&(!this.state.isShortcutWindowVisible&&this.ActiveWindow&&"Popup"!==this.ActiveWindow.Mode?(this.delayShowWindow&&clearTimeout(this.delayShowWindow),this.delayShowWindow=setTimeout(function(){t.showWindow();n.setHandled()},400)):(this.hideWindow(),n.setHandled()),this.ctrlHolded=!1)},t.prototype.initBarcodeReader=function(){this.settings=r.GlobalSettings.Instance.Settings;this.barCodeCharMap={};this.barCodeBuffer=new r.Dictionary;this.barCodeCharMap[191]="/";this.barCodeListenChars=!1},t.prototype.navigate=function(n){n.handled||this.walker.navigate(n)},t.prototype.onDialogClose=function(){this.setState({isShortcutWindowVisible:!1})},t.prototype.showWindow=function(){this.activeElement=document.activeElement;this.setState({isShortcutWindowVisible:!0})},t.prototype.hideWindow=function(){this.setState({isShortcutWindowVisible:!1});this.ctrlHolded=!1;this.activeElement&&this.activeElement.focus()},t.prototype.sendClick=function(n,t,i){void 0===i&&(i="");r.WindowManager.Instance&&r.WindowManager.Instance.Frame&&(r.WindowManager.Instance.Frame.post("click",i,null,t),n.handled=!0)},t.prototype.sendBarCodeChars=function(n,t){if(r.WindowManager.Instance){var i=r.WindowManager.Instance.ActiveWindow;i&&i.post("click",t,null,"barcode-reader");n&&n.setHandled(!1)}},t.prototype.sendEsc=function(n){this.ActiveWindow&&(this.ActiveWindow.tryClose(),n.handled=!0)},t.prototype.cancelEvent=function(n,t){void 0===t&&(t=!1);n.event&&(n.event.preventDefault(),n.event.stopImmediatePropagation(),n.event.stopPropagation(),t&&n.setHandled())},Object.defineProperty(t.prototype,"barCodeEnabled",{get:function(){return this.settings&&this.settings.IsBarcodeScannerEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"barCodePrefix",{get:function(){return String.fromCharCode(this.settings.BarcodeKeyPrefix).charCodeAt(0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutWindow",{get:function(){return this.refs.shWindow},enumerable:!1,configurable:!0}),t.prototype.pushBarCodeBuffer=function(n){if(this.ActiveWindow){var t=this.ActiveWindow.Handle;this.barCodeBuffer.containsKey(t)||this.barCodeBuffer.add(t,[]);this.barCodeBuffer[t].push(n)}},t.prototype.flushBarCodeBuffer=function(){var n,t,i,r;if(this.ActiveWindow&&(n=this.ActiveWindow.Handle,this.barCodeBuffer.containsKey(n))){for(t=0,i=this.barCodeBuffer[n];t<i.length;t++)r=i[t],this.sendBarCodeChars(null,r);this.barCodeBuffer.remove(n)}},t.prototype.mouseDownListener=function(n){var t=new r.MouseEventProps(n);this.handleMouseClickNavigators(t);this.blockOpeningShortcuts=this.ctrlHolded},t.prototype.handleMouseClickNavigators=function(n){n.handled||n.handleMouseDown()},t.prototype.handler=function(){},t.prototype.render=function(){var n=this,t=r.CookieHelper.IsMobile?null:f.a.createElement(r.ShortcutWindow,{ref:"shWindow",visible:this.state.isShortcutWindowVisible,onDialogClose:function(t){return n.onDialogClose(t)}});return f.a.createElement("div",{id:"kbdWindowController"},t)},t}(f.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var r,u=i(0),f=i(2),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this,t)||this;return i._keyCode=i.event.keyCode||i.event.which||0,i._keyboardListener=i.getKeyboardListener(t.target),i}return e(t,n),Object.defineProperty(t.prototype,"keyCode",{get:function(){return this._keyCode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this._event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEsc",{get:function(){return this.isEqualKeyCode("esc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTab",{get:function(){return this.isEqualKeyCode("tab")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOnlyTab",{get:function(){return this.isEqualKeyCode("tab")&&!this.event.shiftKey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShiftTab",{get:function(){return this.isEqualKeyCode("tab")&&this.event.shiftKey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isF4",{get:function(){return this.isEqualKeyCode("f4")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isF10",{get:function(){return this.isEqualKeyCode("f10")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEnter",{get:function(){return this.isEqualKeyCode("enter")&&!this.event.ctrlKey&&!this.event.shiftKey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCtrl",{get:function(){return this.isEqualKeyCode("ctrl")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSpace",{get:function(){return this.isEqualKeyCode("space")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAlt",{get:function(){return this.isEqualKeyCode("alt")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAltRight",{get:function(){return this.event.code&&"altright"===this.event.code.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShift",{get:function(){return this.isEqualKeyCode("shift")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRight",{get:function(){return this.isEqualKeyCode("right")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLeft",{get:function(){return this.isEqualKeyCode("left")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUp",{get:function(){return this.isEqualKeyCode("up")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDown",{get:function(){return this.isEqualKeyCode("down")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPageUp",{get:function(){return this.isEqualKeyCode("pageup")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPageDown",{get:function(){return this.isEqualKeyCode("pagedown")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isHome",{get:function(){return this.isEqualKeyCode("home")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEnd",{get:function(){return this.isEqualKeyCode("end")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInsert",{get:function(){return this.isEqualKeyCode("insert")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlus",{get:function(){return this.isInKeyCode("plus")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isBackspace",{get:function(){return this.isEqualKeyCode("backspace")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDelete",{get:function(){return this.isEqualKeyCode("delete")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFunctionKey",{get:function(){return this._keyCode>=112&&this._keyCode<=123},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isControlNavigationKey",{get:function(){return this.isTab||this.isEnter},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isComponentNavigationKey",{get:function(){return this.isF10},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isArrowKey",{get:function(){return this.isLeft||this.isRight||this.isDown||this.isUp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMoveKey",{get:function(){return this.isArrowKey||this.isHome||this.isEnd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAcceptEditorKey",{get:function(){return this.isEnter||this.isTab||this.isSpace},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCtrlAKey",{get:function(){return this._event.ctrlKey&&65===this.keyCode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"KeyboardListener",{get:function(){return this._keyboardListener},enumerable:!1,configurable:!0}),t.prototype.isEqualKeyCode=function(n){return"keydown"===this._event.type&&this.keyCode===t.Keys[n]},t.prototype.isInKeyCode=function(n){var i=this,r=t.Keys[n];return f.a.any(r,function(n){return i.keyCode===n})},t.prototype.getKeyboardListener=function(n){var t=n[u.BaseKeyNavigator.keyListenerName];return t&&"keyDownListener"in t?t:null},t.prototype.handleKeyDown=function(){this.KeyboardListener&&this.KeyboardListener.keyDownListener&&this.KeyboardListener.keyDownListener(this)},t.prototype.handleKeyUp=function(){this.KeyboardListener&&this.KeyboardListener.keyUpListener&&this.KeyboardListener.keyUpListener(this)},t.Keys={backspace:8,tab:9,enter:13,pause:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,"delete":46,f4:115,f6:117,f7:118,f8:119,f9:120,f10:121,ctrl:17,alt:18,shift:16,"?":191,plus:[187,107]},t}(u.InitiatorEventProps)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var r,f=i(2),u=i(0),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this,t)||this;return i.controlLookup=t,i._eipMode=i.controlLookup.eipMode,i}return e(t,n),t.prototype.initItems=function(){var t,i,r,n,u,e;if(this.navigationItems=[],t=this.reactElement.refs["auto-con"],!t)return!1;i=t.refs;for(r in i)i.hasOwnProperty(r)&&r.indexOf("l-row")>=0&&this.navigationItems.push(i[r]);n=t.props.parent.input.value;n&&(u=0,e=f.a.find(this.navigationItems,function(t,i){var f=!1,e=t.value,r=t.values;return(e===n||r&&(r.editValue&&r.editValue===n||r.displayValue&&r.displayValue===n))&&(u=i,f=!0),f}),e?(this.currentIdx=u,this.setCurrent(e),this.controlLookup.setFocusInInput()):n||(this.navigateFirst(),this.controlLookup.setFocusInInput()));this.currentItem&&this.controlLookup.changeInputValue(this.currentItem)},Object.defineProperty(t.prototype,"currentLookupItem",{get:function(){return this.currentItem&&0!==this.navigationItems.length||this.initItems(),this.currentItem},enumerable:!1,configurable:!0}),t.prototype.handleAcceptKeyDown=function(t){(t.isEnter||t.isTab)&&(t.isEnter&&(t.event.ctrlKey||t.event.shiftKey)||t.isTab&&t.event.ctrlKey||n.prototype.handleAcceptKeyDown.call(this,t))},t.prototype.handleDown=function(n){n.isDown&&!n.handled&&(this.controlLookup.isActive()?this.currentItem&&0!==this.navigationItems.length?(this.navigateNext(n),this.controlLookup.changeInputValue(this.currentItem)):(this.initItems(),this.navigateFirst(),this.currentItem&&this.controlLookup.changeInputValue(this.currentItem)):this.controlLookup.openLookup(n),n.setHandled())},t.prototype.handleUp=function(n){n.isUp&&!n.handled&&(this.controlLookup.isActive()?(this.currentItem&&0!==this.navigationItems.length?(this.navigatePrevious(n),this.controlLookup.changeInputValue(this.currentItem)):(this.initItems(),this.navigateLast(),this.currentItem&&this.controlLookup.changeInputValue(this.currentItem)),n.setHandled()):this.eipMode&&this.navigateEditor(n))},t.prototype.handleRight=function(n){if(!(!n.isRight||n.handled||!this.eipMode||n.isRight&&n.event.shiftKey)){if(this.controlLookup.isActive()){var t=new u.EipEventProps("Unknown","Unknown",n);this.controlLookup.allowBlurOnDirection(t)&&this.controlLookup.closePopup()}this.navigateEditor(n)}},t.prototype.handleLeft=function(n){if(!(!n.isLeft||n.handled||!this.eipMode||n.isLeft&&n.event.shiftKey)){if(this.controlLookup.isActive()){var t=new u.EipEventProps("Unknown","Unknown",n);this.controlLookup.allowBlurOnDirection(t)&&this.controlLookup.closePopup()}this.navigateEditor(n)}},t.prototype.handleBackSpaceDelete=function(n){(n.isBackspace||n.isDelete)&&n.event.repeat&&(this.controlLookup.clearTimeOuts(),n.setHandled())},t.prototype.handleF4=function(n){n.isF4&&(this.controlLookup.openLookup(n),n.setHandled())},t.prototype.handleHome=function(n){n.isHome&&!n.event.shiftKey&&this.controlLookup.isActive()&&(this.navigateFirst(n),this.controlLookup.changeInputValue(this.currentLookupItem),n.setHandled())},t.prototype.handleEnd=function(n){n.isEnd&&!n.event.shiftKey&&this.controlLookup.isActive()&&(this.navigateLast(n),this.controlLookup.changeInputValue(this.currentLookupItem),n.setHandled())},t.prototype.keyDownListener=function(n){"keydown"!==n.event.type||this.isNotMobileAcceptedKey(n)||(this.handleAcceptKeyDown(n),this.handleEscKeyDown(n),this.handleDown(n),this.handleUp(n),this.handleRight(n),this.handleLeft(n),this.handleF4(n),this.handleBackSpaceDelete(n),this.handleHome(n),this.handleEnd(n))},t}(u.ComponentKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){var i=n.call(this,t)||this,r=t;return i.controlEditor=r.props.parent,i}return f(t,n),t}(u.LookupBaseMouseNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){var i=n.call(this,t)||this;return i._mouseListener=i.getMouseListener(t),i}return f(t,n),Object.defineProperty(t.prototype,"event",{get:function(){return this._event},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isControlNavigationKey",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isComponentNavigationKey",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MouseListener",{get:function(){return this._mouseListener},enumerable:!1,configurable:!0}),t.prototype.getParent=function(n){if(!n||n.classList&&n.classList.length>0&&n.classList.contains("container"))return null;if(n.dataset&&n.dataset.lparent){var t=document.getElementById(n.dataset.lparent);if(t&&t[r.BaseKeyNavigator.mouseListenerName])return t}return n[r.BaseKeyNavigator.mouseListenerName]?n:this.getParent(n.parentElement)},t.prototype.getMouseListener=function(n){var i,t;return n.target?(i=this.getParent(n.target),!i)?null:(t=i[r.BaseKeyNavigator.mouseListenerName],t&&"mouseDownListener"in t?t:null):null},t.prototype.handleMouseDown=function(){this.MouseListener&&this.MouseListener.mouseDownListener&&this.MouseListener.mouseDownListener(this)},t}(r.InitiatorEventProps)},function(n,t,i){"use strict";i.d(t,"b",function(){return o});i.d(t,"c",function(){return s});i.d(t,"a",function(){return h});var u,e=i(0),r=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),f=function(n){function t(t){return n.call(this,t)||this}return r(t,n),t.prototype.initEventListeners=function(){this.eventRegistrar.registerEventListener({domElement:this.multiLine.rootElement,type:"focus",handler:this.onFocusListener.bind(this)});this.eventRegistrar.registerEventListener({domElement:this.multiLine.rootElement,type:"blur",handler:this.onBlurListener.bind(this)})},t.prototype.keyDownListener=function(n){"keydown"!==n.event.type||this.isNotMobileAcceptedKey(n)||(n.isTab?(n.element=this.multiLine.rootElement,n.walkNext=!0):n.isEnter&&(n.walkNext=!1))},t}(e.EditorKeyNavigator),o=function(n){function t(t){var i=n.call(this,t)||this;return i.multiLine=t,i}return r(t,n),t}(f),s=function(n){function t(t){var i=n.call(this,t)||this;return i.multiLine=t,i}return r(t,n),t}(f),h=function(n){function t(t){var i=n.call(this,t)||this;return i.multiLine=t,i}return r(t,n),t}(f)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.accept=function(n){this.reactElement.onClick(n.event);n.setHandled()},t.prototype.onFocusListener=function(){n.prototype.focusCurrentItem.call(this);this.reactElement.setFocused()},t.prototype.keyDownListener=function(n){"keydown"===n.event.type&&n.isSpace&&this.accept(n)},t}(u.ControlKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),f=i.n(e),r=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.componentDidMount=function(){this.attachListeners();this.initRoot()},t.prototype.componentWillUnmount=function(){this.detachListeners()},t.prototype.attachListeners=function(){this.keyDownHandler||(this.keyDownHandler=r.CookieHelper.IsMobile?this.keyDownListenerMobile.bind(this):this.keyDownListener.bind(this),this.keyUpHandler=r.CookieHelper.IsMobile?null:this.keyUpListener.bind(this),document.addEventListener("keydown",this.keyDownHandler,!1),this.keyUpHandler&&document.addEventListener("keyup",this.keyUpHandler,!1))},t.prototype.detachListeners=function(){this.keyDownHandler&&document.removeEventListener("keydown",this.keyDownHandler,!1);this.keyUpHandler&&document.removeEventListener("keyup",this.keyUpHandler,!1)},t.prototype.keyDownListener=function(n){var t=new r.KeyboardEventProps(n);this.handleKeyNavigators(t);this.navigate(t);t.handled&&this.cancelEvent(t)},t.prototype.keyUpListener=function(n){var t=new r.KeyboardEventProps(n);t&&t.handleKeyUp()},t.prototype.keyDownListenerMobile=function(n){var t=new r.KeyboardEventProps(n);t&&t.handled&&this.cancelEvent(t)},t.prototype.handleKeyNavigators=function(n){n.handled||n.handleKeyDown()},t.prototype.navigate=function(n){n.handled||this.walker.navigate(n)},t.prototype.cancelEvent=function(n,t){void 0===t&&(t=!1);n.event&&(n.event.preventDefault(),n.event.stopImmediatePropagation(),n.event.stopPropagation(),t&&n.setHandled())},t.prototype.initRoot=function(){this.props.initRoot&&(this.root=this.props.initRoot());this.root||(this.root=document.getElementById("container"));this.root&&(this.walker=this.createWalker(this.root))},t.prototype.createWalker=function(n){if(this.props.walkerType){var t=[null].concat(n),i=this.props.walkerType.bind.apply(this.props.walkerType,t);this.walker=new i}return this.walker||(this.walker=new r.SimpleKeyboardDomTreeWalker(this.root)),this.walker},t.prototype.render=function(){return f.a.createElement("div",{id:"kbdWindowController"})},t}(f.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){var i=n.call(this,t)||this;return i.themePicker=t,i}return f(t,n),t.prototype.mouseDownListener=function(n){if("mousedown"===n.event.type){var t=n.event.target;console.log(t)}},t}(u.ComponentKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.keyDownListener=function(n){if("keydown"===n.event.type&&!this.isNotMobileAcceptedKey(n))if(n.isF4)this.reactElement.toogleTP(n.event),n.setHandled();else if(this.handleAcceptKeyDown(n),n.handled)return},t}(u.EditorKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,e=i(1),o=i.n(e),s=i(3),f=i.n(s),r=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.domElement&&(this.domElement.setAttribute("autocomplete","off"),this.props.eipMode&&this.domElement.focus())},Object.defineProperty(t.prototype,"readOnly",{get:function(){return!this.props.editable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.props.isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return f()(this.classes)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentStyle",{get:function(){return this.isMobile?null:this.calculateContentStyle()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderClasses",{get:function(){return f()({placeholder:!0,multiline:this.props.isMultiline,disabled:!this.props.editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentClasses",{get:function(){return f()({content:!0,"con-adv":!!this.props.iconName,disabled:!this.props.editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolderStyle",{get:function(){return this.isMobile?null:this.calculatePlaceHolderStyle()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return o.a.createElement(r.EditorPlaceholder,{ref:"placeholder",id:"ph_"+this.props.id,captionHtml:this.props.captionHtml,descriptionHtml:this.props.descriptionHtml,eipMode:this.eipMode,isDisabled:this.readOnly,isMobile:this.isMobile,isMultiline:this.props.isMultiline,isRightAlign:this.props.isRightAlign,location:this.props.location})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eipMode",{get:function(){return this.props.eipMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this.domElement},enumerable:!1,configurable:!0}),t.prototype.onBlurEditor=function(n){this.blurHandler(n)},t.prototype.onResetEditor=function(n){this.resetEditor(n)},t.prototype.onCloseEditor=function(n){n.stopPropagation();n.preventDefault();this.closeEditor();this.props.onCloseEditor&&this.props.onCloseEditor()},t.prototype.allowBlurOnDirection=function(n){if("input"!==this.target.tagName.toLowerCase())return!0;var i=n.direction,r=this.target.selectionStart,u=this.target.selectionEnd,f=this.target.value.length,t="Right"===i?f:0;return!!("Left"!==i&&"Right"!==i||n.isAcceptEditorKey||n.isEscKey)||(r!==u?(this.target.selectionStart=t,this.target.selectionEnd=t,!1):0===f||r===u&&r===t&&u===t)},t.prototype.calculateContentStyle=function(){return{right:0}},t.prototype.calculatePlaceHolderStyle=function(){var n={left:0,top:0};return this.props.location&&this.props.location.LabelWidth&&(n.width=this.props.location.LabelWidth+"px"),n},t.prototype.prepareClasses=function(){this.classes={}},t.prototype.switchClass=function(n,t,i){t&&(n?t.classList.add(i):t.classList.remove(i))},t.prototype.updateFocused=function(n){var t=this.refs.editor;this.switchClass(n,t,"focused")},t.prototype.closeEditor=function(){},t.prototype.blurHandler=function(){},t.prototype.resetEditor=function(){},t.prototype.validateFocusedEditor=function(){return new r.SPromise(function(n){var t=null,i=null;r.WindowManager.Instance.ActiveWindow&&(i=(t=r.WindowManager.Instance.ActiveWindow.getFocusedElement())?document.getElementById(t.Name):null);t&&t.setFocused();t&&"Grid"===t.ElementType?n(!0):i&&i.value!==t.EditValue&&i.value!==t.DisplayHtml?t.pPost("",i.value).then(function(){var i=t.Window.Handle===r.WindowManager.Instance.ActiveWindow.Handle;!t.Window.hasVerifiersError&&i&&n(!0)}):n(!0)})},t.prototype.mouseDownHandler=function(){this.mouseDownState=!0},t.prototype.mouseUpHandler=function(){this.mouseDownState=!1},t.prototype.initEventListeners=function(){this.initEventMouse();this.props.isMobile&&(this._orientationChange=this.orientationListener.bind(this),this.eventRegistrar.registerEventListener({domElement:window,type:"orientationchange",handler:this._orientationChange}))},t.prototype.initEventMouse=function(){this.isMobile||this.eventRegistrar.registerEventListeners([{domElement:window,type:"mousedown",handler:this.mouseDownHandler.bind(this)},{domElement:window,type:"mouseup",handler:this.mouseUpHandler.bind(this)}])},t.prototype.orientationListener=function(){},t.prototype.createContent=function(){return null},t.prototype.render=function(){return this.isMobile?this.renderMobile():this.renderBrowser()},t}(r.ControlEventListener)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,s=i(1),u=i.n(s),h=i(3),e=i.n(h),r=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},l=function(n){function t(t){var i=n.call(this,t)||this;return i.props.noKeyNavigator||(i.keyNavigator=new r.EditorKeyNavigator(i)),i.prevEditValue=i.props.editValue,i.state={editValue:i.props.editValue,type:i.props.isPassword?"password":i.props.type||"text"},i}return c(t,n),t.prototype.componentWillReceiveProps=function(n){n.editValue!==this.state.editValue&&(this.IsPassword||this.updateState(n.editValue))},t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.keyNavigator&&this.keyNavigator.onComponentDidMount();this.domElement&&r.BaseKeyNavigator.setKeyListener(this.domElement,this)},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.keyNavigator&&this.keyNavigator.onComponentWillUnmount()},t.prototype.componentDidUpdate=function(){this.props.selection&&this.props.selection.SelectionText&&this.insertSelectionText(this.props)},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},Object.defineProperty(t.prototype,"placeHolder",{get:function(){var n=this;return u.a.createElement(r.EditorPlaceholder,{ref:"placeholder",id:"ph_"+this.props.id,captionHtml:this.props.captionHtml,descriptionHtml:this.props.descriptionHtml,eipMode:this.eipMode,isDisabled:this.readOnly,isMobile:this.isMobile,isMultiline:this.props.isMultiline,location:this.props.location,onClick:function(t){return n.handlerPlaceHolderClick(t)}})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsPassword",{get:function(){return this.props.isPassword},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EditValue",{get:function(){return this.state.editValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IconName",{get:function(){return this.IsPassword?"jodit-eye":this.props.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Icon",{get:function(){var n=this,t={name:this.IconName,classes:this.iconClasses,enabled:this.props.editable,blockPropagation:!1,onClickDown:function(t){return n.handlerIconClickDown(t)},onClickUp:function(t){return n.handlerIconClickUp(t)}};return this.IsPassword?this.state.editValue?u.a.createElement(r.SvgIcon,o({},t)):null:this.props.iconName?u.a.createElement(r.SvgIcon,o({},t)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconClasses",{get:function(){return e()({icon:!0,active:this.props.editable,disabled:!this.props.editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputbarClasses",{get:function(){return e()({"input-bar":!0})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputClasses",{get:function(){return e()({fieldInput:!0,clearable:this.props.isClearable&&this.props.editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStyle",{get:function(){var n=this.isMobile?36:20;return{width:this.props.iconName?"calc(100% - "+n+"px)":null}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentless",{get:function(){return this.props.parentless},enumerable:!1,configurable:!0}),t.prototype.initEventStandard=function(){this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"click",handler:this.clickHandler.bind(this)}])},t.prototype.initEventFocus=function(){this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"focus",handler:this.focusHandler.bind(this)},{domElement:this.domElement,type:"blur",handler:this.blurHandler.bind(this)}])},t.prototype.initEventMouse=function(){this.isMobile||(n.prototype.initEventMouse.call(this),this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"mousemove",handler:this.mouseMoveHandler.bind(this)},{domElement:this.domElement,type:"mouseleave",handler:this.mouseLeaveHandler.bind(this)}]))},t.prototype.initEventListeners=function(){this.domElement&&(this.initEventStandard(),this.props.blockBlur||this.initEventFocus(),this.initEventMouse())},t.prototype.changeHandler=function(n){this.switchClearable(!0);n.target.value!==this.state.editValue&&(this.updateState(n.target.value),this.props.onChange&&(n.stopPropagation(),n.preventDefault(),this.props.onChange(n)))},t.prototype.blurHandler=function(n){n.stopPropagation();n.preventDefault();var t=this.domElement,i=r.DomTreeWalker.isElementEditor(t);this.updateState(t.value);this.updateFocused(!1);i&&this.clearSelection(t);this.props.onEditValueChanged&&this.props.onEditValueChanged(n,new r.EipEventProps("Unknown","Unknown",new r.KeyboardEventProps(n)))},t.prototype.blockNextSelection=function(){this.blockNextTryOfSelection=!0},t.prototype.focusHandler=function(n){var i=this;n.stopPropagation();n.preventDefault();this.updateFocused(!0);var t=n.target,u=r.DomTreeWalker.isElementEditor(n.target),f=n.focusCaller,e=!(this.blockNextTryOfSelection||this.mouseDownState||f&&f.mouse);u&&e?this.raiseSelection(t).then(function(){i.prevEditValue=t.value;i.isMobile&&i.raiseScrollIntoView(t)}):u&&(this.prevEditValue=t.value,this.isMobile&&this.raiseScrollIntoView(t));this.props.onFocus&&this.props.onFocus(n);this.blockNextTryOfSelection=!1},t.prototype.clickHandler=function(n){if(n.stopPropagation(),n.preventDefault(),this.props.isClearable){var t=this.refs[this.props.id];if(!t)return;if(this.isMobile&&t.classList.contains("X")){if(n.target.offsetWidth-22<n.clientX-n.target.getBoundingClientRect().left)return this.updateState(""),void this.onClearValue()}else if(this.isMobile&&this.props.onClick)this.props.onClick(n);else if(!this.isMobile&&t.classList.contains("onX")&&n.target.offsetWidth-22<n.clientX-n.target.getBoundingClientRect().left)return this.updateState(""),void this.onClearValue()}else this.props.onClick&&this.props.onClick(n)},t.prototype.handlerPlaceHolderClick=function(n){n.stopPropagation();n.preventDefault();this.isMobile&&this.clickHandler(n)},t.prototype.resetEditor=function(n){var t=n.event;this.prevEditValue!==t.target.value&&(this.updateState(this.prevEditValue),n.setHandled())},t.prototype.raiseScrollIntoView=function(n){this.delayScrollIntoView&&clearTimeout(this.delayScrollIntoView);this.delayScrollIntoView=setTimeout(function(){n.scrollIntoView(!1)},300)},t.prototype.raiseSelection=function(n){var t=this;return Object(r.setTimeoutPromise)(function(){t.state.editValue&&t.setSelection(n,t.state.editValue.length)},100)},t.prototype.clearSelection=function(n){n.selectionEnd>0&&n.selectionStart!==n.selectionEnd&&(/Firefox/i.test(navigator.userAgent)?(n.selectionStart=0,n.selectionEnd=0):window.getSelection().removeAllRanges())},t.prototype.setSelection=function(n,t){!this.props.disableSelectOnFocus&&"text"===this.props.type&&this.state.editValue&&this.state.editValue.length>0&&(n.setSelectionRange?this.props.selection&&this.props.selection.SelectionText?this.insertSelectionText(this.props):n.setSelectionRange(0,t):(n.selectionStart=0,n.selectionEnd=t))},t.prototype.insertSelectionText=function(n){var t=this.refs[this.props.id];t&&(t!==document.activeElement&&t.focus(),t.value=n.selection.SelectionText,t.selectionStart=n.selection.SelectionStart,t.selectionEnd=n.selection.SelectionStart+n.selection.SelectionLength)},t.prototype.switchOnX=function(n){if(n.target,this.props.isClearable&&n.target.classList.contains("X")){var t=n.target.offsetWidth-20<n.clientX-n.target.getBoundingClientRect().left;this.switchClass(t,n.target,"onX")}},t.prototype.switchOffX=function(){var n=this.refs[this.props.id];this.switchClass(!1,n,"onX")},t.prototype.switchClearable=function(n,t){if(void 0===t&&(t=!1),this.props.isClearable){var i=this.refs[this.props.id],r=n&&""!==this.state.editValue;this.switchClass(r,i,"X");t&&this.switchClass(!1,i,"onX")}},t.prototype.handlerIconClickDown=function(n){var t=this;this.IsPassword?this.setState({type:"text"}):this.props.onIconClick&&this.validateFocusedEditor().then(function(){t.raiseIconClickDown(n)})},t.prototype.raiseIconClickDown=function(n){var t=this.refs[this.props.id];t&&!this.isMobile&&t.focus();this.props.onIconClick(n)},t.prototype.handlerIconClickUp=function(){this.IsPassword&&this.setState({type:"password"})},t.prototype.renderAll=function(){var n=this,t=this.state.type,i=this.state.editValue||"",r=this.isMobile?u.a.createElement("div",{className:this.inputbarClasses}):null;return u.a.createElement("div",{ref:"editor",className:this.props.classes},this.placeHolder,u.a.createElement("div",{className:this.contentClasses,style:this.contentStyle},u.a.createElement("input",{id:this.props.id,ref:this.props.id,type:t,min:this.props.min,max:this.props.max,style:this.inputStyle,className:this.inputClasses,disabled:!this.props.editable,placeholder:this.props.placeholder,value:i,onChange:function(t){return n.changeHandler(t)}}),this.Icon),r)},t.prototype.mouseMoveHandler=function(n){this.switchOnX(n)},t.prototype.mouseLeaveHandler=function(n){this.switchOffX(n)},t.prototype.onClearValue=function(){this.switchClearable(!1,!0);this.props.onClearValue&&this.props.onClearValue()},t.prototype.updateState=function(n){n!==this.state.editValue&&this.setState({editValue:n})},t.prototype.updateFocused=function(t){n.prototype.updateFocused.call(this,t);this.switchClearable(t)},t.prototype.calculateContentStyle=function(){var t=n.prototype.calculateContentStyle.call(this);return this.eipMode?t.left="0":this.props.location&&(this.props.isOnlyPlaceholder?t.width=this.props.location.Width+"px":this.props.location.LabelWidth&&this.props.location.Width?t.width=this.props.location.Width-this.props.location.LabelWidth-5+"px":this.props.location.LabelWidth?t.left=this.props.location.LabelWidth+5+"px":0===this.props.location.LabelWidth?t.left="0":this.props.location.Width&&(t.width=this.props.location.Width+"px"),!this.props.location.Left||t.left||t.width||(t.left=this.props.location.Left+"px"),this.props.location.Top&&!this.props.isMultiline&&(t.top="0"),this.props.location.Right&&!t.width&&(t.right="0"),(this.props.location.Bottom||this.props.isMultiline)&&(t.bottom="0")),t},t.prototype.renderMobile=function(){return this.renderAll()},t.prototype.renderBrowser=function(){return this.renderAll()},t}(r.EditorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var f,o=i(1),r=i.n(o),s=i(4),h=i.n(s),c=i(3),e=i.n(c),u=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){var i=n.call(this,t)||this;return i.keyNavigator=new u.CheckBoxKeyNavigator(i),i.state={checked:i.props.checked,focused:i.props.eipMode},i.mouseDownCallbackHandler=i.mouseDownCallbackListener.bind(i),i}return l(t,n),t.prototype.componentDidMount=function(){this.domElement=h.a.findDOMNode(this);this.keyNavigator&&this.keyNavigator.onComponentDidMount();this.domElement&&(this.domElement&&this.props.eipMode&&this.domElement.focus(),u.BaseKeyNavigator.setKeyListener(this.domElement,this));this.initEventListeners();this.attachEventListeners()},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.keyNavigator&&this.keyNavigator.onComponentWillUnmount();this.removeMouseDownListener()},t.prototype.componentWillReceiveProps=function(n){n.checked===this.state.checked&&n.editable===this.props.editable||this.updateState(n.checked)},t.prototype.shouldComponentUpdate=function(n,t){return t.checked!==this.state.checked||n.checked!==t.checked||n.editable!==this.props.editable},t.prototype.findContentWindow=function(){u.WindowManager.Instance&&u.WindowManager.Instance.ActiveWindow&&(this.contentWindow="Modal"===u.WindowManager.Instance.ActiveWindow.Mode?document.getElementsByClassName("modal-sections")[0]:document.getElementsByClassName("window")[0])},t.prototype.addMouseDownListener=function(){this.contentWindow||this.findContentWindow();this.contentWindow&&(this.contentWindow.removeEventListener("mousedown",this.mouseDownCallbackHandler,!0),this.contentWindow.addEventListener("mousedown",this.mouseDownCallbackHandler,!0))},t.prototype.removeMouseDownListener=function(){this.contentWindow&&this.contentWindow.removeEventListener("mousedown",this.mouseDownCallbackHandler,!0)},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.isOutsideOfCheckBox=function(n){return!this.refs.editor.contains(n)},t.prototype.mouseDownCallbackListener=function(n){this.isOutsideOfCheckBox(n.target)&&this.refs.editor.classList.remove("focused")},t.prototype.initEventListeners=function(){!this.isMobile&&this.domElement&&this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"mousedown",handler:this.handlerClickDown.bind(this)},{domElement:this.domElement,type:"blur",handler:this.onBlurEditor.bind(this)},{domElement:this.domElement,type:"focus",handler:this.onFocus.bind(this)}])},Object.defineProperty(t,"checkImage",{get:function(){return u.GlobalSettings.Instance.IsStandardProduct?r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 80,0 C 35.84,0 0,35.84 0,80 c 0,44.16 35.84,80 80,80 44.16,0 80,-35.84 80,-80 C 160,35.84 124.16,0 80,0 Z m 44.85156,42.427734 a 7.50075,7.50075 0 0 1 5.45117,12.875 L 70.302734,115.30273 a 7.50075,7.50075 0 0 1 -10.607422,0 l -30,-29.999996 A 7.50075,7.50075 0 1 1 40.302734,74.697266 L 64.998047,99.394531 119.69531,44.697266 a 7.50075,7.50075 0 0 1 5.15625,-2.269532 z"})):r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 37.966797 0 C 16.933576 0 1.1749547e-016 16.933576 0 37.966797 L 0 122.0332 C 0 143.06642 16.933576 160 37.966797 160 L 122.0332 160 C 143.06642 160 160 143.06642 160 122.0332 L 160 37.966797 C 160 16.933576 143.06642 1.1749547e-016 122.0332 0 L 37.966797 0 z M 123.49609 40.394531 A 7.50075 7.50075 0 0 1 128.94727 53.269531 L 68.947266 113.26953 A 7.50075 7.50075 0 0 1 58.339844 113.26953 L 28.339844 83.269531 A 7.50075 7.50075 0 1 1 38.947266 72.664062 L 63.642578 97.361328 L 118.33984 42.664062 A 7.50075 7.50075 0 0 1 123.49609 40.394531 z "}))},enumerable:!1,configurable:!0}),Object.defineProperty(t,"unCheckImage",{get:function(){return u.GlobalSettings.Instance.IsStandardProduct?r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 80,0 C 35.894687,0 0,35.894686 0,80 c 0,44.10531 35.894687,80 80,80 44.10531,0 80,-35.89469 80,-80 C 160,35.894685 124.10531,0 80,0 Z m 0,10 c 38.69469,0 70,31.305315 70,70 0,38.69469 -31.30532,70 -70,70 C 41.305315,150 10,118.69469 10,80 10,41.305314 41.305315,10 80,10 Z"})):r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 38.082031,0 C 17.070854,0 0,17.070854 0,38.082031 L 0,121.91797 C 0,142.92915 17.070854,160 38.082031,160 l 83.835939,0 C 142.92915,160 160,142.92915 160,121.91797 l 0,-83.835939 C 160,17.070854 142.92915,0 121.91797,0 L 38.082031,0 Z m 0,10 83.835939,0 C 137.56212,10 150,22.437882 150,38.082031 l 0,83.835939 C 150,137.56212 137.56212,150 121.91797,150 l -83.835939,0 C 22.437882,150 10,137.56212 10,121.91797 L 10,38.082031 C 10,22.437882 22.437882,10 38.082031,10 Z"}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Checked",{get:function(){return this.state.checked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconClasses",{get:function(){return e()({"ch-icon":!0,disabled:!this.props.editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkClasses",{get:function(){return e()({"ch-box":!0,checked:this.state.checked,unchecked:!this.state.checked})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentClasses",{get:function(){return e()({"ch-content":!0,"ch-left":this.props.leftAlign,"ch-right":!this.props.leftAlign,disabled:!this.props.editable,checked:this.state.checked,unchecked:!this.state.checked})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkBoxLabel",{get:function(){if(this.props.eipMode)return null;var n=this.state.checked?u.LanguageConstants.RESOURCES.Str_Yes:u.LanguageConstants.RESOURCES.Str_No;return r.a.createElement("div",{className:"text"},n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkBoxIconStyle",{get:function(){var n={};return this.props.eipMode&&(n.position="relative"),n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkBoxIcon",{get:function(){var n=this.state.checked?t.checkImage:t.unCheckImage;return r.a.createElement("div",{className:"icon",style:this.checkBoxIconStyle},n)},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["editor-checkbox"]=this.isMobile||!this.props.classes;this.classes.checked=this.state.checked;this.classes.disabled=!this.props.editable;this.classes.focused=this.state.focused;!this.isMobile&&this.props.classes&&(this.classes[this.props.classes]=!0)},t.prototype.calculateContentStyle=function(){var t=n.prototype.calculateContentStyle.call(this);return this.props.eipMode?(t.position="relative",t.width="100%",t.bottom="0"):this.props.location&&(this.props.location.Width&&this.props.location.LabelWidth>=0?t.width=this.props.location.Width-this.props.location.LabelWidth-5+"px":this.props.location.Width||(t.width="100%"),t.bottom="0"),t},t.prototype.blurHandler=function(n){this.updateFocused(!1);this.removeMouseDownListener();this.props.onEditValueChanged&&this.props.onEditValueChanged(this.state.checked,new u.EipEventProps("Unknown","Unknown",new u.KeyboardEventProps(n)))},t.prototype.updateState=function(n){this.setState({checked:n,focused:this.props.eipMode})},t.prototype.handlerClickDown=function(n){var t=this;this.validateFocusedEditor().then(function(){t.raiseClickDown(n)})},t.prototype.raiseClickDown=function(n){if(n.stopPropagation(),n.preventDefault(),this.props.editable){var t=!this.state.checked;this.updateState(t);this.updateFocused(!0);this.addMouseDownListener();this.props.onEditValueChanged&&(this.eipMode?this.props.onEditValueChanged(t,new u.EipEventProps("Mouse","Right")):this.props.onEditValueChanged(t))}},t.prototype.onClick=function(n){this.handlerClickDown(n)},t.prototype.onFocus=function(){this.updateFocused(!0);this.addMouseDownListener()},t.prototype.createContent=function(){var n=this;return r.a.createElement("div",{className:"ch-content",onClick:function(t){return n.handlerClickDown(t)}},r.a.createElement("input",{type:"checkbox",disabled:!this.props.editable,checked:this.state.checked,onChange:function(t){return n.handlerClickDown(t)}}),this.placeHolder,r.a.createElement("div",{className:this.iconClasses},r.a.createElement("span",{className:this.checkClasses})))},t.prototype.renderMobile=function(){return this.prepareClasses(),r.a.createElement(u.ClickableElement,{parent:this})},t.prototype.renderBrowser=function(){return this.prepareClasses(),r.a.createElement("div",{ref:"editor",className:this.classnames},this.placeHolder,r.a.createElement("div",{className:this.contentClasses,style:this.contentStyle},r.a.createElement("input",{type:"checkbox",id:this.props.id,ref:this.props.id,disabled:!this.props.editable,checked:this.state.checked,onChange:function(){return null}}),this.checkBoxLabel,this.checkBoxIcon))},t}(u.EditorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,o=i(1),r=i.n(o),s=i(3),e=i.n(s),u=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),Object.defineProperty(t,"checkImage",{get:function(){return u.GlobalSettings.Instance.IsStandardProduct?r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 80,0 C 35.84,0 0,35.84 0,80 c 0,44.16 35.84,80 80,80 44.16,0 80,-35.84 80,-80 C 160,35.84 124.16,0 80,0 Z m 44.85156,42.427734 a 7.50075,7.50075 0 0 1 5.45117,12.875 L 70.302734,115.30273 a 7.50075,7.50075 0 0 1 -10.607422,0 l -30,-29.999996 A 7.50075,7.50075 0 1 1 40.302734,74.697266 L 64.998047,99.394531 119.69531,44.697266 a 7.50075,7.50075 0 0 1 5.15625,-2.269532 z"})):r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 37.966797 0 C 16.933576 0 1.1749547e-016 16.933576 0 37.966797 L 0 122.0332 C 0 143.06642 16.933576 160 37.966797 160 L 122.0332 160 C 143.06642 160 160 143.06642 160 122.0332 L 160 37.966797 C 160 16.933576 143.06642 1.1749547e-016 122.0332 0 L 37.966797 0 z M 123.49609 40.394531 A 7.50075 7.50075 0 0 1 128.94727 53.269531 L 68.947266 113.26953 A 7.50075 7.50075 0 0 1 58.339844 113.26953 L 28.339844 83.269531 A 7.50075 7.50075 0 1 1 38.947266 72.664062 L 63.642578 97.361328 L 118.33984 42.664062 A 7.50075 7.50075 0 0 1 123.49609 40.394531 z "}))},enumerable:!1,configurable:!0}),Object.defineProperty(t,"unCheckImage",{get:function(){return u.GlobalSettings.Instance.IsStandardProduct?r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 80,0 C 35.894687,0 0,35.894686 0,80 c 0,44.10531 35.894687,80 80,80 44.10531,0 80,-35.89469 80,-80 C 160,35.894685 124.10531,0 80,0 Z m 0,10 c 38.69469,0 70,31.305315 70,70 0,38.69469 -31.30532,70 -70,70 C 41.305315,150 10,118.69469 10,80 10,41.305314 41.305315,10 80,10 Z"})):r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 38.082031,0 C 17.070854,0 0,17.070854 0,38.082031 L 0,121.91797 C 0,142.92915 17.070854,160 38.082031,160 l 83.835939,0 C 142.92915,160 160,142.92915 160,121.91797 l 0,-83.835939 C 160,17.070854 142.92915,0 121.91797,0 L 38.082031,0 Z m 0,10 83.835939,0 C 137.56212,10 150,22.437882 150,38.082031 l 0,83.835939 C 150,137.56212 137.56212,150 121.91797,150 l -83.835939,0 C 22.437882,150 10,137.56212 10,121.91797 L 10,38.082031 C 10,22.437882 22.437882,10 38.082031,10 Z"}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconClasses",{get:function(){return e()({"ch-icon":!0,disabled:!this.props.editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentClasses",{get:function(){return e()({"ch-content":!0,"ch-left":this.props.leftAlign,"ch-right":!this.props.leftAlign,disabled:!this.props.editable,checked:this.state.checked,unchecked:!this.state.checked})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkImage",{get:function(){return r.a.createElement("div",{className:"ch-pipe-on"},r.a.createElement("div",{className:"ch-c"}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unCheckImage",{get:function(){return r.a.createElement("div",{className:"ch-pipe-off"},r.a.createElement("div",{className:"ch-c"}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkBoxIcon",{get:function(){var n=this.state.checked?this.checkImage:this.unCheckImage;return r.a.createElement("div",{className:"icon",style:this.checkBoxIconStyle},n)},enumerable:!1,configurable:!0}),t.prototype.createContent=function(){var n=this;return r.a.createElement("div",{className:"ch-content",onClick:function(t){return n.handlerClickDown(t)}},r.a.createElement("input",{type:"checkbox",disabled:!this.props.editable,checked:this.state.checked,onChange:function(t){return n.handlerClickDown(t)}}),this.placeHolder,r.a.createElement("div",{className:this.iconClasses},r.a.createElement("span",{className:this.checkClasses})))},t.prototype.renderMobile=function(){return this.prepareClasses(),r.a.createElement(u.ClickableElement,{parent:this})},t.prototype.renderBrowser=function(){return this.prepareClasses(),r.a.createElement("div",{ref:"editor",className:this.classnames},this.placeHolder,r.a.createElement("div",{className:this.contentClasses,style:this.contentStyle},r.a.createElement("input",{type:"checkbox",id:this.props.id,ref:this.props.id,disabled:!this.props.editable,checked:this.state.checked,onChange:function(){return null}}),this.checkBoxIcon,this.checkBoxLabel))},t}(u.EditorCheckBox)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var f,o=i(1),u=i.n(o),r=i(0),s=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){var i=n.call(this,t)||this;return i.isEditable=!0,i.props.isMobile||(i.keyNavigator=new r.CodeKeyNavigator(i)),i.isDarkMode="true"===r.CookieHelper.GetIsDarkMode(),i.isEditable=i.props.editable,i.state={editValue:i.props.editValue},i}return s(t,n),Object.defineProperty(t.prototype,"rootElement",{get:function(){return this.refs[this.props.id]},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.keyNavigator&&this.keyNavigator.onComponentDidMount();this.initMonaco()},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.keyNavigator&&this.keyNavigator.onComponentWillUnmount()},t.prototype.componentWillReceiveProps=function(n){n.editValue!==this.state.editValue&&(this.updateState(n.editValue),this.codeEditor.setValue(n.editValue),this.codeEditor.setPosition(this.position));n.editorSelection!==this.selection&&n.editorSelection.SelectionText&&(this.selection=n.editorSelection,this.calculatePosition(n.editValue));n.editable!==this.isEditable&&(this.codeEditor.updateOptions({readOnly:!n.editable}),this.isEditable=n.editable)},t.prototype.shouldComponentUpdate=function(){return!1},t.prototype.initEventListeners=function(){this.props.isMobile||this.eventRegistrar.registerEventListener({domElement:window,type:"resize",handler:this.resizeListener.bind(this)})},t.prototype.calculatePosition=function(n){if(this.codeEditor){var r=n.substring(0,this.selection.SelectionStart),u=n.split("\n"),t=r.replace(/[^\n]/g,"").length+1,i=u[t-1].indexOf(this.selection.SelectionText);this.codeEditor.focus();this.codeEditor.setSelection(new monaco.Selection(t,i+1,t,i+this.selection.SelectionText.length+1))}},t.prototype.initMonaco=function(){var n=this;this.rootDomElement=this.refs[this.props.id];this.rootDomElement&&(r.BaseKeyNavigator.setKeyListener(this.rootDomElement,this),Promise.all([i.e("monaco"),i.e("vendors")]).then(i.t.bind(null,735,7)).then(function(){n.editorReady()}))},t.prototype.editorReady=function(){var n=this,t;this.codeEditor=monaco.editor.create(this.rootDomElement,{value:this.props.editValue,language:this.props.editorLanguage,contextmenu:!1,readOnly:!this.props.editable,theme:this.isDarkMode?"vs-dark":"vs",minimap:{enabled:!1},renderWhitespace:this.props.renderWhitespace});this.editorModel=this.codeEditor.getModel();this.position=this.codeEditor.getPosition();t=this.codeEditor.getDomNode().getElementsByTagName("textarea")[0];t&&r.BaseKeyNavigator.setKeyListener(t,this);this.codeEditor.onDidBlurEditorText(function(){var t=n.codeEditor.getValue();n.position=n.codeEditor.getPosition();n.props.onEditValueChanged(t)})},t.prototype.addSuggestionInCursorPosition=function(){for(var i,r=this.codeEditor.getPosition(),u=r.lineNumber,f=r.column,e=this.codeEditor.getValue(),t="",n=1;n<=u;n++)n>1&&(t+="\n"),i=this.editorModel.getLineContent(n),t+=n!==u?i:i.substr(0,f-1);this.props.askForSuggestions(t.length+"|"+e.replace(/(\r\n)/g,"\n"))},t.prototype.resizeListener=function(){var n=this;this.delayResizeWindow&&clearTimeout(this.delayResizeWindow);this.delayResizeWindow=setTimeout(function(){n.codeEditor.layout()},300)},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.onEditValueChanged=function(){this.keyNavigator&&this.keyNavigator.blurCurrentItem()},t.prototype.updateState=function(n){this.setState({editValue:n})},Object.defineProperty(t.prototype,"suggestionBtn",{get:function(){var n=this,t={name:"lista",classes:"icon btn-add",enabled:!0,blockPropagation:!1,onClick:function(){return n.addSuggestionInCursorPosition()}};return this.props.isAlghorithEdit&&this.props.isSuggestionAvalible?u.a.createElement(r.SvgIcon,e({},t)):null},enumerable:!1,configurable:!0}),t.prototype.renderMobile=function(){return null},t.prototype.renderBrowser=function(){return u.a.createElement(u.a.Fragment,null,this.suggestionBtn,u.a.createElement("div",{id:this.props.id,ref:this.props.id,className:this.props.classes}))},t}(r.EditorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var u,o=i(1),r=i.n(o),f=i(0),s=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){var i=n.call(this,t)||this;return i.state={isFullsize:!1},i}return s(t,n),t.prototype.initEventListeners=function(){this.props.isMobile||this.eventRegistrar.registerEventListener({domElement:this.refs.content,type:"click",handler:this.contentClickListener.bind(this)})},t.prototype.contentClickListener=function(){this.refs.content.focus()},t.prototype.fullsizeToggle=function(){this.setState({isFullsize:!this.state.isFullsize})},t.prototype.calculateContentStyle=function(){var t=n.prototype.calculateContentStyle.call(this);return this.props.location&&(this.props.location.LabelWidth&&this.props.location.Width?t.width=this.props.location.Width-this.props.location.LabelWidth-5+"px":this.props.location.LabelWidth?t.left=this.props.location.LabelWidth+5+"px":0===this.props.location.LabelWidth?t.left="0":this.props.location.Width&&(t.width=this.props.location.Width+"px"),!this.props.location.Left||t.left||t.width||(t.left=this.props.location.Left+"px"),this.props.location.Top&&(t.top="0"),this.props.location.Right&&!t.width&&(t.right="0"),this.props.location.Bottom&&(t.bottom="0")),t},Object.defineProperty(t.prototype,"FullsizeBtn",{get:function(){var n=this,t={name:"jodit-fullsize",classes:"icon btn-fullsize",enabled:!0,blockPropagation:!1,onClick:function(){return n.fullsizeToggle()}};return r.a.createElement(f.SvgIcon,e({},t))},enumerable:!1,configurable:!0}),t.prototype.renderFullsizeEditor=function(){return r.a.createElement("div",{className:"editor-fullsize"},this.FullsizeBtn,this.renderContent("htmlContentFullSize"))},t.prototype.renderContent=function(n){var t={name:n,top:0,left:0,bottom:0,right:0};return r.a.createElement(f.Scroll,e({},t),r.a.createElement("div",{className:"html-scroll-content"},r.a.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.editValue}})))},t.prototype.renderMobile=function(){return r.a.createElement("div",{ref:"editor",className:this.props.classes},this.placeHolder,r.a.createElement("div",{className:"content"},r.a.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.editValue}})))},t.prototype.renderBrowser=function(){return r.a.createElement("div",{ref:"editor",className:this.props.classes},this.state.isFullsize?this.renderFullsizeEditor():null,this.placeHolder,this.FullsizeBtn,r.a.createElement("div",{ref:"content",tabIndex:-1,className:"content",style:this.contentStyle},this.renderContent("htmlContent")))},t}(f.EditorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,o=i(1),r=i.n(o),s=i(3),f=i.n(s),e=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.keyNavigator=new e.MemoTextKeyNavigator(i),i}return h(t,n),Object.defineProperty(t.prototype,"rootElement",{get:function(){return this.domElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderClasses",{get:function(){return f()({placeholder:!0,multiline:!0,disabled:!this.props.editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentClasses",{get:function(){return f()({content:!0,disabled:!this.props.editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textAreaClasses",{get:function(){return f()({fieldMemo:!0,clearable:this.props.isClearable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textAreaStyle",{get:function(){var n=null;return this.isMobile&&this.props.height&&(n={height:this.props.height?16*this.props.height+"px":null}),n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textArea",{get:function(){var n=this,t=this.props.isRichEdit?e.DOMHelper.htmlToText(this.state.editValue):this.state.editValue;return r.a.createElement("textarea",{id:this.props.id,ref:this.props.id,style:this.textAreaStyle,className:this.textAreaClasses,disabled:!this.props.editable,value:t,onChange:function(t){return n.changeHandler(t)}})},enumerable:!1,configurable:!0}),t.prototype.initEventListeners=function(){this.domElement&&(this.initEventStandard(),this.initEventFocus(),this.initEventMouse())},t.prototype.handlerPlaceHolderClick=function(){if(!this.props.blockBlur){var n=this.refs[this.props.id];n&&n.focus()}},t.prototype.blurHandler=function(t){n.prototype.blurHandler.call(this,t);this.keyNavigator&&this.keyNavigator.blurCurrentItem()},t.prototype.renderMobile=function(){return r.a.createElement("div",{ref:"editor",className:this.props.classes},this.placeHolder,this.textArea)},t.prototype.renderBrowser=function(){return r.a.createElement("div",{ref:"editor",className:this.props.classes},this.placeHolder,r.a.createElement("div",{className:this.contentClasses,style:this.contentStyle},this.textArea))},t}(e.EditorText)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,o=i(1),r=i.n(o),s=i(3),f=i.n(s),e=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.InitToolTip(),i}return h(t,n),t.prototype.componentDidMount=function(){this.domTooltip||(this.domTooltip=document.getElementById(this.tooltipId));n.prototype.componentDidMount.call(this)},Object.defineProperty(t.prototype,"tooltipId",{get:function(){return this.props.id+"_tt"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.props.isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderClasses",{get:function(){return f()({placeholder:!0,multiline:this.props.isMultiline,disabled:this.props.isDisabled})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"captionClasses",{get:function(){return f()({phc:!0})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tooltipClasses",{get:function(){return f()({pht:!0})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolderStyle",{get:function(){return this.isMobile?null:this.calculatePlaceHolderStyle()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"captionStyle",{get:function(){return this.isMobile?null:this.calculateCaptionStyle()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toolTipStyle",{get:function(){return this.isMobile?null:this.calculateTooltipStyle()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"captionContent",{get:function(){var n=this;return r.a.createElement("div",{ref:"caption",className:this.captionClasses,style:this.captionStyle,onClick:function(t){return n.handlerPlaceHolderClick(t)},dangerouslySetInnerHTML:{__html:this.props.captionHtml}})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescription",{get:function(){return this.props&&!!this.props.descriptionHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCaption",{get:function(){return void 0!==this.props.captionHtml&&""!==this.props.captionHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tooltipContent",{get:function(){return!this.hasDescription||this.props.eipMode||this.isMobile?null:r.a.createElement(e.SvgIcon,{id:this.tooltipId,ref:"tooltip",classes:this.tooltipClasses,style:this.toolTipStyle,name:"jodit-about"})},enumerable:!1,configurable:!0}),t.prototype.handlerPlaceHolderClick=function(n){n.stopPropagation();n.preventDefault();this.props.onClick&&this.props.onClick(n)},t.prototype.calculateCaptionStyle=function(){var n={};return this.props.isMultiline||(n.position="absolute",n.top=0,n.left=0),this.props.location&&this.props.location.LabelWidth&&(n.width="calc(100% - "+(this.hasDescription?20:0)+"px"),n},t.prototype.calculateTooltipStyle=function(){return!this.hasDescription||this.props.isMultiline?null:{position:"absolute",right:0,top:0,width:16}},t.prototype.calculatePlaceHolderStyle=function(){var n={position:"absolute",left:this.props.isRightAlign?36:0,top:0,height:"inherit"};return this.props.location&&this.props.location.LabelWidth&&(n.width=this.props.location.LabelWidth+"px"),n},t.prototype.InitToolTipStyle=function(){n.prototype.InitToolTipStyle.call(this);var t=this.getRect();this.tooltipDiv.style.top=t.top+t.height+2+"px"},t.prototype.initTooltipText=function(){return"<div>"+this.props.captionHtml+"<\/div>"+this.props.descriptionHtml},t.prototype.initEventListeners=function(){this.initEventMouse()},t.prototype.prepareClasses=function(){this.classes={}},t.prototype.renderMobile=function(){return r.a.createElement("div",{ref:"placeHolder",className:this.placeholderClasses,dangerouslySetInnerHTML:{__html:this.props.captionHtml}})},t.prototype.renderBrowser=function(){return!this.hasCaption||this.props.eipMode?null:r.a.createElement("div",{id:this.props.id,className:this.placeholderClasses,style:this.placeHolderStyle},this.captionContent,this.tooltipContent)},t.prototype.render=function(){return this.isMobile?this.renderMobile():this.renderBrowser()},t}(e.TooltipBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,o=i(1),r=i.n(o),s=i(3),e=i.n(s),u=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.keyNavigator=new u.RadioButtonKeyNavigator(i),i.state={checked:i.props.checked},i}return h(t,n),t.prototype.componentDidMount=function(){this.keyNavigator&&this.keyNavigator.onComponentDidMount()},t.prototype.componentWillUnmount=function(){this.keyNavigator&&this.keyNavigator.onComponentWillUnmount()},t.prototype.componentWillReceiveProps=function(n){n.checked!==this.state.checked&&this.updateState(n.checked)},Object.defineProperty(t.prototype,"Checked",{get:function(){return this.state.checked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clInclasses",{get:function(){return e()({"r-checked":"1"===this.state.checked&&this.props.editable,"r-unchecked":"0"===this.state.checked&&this.props.editable,"r-disabled":!this.props.editable,"ri-checked":"1"===this.state.checked&&this.props.editable,"ri-unchecked":"0"===this.state.checked&&this.props.editable,"ri-disabled":!this.props.editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clOutclasses",{get:function(){return e()({"radio-circle":!0,"r-checked":"1"===this.state.checked&&this.props.editable,"r-unchecked":"0"===this.state.checked&&this.props.editable,"r-disabled":!this.props.editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){var n=this;return r.a.createElement(u.EditorPlaceholder,{ref:"placeholder",id:"ph_"+this.props.id,captionHtml:this.props.captionHtml,descriptionHtml:this.props.descriptionHtml,eipMode:this.eipMode,isDisabled:this.readOnly,isMobile:this.isMobile,isMultiline:this.props.isMultiline,isRightAlign:this.props.isRightAlign,location:this.props.location,onClick:function(t){return n.onClick(t)}})},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["editor-radiobutton"]=!0;this.classes.checked="1"===this.state.checked},t.prototype.updateState=function(n){this.setState({checked:n})},t.prototype.setFocused=function(n){var t=n||this.state.checked;this.updateState(t)},t.prototype.onClick=function(n){n.stopPropagation();n.preventDefault();this.props.editable&&"1"!==this.state.checked&&(this.setFocused("1"),this.props.onCheck&&this.props.onCheck("1"))},t.prototype.calculateContentStyle=function(){var n={};return this.props.location&&(n.left=this.props.location.LabelWidth,n.width=t.radioButtonWidth,this.props.isRightAlign&&(n.left=0)),n},t.prototype.calculatePlaceHolderStyle=function(){var i=n.prototype.calculatePlaceHolderStyle.call(this);return this.props.location&&(i.width=this.props.location.LabelWidth,this.props.isRightAlign?(i.left=t.radioButtonWidth,i.paddingLeft=5):i.paddingRight=5),i},t.prototype.returnRadioIcon=function(){return"1"===this.state.checked?r.a.createElement("svg",{viewBox:"0 0 180 180",width:"24px",height:"24px"},r.a.createElement("circle",{cx:"90",cy:"90",r:"70",className:this.clOutclasses,fill:"none"}),r.a.createElement("circle",{cx:"90",cy:"90",r:"30",style:{strokeWidth:1},className:this.clInclasses})):r.a.createElement("svg",{viewBox:"0 0 180 180",width:"24px",height:"24px"},r.a.createElement("circle",{className:this.clOutclasses,cx:"90",cy:"90",r:"70",fill:"none"}))},t.prototype.createContent=function(){var n=this;return r.a.createElement("div",{className:"content",onClick:function(t){return n.onClick(t)}},r.a.createElement("div",{className:"placeholder",dangerouslySetInnerHTML:{__html:this.props.captionHtml}}),r.a.createElement("div",{className:"icon"},this.returnRadioIcon()),r.a.createElement("input",{type:"radio",disabled:!this.props.editable,checked:"1"===this.state.checked,onChange:function(t){return n.onClick(t)}}))},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.renderMobile=function(){return this.prepareClasses(),r.a.createElement(u.ClickableElement,{parent:this})},t.prototype.renderBrowser=function(){var t=this,n;return this.prepareClasses(),n=this.props.classes||"editor-radiobutton",this.props.editable||(n+=" disabled"),r.a.createElement("div",{className:n,onClick:function(n){return t.onClick(n)}},this.placeHolder,r.a.createElement("div",{className:"icon",style:this.contentStyle},this.returnRadioIcon()),r.a.createElement("input",{type:"radio",disabled:!this.props.editable,checked:"1"===this.state.checked,onChange:function(n){return t.onClick(n)}}))},t.radioButtonWidth="36px",t}(u.EditorBase)},function(n,t,i){"use strict";var e;i.d(t,"b",function(){return r});i.d(t,"a",function(){return e});var f,r,o=i(1),u=i.n(o),s=i(3),h=i.n(s),c=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});!function(n){n[n.zoom=0]="zoom";n[n.field=1]="field";n[n.advancedField=2]="advancedField";n[n.advancedZoom=3]="advancedZoom"}(r||(r={}));e=function(n){function t(t){var i=n.call(this,t)||this;return i.changeValueHandler=function(n){var t=parseInt(n.target.value);i.updateState(t)},i.handlerIncrementValue=function(){var n=i.state.inputValue+i.props.step,t;n>=i.props.min&&n<=i.props.max&&(t=Math.min(n,i.props.max),i.updateState(t))},i.handlerDecreaseValue=function(){var n=i.state.inputValue-i.props.step,t;n>=i.props.min&&n<=i.props.max&&(t=Math.max(n,i.props.min),i.updateState(t))},i.rangeValue=!!(r.field||r.zoom||r.advancedField||r.advancedZoom),i.state={inputValue:i.props.value},i}return l(t,n),t.prototype.componentWillReceiveProps=function(n){n.value===this.state.inputValue&&n.editable===this.props.editable||this.updateState(n.value)},t.prototype.updateState=function(n){var t=this;this.setState({inputValue:n},function(){t.props.onChange(n)})},Object.defineProperty(t.prototype,"isFieldMode",{get:function(){return this.props.mode===r.field},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isZoomMode",{get:function(){return this.props.mode===r.zoom},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFieldAdvancedMode",{get:function(){return this.props.mode===r.advancedField},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isZoomAdvancedMode",{get:function(){return this.props.mode===r.advancedZoom},enumerable:!1,configurable:!0}),t.prototype.getSliderButtons=function(n,t,i){return this.isZoomMode||this.isZoomAdvancedMode?u.a.createElement("div",{className:i,onClick:n},t):null},Object.defineProperty(t.prototype,"htmlCaption",{get:function(){return!this.isZoomMode&&!this.isFieldMode||this.isFieldAdvancedMode?u.a.createElement("div",{className:"range-label"},this.placeHolder):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sliderValue",{get:function(){var n=this.props.calculateSliderValue?this.props.calculateSliderValue(this.state.inputValue):this.state.inputValue,t={width:this.props.rangeWidth?this.props.rangeWidth:null};return this.rangeValue?u.a.createElement("div",{style:t,className:"range-value"},n):null},enumerable:!1,configurable:!0}),t.prototype.calculateContentStyle=function(){return{}},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["slider-container"]=!0;this.classes.disabled=!this.props.editable;this.classes.multiline=this.props.isMultiline;this.props.classes&&(this.classes[this.props.classes]=!0)},t.prototype.renderAll=function(){var n=this.getSliderButtons(this.handlerIncrementValue,"+","btn-range right"),t=this.getSliderButtons(this.handlerDecreaseValue,"-","btn-range left"),i=100*this.state.inputValue/this.props.max,r=this.props.hideFillBar?null:u.a.createElement("span",{className:"fill",style:{width:i+"%"}});return u.a.createElement("div",{className:h()(this.classes),style:this.contentStyle},u.a.createElement("div",{className:"slider-group"},this.htmlCaption,t,u.a.createElement("div",{className:"range-container"},u.a.createElement("span",{className:"bar"},r),u.a.createElement("input",{type:"range",disabled:!this.props.editable,onChange:this.changeValueHandler,min:this.props.min,max:this.props.max,step:this.props.step,value:this.state.inputValue,className:"range-slider"})),n,this.sliderValue))},t.prototype.renderMobile=function(){return this.prepareClasses(),this.renderAll()},t.prototype.renderBrowser=function(){return this.prepareClasses(),this.renderAll()},t}(c.EditorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var u,e=i(1),r=i.n(e),f=i(2),o=i(0),s=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){var i=n.call(this,t)||this;return i.state={editValue:i.props.editValue||0,ratingValue:i.props.ratingValue||5},i}return s(t,n),t.prototype.componentWillReceiveProps=function(n){n.editValue===this.state.editValue&&n.ratingValue===this.state.ratingValue||this.updateState(n.editValue,n.ratingValue)},t.prototype.updateState=function(n,t){this.setState({editValue:n,ratingValue:t})},t.prototype.onEditValueChanged=function(n){n.stopPropagation();n.preventDefault();var t=parseInt(n.target.value);this.updateState(t,this.state.ratingValue);this.props.onEditValueChanged&&this.props.onEditValueChanged(n)},Object.defineProperty(t.prototype,"EditValue",{get:function(){return this.state.editValue},enumerable:!1,configurable:!0}),t.prototype.calculateContentStyle=function(){var t=n.prototype.calculateContentStyle.call(this);return this.props.eipMode?t.left="0":this.props.location&&this.props.location.LabelWidth&&(t.right="unset",t.left=this.props.location.LabelWidth+"px"),t},t.prototype.renderRatings=function(){var n=this;return f.a.flatten(f.a.range(this.state.ratingValue).map(function(t,i){var u="rt"+i,e="rtl"+i,f=t+1,o=r.a.createElement("input",{id:u,key:u,type:"radio",name:n.props.id,value:f.toString(),checked:n.state.editValue===f,onChange:function(t){return n.onEditValueChanged(t)}});return[r.a.createElement("label",{key:e,htmlFor:u}),o]})).reverse()},t.prototype.renderMobile=function(){return r.a.createElement("div",{className:this.props.classes},this.placeHolder,r.a.createElement("div",{className:"content"},this.renderRatings()))},t.prototype.renderBrowser=function(){return r.a.createElement("div",{className:this.props.classes},this.placeHolder,r.a.createElement("div",{className:"content",style:this.contentStyle},this.renderRatings()))},t}(o.EditorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,o=i(1),u=i.n(o),s=i(4),e=i.n(s),r=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.loader=new r.JoditLoader(i),i.state={isJoditLoaded:!1,editValue:i.props.editValue},i.keyNavigator=new r.RichTextKeyNavigator(i),i}return h(t,n),t.prototype.componentWillMount=function(){this.loader.mountLibrary()},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.keyNavigator&&this.keyNavigator.onComponentWillUnmount();this.loader.unMountLibrary()},t.prototype.componentWillReceiveProps=function(n){var t=this;n.editValue!==this.state.editValue&&this.setState({editValue:n.editValue},function(){t.joditEditor.setEditorValue(n.editValue)})},t.prototype.shouldComponentUpdate=function(n,t){if(this.joditEditor&&this.joditEditor.editor){var i=e.a.findDOMNode(this),f=i.getElementsByClassName("toolbar-head")[0],r=i.getBoundingClientRect().height,u=f.getBoundingClientRect().height;this.joditEditor.editor.clientHeight!==r-u&&(this.joditEditor.editor.style.height=r-u+"px")}return this.state.editValue!==t.editValue||this.state.isJoditLoaded!==t.isJoditLoaded},t.prototype.initEventListeners=function(){this.props.isMobile&&this.eventRegistrar.registerEventListener({domElement:window,type:"resize",handler:this.resizeListener.bind(this)});this.joditEditor&&this.eventRegistrar.registerEventListeners([{domElement:this.joditEditor.editor,type:"focus",handler:this.focusHandler.bind(this)},{domElement:this.joditEditor.editor,type:"blur",handler:this.blurHandler.bind(this)}])},t.prototype.focusHandler=function(n){n.stopPropagation();n.preventDefault();this.updateFocused(!0);this.props.onFocus&&this.props.onFocus(n)},t.prototype.blurHandler=function(n){n.stopPropagation();n.preventDefault();var t=this.joditEditor.getEditorValue();t!==this.state.editValue&&(this.updateState(t),this.props.onEditValueChanged(t))},t.prototype.initJodit=function(){var n=e.a.findDOMNode(this),t=n.getBoundingClientRect();this.joditEditor=new Jodit("#"+this.props.id,{width:"100%",height:t.height-40+"px",toolbarButtonSize:"large",colorPickerDefaultTab:"color",buttons:["source","|","undo","redo","|","bold","italic","underline","strikethrough","|","font","fontsize","brush","|","ul","ol","|","paragraph","interline","|","image","table","link","|","left","center","right","justify","|","hr","eraser","fullsize"],buttonsMD:["source","|","undo","redo","|","bold","italic","underline","strikethrough","|","font","fontsize","brush","|","ul","ol","|","paragraph","interline","|","image","table","link","|","left","center","right","justify","|","hr","eraser","fullsize"],buttonsSM:["source","|","undo","redo","|","bold","italic","underline","strikethrough","|","font","fontsize","brush","|","ul","ol","|","paragraph","interline","|","image","table","link","|","left","center","right","justify","|","hr","eraser","fullsize"],buttonsXS:["undo","redo","bold","italic","font","fontsize","ul","ol","paragraph","interline","image","left","center","right","justify","eraser"],interline:1,language:r.GlobalSettings.Instance.CurrentLanguage,enableDragAndDropFileToEditor:!0,placeholder:"",uploader:this.loader.registerUploader()});this.joditEditor.setEditorValue(this.state.editValue);this.rootDomElement=n.getElementsByClassName("jodit_editor")[0];this.rootDomElement&&r.BaseKeyNavigator.setKeyListener(this.rootDomElement,this);this.keyNavigator&&this.keyNavigator.onComponentDidMount();this.initEventListeners();this.eventRegistrar.attachEvents(!0)},t.prototype.resizeListener=function(){var n=this;this.delayResizeWindow&&clearTimeout(this.delayResizeWindow);this.delayResizeWindow=setTimeout(function(){var i=n.refs.editor,r=n.joditEditor.editor,t;i&&r&&(t=i.getBoundingClientRect(),t&&(n.joditEditor.editor.style.width=t.width+"px",n.joditEditor.editor.style.height=t.height-40+"px"))},300)},Object.defineProperty(t.prototype,"currentLanguage",{get:function(){return r.GlobalSettings.Instance.Settings.CurrentCulture},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textArea",{get:function(){return this.state.isJoditLoaded?u.a.createElement("textarea",{id:this.props.id,name:this.props.id,ref:this.props.id,style:{display:"none"}}):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Editor",{get:function(){return this.joditEditor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootElement",{get:function(){return this.rootDomElement},enumerable:!1,configurable:!0}),t.prototype.create=function(){var n=this;this.setState({isJoditLoaded:!0},function(){n.initJodit()})},t.prototype.isFullSizeMode=function(){var n=document.getElementById("container");return n&&n.classList&&n.classList.contains("jodit_fullsize_box")},t.prototype.destroy=function(){this.joditEditor&&this.isFullSizeMode()&&this.joditEditor.events.fire("toggleFullsize");this.joditEditor&&this.joditEditor.destroy()},t.prototype.onUploadImage=function(n){this.props.onUploadImage(n)},t.prototype.updateState=function(n){this.setState({editValue:n})},t.prototype.calculateContentStyle=function(){var t=n.prototype.calculateContentStyle.call(this);return this.props.location&&(this.props.location.LabelWidth&&this.props.location.Width?t.width=this.props.location.Width-this.props.location.LabelWidth-5+"px":this.props.location.LabelWidth?t.left=this.props.location.LabelWidth+5+"px":0===this.props.location.LabelWidth?t.left="0":this.props.location.Width&&(t.width=this.props.location.Width+"px"),!this.props.location.Left||t.left||t.width||(t.left=this.props.location.Left+"px"),this.props.location.Top&&(t.top="0"),this.props.location.Right&&!t.width&&(t.right="0"),this.props.location.Bottom&&(t.bottom="0")),t},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.renderMobile=function(){return u.a.createElement("div",{ref:"editor",className:this.props.classes},this.placeHolder,this.textArea)},t.prototype.renderBrowser=function(){return u.a.createElement("div",{ref:"editor",className:this.props.classes},this.placeHolder,u.a.createElement("div",{className:"content",style:this.contentStyle},this.textArea))},t}(r.EditorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(1),u=i.n(f),e=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.onIconClick=function(){this.props.dataElement.post("lookupform",void 0)},t.prototype.render=function(){return this.props.dataElement.IsMobile?this.renderMobile():this.renderBrowser()},t.prototype.renderMobile=function(){return null},t.prototype.renderBrowser=function(){var n=this;return u.a.createElement("div",{className:"file-edit",style:{width:"100%",height:"100%"}},u.a.createElement(e.EditorText,{id:this.props.dataElement.Name,captionHtml:this.props.dataElement.CaptionHtml,editable:this.props.dataElement.Editable,editValue:this.props.dataElement.EditValue,blockBlur:!1,location:this.props.dataElement.Location,classes:"editor-text lookup",type:"text",iconName:"lista",isMobile:this.props.dataElement.IsMobile,isClearable:this.props.dataElement.IsMobile,eipMode:this.props.eipMode,onIconClick:function(){return n.onIconClick()},onChange:function(){return null},onEditValueChanged:function(){return null}}))},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return v});var u,e=i(1),r=i.n(e),o=i(4),s=i.n(o),h=i(3),c=i.n(h),l=i(2),f=i(0),a=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),v=function(n){function t(t){var i=n.call(this,t)||this;return i.canvasReactKey="".CreateReactKey(),i._currPosition={x:0,y:0},i._prevPosition={x:0,y:0},i.state={editValue:i.props.editValue||"",orientation:0},i._loadImageHandler=i.loadImageListener.bind(i),i}return a(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.initCanvasContext()},t.prototype.componentWillReceiveProps=function(n){n.editValue!==this.state.editValue&&this.updateState(n.editValue)},t.prototype.componentDidUpdate=function(){this.initCanvasSize();this.drawDataURIOnCanvas()},t.prototype.shouldComponentUpdate=function(n,t){return this.state.editValue!==t.editValue||this.state.orientation!==t.orientation},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.attachMouseListeners();this.attachTouchListener()},t.prototype.orientationListener=function(){this.setState({orientation:0===this.state.orientation?1:0})},t.prototype.attachMouseListeners=function(){this.props.editable&&(this._mouseDownHandler=this.mouseDownListener.bind(this),this._mouseMoveHandler=this.mouseMoveListener.bind(this),this._mouseUpHandler=this.mouseUpListener.bind(this),this._mouseOutHandler=this.mouseOutListener.bind(this),this._resizeHandler=this.resizeListener.bind(this),this.eventRegistrar.registerEventListeners([{domElement:this.canvasElement,type:"mousedown",handler:this._mouseDownHandler},{domElement:this.canvasElement,type:"mousemove",handler:this._mouseMoveHandler},{domElement:this.canvasElement,type:"mouseup",handler:this._mouseUpHandler},{domElement:this.canvasElement,type:"mouseout",handler:this._mouseOutHandler},{domElement:this.containerElement,type:"resize",handler:this._resizeHandler}]))},t.prototype.attachTouchListener=function(){this._touchStartHandler||(this._touchStartHandler=this.touchStartListener.bind(this),this._touchMoveHandler=this.touchMoveListener.bind(this),this._touchEndHandler=this.touchEndListener.bind(this),this._touchOutHandler=this.touchOutListener.bind(this),this.eventRegistrar.registerEventListeners([{domElement:this.canvasElement,type:"touchstart",handler:this._touchStartHandler},{domElement:this.canvasElement,type:"touchmove",handler:this._touchMoveHandler},{domElement:this.canvasElement,type:"touchend",handler:this._touchEndHandler},{domElement:this.canvasElement,type:"touchout",handler:this._touchOutHandler}]))},t.prototype.mouseDownListener=function(n){this.startDrawing(n.clientX,n.clientY)},t.prototype.mouseMoveListener=function(n){n.preventDefault();n.stopPropagation();this.moveDrawing(n.clientX,n.clientY)},t.prototype.mouseUpListener=function(){this.endDrawing()},t.prototype.mouseOutListener=function(){this.endDrawing()},t.prototype.touchStartListener=function(n){this.startDrawing(n.touches[0].clientX,n.touches[0].clientY)},t.prototype.touchMoveListener=function(n){n.preventDefault();n.stopPropagation();this.moveDrawing(n.touches[0].clientX,n.touches[0].clientY)},t.prototype.touchEndListener=function(){this.endDrawing()},t.prototype.touchOutListener=function(){this.endDrawing()},t.prototype.resizeListener=function(){var n=this;this.delayResizeWindow&&clearTimeout(this.delayResizeWindow);this.delayResizeWindow=setTimeout(function(){n.drawDataURIOnCanvas()},300)},t.prototype.initCanvasContext=function(){this.ctx.lineWidth=1;this.ctx.lineJoin=this.ctx.lineCap="round";this.initCanvasSize();this.drawDataURIOnCanvas()},t.prototype.initCanvasSize=function(){var n=this.containerElement.getBoundingClientRect();(this.canvasElement.width=n.width,this.props.isMobile)?(s.a.findDOMNode(this.refs.clear),this.canvasElement.height=n.height-32):this.canvasElement.height=n.height},t.prototype.startDrawing=function(n,t){this.isDrawing=!0;this.setPosition(n,t)},t.prototype.moveDrawing=function(n,t){this.isDrawing&&(this.setPosition(n,t),this.ctx.beginPath(),this.ctx.moveTo(this._prevPosition.x,this._prevPosition.y),this.ctx.lineTo(this._currPosition.x,this._currPosition.y),this.ctx.strokeStyle="#000",this.ctx.lineJoin=this.ctx.lineCap="round",this.ctx.lineWidth=1,this.ctx.stroke(),this.ctx.closePath())},t.prototype.endDrawing=function(){this.isDrawing&&(this.isDrawing=!1,this.onEditValueChanged())},t.prototype.setPosition=function(n,t){this._prevPosition.x=this._currPosition.x;this._prevPosition.y=this._currPosition.y;this._currPosition.x=n-this.canvasRect.left;this._currPosition.y=t-this.canvasRect.top},t.prototype.loadImageListener=function(){var i;if(!(this.img.src.indexOf("base64")<0)){this.initCanvasSize();var f=Math.ceil(this.canvasElement.width),e=Math.ceil(this.canvasElement.height),n=this.img.naturalWidth,t=this.img.naturalHeight,r=1,u=1;n>f&&(r=f/n);t>e&&(u=e/t);i=r<u?r:u;i<1&&(t*=i,n*=i);this.ctx.drawImage(this.img,0,0,n,t);this.img.src=""}},Object.defineProperty(t.prototype,"img",{get:function(){return this._img||(this._img=document.createElement("img"),this._img.addEventListener("load",this._loadImageHandler)),this._img},enumerable:!1,configurable:!0}),t.prototype.drawDataURIOnCanvas=function(){this.img.src=this.EditValue},t.prototype.updateState=function(n){this.setState({editValue:n})},Object.defineProperty(t.prototype,"placeholderClasses",{get:function(){return c()({placeholder:!0,multiline:!0,disabled:!this.props.editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EditValue",{get:function(){return this.state.editValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ctx",{get:function(){return this.canvasElement.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasRect",{get:function(){return this.canvasElement.getBoundingClientRect()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerElement",{get:function(){return this.canvasElement.parentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasElement",{get:function(){return this.refs.signature},enumerable:!1,configurable:!0}),t.prototype.onEditValueChanged=function(){var n=this;this.props.onEditValueChanged&&(this.delayPostValue&&clearTimeout(this.delayPostValue),this.delayPostValue=setTimeout(function(){if(!n.isDrawing&&n.canvasElement&&n.ctx){var t=n.ctx.getImageData(0,0,n.canvasRect.width,n.canvasRect.height),i=l.a.any(t.data,function(n){return 0!==n})?n.canvasElement.toDataURL():"";n.props.onEditValueChanged(i)}},500))},t.prototype.onClearClick=function(){this.initCanvasSize();this.ctx.clearRect(0,0,this.canvasRect.width,this.canvasRect.height);this.ctx.beginPath();this.onEditValueChanged()},t.prototype.calculateContentStyle=function(){var t=n.prototype.calculateContentStyle.call(this);return this.props.eipMode?t.left="0":this.props.location&&this.props.location.LabelWidth&&(t.right="0",t.left=this.props.location.LabelWidth+"px"),t},t.prototype.renderSignature=function(){var n=this;return[this.props.editable?r.a.createElement(f.SvgIcon,{key:"".CreateReactKey(),ref:"clear",name:"jodit-undo",classes:"icon",onClick:function(t){return n.onClearClick(t)}}):null,r.a.createElement("canvas",{key:this.canvasReactKey,ref:"signature",className:"signature"})]},t.prototype.renderMobile=function(){return r.a.createElement("div",{ref:"editor",className:this.props.classes},this.placeHolder,r.a.createElement("div",{className:this.contentClasses},this.renderSignature()))},t.prototype.renderBrowser=function(){return this.prepareClasses(),r.a.createElement("div",{ref:"editor",className:this.props.classes},this.placeHolder,r.a.createElement("div",{className:this.contentClasses,style:this.contentStyle},this.renderSignature()))},t}(f.EditorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(1),u=i.n(f),e=i(2),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.state={active:0===i.props.value.indexOf("r"),secondsNumber:parseInt(i.props.value.substring(1,i.props.value.length))},i}return o(t,n),t.prototype.componentWillReceiveProps=function(n){this.setState({active:0===n.value.indexOf("r"),secondsNumber:parseInt(n.value.substring(1,n.value.length))},this.setStopperState)},Object.defineProperty(t.prototype,"prepareValue",{get:function(){var i=this.state.secondsNumber,n=Math.floor(i/3600),t=Math.floor((i-3600*n)/60),r=i-3600*n-60*t;return(n<10?"0"+n:n.toString())+":"+(t<10?"0"+t:t.toString())+":"+(r<10?"0"+r:r.toString())},enumerable:!1,configurable:!0}),t.prototype.setStopperState=function(){this.state.active?this.runStopper():this.stopStopper()},t.prototype.runStopper=function(){var n=this;this.interval&&clearInterval(this.interval);this.interval=setInterval(e.a.bind(function(){n.setState({secondsNumber:n.state.secondsNumber+1})},this),1e3)},t.prototype.stopStopper=function(){clearInterval(this.interval);this.interval=null},Object.defineProperty(t.prototype,"inputClasses",{get:function(){return"stopwatch"},enumerable:!1,configurable:!0}),t.prototype.render=function(){return u.a.createElement("input",{id:this.props.id,ref:"input",type:"text",className:this.inputClasses,disabled:!0,value:this.prepareValue})},t}(u.a.Component)},function(n,t,i){"use strict";var u,f=i(1),r=i.n(f),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});!function(n){function t(t){var i=n.call(this,t)||this;return i.state={selected:i.props.selected},i}e(t,n);t.prototype.isSelected=function(){return this.state.selected};t.prototype.onClick=function(n){this.setState({selected:n})};t.prototype.render=function(){var n=this,t="am-btn",i="pm-btn";return this.state.selected?t+=" active":i+=" active",r.a.createElement("div",{className:"switch-con"},r.a.createElement("input",{ref:"input",type:"checkbox",checked:this.state.selected,style:{display:"hidden"}}),r.a.createElement("div",{className:t,onClick:function(){return n.onClick(!0)}},this.props.option_first),r.a.createElement("div",{className:i,onClick:function(){return n.onClick(!1)}},this.props.option_second))}}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),f=i.n(e),r=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.uri=new r.UriHelper(document.location.href),i.autoLogout="1"===i.uri.QueryString.alr,i.path=i.uri.QueryString.path,i.initState(r.VerifierType.Hidden,"",!1),i}return o(t,n),t.prototype.shouldComponentUpdate=function(n,t){return this.state.verifierState!==t.verifierState||this.state.waiting!==t.waiting},t.prototype.initState=function(n,t,i){void 0===t&&(t="");void 0===i&&(i=!1);this.state={verifierState:r.VerifierType.Hidden,verifierText:t,waiting:i}},t.prototype.updateState=function(n,t,i){void 0===t&&(t="");void 0===i&&(i=!1);this.setState({verifierState:n,verifierText:t,waiting:i})},t.prototype.onSuccess=function(n){var t=n&&n.ResultInfo?n.ResultInfo:"";this.updateState(r.VerifierType.Info,t)},t.prototype.onError=function(n){this.updateState(r.VerifierType.Error,n.ErrorHandle)},t.prototype.onBlurEditor=function(n){var t=n.target.parentElement.parentElement.parentElement;t&&r.ControlBase.switchClass(t,"focused",!1)},t.prototype.onFocusEditor=function(n){var t=n.target.parentElement.parentElement.parentElement;t&&r.ControlBase.switchClass(t,"focused",!0)},t.prototype.onDialogCommandClick=function(){this.updateState(r.VerifierType.Hidden)},t.prototype.createDialog=function(){var i=this,n,t;if(this.state.verifierState!==r.VerifierType.Hidden)return n=this.state.verifierState===r.VerifierType.Error?r.SvgIcon.errorIcon:r.SvgIcon.warningIcon,t=this.state.verifierState===r.VerifierType.Error?r.DialogType.Error:r.DialogType.Warning,this.props.isMobile?f.a.createElement(r.Dialog,{id:"dialog",key:"dialog",defaultIconSvg:n,type:t,isMobile:!0,caption:"Uwaga",textHtml:this.state.verifierText,onDialogCommandClick:function(n){return i.onDialogCommandClick(n)}}):f.a.createElement(r.VerifierBar,{id:"dialog",key:"verifier",defaultIconSvg:n,type:this.state.verifierState,text:this.state.verifierText})},t.prototype.initRootDom=function(){return this.refs.content},t.prototype.switchClass=function(n,t,i){n?t.classList.remove(i):t.classList.add(i)},t.prototype.render=function(){return this.props.isMobile?this.renderMobile():this.renderBrowser()},t.userIcon='<svg viewBox= "0 0 1024 1024"><path d="M691.499 629.931c96.683-60.245 161.621-166.485 161.621-288.597 0-188.203-153.045-341.333-341.12-341.333s-341.12 153.131-341.12 341.333c0 121.941 64.64 228.565 161.024 288.896-170.027 62.805-298.411 211.371-331.904 393.771h86.955c43.349-194.987 217.301-341.333 425.045-341.333s381.696 146.347 425.045 341.333h86.955c-33.536-182.613-162.133-331.435-332.501-394.069zM256.171 341.333c0-141.184 114.731-256 255.829-256s255.829 114.816 255.829 256-114.731 256-255.829 256-255.829-114.816-255.829-256z" /><\/svg>',t.pwdIcon='<svg viewBox= "0 0 1024 1024"><path d="M807.424 384h-32.853v-122.155c0-146.816-108.971-261.845-263.808-261.845-155.392 0-261.291 117.461-261.291 261.845v122.155h-32.853c-72.405 0-131.285 57.387-131.285 128v384c0 70.571 58.88 128 131.285 128h590.805c72.363 0 131.243-57.429 131.243-128v-384c0-70.613-58.88-128-131.243-128zM315.051 261.845c0-109.056 76.459-197.845 195.712-197.845 118.016 0 198.187 86.912 198.187 197.845v122.155h-393.899v-122.155zM873.045 896c0 35.285-29.44 64-65.621 64h-590.805c-36.181 0-65.621-28.715-65.621-64v-384c0-35.285 29.44-64 65.621-64h590.805c36.181 0 65.621 28.757 65.621 64v384zM512 576c-36.267 0-65.621 28.672-65.621 64 0 23.637 13.269 44.032 32.811 55.125v104.875c0 17.664 14.72 32 32.811 32 18.133 0 32.853-14.336 32.853-32v-104.917c19.541-11.093 32.811-31.445 32.811-55.083 0-35.328-29.397-64-65.664-64z" /><\/svg>',t.klodkadIcon='<svg viewBox= "0 0 160 160"><path d="m 125,60 -5,0 0,-19.0825 C 120,17.9725 103.3975,0 79.815,0 56.1375,0 40,18.355 40,40.9175 L 40,60 35,60 C 23.97,60 15,68.97 15,80 l 0,60 c 0,11.03 8.97,20 20,20 l 90,0 c 11.03,0 20,-8.97 20,-20 l 0,-60 C 145,68.97 136.03,60 125,60 z M 50,40.9175 C 50,23.8725 61.65,10 79.815,10 97.7925,10 110,23.58 110,40.9175 L 110,60 50,60 50,40.9175 z M 135,140 c 0,5.5125 -4.4875,10 -10,10 l -90,0 c -5.5125,0 -10,-4.4875 -10,-10 l 0,-60 c 0,-5.5125 4.4875,-10 10,-10 l 90,0 c 5.5125,0 10,4.4875 10,10 l 0,60 z M 80,90 c -5.5225,0 -10,4.4775 -10,10 0,3.6925 2.025,6.88 5,8.6125 L 75,125 c 0,2.76 2.24,5 5,5 2.76,0 5,-2.24 5,-5 l 0,-16.3875 C 87.975,106.88 90,103.69 90,100 90,94.4775 85.5225,90 80,90 z" /><\/svg>',t.dbIcon='<svg viewBox="0 0 160 160"><path d="M 80 20 C 58.929028 20 39.871625 22.248817 25.6875 26.03125 C 18.595438 27.922467 12.709112 30.168958 8.21875 33 C 3.7283881 35.831042 0 39.705263 0 45 L 0 135 C 0 140.29474 3.7283881 144.16896 8.21875 147 C 12.709112 149.83104 18.595438 152.07753 25.6875 153.96875 C 39.871625 157.75118 58.929028 160 80 160 C 101.07097 160 120.12838 157.75118 134.3125 153.96875 C 141.40456 152.07753 147.29089 149.83104 151.78125 147 C 156.27161 144.16896 160 140.29474 160 135 L 160 105 L 160 75 L 160 45 C 160 39.705263 156.27161 35.831042 151.78125 33 C 147.29089 30.168958 141.40456 27.922467 134.3125 26.03125 C 120.12838 22.248817 101.07097 20 80 20 z M 80 30 C 100.35038 30 118.78946 32.231357 131.75 35.6875 C 138.23027 37.415571 143.33745 39.483008 146.4375 41.4375 C 149.53755 43.391992 150 44.771889 150 45 C 150 45.228111 149.53755 46.608008 146.4375 48.5625 C 143.33745 50.516992 138.23027 52.584429 131.75 54.3125 C 118.78946 57.768643 100.35038 60 80 60 C 59.649615 60 41.210536 57.768643 28.25 54.3125 C 21.769732 52.584429 16.662551 50.516992 13.5625 48.5625 C 10.462449 46.608008 10 45.228111 10 45 C 10 44.771889 10.462449 43.391992 13.5625 41.4375 C 16.662551 39.483008 21.769732 37.415571 28.25 35.6875 C 41.210536 32.231357 59.649615 30 80 30 z M 10 58.0625 C 14.225759 60.405828 19.499584 62.318639 25.6875 63.96875 C 39.871625 67.751183 58.929028 70 80 70 C 101.07097 70 120.12838 67.751183 134.3125 63.96875 C 140.50041 62.318639 145.77424 60.405828 150 58.0625 L 150 75 C 150 75.22811 149.53755 76.60801 146.4375 78.5625 C 143.33745 80.51699 138.23027 82.58443 131.75 84.3125 C 118.78946 87.76864 100.35038 90 80 90 C 59.649615 90 41.210536 87.76864 28.25 84.3125 C 21.769732 82.58443 16.662551 80.51699 13.5625 78.5625 C 10.462449 76.60801 10 75.22811 10 75 L 10 58.0625 z M 10 88.0625 C 14.225759 90.405827 19.499584 92.318636 25.6875 93.96875 C 39.871625 97.75118 58.929028 100 80 100 C 101.07097 100 120.12838 97.75118 134.3125 93.96875 C 140.50041 92.318636 145.77424 90.405827 150 88.0625 L 150 105 C 150 105.22811 149.53755 106.60801 146.4375 108.5625 C 143.33745 110.51699 138.23027 112.58443 131.75 114.3125 C 118.78946 117.76864 100.35038 120 80 120 C 59.649615 120 41.210536 117.76864 28.25 114.3125 C 21.769732 112.58443 16.662551 110.51699 13.5625 108.5625 C 10.462449 106.60801 10 105.22811 10 105 L 10 88.0625 z M 10 118.0625 C 14.225759 120.40583 19.499584 122.31864 25.6875 123.96875 C 39.871625 127.75118 58.929028 130 80 130 C 101.07097 130 120.12838 127.75118 134.3125 123.96875 C 140.50041 122.31864 145.77424 120.40583 150 118.0625 L 150 135 C 150 135.22811 149.53755 136.60801 146.4375 138.5625 C 143.33745 140.51699 138.23027 142.58443 131.75 144.3125 C 118.78946 147.76864 100.35038 150 80 150 C 59.649615 150 41.210536 147.76864 28.25 144.3125 C 21.769732 142.58443 16.662551 140.51699 13.5625 138.5625 C 10.462449 136.60801 10 135.22811 10 135 L 10 118.0625 z"/><\/svg>',t.dbHost='<svg viewBox="0 0 160 160"><path d="M 160,80.154498 C 160,37.73673 126.68164,2.94873 84.78793,0.46618 83.92466,0.37138 83.05889,0.309 82.18064,0.309 81.92116,0.309 81.66168,0.3364 81.4022,0.3439 80.93563,0.3369 80.47156,0.309 80.00001,0.309 35.888225,0.309 0,36.127444 0,80.154498 0,124.18155 35.888225,160 80.00001,160 c 0.47155,0 0.93562,-0.0274 1.40469,-0.0374 0.25948,0.01 0.51896,0.0374 0.77844,0.0374 0.87824,0 1.74401,-0.0624 2.60728,-0.15719 C 126.68164,157.36027 160,122.57725 160,80.154498 z m -14.88522,25.703652 c -2.7495,-0.7984 -9.65569,-2.53244 -21.84132,-3.95959 1.00798,-6.891233 1.55938,-14.174184 1.55938,-21.744062 0,-5.965584 -0.34431,-11.749032 -0.98054,-17.310422 15.43912,-1.843817 22.2031,-4.166677 22.65719,-4.326358 l -1.85878,-5.237039 c 3.46806,8.278464 5.38921,17.355331 5.38921,26.873819 0,9.074373 -1.75897,17.739563 -4.92514,25.703652 z M 44.678145,80.154498 c 0,-5.583846 0.369262,-11.035457 1.04541,-16.279981 8.091315,0.63623 17.766965,1.105293 29.139225,1.215073 l 0,34.628329 C 63.79242,99.825204 54.33134,100.27431 46.374752,100.88309 45.276948,94.303734 44.678145,87.335154 44.678145,80.154498 z M 84.82535,10.95274 c 12.23553,3.54541 22.71208,20.536469 27.4052,43.056484 -7.54242,0.601299 -16.62675,1.040421 -27.4052,1.142718 l 0,-44.199202 z m -9.96257,0.12225 0,44.071961 C 64.2016,55.039665 55.07735,54.605533 47.407686,54.019204 52.19561,31.781127 62.75699,14.91731 74.86278,11.07499 z m 0,98.58806 0,39.56846 C 63.57286,145.64867 53.62525,130.74095 48.4531,110.71096 c 7.4476,-0.54641 16.23253,-0.94561 26.40968,-1.04791 z m 9.96257,39.69321 0,-39.6957 c 10.28444,0.0973 19.03444,0.51147 26.38723,1.08034 -5.08483,20.29196 -14.97006,35.30697 -26.38723,38.61536 z m 0,-49.638341 0,-34.623339 c 11.43214,-0.107285 21.0504,-0.588823 29.03444,-1.247508 0.65618,5.254504 1.01297,10.7136 1.01297,16.309921 0,7.193131 -0.57884,14.169196 -1.64172,20.758527 -7.86177,-0.63622 -17.27794,-1.092811 -28.40569,-1.197601 z m 57.98653,-50.449225 c -1.50698,0.469063 -7.80688,2.257989 -20.43163,3.747513 -2.81438,-14.96261 -7.9017,-27.752063 -14.52096,-36.983617 15.20958,6.609293 27.62225,18.448143 34.95259,33.236104 z M 56.11278,14.44076 C 47.97156,23.78959 41.324852,37.232737 37.697107,53.130979 26.394712,51.905926 19.620759,50.466301 16.908683,49.812607 24.817865,33.495202 38.902197,20.69078 56.11278,14.44076 z M 13.201098,59.131492 c 1.921158,0.521458 9.186627,2.330345 22.697107,3.824859 -0.773453,5.526461 -1.197605,11.274979 -1.197605,17.200642 0,7.527463 0.681138,14.770494 1.908683,21.626797 -11.601797,1.2525 -18.737526,2.752 -21.938624,3.52546 C 11.639222,97.497354 9.96008,89.021784 9.96008,80.154498 c 0,-7.322873 1.14022,-14.386263 3.241018,-21.023006 z m 5.840819,55.384368 c 3.627745,-0.77096 10.122256,-1.94362 19.74052,-2.95161 3.787425,13.98956 9.947603,25.82591 17.330343,34.30148 -15.768467,-5.72606 -28.894715,-16.95862 -37.070863,-31.34987 z m 88.817373,29.75805 c 5.96058,-8.3059 10.67864,-19.49605 13.61277,-32.55995 9.88773,1.13523 16.09531,2.46258 19.22655,3.2535 -7.48752,12.95412 -19.002,23.29596 -32.83932,29.30645 z"/><\/svg>',t.osobaIcon='<svg viewBox= "0 0 160 160"><path d="M 121.57327,105.11272 90.122299,87.691299 C 101.81151,78.494784 104.98608,60.421464 104.98608,50.288315 l 0,-21.093032 C 104.98608,15.228172 83.647155,0 65.006859,0 46.371555,0 24.984445,15.230668 24.984445,29.195283 l 0,21.093032 c 0,9.213997 3.256214,27.854296 15.065315,37.323056 L 8.429721,105.11272 c 0,0 -8.429721,3.75653 -8.429721,8.43972 l 0,38.00785 C 0,156.21849 3.7815101,160 8.429721,160 l 113.143549,0 c 4.65321,0 8.43472,-3.78151 8.43472,-8.43971 l 0,-38.00785 c 0,-4.96543 -8.43472,-8.43972 -8.43472,-8.43972 z m -1.55606,44.8965 -110.02643,0 0,-34.2813 c 0.716839,-0.52201 1.718414,-1.12646 2.507686,-1.48862 0.234784,-0.10739 0.469566,-0.21979 0.691861,-0.34718 L 44.812864,96.393267 c 2.942285,-1.596027 4.892987,-4.555795 5.190211,-7.88772 0.297224,-3.331928 -1.093992,-6.596414 -3.701584,-8.68948 C 37.924221,73.099763 34.97772,58.223493 34.97772,50.288315 l 0,-21.093032 c 0,-7.17588 15.864707,-19.204503 30.031635,-19.204503 14.429184,0 29.988442,11.858781 29.988442,19.204503 l 0,21.093032 c 0,7.82528 -2.430256,22.76649 -11.0498,29.54773 -2.640064,2.078086 -4.058754,5.342574 -3.781512,8.689486 0.28224,3.346909 2.225448,6.326658 5.170232,7.937672 l 31.450973,17.421427 c 0.27725,0.15234 0.62942,0.31721 0.92165,0.44458 0.73682,0.31222 1.64348,0.83423 2.30787,1.29381 z" /><\/svg>',t}(f.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,u=i(1),f=i.n(u),e=i(3),o=i.n(e),s=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.bar=!0},t.prototype.renderMobile=function(){return f.a.createElement("div",{className:o()(this.classes)},this.createControls())},t}(s.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,u=i(1),f=i.n(u),e=i(3),o=i.n(e),s=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.prototype.getId=function(){return this.props.dataElement.Name},Object.defineProperty(t.prototype,"menuIconName",{get:function(){return"wstecz"},enumerable:!1,configurable:!0}),t.prototype.onClick=function(){this.props.onCommandClick&&this.props.onCommandClick()},t.prototype.renderMobile=function(){return this.prepareClasses(),f.a.createElement("div",{id:this.getId(),className:o()(this.classes)},this.createBarContent())},t}(s.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(1),e=i.n(f),u=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.className="floating-bar",i}return o(t,n),t.prototype.createBarContent=function(){return this.props.dataElement?this.props.dataElement.Elements.filter(function(n){return"Command"===n.ElementType&&n.IsVisible}).map(function(n){return e.a.createElement(u.CommandFloatingBar,{key:n.Name,dataElement:n})},this):null},t}(u.BaseBar)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var r,e=i(1),u=i.n(e),o=i(3),s=i.n(o),h=i(2),f=i(0),c=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(n){function t(t){var i=n.call(this,t)||this;return i.className="menu-content",i}return c(t,n),Object.defineProperty(t.prototype,"menuStyle",{get:function(){var r=this.props.dataElement.Elements.filter(function(n){return n.IsVisible}),i=0;h.a.forEach(r,function(n){return i+=n.Elements.length});var n=document.defaultView,u=n.innerWidth-56,f=(n.innerWidth-u)/2,t=(n.innerHeight-48*i)/2;return{position:"absolute",top:t<0?"96px":t+"px",bottom:t<0?"96px":null,right:f+"px"}},enumerable:!1,configurable:!0}),t.prototype.createBarContent=function(){return this.props.dataElement.Elements.filter(function(n){return n.IsVisible}).map(function(n){return u.a.createElement(f.GroupMenu,{key:n.Name,dataElement:n})},this)},t.prototype.renderMobile=function(){var t=this;return this.prepareClasses(),u.a.createElement("div",{className:"menu-bar",onClick:function(i){return n.prototype.onClick.call(t,i)}},u.a.createElement("div",{className:s()(this.classes),style:this.menuStyle},this.createBarContent()))},t}(f.BaseBar)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,r=i(0),e=i(1),u=i.n(e),o=i(3),s=i.n(o),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.className="menu-content",i}return h(t,n),t.prototype.createGroupMenu=function(n){return u.a.createElement(r.GroupMenu,{key:n.Name,dataElement:n})},t.prototype.createBarContent=function(){var t=this,n=this.props.dataElement.Window.Pages;return n?[n.length>0?u.a.createElement(r.SlideMenu,{key:"slideMenu",anchor:r.AnchorPosition.Left,selectedPage:this.props.dataElement.Window.SelectedPage.CaptionHtml,toggleMenu:function(){return t.props.onCommandClick(null)},pages:r.FactorySlideMenuSource.createNavigationMenu(n)}):null]:this.props.dataElement.Elements.map(function(n){return t.createGroupMenu(n)})},t.prototype.renderMobile=function(){var t=this;return this.prepareClasses(),u.a.createElement("div",{className:"navigation-bar",onClick:function(i){return n.prototype.onClick.call(t,i)}},u.a.createElement("div",{className:s()(this.classes)},this.createBarContent()))},t.prototype.renderBrowser=function(){return null},t}(r.BaseBar)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(1),e=i.n(f),u=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.resizeHandler=function(){return i.resizeListener.bind(i)},i.touchStartHandler=function(n){return i.touchStart(n)},i.touchEndHandler=function(n){return i.touchEnd(n)},i.touchMoveHandler=function(n){return i.touchMove(n)},i.className="second-header-bar show",i}return o(t,n),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.dataElement.Name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!this.domElement||this.domElement.classList.contains("show")},enumerable:!1,configurable:!0}),t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.eventRegistrar.registerEventListener({domElement:window,type:"touchstart",handler:this.touchStartHandler});this.eventRegistrar.registerEventListener({domElement:window,type:"touchmove",handler:this.touchMoveHandler});this.eventRegistrar.registerEventListener({domElement:window,type:"touchend",handler:this.touchEndHandler});this.eventRegistrar.registerEventListener({domElement:window,type:"resize",handler:this.resizeHandler})},t.prototype.resizeListener=function(){if(!this.props.dataElement.Window.Settings.DisableTouchEvents){this.defaultHeight=u.StorageHelper.GetDeviceHeight();var n=document.getElementById(this.getId());n&&(document.defaultView.innerHeight<this.defaultHeight&&this.isVisible?n.setAttribute("class","second-header-bar hide"):document.defaultView.innerHeight!==this.defaultHeight||this.isVisible||n.setAttribute("class","second-header-bar show"))}},t.prototype.touchStart=function(n){this.props.dataElement.Window.Settings.DisableTouchEvents||(this.scrollStartY=this.scrollEndY=n.touches[0].screenY)},t.prototype.touchEnd=function(){this.props.dataElement.Window.Settings.DisableTouchEvents||(this.scrollStartY=0,this.scrollEndY=0)},t.prototype.touchMove=function(n){if(!this.props.dataElement.Window.Settings.DisableTouchEvents&&(console.assert(this.scrollStartY>0),this.checkParent(n.target,"window"))){var t=n.touches[0].screenY;t>this.scrollEndY&&(this.scrollEndY=t);t<this.scrollEndY-3&&this.isVisible?(this.domElement.setAttribute("class","second-header-bar hide"),this.scrollEndY=this.scrollStartY):t>this.scrollStartY+3&&!this.isVisible&&this.domElement.setAttribute("class","second-header-bar show")}},t.prototype.checkParent=function(n,t){return!(!n||n.classList.contains("container"))&&(!!n.classList.contains(t)||this.checkParent(n.parentElement,t))},t.prototype.createBarContent=function(){var n=this;return this.props.dataElement.Elements.filter(function(n){return"Command"===n.ElementType&&n.IsVisible}).map(function(t){return e.a.createElement(u.CommandSecondHeaderBar,{key:t.Name,dataElement:t,onClick:n.props.onCommandClick?function(t){return n.props.onCommandClick(t)}:null})},this)},t}(u.BaseBar)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.createCommands=function(){return this.props.dataElement.Elements.filter(function(n){return n.IsVisible}).map(function(n,t){return"RemainderCommand"===n.Name?u.a.createElement(f.CommandReminder,{ref:"cmd-"+t,key:n.Name,dataElement:n}):u.a.createElement(f.CommandTopBar,{ref:"cmd-"+t,key:n.Name,dataElement:n})})},t.prototype.render=function(){return u.a.createElement("div",{className:"hb-top"},this.createCommands())},t}(f.ControlBase)},function(n,t,i){"use strict";i.d(t,"b",function(){return e});i.d(t,"a",function(){return o});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n,t,i,r){this.wh=n;this.captionhtml=t;this.active=i;this.orderKey=r;this.remove=!1;this.visible=!0},o=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.findWindow=function(n){var t=u.WindowManager.Instance.findByHandle(n);return t||null},t.prototype.focus=function(){this.domElement&&this.domElement.classList.add("hover")},t.prototype.blur=function(){this.domElement&&this.domElement.classList.remove("hover")},t.prototype.onClick=function(){this.props.dataElement&&this.props.dataElement.postClick("");this.props.onClick&&this.props.onClick()},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,f=i(1),r=i.n(f),e=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return o(t,n),t.prototype.bookmarkClick=function(n){var t=this.findWindow(n);t&&t.post("")},t.prototype.closeBookmarkClick=function(n){var t=this.findWindow(n);t&&t.postClose()},t.prototype.render=function(){var n=this,t=this.props.element.active?"hb-bookmark active":"hb-bookmark";return r.a.createElement("div",{key:"b-"+this.props.idx,className:t},r.a.createElement("div",{className:"b-txt",onClick:function(){return n.bookmarkClick(n.props.element.wh)}},r.a.createElement("div",null,this.props.element.captionhtml)),r.a.createElement("div",{className:"b-close",onClick:function(){return n.closeBookmarkClick(n.props.element.wh)}},r.a.createElement("div",null,"x")))},t}(e.BookmarkBase)},function(n,t,i){"use strict";var s;i.d(t,"a",function(){return s});var o,f,h=i(1),e=i.n(h),u=i(2),r=i(0),c=(o=function(n,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}o(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});!function(n){n[n.DrawNewBtn=0]="DrawNewBtn";n[n.DrawNavBtns=1]="DrawNavBtns";n[n.DrawNothing=2]="DrawNothing"}(f||(f={}));s=function(n){function t(t){var i=n.call(this,t)||this;return i.visibleWindows=[],i.bookmarksColl=[],i.visibleBookmarksColl=[],i.bookmarksRenderStartIdx=0,i.maxNumOfBookmarks=1,i.addBookmarkInIdx=-1,i.addNextBookmarkAsLast=!1,i.isNewBookmarkAdded=!1,i.isMaxWidthChanged=!1,i.isNavButtonClicked=!1,i.state={windowWidth:window.innerWidth},i}return c(t,n),t.prototype.componentDidUpdate=function(t,i,r){n.prototype.componentDidUpdate.call(this,t,i,r);this.props.navigator&&this.props.navigator.onComponentDidUpdate()},t.prototype.shouldComponentUpdate=function(n,t){var i=this.state.windowWidth!==t.windowWidth||this.state.activeWindowHandle!==t.activeWindowHandle||this.props.maxWidth!==n.maxWidth||this.isNavButtonClicked;return this.isMaxWidthChanged=this.props.maxWidth!==n.maxWidth,!!i||this.anyBookmarksBeenRemoved()},t.prototype.attachEventListeners=function(){n.prototype.attachEventListeners.call(this);this.props.window.addListenerAndCall(this);r.WindowManager.Instance.addListener(this)},t.prototype.detachEventListeners=function(){n.prototype.detachEventListeners.call(this);this.props.window.removeListener(this);r.WindowManager.Instance.removeListener(this)},t.prototype.findCommand=function(n){var i=u.a.filter(this.props.window.Bars,function(n){return"HomeBar"===n.Name}),t=u.a.filter(i[0].Elements,function(t){return t.Name===n}),r=t?t[0]:null;return r||null},t.prototype.setVisibleWindows=function(){var n=this,t=r.WindowManager.Instance.Roots;this.visibleWindows=[];u.a.each(t,function(t){if("Folder"!==t.Mode&&"Form"!==t.Mode||n.visibleWindows.push(t),t.ChildrenWindows.length>0){var i=n.findLastVisibleChild(t.ChildrenWindows);i&&n.visibleWindows.push(i)}})},t.prototype.findLastVisibleChild=function(n){for(var t,r,i=0;i<n.length;i++)if(t=n[i],t.IsVisible&&"Modal"!==t.Mode&&"Popup"!==t.Mode)return t.ChildrenWindows.length>0?(r=this.findLastVisibleChild(t.ChildrenWindows),r||t):t;return null},t.prototype.findActiveBookmarkIndex=function(){for(var n=0;n<this.visibleBookmarksColl.length;n++)if(this.visibleBookmarksColl[n].active)return n;return-1},t.prototype.findActiveBookmarkHandle=function(){for(var n,t=0;t<this.visibleWindows.length;t++)if((n=this.visibleWindows[t],n.Handle===this.state.activeWindowHandle)||n.ChildrenWindows&&n.ChildrenWindows.length>0&&this.windowExistInCollection(n.ChildrenWindows))return n.Handle;return null},t.prototype.findWindow=function(n){var t=r.WindowManager.Instance.findByHandle(n);return t||null},t.prototype.activateLatestVisibleWindow=function(){for(var i=null,t=r.WindowManager.Instance.WindowsHistory,n=0;n<t.length;n++)if(r.WindowManager.Instance.checkIsWindowOpen(t[n])&&("Folder"===t[n].Mode||"Form"===t[n].Mode)){i=t[n].Handle;break}i&&u.a.each(this.bookmarksColl,function(n){n.wh!==i||(n.active=!0)})},t.prototype.bookmarkExist=function(n){return u.a.any(this.bookmarksColl,function(t){return t.wh===n})},t.prototype.addNewBookmark=function(n){var i=-1,t;if(this.isNewBookmarkAdded=!0,0===this.bookmarksColl.length||this.addNextBookmarkAsLast)return this.addNextBookmarkAsLast=!1,void this.bookmarksColl.push(n);for(t=0;t<this.bookmarksColl.length;t++)if(this.bookmarksColl[t].active){i=t;this.bookmarksColl.splice(t+1,0,n);break}-1===i&&(-1!==this.addBookmarkInIdx?(this.bookmarksColl.splice(this.addBookmarkInIdx,0,n),this.addBookmarkInIdx=-1):this.bookmarksColl.push(n));-1!==i&&this.bookmarksColl[i].active&&(this.bookmarksColl[i].active=!1)},t.prototype.shouldByVisibleParent=function(n){return!this.findLastVisibleChild(n.ChildrenWindows)},t.prototype.anyBookmarksBeenRemoved=function(){var t;this.setVisibleWindows();for(var r=function(n){var t=i.bookmarksColl[n];if(!u.a.find(i.visibleWindows,function(n){return n.Handle===t.wh}))return{value:!0}},i=this,n=0;n<this.bookmarksColl.length;n++)if(t=r(n),"object"==typeof t)return t.value;return!1},t.prototype.noActiveBookmark=function(){return u.a.each(this.bookmarksColl,function(n){if(n.active)return!1}),!0},t.prototype.removeClosedBookmarks=function(){var n=this,t=!1,i=!1;return u.a.each(this.bookmarksColl,function(r,f){var e=u.a.find(n.visibleWindows,function(n){return n.Handle===r.wh});e||(r.active&&(n.addBookmarkInIdx=f,t=!0),r.remove=!0,i=!0);e&&e.ChildrenWindows.length>0&&(r.visible=n.shouldByVisibleParent(e))}),this.bookmarksColl=u.a.filter(this.bookmarksColl,function(n){return!1===n.remove}),t&&this.activateLatestVisibleWindow(),i},t.prototype.windowExistInCollection=function(n){for(var t,i=0;i<n.length;i++)return t=n[i],t.Handle===this.state.activeWindowHandle||!!(t.ChildrenWindows&&t.ChildrenWindows.length>0)&&this.windowExistInCollection(t.ChildrenWindows);return!1},t.prototype.setActiveBookmarkInCollection=function(){for(var n,t,e,o=this.findActiveBookmarkHandle(),s=function(n){var t=i.bookmarksColl[n],r;(t.active=t.wh===i.state.activeWindowHandle,t.active||t.wh===o)&&(t.visible=!0,r=u.a.find(i.visibleWindows,function(n){return n.Handle===t.wh}),r&&r.ChildrenWindows.length>0&&(t.visible=i.shouldByVisibleParent(r)))},i=this,f=0;f<this.bookmarksColl.length;f++)s(f);this.noActiveBookmark()&&(n=r.WindowManager.Instance.ActiveWindow,("Modal"===n.Mode||"Popup"===n.Mode)&&(t=n.Parent&&n.Parent.Handle?n.Parent.Handle:null,(!t&&n.TargetInfo&&n.TargetInfo.indexOf(":")>=0&&(t=n.TargetInfo.split(":")[0]),t)&&(e=u.a.find(this.bookmarksColl,function(n){return n.wh===t}),e&&(e.active=!0))))},t.prototype.calcMaxNumOfBookmarks=function(){if(this.props.maxWidth){var t=this.props.maxWidth,i=r.GlobalSettings.Instance.IsStandardProduct?147:145,n=Math.floor(t/i),u=t-n*i;return this.visibleBookmarksColl.length<n?this.bookmarkBarMode=f.DrawNewBtn:this.visibleBookmarksColl.length>n?(this.bookmarkBarMode=f.DrawNavBtns,u<85&&n--):this.bookmarkBarMode=f.DrawNothing,n}return 2},t.prototype.loadPrevBookmark=function(){if(0!==this.bookmarksRenderStartIdx){this.bookmarksRenderStartIdx--;this.isNavButtonClicked=!0;var n=this.findActiveBookmarkIndex();n>=0?n>=this.bookmarksRenderStartIdx+this.maxNumOfBookmarks?this.refs["b-"+(this.maxNumOfBookmarks-1)].bookmarkClick(this.visibleBookmarksColl[this.bookmarksRenderStartIdx+this.maxNumOfBookmarks-1].wh):this.forceUpdate():this.forceUpdate()}},t.prototype.loadNextBookmark=function(){if(this.bookmarksRenderStartIdx+this.maxNumOfBookmarks!==this.visibleBookmarksColl.length){this.bookmarksRenderStartIdx++;this.isNavButtonClicked=!0;var n=this.findActiveBookmarkIndex();n>=0?n<this.bookmarksRenderStartIdx?this.refs["b-1"].bookmarkClick(this.visibleBookmarksColl[this.bookmarksRenderStartIdx].wh):this.forceUpdate():this.forceUpdate()}},t.prototype.createNewBookmarkBtn=function(){var t=this,n;return this.bookmarkBarMode!==f.DrawNewBtn?null:(n=this.findCommand("NewPageCommand"),n?e.a.createElement(r.BookmarkNew,{ref:"b-new",key:"new",idx:"new",parent:this,dataElement:n,onClick:function(){return t.onBookmarkNewClick()}}):null)},t.prototype.createNavButtons=function(){var n=this;return this.bookmarkBarMode!==f.DrawNavBtns?null:[e.a.createElement("div",{key:"b-nav-prev",className:"b-nav"+(0===this.bookmarksRenderStartIdx?" disabled":""),onClick:function(){return n.loadPrevBookmark()}},e.a.createElement(r.SvgIcon,{name:"left",classes:"newPage"})),e.a.createElement("div",{key:"b-nav-next",className:"b-nav"+(this.bookmarksRenderStartIdx+this.maxNumOfBookmarks===this.visibleBookmarksColl.length?" disabled":""),onClick:function(){return n.loadNextBookmark()}},e.a.createElement(r.SvgIcon,{name:"right",classes:"newPage"}))]},t.prototype.createBookmarks=function(){var a=this,t=[],v,y,f,n,o,i,s,c,l,h;if(r.WindowManager.Instance&&(v=this.state.activeWindowHandle,this.setVisibleWindows(),u.a.each(this.visibleWindows,function(n,t){a.bookmarkExist(n.Handle)||a.addNewBookmark(new r.IBookmarksElement(n.Handle,n.CaptionHtml,n.Handle===v,t))})),y=this.removeClosedBookmarks(),f=this.findWindow(this.state.activeWindowHandle),f&&"Modal"!==f.Mode&&"Popup"!==f.Mode&&this.setActiveBookmarkInCollection(),this.visibleBookmarksColl=u.a.filter(this.bookmarksColl,function(n){return n.visible&&!n.remove}),this.maxNumOfBookmarks=this.calcMaxNumOfBookmarks(),this.isNewBookmarkAdded)this.isNewBookmarkAdded=!1,(n=this.findActiveBookmarkIndex())>=0&&n>=this.bookmarksRenderStartIdx+this.maxNumOfBookmarks&&(this.bookmarksRenderStartIdx=n-this.maxNumOfBookmarks+1);else if(y)this.bookmarksRenderStartIdx+this.maxNumOfBookmarks>this.visibleBookmarksColl.length&&(this.bookmarksRenderStartIdx=this.visibleBookmarksColl.length-this.maxNumOfBookmarks,this.bookmarksRenderStartIdx<0&&(this.bookmarksRenderStartIdx=0));else if(n=this.findActiveBookmarkIndex(),this.isMaxWidthChanged)this.isMaxWidthChanged=!1,n>=0&&(n===this.bookmarksRenderStartIdx?this.bookmarksRenderStartIdx=this.bookmarksRenderStartIdx+this.maxNumOfBookmarks<=this.visibleBookmarksColl.length?this.bookmarksRenderStartIdx:this.visibleBookmarksColl.length-this.maxNumOfBookmarks:n===this.bookmarksRenderStartIdx+this.maxNumOfBookmarks-1?this.bookmarksRenderStartIdx=n-this.maxNumOfBookmarks+1:(this.bookmarksRenderStartIdx=n-Math.floor(this.maxNumOfBookmarks/2),this.bookmarksRenderStartIdx>this.visibleBookmarksColl.length-this.maxNumOfBookmarks&&(this.bookmarksRenderStartIdx=this.visibleBookmarksColl.length-this.maxNumOfBookmarks)),this.bookmarksRenderStartIdx<0&&(this.bookmarksRenderStartIdx=0));else if(!this.isNavButtonClicked&&n>=0)for(n<this.bookmarksRenderStartIdx&&(this.bookmarksRenderStartIdx=n);n>=this.bookmarksRenderStartIdx+this.maxNumOfBookmarks;)this.bookmarksRenderStartIdx++;for(this.isNavButtonClicked=!1,o=this.bookmarksRenderStartIdx,i=0;o<=this.visibleBookmarksColl.length&&i<this.maxNumOfBookmarks;o++)s=this.visibleBookmarksColl[o],s&&s.visible&&(c=i.toString(),t.push(e.a.createElement(r.Bookmark,{ref:"b-"+i,key:c,idx:c,element:s,parent:this})),i++);return l=this.createNewBookmarkBtn(),l&&0!==t.length&&t.push(l),h=this.createNavButtons(),h&&(t.push(h[0]),t.push(h[1])),t.length>0?t:null},t.prototype.onBookmarkNewClick=function(){this.addNextBookmarkAsLast=!0},t.prototype.bookmarkClick=function(n){var t=this.findWindow(n);t&&t.post("")},t.prototype.closeBookmarkClick=function(n){var t=this.findWindow(n);t&&t.postClose()},t.prototype.handler=function(t){n.prototype.handler.call(this,t);(t.FirstCall||t.ActiveWindowChanged||t.WindowsChanged)&&r.WindowManager.Instance.ActiveWindow&&this.setState({activeWindowHandle:r.WindowManager.Instance.ActiveWindow.Handle})},t.prototype.render=function(){return e.a.createElement("div",{key:"hb-bookmarks",className:"hb-bookmarks"},this.createBookmarks())},t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return o(t,n),t.prototype.render=function(){var n=this;return u.a.createElement("div",{key:"b-"+this.props.idx,className:"b-new",onClick:function(t){return n.onClick(t)}},u.a.createElement(f.SvgIcon,{name:this.props.dataElement.Icon,classes:"newPage"}))},t}(f.BookmarkBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var u,s=i(1),r=i.n(s),h=i(3),c=i.n(h),o=i(2),f=i(0),l=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},a=function(n){function t(t){var i=n.call(this,t)||this;return i.touchMoving=!1,i.latestTouchY=0,i.mouseScrollHandler=i.mouseScrollListener.bind(i),i.touchStartHandler=i.touchStartListener.bind(i),i.touchMoveHandler=i.touchMoveListener.bind(i),i.touchEndHandler=i.touchEndListener.bind(i),console.assert(!(i.props.height<i.props.elementHeight),"The height of the element is too large"),i.maxElements=Math.floor(i.props.height/i.props.elementHeight),i.showArrows&&(i.maxElements=i.maxElements-2),i.calculateCarousel(i.props.selectedIndex),i.props.autoSelect||i.onSelectElement(),i.state={startElement:i.startElement},i}return l(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.refs[this.centerIndex.toString()+"_el"].classList.add("selected")},t.prototype.componentDidUpdate=function(t,i){n.prototype.componentDidUpdate.call(this,t,i);this.initEventListeners();t.selectedIndex!==this.props.selectedIndex&&this.reAttachEventListeners()},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.props.isMobile?this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"touchstart",handler:this.touchStartHandler},{domElement:this.domElement,type:"touchmove",handler:this.touchMoveHandler},{domElement:this.domElement,type:"touchend",handler:this.touchEndHandler}]):this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"mousewheel",handler:this.mouseScrollHandler}])},t.prototype.calculateCarousel=function(n){var u=this.maxElements%2==0?this.maxElements-1:this.maxElements,r=u<this.props.elements.length?u:this.props.elements.length-1,t=Math.floor(r/2),i;this.centerIndex=Math.floor(r/2);this.startElement=n-t;this.startElement<0?this.startElement=n-t+this.props.elements.length:this.startElement>=this.props.elements.length&&(this.startElement=n-t-this.props.elements.length);i=this.startElement+t;this.selectedIdx=i>=this.props.elements.length?i-this.props.elements.length:i;this.heightContainer=this.props.elementHeight*r},t.prototype.mouseScrollListener=function(n){this.preventEvents(n);var t=0===n.deltaY?100:n.deltaY;this.calculateCarousel(this.selectedIdx+(t<0?-1:1));this.props.autoSelect||this.onSelectElement();this.setState({startElement:this.startElement})},t.prototype.touchStartListener=function(n){this.latestTouchY=n.touches[0].clientY},t.prototype.touchMoveListener=function(n){if(this.preventEvents(n,!0),this.touchMoving=!0,!(this.latestTouchY&&Math.abs(this.latestTouchY-n.changedTouches[0].clientY)<15)){var t=this.latestTouchY>n.changedTouches[0].clientY?1:-1;this.calculateCarousel(this.selectedIdx+t);this.latestTouchY=n.changedTouches[0].clientY;this.setState({startElement:this.startElement})}},t.prototype.touchEndListener=function(n){this.preventEvents(n);this.touchMoving&&(this.touchMoving=!1,this.onSelectElement())},t.prototype.onSelectElement=function(n){this.props.onSelectElement&&(!n&&this.selectedIdx<this.props.elements.length&&(n=this.props.elements[this.selectedIdx]),n&&this.props.onSelectElement(n))},t.prototype.onClickItem=function(n){var t=o.a.findIndex(this.props.elements,function(t){return t.value===n.value});this.calculateCarousel(t);this.onSelectElement(n);this.setState({startElement:this.startElement})},t.prototype.onClickIncrease=function(n){this.preventEvents(n);this.calculateCarousel(this.selectedIdx-1);this.props.autoSelect||this.onSelectElement();this.setState({startElement:this.startElement})},t.prototype.onClickDecrease=function(n){this.preventEvents(n);this.calculateCarousel(this.selectedIdx+1);this.props.autoSelect||this.onSelectElement();this.setState({startElement:this.startElement})},t.prototype.createItems=function(){var t=this,n=this.props.elements.slice(this.state.startElement),i,u;return n.length<this.maxElements?(i=this.maxElements-n.length,n=n.concat(this.props.elements.slice(0,i))):n.length>this.maxElements&&(u=n.length-this.maxElements,n=n.slice(0,n.length-u)),o.a.map(n,function(n,i){return r.a.createElement("div",{key:i,ref:i+"_el",className:n.name,style:{height:t.props.elementHeight+"px"},onClick:function(){return t.onClickItem(n)}},n.description)})},Object.defineProperty(t.prototype,"carousel",{get:function(){return r.a.createElement("div",{className:c()(this.classes),style:this.style},this.createItems())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showArrows",{get:function(){return!this.props.isMobile&&this.props.showArrows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arrowUp",{get:function(){var t=this,n;return this.showArrows?(n={name:"up",classes:"inc-arrow",enabled:!0,onClick:function(n){return t.onClickIncrease(n)}},r.a.createElement(f.SvgIcon,e({},n))):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arrowDown",{get:function(){var t=this,n;return this.showArrows?(n={name:"down",classes:"dec-arrow",enabled:!0,onClick:function(n){return t.onClickDecrease(n)}},r.a.createElement(f.SvgIcon,e({},n))):null},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){this.classes={};this.classes["fn-carousel"]=!0},t.prototype.prepareStyle=function(){this.style={};this.style.height=this.heightContainer+"px";this.style.width=this.props.width+"px"},t.prototype.render=function(){return this.prepareClasses(),this.prepareStyle(),r.a.createElement("div",{className:"fn-con-sc"},this.arrowUp,this.carousel,this.arrowDown)},t}(f.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,o=i(1),u=i.n(o),s=i(3),h=i.n(s),e=i(2),r=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(n){function t(t){var i=n.call(this,t)||this;return i.onMouseClickHandler=i.onMouseClickListener.bind(i),i.onMouseMoveHandler=i.onMouseMoveListener.bind(i),i.onMouseLeaveHandler=i.onMouseLeaveListener.bind(i),i.state={hashArea:"@#@".CreateHash()},i}return c(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.updateSvgSize()},t.prototype.componentDidUpdate=function(t,i){n.prototype.componentDidUpdate.call(this,t,i);i.hashArea!==this.state.hashArea&&this.reAttachEventListeners();this.updateSvgSize()},t.prototype.shouldComponentUpdate=function(n,t){return t.hashArea!==this.state.hashArea},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.initAreaEvents()},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.chart=!0},t.prototype.onMouseMoveListener=function(n){this.updateTooltip(n,!0)},t.prototype.onMouseLeaveListener=function(n){this.updateTooltip(n,!1)},t.prototype.onMouseClickListener=function(){var t=event.target.getAttribute("params"),n=t?t.split("|"):[];4===n.length&&"true"===n[3]&&this.props.dataElement.post("",n[0]+"|"+n[1])},Object.defineProperty(t.prototype,"domMap",{get:function(){return this.refs.map},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"domTooltip",{get:function(){return this.refs.tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"domSvg",{get:function(){return this.refs.svg},enumerable:!1,configurable:!0}),t.prototype.updateTooltip=function(n,t){var h=this,u="tooltip-active",f="tooltip-hidden",s=n.target.getAttribute("params"),i=s?s.split("|"):[],o=i.length>=3?i[2]:null,c=4===i.length&&"true"===i[3];o&&t&&this.domTooltip.classList.contains(f)?(r.ControlBase.switchClass(this.domTooltip,f,!1),r.ControlBase.switchClass(this.domTooltip,u,!0)):!t&&this.domTooltip.classList.contains(u)&&(r.ControlBase.switchClass(this.domTooltip,u,!1),r.ControlBase.switchClass(this.domTooltip,f,!0));t&&o&&(this.domTooltip.style.top=n.offsetY-36+"px",this.domTooltip.style.left=n.offsetX+10+"px",this.domTooltip.innerHTML="",e.a.each(o.split(";"),function(n){var t=document.createElement("div");t.className="tooltip-line";t.innerText=n;h.domTooltip.appendChild(t)}));this.domTooltip.style.cursor=t&&c?"pointer":"default"},t.prototype.updateSvgSize=function(){this.domMap&&e.a.each(this.domMap.children,function(n){"area"!==n.tagName||n.hasAttribute("params")||n.remove()});this.domSvg&&!this.props.dataElement.IsMobile&&(this.domSvg.style.width=this.rect.width+"px",this.domSvg.style.height=this.rect.height+"px")},t.prototype.createSvgImage=function(){var f="map_"+this.props.dataElement.Name,n=this.props.dataElement.EditValue;if(!n)return null;var t=n.indexOf("<svg"),i=(n.substr(0,t),n.substr(t,n.length)),r=i?btoa(unescape(encodeURIComponent(i))):"";return r?u.a.createElement("img",{id:"svg_"+this.props.dataElement.Name,ref:"svg",useMap:"#"+f,src:"data:image/svg+xml;base64,"+r}):null},t.prototype.createMap=function(){var n=this.props.dataElement.EditValue;if(!n)return null;var i=n.indexOf("<svg"),r=n.substr(0,i),t="map_"+this.props.dataElement.Name;return u.a.createElement("map",{id:t,name:t,ref:"map",dangerouslySetInnerHTML:{__html:r}})},t.prototype.createTooltip=function(){return u.a.createElement("div",{id:"tip_"+this.props.dataElement.Name,ref:"tooltip",className:"tooltip-hidden"})},t.prototype.initAreaEvents=function(){var n=this,t;this.domElement&&(t=this.domElement.getElementsByTagName("area"),e.a.each(t,function(t){n.eventRegistrar.registerEventListeners([{domElement:t,type:"click",handler:n.onMouseClickHandler},{domElement:t,type:"mousemove",handler:n.onMouseMoveHandler},{domElement:t,type:"mouseout",handler:n.onMouseLeaveHandler}])}))},t.prototype.updateState=function(){this.props.dataElement&&this.setState({hashArea:this.props.dataElement.EditValue.CreateHash()})},t.prototype.renderContent=function(){return u.a.createElement("div",{className:h()(this.classes),style:this.style},this.createSvgImage(),this.createMap(),this.createTooltip())},t.prototype.renderBrowser=function(){return this.prepareStyle(),this.prepareClasses(),this.renderContent()},t.prototype.renderMobile=function(){return this.prepareClasses(),this.renderContent()},t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return v});var u,e=i(1),f=i.n(e),o=i(4),s=i.n(o),h=i(3),c=i.n(h),l=i(2),r=i(0),a=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),v=function(n){function t(t){var i=n.call(this,t)||this;return i.props.isMobile||(i.mouseNavigator=new r.ColorPickerMouseNavigator(i)),i.keyNavigator=new r.EditorKeyNavigator(i),i.state={active:!1},i}return a(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.keyNavigator&&this.keyNavigator.onComponentDidMount();this.mouseNavigator&&this.mouseNavigator.onComponentDidMount();this.target&&r.BaseKeyNavigator.setKeyListener(this.target,this);this.updateBcg()},t.prototype.componentDidUpdate=function(){this.updateBcg()},t.prototype.componentWillUnmount=function(){this.keyNavigator&&this.keyNavigator.onComponentWillUnmount();this.mouseNavigator&&this.mouseNavigator.onComponentWillUnmount()},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.mouseDownListener=function(n){this.mouseNavigator&&this.mouseNavigator.mouseDownListener(n)},t.prototype.updateBcg=function(){var t=document.getElementById(this.props.parent.Name),n;t&&(n=t.parentElement,n&&(this.props.parent.EditValue?(n.classList.remove("cp-empty-bcg"),n.style.backgroundColor=this.props.parent.EditValue):n.classList.add("cp-empty-bcg")))},t.prototype.onClick=function(n){if(this.props.parent.Editable){n.stopPropagation();n.preventDefault();var t=n.target;(l.a.indexOf(t.classList,"cp-overlay")>=0||Object(r.hasParentNode)(t,"icon"))&&this.setState({active:!this.state.active})}},t.prototype.onCloseColorPicker=function(){this.setState({active:!1})},t.prototype.onEditValueChanged=function(n){this.props.onEditValueChanged&&this.props.onEditValueChanged(this.props.parent.EditValue,new r.EipEventProps("Unknown","Unknown",new r.KeyboardEventProps(n)))},t.prototype.onCloseEditor=function(){this.props.onCloseEditor&&this.props.onCloseEditor()},t.prototype.closeColorPicker=function(){this.setState({active:!1})},t.prototype.setColor=function(n){this.setState({active:!this.state.active});this.props.onEditValueChanged(n,new r.EipEventProps("Process","Right"))},Object.defineProperty(t.prototype,"getContent",{get:function(){var n=this;return this.state.active?s.a.createPortal(f.a.createElement(r.ColorPickerContent,{editorName:this.props.parent.Name,value:this.props.parent.EditValue,onSetColor:function(t){return n.setColor(t)},onClose:function(){return n.onCloseColorPicker()},onClick:function(t){return n.onClick(t)}}),document.body):null},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){this.classes={};n.prototype.prepareClasses.call(this);this.classes["editor-text"]=!0},t.prototype.render=function(){return this.props.parent.IsMobile?this.renderMobile():this.renderBrowser()},t.prototype.renderMobile=function(){return null},t.prototype.renderBrowser=function(){var n=this;return this.prepareClasses(),f.a.createElement("div",{id:this.props.parent.Name+"con",className:"editor-text"},f.a.createElement(r.EditorText,{id:this.props.parent.Name,ref:"editor",type:"text",editValue:"",editable:this.props.parent.Editable,location:this.props.parent.Location,classes:c()(this.classes),captionHtml:this.props.parent.CaptionHtml,descriptionHtml:this.props.parent.DescriptionHtml,iconName:"paleta",isMobile:this.props.parent.IsMobile,isMultiline:this.props.parent.IsMultilineLabel,eipMode:this.props.parent.EipMode,onIconClick:function(t){return n.onClick(t)},onCloseEditor:function(){return n.onCloseEditor()},onEditValueChanged:function(t){return n.onEditValueChanged(t)}}),this.getContent)},t}(r.EditorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,o=i(1),r=i.n(o),u=i(0),e=i(2),s=i(3),h=i.n(s),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(n){function t(t){var i=n.call(this,t)||this;if(i.paletteStandard=[["rgb(0, 0, 0)","rgb(114, 117, 128)","rgb(220, 220, 228)","rgb(255, 255, 255)",""],["rgb(74, 59, 99)","rgb(112, 90, 150)","rgb(138, 118, 173)","rgb(165, 150, 192)","rgb(192, 182, 211)"],["rgb(54, 78, 89)","rgb(74, 105, 120)","rgb(94, 134, 152)","rgb(138, 169, 183)","rgb(185, 204, 212)"],["rgb(27, 103, 110)","rgb(38, 140, 149)","rgb(49, 187, 188)","rgb(93, 213, 213)","rgb(154, 229, 229)"],["rgb(66, 92, 0)","rgb(91, 128, 0)","rgb(118, 163, 0)","rgb(164, 206, 59)","rgb(202, 226, 141)"],["rgb(173, 135, 1)","rgb(223, 175, 1)","rgb(254, 203, 22)","rgb(254, 220, 98)","rgb(251, 231, 160)"],["rgb(140, 13, 0)","rgb(189, 19, 0)","rgb(219, 22, 0)","rgb(255, 126, 112)","rgb(253, 207, 201)"]],i.paletteBasic=["","rgb(255, 0, 255)","rgb(0, 0, 255)","rgb(0, 255, 255)","rgb(0, 255, 0)","rgb(255, 255, 0)","rgb(255, 0, 0)"],i.palettePremium=[["rgb(0,0,0)","rgb(114,117,128)","rgb(220,220,228)","rgb(255,255,255)",""],["rgb(19,24,33)","rgb(43,54,74)","rgb(66,82,109)","rgb(112,133,169)","rgb(175,187,207)"],["rgb(25,73,149)","rgb(35,104,213)","rgb(59, 134, 255)","rgb(128,176,255)","rgb(189,214,255)"],["rgb(27, 103, 110)","rgb(38, 140, 149)","rgb(49, 187, 188)","rgb(93, 213, 213)","rgb(154, 229, 229)"],["rgb(36, 129, 83)","rgb(47, 168, 108)","rgb(61, 207, 120)","rgb(133, 224, 169)","rgb(194, 240, 212)"],["rgb(175, 108, 0)","rgb(214, 132, 0)","rgb(255, 157, 0)","rgb(255, 193, 95)","rgb(255, 216, 153)"],["rgb(168, 26, 59)","rgb(198, 32, 70)","rgb(214, 36, 77)","rgb(229, 102, 132)","rgb(240, 168, 185)"]],i.color_caption=u.LanguageConstants.RESOURCES.Str_Color,i.red_caption=u.LanguageConstants.RESOURCES.Str_Red,i.green_caption=u.LanguageConstants.RESOURCES.Str_Green,i.blue_caption=u.LanguageConstants.RESOURCES.Str_Blue,t&&t.value){var r=i.hexToRgb(t.value),f=r.substring(r.indexOf("(")+1,r.indexOf(")")).split(","),e=+f[0].trim(),o=+f[1].trim(),s=+f[2].trim();i.state={color:r,hexColor:t.value,r:e,g:o,b:s}}else i.state={color:"",hexColor:"",r:null,g:null,b:null};return i}return c(t,n),t.prototype.componentDidMount=function(){var n,t,i;this.cpBoxColorChange(this.state.color);n=document.getElementById("f-"+this.props.editorName);n&&(n.getBoundingClientRect(),t=this.refs["cp-box"],i=this.getCords(n),t.style.top=i.top,t.style.left=i.left,t.style.right=i.right)},t.prototype.getCords=function(n){var t=n.getBoundingClientRect();return{top:("top"==(document.defaultView.outerHeight-t.bottom>document.defaultView.outerHeight-(document.defaultView.outerHeight-t.bottom+t.height)?"top":"bottom")?t.top+t.height:null)+"px",left:("left"==(document.defaultView.outerWidth-t.left>document.defaultView.outerWidth-(document.defaultView.outerWidth-t.right+t.width)?"left":"right")?t.left:t.left+t.width-370)+"px",right:t.left+"px"}},t.prototype.prepareClasses=function(){this.classes={};this.classes["cp-overlay"]=!0},t.prototype.onBoxClick=function(n){n.stopPropagation();n.preventDefault()},t.prototype.onDPBoxClick=function(){this.props.onSetColor(this.state.hexColor)},t.prototype.onColorBoxClick=function(n){if(n.preventDefault(),n.stopPropagation(),n.target)if(n.target.dataset.c){var t=n.target.dataset.c,i=t.substring(t.indexOf("(")+1,t.indexOf(")")).split(","),r=+i[0].trim(),u=+i[1].trim(),f=+i[2].trim();this.props.onSetColor(this.rgbToHex(r,u,f))}else this.props.onSetColor("")},t.prototype.cpBoxColorChange=function(n){var t=this.refs.cpbox;t&&(n?(t.classList.remove("cp-empty-bcg"),t.style.backgroundColor=n):t.classList.add("cp-empty-bcg"))},t.prototype.onInputChange=function(){var r=this,u=this.refs["cp-red"],f=this.refs["cp-green"],e=this.refs["cp-blue"],n=u.EditValue?+u.EditValue:0,t=f.EditValue?+f.EditValue:0,i=e.EditValue?+e.EditValue:0,o="rgb("+n+","+t+","+i+")";n>255&&(n=255);t>255&&(t=255);i>255&&(i=255);this.setState({color:o,hexColor:this.rgbToHex(n,t,i),r:n,g:t,b:i},function(){return r.cpBoxColorChange(r.state.color)})},t.prototype.onColorInputChange=function(){var r=this,t=this.refs["cp-tcolor"];if(t){var n=this.hexToRgb(t.EditValue),i=n.substring(n.indexOf("(")+1,n.indexOf(")")).split(","),u=+i[0].trim(),f=+i[1].trim(),e=+i[2].trim();n&&this.setState({color:n,hexColor:t.EditValue,r:u,g:f,b:e},function(){return r.cpBoxColorChange(r.state.color)})}},t.prototype.rgbToHex=function(n,t,i){return"#"+this.componentToHex(n)+this.componentToHex(t)+this.componentToHex(i)},t.prototype.hexToRgb=function(n){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return t?"rgb("+parseInt(t[1],16)+","+parseInt(t[2],16)+","+parseInt(t[3],16)+")":null},t.prototype.componentToHex=function(n){return n=parseInt(n,10),isNaN(n)?"00":(n=Math.max(0,Math.min(n,255)),"0123456789ABCDEF".charAt((n-n%16)/16)+"0123456789ABCDEF".charAt(n%16))},t.prototype.createElements=function(n){var t=this;return e.a.map(n,function(n,i){return r.a.createElement("div",{className:n?"cp-color":"cp-color-empty",key:"c-"+i.toString(),"data-c":n,style:{backgroundColor:n},onClick:function(n){return t.onColorBoxClick(n)}})})},Object.defineProperty(t.prototype,"preparePaletteStandard",{get:function(){var n=this;return e.a.map(this.paletteStandard,function(t,i){return r.a.createElement("div",{key:"col-"+i.toString(),className:"cp-col"},n.createElements(t))},this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preparePaletteBasic",{get:function(){return r.a.createElement("div",{className:"cp-row"},this.createElements(this.paletteBasic))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preparePalettePremium",{get:function(){var n=this;return e.a.map(this.palettePremium,function(t,i){return r.a.createElement("div",{key:"col-"+i.toString(),className:"cp-col"},n.createElements(t))},this)},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this;return this.prepareClasses(),r.a.createElement("div",{id:"cp-ov","data-lparent":this.props.editorName+"con",className:h()(this.classes),onClick:function(){return n.props.onClose()}},r.a.createElement("div",{ref:"cp-box",className:"cp-box",onClick:function(t){return n.onBoxClick(t)}},r.a.createElement("div",{className:"cp-standard"},u.GlobalSettings.Instance.IsStandardProduct?this.preparePaletteStandard:this.preparePalettePremium),r.a.createElement("div",{className:"cp-manual"},r.a.createElement("div",{className:"cp-m-left"},r.a.createElement(u.EditorText,{id:"cp-red",key:"cp-red",ref:"cp-red",type:"number",min:0,max:255,editValue:this.state.r?this.state.r.toString():"",editable:!0,location:null,classes:"cp-editor",captionHtml:this.red_caption+":",isMobile:!1,noKeyNavigator:!0,isMultiline:!1,isClearable:!1,eipMode:!1,onIconClick:function(){return null},onEditValueChanged:function(t){return n.onInputChange(t)}}),r.a.createElement(u.EditorText,{id:"cp-green",key:"cp-green",ref:"cp-green",type:"number",min:0,max:255,editValue:this.state.g?this.state.g.toString():"",editable:!0,location:null,classes:"cp-editor",captionHtml:this.green_caption+":",isMobile:!1,noKeyNavigator:!0,isMultiline:!1,isClearable:!1,eipMode:!1,onIconClick:function(){return null},onEditValueChanged:function(t){return n.onInputChange(t)}}),r.a.createElement(u.EditorText,{id:"cp-niebieski",key:"cp-blue",ref:"cp-blue",type:"number",min:0,max:255,editValue:this.state.b?this.state.b.toString():"",editable:!0,location:null,classes:"cp-editor",captionHtml:this.blue_caption+":",isMobile:!1,noKeyNavigator:!0,isMultiline:!1,isClearable:!1,eipMode:!1,onIconClick:function(){return null},onEditValueChanged:function(t){return n.onInputChange(t)}}),r.a.createElement(u.EditorText,{id:"cp-tcolor",key:"cp-tcol",ref:"cp-tcolor",type:"text",editValue:this.state.hexColor,editable:!0,location:null,classes:"cp-editor",captionHtml:this.color_caption+":",isMobile:!1,noKeyNavigator:!0,isMultiline:!1,isClearable:!1,eipMode:!1,onIconClick:function(){return null},onEditValueChanged:function(t){return n.onColorInputChange(t)}})),r.a.createElement("div",{className:"cp-m-right"},r.a.createElement("div",{ref:"cpbox",className:"cp-m-box",onClick:function(t){return n.onDPBoxClick(t)}})))))},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,s=i(1),u=i.n(s),h=i(3),e=i.n(h),r=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},l=function(n){function t(t){var i=n.call(this,t)||this;return i.keyNavigator=new r.ButtonKeyNavigator(i),i}return c(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.keyNavigator&&this.keyNavigator.onComponentDidMount()},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.keyNavigator&&this.keyNavigator.onComponentWillUnmount()},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},Object.defineProperty(t,"defaultSvgContent",{get:function(){return'<svg viewBox="0 0 160 160"><path d="M 79.999998,2.15162 C 36.943999,2.15162 2,37.061657 2,80.075809 2,123.08996 36.943999,158 79.999998,158 123.056,158 158,123.08996 158,80.075809 158,37.061657 123.056,2.15162 79.999998,2.15162 z m 7.8,116.88628 h -15.6 v -15.58483 h 15.6 v 15.58483 z m 0,-31.169672 h -15.6 V 41.113715 h 15.6 v 46.754513 z" /><\/svg>'},enumerable:!1,configurable:!0}),t.getControlType=function(n){return"RemainderCommand"!==n.Name||n.IsMobile||n.IsMobileApp?t.isCommandAttachedToField(n)?r.CommandAttachTo:t.isListButton(n)?r.CommandList:t.isPremiumDashboard(n)?t.isDashboardGroupItem(n)?r.CommandGroupItem:t.isPremiumMainCommand(n)?n.IsMobile?r.TileDashboardMobile:n.hasClass("LargeSize")?r.TileItemLarge:r.TileItemPremium:n.IsMobile?r.CommandDashboardMobile:r.CommandDashboard:t.isStandardDashbord(n)&&t.isDashboardGroupItem(n)?r.CommandGroupItem:r.Command:r.CommandReminder},t.isCommandAttachedToField=function(n){for(var i,r=n.Parent,t=0;t<r.Elements.length;t++)if(i=r.Elements[t],"Field"===i.ElementType&&i.TagInfo&&i.TagInfo==="AttachTo:"+n.Name)return!0;return!1},t.isPremiumDashboard=function(n){return!r.GlobalSettings.Instance.IsStandardProduct&&n&&n.Parent&&n.Parent.Class&&n.Parent.Class.indexOf("DashboardItem")>=0},t.isStandardDashbord=function(n){return r.GlobalSettings.Instance.IsStandardProduct&&n&&n.Parent&&n.Parent.Class&&n.Parent.Class.indexOf("DashboardItem")>=0},t.isDashboardGroupItem=function(n){return n.hasClass("GroupItem")},t.isPremiumMainCommand=function(n){return n.hasClass("MainCommand")},t.isListButton=function(n){return n.Elements.length>0},t.prototype.calculateColors=function(){this.bgColor="rgb(47, 168, 108)";this.fgColor="#ffffff";this.AppearanceInfo&&(this.AppearanceInfo.BackColor&&(this.bgColor=this.AppearanceInfo.BackColor),this.AppearanceInfo.ForeColor&&(this.fgColor=this.AppearanceInfo.ForeColor))},t.prototype.focus=function(){this.domElement&&this.domElement.classList.add("hover")},t.prototype.blur=function(){this.domElement&&this.domElement.classList.remove("hover")},t.prototype.onClick=function(){this.props.dataElement.Editable&&this.props.dataElement.postClick("")},t.prototype.initEventListeners=function(){this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"focus",handler:this.focus.bind(this)},{domElement:this.domElement,type:"blur",handler:this.blur.bind(this)}])},Object.defineProperty(t.prototype,"id",{get:function(){return r.StorageHelper.GetDebug()&&this.props.dataElement?this.props.dataElement.Name:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShortCommand",{get:function(){return!this.props.dataElement.CaptionHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isGroupItem",{get:function(){return this.props.dataElement&&this.props.dataElement.hasClass("GroupItem")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentName",{get:function(){return this.props.dataElement&&null!==this.props.dataElement.Parent?this.props.dataElement.Parent.Name:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){var n="command"+("FloatingBar"===this.parentName?" command-circle":"");return(this.IsMobile&&!this.isGroupItem||!this.IsMobile)&&this.props.dataElement.Class&&(n+=" "+this.props.dataElement.Class.toLowerCase()),this.props.dataElement.Editable||(n+=" disabled"),n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconclasses",{get:function(){return e()({icon:!0,active:this.props.dataElement.Editable,disabled:!this.props.dataElement.Editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleclasses",{get:function(){return e()({title:!0,left:!this.isGroupItem&&""!==this.props.dataElement.Icon&&void 0!==this.props.dataElement.Icon,center:this.isGroupItem||""===this.props.dataElement.Icon||void 0===this.props.dataElement.Icon,disabled:!this.props.dataElement.Editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commandElement",{get:function(){var n={name:this.props.dataElement.Icon?this.props.dataElement.Icon.toLowerCase():"",classes:this.iconclasses,enabled:this.props.dataElement.Editable,fillColor:this.AppearanceInfo&&this.AppearanceInfo.ForeColor?this.AppearanceInfo.ForeColor:null},i=null;return this.props.dataElement.Icon&&(r.StorageHelper.GetTestEnvironment()&&(n.content=t.defaultSvgContent),i=u.a.createElement(r.SvgIcon,o({},n))),i},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleElement",{get:function(){var t=this.props.dataElement.CaptionHtml,n;return"RemainderCommand"===this.props.dataElement.Name&&r.WindowManager.Instance.RemindersCount>0&&(t+=" ("+r.WindowManager.Instance.RemindersCount+")"),n=null,this.AppearanceInfo&&this.AppearanceInfo.ForeColor&&(n={color:this.AppearanceInfo.ForeColor}),this.props.dataElement.CaptionHtml?u.a.createElement("div",{className:this.titleclasses,style:n,dangerouslySetInnerHTML:{__html:t}}):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commandDescription",{get:function(){return this.props.dataElement.DescriptionHtml?u.a.createElement("div",{className:"desc",dangerouslySetInnerHTML:{__html:this.props.dataElement.DescriptionHtml}}):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dashboardMoreIcon",{get:function(){return u.a.createElement("div",{className:"more-icon-container"},u.a.createElement(r.SvgIcon,{classes:"more-icon",fillColor:this.fgColor,name:"details",content:r.ProfileMenu.icon,style:{backgroundColor:this.bgColor}}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.dataElement&&this.props.dataElement.Name?this.props.dataElement.Name:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagInfo",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AppearanceInfo",{get:function(){return this.props.dataElement.AppearancePalette&&(this.appearanceInfo=this.props.dataElement.AppearancePalette.getAppearanceElement()),this.appearanceInfo},enumerable:!1,configurable:!0}),t.prototype.prepareStyle=function(){n.prototype.prepareStyle.call(this);this.AppearanceInfo&&this.AppearanceInfo.BackColor&&(this.style.backgroundColor=this.AppearanceInfo.BackColor.toLowerCase())},t.prototype.createContent=function(){return u.a.createElement("div",{className:"content"},this.commandElement,this.titleElement)},t.prototype.renderMobile=function(){return u.a.createElement(r.ClickableElement,{key:"clicableement_"+this.props.dataElement.Name,parent:this})},t.prototype.renderBrowser=function(){var n=this;return this.prepareStyle(),u.a.createElement("div",{id:this.name,className:this.classnames,style:this.style,"data-tag":this.tagInfo,onClick:function(t){return n.onClick(t)}},this.createContent(),this.commandDescription)},t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var f,e=i(1),r=i.n(e),o=i(4),s=i.n(o),h=i(3),c=i.n(h),u=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){var i=n.call(this,t)||this;return i.props.isMobile||(i.keyNavigator=new u.ButtonKeyNavigator(i)),i}return l(t,n),t.prototype.componentDidMount=function(){this.keyNavigator&&this.keyNavigator.onComponentDidMount();s.a.findDOMNode(this).setAttribute("tabindex","-1")},t.prototype.componentWillUnmount=function(){this.keyNavigator&&this.keyNavigator.onComponentWillUnmount()},t.prototype.onClick=function(n){this.props.onClick&&this.props.onClick(n)},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},Object.defineProperty(t.prototype,"id",{get:function(){return this.props.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){var n={};return this.props.className?n[this.props.className]=!0:n.button=!0,n.waiting=this.props.isWaiting,c()(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return this.props.iconName?r.a.createElement(u.SvgIcon,{classes:"icon",name:this.props.iconName}):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return r.a.createElement("div",{className:"title"},this.props.caption)},enumerable:!1,configurable:!0}),t.prototype.createContent=function(){return this.props.isWaiting?r.a.createElement(r.a.Fragment,null,this.icon,r.a.createElement(u.Spinner,null)):r.a.createElement(r.a.Fragment,null,this.icon,this.title)},t.prototype.createContentBrowser=function(){var n=this;return this.props.isWaiting?r.a.createElement("div",{id:this.props.id,className:this.classnames},this.icon,r.a.createElement(u.Spinner,null)):r.a.createElement("div",{id:this.props.id,className:this.classnames,onClick:function(t){return n.onClick(t)}},this.icon,this.title)},t.prototype.renderMobile=function(){return r.a.createElement(u.ClickableElement,{parent:this})},t.prototype.renderBrowser=function(){return this.createContentBrowser()},t.prototype.render=function(){return this.props.isMobile?this.renderMobile():this.renderBrowser()},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.state={cursorPos:new f.CursorPos},i}return o(t,n),t.prototype.onClick=function(n){this.props.parent.onClick&&this.props.parent.onClick(n)},t.prototype.handleClick=function(n){if(null==this.props.parent.readOnly||!this.props.parent.readOnly){var t=new f.CursorPos(n.clientY,n.clientX);this.setState({cursorPos:t})}},t.prototype.render=function(){var n=this;return u.a.createElement("div",{id:this.props.parent.id,className:this.props.parent.classnames,onClick:function(t){return n.onClick(t)},onMouseUp:function(t){return n.handleClick(t)},style:this.props.style},this.props.parent.createContent(),u.a.createElement(f.Ripple,{key:"ripple_"+this.props.parent.id,cursorPos:this.state.cursorPos}))},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.createContent=function(){return u.a.createElement("div",{className:"content"},this.commandElement,this.titleElement)},t.prototype.renderMobile=function(){return u.a.createElement(f.ClickableElement,{parent:this})},t.prototype.renderBrowser=function(){var n=this;return this.prepareStyle(),u.a.createElement("div",{id:this.name,className:this.classnames,style:this.style,"data-tag":this.tagInfo,onClick:function(t){return n.onClick(t)}},this.createContent(),this.commandDescription)},t}(f.CommandBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.setAttachedInput()},t.prototype.setAttachedInput=function(){this.inputAttachedTo=document.querySelector("[data-id='"+this.props.dataElement.Name+"']")},t.prototype.onClick=function(n){n.preventDefault();n.stopPropagation();this.inputAttachedTo&&this.inputAttachedTo.click()},t}(u.CommandBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(4),u=i.n(f),e=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.mouseEnterHandler=i.mouseEnterListener.bind(i),i.mouseLeaveHandler=i.mouseLeaveListener.bind(i),i.mouseDescEnterHandler=i.mouseDescEnterListener.bind(i),i.mouseDescLeaveHandler=i.mouseDescLeaveListener.bind(i),i}return o(t,n),t.prototype.shouldComponentUpdate=function(n,t){return t.hoverBg!==this.state.hoverBg||t.hoverDesc!==this.state.hoverDesc||t.version!==this.state.version},t.prototype.componentDidUpdate=function(t,i,r){n.prototype.componentDidUpdate.call(this,t,i,r);this.reAttachEventListeners()},Object.defineProperty(t.prototype,"domTitle",{get:function(){return u.a.findDOMNode(this.refs.title)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"domMore",{get:function(){return u.a.findDOMNode(this.refs.details)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"domDesc",{get:function(){return u.a.findDOMNode(this.refs.desc)},enumerable:!1,configurable:!0}),t.prototype.mouseEnterListener=function(){this.setState({hoverBg:!0})},t.prototype.mouseLeaveListener=function(){this.setState({hoverBg:!1,hoverDesc:!1})},t.prototype.mouseDescEnterListener=function(){this.setState({hoverDesc:!0})},t.prototype.mouseDescLeaveListener=function(){this.setState({hoverDesc:!1})},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.IsMobile||(this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"mouseenter",handler:this.mouseEnterHandler},{domElement:this.domElement,type:"mouseleave",handler:this.mouseLeaveHandler},{domElement:this.domElement,type:"focus",handler:this.focus.bind(this)},{domElement:this.domElement,type:"blur",handler:this.blur.bind(this)}]),this.mouseDescEnterHandler&&this.eventRegistrar.registerEventListeners([{domElement:this.domDesc,type:"mouseenter",handler:this.mouseDescEnterHandler},{domElement:this.domMore,type:"mouseenter",handler:this.mouseDescEnterHandler},{domElement:this.domDesc,type:"mouseleave",handler:this.mouseDescLeaveHandler}]))},t}(e.CommandBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var e,s=i(1),u=i.n(s),h=i(3),f=i.n(h),r=i(0),c=(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},l=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return c(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.titleEl=this.refs.title;this.contentEl=this.refs.content;this.calculateTitleParams();this.calclulateMaxTitleHeight();var i=this.refs.span,t=i?i.getBoundingClientRect():null;t&&(t.height>this.contentHeight&&(this.titleEl.style.justifyContent="flex-start",this.titleEl.style.fontSize="9pt"),t.width>this.titleWidth&&(this.titleEl.style.fontSize="9pt"))},t.prototype.calculateTitleParams=function(){if(!(this.titleEl&&this.titleWidth&&this.titleHeight)){var n=this.titleEl?this.titleEl.getBoundingClientRect():null;n&&(this.titleWidth=n.width,this.titleHeight=n.height)}},t.prototype.calclulateMaxTitleHeight=function(){this.contentHeight||(this.contentHeight=this.contentEl?this.contentEl.getBoundingClientRect().height:null)},Object.defineProperty(t.prototype,"contentclasses",{get:function(){return f()({content:!0})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleclasses",{get:function(){return f()({title:!0,left:this.props.dataElement&&""!==this.props.dataElement.Icon})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return f()({"command-dashboard":!0,small:this.isTileSizeSmall,medium:this.isTileSizeMedium,large:this.isTileSizeLarge})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconclasses",{get:function(){return f()({icon:!0,active:this.props.dataElement&&this.props.dataElement.Editable,disabled:this.props.dataElement&&!this.props.dataElement.Editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"descclasses",{get:function(){return f()({desc:!0,"flip-in-hor-bottom":this.state.hoverDesc})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FgColor",{get:function(){return this.fgColor},enumerable:!1,configurable:!0}),t.prototype.calculateColors=function(){this.bgColor="rgb(47, 168, 108)";this.fgColor="#ffffff";this.AppearanceInfo&&(this.AppearanceInfo.BackColor&&(this.bgColor=this.AppearanceInfo.BackColor.toLowerCase()),this.AppearanceInfo.ForeColor&&(this.fgColor=this.AppearanceInfo.ForeColor.toLowerCase()));this.boxShadowHover="0 5px 20px 0px "+this.bgColor;this.boxShadowNormal="0 1px 5px 0 "+this.bgColor;this.borderNormal="2px solid "+this.bgColor;this.borderHover="2px solid #fff";r.GlobalSettings.Instance.IsStandardProduct||"TrivaDark"!==r.CookieHelper.GetTheme()||(this.borderHover="2px solid #2d2f52")},t.prototype.prepareStyle=function(){n.prototype.prepareStyle.call(this);this.calculateColors();this.style.color=this.FgColor;this.style.backgroundColor=this.bgColor;this.isTileSizeSmall||(this.style.border=this.state.hoverBg?this.borderHover:this.borderNormal)},Object.defineProperty(t.prototype,"isTileSizeSmall",{get:function(){return this.props.dataElement&&this.props.dataElement.Location&&this.props.dataElement.Location.Height<=r.GridPatternHelper.dashboardGridSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTileSizeMedium",{get:function(){return this.props.dataElement&&this.props.dataElement.Location&&this.props.dataElement.Location.Height===2*r.GridPatternHelper.dashboardGridSize+r.GridPatternHelper.dashboardGridMargin},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTileSizeLarge",{get:function(){return this.props.dataElement&&this.props.dataElement.Location&&this.props.dataElement.Location.Height>2*r.GridPatternHelper.dashboardGridSize+r.GridPatternHelper.dashboardGridMargin},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commandElement",{get:function(){var n={name:this.props.dataElement.Icon?this.props.dataElement.Icon.toLowerCase():"",classes:this.iconclasses,enabled:this.props.dataElement.Editable,fillColor:this.FgColor},t=null;return this.props.dataElement.Icon&&(r.StorageHelper.GetTestEnvironment()&&(n.content=r.CommandBase.defaultSvgContent),t=u.a.createElement(r.SvgIcon,o({},n))),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleElement",{get:function(){var n={color:this.FgColor};return this.props.dataElement&&this.props.dataElement.CaptionHtml?u.a.createElement("div",{ref:"title",className:this.titleclasses,style:n,dangerouslySetInnerHTML:{__html:this.props.dataElement.CaptionHtml}}):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"spanWidth",{get:function(){return this.isTileSizeLarge?"calc(100% - 40px - 15px)":this.isTileSizeMedium?"calc(100% - 24px - 12px)":"calc(100% - 26px - 5px)"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"invisibleSpan",{get:function(){return u.a.createElement("span",{ref:"span",className:this.titleclasses,style:{position:"absolute",visibility:"hidden",width:this.spanWidth,height:"auto"}},this.props.dataElement.CaptionHtml)},enumerable:!1,configurable:!0}),t.prototype.createContent=function(){if(this.state.hoverDesc)return null;var n={height:this.isTileSizeSmall||!this.isDescription()?"inherit":this.isTileSizeMedium?"58px":""};return u.a.createElement("div",{ref:"content",className:this.contentclasses,style:n},this.commandElement,this.titleElement,this.invisibleSpan)},t.prototype.isDescription=function(){return!(!this.props.dataElement||!this.props.dataElement.DescriptionHtml)},t.prototype.createDescription=function(){var t,i,n,f;return this.isTileSizeSmall||!this.isDescription()?null:this.isTileSizeLarge&&this.isDescFit(this.props.dataElement.DescriptionHtml)?(t={color:this.FgColor},u.a.createElement("div",{className:"desc empty",style:t,dangerouslySetInnerHTML:{__html:this.props.dataElement.DescriptionHtml}})):(i=this.state.hoverDesc?this.props.dataElement.DescriptionHtml:r.LanguageConstants.RESOURCES.Str_More,n={color:this.FgColor,height:this.state.hoverDesc?"inherit":"28px",justifyContent:(this.state.hoverDesc,"center"),alignContent:this.state.hoverDesc?"center":"flex-start",textAlign:this.state.hoverDesc?"center":"normal"},this.state.hoverDesc)?u.a.createElement("div",{ref:"desc",className:this.descclasses,style:n,dangerouslySetInnerHTML:{__html:this.props.dataElement.DescriptionHtml}}):(f={color:this.FgColor,width:"inherit"},u.a.createElement("div",{className:this.descclasses,style:n},u.a.createElement("div",{ref:"desc",className:"title",style:f,dangerouslySetInnerHTML:{__html:i.toLowerCase()}})))},t.prototype.isDescFit=function(n){var i,t=document.createElement("div"),r=this.props.dataElement.Location.Height-94,u=this.props.dataElement.Location.Width-4;return t.setAttribute("id","tmpDesc"),t.setAttribute("style","padding: 6px 10px; position: absolute; top: 0; left: 0; width: "+u+"px; font-size: 9pt; line-height: 12pt; visibility: hidden;"),t.innerHTML=n,document.body.appendChild(t),i=document.getElementById("tmpDesc").getBoundingClientRect().height,document.getElementById("tmpDesc").remove(),i<=r},t.prototype.renderMobile=function(){return u.a.createElement(r.ClickableElement,{parent:this})},t.prototype.renderBrowser=function(){var t=this,n;return this.prepareStyle(),n=this.props.dataElement&&this.props.dataElement.Name?this.props.dataElement.Name:null,u.a.createElement("div",{id:n,className:this.classnames,style:this.style,onClick:function(n){return t.onClick(n)}},this.createContent(),this.createDescription())},t}(r.CommandDashboardBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"classnames",{get:function(){return"command-dashboard-mobile"+(this.props.dataElement.Editable?"":" disabled")},enumerable:!1,configurable:!0}),t.prototype.prepareStyle=function(){this.calculateColors();this.style={backgroundColor:this.bgColor,color:this.fgColor}},t.prototype.createContent=function(){return u.a.createElement("div",{className:"content"},this.commandElement,this.titleElement,this.dashboardMoreIcon)},t.prototype.renderMobile=function(){return this.prepareStyle(),u.a.createElement(f.ClickableElement,{parent:this,style:this.style})},t}(f.CommandBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),Object.defineProperty(t.prototype,"classnames",{get:function(){var n="command command-circle";return this.props.dataElement.Class&&(n+=" "+this.props.dataElement.Class.toLowerCase()),n},enumerable:!1,configurable:!0}),t}(u.Command)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var u,e=i(1),o=i.n(e),r=i(0),s=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),f=function(){return(f=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){return n.call(this,t)||this}return s(t,n),Object.defineProperty(t.prototype,"commandElement",{get:function(){var n={key:"".CreateReactKey(),name:"more",classes:this.iconclasses,enabled:!0};return r.StorageHelper.GetTestEnvironment()&&(n.content=r.CommandBase.defaultSvgContent),o.a.createElement(r.SvgIcon,f({},n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return"groupitem"},enumerable:!1,configurable:!0}),t.prototype.prepareStyle=function(){},t}(r.CommandBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,s=i(1),r=i.n(s),h=i(4),o=i.n(h),u=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},l=function(n){function t(t){var i=n.call(this,t)||this;return i.popupHelper=new u.PopupHelper,i.isSplitCommand=t.dataElement.hasClass("SplitCommand"),i.isListGrouped=t.dataElement.Elements&&t.dataElement.Elements[0]&&"Group"===t.dataElement.Elements[0].ElementType,i.isDashboardCommand=!u.GlobalSettings.Instance.IsStandardProduct&&i.props.dataElement&&i.props.dataElement.Parent&&i.props.dataElement.Parent.Class&&i.props.dataElement.Parent.Class.indexOf("DashboardItem")>=0,i.AppearanceInfo&&i.calculateColors(),i.state={activeMenu:!1},i}return c(t,n),t.prototype.componentDidMount=function(){this.popupHelper.initializeByDataElement(this.props.dataElement);this.elements=this.popupHelper.Elements},t.prototype.onClick=function(n){var t=n.target;t&&t.classList&&(t.classList.contains("popup-window-overlay")||t.classList.contains("navigation-bar"))||(this.IsMobile||this.IsMobileApp?this.openMenu(n):this.state.activeMenu||this.isSplitCommand?!this.state.activeMenu&&this.isSplitCommand&&this.props.dataElement.Editable&&this.props.dataElement.postClick(""):this.openMenu(n))},t.prototype.openMenu=function(n){n.stopPropagation();n.preventDefault();this.state.activeMenu||this.setState({activeMenu:!0})},t.prototype.closeMenu=function(){this.setState({activeMenu:!1})},t.prototype.close=function(n){n.stopPropagation();n.preventDefault();this.state.activeMenu&&this.closeMenu()},t.prototype.optionClickCallback=function(n){n&&n.postClick("");this.closeMenu()},t.prototype.createPopupBrowserContent=function(){var t=this,n,i;return this.isListGrouped?r.a.createElement("div",{className:"popup-window",style:this.popupHelper.getCordsStyle()},r.a.createElement(u.NavigationMenu,{key:"navmenu",ref:"navmenu",type:"Folder",isPopup:!0,onCloseMenu:function(n){return t.close(n)},maxHeight:this.popupHelper.maxAdvanceHeight,groups:this.elements,onNavItemClickCallback:function(){return t.closeMenu()}}),";"):(n=this.popupHelper.getCords(),i={name:this.props.dataElement.Name+"_scroll",isFolderMenu:!1,postion:"fixed",top:n.top,left:n.left,width:n.width,maxHeight:n.maxHeight,zIndex:this.popupHelper.CalculatedZIndex+1},r.a.createElement(u.Scroll,e({className:"popup-window",ref:"scroll"},i),r.a.createElement(u.SimpleMenu,{isMobile:this.props.dataElement.IsMobile,items:this.elements,closePopup:function(n){return t.close(n)},onClickCallback:function(n){return t.optionClickCallback(n)}})))},t.prototype.createPopupMobileContent=function(){var t=this,i,f,n,e;return this.isListGrouped?(i=u.FactorySlideMenuSource.createPopupMenu(this.props.dataElement.Elements),f=this.isSplitCommand?this.props.dataElement.CaptionHtml:this.props.dataElement.Elements[0].CaptionHtml,this.isSplitCommand&&i.unshift(u.FactorySlideMenuSource.createSingleGroupWithItem(this.props.dataElement)),r.a.createElement("div",{onClick:function(){return t.closeMenu()},className:"popup"},r.a.createElement("div",{className:"navigation-bar"},r.a.createElement("div",{className:"menu-content"},r.a.createElement(u.SlideMenu,{selectedPage:f,anchor:u.AnchorPosition.Right,toggleMenu:function(){return t.closeMenu()},pages:i}))))):(n=this.props.dataElement.Elements.filter(function(n){return"Command"===n.ElementType}).map(function(n){return r.a.createElement(u.CommandPopup,{key:n.Name,dataElement:n})},this),n.length<=0)?null:(e=this.popupHelper.tightMenuCordsStyle(n.length),r.a.createElement("div",{onClick:function(n){return t.close(n)},className:"popup"},r.a.createElement("div",{ref:"tight-menu",className:"popup-tight-menu",style:e},r.a.createElement("div",{className:"group-menu-commands"},n))))},Object.defineProperty(t.prototype,"isSmall",{get:function(){return this.props.dataElement&&this.props.dataElement.Location&&this.props.dataElement.Location.Height<=u.GridPatternHelper.dashboardGridSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMedium",{get:function(){return this.props.dataElement&&this.props.dataElement.Location&&this.props.dataElement.Location.Height===2*u.GridPatternHelper.dashboardGridSize+u.GridPatternHelper.dashboardGridMargin},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLarge",{get:function(){return this.props.dataElement&&this.props.dataElement.Location&&this.props.dataElement.Location.Height>2*u.GridPatternHelper.dashboardGridSize+u.GridPatternHelper.dashboardGridMargin},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){var n="command commandlist"+("FloatingBar"===this.parentName?" command-circle":"");return(this.IsMobile&&!this.isGroupItem||!this.IsMobile)&&this.props.dataElement.Class&&(n+=" "+this.props.dataElement.Class.toLowerCase()),this.isDashboardCommand&&this.IsMobile&&(n+=" command-dashboard-mobile"),this.isDashboardCommand&&!this.IsMobile&&(this.isSmall&&(n+=" small"),this.isMedium&&(n+=" medium"),this.isLarge&&(n+=" large")),this.props.dataElement.Editable||(n+=" disabled"),n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commandElement",{get:function(){if(!this.props.dataElement.Icon)return null;var n={name:this.props.dataElement.Icon?this.props.dataElement.Icon.toLowerCase():"",classes:this.iconclasses,enabled:this.props.dataElement.Editable,fillColor:this.AppearanceInfo&&this.AppearanceInfo.ForeColor?this.AppearanceInfo.ForeColor:null,content:u.StorageHelper.GetTestEnvironment()?u.CommandBase.defaultSvgContent:null};return r.a.createElement(u.SvgIcon,e({},n))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleElement",{get:function(){var t=this.props.dataElement.CaptionHtml,n,i;return"RemainderCommand"===this.props.dataElement.Name&&u.WindowManager.Instance.RemindersCount>0&&(t+=" ("+u.WindowManager.Instance.RemindersCount+")"),n=null,this.IsMobile&&(n=this.props.dataElement.Icon?"calc(100% - 36px - 48px)":"calc(100% - 48px)"),i={color:this.AppearanceInfo&&this.AppearanceInfo.ForeColor?this.AppearanceInfo.ForeColor:null,width:n},this.props.dataElement.CaptionHtml?r.a.createElement("div",{className:this.titleclasses,style:i,dangerouslySetInnerHTML:{__html:t}}):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dashboardMoreIcon",{get:function(){return r.a.createElement("div",{className:"more-icon-container"},r.a.createElement(u.SvgIcon,{name:"details",classes:"more-icon",fillColor:this.fgColor,style:{backgroundColor:this.isDashboardCommand?"rgba(102, 102, 102, 0.25)":null},content:u.ProfileMenu.icon}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expandMenuButton",{get:function(){var n=this;return this.isSplitCommand||this.isDashboardCommand?this.isDashboardCommand?r.a.createElement("div",{className:"more-icon-container"},r.a.createElement(u.SvgIcon,{name:"rozwin2",classes:"s-icon more-icon",fillColor:this.fgColor,content:u.ProfileMenu.icon,style:{backgroundColor:this.isSplitCommand?"rgba(102, 102, 102, 0.25)":null},onClick:function(t){return n.isSplitCommand?n.openMenu(t):null}})):r.a.createElement(u.SvgIcon,{name:"rozwin2",classes:"s-icon",onClick:function(t){return n.openMenu(t)}}):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"browserMenu",{get:function(){var n=this;return this.state.activeMenu?(this.elements||(this.elements=u.FactoryNavigationMenuSource.createPopupMenu(this.props.dataElement.Elements)),this.elements?r.a.createElement(r.a.Fragment,null,o.a.createPortal(r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"popup-window-overlay",style:{position:"fixed",zIndex:this.popupHelper.CalculatedZIndex},onClick:function(t){return n.popupHelper.IsSimpleMenu?n.close(t):null}}),this.createPopupBrowserContent()),document.body)):null):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mobileMenu",{get:function(){return this.state.activeMenu?r.a.createElement(r.a.Fragment,null,o.a.createPortal(this.createPopupMobileContent(),document.getElementById("container"))):null},enumerable:!1,configurable:!0}),t.prototype.prepareMobileDashboardStyle=function(){this.isDashboardCommand&&(this.style={backgroundColor:this.bgColor?this.bgColor:"rgb(47, 168, 108)",color:this.fgColor?this.fgColor:"rgb(255, 255, 255)"})},t.prototype.prepareStyle=function(){n.prototype.prepareStyle.call(this);this.AppearanceInfo&&this.AppearanceInfo.BackColor?this.style.backgroundColor=this.AppearanceInfo.BackColor.toLowerCase():this.isDashboardCommand&&(this.style.backgroundColor="rgb(47, 168, 108)")},t.prototype.createContent=function(){return r.a.createElement("div",{className:"content"},this.commandElement,this.titleElement,this.dashboardMoreIcon,this.mobileMenu)},t.prototype.renderMobile=function(){return this.isDashboardCommand&&this.prepareMobileDashboardStyle(),r.a.createElement(u.ClickableElement,{parent:this,style:this.style})},t.prototype.renderBrowser=function(){var n=this;return this.prepareStyle(),r.a.createElement("div",{ref:"btn",id:this.name,className:this.classnames,style:this.style,"data-tag":this.tagInfo,onClick:function(t){return n.onClick(t)}},r.a.createElement("div",{className:"content"},this.commandElement,this.titleElement,this.expandMenuButton,this.browserMenu))},t}(u.CommandBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.onClick=function(){this.props.dataElement.postClick("")},Object.defineProperty(t.prototype,"classnames",{get:function(){var n="command-modal";return this.props.dataElement.Class&&(n+=" "+this.props.dataElement.Class.toLowerCase()),n},enumerable:!1,configurable:!0}),t.prototype.createContent=function(){var n=this.props.dataElement.CaptionHtml?u.a.createElement("div",{className:"title",dangerouslySetInnerHTML:{__html:this.props.dataElement.CaptionHtml}}):null;return u.a.createElement("div",{className:"content"},n)},t.prototype.renderMobile=function(){return u.a.createElement(f.ClickableElement,{parent:this})},t}(f.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var f,o=i(1),r=i.n(o),u=i(0),e=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=(function(n){function t(){return null!==n&&n.apply(this,arguments)||this}e(t,n);t.prototype.createContent=function(){return r.a.createElement("div",{style:{height:"100%"}},r.a.createElement(u.SvgIcon,{name:this.props.dataElement.Icon,classes:this.iconclasses,enabled:this.props.dataElement.Editable}))}}(u.Command),function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e(t,n),Object.defineProperty(t.prototype,"classnames",{get:function(){var n="logout-command command";return(this.IsMobile&&!this.isGroupItem||!this.IsMobile)&&this.props.dataElement.Class&&(n+=" "+this.props.dataElement.Class.toLowerCase()),this.props.dataElement.Editable||(n+=" disabled"),n},enumerable:!1,configurable:!0}),t.prototype.createContent=function(){return r.a.createElement("div",{style:{height:"100%"}},r.a.createElement(u.SvgIcon,{name:this.props.dataElement.Icon,classes:this.iconclasses,enabled:this.props.dataElement.Editable}))},t}(u.Command))},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var f,e=i(1),r=i.n(e),u=i(0),o=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.onClick=function(){this.props.dataElement.postClick("")},Object.defineProperty(t.prototype,"classnames",{get:function(){var n="command command-modal";return this.props.dataElement.Class&&(n+=" "+this.props.dataElement.Class.toLowerCase()),n},enumerable:!1,configurable:!0}),t.prototype.createContent=function(){var n=this.props.dataElement.CaptionHtml?r.a.createElement("div",{className:"title",dangerouslySetInnerHTML:{__html:this.props.dataElement.CaptionHtml}}):null,t=this.props.dataElement.Icon?r.a.createElement(u.SvgIcon,{name:this.props.dataElement.Icon,classes:"icon"}):null;return r.a.createElement("div",{className:"content"},t,n)},t.prototype.renderMobile=function(){return r.a.createElement(u.ClickableElement,{parent:this})},t.prototype.renderBrowser=function(){return r.a.createElement(u.ClickableElement,{parent:this})},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),r=i.n(e),f=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"commandElement",{get:function(){var n=f.WindowManager.Instance.RemindersCount;return r.a.createElement("div",{className:"bell-con"},r.a.createElement(f.SvgIcon,{name:this.props.dataElement.Icon,classes:"icon",enabled:!0}),n>0?r.a.createElement("div",{className:"notification"},n>9?"9+":n):null)},enumerable:!1,configurable:!0}),t.prototype.createContent=function(){return r.a.createElement("div",{className:"content"},this.commandElement)},t}(f.CommandBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.state={version:i.state.version},i}return o(t,n),Object.defineProperty(t.prototype,"classnames",{get:function(){var n="command";return this.props.dataElement.Class&&(n+=" "+this.props.dataElement.Class.toLowerCase()),n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return!this.props.dataElement.CaptionHtml&&this.props.dataElement.IsMobile?null:u.a.createElement("div",{className:"title",dangerouslySetInnerHTML:{__html:this.props.dataElement.CaptionHtml}})},enumerable:!1,configurable:!0}),t.prototype.onClick=function(t){if(this.props.dataElement.IsGroupsCommand||this.props.dataElement.IsPageCommand){if(void 0!==this.props.onClick){var i=new f.CommandClickEventArgs(this.props.dataElement.Name);this.props.onClick(i)}}else n.prototype.onClick.call(this,t)},t.prototype.createContent=function(){return u.a.createElement("div",{className:"content"},u.a.createElement(f.SvgIcon,{name:this.props.dataElement.Icon,classes:"icon"}),this.title)},t}(f.Command)},function(n,t,i){"use strict";i.d(t,"a",function(){return v});var u,s=i(1),f=i.n(s),h=i(4),c=i.n(h),l=i(3),e=i.n(l),r=i(0),a=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},v=function(n){function t(t){var i=n.call(this,t)||this;return i.keyboardNavigator=new r.CommandToggleKeyNavigator(i),i.state={toggleOn:i.props.toggleClient},i}return a(t,n),t.prototype.componentDidMount=function(){this.domElement=c.a.findDOMNode(this);this.rect=this.domElement.getBoundingClientRect();this.initEventListeners();this.attachEventListeners();this.keyboardNavigator.onComponentDidMount()},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.keyboardNavigator.onComponentWillUnmount()},Object.defineProperty(t.prototype,"classnames",{get:function(){var n={};return this.props.className&&(n[this.props.className]=!0),n.on=this.props.toggleClient&&this.state.toggleOn,e()(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconclasses",{get:function(){return e()({icon:!0})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commandElement",{get:function(){if(!this.props.icon)return null;var n={name:this.props.icon,classes:this.iconclasses};return r.StorageHelper.GetTestEnvironment()&&(n.content=r.CommandBase.defaultSvgContent),f.a.createElement(r.SvgIcon,o({},n))},enumerable:!1,configurable:!0}),t.prototype.onClick=function(n){this.props.onClick&&(this.props.toggleClient&&this.setState({toggleOn:!this.state.toggleOn}),this.props.onClick(n))},t.prototype.keyDownListener=function(n){this.keyboardNavigator&&this.keyboardNavigator.keyDownListener(n)},t.prototype.focus=function(){this.domElement&&this.domElement.classList.add("hover")},t.prototype.blur=function(){this.domElement&&this.domElement.classList.remove("hover")},t.prototype.initEventListeners=function(){this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"focus",handler:this.focus.bind(this)},{domElement:this.domElement,type:"blur",handler:this.blur.bind(this)}])},t.prototype.renderBrowser=function(){var n=this;return f.a.createElement("div",{id:this.props.name,className:this.classnames,onClick:function(t){return n.onClick(t)}},this.commandElement)},t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t}(u.Command)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});i.d(t,"b",function(){return s});var r,f=i(1),u=i.n(f),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n,t){void 0===n&&(n=0);void 0===t&&(t=0);this.top=n;this.left=t;this.time=new Date},s=function(n){function t(t){var i=n.call(this,t)||this;return i.state={animate:!1,width:0,height:0,top:0,left:0},i}return e(t,n),t.prototype.componentWillReceiveProps=function(n){var i=this,t=n.cursorPos;t.time!==this.props.cursorPos.time&&(this.state.animate?this.setState({animate:!1},function(){i.reppling(t)}):this.reppling(t))},t.prototype.reppling=function(n){var t=this.refs.ripple.parentElement,r=(window.getComputedStyle(t),t.getBoundingClientRect()),f=t.offsetWidth,e=t.offsetHeight,i=Math.max(e,f),u=i/2;this.setState({animate:!0,width:i,height:i,top:n.top-r.top-u,left:n.left-r.left-u})},t.prototype.render=function(){return u.a.createElement("div",{className:"Ripple "+(this.state.animate?"is-reppling":""),ref:"ripple",style:{top:this.state.top+"px",left:this.state.left+"px",width:this.state.width+"px",height:this.state.height+"px"}})},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),Object.defineProperty(t.prototype,"classnames",{get:function(){return"tile-dashboard-mobile"+(this.props.dataElement.Editable?"":" disabled")},enumerable:!1,configurable:!0}),t.prototype.prepareStyle=function(){this.calculateColors();n.prototype.prepareStyle.call(this);this.style.boxShadow="0 3px 3px 0 "+this.bgColor+"80"},t}(u.CommandDashboardMobile)},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(n,t){this.name=n;this.element=t;this.cancel=!1}return Object.defineProperty(n.prototype,"Element",{get:function(){return this.element},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Name",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Cancel",{get:function(){return this.cancel},set:function(n){this.cancel=n},enumerable:!1,configurable:!0}),n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var u=i(1),f=i.n(u),r=i(0),e=function(){function n(){}return Object.defineProperty(n,"Instance",{get:function(){return n.instance||(n.instance=new n),n.instance},enumerable:!1,configurable:!0}),n.prototype.createControl=function(n){if(!n||!n.ElementType)return null;var t=this.getControlType(n);return t?f.a.createElement(t,{dataElement:n,key:n.ReactUniqueKey}):null},n.prototype.getControlType=function(n,t){switch(void 0===t&&(t=n.ElementType),n&&n.TagInfo&&n.TagInfo.indexOf("AttachTo:")>=0&&(t="FieldFileUpload"),t){case"Command":return r.Command.getControlType(n);case"Splitter":case"Stack":return r.Stack.getControlType(n);case"Label":return r.Label;case"Field":return r.FieldBase.getControlType(n);case"Grid":return r.GridBase.getControlType(n);case"Scheduler":return r.SchedulerBase.getControlType(n);case"Html":return r.Html;case"Dashboard":return r.DashboardGrid;case"Diagram":return r.Diagram;case"Group":return r.GroupBase.getControlType(n);case"Bar":return r.Bar;case"Chart":return r.Chart;case"Gantt":return r.Gantt;case"Include":return r.Include;case"Page":return r.Stack;case"Row":return r.Row.getControlType(n);case"TopBar":return r.TopBar;case"NavigationBar":return r.NavigationBar;case"FloatingBar":return r.FloatingBar;case"SecondHeaderBar":return r.SecondHeaderBar;case"MenuBar":return r.MenuBar;case"FeaturesBar":return r.FeaturesBar;case"Svg":return r.SvgIcon;case"Indicator":return r.Indicator.getControlType(n);case"PercentIndicator":return r.PercentIndicator;case"RangeSlider":return r.FieldRangeSlider;case"FieldFileUpload":return r.FieldFileUpload;case"FieldPhone":return r.FieldPhone;case"FieldSkype":return r.FieldSkype;case"FieldEmail":return r.FieldEmail;case"FieldHyperlink":return r.FieldHyperlink;case"UserControl":return r.PdfViewer;case"Keyboard":return r.KeyboardController;default:return console.assert(!0,"Brak zdefiniowanego komponentu dla typu "+t),null}},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(n,t,i,u,f,e){this.row=f>=0?f:0;this.column=e>=0?e:0;this.tlPoint=new r.Point(n,t);this.brPoint=new r.Point(i,u);this.cellElement=document.getElementById("c_"+this.column+"_"+this.row)}return n.prototype.IsPointInArea=function(n){return n.X>=this.tlPoint.X&&n.X<this.brPoint.X&&n.Y>=this.tlPoint.Y&&n.Y<this.brPoint.Y},Object.defineProperty(n,"Empty",{get:function(){return new n(-1,-1,-1,-1,-1,-1)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Row",{get:function(){return this.row},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Column",{get:function(){return this.column},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsNull",{get:function(){return this.tlPoint.IsNull||this.brPoint.IsNull},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"TopLeftPoint",{get:function(){return this.tlPoint},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"BottomRightPoint",{get:function(){return this.brPoint},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"TopLocation",{get:function(){return new r.Point(this.cellElement.offsetLeft,this.cellElement.offsetTop)},enumerable:!1,configurable:!0}),n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var f,s=i(1),r=i.n(s),h=i(3),e=i.n(h),c=i(2),u=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},a=function(n){function t(t){var i=n.call(this,t)||this;return i.hotAreas=[],i.forceDrawGrid=!0,i.modeChanged=!1,i.state={designMode:i.props.dataElement.DesignMode,windowSize:new u.Size(window.innerWidth,window.innerHeight)},i}return l(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.createSpreadElement()},t.prototype.componentDidUpdate=function(t,i,r){var e=this,f;this.refs.grid;(n.prototype.componentDidUpdate.call(this,t,i,r),this.createGrid(),this.props.dataElement.DesignMode)&&(this.focusedElementId?(f=document.querySelector("[data-id='"+this.focusedElementId+"']"),f&&("scrollBehavior"in document.documentElement.style?this.props.dataElement.Window.Settings.DashboardItemEdit?setTimeout(function(){f.scrollIntoView({behavior:"smooth",block:"center",inline:"center"})},0):f.scrollIntoView({behavior:"auto",block:"center",inline:"center"}):this.props.dataElement.Window.Settings.DashboardItemEdit?setTimeout(function(){var n=e.refs.content,t=f.offsetLeft+f.offsetWidth/2-n.clientWidth/2,i=f.offsetTop+f.offsetHeight/2-n.clientHeight/2;t<0&&(t=0);i<0&&(i=0);Object(u.scrollToSmoothly)(n,i,t)},0):f.scrollIntoView({behavior:"auto"}),this.props.dataElement.Window.Settings.DashboardItemEdit=!1,this.focusedElementId="")):this.props.dataElement&&this.props.dataElement.Window&&this.props.dataElement.Window.Settings.DashboardGrid&&(this.setScrollPos(this.props.dataElement.Window.Settings.DashboardGrid),this.props.dataElement.Window.Settings.DashboardGrid=null))},t.prototype.shouldComponentUpdate=function(n,t){this.forceDrawGrid=this.modeChanged&&this.state.designMode||this.state.designMode&&!this.modeChanged&&t.windowSize!==this.state.windowSize;var i=this.modeChanged||t.windowSize!==this.state.windowSize||t.version!==this.state.version;return this.modeChanged=!1,i},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.dashboard=!0},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.eventRegistrar.registerEventListener({domElement:window,type:"resize",handler:this.onResizeEventListener.bind(this)})},t.prototype.onResizeEventListener=function(){var n=this;this.resizeTimer&&clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout(function(){n.setState({windowSize:new u.Size(window.innerWidth,window.innerHeight)})},500)},t.prototype.createGrid=function(){var r,f,n,s,h;if(this.forceDrawGrid){for(this.forceDrawGrid=!1,r=this.refs.content,f=this.refs.grid,f.style.width=r.scrollWidth+(this.state.designMode?0:12)+"px",f.style.height=r.scrollHeight+(this.state.designMode?0:12)+"px",this.hotAreas=[];f.firstChild;)f.removeChild(f.firstChild);if(this.state.designMode){for(var c=this.domElement.getBoundingClientRect(),w=c.left,b=c.top,k=r.scrollLeft,d=r.scrollTop,g=r.scrollWidth,nt=r.scrollHeight,e=this.props.dataElement.Location.GridWidth+this.props.dataElement.Location.GridVMargin,o=this.props.dataElement.Location.GridHeight+this.props.dataElement.Location.GridHMargin,l=Math.floor(g/e),a=Math.floor(nt/o),t=0;t<=l;t++)for(n=0;n<=a;n++)s=t*e,h=n*o,(i=document.createElement("div")).id="c_"+t+"_"+n,i.style.position="absolute",i.style.top=h+"px",i.style.left=s+"px",i.style.width=e+"px",i.style.height=o+"px",i.className="dashboard-cell",f.appendChild(i);for(t=0;t<=l;t++)for(n=0;n<=a;n++){s=t*e;h=n*o;var i,v=(i=document.getElementById("c_"+t+"_"+n)).getBoundingClientRect(),y=Math.round(v.left-w+k),p=Math.round(v.top-b+d),tt=new u.AreaRect(y,p,y+e,p+o,n,t);this.hotAreas.push(tt)}}}},t.prototype.createSpreadElement=function(){if(this.state.designMode){var t=this.refs.content,i=t.scrollWidth+t.clientWidth/2,r=t.scrollHeight+t.clientHeight/2,u=this.props.dataElement.Name+"_spread",n=document.getElementById(u);if(n)return n.style.left=i+"px",void(n.style.top=r+"px");(n=document.createElement("div")).id=this.props.dataElement.Name+"_spread";n.style.position="absolute";n.style.left=i-1+"px";n.style.top=r-1+"px";n.style.width="1px";n.style.height="1px";n.style.visibility="hidden";t.appendChild(n)}},t.prototype.getScrollPos=function(){return{left:document.getElementById(this.id+"_content").scrollLeft,top:document.getElementById(this.id+"_content").scrollTop}},t.prototype.setScrollPos=function(n){var t=this.refs.content;t.scrollTop=n.top;t.scrollLeft=n.left},t.prototype.onGridClick=function(n){this.state.designMode&&(n.stopPropagation(),this.props.dataElement.post("dashboard_configure",void 0))},t.prototype.onScrollMouseUp=function(){if(this.activeElement){var n=this.refs[this.activeElement];n&&n.resetEditing();this.activeElement=null}},t.prototype.onItemMouseDown=function(n){this.activeElement=n},t.prototype.onItemMouseUp=function(){this.activeElement=null},t.prototype.createContent=function(){var n=this,t={name:this.props.dataElement.Name,top:0,left:0,onMouseUp:function(){return n.onScrollMouseUp()}};return r.a.createElement("div",{id:this.id,className:e()(this.classes),style:this.style,onClick:function(t){return n.onGridClick(t)}},r.a.createElement(u.Scroll,o({ref:"scroll"},t),r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{id:this.id+"_content",ref:"content",className:"content dashboard-content"},r.a.createElement("div",{ref:"grid",className:"content-grid"}),this.createControls()))))},t.prototype.createMobileContent=function(){return r.a.createElement("div",{id:this.id,className:e()(this.classes)},r.a.createElement("div",{id:this.id+"_content",ref:"content",className:"content dashboard-content"},r.a.createElement("div",{ref:"grid",className:"content-grid"}),this.createControls()))},t.prototype.findNearestArea=function(n){var t=c.a.find(this.hotAreas,function(t){return t.IsPointInArea(n)});return t||u.AreaRect.Empty},t.prototype.isControlFocused=function(n){var t=this.props.dataElement&&this.props.dataElement.FocusElement&&this.props.dataElement.FocusElement===n.Name;return t&&(this.focusedElementId=n.Name),t},t.prototype.createControls=function(){var n=this;return this.props.dataElement.Elements.filter(function(n){return n.IsVisible}).map(function(t){return!u.GroupBase.isDashboardItem(t)||n.IsMobile||n.IsMobileApp?u.ControlFactory.Instance.createControl(t):n.state.designMode?r.a.createElement(u.DashboardItemDesign,{key:t.Name,id:t.Name,ref:t.Name,focus:n.isControlFocused(t),dataElement:t,findNearestArea:function(t){return n.findNearestArea(t)},getScrollPos:function(){return n.getScrollPos()},mouseDown:function(t){return n.onItemMouseDown(t)},mouseUp:function(t){return n.onItemMouseUp(t)}}):r.a.createElement(u.DashboardItem,{dataElement:t,key:t.Name})},this)},t.prototype.handler=function(n){(n.Element!==this.props.dataElement||n.PropertiesChanged||n.ElementsChanged)&&this.updateState();n.EditableChanged&&(this.modeChanged=!0,this.setState({designMode:this.props.dataElement.DesignMode}))},t.prototype.renderMobile=function(){return this.prepareClasses(),this.createMobileContent()},t.prototype.renderBrowser=function(){return this.prepareClasses(),this.prepareStyle(),this.createContent()},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,s=i(1),r=i.n(s),h=i(3),e=i.n(h),u=i(0),o=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.state={designMode:i.DesignMode},i}return o(t,n),Object.defineProperty(t.prototype,"captionHtml",{get:function(){return this.props.dataElement.CaptionHtml?this.props.dataElement.CaptionHtml:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DesignMode",{get:function(){return!(!this.props.dataElement||!this.props.dataElement.Parent)&&this.props.dataElement.Parent.DesignMode},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["dashboard-item"]=!0;this.classes.group=!0},t.prototype.createControlsExpanded=function(){return n.prototype.createControls.call(this)},t.prototype.createDashboardContent=function(){var n=this,t=this.captionHtml?"group-title":"";return this.DesignMode&&!this.IsMobile&&(this.style.top="0",this.style.left="0"),r.a.createElement(u.GroupBase,{name:this.props.dataElement.Name,classes:e()(this.classes),containerClass:"group-content",style:this.style,title:this.captionHtml,titleClass:t,titleContainerClass:"group-title-container",createGroupContent:function(t){return n.createContent(t)}})},t.prototype.createContent=function(){return this.IsMobile?0===this.props.dataElement.Elements.filter(function(n){return n.IsVisible}).length?null:this.createControlsExpanded():n.prototype.createControls.call(this)},t.prototype.handler=function(t){n.prototype.handler.call(this,t);t.LocationChanged&&this.updateState()},t.prototype.renderMobile=function(){return this.prepareClasses(),this.createDashboardContent()},t.prototype.renderBrowser=function(){return this.prepareClasses(),this.prepareStyle(),this.createDashboardContent()},t}(u.ControlBase);!function(n){function t(t){var i=n.call(this,t)||this;return i.state={designMode:i.DesignMode},i}o(t,n);Object.defineProperty(t.prototype,"captionHtml",{get:function(){return this.props.dataElement.CaptionHtml?this.props.dataElement.CaptionHtml:""},enumerable:!1,configurable:!0});Object.defineProperty(t.prototype,"DesignMode",{get:function(){return!(!this.props.dataElement||!this.props.dataElement.Parent)&&this.props.dataElement.Parent.DesignMode},enumerable:!1,configurable:!0});t.prototype.onCloseClick=function(){this.props.dataElement.post("close",void 0)};t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.group=!0;this.classes["dashboard-item"]=!0};t.prototype.createControlsExpanded=function(){return n.prototype.createControls.call(this)};t.prototype.createDashboardContent=function(){var t=this,i=this.captionHtml?"group-title":"",f=JSON.parse(JSON.stringify(this.style)),n;return this.DesignMode&&!this.IsMobile&&(this.style.top="0",this.style.left="0"),n=r.a.createElement(u.GroupBase,{name:this.props.dataElement.Name,classes:e()(this.classes),containerClass:"group-content",style:this.style,title:this.captionHtml,titleClass:i,titleContainerClass:"group-title-container",createGroupContent:function(n){return t.createContent(n)}}),!this.DesignMode||this.IsMobile?n:r.a.createElement("div",{className:"dashboard-item-design",style:f,id:this.props.dataElement.Name},r.a.createElement("div",{className:"dashboard-item-content",id:this.props.dataElement.Name},r.a.createElement(u.SvgIcon,{name:"anuluj",classes:"icon-close",onClick:function(n){return t.onCloseClick(n)}})),n)};t.prototype.createContent=function(){return this.IsMobile?0===this.props.dataElement.Elements.filter(function(n){return n.IsVisible}).length?null:this.createControlsExpanded():n.prototype.createControls.call(this)};t.prototype.renderMobile=function(){return this.prepareClasses(),this.createDashboardContent()};t.prototype.renderBrowser=function(){return this.prepareClasses(),this.prepareStyle(),this.createDashboardContent()}}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var f,o=i(1),u=i.n(o),s=i(4),e=i.n(s),h=i(3),c=i.n(h),r=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){var i=n.call(this,t)||this;return i.mousePoint=new r.Point,i.mouseDownHandler=i.mouseDownListener.bind(i),i.mouseMoveHandler=i.mouseMoveListener.bind(i),i.mouseUpHandler=i.mouseUpListener.bind(i),i.designMode="None",i.state={inDesignMode:i.InDesignMode},i}return l(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.domElement=e.a.findDOMNode(this);this.parentElement=this.domElement.parentElement},Object.defineProperty(t.prototype,"InDesignMode",{get:function(){return!(!this.props.dataElement||!this.props.dataElement.Parent)&&this.props.dataElement.Parent.DesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ClientRect",{get:function(){return this.domElement.getBoundingClientRect()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ParentRect",{get:function(){return this.parentElement.getBoundingClientRect()},enumerable:!1,configurable:!0}),t.prototype.mouseDownListener=function(n){var t=n.toElement||n.target,i=e.a.findDOMNode(this.refs.resizer);i&&i.contains(t)?(this.mousePoint.X=n.clientX,this.mousePoint.Y=n.clientY,this.orgRect=this.ClientRect,this.designMode="Resize",this.elementMouseDown(),document.addEventListener("mousemove",this.mouseMoveHandler,!1)):t.parentElement===this.domElement&&(this.mousePoint.X=this.domElement.offsetLeft-n.clientX,this.mousePoint.Y=this.domElement.offsetTop-n.clientY,this.domElement.style.zIndex="1000",this.designMode="Move",this.elementMouseDown(),document.addEventListener("mousemove",this.mouseMoveHandler,!1))},t.prototype.elementMouseDown=function(){this.props.mouseDown&&this.props.mouseDown(this.id)},t.prototype.elementMouseUp=function(){this.props.mouseUp&&this.props.mouseUp(this.id)},t.prototype.mouseUpListener=function(){this.resetEditing();this.elementMouseUp()},t.prototype.mouseMoveListener=function(n){"Move"===this.designMode?this.calcMovePosition(n):"Resize"===this.designMode&&this.calcResizePosition(n)},t.prototype.calcMovePosition=function(n){var o=this,u=this.ClientRect,f=this.parentElement.scrollWidth,e=this.parentElement.scrollHeight,t=n.clientX+this.mousePoint.X,i=n.clientY+this.mousePoint.Y;t<0&&(t=0);i<0&&(i=0);t+u.width>f&&(t=f-u.width);i+u.height>e&&(i=e-u.height);this.setItemPosition(new r.Point(t,i));this.addMoveTimer&&clearTimeout(this.addMoveTimer);this.addMoveTimer=setTimeout(function(){o.gotoNearestPositionOnMove()},300)},t.prototype.calcResizePosition=function(n){var t=this,i=n.clientX-this.mousePoint.X,u=n.clientY-this.mousePoint.Y;this.setItemSize(new r.Size(this.orgRect.width+i,this.orgRect.height+u));this.addResizeTimer&&clearTimeout(this.addResizeTimer);this.addResizeTimer=setTimeout(function(){t.gotoNearestPositionOnResize()},300)},t.prototype.gotoNearestPositionOnMove=function(){var n=this;this.calculatePosition(function(t){n.setItemPosition(t.TopLocation)});this.addMoveTimer&&clearTimeout(this.addMoveTimer)},t.prototype.gotoNearestPositionOnResize=function(){var n=this;this.calculatePosition(function(t,i){n.setItemSize(new r.Size(i.BottomRightPoint.X-t.TopLeftPoint.X-10,i.BottomRightPoint.Y-t.TopLeftPoint.Y-10))});this.addResizeTimer&&clearTimeout(this.addResizeTimer)},t.prototype.calculateItemTopBottom=function(){var n=this.ClientRect,t=this.ParentRect,i=this.parentElement.scrollLeft+5,u=this.parentElement.scrollTop+5,f=Math.round(n.left-t.left+i),e=Math.round(n.top-t.top+u),o=Math.round(n.right-t.left+i),s=Math.round(n.bottom-t.top+u);return{TopLeft:this.props.findNearestArea(new r.Point(f,e)),BottomRight:this.props.findNearestArea(new r.Point(o,s))}},t.prototype.calculatePosition=function(n){var t=this.calculateItemTopBottom(),i,r;n(t.TopLeft,t.BottomRight);i=(t=this.calculateItemTopBottom()).BottomRight.Column-t.TopLeft.Column+1;r=t.BottomRight.Row-t.TopLeft.Row+1;this.props.dataElement.post("dashboard_move",t.TopLeft.Column+"*"+t.TopLeft.Row+","+i+"*"+r)},t.prototype.setItemSize=function(n){this.domElement.style.width=n.Width+"px";this.domElement.style.height=n.Height+"px"},t.prototype.setItemPosition=function(n){this.domElement.style.left=n.X+"px";this.domElement.style.top=n.Y+"px"},t.prototype.setElementTransition=function(n){this.domElement.style.transitionProperty=n;this.domElement.style.transitionDuration="0.2s";this.domElement.style.transitionTimingFunction="ease-in"},t.prototype.resetEditing=function(n){void 0===n&&(n=!1);this.designMode="None";this.domElement.style.transition="unset";this.domElement.style.zIndex="unset";n&&(this.domElement.style.left="-1px")},t.prototype.onSettingsClick=function(n){n.stopPropagation();this.props.dataElement.Window.Settings.DashboardItemEdit=!0;this.props.dataElement.post("dashboard_configure",void 0)},t.prototype.onCloseClick=function(n){n.stopPropagation();this.props.dataElement.Window.Settings.DashboardGrid=this.props.getScrollPos();this.props.dataElement.post("dashboard_remove",void 0)},t.prototype.createDashboardContent=function(){var n=this;return this.IsMobile?null:u.a.createElement("div",{ref:"target",className:c()(this.classes),style:this.style,"data-id":this.props.id,onClick:function(t){return n.onSettingsClick(t)}},u.a.createElement("div",{ref:"content",className:"design-content",id:"design_"+this.props.dataElement.Name},u.a.createElement(r.SvgIcon,{name:"anuluj",classes:"icon-close",onClick:function(t){return n.onCloseClick(t)}}),u.a.createElement(r.SvgIcon,{ref:"resizer",name:"macierz",classes:"icon-resize"})),u.a.createElement(r.DashboardItem,{ref:"item",dataElement:this.props.dataElement,id:this.props.dataElement.Name}))},t.prototype.initEventListeners=function(){if(!this.IsMobile){n.prototype.initEventListeners.call(this);var t=e.a.findDOMNode(this.refs.resizer);this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"mousedown",handler:this.mouseDownHandler},{domElement:this.domElement,type:"mouseup",handler:this.mouseUpHandler},{domElement:t,type:"mouseup",handler:this.mouseUpHandler}])}},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["design-item"]=!0;this.classes.focus=this.props.focus},t.prototype.handler=function(t){n.prototype.handler.call(this,t);t.LocationChanged&&(this.resetEditing(this.IsMobile),this.updateState())},t.prototype.renderMobile=function(){return this.prepareClasses(),this.createDashboardContent()},t.prototype.renderBrowser=function(){return this.prepareClasses(),this.prepareStyle(),this.createDashboardContent()},t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(n,t){void 0===n&&(n=-1);void 0===t&&(t=-1);this._X=-1;this._Y=-1;this._X=n;this._Y=t}return Object.defineProperty(n,"Empty",{get:function(){return new n(-1,-1)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"X",{get:function(){return this._X},set:function(n){this._X=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Y",{get:function(){return this._Y},set:function(n){this._Y=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsNull",{get:function(){return this.X<=0||this.Y<=0},enumerable:!1,configurable:!0}),n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(n,t){void 0===n&&(n=0);void 0===t&&(t=0);this.width=0;this.height=0;this.width=n;this.height=t}return Object.defineProperty(n,"Empty",{get:function(){return new n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Width",{get:function(){return this.width},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Height",{get:function(){return this.height},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsNull",{get:function(){return 0==this.width&&0==this.height},enumerable:!1,configurable:!0}),n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return v});var f,o=i(1),u=i.n(o),s=i(4),e=i.n(s),h=i(3),c=i.n(h),l=i(2),r=i(0),a=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),v=function(n){function t(t){var i=n.call(this,t)||this;return i.valueFromKeyboard="",i.valueOnSetByContent="",i.isRange=i.props.isRange,i.isMobile||(i.mouseNavigator=new r.DatePickerMouseNavigator(i)),i.keyNavigator=new r.DatePickerKeyNavigator(i),i.state={active:!1},i}return a(t,n),t.prototype.shouldComponentUpdate=function(n){if(this.valueFromKeyboard.length>0){if(this.valueFromKeyboard!==n.parent.EditValue)return!1;this.valueFromKeyboard=""}return!0},t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.keyNavigator&&this.keyNavigator.onComponentDidMount();this.mouseNavigator&&this.mouseNavigator.onComponentDidMount();this.target&&r.BaseKeyNavigator.setKeyListener(this.target,this)},t.prototype.componentWillUnmount=function(){this.keyNavigator&&this.keyNavigator.onComponentWillUnmount();this.mouseNavigator&&this.mouseNavigator.onComponentWillUnmount()},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.mouseDownListener=function(n){this.mouseNavigator&&this.mouseNavigator.mouseDownListener(n)},t.prototype.blurHandler=function(n){if(n.stopPropagation(),n.preventDefault(),n&&"mousedown"===n.type){var t=new r.MouseEventProps(n);t.ownerName=this.props.id;this.invokePropsEnterNewValue(this.valueOnSetByContent,new r.EipEventProps("Mouse","Right",t));this.valueOnSetByContent=""}else this.invokePropsEditValueChanged(n,new r.EipEventProps("Unknown","Unknown",new r.KeyboardEventProps(n)))},t.prototype.invokePropsEnterNewValue=function(n,t){this.props.onEnterNewValue&&this.props.onEnterNewValue(n,t)},t.prototype.invokePropsEditValueChanged=function(n,t){this.props.onEditValueChanged&&this.props.onEditValueChanged(n,t)},Object.defineProperty(t.prototype,"Content",{get:function(){var n=this,t,i,f;return this.state.active?this.props.modeYearMonth?(t=(new Date).getFullYear(),i=null,this.props.parent.EditValue&&(f=this.props.parent.EditValue.split(" "),t=parseInt(f[1]),i=f[0]),e.a.createPortal(u.a.createElement(r.DatePickerYearMonthContent,{ownerName:this.props.parent.Name,isRequiered:!0,currentYear:t,currentMonth:i,onSetDate:function(t){return n.setDate(t)},onClose:function(){return n.onClose()},onClick:function(t){return n.toogleDP(t)}}),document.body)):e.a.createPortal(u.a.createElement(r.DatePickerContent,{ownerName:this.props.parent.Name,value:this.setValueForContent(),isRange:this.isRange,onSetDate:function(t){return n.setDate(t)},onClose:function(){return n.onClose()},onClick:function(t){return n.toogleDP(t)},isMobile:this.props.parent.IsMobile}),document.body):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"input",{get:function(){return this.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.props.parent.IsMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eipMode",{get:function(){return this.props.parent.EipMode},enumerable:!1,configurable:!0}),t.prototype.removeAnimationClass=function(n){for(var i=document.getElementsByClassName(n),t=0;t<i.length;t++)i[t].classList.remove(n)},t.prototype.closeDatePicker=function(){this.setState({active:!1})},t.prototype.setDate=function(n){this.setState({active:!this.state.active});this.valueOnSetByContent=n;this.props.parent.IsMobile&&this.invokePropsEnterNewValue(n,new r.EipEventProps("Mouse","Right"))},t.prototype.setDateFromKeyPress=function(n,t){var i=this;this.delaySendingValue&&clearTimeout(this.delaySendingValue);this.delaySendingValue=setTimeout(function(){i.invokePropsEnterNewValue(n,new r.EipEventProps("Unknown","Unknown",t))},500)},t.prototype.setValueForContent=function(){var n=this.props.parent.EditValue;return!n||n.indexOf("(")>=0&&n.indexOf(")")>0&&this.isRange?this.returnToday():n},t.prototype.returnToday=function(){var n=new Date,t=n.getDate(),i=t<10?"0"+t:t,r=n.getMonth()+1,u=r<10?"0"+r:r,f=n.getFullYear();return this.isRange?f+"-"+u+"-"+i+"..."+i:f+"-"+u+"-"+i},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["editor-text"]=!0},t.prototype.toogleDP=function(n){if(this.props.parent.Editable){var t=n.target;(l.a.indexOf(t.classList,"dp-overlay-screen")>=0||Object(r.hasParentNode)(t,"icon")||n.keyCode&&115===n.keyCode)&&this.setState({active:!this.state.active})}},t.prototype.onClose=function(){this.setState({active:!1})},t.prototype.onFocus=function(n){this.props.onFocus&&this.props.onFocus(n)},t.prototype.renderAll=function(){var n=this;return this.prepareClasses(),this.removeAnimationClass("animationLightSpeedIn"),this.removeAnimationClass("animationLightSpeedRoll"),this.props.parent.IsMobile&&this.props.setActive(this.state.active),u.a.createElement("div",{id:this.props.parent.Name+"con",className:"editor-date"},u.a.createElement(r.EditorText,{id:this.props.parent.Name,type:"text",editValue:this.props.parent.EditValue,editable:this.props.parent.Editable,location:this.props.parent.Location,classes:c()(this.classes),captionHtml:this.props.parent.CaptionHtml,descriptionHtml:this.props.parent.DescriptionHtml,iconName:"kalendarz",isMobile:this.props.parent.IsMobile,isMultiline:this.props.parent.IsMultilineLabel,isClearable:this.props.parent.IsMobile,eipMode:this.props.parent.EipMode,onFocus:function(t){return n.onFocus(t)},onIconClick:function(t){return n.toogleDP(t)},onEditValueChanged:function(t){return n.onBlurEditor(t)}}),this.Content)},t.prototype.renderMobile=function(){return this.renderAll()},t.prototype.renderBrowser=function(){return this.renderAll()},t}(r.EditorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var r,f=i(1),u=i.n(f),e=i(3),o=i.n(e),s=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){return n.call(this,t)||this}return s(t,n),t.prototype.prepareClasses=function(n){this.classes={"dp-day-button":0!==n,"dp-day-button-blank":0===n,"dp-day-button-current":this.props.isCurrent,"dp-day-button-selected":this.props.isSelected,"dp-day-button-disabled":this.props.isDateOutOfRange}},t.prototype.render=function(){var n=this.props.day,t=n&&n.getDate()?n.getDate():0;return this.prepareClasses(t),u.a.createElement("div",{className:o()(this.classes),onClick:this.props.onClick,style:this.props.styles?this.props.styles:null},t,this.props.hasTasks?u.a.createElement("div",{className:"ss-task-marker"}):null)},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,o=i(1),r=i.n(o),s=i(3),h=i.n(s),e=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),u=function(){return(u=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},l=function(n){function t(t){return n.call(this,t)||this}return c(t,n),t.prototype.onClearValue=function(){this.props.clearValue("")},t.prototype.onClose=function(n){n.stopPropagation();n.preventDefault();this.props.close()},t.prototype.onSetValue=function(){this.props.setValue()},Object.defineProperty(t.prototype,"iconClasses",{get:function(){return h()({icon:!0,active:!0,disabled:!1})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"btnOk",{get:function(){var n=this,t={name:"ok",classes:this.iconClasses,enabled:!0,onClickDown:function(t){return n.onSetValue(t)}};return r.a.createElement("div",{className:"dp-button"},r.a.createElement("div",{className:"icon-con"},r.a.createElement(e.SvgIcon,u({},t))))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"btnCancel",{get:function(){var n=this,t={name:"anuluj_kolo",classes:this.iconClasses,enabled:!0,onClick:function(t){return n.onClose(t)}};return r.a.createElement("div",{className:"dp-button dp-close"},r.a.createElement("div",{className:"icon-con"},r.a.createElement(e.SvgIcon,u({},t))))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"btnClear",{get:function(){var n=this,t={name:"wyczysc",classes:this.iconClasses,enabled:!0,onClick:function(t){return n.onClearValue(t)}};return r.a.createElement("div",{className:"dp-button"},r.a.createElement("div",{className:"icon-con"},r.a.createElement(e.SvgIcon,u({},t))))},enumerable:!1,configurable:!0}),t.prototype.render=function(){return r.a.createElement("div",{className:"dp-button-container"},this.props.clearValue?this.btnClear:null,this.btnCancel,this.props.renderOkBtn?this.btnOk:null)},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var u,f=i(1),r=i.n(f),e=i(3),o=i.n(e),s=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){var i=n.call(this,t)||this;return i.props.minDate&&(i.minDate=new Date(i.props.minDate),i.minDate=new Date(i.minDate.setDate(i.minDate.getDate()-1))),i}return s(t,n),t.prototype.componentWillMount=function(){this.dayNamesShort=this.props.getDayShortNames();this.dayNamesShort.push(this.dayNamesShort.shift())},t.prototype.componentWillReceiveProps=function(n){n.minDate&&(this.minDate=new Date(n.minDate),this.minDate=new Date(this.minDate.setDate(this.minDate.getDate()-1)))},t.prototype.getTicks=function(n){return n.valueOf()},t.prototype.addDays=function(n,t){var i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+t);return t&&i.getDate()===n.getDate()&&(i=new Date(n.getFullYear(),n.getMonth(),n.getDate())).setTime(i.getTime()+864e5*t),i},t.prototype.getDayOfYear=function(n){var t=new Date(n.getFullYear(),0,1),i=(this.getTicks(n)-this.getTicks(t))/864e5;return Math.floor(i)+1},t.prototype.getDayOfWeek=function(n,t){return(n.getDay()-t+7)%7},t.prototype.getWeekOfYear=function(n,t,i){var r=this.getDayOfYear(n),f=6-(this.getDayOfWeek(n,t)+i),u=Math.floor((r+f)/7)+1;return 0===u?this.getWeekOfYear(this.addDays(n,-r),t,i):u},t.prototype.getWeekNumbers=function(n,t){for(var f,e=this.getWeekArray(n,t).length,i=new Date(n,t,1),r=[],u=0;u<=e;u++)0===u?r.push(0):(f=this.getWeekOfYear(i,1,4),i=this.addDays(i,7),r.push(f));return r},t.prototype.getWeekColumn=function(n,t){return this.getWeekNumbers(n,t).map(function(n,t){var i={"dp-week":!0,"dp-week-zero":0===n};return r.a.createElement(r.a.Fragment,{key:"wc"+t},r.a.createElement("div",{className:o()(i)},n))},this)},t.prototype.getWeekElements=function(n,t){var i=this;return this.getWeekArray(n,t).map(function(n,t){return r.a.createElement(r.a.Fragment,{key:"we-"+t},i.getDayElements(n))},this)},t.prototype.getWeekArray=function(n,t){for(var f,e,u,r=[],s=this.getDaysInMonth(n,t),o=[],i=1;i<=s;i++)r.push(new Date(n,t,i));for(;r.length;){for(e=7-(f=7-(0!==r[0].getDay()?r[0].getDay()-1:6)),u=r.splice(0,f),i=0;i<e;i++)u.unshift(null);o.push(u)}return o},t.prototype.getDaysInMonth=function(n,t){var i=new Date(n,t+1,1);return i.setDate(i.getDate()-1),i.getDate()},t.prototype.isLowerThanMix=function(n){return this.minDate>n},t.prototype.isDayEqual=function(n,t){void 0===t&&(t=null);var i=new Date(n).getDate(),r=new Date(t).getDate();return!!n&&i==r},t.prototype.isMonthEqual=function(n,t){return t==new Date(n).getMonth()},t.prototype.isYearEqual=function(n,t){return t==new Date(n).getFullYear()},t.prototype.renderContent=function(){return null},t.prototype.render=function(){return this.renderContent()},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,e=i(1),r=i.n(e),o=i(3),s=i.n(o),f=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return h(t,n),t.prototype.getWeekDesc=function(){return this.dayNamesShort.map(function(n,t){return r.a.createElement("div",{key:n+t,className:"dp-shortdays-element"},n)})},t.prototype.getDayElements=function(n){var t=this,i=this.isMonthEqual(this.props.value,this.props.monthDisplayed),u=this.isYearEqual(this.props.value,this.props.yearDisplayed),e=this.isMonthEqual(this.props.selected,this.props.monthDisplayed),o=this.isYearEqual(this.props.selected,this.props.yearDisplayed),s=this.props.isRange;return n.map(function(n,h){var c=!(!t.props.minDate||!s)&&t.isLowerThanMix(n),l=(t.isDayEqual(n),e&&o&&t.isDayEqual(n,t.props.selected)),a=i&&u&&t.isDayEqual(n,t.props.value);return n||(n=null),r.a.createElement(f.DatePickerButton,{key:"".CreateReactKey(),day:n,no:h.toString(),isSelected:l,isCurrent:a,isDateOutOfRange:c,onClick:function(n){return c?function(){}:t.onDayButtonClick(n)}})},this)},t.prototype.onDayButtonClick=function(n){n.stopPropagation();n.preventDefault();var t=parseInt(n.target.textContent);this.props.selected;t&&this.props.onDaySelected(!1,new Date(this.props.yearDisplayed,this.props.monthDisplayed,t))},t.prototype.prepareClasses=function(){this.classes={};this.classes["dp-box-calendar"]=!0;this.classes.animationLightSpeedRollLeft=-1===this.props.monthDirection;this.classes.animationLightSpeedRollRight=1===this.props.monthDirection},t.prototype.render=function(){return this.prepareClasses(),r.a.createElement("div",{className:"dp-box-con",key:this.props.selected.toString()},r.a.createElement("div",{className:"dp-week-no",style:{float:"left"}},this.getWeekColumn(this.props.yearDisplayed,this.props.monthDisplayed)),r.a.createElement("div",{className:"dp-week-desc"},r.a.createElement("div",{key:"datepicker-shortdays",className:"dp-shortdays"},this.getWeekDesc()),r.a.createElement("div",{key:"calendar"+this.props.monthDisplayed+"_"+this.props.yearDisplayed,className:s()(this.classes)},this.getWeekElements(this.props.yearDisplayed,this.props.monthDisplayed))))},t}(f.DatePickerCalendarBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,o=i(1),r=i.n(o),s=i(3),h=i.n(s),e=i(2),u=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(n){function t(t){var i=n.call(this,t)||this;return i.imperialMode="en-US"===u.LanguageConstants.RESOURCES.CurrentCulture,i.value=i.prepareDateValue(),i.state={edit:1,selected:i.props.isRange?i.prepareDateValues(!0):i.returnFormatedDate(i.value),selectedRangeEnd:i.props.isRange?i.prepareDateValues(!1):null,monthDirection:0,monthDisplayed:i.props.isRange?i.prepareDateValues(!0).getMonth():i.returnFormatedDate(i.value).getMonth(),yearDisplayed:i.props.isRange?i.prepareDateValues(!0).getFullYear():i.returnFormatedDate(i.value).getFullYear()},i}return c(t,n),Object.defineProperty(t.prototype,"IsMobile",{get:function(){return u.WindowManager.Instance.ActiveWindow.IsMobile},enumerable:!1,configurable:!0}),t.prototype.componentWillMount=function(){this.schedulerRes=JSON.parse(u.LanguageConstants.RESOURCES.Str_SchedulerResources)},t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this)},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this)},Object.defineProperty(t.prototype,"MonthNames",{get:function(){return this.schedulerRes.monthNames},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DayNames",{get:function(){return this.schedulerRes.dayNames},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getDayShortNames",{get:function(){return this.schedulerRes.dayNamesShort},enumerable:!1,configurable:!0}),t.prototype.addEndRange=function(){return this.props.isRange?r.a.createElement("div",{ref:"dp-end",style:{width:"50%",borderLeft:u.GlobalSettings.Instance.IsStandardProduct?"1px solid rgb(140, 140, 140)":null,opacity:2===this.state.edit?1:.4},className:"dp-end-date"},r.a.createElement(u.DatePickerHeader,{parent:this,selected:this.state.selectedRangeEnd,monthDisplayed:this.state.selectedRangeEnd.getMonth(),yearDisplayed:this.state.selectedRangeEnd.getFullYear()})):null},t.prototype.changeEditState=function(n){var t=this.findEditState(n.target),i;t!==this.state.edit&&(i=1==t?this.state.selected:this.state.selectedRangeEnd,this.setState({edit:t,monthDisplayed:new Date(i).getMonth(),yearDisplayed:new Date(i).getFullYear()}))},t.prototype.findEditState=function(n){return n.classList.contains("dp-start-date")?1:n.classList.contains("dp-end-date")?2:this.findEditState(n.parentNode)},t.prototype.yearChange=function(n){var t=this.state.yearDisplayed+(n?1:-1);this.setState({yearDisplayed:t})},t.prototype.setYear=function(n){this.setState({monthDirection:n<this.state.yearDisplayed?-1:n>this.state.yearDisplayed?1:0,yearDisplayed:n})},t.prototype.monthChange=function(n){var t=this.state.monthDisplayed+(n?1:-1),i=this.state.yearDisplayed;12===t?(t=0,i+=1):-1===t&&(t=11,i-=1);this.setState({monthDirection:n?1:-1,monthDisplayed:t,yearDisplayed:i})},t.prototype.setMonth=function(n){this.setState({monthDirection:n<this.state.monthDisplayed?-1:1,monthDisplayed:n})},t.prototype.onDaySelected=function(n,t){var u;if(n){var f=new Date(Date.now()),i=new Date(f.setMonth(this.state.monthDisplayed)),e=new Date(i.setDate(1)),r=new Date(i.setMonth(this.state.monthDisplayed+1)),o=new Date(r.setDate(r.getDate()-1));this.setState({selected:e,selectedRangeEnd:o,monthDirection:0})}else 1==this.state.edit?(u=t>new Date(this.state.selectedRangeEnd),this.setState({selected:t,selectedRangeEnd:u?t:this.state.selectedRangeEnd,monthDirection:0})):this.setState({selectedRangeEnd:t,monthDirection:0})},t.prototype.prepareDateValue=function(n){var t=n||this.props.value;if(t.indexOf(".")>=0){var i=t.substring(6,t.length),r=t.substring(3,5),u=t.substring(0,2);t=i+"-"+r+"-"+u}return t},t.prototype.isInValidDate=function(n){return"[object Date]"===Object.prototype.toString.call(n)&&isNaN(n.getTime())},t.prototype.findSeparator=function(n){var t="";return n.indexOf("-")>0?t="-":n.indexOf("/")>0?(this.imperialMode=!0,t="/"):t=".",t},t.prototype.returnFormatedDate=function(n){var i=this.findSeparator(n),t=n.split(i),u=e.a.find(t,function(n){return 4===n.length}),f=t[0===e.a.indexOf(t,u)?2:0],r=t[1];return(this.imperialMode||parseInt(r)>12)&&(f=t[1],r=t[0]),new Date(u+i+r+i+f)},t.prototype.prepareDateValues=function(n){var r,u,f=this.props.value.indexOf("..."),e=this.props.value.substring(0,f),o=this.props.value.substring(f+3,this.props.value.length),t=this.prepareDateValue(e),i=this.prepareDateValue(o);return e&&o?(r=t.length<=2?new Date(this.returnFormatedDate(i).setDate(parseInt(t))):this.returnFormatedDate(t),u=i.length<=2?new Date(this.returnFormatedDate(t).setDate(parseInt(i))):this.returnFormatedDate(i)):r=u=new Date,n?r:u},t.prototype.updateDateValue=function(){this.props.onSetDate&&this.props.onSetDate(this.props.isRange?this.prepareDateRange():this.returnDateFormatString(this.state.selected))},t.prototype.prepareDateRange=function(){var t=this.returnDateFormat(this.state.selected),n=this.returnDateFormat(this.state.selectedRangeEnd),i=n.getMonth()==t.getMonth(),r=n.getFullYear()==t.getFullYear(),u=i&&r?n.getDate().toString():this.returnDateFormatString(n);return this.returnDateFormatString(t)+"..."+u},t.prototype.returnDateFormat=function(n){var t=n.getDate(),r=t<10?"0"+t:t,i=n.getMonth()+1,u=i<10?"0"+i:i,f=n.getFullYear();return new Date(f+"-"+u+"-"+r)},t.prototype.returnDateFormatString=function(n){var t=n.getDate(),r=t<10?"0"+t:t,i=n.getMonth()+1,u=i<10?"0"+i:i;return n.getFullYear()+"-"+u+"-"+r},t.prototype.prepareDateNow=function(){return this.returnDateFormat(new Date)},t.prototype.prepareClasses=function(){this.classes={};this.classes["dp-overlay-screen"]=!0},t.prototype.OnOverlayClick=function(n){this.elementVerify(n)||(this.preventEvents(n),this.props.onClose())},t.prototype.OnBoxClick=function(n){this.elementVerify(n)||this.preventEvents(n)},t.prototype.OnStartEndClick=function(n){this.preventEvents(n);this.changeEditState(n)},t.prototype.isButtonSection=function(n){return!(!n||n.classList&&n.classList.length>0&&(n.classList.contains("dp-overlay-screen")||n.classList.contains("tp-overlay-screen")||n.classList.contains("dp-box")))&&(!(!n.classList.contains("dp-button")&&!n.classList.contains("tp-button"))||this.isButtonSection(n.parentElement))},t.prototype.elementVerify=function(n){return!(!n||!n.target)&&this.isButtonSection(n.target)},t.prototype.initEventListeners=function(){var i=this.refs["dp-overlay"],r=this.refs["dp-box"],u=this.refs["dp-start"],n=this.refs["dp-end"],t=[{domElement:i,type:"mousedown",handler:this.OnOverlayClick.bind(this)},{domElement:r,type:"mousedown",handler:this.OnBoxClick.bind(this)},{domElement:u,type:"mousedown",handler:this.OnStartEndClick.bind(this)}];n&&(t=t.concat([{domElement:n,type:"mousedown",handler:this.OnStartEndClick.bind(this)},{domElement:n,type:"touchstart",passive:!0,handler:this.OnStartEndClick.bind(this)}]));this.eventRegistrar.registerEventListeners(t)},t.prototype.render=function(){var n=this,t;return this.prepareClasses(),t=this.props.isRange?{width:"50%",borderRight:u.GlobalSettings.Instance.IsStandardProduct?"1px solid rgb(140, 140, 140)":null,opacity:1===this.state.edit?1:.4}:{width:"100%"},r.a.createElement("div",{ref:"dp-overlay","data-lparent":this.props.ownerName+"con",className:h()(this.classes)},r.a.createElement("div",{ref:"dp-box",className:"dp-box"},r.a.createElement("div",{className:"dp-header-container"},r.a.createElement("div",{ref:"dp-start",style:t,className:"dp-start-date"},r.a.createElement(u.DatePickerHeader,{parent:this,selected:this.state.selected,yearDisplayed:this.state.yearDisplayed,monthDisplayed:this.state.monthDisplayed})),this.addEndRange()),r.a.createElement(u.DatePickerNavigation,{parent:this,value:this.state.selected?this.state.selected:this.prepareDateNow(),yearDisplayed:this.state.yearDisplayed,monthDisplayed:this.state.monthDisplayed,isMobile:this.props.isMobile}),r.a.createElement("div",{className:"dp-box-content"},r.a.createElement(u.DatePickerCalendar,{value:new Date(this.value),selected:1===this.state.edit?this.state.selected:this.state.selectedRangeEnd,minDate:2===this.state.edit?this.returnDateFormatString(this.state.selected):"1800-01-01",isRange:this.props.isRange,monthDirection:this.state.monthDirection,yearDisplayed:this.state.yearDisplayed,monthDisplayed:this.state.monthDisplayed,getDayShortNames:function(){return n.getDayShortNames},onDaySelected:function(t,i){return n.onDaySelected(t,i)}})),r.a.createElement(u.DatePickerButtons,{renderOkBtn:!0,setValue:function(){return n.updateDateValue()},clearValue:function(t){return n.props.onSetDate(t)},close:function(){return n.props.onClose()}})))},t}(u.ControlEventListener)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var u,f=i(1),r=i.n(f),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this,t)||this;return i.state={fnMode:-1},i}return e(t,n),t.prototype.componentWillMount=function(){this.monthNames=this.props.parent.MonthNames;this.dayNames=this.props.parent.DayNames},t.prototype.getFullNameOfADay=function(n){var t=this.dayNames[n];return t?t.charAt(0).toUpperCase()+t.slice(1):n},t.prototype.getFullNameOfTheMonth=function(n){return this.monthNames&&(n||0===n)?this.monthNames[n].toUpperCase():n},t.prototype.render=function(){var n=this.props.selected,t=this.getFullNameOfADay(n.getDay()),i=n.getDate(),u=this.getFullNameOfTheMonth(n.getMonth()),f=n.getFullYear();return r.a.createElement("div",{className:"dp-box-header"},r.a.createElement("div",{className:"dp-fullday"},r.a.createElement("div",{key:t+"_dayName",className:"animationLightSpeedIn"},r.a.createElement("span",{key:"dayName"},t))),r.a.createElement("div",{className:"dp-fullmonth"},r.a.createElement("div",{key:u+"_monthName",className:"animationLightSpeedIn"},r.a.createElement("span",{key:"monthName"},u))),r.a.createElement("div",{className:"dp-day"},r.a.createElement("div",{key:i+"_dayNo",className:"animationLightSpeedIn"},r.a.createElement("span",{key:"dayNumber"},i))),r.a.createElement("div",{className:"dp-year"},r.a.createElement("div",{key:f+"_fullYear",className:"animationLightSpeedIn"},r.a.createElement("span",{key:"yearNumber"},f))))},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,f=i(1),r=i.n(f),e=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.state={fnMode:-1},i}return o(t,n),t.prototype.componentWillMount=function(){this.monthNames=this.props.parent.MonthNames},t.prototype.getFullNameOfTheMonth=function(n){return this.monthNames?this.monthNames[n].toUpperCase():n},t.prototype.switchToPreviousMonth=function(){this.props.parent.monthChange(!1)},t.prototype.switchToNextMonth=function(){this.props.parent.monthChange(!0)},t.prototype.openFN=function(n){this.setState({fnMode:n})},Object.defineProperty(t.prototype,"FastNavigationElement",{get:function(){var n=this;return-1!==this.state.fnMode?r.a.createElement(e.FastNavigation,{onClose:function(){return n.openFN(-1)},onClick:function(t){return 0===n.state.fnMode?n.props.parent.setMonth(t):n.props.parent.setYear(t)},mode:this.state.fnMode,currentMonth:this.props.monthDisplayed,currentYear:this.props.yearDisplayed,monthNames:this.monthNames,isMobile:this.props.parent.IsMobile}):null},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this;return r.a.createElement("div",{className:"dp-navigation"},r.a.createElement("div",{onClick:function(){return n.switchToPreviousMonth()},className:"dp-navigation-back icon-container"},r.a.createElement("svg",{height:"30",viewBox:"0 0 24 24",width:"30"},r.a.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}))),r.a.createElement("div",{key:"datepicker-navigation-month",onClick:function(){return n.openFN(0)},className:"dp-navigation-button month"},this.getFullNameOfTheMonth(this.props.monthDisplayed)),r.a.createElement("div",{key:"datepicker-navigation-year",onClick:function(){return n.openFN(1)},className:"dp-navigation-button year"},this.props.yearDisplayed),r.a.createElement("div",{onClick:function(){return n.switchToNextMonth()},className:"dp-navigation-forward icon-container"},r.a.createElement("svg",{height:"30",viewBox:"0 0 24 24",width:"30"},r.a.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}))),this.FastNavigationElement)},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,o=i(1),u=i.n(o),s=i(3),h=i.n(s),r=i(0),e=i(2),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(n){function t(t){var i=n.call(this,t)||this,o;i.monthValues=[];i.yearsValues=[];i.yearsValues=e.a.range(1899,2099,1);i.monthValues=e.a.range(0,12,1);var u=new Date,s=i.props.currentYear?i.props.currentYear:u.getFullYear(),f=u.getMonth();return i.props.currentMonth&&(o=e.a.findIndex(r.YearMonth.MonthNames,function(n){return n===i.props.currentMonth}),f=i.monthValues[o]),i.state={currentYear:s,currentMonth:f},i.onBoxClickHandler=i.onBoxClick.bind(i),i.onOverlayClickHandler=i.onOverlayClick.bind(i),i}return c(t,n),t.prototype.shouldComponentUpdate=function(n,t){return this.state.currentYear!==t.currentMonth||this.state.currentMonth!==t.currentMonth},t.prototype.initEventListeners=function(){var n=this.refs["tp-overlay"],t=this.refs["tp-box"];this.eventRegistrar.registerEventListeners([{domElement:n,type:"mousedown",handler:this.onOverlayClickHandler},{domElement:t,type:"mousedown",handler:this.onBoxClickHandler}])},t.prototype.onClearValue=function(n){this.preventEvents(n);this.setValue()},t.prototype.onClose=function(n){this.preventEvents(n);this.props.onClose()},t.prototype.onSetValue=function(){var n=new r.YearMonth(this.selectedYearElement.value,this.selectedMonthElement.value),t=n?n.ToFormattedString():"";this.setYearMonthState(this.selectedYearElement.value,this.selectedMonthElement.value+1);this.setValue(t)},t.prototype.onOverlayClick=function(n){this.elementVerify(n)||(this.preventEvents(n),this.props.onClose())},t.prototype.onBoxClick=function(n){this.elementVerify(n)||this.preventEvents(n)},t.prototype.isButtonSection=function(n){return!(!n||n.classList&&n.classList.length>0&&(n.classList.contains("dp-overlay-screen")||n.classList.contains("tp-overlay-screen")||n.classList.contains("dp-box")))&&(!(!n.classList.contains("dp-button")&&!n.classList.contains("tp-button"))||this.isButtonSection(n.parentElement))},t.prototype.elementVerify=function(n){return!(!n||!n.target)&&this.isButtonSection(n.target)},t.prototype.onSelectMonth=function(n){this.selectedMonthElement=n},t.prototype.onSelectYear=function(n){this.selectedYearElement=n},t.prototype.setValue=function(n){this.props.onSetDate(n||"")},t.prototype.setYearMonthState=function(n,t){this.setState({currentYear:n,currentMonth:t})},t.prototype.formattedYearMonth=function(n,t,i){return(i||1).ZeroPad(2)+"."+t.ZeroPad(2)+"."+n},Object.defineProperty(t.prototype,"isMobile",{get:function(){return r.WindowManager.Instance.ActiveWindow.IsMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"monthsElements",{get:function(){var n=this;return this.monthValues.map(function(t,i){return t===n.state.currentMonth&&(n.selectedMonthIdx=i),{value:t,description:r.YearMonth.MonthNames[i],name:"fn-item fn-m"}})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yearsElements",{get:function(){var n=this;return this.yearsValues.map(function(t,i){return t===n.state.currentYear&&(n.selectedYearIdx=i),{value:t,description:t.toString(),name:"fn-item fn-y"}})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconClasses",{get:function(){return h()({icon:!0,active:!0,disabled:!1})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"carouselComponents",{get:function(){var n=this;return u.a.createElement("div",{className:"tp-car"},u.a.createElement(r.Carousel,{ref:"m",elements:this.monthsElements,selectedIndex:this.selectedMonthIdx,isMobile:this.isMobile,showArrows:!0,height:336,width:125,elementHeight:48,onSelectElement:function(t){return n.onSelectMonth(t)}}),u.a.createElement(r.Carousel,{ref:"y",elements:this.yearsElements,selectedIndex:this.selectedYearIdx,isMobile:this.isMobile,showArrows:!0,height:336,width:125,elementHeight:48,onSelectElement:function(t){return n.onSelectYear(t)}}))},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this;return u.a.createElement("div",{ref:"tp-overlay","data-lparent":this.props.ownerName+"con",className:"tp-overlay-screen"},u.a.createElement("div",{ref:"tp-box",className:"tp-container y-m-con"},this.carouselComponents,u.a.createElement(r.DatePickerButtons,{renderOkBtn:!0,clearValue:this.props.isRequiered?null:function(t){return n.onClearValue(t)},setValue:function(){return n.onSetValue()},close:function(){return n.props.onClose()}})))},t}(r.ControlEventListener)},function(n,t,i){"use strict";var h;i.d(t,"a",function(){return h});var f,u,c=i(1),r=i.n(c),e=i(2),o=i(0),s=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});!function(n){n[n.Month=0]="Month";n[n.Year=1]="Year"}(u||(u={}));!function(n){function t(t){return n.call(this,t)||this}s(t,n);t.prototype.onClick=function(n){this.props.onClick(n)};Object.defineProperty(t.prototype,"id",{get:function(){return this.props.id},enumerable:!1,configurable:!0});Object.defineProperty(t.prototype,"classnames",{get:function(){return this.props.className},enumerable:!1,configurable:!0});t.prototype.createContent=function(){return r.a.createElement("div",null,this.props.text)};t.prototype.render=function(){return r.a.createElement(o.ClickableElement,{parent:this})}}(r.a.Component);h=function(n){function t(t){var i=n.call(this,t)||this;return i.values=i.props.mode===u.Month?e.a.range(0,12,1):e.a.range(1899,2099,1),i}return s(t,n),t.prototype.onSelectElement=function(n){this.props.onClick(n.value);this.props.onClose()},Object.defineProperty(t.prototype,"yearsElements",{get:function(){var n=this;return this.values.map(function(t,i){return t===n.props.currentYear&&(n.selectedIndex=i),{value:t,description:t.toString(),name:"fn-item fn-y"}})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"monthsElements",{get:function(){var n=this;return this.values.map(function(t,i){var r=n.props.monthNames[i];return t===n.props.currentMonth&&(n.selectedIndex=i),{value:t,description:r,name:"fn-item fn-m"}})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"collectionElements",{get:function(){return this.props.mode===u.Month?this.monthsElements:this.yearsElements},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this;return r.a.createElement("div",{onClick:function(){return n.props.onClose()},className:"fn-con-overlay"},r.a.createElement("div",{className:"fn-con"},r.a.createElement(o.Carousel,{isMobile:this.props.isMobile,autoSelect:!0,showArrows:!0,height:432,width:200,elementHeight:48,elements:this.collectionElements,selectedIndex:this.selectedIndex,onSelectElement:function(t){return n.onSelectElement(t)}})))},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var u,o=i(1),f=i.n(o),r=i(0),s=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){return n.call(this,t)||this}return s(t,n),Object.defineProperty(t.prototype,"paletteId",{get:function(){return this.props.dataElement.Name+"_palette"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paletteConnectors",{get:function(){return[{id:"Basic Connector",type:r.ConnectorType[r.ConnectorType.Orthogonal],sourcePoint:{x:0,y:0},targetPoint:{x:60,y:60},targetDecorator:{shape:"Arrow"},style:{strokeWidth:1}},{id:"Dashed Connector",type:r.ConnectorType[r.ConnectorType.Orthogonal],sourcePoint:{x:0,y:0},targetPoint:{x:40,y:40},targetDecorator:{shape:"Arrow"},style:{strokeWidth:2,strokeDashArray:"4,4"}},{id:"Dotted Connector",type:r.ConnectorType[r.ConnectorType.Orthogonal],sourcePoint:{x:0,y:0},targetPoint:{x:40,y:40},style:{strokeDashArray:"2,2"}}]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paletteShapes",{get:function(){return[this.createSingleShapePalette(r.LanguageConstants.RESOURCES.Str_Task,"Task"),this.createSingleShapePalette(r.LanguageConstants.RESOURCES.Str_TaskStart,"Task","InstantiatingReceive"),this.createSingleShapePalette(r.LanguageConstants.RESOURCES.Str_TaskUser,"Task","User"),this.createSingleShapePalette(r.LanguageConstants.RESOURCES.Str_TaskService,"Task","Service"),this.createSingleShapePalette(r.LanguageConstants.RESOURCES.Str_TaskSend,"Task","Send"),this.createSingleShapePalette(r.LanguageConstants.RESOURCES.Str_SubProcess,"SubProcess")]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paletteArtifacts",{get:function(){return[{id:r.LanguageConstants.RESOURCES.Str_Dataobject,width:35,height:35,offsetX:500,offsetY:100,shape:{type:r.ShapeGroup[r.ShapeGroup.Bpmn],shape:r.ShapeType[r.ShapeType.DataObject],dataObject:{collection:!1,type:"None"}}},{id:r.LanguageConstants.RESOURCES.Str_TextAnnotation,shape:{type:r.ShapeGroup[r.ShapeGroup.Bpmn],shape:r.ShapeType[r.ShapeType.TextAnnotation]},width:35,height:35,offsetX:500,offsetY:100,annotations:[{content:""}]}]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paletteSwimlane",{get:function(){return[{id:r.LanguageConstants.RESOURCES.Str_ProcessRole,shape:{type:r.ShapeGroup[r.ShapeGroup.SwimLane],lanes:[{id:"lane1",style:{strokeColor:"black"},height:200,width:150,header:{width:50,height:50,style:{strokeColor:"black",fontSize:11}}}],orientation:"Horizontal",isLane:!0},height:60,width:140,offsetX:70,offsetY:30}]},enumerable:!1,configurable:!0}),t.prototype.createSingleShapePalette=function(n,t,i){var u={id:n,shape:{type:r.ShapeGroup[r.ShapeGroup.Bpmn],shape:"Activity",activity:{activity:t,task:{},subProcess:{}}},width:35,height:35,offsetX:700,offsetY:700},f=u.shape.activity;return"Task"===t&&i?f.task={type:i}:"SubProcess"===t&&(f.subProcess={collapsed:!0}),u},t.prototype.getNodeDefaults=function(n){n.id===r.LanguageConstants.RESOURCES.Str_Dataobject?(n.width=65,n.height=85):n.id===r.LanguageConstants.RESOURCES.Str_Task||n.id===r.LanguageConstants.RESOURCES.Str_TaskStart||n.id===r.LanguageConstants.RESOURCES.Str_TaskUser||n.id===r.LanguageConstants.RESOURCES.Str_TaskService||n.id===r.LanguageConstants.RESOURCES.Str_TaskSend||n.id===r.LanguageConstants.RESOURCES.Str_SubProcess?(n.width=160,n.height=84):n.id===r.LanguageConstants.RESOURCES.Str_TextAnnotation?(n.width=140,n.height=70):(n.width=100,n.height=50)},t.prototype.getSymbolInfo=function(){return{fit:!0}},t.prototype.createPaletteModel=function(){var n=this;return{id:"diagramPallette",width:this.props.width,height:this.props.height,expandMode:"Multiple",palettes:[{id:"swimlane",expanded:!0,symbols:this.paletteSwimlane,title:r.LanguageConstants.RESOURCES.Str_Organization},{id:"Bpmn",expanded:!0,symbols:this.paletteShapes,iconCss:"shapes",title:r.LanguageConstants.RESOURCES.Str_Tasks},{id:"Others",expanded:!0,symbols:this.paletteArtifacts,iconCss:"shapes",title:r.LanguageConstants.RESOURCES.Str_Artifacts}],symbolHeight:60,symbolWidth:60,symbolMargin:{left:15,right:15,top:15,bottom:15},getNodeDefaults:function(t){return n.getNodeDefaults(t)},getSymbolInfo:function(t){return n.getSymbolInfo(t)}}},t.prototype.renderBrowser=function(){var n=this.props.paletteModule.ExtendedPaletteComponent,t=this.props.diagramModule.BpmnDiagrams,i=this.props.diagramModule.DataBinding,r=this.props.diagramModule.DiagramContextMenu,u=this.props.paletteModule.Inject,o=this.props.diagramModule.UndoRedo;return f.a.createElement("div",{ref:"palette",id:this.paletteId,className:"diagram-palette",style:{width:this.props.width,height:"100%"}},f.a.createElement(n,e({},this.createPaletteModel()),f.a.createElement(u,{services:[t,r,i,o]})))},t}(r.ControlBase)},function(n,t,i){"use strict";var r,u,f,e,o,s,h,c,l,a,v,y,p,w,b;i.d(t,"n",function(){return r});i.d(t,"f",function(){return u});i.d(t,"k",function(){return f});i.d(t,"l",function(){return e});i.d(t,"o",function(){return o});i.d(t,"d",function(){return s});i.d(t,"j",function(){return h});i.d(t,"m",function(){return c});i.d(t,"c",function(){return l});i.d(t,"a",function(){return a});i.d(t,"b",function(){return v});i.d(t,"g",function(){return y});i.d(t,"i",function(){return p});i.d(t,"h",function(){return w});i.d(t,"e",function(){return b}),function(n){n[n.None=0]="None";n[n.Horizontal=1]="Horizontal";n[n.Vertical=2]="Vertical"}(r||(r={})),function(n){n[n.SwimLane=0]="SwimLane";n[n.Lane=1]="Lane";n[n.Shape=2]="Shape";n[n.Connector=3]="Connector"}(u||(u={})),function(n){n[n.Bpmn=0]="Bpmn";n[n.SwimLane=1]="SwimLane"}(f||(f={})),function(n){n[n.Task=0]="Task";n[n.SubProcess=1]="SubProcess";n[n.DataObject=2]="DataObject";n[n.TextAnnotation=3]="TextAnnotation";n[n.Basic=4]="Basic";n[n.Dotted=5]="Dotted"}(e||(e={})),function(n){n[n.Task=0]="Task";n[n.InstantiatingReceive=1]="InstantiatingReceive";n[n.User=2]="User";n[n.Service=3]="Service";n[n.Send=4]="Send"}(o||(o={})),function(n){n[n.Straight=0]="Straight";n[n.Orthogonal=1]="Orthogonal";n[n.Bezier=2]="Bezier"}(s||(s={})),function(n){n[n.Start=0]="Start";n[n.Progress=1]="Progress";n[n.Completed=2]="Completed"}(h||(h={})),function(n){n[n.Start=0]="Start";n[n.Progress=1]="Progress";n[n.Completed=2]="Completed"}(c||(c={})),function(n){n[n.Changing=0]="Changing";n[n.Changed=1]="Changed";n[n.Completed=2]="Completed"}(l||(l={})),function(n){n[n.Changing=0]="Changing";n[n.Changed=1]="Changed"}(a||(a={})),function(n){n[n.Removal=0]="Removal";n[n.Addition=1]="Addition"}(v||(v={})),function(n){n[n.Id=0]="Id";n[n.NodeText=1]="NodeText";n[n.Shape=2]="Shape";n[n.ShapeGroup=3]="ShapeGroup";n[n.ShapeType=4]="ShapeType";n[n.IconName=5]="IconName";n[n.Size=6]="Size";n[n.Related=7]="Related";n[n.From=8]="From";n[n.To=9]="To";n[n.sourcePoint=10]="sourcePoint";n[n.targetPoint=11]="targetPoint";n[n.sourcePortID=12]="sourcePortID";n[n.targetPortID=13]="targetPortID"}(y||(y={})),function(n){n[n.Visible=1]="Visible";n[n.Hidden=2]="Hidden";n[n.Hover=4]="Hover";n[n.Connect=8]="Connect"}(p||(p={})),function(n){n[n.None=1]="None";n[n.Drag=2]="Drag";n[n.Draw=4]="Draw";n[n.InConnect=8]="InConnect";n[n.OutConnect=16]="OutConnect";n[n.Default=24]="Default"}(w||(w={})),function(n){n[n.None=1]="None";n[n.Bridging=2]="Bridging";n[n.UndoRedo=4]="UndoRedo";n[n.Tooltip=8]="Tooltip";n[n.UserInteraction=16]="UserInteraction";n[n.ApiUpdate=32]="ApiUpdate";n[n.PageEditable=48]="PageEditable";n[n.Zoom=64]="Zoom";n[n.PanX=128]="PanX";n[n.PanY=256]="PanY";n[n.Pan=384]="Pan";n[n.ZoomTextEdit=512]="ZoomTextEdit";n[n.Virtualization=1024]="Virtualization";n[n.LineRouting=2048]="LineRouting";n[n.Default=500]="Default"}(b||(b={}))},function(){},function(n,t,i){"use strict";var h;i.d(t,"b",function(){return u});i.d(t,"a",function(){return h});var e,u,c=i(1),r=i.n(c),l=i(3),o=i.n(l),f=i(0),a=(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(){return(s=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)};!function(n){n[n.Hidden=0]="Hidden";n[n.Warning=1]="Warning";n[n.Error=2]="Error";n[n.Info=3]="Info";n[n.Question=4]="Question"}(u||(u={}));h=function(n){function t(t){var i=n.call(this,t)||this;return i.props.isMobile||(i.keyNavigator=new f.DialogKeyNavigator(i)),i.state={version:i.props.dataElement?i.props.dataElement.Version:0,type:i.props.type},i}return a(t,n),t.prototype.componentDidMount=function(){this.keyNavigator&&this.keyNavigator.onComponentDidMount();this.barDom=this.refs.titleBar;this.dialogDom=this.refs.dialog;n.prototype.componentDidMount.call(this);this.setFocusedControl(!0)},t.prototype.componentDidUpdate=function(t,i,r){n.prototype.componentDidUpdate.call(this,t,i,r);this.setFocusedControl(!1)},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.keyNavigator&&this.keyNavigator.onComponentWillUnmount()},t.prototype.componentWillReceiveProps=function(n){n.type===this.props.type&&n.sections===this.props.sections||this.updateStateType(n.type)},t.prototype.initEventListeners=function(){this.mouseMoveHandler=this.mouseMoveListener.bind(this);this.eventRegistrar.registerEventListener({domElement:this.barDom,type:"mousedown",handler:this.dialogMouseDownListener.bind(this)});this.eventRegistrar.registerEventListener({domElement:this.barDom,type:"mouseup",handler:this.mouseUpListener.bind(this)});this.eventRegistrar.registerEventListener({domElement:this.refs["modal-overlay"],type:"wheel",handler:this.mouseWheelListener.bind(this)})},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.prepareClasses=function(){this.classes={};this.classes.modal=!0;this.classes.warning=this.IsWarning;this.classes.error=this.IsError;this.classes.info=this.IsInfo;this.classes.question=this.IsQuestion},t.prototype.prepareStyle=function(){var n=document.body.getBoundingClientRect(),r=n.width?n.width:window.innerWidth,u=n.height?n.height:window.innerHeight,t=500,i=300,f,e;this.props.location&&(t=Math.max(Math.min(this.props.location.MinWidth+30,r-100),600),i=Math.max(Math.min(this.props.location.MinHeight+100,u-100),400));f=(r-t)/2;e=(u-i)/2;this.dialogStyle={left:f,top:e,width:t,height:i};this.contentStyle={width:"100%",height:"100%"}},Object.defineProperty(t.prototype,"defaultCommands",{get:function(){return[{Name:this.props.closeRedirect?"close":"redirect",Caption:"OK"}]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dialogCommands",{get:function(){return this.props.commands?this.props.commands:this.defaultCommands},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsWarning",{get:function(){return this.props.type===u.Warning},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsError",{get:function(){return this.props.type===u.Error},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsInfo",{get:function(){return this.props.type===u.Info},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsQuestion",{get:function(){return this.props.type===u.Question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsMobile",{get:function(){return this.props.isMobile},enumerable:!1,configurable:!0}),t.prototype.dialogMouseDownListener=function(n){n.preventDefault();n.stopPropagation();var t=this.dialogDom.getBoundingClientRect();this.diffX=n.clientX-t.left;this.diffY=n.clientY-t.top;window.addEventListener("mousemove",this.mouseMoveHandler,!0)},t.prototype.mouseMoveListener=function(n){var r=document.body.getBoundingClientRect(),f=r.width?r.width:window.innerWidth,e=r.height?r.height:window.innerHeight,u=this.dialogDom.getBoundingClientRect(),t=n.clientX-this.diffX,i=n.clientY-this.diffY;t<0&&(t=0);i<0&&(i=0);t+u.width>f&&(t=f-u.width);i+u.height>e&&(i=e-u.height);this.dialogDom.style.top=i+"px";this.dialogDom.style.left=t+"px"},t.prototype.mouseUpListener=function(n){n.preventDefault();n.stopPropagation();window.removeEventListener("mousemove",this.mouseMoveHandler,!0)},t.prototype.mouseWheelListener=function(n){n.preventDefault();n.stopPropagation()},t.prototype.updateStateType=function(n){this.setState({type:n})},t.prototype.setFocusedControl=function(){this.props.isMobile||this.domElement.focus()},t.prototype.onClick=function(n){n.stopPropagation();n.preventDefault();this.updateStateType(u.Hidden)},t.prototype.onDialogClose=function(n){n.target===this.refs["modal-overlay"]&&this.props.onDialogClose&&(n.stopPropagation(),n.preventDefault(),this.props.onDialogClose(n))},t.prototype.onCommandClick=function(n){if(this.props.onDialogCommandClick)this.props.onDialogCommandClick(n);else if(this.updateStateType(u.Hidden),this.props.closeRedirect){var t=new f.UriHelper(document.location.href),i=f.StorageHelper.GetDBName();i||(i=Object(f.GetValueFormNode)(null,"db",!0));window.location.href=t.Protocol+"//"+t.Host+"/Login/"+i+"?path="+t.Hash.replace("#","")}},t.prototype.calculateZIndex=function(){var n=f.WindowManager.Instance.ActiveWindow,i=2e5,t,r;return n&&n.LocalID.toString()===this.props.id&&n.Parent&&"Modal"===n.Parent.Mode&&(t=document.getElementById(n.Parent.LocalID.toString()+"_overlay"),t&&(r=window.getComputedStyle(t).getPropertyValue("z-index"),i=parseInt(r)+1)),i},t.prototype.renderTitle=function(){var t=this,i=this.props.defaultIconSvg?this.props.defaultIconSvg:null,n="informacja";return this.IsWarning?n="ostrzezenie":this.IsError?n="blad":this.IsQuestion&&(n="pytanie"),r.a.createElement("div",{className:"modal-bar",ref:"titleBar"},r.a.createElement("div",{className:"title"},r.a.createElement("span",null,this.props.caption)),r.a.createElement(f.SvgIcon,{classes:"icon",content:i,name:n,onClickUp:function(n){return t.mouseUpListener(n)}}))},t.prototype.renderContent=function(){var n=null,t;return(this.props.textHtml?n=r.a.createElement("div",{className:"modal-sections",style:this.contentStyle},r.a.createElement("div",{className:"section"},r.a.createElement("div",{className:"label",dangerouslySetInnerHTML:{__html:this.props.textHtml}}))):this.props.sections&&this.props.sections.length>0?n=r.a.createElement("div",{className:"modal-sections",style:this.contentStyle},this.props.sections.map(function(n){return r.a.createElement("div",{className:"section"},n)})):this.props.content&&(n=r.a.createElement("div",{className:"modal-sections",style:this.contentStyle},this.props.content)),!this.IsMobile&&n)?(t={name:"dialog"+this.props.type.toString(),top:50,left:0,bottom:50},r.a.createElement(f.Scroll,s({},t),n)):n},t.prototype.renderCommands=function(){var n=this;return r.a.createElement(f.DialogCommandBar,{id:this.props.id,ref:"dialog-buttons",isMobile:this.props.isMobile,commands:this.dialogCommands,onDialogCommandClick:function(t){return n.onCommandClick(t)}})},t.prototype.renderBrowser=function(){var i=this,n,t;return this.state.type===u.Hidden?null:(this.prepareClasses(),this.prepareStyle(),n=this.calculateZIndex(),t={},2e5!==n&&(t={zIndex:n}),r.a.createElement("div",{id:this.props.id+"_overlay",style:t,ref:"modal-overlay",className:"modal-overlay",onClick:function(n){return i.onDialogClose(n)}},r.a.createElement("div",{id:this.props.id,ref:"dialog",className:o()(this.classes),style:this.dialogStyle},this.renderTitle(),this.renderContent(),this.renderCommands())))},t.prototype.renderMobile=function(){var i=this,n,t;return this.state.type===u.Hidden?null:(this.prepareClasses(),n=this.calculateZIndex(),t={},2e5!==n&&(t={zIndex:n}),r.a.createElement("div",{id:this.props.id+"_overlay",ref:"modal-overlay",style:t,className:"modal-overlay",onClick:function(n){return i.onDialogClose(n)}},r.a.createElement("div",{id:this.props.id,className:o()(this.classes)},this.renderTitle(),this.renderContent(),this.renderCommands())))},t}(f.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var r,s=i(1),u=i.n(s),h=i(3),f=i.n(h),e=i(0),c=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},l=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return c(t,n),Object.defineProperty(t.prototype,"classnames",{get:function(){return f()({"command-modal":!0,"command-short":!this.props.caption})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsMobile",{get:function(){return this.props.isMobile},enumerable:!1,configurable:!0}),t.prototype.onClick=function(n){this.props.onClick&&(n.preventDefault(),n.stopPropagation(),this.props.onClick(this.props.id))},Object.defineProperty(t.prototype,"Icon",{get:function(){if(!this.props.icon)return null;var n={name:this.props.icon?this.props.icon.toLowerCase():"",classes:f()({icon:!0,active:!0,disabled:!1}),enabled:!0};return u.a.createElement(e.SvgIcon,o({},n))},enumerable:!1,configurable:!0}),t.prototype.createContent=function(){return this.props.caption?u.a.createElement("div",{className:"title"},this.props.caption):this.props.icon?this.Icon:void 0},t.prototype.prepareStyle=function(){this.style={};this.props.dataElement&&!this.props.dataElement.Location.IsVisible&&(this.style.display="none")},t.prototype.renderBrowser=function(){var n=this;return this.prepareStyle(),u.a.createElement("div",{id:this.props.id,style:this.style,className:this.classnames,onClick:function(t){return n.onClick(t)}},this.createContent())},t}(e.Command)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.id+"_commands"},enumerable:!1,configurable:!0}),t.prototype.onCommandClick=function(n){this.props.onDialogCommandClick(n)},t.prototype.createCommands=function(){var n=this;return this.props.commands.map(function(t,i){return u.a.createElement(f.DialogCommand,{ref:t.Name,key:i,id:t.Name,isMobile:n.props.isMobile,caption:t.Caption,icon:t.icon,dataElement:t.DataElement,onClick:function(t){return n.onCommandClick(t)}})},this)},t.prototype.render=function(){return u.a.createElement("div",{className:"modal-buttons"},this.createCommands())},t}(f.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){var i=n.call(this,t)||this;return i.allowFocusCurrent=!0,i}return f(t,n),t.prototype.initItems=function(){var i,t,r,u;if(n.prototype.initItems.call(this),i=this.reactElement.refs["dialog-buttons"],i){t=i.refs;for(r in t)t.hasOwnProperty(r)&&(u=t[r],this.navigationItems.push(u))}},t.prototype.accept=function(n){this.currentItem&&(this.currentItem.onClick(n.event),n.setHandled())},t}(u.ComponentKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,o=i(1),r=i.n(o),s=i(3),u=i.n(s),e=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.animOn=!1,i.className="feature",i.animOn=!1,i.state={version:i.state.version},i}return h(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.animOn=!0},Object.defineProperty(t.prototype,"checkImage",{get:function(){return this.IsStandardProduct?r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 80,0 C 35.84,0 0,35.84 0,80 c 0,44.16 35.84,80 80,80 44.16,0 80,-35.84 80,-80 C 160,35.84 124.16,0 80,0 Z m 44.85156,42.427734 a 7.50075,7.50075 0 0 1 5.45117,12.875 L 70.302734,115.30273 a 7.50075,7.50075 0 0 1 -10.607422,0 l -30,-29.999996 A 7.50075,7.50075 0 1 1 40.302734,74.697266 L 64.998047,99.394531 119.69531,44.697266 a 7.50075,7.50075 0 0 1 5.15625,-2.269532 z"})):r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 37.966797 0 C 16.933576 0 1.1749547e-016 16.933576 0 37.966797 L 0 122.0332 C 0 143.06642 16.933576 160 37.966797 160 L 122.0332 160 C 143.06642 160 160 143.06642 160 122.0332 L 160 37.966797 C 160 16.933576 143.06642 1.1749547e-016 122.0332 0 L 37.966797 0 z M 123.49609 40.394531 A 7.50075 7.50075 0 0 1 128.94727 53.269531 L 68.947266 113.26953 A 7.50075 7.50075 0 0 1 58.339844 113.26953 L 28.339844 83.269531 A 7.50075 7.50075 0 1 1 38.947266 72.664062 L 63.642578 97.361328 L 118.33984 42.664062 A 7.50075 7.50075 0 0 1 123.49609 40.394531 z "}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unCheckImage",{get:function(){return this.IsStandardProduct?r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 80,0 C 35.894687,0 0,35.894686 0,80 c 0,44.10531 35.894687,80 80,80 44.10531,0 80,-35.89469 80,-80 C 160,35.894685 124.10531,0 80,0 Z m 0,10 c 38.69469,0 70,31.305315 70,70 0,38.69469 -31.30532,70 -70,70 C 41.305315,150 10,118.69469 10,80 10,41.305314 41.305315,10 80,10 Z"})):r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 38.082031,0 C 17.070854,0 0,17.070854 0,38.082031 L 0,121.91797 C 0,142.92915 17.070854,160 38.082031,160 l 83.835939,0 C 142.92915,160 160,142.92915 160,121.91797 l 0,-83.835939 C 160,17.070854 142.92915,0 121.91797,0 L 38.082031,0 Z m 0,10 83.835939,0 C 137.56212,10 150,22.437882 150,38.082031 l 0,83.835939 C 150,137.56212 137.56212,150 121.91797,150 l -83.835939,0 C 22.437882,150 10,137.56212 10,121.91797 L 10,38.082031 C 10,22.437882 22.437882,10 38.082031,10 Z"}))},enumerable:!1,configurable:!0}),t.prototype.onClick=function(){this.props.featureElement.postGroup();this.updateSelected()},Object.defineProperty(t.prototype,"id",{get:function(){return"ft-"+this.props.featureElement.ID},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentName",{get:function(){return null!==this.props.featureElement.Parent?this.props.featureElement.Parent.Name:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconclasses",{get:function(){return u()({icon:!0})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return"feature-content"},enumerable:!1,configurable:!0}),t.prototype.onSelect=function(n){n.preventDefault();n.stopPropagation();this.props.featureElement.postGroupex();this.updateSelected()},t.prototype.updateSelected=function(){},Object.defineProperty(t.prototype,"checkBoxClasses",{get:function(){var n={};return n["check-open"]=this.props.featureElement.Selected,n["check-close"]=!this.props.featureElement.Selected,n["anim-open"]=this.props.featureElement.Selected&&this.animOn,n["anim-close"]=!this.props.featureElement.Selected&&this.animOn,u()(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMore",{get:function(){return this.props.featureElement.IsCollapsed||this.props.header&&!this.props.featureElement.Selected&&!this.props.featureElement.IsRoot},enumerable:!1,configurable:!0}),t.prototype.emptyHandler=function(n){n.preventDefault();n.stopPropagation()},t.prototype.buildCheckBox=function(){var n=this,t;return this.props.header||this.props.featureElement.IsGroup||this.props.featureElement.IsRoot?null:(t=this.props.featureElement.Selected?this.checkImage:this.unCheckImage,r.a.createElement("div",{onClick:function(t){return n.onSelect(t)},onMouseDown:function(t){return n.emptyHandler(t)},onMouseUp:function(t){return n.emptyHandler(t)},className:this.checkBoxClasses},t))},t.prototype.buildTextBox=function(){var n={};return this.hasMore||(n.overflow="hidden",n.width=this.props.header?"100%":"calc(100% - 32px)"),r.a.createElement("div",{className:"text",style:n},this.props.featureElement.Name)},t.prototype.buildIconDiv=function(){var n=null,t;return this.hasMore&&(t=this.props.header?"naprzod":"wiecej_h",n=r.a.createElement(e.SvgIcon,{name:t,classes:this.iconclasses})),n},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.selected=this.props.featureElement.Selected;this.classes.coll=!this.props.header;this.classes.exp=this.props.header;this.classes[this.props.featureElement.Type.toLowerCase()]=this.props.featureElement.IsGroup},t.prototype.createContent=function(){return this.prepareClasses(),r.a.createElement("div",{className:u()(this.classes)},this.buildCheckBox(),this.buildTextBox(),this.buildIconDiv())},t.prototype.renderMobile=function(){return r.a.createElement(e.ClickableElement,{parent:this})},t.prototype.renderBrowser=function(){var n=this;return this.prepareClasses(),this.prepareStyle(),r.a.createElement("div",{id:this.id,onClick:function(t){return n.onClick(t)},className:this.classnames},r.a.createElement("div",{className:u()(this.classes)},this.buildCheckBox(),this.buildTextBox(),this.buildIconDiv()))},t}(e.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(3),f=i.n(e),r=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.editorClasses={},i}return o(t,n),t.getControlType=function(n){switch(n.EditorType?"Field"+n.EditorType:"FieldInput"){case"FieldInput":return n.hasClass("LocatorItem")?r.GridLocator:r.FieldInput;case"FieldMemoText":return n.hasClass("RichEdit")?r.FieldRichEdit:n.hasClass("XmlEdit")||n.hasClass("DataTextEdit")?r.FieldCodeEdit:r.FieldMemoText;case"FieldAlgorithm":return r.FieldCodeEdit;case"FieldTextRight":return r.FieldTextRight;case"FieldCheckBox":return r.GlobalSettings.Instance.IsStandardProduct?r.FieldCheckBox:r.FieldCheckBoxPremium;case"FieldRadio":return r.FieldRadioButton;case"FieldDate":return r.FieldDate;case"FieldYearMonth":return r.FieldYearMonth;case"FieldTime":return r.FieldTime;case"FieldFromTo":return r.FieldDate;case"FieldLookup":return r.FieldLookup;case"FieldDic":return r.FieldCombo;case"FieldDicEdit":return r.FieldDictionary;case"FieldImage":return r.FieldImage;case"FieldRating":return r.FieldRating;case"FieldSignature":return r.FieldSignature;case"FieldPhone":return r.FieldPhone;case"FieldEmail":return r.FieldEmail;case"FieldSkype":return r.FieldSkype;case"FieldHyperlink":return r.FieldHyperlink;case"FieldFolder":return r.FieldSaveFile;case"FieldFileUpload":return r.FieldFileUpload;case"FieldSaveFile":return r.FieldSaveFile;case"FieldColor":return r.FieldColor;case"FieldGsm":return r.FieldGsm;case"FieldStopwatch":return r.FieldStopwatch;default:return r.FieldInput}},t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);var t=this.props.dataElement.Window,i=document.getElementById("Modal"===t.Mode?t.LocalID.toString():"container");this.domKeyWalker=new r.KeyboardDomTreeWalker(i);this.domMouseWalker=new r.MouseDomTreeWalker(i)},Object.defineProperty(t.prototype,"ID",{get:function(){return this.props.dataElement.ID},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.props.dataElement.Name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EipMode",{get:function(){return this.props.dataElement.Parent&&"Grid"===this.props.dataElement.Parent.ElementType&&this.props.dataElement.Settings.ColumnSettings&&this.props.dataElement.Settings.ColumnSettings.EipMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GridDataElement",{get:function(){return this.EipMode?this.props.dataElement.Parent:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EipExtender",{get:function(){var n=this.GridDataElement;return n&&!this._eipExtender&&(this._eipExtender=new r.GridEipExtender(n)),this._eipExtender},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CaptionHtml",{get:function(){return this.props.dataElement.CaptionHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayHtml",{get:function(){return this.props.dataElement.DisplayHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DescriptionHtml",{get:function(){return this.props.dataElement.DescriptionHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EditValue",{get:function(){return this.props.dataElement.EditValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Editable",{get:function(){return this.props.dataElement.Editable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EndArchived",{get:function(){return this.props.dataElement.EndArchived},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EditorType",{get:function(){return this.props.dataElement.EditorType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Location",{get:function(){return this.props.dataElement.Location},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FieldClasses",{get:function(){return f()(this.classes)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EditorClasses",{get:function(){return f()(this.editorClasses)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsMultilineLabel",{get:function(){return!(!this.props.dataElement||!this.props.dataElement.hasClass("MultilineLabel"))||this.Location.Height>=30},enumerable:!1,configurable:!0}),t.prototype.navigate=function(n){if(!n)return null;n.isKeyboardEvent?this.domKeyWalker.navigate(n.eventProps):n.isMouseEvent&&this.domMouseWalker.navigate(n.eventProps)},t.prototype._postEipEditValueChanged=function(n,t,i){var u=this,f=this.GridDataElement,e=function(n){u.EipExtender.openNextEipEditor({rowId:u.EipExtender.FocusedRow,columnIdx:u.props.dataElement.GridColumnIdx,forceOpenNewRow:!0},n)};t!==this.EditValue&&t!==this.DisplayHtml?this.props.dataElement.pPost(n,t).then(function(n){if(n){var t=f.Window.Handle===r.WindowManager.Instance.ActiveWindow.Handle;!f.Window.hasVerifiersError&&t&&e(i)}}):e(i)},t.prototype._postEditValueChanged=function(n,t,i){var f=this,u=this.props.dataElement;t!==this.EditValue&&t!==this.DisplayHtml?u.pPost(n,t).then(function(){var n=u.Window.Handle===r.WindowManager.Instance.ActiveWindow.Handle;!u.Window.hasVerifiersError&&n&&f.navigate(i)}):this.navigate(i)},t.prototype.postEditValueChanged=function(n,t,i){this.props.dataElement.Window.RemoveVerifierByDataElement(this.props.dataElement,!0);this.EipMode?this._postEipEditValueChanged(n,t,i):this._postEditValueChanged(n,t,i)},t.prototype.postEipEditorClose=function(n){this.props.dataElement.Window.RemoveVerifierByDataElement(this.props.dataElement,!0);n!==this.EditValue&&n!==this.DisplayHtml&&this.props.dataElement.post("",n)},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.editorClasses={};this.props.dataElement.VerifierState&&(this.classes[this.props.dataElement.VerifierState.toLowerCase()]=!0);this.props.dataElement.Class&&(this.classes[this.props.dataElement.Class.toLowerCase()]=!0);this.classes.field=!0;this.props.dataElement.Window.Mode&&(this.classes["field-"+this.props.dataElement.Window.Mode.toLocaleLowerCase()]=!0)},t.prototype.prepareStyle=function(){if(n.prototype.prepareStyle.call(this),this.EipMode){var t=Math.max(r.GridBase.CheckBoxColumnSize,this.props.dataElement.Settings.ColumnSettings.EipHeight)-2;this.style.top="1px";this.style.left="1px";this.style.right="1px";this.style.height=t+"px";this.style.width="unset"}},t.prototype.onChange=function(n){n.stopPropagation();n.preventDefault()},t.prototype.onEditValueChanged=function(n,t){n.stopPropagation();n.preventDefault();t||(t=new r.EipEventProps("Mouse"));this.postEditValueChanged("",n.target.value,t)},t.prototype.onCloseEditor=function(){this.EipMode&&this.EipExtender.closeEipEditor()},t.prototype.onFocus=function(){this.props.dataElement&&this.props.dataElement.setFocused()},t.prototype.handler=function(n){(n.VerifiersChanged||n.PropertiesChanged)&&this.updateState()},t.prototype.renderAll=function(){return null},t.prototype.renderBrowser=function(){return this.prepareClasses(),this.prepareStyle(),this.renderAll()},t.prototype.renderMobile=function(){return this.prepareClasses(),this.renderAll()},t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){var i=n.call(this,t)||this;return i.stopSearchingForTips=!1,i.props.dataElement.ReactComponent=i,i}return f(t,n),t.prototype.resetPreviousValue=function(){(this.props.dataElement.DisplayHtml?this.props.dataElement.DisplayHtml:this.props.dataElement.EditValue)!==this.previousValue&&(this.previousValue="")},t.prototype.initItems=function(){this.props.dataElement.Editable?this.props.dataElement.post("lookupform",void 0):this.props.dataElement.post("form",void 0)},t.prototype.loadMoreItems=function(){this.props.dataElement.post("loadmore","")},Object.defineProperty(t.prototype,"lookupType",{get:function(){return this.props.dataElement.EditorType},enumerable:!1,configurable:!0}),t.prototype.handler=function(t){n.prototype.handler.call(this,t);(t.ListChanged||t.SelectionChange||t.PropertiesChanged)&&this.updateState();t.PropertiesChanged&&this.resetPreviousValue()},t.prototype.postLookupList=function(n){this.props.dataElement.postWithTag("lookuplist",n,n)},t.prototype.setDisableTouchEvents=function(n){this.props.dataElement.Window.Settings.DisableTouchEvents=n},t.prototype.onFocus=function(t){n.prototype.onFocus.call(this,t);this.stopSearchingForTips=!1},t.prototype.onEditValueChanged=function(t,i){this.props.dataElement.IsMobile||(this.stopSearchingForTips=!0);this.props.dataElement.Tag="";n.prototype.onEditValueChanged.call(this,t,i)},t.prototype.onEnterNewValue=function(n,t,i){this.postEditValueChanged(t,n,i)},t}(u.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"EditValue",{get:function(){return"true"===this.props.dataElement.EditValue},enumerable:!1,configurable:!0}),t.prototype.onEditValueChanged=function(n,t){this.postEditValueChanged("",n,t)},t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditorCheckBox,{id:this.Name,ref:this.Name,captionHtml:this.CaptionHtml,descriptionHtml:this.DescriptionHtml,editable:this.Editable,checked:this.EditValue,location:this.Location,isMobile:this.IsMobile,isMultiline:this.IsMultilineLabel,eipMode:this.EipMode,onCloseEditor:function(){return n.onCloseEditor()},onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)}}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"EditValue",{get:function(){return"true"===this.props.dataElement.EditValue},enumerable:!1,configurable:!0}),t.prototype.onEditValueChanged=function(n,t){this.postEditValueChanged("",n,t)},t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditorCheckBoxPremium,{id:this.Name,ref:this.Name,captionHtml:this.CaptionHtml,descriptionHtml:this.DescriptionHtml,editable:this.Editable,checked:this.EditValue,location:this.Location,isMobile:this.IsMobile,isMultiline:this.IsMultilineLabel,eipMode:this.EipMode,onCloseEditor:function(){return n.onCloseEditor()},onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)}}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,u=i(0),e=i(1),f=i.n(e),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["field-code"]=!0;this.editorClasses["editor-code"]=!0},t.prototype.onEditValueChanged=function(n){n!==this.props.dataElement.EditValue&&this.props.dataElement.post("",n)},Object.defineProperty(t.prototype,"IsAlgorithm",{get:function(){return"Algorithm"===this.props.dataElement.EditorType||this.props.dataElement.Class&&this.props.dataElement.Class.indexOf("AlgorithmEdit")>=0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsXml",{get:function(){return this.props.dataElement.Class&&this.props.dataElement.Class.indexOf("XmlEdit")>=0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CodeLanguage",{get:function(){return this.IsAlgorithm?"csharp":this.IsXml?"xml":"plaintext"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RenderWhitespace",{get:function(){return this.props.dataElement.Class&&this.props.dataElement.Class.indexOf("DataTextEdit")>=0?"all":"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSuggestionAvalible",{get:function(){return"nosuggestion"!==this.props.dataElement.Command},enumerable:!1,configurable:!0}),t.prototype.askForSuggestions=function(n){this.props.dataElement.Window.setFocusedElement(this.props.dataElement);n&&this.props.dataElement.post("suggestion",n)},t.prototype.renderAll=function(){var n=this;return f.a.createElement("div",{className:this.FieldClasses,style:this.style},f.a.createElement(u.EditorCode,{id:this.Name,editorLanguage:this.CodeLanguage,renderWhitespace:this.RenderWhitespace,captionHtml:this.CaptionHtml,descriptionHtml:this.DescriptionHtml,editable:this.Editable,editValue:this.EditValue,editorSelection:this.props.dataElement.EditorSelection,classes:this.EditorClasses,location:this.Location,isMobile:this.IsMobile,isAlghorithEdit:this.IsAlgorithm,isSuggestionAvalible:this.isSuggestionAvalible,isMultiline:this.IsMultilineLabel,askForSuggestions:function(t){return n.askForSuggestions(t)},onFocus:function(t){return n.onFocus(t)},onEditValueChanged:function(t){return n.onEditValueChanged(t)}}))},t}(u.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,u=i(0),e=i(1),f=i.n(e),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.onBlur=function(n){n.stopPropagation();n.preventDefault()},t.prototype.onEditValueChanged=function(n,t){this.postEditValueChanged("",n,t)},t.prototype.setActive=function(n){this.props.dataElement.Window.disableTouchEvents(n)},t.prototype.renderAll=function(){var n=this;return f.a.createElement("div",{id:"f-"+this.props.dataElement.Name,className:this.FieldClasses,style:this.style},f.a.createElement(u.ColorPicker,{parent:this,setActive:function(t){return n.setActive(t)},onCloseEditor:function(){return n.onCloseEditor()},onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)}}))},t}(u.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,u=i(0),e=i(1),f=i.n(e),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.onChange=function(n){var t=this;this.delaySendingValue&&clearTimeout(this.delaySendingValue);this.previousValue!==n&&(this.previousValue=n,this.delaySendingValue=setTimeout(function(){if(t.stopSearchingForTips)return t.stopSearchingForTips=!1,!1;""===n?(n=void 0,t.props.dataElement.post(null,null)):(t.props.dataElement.EditorSelection.SelectionText="",t.props.dataElement.postWithTag("lookuplist",n,n))},400))},t.prototype.renderAll=function(){var n=this;return f.a.createElement("div",{className:this.FieldClasses,style:this.style},f.a.createElement(u.EditCombo,{parent:this,ref:"editor",id:this.props.dataElement.Name,items:this.props.dataElement.Rows,sendAccept:this.props.dataElement.SendAccept,tag:this.props.dataElement.Tag,isMobile:this.IsMobile,eipMode:this.EipMode,editorSelection:this.props.dataElement.EditorSelection,initItems:function(){return n.initItems()},loadMoreItems:function(){return n.loadMoreItems()},setDisableTouchEvents:function(t){return n.setDisableTouchEvents(t)},onChange:function(t){return n.onChange(t)},onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)},onEnterNewValue:function(t,i,r){return n.onEnterNewValue(t,i,r)},onFocus:function(t){return n.onFocus(t)},onCloseEditor:function(){return n.onCloseEditor()}}))},t}(u.FieldLookupBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.editorClasses["editor-text"]=!0},Object.defineProperty(t.prototype,"IconName",{get:function(){switch(this.contactType){case"PhoneEdit":return"telefon";case"SkypeEdit":return"skype";case"EmailEdit":return"email";case"HyperlinkEdit":return"globus";default:return""}},enumerable:!1,configurable:!0}),t}(u.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.onEditValueChanged=function(n,t){this.postEditValueChanged("",n.target.value,t)},t.prototype.onEnterNewValue=function(n,t){this.postEditValueChanged("",n,t)},t.prototype.setActive=function(n){this.props.dataElement.Window.disableTouchEvents(n)},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["field-date"]=!0},t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.DatePicker,{id:this.Name,parent:this,isRange:"FromTo"===this.EditorType,onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)},onEnterNewValue:function(t,i){return n.onEnterNewValue(t,i)},modeYearMonth:!1,setActive:function(t){return n.setActive(t)},onFocus:function(t){return n.onFocus(t)},onCloseEditor:function(){return n.onCloseEditor()}}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.onEnterNewValue=function(t,i,r){n.prototype.onEnterNewValue.call(this,t,i,r);t===this.props.dataElement.EditValue||"addtext"!==i&&"removetext"!==i||this.props.dataElement.post("","removetext"===i?"":t)},t.prototype.onChange=function(n){var t=this;this.delaySendingValue&&clearTimeout(this.delaySendingValue);this.previousValue!==n&&(this.previousValue=n,this.delaySendingValue=setTimeout(function(){if(t.stopSearchingForTips)return t.stopSearchingForTips=!1,!1;var i=t.refs.editor;if(i&&!i.allowToSendValue)return!1;if(""!==n||t.props.dataElement.EditValue)if(""===n)n=void 0,t.props.dataElement.post(null,null);else{if(!t.props.dataElement.IsMobile&&i&&n!==i.input.value)return!1;t.props.dataElement.EditorSelection.SelectionText="";t.postLookupList(n)}else t.props.dataElement.EditorSelection.SelectionText=""},400))},t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditDictionary,{ref:"editor",parent:this,id:this.props.dataElement.Name,sendAccept:this.props.dataElement.SendAccept,items:this.props.dataElement.Rows,tag:this.props.dataElement.Tag,isMobile:this.IsMobile,eipMode:this.EipMode,editorSelection:this.props.dataElement.EditorSelection,initItems:function(){return n.initItems()},loadMoreItems:function(){return n.loadMoreItems()},setDisableTouchEvents:function(t){return n.setDisableTouchEvents(t)},onChange:function(t){return n.onChange(t)},onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)},onEnterNewValue:function(t,i,r){return n.onEnterNewValue(t,i,r)},onFocus:function(t){return n.onFocus(t)},onCloseEditor:function(){return n.onCloseEditor()}}))},t}(f.FieldLookupBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.contactType="EmailEdit",i}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.editorClasses["editor-email"]=!0},t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditorText,{id:this.Name,type:"text",captionHtml:this.CaptionHtml,descriptionHtml:this.DescriptionHtml,editable:this.Editable,editValue:this.EditValue,classes:this.EditorClasses,location:this.Location,isMobile:this.IsMobile,isMultiline:this.IsMultilineLabel,isClearable:this.IsMobile,eipMode:this.EipMode,iconName:this.IconName,onIconClick:function(){return n.props.dataElement.post("lookupform","")},onFocus:function(t){return n.onFocus(t)},onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)},onChange:function(t){return n.onChange(t)}}))},t}(f.FieldContact)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"attachToElementName",{get:function(){return this.props.dataElement.TagInfo.split(":")[1]},enumerable:!1,configurable:!0}),t.prototype.onFileUpload=function(){var n=this.refs.input;n&&Object(f.uploadFile)(n.files[0],this.props.dataElement.Name)},t.prototype.onClick=function(n){n.preventDefault();n.stopPropagation();Android&&Android.openFileChooser(f.WindowManager.Instance.CurrentWindow.Handle,this.props.dataElement.Name)},t.prototype.renderAll=function(){var n=this;return u.a.createElement("form",{name:"uploadForm",style:{display:"none"}},u.a.createElement("input",{id:this.props.dataElement.Name,ref:"input",className:"file-upload-input","data-id":this.attachToElementName,type:"file",onClick:function(t){return n.IsMobileApp?n.onClick(t):null},onChange:function(t){return n.onFileUpload(t)}}),u.a.createElement("input",{type:"submit",value:"Send file"}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,e=i(1),u=i.n(e),f=i(0),o=i(3),s=i.n(o),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.isRequesting=!1,i}return h(t,n),t.prototype.componentWillReceiveProps=function(n){this.refs.et&&n.dataElement.EditValue!==this.refs.et.state.editValue&&(this.isRequesting=!1)},t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.setLocalization()},t.prototype.componentDidUpdate=function(){this.setLocalization()},t.prototype.setLocalization=function(){if(!this.EditValue&&navigator&&navigator.geolocation){var n=this;navigator.geolocation.getCurrentPosition(function(t){return n.sendValue(t)})}},t.prototype.sendValue=function(n){this.isRequesting||(this.isRequesting=!0,this.props.dataElement.post("",n.coords.latitude+"+"+n.coords.longitude))},t.prototype.openLocalization=function(){this.EditValue&&this.props.dataElement.post("lookupform",void 0)},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["editor-text"]=!0;this.classes["editor-gsm"]=!0},t.prototype.renderAll=function(){var n=this;return this.prepareClasses(),this.IsMobile||this.IsMobileApp||this.prepareStyle(),u.a.createElement("div",{className:"field",style:this.style},u.a.createElement(f.EditorText,{ref:"et",id:this.Name,captionHtml:this.CaptionHtml,descriptionHtml:this.DescriptionHtml,editable:this.Editable,editValue:this.EditValue,eipMode:this.EipMode,classes:s()(this.classes),type:"text",iconName:"lokalizacja",onIconClick:function(){return n.openLocalization()},onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)},onChange:function(t){return n.onChange(t)}}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.contactType="HyperlinkEdit",i}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.editorClasses["editor-hyperlink"]=!0},t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditorText,{id:this.Name,type:"text",captionHtml:this.CaptionHtml,descriptionHtml:this.DescriptionHtml,editable:this.Editable,editValue:this.EditValue,classes:this.EditorClasses,location:this.Location,isMobile:this.IsMobile,isMultiline:this.IsMultilineLabel,isClearable:this.IsMobile,eipMode:this.EipMode,iconName:this.IconName,onIconClick:function(){return n.props.dataElement.post("lookupform","")},onFocus:function(t){return n.onFocus(t)},onEditValueChanged:function(t){return n.onEditValueChanged(t)},onChange:function(t){return n.onChange(t)}}))},t}(f.FieldContact)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["field-image"]=!0;this.classes.circle=this.props.dataElement.hasClass("ImageCircle")},t.prototype.renderMobile=function(){return n.prototype.renderMobile.call(this)},t.prototype.renderAll=function(){var n=this.props.dataElement.Settings.imageUrl||this.props.dataElement.EditValue;return this.props.dataElement.hasClass("ImageCircle"),u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.Image,{id:this.props.dataElement.Name,dataElement:this.props.dataElement,src:n}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.editorClasses["editor-text"]=!0},Object.defineProperty(t.prototype,"IsPassword",{get:function(){return this.props.dataElement.hasClass("PasswordEdit")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.IsPassword?"password":"text"},enumerable:!1,configurable:!0}),t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditorText,{id:this.Name,ref:"editor",type:this.Type,isPassword:"password"===this.Type,captionHtml:this.CaptionHtml,descriptionHtml:this.DescriptionHtml,editable:this.Editable,editValue:this.EditValue,classes:this.EditorClasses,location:this.props.dataElement.Location,isMobile:this.IsMobile,isMultiline:this.IsMultilineLabel,isClearable:this.IsMobile||"password"===this.Type,eipMode:this.EipMode,onFocus:function(t){return n.onFocus(t)},onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)},onCloseEditor:function(){return n.onCloseEditor()},onChange:function(t){return n.onChange(t)}}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),f=i.n(e),r=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.locatorCaption=r.LanguageConstants.RESOURCES.Str_LocatorCaption?r.LanguageConstants.RESOURCES.Str_LocatorCaption:i.CaptionHtml,i.location=new r.Location(""),i.location.Width=i.props.dataElement.Location.Width-70,i.location.Height=i.props.dataElement.Location.Height,i.location.Right=2,i.locatorElement=i.props.dataElement,i}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["field-locator"]=!0;this.editorClasses["editor-text"]=!0},t.prototype.invokeLocatorChanged=function(n,t){void 0===t&&(t=!1);void 0!==this.locatorValue&&this.locatorValue!==n&&(this.locatorElement._mark().GridLocatorChange={locatorValue:n,sendDelay:t},this.locatorElement._invoke())},Object.defineProperty(t.prototype,"locatorValue",{get:function(){return this.locatorElement.Settings.locatorValue||""},enumerable:!1,configurable:!0}),t.prototype.onClearValue=function(){this.invokeLocatorChanged("")},t.prototype.onChange=function(n){n.stopPropagation();n.preventDefault();this.invokeLocatorChanged(n.target.value,!0)},t.prototype.onEditValueChanged=function(n,t){n.stopPropagation();n.preventDefault();this.invokeLocatorChanged(n.target.value);this.navigate(t)},t.prototype.onFocus=function(){this.props.dataElement.Window.setFocusedElement(null)},t.prototype.prepareStyle=function(){var n=this.location.toCssProperties;this.style=n!=={}?n:null},t.prototype.handler=function(n){var t=n.GridLocatorChange;t&&t.forceUpdate&&this.updateState()},t.prototype.renderAll=function(){var n=this;return f.a.createElement("div",{className:this.FieldClasses,style:this.style},f.a.createElement(r.EditorText,{id:this.Name,type:"text",placeholder:this.locatorCaption,isOnlyPlaceholder:!0,iconName:"szukaj",editable:this.Editable,editValue:this.locatorValue,classes:this.EditorClasses,location:this.location,isMobile:this.IsMobile,isClearable:!0,disableSelectOnFocus:!0,onFocus:function(t){return n.onFocus(t)},onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)},onChange:function(t){return n.onChange(t)},onClearValue:function(){return n.onClearValue()}}))},t}(r.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.accept=function(){this.props.dataElement.Editable&&this.props.dataElement.post("accept",void 0)},t.prototype.onChange=function(n){var t=this;this.delaySendingValue&&clearTimeout(this.delaySendingValue);n.length>0&&(this.previousValue=n,this.delaySendingValue=setTimeout(function(){if(t.stopSearchingForTips)return t.stopSearchingForTips=!1,!1;t.props.dataElement.EditorSelection.SelectionText="";t.props.dataElement.postWithTag("lookuplist",n,n)},400))},t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditLookup,{ref:"editor",parent:this,id:this.props.dataElement.Name,items:this.props.dataElement.Rows,sendAccept:this.props.dataElement.SendAccept,tag:this.props.dataElement.Tag,isMobile:this.IsMobile,eipMode:this.EipMode,editorSelection:this.props.dataElement.EditorSelection,accept:function(){return n.accept()},initItems:function(){return n.initItems()},loadMoreItems:function(){return n.loadMoreItems()},setDisableTouchEvents:function(t){return n.setDisableTouchEvents(t)},onChange:function(t){return n.onChange(t)},onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)},onEnterNewValue:function(t,i,r){return n.onEnterNewValue(t,i,r)},onFocus:function(t){return n.onFocus(t)},onCloseEditor:function(){return n.onCloseEditor()}}))},t}(f.FieldLookupBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["field-memo"]=!0;this.editorClasses["editor-memo"]=!0},Object.defineProperty(t.prototype,"EditValue",{get:function(){return this.props.dataElement.EditValue.RemoveCarriageReturn()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Height",{get:function(){return 10},enumerable:!1,configurable:!0}),t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditorMemoText,{id:this.Name,captionHtml:this.CaptionHtml,descriptionHtml:this.DescriptionHtml,editable:this.Editable,editValue:this.EditValue,classes:this.EditorClasses,height:this.Height,type:"text",location:this.Location,isMobile:this.IsMobile,isMultiline:this.IsMultilineLabel,isClearable:this.IsMobile,isRichEdit:this.props.dataElement.hasClass("RichEdit"),onFocus:function(t){return n.onFocus(t)},onEditValueChanged:function(t){return n.onEditValueChanged(t)},onChange:function(t){return n.onChange(t)}}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),r=i.n(e),f=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.contactType="PhoneEdit",i}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["field-phone"]=!0;this.editorClasses["editor-phone"]=!0},Object.defineProperty(t.prototype,"smsIcon",{get:function(){var n=this;return this.IsMobileApp?r.a.createElement("div",{className:"editor-add-icon"},r.a.createElement(f.SvgIcon,{name:"komentarz",classes:"editor-icon active sms-icon",onClick:function(){return n.props.dataElement.post("lookupform2","")},enabled:!0})):null},enumerable:!1,configurable:!0}),t.prototype.onIconClick=function(){this.IsMobileApp&&this.props.dataElement.post("lookupform","")},t.prototype.renderAll=function(){var n=this;return r.a.createElement("div",{className:this.FieldClasses,style:this.style},r.a.createElement(f.EditorText,{id:this.Name,type:"text",captionHtml:this.CaptionHtml,descriptionHtml:this.DescriptionHtml,editable:this.Editable,editValue:this.EditValue,classes:this.EditorClasses,location:this.Location,isMobile:this.IsMobile,isMultiline:this.IsMultilineLabel,isClearable:this.IsMobile,eipMode:this.EipMode,iconName:this.IconName,onFocus:function(t){return n.onFocus(t)},onIconClick:function(){return n.onIconClick()},onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)},onChange:function(t){return n.onChange(t)}}),this.smsIcon)},t}(f.FieldContact)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"EditValue",{get:function(){return this.props.dataElement.EditValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRightAlign",{get:function(){return this.props.dataElement&&this.props.dataElement.hasClass("RightLabel")},enumerable:!1,configurable:!0}),t.prototype.onCheck=function(n){void 0!==n&&this.props.dataElement.post("",n)},t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditorRadioButton,{id:this.Name,captionHtml:this.CaptionHtml,descriptionHtml:this.DescriptionHtml,editable:this.Editable,checked:this.EditValue,isMobile:this.IsMobile,isRightAlign:this.isRightAlign,isMultiline:this.IsMultilineLabel,location:this.props.dataElement.Location,onCheck:function(t){return n.onCheck(t)}}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),f=i.n(e),r=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["field-range"]=!0},t.prototype.onChange=function(n){this.props.dataElement.post("",n)},t.prototype.renderAll=function(){var h=this,s;this.prepareStyle();var i=this.EditValue?this.EditValue.split(";"):null,u=/^([0-9])$|^([1-9][0-9]*)/,e=i[0],o=i[1],t=i[2],n=i[3];return e=u.test(e)?parseInt(e):0,o=u.test(o)?parseInt(o):0,t=u.test(t)?parseInt(t):100,n=u.test(n)&&n<t?parseInt(n):1,s=this.CaptionHtml||n?this.CaptionHtml?n?r.RangeSliderMode.advancedZoom:r.RangeSliderMode.advancedField:r.RangeSliderMode.zoom:r.RangeSliderMode.field,f.a.createElement("div",{className:this.FieldClasses,style:this.IsMobile?null:this.style},f.a.createElement(r.EditorRangeSlider,{captionHtml:this.CaptionHtml,descriptionHtml:this.DescriptionHtml,min:o,max:t,step:n,value:e,mode:s,isMobile:this.IsMobile,editable:this.Editable,isMultiline:this.IsMultilineLabel,onChange:function(n){return h.onChange(n)}}))},t}(r.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.editorClasses["editor-rating"]=!0},Object.defineProperty(t.prototype,"EditValue",{get:function(){return parseInt(this.props.dataElement.EditValue)},enumerable:!1,configurable:!0}),t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditorRating,{id:this.Name,captionHtml:this.CaptionHtml,editable:this.Editable,editValue:this.EditValue,ratingValue:5,classes:this.EditorClasses,location:this.Location,isMobile:this.IsMobile,isMultiline:this.IsMultilineLabel,onEditValueChanged:function(t){return n.onEditValueChanged(t)}}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["field-rte"]=!0;this.editorClasses["editor-rte"]=void 0===this.Editable||this.Editable;this.editorClasses["editor-html"]=!this.editorClasses["editor-rte"]},Object.defineProperty(t.prototype,"Height",{get:function(){return 10},enumerable:!1,configurable:!0}),t.prototype.onEditValueChanged=function(n){n!==this.props.dataElement.EditValue&&this.props.dataElement.post("",n)},t.prototype.onUploadImage=function(n){this.props.dataElement.post("putImage",n)},t.prototype.onPutImage=function(n){var i=!1,t;return n.fileName&&(t=document.getElementById(n.fileName),t&&(t.src=n.base64,i=!0)),i},t.prototype.handler=function(t){t.PutImageChange&&this.onPutImage(t.PutImageChange)||n.prototype.handler.call(this,t)},t.prototype.renderEditorRichText=function(){var n=this;return u.a.createElement(f.EditorRichText,{id:this.Name,captionHtml:this.CaptionHtml,editable:this.Editable,editValue:this.EditValue,classes:this.EditorClasses,height:this.Height,location:this.Location,isMobile:this.IsMobile,isMultiline:this.IsMultilineLabel,onFocus:function(t){return n.onFocus(t)},onEditValueChanged:function(t){return n.onEditValueChanged(t)},onUploadImage:function(t){return n.onUploadImage(t)}})},t.prototype.renderEditorHtml=function(){return u.a.createElement(f.EditorHtml,{id:this.Name,captionHtml:this.CaptionHtml,editable:this.Editable,editValue:this.EditValue,classes:this.EditorClasses,height:this.Height,location:this.Location,isMobile:this.IsMobile,isMultiline:this.IsMultilineLabel})},t.prototype.renderAll=function(){return u.a.createElement("div",{className:this.FieldClasses,style:this.style},this.Editable?this.renderEditorRichText():this.renderEditorHtml())},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this)},t.prototype.renderAll=function(){return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditorSaveFile,{dataElement:this.props.dataElement}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.editorClasses["editor-signature"]=!0},Object.defineProperty(t.prototype,"EditValue",{get:function(){return this.props.dataElement.EditValue},enumerable:!1,configurable:!0}),t.prototype.onEditValueChanged=function(n){n!==this.props.dataElement.EditValue&&this.props.dataElement.post("",n)},t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditorSignature,{id:this.Name,captionHtml:this.CaptionHtml,descriptionHtml:this.DescriptionHtml,editable:this.Editable,editValue:this.EditValue,classes:this.EditorClasses,location:this.Location,isMobile:this.IsMobile,isMultiline:this.IsMultilineLabel,onEditValueChanged:function(t){return n.onEditValueChanged(t)}}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.contactType="SkypeEdit",i}return o(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.editorClasses["editor-skype"]=!0},t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditorText,{id:this.Name,type:"text",captionHtml:this.CaptionHtml,descriptionHtml:this.DescriptionHtml,editable:this.Editable,editValue:this.EditValue,classes:this.EditorClasses,location:this.Location,isClearable:this.IsMobile,isMobile:this.IsMobile,isMultiline:this.IsMultilineLabel,eipMode:this.EipMode,iconName:this.IconName,onIconClick:function(){return n.props.dataElement.post("lookupform","")},onFocus:function(t){return n.onFocus(t)},onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)},onChange:function(t){return n.onChange(t)}}))},t}(f.FieldContact)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.onFocus=function(){},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["field-stopwatch"]=!0},t.prototype.renderAll=function(){return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.EditorStopwatch,{id:this.props.dataElement.Name,value:this.props.dataElement.EditValue}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.editorClasses["input-textRight"]=!0},t}(u.FieldInput)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.onEditValueChanged=function(n,t){this.postEditValueChanged("",n.target.value,t)},t.prototype.onEnterNewValue=function(n,t){this.postEditValueChanged("",n,t)},t.prototype.setActive=function(n){this.props.dataElement.Window.disableTouchEvents(n);document.body.classList.toggle("noscroll",n)},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["field-date"]=!0},t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.TimePicker,{parent:this,id:this.Name,onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)},onEnterNewValue:function(t,i){return n.onEnterNewValue(t,i)},setActive:function(t){return n.setActive(t)},onFocus:function(t){return n.onFocus(t)},onCloseEditor:function(){return n.onCloseEditor()}}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.onEditValueChanged=function(n,t){this.postEditValueChanged("",n.target.value,t)},t.prototype.onEnterNewValue=function(n,t){this.postEditValueChanged("",n,t)},t.prototype.setActive=function(n){this.props.dataElement.Window.disableTouchEvents(n)},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["field-date"]=!0},t.prototype.renderAll=function(){var n=this;return u.a.createElement("div",{className:this.FieldClasses,style:this.style},u.a.createElement(f.DatePicker,{id:this.Name,parent:this,onEditValueChanged:function(t,i){return n.onEditValueChanged(t,i)},onEnterNewValue:function(t,i){return n.onEnterNewValue(t,i)},isRange:"FromTo"===this.EditorType,modeYearMonth:!0,setActive:function(t){return n.setActive(t)},onFocus:function(t){return n.onFocus(t)},onCloseEditor:function(){return n.onCloseEditor()}}))},t}(f.FieldBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),r=i.n(e),f=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.componentDidMount=function(){var n=this.refs.input;n&&n.click()},t.prototype.onFileUpload=function(){var n=this.refs.input;n&&Object(f.uploadFile)(n.files[0],this.props.Name)},t.prototype.onClick=function(n){f.WindowManager.Instance.CurrentWindow.IsMobile&&(n.preventDefault(),n.stopPropagation(),Android.openFileChooser(f.WindowManager.Instance.CurrentWindow.Handle,this.props.Name))},t.prototype.render=function(){var n=this;return r.a.createElement("form",{name:"openFileForm",style:{display:"none"}},r.a.createElement("input",{id:"openFileInput",ref:"input",className:"file-upload-input",type:"file",onClick:function(t){return n.onClick(t)},onChange:function(t){return n.onFileUpload(t)}}),r.a.createElement("input",{type:"submit",value:"Send file"}))},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var u=i(2),r=i(0),f=function(){return(f=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},e=function(){function n(n){this._dependencyCodes=["None","SS","SF","FS","FF"];this._durationUnits=["hour","day","minute"];this.dataElement=n;this.PeriodOffset=5}return Object.defineProperty(n.prototype,"GanttData",{get:function(){var n=this;return this.dataElement.Rows&&0!==this.dataElement.Rows.length?(this._ganttData||(this._ganttData=[],this._timelineUnit||this.TimelineSettings,u.a.forEach(this.dataElement.Rows,function(t){var o,i=t.Data,e={taskId:parseInt(i[r.GanttFieldMapping.TaskId]),startDate:new Date(i[r.GanttFieldMapping.StartDate]),taskName:i[r.GanttFieldMapping.TaskName],durationUnit:n._durationUnits[void 0!==n._timelineUnit?n._timelineUnit:1]},s;(i[r.GanttFieldMapping.EndDate]&&(o=new Date(i[r.GanttFieldMapping.EndDate]))&&(e.endDate=o),"true"===i[r.GanttFieldMapping.IsMileStone]&&(e.duration=0),i[r.GanttFieldMapping.Progress]&&(e.progress=parseInt(i[r.GanttFieldMapping.Progress])),i[r.GanttFieldMapping.Dependency])&&(s="",u.a.forEach(i[r.GanttFieldMapping.Dependency].split(";"),function(t){var i=t.split(":");i.length>=2&&(s+=""+i[0]+n._dependencyCodes[parseInt(i[1])]+",")}),s.length>0&&(e.dependency=s.slice(0,-1)));i[r.GanttFieldMapping.Resources]&&(e.resources=u.a.map(i[r.GanttFieldMapping.Resources].split(";"),function(n){return parseInt(n)}));i[r.GanttFieldMapping.BaselineStartDate]&&(o=new Date(i[r.GanttFieldMapping.BaselineStartDate]))&&(e.baselineStartDate=o);i[r.GanttFieldMapping.BaselineEndDate]&&(o=new Date(i[r.GanttFieldMapping.BaselineEndDate]))&&(e.baselineEndDate=o);i[r.GanttFieldMapping.ParentId]&&(e.parentId=parseInt(i[r.GanttFieldMapping.ParentId]));i[r.GanttFieldMapping.BackColor]&&(e.backColor=i[r.GanttFieldMapping.BackColor]);i[r.GanttFieldMapping.ForeColor]&&(e.foreColor=i[r.GanttFieldMapping.ForeColor]);n._ganttData.push(f({},e))})),this._ganttData):null},enumerable:!1,configurable:!0}),n.prototype.updateGanttData=function(){this._ganttData=null;this.GanttData},Object.defineProperty(n.prototype,"ResourcesData",{get:function(){return this.dataElement.ResourceData&&0!==this.dataElement.ResourceData.length?(this._ganttResources||(this._ganttResources=[],this._ganttResources=u.a.map(this.dataElement.ResourceData,function(n){return{resourceId:n.key,resourceName:n.label}})),this._ganttResources):null},enumerable:!1,configurable:!0}),n.prototype.updateGanttResources=function(){this._ganttResources=null;this.ResourcesData},Object.defineProperty(n.prototype,"Columns",{get:function(){return this._columns||(this._treeColumnName="taskName",this._columns=[{field:"taskId",width:100,headerText:"ID"},{field:"taskName",width:250,headerText:"Zadanie"},{field:"startDate",width:170,headerText:"Data rozpoczęcia"},{field:"duration",width:150,headerText:"Czas trwania"},{field:"progress",width:150,headerText:"Postęp [%]"},{field:"resources",width:180,headerText:"Zasoby"},{field:"dependency",width:150,headerText:"Zależności"}]),this._columns},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"TreeColumnName",{get:function(){return this._treeColumnName},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"PeriodOffset",{get:function(){return this._periodOffset},set:function(n){this._periodOffset=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ProjectPeriod",{get:function(){if(!this.dataElement.Period)return null;if(this._projectPeriod)return this._projectPeriod;var u=this.dataElement.Period.split("|"),n=new Date(u[0]),t=new Date(u[1]),i=this._bottomTierCount?this._bottomTierCount:15;switch(n.setSeconds(0,0),t.setSeconds(0,0),this._timelineUnit||this.TimelineSettings,this._timelineUnit){case r.TimelineUnit.Minute:n.setMinutes(n.getMinutes()-this.PeriodOffset*i);t.setMinutes(t.getMinutes()+(this.PeriodOffset+1)*i);this._bottomTierElementsCount=Math.ceil(Math.abs(n.getTime()-t.getTime())/6e4/i);break;case r.TimelineUnit.Hour:n.setMinutes(0);t.setMinutes(0);n.setHours(n.getHours()-this.PeriodOffset);t.setHours(t.getHours()+this.PeriodOffset+1);this._bottomTierElementsCount=Math.ceil(Math.abs(n.getTime()-t.getTime())/36e5);break;case r.TimelineUnit.Day:n.setMinutes(0);t.setMinutes(0);n.setHours(0);t.setHours(0);n.setDate(n.getDate()-this.PeriodOffset);t.setDate(t.getDate()+this.PeriodOffset+1);this._bottomTierElementsCount=Math.ceil(Math.abs(n.getTime()-t.getTime())/864e5)}return this._projectPeriod={startDate:n,endDate:t},this._projectPeriod},enumerable:!1,configurable:!0}),n.prototype.updateProjectPeriod=function(){this._projectPeriod=null;this.ProjectPeriod},Object.defineProperty(n.prototype,"BottomTierElementsCount",{get:function(){return this._bottomTierElementsCount||this.ProjectPeriod,this._bottomTierElementsCount},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"TimelineSettings",{get:function(){var t,i,n;if(this._timelineSettings)return this._timelineSettings;this.dataElement.View||this.setTimelineSettings("Week","Day",r.TimelineViewMode.WeekDay,r.TimelineUnit.Day);t=this.dataElement.View.split(",");t.length>1&&(this._bottomTierCount=parseInt(t[1]));i=this._bottomTierCount?this._bottomTierCount:15;n=parseInt(t[0]);switch(n){case r.TimelineViewMode.HourMinute:if(i<60){this.setTimelineSettings("Hour","Minutes",n,r.TimelineUnit.Minute,i);break}case r.TimelineViewMode.DayHour:this.setTimelineSettings("Day","Hour",n,r.TimelineUnit.Hour);break;case r.TimelineViewMode.WeekDay:this.setTimelineSettings("Week","Day",n,r.TimelineUnit.Day);break;case r.TimelineViewMode.MonthDay:this.setTimelineSettings("Month","Day",n,r.TimelineUnit.Day)}return this._timelineSettings},enumerable:!1,configurable:!0}),n.prototype.setTimelineSettings=function(n,t,i,r,u){void 0===u&&(u=1);this._timelineSettings={topTier:n,bottomTier:t,viewMode:i,bottomTierCount:u};this._timelineUnit=r},n.prototype.updateTimelineSettings=function(){this._timelineSettings=null;this.TimelineSettings},Object.defineProperty(n.prototype,"Location",{get:function(){return this.dataElement.Location?this.dataElement.Location:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"FocusedTask",{get:function(){return this.dataElement.FocusedRow?parseInt(this.dataElement.FocusedRow):null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ChartColumnAppearance",{get:function(){return[]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsEditable",{get:function(){return!!this.dataElement.Editable},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"AllowProgressEditing",{get:function(){return!1},enumerable:!1,configurable:!0}),n}()},function(){},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var f=i(1),r=i.n(f),u=i(0),e=function(){function n(n){this.grid=n;this.dataElement=n.dataElement;this.smartOpenIndex=1;this.reloadGridAction=function(){return n.reloadGridAction()};this.loadMoreAction=function(){return n.loadMoreNextAction()};this.frozenColumnCount=this.calcfrozenColumnCount()}return n.prototype.buildGridViewport=function(){return null},Object.defineProperty(n.prototype,"hasRows",{get:function(){return this.dataElement.hasRows},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasFrozenColumns",{get:function(){return!this.dataElement.DisableSelection||this.frozenColumnCount>0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"addLoadMoreButton",{get:function(){return!this.loadRowsOnScroll&&!this.dataElement.EndArchived},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"loadRowsOnScroll",{get:function(){return"Form"!==this.dataElement.Window.Mode},enumerable:!1,configurable:!0}),n.prototype.buildRow=function(n){var i=this,t=n.Element.Name+"_"+n.formattedId;return n.IsNonOptimalRow?r.a.createElement(u.GridRowNonOptimal,{ref:t,key:n.ID.toString(),grid:this.grid,row:n}):n.IsLocationRow?r.a.createElement(u.GridRowLocator,{ref:t,key:n.ID.toString(),grid:this.grid,row:n}):n.IsGroupingRow?r.a.createElement(u.GridRowGrouping,{ref:t,key:n.Data[0],grid:this.grid,row:n}):r.a.createElement(u.GridRowNormal,{ref:n.Element.Name+"_"+n.ID,key:"-1"!==n.ID.toString()?n.ID.toString():n.Data[0],row:n,grid:this.grid,reload:function(){return i.reloadGridAction()}})},n.prototype.calcCommonHeaderColumns=function(){return this.dataElement.Elements.filter(function(n){return n.IsVisible&&n.CaptionHtml&&n.CaptionHtml.indexOf("~")>=0}).length>0},n.prototype.calcfrozenColumnCount=function(){var n=this.dataElement.DisableSelection?0:1;return n+this.dataElement.Elements.filter(function(n){return n.Frozen}).length},n.prototype.buildGridContent=function(){var t=this,n,i;return this.hasRows?(n=this.dataElement.Rows.map(function(n){return t.buildRow(n)}),this.addLoadMoreButton&&(i=r.a.createElement(u.GridRowLoadMore,{key:this.dataElement.ID.toString(),id:this.dataElement.ID.toString(),dataElement:this.dataElement,grid:this.grid,onClick:function(){return t.loadMoreAction()}}),n.push(i)),this.buildGridViewport(n)):r.a.createElement(u.GridRowEmptyContent,{dataElement:this.dataElement,grid:this.grid})},n.prototype.buildGridHeader=function(){return null},n.prototype.buildGridFooter=function(){return null},n.prototype.buildGridFeatures=function(){return null},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var f,e=i(1),u=i.n(e),r=i(0),o=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.buildGridContent=function(){return u.a.createElement(r.GridViewPort,{ref:"viewport",dataElement:this.dataElement,grid:this.grid})},t.prototype.buildGridHeader=function(){return u.a.createElement(r.GridHeader,{ref:"header",dataElement:this.dataElement,grid:this.grid})},t.prototype.buildGridFooter=function(){return u.a.createElement(r.GridFooter,{ref:"footer",dataElement:this.dataElement,grid:this.grid})},t.prototype.buildGridFeatures=function(){return this.grid.hasGroups?u.a.createElement(r.FeaturesBar,{ref:"features",grid:this.grid,dataElement:this.dataElement}):null},t}(r.GridContentBuilderBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(1),e=i.n(f),u=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"loadRowsOnScroll",{get:function(){return"Form"!==this.dataElement.Window.Mode&&!this.grid.isDashboardItem},enumerable:!1,configurable:!0}),t.prototype.buildGridViewport=function(n){var t=this;return e.a.createElement(u.InfiniteScroll,{id:this.dataElement.Name,className:"grid",attachEvents:!this.dataElement.EndArchived&&this.loadRowsOnScroll,hasMore:!this.dataElement.EndArchived,loadMore:function(){return t.loadMoreAction()},children:n})},t}(u.GridContentBuilderBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return f});var r=i(2),u=i(0),f=function(){function n(n){this.classes={};this.gridRow=n}return n.prototype.init=function(){var n=document.body.getBoundingClientRect();this.selected=!!this.gridRow.state.selected&&this.gridRow.state.selected;this.firstCreate=!!this.gridRow.firstCreate&&this.gridRow.firstCreate;this.row=this.gridRow.rowElement;this.columns=this.gridRow.rowElement.Element.Columns;this.smartOpenIndex=this.findSmartOpenIndex();this.imageColumn=r.a.find(this.columns,function(n){return n&&n.IsVisible&&"Image"===n.EditorType});this.selectionBoxWidth=this.imageColumn?this.imageColumn.Width:u.GridBase.CheckBoxColumnSize;this.gridRowSize=n.width-this.selectionBoxWidth-u.GridBase.CheckBoxColumnSize;this.secondRowColIdx=this.findLastColumnIdxInRow();this.thirdRowColIdx=this.findLastColumnIdxInRow(this.secondRowColIdx+1)},n.NormalizeColumn=function(n,t){return n?"CheckBox"===n.EditorType?"True"===t?"TAK":"NIE":t:null},n.prototype.findSmartOpenIndex=function(){var n=r.a.find(this.columns,function(n){return n&&n.IsVisible&&"Image"!==n.EditorType&&"SmartOpen"===n.Class}),t=r.a.find(this.columns,function(n){return n&&n.IsVisible&&"Image"!==n.EditorType});return n?this.columns.indexOf(n):this.columns.indexOf(t)},n.prototype.findLastColumnIdxInRow=function(n){var i,r,u;void 0===n&&(n=0);for(var f=0,e=-1,t=n;t<this.columns.length;t++)if(i=this.columns[t],i&&"CheckBox"!==i.EditorType&&"Image"!==i.EditorType&&t!==this.smartOpenIndex){if(r=this.gridRowSize-f,r<=0)break;u=this.columns[t].Width;(r>=u||r>30)&&(e=this.columns.indexOf(i));f+=u}return e},n.prototype.calculateRowAppearance=function(n){var t=n||{},i=this.row.getAppearance(this.row.ID);return i&&(t.color=i.ForeColor),t},n.prototype.calculateColumnAppearance=function(n,t){var i=t||{},r;return n<0?i:(r=this.row.getAppearance(this.row.ID+"/"+(n-1)),r&&(i.color=r.ForeColor),i)},n.prototype.prepareClasses=function(){this.classes["grid-row"]=!0;this.classes.regular=!0;this.classes.selected=this.row.IsSelected},n.prototype.buildSelectSection=function(){return null},n.prototype.buildAppearanceBgSection=function(){return null},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,e=i(1),u=i.n(e),o=i(2),s=i(3),h=i.n(s),r=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(n){function t(t){return n.call(this,t)||this}return c(t,n),t.prototype.init=function(){var t=this;n.prototype.init.call(this);this.selectionBoxWidth=r.GridBase.CheckBoxColumnSize;this.imageColumn=o.a.find(this.columns,function(n){return n&&n.IsVisible&&"Image"===n.EditorType&&1===t.columns.indexOf(n)})},Object.defineProperty(t.prototype,"id",{get:function(){return this.row.Element.Name+"_"+this.row.ID},enumerable:!1,configurable:!0}),t.prototype.buildColumn=function(n,t){var f=this,i=this.columns[t];return i&&!i.IsVisible?null:i||this.row.Element.DisableSelection?i&&"Image"===i.EditorType?u.a.createElement(r.GridColumnImage,{key:t,ref:i.Name,dataElement:i,rowElement:this.row,grid:this.gridRow.grid}):i&&"CheckBox"===i.EditorType?u.a.createElement(r.GridColumnCheckBox,{key:t,ref:i.Name,dataElement:i,rowElement:this.row,grid:this.gridRow.grid}):i&&"Color"===i.EditorType?u.a.createElement(r.GridColumnColor,{key:t,ref:i.Name,dataElement:i,rowElement:this.row,grid:this.gridRow.grid}):i&&i.Class&&i.Class.indexOf("IconEdit")>=0?u.a.createElement(r.GridColumnIcon,{key:t,ref:i.Name,dataElement:i,rowElement:this.row,grid:this.gridRow.grid}):i&&i.Class&&(i.Class.indexOf("TrafficLightEdit")>=0||i.Class.indexOf("ProgressEdit")>=0)?u.a.createElement(r.GridColumnColorStatus,{key:t,ref:i.Name,dataElement:i,rowElement:this.row,grid:this.gridRow.grid}):i?u.a.createElement(r.GridColumnText,{key:t,ref:i.Name,dataElement:i,rowElement:this.row,grid:this.gridRow.grid}):null:u.a.createElement(r.GridColumnSelectRow,{key:t,ref:"selectRow",selected:this.row.IsSelected,grid:this.gridRow.grid,onSelect:function(n){return f.gridRow.actionSelectRow(n)}})},t.prototype.calculateRowAppearance=function(t){var u=n.prototype.calculateRowAppearance.call(this,t),i=this.row.getAppearance(this.row.ID),f;return i&&(i.BackColor&&(f=r.ColorHelper.hexToRgb(i.BackColor,this.row.IsOdd?.4:.6),u.backgroundColor=f),r.AppearancePalette.calculateFontStyle(i,u)),u},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.odd=this.row.IsOdd;this.classes.even=!this.row.IsOdd;this.classes.regular=!this.row.IsFocused;this.classes.focused=this.row.IsFocused},t.prototype.buildRowContent=function(){this.prepareClasses();var n={position:"absolute",top:this.row.RowIdx*this.gridRow.rowHeight+"px",left:"0",height:this.gridRow.rowHeight+"px",width:this.gridRow.rowWidth+"px"};return this.row.IsFocused||(n=this.calculateRowAppearance(n)),u.a.createElement("div",{id:this.gridRow.id,className:h()(this.classes),style:n,"data-rowid":this.row.ID},this.buildContentSection())},t.prototype.buildContentSection=function(){return this.columns.map(this.buildColumn,this)},t}(r.GridRowBuilderBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,o=i(1),r=i.n(o),s=i(3),e=i.n(s),u=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.prototype.processNormalColumn=function(n,t){var i=this.columns[t];return u.GridRowBuilderBase.NormalizeColumn(i,n)},Object.defineProperty(t.prototype,"checkImage",{get:function(){return r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 80,0 C 35.84,0 0,35.84 0,80 c 0,44.16 35.84,80 80,80 44.16,0 80,-35.84 80,-80 C 160,35.84 124.16,0 80,0 Z m 44.85156,42.427734 a 7.50075,7.50075 0 0 1 5.45117,12.875 L 70.302734,115.30273 a 7.50075,7.50075 0 0 1 -10.607422,0 l -30,-29.999996 A 7.50075,7.50075 0 1 1 40.302734,74.697266 L 64.998047,99.394531 119.69531,44.697266 a 7.50075,7.50075 0 0 1 5.15625,-2.269532 z"}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unCheckImage",{get:function(){return r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 80,0 C 35.894687,0 0,35.894686 0,80 c 0,44.10531 35.894687,80 80,80 44.10531,0 80,-35.89469 80,-80 C 160,35.894685 124.10531,0 80,0 Z m 0,10 c 38.69469,0 70,31.305315 70,70 0,38.69469 -31.30532,70 -70,70 C 41.305315,150 10,118.69469 10,80 10,41.305314 41.305315,10 80,10 Z"}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkBoxClasses",{get:function(){var n={check:!0};return n["check-open"]=this.selected,n["check-close"]=!this.firstCreate&&!this.selected,e()(n)},enumerable:!1,configurable:!0}),t.prototype.buildSelectBox=function(){var n,t,i=this,e=null,s=this.row.Element.DisableSelection?null:function(n){return i.gridRow.actionSelectRow(n)},f,o;return this.imageColumn?(n="gc-image",t=this.selected?this.checkImage:null,f=this.columns.indexOf(this.imageColumn),f>=0&&(o=u.AttachmentUrlHelper.changeImageSizeUrl(this.row.Data[f],72,!0),e=r.a.createElement(u.Image,{src:o,dataElement:null,id:this.imageColumn.ID.toString()}))):(n="gc-check",t=this.selected?this.checkImage:this.unCheckImage),r.a.createElement("div",{onClick:s,onMouseDown:function(n){return i.gridRow.actionEmptyHandler(n)},onMouseUp:function(n){return i.gridRow.actionEmptyHandler(n)},style:{width:this.selectionBoxWidth+"px"},className:n},r.a.createElement("div",{className:this.checkBoxClasses},t),e)},t.prototype.buildElement=function(n,t){var i=this.columns[t];if(!i)return null;var u="",e="Image"===i.EditorType&&i.Width<72?72:i.Width,f=this.selectionBoxWidth>0?{width:e+"px"}:{};return"Image"!==i.EditorType&&"CheckBox"!==i.EditorType&&(f=this.calculateColumnAppearance(t,f),t!==this.smartOpenIndex&&t<=this.secondRowColIdx?u="second-row-element":t>0&&t!==this.smartOpenIndex&&t>this.secondRowColIdx&&t<=this.thirdRowColIdx&&(u="third-row-element")),""===u?null:r.a.createElement("div",{key:this.row.ID+t,style:f,className:u,dangerouslySetInnerHTML:{__html:n}})},t.prototype.buildRowContent=function(){var n=this;return this.prepareClasses(),r.a.createElement("div",{className:e()(this.classes),"data-rowid":this.row.ID,onClick:function(t){return n.gridRow.actionClick(t)}},this.buildSelectSection(),this.buildContentSection(),this.buildAppearanceBgSection())},t.prototype.buildSelectSection=function(){return this.row&&!this.row.Element.DisableSelection?this.buildSelectBox():null},t.prototype.buildContentSection=function(){var t=this.row.ID,i=this.row.Data.map(this.processNormalColumn,this),n=[],f=i.map(this.buildElement,this).filter(function(n){return n&&"second-row-element"===n.props.className}),e=i.map(this.buildElement,this).filter(function(n){return n&&"third-row-element"===n.props.className}),o=this.calculateColumnAppearance(this.smartOpenIndex),u=this.selectionBoxWidth>0?{width:"calc(100% - "+this.selectionBoxWidth+"px)"}:{};return u=this.calculateRowAppearance(u),this.smartOpenIndex>=0&&n.push(r.a.createElement("div",{key:t+0,className:"first-content-row",style:o,dangerouslySetInnerHTML:{__html:i[this.smartOpenIndex]}})),f.length>0&&n.push(r.a.createElement("div",{key:t+1,className:"second-content-row"},f)),e.length>0&&n.push(r.a.createElement("div",{key:t+2,className:"third-content-row"},e)),r.a.createElement("div",{style:u,className:"gr-content"},n)},t.prototype.buildAppearanceBgSection=function(){var n=this.row.getAppearance(),t;return!n||!n.BackColor?null:(t={backgroundColor:n.BackColor},r.a.createElement("div",{className:"appearance",style:t}))},t}(u.GridRowBuilderBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(2),u=function(){function n(n){this.dataElement=n;this._hash=this.dataElement.Name.CreateHash()}return Object.defineProperty(n.prototype,"EipMode",{get:function(){return"Grid"===this.dataElement.ElementType&&(this.hasNewRow||this.hasColumns)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"DataElement",{get:function(){return this.dataElement},set:function(n){this.dataElement=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasColumns",{get:function(){return r.a.any(this.Columns,function(n){return n&&n.ID>0&&"Field"===n.ElementType&&n.Editable})},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasNewRow",{get:function(){return r.a.any(this.Rows,function(n){return n&&n.IsNewRow})},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasNonOptimalRow",{get:function(){return r.a.any(this.Rows,function(n){return n&&n.IsNonOptimalRow})},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Columns",{get:function(){return this.dataElement.Columns},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Rows",{get:function(){return this.dataElement.Rows},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"FocusedRow",{get:function(){return this.dataElement.FocusedRow},set:function(n){this.dataElement.FocusedRow=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"FocusedColumnIdx",{get:function(){return this.dataElement.FocusedColumnIdx},set:function(n){this.dataElement.FocusedColumnIdx=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hash",{get:function(){return this._hash},enumerable:!1,configurable:!0}),n.prototype.getRowByIdx=function(n){return this.Rows[n]},n.prototype.getRowIdxByID=function(n){var t=null;return(t=""===n?this.dataElement.hasRows?r.a.find(this.Rows,function(n){return n.IsNewRow}):null:this.dataElement.hasRows?r.a.find(this.Rows,function(t){return t.ID===n}):null)?this.Rows.indexOf(t):-1},n.prototype.getRowByID=function(n){return this.dataElement.getRowByID(n)},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var u,r=i(2),f=i(0),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){return n.call(this,t)||this}return e(t,n),t.prototype._invokeFocusedElementChanged=function(n){this.dataElement._mark().FocusedElementChanged=n;this.dataElement._invoke()},t.prototype._navigateToNextEditableElement=function(n,t){var r=t?t.direction:"Right",i=null;return n||(n={rowId:this.FocusedRow,columnIdx:-1,sendRequest:!0}),"Right"===r?i=this._findRightEditableElement(n):"Left"===r?i=this._findLeftEditableElement(n):"Up"===r?i=this._findUpEditableElement(n):"Down"===r&&(i=this._findDownEditableElement(n)),i},t.prototype._findRightEditableElement=function(n){var i=this._findNextColumn(n.columnIdx),r,t;return i>=0?{rowId:n.rowId,columnIdx:i,forceFocused:!0,sendRequest:!0}:(r=this.getRowIdxByID(n.rowId),t=this.findNextRow(r),t?{rowId:t.ID,columnIdx:this._findNextColumn(-1),sendRequest:!0}:null)},t.prototype._findLeftEditableElement=function(n){var i=this._findPrevColumn(n.columnIdx),t;return i>=0?{rowId:n.rowId,columnIdx:i,forceFocused:!0,sendRequest:!0}:(t=this.getRowIdxByID(n.rowId),t-1>=0?{rowId:this.Rows[t-1].ID,columnIdx:this._findPrevColumn(this.Columns.length),sendRequest:!0}:null)},t.prototype._findDownEditableElement=function(n){var i=this.getRowIdxByID(n.rowId),t=this.findNextRow(i);return!t&&this.hasNewRow?{forceOpenNewRow:!0}:{rowId:t.ID,columnIdx:n.columnIdx,sendRequest:!0}},t.prototype._findUpEditableElement=function(n){var t=this.getRowIdxByID(n.rowId);return t-1>=0?{rowId:this.Rows[t-1].ID,columnIdx:n.columnIdx,sendRequest:!0}:(this.closeEipEditor(),null)},t.prototype._findNextColumn=function(n){return r.a.findIndex(this.Columns,function(t,i){if(t&&t.Editable&&i>n)return i})},t.prototype._findPrevColumn=function(n){for(var r,i=-1,t=this.Columns.length-1;t>=0;t--)if(r=this.Columns[t],r&&r.Editable&&t<n){i=t;break}return i},t.prototype._switchFocusedRow=function(n,t){var e=n.rowId,u,i;return t===e?new f.ValueThenable(null):(t&&(u=r.a.find(this.Rows,function(n){return n.ID===t}),u&&u.setFocused(!1)),i=r.a.find(this.Rows,function(n){return n.ID===e}),i?(i.setFocused(!0),this.postFocused(i.ID)):void 0)},t.prototype._openNextEipEditor=function(n,t){if(this.Columns&&this.EipMode){var r=this.hasNewRow&&("Right"===t.direction||"Down"===t.direction),i=this._navigateToNextEditableElement(n,t);i&&!i.forceOpenNewRow?this.changeFocusedElement(i):r&&(i&&i.forceOpenNewRow||n.forceOpenNewRow)?this._startEipNewRow():r||this.closeEipEditor()}},t.prototype._startEipNewRow=function(){var n=this;this.dataElement.pPost("focused","$new").then(function(){var t=n._navigateToNextEditableElement();t&&(t.forceOpenNewRow=!0,n.changeFocusedElement(t))})},t.prototype.findNextRow=function(n){return r.a.find(this.Rows,function(t,i){if(t.IsRegularRow&&i>n)return t})},t.prototype.findPrevRow=function(n){for(var r,i=-1,t=this.Rows.length-1;t>=0;t--)if(r=this.Rows[t],r&&r.IsRegularRow&&t<n){i=t;break}return i>=0?this.Rows[i]:null},t.prototype.changeFocusedElement=function(n){var f=this,t=this.FocusedRow,i=t!==n.rowId,r=n.columnIdx?this.Columns[n.columnIdx]:null,u=this.FocusedColumnIdx!==n.columnIdx||r&&"Field"===r.ElementType||n.forceFocused;u&&n.columnIdx&&(this.FocusedColumnIdx=n.columnIdx);i&&(this.FocusedRow=n.rowId);(i||u)&&(n.sendRequest?this._switchFocusedRow(n,t).then(function(){f._invokeFocusedElementChanged(n)}):this._invokeFocusedElementChanged(n))},t.prototype.openNextEipEditor=function(n,t){void 0===t&&(t=null);t&&t.walkNext&&("Close"===t.direction||"Mouse"===t.eipCaller&&"Right"!==t.direction?this.closeEipEditor():"Unknown"!==t.direction&&this._openNextEipEditor(n,t))},t.prototype.closeEipEditor=function(){this.changeFocusedElement({rowId:this.FocusedRow,sendRequest:!0,forceCloseEditor:!0})},t.prototype.postNewRowFocused=function(n){var t=this;void 0===n&&(n="focused");this.dataElement.pPost(n,"$new").then(function(){t.dataElement.Window.hasVerifiersError||t.openNextEipEditor({rowId:t.dataElement.FocusedRow,columnIdx:t.dataElement.GridColumnIdx,forceOpenNewRow:!0},new f.EipEventProps("Keyboard","Right"))})},t.prototype.postFocused=function(n){return this.dataElement.pPost("focused",n)},t}(f.GridDataElementExtender)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var u,r=i(2),f=i(0),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){return n.call(this,t)||this}return e(t,n),t.prototype._checkFocusedSelected=function(n){if(!(this.SelectedRows.length>0)){var r=n.row.ID,t=this.getRowIdxByID(r),i=this.getRowIdxByID(this.FocusedRow),u=t+1===i||t-1===i;n.isShiftKey&&(u||n.isMouseDown)&&this._selectFocused()}},t.prototype._selectFocused=function(){var n=this.getRowByID(this.FocusedRow);n&&(n.setSelected(!0),this.SelectedRows.push(parseInt(this.FocusedRow)))},t.prototype._clearSelectedRows=function(){this.dataElement.SelectedRows=[]},t.prototype._clearSelection=function(){var n,t;if(this.SelectedRows.length>0){for(n=0;n<this.SelectedRows.length;n++)t=this.Rows[n],t&&t.setSelected(!1);this.SelectedRows.splice(0)}},t.prototype._checkContinuosSelection=function(){if(0===this.SelectedRows.length)return!0;var n=r.a.first(this.SelectedRows),t=r.a.last(this.SelectedRows),i=this.getRowIdxByID(n.toString()),u=this.getRowIdxByID(t.toString());return this.SelectedRows.length===u-i+1},t.prototype._selectRows=function(n){this._checkFocusedSelected(n);n.isShiftKey&&n.isMouseDown?this._selectRangeRow(n):(n.isShiftKey||n.isMouseDown)&&this._selectSingleRow(n)},t.prototype._selectSingleRow=function(n){var i=n.row,r=parseInt(i.ID);this.SelectedRows.indexOf(r)<0?this._pushSelected(i):this._popSelected(i);this.SelectedRows.sort(t.sortIntAsc)},t.prototype._selectRangeRow=function(n){var a=n.row,h=parseInt(a.ID),i=this.SelectedRows.indexOf(h),u;if(!(i>=0)){var f,e,o,s=-1,c=-1,l=-1;for(l=r.a.first(this.SelectedRows),c=r.a.last(this.SelectedRows),e=this.getRowIdxByID(l.toString()),o=this.getRowIdxByID(c.toString()),(i=this.getRowIdxByID(h.toString()))<=e?(f=i,s=e):i>=o&&(f=o,s=i),this._checkContinuosSelection()||this._clearSelection(),u=f;u<=s;u++)this._pushSelected(this.Rows[u]);this.SelectedRows.sort(t.sortIntAsc)}},t.prototype._pushSelected=function(n){if(n){var t=parseInt(n.ID);this.SelectedRows.indexOf(t)<0&&this.SelectedRows.push(t);n.setSelected(!0)}},t.prototype._popSelected=function(n){if(n){var i=parseInt(n.ID),t=this.SelectedRows.indexOf(i);t>=0&&this.SelectedRows.splice(t,1);n.setSelected(!1)}},t.sortIntAsc=function(n,t){return n<t?-1:n>t?1:0},t.sortIntDesc=function(n,t){return n<t?1:n>t?-1:0},t.prototype.RefreshSelectedRows=function(){var n=this;0!==this.dataElement.Start&&-1!==this.dataElement.Start||this._clearSelectedRows();r.a.forEach(this.dataElement.Rows,function(t){var r=parseInt(t.ID),i=n.SelectedRows.indexOf(r);t.IsSelected&&i<0?n.SelectedRows.push(r):!t.IsSelected&&i>=0&&n.SelectedRows.splice(i,1)},this)},Object.defineProperty(t.prototype,"SelectedRows",{get:function(){return this.dataElement.SelectedRows},enumerable:!1,configurable:!0}),t.prototype.postSelectRow=function(n){this._selectRows(n);this.SelectedRows.length>0&&this.dataElement.post("selected",this.SelectedRows.join(","))},t.prototype.postSelectAll=function(){this.DataElement.postSelectAll()},t.prototype.postUnselectAll=function(){this.DataElement.postUnselectAll()},t}(f.GridDataElementExtender)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,e=i(1),u=i.n(e),o=i(3),s=i.n(o),f=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.state={version:i.state.version},i.attachedField=i.findAttachedTo(i.props.dataElement.Name),i}return h(t,n),Object.defineProperty(t.prototype,"isSpecialCommand",{get:function(){return this.props.dataElement.hasClass("Special")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSplitCommand",{get:function(){return this.props.dataElement.hasClass("SplitCommand")},enumerable:!1,configurable:!0}),t.prototype.findAttachedTo=function(n){for(var t,i=this.props.dataElement.Parent,u="Panel"===i.Class?i.Parent:i,r=0;r<u.Elements.length;r++)if(t=u.Elements[r],"Field"===t.ElementType&&t.TagInfo&&t.TagInfo==="AttachTo:"+n)return t;return null},t.prototype.onHeaderBarCommandClick=function(n){n.stopPropagation();n.preventDefault();this.attachedField?document.getElementById(this.attachedField.Name).click():this.props.dataElement.postClick("")},Object.defineProperty(t.prototype,"classnames",{get:function(){return this.classes={},this.classes["gb-cmd"]=!0,this.classes.special=this.isSpecialCommand,this.classes.split=this.isSplitCommand,s()(this.classes)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commandDescription",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commandIcon",{get:function(){var n=this;return this.props.dataElement.Icon?u.a.createElement(f.SvgIcon,{name:this.props.dataElement.Icon,classes:"icon",onClick:function(t){return n.onHeaderBarCommandClick(t)}}):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"splitIcon",{get:function(){var n=this;return this.isSplitCommand?u.a.createElement(f.SvgIcon,{name:"rozwin2",classes:"s-icon",onClick:function(t){return n.onClickMore(t)}}):null},enumerable:!1,configurable:!0}),t.prototype.onClick=function(){},t.prototype.onClickMore=function(n){n.stopPropagation();n.preventDefault();this.props.dataElement.post("click-more",null)},t.prototype.prepareStyle=function(){this.style=null},t.prototype.createContent=function(){return u.a.createElement("div",{className:"content"},this.commandIcon,this.splitIcon)},t}(f.Command)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var f,u=i(2),r=i(0),e=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this,t)||this;return i._leftFrozenIdx=-1,i._rightFrozenIdx=-1,i._leftFrozenWidth=0,i._rightFrozenWidth=0,i.calcHeaderBarCommands(),i.calcRowHeight(),i.calcLeftFrozenIndex(),i.calcRightFrozenIndex(),i.calcCommonHeaderColumns(),i}return e(t,n),t.getControlType=function(n){return n.Window.DeviceType===r.DeviceType.MobileBrowser?r.GridMobile:r.GridBrowser},t.prototype.UNSAFE_componentWillReceiveProps=function(){this.loadRowsOnScroll="Form"!==this.props.dataElement.Window.Mode},Object.defineProperty(t.prototype,"hasSearch",{get:function(){var n=this;return null!==this.props.dataElement.Parent.findElement(function(t){return n.props.dataElement.Name+"_Flt"===t.Name})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.props.dataElement.hasRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasAllSelectedRows",{get:function(){return this.props.dataElement.hasRows&&this.props.dataElement.Rows.every(function(n){return n.IsSelected})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SelectionExtender",{get:function(){return this._selectionExtender||(this._selectionExtender=new r.GridSelectionExtender(this.dataElement)),this._selectionExtender},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EipExtender",{get:function(){return this._eipExtender||(this._eipExtender=new r.GridEipExtender(this.dataElement)),this._eipExtender},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollLeft",{get:function(){return this.props.dataElement.Settings.GridSettings.ScrollLeft},set:function(n){this.props.dataElement.Settings.GridSettings.ScrollLeft=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchValue",{get:function(){var n=this.props.dataElement.Settings.SearchValue;return void 0===n&&(n=""),n},set:function(n){this.props.dataElement.Settings.SearchValue=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDashboardItem",{get:function(){return this.props.dataElement.Parent&&"DashboardItem"===this.props.dataElement.Parent.Class},enumerable:!1,configurable:!0}),t.prototype.calcHeaderBarCommands=function(){var t=this,n;if(this.props.dataElement.Parent){if(n=u.a.find(this.props.dataElement.Parent.Elements,function(n){return"Panel"===n.Class}),!n||!n.Elements||0===n.Elements.length)return null;this.headerBarCommands=n.Elements.filter(function(n){return n.IsVisible&&0===n.Name.indexOf(t.props.dataElement.Name)&&n.Name!==t.props.dataElement.Name+"_Open"})}},t.prototype.findDataElement=function(n){if(!n||n.id===this.props.dataElement.Name)return-1;var t=n.attributes["data-rowid"];return t?parseInt(t.value):this.findDataElement(n.parentElement)},t.prototype.findRow=function(n){var t=this.findDataElement(n);return t?this.findRowById(t):null},t.prototype.findRowById=function(n){return this.props.dataElement.getRowByID(n.toString())},t.prototype.refreshSelectedRows=function(){this.SelectionExtender.RefreshSelectedRows()},t.prototype.getColumnsToResize=function(n){var t=this.dataElement.Columns;return t.filter(function(i){return t.indexOf(i)>=n})},t.prototype.changeColumnsSize=function(n,i){var r=this,f=this.getColumnsToResize(n.idx);u.a.each(f,function(u){r.dataElement.Columns.indexOf(u)===n.idx?t.changeColumnWidth(u,i):t.changeColumnLeft(u,i,n.offset)})},t.createColumnId=function(n,t){return n?""+t+(n.Name+"_"+n.Parent.Columns.indexOf(n)).CreateHash():t+"selAll"},t.changeColumnLeft=function(n,i,r){var f=document.getElementById(n.Settings.ColumnSettings[i]),u;f&&(u=n.Settings.ColumnSettings.ResizedLeft,f.style.left=u+r+"px",t.changeCommonHeaderLeft(n,u,r))},t.changeColumnWidth=function(n,i){var r=document.getElementById(n.Settings.ColumnSettings[i]);r&&(r.style.width=n.Settings.ColumnSettings.ResizedWidth+"px",t.changeCommonHeaderWidth(n))},t.changeCommonHeaderLeft=function(n,t,i){var u=n.Settings.ColumnSettings.ResizedCommonId,r;n.Settings.ColumnSettings.ResizedIsFirstCommonColumn&&u&&(r=document.getElementById(u),r&&(r.style.left=t+i+"px"))},t.changeCommonHeaderWidth=function(n){var t=n.Settings.ColumnSettings.ResizedCommonId,i,r;t&&(i=document.getElementById(t),i&&(r=0,u.a.each(n.Parent.Columns.filter(function(n){if(!n)return!1;var i=n.Settings.ColumnSettings.ResizedCommonId;return i&&i===t}),function(n){r+=n.Width}),i.style.width=r+"px"))},Object.defineProperty(t.prototype,"header",{get:function(){return this.refs.header?this.refs.header:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewport",{get:function(){return this.refs.viewport?this.refs.viewport:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvas",{get:function(){return this.viewport?this.viewport.canvas:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footer",{get:function(){return this.refs.footer?this.refs.footer:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataElement",{get:function(){return this.props.dataElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowHeight",{get:function(){return this._rowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowWidth",{get:function(){return this.calcRowWidth()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftFrozenColumnIdx",{get:function(){return this._leftFrozenIdx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightFrozenColumnIdx",{get:function(){return this._rightFrozenIdx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftFrozenWidth",{get:function(){return this._leftFrozenWidth},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightFrozenWidth",{get:function(){return this._rightFrozenWidth},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.props.dataElement.Columns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectionColumn",{get:function(){return!this.dataElement.DisableSelection&&this.columns.length>0&&null===this.columns[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilterRow",{get:function(){return void 0!==this.dataElement.FilterRow&&null!==this.dataElement.FilterRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSummaryRow",{get:function(){return void 0!==this.dataElement.SummaryRow&&null!==this.dataElement.SummaryRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasGroups",{get:function(){return this.dataElement&&this.dataElement.Groups&&this.dataElement.Groups.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerColumnsHeight",{get:function(){return t.HeaderColumnHeight*(this.hasCommonHeaderColumn?2:1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerFiltersHeight",{get:function(){return this.hasFilterRow?t.HeaderColumnHeight:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerHeight",{get:function(){return this.headerColumnsHeight+this.headerFiltersHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerHeight",{get:function(){return this.hasSummaryRow?t.HeaderColumnHeight:0},enumerable:!1,configurable:!0}),t.prototype.calcLeftFrozenIndex=function(){for(var n,u=-1,r=0,i=0;i<this.props.dataElement.Columns.length-1;i++){if(n=this.props.dataElement.Columns[i],n||0!==i||this.props.dataElement.DisableSelection?n&&n.IsVisible&&n.Frozen&&(r+=n.Width):r+=t.CheckBoxColumnSize,!(!n&&0===i||n&&n.IsVisible&&n.Frozen))break;u=i}this._leftFrozenIdx=u;this._leftFrozenWidth=r},t.prototype.calcRightFrozenIndex=function(){for(var n,i=-1,r=0,t=this.props.dataElement.Columns.length-1;t>=0;t--){if(n=this.props.dataElement.Columns[t],!(n&&n.IsVisible&&n.Frozen))break;i=t;r+=n.Width}this._rightFrozenIdx=i;this._rightFrozenWidth=r},Object.defineProperty(t.prototype,"gridContentBuilder",{get:function(){return this.DeviceType===r.DeviceType.MobileBrowser?new r.GridContentBuilderMobile(this):this.DeviceType===r.DeviceType.FullBrowser?new r.GridContentBuilderBrowser(this):null},enumerable:!1,configurable:!0}),t.prototype.calcRowHeight=function(){this.props.dataElement&&this.props.dataElement.Columns||(this._rowHeight=t.HeaderColumnHeight);var n=u.a.find(this.props.dataElement.Columns,function(n){return n&&n.IsVisible&&null!==n.Height});this._rowHeight=n&&n.Height>0?n.Height:t.HeaderColumnHeight},t.prototype.calcRowWidth=function(){if(!this.props.dataElement||!this.props.dataElement.Columns)return 0;var n=0;return u.a.each(this.props.dataElement.Columns,function(t){t&&t.IsVisible&&t.Width&&(n+=t.Width)}),this.props.dataElement.DisableSelection||(n+=t.CheckBoxColumnSize),n},t.prototype.calcCommonHeaderColumns=function(){this.hasCommonHeaderColumn=this.dataElement.Columns.filter(function(n){return n&&n.CaptionHtml&&n.CaptionHtml.indexOf("~")>=0}).length>0},t.prototype.setFocused=function(){},t.prototype.calculateClientWidth=function(n){for(var r,i=0,t=this.columns.length;t>=n;t--)r=this.columns[t],r&&(i+=r.Width);return i},t.prototype.calculateColumnLeftPosition=function(n){for(var i,u=this.hasSelectionColumn?t.CheckBoxColumnSize:0,r=0;r<n;r++)i=this.columns[r],i&&i.IsVisible&&i.Width&&(u+=i.Width);return u},t.prototype.loadMoreNextAction=function(){this.fetch||this.props.dataElement.postLoadMoreRowsNext()&&(this.fetch=!0)},t.prototype.loadMorePrevAction=function(){this.fetch||this.props.dataElement.postLoadMoreRowsPrev()&&(this.fetch=!0)},t.prototype.reloadGridAction=function(){this.updateState()},t.prototype.setScrollLeft=function(){},t.prototype.onResizeColumnStart=function(){},t.prototype.onResizeColumnDrag=function(){},t.prototype.handler=function(t){n.prototype.handler.call(this,t)},t.FilterPrefix="f_",t.SummaryPrefix="s_",t.GroupSummaryPrefix="g_",t.HeaderPrefix="h_",t.ColumnPrefix="c_",t.RowPrefix="r_",t.HeaderColumnHeight=32,t.CheckBoxColumnSize=32,t.FeatureBarWidth=200,t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var r,o=i(1),f=i.n(o),s=i(4),u=i.n(s),h=i(3),c=i.n(h),e=i(0),l=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){var i=n.call(this,t)||this;return i.props.dataElement.Window.IsMobile||(i.gridKeyNavigator=new e.GridKeyNavigator(i)),i.className="grid",i}return l(t,n),t.prototype.componentDidMount=function(){if(this.gridKeyNavigator&&this.gridKeyNavigator.onComponentDidMount(),n.prototype.componentDidMount.call(this),this.viewport&&this.canvas){var t=u.a.findDOMNode(this.canvas);this.outherWidth=t.getBoundingClientRect().width;this.scrollLeft=this.canvas.getScroll().scrollLeft;u.a.findDOMNode(this).setAttribute("tabindex","-1");this.onSetScrollLeft()}},t.prototype.componentDidUpdate=function(){this.onSetScrollLeft();this.gridKeyNavigator&&this.gridKeyNavigator.onComponentDidUpdate()},t.prototype.componentWillMount=function(){this.scrollLeft=void 0},t.prototype.componentWillUnmount=function(){this.gridKeyNavigator&&this.gridKeyNavigator.onComponentWillUnmount();this.scrollLeft=void 0},t.prototype.keyDownListener=function(n){this.gridKeyNavigator&&this.gridKeyNavigator.keyDownListener(n)},t.prototype.setScrollLeft=function(n){this.scrollLeft!==n&&(this.scrollLeft=n,this.onSetScrollLeft())},t.prototype.setFocused=function(){var n=u.a.findDOMNode(this);n&&n.focus()},Object.defineProperty(t.prototype,"maxScrollLeft",{get:function(){return this.rowWidth-this.outherWidth},enumerable:!1,configurable:!0}),t.prototype.onSetScrollLeft=function(){void 0!==this.scrollLeft&&(this.header&&this.header.setScrollLeft(),this.viewport&&this.viewport.canvas.setScrollLeft(),this.footer&&this.footer.setScrollLeft())},t.prototype.onResizeColumnStart=function(n){this.header&&this.header.onResizeColumnStart(n);this.viewport&&this.viewport.onResizeColumnStart(n)},t.prototype.onResizeColumnDrag=function(n){this.header&&this.header.onResizeColumnDrag(n);this.viewport&&this.viewport.onResizeColumnDrag(n);this.footer&&this.footer.onResizeColumnDrag(n)},t.prototype.handler=function(t){n.prototype.handler.call(this,t);t.FirstCall&&this.raiseFilterRowChanged();t.ListChanged&&(this.updateState(),this.refreshSelectedRows(),this.raiseFilterRowChanged())},t.prototype.raiseFilterRowChanged=function(){var n=this.props.dataElement.Window.findElementByName(this.props.dataElement.Name+"_Locator");n&&(n._mark().FilterRowChanged=this.hasFilterRow,n._invoke())},t.prototype.prepareStyle=function(){n.prototype.prepareStyle.call(this);this.mainStyle={left:this.hasGroups?200:0}},t.prototype.render=function(){return this.prepareClasses(),this.prepareStyle(),this.fetch=!1,f.a.createElement("div",{id:this.props.dataElement.Name,className:c()(this.classes),style:this.style},this.gridContentBuilder.buildGridFeatures(),f.a.createElement("div",{className:"grid-main",style:this.mainStyle},this.gridContentBuilder.buildGridHeader(),this.gridContentBuilder.buildGridContent(),this.gridContentBuilder.buildGridFooter()))},t}(e.GridBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var r,f=i(1),e=i.n(f),o=i(4),u=i.n(o),s=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){var i=n.call(this,t)||this;return i.initId(),i}return s(t,n),t.prototype.componentDidMount=function(){},t.prototype.componentDidUpdate=function(){this.initId()},Object.defineProperty(t.prototype,"columnWidth",{get:function(){return this.props.grid.calculateClientWidth(this.columnIdx)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.dataElement.Name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFrozen",{get:function(){return this.dataElement&&this.dataElement.Frozen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFrozenRight",{get:function(){return this.isFrozen&&this.props.grid.rightFrozenColumnIdx>0&&this.columnIdx>=this.props.grid.rightFrozenColumnIdx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastLeftFrozen",{get:function(){return this.isFrozen&&this.columnIdx===this.props.grid.leftFrozenColumnIdx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstRightFrozen",{get:function(){return this.isFrozen&&this.columnIdx===this.props.grid.rightFrozenColumnIdx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataElement",{get:function(){return this.props.dataElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowElement",{get:function(){return this.props.rowElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.props.grid.columns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnIdx",{get:function(){return this.columns?this.columns.indexOf(this.dataElement):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnLeftPosition",{get:function(){return this.props.grid.calculateColumnLeftPosition(this.columnIdx)},enumerable:!1,configurable:!0}),t.prototype.setScrollLeft=function(){var t=u.a.findDOMNode(this),n,i;t&&(n=this.props.grid,n&&n.canvas&&(i="translateX("+n.scrollLeft+"px)",t.style.webkitTransform=i,t.style.transform=i,this.setFrozenLeft()))},t.prototype.setFrozenLeft=function(){var n,t;if(this.isFrozenRight&&(n=u.a.findDOMNode(this),n&&(t=this.props.grid,t&&t.canvas))){var i=u.a.findDOMNode(t.canvas).getBoundingClientRect(),f=n.getBoundingClientRect(),r=this.columnWidth;f.left+r>i.width&&(n.style.left=i.width-r+"px")}},t.prototype.initId=function(){},t.prototype.createContent=function(){return null},t.prototype.render=function(){return this.createContent()},t}(e.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var e,s=i(1),u=i.n(s),h=i(4),c=i.n(h),f=i(2),r=i(0),l=(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},a=function(n){function t(t){var i=n.call(this,t)||this;return i.bufferTop=20,i.bufferBottom=30,i.waitForLoadMore=!1,i.visibleStartIdx=-1,i.clearScroll(),i.state={version:i.state.version},i}return l(t,n),t.prototype.componentWillMount=function(){this.clearScroll()},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.clearScroll()},t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.setState(this.initState())},t.prototype.componentDidUpdate=function(t,i,r){n.prototype.componentDidUpdate.call(this,t,i,r);0!==this.scroll.scrollLeft&&this.setScrollLeft();this.scrollTopOffset>0&&!this.waitForLoadMore&&(this.setScrollTop(this.scrollTopOffset),this.scrollTopOffset=0)},t.prototype.shouldComponentUpdate=function(n,t){return!f.a.isEqual(this.state.rows,t.rows)||t.renderStart!==this.state.renderStart||t.renderEnd!==this.state.renderEnd||t.version!==this.state.version||t.sortOrder!==this.state.sortOrder},Object.defineProperty(t.prototype,"id",{get:function(){return this.dataElement.Name+"_canvas"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return"grid-canvas"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasHeight",{get:function(){return this.domElement.clientHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasWidth",{get:function(){return this.domElement.clientWidth},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsInCanvasArea",{get:function(){return Math.ceil(this.canvasHeight/this.rowHeight)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowHeight",{get:function(){return this.props.grid.rowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedRows",{get:function(){return this._renderedRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataElement",{get:function(){return this.props.dataElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addLoadMoreButton",{get:function(){return this.dataElement.IsMobile&&!this.dataElement.EndArchived&&"Form"===this.dataElement.Window.Mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAttachEvents",{get:function(){return this.dataElement.IsMobile&&this.dataElement.EndArchived&&"Form"!==this.dataElement.Window.Mode},enumerable:!1,configurable:!0}),t.prototype.buildRow=function(n){var t={ref:n.Element.Name+"_"+n.formattedId,idx:n.RowIdx,key:"".CreateReactKey(),row:n,grid:this.props.grid};return n.IsNonOptimalRow?u.a.createElement(r.GridRowNonOptimal,t):n.IsLocationRow?u.a.createElement(r.GridRowLocator,t):n.IsGroupingRow?u.a.createElement(r.GridRowGrouping,t):n.IsGroupingSumRow?u.a.createElement(r.GridRowGroupingSum,t):n.IsNewRow?u.a.createElement(r.GridRowNew,t):u.a.createElement(r.GridRowNormal,t)},t.prototype.buildRowsAsync=function(n){var i=this,t=[];return 0===n.length?t.push(this.buildEmptyRowsAsync()):(n.map(function(n,r){return t.push(i.buildRowAsync(n,r))}),this.addLoadMoreButton&&t.push(this.buildLoadMoreAsync())),r.SPromise.all(t).then(function(n){return new r.SPromise(function(t){t(n)})})},t.prototype.buildRowAsync=function(n,t){var i=this;return new r.SPromise(function(r){r(i.buildRow(n,t))})},t.prototype.buildEmptyRowsAsync=function(){var n=this;return new r.SPromise(function(t){t(u.a.createElement(r.GridRowEmptyContent,{key:"emptyContent",grid:n.props.grid,dataElement:n.dataElement}))})},t.prototype.buildLoadMoreAsync=function(){var n=this;return new r.SPromise(function(t){t(u.a.createElement(r.GridRowLoadMore,{id:n.dataElement.ID.toString(),key:"loadMore",dataElement:n.dataElement,grid:n.props.grid,onClick:function(){return n.props.grid.loadMoreNextAction()}}))})},t.prototype.buildRows=function(){var t=this.getRows(),n=[];return this.buildRowsAsync(t).then(function(t){n=t}),this.createGridRowPlaceholder(n,!0),this.dataElement.Rows.length-this.state.renderEnd>0?this.createGridRowPlaceholder(n,!1):this.dataElement.EndArchived&&this.state.renderEnd&&this.createGridRowPlaceholder(n,!1,!0),n},t.prototype.createGridRowPlaceholder=function(n,t,i){void 0===i&&(i=!1);var s=this.props.grid.rowHeight,h=this.visibleStartIdx>0?this.visibleStartIdx:this.state.renderStart,e=t?"top":"bottom",f={id:e,dataElement:this.dataElement,grid:this.props.grid};t&&h>0?(f.top=0,f.height=h*s,n.unshift(u.a.createElement(r.GridRowPlaceholder,o({key:e,ref:e},f)))):t||(f.top=this.state.renderEnd*s,f.height=i?14:(this.dataElement.Rows.length-this.state.renderEnd)*s,n.push(u.a.createElement(r.GridRowPlaceholder,o({key:e,ref:e},f))))},t.prototype.getRows=function(){return this._renderedRows=[],void 0!==this.state.renderStart&&void 0!==this.state.renderEnd&&this.dataElement&&this.dataElement.hasRows&&(this._renderedRows=this.dataElement.Rows.slice(this.state.renderStart,this.state.renderEnd)),this._renderedRows},t.prototype.getRowIdxById=function(n){return this.props.grid.EipExtender.getRowIdxByID(n)},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.eventRegistrar.registerEventListener({domElement:this.domElement,type:"scroll",handler:this.scrollListener.bind(this)});this.eventRegistrar.registerEventListener({domElement:this.domElement,type:"resize",handler:this.scrollListener.bind(this)});this.eventRegistrar.registerEventListener({domElement:this.domElement,type:"transitionend",handler:this.onTransitionEnd.bind(this)})},t.prototype.scrollListener=function(n){if(this.domElement===n.target&&this.domElement.scrollTop!==this.scroll.scrollTop){var t=this.domElement.scrollTop,i=t>this.scroll.scrollTop?"down":"up";this.scroll={scrollTop:t<=0?0:t,scrollLeft:this.domElement.parentElement.scrollLeft,scrollDirection:i};this.domElement.style.color=this.getRandomColor()}},t.prototype.onTransitionEnd=function(n){var t=this;(n.srcElement||n.target).id!==this.id||"color"!==n.propertyName||this.waitForLoadMore||this.setState(this.calcState(),function(){t.triggerLoadMore()})},t.prototype.triggerLoadMore=function(){var n=Math.max(5,.3*this.rowsInCanvasArea),t=!this.dataElement.EndArchived&&this.state.visibleEnd>=this.dataElement.Rows.length-n,i=!this.dataElement.StartArchived&&this.state.renderStart<=n;t?this.loadMoreNextAction():i&&this.loadMorePrevAction();this.waitForLoadMore=t||i},t.prototype.loadMorePrevAction=function(){this.beforeLoadStartId=this.dataElement.Rows[this.state.visibleStart].ID;this.props.grid.loadMorePrevAction()},t.prototype.loadMoreNextAction=function(){console.assert(this.state.visibleStart<=this.dataElement.Rows.length,"Próba odczytania wiersza nie istniejącego w kolekcji wierszy");this.beforeLoadStartId=this.dataElement.Rows[this.state.visibleStart].ID;this.props.grid.loadMoreNextAction()},t.prototype.clearScroll=function(){this.scroll={scrollTop:0,scrollLeft:0}},t.prototype.getScroll=function(){var n=this.domElement.parentElement;return{scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}},t.prototype.setScrollLeft=function(){var n=this;f.a.forEach(this.dataElement.Rows,function(t){var i=n.refs[t.Element.Name+"_"+t.formattedId];i&&i.setScrollLeft&&i.setScrollLeft()},this)},t.prototype.setScrollTop=function(n){this.domElement&&(this.domElement.scrollTop=n)},t.prototype.getRandomColor=function(){var n=this.domElement.style.color,t;return""===n?"rgb(242, 242, 242)":(t=n.substring(n.indexOf("(")+1,n.lastIndexOf(")")).split(/,\s*/),"rgb("+t[0]+", "+t[1]+", "+Math.floor(255*Math.random()+1)+")")},t.prototype.initState=function(){var n=this.dataElement&&this.dataElement.Rows?this.dataElement.Rows:[],t=Math.min(0+this.rowsInCanvasArea,n.length);return{rows:n,visibleStart:0,visibleEnd:t,renderStart:0,renderEnd:Math.min(t+this.bufferBottom,n.length),rowCount:n.length,sortOrder:this.props.dataElement.OrderBy,version:this.props.dataElement.Version}},t.prototype.calcState=function(){var r=this.props.grid.rowHeight,u=this.rowsInCanvasArea,t=this.dataElement&&this.dataElement.Rows?this.dataElement.Rows:[],o=this.scroll&&"up"===this.scroll.scrollDirection,s=this.scroll&&"down"===this.scroll.scrollDirection,n=Math.floor(this.scroll.scrollTop/r),i=Math.min(n+u,t.length),f=Math.max(0,n-this.bufferTop),e=Math.min(i+this.bufferBottom,t.length);if(this.scrollTopOffset=0,this.visibleStartIdx>=0)n=this.visibleStartIdx,i=Math.min(n+u,t.length),f=Math.max(0,n-this.bufferTop),e=Math.min(i+this.bufferBottom,t.length),this.scrollTopOffset=r*this.visibleStartIdx;else if(s&&this.state.renderEnd-i>1||o&&n-this.state.renderStart>1)return this.visibleStartIdx=-1,this.state;return this.visibleStartIdx=-1,{rows:t,visibleStart:n,visibleEnd:i,renderStart:f,renderEnd:e,rowCount:t.length,sortOrder:this.props.dataElement.OrderBy}},t.prototype.onResizeColumnStart=function(){var n=this;f.a.each(this.getRows(),function(t){var i=document.getElementById(r.GridRowBase.formattedId(t));i&&(n.startWidth=i.getBoundingClientRect().width)})},t.prototype.onResizeColumnDrag=function(n){var i=this,t=this.startWidth+n.offset;f.a.each(this.getRows(),function(u){var f=document.getElementById(r.GridRowBase.formattedId(u)),e=u.IsGroupingSumRow?r.GridBase.GroupSummaryPrefix:r.GridBase.ColumnPrefix;f&&(u.Settings.ColumnSettings.ResizedWidth=t,f.style.width=t+"px");i.props.grid.changeColumnsSize(n,e+u.formattedId)});this.changePlaceholderWidth("top",t);this.changePlaceholderWidth("bottom",t)},t.prototype.changePlaceholderWidth=function(n,t){var r=this.refs[n],i;r&&(i=c.a.findDOMNode(r),i&&(i.style.width=t+"px"))},t.prototype.handler=function(n){n.FirstCall?this.handleFirstCall(n):n.ListChanged&&(this.updateExtender(),this.handleListChanged(n))},t.prototype.handleFirstCall=function(n){this.visibleStartIdx=this.getRowIdxById(this.dataElement.FocusedRow);this.setState(this.calcState(n.Element))},t.prototype.handleListChanged=function(n){var t=-1,i=!1;if(0===n.Element.Start){if(0===this.dataElement.Rows.length||this.props.grid.SelectionExtender.hasNonOptimalRow||this.props.grid.SelectionExtender.hasNewRow&&1===this.dataElement.Rows.length)return void this.setState(this.initState());t=this.getRowIdxById(this.dataElement.FocusedRow);this.dataElement.Rows.length>0&&-1===t&&(this.dataElement.FocusedRow="-1",t=0);i=!0}else-1===n.Element.Start?t=this.getRowIdxById(n.Element.FocusedRow):n.Element.Start>0&&(n.Element.Backward||this.waitForLoadMore)&&(t=this.getRowIdxById(this.beforeLoadStartId),this.waitForLoadMore=!1);t>=0&&(i&&this.setScrollTop(0),this.visibleStartIdx=t,this.setState(this.calcState(n.Element)))},t.prototype.updateExtender=function(){this.props.grid&&(this.props.grid.EipExtender.DataElement=this.dataElement)},t.prototype.render=function(){return u.a.createElement("div",{id:this.id,key:this.id,className:this.classnames,"data-rows-len":this.state.rowCount},this.buildRows())},t}(r.ControlBase)},function(n,t,i){"use strict";var o;i.d(t,"b",function(){return u});i.d(t,"a",function(){return o});var f,u,s=i(1),h=i.n(s),c=i(4),l=i.n(c),a=i(3),v=i.n(a),e=i(2),r=i(0),y=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});!function(n){n[n.Expanded=0]="Expanded";n[n.Collapsed=1]="Collapsed";n[n.Normal=2]="Normal"}(u||(u={}));o=function(n){function t(t){var i=n.call(this,t)||this,r,u;return i.clickCount=0,r=i.initTreeState(i.rowElement.Data[0]),u=i.initTreeLevel(i.rowElement.Data[0]),i.firstCreate=!0,i.state={selected:i.rowElement&&i.rowElement.IsSelected,focused:i.isFocused,editValue:i.rowElement?i.rowElement.Data[i.columnIdx]:"",treeState:r,treeLevel:u},i}return y(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.attachListener();this.firstCreate=!1;this.setFrozenLeft()},t.prototype.componentWillUnmount=function(){this.detachListener()},t.prototype.componentWillReceiveProps=function(n){this.rowElement.Element!==n.rowElement.Element&&(this.rowElement.Element&&this.detachListener(),n.rowElement.Element.addListener(this));n.rowElement.Data[this.columnIdx]!==this.state.editValue&&this.setState({editValue:n.rowElement.Data[this.columnIdx]});this.updateTreeState(n.rowElement.Data[0])},t.prototype.shouldComponentUpdate=function(n,t){return t.selected!==this.state.selected||t.focused!==this.state.focused||t.checked!==this.state.checked||t.editValue!==this.state.editValue||t.treeState!==this.state.treeState||t.treeLevel!==this.state.treeLevel||n.dataElement!==this.props.dataElement||n.rowElement!==this.props.rowElement||n.rowElement.Data[0]!==this.props.rowElement.Data[0]},Object.defineProperty(t.prototype,"id",{get:function(){if(!this.props.dataElement)return r.GridBase.ColumnPrefix+"selAll";var n=""+r.GridBase.ColumnPrefix+this.props.rowElement.ID;return this.dataElement.Settings.ColumnSettings[n]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return v()(this.classes)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstCreate",{get:function(){return this.first},set:function(n){this.first=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRightAlign",{get:function(){return this.dataElement.EditorType&&"TextRight"===this.dataElement.EditorType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsMobile",{get:function(){return this.props.dataElement.IsMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DeviceType",{get:function(){return this.props.dataElement.Window.DeviceType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Columns",{get:function(){return this.rowElement.Element.Columns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"grid",{get:function(){return this.props.grid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectionColumn",{get:function(){return this.rowElement.Element.Columns.length>0&&null===this.rowElement.Element.Columns[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmartOpen",{get:function(){return this.dataElement&&this.dataElement.hasClass("SmartOpen")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocused",{get:function(){return!!this.rowElement.IsFocused&&(this.rowElement.Element.FocusedColumnIdx>=0?this.rowElement.Element.FocusedColumnIdx===this.columnIdx:this.isSmartOpen)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTree",{get:function(){return 1===this.columnIdx&&this.rowElement.Element.IsTree},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eipMode",{get:function(){return this.props.dataElement&&this.props.dataElement.ID>0&&this.props.dataElement.Editable&&this.state.focused},enumerable:!1,configurable:!0}),t.prototype.attachListener=function(){this.rowElement&&this.rowElement.Element.addListener(this)},t.prototype.detachListener=function(){this.rowElement&&this.rowElement.Element.removeListener(this)},t.prototype.calculateColumnAppearance=function(n,t){var u=t||{},f=this.rowElement,i,e;return n<0||this.isFrozen?u:(i=this.rowElement.getAppearance(f.ID+"/"+(n-1)),(i||this.isSmartOpen||(i=this.rowElement.getAppearance(f.ID)),i)&&((i.ForeColor&&(u.color=i.ForeColor),i.BackColor)&&(e=r.ColorHelper.hexToRgb(i.BackColor,f.IsOdd?.4:.6),u.backgroundColor=e),r.AppearancePalette.calculateFontStyle(i,u)),u)},t.prototype.initId=function(){if(this.dataElement&&this.rowElement&&!this.props.rowElement.IsFilterRow&&!this.props.rowElement.IsSummaryRow){var n=""+r.GridBase.ColumnPrefix+this.props.rowElement.ID;this.props.dataElement.Settings.ColumnSettings[n]=r.GridBase.createColumnId(this.dataElement,n)}},t.prototype.handleColumnsChanged=function(n){var t=n.ColumnsChanged;t&&t.name===this.props.dataElement.Name&&t.rowId===this.rowElement.ID&&this.setState({editValue:t.editValue})},t.prototype.handleFocusedElementChanged=function(n){var u=null,i,f,h,c,e,o,s,a;window.event&&(u=new r.KeyboardEventProps(window.event));i=n.FocusedElementChanged;i&&(f=document.getElementById(this.id),f&&(h=i.rowId===this.rowElement.ID&&this.rowElement.Element.FocusedColumnIdx===this.columnIdx,r.ControlBase.switchClass(f,t.ActiveClass,h)),c=i.rowId===this.rowElement.ID&&i.columnIdx===this.columnIdx,!i.columnIdx&&this.columnIdx===this.rowElement.Element.FocusedColumnIdx&&i.forceCloseEditor?(e=this.refs.eipContent,e&&(o=document.getElementById(this.props.dataElement.Name),s=e.refs[this.props.dataElement.Name],s&&o&&(this.rowElement.Element.FocusedColumnIdx=null,s.postEipEditorClose(o.value)))):!i.columnIdx&&i.forceCloseEditor&&u&&u.isEsc&&(a=l.a.findDOMNode(this.props.grid),Object(r.FireCustomFocus)(a,{close:!0})),this.setState({focused:c}))},t.prototype.changeSelectedElement=function(n){void 0===n&&(n=!1);this.rowElement&&this.grid.SelectionExtender.postSelectRow({row:this.rowElement,isShiftKey:n,isMouseDown:!0})},t.prototype.changeFocusedElement=function(){this.rowElement&&this.grid.EipExtender&&this.grid.EipExtender.changeFocusedElement({rowId:this.rowElement.ID,columnIdx:this.columnIdx,sendRequest:!0})},t.prototype.initTreeLevel=function(n){if(!this.isTree||!n)return null;var t=n.split(":");return t.length>=1?parseInt(t[1]):null},t.prototype.initTreeState=function(n){if(!this.isTree)return null;var i=n.split(":"),t=null;return"."===i[2]?t=u.Normal:e.a.indexOf(i[2],"+")>=0?t=u.Collapsed:e.a.indexOf(i[2],"-")>=0&&(t=u.Expanded),t},t.prototype.updateTreeState=function(n){if(this.isTree){var t=this.initTreeState(n),i=this.initTreeLevel(n);t===this.state.treeState&&i===this.state.treeLevel||this.setState({treeState:t,treeLevel:i})}},t.prototype.prepareClasses=function(){this.classes={};this.classes[t.ColumnClass]=!0;this.classes[t.SmartOpenClass]=this.isSmartOpen&&!this.isTree;this.classes[t.ActiveClass]=this.isFocused},t.prototype.prepareInlineStyle=function(n){void 0===n&&(n=-1);n<0&&(n=this.dataElement.Width);var t={width:n+"px",height:this.props.grid.rowHeight+"px",left:this.columnLeftPosition+"px"};return this.isTree&&(t.padding="0"),this.isLastLeftFrozen&&(t.borderRightWidth="1px",t.borderRightStyle="solid"),this.isFirstRightFrozen&&(t.borderLeftWidth="1px",t.borderLeftStyle="solid"),(this.isFrozen||this.isFrozenRight)&&this.props.grid.scrollLeft>0&&(t.WebkitTransform="translateX("+this.props.grid.scrollLeft+"px)",t.transform="translateX("+this.props.grid.scrollLeft+"px)"),this.calculateColumnAppearance(this.columnIdx,t)},t.prototype.handler=function(n){this.handleFocusedElementChanged(n);this.handleColumnsChanged(n)},t.prototype.actionEmptyHandler=function(n){n.preventDefault();n.stopPropagation()},t.prototype.singleClick=function(n,t){this.grid.dataElement.DisableSelection||!n&&!t?this.changeFocusedElement():n?this.changeSelectedElement():t&&this.changeSelectedElement(!0)},t.prototype.dblClick=function(){this.rowElement&&(this.changeFocusedElement(),this.rowElement.postClick(!1))},t.prototype.actionClick=function(n){n.preventDefault();n.stopPropagation();var t=n.ctrlKey,i=n.shiftKey;t||i?this.singleClick(t,i):this.rowElement&&(r.WindowManager.Instance.IsServerRequesting||(this.rowElement.setFocused(!0),this.rowElement.postClick(!1)))},t.prototype.actionClickTreeNode=function(n){n.preventDefault();n.stopPropagation();this.rowElement&&(this.rowElement.setFocused(!0),this.rowElement.postClick(!1))},t.prototype.actionSetFocused=function(n){var t=this,i=n.ctrlKey,u=n.shiftKey;this.clickCount++;1===this.clickCount?(++r.WindowManager.LockUiCounter,this.singleClickTimer=setTimeout(function(){--r.WindowManager.LockUiCounter;t.clickCount=0;t.singleClick(i,u)},300)):2===this.clickCount&&(--r.WindowManager.LockUiCounter,clearTimeout(this.singleClickTimer),this.clickCount=0,this.dblClick())},t.prototype.createContent=function(){return null},t.prototype.createEipColumnEditor=function(){this.props.dataElement.Settings.ColumnSettings.EipMode=!0;this.props.dataElement.Settings.ColumnSettings.EipHeight=this.props.grid.rowHeight;var n="CheckBox"===this.props.dataElement.EditorType?r.FieldCheckBox:r.FieldBase.getControlType(this.props.dataElement);return n?h.a.createElement(n,{dataElement:this.props.dataElement,key:this.props.dataElement.Name,ref:this.props.dataElement.Name}):null},t.prototype.renderMobile=function(){return console.assert(!0,"Brak implementacji metody [renderMobile] renderującej komponent dla pełnego interfejsu Html"),null},t.prototype.renderBrowser=function(){return console.assert(!0,"Brak implementacji metody [renderBrowser] renderującej komponent dla pełnego interfejsu Html"),null},t.prototype.render=function(){return this.initId(),this.IsMobile?this.renderMobile():this.renderBrowser()},t.ColumnClass="gc",t.ActiveClass="gc-active",t.TextClass="gc-text",t.ImageClass="gc-image",t.ColorClass="gc-color",t.CheckBoxClass="gc-check",t.SmartOpenClass="gc-so",t.FrozenClass="frozen",t.RightClass="right",t.IconClass="gc-icon",t.ColorStatusClass="gc-color-status",t}(r.GridColumnFrozen)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,o=i(1),r=i.n(o),s=i(3),h=i.n(s),u=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},l=function(n){function t(t){var i=n.call(this,t)||this,r=!i.rowElement.IsNewRow&&i.rowElement.Data[i.columnIdx]&&"true"===i.rowElement.Data[i.columnIdx].toLowerCase();return i.state={selected:i.rowElement.IsSelected,focused:i.rowElement.IsFocused&&i.isSmartOpen,checked:r},i}return c(t,n),Object.defineProperty(t,"checkImage",{get:function(){return r.a.createElement("svg",{viewBox:"0 0 24 24"},r.a.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}))},enumerable:!1,configurable:!0}),Object.defineProperty(t,"unCheckImage",{get:function(){return r.a.createElement("svg",{viewBox:"0 0 24 24"},r.a.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}))},enumerable:!1,configurable:!0}),Object.defineProperty(t,"selectImage",{get:function(){return u.GlobalSettings.Instance.IsStandardProduct?r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 80,0 C 35.84,0 0,35.84 0,80 c 0,44.16 35.84,80 80,80 44.16,0 80,-35.84 80,-80 C 160,35.84 124.16,0 80,0 Z m 44.85156,42.427734 a 7.50075,7.50075 0 0 1 5.45117,12.875 L 70.302734,115.30273 a 7.50075,7.50075 0 0 1 -10.607422,0 l -30,-29.999996 A 7.50075,7.50075 0 1 1 40.302734,74.697266 L 64.998047,99.394531 119.69531,44.697266 a 7.50075,7.50075 0 0 1 5.15625,-2.269532 z"})):r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 37.966797 0 C 16.933576 0 1.1749547e-016 16.933576 0 37.966797 L 0 122.0332 C 0 143.06642 16.933576 160 37.966797 160 L 122.0332 160 C 143.06642 160 160 143.06642 160 122.0332 L 160 37.966797 C 160 16.933576 143.06642 1.1749547e-016 122.0332 0 L 37.966797 0 z M 123.49609 40.394531 A 7.50075 7.50075 0 0 1 128.94727 53.269531 L 68.947266 113.26953 A 7.50075 7.50075 0 0 1 58.339844 113.26953 L 28.339844 83.269531 A 7.50075 7.50075 0 1 1 38.947266 72.664062 L 63.642578 97.361328 L 118.33984 42.664062 A 7.50075 7.50075 0 0 1 123.49609 40.394531 z "}))},enumerable:!1,configurable:!0}),Object.defineProperty(t,"unSelectImage",{get:function(){return u.GlobalSettings.Instance.IsStandardProduct?r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 80,0 C 35.894687,0 0,35.894686 0,80 c 0,44.10531 35.894687,80 80,80 44.10531,0 80,-35.89469 80,-80 C 160,35.894685 124.10531,0 80,0 Z m 0,10 c 38.69469,0 70,31.305315 70,70 0,38.69469 -31.30532,70 -70,70 C 41.305315,150 10,118.69469 10,80 10,41.305314 41.305315,10 80,10 Z"})):r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 38.082031,0 C 17.070854,0 0,17.070854 0,38.082031 L 0,121.91797 C 0,142.92915 17.070854,160 38.082031,160 l 83.835939,0 C 142.92915,160 160,142.92915 160,121.91797 l 0,-83.835939 C 160,17.070854 142.92915,0 121.91797,0 L 38.082031,0 Z m 0,10 83.835939,0 C 137.56212,10 150,22.437882 150,38.082031 l 0,83.835939 C 150,137.56212 137.56212,150 121.91797,150 l -83.835939,0 C 22.437882,150 10,137.56212 10,121.91797 L 10,38.082031 C 10,22.437882 22.437882,10 38.082031,10 Z"}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return!this.eipMode&&this.rowElement.Data[this.columnIdx]&&"true"===this.rowElement.Data[this.columnIdx].toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkBoxClasses",{get:function(){var n={check:!0};return n["check-open"]=this.isChecked,n["check-close"]=!this.firstCreate&&!this.isChecked,h()(n)},enumerable:!1,configurable:!0}),t.prototype.handleColumnsChanged=function(n){var t=n.ColumnsChanged;t&&void 0!==t.checked&&t.name===this.props.dataElement.Name&&t.rowId===this.rowElement.ID&&this.setState({checked:t.checked})},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes[u.GridColumnBase.CheckBoxClass]=!0;this.classes[u.GridColumnBase.FrozenClass]=this.isFrozen},t.prototype.renderBrowser=function(){var f=this,n,t,i;return this.columnIdx<0?null:(this.prepareClasses(),n={id:this.id,key:this.rowElement.ID+this.columnIdx,style:this.prepareInlineStyle(),className:this.classnames},this.eipMode)?(t=this.createEipColumnEditor(),r.a.createElement("div",e({},n),t)):(i=this.isChecked?u.EditorCheckBox.checkImage:u.EditorCheckBox.unCheckImage,r.a.createElement("div",e({},n,{onClick:function(n){return f.actionSetFocused(n)}}),r.a.createElement("div",{className:this.checkBoxClasses},i)))},t}(u.GridColumnBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var r,o=i(1),e=i.n(o),u=i(0),s=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),f=function(){return(f=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){var i=n.call(this,t)||this;return i.state={selected:i.rowElement.IsSelected,focused:i.rowElement.IsFocused&&i.isSmartOpen},i}return s(t,n),Object.defineProperty(t.prototype,"columnValue",{get:function(){return this.rowElement.Data[this.columnIdx]},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes[u.GridColumnBase.ColorClass]=!0;this.classes[u.GridColumnBase.FrozenClass]=this.isFrozen;this.classes["cp-empty-bcg"]=""===this.columnValue||null===this.columnValue},t.prototype.renderBrowser=function(){var u=this,i,n,t,r;return this.columnIdx<0?null:(this.prepareClasses(),i=this.dataElement.Width<72?72:this.dataElement.Width,n=this.prepareInlineStyle(i),n.backgroundColor=this.columnValue,t={id:this.id,key:this.rowElement.ID+this.columnIdx,style:n,className:this.classnames},this.eipMode)?(r=this.createEipColumnEditor(),e.a.createElement("div",f({},t),r)):e.a.createElement("div",f({},t,{onClick:function(n){return u.actionSetFocused(n)}}))},t}(u.GridColumnBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var u,o=i(1),r=i.n(o),f=i(0),s=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){var i=n.call(this,t)||this;return i.trafficLightMode=t.dataElement.hasClass("TrafficLightEdit"),i.progressMode=t.dataElement.hasClass("ProgressEdit"),i.state={selected:i.rowElement.IsSelected,focused:i.rowElement.IsFocused&&i.isSmartOpen},i}return s(t,n),Object.defineProperty(t.prototype,"trafficMode",{get:function(){return this.trafficLightMode},set:function(n){this.trafficLightMode=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressMode",{get:function(){return this.progressLightMode},set:function(n){this.progressLightMode=n},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes[f.GridColumnBase.ColorStatusClass]=!0;this.classes[f.GridColumnBase.FrozenClass]=this.isFrozen},Object.defineProperty(t.prototype,"columnValue",{get:function(){return this.rowElement.Data[this.columnIdx]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatePrcValue",{get:function(){var n=this.columnValue;return n.indexOf("%")>=0&&(n=n.split("%").join("")),parseInt(n)},enumerable:!1,configurable:!0}),t.prototype.trafficLightStyle=function(n){return{width:"12px",height:"12px",backgroundColor:n||null,borderRadius:"6px",marginLeft:"3px"}},t.prototype.progressLightStyle=function(n){return{width:this.calculatePrcValue+"%",height:"8px",backgroundColor:n||null,borderRadius:"6px",marginLeft:"3px"}},t.prototype.trafficLightTextStyle=function(){return{width:"calc(100% - 20px)",marginLeft:"5px"}},t.prototype.renderTrafficLightMode=function(n){var t=this;return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"gc-light",style:this.trafficLightStyle(n)}),r.a.createElement("div",{className:"text",style:this.trafficLightTextStyle(),dangerouslySetInnerHTML:{__html:this.columnValue},onClick:function(n){return t.actionSetFocused(n)}}))},t.prototype.renderProgressMode=function(n){return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"gc-light",style:this.progressLightStyle(n)}))},t.prototype.renderBrowser=function(){var t=this,n,i,u;return this.columnIdx<0?null:(this.prepareClasses(),n=this.prepareInlineStyle(this.dataElement.Width<72?72:this.dataElement.Width),i=n.color?n.color:"rgb(61, 207, 120)",delete n.color,u={id:this.id,key:this.rowElement.ID+this.columnIdx,style:n,className:this.classnames},r.a.createElement("div",e({},u,{onClick:function(n){return t.isSmartOpen?t.actionClick(n):t.actionSetFocused(n)}}),this.trafficLightMode?this.renderTrafficLightMode(i):null,this.progressMode?this.renderProgressMode(i):null))},t}(f.GridColumnBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var r,e=i(1),u=i.n(e),o=i(0),s=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),f=function(){return(f=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){return n.call(this,t)||this}return s(t,n),t.prototype.createEipColumnEditor=function(){this.props.dataElement.Settings.ColumnSettings.EipMode=!0;this.props.dataElement.Settings.ColumnSettings.EipHeight=this.props.grid.rowHeight;var n=o.FieldBase.getControlType(this.props.dataElement);return n?u.a.createElement(n,{dataElement:this.props.dataElement,key:this.props.dataElement.Name,ref:this.props.dataElement.Name}):null},t.prototype.render=function(){var n=this.createEipColumnEditor(),t={id:this.props.id,style:this.props.style,className:this.props.className,"data-hash":this.props.grid.EipExtender.hash};return u.a.createElement("div",f({},t),n)},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,o=i(1),f=i.n(o),s=i(3),e=i.n(s),r=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.state={editValue:i.rowElement.Data[i.columnIdx]},i}return h(t,n),Object.defineProperty(t.prototype,"id",{get:function(){return this.dataElement?this.dataElement.Settings.ColumnSettings[r.GridBase.SummaryPrefix]:r.GridBase.SummaryPrefix+"selAll"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFrozen",{get:function(){return this.props.selectAll||this.dataElement&&this.dataElement.Frozen},enumerable:!1,configurable:!0}),t.prototype.initId=function(){this.dataElement&&(this.dataElement.Settings.ColumnSettings[r.GridBase.SummaryPrefix]=r.GridBase.createColumnId(this.dataElement,r.GridBase.SummaryPrefix))},Object.defineProperty(t.prototype,"classcontainer",{get:function(){var n={};return n["gf-sum"]=""!==this.rowElement.Data[this.columnIdx],n["gf-sum-empty"]=""===this.rowElement.Data[this.columnIdx],n["gf-all"]=this.props.selectAll,n.frozen=this.isFrozen,e()(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classText",{get:function(){var n={text:!0};return n.right=this.isRightAlign,e()(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRightAlign",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconName",{get:function(){return"$sum"===this.rowElement.Data[0]?"suma_zaznaczone":"suma"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.props.selectAll?r.GridBase.CheckBoxColumnSize:this.dataElement.Width},enumerable:!1,configurable:!0}),t.prototype.calculateColumnLeftPosition=function(){return this.props.selectAll?0:this.columnLeftPosition},t.prototype.createContent=function(){var n={width:this.width+"px",height:r.GridBase.HeaderColumnHeight+"px",left:this.calculateColumnLeftPosition()+"px"},t;return this.isFirstRightFrozen&&(n.borderLeftWidth="1px",n.borderLeftStyle="solid"),t=this.props.selectAll?f.a.createElement(r.SvgIcon,{name:this.iconName,classes:"icon"}):f.a.createElement("div",{className:this.classText,dangerouslySetInnerHTML:{__html:this.rowElement.Data[this.columnIdx]}}),f.a.createElement("div",{id:this.id,style:n,className:this.classcontainer},t)},t}(r.GridColumnFrozen)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),Object.defineProperty(t.prototype,"id",{get:function(){if(!this.props.dataElement)return r.GridBase.GroupSummaryPrefix+"selAll";var n=""+r.GridBase.GroupSummaryPrefix+this.props.rowElement.formattedId;return this.dataElement.Settings.ColumnSettings[n]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconName",{get:function(){return"suma"},enumerable:!1,configurable:!0}),t.prototype.initId=function(){if(this.dataElement){var n=""+r.GridBase.GroupSummaryPrefix+this.props.rowElement.formattedId;this.dataElement.Settings.ColumnSettings[n]=r.GridBase.createColumnId(this.dataElement,n)}},t}(r.GridColumnSum)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var u,o=i(1),f=i.n(o),r=i(0),s=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){var i=n.call(this,t)||this;return i.state={selected:i.rowElement.IsSelected,focused:i.rowElement.IsFocused&&i.isSmartOpen},i}return s(t,n),Object.defineProperty(t.prototype,"columnValue",{get:function(){return this.rowElement.Data[this.columnIdx]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentValue",{get:function(){return this.columnValue.indexOf("path")>=0?this.columnValue:null},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes[r.GridColumnBase.IconClass]=!0;this.classes[r.GridColumnBase.FrozenClass]=this.isFrozen},t.prototype.renderBrowser=function(){var t=this,n,i;return this.columnIdx<0?null:(this.prepareClasses(),n=this.prepareInlineStyle(this.dataElement.Width<72?72:this.dataElement.Width),i={id:this.id,key:this.rowElement.ID+this.columnIdx,style:n,className:this.classnames},f.a.createElement("div",e({},i,{onClick:function(n){return t.isSmartOpen?t.actionClick(n):t.actionSetFocused(n)}}),this.columnValue?f.a.createElement(r.SvgIcon,{name:this.columnValue,content:this.contentValue,classes:"icon",style:{height:"20px",width:"20px",fill:n.color?n.color:null},enabled:!0}):null))},t}(r.GridColumnBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var f,o=i(1),u=i.n(o),r=i(0),s=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){var i=n.call(this,t)||this;return i.state={selected:i.rowElement.IsSelected,focused:i.rowElement.IsFocused&&i.isSmartOpen},i}return s(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes[r.GridColumnBase.ImageClass]=!0;this.classes[r.GridColumnBase.FrozenClass]=this.isFrozen},t.prototype.renderBrowser=function(){var n=this;if(this.columnIdx<0)return null;this.prepareClasses();var t=this.dataElement.Width<72?72:this.dataElement.Width,o=r.AttachmentUrlHelper.changeImageSizeUrl(this.rowElement.Data[this.columnIdx],t,!0),i=u.a.createElement(r.Image,{src:o,dataElement:null,id:this.dataElement.ID.toString()}),f={id:this.id,key:this.rowElement.ID+this.columnIdx,style:this.prepareInlineStyle(t),className:this.classnames};return this.isSmartOpen?u.a.createElement("div",e({},f,{onClick:function(t){return n.actionClick(t)}}),i,u.a.createElement(r.SvgIcon,{name:r.GlobalSettings.Instance.IsStandardProduct?"następny":"naprzod",classes:"icon"})):u.a.createElement("div",e({},f,{onClick:function(t){return n.actionSetFocused(t)}}),i)},t}(r.GridColumnBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return v});var u,s=i(1),f=i.n(s),h=i(4),c=i.n(h),l=i(3),e=i.n(l),r=i(0),a=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},v=function(n){function t(t){var i=n.call(this,t)||this;return i.selectionBoxWidth=r.GridBase.CheckBoxColumnSize,i.animOn=!1,i.animOn=!1,i.state={checked:t.selected},i}return a(t,n),t.prototype.componentDidMount=function(){this.animOn=!0},t.prototype.componentWillReceiveProps=function(n){n.selected!==this.props.selected&&this.setState({checked:n.selected})},t.prototype.shouldComponentUpdate=function(n,t){return t.checked!==this.state.checked},t.prototype.prepareClasses=function(){this.classes={}},t.prototype.prepareInlineStyle=function(){var n={width:r.GridBase.CheckBoxColumnSize+"px",height:this.props.height?this.props.height+"px":"inherit"};return this.props.grid&&this.props.grid.scrollLeft>0&&(n.WebkitTransform="translateX("+this.props.grid.scrollLeft+"px)",n.transform="translateX("+this.props.grid.scrollLeft+"px)"),n},Object.defineProperty(t.prototype,"classnames",{get:function(){return e()(this.classes)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkBoxClasses",{get:function(){var n={};return n["check-open"]=this.state.checked,n["check-close"]=!this.state.checked,n["anim-open"]=this.state.checked&&this.animOn,n["anim-close"]=!this.state.checked&&this.animOn,e()(n)},enumerable:!1,configurable:!0}),t.prototype.setScrollLeft=function(){var n=c.a.findDOMNode(this),t;n&&(t="translateX("+this.props.grid.scrollLeft+"px)",n.style.webkitTransform=t,n.style.transform=t)},t.prototype.onClick=function(n){n.stopPropagation();n.preventDefault();this.props.onSelect&&this.props.onSelect(n)},t.prototype.render=function(){var i=this,n,t;return this.prepareClasses(),n=this.state.checked?r.GridColumnCheckBox.selectImage:r.GridColumnCheckBox.unSelectImage,t={style:this.prepareInlineStyle(),className:this.classnames},f.a.createElement("div",o({},t,{onClick:function(n){return i.onClick(n)}}),f.a.createElement("div",{className:this.checkBoxClasses},n))},t}(f.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["gc-select"]=!0},t.prototype.onClick=function(n){n.stopPropagation();n.preventDefault();this.props.onSelectAll&&(this.props.onSelectAll(!this.state.checked),this.setState({checked:!this.state.checked}))},t}(u.GridColumnSelectBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["gc-select"]=!0;this.classes.frozen=!0},t}(u.GridColumnSelectBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var e,o=i(1),u=i.n(o),r=i(0),s=(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),f=function(){return(f=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){return n.call(this,t)||this}return s(t,n),Object.defineProperty(t.prototype,"treeElement",{get:function(){var e=this,t,n,i,f;return this.isTree?(t=null,n=r.GridBase.CheckBoxColumnSize,this.state.treeState!==r.TreeState.Normal&&(i=this.state.treeState===r.TreeState.Collapsed?"tree_c":"tree_e",t=u.a.createElement(r.SvgIcon,{name:i,classes:"icon"})),this.state.treeLevel>0&&(n+=this.state.treeLevel*n),f={width:n+"px"},u.a.createElement("div",{className:"tree-state",style:f,onClick:function(n){return e.actionClickTreeNode(n)}},t)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnValue",{get:function(){return this.rowElement.Data[this.columnIdx]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTreeNode",{get:function(){return null!==this.state.treeState},enumerable:!1,configurable:!0}),t.prototype.prepareTreeStateTextStyle=function(){var n=r.GridBase.CheckBoxColumnSize;return this.state.treeLevel>0&&(n+=this.state.treeLevel*n),{width:this.dataElement.Width-n+"px"}},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes[r.GridColumnBase.TextClass]=!0;this.classes[r.GridColumnBase.RightClass]=this.isRightAlign;this.classes[r.GridColumnBase.FrozenClass]=this.isFrozen},t.prototype.renderBrowser=function(){var t=this,n,i;return this.columnIdx<0?null:(this.prepareClasses(),this.dataElement.Settings.ColumnSettings.ColumnId=this.id,n={id:this.id,key:this.rowElement.ID+this.columnIdx,style:this.prepareInlineStyle(),className:this.classnames},this.eipMode)?u.a.createElement(r.GridColumnEipContent,{ref:"eipContent",id:this.id,style:this.prepareInlineStyle(),dataElement:this.props.dataElement,grid:this.props.grid,className:this.classnames}):this.isSmartOpen&&!this.isTree?u.a.createElement("div",f({},n,{"data-hash":this.grid.EipExtender.hash,onClick:function(n){return t.actionClick(n)}}),u.a.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:this.columnValue}}),u.a.createElement(r.SvgIcon,{name:r.GlobalSettings.Instance.IsStandardProduct?"następny":"naprzod",classes:"icon"})):this.isTreeNode?u.a.createElement("div",f({},n,{"data-hash":this.grid.EipExtender.hash}),this.treeElement,u.a.createElement("div",{className:"text",style:this.prepareTreeStateTextStyle(),dangerouslySetInnerHTML:{__html:this.columnValue},onClick:function(n){return t.actionSetFocused(n)}})):(i=this.columnValue,n.dangerouslySetInnerHTML={__html:i},u.a.createElement("div",f({},n,{"data-hash":this.grid.EipExtender.hash,onClick:function(n){return t.actionSetFocused(n)}})))},t}(r.GridColumnBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"id",{get:function(){return this.dataElement.Name+"_footer"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return"grid-footer"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"summariesRow",{get:function(){return this.refs.summaries},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataElement",{get:function(){return this.props.dataElement},enumerable:!1,configurable:!0}),t.prototype.setScrollLeft=function(){this.summariesRow&&this.summariesRow.setScrollLeft()},t.prototype.onResizeColumnDrag=function(n){this.summariesRow&&this.summariesRow.onResizeColumnDrag(n)},t.prototype.handler=function(n){n.PropertiesChanged&&this.updateState()},t.prototype.render=function(){var n={height:this.props.grid.footerHeight+1+"px"};return this.props.grid.hasSummaryRow?u.a.createElement("div",{id:this.id,className:this.classnames,style:n},u.a.createElement(f.GridRowFooterSum,{ref:"summaries",dataElement:this.dataElement,grid:this.props.grid})):null},t}(f.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"id",{get:function(){return this.dataElement.Name+"_header"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return"grid-header"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.refs.columns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this.refs.filters},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataElement",{get:function(){return this.props.dataElement},enumerable:!1,configurable:!0}),t.prototype.setScrollLeft=function(){this.columns&&this.columns.setScrollLeft();this.filters&&this.filters.setScrollLeft()},t.prototype.onResizeColumnStart=function(n){this.columns&&this.columns.onResizeColumnStart(n)},t.prototype.onResizeColumnDrag=function(n){this.columns&&this.columns.onResizeColumnDrag(n);this.filters&&this.filters.onResizeColumnDrag(n)},t.prototype.handler=function(n){(n.PropertiesChanged||n.ListChanged)&&this.updateState()},t.prototype.render=function(){var n=null,t={height:this.props.grid.headerHeight+1};return this.props.grid.hasFilterRow&&(n=u.a.createElement(f.GridHeaderFilters,{ref:"filters",grid:this.props.grid})),u.a.createElement("div",{id:this.id,className:this.classnames,style:t},u.a.createElement(f.GridHeaderColumns,{ref:"columns",grid:this.props.grid}),n)},t}(f.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var f,e=i(1),u=i.n(e),o=i(4),s=i.n(o),h=i(3),c=i.n(h),r=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){var i=n.call(this,t)||this;return i.state={sortOrder:i.columnOrder},i}return l(t,n),Object.defineProperty(t.prototype,"id",{get:function(){return this.dataElement?this.dataElement.Settings.ColumnSettings[r.GridBase.HeaderPrefix]:r.GridBase.HeaderPrefix+"selAll"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFrozen",{get:function(){return this.props.selectAll||this.dataElement&&this.dataElement.Frozen},enumerable:!1,configurable:!0}),t.prototype.initId=function(){this.dataElement&&(this.dataElement.Settings.ColumnSettings[r.GridBase.HeaderPrefix]=r.GridBase.createColumnId(this.dataElement,r.GridBase.HeaderPrefix))},Object.defineProperty(t.prototype,"classcontainer",{get:function(){var n={"gh-column":!0};return n.frozen=this.isFrozen,c()(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sortIconClassess",{get:function(){return"ghc-sort"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classtitle",{get:function(){return"ghc-title"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.props.selectAll?r.GridBase.CheckBoxColumnSize:this.dataElement.Width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnOrder",{get:function(){return this.props.headerColumns.getColumnOrder(this.dataElement)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){var t,n="";return this.props.selectAll?"":this.dataElement?this.dataElement.CaptionHtml?(t=(n=this.dataElement.CaptionHtml).indexOf("~"),n&&t>=0&&(n=n.substring(t+1)),n):this.dataElement.Name:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSortable",{get:function(){if(this.props.selectAll)return!1;var n=this.columnOrder;return"+"===n||"-"===n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCommonColumn",{get:function(){return!this.props.selectAll&&this.dataElement&&this.dataElement.IsVisible&&this.dataElement.CaptionHtml&&this.dataElement.CaptionHtml.indexOf("~")>=0},enumerable:!1,configurable:!0}),t.prototype.getSortIcon=function(){var f=this,i=null,n,t;return this.isSortable&&(n=void 0,t=void 0,r.GlobalSettings.Instance.IsStandardProduct?n="+"===this.columnOrder?"sort_plus":"sort_minus":(n="naprzod",t={transform:"rotate("+("+"===this.columnOrder?"90deg":"-90deg")+")"}),i=u.a.createElement(r.SvgIcon,{name:n,style:t,classes:this.sortIconClassess,onClick:function(n){return f.onClick(n)}})),i},t.prototype.calculateColumnLeftPosition=function(){return this.props.selectAll?0:this.columnLeftPosition},t.prototype.calculateColumnHeight=function(){return this.isCommonColumn?r.GridBase.HeaderColumnHeight:this.props.headerColumns.grid.headerColumnsHeight},t.prototype.onResizeStart=function(){var n=s.a.findDOMNode(this);this.startWidth=n.getBoundingClientRect().width;this.props.grid.onResizeColumnStart({idx:this.columnIdx})},t.prototype.onResizeDrag=function(n){this.startWidth+n>30&&(this.dataElement.Settings.ColumnSettings.ResizedWidth=this.startWidth+n,this.props.grid.onResizeColumnDrag({offset:n,idx:this.columnIdx}))},t.prototype.onClick=function(n){var t=this,i;n.stopPropagation();n.preventDefault();i=n.ctrlKey;this.setState({sortOrder:"+"===this.columnOrder?"-":"+"},function(){var f=(i?"+":"")+t.props.dataElement.Name,n=r.WindowManager.Instance.ActiveWindow,u;n&&(u=n.getFocusedElement(),void 0!==u&&u.Name!==t.props.grid.dataElement.Name&&n.setFocusedElement(t.props.grid.dataElement));t.props.grid.dataElement.postSort(f)})},t.prototype.onSelectAll=function(n){n?this.props.grid.SelectionExtender.postSelectAll():this.props.grid.SelectionExtender.postUnselectAll()},t.prototype.createContent=function(){var n=this,i=this.getSortIcon(),t={top:(this.isCommonColumn?r.GridBase.HeaderColumnHeight:0)+"px",width:this.width+"px",height:this.calculateColumnHeight()+"px",left:this.calculateColumnLeftPosition()+"px"},f={width:i?"calc(100% - "+r.GridBase.CheckBoxColumnSize+"px)":"100%"};return this.isFirstRightFrozen&&(t.borderLeftWidth="1px",t.borderLeftStyle="solid"),this.props.selectAll?u.a.createElement("div",{style:t,className:this.classcontainer},u.a.createElement(r.GridColumnSelectAll,{selected:this.props.grid.hasAllSelectedRows,onSelectAll:function(t){return n.onSelectAll(t)}})):u.a.createElement("div",{id:this.id,style:t,className:this.classcontainer},u.a.createElement("div",{style:f,className:this.classtitle,onClick:function(t){return n.onClick(t)}},u.a.createElement("span",null,this.caption)),i,u.a.createElement(r.GridHeaderColumnResizer,{dataElement:this.props.dataElement,onResizeStart:function(){return n.onResizeStart()},onResizeDrag:function(t){return n.onResizeDrag(t)}}))},t}(r.GridColumnFrozen)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var f,e=i(1),o=i.n(e),s=i(4),r=i.n(s),h=i(3),c=i.n(h),u=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){var i=n.call(this,t)||this;return i.resizing=!1,i.resizeStartX=0,i}return l(t,n),t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.initMouseEventListeners();this.initTouchEventListeners()},t.prototype.initMouseEventListeners=function(){this.mouseMoveHandler=this.mouseMoveListener.bind(this);this.mouseUpHandler=this.mouseUpListener.bind(this);this.eventRegistrar.registerEventListener({domElement:this.domElement,type:"mousedown",handler:this.mouseDownListener.bind(this)});this.eventRegistrar.registerEventListener({domElement:this.domElement,type:"mouseover",handler:this.mouseOverListener.bind(this)});this.eventRegistrar.registerEventListener({domElement:this.domElement,type:"mouseout",handler:this.mouseOutListener.bind(this)})},t.prototype.initTouchEventListeners=function(){this.touchMoveHandler=this.touchMoveListener.bind(this);this.touchEndHandler=this.touchEndListener.bind(this);this.eventRegistrar.registerEventListener({domElement:this.domElement,type:"touchstart",handler:this.touchStartListener.bind(this)})},t.prototype.mouseDownListener=function(n){n.preventDefault();n.stopPropagation();document.addEventListener("mousemove",this.mouseMoveHandler,!1);document.addEventListener("mouseup",this.mouseUpHandler,!1);this.startResizing(n.clientX)},t.prototype.mouseMoveListener=function(n){this.moveResizing(n.clientX)},t.prototype.mouseUpListener=function(n){n.preventDefault();n.stopPropagation();document.removeEventListener("mousemove",this.mouseMoveHandler,!1);document.removeEventListener("mouseup",this.mouseUpHandler,!1);this.endResizing()},t.prototype.mouseOverListener=function(){r.a.findDOMNode(this).classList.add("resizerOver")},t.prototype.mouseOutListener=function(){r.a.findDOMNode(this).classList.remove("resizerOver")},t.prototype.touchStartListener=function(n){n.preventDefault();n.stopPropagation();document.addEventListener("touchmove",this.touchMoveHandler,!1);document.addEventListener("touchend",this.touchEndHandler,!1);this.switchResizeOverClass(!0);this.startResizing(n.touches[0].clientX)},t.prototype.touchMoveListener=function(n){this.moveResizing(n.touches[0].clientX)},t.prototype.touchEndListener=function(n){n.preventDefault();n.stopPropagation();document.removeEventListener("touchstart",this.touchMoveHandler,!1);document.removeEventListener("touchend",this.touchEndHandler,!1);this.switchResizeOverClass(!1);this.endResizing()},t.prototype.startResizing=function(n){this.resizing=!0;this.resizeStartX=n;this.switchPulseClass(!0);this.props.onResizeStart()},t.prototype.moveResizing=function(n){if(this.resizing){var t=n-this.resizeStartX;this.props.onResizeDrag(t)}},t.prototype.endResizing=function(){this.resizing=!1;this.switchPulseClass(!1);this.props.onResizeEnd&&this.props.onResizeEnd()},t.prototype.switchPulseClass=function(n){var t=r.a.findDOMNode(this);u.ControlBase.switchClass(t.parentElement,"pulse",n)},t.prototype.switchResizeOverClass=function(n){var t=r.a.findDOMNode(this);u.ControlBase.switchClass(t,"resizerOver",n)},Object.defineProperty(t.prototype,"resizerClasses",{get:function(){var n={"gh-resizer":!0};return n.resizerMobile=Object(u.isTouchDevice)(),c()(n)},enumerable:!1,configurable:!0}),t.prototype.render=function(){return o.a.createElement("div",{className:this.resizerClasses})},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,o=i(1),r=i.n(o),s=i(4),h=i.n(s),e=i(2),u=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(n){function t(t){return n.call(this,t)||this}return c(t,n),Object.defineProperty(t.prototype,"dataElement",{get:function(){return this.props.grid.dataElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsOrder",{get:function(){return this.parseOrderBy(this.dataElement.OrderBy)},enumerable:!1,configurable:!0}),t.prototype.parseOrderBy=function(n){var t={};return n?(e.a.each(n.split(","),function(n){t[n.substring(1)]=n[0]}),t):t},t.prototype.findCommonHeaderColumns=function(n){var h=this.dataElement.Columns.length,s=this.dataElement.Columns.indexOf(n),t={hasColumns:!1,columns:[]},u,r,i,f,o;if(!n||(u=n.CaptionHtml?n.CaptionHtml.indexOf("~"):-1,u<0))return t;for(r=[],r.push(s),t.columns.push(n),t.masterTitle=n.CaptionHtml.substring(0,u),i=s+1;i<h;i++){if(f=this.dataElement.Columns[i],o=this.findMasterTitle(f),!o||o!==t.masterTitle)break;r.push(i);t.columns.push(f)}return t.hasColumns=t.columns.length>0,t.hasColumns&&(t.id="hcc_"+r.join("_"),e.a.each(t.columns,function(n,i){n.Settings.ColumnSettings.ResizedCommonId=t.id;n.Settings.ColumnSettings.ResizedIsFirstCommonColumn=0===i})),t},t.prototype.findMasterTitle=function(n){if(!n.CaptionHtml)return null;var t=n.CaptionHtml.indexOf("~");return t>0?n.CaptionHtml.substring(0,t):null},Object.defineProperty(t.prototype,"id",{get:function(){return this.dataElement.Name+"_columns"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return"gh-columns"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classcells",{get:function(){return"gh-cells"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"grid",{get:function(){return this.props.grid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.props.grid.columns},enumerable:!1,configurable:!0}),t.prototype.getColumnOrder=function(n){var t="";return n&&""!==this.columnsOrder[n.Name]&&(t=this.columnsOrder[n.Name]),t},t.prototype.setScrollLeft=function(){var t=this,n=h.a.findDOMNode(this);n&&(n.scrollLeft=this.props.grid.scrollLeft);this.dataElement.Columns.forEach(function(n){var r=n&&n.Frozen?n.Name:"selectAll",i=t.refs[r];i&&i.setScrollLeft()})},t.prototype.onResizeColumnStart=function(n){this.props.grid.getColumnsToResize(n.idx).map(function(n){var t=document.getElementById(u.GridBase.createColumnId(n,u.GridBase.HeaderPrefix));return n.Settings.ColumnSettings.ResizedLeft=t.offsetLeft,n})},t.prototype.onResizeColumnDrag=function(n){this.props.grid.changeColumnsSize(n,u.GridBase.HeaderPrefix)},t.prototype.createContent=function(){for(var t,i,s=this,f=[],o=[],n=0;n<this.dataElement.Columns.length;n++)t=this.dataElement.Columns[n],i=this.findCommonHeaderColumns(t),i.hasColumns&&(o.push(i),n=this.dataElement.Columns.indexOf(i.columns[i.columns.length-1]));for(n=0;n<this.dataElement.Columns.length;n++)((t=this.dataElement.Columns[n])||!this.props.grid.dataElement.DisableSelection)&&f.push(r.a.createElement(u.GridHeaderColumn,{ref:t?t.Name:"selectAll",key:n,grid:this.grid,headerColumns:this,dataElement:t,selectAll:!t}));return e.a.each(o,function(n,t){f.push(r.a.createElement(u.GridMultiHeaderColumns,{key:t+100,commonInfo:n,headerColumns:s}))}),f},t.prototype.render=function(){var n={height:this.props.grid.headerColumnsHeight},t={minWidth:this.props.grid.rowWidth};return r.a.createElement("div",{id:this.id,className:this.classnames,style:n},r.a.createElement("div",{id:this.id+"_cells",ref:"cellsContainer",className:this.classcells,style:t},this.createContent()))},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,e=i(1),f=i.n(e),o=i(3),s=i.n(o),r=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.initId(),i.state={editValue:i.columnValue},i}return h(t,n),Object.defineProperty(t.prototype,"id",{get:function(){return this.dataElement?this.dataElement.Settings.ColumnSettings[r.GridBase.FilterPrefix]:r.GridBase.FilterPrefix+"selAll"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFrozen",{get:function(){return this.props.selectAll||this.dataElement&&this.dataElement.Frozen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnValue",{get:function(){return this.rowElement.Data[this.columnIdx]},enumerable:!1,configurable:!0}),t.prototype.initId=function(){this.dataElement&&(this.dataElement.Settings.ColumnSettings[r.GridBase.FilterPrefix]=r.GridBase.createColumnId(this.dataElement,r.GridBase.FilterPrefix))},Object.defineProperty(t.prototype,"classcontainer",{get:function(){var n={"gh-filter":!0};return n.frozen=this.isFrozen,s()(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.props.selectAll?r.GridBase.CheckBoxColumnSize:this.dataElement.Width},enumerable:!1,configurable:!0}),t.prototype.calculateColumnLeftPosition=function(){return this.props.selectAll?0:this.columnLeftPosition},t.prototype.updateState=function(n){this.setState({editValue:n})},t.prototype.onChange=function(n){var i=this,t;n.target.value!==this.state.editValue&&(t=n.target.value.toString(),this.updateState(t),this.delaySendFilter&&clearTimeout(this.delaySendFilter),this.delaySendFilter=setTimeout(function(){i.dataElement.postFilter(t,-1)},500))},t.prototype.onFocus=function(){this.props.dataElement&&this.props.dataElement.setFocused()},t.prototype.onClick=function(n){n.stopPropagation();n.preventDefault();var t=this.refs.input;t&&(t.focus(),t.select())},t.prototype.createContent=function(){var n=this,t={width:this.width+"px",height:r.GridBase.HeaderColumnHeight+"px",left:this.calculateColumnLeftPosition()+"px"},i;return this.isFirstRightFrozen&&(t.borderLeftWidth="1px",t.borderLeftStyle="solid"),i=this.props.selectAll?null:f.a.createElement("input",{type:"text",ref:"input",id:this.props.dataElement.Name+"_filter",className:"fieldInput",value:this.state.editValue,onChange:function(t){return n.onChange(t)},onFocus:function(t){return n.onFocus(t)}}),f.a.createElement("div",{id:this.id,onClick:function(t){return n.onClick(t)},style:t,className:this.classcontainer},i)},t}(r.GridColumnFrozen)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,e=i(1),r=i.n(e),o=i(4),s=i.n(o),f=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),Object.defineProperty(t.prototype,"dataElement",{get:function(){return this.props.grid.dataElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.dataElement.Name+"_filters"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return"gh-filters"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classcells",{get:function(){return"gh-cells"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"grid",{get:function(){return this.props.grid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.dataElement.Columns},enumerable:!1,configurable:!0}),t.prototype.setScrollLeft=function(){var t=this,n=s.a.findDOMNode(this);n&&(n.scrollLeft=this.grid.scrollLeft);this.columns.forEach(function(n){var r=n&&n.Frozen?n.Name:"selectAll",i=t.refs[r];i&&i.setScrollLeft()})},t.prototype.onResizeColumnDrag=function(n){this.props.grid.changeColumnsSize(n,f.GridBase.FilterPrefix)},t.prototype.createContent=function(){for(var n,i=[],t=0;t<this.columns.length;t++)n=this.columns[t],!n&&this.props.grid.dataElement.DisableSelection||i.push(r.a.createElement(f.GridHeaderFilter,{rowElement:this.dataElement.FilterRow,ref:n?n.Name:"selectAll",key:t,grid:this.grid,headerFilters:this,dataElement:n,selectAll:!n}));return i},t.prototype.render=function(){var n={height:f.GridBase.HeaderColumnHeight},t={minWidth:this.props.grid.rowWidth};return r.a.createElement("div",{id:this.id,className:this.classnames,style:n},r.a.createElement("div",{id:this.id+"_cells",ref:"cellsContainer",className:this.classcells,style:t},this.createContent()))},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var r,f=i(1),u=i.n(f),e=i(2),o=i(0),s=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){return n.call(this,t)||this}return s(t,n),Object.defineProperty(t.prototype,"grid",{get:function(){return this.props.headerColumns.grid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commonColumns",{get:function(){return this.props.commonInfo.columns},enumerable:!1,configurable:!0}),t.prototype.createContent=function(){var n=this.grid.columns.indexOf(this.commonColumns[0]),t={height:o.GridBase.HeaderColumnHeight,left:this.grid.calculateColumnLeftPosition(n)+"px",width:this.calculateWidth()+"px"};return u.a.createElement("div",{id:this.props.commonInfo.id,className:"gh-common",style:t},u.a.createElement("div",{className:"title"},this.props.commonInfo.masterTitle))},t.prototype.calculateWidth=function(){var n=0;return e.a.forEach(this.commonColumns,function(t){n+=t.Width}),n},t.prototype.render=function(){return this.createContent()},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var f,e=i(4),o=i.n(e),r=i(2),u=i(0),s=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){var i=n.call(this,t)||this;return i.actionAfterFocus="None",i.grid=t,i}return s(t,n),t.prototype.onComponentDidMount=function(){n.prototype.onComponentDidMount.call(this);this.initGridActionElements();!u.WindowBase.hasClass("dashboard")&&this.isFolder&&!this.isFolderMenu&&this.domElement&&this.domElement.focus();this.domCanvas=o.a.findDOMNode(this.grid.canvas);this.canvasRect=this.domCanvas.getBoundingClientRect();this.locator=this.grid.props.dataElement.Window.findElementByName(this.grid.props.dataElement.Name+"_Locator")},t.prototype.onComponentDidUpdate=function(){n.prototype.onComponentDidUpdate.call(this);this.canvasRect=this.domCanvas.getBoundingClientRect()},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.eventRegistrar.registerEventListener({domElement:window,type:"mousedown",handler:this.onMouseDownListener.bind(this)})},t.prototype.onFocusListener=function(n){this.focusCurrentItem(n)},t.prototype.keyDownListener=function(n){"keydown"!==n.event.type||n.event.repeat&&u.WindowManager.Instance.IsServerRequesting||((this.grid.hasRows&&(n.isEnter&&(this.hasColumns&&this.hasEipOpened?this.acceptEip(n):this.accept(n)),n.isUp&&this.navigateUp(n),n.isDown&&this.navigateDown(n),n.isPageUp&&this.navigatePageUp(n),n.isPageDown&&this.navigatePageDown(n),n.isHome&&this.navigateFirst(n),n.isEnd&&this.navigateLast(n),n.isDelete&&this.removeRow(n),n.isCtrlAKey&&this.selectAllRows(n)),n.isInsert)&&(this.getNewRow()?this.addEipRow(n):this.addRow(n)),this.handleLocatorKey(n))},t.prototype.handleLocatorKey=function(n){this.isKeyCodeForLocator(n)&&this.locator&&(this.locator._mark().GridLocatorChange={key:n.event.key.toString(),keyCode:n.event.keyCode},this.locator._invoke(),n.setHandled(!0))},t.prototype.isKeyCodeForLocator=function(n){return!n.event.ctrlKey&&(8===n.event.keyCode||32===n.event.keyCode||187===n.event.keyCode||189===n.event.keyCode||191===n.event.keyCode&&n.event.shiftKey||n.event.keyCode>=48&&n.event.keyCode<=90||n.event.keyCode>=96&&n.event.keyCode<=111)},t.prototype.accept=function(n){var t=this.getFocusedRow();this.rowClick(t,n)},t.prototype.acceptEip=function(n){var t=this.EipExtender.FocusedColumnIdx?this.EipExtender.FocusedColumnIdx-1:-1;this.EipExtender.openNextEipEditor({rowId:this.EipExtender.FocusedRow,columnIdx:t,forceOpenNewRow:!0},new u.EipEventProps("Keyboard","Right"));n&&n.setHandled()},t.prototype.navigateFirst=function(n){this.navigateRow(n,this.getFirstRow(),"start")},t.prototype.navigateLast=function(n){this.navigateRow(n,this.getLastRow(),"end")},t.prototype.navigateUp=function(n){this.navigateRow(n,this.getPreviousRow(),"start")},t.prototype.navigateDown=function(n){this.navigateRow(n,this.getNextRow(),"end")},t.prototype.navigatePageUp=function(n){this.navigateRow(n,this.getPreviousPageRow(n),"start",this.grid.canvas.rowsInCanvasArea)},t.prototype.navigatePageDown=function(n){this.navigateRow(n,this.getNextPageRow(n),"end",this.grid.canvas.rowsInCanvasArea)},t.prototype.addEipRow=function(n){this.EipExtender.postNewRowFocused();n&&n.setHandled()},t.prototype.rowClick=function(n,t){n&&(n.postClick(),t&&t.setHandled())},t.prototype.navigateRow=function(n,t,i,r){void 0===r&&(r=1);n.event.shiftKey?this.grid.dataElement.DisableSelection||this.changeSelectedElement(t,i):this.changeFocusedElement(t,i,r);n&&n.setHandled()},t.prototype.getFocusedRow=function(){var t=this,n;return!this.grid||!this.grid.dataElement||!this.grid.dataElement.Rows?null:(n=r.a.find(this.grid.dataElement.Rows,function(n){return n.IsNewRow}),n&&1===this.grid.dataElement.Rows.length?n:r.a.find(this.grid.dataElement.Rows,function(n){return n.ID===t.grid.dataElement.FocusedRow}))},t.prototype.getNewRow=function(){return this.grid&&this.grid.dataElement&&this.grid.dataElement.hasRows?r.a.find(this.grid.dataElement.Rows,function(n){return n.IsNewRow}):null},Object.defineProperty(t.prototype,"hasColumns",{get:function(){return r.a.any(this.grid.dataElement.Columns,function(n){return n&&n.ID>0&&n.EditorType&&n.Editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasEipOpened",{get:function(){return void 0!==this.grid.dataElement.FocusedColumnIdx},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRegularRows",{get:function(){return!!(this.grid&&this.grid.dataElement&&this.grid.dataElement.hasRows)&&this.hasColumns&&r.a.any(this.grid.dataElement.Rows,function(n){return n.IsRegularRow})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EipExtender",{get:function(){return this.grid.EipExtender},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SelectionExtender",{get:function(){return this.grid.SelectionExtender},enumerable:!1,configurable:!0}),t.prototype.isGridColumn=function(n){var t=this.findParentNode(n,"gc-text");return t||(t=this.findParentNode(n,"gc-check")),t&&t.dataset.hash===this.grid.EipExtender.hash},t.prototype.getFirstRow=function(){return this.grid&&this.grid.dataElement&&this.grid.dataElement.Rows?this.grid.dataElement.Rows[this.grid.canvas.state.visibleStart]:null},t.prototype.getLastRow=function(){return this.grid&&this.grid.dataElement&&this.grid.dataElement.Rows?this.grid.dataElement.Rows[this.grid.canvas.state.visibleEnd]:null},t.prototype.getNextRow=function(){var n=this;return this.getRow(function(t){var i=t.RowIdx;return i+1<=n.grid.dataElement.Rows.length?n.grid.dataElement.Rows[i+1]:null})},t.prototype.getPreviousRow=function(){var n=this;return this.getRow(function(t){var i=t.RowIdx;return i-1>=0?n.grid.dataElement.Rows[i-1]:null})},t.prototype.getNextPageRow=function(){var n=this;return this.getRow(function(t){var i=t.RowIdx+n.grid.canvas.rowsInCanvasArea;return i<=n.grid.dataElement.Rows.length?n.grid.dataElement.Rows[i]:n.grid.dataElement.Rows[n.grid.dataElement.Rows.length-1]})},t.prototype.getPreviousPageRow=function(){var n=this;return this.getRow(function(t){var i=t.RowIdx-n.grid.canvas.rowsInCanvasArea;return i>=0?n.grid.dataElement.Rows[i]:n.grid.dataElement.Rows[0]})},t.prototype.getRow=function(n){if(!this.grid||!this.grid.dataElement||!this.grid.dataElement.Rows)return null;var i=this.getFocusedRow(),t=null;return i&&(t=n(i)),t||(t=this.grid.dataElement.getRowByID(this.grid.dataElement.FocusedRow)),t},t.prototype.changeFocusedElement=function(n,t,i){if(void 0===i&&(i=1),n&&n.Element&&!u.WindowManager.Instance.IsServerRequesting){var r=n.ID,f=null,e=this.domCanvas.querySelector('[data-rowid="'+n.ID+'"]');!e&&i>1&&("end"===t?f=this.grid.dataElement.Rows[this.grid.canvas.state.renderEnd-1]:"start"===t&&(f=this.grid.dataElement.Rows[this.grid.canvas.state.renderStart+1]),f&&(r=f.ID,e=this.domCanvas.querySelector('[data-rowid="'+r+'"]')));e&&(this.EipExtender.changeFocusedElement({rowId:r}),this.changeScrollPosition(e,t,i),this.callSendFocusedTimeout(r))}},t.prototype.changeSelectedElement=function(n,t){var i=null,o=-1,f=-1,e=-1,r,s;n&&n.Element&&("start"===t||"end"===t)&&(r=this.SelectionExtender.SelectedRows,(r.length>0?(r=r.sort(u.GridSelectionExtender.sortIntAsc),o=this.EipExtender.getRowIdxByID(this.grid.dataElement.FocusedRow),f=this.getFirstRowIdx(r),e=this.getLastRowIdx(r),"end"===t?i=f<o?this.EipExtender.getRowByIdx(f):this.EipExtender.findNextRow(e):"start"===t&&(i=e>o?this.EipExtender.getRowByIdx(e):this.EipExtender.findPrevRow(f))):i=this.EipExtender.getRowByID(n.ID),i)&&(this.SelectionExtender.postSelectRow({row:i,isShiftKey:!0,isMouseDown:!1}),s=this.domCanvas.querySelector('[data-rowid="'+i.ID+'"]'),s&&this.changeScrollPosition(s,t,1)))},t.prototype.getLastRowIdx=function(n){if(0===n.length)return-1;var t=r.a.last(n);return this.EipExtender.getRowIdxByID(t.toString())},t.prototype.getFirstRowIdx=function(n){if(0===n.length)return-1;var t=r.a.first(n);return this.EipExtender.getRowIdxByID(t.toString())},t.prototype.changeScrollPosition=function(n,t,i){void 0===i&&(i=1);var u=n.getBoundingClientRect(),r=0,f=n.offsetTop;"end"===t&&u.bottom>this.canvasRect.bottom?(r=u.bottom-this.canvasRect.bottom,this.domCanvas.scrollTop=this.domCanvas.scrollTop+Math.min(r,i*this.grid.rowHeight)):"start"===t&&f<this.domCanvas.scrollTop&&(r=this.domCanvas.scrollTop-f,this.domCanvas.scrollTop=this.domCanvas.scrollTop-Math.min(r,i*this.grid.rowHeight))},t.prototype.clearFocusedTimeout=function(){this.delayPostFocused&&clearTimeout(this.delayPostFocused)},Object.defineProperty(t.prototype,"isCurrentWindow",{get:function(){return u.WindowManager.Instance.ActiveWindow&&u.WindowManager.Instance.ActiveWindow.Handle===this.grid.dataElement.Window.Handle},enumerable:!1,configurable:!0}),t.prototype.callSendFocusedTimeout=function(n){var t=this;this.clearFocusedTimeout();this.delayPostFocused=setTimeout(function(){var i=r.a.find(t.grid.dataElement.Rows,function(t){return t.ID===n});i&&t.isCurrentWindow&&i.postFocused()},300)},t.prototype.removeRow=function(n){this.deleteDataElement&&this.deleteDataElement.postClick();n.setHandled()},t.prototype.selectRow=function(n){var t=this.getFocusedRow();t&&this.grid.dataElement.post("selected",t.ID);n.setHandled()},t.prototype.selectAllRows=function(n){this.grid.dataElement.postSelectAll();n.setHandled()},t.prototype.addRow=function(n){this.insertDataElement&&(n.event.ctrlKey&&this.insertDataElement.hasClass("SplitCommand")?this.insertDataElement.post("click-more",null):this.insertDataElement.postClick());n.setHandled()},t.prototype.initGridActionElements=function(){var n=r.a.find(this.grid.dataElement.Parent.Elements,function(n){return n.hasClass("Panel")});n&&(this.insertDataElement=this.findGridActionDataElement(n,"New"),this.deleteDataElement=this.findGridActionDataElement(n,"Remove"))},t.prototype.findGridActionDataElement=function(n,t){var i=this;return r.a.find(n.Elements,function(n){return n.Name===i.grid.dataElement.Name+"_"+t})},t.prototype.focusCurrentItem=function(n){n.preventDefault();n.stopPropagation();var t=n.focusCaller;if(!this.EipExtender.EipMode||t&&t.close)return this.actionAfterFocus="Close",this.grid.dataElement.setFocused(),void this.domElement.focus();this.EipExtender.EipMode&&((t&&(t.keyboard||t.mouse)&&t.open&&(this.actionAfterFocus="Open"),"Open"===this.actionAfterFocus)?this.hasRegularRows?this.hasColumns&&this.getFocusedRow()&&this.EipExtender.openNextEipEditor({rowId:this.EipExtender.FocusedRow,columnIdx:-1,forceOpenNewRow:!0},new u.EipEventProps("Keyboard","Right")):this.getNewRow()&&this.addEipRow(null):"Close"===this.actionAfterFocus&&t&&t.target&&t.target.focus(),this.actionAfterFocus="None")},t.prototype.onMouseDownListener=function(n){this.EipExtender.EipMode||n.target!==this.domCanvas&&n.target!==this.domElement?!this.EipExtender.EipMode||this.isGridColumn(n.target)||this.EipExtender.closeEipEditor():Object(u.FireCustomFocus)(this.domElement)},t.prototype.findParentNode=function(n,t){return n&&"container"!==n.id?n.classList.contains(t)?n:this.findParentNode(n.parentElement,t):null},t}(u.ComponentKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,e=i(1),u=i.n(e),o=i(3),s=i.n(o),r=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.locatorElement=i.props.dataElement,i.gridElement=i.props.dataElement.Window.Root.findElement(function(n){return n.Name===i.props.dataElement.Name.replace("_Locator","")}),i}return h(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.searchMore=document.getElementById(t.searchMoreName);this.filterRow=document.getElementById(t.filterRowName)},Object.defineProperty(t.prototype,"locatorClasses",{get:function(){return s()(this.classes)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locatorValue",{get:function(){return this.locatorElement.Settings.locatorValue||""},set:function(n){this.locatorElement.Settings.locatorValue=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasAsterisk",{get:function(){return 0===this.locatorValue.indexOf("*")},enumerable:!1,configurable:!0}),t.prototype.postLocator=function(n,t){var r=this,i=function(n,t){n.Window.setFocusedElement(n);n.post("loc",t)};this.locatorValue!==n&&(this.locatorValue=n,t?(this.delaySendingValue&&clearTimeout(this.delaySendingValue),this.delaySendingValue=setTimeout(function(){i(r.gridElement,n)},800)):i(this.gridElement,n))},t.prototype.handleFilterRowChanged=function(n){void 0!==n.FilterRowChanged&&this.filterRow&&r.ControlBase.switchClass(this.filterRow,"on",n.FilterRowChanged)},t.prototype.handleLocatorValueChanged=function(n){var t=n.GridLocatorChange;t&&(t.key&&t.keyCode?this.handleByKeyCode(t):this.handleByValue(t),this.switchSearchMore())},t.prototype.handleByKeyCode=function(n){var t=this.locatorValue;8===n.keyCode?t=t.substring(0,t.length-1):56===n.keyCode?t=0===t.indexOf("*")?t.substring(1):n.key+t:t+=n.key;this.setLocatorValue(t,!0);this.updateState()},t.prototype.handleByValue=function(n){this.setLocatorValue(n.locatorValue,n.sendDelay)},t.prototype.setLocatorValue=function(n,t){this.locatorValue!==n&&n.replace(/^\s+/,"")!==this.locatorValue&&this.postLocator(n.replace(/^\s+/,""),t)},t.prototype.switchSearchMore=function(){this.searchMore&&r.ControlBase.switchClass(this.searchMore,"on",this.hasAsterisk)},t.prototype.onClickFilterRow=function(){this.gridElement.post("filterrow",void 0)},t.prototype.onClickSearchMore=function(){var n=this.locatorValue;n.indexOf("*")<0?n="*"+n:0===n.indexOf("*")&&(n=n.substring(1));this.locatorElement._mark().GridLocatorChange={locatorValue:n,forceUpdate:!0};this.locatorElement._invoke()},t.prototype.handler=function(n){this.handleFilterRowChanged(n);this.handleLocatorValueChanged(n)},t.prototype.prepareClasses=function(){this.classes={};this.classes["grid-locator"]=!0},t.prototype.prepareStyle=function(){if(this.props.dataElement){var n=this.props.dataElement.Location.toCssProperties;this.style=n!=={}?n:null}},t.prototype.renderBrowser=function(){var n=this;return this.prepareClasses(),this.prepareStyle(),this.style.height="30px",u.a.createElement("div",{className:this.locatorClasses,style:this.style},u.a.createElement("div",{className:"loc-commands"},u.a.createElement(r.CommandToggle,{key:t.searchMoreName,name:t.searchMoreName,dataElement:this.gridElement,icon:"search_more",toggleClient:this.hasAsterisk,className:"loc-command",onClick:function(){return n.onClickSearchMore()}}),u.a.createElement(r.CommandToggle,{key:t.filterRowName,name:t.filterRowName,dataElement:this.gridElement,icon:"filter_row",toggleClient:!1,className:"loc-command",onClick:function(){return n.onClickFilterRow()}})),u.a.createElement(r.FieldLocator,{ref:"locatorValue",dataElement:this.props.dataElement}))},t.searchMoreName="search_more",t.filterRowName="filter_row",t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var f,e=i(1),u=i.n(e),r=i(0),o=i(72),s=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){var i=n.call(this,t)||this;return i.loadRowsOnScroll="Form"!==i.props.dataElement.Window.Mode,i}return s(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.swipedPanel=this.refs.swipedPanel;this.swipedPanel&&this.swipedPanel.init()},t.prototype.shouldComponentUpdate=function(n,t){return this.state.version!==t.version||this.state.groupsState!==t.groupsState||this.state.searchState!==t.searchState},Object.defineProperty(t.prototype,"isOpenSwipePanel",{get:function(){return void 0===this.props.dataElement.Settings.IsOpenSwipePanel&&(this.props.dataElement.Settings.IsOpenSwipePanel=!1),this.props.dataElement.Settings.IsOpenSwipePanel},set:function(n){this.props.dataElement.Window.Settings.DisableTouchEvents=n;this.props.dataElement.Settings.IsOpenSwipePanel=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"swipedRow",{get:function(){return void 0===this.props.dataElement.Settings.SwipedElement&&(this.props.dataElement.Settings.SwipedElement=-1),this.props.dataElement.Settings.SwipedElement},set:function(n){this.props.dataElement.Settings.SwipedElement=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"menuIconName",{get:function(){return this.hasSearch&&this.state.searchState?"wstecz":""},enumerable:!1,configurable:!0}),t.prototype.toggleSearchBar=function(){this.setState({searchState:!this.state.searchState})},t.prototype.toggleFeaturesBar=function(){this.setState({groupsState:!this.state.groupsState})},t.prototype.findAttachedTo=function(n){for(var t,i=0;i<this.props.dataElement.Parent.Elements.length;i++)if(t=this.props.dataElement.Parent.Elements[i],"Field"===t.ElementType&&t.TagInfo&&t.TagInfo==="AttachTo:"+n)return t;return null},t.prototype.handler=function(t){n.prototype.handler.call(this,t);t.ListChanged&&(this.updateState(),this.refreshSelectedRows());this.swipedPanel&&(t.SwipeRow&&(console.assert(t.Focused>0,"Zdarzenie Serwerowe SwipeRow nie zawiera informacji o otwieranym wierszu"),t.Focused>0&&(this.swipedRow=t.Focused,this.swipedPanel.updateState(t.Focused,!0))),t.ColumnsChanged&&!this.isOpenSwipePanel&&this.swipedPanel.updateState())},t.prototype.updateScrollState=function(){},t.prototype.onSwipe=function(n){switch(n.swipeMode){case r.SwipeMode.Start:var t=this.findRow(n.swipeElement),i=this.props.dataElement.SelectedRows,u=t?parseInt(t.ID):-1;t&&u>0&&i&&(0===i.length||1===i.length&&i[0]===u)&&(this.swipedRow=u,t.postFocused());break;case r.SwipeMode.Move:n.swipeDir!==r.SwipeDir.Left&&n.swipeDir!==r.SwipeDir.Right||(this.props.dataElement.Window.Settings.DisableTouchEvents=!0);break;case r.SwipeMode.Opened:this.updateScrollState(!0);this.props.dataElement.Window.registerClose(this.swipedPanel.hide.bind(this.swipedPanel));this.isOpenSwipePanel=!0;break;case r.SwipeMode.Closed:this.updateScrollState(!1);this.props.dataElement.Window.unregisterClose();this.isOpenSwipePanel=!1;this.swipedRow=-1;break;case r.SwipeMode.Refresh:this.updateScrollState(!0);this.props.dataElement.Window.registerClose(this.swipedPanel.hide.bind(this.swipedPanel));this.isOpenSwipePanel=!0}},t.prototype.onHeaderCommandClick=function(n){var t=this.findAttachedTo(n.Name);t?document.getElementById(t.Name).click():this.props.dataElement.Name+"_Flt"===n.Name?this.toggleSearchBar():n&&n.IsGroupsCommand?this.toggleFeaturesBar():n&&n.postClick("")},t.prototype.onSwipePanelFormClose=function(n){this.isOpenSwipePanel=!1;this.swipedRow=-1;n&&this.updateState()},t.prototype.createHeaderCommands=function(){var t=this,n=null;return this.headerBarCommands&&(n=this.headerBarCommands.map(function(n,i){return u.a.createElement(r.HeaderBarCommand,{key:i,dataElement:n,onClick:function(n){return t.onHeaderCommandClick(n)}})},this)),n},t.prototype.renderSwipedContent=function(n,t){var i,f=this;return"number"==typeof t?i=this.findRowById(t):t instanceof Element?i=this.findRow(t):this.swipedRow>0&&(i=this.findRowById(this.swipedRow)),null==i?null:this.props.dataElement.Elements[0].ID.toString()===i.ID?u.a.createElement(r.FormEditInPlace,{row:i,dataElement:this.props.dataElement,parent:n,onFormClose:function(n){return f.onSwipePanelFormClose(n)},renderContent:function(){return f.createControls()}}):u.a.createElement(r.FormView,{row:i,dataElement:this.props.dataElement,parent:n,onFormClose:function(n){return f.onSwipePanelFormClose(n)}})},t.prototype.onSearchAction=function(n,t){this.searchValue=n;this.props.dataElement.post("loc",n);t&&this.toggleSearchBar()},t.prototype.onMenuClick=function(n){n.stopPropagation();n.preventDefault();this.hasSearch&&this.toggleSearchBar()},t.prototype.renderHeaderBar=function(){var n=this;return this.headerBarCommands?u.a.createElement(r.HeaderBarMobile,{searchActive:this.hasSearch,searchValue:this.searchValue,searchState:this.state.searchState,menuIconName:this.menuIconName,className:"headerbar-grid",commands:this.createHeaderCommands(),onMenuClick:function(t){return n.onMenuClick(t)},onSearchAction:function(t,i){return n.onSearchAction(t,i)}}):null},t.prototype.renderMobile=function(){var n=this;return this.fetch=!1,this.state.groupsState&&this.hasGroups?u.a.createElement(o.a,{ref:"features",grid:this,dataElement:this.dataElement,onCommandClick:function(){return n.setState({groupsState:!1})}}):u.a.createElement("div",{className:this.headerBarCommands?"grid-container-eip":"grid-container"},this.renderHeaderBar(),this.gridContentBuilder.buildGridContent(),u.a.createElement(r.SwipedPanel,{ref:"swipedPanel",parentId:this.props.dataElement.Name,isOpen:this.isOpenSwipePanel,isSwipeEnabled:this.hasRows,onSwipeCallback:function(t){return n.onSwipe(t)},renderContent:function(t,i){return n.renderSwipedContent(t,i)}}))},t}(r.GridBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,f=i(1),e=i.n(f),o=i(4),s=i.n(o),u=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.row=i.props.row,i.firstCreate=!1,i}return h(t,n),t.prototype.componentWillMount=function(){this.firstCreate=!0},t.prototype.componentDidMount=function(){this.target=s.a.findDOMNode(this);this.attachListeners()},t.prototype.componentWillUnmount=function(){this.detachListeners()},t.prototype.componentWillReceiveProps=function(n){this.rowElement&&this.rowElement.Element!==n.row.Element&&(this.rowElement.Element&&this.detachListeners(),this.attachListeners(n.row))},t.prototype.attachListeners=function(n){n||(n=this.rowElement);n&&n.Element.addListener(this)},t.prototype.detachListeners=function(){this.rowElement&&this.rowElement.Element.removeListener(this)},Object.defineProperty(t.prototype,"id",{get:function(){return this.getId()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstCreate",{get:function(){return this.first},set:function(n){this.first=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsMobile",{get:function(){return this.DeviceType===u.DeviceType.MobileBrowser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DeviceType",{get:function(){return this.rowElement?this.rowElement.Element.Window.DeviceType:this.props.dataElement.Window.DeviceType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"grid",{get:function(){return this.props.grid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowElement",{get:function(){return this.row},set:function(n){this.row=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataElement",{get:function(){return this.rowElement?this.rowElement.Element:this.props.dataElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.rowElement&&this.rowElement.Element&&this.rowElement.Element.Columns?this.rowElement.Element.Columns:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowHeight",{get:function(){return this.grid.rowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowWidth",{get:function(){return this.grid.rowWidth},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowIdx",{get:function(){return Math.max(0,this.rowElement.RowIdx)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){var n=[];return this.rowElement&&this.rowElement.Element&&this.rowElement.Element.Rows&&(n=this.rowElement.Element.Rows),n},enumerable:!1,configurable:!0}),t.formattedId=function(n){var t=n.Element.Name+(n.IsGroupingRow?n.Data[0]:"");return""+u.GridBase.RowPrefix+n.formattedId+"_"+t.CreateHash()},t.prototype.setScrollLeft=function(){var t=this,n;this.rowElement.Element.DisableSelection||(n=this.refs.selectRow,n&&n.setScrollLeft());this.columns.forEach(function(n){if(n&&n.Frozen){var i=t.refs[n.Name];i&&i.setScrollLeft()}})},t.prototype.createContent=function(){return null},t.prototype.prepareClasses=function(){this.classes={}},t.prototype.getId=function(){return t.formattedId(this.rowElement)},t.prototype.actionEmptyHandler=function(n){n.preventDefault();n.stopPropagation()},t.prototype.actionClick=function(n){n.preventDefault();n.stopPropagation();this.rowElement&&this.rowElement.postClick()},t.prototype.actionSelectRow=function(){},t.prototype.handler=function(){},t.prototype.renderMobile=function(){return console.assert(!0,"Brak implementacji metody [renderMobile] renderującej komponent dla pełnego interfejsu Html"),null},t.prototype.renderBrowser=function(){return console.assert(!0,"Brak implementacji metody [renderBrowser] renderującej komponent dla pełnego interfejsu Html"),null},t.prototype.render=function(){return this.IsMobile?this.renderMobile():this.renderBrowser()},t}(e.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,e=i(1),f=i.n(e),o=i(3),s=i.n(o),u=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.dataElement.Name},enumerable:!1,configurable:!0}),t.prototype.attachListeners=function(){this.IsMobile?this.props.dataElement&&this.props.dataElement.addListener(this):n.prototype.attachListeners.call(this)},t.prototype.detachListeners=function(){this.IsMobile?this.props.dataElement&&this.props.dataElement.removeListener(this):n.prototype.attachListeners.call(this)},t.prototype.handler=function(){},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["gr-empty-content"]=!0},t.prototype.localRender=function(){var n="grid_tekst|text="+u.LanguageConstants.RESOURCES.Str_GridNoData;return this.prepareClasses(),f.a.createElement("div",{key:this.id,id:this.id,className:s()(this.classes)},f.a.createElement(u.SvgIcon,{name:n,classes:"empty-image",enabled:!0}))},t.prototype.renderBrowser=function(){return this.localRender()},t.prototype.renderMobile=function(){return this.localRender()},t}(u.GridRowBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,e=i(1),f=i.n(e),o=i(4),s=i.n(o),r=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),Object.defineProperty(t.prototype,"dataElement",{get:function(){return this.props.grid.dataElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.dataElement.Name+"_summary"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return"gf-summary"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classcells",{get:function(){return"gf-cells"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"grid",{get:function(){return this.props.grid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.dataElement.Columns},enumerable:!1,configurable:!0}),t.prototype.setScrollLeft=function(){var t=this,n=s.a.findDOMNode(this);n&&(n.scrollLeft=this.grid.scrollLeft);this.columns.forEach(function(n){var r=n&&n.Frozen?n.Name:"selectAll",i=t.refs[r];i&&i.setScrollLeft()})},t.prototype.onResizeColumnDrag=function(n){this.props.grid.changeColumnsSize(n,r.GridBase.SummaryPrefix)},t.prototype.onClick=function(){this.dataElement&&this.dataElement.SummaryRow&&this.dataElement.SummaryRow.postClick()},t.prototype.createContent=function(){for(var t,i=[],n=0;n<this.columns.length;n++)t=this.columns[n],i.push(f.a.createElement(r.GridColumnSum,{key:n,rowElement:this.dataElement.SummaryRow,ref:t?t.Name:"selectAll",grid:this.grid,dataElement:t,selectAll:!t}));return i},t.prototype.handler=function(n){n.ListChanged&&this.setState({version:n.Element.Version})},t.prototype.render=function(){var n=this,t={top:"0",height:r.GridBase.HeaderColumnHeight},i={minWidth:this.props.grid.rowWidth};return f.a.createElement("div",{id:this.id,className:this.classnames,style:t,onClick:function(t){return n.onClick(t)}},f.a.createElement("div",{id:this.id+"_cells",ref:"cellsContainer",className:this.classcells,style:i},this.createContent()))},t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var u,e=i(1),r=i.n(e),o=i(4),s=i.n(o),h=i(3),f=i.n(h),c=i(0),l=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){return n.call(this,t)||this}return l(t,n),Object.defineProperty(t.prototype,"text",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowIdx",{get:function(){return Math.max(0,this.rows.indexOf(this.props.row))},enumerable:!1,configurable:!0}),t.prototype.setScrollLeft=function(){var n=s.a.findDOMNode(this),t,i;n&&(t=this.props.grid,i="translateX("+t.scrollLeft+"px)",n.style.width=this.rowWidth-t.scrollLeft+"px",n.style.webkitTransform=i,n.style.transform=i)},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["grid-row"]=!0},t.prototype.prepareStyle=function(){this.styleElement={position:"absolute",top:this.rowIdx*this.rowHeight+"px",left:"0",height:this.rowHeight+"px",width:this.rowWidth+"px"}},t.prototype.renderBrowser=function(){var n=this;return this.prepareClasses(),this.prepareStyle(),r.a.createElement("div",{key:this.id,id:this.id,onClick:function(t){return n.actionClick(t)},style:this.styleElement,className:f()(this.classes)},this.icon,r.a.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:this.text}}))},t.prototype.renderMobile=function(){var n=this;return this.prepareClasses(),r.a.createElement("div",{key:this.id,id:this.id,onClick:function(t){return n.actionClick(t)},className:f()(this.classes)},this.icon,r.a.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:this.text}}))},t}(c.GridRowBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(1),e=i.n(f),u=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){var n=!1;return this.rowIdx===this.rows.length-1?n=!0:this.rowIdx+1<=this.rows.length-1&&(n=!this.rows[this.rowIdx+1].IsRegularRow),n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.row.Data&&this.props.row.Data[1]?this.props.row.Data[1]:""},enumerable:!1,configurable:!0}),t.prototype.actionClick=function(n){n.preventDefault();n.stopPropagation();this.props.row&&this.props.row.postClick()},Object.defineProperty(t.prototype,"icon",{get:function(){var n;return n=u.GlobalSettings.Instance.IsStandardProduct?this.isCollapsed?"zoom_in":"zoom_out":this.isCollapsed?"tree_c":"tree_e",e.a.createElement(u.SvgIcon,{name:n,classes:"icon"})},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.grouping=!0},t}(u.GridRowSpecial)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var u,e=i(1),r=i.n(e),o=i(4),s=i.n(o),h=i(3),c=i.n(h),f=i(0),l=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){return n.call(this,t)||this}return l(t,n),t.prototype.actionClick=function(){},Object.defineProperty(t.prototype,"icon",{get:function(){return r.a.createElement(f.SvgIcon,{name:"suma",classes:"icon"})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classcells",{get:function(){return"sum-cells"},enumerable:!1,configurable:!0}),t.prototype.setScrollLeft=function(){var t=this,n=s.a.findDOMNode(this);n&&(n.scrollLeft=this.grid.scrollLeft);this.columns.forEach(function(n){var r=n&&n.Frozen?n.Name:"selectAll",i=t.refs[r];i&&i.setScrollLeft()})},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.sumgrouping=!0},t.prototype.createColumns=function(){for(var t,i=[],n=0;n<this.columns.length;n++)t=this.columns[n],i.push(r.a.createElement(f.GridColumnGroupingSum,{key:n,rowElement:this.props.row,ref:t?t.Name:"selectAll",grid:this.grid,dataElement:t,selectAll:!t}));return i},t.prototype.renderBrowser=function(){this.prepareClasses();this.prepareStyle();var n={minWidth:this.props.grid.rowWidth};return r.a.createElement("div",{id:this.id,className:c()(this.classes),style:this.styleElement},r.a.createElement("div",{className:this.classcells,style:n},this.createColumns()))},t}(f.GridRowSpecial)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,o=i(1),r=i.n(o),s=i(3),e=i.n(s),f=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.dataElement.Name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return f.LanguageConstants.RESOURCES.Str_LoadMoreRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return r.a.createElement(f.SvgIcon,{name:"filtr",classes:"icon"})},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.loadmore=!0},t.prototype.renderMobile=function(){var n=this;return this.prepareClasses(),r.a.createElement("div",{key:this.id,id:this.id,onClick:function(){return n.props.onClick()},className:e()(this.classes)},r.a.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:this.text}}))},t.prototype.renderBrowser=function(){var t=this,n;return this.prepareClasses(),n={position:"absolute",bottom:"0",left:"0",height:this.rowHeight+"px",width:this.rowWidth+"px"},r.a.createElement("div",{key:this.id,id:this.id,onClick:function(n){return t.actionClick(n)},style:n,className:e()(this.classes)},this.icon,r.a.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:this.text}}))},t}(f.GridRowSpecial)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(1),e=i.n(f),u=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.row.Data&&this.props.row.Data[1]?this.props.row.Data[1]:u.LanguageConstants.RESOURCES.Str_LocatorExtendedSearch},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return e.a.createElement(u.SvgIcon,{name:"filtr",classes:"icon"})},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.locator=!0},t.prototype._handleMobileListChanged=function(n){var t=!1;return n.ListChanged&&(this.grid.updateState(),t=!0),t},t.prototype.handler=function(n){this.IsMobile&&this._handleMobileListChanged(n)},t}(u.GridRowSpecial)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(1),e=i.n(f),u=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"text",{get:function(){return this.rowElement.Data&&this.rowElement.Data[1]?this.rowElement.Data[1]:u.LanguageConstants.RESOURCES.Str_GridRowAddNew},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"icon",{get:function(){return e.a.createElement(u.SvgIcon,{name:"dodaj_wiersz",classes:"icon"})},enumerable:!1,configurable:!0}),t.prototype.actionClick=function(n){n.preventDefault();n.stopPropagation();this.grid.EipExtender.EipMode?this.grid.EipExtender.postNewRowFocused("click"):this.dataElement.postClick("$new")},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.new=!0},t.prototype.prepareStyle=function(){n.prototype.prepareStyle.call(this);this.styleElement.width=this.grid.canvas.canvasWidth+"px"},t}(u.GridRowSpecial)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.row.Data&&this.props.row.Data[1]?this.props.row.Data[1]:u.LanguageConstants.RESOURCES.Str_NonOptimalRows},enumerable:!1,configurable:!0}),t.prototype._handleListChanged=function(n){var t=!1;return n.ListChanged&&(this.setState({data:this.rowElement.Data,focused:this.rowElement.IsFocused,selected:this.rowElement.IsSelected}),t=!0,this.IsMobile&&this.grid.updateState()),t},t.prototype.handler=function(n){this._handleListChanged(n)},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.nonoptimal=!0},t}(u.GridRowSpecial)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var u,f=i(1),e=i.n(f),o=i(2),r=i(0),s=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){var i=n.call(this,t)||this;return i.state={selected:i.rowElement.IsSelected,focused:i.rowElement.IsFocused,row:i.props.row,data:i.rowElement.Data},i}return s(t,n),t.prototype.componentWillReceiveProps=function(t){n.prototype.componentWillReceiveProps.call(this,t);(t.row!==this.rowElement&&this.rowElement||t.row.Data!==this.state.data&&this.state.data)&&(this.rowElement=t.row,this.setState({selected:this.rowElement.IsSelected,focused:this.rowElement.IsFocused,data:t.row.Data}))},t.prototype.shouldComponentUpdate=function(n,t){return t.selected!==this.state.selected||t.focused!==this.state.focused||!o.a.isEqual(n.row,this.props.row)||n.idx!==this.props.idx||n.row.Data!==this.state.data},t.prototype.attachListeners=function(){n.prototype.attachListeners.call(this);this.rowElement&&this.rowElement.addListener(this)},t.prototype.detachListeners=function(){n.prototype.detachListeners.call(this);this.rowElement&&this.rowElement.removeListener(this)},t.prototype._handleFocusedElementChanged=function(n){var u=!1,i=n.FocusedElementChanged,t;return i&&(t=this.rowElement.ID===i.rowId,this.rowElement.setFocused(t),r.ControlBase.switchClass(this.target,"focused",t),r.ControlBase.switchClass(this.target,"regular",!t),-1===i.columnIdx&&this.props.grid.setFocused(),u=!0),u},t.prototype._handleSelectRowChanged=function(n){var i=!1,t=n.SelectRowChanged;return t&&t.rowId===this.rowElement.ID&&(this.setState({data:this.rowElement.Data,focused:this.rowElement.IsFocused,selected:t.selected}),i=!0),i},t.prototype._handleListChanged=function(n){var t=!1;return n.ListChanged&&(this.setState({data:this.rowElement.Data,focused:this.rowElement.IsFocused,selected:this.rowElement.IsSelected}),t=!0,this.IsMobile&&this.grid.updateState()),t},t.prototype._handleFocused=function(n){var t=!1;return n.Focused&&(r.ControlBase.switchClass(this.target,"focused",this.rowElement.IsFocused),r.ControlBase.switchClass(this.target,"regular",!this.rowElement.IsFocused),t=!0),t},Object.defineProperty(t.prototype,"rowBuilder",{get:function(){var n=null,t;return this.rowElement&&this.rowElement.Element&&this.rowElement.Element.TagInfo&&(t=this.rowElement.Element.TagInfo,r.PageFactory.Instance.isRegisteredRowBuilder(t)&&(n=r.PageFactory.Instance.createRowBuilder(t,this))),n||(this.DeviceType===r.DeviceType.MobileBrowser?n=new r.GridRowBuilderMobile(this):this.DeviceType===r.DeviceType.FullBrowser&&(n=new r.GridRowBuilderBrowser(this))),n?(n.init(),n):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return"grid-row-normal-content"},enumerable:!1,configurable:!0}),t.prototype.onClick=function(){this.props.onClick&&this.props.onClick()},t.prototype.createContent=function(){return this.rowBuilder?this.rowBuilder.buildRowContent():null},t.prototype.actionSelectRow=function(n){n.preventDefault&&(n.preventDefault(),n.stopPropagation());this.firstCreate=!1;this.grid.SelectionExtender.postSelectRow({row:this.rowElement,isShiftKey:"click"===n.type&&n.shiftKey,isMouseDown:"click"===n.type})},t.prototype.handler=function(n){this._handleFocusedElementChanged(n)||this._handleSelectRowChanged(n)||this._handleListChanged(n)||this._handleFocused(n)},t.prototype.renderMobile=function(){return e.a.createElement(r.ClickableElement,{parent:this})},t.prototype.renderBrowser=function(){return this.rowBuilder?this.rowBuilder.buildRowContent():null},t}(r.GridRowBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,u=i(1),f=i.n(u),e=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.dataElement.Name+"_"+this.props.id},enumerable:!1,configurable:!0}),t.prototype.localRender=function(){var n={height:this.props.height,width:this.props.grid.rowWidth,position:"absolute",left:0,top:this.props.top};return f.a.createElement("div",{id:this.id,style:n})},t.prototype.renderBrowser=function(){return this.localRender()},t.prototype.renderMobile=function(){return this.localRender()},t}(e.GridRowBase)},function(n,t,i){"use strict";var r,f=i(1),u=i.n(f),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});!function(n){function t(t){var i=n.call(this,t)||this;return i.pageLoaded=0,i.threshold=700,i}e(t,n);t.prototype.componentDidMount=function(){this.target=document.getElementById(this.props.id);this.props.attachEvents&&this.attachScrollListener()};t.prototype.componentDidUpdate=function(){this.props.attachEvents&&this.attachScrollListener()};t.prototype.componentWillUnmount=function(){this.props.attachEvents&&this.detachScrollListener()};t.prototype.attachScrollListener=function(){this.props.hasMore&&!this.handler&&(this.handler=this.scrollListener.bind(this),this.target.addEventListener("touchmove",this.handler,!1),this.target.addEventListener("resize",this.handler,!1))};t.prototype.detachScrollListener=function(){this.handler&&(this.target.addEventListener("touchmove",this.handler,!1),this.target.addEventListener("resize",this.handler,!1))};t.prototype.scrollListener=function(){this.handler&&this.target.getBoundingClientRect().top+this.target.offsetHeight-document.defaultView.pageYOffset-window.innerHeight<this.threshold&&(this.detachScrollListener(),this.props.loadMore(this.pageLoaded+=1))};t.prototype.render=function(){return u.a.createElement("div",{id:this.props.id,className:this.props.className},this.props.children)}}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var r,o=i(1),u=i.n(o),f=i(0),s=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){return n.call(this,t)||this}return s(t,n),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.dataElement.Name+"_viewport"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return"grid-viewport"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvas",{get:function(){return this.refs.canvas},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scroll",{get:function(){return this.refs.scroll},enumerable:!1,configurable:!0}),t.prototype.setScrollLeft=function(n){this.props.grid.setScrollLeft(n)},t.prototype.onResizeColumnStart=function(n){this.canvas&&this.canvas.onResizeColumnStart(n)},t.prototype.onResizeColumnDrag=function(n){this.canvas&&this.canvas.onResizeColumnDrag(n);this.scroll&&this.scroll.onResizeContent()},t.prototype.render=function(){var t=this,i={top:this.props.grid.headerHeight+1,bottom:this.props.grid.footerHeight},n={isFreezeX:!0,hscrollAction:function(n){return t.setScrollLeft(n)},name:this.props.dataElement.Name};return this.props.grid.leftFrozenWidth>0&&(n.trackLeft=this.props.grid.leftFrozenWidth),this.props.grid.rightFrozenWidth>0&&(n.trackRight=this.props.grid.rightFrozenWidth),u.a.createElement("div",{id:this.id,className:this.classnames,style:i},u.a.createElement(f.GridScroll,e({ref:"scroll"},n),u.a.createElement(f.GridCanvas,{ref:"canvas",dataElement:this.props.dataElement,grid:this.props.grid})))},t}(f.ControlBase)},function(n,t,i){"use strict";var r,e=i(1),u=i.n(e),f=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});!function(n){function t(t){return n.call(this,t)||this}o(t,n);Object.defineProperty(t.prototype,"id",{get:function(){return this.props.dataElement.Name+"_viewport"},enumerable:!1,configurable:!0});Object.defineProperty(t.prototype,"classnames",{get:function(){return"grid-viewport"},enumerable:!1,configurable:!0});Object.defineProperty(t.prototype,"canvas",{get:function(){return this.refs.canvas},enumerable:!1,configurable:!0});t.prototype.render=function(){var n={top:this.props.grid.headerHeight,bottom:this.props.grid.footerHeight};return u.a.createElement("div",{id:this.id,className:this.classnames,style:n},u.a.createElement(f.GridCanvas,{ref:"canvas",key:this.props.dataElement.Name+"_canvas",dataElement:this.props.dataElement,grid:this.props.grid}))}}(f.ControlBase)},function(){},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var o,s=i(1),u=i.n(s),f=i(2),r=i(0),h=(o=function(n,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}o(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},c=function(n){function t(t){var i=n.call(this,t)||this;return i.state={collapsed:i.props.collapsed},i}return h(t,n),t.getControlType=function(n){return t.isFilterGroup(n)?r.FilterGroup:t.isPanelGrid(n)?r.GridBarGroup:t.isPanelBi(n)&&!t.isDashboardItem(n)?r.BiGroup:t.isDashboardItem(n)?n.IsMobile||n.IsMobileApp?r.Group:r.DashboardItem:r.Group},t.isPanelGrid=function(n){var t=!1,i,r;return"Panel"===n.Class&&(i=f.a.pluck(f.a.filter(n.Parent.Elements,function(n){return"Grid"===n.ElementType||"Scheduler"===n.ElementType||"Gantt"===n.ElementType}),"Name"),r=f.a.pluck(n.Elements,"Name"),t=f.a.any(r,function(n){return f.a.any(i,function(t){return 0===n.indexOf(t)})})),t},t.isPanelBi=function(n){return f.a.any(n.Elements,function(n){return"Indicator"===n.ElementType})},t.isDashboardItem=function(n){return n&&n.hasClass("DashboardItem")},t.isFilterGroup=function(n){return n&&n.hasClass("FilterGroup")},Object.defineProperty(t.prototype,"id",{get:function(){return r.IsDebug?this.props.name:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groupName",{get:function(){if(!this.props.title)return null;var n=this.props.title?this.props.title:"",t=this.props.titleClass?this.props.titleClass:"",i={left:this.props.collapsible?"25px":"5px",width:this.props.collapsible?"calc(100% - 25px)":"100%"};return u.a.createElement("div",{className:t,style:i,dangerouslySetInnerHTML:{__html:n}})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"groupIcon",{get:function(){return this.props.collapsible?(n=r.GlobalSettings.Instance.IsStandardProduct?this.state.collapsed?"zoom_in":"zoom_out":this.state.collapsed?"tree_c":"tree_e",u.a.createElement(r.SvgIcon,{key:"ic_"+"".CreateReactKey(),style:void 0,name:n,classes:this.props.iconClasses})):null;var n},enumerable:!1,configurable:!0}),t.prototype.parseCssStyles=function(n){var t=e({},n),i;for(i in t)t.hasOwnProperty(i)&&(t[i]=t[i].indexOf("px")<0?parseInt(t[i]):parseInt(t[i].substring(0,t[i].length-2)));return t},t.prototype.isLocatorCoversGroupTitle=function(n){var t=e(e({},this.parseCssStyles(this.props.style)),{height:25}),i=n.Location;return!(i.Top>=t.top+t.height||i.Bottom<=t.top)},Object.defineProperty(t.prototype,"groupTitle",{get:function(){if(!this.groupName)return null;var n=!this.props.expandOnTitle||this.props.expandOnTitle,t=this.props.collapsible&&n?this.actionClick:null,i=this.props.collapsible?this.groupIcon:null;return u.a.createElement("div",{className:this.props.titleContainerClass,onClick:t},this.groupName,i)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionClick",{get:function(){var t=this,n=null;return this.props.collapsible&&this.props.onClick&&(n=function(n){return t.props.onClick(n)}),n},enumerable:!1,configurable:!0}),t.prototype.componentWillReceiveProps=function(n){this.props.collapsed!==n.collapsed&&this.updateState(n.collapsed)},t.prototype.updateState=function(n){this.setState({collapsed:n})},t.prototype.render=function(){var n=this.props.createGroupContent(this.state.collapsed);if(!(this.props.showEmptyGroup||n&&0!==n.length))return null;var t=this.props.collapsible&&this.state.collapsed&&!this.props.expandOnTitle?this.actionClick:null,i=this.state.collapsed?" collapsed":" expanded",r=this.props.containerClass+(this.props.collapsible?i:"")+(this.props.isTileMobile?" no-padding":"");return u.a.createElement("div",{className:this.props.classes,style:this.props.style,onClick:t},this.groupTitle,u.a.createElement("div",{className:r},n))},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,e=i(1),r=i.n(e),o=i(3),s=i.n(o),h=i(2),u=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(n){function t(t){var i=n.call(this,t)||this;return i.isTileMobile=!1,i.isDashboardItem=i.props.dataElement.hasClass("DashboardItem"),i}return c(t,n),Object.defineProperty(t.prototype,"serverControlled",{get:function(){return this.props.dataElement.hasClass("Expandable")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDisplayHtml",{get:function(){return void 0!==this.props.dataElement.DisplayHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"captionHtml",{get:function(){return this.props.dataElement.CaptionHtml?this.props.dataElement.CaptionHtml:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){if(this.isNoTitleMobile)return!1;var n=this.props.dataElement.Settings.Collapsed;return void 0===n&&(n=this.isCollapsible),n},set:function(n){this.props.dataElement.Settings.Collapsed=n;this.updateState()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsible",{get:function(){return this.IsMobile&&this.props.dataElement&&"Collapsed"===this.props.dataElement.DisplayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNoTitleMobile",{get:function(){return(this.IsMobile||this.IsMobileApp)&&!this.captionHtml},enumerable:!1,configurable:!0}),t.prototype.onClick=function(n){n.stopPropagation();n.preventDefault();this.isCollapsed=!this.isCollapsed},t.prototype.handler=function(t){n.prototype.handler.call(this,t);t.Expand&&(this.isCollapsed=!1)},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.group=!this.isCollapsible;this.classes["group-collapsible"]=this.isCollapsible;this.classes["dashboard-item"]=this.isDashboardItem;this.classes["group-no-title"]=this.isNoTitleMobile},t.prototype.createControlCollapsed=function(n){return r.a.createElement("div",{className:"group-item",key:n.Name},n.EditValue)},t.prototype.createControlsCollapsed=function(){var t=this,n;if(this.props.dataElement)return u.GroupBase.isDashboardItem(this.props.dataElement)?(n=this.props.dataElement.Elements.filter(function(n){return n.IsVisible&&n.Name.indexOf("_Wiecej")>=0}),n.length>0?n.map(function(n){return u.WindowBase.createDataControl(n)}):[r.a.createElement("div",{key:"empty"})]):this.hasDisplayHtml?[r.a.createElement("div",{key:"gr-html",className:"group-html",dangerouslySetInnerHTML:{__html:this.props.dataElement.DisplayHtml.replace("<br />"," ")}})]:this.props.dataElement.Elements.filter(function(n){return n.IsVisible&&("Grid"===n.ElementType||"Label"===n.ElementType||"Field"===n.ElementType&&"CheckBox"!==n.EditorType&&""!==n.EditValue)}).slice(0,3).map(function(n){return t.createControlCollapsed(n)})},t.prototype.createControlsExpanded=function(){return n.prototype.createControls.call(this)},t.prototype.createGroupBase=function(){var n=this,t=this.captionHtml?"group-title":"";return r.a.createElement(u.GroupBase,{key:"base_"+this.props.dataElement.Name,name:this.props.dataElement.Name,classes:s()(this.classes),collapsible:this.isCollapsible,collapsed:this.isCollapsed,containerClass:"group-content",iconClasses:"group-icon",style:this.style,title:this.captionHtml,titleClass:t,titleContainerClass:"group-title-container",isTileMobile:this.isTileMobile,createGroupContent:function(t){return n.createGroupContent(t)},onClick:function(t){return n.onClick(t)}})},t.prototype.prepareStyle=function(){n.prototype.prepareStyle.call(this);h.a.find(this.props.dataElement.Elements,function(n){return n&&"MemoText"===n.EditorType&&n.hasClass("XmlEdit")})&&(this.style.borderRadius="unset")},t.prototype.createGroupContent=function(t){return this.IsMobile?(this.isTileMobile=this.isNoTitleMobile&&this.props.dataElement&&this.props.dataElement.Elements&&1===this.props.dataElement.Elements.length&&("Command"===this.props.dataElement.Elements[0].ElementType||"Indicator"===this.props.dataElement.Elements[0].ElementType),0===this.props.dataElement.Elements.filter(function(n){return n.IsVisible}).length?null:t?this.createControlsCollapsed():this.createControlsExpanded()):n.prototype.createControls.call(this)},t.prototype.renderMobile=function(){return this.prepareClasses(),this.createGroupBase()},t.prototype.renderBrowser=function(){return this.prepareClasses(),this.prepareStyle(),this.createGroupBase()},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["group-bi"]=!this.IsMobile},t.prototype.createGroupContent=function(t){return this.IsMobile?0===this.props.dataElement.Elements.filter(function(n){return n.IsVisible}).length?null:t?this.createControlsCollapsed():this.createControlsExpanded():n.prototype.createControls.call(this)},t}(u.Group)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,e=i(1),o=i.n(e),s=i(3),u=i.n(s),f=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),Object.defineProperty(t.prototype,"iconclasses",{get:function(){return u()({"group-icon":!0})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"captionHtml",{get:function(){return this.props.dataElement.CaptionHtml?this.props.dataElement.CaptionHtml:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){var n=this.props.dataElement.Settings.Collapsed;return void 0===n&&(n=this.isCollapsible),n},set:function(n){this.props.dataElement.Settings.Collapsed=n;this.updateState()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsible",{get:function(){return this.props.dataElement&&"Collapsed"===this.props.dataElement.DisplayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpandable",{get:function(){return this.props.dataElement&&this.props.dataElement.hasClass("Expandable")},enumerable:!1,configurable:!0}),t.prototype.onClick=function(n){n.stopPropagation();n.preventDefault();this.isCollapsed=!this.isCollapsed;this.props.dataElement.postClick("")},t.prototype.handler=function(t){n.prototype.handler.call(this,t);t.Expand&&(this.isCollapsed=!1)},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["group-filter"]=!0;this.classes.expandable=this.isExpandable},t.prototype.createGroupBase=function(){var t=this,i,r;return this.prepareClasses(),i=this.captionHtml?"group-title":"",r=this.isExpandable?function(n){return t.onClick(n)}:null,o.a.createElement(f.GroupBase,{name:this.props.dataElement.Name,classes:u()(this.classes),collapsible:this.isExpandable,collapsed:this.isCollapsed,containerClass:"group-content",style:this.style,expandOnTitle:!0,iconClasses:this.iconclasses,title:this.captionHtml,titleClass:i,titleContainerClass:"group-title-container",showEmptyGroup:!0,createGroupContent:function(){return n.prototype.createControls.call(t)},onClick:r})},t.prototype.renderMobile=function(){return this.createGroupBase()},t.prototype.renderBrowser=function(){return this.prepareStyle(),this.createGroupBase()},t}(f.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,e=i(1),f=i.n(e),o=i(3),s=i.n(o),u=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.group=!0;this.classes.gb=!0},t.prototype.createCommands=function(){return this.props.dataElement.Elements.filter(function(n){return n.IsVisible}).map(function(n,t){return f.a.createElement(u.GridBarCommand,{key:t,dataElement:n})})},t.prototype.createContent=function(){return this.IsMobile?null:this.createCommands()},t.prototype.createGroupBase=function(){var n=this;return f.a.createElement(u.GroupBase,{name:this.props.dataElement.Name,classes:s()(this.classes),style:this.style,containerClass:"content",createGroupContent:function(t){return n.createContent(t)}})},t.prototype.renderMobile=function(){return this.prepareClasses(),this.createGroupBase()},t.prototype.renderBrowser=function(){return this.prepareClasses(),this.prepareStyle(),this.createGroupBase()},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var f,e=i(1),r=i.n(e),u=i(0),o=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"isNavGroup",{get:function(){return"NavigationHeaderGroup"===this.props.dataElement.Name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this.isNavGroup?"group-menu-main":"group-menu-commands"},enumerable:!1,configurable:!0}),t.prototype.createNavGroup=function(){var f="logo_"+u.GlobalSettings.Instance.ProductClass,n=this.props.dataElement.Window.findElementByName("NavigationLoginNameLabel"),t=this.props.dataElement.Window.findElementByName("NavigationDatabaseNameLabel"),i=this.props.dataElement.Window.findElementByName("logout-command"),e=r.a.createElement(u.SvgIcon,{key:f,name:f,classes:"logo",content:u.GlobalSettings.Instance.IsStandardProduct?u.SvgIcon.enova365Icon:null}),o=(n&&r.a.createElement("div",{key:n.Name,id:n.Name,className:"label"},n.CaptionHtml),t?r.a.createElement("div",{key:t.Name,id:t.Name,className:"label"},t.CaptionHtml):null),s=i?r.a.createElement(u.LogoutCommandNavigationBar,{key:i.Name,dataElement:i}):null;return[e,r.a.createElement("div",{key:"contentLabels",className:"content"},r.a.createElement("div",{className:"labels"},[o])),s]},t.prototype.createCommandsGroup=function(){return this.props.dataElement.Elements.filter(function(n){return n.IsVisible&&"CloseCommand"!==n.Name}).map(function(n){return u.WindowBase.createDataControl(n)})},t.prototype.createGroupContent=function(){return this.isNavGroup?this.createNavGroup():this.createCommandsGroup()},t.prototype.renderAll=function(){return r.a.createElement("div",{id:this.props.dataElement.Name,className:this.className},this.createGroupContent())},t.prototype.renderMobile=function(){return this.renderAll()},t.prototype.renderBrowser=function(){return this.renderAll()},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,o=i(1),u=i.n(o),s=i(3),h=i.n(s),e=i(2),r=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(n){function t(t){var i=n.call(this,t)||this;return i.props.window.IsMobile||(i.headerBarNavigator=new r.HeaderBarKeyNavigator(i)),i.state={bookmarkBarWidth:void 0},i}return c(t,n),Object.defineProperty(t.prototype,"isMainMenuFolder",{get:function(){var n=r.WindowManager.Instance.ActiveWindow,t;return n?(t=n.SelectedPage||n.Root,t&&!this.props.window.IsMobile&&e.a.any(t.Elements,function(n){return n.hasClass("MainGroup")})):!1},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){this.classes={};this.classes["hb-main"]=!0;this.classes["hb-main-menu"]=this.isMainMenuFolder},t.prototype.findCommand=function(n){var i=e.a.filter(this.props.window.Bars,function(n){return"HomeBar"===n.Name}),t=e.a.filter(i[0].Elements,function(t){return t.Name===n}),r=t?t[0]:null;return r||null},t.prototype.createHomeCommand=function(){var n=this.findCommand("HomeCommand");if(!n)return null;var t=r.LanguageConstants.SETTINGS.CustomLogoStyle,i=(r.LanguageConstants.SETTINGS.CustomLogoLink,"logo_"+r.GlobalSettings.Instance.ProductClass),f={backgroundImage:"url("+t+")"},e=t?u.a.createElement("div",{className:"custom-logo",style:f}):u.a.createElement(r.SvgIcon,{name:i,classes:"logo"});return u.a.createElement("div",{ref:"logo",className:"hb-home",onClick:function(){return n.postClick("")}},e)},t.prototype.getOffsetWidth=function(n){return this.refs[n].offsetWidth?this.refs[n].offsetWidth:this.refs[n].domElement&&this.refs[n].domElement.offsetWidth?this.refs[n].domElement.offsetWidth:-1},t.prototype.componentDidMount=function(){this.headerBarNavigator&&this.headerBarNavigator.onComponentDidMount();n.prototype.componentDidMount.call(this);this.calcBookmarkBarWidth()},t.prototype.componentWillUnmount=function(){this.headerBarNavigator&&this.headerBarNavigator.onComponentWillUnmount();n.prototype.componentWillUnmount.call(this)},t.prototype.componentDidUpdate=function(t,i){n.prototype.componentDidUpdate.call(this,t,i);this.calcBookmarkBarWidth()},t.prototype.calcBookmarkBarWidth=function(){var t=this.getOffsetWidth("headerBar"),i=this.getOffsetWidth("topBar"),r=this.getOffsetWidth("logo"),n;t<0||i<0||r<0||(n=t-i-r,n!==this.state.bookmarkBarWidth&&this.setState({bookmarkBarWidth:n}))},t.prototype.keyDownListener=function(n){this.headerBarNavigator&&this.headerBarNavigator.keyDownListener(n)},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.eventRegistrar.registerEventListener({domElement:window,type:"resize",handler:this.onResizeEventListener.bind(this)})},t.prototype.onResizeEventListener=function(){var n=this;setTimeout(function(){var i=n.getOffsetWidth("headerBar"),r=n.getOffsetWidth("topBar"),u=n.getOffsetWidth("logo"),t;i<0||r<0||u<0||(t=i-r-u,t!==n.state.bookmarkBarWidth&&n.setState({bookmarkBarWidth:t}))},500)},t.prototype.render=function(){this.prepareClasses();var n=this.props.window.findElementByName("TopBar");return u.a.createElement("div",{ref:"headerBar",className:h()(this.classes)},this.createHomeCommand(),u.a.createElement(r.BookmarkBar,{ref:"bookmarkBar",maxWidth:this.state.bookmarkBarWidth,navigator:this.headerBarNavigator,window:this.props.window}),u.a.createElement(r.TopBar,{ref:"topBar",dataElement:n}))},t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,f=i(1),e=i.n(f),o=i(3),s=i.n(o),u=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.state={version:i.state.version},i}return h(t,n),Object.defineProperty(t.prototype,"classnames",{get:function(){return s()({"h-command":!0,hidden:!this.props.dataElement.IsVisible})},enumerable:!1,configurable:!0}),t.prototype.handler=function(t){n.prototype.handler.call(this,t);t.LocationChanged&&this.updateState()},t.prototype.onClick=function(n){n.preventDefault();n.stopPropagation();this.props.onClick&&this.props.onClick(this.props.dataElement)},t.prototype.createContent=function(){var n=this;return e.a.createElement(u.SvgIcon,{name:this.props.dataElement.Icon.toLowerCase(),classes:"icon",onClick:function(t){return n.onClick(t)}})},t}(u.Command)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.initItems=function(){var t,r,i,u,f;n.prototype.initItems.call(this);t=this.reactElement.refs;for(r in t)if(t.hasOwnProperty(r)){i=t[r];for(u in i.refs)i.refs.hasOwnProperty(u)&&(f=i.refs[u],this.navigationItems.push(f))}},t}(u.ComponentKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,e=i(1),r=i.n(e),o=i(3),s=i.n(o),f=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.state={searchState:i.props.searchActive&&i.props.searchState},i}return h(t,n),t.createHeaderCommand=function(n,t,i){var u=f.ControlFactory.Instance.getControlType(null,"Svg");return u&&n.IsVisible?r.a.createElement(u,{key:n.Name,id:n.Name,name:n.Icon.toLowerCase(),classes:"icon"+(i?" "+i:""),onClick:t?function(){return t(n.Name)}:null}):null},t.prototype.componentWillReceiveProps=function(n){this.props.searchActive&&this.props.searchState!==n.searchState&&this.updateState(n.searchState)},t.prototype.componentDidUpdate=function(n,t){if(this.props.searchActive&&this.state.searchState){var i=this.refs.SearchBarLocatorName,r=i.value;i&&i.focus();r&&!t.searchState&&(i.selectionStart=0,i.selectionEnd=r.length)}},t.prototype.updateState=function(n){this.setState({searchState:n})},t.prototype.prepareClasses=function(){this.classes={};this.classes.headerbar=!0;this.classes["headerbar-search"]=this.props.searchActive&&this.state.searchState;this.props.className&&(this.classes[this.props.className]=!0)},t.prototype.getNavigationMenu=function(){var t=this,n=this.props.menuIconName&&!this.props.menuIconContent?this.props.menuIconName:null,i=this.props.menuIconContent?this.props.menuIconContent:null,u=this.props.reminderCounts<9?this.props.reminderCounts:"9+",e=!this.state.searchState&&this.props.reminderCounts&&this.props.reminderCounts>0?r.a.createElement("div",{className:"notification",onClick:function(n){return t.props.onMenuClick(n)}},u):null;return n||i?r.a.createElement("div",{className:"nav-menu"},r.a.createElement(f.SvgIcon,{key:n,name:n,classes:"icon",content:i,onClick:function(n){return t.props.onMenuClick(n)}}),e):null},t.prototype.onSearchInputChange=function(n){var t=this,i=n.target.value;this.filterValue!==n.target.value?(this.delaySendingValue&&clearTimeout(this.delaySendingValue),this.delaySendingValue=setTimeout(function(){t.props.onSearchAction(i,!1);t.filterValue=i},800)):clearTimeout(this.delaySendingValue)},t.prototype.onCommandClick=function(n){"clearSearch"===n&&(this.filterValue="",this.props.onSearchAction("",!0))},t.prototype.getSearchInput=function(){var n=this;return this.props.searchActive&&this.state.searchState?r.a.createElement("input",{key:"SearchBarLocatorName",placeholder:f.LanguageConstants.RESOURCES.Str_SearchText,ref:"SearchBarLocatorName",onChange:function(t){return n.onSearchInputChange(t)},defaultValue:this.props.searchValue}):null},t.prototype.getHeaderTitle=function(){var n=this.props.captionHtml?this.props.captionHtml:"";return this.props.searchActive&&this.state.searchState?null:r.a.createElement("div",{key:"headerTitle",className:"headerbar-title",dangerouslySetInnerHTML:{__html:n}})},t.prototype.getContentSection=function(){return r.a.createElement("div",{className:"headerbar-content"},this.getSearchInput(),this.getHeaderTitle())},t.prototype.getCommands=function(){var n=this;return this.props.searchActive&&this.state.searchState?[{Name:"clearSearch",Icon:"anuluj",IsVisible:!0}].map(function(i){return t.createHeaderCommand(i,n.onCommandClick.bind(n,i.Name),"clear-search")},this):this.props.commands&&0!==this.props.commands.length?this.props.commands:null},t.prototype.render=function(){return this.prepareClasses(),r.a.createElement("div",{className:s()(this.classes)},this.getNavigationMenu(),this.getContentSection(),this.getCommands())},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,e=i(1),u=i.n(e),o=i(3),f=i.n(o),s=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.html=!0},t.prototype.prepareStyle=function(){n.prototype.prepareStyle.call(this);this.props.dataElement&&"Modal"===this.props.dataElement.Window.Mode&&(this.style.bottom="unset")},t.prototype.getContent=function(){return this.props.dataElement&&this.props.dataElement.EditValue||""},t.prototype.renderMobile=function(){return this.prepareClasses(),u.a.createElement("div",{className:f()(this.classes),dangerouslySetInnerHTML:{__html:this.getContent()}})},t.prototype.renderBrowser=function(){return this.prepareClasses(),this.prepareStyle(),u.a.createElement("div",{className:f()(this.classes),style:this.style,dangerouslySetInnerHTML:{__html:this.getContent()}})},t}(s.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(0),e=i(1),u=i.n(e),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.renderMobile=function(){return this.renderContent()},t.prototype.renderBrowser=function(){return this.prepareStyle(),this.renderContent()},t.prototype.renderContent=function(){if(0===this.props.src.indexOf("data:image"))return u.a.createElement("img",{alt:"",style:this.style,className:this.props.classes,src:this.props.src});var n=this.props.src;return 0!==n.indexOf("/")&&(n="/"+n),u.a.createElement("img",{alt:"",className:this.props.classes,src:n})},t}(f.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(0),e=i(1),u=i.n(e),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.renderAll=function(){return u.a.createElement(u.a.Fragment,null,this.createControls())},t.prototype.renderMobile=function(){return this.renderAll()},t.prototype.renderBrowser=function(){return this.renderAll()},t}(f.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,o=i(1),r=i.n(o),s=i(3),e=i.n(s),u=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.captionClasses={},u.GlobalSettings.Instance.IsStandardProduct&&(i.followMouse=!0,i.InitToolTip()),i}return h(t,n),t.prototype.InitToolTipStyle=function(){n.prototype.InitToolTipStyle.call(this);var t=this.getRect();this.tooltipDiv.style.top=t.top+"px";this.tooltipDiv.style.left=t.left+t.width+5+"px"},t.prototype.initTooltipText=function(){return"<div>"+this.props.dataElement.CaptionHtml+"<\/div>"+this.props.dataElement.DescriptionHtml},t.getControlType=function(n){return u.GlobalSettings.Instance.IsStandardProduct?t:n&&n.Parent&&n.Parent.Class&&n.Parent.Class.indexOf("DashboardItem")>=0?u.IndicatorPremiumDashboard:u.IndicatorPremium},t.prototype.onClick=function(){this.props.dataElement.postClick("")},Object.defineProperty(t.prototype,"classnames",{get:function(){return"indicator"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueStyle",{get:function(){var n={};return this.AppearanceInfo&&this.AppearanceInfo.ForeColor&&(n.color=this.AppearanceInfo.ForeColor.toLowerCase()),n},enumerable:!1,configurable:!0}),t.prototype.prepareCaptionClasses=function(){this.captionClasses["ind-caption"]=!0},t.prototype.prepareIndClasses=function(){this.captionClasses["ind-caption"]=!0},t.prototype.renderIndValue=function(){return"???"===this.props.dataElement.EditValue?r.a.createElement(u.SvgIcon,{name:"wait",classes:"ind-value-icon"}):this.props.dataElement.EditValue?r.a.createElement("div",{className:"ind-value",style:this.valueStyle},this.props.dataElement.EditValue):null},t.prototype.renderIndIcon=function(){return this.props.dataElement.Icon?r.a.createElement(u.SvgIcon,{name:this.props.dataElement.Icon,classes:"ind-icon"}):null},t.prototype.renderHeader=function(){var n=this.props.dataElement.Info?r.a.createElement("div",{className:"ind-time"},this.props.dataElement.Info):null,t=this.props.dataElement.Info?r.a.createElement(u.SvgIcon,{name:"zegar",classes:"ind-time-icon"}):null,i=this.props.dataElement.Unit?r.a.createElement("div",{className:"ind-unit"},this.props.dataElement.Unit):null;return r.a.createElement("div",{className:"ind-header"},t,n,i)},t.prototype.renderContent=function(){var n=this.renderIndIcon(),t=this.renderIndValue();return r.a.createElement("div",{className:"ind-content"},n,t)},t.prototype.renderDesc=function(){var n=this.props.dataElement.CaptionHtml?r.a.createElement("div",{className:e()(this.captionClasses)},this.props.dataElement.CaptionHtml):null;return r.a.createElement("div",{className:"ind-footer"},n)},t.prototype.handler=function(n){(n.VerifiersChanged||n.PropertiesChanged||n.AppearanceChanged)&&this.updateState()},t.prototype.prepareStyle=function(){this.IsMobile?this.style={}:n.prototype.prepareStyle.call(this);!this.IsStandardProduct&&this.AppearanceInfo&&this.AppearanceInfo.BackColor&&(this.style.backgroundColor=this.AppearanceInfo.BackColor.toLowerCase(),this.AppearanceInfo.ForeColor&&(this.style.color=this.AppearanceInfo.ForeColor.toLowerCase()))},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["ind-container"]=!0;this.prepareCaptionClasses()},t.prototype.createContent=function(){return this.prepareClasses(),r.a.createElement("div",{className:e()(this.classes)},this.renderHeader(),this.renderContent(),this.renderDesc())},t.prototype.renderMobile=function(){return this.prepareStyle(),r.a.createElement(u.ClickableElement,{parent:this,style:this.style})},t.prototype.renderBrowser=function(){var n=this;return this.prepareStyle(),r.a.createElement("div",{id:this.tooltipId,className:this.classnames,style:this.style,onClick:function(t){return n.onClick(t)}},this.createContent())},t}(u.TooltipBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var u,o=i(1),r=i.n(o),s=i(4),h=i.n(s),c=i(3),f=i.n(c),e=i(0),l=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){var i=n.call(this,t)||this;return i.mouseDescEnterHandler=i.mouseDescEnterListener.bind(i),i.mouseDescLeaveHandler=i.mouseDescLeaveListener.bind(i),i.state={hoverDesc:!1},i}return l(t,n),t.prototype.shouldComponentUpdate=function(n,t){return t.hoverDesc!==this.state.hoverDesc||t.version!==this.state.version},t.prototype.componentDidUpdate=function(t,i,r){n.prototype.componentDidUpdate.call(this,t,i,r);this.reAttachEventListeners()},Object.defineProperty(t.prototype,"domDesc",{get:function(){return h.a.findDOMNode(this.refs.desc)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"descclasses",{get:function(){return f()({"ind-footer":!0,"flip-in-hor-bottom":this.state.hoverDesc})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"captionclasses",{get:function(){return f()({"ind-caption":!0})},enumerable:!1,configurable:!0}),t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.IsMobile||this.eventRegistrar.registerEventListeners([{domElement:this.domDesc,type:"mouseenter",handler:this.mouseDescEnterHandler},{domElement:this.domElement,type:"mouseleave",handler:this.mouseDescLeaveHandler}])},t.prototype.renderHeader=function(){if(this.state.hoverDesc)return null;var n=this.props.dataElement.Info?r.a.createElement("div",{className:"ind-time"},this.props.dataElement.Info):null,t=this.props.dataElement.Info?r.a.createElement(e.SvgIcon,{name:"zegar",classes:"ind-time-icon"}):null;return r.a.createElement("div",{className:"ind-header"},n,t)},t.prototype.renderContent=function(){if(this.state.hoverDesc)return null;var n=this.renderIndValue(),t=this.renderIndUnit();return r.a.createElement("div",{className:"ind-content"},n,n?t:null)},t.prototype.renderIndUnit=function(){return"???"===this.props.dataElement.EditValue?null:this.props.dataElement.Unit?r.a.createElement("div",{className:"ind-unit"},this.props.dataElement.Unit):null},t.prototype.renderDesc=function(){var n,t,i;return this.props.dataElement.CaptionHtml?(n={height:this.IsMobile?"auto":this.state.hoverDesc?"inherit":"40px",justifyContent:this.state.hoverDesc?"center":"flex-start",textAlign:this.state.hoverDesc?"center":"unset"},t={textOverflow:this.state.hoverDesc?"unset":"ellipsis",overflow:this.state.hoverDesc?"unset":"hidden",whiteSpace:this.state.hoverDesc?"normal":"nowrap"},this.state.hoverDesc)?(i=this.props.dataElement.DescriptionHtml?this.props.dataElement.DescriptionHtml:this.props.dataElement.CaptionHtml,r.a.createElement("div",{ref:"desc",className:this.descclasses,style:n,dangerouslySetInnerHTML:{__html:i}})):r.a.createElement("div",{className:this.descclasses,style:n},r.a.createElement("div",{ref:"desc",className:this.captionclasses,style:t,dangerouslySetInnerHTML:{__html:this.props.dataElement.CaptionHtml}})):null},t.prototype.mouseDescEnterListener=function(){this.state.hoverDesc||this.setState({hoverDesc:!0})},t.prototype.mouseDescLeaveListener=function(){this.state.hoverDesc&&this.setState({hoverDesc:!1})},t}(e.Indicator)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var e,o=i(1),r=i.n(o),s=i(3),f=i.n(s),u=i(0),h=(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.isDimensionsChanged=!1,i}return h(t,n),t.prototype.shouldComponentUpdate=function(n,t){return this.isDimensionsChanged=n.dataElement&&n.dataElement.Location&&n.dataElement.Location.Width!==this.rect.width||n.dataElement.Location.Height!==this.rect.height,t.hoverDesc!==this.state.hoverDesc||t.version!==this.state.version||this.isDimensionsChanged},Object.defineProperty(t.prototype,"classnames",{get:function(){return f()({indicator:!0,dashboard:!0,small:!this.IsMobile&&this.isTileSizeSmall,medium:!this.IsMobile&&this.isTileSizeMedium,large:!this.IsMobile&&this.isTileSizeLarge})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTileSizeSmall",{get:function(){return this.props.dataElement&&this.props.dataElement.Location&&this.props.dataElement.Location.Height<=u.GridPatternHelper.dashboardGridSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTileSizeMedium",{get:function(){return this.props.dataElement&&this.props.dataElement.Location&&this.props.dataElement.Location.Height===2*u.GridPatternHelper.dashboardGridSize+u.GridPatternHelper.dashboardGridMargin},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTileSizeLarge",{get:function(){return this.props.dataElement&&this.props.dataElement.Location&&this.props.dataElement.Location.Height>2*u.GridPatternHelper.dashboardGridSize+u.GridPatternHelper.dashboardGridMargin},enumerable:!1,configurable:!0}),t.prototype.initEventListeners=function(){this.IsMobile?this.eventRegistrar.registerEventListener({domElement:window,type:"orientationchange",handler:this.orientationListener.bind(this)}):this.isTileSizeSmall?this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"mouseover",handler:this.mouseDescEnterHandler},{domElement:this.domElement,type:"mouseleave",handler:this.mouseDescLeaveHandler}]):this.eventRegistrar.registerEventListeners([{domElement:this.domDesc,type:"mouseenter",handler:this.mouseDescEnterHandler},{domElement:this.domElement,type:"mouseleave",handler:this.mouseDescLeaveHandler}])},t.prototype.createContent=function(){return this.prepareClasses(),r.a.createElement("div",{className:f()(this.classes)},this.isTileSizeSmall?null:this.renderHeader(),this.renderContent(),this.renderDesc())},t.prototype.checkIsDescFit=function(n){var i,r;if(void 0!==this.isDescFit&&!this.isDimensionsChanged)return this.isDescFit;var u,f=this.props.dataElement.Location.Height-(this.isTileSizeMedium?62:75),e=this.props.dataElement.Location.Width,t=document.createElement("div");return t.setAttribute("id","indDesc"),t.setAttribute("class","indicator dashboard"),t.setAttribute("style","width: "+e+"px; height: 100px"),i=document.createElement("div"),i.setAttribute("class","ind-container"),r=document.createElement("div"),r.setAttribute("class","ind-footer desc-fit"),r.innerHTML=n,i.appendChild(r),t.appendChild(i),document.body.appendChild(t),u=document.getElementById("indDesc").getBoundingClientRect().height,document.getElementById("indDesc").remove(),this.isDescFit=u<=f,this.isDescFit},t.prototype.renderBrowserDesc=function(){var e=this.props.dataElement.CaptionHtml===this.props.dataElement.DescriptionHtml,n=this.checkIsDescFit(this.props.dataElement.CaptionHtml),t;if(!this.isTileSizeSmall&&e&&n)return t={color:this.style.color?this.style.color:"white"},r.a.createElement("div",{className:"ind-footer desc-fit",style:t,dangerouslySetInnerHTML:{__html:this.props.dataElement.CaptionHtml}});var i={height:this.state.hoverDesc?this.props.dataElement.Location.Height+4:this.isTileSizeSmall?"3px":n?"auto":"28px",justifyContent:this.state.hoverDesc?"center":"flex-start",textAlign:this.state.hoverDesc?"center":"unset"},o=n?null:{textOverflow:this.state.hoverDesc?"unset":"ellipsis",overflow:this.state.hoverDesc?"unset":"hidden",whiteSpace:this.state.hoverDesc?"normal":"nowrap"},u=f()({"ind-footer":!0,"flip-in-hor-bottom":this.state.hoverDesc,"desc-fit":n});return this.state.hoverDesc?r.a.createElement("div",{ref:"desc",className:u,style:i,dangerouslySetInnerHTML:{__html:this.props.dataElement.DescriptionHtml}}):r.a.createElement("div",{className:u,style:i},r.a.createElement("div",{ref:"desc",className:n?"ind-caption-fit":"ind-caption-not-fit",style:o,dangerouslySetInnerHTML:{__html:this.isTileSizeSmall?"":this.props.dataElement.CaptionHtml}}))},t.prototype.renderMobileDesc=function(){var n={height:"auto",justifyContent:this.state.hoverDesc?"center":"flex-start",textAlign:this.state.hoverDesc?"center":"unset"},i={textOverflow:this.state.hoverDesc?"unset":"ellipsis",overflow:this.state.hoverDesc?"unset":"hidden",whiteSpace:this.state.hoverDesc?"normal":"nowrap"},t=f()({"ind-footer":!0,"flip-in-hor-bottom":this.state.hoverDesc,"desc-fit":!1});return this.state.hoverDesc?r.a.createElement("div",{ref:"desc",className:t,style:n,dangerouslySetInnerHTML:{__html:this.props.dataElement.DescriptionHtml}}):r.a.createElement("div",{className:t,style:n},r.a.createElement("div",{ref:"desc",className:"ind-caption-not-fit",style:i,dangerouslySetInnerHTML:{__html:this.isTileSizeSmall?"":this.props.dataElement.CaptionHtml}}))},t.prototype.renderDesc=function(){return this.props.dataElement.CaptionHtml?this.IsMobile?this.renderMobileDesc():this.renderBrowserDesc():null},t.prototype.onClick=function(t){var i=this,r;(n.prototype.onClick.call(this,t),this.IsMobile)&&(r=!this.state.hoverDesc,this.setState({hoverDesc:r}),r&&(this.mobileHoverStateCounter=0,this.mobileHoverStatInterval||(this.mobileHoverStatInterval=setInterval(function(){i.mobileHoverStateCounter>=3e3&&(clearInterval(i.mobileHoverStatInterval),i.mobileHoverStatInterval=null,i.state.hoverDesc&&i.setState({hoverDesc:!1}));i.mobileHoverStateCounter+=100},100))))},t}(u.IndicatorPremium)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,e=i(1),u=i.n(e),o=i(3),s=i.n(o),f=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.prototype.onClick=function(){this.props.dataElement.postClick("")},Object.defineProperty(t.prototype,"classnames",{get:function(){return s()(this.classes)},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["percent-indicator"]=!0},t.prototype.createContent=function(){return this.prepareClasses(),u.a.createElement("div",{className:"value",dangerouslySetInnerHTML:{__html:this.props.dataElement.EditValue}})},t.prototype.renderMobile=function(){return u.a.createElement(f.ClickableElement,{parent:this})},t.prototype.renderBrowser=function(){var n=this;return this.prepareStyle(),u.a.createElement("div",{className:this.classnames,style:this.style,onClick:function(t){return n.onClick(t)}},this.createContent())},t}(f.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var r,f=i(1),u=i.n(f),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this,t)||this;return i.pageLoaded=0,i.threshold=700,i}return e(t,n),t.prototype.componentDidMount=function(){this.target=document.getElementById(this.props.id);this.props.attachEvents&&this.attachScrollListener()},t.prototype.componentDidUpdate=function(){this.props.attachEvents&&this.attachScrollListener()},t.prototype.componentWillUnmount=function(){this.props.attachEvents&&this.detachScrollListener()},t.prototype.attachScrollListener=function(){this.props.hasMore&&!this.handler&&(this.handler=this.scrollListener.bind(this),this.target.addEventListener("touchmove",this.handler,!1),this.target.addEventListener("resize",this.handler,!1))},t.prototype.detachScrollListener=function(){this.handler&&(this.target.addEventListener("touchmove",this.handler,!1),this.target.addEventListener("resize",this.handler,!1))},t.prototype.scrollListener=function(){this.handler&&this.target.getBoundingClientRect().top+this.target.offsetHeight-document.defaultView.pageYOffset-window.innerHeight<Number(this.threshold)&&(this.detachScrollListener(),this.props.loadMore(this.pageLoaded+=1))},t.prototype.render=function(){return u.a.createElement("div",{id:this.props.id,className:this.props.className},this.props.children)},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,f=i(1),u=i.n(f),e=i(3),o=i.n(e),s=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.isCenter=i.props.dataElement.hasClass("CenterLabel"),i.isLarge=i.props.dataElement.hasClass("LargeFont"),i.isRed=i.props.dataElement.hasClass("RedFont"),i.isGreen=i.props.dataElement.hasClass("GreenFont"),i.isBold=i.props.dataElement.hasClass("BoldLabel"),i}return h(t,n),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.label=!0;this.classes.center=this.isCenter;this.classes.large=this.isLarge;this.classes.bold=this.isBold;this.classes.green=this.isGreen;this.classes.red=this.isRed;this.props.dataElement.Class&&(this.classes[this.props.dataElement.Class.toLowerCase()]=!0)},t.prototype.renderAll=function(){var n=this.props.dataElement.IsVisible?this.style:{display:"none"};return u.a.createElement("div",{style:n,className:o()(this.classes),id:this.props.dataElement.Name},u.a.createElement("div",{dangerouslySetInnerHTML:{__html:this.props.dataElement.CaptionHtml}}))},t.prototype.renderMobile=function(){return this.prepareClasses(),this.renderAll()},t.prototype.renderBrowser=function(){return this.prepareClasses(),this.prepareStyle(),this.renderAll()},t}(s.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var f,e=i(1),u=i.n(e),r=i(0),o=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.state={loading:!1},i}return o(t,n),t.prototype.componentWillMount=function(){r.WindowManager.Instance.addListenerAndCall(this)},t.prototype.componentWillUnmount=function(){r.WindowManager.Instance.removeListener(this)},Object.defineProperty(t.prototype,"DeviceType",{get:function(){return r.WindowElement.DeviceType},enumerable:!1,configurable:!0}),t.prototype.handler=function(n){(n.ProgressChanged||n.GlobalDialog||n.ActiveWindowChanged)&&(r.WindowManager.Instance.IsProgress,this.setState({loading:!n.GlobalDialog&&r.WindowManager.Instance.IsProgress}))},t.prototype.renderBrowser=function(){return u.a.createElement("div",{className:"overlay-screen-loader"},u.a.createElement("div",{className:"loader"},u.a.createElement(r.Spinner,null)))},t.prototype.renderMobile=function(){return u.a.createElement("div",{className:"overlay-screen-loader"},u.a.createElement("div",{className:"loader"},u.a.createElement(r.Spinner,null)))},t.prototype.render=function(){return this.state.loading?this.DeviceType===r.DeviceType.FullBrowser?this.renderBrowser():this.renderMobile():null},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),r=i.n(e),f=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"DeviceType",{get:function(){return f.WindowElement.DeviceType},enumerable:!1,configurable:!0}),t.prototype.renderBrowser=function(){var n=this.props.className||"spinner";return r.a.createElement("svg",{className:n,viewBox:"25 25 50 50"},r.a.createElement("circle",{className:"path",cx:"50",cy:"50",r:"20",fill:"none"}))},t.prototype.renderMobile=function(){return r.a.createElement("svg",{className:"spinner",viewBox:"25 25 50 50"},r.a.createElement("circle",{className:"path",cx:"50",cy:"50",r:"20",fill:"none"}))},t.prototype.render=function(){return this.DeviceType===f.DeviceType.FullBrowser?this.renderBrowser():this.renderMobile()},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var f,o=i(1),u=i.n(o),e=i(2),r=i(0),s=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){var i=n.call(this,t)||this;return i.loadMoreTitle=r.LanguageConstants.RESOURCES.Str_More?r.LanguageConstants.RESOURCES.Str_More:"Więcej...",i.props.isMobile||(i.mouseNavigator=new r.DictionaryMouseNavigator(i)),i}return s(t,n),t.prototype.componentDidMount=function(){this.mouseNavigator&&this.mouseNavigator.onComponentDidMount()},t.prototype.componentWillUnmount=function(){this.mouseNavigator&&this.mouseNavigator.onComponentWillUnmount()},t.prototype.mouseDownListener=function(n){this.mouseNavigator&&this.mouseNavigator.mouseDownListener(n)},t.prototype.triggerLoadMore=function(){this.props.loadMoreItems&&this.props.loadMoreItems()},t.prototype.prepareSingleItem=function(n,t){var i=this;return u.a.createElement(r.LookupRowElement,{ref:"l-row"+t,refName:"l-row"+t,key:t+"".CreateReactKey(),rowElement:n,onClick:function(n){return i.props.onRowClick(n)}})},t.prototype.itemsForDictionary=function(){var n=null,t=e.a.map(this.props.items,function(t){var i=t.Data&&"$$AddRemoveButtons"===t.Data[0];return i&&(n=t),i?null:t}),i,r;return n&&(i=n.clone(),r=n.clone(),i.Settings.RowSettings.ButtonType="add",r.Settings.RowSettings.ButtonType="remove",t.push(i),t.push(r)),e.a.compact(t)},t.prototype.filterItems=function(){this.filteredItems=this.props.items&&0!==this.props.items.length?this.props.isMobile?this.props.items.filter(function(n){return"$$AddRemoveButtons"!==n.ID&&"$$RemoveButton"!==n.ID}):this.itemsForDictionary():[]},t.prototype.getItems=function(){var n=this;return this.props.items&&0!==this.props.items.length?this.filteredItems.map(function(t,i){return n.prepareSingleItem(t,i)},this):null},t.prototype.prepareNewItem=function(){var f=this,t,n,i;if(this.props.isMobile)return null;if(t=!1,this.filteredItems&&this.filteredItems.length>0)for(n=0;n<this.filteredItems.length;n++)if(i=this.filteredItems[n],(i.Data[1]||i.Data[0]).toUpperCase()===this.props.currentValue.toUpperCase()){t=!0;break}return this.props.currentValue&&!t?u.a.createElement(r.LookupRowSpecial,{ref:"l-row-new",refName:"l-row-new",keyName:this.props.currentValue,moreBtn:!1,value:this.props.currentValue,onClick:function(n){return f.props.onRowClick(n)}}):null},t.prototype.prepareLoadMoreItem=function(){var n=this;return this.props.endArchived?null:u.a.createElement(r.LookupRowSpecial,{ref:"l-row-loadmore",refName:"l-row-loadmore",keyName:"loadMoreRow",moreBtn:!0,value:this.loadMoreTitle,onClick:function(){return n.props.loadMoreItems()}})},t.prototype.render=function(){return this.filterItems(),u.a.createElement("div",{"data-lparent":this.props.ownerName?this.props.ownerName:null,className:"lookup-content"},this.prepareNewItem(),this.getItems(),this.prepareLoadMoreItem())},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var u,f=i(2),r=i(0),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this,t)||this;return i.forceDTValue=!1,i.blockChange=!1,i.mobileShowSearchInput=!1,i.checkSelection=!1,i.inputFlag=!1,i.originalItems=i.props.items,i.state={active:!1,items:i.setItemsToShow(i.props.items),value:i.props.parent.DisplayHtml?i.props.parent.DisplayHtml:i.props.parent.EditValue},i}return e(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.keyNavigator&&this.keyNavigator.onComponentDidMount();this.mouseNavigator&&this.mouseNavigator.onComponentDidMount();r.BaseKeyNavigator.setKeyListener(this.editorText,this);r.BaseKeyNavigator.setMouseListener(this.editorText,this);this.input=document.getElementById(this.props.parent.Name.toString());this.input&&r.BaseKeyNavigator.setKeyListener(this.input,this)},t.prototype.componentDidUpdate=function(){this.keyNavigator&&this.keyNavigator.onComponentDidUpdate();this.mouseNavigator&&this.mouseNavigator.onComponentDidUpdate();!this.props.isMobile&&this.state.active&&document.activeElement!==this.input&&this.input.focus()},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.keyNavigator&&this.keyNavigator.onComponentWillUnmount();this.mouseNavigator&&this.mouseNavigator.onComponentWillUnmount()},t.prototype.mouseDownHandler=function(t){n.prototype.mouseDownHandler.call(this,t);var i=!this.state.active&&(this.props.parent.EditValue===this.input.value||this.props.parent.DisplayHtml===this.input.value),r=this.domElement===t.target||this.domElement.parentElement.contains(t.target);i||r||this.blurHandler(t)},t.isRowLoadMore=function(n){return n&&n.classList&&n.classList.contains("l-loadmore")},t.isRowSpecial=function(n){return n&&n.classnames&&n.classnames.indexOf("l-row-s")>=0},t.prototype.isTextEqual=function(n,t){var i=n.toLowerCase().replace(/-/g,""),r=t.toLowerCase().replace(/-/g,"");return i.indexOf(r)>=0},t.prototype.getLookupContainer=function(){return this.props.setDisableTouchEvents(this.state.active),this.state.active?this.props.isMobile?this.ContentMobile:this.ContentBrowser:null},t.prototype.currentLookupItem=function(n){return"keydown"===n.type?this.keyNavigator.currentLookupItem:"mousedown"===n.type?this.refs["auto-con"].mouseNavigator.currentLookupItem:null},Object.defineProperty(t.prototype,"editorText",{get:function(){var n=this.refs["l-input"];return n?n.refs.editor:null},enumerable:!1,configurable:!0}),t.prototype.closeEditor=function(){this.state.active&&this.closePopup()},t.prototype.resetEditor=function(n){var t=this.state.active;this.closePopup();t&&n.setHandled()},t.prototype.loadMoreItems=function(){this.props.loadMoreItems&&this.props.loadMoreItems()},Object.defineProperty(t.prototype,"isSearchInputActive",{get:function(){return this.mobileShowSearchInput||!this.props.parent.EndArchived||this.isSelectionForCurrentTxt||this.props.items.length>12},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerName",{get:function(){return this.props.parent.Name+"_con"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSpecialButtons",{get:function(){for(var t=!1,n=0;n<this.state.items.length&&!t;n++)(f.a.contains(this.state.items[n].Data,"$$AddRemoveButtons")||f.a.contains(this.state.items[n].Data,"$$RemoveButton"))&&(t=!0);return t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exCounter",{get:function(){var t=1,n,i,r;if(this.props.items&&this.props.items.length>0)for(n=0;n<this.props.items.length;n++){if(i=this.props.items[n],r=i.Data[1]||i.Data[0],"$$AddRemoveButtons"===r){t++;break}if(this.input&&r.toUpperCase()===this.input.value.toUpperCase()){t--;break}}return t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getLocation",{get:function(){var i,f;if(!this.containerName)return null;var n=document.getElementById(this.containerName).getBoundingClientRect(),r=this.props.isMobile?48:32,u=this.props.items?this.props.items.length*r:0,e=document.defaultView.innerHeight-n.top-n.height-4*r,o=(document.defaultView.innerHeight,n.bottom,e>0?"below":"above"),s=0,t=u<(s="below"===o?window.innerHeight-n.bottom:n.top)?u:s;return this.hasSpecialButtons&&u<e&&(t+=r*this.exCounter),i=null,f=null,"above"===o?i=n.top-t:(i=n.bottom,f=n.bottom+t),{width:n.width,height:t,top:i,bottom:f,left:n.left}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mobileHeaderHeight",{get:function(){return"DicEdit"===this.props.parent.lookupType?116:48},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mobileContentCordsStyle",{get:function(){var n=document.defaultView.innerWidth-56>400?400:document.defaultView.innerWidth-56;return{position:"absolute",top:"12%",right:(document.defaultView.innerWidth-n)/2+"px"}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSelectionForCurrentTxt",{get:function(){if(!this.selection||!this.selection.SelectionText||!this.input||""===this.input.value)return!1;var n=this.selection.SelectionText.toLowerCase().replace(/-/g,""),t=this.input.value.toLowerCase().replace(/-/g,"");return n.indexOf(t)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentValue",{get:function(){return!this.forceDTValue&&this.input&&document.activeElement===this.input&&(this.inputFlag||!this.isSelectionForCurrentTxt&&this.state.active)?this.input.value:(this.forceDTValue=!1,this.props.parent.DisplayHtml?this.props.parent.DisplayHtml:this.props.parent.EditValue)},enumerable:!1,configurable:!0}),t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.isActive=function(){return this.state.active},t.prototype.isSuggestionOutOfDate=function(n){var t=!1;return this.props.parent.EditValue&&n&&n.toLocaleLowerCase()===this.props.parent.EditValue.toLocaleLowerCase()&&n.toLocaleLowerCase()===this.props.parent.DisplayHtml.toLocaleLowerCase()&&(t=!0),t},t.prototype.setItemsToShow=function(n){return this.props.isMobile?n&&0!==n.length?f.a.filter(n,function(n){return n.Data&&"$$AddRemoveButtons"!==n.Data[0]&&"$$RemoveButton"!==n.Data[0]}):[]:n&&0!==n.length?n:[]},t.prototype.clearTimeOuts=function(){clearTimeout(this.delaySendingValue);clearTimeout(this.props.parent.delaySendingValue)},t.prototype.toggleLookup=function(n){this.props.parent.Editable&&this.props.isMobile&&this.input&&this.input.blur();this.state.active?(n.stopPropagation(),n.preventDefault(),this.setState({active:!1,items:[]})):this.props.initItems()},t.prototype.openLookup=function(n){this.clearTimeOuts();this.toggleLookup(n.event);this.input.focus()},t.prototype.setFocusInInput=function(){this.props.isMobile||this.refs["l-input"].blockNextSelection();this.input.focus()},t.prototype.closeLookup=function(n){n.target&&n.target.classList&&(n.target.classList.contains("menu-bar")||n.target.classList.contains("lookup-autocomplete"))&&(n.stopPropagation(),n.preventDefault(),this.setState({active:!1,items:[]}))},t.prototype.onFocus=function(n){this.props.tag||(this.forceDTValue=!0);this.props.onFocus&&this.props.onFocus(n)},t.prototype.onEnterNewValue=function(n,t,i){clearTimeout(this.delaySendingValue);this.props.onEnterNewValue(n,t,i);this.props.isMobile&&this.setState({active:!1,items:[]})},t.prototype.onRowClick=function(n){if(this.props.isMobile){var t=n&&n.values?n.values.value:null;t&&this.onEnterNewValue(t,"setid",new r.EipEventProps("Mouse","Right"))}},t.prototype.changeValue=function(n){this.props.onChange(n)},t.prototype.sendValueOnChange=function(n){var t=this;if(this.delaySendingValue&&clearTimeout(this.delaySendingValue),n===this.props.parent.EditValue&&""===this.props.editorSelection.SelectionText)return!1;this.delaySendingValue=setTimeout(function(){document.activeElement===t.input&&t.changeValue(n)},400)},t.prototype.closePopup=function(){this.forceDTValue=!0;this.setState({active:!1,items:[]})},t.prototype.recalculateLocation=function(){var t=document.getElementById(this.props.parent.Name+"_scroll"),i,e,o;if(this.state.active&&this.containerName&&t){var s=document.getElementById(this.containerName),n=s.getBoundingClientRect(),r=this.props.isMobile?48:32,u=this.props.items?this.props.items.length*r:0,f=document.defaultView.innerHeight-n.top-n.height-4*r,h=(document.defaultView.innerHeight,n.bottom,u>f?f:u);this.hasSpecialButtons&&u<f&&(h+=r*this.exCounter);i=n.top+n.height;(f<3*r&&this.props.items.length>3&&(i=n.top-h),window.outerHeight-(n.top+n.height+u)<2*r)&&(e=-1,o=t.getBoundingClientRect(),o&&o.height&&(e=o.height),i=e>0?n.top-e:n.top-u);i<0&&(i=n.bottom),function(n){var i=n.getBoundingClientRect(),t=document.getElementsByClassName("window")[0],r=t.getBoundingClientRect(),u=t.scrollHeight-t.getBoundingClientRect().top;return!(i.bottom<r.top||i.top-u>=0)}(s)?(t.style.display="block",t.style.top=i+"px",t.style.left=n.left+"px"):t.style.display="none"}},t.prototype.onFilterUpdate=function(n){var t=this;this.delaySendingValue&&clearTimeout(this.delaySendingValue);this.input.value=void 0===n.target.value?"":n.target.value;void 0===n.target.value||""===n.target.value?(this.selection&&this.selection.SelectionText&&(this.selection.SelectionText=""),this.props.initItems()):this.delaySendingValue=setTimeout(function(){t.changeValue(t.input.value)},400)},t}(r.EditorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,o=i(1),u=i.n(o),s=i(4),h=i.n(s),r=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},l=function(n){function t(t){var i=n.call(this,t)||this;return i.props.isMobile||(i.mouseNavigator=new r.LookupMouseNavigator(i)),i.keyNavigator=new r.LookupKeyNavigator(i),i}return c(t,n),t.prototype.componentWillReceiveProps=function(n){if(n.items&&n.items!==this.originalItems){this.originalItems=n.items;this.keyNavigator&&this.keyNavigator.resetCurrentItem();var t=this.setItemsToShow(n.items);this.setState({active:t&&t.length>0,items:t});n.items.length>12&&(this.mobileShowSearchInput=!0);this.props.isMobile||this.input.focus()}n.editorSelection&&n.editorSelection.SelectionText&&n.tag&&(this.checkSelection=!0,this.inputFlag=!1)},t.prototype.shouldComponentUpdate=function(n){return this.checkSelection?n.tag?n.tag&&this.input&&n.tag.toLocaleLowerCase()!==this.input.value.toLocaleLowerCase()?(console.log("wrong suggestion new input value. Tag:",n.tag,"input",this.input.value),!1):!n.editorSelection||!n.editorSelection.SelectionText||(this.checkSelection=!1,this.isTextEqual(n.editorSelection.SelectionText,this.input.value)):(this.checkSelection=!1,!1):!this.isSuggestionOutOfDate(n.tag)},t.prototype.blurHandler=function(n){var i=null,u=this.input.value,f,t,e,o;if(this.clearTimeOuts(),this.state.active){if(f=this.currentLookupItem(n),r.LookupBase.isRowSpecial(f)){if(f.isMoreButton)return void this.props.loadMoreItems()}else t=this.currentLookupItem(n),t?(i=t.values.action||"setid",u=t.values.value,this.input.value=t.values.editValue):i="";this.blockChange=!0}else e=this.props.parent,e.EditValue!==this.input.value&&e.DisplayHtml!==this.input.value&&(this.inputFlag=!1,this.checkSelection=!1),i="",u=this.input.value;this.closePopup();o=new r.EipEventProps("Unknown","Unknown",new r.KeyboardEventProps(n));o.setHandled(!0);this.forceDTValue=!0;this.onEnterNewValue(u,i,o)},t.prototype.changeInputValue=function(n){var t=n.domElement.className.indexOf("l-row-el")?"LookupRowElement":"LookupRowSpecial",i="LookupRowElement"===t||"LookupRowSpecial"===t?n:null;n&&(n.domElement.scrollIntoView(!1),"$$more"!==i.txt.toLowerCase()&&(this.input.value=i.txt))},t.prototype.clearTimeOuts=function(){},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.sendValueOnChange=function(t){this.checkSelection=!1;this.inputFlag=!0;n.prototype.sendValueOnChange.call(this,t);this.setState({active:!1})},Object.defineProperty(t.prototype,"ContentMobile",{get:function(){var n=this;return u.a.createElement("div",{className:"menu-bar lookup",onClick:function(t){return n.closeLookup(t)}},u.a.createElement("div",{className:"menu-content",style:this.mobileContentCordsStyle},u.a.createElement(r.LookupHeader,{title:this.props.parent.CaptionHtml,isDic:!1,addInput:this.isSearchInputActive,editorSelection:this.selection,inputValue:this.isSelectionForCurrentTxt?this.selection.SelectionText:this.currentValue,isMobile:this.props.isMobile,enteredNewValue:function(t){return n.onEnterNewValue(t,"")},onFilterUpdate:function(t){return n.onFilterUpdate(t)}}),u.a.createElement(r.LookupContent,{items:this.props.items,isMobile:this.props.isMobile,shortMode:!this.isSearchInputActive,endArchived:this.props.parent.EndArchived,onRowClick:function(t){return n.onRowClick(t)},loadMoreItems:function(){return n.props.loadMoreItems()}})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ContentBrowser",{get:function(){var t=this,n=this.getLocation,i={name:this.props.parent.Name,isFolderMenu:!1,postion:"fixed",top:n.top,bottom:n.bottom,left:n.left,width:n.width,height:n.height};return u.a.createElement(r.Scroll,e({"data-lparent":this.containerName,className:"auto-con",ref:"auto-container"},i),u.a.createElement(r.LookupContent,{ref:"auto-con",ownerName:this.props.parent.Name,parent:this,isMobile:this.props.isMobile,items:this.props.items,shortMode:!this.isSearchInputActive,endArchived:this.props.parent.EndArchived,onRowClick:function(){},loadMoreItems:function(){return t.props.loadMoreItems()}}))},enumerable:!1,configurable:!0}),t.prototype.render=function(){return this.props.parent.IsMobile?this.renderMobile():this.renderBrowser()},t.prototype.renderMobile=function(){var n=this;return this.selection=this.props.editorSelection,this.isSelectionForCurrentTxt||(this.selection.SelectionText=""),this.props.setDisableTouchEvents(this.state.active),u.a.createElement("div",{style:{width:"100%",height:"100%"}},u.a.createElement(r.EditorText,{id:this.props.parent.Name,captionHtml:this.props.parent.CaptionHtml,editable:this.props.parent.Editable,editValue:this.props.parent.DisplayHtml?this.props.parent.DisplayHtml:this.props.parent.EditValue,blockBlur:!0,location:this.props.parent.Location,classes:"editor-text lookup",type:"text",iconName:"lista",isMobile:this.props.parent.IsMobile,isClearable:!0,onClick:function(t){return n.toggleLookup(t)},onIconClick:function(t){return n.toggleLookup(t)},onEditValueChanged:function(){return null}}),this.getLookupContainer())},t.prototype.renderBrowser=function(){var n=this;return this.selection=this.props.editorSelection,this.selection&&!this.isSelectionForCurrentTxt&&(this.selection.SelectionText=""),this.props.setDisableTouchEvents(this.state.active),u.a.createElement("div",{id:this.containerName,"data-lparent":this.containerName,className:"combo",style:{width:"100%",height:"100%"}},u.a.createElement(r.EditorText,{ref:"l-input",id:this.props.parent.Name,captionHtml:this.props.parent.CaptionHtml,descriptionHtml:this.props.parent.DescriptionHtml,editable:this.props.parent.Editable,editValue:this.currentValue,blockBlur:this.state.active,location:this.props.parent.Location,classes:"editor-text",type:"text",iconName:"lista",isMobile:this.props.parent.IsMobile,isClearable:this.props.parent.IsMobile,isMultiline:this.props.parent.IsMultilineLabel,eipMode:this.props.eipMode,onIconClick:function(t){return n.toggleLookup(t)},onChange:function(t){return n.sendValueOnChange(t.target.value)},selection:this.selection,onFocus:function(t){return n.onFocus(t)}}),h.a.createPortal(this.getLookupContainer(),document.body))},t}(r.LookupBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,o=i(1),u=i.n(o),s=i(4),h=i.n(s),r=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},l=function(n){function t(t){var i=n.call(this,t)||this;return i.props.isMobile||(i.mouseNavigator=new r.DictionaryMouseNavigator(i)),i.keyNavigator=new r.LookupKeyNavigator(i),i.mobileShowSearchInput=!0,i}return c(t,n),t.prototype.componentWillReceiveProps=function(n){if(n.items&&n.items!==this.originalItems){this.originalItems=n.items;var t=this.setItemsToShow(n.items);this.blockBlur=!1;this.checkSelection=!1;this.keyNavigator&&this.keyNavigator.resetCurrentItem();this.input.focus();this.setState({active:t&&t.length>0,items:t})}n.editorSelection&&this.isNewSelection(n.editorSelection)&&n.tag&&(this.checkSelection=!0,this.inputFlag=!1,this.prevSelection=n.editorSelection)},t.prototype.shouldComponentUpdate=function(n){return this.checkSelection?n.tag&&this.input&&n.tag.toLocaleLowerCase()!==this.input.value.toLocaleLowerCase()?(console.log("wrong suggestion new input value. Tag:",n.tag,"input",this.input.value),!1):!n.editorSelection||!n.editorSelection.SelectionText||(this.checkSelection=!1,this.isTextEqual(n.editorSelection.SelectionText,this.input.value)):!this.isSuggestionOutOfDate(n.tag)},t.prototype.blurHandler=function(t){var f=null,i=this.input.value,e,u,o,s;if(this.clearTimeOuts(),this.state.active){if(e=this.currentLookupItem(t),r.LookupBase.isRowSpecial(e)){if((u=e).isMoreButton)return void this.props.loadMoreItems();f="";i=u.props.value===i?u.props.value:i}else!(u=e)||u.values.value!==i&&"keydown"===t.type?f="":(f=u.values.action||"setid",i=u.values.value);this.inputFlag=!1;this.blockBlur=!0;clearTimeout(this.delayBlur)}else o=this.props.parent,this.blockBlur=!0,(!this.state.value||o.EditValue!==this.input.value&&o.DisplayHtml!==this.input.value)&&(this.checkSelection=!1),f="",i=this.input.value;this.closePopup();s=new r.EipEventProps("Unknown","Unknown",new r.KeyboardEventProps(t));s.setHandled(!0);this.forceDTValue=!0;n.prototype.onEnterNewValue.call(this,i,f,s)},t.prototype.changeInputValue=function(n){var i=n.domElement.className.indexOf("l-row-el")?"LookupRowElement":"LookupRowSpecial",r="LookupRowElement"===i||"LookupRowSpecial"===i?n:null,t,u;n&&(n.domElement.scrollIntoView(!1),t=r.txt,u="$$More"===t||"$$AddRemoveButtons"===t||"$$RemoveButton"===t||"$$AddButton"===t?"":r.txt,"$$More"!==t&&"$$AddRemoveButtons"!==t&&"$$RemoveButton"!==t&&"$$AddButton"!==t&&(this.input.value=u))},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.changeValue=function(t){n.prototype.changeValue.call(this,t);this.allowToSendValue=!0},t.prototype.contentEnterNewValue=function(t,i){this.inputFlag=!1;this.blockBlur=!0;clearTimeout(this.delayBlur);n.prototype.onEnterNewValue.call(this,t,i,new r.EipEventProps("Mouse","Right"))},t.prototype.contentEditValueChange=function(n,t){this.blockChange?this.blockChange=!1:(this.inputFlag=!1,this.props.onEditValueChanged(n,t),this.setState({active:!1,items:[]}))},t.prototype.sendValueOnChange=function(t){this.allowToSendValue=!1;this.forceDTValue=!1;""===t&&this.state.active?(this.checkSelection=!1,this.setState({active:!1})):(this.checkSelection=!0,this.selection.SelectionText="",n.prototype.sendValueOnChange.call(this,t))},t.prototype.onEnterNewValue=function(t,i,r){this.inputFlag=!1;this.blockBlur=!0;clearTimeout(this.delayBlur);n.prototype.onEnterNewValue.call(this,t,i,r)},t.prototype.onRowClick=function(n){var t,i;this.props.isMobile&&(r.LookupBase.isRowSpecial(n)?(t=n,this.contentEnterNewValue(t.props.value,"")):(i=(t=n).values,this.contentEnterNewValue(i.value,i.action)),this.blockBlur=!0)},t.prototype.onEditValueChangedMobile=function(n){var t=n.target?n.target.value:n;t!==this.props.parent.EditValue&&t!==this.props.parent.DisplayHtml&&this.props.onEditValueChanged(n)},t.prototype.isNewSelection=function(n){return!this.prevSelection||this.prevSelection.SelectionText!==n.SelectionText||this.prevSelection.SelectionStart!==n.SelectionStart||this.prevSelection.SelectionLength!==n.SelectionLength},Object.defineProperty(t.prototype,"selectedInputText",{get:function(){return this.selection.SelectionText.substring(this.selection.SelectionStart,this.selection.SelectionStart+this.selection.SelectionLength)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSelectionForCurrentTxt",{get:function(){if(!this.input||!this.selection||!this.selection.SelectionText)return!1;var n=this.selection.SelectionText.toLowerCase().replace(/-/g,""),t=this.input.value.toLowerCase().replace(/-/g,"");return n.indexOf(t)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ContentMobile",{get:function(){var n=this;return u.a.createElement("div",{className:"menu-bar lookup",onClick:function(t){return n.closeLookup(t)}},u.a.createElement("div",{className:"menu-content",style:this.mobileContentCordsStyle},u.a.createElement(r.LookupHeader,{title:this.props.parent.CaptionHtml,isDic:!0,addInput:!0,editorSelection:this.selection,inputValue:this.isSelectionForCurrentTxt?this.selection.SelectionText:this.currentValue,isMobile:this.props.isMobile,enteredNewValue:function(t){return n.onEnterNewValue(t,"")},onFilterUpdate:function(t){return n.onFilterUpdate(t)}}),u.a.createElement(r.DictionaryContent,{key:"dic-content",isMobile:this.props.isMobile,currentValue:this.isSelectionForCurrentTxt?this.selection.SelectionText:this.currentValue,items:this.props.items,endArchived:this.props.parent.EndArchived,loadMoreItems:function(){return n.props.loadMoreItems()},onRowClick:function(t){return n.onRowClick(t)}})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ContentBrowser",{get:function(){var t=this,i=this.currentValue,n,f;return this.isSelectionForCurrentTxt&&(i=this.selection.SelectionText.replace(this.selectedInputText,"")),n=this.getLocation,f={name:this.props.parent.Name,isFolderMenu:!1,postion:"fixed",top:n.top,bottom:n.bottom,left:n.left,width:n.width,height:n.height},u.a.createElement(r.Scroll,e({"data-lparent":this.containerName,className:"auto-con",ref:"auto-container"},f),u.a.createElement(r.DictionaryContent,{ref:"auto-con",ownerName:this.props.parent.Name,parent:this,isMobile:this.props.isMobile,currentValue:i,items:this.props.items,endArchived:this.props.parent.EndArchived,loadMoreItems:function(){return t.props.loadMoreItems()},onRowClick:function(n){return t.onRowClick(n)}}))},enumerable:!1,configurable:!0}),t.prototype.render=function(){return this.props.parent.IsMobile?this.renderMobile():this.renderBrowser()},t.prototype.renderMobile=function(){var n=this;return this.selection=this.props.editorSelection,!this.isSelectionForCurrentTxt&&this.selection&&(this.selection.SelectionText=""),this.props.setDisableTouchEvents(this.state.active),u.a.createElement("div",{style:{width:"100%",height:"100%"}},u.a.createElement(r.EditorText,{id:this.props.parent.Name,captionHtml:this.props.parent.CaptionHtml,editable:this.props.parent.Editable,editValue:this.props.parent.DisplayHtml?this.props.parent.DisplayHtml:this.props.parent.EditValue,blockBlur:!1,location:this.props.parent.Location,classes:"editor-text lookup",type:"text",iconName:"lista",isMobile:this.props.parent.IsMobile,isClearable:!0,onIconClick:function(t){return n.toggleLookup(t)},onEditValueChanged:function(t){return n.onEditValueChangedMobile(t)}}),this.getLookupContainer())},t.prototype.renderBrowser=function(){var n=this;return this.selection=this.props.editorSelection,this.selection&&!this.isSelectionForCurrentTxt&&(this.selection.SelectionText=""),this.props.setDisableTouchEvents(this.state.active),u.a.createElement("div",{"data-lparent":this.containerName,id:this.containerName,className:"dic",style:{width:"100%",height:"100%"}},u.a.createElement(r.EditorText,{ref:"l-input",id:this.props.parent.Name,captionHtml:this.props.parent.CaptionHtml,descriptionHtml:this.props.parent.DescriptionHtml,editable:this.props.parent.Editable,editValue:this.currentValue,blockBlur:!1,location:this.props.parent.Location,classes:"editor-text",type:"text",iconName:"lista",isMobile:this.props.parent.IsMobile,isClearable:this.props.parent.IsMobile,isMultiline:this.props.parent.IsMultilineLabel,eipMode:this.props.eipMode,onIconClick:function(t){return n.toggleLookup(t)},onChange:function(t){return n.sendValueOnChange(t.target.value)},selection:this.selection,onFocus:function(t){return n.onFocus(t)}}),h.a.createPortal(this.getLookupContainer(),document.body))},t}(r.LookupBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,o=i(1),u=i.n(o),s=i(4),h=i.n(s),r=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},l=function(n){function t(t){var i=n.call(this,t)||this;return i.props.isMobile||(i.mouseNavigator=new r.LookupMouseNavigator(i)),i.keyNavigator=new r.LookupKeyNavigator(i),i}return c(t,n),t.prototype.componentWillReceiveProps=function(n){if(n.items&&n.items!==this.originalItems){this.originalItems=n.items;this.checkSelection=!1;this.keyNavigator&&this.keyNavigator.resetCurrentItem();var t=this.setItemsToShow(n.items);this.setState({active:t&&t.length>0,items:t});n.items.length>12&&(this.mobileShowSearchInput=!0);this.props.isMobile||this.input.focus()}n.editorSelection&&n.editorSelection.SelectionText&&n.tag&&(this.checkSelection=!0,this.inputFlag=!1)},t.prototype.shouldComponentUpdate=function(n){return this.checkSelection?n.tag&&this.input&&n.tag.toLocaleLowerCase()!==this.input.value.toLocaleLowerCase()?(console.log("wrong suggestion new input value. Tag:",n.tag,"input",this.input.value),!1):!n.editorSelection||!n.editorSelection.SelectionText||(this.checkSelection=!1,this.isTextEqual(n.editorSelection.SelectionText,this.input.value)):!this.isSuggestionOutOfDate(n.tag)},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.blurHandler=function(n){var t=null,i=this.input.value,f,u,e,o;if(this.clearTimeOuts(),this.state.active)if(f=this.currentLookupItem(n),r.LookupBase.isRowSpecial(f)){if(f.isMoreButton)return void this.props.loadMoreItems()}else u=f,u?(t=u.values.action||"setid",i=u.values.value,this.input.value=u.values.editValue):t="";else e=this.props.parent,!this.state.value&&i?(this.checkSelection=!1,this.inputFlag=!1,t=""):e.EditValue!==i&&e.DisplayHtml!==i?t="":this.props.sendAccept&&(""===this.input.value&&(this.selection.SelectionText=""),t="accept",i=void 0);this.closePopup();o=new r.EipEventProps("Unknown","Unknown",new r.KeyboardEventProps(n));o.setHandled(!0);this.forceDTValue=!0;this.onEnterNewValue(i,t,o)},Object.defineProperty(t.prototype,"ContentMobile",{get:function(){var n=this;return u.a.createElement("div",{className:"menu-bar lookup",onClick:function(t){return n.closeLookup(t)}},u.a.createElement("div",{className:"menu-content",style:this.mobileContentCordsStyle},u.a.createElement(r.LookupHeader,{title:this.props.parent.CaptionHtml,isDic:!1,addInput:this.isSearchInputActive,editorSelection:this.selection,inputValue:this.isSelectionForCurrentTxt?this.selection.SelectionText:this.currentValue,isMobile:this.props.isMobile,enteredNewValue:function(t){return n.onEnterNewValue(t,"")},onFilterUpdate:function(t){return n.onFilterUpdate(t)}}),u.a.createElement(r.LookupContent,{items:this.props.items,isMobile:this.props.isMobile,shortMode:!this.isSearchInputActive,endArchived:this.props.parent.EndArchived,onRowClick:function(t){return n.onRowClick(t)},loadMoreItems:function(){return n.props.loadMoreItems()}})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ContentBrowser",{get:function(){var t=this,n=this.getLocation,i={name:this.props.parent.Name,isFolderMenu:!1,postion:"fixed",top:n.top,bottom:n.bottom,left:n.left,width:n.width,height:n.height};return u.a.createElement(r.Scroll,e({"data-lparent":this.containerName,className:"auto-con",ref:"auto-container"},i),u.a.createElement(r.LookupContent,{ref:"auto-con",ownerName:this.props.parent.Name,parent:this,isMobile:this.props.isMobile,items:this.props.items,shortMode:!this.isSearchInputActive,endArchived:this.props.parent.EndArchived,onRowClick:function(){return function(){}},loadMoreItems:function(){return t.props.loadMoreItems()}}))},enumerable:!1,configurable:!0}),t.prototype.changeInputValue=function(n){var u=n.domElement.className.indexOf("l-row-el")?"LookupRowElement":"LookupRowSpecial",f="LookupRowElement"===u||"LookupRowSpecial"===u?n:null,t,i;n&&(t=n.domElement,i=document.getElementsByClassName("lookup-content"),t&&i&&i[0]&&parseInt(t.id)&&(Object(r.isEdge)()?setTimeout(function(){n.domElement.scrollIntoView(!1)},100):n.domElement.scrollIntoView(!1)),"$$more"!==f.txt.toLowerCase()&&(this.input.value=f.txt))},t.prototype.sendValueOnChange=function(t){this.props.parent.EditValue!==t&&this.props.parent.DisplayHtml!==t?n.prototype.sendValueOnChange.call(this,t):(clearTimeout(this.delaySendingValue),clearTimeout(this.props.parent.delaySendingValue));this.checkSelection=!1;this.inputFlag=!0;this.props.editorSelection.SelectionText="";this.selection.SelectionText="";this.setState({active:!1})},t.prototype.render=function(){return this.props.parent.IsMobile?this.renderMobile():this.renderBrowser()},t.prototype.renderMobile=function(){var n=this;return this.selection=this.props.editorSelection,this.isSelectionForCurrentTxt||(this.selection.SelectionText=""),this.props.setDisableTouchEvents(this.state.active),u.a.createElement("div",{style:{width:"100%",height:"100%"}},u.a.createElement(r.EditorText,{id:this.props.parent.Name,captionHtml:this.props.parent.CaptionHtml,editable:this.props.parent.Editable,editValue:this.props.parent.DisplayHtml?this.props.parent.DisplayHtml:this.props.parent.EditValue,blockBlur:!0,location:this.props.parent.Location,classes:"editor-text lookup",type:"text",iconName:"lista",isMobile:this.props.parent.IsMobile,isClearable:!0,onClick:function(t){return n.toggleLookup(t)},onIconClick:function(t){return n.toggleLookup(t)},onEditValueChanged:function(){return null}}),this.getLookupContainer())},t.prototype.renderBrowser=function(){var n=this;return this.selection=this.props.editorSelection,this.selection&&!this.isSelectionForCurrentTxt&&(this.selection.SelectionText=""),this.props.setDisableTouchEvents(this.state.active),u.a.createElement("div",{id:this.containerName,"data-lparent":this.containerName,className:"lookup",style:{width:"100%",height:"100%"}},u.a.createElement(r.EditorText,{ref:"l-input",id:this.props.parent.Name,captionHtml:this.props.parent.CaptionHtml,descriptionHtml:this.props.parent.DescriptionHtml,editable:this.props.parent.Editable,editValue:this.currentValue,blockBlur:this.state.active,location:this.props.parent.Location,classes:"editor-text",type:"text",iconName:"lista",isMobile:this.props.parent.IsMobile,isClearable:this.props.parent.IsMobile,isMultiline:this.props.parent.IsMultilineLabel,eipMode:this.props.eipMode,onIconClick:function(t){return n.toggleLookup(t)},onChange:function(t){return n.sendValueOnChange(t.target.value)},selection:this.selection,onFocus:function(t){return n.onFocus(t)}}),h.a.createPortal(this.getLookupContainer(),document.body))},t}(r.LookupBase)},function(){},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,e=i(1),u=i.n(e),o=i(3),s=i.n(o),r=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.loadMoreTitle=r.LanguageConstants.RESOURCES.Str_More?r.LanguageConstants.RESOURCES.Str_More:"Więcej...",i.props.isMobile||(i.mouseNavigator=new r.LookupMouseNavigator(i)),i}return h(t,n),t.prototype.componentDidMount=function(){this.mouseNavigator&&this.mouseNavigator.onComponentDidMount()},t.prototype.componentWillUnmount=function(){this.mouseNavigator&&this.mouseNavigator.onComponentWillUnmount()},t.prototype.mouseDownListener=function(n){this.mouseNavigator&&this.mouseNavigator.mouseDownListener(n)},t.prototype.triggerLoadMore=function(){this.props.loadMoreItems&&this.props.loadMoreItems()},t.prototype.prepareClasses=function(){this.classes={};this.classes["lookup-content"]=!0;this.classes["lookup-cn-short"]=this.props.shortMode},t.prototype.prepareSingleItem=function(n,t){var i=this;return u.a.createElement(r.LookupRowElement,{ref:"l-row"+t,key:"it-"+t,refName:"l-row"+t,rowElement:n,onClick:function(n){return i.props.onRowClick(n)}})},t.prototype.getItems=function(){var n=this;return this.props.items.map(function(t,i){return n.prepareSingleItem(t,i)},this)},t.prototype.prepareLoadMoreItem=function(){var n=this;return this.props.endArchived?null:u.a.createElement(r.LookupRowSpecial,{ref:"l-row-loadmore",refName:"l-row-loadmore",keyName:"loadMoreRow",moreBtn:!0,value:this.loadMoreTitle,onClick:function(){return n.props.isMobile?n.props.loadMoreItems():null}})},t.prototype.render=function(){return this.prepareClasses(),u.a.createElement("div",{"data-lparent":this.props.ownerName?this.props.ownerName:null,className:s()(this.classes)},this.getItems(),this.prepareLoadMoreItem())},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),r=i.n(e),f=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.state={value:""},i}return o(t,n),t.prototype.onClick=function(n){n.stopPropagation();n.preventDefault()},t.prototype.getTitle=function(){var t=this,n=f.LanguageConstants.RESOURCES.CurrentCulture,i=this.props.title.trim()?this.props.title:n&&"pl-PL"===n?"Wybierz wartość":"Select value";return r.a.createElement("div",{className:"lookup-header-title"},r.a.createElement("div",{className:"lookup-header-text"},i),r.a.createElement("div",{className:"lookup-header-clear",onClick:function(n){return t.resetValue(n)}},r.a.createElement("svg",{viewBox:"0 0 160 160"},r.a.createElement("path",{d:"M 154.90625 -0.0625 A 5.0005 5.0005 0 0 0 151.46875 1.46875 L 125.8125 27.125 C 113.52338 16.46283 97.506717 10 80 10 C 41.399292 10 10 41.399292 10 80 C 10 97.506717 16.46283 113.52338 27.125 125.8125 L 1.46875 151.46875 A 5.0005 5.0005 0 1 0 8.53125 158.53125 L 34.1875 132.875 C 46.476617 143.53717 62.49328 150 80 150 C 118.6007 150 150 118.6007 150 80 C 150 62.49328 143.53717 46.476617 132.875 34.1875 L 158.53125 8.53125 A 5.0005 5.0005 0 0 0 154.90625 -0.0625 z M 80 20 C 94.794327 20 108.30398 25.349279 118.75 34.1875 L 34.1875 118.75 C 25.349279 108.30398 20 94.794327 20 80 C 20 46.803693 46.803693 20 80 20 z M 125.8125 41.25 C 134.65072 51.696016 140 65.205675 140 80 C 140 113.19631 113.19631 140 80 140 C 65.205675 140 51.696016 134.65072 41.25 125.8125 L 125.8125 41.25 z "}))))},t.prototype.clearInputValue=function(n){n.stopPropagation();n.preventDefault();this.setState({value:""});this.props.onFilterUpdate(n)},t.prototype.resetValue=function(n){n.stopPropagation();n.preventDefault();this.props.enteredNewValue("")},t.prototype.updateFilterValue=function(n){this.ignoreSelection=!0;this.setState({value:n.target.value});this.props.onFilterUpdate(n)},t.prototype.getSearchSection=function(){var n=this;return this.props.addInput?r.a.createElement("div",{className:"loookup-editor-text"},r.a.createElement(f.EditorText,{key:"dictionaryEditor",ref:"input",id:"lookupHeaderinput",classes:"editor-text lookup",captionHtml:null,blockBlur:!0,editable:!0,iconName:"anuluj",isMobile:this.props.isMobile,onIconClick:function(t){return n.clearInputValue(t)},editValue:this.state.value,onEditValueChanged:function(){return function(){}},onChange:function(t){return n.updateFilterValue(t)}})):null},t.prototype.render=function(){return r.a.createElement("div",{className:"lookup-header"},this.getTitle(),this.getSearchSection())},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"b",function(){return a});i.d(t,"a",function(){return v});var f,h=i(1),r=i.n(h),c=i(4),e=i.n(c),l=i(3),o=i.n(l),u=i(0),s=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){return n.call(this,t)||this}return s(t,n),t.prototype.componentDidMount=function(){this.domElement=e.a.findDOMNode(this)},t.prototype.focus=function(){this.domElement&&this.domElement.classList.add("hover")},t.prototype.blur=function(){this.domElement&&this.domElement.classList.remove("hover")},t.prototype.onClick=function(n){n.stopPropagation();n.preventDefault();this.props.onClick(this)},Object.defineProperty(t.prototype,"isMoreButton",{get:function(){return this.props.moreBtn},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.keyName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return o()({"lookup-item":!0,"l-row-s":!0})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"txt",{get:function(){return this.isMoreButton?"$$More":this.props.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.props.value},enumerable:!1,configurable:!0}),t.prototype.createContent=function(){var n=this;return r.a.createElement("div",{key:this.props.keyName,className:this.isMoreButton?"l-loadmore":null,"data-ref":this.props.refName,onClick:function(t){return n.onClick(t)}},this.props.value)},t.prototype.render=function(){return r.a.createElement(u.ClickableElement,{parent:this})},t}(r.a.Component),v=function(n){function t(t){var i=n.call(this,t)||this;return i.addTxt=u.LanguageConstants.RESOURCES.Str_Add?u.LanguageConstants.RESOURCES.Str_Add:"Dodaj",i.removeTxt=u.LanguageConstants.RESOURCES.Str_Remove?u.LanguageConstants.RESOURCES.Str_Remove:"Usuń",i}return s(t,n),t.prototype.componentDidMount=function(){this.domElement=e.a.findDOMNode(this)},t.prototype.focus=function(){this.domElement&&this.domElement.classList.add("hover")},t.prototype.blur=function(){this.domElement&&this.domElement.classList.remove("hover")},t.prototype.returnID=function(){return this.props.rowElement.Data[0]},t.prototype.onClick=function(n){n.stopPropagation();n.preventDefault();this.props.onClick(this)},Object.defineProperty(t.prototype,"id",{get:function(){return this.returnID()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){var n,i,u,f,t=this.props.rowElement.Data[0],e=!0,r;return("$$AddRemoveButtons"===t?n="add"===this.props.rowElement.Settings.RowSettings.ButtonType?"addtext":"removetext":"$$AddButton"===t?n="addtext":"$$RemoveButton"===t?n="removetext":(i=t,e=!1),e)&&(r=this.props.rowElement.Element.Name,r&&(i=document.getElementById(r).value)),this.props.rowElement.Data&&(u=this.props.rowElement.Data[2]||"",f=this.props.rowElement.Data[1]||""),{action:n,value:i,editValue:u,displayValue:f}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"txt",{get:function(){return this.props.rowElement.Data[this.props.rowElement.Data.length-1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.props.rowElement.Data[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return o()({"lookup-item":!0,"l-row-el":!0})},enumerable:!1,configurable:!0}),t.prototype.createContent=function(){var u=this,n=this.props.rowElement,f=n.ID?n.ID:n.Data[0],t=n.Data[1]?n.Data[1]:n.Data[0],i;return"$$AddRemoveButtons"===t&&(i=n.Settings.RowSettings.ButtonType,t=i&&"add"===i?this.addTxt:this.removeTxt),"$$RemoveButton"===t&&(t=this.removeTxt),r.a.createElement("div",{key:f,"data-ref":this.props.refName,onClick:function(n){return u.onClick(n)}},t)},t.prototype.render=function(){return r.a.createElement(u.ClickableElement,{parent:this})},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return f});var r=i(2),u=i(0),f=function(){function n(){}return n.createFormNavigationMenu=function(n){var f=u.LanguageConstants.RESOURCES.Str_General,t=function(n){var t="/";return n.CaptionHtml&&(n.CaptionHtml.indexOf("/")>=0?t="/":n.CaptionHtml.indexOf("\\")>=0&&(t="\\")),t},i=function(t){var i=r.a.find(n,function(n){return"Page"===n.ElementType&&0===n.CaptionHtml.indexOf(t)&&n.GroupIcon});return i&&i.GroupIcon?i.GroupIcon:"zakladki"};return n.filter(function(n){return"Page"===n.ElementType&&n.IsVisible}).map(function(n){var i,r,e=new u.NavigationMenuItem(n);return e.CaptionHtml=(r=t(i=n),i.CaptionHtml&&i.CaptionHtml.indexOf(r)>=0?i.CaptionHtml.split(r)[1]:i.CaptionHtml),e.Group=function(n){var i=t(n);return n.CaptionHtml&&n.CaptionHtml.indexOf(i)>=0?n.CaptionHtml.split(i)[0]:f}(n),e}).reduce(function(n,t){var f=r.a.find(n,function(n){return n.CaptionHtml===t.Group});return f?(f.Icon||(f.Icon=t.Icon?t.Icon:i(t.Group)),f.children.push(t)):((f=new u.NavigationMenuItem).children=[t],f.CaptionHtml=t.Group,f.Icon=t.Icon?t.Icon:i(t.Group),n.push(f)),n},[])},n.createMainCompanyGroup=function(n){var i=r.a.filter(n,function(n){return"Include"!==n.ElementType&&"Important"!==n.Class}),t=new u.NavigationMenuItem;return t.CaptionHtml=u.StorageHelper.GetDBName(),t.Icon="menu",t.children=r.a.map(i,function(n){return new u.NavigationMenuItem(n)}),t},n.createFolderNavigationMenu=function(n,t){var s,o=[],f,i,h,e;if(s=r.a.filter(t,function(n){return"Important"===n.Class&&n.IsVisible}),r.a.each(s,function(n){return o.push(new u.NavigationMenuItem(n))}),n&&"Folder"!==n){for(f=void 0,i=n.split("/"),i[0]&&"Folder"===i[0]&&i.shift(),h=function(n){var u=r.a.find(t,function(t){return t.TagInfo===function(n){for(var r="",t=0;t<=n;t++)r+=0===t?i[t]:"/"+i[t];return r}(n)&&"Group"===t.ElementType});u&&(f=u)},e=0;e<i.length;e++)h(e);f&&r.a.each(f.Elements,function(n){("Page"===n.ElementType||n.CaptionHtml&&"Command"===n.ElementType)&&n.IsVisible&&o.push(new u.NavigationMenuItem(n))})}return o},n.createPopupMenu=function(n){var t=[];return r.a.each(n,function(n){var i=new u.NavigationMenuItem(n);"Page"===i.Type&&0===i.children.length||t.push(i)}),t},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var r,f=i(1),u=i.n(f),e=i(4),o=i.n(e),s=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return s(t,n),t.prototype.componentDidMount=function(){this.domElement=o.a.findDOMNode(this)},t.prototype.focus=function(){this.domElement&&this.domElement.classList.add("hover")},t.prototype.blur=function(){this.domElement&&this.domElement.classList.remove("hover")},t.prototype.onClick=function(n){this.props.onClick&&this.props.onClick(n)},t.prototype.render=function(){var n=this;return u.a.createElement("div",{className:this.props.containerClass,id:this.props.id,onMouseOver:function(){n.props.onMouseOver&&n.props.onMouseOver()}},u.a.createElement("div",{className:this.props.contentClass,onClick:function(t){return n.props.onClick(t)}},this.props.children))},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var e,s=i(1),r=i.n(s),f=i(2),u=i(0),h=(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},c=function(n){function t(t){var i=n.call(this,t)||this,r;return i.addGroupArrows=!1,i.addChildrenArrows=!1,i.preventClosingPopup=!1,i.listItemHeight=u.GlobalSettings.Instance.IsStandardProduct?40:32,i.childrenListStartIndex=0,i.menuNavigator=new u.NavigationMenuKeyNavigator(i),i.clickHandler=i.resetNavMenu.bind(i),i.cursorActive=!1,i.searchCaption=u.LanguageConstants.RESOURCES.Str_SearchText?u.LanguageConstants.RESOURCES.Str_SearchText:"szukaj...",r=i.props.selectedPage?i.props.selectedPage.CaptionHtml:"Form"===t.type&&t.groups.length>0?t.groups[0].CaptionHtml:null,i.state={active:i.props.isPopup,activeGroup:r,filterValue:"",groupsPageNo:1,childrenPageNo:1,windowAddress:"Folder"},i}return h(t,n),t.prototype.componentDidMount=function(){this.props.isPopup&&this.setState({active:!0,activeGroup:this.props.groups[0].CaptionHtml,filterValue:"",windowAddress:"Folder"},this.markGroup);this.menuNavigator.onComponentDidMount();this.props.isPopup&&this.menuNavigator.focusCurrentItem()},t.prototype.componentWillUnmount=function(){document.removeEventListener("click",this.clickHandler,!1);this.menuNavigator.onComponentWillUnmount()},t.prototype.componentWillReceiveProps=function(n){if("Form"===n.type&&n.groups.length>0){var t=n.selectedPage?n.selectedPage.CaptionHtml:n.groups[0].CaptionHtml;this.setState({activeGroup:t})}},t.prototype.componentDidUpdate=function(){document.removeEventListener("click",this.clickHandler,!1);this.isActive&&document.addEventListener("click",this.clickHandler,!1);this.shouldRenderItems&&(this.menuNavigator.initItems(),this.searchInputFocus||this.menuNavigator.moveToNavMenu())},t.prototype.keyDownListener=function(n){this.menuNavigator.keyDownListener(n)},Object.defineProperty(t.prototype,"classNames",{get:function(){return this.props.isPopup?"popup-nav-menu":"Folder"===this.props.type?"nav-bar":"nav-bar form"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return this.state.active&&!!this.state.activeGroup},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldRenderItems",{get:function(){return"Folder"===this.props.type?this.isActive:!!this.props.groups},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeAddress",{get:function(){return this.goToAddress?this.goToAddress:u.WindowManager.Instance.ActiveWindow.Address},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dbName",{get:function(){return u.StorageHelper.GetDBName()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getContainerHeight",{get:function(){var n;if(this.props.isPopup){var t=this.props.groups.length,i=Math.max.apply(Math,this.props.groups.map(function(n){return n.children.length}))+1,r=40*(t>=i?t:i)+40;return this.props.maxHeight&&this.props.maxHeight<r?this.props.maxHeight:r}return n=document.getElementById("container"),n?n.getBoundingClientRect().height:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemsSource",{get:function(){return"Form"!==this.props.type&&this.state.activeGroupItem?this.state.activeGroupItem.children:this.props.groups},enumerable:!1,configurable:!0}),t.prototype.changeNavigationAddress=function(){var n=u.WindowManager.Instance.ActiveWindow;this.goToAddress="";n&&this.setState({windowAddress:u.WindowManager.Instance.ActiveWindow.Address})},t.prototype.shouldCloseMenu=function(n){if(!n)return!1;var t=n.classList;return!(f.a.contains(t,"popup-nav-menu")||f.a.contains(t,"nav-menu-main")||f.a.contains(t,"nav-menu-con")||f.a.contains(t,"nav-item")||f.a.contains(t,"nav-menu-gr")||f.a.contains(t,"nav-bar-search"))&&(!!(f.a.contains(t,"nav-bar-overlay")||f.a.contains(t,"popup-window-overlay")||f.a.contains(t,"hb")||f.a.contains(t,"window")||f.a.contains(t,"container"))||this.shouldCloseMenu(n.parentElement))},t.prototype.resetNavMenu=function(n){n.stopPropagation();n.preventDefault();n.target&&this.shouldCloseMenu(n.target)&&this.closeMenu(n)},t.prototype.removeHoverOnItems=function(){var t=document.getElementsByClassName("nav-item"),n=f.a.find(t,function(n){return n&&n.classList&&n.classList.contains("hover")});n&&n.classList.remove("hover")},t.prototype.closeMenu=function(n){this.removeHoverOnItems();this.props.isPopup?(n.stopPropagation(),n.preventDefault(),this.preventClosingPopup?this.preventClosingPopup=!1:this.props.onCloseMenu?this.props.onCloseMenu(n):this.props.groups[0].dataElement.Window.postEsc()):this.collapseMenu()},t.prototype.collapseMenu=function(){if(this.menuDocked=!1,this.state.active){var n="";"Form"===this.props.type&&(n=this.props.selectedPage?this.props.selectedPage.CaptionHtml:this.props.groups[0].CaptionHtml);this.setState({active:!1,activeGroup:n,activeGroupItem:null})}},t.prototype.changeActiveElement=function(n,t){var i=this.refs.seachinput;i&&(i.value="");this.setState({active:!0,activeGroup:n,activeGroupItem:t||this.state.activeGroupItem,childrenPageNo:1,filterValue:""})},t.prototype.isProfileInfoElement=function(n){return n.classList.contains("profile-group")||n.classList.contains("profile-image")||n.classList.contains("image-content")||n.classList.contains("avatar-ico")},t.prototype.onMouseOver=function(n){var t=this;this.cursorActive=!0;this.delayStateChange&&clearTimeout(this.delayStateChange);this.state.active&&this.state.activeGroup===n.CaptionHtml||(this.delayStateChange=setTimeout(function(){t.cursorActive&&!t.menuDocked?t.changeActiveElement(n.CaptionHtml):clearTimeout(t.delayStateChange)},500))},t.prototype.isMainMenuElement=function(n){return!(!n||!n.classList||n.classList.contains("container"))&&(!!(n&&n.classList&&n.classList.contains("nav-menu-main"))||this.isMainMenuElement(n.parentElement))},t.prototype.onMouseOverMenuMain=function(n){var r=n&&n.target?n.target:null,t,i;((this.isMainMenuElement(r)||this.isProfileInfoElement(r))&&this.props.groups.length>0&&this.onMouseOver(this.props.selectedPage?this.props.selectedPage:this.props.groups[0]),this.menuNavigator.IsGroupSide||(this.menuNavigator.navigateMoveToGroupSide(),this.sideChanged=!0),n.target&&n.target.classList)&&(t=n.target,((t.classList.contains("text")||t.classList.contains("arrow"))&&(t=t.parentElement),t.classList.contains("nav-menu-gr"))?(i=parseInt(t.getAttribute("data-number")),(this.sideChanged||i!==this.menuNavigator.CurrentItemIdx)&&(this.menuNavigator.navigateToSelectedIndex(i),this.sideChanged=!1)):t.classList.contains("nav-arrows")&&(t.classList.contains("up")?this.menuNavigator.navigateFirst():t.classList.contains("down")&&this.menuNavigator.navigateLast()))},t.prototype.onMouseOverChildren=function(n){var t,r,i;(this.menuNavigator.IsGroupSide&&(this.menuNavigator.navigateMoveToChildrenSide(),this.sideChanged=!0),n.target&&n.target.classList)&&(t=n.target,r=this.addChildrenArrows&&!u.GlobalSettings.Instance.IsStandardProduct?1:0,((t.classList.contains("nav-item-cap")||t.classList.contains("arrow"))&&(t=t.parentElement),t.classList.contains("nav-item"))?(i=parseInt(t.getAttribute("data-number"))-this.childrenListStartIndex+r,(this.sideChanged||i!==this.menuNavigator.CurrentItemIdx)&&(this.menuNavigator.navigateToSelectedIndex(i),this.sideChanged=!1)):t.classList.contains("nav-arrows")&&(t.classList.contains("up")&&this.menuNavigator.navigateFirst(),t.classList.contains("down")&&this.menuNavigator.navigateLast()))},t.prototype.onMouseLeave=function(){this.cursorActive=!1;clearTimeout(this.delayStateChange)},t.prototype.onGroupClick=function(n){this.markGroup(n.CaptionHtml);this.changeActiveElement(n.CaptionHtml)},t.prototype.onModuleClick=function(n){if(n.dataElement){n.dataElement.Elements&&0!==n.dataElement.Elements.length||n.dataElement.postClick("");var t,i="";"Group"===n.dataElement.ElementType?(i=n.children[0].CaptionHtml,t=n):(i=n.CaptionHtml,t=this.findParentItemByTagInfo(n.TagInfo));this.goToAddress="Folder/"+n.dataElement.TagInfo;this.setState({activeGroup:i,activeGroupItem:t,filterValue:"",windowAddress:"Folder/"+n.dataElement.TagInfo},this.markGroup)}},t.prototype.onNavItemClick=function(n){this.menuDocked=!1;n.dataElement.postClick();this.setState({active:!1,activeGroup:"Form"===this.props.type?this.state.activeGroup:"",activeGroupItem:null});this.props.onNavItemClickCallback&&this.props.onNavItemClickCallback(n)},Object.defineProperty(t.prototype,"isActiveGroupArrowUp",{get:function(){return this.isActive&&this.state.groupsPageNo>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActiveGroupArrowDown",{get:function(){return this.isActive&&this.noOfGroupsPages>1&&this.state.groupsPageNo<this.noOfGroupsPages},enumerable:!1,configurable:!0}),t.prototype.onGroupArrowUpClick=function(){this.isActiveGroupArrowUp&&this.setState({groupsPageNo:this.state.groupsPageNo-1})},t.prototype.onGroupArrowDownClick=function(){this.isActiveGroupArrowDown&&this.setState({groupsPageNo:this.state.groupsPageNo+1})},t.prototype.onGroupArrowMouseOver=function(){var n=this;this.cursorActive=!0;this.delayStateChange&&clearTimeout(this.delayStateChange);this.state.active||(this.delayStateChange=setTimeout(function(){n.cursorActive&&!n.menuDocked?n.changeActiveElement(n.props.groups[0].CaptionHtml):clearTimeout(n.delayStateChange)},300))},Object.defineProperty(t.prototype,"isActiveChildrenArrowUp",{get:function(){return this.state.childrenPageNo>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActiveChildrenArrowDown",{get:function(){return this.noOfChildrenPages>1&&this.state.childrenPageNo<this.noOfChildrenPages},enumerable:!1,configurable:!0}),t.prototype.onArrowUpClick=function(n){this.preventClosingPopup=!0;this.isActiveChildrenArrowUp&&(n.stopPropagation(),n.preventDefault(),this.setState({childrenPageNo:this.state.childrenPageNo-1}))},t.prototype.onArrowDownClick=function(n){this.preventClosingPopup=!0;this.isActiveChildrenArrowDown&&(n.stopPropagation(),n.preventDefault(),this.setState({childrenPageNo:this.state.childrenPageNo+1}))},t.prototype.onSearchInputClick=function(n){n.stopPropagation();n.preventDefault();this.searchInputFocus=!0;this.markGroup(this.props.groups[0].CaptionHtml)},t.prototype.onSearchInputKeydown=function(n){if(n){var t=40===n.keyCode,i=38===n.keyCode;(t||i)&&(this.searchInputFocus=!1,this.menuNavigator.moveToNavMenu(),t&&this.menuNavigator.navigateMoveRight(null),i&&this.menuNavigator.navigateLast(null))}},t.prototype.onSeachInputChange=function(){var n=this,t=this.refs.seachinput;this.delayStateChange&&clearTimeout(this.delayStateChange);this.delayStateChange=setTimeout(function(){n.setState({filterValue:t.value})},200)},t.prototype.markFirstGroup=function(){this.dbName&&this.markGroup(this.dbName)},t.prototype.markGroup=function(n){var i,t,r;if(!n&&!this.state.activeGroup)return!1;for(n||(n=this.state.activeGroup),this.menuDocked=!0,i=document.getElementsByClassName("nav-menu-gr"),t=0;t<i.length;t++)i[t].classList.remove("marked");r=document.getElementById(n);r?r.classList.add("marked"):console.log("can not mark group",n)},t.prototype.findParentItemByTagInfo=function(n){var t,i=function(r){for(var u,f=0;f<r.children.length&&!t;f++)if(u=r.children[f],u.dataElement&&u.dataElement.TagInfo){if(u.dataElement&&u.dataElement.TagInfo===n){t=r;break}u.children.length>0&&i(u)}};return i(this.props.groups[0]),t},t.prototype.findFilteredItems=function(){var n=[],t=this.dbName,r=this.state.filterValue.toLowerCase(),i=function(u){for(var f,e=0;e<u.length;e++)u[e].CaptionHtml!==t&&(f=u[e],f.dataElement&&f.dataElement.CaptionHtml.toLowerCase().indexOf(r)>=0&&n.push(f),f.children.length>0&&i(f.children))};return i(this.props.groups[0].CaptionHtml===t?this.props.groups[0].children:this.props.groups),n},t.prototype.createIcon=function(n,t){var i=this.props.isPopup?t+"-pop":t;return n?r.a.createElement(u.SvgIcon,{key:n+i,name:n,classes:"icon active",enabled:!0}):null},t.prototype.createMenuSearch=function(){var n=this;return this.isActive?r.a.createElement("div",{className:"nav-bar-search"},r.a.createElement("div",{className:"nav-bar-search-con"},this.createIcon("szukaj","find"),r.a.createElement("input",{ref:"seachinput",placeholder:this.searchCaption,onKeyDown:function(t){return n.onSearchInputKeydown(t)},onClick:function(t){return n.onSearchInputClick(t)},onChange:function(){return n.onSeachInputChange()}}))):null},t.prototype.findNameOfAcGr=function(){for(var t,i,r=u.WindowManager.Instance.ActiveWindow.SelectedPage,n=0;n<this.props.groups.length;n++)if(i=this.props.groups[n],f.a.find(i.children,function(n){return n.dataElement===r})){t=i;break}return t?t.CaptionHtml:""},t.prototype.createGroupElements=function(){var t=this,n=this.state.activeGroup&&this.state.activeGroupItem?this.state.activeGroupItem.children:this.props.groups,h,e,s,i;if((0===n.length||n[0]&&n[0].CaptionHtml!==this.dbName&&this.props.companyMain)&&n.unshift(this.props.companyMain),!n)return null;if(this.setGroupPageParams(n.length),this.addGroupArrows=!1,h=this.props.isPopup||"Form"!==this.props.type?null:this.findNameOfAcGr(),u.GlobalSettings.Instance.IsStandardProduct&&(this.maxGroupsItemOnPage=this.maxItemOnPage),e=[],this.noOfGroupsPages>1){this.state.groupsPageNo;var c=this.noOfGroupsPages===this.state.groupsPageNo?n.length-this.maxGroupsItemOnPage:(this.state.groupsPageNo-1)*this.maxGroupsItemOnPage,l=c+this.maxGroupsItemOnPage,y=l>n.length-1?n.length:l;n=n.slice(c,y);this.addGroupArrows=!0}if(s=this.addGroupArrows&&!u.GlobalSettings.Instance.IsStandardProduct?1:0,i=this.props.isPopup?"-pop":"",e=f.a.map(n,function(n,f){var l=t.isActive?n.CaptionHtml:"",a=n.Icon?t.createIcon(n.Icon,"gr"+f):r.a.createElement("span",{style:{width:"20px",height:"40px"}}),e=t.isActive?"nav-menu-gr ex":"nav-menu-gr",c;return h&&h===n.CaptionHtml&&(e+=" acgr"),c={key:"nav-m-"+(f+s)+i,id:n.CaptionHtml,"class":e,dt:n,icon:a,caption:r.a.createElement("div",{className:"text"},l),dataNumber:""+(f+s),onClick:function(){return t.onGroupClick(n)},onMouseLeave:function(){return t.onMouseLeave()},onMouseOver:function(){return t.onMouseOver(n)}},r.a.createElement(u.NavigationMenuElement,o({ref:"nav-g"+(f+s),key:"nav-m-"+(f+s)+i},c))},this),this.addGroupArrows){var p=this.isActive?"nav-arrows ex":"nav-arrows",w=this.isActive?"nav-arrows ex up":"nav-arrows up",b=this.isActive?"nav-arrows ex down":"nav-arrows down",a=this.isActiveGroupArrowUp?"arrow ac":"arrow",v=this.isActiveGroupArrowDown?"arrow ac":"arrow";u.GlobalSettings.Instance.IsStandardProduct||!this.props.isPopup?e.push(r.a.createElement("div",{className:p,onMouseOver:function(){return t.onGroupArrowMouseOver()}},r.a.createElement("div",{key:"ip"+i,className:a,onClick:function(){return t.onGroupArrowUpClick()}},this.createIcon("up","ga-u")),r.a.createElement("div",{key:"down"+i,className:v,onClick:function(){return t.onGroupArrowDownClick()}},this.createIcon("down","ga-d")))):(e.unshift(r.a.createElement(u.NavArrow,{containerClass:w,contentClass:a,id:"nagu",ref:"navArrowGrUp",key:"navArrowGrUp"+i,onMouseOver:this.onGroupArrowMouseOver.bind(this),onClick:this.onGroupArrowUpClick.bind(this)},this.createIcon("up","ga-u"))),e.push(r.a.createElement(u.NavArrow,{containerClass:b,contentClass:v,id:"nagd",ref:"navArrowGrDown",key:"navArrowGrDown"+i,onMouseOver:this.onGroupArrowMouseOver.bind(this),onClick:this.onGroupArrowDownClick.bind(this)},this.createIcon("down","ga-d"))))}return e},t.prototype.createItems=function(){var e,n=this,c,t;if(!this.shouldRenderItems)return null;this.state.filterValue?e=this.findFilteredItems():(c=this.itemsSource,t=f.a.find(c,function(t){return t.CaptionHtml===n.state.activeGroup}),t||this.state.activeGroupItem,e=t?t.children:this.state.activeGroupItem?this.state.activeGroupItem.children:[]);var s,h="Form"===this.props.type,l=u.WindowManager.Instance.ActiveWindow,a=this.props.isPopup?"-pop":"",i="";return this.props.isPopup||(h?s=l.SelectedPage:i=l.Address),f.a.map(e,function(t,f){var l=("Page"===t.dataElement.ElementType||"Group"===t.dataElement.ElementType)&&t.children.length>0,e="normal",c;return n.props.isPopup||(h&&s&&t.dataElement===s?e="bold":h||!i||t.TagInfo!==i&&i.replace("Folder/","")!==t.TagInfo||(e="bold")),c={key:"nav-item"+f+a,id:"nav-item"+f,"class":"nav-item",dt:t,caption:r.a.createElement("div",{className:"nav-item-cap",style:{fontWeight:e},dangerouslySetInnerHTML:{__html:t.CaptionHtml||""}}),dataNumber:""+f,onClick:function(){return l?n.onModuleClick(t):n.onNavItemClick(t)}},r.a.createElement(u.NavigationMenuElement,o({ref:"nav-i"+f},c))},this)},t.prototype.setChildrenPageParams=function(n){var t=this.getContainerHeight-this.listItemHeight;this.maxItemOnPage=Math.floor(t/this.listItemHeight);this.props.isPopup&&++this.maxItemOnPage;this.noOfChildrenPages=Math.ceil(n/this.maxItemOnPage);u.GlobalSettings.Instance.IsStandardProduct||this.noOfChildrenPages>1&&(this.maxItemOnPage=Math.floor((t-120)/this.listItemHeight),this.noOfChildrenPages=Math.ceil(n/this.maxItemOnPage));0===this.noOfChildrenPages&&(this.noOfChildrenPages=1);this.noOfGroupsPages>1&&--this.maxItemOnPage},t.prototype.setGroupPageParams=function(n){var t=this.getContainerHeight-this.listItemHeight;this.maxGroupsItemOnPage=Math.floor(t/this.listItemHeight);this.noOfGroupsPages=Math.ceil(n/this.maxGroupsItemOnPage);u.GlobalSettings.Instance.IsStandardProduct||this.noOfGroupsPages>1&&(this.maxGroupsItemOnPage=Math.floor((t-120)/this.listItemHeight),this.noOfGroupsPages=Math.ceil(n/this.maxGroupsItemOnPage));0===this.noOfGroupsPages&&(this.noOfGroupsPages=1);this.noOfGroupsPages>1&&--this.maxGroupsItemOnPage;u.GlobalSettings.Instance.IsStandardProduct&&(this.maxItemOnPage=this.maxGroupsItemOnPage)},t.prototype.createContentFolder=function(){var u=this,t,i,n;if(!this.shouldRenderItems)return null;for(t=[],i=this.createItems(),this.setChildrenPageParams(i.length),n=0;n<this.noOfChildrenPages;n++){var f=n*this.maxItemOnPage,e=(n+1)*this.maxItemOnPage,o=i.slice(f,e),s=this.isActive?"nav-menu-con":"nav-menu-con form";t.push(r.a.createElement("div",{key:"nav-p"+n,className:s,style:this.shouldRenderItems?null:{display:"none"},onMouseOver:function(n){return u.onMouseOverChildren(n)},onMouseMove:function(n){return u.onMouseOverChildren(n)}},o))}return r.a.createElement("div",{className:"nav-menu-l",style:{width:250*this.noOfChildrenPages+"px"}},t)},t.prototype.createContentForm=function(){var f=this,i;if(!this.shouldRenderItems)return null;var n=this.props.isPopup?"-pop":"",s=this.createItems(),t=s;if(this.setChildrenPageParams(s.length),this.addChildrenArrows=!1,this.childrenListStartIndex=0,i=[],this.noOfChildrenPages>1){var e=this.maxItemOnPage-1,o=this.noOfChildrenPages===this.state.childrenPageNo?t.length-e:(this.state.childrenPageNo-1)*e,h=o+e+(this.addChildrenArrows?-1:0),a=h>t.length-1?t.length:h;t=t.slice(o,a);this.childrenListStartIndex=o;this.addChildrenArrows=!0}if(i=t,this.addChildrenArrows){var v=this.isActive?"nav-arrows ex":"nav-arrows",y=this.isActive?"nav-arrows ex up":"nav-arrows up",p=this.isActive?"nav-arrows ex down":"nav-arrows down",c=this.isActiveChildrenArrowUp?"arrow ac":"arrow",l=this.isActiveChildrenArrowDown?"arrow ac":"arrow";u.GlobalSettings.Instance.IsStandardProduct||!this.props.isPopup?i.push(r.a.createElement("div",{key:"arr-con"+n,className:v},r.a.createElement("div",{key:"ip"+n,className:c,onClick:function(n){return f.onArrowUpClick(n)}},this.createIcon("up","i-u")),r.a.createElement("div",{key:"down"+n,className:l,onClick:function(n){return f.onArrowDownClick(n)}},this.createIcon("down","i-d")))):(i.unshift(r.a.createElement(u.NavArrow,{containerClass:y,contentClass:c,id:"nacu",ref:"navArrowConUp",key:"navArrowConUp"+n,onClick:this.onArrowUpClick.bind(this)},this.createIcon("up","i-u"))),i.push(r.a.createElement(u.NavArrow,{containerClass:p,contentClass:l,id:"nacd",ref:"navArrowConDown",key:"navArrowConDown"+n,onClick:this.onArrowDownClick.bind(this)},this.createIcon("down","i-d"))))}return r.a.createElement("div",{key:"nav-p1"+n,className:"nav-menu-con form",style:this.shouldRenderItems?null:{display:"none"},onMouseOver:function(n){return f.onMouseOverChildren(n)},onMouseMove:function(n){return f.onMouseOverChildren(n)}},i)},Object.defineProperty(t.prototype,"containerClassName",{get:function(){return this.state.active&&!this.props.isPopup?"nav-bar-c nav-bar-overlay":"nav-bar-c"},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this,t;return!1===this.state.active&&this.props.isPopup?null:(t=this.props.isPopup||u.GlobalSettings.Instance.IsStandardProduct?null:r.a.createElement(u.ProfileInfo,{onDetailsClick:this.markFirstGroup.bind(this),onMenuItemClick:this.collapseMenu.bind(this),collapsed:!this.state.active}),r.a.createElement("div",{key:"nav-aaa",className:this.containerClassName},r.a.createElement("div",{className:this.classNames,onMouseLeave:function(t){return n.menuDocked?null:n.closeMenu(t)}},this.createMenuSearch(),r.a.createElement("div",{className:"nav-menu-main",onMouseLeave:function(){return n.onMouseLeave()},onMouseOver:function(t){return n.onMouseOverMenuMain(t)},onMouseMove:function(t){return n.onMouseOverMenuMain(t)}},t,this.createGroupElements()),"Form"===this.props.type||this.props.isPopup?this.createContentForm():this.createContentFolder())))},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,f=i(1),e=i.n(f),o=i(4),s=i.n(o),u=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.toolTipAllowed=!1,i.isPopup="Popup"===u.WindowManager.Instance.ActiveWindow.Mode,i}return h(t,n),t.prototype.componentDidMount=function(){this.domElement=s.a.findDOMNode(this);this.element=this.refs.element;this.checkIsAnimationNeeded()},t.prototype.componentDidUpdate=function(){this.checkIsAnimationNeeded()},t.prototype.checkIsAnimationNeeded=function(){var n;if(this.domElement.parentElement){var t=this.domElement.parentElement.classList,r=t.contains("form")||t.contains("nav-form"),i=350;(this.domElement.parentElement&&!this.isPopup&&r&&(i=190),this.domElement.classList.contains("nav-item"))&&(n=this.domElement.getElementsByClassName("nav-item-cap")[0],n&&this.capTextWidth(n)<i?n.classList.add("no-animate"):(this.toolTipAllowed=!!this.props.addToolTip,n.classList.remove("no-animate")))}},Object.defineProperty(t.prototype,"DomElement",{get:function(){return this.domElement},enumerable:!1,configurable:!0}),t.prototype.capTextWidth=function(n){var i,t=document.createElement("div");return t.setAttribute("id","tmpTxt"),t.setAttribute("style","position: absolute; width: auto; visibility: hidden;"),t.innerHTML=n.innerHTML,document.body.appendChild(t),i=document.getElementById("tmpTxt").getBoundingClientRect().width,document.getElementById("tmpTxt").remove(),i},t.prototype.InitToolTipStyle=function(){if(this.tooltipDiv){n.prototype.InitToolTipStyle.call(this);var t=this.getRect();this.tooltipDiv.style.top=t.top+t.height+2+"px";this.tooltipDiv.style.width="unset";this.tooltipDiv.style.minHeight="unset"}},t.prototype.initTooltipText=function(){return this.domElement.getElementsByClassName("nav-item-cap")[0].innerText},t.prototype.getRect=function(){return this.element.getBoundingClientRect()},t.prototype.mouseEnterListener=function(t){this.props.onMouseOver&&this.props.onMouseOver(this.props.dt);this.focus();this.element&&this.toolTipAllowed&&n.prototype.mouseEnterListener.call(this,t)},t.prototype.mouseLeaveListener=function(t){this.props.onMouseLeave&&this.props.onMouseLeave();this.blur();n.prototype.mouseLeaveListener.call(this,t)},t.prototype.focus=function(){this.domElement&&this.domElement.classList.add("hover")},t.prototype.blur=function(){this.domElement&&this.domElement.classList.remove("hover")},t.prototype.onClick=function(n){this.props.onClick&&this.props.onClick(this.props.dt,n)},t.prototype.initEventMouse=function(){this.IsMobile||this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"mouseenter",handler:this.onMouseEnterHandler},{domElement:this.domElement,type:"mouseleave",handler:this.onMouseLeaveHandler}])},t.prototype.render=function(){var n=this;return e.a.createElement("div",{key:"navitem"+this.props.id,ref:"element",id:this.props.id,className:this.props.class,onClick:function(t){return n.props.onClick(n.props.dt,t)},"data-number":this.props.dataNumber?this.props.dataNumber:""},this.props.icon,this.props.caption)},t}(u.TooltipBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var e,o=i(1),r=i.n(o),f=i(2),u=i(0),s=(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){var i=n.call(this,t)||this,r;return i.addGroupArrows=!1,i.addChildrenArrows=!1,r=i.props.selectedPage?i.props.selectedPage.CaptionHtml:"Form"===t.type&&t.groups.length>0?t.groups[0].CaptionHtml:null,i.searchCaption=u.LanguageConstants.RESOURCES.Str_SearchText?u.LanguageConstants.RESOURCES.Str_SearchText:"szukaj...",i.isMobile=u.WindowManager.Instance.ActiveWindow.IsMobile||u.WindowManager.Instance.ActiveWindow.IsMobileApp,i.mouseMoveListener=i.mouseMoveHandler.bind(i),i.state={activeGroup:r,groupsPageNo:1,childrenPageNo:1},i}return s(t,n),t.prototype.componentWillReceiveProps=function(n){if(n.groups&&n.groups.length>0){var t=n.selectedPage?n.selectedPage.CaptionHtml:n.groups[0].CaptionHtml;this.setState({activeGroup:t})}},t.prototype.componentDidUpdate=function(){this.inputSearch&&(this.state.filterValue?this.inputSearch.classList.add("X"):this.inputSearch.classList.remove("X"))},t.prototype.componentDidMount=function(){this.inputSearch=this.refs.seachinput;this.initEventMouse()},t.prototype.componentWillUnmount=function(){this.removeEventListeners()},t.prototype.initEventMouse=function(){this.isMobile||this.inputSearch&&this.inputSearch.addEventListener("mousemove",this.mouseMoveListener,!1)},t.prototype.removeEventListeners=function(){this.inputSearch&&this.inputSearch.removeEventListener("mousemove",this.mouseMoveListener,!1)},t.prototype.mouseMoveHandler=function(n){n.target&&n.target.classList.contains("X")&&(n.target.offsetWidth-20<n.clientX-n.target.getBoundingClientRect().left?this.inputSearch.classList.add("onX"):this.inputSearch.classList.remove("onX"))},Object.defineProperty(t.prototype,"shouldRenderItems",{get:function(){return!!this.props.groups},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"getContainerHeight",{get:function(){var n=document.getElementById("container");return n?n.getBoundingClientRect().height:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeGroupItem",{get:function(){var n=this;return this.state.activeGroup?f.a.find(this.props.groups,function(t){return t.CaptionHtml===n.state.activeGroup}):null},enumerable:!1,configurable:!0}),t.prototype.changeNavigationAddress=function(){},t.prototype.onGroupClick=function(n){this.setState({activeGroup:this.state.activeGroup?"":n.CaptionHtml,childrenPageNo:1})},t.prototype.onNavItemClick=function(n){n.dataElement.postClick()},Object.defineProperty(t.prototype,"isActiveGroupArrowUp",{get:function(){return this.state.groupsPageNo>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActiveGroupArrowDown",{get:function(){return this.noOfGroupsPages>1&&this.state.groupsPageNo<this.noOfGroupsPages},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActiveChildrenArrowUp",{get:function(){return this.state.childrenPageNo>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActiveChildrenArrowDown",{get:function(){return this.noOfChildrenPages>1&&this.state.childrenPageNo<this.noOfChildrenPages},enumerable:!1,configurable:!0}),t.prototype.onGroupArrowUpClick=function(){this.isActiveGroupArrowUp&&this.setState({groupsPageNo:this.state.groupsPageNo-1})},t.prototype.onGroupArrowDownClick=function(){this.isActiveGroupArrowDown&&this.setState({groupsPageNo:this.state.groupsPageNo+1})},t.prototype.onArrowUpClick=function(n){this.isActiveChildrenArrowUp&&(n.stopPropagation(),n.preventDefault(),this.setState({childrenPageNo:this.state.childrenPageNo-1}))},t.prototype.onArrowDownClick=function(n){this.isActiveChildrenArrowDown&&(n.stopPropagation(),n.preventDefault(),this.setState({childrenPageNo:this.state.childrenPageNo+1}))},t.prototype.setChildrenPageParams=function(n){var t=this.getContainerHeight-40;this.maxItemOnPage=Math.floor(t/40)-3;this.props.isPopup&&++this.maxItemOnPage;this.noOfChildrenPages=Math.ceil(n/this.maxItemOnPage);0===this.noOfChildrenPages&&(this.noOfChildrenPages=1)},t.prototype.setGroupPageParams=function(n){var t=this.getContainerHeight-40;this.maxItemOnPage=Math.floor(t/40)-4;this.noOfGroupsPages=Math.ceil(n/this.maxItemOnPage);0===this.noOfGroupsPages&&(this.noOfGroupsPages=1)},t.prototype.createIcon=function(n){return n?r.a.createElement(u.SvgIcon,{name:n,classes:"icon active",enabled:!0}):null},t.prototype.createGroupElements=function(){var i=this,n,e,t,h,c;if(this.state.filterValue||(n=this.state.activeGroup?this.activeGroupItem.children:this.props.groups,e=1===this.props.groups.length,!n||e))return null;if(this.setGroupPageParams(n.length),this.addGroupArrows=!1,t=[],this.state.activeGroup)t.push(r.a.createElement(u.NavigationMenuElement,{ref:"nav-g0",key:"nav-m-0",id:this.activeGroupItem.CaptionHtml,"class":"nav-item gr",dt:this.activeGroupItem,onClick:function(n){return i.onGroupClick(n)},icon:this.createIcon("wstecz"),caption:r.a.createElement("div",{className:"nav-item-cap"},this.activeGroupItem.CaptionHtml)}));else{if(this.noOfGroupsPages>1){var o=this.noOfGroupsPages===this.state.groupsPageNo?n.length-this.maxItemOnPage:(this.state.groupsPageNo-1)*this.maxItemOnPage,s=o+this.maxItemOnPage,l=s>n.length-1?n.length:s+1;n=n.slice(o,l);this.addGroupArrows=!0}t=f.a.map(n,function(n,t){return r.a.createElement(u.NavigationMenuElement,{ref:"nav-g"+t,key:"nav-m-"+t,id:n.CaptionHtml,"class":"nav-item gr",dt:n,onClick:function(){return i.onGroupClick(n)},caption:r.a.createElement("div",{className:"nav-item-cap"},n.CaptionHtml)})},this)}return this.addGroupArrows&&(h=this.isActiveGroupArrowUp?"arrow ac":"arrow",c=this.isActiveGroupArrowDown?"arrow ac":"arrow",t.push(r.a.createElement("div",{className:"nav-arrows"},r.a.createElement("div",{key:"ip",className:h,onClick:function(){return i.onGroupArrowUpClick()}},this.createIcon("up")),r.a.createElement("div",{key:"down",className:c,onClick:function(){return i.onGroupArrowDownClick()}},this.createIcon("down"))))),t},t.prototype.findFilteredItems=function(){var n=[],i=this.state.filterValue.toLowerCase(),t=function(r){for(var u,f=0;f<r.length;f++)u=r[f],u.dataElement&&u.dataElement.CaptionHtml.toLowerCase().indexOf(i)>=0&&n.push(u),u.children.length>0&&t(u.children)};return t(this.props.groups),n},t.prototype.createItems=function(){var t,e=this,o,n,i;if(!this.shouldRenderItems)return null;if(this.state.filterValue)t=this.findFilteredItems();else{if(o=this.props.groups,n=f.a.find(o,function(n){return n.CaptionHtml===e.state.activeGroup}),!n&&!this.activeGroupItem)return null;t=n?n.children:this.activeGroupItem?this.activeGroupItem.children:[]}return i=u.WindowManager.Instance.ActiveWindow.SelectedPage,f.a.map(t,function(n,t){var f="nav-item-cap";return i&&n.dataElement===i&&(f+=" ac"),r.a.createElement(u.NavigationMenuElement,{ref:"nav-i"+t,id:"nav-item"+t,key:"nav-item"+t,"class":"nav-item",dt:n,addToolTip:!0,onClick:function(){return e.onNavItemClick(n)},caption:r.a.createElement("div",{className:f,dangerouslySetInnerHTML:{__html:n.CaptionHtml||""}})})},this)},t.prototype.onClearValue=function(){this.inputSearch&&(this.inputSearch.classList.remove("X"),this.inputSearch.value="",this.setState({filterValue:""}))},t.prototype.onSeachInputChange=function(){var n=this;this.delayStateChange&&clearTimeout(this.delayStateChange);this.delayStateChange=setTimeout(function(){n.setState({filterValue:n.inputSearch.value})},200)},t.prototype.onSeachInputClick=function(n){(n.stopPropagation(),n.preventDefault(),this.inputSearch)&&this.inputSearch.classList.contains("onX")&&n.target.offsetWidth-22<n.clientX-n.target.getBoundingClientRect().left&&this.onClearValue()},t.prototype.createMenuSearch=function(){var n=this;return r.a.createElement("div",{className:"nav-bar-search"},r.a.createElement("div",{className:"nav-bar-search-con"},this.createIcon("szukaj"),r.a.createElement("input",{ref:"seachinput",placeholder:this.searchCaption,onChange:function(){return n.onSeachInputChange()},onClick:function(t){return n.onSeachInputClick(t)}})))},t.prototype.createContentForm=function(){var u=this,t,n,i,f,s,h;if(!this.shouldRenderItems)return null;if(t=this.createItems(),n=t,t&&t.length&&this.setChildrenPageParams(t.length),this.addChildrenArrows=!1,f=this.createGroupElements(),n&&this.noOfChildrenPages>1){var e=(this.state.childrenPageNo-1)*this.maxItemOnPage,o=e+this.maxItemOnPage,c=o>n.length-1?n.length:o;n=n.slice(e,c);this.addChildrenArrows=!0}return(i=n,this.addChildrenArrows)&&(s=this.isActiveChildrenArrowUp?"arrow ac":"arrow",h=this.isActiveChildrenArrowDown?"arrow ac":"arrow",i.push(r.a.createElement("div",{className:"nav-arrows"},r.a.createElement("div",{key:"ip",className:s,onClick:function(n){return u.onArrowUpClick(n)}},this.createIcon("up")),r.a.createElement("div",{key:"down",className:h,onClick:function(n){return u.onArrowDownClick(n)}},this.createIcon("down"))))),r.a.createElement(r.a.Fragment,null,f,i)},t.prototype.render=function(){return r.a.createElement("div",{className:"nav-form"},this.createMenuSearch(),this.createContentForm())},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return f});var r=i(2),u=i(0),f=function(){function n(n){this.CaptionHtml=n?n.CaptionHtml:"";this.Icon=n&&n.GroupIcon?n.GroupIcon:n&&n.Icon?n.Icon:"";this.ElementType=n?n.EditorType:"";this.TagInfo=n?n.TagInfo:"";this.dataElement=n||null;this.Type=n?n.ElementType:null;this.children=this.makeChildren()}return n.prototype.makeChildren=function(){if(this.dataElement&&this.dataElement.Elements){var t=u.WindowManager.Instance.ActiveWindow.Mode,i=this.dataElement.Elements.filter(function(n){var r="Page"===n.ElementType&&n.IsVisible,i=n.CaptionHtml&&"Command"===n.ElementType&&n.IsVisible&&!n.hasClass("SchedulerCommand");return i&&"Popup"!==t&&n.Location.IsVisibleByNumbers&&(i=!1),r||i});return r.a.map(i,function(t){return new n(t)})}return[]},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var r,u=i(2),f=i(0),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this,t)||this;return i.isGroupSide=!0,i.navGroupItems=[],i.navChildItems=[],i.parent=t,i}return e(t,n),Object.defineProperty(t.prototype,"IsGroupSide",{get:function(){return this.isGroupSide},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NavigationItems",{get:function(){return this.isGroupSide?this.navGroupItems:this.navChildItems},enumerable:!1,configurable:!0}),t.prototype.initItems=function(){var n;this.navGroupItems=[];this.navChildItems=[];var t=this.reactElement.refs,i=null,r=null,f=null,e=null;for(n in t)t.hasOwnProperty(n)&&(n.indexOf("navArrow")>=0?n.indexOf("navArrowGrUp")>=0?i=t[n]:n.indexOf("navArrowGrDown")>=0?r=t[n]:n.indexOf("navArrowConUp")>=0?f=t[n]:n.indexOf("navArrowConDown")>=0&&(e=t[n]):n.indexOf("nav-g")>=0?this.navGroupItems.push(t[n]):n.indexOf("nav-i")>=0&&this.navChildItems.push(t[n]));i&&this.navGroupItems.unshift(i);r&&this.navGroupItems.push(r);this.navChildItems=u.a.sortBy(this.navChildItems,function(n){return parseInt(n.DomElement.id.substr(8,n.DomElement.id.length-1))});f&&this.navChildItems.unshift(f);e&&this.navChildItems.push(e)},t.prototype.moveToNavMenu=function(){this.setFocus();this.initItems();this.focusCurrentGroup()},t.prototype.focusCurrentGroup=function(){var n=this.parent.state.activeGroup;n&&this.setCurrent(u.a.find(this.NavigationItems,function(t){return t.props.id===n}));this.focusCurrentItem()},t.prototype.keyDownListener=function(n){"keydown"===n.event.type&&(n.isEnter&&(this.accept(n),this.isGroupSide&&this.currentItem&&this.currentItem.focus()),(n.isTab||n.isF10)&&this.closeNavMenu(n,!1),n.isEsc&&this.parent.state.active&&(this.closeNavMenu(n,!0),this.currentItem.focus()),n.isDown&&this.navigateNext(n),n.isUp&&this.navigatePrevious(n),n.isRight&&(this.isGroupSide?this.navigateSideMove(n):this.navigateMoveRight(n)),n.isLeft&&(this.isGroupSide?this.navigateSideMove(n):this.navigateMoveLeft(n)),n.isHome&&this.navigateFirst(n),n.isEnd&&this.navigateLast(n),n.isPageUp&&this.navigatePageUp(n),n.isPageDown&&this.navigatePageDown(n))},t.prototype.navigateMoveRight=function(n){var t=this.navChildItems.indexOf(this.currentItem)+this.parent.maxItemOnPage;this.navChildItems&&this.navChildItems[t]?(this.setCurrent(this.navChildItems[t]),n.setHandled()):this.navigateSideMove(n)},t.prototype.navigateMoveToGroupSide=function(){this.isGroupSide=!0},t.prototype.navigateMoveToChildrenSide=function(){this.isGroupSide=!1},t.prototype.navigateMoveLeft=function(n){var t=this.navChildItems.indexOf(this.currentItem)-this.parent.maxItemOnPage;t>=0&&this.navChildItems&&this.navChildItems[t]?(this.setCurrent(this.navChildItems[t]),n&&n.setHandled()):this.navigateSideMove(n)},t.prototype.navigateSideMove=function(n){var r=this.isGroupSide?this.navGroupItems:this.navChildItems,t=this.isGroupSide?this.navChildItems:this.navGroupItems,i=r.indexOf(this.currentItem);0!==t.length&&(this.isGroupSide=!this.isGroupSide,i>=0&&t&&t.length>i?(this.setCurrent(t[i]),n&&n.setHandled()):this.navigateLast(n))},t.prototype.navigatePageUp=function(n){n&&n.setHandled();this.isGroupSide?this.parent.addGroupArrows&&this.parent.onGroupArrowUpClick():this.parent.addChildrenArrows&&this.parent.onArrowUpClick(n.event);this.navigateFirst()},t.prototype.navigatePageDown=function(n){n&&n.setHandled();this.isGroupSide?this.parent.addGroupArrows&&this.parent.onGroupArrowDownClick():this.parent.addChildrenArrows&&this.parent.onArrowDownClick(n.event);this.navigateFirst()},t.prototype.closeNavMenu=function(n,t){this.parent.closeMenu(n.event);n.setHandled(!t)},t}(f.ComponentKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,o=i(1),r=i.n(o),s=i(3),f=i.n(s),e=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.getControlType=function(){return e.GlobalSettings.Instance.IsStandardProduct?t:e.PathBarPremium},t.prototype.prepareClasses=function(){this.classes={};this.classes.pb=!0;this.pathClasses={};this.pathClasses["pb-paths"]=!0;this.pathClasses["no-fav"]=!this.props.windowBarCalculator.PathsShowFavorite||!this.props.window.HasFav;this.favIconClasses={};this.favIconClasses["pb-icon"]=!0;this.favIconClasses["pb-fav"]=this.props.windowBarCalculator.PathsShowFavorite&&this.props.window.IsFav},t.prototype.onFavIconClick=function(){this.props.window.post("click",null,null,"folder-command")},t.prototype.onPathCommandClick=function(n){n&&(this.props.windowBarCalculator.IsChildWindow?this.props.window.postEsc():this.props.window.post("click",n.path,null,"navigate-command"))},t.prototype.getFavIcon=function(){var n=this,i={width:t.favIconWidth+"px"};return this.props.windowBarCalculator.PathsShowFavorite&&this.props.window.HasFav?r.a.createElement("div",{id:"folder-command",className:f()(this.favIconClasses),style:i,onClick:function(t){return n.onFavIconClick(t)}}):null},t.prototype.getPathSectionWidth=function(){return this.props.windowBarCalculator.PathsShowFavorite?"calc(100% - "+t.favIconWidth+"px)":"100%"},t.prototype.getPathSection=function(){var n=this,t={width:this.getPathSectionWidth()};return r.a.createElement("div",{className:f()(this.pathClasses),style:t},this.props.windowBarCalculator.PathCommands.map(function(t,i){return r.a.createElement(e.PathBarCommand,{key:i,height:n.props.windowBarCalculator.PathsHeight,pathElement:t,dataElement:null,onPathCommandClick:function(t){return n.onPathCommandClick(t)}})}))},t.prototype.render=function(){this.prepareClasses();var n={top:this.props.windowBarCalculator.PathsTop+"px",height:this.props.windowBarCalculator.PathsHeight+"px"};return r.a.createElement("div",{className:f()(this.classes),style:n},this.getFavIcon(),this.getPathSection())},t.favIconWidth=20,t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,f=i(1),u=i.n(f),e=i(3),o=i.n(e),s=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.prototype.onClick=function(){this.props.onPathCommandClick(this.props.pathElement)},Object.defineProperty(t.prototype,"classnames",{get:function(){return this.classes={},this.classes["pb-cmd"]=!0,o()(this.classes)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commandDescription",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.prepareStyle=function(){this.style=null},t.prototype.createContent=function(){var n={height:this.props.height+"px"};return u.a.createElement("div",{className:"content",style:n},u.a.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:this.props.pathElement.text}}),u.a.createElement("div",{className:"path-separator"}))},t}(s.Command)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,o=i(1),f=i.n(o),s=i(3),e=i.n(s),r=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.prototype.getPathSectionWidth=function(){return null},t.prototype.getHomeIcon=function(){return f.a.createElement(r.SvgIcon,{name:"Form"===this.props.window.Mode||"Wizard"===this.props.window.Mode?"zakladki":"dom",classes:"pb-home"})},t.prototype.getFavIcon=function(){var n={width:r.PathBar.favIconWidth+"px"};return f.a.createElement(r.SvgIcon,{id:"folder-command",name:"gwiazda",classes:e()(this.favIconClasses),style:n})},t.prototype.getFavorites=function(){return null},t.prototype.render=function(){this.prepareClasses();var n={width:"calc(100% - "+(this.props.windowBarCalculator.CommandsWidth+5)+"px)"};return f.a.createElement("div",{className:e()(this.classes),style:n},this.getHomeIcon(),this.getPathSection(),this.getFavorites())},t}(r.PathBar)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,e=i(1),r=i.n(e),o=i(3),s=i.n(o),u=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.classes={},i.state={visible:i.cookieInfoActive},i}return h(t,n),t.prototype.componentDidMount=function(){this.cookieInfoActive&&(this.cookieBoxElement=this.refs.cookieBox,setTimeout(this.show.bind(this),2e3))},Object.defineProperty(t.prototype,"IsMobile",{get:function(){return this.props.isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieInfoActive",{get:function(){return u.StorageHelper.GetCookieInfo()},set:function(n){u.StorageHelper.SetCookieInfo(n)},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.cookieInfoActive&&(this.cookieBoxElement.classList.remove("hidden"),this.cookieBoxElement.classList.add("visible"))},t.prototype.prepareClasses=function(){this.classes={};this.classes.cookieBox=!0;this.classes.hidden=!0},t.prototype.onDialogClose=function(n){n.stopPropagation();n.preventDefault();this.cookieInfoActive=!1;this.setState({visible:!1})},t.prototype.onCommandClick=function(){var n=new u.UriHelper(document.location.href);window.location.href=n.Protocol+"//"+n.Host+"/CookieInfo"},t.prototype.renderContent=function(){var n=this;return r.a.createElement("div",{className:"content"},r.a.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:u.LanguageConstants.RESOURCES.Str_CookieInfo}}),r.a.createElement("div",{className:"link",dangerouslySetInnerHTML:{__html:u.LanguageConstants.RESOURCES.Str_CookieLink},onClick:function(t){return n.onCommandClick(t)}}))},t.prototype.renderActions=function(){var n=this;return r.a.createElement("div",{className:"actions"},r.a.createElement(u.SvgIcon,{name:"anuluj",classes:"icon",onClick:function(t){return n.onDialogClose(t)}}))},t.prototype.renderIcon=function(){return r.a.createElement(u.SvgIcon,{name:"cookie",classes:"icon"})},t.prototype.renderBrowser=function(){return this.state.visible&&this.cookieInfoActive?(this.prepareClasses(),r.a.createElement("div",{ref:"cookieBox",className:s()(this.classes)},this.renderIcon(),this.renderContent(),this.renderActions())):null},t.prototype.renderMobile=function(){return null},t.prototype.render=function(){return this.props.isMobile?this.renderMobile():this.renderBrowser()},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var f,e=i(1),r=i.n(e),o=i(4),s=i.n(o),h=i(3),c=i.n(h),u=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){var i=n.call(this,t)||this;return i.initProfileInfoBar(),i.state={collapsed:i.props.collapsed},i}return l(t,n),t.prototype.componentWillReceiveProps=function(n){this.props.collapsed!==n.collapsed&&this.updateCollapsedState(n.collapsed)},t.prototype.shouldComponentUpdate=function(n,t){return this.state.collapsed!==t.collapsed},Object.defineProperty(t.prototype,"id",{get:function(){return"ProfileInfo"},enumerable:!1,configurable:!0}),t.prototype.initProfileInfoBar=function(){var n=u.WindowManager.Instance.Frame.findElementByName("ProfileInfoBar"),t,i,r;n&&(t=n.findElement(function(n){return"UserName"===n.Name}),t&&(this.profileName=t.CaptionHtml),i=n.findElement(function(n){return"UserPosition"===n.Name}),i&&(this.profilePosition=i.CaptionHtml),r=n.findElement(function(n){return"UserAvatar"===n.Name}),r&&(this.profileAvatarUrl=r.EditValue),this.profileMenu=n.findElement(function(n){return"ProfileMenu"===n.Name}))},t.prototype.createProfileImage=function(){var n=r.a.createElement(u.SvgIcon,{name:"avatar",classes:"avatar-ico"}),t;return this.profileAvatarUrl&&(t={backgroundImage:"url(/"+this.profileAvatarUrl+")"},n=r.a.createElement("div",{style:t,className:"avatar-img"})),r.a.createElement("div",{className:"profile-image"},r.a.createElement("div",{ref:"image",className:"image-content"},n))},t.prototype.createProfileMenu=function(){return s.a.createPortal(r.a.createElement(u.ProfileMenu,{ref:"menu",dataElement:this.profileMenu,onDetailsClick:this.props.onDetailsClick,onMenuItemClick:this.props.onMenuItemClick,visible:!this.state.collapsed,profile:this}),document.body)},t.prototype.createProfileInfo=function(){return this.state.collapsed?null:r.a.createElement("div",{className:"profile-info"},r.a.createElement("div",{className:"name",dangerouslySetInnerHTML:{__html:this.profileName}}),r.a.createElement("div",{className:"position",dangerouslySetInnerHTML:{__html:this.profilePosition}}))},t.prototype.updateCollapsedState=function(n){this.setState({collapsed:n})},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["profile-group"]=!0;this.classes.collapsed=this.state.collapsed},t.prototype.render=function(){return this.prepareClasses(),r.a.createElement("div",{id:this.id,className:c()(this.classes),style:this.style},this.createProfileImage(),this.createProfileInfo(),this.createProfileMenu())},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var u,e=i(1),r=i.n(e),o=i(3),s=i.n(o),h=i(2),f=i(0),c=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(n){function t(t){var i=n.call(this,t)||this;return i.state={expanded:!1,visible:t.visible},i}return c(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.imageDOMElement=this.props.profile.getDomElementByRefName("image")},t.prototype.componentDidUpdate=function(t,i,r){n.prototype.componentDidUpdate.call(this,t,i,r);this.imageDOMElement=this.props.profile.getDomElementByRefName("image");var u=this.imageDOMElement.getBoundingClientRect(),f=u.top;u.left;u.width;this.domElement.style.left=u.width/2-5+"px";this.domElement.style.top=f+"px";this.domElement.style.width="220px"},t.prototype.componentWillReceiveProps=function(t){n.prototype.componentWillReceiveProps.call(this,t);this.setState({visible:t.visible})},t.prototype.shouldComponentUpdate=function(n,t){return this.state.expanded!==t.expanded||this.state.visible!==n.visible},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.IsMobile||(this.mouseDownHandler=this.mouseDownListener.bind(this),this.eventRegistrar.registerEventListeners([{domElement:window,type:"mousedown",handler:this.mouseDownHandler}]))},t.prototype.onDetailsClick=function(){this.props.onDetailsClick();this.setState({expanded:!this.state.expanded})},t.prototype.mouseDownListener=function(n){var t=this.getDomElementByRefName("menu");t&&!t.contains(n.srcElement)&&this.setState({expanded:!1})},t.prototype.createMenuDetails=function(){var n=this;return this.state.visible?r.a.createElement(f.SvgIcon,{ref:"details",name:"details",content:t.icon,classes:s()(this.classes),onClick:function(t){return n.onDetailsClick(t)}}):null},t.prototype.createMenuItems=function(){return this.state.expanded?r.a.createElement("div",{ref:"items",className:"menu-items"},this.createItems()):null},t.prototype.createItems=function(){var n=this;return!this.props.dataElement||this.props.dataElement.Elements.length<=0?null:h.a.map(this.props.dataElement.Elements,function(t,i){return r.a.createElement(f.ProfileMenuItem,{key:"profile-item-"+i,dataElement:t,onMenuItemClick:n.props.onMenuItemClick})})},t.prototype.prepareStyle=function(){this.style={display:this.imageDOMElement&&this.state.visible?"block":"none"}},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.details=!0;this.classes.expanded=this.state.expanded},t.prototype.render=function(){return this.prepareClasses(),this.prepareStyle(),r.a.createElement("div",{ref:"menu",className:"profile-menu",style:this.style},this.createMenuDetails(),this.createMenuItems())},t.icon='<svg viewBox= "0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z" /><\/svg>',t}(f.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,f=i(1),r=i.n(f),e=i(3),o=i.n(e),s=i(71),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),Object.defineProperty(t.prototype,"isSpecial",{get:function(){return this.props.dataElement.hasClass("Special")},enumerable:!1,configurable:!0}),t.prototype.onClick=function(){this.props.onMenuItemClick();this.props.dataElement.Editable&&this.props.dataElement.postClick("")},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["menu-item"]=!0},t.prototype.render=function(){var t=this,n;return this.prepareClasses(),n=this.isSpecial?r.a.createElement("hr",{className:"menu-separator"}):null,r.a.createElement(r.a.Fragment,null,n,r.a.createElement("div",{className:o()(this.classes),onClick:function(n){return t.onClick(n)},dangerouslySetInnerHTML:{__html:this.props.dataElement.CaptionHtml}}))},t}(s.a)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var f,e=i(1),u=i.n(e),r=i(0),o=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.componentDidMount=function(){var n=document.getElementById("userName");n&&n.focus()},t.prototype.onGoLoginClick=function(){var n=Object(r.GetValueFormNode)("db","db",!0);n&&n.length>0&&(n="/"+n);window.location.href="/Login"+n},t.prototype.onSendClick=function(n){var t=this,i,u;n.stopPropagation();n.preventDefault();i={url:r.Constants.RESET_ADDRESS};u=this.refs.userName;i.data={user:u.EditValue};this.updateState(r.VerifierType.Hidden,"",!0);Object(r.Request)(i).then(function(n){n&&n.ErrorHandle?t.onError(n):n?t.onSuccess(n):t.updateState(r.VerifierType.Hidden,"")},function(n){var i={ErrorHandle:r.LanguageConstants.RESOURCES.Str_ResetBadRequest+" "+n};t.onError(i)})},t.prototype.createFields=function(){var n=this;return u.a.createElement("div",{className:"field"},u.a.createElement(r.SvgIcon,{key:"userIcon",name:"userIcon",classes:"icon",content:r.BaseAuthPanel.osobaIcon}),u.a.createElement(r.EditorText,{id:"userName",ref:"userName",key:"userName",type:"text",classes:"sign-text",editable:!0,editValue:"",isMobile:this.props.isMobile,isClearable:!0,onFocus:function(t){return n.onFocusEditor(t)},onEditValueChanged:function(t){return n.onBlurEditor(t)}}))},t.prototype.createActions=function(){var n=this;return u.a.createElement("div",{className:"s-action"},u.a.createElement(r.Button,{id:"btnGoLogin",key:"btnGoLogin",className:"button",isMobile:this.props.isMobile,caption:r.LanguageConstants.RESOURCES.Str_GoLogin,onClick:function(t){return n.onGoLoginClick(t)}}),u.a.createElement(r.Button,{id:"btnSend",key:"btnSend",ref:"btnSend",className:"button",isMobile:this.props.isMobile,isWaiting:this.state.waiting,caption:r.LanguageConstants.RESOURCES.Str_SendRecovery,onClick:function(t){return n.onSendClick(t)}}))},t.prototype.createRecoveryInfo=function(){return u.a.createElement("div",{ref:"resetInfo",className:"resetInfo",dangerouslySetInnerHTML:{__html:r.LanguageConstants.RESOURCES.Str_ResetInfo}})},t.prototype.renderBrowser=function(){var n=this;return u.a.createElement("div",{ref:"content",className:"recovery-content"},this.createFields(),this.createRecoveryInfo(),this.createActions(),this.createDialog(),u.a.createElement(r.KeyboardController,{initRoot:function(){return n.initRootDom()}}))},t.prototype.renderMobile=function(){return u.a.createElement("div",{className:"recovery-content"},this.createFields(),this.createRecoveryInfo(),this.createActions(),this.createDialog())},t}(r.BaseAuthPanel)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(1),e=i.n(f),u=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.getControlType=function(n){return t.isFirstChildHasMainGroup(n)?u.TileMenu:t},t.isFirstChildHasMainGroup=function(n){return n.Elements.length>0&&n.Elements[0].hasClass("MainGroup")},t.prototype.prepareStyle=function(){n.prototype.prepareStyle.call(this);t.isFirstChildHasMainGroup(this.props.dataElement)&&(this.style.height="unset",this.style.width="unset",this.style.minWidth="unset")},t.prototype.renderAll=function(n){return e.a.createElement("div",{key:this.props.dataElement.ReactUniqueKey,id:this.props.dataElement.Name,className:"row",style:n},this.createControls())},t.prototype.renderMobile=function(){return this.renderAll(null)},t.prototype.renderBrowser=function(){return this.prepareStyle(),this.renderAll(this.style)},t}(u.ControlBase)},function(){},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var u,f=i(2),r=i(0),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this,t)||this;return i.state={isLibraryLoaded:!1},i}return e(t,n),t.getControlType=function(n){return"SimpleMonthly"===n.View?r.SchedulerSimple:n.Window.DeviceType===r.DeviceType.MobileBrowser?r.SchedulerMobile:r.SchedulerBrowser},t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.loader.mountLibrary()},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.loader.unMountLibrary()},t.prototype.create=function(){var n=this;this.setState({isLibraryLoaded:!0},function(){n.initScheduler()})},t.prototype.initScheduler=function(){var n=this.refs.scheduler;this.customizer.init(n);this.initSchedulerDataEvents()},t.prototype.updateScheduler=function(){this.state.isLibraryLoaded&&(this.customizer.update(),this.initSchedulerDataEvents())},t.prototype.initSchedulerDataEvents=function(){var n=this,t=f.a.map(this.props.dataElement.Rows,function(t){var i=new r.SchedulerEvent(t,n.customizer.focusedEvent,n.customizer.viewType,n.customizer.dateFormat);return n.customizer.registerColors(i.id.toString(),i.bgColor,i.textColor),i});this.schedulerInstance.clearAll();this.schedulerInstance.parse(t,"json");this.customizer.initCellsId()},t.prototype.initGridActionElements=function(){var n=f.a.find(this.props.dataElement.Parent.Elements,function(n){return n.hasClass("Panel")});n&&(this._insertDataElement=this.findActionDataElement(n,"New"))},t.prototype.findActionDataElement=function(n,t){var i=this;return f.a.find(n.Elements,function(n){return n.Name===i.props.dataElement.Name+"_"+t})},Object.defineProperty(t.prototype,"schedulerInstance",{get:function(){return this._scheduler||(this._scheduler=Scheduler?Scheduler.getSchedulerInstance():scheduler,this._scheduler.config.hour_size_px=42),this._scheduler},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataElement",{get:function(){return this.props.dataElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insertDataElement",{get:function(){return this._insertDataElement||this.initGridActionElements(),this._insertDataElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loader",{get:function(){return this._loader||(this._loader=new r.SchedulerLoader(this)),this._loader},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"customizer",{get:function(){return this._customizer||(this._customizer=new r.SchedulerCustomizer(this,this.schedulerInstance)),this._customizer},enumerable:!1,configurable:!0}),t.prototype.handler=function(t){n.prototype.handler.call(this,t);(t.PeriodChanged||t.ListChanged||t.ResourcesChanged)&&this.updateScheduler()},t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var u,f=i(1),r=i.n(f),e=i(4),o=i.n(e),s=i(3),h=i.n(s),c=i(0),l=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){var i=n.call(this,t)||this;return i.className="scheduler",i}return l(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);o.a.findDOMNode(this).setAttribute("tabindex","-1")},t.prototype.render=function(){this.prepareClasses();this.prepareStyle();this.style.position="absolute";var n=r.a.createElement("div",{className:"dhx_cal_tab",style:{right:"90px"}});return r.a.createElement("div",{id:this.props.dataElement.Name,ref:"scheduler",className:h()(this.classes),style:this.style},r.a.createElement("div",{className:"dhx_cal_navline",style:{display:"none"}},n,r.a.createElement("div",{className:"dhx_cal_prev_button"}," "),r.a.createElement("div",{className:"dhx_cal_next_button"}," "),r.a.createElement("div",{className:"dhx_cal_today_button"}),r.a.createElement("div",{className:"dhx_cal_date"})),r.a.createElement("div",{className:"dhx_cal_header"}),r.a.createElement("div",{className:"dhx_cal_data"}))},t}(c.SchedulerBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return f});var u=i(2),r=i(0),f=function(){function n(n,t){this._dateFormat="%Y-%m-%d %H:%i";this.markedDate=null;this.draggedEvent=null;this.clickCount=0;this.mouseEvent=null;this._viewType="month";this._component=n;this._domElement=this._component.domElement;this._schedulerInstance=t;this.cellsAppearance=new r.Dictionary;this.cellClasses=new r.Dictionary}return n.prototype.initConfig=function(){this.schedulerInstance.config.start_on_monday=!0;this.schedulerInstance.config.xml_date=this._dateFormat;this.schedulerInstance.config.resize_month_events=this.component.dataElement.AllowSchedulerDragging;this.schedulerInstance.config.drag_resize=this.component.dataElement.AllowSchedulerDragging;this.schedulerInstance.config.drag_move=this.component.dataElement.AllowSchedulerDragging;this.schedulerInstance.config.details_on_create=!1;this.schedulerInstance.config.details_on_dblclick=!1;this.schedulerInstance.config.edit_on_create=!1;this.schedulerInstance.config.dblclick_create=!1},n.prototype.initTemplates=function(){this.schedulerInstance.templates.event_bar_text=this.templateEventBarText.bind(this);this.schedulerInstance.templates.event_class=this.templateEventClass.bind(this);this.schedulerInstance.templates.month_day=this.templateMonthDay.bind(this);this.schedulerInstance.templates.month_date_class=this.templateMonthDateClass.bind(this);this.schedulerInstance.templates.tooltip_text=this.templateTooltipText.bind(this);this.schedulerInstance.config.hour_date=this.hourFormat;this.schedulerInstance.ignore_week=this.templateIgnoreWeek.bind(this)},n.prototype.initEvents=function(){this.schedulerInstance.attachEvent("onSchedulerReady",this.eventOnSchedulerReady.bind(this));this.schedulerInstance.attachEvent("onBeforeDrag",this.eventOnBeforeDrag.bind(this));this.schedulerInstance.attachEvent("onDragEnd",this.eventOnDragEnd.bind(this));this.schedulerInstance.attachEvent("onBeforeEventCreated",this.eventOnBeforeEventCreated.bind(this));this.schedulerInstance.attachEvent("onDblClick",this.eventOnDblClick.bind(this));this.schedulerInstance.attachEvent("onClick",this.eventOnClick.bind(this));this.schedulerInstance.attachEvent("onEmptyClick",this.eventEmptyClick.bind(this))},n.prototype.initAppearance=function(n){var t=this;void 0===n&&(n=!0);n&&this.cellsAppearance.clear();this.component.dataElement.AppearancePalette&&u.a.each(this.component.dataElement.AppearancePalette.Values,function(n){t.registerColors(n.Target,n.BackColor,n.ForeColor,n.Type,!0)})},n.prototype.initTimeLine=function(){"timeline"===this.viewType?(this.schedulerInstance.createTimelineView({name:"timeline",x_unit:this._xUnit,x_date:"%H:%i",x_step:this._xStep,x_size:24,x_start:0,x_length:48,event_dy:"full",y_unit:this.component.dataElement.ResourceData,y_property:"resource_id",render:"bar"}),this.schedulerInstance.templates.timeline_scale_label=this.templateTimeLineLabel.bind(this)):"dayline"===this.viewType&&(this.schedulerInstance.createTimelineView({name:"dayline",x_unit:this._xUnit,x_date:"%d",x_step:this._xStep,x_size:r.SchedulerEventPeriod.daysInMonth(this._actualDate),x_start:0,x_length:1,y_unit:this.component.dataElement.ResourceData,y_property:"resource_id",event_dy:"full",render:"bar"}),this.schedulerInstance.templates.dayline_scale_label=this.templateTimeLineLabel.bind(this));this.schedulerInstance.config.time_step=this._timeStep},n.prototype.initSelector=function(){this._selector=r.SchedulerSelector.getSchedulerSelectorInstance(this)},n.prototype.initViewType=function(){var n=this._viewType;switch(this._timeStep=1,this._xStep=60,this._xUnit="minute",this._component.dataElement.View){case"Daily":this._viewType="day";this._timeStep=60;break;case"Weekly":case"WorkWeek":this._viewType="week";this._timeStep=60;break;case"Monthly":this._viewType="month";this._xStep=1;this._xUnit="day";break;case"HoursTimeLine":this._viewType="timeline";this._timeStep=15;this._xStep=1;this._xUnit="hour";break;case"DaysTimeLine":this._viewType="dayline";this._xStep=1;this._xUnit="day"}return n!==this._viewType},n.prototype.initPeriod=function(){var n=this.component.dataElement.Period.split("|");switch(this._period=new r.SchedulerEventPeriod(n[0],n[1],"%Y-%m-%d"),this.component.dataElement.View){case"Daily":this._actualDate=this.schedulerInstance.date.day_start(this._period.startDate);break;case"Weekly":case"WorkWeek":this._actualDate=this.schedulerInstance.date.week_start(this._period.startDate);break;case"Monthly":this._actualDate=this.schedulerInstance.date.month_start(this._period.startDate);break;case"HoursTimeLine":case"DaysTimeLine":this._actualDate=this.schedulerInstance.date.day_start(this._period.startDate)}},n.prototype.initCellsId=function(){"timeline"!==this.viewType&&"dayline"!==this.viewType&&"month"!==this.viewType||this.selector.initCellsId()},n.prototype.templateEventBarText=function(n,t,i){var u=i.text;return"timeline"===this.viewType&&(u="<b>"+r.SchedulerEventPeriod.zeroPad(n.getHours(),2)+":"+r.SchedulerEventPeriod.zeroPad(n.getMinutes(),2)+"-"+r.SchedulerEventPeriod.zeroPad(t.getHours(),2)+":"+r.SchedulerEventPeriod.zeroPad(t.getMinutes(),2)+"<\/b> "+i.text),u},n.prototype.templateEventClass=function(n,t,i){var u="",r=this.cellsAppearance[i.id];return r&&(u+=(r.colorClass||"")+(r.colorClass?" ":"")+(r.bgColorClass||"")),u+this.selector.templateEventClass(i)},n.prototype.templateMonthDay=function(n){var o=r.SchedulerEventPeriod.dateToStr(n),i=r.SchedulerEventPeriod.DateToYMD(n),f="<div data-id="+i+' class="dhx_month_head_content"><div>'+r.SchedulerEventPeriod.dateToDayStr(n)+"<\/div><\/div>",t=null,e;return(this.component.dataElement.AppearancePalette&&(t=u.a.find(this.component.dataElement.AppearancePalette.Values,function(n){return n.Target===o})),t&&"Aborted"===t.Type)?(e=r.SvgManager.GetSvgContent("anuluj"),e&&(f="<div data-id="+i+' class="dhx_month_head_content">'+e+t.Text+"<\/div>")):t&&t.Text&&(f="<div data-id="+i+' class="dhx_month_head_content"><div>'+t.Text+"<\/div><\/div>"),f},n.prototype.templateMonthDateClass=function(n){var u=r.SchedulerEventPeriod.dateToStr(n),t=this.cellsAppearance[u],i=["dhx_cell"];return t&&(t.colorClass&&i.push(t.colorClass),t.bgColorClass&&i.push(t.bgColorClass),t.typeClass&&i.push(t.typeClass),i.length>0)?i.join(" ").trim():this._period.containsDate(n,!0)?"dhx_cell dhx_default_cell":"dhx_cell"},n.prototype.templateIgnoreWeek=function(n){return"WorkWeek"===this.component.dataElement.View&&6===n.getDay()||0===n.getDay()},n.prototype.templateTooltipText=function(n,t,i){return"<b>"+i.text+"<\/b><br/><b>"+r.LanguageConstants.RESOURCES.Str_SchedulerEventStart+":<\/b> "+i.displayStart+"<br/><b>"+r.LanguageConstants.RESOURCES.Str_SchedulerEventEnd+":<\/b> "+i.displayEnd},n.prototype.templateTimeLineLabel=function(n,t){return"<div data-key="+n+' class="dhx_matrix_cell_label">'+t+"<\/div>"},n.prototype.eventOnSchedulerReady=function(){this.schedulerInstance.xy.nav_height=0},n.prototype.eventOnDblClick=function(n){var t,i;return this.component.dataElement.post("click",n),t=document.getElementsByClassName("dhtmlXTooltip"),t&&(i=t[0],i&&i.remove()),!1},n.prototype.eventOnClick=function(n){var t=this;return this.draggedEvent||(this.clickCount++,1===this.clickCount?(this.mouseEvent=event,this.singleClickTimer=setTimeout(function(){t.clickCount=0;t.selector.eventOnClick(t.mouseEvent,n)},200)):2===this.clickCount&&(clearTimeout(this.singleClickTimer),this.mouseEvent=null,this.clickCount=0)),!1},n.prototype.eventEmptyClick=function(n){var t,i,r;"month"!==this.viewType&&"dayline"!==this.viewType&&"timeline"!==this.viewType&&(t=this.fixDate(n),+t!=+this.markedDate&&(this.selector.unMarkEvents(),this.selector.unMarkCells(),this.markedDate=t,i=t,r=this.schedulerInstance.date.add(t,this._timeStep,this._xUnit),this.markEvent({css:"dhx_focused",start_date:i,end_date:r}),this.postSelectCell(i,r)))},n.prototype.eventOnBeforeEventCreated=function(){return!1},n.prototype.eventOnBeforeDrag=function(){return this.draggedEvent=null,!0},n.prototype.eventOnDragEnd=function(n,t){this.draggedEvent=this.schedulerInstance.getEvent(n);this.draggedEvent&&("new-size"===t?this.postNewEvent(this.draggedEvent.start_date,this.draggedEvent.end_date):"move"!==t&&"resize"!==t||this.postSetTime(this.draggedEvent.id,this.draggedEvent.start_date,this.draggedEvent.end_date))},n.prototype.markEvent=function(n){this.schedulerInstance.markTimespan(n)},n.prototype.postNewEvent=function(n,t){this.component.insertDataElement&&(this.postSelectCell(n,t),this.component.insertDataElement.postClick())},n.prototype.postSetTime=function(n,t,i){this.component.dataElement.post("settime",n+"|"+r.SchedulerEventPeriod.toLocaleISOString(t)+"|"+r.SchedulerEventPeriod.toLocaleISOString(i)+"}")},n.prototype.postSelectCell=function(n,t,i){i?this.component.dataElement.post("selectcell",r.SchedulerEventPeriod.toLocaleISOString(n)+"|"+r.SchedulerEventPeriod.toLocaleISOString(t)+"|"+i):this.component.dataElement.post("selectcell",r.SchedulerEventPeriod.toLocaleISOString(n)+"|"+r.SchedulerEventPeriod.toLocaleISOString(t))},n.prototype.fixDate=function(n){return(n=new Date(n)).getMinutes()>this._timeStep&&"timeline"!==this.viewType?n.setMinutes(this._timeStep):n.setMinutes(0),n.setSeconds(0),n},n.prototype.registerClass=function(n,t,i){n||(n=r.GlobalSettings.Instance.IsStandardProduct?"#fffad0":"#fcb33f66");var u=n.replace("#","");return u="dhx_"+u,this.cellClasses.containsKey(u)||(this.cellClasses.add(u,n),this.registerStyleRule(u,n,t,i)),u},n.prototype.registerStyleRule=function(n,t,i,r){var u=r?"background-color":"color",f=i?"."+n+" .dhx_month_head, ."+n+" .dhx_month_body { "+u+": "+t+";}":"."+n+", ."+n+" { "+u+": "+t+";}";this.component.loader.StyleElement.appendChild(document.createTextNode(f))},Object.defineProperty(n.prototype,"selector",{get:function(){return this._selector},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hourFormat",{get:function(){return 0===r.GlobalSettings.Instance.Settings.CurrentCulture.indexOf("en")?"%g:%i %A":"%H:%i"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"period",{get:function(){return this._period},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"actualDate",{get:function(){return this._actualDate},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"dateFormat",{get:function(){return this._dateFormat},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"viewType",{get:function(){return this._viewType},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"domElement",{get:function(){return this._domElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"component",{get:function(){return this._component},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"schedulerInstance",{get:function(){return this._schedulerInstance},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"focusedEvent",{get:function(){return parseInt(this.component.dataElement.FocusedRow)},enumerable:!1,configurable:!0}),n.prototype.registerColors=function(n,t,i,r,u){var f=this.registerClass(t,u,!0),e=this.registerClass(i,u),o={bgColorClass:f,colorClass:e,typeClass:r?this.registerClass(r,u):""};!this.cellsAppearance.containsKey(n)&&(f||e||r)?this.cellsAppearance.add(n,o):this.cellsAppearance[n]=o},n.prototype.init=function(n){this.initViewType();this.initSelector();this.initPeriod();this.initTimeLine();this.initConfig();this.initEvents();this.initTemplates();this.initAppearance();this.schedulerInstance.init(n,this.actualDate,this.viewType);this.initCellsId()},n.prototype.update=function(){this.initViewType()&&this.initSelector();this.initPeriod();this.initTimeLine();this.initAppearance(!1);this.schedulerInstance.setCurrentView(this.actualDate,this.viewType);this.initCellsId()},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(n,t,i,u){this.dateFormat=u;this.fullDay="dayline"===i;this.id=+n.ID;this.allDay="1"===n.Data[3];this.text=Object(r.decodeString)(n.Data[4]);this.bgColor=n.Data[5]?n.Data[5].toLowerCase():"#ffffff";this.textColor="#5f5f5f";this.resource_id=+n.Data[7];this.initDates(n.Data[1],n.Data[2]);this.focused=t===this.id}return n.prototype.initDates=function(n,t){n||(n=this.start_date.toLocaleString(),t=this.end_date.toLocaleString());var i=new r.SchedulerEventPeriod(n,t,this.dateFormat,this.fullDay,!1);this.start_date=i.startDate;this.end_date=i.endDate;this.displayStart=i.displayStart;this.displayEnd=i.dislpayEnd},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(t,i,r,u,f){this.dateFormat=r;this.startOrg=n.strToDate(t);this.endOrg=n.strToDate(i);this.start=this.startOrg;this.end=this.endOrg;u&&(this.start=n.fullDate(this.start),this.end=n.fullDate(this.end,f))}return n.fullDate=function(n,t){var r=n.getFullYear(),u=n.getMonth(),f=n.getDate(),i=new Date(r,u,f,0,0,0);return t&&i.setSeconds(-1),i},n.DateToYMD=function(n){return 1e4*n.getFullYear()+100*(n.getMonth()+1)+n.getDate()},n.YMDToDate=function(n){var t=parseInt(n.substr(0,4)),i=parseInt(n.substr(4,2)),r=parseInt(n.substr(6,2));return new Date(t,i-1,r)},n.DateToYMDHM=function(n){return 1e8*n.getFullYear()+1e6*(n.getMonth()+1)+1e4*n.getDate()+100*n.getHours()+n.getMinutes()},n.YMDHMToDate=function(n){var t=parseInt(n.substr(0,4)),i=parseInt(n.substr(4,2)),r=parseInt(n.substr(6,2)),u=parseInt(n.substr(8,2)),f=parseInt(n.substr(10,2));return new Date(t,i-1,r,u,f)},n.dateToStr=function(n,t){return void 0===t&&(t="%m/%d/%Y"),scheduler.date.date_to_str(t)(n)},n.dateToDayStr=function(n){return scheduler.date.date_to_str(scheduler.config.month_day)(n)},n.strToDate=function(n){return new Date(n)},n.daysInMonth=function(n){var t=n.getFullYear(),i=n.getMonth()+1;return new Date(t,i,0).getDate()},n.zeroPad=function(n,t){void 0===t&&(t=2);var i=t-n.toString().length+1;return Array(+(i>0&&i)).join("0")+n},n.toLocaleISOString=function(t){var u=[t.getFullYear(),n.zeroPad(t.getMonth()+1),n.zeroPad(t.getDate())].join("-"),r=[n.zeroPad(t.getHours()),n.zeroPad(t.getMinutes()),n.zeroPad(t.getSeconds())].join(":");t.getMilliseconds()&&(r+="."+t.getMilliseconds());var i=t.getTimezoneOffset(),f=Math.floor(Math.abs(i)/60),e=Math.abs(i)%60;return u+"T"+r+(0===i?"Z":(i<0?"+":"-")+n.zeroPad(f)+":"+n.zeroPad(e))},Object.defineProperty(n.prototype,"startDate",{get:function(){return this.start},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endDate",{get:function(){return this.end},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"startDateStr",{get:function(){return n.dateToStr(this.start,this.dateFormat)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endDateStr",{get:function(){return n.dateToStr(this.end,this.dateFormat)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"displayStart",{get:function(){return n.dateToStr(this.startOrg,this.dateFormat)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"dislpayEnd",{get:function(){return n.dateToStr(this.endOrg,this.dateFormat)},enumerable:!1,configurable:!0}),n.prototype.isToday=function(n){var t=new Date;return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()},n.prototype.containsDate=function(n,t){return n>=this.start&&n<=this.end&&(!t||t&&!this.isToday(n))},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,u=i(1),f=i.n(u),e=i(3),o=i.n(e),s=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this)},t.prototype.componentDidUpdate=function(){},t.prototype.componentWillMount=function(){},t.prototype.componentWillUnmount=function(){},t.prototype.render=function(){return this.prepareClasses(),f.a.createElement("div",{ref:"rte",className:o()(this.classes),style:this.style})},t}(s.SchedulerBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return f});var u=i(2),r=i(0),f=function(){function n(n){this._markedEvents=[];this._schedulerCustomizer=n;this.markedCells=new r.DictionaryEx;this.mouseDownHandler=this.eventOnMouseDown.bind(this);this.mouseOverHandler=this.eventOnMouseOver.bind(this);this.mouseUpHandler=this.eventOnMouseUp.bind(this);this.multiplier=1;this.clearMarkedEvents()}return n.getSchedulerSelectorInstance=function(n){switch(n.viewType){case"dayline":return new r.SchedulerDayLineSelector(n);case"timeline":return new r.SchedulerTimeLineSelector(n);case"month":return new r.SchedulerMonthSelector(n);case"week":return new r.SchedulerWeekSelector(n);case"day":return new r.SchedulerDaySelector(n);default:return new r.SchedulerCommonSelector(n)}},Object.defineProperty(n.prototype,"markedEvents",{get:function(){return this._markedEvents},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"viewFocusedClassName",{get:function(){return"dhx_focused"},enumerable:!1,configurable:!0}),n.prototype.cellIdToDate=function(){return null},n.prototype.initCell=function(){},n.prototype.getResourceKey=function(){return null},n.prototype.initEvents=function(n){n.addEventListener("mousedown",this.mouseDownHandler);n.addEventListener("mouseenter",this.mouseOverHandler)},n.prototype.eventOnMouseDown=function(n){document.addEventListener("mouseup",this.mouseUpHandler);var t=n.currentTarget.id;this.cellIdStart=t;this.unMarkAll();this.markCellById(t)},n.prototype.eventOnMouseOver=function(n){var u,r;if(this.cellIdStart){var f=n.currentTarget.id,t=parseInt(this.cellIdStart),i=parseInt(f);if(this.acceptCellEnter(t,i))for(t>i&&(u=i,i=t,t=u),this.unMarkAll(!1),r=t;r<=i;r++)this.markCellById(r.toString())}},n.prototype.eventOnMouseUp=function(){if(document.removeEventListener("mouseup",this.mouseUpHandler),this.cellIdStart){var t=this.cellIdToDate(this.markedCells.first().id),n=this.cellIdToDate(this.markedCells.last().id);n=this.correctCellDate(n);this.postSelectCell(t,n);this.cellIdStart=null}},n.prototype.acceptCellEnter=function(){return!0},n.prototype.correctCellDate=function(n){return n.setDate(n.getDate()+1),n},n.prototype.markEventById=function(n,t){var e=this,i=n,r,f;this.unMarkCells();i.ctrlKey||this.unMarkEvents();r=this._markedEvents.indexOf(t);(r<0?(0===this._markedEvents.length&&i.ctrlKey&&this._markedEvents.push(this._schedulerCustomizer.focusedEvent.toString()),this._markedEvents.indexOf(t)<0&&this._markedEvents.push(t)):i.ctrlKey&&this._markedEvents.splice(r,1),i.ctrlKey)?this._schedulerCustomizer.schedulerInstance.updateEvent(t):(f=this._schedulerCustomizer.schedulerInstance.getEvents(),u.a.each(f,function(n){n.focused=n.id.toString()===t;e._schedulerCustomizer.schedulerInstance.updateEvent(n.id.toString())}));this.postSelectEvents()},n.prototype.markCellById=function(n){var t=document.getElementById(n);t&&!this.markedCells.containsKey(n)&&(this.markedCells.add(n,t),t.classList.add("dhx_focused"))},n.prototype._unMarkEvents=function(n){var t=this,i;void 0===n&&(n=!1);i=this._markedEvents.Clone();u.a.each(i,function(n){if(t._schedulerCustomizer.schedulerInstance.getEvent(n)){var r=t._schedulerCustomizer.domElement.querySelectorAll("[event_id='"+n+"']"),i=u.a.first(r);i&&i.classList.contains("dhx_focused")&&i.classList.remove("dhx_focused")}});this.clearMarkedEvents();n&&this.postSelectEvents()},n.prototype._unMarkCells=function(){var n=this;u.a.each(this.markedCells.keys,function(t){var i=n.markedCells.get(t);i&&i.classList.contains("dhx_focused")&&i.classList.remove("dhx_focused")});this.markedCells.clear()},n.prototype.unMarkAll=function(n){void 0===n&&(n=!0);this.unMarkCells();this.unMarkEvents(n)},n.prototype.clearMarkedEvents=function(){this._markedEvents=[]},n.prototype.clearClass=function(n,t){var i=this._schedulerCustomizer.domElement.getElementsByClassName(n);u.a.each(i,function(n){n&&n.classList&&n.classList.remove(t)})},n.prototype.postSelectCell=function(n,t){var i=this.getResourceKey();i?this._schedulerCustomizer.component.dataElement.post("selectcell",r.SchedulerEventPeriod.toLocaleISOString(n)+"|"+r.SchedulerEventPeriod.toLocaleISOString(t)+"|"+i):this._schedulerCustomizer.component.dataElement.post("selectcell",r.SchedulerEventPeriod.toLocaleISOString(n)+"|"+r.SchedulerEventPeriod.toLocaleISOString(t))},n.prototype.postSelectEvents=function(){1===this._markedEvents.length?this._schedulerCustomizer.component.dataElement.post("focused",this._markedEvents[0]):this._markedEvents.length>1?this._schedulerCustomizer.component.dataElement.post("selected",this._markedEvents.join(",")):this._schedulerCustomizer.component.dataElement.post("selected","")},n.prototype.eventOnClick=function(n,t){this.markEventById(n,t)},n.prototype.unMarkEvents=function(n){void 0===n&&(n=!1);this._unMarkEvents(n)},n.prototype.unMarkCells=function(){this._unMarkCells()},n.prototype.initCellsId=function(){},n.prototype.templateEventClass=function(n){return n.focused||this.markedEvents.indexOf(n.id.toString())>=0?" dhx_focused":""},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.initEvents=function(){},t}(u.SchedulerSelector)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var r,f=i(2),u=i(0),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this,t)||this;return i.multiplier=1e8,i}return e(t,n),t.prototype.cellIdToDate=function(n){var t=n.substring(1);return u.SchedulerEventPeriod.YMDToDate(t)},t.prototype.getResourceKey=function(){var i=document.getElementById(this.cellIdStart),n,t;return i&&(n=i.dataset.rowid,n&&(t=document.querySelectorAll("[data-key='"+n+"']"),t&&t.length>0))?parseInt(n):null},t.prototype.acceptCellEnter=function(n,t){return Math.round(n/this.multiplier)===Math.round(t/this.multiplier)},t.prototype.initEvents=function(n){n.addEventListener("mousedown",this.mouseDownHandler);n.addEventListener("mouseenter",this.mouseOverHandler)},t.prototype.initCellLine=function(n,t,i){new Date(t);isNaN(Date.parse(t))&&this._schedulerCustomizer.actualDate;var r=i*this.multiplier+u.SchedulerEventPeriod.DateToYMD(new Date(t));n.id=""+r;(i||0===i)&&(n.dataset.rowid=i.toString())},t.prototype.initCellsId=function(){var n=this,t=this._schedulerCustomizer.domElement.getElementsByClassName("dhx_matrix_line");f.a.each(t,function(t){var i=t.getElementsByClassName("dhx_matrix_cell"),r=parseInt(t.dataset.sectionId);f.a.each(i,function(t){n.initCellLine(t,t.dataset.colDate,r);n.initEvents(t)})})},t}(u.SchedulerSelector)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var r,u=i(0),f=i(2),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){return n.call(this,t)||this}return e(t,n),Object.defineProperty(t.prototype,"viewFocusedClassName",{get:function(){return"dhx_marked_timespan"},enumerable:!1,configurable:!0}),t.prototype._unMarkCells=function(){var n=this._schedulerCustomizer.domElement.getElementsByClassName(this.viewFocusedClassName);f.a.each(n,function(n){n.classList.remove("dhx_focused")})},t}(u.SchedulerSelector)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var r,u=i(0),f=i(2),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){return n.call(this,t)||this}return e(t,n),t.prototype.cellIdToDate=function(n){return u.SchedulerEventPeriod.YMDToDate(n)},t.prototype.initCell=function(n){var i=n.getElementsByClassName("dhx_month_head_content")[0],t;i&&(t=i.attributes["data-id"],t&&(n.id=t.value))},Object.defineProperty(t.prototype,"viewFocusedClassName",{get:function(){return"dhx_cell"},enumerable:!1,configurable:!0}),t.prototype.initCellsId=function(){var n=this,t=this._schedulerCustomizer.domElement.getElementsByClassName(this.viewFocusedClassName);f.a.each(t,function(t){n.initCell(t);n.initEvents(t)})},t}(u.SchedulerSelector)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){var i=n.call(this,t)||this;return i.multiplier=1e12,i}return f(t,n),t.prototype.cellIdToDate=function(n){var t=n.substring(1);return u.SchedulerEventPeriod.YMDHMToDate(t)},t.prototype.initCellLine=function(n,t,i){var r=new Date(t),f=i*this.multiplier+u.SchedulerEventPeriod.DateToYMDHM(r);n.id=""+f;(i||0===i)&&(n.dataset.rowid=i.toString())},t.prototype.correctCellDate=function(n){return n.setHours(n.getHours()+1),n},t}(u.SchedulerDayLineSelector)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t}(u.SchedulerDaySelector)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,e=i(1),r=i.n(e),o=i(3),s=i.n(o),f=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.touchStartX=null,i.touchStartY=null,i.touchMove=!1,i.touchDevice=!1,i.countSchedulerSize(i.props.width,i.props.verticalOrientation),i.touchDevice="ontouchstart"in document.documentElement,i}return h(t,n),t.prototype.countSchedulerSize=function(n,t){if(this.props.isMobile&&(n=screen.width),!t)return this.containerWidth=310,void(this.dateElementMargin=0);this.containerWidth=n>600?480:n<=398?320:.8*n;this.dateElementMargin=this.containerWidth<=320?0:(this.containerWidth-320)/15},t.prototype.componentWillReceiveProps=function(t){n.prototype.componentWillReceiveProps.call(this,t);this.props.width===t.width&&this.props.verticalOrientation===t.verticalOrientation||this.countSchedulerSize(t.width,t.verticalOrientation)},t.prototype.getDayElements=function(n){var t=this,i=this.isMonthEqual(this.props.value,this.props.monthDisplayed),u=this.isYearEqual(this.props.value,this.props.yearDisplayed),e=this.isMonthEqual(this.props.selected,this.props.monthDisplayed),o=this.isYearEqual(this.props.selected,this.props.yearDisplayed),s={marginLeft:this.dateElementMargin+"px",marginRight:this.dateElementMargin+"px"};return n.map(function(n,h){var c=e&&o&&t.isDayEqual(n,t.props.selected),l=i&&u&&t.isDayEqual(n,t.props.value);return n||(n=null),r.a.createElement(f.DatePickerButton,{key:"".CreateReactKey(),day:n,no:h.toString(),isSelected:c,isCurrent:l,isDateOutOfRange:!1,styles:s,hasTasks:!!(n&&Object.keys(t.props.tasksList).length>0&&t.props.tasksList[n.getDate()])&&t.props.tasksList[n.getDate()].length>0,onClick:function(n){return t.onDayButtonClick(n)}})},this)},t.prototype.getWeekDesc=function(){var n={marginLeft:this.dateElementMargin+"px",marginRight:this.dateElementMargin+"px"};return this.dayNamesShort.map(function(t,i){return r.a.createElement("div",{key:t+i,className:"dp-shortdays-element",style:n},t)})},t.prototype.onDayButtonClick=function(n){var t,i;n.stopPropagation();n.preventDefault();t=n.target;t.classList.contains("ss-task-marker")&&(t=t.parentElement);i=parseInt(t.textContent);this.props.selected;i&&this.props.onDaySelected(!1,new Date(this.props.yearDisplayed,this.props.monthDisplayed,i))},t.prototype.onCalendarTouchStart=function(n){var t=n.touches[0];this.touchStartX=t.clientX;this.touchStartY=t.clientY},t.prototype.onCalendarTouchMove=function(){this.touchMove=!0},t.prototype.onCalendarTouchEnd=function(n){if(this.touchStartX&&this.touchStartY&&this.touchMove){var i=n.changedTouches[0].clientX,r=n.changedTouches[0].clientY,t=this.touchStartX-i,u=this.touchStartY-r;Math.abs(t)>Math.abs(u)&&(t>0?this.props.nextMonth():this.props.previousMonth());this.touchMove=!1}},t.prototype.prepareClasses=function(){this.classes={};this.classes["ss-box-calendar"]=!0;this.classes.animationLightSpeedRollLeft=-1===this.props.monthDirection;this.classes.animationLightSpeedRollRight=1===this.props.monthDirection},t.prototype.renderContent=function(){var n=this,t,i;return this.prepareClasses(),t={width:this.containerWidth+"px"},i={float:"left",marginRight:this.dateElementMargin+"px"},r.a.createElement("div",{className:"ss-box-con",key:this.props.selected.toString(),style:t,id:this.props.id?this.props.id:""},r.a.createElement("div",{className:"ss-week-no",style:i},this.getWeekColumn(this.props.yearDisplayed,this.props.monthDisplayed)),r.a.createElement("div",{className:"ss-week-desc"},r.a.createElement("div",{key:"ss-shortdays",className:"ss-shortdays"},this.getWeekDesc()),r.a.createElement("div",{ref:"ss-cal",onTouchStart:function(t){return n.touchDevice?n.onCalendarTouchStart(t):null},onTouchEnd:function(t){return n.touchDevice?n.onCalendarTouchEnd(t):null},onTouchMove:function(t){return n.touchDevice?n.onCalendarTouchMove(t):null},key:"calendar"+this.props.monthDisplayed+"_"+this.props.yearDisplayed,className:s()(this.classes)},this.getWeekElements(this.props.yearDisplayed,this.props.monthDisplayed))))},t}(f.DatePickerCalendarBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var f,o=i(1),r=i.n(o),s=i(4),h=i.n(s),c=i(3),e=i.n(c),u=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){var i=n.call(this,t)||this;i.selectcellRetarder=null;i.dayNamesShort=JSON.parse(u.LanguageConstants.RESOURCES.Str_FromToResources).calendars.standard.days.namesShort;i.tasksList={};i.className=u.GlobalSettings.Instance.IsStandardProduct||i.IsMobile?"s-sched-cal":"s-sched-cal-premium";var r=i.getMonthNo(),f=i.getYearNo(),e=new Date,o=r===e.getMonth()&&f===e.getFullYear()?new Date:new Date(f,r,1);return i.tasksLoader(i.props.dataElement.Rows,o.getMonth()),i.state={selected:o,monthDisplayed:r,yearDisplayed:f,monthDirection:0,showYMPicker:!1,cursorPos:new u.CursorPos,verticalOrientation:i.specifyOrientation(t)},i}return l(t,n),t.prototype.componentWillReceiveProps=function(n){if(this.props.dataElement.Location!==n.dataElement.Location){var t=this.specifyOrientation(n);this.state.verticalOrientation!==t&&this.setState({verticalOrientation:t})}},t.prototype.orientationListener=function(n){if(this.props.dataElement){var t=!n.target||0===n.target.orientation;this.setState({version:this.props.dataElement.Version,verticalOrientation:t})}},t.prototype.specifyOrientation=function(n){var t=this.IsMobile?window.innerWidth:n.dataElement.Location.Width;return!(t>1.5*(this.IsMobile?window.innerHeight:n.dataElement.Location.Height)&&t>526)},t.prototype.getMonthNo=function(){var n=this.props.dataElement.Period.split("|")[0].split("/");return parseInt(n[0])-1},t.prototype.getYearNo=function(){var n=this.props.dataElement.Period.split("|")[0].split("/");return parseInt(n[2])},t.prototype.updateSchedulerState=function(){var u=this,n=this.getMonthNo(),t=this.getYearNo(),r=new Date,i=n===r.getMonth()&&t===r.getFullYear()?new Date:new Date(t,n,1),f=100*t+n<100*this.state.yearDisplayed+this.state.monthDisplayed?-1:100*t+n>100*this.state.yearDisplayed+this.state.monthDisplayed?1:0;this.tasksLoader(this.props.dataElement.Rows,i.getMonth());this.setState({selected:i,monthDisplayed:n,yearDisplayed:t,monthDirection:f,showYMPicker:!1,verticalOrientation:this.specifyOrientation(this.props)});this.selectcellRetarder&&clearTimeout(this.selectcellRetarder);this.selectcellRetarder=setTimeout(function(){u.selectCell(i)},500)},t.prototype.handler=function(n){(n.PropertiesChanged||n.PeriodChanged||n.ListChanged||n.LocationChanged)&&this.updateSchedulerState()},t.prototype.parseDateOnlyFormat=function(n){var t=n.split("/");return new Date(parseInt(t[2]),parseInt(t[0])-1,parseInt(t[1]))},t.prototype.parseDateTimeFormat=function(n){var r=n.split("T"),t=r[0].split("-").map(function(n){return parseInt(n)}),i=r[1].split(":").map(function(n){return parseInt(n)});return new Date(t[0],t[1]-1,t[2],i[0],i[1],i[2])},t.prototype.tasksLoader=function(n,t){var o=parseInt(this.props.dataElement.Period.split("|")[1].split("/")[1]),i,u;for(this.tasksList={},i=1;i<=o;i++)this.tasksList[i]=[];for(i=0;i<n.length;i++){var s=n[i].Data[1].indexOf("/")>=0,h=s?this.parseDateOnlyFormat(n[i].Data[1]):this.parseDateTimeFormat(n[i].Data[1]),f=n[i].Data[2].indexOf("/")>=0,c=f?this.parseDateOnlyFormat(n[i].Data[2]):this.parseDateTimeFormat(n[i].Data[2]),l=h.getMonth(),a=c.getMonth(),e=h.getDate(),r=c.getDate();if(!(a<t||l>t))for(l<t&&(e=1),a>t?r=o:f&&r>e&&r--,u=e;u<=r;u++)this.tasksList[u].push({data:n[i].Data,isDateFromSimpleFormat:s,isDateToSimpleFormat:f,isSelected:n[i].IsSelected,isFocused:n[i].IsFocused})}},Object.defineProperty(t.prototype,"getDayShortNames",{get:function(){return this.dayNamesShort},enumerable:!1,configurable:!0}),t.prototype.onDaySelected=function(n,t){this.state.selected!==t&&(this.setState({selected:t,monthDirection:0}),this.selectCell(t))},t.prototype.setShowYMPicker=function(n){this.setState({showYMPicker:n})},t.prototype.previousMonth=function(){this.props.dataElement.post("previous","")},t.prototype.nextMonth=function(){this.props.dataElement.post("next","")},t.prototype.setDate=function(n){this.props.dataElement.post("todate",n);this.setShowYMPicker(!1)},t.prototype.deleteTask=function(n,t){t.stopPropagation();this.props.dataElement.post("delete",n)},t.prototype.editTask=function(n){this.props.dataElement.post("click",n)},t.prototype.addNewTask=function(){this.props.dataElement.post("addnew","")},t.prototype.selectCell=function(n){this.props.dataElement.post("selectcell",u.SchedulerEventPeriod.toLocaleISOString(n)+"|"+u.SchedulerEventPeriod.toLocaleISOString(new Date(n.getFullYear(),n.getMonth(),n.getDate()+1)))},t.prototype.onClose=function(){this.setShowYMPicker(!1)},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.state.verticalOrientation||(this.classes.horizontal=!0)},t.prototype.getTaskListHeight=function(){var n=document.getElementById("ssHead"+this.id),t=document.getElementById("ssCal"+this.id),i=n?n.getBoundingClientRect().height:null,r=t?t.getBoundingClientRect().height:null;return this.state.verticalOrientation?i&&r?this.props.dataElement.Location.Height-i-r:"":this.props.dataElement.Location.Height},t.prototype.renderYearMonthPicker=function(){var n=this,t=u.YearMonth.MonthNames[this.state.monthDisplayed],i=this.state.yearDisplayed;return h.a.createPortal(r.a.createElement(u.DatePickerYearMonthContent,{isSimpleScheduler:!0,isRequiered:!0,currentYear:i,currentMonth:t,onSetDate:function(t){return n.setDate(t)},onClose:function(){return n.onClose()},onClick:function(){}}),document.body)},t.prototype.renderHeaderCommands=function(){var n=this;return r.a.createElement("div",{id:"ssHead"+this.id,className:"ss-header-commands"},r.a.createElement("div",{className:(this.IsMobile?"":"partial-command ")+"ss-header-btn",onClick:function(){return n.previousMonth()}},r.a.createElement(u.SvgIcon,{classes:"ss-icon",name:"left"})),r.a.createElement("div",{className:(this.IsMobile?"":"partial-command ")+"ss-header-btn ss-date",onClick:function(){return n.setShowYMPicker(!0)}},this.props.dataElement.CaptionHtml,this.state.showYMPicker?this.renderYearMonthPicker():null),r.a.createElement("div",{className:(this.IsMobile?"":"partial-command ")+"ss-header-btn",onClick:function(){return n.nextMonth()}},r.a.createElement(u.SvgIcon,{classes:"ss-icon",name:"right"})))},t.prototype.renderTasksList=function(){var n=this,t;return this.tasksList&&0===Object.keys(this.tasksList).length?null:(t=this.tasksList[this.state.selected.getDate()],r.a.createElement("div",{className:"ss-tasks-list",style:{height:this.getTaskListHeight()}},r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"ss-add-task",onClick:function(){return n.addNewTask()}},r.a.createElement("div",{className:"ss-add-symbol"},"+")),r.a.createElement(u.Scroll,{name:this.id},r.a.createElement("div",{className:"ss-task-list-content"},t.length>0?t.map(function(t){return r.a.createElement(u.SchedulerTask,{key:t.data[0],id:t.data[0],name:t.data[4],desc:"",dateFrom:new Date(t.data[1]),dateTo:new Date(t.data[2]),isDateFromSimpleFormat:t.isDateFromSimpleFormat,isDateToSimpleFormat:t.isDateToSimpleFormat,isCloseable:!0,isMobile:!1,deleteTask:function(t,i){return n.deleteTask(t,i)},editTask:function(t){return n.editTask(t)}})}):null)))))},t.prototype.renderAddNewTaskBtn=function(){return r.a.createElement("div",{className:"ss-add-symbol"},"+")},t.prototype.renderMobileTasksList=function(){var n=this,t,i;return this.tasksList&&0===Object.keys(this.tasksList).length?null:(t=this.tasksList[this.state.selected.getDate()],i=0===t.length,r.a.createElement("div",{className:"ss-tasks-list "+(i?"empty":"")},r.a.createElement(u.ClickableElement,{parent:{id:"add-task",classnames:"ss-add-task",readOnly:!1,onClick:function(){return n.addNewTask()},createContent:function(){return n.renderAddNewTaskBtn()}}}),t.length>0?t.map(function(t){return r.a.createElement(u.SchedulerTask,{key:t.data[0],id:t.data[0],name:t.data[4],desc:"",dateFrom:new Date(t.data[1]),dateTo:new Date(t.data[2]),isDateFromSimpleFormat:t.isDateFromSimpleFormat,isDateToSimpleFormat:t.isDateToSimpleFormat,isCloseable:!0,isMobile:!0,deleteTask:function(t,i){return n.deleteTask(t,i)},editTask:function(t){return n.editTask(t)}})}):null))},t.prototype.renderBrowser=function(){var n=this;return this.prepareClasses(),this.prepareStyle(),r.a.createElement("div",{className:e()(this.classes),style:this.style},r.a.createElement("div",{className:"ss-calendar"},this.renderHeaderCommands(),r.a.createElement(u.SchedulerCalendar,{id:"ssCal"+this.id,value:new Date,selected:this.state.selected,minDate:"",yearDisplayed:this.state.yearDisplayed,monthDirection:this.state.monthDirection,monthDisplayed:this.state.monthDisplayed,isRange:!1,width:this.props.dataElement.Location.Width,verticalOrientation:this.state.verticalOrientation,tasksList:this.tasksList,getDayShortNames:function(){return n.getDayShortNames},onDaySelected:function(t,i){return n.onDaySelected(t,i)},nextMonth:function(){return n.nextMonth()},previousMonth:function(){return n.previousMonth()}})),this.renderTasksList())},t.prototype.renderMobile=function(){var n=this;return this.prepareClasses(),this.prepareStyle(),r.a.createElement("div",{className:e()(this.classes)},r.a.createElement("div",{className:"ss-calendar"},this.renderHeaderCommands(),r.a.createElement(u.SchedulerCalendar,{value:new Date,selected:this.state.selected,minDate:"",yearDisplayed:this.state.yearDisplayed,monthDirection:this.state.monthDirection,monthDisplayed:this.state.monthDisplayed,isRange:!1,width:this.props.dataElement.Location.Width,verticalOrientation:this.state.verticalOrientation,tasksList:this.tasksList,isMobile:!0,getDayShortNames:function(){return n.getDayShortNames},onDaySelected:function(t,i){return n.onDaySelected(t,i)},nextMonth:function(){return n.nextMonth()},previousMonth:function(){return n.previousMonth()}})),this.renderMobileTasksList())},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var f,e=i(1),r=i.n(e),u=i(0),o=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.clickCounter=0,t}return o(t,n),t.prototype.onTaskClick=function(){var n=this;this.props.isMobile?this.props.editTask(this.props.id):0===this.clickCounter?(this.clickCounter++,setTimeout(function(){n.clickCounter=0},500)):(this.clickCounter=0,this.props.editTask(this.props.id))},t.prototype.createContent=function(){var i=this,f=u.SchedulerEventPeriod.zeroPad(this.props.dateFrom.getDate())+"-"+u.SchedulerEventPeriod.zeroPad(this.props.dateFrom.getMonth()+1)+"-"+this.props.dateFrom.getFullYear(),e=u.SchedulerEventPeriod.zeroPad(this.props.isDateToSimpleFormat?this.props.dateTo.getDate()-1:this.props.dateTo.getDate())+"-"+u.SchedulerEventPeriod.zeroPad(this.props.dateTo.getMonth()+1)+"-"+this.props.dateTo.getFullYear(),n=!(this.props.isDateToSimpleFormat&&this.props.dateFrom.getMonth()===this.props.dateTo.getMonth()&&this.props.dateFrom.getDate()+1===this.props.dateTo.getDate())&&(this.props.dateFrom.getMonth()!==this.props.dateTo.getMonth()||this.props.dateTo.getDate()>this.props.dateFrom.getDate()),o=!(this.props.isDateFromSimpleFormat&&this.props.isDateToSimpleFormat),t=!(this.props.isDateFromSimpleFormat&&this.props.isDateToSimpleFormat);return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"ss-task-header"},r.a.createElement("span",{className:"ss-task-name"},Object(u.decodeString)(this.props.name)),this.props.desc?r.a.createElement("span",{className:"ss-task-desc"},": ",Object(u.decodeString)(this.props.desc)):null),r.a.createElement("div",{className:"ss-task-date"},r.a.createElement("span",{className:"ss-date-from"},f),o?r.a.createElement("span",{className:"ss-time-from"},", ",this.props.dateFrom.getHours()+":"+u.SchedulerEventPeriod.zeroPad(this.props.dateFrom.getMinutes())):null,n||t?" - ":null,n?r.a.createElement("span",{className:"ss-date-to"},e):null,n&&t?", ":null,t?r.a.createElement("span",{className:"ss-time-to"},(this.props.isDateToSimpleFormat?24:this.props.dateTo.getHours())+":"+u.SchedulerEventPeriod.zeroPad(this.props.dateTo.getMinutes())):null),this.props.isCloseable?r.a.createElement("div",{className:"ss-icons"},r.a.createElement(u.SvgIcon,{name:"anuluj",classes:"ss-icon-close",onClick:function(n){return i.props.deleteTask(i.props.id,n)}})):null)},t.prototype.renderBrowser=function(){var n=this;return r.a.createElement("div",{className:"ss-task",onClick:function(){return n.onTaskClick()}},this.createContent())},t.prototype.renderMobile=function(){var n=this;return r.a.createElement(u.ClickableElement,{parent:{id:this.props.id,classnames:"ss-task",readOnly:!1,onClick:function(){return n.onTaskClick()},createContent:function(){return n.createContent()}}})},t.prototype.render=function(){return this.props.isMobile?this.renderMobile():this.renderBrowser()},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var u,o=i(1),r=i.n(o),s=i(4),h=i.n(s),c=i(3),f=i.n(c),e=i(0),l=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){var i=n.call(this,t)||this;return i.recentScrollLeft=0,i.recentScrollTop=0,i}return l(t,n),t.initScrollDefaults=function(){t.scrollDefaultWidth=17;t.scrollDefaultHeight=17},t.prototype.componentDidMount=function(){this.initAll();this.initObserver();this.attachListeners();this.calcThumbs()},t.prototype.componentDidUpdate=function(){this.attachListeners();this.calcThumbs()},t.prototype.componentWillUnmount=function(){this.detachListeners();this.observer.disconnect()},t.prototype.attachListeners=function(){this.attachTouchListener();this.attachMouseListener();this.attachContentListener();this.attachThumbListeners()},t.prototype.detachListeners=function(){this.detachTouchListener();this.detachMouseListener();this.detachContentListener();this.detachThumbListeners()},t.prototype.attachTouchListener=function(){this.touchStartHandler||(this.touchStartHandler=this.touchStartListener.bind(this),this.touchMoveHandler=this.touchMoveListener.bind(this),this.touchEndHandler=this.touchEndListener.bind(this),this.target.addEventListener("touchstart",this.touchStartHandler,!1),this.target.addEventListener("touchmove",this.touchMoveHandler,!1),this.target.addEventListener("touchend",this.touchEndHandler,!1))},t.prototype.detachTouchListener=function(){this.touchStartHandler&&(this.target.removeEventListener("touchstart",this.touchStartHandler,!1),this.target.removeEventListener("touchmove",this.touchMoveHandler,!1),this.target.removeEventListener("touchend",this.touchEndHandler,!1))},t.prototype.attachMouseListener=function(){this.mouseWheelHandler||(this.mouseWheelHandler=this.mouseWheelListener.bind(this),this.target.addEventListener("mousewheel",this.mouseWheelHandler,!1),this.target.addEventListener("DOMMouseScroll",this.mouseWheelHandler,!1))},t.prototype.detachMouseListener=function(){this.mouseWheelHandler&&(this.target.removeEventListener("mousewheel",this.mouseWheelHandler,!1),this.target.removeEventListener("DOMMouseScroll",this.mouseWheelHandler,!1))},t.prototype.attachContentListener=function(){this.subtreeModifiedHandler||(this.subtreeModifiedHandler=this.subtreeModifiedListener.bind(this),this.scrollHandler=this.scrollListener.bind(this),this.target.addEventListener("scroll",this.scrollHandler,!1),window.addEventListener("resize",this.subtreeModifiedHandler,!1))},t.prototype.detachContentListener=function(){this.subtreeModifiedHandler&&(this.target.removeEventListener("scroll",this.scrollHandler,!1),window.removeEventListener("resize",this.subtreeModifiedHandler,!1))},t.prototype.attachThumbListeners=function(){this.attachThumbXListeners();this.attachThumbYListeners()},t.prototype.detachThumbListeners=function(){this.detachThumbXListeners();this.detachThumbYListeners()},t.prototype.attachThumbXListeners=function(){this.thumbX&&!this.thumbXMouseDownHandler&&(this.thumbXMouseDownHandler=this.thumbXMouseDownListener.bind(this),this.thumbXMouseMoveHandler=this.thumbXMouseMoveListener.bind(this),this.thumbXMouseUpHandler=this.thumbXMouseUpListener.bind(this),this.thumbXClickHandler=this.thumbXClickListener.bind(this),this.thumbX.addEventListener("mousedown",this.thumbXMouseDownHandler,!1),this.trackX&&this.trackX.addEventListener("click",this.thumbXClickHandler,!1))},t.prototype.detachThumbXListeners=function(){this.thumbX&&this.thumbXMouseDownHandler&&(this.thumbX.removeEventListener("mousedown",this.thumbXMouseDownHandler,!1),this.trackX&&this.trackX.removeEventListener("click",this.thumbXClickHandler,!1))},t.prototype.attachThumbYListeners=function(){this.thumbY&&!this.thumbYMouseDownHandler&&(this.thumbYMouseDownHandler=this.thumbYMouseDownListener.bind(this),this.thumbYMouseMoveHandler=this.thumbYMouseMoveListener.bind(this),this.thumbYMouseUpHandler=this.thumbYMouseUpListener.bind(this),this.thumbYClickHandler=this.thumbYClickListener.bind(this),this.thumbY.addEventListener("mousedown",this.thumbYMouseDownHandler,!1),this.trackY&&this.trackY.addEventListener("click",this.thumbYClickHandler,!1))},t.prototype.detachThumbYListeners=function(){this.thumbY&&this.thumbYMouseDownHandler&&(this.thumbY.removeEventListener("mousedown",this.thumbYMouseDownHandler,!1),this.trackY&&this.trackY.removeEventListener("click",this.thumbYClickHandler,!1))},t.prototype.touchStartListener=function(n){this.tx=n.touches[0].screenX;this.ty=n.touches[0].screenY;this.sx=this.target.scrollLeft;this.thumbX&&(this.thumbX.style.opacity="1");this.isScroll=!1},t.prototype.touchMoveListener=function(n){var t=n.touches[0].screenX-this.tx,i=n.touches[0].screenY-this.ty;!this.isScroll&&Math.abs(t)>50&&Math.abs(t)>2*Math.abs(i)&&(this.isScroll=!0);this.isScroll&&(this.target.scrollLeft=-t+this.sx,this.scrollHorizontal(),this.recentX=t,this.recentTime=n.timeStamp)},t.prototype.touchEndListener=function(n){var t=this;if(this.isScroll){var i=10*this.recentX/(n.timeStamp-this.recentTime+1),r=this,u=setInterval(function(){var n=t.target.scrollLeft;t.target.scrollLeft=n-i;r.scrollHorizontal();i/=2;(t.target.scrollLeft===n||Math.abs(i)<2)&&clearInterval(u)},100);this.thumbX&&(this.thumbX.style.opacity="0")}},t.prototype.isEditorMemoActive=function(n){return document.activeElement.contains(n)&&(document.activeElement.classList.contains("fieldMemo")||document.activeElement.classList.contains("editor-memo"))},t.prototype.isEditorRTFActive=function(n){return document.activeElement.contains(n)&&document.activeElement.classList.contains("jodit_editor")},t.prototype.mouseWheelListener=function(n){if(!document.activeElement||!document.activeElement.classList||!this.isEditorRTFActive(n.target)&&!this.isEditorMemoActive(n.target)){n.preventDefault();n.stopPropagation();var t=0;"mousewheel"===n.type?t=n.wheelDeltaY?n.wheelDeltaY:n.wheelDelta:"DOMMouseScroll"===n.type&&(t=20*-n.detail);this.isScroll=!1;0!==t&&(this.target.scrollTop-=t,this.scrollVertical())}},t.prototype.subtreeModifiedListener=function(){var n=this;this.resetCalcThumbsId||(this.resetCalcThumbsId=setTimeout(function(){n.resetCalcThumbsId=null;n.calcThumbs()},10))},t.prototype.scrollListener=function(){var n,t;this.thumbX&&this.trackX&&(n=this.trackX.offsetWidth-this.thumbX.offsetWidth,this.thumbX.style.left=this.target.scrollLeft/(this.target.scrollWidth-this.target.offsetWidth)*n+"px",this.scrollHorizontal());this.thumbY&&this.trackY&&(t=this.trackY.offsetHeight-this.thumbY.offsetHeight,this.thumbY.style.top=this.target.scrollTop/(this.target.scrollHeight-this.target.offsetHeight)*t+"px",this.scrollVertical())},t.prototype.thumbXMouseDownListener=function(n){this.sx=this.target.scrollLeft;this.tx=n.x;this.thumbXMouseMoveHandler=this.thumbXMouseMoveListener.bind(this);this.thumbXMouseUpHandler=this.thumbXMouseUpListener.bind(this);document.addEventListener("mousemove",this.thumbXMouseMoveHandler,!1);document.addEventListener("mouseup",this.thumbXMouseUpHandler,!1);n.stopPropagation();n.preventDefault()},t.prototype.thumbXMouseUpListener=function(n){document.removeEventListener("mousemove",this.thumbXMouseMoveHandler,!1);document.removeEventListener("mouseup",this.thumbXMouseUpHandler,!1);n.stopPropagation();n.preventDefault()},t.prototype.thumbXMouseMoveListener=function(n){var t=(n.x-this.tx)/(this.trackX.offsetWidth-this.thumbX.offsetWidth);t*=this.target.scrollWidth-this.target.clientWidth;this.target.scrollLeft=t+this.sx;this.scrollHorizontal()},t.prototype.thumbXClickListener=function(n){n.stopPropagation();n.preventDefault();n.target===this.trackX&&(n.offsetX<this.thumbX.offsetLeft?this.target.scrollLeft-=this.target.offsetWidth-t.deltaPageStep:n.offsetX>this.thumbX.offsetLeft+this.thumbX.offsetWidth&&(this.target.scrollLeft+=this.target.offsetWidth-t.deltaPageStep))},t.prototype.thumbYMouseDownListener=function(n){this.sy=this.target.scrollTop;this.ty=n.y;this.thumbYMouseMoveHandler=this.thumbYMouseMoveListener.bind(this);this.thumbYMouseUpHandler=this.thumbYMouseUpListener.bind(this);document.addEventListener("mousemove",this.thumbYMouseMoveHandler,!1);document.addEventListener("mouseup",this.thumbYMouseUpHandler,!1);n.stopPropagation();n.preventDefault()},t.prototype.thumbYMouseUpListener=function(n){document.removeEventListener("mousemove",this.thumbYMouseMoveHandler,!1);document.removeEventListener("mouseup",this.thumbYMouseUpHandler,!1);n.stopPropagation();n.preventDefault()},t.prototype.thumbYMouseMoveListener=function(n){var t=(n.y-this.ty)/(this.trackY.offsetHeight-this.thumbY.offsetHeight);t*=this.target.scrollHeight-this.target.clientHeight;this.target.scrollTop=t+this.sy;this.scrollVertical()},t.prototype.thumbYClickListener=function(n){n.stopPropagation();n.preventDefault();n.target===this.trackY&&(n.offsetY<this.thumbY.offsetTop?this.target.scrollTop-=this.target.offsetHeight-t.deltaPageStep:n.offsetY>this.thumbY.offsetTop+this.thumbY.offsetHeight&&(this.target.scrollTop+=this.target.offsetHeight-t.deltaPageStep))},t.prototype.scrollHorizontal=function(){this.recentScrollLeft!==this.target.scrollLeft&&(this.recentScrollLeft=this.target.scrollLeft)},t.prototype.scrollVertical=function(){this.recentScrollTop!==this.target.scrollTop&&(this.recentScrollTop=this.target.scrollTop)},t.prototype.initObserver=function(){var n=this;this.observer=new MutationObserver(function(t){t.forEach(function(t){t.target===n.target&&"childList"===t.type&&n.subtreeModifiedListener()})});this.observer.observe(this.target,{childList:!0})},t.prototype.initAll=function(){t.initScrollDefaults();this.initTarget();this.initThumb();this.initPosition()},t.prototype.initTarget=function(){this.domElement=h.a.findDOMNode(this);this.target=this.domElement.firstElementChild},t.prototype.initClasses=function(){this.classesTrackX={};this.classesTrackY={};this.classesTrackX[this.classPrefix+"-h"]=!0;this.classesTrackX.touch=Object(e.isTouchDevice)();this.classesTrackY[this.classPrefix+"-v"]=!0;this.classesTrackY.touch=Object(e.isTouchDevice)()},t.prototype.initThumb=function(){this.maxScrollLeft=this.target.scrollWidth-this.target.offsetWidth;this.maxScrollTop=this.target.scrollHeight-this.target.offsetHeight;this.thumbX=document.getElementById(this.id+"-h-thumb");this.thumbY=document.getElementById(this.id+"-v-thumb");this.trackX=document.getElementById(this.id+"-h");this.trackY=document.getElementById(this.id+"-v");this.trackX&&(0===t.scrollDefaultWidth||this.maxScrollLeft<=0)&&(this.trackX.style.visibility="hidden");this.trackY&&(0===t.scrollDefaultHeight||this.maxScrollTop<=0)&&(this.trackY.style.visibility="hidden")},t.prototype.initPosition=function(){t.scrollDefaultWidth>0&&this.maxScrollLeft>0&&(this.target.style.right="0");t.scrollDefaultHeight>0&&this.maxScrollTop>0&&(this.target.style.bottom="0");this.trackY&&(this.trackY.style.top=this.target.style.top);this.trackX&&(this.trackX.style.left=this.target.style.left);(this.trackX||this.trackY)&&(this.target.style.overflow="hidden")},t.prototype.calcThumbX=function(){this.trackX&&(this.contentX<=this.target.parentElement.offsetWidth?this.trackX.style.visibility="hidden":(this.trackX.style.visibility="visible",this.calcThumbXWidth()))},t.prototype.calcThumbXWidth=function(){var n=this.target.offsetWidth/this.contentX*this.target.offsetWidth;n<20&&(n=20);this.thumbX.style.width=n+"px"},t.prototype.calcThumbY=function(){this.trackY&&(this.contentY<=this.target.parentElement.offsetHeight?this.trackY.style.visibility="hidden":(this.trackY.style.visibility="visible",this.calcThumbYHeight()))},t.prototype.calcThumbYHeight=function(){var n=this.target.offsetHeight/this.contentY*this.target.offsetHeight;n<32&&(n=32);this.thumbY.style.height=n+"px"},t.prototype.calcThumbs=function(){var n=this.target.scrollWidth,t=this.target.scrollHeight;n===this.contentX&&t===this.contentY&&this.eWidth===this.target.offsetWidth&&this.eHeight===this.target.offsetHeight||(this.contentX=n,this.contentY=t,this.eWidth=this.target.offsetWidth,this.eHeight=this.target.offsetHeight,this.calcThumbX(),this.calcThumbY())},Object.defineProperty(t.prototype,"id",{get:function(){return this.props.name+"_scroll"},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this;this.initClasses();var i=f()(this.classesTrackX),u=f()(this.classesTrackY),t="";return this.props.className&&(t+=this.props.className+" "),t+=this.classPrefix+"-content",r.a.createElement("div",{id:this.id,className:t,onMouseOver:function(t){return n.props.onMouseOver?n.props.onMouseOver(t):null},onMouseLeave:function(){return n.props.onMouseLeave?n.props.onMouseLeave():null},onMouseUp:function(t){return n.props.onMouseUp?n.props.onMouseUp(t):null}},this.props.children,r.a.createElement("div",{id:this.id+"-v",className:u,style:{visibility:"hidden"}},r.a.createElement("div",{id:this.id+"-v-track",className:this.classPrefix+"-v-track"},r.a.createElement("div",{id:this.id+"-v-thumb",className:this.classPrefix+"-v-thumb"}))),r.a.createElement("div",{id:this.id+"-h",className:i,style:{visibility:"hidden"}},r.a.createElement("div",{id:this.id+"-h-track",className:this.classPrefix+"-h-track"},r.a.createElement("div",{id:this.id+"-h-thumb",className:this.classPrefix+"-h-thumb"}))))},t.scrollDefaultWidth=-1,t.scrollDefaultHeight=-1,t.deltaPageStep=32,t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),Object.defineProperty(t.prototype,"classPrefix",{get:function(){return"gscroll"},enumerable:!1,configurable:!0}),t.prototype.attachTouchListener=function(){this.props.isFreezeX&&n.prototype.attachTouchListener.call(this)},t.prototype.detachTouchListener=function(){this.props.isFreezeX&&n.prototype.detachTouchListener.call(this)},t.prototype.attachMouseListener=function(){this.props.isFreezeX&&n.prototype.attachMouseListener.call(this)},t.prototype.detachMouseListener=function(){this.props.isFreezeX&&n.prototype.detachMouseListener.call(this)},t.prototype.scrollHorizontal=function(){n.prototype.scrollHorizontal.call(this);this.props.hscrollAction&&this.props.hscrollAction(this.recentScrollLeft)},t.prototype.initTarget=function(){n.prototype.initTarget.call(this);this.windowDiv=document.getElementsByClassName("window")[0];this.gridDiv=document.getElementById(this.props.name);this.props.isFreezeX&&(this.target.style.overflowX="hidden")},t.prototype.initThumb=function(){this.thumbX=this.target.parentElement.getElementsByClassName(this.classPrefix+"-h-thumb")[0];this.thumbY=this.target.parentElement.getElementsByClassName(this.classPrefix+"-v-thumb")[0];this.trackX=this.target.parentElement.getElementsByClassName(this.classPrefix+"-h")[0];this.trackY=this.target.parentElement.getElementsByClassName(this.classPrefix+"-v")[0];0!==t.scrollDefaultWidth||this.props.isFreezeX||(this.trackX.parentElement.removeChild(this.trackX),this.trackX=null,this.thumbX=null);0===t.scrollDefaultHeight&&(this.trackY.parentElement.removeChild(this.trackY),this.trackY=null,this.thumbY=null)},t.prototype.initPosition=function(){n.prototype.initPosition.call(this);this.trackX&&(this.props.trackLeft&&(this.trackX.style.left=this.props.trackLeft+"px"),this.props.trackRight&&(this.trackX.style.right=this.props.trackRight+"px"))},t.prototype.calcThumbXWidth=function(){var n=this.target.offsetWidth,t;this.props.trackLeft&&(n-=this.props.trackLeft);this.props.trackRight&&(n-=this.props.trackRight);t=Math.round(n/this.contentX*n);t<20&&(t=20);this.thumbX.style.width=t+"px"},t.prototype.calcThumbYHeight=function(){n.prototype.calcThumbYHeight.call(this);this._windowHasScroll=this.windowDiv&&this.windowDiv.scrollHeight>this.windowDiv.clientHeight},Object.defineProperty(t.prototype,"windowHasScroll",{get:function(){return this._windowHasScroll},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTrackActive",{get:function(){return"visible"===this.trackY.style.visibility},enumerable:!1,configurable:!0}),t.prototype.mouseWheelListener=function(t){!this.isTrackActive||this.windowHasScroll&&this.gridDiv&&this.gridDiv!==document.activeElement||n.prototype.mouseWheelListener.call(this,t)},t.prototype.onResizeContent=function(){this.calcThumbs()},t}(u.BaseScroll)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.componentDidUpdate=function(){n.prototype.componentDidUpdate.call(this);this.initTarget();this.target&&this.scrollListener(null)},Object.defineProperty(t.prototype,"classPrefix",{get:function(){return"scroll"},enumerable:!1,configurable:!0}),t.prototype.initTarget=function(){n.prototype.initTarget.call(this);this.props.postion&&(this.domElement.style.position=this.props.postion);(this.props.top||this.props.top>=0)&&(this.domElement.style.top=this.props.top+"px");(this.props.left||this.props.left>=0)&&(this.domElement.style.left=this.props.left+"px");(this.props.right||this.props.right>=0)&&(this.domElement.style.right=this.props.right+"px");(this.props.bottom||this.props.bottom>=0)&&(this.domElement.style.bottom=this.props.bottom+"px");(this.props.width||this.props.width>=0)&&(this.domElement.style.width=this.props.width+"px");(this.props.height||this.props.height>=0)&&(this.domElement.style.height=this.props.height+"px");(this.props.maxHeight||this.props.maxHeight>=0)&&(this.domElement.style.maxHeight=this.props.maxHeight+"px");(this.props.zIndex||this.props.zIndex>=0)&&(this.domElement.style.zIndex=this.props.zIndex.toString())},t.prototype.calcThumbX=function(){this.trackX&&(this.contentX<=this.target.clientWidth?this.trackX.style.visibility="hidden":(this.trackX.style.visibility="visible",this.calcThumbXWidth()))},t.prototype.calcThumbY=function(){this.trackY&&(this.contentY<=this.target.clientHeight?this.trackY.style.visibility="hidden":(this.trackY.style.visibility="visible",this.calcThumbYHeight()))},t}(u.BaseScroll)},function(n,t,i){"use strict";i.d(t,"a",function(){return f});var u=i(0),r=i(2),f=function(){function n(n,t){void 0===t&&(t=null);this.id=n.Name;this.isVisible=n.IsVisible;this.caption=n.CaptionHtml?n.CaptionHtml.replace("...",""):"";this.shortcut=n.Key;this.tagInfo=n.TagInfo;this.fullKeys="";this.keys=this.shortcut.split("+");this.clickHandler=t||function(){n.postClick()};this.init()}return n.prototype.init=function(){var n=this;this.key="";this.keyCode=0;this.isAltKey=!1;this.isShiftKey=!1;this.isCtrlKey=!1;r.a.each(this.keys,function(t){var i=t.trim();"alt"===i.toLowerCase()&&(n.isAltKey=!0);"ctrl"===i.toLowerCase()&&(n.isCtrlKey=!0);"shift"===i.toLowerCase()&&(n.isShiftKey=!0)});this.fullKeys=r.a.map(this.keys,function(n,t){return t>0||0===t&&"ctrl"!==n.toLowerCase()?n:""}).join(" ");" "===this.fullKeys.charAt(0)&&(this.fullKeys=this.fullKeys.substring(1,this.fullKeys.length));this.key=0===this.keys.length?this.shortcut:this.keys[this.keys.length-1];this.keyCode=this._getKeyCode();void 0===this.keyCode&&(this.key=null)},Object.defineProperty(n.prototype,"Id",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Caption",{get:function(){return this.caption},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"TagInfo",{get:function(){return this.tagInfo},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Key",{get:function(){return this.key},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"KeyCode",{get:function(){return this.keyCode},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"FullKeys",{get:function(){return this.fullKeys},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsAltKey",{get:function(){return this.isAltKey},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsShiftKey",{get:function(){return this.isShiftKey},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsCtrlKey",{get:function(){return this.isCtrlKey},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsAcceptKey",{get:function(){return this.keys.length>1&&"ctrl"===this.keys[0].toLowerCase()&&"enter"===this.keys[1].toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsKeyWithCtrl",{get:function(){return this.keys.length>1&&"ctrl"===this.keys[0].toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsShortcut",{get:function(){return this.keys.length>1||this.keys[0].length>1&&"F"===this.keys[0].charAt(0)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsFunctionKey",{get:function(){return this.keys[0].length>1&&"F"===this.keys[0].charAt(0)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsAlpha",{get:function(){var t=this;return n.alpha.some(function(n){return n.toLowerCase()===t.Key.toLowerCase()})},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsVisible",{get:function(){return this.isVisible},set:function(n){this.isVisible=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ClickHandler",{get:function(){return this.clickHandler},enumerable:!1,configurable:!0}),n.prototype._getKeyCode=function(){var r,t,i;if(this.Key)return r=this.Key.toLowerCase(),t=u.KeyboardEventProps.Keys[r],t||(i=n.alpha.filter(function(n){return n===r}),i&&1===i.length&&(t=i[0].charCodeAt(0)-32)),t},n.prototype.isEqual=function(n,t){return!!n&&(t?n.keyCode===this.KeyCode&&n.ctrlKey===this.IsCtrlKey:n.keyCode===this.KeyCode&&(n.altKey===this.IsAltKey&&this.IsAlpha&&!n.altRightKey||n.altKey===this.IsAltKey&&!this.IsAlpha)&&n.shiftKey===this.IsShiftKey)},n.isValidSpecialKey=function(n){var t=n.split("+");return r.a.all(t,function(n){return 1===n.length||void 0!==u.KeyboardEventProps.Keys[n.toLowerCase()]})},n.alpha="abcdefghijklmnopqrstuvwxyz".split(""),n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,f=i(1),u=i.n(f),e=i(3),o=i.n(e),s=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.state={version:i.state.version},i}return h(t,n),Object.defineProperty(t.prototype,"name",{get:function(){return this.props.keyShortcut.Id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return this.classes={},this.classes["shortcut-cmd"]=!0,o()(this.classes)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commandDescription",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagInfo",{get:function(){return this.props.tagInfo?this.props.tagInfo:null},enumerable:!1,configurable:!0}),t.prototype.prepareStyle=function(){this.style=null},t.prototype.createContent=function(){var n=this;return u.a.createElement("div",{className:"content",onClick:function(t){return n.onClick(t)}},u.a.createElement("div",{className:"key-cmd"},this.props.keyShortcut.FullKeys),u.a.createElement("div",{className:"key-desc"},this.props.keyShortcut.Caption.GetSplittedElement()))},t.prototype.focus=function(){this.domElement&&this.domElement.classList.add("hover")},t.prototype.blur=function(){this.domElement&&this.domElement.classList.remove("hover")},t.prototype.onClick=function(n){this.props.hideShortcutWindow&&this.props.hideShortcutWindow(n);this.props.keyShortcut.ClickHandler&&this.props.keyShortcut.ClickHandler()},t}(s.Command)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var f,o=i(1),r=i.n(o),e=i(2),u=i(0),s=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){var i=n.call(this,t)||this;return i.keyNavigator=new u.ShortcutWindowKeyNavigator(i),i}return s(t,n),t.prototype.componentDidMount=function(){this.keyNavigator&&this.keyNavigator.onComponentDidMount()},t.prototype.componentDidUpdate=function(){this.keyNavigator&&this.keyNavigator.onComponentDidUpdate()},t.prototype.componentWillUnmount=function(){this.keyNavigator&&this.keyNavigator.onComponentWillUnmount()},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.keyUpListener=function(n){this.keyNavigator&&this.keyNavigator.keyUpListener(n)},t.prototype.handleShortcutCommand=function(n){var r=this,t=e.a.find(this.shortcuts,function(t){return t.KeyCode===n.keyCode&&t.IsAltKey===n.event.altKey&&t.IsShiftKey===n.event.shiftKey&&(!r.isVisible&&t.IsCtrlKey===n.event.ctrlKey||r.isVisible&&!n.event.ctrlKey)}),i;t&&(n.setHandled(),i=u.WindowManager.Instance.ActiveWindow,i?i.ValidateFocusedEditor().then(function(){t.ClickHandler()}):t.ClickHandler())},Object.defineProperty(t.prototype,"id",{get:function(){return"shWindow"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.props.visible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcuts",{get:function(){var t=[],n;return this.hasShortcuts?!(t=u.WindowManager.Instance.ActiveWindow.RegisteredShortcuts.values)||0===t.length?[]:(n=t.filter(function(n){return n.IsVisible?n:null}),n&&0!==n.length?n.sort(this.sortCommands.bind(this)):n=[]):t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShortcuts",{get:function(){return u.WindowManager.Instance&&u.WindowManager.Instance.ActiveWindow&&u.WindowManager.Instance.ActiveWindow.RegisteredShortcuts.length>0},enumerable:!1,configurable:!0}),t.prototype.sortCommands=function(n,t){return n.IsKeyWithCtrl&&t.IsKeyWithCtrl?this.compareKey(n,t):n.IsKeyWithCtrl&&!t.IsKeyWithCtrl?-1:!n.IsKeyWithCtrl&&t.IsKeyWithCtrl?1:n.IsFunctionKey&&t.IsFunctionKey?this.compareKey(n,t):n.IsFunctionKey&&!t.IsFunctionKey?-1:!n.IsFunctionKey&&t.IsFunctionKey?1:n.IsAltKey&&t.IsAltKey?this.compareKey(n,t):n.IsAltKey&&!t.IsAltKey?-1:!n.IsAltKey&&t.IsAltKey?1:n.IsShiftKey&&t.IsShiftKey?this.compareKey(n,t):n.IsShiftKey&&!t.IsShiftKey?-1:!n.IsShiftKey&&t.IsShiftKey?1:this.compareKey(n,t)},t.prototype.compareKey=function(n,t){return n.IsFunctionKey&&t.IsFunctionKey?parseInt(n.Key.substring(1))>parseInt(t.Key.substring(1))?1:-1:n.IsAltKey&&t.IsAltKey||n.IsShiftKey&&t.IsShiftKey||n.IsKeyWithCtrl&&t.IsKeyWithCtrl||1==n.Key.length&&n.Key.length==t.Key.length?n.Key.charCodeAt(0)>t.Key.charCodeAt(0)?1:-1:n.Key.length>t.Key.length?-1:1},t.prototype.createCommands=function(){var t=this,n;return this.hasShortcuts?(n=e.a.map(this.shortcuts,function(n,i){return n.IsVisible?r.a.createElement(u.ShortcutCommand,{key:"key_"+i,ref:"key_"+i,tagInfo:n.TagInfo,hideShortcutWindow:function(n){return t.onDialogClose(n)},keyShortcut:n}):null}),r.a.createElement("div",{className:"sh-commands"},n)):null},t.prototype.createContent=function(){var n=this,t={display:this.props.visible&&this.hasShortcuts?"flex":"none"};return r.a.createElement("div",{id:this.id+"_overlay",style:t,className:"shortcut-overlay",ref:"overlay",onClick:function(t){return n.onDialogClose(t)}},r.a.createElement("div",{className:"shortcut-window",ref:"shortcut",draggable:!0},r.a.createElement("div",{className:"sh-header"},r.a.createElement("div",{className:"sh-title",dangerouslySetInnerHTML:{__html:u.LanguageConstants.RESOURCES.Str_ShortcutsTitle}}),r.a.createElement("div",{className:"sh-close",onClick:function(t){return n.onCloseWindow(t)}},r.a.createElement(u.SvgIcon,{classes:"icon",name:"anuluj"}))),this.createCommands(),r.a.createElement("div",{className:"sh-footer",dangerouslySetInnerHTML:{__html:u.LanguageConstants.RESOURCES.Str_ShortcutsFooter}})))},t.prototype.onCloseWindow=function(n){this.props.onDialogClose(n)},t.prototype.onDialogClose=function(n){n.stopPropagation();n.preventDefault();(n.target===this.refs.overlay||n.target.parentElement&&n.target.parentElement&&n.target.parentElement.parentElement.classList.contains("shortcut-cmd"))&&this.props.onDialogClose&&this.props.onDialogClose(n)},t.prototype.render=function(){return this.createContent()},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){var i=n.call(this,t)||this;return i.shWindow=i.reactElement,i}return f(t,n),t.prototype.onComponentDidUpdate=function(){n.prototype.onComponentDidUpdate.call(this);this.navigateFirst();this.setFocus()},t.prototype.keyDownListener=function(t){"keydown"===t.event.type&&this.shWindow.isVisible&&(this.shWindow&&this.shWindow.hasShortcuts&&(this.shWindow.handleShortcutCommand(t),t.handled)?this.shWindow.onDialogClose(t.event):n.prototype.keyDownListener.call(this,t))},t.prototype.keyUpListener=function(n){"keyup"===n.event.type&&this.shWindow.isVisible&&n.isMoveKey&&n.setHandled()},t.prototype.navigateUp=function(n){this.navigatePrevious(n)},t.prototype.navigateDown=function(n){this.navigateNext(n)},t.prototype.initItems=function(){var t,i,r,f;n.prototype.initItems.call(this);t=this.reactElement.refs;for(i in t)r=t[i],t.hasOwnProperty(i)&&r instanceof u.ShortcutCommand&&(f=t[i],this.navigationItems.push(f))},t}(u.ComponentKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var f,e=i(1),u=i.n(e),r=i(0),o=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.rememberedUser=r.StorageHelper.GetRememberUser(),i.rememberMe=!1,r.StorageHelper.RemoveLastWindowHandle(),r.CookieHelper.SetDeviceType(i.props.deviceType),void 0!==i.props.pwd&&setTimeout(function(){return i.login(!0)},10),i}return o(t,n),t.prototype.componentDidMount=function(){var n=document.getElementById("userName");n&&(n.focus(),n.select())},Object.defineProperty(t.prototype,"RememberedUser",{get:function(){return null!==this.rememberedUser&&""!==this.rememberedUser?this.rememberedUser:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"infoHost",{get:function(){return this.props.isMobileApp?u.a.createElement("div",{className:"infoLabel"},u.a.createElement(r.SvgIcon,{key:"dbHost",name:"dbHost",classes:"icon",content:r.BaseAuthPanel.dbHost}),u.a.createElement("div",{className:"text"},document.location.host)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"infoCompany",{get:function(){var n=this.props.dbName;return""===n&&(n=r.LanguageConstants.RESOURCES.Str_DefaultDb),u.a.createElement("div",{className:"infoCompany"},u.a.createElement("div",{className:"infoLabel"},u.a.createElement(r.SvgIcon,{key:"dbIcon",name:"dbIcon",classes:"icon",content:r.BaseAuthPanel.dbIcon}),u.a.createElement("div",{className:"text"},n)),this.infoHost)},enumerable:!1,configurable:!0}),t.prototype.CreateInfoMessage=function(){return this.props.isDemoVersion?null:u.a.createElement("div",{className:"s-content"},this.infoCompany)},Object.defineProperty(t.prototype,"userLabel",{get:function(){var n=r.LanguageConstants.RESOURCES.Str_UserLabel;return n||(n="Użytkownik"),n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pwdLabel",{get:function(){var n=r.LanguageConstants.RESOURCES.Str_PasswordLabel;return n||(n="Hasło"),n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rememberMeLabel",{get:function(){var n=r.LanguageConstants.RESOURCES.Str_RememberMe;return n||(n="Zapamiętaj mnie"),n},enumerable:!1,configurable:!0}),t.prototype.onErrorLogin=function(n,t,i){Object(r.OnErrorLogin)(n,this.props.isMobileApp);this.switchRecovery(t);this.updateState(r.VerifierType.Error,i)},t.prototype.onSuccessLogin=function(n,t,i){Object(r.OnSuccessLogin)(n,t,this.props.isMobileApp,i);r.StorageHelper.SetAutoPath(this.path);this.rememberMe&&r.StorageHelper.SetRememberUser(this.RememberedUser);document.location.href="/db/"+t.DBName+"#"},t.prototype.onRecoveryClick=function(){var n=Object(r.GetValueFormNode)("db","db",!0);n&&n.length>0&&(n="/"+n);window.location.href=""+r.LanguageConstants.SETTINGS.RecoveryPath+n},t.prototype.onMobileVersionClick=function(){window.location.href=this.createVersionLink("MobileBrowser")},t.prototype.onBrowserVersionClick=function(){window.location.href=this.createVersionLink("Browser")},t.prototype.onBrowserExpVersionClick=function(){window.location.href=this.createVersionLink("BrowserExp")},t.prototype.onLoginClick=function(n){n.stopPropagation();n.preventDefault();this.login(!1)},t.prototype.login=function(n){var i=this,t={url:r.Constants.LOGIN_ADDRESS,withHeaders:!0},u=this.refs.userName,o=this.refs.userPassword,f=this.refs.rememberMe,e;this.rememberedUser=u.EditValue;f&&f.Checked&&(this.rememberMe=!0);e=n?this.props.pwd:o.EditValue;t.data=r.CredentialsLogin.createCredentialContext(u.EditValue,e,this.props.deviceType);this.updateState(r.VerifierType.Hidden,"",!0);Object(r.Request)(t).then(function(n,r){n.ErrorHandle?i.onErrorLogin(t.data,n.AllowNetUserRecovery,n.ErrorHandle):i.onSuccessLogin(t.data,n,r)},function(n){i.onErrorLogin(t.data,!1,r.LanguageConstants.RESOURCES.Str_IncorrectCallLogin+n)})},t.prototype.createFields=function(){var n=this,t=this.props.isDemoVersion?"demo":this.props.user||this.RememberedUser,i=this.props.isDemoVersion?"demo":"";return[u.a.createElement("div",{key:"fldUser",className:"field"},u.a.createElement(r.SvgIcon,{key:"userIcon",name:"userIcon",classes:"icon",content:r.BaseAuthPanel.osobaIcon}),u.a.createElement(r.EditorText,{id:"userName",ref:"userName",key:"userName",type:"text",classes:"sign-text",editable:!0,editValue:t,isMobile:this.props.isMobile,isClearable:!0,parentless:!0,onFocus:function(t){return n.onFocusEditor(t)},onEditValueChanged:function(t){return n.onBlurEditor(t)}})),u.a.createElement("div",{key:"fldPwd",className:"field"},u.a.createElement(r.SvgIcon,{key:"pwdIcon",name:"pwdIcon",classes:"icon",content:r.BaseAuthPanel.klodkadIcon}),u.a.createElement(r.EditorText,{id:"userPassword",ref:"userPassword",type:"password",key:"userPassword",classes:"sign-text",editable:!0,editValue:i,isMobile:this.props.isMobile,isClearable:!0,isPassword:!0,parentless:!0,onFocus:function(t){return n.onFocusEditor(t)},onEditValueChanged:function(t){return n.onBlurEditor(t)}}))]},t.prototype.createFieldsMobile=function(){var n=this,t=this.props.isDemoVersion?"demo":this.props.user||this.RememberedUser,i=this.props.isDemoVersion?"demo":"";return[u.a.createElement("div",{key:"fldUser",className:"field"},u.a.createElement(r.SvgIcon,{key:"userIcon",name:"userIcon",classes:"icon",content:r.BaseAuthPanel.osobaIcon}),u.a.createElement(r.EditorText,{id:"userName",ref:"userName",key:"userName",type:"text",classes:"sign-text",editable:!0,editValue:t,isMobile:this.props.isMobile,isClearable:!0,onFocus:function(t){return n.onFocusEditor(t)},onEditValueChanged:function(t){return n.onBlurEditor(t)}})),u.a.createElement("div",{key:"fldPwd",className:"field"},u.a.createElement(r.SvgIcon,{key:"pwdIcon",name:"pwdIcon",classes:"icon",content:r.BaseAuthPanel.klodkadIcon}),u.a.createElement(r.EditorText,{id:"userPassword",ref:"userPassword",type:"password",key:"userPassword",classes:"sign-text",editable:!0,editValue:i,isMobile:this.props.isMobile,isClearable:!0,onFocus:function(t){return n.onFocusEditor(t)},onEditValueChanged:function(t){return n.onBlurEditor(t)}})),u.a.createElement("div",{key:"fldRememberMe",className:"field field-checkbox"},u.a.createElement(r.EditorCheckBox,{id:"rememberMe",ref:"rememberMe",key:"rememberMe",classes:"field-check",editable:!0,checked:!1,captionHtml:this.rememberMeLabel,isMobile:this.props.isMobile}))]},t.prototype.createActions=function(){var n=this;return u.a.createElement("div",{className:"s-action"},u.a.createElement(r.Button,{id:"btnLogin",key:"btnLogin",className:"button",isMobile:this.props.isMobile,isWaiting:this.state.waiting,caption:r.LanguageConstants.RESOURCES.Str_LoginButton,onClick:function(t){return n.onLoginClick(t)}}),u.a.createElement(r.Button,{id:"btnRecovery",key:"btnRecovery",ref:"btnRecovery",className:"button hidden",isMobile:this.props.isMobile,caption:r.LanguageConstants.RESOURCES.Str_RecoveryButton,onClick:function(t){return n.onRecoveryClick(t)}}),u.a.createElement(r.EditorCheckBox,{id:"rememberMe",key:"rememberMe",ref:"rememberMe",classes:"field-check",editable:!0,checked:!1,leftAlign:!0,captionHtml:r.LanguageConstants.RESOURCES.Str_RememberMe,isMobile:this.props.isMobile}))},t.prototype.createActionsMobile=function(){var n=this;return u.a.createElement("div",{className:"s-action"},u.a.createElement(r.Button,{id:"btnLogin",key:"btnLogin",className:"button",isMobile:this.props.isMobile,isWaiting:this.state.waiting,caption:r.LanguageConstants.RESOURCES.Str_LoginButton,onClick:function(t){return n.onLoginClick(t)}}),u.a.createElement(r.Button,{id:"btnRecovery",key:"btnRecovery",ref:"btnRecovery",className:"button hidden",isMobile:this.props.isMobile,caption:r.LanguageConstants.RESOURCES.Str_RecoveryButton,onClick:function(t){return n.onRecoveryClick(t)}}))},t.prototype.createVersions=function(){var n=this;return u.a.createElement("div",{className:"s-versions"},u.a.createElement(r.Button,{id:"btnMobileVersion",key:"btnMobileVersion",iconName:"smartfon",className:"button",isMobile:!1,caption:r.LanguageConstants.RESOURCES.Str_MobileVersionButton,onClick:function(t){return n.onMobileVersionClick(t)}}))},t.prototype.createVersionsMobile=function(){var n=this;return this.props.isMobileApp?null:u.a.createElement("div",{className:"s-versions"},u.a.createElement(r.Button,{id:"btnBrowserExpVersion",key:"btnBrowserExpVersion",iconName:"pulpit",className:"button",isMobile:!0,caption:r.LanguageConstants.RESOURCES.Str_BrowserExpVersionButton,onClick:function(t){return n.onBrowserExpVersionClick(t)}}))},t.prototype.createThemes=function(){return r.GlobalSettings.Instance.IsStandardProduct?null:u.a.createElement("div",{className:"s-themes"},u.a.createElement(r.ThemePicker,{name:"themes",isMobile:this.props.isMobile}))},t.prototype.createVersionLink=function(n){return"/Login"+(this.props.dbName?"/"+this.props.dbName:"")+"?deviceType="+n},t.prototype.switchRecovery=function(n){var t=document.getElementById("btnRecovery");t&&r.ControlBase.switchClass(t,"hidden",!n)},t.prototype.initState=function(n,t,i){void 0===t&&(t="");void 0===i&&(i=!1);this.state={verifierState:this.autoLogout?r.VerifierType.Warning:n,verifierText:this.autoLogout?r.LanguageConstants.RESOURCES.Str_AutoLogoutInfo:t,waiting:i}},t.prototype.renderBrowser=function(){var n=this;return u.a.createElement("div",{ref:"content",className:"signin-content"},this.createFields(),this.createActions(),this.createVersions(),this.createThemes(),this.CreateInfoMessage(),this.createDialog(),u.a.createElement(r.SimpleKeyboardController,{key:"skc",initRoot:function(){return n.initRootDom()},walkerType:r.SignInKeyboardDomTreeWalker}))},t.prototype.renderMobile=function(){return u.a.createElement("div",{key:"0",className:"signin-content"},this.createFieldsMobile(),this.createActionsMobile(),this.createVersionsMobile(),this.createThemes(),this.CreateInfoMessage(),this.createDialog())},t}(r.BaseAuthPanel)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.onCommandClick=function(n){"open"===n?(this.props.onFormClose&&this.props.onFormClose(!1),this.props.parent&&this.props.parent.hide(),this.props.row&&this.props.row.postOpen()):"apply"===n&&(this.props.onFormClose&&this.props.onFormClose(!0),this.props.parent&&this.props.parent.hide())},t.prototype.hasOpenCommand=function(){if(!this.props.row||!this.props.row.Element||!this.props.row.Element.Window)return!1;var n=this.props.row.Element.Window.findElementByName(this.props.row.Element.Name+"_Open");return!!n&&n.IsVisible},t.prototype.createHeaderCommands=function(){var n=this,t=[{Name:"apply",Icon:"ok",IsVisible:!0}];return this.hasOpenCommand()&&t.push({Name:"open",Icon:"otworz",IsVisible:!0}),t.map(function(t){return u.HeaderBarMobile.createHeaderCommand(t,n.onCommandClick.bind(n,t.Name))},this)},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,e=i(1),u=i.n(e),o=i(3),s=i.n(o),r=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.className="formeip",i}return h(t,n),t.prototype.createFormContent=function(){var n=this;return this.props.dataElement?this.props.dataElement.Elements.filter(function(n){return n.IsVisible}).map(function(t,i){if("Image"===t.EditorType){var f=Math.round(.9*(document.defaultView.innerWidth-56)),e="Image"===t.EditorType?r.AttachmentUrlHelper.changeImageSizeUrl(n.props.row.Data[i+1],f):"";return t.Settings.imageUrl=e,u.a.createElement(r.FieldImage,{dataElement:t})}return r.WindowBase.createDataControl(t)},this):null},t.prototype.renderMobile=function(){return this.prepareClasses(),u.a.createElement("div",{className:s()(this.classes)},u.a.createElement(r.HeaderBarMobile,{className:"headerbar-simpleform",commands:this.createHeaderCommands()}),u.a.createElement("div",{className:"formeip-container"},this.createFormContent()))},t}(r.SimpleFormBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,e=i(1),r=i.n(e),o=i(3),s=i.n(o),u=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.className="formview",i}return h(t,n),t.prototype.createFormContent=function(){var n=this;return this.props.dataElement?this.props.dataElement.Elements.map(function(t,i){if("Field"!==t.ElementType)return null;var f=Math.round(.7*(document.defaultView.innerWidth-56)),e="Image"===t.EditorType?u.AttachmentUrlHelper.changeImageSizeUrl(n.props.row.Data[i+1],f):"";return"Image"===t.EditorType?r.a.createElement(u.ImageControlView,{key:"tcv_"+t.Name,dataElement:t,value:e}):r.a.createElement(u.TextControlView,{key:"tcv_"+t.Name,dataElement:t,value:n.props.row.Data[i+1]})},this):null},t.prototype.renderMobile=function(){return this.prepareClasses(),r.a.createElement("div",{className:s()(this.classes)},r.a.createElement(u.HeaderBarMobile,{className:"headerbar-simpleform",commands:this.createHeaderCommands()}),r.a.createElement("div",{className:"formview-container"},this.createFormContent()))},t}(u.SimpleFormBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,e=i(1),u=i.n(e),o=i(3),s=i.n(o),f=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.className="formview-image",i}return h(t,n),t.prototype.renderMobile=function(){return this.prepareClasses(),u.a.createElement("div",{className:s()(this.classes)},u.a.createElement(f.Image,{id:this.props.dataElement.Name,dataElement:this.props.dataElement,src:this.props.value}))},t}(f.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,o=i(1),r=i.n(o),s=i(3),f=i.n(s),e=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.className="formview-control",i}return h(t,n),Object.defineProperty(t.prototype,"valueClasses",{get:function(){var n=this.props.dataElement.EditorType&&"TextRight"===this.props.dataElement.EditorType;return f()({"control-value":!n,"control-value-right":n})},enumerable:!1,configurable:!0}),t.prototype.prepareValueClasses=function(){this.classes={};this.classes[this.className]=!0;var n=this.props.dataElement.EditorType&&"TextRight"===this.props.dataElement.EditorType;this.classes["control-value"]=!n;this.classes["control-right-value"]=n},t.prototype.renderMobile=function(){this.prepareClasses();var n=e.GridRowBuilderBase.NormalizeColumn(this.props.dataElement,this.props.value);return r.a.createElement("div",{className:f()(this.classes)},r.a.createElement("div",{className:"control-label",dangerouslySetInnerHTML:{__html:this.props.dataElement.CaptionHtml}}),r.a.createElement("div",{className:f()(this.valueClasses),dangerouslySetInnerHTML:{__html:n}}),r.a.createElement("div",{className:"control-bar"}))},t}(e.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var r,u=i(0),f=i(2),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this,t)||this;return i.navItems=[],i.parent=t,i}return e(t,n),Object.defineProperty(t.prototype,"NavigationItems",{get:function(){return this.navItems},enumerable:!1,configurable:!0}),t.prototype.initItems=function(){var n,t;if(this.navItems=[],n=this.parent.refs,!n)return!1;for(t in n)n.hasOwnProperty(t)&&t.indexOf("nav-item")>=0&&this.navItems.push(n[t]);this.navItems=f.a.sortBy(this.navItems,function(n){return parseInt(n.domElement.id.substr(7,n.domElement.id.length-1))});this.setFocus();this.navigateFirst()},t.prototype.moveToNavMenu=function(){this.setFocus();this.initItems()},t.prototype.keyDownListener=function(n){"keydown"===n.event.type&&(n.isEnter&&(this.accept(n),this.currentItem&&this.currentItem.focus()),(n.isTab||n.isF10)&&this.closeNavMenu(n,!1),n.isEsc&&this.closeNavMenu(n,!0),n.isDown&&this.navigateDownArrow(n),n.isUp&&this.navigateUpArrow(n),n.isHome&&(this.navigateFirst(n),this.currentItem.domElement.scrollIntoView(!1)),n.isEnd&&(this.navigateLast(n),this.currentItem.domElement.scrollIntoView(!1)))},t.prototype.navigateDownArrow=function(n){this.currentItem?(this.navigateNext(n),this.currentItem.domElement.scrollIntoView(!1)):(this.navigateFirst(),this.currentItem.domElement.scrollIntoView(!1))},t.prototype.navigateUpArrow=function(n){this.currentItem?(this.navigatePrevious(n),this.currentItem.domElement.scrollIntoView(!1)):(this.navigateLast(),this.currentItem.domElement.scrollIntoView(!1))},t.prototype.closeNavMenu=function(){},t}(u.ComponentKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,e=i(1),r=i.n(e),o=i(4),s=i.n(o),f=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.defaultWidth=f.GlobalSettings.Instance.IsStandardProduct?352:350,i.props.isMobile||(i.simpleMenuKeyNavigator=new f.SimpleMenuKeyNavigator(i)),i}return h(t,n),t.prototype.componentDidMount=function(){this.domElement=s.a.findDOMNode(this);this.simpleMenuKeyNavigator&&(this.simpleMenuKeyNavigator.onComponentDidMount(),this.simpleMenuKeyNavigator.moveToNavMenu())},t.prototype.componentDidUpdate=function(){this.simpleMenuKeyNavigator&&this.simpleMenuKeyNavigator.onComponentDidUpdate()},t.prototype.componentWillUnmount=function(){this.simpleMenuKeyNavigator&&this.simpleMenuKeyNavigator.onComponentWillUnmount()},t.prototype.keyDownListener=function(n){this.simpleMenuKeyNavigator&&this.simpleMenuKeyNavigator.keyDownListener(n)},t.prototype.closePopup=function(n){this.props.closePopup(n)},t.prototype.onMouseOver=function(n){var t=parseInt(n.target.getAttribute("data-number"));this.simpleMenuKeyNavigator&&t!==this.simpleMenuKeyNavigator.CurrentItemIdx&&this.simpleMenuKeyNavigator.navigateToSelectedIndex(t)},Object.defineProperty(t.prototype,"items",{get:function(){var n=this;return this.props.items.map(function(t,i){return r.a.createElement(f.SimpleMenuItem,{ref:"nav-item"+i,key:"sm-"+i,captionHtml:t.CaptionHtml,dt:t.dataElement,keyName:"nav-item"+i,dataNumber:i,onClickCallback:n.props.onClickCallback?n.props.onClickCallback:null,onMouseOverCallback:n.onMouseOver.bind(n)})})},enumerable:!1,configurable:!0}),t.prototype.render=function(){return r.a.createElement("div",{ref:"simplemenu",className:"popup-simple-menu",style:{width:this.defaultWidth+"px"}},r.a.createElement("div",{key:"popup-col0",className:"popup-column"},this.items))},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,e=i(1),u=i.n(e),o=i(4),s=i.n(o),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),f=function(){return(f=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},c=function(n){function t(t){var i=n.call(this,t)||this;return i._isHover=!1,i}return h(t,n),t.prototype.componentDidMount=function(){this.domElement=s.a.findDOMNode(this);var n=this.refs.cap;n&&n.innerHTML&&this.capTextWidth(n)<350&&n.classList.add("no-animate")},t.prototype.capTextWidth=function(n){var i,t=document.createElement("div");return t.setAttribute("id","tmpTxt"),t.setAttribute("style","position: absolute; width: auto; visibility: hidden;"),t.innerHTML=n.innerHTML,document.body.append(t),i=document.getElementById("tmpTxt").getBoundingClientRect().width,document.getElementById("tmpTxt").remove(),i},t.prototype.focus=function(){this.domElement&&this.domElement.classList.add("hover")},t.prototype.blur=function(){this.domElement&&this.domElement.classList.remove("hover")},t.prototype.onClick=function(){this.props.onClickCallback?this.props.onClickCallback(this.props.dt):this.props.dt.postClick("")},t.prototype.onMouseOver=function(n){this._isHover=!0;this.props.onMouseOverCallback&&this.props.onMouseOverCallback(n)},t.prototype.onMouseLeave=function(){this._isHover=!1},t.prototype.render=function(){var n=this,t={id:this.props.dt.Name,ref:this.props.keyName,key:this.props.keyName,className:"nav-item"+(this._isHover?" hover":""),onClick:function(t){return n.onClick(t)},onMouseOver:function(t){return n.onMouseOver(t)},onMouseMove:function(t){return n.onMouseOver(t)},onMouseLeave:function(){return n.onMouseLeave()}};return u.a.createElement("div",f({},t),u.a.createElement("div",f({"data-number":this.props.dataNumber?""+this.props.dataNumber:"0"},{ref:"cap",className:"nav-item-cap"}),this.props.captionHtml))},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.moveToNavMenu=function(){this.setFocus();this.initItems()},t.prototype.closeNavMenu=function(n,t){this.parent.closePopup(n.event);n.setHandled(!t)},t}(u.MenuKeyNavigatorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.moveToNavMenu=function(){},t.prototype.closeNavMenu=function(n,t){this.parent.closePopup(n.event);n.setHandled(!t)},t}(u.MenuKeyNavigatorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var f=i(2),e=i(0),r=function(n){this.dataElement=n;this.CaptionHtml=this.dataElement.CaptionHtml},u=function(){},o=function(){function n(){}return n.createNavigationMenu=function(n){var i=e.LanguageConstants.RESOURCES.Str_General,t=n.filter(function(n){return"Page"===n.ElementType&&n.IsVisible}).map(function(n,t){var u,f=new r(n);return f.CaptionHtml=(u=n).CaptionHtml&&u.CaptionHtml.indexOf("/")>=0?u.CaptionHtml.split("/")[1]:u.CaptionHtml,f.Group=function(n){return n.CaptionHtml&&n.CaptionHtml.indexOf("/")>=0?n.CaptionHtml.split("/")[0]:i}(n),f.Priority=t,f}).reduce(function(t,i){var e,u,r=i.Group;return t[r]?t[r].Children.push(i):t[r]={Children:[i]},t[r].GroupIcon||(t[r].GroupIcon=i.dataElement.GroupIcon?i.dataElement.GroupIcon:(e=r,(u=f.a.find(n,function(n){return"Page"===n.ElementType&&0===n.CaptionHtml.indexOf(e)&&n.GroupIcon}))&&u.GroupIcon?u.GroupIcon:"info")),t},{});return Object.keys(t).map(function(n){var r=new u,i=t[n];return r.CaptionHtml=n,r.GroupIcon=i.GroupIcon?i.GroupIcon:i.Children&&i.Children[0]&&i.Children[0].dataElement.GroupIcon?i.Children[0].dataElement.GroupIcon:"info",r.Children=i.Children,r},this)},n.createPopupMenu=function(n){return n.map(function(n){var i=n.CaptionHtml,f=n.Elements.map(function(n,t){var u=new r(n);return u.Group=i,u.Priority=t,u}),t=new u;return t.CaptionHtml=n.CaptionHtml,t.GroupIcon=n.GroupIcon,t.Children=f,t},this)},n.createSingleGroupWithItem=function(n){var i=new r(n),t;return i.Group=n.CaptionHtml,i.Priority=0,t=new u,t.CaptionHtml=n.CaptionHtml,t.GroupIcon=n.Icon,t.Children=[i],t},n}()},function(n,t,i){"use strict";var o;i.d(t,"a",function(){return e});i.d(t,"b",function(){return o});var f,e,s=i(1),r=i.n(s),h=i(2),u=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});!function(n){n[n.Left=0]="Left";n[n.Right=1]="Right"}(e||(e={}));o=function(n){function t(t){var i=n.call(this,t)||this,r;return i.flatPages={},r=i,i.defaultGroupName=u.LanguageConstants.RESOURCES.Str_General,i.state={activeGroupName:i.getGroupName(i.props.selectedPage)||i.getActiveGroupName(),filterValue:""},i.props.pages.forEach(function(n){n.Children&&n.Children.forEach(function(n){r.flatPages[n.dataElement.Name]=n.dataElement})}),i}return c(t,n),t.prototype.getActiveGroupName=function(){var n=this.props.pages&&this.props.pages[0]?this.props.pages[0].CaptionHtml:"";return this.getGroupName(n)},t.prototype.getGroupName=function(n){var t=n.indexOf("/")>-1?n.split("/")[0]:n;return h.a.some(this.props.pages,function(n){return n.CaptionHtml===t})||(t=this.defaultGroupName),t},t.prototype.pageClicked=function(n){var t=this.flatPages[n];console.assert(!!t,"SlideMenu page clicked. Page not found: "+n);t&&t.postClick();this.props.toggleMenu()},t.prototype.setFilterValue=function(n){var t=n.target.value;this.setState({activeGroupName:t?"":this.getActiveGroupName(),filterValue:t})},t.prototype.setActiveGroup=function(n){this.setState({activeGroupName:n,filterValue:""})},t.prototype.findBiggestNoOfRows=function(n){var t=n.length;return n.map(function(n){t=n.Children.length>t?n.Children.length:t}),t},t.prototype.getStandardRowHeight=function(){switch(Object(u.returnDeviseType)()){case"m":return 48;case"l":return 72;case"xl":return 96;default:return 0}},t.prototype.calculateHeight=function(n){var t=this.getStandardRowHeight(),i=t,r=document.defaultView.screen.height;if("TopCloseBox"===n)t=i;else if("ContentBox"===n&&(t*=this.findBiggestNoOfRows(this.props.pages)+2)>r-i)return 100-100*i/r;return 100*t/r},t.prototype.render=function(){var n=this;return r.a.createElement("div",{className:"slidemenu"},r.a.createElement("div",{className:"slidemenu-header"},r.a.createElement(u.SvgIcon,{name:"wstecz",classes:"icon",onClick:function(){return n.props.toggleMenu()}}),r.a.createElement("div",{className:"slidemenu-header-input"},r.a.createElement("input",{id:"slidemenu-search-input",key:"slidemenu-search-input",placeholder:u.LanguageConstants.RESOURCES.Str_SearchText,onClick:function(n){n.preventDefault();n.stopPropagation()},onChange:function(t){return n.setFilterValue(t)},value:this.state.filterValue}))),r.a.createElement(u.SlideMenuContent,{pages:this.props.pages,pageClicked:function(t){return n.pageClicked(t)},filterValue:this.state.filterValue,activeGroupName:this.state.activeGroupName,changeActiveGroup:function(t){return n.setActiveGroup(t)}}))},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),r=i.n(e),f=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.state={activeGroupName:i.props.activeGroupName,filterValue:""},i}return o(t,n),t.prototype.componentWillReceiveProps=function(n){this.state.filterValue===n.filterValue&&this.state.activeGroupName===n.activeGroupName||this.setState({activeGroupName:n.activeGroupName,filterValue:n.filterValue})},t.prototype.render=function(){var n=this,t=this.props.pages;return r.a.createElement("div",{className:"slidemenu-content"},r.a.createElement("div",{className:"slidemenu-content-groups"},t.map(function(t,i){return r.a.createElement(f.SlideMenuGroup,{key:t.CaptionHtml+"_"+i,text:t.CaptionHtml,active:n.state.activeGroupName===t.CaptionHtml,icon:t.GroupIcon?t.GroupIcon:"info",setActiveGroupName:function(t){return n.props.changeActiveGroup(t)}})},this)),r.a.createElement("div",{className:"slidemenu-content-items"},t.map(function(t){return t.Children.map(function(t,i){if(t.Group==n.state.activeGroupName||n.state.filterValue&&t.dataElement.CaptionHtml&&t.CaptionHtml.toLowerCase().indexOf(n.state.filterValue.toLowerCase())>-1)return r.a.createElement(f.SlideMenuItem,{key:t.dataElement.Name+"_ch_"+i,name:t.dataElement.Name,text:t.CaptionHtml,pageClicked:function(t){return n.props.pageClicked(t)}})},n)},this)))},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var u,e=i(1),r=i.n(e),o=i(3),f=i.n(o),s=i(0),h=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.prototype.onClick=function(n){n.stopPropagation();n.preventDefault();this.props.setActiveGroupName(this.props.text)},t.prototype.prepareClasses=function(){this.classes={"slidemenu-group":!0,"slidemenu-group-active":this.props.active}},Object.defineProperty(t.prototype,"iconclasses",{get:function(){return f()({"slidemenu-group-icon":!0})},enumerable:!1,configurable:!0}),t.prototype.render=function(){var n=this;return this.prepareClasses(),r.a.createElement("div",{onClick:function(t){return n.onClick(t)},className:f()(this.classes)},r.a.createElement(s.SvgIcon,{name:this.props.icon,classes:this.iconclasses}),r.a.createElement("div",{className:"slidemenu-group-title",dangerouslySetInnerHTML:{__html:this.props.text}}))},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,f=i(1),u=i.n(f),e=i(3),o=i.n(e),s=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.prototype.onClick=function(n){n.stopPropagation();n.preventDefault();this.props.pageClicked(this.props.name)},Object.defineProperty(t.prototype,"id",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return o()({command:!0})},enumerable:!1,configurable:!0}),t.prototype.createContent=function(){return u.a.createElement("div",{className:"slidemenu-item",dangerouslySetInnerHTML:{__html:this.props.text}})},t.prototype.render=function(){return u.a.createElement(s.ClickableElement,{parent:this})},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,e=i(1),u=i.n(e),o=i(4),s=i.n(o),f=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.state={top:0},i.resizing=!1,i.resizeStartX=0,i}return h(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.targetElement=s.a.findDOMNode(this.props.parent);this.targetElementRect=this.targetElement.getBoundingClientRect();this.targetResizerRect=this.domElement.getBoundingClientRect()},t.prototype.initEventListeners=function(){this.mouseDownHandler=this.mouseDownListener.bind(this);this.mouseMoveHandler=this.mouseMoveListener.bind(this);this.mouseUpHandler=this.mouseUpListener.bind(this)},Object.defineProperty(t.prototype,"top",{get:function(){return this.targetElementRect&&this.targetResizerRect?this.targetElementRect.height/2-this.targetResizerRect.height/2:0},enumerable:!1,configurable:!0}),t.prototype.mouseDownListener=function(n){n.preventDefault();n.stopPropagation();document.addEventListener("mousemove",this.mouseMoveHandler,!1);document.addEventListener("mouseup",this.mouseUpHandler,!1);this.startResizing(n.clientX)},t.prototype.mouseMoveListener=function(n){this.moveResizing(n.clientX)},t.prototype.mouseUpListener=function(n){n.preventDefault();n.stopPropagation();document.removeEventListener("mousemove",this.mouseMoveHandler,!1);document.removeEventListener("mouseup",this.mouseUpHandler,!1);this.endResizing()},t.prototype.startResizing=function(n){this.resizing=!0;this.resizeStartX=n;this.props.onResizeStart&&this.props.onResizeStart()},t.prototype.moveResizing=function(n){if(this.resizing){var t=n-this.resizeStartX;this.props.onResizeDrag&&this.props.onResizeDrag(t)}},t.prototype.endResizing=function(){this.resizing=!1;this.props.onResizeEnd&&this.props.onResizeEnd()},t.prototype.render=function(){var n=this;return u.a.createElement("div",{className:"resizer"},u.a.createElement(f.SvgIcon,{name:"wiecej",classes:"icon",onClickDown:function(t){return n.mouseDownListener(t)},onClickUp:function(t){return n.mouseUpListener(t)}}))},t}(f.ControlEventListener)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,o=i(1),u=i.n(o),s=i(3),f=i.n(s),e=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){return n.call(this,t)||this}return h(t,n),t.getControlType=function(n){return t.isFirstChildHasMainGroup(n)?e.TileMenu:t},t.isFirstChildHasMainGroup=function(n){var t=n.Elements[0];return!!t&&t.hasClass("MainGroup")},Object.defineProperty(t.prototype,"isPage",{get:function(){return"Page"===this.props.dataElement.ElementType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDialog",{get:function(){return this.props.dataElement.hasClass("Dialog")},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes.stack=!0},t.prototype.prepareStyle=function(){n.prototype.prepareStyle.call(this);t.isFirstChildHasMainGroup(this.props.dataElement)?(this.style.height="unset",this.style.width="unset",this.style.minWidth="unset"):this.isPage&&this.props.dataElement&&this.props.dataElement.Location&&(this.props.dataElement.Location.MinHeight&&(this.style.minHeight=this.props.dataElement.Location.MinHeight+"px"),this.props.dataElement.Location.MinWidth&&(this.style.minWidth=this.props.dataElement.Location.MinWidth+"px"))},t.prototype.renderMobile=function(){return this.prepareClasses(),u.a.createElement("div",{key:this.props.dataElement.ReactUniqueKey,className:f()(this.classes)},this.createControls())},t.prototype.renderBrowser=function(){return this.prepareClasses(),this.prepareStyle(),u.a.createElement("div",{key:this.props.dataElement.ReactUniqueKey,className:f()(this.classes),style:this.style},this.createControls())},t}(e.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(1),e=i.n(f),u=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.state={svgContent:i.props.content||i.getSvgContent(i.props.name)},i}return o(t,n),t.prototype.componentWillReceiveProps=function(n){n.name!==this.props.name&&this.setState({svgContent:this.getSvgContent(n.name)})},t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.updateFillColor()},t.prototype.componentDidUpdate=function(){this.updateFillColor()},t.prototype.getSvgWithoutFillAttr=function(n){var i=n.indexOf("fill:")-7,r=n.indexOf("fill:")+8,u=n.substring(i,r),t=n.replace(u,"");return t.indexOf("fill:")>0?this.getSvgWithoutFillAttr(t):t},t.prototype.getSvgContent=function(n){var t=u.SvgManager.GetSvgContent(n);return t?t.indexOf("fill:")>0&&"theme"!==n?this.getSvgWithoutFillAttr(t):t:null},t.prototype.updateFillColor=function(){var r=this,t,n,i;this.props.fillColor&&(t=this.refs["svg-con"],t&&(n=t.getElementsByTagName("svg"),i=n&&n[0]?n[0].childNodes:null,i&&i.forEach(function(n){return n.style.fill=r.props.fillColor})))},t.prototype.initEventListeners=function(){this.mouseDownHandler=this.mouseDownListener.bind(this);this.mouseClickHandler=this.mouseClickListener.bind(this);this.mouseUpHandler=this.mouseUpListener.bind(this);this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"click",handler:this.mouseClickHandler},{domElement:this.domElement,type:"mousedown",handler:this.mouseDownHandler},{domElement:this.domElement,type:"mouseup",handler:this.mouseUpHandler},{domElement:this.domElement,type:"touchend",passive:!0,handler:this.mouseUpHandler}])},t.prototype.mouseClickListener=function(n){this.props.onClick&&this.props.onClick(n)},t.prototype.mouseDownListener=function(n){this.props.onClickDown&&this.props.onClickDown(n)},t.prototype.mouseUpListener=function(n){this.preventEvents(n);++u.Test._mouseUpCounter;this.props.onClickUp&&this.props.onClickUp(n)},t.prototype.render=function(){return e.a.createElement("div",{id:this.props.id,"data-id":this.props.id,ref:"svg-con","data-icon":this.props.name,style:this.props.style,className:this.props.classes,dangerouslySetInnerHTML:{__html:this.state.svgContent}},this.props.children)},t.errorIcon='<svg viewBox= "0 0 160 160"><path d="M 79.999998,2.15162 C 36.943999,2.15162 2,37.061657 2,80.075809 2,123.08996 36.943999,158 79.999998,158 123.056,158 158,123.08996 158,80.075809 158,37.061657 123.056,2.15162 79.999998,2.15162 z m 7.8,116.88628 h -15.6 v -15.58483 h 15.6 v 15.58483 z m 0,-31.169672 h -15.6 V 41.113715 h 15.6 v 46.754513 z" /><\/svg>',t.warningIcon='<svg viewBox="0 0 160 160"><path d="M 2,146 H 158 L 79.999998,10.58764 2,146 z M 87.090903,124.6191 H 72.909092 v -14.25393 h 14.181811 v 14.25393 z m 0,-28.507868 H 72.909092 V 67.60337 h 14.181811 v 28.507862 z" /><\/svg>',t.enova365Icon='<svg viewBox="0 0 160 27"><path d="M 69.153999,13.642175 C 69.153999,21.008872 63.153706,27 55.762491,27 48.37928,27 42.385993,21.008872 42.385993,13.642175 c 0,-7.313717 5.993287,-13.30884 13.376498,-13.30884 7.391215,0 13.391508,5.995123 13.391508,13.30884 m -18.322327,6.339018 c 0,0.765761 0.652901,1.412559 1.422965,1.412559 0.260363,0 0.502696,-0.04299 0.730006,-0.166948 l 10.509532,-6.341016 c 0.423584,-0.251923 0.720998,-0.723777 0.720998,-1.243613 0,-0.505844 -0.297414,-0.93571 -0.720998,-1.200627 L 53.367176,6.328458 C 52.897525,6.068538 52.515,5.937581 52.254637,5.937581 c -0.770064,0 -1.422965,0.644797 -1.422965,1.41056 l 0,12.633052 z m 44.758475,-14.755785 0,0.042 c 0,0.738766 0.536744,1.342576 1.254736,1.47054 l 5.135107,0 c 2.34924,0 3.86033,0.3099 4.1297,4.118713 l -3.74317,0 c -1.76344,0 -7.150887,0 -7.150887,5.935143 0,4.4886 3.139338,6.076103 5.833057,6.076103 l 6.58911,0 c 0.82114,0 1.49507,-0.664792 1.49507,-1.484536 l 0,-9.245113 c 0,-5.87616 -2.13695,-8.37638 -7.15288,-8.37638 l -5.135107,0 c -0.717992,0.112963 -1.254736,0.72877 -1.254736,1.463543 M 88.81979,4.319685 82.554127,20.403662 75.975034,4.446645 C 75.72869,4.026778 75.308111,3.752865 74.842466,3.693885 l -0.355494,0 c -0.131178,0.01 -0.267368,0.04998 -0.391538,0.102966 l -0.309427,0.12696 c -0.563784,0.35189 -0.845171,1.05667 -0.645893,1.70447 l 7.170914,16.885721 c 0.424587,0.515839 1.3028,0.837738 2.255115,0.827741 0.950314,0 1.821519,-0.328897 2.239098,-0.847735 L 91.644697,5.483325 C 91.764862,4.821531 91.392347,4.113751 90.733433,3.851831 L 90.46907,3.743868 c -0.0721,-0.016 -0.155213,-0.03997 -0.234323,-0.04998 l -0.402559,0 c -0.40856,0.05898 -0.772064,0.271913 -1.012398,0.6258 M 23.135985,3.761861 c -0.822137,0 -1.49707,0.659797 -1.49707,1.490534 l 0,16.208936 c 0.03706,0.724774 0.589813,1.31159 1.28878,1.406561 l 0.416576,0 c 0.669929,-0.08098 1.200658,-0.614808 1.285779,-1.275602 l 0,-14.854359 3.051218,0 c 2.587573,0 6.029333,0.35589 6.029333,5.40031 l 0,9.596005 c 0.145203,0.622805 0.700968,1.106654 1.364885,1.133646 l 0.22231,0 c 0.69696,-0.03199 1.272757,-0.54583 1.393927,-1.229616 l 0,-9.500035 c 0,-5.87616 -4.000533,-8.37638 -9.010455,-8.37638 l -4.545283,0 z M 0,12.138241 0,14.505505 c 0,6.018119 4.0716291,8.362387 8.9333508,8.362387 l 3.7992522,0 c 0.682945,-0.06398 1.226696,-0.591816 1.32583,-1.265605 l 0,-0.437863 c -0.09513,-0.652796 -0.609842,-1.180631 -1.264746,-1.269604 l -3.8603362,0 c -2.1800141,0 -5.8250536,-0.009 -5.9362069,-4.793502 l 9.9327331,0 c 0.829142,0 1.493063,-0.655793 1.493063,-1.492537 l 0,-1.47054 c 0,-5.725206 -2.270139,-8.37638 -7.1228476,-8.37638 C 2.386299,3.761861 0,6.492011 0,12.138241 m 7.3000924,-5.40031 c 2.2651317,0 4.1407246,0.404877 4.1407246,5.384317 l -8.4536875,0 c 0,-4.975443 2.0418228,-5.384317 4.3129629,-5.384317 m 90.9046736,10.05386 c 0,-1.996376 0.629872,-2.94608 4.161754,-2.94608 l 3.77422,0 0,6.049109 -5.09205,0 c -1.300794,0 -2.843924,-0.540832 -2.843924,-3.103029 m 19.105514,2.572397 c 0.721,0.432863 2.48043,1.151639 4.26689,1.151639 2.70875,0 3.77522,-1.524526 3.77522,-2.993066 0,-2.215306 -2.1029,-3.166006 -4.26589,-3.166006 l -1.61423,0 0,-2.590194 1.61423,0 c 1.61523,0 3.6891,-0.746766 3.6891,-2.588193 0,-1.295593 -0.92228,-2.361263 -2.99614,-2.361263 -1.52911,0 -3.05723,0.662793 -3.8343,1.18163 l -0.80712,-2.562197 c 1.06647,-0.717773 3.17038,-1.43855 5.39045,-1.43855 3.89138,0 5.85109,2.130337 5.85109,4.57657 0,1.95639 -1.15359,3.566883 -3.45778,4.373633 l 0,0.05698 c 2.27515,0.43086 4.09266,2.129333 4.1207,4.662543 0,3.16501 -2.65267,5.668227 -7.29108,5.668227 -2.27915,0 -4.23986,-0.633802 -5.24826,-1.295595 l 0.80712,-2.676162 z m 24.47193,-2.50272 c 0,-2.187313 -1.18163,-3.711837 -3.2575,-3.711837 -1.32583,0 -2.50647,0.804747 -3.05423,1.927394 -0.14419,0.287913 -0.23131,0.631803 -0.23131,1.12065 0.0581,2.476226 1.21067,4.490598 3.5449,4.490598 1.81651,0 2.99814,-1.582505 2.99814,-3.826805 m 1.64427,-10.01487 c -0.51972,-0.02797 -1.09651,0 -1.78747,0.08697 -3.94946,0.459857 -5.82305,2.849107 -6.28368,5.4373 l 0.0851,0 c 0.92428,-1.06367 2.33523,-1.811433 4.20982,-1.811433 3.22847,0 5.73593,2.30228 5.73593,6.101093 0,3.567885 -2.62262,6.674914 -6.60212,6.674914 -4.5533,0 -7.06177,-3.45292 -7.06177,-8.086474 0,-3.595876 1.2988,-6.502966 3.25851,-8.344393 1.69934,-1.640483 3.9775,-2.561197 6.6582,-2.762137 0.77708,-0.114963 1.35387,-0.114963 1.78747,-0.08697 l 0,2.791127 z m 15.99672,0.403273 -7.20496,0 -0.54876,3.739834 c 0.40356,-0.05598 0.77808,-0.08497 1.32684,-0.08497 1.64126,0 3.31458,0.37388 4.55329,1.20862 1.41195,0.89272 2.45039,2.47523 2.45039,4.747517 0,3.568885 -2.97011,6.474977 -7.55244,6.474977 -2.19003,0 -4.00654,-0.546829 -4.9859,-1.093658 l 0.72,-2.677163 c 0.80711,0.432864 2.42135,0.979694 4.12169,0.979694 2.07688,0 4.06463,-1.179633 4.06463,-3.39594 0,-2.158327 -1.58519,-3.567887 -5.30434,-3.567887 -1.06547,0 -1.84355,0.08698 -2.56455,0.172947 l 1.20968,-9.440047 9.71443,0 0,2.93608 z" /><\/svg>',t.enovaMenu='<svg viewBox="0 0 160 160"><path d="M 5.0664062 20 A 4.9960528 5 0 1 0 5.0664062 30 L 154.93359 30 A 4.9960528 5 0 1 0 154.93359 20 L 5.0664062 20 z M 5.0664062 70 A 4.9960528 5 0 1 0 5.0664062 80 L 154.93359 80 A 4.9960528 5 0 1 0 154.93359 70 L 5.0664062 70 z M 5.0664062 120 A 4.9960525 5 0 1 0 5.0664062 130 L 154.93359 130 A 4.9960525 5 0 1 0 154.93359 120 L 5.0664062 120 z "/><\/svg>',t}(u.ControlEventListener)},function(n,t,i){"use strict";var r,u,f,e;i.d(t,"b",function(){return r});i.d(t,"c",function(){return u});i.d(t,"d",function(){return f});i.d(t,"a",function(){return e}),function(n){n[n.None=0]="None";n[n.Left=1]="Left";n[n.Right=2]="Right";n[n.Up=3]="Up";n[n.Down=4]="Down"}(r||(r={})),function(n){n[n.Start=0]="Start";n[n.End=1]="End";n[n.Move=2]="Move";n[n.MoveEnd=3]="MoveEnd";n[n.Opened=4]="Opened";n[n.Closed=5]="Closed";n[n.Refresh=6]="Refresh"}(u||(u={})),function(n){n[n.None=0]="None";n[n.Horizontal=1]="Horizontal";n[n.Vertical=2]="Vertical"}(f||(f={}));e=function(){function n(n,t){this.threshold=10;this.restraint=100;this.allowedTime=500;this.swipeStarted=!1;this.elements=n.map(function(n){return document.getElementById(n)});this.callback=t||function(){};this.attachListener()}return n.prototype.attachListener=function(){for(var t,n=0;n<this.elements.length;n++)t=this.elements[n],t.addEventListener("touchstart",this.onTouchStart.bind(this),!1),t.addEventListener("touchmove",this.onTouchMove.bind(this),!1),t.addEventListener("touchend",this.onTouchEnd.bind(this),!1)},n.prototype.detachListener=function(){for(var t,n=0;n<this.elements.length;n++)t=this.elements[n],t.removeEventListener("touchstart",this.onTouchStart.bind(this),!1),t.removeEventListener("touchmove",this.onTouchMove.bind(this),!1),t.removeEventListener("touchend",this.onTouchEnd.bind(this),!1)},n.prototype.startDetect=function(n){var t=n.changedTouches[0];this.swipedir=r.None;this.distX=0;this.distY=0;this.deltaX=0;this.deltaY=0;this.prevX=0;this.prevY=0;this.startX=t.pageX;this.startY=t.pageY;this.startTime=n.timeStamp},n.prototype.calculateDelta=function(n){var t=0===this.prevX?n.pageX:this.prevX,i=0===this.prevY?n.pageY:this.prevY;this.prevX=n.pageX;this.prevY=n.pageY;this.deltaX=this.prevX-t;this.deltaY=this.prevY-i},n.prototype.calculateDistance=function(n){this.distX=n.pageX-this.startX;this.distY=n.pageY-this.startY},n.prototype.calculateSwipeDir=function(n,t){n===u.End&&this.threshold;n===u.End?this.restraint:window.innerWidth;var i=t.changedTouches[0];return this.calculateDelta(i),this.calculateDistance(i),r.None,0!==this.deltaY||0!==this.deltaX?Math.abs(this.deltaY)>=Math.abs(this.deltaX)?this.deltaY<0?r.Up:r.Down:this.deltaX<0?r.Left:r.Right:Math.abs(this.distY)>=Math.abs(this.distX)?this.distY<0?r.Up:r.Down:this.distX<0?r.Left:r.Right},n.prototype.callHandler=function(n,t){var o=t.timeStamp-this.startTime,i=n===u.Start?r.None:this.calculateSwipeDir(n,t),f=0,e=0;i===r.Left||i===r.Right?(f=this.distX,e=this.deltaX):i!==r.Up&&i!==r.Down||(f=this.distY,e=this.deltaY);(this.swipeStarted||n===u.End||n===u.MoveEnd)&&this.callback({swipeMode:n,swipeDir:i,swipeElement:t.srcElement,delta:Math.round(e),dist:Math.round(f),time:Math.round(o),cancel:!1,ev:t})},n.prototype.onTouchStart=function(n){this.startDetect(n);this.swipeStarted=!1},n.prototype.onTouchMove=function(n){Math.abs(this.distX)>10&&Math.abs(this.distY)<20&&!this.swipeStarted&&(this.swipeStarted=!0,this.callHandler(u.Start,n));this.callHandler(u.Move,n)},n.prototype.onTouchEnd=function(n){this.swipeStarted=!1;Math.abs(this.distX)>10&&(n.timeStamp-this.startTime<=this.allowedTime?this.callHandler(u.MoveEnd,n):this.callHandler(u.End,n))},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,r=i(0),e=i(1),f=i.n(e),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.orientationChange=i.orientationListener.bind(i),i.swipedParentId=i.props.parentId,i.panelContentId="swipedcontent_"+i.props.parentId,i.panelLayerId="swipedlayer_"+i.props.parentId,i.swipeRange=r.SwipeRange.None,i.state={swipedElement:i.props.swipedElement},i}return o(t,n),t.prototype.componentDidUpdate=function(){this.forceOpen?(this.forceOpen=!1,this.updateLayerPosition(),this.updateContentStyle(t.leftLimit,t.transitionIn),this.updateLayerStyle(0,t.transitionBgIn)):this.props.isOpen&&(this.updateLayerPosition(),this.updateContentStyle(t.leftLimit,t.transitionDefault),this.updateLayerStyle(0,t.transitionBgFast),this.props.onSwipeCallback({swipeMode:r.SwipeMode.Refresh}))},t.prototype.componentWillUnmount=function(){this.detachListener()},t.prototype.onTransitionEnd=function(n){var i=this.panelContent.getBoundingClientRect();n.srcElement.id===this.panelContentId&&"left"===n.propertyName&&(i.left>=this.maxLeftPos-5?(this.panelLayer.style.transition=t.transitionDefault,this.panelLayer.style.left=this.maxLeftPos+"px",this.props.onSwipeCallback({swipeMode:r.SwipeMode.Closed})):i.left===t.leftLimit&&this.props.onSwipeCallback({swipeMode:r.SwipeMode.Opened}))},t.prototype.orientationListener=function(){this.updateState()},t.prototype.onClick=function(n){n.target.id===this.panelLayerId&&this.updateFormStyle(this.maxLeftPos,t.transitionOut)},t.prototype.onSwipe=function(n){if(this.panelContent&&(null==this.props.isSwipeEnabled||this.props.isSwipeEnabled)){switch(this.rect=this.panelContent.getBoundingClientRect(),n.swipeMode){case r.SwipeMode.Start:this.swipeStart(n);break;case r.SwipeMode.Move:this.swipeMove(n);break;case r.SwipeMode.MoveEnd:case r.SwipeMode.End:this.swipeEnd(n)}n.cancel||this.props.onSwipeCallback(n)}},t.prototype.show=function(){this.updateFormStyle(t.leftLimit,t.transitionIn)},t.prototype.hide=function(){this.updateFormStyle(this.maxLeftPos,t.transitionOut)},t.prototype.init=function(){this.swipeDetector=new r.SwipeDetector([this.swipedParentId,this.panelLayerId],this.onSwipe.bind(this));this.swipedParent=document.getElementById(this.swipedParentId);this.panelContent=document.getElementById(this.panelContentId);this.panelLayer=document.getElementById(this.panelLayerId);this.attachListener()},t.prototype.updateState=function(n,t){var i=null!=n?n:this.state.swipedElement;this.forceOpen=void 0!==t?t:this.forceOpen;this.setState({swipedElement:i})},Object.defineProperty(t.prototype,"maxLeftPos",{get:function(){return document.defaultView.innerWidth+5},set:function(n){this.maxLeftPos=n},enumerable:!1,configurable:!0}),t.prototype.attachListener=function(){this.panelContent&&this.panelContent.addEventListener("transitionend",this.onTransitionEnd.bind(this),!1);window.addEventListener("orientationchange",this.orientationChange,!1)},t.prototype.detachListener=function(){this.swipeDetector&&this.swipeDetector.detachListener();this.panelContent&&this.panelContent.removeEventListener("transitionend",this.onTransitionEnd.bind(this),!1);window.removeEventListener("orientationchange",this.orientationChange,!1)},t.prototype.calcColor=function(n){return"rgba(45,45,45,"+n+")"},t.prototype.updateFormStyle=function(n,t){this.updateContentStyle(n,t);this.updateLayerStyle(n,t)},t.prototype.updateContentStyle=function(n,t){this.panelContent&&(t&&(this.panelContent.style.transition=t),this.panelContent.style.left=n+"px")},t.prototype.updateLayerStyle=function(n,i){if(this.panelLayer){var r=-1;i?(this.panelLayer.style.transition=i,i===t.transitionOut?r=0:i!==t.transitionIn&&i!==t.transitionBgIn&&i!==t.transitionBgFast||(r=.4)):r=40*Math.min(1,(window.innerWidth-n)/this.rect.width)/100;r>-1&&(this.panelLayer.style.backgroundColor=this.calcColor(r))}},t.prototype.updateLayerPosition=function(){0!==this.panelLayer.getBoundingClientRect().left&&(this.panelLayer.style.left="0")},t.prototype.clearFormStyle=function(){this.panelContent.style.transition=t.transitionDefault;this.panelLayer.style.transition=t.transitionDefault},t.prototype.isElementBelongToPanel=function(n){return!!n&&(n.id===this.panelLayerId||this.isElementBelongToPanel(n.parentElement))},t.prototype.swipeStart=function(n){this.isElementBelongToPanel(n.swipeElement)||n.swipeElement===this.state.swipedElement||this.updateState(n.swipeElement);this.clearFormStyle()},t.prototype.swipeEnd=function(n){this.swipeRange=r.SwipeRange.None;n.swipeDir===r.SwipeDir.Left?this.swipeEndLeft(n):n.swipeDir===r.SwipeDir.Right&&this.swipeEndRight(n)},t.prototype.swipeEndLeft=function(n){this.rect.left>t.leftLimit&&this.rect.left<window.innerWidth*t.swapLimitLeft||n.swipeMode===r.SwipeMode.MoveEnd?this.updateFormStyle(t.leftLimit,t.transitionIn):this.rect.left>window.innerWidth*t.swapLimitLeft&&this.updateFormStyle(window.innerWidth,t.transitionOut)},t.prototype.swipeEndRight=function(n){this.rect.left>window.innerWidth*t.swapLimitRight?this.updateFormStyle(this.maxLeftPos,t.transitionOut):(this.rect.left>t.leftLimit&&this.rect.left<window.innerWidth*t.swapLimitRight||n.swipeMode===r.SwipeMode.MoveEnd)&&this.updateFormStyle(t.leftLimit,t.transitionIn)},t.prototype.swipeMove=function(n){(n.swipeDir!==r.SwipeDir.Up&&n.swipeDir!==r.SwipeDir.Down||this.swipeRange!==r.SwipeRange.Horizontal)&&(n.swipeDir!==r.SwipeDir.Left&&n.swipeDir!==r.SwipeDir.Right||this.swipeRange!==r.SwipeRange.Vertical)||(n.cancel=!0);n.cancel||(n.swipeDir===r.SwipeDir.Up||n.swipeDir===r.SwipeDir.Down?this.swipeRange=r.SwipeRange.Vertical:n.swipeDir===r.SwipeDir.Left?(this.swipeRange=r.SwipeRange.Horizontal,this.swipeMoveLeft(n)):n.swipeDir===r.SwipeDir.Right&&(this.swipeRange=r.SwipeRange.Horizontal,this.swipeMoveRight(n)))},t.prototype.swipeMoveLeft=function(n){this.updateLayerPosition();var i=this.rect.left+n.delta;i>t.leftLimit&&this.updateFormStyle(i)},t.prototype.swipeMoveRight=function(n){this.updateLayerPosition();var t=this.rect.left+n.delta;t<window.innerWidth&&this.updateFormStyle(t)},t.prototype.render=function(){var i=this,n={width:document.defaultView.innerWidth-t.leftLimit+"px",left:this.maxLeftPos+"px"};return f.a.createElement("div",{id:this.panelLayerId,className:"swiped-panel-layer",style:{left:n.left},onClick:function(n){return i.onClick(n)}},f.a.createElement("div",{id:this.panelContentId,style:n,className:"swiped-panel"},this.props.renderContent(this,this.state.swipedElement)))},t.transitionIn="all 400ms ease-in",t.transitionOut="all 400ms ease-out",t.transitionDefault="initial",t.transitionBgIn="background-color 400ms ease-in",t.transitionBgFast="background-color 10ms ease-in",t.swapLimitLeft=.6,t.swapLimitRight=.4,t.leftLimit=56,t}(f.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return v});var f,e=i(1),r=i.n(e),o=i(4),s=i.n(o),h=i(3),c=i.n(h),l=i(2),u=i(0),a=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),v=function(n){function t(t){var i=n.call(this,t)||this;return i.mouseNavigator=new u.ThemePickerMouseNavigator(i),i.mouseClickHandler=i.mouseClickListener.bind(i),i.mouseDownHandler=i.mouseDownListener.bind(i),i.state={active:!1},i}return a(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.mouseNavigator&&this.mouseNavigator.onComponentDidMount()},t.prototype.componentDidUpdate=function(t,i,r){n.prototype.componentDidUpdate.call(this,t,i,r);this.mouseNavigator&&this.mouseNavigator.onComponentDidUpdate()},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.mouseNavigator&&this.mouseNavigator.onComponentWillUnmount()},t.prototype.shouldComponentUpdate=function(n,t){return this.state.active!==t.active},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"click",handler:this.mouseClickHandler},{domElement:window,type:"mousedown",handler:this.mouseDownHandler}])},t.prototype.mouseClickListener=function(){this.setState({active:!this.state.active})},t.prototype.mouseDownListener=function(n){var t=this.refs.items;this.state.active&&t&&t.contains(n.target)||this.setState({active:!1})},t.prototype.clickItemHandler=function(n){this.setTheme(n);this.setState({active:!1},function(){document.location.reload(!0)})},t.prototype.getThemes=function(){var n=this,t;return this.state.active?(t=l.a.map(Object.keys(this.themes),function(t){var f=u.CookieHelper.GetTheme(),e="item-active"+(f&&t===f?" selected":""),i=n.themes[t];return i.indexOf("|")>0&&(i=i.substring(0,i.indexOf("|"))),r.a.createElement("div",{className:"item",onClick:function(){return n.clickItemHandler(t)}},r.a.createElement("div",{className:"item-text"},i),r.a.createElement("div",{className:e}))}),s.a.createPortal(r.a.createElement("div",{ref:"items",className:"theme-items",style:this.getLocation},t),document.body)):null},Object.defineProperty(t.prototype,"getLocation",{get:function(){var t=this.refs["theme-button"],n;return t?(n=t.getBoundingClientRect(),{top:Math.ceil(n.bottom),left:Math.ceil(n.left)}):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"themes",{get:function(){return u.LanguageConstants.SETTINGS.Themes},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasThemes",{get:function(){return!!this.themes&&(1!==this.themes.length||"ThemeBase"!==this.themes[0])},enumerable:!1,configurable:!0}),t.prototype.setTheme=function(n){var t=this.themes[n],i;t&&(t.substring(0,t.indexOf("|")),i=t.substring(t.indexOf("|")+1),u.CookieHelper.SetTheme(n),u.CookieHelper.SetDarkMode(i))},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["theme-picker"]=!0;this.classes.active=this.state.active},t.prototype.renderAll=function(n){return this.hasThemes?(this.prepareClasses(),r.a.createElement("div",{id:this.props.name,className:c()(this.classes),style:n},r.a.createElement("div",{ref:"theme-button",className:"theme-button"},r.a.createElement(u.SvgIcon,{name:"theme",classes:"icon"}),r.a.createElement("div",{className:"title"},u.LanguageConstants.RESOURCES.Str_ThemeCaption)),this.getThemes())):null},t.prototype.renderMobile=function(){return this.renderAll(null)},t.prototype.renderBrowser=function(){return this.prepareStyle(),this.renderAll(this.style)},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,o=i(1),r=i.n(o),s=i(3),e=i.n(s),h=i(2),u=i(0),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),l=function(n){function t(t){return n.call(this,t)||this}return c(t,n),Object.defineProperty(t.prototype,"id",{get:function(){return u.IsDebug&&this.props.dataElement?this.props.dataElement.Name:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"captionHtml",{get:function(){return this.props.dataElement.CaptionHtml?this.props.dataElement.CaptionHtml:""},enumerable:!1,configurable:!0}),t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["tile-group"]=!!this.groupTitle;this.classes["tile-content"]=!this.groupTitle},Object.defineProperty(t.prototype,"groupTitle",{get:function(){return this.captionHtml?r.a.createElement("div",{key:"title",className:"title-group",style:{left:"5px",width:"100%"},dangerouslySetInnerHTML:{__html:this.captionHtml}}):null},enumerable:!1,configurable:!0}),t.prototype.createGroupContent=function(){var i=this,n=this.props.dataElement.Elements.filter(function(n){return n.IsVisible});this.props.dataElement.IsMobile&&"Include"===this.props.dataElement.ElementType&&(n=this.props.dataElement.Parent.Elements.filter(function(n){return n.IsVisible&&("Command"===n.ElementType||"Group"===n.ElementType)}));var f=document.body.getBoundingClientRect(),e=Math.floor((f.width-2*u.WindowBase.defaultMargin)/u.WindowBase.defaultMenuCommandSize),t=n&&0!==n.length?n.Chunk(e,!0):null;return t&&t.length>0?this.IsMobile?t.map(function(n,t){return r.a.createElement("div",{className:"tile-row",key:t},n.map(function(n){return i.createTileItem(n)}))}):h.a.filter(t.map(function(n){return n.map(function(n){return null===n?null:i.createTileItem(n)})}),Boolean):n.map(function(n){return i.createTileItem(n)})},t.prototype.createTileItem=function(n){var t=n?n.Name:"".CreateReactKey();return r.a.createElement(u.TileItem,{key:t,ref:t,dataElement:n})},t.prototype.render=function(){var n=this.createGroupContent();return this.prepareClasses(),this.groupTitle?r.a.createElement("div",{className:e()(this.classes),style:this.style},this.groupTitle,r.a.createElement("div",{className:"tile-content"},n)):r.a.createElement("div",{className:e()(this.classes),style:this.style},n)},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,f=i(1),e=i.n(f),u=i(0),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.createTileItem=function(n){var t,i=n?n.Name:"".CreateReactKey();return e.a.createElement(u.TileItemPremium,{key:i+"_tilegroup",ref:i,dataElement:n,isMobile:null===(t=this.props.dataElement)||void 0===t?void 0:t.IsMobile})},t}(u.TileGroup)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var e,s=i(1),r=i.n(s),h=i(3),f=i.n(h),u=i(0),c=(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},l=function(n){function t(t){return n.call(this,t)||this}return c(t,n),Object.defineProperty(t.prototype,"id",{get:function(){return u.IsDebug&&this.props.dataElement?this.props.dataElement.Name:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isGroupItem",{get:function(){return this.props.dataElement&&this.props.dataElement.hasClass("GroupItem")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasIcon",{get:function(){return!(!this.props.dataElement||!this.props.dataElement.Icon)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return f()({"tile-item":!this.hasSmallSize,"tile-item-small":this.hasSmallSize})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconclasses",{get:function(){return f()({"t-icon":!0,active:this.props.dataElement&&this.props.dataElement.Editable,disabled:this.props.dataElement&&!this.props.dataElement.Editable})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentclasses",{get:function(){return f()({"t-content":!0})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commandElement",{get:function(){var n={fillColor:this.fgColor,name:this.hasIcon?this.props.dataElement.Icon:"",classes:this.iconclasses,enabled:this.props.dataElement&&this.props.dataElement.Editable},t=null;return this.hasIcon&&(u.StorageHelper.GetTestEnvironment()&&(n.content=u.CommandBase.defaultSvgContent),t=r.a.createElement(u.SvgIcon,o({},n))),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleclasses",{get:function(){return f()({"t-title":!0,left:this.props.dataElement&&""!==this.props.dataElement.Icon})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleElement",{get:function(){return this.props.dataElement&&this.props.dataElement.CaptionHtml?r.a.createElement("div",{className:this.titleclasses,style:this.getTitleStyle(),dangerouslySetInnerHTML:{__html:this.props.dataElement.CaptionHtml}}):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSmallSize",{get:function(){return this.props.dataElement&&(""===this.props.dataElement.DescriptionHtml||this.props.dataElement.hasClass("SmallSize"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCaption",{get:function(){return this.props.dataElement&&""!==this.props.dataElement.CaptionHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientRect",{get:function(){return this.rect},enumerable:!1,configurable:!0}),t.prototype.prepareStyle=function(){this.style={}},t.prototype.focus=function(){this.domElement&&(this.domElement.classList.add("hover"),this.domElement.scrollIntoView({behavior:"auto",block:"end",inline:"nearest"}))},t.prototype.blur=function(){this.domElement&&this.domElement.classList.remove("hover")},t.prototype.onClick=function(){this.props.dataElement&&this.props.dataElement.postClick("")},t.prototype.getTitleStyle=function(){return this.hasIcon?null:{width:"100%"}},t.prototype.createDescription=function(){return!this.hasSmallSize&&this.props.dataElement&&""!==this.props.dataElement.DescriptionHtml?r.a.createElement("div",{className:"t-desc",dangerouslySetInnerHTML:{__html:this.props.dataElement.DescriptionHtml}}):null},t.prototype.createContent=function(){return r.a.createElement("div",{className:this.contentclasses},this.commandElement,this.titleElement)},t.prototype.renderMobile=function(){return r.a.createElement(u.ClickableElement,{parent:this})},t.prototype.renderBrowser=function(){var t=this,n;return this.prepareStyle(),n=this.props.dataElement&&this.props.dataElement.Name?this.props.dataElement.Name:null,r.a.createElement("div",{id:n,className:this.classnames,style:this.style,onClick:function(n){return t.onClick(n)}},this.createContent(),this.createDescription())},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var f,s=i(1),u=i.n(s),h=i(4),e=i.n(h),r=i(0),c=i(3),o=i.n(c),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){var i=n.call(this,t)||this;return i.mouseEnterHandler=i.mouseEnterListener.bind(i),i.mouseLeaveHandler=i.mouseLeaveListener.bind(i),i.mouseDescEnterHandler=i.mouseDescEnterListener.bind(i),i.mouseDescLeaveHandler=i.mouseDescLeaveListener.bind(i),i}return l(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);r.WindowBase.hasClass("dashboard")&&(this.keyNavigator=new r.ButtonKeyNavigator(this));this.keyNavigator&&this.keyNavigator.onComponentDidMount()},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.keyNavigator&&this.keyNavigator.onComponentWillUnmount()},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.shouldComponentUpdate=function(n,t){return t.hoverBg!==this.state.hoverBg||t.hoverDesc!==this.state.hoverDesc||t.version!==this.state.version},t.prototype.componentDidUpdate=function(t,i,r){n.prototype.componentDidUpdate.call(this,t,i,r);this.reAttachEventListeners()},Object.defineProperty(t.prototype,"IsMobile",{get:function(){return void 0!==this.props.isMobile?this.props.isMobile:this.props.dataElement&&this.props.dataElement.IsMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return o()({"tile-item":!this.hasSmallSize,"tile-item-small":this.hasSmallSize})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"descclasses",{get:function(){return o()({"t-desc":!0,"flip-in-hor-bottom":this.state.hoverDesc})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"domTitle",{get:function(){return e.a.findDOMNode(this.refs.title)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"domMore",{get:function(){return e.a.findDOMNode(this.refs.details)},enumerable:!1,configurable:!0}),t.prototype.calculateColors=function(){this.bgColor="#797C95";this.fgColor="#ffffff";this.AppearanceInfo&&(this.AppearanceInfo.BackColor&&(this.bgColor=this.AppearanceInfo.BackColor),this.AppearanceInfo.ForeColor&&(this.fgColor=this.AppearanceInfo.ForeColor));this.boxShadowHover="0 5px 20px 0px "+this.bgColor;this.boxShadowNormal="0 1px 5px 0 "+this.bgColor;this.borderNormal="2px solid "+this.bgColor;this.borderHover="2px solid #fff"},t.prototype.getTitleStyle=function(){var t=n.prototype.getTitleStyle.call(this);return t&&(t.color=this.fgColor),t},t.prototype.mouseEnterListener=function(){this.setState({hoverBg:!0})},t.prototype.mouseLeaveListener=function(){this.setState({hoverBg:!1,hoverDesc:!1})},t.prototype.mouseDescEnterListener=function(){this.setState({hoverDesc:!0})},t.prototype.mouseDescLeaveListener=function(){this.setState({hoverDesc:!1})},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.IsMobile||(this.eventRegistrar.registerEventListeners([{domElement:this.domElement,type:"mouseenter",handler:this.mouseEnterHandler},{domElement:this.domElement,type:"mouseleave",handler:this.mouseLeaveHandler},{domElement:this.domElement,type:"focus",handler:this.focus.bind(this)},{domElement:this.domElement,type:"blur",handler:this.blur.bind(this)}]),this.mouseDescEnterHandler&&this.eventRegistrar.registerEventListeners([{domElement:this.domTitle,type:"mouseenter",handler:this.mouseDescEnterHandler},{domElement:this.domMore,type:"mouseenter",handler:this.mouseDescEnterHandler},{domElement:this.domTitle,type:"mouseleave",handler:this.mouseDescLeaveHandler}]))},t.prototype.createDescription=function(){var t,n,i;return!this.props.dataElement||this.hasSmallSize?null:(t=this.state.hoverDesc?this.props.dataElement.DescriptionHtml:r.LanguageConstants.RESOURCES.Str_More,n={color:this.fgColor,height:this.state.hoverDesc?"inherit":"40px",justifyContent:(this.state.hoverDesc,"center"),alignContent:this.state.hoverDesc?"center":"flex-start",textAlign:this.state.hoverDesc?"center":"normal"},this.state.hoverDesc)?u.a.createElement("div",{ref:"t-title",className:this.descclasses,style:n,dangerouslySetInnerHTML:{__html:this.props.dataElement.DescriptionHtml}}):(i={backgroundColor:this.bgColor},u.a.createElement("div",{className:this.descclasses,style:n},u.a.createElement("div",{ref:"title",className:"t-title",style:this.getTitleStyle(),dangerouslySetInnerHTML:{__html:t.toLowerCase()}}),u.a.createElement(r.SvgIcon,{ref:"details",name:"details",fillColor:this.fgColor,content:r.ProfileMenu.icon,classes:"moreIcon",style:i})))},t.prototype.createContent=function(){var n={height:this.hasSmallSize?"inherit":"80px"},t=u.a.createElement("div",{ref:"content",className:this.contentclasses,style:n},this.commandElement,this.titleElement);return this.state.hoverDesc?null:t},t.prototype.prepareStyle=function(){this.calculateColors();var n=r.GridPatternHelper.CalculateSize(3,2),t=r.GridPatternHelper.Calculate(1);this.style={width:n[0]+"px",height:this.hasSmallSize?t+"px":n[1]+"px",backgroundColor:this.bgColor,color:this.fgColor,border:this.state.hoverBg?this.borderHover:this.borderNormal,boxShadow:this.state.hoverBg?this.boxShadowHover:this.boxShadowNormal}},t}(r.TileItem)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,o=i(1),r=i.n(o),s=i(3),e=i.n(s),u=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.mouseEnterHandler=null,i}return h(t,n),t.prototype.shouldComponentUpdate=function(n,t){return t.hoverBg!==this.state.hoverBg||t.hoverDesc!==this.state.hoverDesc||t.version!==this.state.version},t.prototype.componentDidUpdate=function(t,i,r){n.prototype.componentDidUpdate.call(this,t,i,r);this.reAttachEventListeners()},Object.defineProperty(t.prototype,"classnames",{get:function(){return e()({"tile-item-large":!0,hoverDesc:this.state.hoverDesc})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"descclasses",{get:function(){return e()({"t-desc":!0,"flip-in-hor-bottom":this.state.hoverDesc})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"moreclasses",{get:function(){return e()({more:!0})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleElement",{get:function(){if(!this.hasCaption)return null;var n={color:this.fgColor};return r.a.createElement("div",{className:"t-title",style:n,dangerouslySetInnerHTML:{__html:this.props.dataElement.CaptionHtml}})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"descriptionElement",{get:function(){if(!this.hasSmallSize)return null;var n={color:this.fgColor};return r.a.createElement("div",{className:this.descclasses,style:n,dangerouslySetInnerHTML:{__html:this.props.dataElement.DescriptionHtml}})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"moreElement",{get:function(){var n;if(this.state.hoverDesc)return n={color:this.fgColor,justifyContent:"center",alignContent:"center",textAlign:"center"},r.a.createElement("div",{ref:"t-title",className:this.descclasses,style:n,dangerouslySetInnerHTML:{__html:this.props.dataElement.DescriptionHtml}});var t=u.LanguageConstants.RESOURCES.Str_More,i={color:this.fgColor},f={backgroundColor:this.bgColor};return r.a.createElement("div",{ref:"title",className:"more"},r.a.createElement("div",{className:"more-text",style:i,dangerouslySetInnerHTML:{__html:t.toLowerCase()}}),r.a.createElement(u.SvgIcon,{classes:"more-icon",fillColor:this.fgColor,name:"details",content:u.ProfileMenu.icon,style:f}))},enumerable:!1,configurable:!0}),t.prototype.createDescription=function(){if(!this.hasSmallSize)return null;var n=this.props.dataElement.DescriptionHtml,t={color:this.fgColor,height:"40px",justifyContent:"center",alignContent:"flex-start",textAlign:"left"},i={backgroundColor:this.bgColor},f={color:this.fgColor};return r.a.createElement("div",{className:this.descclasses,style:t},r.a.createElement("div",{ref:"title",className:"title",style:f,dangerouslySetInnerHTML:{__html:n.toLowerCase()}}),r.a.createElement(u.SvgIcon,{ref:"details",name:"details",fillColor:this.fgColor,content:u.ProfileMenu.icon,classes:"moreIcon",style:i}))},t.prototype.createContent=function(){return this.state.hoverDesc?null:r.a.createElement("div",{ref:"content",className:"t-content"},r.a.createElement("div",{className:"content-info"},this.titleElement,this.descriptionElement),this.commandElement)},t.prototype.prepareStyle=function(){this.calculateColors();var n=u.GridPatternHelper.CalculateSize(5,3);this.style={width:n[0]+"px",height:n[1]+"px",backgroundColor:this.bgColor,border:this.state.hoverBg?this.borderHover:this.borderNormal,boxShadow:this.state.hoverBg?this.boxShadowHover:this.boxShadowNormal}},t.prototype.renderBrowser=function(){var t=this,n;return this.prepareStyle(),n=this.props.dataElement&&this.props.dataElement.Name?this.props.dataElement.Name:null,r.a.createElement("div",{id:n,className:this.classnames,style:this.style,onClick:function(n){return t.onClick(n)}},this.createContent(),this.moreElement)},t}(u.TileItemPremium)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),f=i.n(e),r=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.props.dataElement.Window.IsMobile||(i.menuNavigator=new r.TileMenuKeyNavigator(i)),i.state={windowWidth:window.innerWidth},i}return o(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.menuNavigator&&this.menuNavigator.onComponentDidMount()},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.menuNavigator&&this.menuNavigator.onComponentWillUnmount()},t.prototype.componentDidUpdate=function(t,i,r){n.prototype.componentDidUpdate.call(this,t,i,r);this.menuNavigator&&this.menuNavigator.onComponentDidUpdate()},t.prototype.shouldComponentUpdate=function(n,t){return!!this.props.dataElement.IsMobile||this.state.windowWidth!==t.windowWidth},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.eventRegistrar.registerEventListeners([{domElement:window,type:"resize",handler:this.onResizeEventListener.bind(this)},{domElement:this.domElement,type:"focus",handler:this.focus.bind(this)}])},t.prototype.keyDownListener=function(n){this.menuNavigator&&this.menuNavigator.keyDownListener(n)},t.prototype.focus=function(){this.menuNavigator.navigateFirst()},t.prototype.onResizeEventListener=function(){var n=this;setTimeout(function(){n.setState({windowWidth:window.innerWidth})},500)},t.prototype.prepareStyle=function(){n.prototype.prepareStyle.call(this);this.style.height="unset";this.style.width="unset";this.style.minWidth="unset"},t.prototype.createContent=function(){var n=this;return this.props.dataElement.Elements.filter(function(n){return n.IsVisible&&("Group"===n.ElementType||"Include"===n.ElementType)}).map(function(t){var i=n.IsStandardProduct?r.TileGroup:r.TileGroupPremium;return f.a.createElement(i,{ref:t.Name,dataElement:t,key:t.Name})})},t.prototype.renderAll=function(n){return f.a.createElement("div",{key:this.props.dataElement.Name,className:"tile-menu",style:n},this.createContent())},t.prototype.renderMobile=function(){return this.renderAll(null)},t.prototype.renderBrowser=function(){return this.prepareStyle(),this.renderAll(this.style)},t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var u,f=i(0),r=i(2),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this,t)||this;return i.tileItems=[],i.currentRowIdx=0,i.currentColIdx=0,i.allowFocusCurrent=!0,i}return e(t,n),t.prototype.keyDownListener=function(n){"keydown"!==n.event.type||n.handled||(n.isEnter&&this.accept(n),n.isRight&&this.navigateNext(n),n.isLeft&&this.navigatePrevious(n),n.isUp&&this.navigateUp(n),n.isDown&&this.navigateDown(n),n.isHome&&this.navigateFirst(n),n.isEnd&&this.navigateLast(n),n.isOnlyTab&&this.navigateNext(n),n.isShiftTab&&this.navigatePrevious(n))},t.prototype.initItems=function(){var e=this,t,i,o,n,s,u,h,c,f;this.tileItems=[];t=this.reactElement.refs;i=[];for(o in t)if(t.hasOwnProperty(o)){n=t[o];s=Object.keys(n.refs);for(u in n.refs)n.refs.hasOwnProperty(u)&&(h=n.refs[u],i.push({item:h,lastInGroup:s.indexOf(u)===s.length-1}))}c=r.a.max(r.a.map(i,function(n){return n.item.clientRect.right}));f=0;r.a.each(i,function(n){e.tileItems[f]||e.tileItems.push([]);e.tileItems[f].push(n.item);n.item.clientRect.right<c&&!n.lastInGroup?0:f++})},t.prototype.onComponentDidMount=function(){n.prototype.onComponentDidMount.call(this);this.isFolderMenu&&this.focusFirst()},t.prototype.navigateFirst=function(n){this.currentRowIdx=0;this.currentColIdx=0;this.setCurrentItem(n)},t.prototype.navigateLast=function(n){var t=r.a.last(this.tileItems);this.currentRowIdx=this.tileItems.length-1;this.currentColIdx=t.length-1;this.setCurrentItem(n)},t.prototype.navigateNext=function(n){var t=this.tileItems[this.currentRowIdx];this.currentColIdx<t.length-1?this.currentColIdx++:(this.currentColIdx=0,this.currentRowIdx=this.currentRowIdx<this.tileItems.length-1?this.currentRowIdx+1:0);this.setCurrentItem(n)},t.prototype.navigatePrevious=function(n){if(this.currentColIdx>0)this.currentColIdx--;else{this.currentRowIdx=this.currentRowIdx>0?this.currentRowIdx-1:this.tileItems.length-1;var t=this.tileItems[this.currentRowIdx];this.currentColIdx=t.length-1}this.setCurrentItem(n)},t.prototype.navigateUp=function(n){this.currentRowIdx>0?this.currentRowIdx--:this.currentRowIdx=this.tileItems.length-1;var t=this.tileItems[this.currentRowIdx];this.currentColIdx>t.length-1&&(this.currentColIdx=t.length-1);this.setCurrentItem(n)},t.prototype.navigateDown=function(n){this.currentRowIdx<this.tileItems.length-1?this.currentRowIdx++:this.currentRowIdx=0;var t=this.tileItems[this.currentRowIdx];this.currentColIdx>t.length-1&&(this.currentColIdx=t.length-1);this.setCurrentItem(n)},t.prototype.setCurrentItem=function(n){this.setCurrent(this.tileItems[this.currentRowIdx][this.currentColIdx]);n&&n.setHandled()},t}(f.ComponentKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return v});var u,e=i(1),f=i.n(e),o=i(4),s=i.n(o),h=i(3),c=i.n(h),l=i(2),r=i(0),a=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),v=function(n){function t(t){var i=n.call(this,t)||this;return i.keyNavigator=new r.TimePickerKeyNavigator(i),i.state={active:!1},i}return a(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.keyNavigator&&this.keyNavigator.onComponentDidMount();this.target&&r.BaseKeyNavigator.setKeyListener(this.target,this)},t.prototype.componentWillUnmount=function(){this.keyNavigator&&this.keyNavigator.onComponentWillUnmount()},t.prototype.keyDownListener=function(n){this.keyNavigator&&this.keyNavigator.keyDownListener(n)},t.prototype.blurHandler=function(n){n.stopPropagation();n.preventDefault();this.invokePropsEditValueChanged(n,new r.EipEventProps("Unknown","Unknown",new r.KeyboardEventProps(n)))},t.prototype.invokePropsEnterNewValue=function(n,t){this.props.onEnterNewValue&&this.props.onEnterNewValue(n,t)},t.prototype.invokePropsEditValueChanged=function(n,t){this.props.onEditValueChanged&&this.props.onEditValueChanged(n,t)},Object.defineProperty(t.prototype,"Content",{get:function(){var i=this,n=this.props.parent.EditValue,t;return n||(t=new Date,n=t.getHours()+":"+t.getMinutes()),this.state.active?s.a.createPortal(f.a.createElement(r.TimePickerContent,{editValue:n,isMobile:this.props.parent.IsMobile,onClose:function(){return i.onClose()},setValue:function(n){return i.setTime(n)}}),document.body):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"input",{get:function(){return this.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.props.parent.IsMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eipMode",{get:function(){return this.props.parent.EipMode},enumerable:!1,configurable:!0}),t.prototype.removeAnimationClass=function(n){for(var i=document.getElementsByClassName(n),t=0;t<i.length;t++)i[t].classList.remove(n)},t.prototype.closeTimePicker=function(){this.setState({active:!1})},t.prototype.setTime=function(n){this.setState({active:!this.state.active});this.invokePropsEnterNewValue(n,new r.EipEventProps("Mouse","Right"))},t.prototype.returnTimeNow=function(){return(new Date).getHours+":"+(new Date).getMinutes()},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["editor-text"]=!0;this.classes["input-textRight"]=!this.props.parent.Editable},t.prototype.toogleTP=function(n){if(this.props.parent.Editable){var t=n.target;(l.a.indexOf(t.classList,"tp-overlay-screen")>=0||Object(r.hasParentNode)(t,"icon")||n.keyCode&&115===n.keyCode)&&this.setState({active:!this.state.active})}},t.prototype.onClose=function(){this.setState({active:!1})},t.prototype.onFocus=function(n){this.props.onFocus&&this.props.onFocus(n)},t.prototype.renderAll=function(){var n=this;return this.prepareClasses(),this.removeAnimationClass("animationLightSpeedIn"),this.removeAnimationClass("animationLightSpeedRoll"),this.props.setActive(this.state.active),f.a.createElement("div",{className:"editor-date"},f.a.createElement(r.EditorText,{id:this.props.parent.Name,type:"text",editValue:this.props.parent.EditValue,editable:this.props.parent.Editable,location:this.props.parent.Location,classes:c()(this.classes),captionHtml:this.props.parent.CaptionHtml,descriptionHtml:this.props.parent.DescriptionHtml,iconName:"zegar",isMobile:this.props.parent.IsMobile,isMultiline:this.props.parent.IsMultilineLabel,isClearable:this.props.parent.IsMobile,eipMode:this.props.parent.EipMode,onFocus:function(t){return n.onFocus(t)},onIconClick:function(t){return n.toogleTP(t)},onEditValueChanged:function(t){return n.onBlurEditor(t)}}),this.Content)},t.prototype.renderMobile=function(){return this.renderAll()},t.prototype.renderBrowser=function(){return this.renderAll()},t}(r.EditorBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var f,s=i(1),r=i.n(s),h=i(3),c=i.n(h),e=i(2),u=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},a=function(n){function t(t){var i=n.call(this,t)||this;return i.hoursValues=[],i.minutesValues=[],i.hoursValues=1===i.props.mode?e.a.range(0,999,1):e.a.range(0,24,1),i.minutesValues=e.a.range(0,60,1),i.state={currentHour:parseInt(i.props.editValue.substring(0,i.props.editValue.indexOf(":"))),currentMinute:parseInt(i.props.editValue.substring(i.props.editValue.indexOf(":")+1,i.props.editValue.length))},i.onBoxClickHandler=i.onBoxClick.bind(i),i.onOverlayClickHandler=i.onOverlayClick.bind(i),i}return l(t,n),t.prototype.shouldComponentUpdate=function(n,t){return this.state.currentHour!==t.currentHour||this.state.currentMinute!==t.currentMinute},t.prototype.initEventListeners=function(){var n=this.refs["tp-overlay"],t=this.refs["tp-box"];this.eventRegistrar.registerEventListeners([{domElement:n,type:"mousedown",handler:this.onOverlayClickHandler},{domElement:t,type:"mousedown",handler:this.onBoxClickHandler}])},t.prototype.onClearValue=function(n){this.preventEvents(n);this.setValue()},t.prototype.onClose=function(n){this.preventEvents(n);this.props.onClose()},t.prototype.onSetValue=function(n){this.preventEvents(n);var t=this.selectedHoursElement?this.selectedHoursElement.value:null,i=this.selectedMinutesElement?this.selectedMinutesElement.value:null,r=t>=0&&i>=0?this.formattedTime(t,i):"";this.setHourMinuteState(t,i);this.setValue(r)},t.prototype.onOverlayClick=function(n){this.preventEvents(n);this.props.onClose()},t.prototype.onBoxClick=function(n){this.preventEvents(n)},t.prototype.onSelectHours=function(n){this.selectedHoursElement=n},t.prototype.onSelectMinutes=function(n){this.selectedMinutesElement=n},t.prototype.setValue=function(n){this.props.setValue(n||"")},t.prototype.setHourMinuteState=function(n,t){this.setState({currentHour:n,currentMinute:t})},t.prototype.formattedTime=function(n,t){return n.ZeroPad(2)+":"+t.ZeroPad(2)},t.prototype.createActionButton=function(n,t){var i={name:n,classes:this.iconClasses,enabled:!0,onClick:t};return r.a.createElement("div",{className:"tp-button"},r.a.createElement("div",{className:"icon-con"},r.a.createElement(u.SvgIcon,o({},i))))},Object.defineProperty(t.prototype,"hoursElements",{get:function(){var n=this;return this.hoursValues.map(function(t,i){return t===n.state.currentHour&&(n.selectedHoursIndex=i),{value:t,description:t.ZeroPad(2),name:"fn-item fn-h"}})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minuteElements",{get:function(){var n=this;return this.minutesValues.map(function(t,i){return t===n.state.currentMinute&&(n.selectedMinutesIndex=i),{value:t,description:t.ZeroPad(2),name:"fn-item fn-m"}})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconClasses",{get:function(){return c()({icon:!0,active:!0,disabled:!1})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionButtons",{get:function(){var n=this;return r.a.createElement("div",{className:"tp-buttons"},this.createActionButton("wyczysc",function(t){return n.onClearValue(t)}),this.createActionButton("anuluj_kolo",function(t){return n.onClose(t)}),this.createActionButton("ok",function(t){return n.onSetValue(t)}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"carouselComponents",{get:function(){var n=this;return r.a.createElement("div",{className:"tp-car"},r.a.createElement(u.Carousel,{ref:"h",elements:this.hoursElements,selectedIndex:this.selectedHoursIndex,isMobile:this.props.isMobile,showArrows:!0,height:336,width:125,elementHeight:48,onSelectElement:function(t){return n.onSelectHours(t)}}),r.a.createElement(u.Carousel,{ref:"m",elements:this.minuteElements,selectedIndex:this.selectedMinutesIndex,isMobile:this.props.isMobile,showArrows:!0,height:336,width:125,elementHeight:48,onSelectElement:function(t){return n.onSelectMinutes(t)}}))},enumerable:!1,configurable:!0}),t.prototype.render=function(){return r.a.createElement("div",{ref:"tp-overlay",className:"tp-overlay-screen"},r.a.createElement("div",{ref:"tp-box",className:"tp-container"},this.carouselComponents,this.actionButtons))},t}(u.ControlEventListener)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var f,e=i(1),u=i.n(e),o=i(2),r=i(0),s=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){var i=n.call(this,t)||this;return i.state={isPdfLoaded:!1,ready:!1,isFileReady:!1,version:0},i}return s(t,n),t.prototype.createPdfContainer=function(){return Object(r.isIE11)()?u.a.createElement("object",{type:"application/pdf",id:"print_if",data:this.props.dataElement.EditValue,classID:"clsid:CA8A9780-280D-11CF-A24D-444553540000",width:"100%",height:"100%",wmode:"opaque"}):u.a.createElement("iframe",{id:"print_if",src:this.props.dataElement.EditValue,ref:"iframe",style:{width:"100%",height:"100%",position:"absolute",border:"none"}})},t.prototype.checkIsFileReady=function(n){var t=this;this.state.isFileReady||(clearTimeout(this.delaySendingValue),this.delaySendingValue=setTimeout(function(){Object(r.Request)(n).then(function(i){parseInt(i)>0?(t.currentValue=t.props.dataElement.EditValue,t.setState({isFileReady:!0})):t.checkIsFileReady(n)},function(){})},30))},t.prototype.handler=function(n){n.PropertiesChanged&&this.setState({isFileReady:!1,version:this.props.dataElement.Version})},t.prototype.render=function(){var n=this.props.dataElement.Location.toCssProperties,t;return(n.overflow="hidden",this.props.dataElement.EditValue&&!this.state.isFileReady)?(t={url:r.Constants.ISFILEREADY,data:{ContextHandle:r.WindowManager.Instance.ActiveWindow.Handle,Ext:"pdf",Name:o.a.last(this.props.dataElement.EditValue.split("/"))}},this.checkIsFileReady(t),u.a.createElement(r.Loader,null)):this.state.isFileReady?u.a.createElement("div",{ref:"con",className:"pdf-viewer",style:n},this.props.dataElement.EditValue?this.createPdfContainer():null):void 0},t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),f=i.n(e),r=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.state={verifierElement:i.firstVerifier},i}return o(t,n),Object.defineProperty(t.prototype,"dialogType",{get:function(){if(this.state.verifierElement){if("Warning"===this.state.verifierElement.VerifierType)return r.DialogType.Warning;if("Error"===this.state.verifierElement.VerifierType)return r.DialogType.Error;if("Information"===this.state.verifierElement.VerifierType)return r.DialogType.Info}return r.DialogType.Hidden},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"verifierState",{get:function(){if(this.state.verifierElement){if("Warning"===this.state.verifierElement.VerifierType)return r.VerifierType.Warning;if("Error"===this.state.verifierElement.VerifierType)return r.VerifierType.Error;if("Information"===this.state.verifierElement.VerifierType)return r.VerifierType.Info}return r.VerifierType.Hidden},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dialogTitle",{get:function(){if(this.state.verifierElement){if("Warning"===this.state.verifierElement.VerifierType)return r.LanguageConstants.RESOURCES.Str_DialogWarning;if("Error"===this.state.verifierElement.VerifierType)return r.LanguageConstants.RESOURCES.Str_DialogError;if("Information"===this.state.verifierElement.VerifierType)return r.LanguageConstants.RESOURCES.Str_DialogInfo;if("Question"===this.state.verifierElement.VerifierType)return r.LanguageConstants.RESOURCES.Str_DialogQuestion}return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.props.windowElement&&this.props.windowElement.ChildrenWindows&&0===this.props.windowElement.ChildrenWindows.filter(function(n){return n.IsVisible}).length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.state.verifierElement?this.state.verifierElement.Name:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.state.verifierElement?this.state.verifierElement.CaptionHtml:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstVerifier",{get:function(){return this.props.windowElement.Verifiers.length>0?this.props.windowElement.Verifiers[0]:null},enumerable:!1,configurable:!0}),t.prototype.onClose=function(){this.props.onClose&&this.props.onClose(this.state.verifierElement)},t.prototype.shouldComponentUpdate=function(n,t){return this.state.verifierElement!==t.verifierElement||this.state.removeVerifier!==t.removeVerifier},t.prototype.attachEventListeners=function(){n.prototype.attachEventListeners.call(this);this.props.windowElement&&this.props.windowElement.addListenerAndCall(this)},t.prototype.detachEventListeners=function(){n.prototype.detachEventListeners.call(this);this.props.windowElement&&this.props.windowElement.removeListener(this)},t.prototype.handler=function(t){n.prototype.handler.call(this,t);t.UpdateAll?this.setState({removeVerifier:!0}):t.VerifiersChanged&&this.setState({verifierElement:this.firstVerifier,removeVerifier:!1})},t.prototype.renderMobile=function(){return this.state.removeVerifier?r.DialogType.Hidden:this.dialogType,this.isVisible?f.a.createElement(r.Dialog,{id:this.name,type:this.dialogType,isMobile:!0,caption:this.dialogTitle,textHtml:this.text}):null},t.prototype.renderBrowser=function(){var n=this,t=this.state.removeVerifier?r.VerifierType.Hidden:this.verifierState;return this.isVisible?f.a.createElement(r.VerifierBar,{id:this.name,type:t,text:this.text,onClose:function(){return n.onClose()}}):null},t.prototype.render=function(){return this.props.windowElement.IsMobile?this.renderMobile():this.renderBrowser()},t}(r.ControlBase)},function(n,t,i){"use strict";var s;i.d(t,"b",function(){return r});i.d(t,"a",function(){return s});var f,r,h=i(1),u=i.n(h),c=i(3),e=i.n(c),o=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)});!function(n){n[n.Hidden=0]="Hidden";n[n.Warning=1]="Warning";n[n.Error=2]="Error";n[n.Info=3]="Info"}(r||(r={}));s=function(n){function t(t){var i=n.call(this,t)||this;return i.state={type:i.props.type,text:i.props.text},i}return l(t,n),t.prototype.setInfoAutoHide=function(){var n=this;this.IsInfo&&setTimeout(function(){n.props.onClose()},3e3)},t.prototype.componentDidMount=function(){this.setInfoAutoHide()},t.prototype.componentDidUpdate=function(){this.setInfoAutoHide()},Object.defineProperty(t.prototype,"IsWarning",{get:function(){return this.props.type===r.Warning},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsError",{get:function(){return this.props.type===r.Error},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsInfo",{get:function(){return this.props.type===r.Info},enumerable:!1,configurable:!0}),t.prototype.updateState=function(n,t){this.setState({type:n,text:t})},t.prototype.prepareClasses=function(){this.classes={};this.classes.verifier=!0;this.classes.warning=this.IsWarning;this.classes.error=this.IsError;this.classes.info=this.IsInfo;this.classes["verifier-hide"]=this.props.type===r.Hidden},t.prototype.onClick=function(n){this.updateState(r.Hidden,"");this.props.onClose&&(n.stopPropagation(),n.preventDefault(),this.props.onClose())},t.prototype.componentWillReceiveProps=function(n){n.type===this.props.type&&n.text===this.props.text||this.updateState(n.type,n.text)},Object.defineProperty(t.prototype,"iconclasses",{get:function(){return e()({"verifier-icon":!0})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"closeClasses",{get:function(){return e()({"verifier-close":!0})},enumerable:!1,configurable:!0}),t.prototype.render=function(){var i=this,t,n;return this.prepareClasses(),t=this.props.defaultIconSvg?this.props.defaultIconSvg:null,n="",n=this.IsWarning?"ostrzezenie":this.IsError?"blad":"info",this.state.type!==r.Hidden?u.a.createElement("div",{id:this.props.id,className:e()(this.classes)},u.a.createElement(o.SvgIcon,{name:n,classes:this.iconclasses,content:t}),u.a.createElement("div",{className:"verifier-title",dangerouslySetInnerHTML:{__html:this.state.text}}),u.a.createElement(o.SvgIcon,{name:"anuluj",classes:this.closeClasses,onClick:function(n){return i.onClick(n)}})):null},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return v});var f,s=i(1),u=i.n(s),h=i(4),c=i.n(h),l=i(3),o=i.n(l),e=i(2),r=i(0),a=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),v=function(n){function t(t){var i=n.call(this,t)||this;return i.state={version:-1,searchState:!1,navigationBarState:!1,menuBarState:!1,featuresState:!1},i.IsMobile||(i.windowBarCalculator=new r.WindowBarCalculator(i.props.window)),i}return a(t,n),Object.defineProperty(t,"defaultMargin",{get:function(){return 16},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WindowMargin",{get:function(){return!r.GlobalSettings.Instance.IsStandardProduct&&this.IsMobile?25:t.defaultMargin},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultMenuCommandSize",{get:function(){return 100},enumerable:!1,configurable:!0}),t.hasClass=function(n){return document.getElementsByClassName(n).length>0},t.prototype.componentDidMount=function(){this.domElement||(this.domElement=c.a.findDOMNode(this));this.domElement&&(this.rect=this.domElement.getBoundingClientRect());this.setFocusedControl(!0)},t.prototype.componentDidUpdate=function(){this.setFocusedControl(!1)},t.prototype.componentWillMount=function(){this.props.window.addListenerAndCall(this);r.WindowManager.Instance.addListener(this);document.body.classList.toggle("noscroll",!1)},t.prototype.componentWillUnmount=function(){this.props.window.removeListener(this);r.WindowManager.Instance.removeListener(this)},t.prototype.componentWillReceiveProps=function(n){this.props.window!==n.window&&(this.props.window&&this.props.window.removeListener(this),n.window.addListenerAndCall(this))},t.createDataControl=function(n){return r.ControlFactory.Instance.createControl(n)},Object.defineProperty(t.prototype,"menuIconName",{get:function(){return"wstecz"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchValue",{get:function(){var n=this.props.window.Settings.SearchValue;return void 0===n&&(n=""),n},set:function(n){this.props.window.Settings.SearchValue=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSearch",{get:function(){return null!==this.props.window.findElementByName("search-command")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMainGroup",{get:function(){return e.a.any(this.RootElement.Elements,function(n){return n.hasClass("MainGroup")})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerClasses",{get:function(){return o()({"wb-menu":!this.IsMobile&&this.hasMainGroup})},enumerable:!1,configurable:!0}),t.prototype.addFormClass=function(){return r.GlobalSettings.Instance.IsStandardProduct?r.WindowManager.Instance.isNavMenuExist&&"Form"===this.props.window.Mode:!r.WindowManager.Instance.isNavMenuExist&&"Form"===this.props.window.Mode},Object.defineProperty(t.prototype,"windowClasses",{get:function(){return o()({window:!0,form:this.addFormClass(),"main-menu":!this.IsMobile&&this.hasMainGroup})},enumerable:!1,configurable:!0}),t.prototype.registerClose=function(n,t){n?this.props.window.unregisterClose():this.props.window.registerClose(t.bind(this))},t.prototype.toggleSearchBar=function(){this.registerClose(this.state.searchState,this.closeSearchBar);this.setState({searchState:!this.state.searchState})},t.prototype.toggleNavigationBar=function(n){n&&!Object(r.hasParentNode)(n.target,"navigation-bar")||(this.registerClose(this.state.navigationBarState,this.closeNavigatorBar),this.setState({navigationBarState:!this.state.navigationBarState}))},t.prototype.toggleMenuBar=function(n){n&&!Object(r.hasParentNode)(n.target,"menu-bar")||(this.registerClose(this.state.menuBarState,this.closeMenuBar),this.setState({menuBarState:!this.state.menuBarState}))},t.prototype.toggleFeaturesBar=function(){this.props.window.Root.findElement(function(n){return"Grid"===n.ElementType&&void 0!==n.Groups})&&(this.registerClose(this.state.featuresState,this.closeFeaturesBar),this.setState({featuresState:!this.state.featuresState}))},t.prototype.toggleActionBar=function(){var n=this.props.window.findElementByName("ActionsCommand");n&&n.postClick("")},t.prototype.onNavigationBarClose=function(n){this.toggleNavigationBar(n)},t.prototype.onMenuBarClose=function(n){this.toggleMenuBar(n)},t.prototype.onToggleFeaturesBar=function(n){this.toggleFeaturesBar(n)},t.prototype.createVerfierControl=function(){var n=this;return u.a.createElement(r.Verifier,{windowElement:this.props.window,onClose:function(t){return n.onCloseVerifier(t)}})},t.prototype.onCloseVerifier=function(n){this.WindowElement.RemoveVerifier(n,!0)},t.prototype.createHeaderCommands=function(){var t=this,n=this.props.window.findElementByName("HeaderBar");return n&&0!==n.Elements.length?n.Elements.map(function(n){var i=new r.CommandClickEventArgs(n.Name,n);return r.HeaderBarMobile.createHeaderCommand(n,t.onCommandClick.bind(t,i))},this):null},t.prototype.createFloatingBar=function(){return this.createBar("FloatingBar",!1)},t.prototype.createSecondHeaderBar=function(){var n=this;return this.createBar("SecondHeaderBar",!1,function(t){return n.onCommandClick(t)})},t.prototype.createMenuBar=function(n){var t=this;return n?this.createBar("MenuBar",!1,function(n){return t.onMenuBarClose(n)}):null},t.prototype.createNavigationBar=function(n){var t=this;return n?this.createBar("NavigationBar",!0,function(n){return t.onNavigationBarClose(n)}):null},t.prototype.createFeaturesBar=function(n){var f=this,t,i;return n?(t=r.ControlFactory.Instance.getControlType(null,"FeaturesBar"),!t)?null:(i=this.props.window.Root.findElement(function(n){return"Grid"===n.ElementType&&void 0!==n.Groups}),i?u.a.createElement(t,{dataElement:i,onCommandClick:function(n){return f.onToggleFeaturesBar(n)}}):null):null},t.prototype.createBar=function(n,t,i){var e=r.ControlFactory.Instance.getControlType(null,n),f;return e?(f=this.props.window.findElementByName(n),!f&&t&&this.props.window.Pages&&this.props.window.Pages.length>0&&(f=this.props.window.Root),f&&f.IsVisible&&0!==f.Elements.length?u.a.createElement(e,{dataElement:f,onCommandClick:i?function(n){return i(n)}:null}):null):null},t.prototype.isFocusedElementInDOM=function(n){return!!document.getElementById(n.Name)||!(!n.Parent||"Grid"!==n.Parent.ElementType||!document.getElementById(n.Name+"_filter"))},t.prototype.setFocusedControl=function(n,i){var u,o,s,h,c,f;if((void 0===i&&(i=!1),!(t.hasClass("dashboard")&&t.hasClass("dashboard-cell")||"Frame"===this.WindowElement.Mode||r.WindowManager.Instance.ActiveWindow!==this.props.window))&&(o=e.a.find(this.props.window.Verifiers,function(n){return n.KeepFocus&&n.DataElement&&n.DataElement.IsVisible}),(o&&(u=o.DataElement),i)||(s=!1,u||(h=!1,this.focusedElement&&(h=this.isFocusedElementInDOM(this.focusedElement)),h?u=this.focusedElement:s=!0),(n||s)&&(u||(u=this.RootElement.findVisibleElement(function(n){return n.hasClass("FirstResponder")&&n.IsVisible})),u||(u=this.RootElement.findVisibleElement(function(n){return("List"===n.ElementType||"Field"===n.ElementType||"Command"===n.ElementType)&&n.IsVisible&&n.Editable})),u||("Modal"!==this.WindowElement.Mode?u=e.a.find(this.WindowElement.Bars,function(n){return"HeaderBar"===n.Name&&n.IsVisible}):"Modal"===this.WindowElement.Mode&&(u=this.RootElement)))),!this.IsMobile&&u)){if(c="Modal"===this.WindowElement.Mode?this.getNameFromModal(u.Name):u.Name,f=document.getElementById(c),!f)return;t.hasClass("tile-menu")&&(f.classList.contains("tile-item")||f.classList.contains("tile-item-small"))&&(f=document.getElementsByClassName("tile-menu")[0]);f&&document.activeElement&&f!==document.activeElement&&(this.isCheckBox(f)?this.setFocusOnCheckBox(f):f.focus())}},t.prototype.getNameFromModal=function(n){var r=this.WindowElement.LocalID+"_overlay",t,i;return"Modal"===this.WindowElement.Mode&&this.WindowElement.LocalID&&(t=document.getElementById(this.WindowElement.LocalID.toString()),i=document.getElementById(n),t&&i&&t.contains(i)&&(r=n)),r},t.prototype.isCheckBox=function(n){var t=n?n.nodeName.toString():null;return t&&"input"===t.toLowerCase()&&"checkbox"===n.type},t.prototype.setFocusOnCheckBox=function(n){var t=n.closest(".editor-checkbox");t&&t.focus()},t.prototype.renderMobile=function(){return console.assert(!0,"Brak implementacji metody [renderMobile] renderującej komponent dla pełnego interfejsu Html"),null},t.prototype.prepareStyle=function(){return null},Object.defineProperty(t.prototype,"windowStyle",{get:function(){var n,t;if(this.hasMainGroup){if(n={},t=r.LanguageConstants.SETTINGS.CustomBgUrl,t){var i=r.LanguageConstants.SETTINGS.CustomBgRepeat,u=r.LanguageConstants.SETTINGS.CustomBgSize,f=r.LanguageConstants.SETTINGS.CustomBgPosition;n.backgroundImage="url("+t+")";i&&(n.backgroundRepeat=i);u&&(n.backgroundSize=u);i&&(n.backgroundPosition=f)}return n}},enumerable:!1,configurable:!0}),t.prototype.renderBrowser=function(){return null},Object.defineProperty(t.prototype,"IsMobile",{get:function(){return this.props.window.DeviceType===r.DeviceType.MobileBrowser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WindowHeader",{get:function(){var n=r.WindowBarBase.getControlType();return n?u.a.createElement(n,{window:this.props.window,windowBarCalculator:this.windowBarCalculator,className:this.headerClasses,captionHtml:this.props.window.CaptionHtml}):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WindowElement",{get:function(){return this.props.window},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RootElement",{get:function(){return this.props.window.SelectedPage||this.props.window.Root},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSecondHeaderBar",{get:function(){return null!==this.props.window.findElementByName("SecondHeaderBar")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFolderMenu",{get:function(){return null!==this.props.window.findElement(function(n){return"FolderMenuList"===n.Name})&&"Folder"===this.props.window.Mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageSelected",{get:function(){return this.props.window.Settings.pageSelected||(this.props.window.Settings.pageSelected=!1),this.props.window.Settings.pageSelected},set:function(n){this.props.window.Settings.pageSelected=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusedElement",{get:function(){return this.props.window.getFocusedElement()},enumerable:!1,configurable:!0}),t.prototype.onCommandClick=function(n){if(void 0!==n.Name)switch(n.Name){case"search-command":this.toggleSearchBar();n.Cancel=!0;break;case"MenuCommand":this.toggleMenuBar();n.Cancel=!0;break;case"ActionsCommand":this.toggleActionBar();n.Cancel=!0;break;case"GroupsCommand":this.toggleFeaturesBar();n.Cancel=!0;break;case"PageCommand":this.toggleNavigationBar();n.Cancel=!0;break;case"ButtonOK":this.props.window.postClose();n.Cancel=!0;break;default:void 0!==n.Element&&n.Element.postClick("");n.Cancel=!0}else n.Cancel||void 0===n.Element||n.Element.postClick("")},t.prototype.closeSearchBar=function(){this.setState({searchState:!1})},t.prototype.closeNavigatorBar=function(){this.setState({navigationBarState:!1})},t.prototype.closeMenuBar=function(){this.setState({menuBarState:!1})},t.prototype.closeFeaturesBar=function(){this.setState({featuresState:!1})},t.prototype.handler=function(n){this.pageSelected=n.PageSelected;n.LocationChanged||n.ElementsChanged||n.PageSelected?this.setState({version:this.props.window.Version}):n.VerifiersChanged?this.setFocusedControl(!1,!0):n.ActiveWindowChanged?this.setFocusedControl(!0):void 0!==n.LogoutRequested&&n.LogoutRequested&&this.props.window.post("click",null,null,"logout-command-without-dialog")},t.prototype.render=function(){return this.IsMobile?this.renderMobile():this.renderBrowser()},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var f,o=i(1),r=i.n(o),u=i(0),s=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){return n.call(this,t)||this}return s(t,n),t.prototype.onMenuClick=function(n){n.stopPropagation();n.preventDefault();this.hasSearch&&this.state.searchState?this.toggleSearchBar():this.toggleNavigationBar()},t.prototype.onSearchAction=function(n,t){this.searchValue=n;this.props.window.post(null,n,null,"search-command");t&&this.toggleSearchBar()},Object.defineProperty(t.prototype,"menuIconName",{get:function(){return this.hasSearch&&this.state.searchState?"wstecz":"menu"},enumerable:!1,configurable:!0}),t.prototype.handler=function(t){n.prototype.handler.call(this,t);(t.LocationChanged||t.ElementsChanged)&&(this.IsMobile||this.windowBarCalculator.updateCommands(),this.setState({version:this.props.window.Version}));var i=t.RemindersChanged;void 0!==i?this.setState({remindersCount:i.Count}):u.WindowManager.Instance.RemindersCount>0&&this.setState({remindersCount:u.WindowManager.Instance.RemindersCount})},t.prototype.renderMobile=function(){var n=this;return r.a.createElement(r.a.Fragment,null,this.createNavigationBar(this.state.navigationBarState),this.createMenuBar(this.state.menuBarState),this.createFloatingBar(),this.createFeaturesBar(this.state.featuresState),r.a.createElement(u.HeaderBarMobile,{searchActive:this.hasSearch,searchState:this.state.searchState,captionHtml:this.props.window.CaptionHtml,commands:this.createHeaderCommands(),searchValue:this.searchValue,menuIconName:this.menuIconName,reminderCounts:this.state.remindersCount,onMenuClick:function(t){return n.onMenuClick(t)},onSearchAction:function(t,i){return n.onSearchAction(t,i)}}),r.a.createElement("div",{className:"window",style:{padding:"0 "+this.WindowMargin+"px"}},this.createSecondHeaderBar(),u.WindowBase.createDataControl(this.RootElement),this.createVerfierControl()))},t.prototype.renderBrowser=function(){var n={name:this.RootElement.Name,isFolderMenu:this.isFolderMenu,top:this.windowBarCalculator.WindowBarHeight+40};return r.a.createElement(r.a.Fragment,null,this.WindowHeader,r.a.createElement(u.Scroll,e({ref:"scroll"},n),r.a.createElement("div",{ref:"window",className:this.windowClasses,style:this.windowStyle},u.WindowBase.createDataControl(this.RootElement),this.createVerfierControl())))},t}(u.WindowBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var f,o=i(1),u=i.n(o),r=i(0),s=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){return n.call(this,t)||this}return s(t,n),t.prototype.onMenuClick=function(n){n.stopPropagation();n.preventDefault();this.hasSearch&&this.state.searchState?this.toggleSearchBar():this.props.window.postClose()},t.prototype.onSearchAction=function(n,t){this.searchValue=n;var r=this.props.window.SelectedPage||this.props.window.Root,i=null;r.findElement(function(n){if("Grid"===n.ElementType){if(null!==i)return i=null,!0;i=n}return!1});null!==i&&i.post("loc",n);t&&this.toggleSearchBar()},t.prototype.onCommandClick=function(t){if(n.prototype.onCommandClick.call(this,t),!t.Cancel){var i=this.WindowElement.findElementByName(t.Name);i&&i.postClick()}},t.prototype.createWindowHeader=function(){return this.hasMainGroup?null:this.WindowHeader},t.prototype.handler=function(t){n.prototype.handler.call(this,t);t.LocationChanged&&(this.IsMobile||this.windowBarCalculator.updateCommands(),this.setState({version:this.props.window.Version}))},t.prototype.findWindow=function(n){return"Popup"!==n.Mode&&"Modal"!==n.Mode||!n.Parent?n:"Popup"!==n.Parent.Mode&&"Modal"!==n.Parent.Mode?n.Parent:void this.findWindow(n.Parent)},t.prototype.renderMobile=function(){var n=this;return u.a.createElement("div",null,this.createNavigationBar(this.state.navigationBarState),this.createMenuBar(this.state.menuBarState),this.createFloatingBar(),this.createFeaturesBar(this.state.featuresState),u.a.createElement(r.HeaderBarMobile,{searchActive:this.hasSearch,searchState:this.state.searchState,captionHtml:this.props.window.CaptionHtml,commands:this.createHeaderCommands(),searchValue:this.searchValue,menuIconName:this.menuIconName,onMenuClick:function(t){return n.onMenuClick(t)},onSearchAction:function(t,i){return n.onSearchAction(t,i)}}),u.a.createElement("div",{className:"window",style:{padding:"0 "+this.WindowMargin+"px"}},this.createSecondHeaderBar(),r.WindowBase.createDataControl(this.RootElement),this.createVerfierControl()))},t.prototype.renderBrowser=function(){var n=r.WindowManager.Instance.ActiveWindow,t=r.GlobalSettings.Instance.IsStandardProduct?240:280,i;return("Modal"===n.Mode||"Popup"===n.Mode)&&n.Parent&&(n=this.findWindow(n.Parent)),i={name:this.RootElement.Name,top:this.windowBarCalculator.WindowBarHeight+40,left:n&&n.Pages?r.WindowManager.Instance.isNavMenuExist||"Form"!==n.Mode?t:t-40:40,right:r.GlobalSettings.Instance.IsStandardProduct?0:10},u.a.createElement(u.a.Fragment,null,this.createWindowHeader(),u.a.createElement(r.Scroll,e({ref:"scroll"},i),u.a.createElement("div",{ref:"window",className:this.windowClasses},r.WindowBase.createDataControl(this.RootElement),this.createVerfierControl())))},t}(r.WindowBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var e,o=i(1),u=i.n(o),f=i(2),r=i(0),s=(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){var i=n.call(this,t)||this;return i.addNextBookmarkAsLast=!1,i.addBookmarkInIdx=-1,i.visibleWindows=[],i.bookmarksColl=[],i}return s(t,n),t.prototype.windowAddressChange=function(){var n=this.refs.navMenu;n&&n.changeNavigationAddress()},t.prototype.handler=function(t){n.prototype.handler.call(this,t);(t.FirstCall||t.ActiveWindowChanged||t.WindowsChanged)&&r.WindowManager.Instance.ActiveWindow&&this.setState({noOfWindows:r.WindowManager.Instance.Roots.length,activeWindowHandle:r.WindowManager.Instance.ActiveWindow.Handle});this.state.remindersCount!==r.WindowManager.Instance.RemindersCount&&this.setState({remindersCount:r.WindowManager.Instance.RemindersCount});t.FileOpenDialog&&this.setState({fileOpenDialog:t.FileOpenDialog})},t.prototype.bookmarkClick=function(n){var t=this.findWindow(n);t&&t.post("")},t.prototype.closeBookmarkClick=function(n){var t=this.findWindow(n);t&&t.postClose()},t.prototype.findLastVisibleChild=function(n){for(var t,u,i=0;i<n.length;i++)if(t=n[i],t.IsVisible&&"Modal"!==t.Mode&&"Popup"!==t.Mode)return t.ChildrenWindows.length>0?(u=t.ChildrenWindows,1===u.length&&u[0]===r.WindowManager.Instance.ActiveWindow?t:this.findLastVisibleChild(t.ChildrenWindows)):t},t.prototype.findVisibleWindows=function(){var u=r.WindowManager.Instance.Roots,t,n,i;for(this.visibleWindows=[],t=0;t<u.length;t++)n=u[t],("Folder"!==n.Mode&&"Form"!==n.Mode||this.visibleWindows.push(n),n.ChildrenWindows.length>0)&&(i=this.findLastVisibleChild(n.ChildrenWindows),i&&this.visibleWindows.push(i))},t.prototype.findWindow=function(n){var t=r.WindowManager.Instance.findByHandle(n);return t||null},t.prototype.findCommand=function(n){var i=f.a.filter(this.props.window.Bars,function(n){return"HomeBar"===n.Name}),t=f.a.filter(i[0].Elements,function(t){return t.Name===n}),r=t?t[0]:null;return r||null},t.prototype.createHomeCommand=function(){var n=this.findCommand("HomeCommand");return n?u.a.createElement("div",{className:"hb-home",onClick:function(){return n.postClick("")}},u.a.createElement(r.SvgIcon,{name:n.Icon,classes:"logo"})):null},t.prototype.createNewBookmark=function(){var i=this,t=this.refs.bookmarks,n;return t&&t.getBoundingClientRect().width<145*f.a.filter(r.WindowManager.Instance.Roots,function(n){return n.IsVisible&&("Folder"===n.Mode||"Form"===n.Mode)}).length+145+40?null:(n=this.findCommand("NewPageCommand"),n?u.a.createElement("div",{key:"b-new",className:"b-new",onClick:function(){i.addNextBookmarkAsLast=!0;n.postClick("")}},u.a.createElement(r.SvgIcon,{name:n.Icon,classes:"newPage"})):null)},t.prototype.bookmarkExist=function(n){for(var i=!1,t=0;t<this.bookmarksColl.length;t++)if(this.bookmarksColl[t].wh===n){i=!0;break}return i},t.prototype.bookmarkActivityRemove=function(){var n=this;f.a.each(this.bookmarksColl,function(t){t.active=t.wh===n.state.activeWindowHandle},this)},t.prototype.windowExistInCollection=function(n){for(var t,i=0;i<n.length;i++)return t=n[i],t.Handle===this.state.activeWindowHandle||!!(t.ChildrenWindows&&t.ChildrenWindows.length>0)&&this.windowExistInCollection(t.ChildrenWindows)},t.prototype.findActiveBookmarkHandle=function(){for(var n,t=0;t<this.visibleWindows.length;t++)if((n=this.visibleWindows[t],n.Handle===this.state.activeWindowHandle)||n.ChildrenWindows&&n.ChildrenWindows.length>0&&this.windowExistInCollection(n.ChildrenWindows))return n.Handle;return null},t.prototype.setActiveBookmarkInCollection=function(){for(var n,i=this.findActiveBookmarkHandle(),t=0;t<this.bookmarksColl.length;t++)n=this.bookmarksColl[t],n.active=n.wh===this.state.activeWindowHandle,(n.active||n.wh===i)&&(n.visible=!0)},t.prototype.addNewBookmark=function(n){var i=-1,t;if(0===this.bookmarksColl.length||this.addNextBookmarkAsLast)return this.addNextBookmarkAsLast=!1,this.bookmarksColl.push(n),!1;for(t=0;t<this.bookmarksColl.length;t++)if(this.bookmarksColl[t].active){i=t;this.bookmarksColl.splice(t+1,0,n);break}-1===i&&(-1!==this.addBookmarkInIdx?(this.bookmarksColl.splice(this.addBookmarkInIdx,0,n),this.addBookmarkInIdx=-1):this.bookmarksColl.push(n));-1!==i&&this.bookmarksColl[i].active&&(this.bookmarksColl[i].active=!1)},t.prototype.shouldByVisibleParent=function(n){for(var i,r=!1,t=0;t<n.ChildrenWindows.length;t++)if(i=n.ChildrenWindows[t],i.IsVisible&&("Modal"===i.Mode||"Popup"===i.Mode)){r=!0;break}return r},t.prototype.removeClosedBookmarks=function(){for(var t,i,n=0;n<this.bookmarksColl.length;n++)t=this.bookmarksColl[n],i=f.a.find(this.visibleWindows,function(n){return n.Handle===t.wh}),i||(t.active&&(this.addBookmarkInIdx=n),t.remove=!0),i&&i.ChildrenWindows.length>0&&(t.visible=this.shouldByVisibleParent(i));this.bookmarksColl=f.a.filter(this.bookmarksColl,function(n){return!1===n.remove})},t.prototype.createBookmarks=function(){var o=this,c=r.WindowManager.Instance,i=[],s,n,t,h,e;if(c)for(s=this.state.activeWindowHandle,this.findVisibleWindows(),n=0;n<this.visibleWindows.length;n++)t=this.visibleWindows[n],h=t.Handle===s,this.bookmarkExist(t.Handle)||this.addNewBookmark(new r.IBookmarksElement(t.Handle,t.CaptionHtml,h,n));return this.removeClosedBookmarks(),this.bookmarkActivityRemove(),this.setActiveBookmarkInCollection(),f.a.each(this.bookmarksColl,function(n,t){if(!n.visible)return!1;var r=n.active?"hb-bookmark active":"hb-bookmark";i.push(u.a.createElement("div",{key:"b-"+t,className:r},u.a.createElement("div",{className:"b-txt",onClick:function(){return o.bookmarkClick(n.wh)}},u.a.createElement("div",null,n.captionhtml)),u.a.createElement("div",{className:"b-close",onClick:function(){return o.closeBookmarkClick(n.wh)}},u.a.createElement("div",null,"x"))))}),e=this.createNewBookmark(),e&&i.push(e),i.length>0?u.a.createElement("div",{key:"hb-bookmarks",ref:"bookmarks",className:"hb-bookmarks"},i):null},t.prototype.findParentWindowForMenu=function(n){var t,i;for(this.findVisibleWindows(),t=this.visibleWindows.length-1;t>=0;t--)if(i=this.visibleWindows[t],"Modal"!==i.Mode&&"Popup"!==i.Mode)return i;return n},t.prototype.findBackgroundWindow=function(){var n=r.WindowManager.Instance.Roots,t=f.a.findIndex(n,function(n){return n&&!n.IsFrame&&"Modal"!==n.Mode&&"Popup"!==n.Mode});return n[t]&&n[t].Mode?this.processParentWindow(n[t]):null},t.prototype.processParentWindow=function(n){if("Popup"!==n.Mode&&"Modal"!==n.Mode)return n;if(n.Parent)return"Popup"!==n.Parent.Mode&&"Modal"!==n.Parent.Mode?n.Parent:this.processParentWindow(n.Parent);var t=this.findBackgroundWindow();return t||void 0},t.prototype.prepareBackgroundWindow=function(n){if(n.Parent)return"Popup"!==n.Parent.Mode&&"Modal"!==n.Parent.Mode?n.Parent:this.processParentWindow(n.Parent);var t=this.findBackgroundWindow();return t||n},t.prototype.createMenu=function(){var i,h,o,n=this.props.window.findElementByName("NavigationBar"),c=r.WindowManager.Instance,s=c.ActiveWindow,t=!s||"Popup"!==s.Mode&&"Modal"!==s.Mode?s:this.prepareBackgroundWindow(s),l=null,a=[],e,v;if(c.isNavMenuExist=!1,!t)return null;if("Form"===t.Mode){if(t.Pages)o="Form",i=r.FactoryNavigationMenuSource.createFormNavigationMenu(t.Pages),e=t.SelectedPage,e&&(v=e.CaptionHtml&&e.CaptionHtml.indexOf("/")>=0?e.CaptionHtml.split("/")[0]:e.CaptionHtml,l=f.a.find(i,function(n){return n.CaptionHtml===v})),r.GlobalSettings.Instance.IsStandardProduct||(c.isNavMenuExist=!0,a.push(u.a.createElement(r.NavigationMenuForm,{type:o,ref:"navMenu",key:"navmenu-form",groups:i,companyMain:h||null,selectedPage:l})));else if(r.GlobalSettings.Instance.IsStandardProduct)return null;r.GlobalSettings.Instance.IsStandardProduct||(n||n.IsVisible||0!==n.Elements.length)&&(l=null,o="Folder",h=r.FactoryNavigationMenuSource.createMainCompanyGroup(n.Elements),i=r.FactoryNavigationMenuSource.createFolderNavigationMenu("Folder",n.Elements))}else{if("Folder"!==t.Mode||!n||!n.IsVisible||0===n.Elements.length)return null;o="Folder";h=r.FactoryNavigationMenuSource.createMainCompanyGroup(n.Elements);i=r.FactoryNavigationMenuSource.createFolderNavigationMenu(t.Address,n.Elements)}return c.isNavMenuExist=!0,a.push(u.a.createElement(r.NavigationMenu,{type:o,ref:"navMenu",key:"navmenu-frame",groups:i,companyMain:h||null,selectedPage:l})),a},t.prototype.renderBrowser=function(){return u.a.createElement("div",{className:"hb"},this.createMenu(),u.a.createElement(r.HeaderBarBrowser,{window:this.props.window}),this.getFileOpen())},t.prototype.getFileOpen=function(){return this.state.fileOpenDialog?u.a.createElement(r.OpenFileControl,{Name:this.state.fileOpenDialog,key:this.state.fileOpenDialog}):null},t}(r.WindowBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,e=i(1),f=i.n(e),r=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.onDialogClose=function(){this.props.window&&this.props.window.postClose()},t.prototype.onDialogCommandClick=function(n){var t=this.props.window.findElementByName(n);t?t.postClick(""):this.props.window&&this.props.window.postClose()},Object.defineProperty(t.prototype,"DialogType",{get:function(){return this.props.window.SelectedPage?r.DialogType.Info:this.props.window.Root.hasClass("Warning")?r.DialogType.Warning:this.props.window.Root.hasClass("Error")?r.DialogType.Error:this.props.window.Root.hasClass("Information")?r.DialogType.Info:this.props.window.Root.hasClass("Question")?r.DialogType.Question:r.DialogType.Info},enumerable:!1,configurable:!0}),t.prototype.createButtonsSection=function(){var n=this.props.window.findElementByName("HeaderBar");return n&&0!==n.Elements.length?n.Elements.filter(function(n){return"Command"===n.ElementType}).map(function(n){return{Name:n.Name,Caption:n.CaptionHtml,icon:n.Icon,DataElement:n}},this):null},t.prototype.render=function(){var n=this,t=this.props.window.SelectedPage||this.props.window.Root;return f.a.createElement("div",{className:"window-modal"},f.a.createElement(r.Dialog,{id:this.props.window.LocalID.toString(),type:this.DialogType,caption:this.props.window.CaptionHtml,content:r.WindowBase.createDataControl(t),commands:this.createButtonsSection(),isMobile:this.props.window.Root.IsMobile,location:this.props.window.Root.Location,onDialogCommandClick:function(t){return n.onDialogCommandClick(t)},onDialogClose:function(t){return n.onDialogClose(t)}}),this.createVerfierControl())},t}(r.WindowBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,o=i(1),r=i.n(o),s=i(2),u=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},c=function(n){function t(t){var i=n.call(this,t)||this;return i.popupHelper=new u.PopupHelper,i.popupHelper.initializeByWindow(i.props.window),i.cords=i.popupHelper.getCords(),i.elements=i.popupHelper.Elements,i}return h(t,n),t.prototype.componentDidMount=function(){if(n.prototype.componentDidMount.call(this),this.props.window.IsMobile){var t=this.refs["tight-menu"];t&&t.getBoundingClientRect().height>this.rect.height&&(t.style.bottom="0")}},t.prototype.closePopup=function(){this.props.window.postClose()},t.prototype.closeMenu=function(n){n.stopPropagation();n.preventDefault();this.props.window.postEsc()},t.prototype.buildTightMenu=function(){var n=this.props.window.Root.Elements.filter(function(n){return"Command"===n.ElementType}).map(function(n){return r.a.createElement(u.CommandPopup,{key:n.Name,dataElement:n})},this),t=this.popupHelper.tightMenuCordsStyle(n.length);return r.a.createElement("div",{ref:"tight-menu",className:"popup-tight-menu",style:t},r.a.createElement("div",{className:"group-menu-commands"},n))},t.prototype.buildSlideMenu=function(){var n=this;return r.a.createElement("div",{className:"navigation-bar"},r.a.createElement("div",{className:"menu-content"},r.a.createElement(u.SlideMenu,{selectedPage:this.props.window.SelectedPage.CaptionHtml,anchor:u.AnchorPosition.Right,toggleMenu:function(){return n.closePopup()},pages:u.FactorySlideMenuSource.createPopupMenu(this.props.window.Pages)})))},t.prototype.createPopupBrowserContent=function(){var i=this,n,t;return 0===this.elements.length?(u.WindowManager.Instance.ActiveWindow.postEsc(),null):s.a.some(this.elements,function(n){return n.children.length>0})?r.a.createElement("div",{className:"popup-window",style:this.popupHelper.getCordsStyle()},r.a.createElement(u.NavigationMenu,{key:"navmenu-pop",ref:"navmenu",type:"Folder",isPopup:!0,maxHeight:this.popupHelper.maxAdvanceHeight,groups:this.elements}),";"):(n=this.cords?this.cords:this.popupHelper.getCords(),t={name:this.RootElement.Name,isFolderMenu:!1,postion:"fixed",top:n.top,left:n.left,width:n.width,maxHeight:n.maxHeight,zIndex:this.popupHelper.CalculatedZIndex+1},r.a.createElement(u.Scroll,e({className:"popup-window",ref:"scroll"},t),r.a.createElement(u.SimpleMenu,{isMobile:this.props.window.IsMobile,items:this.elements,closePopup:function(n){return i.closeMenu(n)}})))},t.prototype.renderMobile=function(){var t=this,n=this.props.window.Pages,i=n&&n.length>0;return r.a.createElement("div",{onClick:function(){return t.closePopup()},className:"popup"},i?this.buildSlideMenu():this.buildTightMenu())},t.prototype.renderBrowser=function(){var n=this,t=this.createPopupBrowserContent();return t?r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"popup-window-overlay",style:{zIndex:this.popupHelper.CalculatedZIndex},onClick:function(t){return n.popupHelper.IsSimpleMenu?n.closeMenu(t):null}}),t):null},t}(u.WindowBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var f,o=i(1),r=i.n(o),u=i(0),s=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(){return(e=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},h=function(n){function t(t){var i=n.call(this,t)||this;return i.headerBarDataElement=i.props.window.findElementByName("HeaderBar"),i}return s(t,n),t.prototype.createCommands=function(n){return n.Elements.filter(function(n){return"Command"===n.ElementType&&n.IsVisible}).map(function(n){return r.a.createElement(u.CommandModal,{key:n.Name,dataElement:n})},this)},t.prototype.createButtonsSection=function(){var n=this.props.window.findElementByName("HeaderBar");return n&&0!==n.Elements.length?r.a.createElement("div",{className:"wizard-buttons"},this.createCommands(n)):null},Object.defineProperty(t.prototype,"menuIconName",{get:function(){return this.headerBarDataElement&&this.headerBarDataElement.hasClass("NoClose")?"":"wstecz"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wizardSteps",{get:function(){return this.props.window.Pages},enumerable:!1,configurable:!0}),t.prototype.onMenuClick=function(n){n.stopPropagation();n.preventDefault();this.headerBarDataElement&&!this.headerBarDataElement.hasClass("NoClose")&&this.props.window.postClose()},t.prototype.createHeaderCommands=function(){return null},t.prototype.createWindowHeader=function(){return this.hasMainGroup?null:this.WindowHeader},t.prototype.handler=function(t){n.prototype.handler.call(this,t);t.LocationChanged&&(this.IsMobile||this.windowBarCalculator.updateCommands(),this.setState({version:this.props.window.Version}))},t.prototype.getWizardCommandsSection=function(){return 0===this.windowBarCalculator.WizardCommands.length?null:this.windowBarCalculator.WizardCommands.map(function(n,t){return n?r.a.createElement(u.WindowBarCommand,{ref:"wcmd-"+t,key:t,dataElement:n}):null})},t.prototype.wizzardNavigationButtons=function(){return"standard"===u.GlobalSettings.Instance.ProductClass?null:r.a.createElement("div",{className:"wb-wiz-com"},this.getWizardCommandsSection())},t.prototype.renderMobile=function(){var n=this,t=this.props.window.SelectedPage||this.props.window.Root;return r.a.createElement("div",null,r.a.createElement(u.HeaderBarMobile,{captionHtml:this.props.window.CaptionHtml,className:"headerbar-wizard",commands:this.createHeaderCommands(),menuIconName:this.menuIconName,onMenuClick:function(t){return n.onMenuClick(t)}}),r.a.createElement("div",{className:"wizard"},r.a.createElement("div",{className:"wizard-content"},u.WindowBase.createDataControl(t)),this.createButtonsSection()))},t.prototype.renderBrowser=function(){var n={name:this.RootElement.Name,top:this.windowBarCalculator.WindowBarHeight+40,left:0,bottom:u.GlobalSettings.Instance.IsStandardProduct?0:100,right:u.GlobalSettings.Instance.IsStandardProduct?0:10};return r.a.createElement(r.a.Fragment,null,this.createWindowHeader(),r.a.createElement(u.Scroll,e({ref:"scroll"},n),r.a.createElement("div",{ref:"window",className:this.windowClasses},u.WindowBase.createDataControl(this.RootElement),this.createVerfierControl())),this.wizzardNavigationButtons())},t}(u.WindowBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var e,o=i(1),u=i.n(o),s=i(3),f=i.n(s),r=i(0),h=(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}e(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.props.window.IsMobile||(i.windowBarNavigator=new r.WindowBarKeyNavigator(i)),i}return h(t,n),t.prototype.componentDidMount=function(){this.windowBarNavigator&&this.windowBarNavigator.onComponentDidMount()},t.prototype.componentWillUnmount=function(){this.windowBarNavigator&&this.windowBarNavigator.onComponentWillUnmount()},t.getControlType=function(){return r.GlobalSettings.Instance.IsStandardProduct?r.WindowBarBrowser:r.WindowBarBrowserPremium},t.prototype.keyDownListener=function(n){this.windowBarNavigator&&this.windowBarNavigator.keyDownListener(n)},t.prototype.addFormClass=function(){return r.GlobalSettings.Instance.IsStandardProduct?r.WindowManager.Instance.isNavMenuExist&&"Form"===this.props.window.Mode:!r.WindowManager.Instance.isNavMenuExist&&"Form"===this.props.window.Mode},t.prototype.prepareClasses=function(){this.classes={};this.classes.wb=!0;this.classes.wb=r.GlobalSettings.Instance.IsStandardProduct;this.classes["wb-premium"]=!r.GlobalSettings.Instance.IsStandardProduct;this.classes.wiz=this.props.windowBarCalculator.isWizzard;this.classes.form=this.addFormClass();this.favIconClasses={};this.favIconClasses["wb-icon"]=!0;this.favIconClasses["wb-fav"]=this.props.window.IsFav;this.navFormClasses={};this.navFormClasses["wb-nav-form"]=this.props.windowBarCalculator.hasNavFormCommands;this.titleClasses={};this.titleClasses["wb-text"]=!0;this.titleClasses["no-fav"]=!this.props.window.HasFav;this.wizardStepClasses={};this.wizardStepClasses["wb-wiz"]=!0;this.props.className&&(this.classes[this.props.className]=!0)},t.prototype.onCommandClick=function(){},t.prototype.onFavIconClick=function(){this.props.window.post("click",null,null,"folder-command")},Object.defineProperty(t.prototype,"isRestoreSession",{get:function(){return"RestoreSession"===this.props.window.Address},enumerable:!1,configurable:!0}),t.prototype.getHeaderTitle=function(){var n=this.props.captionHtml?this.props.captionHtml:"";return u.a.createElement("div",{key:"headerTitle",className:f()(this.titleClasses)},u.a.createElement("span",{dangerouslySetInnerHTML:{__html:n}}))},t.prototype.getFavIcon=function(){var n=this;return this.props.window.HasFav?u.a.createElement("div",{id:"folder-command",className:f()(this.favIconClasses),onClick:function(t){return n.onFavIconClick(t)}}):null},t.prototype.getNavForm=function(){if(!this.props.windowBarCalculator.NavFormCommands||0===this.props.windowBarCalculator.NavFormCommands.length)return null;var n=this.props.windowBarCalculator.NavFormCommands.map(function(n,t){return u.a.createElement(r.WindowBarNavFormCommand,{key:t,dataElement:n})});return u.a.createElement("div",{className:f()(this.navFormClasses)},n)},t.prototype.renderContent=function(){return null},t.prototype.render=function(){this.prepareClasses();var n={height:this.props.windowBarCalculator.isWizzard&&r.GlobalSettings.Instance.IsStandardProduct?"92px":this.props.windowBarCalculator.WindowBarHeight+"px",borderBottom:r.GlobalSettings.Instance.IsStandardProduct?"1px solid #c8d7dc":null},t=this.props.windowBarCalculator.HeaderBarElement?this.props.windowBarCalculator.HeaderBarElement.Name:"windowBarBrowser";return u.a.createElement("div",{id:t,className:f()(this.classes),style:n},this.renderContent())},t}(u.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var f,o=i(1),r=i.n(o),e=i(2),u=i(0),s=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),h=function(n){function t(t){return n.call(this,t)||this}return s(t,n),t.prototype.getCaptionBar=function(){var n={width:"calc(100% - "+this.props.windowBarCalculator.CommandsWidth+"px)"};return r.a.createElement("div",{className:"wb-header",style:n},this.getFavIcon(),this.getNavForm(),this.getHeaderTitle())},t.prototype.getCommandsSection=function(){return r.a.createElement(u.WindowBarCommands,{window:this.props.window,windowBarCalculator:this.props.windowBarCalculator})},t.prototype.getWizardCommandsSection=function(){return 0===this.props.windowBarCalculator.WizardCommands.length?null:this.props.windowBarCalculator.WizardCommands.map(function(n,t){return n?r.a.createElement(u.WindowBarCommand,{ref:"wcmd-"+t,key:t,dataElement:n}):null})},t.prototype.calcMaxNoOfSteps=function(){return Math.floor((window.innerWidth-262)/200)},t.prototype.stepColor=function(n,t){return n<t?"#76a300":n===t?"rgb(255, 140, 0)":"rgb(200, 200, 200)"},t.prototype.stepIcon=function(n,t){var i="";return n===t?i="jodit-pencil":n+1===t?i="down":n<t?i="wiecej_h":n>t&&(i="jodit-about"),i},t.prototype.getWizardSteps=function(){var o=this;if(!this.props.windowBarCalculator.isWizzard)return null;var t=this.props.window.Pages.filter(function(n){return n.IsVisible}),c=this.props.window.SelectedPage,n=t.indexOf(c),s=this.calcMaxNoOfSteps(),i=n-1<0||n-2<0?0:n-2,h=i+s>t.length-1?t.length-1:i+s,f=e.a.map(t,function(t,f){return f<i||f>h?null:r.a.createElement("div",{key:"step-"+f,className:"wiz-step"},r.a.createElement("div",{className:"step-cir",style:{backgroundColor:o.stepColor(f,n)}},r.a.createElement(u.SvgIcon,{classes:"con-icon",name:o.stepIcon(f,n)})),r.a.createElement("div",{className:"step-desc"},t.CaptionHtml),f!==h?r.a.createElement("div",{className:"step-sep"}):null)});return f=e.a.compact(f),r.a.createElement("div",{className:"wb-wiz"},r.a.createElement("div",{className:"wb-wiz-com"},this.getWizardCommandsSection()),r.a.createElement("div",{className:"wb-wiz-steps",style:{maxWidth:window.innerWidth-262+"px"}},f))},t.prototype.getContent=function(){if(this.props.windowBarCalculator.hasMainGroup)return null;var n={top:this.props.windowBarCalculator.CommandsTop+"px",height:this.props.windowBarCalculator.CommandsHeight+"px"};return r.a.createElement("div",{className:"wb-content",style:n},this.getCaptionBar(),this.getCommandsSection())},t.prototype.getPathBar=function(){if(this.props.windowBarCalculator.HasPathCommands&&!this.props.windowBarCalculator.isWizzard&&!this.isRestoreSession){var n=u.PathBar.getControlType();return n?r.a.createElement(n,{window:this.props.window,windowBarCalculator:this.props.windowBarCalculator}):null}return null},t.prototype.renderContent=function(){return r.a.createElement(r.a.Fragment,null,this.getContent(),this.getPathBar(),this.getWizardSteps())},t}(u.WindowBarBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var f,h=i(1),r=i.n(h),c=i(3),e=i.n(c),o=i(2),u=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(){return(s=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},a=function(n){function t(t){return n.call(this,t)||this}return l(t,n),t.prototype.getWizardCommandsSection=function(){return 0===this.props.windowBarCalculator.WizardCommands.length?null:this.props.windowBarCalculator.WizardCommands.map(function(n,t){return n?r.a.createElement(u.WindowBarCommand,{ref:"wcmd-"+t,key:t,dataElement:n}):null})},t.prototype.calcMaxNoOfSteps=function(){return Math.floor((window.innerWidth-262)/200)},t.prototype.getWizardSteps=function(){if(!this.props.windowBarCalculator.isWizzard)return null;var n=this.props.window.Pages.filter(function(n){return n.IsVisible}),h=this.props.window.SelectedPage,t=n.indexOf(h),i=this.calcMaxNoOfSteps(),s=Math.floor(i/2),u=i>=n.length-1||t-s<0?0:t>n.length-i?n.length-1-i:t-s,c=u+i>n.length-1?n.length-1:u+i,f=o.a.map(n,function(i,f){return f<u||f>c?null:r.a.createElement("div",{className:"wiz-step"},r.a.createElement("div",{className:"step-cir"+(f<t?" done":f===t?" active":"")},f>0?r.a.createElement("div",{className:"wiz-line-before"}):"",f<n.length-1?r.a.createElement("div",{className:"wiz-line-after"}):""),r.a.createElement("div",{className:"step-desc"+(f===t?" active":"")},i.CaptionHtml))});return f=o.a.compact(f),r.a.createElement("div",{className:e()(this.wizardStepClasses)},r.a.createElement("div",{className:"wb-wiz-steps",style:{maxWidth:window.innerWidth-262+"px"}},f))},t.prototype.getFavIcon=function(){var t=this,n;return this.props.window.HasFav?(n={id:"folder-command",name:"gwiazda",classes:e()({icon:!0,active:!0,disabled:!1,fav:this.props.window.IsFav}),enabled:!0,onClick:function(n){t.onFavIconClick(n)}},r.a.createElement(u.SvgIcon,s({},n))):null},t.prototype.getCaptionBar=function(){var n={top:this.props.windowBarCalculator.isWizzard?"112px":"42px",left:u.WindowManager.Instance.isNavMenuExist||"Form"!==this.props.window.Mode?"10px":"0px",right:"Form"===this.props.window.Mode||"Wizard"===this.props.window.Mode?"10px":"0px"};return r.a.createElement("div",{className:"wb-header",style:n},this.getFavIcon(),this.getNavForm(),this.getHeaderTitle())},t.prototype.getCommandsSection=function(){return r.a.createElement(u.WindowBarCommands,{window:this.props.window,windowBarCalculator:this.props.windowBarCalculator})},t.prototype.getPathBar=function(){if(!this.isRestoreSession){var n=u.PathBar.getControlType();return n?r.a.createElement(n,{window:this.props.window,windowBarCalculator:this.props.windowBarCalculator}):null}return null},t.prototype.renderContent=function(){var n={top:this.props.windowBarCalculator.CommandsTop+"px",height:this.props.windowBarCalculator.CommandsHeight+"px"};return r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"wb-content",style:n},this.getPathBar(),this.getCommandsSection()),this.getWizardSteps(),this.getCaptionBar())},t}(u.WindowBarBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return f});var u=i(2),r=i(0),f=function(){function n(n){this.commands=[];this.wizardCommands=[];this.stdCommands=[];this.visibleWrkCommands=[];this.navCommands=[];this.pathCommands=[];this.window=n;this.window&&this.window.Root&&this.window.Root.Elements&&(this.hasMainGroup=u.a.any(this.window.Root.Elements,function(n){return n.hasClass("MainGroup")}));this.initCommands();this.initPathCommands()}return n.prototype.initCommands=function(){this.closeIdx=-1;this.window&&this.window.Bars&&(this.initHeaderCommands(),this.initCaptionCommands(),"Wizard"===this.window.Mode&&this.initWizardCommands())},n.prototype.updateCommands=function(){this.initCommands();"Wizard"===this.window.Mode&&this.initWizardCommands()},n.prototype.initHeaderCommands=function(){this.headerBarDataElement=u.a.find(this.window.Bars,function(n){return"HeaderBar"===n.Name});this.headerBarDataElement&&(this.stdCommands=this.headerBarDataElement.Elements.filter(function(n){return"Command"===n.ElementType&&!n.hasClass("WorkerCommand")&&!n.hasClass("FormNavigationCommand")&&n.IsVisible}),this.visibleWrkCommands=this.headerBarDataElement.Elements.filter(function(n){return"Command"===n.ElementType&&n.hasClass("WorkerCommand")&&n.IsVisible}),"standard"===r.GlobalSettings.Instance.ProductClass&&(this.commands=this.stdCommands.concat(this.visibleWrkCommands),this.commands.length<n.commandsPerLine?this.commands.push(null):(this.closeIdx=n.commandsPerLine,this.commands.splice(this.closeIdx-1,0,null))))},Object.defineProperty(n.prototype,"workerCommandsCount",{get:function(){return this.headerBarDataElement?this.headerBarDataElement.Elements.filter(function(n){return"Command"===n.ElementType&&n.hasClass("WorkerCommand")}).length:0},enumerable:!1,configurable:!0}),n.prototype.initWizardCommands=function(){this.wizardBarDataElement=u.a.find(this.window.Bars,function(n){return"WizardBar"===n.Name});this.wizardBarDataElement&&(this.wizardCommands=this.wizardBarDataElement.Elements.filter(function(n){return"Command"===n.ElementType&&n.IsVisible}))},n.prototype.initCaptionCommands=function(){this.captionBarDataElement=u.a.find(this.window.Bars,function(n){return"CaptionBar"===n.Name});this.captionBarDataElement&&(this.navCommands=this.captionBarDataElement.Elements.filter(function(n){return"Command"===n.ElementType&&n.IsVisible}))},n.prototype.trimCaptionHtml=function(n){return n.substring(n.indexOf(":")+1,n.length)},n.prototype.initPathCommands=function(){var r=this,n,t,i;if(this.window)if(this.IsChildWindow)if(this.HasParent){for(n=this.window.Parent;n;)this.pathCommands.unshift({text:this.trimCaptionHtml(n.CaptionHtml)}),n=n.Parent;"Wizard"===this.window.Mode&&this.pathCommands.push({text:this.trimCaptionHtml(this.window.CaptionHtml)})}else"Form"!==this.window.Mode&&"Wizard"!==this.window.Mode||this.pathCommands.push({text:this.trimCaptionHtml(this.window.CaptionHtml)});else t=this.window.Address.split("/"),i=this.window.AddressHtml.split("/"),u.a.each(t,function(n,u){var e=t.slice(0,u+1).join("/"),f=i[u];""!==f&&r.pathCommands.push({text:f,path:e})},this)},Object.defineProperty(n.prototype,"HasParent",{get:function(){return null!==this.window.Parent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsChildWindow",{get:function(){return!this.window.Address||this.window.IsFrame},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"HeaderBarElement",{get:function(){return this.headerBarDataElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Commands",{get:function(){return this.commands},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"CommandsCount",{get:function(){return"standard"===r.GlobalSettings.Instance.ProductClass?this.Commands.length:this.StdCommands.length+(this.VisibleWrkCommands.length>0?1:0)+1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"StdCommands",{get:function(){return this.stdCommands},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"VisibleWrkCommands",{get:function(){return this.visibleWrkCommands},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"WizardCommands",{get:function(){return this.wizardCommands},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hasNavFormCommands",{get:function(){return this.navCommands.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"NavFormCommands",{get:function(){return this.navCommands},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"CommandsTop",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"CommandsWidth",{get:function(){return(r.WindowBase.defaultMenuCommandSize+n.commandMargin)*(this.CommandsCount<=n.commandsPerLine||!r.GlobalSettings.Instance.IsStandardProduct?this.CommandsCount:this.closeIdx)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"CommandsHeight",{get:function(){if(!r.GlobalSettings.Instance.IsStandardProduct)return 42;var t=Math.ceil(this.CommandsCount/n.commandsPerLine);return t<=0?0:6+t*(30+n.commandMargin)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"WizzardStepsHeight",{get:function(){return this.isWizzard?r.GlobalSettings.Instance.IsStandardProduct?50:70:0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"HeaderHeight",{get:function(){return r.GlobalSettings.Instance.IsStandardProduct?0:40},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"HasPathCommands",{get:function(){return r.GlobalSettings.Instance.IsStandardProduct?!this.IsChildWindow||this.HasParent:this.pathCommands.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"PathCommands",{get:function(){return this.pathCommands},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"PathsTop",{get:function(){return this.CommandsHeight},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"PathsHeight",{get:function(){return this.HasPathCommands?this.hasMainGroup?30:20:0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"PathsShowFavorite",{get:function(){return this.hasMainGroup},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"WindowBarPremiumHeight",{get:function(){return this.CommandsHeight+this.HeaderHeight+this.WizzardStepsHeight},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"WindowBarStandardHeight",{get:function(){var n="RestoreSession"===r.WindowManager.Instance.ActiveWindow.Address?20:0;return this.CommandsHeight+this.PathsHeight+this.WizzardStepsHeight+n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"WindowBarHeight",{get:function(){return r.GlobalSettings.Instance.IsStandardProduct?this.WindowBarStandardHeight:this.WindowBarPremiumHeight},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isWizzard",{get:function(){return"Wizard"===this.window.Mode},enumerable:!1,configurable:!0}),n.commandMargin=6,n.commandsPerLine=6,n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,e=i(1),r=i.n(e),o=i(3),s=i.n(o),u=i(0),h=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.state={version:i.state.version},i}return h(t,n),t.prototype.onClickMore=function(n){n.stopPropagation();n.preventDefault();this.isSplitCommand&&this.props.dataElement.post("click-more",null)},Object.defineProperty(t.prototype,"isWorkerCommand",{get:function(){return this.props.dataElement.hasClass("WorkerCommand")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSplitCommand",{get:function(){return this.props.dataElement.hasClass("SplitCommand")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isImportant",{get:function(){return this.props.dataElement.hasClass("Important")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return this.classes={},this.classes["wb-cmd"]=!this.isSplitCommand&&!this.isWorkerCommand,this.classes["wb-split"]=this.isSplitCommand,this.classes["wb-worker"]=this.isWorkerCommand,this.classes.important=this.isImportant,this.classes.short=this.isShortCommand,this.classes.disabled=!this.props.dataElement.Editable,s()(this.classes)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commandDescription",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commandIcon",{get:function(){return this.props.dataElement.Icon?r.a.createElement(u.SvgIcon,{name:this.props.dataElement.Icon,classes:"icon"}):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"splitIcon",{get:function(){var n=this;return this.isSplitCommand?r.a.createElement(u.SvgIcon,{name:"rozwin2",classes:"s-icon",onClick:function(t){return n.onClickMore(t)}}):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrintButton",{get:function(){return this.props.dataElement&&this.props.dataElement.Script&&"window.Soneta.print();"===this.props.dataElement.Script},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFF",{get:function(){return navigator&&navigator.userAgent&&navigator.userAgent.search("Firefox")>0},enumerable:!1,configurable:!0}),t.prototype.print=function(){var n,t;Object(u.isIE11)()?(n=document.getElementsByTagName("object")[0],n&&n.print()):(t=document.getElementById("print_if"),t&&t.contentWindow.print())},t.prototype.prepareStyle=function(){this.style=null},t.prototype.createContent=function(){return r.a.createElement("div",{className:"content"},this.commandIcon,this.isShortCommand?null:r.a.createElement("div",{className:"title",dangerouslySetInnerHTML:{__html:this.props.dataElement.CaptionHtml}}),this.splitIcon)},t.prototype.focus=function(){this.domElement&&this.domElement.classList.add("hover")},t.prototype.blur=function(){this.domElement&&this.domElement.classList.remove("hover")},t.prototype.onClick=function(n){n.stopPropagation();n.preventDefault();this.isPrintButton?this.print():this.props.dataElement&&this.props.dataElement.Editable&&this.props.dataElement.postClick("")},t.prototype.renderBrowser=function(){return this.isPrintButton&&this.isFF?null:n.prototype.renderBrowser.call(this)},t}(u.Command)},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var f,e=i(4),o=i.n(e),s=i(1),r=i.n(s),h=i(3),c=i.n(h),u=i(0),l=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),a=function(n){function t(t){var i=n.call(this,t)||this;return i.state={version:0},i}return l(t,n),t.prototype.componentDidMount=function(){this.domElement=o.a.findDOMNode(this)},Object.defineProperty(t.prototype,"id",{get:function(){return u.IsDebug?this.props.dataElement.Window.Handle+"_close":"windowclose"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsMobile",{get:function(){return this.DeviceType===u.DeviceType.MobileBrowser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DeviceType",{get:function(){return this.props.dataElement.Window.DeviceType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return this.classes={},this.classes["wb-close"]=!0,this.classes.short=this.props.withoutTitle,c()(this.classes)},enumerable:!1,configurable:!0}),t.prototype.onClick=function(){this.props.dataElement.Window.postClose()},t.prototype.focus=function(){this.domElement&&this.domElement.classList.add("hover")},t.prototype.blur=function(){this.domElement&&this.domElement.classList.remove("hover")},t.prototype.renderMobile=function(){return null},t.prototype.renderBrowser=function(){var n=this;return r.a.createElement("div",{className:this.classnames,onClick:function(t){return n.onClick(t)}},r.a.createElement("div",{className:"content"},r.a.createElement(u.SvgIcon,{name:"anuluj",classes:"icon"}),this.props.withoutTitle?null:r.a.createElement("div",{className:"title",dangerouslySetInnerHTML:{__html:u.LanguageConstants.RESOURCES.Str_Close||"Zamknij"}})))},t.prototype.render=function(){return this.IsMobile?this.renderMobile():this.renderBrowser()},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return v});var f,s=i(1),r=i.n(s),h=i(4),c=i.n(h),l=i(3),e=i.n(l),u=i(0),a=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},v=function(n){function t(t){var i=n.call(this,t)||this;return i.isMouseOverWorkers=!1,i.isMouseOverWorkersBtn=!1,i.isMouseOverScrollbar=!1,i.state={isWorkersActive:!1},i.IsMobile||"standard"===u.GlobalSettings.Instance.ProductClass||(i.windowBarCommandsKeyNavigator=new u.WindowBarCommandsKeyNavigator(i)),i}return a(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.windowBarCommandsKeyNavigator&&(this.windowBarCommandsKeyNavigator.onComponentDidMount(),this.windowBarCommandsKeyNavigator.moveToNavMenu())},t.prototype.componentDidUpdate=function(t,i,r){n.prototype.componentDidUpdate.call(this,t,i,r);this.windowBarCommandsKeyNavigator&&this.state.isWorkersActive&&this.windowBarCommandsKeyNavigator.onComponentDidUpdate()},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.windowBarCommandsKeyNavigator&&this.windowBarCommandsKeyNavigator.onComponentWillUnmount()},t.prototype.keyDownListener=function(n){this.windowBarCommandsKeyNavigator&&this.windowBarCommandsKeyNavigator.keyDownListener(n)},t.prototype.closePopup=function(){this.setWorkersActive(!1);this.setMouseOverWorkers(!1);this.setMouseOverWorkersBtn(!1)},t.prototype.mouseDownHandler=function(n){var t=this.refs["auto-container"],i=t?t.domElement:null;n&&n.target&&i&&i.contains(n.target)?(n.stopPropagation(),n.preventDefault()):this.setWorkersActive(!1)},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this)},t.prototype.prepareClasses=function(){n.prototype.prepareClasses.call(this);this.classes["wb-commands"]=!0},t.prototype.prepareStyle=function(){this.style={width:this.props.windowBarCalculator.CommandsWidth+"px"}},t.prototype.setMouseOverWorkers=function(n){this.isMouseOverWorkers=n},t.prototype.setWorkersActive=function(n){this.setState({isWorkersActive:n})},t.prototype.toggleWorkersActive=function(){this.setState({isWorkersActive:!this.state.isWorkersActive})},t.prototype.delayedWorkersListClosing=function(){var n=this;setTimeout(function(){n.isMouseOverWorkersBtn||n.isMouseOverWorkers||n.isMouseOverScrollbar||n.setWorkersActive(!1)},500)},t.prototype.setMouseOverWorkersBtn=function(n){this.isMouseOverWorkersBtn=n},t.prototype.setMouseOverScrollbar=function(n){this.isMouseOverScrollbar=n},Object.defineProperty(t.prototype,"Commands",{get:function(){return this.props.windowBarCalculator.Commands},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StdCommands",{get:function(){return this.props.windowBarCalculator.StdCommands},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VisibleWrkCommands",{get:function(){return this.props.windowBarCalculator.VisibleWrkCommands},enumerable:!1,configurable:!0}),t.prototype.onWorkerClick=function(n){n.postClick("");this.setWorkersActive(!1);this.setMouseOverWorkers(!1);this.setMouseOverWorkersBtn(!1);this.setMouseOverScrollbar(!1)},t.prototype.onWorkersListMouseLeave=function(){this.setMouseOverWorkers(!1);this.delayedWorkersListClosing()},t.prototype.onMouseOverScrollbar=function(){this.setMouseOverScrollbar(!0)},t.prototype.onMouseLeaveScrollbar=function(){this.setMouseOverScrollbar(!1);this.delayedWorkersListClosing()},t.prototype.onMouseOverWorkers=function(n){var t=parseInt(n.target.getAttribute("data-number"));this.windowBarCommandsKeyNavigator&&t!==this.windowBarCommandsKeyNavigator.CurrentItemIdx&&this.windowBarCommandsKeyNavigator.navigateToSelectedIndex(t)},t.prototype.showWorkers=function(){var t=this,n,i;return this.state.isWorkersActive?(n=this.refs.WorkersButton.getBoundingClientRect(),i={name:"WorkerList",top:n.top+n.height,left:n.left+n.width-350,width:350,height:32*this.VisibleWrkCommands.length+8,maxHeight:window.innerHeight-(n.top+n.height)},c.a.createPortal(r.a.createElement(u.Scroll,o({"data-lparent":"Worker",className:"popup-window",ref:"auto-container",onMouseOver:function(n){return t.onMouseOverScrollbar(n)},onMouseLeave:function(){return t.onMouseLeaveScrollbar()}},i),r.a.createElement("div",{className:"popup-simple-menu",onMouseLeave:function(){return t.onWorkersListMouseLeave()},onMouseOver:function(){return t.setMouseOverWorkers(!0)}},r.a.createElement("div",{className:"popup-column"},this.VisibleWrkCommands.map(function(n,i){return r.a.createElement(u.SimpleMenuItem,{ref:"nav-item"+i,key:"sim-it-"+i,captionHtml:n.CaptionHtml,dt:n,keyName:"nav-item"+i,dataNumber:i,onClickCallback:function(n){return t.onWorkerClick(n)},onMouseOverCallback:function(n){return t.onMouseOverWorkers(n)}})})))),document.body)):null},t.prototype.onMouseOverWorkersBtn=function(){this.setWorkersActive(!0);this.setMouseOverWorkersBtn(!0)},t.prototype.onMouseLeaveWorkersBtn=function(){this.setMouseOverWorkersBtn(!1);this.delayedWorkersListClosing()},t.prototype.renderWorkersButton=function(){var n=this,t=this.props.windowBarCalculator.workerCommandsCount;return 1===this.VisibleWrkCommands.length?r.a.createElement(u.WindowBarCommand,{ref:"WorkersButton",key:this.StdCommands.length,dataElement:this.VisibleWrkCommands[0]}):t>1&&this.VisibleWrkCommands.length>0?r.a.createElement("div",{ref:"WorkersButton",id:"WorkersButton",className:"wb-cmd",key:this.StdCommands.length,onMouseOver:function(){return n.onMouseOverWorkersBtn()},onMouseLeave:function(){return n.onMouseLeaveWorkersBtn()},onClick:function(){return n.toggleWorkersActive()}},r.a.createElement("div",{className:"content"},r.a.createElement("div",{className:"title"},u.LanguageConstants.RESOURCES.Str_More))):null},t.prototype.renderStandard=function(){var n=this;return r.a.createElement("div",{className:e()(this.classes),style:this.style},this.Commands.map(function(t,i){return t?r.a.createElement(u.WindowBarCommand,{ref:"wcmd-"+i,key:i,dataElement:t}):r.a.createElement(u.WindowBarCommandClose,{ref:"wcmd-"+i,key:i,dataElement:n.props.window.Root,withoutTitle:n.props.windowBarCalculator.isWizzard})}))},t.prototype.renderPremium=function(){return r.a.createElement("div",{className:e()(this.classes),style:this.style},this.StdCommands.map(function(n,t){return r.a.createElement(u.WindowBarCommand,{ref:"wcmd-"+t,key:t,dataElement:n})}),this.renderWorkersButton(),r.a.createElement(u.WindowBarCommandClose,{ref:"wcmd-workers",key:this.StdCommands.length+1,dataElement:this.props.window.Root,withoutTitle:this.props.windowBarCalculator.isWizzard}),this.showWorkers())},t.prototype.renderBrowser=function(){return 0===this.props.windowBarCalculator.CommandsCount?null:(this.prepareClasses(),this.prepareStyle(),"standard"===u.GlobalSettings.Instance.ProductClass?this.renderStandard():this.renderPremium())},t}(u.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.initItems=function(){var t,i,r;n.prototype.initItems.call(this);t=this.reactElement.refs;for(i in t)t.hasOwnProperty(i)&&(r=t[i],this.navigationItems.push(r))},t.prototype.keyDownListener=function(t){t.isDown?this.accept(t):n.prototype.keyDownListener.call(this,t)},t.prototype.accept=function(n){this.currentItem&&(n.isDown&&this.currentItem.onClickMore?(this.currentItem.onClickMore(n.event),n.setHandled(!0)):(this.currentItem.onClick(n.event),n.setHandled()))},t}(u.ComponentKeyNavigator)},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var r,u=i(1),f=i.n(u),e=i(3),o=i.n(e),s=i(0),h=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(t){var i=n.call(this,t)||this;return i.state={version:i.state.version},i}return h(t,n),t.prototype.onClickMore=function(){this.props.dataElement.post("click",null)},Object.defineProperty(t.prototype,"classnames",{get:function(){return this.classes={},this.classes["wb-nav"]=!0,o()(this.classes)},enumerable:!1,configurable:!0}),t.prototype.createContent=function(){return f.a.createElement("div",{className:"content"},this.commandIcon)},t}(s.WindowBarCommand)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var f,e=i(1),r=i.n(e),u=i(0),o=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return u.LanguageConstants.Init(),i.uri=new u.UriHelper(document.location.href),i.isMobile&&(i.eventRegistrar=new u.EventListenerRegistrar),i}return o(t,n),t.prototype.componentDidMount=function(){this.eventRegistrar&&this.eventRegistrar.attachEvents();document.body.style.overflow="hidden";this.changeCustomInfo()},t.prototype.componentWillUnmount=function(){this.eventRegistrar&&this.eventRegistrar.detachEvents()},Object.defineProperty(t.prototype,"contentClass",{get:function(){return"pageContent"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerClass",{get:function(){return"pageHeader"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyClass",{get:function(){return"pageBody"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerClass",{get:function(){return"pageFooter"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyRight",{get:function(){return"Soneta &copy; "+(new Date).getFullYear().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceType",{get:function(){return this.device||(this.device=this.getValueFormNode("device","deviceType",!0)),this.device},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"darkMode",{get:function(){if(!this.isDarkMode){var n=this.getValueFormNode("darkMode","darkMode",!0);this.isDarkMode="true"===n}return this.isDarkMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DbName",{get:function(){return this.dbName||(this.dbName=this.getValueFormNode("db","db",!0)),this.dbName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Path",{get:function(){return this.path||(this.path=this.getValueFormNode("path","path",!0)),this.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMobileApp",{get:function(){return"MobileApp"===this.deviceType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMobile",{get:function(){return 0===this.deviceType.indexOf("Mobile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDemoVersion",{get:function(){var n=this.uri.Host.toLowerCase().indexOf(".enova365.pl")>=0&&"demomobile"===this.DbName,t=this.uri.Host.toLowerCase().indexOf("demomobile.enova365.pl")>=0;return n||t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"demoInfo",{get:function(){var n=u.GlobalSettings.Instance.IsStandardProduct?u.LanguageConstants.RESOURCES.Str_WelcomeStandard:u.LanguageConstants.RESOURCES.Str_WelcomePremium,t=u.LanguageConstants.RESOURCES.Str_DemoMobileInfo,i=u.LanguageConstants.RESOURCES.Str_DemoInfo,f=u.LanguageConstants.RESOURCES.Str_DemoLogin,e=this.isDemoVersion||!this.isMobile?r.a.createElement("div",{className:"t-prime"},n):null,o=this.isDemoVersion&&this.isMobileApp?r.a.createElement("span",{className:"t-line"},r.a.createElement("br",null),t):null,s=this.isDemoVersion?[r.a.createElement("span",{className:"t-line",key:"sp1"},r.a.createElement("br",{key:"br"}),i),r.a.createElement("span",{key:"sp2",className:"line bold"}," ",f)]:null;return r.a.createElement("div",{className:"c-txt"},e,s,o)},enumerable:!1,configurable:!0}),t.prototype.changeCustomInfo=function(){var n,i,t;if(!this.isMobile){if(n=this.refs.lInfo,i=document.getElementById("templateName"),i){for(t=document.getElementById(i.value);n.firstChild;)n.removeChild(n.firstChild);t&&t.content?n.appendChild(t.content.cloneNode(!0)):n.innerHTML=t.innerHTML}n&&(n.style.opacity="1")}},t.prototype.getValueFormNode=function(n,t,i){return Object(u.GetValueFormNode)(n,t,i)},t.prototype.onGoLoginClick=function(){var n="/Login";""!==this.DbName&&(n+="/"+this.DbName);window.location.href=n},t.prototype.getLogo=function(){var i=this,n=u.LanguageConstants.SETTINGS,f=n&&n.CustomLogoStyle?"url("+n.CustomLogoStyle+")":null,e=n?n.CustomLogoLink:null,o=u.GlobalSettings&&u.GlobalSettings.Instance&&u.GlobalSettings.Instance.ProductClass?u.GlobalSettings.Instance.ProductClass:null,s=o?"logo_full_"+o:null,c={backgroundImage:f,cursor:e?"pointer":"default"},h=function(){return i.isMobile||i.isMobileApp?null:window.open(""+e)},t=null;return f?t=r.a.createElement("div",{className:"custom-logo",style:c,onClick:h}):s&&(t=r.a.createElement(u.SvgIcon,{key:"ProductIcon",name:s,classes:"icon",onClick:h})),t},t.prototype.renderContentMobile=function(){return null},t.prototype.renderContentBrowser=function(){return null},t.prototype.renderHeader=function(){var n=this.getLogo();return r.a.createElement("div",{className:"p-header",key:"header"},n)},t.prototype.renderFooter=function(){return this.isMobile?null:r.a.createElement("div",{className:"p-footer",dangerouslySetInnerHTML:{__html:this.copyRight}})},t.prototype.renderDemoInfoMobile=function(){return null},t.prototype.renderDemoInfoBrowser=function(){return null},t.prototype.renderInfoMobile=function(){return r.a.createElement("div",{className:"p-info"},this.renderDemoInfoMobile())},t.prototype.renderInfoBrowser=function(){return r.a.createElement("div",{ref:"lInfo",className:"p-info"},r.a.createElement("div",{className:"i-bg"}),this.renderDemoInfoBrowser())},t.prototype.renderMobile=function(){return r.a.createElement("div",{className:this.contentClass},this.renderHeader(),r.a.createElement("div",{className:"p-content"},this.renderContentMobile(),this.renderInfoMobile(),this.renderFooter()))},t.prototype.renderBrowser=function(){return r.a.createElement("div",{className:this.contentClass},this.renderInfoBrowser(),r.a.createElement("div",{className:"p-content"},this.renderHeader(),this.renderContentBrowser(),this.renderFooter()))},t.prototype.render=function(){return this.isMobile?this.renderMobile():this.renderBrowser()},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var f,e=i(1),r=i.n(e),u=i(0),o=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.componentDidMount=function(){n.prototype.componentDidMount.call(this);this.initComponentsHeight()},t.prototype.initComponentsHeight=function(){if(this.content=this.refs.content,this.commands=this.refs.commands,this.message=this.refs.message,this.title=this.refs.title,this.content){var n=this.content.parentElement.getBoundingClientRect();this.contentMaxStyle=n.height-200;this.content.style.maxHeight=this.contentMaxStyle+"px";this.message.style.height=this.contentMaxStyle-(this.title.clientHeight+this.commands.clientHeight)+"px"}},Object.defineProperty(t.prototype,"TitleText",{get:function(){return u.LanguageConstants.RESOURCES.Str_Informacja},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Message",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MessageClass",{get:function(){return"errorMsg"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BarClass",{get:function(){return"warning-bar"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TitleClass",{get:function(){return"title"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IconName",{get:function(){return"ostrzezenie"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IconClass",{get:function(){return"icon"},enumerable:!1,configurable:!0}),t.prototype.renderTitle=function(){return r.a.createElement("div",{ref:"title",className:this.BarClass},r.a.createElement("div",{className:this.TitleClass},r.a.createElement("span",null,this.TitleText)),r.a.createElement(u.SvgIcon,{classes:this.IconClass,name:this.IconName}))},t.prototype.renderMessage=function(){return r.a.createElement("div",{ref:"message",className:this.MessageClass,dangerouslySetInnerHTML:{__html:this.Message}})},t.prototype.renderCommands=function(){var n=this;return r.a.createElement("div",{ref:"commands",className:"errorCommands"},r.a.createElement(u.Button,{id:"btnGoLogin",className:"button",isMobile:u.CookieHelper.IsMobile,caption:u.LanguageConstants.RESOURCES.Str_GoLogin,onClick:function(t){return n.onGoLoginClick(t)}}))},t.prototype.renderContent=function(){return r.a.createElement("div",{ref:"content",className:"errorContent"},this.renderTitle(),this.renderMessage(),this.renderCommands())},t.prototype.renderContentMobile=function(){return this.renderContent()},t.prototype.renderContentBrowser=function(){return this.renderContent()},t}(u.BasePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),Object.defineProperty(t.prototype,"Message",{get:function(){return u.LanguageConstants.RESOURCES.Str_AdfsInfo},enumerable:!1,configurable:!0}),t.prototype.renderCommands=function(){return null},t}(u.BaseHomePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),Object.defineProperty(t.prototype,"Message",{get:function(){return u.LanguageConstants.RESOURCES.Str_BrowserInfo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MessageClass",{get:function(){return"browserMsg"},enumerable:!1,configurable:!0}),t.prototype.renderCommands=function(){return null},t}(u.BaseHomePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),Object.defineProperty(t.prototype,"TitleText",{get:function(){return u.LanguageConstants.RESOURCES.Str_CookieTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Message",{get:function(){return u.LanguageConstants.RESOURCES.Str_CookieContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MessageClass",{get:function(){return"cookieMsg"},enumerable:!1,configurable:!0}),t}(u.BaseHomePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),Object.defineProperty(t.prototype,"Message",{get:function(){return this.DbName?u.LanguageConstants.RESOURCES.Str_DBInfo.Format(this.DbName):u.LanguageConstants.RESOURCES.Str_DBNotExists},enumerable:!1,configurable:!0}),t}(u.BaseHomePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),Object.defineProperty(t.prototype,"TitleText",{get:function(){var n=document.getElementById("err_title");return n?n.value:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Message",{get:function(){var n=document.getElementById("err_message");return(n?n.value:"").replace("<br/><br/><br/>","<br/>")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BarClass",{get:function(){return"error-bar"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IconName",{get:function(){return"blad"},enumerable:!1,configurable:!0}),t}(u.BaseHomePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,f=i(1),e=i.n(f),r=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.path=i.uri.QueryString.path,i.state={verifierState:r.VerifierType.Hidden,verifierText:""},i}return o(t,n),t.prototype.componentDidMount=function(){this.onLoad()},Object.defineProperty(t.prototype,"handle",{get:function(){return this._handle||(this._handle=this.getValueFormNode("handle","handle",!0)),this._handle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this._message||(this._message=this.getValueFormNode("message","message",!0)),this._message},enumerable:!1,configurable:!0}),t.prototype.updateState=function(n,t){void 0===t&&(t="");this.setState({verifierState:n,verifierText:t})},t.prototype.onError=function(n,t){Object(r.OnErrorLogin)(n,this.isMobileApp);this.updateState(r.VerifierType.Error,t)},t.prototype.onSuccess=function(n){r.StorageHelper.SetAutoPath(this.path);document.location.href="/db/"+n.DBName+"#"},t.prototype.onLoad=function(){var t=this,n;this.handle&&(r.CookieHelper.SetDeviceType(this.deviceType),n={url:r.Constants.LOGIN_ADDRESS,data:r.CredentialsLink.createCredentialContext(this.DbName,this.handle,this.deviceType)},Object(r.Request)(n).then(function(i){i.ErrorHandle?t.onError(n.data,i.ErrorHandle):t.onSuccess(i)},function(i){t.onError(n.data,r.LanguageConstants.RESOURCES.Str_IncorrectCallLogin+i)}))},t.prototype.renderContentBrowser=function(){return this.handle?null:e.a.createElement("div",null,this.message)},t.prototype.renderContentMobile=function(){return null},t}(r.BasePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),Object.defineProperty(t.prototype,"Message",{get:function(){return u.LanguageConstants.RESOURCES.Str_ImpersonateInfo},enumerable:!1,configurable:!0}),t}(u.BaseHomePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),Object.defineProperty(t.prototype,"AddressIP",{get:function(){return this.addressip||(this.addressip=this.getValueFormNode("addressip","addressip",!0)),this.addressip},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Message",{get:function(){return u.LanguageConstants.RESOURCES.Str_IPInfo.Format(this.AddressIP)},enumerable:!1,configurable:!0}),t}(u.BaseHomePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var f,e=i(1),u=i.n(e),r=i(0),o=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this,u;return i.resizeHandler=function(n){return i.onResize(n)},i.isMobile&&i.eventRegistrar.registerEventListener({domElement:window,type:"resize",handler:i.resizeHandler}),i.autoLogout="1"===i.uri.QueryString.alr,i.user=i.uri.QueryString.user,i.pwd=i.uri.QueryString.pwd,i.user&&(i.user=Object(r.DecodeUri)(i.user)),i.pwd&&(i.pwd=Object(r.DecodeUri)(i.pwd)),r.StorageHelper.RemoveLastWindowHandle(),u=i.uri.QueryString.play,i.play&&(i.play=Object(r.DecodeUri)(i.play)),u&&r.CookieHelper.setCookieItem(r.Constants.COOKIE_PLAY,u,1),i.state={verifierState:i.autoLogout?r.VerifierType.Warning:r.VerifierType.Hidden,verifierText:i.autoLogout?r.LanguageConstants.RESOURCES.Str_AutoLogoutInfo:""},i}return o(t,n),Object.defineProperty(t.prototype,"contentClass",{get:function(){return"pageLogin"},enumerable:!1,configurable:!0}),t.prototype.onResize=function(){var n=document.body.getBoundingClientRect().height<400;this.setState({hideFooter:n})},t.prototype.updateState=function(n,t){void 0===t&&(t="");this.setState({verifierState:n,verifierText:t})},t.prototype.renderDemoInfoMobile=function(){return u.a.createElement("div",{className:"i-content"},this.demoInfo)},t.prototype.renderDemoInfoBrowser=function(){return u.a.createElement("div",{className:"i-content"},this.demoInfo,u.a.createElement(r.CookieBox,{isMobile:this.isMobile}))},t.prototype.renderContentMobile=function(){return u.a.createElement(r.SignInPanel,{key:"signInPanel",isDemoVersion:this.isDemoVersion,isMobile:this.isMobile,isMobileApp:this.isMobileApp,deviceType:this.deviceType,darkMode:this.darkMode,dbName:this.DbName,user:this.user,pwd:this.pwd})},t.prototype.renderContentBrowser=function(){return u.a.createElement("div",{className:"l-body"},u.a.createElement(r.SignInPanel,{key:"signInPanel",isDemoVersion:this.isDemoVersion,isMobile:this.isMobile,isMobileApp:this.isMobileApp,deviceType:this.deviceType,darkMode:this.darkMode,dbName:this.DbName,user:this.user,pwd:this.pwd}))},t}(r.BasePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,f=i(1),e=i.n(f),r=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return r.StorageHelper.RemoveLastWindowHandle(),i.state={verifierState:r.VerifierType.Hidden,verifierText:""},i}return o(t,n),t.prototype.componentDidMount=function(){this.onLoad()},t.prototype.updateState=function(n,t){void 0===t&&(t="");this.setState({verifierState:n,verifierText:t})},t.prototype.onError=function(n,t){Object(r.OnErrorLogin)(n,this.isMobileApp);this.updateState(r.VerifierType.Error,t)},t.prototype.onSuccessLogin=function(n,t,i){Object(r.OnSuccessLogin)(n,t,this.isMobileApp,i);document.location.href="/db/"+t.DBName+"#"+(""!==this.Path?this.Path:"/")},t.prototype.onLoad=function(){var t=this,n;r.CookieHelper.SetDeviceType(this.deviceType);n={url:r.Constants.LOGIN_ADFS_ADDRESS,withHeaders:!0,data:r.CredentialsAdfs.createCredentialContext(this.DbName,this.deviceType)};Object(r.Request)(n).then(function(i,r){i.ErrorHandle?t.onError(n.data,i.ErrorHandle):t.onSuccessLogin(n.data,i,r)},function(i){t.onError(n.data,r.LanguageConstants.RESOURCES.Str_IncorrectCallLogin+i)})},t.prototype.onDialogCommandClick=function(){document.location.href=r.Constants.LOGOFF_ADDRESS+"?db="+this.DbName+"#"+(""!==this.Path?this.Path:"/")},t.prototype.createDialog=function(){var u=this,n=null,t,i;return this.state.verifierState!==r.VerifierType.Hidden&&(t=this.state.verifierState===r.VerifierType.Error?r.SvgIcon.errorIcon:r.SvgIcon.warningIcon,i=this.state.verifierState===r.VerifierType.Error?r.DialogType.Error:r.DialogType.Warning,n=e.a.createElement(r.Dialog,{id:"dialog",defaultIconSvg:t,type:i,caption:r.LanguageConstants.RESOURCES.Str_DialogError,textHtml:this.state.verifierText,onDialogCommandClick:function(n){return u.onDialogCommandClick(n)}})),n},t.prototype.renderContentBrowser=function(){return this.createDialog()},t.prototype.renderContentMobile=function(){return this.createDialog()},t}(r.BasePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){var i=n.call(this,t)||this;return r.StorageHelper.RemoveLastWindowHandle(),i.state={verifierState:r.VerifierType.Hidden,verifierText:""},i}return f(t,n),t.prototype.componentDidMount=function(){this.onLoad()},Object.defineProperty(t.prototype,"Token",{get:function(){return this.token||(this.token=this.getValueFormNode("token","token",!0)),this.token},enumerable:!1,configurable:!0}),t.prototype.updateState=function(n,t){void 0===t&&(t="");this.setState({verifierState:n,verifierText:t})},t.prototype.onError=function(){window.location.href="/ImpersonateInfo"},t.prototype.onSuccess=function(n){r.StorageHelper.SetBusinessContext(n.BusinessCx);r.StorageHelper.ClearProviderCx();r.StorageHelper.SetDBName(n.DBName);var t=this.Path?this.Path.Capitalize().WithoutPL().ReplaceAll(" ",""):"/";document.location.href="/db/"+n.DBName+"#"+t},t.prototype.onLoad=function(){var n=this,t;r.CookieHelper.SetDeviceType(this.deviceType);t={url:r.Constants.LOGIN_IMPERSONATE_ADDRESS,data:r.CredentialsImpersonate.createCredentialContext(this.DbName,this.Token,this.deviceType)};Object(r.Request)(t).then(function(t){t.ErrorHandle?n.onError():n.onSuccess(t)},function(){n.onError()})},t.prototype.renderContentBrowser=function(){return null},t.prototype.renderContentMobile=function(){return null},t}(r.BasePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),t.prototype.componentDidMount=function(){this.onLoad()},Object.defineProperty(t.prototype,"Alr",{get:function(){return this.alr||(this.alr=this.getValueFormNode("alr","alr",!0)),this.alr},enumerable:!1,configurable:!0}),t.prototype.onLoad=function(){r.StorageHelper.ClearBusinessContext();r.StorageHelper.ClearProviderCx();r.StorageHelper.ClearDeviceSize();window.location.href=this.parseUrlRedirect()},t.prototype.parseUrlRedirect=function(){var n="/Login";return""!==this.DbName&&(n+="/"+this.DbName),"1"===this.Alr&&(n+="?alr=1"),this.Path&&(n+=(n.indexOf("?")>=0?"&":"?")+"path="+this.Path),n},t}(r.BasePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),Object.defineProperty(t.prototype,"Message",{get:function(){return u.LanguageConstants.RESOURCES.Str_LogOffInfo},enumerable:!1,configurable:!0}),t}(u.BaseHomePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var f=i(1),u=i.n(f),e=i(4),o=i.n(e),r=i(0),s=i(2),h=function(){function n(){this.pageExtenders=[];this.container=document.getElementById("container");this.rowBuilders=new r.Dictionary}return Object.defineProperty(n,"Instance",{get:function(){return n.instance||(n.instance=new n),n.instance},enumerable:!1,configurable:!0}),n.prototype.isRegisteredRowBuilder=function(n){return!!this.rowBuilders.getBuilder(n)},n.prototype.createRowBuilder=function(n,t){var i=this.rowBuilders[n];return i?new i(t):null},n.prototype.createPageContent=function(n){var t,i=new r.UriHelper(n).Pathname.toLocaleLowerCase(),f=i.split("/"),h=f.length>1?f[1].toLocaleLowerCase():f[0].toLocaleLowerCase(),c,e,s;if(i.indexOf("testmobile")>=0||i.indexOf("testbrowser")>=0)c=f[f.length-1].substr(0,1).toLocaleUpperCase()+f[f.length-1].substr(1),r.TestBase.run(c);else if(i.indexOf("login")>=0)t=u.a.createElement(r.Login);else if("adfs"===h)t=u.a.createElement(r.LoginAdfsPage);else if(i.indexOf("error")>=0)t=u.a.createElement(r.ErrorPage);else if(i.indexOf("adfsinfo")>=0)t=u.a.createElement(r.AdfsInfoPage);else if(i.indexOf("browserinfo")>=0)t=u.a.createElement(r.BrowserInfoPage);else if(i.indexOf("cookieinfo")>=0)t=u.a.createElement(r.CookieInfoPage);else if(i.indexOf("dbinfo")>=0)t=u.a.createElement(r.DbInfoPage);else if(i.indexOf("ipinfo")>=0)t=u.a.createElement(r.IpInfoPage);else if(i.indexOf("logoffinfo")>=0)t=u.a.createElement(r.LogOffInfoPage);else if(i.indexOf("impersonateinfo")>=0)t=u.a.createElement(r.ImpersonateInfoPage);else if(i.indexOf("impersonate")>=0)t=u.a.createElement(r.LoginImpersonate);else if(i.indexOf("logoff")>=0)t=u.a.createElement(r.LogOffPage);else if(i.indexOf("recovery")>=0)t=u.a.createElement(r.RecoveryPage);else if("getlink"===h)t=u.a.createElement(r.GetLink);else if(i.indexOf("unverifiedinfo")>=0)t=u.a.createElement(r.UnverifiedProductInfo);else if(this.pageExtenders.length>0){for(e=0,s=this.pageExtenders;e<s.length;e++)if(t=s[e].createPageContent(i))break}else r.WindowManager.Instance.Server=new r.SonetaServer,t=u.a.createElement(r.App);t&&this.container&&o.a.render(t,this.container)},n.prototype.registerPageFactoryExtender=function(n){var t=r.Describer.getName(n);void 0===s.a.find(this.pageExtenders,function(n){return r.Describer.getName(n)===t})&&this.pageExtenders.push(n)},n.prototype.registerRowBuilder=function(n,t){this.rowBuilders.containsKey(n)||this.rowBuilders.add(n,t)},n.prototype.checkPageLocation=function(){var i,n,u;if(!sessionStorage)return window.location.pathname="/BrowserInfo",!0;if("/"!==window.location.pathname)return!1;var t=r.StorageHelper.GetDBName(),f=r.StorageHelper.GetBusinessContext(),e=null!==f&&""!==f;return(t&&(i=window.location.pathname.match(/db\/(.*)/i),i&&(t=Object(r.DecodeUri)(i[1])).toLowerCase()!==sessionStorage.DBName.toLowerCase()&&(e=!1)),!e)?(n=window.location.pathname,u="/"+(t||n.substr(n.lastIndexOf("/")+1)),"#"===(n=window.location.hash).substr(0,1)&&(n=n.substr(1)),""!==(n=n.trim())&&(u+="?path="+n),window.location.href="/Login"+u,!0):!1},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var r,u=i(0),e=i(1),f=i.n(e),o=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),t.prototype.renderContentBrowser=function(){return f.a.createElement(u.RecoveryPanel,{isMobile:this.isMobile,isMobileApp:this.isMobileApp,deviceType:this.deviceType,darkMode:this.darkMode,dbName:this.DbName})},t.prototype.renderContentMobile=function(){return f.a.createElement(u.RecoveryPanel,{isMobile:this.isMobile,isMobileApp:this.isMobileApp,deviceType:this.deviceType,darkMode:this.darkMode,dbName:this.DbName})},t}(u.BasePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return s});var u,f=i(1),e=i.n(f),r=i(0),o=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(n){function t(t){var i=n.call(this,t)||this;return i.state={renderMsg:!1},i}return o(t,n),t.prototype.componentDidMount=function(){var t=this,i;n.prototype.componentDidMount.call(this);i={url:r.Constants.PRODUCT_INFO_ADDRESS,data:{db:this.DbName}};Object(r.Request)(i).then(function(n){t.serverVersion=n.ServerVersion;t.serverProduct=n.ServerProduct;t.webVersion=n.WebVersion;t.webProduct=n.WebProduct;t.setState({renderMsg:!0})})},t.prototype.shouldComponentUpdate=function(n,t){return t.renderMsg!==this.state.renderMsg},Object.defineProperty(t.prototype,"TitleText",{get:function(){return r.LanguageConstants.RESOURCES.Str_Komunikat},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BarClass",{get:function(){return"error-bar"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Message",{get:function(){return this.state.renderMsg?r.LanguageConstants.RESOURCES.Str_UnverifiedProductInfo.Format(this.serverVersion,this.webVersion,this.serverProduct,this.webProduct):null},enumerable:!1,configurable:!0}),t.prototype.renderCommands=function(){return e.a.createElement("div",{ref:"commands",className:"errorCommands"})},t}(r.BaseHomePage)},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(){}return n.test=function(n,t,i,u,f){void 0===t&&(t=null);n||(void 0!==i&&(t+=", "+i,void 0!==u&&(t+=u,void 0!==f&&(t+=f))),r.Player.pushAssert(t))},n.failed=function(n){void 0===n&&(n=null);r.Player.pushAssert(n)},n.areEqual=function(t,i,r){void 0===r&&(r=null);n.test(t===i,r,t,"===",i)},n.areNotEqual=function(t,i,r){void 0===r&&(r=null);n.test(t!==i,r,t,"!==",i)},n.greater=function(t,i,r){void 0===r&&(r=null);n.test(t>i,r,t,">",i)},n.greaterOrEqual=function(t,i,r){void 0===r&&(r=null);n.test(t>=i,r,t,">=",i)},n.less=function(t,i,r){void 0===r&&(r=null);n.test(t<i,r,t,"<",i)},n.lessOrEqual=function(t,i,r){void 0===r&&(r=null);n.test(t<=i,r,t,"<=",i)},n.isTrue=function(t,i){void 0===i&&(i=null);n.test(!!t,i,"!!",t)},n.isFalse=function(t,i){void 0===i&&(i=null);n.test(!t,i,"!",t)},n.isNull=function(t,i){void 0===i&&(i=null);n.test(null===t,i,t,"===null")},n.isNotNull=function(t,i){void 0===i&&(i=null);n.test(null!==t,i,t,"!==null")},n.isUndefined=function(t,i){void 0===i&&(i=null);n.test(void 0===t,i,t,"===undefined")},n.isNotUndefined=function(t,i){void 0===i&&(i=null);n.test(void 0!==t,i,t,"!==undefined")},n.contains=function(t,i,r){void 0===r&&(r=null);n.test(i.indexOf(t)>=0,r)},n.doesNotContain=function(t,i,r){void 0===r&&(r=null);n.test(i.indexOf(t)<0,r)},n.noRequest=function(){++r.Player.isTestSuspended;setTimeout(function(){--r.Player.isTestSuspended;r.Player.requests&&(r.Player.updateRequests(!0),n.test(0===r.Player.requests.length,"Request expected no request"))},300)},n.request=function(n,t,i,r){this.requests([{name:n,action:t,editValue:i,id:r}])},n.requests=function(t){++r.Player.isTestSuspended;setTimeout(function(){var u,f,i;if(--r.Player.isTestSuspended,r.Player.requests)for(r.Player.updateRequests(!0),n.test(r.Player.requests.length===t.length,"Request expected "+t.length+" post"),n.test(1===r.Player.requests[0].UpdateValues.length,"Request expected 1 UpdateValue"),u=0;u<t.length;++u)f=r.Player.requests[u].UpdateValues[0],i=t[u],i.name&&n.test(f.Name===i.name,"Request ["+u+"] expected Name: "+i.name+" but is "+f.Name),"string"==typeof i.action&&n.test(f.Action===i.action,"Request ["+u+"] expected Action: "+i.action+" but is "+f.Action),void 0!==i.editValue&&n.test(f.EditValue===i.editValue,"Request ["+u+"] expected EditValue: "+i.editValue+" but is "+f.EditValue),void 0!==i.id&&n.test(f.ID===i.id,"Request ["+u+"] expected ID: "+i.id+" but is "+f.ID)},300)},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(n){this.message=n;r.Player.quit()}return Object.defineProperty(n.prototype,"Message",{get:function(){return this.message},enumerable:!1,configurable:!0}),n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(t,i){if(this.currentCmd=0,this.delayFrom=10,this.delayTo=10,this.delayCmd=-1,this.asserts=[],null!==n.current)throw new Error("Another script is running now");this.splayer=t;this.commands=i;n.current=this}return n.play=function(n){var t=this;n.indexOf("*")>=0||n.indexOf("?")>=0?r.WindowManager.Instance.Server.scripter({ContextHandle:r.Test.Window.Handle,Action:"list2",Name:n}).then(function(n){t.playingScripts=n.Tests.map(function(n){return n.Name});t.playScript()}):(this.playingScripts=[n],this.playScript())},n.autoPlay=function(t){var i=this;n.autoPlayHandle=t;r.WindowManager.Instance.Server.scripter({ContextHandle:r.Test.Window.Handle,Action:"autoplay",Name:t}).then(function(u){if("wait"===u.Name)n.autoPlay(t);else if(u.Script){i.playingScripts=["autoplay",t];var f=new r.ScriptPlayer(u.Name,u.Script);f.compile();f.play()}else i.playingScripts=null})},n.playScript=function(){var u=this,t,i;null!==this.playingScripts&&(t=this.playingScripts.shift(),(0!==this.playingScripts.length&&t||(this.playingScripts=null),t)&&("autoplay"!==t?(i=r.WindowManager.Instance,i.Server.scripter({ContextHandle:i.ActiveWindow.Handle,Name:t}).then(function(n){if(!n.Script)throw u.playingScripts=null,new Error("Script is not exist: "+t);var i=new r.ScriptPlayer(t,n.Script);i.compile();i.play()})):n.autoPlay(this.playingScripts.shift())))},n.quit=function(t){null!==n.current&&null!==n.current.splayer&&(t||(t="OK"),n.current.asserts.length>0&&(t=n.current.asserts.join("\n")),n.current.splayer.sendStatus(t));var i=r.WindowManager.Instance.Server;i&&(i.requests=null);n.current=null;n.isTestSuspended=0;r.WindowManager.LockUiCounter=0},n.stop=function(){var t=r.WindowManager.Instance.Server;t&&(t.requests=null);n.current=null},Object.defineProperty(n,"isRunning",{get:function(){return null!==n.current},enumerable:!1,configurable:!0}),n.prototype.go=function(){console.log("Test '"+this.splayer.Name+"' is playing...");r.Test.click("body",-1,-1);this.goStep(this.calcDelay())},n.prototype.goStep=function(t){var i=this;setTimeout(function(){n.current===i&&n.current.executeStep()},t)},n.pushAssert=function(t){var i=n.current;throw null!==i&&(null===t&&(t=""),t&&(t+=": "),t+=this.getLine(i.currentCmd),n.current.asserts.push(t)),new r.AssertError(t);},n.getLine=function(t){var i=n.current.commands[t].toString();return"function(){"==i.substr(0,11)&&(i=i.substr(11)),"}"==i.substr(i.length-1)&&(i=i.substr(0,i.length-1)),i.trim()},n.prototype.executeStep=function(){var t,i;if(this.isFrameworkReady())for(;;){if(null===this.commands||this.currentCmd<0||this.currentCmd>=this.commands.length)return void n.quit();n.showSteps&&console.log("SCRIPTER:",n.getLine(this.currentCmd));n.updateRequests(!1);this.delayCmd=-1;t=void 0;try{t=this.commands[this.currentCmd]()}catch(t){return i=t?t.toString():"Execution error",void n.quit("ERROR: "+i)}if(void 0===t)return void(n.current&&(++this.currentCmd,this.goStep(this.delayCmd>=0?this.delayCmd:this.calcDelay())));"number"==typeof t?this.currentCmd=t:++this.currentCmd}else this.goStep(50)},n.updateRequests=function(t){var i=r.WindowManager.Instance.Server,u,f,e;if(i){if(t)for(u=0,f=i.requests;u<f.length;u++)e=f[u],n.requests.push(e);else n.requests=i.requests;i.requests=[]}},n.prototype.calcDelay=function(){return this.delayFrom>=this.delayTo?this.delayFrom:this.delayFrom+Math.floor(Math.random()*(this.delayTo-this.delayFrom))},n.prototype.isFrameworkReady=function(){return!r.WindowManager.Instance.IsServerRequesting&&n.isTestSuspended<=0&&r.WindowManager.LockUiCounter<=0},n.current=null,n.playingScripts=null,n.isTestSuspended=0,n.showSteps=!1,n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(n,t){this.Name=n;this.code=t.split("\n")}return n.prototype.compile=function(){for(var u,o,s,r=[],t=[],i=[],h=[{reg:n.regVar,action:function(n){r.push("var "+n[1]);t.push(n[1]+"="+n[2]+"\n; return null")}},{reg:n.regClose,action:function(){i.pop()()}},{reg:n.regWhile,action:function(n){var r=t.length;t.push("return ("+n[1]+") ? null : ");i.push(function(){t.push("return "+r);t[r]+=t.length+";"})}},{reg:n.regFor,action:function(u){var f=u[1].match(n.regVar),e,o;f?(r.push("var "+f[1]),t.push(f[1]+"="+f[2]+"; return null")):t.push(u[1]);e=t.length;o=u[3];t.push("return ("+u[2]+") ? null : ");i.push(function(){t.push(o);t.push("return "+e);t[e]+=t.length+";"})}},{reg:n.regIf,action:function(n){var r=t.length;t.push("return ("+n[1]+") ? null : ");i.push(function(){t.push("return __funcIf");t[r]+=t.length+";"})}},{reg:n.regElse,action:function(){var n=t.length-1;if("return __funcIf"!==t[n])throw Error('"else" without "if"');i.push(function(){t[n]="return "+t.length+";"})}}],c=function(n){var u=n.indexOf("//"),i,r;u>=0&&(n=n.substr(0,u));i=n.trim();""!==i&&(r=h.find(function(n){return!!i.match(n.reg)}),r?r.action(i.match(r.reg)):t.push(i+"\n"))},f=0,e=this.code;f<e.length;f++)c(e[f]);if(0!==i.length)throw Error("expected }");u=n.initScript;r.length>0&&(u+=r.join(";\n")+";\n\n");u+="return [\nfunction(){\n"+t.join("},\nfunction(){\n")+"}];\n";try{o=new Function(u);this.commands=o()}catch(n){s=n?n.toString():"";this.sendStatus("ERROR "+s)}},n.prototype.play=function(){new r.Player(this,this.commands).go()},n.prototype.sendStatus=function(n){var i=r.WindowManager.Instance,t;"OK"===n?console.log("Test '"+this.Name+"' successed"):console.log("Test '"+this.Name+"' failed: "+n);t=this.Name;r.Player.autoPlayHandle&&(t=t+":"+r.Player.autoPlayHandle);i.Server.scripter({ContextHandle:i.ActiveWindow.Handle,Name:t,Status:n}).then(function(){return r.Player.playScript()})},n.regVar=/^\s*var\s*([A-Z_][0-9A-Z_]*)\s*=(.*);?$/i,n.regWhile=/^\s*while\s*\((.*)\)\s*\{\s*$/i,n.regFor=/^\s*for\s*\((.*);(.*);(.*)\)\s*\{\s*$/i,n.regIf=/^\s*if\s*\((.*)\)\s*\{\s*$/i,n.regElse=/^\s*\else\s*\{\s*$/i,n.regClose=/^\s*\}\s*$/i,n.initScript="var Assert=Soneta.Scripter.Assert;function __funcIf(){return null;};\n",n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(){}return n.play=function(n){"auto:"===n.substring(0,5)?r.Player.autoPlay(n.substring(5)):(n.length>3&&".js"!==n.substr(n.length-3,3)&&(n+=".js"),r.Player.play(n))},n.sleep=function(n){++r.Player.isTestSuspended;setTimeout(function(){return--r.Player.isTestSuspended},n)},n.quit=function(){r.Player.quit()},n.stop=function(){r.Player.stop()},Object.defineProperty(n,"Window",{get:function(){return r.WindowManager.Instance.ActiveWindow},enumerable:!1,configurable:!0}),n.listElements=function(n){this._listElements(this.Window,n)},n.listFrameElements=function(n){this._listElements(r.WindowManager.Instance.Frame,n)},n._listElements=function(n,t){var f;if(!n)return null;for(var r=function(n){var i,u,f,e;if(t||n.IsVisible)if(i=n.Name+": "+n.ElementType,n.IsVisible||(i+=" (H)"),n.CaptionHtml&&(i+=', "'+n.CaptionHtml+'"'),n.Elements&&n.Elements.length>0){for("Grid"===n.ElementType||"Group"===n.ElementType||"Page"===n.ElementType||"Bar"===n.ElementType?console.groupCollapsed(i):console.group(i),u=0,f=n.Elements;u<f.length;u++)e=f[u],r(e);console.groupEnd()}else console.log(i)},i=0,u=n.Bars;i<u.length;i++)f=u[i],r(f)},n.listTests=function(n){r.WindowManager.Instance.Server.scripter({ContextHandle:this.Window.Handle,Action:"list",Name:n}).then(function(n){for(var t,i=0,r=n.Tests;i<r.length;i++)t=r[i],"Folder"===t.Status?console.group(t.Name):"EndFolder"===t.Status?console.groupEnd():console.log(t.Name+"\t"+t.Status)})},n.showSteps=function(){r.Player.showSteps=!0},n.transaction=function(){++r.Player.isTestSuspended;r.WindowManager.Instance.Server.scripter({ContextHandle:this.Window.Handle,Action:"transaction"}).then(function(){--r.Player.isTestSuspended})},n.rollback=function(){++r.Player.isTestSuspended;r.WindowManager.Instance.Server.scripter({ContextHandle:this.Window.Handle,Action:"rollback"}).then(function(){--r.Player.isTestSuspended})},n.findElement=function(n,t){var i,u=t?r.WindowManager.Instance.Frame:this.Window,f;if(!u)return null;if(n.indexOf("*")>=0)f=new RegExp(n.replace(/[*]/g,".*")),i=u.findElement(function(n){return f.test(n.Name)&&n.IsVisible});else if(!(i=u.findElementByName(n))||!i.IsVisible)return null;return i},n.findElementByText=function(n){var t,i=this.Window;return i?(n=n.toLowerCase(),(t=i.findElement(function(t){return t.CaptionHtml&&n===t.CaptionHtml.toLowerCase()&&t.IsVisible}))||(t=i.findElement(function(t){return t.CaptionHtml&&t.CaptionHtml.toLowerCase().indexOf(n)>=0&&t.IsVisible})),t):null},n.getRt=function(t){var f=null,i,u,e;if("body"===t||null===t?f=document.body:"close"===t?f=document.getElementsByClassName("wb-close")[0]:(i=t.split(":"),u=null,"text"===i[0]?(u=this.findElementByText(i[1]),i=i.splice(2)):"id"===i[0]?(f=document.getElementById(i[1]),i=i.splice(2)):"frame"===i[0]?(u=this.findElement(i[1],!0),i=i.splice(2)):(u=this.findElement(i[0]),i=i.splice(1)),u&&(f=i.length>0?n._findInChild(u,i):u.HTML)),!f)return r.Assert.failed("Element with name not found: "+t),null;for(e={E:f,X:0,Y:0,W:f.offsetWidth,H:f.offsetHeight},u=f;u;u=u.offsetParent)e.X+=u.offsetLeft-u.scrollLeft,e.Y+=u.offsetTop-u.scrollTop;return e},n._toScreen=function(n,t,i){return void 0===t?t=n.W/2:t<0&&(t=n.W+t),void 0===i?i=n.H/2:i<0&&(i=n.H+i),t+=window.screenLeft||window.screenX,i+=window.screenTop||window.screenY,t+=n.X,i+=n.Y,window.screen.width!==window.outerWidth&&window.screen.height!==window.outerHeight&&(t+=6.5,i+=84),0===window.screenTop&&0===window.screenY&&window.screen.height===window.outerHeight+40&&window.screen.width===window.outerWidth&&(i+=71),{x:t=Math.round(window.devicePixelRatio*t),y:i=Math.round(window.devicePixelRatio*i)}},n._findInChild=function(n,t){return"Field"===n.ElementType?this._findInField(n,t):this._findInGrid(n,t)},n._findInField=function(n,t){var f=document.getElementById(n.Name+"_scroll"),i,u;return f?(f=f.firstElementChild,i=t[0].toLowerCase(),u=n.Rows.find(function(n){return n.Data[0].toLowerCase()===i||n.Data.length>1&&n.Data[1].toLowerCase()===i}),u||(u=n.Rows.find(function(n){return n.Data[0].toLowerCase().indexOf(i)>=0||n.Data.length>1&&n.Data[1].toLowerCase().indexOf(i)>=0})),u?f.children[n.Rows.indexOf(u)]:(r.Assert.failed("Field element not found: "+t.join(":")),null)):(r.Assert.failed("Field element not found: "+t.join(":")),null)},n._findInGrid=function(n,t){var i,u=n.HTML,h,f,e,o,s,c;if("new"===t[0]){for(h=u.ownerDocument.getElementById(u.id+"_canvas"),f=h.children.length;--f>=0;)if(h.children[f].classList.contains("new"))return h.children[f];i=null}else if("header"===t[0])i=u.ownerDocument.getElementById(u.id+"_columns_cells");else if("filter"===t[0])i=u.ownerDocument.getElementById(u.id+"_filters_cells");else if("footer"===t[0])i=u.ownerDocument.getElementById(u.id+"_summary_cells");else if("focused"===t[0])i=u.getElementsByClassName("focused")[0];else if("+"===t[0].substr(0,1)||"-"===t[0].substr(0,1))for(i=u.getElementsByClassName("focused")[0],f=parseInt(t[0].substr(1));i&&f-->0;)i="+"===t[0].substr(0,1)?i.nextElementSibling:i.previousElementSibling;else f=parseInt(t[0]),i=u.ownerDocument.getElementById(u.id+"_canvas").children[f];return i?(e=parseInt(t[1]),isNaN(e)&&(o=t[1],s=void 0,o.indexOf("*")>=0?(c=new RegExp(o.replace(/[*]/g,".*")),s=n.findElement(function(n){return c.test(n.Name)})):s=n.findElement(function(n){return n.Name===o}),s||(o=o.toLowerCase(),(s=n.findElement(function(n){return n.CaptionHtml&&n.CaptionHtml.toLowerCase()===o}))||(s=n.findElement(function(n){return n.CaptionHtml&&n.CaptionHtml.toLowerCase().indexOf(o)>=0}))),s?(e=n.Elements.indexOf(s))>=0&&++e:e=-1),e<0||e>=i.children.length?(r.Assert.failed("Grid column not found: "+t.join(":")),null):i.children[e]):(r.Assert.failed("Grid row not found: "+t.join(":")),null)},n.highlight=function(n){var i=this.getRt(n),t=document.createElement("div"),f,u;t.style.backgroundColor="navy";t.style.opacity="0.4";t.style.position="absolute";t.style.left=i.X+"px";t.style.top=i.Y+"px";t.style.width=i.W+"px";t.style.height=i.H+"px";t.style.zIndex="100000000";f=8;++r.Player.isTestSuspended;u=function(){document.body.appendChild(t);setTimeout(function(){document.body.removeChild(t);--f>0?setTimeout(u,200):--r.Player.isTestSuspended},200)};u()},n.getText=function(n){var t=this.getRt(n);return t.E.firstElementChild&&"INPUT"===t.E.firstElementChild.tagName?t.E.firstElementChild.value:t.E.innerText.trim()},n.sendKeys=function(n){var e=this,t;this._isPlaying()||(n="+{F6}"+n);var i=this.getRt("body"),u=this._toScreen(i,0,0),f=this._toScreen(i,-2,-2);++r.Player.isTestSuspended;var o=this._mouseMoveCounter,s=0,h=window.location.href;window.location.href="enova365://1:SendKeys|"+n+"|"+u.x+"|"+u.y+"|"+f.x+"|"+f.y;window.location.href=h;t=function(){++s<60&&o===e._mouseMoveCounter?setTimeout(t,50):--r.Player.isTestSuspended};setTimeout(t,50)},n._isPlaying=function(){for(var n=arguments.callee.caller;n;n=n.caller)if(n.toString().indexOf("this.commands[this.currentCmd]();")>=0)return!0;return!1},n.click=function(t,i,r){n._mouse(t,i,r,"")},n.dblClick=function(t,i,r){n._mouse(t,i,r,"dbl")},n.clickRight=function(t,i,r){n._mouse(t,i,r,"right")},n.move=function(t,i,r){n._mouse(t,i,r,"move")},n.moveBy=function(n,t){var i=window.location.href;window.location.href="enova365://1:Mouse|"+n+"|"+t+"|delta";window.location.href=i},n._mouse=function(n,t,i,u){var o=this,s=this.getRt(n),e=this._toScreen(s,t,i),f;++r.Player.isTestSuspended;var h=this._mouseUpCounter,c=0,l=window.location.href;window.location.href="enova365://1:Mouse|"+e.x+"|"+e.y+"|"+u+"|"+document.title.replace(/ /g,"");window.location.href=l;f=function(){++c<60&&h===o._mouseUpCounter?setTimeout(f,50):--r.Player.isTestSuspended};setTimeout(f,50)},n.post=function(n,t,i){r.WindowManager.Instance.CurrentWindow.post(t,i,void 0,n)},n.close=function(){this.post(null,"closeforce")},n.navigateFolder=function(n){var t=r.WindowManager.Instance,i={window:t.CurrentWindow,controlRq:{Name:"navigate-command",Action:"click",EditValue:n}};t.post(i)},n.navigatePage=function(n){var i,t=n.split(":");if("text"===t[0]?(i=this.findElementByText(t[1]),t=t.splice(2)):(i=this.findElement(t[0]),t=t.splice(1)),!i||"Page"!==i.ElementType)return r.Assert.failed("Page not found: "+n),null;i.postClick()},n._mouseUpCounter=0,n._mouseMoveCounter=0,n}();window.Test=u;window.test=u;document.addEventListener("mouseup",function(){++u._mouseUpCounter});document.addEventListener("mousemove",function(){++u._mouseMoveCounter});setTimeout(function(){if(r.WindowManager.Instance.ActiveWindow){var n=r.CookieHelper.getCookieItem(r.Constants.COOKIE_PLAY);n&&(r.CookieHelper.setCookieItem(r.Constants.COOKIE_PLAY,"",1),u.play(n))}},4e3)},function(n,t,i){"use strict";var r=i(0);Window.prototype.appClient={clickBack:function(){"MobileApp"===r.CookieHelper.GetDeviceType()&&r.WindowManager.Instance.CurrentWindow&&r.WindowManager.Instance.CurrentWindow.tryClose()},setLastWindowHandle:function(){"MobileApp"===r.CookieHelper.GetDeviceType()&&r.WindowManager.Instance&&r.WindowManager.Instance.CurrentWindow&&r.WindowManager.Instance.CurrentWindow.Handle&&(r.StorageHelper.SetLastWindowHandle(r.WindowManager.Instance.CurrentWindow.Handle),Android.returnWindowHandle(r.WindowManager.Instance.CurrentWindow.Handle))},fileUploadResult:function(n,t,i){"MobileApp"===r.CookieHelper.GetDeviceType()&&r.WindowManager.Instance.CurrentWindow.post("put",t+"|"+i,null,n)},getPingParams:function(){if("MobileApp"===r.CookieHelper.GetDeviceType()){var t=r.StorageHelper.GetBusinessContext(),n=[];r.WindowManager.Instance.forEachWindow(function(t){return n.push(t.Handle)});Android.getPingData(t,n)}},goToNotifications:function(){if("MobileApp"===r.CookieHelper.GetDeviceType()){var n=r.WindowManager.Instance.ActiveWindow.findElementByName("RemainderCommand");n&&n.postClick()}},barCodeScanResult:function(n){if("MobileApp"===r.CookieHelper.GetDeviceType()){var t=r.WindowManager.Instance.ActiveWindow;t&&t.post("click",n,null,"barcode-reader")}}}},function(n,t,i){"use strict";i.d(t,"a",function(){return f});var u=i(0),r=i(2),f=function(){function n(n){var t=this;this.colorsPalette=new u.DictionaryEx;this.targetMap=new u.DictionaryEx;r.a.each(n,function(n){var f={Target:n.Target,BackColor:n.BackColor,ForeColor:n.ForeColor,FontStyle:n.FontStyle,Type:n.Type,Text:n.Text},i=t.colorsPalette.length+1,u;(t.colorsPalette.add(i,f),n.Target)&&(u=n.Target.split(","),r.a.each(u,function(n){t.targetMap.add(n,i)}))})}return n.calculateFontStyle=function(n,t){n.FontStyle&&(n.FontStyle.indexOf("Bold")>=0&&(t.fontWeight="bold"),n.FontStyle.indexOf("Italic")>=0&&(t.fontStyle="italic"),n.FontStyle.indexOf("Strikeout")>=0&&(t.textDecoration="line-through"),n.FontStyle.indexOf("Underline")>=0&&(t.textDecoration="underline"))},n.prototype.removeAppearance=function(n){var t=this;r.a.each(this.targetMap.keys,function(i){var r,u;i&&(r=i.split("/"),r&&r.length>=1&&r[0]===n&&(u=t.targetMap.get(i),t.targetMap.remove(i),t.colorsPalette.remove(u)))})},Object.defineProperty(n.prototype,"Values",{get:function(){return this.colorsPalette.values||[]},enumerable:!1,configurable:!0}),n.prototype.getAppearance=function(n){if(this.targetMap.containsKey(n)){var t=this.targetMap.get(n);if(t>=0&&this.colorsPalette.containsKey(t))return this.colorsPalette.get(t)}return null},n.prototype.getAppearanceElement=function(){return this.colorsPalette?this.colorsPalette.first():null},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r=i(0),f=i(2),u=1,e=function(){function n(){this.version=++u;this.ev=null;this.settings={};this.events=new r.EventSet}return Object.defineProperty(n.prototype,"Version",{get:function(){return this.version},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Settings",{get:function(){return this.settings.ColumnSettings||(this.settings.ColumnSettings={}),this.settings.GridSettings||(this.settings.GridSettings={FocusedRowId:"",FocusedColumnIdx:-1,ScrollLeft:0}),this.settings},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"uniqueKey",{get:function(){return r.EventSet.getUniqueKey(this,!0)},enumerable:!1,configurable:!0}),n.prototype.callHandler=function(n,t){"function"==typeof n?n(t):n.handler&&n.handler(t)},n.prototype._initEvent=function(){},n.prototype.addListenerAndCall=function(n){this.addListener(n);var t={FirstCall:!0};this.ev&&(t=Object(r.MergeRecursive)(t,this.ev));this.callHandler(n,t)},n.prototype.addListener=function(n){this.events.add(n)},n.prototype.removeListener=function(n){this.events.delete(n)},n.prototype._mark=function(){return this.ev||(this.version=++u,this.ev={},this._initEvent(this.ev)),this.ev},n.prototype._invoke=function(){var n=this,t;this.ev&&!this.ev._created&&void 0!==this.events&&(1===this.events.length?(t=this.events.first(),t&&this.callHandler(t,this.ev)):f.a.each(this.events.keys,function(t){var i=n.events.byKey(t);i&&n.callHandler(i,n.ev)}));this.ev&&delete this.ev},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var f,u=i(2),r=i(0),e=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(i,u,f){var e=n.call(this)||this,o,h,c,s;if(e.window=i,e.parent=u,e.fe=f,e.elements=[],e.id=0,e.editValue=null,e.displayHtml=null,e.descriptionHtml=null,e.editable=!0,e.sendAccept=!1,e.maxLength=0,e.orderBy=null,e.focusElement=null,e.rows=null,e.selectedRows=[],e.filterRow=null,e.summaryRow=null,e.startArchived=!1,e.endArchived=!1,e.start=0,e.backward=!1,e.reactComponent=null,e.location=new r.Location(f.Location,e.hasClass("DashboardItem")),e.captionHtml=f.CaptionHtml?Object(r.decodeString)(f.CaptionHtml):f.CaptionHtml,e.descriptionHtml=f.DescriptionHtml?Object(r.decodeString)(f.DescriptionHtml):f.DescriptionHtml,e.editorType=f.EditorType,void 0!==f.Appearance&&(e.appearancePalette=new r.AppearancePalette([f.Appearance])),"Field"===f.Type&&"Grid"===e.parent.ElementType?e.editable=!0:"Dashboard"===f.Type&&(e.editable=!1),e.displayMode="Auto",e.ReactUniqueKey="".CreateReactKey(),f.Elements&&f.Elements.length>0)for(o=0,h=f.Elements;o<h.length;o++)c=h[o],s=new t(i,e,c),"Bar"===c.Type?(i.Bars.push(s),e.parent=null):e.elements.push(s),e.window.RegisterShortcut(s);return e}return e(t,n),Object.defineProperty(t.prototype,"includedElementsCount",{get:function(){return this.includedElements?this.includedElements.length:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FormElement",{get:function(){return this.fe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Window",{get:function(){return this.window},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Elements",{get:function(){return this.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Columns",{get:function(){return this.columns},set:function(n){this.columns=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ReactUniqueKey",{get:function(){return this.reactUniqueKey},set:function(n){this.reactUniqueKey=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.fe.Name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"UniqueName",{get:function(){return"_"+this.window.LocalID+"_"+this.fe.Name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ID",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ElementType",{get:function(){return this.fe.Type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Location",{get:function(){return this.location},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Left",{get:function(){return this.location.Left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Right",{get:function(){return this.location.Right},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Top",{get:function(){return this.location.Top},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Bottom",{get:function(){return this.location.Bottom},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Height",{get:function(){return this.location.Height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Width",{get:function(){var n=this.Settings.ColumnSettings.ResizedWidth;return n&&n>0?n:this.location.Width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsVisible",{get:function(){return this.location.IsVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EditValue",{get:function(){return this.editValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DescriptionHtml",{get:function(){return this.descriptionHtml?Object(r.decodeString)(this.descriptionHtml):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayHtml",{get:function(){return this.displayHtml?Object(r.decodeString)(this.displayHtml):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Editable",{get:function(){return this.editable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SendAccept",{get:function(){return this.sendAccept},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TagInfo",{get:function(){return this.fe.TagInfo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Tag",{get:function(){return this.tag},set:function(n){this.tag=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Command",{get:function(){return this.command},set:function(n){this.command=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FocusElement",{get:function(){return this.focusElement},set:function(n){this.focusElement=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CaptionHtml",{get:function(){return this.captionHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Script",{get:function(){return this.fe.Script},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Icon",{get:function(){return this.fe.Icon},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GroupIcon",{get:function(){return this.fe.GroupIcon},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Key",{get:function(){return this.fe.Key},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TypeName",{get:function(){return this.fe.TypeName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Info",{get:function(){return this.fe.Info},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EditorType",{get:function(){return this.editorType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MaxLength",{get:function(){return this.maxLength},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EditorSelection",{get:function(){return this.editorSelection},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"View",{get:function(){return this.view},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsGroupsCommand",{get:function(){return this.Name.indexOf("GroupsCommand")>=0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsPageCommand",{get:function(){return"PageCommand"===this.Name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Period",{get:function(){return this.period},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Rows",{get:function(){return this.rows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SelectedRows",{get:function(){return this.selectedRows},set:function(n){this.selectedRows=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FocusedRow",{get:function(){return this.Settings.GridSettings.FocusedRowId},set:function(n){this.FocusedRow!==n&&(this.Settings.GridSettings.FocusedRowId=n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FocusedColumnIdx",{get:function(){return this.Settings.GridSettings.FocusedColumnIdx},set:function(n){this.FocusedColumnIdx!==n&&(this.Settings.GridSettings.FocusedColumnIdx=n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Class",{get:function(){return this.fe.Class},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Unit",{get:function(){return this.fe.Unit},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayMode",{get:function(){return"Form"!==this.Window.Mode&&"Folder"!==this.Window.Mode||this.hasClass("MainGroup")?this.displayMode:"Collapsed"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Groups",{get:function(){return this.groups},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"OrderBy",{get:function(){return this.orderBy},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Start",{get:function(){return this.start},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Backward",{get:function(){return this.backward},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StartArchived",{get:function(){return this.startArchived},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EndArchived",{get:function(){return this.endArchived},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SummaryRow",{get:function(){return this.summaryRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FilterRow",{get:function(){return this.filterRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VerifierState",{get:function(){return this.verifierState},set:function(n){this.verifierState=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisableSelection",{get:function(){return this.hasClass("DisableSelection")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsTree",{get:function(){return this.hasClass("Tree")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsLookupTypeEditor",{get:function(){return"Lookup"===this.EditorType||"Dic"===this.EditorType||"DicEdit"===this.EditorType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ReactComponent",{get:function(){return this.reactComponent},set:function(n){this.reactComponent=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Frozen",{get:function(){return this.hasClass("Frozen")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsMobile",{get:function(){return this.Window&&this.Window.IsMobile},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsMobileApp",{get:function(){return this.Window&&this.Window.IsMobileApp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResourceData",{get:function(){return this.resourceData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AllowSchedulerDragging",{get:function(){return this.fe.AllowSchedulerDragging||!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AllowSchedulerEditing",{get:function(){return this.fe.AllowSchedulerEditing||!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GridColumnIdx",{get:function(){return this.Parent&&this.Parent.Columns?this.Parent.Columns.indexOf(this):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.Rows&&this.Rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HTML",{get:function(){var n=document.getElementById(this.Name);return n?("INPUT"===n.tagName&&(n=n.parentElement),n):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AppearancePalette",{get:function(){return this.appearancePalette},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DesignMode",{get:function(){return this.Editable},enumerable:!1,configurable:!0}),t.prototype.clearFocused=function(){this.window.setFocusedElement(null)},t.prototype.setFocused=function(){this.window.setFocusedElement(this)},t.prototype.updateSelectedRow=function(n){var t=this.SelectedRows.indexOf(n);return-1===t?this.selectedRows.push(n):this.selectedRows.splice(t,1),this.selectedRows},t.prototype.changeSelectionOfRow=function(n,t){var i=u.a.find(this.rows,function(t){return t.ID===n});i&&i.setSelected(t)},t.prototype.hasClass=function(n){return!!this.fe.Class&&(" "+this.fe.Class+" ").indexOf(" "+n+" ")>=0},t.prototype.findElement=function(n){if(n(this))return this;for(var i=null,t=0,r=this.Elements;t<r.length;t++)if(null!==(i=r[t].findElement(n)))break;return i},t.prototype.findVisibleElement=function(n){if(!this.IsVisible)return null;if(n(this))return this;for(var i=null,t=0,r=this.Elements;t<r.length;t++)if(null!==(i=r[t].findVisibleElement(n)))break;return i},t.prototype.forEachElement=function(n){n(this);for(var t=0,i=this.Elements;t<i.length;t++)i[t].forEachElement(n)},t.prototype.getRowByID=function(n){return u.a.find(this.Rows,function(t){return t.ID===n})},t.prototype.preparePostData=function(n,t,i){void 0===i&&(i=null);var r={window:this.Window,controlRq:{Name:this.Name}};return n&&(r.controlRq.Action=n),void 0!==t&&(r.controlRq.EditValue=t),i?r.controlRq.ID=i:this.ID&&(r.controlRq.ID=this.ID),r},t.prototype.post=function(n,t,i){void 0===i&&(i=null);var u=this.preparePostData(n,t,i);r.WindowManager.Instance.post(u)},t.prototype.postWithTag=function(n,t,i){var u=this.preparePostData(n,t);i&&(u.tag=i);r.WindowManager.Instance.post(u)},t.prototype.pPost=function(n,t,i){void 0===i&&(i=null);var u=this.preparePostData(n,t,i);return r.WindowManager.Instance.pPost(u)},t.prototype.pPostWithTag=function(n,t,i){var u=this;return new r.SPromise(function(f,e){var o=u.preparePostData(n,t);i&&(o.tag=i);r.WindowManager.Instance.pPost(o).then(function(n){return f(n)},function(n){return e(n)})})},t.prototype.postClick=function(n){void 0===n&&(n=null);this.post("click",n)},t.prototype.postLoadMoreRowsNext=function(){if(this.EndArchived)return!1;for(var n=this.Rows.length;--n>=0;)if(parseInt(this.Rows[n].ID)>=0)return this.post("next",this.Rows[n].ID),!0;return!1},t.prototype.postLoadMoreRowsPrev=function(){if(this.StartArchived)return!1;for(var n=0;n<this.Rows.length;++n)if(parseInt(this.Rows[n].ID)>=0)return this.post("prev",this.Rows[n].ID),!0;return!1},t.prototype.postSort=function(n){this.post("sort",n)},t.prototype.postSelectAll=function(){this.post("selectall",void 0)},t.prototype.postUnselectAll=function(){this.post("unselectall",void 0)},t.prototype.postFilter=function(n,t){this.parent.FocusedColumnIdx=-1;this.post("",n,t)},t.prototype._initEvent=function(n){n.Element=this;this.Window.isElementEv=!0},t.prototype._handleProperty=function(n){var i,t,f,e,u;(this.id=void 0===n.ID?0:n.ID,"Dashboard"===n.Name&&void 0!==n.Command)&&(i=n.Command.split(":")).indexOf("FocusElement")>=0&&(this.focusElement=i[1],this._mark().PropertiesChanged=!0);"_Gantt"===n.Name&&void 0!==n.Command&&(i=n.Command.split(":")).indexOf("FocusElement")>=0&&(this.focusElement=i[1],this._mark().PropertiesChanged=!0);(void 0!==n.EditValue&&(this.editValue=n.EditValue,this._mark().PropertiesChanged=!0,"Page"===this.ElementType&&"1"===n.EditValue&&(this.Window.SelectedPage=this,this.Window._mark().PageSelected=!0)),void 0!==n.DisplayHtml?(this.displayHtml=n.DisplayHtml,this._mark().PropertiesChanged=!0):void 0!==n.EditValue&&(this.displayHtml=n.EditValue,this._mark().PropertiesChanged=!0),void 0!==n.CaptionHtml&&(this.captionHtml=n.CaptionHtml,this._mark().PropertiesChanged=!0),void 0!==n.DescriptionHtml&&(this.descriptionHtml=n.DescriptionHtml,this._mark().PropertiesChanged=!0),void 0!==n.Editable&&(this.editable=n.Editable,this._mark().PropertiesChanged=!0,this._mark().EditableChanged=!0),void 0!==n.SendAccept&&(this.sendAccept=n.SendAccept,this._mark().PropertiesChanged=!0),void 0!==n.Location&&(this.location=new r.Location(n.Location,this.hasClass("DashboardItem")),this._mark().LocationChanged=!0,this.Window._mark().LocationChanged=!0,this.Window.UpdateShortcut(this),this.Parent&&(this.Parent._mark().ParentLocationChanged=!0)),void 0!==n.EditorType&&(this.editorType=n.EditorType,this._mark().PropertiesChanged=!0),void 0!==n.MaxLength&&(this.maxLength=n.MaxLength,this._mark().PropertiesChanged=!0),void 0!==n.SelectionText&&(this.editorSelection={SelectionText:n.SelectionText,SelectionStart:n.SelectionStart,SelectionLength:n.SelectionLength},this._mark().SelectionChange=!0),void 0!==n.SelectionText||void 0===n.CaptionHtml&&void 0===n.EditValue||(this.editorSelection={SelectionText:"",SelectionStart:0,SelectionLength:0}),void 0!==n.Command)&&(n.Command.indexOf("nosuggestion")>=0&&(this.Command=n.Command),t=n.Command.split("|"),(t.indexOf("SwipeRow")>=0&&(this._mark().SwipeRow=!0),t.indexOf("Expand")>=0&&(this._mark().Expand=!0),t.indexOf("PutImage")>=0)&&(f=t[1],e=t[2],this._mark().PutImageChange={fileName:f,base64:e}));this.Parent&&"Grid"===this.Parent.ElementType&&(u="Field"===this.ElementType&&"CheckBox"===this.EditorType,this.Parent._mark().ColumnsChanged={rowId:n.ID?n.ID.toString():"",name:n.Name,editValue:u?null:n.EditValue,checked:u?n.EditValue&&"true"===n.EditValue.toLowerCase():null});void 0!==n.Appearance&&(this.appearancePalette=new r.AppearancePalette([n.Appearance]),this._mark().AppearanceChanged=!0)},t.prototype._handleList=function(n){void 0!==n.Focused&&(this._mark().Focused=n.Focused,this._handleListDataFocused(n));void 0!==n.Data&&(this._checkCache(n),this._handleSpecialRows(n),void 0===n.Start?this._handleListDataRandom(n):this._handleListDataSequential(n));0===n.SelectedCount&&this.SelectedRows.length>0&&this._handleUnselectAll(n);void 0!==n.Period&&(this.period=n.Period,this._mark().PeriodChanged=!0);void 0!==n.View&&(this.view=n.View,this._mark().PropertiesChanged=!0);void 0!==n.Groups&&(this.groups=this._handleGroups(n),this._mark().PropertiesChanged=!0);void 0!==n.OrderBy&&(this.orderBy=n.OrderBy,this._mark().PropertiesChanged=!0);void 0!==n.AppearanceData&&(this.appearancePalette=new r.AppearancePalette(u.a.map(n.AppearanceData,function(n){return{Target:n[0],BackColor:n[1],ForeColor:n[2],Text:n[3],Type:n[4]}})),this._mark().ListChanged=!0);void 0!==n.Resources&&(this.resourceData=u.a.map(n.Resources,function(n){return{key:parseInt(n[0]),label:n[1]}}),this._mark().ResourcesChanged=!0)},t.prototype._checkCache=function(n){var t,i,u,f;for(this.rowsCache||(this.rowsCache={}),t=n.Data,i=t.length;--i>=0;)u=new r.RowData(t[i][0]),1===t[i].length?(f=this.rowsCache[u.id],void 0!==f&&(u.changeSelection(f),t[i]=f)):this.rowsCache[u.id]=t[i]},t.prototype._handleSpecialRows=function(n){for(var t,u=!1,i=n.Data.length;--i>=0;)t=n.Data[i],t[0].indexOf("$sumgroup")<0&&0===t[0].indexOf("$sum")?(this._mark().ListChanged=!0,n.Data.splice(i,1),null===this.summaryRow&&(this.summaryRow=new r.RowElement(this)),this.summaryRow._assign(!1,!1,t)):"-1"===t[0]&&(this._mark().ListChanged=!0,n.Data.splice(i,1),null===this.filterRow&&(this.filterRow=new r.RowElement(this)),this.filterRow._assign(!1,!1,t),u=!0);!u&&n.Start<=0&&(this.filterRow=null)},t.prototype._handleListDataRandom=function(n){var i,o,f,e;for(this._handleAppearancePalette(n),this.start=n.Start,i=0,o=n.Data;i<o.length;i++){var t=o[i],s=new r.RowData(t[0]),u=this.getRowByID(s.id);if(u){if(f=s.selected!==u.IsSelected,t.length>1)for(e=t.length;--e>0&&!f;)f=t[e]!==u.Data[e];f&&(this._mark().ListChanged=!0,this._setRowData(n,s,u,t))}}},t.prototype._handleListDataSequential=function(n){var i=[],t,u;for(this._handleAppearancePalette(n),this._mark().ListChanged=!0,this.start=n.Start,this.backward=!!n.Backward,0!==n.Start&&-1!==n.Start||(this.rows=[],this.startArchived=this.endArchived=!1,0===n.Start&&(n.Backward?this.endArchived=!0:this.startArchived=!0)),t=0,u=n.Data;t<u.length;t++){var f=u[t],e=new r.RowData(f[0]),o=new r.RowElement(this,e.id);this._setRowData(n,e,o,f);i.push(o)}n.EndArchived&&(n.Backward?this.startArchived=!0:this.endArchived=!0);this.rows=n.Backward?i.concat(this.rows):this.rows.concat(i);0===this.rows.length&&(this.FocusedRow="-1")},t.prototype._handleListDataFocused=function(n){var i=this.getRowByID(this.FocusedRow),t;i&&i.setFocused(!1);this.FocusedRow=n.Focused.toString();t=this.getRowByID(this.FocusedRow);t&&t.setFocused(!0)},t.prototype._handleGroups=function(n){var t=this;return n.Groups.map(function(n,i){return new r.FeatureElement(t.window,t,n,i)})},t.prototype._handleUnselectAll=function(){var t=this,n;if(!this.rowsCache)return!1;n=!1;u.a.each(this.rowsCache,function(i){var f=new r.RowData(i[0]),u;f.selected&&(f.changeSelection(i),u=t.getRowByID(f.id),u&&u.IsSelected&&(u.setSelected(!1),t.updateSelectedRow(parseInt(u.ID))),n=!0)});n&&(this._mark().ListChanged=!0)},t.prototype._handleAppearancePalette=function(n){var t=this;this.appearancePalette&&u.a.each(n.Data,function(n){var i=n[0];t.appearancePalette.removeAppearance(i)});void 0!==n.Appearance&&(this.appearancePalette=new r.AppearancePalette(n.Appearance))},t.prototype._setRowData=function(n,t,i,r){var u=parseInt(t.id),f=n.Focused?n.Focused===u:i.IsFocused;i._assign(t.selected,f,r,this.appearancePalette);t.selected&&this.updateSelectedRow(u)},t}(r.BaseElement)},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(){this.events=new r.DictionaryEx}return Object.defineProperty(n.prototype,"length",{get:function(){return this.events.length},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"keys",{get:function(){return this.events.keys},enumerable:!1,configurable:!0}),n.prototype.byKey=function(n){return this.events.get(n)},n.prototype.first=function(){return this.events.first()},n.prototype.add=function(t){var i=n.getUniqueKey(t,!0);i&&this.events.add(i,t)},n.prototype.delete=function(t){var i=n.getUniqueKey(t);i&&(this.events.isFirstKey(i)?this.clear():this.events.remove(i))},n.prototype.clear=function(){this.events.clear()},n.getUniqueKey=function(t,i){void 0===i&&(i=!1);var u=null;return i&&!t.hasOwnProperty(n.KeyName)?(u=Math.floor((new Date).valueOf()*Math.random()),r.StorageHelper.GetDebug()&&(u=t.constructor.name+"_"+u),Object.defineProperty(t,n.KeyName,{value:u,writable:!1})):u=t[n.KeyName],u},n.KeyName="_UniqueKeyId",n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(n,t,i,r){this.id=parseInt(i[0]);this.idx=r;this.name=i[3];this.selected="s"===i[1];"Root"===i[2]?this.type="Root":"GroupColl"===i[2]?this.type="GroupColl":"GroupExp"===i[2]?this.type="GroupExp":"ItemColl"===i[2]?this.type="ItemColl":"ItemExp"===i[2]?this.type="ItemExp":"Item"===i[2]?this.type="Item":"Simple"===i[2]&&(this.type="Simple");this.window=n;this.parent=t;this.collapsed="GroupColl"===this.Type||"ItemColl"===this.Type;this.expanded="Root"===this.Type||"GroupExp"===this.Type||"ItemExp"===this.Type}return Object.defineProperty(n.prototype,"ID",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Name",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Type",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Index",{get:function(){return this.idx},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Window",{get:function(){return this.window},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Selected",{get:function(){return this.selected},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsExpandable",{get:function(){return this.expanded},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsCollapsed",{get:function(){return this.collapsed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsRoot",{get:function(){return"Root"===this.type},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsGroup",{get:function(){return"GroupColl"===this.type||"GroupExp"===this.type},enumerable:!1,configurable:!0}),n.prototype.post=function(n,t){var i={window:this.Window,controlRq:{Name:this.parent.Name}};n&&(i.controlRq.Action=n);void 0!==t&&(i.controlRq.EditValue=this.ID.toString());r.WindowManager.Instance.post(i)},n.prototype.postGroup=function(){this.post("group",null)},n.prototype.postGroupex=function(){this.post("groupex",null)},n}()},function(n,t,i){"use strict";function f(){r={}}function e(n){for(var i,f,s,t,h,c=[],e=[],o=0,l=n.Forms;o<l.length;o++)if(i=l[o],i.Elements)for(f=0,s=i.Elements;f<s.length;f++)t=s[f],t.UID&&(t.Element?r[t.UID]=t.Element:(h=r[t.UID],h?t.Element=h:(e.push(t),c.push(u.WindowManager.Instance.Server.getForm(i.WindowHandle,t.UID)))));return u.SPromise.all(c).then(function(t){for(var f,i=e.length;--i>=0;)f=e[i],f.Element=t[i],r[f.UID]=f.Element;return new u.SPromise(function(t){t(n)})})}i.d(t,"b",function(){return f});i.d(t,"a",function(){return e});var u=i(0),r={}},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(n){this.id="-1";this.selected=!1;this._parse(n)}return n.prototype._parse=function(n){if(0!==n.indexOf("$")&&0!==n.indexOf("=")){for(var t=0;t<n.length&&(n[t]>="0"&&n[t]<="9"||"-"===n[t]);)t++;for(this.id=n.substr(0,t);t<n.length;)switch(n[t++]){case"s":this.selected=!0}}},n.prototype._toIdString=function(){var n=this.id;return this.selected&&(n+="s"),n},n.prototype.changeSelection=function(n){var t=n[0].split(":");t[0]=this._toIdString();n[0]=t.join(":")},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var r,f=i(2),u=i(0),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t,i){var r=n.call(this)||this;return r.element=t,r.id=i,r}return e(t,n),Object.defineProperty(t.prototype,"Element",{get:function(){return this.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Data",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ID",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RowIdx",{get:function(){var i=this,n=0,t=f.a.find(this.Element.Rows,function(n){return n.ID===i.id});return t&&(n=this.Element.Rows.indexOf(t)),n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formattedId",{get:function(){return this.IsGroupingSumRow?t.SumGrouping+this.Element.Rows.indexOf(this):this.IsGroupingRow?t.RowGrouping+this.Element.Rows.indexOf(this):this.IsLocationRow?t.RowLocator:this.IsNonOptimalRow?t.RowNonOpitmal:this.ID},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsNewRow",{get:function(){return!!(this.data&&this.data.length>0)&&"$new"===this.data[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsLocationRow",{get:function(){return!!(this.data&&this.data.length>0)&&"$loc"===this.data[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsNonOptimalRow",{get:function(){return!!(this.data&&this.data.length>0)&&"$nonoptimal"===this.data[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsFilterRow",{get:function(){return!!(this.data&&this.data.length>0)&&"-1"===this.data[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsSummaryRow",{get:function(){return!!(this.data&&this.data.length>0)&&0===this.data[0].lastIndexOf("$sum")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsGroupingRow",{get:function(){return!!(this.data&&this.data.length>0)&&0===this.data[0].lastIndexOf("=",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsGroupingSumRow",{get:function(){return!!(this.data&&this.data.length>0)&&0===this.data[0].indexOf("$sumgroup=")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsRegularRow",{get:function(){return!(this.data&&this.data.length<=0)&&!this.data[0].match(/^[\x24]+|[-=]+.*$/)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsSelected",{get:function(){return this.Settings.RowSettings.Selected},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsFocused",{get:function(){return this.Element.FocusedRow===this.ID},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsOdd",{get:function(){return this.Element.Rows.indexOf(this)%2!=1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Settings",{get:function(){return this.settings.ColumnSettings||(this.settings.ColumnSettings={}),this.settings.RowSettings||(this.settings.RowSettings={}),this.settings},enumerable:!1,configurable:!0}),t.prototype._initEvent=function(n){n.Element=this},t.prototype.setFocused=function(n){n&&(f.a.each(this.Element.Rows,function(n){n.IsFocused&&(n.Settings.RowSettings.Focused=!1)}),this.Element.FocusedRow=this.ID);this.Settings.RowSettings.Focused=n},t.prototype.setSelected=function(n,t){void 0===t&&(t=!0);this.Settings.RowSettings.Selected!==n&&(this.Settings.RowSettings.Selected=n,this._mark().SelectRowChanged={rowId:this.ID,selected:n},t&&this._invoke())},t.prototype.postClick=function(n){void 0===n&&(n=!0);var t=this.ID;this.IsNewRow?t="$new":this.IsLocationRow?t="$loc":this.IsNonOptimalRow?t="$nonoptimal":this.IsGroupingRow?t=this.Data[0]:this.IsSummaryRow&&(t="$sum");n&&u.WindowManager.Instance.IsServerRequesting||this.Element.postClick(t)},t.prototype.postSelectedRows=function(n){this.Element.post("selected",n)},t.prototype.postFocused=function(){u.WindowManager.Instance.IsServerRequesting||this.Element.post("focused",this.ID)},t.prototype.postOpen=function(){this.Element.post("open",this.IsNewRow?"$new":this.ID)},t.prototype._assign=function(n,t,i,r){this.palette=r;this.data=i;this.setSelected(n,!1);this.setFocused(t);t&&(this.Element.FocusedRow=this.ID)},t.prototype.getAppearance=function(n){return n||(n=this.ID),this.palette?this.palette.getAppearance(n):null},t.prototype.clone=function(){var n=new t(this.element);return n._assign(!1,!1,this.data),n},t.RowLoadMore="more",t.RowLocator="loc",t.RowSpecial="spe",t.RowNonOpitmal="non",t.RowGrouping="gr",t.SumGrouping="gs",t}(u.BaseElement)},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(){this.history=[];this.historyIndex=0}return n.prototype.getHistory=function(){return this.history},n.prototype.clearHistory=function(){this.history=[]},n.prototype.start=function(){var n=sessionStorage.getItem("business_cx");return this.request("/FolderJSON/GetStart",{Path:this.Path,ContextHandle:n})},n.prototype.execute=function(n){return this.requests&&this.requests.push(n),this.request("/WindowJSON/Execute",n)},Object.defineProperty(n.prototype,"Path",{get:function(){var n=r.StorageHelper.GetAutoPath(!0);return n&&""!==n||"#"===(n=window.location.hash).substr(0,1)&&(n=n.substr(1)),"/"===(n=n.trim())&&(n=""),n},enumerable:!1,configurable:!0}),n.prototype.getForm=function(n,t){return this.request("/WindowJSON/GetForm",{ContextHandle:n,FormUID:t})},n.prototype.pingSession=function(n){return this.request("/WindowJSON/PingSession",n)},n.prototype.scripter=function(n){return this.request("/FolderJSON/Scripter",n)},n.prototype.store=function(n,t,i){return this.history.length>=30&&this.history.shift(),this.history.push({index:++this.historyIndex,type:n,url:t||"rd",data:i}),i},n.prototype.request=function(n,t){var i=this;return this.store("rq",n,t),Object(r.Request)({url:n,data:t}).then(function(t){return i.store("rd",n,t)},function(t){return i.store("err",n,t)})},n}()},function(n,t,i){"use strict";function f(n,t){return new r(function(i){setTimeout(function(){i(n())},t)})}i.d(t,"b",function(){return u});i.d(t,"a",function(){return r});i.d(t,"c",function(){return f});var u=function(){function n(n){this.value=n}return n.prototype.then=function(n){return n?r.convertResult(n(this.value)):null},n}(),r=(function(){function n(){}n.prototype.then=function(){return new n}}(),function(){function n(n){var t=this;this.resolvers=[];this.rejecters=[];n(function(n,i){if(void 0!==t.succeeded)throw new Error("Second resolve calling");var r=n;r&&r.then?r.then(function(n){return t.valueResolve(n,i)},function(n){return t.errorResolve(n)}):t.valueResolve(n,i)},function(n){if(void 0!==t.succeeded)throw new Error("Second reject calling");t.errorResolve(n)})}return n.prototype.valueResolve=function(n,t){this.succeeded=!0;this.resolveResult=n;this.resolveHeaders=t;for(var i=0,r=this.resolvers;i<r.length;i++)r[i](this.resolveResult,this.resolveHeaders);this.resolvers=null;this.rejecters=null},n.prototype.errorResolve=function(n){this.succeeded=!1;this.rejectError=n;for(var t=0,i=this.rejecters;t<i.length;t++)i[t](this.rejectError);this.resolvers=null;this.rejecters=null},n.prototype.then=function(t,i){var u=this,r;return void 0===this.succeeded?new n(function(n,r){t&&u.resolvers.push(function(i,r){var u=t(i,r);n(u,r)});i&&u.rejecters.push(function(n){i(n);r(n)})}):(r=null,t&&this.succeeded?r=t(this.resolveResult,this.resolveHeaders):i&&!this.succeeded&&(r=i(this.rejectError)),n.convertResult(r))},n.all=function(t){return new n(function(n,i){for(var r=!1,u=[],f=0,o=function(e){var s=t[e],o=s;o&&o.then?o.then(function(i){u[e]=i;++f!==t.length||r||(r=!0,n(u))},function(n){return i(n)}):(u[e]=s,++f)},e=0;e<t.length;++e)o(e);f!==t.length||r||(r=!0,n(u))})},n.chain=function(t){return new n(function(i,r){var u=[],f=function(t){var e=t[0];return e&&e.then&&(e.then(function(n){t.shift();u.push(n);i(u)},function(n){return r(n)}),t.length>0)?f(t):new n(function(n){n(!0)})};return f(t)})},n.convertResult=function(n){if(null==n)return null;var t=n;return t&&t.then?t:new u(n)},n}())},function(n,t,i){"use strict";i.d(t,"a",function(){return f});var r=i(0),u=0,f=function(){function n(n){this.window=n;this.live=++u;this.window=n}return Object.defineProperty(n.prototype,"Window",{get:function(){return this.window},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"CaptionHtml",{get:function(){return this.rd.DescriptionHtml},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Name",{get:function(){return this.rd.Name},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"FieldName",{get:function(){return this.rd.FieldName},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"VerifierType",{get:function(){return this.rd.Type||"Information"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Remove",{get:function(){return this.rd.Remove||!1},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"KeepFocus",{get:function(){return this.rd.KeepFocus},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Live",{get:function(){return this.live},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"DataElement",{get:function(){return this.rd.FieldName?this.Window.findElementByName(this.rd.FieldName):null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsMobile",{get:function(){return this.Window.DeviceType===r.DeviceType.MobileBrowser},enumerable:!1,configurable:!0}),n._typeValue=function(n){switch(n){case"Warning":return 1;case"Error":return 2;case"Information":return 3}return 0},n.compareTypes=function(t,i){return n._typeValue(t)-n._typeValue(i)},n.compare=function(t,i){var r=n._typeValue(t.VerifierType)-(t.KeepFocus?10:0);return 0!=(r-=n._typeValue(i.VerifierType)-(i.KeepFocus?10:0))?r:t.Live-i.Live},n.prototype._assign=function(n){this.rd=n},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var f,u=i(2),r=i(0),e=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(i){var u=n.call(this)||this,f;return(u.captionHtml=null,u.isFav=!1,u.hasFav=!1,u.isVisible=!0,u.isClosed=!1,u.childrenWindows=[],u.verifiers=[],u.byName={},u.sessionState=null,u.bars=[],u.pages=null,u.progressInformation=null,u.progressPercent=100,u.isElementEv=!1,u.selectedPage=null,u.localID=++t.recentLocalID,u.closeHandlers=[],u.handle=i.WindowHandle,u.liveCounter=i.LiveCounter-1,u.address="string"!=typeof i.Address?null:i.Address,u.addressHtml="string"!=typeof i.AddressHtml?null:i.AddressHtml,u.targetInfo="string"!=typeof i.TargetInfo?null:i.TargetInfo,void 0!==i.Parents&&i.Parents.length>0)?(f=i.Parents[i.Parents.length-1].WindowHandle,u.parent=r.WindowManager.Instance.findByHandle(f),u.parent.childrenWindows.push(u)):(u.parent=null,r.WindowManager.Instance.Roots.push(u)),u._markParent(),u}return e(t,n),Object.defineProperty(t.prototype,"IsFrame",{get:function(){return"Frame"===this.Mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Handle",{get:function(){return this.handle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LocalID",{get:function(){return this.localID},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LiveCounter",{get:function(){return this.liveCounter},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsVisible",{get:function(){return this.isVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsClosed",{get:function(){return this.isClosed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ChildrenWindows",{get:function(){return this.childrenWindows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Verifiers",{get:function(){return this.verifiers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Address",{get:function(){return this.address},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AddressHtml",{get:function(){return this.addressHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TargetInfo",{get:function(){return this.targetInfo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CaptionHtml",{get:function(){return this.captionHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Mode",{get:function(){return this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SessionState",{get:function(){return this.sessionState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasFav",{get:function(){return this.hasFav},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsFav",{get:function(){return this.isFav},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Parent",{get:function(){return this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Root",{get:function(){return this.bars&&this.bars.length>0?this.bars[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Bars",{get:function(){return this.bars},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Pages",{get:function(){return this.pages},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProgressInformation",{get:function(){return this.progressInformation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProgressPercent",{get:function(){return this.progressPercent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SelectedPage",{get:function(){return this.selectedPage},set:function(n){this.selectedPage=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DeviceType",{get:function(){return t.DeviceType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsMobile",{get:function(){return this.DeviceType===r.DeviceType.MobileBrowser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsMobileApp",{get:function(){return"MobileApp"===r.CookieHelper.GetDeviceType()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RegisteredShortcuts",{get:function(){return this.registeredShortcuts||(this.registeredShortcuts=new r.DictionaryEx),this.registeredShortcuts},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVerifiersError",{get:function(){return!!this.Verifiers&&u.a.any(this.Verifiers,function(n){return"Error"===n.VerifierType})},enumerable:!1,configurable:!0}),Object.defineProperty(t,"DeviceType",{get:function(){t.deviceType||(t.deviceType=r.CookieHelper.GetDeviceType());var n=t.deviceType;return"MobileBrowser"===n||"MobileApp"===n?r.DeviceType.MobileBrowser:r.DeviceType.FullBrowser},enumerable:!1,configurable:!0}),t.prototype.getFocusedElement=function(){return this.Settings.focusedElement},t.prototype.setFocusedElement=function(n){this.Settings.focusedElement=n},t.prototype.findWindow=function(n){if(n(this))return this;for(var i=null,t=0,r=this.ChildrenWindows;t<r.length;t++)if(null!==(i=r[t].findWindow(n)))break;return i},t.prototype.forEachWindow=function(n){n(this);for(var t=0,i=this.ChildrenWindows;t<i.length;t++)i[t].forEachWindow(n)},t.prototype.findElement=function(n){for(var i=null,t=0,r=this.Bars;t<r.length;t++)if(null!==(i=r[t].findElement(n)))break;return i},t.prototype.forEachElement=function(n){for(var t=0,i=this.Bars;t<i.length;t++)i[t].forEachElement(n)},t.prototype.findElementByName=function(n){var t=this.byName[n];return void 0===t&&(t=null),t},t.prototype.findElementByUniqueName=function(n){var i=n.indexOf("_",1),t;return console.assert(i>0&&"_"===n.substr(0,1),"Brak identyfikatora okna dla elementu "+n),t=this.byName[n.substring(i+1)],void 0===t&&(t=null),t},t.prototype.post=function(n,t,i,u){var f={window:this};void 0===n&&void 0===t&&void 0===u||(f.controlRq={Name:u},void 0!==n&&(f.controlRq.Action=n),void 0!==t&&(f.controlRq.EditValue=t));r.WindowManager.Instance.post(f)},t.prototype.postClose=function(){this.post("close")},t.prototype.postEsc=function(){this.post("esc",null,"ESC")},t.prototype.decraseLiveCounter=function(){--this.liveCounter},t.prototype.ValidateFocusedEditor=function(){var n=this;return new r.SPromise(function(t){var i=n.getFocusedElement(),r=i?document.getElementById(i.Name):null;i&&i.setFocused();r&&r.value!==i.EditValue&&r.value!==i.DisplayHtml?i.pPost("",r.value).then(function(){var r=i.Window.Handle===n.Handle;!i.Window.hasVerifiersError&&r&&t(!0)}):t(!0)})},t.prototype._handleResponse=function(n){var t=this,u,i,f;(console.assert(this.liveCounter+1===n.LiveCounter),this.liveCounter=n.LiveCounter,this._handleAction(n),this._handleAddress(n),this._relogin(n)||(n.RedirectUrl&&(r.WindowManager.Instance._mark().Redirect={Url:n.RedirectUrl,Target:n.RedirectTarget}),this.IsClosed))||(("string"==typeof n.CaptionHtml&&(this.captionHtml=Object(r.decodeString)(n.CaptionHtml),this._mark().PropertiesChanged=!0),"boolean"==typeof n.IsFav&&(this.hasFav=!0,this.isFav=n.IsFav,this._mark().PropertiesChanged=!0),"string"==typeof n.SessionState&&(this.sessionState=n.SessionState,this.addSessionStateVerifier()),"boolean"==typeof n.UpdateAll&&(this.sessionState=null,this.clearVerifiers()),n.Progress?(this.progressInformation=n.Progress.Information||"",this.progressPercent=n.Progress.ProgressInPercent||0,this._mark().ProgressChanged=!0,r.WindowManager.Instance._mark().ProgressChanged=!0):null!==this.progressInformation&&(this.progressInformation=null,this.progressPercent=100,this._mark().ProgressChanged=!0,r.WindowManager.Instance._mark().ProgressChanged=!0),n.ClientOperationRequest)&&(r.WindowManager.Instance._mark().ClientOperationRequest=n.ClientOperationRequest,u=document.defaultView.location.port,i=document.defaultView.location.protocol+"//"+document.defaultView.location.hostname,u&&(i+=":"+u),i+="/",setTimeout(function(){document.defaultView.location.href="soneta://"+n.ClientOperationRequest+"#"+i},1),r.WindowManager.Instance.post({window:this})),"number"==typeof n.Rerequest&&(f=this.liveCounter,setTimeout(function(){t.IsClosed||f!==t.liveCounter||r.WindowManager.Instance.post({window:t,rerequest:!0,condition:function(){return!t.IsClosed&&f===t.liveCounter}})},n.Rerequest)),this._handleElements(n),this._handleProperties(n),this._handleLists(n),this._handleVerifiers(n))},t.prototype._initEvent=function(n){n.Window=this},t.prototype._markParent=function(){r.WindowManager.Instance._mark().WindowsChanged=!0},t.prototype._handleAction=function(n){switch(console.assert(!this.isClosed),n.Action){case"Close":this._removeMe();this.isVisible=!1;this.isClosed=!0;r.WindowManager.Instance.ActiveWindow===this&&(r.WindowManager.Instance.ActiveWindow=null);r.WindowManager.Instance.Frame===this&&(r.WindowManager.Instance.Frame=null);break;case"Hide":this.isVisible&&(this.isVisible=!1,this._markParent(),r.WindowManager.Instance.ActiveWindow===this&&(r.WindowManager.Instance.ActiveWindow=null),r.WindowManager.Instance.Frame===this&&(r.WindowManager.Instance.Frame=null));break;default:this.isVisible||(this.isVisible=!0,this._markParent())}},t.prototype._handleAddress=function(n){n.Address&&Object(r.SetAddressHash)(n.Address)},t.prototype._removeMe=function(){var n=null!==this.Parent?this.Parent.ChildrenWindows:r.WindowManager.Instance.Roots,t=n.indexOf(this);t>=0&&(n.splice(t,1),this._markParent())},t.prototype._reindex=function(){var n=this;this.byName={};delete this.pages;this.forEachElement(function(t){"Page"===t.ElementType&&(!n.SelectedPage&&t.IsVisible&&(n.selectedPage=t),n.pages||(n.pages=[]),n.pages.push(t));"Grid"===t.ElementType&&(t.Columns=[null]);t.Parent&&t.Parent.Columns&&"Field"===t.ElementType&&t.Parent.Columns.push(t);n.byName[t.Name]=t})},t.prototype._handleElements=function(n){var u,f,t,o;if(n.Elements&&0!==n.Elements.length)for(n.UpdateAll&&(this.bars=[]),u=0,f=n.Elements;u<f.length;u++){if(t=f[u],this._mark().ElementsChanged=!0,t.Name){var i=this.findElementByName(t.Name),s=i&&i.Parent&&"Bar"!==i.FormElement.Type?i.Parent.Elements:this.bars,e=s.indexOf(i);(console.assert(e>=0),e>=0)&&(o=new r.DataElement(this,i.Parent,t.Element),s[e]=o,this.RegisterShortcut(o))}else this.bars=[new r.DataElement(this,null,t.Element)].concat(this.bars),t.Element.Mode&&(this.mode=t.Element.Mode,this.IsFrame&&(r.WindowManager.Instance.Frame=this));this._reindex()}},t.prototype._handleProperties=function(n){var u,f,i,t,e,o,s;if(n.Properties)for(u=0,f=n.Properties;u<f.length;u++)i=f[u],"openfiledialog"==i.Command&&(this._mark().FileOpenDialog=i.Name),t=this.findElementByName(i.Name),t&&((t.Tag=n.Tag?n.Tag:"",t.EditorType&&i.EditorType&&t.EditorType!==i.EditorType)?t.Parent&&t.Parent.Elements&&(e=new r.DataElement(this,t.Parent,t.FormElement),e._handleProperty(i),o=t.Parent.Elements,s=o.indexOf(t),s>=0&&(o[s]=e,this._mark().ElementsChanged=!0),this._reindex()):t._handleProperty(i),(i.IsPage||"Page"===t.ElementType)&&r.WindowManager.Instance.handlePagesChanged())},t.prototype._handleLists=function(n){var t,r,u,i;if(n.Lists)for(t=0,r=n.Lists;t<r.length;t++)u=r[t],i=this.findElementByName(u.Name),i&&(i.Tag=n.Tag?n.Tag:"",i._handleList(u))},t.prototype._handleVerifiers=function(n){var v,e,l,o,f;if(n.Verifiers){for(var s=!1,h=0,a=n.Verifiers;h<a.length;h++){var c=a[h],y=c.Name,i=u.a.find(this.verifiers,function(n){return n.Name===y});c.Remove?i&&(v=this.verifiers.indexOf(i),this.verifiers.splice(v,1),s=!0):(i||(i=new r.VerifierElement(this),this.verifiers.push(i)),i._assign(c),s=!0)}for(this.forEachElement(function(n){n.VerifierState=void 0}),e=0,l=this.verifiers;e<l.length;e++)o=l[e],f=o.DataElement,f&&r.VerifierElement.compareTypes(o.VerifierType,f.VerifierState)>0&&(f.VerifierState=o.VerifierType,t.RaiseVerifiersChanged(f,!1));s&&this.refreshVerifiers(!1)}},t.prototype._relogin=function(n){if(!n||!n.Relogin)return!1;var t=n.Relogin;return this.IsMobileApp&&Android.setBusinessCx(t.Handle),r.StorageHelper.SetBusinessContext(t.Handle),r.StorageHelper.SetDeviceWidth(document.defaultView.innerWidth),r.StorageHelper.SetDeviceHeight(document.defaultView.innerHeight),r.StorageHelper.SetDBName(t.DBName),t.SvgHash&&r.StorageHelper.SetSvgHash(t.SvgHash),t.Debug&&r.StorageHelper.SetDebug(t.Debug),r.GlobalSettings.Instance.SaveSettings(t.Settings?JSON.parse(t.Settings):{}),document.location.href="/db/"+t.DBName,!0},t.prototype.tryClose=function(){if(0!==this.closeHandlers.length){var n=this.closeHandlers.pop();n&&n()}else this.postEsc()},t.prototype.registerClose=function(n){this.closeHandlers.push(n)},t.prototype.unregisterClose=function(){this.closeHandlers.pop()},t.prototype.disableTouchEvents=function(n){n&&!this.Settings.DisableTouchEvents&&(this.Settings.DisableTouchEvents=n)},t.prototype.RegisterShortcut=function(n){if(n.Key&&r.KeyShortcut.isValidSpecialKey(n.Key)&&!this.RegisteredShortcuts.containsKey(n.Name)){var t=new r.KeyShortcut(n);(t.IsAcceptKey||t.IsShortcut)&&this.RegisteredShortcuts.add(n.Name,t)}},t.prototype.UpdateShortcut=function(n){if(n&&n.Key&&this.RegisteredShortcuts.containsKey(n.Name)){var t=this.RegisteredShortcuts.get(n.Name);t&&(t.IsVisible=n.IsVisible)}},t.prototype.RemoveVerifier=function(n,t){var r=this.removeVerifier(n),i;n&&n.FieldName&&(i=this.findElementByName(n.FieldName),i&&this.clearVerifierStateByDataElement(i,t));r&&this.refreshVerifiers(t)},t.prototype.RemoveVerifierByDataElement=function(n,t){var r,i;n&&(i=u.a.find(this.verifiers,function(t){return t.FieldName===n.Name&&"Error"===t.VerifierType}),i&&(r=this.removeVerifier(i),i.FieldName===n.Name&&this.clearVerifierStateByDataElement(n,t),r&&this.refreshVerifiers(t)))},t.prototype.refreshVerifiers=function(n){this.verifiers.sort(r.VerifierElement.compare);t.RaiseVerifiersChanged(this,n)},t.prototype.clearVerifiers=function(){this.verifiers=[];t.RaiseClearVerifiers(this)},t.prototype.addSessionStateVerifier=function(){if(!this.IsMobile){var n=u.a.find(this.verifiers,function(n){return"SessionStateVerifier"===n.Name});if(n)!n||this.SessionState&&"Unchanged"!==this.SessionState||this.RemoveVerifier(n,!1);else{if("Unchanged"===this.sessionState)return;n=new r.VerifierElement(this);this.verifiers.push(n);"Changed"===this.SessionState?n._assign({Name:"SessionStateVerifier",Type:"Information",DescriptionHtml:r.LanguageConstants.RESOURCES.Str_Changed}):"Added"===this.SessionState&&n._assign({Name:"SessionStateVerifier",Type:"Information",DescriptionHtml:r.LanguageConstants.RESOURCES.Str_Added});this.refreshVerifiers(!1)}}},t.prototype.removeVerifier=function(n){var t=!1,i=this.verifiers.indexOf(n);return i>=0&&(this.verifiers.splice(i,1),t=!0),t},t.prototype.clearVerifierStateByDataElement=function(n,i){var r=u.a.find(this.verifiers,function(t){return t.FieldName===n.Name});n.VerifierState=r?r.VerifierType:void 0;t.RaiseVerifiersChanged(n,i)},t.RaiseVerifiersChanged=function(n,t){n._mark().VerifiersChanged=!0;t&&n._invoke()},t.RaiseClearVerifiers=function(n){n._mark().UpdateAll=!0},t.recentLocalID=0,t}(r.BaseElement)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var f,u=i(2),r=i(0),e=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(){var i=n.call(this)||this;return i.roots=[],i.windowsHistory=[],i.navMenuExist=!1,i.rq=null,i.rqQ=[],i.isProgress=!1,i.progressWindow=null,i.reminderHelper=new r.ReminderHelper,setTimeout(t.ping,2e3),setInterval(t.ping,6e4),i}return e(t,n),Object.defineProperty(t,"Instance",{get:function(){return t.instance||(t.instance=new t),t.instance},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Roots",{get:function(){return this.roots},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Frame",{get:function(){return this.frame},set:function(n){this.frame=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavMenuExist",{get:function(){return this.navMenuExist},set:function(n){this.navMenuExist=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ActiveWindow",{get:function(){return this.activeWindow},set:function(n){this.activeWindow=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProgressWindow",{get:function(){return this.progressWindow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RemindersCount",{get:function(){return this.reminderHelper.RemindersCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CurrentWindow",{get:function(){return t.findVisibleWindow(t.Instance.Roots)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsServerRequesting",{get:function(){return null!==this.rq},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsProgress",{get:function(){return this.isProgress||null!==this.ProgressWindow},enumerable:!1,configurable:!0}),t.prototype.resetWindows=function(){this.roots=[];this.activeWindow=null;this.frame=null;this.progressWindow=null},t.prototype.findByHandle=function(n){return this.findWindow(function(t){return t.Handle===n})},t.prototype.findWindow=function(n){for(var i=null,t=0,r=this.roots;t<r.length;t++)if(null!==(i=r[t].findWindow(n)))break;return i},t.prototype.forEachWindow=function(n){for(var t=0,i=this.roots;t<i.length;t++)i[t].forEachWindow(n)},Object.defineProperty(t.prototype,"WindowsHistory",{get:function(){return this.windowsHistory},enumerable:!1,configurable:!0}),t.prototype.addWindowsToHistory=function(n){var i=n.filter(function(n){return"Popup"!==n.Mode}),r,t;if(this.windowsHistory.length>=i.length){for(r=!0,t=0;t<i.length;t++)if(this.windowsHistory[t]!==i[t]){r=!1;break}if(r)return}for(t=i.length-1;t>=0;t--)this.windowsHistory[0]!==i[t]&&this.windowsHistory.unshift(i[t]);this.clearWindowsHistory()},t.prototype.checkIsWindowOpen=function(n){return!n.IsClosed&&(!n.Parent||this.checkIsWindowOpen(n.Parent))},t.prototype.clearWindowsHistory=function(){var n=this,t=[];u.a.forEach(this.windowsHistory,function(i,r){n.checkIsWindowOpen(n.windowsHistory[r])&&i.IsVisible&&t[t.length-1]!==i&&n.windowsHistory.indexOf(i)===r&&t.push(n.windowsHistory[r])});this.windowsHistory=t.slice(0,20)},t.prototype.post=function(n){console.assert(!!n);this.IsServerRequesting?this.rqQ.push(n):this._send(n)},t.prototype.start=function(){t.Instance.Server.start().then(function(n){return t.Instance.receive(n)})},t.prototype.execute=function(n){t.Instance.Server.execute(n).then(function(n){return t.Instance.receive(n)})},t.prototype.receive=function(n){var t=this;return n.ExceptionType?(this.receiveError(n.Message,n.ExceptionType),null):(u.a.some(n.Forms,function(n){return u.a.some(n.Verifiers,function(n){return n.KeepFocus})})&&this.reciveVerifierWithKeepFocus(),Object(r.checkElements)(n).then(function(n){return t.resetProgress(),t._handleResponse(n),t._receiveFinish(),n},function(n){return t.receiveError("checkElements: "+n),null}))},t.prototype.reciveVerifierWithKeepFocus=function(){this.rq=null;this.rqQ=[]},t.prototype.receiveError=function(n,t){if(this.rq=null,this.rqQ=[],"string"==typeof n){var i=n;t&&t.indexOf("InvalidContextHandleException")>=0&&(i=r.LanguageConstants.RESOURCES.Str_SessionExpired);this.raiseGlobalDialog({type:r.DialogType.Error,message:i,loginRedirect:!0})}else this.resetProgress();return n},t.prototype.raiseGlobalDialog=function(n){n&&(this._mark().GlobalDialog=n,this._invoke())},t.prototype.resetProgress=function(){this.isProgress&&(this.isProgress=!1,this._mark().ProgressChanged=!0,this._invoke())},t.prototype.setProgress=function(){this.isProgress||(this.isProgress=!0,this._mark().ProgressChanged=!0,this._invoke())},t.prototype._initEvent=function(n){n.Manager=!0},t.prototype.handlePagesChanged=function(){this._mark().WindowsChanged=!0},t.prototype._handleResponse=function(n){var o=!0,h,i,e,c;if(n.Forms)for(var l=function(i){var f,e,s;n.Tag&&(i.Tag=n.Tag);f=t.findByHandle(i.WindowHandle);(f||(f=new r.WindowElement(i)),f._handleResponse(i),o&&f!==t.frame&&(f.IsVisible||0===t.roots.length&&!f.IsClosed))&&(o=!1,console.assert(!(f.ChildrenWindows&&f.ChildrenWindows.length>1),"Window with multiple chldren !!!"),e=f,s=u.a.find(f.ChildrenWindows,function(n){return!n.IsClosed&&n.IsVisible}),s&&(e=u.a.find(n.Forms,function(n){return n.WindowHandle===s.Handle&&("Close"===n.Action||"Hide"===n.Action)})?f:s),t.ActiveWindow&&t.ActiveWindow.Handle!==e.Handle&&(t._mark().ActiveWindowChanged=!0),t.ActiveWindow=e)},t=this,f=0,s=n.Forms;f<s.length;f++)l(s[f]);if(this.progressWindow=this.findWindow(function(n){return null!==n.ProgressInformation}),this._invoke(),this.forEachWindow(function(n){n._invoke();n.isElementEv&&(n.forEachElement(function(n){return n._invoke()}),n.isElementEv=!1)}),this.ProgressWindow)for(h=this.rqQ,this.rqQ=[],this.ProgressWindow.decraseLiveCounter(),this.ProgressWindow.post("progress"),i=0,e=h;i<e.length;i++)c=e[i],this.rqQ.push(c)},t.prototype._send=function(n){var i=this,t;n.window.IsClosed?this._receiveFinish():(t={WindowHandle:n.window.Handle,LiveCounter:n.window.LiveCounter},void 0!==n.controlRq&&(t.UpdateValues=[n.controlRq]),void 0!==n.tag&&(t.Tag=n.tag),void 0!==n.rerequest&&(t.Rerequest=n.rerequest),void 0!==n.deviceInfo&&(t.DeviceInfo=n.deviceInfo),!n.condition||n.condition(t)?(this.rq=t,setTimeout(function(){t===i.rq&&i.setProgress()},500),this.Server.execute(t).then(function(n){return i.receive(n)},function(n){return i.receiveError("Server.execute: "+n)})):this._receiveFinish())},t.prototype._receiveFinish=function(){this.rq=null;this.rqQ.length>0&&this._send(this.rqQ.shift())},t.ping=function(){if(t.Instance.Server){var n={WindowHandles:[]};t.Instance.forEachWindow(function(t){return n.WindowHandles.push(t.Handle)});n.ContextHandle=r.StorageHelper.GetBusinessContext();t.Instance.Server.pingSession(n).then(function(n){return t.Instance.receivePing(n)},function(n){t.Instance.receiveError("Ping: "+n)})}},t.prototype.receivePing=function(n){var i=this,t;n.AdminMessage&&setTimeout(function(){i.raiseGlobalDialog({type:r.DialogType.Info,message:n.AdminMessage,caption:"Komunikat administratora",loginRedirect:!1})},100);t={Count:n.RemindersCount||0,Reminders:n.Reminders||[]};this.reminderHelper.RaiseNotification(t)&&(this._mark().RemindersChanged=t);n.LogoutRequested&&(this._mark().LogoutRequested=!0);this._invoke()},t.findVisibleWindow=function(n,i,r){for(var u=null,f=n.length-1;f>=0;f--)if(n[f].IsVisible&&!n[f].IsClosed){if(r&&n[f].Parent)break;if(n[f]!==t.Instance.Frame){u=n[f];break}}return u&&0===u.ChildrenWindows.length?u:u?t.findVisibleWindow(u.ChildrenWindows,u):i},Object.defineProperty(t.prototype,"emptyPromise",{get:function(){return new r.SPromise(function(n){n(null)})},enumerable:!1,configurable:!0}),t.prototype.dataExistInRqQ=function(n){return!!this.lastRq&&this.lastRq.controlRq===n.controlRq||!!u.a.find(this.rqQ,function(t){return u.a.isEqual(t.controlRq,n.controlRq)})},t.prototype.pPost=function(n){return console.assert(!!n),this.IsServerRequesting?(console.assert(this.dataExistInRqQ(n),"Rq exist in RqQ - duplicate !!!"),this.dataExistInRqQ(n)||this.rqQ.push(n),this.emptyPromise):(this.lastRq=n,this._pSend(n))},t.prototype._pSend=function(n){var i=this,t;return n.window.IsClosed?this._pReceiveFinish():(t={WindowHandle:n.window.Handle,LiveCounter:n.window.LiveCounter},void 0!==n.controlRq&&(t.UpdateValues=[n.controlRq]),void 0!==n.tag&&(t.Tag=n.tag),void 0!==n.rerequest&&(t.Rerequest=n.rerequest),void 0!==n.deviceInfo&&(t.DeviceInfo=n.deviceInfo),n.condition&&!n.condition(t)?this._pReceiveFinish():(this.rq=t,setTimeout(function(){t===i.rq&&i.setProgress()},500),new r.SPromise(function(n,r){i.Server.execute(t).then(function(t){i._pReceive(t).then(function(t){return n(t)},function(n){return i.receiveError("Server.execute: "+n),r(n)})},function(n){return i.receiveError("Server.execute: "+n),r(n)})})))},t.prototype._pReceive=function(n){var t=this;return n.ExceptionType?(this.receiveError(n.Message),this.emptyPromise):(u.a.some(n.Forms,function(n){return u.a.some(n.Verifiers,function(n){return n.KeepFocus})})&&this.reciveVerifierWithKeepFocus(),Object(r.checkElements)(n).then(function(n){return t.resetProgress(),t._handleResponse(n),t._pReceiveFinish(),n},function(n){return t.receiveError("FormService.checkElements: "+n),null}))},t.prototype._pReceiveFinish=function(){return this.rq=null,0===this.rqQ.length?this.emptyPromise:this._pSend(this.rqQ.shift())},t.LockUiCounter=0,t}(r.BaseElement)},function(n,t,i){"use strict";i.d(t,"a",function(){return h});var o=i(1),f=i.n(o),s=i(4),u=i.n(s),e=i(2),r=i(0),h=function(){function n(){}return n.getTestType=function(){var n="testmobile";return document&&document.location&&document.location.pathname&&(n=document.location.pathname.replace("/","")),n.toLowerCase()},n.registerBrowser=function(t){"testbrowser"===n.getTestType()&&n.registeredTests.push(t)},n.registerMobile=function(t){"testmobile"===n.getTestType()&&n.registeredTests.push(t)},n.registerCommon=function(t){n.registerBrowser(t);n.registerMobile(t)},n.findTest=function(t){return e.a.find(n.getTests(),function(n){return n&&n.name===t})},n.getTests=function(){var t,i,u;if(void 0===n.allTests){for(n.allTests=[],t=0,i=n.registeredTests;t<i.length;t++)for(var f=new i[t],r=0,e=Object.getOwnPropertyNames(Object.getPrototypeOf(f));r<e.length;r++)u=e[r],0===u.indexOf("test_")&&n.allTests.push({name:u.substr(5),testObject:f,state:"unspecified",information:null});n.allTests.sort(function(n,t){return n.name.localeCompare(t.name)})}return n.allTests},n.run=function(t){var i,e,o;if("*"!==t&&"all"!==t){if(i=n.findTest(t),!i)return e=document.getElementById("container"),u.a.unmountComponentAtNode(e),void u.a.render(f.a.createElement(r.TestsWindow),e);o=r.WindowManager.Instance.Server=new r.TestServer;o.onFinishedTest=function(){var e=document.getElementById("container"),t=document.createElement("div");t.className="test-result-container";e.appendChild(t);u.a.render(f.a.createElement(r.TestsWindowFinished,{testItem:i,onClick:function(){n.run("?")}}),t)};i.testObject.executeTest(o,i)}else n.runTests(n.getTests())},n.runTests=function(t){t=t.map(function(n){return n});var i=function(){0===t.length?n.run("?"):setTimeout(function(){var e=t.shift().name,f=r.WindowManager.Instance.Server=new r.TestServer,u=n.findTest(e);u?(f.onFinishedTest=i,u.testObject.executeTest(f,u,!0)):n.run("?")},10)};i()},n.reset=function(){Object(r.resetCacheElements)();r.WindowManager.Instance.resetWindows()},n.prototype.executeTest=function(t,i,e){void 0===e&&(e=!1);console.assert(!this.server);try{r.TestServer.initTestEnvironment();n.reset();console.log("Running test "+i.name);this.server=t;n.currentTest=i;t.detectSuspended=e;i.state="unverified";i.information=null;this["test_"+i.name]();var s=f.a.createElement(r.App),o=document.getElementById("container");u.a.unmountComponentAtNode(o);u.a.render(s,o)}finally{r.TestServer.resetTestEnvironment()}},n.prototype.form=function(n){this.server.form(n)},n.prototype.home=function(n){return this.server.home(n)},n.prototype.next=function(n){return this.server.next(n)},n.prototype.request=function(n){return this.server.request(n)},n.prototype.fireEvent=function(n,t,i,r,u){if(void 0===i&&(i="HTMLEvents"),void 0===r&&(r=!0),void 0===u&&(u=!0),t){var f=document.createEvent(i);f.initEvent(n,r,u);t.dispatchEvent(f)}},n.prototype.fireKeyboardEvent=function(n,t,i,r){if(void 0===i&&(i=!0),void 0===r&&(r=!0),n){var u=new KeyboardEvent("keydown",{key:"a",code:"a"});n.dispatchEvent(u)}},n.prototype.updateControlValue=function(n,t,i){void 0===i&&(i=!1);var r=document.getElementById(n);r&&(r.value=t,i&&this.fireEvent("blur",r))},n.prototype.getHtmlControl=function(n){return document.getElementById(n)},n.prototype.getHtmlControlByClassName=function(n){return document.getElementsByClassName(n)[0]},n.prototype.getInputValue=function(n){var t=this.getHtmlControl(n);return t?t.value:null},n.getHtmlControl=function(n){return document.getElementById(n)},n.getHtmlElementByClassName=function(n,t){return void 0===t&&(t=null),t?t.getElementsByClassName(n)[0]:document.getElementsByClassName(n)[0]},n.getHtmlElementsByClassName=function(n,t){return void 0===t&&(t=null),t?t.getElementsByClassName(n):document.getElementsByClassName(n)},n.getHtmlElementsByTagName=function(n,t){return void 0===t&&(t=null),t?t.getElementsByTagName(n):document.getElementsByTagName(n)},n.prototype.markResult=function(n){this.server.detectSuspended||e.a.forEach(n,function(n){n.className&&(n.className+=" test-result-marker",n.onmouseover=function(n){var t=n.target;t&&t.classList.remove("test-result-marker")})})},n.registeredTests=[],n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(){this.forms={};this.liveCounters={};this.steps=[];this.suspendCounter=0;r.CookieHelper.GetDeviceType()||r.CookieHelper.SetDeviceType("MobileBrowser")}return n.forEach=function(t,i){var r,u,f;if(i(t),t.Elements)for(r=0,u=t.Elements;r<u.length;r++)f=u[r],n.forEach(f,i)},n.initTestEnvironment=function(){r.StorageHelper.SetTestEnvironment(!0)},n.resetTestEnvironment=function(){r.StorageHelper.SetTestEnvironment(!1)},n.prototype.form=function(t){n.forEach(t,function(t){t.Location||(t.Location="5,320,,5,340,,320,340");t.Name||(t.Name="_"+ ++n.eCounter)});console.assert(!!t.UID);console.assert(!this.forms[t.UID]);this.forms[t.UID]=t},n.prototype.home=function(n){return this.currentStep=new r.TestStep(this),this.currentStep.Rd=n,this.currentStep},n.prototype.next=function(n){var t=new r.TestStep(this);return t.PrepareAction=n,this.steps.push(t),t},n.prototype.request=function(n){var t=new r.TestStep(this);return t.Rq=n,this.steps.push(t),t},n.prototype.scripter=function(){throw"Method not supported";},n.prototype.prepareRd=function(n){var t=this.liveCounters[n.WindowHandle];return void 0===t&&void 0===n.Elements&&(n.Elements=[{UID:n.WindowHandle}]),n.LiveCounter||(t||(t=0),n.LiveCounter=t+1),this.liveCounters[n.WindowHandle]=n.LiveCounter,{Forms:[n]}},n.prototype.promise=function(n,t){var i=this;return new r.SPromise(function(r){var u=t();void 0!==u&&(i.Delayed?setTimeout(function(){r(u);n&&i.callFinish()},i.Delayed):(r(u),n&&i.callFinish()))})},n.prototype.callFinish=function(){var n=this;setTimeout(function(){n.afterFinish()},100)},n.prototype.afterFinish=function(){this.currentStep&&(this.currentStep.CheckAction&&this.currentStep.CheckAction(),this.currentStep=this.steps.shift(),this.currentStep&&this.currentStep.PrepareAction?(this.currentStep.PrepareAction(),this.setSuspended()):this.testFinished())},n.prototype.setSuspended=function(){if(this.detectSuspended){var t=++this.suspendCounter,n=this;setTimeout(function(){if(t===n.suspendCounter&&r.TestBase.currentTest){var i=r.TestBase.currentTest;i.state="unverified";i.information="Test suspended. No invocation code.";n.testFinished()}},3e3)}},n.prototype.checkRq=function(n,t,i){return void 0!==n&&(console.assert(n===t,"Spodziewany "+i+"="+n+" zamiast "+t),n!==t)},n.prototype.start=function(){var n=this;return this.promise(!0,function(){return n.prepareRd(n.currentStep.Rd)})},n.prototype.execute=function(n){var t=this,i=n.UpdateValues[0];return this.currentStep||console.log(i),this.promise(!0,function(){var r=t.currentStep,u;if(void 0===r)return t.prepareRd({WindowHandle:n.WindowHandle});if(r.Rq){if(t.checkRq(r.Rq.Action,i.Action,"Action"))return;if(t.checkRq(r.Rq.Name,i.Name,"Name"))return;if(t.checkRq(r.Rq.EditValue,i.EditValue,"EditValue"))return;if(t.checkRq(r.Rq.ID,i.ID,"ID"))return}if(null!==r.Rd)return u=r.Rd,u||(u={WindowHandle:n.WindowHandle}),t.prepareRd(u);alert("Test finished successfully")})},n.prototype.pingSession=function(){return this.promise(!1,function(){return{}})},n.prototype.getForm=function(n,t){var i=this;return this.promise(!1,function(){return i.forms[t]})},n.prototype.testFinished=function(){var n=this;setTimeout(function(){var t=r.TestBase.currentTest;console.assert(!!t.testObject.server);r.TestBase.currentTest=null;t.testObject.server=null;n.onFinishedTest&&n.onFinishedTest(t)},100)},n.eCounter=0,n}()},function(n,t,i){"use strict";var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.test_ModalLogOut=function(){this.form({UID:"wnd1",Mode:"Modal",Type:"Stack",Name:"Stack1",Elements:[{Type:"Bar",Name:"HeaderBar",Elements:[{Type:"Command",Name:"_Tak",CaptionHtml:"Tak"},{Type:"Command",Name:"_Nie",Class:"FirstResponder",CaptionHtml:"Nie"}]},{Type:"Label",Name:"Message",Location:""}]});this.home({WindowHandle:"wnd1",CaptionHtml:"Wyloguj z systemu",Properties:[{Name:"Message",CaptionHtml:"Czy chcesz zakończyć pracę w programie?"}]}).check(function(){});this.next(function(){})},t}(u.TestBase);u.TestBase.registerMobile(e)},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(n){this.server=n}return n.prototype.requestExpected=function(n){return this.Rq=n,this},n.prototype.response=function(n){return this.Rd=n,this},n.prototype.check=function(n){return this.CheckAction=n,this},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return c});var f,o=i(1),r=i.n(o),s=i(3),h=i.n(s),u=i(0),e=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),c=function(n){function t(i){var r=n.call(this,i)||this;return r.state={filter:t.saveFilter},r}return e(t,n),t.prototype.render=function(){var n=this;return this.testsList=u.TestBase.getTests(),this.state.filter&&(this.testsList=this.testsList.filter(function(t){return t.name.toLowerCase().indexOf(n.state.filter.toLowerCase())>=0})),r.a.createElement("div",{className:"test-window"},r.a.createElement(u.TestsWindowHeader,{testItems:this.testsList,filter:this.state.filter,onClick:function(){return n.clickAll()},onFilterChanged:function(t){return n.filterChanged(t)}}),r.a.createElement("div",{className:"test-items-content"},this.testsList.map(function(t){return n.renderTestItem(t)})))},t.prototype.renderTestItem=function(n){return r.a.createElement(l,{key:"test_"+n.name.replace(" ","_"),testItem:n})},t.prototype.filterChanged=function(n){t.saveFilter=n;this.setState({filter:n})},t.prototype.clickAll=function(){u.TestBase.runTests(this.testsList)},t.saveFilter="",t}(r.a.Component),l=function(n){function t(t){return n.call(this,t)||this}return e(t,n),t.prototype.onMouseDown=function(){},t.prototype.onClick=function(){u.TestBase.run(this.props.testItem.name)},Object.defineProperty(t.prototype,"id",{get:function(){return this.props.testItem.name.replace(" ","_")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classnames",{get:function(){return h()({"test-item":!0})},enumerable:!1,configurable:!0}),t.prototype.getSvg=function(n){var t=r.a.createElement("svg",{fill:"#656565",width:"24",height:"24",viewBox:"0 0 24 24"},r.a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}));return"failed"===n?t=r.a.createElement("svg",{fill:"#ff0000",width:"24",height:"24",viewBox:"0 0 24 24"},r.a.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"})):"succeeded"===n?t=r.a.createElement("svg",{fill:"#24CA24",width:"24",height:"24",viewBox:"0 0 24 24"},r.a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})):"unverified"===n&&(t=r.a.createElement("svg",{fill:"#00B1FF",width:"24",height:"24",viewBox:"0 0 24 24"},r.a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}))),t},t.prototype.render=function(){var i=this,n=this.props.testItem,t=null;return n.information&&(t=r.a.createElement("div",{className:"test-information"},n.information)),r.a.createElement("div",{className:"test-item",onClick:function(n){return i.onClick(n)}},r.a.createElement("div",{className:"test-state "+n.state},this.getSvg(n.state)),r.a.createElement("div",{className:"test-title"},r.a.createElement("div",null,n.name),t))},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var u,f=i(1),r=i.n(f),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){return n.call(this,t)||this}return e(t,n),t.prototype.onClick=function(n){this.props.onClick&&this.props.onClick(n)},t.prototype.getSvg=function(n){var t=r.a.createElement("svg",{fill:"#656565",width:"24",height:"24",viewBox:"0 0 24 24"},r.a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}));return"failed"===n?t=r.a.createElement("svg",{fill:"#ff0000",width:"24",height:"24",viewBox:"0 0 24 24"},r.a.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"})):"succeeded"===n?t=r.a.createElement("svg",{fill:"#24CA24",width:"24",height:"24",viewBox:"0 0 24 24"},r.a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})):"unverified"===n&&(t=r.a.createElement("svg",{fill:"#00B1FF",width:"24",height:"24",viewBox:"0 0 24 24"},r.a.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}))),t},t.prototype.render=function(){var t=this,n=this.props.testItem,i=n.name+" ("+n.state+")",u=r.a.createElement("div",null,i),f=n.information?r.a.createElement("div",null,n.information):null;return r.a.createElement("div",{className:"test-finished "+n.state,onClick:function(n){return t.onClick(n)}},r.a.createElement("div",{className:"test-state "+n.state},this.getSvg(n.state)),r.a.createElement("div",{className:"test-title"},u,f),r.a.createElement("div",{className:"test-back-all"},r.a.createElement("svg",{fill:"#FBBC05",height:"24",viewBox:"0 0 24 24",width:"24"},r.a.createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}))))},t}(r.a.Component)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var u,f=i(1),r=i.n(f),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this,t)||this;return i.state={filter:t.filter,hover:!1},i}return e(t,n),t.prototype.componentWillReceiveProps=function(n){n.filter!==this.state.filter&&this.setState({filter:n.filter})},t.prototype.onFilterChanged=function(n){var i=this,t=n.target.value.toString();this.setState({filter:t});this.delaySendFilter&&clearTimeout(this.delaySendFilter);this.delaySendFilter=setTimeout(function(){i.props.onFilterChanged(t)},500)},t.prototype.render=function(){var n=this;return r.a.createElement("div",{className:"test-header"},r.a.createElement("div",{className:"test-run",style:{height:"48px",width:"120px"},onClick:function(){return n.props.onClick()}},r.a.createElement("div",{className:"test-state"},r.a.createElement("svg",{fill:"#FBBC05",height:"24",width:"24",viewBox:"0 0 24 24"},r.a.createElement("path",{d:"M7 2v11h3v9l7-12h-4l4-8z"}))),r.a.createElement("div",{className:"test-title"},"Uruchom")),r.a.createElement("div",{className:"test-search"},r.a.createElement("input",{value:this.state.filter,placeholder:"wszystkie",onChange:function(t){return n.onFilterChanged(t)}})))},t}(r.a.Component)},function(n,t,i){"use strict";var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.validateRenderedDom=function(){r.Assert.areEqual(1,1,"Nieprawidłowa szerokość dla kontentu w elemencie")},t.prototype.test_Dialog_Question=function(){var n={caption:"Tekst dla dialogu typu Question",dialogType:r.DialogType.Question},i=r.DialogData.initDataFormElement(n),u=r.DialogData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n)})},t.prototype.test_Dialog_Warning=function(){var n={caption:"Tekst dla dialogu typu Warning",dialogType:r.DialogType.Warning},i=r.DialogData.initDataFormElement(n),u=r.DialogData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n)})},t.prototype.test_Dialog_Error=function(){var n={caption:"Tekst dla dialogu typu Error",dialogType:r.DialogType.Error},i=r.DialogData.initDataFormElement(n),u=r.DialogData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n)})},t.prototype.test_Dialog_Information=function(){var n={caption:"Tekst dla dialogu typu Info",dialogType:r.DialogType.Info},i=r.DialogData.initDataFormElement(n),u=r.DialogData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n)})},t.prototype.test_Utils_KeyboardController=function(){var n={caption:"Test Keyboard",addKeyboard:!0},t=r.FieldData.initDataFormElement(n),i=r.FieldData.initDataResponse(t,n),u=String.fromCharCode(192)+"Test barcodeReader\r";this.form(t);this.home(i).check(function(){var i=function(n){n.charCode},n,t,f;for(document.addEventListener("keydown",i,!1),n=0,t=u.split("");n<t.length;n++)f=t[n],Object(r.KeyPressInject)(f);document.removeEventListener("keydown",i,!1);r.Assert.isTrue(!0,"Nieprawidłowe kodowanie tekstu. Jest 1. Powinno być 1")})},t}(r.TestBase);r.TestBase.registerBrowser(e)},function(n,t,i){"use strict";var f,u=i(2),r=i(0),e=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e(t,n),t.validateRenderedDom=function(n,i,f){var s=t.findProperties(n,[f.editorType]),e=t.findEditors(n,[f.editorType]),o=t.findDOMEditors([f.editorClass]),h="MemoText"===f.editorType;e.length===o.length?u.a.forEach(o,function(n,t){var k=e[t],et=h?"textarea":f.editorTag?f.editorTag:"input",p=new r.Location(k.Location),d=r.TestBase.getHtmlElementByClassName(f.contentClass,n),tt=r.TestBase.getHtmlElementByClassName(f.labelClass,n),it=r.TestBase.getHtmlElementsByClassName(f.iconClass,n),w=r.TestBase.getHtmlElementsByTagName(et,n),g=w[0],ot=it[0],a=0,v=0,rt=parseFloat(tt.style.left),nt=0,ut=parseFloat(tt.style.width),ft=p.LabelWidth,u=0,y=0,o=0,c=0,l,b;d&&(u=parseFloat(d.style.right),y=0,o=Math.ceil(parseFloat(d.style.width))/1,c=Math.ceil(p.Width-p.LabelWidth-5)/1);l=g.value;b=s[t].EditValue;"CheckBox"===f.editorType?l=g.checked.toString():"Rating"===f.editorType?(l=w[parseInt(s[t].EditValue)-1].checked?b:"",a=0,v=0,u=0,y=0,o=0,c=0):"Radio"===f.editorType?(l=g.checked?"1":"0",a=parseFloat(ot.style.left),v=i.useRightLabel?0:p.LabelWidth,nt=i.useRightLabel?36:0,u=0,u=0,o=0,c=0):"Signature"===f.editorType&&(a=0,v=0,u=0,y=0,o=0,c=0);"Rating"!==f.editorType?r.Assert.isTrue(k&&1===w.length,"Dla edytora typu "+f.editorType+" brakuje elementu "+(h?"TEXTAREA":"INPUT")+"."):r.Assert.isTrue(k&&5===w.length,"Dla edytora typu "+f.editorType+" brakuje odpowiedniej liczby elementów INPUT.");f.iconClass&&r.Assert.isTrue(1===it.length,"Dla edytora typu "+f.editorType+" brakuje elementu z ikoną.");"Signature"!==f.editorType&&r.Assert.areEqual(l,b,"Niepoprawna wartość w edytorze typu "+f.editorType+". Jest: "+l+", powinno być: "+b);r.Assert.areEqual(rt,nt,"Nieprawidłowe położenie Left dla label w elemencie "+t+". Jest: "+rt+", powinno być: "+nt);r.Assert.areEqual(a,v,"Nieprawidłowe położenie Left dla check w elemencie "+t+". Jest: "+a+", powinno być: "+v);r.Assert.areEqual(u,y,"Nieprawidłowe położenie Left dla check w elemencie "+t+". Jest: "+u+", powinno być: "+y);r.Assert.areEqual(ut,ft,"Nieprawidłowa szerokość dla label w elemencie "+t+". Jest: "+ut+", powinno być: "+ft);r.Assert.areEqual(o,c,"Nieprawidłowa szerokość dla kontentu w elemencie "+t+". Jest: "+o+", powinno być: "+c)}):r.Assert.areEqual(e.length,o.length,"Nieprawidłowa liczba powstałych elementów typu "+f.editorType+". Jest: "+o.length+", powinno być: "+e.length)},t.validateLabelHeight=function(n,i,f){var e=t.findEditors(n,f.editorTypes),o=t.findDOMEditors(f.editorClasses);u.a.forEach(o,function(n,t){var l=e[t],a=new r.Location(l.Location),o=r.TestBase.getHtmlElementByClassName(f.labelClass,n),s=parseFloat(o.style.left),u=0,h=parseFloat(o.style.width),c=a.LabelWidth;"CheckBox"===f.editorType||"Rating"===f.editorType||"Radio"===f.editorType&&(u=i.useRightLabel?36:0);r.Assert.areEqual(s,u,"Nieprawidłowe położenie Left dla label w elemencie "+t+". Jest: "+s+", powinno być: "+u);r.Assert.areEqual(h,c,"Nieprawidłowa szerokość dla label w elemencie "+t+". Jest: "+h+", powinno być: "+c)})},t.findProperties=function(n,t){var i=[];return u.a.forEach(t,function(t){n.Properties.filter(function(n){return n.EditorType===t||!n.EditorType}).forEach(function(n){i.push(n)});n.Properties.filter(function(n){return n.EditorType===t||!n.EditorType})}),i},t.findEditors=function(n,i){var r=n.Elements[0].Element.Elements[0],f=t.findProperties(n,i);return r.Elements.filter(function(n){return u.a.find(f,function(t){return t.Name===n.Name})})},t.findDOMEditors=function(n){var t=[],i=r.TestBase.getHtmlElementsByClassName("group");return n.forEach(function(n){var f=r.TestBase.getHtmlElementsByClassName(n,i[0]);u.a.forEach(f,function(n){t.push(n)})}),t},Object.defineProperty(t,"lookupAutoCompleteResponse",{get:function(){return{WindowHandle:"wnd1",Lists:[{Data:[["1","ABC Sp. z o.o (Abc)"],["2","ASPEN GmbH (Aspen)"],["3","Agencja reklamowa KOBRA Hektor Janiak i wspólnicy (Kobra)"]],EndArchived:!0,Name:"_Lookup_01",Start:0}]}},enumerable:!1,configurable:!0}),t.prototype.test_Field_RadioButton_tekst_po_prawej=function(){var n={caption:"RadioButton z tekstem po prawej",addRadioButton:!0,useRightLabel:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"Radio",editorClass:"editor-radiobutton",labelClass:"placeholder",contentClass:"content",iconClass:"icon"})})},t.prototype.test_Field_RadioButton_tekst_po_lewej=function(){var n={caption:"RadioButton z tekstem po lewej",addRadioButton:!0,useRightLabel:!1},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"Radio",editorClass:"editor-radiobutton",labelClass:"placeholder",contentClass:"content",iconClass:"icon"})})},t.prototype.test_Field_CheckBox=function(){var n={caption:"Test dla CheckBox",addCheckBox:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"CheckBox",editorClass:"editor-checkbox",labelClass:"placeholder",contentClass:"ch-content",iconClass:"icon"})})},t.prototype.test_Field_Date=function(){var n={caption:"Test dla Date",addDate:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"Date",editorClass:"editor-date",labelClass:"placeholder",contentClass:"content",iconClass:"icon"})})},t.prototype.test_Field_FromTo=function(){var n={caption:"Test dla FromTo",addFromTo:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"FromTo",editorClass:"editor-date",labelClass:"placeholder",contentClass:"content",iconClass:"icon"})})},t.prototype.test_Field_Time=function(){var n={caption:"Test dla Time",addTime:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"Time",editorClass:"editor-date",labelClass:"placeholder",contentClass:"content",iconClass:"icon"})})},t.prototype.test_Field_Lookup=function(){var n={caption:"Test dla Lookup",addLookup:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"Lookup",editorClass:"lookup",labelClass:"placeholder",contentClass:"content",iconClass:"icon"})})},t.prototype.test_Field_Lookup_AutoComplete=function(){var u=this,n={caption:"Test dla Lookup",addLookup:!0},i=r.FieldData.initDataFormElement(n),f=r.FieldData.initDataResponse(i,n);this.form(i);this.home(f);this.next(function(){var n=t.findDOMEditors(["icon"])[0];u.fireEvent("click",n,"MouseEvent")}).requestExpected({Name:"_Lookup_01",Action:"lookupform"}).response(t.lookupAutoCompleteResponse).check(function(){r.Assert.areEqual(3,document.getElementsByClassName("lookup-item").length)})},t.prototype.test_Field_Text=function(){var n={caption:"Test dla Text",addInput:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"",editorClass:"editor-text",labelClass:"placeholder",contentClass:"content"})})},t.prototype.test_Field_LabelStandardHeight=function(){var n={caption:"Standardowa wysokość label dla edytorów",addCheckBox:!0,addRadioButton:!0,addInput:!0,addMemo:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateLabelHeight(u,n,{editorTypes:[""],editorClasses:["editor-text"],labelClass:"placeholder"})})},t.prototype.test_Field_LabelExtendedHeight=function(){var n={caption:"Zwiększona wysokość label dla edytorów",addCheckBox:!0,addRadioButton:!0,addInput:!0,addMemo:!0,useLabelHeight:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateLabelHeight(u,n,{editorTypes:[""],editorClasses:["editor-text"],labelClass:"placeholder"})})},t.prototype.test_Field_Memo=function(){var n={caption:"Test dla MemoText",addMemo:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"MemoText",editorClass:"editor-memo",labelClass:"placeholder",contentClass:"content"})})},t.prototype.test_Field_Rating=function(){var n={caption:"Test dla Rating",addRating:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"Rating",editorClass:"editor-rating",labelClass:"placeholder",contentClass:"content"})})},t.prototype.test_Field_Email=function(){var n={caption:"Test dla Email",addEmail:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"Email",editorClass:"editor-email",labelClass:"placeholder",contentClass:"content"})})},t.prototype.test_Field_Hyperlink=function(){var n={caption:"Test dla Hyperlink",addHyperlink:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"Hyperlink",editorClass:"editor-hyperlink",labelClass:"placeholder",contentClass:"content"})})},t.prototype.test_Field_Skype=function(){var n={caption:"Test dla Skype",addSkype:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"Skype",editorClass:"editor-skype",labelClass:"placeholder",contentClass:"content"})})},t.prototype.test_Field_Phone=function(){var n={caption:"Test dla Phone",addPhone:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"Phone",editorClass:"editor-phone",labelClass:"placeholder",contentClass:"content"})})},t.prototype.test_Field_Signature=function(){var n={caption:"Test dla Signature",addSignature:!0},i=r.FieldData.initDataFormElement(n),u=r.FieldData.initDataResponse(i,n);this.form(i);this.home(u).check(function(){t.validateRenderedDom(u,n,{editorType:"Signature",editorClass:"editor-signature",labelClass:"placeholder",contentClass:"content",editorTag:"canvas"})})},t}(r.TestBase);r.TestBase.registerBrowser(o)},function(n,t,i){"use strict";var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.validateRenderedDom=function(){r.Assert.areEqual(1,1,"Nieprawidłowa szerokość dla kontentu w elemencie")},t.prototype.test_Gantt=function(){var n=r.GanttData.initDataFormElement(),i=r.GanttData.initDataResponse(n);this.form(n);this.home(i).check(function(){t.validateRenderedDom(i)})},t}(r.TestBase);r.TestBase.registerBrowser(e)},function(n,t,i){"use strict";var u,r=i(0),f=i(2),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return e(t,n),t.prototype.test_Grid__podstawowy=function(){var u=this,t={disableSelection:!0,rowCount:100},n=r.GridData.initDataFormElement(t),i=r.GridData.initDataResponse(n,t);this.form(n);this.home(i).check(function(){var e=r.TestBase.getHtmlElementByClassName("grid-main"),s=r.TestBase.getHtmlElementsByClassName("grid-row",e),o=r.TestBase.getHtmlElementsByClassName("gh-column",e),f=r.TestBase.getHtmlElementsByClassName("gc-text",s[0]),t=i.Elements[0].Element.Elements[0];u.markResult(f);r.Assert.areEqual(t.Elements.length+(n.Elements[0].Class.indexOf("DisableSelection")>=0?0:1),o.length,"Nieprawidłowa liczba nagłówków kolumn. Jest: "+o.length+", powinno być: "+t.Elements.length);r.Assert.areEqual(t.Elements.length,f.length,"Nieprawidłowa liczba komórek w wierszu. Jest: "+f.length+", powinno być: "+t.Elements.length)})},t.prototype.test_Grid_zaznaczanie=function(){var i=this,n={disableSelection:!1,rowCount:50},t=r.GridData.initDataFormElement(n),u=r.GridData.initDataResponse(t,n);this.form(t);this.home(u).check(function(){var n=r.TestBase.getHtmlElementByClassName("grid-main"),u=r.TestBase.getHtmlElementsByClassName("grid-row",n),t=r.TestBase.getHtmlElementsByClassName("gc-select",n);i.markResult(t);r.Assert.isTrue(u.length>0,"Nieprawidłowa liczba wygenerowanych wierszy");r.Assert.isTrue(t.length>0,"Brak kolumny z zaznaczaniem")})},t.prototype.test_Grid_zaznaczanie_kolumna_image=function(){var n=this,t={disableSelection:!1,addImageColumn:!0,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var i=r.TestBase.getHtmlElementByClassName("grid-main"),u=r.TestBase.getHtmlElementsByClassName("grid-row",i),t=r.TestBase.getHtmlElementsByClassName("gc-image",u[0]),f=100===t[0].clientHeight;n.markResult(t);n.markResult(r.TestBase.getHtmlElementsByClassName("gc-select",i));r.Assert.isTrue(1===t.length,"Brak komórki z Image");r.Assert.isTrue(f,"Nieprawidłowy rozmiar komórki z Image")})},t.prototype.test_Grid_zaznaczanie_kolumna_checkbox=function(){var n=this,t={disableSelection:!1,addCheckBoxColumn:!0,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var t=r.TestBase.getHtmlElementByClassName("grid-main"),u=r.TestBase.getHtmlElementsByClassName("grid-row",t),i=r.TestBase.getHtmlElementsByClassName("gc-check",t),f=r.TestBase.getHtmlElementsByClassName("gc-select",t);n.markResult(i);n.markResult(f);r.Assert.isTrue(u.length>0,"Nieprawidłowa liczba wygenerowanych wierszy");r.Assert.isTrue(i.length>0,"Nieprawidłowa liczba komórek z CheckBox")})},t.prototype.test_Grid_zaznaczanie_kolumna_textright=function(){var n=this,t={disableSelection:!1,addTextRightColumn:!0,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var t=r.TestBase.getHtmlElementByClassName("grid-main"),u=r.TestBase.getHtmlElementsByClassName("grid-row",t),i=r.TestBase.getHtmlElementsByClassName("right",t),f=r.TestBase.getHtmlElementsByClassName("gc-select",t);n.markResult(i);n.markResult(f);r.Assert.isTrue(u.length>0,"Nieprawidłowa liczba wygenerowanych wierszy");r.Assert.isTrue(i.length>0,"Nieprawidłowa liczba komórek z TextRightAlign")})},t.prototype.test_Grid_zaznaczanie_zamrozona_kolumna_z_lewej=function(){var n=this,t={frozenLeftColumns:1,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var t=r.TestBase.getHtmlElementByClassName("grid-main"),u=r.TestBase.getHtmlElementsByClassName("grid-row",t),i=r.TestBase.getHtmlElementsByClassName("frozen",t),f=r.TestBase.getHtmlElementsByClassName("gc-select",t);n.markResult(i);n.markResult(f);r.Assert.isTrue(u.length>0,"Nieprawidłowa liczba wygenerowanych wierszy");r.Assert.isTrue(i.length>0,"Nieodpowiednia liczba zamrożonych komórek. Jest: "+i.length+", powinno być: 51")})},t.prototype.test_Grid_zaznaczanie_zamrozona_kolumna_z_prawej=function(){var n=this,t={frozenRightColumns:1,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var t=r.TestBase.getHtmlElementByClassName("grid-main"),u=r.TestBase.getHtmlElementsByClassName("grid-row",t),i=r.TestBase.getHtmlElementsByClassName("frozen",t),f=r.TestBase.getHtmlElementsByClassName("gc-select",t);n.markResult(f);n.markResult(i);r.Assert.isTrue(u.length>0,"Nieprawidłowa liczba wygenerowanych wierszy");r.Assert.isTrue(i.length>0,"Nieodpowiednia liczba zamrożonych komórek. Jest: "+i.length+", powinno być: 51")})},t.prototype.test_Grid_zaznaczanie_wspolny_naglowek=function(){var n=this,t={commonHeader:!0,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var t=r.TestBase.getHtmlElementByClassName("grid-main"),u=r.TestBase.getHtmlElementsByClassName("grid-row",t),f=r.TestBase.getHtmlElementsByClassName("gc-select",t),i=r.TestBase.getHtmlElementsByClassName("gh-common",t);n.markResult(i);n.markResult(f);r.Assert.isTrue(u.length>0,"Nieprawidłowa liczba wygenerowanych wierszy");r.Assert.isTrue(1===i.length,"Niekompletna stuktura wspólnego nagłówka dla kolumn")})},t.prototype.test_Grid_brak_zaznaczania=function(){var i=this,n={disableSelection:!0,rowCount:50},t=r.GridData.initDataFormElement(n),u=r.GridData.initDataResponse(t,n);this.form(t);this.home(u).check(function(){var t=r.TestBase.getHtmlElementByClassName("grid-main"),u=r.TestBase.getHtmlElementsByClassName("grid-row",t),n=r.TestBase.getHtmlElementsByClassName("gc-select",t);n.length>0&&i.markResult(n);r.Assert.isTrue(u.length>0,"Nieprawidłowa liczba wygenerowanych wierszy");r.Assert.isTrue(0===n.length,"Nieoczekiwana kolumna z zaznaczaniem")})},t.prototype.test_Grid_brak_zaznaczania_kolumna_image=function(){var n=this,t={addImageColumn:!0,disableSelection:!0,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var u=r.TestBase.getHtmlElementByClassName("grid-main"),f=r.TestBase.getHtmlElementsByClassName("grid-row",u),t=r.TestBase.getHtmlElementsByClassName("gc-select",u),i=r.TestBase.getHtmlElementsByClassName("gc-image",f[0]),e=100===i[0].clientHeight;n.markResult(i);t.length>0&&n.markResult(t);r.Assert.isTrue(1===i.length,"Brak komórki z Image");r.Assert.isTrue(e,"Nieprawidłowy rozmiar komórki z Image");r.Assert.isTrue(0===t.length,"Nieoczekiwana kolumna z zaznaczaniem")})},t.prototype.test_Grid_brak_zaznaczania_kolumna_checkbox=function(){var n=this,t={addCheckBoxColumn:!0,disableSelection:!0,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var t=r.TestBase.getHtmlElementByClassName("grid-main"),f=r.TestBase.getHtmlElementsByClassName("grid-row",t),i=r.TestBase.getHtmlElementsByClassName("gc-select",t),u=r.TestBase.getHtmlElementsByClassName("gc-check",t);n.markResult(u);i.length>0&&n.markResult(i);r.Assert.isTrue(f.length>0,"Nieprawidłowa liczba wygenerowanych wierszy");r.Assert.isTrue(u.length>0,"Nieprawidłowa liczba komórek z CheckBox");r.Assert.isTrue(0===i.length,"Nieoczekiwana kolumna z zaznaczaniem")})},t.prototype.test_Grid_brak_zaznaczania_kolumna_textright=function(){var n=this,t={addTextRightColumn:!0,disableSelection:!0,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var t=r.TestBase.getHtmlElementByClassName("grid-main"),f=r.TestBase.getHtmlElementsByClassName("grid-row",t),i=r.TestBase.getHtmlElementsByClassName("gc-select",t),u=r.TestBase.getHtmlElementsByClassName("right",t);n.markResult(u);i.length>0&&n.markResult(i);r.Assert.isTrue(f.length>0,"Nieprawidłowa liczba wygenerowanych wierszy");r.Assert.isTrue(u.length>0,"Nieprawidłowa liczba komórek z TextRightAlign");r.Assert.isTrue(0===i.length,"Nieoczekiwana kolumna z zaznaczaniem")})},t.prototype.test_Grid_brak_zaznaczania_zamrozona_kolumna_z_lewej=function(){var n=this,t={frozenLeftColumns:1,disableSelection:!0,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var t=r.TestBase.getHtmlElementByClassName("grid-main"),f=r.TestBase.getHtmlElementsByClassName("grid-row",t),i=r.TestBase.getHtmlElementsByClassName("frozen",t),u=r.TestBase.getHtmlElementsByClassName("gc-select",t);n.markResult(i);u.length>0&&n.markResult(u);r.Assert.isTrue(f.length>0,"Nieprawidłowa liczba wygenerowanych wierszy");r.Assert.isTrue(i.length>0,"Nieodpowiednia liczba zamrożonych komórek. Jest: "+i.length+", powinno być: 51");r.Assert.isTrue(0===u.length,"Nieoczekiwana kolumna z zaznaczaniem")})},t.prototype.test_Grid_brak_zaznaczania_zamrozona_kolumna_z_prawej=function(){var n=this,t={frozenRightColumns:1,disableSelection:!0,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var t=r.TestBase.getHtmlElementByClassName("grid-main"),f=r.TestBase.getHtmlElementsByClassName("grid-row",t),i=r.TestBase.getHtmlElementsByClassName("frozen",t),u=r.TestBase.getHtmlElementsByClassName("gc-select",t);n.markResult(i);u.length>0&&n.markResult(u);r.Assert.isTrue(f.length>0,"Nieprawidłowa liczba wygenerowanych wierszy");r.Assert.isTrue(i.length>0,"Nieodpowiednia liczba zamrożonych komórek. Jest: "+i.length+", powinno być: 51");r.Assert.isTrue(0===u.length,"Nieoczekiwana kolumna z zaznaczaniem")})},t.prototype.test_Grid_brak_zaznaczania_wspolny_naglowek=function(){var n=this,t={commonHeader:!0,disableSelection:!0,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var t=r.TestBase.getHtmlElementByClassName("grid-main"),f=r.TestBase.getHtmlElementsByClassName("grid-row",t),i=r.TestBase.getHtmlElementsByClassName("gc-select",t),u=r.TestBase.getHtmlElementsByClassName("gh-common",t);n.markResult(u);i.length>0&&n.markResult(i);r.Assert.isTrue(f.length>0,"Nieprawidłowa liczba wygenerowanych wierszy");r.Assert.isTrue(1===u.length,"Niekompletna stuktura wspólnego nagłówka dla kolumn");r.Assert.isTrue(0===i.length,"Nieoczekiwana kolumna z zaznaczaniem")})},t.prototype.test_Grid_brak_zaznaczania_wiersz_sumujacy=function(){var n=this,t={disableSelection:!0,hasSummaryRow:!0,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var i=r.TestBase.getHtmlElementByClassName("grid-main"),t=r.TestBase.getHtmlElementsByClassName("gc-select",i),u=r.TestBase.getHtmlElementsByClassName("gf-summary",i);n.markResult(u);t.length>0&&n.markResult(t);r.Assert.isTrue(1===u.length,"Brak wiersza sumującego");r.Assert.isTrue(0===t.length,"Nieoczekiwana kolumna z zaznaczaniem")})},t.prototype.test_Grid_brak_zaznaczania_wiersz_filtrujacy=function(){var n=this,t={disableSelection:!0,hasFilterRow:!0,rowCount:50},i=r.GridData.initDataFormElement(t),u=r.GridData.initDataResponse(i,t);this.form(i);this.home(u).check(function(){var i=r.TestBase.getHtmlElementByClassName("grid-main"),t=r.TestBase.getHtmlElementsByClassName("gc-select",i),u=r.TestBase.getHtmlElementsByClassName("gh-filters",i);n.markResult(u);t.length>0&&n.markResult(t);r.Assert.isTrue(1===u.length,"Brak wiersza filtrującego");r.Assert.isTrue(0===t.length,"Nieoczekiwana kolumna z zaznaczaniem")})},t.prototype.test_Grid_panel_cech_grupujacych=function(){var i=this,n={addFeatureBar:!0,rowCount:50},t=r.GridData.initDataFormElement(n),u=r.GridData.initDataResponse(t,n);this.form(t);this.home(u).check(function(){var t=r.TestBase.getHtmlElementByClassName("grid"),n=r.TestBase.getHtmlElementsByClassName("features-bar",t);i.markResult(n);r.Assert.isTrue(1===n.length,"Brak panelu cech grupujących")})},t.prototype.test_Group_grid_panel=function(){var u=this,n={addGroupPanel:!0,rowCount:5},t=r.GridData.initDataFormElement(n),i=r.GridData.initDataResponse(t,n);this.form(t);this.home(i).check(function(){var n=r.TestBase.getHtmlElementsByClassName("gb"),t=r.TestBase.getHtmlElementsByClassName("gb-cmd",n[0]),e=f.a.filter(i.Elements[0].Element.Elements,function(n){return n.Class&&n.Class.indexOf("Panel")>=0}),o=e[0].Elements;u.markResult(t);r.Assert.areEqual(e.length,n.length,"Nieprawidłowa liczba powstałych grup dla panelu w grid. Jest: "+n.length+", powinno być: "+e.length);r.Assert.areEqual(o.length,t.length,"Nieprawidłowa liczba powstałych przycisków w grupie pierwszej. Jest: "+t.length+", powinno być: "+o.length)})},t}(r.TestBase);r.TestBase.registerBrowser(o)},function(n,t,i){"use strict";var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.test_Group_menu_glowne=function(){var t=this,i=r.FolderData.initDataFormElement(),n=r.FolderData.initDataResponse;this.form(i);this.home(n).check(function(){var i=r.TestBase.getHtmlElementsByClassName("tile-content"),h=i[0],c=i[1],u=r.TestBase.getHtmlElementsByClassName("tile-item",h),f=r.TestBase.getHtmlElementsByClassName("tile-item",c),e=n.Elements[0].Element.Elements,o=n.Elements[0].Element.Elements[0].Elements,s=n.Elements[0].Element.Elements[1].Elements;t.markResult(u);t.markResult(f);r.Assert.areEqual(e.length,i.length,"Nieprawidłowa liczba powstałych grup na menu głównym. Jest: "+i.length+", powinno być: "+e.length);r.Assert.areEqual(o.length,u.length,"Nieprawidłowa liczba powstałych przycisków w grupie pierwszej. Jest: "+u.length+", powinno być: "+o.length);r.Assert.areEqual(s.length,f.length,"Nieprawidłowa liczba powstałych przycisków w grupie drugiej. Jest: "+f.length+", powinno być: "+s.length)})},t}(r.TestBase);r.TestBase.registerBrowser(e)},function(n,t,i){"use strict";var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.test_Indicator=function(){var n={UID:"wnd1",Mode:"Folder",Type:"Stack",Name:"_28",Location:"228,260",CaptionHtml:"BI",Elements:[{Type:"Indicator",Name:"_Indicator",Location:"170",CaptionHtml:"Caption",Icon:"dokument_kwota",Info:"Time",Unit:"Unit"}]},t={WindowHandle:"wnd1",CaptionHtml:"Test indicator",Properties:[{EditValue:"Value",Name:"_Indicator"}]};this.form(n);this.home(t).check(function(){var i=n.Elements.filter(function(n){return"Indicator"===n.Type}),c=i.length>0?t.Properties.filter(function(n){return n.Name===i[0].Name}):null,l=r.TestBase.getHtmlElementsByClassName("indicator"),u=r.TestBase.getHtmlElementsByClassName("ind-container",l[0]),a=r.TestBase.getHtmlElementsByClassName("ind-content",u[0]),tt=r.TestBase.getHtmlElementsByClassName("ind-icon",a[0]),f=r.TestBase.getHtmlElementsByClassName("ind-value",a[0]),e=r.TestBase.getHtmlElementsByClassName("ind-header",u[0]),it=r.TestBase.getHtmlElementsByClassName("ind-time-icon",e[0]),o=r.TestBase.getHtmlElementsByClassName("ind-time",e[0]),s=r.TestBase.getHtmlElementsByClassName("ind-unit",e[0]),v=r.TestBase.getHtmlElementsByClassName("ind-footer",u[0]),h=r.TestBase.getHtmlElementsByClassName("ind-caption",v[0]),y=c&&c.length>0?c[0].EditValue:null,p=f&&f.length>0?f[0].innerHTML:null,w=i&&i.length>0?i[0].Info:null,b=o&&o.length>0?o[0].innerHTML:null,k=i&&i.length>0?i[0].Unit:null,d=s&&s.length>0?s[0].innerHTML:null,g=i&&i.length>0?i[0].CaptionHtml:null,nt=h&&h.length>0?h[0].innerHTML:null;r.Assert.areEqual(i.length,l.length,"Nieprawidłowa liczba powstałych elementów typu Indicator. Jest: "+l.length+", powinno być: "+i.length);r.Assert.isTrue(1===u.length,"Brak elementu dom ind-container");r.Assert.isTrue(1===a.length,"Brak elementu dom ind-content");r.Assert.isTrue(1===f.length,"Brak elementu dom ind-value");r.Assert.isTrue(1===tt.length,"Brak elementu dom ind-icon");r.Assert.isTrue(1===e.length,"Brak elementu dom ind-header");r.Assert.isTrue(1===it.length,"Brak elementu dom ind-time-icon");r.Assert.isTrue(1===o.length,"Brak elementu dom ind-time");r.Assert.isTrue(1===s.length,"Brak elementu dom ind-unit");r.Assert.isTrue(1===v.length,"Brak elementu dom ind-footer");r.Assert.isTrue(1===h.length,"Brak elementu dom ind-caption");r.Assert.areEqual(p,y,"Niepoprawna wartość Value. Jest: "+p+", powinno być: "+y);r.Assert.areEqual(b,w,"Niepoprawna wartość Time. Jest: "+b+", powinno być: "+w);r.Assert.areEqual(d,k,"Niepoprawna wartość Time. Jest: "+d+", powinno być: "+k);r.Assert.areEqual(nt,g,"Niepoprawna wartość Caption. Jest: "+nt+", powinno być: "+g)})},t}(r.TestBase);r.TestBase.registerBrowser(e)},function(n,t,i){"use strict";var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.test_Utils_base64_encode_decode=function(){var n=r.UtilsData.dataFormElement,t=r.UtilsData.dataResponse;this.form(n);this.home(t).check(function(){var n="ąćęłńóśźż",i=r.Base64.encode(n),t=r.Base64.decode(i);r.Assert.isTrue(n===t,"Nieprawidłowe kodowanie tekstu. Jest "+t+". Powinno być "+n)})},t}(r.TestBase);r.TestBase.registerCommon(e)},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(){}return Object.defineProperty(n,"dataFormElement",{get:function(){return{UID:"wnd1",Mode:"Folder",Type:"Command",Name:"cmd1",Class:"MainCommand",CaptionHtml:"",Icon:"szuflada"}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"dataFormElementUnverified",{get:function(){var n=this.dataFormElement;return n.CaptionHtml="Test bez weryfikacji",n},enumerable:!1,configurable:!0}),Object.defineProperty(n,"dataFormElementSucceeded",{get:function(){var n=this.dataFormElement;return n.CaptionHtml="Test na sukces",n},enumerable:!1,configurable:!0}),Object.defineProperty(n,"dataFormElementSuspend",{get:function(){var n=this.dataFormElement;return n.CaptionHtml="Test na zawieszenie",n},enumerable:!1,configurable:!0}),Object.defineProperty(n,"dataFormElementFailed",{get:function(){var n=this.dataFormElement;return n.CaptionHtml="Test na błąd",n},enumerable:!1,configurable:!0}),Object.defineProperty(n,"dataResponse",{get:function(){return{WindowHandle:"wnd1",CaptionHtml:"Test przycisku"}},enumerable:!1,configurable:!0}),n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(){}return n.initDataFormElement=function(t){t.caption||(t.caption="");t.dialogType||(t.dialogType=r.DialogType.Hidden);var i={Type:"Stack",Mode:"Modal",UID:"_Dialog1",Name:"_Stack",Class:"Dialog "+n.dialogTypeToString(t.dialogType),Location:"5,,5,5,,5,27,26",Elements:[{Type:"Bar",Name:"HeaderBar",Class:"Header Reverse",Location:"0,372,,0,36,,",Elements:[]},{Type:"Label",Name:"Message",Location:"5,,5,5,,5,"}]};switch(t.dialogType){case r.DialogType.Question:i.Elements[0].Elements.push({Type:"Command",Name:"_Tak",Location:",182,190,0,36,,",CaptionHtml:"Tak",Icon:"OK",Key:"Ctrl+Enter"});i.Elements[0].Elements.push({Type:"Command",Name:"_Nie",Class:"FirstResponder",Location:",182,0,0,36,,",CaptionHtml:"Nie",Icon:"Cancel",Key:"Escape"});break;case r.DialogType.Warning:case r.DialogType.Error:case r.DialogType.Info:i.Elements[0].Elements.push({Type:"Command",Name:"_OK",Location:",182,190,0,36,,",CaptionHtml:"Potwierdź",Icon:"OK",Key:"Ctrl+Enter"})}return i},n.dialogTypeToString=function(n){var t="";switch(n){case r.DialogType.Question:t="Question";break;case r.DialogType.Warning:t="Warning";break;case r.DialogType.Error:t="Error";break;case r.DialogType.Info:t="Info"}return t},n.initDataResponse=function(t,i){return{WindowHandle:"_Dialog1",CaptionHtml:"Tekst w tytule dialogu typu "+n.dialogTypeToString(i.dialogType),Properties:[{CaptionHtml:i.caption,Name:"Message"}]}},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(){}return n.initDataFormElement=function(n){n.caption||(n.caption="");var u=32,i=function(n,t){var i=new r.Location(n),e=u,o=t?2:1,f=i.Height*o;return i.Height=f,i.Top=e,u+=f+6,i.toString()},t={UID:"wnd1",Elapsed:24,Mode:"Folder",Name:"_Stack",Type:"Stack",ViewType:"Folder",Location:"5,,5,5,,80,1087.5,874",Elements:[{Type:"Group",Name:"group_0",CaptionHtml:n.caption,Location:"5,,5,5,,5,",Elements:[]}]};return n.addInput&&t.Elements[0].Elements.push({CaptionHtml:n.useLabelHeight?"Text Text Text Text Text Text":"Text",Class:n.useLabelHeight?"MultilineLabel":"",Location:i("10,500,,38,26,,130",n.useLabelHeight),Name:"_Text_01",Type:"Field"}),n.addMemo&&t.Elements[0].Elements.push({CaptionHtml:n.useLabelHeight?"Memo Memo Memo Memo Memo Memo":"Memo",Class:n.useLabelHeight?"MultilineLabel":"",Location:i("10,500,,38,78,,130"),EditorType:"MemoText",Name:"_Memo_01",Type:"Field"}),n.addRadioButton&&(t.Elements[0].Elements.push({CaptionHtml:"Opcja 1",Class:n.useRightLabel?"RightLabel":"",Location:i("10,190,,38,26,,130"),Name:"_Radio_20",Type:"Field"}),t.Elements[0].Elements.push({CaptionHtml:"Opcja 2",Class:n.useRightLabel?"RightLabel":"",Location:i("10,190,,71,26,,130"),Name:"_Radio_21",Type:"Field"}),t.Elements[0].Elements.push({CaptionHtml:n.useLabelHeight?"Opcja_3 Opcja_3 Opcja_3 Opcja_3 Opcja_3 Opcja_3":"Opcja_3",Class:(n.useRightLabel?"RightLabel":"")+(n.useLabelHeight?" MultilineLabel":""),Location:i("10,190,,104,26,,130",n.useLabelHeight),Name:"_Radio_22",Type:"Field"})),n.addCheckBox&&(t.Elements[0].Elements.push({CaptionHtml:"Zaznaczony",Location:i("10,190,,38,26,,130"),Name:"_Check_20",Type:"Field"}),t.Elements[0].Elements.push({CaptionHtml:n.useLabelHeight?"Odznaczony Odznaczony Odznaczony Odznaczony Odznaczony Odznaczony":"Odznaczony",Class:n.useLabelHeight?"MultilineLabel":"",Location:i("10,190,,71,26,,130",n.useLabelHeight),Name:"_Check_21",Type:"Field"})),n.addDate&&t.Elements[0].Elements.push({CaptionHtml:"Aktualny",Location:i("10,300,,38,26,,130",n.useLabelHeight),Name:"_Date_01",Type:"Field"}),n.addFromTo&&t.Elements[0].Elements.push({CaptionHtml:"Okres",Location:i("10,300,,38,26,,130",n.useLabelHeight),Name:"_FromTo_01",Type:"Field"}),n.addTime&&t.Elements[0].Elements.push({CaptionHtml:"Czas",Location:i("10,300,,38,26,,130",n.useLabelHeight),Name:"_Time_01",Type:"Field"}),n.addLookup&&t.Elements[0].Elements.push({CaptionHtml:"Lookup",Location:i("10,300,,38,26,,130",n.useLabelHeight),Name:"_Lookup_01",Type:"Field"}),n.addRating&&t.Elements[0].Elements.push({CaptionHtml:"Rating",Location:i("10,300,,38,26,,130",n.useLabelHeight),Name:"_Rating_01",Type:"Field"}),n.addEmail&&t.Elements[0].Elements.push({CaptionHtml:"Email",Location:i("10,300,,38,26,,130",n.useLabelHeight),EditorType:"Email",Name:"_Email_01",Type:"Field"}),n.addHyperlink&&t.Elements[0].Elements.push({CaptionHtml:"Hyperlink",Location:i("10,300,,38,26,,130",n.useLabelHeight),EditorType:"Hyperlink",Name:"_Hyperlink_01",Type:"Field"}),n.addSkype&&t.Elements[0].Elements.push({CaptionHtml:"Skype",Location:i("10,300,,38,26,,130",n.useLabelHeight),EditorType:"Skype",Name:"_Skype_01",Type:"Field"}),n.addPhone&&t.Elements[0].Elements.push({CaptionHtml:"Phone",Location:i("10,300,,38,26,,130",n.useLabelHeight),EditorType:"Phone",Name:"_Phone_01",Type:"Field"}),n.addSignature&&t.Elements[0].Elements.push({CaptionHtml:"Signature",Location:i("10,500,,38,130,,130",n.useLabelHeight),EditorType:"Signature",Name:"_Signature_01",Type:"Field"}),n.addKeyboard&&t.Elements[0].Elements.push({Name:"_Keyboard_01",Type:"Keyboard"}),t},n.initDataResponse=function(n,t){var i={WindowHandle:"wnd1",Properties:[]};return t.addRadioButton&&(i.Properties.push({EditValue:"1",EditorType:"Radio",Name:"_Radio_20"}),i.Properties.push({EditValue:"0",EditorType:"Radio",Name:"_Radio_21"}),i.Properties.push({EditValue:"0",EditorType:"Radio",Name:"_Radio_22"})),t.addCheckBox&&(i.Properties.push({EditValue:"true",EditorType:"CheckBox",Name:"_Check_20"}),i.Properties.push({EditValue:"false",EditorType:"CheckBox",Name:"_Check_21"})),t.addTime&&i.Properties.push({EditValue:"12:00",EditorType:"Time",Name:"_Time_01"}),t.addDate&&i.Properties.push({EditValue:Object(r.getToday)(),EditorType:"Date",Name:"_Date_01"}),t.addFromTo&&i.Properties.push({EditValue:Object(r.getToday)(!0),EditorType:"FromTo",Name:"_FromTo_01"}),t.addLookup&&i.Properties.push({EditValue:"",EditorType:"Lookup",Name:"_Lookup_01"}),t.addRating&&i.Properties.push({EditValue:"3",EditorType:"Rating",Name:"_Rating_01"}),t.addInput&&i.Properties.push({EditValue:"abcdefgh",Name:"_Text_01"}),t.addMemo&&i.Properties.push({EditValue:"abcdefgh",Name:"_Memo_01"}),t.addEmail&&i.Properties.push({EditValue:"abc@defg",Name:"_Email_01"}),t.addHyperlink&&i.Properties.push({EditValue:"www.Soneta.pl",Name:"_Hyperlink_01"}),t.addSkype&&i.Properties.push({EditValue:"test$skype",Name:"_Skype_01"}),t.addPhone&&i.Properties.push({EditValue:"12 123-45-56",Name:"_Phone_01"}),t.addSignature&&i.Properties.push({EditValue:"",Name:"_Signature_01"}),t.addKeyboard&&i.Properties.push({Name:"_Keyboard_01"}),i},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(){}return n.initDataFormElement=function(){return{UID:"wnd1",Class:"MainPage",Elapsed:63,Mode:"Folder",Name:"FolderMenuList",Type:"Row",ViewType:"Folder",Location:"5,984,,5,,5,984,640",Elements:[{Type:"Group",Name:"group_0",Class:"MainGroup",Location:"5,320,,5,,5,",Elements:[{CaptionHtml:"Terminarz",Class:"MainCommand",DescriptionHtml:"Zadania do wykonania.",Icon:"kalendarz_dzien",Location:"10,300,,40,40,,",Name:"folder_0",Type:"Command"},{CaptionHtml:"Ewidencja dokument&#243;w",Class:"MainCommand",DescriptionHtml:"Ewidencjonowanie dokument&#243;w, ewidencja i deklaracja VAT, zestawienia",Icon:"szuflada",Location:"10,300,,90,40,,",Name:"folder_1",Type:"Command"},{CaptionHtml:"Ewidencja Środk&#243;w Pieniężnych",Class:"MainCommand",DescriptionHtml:"Finanse firmy. Należności i zobowiązania, operacje kasowe, rozliczenia transakcji, ...",Icon:"monety",Location:"10,300,,140,40,,",Name:"folder_2",Type:"Command"},{CaptionHtml:"Kadry i płace",Class:"MainCommand",DescriptionHtml:"Dane kadrowe i płacowe pracownik&#243;w. Pracownicy, listy płac, wypłaty, ...",Icon:"osoby",Location:"10,300,,190,40,,",Name:"folder_3",Type:"Command"},{CaptionHtml:"Księgowość",Class:"MainCommand",DescriptionHtml:"Dziennik, plan kont, zestawienia księgowe, deklaracje dochodowe",Icon:"kalkulator",Location:"10,300,,240,40,,",Name:"folder_4",Type:"Command"}]},{Type:"Group",Name:"group_1",Class:"MainGroup",Location:"337,320,,5,,5,",Elements:[{CaptionHtml:"Kontrahenci i urzędy",Class:"MainCommand",DescriptionHtml:"Listy kontrahent&#243;w, bank&#243;w, urzed&#243;w celnych i skarbowych",Icon:"dom_osoba",Location:"10,300,,40,40,,",Name:"folder_12",Type:"Command"},{CaptionHtml:"Poczta",Class:"MainCommand",DescriptionHtml:"Poczta",Icon:"koperta",Location:"10,300,,90,40,,",Name:"folder_13",Type:"Command"},{CaptionHtml:"CRM",Class:"MainCommand",DescriptionHtml:"Zadania i zdarzenia, Projekty, Kampanie, Korespondencja, Zasoby",Icon:"crm",Location:"10,300,,140,40,,",Name:"folder_14",Type:"Command"},{CaptionHtml:"Zlecenia serwisowe",Class:"MainCommand",DescriptionHtml:"Listy zleceń serwisowych, urządzeń, planowanych przegląd&#243;w",Icon:"narzedzia",Location:"10,300,,190,40,,",Name:"folder_15",Type:"Command"}]}]}},Object.defineProperty(n,"initDataResponse",{get:function(){return{Address:"Folder",CaptionHtml:"Folder/Group/Command Test",Parents:[],LiveCounter:1,WindowHandle:"wnd1"}},enumerable:!1,configurable:!0}),n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(){}return n.initDataFormElement=function(){return{UID:"wnd1",Mode:"Folder",Name:"_Stack",Type:"Stack",ViewType:"Folder",Location:"5,1467,,5,,80,984,340",Elements:[{Info:"Gantt",Location:"0,1427,,30,,80,984,340",Name:"_Gantt",Type:"Gantt",CaptionHtml:"Diagram Gantta",Elements:[{Type:"Field",Name:"taskId",Location:",100,,,,,",CaptionHtml:"ID"},{Type:"Field",Name:"taskName",Location:",250,,,,,",CaptionHtml:"Zadanie"},{Type:"Field",Name:"startDate",Location:",170,,,,,",CaptionHtml:"Data rozpoczęcia"},{Type:"Field",Name:"duration",Location:",150,,,,,",CaptionHtml:"Czas trwania"},{Type:"Field",Name:"progress",Location:",150,,,,,",CaptionHtml:"Postęp [%]"},{Type:"Field",Name:"resources",Location:",180,,,,,",CaptionHtml:"Zasoby"},{Type:"Field",Name:"dependency",Location:",150,,,,,",CaptionHtml:"Zależności"}]}]}},n.initDataResponse=function(){return{WindowHandle:"wnd1",Lists:[{CaptionHtml:"Diagram Gantta",Appearance:[{Target:"4/2,7/2,14/3",BackColor:"#9AE5E5"},{Target:"4/3,7/3,14/4",ForeColor:"#93006a",FontStyle:"bold"},{Target:"2,5,8,23",BackColor:"#de54cc",ForeColor:"#ffff85"}],Data:[["12","2019-04-02","2019-04-03",,,"Inicjalizacja projektu",,,,,,,,],["4","2019-04-02T10:00:00","2019-04-02T12:30:00",,"60","Działania wstępne",,"1;2","2019-04-02T10:00:00","2019-04-02T12:30:00","12",,],["3","2019-04-02T12:30:00","2019-04-02T13:30:00",,"30","Działania następujące","4:3","3","2019-04-02T12:30:00","2019-04-02T13:30:00",,"#de54cc"],["2","2019-04-02T12:30:00","2019-04-02T14:00:00",,"0","Działania końcowe","4:3","4;2","2019-04-02T12:30:00","2019-04-02T14:00:00","12",,],["5","2019-04-02","2019-04-03",,"0","Realizacja projektu",,,,,,,],["6","2019-04-02T14:30:00","2019-04-02T16:00:00",,"88%","Bardzo ważne pierwsze zadanie",,"5;6;1","2019-04-02T14:30:00","2019-04-02T16:00:00","5",,],["7","2019-04-02T15:00:00","2019-04-02T18:00:00",,"0","Drugie zadanie","6:4;8:4",,"2019-04-02T15:00:00","2019-04-02T18:00:00","5",,],["8","2019-04-02T18:00:00","2019-04-03T10:00:00","false","0","Zadanie kolejne","9;7","2;4","2019-04-02T18:00:00","2019-04-03T10:00:00","5",,],["9","2019-04-03T10:00:00","2019-04-03T15:00:00","true","0","Zakończenie działań wstępnych","8:4","3","2019-04-03T10:00:00","2019-04-03T15:00:00","5",,]],EndArchived:!0,Focused:3,Name:"_Gantt",Period:"2019-04-02T09:30:42|2019-04-03T16:00:00",Resources:[["1","Jacek Kowal"],["2","Andrzej Nowak"],["3","Teresa Waran"],["4","Ryszard Tarpan"],["5","Halina Rant"],["6","Zofia Czapla"],["7","Mariola Kolaska"]],SelectedCount:1,SelectedPeriod:"2019-04-02T09:50:30|2019-04-03T16:31:30|1",Start:0,View:"0,30",DurationUnit:"day"}]}},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(2),u=function(){function n(){}return n.initDataFormElement=function(t){var s={UID:"wnd1",Elapsed:63,Mode:"Folder",Name:"_Stack",Type:"Stack",ViewType:"Folder",Location:"5,984,,60,,80,984,640",Elements:[{Name:"List",Type:"Grid",Class:t.disableSelection?"DisableSelection":"",Location:"5,,45,149,,5,",Elements:[{Type:"Field",Name:"column0",Location:"0,100,,0,32,,"},{Type:"Field",Name:"column1",Class:"SmartOpen",Location:"100,300,,0,32,,"},{Type:"Field",Name:"column2",Location:"400,85,,0,32,,"},{Type:"Field",Name:"column3",Location:"485,200,,0,32,,"},{Type:"Field",Name:"column4",Location:"685,80,,0,32,,"},{Type:"Field",Name:"column5",Location:"765,100,,0,32,,"},{Type:"Field",Name:"column6",Location:"865,100,,0,32,,"},{Type:"Field",Name:"column7",Location:"965,100,,0,32,,"},{Type:"Field",Name:"column8",Location:"1065,52,,0,32,,"}]}]},i,f,h,u,c,e,l,o,a,v,y;if(t.addGroupPanel&&s.Elements.push({Type:"Group",Name:"_Group",Class:"Panel",Location:",40,5,149,,5,",Elements:[{Type:"Command",Name:"List_Flt",Class:"PanelItem Special",Icon:"szukaj",Location:"0,66,,10,40,,"},{Type:"Command",Name:"List_New",Class:"PanelItem Important",Icon:"dodaj",CaptionHtml:"Dodaj",Location:"0,66,,52,60,,"},{Type:"Command",Name:"List_Update",Class:"PanelItem Important",Icon:"aktualizuj",CaptionHtml:"Aktualizuj",Location:"0,66,,114,60,,"},{Type:"Command",Name:"List_Open",Class:"PanelItem Important",Icon:"otworz",CaptionHtml:"Otwórz",Location:"0,66,,176,60,,"},{Type:"Command",Name:"List_Remove",Class:"PanelItem Important",Icon:"usun",CaptionHtml:"Usuń",Location:"0,66,,238,60,,"}]}),i=r.a.find(s.Elements,function(n){return"Grid"===n.Type}),t.frozenLeftColumns||(t.frozenLeftColumns=0),t.frozenRightColumns||(t.frozenRightColumns=0),t.frozenLeftColumns>0||t.frozenRightColumns>0)for(f=0,h=i.Elements;f<h.length;f++)u=h[f],c=i.Elements.indexOf(u),(c<t.frozenLeftColumns||t.frozenRightColumns>0&&c>=i.Elements.length-t.frozenRightColumns)&&n.addClass(u,"Frozen");if(t.addImageColumn)for((u=i.Elements[0]).EditorType="Image",n.addClass(u,"ImageEdit"),e=0,l=i.Elements;e<l.length;e++)o=l[e],o.Location&&(a=o.Location.split(","),a[4]="100",o.Location=a.join(","));return t.addCheckBoxColumn&&((u=i.Elements[i.Elements.length-1]).EditorType="CheckBox"),t.addTextRightColumn&&((u=i.Elements[3]).EditorType="TextRight"),t.commonHeader&&(v=i.Elements[4],y=i.Elements[5],v.CaptionHtml="Title~"+v.Name,y.CaptionHtml="Title~"+y.Name),s},n.initDataResponse=function(t,i){var u=t.Elements[0],f=r.a.find(u.Elements,function(n){return"CheckBox"===n.EditorType}),e=r.a.find(u.Elements,function(n){return"Image"===n.EditorType});return i.columnCount=u.Elements.length,i.checkColumnIdx=null!=f?u.Elements.indexOf(f):-1,i.imageColumnIdx=null!=e?u.Elements.indexOf(e):-1,{WindowHandle:"wnd1",Lists:[{Name:"List",EndArchived:!0,Start:0,Data:n.getDataForGrid(i),Groups:n.getGroupsForGrid(i),OrderBy:"+column2,+column3",Focused:1}]}},Object.defineProperty(n,"dataFormElement",{get:function(){return{UID:"wnd1",Mode:"Folder",Name:"List",Type:"Grid",Class:"DisableSelection",Location:"5,,71,149,,70,",Elements:[{Type:"Field",Name:"column0",Class:"Frozen",Location:"0,300,,0,32,,"},{Type:"Field",Name:"column1",Location:"300,200,,0,32,,"},{Type:"Field",Name:"column2",EditorType:"TextRight",Location:"500,85,,0,32,,"},{Type:"Field",Name:"column3",CaptionHtml:"Stan~Stanowisko",Location:"585,200,,0,32,,"},{Type:"Field",Name:"column4",CaptionHtml:"Stan~Etat",Location:"785,80,,0,32,,"},{Type:"Field",Name:"column5",Location:"865,100,,0,32,,"},{Type:"Field",Name:"column6",Location:"965,100,,0,32,,"},{Type:"Field",Name:"column7",Class:"Frozen",Location:"1065,100,,0,32,,"},{Type:"Field",Name:"column8",Class:"Frozen",EditorType:"CheckBox",Location:"1165,52,,0,32,,"}]}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"dataResponse",{get:function(){return{WindowHandle:"wnd1",CaptionHtml:"Test grida",Lists:[{Name:"List",EndArchived:!0,Start:0,Appearance:[{Target:"7,8",BackColor:"#00FF00",ForeColor:"#FFC080"}],Data:[["1","ANDRZEJEWSKI","PAWEŁ","006","Starszy mechanik","1/1"],["2","BEDNAREK","DAMIAN","007","Starszy mechanik","1/1"],["3","BUJAK","DOROTA","008","St.Referent d/s kadr","1/1"],["4","STRZELECKI","ARTUR","009","Kierownik zmiany","1/1"],["5","PRUDZIENICA","MIECZYSŁAW","013","Gł&#243;wny Księgowy","1/1"],["6","BŁĄD","IRENA","016","Specjalista d/s sprzedaży","1/1"],["7","LORENC","ZBIGNIEW","017","Koordynator salonu","1/1"],["8","WOJCIECHOWSKA","KATARZYNA","019","Specjalista d/s sprzedaży","1/1"],["9","BRANDT","JAN","020","Mechanik poj.sam","1/1"],["10","GWIAZDOWSKI","MAREK","025","Mechanik poj.sam.","1/1"]],Focused:1}]}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"dataResponseUpdate",{get:function(){return{WindowHandle:"wnd1",Lists:[{Name:"List",EndArchived:!0,Start:1,Data:[["5","STOLARCZYK","PAWEŁ"],["6","KASZA","DAMIAN"],["7","ZDUNEK","DOROTA"],["8","MICHAŁOWSKI","ARTUR"]],Focused:1}]}},enumerable:!1,configurable:!0}),n.addClass=function(n,t){n.Class||(n.Class="");n.Class+=(""!==n.Class?" ":"")+t},n.getDataForGrid=function(t){for(var i=[],r=0;r<t.rowCount;r++)i.push(n.getRowDataForGrid((r+1).toString(),t));return t.hasSummaryRow&&i.push(n.getRowDataForGrid("$sum",t)),t.hasFilterRow&&i.push(n.getRowDataForGrid("-1",t)),i},n.getGroupsForGrid=function(n){if(!n.addFeatureBar)return[];var t=[];return t.push(["1","","Root","Wszystko"]),t.push(["2","s","GroupExp","Asortyment"]),t.push(["4","","ItemColl","Narciarstwo"]),t.push(["10","","Item","Odzież"]),t.push(["11","","Item","Rowery"]),t.push(["12","","Item","Sporty wodne"]),t.push(["13","","Item","Tenis"]),t.push(["14","","ItemColl","Turystyka"]),t.push(["17","","Item","Usługi"]),t.push(["18","","Item","Wrotki i łyżwy"]),t.push(["19","","Simple","brak wartości"]),t.push(["3","s","GroupExp","Producent"]),t.push(["20","","Item","Olimpia"]),t.push(["21","","Item","Salomon"]),t.push(["22","","Item","Scout"]),t.push(["23","","Item","SuperTrek"]),t.push(["24","","Item","Tyrolia"]),t.push(["25","","Simple","brak wartości"]),t},n.getRowDataForGrid=function(t,i){var r=[],u;for(r.push(t.toString()),u=0;u<i.columnCount;u++)i.hasSummaryRow||i.hasFilterRow||u!==i.imageColumnIdx?i.hasSummaryRow||i.hasFilterRow||u!==i.checkColumnIdx?i.hasSummaryRow||i.hasFilterRow||0!==u?i.hasSummaryRow?r.push(n.createRandomString(!0)):r.push(n.createRandomString()):r.push(t):r.push("True"):r.push("Res/nop_159_88");return r},n.createRandomString=function(n){void 0===n&&(n=!1);for(var t="",i=n?"123456789":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;r<5;r++)t+=i.charAt(Math.floor(Math.random()*i.length));return t},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(){}return Object.defineProperty(n,"dataFormElement",{get:function(){return{UID:"wnd1",Mode:"Folder",Type:"Label",Name:"label1",CaptionHtml:"ąćęłńóśżź"}},enumerable:!1,configurable:!0}),Object.defineProperty(n,"dataResponse",{get:function(){return{WindowHandle:"wnd1",CaptionHtml:"Test Base64"}},enumerable:!1,configurable:!0}),n}()},function(n,t,i){"use strict";var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.test_Command_unverified=function(){this.form(r.CommandData.dataFormElementUnverified);this.home(r.CommandData.dataResponse)},t.prototype.test_Command_succeeded=function(){this.form(r.CommandData.dataFormElementSucceeded);this.home(r.CommandData.dataResponse).check(function(){r.Assert.isTrue(!0)})},t.prototype.test_Command_suspended=function(){this.form(r.CommandData.dataFormElementSuspend);this.home(r.CommandData.dataResponse).check(function(){r.Assert.isTrue(!0)});this.next(function(){})},t.prototype.test_Command_failed=function(){this.form(r.CommandData.dataFormElementFailed);this.home(r.CommandData.dataResponse).check(function(){r.Assert.isTrue(!1)})},t.prototype.test_Command_other=function(){this.form({UID:"form1",Type:"Stack",Mode:"Folder",Elements:[{Type:"Command",Name:"cmd1",Class:"MainCommand",CaptionHtml:"Ewidencja dokument&#243;w",Icon:"szuflada"}]});this.form({UID:"form2",Mode:"Folder",Type:"Stack",Elements:[{Type:"Command",Class:"MainCommand",CaptionHtml:"Kolejny przycisk",Icon:"osoby"},{Type:"Command",Class:"MainCommand",CaptionHtml:"I jeszcze inny",Icon:"zus"}]});this.home({WindowHandle:"wnd1",CaptionHtml:"Inny test przycisku",Elements:[{UID:"form1"}]});this.request({Name:"cmd1",Action:"click "}).response({WindowHandle:"wnd2",CaptionHtml:"Kolejna strona",Elements:[{UID:"form2"}]})},t}(r.TestBase);r.TestBase.registerMobile(e)},function(n,t,i){"use strict";var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.test_Dictionary=function(){var n=this;this.form({UID:"wnd1",Mode:"Folder",Name:"fld1",Type:"Field",CaptionHtml:"Tytuł"});this.home({WindowHandle:"wnd1",CaptionHtml:"Firma",Properties:[{Name:"fld1",EditValue:"Firma",EditorType:"Dic"}]}).check(function(){var t=n.getInputValue("fld1");r.Assert.areEqual("Firma",t)});this.next(function(){n.updateControlValue("fld1","d",!0)}).requestExpected({Name:"fld1",Action:"lookuplist",EditValue:"d"}).response({WindowHandle:"wnd1",Lists:[{Name:"fld1",Data:[["Dowolny"],["Dodatni"],["Dodatni i usługi"]]}],Properties:[{Name:"fld1",SelectionLength:6,SelectionStart:1,SelectionText:"Dowolny"}]}).check(function(){r.Assert.areEqual("Dowolny",n.getInputValue("fld1"))});this.next(function(){}).requestExpected({Name:"fld1",Action:"lookupform"}).response({WindowHandle:"wnd1",Lists:[{Name:"fld1",Data:[["Dowolny"],["Dodatni"],["Dodatni i usługi"],["Zerowy"],["Niezerowy"],["Ujemny"]]}],Properties:[{Name:"fld1",SelectionLength:7,SelectionStart:0,SelectionText:"Dowolny"}]}).check(function(){r.Assert.areEqual("Dowolny",n.getInputValue("fld1"))})},t}(r.TestBase);r.TestBase.registerMobile(e)},function(n,t,i){"use strict";var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.test_Field=function(){var n=this;this.form({UID:"wnd1",Mode:"Folder",Name:"fld1",Type:"Field",CaptionHtml:"Tytuł"});this.home({WindowHandle:"wnd1",CaptionHtml:"Firma",Properties:[{Name:"fld1",EditValue:"Witaj"}]}).check(function(){var t=n.getInputValue("fld1");r.Assert.areEqual("Witaj",t)});this.next(function(){n.updateControlValue("fld1","Nowa wartosc",!0)}).requestExpected({Name:"fld1",EditValue:"Nowa wartosc"}).response({WindowHandle:"wnd1",Properties:[{Name:"fld1",EditValue:"Test skończony"}]}).check(function(){var t=n.getInputValue("fld1");r.Assert.areEqual("Test skończony",t)})},t}(r.TestBase);r.TestBase.registerMobile(e)},function(n,t,i){"use strict";var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.test_Grid=function(){var n=r.GridData.dataFormElement,t=r.GridData.initDataResponse(n,{rowCount:50});this.form(n);this.home(t).check(function(){var i=0,n=document.getElementsByClassName("grid-row");0!==n.length&&(i=n[0].getElementsByClassName("gc-check").length);r.Assert.areEqual(t.Lists[0].Data.length,n.length);r.Assert.areEqual(i,1,"Brak kolumny Checkbox")})},t.prototype.test_Grid_z_kolumna_image=function(){var n=r.GridData.dataFormElement,t=r.GridData.initDataResponse(n,{disableSelection:!1,addImageColumn:!0,rowCount:50});this.form(n);this.home(t).check(function(){r.Assert.areEqual(t.Lists[0].Data.length,document.getElementsByClassName("grid-row").length)}).check(function(){})},t.prototype.test_Grid_doczytywanie=function(){var n=this,t=r.GridData.dataResponse;t.Lists[0].EndArchived=!1;this.form(r.GridData.dataFormElement);this.home(t);this.next(function(){n.fireEvent("click",n.getHtmlControlByClassName("grid-addmore-row"),"MouseEvent",!0)}).requestExpected({Name:"List",EditValue:"4",Action:"next"}).response(r.GridData.dataResponseUpdate).check(function(){r.Assert.areEqual(8,document.getElementsByClassName("grid-row").length)})},t}(r.TestBase);r.TestBase.registerMobile(e)},function(n,t,i){"use strict";var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.test_HeaderBar_folder=function(){this.form({UID:"wnd1",Mode:"Folder",Type:"Stack",Name:"Stack1",Elements:[{Type:"Bar",Name:"HeaderBar",Elements:[{Type:"Command",Name:"search-command",Icon:"szukaj"},{Type:"Command",Name:"ActionsCommand",Icon:"narzedzia"},{Type:"Command",Name:"MenuCommand",Icon:"wiecej"}]},{Type:"Bar",Name:"NavigationBar",Elements:[{Type:"Group",Name:"NavigationHeaderGroup",Elements:[{Type:"Label",Name:"NavigationLoginNameLabel",CaptionHtml:"Administrator"},{Type:"Label",Name:"NavigationDatabaseNameLabel",CaptionHtml:"Demo"},{Type:"Command",Name:"logout-command",CaptionHtml:"Wyloguj",Icon:"wylacz"}]},{Type:"Group",Name:"NavigationFoldersGroup",Elements:[{Type:"Command",Name:"folder_0",CaptionHtml:"Kadry i płace",Icon:"osoby"},{Type:"Command",Name:"folder_1",CaptionHtml:"Firma",Icon:"globus"}]},{Type:"Group",Name:"NavigationSubFoldersGroup",CaptionHtml:"",Elements:[{Type:"Command",Name:"folder_2",CaptionHtml:"Niezatrudnieni",Icon:"osoba"},{Type:"Command",Name:"folder_3",CaptionHtml:"Etatowi",Icon:"osoba"}]},{Type:"Group",Name:"NavigationShortcutsGroup",CaptionHtml:"",Elements:[{Type:"Command",Name:"folder_4",CaptionHtml:"Ulubione",Icon:"gwiazda"},{Type:"Command",Name:"folder_5",CaptionHtml:"Powiadomienia",Icon:"dzwonek"},{Type:"Command",Name:"settings-command",CaptionHtml:"Ustawienia",Icon:"ustawienia"}]}]},{Type:"Bar",Name:"MenuBar",Elements:[{Type:"Group",Name:"g1",Elements:[{Type:"Command",Name:"action_0",CaptionHtml:"Usuń",Icon:"usun"},{Type:"Command",Name:"action_1",CaptionHtml:"Aktualizuj",Icon:"aktualizuj"}]},{Type:"Group",Name:"g2",Elements:[{Type:"Command",Name:"action_2",CaptionHtml:"Sumuj"},{Type:"Command",Name:"action_3",CaptionHtml:"Zaznacz wszystkie"},{Type:"Command",Name:"action_4",CaptionHtml:"Odśwież",Icon:"odswiez"}]},{Type:"Group",Name:"g3",Elements:[{Type:"Command",Name:"action_5",CaptionHtml:"Drukuj",Icon:"drukarka"}]},{Type:"Group",Name:"g4",Elements:[{Type:"Command",Name:"action_6",CaptionHtml:"Pomoc",Icon:"pomoc"}]}]},{Type:"Bar",Name:"FloatingBar",Elements:[{Type:"Command",Name:"cmd-dodaj",Icon:"plus"},{Type:"Command",Name:"ActionsCommand",Icon:"narzedzia"}]},{Type:"Grid",Name:"List",Elements:[{Type:"Field",Name:"column1",CaptionHtml:"Nazwisko"},{Type:"Field",Name:"column2",CaptionHtml:"Imie"}]}]});this.home({WindowHandle:"wnd1",CaptionHtml:"Test folderu z baaaaaardzo dłuuuuuugą naaaaazwą",Lists:[{Name:"List",EndArchived:!0,Start:0,Data:[["1","ANDRZEJEWSKI","PAWEŁ"],["2","BEDNAREK","DAMIAN"],["3","BUJAK","DOROTA"],["4","STRZELECKI","ARTUR"]],Focused:1}]}).check(function(){});this.next(function(){})},t.prototype.test_HeaderBar_form=function(){this.form({UID:"wnd1",Mode:"Form",Type:"Stack",Name:"Stack1",Elements:[{Type:"Bar",Name:"HeaderBar",Elements:[{Type:"Command",Name:"Save",Icon:"zapisz"},{Type:"Command",Name:"ActionsCommand",Icon:"narzedzia"},{Type:"Command",Name:"MenuCommand",Icon:"wiecej"}]},{Type:"Bar",Name:"MenuBar",Elements:[{Type:"Group",Name:"g1",Elements:[{Type:"Command",Name:"ApproveCommand",CaptionHtml:"Zatwierdź",Icon:"zatwierdz"},{Type:"Command",Name:"CancelCommand",CaptionHtml:"Zamknij",Icon:"anuluj"},{Type:"Command",Name:"List_Remove",CaptionHtml:"Usuń",Icon:"usun"},{Type:"Command",Name:"List_Open",CaptionHtml:"Otwórz",Icon:"otworz"},{Type:"Command",Name:"List_Update",CaptionHtml:"Aktualizuj",Icon:"aktualizuj"},{Type:"Command",Name:"PrintCommand",CaptionHtml:"Drukuj",Icon:"drukarka"},{Type:"Command",Name:"HelpCommand",CaptionHtml:"Pomoc",Icon:"pomoc"}]}]},{Type:"Page",Name:"Page1",CaptionHtml:"Ogólne",Elements:[{Type:"Field",Name:"f1_3",CaptionHtml:"Pierwsza zakładka pole 1"},{Type:"Label",Name:"l1",CaptionHtml:"Pierwsza zakładka linia 1"},{Type:"Label",Name:"l2",CaptionHtml:"Pierwsza zakładka linia 2"},{Type:"Label",Name:"l3",CaptionHtml:"Pierwsza zakładka linia 3"}]},{Type:"Page",Name:"Page2",CaptionHtml:"Dodatkowe",Elements:[{Type:"Group",Name:"g2",CaptionHtml:"Grupa pierwsza",Elements:[{Type:"Label",Name:"l2_1",CaptionHtml:"Druga zakładka linia 1"},{Type:"Label",Name:"l2_2",CaptionHtml:"Druga zakładka linia 2"},{Type:"Label",Name:"l2_3",CaptionHtml:"Druga zakładka linia 3"},{Type:"Field",Name:"f2_3",CaptionHtml:"Druga zakładka pole 1"}]}]},{Type:"Page",Name:"Page1_1",CaptionHtml:"Podgrupa 1/Opcja 1-1"},{Type:"Page",Name:"Page1_2",CaptionHtml:"Podgrupa 1/Opcja 1-2"},{Type:"Page",Name:"Page1_3",CaptionHtml:"Podgrupa 1/Opcja 1-3"},{Type:"Page",Name:"Page2_1",CaptionHtml:"Podgrupa 2/Opcja 2-1"},{Type:"Page",Name:"Page2_2",CaptionHtml:"Podgrupa 2/Opcja 2-2"},{Type:"Page",Name:"Page2_3",CaptionHtml:"Podgrupa 2/Opcja 2-3"},{Type:"Page",Name:"Page3_1",CaptionHtml:"Podgrupa 3/Opcja 3-1"},{Type:"Page",Name:"Page3_2",CaptionHtml:"Podgrupa 3/Opcja 3-2"},{Type:"Page",Name:"Page3_3",CaptionHtml:"Podgrupa 3/Opcja 3-3"}]});this.home({WindowHandle:"wnd1",CaptionHtml:"Test form"}).check(function(){});this.next(function(){}).requestExpected({Name:"Page2",Action:"click"}).response({WindowHandle:"wnd1",Properties:[{Name:"Page2",EditValue:"1"}]})},t}(u.TestBase);u.TestBase.registerMobile(e)},function(n,t,i){"use strict";var u,r=i(0),f=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.test_Indicator=function(){var n={UID:"wnd1",Mode:"Folder",Type:"Stack",Name:"_28",Location:"228,260",CaptionHtml:"BI",Elements:[{Type:"Indicator",Name:"_Indicator",Location:"170",CaptionHtml:"Caption",Icon:"dokument_kwota",Info:"Time",Unit:"Unit"}]},t={WindowHandle:"wnd1",CaptionHtml:"Test indicator",Properties:[{EditValue:"Value",Name:"_Indicator"}]};this.form(n);this.home(t).check(function(){var i=n.Elements.filter(function(n){return"Indicator"===n.Type}),c=i.length>0?t.Properties.filter(function(n){return n.Name===i[0].Name}):null,l=r.TestBase.getHtmlElementsByClassName("indicator"),u=r.TestBase.getHtmlElementsByClassName("ind-container",l[0]),a=r.TestBase.getHtmlElementsByClassName("ind-content",u[0]),tt=r.TestBase.getHtmlElementsByClassName("ind-icon",a[0]),f=r.TestBase.getHtmlElementsByClassName("ind-value",a[0]),e=r.TestBase.getHtmlElementsByClassName("ind-header",u[0]),it=r.TestBase.getHtmlElementsByClassName("ind-time-icon",e[0]),o=r.TestBase.getHtmlElementsByClassName("ind-time",e[0]),s=r.TestBase.getHtmlElementsByClassName("ind-unit",e[0]),v=r.TestBase.getHtmlElementsByClassName("ind-footer",u[0]),h=r.TestBase.getHtmlElementsByClassName("ind-caption",v[0]),y=c&&c.length>0?c[0].EditValue:null,p=f&&f.length>0?f[0].innerHTML:null,w=i&&i.length>0?i[0].Info:null,b=o&&o.length>0?o[0].innerHTML:null,k=i&&i.length>0?i[0].Unit:null,d=s&&s.length>0?s[0].innerHTML:null,g=i&&i.length>0?i[0].CaptionHtml:null,nt=h&&h.length>0?h[0].innerHTML:null;r.Assert.areEqual(i.length,l.length,"Nieprawidłowa liczba powstałych elementów typu Indicator. Jest: "+l.length+", powinno być: "+i.length);r.Assert.isTrue(1===u.length,"Brak elementu dom ind-container");r.Assert.isTrue(1===a.length,"Brak elementu dom ind-content");r.Assert.isTrue(1===f.length,"Brak elementu dom ind-value");r.Assert.isTrue(1===tt.length,"Brak elementu dom ind-icon");r.Assert.isTrue(1===e.length,"Brak elementu dom ind-header");r.Assert.isTrue(1===it.length,"Brak elementu dom ind-time-icon");r.Assert.isTrue(1===o.length,"Brak elementu dom ind-time");r.Assert.isTrue(1===s.length,"Brak elementu dom ind-unit");r.Assert.isTrue(1===v.length,"Brak elementu dom ind-footer");r.Assert.isTrue(1===h.length,"Brak elementu dom ind-caption");r.Assert.areEqual(p,y,"Niepoprawna wartość Value. Jest: "+p+", powinno być: "+y);r.Assert.areEqual(b,w,"Niepoprawna wartość Time. Jest: "+b+", powinno być: "+w);r.Assert.areEqual(d,k,"Niepoprawna wartość Time. Jest: "+d+", powinno być: "+k);r.Assert.areEqual(nt,g,"Niepoprawna wartość Caption. Jest: "+nt+", powinno być: "+g)})},t}(r.TestBase);r.TestBase.registerMobile(e)},function(n,t,i){"use strict";var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return f(t,n),t.prototype.test_Lookup=function(){var n=this;this.form({UID:"wnd1",Mode:"Folder",Name:"fld1",Type:"Field",CaptionHtml:"Tytuł"});this.home({WindowHandle:"wnd1",CaptionHtml:"Dostawca",Properties:[{Name:"fld1",EditValue:"Abc",DisplayHtml:"ABC Sp. z o. o. (Abc)",EditorType:"Lookup"}]}).check(function(){var t=n.getInputValue("fld1");u.Assert.areEqual("ABC Sp. z o. o. (Abc)",t)});this.next(function(){n.updateControlValue("fld1","a",!0)}).requestExpected({Name:"fld1",Action:"lookuplist",EditValue:"a"}).response({WindowHandle:"wnd1",Lists:[{Name:"fld1",Data:[["2","ABC Sp. z o. o. (Abc)List"],["5","ASPEN GmbH (Aspen)List"],["13","Agencja reklamowa KOBRA Hektor Janiak i wspólnicy (Kobra)List"]]}],Properties:[{Name:"fld1",SelectionLength:2,SelectionStart:1,SelectionText:"Abc"}]}).check(function(){});this.next(function(){}).requestExpected({Name:"fld1",Action:"setid",EditValue:"5"}).response({WindowHandle:"wnd1",Properties:[{Name:"fld1",EditValue:"Aspen",DisplayHtml:"ASPEN GmbH (Aspen)"}]}).check(function(){})},t}(u.TestBase);u.TestBase.registerMobile(e)},function(n,t,i){"use strict";var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.verifierTitle="Treść weryfikatora",t.verifierId="ver1",t.verifierIcon="",t.verifierType="",t}return f(t,n),t.prototype.test_Verifier_Error=function(){this.verify("VerifierError","Error","blad")},t.prototype.test_Verifier_Warning=function(){this.verify("VerifierWarning","Warning","ostrzezenie")},t.prototype.test_Verifier_Info=function(){this.verify("VerifierInfo","Information","informacja")},t.prototype.test_Verifier_zmiana_wartosci_pola=function(){var n=this;this.form({UID:"wnd1",Mode:"Folder",Name:"fld1",Type:"Field",CaptionHtml:"Tytuł"});this.home({WindowHandle:"wnd1",CaptionHtml:"Test weryfikatora"});this.next(function(){n.updateControlValue("fld1","Nowa wartosc",!0)}).requestExpected({Name:"fld1",EditValue:"Nowa wartosc"}).response({WindowHandle:"wnd1",Properties:[{Name:"fld1",EditValue:"Poprawiona wartosc"}],Verifiers:[{Name:"ver1",FieldName:"fld1",DescriptionHtml:"Ma byc co innego",Type:"Error"}]}).check(function(){})},t.prototype.verify=function(n,t,i){var e=this,r="Test weryfikatora "+t,f="Treść weryfikatora "+t;this.form({UID:"wnd1",Mode:"Folder",Name:"fld1",Type:"Field",CaptionHtml:r});this.home({WindowHandle:"wnd1",CaptionHtml:r,Verifiers:[{Name:"ver1",FieldName:"fld1",DescriptionHtml:f,Type:t}]}).check(function(){var r=e.checkVerifier("ver1",t,f,i);u.Assert.isTrue(r,"Niepoprawny wynik testu "+n)})},t.prototype.checkVerifier=function(n,t,i,r){var u=this.getHtmlControl(n),f,e,o;return u?(f=u.getAttribute("class"),!f&&f.indexOf(t)<0)?!1:u.getElementsByClassName("title")[0]?(e=u.getElementsByClassName("icon")[0],!e)?!1:(o=e.getAttribute("data-icon"),!(!o||o!==r)&&!!u.getElementsByTagName("svg")):!1:!1},t}(u.TestBase);u.TestBase.registerMobile(e)},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(){}return n.changeImageSizeUrl=function(t,i,r){if(!t||t.indexOf(".")>0||t.indexOf("data:image")>=0)return t;0!=t.indexOf("/")&&(t="/"+t);var u=t.split("/");return u[u.length-1]=n.changeImageSize(u[u.length-1],i,r),u.join("/")},n.changeImageSize=function(n,t,i){var r=n.split("_"),u=parseInt(r[r.length-1]);return(!i||u>t)&&(r[r.length-1]=t.toString(),r[r.length-2]=t.toString()),r.join("_")},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(){}return n.tob64Tab=function(t){void 0===t&&(t=n.b64Chars);for(var r={},i=0,u=t.length;i<u;i++)r[t.charAt(i)]=i;return r},n.utob=function(t){return t.replace(n.regUtob,n.cbUtob)},n.btou=function(t){return t.replace(n.regBtou,n.cbBtou)},n.atob=function(t){return t.replace(/[\s\S]{1,4}/g,n.cbDecode)},n.btoa=function(t){return t.replace(/[\s\S]{1,3}/g,n.cbEncode)},n.cbUtob=function(n){var t;return n.length<2?(t=n.charCodeAt(0))<128?n:t<2048?String.fromCharCode(192|t>>>6)+String.fromCharCode(128|63&t):String.fromCharCode(224|t>>>12&15)+String.fromCharCode(128|t>>>6&63)+String.fromCharCode(128|63&t):(t=65536+1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320),String.fromCharCode(240|t>>>18&7)+String.fromCharCode(128|t>>>12&63)+String.fromCharCode(128|t>>>6&63)+String.fromCharCode(128|63&t))},n.cbBtou=function(n){switch(n.length){case 4:var t=((7&n.charCodeAt(0))<<18|(63&n.charCodeAt(1))<<12|(63&n.charCodeAt(2))<<6|63&n.charCodeAt(3))-65536;return String.fromCharCode(55296+(t>>>10))+String.fromCharCode(56320+(1023&t));case 3:return String.fromCharCode((15&n.charCodeAt(0))<<12|(63&n.charCodeAt(1))<<6|63&n.charCodeAt(2));default:return String.fromCharCode((31&n.charCodeAt(0))<<6|63&n.charCodeAt(1))}},n.cbEncode=function(t){var r=[0,2,1][t.length%3],i=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0);return[n.b64Chars.charAt(i>>>18),n.b64Chars.charAt(i>>>12&63),r>=2?"=":n.b64Chars.charAt(i>>>6&63),r>=1?"=":n.b64Chars.charAt(63&i)].join("")},n.cbDecode=function(t){var i=t.length,f=i%4,r=(i>0?n.b64Tab[t.charAt(0)]<<18:0)|(i>1?n.b64Tab[t.charAt(1)]<<12:0)|(i>2?n.b64Tab[t.charAt(2)]<<6:0)|(i>3?n.b64Tab[t.charAt(3)]:0),u=[String.fromCharCode(r>>>16),String.fromCharCode(r>>>8&255),String.fromCharCode(255&r)];return u.length-=[0,0,2,1][f],u.join("")},n.encode=function(t){return n.btoa(n.utob(t))},n.decode=function(t){var i=t.replace(/[-_]/g,function(n){return"-"===n?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"");return n.btou(n.atob(i))},n.regUtob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,n.regBtou=new RegExp("[À-ß][-¿]|[à-ï][-¿]{2}|[ð-÷][-¿]{3}","g"),n.b64Chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n.b64Tab=n.tob64Tab(),n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(){}return n.SVGHASH_NAME="svg_cx",n.SVGLANGUAGE_NAME="lng_cx",n.COOKIE_BUSINESS_NAME="business_cx",n.COOKIE_WINDOWHANDLE_NAME="windowHandle",n.COOKIE_GUID_NAME="guid",n.COOKIE_DEVICE_TYPE_NAME="deviceType",n.COOKIE_THEME_NAME="theme",n.COOKIE_THEME_DARK_MODE="darkMode",n.COOKIE_CURRENT_CULTURE="currentCulture",n.COOKIE_DEVICE_SIZE_WIDTH="deviceWidth",n.COOKIE_DEVICE_SIZE_HEIGHT="deviceHeight",n.COOKIE_LOGIN_NAME="login",n.COOKIE_DEBUG_NAME="DEBUG",n.COOKIE_TEST_NAME="TEST",n.COOKIE_INFO_NAME="cookieInfo",n.COOKIE_COMPANY_NAME="company",n.COOKIE_PROVIDER_NAME="provider_cx",n.COOKIE_AUTOPATH_NAME="autoPath",n.COOKIE_SETTINGS="settings",n.COOKIE_REMAINDERS="remainders",n.COOKIE_PLAY="play",n.GETSVG_ADDRESS="/Svg",n.LOGIN_ADDRESS="/LoginOperator",n.ISFILEREADY="/WindowJson/IsFileReady",n.RESET_ADDRESS="/Home/Reset",n.PRODUCT_INFO_ADDRESS="/Home/UnverifiedProductInfo",n.LOGOFF_ADDRESS="/LogOff",n.LOGIN_ADFS_ADDRESS="/LoginAdfs",n.LOGIN_IMPERSONATE_ADDRESS="/LoginImpersonate",n.DBSETTINGS="/DbSettings",n.STRINGS="/LanguageStrings",n.SVG="/SvgDefinitions",n.SVGDEFINITION_NAME="SvgDefinitions",n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(2),u=function(){function n(n){if(void 0===n&&(n=[]),this._keys=[],this._values=[],n)for(var t=0;t<n.length;t++)this._keys.push(n[t].key),this._values.push(n[t].value)}return n.prototype.add=function(n,t){this._keys.push(n);this._values.push(t)},n.prototype.remove=function(n){var t=this._keys.indexOf(n,0);t>0&&(this._keys.splice(t,1),this._values.splice(t,1))},Object.defineProperty(n.prototype,"keys",{get:function(){return this._keys},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"values",{get:function(){return this._values},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"length",{get:function(){return this._keys.length},enumerable:!1,configurable:!0}),n.prototype.get=function(n){if(!this.containsKey(n))return null;var t=this._keys.indexOf(n);return t>=0?this._values[t]:null},n.prototype.set=function(n,t){if(this.containsKey(n)){var i=this._keys.indexOf(n);i>=0&&(this._values[i]=t)}},n.prototype.containsKey=function(n){return this._keys&&this._keys.indexOf(n)>=0},n.prototype.isFirstKey=function(n){return this._keys&&0===this._keys.indexOf(n)},n.prototype.clear=function(){this._keys=[];this._values=[]},n.prototype.last=function(){var n=r.a.last(this._keys);return n?this.get(n):null},n.prototype.first=function(){var n=r.a.first(this._keys);return n?this.get(n):null},n.InitDictionaryNames=function(t){var r=new n,i;for(i in t)"number"==typeof t[i]&&r.add(t[i],i);return r},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(){}return n.setCookieItem=function(t,i,u){void 0===u&&(u=0);var f=t+"="+Object(r.encodeString)(i)+"; ";u&&(f+="expires="+n.setExpiration(u)+";path=/");n.clearCookieItem(t);document.cookie=f;n.cookieDictionary.add(t,i)},n.clearCookieItem=function(t){n.getCookieItem(t)&&n.setExpiration(-365);n.cookieDictionary.remove(t)},n.getCookieItem=function(t){var i="",r;return(n.cookieDictionary.containsKey(t)&&(i=n.cookieDictionary.get(t)),i)||(r=t.length+1,i=document.cookie.split(";").map(function(n){return n.trim()}).filter(function(n){return n.substring(0,r)===t+"="}).map(function(n){return decodeURIComponent(n.substring(r))})[0]||""),i},n.setExpiration=function(n){var t=new Date;return new Date(t.getTime()+864e5*n).toUTCString()},n.GetDeviceType=function(){return n.getCookieItem(r.Constants.COOKIE_DEVICE_TYPE_NAME)},n.SetDeviceType=function(t){n.setCookieItem(r.Constants.COOKIE_DEVICE_TYPE_NAME,t,365)},n.GetCurrentCulture=function(){return n.getCookieItem(r.Constants.COOKIE_CURRENT_CULTURE)},n.SetCurrentCulture=function(t){n.setCookieItem(r.Constants.COOKIE_CURRENT_CULTURE,t,365)},Object.defineProperty(n,"IsMobile",{get:function(){var t=n.GetDeviceType();return"MobileBrowser"===t||"MobileApp"===t},enumerable:!1,configurable:!0}),n.GetTheme=function(){return n.getCookieItem(r.Constants.COOKIE_THEME_NAME)},n.SetTheme=function(t){n.setCookieItem(r.Constants.COOKIE_THEME_NAME,t,365)},n.GetIsDarkMode=function(){return n.getCookieItem(r.Constants.COOKIE_THEME_DARK_MODE)},n.SetDarkMode=function(t){n.setCookieItem(r.Constants.COOKIE_THEME_DARK_MODE,t,365)},n.cookieDictionary=new r.DictionaryEx([]),n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(n){this.deviceType=n||"MobileBrowser";this.db=Object(r.GetValueFormNode)("db","db",!0)||"";this.guid=r.StorageHelper.GetClientUniqeId();var t=document.defaultView?document.defaultView.innerWidth:640,i=document.defaultView?document.defaultView.innerHeight:480;this.screenWidth=t;this.screenHeight=i;this.contentWidth=t;this.contentHeight=i}},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t,i){var r=n.call(this,i)||this;return r.db=t,r}return f(t,n),t.createCredentialContext=function(n,i){return new t(n,i)},t}(u.Credentials)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t,i,r){var u=n.call(this,r)||this;return u.db=t,u.token=i,u}return f(t,n),t.createCredentialContext=function(n,i,r){return new t(n,i,r)},t}(u.Credentials)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t,i,r){var u=n.call(this,r)||this;return u.db=t,u.handle=i,u}return f(t,n),t.createCredentialContext=function(n,i,r){return new t(n,i,r)},t}(u.Credentials)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(0),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t,i,r){var f=n.call(this,r)||this;return f.login=u.Base64.encode(t)+":"+u.Base64.encode(i),f}return f(t,n),t.createCredentialContext=function(n,i,r){return new t(n,i,r)},t}(u.Credentials)},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(){}return n.getName=function(n){var t=/function (.{1,})\(/.exec(n.constructor.toString());return t&&t.length>1?t[1]:""},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(n){if(void 0===n&&(n=[]),this._keys=[],this._values=[],n)for(var t=0;t<n.length;t++)this[n[t].key]=n[t].value,this._keys.push(n[t].key),this._values.push(n[t].value)}return n.prototype.add=function(n,t){this[n]=t;this._keys.push(n);this._values.push(t)},n.prototype.remove=function(n){var t=this._keys.indexOf(n,0);this._keys.splice(t,1);this._values.splice(t,1);delete this[n]},Object.defineProperty(n.prototype,"keys",{get:function(){return this._keys},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"values",{get:function(){return this._values},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"length",{get:function(){return this._keys?this._keys.length:0},enumerable:!1,configurable:!0}),n.prototype.getBuilder=function(n){if(!this.containsKey(n))return null;var t=this._keys.indexOf(n);return t>=0?this._values[t]:null},n.prototype.containsKey=function(n){return this._keys&&this._keys.indexOf(n)>=0},n.prototype.clear=function(){this._keys=[];this._values=[]},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(){}return n.createDomElement=function(n,t){var i=document.createElement(n);return i.setAttribute("id",t),document.body.appendChild(i),document.getElementById(t)},n.htmlToText=function(n){return n.replace(/(<([^>]+)>)/g,"").replace(/&nbsp;/g," ")},n.checkElementIsVisibleInTheViewport=function(n,t){var i=n.offsetTop,u=i+n.clientHeight,r=t.scrollTop,f=r+t.clientHeight;return u>r&&i<f},n}()},function(n,t,i){"use strict";var r,u,f,e,o,s;i.d(t,"b",function(){return r});i.d(t,"a",function(){return u});i.d(t,"c",function(){return f}),function(n){n[n.LocalStorage=0]="LocalStorage";n[n.SessionStorage=2]="SessionStorage"}(r||(r={})),function(n){n[n.FullBrowser=0]="FullBrowser";n[n.MobileBrowser=1]="MobileBrowser"}(u||(u={})),function(n){n[n.FullSvg=0]="FullSvg";n[n.SvgContent=2]="SvgContent"}(f||(f={})),function(n){n[n.Writing=0]="Writing";n[n.OpenContextMenu=1]="OpenContextMenu"}(e||(e={})),function(n){n[n.Slash=0]="Slash";n[n.Dash=1]="Dash"}(o||(o={})),function(n){n[n.FirstLast=0]="FirstLast";n[n.Middle=-1]="Middle"}(s||(s={}))},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(){this.listeners=[];this.registered=!1}return n.prototype.attachEvents=function(n){var t,i,r;if(!this.registered||n){for(t=0,i=this.listeners;t<i.length;t++)r=i[t],this.attachEvent(r);this.registered=!0}},n.prototype.detachEvents=function(n){var t,i,r;if(this.registered&&(!n||0!==this.listeners.length)){for(t=0,i=this.listeners;t<i.length;t++)r=i[t],this.detachEvent(r);this.listeners=[];this.registered=!1}},n.prototype.registerEventListener=function(n){this.listeners.push(n)},n.prototype.registerEventListeners=function(n){for(var t=0;t<n.length;t++)this.listeners.push(n[t])},n.prototype.attachEvent=function(n){if(n.domElement)if(n.passive){var t={passive:n.passive};n.domElement.addEventListener(n.type,n.handler,t)}else n.domElement.addEventListener(n.type,n.handler,!1)},n.prototype.detachEvent=function(n){n.domElement&&n.domElement.removeEventListener(n.type,n.handler,!1)},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(){}return n.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"==n?t:3&t|8).toString(16)})},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(){}return n.removeStorageItem=function(n,t){t||(t=r.StorageType.LocalStorage);t===r.StorageType.LocalStorage?delete localStorage[n]:delete sessionStorage[n]},n.setStorageItem=function(n,t,i){i||(i=r.StorageType.LocalStorage);i===r.StorageType.LocalStorage?localStorage.setItem(n,t):sessionStorage.setItem(n,t)},n.getStorageItem=function(n,t){return t||(t=r.StorageType.LocalStorage),t===r.StorageType.LocalStorage?localStorage.getItem(n):sessionStorage.getItem(n)},n.clearStorageItem=function(n,t){return t||(t=r.StorageType.LocalStorage),t===r.StorageType.LocalStorage?localStorage.removeItem(n):sessionStorage.removeItem(n)},n.GetSvgDefinitions=function(){return n.getStorageItem(r.Constants.SVGDEFINITION_NAME,r.StorageType.SessionStorage)},n.SetSvgDefinitions=function(t){n.setStorageItem(r.Constants.SVGDEFINITION_NAME,t,r.StorageType.SessionStorage)},n.GetSvgHash=function(){return n.getStorageItem(r.Constants.SVGHASH_NAME,r.StorageType.SessionStorage)},n.SetSvgHash=function(t){n.setStorageItem(r.Constants.SVGHASH_NAME,t,r.StorageType.SessionStorage)},n.GetLanguageHash=function(){return n.getStorageItem(r.Constants.SVGLANGUAGE_NAME,r.StorageType.SessionStorage)},n.SetLanguageHash=function(t){n.setStorageItem(r.Constants.SVGLANGUAGE_NAME,t,r.StorageType.SessionStorage)},n.GetBusinessContext=function(){return n.getStorageItem(r.Constants.COOKIE_BUSINESS_NAME,r.StorageType.SessionStorage)},n.SetBusinessContext=function(t){n.setStorageItem(r.Constants.COOKIE_BUSINESS_NAME,t,r.StorageType.SessionStorage)},n.ClearBusinessContext=function(){n.clearStorageItem(r.Constants.COOKIE_BUSINESS_NAME,r.StorageType.SessionStorage)},n.GetClientUniqeId=function(){var t=n.getStorageItem(r.Constants.COOKIE_GUID_NAME,r.StorageType.LocalStorage);return t||(t=r.Guid.newGuid(),n.SetClientUniqeId(t)),t},n.SetClientUniqeId=function(t){n.setStorageItem(r.Constants.COOKIE_GUID_NAME,t,r.StorageType.LocalStorage)},n.GetDeviceWidth=function(){var t=n.getStorageItem(r.Constants.COOKIE_DEVICE_SIZE_WIDTH,r.StorageType.SessionStorage);return t?parseInt(t):-1},n.SetDeviceWidth=function(t){n.setStorageItem(r.Constants.COOKIE_DEVICE_SIZE_WIDTH,t.toString(),r.StorageType.SessionStorage)},n.GetDeviceHeight=function(){var t=n.getStorageItem(r.Constants.COOKIE_DEVICE_SIZE_HEIGHT,r.StorageType.SessionStorage);return t?parseInt(t):-1},n.SetDeviceHeight=function(t){n.setStorageItem(r.Constants.COOKIE_DEVICE_SIZE_HEIGHT,t.toString(),r.StorageType.SessionStorage)},n.ClearDeviceSize=function(){n.clearStorageItem(r.Constants.COOKIE_DEVICE_SIZE_WIDTH,r.StorageType.SessionStorage);n.clearStorageItem(r.Constants.COOKIE_DEVICE_SIZE_HEIGHT,r.StorageType.SessionStorage)},n.GetRememberUser=function(){return n.getStorageItem(r.Constants.COOKIE_LOGIN_NAME,r.StorageType.LocalStorage)},n.SetRememberUser=function(t){n.setStorageItem(r.Constants.COOKIE_LOGIN_NAME,t,r.StorageType.LocalStorage)},n.RemoveLastWindowHandle=function(){return n.removeStorageItem(r.Constants.COOKIE_WINDOWHANDLE_NAME,r.StorageType.LocalStorage)},n.GetLastWindowHandle=function(){return n.getStorageItem(r.Constants.COOKIE_WINDOWHANDLE_NAME,r.StorageType.LocalStorage)},n.SetLastWindowHandle=function(t){n.setStorageItem(r.Constants.COOKIE_WINDOWHANDLE_NAME,t,r.StorageType.LocalStorage)},n.GetDebug=function(){var t=n.getStorageItem(r.Constants.COOKIE_DEBUG_NAME,r.StorageType.SessionStorage);return Boolean("true"===t)},n.SetDebug=function(t){var i=t||!1;n.setStorageItem(r.Constants.COOKIE_DEBUG_NAME,i.toString(),r.StorageType.SessionStorage)},n.GetTestEnvironment=function(){var t=n.getStorageItem(r.Constants.COOKIE_TEST_NAME,r.StorageType.SessionStorage);return Boolean("true"===t)},n.SetTestEnvironment=function(t){var i=t||!1;t?n.setStorageItem(r.Constants.COOKIE_TEST_NAME,i.toString(),r.StorageType.SessionStorage):n.clearStorageItem(r.Constants.COOKIE_TEST_NAME,r.StorageType.SessionStorage)},n.GetDBName=function(){return n.getStorageItem(r.Constants.COOKIE_COMPANY_NAME,r.StorageType.SessionStorage)},n.SetDBName=function(t){return n.setStorageItem(r.Constants.COOKIE_COMPANY_NAME,t,r.StorageType.SessionStorage)},n.ClearProviderCx=function(){n.clearStorageItem(r.Constants.COOKIE_PROVIDER_NAME,r.StorageType.LocalStorage)},n.GetCookieInfo=function(){return!n.getStorageItem(r.Constants.COOKIE_INFO_NAME,r.StorageType.LocalStorage)},n.SetCookieInfo=function(t){var i=t||!1;n.setStorageItem(r.Constants.COOKIE_INFO_NAME,i.toString(),r.StorageType.LocalStorage)},n.GetAutoPath=function(t){var i=n.getStorageItem(r.Constants.COOKIE_AUTOPATH_NAME,r.StorageType.SessionStorage);return t&&n.clearStorageItem(r.Constants.COOKIE_AUTOPATH_NAME,r.StorageType.SessionStorage),i},n.SetAutoPath=function(t){t?n.setStorageItem(r.Constants.COOKIE_AUTOPATH_NAME,t,r.StorageType.SessionStorage):n.clearStorageItem(r.Constants.COOKIE_AUTOPATH_NAME,r.StorageType.SessionStorage)},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(){var n,t;this.remaindersCache=[];this.settings={CurrentCulture:"pl-PL",BarcodeKeyPrefix:-1,IsBarcodeScannerEnabled:!1};n=r.StorageHelper.getStorageItem(r.Constants.COOKIE_SETTINGS,r.StorageType.SessionStorage)||"";n&&this.normalizeSettings(JSON.parse(n));t=r.StorageHelper.getStorageItem(r.Constants.COOKIE_REMAINDERS,r.StorageType.SessionStorage)||"";t&&this.normalizeRemainders(JSON.parse(t))}return n.prototype.normalizeSettings=function(n){n&&(this.settings.CurrentCulture=n.CurrentCulture?n.CurrentCulture:"pl-PL",this.settings.BarcodeKeyPrefix=n.BarcodeKeyPrefix?parseInt(n.BarcodeKeyPrefix):-1,this.settings.IsBarcodeScannerEnabled=n.IsBarcodeScannerEnabled&&"true"===n.IsBarcodeScannerEnabled.toLowerCase())},n.prototype.normalizeRemainders=function(n){this.remaindersCache=n||[]},Object.defineProperty(n,"Instance",{get:function(){return n._instance||(n._instance=new n),n._instance},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Settings",{get:function(){return this.settings},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"CurrentLanguage",{get:function(){var t="pl";return n.Instance.Settings&&(t=n.Instance.Settings.CurrentCulture||"pl"),t?t.substring(0,2).toLowerCase():"pl"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"RemaindersCache",{get:function(){return this.remaindersCache},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ProductClass",{get:function(){return r.LanguageConstants.SETTINGS?r.LanguageConstants.SETTINGS.ProductClass:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsStandardProduct",{get:function(){return"standard"==r.LanguageConstants.SETTINGS.ProductClass},enumerable:!1,configurable:!0}),n.prototype.SaveSettings=function(n){this.normalizeSettings(n);var t=JSON.stringify(n);t&&r.StorageHelper.setStorageItem(r.Constants.COOKIE_SETTINGS,t,r.StorageType.SessionStorage)},n.prototype.SaveRemainders=function(n){this.normalizeRemainders(n);var t=JSON.stringify(n);t&&r.StorageHelper.setStorageItem(r.Constants.COOKIE_REMAINDERS,t,r.StorageType.SessionStorage)},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(){}return n.Calculate=function(t){return t*n.gridSize+n.gridMargin*(t-1)},n.CalculateSize=function(n,t){var i=[];return i.push(this.Calculate(n)),i.push(this.Calculate(t)),i},n.gridSize=52,n.gridMargin=20,n.dashboardGridSize=40,n.dashboardGridMargin=10,n}()},function(){},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(){}return n.Init=function(){},n.registerResource=function(t){var i=!1;return n.DBRESOURCES.containsKey(t)||(n.DBRESOURCES.add(t,!0),i=!0),i},n.RegisterResources=function(){var i=r.StorageHelper.GetSvgHash(),e=r.StorageHelper.GetLanguageHash()||"00000000",s=i?r.Constants.SVG+"/"+i:r.Constants.SVG,h=e?r.Constants.STRINGS+"/"+e:r.Constants.STRINGS+"/00000000",u={url:i?r.Constants.DBSETTINGS+"/"+i:r.Constants.DBSETTINGS+"/00000000",method:"GET"},c={url:h,method:"GET"},o={url:s,method:"GET"},t=new r.DictionaryEx,f=r.StorageHelper.GetDBName(),l=r.CookieHelper.GetCurrentCulture();return n.registerResource("Settings")&&t.add("Settings",Object(r.Request)(u)),n.registerResource("Svg")&&t.add("Svg",Object(r.Request)(o)),n.registerResource("Strings")&&t.add("Strings",Object(r.Request)(c)),f&&n.registerResource(f)&&(t.containsKey("Svg")||t.add("Svg",Object(r.Request)(o)),t.containsKey("Settings")||t.add("Settings",Object(r.Request)(u))),f&&n.registerResource(l)&&(t.containsKey("Strings")||t.add("Strings",Object(r.Request)(u))),new Promise(function(i,u){t.length<=0&&u(!1);Promise.all(t.values).then(function(t){t&&(n.SETTINGS=t[0],n.RESOURCES=t[2],r.StorageHelper.SetSvgDefinitions(JSON.stringify(t[1])),i(!0))},function(){u(!1)})})},n.RESOURCES=null,n.SETTINGS=null,n.DBRESOURCES=new r.DictionaryEx,n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return f});var r=i(2),u=i(0),f=function(){function n(){this.cssLibraryId="css"+this.name;this.jsLibraryId="js"+this.name}return Object.defineProperty(n.prototype,"name",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"jsPath",{get:function(){return[]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"cssPath",{get:function(){return[]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentLanguage",{get:function(){return u.GlobalSettings.Instance.CurrentLanguage},enumerable:!1,configurable:!0}),n.prototype.mountAllCss=function(){var n=this;!this.cssPath||this.cssPath.length<=0||r.a.each(this.cssPath,function(t,i){var r=document.createElement("link");r.id=n.cssLibraryId+"_"+i;r.rel="stylesheet";r.type="text/css";r.charset="utf-8";r.href=t;document.head.appendChild(r)})},n.prototype.unMountAllCss=function(){var n=this;!this.cssPath||this.cssPath.length<=0||r.a.each(this.cssPath,function(t,i){var u=n.cssLibraryId+"_"+i,r=document.getElementById(u);r&&document.head.removeChild(r)})},n.prototype.mountAllJs=function(){var n=this;!this.jsPath||this.jsPath.length<=0||this.loadAllScripts(this.jsPath).then(function(t){if(!t)throw new Error("[e365] Błąd wczytywania biblioteki: "+n.name);n.onMounted()})},n.prototype.unMountAllJs=function(){var n=this;!this.jsPath||this.jsPath.length<=0||r.a.each(this.jsPath,function(t,i){var u=n.jsLibraryId+"_"+i,r=document.getElementById(u);r&&document.head.removeChild(r)})},n.prototype.unMountScripts=function(n){var t=document.getElementsByTagName("script");r.a.each(t,function(t){if(t&&t.src&&t.src.indexOf(n)>=0){for(;t.firstChild;)t.removeChild(t.firstChild);t.parentNode.removeChild(t)}})},n.prototype.unMountStyles=function(n){var t=document.getElementsByTagName("link");r.a.each(t,function(t){if(t&&t.href&&t.href.indexOf(n)>=0){for(;t.firstChild;)t.removeChild(t.firstChild);t.parentNode.removeChild(t)}})},n.prototype.unMountDiv=function(n){var t=this,i=document.getElementsByTagName(n),u=r.a.filter(i,function(n){return n.parentNode===document.body});r.a.each(u,function(n){if(n&&(n.id&&n.id.indexOf(t.name.toLowerCase())>=0||n.className&&n.className.indexOf(t.name.toLowerCase())>=0)){for(;n.firstChild;)n.removeChild(n.firstChild);n.parentNode.removeChild(n)}})},n.prototype.removeElements=function(n){r.a.each(n,function(n){for(;n.firstChild;)n.removeChild(n.firstChild);n.parentNode.removeChild(n)})},n.prototype.onMounted=function(){},n.prototype.onUnmounted=function(){},n.prototype.mountLibrary=function(){if(this.hasLibrary)return this.onMounted(),void this.incrementLiveCounter();this.incrementLiveCounter();this.mountAllCss();this.mountAllJs();this.isMounted=!0},n.prototype.unMountLibrary=function(){this.isMounted&&(0===this.decrementLiveCounter()&&(this.unMountAllCss(),this.unMountAllJs()),this.onUnmounted())},n.prototype.loadScript=function(n,t){var i=this;return new u.SPromise(function(r){n.then(function(){var n=document.createElement("script"),u=i.jsPath.indexOf(t);n.id=i.jsLibraryId+"_"+u;n.src=t;n.type="text/javascript";n.charset="utf-8";n.addEventListener("load",function(){r(!0)});document.head.appendChild(n)})})},n.prototype.loadAllScripts=function(n){var i=this,t=new u.SPromise(function(n){n(!0)});return r.a.each(n,function(n){t=i.loadScript(t,n)}),t},n.prototype.initLiveCounter=function(t){this.key=t.constructor.toString().match(/\w+/g)[1];n.LiveCounter.containsKey(this.key)||n.LiveCounter.add(this.key,0)},n.prototype.getLiveCounter=function(){return n.LiveCounter.get(this.key)},n.prototype.incrementLiveCounter=function(){var t=this.getLiveCounter();return t++,n.LiveCounter.set(this.key,t),this.getLiveCounter()},n.prototype.decrementLiveCounter=function(){var t=this.getLiveCounter();return t>0&&(t--,n.LiveCounter.set(this.key,t)),this.getLiveCounter()},Object.defineProperty(n.prototype,"hasLibrary",{get:function(){var n=this,t=document.getElementsByTagName("script");return r.a.any(t,function(t){return t.id.indexOf(n.name)>0})},enumerable:!1,configurable:!0}),n.LiveCounter=new u.DictionaryEx,n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(73),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),Object.defineProperty(t.prototype,"name",{get:function(){return"SfDiag"},enumerable:!1,configurable:!0}),t.prototype.componentsToImport=function(){return[Promise.all([i.e("sfcommons"),i.e("sfdiagram")]).then(i.bind(null,747)),Promise.all([i.e("sfcommons"),i.e("sfdiagram")]).then(i.bind(null,748))]},t}(u.a)},function(n,t,i){"use strict";i.d(t,"a",function(){return e});var r,u=i(73),f=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),e=function(n){function t(t){return n.call(this,t)||this}return f(t,n),Object.defineProperty(t.prototype,"name",{get:function(){return"SfGantt"},enumerable:!1,configurable:!0}),t.prototype.componentsToImport=function(){return[Promise.all([i.e("sfcommons"),i.e("sfgantt")]).then(i.bind(null,746))]},t}(u.a)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var u,f=i(2),r=i(0),e=(u=function(n,t){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}u(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this)||this;return i.initLiveCounter(i),i.richEdit=t,i}return e(t,n),Object.defineProperty(t.prototype,"name",{get:function(){return"Jodit"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jsPath",{get:function(){return["/Dist/scripts/jodit.min.js"]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssPath",{get:function(){return["/Dist/css/jodit.min.css"]},enumerable:!1,configurable:!0}),t.prototype.mountLibrary=function(){var n=this,t;this.hasLibrary?(this.incrementLiveCounter(),t=setInterval(function(){"undefined"!=typeof Jodit&&(n.onMounted(),n.isMounted=!0,clearInterval(t))},10)):(this.incrementLiveCounter(),this.mountAllCss(),this.mountAllJs(),this.isMounted=!0)},t.prototype.onMounted=function(){this.initJoditDefaultOptions();this.richEdit.create()},t.prototype.unMountAllCss=function(){n.prototype.unMountAllCss.call(this);for(var i=document.body.getElementsByTagName("link"),t=0;t<i.length;t++)(i[t].href.includes("jodit")||i[t].href.includes("codemirror"))&&(i[t].remove(),t--)},t.prototype.unMountAllJs=function(){n.prototype.unMountAllJs.call(this);for(var i=document.getElementsByTagName("script"),t=0;t<i.length;t++)(i[t].classList.contains("jodit")||i[t].classList.contains("jodit_codemirror")||i[t].classList.contains("codemirror"))&&(i[t].remove(),t--);window.CodeMirror=void 0},t.prototype.onUnmounted=function(){this.richEdit.destroy();this.unMountDiv("div")},t.prototype.initJoditDefaultOptions=function(){this.optionInitiated||(this.optionInitiated=!0,this.initCodeMirror(),this.registerParagraph(),this.registerInterline(),this.registerUnderline(),this.registerStrikeTrough(),this.registerImagePopap(),this.registerToolbarIcons(),this.registerLanguage())},t.prototype.registerUploader=function(){var n=this;return{url:"/jodit",filesVariableName:"images",prepareData:function(n){return n.append("context",r.WindowManager.Instance.CurrentWindow.Handle),n},isSuccess:function(n){return!n.error},process:function(n){return{files:n[this.options.uploader.filesVariableName]||[],path:"images/",baseurl:"/jodit",error:n.error,msg:n.msg}},error:function(t){n.events.fire("errorPopap",[t.getMessage(),"error",4e3])},defaultHandlerSuccess:function(t){var i,r=n.options.uploader.filesVariableName;if(t[r]&&t[r].length)for(i=0;i<t[r].length;i+=1)n.selection.insertImage(t.baseurl+t[r][i])}}},t.prototype.initCodeMirror=function(){Jodit.defaultOptions.codeMirrorUrlJS="/Dist/scripts/codemirror.js";Jodit.defaultOptions.codeMirrorUrlCSS="/Dist/css/codemirror.css";Jodit.defaultOptions.codeMirrorXMLUrl="/Dist/scripts/codemirror_xml.js";Jodit.defaultOptions.codeMirror=!0;Jodit.defaultOptions.codeMirrorOptions={autofocus:!1,lineNumbers:!0,tabMode:"indent",indentWithTabs:!0,lineWrapping:!1,mode:"text/html",tabSize:2}},t.prototype.registerParagraph=function(){Jodit.defaultOptions.controls.paragraph={command:"formatBlock",list:{p:"Normal",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",blockquote:"Quote",pre:"Code"},template:function(n,t){return"<"+n+' class="jodit_list_element"><span>'+this.i18n(t)+"<\/span><\/"+n+"><\/li>"},tooltip:"Paragraph"}},t.prototype.registerUnderline=function(){Jodit.defaultOptions.controls.underline={tags:["u"],css:{textDecoration:"underline"},tooltip:"Underline"}},t.prototype.registerStrikeTrough=function(){Jodit.defaultOptions.controls.strikethrough={tags:["s"],css:{textDecoration:"line-through"},tooltip:"Line through"}},t.prototype.registerInterline=function(){var n=this;Jodit.defaultOptions.controls.interline={name:"interline",icon:"interline",list:{i1:"0,5",i2:"0,75",i3:"1",i4:"1,25",i5:"1.5",i6:"add before paragraph",i7:"add after paragraph"},exec:function(t,i){var r=this.selection.range(),u;if(r[0].startContainer!==document){var f=this.selection.parent.editor,e=n.findParentElement(r[0].startContainer),o=n.findParentElement(r[0].endContainer);e!==f&&(u=i.args[0],n.changeActiveInterline(f,e,o,u),n.changeActiveInterlineMenu(this.$toolbar[0],u))}},template:function(n,t){return'<div class="jodit_interline"><div data-interline="'+n+'" class="icon '+(("i3"===n?"active":"")+" "+n)+'"><\/div><div class="text">'+this.i18n(t)+"<\/div><\/div>"},tooltip:"Interline"}},t.prototype.registerToolbarIcons=function(){Jodit.modules.Icons=function(){return{getSVGIcon:function(n){var t=r.SvgManager.SvgDefinitions["jodit-"+n];return t&&t.indexOf("class")<0&&(t=t.replace("<svg ","<svg class='jodit_icon jodit_icon_"+n+"' ")),t||null}}}},t.prototype.registerImagePopap=function(){var n=this.richEdit;Jodit.defaultOptions.controls.image.popap=function(t){var i=this;return i.form.imageSelector({upload:function(t){var r,u,f;if(t.files&&t.files.length){for(r=0;r<t.files.length;r+=1)u=Jodit.modules.Dom(i.form.getCurrentImage()||Jodit.modules.Dom("<img/>",i.getDocument()).get(0)),f=t.files[r],u.attr("id",f),u.attr("alt",""),i.form.getCurrentImage()||i.selection.insertImage(u.get(0)),n.onUploadImage(f);i.closeToolbarPopap();i.syncCode()}}},t)}},t.prototype.registerLanguage=function(){Jodit.lang.en_example["add before paragraph"]="";Jodit.lang.en_example["add after paragraph"]="";Jodit.lang.en_example.Interline="";Jodit.lang.en_example.Underline="";Jodit.lang.en_example.Paragraph="";Jodit.lang.en_example["Line through"]="";Jodit.lang.en_example.Delete="";Jodit.lang.en_example.Edit="";Jodit.lang.en_example["Vertical align"]="";Jodit.lang.en_example["Horizontal align"]="";Jodit.lang.en_example["Add column"]="";Jodit.lang.en_example["Add row"]="";Jodit.lang.en_example.Merge="";Jodit.lang.en_example["Split vertical"]="";Jodit.lang.en_example["Split horizontal"]="";Jodit.lang.pl={"Type something":"Wprowadź tekst...","About Jodit":"","Jodit Editor":"","Free Non-commercial Version":"","Jodit User's Guide":"","contains detailed help for using":"","For information about the license, please go to our website:":"","Buy full version":"","Copyright © XDSoft.net - Chupurnov Valeriy. All rights reserved.":"",Anchor:"","Open editor in fullsize":"Otwórz edytor w pełnym rozmiarze","Clear Formatting":"Wyczyść formatowanie","Fill color or set the text color":"Kolor tła lub kolor tekstu",Redo:"Przywróć",Undo:"Cofnij",Bold:"Pogrubienie",Italic:"Kursywa","Insert Unordered List":"Punktory","Insert Ordered List":"Numerowanie","Justify Center":"Wyśrodkowany","Justify Full":"Wyjustuj","Justify Left":"Wyrównaj do lewej","Justify Right":"Wyrównaj do prawej","Insert Horizontal Line":"Wstaw linię","Insert Image":"Osadź obrazek","Insert link":"Wstaw link","Font size":"Rozmiar czcionki","Font family":"Czcionka",Underline:"Podkreślenie",Paragraph:"Paragraf",Interline:"Interlinia","Line through":"Przekreślenie","Add column":"Dodaj kolumnę","Add row":"Dodaj wiersz",Merge:"Scal","Split vertical":"Podziel w pionie","Split horizontal":"Podziel w poziomie","Insert format block":"Block formatowany",Normal:"Normalny","Heading 1":"Nagłówek 1","Heading 2":"Nagłówek 2","Heading 3":"Nagłówek 3","Heading 4":"Nagłówek 4","Heading 5":"Nagłówek 5","Heading 6":"Nagłówek 6",Quote:"Cytat",Code:"Blok kodu","Insert table":"Wstaw tabelę","Change mode":"Zmień tryb",Margins:"Marginesy",top:"górny",right:"prawy",bottom:"dolny",left:"lewy",Styles:"Style",Classes:"Klasy",Align:"Dorównaj",Right:"do prawej",Center:"wycentruj",Left:"do lewej","--Not Set--":"nie ustawiony",Src:"Źródło",Title:"Tytuł",Alternative:"Tekst alternatywny",Link:"Link","Open link in new tab":"Otwórz link w nowej zakładce",Image:"Obrazek",Advansed:"Zaawansowane","Image properties":"Właściwości obrazka",Cancel:"Anuluj",Ok:"Potwierdź","File Browser":"Przeglądarka plików","Error on load list":"Błąd podczas ładowania list","Error on load folders":"Błąd podczas ładowania folderu","Are you shure?":"Jesteś pewien","Enter Directory name":"Wprowadź nazwę folderu","Create directory":"Utwórz folder","type name":"wprowadź nazwę","Drop image":"Przeciągnij obrazek","or click":"lub kliknij","Alternative text":"Tekst alternatywny",Browse:"Przeglądaj",Background:"Tło",Text:"Tekst",Top:"Góra",Middle:"Środek",Bottom:"Dół","Insert column before":"Wstaw kolumnę po","Insert column after":"Wstaw kolumnę przed","Insert row above":"Wstaw wiersz powyżej","Insert row below":"Wstaw wiersz poniżej","Delete table":"Skasuj tabelę","Delete row":"Skasuj wiersz","Delete column":"Skasuj kolumnę","Empty cell":"Pusta komórka","add before paragraph":"dodaj przed akapitem","add after paragraph":"dodaj po akapicie","Insert youtube/vimeo video":"Wstaw film",Upload:"Wczytaj",Delete:"Usuń",Edit:"Edytuj","Vertical align":"Wyrównanie pionowe","Horizontal align":"Wyrównanie poziome"}},t.prototype.findParentElement=function(n){for(var i=["p","div","h1","h2","h3","h4","h5","h6"],t=n;1!==t.nodeType||i.indexOf(t.tagName.toLowerCase())<0;)t=t.parentElement;return t},t.prototype.changeActiveInterline=function(n,t,i,r){var u=Array.prototype.slice.call(n.children),e=u.indexOf(t),o=u.indexOf(i),s=this.getInterlineStyle(r);f.a.each(u,function(n,t){t>=e&&t<=o&&(n.style.margin=s)})},t.prototype.changeActiveInterlineMenu=function(n,t){var r=n.getElementsByClassName("toolbar-interline"),i,u;r&&r.length>0&&(i=r[0].getElementsByClassName("icon"),i&&i.length>0&&"i6"!==t&&"i7"!==t&&(u=Array.prototype.slice.call(i),f.a.each(u,function(n){n.dataset.interline===t?n.classList.add("active"):n.classList.remove("active")})))},Object.defineProperty(t.prototype,"Interlines",{get:function(){var n=new r.Dictionary;return n.i1=.5,n.i2=.75,n.i3=1,n.i4=1.25,n.i5=1.5,n.i6=this.Interline,n.i7=this.Interline,n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Interline",{get:function(){return this.richEdit.Editor.options.interline||1},set:function(n){this.richEdit.Editor.options.interline!==n&&null!==n&&(this.richEdit.Editor.options.interline=n)},enumerable:!1,configurable:!0}),t.prototype.getInterlineStyle=function(n){return this.Interline=this.Interlines[n],"i6"===n?this.Interline+"em 0 0 0":"i7"===n?"0 0 "+this.Interline+"em 0":this.Interline+"em 0"},t}(r.LibraryLoader)},function(n,t,i){"use strict";i.d(t,"a",function(){return o});var r,u=i(0),f=i(2),e=(r=function(n,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}r(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(n){function t(t){var i=n.call(this)||this;return i.initLiveCounter(i),i.component=t,i}return e(t,n),Object.defineProperty(t.prototype,"name",{get:function(){return"Scheduler"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StyleElement",{get:function(){return this.styleElement},enumerable:!1,configurable:!0}),t.prototype.mountLibrary=function(){var n=this;Promise.all([i.e("scheduler").then(i.t.bind(null,737,7)),i.e("scheduler").then(i.t.bind(null,738,7)),i.e("scheduler").then(i.t.bind(null,739,7)),i.e("scheduler").then(i.t.bind(null,740,7)),i.e("scheduler").then(i.t.bind(null,741,7)),i(722)("./locale_"+this.currentLanguage+".js")]).then(function(){n.isMounted=!0;n.onMounted()});this.mountStyleElement()},t.prototype.unMountLibrary=function(){this.onUnmounted();this.unMountStyleElement()},t.prototype.mountStyleElement=function(){var n=this,t=document.getElementsByTagName("style");this.styleElement=f.a.find(t,function(t){return t.id===""+n.cssLibraryId});this.styleElement||(this.styleElement=document.createElement("style"),this.styleElement.id=""+this.cssLibraryId,this.styleElement.type="text/css",document.head.appendChild(this.styleElement))},t.prototype.unMountStyleElement=function(){this.styleElement&&document.head.contains(this.styleElement)&&document.head.removeChild(this.styleElement)},t.prototype.onMounted=function(){this.component.create()},t}(u.LibraryLoader)},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(n,t){void 0===t&&(t=!1);this.left=0;this.top=0;this.right=0;this.bottom=0;this.width=0;this.height=0;this.minWidth=0;this.minHeight=0;this.labelWidth=0;this.gridWidth=0;this.gridHeight=0;this.gridVMargin=0;this.gridHMargin=0;this.dItemLeft=0;this.dItemTop=0;this.dItemWidth=0;this.dItemHeight=0;this.hasSizeMask=!1;this.hidden=!1;this.hasSizeMask=t;this.locationStr=n;this.initLocation()}return n.prototype.initLocation=function(){var n,t,i;this.locationStr&&("h"!==this.locationStr?(n=this.locationStr.split(","),(this.width=parseInt(n[n.length>=6?1:0]),this.left=n.length>=6?parseInt(n[0]):0,this.right=n.length>=6?parseInt(n[2]):0,this.top=n.length>=6?parseInt(n[3]):0,this.height=n.length>=6?parseInt(n[4]):0,this.bottom=n.length>=6?parseInt(n[5]):0,7===n.length&&(this.labelWidth=parseInt(n[6])-5),n.length>=7)&&(n[6].indexOf("*")>=0?(t=n[6].split("*"),i=n[7].split("*"),this.hasSizeMask?(this.dItemLeft=parseInt(t[0]),this.dItemTop=parseInt(t[1]),this.dItemWidth=parseInt(i[0]),this.dItemHeight=parseInt(i[1])):(this.gridWidth=parseInt(t[0]),this.gridHeight=parseInt(t[1]),this.gridHMargin=parseInt(i[0]),this.gridVMargin=parseInt(i[1]))):(this.minWidth=parseInt(n[6]),this.minHeight=parseInt(n[7])))):this.hidden=!0)},Object.defineProperty(n.prototype,"IsVisible",{get:function(){return!this.hidden},set:function(n){this.hidden=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsVisibleByNumbers",{get:function(){return!!this.locationStr&&(0!==this.Top||0!==this.Bottom||0!==this.Left||0!==this.Right)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Left",{get:function(){return this.left},set:function(n){this.left=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Right",{get:function(){return this.right},set:function(n){this.right=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Top",{get:function(){return this.top},set:function(n){this.top=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Bottom",{get:function(){return this.bottom},set:function(n){this.bottom=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Width",{get:function(){return this.width},set:function(n){this.width=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Height",{get:function(){return this.height},set:function(n){this.height=n},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"MinWidth",{get:function(){return this.minWidth},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"MinHeight",{get:function(){return this.minHeight},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"LabelWidth",{get:function(){return this.labelWidth},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"GridWidth",{get:function(){return this.gridWidth},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"GridHeight",{get:function(){return this.gridHeight},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"GridHMargin",{get:function(){return this.gridHMargin},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"GridVMargin",{get:function(){return this.gridVMargin},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"DashboardItemLeft",{get:function(){return this.dItemLeft},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"DashboardItemTop",{get:function(){return this.dItemTop},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"DashboardItemWidth",{get:function(){return this.dItemWidth},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"DashboardItemHeight",{get:function(){return this.dItemHeight},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"toCssProperties",{get:function(){var n={};return this.IsVisible?(this.Width&&(n.width=this.Width+"px"),this.Height&&(n.height=this.Height+"px"),(this.Top||0===this.Top)&&(n.top=this.Top+"px"),(this.Bottom||0===this.Bottom)&&(n.bottom=this.Bottom+"px"),(this.Left||0===this.Left)&&(n.left=this.Left+"px"),(this.Right||0===this.Right)&&(n.right=this.Right+"px"),this.MinWidth&&(n.minWidth=this.MinWidth+"px"),this.MinHeight&&(n.minHeight=this.MinHeight+"px")):n.display="none",n},enumerable:!1,configurable:!0}),n.prototype.toString=function(){var n=[],t;return this.IsVisible?(t=function(n){return n||""},n.push(""+t(this.Left)),n.push(""+t(this.Width)),n.push(""+t(this.Right)),n.push(""+t(this.Top)),n.push(""+t(this.Height)),n.push(""+t(this.Bottom)),this.LabelWidth?n.push(""+this.LabelWidth):(n.push(""+t(this.MinWidth)),n.push(""+t(this.MinHeight))),n.join(",")):"h"},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(){this.maxNoOfItems=-1;this.isSimpleMenu=!1;this.isCenterOnEditor=!1;this.childrenColumnWidth=350;this.simpleColumnWidth=350;this.listItemHeight=r.GlobalSettings.Instance.IsStandardProduct?40:32;this.advMaxH=-1;this.advancedMenuWidth=570;this.containerHeight=0;this.calculatedZIndex=2e5}return n.prototype.initializeByDataElement=function(n){this.calculateZIndexByWindow(n.Window);n.Name&&(this.target=document.getElementById(n.Name)||document.querySelector("[data-id='"+n.Name+"']"));this.elements=r.FactoryNavigationMenuSource.createPopupMenu(n.Elements);this.maxNoOfItems=Math.max.apply(Math,this.elements.map(function(n){return n.children.length}));this.isSimpleMenu=0===this.maxNoOfItems;!this.isSimpleMenu&&this.elements.length>this.maxNoOfItems&&(this.maxNoOfItems=this.elements.length)},n.prototype.initializeByWindow=function(n){this.calculateZIndexByWindow(n);var t=n.TargetInfo,i=t&&t.indexOf(":")>=0?t.split(":")[1]:t;i&&(this.target=document.getElementById(i)||document.querySelector("[data-id='"+i+"']"));this.target&&this.target.dataset.tag&&(this.target=document.getElementById(this.target.dataset.tag));this.target&&this.target.classList.contains("editor-code")&&(this.isCenterOnEditor=!0);this.elements=r.FactoryNavigationMenuSource.createPopupMenu(n.Root.Elements);this.maxNoOfItems=Math.max.apply(Math,this.elements.map(function(n){return n.children.length}));this.isSimpleMenu=0===this.maxNoOfItems;!this.isSimpleMenu&&this.elements.length>this.maxNoOfItems&&(this.maxNoOfItems=this.elements.length)},n.prototype.calculateZIndexByWindow=function(n){var t=r.WindowManager.Instance.ActiveWindow,u=2e5,i,f;t&&t.LocalID.toString()===n.LocalID.toString()&&t.Parent&&"Modal"===t.Parent.Mode&&(i=document.getElementById(t.Parent.LocalID.toString()+"_overlay"),i&&(f=window.getComputedStyle(i).getPropertyValue("z-index"),u=parseInt(f)+1));this.calculatedZIndex=u},Object.defineProperty(n.prototype,"CalculatedZIndex",{get:function(){return this.calculatedZIndex},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"maxAdvanceHeight",{get:function(){return this.advMaxH},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"IsSimpleMenu",{get:function(){return this.isSimpleMenu},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Elements",{get:function(){return this.elements},enumerable:!1,configurable:!0}),n.prototype.getCords=function(){return this.target?this.isSimpleMenu?this.simpleMenuCords():this.isCenterOnEditor?this.centerCords():r.GlobalSettings.Instance.IsStandardProduct?this.advancedMenuCords():this.advancedMenuCordsPremium():null},n.prototype.getCordsStyle=function(){var n=this.getCords();return{minHeight:n.minHeight+"px",maxHeight:n.maxHeight?n.maxHeight+"px":null,minWidth:n.minWidth+"px",width:n.width+"px",height:n.height?n.height+"px":"auto",top:n.top+"px",bottom:n.bottom+"px",left:n.left+"px",right:n.right+"px",zIndex:this.calculatedZIndex+1}},n.prototype.getContainerHeightByElements=function(){var n=this.elements.length;return(n>=this.maxNoOfItems?n:this.maxNoOfItems)*this.listItemHeight+this.listItemHeight},n.prototype.getContainerHeight=function(){var n=this.getContainerHeightByElements();return this.advMaxH&&this.advMaxH<n?this.advMaxH:n},n.prototype.centerCords=function(){var n=this.target.getBoundingClientRect(),t=document.defaultView.innerHeight-n.bottom,e=n.top,i=t>e?"top":"bottom",u=this.getContainerHeightByElements(),f;this.advMaxH="bottom"===i?document.defaultView.outerHeight-n.top:document.defaultView.outerHeight-(n.height+n.bottom+125);var o=this.advMaxH<u?this.advMaxH:u,s=r.GlobalSettings.Instance.IsStandardProduct?n.top+40:n.top,h=n.bottom,c=r.GlobalSettings.Instance.IsStandardProduct?this.childrenColumnWidth+250:this.advancedMenuWidth,l=this.isSimpleMenu?null:o;return this.containerHeight=this.getContainerHeight(),t+n.height<u&&(s=null,h=0),f=0,f=r.GlobalSettings.Instance.IsStandardProduct?"top"===i?t-56:e-56:"top"===i?document.defaultView.innerHeight-(document.defaultView.innerHeight-n.top)-40:document.defaultView.innerHeight-n.bottom-40,{minHeight:r.GlobalSettings.Instance.IsStandardProduct?o:this.containerHeight,maxHeight:f,minWidth:500,width:c,height:l,top:s,bottom:h,left:n.width/2,right:n.right}},n.prototype.tightMenuCordsStyle=function(n){var i=document.defaultView.innerWidth-96,r=(document.defaultView.innerWidth-i)/2,t=(document.defaultView.innerHeight-48*n)/2;return{position:"absolute",top:t<0?"96px":t+"px",bottom:t<0?"96px":null,right:r+"px"}},n.prototype.simpleMenuCords=function(){var n=this.target.getBoundingClientRect(),s=r.GlobalSettings.Instance.IsStandardProduct?0:6,h=this.listItemHeight*(this.maxNoOfItems+1),t=0===this.maxNoOfItems?this.elements.length*this.listItemHeight+s:this.maxNoOfItems*this.listItemHeight+s,u=document.defaultView.innerHeight-n.bottom,o=document.defaultView.outerHeight-(document.defaultView.outerHeight-n.bottom+n.height),f=(document.defaultView.outerWidth,n.left,document.defaultView.outerWidth,document.defaultView.outerWidth,n.right,n.width,t<u?"bottom":"top"),i,e;return"top"===f&&o<u&&(f="bottom"),i="top"===f?n.top-t:n.top+n.height,e=n.left-this.simpleColumnWidth+n.width,h>u&&(i=n.top-t-2>=0?n.top-t-2:0),(null===i||i<0)&&(i=n.top),e<0&&(e=n.left),{minHeight:h,maxHeight:"bottom"===f?t+2<u?t+2:u:t+2<o?t+2:o,width:this.simpleColumnWidth,top:i,left:e,right:n.left}},n.prototype.advancedMenuCords=function(){var n=this.target.getBoundingClientRect(),r=this.childrenColumnWidth+250,u=document.defaultView.outerHeight-n.bottom,o=document.defaultView.outerHeight-(document.defaultView.outerHeight-n.bottom+n.height),i=u>o?"top":"bottom",h=(document.defaultView.outerWidth,n.left,document.defaultView.outerWidth,document.defaultView.outerWidth,n.right,n.width,"top"===i?u-56:o-56);this.advMaxH="bottom"===i?document.defaultView.outerHeight-n.top:document.defaultView.outerHeight-(n.height+n.bottom+125);this.containerHeight=this.getContainerHeight();var f=this.advMaxH<40*(this.maxNoOfItems+1)?this.advMaxH:40*(this.maxNoOfItems+1),s="bottom"===i?document.defaultView.outerHeight-n.bottom+n.height+5:null,e="top"===i||"bottom"===i&&f+40<u?n.bottom+5+40:null,t=n.left-600+n.width;return t+r>document.defaultView.outerWidth&&(t-=t+r-document.defaultView.outerWidth),t<0&&(t=0),e||(e=n.top-f,s=null),{minHeight:f,maxHeight:h,minWidth:500,width:r,top:e,bottom:s,left:t,right:n.right}},n.prototype.advancedMenuCordsPremium=function(){var n=this.target.getBoundingClientRect(),u=this.getContainerHeightByElements(),f=n.top,i=document.defaultView.innerHeight-n.bottom,e=n.right,t=(document.defaultView.innerWidth,n.left,f>i&&u>i?"top":"bottom"),r=e>=this.advancedMenuWidth?"left":"right";this.advMaxH="top"===t?document.defaultView.innerHeight-(document.defaultView.innerHeight-n.top)-40:document.defaultView.innerHeight-n.bottom-40;this.containerHeight=this.getContainerHeight();var o="top"===t?n.top-this.containerHeight:n.bottom,s="top"===t?document.defaultView.innerHeight-n.top:document.defaultView.innerHeight-n.bottom-this.containerHeight,h="left"===r?n.right-this.advancedMenuWidth:n.left,c="left"===r?document.defaultView.innerWidth-n.right:document.defaultView.innerWidth-n.left-this.containerHeight;return{minHeight:this.containerHeight,maxHeight:this.advMaxH,height:this.containerHeight,minWidth:this.advancedMenuWidth,width:this.advancedMenuWidth,top:o,bottom:s,left:h,right:c}},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return f});var u=i(2),r=i(0),f=function(){function n(){this.count=0;this.notificationIconPath="/Dist/assets/images/favicon.ico";this.isMobileDevice="MobileApp"===r.CookieHelper.GetDeviceType();this.raiseDelegate=this.isMobileDevice?this.raiseNotificationMobile.bind(this):this.raiseNotificationHtml.bind(this)}return n.prototype.getNewestRemainder=function(n){var t=this;return n&&n.Reminders?0===this.RemaindersCache.length?u.a.first(n.Reminders)||null:u.a.find(n.Reminders,function(n){return!u.a.find(t.RemaindersCache,function(t){return t.ID===n.ID})})||null:null},n.prototype.updateCache=function(n){var t=this.RemaindersCache;n&&n.Reminders&&(u.a.forEach(n.Reminders,function(n){u.a.find(t,function(t){return t.ID===n.ID})||t.push(n)}),this.RemaindersCache=t)},n.prototype.getNotificationOptions=function(n){var t=this.getNewestRemainder(n),f=r.StorageHelper.GetDBName(),i={},u;return f?(u=f.CreateHash(),t?i={data:t.Name,icon:this.notificationIconPath,body:t.Description?t.Description:"",tag:u}:n.Count!==this.RemindersCount&&0!==n.Count&&(i={data:""+r.LanguageConstants.RESOURCES.Str_NotificationBody+n.Count,body:"",icon:this.notificationIconPath,tag:u,renotify:!0}),i):i},n.prototype.raiseNotificationHtml=function(n){if(this.NotificationActive&&n){var t=Notification.requestPermission();t&&t.then(function(t){"granted"===t&&navigator.serviceWorker.register("/Dist/scripts/sw.js").then(function(t){var i=n.data;n.data=null;t.showNotification(i,n)})})}},n.prototype.raiseNotificationMobile=function(n){if(Android&&n){var t=n.data;n.data=null;Android.createNotification(t,n.body)}},Object.defineProperty(n.prototype,"RemaindersCache",{get:function(){return r.GlobalSettings.Instance.RemaindersCache},set:function(n){r.GlobalSettings.Instance.SaveRemainders(n)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"NotificationActive",{get:function(){return"Notification"in window},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ActionsActive",{get:function(){return this.NotificationActive&&"actions"in Notification.prototype},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"RemindersCount",{get:function(){return this.count},enumerable:!1,configurable:!0}),n.prototype.RaiseNotification=function(n){var t,i;return(console.assert(r.LanguageConstants.RESOURCES.Str_NotificationTitle,"Brak zdefiniowanego komunikatu Str_NotificationTitle"),console.assert(r.LanguageConstants.RESOURCES.Str_NotificationBody,"Brak zdefiniowanego komunikatu Str_NotificationBody"),t=this.getNotificationOptions(n),u.a.isEmpty(t))?(i=!n.Count&&0!==this.count,n.Count||(this.count=0),i):(this.count=n.Count||0,this.updateCache(n),this.raiseDelegate(t),!0)},n}()},function(n,t,i){"use strict";function f(n){for(var f,t=n,i=0,e=r;i<e.length;i++)f=e[i],t=u(t,f[0],f[1]);return t}function e(n){for(var f,t=n,i=0,e=r.reverse();i<e.length;i++)f=e[i],t=u(t,f[1],f[0]);return t}function u(n,t,i){var r=new RegExp(t,"g");return n.replace(r,i)}i.d(t,"a",function(){return f});i.d(t,"b",function(){return e});var r=[["&#243;","ó"],["&#211;","Ó"],["&#179;","ę"],["&#225;","á"],["&#233;","é"],["&#167;","§"],["&#176;","°"],["&#192;","À"],["&#226;","â"],["&#224;","à"],["&#231;","ç"],["&#199;","Ç"],["&#234;","ê"],["&#235;","ë"],["&#232;","è"],["&#239;","ï"],["&#238;","î"],["&#251;","û"],["&#249;","ù"],["&#230;","æ"],["&#193;","Á"],["&#196;","Ä"],["&#228;","ä"],["&#201;","É"],["&#282;","Ě"],["&#283;","ě"],["&#205;","Í"],["&#237;","í"],["&#212;","Ô"],["&#244;","ô"],["&#218;","Ú"],["&#250;","ú"],["&#366;","Ů"],["&#367;","ů"],["&#221;","Ý"],["&#253;","ý"],["&#268;","Č"],["&#269;","č"],["&#271;","ď"],["&#357;","ť"],["&#313;","Ĺ"],["&#314;","ĺ"],["&#327;","Ň"],["&#328;","ň"],["&#340;","Ŕ"],["&#341;","ŕ"],["&#344;","Ř"],["&#345;","ř"],["&#352;","Š"],["&#353;","š"],["&#381;","Ž"],["&#382;","ž"],["&#214;","Ö"],["&#246;","ö"],["&#220;","Ü"],["&#252;","ü"],["&#223;","ß"],["&#39;","'"],["&quot;",'"'],["&#160;"," "],["&lt;","<"],["&gt;",">"],["%20"," "],["&amp;","&"],["\\r\\n","<br />"]]},function(n,t,i){"use strict";i.d(t,"a",function(){return f});var r=i(0),u=function(){function n(t){this.name=t||n.DefaultIconName;this.fill=""}return n.DefaultIconName="globus",n}(),f=function(){function n(){}return Object.defineProperty(n,"SvgDefinitions",{get:function(){return n.definitions||(n.definitions=JSON.parse(r.StorageHelper.GetSvgDefinitions())),n.definitions},enumerable:!1,configurable:!0}),n.GetSvgContent=function(t){var r=t||u.DefaultIconName,f=r.indexOf("|text="),e="",i;return f>0&&(r=t.substr(0,f),e=t.substr(f+6)),i="",n.SvgDefinitions&&(i=n.SvgDefinitions[r])&&i.indexOf("#####")>0&&(i=i.replace("#####",e)),i},n.Get=function(t,i){var u=r.StorageHelper.GetSvgHash()||"",f=t.name,e=n.FormatUrl(f,u,r.SvgType.SvgContent);Object(r.Request)({url:e,method:"GET"}).then(function(n){if(n.Error)console.log(n.Error);else{var t="";n.SvgContent&&(t="<svg viewBox='0 0 160 160'>"+n.SvgContent+"<\/svg>");i&&i(t)}},function(n){console.log("AjaxService.requestGet. Nieprawidłowe pobranie svg",n)})},n.receive=function(n){return n.ExceptionType?null:""},n.FormatUrl=function(n,t,i,u,f,e){var o=r.Constants.GETSVG_ADDRESS+"/",s=n.indexOf("|text=");return o+=t&&""!==t?t:"00000000",o+="x"+(s>0?n.substring(0,s):n),o+=void 0!==i?"x"+i:"x2",o+=u?"x"+u:"",o+=f?"x"+f:"",(o+=e?"x"+e:"")+(s>0?n.substring(s):"")},n.setObject=function(n,t){localStorage.setItem(n,JSON.stringify(t))},n.getObject=function(n){if(!n)return null;var t=localStorage.getItem(n);return t?JSON.parse(t):null},n}()},function(n,t,i){"use strict";var r=i(0);!function(){function n(n,t){this.description=t;this.begin();this.result=n();this.end()}n.prototype.begin=function(){this.startTime=(new Date).getTime()};n.prototype.end=function(){var n="WatchResult"+(this.description?" '"+this.description+"'":""),t=(new Date).getTime();Object(r.log)("["+n+"] = "+(t-this.startTime)+" ms",this.result||"",["#4caf50","DarkOrange"])}}()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(2),u=function(){function n(n){this.queryString={};this.url=n;this.anchorElement=document.createElement("a");this.anchorElement.href=n;this.initQueryString()}return n.prototype.initQueryString=function(){var t=this,n;this.anchorElement.search&&""!==this.anchorElement.search&&(n=this.anchorElement.search.substring(1).split("&"),r.a.each(n,function(n){var i=n.split("=");t.queryString[i[0]]=i[1]}))},Object.defineProperty(n.prototype,"Protocol",{get:function(){return this.anchorElement.protocol},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Hostname",{get:function(){return this.anchorElement.hostname},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Port",{get:function(){return this.anchorElement.port},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Pathname",{get:function(){return this.anchorElement.pathname},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Search",{get:function(){return this.anchorElement.search},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Hash",{get:function(){return this.anchorElement.hash},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Host",{get:function(){return this.anchorElement.host},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"QueryString",{get:function(){return this.queryString},enumerable:!1,configurable:!0}),n}()},function(n,t,i){"use strict";function l(){if(u)return u.matchMedia("(max-device-width: 479px) and (min-device-width: 320px)").matches?"m":u.matchMedia("(max-device-width: 959px) and (min-device-width: 480px)").matches?"l":u.matchMedia("(min-device-width: 960px)").matches?"xl":"unsupported"}function o(n,t){return!(!n||"container"===n.id)&&(!!n.classList.contains(t)||o(n.parentElement,t))}function a(n){for(;;){var t=n.toLowerCase().indexOf("&lt;script");if(t<0)break;if(n.indexOf(">",t)<0)break;n=n.substring(0,t)+"<"+n.substr(t+4)}return n}function s(n){return decodeURIComponent(n.replace(/\+/g," "))}function v(){return!!u&&(!!("ontouchstart"in u)||navigator.maxTouchPoints>0)}function y(n){void 0===n&&(n=!1);var t=new Date,i=t.getDate(),r=i<10?"0"+i:i,u=t.getMonth()+1,f=u<10?"0"+u:u,e=t.getFullYear();return n?e+"-"+f+"-"+r+"..."+r:e+"-"+f+"-"+r}function p(n){var i=document.body.getBoundingClientRect(),r=n.getBoundingClientRect(),t={DeviceType:"BrowserExp",ScreenWidth:Math.floor(i.width),ScreenHeight:Math.floor(i.height),ContentWidth:Math.floor(r.width),ContentHeight:Math.floor(r.height)};return t.ContentWidth||(t.ContentWidth=0),t.ContentHeight||(t.ContentHeight=0),t}function w(n,t){var i=t-n.toString().length+1;return Array(+(i>0&&i)).join("0")+n}function b(){for(var r,u,e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(r=arguments.length,arguments&&0!==r){var n=arguments[arguments.length-1],o="Array"===n.constructor.name,s=f.a.filter(arguments,function(n,t){return!o||o&&t!==r-1?n:null}),h=f.a.map(s,function(t,i){var f=n[n.length-1]?n[n.length-1]:"",r=n[i],u="",e;return!r&&f?u="color: "+f:r&&"String"===r.constructor.name?u="color: "+(""!==r?r:f):r&&"Array"===r.constructor.name&&(u="color: "+(r.length>0&&""!==r[0]?r[0]:f),e=r.length>1&&""!==r[1]?r[1]:"",e&&(u+=";background-color:"+e+";padding-left:4px;margin:0 4px;border-radius:3px;")),u}),i="";f.a.each(s,function(n){"Object"===n.constructor.name?console.log(n):i+=(0===i.length?"":" ")+"%c"+n});u=[i];f.a.each(h,function(n){return u.push(n)});i.length>0&&console.log.apply(console,u)}}function k(n,t){t||(t=document);var e=n.charCodeAt(0),i={get:function(){return e}},r={get:function(){return n}},f=new KeyboardEvent("keydown",{bubbles:!0,cancelable:!1,view:u});Object.defineProperties(f,{charCode:i,which:i,keyCode:i,key:r,char:r});t.dispatchEvent(f)}function d(n,t){void 0===t&&(t=null);t||(t={mouse:!1,keyboard:!1,open:!1,close:!1});var i=document.createEvent("FocusEvent"),r={get:function(){return t}};Object.defineProperties(i,{focusCaller:r});i.initEvent("focus",!0,!1);n.dispatchEvent(i)}function g(){return!!u&&!!("MSInputMethodContext"in u)&&!!("documentMode"in document)}function nt(){return/Edge/.test(navigator.userAgent)}function tt(n){n&&u&&("#"===n.substr(0,1)&&(n=n.substr(1)),n="#"+(n=n.replace(/^\/+|\/+$/gm,"")),u.location.hash!==n&&(e=!0,u.location.hash=n))}function it(){return e}function rt(n){e=n}function ut(n,t,i,f){i&&Android&&Android.setBusinessCx(t.BusinessCx);var e=f.GetHeader("hash-svg")||t.SvgHash,o=f.GetHeader("hash-lang");r.CookieHelper.SetDeviceType(n.deviceType);r.StorageHelper.SetBusinessContext(t.BusinessCx);r.StorageHelper.SetSvgHash(e);r.StorageHelper.SetLanguageHash(o);r.StorageHelper.SetDeviceWidth(u.innerWidth);r.StorageHelper.SetDeviceHeight(u.innerHeight);r.StorageHelper.SetDebug(t.Debug);r.StorageHelper.SetDBName(t.DBName);r.GlobalSettings.Instance.SaveSettings(t.Settings?JSON.parse(t.Settings):{});r.GlobalSettings.Instance.Settings.CurrentCulture&&r.CookieHelper.SetCurrentCulture(r.GlobalSettings.Instance.Settings.CurrentCulture)}function ft(n,t){r.CookieHelper.SetDeviceType(n.deviceType);r.StorageHelper.SetDeviceWidth(document.defaultView.innerWidth);r.StorageHelper.SetDeviceHeight(document.defaultView.innerHeight);t&&navigator&&navigator.vibrate&&navigator.vibrate([1e3,500,2e3])}function et(n,t,i){var u=null,h,o,f,e;return t=t||n,h=new r.UriHelper(document.location.href),n&&(o=document.getElementById(n),o&&(u=o.value)),!u&&t&&("db"===t&&(f=document.location.pathname,"/"===f[0]&&(f=f.substring(1)),e=f.split("/"),2===e.length&&(u="home"!==e[0].toLowerCase()?s(e[1]):r.StorageHelper.GetDBName())),u||(u=h.QueryString[t])),i&&!u&&(u=""),u}function c(n,t){for(var i in t)try{n[i]=t[i].constructor==Object?c(n[i],t[i]):t[i]}catch(r){n[i]=t[i]}return n}function ot(n,t,i){var u;if(!(isNaN(t)||isNaN(i)||t<0||i<0)){var s=n.scrollTop,h=n.scrollLeft,f=Math.abs(s-t),e=Math.abs(h-i),r=f>=e?f/10:e/10,c=f/r,l=e/r,a=s<t?1:-1,v=h<i?1:-1,o=300/r;for(o>50&&(o=50),u=0;u<r;u++)setTimeout(function(){n.scrollTop+=a*c;n.scrollLeft+=v*l},o*u)}}var h;i.d(t,"t",function(){return l});i.d(t,"o",function(){return o});i.d(t,"m",function(){return a});i.d(t,"a",function(){return s});i.d(t,"r",function(){return v});i.d(t,"n",function(){return y});i.d(t,"f",function(){return h});i.d(t,"c",function(){return p});i.d(t,"v",function(){return w});i.d(t,"s",function(){return b});i.d(t,"g",function(){return k});i.d(t,"b",function(){return d});i.d(t,"q",function(){return g});i.d(t,"p",function(){return nt});i.d(t,"k",function(){return tt});i.d(t,"d",function(){return it});i.d(t,"l",function(){return rt});i.d(t,"j",function(){return ut});i.d(t,"i",function(){return ft});i.d(t,"e",function(){return et});i.d(t,"h",function(){return c});i.d(t,"u",function(){return ot});var f=i(2),r=i(0),u=document.defaultView,e=!1;h=r.StorageHelper.GetDebug()},function(n,t,i){"use strict";i.d(t,"a",function(){return u});var r=i(0),u=function(){function n(n,t){this.year=n;this.month=t}return n.prototype.ToFormattedString=function(){return!this.year||this.month<0&&this.month>11?null:n.MonthNames[this.month]+" "+this.year},Object.defineProperty(n,"MonthNames",{get:function(){return n.monthNames||(n.monthNames=JSON.parse(r.LanguageConstants.RESOURCES.Str_SchedulerResources).monthNames),n.monthNames},enumerable:!1,configurable:!0}),n.FromString=function(t){var i=t.split(" ");return 2!==i.length?null:new n(parseInt(i[1]),parseInt(i[0]))},n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return r});var r=function(){function n(){}return n.getChar=function(t){return n.table[t]},n.binaryTransfer=function(t,i){var u;i=i||62;var f,r=[],e="",o=t<0?"-":"";for(t=Math.abs(t);t>=i;)f=t%i,t=Math.floor(t/i),r.push(n.getChar(f));for(t>0&&r.push(n.getChar(t)),u=r.length-1;u>=0;u--)e+=r[u];return o+e},n.bitwise=function(n){var t=0,i;if(0===n.length)return t;for(i=0;i<n.length;i++)t=(t<<5)-t+n.charCodeAt(i),t&=t;return t},n.CreateHash=function(t){return n.binaryTransfer(n.bitwise(t),61).replace("-","Z")},n.table="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n}()},function(n,t,i){"use strict";i.d(t,"a",function(){return a});var o,h=i(1),f=i.n(h),u=i(2),r=i(0),e=i(18),c=function(){function n(n){this.removeElementsList=[];this.props=n;this.dataFactory=new e.a(this.props.dataElement);this.initHandlers()}return n.prototype.initHandlers=function(){this.collectionChangeHandler=this.collectionChangeListener.bind(this);this.contextMenuClickHandler=this.contextMenuClickListener.bind(this);this.contextMenuOpenHandler=this.contextMenuOpenListener.bind(this);this.doubleClickHandler=this.doubleClickListener.bind(this);this.dragEnterHandler=this.dragEnterListener.bind(this);this.dropHandler=this.dropListener.bind(this);this.elementParamsChangeHandler=this.elementParamsChangeListener.bind(this);this.propertyChangeHandler=this.propertyChangeListener.bind(this);this.sourcePointChangeHandler=this.sourcePointChangeListener.bind(this);this.targetPointChangeHandler=this.targetPointChangeListener.bind(this);this.textChangeHandler=this.textChangeListener.bind(this)},n.prototype.createDiagramModel=function(){var n=this.isReadOnly?r.DiagramConstraints.PanY|r.DiagramConstraints.PanX|r.DiagramConstraints.Zoom:r.DiagramConstraints.Default;return{width:this.editorRect.width+"px",height:this.diagramRect.height+"px",scrollSettings:{scrollLimit:"Diagram",padding:{left:20,right:20,top:20,bottom:20}},constraints:n,contextMenuSettings:{show:!0,showCustomMenuOnly:!0,items:[{id:"OpenEdit",text:r.LanguageConstants.RESOURCES.Str_Properties,target:".e-diagramcontent",iconCss:"e-menu-icon e-icons e-copy"}]},nodes:this.Nodes,connectors:this.Connectors,collectionChange:this.collectionChangeHandler,contextMenuOpen:this.contextMenuOpenHandler,contextMenuClick:this.contextMenuClickHandler,doubleClick:this.doubleClickHandler,drop:this.dropHandler,positionChange:this.elementParamsChangeHandler,propertyChange:this.propertyChangeHandler,sizeChange:this.elementParamsChangeHandler,sourcePointChange:this.sourcePointChangeHandler,targetPointChange:this.targetPointChangeHandler,textEdit:this.textChangeHandler}},n.prototype.createShapes=function(){var t=this,n=this.dataFactory.Shapes;return!n||n.length<=0?[]:u.a.map(n,function(n){return t.createSingleShape(n,null)})},n.prototype.createSwimLanes=function(){var t=this,n=this.dataFactory.SwimLanes;return!n||n.length<=0?[]:u.a.map(n,function(n){return t.createSingleSwimLane(n)})},n.prototype.createConnectors=function(){var t=this,n=this.dataFactory.Connectors;return!n||n.length<=0?[]:u.a.map(n,function(n){return t.createSingleConnector(n)})},n.prototype.createSingleSwimLane=function(n){var o=this,i,t,f;if(n)return i=""+e.a.swimlanePrefix+n.id,this.dataFactory.registerElement(i,n.id),t=u.a.map(this.dataFactory.ChildLanes,function(n,t){return o.createSingleLane(n,i,t)}),f=u.a.reduce(t,function(n,t){return n+t.height},0),{id:i,shape:{type:r.DiagramElementType[n.type],header:{annotation:{content:n.text},height:50,style:{fontSize:11},orientation:r.SwimLaneHeaderOrientation[r.SwimLaneHeaderOrientation.Horizontal]},lanes:t&&t.length>0?t:[],phases:[{id:"Invisible_Phase",header:{annotation:{content:""}}}],phaseSize:.1},height:f,width:n.width,offsetX:n.width/2,offsetY:n.height/2}},n.prototype.createSingleShape=function(n){var t=""+e.a.nodePrefix+n.id,u=r.ShapeGroup[n.shapeGroup],i=this.dataFactory.getShapeForm(r.ShapeType[n.shapeType]),f=n.text||i===r.ShapeType[r.ShapeType.TextAnnotation]?[{content:n.text,style:n.appearance?{color:n.appearance.foreColor}:null}]:null;return this.dataFactory.registerElement(t,n.id),{id:t,shape:{type:u,shape:i,activity:this.createActivity(n)},annotations:f,margin:{left:n.offsetX,top:n.offsetY},offsetX:n.offsetX,offsetY:n.offsetY,width:n.width,height:n.height,style:n.appearance?{fill:n.appearance.backColor}:null,ports:[{id:"4",offset:{x:0,y:.5},shape:"Circle",visibility:r.PortVisibility.Connect|r.PortVisibility.Hover,constraints:r.PortConstraints.Draw},{id:"1",offset:{x:.5,y:0},shape:"Circle",visibility:r.PortVisibility.Connect|r.PortVisibility.Hover,constraints:r.PortConstraints.Draw},{id:"2",offset:{x:1,y:.5},shape:"Circle",visibility:r.PortVisibility.Connect|r.PortVisibility.Hover,constraints:r.PortConstraints.Draw},{id:"3",offset:{x:.5,y:1},shape:"Circle",visibility:r.PortVisibility.Connect|r.PortVisibility.Hover,constraints:r.PortConstraints.Draw}]}},n.prototype.createSingleLane=function(n,t,i){var o=this,f=""+e.a.lanePrefix+n.id;this.dataFactory.registerLane(f,n.id,i);var s=this.dataFactory.GetFilteredLanes(n.id),h=u.a.map(s,function(n){return o.createSingleShape(n,f)}),c=n.text?{content:n.text}:null;return{id:f,height:Math.max(n.height,100),header:{annotation:c,orientation:r.SwimLaneHeaderOrientation[r.SwimLaneHeaderOrientation.Vertical],style:null},children:h,isLane:!0}},n.prototype.createSingleConnector=function(n){var i=null,u,t;return n.shapeType===r.ShapeType.Dotted&&(i="2,2"),u={strokeWidth:n.shapeType===r.ShapeType.Basic?1:2,strokeDashArray:i},t=""+e.a.connectorPrefix+n.id,this.dataFactory.registerElement(t,n.id),{id:t,type:"Orthogonal",sourceID:n.from?""+e.a.nodePrefix+n.from:null,sourcePoint:!n.from&&n.sourcePoint?n.sourcePoint:null,sourcePortID:n.from&&n.sourcePortID?n.sourcePortID:null,targetID:n.to?""+e.a.nodePrefix+n.to:null,targetPoint:!n.to&&n.targetPoint?n.targetPoint:null,targetPortID:n.to&&n.targetPortID?n.targetPortID:null,annotations:n.text?[{content:n.text,style:{fill:"#F9F9F9"}}]:null,style:u}},n.prototype.createActivity=function(n){var t=n.shapeType,i=n.iconName;return t===r.ShapeType.Task?{activity:r.ShapeType[r.ShapeType.Task],task:i?{type:r.TaskType[i]}:null}:t===r.ShapeType.SubProcess?{activity:"SubProcess",subProcess:{type:"None",transaction:{cancel:{visible:!1},failure:{visible:!1},success:{visible:!1}}}}:null},n.prototype.collectionChangeListener=function(n){var t=n.element,i;if(n.state===r.CollectionChangeState[r.CollectionChangeState.Changed]&&null!==t)if(n.type===r.CollectionChangeType[r.CollectionChangeType.Addition])void 0!==n.laneIndex?this.addLane(t,n.laneIndex):"nodes"===t.propName?(i=this,setTimeout(function(){i.addShape(n)}.bind(this),50)):"connectors"===t.propName&&this.addConnector(t);else if(n.type===r.CollectionChangeType[r.CollectionChangeType.Removal])return void this.removeElement(t)},n.prototype.contextMenuClickListener=function(n){var t,i;"OpenEdit"===n.item.id&&this.isVisibleContextMenu()&&(t=this.sfDiagram.selectedItems.nodes.length?this.sfDiagram.selectedItems.nodes[0]:this.sfDiagram.selectedItems.connectors[0],t&&(i=this.dataFactory.findOriginalIdByElement(t),i&&this.dataFactory.DataElement.post("open",i)))},n.prototype.contextMenuOpenListener=function(n){for(var i,t=0;t<n.items.length;t++)i=n.items[t],"OpenEdit"!==i.id||this.isVisibleContextMenu()||n.hiddenItems.push(i.id)},n.prototype.doubleClickListener=function(n){var t=n.source,i;if(t&&t.id){if(i=this.dataFactory.findOriginalIdById(t.id),!i&&t.LaneHeaderParent?i=this.dataFactory.findOriginalIdById(t.LaneHeaderParent):!i&&t.parentId&&(i=this.dataFactory.findOriginalIdById(t.parentId)),!i)return;this.doubleClickElementId=i}},n.prototype.dragEnterListener=function(){},n.prototype.dropListener=function(n){var t=n.element,u;if(t&&t.properties&&t.properties.shape&&"SwimLane"===t.properties.shape.type){if(!n.target)return;var i=n.target.parentObj&&n.target.parentObj.nodes&&n.target.parentObj.nodes[0]?n.target.parentObj.nodes[0].wrapper.bounds:null,r=t.wrapper&&t.wrapper.bounds?t.wrapper.bounds:null,f=n.target.parentId;i&&r&&f===this.swimLaneId&&(r.top>i.bottom||r.bottom<i.top||r.right<i.left||r.left>i.right)&&(n.cancel=!0);u=n.target.properties.id;u&&-1!==u.indexOf("lane")&&-1===u.indexOf("_header")||(n.cancel=!0)}},n.prototype.elementParamsChangeListener=function(n){var t,l,s,f,e,a,v,p;if(n.state===r.PositionChangeState[r.PositionChangeState.Completed]&&n.state===r.SizeChangeState[r.SizeChangeState.Completed])if(n.source.connectors&&n.source.connectors.length>0)this.connectorPositionChange(n);else{if(t=n.source.nodes&&n.source.nodes.length>0?n.source.nodes[0]:null,!t){if(!(n.source.id&&n.source.parentId&&n.source.margin))return;t=n.source}var i=this.dataFactory.findOriginalIdByElement(t),u=this.dataFactory.findOriginalElementData(i),y=t.id.indexOf("Invisible_Phase")>=0;if(!i&&y&&t.parentId&&(i=this.dataFactory.findOriginalIdById(t.parentId),u=this.dataFactory.findOriginalElementData(i)),i){var o=n.target,c=this.dataFactory.findOriginalParentById(i),h=c;o&&(h=o.id&&o.parentId?this.dataFactory.findOriginalIdByArgsSearch(o.id,o.parentId):null);l=Math.round(t.margin.left);s=Math.round(t.margin.top);h!==c&&(s=this.calculateCorrectionOfHeight(h,c,s,Math.round(t.height)));f=n.newValue.width?Math.round(n.newValue.width):Math.round(t.width);e=n.newValue.height?Math.round(n.newValue.height):Math.round(t.height);y&&(a=document.getElementById("helper_groupElement"),a&&(v=a.getBoundingClientRect(),f=Math.round(v.width),e=Math.round(v.height)),this.currentZoomFactor&&(f=Math.round(f/this.currentZoomFactor),e=Math.round(e/this.currentZoomFactor)));u&&u.offsetX===l&&u.offsetY===s&&u.width===f&&u.height===e||(p=i+";"+l+";"+s+";"+f+";"+e+";"+h+";",this.dataFactory.DataElement.post("resize",p))}}},n.prototype.propertyChangeListener=function(n){var t;if(n.newValue&&n.newValue.selectedItems&&n.newValue.selectedItems.nodes&&1===n.newValue.selectedItems.nodes.length&&n.newValue.selectedItems.nodes[0].isLane){var r=n.newValue.selectedItems.nodes[0],f=this.sfDiagram.getObject(this.swimLaneId),i=u.a.findIndex(f.shape.lanes,function(n){return r.id.indexOf(n.id)>0});i>=0&&(t=this.dataFactory.findOriginalIdByElement(r),t&&this.dataFactory.chengeLaneIdx(t,i)&&this.dataFactory.DataElement.post("movelane",t+";"+(i+1)))}},n.prototype.sourcePointChangeListener=function(n){var t=n.connector;n.state===r.ConnectionChangeState[r.ConnectionChangeState.Completed]&&null!==t&&this.pointChangeListener(t)},n.prototype.targetPointChangeListener=function(n){var t=n.connector;n.state===r.ConnectionChangeState[r.ConnectionChangeState.Completed]&&null!==t&&this.pointChangeListener(t)},n.prototype.pointChangeListener=function(n){var r=this.dataFactory.findOriginalIdById(n.id);if(r){var e=r||n.id.split(" ")[1],t=n.sourceID?this.dataFactory.findOriginalIdById(n.sourceID):"",o=n.sourcePortID?n.sourcePortID:"",u=n.sourcePoint,s=t?"":Math.round(u.x),h=t?"":Math.round(u.y),i=n.targetID?this.dataFactory.findOriginalIdById(n.targetID):"",c=n.targetPortID?n.targetPortID:"",f=n.targetPoint,l=e+";"+t+";"+o+";"+s+";"+h+";"+i+";"+c+";"+(i?"":Math.round(f.x))+";"+(i?"":Math.round(f.y))+";";this.dataFactory.DataElement.post("connect",l)}},n.prototype.textChangeListener=function(n){if(this.doubleClickElementId&&void 0!==n.newValue&&n.newValue!==n.oldValue){var t=this.doubleClickElementId+";"+(n.newValue?n.newValue:"")+";";this.dataFactory.DataElement.post("rename",t)}this.doubleClickElementId=""},n.prototype.connectionChangeListener=function(n){var s=this,t,i;if((this.delaySendingPost&&clearTimeout(this.delaySendingPost),n.state===r.ConnectionChangeState[r.ConnectionChangeState.Changed]&&!n.connectorEnd)&&(t=n.connector,t&&(i=this.dataFactory.findOriginalIdById(t.id),i))){var h=i||t.id.split(" ")[1],u=t.sourceID?this.dataFactory.findOriginalIdById(t.sourceID):"",c=t.sourcePortID?t.sourcePortID:"",e=t.sourcePoint,l=u?"":Math.round(e.x),a=u?"":Math.round(e.y),f=t.targetID?this.dataFactory.findOriginalIdById(t.targetID):"",v=t.targetPortID?t.targetPortID:"",o=t.targetPoint,y=h+";"+u+";"+c+";"+l+";"+a+";"+f+";"+v+";"+(f?"":Math.round(o.x))+";"+(f?"":Math.round(o.y))+";";this.delaySendingPost=setTimeout(function(){s.dataFactory.DataElement.post("connect",y)},500)}},n.prototype.calculateCorrectionOfHeight=function(n,t,i,r){var f=this.dataFactory.ChildLanes,c=u.a.find(f,function(t){return t.id===n}),a=u.a.indexOf(f,c),v=u.a.find(f,function(n){return n.id===t}),s=0,h=i,e,l,o;if(a>u.a.indexOf(f,v)){for(e=0;e<f.length;e++)if((o=f[e]).id===t)s+=o.height;else if(s>0){if(o.id===n)break;s+=o.height}h-=s}else{for(l=!1,e=f.length-1;e>=0;e--)if((o=f[e]).id===t)l=!0;else if(l){if(o.id===n){s+=o.height;break}s+=o.height}h+=s}return h>c.height&&(h=c.height-r),h<0&&(h=0),h},n.prototype.connectorPositionChange=function(n){var t=n.source.connectors[0],i,r;if(t&&(i=this.dataFactory.findOriginalIdByElement(t),r=this.dataFactory.findOriginalElementData(i),i&&r)){var e=t.sourceID?this.dataFactory.findOriginalIdById(t.sourceID):"",o=t.sourcePortID?t.sourcePortID:"",s=t.targetID?this.dataFactory.findOriginalIdById(t.targetID):"",h=t.targetPortID?t.targetPortID:"",u=t.sourcePoint?t.sourcePoint:r.sourcePoint,f=t.targetPoint?t.targetPoint:r.targetPoint,c=i+";"+e+";"+o+";"+u.x+";"+u.y+";"+s+";"+h+";"+f.x+";"+f.y+";";this.dataFactory.DataElement.post("connect",c)}},n.prototype.getTaskTypeByElement=function(n){if(n.shape.type!==r.ShapeGroup[r.ShapeGroup.Bpmn])return"";if(n.shape.activity&&n.shape.activity.properties.task&&n.shape.activity.properties.task.type){var t=n.shape.activity.properties.task.type;return"None"===t?"Task":t}return""},n.prototype.addShape=function(n){var t=n.element,i=n.parentId,u,o;!i&&t&&t.parentId&&(i=t.parentId);u=i?this.dataFactory.findOriginalIdByArgsSearch(i,this.swimLaneId):"";u||(u=this.idOfFirstLane);var s=Math.round(t.width),h=Math.round(t.height),c=Math.round(t.margin.left),l=Math.round(t.margin.top),a=r.ShapeGroup[t.shape.type],f=r.ShapeType[t.shape.shape]?r.ShapeType[t.shape.shape]:this.dataFactory.findShapeTypeEnumValue(t.shape),e=this.getTaskTypeByElement(t),v=e?r.TaskType[e]:"";null!=a&&null!=f&&(o=t.id+";"+u+";"+r.ShapeGroup[t.shape.type]+";"+f+";"+v+";"+s+";"+h+";"+c+";"+l+";",this.postAction("addshape",o))},n.prototype.addLane=function(n,t){var i=t+1+";"+n.height+";";this.postAction("addlane",i)},n.prototype.addConnector=function(n){var e=n.sourceID?this.dataFactory.findOriginalIdById(n.sourceID):"",o=n.targetID?this.dataFactory.findOriginalIdById(n.targetID):"",t=n.sourcePortID?n.sourcePortID:"",i=n.targetPortID?n.targetPortID:"",s=t&&i?r.ShapeType.Basic:this.dataFactory.findParamsShapeTypeId(n.id.split(" ")[0]),u=n.properties.sourcePoint,h=t?"":Math.round(u.x),c=t?"":Math.round(u.y),f=n.properties.targetPoint,l=s+";"+h+";"+c+";"+(i?"":Math.round(f.x))+";"+(i?"":Math.round(f.y))+";"+e+";"+t+";"+o+";"+i+";";this.postAction("addconnector",l)},n.prototype.postAction=function(n,t){var i=this;this.dataFactory.DataElement.pPost(n,t).then(function(n){return i.props.checkResponse(n,r.WindowManager.Instance.ActiveWindow.Handle)})},n.prototype.removeElement=function(n){var t=this,i=this.dataFactory.findOriginalIdByElement(n);i&&(this.removeElementsList.indexOf(i)<0&&this.removeElementsList.push(i),this.delaySendingPost&&clearTimeout(this.delaySendingPost),this.delaySendingPost=setTimeout(function(){var n=t.removeElementsList.toString().replace(new RegExp(",","g"),";");t.dataFactory.DataElement.post("remove",n);t.removeElementsList=[]},200))},n.prototype.isVisibleContextMenu=function(){var n=!1;return this.sfDiagram.selectedItems.connectors.length+this.sfDiagram.selectedItems.nodes.length===1&&(this.sfDiagram.selectedItems.nodes.length&&(n=this.sfDiagram.selectedItems.nodes[0].shape.type===r.DiagramElementType[r.DiagramElementType.SwimLane]),!n)},n.prototype.showNodesProps=function(){u.a.forEach(this.sfDiagram.nodes,function(n){n.id.indexOf("_header")<0&&(n.id.indexOf(e.a.lanePrefix)>=0||n.id.indexOf(e.a.nodePrefix)>=0)&&console.log("id",n.id,"offsetY",n.offsetY,"height",n.height,"type|shape",n.shape.properties.type+"|"+n.shape.properties.shape)})},n.prototype.showStructure=function(){var n,t;this.sfDiagram&&(n=this.swimLaneId,n&&(t=this.sfDiagram.getObject(n),u.a.forEach(t.shape.lanes,function(n){console.log("*******");console.log("line id",n.id,"Y",n);u.a.forEach(n.children,function(n){return console.log("shape",n.id,"x",n.offsetX,"y",n.offsetY)})})))},n.prototype.clearCache=function(){this.dataFactory.clearCache();this.nodes=null;this.connectors=null},Object.defineProperty(n.prototype,"swimLaneId",{get:function(){var n=u.a.find(this.Nodes,function(n){var t=n.shape;return t&&t.type&&t.type===r.DiagramElementType[r.DiagramElementType.SwimLane]&&t.lanes&&t.lanes.length>0});return n?n.id:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"idOfFirstLane",{get:function(){var r=this.Nodes,n,t,i;return this.nodes.length<=0?null:(n="SwimLane"===r[0].shape.type?r[0]:null,n&&(t=n.shape,i=t.lanes.length>0?t.lanes[0].id:null,i))?this.dataFactory.findOriginalIdById(i):null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"diagramRect",{get:function(){return this.props.domDiagram.getBoundingClientRect()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"editorRect",{get:function(){return this.props.domEditor.getBoundingClientRect()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Nodes",{get:function(){return this.nodes||(this.nodes=[].concat(this.createShapes()).concat(this.createSwimLanes())),this.nodes},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Connectors",{get:function(){return this.connectors||(this.connectors=this.createConnectors()),this.connectors},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isReadOnly",{get:function(){return!this.props.dataElement.Editable},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Model",{get:function(){return this.createDiagramModel()},enumerable:!1,configurable:!0}),n.prototype.initDiagramInstance=function(n){this.sfDiagram=n},n.prototype.setZoomFactor=function(n){this.currentZoomFactor=n},n.prototype.changeTaskEndIcon=function(){u.a.forEach(this.dataFactory.TaskSend,function(n){var i="node-"+n.id+"_1_tasktType_groupElement",t=document.getElementById(i);t&&(t.classList.remove("group-path-fix"),t.classList.add("group-path-fix"))})},n.prototype.updateDiagram=function(n){this.clearCache();this.dataFactory.updateData(n);this.sfDiagram.clear();this.sfDiagram.nodes=this.Nodes;this.sfDiagram.connectors=this.Connectors;this.sfDiagram.refresh()},n.prototype.onResize=function(){this.sfDiagram.width=this.editorRect.width+"px";this.sfDiagram.height=this.editorRect.height+"px"},n}(),l=(o=function(n,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}o(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=function(){return(s=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},a=function(n){function t(t){var i=n.call(this,t)||this;return i.state={isLibraryLoaded:!1,dataElement:i.props.dataElement},i.loader=new r.DiagramLoader(i),i}return l(t,n),t.prototype.componentDidMount=function(){var t=this;n.prototype.componentDidMount.call(this);this.loader.mountLibrary().then(function(n){return t.onMountLibrary(n)})},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.loader.unMountLibrary()},t.prototype.shouldComponentUpdate=function(n,t){return!Object.is(this.state.dataElement,t.dataElement)||!Object.is(n.dataElement,this.props.dataElement)||!Object.is(n.dataElement,this.state.dataElement)||this.state.isLibraryLoaded!==t.isLibraryLoaded},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.IsMobile||this.eventRegistrar.registerEventListener({domElement:window,type:"resize",handler:this.resizeEventListener.bind(this)})},t.prototype.resizeEventListener=function(){var n=this;this.resizeTimer&&clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout(function(){var t=n.refs.sfDiagramComponent;t&&t.onResize()},300)},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!this.state.dataElement.Editable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"diagramId",{get:function(){return this.state.dataElement.Name+"_main"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editorId",{get:function(){return this.state.dataElement.Name+"_editor"},enumerable:!1,configurable:!0}),t.prototype.onMountLibrary=function(n){this.diagramModule=n[0];this.paletteModule=n[1];this.setState({isLibraryLoaded:!0})},t.prototype.updateDiagram=function(){var n=this.refs.sfDiagramComponent;n&&n.updateDiagram(this.props.dataElement)},t.prototype.onChangeZoom=function(n){var t=this.refs.sfDiagramComponent;t&&t.updateZoom(n)},t.prototype.onCalculateSliderValue=function(n){return 0==n?"1:1":20*n+"%"},t.prototype.checkResposnseForUpdates=function(n,t){var r=n.Forms,f=!1,i;r&&(i=u.a.find(r,function(n){return n.WindowHandle===t}),i&&i.Lists&&i.Lists[0]&&i.Lists[0].Data&&i.Lists[0].Data.length>0&&(f=!0));f||this.refs.sfDiagramComponent.undo()},t.prototype.createDiagramModel=function(){var n=this;return new c({domDiagram:this.refs.diagram,domEditor:this.refs.editor,dataElement:this.state.dataElement,checkResponse:function(t,i){return n.checkResposnseForUpdates(t,i)}})},t.prototype.createDiagram=function(){if(!this.state.isLibraryLoaded)return f.a.createElement(r.Loader,null);var n=this.diagramModule.ExtendedDiagramComponent,t=this.diagramModule.Inject,i=this.diagramModule.BpmnDiagrams,u=this.diagramModule.DiagramContextMenu,e=this.diagramModule.UndoRedo,o={modelDiagram:this.createDiagramModel(),diagramModule:this.diagramModule};return f.a.createElement(n,s({ref:"sfDiagramComponent"},o),f.a.createElement(t,{services:[i,u,e]}))},t.prototype.createZoom=function(){var n=this,t={classes:"diagram-zoom",min:-5,max:5,step:1,value:0,rangeWidth:100,mode:r.RangeSliderMode.zoom,editable:!0,hideFillBar:!0,onChange:function(t){return n.onChangeZoom(t)},calculateSliderValue:function(t){return n.onCalculateSliderValue(t)}};return f.a.createElement("div",{className:"diagram-zoom-content"},f.a.createElement(r.EditorRangeSlider,s({ref:"zoom"},t)))},t.prototype.createPalette=function(){return this.state.isLibraryLoaded?this.isReadOnly||!this.diagramModule?null:f.a.createElement(r.DiagramPalette,{ref:"palette",diagramModule:this.diagramModule,paletteModule:this.paletteModule,dataElement:this.state.dataElement,width:t.paletteWidth+"px",height:"inherit"}):null},t.prototype.handler=function(n){this.state.isLibraryLoaded&&!n.FirstCall&&n.ListChanged&&this.updateDiagram()},t.prototype.renderBrowser=function(){this.prepareClasses();this.prepareStyle();var n={left:this.isReadOnly?0:t.paletteWidth},i={bottom:t.zoomHeight};return f.a.createElement("div",{ref:"diagram",id:this.diagramId,className:"diagram-main",style:this.style},this.createPalette(),f.a.createElement("div",{className:"diagram-content",style:n},f.a.createElement("div",{ref:"editor",id:this.editorId,className:"diagram-editor",style:i},this.createDiagram()),this.createZoom()))},t.paletteWidth=160,t.zoomHeight=32,t}(r.ControlBase)},function(n,t,i){"use strict";i.d(t,"a",function(){return l});var f,s=i(1),u=i.n(s),r=i(0),e=i(2),h=function(){function n(n){var t,i;this.workingHours={from:0,to:24};t=n.dataFactory.IsEditable;this.timelineSettings=n.dataFactory.TimelineSettings;this.dayNames=this.FromToResources.calendars.standard.days.names;this.dayNamesShort=this.FromToResources.calendars.standard.days.namesShort;this.monthNamesGenitive=this.FromToResources.calendars.standard.monthsGenitive.names;this.monthNames=this.FromToResources.calendars.standard.months.names;this.dayNames=e.a.map(this.dayNames,function(n){return n?n[0].toUpperCase()+n.slice(1):n});this.monthNames=e.a.map(this.monthNames,function(n){return n?n[0].toUpperCase()+n.slice(1):n});this.topTierFormatter=this.topTierFormatter.bind(this);this.bottomTierFormatter=this.bottomTierFormatter.bind(this);i=n.dataFactory.ProjectPeriod;this.modelData={parentId:n.parentId,appearancePalette:n.appearancePalette,allowProgressEditing:n.dataFactory.AllowProgressEditing,allowReordering:!0,allowResizing:!0,allowSelection:!0,allowSorting:!0,autoFocusTasks:!1,baselineColor:"#FF9D00",dataSource:n.dataFactory.GanttData,dateFormat:"dd.MM.y",dayWorkingTime:[this.workingHours],enableContextMenu:!1,enablePredecessorValidation:!1,editSettings:{allowAdding:t,allowEditing:t,allowDeleting:t,allowTaskbarEditing:t,showDeleteConfirmDialog:!1,mode:"Auto"},eventMarkers:n.dataFactory.ChartColumnAppearance,dataFactory:n.dataFactory,filterSettings:{hierarchyMode:"Parent"},gridLines:"Vertical",height:n.height,highlightWeekends:!0,invoker:n.invoker,labelSettings:{leftLabel:"taskName",taskLabel:n.dataFactory.AllowProgressEditing?"${progress}%":"",rightLabel:"resources"},locale:n.locale,postAction:n.postAction,projectEndDate:i.endDate,projectStartDate:i.startDate,renderBaseline:!0,resourceIDMapping:"resourceId",resourceNameMapping:"resourceName",resources:n.dataFactory.ResourcesData,selectionMode:"row",selectionType:"single",showColumnMenu:!1,showInlineNotes:!0,sortSettings:{columns:n.UISettings.sort,allowUnsort:!0},splitterSettings:{position:(n.UISettings&&n.UISettings.splitterPos?n.UISettings.splitterPos:20)+"%"},taskFields:{id:"taskId",name:"taskName",startDate:"startDate",endDate:"endDate",duration:"duration",durationUnit:"durationUnit",progress:"progress",dependency:"dependency",child:"subtasks",notes:"info",resourceInfo:"resources",baselineStartDate:"baselineStartDate",baselineEndDate:"baselineEndDate",taskbarBackground:"taskbarBackground",parentID:"parentId"},timelineSettings:{topTier:{unit:this.timelineSettings.topTier,formatter:this.topTierFormatter},bottomTier:{unit:this.timelineSettings.bottomTier,count:this.timelineSettings.bottomTierCount,formatter:this.bottomTierFormatter},weekStartDay:1},tooltipSettings:{showTooltip:!1},treeColumnIndex:1,UISettings:n.UISettings,width:n.width,workWeek:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"]}}return Object.defineProperty(n.prototype,"Data",{get:function(){return this.modelData},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"FromToResources",{get:function(){return this.fromToResources||(this.fromToResources=JSON.parse(r.LanguageConstants.RESOURCES.Str_FromToResources)),this.fromToResources},enumerable:!1,configurable:!0}),n.prototype.topTierFormatter=function(n){switch(this.timelineSettings.topTier){case"Month":return this.monthNames[n.getMonth()]+" "+n.getFullYear();case"Week":return n.getDate()+" "+this.monthNamesGenitive[n.getMonth()]+" "+n.getFullYear();case"Day":return this.dayNames[n.getDay()]+", "+n.getDate()+" "+this.monthNamesGenitive[n.getMonth()]+" "+n.getFullYear();case"Hour":return Object(r.zeroPad)(n.getHours(),2)+":00";default:return r.DateHelper.parseDateToString(n,"dd.MM.yyyy")}},n.prototype.bottomTierFormatter=function(n){switch(this.timelineSettings.viewMode){case r.TimelineViewMode.MonthDay:return""+n.getDate();case r.TimelineViewMode.WeekDay:return""+this.dayNamesShort[n.getDay()];case r.TimelineViewMode.DayHour:return""+Object(r.zeroPad)(n.getHours(),2);case r.TimelineViewMode.HourMinute:return"Minutes"===this.timelineSettings.bottomTier?":"+Object(r.zeroPad)(n.getMinutes(),2):""+Object(r.zeroPad)(n.getHours(),2);default:return r.DateHelper.parseDateToString(n,"dd.MM.yyyy")}},n}(),c=(f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])})(n,t)},function(n,t){function i(){this.constructor=n}f(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){return(o=Object.assign||function(n){for(var r,i,t=1,u=arguments.length;t<u;t++)for(i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)},l=function(n){function t(t){var i=n.call(this,t)||this;return i.windowSizeChanged=!1,i.GanttComponentMethods={},i.state={isLibraryLoaded:!1},i.props.dataElement.Window.Settings.GanttUISettings||(i.props.dataElement.Window.Settings.GanttUISettings={}),i.ganttUISettings=i.props.dataElement.Window.Settings.GanttUISettings,i.onPostAction=i.postAction.bind(i),i}return c(t,n),t.prototype.componentDidMount=function(){var t=this;n.prototype.componentDidMount.call(this);this.loader.mountLibrary().then(function(n){return t.onMountLibrary(n)})},t.prototype.componentWillUnmount=function(){n.prototype.componentWillUnmount.call(this);this.loader.unMountLibrary()},t.prototype.initEventListeners=function(){n.prototype.initEventListeners.call(this);this.ToolbarZoomIn&&this.eventRegistrar.registerEventListener({domElement:this.ToolbarZoomIn,type:"click",handler:this.zoomInListener.bind(this)});this.ToolbarZoomOut&&this.eventRegistrar.registerEventListener({domElement:this.ToolbarZoomOut,type:"click",handler:this.zoomOutListener.bind(this)});this.ToolbarZoomFit&&this.eventRegistrar.registerEventListener({domElement:this.ToolbarZoomFit,type:"click",handler:this.zoomFitListener.bind(this)});this.ToolbarExpand&&this.eventRegistrar.registerEventListener({domElement:this.ToolbarExpand,type:"click",handler:this.expandListener.bind(this)});this.ToolbarCollapse&&this.eventRegistrar.registerEventListener({domElement:this.ToolbarCollapse,type:"click",handler:this.collapseListener.bind(this)})},t.prototype.onMountLibrary=function(n){this.ganttModule=n[0];this.setState({isLibraryLoaded:!0})},t.prototype.collapseListener=function(n){n.stopPropagation();n.preventDefault();this.GanttComponentMethods.collapseAll()},t.prototype.expandListener=function(n){n.stopPropagation();n.preventDefault();this.GanttComponentMethods.expandAll()},t.prototype.zoomInListener=function(n){n.stopPropagation();n.preventDefault();this.GanttComponentMethods.chartZooming(r.ZoomDirection.zoomIn)},t.prototype.zoomOutListener=function(n){n.stopPropagation();n.preventDefault();this.GanttComponentMethods.chartZooming(r.ZoomDirection.zoomOut)},t.prototype.zoomFitListener=function(n){n.stopPropagation();n.preventDefault();this.GanttComponentMethods.chartZooming(r.ZoomDirection.zoomFit)},t.prototype.getToolbarBtn=function(n){var t=this.GanttId+"_"+n;return document.getElementById(t)},Object.defineProperty(t.prototype,"ToolbarExpand",{get:function(){return this.getToolbarBtn("Expand")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ToolbarCollapse",{get:function(){return this.getToolbarBtn("Collapse")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ToolbarZoomIn",{get:function(){return this.getToolbarBtn("ZoomIn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ToolbarZoomOut",{get:function(){return this.getToolbarBtn("ZoomOut")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ToolbarZoomFit",{get:function(){return this.getToolbarBtn("ZoomFit")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loader",{get:function(){return this.ganttLoader||(this.ganttLoader=new r.GanttLoader(this)),this.ganttLoader},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GanttId",{get:function(){return this.props.dataElement?""+this.props.dataElement.Name:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DataFactory",{get:function(){return this.dataFactory||(this.dataFactory=new r.GanttSourceFactory(this.props.dataElement)),this.dataFactory},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GanttRect",{get:function(){if(!this.ganttRect||this.windowSizeChanged){var n=document.getElementById(this.props.dataElement.Name);this.ganttRect=n?n.getBoundingClientRect():null}return this.ganttRect},enumerable:!1,configurable:!0}),t.prototype.getGanttElementDimensions=function(){var n=this.DataFactory.Location,t;return n&&(n.Width&&n.Height||void 0!==n.Left&&void 0!==n.Right)?{width:n.Width?n.Width.toString()+"px":"calc(100% - "+(n.Left+n.Right)+"px)",height:n.Height?n.Height.toString()+"px":"calc(100% - "+(n.Top+n.Bottom)+"px)"}:(t=this.GanttRect,{width:t?this.ganttRect.width.toString()+"px":"100%",height:t?this.ganttRect.height.toString()+"px":"100%"})},t.prototype.postAction=function(n,t){this.props.dataElement.post(n,t)},t.prototype.handler=function(t){n.prototype.handler.call(this,t);this.state.isLibraryLoaded&&this.GanttComponentMethods.updateGantt(t)},t.prototype.createGantt=function(){var n;if(!this.state.isLibraryLoaded)return u.a.createElement(r.Loader,null);var i=this.ganttModule.ExtendedGanttComponent,f=this.ganttModule.Inject,t=this.getGanttElementDimensions(),e=t.width,s=t.height;return this.ganttModel=new h({parentId:this.GanttId,appearancePalette:null===(n=this.props.dataElement)||void 0===n?void 0:n.AppearancePalette,dataFactory:this.DataFactory,width:e,height:s,locale:this.loader.Locale,UISettings:this.ganttUISettings,invoker:this.GanttComponentMethods,postAction:this.onPostAction}),u.a.createElement(i,o({},this.ganttModel.Data),u.a.createElement(f,{services:[this.ganttModule.Edit,this.ganttModule.Selection,this.ganttModule.Sort,this.ganttModule.Resize,this.ganttModule.Reorder]}))},t.prototype.renderBrowser=function(){return this.prepareClasses(),this.prepareStyle(),u.a.createElement("div",{ref:this.GanttId,id:this.GanttId,className:"gantt-main",style:this.style},this.createGantt())},t}(r.ControlBase)},function(n,t,i){"use strict";function e(n){return new r.SPromise(function(t,i){var u=new XMLHttpRequest,e;u.open(n.method||"POST",n.url,!0);u.overrideMimeType(n.contentType||"application/json");u.onload=function(){var i=Object(r.decodeScript)(u.responseText),e;i&&i.length>0?(e=JSON.parse(i),n.withHeaders?t(e,new f(u.getAllResponseHeaders())):t(e)):t(null)};u.onerror=function(){return"MobileApp"===r.CookieHelper.GetDeviceType()&&!navigator.onLine&&"undefined"!=typeof Android?(Android.connectionLost(),i("ERR_CONNECTION_LOST ["+u.status.toString()+"]")):i(u.status)};u.setRequestHeader("Content-Type","application/json");e=n.data?JSON.stringify(n.data):"";u.send(e)})}function o(n,t){var i=new XMLHttpRequest,u=new FormData;i.open("POST","/file/upload",!0);i.setRequestHeader("Accept","application/json");i.setRequestHeader("Cache-Control","no-cache");i.setRequestHeader("scriptCharset","utf-8");i.setRequestHeader("Cache","false");i.setRequestHeader("X-Requested-With","XMLHttpRequest");i.setRequestHeader("X-File-Name",encodeURIComponent(n.name));i.withCredentials=!1;i.onload=function(){i.response.indexOf("Verifiers")>=0||r.WindowManager.Instance.ActiveWindow.post("put",n.name+"|"+i.responseText,null,t)};u.append("controlName",t);u.append("context",r.WindowManager.Instance.ActiveWindow.Handle);u.append("file",n);i.send(u)}i.d(t,"a",function(){return e});i.d(t,"b",function(){return o});var r=i(0),u=i(2),f=function(){function n(n){var t=this,i;(this.dictionary=new r.DictionaryEx,n)&&(i=n.split("\n"),u.a.each(i,function(n){var r=n.split(":"),i=r[0],u=r[1];i&&u&&!t.dictionary.containsKey(i)&&t.dictionary.add(i.trim(),u.trim())}))}return n.prototype.GetJson=function(){var t=this,n=JSON.parse("{}");return u.a.each(this.dictionary.keys,function(i){n[i]=t.dictionary.get(i)}),n},n.prototype.GetHeader=function(n){return this.dictionary.get(n)},n}()},,function(n,t,i){i(103);i(79);i(84);i(723);i(724);i(725);i(726);i(727);i(728);i(729);i(730);i(731);i(732);n.exports=i(733)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,i){function u(n){if(!i.o(r,n))return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t;});var t=r[n],u=t[0];return i.e(t[1]).then(function(){return i.t(u,7)})}var r={"./locale_de.js":[742,"scheduler"],"./locale_en.js":[743,"scheduler"],"./locale_pl.js":[744,"scheduler"],"./locale_ru.js":[745,"scheduler"]};u.keys=function(){return Object.keys(r)};u.id=722;n.exports=u},function(n,t,i){"use strict";i.r(t);t.default=i.p+"../css/BaseBrowser.201014.css"},function(n,t,i){"use strict";i.r(t);t.default=i.p+"../css/BaseMobile.201014.css"},function(n,t,i){"use strict";i.r(t);t.default=i.p+"../css/ContrastDarkBrowser.201014.css"},function(n,t,i){"use strict";i.r(t);t.default=i.p+"../css/ContrastDarkMobile.201014.css"},function(n,t,i){"use strict";i.r(t);t.default=i.p+"../css/ContrastDarkYellowBrowser.201014.css"},function(n,t,i){"use strict";i.r(t);t.default=i.p+"../css/ContrastDarkYellowMobile.201014.css"},function(n,t,i){"use strict";i.r(t);t.default=i.p+"../css/ContrastYellowBrowser.201014.css"},function(n,t,i){"use strict";i.r(t);t.default=i.p+"../css/SplashScreen.201014.css"},function(n,t,i){"use strict";i.r(t);t.default=i.p+"../css/standard.201014.css"},function(n,t,i){"use strict";i.r(t);t.default=i.p+"../css/TemptressBrowser.201014.css"},function(n,t,i){"use strict";i.r(t);t.default=i.p+"../css/TemptressMobile.201014.css"}])