diff --git a/apps/files_reminders/appinfo/routes.php b/apps/files_reminders/appinfo/routes.php index 8dfd785669ba1..7f022a280ab54 100644 --- a/apps/files_reminders/appinfo/routes.php +++ b/apps/files_reminders/appinfo/routes.php @@ -30,8 +30,8 @@ return [ 'ocs' => [ - ['name' => 'Api#get', 'url' => '/api/v{version}/get/{fileId}', 'verb' => 'GET', 'requirements' => $requirements], - ['name' => 'Api#set', 'url' => '/api/v{version}/set/{fileId}', 'verb' => 'PUT', 'requirements' => $requirements], - ['name' => 'Api#remove', 'url' => '/api/v{version}/remove/{fileId}', 'verb' => 'DELETE', 'requirements' => $requirements], + ['name' => 'Api#get', 'url' => '/api/v{version}/{fileId}', 'verb' => 'GET', 'requirements' => $requirements], + ['name' => 'Api#set', 'url' => '/api/v{version}/{fileId}', 'verb' => 'PUT', 'requirements' => $requirements], + ['name' => 'Api#remove', 'url' => '/api/v{version}/{fileId}', 'verb' => 'DELETE', 'requirements' => $requirements], ], ]; diff --git a/apps/files_reminders/src/services/reminderService.ts b/apps/files_reminders/src/services/reminderService.ts index eacb6e2834ede..06163b601cb85 100644 --- a/apps/files_reminders/src/services/reminderService.ts +++ b/apps/files_reminders/src/services/reminderService.ts @@ -28,7 +28,7 @@ interface Reminder { } export const getReminder = async (fileId: number): Promise => { - const url = generateOcsUrl('/apps/files_reminders/api/v1/get/{fileId}', { fileId }) + const url = generateOcsUrl('/apps/files_reminders/api/v1/{fileId}', { fileId }) const response = await axios.get(url) const dueDate = response.data.ocs.data.dueDate ? new Date(response.data.ocs.data.dueDate) : null @@ -38,7 +38,7 @@ export const getReminder = async (fileId: number): Promise => { } export const setReminder = async (fileId: number, dueDate: Date): Promise<[]> => { - const url = generateOcsUrl('/apps/files_reminders/api/v1/set/{fileId}', { fileId }) + const url = generateOcsUrl('/apps/files_reminders/api/v1/{fileId}', { fileId }) const response = await axios.put(url, { dueDate: dueDate.toISOString(), // timezone of string is always UTC @@ -48,7 +48,7 @@ export const setReminder = async (fileId: number, dueDate: Date): Promise<[]> => } export const clearReminder = async (fileId: number): Promise<[]> => { - const url = generateOcsUrl('/apps/files_reminders/api/v1/remove/{fileId}', { fileId }) + const url = generateOcsUrl('/apps/files_reminders/api/v1/{fileId}', { fileId }) const response = await axios.delete(url) return response.data.ocs.data diff --git a/dist/files_reminders-main.js b/dist/files_reminders-main.js index 74eedc526d8f8..3bad0e2757166 100644 --- a/dist/files_reminders-main.js +++ b/dist/files_reminders-main.js @@ -1,3 +1,3 @@ /*! For license information please see files_reminders-main.js.LICENSE.txt */ -(()=>{var e,t,r,s={8251:(e,t,r)=>{"use strict";var s=r(20144),n=r(69183),a=r(64024),o=r(31352),i=r(45400),l=r.n(i),d=r(79570),c=r.n(d),u=r(12945),m=r.n(u),f=r(875),j=r.n(f),p=r(32219),h=r(32291),y=r(80419),b=r(71107),v=r(4820),k=r(79753);const g=async(e,t)=>{const r=(0,k.generateOcsUrl)("/apps/files_reminders/api/v1/set/{fileId}",{fileId:e});return(await v.default.put(r,{dueDate:t.toISOString()})).data.ocs.data};var w,_=r(80351),A=r.n(_);!function(e){e[e.LaterToday=0]="LaterToday",e[e.Tomorrow=1]="Tomorrow",e[e.ThisWeekend=2]="ThisWeekend",e[e.NextWeek=3]="NextWeek"}(w||(w={}));const x=()=>{const e=A()().get("hour");return A()().startOf("day").add(e+2,"hour").toDate()},D=e=>{let t={hour:"numeric",minute:"2-digit"};const r=A()(e),s=A()();return r.isSame(s,"date")||(t={...t,weekday:"short"}),r.isSame(s,"week")||(t={...t,month:"short",day:"numeric"}),e.toLocaleString((0,o.aj)(),t)},I=e=>e.toLocaleString((0,o.aj)(),{weekday:"long",hour:"numeric",minute:"2-digit",month:"long",day:"numeric"}),S=(0,r(17499).IY)().setApp("files_reminders").detectUser().build(),C={dateTimePreset:w.LaterToday,label:(0,o.Iu)("files_reminders","Later today"),ariaLabel:(0,o.Iu)("files_reminders","Set reminder for later today")},O={dateTimePreset:w.Tomorrow,label:(0,o.Iu)("files_reminders","Tomorrow"),ariaLabel:(0,o.Iu)("files_reminders","Set reminder for tomorrow")},N={dateTimePreset:w.ThisWeekend,label:(0,o.Iu)("files_reminders","This weekend"),ariaLabel:(0,o.Iu)("files_reminders","Set reminder for this weekend")},T={dateTimePreset:w.NextWeek,label:(0,o.Iu)("files_reminders","Next week"),ariaLabel:(0,o.Iu)("files_reminders","Set reminder for next week")},z=s.default.extend({name:"SetReminderActions",components:{ArrowLeft:p.default,CalendarClock:h.Z,Check:y.default,CloseCircleOutline:b.Z,NcActionButton:l(),NcActionInput:c(),NcActions:m(),NcActionSeparator:j()},props:{file:{type:Object,required:!0},dueDate:{type:Date,default:null}},data:()=>({open:!0,now:new Date,customDueDate:x()}),watch:{open(e){e||this.$emit("close")}},computed:{fileId(){return this.file.id},fileName(){return this.file.name},clearAriaLabel(){return"".concat((0,o.Iu)("files_reminders","Clear reminder")," – ").concat(I(this.dueDate))},customAriaLabel(){return""===this.customDueDate?null:"".concat((0,o.Iu)("files_reminders","Set reminder at custom date & time")," – ").concat(I(this.customDueDate))},options(){return[C,O,N,T].map((e=>{const t=(e=>({[w.LaterToday]:()=>{const e=A()(),t=A()().startOf("day").add(18,"hour"),r=t.clone().subtract(1,"hour");return e.isSameOrAfter(r)?null:t.toDate()},[w.Tomorrow]:()=>A()().add(1,"day").startOf("day").add(8,"hour").toDate(),[w.ThisWeekend]:()=>{const e=A()();return[5,6,7].includes(e.isoWeekday())?null:A()().startOf("isoWeek").add(5,"day").add(8,"hour").toDate()},[w.NextWeek]:()=>7===A()().isoWeekday()?null:A()().startOf("isoWeek").add(1,"week").add(8,"hour").toDate()}[e]()))(e.dateTimePreset);return t?{...e,ariaLabel:"".concat(e.ariaLabel," – ").concat(I(t)),dateString:D(t),action:()=>this.set(t)}:null})).filter(Boolean)}},methods:{t:o.Iu,getDateString:D,async set(e){try{await g(this.fileId,e),(0,a.s$)((0,o.Iu)("files_reminders",'Reminder set for "{fileName}"',{fileName:this.fileName})),this.open=!1}catch(e){S.error("Failed to set reminder",{error:e}),(0,a.x2)((0,o.Iu)("files_reminders","Failed to set reminder"))}},async setCustom(){if(""!==this.customDueDate)try{await g(this.fileId,this.customDueDate),(0,a.s$)((0,o.Iu)("files_reminders",'Reminder set for "{fileName}"',{fileName:this.fileName})),this.open=!1}catch(e){S.error("Failed to set reminder",{error:e}),(0,a.x2)((0,o.Iu)("files_reminders","Failed to set reminder"))}else(0,a.x2)((0,o.Iu)("files_reminders","Please choose a valid date & time"))},async clear(){try{await(async e=>{const t=(0,k.generateOcsUrl)("/apps/files_reminders/api/v1/remove/{fileId}",{fileId:e});return(await v.default.delete(t)).data.ocs.data})(this.fileId),(0,a.s$)((0,o.Iu)("files_reminders","Reminder cleared")),this.open=!1}catch(e){S.error("Failed to clear reminder",{error:e}),(0,a.x2)((0,o.Iu)("files_reminders","Failed to clear reminder"))}}}});var L=r(93379),E=r.n(L),P=r(7795),B=r.n(P),$=r(90569),W=r.n($),F=r(3565),Z=r.n(F),R=r(19216),U=r.n(R),q=r(44589),M=r.n(q),Y=r(66652),G={};G.styleTagTransform=M(),G.setAttributes=Z(),G.insert=W().bind(null,"head"),G.domAPI=B(),G.insertStyleElement=U(),E()(Y.Z,G),Y.Z&&Y.Z.locals&&Y.Z.locals;const H=(0,r(51900).Z)(z,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("NcActions",{staticClass:"actions-secondary-vue",attrs:{open:e.open},on:{"update:open":function(t){e.open=t}}},[t("NcActionButton",{on:{click:function(t){return e.$emit("back")}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ArrowLeft",{attrs:{size:20}})]},proxy:!0}])},[e._v("\n\t\t"+e._s(e.t("files_reminders","Back"))+"\n\t")]),e._v(" "),Boolean(e.dueDate)?t("NcActionButton",{attrs:{"aria-label":e.clearAriaLabel},on:{click:e.clear},scopedSlots:e._u([{key:"icon",fn:function(){return[t("CloseCircleOutline",{attrs:{size:20}})]},proxy:!0}],null,!1,3165582732)},[e._v("\n\t\t"+e._s(e.t("files_reminders","Clear reminder"))+" – "+e._s(e.getDateString(e.dueDate))+"\n\t")]):e._e(),e._v(" "),t("NcActionSeparator"),e._v(" "),e._l(e.options,(function(r){let{label:s,ariaLabel:n,dateString:a,action:o}=r;return t("NcActionButton",{key:s,attrs:{"aria-label":n},on:{click:o}},[e._v("\n\t\t"+e._s(s)+" – "+e._s(a)+"\n\t")])})),e._v(" "),t("NcActionSeparator"),e._v(" "),t("NcActionInput",{attrs:{type:"datetime-local","is-native-picker":"",min:e.now},scopedSlots:e._u([{key:"icon",fn:function(){return[t("CalendarClock",{attrs:{size:20}})]},proxy:!0}]),model:{value:e.customDueDate,callback:function(t){e.customDueDate=t},expression:"customDueDate"}}),e._v(" "),t("NcActionButton",{attrs:{"aria-label":e.customAriaLabel},on:{click:e.setCustom},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Check",{attrs:{size:20}})]},proxy:!0}])},[e._v("\n\t\t"+e._s(e.t("files_reminders","Set custom reminder"))+"\n\t")])],2)}),[],!1,null,"5d769186",null).exports;(0,n.Ld)("files:action-menu:opened",(async e=>{const t=e.context.fileInfoModel.attributes.id,r=e.context.$file[0].querySelector(".fileactions .action-menu"),n=e.el.querySelector(".action-setreminder-container .action-setreminder");let i=null,l=null;try{i=(await(async e=>{const t=(0,k.generateOcsUrl)("/apps/files_reminders/api/v1/get/{fileId}",{fileId:e}),r=await v.default.get(t);return{dueDate:r.data.ocs.data.dueDate?new Date(r.data.ocs.data.dueDate):null}})(t)).dueDate}catch(e){l=e,S.error("Failed to load reminder for file with id: ".concat(t),{error:l})}n.addEventListener("click",(t=>{if(l)throw(0,a.x2)((0,o.Iu)("files_reminders","Failed to load reminder")),Error();const n=document.createElement("div"),d=s.default.extend(H),c=r.style.display;r.style.display="none",r.insertAdjacentElement("afterend",n);const u=new d({propsData:{file:e.context.fileInfoModel.attributes,dueDate:i}}).$mount(n),m=()=>{u.$destroy(),u.$el.remove(),r.style.display=c};u.$once("back",(()=>{m(),r.click()})),u.$once("close",(()=>{m()}))}),{once:!0})}))},66652:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var s=r(87537),n=r.n(s),a=r(23645),o=r.n(a)()(n());o.push([e.id,".actions-secondary-vue[data-v-5d769186]{display:block !important;float:right !important;padding:5px 0 0 4px !important;pointer-events:none !important}","",{version:3,sources:["webpack://./apps/files_reminders/src/components/SetReminderActions.vue"],names:[],mappings:"AACA,wCACC,wBAAA,CACA,sBAAA,CACA,8BAAA,CACA,8BAAA",sourcesContent:["\n.actions-secondary-vue {\n\tdisplay: block !important;\n\tfloat: right !important;\n\tpadding: 5px 0 0 4px !important;\n\tpointer-events: none !important; // prevent activation of file row\n}\n"],sourceRoot:""}]);const i=o},46700:(e,t,r)=>{var s={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb.js":22243,"./en-ie":46436,"./en-ie.js":46436,"./en-il":47207,"./en-il.js":47207,"./en-in":44175,"./en-in.js":44175,"./en-nz":76319,"./en-nz.js":76319,"./en-sg":31662,"./en-sg.js":31662,"./eo":92915,"./eo.js":92915,"./es":55655,"./es-do":55251,"./es-do.js":55251,"./es-mx":96112,"./es-mx.js":96112,"./es-us":71146,"./es-us.js":71146,"./es.js":55655,"./et":5603,"./et.js":5603,"./eu":77763,"./eu.js":77763,"./fa":76959,"./fa.js":76959,"./fi":11897,"./fi.js":11897,"./fil":42549,"./fil.js":42549,"./fo":94694,"./fo.js":94694,"./fr":94470,"./fr-ca":63049,"./fr-ca.js":63049,"./fr-ch":52330,"./fr-ch.js":52330,"./fr.js":94470,"./fy":5044,"./fy.js":5044,"./ga":29295,"./ga.js":29295,"./gd":2101,"./gd.js":2101,"./gl":38794,"./gl.js":38794,"./gom-deva":27884,"./gom-deva.js":27884,"./gom-latn":23168,"./gom-latn.js":23168,"./gu":95349,"./gu.js":95349,"./he":24206,"./he.js":24206,"./hi":30094,"./hi.js":30094,"./hr":30316,"./hr.js":30316,"./hu":22138,"./hu.js":22138,"./hy-am":11423,"./hy-am.js":11423,"./id":29218,"./id.js":29218,"./is":90135,"./is.js":90135,"./it":90626,"./it-ch":10150,"./it-ch.js":10150,"./it.js":90626,"./ja":39183,"./ja.js":39183,"./jv":24286,"./jv.js":24286,"./ka":12105,"./ka.js":12105,"./kk":47772,"./kk.js":47772,"./km":18758,"./km.js":18758,"./kn":79282,"./kn.js":79282,"./ko":33730,"./ko.js":33730,"./ku":1408,"./ku.js":1408,"./ky":33291,"./ky.js":33291,"./lb":36841,"./lb.js":36841,"./lo":55466,"./lo.js":55466,"./lt":57010,"./lt.js":57010,"./lv":37595,"./lv.js":37595,"./me":39861,"./me.js":39861,"./mi":35493,"./mi.js":35493,"./mk":95966,"./mk.js":95966,"./ml":87341,"./ml.js":87341,"./mn":5115,"./mn.js":5115,"./mr":10370,"./mr.js":10370,"./ms":9847,"./ms-my":41237,"./ms-my.js":41237,"./ms.js":9847,"./mt":72126,"./mt.js":72126,"./my":56165,"./my.js":56165,"./nb":64924,"./nb.js":64924,"./ne":16744,"./ne.js":16744,"./nl":93901,"./nl-be":59814,"./nl-be.js":59814,"./nl.js":93901,"./nn":83877,"./nn.js":83877,"./oc-lnc":92135,"./oc-lnc.js":92135,"./pa-in":15858,"./pa-in.js":15858,"./pl":64495,"./pl.js":64495,"./pt":89520,"./pt-br":57971,"./pt-br.js":57971,"./pt.js":89520,"./ro":96459,"./ro.js":96459,"./ru":21793,"./ru.js":21793,"./sd":40950,"./sd.js":40950,"./se":10490,"./se.js":10490,"./si":90124,"./si.js":90124,"./sk":64249,"./sk.js":64249,"./sl":14985,"./sl.js":14985,"./sq":51104,"./sq.js":51104,"./sr":49131,"./sr-cyrl":79915,"./sr-cyrl.js":79915,"./sr.js":49131,"./ss":85893,"./ss.js":85893,"./sv":98760,"./sv.js":98760,"./sw":91172,"./sw.js":91172,"./ta":27333,"./ta.js":27333,"./te":23110,"./te.js":23110,"./tet":52095,"./tet.js":52095,"./tg":27321,"./tg.js":27321,"./th":9041,"./th.js":9041,"./tk":19005,"./tk.js":19005,"./tl-ph":75768,"./tl-ph.js":75768,"./tlh":89444,"./tlh.js":89444,"./tr":72397,"./tr.js":72397,"./tzl":28254,"./tzl.js":28254,"./tzm":51106,"./tzm-latn":30699,"./tzm-latn.js":30699,"./tzm.js":51106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":67691,"./uk.js":67691,"./ur":13795,"./ur.js":13795,"./uz":6791,"./uz-latn":60588,"./uz-latn.js":60588,"./uz.js":6791,"./vi":65666,"./vi.js":65666,"./x-pseudo":14378,"./x-pseudo.js":14378,"./yo":75805,"./yo.js":75805,"./zh-cn":83839,"./zh-cn.js":83839,"./zh-hk":55726,"./zh-hk.js":55726,"./zh-mo":99807,"./zh-mo.js":99807,"./zh-tw":74152,"./zh-tw.js":74152};function n(e){var t=a(e);return r(t)}function a(e){if(!r.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}n.keys=function(){return Object.keys(s)},n.resolve=a,e.exports=n,n.id=46700}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={id:e,loaded:!1,exports:{}};return s[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=s,e=[],a.O=(t,r,s,n)=>{if(!r){var o=1/0;for(c=0;c=n)&&Object.keys(a.O).every((e=>a.O[e](r[l])))?r.splice(l--,1):(i=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[r,s,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>e+"-"+e+".js?v=00434e4baa0d8e7b79f1",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},r="nextcloud:",a.l=(e,s,n,o)=>{if(t[e])t[e].push(s);else{var i,l;if(void 0!==n)for(var d=document.getElementsByTagName("script"),c=0;c{i.onerror=i.onload=null,clearTimeout(f);var n=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(s))),r)return r(s)},f=setTimeout(m.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=m.bind(null,i.onerror),i.onload=m.bind(null,i.onload),l&&document.head.appendChild(i)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=5265,(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{a.b=document.baseURI||self.location.href;var e={5265:0};a.f.j=(t,r)=>{var s=a.o(e,t)?e[t]:void 0;if(0!==s)if(s)r.push(s[2]);else{var n=new Promise(((r,n)=>s=e[t]=[r,n]));r.push(s[2]=n);var o=a.p+a.u(t),i=new Error;a.l(o,(r=>{if(a.o(e,t)&&(0!==(s=e[t])&&(e[t]=void 0),s)){var n=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,s[1](i)}}),"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,r)=>{var s,n,o=r[0],i=r[1],l=r[2],d=0;if(o.some((t=>0!==e[t]))){for(s in i)a.o(i,s)&&(a.m[s]=i[s]);if(l)var c=l(a)}for(t&&t(r);da(8251)));o=a.O(o)})(); -//# sourceMappingURL=files_reminders-main.js.map?v=7d6ad724f5c0f0b5f7d4 \ No newline at end of file +(()=>{var e,t,r,s={8251:(e,t,r)=>{"use strict";var s=r(20144),n=r(69183),a=r(64024),o=r(31352),i=r(45400),l=r.n(i),d=r(79570),c=r.n(d),u=r(12945),m=r.n(u),f=r(875),j=r.n(f),p=r(32219),h=r(32291),y=r(80419),b=r(71107),v=r(4820),k=r(79753);const g=async(e,t)=>{const r=(0,k.generateOcsUrl)("/apps/files_reminders/api/v1/{fileId}",{fileId:e});return(await v.default.put(r,{dueDate:t.toISOString()})).data.ocs.data};var w,_=r(80351),A=r.n(_);!function(e){e[e.LaterToday=0]="LaterToday",e[e.Tomorrow=1]="Tomorrow",e[e.ThisWeekend=2]="ThisWeekend",e[e.NextWeek=3]="NextWeek"}(w||(w={}));const x=()=>{const e=A()().get("hour");return A()().startOf("day").add(e+2,"hour").toDate()},D=e=>{let t={hour:"numeric",minute:"2-digit"};const r=A()(e),s=A()();return r.isSame(s,"date")||(t={...t,weekday:"short"}),r.isSame(s,"week")||(t={...t,month:"short",day:"numeric"}),e.toLocaleString((0,o.aj)(),t)},I=e=>e.toLocaleString((0,o.aj)(),{weekday:"long",hour:"numeric",minute:"2-digit",month:"long",day:"numeric"}),S=(0,r(17499).IY)().setApp("files_reminders").detectUser().build(),C={dateTimePreset:w.LaterToday,label:(0,o.Iu)("files_reminders","Later today"),ariaLabel:(0,o.Iu)("files_reminders","Set reminder for later today")},O={dateTimePreset:w.Tomorrow,label:(0,o.Iu)("files_reminders","Tomorrow"),ariaLabel:(0,o.Iu)("files_reminders","Set reminder for tomorrow")},N={dateTimePreset:w.ThisWeekend,label:(0,o.Iu)("files_reminders","This weekend"),ariaLabel:(0,o.Iu)("files_reminders","Set reminder for this weekend")},T={dateTimePreset:w.NextWeek,label:(0,o.Iu)("files_reminders","Next week"),ariaLabel:(0,o.Iu)("files_reminders","Set reminder for next week")},z=s.default.extend({name:"SetReminderActions",components:{ArrowLeft:p.default,CalendarClock:h.Z,Check:y.default,CloseCircleOutline:b.Z,NcActionButton:l(),NcActionInput:c(),NcActions:m(),NcActionSeparator:j()},props:{file:{type:Object,required:!0},dueDate:{type:Date,default:null}},data:()=>({open:!0,now:new Date,customDueDate:x()}),watch:{open(e){e||this.$emit("close")}},computed:{fileId(){return this.file.id},fileName(){return this.file.name},clearAriaLabel(){return"".concat((0,o.Iu)("files_reminders","Clear reminder")," – ").concat(I(this.dueDate))},customAriaLabel(){return""===this.customDueDate?null:"".concat((0,o.Iu)("files_reminders","Set reminder at custom date & time")," – ").concat(I(this.customDueDate))},options(){return[C,O,N,T].map((e=>{const t=(e=>({[w.LaterToday]:()=>{const e=A()(),t=A()().startOf("day").add(18,"hour"),r=t.clone().subtract(1,"hour");return e.isSameOrAfter(r)?null:t.toDate()},[w.Tomorrow]:()=>A()().add(1,"day").startOf("day").add(8,"hour").toDate(),[w.ThisWeekend]:()=>{const e=A()();return[5,6,7].includes(e.isoWeekday())?null:A()().startOf("isoWeek").add(5,"day").add(8,"hour").toDate()},[w.NextWeek]:()=>7===A()().isoWeekday()?null:A()().startOf("isoWeek").add(1,"week").add(8,"hour").toDate()}[e]()))(e.dateTimePreset);return t?{...e,ariaLabel:"".concat(e.ariaLabel," – ").concat(I(t)),dateString:D(t),action:()=>this.set(t)}:null})).filter(Boolean)}},methods:{t:o.Iu,getDateString:D,async set(e){try{await g(this.fileId,e),(0,a.s$)((0,o.Iu)("files_reminders",'Reminder set for "{fileName}"',{fileName:this.fileName})),this.open=!1}catch(e){S.error("Failed to set reminder",{error:e}),(0,a.x2)((0,o.Iu)("files_reminders","Failed to set reminder"))}},async setCustom(){if(""!==this.customDueDate)try{await g(this.fileId,this.customDueDate),(0,a.s$)((0,o.Iu)("files_reminders",'Reminder set for "{fileName}"',{fileName:this.fileName})),this.open=!1}catch(e){S.error("Failed to set reminder",{error:e}),(0,a.x2)((0,o.Iu)("files_reminders","Failed to set reminder"))}else(0,a.x2)((0,o.Iu)("files_reminders","Please choose a valid date & time"))},async clear(){try{await(async e=>{const t=(0,k.generateOcsUrl)("/apps/files_reminders/api/v1/{fileId}",{fileId:e});return(await v.default.delete(t)).data.ocs.data})(this.fileId),(0,a.s$)((0,o.Iu)("files_reminders","Reminder cleared")),this.open=!1}catch(e){S.error("Failed to clear reminder",{error:e}),(0,a.x2)((0,o.Iu)("files_reminders","Failed to clear reminder"))}}}});var L=r(93379),E=r.n(L),P=r(7795),B=r.n(P),$=r(90569),W=r.n($),F=r(3565),Z=r.n(F),R=r(19216),U=r.n(R),q=r(44589),M=r.n(q),Y=r(66652),G={};G.styleTagTransform=M(),G.setAttributes=Z(),G.insert=W().bind(null,"head"),G.domAPI=B(),G.insertStyleElement=U(),E()(Y.Z,G),Y.Z&&Y.Z.locals&&Y.Z.locals;const H=(0,r(51900).Z)(z,(function(){var e=this,t=e._self._c;return e._self._setupProxy,t("NcActions",{staticClass:"actions-secondary-vue",attrs:{open:e.open},on:{"update:open":function(t){e.open=t}}},[t("NcActionButton",{on:{click:function(t){return e.$emit("back")}},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ArrowLeft",{attrs:{size:20}})]},proxy:!0}])},[e._v("\n\t\t"+e._s(e.t("files_reminders","Back"))+"\n\t")]),e._v(" "),Boolean(e.dueDate)?t("NcActionButton",{attrs:{"aria-label":e.clearAriaLabel},on:{click:e.clear},scopedSlots:e._u([{key:"icon",fn:function(){return[t("CloseCircleOutline",{attrs:{size:20}})]},proxy:!0}],null,!1,3165582732)},[e._v("\n\t\t"+e._s(e.t("files_reminders","Clear reminder"))+" – "+e._s(e.getDateString(e.dueDate))+"\n\t")]):e._e(),e._v(" "),t("NcActionSeparator"),e._v(" "),e._l(e.options,(function(r){let{label:s,ariaLabel:n,dateString:a,action:o}=r;return t("NcActionButton",{key:s,attrs:{"aria-label":n},on:{click:o}},[e._v("\n\t\t"+e._s(s)+" – "+e._s(a)+"\n\t")])})),e._v(" "),t("NcActionSeparator"),e._v(" "),t("NcActionInput",{attrs:{type:"datetime-local","is-native-picker":"",min:e.now},scopedSlots:e._u([{key:"icon",fn:function(){return[t("CalendarClock",{attrs:{size:20}})]},proxy:!0}]),model:{value:e.customDueDate,callback:function(t){e.customDueDate=t},expression:"customDueDate"}}),e._v(" "),t("NcActionButton",{attrs:{"aria-label":e.customAriaLabel},on:{click:e.setCustom},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Check",{attrs:{size:20}})]},proxy:!0}])},[e._v("\n\t\t"+e._s(e.t("files_reminders","Set custom reminder"))+"\n\t")])],2)}),[],!1,null,"5d769186",null).exports;(0,n.Ld)("files:action-menu:opened",(async e=>{const t=e.context.fileInfoModel.attributes.id,r=e.context.$file[0].querySelector(".fileactions .action-menu"),n=e.el.querySelector(".action-setreminder-container .action-setreminder");let i=null,l=null;try{i=(await(async e=>{const t=(0,k.generateOcsUrl)("/apps/files_reminders/api/v1/{fileId}",{fileId:e}),r=await v.default.get(t);return{dueDate:r.data.ocs.data.dueDate?new Date(r.data.ocs.data.dueDate):null}})(t)).dueDate}catch(e){l=e,S.error("Failed to load reminder for file with id: ".concat(t),{error:l})}n.addEventListener("click",(t=>{if(l)throw(0,a.x2)((0,o.Iu)("files_reminders","Failed to load reminder")),Error();const n=document.createElement("div"),d=s.default.extend(H),c=r.style.display;r.style.display="none",r.insertAdjacentElement("afterend",n);const u=new d({propsData:{file:e.context.fileInfoModel.attributes,dueDate:i}}).$mount(n),m=()=>{u.$destroy(),u.$el.remove(),r.style.display=c};u.$once("back",(()=>{m(),r.click()})),u.$once("close",(()=>{m()}))}),{once:!0})}))},66652:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var s=r(87537),n=r.n(s),a=r(23645),o=r.n(a)()(n());o.push([e.id,".actions-secondary-vue[data-v-5d769186]{display:block !important;float:right !important;padding:5px 0 0 4px !important;pointer-events:none !important}","",{version:3,sources:["webpack://./apps/files_reminders/src/components/SetReminderActions.vue"],names:[],mappings:"AACA,wCACC,wBAAA,CACA,sBAAA,CACA,8BAAA,CACA,8BAAA",sourcesContent:["\n.actions-secondary-vue {\n\tdisplay: block !important;\n\tfloat: right !important;\n\tpadding: 5px 0 0 4px !important;\n\tpointer-events: none !important; // prevent activation of file row\n}\n"],sourceRoot:""}]);const i=o},46700:(e,t,r)=>{var s={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb.js":22243,"./en-ie":46436,"./en-ie.js":46436,"./en-il":47207,"./en-il.js":47207,"./en-in":44175,"./en-in.js":44175,"./en-nz":76319,"./en-nz.js":76319,"./en-sg":31662,"./en-sg.js":31662,"./eo":92915,"./eo.js":92915,"./es":55655,"./es-do":55251,"./es-do.js":55251,"./es-mx":96112,"./es-mx.js":96112,"./es-us":71146,"./es-us.js":71146,"./es.js":55655,"./et":5603,"./et.js":5603,"./eu":77763,"./eu.js":77763,"./fa":76959,"./fa.js":76959,"./fi":11897,"./fi.js":11897,"./fil":42549,"./fil.js":42549,"./fo":94694,"./fo.js":94694,"./fr":94470,"./fr-ca":63049,"./fr-ca.js":63049,"./fr-ch":52330,"./fr-ch.js":52330,"./fr.js":94470,"./fy":5044,"./fy.js":5044,"./ga":29295,"./ga.js":29295,"./gd":2101,"./gd.js":2101,"./gl":38794,"./gl.js":38794,"./gom-deva":27884,"./gom-deva.js":27884,"./gom-latn":23168,"./gom-latn.js":23168,"./gu":95349,"./gu.js":95349,"./he":24206,"./he.js":24206,"./hi":30094,"./hi.js":30094,"./hr":30316,"./hr.js":30316,"./hu":22138,"./hu.js":22138,"./hy-am":11423,"./hy-am.js":11423,"./id":29218,"./id.js":29218,"./is":90135,"./is.js":90135,"./it":90626,"./it-ch":10150,"./it-ch.js":10150,"./it.js":90626,"./ja":39183,"./ja.js":39183,"./jv":24286,"./jv.js":24286,"./ka":12105,"./ka.js":12105,"./kk":47772,"./kk.js":47772,"./km":18758,"./km.js":18758,"./kn":79282,"./kn.js":79282,"./ko":33730,"./ko.js":33730,"./ku":1408,"./ku.js":1408,"./ky":33291,"./ky.js":33291,"./lb":36841,"./lb.js":36841,"./lo":55466,"./lo.js":55466,"./lt":57010,"./lt.js":57010,"./lv":37595,"./lv.js":37595,"./me":39861,"./me.js":39861,"./mi":35493,"./mi.js":35493,"./mk":95966,"./mk.js":95966,"./ml":87341,"./ml.js":87341,"./mn":5115,"./mn.js":5115,"./mr":10370,"./mr.js":10370,"./ms":9847,"./ms-my":41237,"./ms-my.js":41237,"./ms.js":9847,"./mt":72126,"./mt.js":72126,"./my":56165,"./my.js":56165,"./nb":64924,"./nb.js":64924,"./ne":16744,"./ne.js":16744,"./nl":93901,"./nl-be":59814,"./nl-be.js":59814,"./nl.js":93901,"./nn":83877,"./nn.js":83877,"./oc-lnc":92135,"./oc-lnc.js":92135,"./pa-in":15858,"./pa-in.js":15858,"./pl":64495,"./pl.js":64495,"./pt":89520,"./pt-br":57971,"./pt-br.js":57971,"./pt.js":89520,"./ro":96459,"./ro.js":96459,"./ru":21793,"./ru.js":21793,"./sd":40950,"./sd.js":40950,"./se":10490,"./se.js":10490,"./si":90124,"./si.js":90124,"./sk":64249,"./sk.js":64249,"./sl":14985,"./sl.js":14985,"./sq":51104,"./sq.js":51104,"./sr":49131,"./sr-cyrl":79915,"./sr-cyrl.js":79915,"./sr.js":49131,"./ss":85893,"./ss.js":85893,"./sv":98760,"./sv.js":98760,"./sw":91172,"./sw.js":91172,"./ta":27333,"./ta.js":27333,"./te":23110,"./te.js":23110,"./tet":52095,"./tet.js":52095,"./tg":27321,"./tg.js":27321,"./th":9041,"./th.js":9041,"./tk":19005,"./tk.js":19005,"./tl-ph":75768,"./tl-ph.js":75768,"./tlh":89444,"./tlh.js":89444,"./tr":72397,"./tr.js":72397,"./tzl":28254,"./tzl.js":28254,"./tzm":51106,"./tzm-latn":30699,"./tzm-latn.js":30699,"./tzm.js":51106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":67691,"./uk.js":67691,"./ur":13795,"./ur.js":13795,"./uz":6791,"./uz-latn":60588,"./uz-latn.js":60588,"./uz.js":6791,"./vi":65666,"./vi.js":65666,"./x-pseudo":14378,"./x-pseudo.js":14378,"./yo":75805,"./yo.js":75805,"./zh-cn":83839,"./zh-cn.js":83839,"./zh-hk":55726,"./zh-hk.js":55726,"./zh-mo":99807,"./zh-mo.js":99807,"./zh-tw":74152,"./zh-tw.js":74152};function n(e){var t=a(e);return r(t)}function a(e){if(!r.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}n.keys=function(){return Object.keys(s)},n.resolve=a,e.exports=n,n.id=46700}},n={};function a(e){var t=n[e];if(void 0!==t)return t.exports;var r=n[e]={id:e,loaded:!1,exports:{}};return s[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=s,e=[],a.O=(t,r,s,n)=>{if(!r){var o=1/0;for(c=0;c=n)&&Object.keys(a.O).every((e=>a.O[e](r[l])))?r.splice(l--,1):(i=!1,n0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[r,s,n]},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>e+"-"+e+".js?v=00434e4baa0d8e7b79f1",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),t={},r="nextcloud:",a.l=(e,s,n,o)=>{if(t[e])t[e].push(s);else{var i,l;if(void 0!==n)for(var d=document.getElementsByTagName("script"),c=0;c{i.onerror=i.onload=null,clearTimeout(f);var n=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(s))),r)return r(s)},f=setTimeout(m.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=m.bind(null,i.onerror),i.onload=m.bind(null,i.onload),l&&document.head.appendChild(i)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=5265,(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{a.b=document.baseURI||self.location.href;var e={5265:0};a.f.j=(t,r)=>{var s=a.o(e,t)?e[t]:void 0;if(0!==s)if(s)r.push(s[2]);else{var n=new Promise(((r,n)=>s=e[t]=[r,n]));r.push(s[2]=n);var o=a.p+a.u(t),i=new Error;a.l(o,(r=>{if(a.o(e,t)&&(0!==(s=e[t])&&(e[t]=void 0),s)){var n=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,s[1](i)}}),"chunk-"+t,t)}},a.O.j=t=>0===e[t];var t=(t,r)=>{var s,n,o=r[0],i=r[1],l=r[2],d=0;if(o.some((t=>0!==e[t]))){for(s in i)a.o(i,s)&&(a.m[s]=i[s]);if(l)var c=l(a)}for(t&&t(r);da(8251)));o=a.O(o)})(); +//# sourceMappingURL=files_reminders-main.js.map?v=95e09b4692ab3ed4d418 \ No newline at end of file diff --git a/dist/files_reminders-main.js.map b/dist/files_reminders-main.js.map index 65debd6b0762b..d991ee9ad3e4a 100644 --- a/dist/files_reminders-main.js.map +++ b/dist/files_reminders-main.js.map @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AKnD,ECGzB,IAAIkG,EAAsB3G,EAAoBc,OAAEL,EAAW,CAAC,OAAO,IAAOT,EAAoB,QAC9F2G,EAAsB3G,EAAoBc,EAAE6F","sources":["webpack:///nextcloud/webpack/runtime/chunk loaded","webpack:///nextcloud/webpack/runtime/load script","webpack:///nextcloud/apps/files_reminders/src/services/reminderService.ts","webpack:///nextcloud/apps/files_reminders/src/shared/utils.ts","webpack:///nextcloud/apps/files_reminders/src/shared/logger.ts","webpack:///nextcloud/apps/files_reminders/src/components/SetReminderActions.vue","webpack:///nextcloud/apps/files_reminders/src/components/SetReminderActions.vue?vue&type=script&lang=ts&","webpack://nextcloud/./apps/files_reminders/src/components/SetReminderActions.vue?c222","webpack://nextcloud/./apps/files_reminders/src/components/SetReminderActions.vue?564a","webpack:///nextcloud/apps/files_reminders/src/main.ts","webpack:///nextcloud/apps/files_reminders/src/components/SetReminderActions.vue?vue&type=style&index=0&id=5d769186&prod&lang=scss&scoped=true&","webpack:///nextcloud/node_modules/moment/locale|sync|/^\\.\\/.*$","webpack:///nextcloud/webpack/bootstrap","webpack:///nextcloud/webpack/runtime/compat get default export","webpack:///nextcloud/webpack/runtime/define property getters","webpack:///nextcloud/webpack/runtime/ensure chunk","webpack:///nextcloud/webpack/runtime/get javascript chunk filename","webpack:///nextcloud/webpack/runtime/global","webpack:///nextcloud/webpack/runtime/hasOwnProperty shorthand","webpack:///nextcloud/webpack/runtime/make namespace object","webpack:///nextcloud/webpack/runtime/node module decorator","webpack:///nextcloud/webpack/runtime/runtimeId","webpack:///nextcloud/webpack/runtime/publicPath","webpack:///nextcloud/webpack/runtime/jsonp chunk loading","webpack:///nextcloud/webpack/runtime/nonce","webpack:///nextcloud/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"nextcloud:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","/**\n * @copyright 2023 Christopher Ng \n *\n * @author Christopher Ng \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nimport axios from '@nextcloud/axios';\nimport { generateOcsUrl } from '@nextcloud/router';\nexport const getReminder = async (fileId) => {\n const url = generateOcsUrl('/apps/files_reminders/api/v1/get/{fileId}', { fileId });\n const response = await axios.get(url);\n const dueDate = response.data.ocs.data.dueDate ? new Date(response.data.ocs.data.dueDate) : null;\n return {\n dueDate,\n };\n};\nexport const setReminder = async (fileId, dueDate) => {\n const url = generateOcsUrl('/apps/files_reminders/api/v1/set/{fileId}', { fileId });\n const response = await axios.put(url, {\n dueDate: dueDate.toISOString(), // timezone of string is always UTC\n });\n return response.data.ocs.data;\n};\nexport const clearReminder = async (fileId) => {\n const url = generateOcsUrl('/apps/files_reminders/api/v1/remove/{fileId}', { fileId });\n const response = await axios.delete(url);\n return response.data.ocs.data;\n};\n","/**\n * @copyright 2023 Christopher Ng \n *\n * @author Christopher Ng \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nimport moment from '@nextcloud/moment';\nimport { getCanonicalLocale } from '@nextcloud/l10n';\nexport var DateTimePreset;\n(function (DateTimePreset) {\n DateTimePreset[DateTimePreset[\"LaterToday\"] = 0] = \"LaterToday\";\n DateTimePreset[DateTimePreset[\"Tomorrow\"] = 1] = \"Tomorrow\";\n DateTimePreset[DateTimePreset[\"ThisWeekend\"] = 2] = \"ThisWeekend\";\n DateTimePreset[DateTimePreset[\"NextWeek\"] = 3] = \"NextWeek\";\n})(DateTimePreset || (DateTimePreset = {}));\nexport const getDateTime = (dateTime) => {\n const matchPreset = {\n [DateTimePreset.LaterToday]: () => {\n const now = moment();\n const evening = moment()\n .startOf('day')\n .add(18, 'hour');\n const cutoff = evening\n .clone()\n .subtract(1, 'hour');\n if (now.isSameOrAfter(cutoff)) {\n return null;\n }\n return evening.toDate();\n },\n [DateTimePreset.Tomorrow]: () => {\n const day = moment()\n .add(1, 'day')\n .startOf('day')\n .add(8, 'hour');\n return day.toDate();\n },\n [DateTimePreset.ThisWeekend]: () => {\n const today = moment();\n if ([\n 5,\n 6,\n 7, // Sunday\n ].includes(today.isoWeekday())) {\n return null;\n }\n const saturday = moment()\n .startOf('isoWeek')\n .add(5, 'day')\n .add(8, 'hour');\n return saturday.toDate();\n },\n [DateTimePreset.NextWeek]: () => {\n const today = moment();\n if (today.isoWeekday() === 7) { // Sunday\n return null;\n }\n const workday = moment()\n .startOf('isoWeek')\n .add(1, 'week')\n .add(8, 'hour');\n return workday.toDate();\n },\n };\n return matchPreset[dateTime]();\n};\nexport const getInitialCustomDueDate = () => {\n const hour = moment().get('hour');\n const dueDate = moment()\n .startOf('day')\n .add(hour + 2, 'hour');\n return dueDate.toDate();\n};\nexport const getDateString = (dueDate) => {\n let formatOptions = {\n hour: 'numeric',\n minute: '2-digit',\n };\n const dueDateMoment = moment(dueDate);\n const today = moment();\n if (!dueDateMoment.isSame(today, 'date')) {\n formatOptions = {\n ...formatOptions,\n weekday: 'short',\n };\n }\n if (!dueDateMoment.isSame(today, 'week')) {\n formatOptions = {\n ...formatOptions,\n month: 'short',\n day: 'numeric',\n };\n }\n return dueDate.toLocaleString(getCanonicalLocale(), formatOptions);\n};\nexport const getVerboseDateString = (dueDate) => {\n const formatOptions = {\n weekday: 'long',\n hour: 'numeric',\n minute: '2-digit',\n month: 'long',\n day: 'numeric',\n };\n return dueDate.toLocaleString(getCanonicalLocale(), formatOptions);\n};\n","/**\n * @copyright 2023 Christopher Ng \n *\n * @author Christopher Ng \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nimport { getLoggerBuilder } from '@nextcloud/logger';\nexport const logger = getLoggerBuilder()\n .setApp('files_reminders')\n .detectUser()\n .build();\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('NcActions',{staticClass:\"actions-secondary-vue\",attrs:{\"open\":_vm.open},on:{\"update:open\":function($event){_vm.open=$event}}},[_c('NcActionButton',{on:{\"click\":function($event){return _vm.$emit('back')}},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('ArrowLeft',{attrs:{\"size\":20}})]},proxy:true}])},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.t('files_reminders', 'Back'))+\"\\n\\t\")]),_vm._v(\" \"),(Boolean(_vm.dueDate))?_c('NcActionButton',{attrs:{\"aria-label\":_vm.clearAriaLabel},on:{\"click\":_vm.clear},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('CloseCircleOutline',{attrs:{\"size\":20}})]},proxy:true}],null,false,3165582732)},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.t('files_reminders', 'Clear reminder'))+\" – \"+_vm._s(_vm.getDateString(_vm.dueDate))+\"\\n\\t\")]):_vm._e(),_vm._v(\" \"),_c('NcActionSeparator'),_vm._v(\" \"),_vm._l((_vm.options),function({ label, ariaLabel, dateString, action }){return _c('NcActionButton',{key:label,attrs:{\"aria-label\":ariaLabel},on:{\"click\":action}},[_vm._v(\"\\n\\t\\t\"+_vm._s(label)+\" – \"+_vm._s(dateString)+\"\\n\\t\")])}),_vm._v(\" \"),_c('NcActionSeparator'),_vm._v(\" \"),_c('NcActionInput',{attrs:{\"type\":\"datetime-local\",\"is-native-picker\":\"\",\"min\":_vm.now},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('CalendarClock',{attrs:{\"size\":20}})]},proxy:true}]),model:{value:(_vm.customDueDate),callback:function ($$v) {_vm.customDueDate=$$v},expression:\"customDueDate\"}}),_vm._v(\" \"),_c('NcActionButton',{attrs:{\"aria-label\":_vm.customAriaLabel},on:{\"click\":_vm.setCustom},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('Check',{attrs:{\"size\":20}})]},proxy:true}])},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.t('files_reminders', 'Set custom reminder'))+\"\\n\\t\")])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SetReminderActions.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SetReminderActions.vue?vue&type=script&lang=ts&\"","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SetReminderActions.vue?vue&type=style&index=0&id=5d769186&prod&lang=scss&scoped=true&\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SetReminderActions.vue?vue&type=style&index=0&id=5d769186&prod&lang=scss&scoped=true&\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./SetReminderActions.vue?vue&type=template&id=5d769186&scoped=true&\"\nimport script from \"./SetReminderActions.vue?vue&type=script&lang=ts&\"\nexport * from \"./SetReminderActions.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SetReminderActions.vue?vue&type=style&index=0&id=5d769186&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5d769186\",\n null\n \n)\n\nexport default component.exports","/**\n * @copyright 2023 Christopher Ng \n *\n * @author Christopher Ng \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nimport Vue, {} from 'vue';\nimport { subscribe } from '@nextcloud/event-bus';\nimport { showError } from '@nextcloud/dialogs';\nimport { translate as t } from '@nextcloud/l10n';\nimport SetReminderActionsComponent from './components/SetReminderActions.vue';\nimport { getReminder } from './services/reminderService.js';\nimport { logger } from './shared/logger.js';\nconst handleOpen = async (payload) => {\n const fileId = payload.context.fileInfoModel.attributes.id;\n const menuEl = payload.context.$file[0].querySelector('.fileactions .action-menu');\n const linkEl = payload.el.querySelector('.action-setreminder-container .action-setreminder');\n let dueDate = null;\n let error = null;\n try {\n dueDate = (await getReminder(fileId)).dueDate;\n }\n catch (e) {\n error = e;\n logger.error(`Failed to load reminder for file with id: ${fileId}`, { error });\n }\n linkEl.addEventListener('click', (_event) => {\n if (error) {\n showError(t('files_reminders', 'Failed to load reminder'));\n throw Error();\n }\n const mountPoint = document.createElement('div');\n const SetReminderActions = Vue.extend(SetReminderActionsComponent);\n const origDisplay = menuEl.style.display;\n menuEl.style.display = 'none';\n menuEl.insertAdjacentElement('afterend', mountPoint);\n const propsData = {\n file: payload.context.fileInfoModel.attributes,\n dueDate,\n };\n const actions = new SetReminderActions({ propsData })\n .$mount(mountPoint);\n const cleanUp = () => {\n actions.$destroy(); // destroy popper\n actions.$el.remove(); // remove action menu button\n menuEl.style.display = origDisplay;\n };\n actions.$once('back', () => {\n cleanUp();\n menuEl.click(); // reopen original actions menu\n });\n actions.$once('close', () => {\n cleanUp();\n });\n }, {\n once: true,\n });\n};\nsubscribe('files:action-menu:opened', handleOpen);\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".actions-secondary-vue[data-v-5d769186]{display:block !important;float:right !important;padding:5px 0 0 4px !important;pointer-events:none !important}\", \"\",{\"version\":3,\"sources\":[\"webpack://./apps/files_reminders/src/components/SetReminderActions.vue\"],\"names\":[],\"mappings\":\"AACA,wCACC,wBAAA,CACA,sBAAA,CACA,8BAAA,CACA,8BAAA\",\"sourcesContent\":[\"\\n.actions-secondary-vue {\\n\\tdisplay: block !important;\\n\\tfloat: right !important;\\n\\tpadding: 5px 0 0 4px !important;\\n\\tpointer-events: none !important; // prevent activation of file row\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","var map = {\n\t\"./af\": 42786,\n\t\"./af.js\": 42786,\n\t\"./ar\": 30867,\n\t\"./ar-dz\": 14130,\n\t\"./ar-dz.js\": 14130,\n\t\"./ar-kw\": 96135,\n\t\"./ar-kw.js\": 96135,\n\t\"./ar-ly\": 56440,\n\t\"./ar-ly.js\": 56440,\n\t\"./ar-ma\": 47702,\n\t\"./ar-ma.js\": 47702,\n\t\"./ar-sa\": 16040,\n\t\"./ar-sa.js\": 16040,\n\t\"./ar-tn\": 37100,\n\t\"./ar-tn.js\": 37100,\n\t\"./ar.js\": 30867,\n\t\"./az\": 31083,\n\t\"./az.js\": 31083,\n\t\"./be\": 9808,\n\t\"./be.js\": 9808,\n\t\"./bg\": 68338,\n\t\"./bg.js\": 68338,\n\t\"./bm\": 67438,\n\t\"./bm.js\": 67438,\n\t\"./bn\": 8905,\n\t\"./bn-bd\": 76225,\n\t\"./bn-bd.js\": 76225,\n\t\"./bn.js\": 8905,\n\t\"./bo\": 11560,\n\t\"./bo.js\": 11560,\n\t\"./br\": 1278,\n\t\"./br.js\": 1278,\n\t\"./bs\": 80622,\n\t\"./bs.js\": 80622,\n\t\"./ca\": 2468,\n\t\"./ca.js\": 2468,\n\t\"./cs\": 5822,\n\t\"./cs.js\": 5822,\n\t\"./cv\": 50877,\n\t\"./cv.js\": 50877,\n\t\"./cy\": 47373,\n\t\"./cy.js\": 47373,\n\t\"./da\": 24780,\n\t\"./da.js\": 24780,\n\t\"./de\": 59740,\n\t\"./de-at\": 60217,\n\t\"./de-at.js\": 60217,\n\t\"./de-ch\": 60894,\n\t\"./de-ch.js\": 60894,\n\t\"./de.js\": 59740,\n\t\"./dv\": 5300,\n\t\"./dv.js\": 5300,\n\t\"./el\": 50837,\n\t\"./el.js\": 50837,\n\t\"./en-au\": 78348,\n\t\"./en-au.js\": 78348,\n\t\"./en-ca\": 77925,\n\t\"./en-ca.js\": 77925,\n\t\"./en-gb\": 22243,\n\t\"./en-gb.js\": 22243,\n\t\"./en-ie\": 46436,\n\t\"./en-ie.js\": 46436,\n\t\"./en-il\": 47207,\n\t\"./en-il.js\": 47207,\n\t\"./en-in\": 44175,\n\t\"./en-in.js\": 44175,\n\t\"./en-nz\": 76319,\n\t\"./en-nz.js\": 76319,\n\t\"./en-sg\": 31662,\n\t\"./en-sg.js\": 31662,\n\t\"./eo\": 92915,\n\t\"./eo.js\": 92915,\n\t\"./es\": 55655,\n\t\"./es-do\": 55251,\n\t\"./es-do.js\": 55251,\n\t\"./es-mx\": 96112,\n\t\"./es-mx.js\": 96112,\n\t\"./es-us\": 71146,\n\t\"./es-us.js\": 71146,\n\t\"./es.js\": 55655,\n\t\"./et\": 5603,\n\t\"./et.js\": 5603,\n\t\"./eu\": 77763,\n\t\"./eu.js\": 77763,\n\t\"./fa\": 76959,\n\t\"./fa.js\": 76959,\n\t\"./fi\": 11897,\n\t\"./fi.js\": 11897,\n\t\"./fil\": 42549,\n\t\"./fil.js\": 42549,\n\t\"./fo\": 94694,\n\t\"./fo.js\": 94694,\n\t\"./fr\": 94470,\n\t\"./fr-ca\": 63049,\n\t\"./fr-ca.js\": 63049,\n\t\"./fr-ch\": 52330,\n\t\"./fr-ch.js\": 52330,\n\t\"./fr.js\": 94470,\n\t\"./fy\": 5044,\n\t\"./fy.js\": 5044,\n\t\"./ga\": 29295,\n\t\"./ga.js\": 29295,\n\t\"./gd\": 2101,\n\t\"./gd.js\": 2101,\n\t\"./gl\": 38794,\n\t\"./gl.js\": 38794,\n\t\"./gom-deva\": 27884,\n\t\"./gom-deva.js\": 27884,\n\t\"./gom-latn\": 23168,\n\t\"./gom-latn.js\": 23168,\n\t\"./gu\": 95349,\n\t\"./gu.js\": 95349,\n\t\"./he\": 24206,\n\t\"./he.js\": 24206,\n\t\"./hi\": 30094,\n\t\"./hi.js\": 30094,\n\t\"./hr\": 30316,\n\t\"./hr.js\": 30316,\n\t\"./hu\": 22138,\n\t\"./hu.js\": 22138,\n\t\"./hy-am\": 11423,\n\t\"./hy-am.js\": 11423,\n\t\"./id\": 29218,\n\t\"./id.js\": 29218,\n\t\"./is\": 90135,\n\t\"./is.js\": 90135,\n\t\"./it\": 90626,\n\t\"./it-ch\": 10150,\n\t\"./it-ch.js\": 10150,\n\t\"./it.js\": 90626,\n\t\"./ja\": 39183,\n\t\"./ja.js\": 39183,\n\t\"./jv\": 24286,\n\t\"./jv.js\": 24286,\n\t\"./ka\": 12105,\n\t\"./ka.js\": 12105,\n\t\"./kk\": 47772,\n\t\"./kk.js\": 47772,\n\t\"./km\": 18758,\n\t\"./km.js\": 18758,\n\t\"./kn\": 79282,\n\t\"./kn.js\": 79282,\n\t\"./ko\": 33730,\n\t\"./ko.js\": 33730,\n\t\"./ku\": 1408,\n\t\"./ku.js\": 1408,\n\t\"./ky\": 33291,\n\t\"./ky.js\": 33291,\n\t\"./lb\": 36841,\n\t\"./lb.js\": 36841,\n\t\"./lo\": 55466,\n\t\"./lo.js\": 55466,\n\t\"./lt\": 57010,\n\t\"./lt.js\": 57010,\n\t\"./lv\": 37595,\n\t\"./lv.js\": 37595,\n\t\"./me\": 39861,\n\t\"./me.js\": 39861,\n\t\"./mi\": 35493,\n\t\"./mi.js\": 35493,\n\t\"./mk\": 95966,\n\t\"./mk.js\": 95966,\n\t\"./ml\": 87341,\n\t\"./ml.js\": 87341,\n\t\"./mn\": 5115,\n\t\"./mn.js\": 5115,\n\t\"./mr\": 10370,\n\t\"./mr.js\": 10370,\n\t\"./ms\": 9847,\n\t\"./ms-my\": 41237,\n\t\"./ms-my.js\": 41237,\n\t\"./ms.js\": 9847,\n\t\"./mt\": 72126,\n\t\"./mt.js\": 72126,\n\t\"./my\": 56165,\n\t\"./my.js\": 56165,\n\t\"./nb\": 64924,\n\t\"./nb.js\": 64924,\n\t\"./ne\": 16744,\n\t\"./ne.js\": 16744,\n\t\"./nl\": 93901,\n\t\"./nl-be\": 59814,\n\t\"./nl-be.js\": 59814,\n\t\"./nl.js\": 93901,\n\t\"./nn\": 83877,\n\t\"./nn.js\": 83877,\n\t\"./oc-lnc\": 92135,\n\t\"./oc-lnc.js\": 92135,\n\t\"./pa-in\": 15858,\n\t\"./pa-in.js\": 15858,\n\t\"./pl\": 64495,\n\t\"./pl.js\": 64495,\n\t\"./pt\": 89520,\n\t\"./pt-br\": 57971,\n\t\"./pt-br.js\": 57971,\n\t\"./pt.js\": 89520,\n\t\"./ro\": 96459,\n\t\"./ro.js\": 96459,\n\t\"./ru\": 21793,\n\t\"./ru.js\": 21793,\n\t\"./sd\": 40950,\n\t\"./sd.js\": 40950,\n\t\"./se\": 10490,\n\t\"./se.js\": 10490,\n\t\"./si\": 90124,\n\t\"./si.js\": 90124,\n\t\"./sk\": 64249,\n\t\"./sk.js\": 64249,\n\t\"./sl\": 14985,\n\t\"./sl.js\": 14985,\n\t\"./sq\": 51104,\n\t\"./sq.js\": 51104,\n\t\"./sr\": 49131,\n\t\"./sr-cyrl\": 79915,\n\t\"./sr-cyrl.js\": 79915,\n\t\"./sr.js\": 49131,\n\t\"./ss\": 85893,\n\t\"./ss.js\": 85893,\n\t\"./sv\": 98760,\n\t\"./sv.js\": 98760,\n\t\"./sw\": 91172,\n\t\"./sw.js\": 91172,\n\t\"./ta\": 27333,\n\t\"./ta.js\": 27333,\n\t\"./te\": 23110,\n\t\"./te.js\": 23110,\n\t\"./tet\": 52095,\n\t\"./tet.js\": 52095,\n\t\"./tg\": 27321,\n\t\"./tg.js\": 27321,\n\t\"./th\": 9041,\n\t\"./th.js\": 9041,\n\t\"./tk\": 19005,\n\t\"./tk.js\": 19005,\n\t\"./tl-ph\": 75768,\n\t\"./tl-ph.js\": 75768,\n\t\"./tlh\": 89444,\n\t\"./tlh.js\": 89444,\n\t\"./tr\": 72397,\n\t\"./tr.js\": 72397,\n\t\"./tzl\": 28254,\n\t\"./tzl.js\": 28254,\n\t\"./tzm\": 51106,\n\t\"./tzm-latn\": 30699,\n\t\"./tzm-latn.js\": 30699,\n\t\"./tzm.js\": 51106,\n\t\"./ug-cn\": 9288,\n\t\"./ug-cn.js\": 9288,\n\t\"./uk\": 67691,\n\t\"./uk.js\": 67691,\n\t\"./ur\": 13795,\n\t\"./ur.js\": 13795,\n\t\"./uz\": 6791,\n\t\"./uz-latn\": 60588,\n\t\"./uz-latn.js\": 60588,\n\t\"./uz.js\": 6791,\n\t\"./vi\": 65666,\n\t\"./vi.js\": 65666,\n\t\"./x-pseudo\": 14378,\n\t\"./x-pseudo.js\": 14378,\n\t\"./yo\": 75805,\n\t\"./yo.js\": 75805,\n\t\"./zh-cn\": 83839,\n\t\"./zh-cn.js\": 83839,\n\t\"./zh-hk\": 55726,\n\t\"./zh-hk.js\": 55726,\n\t\"./zh-mo\": 99807,\n\t\"./zh-mo.js\": 99807,\n\t\"./zh-tw\": 74152,\n\t\"./zh-tw.js\": 74152\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 46700;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \"-\" + chunkId + \".js?v=\" + \"00434e4baa0d8e7b79f1\" + \"\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.j = 5265;","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) scriptUrl = scripts[scripts.length - 1].src\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","__webpack_require__.b = document.baseURI || self.location.href;\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t5265: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunknextcloud\"] = self[\"webpackChunknextcloud\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [7874], () => (__webpack_require__(8251)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","inProgress","dataWebpackPrefix","setReminder","async","fileId","dueDate","url","generateOcsUrl","axios","toISOString","data","ocs","DateTimePreset","getInitialCustomDueDate","hour","moment","get","startOf","add","toDate","getDateString","formatOptions","minute","dueDateMoment","today","isSame","weekday","month","day","toLocaleString","getCanonicalLocale","getVerboseDateString","logger","getLoggerBuilder","setApp","detectUser","build","laterToday","dateTimePreset","label","t","ariaLabel","tomorrow","thisWeekend","nextWeek","Vue","name","components","ArrowLeft","CalendarClock","Check","CloseCircleOutline","NcActionButton","NcActionInput","NcActions","NcActionSeparator","props","file","type","Object","required","Date","default","open","now","customDueDate","watch","isOpen","$emit","computed","id","fileName","clearAriaLabel","concat","customAriaLabel","options","map","option","dateTime","LaterToday","evening","cutoff","clone","subtract","isSameOrAfter","Tomorrow","ThisWeekend","includes","isoWeekday","NextWeek","getDateTime","dateString","action","set","filter","Boolean","methods","showSuccess","error","showError","clearReminder","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","_vm","this","_c","_self","_setupProxy","staticClass","attrs","on","$event","scopedSlots","_u","key","fn","proxy","_v","_s","clear","_e","_l","_ref","model","value","callback","$$v","expression","setCustom","subscribe","payload","context","fileInfoModel","attributes","menuEl","$file","querySelector","linkEl","el","response","getReminder","e","addEventListener","_event","Error","mountPoint","document","createElement","SetReminderActions","SetReminderActionsComponent","origDisplay","style","display","insertAdjacentElement","actions","propsData","$mount","cleanUp","$destroy","$el","remove","$once","click","once","___CSS_LOADER_EXPORT___","push","module","webpackContext","req","webpackContextResolve","__webpack_require__","o","code","keys","resolve","exports","__webpack_module_cache__","moduleId","cachedModule","undefined","loaded","__webpack_modules__","call","m","O","result","chunkIds","priority","notFulfilled","Infinity","i","length","fulfilled","j","every","splice","r","n","getter","__esModule","d","a","definition","defineProperty","enumerable","f","chunkId","Promise","all","reduce","promises","u","g","globalThis","Function","window","obj","prop","prototype","hasOwnProperty","l","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","setTimeout","bind","target","head","appendChild","Symbol","toStringTag","nmd","paths","children","scriptUrl","importScripts","location","currentScript","replace","p","b","baseURI","self","href","installedChunks","installedChunkData","promise","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"files_reminders-main.js?v=95e09b4692ab3ed4d418","mappings":";UAAIA,ECAAC,EACAC,gOCsBG,MAQMC,EAAcC,MAAOC,EAAQC,KACtC,MAAMC,GAAMC,EAAAA,EAAAA,gBAAe,wCAAyC,CAAEH,WAItE,aAHuBI,EAAAA,QAAAA,IAAUF,EAAK,CAClCD,QAASA,EAAQI,iBAELC,KAAKC,IAAID,IAAI,MCbtBE,uBACX,SAAWA,GACPA,EAAeA,EAA2B,WAAI,GAAK,aACnDA,EAAeA,EAAyB,SAAI,GAAK,WACjDA,EAAeA,EAA4B,YAAI,GAAK,cACpDA,EAAeA,EAAyB,SAAI,GAAK,UACpD,CALD,CAKGA,IAAmBA,EAAiB,CAAC,IACjC,MAmDMC,EAA0BA,KACnC,MAAMC,EAAOC,MAASC,IAAI,QAI1B,OAHgBD,MACXE,QAAQ,OACRC,IAAIJ,EAAO,EAAG,QACJK,QAAQ,EAEdC,EAAiBf,IAC1B,IAAIgB,EAAgB,CAChBP,KAAM,UACNQ,OAAQ,WAEZ,MAAMC,EAAgBR,IAAOV,GACvBmB,EAAQT,MAcd,OAbKQ,EAAcE,OAAOD,EAAO,UAC7BH,EAAgB,IACTA,EACHK,QAAS,UAGZH,EAAcE,OAAOD,EAAO,UAC7BH,EAAgB,IACTA,EACHM,MAAO,QACPC,IAAK,YAGNvB,EAAQwB,gBAAeC,EAAAA,E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UpB,EAASI,GAChBpB,EAAoBC,EAAE4F,EAAiBzD,IAAYyD,EAAgBzD,IACrEyD,EAAgBzD,GAAS,KAE1ByD,EAAgBzD,GAAW,EAE5B,OAAOpC,EAAoBc,EAAEC,EAAO,EAGjC2F,EAAqBf,KAA4B,sBAAIA,KAA4B,uBAAK,GAC1Fe,EAAmBlC,QAAQ6B,EAAqB3B,KAAK,KAAM,IAC3DgC,EAAmB/G,KAAO0G,EAAqB3B,KAAK,KAAMgC,EAAmB/G,KAAK+E,KAAKgC,QCvFvF1G,EAAoB4D,QAAKnD,ECGzB,IAAIkG,EAAsB3G,EAAoBc,OAAEL,EAAW,CAAC,OAAO,IAAOT,EAAoB,QAC9F2G,EAAsB3G,EAAoBc,EAAE6F","sources":["webpack:///nextcloud/webpack/runtime/chunk loaded","webpack:///nextcloud/webpack/runtime/load script","webpack:///nextcloud/apps/files_reminders/src/services/reminderService.ts","webpack:///nextcloud/apps/files_reminders/src/shared/utils.ts","webpack:///nextcloud/apps/files_reminders/src/shared/logger.ts","webpack:///nextcloud/apps/files_reminders/src/components/SetReminderActions.vue","webpack:///nextcloud/apps/files_reminders/src/components/SetReminderActions.vue?vue&type=script&lang=ts&","webpack://nextcloud/./apps/files_reminders/src/components/SetReminderActions.vue?c222","webpack://nextcloud/./apps/files_reminders/src/components/SetReminderActions.vue?564a","webpack:///nextcloud/apps/files_reminders/src/main.ts","webpack:///nextcloud/apps/files_reminders/src/components/SetReminderActions.vue?vue&type=style&index=0&id=5d769186&prod&lang=scss&scoped=true&","webpack:///nextcloud/node_modules/moment/locale|sync|/^\\.\\/.*$","webpack:///nextcloud/webpack/bootstrap","webpack:///nextcloud/webpack/runtime/compat get default export","webpack:///nextcloud/webpack/runtime/define property getters","webpack:///nextcloud/webpack/runtime/ensure chunk","webpack:///nextcloud/webpack/runtime/get javascript chunk filename","webpack:///nextcloud/webpack/runtime/global","webpack:///nextcloud/webpack/runtime/hasOwnProperty shorthand","webpack:///nextcloud/webpack/runtime/make namespace object","webpack:///nextcloud/webpack/runtime/node module decorator","webpack:///nextcloud/webpack/runtime/runtimeId","webpack:///nextcloud/webpack/runtime/publicPath","webpack:///nextcloud/webpack/runtime/jsonp chunk loading","webpack:///nextcloud/webpack/runtime/nonce","webpack:///nextcloud/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var inProgress = {};\nvar dataWebpackPrefix = \"nextcloud:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","/**\n * @copyright 2023 Christopher Ng \n *\n * @author Christopher Ng \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nimport axios from '@nextcloud/axios';\nimport { generateOcsUrl } from '@nextcloud/router';\nexport const getReminder = async (fileId) => {\n const url = generateOcsUrl('/apps/files_reminders/api/v1/{fileId}', { fileId });\n const response = await axios.get(url);\n const dueDate = response.data.ocs.data.dueDate ? new Date(response.data.ocs.data.dueDate) : null;\n return {\n dueDate,\n };\n};\nexport const setReminder = async (fileId, dueDate) => {\n const url = generateOcsUrl('/apps/files_reminders/api/v1/{fileId}', { fileId });\n const response = await axios.put(url, {\n dueDate: dueDate.toISOString(), // timezone of string is always UTC\n });\n return response.data.ocs.data;\n};\nexport const clearReminder = async (fileId) => {\n const url = generateOcsUrl('/apps/files_reminders/api/v1/{fileId}', { fileId });\n const response = await axios.delete(url);\n return response.data.ocs.data;\n};\n","/**\n * @copyright 2023 Christopher Ng \n *\n * @author Christopher Ng \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nimport moment from '@nextcloud/moment';\nimport { getCanonicalLocale } from '@nextcloud/l10n';\nexport var DateTimePreset;\n(function (DateTimePreset) {\n DateTimePreset[DateTimePreset[\"LaterToday\"] = 0] = \"LaterToday\";\n DateTimePreset[DateTimePreset[\"Tomorrow\"] = 1] = \"Tomorrow\";\n DateTimePreset[DateTimePreset[\"ThisWeekend\"] = 2] = \"ThisWeekend\";\n DateTimePreset[DateTimePreset[\"NextWeek\"] = 3] = \"NextWeek\";\n})(DateTimePreset || (DateTimePreset = {}));\nexport const getDateTime = (dateTime) => {\n const matchPreset = {\n [DateTimePreset.LaterToday]: () => {\n const now = moment();\n const evening = moment()\n .startOf('day')\n .add(18, 'hour');\n const cutoff = evening\n .clone()\n .subtract(1, 'hour');\n if (now.isSameOrAfter(cutoff)) {\n return null;\n }\n return evening.toDate();\n },\n [DateTimePreset.Tomorrow]: () => {\n const day = moment()\n .add(1, 'day')\n .startOf('day')\n .add(8, 'hour');\n return day.toDate();\n },\n [DateTimePreset.ThisWeekend]: () => {\n const today = moment();\n if ([\n 5,\n 6,\n 7, // Sunday\n ].includes(today.isoWeekday())) {\n return null;\n }\n const saturday = moment()\n .startOf('isoWeek')\n .add(5, 'day')\n .add(8, 'hour');\n return saturday.toDate();\n },\n [DateTimePreset.NextWeek]: () => {\n const today = moment();\n if (today.isoWeekday() === 7) { // Sunday\n return null;\n }\n const workday = moment()\n .startOf('isoWeek')\n .add(1, 'week')\n .add(8, 'hour');\n return workday.toDate();\n },\n };\n return matchPreset[dateTime]();\n};\nexport const getInitialCustomDueDate = () => {\n const hour = moment().get('hour');\n const dueDate = moment()\n .startOf('day')\n .add(hour + 2, 'hour');\n return dueDate.toDate();\n};\nexport const getDateString = (dueDate) => {\n let formatOptions = {\n hour: 'numeric',\n minute: '2-digit',\n };\n const dueDateMoment = moment(dueDate);\n const today = moment();\n if (!dueDateMoment.isSame(today, 'date')) {\n formatOptions = {\n ...formatOptions,\n weekday: 'short',\n };\n }\n if (!dueDateMoment.isSame(today, 'week')) {\n formatOptions = {\n ...formatOptions,\n month: 'short',\n day: 'numeric',\n };\n }\n return dueDate.toLocaleString(getCanonicalLocale(), formatOptions);\n};\nexport const getVerboseDateString = (dueDate) => {\n const formatOptions = {\n weekday: 'long',\n hour: 'numeric',\n minute: '2-digit',\n month: 'long',\n day: 'numeric',\n };\n return dueDate.toLocaleString(getCanonicalLocale(), formatOptions);\n};\n","/**\n * @copyright 2023 Christopher Ng \n *\n * @author Christopher Ng \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nimport { getLoggerBuilder } from '@nextcloud/logger';\nexport const logger = getLoggerBuilder()\n .setApp('files_reminders')\n .detectUser()\n .build();\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('NcActions',{staticClass:\"actions-secondary-vue\",attrs:{\"open\":_vm.open},on:{\"update:open\":function($event){_vm.open=$event}}},[_c('NcActionButton',{on:{\"click\":function($event){return _vm.$emit('back')}},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('ArrowLeft',{attrs:{\"size\":20}})]},proxy:true}])},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.t('files_reminders', 'Back'))+\"\\n\\t\")]),_vm._v(\" \"),(Boolean(_vm.dueDate))?_c('NcActionButton',{attrs:{\"aria-label\":_vm.clearAriaLabel},on:{\"click\":_vm.clear},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('CloseCircleOutline',{attrs:{\"size\":20}})]},proxy:true}],null,false,3165582732)},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.t('files_reminders', 'Clear reminder'))+\" – \"+_vm._s(_vm.getDateString(_vm.dueDate))+\"\\n\\t\")]):_vm._e(),_vm._v(\" \"),_c('NcActionSeparator'),_vm._v(\" \"),_vm._l((_vm.options),function({ label, ariaLabel, dateString, action }){return _c('NcActionButton',{key:label,attrs:{\"aria-label\":ariaLabel},on:{\"click\":action}},[_vm._v(\"\\n\\t\\t\"+_vm._s(label)+\" – \"+_vm._s(dateString)+\"\\n\\t\")])}),_vm._v(\" \"),_c('NcActionSeparator'),_vm._v(\" \"),_c('NcActionInput',{attrs:{\"type\":\"datetime-local\",\"is-native-picker\":\"\",\"min\":_vm.now},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('CalendarClock',{attrs:{\"size\":20}})]},proxy:true}]),model:{value:(_vm.customDueDate),callback:function ($$v) {_vm.customDueDate=$$v},expression:\"customDueDate\"}}),_vm._v(\" \"),_c('NcActionButton',{attrs:{\"aria-label\":_vm.customAriaLabel},on:{\"click\":_vm.setCustom},scopedSlots:_vm._u([{key:\"icon\",fn:function(){return [_c('Check',{attrs:{\"size\":20}})]},proxy:true}])},[_vm._v(\"\\n\\t\\t\"+_vm._s(_vm.t('files_reminders', 'Set custom reminder'))+\"\\n\\t\")])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SetReminderActions.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??clonedRuleSet-4.use[1]!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SetReminderActions.vue?vue&type=script&lang=ts&\"","\n import API from \"!../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SetReminderActions.vue?vue&type=style&index=0&id=5d769186&prod&lang=scss&scoped=true&\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SetReminderActions.vue?vue&type=style&index=0&id=5d769186&prod&lang=scss&scoped=true&\";\n export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./SetReminderActions.vue?vue&type=template&id=5d769186&scoped=true&\"\nimport script from \"./SetReminderActions.vue?vue&type=script&lang=ts&\"\nexport * from \"./SetReminderActions.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SetReminderActions.vue?vue&type=style&index=0&id=5d769186&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5d769186\",\n null\n \n)\n\nexport default component.exports","/**\n * @copyright 2023 Christopher Ng \n *\n * @author Christopher Ng \n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see .\n *\n */\nimport Vue, {} from 'vue';\nimport { subscribe } from '@nextcloud/event-bus';\nimport { showError } from '@nextcloud/dialogs';\nimport { translate as t } from '@nextcloud/l10n';\nimport SetReminderActionsComponent from './components/SetReminderActions.vue';\nimport { getReminder } from './services/reminderService.js';\nimport { logger } from './shared/logger.js';\nconst handleOpen = async (payload) => {\n const fileId = payload.context.fileInfoModel.attributes.id;\n const menuEl = payload.context.$file[0].querySelector('.fileactions .action-menu');\n const linkEl = payload.el.querySelector('.action-setreminder-container .action-setreminder');\n let dueDate = null;\n let error = null;\n try {\n dueDate = (await getReminder(fileId)).dueDate;\n }\n catch (e) {\n error = e;\n logger.error(`Failed to load reminder for file with id: ${fileId}`, { error });\n }\n linkEl.addEventListener('click', (_event) => {\n if (error) {\n showError(t('files_reminders', 'Failed to load reminder'));\n throw Error();\n }\n const mountPoint = document.createElement('div');\n const SetReminderActions = Vue.extend(SetReminderActionsComponent);\n const origDisplay = menuEl.style.display;\n menuEl.style.display = 'none';\n menuEl.insertAdjacentElement('afterend', mountPoint);\n const propsData = {\n file: payload.context.fileInfoModel.attributes,\n dueDate,\n };\n const actions = new SetReminderActions({ propsData })\n .$mount(mountPoint);\n const cleanUp = () => {\n actions.$destroy(); // destroy popper\n actions.$el.remove(); // remove action menu button\n menuEl.style.display = origDisplay;\n };\n actions.$once('back', () => {\n cleanUp();\n menuEl.click(); // reopen original actions menu\n });\n actions.$once('close', () => {\n cleanUp();\n });\n }, {\n once: true,\n });\n};\nsubscribe('files:action-menu:opened', handleOpen);\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".actions-secondary-vue[data-v-5d769186]{display:block !important;float:right !important;padding:5px 0 0 4px !important;pointer-events:none !important}\", \"\",{\"version\":3,\"sources\":[\"webpack://./apps/files_reminders/src/components/SetReminderActions.vue\"],\"names\":[],\"mappings\":\"AACA,wCACC,wBAAA,CACA,sBAAA,CACA,8BAAA,CACA,8BAAA\",\"sourcesContent\":[\"\\n.actions-secondary-vue {\\n\\tdisplay: block !important;\\n\\tfloat: right !important;\\n\\tpadding: 5px 0 0 4px !important;\\n\\tpointer-events: none !important; // prevent activation of file row\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","var map = {\n\t\"./af\": 42786,\n\t\"./af.js\": 42786,\n\t\"./ar\": 30867,\n\t\"./ar-dz\": 14130,\n\t\"./ar-dz.js\": 14130,\n\t\"./ar-kw\": 96135,\n\t\"./ar-kw.js\": 96135,\n\t\"./ar-ly\": 56440,\n\t\"./ar-ly.js\": 56440,\n\t\"./ar-ma\": 47702,\n\t\"./ar-ma.js\": 47702,\n\t\"./ar-sa\": 16040,\n\t\"./ar-sa.js\": 16040,\n\t\"./ar-tn\": 37100,\n\t\"./ar-tn.js\": 37100,\n\t\"./ar.js\": 30867,\n\t\"./az\": 31083,\n\t\"./az.js\": 31083,\n\t\"./be\": 9808,\n\t\"./be.js\": 9808,\n\t\"./bg\": 68338,\n\t\"./bg.js\": 68338,\n\t\"./bm\": 67438,\n\t\"./bm.js\": 67438,\n\t\"./bn\": 8905,\n\t\"./bn-bd\": 76225,\n\t\"./bn-bd.js\": 76225,\n\t\"./bn.js\": 8905,\n\t\"./bo\": 11560,\n\t\"./bo.js\": 11560,\n\t\"./br\": 1278,\n\t\"./br.js\": 1278,\n\t\"./bs\": 80622,\n\t\"./bs.js\": 80622,\n\t\"./ca\": 2468,\n\t\"./ca.js\": 2468,\n\t\"./cs\": 5822,\n\t\"./cs.js\": 5822,\n\t\"./cv\": 50877,\n\t\"./cv.js\": 50877,\n\t\"./cy\": 47373,\n\t\"./cy.js\": 47373,\n\t\"./da\": 24780,\n\t\"./da.js\": 24780,\n\t\"./de\": 59740,\n\t\"./de-at\": 60217,\n\t\"./de-at.js\": 60217,\n\t\"./de-ch\": 60894,\n\t\"./de-ch.js\": 60894,\n\t\"./de.js\": 59740,\n\t\"./dv\": 5300,\n\t\"./dv.js\": 5300,\n\t\"./el\": 50837,\n\t\"./el.js\": 50837,\n\t\"./en-au\": 78348,\n\t\"./en-au.js\": 78348,\n\t\"./en-ca\": 77925,\n\t\"./en-ca.js\": 77925,\n\t\"./en-gb\": 22243,\n\t\"./en-gb.js\": 22243,\n\t\"./en-ie\": 46436,\n\t\"./en-ie.js\": 46436,\n\t\"./en-il\": 47207,\n\t\"./en-il.js\": 47207,\n\t\"./en-in\": 44175,\n\t\"./en-in.js\": 44175,\n\t\"./en-nz\": 76319,\n\t\"./en-nz.js\": 76319,\n\t\"./en-sg\": 31662,\n\t\"./en-sg.js\": 31662,\n\t\"./eo\": 92915,\n\t\"./eo.js\": 92915,\n\t\"./es\": 55655,\n\t\"./es-do\": 55251,\n\t\"./es-do.js\": 55251,\n\t\"./es-mx\": 96112,\n\t\"./es-mx.js\": 96112,\n\t\"./es-us\": 71146,\n\t\"./es-us.js\": 71146,\n\t\"./es.js\": 55655,\n\t\"./et\": 5603,\n\t\"./et.js\": 5603,\n\t\"./eu\": 77763,\n\t\"./eu.js\": 77763,\n\t\"./fa\": 76959,\n\t\"./fa.js\": 76959,\n\t\"./fi\": 11897,\n\t\"./fi.js\": 11897,\n\t\"./fil\": 42549,\n\t\"./fil.js\": 42549,\n\t\"./fo\": 94694,\n\t\"./fo.js\": 94694,\n\t\"./fr\": 94470,\n\t\"./fr-ca\": 63049,\n\t\"./fr-ca.js\": 63049,\n\t\"./fr-ch\": 52330,\n\t\"./fr-ch.js\": 52330,\n\t\"./fr.js\": 94470,\n\t\"./fy\": 5044,\n\t\"./fy.js\": 5044,\n\t\"./ga\": 29295,\n\t\"./ga.js\": 29295,\n\t\"./gd\": 2101,\n\t\"./gd.js\": 2101,\n\t\"./gl\": 38794,\n\t\"./gl.js\": 38794,\n\t\"./gom-deva\": 27884,\n\t\"./gom-deva.js\": 27884,\n\t\"./gom-latn\": 23168,\n\t\"./gom-latn.js\": 23168,\n\t\"./gu\": 95349,\n\t\"./gu.js\": 95349,\n\t\"./he\": 24206,\n\t\"./he.js\": 24206,\n\t\"./hi\": 30094,\n\t\"./hi.js\": 30094,\n\t\"./hr\": 30316,\n\t\"./hr.js\": 30316,\n\t\"./hu\": 22138,\n\t\"./hu.js\": 22138,\n\t\"./hy-am\": 11423,\n\t\"./hy-am.js\": 11423,\n\t\"./id\": 29218,\n\t\"./id.js\": 29218,\n\t\"./is\": 90135,\n\t\"./is.js\": 90135,\n\t\"./it\": 90626,\n\t\"./it-ch\": 10150,\n\t\"./it-ch.js\": 10150,\n\t\"./it.js\": 90626,\n\t\"./ja\": 39183,\n\t\"./ja.js\": 39183,\n\t\"./jv\": 24286,\n\t\"./jv.js\": 24286,\n\t\"./ka\": 12105,\n\t\"./ka.js\": 12105,\n\t\"./kk\": 47772,\n\t\"./kk.js\": 47772,\n\t\"./km\": 18758,\n\t\"./km.js\": 18758,\n\t\"./kn\": 79282,\n\t\"./kn.js\": 79282,\n\t\"./ko\": 33730,\n\t\"./ko.js\": 33730,\n\t\"./ku\": 1408,\n\t\"./ku.js\": 1408,\n\t\"./ky\": 33291,\n\t\"./ky.js\": 33291,\n\t\"./lb\": 36841,\n\t\"./lb.js\": 36841,\n\t\"./lo\": 55466,\n\t\"./lo.js\": 55466,\n\t\"./lt\": 57010,\n\t\"./lt.js\": 57010,\n\t\"./lv\": 37595,\n\t\"./lv.js\": 37595,\n\t\"./me\": 39861,\n\t\"./me.js\": 39861,\n\t\"./mi\": 35493,\n\t\"./mi.js\": 35493,\n\t\"./mk\": 95966,\n\t\"./mk.js\": 95966,\n\t\"./ml\": 87341,\n\t\"./ml.js\": 87341,\n\t\"./mn\": 5115,\n\t\"./mn.js\": 5115,\n\t\"./mr\": 10370,\n\t\"./mr.js\": 10370,\n\t\"./ms\": 9847,\n\t\"./ms-my\": 41237,\n\t\"./ms-my.js\": 41237,\n\t\"./ms.js\": 9847,\n\t\"./mt\": 72126,\n\t\"./mt.js\": 72126,\n\t\"./my\": 56165,\n\t\"./my.js\": 56165,\n\t\"./nb\": 64924,\n\t\"./nb.js\": 64924,\n\t\"./ne\": 16744,\n\t\"./ne.js\": 16744,\n\t\"./nl\": 93901,\n\t\"./nl-be\": 59814,\n\t\"./nl-be.js\": 59814,\n\t\"./nl.js\": 93901,\n\t\"./nn\": 83877,\n\t\"./nn.js\": 83877,\n\t\"./oc-lnc\": 92135,\n\t\"./oc-lnc.js\": 92135,\n\t\"./pa-in\": 15858,\n\t\"./pa-in.js\": 15858,\n\t\"./pl\": 64495,\n\t\"./pl.js\": 64495,\n\t\"./pt\": 89520,\n\t\"./pt-br\": 57971,\n\t\"./pt-br.js\": 57971,\n\t\"./pt.js\": 89520,\n\t\"./ro\": 96459,\n\t\"./ro.js\": 96459,\n\t\"./ru\": 21793,\n\t\"./ru.js\": 21793,\n\t\"./sd\": 40950,\n\t\"./sd.js\": 40950,\n\t\"./se\": 10490,\n\t\"./se.js\": 10490,\n\t\"./si\": 90124,\n\t\"./si.js\": 90124,\n\t\"./sk\": 64249,\n\t\"./sk.js\": 64249,\n\t\"./sl\": 14985,\n\t\"./sl.js\": 14985,\n\t\"./sq\": 51104,\n\t\"./sq.js\": 51104,\n\t\"./sr\": 49131,\n\t\"./sr-cyrl\": 79915,\n\t\"./sr-cyrl.js\": 79915,\n\t\"./sr.js\": 49131,\n\t\"./ss\": 85893,\n\t\"./ss.js\": 85893,\n\t\"./sv\": 98760,\n\t\"./sv.js\": 98760,\n\t\"./sw\": 91172,\n\t\"./sw.js\": 91172,\n\t\"./ta\": 27333,\n\t\"./ta.js\": 27333,\n\t\"./te\": 23110,\n\t\"./te.js\": 23110,\n\t\"./tet\": 52095,\n\t\"./tet.js\": 52095,\n\t\"./tg\": 27321,\n\t\"./tg.js\": 27321,\n\t\"./th\": 9041,\n\t\"./th.js\": 9041,\n\t\"./tk\": 19005,\n\t\"./tk.js\": 19005,\n\t\"./tl-ph\": 75768,\n\t\"./tl-ph.js\": 75768,\n\t\"./tlh\": 89444,\n\t\"./tlh.js\": 89444,\n\t\"./tr\": 72397,\n\t\"./tr.js\": 72397,\n\t\"./tzl\": 28254,\n\t\"./tzl.js\": 28254,\n\t\"./tzm\": 51106,\n\t\"./tzm-latn\": 30699,\n\t\"./tzm-latn.js\": 30699,\n\t\"./tzm.js\": 51106,\n\t\"./ug-cn\": 9288,\n\t\"./ug-cn.js\": 9288,\n\t\"./uk\": 67691,\n\t\"./uk.js\": 67691,\n\t\"./ur\": 13795,\n\t\"./ur.js\": 13795,\n\t\"./uz\": 6791,\n\t\"./uz-latn\": 60588,\n\t\"./uz-latn.js\": 60588,\n\t\"./uz.js\": 6791,\n\t\"./vi\": 65666,\n\t\"./vi.js\": 65666,\n\t\"./x-pseudo\": 14378,\n\t\"./x-pseudo.js\": 14378,\n\t\"./yo\": 75805,\n\t\"./yo.js\": 75805,\n\t\"./zh-cn\": 83839,\n\t\"./zh-cn.js\": 83839,\n\t\"./zh-hk\": 55726,\n\t\"./zh-hk.js\": 55726,\n\t\"./zh-mo\": 99807,\n\t\"./zh-mo.js\": 99807,\n\t\"./zh-tw\": 74152,\n\t\"./zh-tw.js\": 74152\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 46700;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \"-\" + chunkId + \".js?v=\" + \"00434e4baa0d8e7b79f1\" + \"\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.j = 5265;","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript)\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) scriptUrl = scripts[scripts.length - 1].src\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","__webpack_require__.b = document.baseURI || self.location.href;\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t5265: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunknextcloud\"] = self[\"webpackChunknextcloud\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [7874], () => (__webpack_require__(8251)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","inProgress","dataWebpackPrefix","setReminder","async","fileId","dueDate","url","generateOcsUrl","axios","toISOString","data","ocs","DateTimePreset","getInitialCustomDueDate","hour","moment","get","startOf","add","toDate","getDateString","formatOptions","minute","dueDateMoment","today","isSame","weekday","month","day","toLocaleString","getCanonicalLocale","getVerboseDateString","logger","getLoggerBuilder","setApp","detectUser","build","laterToday","dateTimePreset","label","t","ariaLabel","tomorrow","thisWeekend","nextWeek","Vue","name","components","ArrowLeft","CalendarClock","Check","CloseCircleOutline","NcActionButton","NcActionInput","NcActions","NcActionSeparator","props","file","type","Object","required","Date","default","open","now","customDueDate","watch","isOpen","$emit","computed","id","fileName","clearAriaLabel","concat","customAriaLabel","options","map","option","dateTime","LaterToday","evening","cutoff","clone","subtract","isSameOrAfter","Tomorrow","ThisWeekend","includes","isoWeekday","NextWeek","getDateTime","dateString","action","set","filter","Boolean","methods","showSuccess","error","showError","clearReminder","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","_vm","this","_c","_self","_setupProxy","staticClass","attrs","on","$event","scopedSlots","_u","key","fn","proxy","_v","_s","clear","_e","_l","_ref","model","value","callback","$$v","expression","setCustom","subscribe","payload","context","fileInfoModel","attributes","menuEl","$file","querySelector","linkEl","el","response","getReminder","e","addEventListener","_event","Error","mountPoint","document","createElement","SetReminderActions","SetReminderActionsComponent","origDisplay","style","display","insertAdjacentElement","actions","propsData","$mount","cleanUp","$destroy","$el","remove","$once","click","once","___CSS_LOADER_EXPORT___","push","module","webpackContext","req","webpackContextResolve","__webpack_require__","o","code","keys","resolve","exports","__webpack_module_cache__","moduleId","cachedModule","undefined","loaded","__webpack_modules__","call","m","O","result","chunkIds","priority","notFulfilled","Infinity","i","length","fulfilled","j","every","splice","r","n","getter","__esModule","d","a","definition","defineProperty","enumerable","f","chunkId","Promise","all","reduce","promises","u","g","globalThis","Function","window","obj","prop","prototype","hasOwnProperty","l","done","script","needAttach","scripts","getElementsByTagName","s","getAttribute","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","setTimeout","bind","target","head","appendChild","Symbol","toStringTag","nmd","paths","children","scriptUrl","importScripts","location","currentScript","replace","p","b","baseURI","self","href","installedChunks","installedChunkData","promise","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file