PageSourceSearch

https://firmapp-backend.netlify.app/_next/static/chunks/1070-dff4c74ef74c5271.js

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

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1070],{44297:function(e,n,t){t.d(n,{HR:function(){return u},ZC:function(){return a},hK:function(){return s},bH:function(){return l},Sf:function(){return v},Gn:function(){return N}});var r=t(17283);function i(){var e,n,t=(e=["\n  mutation deleteSurveyOptions($condition: survey_options_bool_exp = {}) {\n    delete_survey_options(where: $condition) {\n      returning {\n        id\n      }\n    }\n  }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return i=function(){return t},t}var u=(0,r.Ps)(i());function o(){var e,n,t=(e=["\n  query getSurveys($condition: surveys_bool_exp, $offset: Int!, $limit: Int!) {\n    surveys(where: $condition, order_by: { created_at: desc }, offset: $offset, limit: $limit) {\n      id\n      title\n      created_at\n      expire_at\n      text\n      anonymous\n      options {\n        title\n        id\n        answers_aggregate {\n          aggregate {\n            count\n          }\n        }\n      }\n      user {\n        id\n        first_name\n        last_name\n      }\n      group {\n        id\n        name\n      }\n      survey_visibilities {\n        group_id\n        visible\n      }\n      is_standard\n    }\n    surveys_aggregate {\n      aggregate {\n        count\n      }\n    }\n  }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return o=function(){return t},t}var a=(0,r.Ps)(o());function c(){var e,n,t=(e=["\n  query getSurveyById($id: uuid!) {\n    surveys(where: { id: { _eq: $id } }) {\n      id\n      title\n      created_at\n      expire_at\n      hidden\n      multi_select\n      anonymous\n      text\n      options(order_by: { created_at: asc }) {\n        title\n        id\n        survey_id\n        answers_aggregate {\n          aggregate {\n            count\n          }\n        }\n      }\n      user_id\n      user {\n        id\n        first_name\n        last_name\n      }\n      group_id\n      group {\n        id\n        name\n      }\n      survey_visibilities {\n        group_id\n        visible\n      }\n      is_standard\n    }\n  }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return c=function(){return t},t}var s=(0,r.Ps)(c());function d(){var e,n,t=(e=["\n  mutation upsertSurveys($data: [surveys_insert_input!]!) {\n    insert_surveys(\n      objects: $data\n      on_conflict: { constraint: surveys_pkey, update_columns: [title, text, user_id, expire_at, group_id, is_standard, multi_select, anonymous] }\n    ) {\n      returning {\n        id\n      }\n    }\n  }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return d=function(){return t},t}var l=(0,r.Ps)(d());function f(){var e,n,t=(e=["\n  mutation upsertSurveyOptions($data: [survey_options_insert_input!]!) {\n    insert_survey_options(objects: $data, on_conflict: { constraint: survey_options_pkey, update_columns: [survey_id, title] }) {\n      returning {\n        id\n      }\n    }\n  }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return f=function(){return t},t}var v=(0,r.Ps)(f()),p=t(34051),b=t.n(p),y=t(51534);function m(e,n,t,r,i,u,o){try{var a=e[u](o),c=a.value}catch(s){return void t(s)}a.done?n(c):Promise.resolve(c).then(r,i)}function g(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function w(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){g(e,n,t[n])}))}return e}function h(){var e,n,t=(e=["\n  mutation addSurvey(\n    $title: String!,\n    $user_id: uuid!,\n    $group_id: uuid!,\n    $is_standard: Boolean = false\n  ) {\n    insert_surveys(objects: {\n      title: $title,\n      user_id: $user_id,\n      group_id: $group_id,\n      hidden: true,\n    }) {\n      returning {\n        id\n      }\n    }\n  }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return h=function(){return t},t}var _=(0,r.Ps)(h());!function(){var e,n=(e=b().mark((function e(n){var t;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y.ZP.mutate({mutation:_,variables:w({},n)});case 3:return t=e.sent.data,e.abrupt("return",{id:t.insert_surveys.returning[0].id});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 n=this,t=arguments;return new Promise((function(r,i){var u=e.apply(n,t);function o(e){m(u,r,i,o,a,"next",e)}function a(e){m(u,r,i,o,a,"throw",e)}o(void 0)}))})}();function O(e,n,t,r,i,u,o){try{var a=e[u](o),c=a.value}catch(s){return void t(s)}a.done?n(c):Promise.resolve(c).then(r,i)}function j(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function x(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}
1)))),r.forEach((function(n){j(e,n,t[n])}))}return e}function P(){var e,n,t=(e=["\n  mutation addSurveyOption(\n    $survey_id: uuid!\n    $title: String!,\n  ) {\n    insert_survey_options(objects: {\n      survey_id: $survey_id,\n      title: $title,\n    }) {\n      returning {\n        id\n      }\n    }\n  }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return P=function(){return t},t}var $=(0,r.Ps)(P());!function(){var e,n=(e=b().mark((function e(n){var t;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y.ZP.mutate({mutation:$,variables:x({},n)});case 3:return t=e.sent.data,e.abrupt("return",{id:t.insert_survey_options.returning[0].id});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 n=this,t=arguments;return new Promise((function(r,i){var u=e.apply(n,t);function o(e){O(u,r,i,o,a,"next",e)}function a(e){O(u,r,i,o,a,"throw",e)}o(void 0)}))})}();function k(e,n,t,r,i,u,o){try{var a=e[u](o),c=a.value}catch(s){return void t(s)}a.done?n(c):Promise.resolve(c).then(r,i)}function S(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function z(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}
1)))),r.forEach((function(n){S(e,n,t[n])}))}return e}function E(){var e,n,t=(e=["\nmutation deleteSurvey($id: uuid!) {\n  delete_surveys(where: {id: {_eq: $id}}) {\n    returning {\n      id\n    }\n  }\n}\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return E=function(){return t},t}var q=(0,r.Ps)(E()),Z=function(){var e,n=(e=b().mark((function e(n){var t;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y.ZP.mutate({mutation:q,variables:z({},n)});case 3:return t=e.sent.data,e.abrupt("return",{id:t.delete_surveys.returning[0].id});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 n=this,t=arguments;return new Promise((function(r,i){var u=e.apply(n,t);function o(e){k(u,r,i,o,a,"next",e)}function a(e){k(u,r,i,o,a,"throw",e)}o(void 0)}))});return function(e){return n.apply(this,arguments)}}(),N=Z;function B(e,n,t,r,i,u,o){try{var a=e[u](o),c=a.value}catch(s){return void t(s)}a.done?n(c):Promise.resolve(c).then(r,i)}function C(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function D(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){C(e,n,t[n])}))}return e}function G(){var e,n,t=(e=["\nmutation deleteSurveyOption($id: uuid!) {\n  delete_survey_options(where: {id: {_eq: $id}}) {\n    returning {\n      id\n    }\n  }\n}\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return G=function(){return t},t}var I=(0,r.Ps)(G());!function(){var e,n=(e=b().mark((function e(n){var t;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y.ZP.mutate({mutation:I,variables:D({},n)});case 3:return t=e.sent.data,e.abrupt("return",{id:t.delete_survey_options.returning[0].id});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 n=this,t=arguments;return new Promise((function(r,i){var u=e.apply(n,t);function o(e){B(u,r,i,o,a,"next",e)}function a(e){B(u,r,i,o,a,"throw",e)}o(void 0)}))})}();function H(e,n,t,r,i,u,o){try{var a=e[u](o),c=a.value}catch(s){return void t(s)}a.done?n(c):Promise.resolve(c).then(r,i)}!function(){var e,n=(e=b().mark((function e(n){var t,r;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=4,y.ZP.query({query:s,variables:{id:n},fetchPolicy:"network-only"});case 4:return r=e.sent.data,e.abrupt("return",(null===r||void 0===r||null===(t=r.surveys)||void 0===t?void 0:t[0])||null);case 8:throw e.prev=8,e.t0=e.catch(0),new Error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})),function(){var n=this,t=arguments;return new Promise((function(r,i){var u=e.apply(n,t);function o(e){H(u,r,i,o,a,"next",e)}function a(e){H(u,r,i,o,a,"throw",e)}o(void 0)}))})}();function M(e,n,t,r,i,u,o){try{var a=e[u](o),c=a.value}catch(s){return void t(s)}a.done?n(c):Promise.resolve(c).then(r,i)}!function(){var e,n=(e=b().mark((function e(n,t){var r,i,u;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=4,y.ZP.query({query:a,variables:{offset:n,limit:t},fetchPolicy:"network-only"});case 4:return u=e.sent.data,e.abrupt("return",{data:u.surveys,count:(null===(r=u.surveys_aggregate)||void 0===r||null===(i=r.aggregate)||void 0===i?void 0:i.count)||0});case 8:throw e.prev=8,e.t0=e.catch(0),new Error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})),function(){var n=this,t=arguments;return new Promise((function(r,i){var u=e.apply(n,t);function o(e){M(u,r,i,o,a,"next",e)}function a(e){M(u,r,i,o,a,"throw",e)}o(void 0)}))})}();var R=t(31445);function T(e,n,t,r,i,u,o){try{var a=e[u](o),c=a.value}catch(s){return void t(s)}a.done?n(c):Promise.resolve(c).then(r,i)}function A(){var e,n,t=(e=["\n  mutation toggleSurveyVisibility($id: uuid!, $hidden: Boolean!) {\n    update_surveys(where: { id: { _eq: $id } }, _set: { hidden: $hidden }
1) {\n      returning {\n        id\n        hidden\n        title\n      }\n    }\n  }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return A=function(){return t},t}var K=(0,r.Ps)(A());!function(){var e,n=(e=b().mark((function e(n,t,r){var i,u,o,a,c;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=4,y.ZP.mutate({mutation:K,variables:{id:n,hidden:t}});case 4:a=e.sent,(c=null===a||void 0===a||null===(i=a.data)||void 0===i||null===(u=i.update_surveys)||void 0===u||null===(o=u.returning)||void 0===o?void 0:o[0])&&!c.hidden&&(0,R.E)("Neue Umfrage verf\xfcgbar",c.title,r.user.group.id,"function","GroupStack/Group/Survey"),e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(0),new Error(e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})),function(){var n=this,t=arguments;return new Promise((function(r,i){var u=e.apply(n,t);function o(e){T(u,r,i,o,a,"next",e)}function a(e){T(u,r,i,o,a,"throw",e)}o(void 0)}))})}();function L(e,n,t,r,i,u,o){try{var a=e[u](o),c=a.value}catch(s){return void t(s)}a.done?n(c):Promise.resolve(c).then(r,i)}function U(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function V(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){U(e,n,t[n])}))}return e}function W(){var e,n,t=(e=["\n  mutation updateSurvey(\n    $id: uuid\n    $user_id: uuid!\n    $title: String!\n    $group_id: uuid\n    $text: String\n    $hidden: Boolean\n    $multi_select: Boolean\n    $expire_at: timestamptz\n    $is_standard: Boolean\n  ) {\n    update_surveys(\n      where: { id: { _eq: $id } }\n      _set: {\n        expire_at: $expire_at\n        group_id: $group_id\n        hidden: $hidden\n        multi_select: $multi_select\n        text: $text\n        title: $title\n        user_id: $user_id\n        is_standard: $is_standard\n      }\n    ) {\n      returning {\n        id\n      }\n    }\n  }\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return W=function(){return t},t}var X=(0,r.Ps)(W());!function(){var e,n=(e=b().mark((function e(n){var t,r,i,u;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=4,y.ZP.mutate({mutation:X,variables:V({},n)});case 4:return u=e.sent.data,e.abrupt("return",{id:null===(t=u.update_surveys)||void 0===t||null===(r=t.returning)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.id});case 8:throw e.prev=8,e.t0=e.catch(0),new Error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})),function(){var n=this,t=arguments;return new Promise((function(r,i){var u=e.apply(n,t);function o(e){L(u,r,i,o,a,"next",e)}function a(e){L(u,r,i,o,a,"throw",e)}o(void 0)}))})}();function Y(e,n,t,r,i,u,o){try{var a=e[u](o),c=a.value}catch(s){return void t(s)}a.done?n(c):Promise.resolve(c).then(r,i)}function F(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function J(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){F(e,n,t[n])}))}return e}function Q(){var e,n,t=(e=["\nmutation updateSurveyOptions($id: uuid!, $title: String!, $survey_id: uuid!) {\n  update_survey_options(where: {id: {_eq: $id}}, _set: {survey_id: $survey_id, title: $title}){\n    returning {\n      id\n    }\n  }\n}\n"],n||(n=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(n)}})));return Q=function(){return t},t}var ee=(0,r.Ps)(Q());!function(){var e,n=(e=b().mark((function e(n){var t,r,i,u;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=4,y.ZP.mutate({mutation:ee,variables:J({},n)});case 4:return u=e.sent.data,e.abrupt("return",{id:null===(t=u.update_survey_options)||void 0===t||null===(r=t.returning)||void 0===r||null===(i=r[0])||void 0===i?void 0:i.id});case 8:throw e.prev=8,e.t0=e.catch(0),new Error(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})),function(){var n=this,t=arguments;return new Promise((function(r,i){var u=e.apply(n,t);function o(e){Y(u,r,i,o,a,"next",e)}function a(e){Y(u,r,i,o,a,"throw",e)}o(void 0)}))})}()},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:"indef
1inite",dur:"1s",keyTimes:"0;1",values:"0 50 50;360 50 50"})})})})}},92422:function(e,n,t){t.d(n,{Z:function(){return u}});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 u(e){var n=e.children,t=e.disabled,u=e.label,o=e.onClick,a=e.color,c=e.type,s=e.className;return(0,r.jsx)("button",{className:i[a]+(null!==s&&void 0!==s?s:""),disabled:t,onClick:o,type:c,children:n||u})}}}]);

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.