1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7153],{6983:function(e,t,n){n.d(t,{k0:function(){return f},Gu:function(){return v}});var r=n(34051),o=n.n(r),a=n(17283),u=n(51534);function i(e,t,n,r,o,a,u){try{var i=e[a](u),c=i.value}catch(s){return void n(s)}i.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function u(e){i(a,r,o,u,c,"next",e)}function c(e){i(a,r,o,u,c,"throw",e)}u(void 0)}))}}function s(){var e,t,n=(e=["\n mutation createActionLog($content: action_logs_insert_input!) {\n insert_action_logs_one(object: $content) {\n id\n }\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return s=function(){return n},n}var l=(0,a.Ps)(s());function f(e){return d.apply(this,arguments)}function d(){return(d=c(o().mark((function e(t){var n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,u.ZP.mutate({mutation:l,variables:{content:t}});case 3:return r=e.sent.data,e.abrupt("return",(null===r||void 0===r||null===(n=r.insert_action_logs_one)||void 0===n?void 0:n.id)||null);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e,t,n,r,o,a,u){try{var i=e[a](u),c=i.value}catch(s){return void n(s)}i.done?t(c):Promise.resolve(c).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function u(e){g(a,r,o,u,i,"next",e)}function i(e){g(a,r,o,u,i,"throw",e)}u(void 0)}))}}function h(){var e,t,n=(e=["\n query getActionLogs($offset: Int!, $limit: Int!) {\n action_logs (\n order_by: { created_at: desc }\n offset: $offset\n limit: $limit\n ) {\n id\n created_at\n action\n source\n text\n created_by_id\n created_by {\n id\n first_name\n last_name\n }\n }\n action_logs_aggregate{\n aggregate{\n count\n }\n }\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return h=function(){return n},n}var _=(0,a.Ps)(h());function v(){return w.apply(this,arguments)}function w(){return w=p(o().mark((function e(){var t,n,r,a,i,c=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:0,n=c.length>1&&void 0!==c[1]?c[1]:0,e.prev=1,e.next=5,u.ZP.query({query:_,variables:{offset:t,limit:n},fetchPolicy:"network-only"});case 5:if((i=e.sent.data)&&i.action_logs){e.next=8;break}return e.abrupt("return",{action_logs:[],count:0});case 8:return e.abrupt("return",{action_logs:i.action_logs,count:(null===(r=i.action_logs_aggregate)||void 0===r||null===(a=r.aggregate)||void 0===a?void 0:a.count)||0});case 11:throw e.prev=11,e.t0=e.catch(1),new Error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,11]])}))),w.apply(this,arguments)}function m(){var e,t,n=(e=["\n query getActionLogsFiltered($offset: Int!, $limit: Int!, $where: action_logs_bool_exp) {\n action_logs (\n where: $where\n order_by: { created_at: desc }\n offset: $offset\n limit: $limit\n ) {\n id\n created_at\n action\n source\n text\n created_by_id\n created_by {\n id\n first_name\n last_name\n }\n }\n action_logs_aggregate(where: $where) {\n aggregate {\n count\n }\n }\n }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return m=function(){return n},n}(0,a.Ps)(m())},47153:function(e,t,n){n.d(t,{wN:function(){return N},ho:function(){return j},S9:function(){return k},NF:function(){return P},Z3:function(){return Z},Ux:function(){return M},Xn:function(){return z},l8:function(){return C},xN:function(){return G},qX:function(){return E},zf:function(){return O},zr:function(){return A},zc:function(){return D},pp:function(){return I},rP:function(){return q},uu:function(){return U},zN:function(){return T},iU:function(){return F}});var r=n(34051),o=n.n(r),a=n(85893),u=(n(67294),n(33299)),i=n(7803),c=n(2078),s=n(88324),l=n(75851),f=n(46601),d=n(89618),g=n(75289),p=n(57692),h=n(36338),_=n(61527),v=n(20575),w=n(60562),m=n(11927),b=n(6983);function y(e,t,n,r,o,a,u){try{var i=e[a](u),c=i.value}catch(s){return void n(s)}i.done?t(c):Promise.resolve(c).then(r,o)}function x(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function u(e){y(a,r,o,u,i,"next",e)}function i(e){y(a,r,o,u,i,"throw",e)}u(void 0)}))}}var N=80;function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N,r=e||"",o=t||"";return r.length>n?o.length>r.length&&o.length>n?r:o:o.length<=n?o:o.slice(0,n)}function k(e,t){return e+"T"+t+":00.000000+00:00"}function P(e){if(!e)return{date:"",time:""};var t=e.split("T"),n=t[1].split(":"),r=n[0]+":"+n[1];return{date:t[0],time:r}}
1function Z(e){return new Date(e).toLocaleString("de-DE")}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=new Date,n=t.getDate(),r=t.getMonth()+1,o=t.getFullYear();return"".concat(o).concat(e).concat(r<10?"0".concat(r):"".concat(r)).concat(e).concat(n<10?"0".concat(n):"".concat(n))}function z(){var e=new Date;return e.getHours()+":"+(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())}function C(){for(var e,t,n="abcdefghijklmnopqrstuvwxyz",r="ABCDEFGHIJKLMNOPQRSTUVWXYZ",o="1234567890",a=[n,n,n,r,r,o,o,",.!@#$%^&*"],u="",i=0;i<8;i++)e=Math.floor(Math.random()*a.length),t=Math.floor(Math.random()*a[e].length),u+=a[e][t],a.splice(e,1);return u}function G(e,t,n,r){return $.apply(this,arguments)}function $(){return($=x(o().mark((function e(t,n,r,a){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,b.k0)({created_by_id:t,action:n,source:r,text:a});case 3:e.sent,e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.log(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function E(e,t){var n=(0,u.useSession)().data;switch(e){case"content":if((0,m.C)(n,"content_create")&&"create"==t)return!0;if((0,m.C)(n,"content_update")&&"update"==t)return!0;if((0,m.C)(n,"content_delete")&&"delete"==t)return!0;break;case"blog":if((0,m.C)(n,"blog_create")&&"create"==t)return!0;if((0,m.C)(n,"blog_update")&&"update"==t)return!0;if((0,m.C)(n,"blog_delete")&&"delete"==t)return!0;break;case"prayers":if((0,m.C)(n,"prayer_create")&&"create"==t)return!0;if((0,m.C)(n,"prayer_update")&&"update"==t)return!0;if((0,m.C)(n,"prayer_delete")&&"delete"==t)return!0}}function O(e){return"default"==e?"Neuer Inhalt":"blog"==e?"Neuer Blog Beitrag":"Ein neues Gebet wurde hinzugef\xfcgt"}function A(e){return"default"==e?"Inhalt aktualisiert":"blog"==e?"Blog Beitrag aktualisiert":"Ein Gebet wurde aktualisiert"}var I,q,D={content:{default:"Inhaltsseite",popup:"Inhaltsseite (PopUp)"},blog:{blog:"Blog"},prayers:{christmas_prayer:"Segensspruch",evening_prayer:"Abendgebet",general_prayer:"Allgemeines Gebet",good_news_consolation_prayer:"Gute Nachrichten Trost",good_news_defeat_prayer:"Gute Nachrichten Niederlage",good_news_everyday_stress_prayer:"Gute Nachrichten Alltagsstress",good_news_hope_prayer:"Gute Nachrichten Hoffnung",good_news_love_prayer:"Gute Nachrichten Liebe",good_news_success_prayer:"Gute Nachrichten Erfolg",midday_prayer:"Mittagsgebet",morning_prayer:"Morgengebet",night_prayer:"Nachtgebet"}};!function(e){e.Create="create",e.Delete="delete",e.Update="update",e.Move="move"}(I||(I={})),function(e){e.Content="content",e.User="user",e.Group="group",e.Task="task",e.Survey="survey",e.Quiz="quiz",e.Menu="menu",e.Media="media",e.Event="event",e.EventSeries="event_series",e.Booking="booking",e.RolesPermission="roles_permissions",e.AppText="app_text",e.ImportExport="import_export"}(q||(q={}));var B,L,S,U={content:(0,a.jsx)(i.Z,{className:"w-6 h-6 text-white rounded-full"}),user:(0,a.jsx)(c.Z,{className:"w-6 h-6 text-white rounded-full"}),group:(0,a.jsx)(s.Z,{className:"w-6 h-6 text-white rounded-full"}),task:(0,a.jsx)(l.Z,{className:"w-6 h-6 text-white rounded-full"}),survey:(0,a.jsx)(f.Z,{className:"w-6 h-6 text-white rounded-full"}),quiz:(0,a.jsx)(d.Z,{className:"w-6 h-6 text-white rounded-full"}),menu:(0,a.jsx)(g.Z,{className:"w-6 h-6 text-white rounded-full"}),media:(0,a.jsx)(p.Z,{className:"w-6 h-6 text-white rounded-full"}),event:(0,a.jsx)(h.Z,{className:"w-6 h-6 text-white rounded-full"}),event_series:(0,a.jsx)(h.Z,{className:"w-6 h-6 text-white rounded-full"}),booking:(0,a.jsx)(_.Z,{className:"w-6 h-6 text-white rounded-full"}),roles_permissions:(0,a.jsx)(v.Z,{className:"w-6 h-6 text-white rounded-full"}),app_text:(0,a.jsx)(i.Z,{className:"w-6 h-6 text-white rounded-full"}),import_export:(0,a.jsx)(w.Z,{className:"w-6 h-6 text-white rounded-full"})},T={create:"bg-green-600",delete:"bg-red-600",update:"bg-blue-600",move:"bg-orange-600"};!function(e){e.Private="private",e.Group="group",e.General="general"}(B||(B={})),function(e){e.Never="never",e.Daily="daily",e.Weekly="weekly",e.Monthly="monthly"}(L||(L={})),function(e){e.Administrator="337618528303579342",e.Moderator="345333973073789129",e.GroupLeader="345334098442584265",e.AppUser="345334157746897099"}(S||(S={}));var F=["admin","moderator","group_leader","user"]},11927:function(e,t,n){function r(e,t){var n,r,o;return null===e||void 0===e||null===(n=e.user)||void 0===n||null===(r=n.roleObj)||void 0===r||null===(o=r.permissions)||void 0===o?void 0:o.includes(t)}n.d(t,{C:function(){return r}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.