@tnf-dev/react 1.0.1 → 1.0.3-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/cjs/components/inbox/empty.cjs +1 -1
  2. package/dist/cjs/components/inbox/inbox.cjs +1 -1
  3. package/dist/cjs/components/inbox/inbox.d.cts +1 -1
  4. package/dist/cjs/components/inbox/index.cjs +1 -1
  5. package/dist/cjs/components/inbox/index.d.cts +1 -1
  6. package/dist/cjs/components/inbox/loader.cjs +1 -1
  7. package/dist/cjs/components/inbox/notification-header.cjs +1 -1
  8. package/dist/cjs/components/inbox/notification-item/actions.d.cts +1 -1
  9. package/dist/cjs/components/inbox/notification-item/index.d.cts +1 -1
  10. package/dist/cjs/components/index.cjs +1 -1
  11. package/dist/cjs/components/index.d.cts +1 -1
  12. package/dist/cjs/contexts/TeknifyProvider.cjs +1 -1
  13. package/dist/cjs/contexts/TeknifyProvider.d.cts +1 -1
  14. package/dist/cjs/contexts/index.cjs +1 -1
  15. package/dist/cjs/contexts/index.d.cts +1 -1
  16. package/dist/cjs/dto/index.d.cts +1 -1
  17. package/dist/cjs/dto/notifications/index.d.cts +1 -1
  18. package/dist/cjs/dto/notifications/notification.interface.d.cts +1 -1
  19. package/dist/cjs/hooks/index.cjs +1 -1
  20. package/dist/cjs/hooks/index.d.cts +1 -1
  21. package/dist/cjs/hooks/useNotifications.cjs +1 -1
  22. package/dist/cjs/hooks/useNotifications.d.cts +1 -1
  23. package/dist/cjs/index.cjs +1 -1
  24. package/dist/cjs/index.d.cts +2 -2
  25. package/dist/esm/components/inbox/empty.js +1 -1
  26. package/dist/esm/components/inbox/inbox.d.ts +1 -1
  27. package/dist/esm/components/inbox/inbox.js +1 -1
  28. package/dist/esm/components/inbox/index.d.ts +1 -1
  29. package/dist/esm/components/inbox/index.js +1 -1
  30. package/dist/esm/components/inbox/loader.js +1 -1
  31. package/dist/esm/components/inbox/notification-header.js +1 -1
  32. package/dist/esm/components/inbox/notification-item/actions.d.ts +1 -1
  33. package/dist/esm/components/inbox/notification-item/index.d.ts +1 -1
  34. package/dist/esm/components/index.d.ts +1 -1
  35. package/dist/esm/components/index.js +1 -1
  36. package/dist/esm/contexts/TeknifyProvider.d.ts +1 -1
  37. package/dist/esm/contexts/TeknifyProvider.js +1 -1
  38. package/dist/esm/contexts/index.d.ts +1 -1
  39. package/dist/esm/contexts/index.js +1 -1
  40. package/dist/esm/dto/index.d.ts +1 -1
  41. package/dist/esm/dto/notifications/index.d.ts +1 -1
  42. package/dist/esm/dto/notifications/notification.interface.d.ts +1 -1
  43. package/dist/esm/hooks/index.d.ts +1 -1
  44. package/dist/esm/hooks/index.js +1 -1
  45. package/dist/esm/hooks/useNotifications.d.ts +1 -1
  46. package/dist/esm/hooks/useNotifications.js +1 -1
  47. package/dist/esm/index.d.ts +2 -2
  48. package/dist/esm/index.js +1 -1
  49. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { FC, PropsWithChildren } from 'react';
3
- import { TeknifyClient } from '@teknify/js';
3
+ import { TeknifyClient } from '@tnf-dev/js';
4
4
  import { TeknifyLocale } from '../types/locale.cjs';
5
5
 
