Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 3.149.229.53
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/2/root/proc/2/cwd/proc/3/root/srv/modoboa/instance/sitestatic/modoboa_radicale/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/2/root/proc/2/cwd/proc/3/root/srv/modoboa/instance/sitestatic/modoboa_radicale/js/app.3b41380b.js
(function(e){function t(t){for(var n,c,d=t[0],l=t[1],o=t[2],i=0,h=[];i<d.length;i++)c=d[i],Object.prototype.hasOwnProperty.call(s,c)&&s[c]&&h.push(s[c][0]),s[c]=0;for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n]);u&&u(t);while(h.length)h.shift()();return r.push.apply(r,o||[]),a()}function a(){for(var e,t=0;t<r.length;t++){for(var a=r[t],n=!0,c=1;c<a.length;c++){var l=a[c];0!==s[l]&&(n=!1)}n&&(r.splice(t--,1),e=d(d.s=a[0]))}return e}var n={},s={app:0},r=[];function c(e){return d.p+"modoboa_radicale/js/"+({}[e]||e)+"."+{"chunk-2d0a34bd":"38f1b8ac","chunk-2d0a34e9":"aa2f9818","chunk-2d0a351b":"d523003b","chunk-2d0a370a":"7cb9a786","chunk-2d0a3cf3":"c5d7ff9a","chunk-2d0a4765":"1066ddf0","chunk-2d0aa178":"96bc4fd8","chunk-2d0aa29d":"216ecb67","chunk-2d0aa7f4":"989dd17b","chunk-2d0aacb9":"4e1eef71","chunk-2d0ab4ca":"347d33d3","chunk-2d0aeafd":"35e12850","chunk-2d0af42a":"3b6c40cc","chunk-2d0b1ba3":"756f7a1d","chunk-2d0b1e62":"bbfa952f","chunk-2d0b28e9":"2c856757","chunk-2d0b2c78":"e29741a6","chunk-2d0b2cae":"7b6eb2c1","chunk-2d0b324c":"43e7a9df","chunk-2d0b32bc":"ab9fbcea","chunk-2d0b384e":"1da65c7d","chunk-2d0b39b2":"51a0b021","chunk-2d0b3d9f":"f486c51f","chunk-2d0b5d2c":"d2e25cb6","chunk-2d0b5fc8":"734e57f4","chunk-2d0b6a98":"20fa941c","chunk-2d0b8a68":"4f376da5","chunk-2d0b8e50":"c596b0e0","chunk-2d0b92c3":"e67b8e89","chunk-2d0b9939":"401d2b15","chunk-2d0bb23d":"70af3aac","chunk-2d0bd1a7":"dbd5c137","chunk-2d0c04c3":"4a116989","chunk-2d0c04d4":"90b774b4","chunk-2d0c0614":"1cfefbaa","chunk-2d0c18eb":"f70a3c4c","chunk-2d0c1cfa":"9a66854f","chunk-2d0c2137":"71ff87d8","chunk-2d0c4244":"b47f1b89","chunk-2d0c42c4":"ee0c807b","chunk-2d0c5111":"f63b9671","chunk-2d0c573c":"b31a9b2e","chunk-2d0c77bd":"95a4c6e5","chunk-2d0c792f":"1d469d1e","chunk-2d0c8256":"04708180","chunk-2d0c8a53":"97bd157e","chunk-2d0c8a76":"ed3dd8c3","chunk-2d0c8f7c":"10b5e7ad","chunk-2d0c8fac":"3a8775bc","chunk-2d0c91f5":"d7a282dd","chunk-2d0c932c":"54544644","chunk-2d0cba82":"062fdd9a","chunk-2d0cc668":"c9cdf61f","chunk-2d0ccf78":"6194c795","chunk-2d0cfac5":"6f313dad","chunk-2d0cfe47":"0a9b5d86","chunk-2d0d0787":"d37576c7","chunk-2d0d34e2":"be40f968","chunk-2d0d3ae0":"57553fc8","chunk-2d0d3c90":"02a7fd8e","chunk-2d0d641c":"f11e0376","chunk-2d0d6ad1":"a30630d8","chunk-2d0d79d8":"68d5f954","chunk-2d0d7aa2":"09d5d493","chunk-2d0da354":"affd8e0c","chunk-2d0dab02":"c9171d69","chunk-2d0dae2a":"cfe8be89","chunk-2d0db8a3":"2e76e347","chunk-2d0dd3d3":"2156511e","chunk-2d0de2f2":"9c6205d0","chunk-2d0df846":"3eb7912b","chunk-2d0e1462":"91271dcb","chunk-2d0e1f93":"2562c217","chunk-2d0e290e":"4e44099c","chunk-2d0e5230":"d1d0ead1","chunk-2d0e5971":"2323661f","chunk-2d0e5c1c":"60884784","chunk-2d0e68a5":"40f7b2c3","chunk-2d0e88af":"2a8f39b0","chunk-2d0ea117":"360360e9","chunk-2d0efce1":"7246fc33","chunk-2d0f009a":"e0814905","chunk-2d0f0a0e":"a1461275","chunk-2d207328":"29ef0191","chunk-2d207717":"9a165933","chunk-2d207744":"3a534bb0","chunk-2d207eb9":"e38390d9","chunk-2d2084aa":"cd133641","chunk-2d2084f6":"209f4b40","chunk-2d208e1c":"a438885f","chunk-2d20e785":"26ad7cf3","chunk-2d20ed77":"30a3396b","chunk-2d20f937":"a2a989e7","chunk-2d20fb2b":"009dcb14","chunk-2d210669":"cad6945b","chunk-2d21084d":"59d1c22b","chunk-2d210feb":"fc9751a9","chunk-2d213ad4":"b1641a0e","chunk-2d215ca3":"e85ec882","chunk-2d217a1d":"04de90ec","chunk-2d2183ba":"5ec3a09f","chunk-2d21a5d4":"1f061c06","chunk-2d21d873":"d41b0cab","chunk-2d21ddf7":"cf760d33","chunk-2d21f0be":"bb9ada43","chunk-2d221c16":"45d0201c","chunk-2d221df3":"d99c379e","chunk-2d221e50":"faa14d47","chunk-2d222d37":"dc53864e","chunk-2d22566f":"551ccd38","chunk-2d22579a":"4f3d6be3","chunk-2d225c72":"fc461e84","chunk-2d226318":"b96c66cd","chunk-2d229007":"f04c1643","chunk-2d2290fe":"6300e2ac","chunk-2d229443":"b3ed5ea8","chunk-2d229b94":"62e30ac0","chunk-2d229da7":"652d59e8","chunk-2d22c868":"0633fb66","chunk-2d22d73b":"d182bb64","chunk-2d22dd78":"f5799475","chunk-2d2311ab":"724fe385","chunk-2d237211":"2643e964","chunk-2d237512":"33a31641","chunk-2d237b1e":"8afa9414","chunk-2d237d7e":"4da3e806","chunk-2d238064":"e51f10ca","chunk-2d238094":"ad7cff9d","chunk-2d238102":"aab95c03","chunk-2d2382a7":"a08a4419","chunk-2d2386b5":"52214e47","chunk-744bf72f":"1c883f80","chunk-7490c111":"c0cd24f5","chunk-74b4d726":"fd26f3f6"}[e]+".js"}function d(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var t=[],a=s[e];if(0!==a)if(a)t.push(a[2]);else{var n=new Promise((function(t,n){a=s[e]=[t,n]}));t.push(a[2]=n);var r,l=document.createElement("script");l.charset="utf-8",l.timeout=120,d.nc&&l.setAttribute("nonce",d.nc),l.src=c(e);var o=new Error;r=function(t){l.onerror=l.onload=null,clearTimeout(i);var a=s[e];if(0!==a){if(a){var n=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;o.message="Loading chunk "+e+" failed.\n("+n+": "+r+")",o.name="ChunkLoadError",o.type=n,o.request=r,a[1](o)}s[e]=void 0}};var i=setTimeout((function(){r({type:"timeout",target:l})}),12e4);l.onerror=l.onload=r,document.head.appendChild(l)}return Promise.all(t)},d.m=e,d.c=n,d.d=function(e,t,a){d.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,t){if(1&t&&(e=d(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(d.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)d.d(a,n,function(t){return e[t]}.bind(null,n));return a},d.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return d.d(t,"a",t),t},d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},d.p="/sitestatic/",d.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],o=l.push.bind(l);l.push=t,l=l.slice();for(var i=0;i<l.length;i++)t(l[i]);var u=o;r.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"034f":function(e,t,a){"use strict";var n=a("85ec"),s=a.n(n);s.a},"0617":function(e,t,a){},1:function(e,t){},"2f1f":function(e){e.exports=JSON.parse('{"en":{"A calendar is required.":"A calendar is required.","Access rules":"Access rules","Account":"Account","All day":"All day","Are you sure you want to delete this calendar?":"Are you sure you want to delete this calendar?","Are you sure you want to remove this event?":"Are you sure you want to remove this event?","Attendees":"Attendees","Calendar created":"Calendar created","Calendar deleted":"Calendar deleted","Calendar information":"Calendar information","Calendar sharing":"Calendar sharing","Calendar updated":"Calendar updated","Choose a domain":"Choose a domain","Close":"Close","Color":"Color","Create":"Create","Delete":"Delete","Description":"Description","Detail":"Detail","Edit":"Edit","Edit calendar":"Edit calendar","Edit event":"Edit event","Event deleted":"Event deleted","Event updated":"Event updated","Information":"Information","My calendars":"My calendars","Name":"Name","New calendar":"New calendar","New event":"New event","Read":"Read","Save":"Save","Shared calendars":"Shared calendars","Shared?":"Shared?","Success":"Success","The credentials are the same than the ones you use to access Modoboa.":"The credentials are the same than the ones you use to access Modoboa.","Title":"Title","To access this calendar from the outside (such as Mozilla Thunderbird or your smartphone), use the following URL:":"To access this calendar from the outside (such as Mozilla Thunderbird or your smartphone), use the following URL:","Update":"Update","Write":"Write"},"fr":{"%{ n } event imported":["%{ n } évènement importé","%{ n } évènements importés"],"A calendar is required.":"Un calendrier est requis.","Access rules":"Règles d\'accès","Account":"Compte","All day":"Toute la journée","Are you sure you want to delete this calendar?":"Etes vous certain de vouloir supprimer ce calendrier ?","Are you sure you want to remove this event?":"Etes vous certain de vouloir supprimer cet évènement ?","Attendees":"Invités","Calendar created":"Calendrier créé","Calendar deleted":"Calendrier supprimé","Calendar information":"Informations du calendrier","Calendar sharing":"Partage de calendrier","Calendar updated":"Calendrier mis à jour","Choose a domain":"Choisissez un domaine","Close":"Fermer","Color":"Couleur","Create":"Créer","Delete":"Supprimer","Description":"Description","Detail":"Détail","Edit":"Modifier","Edit calendar":"Modifier le calendrier","Edit event":"Modifier l\'évènement","Event deleted":"Evènement supprimé","Event updated":"Evènement mis à jour","Import":"Importer","Import events":"Importer des évènements","Information":"Informations","My calendars":"Mes calendriers","Name":"Nom","New calendar":"Nouveau calendrier","New event":"Nouvel évènement","Read":"Lecture","Save":"Enregistrer","Select an ICS file to import and click on the Send button":"Sélectionner un fichier ICS à importer puis cliquer sur le bouton Envoyer","Send":"Envoyer","Shared calendars":"Calendriers partagés","Shared?":"Partagé ?","Success":"Succès","The credentials are the same than the ones you use to access Modoboa.":"Les identifiants sont les mêmes que ceux utilisés pour accéder à Modoboa.","Title":"Titre","To access this calendar from the outside (such as Mozilla Thunderbird or your smartphone), use the following URL:":"Pour accéder à ce calendrier depuis l\'extérieur (par exemple depuis Mozilla Thunderbird ou votre smartphone), utilisez l\'URL suivante :","Update":"Mettre à jour","Write":"Ecriture","You can also share a read-only version of this calendar using the following URL:":"Vous pouvez aussi partager ce calendrier en lecture seule en utilisant l\'URL suivante :"}}')},4678:function(e,t,a){var n={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function s(e){var t=r(e);return a(t)}function r(e){if(!a.o(n,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}s.keys=function(){return Object.keys(n)},s.resolve=r,e.exports=s,s.id="4678"},"48a9":function(e,t,a){var n={"./ar.js":["f8e5","chunk-2d22dd78"],"./at.js":["1adf","chunk-2d0b5fc8"],"./az.js":["8a5e","chunk-2d0e88af"],"./be.js":["a003","chunk-2d207328"],"./bg.js":["f437","chunk-2d22c868"],"./bn.js":["e82a","chunk-2d226318"],"./bs.js":["b9ec","chunk-2d210feb"],"./cat.js":["fe2a","chunk-2d238064"],"./cs.js":["1014","chunk-2d0aa178"],"./cy.js":["4e89","chunk-2d0cc668"],"./da.js":["fbe1","chunk-2d237b1e"],"./de.js":["26df","chunk-2d0b32bc"],"./default.js":["40ce","chunk-2d0c04d4"],"./eo.js":["57b6","chunk-2d0c932c"],"./es.js":["4984","chunk-2d0c2137"],"./et.js":["8115","chunk-2d0dd3d3"],"./fa.js":["787b","chunk-2d0d7aa2"],"./fi.js":["7b0b9","chunk-74b4d726"],"./fo.js":["dc9b","chunk-2d2290fe"],"./fr.js":["0227","chunk-2d0a34bd"],"./ga.js":["01d7","chunk-2d0a370a"],"./gr.js":["5bcb","chunk-2d0d34e2"],"./he.js":["4211","chunk-2d0c0614"],"./hi.js":["feff","chunk-2d2386b5"],"./hr.js":["8fe8","chunk-2d0ea117"],"./hu.js":["295f","chunk-2d0b384e"],"./id.js":["022c","chunk-2d0a34e9"],"./index.js":["cbfa","chunk-2d221e50"],"./is.js":["252b","chunk-2d0b28e9"],"./it.js":["ae60","chunk-2d213ad4"],"./ja.js":["50ca","chunk-2d0c792f"],"./ka.js":["a74d","chunk-2d208e1c"],"./km.js":["e50d","chunk-2d22579a"],"./ko.js":["5445","chunk-2d0c8256"],"./kz.js":["d24c","chunk-2d21d873"],"./lt.js":["60bcb","chunk-7490c111"],"./lv.js":["d7c8","chunk-2d21f0be"],"./mk.js":["df51","chunk-2d229b94"],"./mn.js":["e69d","chunk-2d225c72"],"./ms.js":["7ef0","chunk-2d0e290e"],"./my.js":["4844","chunk-2d0c1cfa"],"./nl.js":["dee5","chunk-2d229da7"],"./no.js":["b874","chunk-2d210669"],"./pa.js":["c066","chunk-2d215ca3"],"./pl.js":["b579","chunk-2d20fb2b"],"./pt.js":["228d","chunk-2d0b1e62"],"./ro.js":["655e","chunk-2d0cfac5"],"./ru.js":["6ffc","chunk-2d0db8a3"],"./si.js":["7d5e","chunk-2d0e1f93"],"./sk.js":["727b","chunk-2d0d641c"],"./sl.js":["92cd","chunk-2d0e5230"],"./sq.js":["26b4","chunk-2d0b324c"],"./sr-cyr.js":["cfec","chunk-2d222d37"],"./sr.js":["0e21","chunk-2d0af42a"],"./sv.js":["98d4","chunk-2d0e68a5"],"./th.js":["8521","chunk-2d0de2f2"],"./tr.js":["f80c","chunk-2d22d73b"],"./uk.js":["fb33","chunk-2d237512"],"./vn.js":["c80b","chunk-2d217a1d"],"./zh-tw.js":["3a66","chunk-2d0c42c4"],"./zh.js":["dc1c","chunk-2d229007"]};function s(e){if(!a.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],s=t[0];return a.e(t[1]).then((function(){return a.t(s,7)}))}s.keys=function(){return Object.keys(n)},s.id="48a9",e.exports=s},"51c4":function(e,t,a){"use strict";var n=a("0617"),s=a.n(n);s.a},"56d7":function(e,t,a){"use strict";a.r(t);a("4de4"),a("d3b7"),a("e260"),a("e6cf"),a("cca6"),a("a79d");var n=a("2b0e"),s=a("8c4f"),r=a("a78e"),c=a.n(r),d=a("c1df"),l=a.n(d),o=a("5035"),i=a.n(o),u=a("8e5f"),h=a.n(u),f=a("cf06"),m=a.n(f),v=a("c38f"),p=a.n(v),b=(a("0952"),a("03a5")),k=a.n(b),j=a("ee98"),C=a.n(j),g=a("692b"),y=a.n(g),_=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("div",{staticClass:"sidebar collapse navbar-collapse",attrs:{id:"leftcol"}},[a("ul",{staticClass:"nav nav-sidebar",attrs:{role:"menu"}},[a("li",[a("a",{attrs:{href:"#"},on:{click:e.openCreateCalendarForm}},[a("span",{staticClass:"fa fa-plus"}),e._v(" "),a("translate",[e._v("New calendar")])],1)]),a("li",{staticClass:"nav-header"},[a("translate",[e._v("My calendars")])],1),e._l(e.calendars,(function(t){return a("li",{key:t.pk,staticClass:"dropdown-submenu"},[a("a",{attrs:{href:"#"},on:{click:e.toggleSubmenu}},[a("span",{staticClass:"square",style:{"background-color":t.color}}),e._v(" "+e._s(t.name))]),a("ul",{staticClass:"dropdown-menu"},[a("li",[a("a",{attrs:{href:"#"},on:{click:function(a){return e.displayCalendarInfo(t,a)}}},[a("span",{staticClass:"fa fa-info"}),e._v(" "),a("translate",[e._v("Information")])],1)]),a("li",[a("a",{attrs:{href:"#"},on:{click:function(a){return e.editCalendar(t,a)}}},[a("span",{staticClass:"fa fa-edit"}),e._v(" "),a("translate",[e._v("Edit")])],1)]),a("li",[a("a",{attrs:{href:"#"},on:{click:function(a){return e.editCalendarAccessRules(t.pk,a)}}},[a("span",{staticClass:"fa fa-filter"}),e._v(" "),a("translate",[e._v("Access rules")])],1)]),a("li",[a("a",{attrs:{href:"#"},on:{click:function(a){return e.deleteCalendar(t,a)}}},[a("span",{staticClass:"fa fa-trash"}),e._v(" "),a("translate",[e._v("Delete")])],1)]),a("li",[a("a",{attrs:{href:"#"},on:{click:function(a){return e.openImportEventsForm(t,a)}}},[a("span",{staticClass:"fa fa-download"}),e._v(" "),a("translate",[e._v("Import")])],1)])])])})),a("li",{staticClass:"nav-header"},[a("translate",[e._v("Shared calendars")])],1),e._l(e.sharedCalendars,(function(t){return a("li",{key:t.pk,staticClass:"dropdown-submenu"},[a("a",{attrs:{href:"#"},on:{click:e.toggleSharedCalendarMenu}},[a("span",{staticClass:"square",style:{"background-color":t.color}}),e._v(" "+e._s(t.name)+" ")]),a("ul",{staticClass:"dropdown-menu"},[a("li",[a("a",{attrs:{href:"#"},on:{click:function(a){return e.displayCalendarInfo(t,a)}}},[a("span",{staticClass:"fa fa-info"}),e._v(" "),a("translate",[e._v("Information")])],1)]),a("li",{directives:[{name:"can",rawName:"v-can",value:"modoboa_radicale.change_sharedcalendar",expression:"'modoboa_radicale.change_sharedcalendar'"}]},[a("a",{attrs:{href:"#"},on:{click:function(a){return e.editCalendar(t,a)}}},[a("span",{staticClass:"fa fa-edit"}),e._v(" "),a("translate",[e._v("Edit")])],1)]),a("li",{directives:[{name:"can",rawName:"v-can",value:"modoboa_radicale.delete_sharedcalendar",expression:"'modoboa_radicale.delete_sharedcalendar'"}]},[a("a",{attrs:{href:"#"},on:{click:function(a){return e.deleteCalendar(t,a)}}},[a("span",{staticClass:"fa fa-trash"}),e._v(" "),a("translate",[e._v("Delete")])],1)])])])}))],2)]),a("div",{staticClass:"main"},[a("router-view")],1),e.showCalendarForm?a("calendar-form",{attrs:{initialCalendar:e.currentCalendar,show:e.showCalendarForm},on:{"update:show":function(t){e.showCalendarForm=t}}}):e._e(),e.showAccessRulesForm?a("calendar-accessrules-form",{attrs:{show:e.showAccessRulesForm,calendarPk:e.currentCalendarPk},on:{"update:show":function(t){e.showAccessRulesForm=t}}}):e._e(),e.showCalendarDetail?a("calendar-detail",{attrs:{show:e.showCalendarDetail,calendar:e.currentCalendar},on:{"update:show":function(t){e.showCalendarDetail=t}}}):e._e(),e.showImportEventsForm?a("import-events-form",{attrs:{show:e.showImportEventsForm,calendar:e.currentCalendar},on:{"update:show":function(t){e.showImportEventsForm=t}}}):e._e(),a("notifications",{attrs:{position:"top right",group:"default"}})],1)},E=[],w=a("2f62"),x=a("1157"),$=a.n(x),S=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("modal",[a("div",{attrs:{slot:"header"},slot:"header"},[e.calendar.pk?a("h3",{staticClass:"modal-title"},[a("translate",[e._v("Edit calendar")])],1):a("h3",{staticClass:"modal-title"},[a("translate",[e._v("New calendar")])],1)]),a("div",{attrs:{slot:"body"},slot:"body"},[a("form",{staticClass:"form-horizontal",attrs:{id:"calendarForm",method:"post",enctype:"multipart/form-data"},on:{submit:function(t){return t.preventDefault(),e.saveCalendar(t)}}},[a("div",{staticClass:"form-group",class:{"has-error":e.formErrors["name"]||e.formErrors["name"]}},[a("div",{staticClass:"col-sm-10"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.calendar.name,expression:"calendar.name"}],staticClass:"form-control",attrs:{type:"text",id:"name",name:"name",placeholder:e.namePlaceHolder},domProps:{value:e.calendar.name},on:{input:function(t){t.target.composing||e.$set(e.calendar,"name",t.target.value)}}}),e.formErrors["name"]?a("span",{staticClass:"help-block"},[e._v(e._s(e.formErrors["name"][0]))]):e._e()])]),a("div",{directives:[{name:"can",rawName:"v-can",value:"modoboa_radicale.add_sharedcalendar",expression:"'modoboa_radicale.add_sharedcalendar'"}],staticClass:"row"},[e.calendar.pk?e._e():a("div",{staticClass:"col-sm-3"},[a("div",{staticClass:"checkbox"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.shared,expression:"shared"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.shared)?e._i(e.shared,null)>-1:e.shared},on:{change:function(t){var a=e.shared,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,c=e._i(a,r);n.checked?c<0&&(e.shared=a.concat([r])):c>-1&&(e.shared=a.slice(0,c).concat(a.slice(c+1)))}else e.shared=s}}}),a("translate",[e._v("Shared?")])],1)])]),a("div",{staticClass:"col-sm-9"},[e.shared?a("multiselect",{attrs:{options:e.domains,label:"name",placeholder:e.domainPlaceHolder},model:{value:e.calendar.domain,callback:function(t){e.$set(e.calendar,"domain",t)},expression:"calendar.domain"}}):e._e()],1)]),a("h4",[a("small",[a("translate",[e._v("Color")])],1)]),a("compact-picker",{model:{value:e.calendar.color,callback:function(t){e.$set(e.calendar,"color",t)},expression:"calendar.color"}}),a("hr"),a("div",{staticClass:"pull-right"},[a("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:e.close}},[a("translate",[e._v("Close")])],1),a("input",{staticClass:"btn btn-primary",attrs:{type:"submit"},domProps:{value:e.submitLabel}})]),a("div",{staticClass:"clearfix"})],1)])])},D=[],R=a("c345"),A=a("28dd");n["default"].use(A["a"]);var O=n["default"].resource("/api/v1/user-calendars{/pk}/"),N=function(e){return O.get()},F=function(e){return O.save(e)},P=function(e,t){return O.update({pk:e},t)},z=function(e){return O.delete({pk:e})},M=n["default"].resource("/api/v1/shared-calendars{/pk}/"),T=function(){return M.get()},L=function(e){return M.save(e)},I=function(e,t){return M.update({pk:e},t)},U=function(e){return M.delete({pk:e})},H={patch:{method:"PATCH",url:"/api/v1{/type}-calendars{/calendar_pk}/events{/pk}/"},importEvents:{method:"POST",url:"/api/v1{/type}-calendars{/calendar_pk}/events/import_from_file/"}},q=n["default"].resource("/api/v1{/type}-calendars{/calendar_pk}/events{/pk}/",{},H),J=function(e,t,a){return q.get({type:t,calendar_pk:e,pk:a})},W=function(e,t){var a=e.domain?"shared":"user";return q.save({type:a,calendar_pk:e.pk},t)},Y=function(e,t,a){var n=a.calendar.domain?"shared":"user";return n!==e.type&&(a["new_calendar_type"]=n),a.calendar=a.calendar.pk,q.update({type:e.type,calendar_pk:e.pk,pk:t},a)},B=function(e,t,a){var n=e.domain?"shared":"user";return q.patch({type:n,calendar_pk:e.pk,pk:t},a)},V=function(e,t){var a=e.domain?"shared":"user";return q.delete({type:a,calendar_pk:e.pk,pk:t})},K=function(e,t){var a=e.domain?"shared":"user";return q.importEvents({type:a,calendar_pk:e.pk},t)},X=n["default"].resource("/api/v1/attendees{/pk}/"),Z=function(){return X.get()},G=n["default"].resource("/api/v1/mailboxes{/pk}/"),Q=function(){return G.get()},ee=n["default"].resource("/api/v1/accessrules{/pk}/"),te=n["default"].resource("/api/v1/domains{/pk}/"),ae=function(){return te.get()},ne=function(e){var t={};return void 0!==e&&(t.calendar=e),ee.get(t)},se=function(e){return ee.save(e)},re=function(e,t){return ee.update({pk:e},t)},ce=function(e){return ee.delete({pk:e})},de={props:{initialCalendar:{type:Object,default:function(){return{color:""}}},show:{type:Boolean,default:!1}},components:{"compact-picker":R["Compact"]},created:function(){var e=this;ae().then((function(t){e.domains=t.data}))},data:function(){return{calendar:JSON.parse(JSON.stringify(this.initialCalendar)),shared:void 0!==this.initialCalendar.domain,domains:[],formErrors:{}}},computed:{colorPlaceHolder:function(){return this.$gettext("Color")},namePlaceHolder:function(){return this.$gettext("Name")},domainPlaceHolder:function(){return this.$gettext("Choose a domain")},submitLabel:function(){return this.calendar.pk?this.$gettext("Update"):this.$gettext("Create")}},methods:{close:function(){this.calendar={},this.shared=!1,this.formErrors={},this.$emit("update:show",!1)},saveCalendar:function(){var e,t,a=this,n=JSON.parse(JSON.stringify(this.calendar));n.color=n.color.hex,this.calendar.pk?(e=this.shared?"updateSharedCalendar":"updateCalendar",t=this.$gettext("Calendar updated")):(e=this.shared?"createSharedCalendar":"createCalendar",t=this.$gettext("Calendar created")),this.$store.dispatch(e,n).then((function(){n.color!==a.initialCalendar.color&&a.$bus.$emit("calendarColorChanged",n),a.close(),a.$notify({group:"default",title:a.$gettext("Success"),type:"success",text:t})}))}}},le=de,oe=(a("60bc"),a("2877")),ie=Object(oe["a"])(le,S,D,!1,null,null,null),ue=ie.exports,he=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("modal",[a("div",{attrs:{slot:"header"},slot:"header"},[a("h3",{staticClass:"modal-title"},[a("translate",[e._v("Calendar sharing")])],1)]),a("div",{attrs:{slot:"body"},slot:"body"},[a("form",{staticClass:"form-inline",attrs:{id:"accessRulesForm",method:"post"}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm-6"},[a("multiselect",{attrs:{label:"full_address",options:e.mailboxes},model:{value:e.currentRule.mailbox,callback:function(t){e.$set(e.currentRule,"mailbox",t)},expression:"currentRule.mailbox"}}),e.formErrors["mailbox"]?a("span",{staticClass:"help-block"},[e._v(e._s(e.formErrors["mailbox"][0]))]):e._e()],1),a("div",{staticClass:"col-sm-4"},[a("label",{staticClass:"checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentRule.read,expression:"currentRule.read"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.currentRule.read)?e._i(e.currentRule.read,null)>-1:e.currentRule.read},on:{change:function(t){var a=e.currentRule.read,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,c=e._i(a,r);n.checked?c<0&&e.$set(e.currentRule,"read",a.concat([r])):c>-1&&e.$set(e.currentRule,"read",a.slice(0,c).concat(a.slice(c+1)))}else e.$set(e.currentRule,"read",s)}}}),e._v(" "),a("translate",[e._v("Read")])],1),a("label",{staticClass:"checkbox"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.currentRule.write,expression:"currentRule.write"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.currentRule.write)?e._i(e.currentRule.write,null)>-1:e.currentRule.write},on:{change:function(t){var a=e.currentRule.write,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,c=e._i(a,r);n.checked?c<0&&e.$set(e.currentRule,"write",a.concat([r])):c>-1&&e.$set(e.currentRule,"write",a.slice(0,c).concat(a.slice(c+1)))}else e.$set(e.currentRule,"write",s)}}}),e._v(" "),a("translate",[e._v("Write")])],1)]),a("div",{staticClass:"col-sm-2"},[a("a",{staticClass:"btn btn-primary",attrs:{href:"#"},on:{click:e.saveRule}},[a("span",{staticClass:"fa fa-save"})])])])]),a("br"),a("table",{staticClass:"table"},[a("thead",[a("tr",[a("th",[a("translate",[e._v("Account")])],1),a("th",[a("translate",[e._v("Read")])],1),a("th",[a("translate",[e._v("Write")])],1),a("th")])]),a("tbody",e._l(e.accessRules,(function(t){return a("tr",{key:t.pk},[a("td",[e._v(e._s(t.mailbox.full_address))]),a("td",[t.read?a("span",{staticClass:"fa fa-check"}):a("span",{staticClass:"fa fa-close"})]),a("td",[t.write?a("span",{staticClass:"fa fa-check"}):a("span",{staticClass:"fa fa-close"})]),a("td",[a("a",{attrs:{href:"#"},on:{click:function(a){return e.editRule(t)}}},[a("span",{staticClass:"fa fa-edit"})]),a("a",{attrs:{href:"#"},on:{click:function(a){return e.deleteRule(t.pk)}}},[a("span",{staticClass:"fa fa-trash"})])])])})),0)]),a("hr"),a("div",{staticClass:"pull-right"},[a("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:e.close}},[a("translate",[e._v("Close")])],1)]),a("div",{staticClass:"clearfix"})])])},fe=[],me=(a("a9e3"),{props:{calendarPk:Number},data:function(){return{accessRules:[],mailboxes:[],currentRule:{},formErrors:{}}},created:function(){var e=this;ne(this.calendarPk).then((function(t){e.accessRules=t.data,e.accessRules.length||(e.accessRules=[])})),Q().then((function(t){e.mailboxes=t.data}))},methods:{saveRule:function(){var e=this;this.currentRule.pk?re(this.currentRule.pk,this.currentRule).then((function(t){e.accessRules.filter((function(t,a){t.pk===e.currentRule.pk&&n["default"].set(e.accessRules,a,e.currentRule)})),e.resetForm()}),this.onError):(this.currentRule.calendar=this.calendarPk,se(this.currentRule).then((function(t){e.accessRules.push(t.data),e.resetForm()}),this.onError))},resetForm:function(){this.currentRule={},this.formErrors={}},onError:function(e){this.formErrors=e.data},editRule:function(e){this.currentRule=JSON.parse(JSON.stringify(e))},deleteRule:function(e){var t=this;ce(e).then((function(a){t.accessRules=t.accessRules.filter((function(t){return t.pk!==e}))}))},close:function(){this.formErrors={},this.$emit("update:show",!1)}}}),ve=me,pe=Object(oe["a"])(ve,he,fe,!1,null,null,null),be=pe.exports,ke=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("modal",[a("div",{attrs:{slot:"header"},slot:"header"},[a("h3",{staticClass:"modal-title"},[a("translate",[e._v("Calendar information")])],1)]),a("div",{attrs:{slot:"body"},slot:"body"},[a("p",[a("translate",[e._v("To access this calendar from the outside (such as Mozilla Thunderbird or your smartphone), use the following URL: ")])],1),a("div",{staticClass:"alert alert-info"},[e._v(" "+e._s(e.calendar.full_url)+" ")]),a("p",[a("translate",[e._v("The credentials are the same than the ones you use to access Modoboa.")])],1),a("p",[a("translate",[e._v("You can also share a read-only version of this calendar using the following URL: ")])],1),a("div",{staticClass:"alert alert-info"},[e._v(" "+e._s(e.calendar.share_url)+" ")]),a("hr"),a("div",{staticClass:"pull-right"},[a("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:e.close}},[a("translate",[e._v("Close")])],1)]),a("div",{staticClass:"clearfix"})])])},je=[],Ce={props:{calendar:Object},methods:{close:function(){this.$emit("update:show",!1)}}},ge=Ce,ye=Object(oe["a"])(ge,ke,je,!1,null,null,null),_e=ye.exports,Ee=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("modal",[a("div",{attrs:{slot:"header"},slot:"header"},[a("h3",{staticClass:"modal-title"},[a("translate",[e._v("Import events")])],1)]),a("div",{attrs:{slot:"body"},slot:"body"},[a("form",{staticClass:"form-inline",on:{submit:function(t){return t.preventDefault(),e.sendFile(t)}}},[a("div",{staticClass:"alert alert-info"},[a("translate",[e._v("Select an ICS file to import and click on the Send button")])],1),a("input",{ref:"file",attrs:{type:"file",name:"file"},on:{change:e.setFile}}),e.formErrors["ics_file"]?a("span",{staticClass:"help-block"},[e._v(e._s(e.formErrors["ics_file"][0]))]):e._e(),a("hr"),a("div",{staticClass:"pull-right"},[a("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:e.close}},[a("translate",[e._v("Close")])],1),a("input",{staticClass:"btn btn-primary",attrs:{type:"submit",disabled:e.runningUpload},domProps:{value:e.submitLabel}})]),a("div",{staticClass:"clearfix"})])])])},we=[],xe={props:{calendar:Object,show:{type:Boolean,default:!1}},data:function(){return{file:null,formErrors:{},runningUpload:!1}},computed:{submitLabel:function(){return this.$gettext("Send")}},methods:{close:function(){this.formErrors={},this.$emit("update:show",!1)},setFile:function(){this.file=this.$refs.file.files[0]},onSendError:function(e){this.formErrors=e.data,this.runningUpload=!1},sendFile:function(){var e=this,t=new FormData;t.append("ics_file",this.file),this.runningUpload=!0,K(this.calendar,t).then((function(t){e.close();var a=e.$ngettext("%{ n } event imported","%{ n } events imported",t.data.counter);e.$bus.$emit("eventsImported",e.calendar),e.$notify({group:"default",title:e.$gettext("Success"),type:"success",text:e.$gettextInterpolate(a,{n:t.data.counter})})}),this.onSendError)}}},$e=xe,Se=Object(oe["a"])($e,Ee,we,!1,null,null,null),De=Se.exports,Re={components:{"calendar-form":ue,"calendar-accessrules-form":be,"calendar-detail":_e,"import-events-form":De},computed:Object(w["b"])(["calendars","sharedCalendars"]),data:function(){return{currentCalendarPk:void 0,currentCalendar:void 0,showCalendarForm:!1,showAccessRulesForm:!1,showCalendarDetail:!1,showImportEventsForm:!1,currentMenu:null}},created:function(){this.$store.dispatch("getCalendars"),this.$store.dispatch("getSharedCalendars")},methods:{openCreateCalendarForm:function(){this.currentCalendar=void 0,this.showCalendarForm=!0},displayCalendarInfo:function(e,t){this.closeMenu(t),this.showCalendarDetail=!0,this.currentCalendar=e},editCalendar:function(e,t){this.closeMenu(t),this.currentCalendar=e,this.showCalendarForm=!0},editCalendarAccessRules:function(e,t){this.closeMenu(t),this.currentCalendarPk=e,this.showAccessRulesForm=!0},deleteCalendar:function(e,t){var a=this;this.closeMenu(t);var n=e.domain?"shared":"user",s="shared"===n?"deleteSharedCalendar":"deleteCalendar",r=this.$gettext("Are you sure you want to delete this calendar?");this.$dialog.confirm(r).then((function(){a.$store.dispatch(s,e.pk).then((function(){a.$bus.$emit("calendarDeleted",e),a.$notify({group:"default",title:a.$gettext("Success"),type:"success",text:a.$gettext("Calendar deleted")})}))}))},openImportEventsForm:function(e,t){this.closeMenu(t),this.currentCalendar=e,this.showImportEventsForm=!0},closeMenu:function(e){$()(e.target).closest("ul").toggle(),this.currentMenu=null},toggleSubmenu:function(e){var t=$()(e.target).next("ul");this.currentMenu&&(this.currentMenu.toggle(),this.currentMenu.is(t))?this.currentMenu=void 0:(this.currentMenu=t,this.currentMenu.toggle())},toggleSharedCalendarMenu:function(e){this.toggleSubmenu(e)}}},Ae=Re,Oe=(a("034f"),Object(oe["a"])(Ae,_,E,!1,null,null,null)),Ne=Oe.exports,Fe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e.showCreateEventForm?a("create-event-form",{attrs:{start:e.start,end:e.end,allDay:e.allDay,show:e.showCreateEventForm},on:{"update:show":function(t){e.showCreateEventForm=t},eventCreated:e.renderEvent}}):e._e(),e.showEventForm?a("event-form",{attrs:{id:e.currentId,show:e.showEventForm},on:{"update:show":function(t){e.showEventForm=t},eventDeleted:e.deleteEvent}}):e._e()],1)},Pe=[],ze=a("b85c"),Me=(a("228e"),a("1315")),Te=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("modal",[a("div",{attrs:{slot:"header"},slot:"header"},[a("h3",{staticClass:"modal-title"},[a("translate",[e._v("New event")])],1)]),a("div",{attrs:{slot:"body"},slot:"body"},[a("form",{staticClass:"form-horizontal",attrs:{id:"eventForm",method:"post",enctype:"multipart/form-data"},on:{submit:function(t){return t.preventDefault(),e.saveEvent(t)}}},[a("div",{staticClass:"form-group",class:{"has-error":e.formErrors["title"]||e.formErrors["title"]}},[a("div",{staticClass:"col-sm-offset-2 col-sm-10"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.event.title,expression:"event.title"}],staticClass:"form-control",attrs:{type:"text",id:"title",name:"title",placeholder:e.titlePlaceHolder},domProps:{value:e.event.title},on:{input:function(t){t.target.composing||e.$set(e.event,"title",t.target.value)}}}),e.formErrors["title"]?a("span",{staticClass:"help-block"},[e._v(e._s(e.formErrors["title"][0]))]):e._e()])]),a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-sm-2"},[a("span",{staticClass:"fa fa-clock-o fa-2x"})]),a("div",{staticClass:"col-sm-5"},[a("flat-pickr",{attrs:{name:"start",config:e.config},model:{value:e.event.start,callback:function(t){e.$set(e.event,"start",t)},expression:"event.start"}})],1),a("div",{staticClass:"col-sm-5"},[a("flat-pickr",{attrs:{name:"end",config:e.config},model:{value:e.event.end,callback:function(t){e.$set(e.event,"end",t)},expression:"event.end"}})],1)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm-2"},[a("span",{staticClass:"fa fa-calendar fa-2x"})]),a("div",{staticClass:"col-sm-10"},[a("multiselect",{attrs:{label:"name",options:e.allCalendars},model:{value:e.event.calendar,callback:function(t){e.$set(e.event,"calendar",t)},expression:"event.calendar"}}),e.formErrors["calendar"]?a("span",{staticClass:"help-block"},[e._v(e._s(e.formErrors["calendar"]))]):e._e()],1)]),a("hr"),a("div",{staticClass:"pull-right"},[a("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:e.close}},[a("translate",[e._v("Close")])],1),a("input",{staticClass:"btn btn-primary",attrs:{type:"submit"},domProps:{value:e.submitLabel}})]),a("div",{staticClass:"clearfix"})])])])},Le=[],Ie=(a("99af"),a("5530")),Ue={props:{start:[Date],end:[Date],allDay:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},data:function(){return{event:{start:this.start,end:this.end,allDay:this.allDay},formErrors:{},config:{enableTime:!0,time_24hr:!0}}},computed:Object(Ie["a"])(Object(Ie["a"])({titlePlaceHolder:function(){return this.$gettext("Title")},submitLabel:function(){return this.$gettext("Save")}},Object(w["b"])(["calendars","sharedCalendars"])),{},{allCalendars:function(){return this.calendars.concat(this.sharedCalendars)}}),methods:{close:function(){this.formErrors={},this.$emit("update:show",!1)},saveEvent:function(){var e=this,t=JSON.parse(JSON.stringify(this.event));if(t.calendar){var a=t.calendar;t.calendar=t.calendar.pk,W(a,t).then((function(t){e.close(),e.$emit("eventCreated",t.data)}))}else this.$set(this.formErrors,"calendar",this.$gettext("A calendar is required."))}}},He=Ue,qe=Object(oe["a"])(He,Te,Le,!1,null,null,null),Je=qe.exports,We=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("h3",[a("translate",[e._v("Edit event")])],1),a("hr"),a("form",{staticClass:"form-horizontal",attrs:{id:"eventForm",method:"post",enctype:"multipart/form-data"},on:{submit:function(t){return t.preventDefault(),e.saveEvent(t)}}},[a("div",{staticClass:"form-group",class:{"has-error":e.formErrors["title"]||e.formErrors["title"]}},[a("div",{staticClass:"col-sm-10"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.event.title,expression:"event.title"}],staticClass:"form-control",attrs:{type:"text",id:"title",name:"title",placeholder:e.titlePlaceHolder},domProps:{value:e.event.title},on:{input:function(t){t.target.composing||e.$set(e.event,"title",t.target.value)}}}),e.formErrors["title"]?a("span",{staticClass:"help-block"},[e._v(e._s(e.formErrors["title"][0]))]):e._e()])]),a("div",{staticClass:"form-group"},[a("div",{staticClass:"col-sm-3"},[a("flat-pickr",{attrs:{name:"start",config:e.config},model:{value:e.event.start,callback:function(t){e.$set(e.event,"start",t)},expression:"event.start"}})],1),a("div",{staticClass:"col-sm-3"},[a("flat-pickr",{attrs:{name:"end",config:e.config},model:{value:e.event.end,callback:function(t){e.$set(e.event,"end",t)},expression:"event.end"}})],1)]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm-3"},[a("div",{staticClass:"checkbox"},[a("label",[a("input",{directives:[{name:"model",rawName:"v-model",value:e.event.allDay,expression:"event.allDay"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.event.allDay)?e._i(e.event.allDay,null)>-1:e.event.allDay},on:{change:function(t){var a=e.event.allDay,n=t.target,s=!!n.checked;if(Array.isArray(a)){var r=null,c=e._i(a,r);n.checked?c<0&&e.$set(e.event,"allDay",a.concat([r])):c>-1&&e.$set(e.event,"allDay",a.slice(0,c).concat(a.slice(c+1)))}else e.$set(e.event,"allDay",s)}}}),e._v(" "),a("translate",[e._v("All day")])],1)])]),e._m(0),a("div",{staticClass:"col-sm-6"},[a("multiselect",{attrs:{label:"name",options:e.allCalendars},model:{value:e.event.calendar,callback:function(t){e.$set(e.event,"calendar",t)},expression:"event.calendar"}}),e.formErrors["calendar"]?a("span",{staticClass:"help-block has-error"},[e._v(e._s(e.formErrors["calendar"]))]):e._e()],1)]),a("hr"),a("div",{staticClass:"form-group",class:{"has-error":e.formErrors["description"]||e.formErrors["description"]}},[a("div",{staticClass:"col-sm-7"},[a("h4",[a("translate",[e._v("Detail")])],1),a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.event.description,expression:"event.description"}],staticClass:"form-control",attrs:{id:"description",name:"description",placeholder:e.descriptionPlaceHolder},domProps:{value:e.event.description},on:{input:function(t){t.target.composing||e.$set(e.event,"description",t.target.value)}}}),e.formErrors["description"]?a("span",{staticClass:"help-block"},[e._v(e._s(e.formErrors["description"][0]))]):e._e()]),a("div",{staticClass:"col-sm-5"},[a("h4",[a("translate",[e._v("Attendees")])],1),a("multiselect",{attrs:{multiple:"",label:"display_name",options:e.attendees,"close-on-select":!1,"hide-selected":!0,"track-by":"email"},model:{value:e.event.attendees,callback:function(t){e.$set(e.event,"attendees",t)},expression:"event.attendees"}})],1)]),a("hr"),a("div",{staticClass:"pull-right"},[a("button",{staticClass:"btn btn-default",attrs:{type:"button"},on:{click:e.close}},[a("translate",[e._v("Close")])],1),a("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:e.deleteEvent}},[a("translate",[e._v("Delete")])],1),a("input",{staticClass:"btn btn-primary",attrs:{type:"submit"},domProps:{value:e.submitPlaceholder}})]),a("div",{staticClass:"clearfix"})])])},Ye=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"col-sm-1"},[a("span",{staticClass:"fa fa-calendar fa-2x"})])}],Be={data:function(){return{event:{attendees:[]},originalCalendarPk:null,formErrors:{},config:{enableTime:!0,time_24hr:!0}}},computed:Object(Ie["a"])(Object(Ie["a"])({descriptionPlaceHolder:function(){return this.$gettext("Description")},titlePlaceHolder:function(){return this.$gettext("Title")},submitPlaceholder:function(){return this.$gettext("Save")}},Object(w["b"])(["calendars","sharedCalendars","attendees"])),{},{allCalendars:function(){return this.calendars.concat(this.sharedCalendars)}}),mounted:function(){var e=this,t=this.$route.params;J(t.calendar_pk,t.calendar_type,t.pk).then((function(t){e.event=t.data})),this.$store.dispatch("getAttendees")},methods:{close:function(){this.formErrors={},this.$router.push({name:"Calendar"})},onSaveError:function(e){this.formErrors=e.data},saveEvent:function(){var e=this,t=JSON.parse(JSON.stringify(this.event));if(t.calendar){var a={pk:this.$route.params.calendar_pk,type:this.$route.params.calendar_type};Y(a,t.id,t).then((function(t){e.close(),e.$notify({group:"default",title:e.$gettext("Success"),type:"success",text:e.$gettext("Event updated")})}),this.onSaveError)}else this.$set(this.formErrors,"calendar",this.$gettext("A calendar is required."))},deleteEvent:function(){var e=this,t=this.$gettext("Are you sure you want to remove this event?");this.$dialog.confirm(t).then((function(){V(e.event.calendar,e.event.id).then((function(t){e.close(),e.$notify({group:"default",title:e.$gettext("Success"),type:"success",text:e.$gettext("Event deleted")})}))}))}}},Ve=Be,Ke=Object(oe["a"])(Ve,We,Ye,!1,null,null,null),Xe=Ke.exports,Ze={components:{"create-event-form":Je,"event-form":Xe},computed:Object(w["b"])(["calendars","sharedCalendars"]),data:function(){return{currentId:null,start:null,end:null,showCreateEventForm:!1,showEventForm:!1}},created:function(){var e=this;this.$bus.$on("calendarColorChanged",(function(t){var a=t.domain?"shared":"user",n=e.getEventSourceUrl(t.pk,a);e.cal.fullCalendar("refetchEventSources",n)})),this.$bus.$on("calendarDeleted",(function(t){var a=t.domain?"shared":"user",n=e.getEventSourceUrl(t.pk,a);e.cal.fullCalendar("removeEventSource",n)})),this.$bus.$on("eventsImported",(function(t){var a=t.domain?"shared":"user",n=e.getEventSourceUrl(t.pk,a);e.cal.fullCalendar("refetchEventSources",n)}))},mounted:function(){var e=this,t=this.$language.current;"en"!==t?a("9c91")("./".concat(t,".js")).then((function(t){e.loadFullCalendar()})):this.loadFullCalendar()},watch:{calendars:function(e){this.addEventSources(e)},sharedCalendars:function(e){this.addEventSources(e)}},methods:{loadFullCalendar:function(){this.cal=$()(this.$el);var e={header:{left:"prev,next today",center:"title",right:"month,agendaWeek,agendaDay"},defaultView:"agendaWeek",locale:this.$language.current,timezone:"local",selectable:!0,selectHelper:!0,editable:!0,eventLimit:!0,select:this.selectCallback,eventClick:this.eventClickCallback,eventDrop:this.eventDropCallback,eventResize:this.eventResizeCallback,themeSystem:"bootstrap3"};this.cal.fullCalendar(e),this.addEventSources(this.calendars),this.addEventSources(this.sharedCalendars)},getEventSourceUrl:function(e,t){return"/api/v1/"+t+"-calendars/"+e+"/events/"},addEventSources:function(e){if(void 0!==this.cal){var t,a=this.cal.fullCalendar("getEventSources"),n=Object(ze["a"])(e);try{for(n.s();!(t=n.n()).done;){var s,r=t.value,c=r.domain?"shared":"user",d=this.getEventSourceUrl(r.pk,c),l=!1,o=Object(ze["a"])(a);try{for(o.s();!(s=o.n()).done;){var i=s.value;i.url===d&&(l=!0)}}catch(u){o.e(u)}finally{o.f()}l||this.cal.fullCalendar("addEventSource",d)}}catch(u){n.e(u)}finally{n.f()}}},selectCallback:function(e,t){this.start=new Date(e),this.end=new Date(t),this.allDay=!e.hasTime(),this.showCreateEventForm=!0},closeCreateEventForm:function(){this.showCreateEventForm=!1},renderEvent:function(e){this.cal.fullCalendar("renderEvent",e,!0)},eventClickCallback:function(e,t,a){var n=e.calendar.domain?"shared":"user";this.$router.push({name:"EditEvent",params:{calendar_type:n,calendar_pk:e.calendar.pk,pk:e.id}})},updateEventDates:function(e){var t=this,a={start:e.start,end:e.end};if(e.allDay){var n=Me["DateTime"].fromISO(a.start.format());n.plus({days:1}),a.start.time("00:00:00"),a.end=n,a.allDay=e.allDay}B(e.calendar,e.id,a).then((function(e){t.$notify({group:"default",title:t.$gettext("Success"),type:"success",text:t.$gettext("Event updated")})}))},eventDropCallback:function(e){this.updateEventDates(e)},eventResizeCallback:function(e){this.updateEventDates(e)},deleteEvent:function(e){this.cal.fullCalendar("removeEvents",e)}}},Ge=Ze,Qe=(a("8495"),Object(oe["a"])(Ge,Fe,Pe,!1,null,null,null)),et=Qe.exports;n["default"].use(s["a"]);var tt,at=new s["a"]({routes:[{path:"/",name:"Calendar",component:et},{path:"/:calendar_pk([0-9]+)/:calendar_type(shared|user)/events/:pk([A-Za-z0-9\\-.@]+)/edit",name:"EditEvent",component:Xe}],linkActiveClass:"active"}),nt=a("ade3"),st="SET_CALENDARS",rt="ADD_CALENDAR",ct="UPDATE_CALENDAR",dt="DELETE_CALENDAR",lt="SET_SHARED_CALENDARS",ot="ADD_SHARED_CALENDAR",it="UPDATE_SHARED_CALENDAR",ut="DELETE_SHARED_CALENDAR",ht="SET_ATTENDEES",ft={calendars:[],sharedCalendars:[]},mt={calendars:function(e){return e.calendars},sharedCalendars:function(e){return e.sharedCalendars}},vt={getCalendars:function(e){var t=e.commit;return N().then((function(e){t(st,{calendars:e.data})}))},createCalendar:function(e,t){var a=e.commit;return F(t).then((function(e){a(rt,{calendar:e.data})}))},updateCalendar:function(e,t){var a=e.commit;return P(t.pk,t).then((function(e){a(ct,{calendar:e.data})}))},deleteCalendar:function(e,t){var a=e.commit;return z(t).then((function(e){a(dt,{pk:t})}))},getSharedCalendars:function(e){var t=e.commit;return T().then((function(e){t(lt,{calendars:e.data})}))},createSharedCalendar:function(e,t){var a=e.commit;return L(t).then((function(e){a(ot,{calendar:e.data})}))},updateSharedCalendar:function(e,t){var a=e.commit;return I(t.pk,t).then((function(e){a(it,{calendar:e.data})}))},deleteSharedCalendar:function(e,t){var a=e.commit;return U(t).then((function(e){a(ut,{pk:t})}))}},pt=(tt={},Object(nt["a"])(tt,st,(function(e,t){var a=t.calendars;e.calendars=a})),Object(nt["a"])(tt,rt,(function(e,t){var a=t.calendar;e.calendars.push(a)})),Object(nt["a"])(tt,ct,(function(e,t){var a=t.calendar;e.calendars.filter((function(t,s){t.pk===a.pk&&n["default"].set(e.calendars,s,a)}))})),Object(nt["a"])(tt,dt,(function(e,t){var a=t.pk;e.calendars=e.calendars.filter((function(e){return e.pk!==a}))})),Object(nt["a"])(tt,lt,(function(e,t){var a=t.calendars;e.sharedCalendars=a})),Object(nt["a"])(tt,ot,(function(e,t){var a=t.calendar;e.sharedCalendars.push(a)})),Object(nt["a"])(tt,it,(function(e,t){var a=t.calendar;e.sharedCalendars.filter((function(t,s){t.pk===a.pk&&n["default"].set(e.sharedCalendars,s,a)}))})),Object(nt["a"])(tt,ut,(function(e,t){var a=t.pk;e.sharedCalendars=e.sharedCalendars.filter((function(e){return e.pk!==a}))})),tt),bt={state:ft,getters:mt,actions:vt,mutations:pt},kt={attendees:[]},jt={attendees:function(e){return e.attendees}},Ct={getAttendees:function(e){var t=e.commit;return Z().then((function(e){t(ht,{attendees:e.data})}))}},gt=Object(nt["a"])({},ht,(function(e,t){var a=t.attendees;e.attendees=a})),yt={state:kt,getters:jt,actions:Ct,mutations:gt};n["default"].use(w["a"]);var _t={modules:{calendar:bt,event:yt},strict:!1},Et=new w["a"].Store(_t),wt=a("2f1f"),xt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"modal",staticClass:"modal fade show in background-darken",attrs:{tabindex:"-1",role:"dialog"}},[a("div",{staticClass:"modal-dialog",attrs:{role:"document"}},[a("div",{staticClass:"modal-content"},[a("div",{staticClass:"modal-header"},[e._t("header")],2),a("div",{staticClass:"modal-body"},[e._t("body")],2),e.showFooter?a("div",{staticClass:"modal-footer"},[e._t("footer")],2):e._e()])])])},$t=[],St={props:{showFooter:{type:Boolean,default:!1}}},Dt=St,Rt=(a("51c4"),Object(oe["a"])(Dt,xt,$t,!1,null,"0e32cbfe",null)),At=Rt.exports;a("c5c5");n["default"].use(i.a,{availableLanguages:{en:"English",fr:"Français"},translations:wt}),n["default"].config.language=userLang,n["default"].use(s["a"]),n["default"].use(k.a),n["default"].use(C.a),n["default"].use(y.a),"en"!==userLang&&a("48a9")("./".concat(userLang,".js")).then((function(e){m.a.localize(e.default[userLang])})),n["default"].use(p.a),n["default"].component("calendar",et),n["default"].component("modal",At),n["default"].component("multiselect",h.a),n["default"].filter("formatDate",(function(e,t){if(e)return l()(String(e)).format(t||"MM/DD/YYYY hh:mm")}));var Ot=new n["default"];Object.defineProperties(n["default"].prototype,{$bus:{get:function(){return Ot}}});var Nt=c.a.get("csrftoken");n["default"].http.headers.common["X-CSRFTOKEN"]=Nt,new n["default"]({el:"#app",render:function(e){return e(Ne)},router:at,store:Et})},"692b":function(e,t,a){a("c975");var n={install:function(e,t){e.directive("can",{bind:function(e,t,a,n){var s=t.value,r=window.userProfile;r.isSuperUser||-1!==r.permissions.indexOf(s)||(e.style.display="none")}}),e.prototype.$can=function(e){var t=window.userProfile;return!(!t.isSuperUser&&-1===t.permissions.indexOf(e))}}};e.exports=n},"85ec":function(e,t,a){},"9c91":function(e,t,a){var n={"./af.js":["28a7","chunk-2d0b39b2"],"./ar-dz.js":["cc66","chunk-2d221c16"],"./ar-kw.js":["a3bd","chunk-2d2084aa"],"./ar-ly.js":["c9b0","chunk-2d2183ba"],"./ar-ma.js":["470b","chunk-2d0c18eb"],"./ar-sa.js":["5698","chunk-2d0c8a76"],"./ar-tn.js":["3140","chunk-2d0b8e50"],"./ar.js":["10ed","chunk-2d0aa7f4"],"./be.js":["969b","chunk-2d0e5c1c"],"./bg.js":["fd9c","chunk-2d237d7e"],"./bs.js":["1312","chunk-2d0aacb9"],"./ca.js":["fde8","chunk-2d2382a7"],"./cs.js":["3e09","chunk-2d0c5111"],"./da.js":["7a79","chunk-2d0e1462"],"./de-at.js":["0258","chunk-2d0a351b"],"./de-ch.js":["eeb7","chunk-2d2311ab"],"./de.js":["a31b","chunk-2d207eb9"],"./el.js":["29ac","chunk-2d0b3d9f"],"./en-au.js":["b0a4","chunk-2d20ed77"],"./en-ca.js":["6e05","chunk-2d0dae2a"],"./en-gb.js":["67b2","chunk-2d0d0787"],"./en-ie.js":["3413","chunk-2d0b9939"],"./en-nz.js":["159b2","chunk-744bf72f"],"./es-do.js":["bacb","chunk-2d21a5d4"],"./es-us.js":["cbca","chunk-2d221df3"],"./es.js":["518c","chunk-2d0c77bd"],"./et.js":["1db1","chunk-2d0b6a98"],"./eu.js":["a131","chunk-2d207744"],"./fa.js":["301f","chunk-2d0b8a68"],"./fi.js":["1b16","chunk-2d0b5d2c"],"./fr-ca.js":["d2c6","chunk-2d21ddf7"],"./fr-ch.js":["b001","chunk-2d20e785"],"./fr.js":["a3f4","chunk-2d2084f6"],"./gl.js":["e3f1","chunk-2d22566f"],"./he.js":["20a0","chunk-2d0b1ba3"],"./hi.js":["a10a","chunk-2d207717"],"./hr.js":["3a22","chunk-2d0c4244"],"./hu.js":["0481","chunk-2d0a3cf3"],"./id.js":["56af","chunk-2d0c8f7c"],"./is.js":["9a58","chunk-2d0efce1"],"./it.js":["9cd2","chunk-2d0f0a0e"],"./ja.js":["9b50","chunk-2d0f009a"],"./ka.js":["3ec7","chunk-2d0c573c"],"./kk.js":["328f","chunk-2d0b92c3"],"./ko.js":["fa99","chunk-2d237211"],"./lb.js":["fe54","chunk-2d238094"],"./lt.js":["0719","chunk-2d0a4765"],"./lv.js":["6b2d","chunk-2d0da354"],"./mk.js":["b7df","chunk-2d21084d"],"./ms-my.js":["154d","chunk-2d0ab4ca"],"./ms.js":["b3e5","chunk-2d20f937"],"./nb.js":["dd5b","chunk-2d229443"],"./nl-be.js":["262f","chunk-2d0b2cae"],"./nl.js":["5895","chunk-2d0c91f5"],"./nn.js":["663d","chunk-2d0cfe47"],"./pl.js":["39cd","chunk-2d0bb23d"],"./pt-br.js":["5df1","chunk-2d0d3c90"],"./pt.js":["5684","chunk-2d0c8a53"],"./ro.js":["89f5","chunk-2d0df846"],"./ru.js":["fe7d","chunk-2d238102"],"./sk.js":["40d5","chunk-2d0c04c3"],"./sl.js":["5e93","chunk-2d0d3ae0"],"./sq.js":["7823","chunk-2d0d79d8"],"./sr-cyrl.js":["6d53","chunk-2d0dab02"],"./sr.js":["56d9","chunk-2d0c8fac"],"./sv.js":["4fd4","chunk-2d0ccf78"],"./th.js":["109a","chunk-2d0aa29d"],"./tr.js":["7420","chunk-2d0d6ad1"],"./uk.js":["2b23","chunk-2d0bd1a7"],"./vi.js":["0ab8","chunk-2d0aeafd"],"./zh-cn.js":["4b31","chunk-2d0cba82"],"./zh-hk.js":["2620","chunk-2d0b2c78"],"./zh-tw.js":["94aa","chunk-2d0e5971"]};function s(e){if(!a.o(n,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],s=t[0];return a.e(t[1]).then((function(){return a.t(s,7)}))}s.keys=function(){return Object.keys(n)},s.id="9c91",e.exports=s}});
//# sourceMappingURL=app.3b41380b.js.map

Anon7 - 2022
AnonSec Team