diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2023-04-12 18:43:09 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2023-04-13 06:08:39 +0000 |
commit | 225d6e2dcf6ae330161ebd968afce48be55f5666 (patch) | |
tree | 914a4e84c651799b9e912f01cb67b743af699e3c /dist/dav-settings-personal-availability.js | |
parent | f37b29eb2da66c66fd3752209c9e552948e35ca1 (diff) | |
download | nextcloud-server-225d6e2dcf6ae330161ebd968afce48be55f5666.tar.gz nextcloud-server-225d6e2dcf6ae330161ebd968afce48be55f5666.zip |
feat(files): better breakpoints and sidebar responsive design
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'dist/dav-settings-personal-availability.js')
-rw-r--r-- | dist/dav-settings-personal-availability.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/dav-settings-personal-availability.js b/dist/dav-settings-personal-availability.js index 8590f191a17..6133c3e9cf1 100644 --- a/dist/dav-settings-personal-availability.js +++ b/dist/dav-settings-personal-availability.js @@ -1,3 +1,3 @@ /*! For license information please see dav-settings-personal-availability.js.LICENSE.txt */ -!function(){"use strict";var n,e={36824:function(n,e,r){var a=r(20144),o=r(31352),i=r(51796),l=r(79954),d=r(64024),u=r(14596),s=r(4820),c=r(56580),p=r.n(c),A=r(79753),f=r(45994),v=p()((function(t){return s.default.defaults.headers["X-Requested-With"]="XMLHttpRequest",u.lD().patch("request",s.default),u.eI((0,A.generateRemoteUrl)("dav/".concat(t,"/").concat((0,f.ts)().uid)))})),m=(0,r(17499).IY)().setApp("dav").detectUser().build();function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function b(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function x(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?b(Object(e),!0).forEach((function(n){g(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):b(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function g(t,n,e){return(n=function(t){var n=function(t,n){if("object"!==y(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n);if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"===y(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function C(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return h(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?h(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function w(t,n,e,r,a,o,i){try{var l=t[o](i),d=l.value}catch(t){return void e(t)}l.done?n(d):Promise.resolve(d).then(r,a)}function k(t){return function(){var n=this,e=arguments;return new Promise((function(r,a){var o=t.apply(n,e);function i(t){w(o,r,a,i,l,"next",t)}function l(t){w(o,r,a,i,l,"throw",t)}i(void 0)}))}}function O(){return S.apply(this,arguments)}function S(){return(S=k(regeneratorRuntime.mark((function t(){var n,e,r,a,o,l,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=v("calendars"),t.next=3,a.customRequest("inbox",{method:"PROPFIND",data:'<?xml version="1.0"?>\n\t\t\t<x0:propfind xmlns:x0="DAV:">\n\t\t\t <x0:prop>\n\t\t\t\t<x1:calendar-availability xmlns:x1="urn:ietf:params:xml:ns:caldav"/>\n\t\t\t </x0:prop>\n\t\t\t</x0:propfind>'});case 3:return o=t.sent,t.next=6,(0,u.sw)(o.data);case 6:if(l=t.sent){t.next=9;break}return t.abrupt("return",void 0);case 9:if(d=null==l||null===(n=l.multistatus)||void 0===n||null===(e=n.response[0])||void 0===e||null===(r=e.propstat)||void 0===r?void 0:r.prop["calendar-availability"]){t.next=12;break}return t.abrupt("return",void 0);case 12:return t.abrupt("return",(0,i.Xg)(d));case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function B(t,n){return P.apply(this,arguments)}function P(){return(P=k(regeneratorRuntime.mark((function t(n,e){var r,a,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=C(Object.keys(n).flatMap((function(t){return n[t].map((function(n){return x(x({},n),{},{day:t})}))}))),a=(0,i.ST)(r,e),m.debug("New availability ical created",{vavailability:a}),o=v("calendars"),t.next=6,o.customRequest("inbox",{method:"PROPPATCH",data:'<?xml version="1.0"?>\n\t\t\t<x0:propertyupdate xmlns:x0="DAV:">\n\t\t\t <x0:set>\n\t\t\t\t<x0:prop>\n\t\t\t\t <x1:calendar-availability xmlns:x1="urn:ietf:params:xml:ns:caldav">'.concat(a,"</x1:calendar-availability>\n\t\t\t\t</x0:prop>\n\t\t\t </x0:set>\n\t\t\t</x0:propertyupdate>")});case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function j(t,n,e,r,a,o,i){try{var l=t[o](i),d=l.value}catch(t){return void e(t)}l.done?n(d):Promise.resolve(d).then(r,a)}function D(t){return function(){var n=this,e=arguments;return new Promise((function(r,a){var o=t.apply(n,e);function i(t){j(o,r,a,i,l,"next",t)}function l(t){j(o,r,a,i,l,"throw",t)}i(void 0)}))}}function R(){return _.apply(this,arguments)}function _(){return(_=D(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.default.post((0,A.generateOcsUrl)("/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}",{appId:"dav",configKey:"user_status_automation"}),{configValue:"yes"});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function E(){return T.apply(this,arguments)}function T(){return(T=D(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.default.delete((0,A.generateOcsUrl)("/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}",{appId:"dav",configKey:"user_status_automation"}));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var $=r(10861),I=r.n($),z=r(20571),U=r.n(z),N=r(13299),F=r.n(N),M=r(31144),q=r.n(M),W=r(25108);function Z(t,n,e,r,a,o,i){try{var l=t[o](i),d=l.value}catch(t){return void e(t)}l.done?n(d):Promise.resolve(d).then(r,a)}function Y(t){return function(){var n=this,e=arguments;return new Promise((function(r,a){var o=t.apply(n,e);function i(t){Z(o,r,a,i,l,"next",t)}function l(t){Z(o,r,a,i,l,"throw",t)}i(void 0)}))}}var H={name:"Availability",components:{NcButton:I(),NcCheckboxRadioSwitch:U(),CalendarAvailability:i.Dx,NcSettingsSection:F(),NcTimezonePicker:q()},data:function(){var t,n,e;return{loading:!0,saving:!1,timezone:null!==(t=null===(n=new Intl.DateTimeFormat)||void 0===n||null===(e=n.resolvedOptions())||void 0===e?void 0:e.timeZone)&&void 0!==t?t:"UTC",slots:{MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]},automated:"yes"===(0,l.j)("dav","user_status_automation")}},mounted:function(){var n=this;return Y(regeneratorRuntime.mark((function e(){var r,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,O();case 3:(r=e.sent)?(a=r.slots,o=r.timezoneId,n.slots=a,o&&(n.timezone=o),W.info("availability loaded",n.slots,n.timezoneId)):(W.info("no availability is set"),n.slots={MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]}),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),W.error("could not load existing availability",e.t0),(0,d.x2)(t("dav","Failed to load availability"));case 11:return e.prev=11,n.loading=!1,e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,7,11,14]])})))()},methods:{save:function(){var n=this;return Y(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n.saving=!0,e.next=4,B(n.slots,n.timezone);case 4:if(!n.automated){e.next=9;break}return e.next=7,R();case 7:e.next=11;break;case 9:return e.next=11,E();case 11:(0,d.s$)(t("dav","Saved availability")),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(0),W.error("could not save availability",e.t0),(0,d.x2)(t("dav","Failed to save availability"));case 18:return e.prev=18,n.saving=!1,e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[0,14,18,21]])})))()}}},K=r(93379),V=r.n(K),X=r(7795),G=r.n(X),L=r(90569),Q=r.n(L),J=r(3565),tt=r.n(J),nt=r(19216),et=r.n(nt),rt=r(44589),at=r.n(rt),ot=r(32413),it={};it.styleTagTransform=at(),it.setAttributes=tt(),it.insert=Q().bind(null,"head"),it.domAPI=G(),it.insertStyleElement=et(),V()(ot.Z,it),ot.Z&&ot.Z.locals&&ot.Z.locals;var lt=(0,r(51900).Z)(H,(function(){var t=this,n=t._self._c;return n("NcSettingsSection",{attrs:{title:t.$t("dav","Availability"),description:t.$t("dav","If you configure your working hours, other users will see when you are out of office when they book a meeting.")}},[n("div",{staticClass:"time-zone"},[n("strong",[t._v("\n\t\t\t"+t._s(t.$t("dav","Time zone:"))+"\n\t\t")]),t._v(" "),n("span",{staticClass:"time-zone-text"},[n("NcTimezonePicker",{model:{value:t.timezone,callback:function(n){t.timezone=n},expression:"timezone"}})],1)]),t._v(" "),n("CalendarAvailability",{attrs:{slots:t.slots,loading:t.loading,"l10n-to":t.$t("dav","to"),"l10n-delete-slot":t.$t("dav","Delete slot"),"l10n-empty-day":t.$t("dav","No working hours set"),"l10n-add-slot":t.$t("dav","Add slot"),"l10n-monday":t.$t("dav","Monday"),"l10n-tuesday":t.$t("dav","Tuesday"),"l10n-wednesday":t.$t("dav","Wednesday"),"l10n-thursday":t.$t("dav","Thursday"),"l10n-friday":t.$t("dav","Friday"),"l10n-saturday":t.$t("dav","Saturday"),"l10n-sunday":t.$t("dav","Sunday")},on:{"update:slots":function(n){t.slots=n}}}),t._v(" "),n("NcCheckboxRadioSwitch",{attrs:{checked:t.automated},on:{"update:checked":function(n){t.automated=n}}},[t._v("\n\t\t"+t._s(t.$t("dav",'Automatically set user status to "Do not disturb" outside of availability to mute all notifications.'))+"\n\t")]),t._v(" "),n("NcButton",{attrs:{disabled:t.loading||t.saving,type:"primary"},on:{click:t.save}},[t._v("\n\t\t"+t._s(t.$t("dav","Save"))+"\n\t")])],1)}),[],!1,null,"6fabad0d",null).exports;a.default.prototype.$t=o.Iu,new(a.default.extend(lt))({}).$mount("#settings-personal-availability")},32413:function(t,n,e){var r=e(87537),a=e.n(r),o=e(23645),i=e.n(o)()(a());i.push([t.id,".availability-day[data-v-6fabad0d]{padding:0 10px 0 10px;position:absolute}.availability-slots[data-v-6fabad0d]{display:flex;white-space:nowrap}.availability-slot[data-v-6fabad0d]{display:flex;flex-direction:row;align-items:center}.availability-slot-group[data-v-6fabad0d]{display:flex;flex-direction:column}[data-v-6fabad0d] .mx-input-wrapper{width:85px}[data-v-6fabad0d] .mx-datepicker{width:97px}[data-v-6fabad0d] .multiselect{border:1px solid var(--color-border-dark);width:120px}.time-zone[data-v-6fabad0d]{padding:32px 12px 12px 0}.grid-table[data-v-6fabad0d]{display:grid;margin-bottom:32px;grid-column-gap:24px;grid-row-gap:6px;grid-template-columns:min-content min-content min-content}.button[data-v-6fabad0d]{align-self:flex-end}.label-weekday[data-v-6fabad0d]{position:relative;display:inline-flex;padding-top:4px}.delete-slot[data-v-6fabad0d]{background-color:rgba(0,0,0,0);border:none;padding-bottom:12px;opacity:.5}.delete-slot[data-v-6fabad0d]:hover{opacity:1}.add-another[data-v-6fabad0d]{background-color:rgba(0,0,0,0);border:none;opacity:.5;display:inline-flex;padding:0;margin:0;margin-bottom:3px}.add-another[data-v-6fabad0d]:hover{opacity:1}.to-text[data-v-6fabad0d]{padding-right:12px}.time-zone-text[data-v-6fabad0d]{padding-left:22px}.empty-content[data-v-6fabad0d]{color:var(--color-text-lighter);margin-top:4px}","",{version:3,sources:["webpack://./apps/dav/src/views/Availability.vue"],names:[],mappings:"AACA,mCACC,qBAAA,CACA,iBAAA,CAED,qCACC,YAAA,CACA,kBAAA,CAED,oCACC,YAAA,CACA,kBAAA,CACA,kBAAA,CAED,0CACC,YAAA,CACA,qBAAA,CAED,oCACC,UAAA,CAED,iCACC,UAAA,CAED,+BACC,yCAAA,CACA,WAAA,CAED,4BACC,wBAAA,CAED,6BACC,YAAA,CACA,kBAAA,CACA,oBAAA,CACA,gBAAA,CACA,yDAAA,CAED,yBACC,mBAAA,CAED,gCACC,iBAAA,CACA,mBAAA,CACA,eAAA,CAED,8BACC,8BAAA,CACA,WAAA,CACA,mBAAA,CACA,UAAA,CACA,oCACC,SAAA,CAIF,8BACC,8BAAA,CACA,WAAA,CACA,UAAA,CACA,mBAAA,CACA,SAAA,CACA,QAAA,CACA,iBAAA,CAEA,oCACC,SAAA,CAGF,0BACC,kBAAA,CAED,iCACC,iBAAA,CAED,gCACC,+BAAA,CACA,cAAA",sourcesContent:["\n.availability-day {\n\tpadding: 0 10px 0 10px;\n\tposition: absolute;\n}\n.availability-slots {\n\tdisplay: flex;\n\twhite-space: nowrap;\n}\n.availability-slot {\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n}\n.availability-slot-group {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n::v-deep .mx-input-wrapper {\n\twidth: 85px;\n}\n::v-deep .mx-datepicker {\n\twidth: 97px;\n}\n::v-deep .multiselect {\n\tborder: 1px solid var(--color-border-dark);\n\twidth: 120px;\n}\n.time-zone {\n\tpadding: 32px 12px 12px 0;\n}\n.grid-table {\n\tdisplay: grid;\n\tmargin-bottom: 32px;\n\tgrid-column-gap: 24px;\n\tgrid-row-gap: 6px;\n\tgrid-template-columns: min-content min-content min-content;\n}\n.button {\n\talign-self: flex-end;\n}\n.label-weekday {\n\tposition: relative;\n\tdisplay: inline-flex;\n\tpadding-top: 4px;\n}\n.delete-slot {\n\tbackground-color: transparent;\n\tborder: none;\n\tpadding-bottom: 12px;\n\topacity: .5;\n\t&:hover {\n\t\topacity: 1;\n\t}\n}\n\n.add-another {\n\tbackground-color: transparent;\n\tborder: none;\n\topacity: .5;\n\tdisplay: inline-flex;\n\tpadding: 0;\n\tmargin: 0;\n\tmargin-bottom: 3px;\n\n\t&:hover {\n\t\topacity: 1;\n\t}\n}\n.to-text {\n\tpadding-right: 12px;\n}\n.time-zone-text{\n\tpadding-left: 22px;\n}\n.empty-content {\n\tcolor: var(--color-text-lighter);\n\tmargin-top: 4px;\n}\n\n"],sourceRoot:""}]),n.Z=i}},r={};function a(t){var n=r[t];if(void 0!==n)return n.exports;var o=r[t]={id:t,loaded:!1,exports:{}};return e[t].call(o.exports,o,o.exports,a),o.loaded=!0,o.exports}a.m=e,n=[],a.O=function(t,e,r,o){if(!e){var i=1/0;for(s=0;s<n.length;s++){e=n[s][0],r=n[s][1],o=n[s][2];for(var l=!0,d=0;d<e.length;d++)(!1&o||i>=o)&&Object.keys(a.O).every((function(t){return a.O[t](e[d])}))?e.splice(d--,1):(l=!1,o<i&&(i=o));if(l){n.splice(s--,1);var u=r();void 0!==u&&(t=u)}}return t}o=o||0;for(var s=n.length;s>0&&n[s-1][2]>o;s--)n[s]=n[s-1];n[s]=[e,r,o]},a.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return a.d(n,{a:n}),n},a.d=function(t,n){for(var e in n)a.o(n,e)&&!a.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},a.j=3347,function(){a.b=document.baseURI||self.location.href;var t={3347:0};a.O.j=function(n){return 0===t[n]};var n=function(n,e){var r,o,i=e[0],l=e[1],d=e[2],u=0;if(i.some((function(n){return 0!==t[n]}))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(d)var s=d(a)}for(n&&n(e);u<i.length;u++)o=i[u],a.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return a.O(s)},e=self.webpackChunknextcloud=self.webpackChunknextcloud||[];e.forEach(n.bind(null,0)),e.push=n.bind(null,e.push.bind(e))}(),a.nc=void 0;var o=a.O(void 0,[7874],(function(){return a(36824)}));o=a.O(o)}(); -//# sourceMappingURL=dav-settings-personal-availability.js.map?v=f3df24a0b4c4ca830043
\ No newline at end of file +(()=>{"use strict";var a,n={36824:(a,n,e)=>{var i=e(20144),o=e(31352),d=e(51796),l=e(79954),r=e(64024),s=e(14596),A=e(4820),p=e(56580),c=e.n(p),v=e(79753),u=e(45994);const C=c()((t=>(A.default.defaults.headers["X-Requested-With"]="XMLHttpRequest",s.lD().patch("request",A.default),s.eI((0,v.generateRemoteUrl)("dav/".concat(t,"/").concat((0,u.ts)().uid)))))),y=(0,e(17499).IY)().setApp("dav").detectUser().build();var m=e(10861),f=e.n(m),b=e(20571),x=e.n(b),g=e(13299),h=e.n(g),w=e(31144),k=e.n(w),B=e(25108);const S={name:"Availability",components:{NcButton:f(),NcCheckboxRadioSwitch:x(),CalendarAvailability:d.Dx,NcSettingsSection:h(),NcTimezonePicker:k()},data(){var t,a,n;return{loading:!0,saving:!1,timezone:null!==(t=null===(a=new Intl.DateTimeFormat)||void 0===a||null===(n=a.resolvedOptions())||void 0===n?void 0:n.timeZone)&&void 0!==t?t:"UTC",slots:{MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]},automated:"yes"===(0,l.j)("dav","user_status_automation")}},async mounted(){try{const t=await async function(){var t,a,n;const e=C("calendars"),i=await e.customRequest("inbox",{method:"PROPFIND",data:'<?xml version="1.0"?>\n\t\t\t<x0:propfind xmlns:x0="DAV:">\n\t\t\t <x0:prop>\n\t\t\t\t<x1:calendar-availability xmlns:x1="urn:ietf:params:xml:ns:caldav"/>\n\t\t\t </x0:prop>\n\t\t\t</x0:propfind>'}),o=await(0,s.sw)(i.data);if(!o)return;const l=null==o||null===(t=o.multistatus)||void 0===t||null===(a=t.response[0])||void 0===a||null===(n=a.propstat)||void 0===n?void 0:n.prop["calendar-availability"];return l?(0,d.Xg)(l):void 0}();if(t){const{slots:a,timezoneId:n}=t;this.slots=a,n&&(this.timezone=n),B.info("availability loaded",this.slots,this.timezoneId)}else B.info("no availability is set"),this.slots={MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]}}catch(a){B.error("could not load existing availability",a),(0,r.x2)(t("dav","Failed to load availability"))}finally{this.loading=!1}},methods:{async save(){try{this.saving=!0,await async function(t,a){const n=[...Object.keys(t).flatMap((a=>t[a].map((t=>({...t,day:a})))))],e=(0,d.ST)(n,a);y.debug("New availability ical created",{vavailability:e});const i=C("calendars");await i.customRequest("inbox",{method:"PROPPATCH",data:'<?xml version="1.0"?>\n\t\t\t<x0:propertyupdate xmlns:x0="DAV:">\n\t\t\t <x0:set>\n\t\t\t\t<x0:prop>\n\t\t\t\t <x1:calendar-availability xmlns:x1="urn:ietf:params:xml:ns:caldav">'.concat(e,"</x1:calendar-availability>\n\t\t\t\t</x0:prop>\n\t\t\t </x0:set>\n\t\t\t</x0:propertyupdate>")})}(this.slots,this.timezone),this.automated?await async function(){return await A.default.post((0,v.generateOcsUrl)("/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}",{appId:"dav",configKey:"user_status_automation"}),{configValue:"yes"})}():await async function(){return await A.default.delete((0,v.generateOcsUrl)("/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}",{appId:"dav",configKey:"user_status_automation"}))}(),(0,r.s$)(t("dav","Saved availability"))}catch(a){B.error("could not save availability",a),(0,r.x2)(t("dav","Failed to save availability"))}finally{this.saving=!1}}}};var _=e(93379),D=e.n(_),O=e(7795),T=e.n(O),$=e(90569),E=e.n($),z=e(3565),I=e.n(z),U=e(19216),R=e.n(U),P=e(44589),j=e.n(P),N=e(32413),F={};F.styleTagTransform=j(),F.setAttributes=I(),F.insert=E().bind(null,"head"),F.domAPI=T(),F.insertStyleElement=R(),D()(N.Z,F),N.Z&&N.Z.locals&&N.Z.locals;const q=(0,e(51900).Z)(S,(function(){var t=this,a=t._self._c;return a("NcSettingsSection",{attrs:{title:t.$t("dav","Availability"),description:t.$t("dav","If you configure your working hours, other users will see when you are out of office when they book a meeting.")}},[a("div",{staticClass:"time-zone"},[a("strong",[t._v("\n\t\t\t"+t._s(t.$t("dav","Time zone:"))+"\n\t\t")]),t._v(" "),a("span",{staticClass:"time-zone-text"},[a("NcTimezonePicker",{model:{value:t.timezone,callback:function(a){t.timezone=a},expression:"timezone"}})],1)]),t._v(" "),a("CalendarAvailability",{attrs:{slots:t.slots,loading:t.loading,"l10n-to":t.$t("dav","to"),"l10n-delete-slot":t.$t("dav","Delete slot"),"l10n-empty-day":t.$t("dav","No working hours set"),"l10n-add-slot":t.$t("dav","Add slot"),"l10n-monday":t.$t("dav","Monday"),"l10n-tuesday":t.$t("dav","Tuesday"),"l10n-wednesday":t.$t("dav","Wednesday"),"l10n-thursday":t.$t("dav","Thursday"),"l10n-friday":t.$t("dav","Friday"),"l10n-saturday":t.$t("dav","Saturday"),"l10n-sunday":t.$t("dav","Sunday")},on:{"update:slots":function(a){t.slots=a}}}),t._v(" "),a("NcCheckboxRadioSwitch",{attrs:{checked:t.automated},on:{"update:checked":function(a){t.automated=a}}},[t._v("\n\t\t"+t._s(t.$t("dav",'Automatically set user status to "Do not disturb" outside of availability to mute all notifications.'))+"\n\t")]),t._v(" "),a("NcButton",{attrs:{disabled:t.loading||t.saving,type:"primary"},on:{click:t.save}},[t._v("\n\t\t"+t._s(t.$t("dav","Save"))+"\n\t")])],1)}),[],!1,null,"6fabad0d",null).exports;i.default.prototype.$t=o.Iu,new(i.default.extend(q))({}).$mount("#settings-personal-availability")},32413:(t,a,n)=>{n.d(a,{Z:()=>l});var e=n(87537),i=n.n(e),o=n(23645),d=n.n(o)()(i());d.push([t.id,".availability-day[data-v-6fabad0d]{padding:0 10px 0 10px;position:absolute}.availability-slots[data-v-6fabad0d]{display:flex;white-space:nowrap}.availability-slot[data-v-6fabad0d]{display:flex;flex-direction:row;align-items:center}.availability-slot-group[data-v-6fabad0d]{display:flex;flex-direction:column}[data-v-6fabad0d] .mx-input-wrapper{width:85px}[data-v-6fabad0d] .mx-datepicker{width:97px}[data-v-6fabad0d] .multiselect{border:1px solid var(--color-border-dark);width:120px}.time-zone[data-v-6fabad0d]{padding:32px 12px 12px 0}.grid-table[data-v-6fabad0d]{display:grid;margin-bottom:32px;grid-column-gap:24px;grid-row-gap:6px;grid-template-columns:min-content min-content min-content}.button[data-v-6fabad0d]{align-self:flex-end}.label-weekday[data-v-6fabad0d]{position:relative;display:inline-flex;padding-top:4px}.delete-slot[data-v-6fabad0d]{background-color:rgba(0,0,0,0);border:none;padding-bottom:12px;opacity:.5}.delete-slot[data-v-6fabad0d]:hover{opacity:1}.add-another[data-v-6fabad0d]{background-color:rgba(0,0,0,0);border:none;opacity:.5;display:inline-flex;padding:0;margin:0;margin-bottom:3px}.add-another[data-v-6fabad0d]:hover{opacity:1}.to-text[data-v-6fabad0d]{padding-right:12px}.time-zone-text[data-v-6fabad0d]{padding-left:22px}.empty-content[data-v-6fabad0d]{color:var(--color-text-lighter);margin-top:4px}","",{version:3,sources:["webpack://./apps/dav/src/views/Availability.vue"],names:[],mappings:"AACA,mCACC,qBAAA,CACA,iBAAA,CAED,qCACC,YAAA,CACA,kBAAA,CAED,oCACC,YAAA,CACA,kBAAA,CACA,kBAAA,CAED,0CACC,YAAA,CACA,qBAAA,CAED,oCACC,UAAA,CAED,iCACC,UAAA,CAED,+BACC,yCAAA,CACA,WAAA,CAED,4BACC,wBAAA,CAED,6BACC,YAAA,CACA,kBAAA,CACA,oBAAA,CACA,gBAAA,CACA,yDAAA,CAED,yBACC,mBAAA,CAED,gCACC,iBAAA,CACA,mBAAA,CACA,eAAA,CAED,8BACC,8BAAA,CACA,WAAA,CACA,mBAAA,CACA,UAAA,CACA,oCACC,SAAA,CAIF,8BACC,8BAAA,CACA,WAAA,CACA,UAAA,CACA,mBAAA,CACA,SAAA,CACA,QAAA,CACA,iBAAA,CAEA,oCACC,SAAA,CAGF,0BACC,kBAAA,CAED,iCACC,iBAAA,CAED,gCACC,+BAAA,CACA,cAAA",sourcesContent:["\n.availability-day {\n\tpadding: 0 10px 0 10px;\n\tposition: absolute;\n}\n.availability-slots {\n\tdisplay: flex;\n\twhite-space: nowrap;\n}\n.availability-slot {\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n}\n.availability-slot-group {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n::v-deep .mx-input-wrapper {\n\twidth: 85px;\n}\n::v-deep .mx-datepicker {\n\twidth: 97px;\n}\n::v-deep .multiselect {\n\tborder: 1px solid var(--color-border-dark);\n\twidth: 120px;\n}\n.time-zone {\n\tpadding: 32px 12px 12px 0;\n}\n.grid-table {\n\tdisplay: grid;\n\tmargin-bottom: 32px;\n\tgrid-column-gap: 24px;\n\tgrid-row-gap: 6px;\n\tgrid-template-columns: min-content min-content min-content;\n}\n.button {\n\talign-self: flex-end;\n}\n.label-weekday {\n\tposition: relative;\n\tdisplay: inline-flex;\n\tpadding-top: 4px;\n}\n.delete-slot {\n\tbackground-color: transparent;\n\tborder: none;\n\tpadding-bottom: 12px;\n\topacity: .5;\n\t&:hover {\n\t\topacity: 1;\n\t}\n}\n\n.add-another {\n\tbackground-color: transparent;\n\tborder: none;\n\topacity: .5;\n\tdisplay: inline-flex;\n\tpadding: 0;\n\tmargin: 0;\n\tmargin-bottom: 3px;\n\n\t&:hover {\n\t\topacity: 1;\n\t}\n}\n.to-text {\n\tpadding-right: 12px;\n}\n.time-zone-text{\n\tpadding-left: 22px;\n}\n.empty-content {\n\tcolor: var(--color-text-lighter);\n\tmargin-top: 4px;\n}\n\n"],sourceRoot:""}]);const l=d}},e={};function i(t){var a=e[t];if(void 0!==a)return a.exports;var o=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.m=n,a=[],i.O=(t,n,e,o)=>{if(!n){var d=1/0;for(A=0;A<a.length;A++){n=a[A][0],e=a[A][1],o=a[A][2];for(var l=!0,r=0;r<n.length;r++)(!1&o||d>=o)&&Object.keys(i.O).every((t=>i.O[t](n[r])))?n.splice(r--,1):(l=!1,o<d&&(d=o));if(l){a.splice(A--,1);var s=e();void 0!==s&&(t=s)}}return t}o=o||0;for(var A=a.length;A>0&&a[A-1][2]>o;A--)a[A]=a[A-1];a[A]=[n,e,o]},i.n=t=>{var a=t&&t.__esModule?()=>t.default:()=>t;return i.d(a,{a}),a},i.d=(t,a)=>{for(var n in a)i.o(a,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:a[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,a)=>Object.prototype.hasOwnProperty.call(t,a),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),i.j=3347,(()=>{i.b=document.baseURI||self.location.href;var t={3347:0};i.O.j=a=>0===t[a];var a=(a,n)=>{var e,o,d=n[0],l=n[1],r=n[2],s=0;if(d.some((a=>0!==t[a]))){for(e in l)i.o(l,e)&&(i.m[e]=l[e]);if(r)var A=r(i)}for(a&&a(n);s<d.length;s++)o=d[s],i.o(t,o)&&t[o]&&t[o][0](),t[o]=0;return i.O(A)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(a.bind(null,0)),n.push=a.bind(null,n.push.bind(n))})(),i.nc=void 0;var o=i.O(void 0,[7874],(()=>i(36824)));o=i.O(o)})(); +//# sourceMappingURL=dav-settings-personal-availability.js.map?v=54e77a4b1a4a5c6c28e1
\ No newline at end of file |