6
6
  interface NotekProviderProps extends PropsWithChildren {
@@ -1,6 +1,6 @@
1
1
  "use client"
2
2
  "use strict";var Zn=Object.create;var Oe=Object.defineProperty;var Qn=Object.getOwnPropertyDescriptor;var ei=Object.getOwnPropertyNames;var ri=Object.getPrototypeOf,ti=Object.prototype.hasOwnProperty;var Y=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports),ni=(t,r)=>{for(var n in r)Oe(t,n,{get:r[n],enumerable:!0})},tt=(t,r,n,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of ei(r))!ti.call(t,i)&&i!==n&&Oe(t,i,{get:()=>r[i],enumerable:!(e=Qn(r,i))||e.enumerable});return t};var se=(t,r,n)=>(n=t!=null?Zn(ri(t)):{},tt(r||!t||!t.__esModule?Oe(n,"default",{value:t,enumerable:!0}):n,t)),ii=t=>tt(Oe({},"__esModule",{value:!0}),t);var st=Y(A=>{"use strict";var $=typeof Symbol=="function"&&Symbol.for,cr=$?Symbol.for("react.element"):60103,dr=$?Symbol.for("react.portal"):60106,Ce=$?Symbol.for("react.fragment"):60107,Ae=$?Symbol.for("react.strict_mode"):60108,_e=$?Symbol.for("react.profiler"):60114,je=$?Symbol.for("react.provider"):60109,Ne=$?Symbol.for("react.context"):60110,hr=$?Symbol.for("react.async_mode"):60111,Ie=$?Symbol.for("react.concurrent_mode"):60111,Me=$?Symbol.for("react.forward_ref"):60112,De=$?Symbol.for("react.suspense"):60113,ai=$?Symbol.for("react.suspense_list"):60120,Ve=$?Symbol.for("react.memo"):60115,$e=$?Symbol.for("react.lazy"):60116,si=$?Symbol.for("react.block"):60121,ui=$?Symbol.for("react.fundamental"):60117,fi=$?Symbol.for("react.responder"):60118,li=$?Symbol.for("react.scope"):60119;function F(t){if(typeof t=="object"&&t!==null){var r=t.$$typeof;switch(r){case cr:switch(t=t.type,t){case hr:case Ie:case Ce:case _e:case Ae:case De:return t;default:switch(t=t&&t.$$typeof,t){case Ne:case Me:case $e:case Ve:case je:return t;default:return r}}case dr:return r}}}function at(t){return F(t)===Ie}A.AsyncMode=hr;A.ConcurrentMode=Ie;A.ContextConsumer=Ne;A.ContextProvider=je;A.Element=cr;A.ForwardRef=Me;A.Fragment=Ce;A.Lazy=$e;A.Memo=Ve;A.Portal=dr;A.Profiler=_e;A.StrictMode=Ae;A.Suspense=De;A.isAsyncMode=function(t){return at(t)||F(t)===hr};A.isConcurrentMode=at;A.isContextConsumer=function(t){return F(t)===Ne};A.isContextProvider=function(t){return F(t)===je};A.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===cr};A.isForwardRef=function(t){return F(t)===Me};A.isFragment=function(t){return F(t)===Ce};A.isLazy=function(t){return F(t)===$e};A.isMemo=function(t){return F(t)===Ve};A.isPortal=function(t){return F(t)===dr};A.isProfiler=function(t){return F(t)===_e};A.isStrictMode=function(t){return F(t)===Ae};A.isSuspense=function(t){return F(t)===De};A.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Ce||t===Ie||t===_e||t===Ae||t===De||t===ai||typeof t=="object"&&t!==null&&(t.$$typeof===$e||t.$$typeof===Ve||t.$$typeof===je||t.$$typeof===Ne||t.$$typeof===Me||t.$$typeof===ui||t.$$typeof===fi||t.$$typeof===li||t.$$typeof===si)};A.typeOf=F});var ut=Y(_=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,e=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,v=t?Symbol.for("react.suspense"):60113,N=t?Symbol.for("react.suspense_list"):60120,S=t?Symbol.for("react.memo"):60115,O=t?Symbol.for("react.lazy"):60116,R=t?Symbol.for("react.block"):60121,V=t?Symbol.for("react.fundamental"):60117,z=t?Symbol.for("react.responder"):60118,I=t?Symbol.for("react.scope"):60119;function L(p){return typeof p=="string"||typeof p=="function"||p===e||p===l||p===o||p===i||p===v||p===N||typeof p=="object"&&p!==null&&(p.$$typeof===O||p.$$typeof===S||p.$$typeof===a||p.$$typeof===s||p.$$typeof===d||p.$$typeof===V||p.$$typeof===z||p.$$typeof===I||p.$$typeof===R)}function D(p){if(typeof p=="object"&&p!==null){var lr=p.$$typeof;switch(lr){case r:var Ee=p.type;switch(Ee){case u:case l:case e:case o:case i:case v:return Ee;default:var rt=Ee&&Ee.$$typeof;switch(rt){case s:case d:case O:case S:case a:return rt;default:return lr}}case n:return lr}}}var q=u,te=l,H=s,sr=a,J=r,ne=d,ur=e,fr=O,c=S,h=n,P=o,x=i,y=v,w=!1;function g(p){return w||(w=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),b(p)||D(p)===u}function b(p){return D(p)===l}function T(p){return D(p)===s}function C(p){return D(p)===a}function E(p){return typeof p=="object"&&p!==null&&p.$$typeof===r}function U(p){return D(p)===d}function W(p){return D(p)===e}function B(p){return D(p)===O}function Gn(p){return D(p)===S}function Hn(p){return D(p)===n}function Kn(p){return D(p)===o}function Bn(p){return D(p)===i}function Xn(p){return D(p)===v}_.AsyncMode=q,_.ConcurrentMode=te,_.ContextConsumer=H,_.ContextProvider=sr,_.Element=J,_.ForwardRef=ne,_.Fragment=ur,_.Lazy=fr,_.Memo=c,_.Portal=h,_.Profiler=P,_.StrictMode=x,_.Suspense=y,_.isAsyncMode=g,_.isConcurrentMode=b,_.isContextConsumer=T,_.isContextProvider=C,_.isElement=E,_.isForwardRef=U,_.isFragment=W,_.isLazy=B,_.isMemo=Gn,_.isPortal=Hn,_.isProfiler=Kn,_.isStrictMode=Bn,_.isSuspense=Xn,_.isValidElementType=L,_.typeOf=D}()});var Le=Y((fs,vr)=>{"use strict";process.env.NODE_ENV==="production"?vr.exports=st():vr.exports=ut()});var yr=Y((ls,vt)=>{"use strict";var pr=Le(),ci={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},di={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},hi={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mr={};mr[pr.ForwardRef]=hi;mr[pr.Memo]=dt;function ft(t){return pr.isMemo(t)?dt:mr[t.$$typeof]||ci}var vi=Object.defineProperty,pi=Object.getOwnPropertyNames,lt=Object.getOwnPropertySymbols,mi=Object.getOwnPropertyDescriptor,yi=Object.getPrototypeOf,ct=Object.prototype;function ht(t,r,n){if(typeof r!="string"){if(ct){var e=yi(r);e&&e!==ct&&ht(t,e,n)}var i=pi(r);lt&&(i=i.concat(lt(r)));for(var o=ft(t),a=ft(r),s=0;s<i.length;++s){var u=i[s];if(!di[u]&&!(n&&n[u])&&!(a&&a[u])&&!(o&&o[u])){var l=mi(r,u);try{vi(t,u,l)}catch{}}}}return t}vt.exports=ht});var yt=Y((ds,mt)=>{"use strict";var pt=Object.getOwnPropertySymbols,xi=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable;function Pi(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function Ri(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var r={},n=0;n<10;n++)r["_"+String.fromCharCode(n)]=n;var e=Object.getOwnPropertyNames(r).map(function(o){return r[o]});if(e.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}mt.exports=Ri()?Object.assign:function(t,r){for(var n,e=Pi(t),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)xi.call(n,a)&&(e[a]=n[a]);if(pt){i=pt(n);for(var s=0;s<i.length;s++)Si.call(n,i[s])&&(e[i[s]]=n[i[s]])}}return e}});var We=Y((hs,gt)=>{"use strict";var wi="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";gt.exports=wi});var gr=Y((vs,bt)=>{"use strict";bt.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var wt=Y((ps,Rt)=>{"use strict";var br=function(){};process.env.NODE_ENV!=="production"&&(xt=We(),ze={},St=gr(),br=function(t){var r="Warning: "+t;typeof console<"u"&&console.error(r);try{throw new Error(r)}catch{}});var xt,ze,St;function Pt(t,r,n,e,i){if(process.env.NODE_ENV!=="production"){for(var o in t)if(St(t,o)){var a;try{if(typeof t[o]!="function"){var s=Error((e||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}a=t[o](r,o,e,n,null,xt)}catch(l){a=l}if(a&&!(a instanceof Error)&&br((e||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof a+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),a instanceof Error&&!(a.message in ze)){ze[a.message]=!0;var u=i?i():"";br("Failed "+n+" type: "+a.message+(u??""))}}}}Pt.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(ze={})};Rt.exports=Pt});var Ot=Y((ms,Et)=>{"use strict";var Ti=Le(),Ei=yt(),ue=We(),xr=gr(),Tt=wt(),fe=function(){};process.env.NODE_ENV!=="production"&&(fe=function(t){var r="Warning: "+t;typeof console<"u"&&console.error(r);try{throw new Error(r)}catch{}});function Ue(){return null}Et.exports=function(t,r){var n=typeof Symbol=="function"&&Symbol.iterator,e="@@iterator";function i(c){var h=c&&(n&&c[n]||c[e]);if(typeof h=="function")return h}var o="<<anonymous>>",a={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:v(),arrayOf:N,element:S(),elementType:O(),instanceOf:R,node:L(),objectOf:z,oneOf:V,oneOfType:I,shape:q,exact:te};function s(c,h){return c===h?c!==0||1/c===1/h:c!==c&&h!==h}function u(c,h){this.message=c,this.data=h&&typeof h=="object"?h:{},this.stack=""}u.prototype=Error.prototype;function l(c){if(process.env.NODE_ENV!=="production")var h={},P=0;function x(w,g,b,T,C,E,U){if(T=T||o,E=E||b,U!==ue){if(r){var W=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw W.name="Invariant Violation",W}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var B=T+":"+b;!h[B]&&P<3&&(fe("You are manually calling a React.PropTypes validation function for the `"+E+"` prop on `"+T+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),h[B]=!0,P++)}}return g[b]==null?w?g[b]===null?new u("The "+C+" `"+E+"` is marked as required "+("in `"+T+"`, but its value is `null`.")):new u("The "+C+" `"+E+"` is marked as required in "+("`"+T+"`, but its value is `undefined`.")):null:c(g,b,T,C,E)}var y=x.bind(null,!1);return y.isRequired=x.bind(null,!0),y}function d(c){function h(P,x,y,w,g,b){var T=P[x],C=J(T);if(C!==c){var E=ne(T);return new u("Invalid "+w+" `"+g+"` of type "+("`"+E+"` supplied to `"+y+"`, expected ")+("`"+c+"`."),{expectedType:c})}return null}return l(h)}function v(){return l(Ue)}function N(c){function h(P,x,y,w,g){if(typeof c!="function")return new u("Property `"+g+"` of component `"+y+"` has invalid PropType notation inside arrayOf.");var b=P[x];if(!Array.isArray(b)){var T=J(b);return new u("Invalid "+w+" `"+g+"` of type "+("`"+T+"` supplied to `"+y+"`, expected an array."))}for(var C=0;C<b.length;C++){var E=c(b,C,y,w,g+"["+C+"]",ue);if(E instanceof Error)return E}return null}return l(h)}function S(){function c(h,P,x,y,w){var g=h[P];if(!t(g)){var b=J(g);return new u("Invalid "+y+" `"+w+"` of type "+("`"+b+"` supplied to `"+x+"`, expected a single ReactElement."))}return null}return l(c)}function O(){function c(h,P,x,y,w){var g=h[P];if(!Ti.isValidElementType(g)){var b=J(g);return new u("Invalid "+y+" `"+w+"` of type "+("`"+b+"` supplied to `"+x+"`, expected a single ReactElement type."))}return null}return l(c)}function R(c){function h(P,x,y,w,g){if(!(P[x]instanceof c)){var b=c.name||o,T=fr(P[x]);return new u("Invalid "+w+" `"+g+"` of type "+("`"+T+"` supplied to `"+y+"`, expected ")+("instance of `"+b+"`."))}return null}return l(h)}function V(c){if(!Array.isArray(c))return process.env.NODE_ENV!=="production"&&(arguments.length>1?fe("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):fe("Invalid argument supplied to oneOf, expected an array.")),Ue;function h(P,x,y,w,g){for(var b=P[x],T=0;T<c.length;T++)if(s(b,c[T]))return null;var C=JSON.stringify(c,function(U,W){var B=ne(W);return B==="symbol"?String(W):W});return new u("Invalid "+w+" `"+g+"` of value `"+String(b)+"` "+("supplied to `"+y+"`, expected one of "+C+"."))}return l(h)}function z(c){function h(P,x,y,w,g){if(typeof c!="function")return new u("Property `"+g+"` of component `"+y+"` has invalid PropType notation inside objectOf.");var b=P[x],T=J(b);if(T!=="object")return new u("Invalid "+w+" `"+g+"` of type "+("`"+T+"` supplied to `"+y+"`, expected an object."));for(var C in b)if(xr(b,C)){var E=c(b,C,y,w,g+"."+C,ue);if(E instanceof Error)return E}return null}return l(h)}function I(c){if(!Array.isArray(c))return process.env.NODE_ENV!=="production"&&fe("Invalid argument supplied to oneOfType, expected an instance of array."),Ue;for(var h=0;h<c.length;h++){var P=c[h];if(typeof P!="function")return fe("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ur(P)+" at index "+h+"."),Ue}function x(y,w,g,b,T){for(var C=[],E=0;E<c.length;E++){var U=c[E],W=U(y,w,g,b,T,ue);if(W==null)return null;W.data&&xr(W.data,"expectedType")&&C.push(W.data.expectedType)}var B=C.length>0?", expected one of type ["+C.join(", ")+"]":"";return new u("Invalid "+b+" `"+T+"` supplied to "+("`"+g+"`"+B+"."))}return l(x)}function L(){function c(h,P,x,y,w){return H(h[P])?null:new u("Invalid "+y+" `"+w+"` supplied to "+("`"+x+"`, expected a ReactNode."))}return l(c)}function D(c,h,P,x,y){return new u((c||"React class")+": "+h+" type `"+P+"."+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+y+"`.")}function q(c){function h(P,x,y,w,g){var b=P[x],T=J(b);if(T!=="object")return new u("Invalid "+w+" `"+g+"` of type `"+T+"` "+("supplied to `"+y+"`, expected `object`."));for(var C in c){var E=c[C];if(typeof E!="function")return D(y,w,g,C,ne(E));var U=E(b,C,y,w,g+"."+C,ue);if(U)return U}return null}return l(h)}function te(c){function h(P,x,y,w,g){var b=P[x],T=J(b);if(T!=="object")return new u("Invalid "+w+" `"+g+"` of type `"+T+"` "+("supplied to `"+y+"`, expected `object`."));var C=Ei({},P[x],c);for(var E in C){var U=c[E];if(xr(c,E)&&typeof U!="function")return D(y,w,g,E,ne(U));if(!U)return new u("Invalid "+w+" `"+g+"` key `"+E+"` supplied to `"+y+"`.\nBad object: "+JSON.stringify(P[x],null," ")+`
3
- Valid keys: `+JSON.stringify(Object.keys(c),null," "));var W=U(b,E,y,w,g+"."+E,ue);if(W)return W}return null}return l(h)}function H(c){switch(typeof c){case"number":case"string":case"undefined":return!0;case"boolean":return!c;case"object":if(Array.isArray(c))return c.every(H);if(c===null||t(c))return!0;var h=i(c);if(h){var P=h.call(c),x;if(h!==c.entries){for(;!(x=P.next()).done;)if(!H(x.value))return!1}else for(;!(x=P.next()).done;){var y=x.value;if(y&&!H(y[1]))return!1}}else return!1;return!0;default:return!1}}function sr(c,h){return c==="symbol"?!0:h?h["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&h instanceof Symbol:!1}function J(c){var h=typeof c;return Array.isArray(c)?"array":c instanceof RegExp?"object":sr(h,c)?"symbol":h}function ne(c){if(typeof c>"u"||c===null)return""+c;var h=J(c);if(h==="object"){if(c instanceof Date)return"date";if(c instanceof RegExp)return"regexp"}return h}function ur(c){var h=ne(c);switch(h){case"array":case"object":return"an "+h;case"boolean":case"date":case"regexp":return"a "+h;default:return h}}function fr(c){return!c.constructor||!c.constructor.name?o:c.constructor.name}return a.checkPropTypes=Tt,a.resetWarningCache=Tt.resetWarningCache,a.PropTypes=a,a}});var _t=Y((ys,At)=>{"use strict";var Oi=We();function kt(){}function Ct(){}Ct.resetWarningCache=kt;At.exports=function(){function t(e,i,o,a,s,u){if(u!==Oi){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function r(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:Ct,resetWarningCache:kt};return n.PropTypes=n,n}});var It=Y((gs,Sr)=>{"use strict";process.env.NODE_ENV!=="production"?(jt=Le(),Nt=!0,Sr.exports=Ot()(jt.isElement,Nt)):Sr.exports=_t()();var jt,Nt});var Mt=Y(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.default=ki;function ki(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}});var rs={};ni(rs,{TeknifyContext:()=>Yn,TeknifyProvider:()=>Jn});module.exports=ii(rs);var qn=require("@teknify/js"),ar=require("react");var nt={components:{NotificationHeader:{notifications:"Notifications",readAll:"Read all"},Empty:{noNotifications:"No notifications"},Loader:{loading:"Loading..."},NotificationItem:{markAsRead:"Mark as read"}}};function it(t){var r,n,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=it(t[r]))&&(e&&(e+=" "),e+=n)}else for(n in t)t[n]&&(e&&(e+=" "),e+=n);return e}function oi(){for(var t,r,n=0,e="",i=arguments.length;n<i;n++)(t=arguments[n])&&(r=it(t))&&(e&&(e+=" "),e+=r);return e}var ot=oi;function j(){return j=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)({}).hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},j.apply(null,arguments)}function ke(t,r){if(t==null)return{};var n={};for(var e in t)if({}.hasOwnProperty.call(t,e)){if(r.indexOf(e)!==-1)continue;n[e]=t[e]}return n}var M=se(require("react")),Va=se(yr());var G=se(require("react"));var gi=process.env.NODE_ENV==="production";function bi(t,r){if(!gi){if(t)return;var n="Warning: "+r;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var k=bi;var pe=se(It()),Dt=se(yr()),Vt=se(Mt());function Fe(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function qe(){return qe=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},qe.apply(this,arguments)}function Ci(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}function X(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ye(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function Ai(t){var r=function(n){Ci(e,n);function e(){for(var o,a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=n.call.apply(n,[this].concat(s))||this,Fe(X(X(o)),"cachedTheme",void 0),Fe(X(X(o)),"lastOuterTheme",void 0),Fe(X(X(o)),"lastTheme",void 0),Fe(X(X(o)),"renderProvider",function(l){var d=o.props.children;return G.default.createElement(t.Provider,{value:o.getTheme(l)},d)}),o}var i=e.prototype;return i.getTheme=function(a){if(this.props.theme!==this.lastTheme||a!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=a,this.lastTheme=this.props.theme,typeof this.lastTheme=="function"){var s=this.props.theme;this.cachedTheme=s(a),process.env.NODE_ENV!=="production"&&k(Ye(this.cachedTheme),"[ThemeProvider] Please return an object from your theme function")}else{var u=this.props.theme;process.env.NODE_ENV!=="production"&&k(Ye(u),"[ThemeProvider] Please make your theme prop a plain object"),this.cachedTheme=a?qe({},a,u):u}return this.cachedTheme},i.render=function(){var a=this.props.children;return a?G.default.createElement(t.Consumer,null,this.renderProvider):null},e}(G.default.Component);return process.env.NODE_ENV!=="production"&&(r.propTypes={children:pe.default.node,theme:pe.default.oneOfType([pe.default.shape({}),pe.default.func]).isRequired}),r}function _i(t){return function(n){var e=G.default.forwardRef(function(i,o){return G.default.createElement(t.Consumer,null,function(a){return process.env.NODE_ENV!=="production"&&k(Ye(a),"[theming] Please use withTheme only with the ThemeProvider"),G.default.createElement(n,qe({theme:a,ref:o},i))})});return process.env.NODE_ENV!=="production"&&(e.displayName="WithTheme("+(0,Vt.default)(n)+")"),(0,Dt.default)(e,n),e}}function ji(t){var r=function(){var e=G.default.useContext(t);return process.env.NODE_ENV!=="production"&&k(Ye(e),"[theming] Please use useTheme only with the ThemeProvider"),e};return r}function $t(t){return{context:t,withTheme:_i(t),useTheme:ji(t),ThemeProvider:Ai(t)}}var Rr=(0,G.createContext)(),wr=$t(Rr),Ni=wr.withTheme,Ii=wr.ThemeProvider,Mi=wr.useTheme;var Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Di=(typeof window>"u"?"undefined":Lt(window))==="object"&&(typeof document>"u"?"undefined":Lt(document))==="object"&&document.nodeType===9,K=Di;function ie(t){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ie(t)}function Wt(t,r){if(ie(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var e=n.call(t,r||"default");if(ie(e)!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function zt(t){var r=Wt(t,"string");return ie(r)=="symbol"?r:r+""}function Ut(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,zt(e.key),e)}}function Je(t,r,n){return r&&Ut(t.prototype,r),n&&Ut(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ge(t,r){return Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},Ge(t,r)}function Tr(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,Ge(t,r)}function Er(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Vi={}.constructor;function Cr(t){if(t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(Cr);if(t.constructor!==Vi)return t;var r={};for(var n in t)r[n]=Cr(t[n]);return r}function le(t,r,n){t===void 0&&(t="unnamed");var e=n.jss,i=Cr(r),o=e.plugins.onCreateRule(t,i,n);return o||(t[0]==="@"&&process.env.NODE_ENV!=="production"&&k(!1,"[JSS] Unknown rule "+t),null)}var Ft=function(r,n){for(var e="",i=0;i<r.length&&r[i]!=="!important";i++)e&&(e+=n),e+=r[i];return e},Z=function(r){if(!Array.isArray(r))return r;var n="";if(Array.isArray(r[0]))for(var e=0;e<r.length&&r[e]!=="!important";e++)n&&(n+=", "),n+=Ft(r[e]," ");else n=Ft(r,", ");return r[r.length-1]==="!important"&&(n+=" !important"),n};function ce(t){return t&&t.format===!1?{linebreak:"",space:""}:{linebreak:`
3
+ Valid keys: `+JSON.stringify(Object.keys(c),null," "));var W=U(b,E,y,w,g+"."+E,ue);if(W)return W}return null}return l(h)}function H(c){switch(typeof c){case"number":case"string":case"undefined":return!0;case"boolean":return!c;case"object":if(Array.isArray(c))return c.every(H);if(c===null||t(c))return!0;var h=i(c);if(h){var P=h.call(c),x;if(h!==c.entries){for(;!(x=P.next()).done;)if(!H(x.value))return!1}else for(;!(x=P.next()).done;){var y=x.value;if(y&&!H(y[1]))return!1}}else return!1;return!0;default:return!1}}function sr(c,h){return c==="symbol"?!0:h?h["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&h instanceof Symbol:!1}function J(c){var h=typeof c;return Array.isArray(c)?"array":c instanceof RegExp?"object":sr(h,c)?"symbol":h}function ne(c){if(typeof c>"u"||c===null)return""+c;var h=J(c);if(h==="object"){if(c instanceof Date)return"date";if(c instanceof RegExp)return"regexp"}return h}function ur(c){var h=ne(c);switch(h){case"array":case"object":return"an "+h;case"boolean":case"date":case"regexp":return"a "+h;default:return h}}function fr(c){return!c.constructor||!c.constructor.name?o:c.constructor.name}return a.checkPropTypes=Tt,a.resetWarningCache=Tt.resetWarningCache,a.PropTypes=a,a}});var _t=Y((ys,At)=>{"use strict";var Oi=We();function kt(){}function Ct(){}Ct.resetWarningCache=kt;At.exports=function(){function t(e,i,o,a,s,u){if(u!==Oi){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function r(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:Ct,resetWarningCache:kt};return n.PropTypes=n,n}});var It=Y((gs,Sr)=>{"use strict";process.env.NODE_ENV!=="production"?(jt=Le(),Nt=!0,Sr.exports=Ot()(jt.isElement,Nt)):Sr.exports=_t()();var jt,Nt});var Mt=Y(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.default=ki;function ki(t){return t.displayName||t.name||(typeof t=="string"&&t.length>0?t:"Unknown")}});var rs={};ni(rs,{TeknifyContext:()=>Yn,TeknifyProvider:()=>Jn});module.exports=ii(rs);var qn=require("@tnf-dev/js"),ar=require("react");var nt={components:{NotificationHeader:{notifications:"Notifications",readAll:"Read all"},Empty:{noNotifications:"No notifications"},Loader:{loading:"Loading..."},NotificationItem:{markAsRead:"Mark as read"}}};function it(t){var r,n,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(r=0;r<i;r++)t[r]&&(n=it(t[r]))&&(e&&(e+=" "),e+=n)}else for(n in t)t[n]&&(e&&(e+=" "),e+=n);return e}function oi(){for(var t,r,n=0,e="",i=arguments.length;n<i;n++)(t=arguments[n])&&(r=it(t))&&(e&&(e+=" "),e+=r);return e}var ot=oi;function j(){return j=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)({}).hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},j.apply(null,arguments)}function ke(t,r){if(t==null)return{};var n={};for(var e in t)if({}.hasOwnProperty.call(t,e)){if(r.indexOf(e)!==-1)continue;n[e]=t[e]}return n}var M=se(require("react")),Va=se(yr());var G=se(require("react"));var gi=process.env.NODE_ENV==="production";function bi(t,r){if(!gi){if(t)return;var n="Warning: "+r;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var k=bi;var pe=se(It()),Dt=se(yr()),Vt=se(Mt());function Fe(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function qe(){return qe=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t},qe.apply(this,arguments)}function Ci(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r}function X(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ye(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function Ai(t){var r=function(n){Ci(e,n);function e(){for(var o,a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=n.call.apply(n,[this].concat(s))||this,Fe(X(X(o)),"cachedTheme",void 0),Fe(X(X(o)),"lastOuterTheme",void 0),Fe(X(X(o)),"lastTheme",void 0),Fe(X(X(o)),"renderProvider",function(l){var d=o.props.children;return G.default.createElement(t.Provider,{value:o.getTheme(l)},d)}),o}var i=e.prototype;return i.getTheme=function(a){if(this.props.theme!==this.lastTheme||a!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=a,this.lastTheme=this.props.theme,typeof this.lastTheme=="function"){var s=this.props.theme;this.cachedTheme=s(a),process.env.NODE_ENV!=="production"&&k(Ye(this.cachedTheme),"[ThemeProvider] Please return an object from your theme function")}else{var u=this.props.theme;process.env.NODE_ENV!=="production"&&k(Ye(u),"[ThemeProvider] Please make your theme prop a plain object"),this.cachedTheme=a?qe({},a,u):u}return this.cachedTheme},i.render=function(){var a=this.props.children;return a?G.default.createElement(t.Consumer,null,this.renderProvider):null},e}(G.default.Component);return process.env.NODE_ENV!=="production"&&(r.propTypes={children:pe.default.node,theme:pe.default.oneOfType([pe.default.shape({}),pe.default.func]).isRequired}),r}function _i(t){return function(n){var e=G.default.forwardRef(function(i,o){return G.default.createElement(t.Consumer,null,function(a){return process.env.NODE_ENV!=="production"&&k(Ye(a),"[theming] Please use withTheme only with the ThemeProvider"),G.default.createElement(n,qe({theme:a,ref:o},i))})});return process.env.NODE_ENV!=="production"&&(e.displayName="WithTheme("+(0,Vt.default)(n)+")"),(0,Dt.default)(e,n),e}}function ji(t){var r=function(){var e=G.default.useContext(t);return process.env.NODE_ENV!=="production"&&k(Ye(e),"[theming] Please use useTheme only with the ThemeProvider"),e};return r}function $t(t){return{context:t,withTheme:_i(t),useTheme:ji(t),ThemeProvider:Ai(t)}}var Rr=(0,G.createContext)(),wr=$t(Rr),Ni=wr.withTheme,Ii=wr.ThemeProvider,Mi=wr.useTheme;var Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Di=(typeof window>"u"?"undefined":Lt(window))==="object"&&(typeof document>"u"?"undefined":Lt(document))==="object"&&document.nodeType===9,K=Di;function ie(t){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ie(t)}function Wt(t,r){if(ie(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var e=n.call(t,r||"default");if(ie(e)!="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function zt(t){var r=Wt(t,"string");return ie(r)=="symbol"?r:r+""}function Ut(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,zt(e.key),e)}}function Je(t,r,n){return r&&Ut(t.prototype,r),n&&Ut(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ge(t,r){return Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,e){return n.__proto__=e,n},Ge(t,r)}function Tr(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,Ge(t,r)}function Er(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var Vi={}.constructor;function Cr(t){if(t==null||typeof t!="object")return t;if(Array.isArray(t))return t.map(Cr);if(t.constructor!==Vi)return t;var r={};for(var n in t)r[n]=Cr(t[n]);return r}function le(t,r,n){t===void 0&&(t="unnamed");var e=n.jss,i=Cr(r),o=e.plugins.onCreateRule(t,i,n);return o||(t[0]==="@"&&process.env.NODE_ENV!=="production"&&k(!1,"[JSS] Unknown rule "+t),null)}var Ft=function(r,n){for(var e="",i=0;i<r.length&&r[i]!=="!important";i++)e&&(e+=n),e+=r[i];return e},Z=function(r){if(!Array.isArray(r))return r;var n="";if(Array.isArray(r[0]))for(var e=0;e<r.length&&r[e]!=="!important";e++)n&&(n+=", "),n+=Ft(r[e]," ");else n=Ft(r,", ");return r[r.length-1]==="!important"&&(n+=" !important"),n};function ce(t){return t&&t.format===!1?{linebreak:"",space:""}:{linebreak:`
4
4
  `,space:" "}}function me(t,r){for(var n="",e=0;e<r;e++)n+=" ";return n+t}function ge(t,r,n){n===void 0&&(n={});var e="";if(!r)return e;var i=n,o=i.indent,a=o===void 0?0:o,s=r.fallbacks;n.format===!1&&(a=-1/0);var u=ce(n),l=u.linebreak,d=u.space;if(t&&a++,s)if(Array.isArray(s))for(var v=0;v<s.length;v++){var N=s[v];for(var S in N){var O=N[S];O!=null&&(e&&(e+=l),e+=me(S+":"+d+Z(O)+";",a))}}else for(var R in s){var V=s[R];V!=null&&(e&&(e+=l),e+=me(R+":"+d+Z(V)+";",a))}for(var z in r){var I=r[z];I!=null&&z!=="fallbacks"&&(e&&(e+=l),e+=me(z+":"+d+Z(I)+";",a))}return!e&&!n.allowEmpty||!t?e:(a--,e&&(e=""+l+e+l),me(""+t+d+"{"+e,a)+me("}",a))}var $i=/([[\].#*$><+~=|^:(),"'`\s])/g,qt=typeof CSS<"u"&&CSS.escape,Dr=function(t){return qt?qt(t):t.replace($i,"\\$1")},Xt=function(){function t(n,e,i){this.type="style",this.isProcessed=!1;var o=i.sheet,a=i.Renderer;this.key=n,this.options=i,this.style=e,o?this.renderer=o.renderer:a&&(this.renderer=new a)}var r=t.prototype;return r.prop=function(e,i,o){if(i===void 0)return this.style[e];var a=o?o.force:!1;if(!a&&this.style[e]===i)return this;var s=i;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(i,e,this));var u=s==null||s===!1,l=e in this.style;if(u&&!l&&!a)return this;var d=u&&l;if(d?delete this.style[e]:this.style[e]=s,this.renderable&&this.renderer)return d?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,s),this;var v=this.options.sheet;return v&&v.attached&&process.env.NODE_ENV!=="production"&&k(!1,'[JSS] Rule is not linked. Missing sheet option "link: true".'),this},t}(),Ar=function(t){Tr(r,t);function r(e,i,o){var a;a=t.call(this,e,i,o)||this;var s=o.selector,u=o.scoped,l=o.sheet,d=o.generateId;return s?a.selectorText=s:u!==!1&&(a.id=d(Er(Er(a)),l),a.selectorText="."+Dr(a.id)),a}var n=r.prototype;return n.applyTo=function(i){var o=this.renderer;if(o){var a=this.toJSON();for(var s in a)o.setProperty(i,s,a[s])}return this},n.toJSON=function(){var i={};for(var o in this.style){var a=this.style[o];typeof a!="object"?i[o]=a:Array.isArray(a)&&(i[o]=Z(a))}return i},n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?j({},i,{allowEmpty:!0}):i;return ge(this.selectorText,this.style,s)},Je(r,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,a=this.renderable;if(!(!a||!o)){var s=o.setSelector(a,i);s||o.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),r}(Xt),Li={onCreateRule:function(r,n,e){return r[0]==="@"||e.parent&&e.parent.type==="keyframes"?null:new Ar(r,n,e)}},Or={indent:1,children:!0},Wi=/@([\w-]+)/,zi=function(){function t(n,e,i){this.type="conditional",this.isProcessed=!1,this.key=n;var o=n.match(Wi);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new be(j({},i,{parent:this}));for(var a in e)this.rules.add(a,e[a]);this.rules.process()}var r=t.prototype;return r.getRule=function(e){return this.rules.get(e)},r.indexOf=function(e){return this.rules.indexOf(e)},r.addRule=function(e,i,o){var a=this.rules.add(e,i,o);return a?(this.options.jss.plugins.onProcessRule(a),a):null},r.replaceRule=function(e,i,o){var a=this.rules.replace(e,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},r.toString=function(e){e===void 0&&(e=Or);var i=ce(e),o=i.linebreak;if(e.indent==null&&(e.indent=Or.indent),e.children==null&&(e.children=Or.children),e.children===!1)return this.query+" {}";var a=this.rules.toString(e);return a?this.query+" {"+o+a+o+"}":""},t}(),Ui=/@container|@media|@supports\s+/,Fi={onCreateRule:function(r,n,e){return Ui.test(r)?new zi(r,n,e):null}},kr={indent:1,children:!0},qi=/@keyframes\s+([\w-]+)/,_r=function(){function t(n,e,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=n.match(qi);o&&o[1]?this.name=o[1]:(this.name="noname",process.env.NODE_ENV!=="production"&&k(!1,"[JSS] Bad keyframes name "+n)),this.key=this.type+"-"+this.name,this.options=i;var a=i.scoped,s=i.sheet,u=i.generateId;this.id=a===!1?this.name:Dr(u(this,s)),this.rules=new be(j({},i,{parent:this}));for(var l in e)this.rules.add(l,e[l],j({},i,{parent:this}));this.rules.process()}var r=t.prototype;return r.toString=function(e){e===void 0&&(e=kr);var i=ce(e),o=i.linebreak;if(e.indent==null&&(e.indent=kr.indent),e.children==null&&(e.children=kr.children),e.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(e);return a&&(a=""+o+a+o),this.at+" "+this.id+" {"+a+"}"},t}(),Yi=/@keyframes\s+/,Ji=/\$([\w-]+)/g,jr=function(r,n){return typeof r=="string"?r.replace(Ji,function(e,i){return i in n?n[i]:(process.env.NODE_ENV!=="production"&&k(!1,'[JSS] Referenced keyframes rule "'+i+'" is not defined.'),e)}):r},Yt=function(r,n,e){var i=r[n],o=jr(i,e);o!==i&&(r[n]=o)},Gi={onCreateRule:function(r,n,e){return typeof r=="string"&&Yi.test(r)?new _r(r,n,e):null},onProcessStyle:function(r,n,e){return n.type!=="style"||!e||("animation-name"in r&&Yt(r,"animation-name",e.keyframes),"animation"in r&&Yt(r,"animation",e.keyframes)),r},onChangeValue:function(r,n,e){var i=e.options.sheet;if(!i)return r;switch(n){case"animation":return jr(r,i.keyframes);case"animation-name":return jr(r,i.keyframes);default:return r}}},Hi=function(t){Tr(r,t);function r(){return t.apply(this,arguments)||this}var n=r.prototype;return n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?j({},i,{allowEmpty:!0}):i;return ge(this.key,this.style,s)},r}(Xt),Ki={onCreateRule:function(r,n,e){return e.parent&&e.parent.type==="keyframes"?new Hi(r,n,e):null}},Bi=function(){function t(n,e,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=e,this.options=i}var r=t.prototype;return r.toString=function(e){var i=ce(e),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=ge(this.at,this.style[s]),this.style[s+1]&&(a+=o);return a}return ge(this.at,this.style,e)},t}(),Xi=/@font-face/,Zi={onCreateRule:function(r,n,e){return Xi.test(r)?new Bi(r,n,e):null}},Qi=function(){function t(n,e,i){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=n,this.style=e,this.options=i}var r=t.prototype;return r.toString=function(e){return ge(this.key,this.style,e)},t}(),eo={onCreateRule:function(r,n,e){return r==="@viewport"||r==="@-ms-viewport"?new Qi(r,n,e):null}},ro=function(){function t(n,e,i){this.type="simple",this.isProcessed=!1,this.key=n,this.value=e,this.options=i}var r=t.prototype;return r.toString=function(e){if(Array.isArray(this.value)){for(var i="",o=0;o<this.value.length;o++)i+=this.key+" "+this.value[o]+";",this.value[o+1]&&(i+=`
5
5
  `);return i}return this.key+" "+this.value+";"},t}(),to={"@charset":!0,"@import":!0,"@namespace":!0},no={onCreateRule:function(r,n,e){return r in to?new ro(r,n,e):null}},Jt=[Li,Fi,Gi,Ki,Zi,eo,no],io={process:!0},Gt={force:!0,process:!0},be=function(){function t(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var r=t.prototype;return r.add=function(e,i,o){var a=this.options,s=a.parent,u=a.sheet,l=a.jss,d=a.Renderer,v=a.generateId,N=a.scoped,S=j({classes:this.classes,parent:s,sheet:u,jss:l,Renderer:d,generateId:v,scoped:N,name:e,keyframes:this.keyframes,selector:void 0},o),O=e;e in this.raw&&(O=e+"-d"+this.counter++),this.raw[O]=i,O in this.classes&&(S.selector="."+Dr(this.classes[O]));var R=le(O,i,S);if(!R)return null;this.register(R);var V=S.index===void 0?this.index.length:S.index;return this.index.splice(V,0,R),R},r.replace=function(e,i,o){var a=this.get(e),s=this.index.indexOf(a);a&&this.remove(a);var u=o;return s!==-1&&(u=j({},o,{index:s})),this.add(e,i,u)},r.get=function(e){return this.map[e]},r.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},r.indexOf=function(e){return this.index.indexOf(e)},r.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},r.register=function(e){this.map[e.key]=e,e instanceof Ar?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof _r&&this.keyframes&&(this.keyframes[e.name]=e.id)},r.unregister=function(e){delete this.map[e.key],e instanceof Ar?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof _r&&delete this.keyframes[e.name]},r.update=function(){var e,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(e=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},r.updateOne=function(e,i,o){o===void 0&&(o=io);var a=this.options,s=a.jss.plugins,u=a.sheet;if(e.rules instanceof t){e.rules.update(i,o);return}var l=e.style;if(s.onUpdate(i,e,u,o),o.process&&l&&l!==e.style){s.onProcessStyle(e.style,e,u);for(var d in e.style){var v=e.style[d],N=l[d];v!==N&&e.prop(d,v,Gt)}for(var S in l){var O=e.style[S],R=l[S];O==null&&O!==R&&e.prop(S,null,Gt)}}},r.toString=function(e){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=ce(e),u=s.linebreak,l=0;l<this.index.length;l++){var d=this.index[l],v=d.toString(e);!v&&!a||(i&&(i+=u),i+=v)}return i},t}(),Zt=function(){function t(n,e){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=j({},e,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),e.Renderer&&(this.renderer=new e.Renderer(this)),this.rules=new be(this.options);for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var r=t.prototype;return r.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},r.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},r.addRule=function(e,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(e,i,o);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},r.replaceRule=function(e,i,o){var a=this.rules.get(e);if(!a)return this.addRule(e,i,o);var s=this.rules.replace(e,i,o);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},r.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},r.addRules=function(e,i){var o=[];for(var a in e){var s=this.addRule(a,e[a],i);s&&o.push(s)}return o},r.getRule=function(e){return this.rules.get(e)},r.deleteRule=function(e){var i=typeof e=="object"?e:this.rules.get(e);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},r.indexOf=function(e){return this.rules.indexOf(e)},r.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},r.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},r.updateOne=function(e,i,o){return this.rules.updateOne(e,i,o),this},r.toString=function(e){return this.rules.toString(e)},t}(),oo=function(){function t(){this.plugins={internal:[],external:[]},this.registry={}}var r=t.prototype;return r.onCreateRule=function(e,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](e,i,o);if(s)return s}return null},r.onProcessRule=function(e){if(!e.isProcessed){for(var i=e.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](e,i);e.style&&this.onProcessStyle(e.style,e,i),e.isProcessed=!0}},r.onProcessStyle=function(e,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},r.onProcessSheet=function(e){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](e)},r.onUpdate=function(e,i,o,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](e,i,o,a)},r.onChangeValue=function(e,i,o){for(var a=e,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,i,o);return a},r.use=function(e,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(e)===-1&&(o.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var u in s)u in a?a[u].push(s[u]):process.env.NODE_ENV!=="production"&&k(!1,'[JSS] Unknown hook "'+u+'".');return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},t}(),ao=function(){function t(){this.registry=[]}var r=t.prototype;return r.add=function(e){var i=this.registry,o=e.options.index;if(i.indexOf(e)===-1){if(i.length===0||o>=this.index){i.push(e);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,e);return}}},r.reset=function(){this.registry=[]},r.remove=function(e){var i=this.registry.indexOf(e);this.registry.splice(i,1)},r.toString=function(e){for(var i=e===void 0?{}:e,o=i.attached,a=ke(i,["attached"]),s=ce(a),u=s.linebreak,l="",d=0;d<this.registry.length;d++){var v=this.registry[d];o!=null&&v.attached!==o||(l&&(l+=u),l+=v.toString(a))}return l},Je(t,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),t}(),ye=new ao,Nr=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),Ir="2f1acc6c3a606b082e5eef5e54414ffb";Nr[Ir]==null&&(Nr[Ir]=0);var Ht=Nr[Ir]++,so=1e10,Mr=function(r){r===void 0&&(r={});var n=0,e=function(o,a){n+=1,n>so&&process.env.NODE_ENV!=="production"&&k(!1,"[JSS] You might have a memory leak. Rule counter is at "+n+".");var s="",u="";return a&&(a.options.classNamePrefix&&(u=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),r.minify?""+(u||"c")+Ht+s+n:u+o.key+"-"+Ht+(s?"-"+s:"")+"-"+n};return e},Qt=function(r){var n;return function(){return n||(n=r()),n}},uo=function(r,n){try{return r.attributeStyleMap?r.attributeStyleMap.get(n):r.style.getPropertyValue(n)}catch{return""}},fo=function(r,n,e){try{var i=e;if(Array.isArray(e)&&(i=Z(e)),r.attributeStyleMap)r.attributeStyleMap.set(n,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;r.style.setProperty(n,a,o>-1?"important":"")}}catch{return!1}return!0},lo=function(r,n){try{r.attributeStyleMap?r.attributeStyleMap.delete(n):r.style.removeProperty(n)}catch(e){process.env.NODE_ENV!=="production"&&k(!1,'[JSS] DOMException "'+e.message+'" was thrown. Tried to remove property "'+n+'".')}},co=function(r,n){return r.selectorText=n,r.selectorText===n},en=Qt(function(){return document.querySelector("head")});function ho(t,r){for(var n=0;n<t.length;n++){var e=t[n];if(e.attached&&e.options.index>r.index&&e.options.insertionPoint===r.insertionPoint)return e}return null}function vo(t,r){for(var n=t.length-1;n>=0;n--){var e=t[n];if(e.attached&&e.options.insertionPoint===r.insertionPoint)return e}return null}function po(t){for(var r=en(),n=0;n<r.childNodes.length;n++){var e=r.childNodes[n];if(e.nodeType===8&&e.nodeValue.trim()===t)return e}return null}function mo(t){var r=ye.registry;if(r.length>0){var n=ho(r,t);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=vo(r,t),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var e=t.insertionPoint;if(e&&typeof e=="string"){var i=po(e);if(i)return{parent:i.parentNode,node:i.nextSibling};process.env.NODE_ENV!=="production"&&k(!1,'[JSS] Insertion point "'+e+'" not found.')}return!1}function yo(t,r){var n=r.insertionPoint,e=mo(r);if(e!==!1&&e.parent){e.parent.insertBefore(t,e.node);return}if(n&&typeof n.nodeType=="number"){var i=n,o=i.parentNode;o?o.insertBefore(t,i.nextSibling):process.env.NODE_ENV!=="production"&&k(!1,"[JSS] Insertion point is not in the DOM.");return}en().appendChild(t)}var go=Qt(function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}),Kt=function(r,n,e){try{"insertRule"in r?r.insertRule(n,e):"appendRule"in r&&r.appendRule(n)}catch(i){return process.env.NODE_ENV!=="production"&&k(!1,"[JSS] "+i.message),!1}return r.cssRules[e]},Bt=function(r,n){var e=r.cssRules.length;return n===void 0||n>e?e:n},bo=function(){var r=document.createElement("style");return r.textContent=`
6
6
  `,r},xo=function(){function t(n){this.getPropertyValue=uo,this.setProperty=fo,this.removeProperty=lo,this.setSelector=co,this.hasInsertedRules=!1,this.cssRules=[],n&&ye.add(n),this.sheet=n;var e=this.sheet?this.sheet.options:{},i=e.media,o=e.meta,a=e.element;this.element=a||bo(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var s=go();s&&this.element.setAttribute("nonce",s)}var r=t.prototype;return r.attach=function(){if(!(this.element.parentNode||!this.sheet)){yo(this.element,this.sheet.options);var e=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},r.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
@@ -1,4 +1,4 @@
1
1
  export { TeknifyContext, default as TeknifyProvider } from './TeknifyProvider.cjs';
2
2
  import 'react';
3
- import '@teknify/js';
3
+ import '@tnf-dev/js';
4
4
  import '../types/locale.cjs';
@@ -1,2 +1,2 @@
1
1
  export { Notification } from './notifications/notification.interface.cjs';
2
- import '@teknify/core';
2
+ import '@tnf-dev/core';
@@ -1,2 +1,2 @@
1
1
  export { Notification } from './notification.interface.cjs';
2
- import '@teknify/core';
2
+ import '@tnf-dev/core';
@@ -1,4 +1,4 @@
1
- import { Notification as Notification$1 } from '@teknify/core';
1
+ import { Notification as Notification$1 } from '@tnf-dev/core';
2
2
 
3
3
  interface Notification extends Notification$1 {
4
4
  markAsRead: () => Promise<void>;
@@ -1,2 +1,2 @@
1
1
  "use client"
2
- "use strict";var k=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var w=(t,r)=>{for(var f in r)k(t,f,{get:r[f],enumerable:!0})},S=(t,r,f,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of b(r))!M.call(t,c)&&c!==f&&k(t,c,{get:()=>r[c],enumerable:!(s=F(r,c))||s.enumerable});return t};var V=t=>S(k({},"__esModule",{value:!0}),t);var H={};w(H,{useNotifications:()=>D});module.exports=V(H);var e=require("react");var U=require("@teknify/js"),y=require("react");var W=require("react/jsx-runtime"),h=(0,y.createContext)({applicationId:"",subscriberId:""});var D=()=>{let{client:t,subscriberId:r}=(0,e.useContext)(h),[f,s]=(0,e.useState)([]),[c,K]=(0,e.useState)(!1),[A,O]=(0,e.useState)(null),[m,C]=(0,e.useState)(!1),[R,g]=(0,e.useState)(!0),[_,x]=(0,e.useState)(!0),[L,N]=(0,e.useState)(0),[p,T]=(0,e.useState)({}),u=(0,e.useCallback)(async o=>{try{s(i=>i.map(a=>a._id===o?{...a,isRead:!0}:a)),await t.notification.markAsRead(o)}catch{s(a=>a.map(n=>n._id===o?{...n,isRead:!1}:n))}},[]),I=(0,e.useCallback)(async()=>{await t.notification.markAllAsRead(),s(o=>o.map(i=>({...i,isRead:!0})))},[]),l=(0,e.useCallback)(async()=>{if(!(m||c))try{C(!0);let o=p==null?void 0:p[r],i=await t.notification.getNotifications({...o?{cursor:o}:{}});s(a=>[...a,...i.data.filter(n=>!a.find(d=>d._id===n._id)).map(n=>({...n,markAsRead:()=>u(n._id)}))]),x(!!i.pagination.continueCursor),T({[r]:i.pagination.continueCursor}),N(i.unread)}catch{}finally{C(!1),g(!1)}},[m,u,c,t]);(0,e.useEffect)(()=>{l()},[]),(0,e.useEffect)(()=>{s([])},[t]),(0,e.useEffect)(()=>{let o=(i,{counts:a})=>{N(a.unread),s(n=>[...i.filter(d=>{let P=n.findIndex(v=>v._id===d._id);return P!==-1?(n[P]={...d,markAsRead:()=>u(d._id)},!1):!0}).map(d=>({...d,markAsRead:()=>u(d._id)})),...n])};return t.notification.on(o),()=>{t.notification.off(o)}},[u,t]);let E=(0,e.useCallback)(()=>{l()},[l]);return(0,e.useEffect)(()=>{s([]),x(!0),g(!0),l()},[t]),{notifications:f,isLoading:m,isFirstLoad:R,isError:c,error:A,hasMore:_,unread:L,fetchMore:E,markAllAsRead:I}};0&&(module.exports={useNotifications});
2
+ "use strict";var k=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var w=(t,r)=>{for(var f in r)k(t,f,{get:r[f],enumerable:!0})},S=(t,r,f,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of b(r))!M.call(t,c)&&c!==f&&k(t,c,{get:()=>r[c],enumerable:!(s=F(r,c))||s.enumerable});return t};var V=t=>S(k({},"__esModule",{value:!0}),t);var H={};w(H,{useNotifications:()=>D});module.exports=V(H);var e=require("react");var U=require("@tnf-dev/js"),y=require("react");var W=require("react/jsx-runtime"),h=(0,y.createContext)({applicationId:"",subscriberId:""});var D=()=>{let{client:t,subscriberId:r}=(0,e.useContext)(h),[f,s]=(0,e.useState)([]),[c,K]=(0,e.useState)(!1),[A,O]=(0,e.useState)(null),[m,C]=(0,e.useState)(!1),[R,g]=(0,e.useState)(!0),[_,x]=(0,e.useState)(!0),[L,N]=(0,e.useState)(0),[p,T]=(0,e.useState)({}),u=(0,e.useCallback)(async o=>{try{s(i=>i.map(a=>a._id===o?{...a,isRead:!0}:a)),await t.notification.markAsRead(o)}catch{s(a=>a.map(n=>n._id===o?{...n,isRead:!1}:n))}},[]),I=(0,e.useCallback)(async()=>{await t.notification.markAllAsRead(),s(o=>o.map(i=>({...i,isRead:!0})))},[]),l=(0,e.useCallback)(async()=>{if(!(m||c))try{C(!0);let o=p==null?void 0:p[r],i=await t.notification.getNotifications({...o?{cursor:o}:{}});s(a=>[...a,...i.data.filter(n=>!a.find(d=>d._id===n._id)).map(n=>({...n,markAsRead:()=>u(n._id)}))]),x(!!i.pagination.continueCursor),T({[r]:i.pagination.continueCursor}),N(i.unread)}catch{}finally{C(!1),g(!1)}},[m,u,c,t]);(0,e.useEffect)(()=>{l()},[]),(0,e.useEffect)(()=>{s([])},[t]),(0,e.useEffect)(()=>{let o=(i,{counts:a})=>{N(a.unread),s(n=>[...i.filter(d=>{let P=n.findIndex(v=>v._id===d._id);return P!==-1?(n[P]={...d,markAsRead:()=>u(d._id)},!1):!0}).map(d=>({...d,markAsRead:()=>u(d._id)})),...n])};return t.notification.on(o),()=>{t.notification.off(o)}},[u,t]);let E=(0,e.useCallback)(()=>{l()},[l]);return(0,e.useEffect)(()=>{s([]),x(!0),g(!0),l()},[t]),{notifications:f,isLoading:m,isFirstLoad:R,isError:c,error:A,hasMore:_,unread:L,fetchMore:E,markAllAsRead:I}};0&&(module.exports={useNotifications});
@@ -1,3 +1,3 @@
1
1
  export { useNotifications } from './useNotifications.cjs';
2
2
  import '../dto/notifications/notification.interface.cjs';
3
- import '@teknify/core';
3
+ import '@tnf-dev/core';
@@ -1,2 +1,2 @@
1
1
  "use client"
2
- "use strict";var p=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var w=(t,r)=>{for(var f in r)p(t,f,{get:r[f],enumerable:!0})},S=(t,r,f,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of b(r))!M.call(t,c)&&c!==f&&p(t,c,{get:()=>r[c],enumerable:!(s=F(r,c))||s.enumerable});return t};var V=t=>S(p({},"__esModule",{value:!0}),t);var H={};w(H,{useNotifications:()=>D});module.exports=V(H);var e=require("react");var U=require("@teknify/js"),y=require("react");var W=require("react/jsx-runtime"),h=(0,y.createContext)({applicationId:"",subscriberId:""});var D=()=>{let{client:t,subscriberId:r}=(0,e.useContext)(h),[f,s]=(0,e.useState)([]),[c,K]=(0,e.useState)(!1),[A,O]=(0,e.useState)(null),[m,C]=(0,e.useState)(!1),[R,g]=(0,e.useState)(!0),[_,N]=(0,e.useState)(!0),[L,x]=(0,e.useState)(0),[k,T]=(0,e.useState)({}),u=(0,e.useCallback)(async o=>{try{s(i=>i.map(a=>a._id===o?{...a,isRead:!0}:a)),await t.notification.markAsRead(o)}catch{s(a=>a.map(n=>n._id===o?{...n,isRead:!1}:n))}},[]),I=(0,e.useCallback)(async()=>{await t.notification.markAllAsRead(),s(o=>o.map(i=>({...i,isRead:!0})))},[]),l=(0,e.useCallback)(async()=>{if(!(m||c))try{C(!0);let o=k==null?void 0:k[r],i=await t.notification.getNotifications({...o?{cursor:o}:{}});s(a=>[...a,...i.data.filter(n=>!a.find(d=>d._id===n._id)).map(n=>({...n,markAsRead:()=>u(n._id)}))]),N(!!i.pagination.continueCursor),T({[r]:i.pagination.continueCursor}),x(i.unread)}catch{}finally{C(!1),g(!1)}},[m,u,c,t]);(0,e.useEffect)(()=>{l()},[]),(0,e.useEffect)(()=>{s([])},[t]),(0,e.useEffect)(()=>{let o=(i,{counts:a})=>{x(a.unread),s(n=>[...i.filter(d=>{let P=n.findIndex(v=>v._id===d._id);return P!==-1?(n[P]={...d,markAsRead:()=>u(d._id)},!1):!0}).map(d=>({...d,markAsRead:()=>u(d._id)})),...n])};return t.notification.on(o),()=>{t.notification.off(o)}},[u,t]);let E=(0,e.useCallback)(()=>{l()},[l]);return(0,e.useEffect)(()=>{s([]),N(!0),g(!0),l()},[t]),{notifications:f,isLoading:m,isFirstLoad:R,isError:c,error:A,hasMore:_,unread:L,fetchMore:E,markAllAsRead:I}};0&&(module.exports={useNotifications});
2
+ "use strict";var p=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var w=(t,r)=>{for(var f in r)p(t,f,{get:r[f],enumerable:!0})},S=(t,r,f,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of b(r))!M.call(t,c)&&c!==f&&p(t,c,{get:()=>r[c],enumerable:!(s=F(r,c))||s.enumerable});return t};var V=t=>S(p({},"__esModule",{value:!0}),t);var H={};w(H,{useNotifications:()=>D});module.exports=V(H);var e=require("react");var U=require("@tnf-dev/js"),y=require("react");var W=require("react/jsx-runtime"),h=(0,y.createContext)({applicationId:"",subscriberId:""});var D=()=>{let{client:t,subscriberId:r}=(0,e.useContext)(h),[f,s]=(0,e.useState)([]),[c,K]=(0,e.useState)(!1),[A,O]=(0,e.useState)(null),[m,C]=(0,e.useState)(!1),[R,g]=(0,e.useState)(!0),[_,N]=(0,e.useState)(!0),[L,x]=(0,e.useState)(0),[k,T]=(0,e.useState)({}),u=(0,e.useCallback)(async o=>{try{s(i=>i.map(a=>a._id===o?{...a,isRead:!0}:a)),await t.notification.markAsRead(o)}catch{s(a=>a.map(n=>n._id===o?{...n,isRead:!1}:n))}},[]),I=(0,e.useCallback)(async()=>{await t.notification.markAllAsRead(),s(o=>o.map(i=>({...i,isRead:!0})))},[]),l=(0,e.useCallback)(async()=>{if(!(m||c))try{C(!0);let o=k==null?void 0:k[r],i=await t.notification.getNotifications({...o?{cursor:o}:{}});s(a=>[...a,...i.data.filter(n=>!a.find(d=>d._id===n._id)).map(n=>({...n,markAsRead:()=>u(n._id)}))]),N(!!i.pagination.continueCursor),T({[r]:i.pagination.continueCursor}),x(i.unread)}catch{}finally{C(!1),g(!1)}},[m,u,c,t]);(0,e.useEffect)(()=>{l()},[]),(0,e.useEffect)(()=>{s([])},[t]),(0,e.useEffect)(()=>{let o=(i,{counts:a})=>{x(a.unread),s(n=>[...i.filter(d=>{let P=n.findIndex(v=>v._id===d._id);return P!==-1?(n[P]={...d,markAsRead:()=>u(d._id)},!1):!0}).map(d=>({...d,markAsRead:()=>u(d._id)})),...n])};return t.notification.on(o),()=>{t.notification.off(o)}},[u,t]);let E=(0,e.useCallback)(()=>{l()},[l]);return(0,e.useEffect)(()=>{s([]),N(!0),g(!0),l()},[t]),{notifications:f,isLoading:m,isFirstLoad:R,isError:c,error:A,hasMore:_,unread:L,fetchMore:E,markAllAsRead:I}};0&&(module.exports={useNotifications});
@@ -1,5 +1,5 @@
1
1
  import { Notification } from '../dto/notifications/notification.interface.cjs';
2
- import '@teknify/core';
2
+ import '@tnf-dev/core';
3
3
 
4
4
  declare const useNotifications: () => {
5
5
  notifications: Notification[];
@@ -10,7 +10,7 @@ Valid keys: `+JSON.stringify(Object.keys(c),null," "));var X=Q(P,O,b,T,S+"."+O,
10
10
  `+r.toString());return}var a=o.options.parent;if(a){var s=a.rules.raw[e.extend];ve(s,r,n,t)}return}if(Array.isArray(e.extend)){for(var f=0;f<e.extend.length;f++){var l=e.extend[f],d=typeof l=="string"?L({},e,{extend:l}):e.extend[f];ve(d,r,n,t)}return}for(var p in e.extend){if(p==="extend"){ve(e.extend.extend,r,n,t);continue}if(cr(e.extend[p])){p in t||(t[p]={}),ve(e.extend[p],r,n,t[p]);continue}t[p]=e.extend[p]}}function xa(e,r,n,t){for(var i in e)if(i!=="extend"){if(cr(t[i])&&cr(e[i])){ve(e[i],r,n,t[i]);continue}if(cr(e[i])){t[i]=ve(e[i],r,n);continue}t[i]=e[i]}}function ve(e,r,n,t){return t===void 0&&(t={}),ba(e,r,n,t),xa(e,r,n,t),t}function Sa(){function e(n,t,i){return"extend"in n?ve(n,t,i):n}function r(n,t,i){if(t!=="extend")return n;if(n==null||n===!1){for(var o in i[lt])i.prop(o,null);return i[lt]=null,null}if(typeof n=="object"){for(var a in n)i.prop(a,n[a]);i[lt]=n}return null}return{onProcessStyle:e,onChangeValue:r}}var Ln=Sa;var Dn=/\s*,\s*/g,Pa=/&/g,Ra=/\$([\w-]+)/g;function wa(){function e(i,o){return function(a,s){var f=i.getRule(s)||o&&o.getRule(s);return f?f.selector:(process.env.NODE_ENV!=="production"&&A(!1,'[JSS] Could not find the referenced rule "'+s+'" in "'+(i.options.meta||i.toString())+'".'),s)}}function r(i,o){for(var a=o.split(Dn),s=i.split(Dn),f="",l=0;l<a.length;l++)for(var d=a[l],p=0;p<s.length;p++){var v=s[p];f&&(f+=", "),f+=v.indexOf("&")!==-1?v.replace(Pa,d):d+" "+v}return f}function n(i,o,a){if(a)return L({},a,{index:a.index+1});var s=i.options.nestingLevel;s=s===void 0?1:s+1;var f=L({},i.options,{nestingLevel:s,index:o.indexOf(i)+1});return delete f.name,f}function t(i,o,a){if(o.type!=="style")return i;var s=o,f=s.options.parent,l,d;for(var p in i){var v=p.indexOf("&")!==-1,y=p[0]==="@";if(!(!v&&!y)){if(l=n(s,f,l),v){var w=r(p,s.selector);d||(d=e(f,a)),w=w.replace(Ra,d);var x=s.key+"-"+p;"replaceRule"in f?f.replaceRule(x,i[p],L({},l,{selector:w})):f.addRule(x,i[p],L({},l,{selector:w}))}else y&&f.addRule(p,{},l).addRule(s.key,i[p],{selector:s.selector});delete i[p]}}return i}return{onProcessStyle:t}}var Fn=wa;function ct(e,r){if(!r)return!0;if(Array.isArray(r)){for(var n=0;n<r.length;n++){var t=ct(e,r[n]);if(!t)return!1}return!0}if(r.indexOf(" ")>-1)return ct(e,r.split(" "));var i=e.options.parent;if(r[0]==="$"){var o=i.getRule(r.substr(1));return o?o===e?(process.env.NODE_ENV!=="production"&&A(!1,`[JSS] Cyclic composition detected.
11
11
  `+e.toString()),!1):(i.classes[e.key]+=" "+i.classes[o.key],!0):(process.env.NODE_ENV!=="production"&&A(!1,`[JSS] Referenced rule is not defined.
12
12
  `+e.toString()),!1)}return i.classes[e.key]+=" "+r,!0}function Ca(){function e(r,n){return"composes"in r&&(ct(n,r.composes),delete r.composes),r}return{onProcessStyle:e}}var Vn=Ca;var Ea=/[A-Z]/g,Ta=/^ms-/,dt={};function ka(e){return"-"+e.toLowerCase()}function Oa(e){if(dt.hasOwnProperty(e))return dt[e];var r=e.replace(Ea,ka);return dt[e]=Ta.test(r)?"-"+r:r}var pt=Oa;function dr(e){var r={};for(var n in e){var t=n.indexOf("--")===0?n:pt(n);r[t]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?r.fallbacks=e.fallbacks.map(dr):r.fallbacks=dr(e.fallbacks)),r}function Na(){function e(n){if(Array.isArray(n)){for(var t=0;t<n.length;t++)n[t]=dr(n[t]);return n}return dr(n)}function r(n,t,i){if(t.indexOf("--")===0)return n;var o=pt(t);return t===o?n:(i.prop(o,n),null)}return{onProcessStyle:e,onChangeValue:r}}var Wn=Na;var u=lr&&CSS?CSS.px:"px",pr=lr&&CSS?CSS.ms:"ms",Ce=lr&&CSS?CSS.percent:"%",Aa={"animation-delay":pr,"animation-duration":pr,"background-position":u,"background-position-x":u,"background-position-y":u,"background-size":u,border:u,"border-bottom":u,"border-bottom-left-radius":u,"border-bottom-right-radius":u,"border-bottom-width":u,"border-left":u,"border-left-width":u,"border-radius":u,"border-right":u,"border-right-width":u,"border-top":u,"border-top-left-radius":u,"border-top-right-radius":u,"border-top-width":u,"border-width":u,"border-block":u,"border-block-end":u,"border-block-end-width":u,"border-block-start":u,"border-block-start-width":u,"border-block-width":u,"border-inline":u,"border-inline-end":u,"border-inline-end-width":u,"border-inline-start":u,"border-inline-start-width":u,"border-inline-width":u,"border-start-start-radius":u,"border-start-end-radius":u,"border-end-start-radius":u,"border-end-end-radius":u,margin:u,"margin-bottom":u,"margin-left":u,"margin-right":u,"margin-top":u,"margin-block":u,"margin-block-end":u,"margin-block-start":u,"margin-inline":u,"margin-inline-end":u,"margin-inline-start":u,padding:u,"padding-bottom":u,"padding-left":u,"padding-right":u,"padding-top":u,"padding-block":u,"padding-block-end":u,"padding-block-start":u,"padding-inline":u,"padding-inline-end":u,"padding-inline-start":u,"mask-position-x":u,"mask-position-y":u,"mask-size":u,height:u,width:u,"min-height":u,"max-height":u,"min-width":u,"max-width":u,bottom:u,left:u,top:u,right:u,inset:u,"inset-block":u,"inset-block-end":u,"inset-block-start":u,"inset-inline":u,"inset-inline-end":u,"inset-inline-start":u,"box-shadow":u,"text-shadow":u,"column-gap":u,"column-rule":u,"column-rule-width":u,"column-width":u,"font-size":u,"font-size-delta":u,"letter-spacing":u,"text-decoration-thickness":u,"text-indent":u,"text-stroke":u,"text-stroke-width":u,"word-spacing":u,motion:u,"motion-offset":u,outline:u,"outline-offset":u,"outline-width":u,perspective:u,"perspective-origin-x":Ce,"perspective-origin-y":Ce,"transform-origin":Ce,"transform-origin-x":Ce,"transform-origin-y":Ce,"transform-origin-z":Ce,"transition-delay":pr,"transition-duration":pr,"vertical-align":u,"flex-basis":u,"shape-margin":u,size:u,gap:u,grid:u,"grid-gap":u,"row-gap":u,"grid-row-gap":u,"grid-column-gap":u,"grid-template-rows":u,"grid-template-columns":u,"grid-auto-rows":u,"grid-auto-columns":u,"box-shadow-x":u,"box-shadow-y":u,"box-shadow-blur":u,"box-shadow-spread":u,"font-line-height":u,"text-shadow-x":u,"text-shadow-y":u,"text-shadow-blur":u};function $n(e){var r=/(-[a-z])/g,n=function(a){return a[1].toUpperCase()},t={};for(var i in e)t[i]=e[i],t[i.replace(r,n)]=e[i];return t}var _a=$n(Aa);function Me(e,r,n){if(r==null)return r;if(Array.isArray(r))for(var t=0;t<r.length;t++)r[t]=Me(e,r[t],n);else if(typeof r=="object")if(e==="fallbacks")for(var i in r)r[i]=Me(i,r[i],n);else for(var o in r)r[o]=Me(e+"-"+o,r[o],n);else if(typeof r=="number"&&isNaN(r)===!1){var a=n[e]||_a[e];return a&&!(r===0&&a===u)?typeof a=="function"?a(r).toString():""+r+a:r.toString()}return r}function Ia(e){e===void 0&&(e={});var r=$n(e);function n(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=Me(a,i[a],r);return i}function t(i,o){return Me(o,i,r)}return{onProcessStyle:n,onChangeValue:t}}var zn=Ia;var ja={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},Ma={position:!0,size:!0},hr={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},ht={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function La(e,r,n){return e.map(function(t){return Un(t,r,n,!1,!0)})}function Bn(e,r,n,t){return n[r]==null?e:e.length===0?[]:Array.isArray(e[0])?Bn(e[0],r,n,t):typeof e[0]=="object"?La(e,r,t):[e]}function Un(e,r,n,t,i){if(!(hr[r]||ht[r]))return[];var o=[];if(ht[r]&&(e=Da(e,n,ht[r],t)),Object.keys(e).length)for(var a in hr[r]){if(e[a]){Array.isArray(e[a])?o.push(Ma[a]===null?e[a]:e[a].join(" ")):o.push(e[a]);continue}hr[r][a]!=null&&o.push(hr[r][a])}return!o.length||i?o:[o]}function Da(e,r,n,t){for(var i in n){var o=n[i];if(typeof e[i]<"u"&&(t||!r.prop(o))){var a,s=Le((a={},a[o]=e[i],a),r)[o];t?r.style.fallbacks[o]=s:r.style[o]=s}delete e[i]}return e}function Le(e,r,n){for(var t in e){var i=e[t];if(Array.isArray(i)){if(!Array.isArray(i[0])){if(t==="fallbacks"){for(var o=0;o<e.fallbacks.length;o++)e.fallbacks[o]=Le(e.fallbacks[o],r,!0);continue}e[t]=Bn(i,t,ja,r),e[t].length||delete e[t]}}else if(typeof i=="object"){if(t==="fallbacks"){e.fallbacks=Le(e.fallbacks,r,!0);continue}e[t]=Un(i,t,r,n),e[t].length||delete e[t]}else e[t]===""&&delete e[t]}return e}function Fa(){function e(r,n){if(!r||n.type!=="style")return r;if(Array.isArray(r)){for(var t=0;t<r.length;t++)r[t]=Le(r[t],n);return r}return Le(r,n)}return{onProcessStyle:e}}var qn=Fa;function De(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,t=Array(r);n<r;n++)t[n]=e[n];return t}function Hn(e){if(Array.isArray(e))return De(e)}function Yn(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jn(e,r){if(e){if(typeof e=="string")return De(e,r);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?De(e,r):void 0}}function Gn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kn(e){return Hn(e)||Yn(e)||Jn(e)||Gn()}var Fe="",mt="",ei="",ri="",Va=se&&"ontouchstart"in document.documentElement;if(se){mr={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Xn=document.createElement("p"),vr=Xn.style,Zn="Transform";for(yr in mr)if(yr+Zn in vr){Fe=yr,mt=mr[yr];break}Fe==="Webkit"&&"msHyphens"in vr&&(Fe="ms",mt=mr.ms,ri="edge"),Fe==="Webkit"&&"-apple-trailing-word"in vr&&(ei="apple")}var mr,Xn,vr,Zn,yr,g={js:Fe,css:mt,vendor:ei,browser:ri,isTouch:Va};function ti(e){return e[1]==="-"||g.js==="ms"?e:"@"+g.css+"keyframes"+e.substr(10)}var Wa={noPrefill:["appearance"],supportedProperty:function(r){return r!=="appearance"?!1:g.js==="ms"?"-webkit-"+r:g.css+r}},$a={noPrefill:["color-adjust"],supportedProperty:function(r){return r!=="color-adjust"?!1:g.js==="Webkit"?g.css+"print-"+r:r}},za=/[-\s]+(.)?/g;function Ba(e,r){return r?r.toUpperCase():""}function vt(e){return e.replace(za,Ba)}function he(e){return vt("-"+e)}var Ua={noPrefill:["mask"],supportedProperty:function(r,n){if(!/^mask/.test(r))return!1;if(g.js==="Webkit"){var t="mask-image";if(vt(t)in n)return r;if(g.js+he(t)in n)return g.css+r}return r}},qa={noPrefill:["text-orientation"],supportedProperty:function(r){return r!=="text-orientation"?!1:g.vendor==="apple"&&!g.isTouch?g.css+r:r}},Ha={noPrefill:["transform"],supportedProperty:function(r,n,t){return r!=="transform"?!1:t.transform?r:g.css+r}},Ya={noPrefill:["transition"],supportedProperty:function(r,n,t){return r!=="transition"?!1:t.transition?r:g.css+r}},Ja={noPrefill:["writing-mode"],supportedProperty:function(r){return r!=="writing-mode"?!1:g.js==="Webkit"||g.js==="ms"&&g.browser!=="edge"?g.css+r:r}},Ga={noPrefill:["user-select"],supportedProperty:function(r){return r!=="user-select"?!1:g.js==="Moz"||g.js==="ms"||g.vendor==="apple"?g.css+r:r}},Ka={supportedProperty:function(r,n){if(!/^break-/.test(r))return!1;if(g.js==="Webkit"){var t="WebkitColumn"+he(r);return t in n?g.css+"column-"+r:!1}if(g.js==="Moz"){var i="page"+he(r);return i in n?"page-"+r:!1}return!1}},Xa={supportedProperty:function(r,n){if(!/^(border|margin|padding)-inline/.test(r))return!1;if(g.js==="Moz")return r;var t=r.replace("-inline","");return g.js+he(t)in n?g.css+t:!1}},Za={supportedProperty:function(r,n){return vt(r)in n?r:!1}},Qa={supportedProperty:function(r,n){var t=he(r);return r[0]==="-"||r[0]==="-"&&r[1]==="-"?r:g.js+t in n?g.css+r:g.js!=="Webkit"&&"Webkit"+t in n?"-webkit-"+r:!1}},es={supportedProperty:function(r){return r.substring(0,11)!=="scroll-snap"?!1:g.js==="ms"?""+g.css+r:r}},rs={supportedProperty:function(r){return r!=="overscroll-behavior"?!1:g.js==="ms"?g.css+"scroll-chaining":r}},ts={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},ns={supportedProperty:function(r,n){var t=ts[r];return t&&g.js+he(t)in n?g.css+t:!1}},ni={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},is=Object.keys(ni),os=function(r){return g.css+r},as={supportedProperty:function(r,n,t){var i=t.multiple;if(is.indexOf(r)>-1){var o=ni[r];if(!Array.isArray(o))return g.js+he(o)in n?g.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(g.js+he(o[0])in n))return!1;return o.map(os)}return!1}},ii=[Wa,$a,Ua,qa,Ha,Ya,Ja,Ga,Ka,Xa,Za,Qa,es,rs,ns,as],Qn=ii.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),ss=ii.filter(function(e){return e.noPrefill}).reduce(function(e,r){return e.push.apply(e,Kn(r.noPrefill)),e},[]),Ve,ye={};if(se){Ve=document.createElement("p"),gr=window.getComputedStyle(document.documentElement,"");for(br in gr)isNaN(br)||(ye[gr[br]]=gr[br]);ss.forEach(function(e){return delete ye[e]})}var gr,br;function xr(e,r){if(r===void 0&&(r={}),!Ve)return e;if(process.env.NODE_ENV!=="benchmark"&&ye[e]!=null)return ye[e];(e==="transition"||e==="transform")&&(r[e]=e in Ve.style);for(var n=0;n<Qn.length&&(ye[e]=Qn[n](e,Ve.style,r),!ye[e]);n++);try{Ve.style[e]=""}catch{return!1}return ye[e]}var Ee={},fs={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},us=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,pe;function ls(e,r,n){if(r==="var")return"var";if(r==="all")return"all";if(n==="all")return", all";var t=r?xr(r):", "+xr(n);return t||r||n}se&&(pe=document.createElement("p"));function yt(e,r){var n=r;if(!pe||e==="content")return r;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var t=e+n;if(process.env.NODE_ENV!=="benchmark"&&Ee[t]!=null)return Ee[t];try{pe.style[e]=n}catch{return Ee[t]=!1,!1}if(fs[e])n=n.replace(us,ls);else if(pe.style[e]===""&&(n=g.css+n,n==="-ms-flex"&&(pe.style[e]="-ms-flexbox"),pe.style[e]=n,pe.style[e]===""))return Ee[t]=!1,!1;return pe.style[e]="",Ee[t]=n,Ee[t]}function cs(){function e(i){if(i.type==="keyframes"){var o=i;o.at=ti(o.at)}}function r(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(r);continue}var s=!1,f=xr(o);f&&f!==o&&(s=!0);var l=!1,d=yt(f,ce(a));d&&d!==a&&(l=!0),(s||l)&&(s&&delete i[o],i[f||o]=d||a)}return i}function n(i,o){return o.type!=="style"?i:r(i)}function t(i,o){return yt(o,ce(i))||i}return{onProcessRule:e,onProcessStyle:n,onChangeValue:t}}var oi=cs;function ds(){var e=function(n,t){return n.length===t.length?n>t?1:-1:n.length-t.length};return{onProcessStyle:function(n,t){if(t.type!=="style")return n;for(var i={},o=Object.keys(n).sort(e),a=0;a<o.length;a++)i[o[a]]=n[o[a]];return i}}}var ai=ds;var ps=function(r){return r===void 0&&(r={}),{plugins:[Nn(),_n(r.observable),In(),Mn(),Ln(),Fn(),Vn(),Wn(),zn(r.defaultUnit),qn(),oi(),ai()]}},Sr=ps;function hs(e){var r={};return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var si=hs;var ms=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,al=si(function(e){return ms.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var vs=1e4,ys=je(Sr()),gs=function(r){r===void 0&&(r=ys);var n=new Map,t=0,i,o=function(){return(!i||i.rules.index.length>vs)&&(i=r.createStyleSheet().attach()),i};function a(){var s=arguments,f=JSON.stringify(s),l=n.get(f);if(l)return l.className;var d=[];for(var p in s){var v=s[p];if(!Array.isArray(v)){d.push(v);continue}for(var y=0;y<v.length;y++)d.push(v[y])}for(var w={},x=[],F=0;F<d.length;F++){var H=d[F];if(H){var E=H;if(typeof H=="string"){var $=n.get(H);$&&($.labels.length&&x.push.apply(x,$.labels),E=$.style)}E.label&&x.indexOf(E.label)===-1&&x.push(E.label),Object.assign(w,E)}}delete w.label;var M=x.length===0?"css":x.join("-"),G=M+"-"+t++;o().addRule(G,w);var D=o().classes[G],B={style:w,labels:x,className:D};return n.set(f,B),n.set(D,B),D}return a.getSheet=o,a},bs=gs(),fi=bs;var Ss=Number.MIN_SAFE_INTEGER||-1e9,Ps=function(){return Ss++},Rs=(0,W.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!se}),ui=new Map,bt=function(r,n){var t=r.managers;if(t)return t[n]||(t[n]=new nt),t[n];var i=ui.get(n);return i||(i=new nt,ui.set(n,i)),i},li=function(r){var n=r.sheet,t=r.context,i=r.index,o=r.theme;if(n){var a=bt(t,i);a.manage(o),t.registry&&t.registry.add(n)}},ws=function(r){if(r.sheet){var n=bt(r.context,r.index);n.unmanage(r.theme)}},Cs=je(Sr()),di=new WeakMap,pi=function(r){return di.get(r)},Es=function(r,n){di.set(r,n)},Ts=function(r){var n=r.styles;return typeof n!="function"?n:(process.env.NODE_ENV!=="production"&&A(n.length!==0,"[JSS] <"+(r.name||"Hook")+` />'s styles function doesn't rely on the "theme" argument. We recommend declaring styles as an object instead.`),n(r.theme))};function ks(e,r){var n;e.context.id&&e.context.id.minify!=null&&(n=e.context.id.minify);var t=e.context.classNamePrefix||"";e.name&&!n&&(t+=e.name.replace(/\s/g,"-")+"-");var i="";return e.name&&(i=e.name+", "),i+=typeof e.styles=="function"?"Themed":"Unthemed",L({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:t,link:r,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}var Os=function(r){if(!r.context.disableStylesGeneration){var n=bt(r.context,r.index),t=n.get(r.theme);if(t)return t;var i=r.context.jss||Cs,o=Ts(r),a=it(o),s=i.createStyleSheet(o,ks(r,a!==null));return Es(s,{dynamicStyles:a,styles:o}),n.add(r.theme,s),s}},Ns=function(r,n){for(var t in n)r.deleteRule(n[t])},As=function(r,n,t){for(var i in t)n.updateOne(t[i],r)},_s=function(r,n){var t=pi(r);if(t){var i={};for(var o in t.dynamicStyles)for(var a=r.rules.index.length,s=r.addRule(o,t.dynamicStyles[o]),f=a;f<r.rules.index.length;f++){var l=r.rules.index[f];r.updateOne(l,n),i[s===l?o:l.key]=l}return i}},Is=function(r,n){if(!n)return r.classes;var t=pi(r);if(!t)return r.classes;var i={};for(var o in t.styles)i[o]=r.classes[o],o in n&&(i[o]+=" "+r.classes[n[o].key]);return i};function ci(e){return e?W.useEffect:W.default.useInsertionEffect||W.useLayoutEffect}var gt={},z=function(r,n){n===void 0&&(n={});var t=n,i=t.index,o=i===void 0?Ps():i,a=t.theming,s=t.name,f=Ue(t,["index","theming","name"]),l=a&&a.context||Br,d=function(y){return typeof r=="function"&&(y||(0,W.useContext)(l))||gt},p={};return function(y){var w=(0,W.useRef)(!0),x=(0,W.useContext)(Rs),F=d(y&&y.theme),H=(0,W.useMemo)(function(){var G=Os({context:x,styles:r,name:s,theme:F,index:o,sheetOptions:f});return G&&x.isSSR&&li({index:o,context:x,sheet:G,theme:F}),[G,G?_s(G,y):null]},[x,F]),E=H[0],$=H[1];ci(x.isSSR)(function(){E&&$&&!w.current&&As(y,E,$)},[y]),ci(x.isSSR)(function(){return E&&li({index:o,context:x,sheet:E,theme:F}),function(){E&&(ws({index:o,context:x,sheet:E,theme:F}),$&&Ns(E,$))}},[E]);var M=(0,W.useMemo)(function(){return E&&$?Is(E,$):p},[E,$]);return(0,W.useDebugValue)(M),(0,W.useDebugValue)(F===gt?"No theme":F),(0,W.useEffect)(function(){w.current=!1}),M}};var Rl=Symbol("react-jss-styled");var js=function(r){return r===void 0&&(r=fi),function(t,i){var o=arguments;if(i&&i.css){var a=r(i.css),s=Object.assign({},i);s.className=i.className?i.className+" "+a:a,delete s.css,o[1]=s}return W.createElement.apply(void 0,o)}},wl=js();var Y="teknify";var xt=require("react/jsx-runtime"),Ms=e=>(0,xt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...e,children:(0,xt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"})}),St=Ms;var Pt=require("react/jsx-runtime"),Ls=e=>(0,Pt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...e,children:(0,Pt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})}),Rt=Ls;var wt=require("react/jsx-runtime"),Ds=e=>(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...e,children:(0,wt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),Ct=Ds;var We=require("react/jsx-runtime"),Fs=z({button:e=>({width:40,height:40,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",backgroundColor:"#fff",border:"none",cursor:"pointer",transition:"all 0.2s ease-in-out",position:"relative","&:hover":{backgroundColor:"#f5f5f5"},...e.active&&{backgroundColor:"#f1f1f1"}}),badge:{position:"absolute",top:0,right:0,padding:"2px 6px",height:18,minWidth:18,backgroundColor:"red",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:100,color:"#fff",fontSize:10,visibility:"hidden",opacity:0,transition:"all 0.2s ease-in-out",scale:.8,userSelect:"none"},badgeOpen:{visibility:"visible",opacity:1,scale:1}},{name:Y}),Vs=({className:e,counts:r,active:n,...t})=>{let i=Fs({counts:r,active:n}),o=(0,Et.useMemo)(()=>r<=99?`${r}`:"99+",[r]),a=(0,Et.useMemo)(()=>r>0,[r]);return(0,We.jsxs)("button",{...t,className:`${i.button} ${e}`,children:[(0,We.jsx)(Rt,{width:24,height:24}),(0,We.jsx)("div",{className:N(i.badge,a&&i.badgeOpen),children:o})]})},Pr=Vs;var hi=require("react/jsx-runtime"),Ws=z({button:e=>({textDecoration:"none",background:`var(--${e.variant}-color)`,borderRadius:"var(--border-radius)",color:e.variant==="tertiary"?"#000":"#fff",fontWeight:500,border:"none",cursor:"pointer",fontSize:12,...e.icon?{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"}:{minWidth:100,padding:"8px 12px"},"&:hover":{background:`var(--${e.variant}-color-darker)`}})},{name:Y}),$s=({className:e,variant:r="tertiary",icon:n=!1,...t})=>{let i=Ws({variant:r,icon:n});return(0,hi.jsx)("button",{...t,className:N(i.button,e)})},ne=$s;var xi=require("react");var gi=require("@teknify/js"),Rr=require("react");var mi={components:{NotificationHeader:{notifications:"Notifications",readAll:"Read all"},Empty:{noNotifications:"No notifications"},Loader:{loading:"Loading..."},NotificationItem:{markAsRead:"Mark as read"}}};var yi=require("react/jsx-runtime"),zs=z({styleProvider:{fontFamily:"inherit, sans-serif",fontSize:13,"--background-color":"#f1f1f1","--card-background-color":"#fff","--primary-color":"#000088","--secondary-color":"#00C16E","--tertiary-color":"#f6f6f6","--primary-color-darker":"#000066","--secondary-color-darker":"#009955","--border-radius":"12px","& *::-webkit-scrollbar":{width:8,height:8},"& *::-webkit-scrollbar-thumb":{borderRadius:10,background:"#0003"}}}),Bs=({children:e})=>{let r=zs();return(0,yi.jsx)("div",{className:N(r.styleProvider),children:e})},vi=Bs;var Tt=require("react/jsx-runtime"),oe=(0,Rr.createContext)({applicationId:"",subscriberId:""}),Us=({applicationId:e,subscriberId:r,children:n,language:t,baseUrl:i,locale:o,socketUrl:a})=>{let s=(0,Rr.useMemo)(()=>({applicationId:e,subscriberId:r,client:new gi.TeknifyClient({applicationId:e,subscriberId:r,language:t,baseUrl:i,socketUrl:a}),locale:{...mi,...o}}),[e,r,t,i,a,o]);return(0,Tt.jsx)(oe.Provider,{value:s,children:(0,Tt.jsx)(vi,{children:n})})},bi=Us;var Si=require("react/jsx-runtime"),qs=z({empty:{textAlign:"center",padding:"20px 0"}},{name:Y}),Hs=()=>{let e=qs(),{locale:r}=(0,xi.useContext)(oe);return(0,Si.jsx)("div",{className:N(e.empty),children:r.components.Empty.noNotifications})},wr=Hs;var Pi=require("react/jsx-runtime"),Ys=z({error:{padding:10}}),Js=({message:e})=>{let r=Ys();return(0,Pi.jsx)("div",{className:N(r.error),children:e})},Cr=Js;var $e=require("react"),Oi=ue(require("react-infinite-scroller"),1);var U=require("react");var kt=()=>{let{client:e,subscriberId:r}=(0,U.useContext)(oe),[n,t]=(0,U.useState)([]),[i,o]=(0,U.useState)(!1),[a,s]=(0,U.useState)(null),[f,l]=(0,U.useState)(!1),[d,p]=(0,U.useState)(!0),[v,y]=(0,U.useState)(!0),[w,x]=(0,U.useState)(0),[F,H]=(0,U.useState)({}),E=(0,U.useCallback)(async D=>{try{t(B=>B.map(Z=>Z._id===D?{...Z,isRead:!0}:Z)),await e.notification.markAsRead(D)}catch{t(Z=>Z.map(V=>V._id===D?{...V,isRead:!1}:V))}},[]),$=(0,U.useCallback)(async()=>{await e.notification.markAllAsRead(),t(D=>D.map(B=>({...B,isRead:!0})))},[]),M=(0,U.useCallback)(async()=>{if(!(f||i))try{l(!0);let D=F==null?void 0:F[r],B=await e.notification.getNotifications({...D?{cursor:D}:{}});t(Z=>[...Z,...B.data.filter(V=>!Z.find(K=>K._id===V._id)).map(V=>({...V,markAsRead:()=>E(V._id)}))]),y(!!B.pagination.continueCursor),H({[r]:B.pagination.continueCursor}),x(B.unread)}catch{}finally{l(!1),p(!1)}},[f,E,i,e]);(0,U.useEffect)(()=>{M()},[]),(0,U.useEffect)(()=>{t([])},[e]),(0,U.useEffect)(()=>{let D=(B,{counts:Z})=>{x(Z.unread),t(V=>[...B.filter(K=>{let be=V.findIndex(ke=>ke._id===K._id);return be!==-1?(V[be]={...K,markAsRead:()=>E(K._id)},!1):!0}).map(K=>({...K,markAsRead:()=>E(K._id)})),...V])};return e.notification.on(D),()=>{e.notification.off(D)}},[E,e]);let G=(0,U.useCallback)(()=>{M()},[M]);return(0,U.useEffect)(()=>{t([]),y(!0),p(!0),M()},[e]),{notifications:n,isLoading:f,isFirstLoad:d,isError:i,error:a,hasMore:v,unread:w,fetchMore:G,markAllAsRead:$}};var Ri=require("react");var wi=require("react/jsx-runtime"),Gs=z({loader:{textAlign:"center",padding:"20px 0"}}),Ks=()=>{let e=Gs(),{locale:r}=(0,Ri.useContext)(oe);return(0,wi.jsx)("div",{className:N(e.loader),children:r.components.Loader.loading})},Er=Ks;var Ci=require("react");var Te=require("react/jsx-runtime"),Xs=z({notificationHeader:{padding:"10px 15px",borderBottom:"1px solid #0001",display:"flex",justifyContent:"space-between",background:"var(--card-background-color)",borderRadius:"5px 5px 0 0",height:36,alignItems:"center"},notificationHeaderTitle:{fontSize:15,fontWeight:600,flex:1}},{name:Y}),Zs=({markAllAsRead:e})=>{let r=Xs(),{locale:n}=(0,Ci.useContext)(oe);return(0,Te.jsxs)("div",{className:N(r.notificationHeader),children:[(0,Te.jsx)("h2",{className:N(r.notificationHeaderTitle),children:n.components.NotificationHeader.notifications}),(0,Te.jsx)("div",{children:(0,Te.jsx)(ne,{onClick:e,children:n.components.NotificationHeader.readAll})})]})},Tr=Zs;var Ti=ue(require("sanitize-html"),1);var ge=require("react/jsx-runtime"),Qs=z({actions:{position:"absolute",top:5,right:5,display:"flex",gap:5,padding:0,background:"#fafafa",borderRadius:5},button:{background:"transparent","&:hover":{background:"#fafafa"}}},{name:Y}),ef=({notification:e})=>{let r=Qs();return(0,ge.jsxs)("div",{className:N(r.actions,`${Y}-actions`),children:[!e.isRead&&(0,ge.jsx)(ne,{icon:!0,onClick:e.markAsRead,className:N(r.button),children:(0,ge.jsx)(Ct,{width:12,height:12})}),(0,ge.jsx)(ne,{icon:!0,className:N(r.button),children:(0,ge.jsx)(St,{width:12,height:12})})]})},Ei=ef;var ee=require("react/jsx-runtime"),rf=z({notificationItem:{padding:"10px 15px",display:"flex",flexWrap:"wrap",columnGap:10,flexDirection:"column",margin:10,background:"var(--card-background-color)",borderRadius:10,border:"1px solid #ddd",position:"relative",[`& .${Y}-actions`]:{visibility:"hidden",opacity:0,transition:"0.3s ease-in-out"},[`&:hover .${Y}-actions`]:{visibility:"visible",opacity:1}},notificationItemImage:{width:24,height:24,objectFit:"cover"},notificationItemTitle:{fontSize:14,fontWeight:600,paddingBottom:5,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},notificationItemBody:{fontSize:14,lineClamp:2,overflow:"hidden",textOverflow:"ellipsis"},notificationItemActions:{display:"flex",gap:8,marginTop:10,alignItems:"center",justifyContent:"flex-end",width:"100%"},unreadDot:{width:7,height:7,borderRadius:100,background:"var(--primary-color)",position:"relative","&::before":{content:'""',position:"absolute",top:-3,left:-3,width:"calc(100% + 6px)",height:"calc(100% + 6px)",borderRadius:100,background:"var(--primary-color)",opacity:.2}}},{name:Y}),tf=({notification:e})=>{var n;let r=rf();return(0,ee.jsxs)("div",{className:N(r.notificationItem),children:[(0,ee.jsxs)("div",{style:{display:"flex",gap:10,width:"100%"},children:[(0,ee.jsx)("div",{children:e.icon&&(0,ee.jsx)("img",{src:e.icon,alt:e.title,width:32,height:32,className:N(r.notificationItemImage)})}),(0,ee.jsxs)("div",{style:{flex:1,overflow:"hidden"},children:[(0,ee.jsx)("h3",{className:N(r.notificationItemTitle),children:e.title}),(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,Ti.default)(e.message)},className:N(r.notificationItemBody)})]}),!e.isRead&&(0,ee.jsx)("div",{className:N(r.unreadDot)})]}),(0,ee.jsx)("div",{className:N(r.notificationItemActions),children:(n=e.actionButtons)==null?void 0:n.map(t=>(0,ee.jsx)("a",{href:t.href,target:t.target,children:(0,ee.jsx)(ne,{variant:"secondary",children:t.label})},t.href))}),(0,ee.jsx)(Ei,{notification:e})]})},kr=tf;var ae=require("react");var ki=require("react/jsx-runtime"),nf=z({popover:{width:"100%",height:"100%",maxWidth:400,maxHeight:500,boxShadow:"0 10px 40px #0001",position:"fixed",background:"#fff",borderRadius:10,visibility:"hidden",opacity:0,scale:.8,transition:"all 0.3s",backgroundColor:"var(--background-color)",border:"1px solid var(--card-background-color)"},popoverOpen:{top:0,left:0,visibility:"visible",opacity:1,scale:1}},{name:Y}),of=({open:e,anchorElement:r,onClose:n,children:t})=>{let i=nf(),[o,a]=(0,ae.useState)(null),[s,f]=(0,ae.useState)(typeof window>"u"?0:window.innerWidth),l=(0,ae.useMemo)(()=>{if(!r)return 0;let v=r.getBoundingClientRect();return v.top+v.height+20},[r,s]),d=(0,ae.useMemo)(()=>r?r.getBoundingClientRect().left+10:0,[r,s]),p=(0,ae.useMemo)(()=>{if(!o||!r)return!0;let v=r.getBoundingClientRect(),y=o.getBoundingClientRect();return v.left+y.width>s},[o,r,s]);return(0,ae.useEffect)(()=>{let v=()=>{e&&(n==null||n())};return window.addEventListener("click",v),()=>{window.removeEventListener("click",v)}},[e]),(0,ae.useEffect)(()=>{let v=()=>{f(window.innerWidth)};return window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[]),(0,ki.jsx)("div",{className:N(i.popover,e&&i.popoverOpen),style:{top:l,left:d,...p?{transform:"translateX(calc(-100% + 20px))"}:{}},ref:a,onClick:v=>{v.stopPropagation()},children:t})},Or=of;var q=require("react/jsx-runtime"),af=z({inboxContent:{height:"100%",display:"flex",flexDirection:"column"},inboxContentList:{flex:1,overflowY:"auto"}},{name:Y}),sf={Bell:Pr,Button:ne,NotificationHeader:Tr,Empty:wr,Loader:Er,NotificationItem:kr,NotificationPopover:Or,NotificationError:Cr},ff=({components:e})=>{let[r,n]=(0,$e.useState)(null),[t,i]=(0,$e.useState)(!1),{Bell:o,Empty:a,Loader:s,NotificationHeader:f,NotificationItem:l,NotificationPopover:d,NotificationError:p}={...sf,...e},v=(0,$e.useCallback)(()=>{i(D=>!D)},[]),{notifications:y,unread:w,isFirstLoad:x,hasMore:F,fetchMore:H,isError:E,error:$,markAllAsRead:M}=kt(),G=af();return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(o,{onClick:D=>{D.stopPropagation(),v()},ref:n,active:t,counts:w}),(0,q.jsx)(d,{open:t,anchorElement:r,onClose:v,children:(0,q.jsxs)("div",{className:N(G.inboxContent),children:[(0,q.jsx)(f,{markAllAsRead:M}),(0,q.jsx)("div",{className:N(G.inboxContentList),children:(0,q.jsxs)(Oi.default,{loadMore:H,hasMore:F&&!E,loader:(0,q.jsx)(s,{},0),useWindow:!1,children:[x?(0,q.jsx)(q.Fragment,{}):(0,q.jsx)(q.Fragment,{children:y.length?(0,q.jsx)(q.Fragment,{children:y.map(D=>(0,q.jsx)(l,{notification:D},D._id))}):(0,q.jsx)(a,{})}),E&&(0,q.jsx)(p,{message:$==null?void 0:$.message})]})})]})})]})},Ot=ff;0&&(module.exports={Bell,Button,Empty,Inbox,Loader,NotificationError,NotificationHeader,NotificationItem,NotificationPopover,TeknifyContext,TeknifyInbox,TeknifyProvider,useNotifications});
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kn(e){return Hn(e)||Yn(e)||Jn(e)||Gn()}var Fe="",mt="",ei="",ri="",Va=se&&"ontouchstart"in document.documentElement;if(se){mr={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Xn=document.createElement("p"),vr=Xn.style,Zn="Transform";for(yr in mr)if(yr+Zn in vr){Fe=yr,mt=mr[yr];break}Fe==="Webkit"&&"msHyphens"in vr&&(Fe="ms",mt=mr.ms,ri="edge"),Fe==="Webkit"&&"-apple-trailing-word"in vr&&(ei="apple")}var mr,Xn,vr,Zn,yr,g={js:Fe,css:mt,vendor:ei,browser:ri,isTouch:Va};function ti(e){return e[1]==="-"||g.js==="ms"?e:"@"+g.css+"keyframes"+e.substr(10)}var Wa={noPrefill:["appearance"],supportedProperty:function(r){return r!=="appearance"?!1:g.js==="ms"?"-webkit-"+r:g.css+r}},$a={noPrefill:["color-adjust"],supportedProperty:function(r){return r!=="color-adjust"?!1:g.js==="Webkit"?g.css+"print-"+r:r}},za=/[-\s]+(.)?/g;function Ba(e,r){return r?r.toUpperCase():""}function vt(e){return e.replace(za,Ba)}function he(e){return vt("-"+e)}var Ua={noPrefill:["mask"],supportedProperty:function(r,n){if(!/^mask/.test(r))return!1;if(g.js==="Webkit"){var t="mask-image";if(vt(t)in n)return r;if(g.js+he(t)in n)return g.css+r}return r}},qa={noPrefill:["text-orientation"],supportedProperty:function(r){return r!=="text-orientation"?!1:g.vendor==="apple"&&!g.isTouch?g.css+r:r}},Ha={noPrefill:["transform"],supportedProperty:function(r,n,t){return r!=="transform"?!1:t.transform?r:g.css+r}},Ya={noPrefill:["transition"],supportedProperty:function(r,n,t){return r!=="transition"?!1:t.transition?r:g.css+r}},Ja={noPrefill:["writing-mode"],supportedProperty:function(r){return r!=="writing-mode"?!1:g.js==="Webkit"||g.js==="ms"&&g.browser!=="edge"?g.css+r:r}},Ga={noPrefill:["user-select"],supportedProperty:function(r){return r!=="user-select"?!1:g.js==="Moz"||g.js==="ms"||g.vendor==="apple"?g.css+r:r}},Ka={supportedProperty:function(r,n){if(!/^break-/.test(r))return!1;if(g.js==="Webkit"){var t="WebkitColumn"+he(r);return t in n?g.css+"column-"+r:!1}if(g.js==="Moz"){var i="page"+he(r);return i in n?"page-"+r:!1}return!1}},Xa={supportedProperty:function(r,n){if(!/^(border|margin|padding)-inline/.test(r))return!1;if(g.js==="Moz")return r;var t=r.replace("-inline","");return g.js+he(t)in n?g.css+t:!1}},Za={supportedProperty:function(r,n){return vt(r)in n?r:!1}},Qa={supportedProperty:function(r,n){var t=he(r);return r[0]==="-"||r[0]==="-"&&r[1]==="-"?r:g.js+t in n?g.css+r:g.js!=="Webkit"&&"Webkit"+t in n?"-webkit-"+r:!1}},es={supportedProperty:function(r){return r.substring(0,11)!=="scroll-snap"?!1:g.js==="ms"?""+g.css+r:r}},rs={supportedProperty:function(r){return r!=="overscroll-behavior"?!1:g.js==="ms"?g.css+"scroll-chaining":r}},ts={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},ns={supportedProperty:function(r,n){var t=ts[r];return t&&g.js+he(t)in n?g.css+t:!1}},ni={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},is=Object.keys(ni),os=function(r){return g.css+r},as={supportedProperty:function(r,n,t){var i=t.multiple;if(is.indexOf(r)>-1){var o=ni[r];if(!Array.isArray(o))return g.js+he(o)in n?g.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(g.js+he(o[0])in n))return!1;return o.map(os)}return!1}},ii=[Wa,$a,Ua,qa,Ha,Ya,Ja,Ga,Ka,Xa,Za,Qa,es,rs,ns,as],Qn=ii.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),ss=ii.filter(function(e){return e.noPrefill}).reduce(function(e,r){return e.push.apply(e,Kn(r.noPrefill)),e},[]),Ve,ye={};if(se){Ve=document.createElement("p"),gr=window.getComputedStyle(document.documentElement,"");for(br in gr)isNaN(br)||(ye[gr[br]]=gr[br]);ss.forEach(function(e){return delete ye[e]})}var gr,br;function xr(e,r){if(r===void 0&&(r={}),!Ve)return e;if(process.env.NODE_ENV!=="benchmark"&&ye[e]!=null)return ye[e];(e==="transition"||e==="transform")&&(r[e]=e in Ve.style);for(var n=0;n<Qn.length&&(ye[e]=Qn[n](e,Ve.style,r),!ye[e]);n++);try{Ve.style[e]=""}catch{return!1}return ye[e]}var Ee={},fs={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},us=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,pe;function ls(e,r,n){if(r==="var")return"var";if(r==="all")return"all";if(n==="all")return", all";var t=r?xr(r):", "+xr(n);return t||r||n}se&&(pe=document.createElement("p"));function yt(e,r){var n=r;if(!pe||e==="content")return r;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var t=e+n;if(process.env.NODE_ENV!=="benchmark"&&Ee[t]!=null)return Ee[t];try{pe.style[e]=n}catch{return Ee[t]=!1,!1}if(fs[e])n=n.replace(us,ls);else if(pe.style[e]===""&&(n=g.css+n,n==="-ms-flex"&&(pe.style[e]="-ms-flexbox"),pe.style[e]=n,pe.style[e]===""))return Ee[t]=!1,!1;return pe.style[e]="",Ee[t]=n,Ee[t]}function cs(){function e(i){if(i.type==="keyframes"){var o=i;o.at=ti(o.at)}}function r(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(r);continue}var s=!1,f=xr(o);f&&f!==o&&(s=!0);var l=!1,d=yt(f,ce(a));d&&d!==a&&(l=!0),(s||l)&&(s&&delete i[o],i[f||o]=d||a)}return i}function n(i,o){return o.type!=="style"?i:r(i)}function t(i,o){return yt(o,ce(i))||i}return{onProcessRule:e,onProcessStyle:n,onChangeValue:t}}var oi=cs;function ds(){var e=function(n,t){return n.length===t.length?n>t?1:-1:n.length-t.length};return{onProcessStyle:function(n,t){if(t.type!=="style")return n;for(var i={},o=Object.keys(n).sort(e),a=0;a<o.length;a++)i[o[a]]=n[o[a]];return i}}}var ai=ds;var ps=function(r){return r===void 0&&(r={}),{plugins:[Nn(),_n(r.observable),In(),Mn(),Ln(),Fn(),Vn(),Wn(),zn(r.defaultUnit),qn(),oi(),ai()]}},Sr=ps;function hs(e){var r={};return function(n){return r[n]===void 0&&(r[n]=e(n)),r[n]}}var si=hs;var ms=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,al=si(function(e){return ms.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});var vs=1e4,ys=je(Sr()),gs=function(r){r===void 0&&(r=ys);var n=new Map,t=0,i,o=function(){return(!i||i.rules.index.length>vs)&&(i=r.createStyleSheet().attach()),i};function a(){var s=arguments,f=JSON.stringify(s),l=n.get(f);if(l)return l.className;var d=[];for(var p in s){var v=s[p];if(!Array.isArray(v)){d.push(v);continue}for(var y=0;y<v.length;y++)d.push(v[y])}for(var w={},x=[],F=0;F<d.length;F++){var H=d[F];if(H){var E=H;if(typeof H=="string"){var $=n.get(H);$&&($.labels.length&&x.push.apply(x,$.labels),E=$.style)}E.label&&x.indexOf(E.label)===-1&&x.push(E.label),Object.assign(w,E)}}delete w.label;var M=x.length===0?"css":x.join("-"),G=M+"-"+t++;o().addRule(G,w);var D=o().classes[G],B={style:w,labels:x,className:D};return n.set(f,B),n.set(D,B),D}return a.getSheet=o,a},bs=gs(),fi=bs;var Ss=Number.MIN_SAFE_INTEGER||-1e9,Ps=function(){return Ss++},Rs=(0,W.createContext)({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!se}),ui=new Map,bt=function(r,n){var t=r.managers;if(t)return t[n]||(t[n]=new nt),t[n];var i=ui.get(n);return i||(i=new nt,ui.set(n,i)),i},li=function(r){var n=r.sheet,t=r.context,i=r.index,o=r.theme;if(n){var a=bt(t,i);a.manage(o),t.registry&&t.registry.add(n)}},ws=function(r){if(r.sheet){var n=bt(r.context,r.index);n.unmanage(r.theme)}},Cs=je(Sr()),di=new WeakMap,pi=function(r){return di.get(r)},Es=function(r,n){di.set(r,n)},Ts=function(r){var n=r.styles;return typeof n!="function"?n:(process.env.NODE_ENV!=="production"&&A(n.length!==0,"[JSS] <"+(r.name||"Hook")+` />'s styles function doesn't rely on the "theme" argument. We recommend declaring styles as an object instead.`),n(r.theme))};function ks(e,r){var n;e.context.id&&e.context.id.minify!=null&&(n=e.context.id.minify);var t=e.context.classNamePrefix||"";e.name&&!n&&(t+=e.name.replace(/\s/g,"-")+"-");var i="";return e.name&&(i=e.name+", "),i+=typeof e.styles=="function"?"Themed":"Unthemed",L({},e.sheetOptions,{index:e.index,meta:i,classNamePrefix:t,link:r,generateId:e.sheetOptions&&e.sheetOptions.generateId?e.sheetOptions.generateId:e.context.generateId})}var Os=function(r){if(!r.context.disableStylesGeneration){var n=bt(r.context,r.index),t=n.get(r.theme);if(t)return t;var i=r.context.jss||Cs,o=Ts(r),a=it(o),s=i.createStyleSheet(o,ks(r,a!==null));return Es(s,{dynamicStyles:a,styles:o}),n.add(r.theme,s),s}},Ns=function(r,n){for(var t in n)r.deleteRule(n[t])},As=function(r,n,t){for(var i in t)n.updateOne(t[i],r)},_s=function(r,n){var t=pi(r);if(t){var i={};for(var o in t.dynamicStyles)for(var a=r.rules.index.length,s=r.addRule(o,t.dynamicStyles[o]),f=a;f<r.rules.index.length;f++){var l=r.rules.index[f];r.updateOne(l,n),i[s===l?o:l.key]=l}return i}},Is=function(r,n){if(!n)return r.classes;var t=pi(r);if(!t)return r.classes;var i={};for(var o in t.styles)i[o]=r.classes[o],o in n&&(i[o]+=" "+r.classes[n[o].key]);return i};function ci(e){return e?W.useEffect:W.default.useInsertionEffect||W.useLayoutEffect}var gt={},z=function(r,n){n===void 0&&(n={});var t=n,i=t.index,o=i===void 0?Ps():i,a=t.theming,s=t.name,f=Ue(t,["index","theming","name"]),l=a&&a.context||Br,d=function(y){return typeof r=="function"&&(y||(0,W.useContext)(l))||gt},p={};return function(y){var w=(0,W.useRef)(!0),x=(0,W.useContext)(Rs),F=d(y&&y.theme),H=(0,W.useMemo)(function(){var G=Os({context:x,styles:r,name:s,theme:F,index:o,sheetOptions:f});return G&&x.isSSR&&li({index:o,context:x,sheet:G,theme:F}),[G,G?_s(G,y):null]},[x,F]),E=H[0],$=H[1];ci(x.isSSR)(function(){E&&$&&!w.current&&As(y,E,$)},[y]),ci(x.isSSR)(function(){return E&&li({index:o,context:x,sheet:E,theme:F}),function(){E&&(ws({index:o,context:x,sheet:E,theme:F}),$&&Ns(E,$))}},[E]);var M=(0,W.useMemo)(function(){return E&&$?Is(E,$):p},[E,$]);return(0,W.useDebugValue)(M),(0,W.useDebugValue)(F===gt?"No theme":F),(0,W.useEffect)(function(){w.current=!1}),M}};var Rl=Symbol("react-jss-styled");var js=function(r){return r===void 0&&(r=fi),function(t,i){var o=arguments;if(i&&i.css){var a=r(i.css),s=Object.assign({},i);s.className=i.className?i.className+" "+a:a,delete s.css,o[1]=s}return W.createElement.apply(void 0,o)}},wl=js();var Y="teknify";var xt=require("react/jsx-runtime"),Ms=e=>(0,xt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...e,children:(0,xt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"})}),St=Ms;var Pt=require("react/jsx-runtime"),Ls=e=>(0,Pt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...e,children:(0,Pt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})}),Rt=Ls;var wt=require("react/jsx-runtime"),Ds=e=>(0,wt.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...e,children:(0,wt.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),Ct=Ds;var We=require("react/jsx-runtime"),Fs=z({button:e=>({width:40,height:40,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",backgroundColor:"#fff",border:"none",cursor:"pointer",transition:"all 0.2s ease-in-out",position:"relative","&:hover":{backgroundColor:"#f5f5f5"},...e.active&&{backgroundColor:"#f1f1f1"}}),badge:{position:"absolute",top:0,right:0,padding:"2px 6px",height:18,minWidth:18,backgroundColor:"red",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:100,color:"#fff",fontSize:10,visibility:"hidden",opacity:0,transition:"all 0.2s ease-in-out",scale:.8,userSelect:"none"},badgeOpen:{visibility:"visible",opacity:1,scale:1}},{name:Y}),Vs=({className:e,counts:r,active:n,...t})=>{let i=Fs({counts:r,active:n}),o=(0,Et.useMemo)(()=>r<=99?`${r}`:"99+",[r]),a=(0,Et.useMemo)(()=>r>0,[r]);return(0,We.jsxs)("button",{...t,className:`${i.button} ${e}`,children:[(0,We.jsx)(Rt,{width:24,height:24}),(0,We.jsx)("div",{className:N(i.badge,a&&i.badgeOpen),children:o})]})},Pr=Vs;var hi=require("react/jsx-runtime"),Ws=z({button:e=>({textDecoration:"none",background:`var(--${e.variant}-color)`,borderRadius:"var(--border-radius)",color:e.variant==="tertiary"?"#000":"#fff",fontWeight:500,border:"none",cursor:"pointer",fontSize:12,...e.icon?{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"}:{minWidth:100,padding:"8px 12px"},"&:hover":{background:`var(--${e.variant}-color-darker)`}})},{name:Y}),$s=({className:e,variant:r="tertiary",icon:n=!1,...t})=>{let i=Ws({variant:r,icon:n});return(0,hi.jsx)("button",{...t,className:N(i.button,e)})},ne=$s;var xi=require("react");var gi=require("@tnf-dev/js"),Rr=require("react");var mi={components:{NotificationHeader:{notifications:"Notifications",readAll:"Read all"},Empty:{noNotifications:"No notifications"},Loader:{loading:"Loading..."},NotificationItem:{markAsRead:"Mark as read"}}};var yi=require("react/jsx-runtime"),zs=z({styleProvider:{fontFamily:"inherit, sans-serif",fontSize:13,"--background-color":"#f1f1f1","--card-background-color":"#fff","--primary-color":"#000088","--secondary-color":"#00C16E","--tertiary-color":"#f6f6f6","--primary-color-darker":"#000066","--secondary-color-darker":"#009955","--border-radius":"12px","& *::-webkit-scrollbar":{width:8,height:8},"& *::-webkit-scrollbar-thumb":{borderRadius:10,background:"#0003"}}}),Bs=({children:e})=>{let r=zs();return(0,yi.jsx)("div",{className:N(r.styleProvider),children:e})},vi=Bs;var Tt=require("react/jsx-runtime"),oe=(0,Rr.createContext)({applicationId:"",subscriberId:""}),Us=({applicationId:e,subscriberId:r,children:n,language:t,baseUrl:i,locale:o,socketUrl:a})=>{let s=(0,Rr.useMemo)(()=>({applicationId:e,subscriberId:r,client:new gi.TeknifyClient({applicationId:e,subscriberId:r,language:t,baseUrl:i,socketUrl:a}),locale:{...mi,...o}}),[e,r,t,i,a,o]);return(0,Tt.jsx)(oe.Provider,{value:s,children:(0,Tt.jsx)(vi,{children:n})})},bi=Us;var Si=require("react/jsx-runtime"),qs=z({empty:{textAlign:"center",padding:"20px 0"}},{name:Y}),Hs=()=>{let e=qs(),{locale:r}=(0,xi.useContext)(oe);return(0,Si.jsx)("div",{className:N(e.empty),children:r.components.Empty.noNotifications})},wr=Hs;var Pi=require("react/jsx-runtime"),Ys=z({error:{padding:10}}),Js=({message:e})=>{let r=Ys();return(0,Pi.jsx)("div",{className:N(r.error),children:e})},Cr=Js;var $e=require("react"),Oi=ue(require("react-infinite-scroller"),1);var U=require("react");var kt=()=>{let{client:e,subscriberId:r}=(0,U.useContext)(oe),[n,t]=(0,U.useState)([]),[i,o]=(0,U.useState)(!1),[a,s]=(0,U.useState)(null),[f,l]=(0,U.useState)(!1),[d,p]=(0,U.useState)(!0),[v,y]=(0,U.useState)(!0),[w,x]=(0,U.useState)(0),[F,H]=(0,U.useState)({}),E=(0,U.useCallback)(async D=>{try{t(B=>B.map(Z=>Z._id===D?{...Z,isRead:!0}:Z)),await e.notification.markAsRead(D)}catch{t(Z=>Z.map(V=>V._id===D?{...V,isRead:!1}:V))}},[]),$=(0,U.useCallback)(async()=>{await e.notification.markAllAsRead(),t(D=>D.map(B=>({...B,isRead:!0})))},[]),M=(0,U.useCallback)(async()=>{if(!(f||i))try{l(!0);let D=F==null?void 0:F[r],B=await e.notification.getNotifications({...D?{cursor:D}:{}});t(Z=>[...Z,...B.data.filter(V=>!Z.find(K=>K._id===V._id)).map(V=>({...V,markAsRead:()=>E(V._id)}))]),y(!!B.pagination.continueCursor),H({[r]:B.pagination.continueCursor}),x(B.unread)}catch{}finally{l(!1),p(!1)}},[f,E,i,e]);(0,U.useEffect)(()=>{M()},[]),(0,U.useEffect)(()=>{t([])},[e]),(0,U.useEffect)(()=>{let D=(B,{counts:Z})=>{x(Z.unread),t(V=>[...B.filter(K=>{let be=V.findIndex(ke=>ke._id===K._id);return be!==-1?(V[be]={...K,markAsRead:()=>E(K._id)},!1):!0}).map(K=>({...K,markAsRead:()=>E(K._id)})),...V])};return e.notification.on(D),()=>{e.notification.off(D)}},[E,e]);let G=(0,U.useCallback)(()=>{M()},[M]);return(0,U.useEffect)(()=>{t([]),y(!0),p(!0),M()},[e]),{notifications:n,isLoading:f,isFirstLoad:d,isError:i,error:a,hasMore:v,unread:w,fetchMore:G,markAllAsRead:$}};var Ri=require("react");var wi=require("react/jsx-runtime"),Gs=z({loader:{textAlign:"center",padding:"20px 0"}}),Ks=()=>{let e=Gs(),{locale:r}=(0,Ri.useContext)(oe);return(0,wi.jsx)("div",{className:N(e.loader),children:r.components.Loader.loading})},Er=Ks;var Ci=require("react");var Te=require("react/jsx-runtime"),Xs=z({notificationHeader:{padding:"10px 15px",borderBottom:"1px solid #0001",display:"flex",justifyContent:"space-between",background:"var(--card-background-color)",borderRadius:"5px 5px 0 0",height:36,alignItems:"center"},notificationHeaderTitle:{fontSize:15,fontWeight:600,flex:1}},{name:Y}),Zs=({markAllAsRead:e})=>{let r=Xs(),{locale:n}=(0,Ci.useContext)(oe);return(0,Te.jsxs)("div",{className:N(r.notificationHeader),children:[(0,Te.jsx)("h2",{className:N(r.notificationHeaderTitle),children:n.components.NotificationHeader.notifications}),(0,Te.jsx)("div",{children:(0,Te.jsx)(ne,{onClick:e,children:n.components.NotificationHeader.readAll})})]})},Tr=Zs;var Ti=ue(require("sanitize-html"),1);var ge=require("react/jsx-runtime"),Qs=z({actions:{position:"absolute",top:5,right:5,display:"flex",gap:5,padding:0,background:"#fafafa",borderRadius:5},button:{background:"transparent","&:hover":{background:"#fafafa"}}},{name:Y}),ef=({notification:e})=>{let r=Qs();return(0,ge.jsxs)("div",{className:N(r.actions,`${Y}-actions`),children:[!e.isRead&&(0,ge.jsx)(ne,{icon:!0,onClick:e.markAsRead,className:N(r.button),children:(0,ge.jsx)(Ct,{width:12,height:12})}),(0,ge.jsx)(ne,{icon:!0,className:N(r.button),children:(0,ge.jsx)(St,{width:12,height:12})})]})},Ei=ef;var ee=require("react/jsx-runtime"),rf=z({notificationItem:{padding:"10px 15px",display:"flex",flexWrap:"wrap",columnGap:10,flexDirection:"column",margin:10,background:"var(--card-background-color)",borderRadius:10,border:"1px solid #ddd",position:"relative",[`& .${Y}-actions`]:{visibility:"hidden",opacity:0,transition:"0.3s ease-in-out"},[`&:hover .${Y}-actions`]:{visibility:"visible",opacity:1}},notificationItemImage:{width:24,height:24,objectFit:"cover"},notificationItemTitle:{fontSize:14,fontWeight:600,paddingBottom:5,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},notificationItemBody:{fontSize:14,lineClamp:2,overflow:"hidden",textOverflow:"ellipsis"},notificationItemActions:{display:"flex",gap:8,marginTop:10,alignItems:"center",justifyContent:"flex-end",width:"100%"},unreadDot:{width:7,height:7,borderRadius:100,background:"var(--primary-color)",position:"relative","&::before":{content:'""',position:"absolute",top:-3,left:-3,width:"calc(100% + 6px)",height:"calc(100% + 6px)",borderRadius:100,background:"var(--primary-color)",opacity:.2}}},{name:Y}),tf=({notification:e})=>{var n;let r=rf();return(0,ee.jsxs)("div",{className:N(r.notificationItem),children:[(0,ee.jsxs)("div",{style:{display:"flex",gap:10,width:"100%"},children:[(0,ee.jsx)("div",{children:e.icon&&(0,ee.jsx)("img",{src:e.icon,alt:e.title,width:32,height:32,className:N(r.notificationItemImage)})}),(0,ee.jsxs)("div",{style:{flex:1,overflow:"hidden"},children:[(0,ee.jsx)("h3",{className:N(r.notificationItemTitle),children:e.title}),(0,ee.jsx)("div",{dangerouslySetInnerHTML:{__html:(0,Ti.default)(e.message)},className:N(r.notificationItemBody)})]}),!e.isRead&&(0,ee.jsx)("div",{className:N(r.unreadDot)})]}),(0,ee.jsx)("div",{className:N(r.notificationItemActions),children:(n=e.actionButtons)==null?void 0:n.map(t=>(0,ee.jsx)("a",{href:t.href,target:t.target,children:(0,ee.jsx)(ne,{variant:"secondary",children:t.label})},t.href))}),(0,ee.jsx)(Ei,{notification:e})]})},kr=tf;var ae=require("react");var ki=require("react/jsx-runtime"),nf=z({popover:{width:"100%",height:"100%",maxWidth:400,maxHeight:500,boxShadow:"0 10px 40px #0001",position:"fixed",background:"#fff",borderRadius:10,visibility:"hidden",opacity:0,scale:.8,transition:"all 0.3s",backgroundColor:"var(--background-color)",border:"1px solid var(--card-background-color)"},popoverOpen:{top:0,left:0,visibility:"visible",opacity:1,scale:1}},{name:Y}),of=({open:e,anchorElement:r,onClose:n,children:t})=>{let i=nf(),[o,a]=(0,ae.useState)(null),[s,f]=(0,ae.useState)(typeof window>"u"?0:window.innerWidth),l=(0,ae.useMemo)(()=>{if(!r)return 0;let v=r.getBoundingClientRect();return v.top+v.height+20},[r,s]),d=(0,ae.useMemo)(()=>r?r.getBoundingClientRect().left+10:0,[r,s]),p=(0,ae.useMemo)(()=>{if(!o||!r)return!0;let v=r.getBoundingClientRect(),y=o.getBoundingClientRect();return v.left+y.width>s},[o,r,s]);return(0,ae.useEffect)(()=>{let v=()=>{e&&(n==null||n())};return window.addEventListener("click",v),()=>{window.removeEventListener("click",v)}},[e]),(0,ae.useEffect)(()=>{let v=()=>{f(window.innerWidth)};return window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[]),(0,ki.jsx)("div",{className:N(i.popover,e&&i.popoverOpen),style:{top:l,left:d,...p?{transform:"translateX(calc(-100% + 20px))"}:{}},ref:a,onClick:v=>{v.stopPropagation()},children:t})},Or=of;var q=require("react/jsx-runtime"),af=z({inboxContent:{height:"100%",display:"flex",flexDirection:"column"},inboxContentList:{flex:1,overflowY:"auto"}},{name:Y}),sf={Bell:Pr,Button:ne,NotificationHeader:Tr,Empty:wr,Loader:Er,NotificationItem:kr,NotificationPopover:Or,NotificationError:Cr},ff=({components:e})=>{let[r,n]=(0,$e.useState)(null),[t,i]=(0,$e.useState)(!1),{Bell:o,Empty:a,Loader:s,NotificationHeader:f,NotificationItem:l,NotificationPopover:d,NotificationError:p}={...sf,...e},v=(0,$e.useCallback)(()=>{i(D=>!D)},[]),{notifications:y,unread:w,isFirstLoad:x,hasMore:F,fetchMore:H,isError:E,error:$,markAllAsRead:M}=kt(),G=af();return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(o,{onClick:D=>{D.stopPropagation(),v()},ref:n,active:t,counts:w}),(0,q.jsx)(d,{open:t,anchorElement:r,onClose:v,children:(0,q.jsxs)("div",{className:N(G.inboxContent),children:[(0,q.jsx)(f,{markAllAsRead:M}),(0,q.jsx)("div",{className:N(G.inboxContentList),children:(0,q.jsxs)(Oi.default,{loadMore:H,hasMore:F&&!E,loader:(0,q.jsx)(s,{},0),useWindow:!1,children:[x?(0,q.jsx)(q.Fragment,{}):(0,q.jsx)(q.Fragment,{children:y.length?(0,q.jsx)(q.Fragment,{children:y.map(D=>(0,q.jsx)(l,{notification:D},D._id))}):(0,q.jsx)(a,{})}),E&&(0,q.jsx)(p,{message:$==null?void 0:$.message})]})})]})})]})},Ot=ff;0&&(module.exports={Bell,Button,Empty,Inbox,Loader,NotificationError,NotificationHeader,NotificationItem,NotificationPopover,TeknifyContext,TeknifyInbox,TeknifyProvider,useNotifications});
14
14
  /*! Bundled license information:
15
15
 
16
16
  react-is/cjs/react-is.production.min.js:
@@ -12,5 +12,5 @@ export { Notification } from './dto/notifications/notification.interface.cjs';
12
12
  export { useNotifications } from './hooks/useNotifications.cjs';
13
13
  export { TeknifyLocale } from './types/locale.cjs';
14
14
  import 'react';
15
- import '@teknify/js';
16
- import '@teknify/core';
15
+ import '@tnf-dev/js';
16
+ import '@tnf-dev/core';
@@ -6,7 +6,7 @@ var zt=Object.create;var pr=Object.defineProperty;var Ft=Object.getOwnPropertyDe
6
6
  `)}},r.deploy=function(){var e=this.sheet;if(e){if(e.options.link){this.insertRules(e.rules);return}this.element.textContent=`
7
7
  `+e.toString()+`
8
8
  `}},r.insertRules=function(e,i){for(var o=0;o<e.index.length;o++)this.insertRule(e.index[o],o,i)},r.insertRule=function(e,i,o){if(o===void 0&&(o=this.element.sheet),e.rules){var a=e,s=o;if(e.type==="conditional"||e.type==="keyframes"){var l=Lr(o,i);if(s=Wr(o,a.toString({children:!1}),l),s===!1)return!1;this.refCssRule(e,l,s)}return this.insertRules(a.rules,s),s}var f=e.toString();if(!f)return!1;var c=Lr(o,i),d=Wr(o,f,c);return d===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(e,c,d),d)},r.refCssRule=function(e,i,o){e.renderable=o,e.options.parent instanceof Jr&&this.cssRules.splice(i,0,o)},r.deleteRule=function(e){var i=this.element.sheet,o=this.indexOf(e);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},r.indexOf=function(e){return this.cssRules.indexOf(e)},r.replaceRule=function(e,i){var o=this.indexOf(e);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},r.getRules=function(){return this.element.sheet.cssRules},t}(),ei=0,ri=function(){function t(n){this.id=ei++,this.version="10.10.0",this.plugins=new zn,this.options={id:{minify:!1},createGenerateId:Be,Renderer:O?Qn:null,plugins:[]},this.generateId=Be({minify:!1});for(var e=0;e<$r.length;e++)this.plugins.use($r[e],{queue:"internal"});this.setup(n)}var r=t.prototype;return r.setup=function(e){return e===void 0&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=g({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),e.insertionPoint!=null&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},r.createStyleSheet=function(e,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=U.index===0?0:U.index+1);var s=new Jr(e,g({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(s),s},r.removeStyleSheet=function(e){return e.detach(),U.remove(e),this},r.createRule=function(e,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof e=="object")return this.createRule(void 0,e,i);var a=g({},o,{name:e,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var s=D(e,i,a);return s&&this.plugins.onProcessRule(s),s},r.use=function(){for(var e=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(s){e.plugins.use(s)}),this},t}(),G=function(r){return new ri(r)},Ye=function(){function t(){this.length=0,this.sheets=new WeakMap}var r=t.prototype;return r.get=function(e){var i=this.sheets.get(e);return i&&i.sheet},r.add=function(e,i){this.sheets.has(e)||(this.length++,this.sheets.set(e,{sheet:i,refs:0}))},r.manage=function(e){var i=this.sheets.get(e);if(i)return i.refs===0&&i.sheet.attach(),i.refs++,i.sheet;Me(!1,"[JSS] SheetsManager: can't find sheet to manage")},r.unmanage=function(e){var i=this.sheets.get(e);i?i.refs>0&&(i.refs--,i.refs===0&&i.sheet.detach()):Me(!1,"SheetsManager: can't find sheet to unmanage")},he(t,[{key:"size",get:function(){return this.length}}]),t}(),pe=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function Ze(t){var r=null;for(var n in t){var e=t[n],i=typeof e;if(i==="function")r||(r={}),r[n]=e;else if(i==="object"&&e!==null&&!Array.isArray(e)){var o=Ze(e);o&&(r||(r={}),r[n]=o)}}return r}var Sa=G();var Hr=Date.now(),Qe="fnValues"+Hr,er="fnStyle"+ ++Hr,ti=function(){return{onCreateRule:function(n,e,i){if(typeof e!="function")return null;var o=D(n,{},i);return o[er]=e,o},onProcessStyle:function(n,e){if(Qe in e||er in e)return n;var i={};for(var o in n){var a=n[o];typeof a=="function"&&(delete n[o],i[o]=a)}return e[Qe]=i,n},onUpdate:function(n,e,i,o){var a=e,s=a[er];if(s&&(a.style=s(n)||{},0))for(var l in a.style);var f=a[Qe];if(f)for(var c in f)a.prop(c,f[c](n),o)}}},Kr=ti;function rr(t){var r,n=t.Symbol;return typeof n=="function"?n.observable?r=n.observable:(r=n("observable"),n.observable=r):r="@@observable",r}var z;typeof self<"u"?z=self:typeof window<"u"?z=window:typeof global<"u"?z=global:typeof module<"u"?z=module:z=Function("return this")();var ni=rr(z),tr=ni;var Br=function(r){return r&&r[tr]&&r===r[tr]()},ii=function(r){return{onCreateRule:function(e,i,o){if(!Br(i))return null;var a=i,s=D(e,{},o);return a.subscribe(function(l){for(var f in l)s.prop(f,l[f],r)}),s},onProcessRule:function(e){if(!(e&&e.type!=="style")){var i=e,o=i.style,a=function(c){var d=o[c];if(!Br(d))return"continue";delete o[c],d.subscribe({next:function(v){i.prop(c,v,r)}})};for(var s in o)var l=a(s)}}}},Xr=ii;var oi=/;\n/,ai=function(r){for(var n={},e=r.split(oi),i=0;i<e.length;i++){var o=(e[i]||"").trim();if(o){var a=o.indexOf(":");if(a!==-1){var s=o.substr(0,a).trim(),l=o.substr(a+1).trim();n[s]=l}}}return n},si=function(r){typeof r.style=="string"&&(r.style=ai(r.style))};function ui(){return{onProcessRule:si}}var Yr=ui;var N="@global",nr="@global ",li=function(){function t(n,e,i){this.type="global",this.at=N,this.isProcessed=!1,this.key=n,this.options=i,this.rules=new q(g({},i,{parent:this}));for(var o in e)this.rules.add(o,e[o]);this.rules.process()}var r=t.prototype;return r.getRule=function(e){return this.rules.get(e)},r.addRule=function(e,i,o){var a=this.rules.add(e,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},r.replaceRule=function(e,i,o){var a=this.rules.replace(e,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},r.indexOf=function(e){return this.rules.indexOf(e)},r.toString=function(e){return this.rules.toString(e)},t}(),fi=function(){function t(n,e,i){this.type="global",this.at=N,this.isProcessed=!1,this.key=n,this.options=i;var o=n.substr(nr.length);this.rule=i.jss.createRule(o,e,g({},i,{parent:this}))}var r=t.prototype;return r.toString=function(e){return this.rule?this.rule.toString(e):""},t}(),ci=/\s*,\s*/g;function Zr(t,r){for(var n=t.split(ci),e="",i=0;i<n.length;i++)e+=r+" "+n[i].trim(),n[i+1]&&(e+=", ");return e}function di(t,r){var n=t.options,e=t.style,i=e?e[N]:null;if(i){for(var o in i)r.addRule(o,i[o],g({},n,{selector:Zr(o,t.selector)}));delete e[N]}}function hi(t,r){var n=t.options,e=t.style;for(var i in e)if(!(i[0]!=="@"||i.substr(0,N.length)!==N)){var o=Zr(i.substr(N.length),t.selector);r.addRule(o,e[i],g({},n,{selector:o})),delete e[i]}}function mi(){function t(n,e,i){if(!n)return null;if(n===N)return new li(n,e,i);if(n[0]==="@"&&n.substr(0,nr.length)===nr)return new fi(n,e,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=n),null}function r(n,e){n.type!=="style"||!e||(di(n,e),hi(n,e))}return{onCreateRule:t,onProcessRule:r}}var Qr=mi;var ve=function(r){return r&&typeof r=="object"&&!Array.isArray(r)},ir="extendCurrValue"+Date.now();function pi(t,r,n,e){var i=typeof t.extend;if(i==="string"){if(!n)return;var o=n.getRule(t.extend);if(!o||o===r)return;var a=o.options.parent;if(a){var s=a.rules.raw[t.extend];M(s,r,n,e)}return}if(Array.isArray(t.extend)){for(var l=0;l<t.extend.length;l++){var f=t.extend[l],c=typeof f=="string"?g({},t,{extend:f}):t.extend[l];M(c,r,n,e)}return}for(var d in t.extend){if(d==="extend"){M(t.extend.extend,r,n,e);continue}if(ve(t.extend[d])){d in e||(e[d]={}),M(t.extend[d],r,n,e[d]);continue}e[d]=t.extend[d]}}function vi(t,r,n,e){for(var i in t)if(i!=="extend"){if(ve(e[i])&&ve(t[i])){M(t[i],r,n,e[i]);continue}if(ve(t[i])){e[i]=M(t[i],r,n);continue}e[i]=t[i]}}function M(t,r,n,e){return e===void 0&&(e={}),pi(t,r,n,e),vi(t,r,n,e),e}function gi(){function t(n,e,i){return"extend"in n?M(n,e,i):n}function r(n,e,i){if(e!=="extend")return n;if(n==null||n===!1){for(var o in i[ir])i.prop(o,null);return i[ir]=null,null}if(typeof n=="object"){for(var a in n)i.prop(a,n[a]);i[ir]=n}return null}return{onProcessStyle:t,onChangeValue:r}}var et=gi;var rt=/\s*,\s*/g,yi=/&/g,bi=/\$([\w-]+)/g;function xi(){function t(i,o){return function(a,s){var l=i.getRule(s)||o&&o.getRule(s);return l?l.selector:s}}function r(i,o){for(var a=o.split(rt),s=i.split(rt),l="",f=0;f<a.length;f++)for(var c=a[f],d=0;d<s.length;d++){var b=s[d];l&&(l+=", "),l+=b.indexOf("&")!==-1?b.replace(yi,c):c+" "+b}return l}function n(i,o,a){if(a)return g({},a,{index:a.index+1});var s=i.options.nestingLevel;s=s===void 0?1:s+1;var l=g({},i.options,{nestingLevel:s,index:o.indexOf(i)+1});return delete l.name,l}function e(i,o,a){if(o.type!=="style")return i;var s=o,l=s.options.parent,f,c;for(var d in i){var b=d.indexOf("&")!==-1,v=d[0]==="@";if(!(!b&&!v)){if(f=n(s,l,f),b){var y=r(d,s.selector);c||(c=t(l,a)),y=y.replace(bi,c);var m=s.key+"-"+d;"replaceRule"in l?l.replaceRule(m,i[d],g({},f,{selector:y})):l.addRule(m,i[d],g({},f,{selector:y}))}else v&&l.addRule(d,{},f).addRule(s.key,i[d],{selector:s.selector});delete i[d]}}return i}return{onProcessStyle:e}}var tt=xi;function or(t,r){if(!r)return!0;if(Array.isArray(r)){for(var n=0;n<r.length;n++){var e=or(t,r[n]);if(!e)return!1}return!0}if(r.indexOf(" ")>-1)return or(t,r.split(" "));var i=t.options.parent;if(r[0]==="$"){var o=i.getRule(r.substr(1));return!o||o===t?!1:(i.classes[t.key]+=" "+i.classes[o.key],!0)}return i.classes[t.key]+=" "+r,!0}function Si(){function t(r,n){return"composes"in r&&(or(n,r.composes),delete r.composes),r}return{onProcessStyle:t}}var nt=Si;var wi=/[A-Z]/g,Ri=/^ms-/,ar={};function Pi(t){return"-"+t.toLowerCase()}function ki(t){if(ar.hasOwnProperty(t))return ar[t];var r=t.replace(wi,Pi);return ar[t]=Ri.test(r)?"-"+r:r}var sr=ki;function ge(t){var r={};for(var n in t){var e=n.indexOf("--")===0?n:sr(n);r[e]=t[n]}return t.fallbacks&&(Array.isArray(t.fallbacks)?r.fallbacks=t.fallbacks.map(ge):r.fallbacks=ge(t.fallbacks)),r}function Oi(){function t(n){if(Array.isArray(n)){for(var e=0;e<n.length;e++)n[e]=ge(n[e]);return n}return ge(n)}function r(n,e,i){if(e.indexOf("--")===0)return n;var o=sr(e);return e===o?n:(i.prop(o,n),null)}return{onProcessStyle:t,onChangeValue:r}}var it=Oi;var u=pe&&CSS?CSS.px:"px",ye=pe&&CSS?CSS.ms:"ms",F=pe&&CSS?CSS.percent:"%",Ti={"animation-delay":ye,"animation-duration":ye,"background-position":u,"background-position-x":u,"background-position-y":u,"background-size":u,border:u,"border-bottom":u,"border-bottom-left-radius":u,"border-bottom-right-radius":u,"border-bottom-width":u,"border-left":u,"border-left-width":u,"border-radius":u,"border-right":u,"border-right-width":u,"border-top":u,"border-top-left-radius":u,"border-top-right-radius":u,"border-top-width":u,"border-width":u,"border-block":u,"border-block-end":u,"border-block-end-width":u,"border-block-start":u,"border-block-start-width":u,"border-block-width":u,"border-inline":u,"border-inline-end":u,"border-inline-end-width":u,"border-inline-start":u,"border-inline-start-width":u,"border-inline-width":u,"border-start-start-radius":u,"border-start-end-radius":u,"border-end-start-radius":u,"border-end-end-radius":u,margin:u,"margin-bottom":u,"margin-left":u,"margin-right":u,"margin-top":u,"margin-block":u,"margin-block-end":u,"margin-block-start":u,"margin-inline":u,"margin-inline-end":u,"margin-inline-start":u,padding:u,"padding-bottom":u,"padding-left":u,"padding-right":u,"padding-top":u,"padding-block":u,"padding-block-end":u,"padding-block-start":u,"padding-inline":u,"padding-inline-end":u,"padding-inline-start":u,"mask-position-x":u,"mask-position-y":u,"mask-size":u,height:u,width:u,"min-height":u,"max-height":u,"min-width":u,"max-width":u,bottom:u,left:u,top:u,right:u,inset:u,"inset-block":u,"inset-block-end":u,"inset-block-start":u,"inset-inline":u,"inset-inline-end":u,"inset-inline-start":u,"box-shadow":u,"text-shadow":u,"column-gap":u,"column-rule":u,"column-rule-width":u,"column-width":u,"font-size":u,"font-size-delta":u,"letter-spacing":u,"text-decoration-thickness":u,"text-indent":u,"text-stroke":u,"text-stroke-width":u,"word-spacing":u,motion:u,"motion-offset":u,outline:u,"outline-offset":u,"outline-width":u,perspective:u,"perspective-origin-x":F,"perspective-origin-y":F,"transform-origin":F,"transform-origin-x":F,"transform-origin-y":F,"transform-origin-z":F,"transition-delay":ye,"transition-duration":ye,"vertical-align":u,"flex-basis":u,"shape-margin":u,size:u,gap:u,grid:u,"grid-gap":u,"row-gap":u,"grid-row-gap":u,"grid-column-gap":u,"grid-template-rows":u,"grid-template-columns":u,"grid-auto-rows":u,"grid-auto-columns":u,"box-shadow-x":u,"box-shadow-y":u,"box-shadow-blur":u,"box-shadow-spread":u,"font-line-height":u,"text-shadow-x":u,"text-shadow-y":u,"text-shadow-blur":u};function ot(t){var r=/(-[a-z])/g,n=function(a){return a[1].toUpperCase()},e={};for(var i in t)e[i]=t[i],e[i.replace(r,n)]=t[i];return e}var Ci=ot(Ti);function H(t,r,n){if(r==null)return r;if(Array.isArray(r))for(var e=0;e<r.length;e++)r[e]=H(t,r[e],n);else if(typeof r=="object")if(t==="fallbacks")for(var i in r)r[i]=H(i,r[i],n);else for(var o in r)r[o]=H(t+"-"+o,r[o],n);else if(typeof r=="number"&&isNaN(r)===!1){var a=n[t]||Ci[t];return a&&!(r===0&&a===u)?typeof a=="function"?a(r).toString():""+r+a:r.toString()}return r}function Ei(t){t===void 0&&(t={});var r=ot(t);function n(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=H(a,i[a],r);return i}function e(i,o){return H(o,i,r)}return{onProcessStyle:n,onChangeValue:e}}var at=Ei;var Ni={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},ji={position:!0,size:!0},be={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},ur={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function Ai(t,r,n){return t.map(function(e){return ut(e,r,n,!1,!0)})}function st(t,r,n,e){return n[r]==null?t:t.length===0?[]:Array.isArray(t[0])?st(t[0],r,n,e):typeof t[0]=="object"?Ai(t,r,e):[t]}function ut(t,r,n,e,i){if(!(be[r]||ur[r]))return[];var o=[];if(ur[r]&&(t=_i(t,n,ur[r],e)),Object.keys(t).length)for(var a in be[r]){if(t[a]){Array.isArray(t[a])?o.push(ji[a]===null?t[a]:t[a].join(" ")):o.push(t[a]);continue}be[r][a]!=null&&o.push(be[r][a])}return!o.length||i?o:[o]}function _i(t,r,n,e){for(var i in n){var o=n[i];if(typeof t[i]<"u"&&(e||!r.prop(o))){var a,s=K((a={},a[o]=t[i],a),r)[o];e?r.style.fallbacks[o]=s:r.style[o]=s}delete t[i]}return t}function K(t,r,n){for(var e in t){var i=t[e];if(Array.isArray(i)){if(!Array.isArray(i[0])){if(e==="fallbacks"){for(var o=0;o<t.fallbacks.length;o++)t.fallbacks[o]=K(t.fallbacks[o],r,!0);continue}t[e]=st(i,e,Ni,r),t[e].length||delete t[e]}}else if(typeof i=="object"){if(e==="fallbacks"){t.fallbacks=K(t.fallbacks,r,!0);continue}t[e]=ut(i,e,r,n),t[e].length||delete t[e]}else t[e]===""&&delete t[e]}return t}function Ii(){function t(r,n){if(!r||n.type!=="style")return r;if(Array.isArray(r)){for(var e=0;e<r.length;e++)r[e]=K(r[e],n);return r}return K(r,n)}return{onProcessStyle:t}}var lt=Ii;function B(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,e=Array(r);n<r;n++)e[n]=t[n];return e}function ft(t){if(Array.isArray(t))return B(t)}function ct(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dt(t,r){if(t){if(typeof t=="string")return B(t,r);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,r):void 0}}function ht(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mt(t){return ft(t)||ct(t)||dt(t)||ht()}var X="",lr="",yt="",bt="",Mi=O&&"ontouchstart"in document.documentElement;if(O){xe={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},pt=document.createElement("p"),Se=pt.style,vt="Transform";for(we in xe)if(we+vt in Se){X=we,lr=xe[we];break}X==="Webkit"&&"msHyphens"in Se&&(X="ms",lr=xe.ms,bt="edge"),X==="Webkit"&&"-apple-trailing-word"in Se&&(yt="apple")}var xe,pt,Se,vt,we,h={js:X,css:lr,vendor:yt,browser:bt,isTouch:Mi};function xt(t){return t[1]==="-"||h.js==="ms"?t:"@"+h.css+"keyframes"+t.substr(10)}var Vi={noPrefill:["appearance"],supportedProperty:function(r){return r!=="appearance"?!1:h.js==="ms"?"-webkit-"+r:h.css+r}},Di={noPrefill:["color-adjust"],supportedProperty:function(r){return r!=="color-adjust"?!1:h.js==="Webkit"?h.css+"print-"+r:r}},$i=/[-\s]+(.)?/g;function zi(t,r){return r?r.toUpperCase():""}function fr(t){return t.replace($i,zi)}function A(t){return fr("-"+t)}var Fi={noPrefill:["mask"],supportedProperty:function(r,n){if(!/^mask/.test(r))return!1;if(h.js==="Webkit"){var e="mask-image";if(fr(e)in n)return r;if(h.js+A(e)in n)return h.css+r}return r}},Wi={noPrefill:["text-orientation"],supportedProperty:function(r){return r!=="text-orientation"?!1:h.vendor==="apple"&&!h.isTouch?h.css+r:r}},Li={noPrefill:["transform"],supportedProperty:function(r,n,e){return r!=="transform"?!1:e.transform?r:h.css+r}},Ui={noPrefill:["transition"],supportedProperty:function(r,n,e){return r!=="transition"?!1:e.transition?r:h.css+r}},Ji={noPrefill:["writing-mode"],supportedProperty:function(r){return r!=="writing-mode"?!1:h.js==="Webkit"||h.js==="ms"&&h.browser!=="edge"?h.css+r:r}},qi={noPrefill:["user-select"],supportedProperty:function(r){return r!=="user-select"?!1:h.js==="Moz"||h.js==="ms"||h.vendor==="apple"?h.css+r:r}},Gi={supportedProperty:function(r,n){if(!/^break-/.test(r))return!1;if(h.js==="Webkit"){var e="WebkitColumn"+A(r);return e in n?h.css+"column-"+r:!1}if(h.js==="Moz"){var i="page"+A(r);return i in n?"page-"+r:!1}return!1}},Hi={supportedProperty:function(r,n){if(!/^(border|margin|padding)-inline/.test(r))return!1;if(h.js==="Moz")return r;var e=r.replace("-inline","");return h.js+A(e)in n?h.css+e:!1}},Ki={supportedProperty:function(r,n){return fr(r)in n?r:!1}},Bi={supportedProperty:function(r,n){var e=A(r);return r[0]==="-"||r[0]==="-"&&r[1]==="-"?r:h.js+e in n?h.css+r:h.js!=="Webkit"&&"Webkit"+e in n?"-webkit-"+r:!1}},Xi={supportedProperty:function(r){return r.substring(0,11)!=="scroll-snap"?!1:h.js==="ms"?""+h.css+r:r}},Yi={supportedProperty:function(r){return r!=="overscroll-behavior"?!1:h.js==="ms"?h.css+"scroll-chaining":r}},Zi={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Qi={supportedProperty:function(r,n){var e=Zi[r];return e&&h.js+A(e)in n?h.css+e:!1}},St={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},eo=Object.keys(St),ro=function(r){return h.css+r},to={supportedProperty:function(r,n,e){var i=e.multiple;if(eo.indexOf(r)>-1){var o=St[r];if(!Array.isArray(o))return h.js+A(o)in n?h.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(h.js+A(o[0])in n))return!1;return o.map(ro)}return!1}},wt=[Vi,Di,Fi,Wi,Li,Ui,Ji,qi,Gi,Hi,Ki,Bi,Xi,Yi,Qi,to],gt=wt.filter(function(t){return t.supportedProperty}).map(function(t){return t.supportedProperty}),no=wt.filter(function(t){return t.noPrefill}).reduce(function(t,r){return t.push.apply(t,mt(r.noPrefill)),t},[]),Y,V={};if(O){Y=document.createElement("p"),Re=window.getComputedStyle(document.documentElement,"");for(Pe in Re)isNaN(Pe)||(V[Re[Pe]]=Re[Pe]);no.forEach(function(t){return delete V[t]})}var Re,Pe;function ke(t,r){if(r===void 0&&(r={}),!Y)return t;if(V[t]!=null)return V[t];(t==="transition"||t==="transform")&&(r[t]=t in Y.style);for(var n=0;n<gt.length&&(V[t]=gt[n](t,Y.style,r),!V[t]);n++);try{Y.style[t]=""}catch{return!1}return V[t]}var W={},io={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},oo=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,j;function ao(t,r,n){if(r==="var")return"var";if(r==="all")return"all";if(n==="all")return", all";var e=r?ke(r):", "+ke(n);return e||r||n}O&&(j=document.createElement("p"));function cr(t,r){var n=r;if(!j||t==="content")return r;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var e=t+n;if(W[e]!=null)return W[e];try{j.style[t]=n}catch{return W[e]=!1,!1}if(io[t])n=n.replace(oo,ao);else if(j.style[t]===""&&(n=h.css+n,n==="-ms-flex"&&(j.style[t]="-ms-flexbox"),j.style[t]=n,j.style[t]===""))return W[e]=!1,!1;return j.style[t]="",W[e]=n,W[e]}function so(){function t(i){if(i.type==="keyframes"){var o=i;o.at=xt(o.at)}}function r(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(r);continue}var s=!1,l=ke(o);l&&l!==o&&(s=!0);var f=!1,c=cr(l,E(a));c&&c!==a&&(f=!0),(s||f)&&(s&&delete i[o],i[l||o]=c||a)}return i}function n(i,o){return o.type!=="style"?i:r(i)}function e(i,o){return cr(o,E(i))||i}return{onProcessRule:t,onProcessStyle:n,onChangeValue:e}}var Rt=so;function uo(){var t=function(n,e){return n.length===e.length?n>e?1:-1:n.length-e.length};return{onProcessStyle:function(n,e){if(e.type!=="style")return n;for(var i={},o=Object.keys(n).sort(t),a=0;a<o.length;a++)i[o[a]]=n[o[a]];return i}}}var Pt=uo;var lo=function(r){return r===void 0&&(r={}),{plugins:[Kr(),Xr(r.observable),Yr(),Qr(),et(),tt(),nt(),it(),at(r.defaultUnit),lt(),Rt(),Pt()]}},Oe=lo;function fo(t){var r={};return function(n){return r[n]===void 0&&(r[n]=t(n)),r[n]}}var kt=fo;var co=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ts=kt(function(t){return co.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});var ho=1e4,mo=G(Oe()),po=function(r){r===void 0&&(r=mo);var n=new Map,e=0,i,o=function(){return(!i||i.rules.index.length>ho)&&(i=r.createStyleSheet().attach()),i};function a(){var s=arguments,l=JSON.stringify(s),f=n.get(l);if(f)return f.className;var c=[];for(var d in s){var b=s[d];if(!Array.isArray(b)){c.push(b);continue}for(var v=0;v<b.length;v++)c.push(b[v])}for(var y={},m=[],w=0;w<c.length;w++){var k=c[w];if(k){var x=k;if(typeof k=="string"){var P=n.get(k);P&&(P.labels.length&&m.push.apply(m,P.labels),x=P.style)}x.label&&m.indexOf(x.label)===-1&&m.push(x.label),Object.assign(y,x)}}delete y.label;var Z=m.length===0?"css":m.join("-"),T=Z+"-"+e++;o().addRule(T,y);var Te=o().classes[T],mr={style:y,labels:m,className:Te};return n.set(l,mr),n.set(Te,mr),Te}return a.getSheet=o,a},vo=po(),Ot=vo;var Ro=Number.MIN_SAFE_INTEGER||-1e9,Po=function(){return Ro++},ko=yo({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!O}),Nt=new Map,hr=function(r,n){var e=r.managers;if(e)return e[n]||(e[n]=new Ye),e[n];var i=Nt.get(n);return i||(i=new Ye,Nt.set(n,i)),i},jt=function(r){var n=r.sheet,e=r.context,i=r.index,o=r.theme;if(n){var a=hr(e,i);a.manage(o),e.registry&&e.registry.add(n)}},Oo=function(r){if(r.sheet){var n=hr(r.context,r.index);n.unmanage(r.theme)}},To=G(Oe()),It=new WeakMap,Mt=function(r){return It.get(r)},Co=function(r,n){It.set(r,n)},Eo=function(r){var n=r.styles;return typeof n!="function"?n:n(r.theme)};function No(t,r){var n;t.context.id&&t.context.id.minify!=null&&(n=t.context.id.minify);var e=t.context.classNamePrefix||"";t.name&&!n&&(e+=t.name.replace(/\s/g,"-")+"-");var i="";return t.name&&(i=t.name+", "),i+=typeof t.styles=="function"?"Themed":"Unthemed",g({},t.sheetOptions,{index:t.index,meta:i,classNamePrefix:e,link:r,generateId:t.sheetOptions&&t.sheetOptions.generateId?t.sheetOptions.generateId:t.context.generateId})}var jo=function(r){if(!r.context.disableStylesGeneration){var n=hr(r.context,r.index),e=n.get(r.theme);if(e)return e;var i=r.context.jss||To,o=Eo(r),a=Ze(o),s=i.createStyleSheet(o,No(r,a!==null));return Co(s,{dynamicStyles:a,styles:o}),n.add(r.theme,s),s}},Ao=function(r,n){for(var e in n)r.deleteRule(n[e])},_o=function(r,n,e){for(var i in e)n.updateOne(e[i],r)},Io=function(r,n){var e=Mt(r);if(e){var i={};for(var o in e.dynamicStyles)for(var a=r.rules.index.length,s=r.addRule(o,e.dynamicStyles[o]),l=a;l<r.rules.index.length;l++){var f=r.rules.index[l];r.updateOne(f,n),i[s===f?o:f.key]=f}return i}},Mo=function(r,n){if(!n)return r.classes;var e=Mt(r);if(!e)return r.classes;var i={};for(var o in e.styles)i[o]=r.classes[o],o in n&&(i[o]+=" "+r.classes[n[o].key]);return i};function At(t){return t?_t:go.useInsertionEffect||xo}var dr={},Vt=function(r,n){n===void 0&&(n={});var e=n,i=e.index,o=i===void 0?Po():i,a=e.theming,s=e.name,l=ee(e,["index","theming","name"]),f=a&&a.context||De,c=function(v){return typeof r=="function"&&(v||Tt(f))||dr},d={};return function(v){var y=bo(!0),m=Tt(ko),w=c(v&&v.theme),k=Ct(function(){var T=jo({context:m,styles:r,name:s,theme:w,index:o,sheetOptions:l});return T&&m.isSSR&&jt({index:o,context:m,sheet:T,theme:w}),[T,T?Io(T,v):null]},[m,w]),x=k[0],P=k[1];At(m.isSSR)(function(){x&&P&&!y.current&&_o(v,x,P)},[v]),At(m.isSSR)(function(){return x&&jt({index:o,context:m,sheet:x,theme:w}),function(){x&&(Oo({index:o,context:m,sheet:x,theme:w}),P&&Ao(x,P))}},[x]);var Z=Ct(function(){return x&&P?Mo(x,P):d},[x,P]);return Et(Z),Et(w===dr?"No theme":w),_t(function(){y.current=!1}),Z}};var qs=Symbol("react-jss-styled");var Vo=function(r){return r===void 0&&(r=Ot),function(e,i){var o=arguments;if(i&&i.css){var a=r(i.css),s=Object.assign({},i);s.className=i.className?i.className+" "+a:a,delete s.css,o[1]=s}return So.apply(void 0,o)}},Gs=Vo();import{TeknifyClient as Xs}from"@teknify/js";import{createContext as Do,useMemo as eu}from"react";import{jsx as tu}from"react/jsx-runtime";var Dt=Do({applicationId:"",subscriberId:""});var $t="teknify";import{jsx as Wo}from"react/jsx-runtime";var zo=Vt({empty:{textAlign:"center",padding:"20px 0"}},{name:$t}),Fo=()=>{let t=zo(),{locale:r}=$o(Dt);return Wo("div",{className:gr(t.empty),children:r.components.Empty.noNotifications})},cu=Fo;export{cu as default};
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mt(t){return ft(t)||ct(t)||dt(t)||ht()}var X="",lr="",yt="",bt="",Mi=O&&"ontouchstart"in document.documentElement;if(O){xe={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},pt=document.createElement("p"),Se=pt.style,vt="Transform";for(we in xe)if(we+vt in Se){X=we,lr=xe[we];break}X==="Webkit"&&"msHyphens"in Se&&(X="ms",lr=xe.ms,bt="edge"),X==="Webkit"&&"-apple-trailing-word"in Se&&(yt="apple")}var xe,pt,Se,vt,we,h={js:X,css:lr,vendor:yt,browser:bt,isTouch:Mi};function xt(t){return t[1]==="-"||h.js==="ms"?t:"@"+h.css+"keyframes"+t.substr(10)}var Vi={noPrefill:["appearance"],supportedProperty:function(r){return r!=="appearance"?!1:h.js==="ms"?"-webkit-"+r:h.css+r}},Di={noPrefill:["color-adjust"],supportedProperty:function(r){return r!=="color-adjust"?!1:h.js==="Webkit"?h.css+"print-"+r:r}},$i=/[-\s]+(.)?/g;function zi(t,r){return r?r.toUpperCase():""}function fr(t){return t.replace($i,zi)}function A(t){return fr("-"+t)}var Fi={noPrefill:["mask"],supportedProperty:function(r,n){if(!/^mask/.test(r))return!1;if(h.js==="Webkit"){var e="mask-image";if(fr(e)in n)return r;if(h.js+A(e)in n)return h.css+r}return r}},Wi={noPrefill:["text-orientation"],supportedProperty:function(r){return r!=="text-orientation"?!1:h.vendor==="apple"&&!h.isTouch?h.css+r:r}},Li={noPrefill:["transform"],supportedProperty:function(r,n,e){return r!=="transform"?!1:e.transform?r:h.css+r}},Ui={noPrefill:["transition"],supportedProperty:function(r,n,e){return r!=="transition"?!1:e.transition?r:h.css+r}},Ji={noPrefill:["writing-mode"],supportedProperty:function(r){return r!=="writing-mode"?!1:h.js==="Webkit"||h.js==="ms"&&h.browser!=="edge"?h.css+r:r}},qi={noPrefill:["user-select"],supportedProperty:function(r){return r!=="user-select"?!1:h.js==="Moz"||h.js==="ms"||h.vendor==="apple"?h.css+r:r}},Gi={supportedProperty:function(r,n){if(!/^break-/.test(r))return!1;if(h.js==="Webkit"){var e="WebkitColumn"+A(r);return e in n?h.css+"column-"+r:!1}if(h.js==="Moz"){var i="page"+A(r);return i in n?"page-"+r:!1}return!1}},Hi={supportedProperty:function(r,n){if(!/^(border|margin|padding)-inline/.test(r))return!1;if(h.js==="Moz")return r;var e=r.replace("-inline","");return h.js+A(e)in n?h.css+e:!1}},Ki={supportedProperty:function(r,n){return fr(r)in n?r:!1}},Bi={supportedProperty:function(r,n){var e=A(r);return r[0]==="-"||r[0]==="-"&&r[1]==="-"?r:h.js+e in n?h.css+r:h.js!=="Webkit"&&"Webkit"+e in n?"-webkit-"+r:!1}},Xi={supportedProperty:function(r){return r.substring(0,11)!=="scroll-snap"?!1:h.js==="ms"?""+h.css+r:r}},Yi={supportedProperty:function(r){return r!=="overscroll-behavior"?!1:h.js==="ms"?h.css+"scroll-chaining":r}},Zi={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Qi={supportedProperty:function(r,n){var e=Zi[r];return e&&h.js+A(e)in n?h.css+e:!1}},St={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},eo=Object.keys(St),ro=function(r){return h.css+r},to={supportedProperty:function(r,n,e){var i=e.multiple;if(eo.indexOf(r)>-1){var o=St[r];if(!Array.isArray(o))return h.js+A(o)in n?h.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(h.js+A(o[0])in n))return!1;return o.map(ro)}return!1}},wt=[Vi,Di,Fi,Wi,Li,Ui,Ji,qi,Gi,Hi,Ki,Bi,Xi,Yi,Qi,to],gt=wt.filter(function(t){return t.supportedProperty}).map(function(t){return t.supportedProperty}),no=wt.filter(function(t){return t.noPrefill}).reduce(function(t,r){return t.push.apply(t,mt(r.noPrefill)),t},[]),Y,V={};if(O){Y=document.createElement("p"),Re=window.getComputedStyle(document.documentElement,"");for(Pe in Re)isNaN(Pe)||(V[Re[Pe]]=Re[Pe]);no.forEach(function(t){return delete V[t]})}var Re,Pe;function ke(t,r){if(r===void 0&&(r={}),!Y)return t;if(V[t]!=null)return V[t];(t==="transition"||t==="transform")&&(r[t]=t in Y.style);for(var n=0;n<gt.length&&(V[t]=gt[n](t,Y.style,r),!V[t]);n++);try{Y.style[t]=""}catch{return!1}return V[t]}var W={},io={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},oo=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,j;function ao(t,r,n){if(r==="var")return"var";if(r==="all")return"all";if(n==="all")return", all";var e=r?ke(r):", "+ke(n);return e||r||n}O&&(j=document.createElement("p"));function cr(t,r){var n=r;if(!j||t==="content")return r;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var e=t+n;if(W[e]!=null)return W[e];try{j.style[t]=n}catch{return W[e]=!1,!1}if(io[t])n=n.replace(oo,ao);else if(j.style[t]===""&&(n=h.css+n,n==="-ms-flex"&&(j.style[t]="-ms-flexbox"),j.style[t]=n,j.style[t]===""))return W[e]=!1,!1;return j.style[t]="",W[e]=n,W[e]}function so(){function t(i){if(i.type==="keyframes"){var o=i;o.at=xt(o.at)}}function r(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(r);continue}var s=!1,l=ke(o);l&&l!==o&&(s=!0);var f=!1,c=cr(l,E(a));c&&c!==a&&(f=!0),(s||f)&&(s&&delete i[o],i[l||o]=c||a)}return i}function n(i,o){return o.type!=="style"?i:r(i)}function e(i,o){return cr(o,E(i))||i}return{onProcessRule:t,onProcessStyle:n,onChangeValue:e}}var Rt=so;function uo(){var t=function(n,e){return n.length===e.length?n>e?1:-1:n.length-e.length};return{onProcessStyle:function(n,e){if(e.type!=="style")return n;for(var i={},o=Object.keys(n).sort(t),a=0;a<o.length;a++)i[o[a]]=n[o[a]];return i}}}var Pt=uo;var lo=function(r){return r===void 0&&(r={}),{plugins:[Kr(),Xr(r.observable),Yr(),Qr(),et(),tt(),nt(),it(),at(r.defaultUnit),lt(),Rt(),Pt()]}},Oe=lo;function fo(t){var r={};return function(n){return r[n]===void 0&&(r[n]=t(n)),r[n]}}var kt=fo;var co=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ts=kt(function(t){return co.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91});var ho=1e4,mo=G(Oe()),po=function(r){r===void 0&&(r=mo);var n=new Map,e=0,i,o=function(){return(!i||i.rules.index.length>ho)&&(i=r.createStyleSheet().attach()),i};function a(){var s=arguments,l=JSON.stringify(s),f=n.get(l);if(f)return f.className;var c=[];for(var d in s){var b=s[d];if(!Array.isArray(b)){c.push(b);continue}for(var v=0;v<b.length;v++)c.push(b[v])}for(var y={},m=[],w=0;w<c.length;w++){var k=c[w];if(k){var x=k;if(typeof k=="string"){var P=n.get(k);P&&(P.labels.length&&m.push.apply(m,P.labels),x=P.style)}x.label&&m.indexOf(x.label)===-1&&m.push(x.label),Object.assign(y,x)}}delete y.label;var Z=m.length===0?"css":m.join("-"),T=Z+"-"+e++;o().addRule(T,y);var Te=o().classes[T],mr={style:y,labels:m,className:Te};return n.set(l,mr),n.set(Te,mr),Te}return a.getSheet=o,a},vo=po(),Ot=vo;var Ro=Number.MIN_SAFE_INTEGER||-1e9,Po=function(){return Ro++},ko=yo({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!O}),Nt=new Map,hr=function(r,n){var e=r.managers;if(e)return e[n]||(e[n]=new Ye),e[n];var i=Nt.get(n);return i||(i=new Ye,Nt.set(n,i)),i},jt=function(r){var n=r.sheet,e=r.context,i=r.index,o=r.theme;if(n){var a=hr(e,i);a.manage(o),e.registry&&e.registry.add(n)}},Oo=function(r){if(r.sheet){var n=hr(r.context,r.index);n.unmanage(r.theme)}},To=G(Oe()),It=new WeakMap,Mt=function(r){return It.get(r)},Co=function(r,n){It.set(r,n)},Eo=function(r){var n=r.styles;return typeof n!="function"?n:n(r.theme)};function No(t,r){var n;t.context.id&&t.context.id.minify!=null&&(n=t.context.id.minify);var e=t.context.classNamePrefix||"";t.name&&!n&&(e+=t.name.replace(/\s/g,"-")+"-");var i="";return t.name&&(i=t.name+", "),i+=typeof t.styles=="function"?"Themed":"Unthemed",g({},t.sheetOptions,{index:t.index,meta:i,classNamePrefix:e,link:r,generateId:t.sheetOptions&&t.sheetOptions.generateId?t.sheetOptions.generateId:t.context.generateId})}var jo=function(r){if(!r.context.disableStylesGeneration){var n=hr(r.context,r.index),e=n.get(r.theme);if(e)return e;var i=r.context.jss||To,o=Eo(r),a=Ze(o),s=i.createStyleSheet(o,No(r,a!==null));return Co(s,{dynamicStyles:a,styles:o}),n.add(r.theme,s),s}},Ao=function(r,n){for(var e in n)r.deleteRule(n[e])},_o=function(r,n,e){for(var i in e)n.updateOne(e[i],r)},Io=function(r,n){var e=Mt(r);if(e){var i={};for(var o in e.dynamicStyles)for(var a=r.rules.index.length,s=r.addRule(o,e.dynamicStyles[o]),l=a;l<r.rules.index.length;l++){var f=r.rules.index[l];r.updateOne(f,n),i[s===f?o:f.key]=f}return i}},Mo=function(r,n){if(!n)return r.classes;var e=Mt(r);if(!e)return r.classes;var i={};for(var o in e.styles)i[o]=r.classes[o],o in n&&(i[o]+=" "+r.classes[n[o].key]);return i};function At(t){return t?_t:go.useInsertionEffect||xo}var dr={},Vt=function(r,n){n===void 0&&(n={});var e=n,i=e.index,o=i===void 0?Po():i,a=e.theming,s=e.name,l=ee(e,["index","theming","name"]),f=a&&a.context||De,c=function(v){return typeof r=="function"&&(v||Tt(f))||dr},d={};return function(v){var y=bo(!0),m=Tt(ko),w=c(v&&v.theme),k=Ct(function(){var T=jo({context:m,styles:r,name:s,theme:w,index:o,sheetOptions:l});return T&&m.isSSR&&jt({index:o,context:m,sheet:T,theme:w}),[T,T?Io(T,v):null]},[m,w]),x=k[0],P=k[1];At(m.isSSR)(function(){x&&P&&!y.current&&_o(v,x,P)},[v]),At(m.isSSR)(function(){return x&&jt({index:o,context:m,sheet:x,theme:w}),function(){x&&(Oo({index:o,context:m,sheet:x,theme:w}),P&&Ao(x,P))}},[x]);var Z=Ct(function(){return x&&P?Mo(x,P):d},[x,P]);return Et(Z),Et(w===dr?"No theme":w),_t(function(){y.current=!1}),Z}};var qs=Symbol("react-jss-styled");var Vo=function(r){return r===void 0&&(r=Ot),function(e,i){var o=arguments;if(i&&i.css){var a=r(i.css),s=Object.assign({},i);s.className=i.className?i.className+" "+a:a,delete s.css,o[1]=s}return So.apply(void 0,o)}},Gs=Vo();import{TeknifyClient as Xs}from"@tnf-dev/js";import{createContext as Do,useMemo as eu}from"react";import{jsx as tu}from"react/jsx-runtime";var Dt=Do({applicationId:"",subscriberId:""});var $t="teknify";import{jsx as Wo}from"react/jsx-runtime";var zo=Vt({empty:{textAlign:"center",padding:"20px 0"}},{name:$t}),Fo=()=>{let t=zo(),{locale:r}=$o(Dt);return Wo("div",{className:gr(t.empty),children:r.components.Empty.noNotifications})},cu=Fo;export{cu as default};
10
10
  /*! Bundled license information:
11
11
 
12
12
  react-is/cjs/react-is.production.min.js:
@@ -8,7 +8,7 @@ import { NotificationItemProps } from './notification-item/index.js';
8
8
  import { NotificationPopoverProps } from './popover.js';
9
9
  import React__default, { FC } from 'react';
10
10
  import '../../dto/notifications/notification.interface.js';
11
- import '@teknify/core';
11
+ import '@tnf-dev/core';
12
12
 
13
13
  interface Components {
14
14
  Bell: React__default.ComponentType<BellProps>;