PageSourceSearch

https://firmapp-backend.netlify.app/_next/static/chunks/1926-fcd514637c83420f.js

js firmapp-backend.netlify.app collected 2026-10-03 10:45:58 UTC 31,859 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1926],{20921:function(e,n,t){var r=t(85893);n.Z=function(e){var n=e.className;return(0,r.jsx)("div",{className:"".concat(n," w-8 h-8 overflow-hidden"),children:(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:{margin:"auto",background:"transparent",display:"block"},width:"100%",height:"100%",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",children:(0,r.jsx)("circle",{cx:"50",cy:"50",r:"32",strokeWidth:"8",stroke:"currentColor",strokeDasharray:"50.26548245743669 50.26548245743669",fill:"none",strokeLinecap:"round",children:(0,r.jsx)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",keyTimes:"0;1",values:"0 50 50;360 50 50"})})})})}},92422:function(e,n,t){t.d(n,{Z:function(){return o}});var r=t(85893),i={primary:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-boni-red text-base font-medium text-white hover:bg-boni-red focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm disabled:opacity-50",secondary:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-gray-200 text-base font-medium text-dark hover:bg-gray-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm disabled:opacity-50",accept:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-green-500 text-base font-medium text-dark hover:bg-green-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm disabled:opacity-50",later:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-gray-400 text-base font-medium text-dark hover:bg-boni-gold focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm disabled:opacity-50",decline:"inline-flex justify-center w-full rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-500 text-base font-medium text-dark hover:bg-red-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:text-sm disabled:opacity-50"};function o(e){var n=e.children,t=e.disabled,o=e.label,a=e.onClick,l=e.color,s=e.type,u=e.className;return(0,r.jsx)("button",{className:i[l]+(null!==u&&void 0!==u?u:""),disabled:t,onClick:a,type:s,children:n||o})}},44e3:function(e,n,t){t.d(n,{Z:function(){return i}});var r=t(85893);function i(e){var n=e.id,t=e.label,i=e.value,o=e.inputType,a=void 0===o?"text":o,l=e.onChange,s=e.invalid,u=e.error,c=e.disabled,d=e.noBorder;return(0,r.jsxs)("div",{className:"\n          relative px-3 py-2 text-gray-900\n          ".concat(d?"":"border border-gray-300 rounded-md rounded-b-none","\n          ").concat(!!s&&"border-red-400 text-red-600","\n          ").concat(c&&"opacity-50 cursor-not-allowed","\n        "),children:[(0,r.jsx)("label",{htmlFor:n,className:"block text-xs font-medium",children:t}),(0,r.jsx)("input",{type:a,name:n,id:n,className:"block w-full border-0 p-0 placeholder-gray-500 sm:text-sm focus-within:ring-0 focus-within:ring-indigo-0 focus-within:border-indigo-600",placeholder:"",value:i,onChange:function(e){return l(e.target.value)},disabled:c}),!!u&&(0,r.jsx)("p",{className:"text-xs text-red-600",children:u})]})}},61283:function(e,n,t){t.d(n,{Z:function(){return u}});var r=t(85893),i=t(67294),o=t(44080),a=t(10050),l=t(5362),s=t(25652);function u(e){var n=e.show,t=e.title,u=e.text,c=e.state,d=e.onClose;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{"aria-live":"assertive",className:"pointer-events-none fixed items-end left-20 bottom-20 z-[100] w-96 px-4 py-6 sm:items-start sm:p-6",children:(0,r.jsx)("div",{className:"flex w-full flex-col items-center space-y-4 sm:items-end",children:(0,r.jsx)(o.u,{show:n,as:i.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",enterTo:"translate-y-0 opacity-100 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)("div",{className:"pointer-events-auto w-full max-w-sm overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5",children:(0,r.jsx)("div",{className:"p-4",children:(0,r.jsxs)("div",{className:"flex items-start",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:"success"==c?(0,r.jsx)(a.Z,{className:"h-6 w-6 text-green-400","aria-hidden":"true"}):(0,r.jsx)(l.Z,{className:"h-6 w-6 text-red-400","aria-hidden":"true"})}),(0,r.jsxs)("div",{className:"ml-3 w-0 flex-1 pt-0.5",children:[(0,r.jsx)("p",{className:"text-sm font-medium text-gray-900",children:t}),(0,r.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:u})]}),(0,r.jsx)("div",{className:"ml-4 flex flex-shrink-0",children:(0,r.jsxs)("button",{type:"button",className:"inline-flex rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:function(){d()},children:[(0,r.jsx)("span",{className:"sr-only",children:"Close"}),(0,r.jsx)(s.Z,{className:"h-5 w-5","aria-hidden":"true"})]})})]})})})})})})})}},55802:function(e,n,t){t.d(n,{Z:function(){return pe}});var r=t(34051),i=t.n(r),o=t(85893),a=t(67294),l=t(5152),s=(t(80091),t(92422)),u=t(93054),c=t(35390);function d(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){d(e,n,t[n])}))}return e}function p(e){var n,t=e.title,r=e.items,i=e.isLoading,l=e.onClose,d=e.onSubmit,p=e.open,v=(0,a.useState)(null),m=v[0],h=v[1],y={blog:"Blog",quiz:"Quizze",survey:"Umfrage",task:"Aufgaben",event:"Veranstaltungen",prayer:"Gebete",info:"Infoecke"},b=(null===(n=getComputedStyle(document.documentElement).getPropertyValue("--brand-red"))||void 0===n?void 0:n.trim())||"#d7263d",g={groupHeading:function(e){return f({},e,{backgroundColor:b,color:"white",padding:"6px 10px",fontWeight:700,letterSpacing:"0.02em",textTransform:"none",marginTop:6})},group:function(e){return f({},e,{paddingTop:2,paddingBottom:6})},option:function(e){return f({},e,{display:"flex",alignItems:"center",justifyContent:"space-between"})},singleValue:function(e){return f({},e,{display:"flex",alignItems:"center",gap:8})}},x=(0,a.useMemo)((function(){var e={blog:[],quiz:[],survey:[],task:[],event:[],prayer:[],info:[]},n=!0,t=!1,i=void 0;try{for(var o,a=r[Symbol.iterator]();!(n=(o=a.next()).done);
1n=!0){var l,s=o.value,u=(null!==(l=s.title)&&void 0!==l?l:"").trim(),c=u.length?u:"Untitled (".concat(s.kind,")");e[s.kind].push({value:s,label:c})}}catch(f){t=!0,i=f}finally{try{n||null==a.return||a.return()}finally{if(t)throw i}}var d=[];return["blog","quiz","survey","task","event","prayer","info"].forEach((function(n){e[n].length&&d.push({label:y[n],options:e[n]})})),d}),[r]);return(0,a.useEffect)((function(){p||h(null)}),[p]),(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(c.Z,{title:t,icon:"ExclamationCircleIcon",iconColor:"red",open:p,onClose:l,children:[(0,o.jsxs)("div",{className:"isolate -space-y-px rounded-md shadow-sm mb-2",children:[i&&!r.length?(0,o.jsxs)("div",{className:"flex items-center gap-2 text-sm text-slate-500 mb-2",children:[(0,o.jsxs)("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[(0,o.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none",opacity:"0.25"}),(0,o.jsx)("path",{d:"M4 12a8 8 0 0 1 8-8",stroke:"currentColor",strokeWidth:"4",fill:"none"})]}),"Initializing\u2026"]}):null,(0,o.jsx)(u.ZP,{className:"flex-1",value:m,options:x,onChange:h,placeholder:"Suche",styles:g,formatGroupLabel:function(e){return(0,o.jsx)("div",{children:e.label})},isLoading:!!i,isDisabled:!!i&&!r.length,formatOptionLabel:function(e,n){var t,r=null!==(t=y[e.value.kind])&&void 0!==t?t:e.value.kind,i="menu"===n.context?12:11;return(0,o.jsxs)("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",width:"100%"},children:[(0,o.jsx)("span",{children:e.label}),(0,o.jsxs)("span",{style:{marginLeft:8,fontSize:i,color:"#9CA3AF"},children:["(",r,")"]})]})}},"x")]}),(0,o.jsx)("div",{className:"mt-5 flex",children:(0,o.jsx)(s.Z,{color:"primary",label:"Ok",onClick:function(e){d(e,(null===m||void 0===m?void 0:m.value)||null),l()},type:"button"})})]})})}var v=t(98005),m=t.n(v),h=t(44e3);function y(e){var n,t,r,i=e.title,l=e.onClose,u=e.onSubmit,d=e.open,f=(0,a.useState)(""),p=f[0],v=f[1];return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)(c.Z,{title:i,icon:"ExclamationCircleIcon",iconColor:"red",open:d,onClose:l,children:[(0,o.jsx)("div",{className:"isolate -space-y-px rounded-md shadow-sm mb-2",children:(0,o.jsx)(h.Z,{label:"",id:"name",value:p,onChange:function(e){return v(e)}})}),(0,o.jsx)("div",{className:"mt-5 max-w-screen-lg text-center w-full",children:(0,o.jsxs)("p",{children:['Bei klick auf "OK" stimmen Sie der Darstellung des YouTube-Videos zu. ',(0,o.jsx)("br",{}),"Wenn Sie zustimmen, werden Daten an YouTube (Sitz in den USA) \xfcbermittelt. ",(0,o.jsx)("br",{}),"Weitere Informationen lesen Sie in der Datenschutzerkl\xe4rung."]})}),(0,o.jsx)("div",{className:"mt-5 flex",children:(0,o.jsx)(s.Z,(n={color:"primary",type:"submit",label:"Ok",onClick:function(){return console.log(p),u(p),void l()}},t="type",r="button",t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n))})]})})}var b=t(33299),g=t(51534),x=t(17283);function w(){var e,n,t=(e=["query getBlogContentsForLinking($where: contents_bool_exp) {\n    contents(where: $where, order_by: { title: asc }) {\n        id\n        title\n        type\n    }\n}"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return w=function(){return t},t}var k=(0,x.Ps)(w());function j(e,n,t,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void t(u)}l.done?n(s):Promise.resolve(s).then(r,i)}var _=function(){var e,n=(e=i().mark((function e(n){var t,r,o,a,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(null===n||void 0===n?void 0:n.where)?{_and:[{type:{_eq:"blog"}},n.where]}:{type:{_eq:"blog"}},e.next=3,g.ZP.query({query:k,variables:{where:t},fetchPolicy:"network-only"});case 3:return r=e.sent.data,l=(null!==(o=null===r||void 0===r?void 0:r.contents)&&void 0!==o?o:[]).map((function(e){return{id:e.id,title:null!==(a=e.title)&&void 0!==a?a:"",kind:"blog"}})),e.abrupt("return",l);case 7:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){j(o,r,i,a,l,"next",e)}function l(e){j(o,r,i,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),C=_;function O(){var e,n,t=(e=["query getQuizzesForLinking($where: quizzes_bool_exp) {\n    quizzes(where: $where, order_by: { title: asc }) {\n        id\n        title\n    }\n}"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return O=function(){return t},t}
1var P=(0,x.Ps)(O());function q(e,n,t,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void t(u)}l.done?n(s):Promise.resolve(s).then(r,i)}var S=function(){var e,n=(e=i().mark((function e(n){var t,r,o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.ZP.query({query:P,variables:n,fetchPolicy:"network-only"});case 2:return t=e.sent.data,a=(null!==(r=null===t||void 0===t?void 0:t.quizzes)&&void 0!==r?r:[]).map((function(e){return{id:e.id,title:null!==(o=e.title)&&void 0!==o?o:"",kind:"quiz"}})),e.abrupt("return",a);case 6:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){q(o,r,i,a,l,"next",e)}function l(e){q(o,r,i,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),z=S;function N(){var e,n,t=(e=["query getSurveysForLinking($where: surveys_bool_exp) {\n    surveys(where: $where, order_by: { title: asc }) {\n        id\n        title\n    }\n}"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return N=function(){return t},t}var T=(0,x.Ps)(N());function E(e,n,t,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void t(u)}l.done?n(s):Promise.resolve(s).then(r,i)}var F=function(){var e,n=(e=i().mark((function e(n){var t,r,o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.ZP.query({query:T,variables:n,fetchPolicy:"network-only"});case 2:return t=e.sent.data,a=(null!==(r=null===t||void 0===t?void 0:t.surveys)&&void 0!==r?r:[]).map((function(e){return{id:e.id,title:null!==(o=e.title)&&void 0!==o?o:"",kind:"survey"}})),e.abrupt("return",a);case 6:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){E(o,r,i,a,l,"next",e)}function l(e){E(o,r,i,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),A=F;function L(){var e,n,t=(e=["query getTasksForLinking($where: tasks_bool_exp) {\n    tasks(where: $where, order_by: { title: asc }) {\n        id\n        title\n    }\n}"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return L=function(){return t},t}var Z=(0,x.Ps)(L());function I(e,n,t,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void t(u)}l.done?n(s):Promise.resolve(s).then(r,i)}var W=function(){var e,n=(e=i().mark((function e(n){var t,r,o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.ZP.query({query:Z,variables:n,fetchPolicy:"network-only"});case 2:return t=e.sent.data,a=(null!==(r=null===t||void 0===t?void 0:t.tasks)&&void 0!==r?r:[]).map((function(e){return{id:e.id,title:null!==(o=e.title)&&void 0!==o?o:"",kind:"task"}})),e.abrupt("return",a);case 6:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){I(o,r,i,a,l,"next",e)}function l(e){I(o,r,i,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),D=W;function $(){var e,n,t=(e=["query getEventsForLinking($condition: events_bool_exp) {\n  events(where: $condition, order_by: { date_start: asc }) {\n    id\n    title\n    date_start\n    date_end\n  }\n}"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return $=function(){return t},t}var B=(0,x.Ps)($());function R(e,n,t,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void t(u)}l.done?n(s):Promise.resolve(s).then(r,i)}function G(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Europe/Berlin",t=new Date(e),r=new Intl.DateTimeFormat("en-CA",{timeZone:n,year:"numeric"}).format(t),i=new Intl.DateTimeFormat("en-CA",{timeZone:n,month:"2-digit"}).format(t),o=new Intl.DateTimeFormat("en-CA",{timeZone:n,day:"2-digit"}).format(t);return"".concat(r,"-").concat(i,"-").concat(o)}var Q=function(){var e,n=(e=i().mark((function e(n){var t,r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.ZP.query({query:B,variables:n,fetchPolicy:"network-only"});case 2:return t=e.sent.data,o=(null!==(r=null===t||void 0===t?void 0:t.events)&&void 0!==r?r:[]).map((function(e){var n,t=(null===e||void 0===e?void 0:e.date_start)?G(e.date_start):"1970-01-01",r="CalendarStack/Calendar/".concat(t,"/").concat(e.id);return{id:e.id,title:null!==(n=e.title)&&void 0!==n?n:"",kind:"event",deeplink:r}})),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){R(o,r,i,a,l,"next",e)}function l(e){R(o,r,i,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),U=Q;function M(){var e,n,t=(e=['query getPrayerContentsForLinking {\n  contents(\n    where: { type: { _iregex: "(^|_)prayer$" } }\n    order_by: { title: asc }\n  ) {\n    id\n    title\n    type\n  }\n}\n'],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return M=function(){return t},t}var V=(0,x.Ps)(M());function H(e,n,t,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void t(u)}l.done?n(s):Promise.resolve(s).then(r,i)}var Y=function(){var e,n=(e=i().mark((function e(){var n,t,r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g.ZP.query({query:V,fetchPolicy:"network-only"});case 2:return n=e.sent.data,o=(null!==(t=null===n||void 0===n?void 0:n.contents)&&void 0!==t?t:[]).map((function(e){return{id:e.id,title:null!==(r=e.title)&&void 0!==r?r:"",kind:"prayer"}})),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){H(o,r,i,a,l,"next",e)}function l(e){H(o,r,i,a,l,"throw",e)}a(void 0)}))});return function(){return n.apply(this,arguments)}}(),J=Y;function K(){var e,n,t=(e=["query getInfoContentsForLinking($where: contents_bool_exp) {\n  contents(where: $where, order_by: { title: asc }) {\n    id\n    title\n    type\n  }\n}"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return K=function(){return t},t}var X=(0,x.Ps)(K());function ee(e,n,t,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void t(u)}l.done?n(s):Promise.resolve(s).then(r,i)}var ne=function(){var e,n=(e=i().mark((function e(){var n,t,r,o,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={type:{_eq:"default"}},e.next=3,g.ZP.query({query:X,variables:{where:n},fetchPolicy:"network-only"});case 3:return t=e.sent.data,a=(null!==(r=null===t||void 0===t?void 0:t.contents)&&void 0!==r?r:[]).map((function(e){return{id:e.id,title:null!==(o=e.title)&&void 0!==o?o:"",kind:"info"}})),e.abrupt("return",a);case 7:case"end":return e.stop()}}),e)})),function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){ee(o,r,i,a,l,"next",e)}function l(e){ee(o,r,i,a,l,"throw",e)}a(void 0)}))});return function(){return n.apply(this,arguments)}}(),te=ne;function re(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ie(e,n,t,r,i,o,a){try{var l=e[o](a),s=l.value}catch(u){return void t(u)}l.done?n(s):Promise.resolve(s).then(r,i)}function oe(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function a(e){ie(o,r,i,a,l,"next",e)}function l(e){ie(o,r,i,a,l,"throw",e)}a(void 0)}))}}function ae(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function le(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){ae(e,n,t[n])}))}return e}function se(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}
1(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function ue(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,l=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(s){l=!0,i=s}finally{try{a||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||de(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e){return function(e){if(Array.isArray(e))return re(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||de(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function de(e,n){if(e){if("string"===typeof e)return re(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?re(e,n):void 0}}var fe=(0,l.default)(oe(i().mark((function e(){var n,r,a,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([t.e(2937),t.e(8446),t.e(1167)]).then(t.t.bind(t,71167,23));case 2:return n=e.sent,r=n.default,a=r.Quill.import("formats/font"),l=r.Quill.import("attributors/style/size"),r.Quill.import("formats/link").PROTOCOL_WHITELIST=["http","https","mailto","tel","firmapp"],r.Quill.import("formats/link"),a.whitelist=["regular","bold"],l.whitelist=["12px","14px","16px","20px"],r.Quill.register(a,!0),r.Quill.register(l,!0),e.abrupt("return",(function(e){var n=e.forwardedRef,t=se(e,["forwardedRef"]);return(0,o.jsx)(r,le({ref:n},t))}));case 13:case"end":return e.stop()}}),e)}))),{loadableGenerated:{webpack:function(){return[71167]}},ssr:!1});function pe(e){var n=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,t=new Date,r=t.toISOString(),i=new Date(t.getTime()+24*n*3600*1e3).toISOString(),o=[{date_start:{_lt:i}},{date_end:{_gte:r}}];return e&&e.length&&o.push({_or:[{groups:{group_id:{_in:e}}},{groups_aggregate:{count:{predicate:{_eq:0}}}}]}),{_and:o}},t=function(){var e=document.createElement("input");e.setAttribute("type","file"),e.setAttribute("accept","attachment/pdf"),e.setAttribute("multiple","multiple"),e.click(),e.onchange=oe(i().mark((function n(){var t,r,o,a,l;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=null===g||void 0===g||null===(t=g.current)||void 0===t?void 0:t.getEditor(),n.next=4,$(e.files[0]);case 4:o=n.sent.url,r.getContents(),a=r.getSelection().index,l={text:e.files[0].name,url:o},r.insertText(a,l.text,"link",l.url),r.setSelection(a+l.text.length+1);case 10:case"end":return n.stop()}}),n)})))},r=function(){O(!0)},l=function(){var e=document.createElement("input");e.setAttribute("type","file"),e.setAttribute("accept","image/*"),e.setAttribute("multiple","multiple"),e.click(),e.onchange=oe(i().mark((function n(){var t;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=e.files[0],Q(t);case 2:case"end":return n.stop()}}),n)})))},s=function(e){return e.toLowerCase().replace(/\s/g,"-")},u=e.value,c=e.onChange,d=e.readOnly,f=void 0!==d&&d,v=se(e,["value","onChange","readOnly"]),h=(0,b.useSession)().data,g=(0,a.useRef)(null),x=(0,a.useState)(!1),w=x[0],k=x[1],j=(0,a.useState)(!1),_=j[0],O=j[1],P=(0,a.useState)([]),q=P[0],S=P[1],N=(0,a.useState)(!1),T=N[0],E=N[1],F=(0,a.useState)(),L=(F[0],F[1],function(e,n){var t,r,i=(null!==(t=e.title)&&void 0!==t?t:"").trim().toLocaleLowerCase(),o=(null!==(r=n.title)&&void 0!==r?r:"").trim().toLocaleLowerCase();return i&&o?i.localeCompare(o):!i&&o?1:i&&!o?-1:0}),Z=function(){var e,n,t,r;if("admin"===(null===h||void 0===h||null===(e=h.user)||void 0===e||null===(n=e.roleObj)||void 0===n?void 0:n.name))return{};var i=(null===h||void 0===h||null===(t=h.user)||void 0===t||null===(r=t.groups)||void 0===r?void 0:r.map((function(e){return e.id})))||[];return{blogWhere:{_or:i.map((function(e){return{group_id:{_eq:e}}}))},quizWhere:{_and:[{is_question_pool:{_eq:!1}},{_or:[{group_id:{_in:i}},{group_id:{_is_null:!0}},{quiz_visibilities:{group_id:{_in:i},visible:{_eq:!0}}}]}]},surveyWhere:{_or:[{group_id:{_in:i}},{survey_visibilities:{group_id:{_in:i},visible:{_eq:!0}}}]},taskWhere:{_or:[{group_id:{_in:i}},{task_visibilities:{group_id:{_in:i},visible:{_eq:!0}}}]}}},I=function(){var e=oe(i().mark((function e(){var t,r,o,a,l,s,u,c,d,f,p,v,m,y,b,g,x,w,k,j;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E(!0),e.prev=1,o="admin"===(null===h||void 0===h||null===(t=h.user)||void 0===t||null===(r=t.roleObj)||void 0===r?void 0:r.name),a=void 0,l={_and:[{is_question_pool:{_eq:!1}}]},s=void 0,u=void 0,c=void 0,o||(p=Z(),a=p.blogWhere,l=p.quizWhere,s=p.surveyWhere,u=p.taskWhere,c=n(null===h||void 0===h||null===(d=h.user)||void 0===d||null===(f=d.groups)||void 0===f?void 0:f.map((function(e){return e.id})))),e.t0=ue,e.next=13,Promise.all([C({where:a}),z({where:l}),A({where:s}),D({where:u}),U({condition:c}),J(),te()]);case 13:e.t1=e.sent,v=(0,e.t0)(e.t1,7),m=v[0],y=v[1],b=v[2],g=v[3],x=v[4],w=v[5],k=v[6],j=ce(m).concat(ce(y),ce(b),ce(g),ce(x),ce(w),ce(k)).sort(L),S(j);case 24:return e.prev=24,E(!1),e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[1,,24,27]])})));return function(){return e.apply(this,arguments)}}(),W=function(e){switch(e.kind){case"blog":default:return e.id;case"quiz":return"GroupStack/Group/Quiz/".concat(e.id);case"survey":return"GroupStack/Group/Survey/".concat(e.id);case"task":return"GroupStack/Group/Task/".concat(e.id);case"event":var n;return null!==(n=e.deeplink)&&void 0!==n?n:"CalendarStack/Calendar/1970-01-01/".concat(e.id)}};function $(e){return B.apply(this,arguments)}function B(){return(B=oe(i().mark((function e(n){var t,r,o,a,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("/api/s3-upload",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filename:n.name,contentType:n.type})});case 2:if((t=e.sent).ok){e.next=5;break}throw new Error("Upload fehlgeschlagen");case 5:return e.next=7,t.json();case 7:return r=e.sent,o=r.url,a=r.key,l=r.bucket,e.next=13,fetch(o,{method:"PUT",body:n,headers:{"Content-Type":n.type}});case 13:return e.abrupt("return",{url:"https://".concat(l,".s3.").concat("eu-central-1",".amazonaws.com/").concat(a)});case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(){return G.apply(this,arguments)}function G(){return(G=oe(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(k(!0),!(q&&q.length>0)){e.next=3;break}return e.abrupt("return");case 3:I();case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,a.useEffect)((function(){I()}),[h]);var Q=function(){var e=oe(i().mark((function e(n){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{new(m())(n,{quality:.8,maxWidth:1080,convertSize:5e5,success:function(){var e=oe(i().mark((function e(n){var t,r,o,a,l,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=null===g||void 0===g||null===(t=g.current)||void 0===t?void 0:t.getEditor(),i=n.name,o=i.replace(/[^.\w\d_-]/g,"_"),a=new File([n],o,{type:n.type}),e.next=6,$(a);case 6:l=e.sent.url,r.getContents(),s=r.getSelection().index,r.insertEmbed(s,"image",l),r.setSelection(s+1);case 11:case"end":return e.stop()}var i}),e)})));return function(n){return e.apply(this,arguments)}}(),error:function(e){console.error("Error compressing image",e)}})}catch(t){console.error("Error uploading image to S3",t)}case 1:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),M=["Regular","Bold"],V=M.map((function(e){return s(e)})),H="";M.forEach((function(e){var n=s(e);H+=".ql-snow .ql-picker.ql-font .ql-picker-label[data-value="+n+"]::before, .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="+n+"]::before {content: '"+e+"';}.ql-font-"+n})),(Y=document.createElement("style")).innerHTML=H,document.body.appendChild(Y);var Y,K=["12px","14px","16px","20px"],X=K.map((function(e){return s(e)})),ee="";
1K.forEach((function(e){s(e);ee+=".ql-snow .ql-picker.ql-size .ql-picker-label[data-value='"+e+"']::before, .ql-snow .ql-picker.ql-size .ql-picker-item[data-value='"+e+"']::before {content: '"+e+"';}.ql-size-"+e})),(Y=document.createElement("style")).innerHTML=ee,document.body.appendChild(Y);var ne=(0,a.useMemo)((function(){return f?{toolbar:!1}:{toolbar:{container:[[{font:V}],[{size:X}],["italic","underline","strike"],[{color:["#000000","#B92A4B","#DCAE41","#0098DA","#5E5C56","#18BC5F","#742843"]}],[{script:"sub"},{script:"super"}],[{header:1},{header:2},{header:3}],[{list:"ordered"},{list:"bullet"}],[{align:[]}],["link","image","video","attachment","contentlink"],["clean"]],handlers:{image:l,video:r,attachment:t,contentlink:R}}}}),[f]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(fe,le({forwardedRef:g,modules:ne,value:u,onChange:function(e,n){var t=e.replaceAll("www.youtube.com/embed","www.youtube-nocookie.com/embed");c(t,n)},readOnly:f},v)),(0,o.jsx)(p,{title:"Inhalt",items:q,isLoading:T,onClose:function(){return k(!1)},onSubmit:function(e,n){var t,r;if(n){var i,o=null===g||void 0===g||null===(t=g.current)||void 0===t?void 0:t.getEditor();o.getContents(),o.focus();var a,l=null!==(i=null===(r=o.getSelection())||void 0===r?void 0:r.index)&&void 0!==i?i:0,s=(null!==(a=n.title)&&void 0!==a?a:"").trim()||"Link",u=W(n),c="firmapp://content?"+encodeURIComponent(u);o.insertText(l,s,"link",c),o.setSelection(l+s.length+1),k(!1)}},open:w}),(0,o.jsx)(y,{title:"Video URL",onClose:function(){return O(!1)},onSubmit:function(e){!function(e){var n,t=new URL(e).searchParams,r=t.get("v");e.includes("youtube")&&t.has("v")&&(e="https://www.youtube-nocookie.com/embed/"+r);var i=null===g||void 0===g||null===(n=g.current)||void 0===n?void 0:n.getEditor();i.getContents(),i.focus();var o=i.getSelection().index;i.insertEmbed(o,"video",e),i.setSelection(o+1)}(e)},open:_})]})}},35390:function(e,n,t){t.d(n,{Z:function(){return s}});var r=t(85893),i=t(44080),o=t(71272),a=t(67294),l=t(28309);function s(e){var n=e.title,t=e.children,s=e.open,u=e.onClose,c=e.icon,d=e.iconColor,f=void 0===d?"gray":d,p=e.style;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(i.u.Root,{show:s,as:a.Fragment,children:(0,r.jsx)(o.V,{as:"div",className:"fixed z-10 
1inset-0 overflow-y-auto",onClose:u,children:(0,r.jsxs)("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[(0,r.jsx)(i.u.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,r.jsx)(o.V.Overlay,{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"})}),(0,r.jsx)("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"\u200b"}),(0,r.jsx)(i.u.Child,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,r.jsx)("div",{className:"relative inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl sm:w-full sm:p-6",style:p,children:(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-"+f+"-100",children:(0,r.jsx)(l.e,{icon:c,className:"h-6 w-6 text-"+f+"-600"})}),(0,r.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,r.jsx)(o.V.Title,{as:"h3",className:"text-lg leading-6 font-semibold",children:n}),(0,r.jsx)("div",{className:"mt-2",children:t})]})]})})})]})})})})}}}]);

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.