PageSourceSearch

https://firmapp-backend.netlify.app/_next/static/chunks/5752-f25d5d54b892cae9.js

js firmapp-backend.netlify.app collected 2026-10-03 10:46:05 UTC 23,604 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5752],{15752:function(e,t,n){n.d(t,{Z:function(){return V}});var r=n(34051),s=n.n(r),i=n(85893),a=n(33299),o=n(67294),c=n(47153),l=n(11163),u=n(61283),d=n(97568),m=n(20921),p=n(67801),f=n(17283),x=n(51534);function h(e,t,n,r,s,i,a){try{var o=e[i](a),c=o.value}catch(l){return void n(l)}o.done?t(c):Promise.resolve(c).then(r,s)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(r,s){var i=e.apply(t,n);function a(e){h(i,r,s,a,o,"next",e)}function o(e){h(i,r,s,a,o,"throw",e)}a(void 0)}))}}function b(){var e,t,n=(e=["\n  mutation createContentRevision($revision: content_revisions_insert_input!) {\n    insert_content_revisions_one(object: $revision) {\n      id\n    }\n  }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return b=function(){return n},n}var g=(0,f.Ps)(b());function y(e){return j.apply(this,arguments)}function j(){return(j=v(s().mark((function e(t){var n,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,x.ZP.mutate({mutation:g,variables:{revision:t}});case 3:return r=e.sent.data,e.abrupt("return",(null===r||void 0===r||null===(n=r.insert_content_revisions_one)||void 0===n?void 0:n.id)||null);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e,t,n,r,s,i,a){try{var o=e[i](a),c=o.value}catch(l){return void n(l)}o.done?t(c):Promise.resolve(c).then(r,s)}function N(){var e,t,n=(e=["\n  query MyQuery($parentId: uuid) {\n    content_revisions(where: {parent_id: {_eq: parentId}}) {\n      id\n      created_at\n      version\n      title\n      text\n      created_by_id\n    }\n  }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return N=function(){return n},n}var _=(0,f.Ps)(N()),k=(function(){var e,t=(e=s().mark((function e(t){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,x.ZP.query({query:_,fetchPolicy:"network-only",variables:{parentId:t}});case 3:return n=e.sent.data,e.abrupt("return",n.content_revisions||[]);case 7:throw e.prev=7,e.t0=e.catch(0),new Error(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})),function(){var t=this,n=arguments;return new Promise((function(r,s){var i=e.apply(t,n);function a(e){w(i,r,s,a,o,"next",e)}function o(e){w(i,r,s,a,o,"throw",e)}a(void 0)}))})}(),n(73527)),C=n(81719),S=n(92422),F=n(28309),Z=n(66628),P=n(55802),O=n(64729),z=n(44080),A=n(13840);function I(e){var t=e.value,n=e.onChange,r=e.options,s=e.section,a=e.label,l=(0,o.useState)(""),u=l[0],d=l[1];return(0,o.useEffect)((function(){var e=Object.keys(r[s]).find((function(e){return e===t}));d(e)}),[t]),(0,i.jsxs)("div",{className:"relative rounded-md rounded-b-none px-3 py-2 ",children:[(0,i.jsx)("label",{htmlFor:"name",className:"block text-xs font-medium text-gray-900",children:a}),(0,i.jsx)(O.R,{value:u,onChange:n,children:(0,i.jsxs)("div",{className:"relative mt-1",children:[(0,i.jsxs)(O.R.Button,{className:"relative w-full cursor-default rounded-lg bg-white py-2 pl-3 pr-10 text-left shadow-md focus:outline-none focus-visible:border-indigo-500 focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-orange-300 sm:text-sm maco-select-button",children:[(0,i.jsx)("span",{className:"block truncate",children:u?c.zc[s][u]:"Bitte w\xe4hlen"}),(0,i.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:(0,i.jsx)(A.Z,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})})]}),(0,i.jsx)(z.u,{as:o.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,i.jsx)(O.R.Options,{className:"absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm z-10 text-left",children:Object.keys(r[s]).map((function(e,t){return(0,i.jsx)(O.R.Option,{className:function(e){var t=e.active;return"relative cursor-default select-none py-2 pl-10 pr-4 ".concat(t?"bg-amber-100 text-amber-900":"text-gray-900")},value:e,children:function(t){var n=t.selected;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:"block truncate ".concat(n?"font-medium":"font-normal"),children:c.zc[s][e]}),n?(0,i.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3 text-amber-600",children:(0,i.jsx)(A.Z,{className:"h-5 w-5","aria-hidden":"true"})}):null]})}},t)}))})})]})})]})}var T=n(88490),q=n(50319);function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function R(e,t,n,r,s,i,a){try{var o=e[i](a),c=o.value}catch(l){return void n(l)}o.done?t(c):Promise.resolve(c).then(r,s)}function $(e){return function(){var t=this,n=arguments;return new Promise((function(r,s){var i=e.apply(t,n);function a(e){R(i,r,s,a,o,"next",e)}function o(e){R(i,r,s,a,o,"throw",e)}a(void 0)}))}}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,s,i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){o=!0,s=c}finally{try{a||null==n.return||n.return()}finally{if(o)throw s}}return i}}(e,t)||U(e,t)||function(){throw new TypeError("Invalid attempt to de
1structure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||U(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 U(e,t){if(e){if("string"===typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function V(e){var t=e.cid,n=void 0===t?null:t,r=e.editContent,f=e.section,x=e.path,h=function(e){"default"==X?l.default.push("/content/edit/"+e):"blog"==X?l.default.push("/blog/edit/"+e):l.default.push("/prayers/edit/"+e)},v=function(){j(w("".concat(f,".notifications.success.title")),w("".concat(f,".notifications.success.text")),w("".concat(f,".notifications.success.state")))},b=function(e){j(w("".concat(f,".notifications.error.title")),w("".concat(f,".notifications.error.text")),w("".concat(f,".notifications.error.state"))),console.log(e)},g=function(){ye(!0)},j=function(e,t,n){Ce(e),Ze(t),ze(n)},w=(0,d.$G)(["".concat(f),"actionlog"]).t,N=(0,a.useSession)().data,_=!!n,O=((0,c.qX)(x,"create"),(0,c.qX)(x,"update")),z=(0,o.useState)(""),A=z[0],E=z[1],R=(0,o.useState)(""),U=R[0],V=R[1],M=(0,o.useState)(B(Object.keys(c.zc[x]||{}),1)[0]||""),X=M[0],K=M[1],W=(0,o.useState)((0,c.Ux)("-")),G=W[0],H=W[1],Q=(0,o.useState)((0,c.Xn)()),J=Q[0],L=Q[1],Y=(0,o.useState)(""),ee=Y[0],te=Y[1],ne=(0,o.useState)(!1),re=ne[0],se=ne[1],ie=(0,o.useState)(!1),ae=ie[0],oe=ie[1],ce=(0,o.useState)("1"),le=(ce[0],ce[1],(0,o.useState)([])),ue=le[0],de=le[1],me=(0,o.useState)(!1),pe=me[0],fe=me[1],xe=(0,o.useState)(!1),he=xe[0],ve=xe[1],be=(0,o.useState)(!1),ge=be[0],ye=be[1],je=(0,o.useState)(!1),we=je[0],Ne=je[1],_e=(0,o.useState)("Notification"),ke=_e[0],Ce=_e[1],Se=(0,o.useState)("Das ist der Text"),Fe=Se[0],Ze=Se[1],Pe=(0,o.useState)("success"),Oe=Pe[0],ze=Pe[1],Ae=(0,o.useState)(""),Ie=Ae[0],Te=Ae[1],qe=(0,o.useState)(""),Ee=qe[0],Re=qe[1],$e=(0,o.useState)(!1),Be=$e[0],De=$e[1],Ue=B((0,q.D)(p.NK),1)[0],Ve=B((0,q.D)(p.Cj),1)[0];(0,o.useEffect)((function(){var e,t;r&&(E(r.title),V(r.text),H((0,c.NF)(r.published_at).date),L((0,c.NF)(r.published_at).time),te("".concat(null===(e=r.created_by)||void 0===e?void 0:e.first_name," ").concat(null===(t=r.created_by)||void 0===t?void 0:t.last_name)),K(r.type),se(r.published),oe(r.hide_headline),r.revisions&&de(r.revisions),Te(r.title),Re(r.text))}),[r]);function Me(e){return Xe.apply(this,arguments)}function Xe(){return(Xe=$(s().mark((function e(t){var n,r,i;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,p.K1)({title:A,text:U,type:X,published_at:(0,c.S9)(G,J),created_by_id:null===(n=N.user)||void 0===n?void 0:n.id,group_id:null===(r=N.user)||void 0===r||null===(i=r.group)||void 0===i?void 0:i.id,published:t,hide_headline:ae}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ke(e){return We.apply(this,arguments)}function We(){return(We=$(s().mark((function e(t){var n,i,a,o,l,u,d;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=4,(0,p.Tx)({id:r.id,title:A,text:U,type:X,published_at:(0,c.S9)(G,J),created_by_id:null===(i=N.user)||void 0===i?void 0:i.id,group_id:null===(a=N.user)||void 0===a||null===(o=a.group)||void 0===o?void 0:o.id,published:t,hide_headline:ae});case 4:return u=e.sent,0,u,d=(n=Math).max.apply(n,D(ue.map((function(e){return Number(e.version)})))),Number.isInteger(d)||(d=0),e.next=11,y({version:String(d+1),text:Ee,title:Ie,created_by_id:null===(l=N.user)||void 0===l?void 0:l.id,parent_id:r.id});case 11:return e.sent,e.abrupt("return",u);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ge(){return(Ge=$(s().mark((function e(){var t,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(X){e.next=3;break}return alert(w("".concat(f,".alerts.content_type_missing"))),e.abrupt("return");case 3:return fe(!0),e.prev=4,e.next=8,Me(!1);case 8:return n=e.sent,Ne(!0),e.next=12,(0,c.xN)(null===(t=N.user)||void 0===t?void 0:t.id,c.pp.Create,c.rP.Content,w("actionlog:texts.content.create_draft",{title:A}));case 12:v(),h(n),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(4),b(e.t0);case 19:fe(!1);case 20:case"end":return e.stop()}}),e,null,[[4,16]])})))).apply(this,arguments)}function He(){return(He=$(s().mark((function e(){var t,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(X){e.next=3;break}return alert(w("".concat(f,".alerts.content_type_missing"))),e.abrupt("return");case 3:return ve(!0),e.prev=4,e.next=8,Me(!0);case 8:return n=e.sent,Ne(!0),e.next=12,(0,c.xN)(null===(t=N.user)||void 0===t?void 0:t.id,c.pp.Create,c.rP.Content,w("actionlog:texts.content.create_published",{title:A}));case 12:v(),h(n),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(4),b(e.t0);case 19:ve(!1);case 20:case"end":return e.stop()}}),e,null,[[4,16]])})))).apply(this,arguments)}function Qe(){return(Qe=$(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return fe(!0),e.prev=1,e.next=5,Ke(!1);case 5:e.sent,Ne(!0),(0,c.xN)(null===(t=N.user)||void 0===t?void 0:t.id,c.pp.Update,c.rP.Content,w("actionlog:texts.content.update_draft",{title:A})),v(),window.location.reload(),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),b(e.t0);case 15:fe(!1);case 16:case"end":return e.stop()}}),e,null,[[1,12]])})))).apply(this,arguments)}function Je(){return Le.apply(this,arguments)}function Le(){return(Le=$(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ve(!0),e.prev=1,e.next=5,Ke(!0);case 5:return e.sent,Ne(!0),e.next=9,(0,c.xN)(null===(t=N.user)||void 0===t?void 0:t.id,c.pp.Update,c.rP.Content,w("actionlog:texts.content.update_published",{title:A}));case 9:v(),window.location.reload(),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),b(e.t0);
1case 16:ve(!1);case 17:case"end":return e.stop()}}),e,null,[[1,13]])})))).apply(this,arguments)}function Ye(){return(Ye=$(s().mark((function e(){var t,r,i,a,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return De(!1),e.next=4,Ue({variables:{ids:n}});case 4:if(i=e.sent,a=i.data,!(o=(null===a||void 0===a||null===(t=a.delete_contents)||void 0===t||null===(r=t.returning)||void 0===r?void 0:r.map((function(e){return e.id})))||[]).length){e.next=10;break}return e.next=10,Ve({variables:{ids:[],parent_ids:o}});case 10:window.history.back();case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u.Z,{show:we,title:ke,text:Fe,state:Oe,onClose:function(){return Ne(!1)}}),(0,i.jsx)("div",{className:"bg-gray-100",children:(0,i.jsx)("div",{className:"mx-auto max-w-12xl py-6 sm:px-6 lg:px-8",children:(0,i.jsxs)("div",{className:"bg-white px-4 py-5 shadow sm:rounded-lg sm:p-6",children:[(0,i.jsx)("div",{className:"md:grid md:grid-cols-2",children:(0,i.jsxs)("div",{className:"md:flex md:items-center md:justify-between",children:[(0,i.jsx)("div",{className:"min-w-0 flex-1",children:(0,i.jsx)("h2",{className:"text-2xl font-bold leading-7 text-gray-900 sm:truncate sm:text-3xl sm:tracking-tight"})}),(0,i.jsxs)("div",{className:"mt-4 flex md:mt-0 md:ml-4",children:[!_&&(0,i.jsx)("div",{children:O&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{type:"button",className:"inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:function(){return g()},children:w("".concat(f,".buttons.preview"))}),(0,i.jsxs)("button",{type:"button",className:"ml-3 inline-flex items-center rounded-md border border-transparent bg-boni-blue px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-boni-gold focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:function(){return function(){return Ge.apply(this,arguments)}()},children:[pe&&(0,i.jsx)(m.Z,{className:"h-5 w-5 mr-2"}),w("".concat(f,".buttons.savedraft"))]}),(0,i.jsxs)("button",{type:"button",className:"ml-3 inline-flex items-center rounded-md border border-transparent bg-boni-blue px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-boni-gold focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:function(){return function(){return He.apply(this,arguments)}()},children:[he&&(0,i.jsx)(m.Z,{className:"h-5 w-5 mr-2"}),w("".concat(f,".buttons.publish"))]})]})}),_&&(0,i.jsxs)("div",{children:[O&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{type:"button",className:"inline-flex items-center rounded-md border border-gray-300 bg-white px-4 py-2 text-sm font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:function(){return g()},children:w("".concat(f,".buttons.preview"))}),(0,i.jsxs)("button",{type:"button",className:"ml-3 inline-flex items-center rounded-md border border-transparent bg-boni-blue px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-boni-gold focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:function(){return function(){return Qe.apply(this,arguments)}()},children:[pe&&(0,i.jsx)(m.Z,{className:"h-5 w-5 mr-2"}),w("".concat(f,".buttons.updatedraft"))]})]}),re?(0,i.jsx)(i.Fragment,{children:O&&(0,i.jsxs)("button",{type:"button",className:"ml-3 inline-flex items-center rounded-md border border-transparent bg-boni-blue px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-boni-gold focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:function(){return Je()},children:[he&&(0,i.jsx)(m.Z,{className:"h-5 w-5 mr-2"}),w("".concat(f,".buttons.update"))]})}):(0,i.jsx)(i.Fragment,{children:O&&(0,i.jsxs)("button",{type:"button",className:"ml-3 inline-flex items-center rounded-md border border-transparent bg-boni-blue px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-boni-gold focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",onClick:function(){return Je()},children:[he&&(0,i.jsx)(m.Z,{className:"h-5 w-5 mr-2"}),w("".concat(f,".buttons.publish"))]})})]})]})]})}),(0,i.jsxs)("div",{className:"md:grid md:grid-cols-3 md:gap-6",children:[(0,i.jsx)("div",{className:"mt-5 md:col-span-2 md:mt-0",children:(0,i.jsxs)("div",{className:"grid grid-cols-6 gap-6",children:[(0,i.jsxs)("div",{className:"col-span-6 sm:col-span-6",children:[(0,i.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700",children:w("".concat(f,".form.inputs.title"))}),(0,i.jsx)("div",{className:"mt-1",children:(0,i.jsx)("input",{type:"text",name:"title",id:"title",className:"shadow-sm focus:ring-boni-blue focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md",placeholder:"",value:A,onChange:function(e){E(e.target.value)}})})]}),(0,i.jsx)("div",{className:"col-span-6 sm:col-span-6",children:(0,i.jsx)(P.Z,{value:U,onChange:V})})]})}),(0,i.jsx)("div",{className:"md:col-span-1",children:(0,i.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,i.jsxs)("div",{className:"col-span-6 sm:col-span-3",children:[(0,i.jsx)("label",{className:"block text-sm font-medium text-gray-700",children:w("".concat(f,".form.inputs.author"))}),(0,i.jsx)("p",{children:ee})]}),(0,i.jsxs)("div",{className:"col-span-6 sm:col-span-3",children:[(0,i.jsxs)("label",{className:"block text-sm font-medium text-gray-700",children:[w("".concat(f,".form.inputs.publish")),":"]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("input",{type:"date",id:"start",name:"trip-start",value:G,min:"2022-09-01",max:"2035-12-31",required:!0,onChange:function(e){H(e.target.value)}}),(0,i.jsx)("input",{type:"time",id:"appt",name:"appt",min:"09:00",max:"18:00",required:!0,value:J,onChange:function(e){L(e.target.value)}})]})]}),(0,i.jsx)("div",{className:"col-span-6 sm:col-span-3",children:(0,i.jsx)("div",{className:"col-span-6 sm:col-span-3",children:(0,i.jsx)(I,{label:w("".concat(f,".form.inputs.type")),value:X,options:c.zc,section:x,onChange:function(e){return K(e)}})})}),"prayers"===f&&(0,i.jsx)("div",{className:"col-span-6 sm:col-span-3",children:(0,i.jsx)("div",{className:"col-span-6 sm:col-span-3",children:(0,i.jsx)(T.Z,{label:w("".concat(f,".form.inputs.hide_headline")),id:"is_hide_headline",value:ae,onChange:function(e){return oe(e)},removeBorder:!0})})}),(0,i.jsx)("div",{children:O&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(S.Z,{color:"primary",className:"flex gap-2 items-center disabled:opacity-40",disabled:!n,onClick:function(){return De(!0)},children:[(0,i.jsx)(F.e,{icon:"TrashIcon",className:"w-4 h-4 text-white flex-none"}),w("".concat(f,".buttons.delete"))]}),(0,i.jsx)(Z.Z,{title:w("".concat(f,".delete_confirmation.title")),body:w("".concat(f,".delete_confirmation.body")),onClose:function(){return De(!1)},onConfirm:function(){return function(){return Ye.apply(this,arguments)}()},open:Be})]})})]})}),(0,i.jsxs)("div",{className:"md:col-span-2",children:[(0,i.jsx)("h1",{className:"text-xl font-semibold text-gray-900 mb-3",children:"Versions"}),(0,i.jsxs)("table",{className:"min-w-full divide-y divide-gray-300",children:[(0,i.jsx)("thead",{className:"bg-gray-50",children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Version"}),(0,i.jsx)("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Created by"}),(0,i.jsx)("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),(0,i.jsx)("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900"})]})}),(0,i.jsx)("tbody",{className:"divide-y divide-gray-200 bg-white",children:ue&&ue.map((function(e,t){var n,r;return(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:e.version}),(0,i.jsxs)("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:[null===(n=e.created_by)||void 0===n?void 0:n.first_name," ",null===(r=e.created_by)||void 0===r?void 0:r.last_name]}),(0,i.jsx)("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:(0,c.Z3)(e.created_at)}),(0,i.jsx)("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:(0,i.jsx)("a",{href:"#",onClick:function(){return function(e){var t=ue[e];E(t.title),V(t.text)}(t)},className:"text-boni-blue hover:text-boni-gold",title:"Restore version",children:(0,i.jsx)(k.Z,{className:"w-5"})})})]},t)}))})]})]})]})]})})}),(0,i.jsx)(C.Z,{title:A,content:U,onClose:function(){return ye(!1)},open:ge,icon:"PencilIcon"})]})}},88490:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(85893);
1function s(e){var t=e.id,n=e.label,s=e.value,i=e.onChange,a=e.removeBorder?"relative rounded-md rounded-b-none px-3 py-2 ":"relative border border-gray-300 rounded-md rounded-b-none px-3 py-2 ";return(0,r.jsx)("div",{className:a,children:(0,r.jsxs)("div",{className:"flex items-center h-5",children:[(0,r.jsx)("input",{id:t,"aria-describedby":t+"description",name:t,type:"checkbox",className:"focus:ring-boni-blue h-4 w-4 text-boni-blue border-gray-300 rounded",checked:s,onChange:function(e){return i(e.target.checked)}}),(0,r.jsx)("label",{htmlFor:t,className:"font-medium sm:text-sm text-gray-700 pl-2",children:n})]})})}},81719:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(85893),s=n(44080),i=n(71272),a=n(67294),o=n(92422),c=n(25935),l={overflow:"hidden",position:"relative"},u={padding:"0 20px 20px 20px",textAlign:"left",overflow:"scroll",height:"560px",width:"440px",position:"absolute",top:"295px"},d={fontFamily:"sans-serif",fontSize:"23px",color:"#4a4742",fontWeight:"bold"};function m(e){var t=e.title,n=e.content,m=e.open,p=e.onClose,f=(e.icon,e.iconColor,e.style);return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(s.u.Root,{show:m,as:a.Fragment,children:(0,r.jsx)(i.V,{as:"div",className:"fixed z-10 
1inset-0 overflow-y-auto",onClose:p,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)(s.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)(i.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)(s.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.jsxs)("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:f,children:[(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"mt-0 text-center sm:mt-0",style:l,children:[(0,r.jsx)("div",{className:"mt-0 sm:mx-auto sm:w-full h-previewHeight w-previewWidth sm:max-w-md bg-[url('/images/FirmAppContentPreview.png')] bg-cover bg-no-repeat",children:(0,r.jsxs)("div",{style:u,children:[(0,r.jsx)("h1",{style:d,children:t}),(0,r.jsx)("div",{className:"preview-content",children:(0,c.ZP)(n)})]})}),(0,r.jsx)("div",{className:"mt-2"})]})}),(0,r.jsx)(o.Z,{color:"secondary",type:"button",label:"Schlie\xdfen",onClick:p,className:"mr-2"})]})})]})})})})}}}]);

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.