1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5705],{39036:function(n,t,e){e.d(t,{NC:function(){return m},NP:function(){return _},Yu:function(){return w}});var r=e(34051),i=e.n(r),u=e(17283),o=e(51534);function s(n,t,e,r,i,u,o){try{var s=n[u](o),c=s.value}catch(a){return void e(a)}s.done?t(c):Promise.resolve(c).then(r,i)}function c(n){return function(){var t=this,e=arguments;return new Promise((function(r,i){var u=n.apply(t,e);function o(n){s(u,r,i,o,c,"next",n)}function c(n){s(u,r,i,o,c,"throw",n)}o(void 0)}))}}function a(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function l(n,t){return t||(t=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(t)}}))}function f(){var n=l(["\n mutation setQuizVisibilities($objects: [quiz_visibility_insert_input!]!) {\n insert_quiz_visibility(\n objects: $objects\n on_conflict: {\n constraint: quiz_visibility_pkey\n update_columns: [visible]\n }\n ) {\n affected_rows\n returning { quiz_id group_id visible }\n }\n }\n"]);return f=function(){return n},n}function p(){var n=l(["\n mutation setSurveyVisibilities($objects: [survey_visibility_insert_input!]!) {\n insert_survey_visibility(\n objects: $objects\n on_conflict: {\n constraint: survey_visibility_pkey\n update_columns: [visible]\n }\n ) {\n affected_rows\n returning { survey_id group_id visible }\n }\n }\n"]);return p=function(){return n},n}function d(){var n=l(["\n mutation setTaskVisibilities($objects: [task_visibility_insert_input!]!) {\n insert_task_visibility(\n objects: $objects\n on_conflict: {\n constraint: tasks_visibility_pkey\n update_columns: [visible]\n }\n ) {\n affected_rows\n returning { task_id group_id visible }\n }\n }\n"]);return d=function(){return n},n}var v=(0,u.Ps)(f()),b=(0,u.Ps)(p()),h=(0,u.Ps)(d());function y(n,t,e){return t.map((function(t){var r;return a(r={},e,n),a(r,"group_id",t.group_id),a(r,"visible",!!t.visible),r}))}function m(n,t){return g.apply(this,arguments)}function g(){return(g=c(i().mark((function n(t,e){var r,u,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,o.ZP.mutate({mutation:v,variables:{objects:y(t,e,"quiz_id")}});case 3:return u=n.sent.data,n.abrupt("return",null!==(s=null===u||void 0===u||null===(r=u.insert_quiz_visibility)||void 0===r?void 0:r.returning)&&void 0!==s?s:[]);case 6:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function _(n,t){return x.apply(this,arguments)}function x(){return(x=c(i().mark((function n(t,e){var r,u,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,o.ZP.mutate({mutation:b,variables:{objects:y(t,e,"survey_id")}});case 3:return u=n.sent.data,n.abrupt("return",null!==(s=null===u||void 0===u||null===(r=u.insert_survey_visibility)||void 0===r?void 0:r.returning)&&void 0!==s?s:[]);case 6:case"end":return n.stop()}}),n)})))).apply(this,arguments)}function w(n,t){return k.apply(this,arguments)}function k(){return(k=c(i().mark((function n(t,e){var r,u,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=3,o.ZP.mutate({mutation:h,variables:{objects:y(t,e,"task_id")}});case 3:return u=n.sent.data,n.abrupt("return",null!==(s=null===u||void 0===u||null===(r=u.insert_task_visibility)||void 0===r?void 0:r.returning)&&void 0!==s?s:[]);case 6:case"end":return n.stop()}}),n)})))).apply(this,arguments)}},65154:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(85893);function i(n){var t=n.value,e=n.id,i=n.onChange;return(0,r.jsx)("input",{id:e,type:"checkbox",className:"focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded",checked:t,onChange:function(n){return i(n.target.checked)}})}},82944:function(n,t,e){e.d(t,{Z:function(){return i}});var r=e(85893);e(67294);function i(n){var t=n.currentLength,e=n.maxLength,i=n.className;return(0,r.jsxs)("span",{className:i||"text-xs text-slate-400",children:[t," / ",e," Zeichen"]})}},66628:function(n,t,e){e.d(t,{Z:function(){return c}});var r=e(85893),i=e(67294),u=e(20921),o=e(92422),s=e(35390);function c(n){var t=n.title,e=n.body,c=n.onClose,a=n.onConfirm,l=n.open,f=n.icon,p=void 0===f?"ExclamationCircleIcon":f,d=n.iconColor,v=void 0===d?"red":d,b=n.style,h=n.confirmButtonColor,y=void 0===h?"primary":h,m=(0,i.useState)(!1),g=m[0],_=m[1];return(0,i.useEffect)((function(){_(!1)}),[l]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(s.Z,{title:t,icon:p,iconColor:v,open:l,onClose:c,style:b,children:[(0,r.jsx)("div",{className:"isolate -space-y-px rounded-md mb-2 text-slate-600 text-sm",dangerouslySetInnerHTML:{__html:e}}),(0,r.jsxs)("div",{className:"mt-4 flex gap-4",children:[(0,r.jsx)(o.Z,{color:"secondary",label:"Abbrechen",onClick:c,type:"button"}),(0,r.jsxs)(o.Z,{color:y,disabled:g,label:"Ok",onClick:function(n){_(!0),a(n)},type:"submit",children:[g&&(0,r.jsx)(u.Z,{className:"h-5 w-5 mr-2"}),"Ok"]})]})]})})}},31445:function(n,t,e){e.d(t,{E:function(){return m},B:function(){return _}});var r=e(34051),i=e.n(r),u=e(17283),o=e(43170),s=e(57976),c=e(8819),a=e(37865);function l(n,t,e,r,i,u,o){try{var s=n[u](o),c=s.value}catch(a){return void e(a)}s.done?t(c):Promise.resolve(c).then(r,i)}function f(n){return function(){var t=this,e=arguments;return new Promise((function(r,i){var u=n.apply(t,e);function o(n){l(u,r,i,o,s,"next",n)}function s(n){l(u,r,i,o,s,"throw",n)}o(void 0)}))}}function p(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function d(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{},r=Object.keys(e);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(e).filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})))),r.forEach((function(t){p(n,t,e[t])}))}return n}function v(n,t){return t||(t=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(t)}}))}function b(){var n=v(["\n query sendPushNotification($title: String, $body: String, $groupID: String, $uriType: String, $uri: String, $extraData: String) {\n sendPushNotification(title: $title, body: $body, groupID: $groupID, uriType: $uriType, uri: $uri, extraData: $extraData){\n responses {\n success\n messageId\n },\n successCount,\n failureCount\n }\n }"]);return b=function(){return n},n}function h(){var n=v(["\n query sendPushNotification($title: String, $body: String, $userIDs: [String], $uriType: String, $uri: String){\n sendPushNotification(title: $title, body: $body, userIDs: $userIDs, uriType: $uriType, uri: $uri){\n responses {\n success\n messageId\n },\n successCount,\n failureCount\n }\n }"]);return h=function(){return n},n}function y(){var n=localStorage.getItem("hjwt");if(!n&&document.cookie){var t=document.cookie.split(";").find((function(n){return n.trim().startsWith("__Secure-next-auth.session-token=")||n.trim().startsWith("next-auth.session-token=")}));t&&(n=t.split("=")[1])}return n}function m(n,t,e,r,i,u){return g.apply(this,arguments)}function g(){return(g=f(i().mark((function n(t,e,r,l,f,p){var v,h,m,g,_;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return v=(0,u.Ps)(b()),h=(0,o.L)({uri:"https://firmapp-backend.netlify.app/.netlify/functions/graphql"}
1),m=(0,a.v)((function(n,t){var e=t.headers,r=y();return{headers:d({},e,r&&{authorization:"Bearer ".concat(r)})}})),g=new s.f({cache:new c.h,link:m.concat(h)}),n.prev=4,n.next=7,g.query({query:v,variables:{title:t,body:e,groupID:r,uriType:l,uri:f,extraData:p?JSON.stringify(p):void 0}});case 7:return _=n.sent,n.abrupt("return",_.data.sendPushNotification);case 11:throw n.prev=11,n.t0=n.catch(4),console.error("Error sending push notification to group:",n.t0),n.t0;case 15:case"end":return n.stop()}}),n,null,[[4,11]])})))).apply(this,arguments)}function _(n,t,e,r,i){return x.apply(this,arguments)}function x(){return(x=f(i().mark((function n(t,e,r,l,f){var p,v,b,m,g;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return p=(0,u.Ps)(h()),v=(0,o.L)({uri:"https://firmapp-backend.netlify.app/.netlify/functions/graphql"}),b=(0,a.v)((function(n,t){var e=t.headers,r=y();return{headers:d({},e,r&&{authorization:"Bearer ".concat(r)})}})),m=new s.f({cache:new c.h,link:b.concat(v)}),n.prev=4,n.next=7,m.query({query:p,variables:{title:t,body:e,userIDs:r,uriType:l,uri:f}});case 7:return g=n.sent,n.abrupt("return",g.data.sendPushNotification);case 11:throw n.prev=11,n.t0=n.catch(4),console.error("Error sending push notification to users:",n.t0),n.t0;case 15:case"end":return n.stop()}}),n,null,[[4,11]])})))).apply(this,arguments)}},31147:function(n,t,e){e.d(t,{q:function(){return u}});var r=e(67294),i=e(73781);function u(n,t,e){let[u,o]=(0,r.useState)(e),s=void 0!==n,c=(0,r.useRef)(s),a=(0,r.useRef)(!1),l=(0,r.useRef)(!1);return!s||c.current||a.current?!s&&c.current&&!l.current&&(l.current=!0,c.current=s,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(a.current=!0,c.current=s,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[s?n:u,(0,i.z)((n=>(s||o(n),null==t?void 0:t(n))))]}},18689:function(n,t,e){function r(n={},t=null,e=[]){for(let[r,o]of Object.entries(n))u(e,i(t,r),o);return e}function i(n,t){return n?n+"["+t+"]":t}function u(n,t,e){if(Array.isArray(e))for(let[r,o]of e.entries())u(n,i(t,r.toString()),o);else e instanceof Date?n.push([t,e.toISOString()]):"boolean"==typeof e?n.push([t,e?"1":"0"]):"string"==typeof e?n.push([t,e]):"number"==typeof e?n.push([t,`${e}`]):null==e?n.push([t,""]):r(e,t,n)}function o(n){var t;let e=null!=(t=null==n?void 0:n.form)?t:n.closest("form");if(e)for(let r of e.elements)if("INPUT"===r.tagName&&"submit"===r.type||"BUTTON"===r.tagName&&"submit"===r.type||"INPUT"===r.nodeName&&"image"===r.type)return void r.click()}e.d(t,{g:function(){return o},t: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.