PageSourceSearch

https://zedek.ai/_next/static/chunks/1061-9f180cf6b42ae861.js?dpl=dpl_Cekp9eeuh1LKn8MYiKEaXvoZv82n

js zedek.ai collected 2026-10-05 13:20:49 UTC 18,449 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1061],{81061:(e,t,n)=>{n.d(t,{X6:()=>x,pn:()=>S,r8:()=>P,yg:()=>D});var r=n(12115),o=(e=>(e[e.header=0]="header",e[e.body=1]="body",e))(o||{}),i=n(87358);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){!function(e,t,n){var r;(t="symbol"==typeof(r=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(){u=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function f(t,n,r,i){var a,c,u=Object.create((n&&n.prototype instanceof y?n:y).prototype);return o(u,"_invoke",{value:(a=new P(i||[]),c=h,function(n,o){if(c===d)throw Error("Generator is already running");if(c===p){if("throw"===n)throw o;return{value:e,done:!0}}for(a.method=n,a.arg=o;;){var i=a.delegate;if(i){var u=function t(n,r){var o=r.method,i=n.iterator[o];if(i===e)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=e,t(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),v;var a=g(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var c=a.arg;return c?c.done?(r[n.resultName]=c.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):c:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}(i,a);if(u){if(u===v)continue;return u}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(c===h)throw c=p,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);c=d;var s=g(t,r,a);if("normal"===s.type){if(c=a.done?p:"suspendedYield",s.arg===v)continue;return{value:s.arg,done:a.done}}"throw"===s.type&&(c=p,a.method="throw",a.arg=s.arg)}})}),u}function g(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",d="executing",p="completed",v={};function y(){}function m(){}function k(){}var b={};l(b,a,function(){return this});var T=Object.getPrototypeOf,w=T&&T(T(R([])));w&&w!==n&&r.call(w,a)&&(b=w);var E=k.prototype=y.prototype=Object.create(b);function O(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function _(e,t){var n;o(this,"_invoke",{value:function(o,i){function a(){return new t(function(n,a){!function n(o,i,a,c){var u=g(e[o],e,i);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==typeof l&&r.call(l,"__await")?t.resolve(l.__await).then(function(e){n("next",e,a,c)},function(e){n("throw",e,a,c)}):t.resolve(l).then(function(e){s.value=e,a(s)},function(e){return n("throw",e,a,c)})}c(u.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}})}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=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 i.next=i}}throw TypeError(typeof t+" is not iterable")}return m.prototype=k,o(E,"constructor",{value:k,configurable:!0}),o(k,"constructor",{value:m,configurable:!0}),m.displayName=l(k,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,k):(e.__proto__=k,l(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},t.awrap=function(e){return{__await:e}},O(_.prototype),l(_.prototype,c,function(){return this}),t.AsyncIterator=_,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
1ise);var a=new _(f(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},O(E),l(E,s,"Generator"),l(E,a,function(){return this}),l(E,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=R,P.prototype={constructor:P,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(I),!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 e=this.tryEntries[0].completion;if("throw"===e.type)throw e.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"),s=r.call(a,"finallyLoc");if(u&&s){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(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){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"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function s(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,c,"next",e)}function c(e){s(i,r,o,a,c,"throw",e)}a(void 0)})}}function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(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,o,i,a,c=[],u=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(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(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e){if(null!=e)return(e=e.trim()).endsWith("/")&&(e=e.slice(0,-1)),e}var p=d(i.env.KINDE_SITE_URL),v=d(i.env.NEXT_PUBLIC_KINDE_AUTH_API_PATH)||d(i.env.KINDE_AUTH_API_PATH)||"/api/auth",y=d(i.env.KINDE_POST_LOGIN_REDIRECT_URL)||d(i.env.KINDE_POST_LOGIN_URL_REDIRECT_URL),m=d(i.env.KINDE_POST_LOGOUT_REDIRECT_URL),k=d(i.env.KINDE_ISSUER_URL),b=i.env.KINDE_CLIENT_ID,T=i.env.KINDE_CLIENT_SECRET,w=i.env.KINDE_AUDIENCE,E=d(i.env.KINDE_COOKIE_DOMAIN),O=i.env.KINDE_SCOPE||"openid profile email offline",_={isDebugMode:"true"===i.env.KINDE_DEBUG_MODE,apiPath:v,initialState:{accessToken:null,idToken:null,isAuthenticated:!1,isLoading:!0,organization:null,permissions:[],user:null,userOrganizations:[],getAccessToken:function(){return null},getBooleanFlag:function(){return null},getClaim:function(){return null},getFlag:function(){return null},getIdToken:function(){return null},getIntegerFlag:function(){return null},getOrganization:function(){return null},getPermission:function(){return null},getPermissions:function(){return[]},getStringFlag:function(){return null},getToken:function(){return null},getUser:function(){return null},getUserOrganizations:function(){return null},refreshData:function(){return null}},SESSION_PREFIX:"pkce-verifier",redirectURL:p,postLoginRedirectURL:y,issuerURL:k,clientID:b,clientSecret:T,postLogoutRedirectURL:m,audience:w?w.split(" "):"",cookieDomain:E,responseType:"code",codeChallengeMethod:"S256",redirectRoutes:{callback:"".concat(v,"/kinde_callback")},issuerRoutes:{logout:"/logout",login:"/oauth2/auth",register:"/oauth2/auth",token:"/oauth2/token",profile:"/oauth2/v2/user_profile"},clientOptions:{audience:w?w.split(" "):"",authDomain:k||"",clientId:b||"",clientSecret:T||"",logoutRedirectURL:m||"",redirectURL:"".concat(p,"/api/auth/kinde_callback"),frameworkVersion:"2.4.6",scope:O},grantType:"AUTHORIZATION_CODE"},L={s:"string",i:"integer",b:"boolean"},I=(0,r.createContext)(c({},_.initialState)),P=function(){return(0,r.useContext)(I)},R=function(){var e=l(u().mark(function e(t){var n;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t);case 3:n=e.sent,e.next=9;break;case 6:throw e.prev=6,e.t0=e.catch(0),Error("Failed to fetch token");case 9:if(!n.ok){e.next=15;break}return e.next=12,n.json();case 12:return e.abrupt("return",e.sent);case 15:if(401!==n.status){e.next=17;break}throw Error("Failed to fetch token");case 17:case"end":return e.stop()}},e,null,[[0,6]])}));return function(t){return e.apply(this,arguments)}}(),x=function(e){var t=e.children,n="".concat(_.apiPath,"/setup"),o=(0,r.useCallback)(function(){i()},["checkSession"]),i=(0,r.useCallback)(l(u().mark(function e(){var t,r,i,a,s,l,g,h,d,p,v,y,m,b,T,w,E,O,I,P,x,D,j,S,A;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,R(n);case 3:if(null!=(t=e.sent)){e.next=6;break}return e.abrupt("return");case 6:r=t.accessToken,i=t.accessTokenEncoded,a=t.featureFlags,s=t.idToken,l=t.organization,g=t.permissions,h=t.user,d=t.userOrganizations,p=function(){return r},v=function(){return i},y=function(){return i},m=function(){return i},b=function(){return s},T=function(){return k},w=function(){return g},E=function(){return l},O=function(){return h},I=function(){return d},P=function(e){var n="access_token"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"access_token")?t.accessToken:t.idToken;return n?{name:e,value:n[e]}:null},x=function(e,t,n){var r=a&&a[e]?a[e]:{};if(0===Object.keys(r).length&&null==t)throw Error("Flag ".concat(e," was not found, and no default value has been provided"));if(n&&r.t&&n!==r.t)throw Error("Flag ".concat(e," is of type ").concat(L[r.t]," - requested type ").concat(L[n]));return{code:e,type:L[r.t||n],value:null==r.v?t:r.v,is_default:null==r.v,defaultValue:t}},D=function(e,t){try{return x(e,t,"b").value}catch(e){_.isDebugMode&&console.error(e)}},j=function(e,t){try{return x(e,t,"s").value}catch(e){_.isDebugMode&&console.error(e)}},S=function(e,t){try{return x(e,t,"i").value}catch(e){_.isDebugMode&&console.error(e)}},A=function(e){return{isGranted:g.permissions.some(function(t){return t===e}),orgCode:l.orgCode}},f(function(e){return c(c({},e),{},{accessToken:r,accessTokenEncoded:i,accessTokenRaw:i,idToken:s,idTokenRaw:k,idTokenEncoded:k,isLoading:!1,organization:l,permissions:g,user:h,userOrganizations:d,getAccessToken:p,getAccessTokenRaw:v,getAccessTokenEncoded:y,getBooleanFlag:D,getClaim:P,getFlag:x,getIdToken:b,getIdTokenRaw:T,getIntegerFlag:S,getOrganization:E,getPermission:A,getPermissions:w,getStringFlag:j,getToken:m,getUser:O,getUserOrganizations:I,refreshData:o})}),e.next=30;break;case 26:e.prev=26,e.t0=e.catch(0),_.isDebugMode&&console.error(e.t0),f(function(t){return c(c({},t),{},{isLoading:!1,error:e.t0})});case 30:case"end":return e.stop()}},e,null,[[0,26]])})),[n]),a=g((0,r.useState)(c({},_.initialState)),2),s=a[0],f=a[1];(0,r.useEffect)(function(){var e,t=(e=l(u().mark(function e(){return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i();case 2:f(function(e){return c(c({},e),{},{isLoading:!1})});case 3:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)});s.user||t()},[s.user]);var h=s.user,d=s.accessToken,p=s.accessTokenRaw,v=s.accessTokenEncoded,y=s.idToken,m=s.idTokenEncoded,k=s.idTokenRaw,b=s.getAccessToken,T=s.getAccessTokenRaw,w=s.getIdTokenRaw,E=s.getToken,O=s.getClaim,P=s.getFlag,x=s.getIdToken,D=s.getBooleanFlag,j=s.getStringFlag,S=s.getIntegerFlag,A=s.getOrganization,N=s.getPermission,U=s.getPermissions,F=s.getUser,C=s.getUserOrganizations,z=s.permissions,K=s.organization,G=s.userOrganizations,M=s.error,H=s.isLoading;return r.createElement(I.Provider,{value:{user:h,error:M,accessToken:d,idToken:y,accessTokenEncoded:v,accessTokenRaw:p,idTokenEncoded:m,idToken
1Raw:k,getAccessToken:b,getAccessTokenRaw:T,getToken:E,getClaim:O,getFlag:P,getIdToken:x,getIdTokenRaw:w,getBooleanFlag:D,getStringFlag:j,getIntegerFlag:S,getOrganization:A,getPermission:N,getPermissions:U,getUser:F,getUserOrganizations:C,permissions:z,organization:K,userOrganizations:G,isLoading:H,isAuthenticated:!!h,refreshData:o}},t)},D=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.env.NEXT_PUBLIC_KINDE_AUTH_API_PATH||i.env.KINDE_AUTH_API_PATH||"/api/auth",n=g((0,r.useState)({accessToken:null,accessTokenRaw:null,error:null,featureFlags:[],idToken:null,idTokenRaw:null,isAuthenticated:!1,isLoading:!0,organization:null,permissions:[],user:null,userOrganizations:null}),2),o=n[0],a=n[1];(0,r.useEffect)(function(){s()},[]);var s=(e=l(u().mark(function e(){var n,r,o;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="".concat(t,"/setup"),e.next=3,fetch(n);case 3:return r=e.sent,e.next=6,r.json();case 6:o=e.sent,200==r.status&&a(c({},o)),r.ok?a(c(c({},o),{},{isLoading:!1})):a(function(e){return c(c({},e),{},{isLoading:!1,error:r.statusText||"An error occurred"})});case 9:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)}),f=function(e,t,n){var r=o.featureFlags||[],i=r&&r[e]?r[e]:{};if(i=={}&&null==t)throw Error("Flag ".concat(e," was not found, and no default value has been provided"));if(n&&i.t&&n!==i.t)throw Error("Flag ".concat(e," is of type ").concat(L[i.t]," - requested type ").concat(L[n]));return{code:e,type:L[i.t||n],value:null==i.v?t:i.v,is_default:null==i.v,defaultValue:t}};return c(c({},o),{},{isAuthenticated:!!o.user,getUser:function(){return o.user},getIdTokenRaw:function(){return o.idTokenRaw},getPermission:function(e){var t,n;return o.permissions?{isGranted:null===(t=o.permissions.permissions)||void 0===t?void 0:t.some(function(t){return t===e}),orgCode:null===(n=o.organization)||void 0===n?void 0:n.orgCode}:{isGranted:!1,orgCode:null}},getBooleanFlag:function(e,t){try{return f(e,t,"b").value}catch(e){_.isDebugMode&&console.error(e)}},getIntegerFlag:function(e,t){try{return f(e,t,"i").value}catch(e){_.isDebugMode&&console.error(e)}},getFlag:f,getStringFlag:function(e,t){try{return f(e,t,"s").value}catch(e){_.isDebugMode&&console.error(e)}},getClaim:function(e){var t="access_token"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"access_token")?o.accessToken:o.idToken;return t?{name:e,value:t[e]}:null},getAccessToken:function(){return o.accessToken},getToken:function(){return o.accessTokenEncoded},getAccessTokenRaw:function(){return o.accessTokenEncoded},getIdToken:function(){return o.idToken},getOrganization:function(){return o.organization},getPermissions:function(){return o.permissions},getUserOrganizations:function(){return o.userOrganizations},refreshData:s})},j=["children","postLogoutRedirectURL"];function S(e){var t=e.children,n=e.postLogoutRedirectURL,o=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,j);return r.createElement("a",f({href:"".concat(_.apiPath,"/logout").concat(n?"?post_logout_redirect_url=".concat(n):"","\n      ")},o),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.