1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7984],{64849:function(t,n,e){"use strict";e.r(n),e.d(n,{__N_SSP:function(){return Z}});var r=e(50029),o=e(87794),c=e.n(o),i=e(36456),a=e(63144),s=e.n(a),u=e(11163),l=e(9008),p=e.n(l),f=e(7775),d=e(79697),g=e(59359),m=e(67294),h=e(5152),v=e.n(h),w=e(68683),y=e(53670),x=e(45014),C=e(18262),O=e(51944),S=e(85893),_=v()((function(){return Promise.all([e.e(5445),e.e(4617),e.e(2013),e.e(9866),e.e(8523),e.e(6158),e.e(1228),e.e(9613),e.e(6556),e.e(4090),e.e(4980),e.e(3874),e.e(994),e.e(2876),e.e(1086),e.e(9901),e.e(9638),e.e(9357),e.e(3183),e.e(653),e.e(1276),e.e(8114),e.e(6034),e.e(724),e.e(2515),e.e(4854),e.e(287),e.e(1935),e.e(4593),e.e(4778),e.e(6681),e.e(6727),e.e(4169),e.e(9198),e.e(8886),e.e(6073),e.e(9109),e.e(1019),e.e(6116),e.e(1611),e.e(3e3),e.e(7467),e.e(6109),e.e(6059),e.e(8949),e.e(7953)]).then(e.bind(e,972))}),{ssr:!1,loadableGenerated:{webpack:function(){return[972]}}}),Z=!0;n.default=(0,i.$j)((function(t){return{data:t}}))((function(t){var n,e,o,i,a=(0,u.useRouter)(),l=(0,C.Z)(t.host),h=(0,f.Z)(t.platformConfigs,{key:"PLATFORM_COLOR"}),v=(0,f.Z)(t.platformConfigs,{key:"PLATFORM_ICON"}),Z=(0,m.useState)(t.site),b=Z[0],E=Z[1];(0,m.useEffect)((function(){E(t.site)}),[t.site]);var k=function(){var n=(0,r.Z)(c().mark((function n(){var e,r;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,s()("".concat((0,w.Z)(t.host),"/api/v1/sites/").concat((0,y.Xc)(t.host)),{headers:{Authorization:(0,O.nt)()}});case 2:return e=n.sent,n.next=5,e.json();case 5:r=n.sent,E(r);case 7:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(x.Ko,{colors:{primary:h&&!(0,d.Z)(h.value)?h.value:"#545CD8"}}),(0,S.jsxs)(p(),{children:[(0,S.jsx)("title",{children:"Admin Panel"}),(0,S.jsx)("link",{rel:"icon",href:g.tq?null===(n=t.siteSettings)||void 0===n||null===(e=n.mobile_favicon)||void 0===e?void 0:e.url:null===(o=t.siteSettings)||void 0===o||null===(i=o.site_favicon)||void 0===i?void 0:i.url})]}),(0,S.jsx)(_,{reduxData:l,site:b,getSite:k,selectedPageID:a.query.id,siteSettings:t.siteSettings,logoConfig:v&&!(0,d.Z)(v.value)?v:{value:""}})]})}))},68683:function(t,n){"use strict";n.Z=function(t){return"https://ark-api.aciso-suite.com"}},45014:function(t,n,e){"use strict";e.d(n,{Fq:function(){return v},Ko:function(){return m},S1:function(){return h}});var r=e(17674),o=(e(67294),e(6557)),c=e.n(o),i=e(35161),a=e.n(i),s=e(92742),u=e.n(s),l=e(36561),p=e(85893),f=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c();return function(e,r){return"--".concat(r).concat(t?"-"+t:"",": ").concat(n(e),";")}},d=function(t,n,e){var r,o,c=Number(u()(t))/255,i=Number(u()(n))/255,a=Number(u()(e))/255,s=Math.max(c,i,a),l=Math.min(c,i,a),p=(s+l)/2;if(s===l)r=o=0;else{var f=s-l;switch(o=p>.5?f/(2-s-l):f/(s+l),s){case c:r=(i-a)/f+(i<a?6:0);break;case i:r=(a-c)/f+2;break;case a:r=(c-i)/f+4}r/=6}return[r=Math.round(360*r),o=Math.round(100*o),p=Math.round(100*p)]},g=function(t){if("#"===t.slice(0,1)){if(4===t.length){var n=parseInt(t.substr(1,1)+t.substr(1,1),16),e=parseInt(t.substr(2,1)+t.substr(2,1),16),o=parseInt(t.substr(3,1)+t.substr(3,1),16);return d(n,e,o)}var c=parseInt(t.substr(1,2),16),i=parseInt(t.substr(3,2),16),a=parseInt(t.substr(5,2),16);return d(c,i,a)}if("rgba"===t.slice(0,4)){var s=t.slice(5,-1).split(","),u=(0,r.Z)(s,3),l=u[0],p=u[1],f=u[2];return d(l,p,f).slice(0,3)}if("rgb"===t.slice(0,3)){var g=t.slice(4,-1).split(","),m=(0,r.Z)(g,3),h=m[0],v=m[1],w=m[2];return d(h,v,w)}return"hsla"===t.slice(0,4)?t.slice(5,-1).split(",").slice(0,3):"hsl"===t.slice(0,3)?t.slice(4,-1).split(","):(console.error("Named color values are not supported in the config. Convert it manually using this chart: https://htmlcolorcodes.com/color-names/"),[0,0,16])},m=function(t){var n=t.colors;return n?(0,p.jsxs)("style",{children:[":root {",n&&a()(n,f("",(function(t){var n=g(t);return"hsl(".concat(n[0],", ").concat(n[1],"%, ").concat(n[2],"%) !important")}))),n&&a()(n,f("h",(function(t){return g(t)[0]}))),n&&a()(n,f("s",(function(t){var n=g(t);return"".concat(n[1],"%")}))),n&&a()(n,f("l",(function(t){var n=g(t);return"".concat(n[2],"%")})))]}):null},h=function t(n,e,r,o){if(n){var c=l.Z.cloneDeep(n);if("string"===typeof n){if(n.indexOf("primaryColor")>-1||n.indexOf("secondaryColor")>-1){var i=l.Z.filter(c.match(/style="+[^"]+"/g),(function(t){return-1!==t.indexOf("primaryColor")||-1!==t.indexOf("secondaryColor")}));i.map((function(t){var n=l.Z.cloneDeep(t),o=t.match(/primaryColor:+[^\]]+]/g)?t.match(/primaryColor:+[^\]]+]/g)[0].replace("primaryColor:[","").replace("]","").split(","):[],c=t.match(/secondaryColor:+[^\]]+]/g)?t.match(/secondaryColor:+[^\]]+]/g)[0].replace("secondaryColor:[","").replace("]","").split(","):[];return o.map((function(t){var r=new RegExp("".concat(t,":+[^;]+;"),"g");n=n.replace(r,"".concat(t,":").concat(e,";"))})),c.map((function(t){var e=new RegExp("".concat(t,":+[^;]+;"),"g");n=n.replace(e,"".concat(t,":").concat(r,";"))})),n})).map((function(t,n){c=c.replace(i[n],t)}))}return c}return n.primaryColor&&c.primaryColor&&c.primaryColor.map((function(t){c[t]=c[t]?c[t].replace(/#[^ ]*\b/g,e):e})),n.secondaryColor&&c.secondaryColor&&c.secondaryColor.map((function(t){c[t]=c[t]?c[t].replace(/#[^ ]*\b/g,r):r})),Object.keys(c).map((function(n){c[n]&&"string"!==typeof c[n]&&"primaryColor"!==n&&"secondaryColor"!==n&&l.Z.findIndex(Object.keys(c[n]),(function(t){return"primaryColor"===t.toString()||"secondaryColor"===t.toString()}))>-1&&(c[n]=t(c[n],e,r,!1))})),c}return o?"":{}},v=function(t,n,e){var r=l.Z.cloneDeep(t);if(t){var o=r.split("}");o.map((function(t,c){var i=l.Z.cloneDeep(c===o.length-1?t:t+"}"),a=l.Z.cloneDeep(i.match(/\{[^}]+\}/g)),s=l.Z.cloneDeep(a);if(a&&a.length>
10&&(a[0].indexOf("primaryColor")>-1||a[0].indexOf("secondaryColor")>-1)){var u=t.match(/primaryColor:+[^\]]+]/g)?t.match(/primaryColor:+[^\]]+]/g)[0].replace("primaryColor:[","").replace("]","").split(","):[],p=t.match(/secondaryColor:+[^\]]+]/g)?t.match(/secondaryColor:+[^\]]+]/g)[0].replace("secondaryColor:[","").replace("]","").split(","):[];u.map((function(t){var e=new RegExp("".concat(t,":+[^;]+;"),"g");a[0]=a[0].replace(/ /g,"").replace(e,"".concat(t,":").concat(n," !important;"))})),p.map((function(t){var n=new RegExp("".concat(t,":+[^;]+;"),"g");a[0]=a[0].replace(/ /g,"").replace(n,"".concat(t,":").concat(e," !important;"))})),r=r.replace(i,i.replace(s[0],a[0]))}}))}return t?r:""}},51944:function(t,n,e){"use strict";e.d(n,{gN:function(){return c},nt:function(){return o}});var r=e(44986),o=function(){return e(81354).AES.encrypt((0,r.i)({system:"project-ark"}),'wH_u%%P5~Sl?:J5A0e^~"4sCmgn@lD>*').toString()},c=function(t){return e(81354).AES.encrypt(t.toString(),'wH_u%%P5~Sl?:J5A0e^~"4sCmgn@lD>*').toString()}},53670:function(t,n,e){"use strict";e.d(n,{Kv:function(){return a},Xc:function(){return c},gM:function(){return i},ud:function(){return o}});var r=e(68683),o=function(t){return-1!==t.indexOf("localhost")||-1!==t.indexOf("127.0.0.1")?"https://kws.jaramdo.de":"https://".concat(t)},c=function(t){return-1!==t.indexOf("localhost")||-1!==t.indexOf("127.0.0.1")?"kws.jaramdo.de":"".concat(t)},i=function(t){(0,r.Z)("").indexOf("staging")>-1?window.location.href="https://cockpit-staging.proof-point-suite.com/#/login/".concat(window.localStorage.getItem("ARK_SITE_TOKEN"),"/").concat(t):(0,r.Z)("").indexOf("tennis")>-1?window.location.href="https://adminportal.tennis-suite.com/#/login/".concat(window.localStorage.getItem("ARK_SITE_TOKEN"),"/").concat(t):(0,r.Z)("").indexOf("aciso")>-1?window.location.href="https://adminportal.aciso-suite.com/#/login/".concat(window.localStorage.getItem("ARK_SITE_TOKEN"),"/").concat(t):(0,r.Z)("").indexOf("proof-point")>-1?window.location.href="https://adminportal.proof-point-suite.com/#/login/".concat(window.localStorage.getItem("ARK_SITE_TOKEN"),"/").concat(t):(0,r.Z)("").indexOf("loudspeaker-forward-school")>-1?window.location.href="https://cockpit.loudspeaker-forward-school.com/#/login/".concat(window.localStorage.getItem("ARK_SITE_TOKEN"),"/").concat(t):(0,r.Z)("").indexOf("conida-demo")>-1?window.location.href="https://cockpit.conida-demo.com/#/login/".concat(window.localStorage.getItem("ARK_SITE_TOKEN"),"/").concat(t):window.location.href="https://cockpit-staging.proof-point-suite.com/#/login/".concat(window.localStorage.getItem("ARK_SITE_TOKEN"),"/").concat(t)},a=function(){return(0,r.Z)("").indexOf("staging")>-1?"https://cockpit-staging2.proof-point-suite.com":(0,r.Z)("").indexOf("aciso")>-1?"https://adminportal.aciso-suite.com":(0,r.Z)("").indexOf("proof-point")>-1?"https://adminportal.proof-point-suite.com":"https://cockpit-staging.proof-point-suite.com"}},44986:function(t,n,e){"use strict";e.d(n,{i:function(){return o}});var r=e(48764).Buffer,o=function(t){var n=JSON.stringify(t);return r.from(n).toString("base64")}},18262:function(t,n,e){"use strict";var r=e(50029),o=e(87794),c=e.n(o),i=e(67294),a=e(45522),s=e(9669),u=e.n(s),l=e(68683);n.Z=function(t){var n=(0,i.useState)(null),e=n[0],o=n[1],s=(0,i.useState)(!1),p=s[0],f=s[1];(0,i.useEffect)((function(){var t=window.localStorage.getItem("ARK_SITE_TOKEN");o(t),f(!0)}),[]);var d=function(){var t=(0,r.Z)(c().mark((function t(n){var r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,u().get(n,{headers:{"Access-Control-Allow-Origin":"*",Authorization:"Bearer ".concat(e),"Accept-Language":""}});case 2:return r=t.sent,t.abrupt("return",r.data);case 4:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),g=(0,a.ZP)(p?"".concat((0,l.Z)(t),"/api/v1/user_settings"):null,d),m=g.data;g.error;return m}},63144:function(t){"use strict";var n=self.fetch.bind(self);t.exports=n,t.exports.default=t.exports},82931:function(t,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/page-editor/[id]",function(){return e(64849)}])},11163:function(t,n,e){t.exports=e(69898)},42480:function(){}},function(t){t.O(0,[6188,8764,7820,9669,432,9359,7914,5525,9774,2888,179],(function(){return n=82931,t(t.s=n);var n}));var n=t.O();_N_E=n}]);
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.