(()=>{"use strict";var t,e={19348:(t,e,n)=>{var a=n(85471),s=n(32981),r=n(53334),i=n(65043),d=n(63814),o=n(88837),l=n(32073);const c=(0,s.C)("dav","userSyncCalendarsDocUrl","#"),v={name:"CalDavSettings",components:{NcCheckboxRadioSwitch:l.A,NcSettingsSection:o.A},data:()=>({userSyncCalendarsDocUrl:c}),computed:{hint(){return this.$t("dav","Also install the {calendarappstoreopen}Calendar app{linkclose}, or {calendardocopen}connect your desktop & mobile for syncing ↗{linkclose}.").replace("{calendarappstoreopen}",'').replace("{calendardocopen}",``).replace(/\{linkclose\}/g,"")},sendInvitationsHelpText(){return this.$t("dav","Please make sure to properly set up {emailopen}the email server{linkclose}.").replace("{emailopen}",'').replace("{linkclose}","")},sendEventRemindersHelpText(){return this.$t("dav","Please make sure to properly set up {emailopen}the email server{linkclose}.").replace("{emailopen}",'').replace("{linkclose}","")}},watch:{generateBirthdayCalendar(t){const e=t?"/apps/dav/enableBirthdayCalendar":"/apps/dav/disableBirthdayCalendar";i.Ay.post((0,d.Jv)(e))},sendInvitations(t){OCP.AppConfig.setValue("dav","sendInvitations",t?"yes":"no")},sendEventReminders(t){OCP.AppConfig.setValue("dav","sendEventReminders",t?"yes":"no")},sendEventRemindersToSharedUsers(t){OCP.AppConfig.setValue("dav","sendEventRemindersToSharedUsers",t?"yes":"no")},sendEventRemindersPush(t){OCP.AppConfig.setValue("dav","sendEventRemindersPush",t?"yes":"no")}}};var p=n(85072),h=n.n(p),m=n(97825),u=n.n(m),b=n(77659),C=n.n(b),y=n(55056),g=n.n(y),f=n(10540),S=n.n(f),A=n(41113),k=n.n(A),x=n(53187),R={};R.styleTagTransform=k(),R.setAttributes=g(),R.insert=C().bind(null,"head"),R.domAPI=u(),R.insertStyleElement=S(),h()(x.A,R),x.A&&x.A.locals&&x.A.locals;const w=(0,n(14486).A)(v,(function(){var t=this,e=t._self._c;return e("NcSettingsSection",{attrs:{name:t.$t("dav","Calendar server"),"doc-url":t.userSyncCalendarsDocUrl}},[e("p",{staticClass:"settings-hint",domProps:{innerHTML:t._s(t.hint)}}),t._v(" "),e("p",[e("NcCheckboxRadioSwitch",{attrs:{id:"caldavSendInvitations",checked:t.sendInvitations,type:"switch"},on:{"update:checked":function(e){t.sendInvitations=e}}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Send invitations to attendees"))+"\n\t\t")]),t._v(" "),e("em",{domProps:{innerHTML:t._s(t.sendInvitationsHelpText)}})],1),t._v(" "),e("p",[e("NcCheckboxRadioSwitch",{staticClass:"checkbox",attrs:{id:"caldavGenerateBirthdayCalendar",checked:t.generateBirthdayCalendar,type:"switch"},on:{"update:checked":function(e){t.generateBirthdayCalendar=e}}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Automatically generate a birthday calendar"))+"\n\t\t")]),t._v(" "),e("em",[t._v("\n\t\t\t"+t._s(t.$t("dav","Birthday calendars will be generated by a background job."))+"\n\t\t")]),t._v(" "),e("br"),t._v(" "),e("em",[t._v("\n\t\t\t"+t._s(t.$t("dav","Hence they will not be available immediately after enabling but will show up after some time."))+"\n\t\t")])],1),t._v(" "),e("p",[e("NcCheckboxRadioSwitch",{attrs:{id:"caldavSendEventReminders",checked:t.sendEventReminders,type:"switch"},on:{"update:checked":function(e){t.sendEventReminders=e}}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Send notifications for events"))+"\n\t\t")]),t._v(" "),e("em",{domProps:{innerHTML:t._s(t.sendEventRemindersHelpText)}}),t._v(" "),e("br"),t._v(" "),e("em",[t._v("\n\t\t\t"+t._s(t.$t("dav","Notifications are sent via background jobs, so these must occur often enough."))+"\n\t\t")])],1),t._v(" "),e("p",{staticClass:"indented"},[e("NcCheckboxRadioSwitch",{attrs:{id:"caldavSendEventRemindersToSharedGroupMembers",checked:t.sendEventRemindersToSharedUsers,type:"switch",disabled:!t.sendEventReminders},on:{"update:checked":function(e){t.sendEventRemindersToSharedUsers=e}}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Send reminder notifications to calendar sharees as well"))+"\n\t\t")]),t._v(" "),e("em",[t._v("\n\t\t\t"+t._s(t.$t("dav","Reminders are always sent to organizers and attendees."))+"\n\t\t")])],1),t._v(" "),e("p",{staticClass:"indented"},[e("NcCheckboxRadioSwitch",{attrs:{id:"caldavSendEventRemindersPush",checked:t.sendEventRemindersPush,type:"switch",disabled:!t.sendEventReminders},on:{"update:checked":function(e){t.sendEventRemindersPush=e}}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Enable notifications for events via push"))+"\n\t\t")])],1)])}),[],!1,null,"27ba2d2a",null).exports;a.Ay.prototype.$t=r.Tl,new(a.Ay.extend(w))({name:"CalDavSettingsView",data:()=>({sendInvitations:(0,s.C)("dav","sendInvitations"),generateBirthdayCalendar:(0,s.C)("dav","generateBirthdayCalendar"),sendEventReminders:(0,s.C)("dav","sendEventReminders"),sendEventRemindersToSharedUsers:(0,s.C)("dav","sendEventRemindersToSharedUsers"),sendEventRemindersPush:(0,s.C)("dav","sendEventRemindersPush")})}).$mount("#settings-admin-caldav")},53187:(t,e,n)=>{n.d(e,{A:()=>d});var a=n(71354),s=n.n(a),r=n(76314),i=n.n(r)()(s());i.push([t.id,"\n.indented[data-v-27ba2d2a] {\n\tpadding-inline-start: 28px;\n}\n/** Use deep selector to affect v-html */\n*[data-v-27ba2d2a] a {\n\ttext-decoration: underline;\n}\n.settings-hint[data-v-27ba2d2a] {\n\tmargin-top: -.2em;\n\tmargin-bottom: 1em;\n\topacity: .7;\n}\n","",{version:3,sources:["webpack://./apps/dav/src/views/CalDavSettings.vue"],names:[],mappings:";AAsKA;CACA,0BAAA;AACA;AACA,wCAAA;AACA;CACA,0BAAA;AACA;AAEA;CACA,iBAAA;CACA,kBAAA;CACA,WAAA;AACA",sourcesContent:["\x3c!--\n - SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n--\x3e\n\n\n