1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[474],{73391:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/caisy-ext/tags",function(){return n(14437)}])},14437:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSP:function(){return M},default:function(){return F}});var r=n(85893),o=n(67294),i=n(42976);function a(){var t,e,n=(t=["\n display: flex;\n gap: 16px;\n height: 100%;\n width: 100%;\n"],e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}})));return a=function(){return n},n}var c=i.ZP.div.withConfig({componentId:"sc-9d1e17aa-0"})(a());function u(){var t,e,n=(t=["\n display: flex;\n flex-direction: column;\n padding: 8px;\n background-color: rgba(0, 0, 0, 0.075);\n border-radius: 4px;\n width: 250px;\n"],e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}})));return u=function(){return n},n}var l=i.ZP.div.withConfig({componentId:"sc-41f376c0-0"})(u());function s(){var t,e,n=(t=["\n background-color: rgba(0, 0, 0, 0.1);\n padding: 8px 16px;\n text-align: left;\n font-weight: bold;\n font-size: 14px;\n border-radius: 4px;\n"],e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}})));return s=function(){return n},n}var f=i.ZP.h3.withConfig({componentId:"sc-c44a94f1-0"})(s());function d(){var t,e,n=(t=["\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n margin-top: 8px;\n flex-basis: 0.5;\n"],e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}})));return d=function(){return n},n}var p=i.ZP.div.withConfig({componentId:"sc-8c9a738b-0"})(d());function h(){var t,e,n=(t=["\n position: relative;\n width: calc(50% - 12px);\n cursor: pointer;\n background-color: white;\n padding: 4px 12px 4px 4px;\n font-size: 12px;\n border-radius: 4px;\n user-select: none;\n display: flex;\n align-items: center;\n"],e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}})));return h=function(){return n},n}var v=i.ZP.div.withConfig({componentId:"sc-2a193f9d-0"})(h());function g(){var t,e,n=(t=["\n position: absolute;\n top: calc(100% + 4px);\n box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);\n left: 0;\n background-color: white;\n padding: 8px;\n z-index: 10;\n border-radius: 4px;\n"],e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}})));return g=function(){return n},n}var y=i.ZP.div.withConfig({componentId:"sc-b0ec99a2-0"})(g());function w(){var t,e,n=(t=["\n padding: 4px;\n display: flex;\n align-items: center;\n gap: 4px;\n user-select: none;\n\n &:hover {\n background-color: rgba(0, 0, 0, 0.075);\n }\n"],e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}})));return w=function(){return n},n}var m=i.ZP.div.withConfig({componentId:"sc-33c101cc-0"})(w());function x(){return x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},x.apply(this,arguments)}var b=function(t){var e=x({},t);return e.visible?(0,r.jsxs)(y,{children:[e.tags&&e.tags.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(m,{onClick:function(t){t.stopPropagation(),e.onSelectAll(e.tags)},children:[(0,r.jsx)("input",{checked:e.allSelected(e.tags),onChange:function(){return e.onSelectAll(e.tags)},type:"checkbox"}),e.allSelected(e.tags)?"Alle aus":"Alle an"]}),e.tags.map((function(t){return(0,r.jsxs)(m,{onClick:function(n){n.stopPropagation(),e.onSelectTag(t)},children:[(0,r.jsx)("input",{onChange:function(){return e.onSelectTag(t)},checked:e.selected(t),type:"checkbox"}),t.name]},t.id)}))]}):(0,r.jsx)("div",{children:"No tags"}),(0,r.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",padding:4},children:"Schlie\xdfen"})]}):null};function j(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void n(l)}c.done?e(u):Promise.resolve(u).then(r,o)}function O(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){j(i,r,o,a,c,"next",t)}function c(t){j(i,r,o,a,c,"throw",t)}a(void 0)}))}}var E,P,L=(E=function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(z){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),a=new S(r||[]);return i._invoke=function(t,e,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return I()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=P(a,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=s(t,e,n);if("normal"===u.type){if(r=n.done?h:d,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(t,n,a),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(z){return{type:"throw",arg:z}}}t.wrap=l;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function g(){}function y(){}function w(){}var m={};m[i]=function(){return this};var x=Object.getPrototypeOf,b=x&&x(x(_([])));
vendor: 7,031 bytes, line 1
1b&&b!==n&&r.call(b,i)&&(m=b);var j=w.prototype=g.prototype=Object.create(m);function O(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(o,i,a,c){var u=s(t[o],t,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"===typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function P(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,P(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function _(t){if(t){var n=t[i];if(n)return n.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:I}}function I(){return{value:e,done:!0}}return y.prototype=j.constructor=w,w.constructor=y,y.displayName=u(w,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,c,"GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},O(E.prototype),E.prototype[a]=function(){return this},t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(j),u(j,c,"Generator"),j[i]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=_,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:_(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(n){Function("r","regeneratorRuntime = r")(e)}},E(P={exports:{}},P.exports),P.exports),k=!1,S="push",_="pull";var I=n(44571);function z(){var t,e,n=(t=["\n position: absolute;\n width: 100%;\n height: 100%;\n > div {\n position: absolute;\n width: 100%;\n height: 100%;\n }\n"],e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}})));return z=function(){return n},n}var T=i.ZP.div.withConfig({componentId:"sc-90b52988-0"})(z());function N(){var t,e,n=(t=["\n margin-top: 16px;\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n color: white;\n background-color: rgba(0, 0, 0, 0.075);\n padding: 8px;\n width: calc(260px * 3 + 16px + 16px);\n border-radius: 4px;\n > div {\n max-width: 140px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n background-color: #008cff;\n }\n"],e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}})));return N=function(){return n},n}var C=i.ZP.div.withConfig({componentId:"sc-e557b9e3-0"})(N());function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function G(){return G=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},G.apply(this,arguments)}function Z(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(u){c=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(t,e)}
1(t,e)||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.")}()}var F=function(t){var e=G({},t),n=function(){var t=(0,o.useState)({}),e=t[0],n=t[1],r=(0,o.useState)(void 0),i=r[0],a=r[1],c=(0,o.useState)(void 0),u=c[0],l=c[1],s=(0,o.useState)(!1),f=s[0],d=s[1],p=[];return(0,o.useEffect)((function(){if("undefined"!==typeof window){var t=window.location.search,e=new URLSearchParams(t).get("uid"),r=!1;l("string"===typeof e?e:void 0),window.addEventListener("message",function(){var t=O(L.mark((function t(e){var o,i,c,u,l,s,p,h,v,g;return L.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((null==e||null==(o=e.data)?void 0:o.event)===S){r=!0;try{null!=e&&null!=(i=e.data)&&i.context?(l=null==e||null==(c=e.data)?void 0:c.context,s=null==e||null==(u=e.data)?void 0:u.value,p=l.documentId,h=l.organizationId,v=l.schemaId,g=l.token,n({organizationId:h,documentId:p,schemaId:v,token:g}),f||k||a(s)):console.warn("@caisy/ui-extension-react got no context, falling back to normal react state without persistance")}catch(y){console.warn("@caisy/ui-extension-react catched an error, falling back to normal react state without persistance"),console.log(" invalid event ",e),console.log(" invalid event err ",y)}f||k||(k=!0,d(!0))}case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),window.parent.postMessage({event:_,uid:e},"*");var o=function(t){p.push(setTimeout((function(){r||window.parent.postMessage({event:_,uid:e},"*")}),t))};o(800),o(1500),o(2200),p.push(setTimeout((function(){r||console.error("THE EXTENSION DID NOT GET ANY EVENT \" window.addEventListener('message', .... \", this can be caused by a chrome extension maybe. Try in incognito browser as well.")}),3e3))}return function(){p.map((function(t){clearTimeout(t)}))}}),[]),{setValue:function(t){"undefined"!==typeof window&&(window.parent.postMessage({event:S,uid:null!=u?u:null,value:t},"*"),a(t))},loaded:f,value:i,context:e}}(),i=n.value,a=n.setValue,u=Z(o.useState(null),2),s=u[0],d=u[1],h=Z(o.useState([]),2),g=h[0],y=h[1];o.useEffect((function(){i&&0!==i.length&&0===g.length&&"<invalid Value>"!==i&&y(i)}),[i]);var w=function(t){return g.findIndex((function(e){return e.id===t.id}))},m=function(t){return-1!==w(t)},x=function(t){return t.every((function(t){return m(t)}))},j=function(t){var e=w(t),n=g.slice();-1===e?n.push({name:t.name,id:t.id}):n.splice(e,1),y(n),a(n.map((function(t){return{name:t.name,id:t.id}})))},E=function(t){var e=g.slice();t.some((function(t){return m(t)}))?x(t)?e=g.filter((function(e){return-1===t.findIndex((function(t){return t.id===e.id}))})):t.forEach((function(t){m(t)||e.push(t)})):e=e.concat(t),y(e),a(e.map((function(t){return{name:t.name,id:t.id}})))};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c,{onClick:function(t){t.stopPropagation(),d(null)},children:e.tagLabels&&e.tagLabels.map((function(t){return(0,r.jsxs)(l,{children:[(0,r.jsx)(f,{children:t.name}),(0,r.jsx)(p,{children:t.categories&&t.categories.map((function(t){var e,n=(null===t||void 0===t?void 0:t.tags)&&(null===(e=g.filter((function(e){return!!t.tags.find((function(t){return t.id==e.id}))})))||void 0===e?void 0:e.length);return(0,r.jsxs)(v,{onClick:function(e){return function(t,e){t.stopPropagation(),d(s&&s===e?null:e)}(e,t.id)},children:[t.name,n?(0,r.jsx)(T,{children:(0,r.jsx)(I.Badge,{value:"".concat(n),position:I.BadgePosition.TopRight})}):null,(0,r.jsx)(b,{onSelectAll:E,selected:m,allSelected:x,onSelectTag:j,tags:t.tags,visible:s===t.id})]},t.name)}))})]},t.id)}))}),g&&g.length>0?(0,r.jsx)(C,{children:g.map((function(t){return t?(0,r.jsx)(v,{children:t.name},t.id):null}))}):null,(0,r.jsx)(I.Spacer,{bronze:48})]})},M=!0}},function(t){t.O(0,[216,571,774,888,179],(function(){return e=73391,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
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.