@novu/js 3.17.0 → 3.18.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.
- package/dist/cjs/{chunk-7B52C2XE.js → chunk-A6CBLMST.js} +9 -0
- package/dist/cjs/{chunk-SP44ETLM.js → chunk-NR4RSYUE.js} +772 -694
- package/dist/cjs/{chunk-WDGG3OER.js → chunk-TLQQB5Y7.js} +217 -199
- package/dist/{esm/inbox-service-CGCuuYnv.d.mts → cjs/inbox-service-DSSwFYNG.d.ts} +18 -2
- package/dist/cjs/index.d.ts +93 -4
- package/dist/cjs/index.js +246 -20
- package/dist/cjs/internal/index.d.ts +1 -1
- package/dist/cjs/internal/index.js +7 -7
- package/dist/cjs/{novu-CmNBco-0.d.ts → novu-BQCC3vQS.d.ts} +3 -2
- package/dist/cjs/themes/index.d.ts +3 -3
- package/dist/cjs/themes/index.js +1 -1
- package/dist/cjs/{types-BF6zvyj6.d.ts → types-Djf8MaW9.d.ts} +2 -2
- package/dist/cjs/ui/index.d.ts +18 -6
- package/dist/cjs/ui/index.js +609 -243
- package/dist/esm/{chunk-BKA3HRZM.mjs → chunk-33B2GJE2.mjs} +140 -64
- package/dist/esm/{chunk-STZMOEWR.mjs → chunk-3LR3AF54.mjs} +9 -1
- package/dist/esm/{chunk-4S22IB5W.mjs → chunk-T3NTOGY3.mjs} +193 -176
- package/dist/{cjs/inbox-service-CGCuuYnv.d.ts → esm/inbox-service-DSSwFYNG.d.mts} +18 -2
- package/dist/esm/index.d.mts +93 -4
- package/dist/esm/index.mjs +228 -3
- package/dist/esm/internal/index.d.mts +1 -1
- package/dist/esm/internal/index.mjs +2 -2
- package/dist/esm/{novu-CFYEiYN8.d.mts → novu-Z0z0-IxO.d.mts} +3 -2
- package/dist/esm/themes/index.d.mts +3 -3
- package/dist/esm/themes/index.mjs +1 -1
- package/dist/esm/{types-CJKmgwu6.d.mts → types-BJ345m1Q.d.mts} +2 -2
- package/dist/esm/ui/index.d.mts +18 -6
- package/dist/esm/ui/index.mjs +424 -58
- package/dist/novu.min.js +15 -15
- package/dist/novu.min.js.gz +0 -0
- package/package.json +7 -2
package/dist/cjs/ui/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkNR4RSYUE_js = require('../chunk-NR4RSYUE.js');
|
|
4
|
+
var chunkTLQQB5Y7_js = require('../chunk-TLQQB5Y7.js');
|
|
5
|
+
var chunkA6CBLMST_js = require('../chunk-A6CBLMST.js');
|
|
6
6
|
var web = require('solid-js/web');
|
|
7
7
|
var solidJs = require('solid-js');
|
|
8
8
|
var store = require('solid-js/store');
|
|
@@ -37,7 +37,7 @@ function _interopNamespace(e) {
|
|
|
37
37
|
var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
38
38
|
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
39
39
|
|
|
40
|
-
//
|
|
40
|
+
// _3la1xivug:/home/runner/work/novu/novu/packages/js/src/ui/index.directcss
|
|
41
41
|
var ui_default = `.novu{scrollbar-color:var(--nv-color-secondary-foreground-alpha-300) #0000;:where(*),:where(*) :after,:where(*) :before,:where(*):after,:where(*):before{border:0 solid #e5e7eb;box-sizing:border-box}:where(html,:host){line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;tab-size:4;-webkit-tap-highlight-color:transparent}:where(body){line-height:inherit;margin:0}:where(hr){border-top-width:1px;color:inherit;height:0}:where(abbr:where([title])){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}:where(h1,h2,h3,h4,h5,h6){font-size:inherit;font-weight:inherit}:where(a){color:inherit;text-decoration:inherit}:where(b,strong){font-weight:bolder}:where(code,kbd,samp,pre){font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}:where(small){font-size:80%}:where(sub,sup){font-size:75%;line-height:0;position:relative;vertical-align:initial}:where(sub){bottom:-.25em}:where(sup){top:-.5em}:where(table){border-collapse:collapse;border-color:inherit;text-indent:0}:where(button,input,optgroup,select,textarea){color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}:where(button,select){text-transform:none}:where(button,input:where([type=button]),input:where([type=reset]),input:where([type=submit])){-webkit-appearance:button;background-color:initial;background-image:none}:where(:-moz-focusring){outline:auto}:where(:-moz-ui-invalid){box-shadow:none}:where(progress){vertical-align:initial}:where(*)::-webkit-inner-spin-button,:where(*)::-webkit-outer-spin-button{height:auto}:where([type=search]){-webkit-appearance:textfield;outline-offset:-2px}:where(*)::-webkit-search-decoration{-webkit-appearance:none}:where(*)::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}:where(summary){display:list-item}:where(blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre){margin:0}:where(fieldset){margin:0;padding:0}:where(legend){padding:0}:where(ol,ul,menu){list-style:none;margin:0;padding:0}:where(dialog){padding:0}:where(textarea){resize:vertical}:where(input)::placeholder,:where(textarea)::placeholder{color:#9ca3af;opacity:1}:where(button,[role=button]){cursor:pointer}:where(:disabled){cursor:default}:where(img,svg,video,canvas,audio,iframe,embed,object){display:block;vertical-align:middle}:where(img,video){height:auto;max-width:100%}:where([hidden]){display:none}:where(*),:where(*) :after,:where(*) :before,:where(*):after,:where(*):before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }:where(*) ::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::-webkit-scrollbar{height:.5rem;width:.5rem}::-webkit-scrollbar-thumb{background-clip:"padding-box";background-color:var(--nv-color-secondary-foreground-alpha-300);border-radius:.25rem}::-webkit-scrollbar-corner,::-webkit-scrollbar-track{background-color:initial}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}}.nt-sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.\\!nt-pointer-events-auto{pointer-events:auto!important}.nt-invisible{visibility:hidden}.nt-absolute{position:absolute}.nt-relative{position:relative}.nt-inset-0{inset:0}.nt-inset-2{inset:.5rem}.nt-bottom-0{bottom:0}.nt-left-0{left:0}.nt-left-0\\.5{left:.125rem}.nt-right-0{right:0}.nt-right-3{right:.75rem}.nt-top-0{top:0}.nt-top-0\\.5{top:.125rem}.nt-top-3{top:.75rem}.nt-z-10{z-index:10}.nt-z-\\[-1\\]{z-index:-1}.-nt-m-1{margin:-.25rem}.nt-mx-auto{margin-left:auto;margin-right:auto}.-nt-mt-2{margin-top:-.5rem}.-nt-mt-\\[2px\\]{margin-top:-2px}.nt--mt-\\[50px\\]{margin-top:-50px}.nt-mb-1{margin-bottom:.25rem}.nt-mb-2{margin-bottom:.5rem}.nt-mb-3{margin-bottom:.75rem}.nt-mb-4{margin-bottom:1rem}.nt-mb-\\[0\\.625rem\\]{margin-bottom:.625rem}.nt-ml-1{margin-left:.25rem}.nt-ml-2{margin-left:.5rem}.nt-ml-auto{margin-left:auto}.nt-mr-2{margin-right:.5rem}.nt-mr-auto{margin-right:auto}.nt-mt-1{margin-top:.25rem}.nt-mt-1\\.5{margin-top:.375rem}.nt-mt-auto{margin-top:auto}.nt-block{display:block}.nt-flex{display:flex}.nt-inline-flex{display:inline-flex}.nt-grid{display:grid}.nt-hidden{display:none}.nt-aspect-square{aspect-ratio:1/1}.nt-size-1\\.5{height:.375rem;width:.375rem}.nt-size-2{height:.5rem;width:.5rem}.nt-size-2\\.5{height:.625rem;width:.625rem}.nt-size-3{height:.75rem;width:.75rem}.nt-size-3\\.5{height:.875rem;width:.875rem}.nt-size-4{height:1rem;width:1rem}.nt-size-5{height:1.25rem;width:1.25rem}.nt-size-6{height:1.5rem;width:1.5rem}.nt-size-8{height:2rem;width:2rem}.nt-size-fit{height:-webkit-fit-content;height:fit-content;width:-webkit-fit-content;width:fit-content}.nt-size-full{height:100%;width:100%}.nt-h-2{height:.5rem}.nt-h-3{height:.75rem}.nt-h-3\\.5{height:.875rem}.nt-h-4{height:1rem}.nt-h-5{height:1.25rem}.nt-h-6{height:1.5rem}.nt-h-7{height:1.75rem}.nt-h-8{height:2rem}.nt-h-9{height:2.25rem}.nt-h-\\[600px\\]{height:600px}.nt-h-auto{height:auto}.nt-h-fit{height:-webkit-fit-content;height:fit-content}.nt-h-full{height:100%}.nt-max-h-\\[160px\\]{max-height:160px}.nt-min-h-0{min-height:0}.nt-min-h-\\[272px\\]{min-height:272px}.nt-w-1\\.5{width:.375rem}.nt-w-1\\/3{width:33.333333%}.nt-w-2\\/3{width:66.666667%}.nt-w-5{width:1.25rem}.nt-w-7{width:1.75rem}.nt-w-8{width:2rem}.nt-w-\\[260px\\]{width:260px}.nt-w-\\[350px\\]{width:350px}.nt-w-\\[3px\\]{width:3px}.nt-w-\\[400px\\]{width:400px}.nt-w-\\[60px\\]{width:60px}.nt-w-\\[calc\\(2ch\\+2rem\\)\\]{width:calc(2ch + 2rem)}.nt-w-fit{width:-webkit-fit-content;width:fit-content}.nt-w-full{width:100%}.nt-w-max{width:-webkit-max-content;width:max-content}.nt-min-w-52{min-width:13rem}.nt-min-w-\\[120px\\]{min-width:120px}.nt-min-w-\\[220px\\]{min-width:220px}.nt-min-w-\\[74px\\]{min-width:74px}.nt-max-w-56{max-width:14rem}.nt-max-w-\\[120px\\]{max-width:120px}.nt-max-w-\\[220px\\]{max-width:220px}.nt-flex-1{flex:1 1 0%}.nt-shrink-0{flex-shrink:0}.nt-translate-x-1\\/2{--tw-translate-x:50%}.nt-transform,.nt-translate-x-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes nt-shimmer{0%{opacity:1}50%{opacity:.6}to{opacity:1}}.nt-animate-shimmer{animation:nt-shimmer 1.5s ease-in-out infinite}@keyframes nt-spin{to{transform:rotate(1turn)}}.nt-animate-spin{animation:nt-spin 1s linear infinite}.nt-cursor-default{cursor:default}.nt-cursor-not-allowed{cursor:not-allowed}.nt-cursor-pointer{cursor:pointer}.nt-grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.nt-flex-row{flex-direction:row}.nt-flex-col{flex-direction:column}.nt-flex-wrap{flex-wrap:wrap}.nt-flex-nowrap{flex-wrap:nowrap}.nt-items-start{align-items:flex-start}.nt-items-center{align-items:center}.nt-justify-end{justify-content:flex-end}.nt-justify-center{justify-content:center}.nt-justify-between{justify-content:space-between}.nt-gap-0\\.5{gap:.125rem}.nt-gap-1{gap:.25rem}.nt-gap-1\\.5{gap:.375rem}.nt-gap-2{gap:.5rem}.nt-gap-3{gap:.75rem}.nt-gap-4{gap:1rem}.nt-gap-6{gap:1.5rem}.nt-gap-8{gap:2rem}.nt-self-stretch{align-self:stretch}.nt-overflow-auto{overflow:auto}.nt-overflow-hidden{overflow:hidden}.nt-overflow-y-auto{overflow-y:auto}.nt-overflow-x-hidden{overflow-x:hidden}.nt-truncate{overflow:hidden;text-overflow:ellipsis}.nt-truncate,.nt-whitespace-nowrap{white-space:nowrap}.nt-whitespace-pre-wrap{white-space:pre-wrap}.nt-rounded{border-radius:var(--nv-radius-base)}.nt-rounded-full{border-radius:var(--nv-radius-full)}.nt-rounded-lg{border-radius:var(--nv-radius-lg)}.nt-rounded-md{border-radius:var(--nv-radius-md)}.nt-rounded-sm{border-radius:var(--nv-radius-sm)}.nt-rounded-xl{border-radius:var(--nv-radius-xl)}.nt-rounded-b-lg{border-bottom-left-radius:var(--nv-radius-lg);border-bottom-right-radius:var(--nv-radius-lg)}.nt-border{border-width:1px}.nt-border-b{border-bottom-width:1px}.nt-border-t{border-top-width:1px}.nt-border-background{border-color:var(--nv-color-background)}.nt-border-border{border-color:var(--nv-color-neutral-alpha-100)}.nt-border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.nt-border-neutral-alpha-100{border-color:var(--nv-color-neutral-alpha-100)}.nt-border-neutral-alpha-200{border-color:var(--nv-color-neutral-alpha-200)}.nt-border-neutral-alpha-400{border-color:var(--nv-color-neutral-alpha-400)}.nt-border-neutral-alpha-50{border-color:var(--nv-color-neutral-alpha-50)}.nt-border-primary{border-color:var(--nv-color-primary)}.nt-border-t-neutral-alpha-200{border-top-color:var(--nv-color-neutral-alpha-200)}.nt-bg-\\[oklch\\(from_var\\(--nv-color-stripes\\)_l_c_h_\\/_0\\.1\\)\\]{background-color:oklch(from var(--nv-color-stripes) l c h/.1)}.nt-bg-background{background-color:var(--nv-color-background)}.nt-bg-counter{background-color:var(--nv-color-counter)}.nt-bg-foreground{background-color:var(--nv-color-foreground)}.nt-bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.nt-bg-neutral-alpha-100{background-color:var(--nv-color-neutral-alpha-100)}.nt-bg-neutral-alpha-25{background-color:var(--nv-color-neutral-alpha-25)}.nt-bg-neutral-alpha-300{background-color:var(--nv-color-neutral-alpha-300)}.nt-bg-neutral-alpha-50{background-color:var(--nv-color-neutral-alpha-50)}.nt-bg-primary{background-color:var(--nv-color-primary)}.nt-bg-primary-alpha-300{background-color:var(--nv-color-primary-alpha-300)}.nt-bg-primary-alpha-400{background-color:var(--nv-color-primary-alpha-400)}.nt-bg-secondary{background-color:var(--nv-color-secondary)}.nt-bg-severity-high{background-color:var(--nv-color-severity-high)}.nt-bg-severity-high-alpha-100{background-color:var(--nv-color-severity-high-alpha-100)}.nt-bg-severity-high-alpha-200{background-color:var(--nv-color-severity-high-alpha-200)}.nt-bg-severity-high-alpha-300{background-color:var(--nv-color-severity-high-alpha-300)}.nt-bg-severity-high-alpha-50{background-color:var(--nv-color-severity-high-alpha-50)}.nt-bg-severity-low{background-color:var(--nv-color-severity-low)}.nt-bg-severity-low-alpha-100{background-color:var(--nv-color-severity-low-alpha-100)}.nt-bg-severity-low-alpha-200{background-color:var(--nv-color-severity-low-alpha-200)}.nt-bg-severity-low-alpha-300{background-color:var(--nv-color-severity-low-alpha-300)}.nt-bg-severity-low-alpha-50{background-color:var(--nv-color-severity-low-alpha-50)}.nt-bg-severity-medium{background-color:var(--nv-color-severity-medium)}.nt-bg-severity-medium-alpha-100{background-color:var(--nv-color-severity-medium-alpha-100)}.nt-bg-severity-medium-alpha-200{background-color:var(--nv-color-severity-medium-alpha-200)}.nt-bg-severity-medium-alpha-300{background-color:var(--nv-color-severity-medium-alpha-300)}.nt-bg-severity-medium-alpha-50{background-color:var(--nv-color-severity-medium-alpha-50)}.nt-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.nt-bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.nt-bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.nt-from-foreground-alpha-50{--tw-gradient-from:var(--nv-color-foreground-alpha-50) var(--tw-gradient-from-position);--tw-gradient-to:#fff0 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.nt-from-primary-foreground-alpha-200{--tw-gradient-from:var(--nv-color-primary-foreground-alpha-200) var(--tw-gradient-from-position);--tw-gradient-to:#fff0 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.nt-from-transparent{--tw-gradient-from:#0000 var(--tw-gradient-from-position);--tw-gradient-to:#0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.nt-from-20\\%{--tw-gradient-from-position:20%}.nt-to-background{--tw-gradient-to:var(--nv-color-background) var(--tw-gradient-to-position)}.nt-to-transparent{--tw-gradient-to:#0000 var(--tw-gradient-to-position)}.nt-object-cover{object-fit:cover}.nt-p-0{padding:0}.nt-p-0\\.5{padding:.125rem}.nt-p-1{padding:.25rem}.nt-p-2{padding:.5rem}.nt-p-2\\.5{padding:.625rem}.nt-p-3{padding:.75rem}.nt-p-4{padding:1rem}.nt-px-1{padding-left:.25rem;padding-right:.25rem}.nt-px-2{padding-left:.5rem;padding-right:.5rem}.nt-px-3{padding-left:.75rem;padding-right:.75rem}.nt-px-4{padding-left:1rem;padding-right:1rem}.nt-px-8{padding-left:2rem;padding-right:2rem}.nt-px-\\[6px\\]{padding-left:6px;padding-right:6px}.nt-py-1{padding-bottom:.25rem;padding-top:.25rem}.nt-py-1\\.5{padding-bottom:.375rem;padding-top:.375rem}.nt-py-2{padding-bottom:.5rem;padding-top:.5rem}.nt-py-3{padding-bottom:.75rem;padding-top:.75rem}.nt-py-3\\.5{padding-bottom:.875rem;padding-top:.875rem}.nt-py-4{padding-bottom:1rem;padding-top:1rem}.nt-py-px{padding-bottom:1px;padding-top:1px}.nt-pb-12{padding-bottom:3rem}.nt-pb-2{padding-bottom:.5rem}.nt-pb-\\[0\\.625rem\\]{padding-bottom:.625rem}.nt-pr-0{padding-right:0}.nt-pt-2{padding-top:.5rem}.nt-pt-2\\.5{padding-top:.625rem}.nt-pt-8{padding-top:2rem}.nt-text-left{text-align:left}.nt-text-center{text-align:center}.nt-text-start{text-align:start}.nt-font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.nt-text-\\[0\\.8rem\\]{font-size:.8rem}.nt-text-\\[12px\\]{font-size:12px}.nt-text-base{font-size:var(--nv-font-size-base);line-height:var(--nv-line-height-base)}.nt-text-sm{font-size:var(--nv-font-size-sm);line-height:var(--nv-line-height-sm)}.nt-text-xl{font-size:var(--nv-font-size-xl);line-height:var(--nv-line-height-xl)}.nt-text-xs{font-size:var(--nv-font-size-xs);line-height:var(--nv-line-height-xs)}.nt-font-medium{font-weight:500}.nt-font-normal{font-weight:400}.nt-font-semibold{font-weight:600}.nt-italic{font-style:italic}.nt-leading-none{line-height:1}.nt-text-\\[\\#000000\\]{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.nt-text-background{color:var(--nv-color-background)}.nt-text-counter-foreground{color:var(--nv-color-counter-foreground)}.nt-text-foreground{color:var(--nv-color-foreground)}.nt-text-foreground-alpha-300{color:var(--nv-color-foreground-alpha-300)}.nt-text-foreground-alpha-400{color:var(--nv-color-foreground-alpha-400)}.nt-text-foreground-alpha-600{color:var(--nv-color-foreground-alpha-600)}.nt-text-foreground-alpha-700{color:var(--nv-color-foreground-alpha-700)}.nt-text-neutral-600{--tw-text-opacity:1;color:rgb(82 82 82/var(--tw-text-opacity,1))}.nt-text-neutral-alpha-500{color:var(--nv-color-neutral-alpha-500)}.nt-text-primary-foreground{color:var(--nv-color-primary-foreground)}.nt-text-secondary-foreground{color:var(--nv-color-secondary-foreground)}.nt-text-stripes{color:var(--nv-color-stripes)}.nt-text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.nt-underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.nt-opacity-0{opacity:0}.nt-opacity-20{opacity:.2}.nt-opacity-50{opacity:.5}.nt-shadow{--tw-shadow:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.nt-shadow-\\[0_0_0_0\\.5px_var\\(--nv-color-primary-600\\)\\]{--tw-shadow:0 0 0 0.5px var(--nv-color-primary-600);--tw-shadow-colored:0 0 0 0.5px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.nt-shadow-\\[0_0_0_0\\.5px_var\\(--nv-color-secondary-600\\)\\]{--tw-shadow:0 0 0 0.5px var(--nv-color-secondary-600);--tw-shadow-colored:0 0 0 0.5px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.nt-shadow-\\[0_1px_2px_0_rgba\\(10\\,13\\,20\\,0\\.03\\)\\]{--tw-shadow:0 1px 2px 0 #0a0d1408;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.nt-shadow-\\[0px_1px_2px_0px_rgba\\(10\\,13\\,20\\,0\\.03\\)\\]{--tw-shadow:0px 1px 2px 0px #0a0d1408;--tw-shadow-colored:0px 1px 2px 0px var(--tw-shadow-color)}.nt-shadow-\\[0px_1px_2px_0px_rgba\\(10\\,13\\,20\\,0\\.03\\)\\],.nt-shadow-dropdown{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.nt-shadow-dropdown{--tw-shadow:0px 12px 16px -4px oklch(from var(--nv-color-shadow) l c h/0.08),0px 4px 6px -2px oklch(from var(--nv-color-shadow) l c h/0.03);--tw-shadow-colored:0px 12px 16px -4px var(--tw-shadow-color),0px 4px 6px -2px var(--tw-shadow-color)}.nt-shadow-lg{--tw-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.nt-shadow-lg,.nt-shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.nt-shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.nt-shadow-popover{--tw-shadow:0px 8px 26px 0px oklch(from var(--nv-color-shadow) l c h/0.08),0px 2px 6px 0px oklch(from var(--nv-color-shadow) l c h/0.12);--tw-shadow-colored:0px 8px 26px 0px var(--tw-shadow-color),0px 2px 6px 0px var(--tw-shadow-color)}.nt-shadow-popover,.nt-shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.nt-shadow-sm{--tw-shadow:0 1px 2px 0 #0000000d;--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.nt-shadow-tooltip{--tw-shadow:0 5px 20px 0 oklch(from var(--nv-color-shadow) l c h/0.08);--tw-shadow-colored:0 5px 20px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.nt-outline-none{outline:2px solid #0000;outline-offset:2px}.nt-ring-offset-background{--tw-ring-offset-color:var(--nv-color-background)}.nt-backdrop-blur-lg{--tw-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.nt-transition{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.nt-transition-\\[width\\]{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.nt-transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.nt-transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1)}.nt-transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.nt-duration-100{transition-duration:.1s}.nt-duration-200{transition-duration:.2s}.nt-ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.nt-will-change-\\[width\\]{will-change:width}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0) scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1)) rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0) scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1)) rotate(var(--tw-exit-rotate,0))}}.nt-animate-in{animation-duration:.15s;animation-name:enter;--tw-enter-opacity:initial;--tw-enter-scale:initial;--tw-enter-rotate:initial;--tw-enter-translate-x:initial;--tw-enter-translate-y:initial}.nt-fade-in{--tw-enter-opacity:0}.nt-slide-in-from-top-2{--tw-enter-translate-y:-0.5rem}.nt-duration-100{animation-duration:.1s}.nt-duration-200{animation-duration:.2s}.nt-ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[--bell-gradient-end\\:oklch\\(from_var\\(--nv-color-foreground\\)_80\\%_c_h\\)\\]{--bell-gradient-end:oklch(from var(--nv-color-foreground) 80% c h)}.\\[--bell-gradient-end\\:oklch\\(from_var\\(--nv-color-severity-high\\)_45\\%_c_h\\)\\]{--bell-gradient-end:oklch(from var(--nv-color-severity-high) 45% c h)}.\\[--bell-gradient-end\\:oklch\\(from_var\\(--nv-color-severity-high\\)_80\\%_c_h\\)\\]{--bell-gradient-end:oklch(from var(--nv-color-severity-high) 80% c h)}.\\[--bell-gradient-end\\:oklch\\(from_var\\(--nv-color-severity-low\\)_45\\%_c_h\\)\\]{--bell-gradient-end:oklch(from var(--nv-color-severity-low) 45% c h)}.\\[--bell-gradient-end\\:oklch\\(from_var\\(--nv-color-severity-low\\)_80\\%_c_h\\)\\]{--bell-gradient-end:oklch(from var(--nv-color-severity-low) 80% c h)}.\\[--bell-gradient-end\\:oklch\\(from_var\\(--nv-color-severity-medium\\)_45\\%_c_h\\)\\]{--bell-gradient-end:oklch(from var(--nv-color-severity-medium) 45% c h)}.\\[--bell-gradient-end\\:oklch\\(from_var\\(--nv-color-severity-medium\\)_80\\%_c_h\\)\\]{--bell-gradient-end:oklch(from var(--nv-color-severity-medium) 80% c h)}.\\[--bell-gradient-start\\:var\\(--nv-color-foreground\\)\\]{--bell-gradient-start:var(--nv-color-foreground)}.\\[--bell-gradient-start\\:var\\(--nv-color-severity-high\\)\\]{--bell-gradient-start:var(--nv-color-severity-high)}.\\[--bell-gradient-start\\:var\\(--nv-color-severity-low\\)\\]{--bell-gradient-start:var(--nv-color-severity-low)}.\\[--bell-gradient-start\\:var\\(--nv-color-severity-medium\\)\\]{--bell-gradient-start:var(--nv-color-severity-medium)}.\\[interpolate-size\\:allow-keywords\\]{interpolate-size:allow-keywords}.\\[line-height\\:16px\\]{line-height:16px}.\\[scrollbar-gutter\\:stable\\]{scrollbar-gutter:stable}.\\[word-break\\:break-word\\]{word-break:break-word}.before\\:nt-absolute:before{content:var(--tw-content);position:absolute}.before\\:nt-inset-0:before{content:var(--tw-content);inset:0}.before\\:-nt-right-\\[calc\\(0\\+var\\(--stripes-size\\)\\)\\]:before{content:var(--tw-content);right:calc(var(--stripes-size)*-1)}.before\\:nt-m-1:before{content:var(--tw-content);margin:.25rem}@keyframes nt-stripes{0%{content:var(--tw-content);transform:translateX(0)}to{content:var(--tw-content);transform:translateX(calc(var(--stripes-size)*-1))}}.before\\:nt-animate-stripes:before{animation:nt-stripes 1s linear infinite paused;content:var(--tw-content)}.before\\:nt-rounded-full:before{border-radius:var(--nv-radius-full);content:var(--tw-content)}.before\\:nt-rounded-md:before{border-radius:var(--nv-radius-md);content:var(--tw-content)}.before\\:nt-rounded-xl:before{border-radius:var(--nv-radius-xl);content:var(--tw-content)}.before\\:nt-border:before{border-width:1px;content:var(--tw-content)}.before\\:nt-border-primary-foreground-alpha-100:before{border-color:var(--nv-color-primary-foreground-alpha-100);content:var(--tw-content)}.before\\:nt-border-secondary-foreground-alpha-100:before{border-color:var(--nv-color-secondary-foreground-alpha-100);content:var(--tw-content)}.before\\:nt-bg-severity-high-alpha-200:before{background-color:var(--nv-color-severity-high-alpha-200);content:var(--tw-content)}.before\\:nt-bg-severity-high-alpha-300:before{background-color:var(--nv-color-severity-high-alpha-300);content:var(--tw-content)}.before\\:nt-bg-severity-low-alpha-200:before{background-color:var(--nv-color-severity-low-alpha-200);content:var(--tw-content)}.before\\:nt-bg-severity-low-alpha-300:before{background-color:var(--nv-color-severity-low-alpha-300);content:var(--tw-content)}.before\\:nt-bg-severity-medium-alpha-200:before{background-color:var(--nv-color-severity-medium-alpha-200);content:var(--tw-content)}.before\\:nt-bg-severity-medium-alpha-300:before{background-color:var(--nv-color-severity-medium-alpha-300);content:var(--tw-content)}.before\\:nt-bg-dev-stripes-gradient:before{background-image:repeating-linear-gradient(135deg,oklch(from var(--nv-color-stripes) l c h/.1) 25%,oklch(from var(--nv-color-stripes) l c h/.1) 50%,oklch(from var(--nv-color-stripes) l c h/.2) 50%,oklch(from var(--nv-color-stripes) l c h/.2) 75%);content:var(--tw-content)}.before\\:nt-bg-\\[length\\:var\\(--stripes-size\\)_var\\(--stripes-size\\)\\]:before{background-size:var(--stripes-size) var(--stripes-size);content:var(--tw-content)}.before\\:nt-content-\\[\\"\\"\\]:before{--tw-content:"";content:var(--tw-content)}.before\\:\\[mask-image\\:linear-gradient\\(transparent_0\\%\\2c black\\)\\]:before{content:var(--tw-content);-webkit-mask-image:linear-gradient(#0000,#000);mask-image:linear-gradient(#0000,#000)}.after\\:nt-absolute:after{content:var(--tw-content);position:absolute}.after\\:nt-inset-0:after{content:var(--tw-content);inset:0}.after\\:-nt-top-12:after{content:var(--tw-content);top:-3rem}.after\\:nt-bottom-0:after{bottom:0;content:var(--tw-content)}.after\\:nt-left-0:after{content:var(--tw-content);left:0}.after\\:nt-left-0\\.5:after{content:var(--tw-content);left:.125rem}.after\\:nt-top-0\\.5:after{content:var(--tw-content);top:.125rem}.after\\:nt-size-3:after{content:var(--tw-content);height:.75rem;width:.75rem}.after\\:nt-h-\\[2px\\]:after{content:var(--tw-content);height:2px}.after\\:nt-w-full:after{content:var(--tw-content);width:100%}.after\\:nt-translate-x-1\\/2:after{--tw-translate-x:50%}.after\\:nt-translate-x-1\\/2:after,.after\\:nt-translate-x-full:after{content:var(--tw-content);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.after\\:nt-translate-x-full:after{--tw-translate-x:100%}.after\\:nt-rounded-full:after{border-radius:var(--nv-radius-full);content:var(--tw-content)}.after\\:nt-rounded-md:after{border-radius:var(--nv-radius-md);content:var(--tw-content)}.after\\:nt-rounded-xl:after{border-radius:var(--nv-radius-xl);content:var(--tw-content)}.after\\:nt-border-b-2:after{border-bottom-width:2px;content:var(--tw-content)}.after\\:nt-border-background:after{border-color:var(--nv-color-background);content:var(--tw-content)}.after\\:nt-border-b-primary:after{border-bottom-color:var(--nv-color-primary);content:var(--tw-content)}.after\\:nt-border-b-transparent:after{border-bottom-color:#0000;content:var(--tw-content)}.after\\:nt-bg-background:after{background-color:var(--nv-color-background);content:var(--tw-content)}.after\\:nt-bg-\\[linear-gradient\\(180deg\\2c transparent\\2c oklch\\(from_var\\(--nv-color-background\\)_l_c_h_\\/_0\\.9\\)_55\\%\\2c transparent\\)\\]:after{background-image:linear-gradient(180deg,#0000,oklch(from var(--nv-color-background) l c h/.9) 55%,#0000);content:var(--tw-content)}.after\\:nt-bg-\\[linear-gradient\\(180deg\\2c transparent\\2c oklch\\(from_var\\(--nv-color-stripes\\)_l_c_h_\\/_0\\.07\\)_55\\%\\2c transparent\\)\\2c linear-gradient\\(180deg\\2c transparent\\2c oklch\\(from_var\\(--nv-color-background\\)_l_c_h_\\/_0\\.9\\)_55\\%\\2c transparent\\)\\]:after{background-image:linear-gradient(180deg,#0000,oklch(from var(--nv-color-stripes) l c h/.07) 55%,#0000),linear-gradient(180deg,#0000,oklch(from var(--nv-color-background) l c h/.9) 55%,#0000);content:var(--tw-content)}.after\\:nt-bg-gradient-to-b:after{background-image:linear-gradient(to bottom,var(--tw-gradient-stops));content:var(--tw-content)}.after\\:nt-from-primary-foreground-alpha-50:after{content:var(--tw-content);--tw-gradient-from:var(--nv-color-primary-foreground-alpha-50) var(--tw-gradient-from-position);--tw-gradient-to:#fff0 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.after\\:nt-from-secondary-foreground-alpha-50:after{content:var(--tw-content);--tw-gradient-from:var(--nv-color-secondary-foreground-alpha-50) var(--tw-gradient-from-position);--tw-gradient-to:#fff0 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.after\\:nt-to-transparent:after{content:var(--tw-content);--tw-gradient-to:#0000 var(--tw-gradient-to-position)}.after\\:nt-opacity-0:after{content:var(--tw-content);opacity:0}.after\\:nt-transition-all:after{content:var(--tw-content);transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.after\\:nt-transition-opacity:after{content:var(--tw-content);transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.after\\:nt-duration-200:after{transition-duration:.2s}.after\\:nt-content-\\[\\"\\"\\]:after,.after\\:nt-content-\\[\\'\\'\\]:after{--tw-content:"";content:var(--tw-content)}.after\\:nt-duration-200:after{animation-duration:.2s;content:var(--tw-content)}.hover\\:nt-bg-neutral-alpha-100:hover{background-color:var(--nv-color-neutral-alpha-100)}.hover\\:nt-bg-neutral-alpha-50:hover{background-color:var(--nv-color-neutral-alpha-50)}.hover\\:nt-bg-primary-600:hover{background-color:var(--nv-color-primary-600)}.hover\\:nt-bg-primary-alpha-25:hover{background-color:var(--nv-color-primary-alpha-25)}.hover\\:nt-bg-primary-alpha-400:hover{background-color:var(--nv-color-primary-alpha-400)}.hover\\:nt-bg-severity-high-alpha-50:hover{background-color:var(--nv-color-severity-high-alpha-50)}.hover\\:nt-bg-severity-low-alpha-50:hover{background-color:var(--nv-color-severity-low-alpha-50)}.hover\\:nt-bg-severity-medium-alpha-50:hover{background-color:var(--nv-color-severity-medium-alpha-50)}.hover\\:nt-text-foreground-alpha-800:hover{color:var(--nv-color-foreground-alpha-800)}.before\\:hover\\:\\[animation-play-state\\:running\\]:hover:before{animation-play-state:running;content:var(--tw-content)}.hover\\:after\\:nt-opacity-100:hover:after{content:var(--tw-content);opacity:1}.focus\\:nt-outline-none:focus{outline:2px solid #0000;outline-offset:2px}.focus-visible\\:nt-rounded-lg:focus-visible{border-radius:var(--nv-radius-lg)}.focus-visible\\:nt-rounded-md:focus-visible{border-radius:var(--nv-radius-md)}.focus-visible\\:nt-rounded-xl:focus-visible{border-radius:var(--nv-radius-xl)}.focus-visible\\:nt-bg-neutral-alpha-50:focus-visible{background-color:var(--nv-color-neutral-alpha-50)}.focus-visible\\:nt-outline-none:focus-visible{outline:2px solid #0000;outline-offset:2px}.focus-visible\\:nt-ring-2:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:nt-ring-primary:focus-visible{--tw-ring-color:var(--nv-color-primary)}.focus-visible\\:nt-ring-ring:focus-visible{--tw-ring-color:var(--nv-color-ring)}.focus-visible\\:nt-ring-offset-2:focus-visible{--tw-ring-offset-width:2px}.disabled\\:nt-pointer-events-none:disabled{pointer-events:none}.disabled\\:nt-opacity-20:disabled{opacity:.2}.disabled\\:nt-opacity-50:disabled{opacity:.5}.nt-group:focus-within .group-focus-within\\:nt-opacity-100{opacity:1}.nt-group:hover .group-hover\\:nt-bg-severity-high-alpha-500{background-color:var(--nv-color-severity-high-alpha-500)}.nt-group:hover .group-hover\\:nt-bg-severity-low-alpha-500{background-color:var(--nv-color-severity-low-alpha-500)}.nt-group:hover .group-hover\\:nt-bg-severity-medium-alpha-500{background-color:var(--nv-color-severity-medium-alpha-500)}.nt-group:hover .group-hover\\:nt-opacity-0{opacity:0}.nt-group:hover .group-hover\\:nt-opacity-100{opacity:1}.nt-peer:focus-visible~.peer-focus-visible\\:nt-outline-none{outline:2px solid #0000;outline-offset:2px}.nt-peer:focus-visible~.peer-focus-visible\\:nt-ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.nt-peer:focus-visible~.peer-focus-visible\\:nt-ring-offset-2{--tw-ring-offset-width:2px}.data-\\[open\\=true\\]\\:nt-rotate-180[data-open=true]{--tw-rotate:180deg}.data-\\[open\\=true\\]\\:nt-rotate-180[data-open=true],.data-\\[open\\=true\\]\\:nt-transform[data-open=true]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:nt-cursor-not-allowed[data-disabled]{cursor:not-allowed}.data-\\[checked\\]\\:nt-border-none[data-checked],.data-\\[indeterminate\\]\\:nt-border-none[data-indeterminate]{border-style:none}.data-\\[checked\\]\\:nt-bg-primary[data-checked],.data-\\[indeterminate\\]\\:nt-bg-primary[data-indeterminate]{background-color:var(--nv-color-primary)}.data-\\[checked\\]\\:nt-text-primary-foreground[data-checked]{color:var(--nv-color-primary-foreground)}.data-\\[disabled\\=true\\]\\:nt-text-foreground-alpha-400[data-disabled=true]{color:var(--nv-color-foreground-alpha-400)}.data-\\[disabled\\=true\\]\\:nt-text-foreground-alpha-600[data-disabled=true]{color:var(--nv-color-foreground-alpha-600)}.data-\\[indeterminate\\]\\:nt-text-primary-foreground[data-indeterminate]{color:var(--nv-color-primary-foreground)}.data-\\[state\\=active\\]\\:nt-text-foreground[data-state=active]{color:var(--nv-color-foreground)}.data-\\[disabled\\]\\:nt-opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=active\\]\\:after\\:nt-border-b-2[data-state=active]:after{border-bottom-width:2px;content:var(--tw-content)}.data-\\[state\\=active\\]\\:after\\:nt-border-primary[data-state=active]:after{border-color:var(--nv-color-primary);content:var(--tw-content)}.data-\\[state\\=active\\]\\:after\\:nt-opacity-100[data-state=active]:after{content:var(--tw-content);opacity:1}.\\[\\&\\:not\\(\\:first-child\\)\\]\\:nt-border-t:not(:first-child){border-top-width:1px}.\\[\\&_\\.nv-notificationList\\]\\:nt-pb-12 .nv-notificationList{padding-bottom:3rem}.\\[\\&_\\.nv-notificationList\\]\\:nt-pb-8 .nv-notificationList{padding-bottom:2rem}.\\[\\&_\\.nv-preferencesContainer\\]\\:nt-pb-12 .nv-preferencesContainer{padding-bottom:3rem}.\\[\\&_\\.nv-preferencesContainer\\]\\:nt-pb-8 .nv-preferencesContainer{padding-bottom:2rem}.\\[\\&_stop\\]\\:nt-transition-\\[stop-color\\] stop{transition-duration:.15s;transition-property:stop-color;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\\[\\&_svg\\]\\:nt-pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:nt-shrink-0 svg{flex-shrink:0}`;
|
|
42
42
|
|
|
43
43
|
// src/ui/config/appearanceKeys.ts
|
|
@@ -390,7 +390,7 @@ var appearanceKeys = [
|
|
|
390
390
|
var commonLocalization = {
|
|
391
391
|
locale: "en-US"
|
|
392
392
|
};
|
|
393
|
-
var defaultInboxLocalization =
|
|
393
|
+
var defaultInboxLocalization = chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, commonLocalization), {
|
|
394
394
|
"inbox.filters.dropdownOptions.unread": "Unread only",
|
|
395
395
|
"inbox.filters.dropdownOptions.default": "Unread & read",
|
|
396
396
|
"inbox.filters.dropdownOptions.archived": "Archived",
|
|
@@ -446,7 +446,7 @@ var defaultInboxLocalization = chunk7B52C2XE_js.__spreadProps(chunk7B52C2XE_js._
|
|
|
446
446
|
"snooze.options.inOneDay": "Tomorrow",
|
|
447
447
|
"snooze.options.inOneWeek": "Next week"
|
|
448
448
|
});
|
|
449
|
-
var defaultSubscriptionLocalization =
|
|
449
|
+
var defaultSubscriptionLocalization = chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, commonLocalization), {
|
|
450
450
|
"subscription.subscribe": "Subscribe",
|
|
451
451
|
"subscription.unsubscribe": "Unsubscribe",
|
|
452
452
|
"subscription.preferences.header": "Manage subscription",
|
|
@@ -456,7 +456,7 @@ var defaultSubscriptionLocalization = chunk7B52C2XE_js.__spreadProps(chunk7B52C2
|
|
|
456
456
|
"subscription.preferences.empty.header": "You\u2019re subscribed.",
|
|
457
457
|
"subscription.preferences.empty.description": "Nothing to manage right now."
|
|
458
458
|
});
|
|
459
|
-
var defaultLocalization =
|
|
459
|
+
var defaultLocalization = chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues({}, defaultInboxLocalization), defaultSubscriptionLocalization);
|
|
460
460
|
var [dynamicLocalization, setDynamicLocalization] = solidJs.createSignal({});
|
|
461
461
|
|
|
462
462
|
// src/ui/config/defaultVariables.ts
|
|
@@ -570,7 +570,7 @@ function createInfiniteScroll(fetcher, options) {
|
|
|
570
570
|
if (io && el) io.unobserve(el);
|
|
571
571
|
});
|
|
572
572
|
};
|
|
573
|
-
const reset = () =>
|
|
573
|
+
const reset = () => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
574
574
|
setData([]);
|
|
575
575
|
setInitialLoading(true);
|
|
576
576
|
setEnd(false);
|
|
@@ -593,6 +593,11 @@ function createInfiniteScroll(fetcher, options) {
|
|
|
593
593
|
];
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
+
// src/ui/helpers/normalizeIntlLocale.ts
|
|
597
|
+
function normalizeIntlLocale(locale) {
|
|
598
|
+
return locale.replace(/_/g, "-");
|
|
599
|
+
}
|
|
600
|
+
|
|
596
601
|
// src/ui/helpers/formatToRelativeTime.ts
|
|
597
602
|
var DEFAULT_LOCALE = "en-US";
|
|
598
603
|
var SECONDS = {
|
|
@@ -607,11 +612,12 @@ function formatToRelativeTime({
|
|
|
607
612
|
locale = DEFAULT_LOCALE,
|
|
608
613
|
toDate = /* @__PURE__ */ new Date()
|
|
609
614
|
}) {
|
|
615
|
+
const intlLocale = normalizeIntlLocale(locale);
|
|
610
616
|
const elapsed = toDate.getTime() - fromDate.getTime();
|
|
611
|
-
const formatter = new Intl.RelativeTimeFormat(
|
|
617
|
+
const formatter = new Intl.RelativeTimeFormat(intlLocale, { style: "narrow" });
|
|
612
618
|
const diffInSeconds = Math.floor(elapsed / 1e3);
|
|
613
619
|
if (Math.abs(diffInSeconds) < SECONDS.inMinute) {
|
|
614
|
-
const subMinuteFormatter = new Intl.RelativeTimeFormat(
|
|
620
|
+
const subMinuteFormatter = new Intl.RelativeTimeFormat(intlLocale, { style: "narrow", numeric: "auto" });
|
|
615
621
|
return subMinuteFormatter.format(-0, "second");
|
|
616
622
|
} else if (Math.abs(diffInSeconds) < SECONDS.inHour) {
|
|
617
623
|
return formatter.format(-Math.floor(diffInSeconds / SECONDS.inMinute), "minute");
|
|
@@ -620,10 +626,11 @@ function formatToRelativeTime({
|
|
|
620
626
|
} else if (Math.abs(diffInSeconds) < SECONDS.inMonth) {
|
|
621
627
|
return formatter.format(-Math.floor(diffInSeconds / SECONDS.inDay), "day");
|
|
622
628
|
} else {
|
|
623
|
-
return new Intl.DateTimeFormat(
|
|
629
|
+
return new Intl.DateTimeFormat(intlLocale, { month: "short", day: "numeric" }).format(fromDate);
|
|
624
630
|
}
|
|
625
631
|
}
|
|
626
632
|
function formatSnoozedUntil({ untilDate, locale = DEFAULT_LOCALE }) {
|
|
633
|
+
const intlLocale = normalizeIntlLocale(locale);
|
|
627
634
|
const remaining = untilDate.getTime() - (/* @__PURE__ */ new Date()).getTime();
|
|
628
635
|
const diffInSeconds = Math.floor(remaining / 1e3);
|
|
629
636
|
if (diffInSeconds < 0) {
|
|
@@ -641,7 +648,7 @@ function formatSnoozedUntil({ untilDate, locale = DEFAULT_LOCALE }) {
|
|
|
641
648
|
const days = Math.floor(diffInSeconds / SECONDS.inDay);
|
|
642
649
|
return `${days} ${days === 1 ? "day" : "days"}`;
|
|
643
650
|
} else {
|
|
644
|
-
return new Intl.DateTimeFormat(
|
|
651
|
+
return new Intl.DateTimeFormat(intlLocale, { month: "short", day: "numeric" }).format(untilDate);
|
|
645
652
|
}
|
|
646
653
|
}
|
|
647
654
|
|
|
@@ -669,7 +676,7 @@ var NotificationVisibilityTracker = class {
|
|
|
669
676
|
this.observer = null;
|
|
670
677
|
this.elementToNotificationMap = /* @__PURE__ */ new WeakMap();
|
|
671
678
|
this.observedElements = /* @__PURE__ */ new Set();
|
|
672
|
-
this.options =
|
|
679
|
+
this.options = chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues({}, DEFAULT_OPTIONS), options);
|
|
673
680
|
this.initializeObserver();
|
|
674
681
|
this.startVisibilityTimer();
|
|
675
682
|
}
|
|
@@ -769,7 +776,7 @@ var NotificationVisibilityTracker = class {
|
|
|
769
776
|
}, this.options.batchDelay);
|
|
770
777
|
}
|
|
771
778
|
processBatch() {
|
|
772
|
-
return
|
|
779
|
+
return chunkA6CBLMST_js.__async(this, null, function* () {
|
|
773
780
|
this.batchTimer = null;
|
|
774
781
|
const notificationsToSend = Array.from(this.pendingBatch);
|
|
775
782
|
this.pendingBatch.clear();
|
|
@@ -835,7 +842,7 @@ var NotificationVisibilityTracker = class {
|
|
|
835
842
|
}
|
|
836
843
|
// Force process any pending batches (useful for cleanup)
|
|
837
844
|
flush() {
|
|
838
|
-
return
|
|
845
|
+
return chunkA6CBLMST_js.__async(this, null, function* () {
|
|
839
846
|
if (this.batchTimer !== null) {
|
|
840
847
|
window.clearTimeout(this.batchTimer);
|
|
841
848
|
this.batchTimer = null;
|
|
@@ -1254,8 +1261,8 @@ var AppearanceProvider = (props) => {
|
|
|
1254
1261
|
};
|
|
1255
1262
|
const allElements = solidJs.createMemo(() => {
|
|
1256
1263
|
var _a;
|
|
1257
|
-
const baseElements = themes().reduce((acc, obj) =>
|
|
1258
|
-
return
|
|
1264
|
+
const baseElements = themes().reduce((acc, obj) => chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues({}, acc), obj.elements || {}), {});
|
|
1265
|
+
return chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues({}, baseElements), ((_a = props.appearance) == null ? void 0 : _a.elements) || {});
|
|
1259
1266
|
});
|
|
1260
1267
|
const container = () => props.container;
|
|
1261
1268
|
solidJs.onMount(() => {
|
|
@@ -1286,8 +1293,8 @@ var AppearanceProvider = (props) => {
|
|
|
1286
1293
|
if (!styleEl) {
|
|
1287
1294
|
return;
|
|
1288
1295
|
}
|
|
1289
|
-
const baseVariables =
|
|
1290
|
-
setVariableRules(parseVariables(
|
|
1296
|
+
const baseVariables = chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues({}, defaultVariables), themes().reduce((acc, obj) => chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues({}, acc), obj.variables || {}), {}));
|
|
1297
|
+
setVariableRules(parseVariables(chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues({}, baseVariables), ((_a = props.appearance) == null ? void 0 : _a.variables) || {}), props.id));
|
|
1291
1298
|
});
|
|
1292
1299
|
solidJs.createEffect(() => {
|
|
1293
1300
|
const styleEl = styleElement();
|
|
@@ -1295,7 +1302,7 @@ var AppearanceProvider = (props) => {
|
|
|
1295
1302
|
return;
|
|
1296
1303
|
}
|
|
1297
1304
|
const elementsStyleData = parseElements(allElements());
|
|
1298
|
-
setStore("appearanceKeyToCssInJsClass", (obj) =>
|
|
1305
|
+
setStore("appearanceKeyToCssInJsClass", (obj) => chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues({}, obj), elementsStyleData.reduce((acc, item) => {
|
|
1299
1306
|
acc[item.key] = item.className;
|
|
1300
1307
|
return acc;
|
|
1301
1308
|
}, {})));
|
|
@@ -1351,10 +1358,10 @@ var LocalizationProvider = (props) => {
|
|
|
1351
1358
|
const localization = solidJs.createMemo(() => {
|
|
1352
1359
|
const _a = props.localization || {}, {
|
|
1353
1360
|
dynamic
|
|
1354
|
-
} = _a, localizationObject =
|
|
1361
|
+
} = _a, localizationObject = chunkA6CBLMST_js.__objRest(_a, [
|
|
1355
1362
|
"dynamic"
|
|
1356
1363
|
]);
|
|
1357
|
-
return
|
|
1364
|
+
return chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues({}, defaultLocalization), dynamicLocalization()), dynamic || {}), localizationObject);
|
|
1358
1365
|
});
|
|
1359
1366
|
const t = (key, ...args) => {
|
|
1360
1367
|
const value = localization()[key];
|
|
@@ -1363,7 +1370,7 @@ var LocalizationProvider = (props) => {
|
|
|
1363
1370
|
}
|
|
1364
1371
|
return value;
|
|
1365
1372
|
};
|
|
1366
|
-
const locale = solidJs.createMemo(() => localization().locale);
|
|
1373
|
+
const locale = solidJs.createMemo(() => normalizeIntlLocale(localization().locale));
|
|
1367
1374
|
return web.createComponent(LocalizationContext.Provider, {
|
|
1368
1375
|
value: {
|
|
1369
1376
|
t,
|
|
@@ -1412,7 +1419,7 @@ var InboxProvider = (props) => {
|
|
|
1412
1419
|
const [activeTab, setActiveTab] = solidJs.createSignal((_b = (_a = props.tabs[0]) == null ? void 0 : _a.label) != null ? _b : "");
|
|
1413
1420
|
const [status, setStatus] = solidJs.createSignal("unreadRead" /* UNREAD_READ */);
|
|
1414
1421
|
const [limit, setLimit] = solidJs.createSignal(DEFAULT_LIMIT);
|
|
1415
|
-
const [filter, setFilter] = solidJs.createSignal(
|
|
1422
|
+
const [filter, setFilter] = solidJs.createSignal(chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, STATUS_TO_FILTER["unreadRead" /* UNREAD_READ */]), {
|
|
1416
1423
|
tags: props.tabs.length > 0 ? getTagsFromTab(props.tabs[0]) : [],
|
|
1417
1424
|
data: props.tabs.length > 0 ? (_c = props.tabs[0].filter) == null ? void 0 : _c.data : {},
|
|
1418
1425
|
severity: props.tabs.length > 0 ? (_d = props.tabs[0].filter) == null ? void 0 : _d.severity : void 0
|
|
@@ -1429,7 +1436,7 @@ var InboxProvider = (props) => {
|
|
|
1429
1436
|
const [preferencesSort, setPreferencesSort] = solidJs.createSignal(props.preferencesSort);
|
|
1430
1437
|
const setNewStatus = (newStatus) => {
|
|
1431
1438
|
setStatus(newStatus);
|
|
1432
|
-
setFilter((old) =>
|
|
1439
|
+
setFilter((old) => chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, STATUS_TO_FILTER[newStatus]), {
|
|
1433
1440
|
tags: old.tags,
|
|
1434
1441
|
data: old.data,
|
|
1435
1442
|
severity: old.severity
|
|
@@ -1444,7 +1451,7 @@ var InboxProvider = (props) => {
|
|
|
1444
1451
|
setActiveTab(newActiveTab);
|
|
1445
1452
|
setFilter((old) => {
|
|
1446
1453
|
var _a2, _b2;
|
|
1447
|
-
return
|
|
1454
|
+
return chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, old), {
|
|
1448
1455
|
tags,
|
|
1449
1456
|
data: (_a2 = tab == null ? void 0 : tab.filter) == null ? void 0 : _a2.data,
|
|
1450
1457
|
severity: (_b2 = tab == null ? void 0 : tab.filter) == null ? void 0 : _b2.severity
|
|
@@ -1452,12 +1459,13 @@ var InboxProvider = (props) => {
|
|
|
1452
1459
|
});
|
|
1453
1460
|
};
|
|
1454
1461
|
const navigate = (url, target) => {
|
|
1455
|
-
if (!url) {
|
|
1462
|
+
if (!url || !chunkNR4RSYUE_js.isValidInAppRedirectUrl(url)) {
|
|
1456
1463
|
return;
|
|
1457
1464
|
}
|
|
1458
1465
|
const isAbsoluteUrl = !url.startsWith("/");
|
|
1459
1466
|
if (isAbsoluteUrl) {
|
|
1460
|
-
|
|
1467
|
+
const safeTarget = chunkNR4RSYUE_js.isValidInAppRedirectTarget(target) ? target : DEFAULT_TARGET;
|
|
1468
|
+
window.open(url, safeTarget, DEFAULT_REFERRER);
|
|
1461
1469
|
return;
|
|
1462
1470
|
}
|
|
1463
1471
|
if (props.routerPush) {
|
|
@@ -1476,7 +1484,7 @@ var InboxProvider = (props) => {
|
|
|
1476
1484
|
setActiveTab((_a2 = firstTab == null ? void 0 : firstTab.label) != null ? _a2 : "");
|
|
1477
1485
|
setFilter((old) => {
|
|
1478
1486
|
var _a3, _b2;
|
|
1479
|
-
return
|
|
1487
|
+
return chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, old), {
|
|
1480
1488
|
tags,
|
|
1481
1489
|
data: (_a3 = firstTab == null ? void 0 : firstTab.filter) == null ? void 0 : _a3.data,
|
|
1482
1490
|
severity: (_b2 = firstTab == null ? void 0 : firstTab.filter) == null ? void 0 : _b2.severity
|
|
@@ -1549,7 +1557,7 @@ var NovuContext = solidJs.createContext(void 0);
|
|
|
1549
1557
|
function NovuProvider(props) {
|
|
1550
1558
|
const novu = solidJs.createMemo(() => {
|
|
1551
1559
|
const novuValue = typeof props.novu === "function" ? props.novu() : props.novu;
|
|
1552
|
-
return novuValue || new
|
|
1560
|
+
return novuValue || new chunkNR4RSYUE_js.Novu(props.options);
|
|
1553
1561
|
});
|
|
1554
1562
|
return web.createComponent(NovuContext.Provider, {
|
|
1555
1563
|
value: novu,
|
|
@@ -1589,11 +1597,24 @@ var CountProvider = (props) => {
|
|
|
1589
1597
|
});
|
|
1590
1598
|
const [unreadCounts, setUnreadCounts] = solidJs.createSignal(/* @__PURE__ */ new Map());
|
|
1591
1599
|
const [newNotificationCounts, setNewNotificationCounts] = solidJs.createSignal(/* @__PURE__ */ new Map());
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1600
|
+
let refreshGeneration = 0;
|
|
1601
|
+
const emptySeverityCounts = () => ({
|
|
1602
|
+
["high" /* HIGH */]: 0,
|
|
1603
|
+
["medium" /* MEDIUM */]: 0,
|
|
1604
|
+
["low" /* LOW */]: 0,
|
|
1605
|
+
["none" /* NONE */]: 0
|
|
1606
|
+
});
|
|
1607
|
+
const refreshCounts = () => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
1608
|
+
const generation = ++refreshGeneration;
|
|
1609
|
+
const novu = novuAccessor();
|
|
1610
|
+
const bellFilters = ["high" /* HIGH */, "medium" /* MEDIUM */, "low" /* LOW */, "none" /* NONE */].map((severity) => ({
|
|
1611
|
+
read: false,
|
|
1612
|
+
archived: false,
|
|
1613
|
+
snoozed: false,
|
|
1614
|
+
severity
|
|
1615
|
+
}));
|
|
1616
|
+
const currentTabs = tabs();
|
|
1617
|
+
const tabFilters = currentTabs.length > 0 ? currentTabs.map((tab) => {
|
|
1597
1618
|
var _a, _b;
|
|
1598
1619
|
return {
|
|
1599
1620
|
tags: getTagsFromTab(tab),
|
|
@@ -1603,40 +1624,66 @@ var CountProvider = (props) => {
|
|
|
1603
1624
|
data: (_a = tab.filter) == null ? void 0 : _a.data,
|
|
1604
1625
|
severity: (_b = tab.filter) == null ? void 0 : _b.severity
|
|
1605
1626
|
};
|
|
1606
|
-
});
|
|
1607
|
-
const {
|
|
1608
|
-
|
|
1609
|
-
}
|
|
1610
|
-
filters
|
|
1611
|
-
});
|
|
1612
|
-
if (
|
|
1627
|
+
}) : null;
|
|
1628
|
+
const [bellResult, tabResult] = yield Promise.all([novu.notifications.count({
|
|
1629
|
+
filters: bellFilters
|
|
1630
|
+
}), tabFilters ? novu.notifications.count({
|
|
1631
|
+
filters: tabFilters
|
|
1632
|
+
}) : Promise.resolve(null)]);
|
|
1633
|
+
if (generation !== refreshGeneration) {
|
|
1613
1634
|
return;
|
|
1614
1635
|
}
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1636
|
+
if (bellResult.data) {
|
|
1637
|
+
const severity = emptySeverityCounts();
|
|
1638
|
+
let total = 0;
|
|
1639
|
+
for (const item of bellResult.data.counts) {
|
|
1640
|
+
const filterSeverity = item.filter.severity;
|
|
1641
|
+
const severityKey = Array.isArray(filterSeverity) ? filterSeverity[0] : filterSeverity;
|
|
1642
|
+
if (severityKey && severityKey in severity) {
|
|
1643
|
+
severity[severityKey] = item.count;
|
|
1644
|
+
total += item.count;
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
setUnreadCount({
|
|
1648
|
+
total,
|
|
1649
|
+
severity
|
|
1624
1650
|
});
|
|
1625
|
-
newMap.set(tagsKey, data == null ? void 0 : data.counts[i].count);
|
|
1626
1651
|
}
|
|
1627
|
-
|
|
1652
|
+
if (tabResult == null ? void 0 : tabResult.data) {
|
|
1653
|
+
const newMap = /* @__PURE__ */ new Map();
|
|
1654
|
+
for (let i = 0; i < tabResult.data.counts.length; i += 1) {
|
|
1655
|
+
const countItem = tabResult.data.counts[i];
|
|
1656
|
+
const tagsKey = createKey({
|
|
1657
|
+
tags: countItem.filter.tags,
|
|
1658
|
+
data: countItem.filter.data,
|
|
1659
|
+
severity: countItem.filter.severity
|
|
1660
|
+
});
|
|
1661
|
+
newMap.set(tagsKey, countItem.count);
|
|
1662
|
+
}
|
|
1663
|
+
setUnreadCounts(newMap);
|
|
1664
|
+
}
|
|
1628
1665
|
});
|
|
1629
1666
|
solidJs.createEffect(() => {
|
|
1630
1667
|
novuAccessor();
|
|
1631
|
-
|
|
1668
|
+
refreshCounts();
|
|
1632
1669
|
});
|
|
1633
1670
|
useWebSocketEvent({
|
|
1634
1671
|
event: "notifications.unread_count_changed",
|
|
1635
1672
|
eventHandler: (data) => {
|
|
1636
1673
|
setUnreadCount(data.result);
|
|
1637
|
-
|
|
1674
|
+
refreshCounts();
|
|
1638
1675
|
}
|
|
1639
1676
|
});
|
|
1677
|
+
solidJs.createEffect(() => {
|
|
1678
|
+
const novu = novuAccessor();
|
|
1679
|
+
const cleanups = chunkNR4RSYUE_js.NOTIFICATION_COUNT_SYNC_EVENTS.map((event) => novu.on(event, (payload) => {
|
|
1680
|
+
if ("error" in payload && payload.error) {
|
|
1681
|
+
return;
|
|
1682
|
+
}
|
|
1683
|
+
refreshCounts();
|
|
1684
|
+
}));
|
|
1685
|
+
solidJs.onCleanup(() => cleanups.forEach((cleanup) => cleanup()));
|
|
1686
|
+
});
|
|
1640
1687
|
useNovuEvent({
|
|
1641
1688
|
event: "session.initialize.resolved",
|
|
1642
1689
|
eventHandler: ({
|
|
@@ -1651,7 +1698,7 @@ var CountProvider = (props) => {
|
|
|
1651
1698
|
const updateNewNotificationCountsOrCache = (tabLabel, notification, tags, data, severity) => {
|
|
1652
1699
|
const notificationsCache = novuAccessor().notifications.cache;
|
|
1653
1700
|
const limitValue = limit();
|
|
1654
|
-
const tabSpecificFilterForCache =
|
|
1701
|
+
const tabSpecificFilterForCache = chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, filter()), {
|
|
1655
1702
|
tags,
|
|
1656
1703
|
data,
|
|
1657
1704
|
severity,
|
|
@@ -1669,7 +1716,7 @@ var CountProvider = (props) => {
|
|
|
1669
1716
|
};
|
|
1670
1717
|
const hasLessThenMinAmount = ((cachedData == null ? void 0 : cachedData.notifications.length) || 0) < MIN_AMOUNT_OF_NOTIFICATIONS;
|
|
1671
1718
|
if (hasLessThenMinAmount || !isOpened()) {
|
|
1672
|
-
notificationsCache.update(tabSpecificFilterForCache,
|
|
1719
|
+
notificationsCache.update(tabSpecificFilterForCache, chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, cachedData), {
|
|
1673
1720
|
notifications: [notification, ...cachedData.notifications]
|
|
1674
1721
|
}));
|
|
1675
1722
|
return;
|
|
@@ -1687,10 +1734,10 @@ var CountProvider = (props) => {
|
|
|
1687
1734
|
};
|
|
1688
1735
|
useWebSocketEvent({
|
|
1689
1736
|
event: "notifications.notification_received",
|
|
1690
|
-
eventHandler: (_0) =>
|
|
1737
|
+
eventHandler: (_0) => chunkA6CBLMST_js.__async(null, [_0], function* ({
|
|
1691
1738
|
result: notification
|
|
1692
1739
|
}) {
|
|
1693
|
-
var _a, _b;
|
|
1740
|
+
var _a, _b, _c, _d, _e, _f;
|
|
1694
1741
|
if (filter().archived || filter().snoozed) {
|
|
1695
1742
|
return;
|
|
1696
1743
|
}
|
|
@@ -1699,32 +1746,33 @@ var CountProvider = (props) => {
|
|
|
1699
1746
|
if (currentTabs.length > 0) {
|
|
1700
1747
|
for (const tab of currentTabs) {
|
|
1701
1748
|
const tabTags = getTagsFromTab(tab);
|
|
1702
|
-
const
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1749
|
+
const tabFilter = {
|
|
1750
|
+
tags: tabTags,
|
|
1751
|
+
read: false,
|
|
1752
|
+
archived: false,
|
|
1753
|
+
snoozed: false,
|
|
1754
|
+
data: (_a = tab.filter) == null ? void 0 : _a.data,
|
|
1755
|
+
severity: (_b = tab.filter) == null ? void 0 : _b.severity
|
|
1756
|
+
};
|
|
1757
|
+
if (!chunkNR4RSYUE_js.checkNotificationMatchesFilter(notification, tabFilter)) {
|
|
1758
|
+
continue;
|
|
1759
|
+
}
|
|
1760
|
+
const filterKey = createKey({
|
|
1761
|
+
tags: tabTags,
|
|
1762
|
+
data: (_c = tab.filter) == null ? void 0 : _c.data,
|
|
1763
|
+
severity: (_d = tab.filter) == null ? void 0 : _d.severity
|
|
1764
|
+
});
|
|
1765
|
+
if (!processedFilters.has(filterKey)) {
|
|
1766
|
+
processedFilters.add(filterKey);
|
|
1767
|
+
updateNewNotificationCountsOrCache(tab.label, notification, tabTags, (_e = tab.filter) == null ? void 0 : _e.data, (_f = tab.filter) == null ? void 0 : _f.severity);
|
|
1717
1768
|
}
|
|
1718
1769
|
}
|
|
1719
1770
|
} else {
|
|
1720
1771
|
updateNewNotificationCountsOrCache("", notification, [], void 0, void 0);
|
|
1721
1772
|
}
|
|
1773
|
+
yield refreshCounts();
|
|
1722
1774
|
})
|
|
1723
1775
|
});
|
|
1724
|
-
useWebSocketEvent({
|
|
1725
|
-
event: "notifications.notification_received",
|
|
1726
|
-
eventHandler: updateTabCounts
|
|
1727
|
-
});
|
|
1728
1776
|
const resetNewNotificationCounts = (key) => {
|
|
1729
1777
|
setNewNotificationCounts((oldMap) => {
|
|
1730
1778
|
const newMap = new Map(oldMap);
|
|
@@ -1871,7 +1919,7 @@ function useFocusManager() {
|
|
|
1871
1919
|
var useChannelConnection = (options) => {
|
|
1872
1920
|
const novuAccessor = useNovu();
|
|
1873
1921
|
const [loading, setLoading] = solidJs.createSignal(true);
|
|
1874
|
-
const [connection, { mutate, refetch }] = solidJs.createResource(options, (_0) =>
|
|
1922
|
+
const [connection, { mutate, refetch }] = solidJs.createResource(options, (_0) => chunkA6CBLMST_js.__async(null, [_0], function* ({ connectionIdentifier }) {
|
|
1875
1923
|
var _a;
|
|
1876
1924
|
try {
|
|
1877
1925
|
if (!connectionIdentifier) {
|
|
@@ -1885,10 +1933,10 @@ var useChannelConnection = (options) => {
|
|
|
1885
1933
|
return null;
|
|
1886
1934
|
}
|
|
1887
1935
|
}));
|
|
1888
|
-
const generateConnectOAuthUrl = (args) =>
|
|
1936
|
+
const generateConnectOAuthUrl = (args) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
1889
1937
|
return novuAccessor().channelConnections.generateConnectOAuthUrl(args);
|
|
1890
1938
|
});
|
|
1891
|
-
const disconnect = (identifier) =>
|
|
1939
|
+
const disconnect = (identifier) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
1892
1940
|
setLoading(true);
|
|
1893
1941
|
const response = yield novuAccessor().channelConnections.delete({ identifier });
|
|
1894
1942
|
if (!response.error) {
|
|
@@ -2477,7 +2525,7 @@ var Footer = (props) => {
|
|
|
2477
2525
|
} = useInboxContext();
|
|
2478
2526
|
const novuAccessor = useNovu();
|
|
2479
2527
|
function handleTriggerHelloWorld() {
|
|
2480
|
-
return
|
|
2528
|
+
return chunkA6CBLMST_js.__async(this, null, function* () {
|
|
2481
2529
|
try {
|
|
2482
2530
|
yield novuAccessor().notifications.triggerHelloWorldEvent();
|
|
2483
2531
|
} catch (error) {
|
|
@@ -2575,7 +2623,7 @@ var Footer = (props) => {
|
|
|
2575
2623
|
});
|
|
2576
2624
|
};
|
|
2577
2625
|
function getCurrentDomain() {
|
|
2578
|
-
if (
|
|
2626
|
+
if (chunkNR4RSYUE_js.isBrowser()) {
|
|
2579
2627
|
return window.location.hostname;
|
|
2580
2628
|
}
|
|
2581
2629
|
return "";
|
|
@@ -2587,7 +2635,7 @@ function getCurlCommand() {
|
|
|
2587
2635
|
return "";
|
|
2588
2636
|
}
|
|
2589
2637
|
const DEFAULT_BACKEND_URL = typeof window !== "undefined" && window.NOVU_LOCAL_BACKEND_URL || "https://api.novu.co";
|
|
2590
|
-
return `curl -X POST ${DEFAULT_BACKEND_URL}/${
|
|
2638
|
+
return `curl -X POST ${DEFAULT_BACKEND_URL}/${chunkNR4RSYUE_js.DEFAULT_API_VERSION}/events/trigger -H 'Authorization: Keyless ${identifier}' -H 'Content-Type: application/json' -d '{
|
|
2591
2639
|
"name": "hello-world",
|
|
2592
2640
|
"to": {
|
|
2593
2641
|
"subscriberId": "keyless-subscriber-id"
|
|
@@ -3234,7 +3282,7 @@ var StatusDropdown = () => {
|
|
|
3234
3282
|
// src/ui/api/hooks/useArchiveAll.ts
|
|
3235
3283
|
var useArchiveAll = (props) => {
|
|
3236
3284
|
const novuAccessor = useNovu();
|
|
3237
|
-
const archiveAll = (..._0) =>
|
|
3285
|
+
const archiveAll = (..._0) => chunkA6CBLMST_js.__async(null, [..._0], function* ({
|
|
3238
3286
|
tags,
|
|
3239
3287
|
data
|
|
3240
3288
|
} = {}) {
|
|
@@ -3252,7 +3300,7 @@ var useArchiveAll = (props) => {
|
|
|
3252
3300
|
// src/ui/api/hooks/useArchiveAllRead.ts
|
|
3253
3301
|
var useArchiveAllRead = (props) => {
|
|
3254
3302
|
const novuAccessor = useNovu();
|
|
3255
|
-
const archiveAllRead = (..._0) =>
|
|
3303
|
+
const archiveAllRead = (..._0) => chunkA6CBLMST_js.__async(null, [..._0], function* ({
|
|
3256
3304
|
tags,
|
|
3257
3305
|
data
|
|
3258
3306
|
} = {}) {
|
|
@@ -3268,11 +3316,11 @@ var useArchiveAllRead = (props) => {
|
|
|
3268
3316
|
};
|
|
3269
3317
|
var useNotificationsInfiniteScroll = (props) => {
|
|
3270
3318
|
const novuAccessor = useNovu();
|
|
3271
|
-
let filter =
|
|
3319
|
+
let filter = chunkA6CBLMST_js.__spreadValues({}, props.options());
|
|
3272
3320
|
const [data, { initialLoading, setEl, end, mutate, reset }] = createInfiniteScroll(
|
|
3273
|
-
(after) =>
|
|
3321
|
+
(after) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
3274
3322
|
var _a, _b;
|
|
3275
|
-
const { data: data2 } = yield novuAccessor().notifications.list(
|
|
3323
|
+
const { data: data2 } = yield novuAccessor().notifications.list(chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, props.options() || {}), { after }));
|
|
3276
3324
|
return { data: (_a = data2 == null ? void 0 : data2.notifications) != null ? _a : [], hasMore: (_b = data2 == null ? void 0 : data2.hasMore) != null ? _b : false };
|
|
3277
3325
|
}),
|
|
3278
3326
|
{
|
|
@@ -3282,7 +3330,7 @@ var useNotificationsInfiniteScroll = (props) => {
|
|
|
3282
3330
|
);
|
|
3283
3331
|
solidJs.createEffect(() => {
|
|
3284
3332
|
const listener = ({ data: data2 }) => {
|
|
3285
|
-
if (!data2 || !
|
|
3333
|
+
if (!data2 || !chunkNR4RSYUE_js.isSameFilter(filter, data2.filter)) {
|
|
3286
3334
|
return;
|
|
3287
3335
|
}
|
|
3288
3336
|
mutate({ data: data2.notifications, hasMore: data2.hasMore });
|
|
@@ -3290,16 +3338,16 @@ var useNotificationsInfiniteScroll = (props) => {
|
|
|
3290
3338
|
const cleanup = novuAccessor().on("notifications.list.updated", listener);
|
|
3291
3339
|
solidJs.onCleanup(() => cleanup());
|
|
3292
3340
|
});
|
|
3293
|
-
solidJs.createEffect(() =>
|
|
3294
|
-
const newFilter =
|
|
3295
|
-
if (
|
|
3341
|
+
solidJs.createEffect(() => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
3342
|
+
const newFilter = chunkA6CBLMST_js.__spreadValues({}, props.options());
|
|
3343
|
+
if (chunkNR4RSYUE_js.isSameFilter(filter, newFilter)) {
|
|
3296
3344
|
return;
|
|
3297
3345
|
}
|
|
3298
3346
|
novuAccessor().notifications.clearCache();
|
|
3299
3347
|
yield reset();
|
|
3300
3348
|
filter = newFilter;
|
|
3301
3349
|
}));
|
|
3302
|
-
const refetch = (_0) =>
|
|
3350
|
+
const refetch = (_0) => chunkA6CBLMST_js.__async(null, [_0], function* ({ filter: filter2 }) {
|
|
3303
3351
|
novuAccessor().notifications.clearCache({ filter: filter2 });
|
|
3304
3352
|
yield reset();
|
|
3305
3353
|
});
|
|
@@ -3309,8 +3357,8 @@ var usePreferences = (options) => {
|
|
|
3309
3357
|
const novuAccessor = useNovu();
|
|
3310
3358
|
const [loading, setLoading] = solidJs.createSignal(true);
|
|
3311
3359
|
const [preferences, { mutate, refetch }] = solidJs.createResource(
|
|
3312
|
-
() =>
|
|
3313
|
-
(_0) =>
|
|
3360
|
+
() => chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, options), { dependency: novuAccessor() }),
|
|
3361
|
+
(_0) => chunkA6CBLMST_js.__async(null, [_0], function* ({ tags, severity, criticality }) {
|
|
3314
3362
|
try {
|
|
3315
3363
|
const response = yield novuAccessor().preferences.list({ tags, severity, criticality });
|
|
3316
3364
|
return response.data;
|
|
@@ -3339,7 +3387,7 @@ var usePreferences = (options) => {
|
|
|
3339
3387
|
// src/ui/api/hooks/useReadAll.ts
|
|
3340
3388
|
var useReadAll = (props) => {
|
|
3341
3389
|
const novuAccessor = useNovu();
|
|
3342
|
-
const readAll = (..._0) =>
|
|
3390
|
+
const readAll = (..._0) => chunkA6CBLMST_js.__async(null, [..._0], function* ({
|
|
3343
3391
|
tags,
|
|
3344
3392
|
data
|
|
3345
3393
|
} = {}) {
|
|
@@ -3892,12 +3940,12 @@ var Switch2 = (props) => {
|
|
|
3892
3940
|
var _tmpl$51 = /* @__PURE__ */ web.template(`<div><div><div></div><label></label></div><div>`);
|
|
3893
3941
|
var ChannelRow = (props) => {
|
|
3894
3942
|
const style = useStyle();
|
|
3895
|
-
const updatePreference = (enabled) =>
|
|
3943
|
+
const updatePreference = (enabled) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
3896
3944
|
props.onChange({
|
|
3897
3945
|
[props.channel.channel]: enabled
|
|
3898
3946
|
});
|
|
3899
3947
|
});
|
|
3900
|
-
const onChange = (checked) =>
|
|
3948
|
+
const onChange = (checked) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
3901
3949
|
yield updatePreference(checked);
|
|
3902
3950
|
});
|
|
3903
3951
|
const state = () => props.channel.state;
|
|
@@ -4930,7 +4978,7 @@ var DayScheduleCopy = (props) => {
|
|
|
4930
4978
|
const dayToCopy = (_b = (_a = props.schedule()) == null ? void 0 : _a.weeklySchedule) == null ? void 0 : _b[currentDay];
|
|
4931
4979
|
if (dayToCopy) {
|
|
4932
4980
|
(_d = props.schedule()) == null ? void 0 : _d.update({
|
|
4933
|
-
weeklySchedule:
|
|
4981
|
+
weeklySchedule: chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues({}, (_c = props.schedule()) == null ? void 0 : _c.weeklySchedule), daysToCopy.reduce((acc, day) => {
|
|
4934
4982
|
acc[day] = dayToCopy;
|
|
4935
4983
|
return acc;
|
|
4936
4984
|
}, {}))
|
|
@@ -5134,8 +5182,8 @@ var ScheduleTable = (props) => {
|
|
|
5134
5182
|
const isEnabled = state === "enabled";
|
|
5135
5183
|
const hasNoHours = ((_e = (_d = (_c = (_b = (_a = schedule()) == null ? void 0 : _a.weeklySchedule) == null ? void 0 : _b[day()]) == null ? void 0 : _c.hours) == null ? void 0 : _d.length) != null ? _e : 0) === 0;
|
|
5136
5184
|
(_i = schedule()) == null ? void 0 : _i.update({
|
|
5137
|
-
weeklySchedule:
|
|
5138
|
-
[day()]:
|
|
5185
|
+
weeklySchedule: chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, (_f = schedule()) == null ? void 0 : _f.weeklySchedule), {
|
|
5186
|
+
[day()]: chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, (_h = (_g = schedule()) == null ? void 0 : _g.weeklySchedule) == null ? void 0 : _h[day()]), {
|
|
5139
5187
|
isEnabled
|
|
5140
5188
|
}), hasNoHours && {
|
|
5141
5189
|
hours: [{
|
|
@@ -5189,8 +5237,8 @@ var ScheduleTable = (props) => {
|
|
|
5189
5237
|
onChange: (value) => {
|
|
5190
5238
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
5191
5239
|
(_i = schedule()) == null ? void 0 : _i.update({
|
|
5192
|
-
weeklySchedule:
|
|
5193
|
-
[day()]:
|
|
5240
|
+
weeklySchedule: chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, (_a = schedule()) == null ? void 0 : _a.weeklySchedule), {
|
|
5241
|
+
[day()]: chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, (_c = (_b = schedule()) == null ? void 0 : _b.weeklySchedule) == null ? void 0 : _c[day()]), {
|
|
5194
5242
|
hours: [{
|
|
5195
5243
|
start: value,
|
|
5196
5244
|
end: (_h = (_g = (_f = (_e = (_d = schedule()) == null ? void 0 : _d.weeklySchedule) == null ? void 0 : _e[day()]) == null ? void 0 : _f.hours) == null ? void 0 : _g[0]) == null ? void 0 : _h.end
|
|
@@ -5217,8 +5265,8 @@ var ScheduleTable = (props) => {
|
|
|
5217
5265
|
onChange: (value) => {
|
|
5218
5266
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
5219
5267
|
(_i = schedule()) == null ? void 0 : _i.update({
|
|
5220
|
-
weeklySchedule:
|
|
5221
|
-
[day()]:
|
|
5268
|
+
weeklySchedule: chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, (_a = schedule()) == null ? void 0 : _a.weeklySchedule), {
|
|
5269
|
+
[day()]: chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, (_c = (_b = schedule()) == null ? void 0 : _b.weeklySchedule) == null ? void 0 : _c[day()]), {
|
|
5222
5270
|
hours: [{
|
|
5223
5271
|
start: (_h = (_g = (_f = (_e = (_d = schedule()) == null ? void 0 : _d.weeklySchedule) == null ? void 0 : _e[day()]) == null ? void 0 : _f.hours) == null ? void 0 : _g[0]) == null ? void 0 : _h.start,
|
|
5224
5272
|
end: value
|
|
@@ -5395,7 +5443,7 @@ var ScheduleRowActions = (props) => {
|
|
|
5395
5443
|
var _a, _b;
|
|
5396
5444
|
const isEnabled = state === "enabled";
|
|
5397
5445
|
const hasNoWeeklySchedule = !((_a = props.schedule()) == null ? void 0 : _a.weeklySchedule);
|
|
5398
|
-
(_b = props.schedule()) == null ? void 0 : _b.update(
|
|
5446
|
+
(_b = props.schedule()) == null ? void 0 : _b.update(chunkA6CBLMST_js.__spreadValues({
|
|
5399
5447
|
isEnabled
|
|
5400
5448
|
}, isEnabled && hasNoWeeklySchedule && {
|
|
5401
5449
|
weeklySchedule: DEFAULT_WEEKLY_SCHEDULE
|
|
@@ -5591,7 +5639,7 @@ var Preferences = () => {
|
|
|
5591
5639
|
solidJs.createEffect(() => {
|
|
5592
5640
|
setDynamicLocalization((prev) => {
|
|
5593
5641
|
var _a2;
|
|
5594
|
-
return
|
|
5642
|
+
return chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues({}, prev), (_a2 = allPreferences().workflowPreferences) == null ? void 0 : _a2.reduce((acc, preference) => {
|
|
5595
5643
|
var _a3, _b2;
|
|
5596
5644
|
if (((_a3 = preference.workflow) == null ? void 0 : _a3.identifier) && ((_b2 = preference.workflow) == null ? void 0 : _b2.name)) {
|
|
5597
5645
|
acc[preference.workflow.identifier] = preference.workflow.name;
|
|
@@ -5600,12 +5648,12 @@ var Preferences = () => {
|
|
|
5600
5648
|
}, {}));
|
|
5601
5649
|
});
|
|
5602
5650
|
});
|
|
5603
|
-
const updatePreference = (preference) => (channels) =>
|
|
5651
|
+
const updatePreference = (preference) => (channels) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
5604
5652
|
yield preference == null ? void 0 : preference.update({
|
|
5605
5653
|
channels
|
|
5606
5654
|
});
|
|
5607
5655
|
});
|
|
5608
|
-
const bulkUpdatePreferences = (preferences2) => (channels) =>
|
|
5656
|
+
const bulkUpdatePreferences = (preferences2) => (channels) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
5609
5657
|
yield novuAccessor().preferences.bulkUpdate(preferences2.map((el) => {
|
|
5610
5658
|
const oldChannels = Object.keys(el.channels);
|
|
5611
5659
|
const channelsToUpdate = Object.keys(channels).filter((channel) => oldChannels.includes(channel)).reduce((acc, channel) => {
|
|
@@ -5921,7 +5969,7 @@ var TooltipContentBody = (props) => {
|
|
|
5921
5969
|
});
|
|
5922
5970
|
},
|
|
5923
5971
|
get style() {
|
|
5924
|
-
return
|
|
5972
|
+
return chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, floatingStyles()), {
|
|
5925
5973
|
"z-index": 99999
|
|
5926
5974
|
});
|
|
5927
5975
|
}
|
|
@@ -6040,7 +6088,7 @@ function CopyToClipboard(props) {
|
|
|
6040
6088
|
const defaultTooltipText = "Copied!";
|
|
6041
6089
|
const defaultTooltipDuration = 2e3;
|
|
6042
6090
|
function handleCopy() {
|
|
6043
|
-
return
|
|
6091
|
+
return chunkA6CBLMST_js.__async(this, null, function* () {
|
|
6044
6092
|
var _a;
|
|
6045
6093
|
if (timeoutId) {
|
|
6046
6094
|
clearTimeout(timeoutId);
|
|
@@ -6807,7 +6855,7 @@ var ConnectChat = (props) => {
|
|
|
6807
6855
|
}
|
|
6808
6856
|
});
|
|
6809
6857
|
const isConnected = () => !!connection();
|
|
6810
|
-
const handleClick = () =>
|
|
6858
|
+
const handleClick = () => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
6811
6859
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
6812
6860
|
if (isConnected()) {
|
|
6813
6861
|
const identifier = (_a = connection()) == null ? void 0 : _a.identifier;
|
|
@@ -7044,7 +7092,7 @@ var Text = (props) => props.children;
|
|
|
7044
7092
|
var Markdown = (props) => {
|
|
7045
7093
|
const [local, rest] = solidJs.splitProps(props, ["class", "children", "appearanceKey", "strongAppearanceKey", "emAppearanceKey", "context"]);
|
|
7046
7094
|
const style = useStyle();
|
|
7047
|
-
const tokens = solidJs.createMemo(() =>
|
|
7095
|
+
const tokens = solidJs.createMemo(() => chunkTLQQB5Y7_js.parseMarkdownIntoTokens(local.children));
|
|
7048
7096
|
return (() => {
|
|
7049
7097
|
var _el$3 = _tmpl$315();
|
|
7050
7098
|
web.spread(_el$3, web.mergeProps({
|
|
@@ -7612,7 +7660,7 @@ var ReadButton = (props) => {
|
|
|
7612
7660
|
size: "iconSm",
|
|
7613
7661
|
variant: "ghost"
|
|
7614
7662
|
}, childProps, {
|
|
7615
|
-
onClick: (e) =>
|
|
7663
|
+
onClick: (e) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
7616
7664
|
e.stopPropagation();
|
|
7617
7665
|
yield props.notification.read();
|
|
7618
7666
|
}),
|
|
@@ -7655,7 +7703,7 @@ var UnreadButton = (props) => {
|
|
|
7655
7703
|
size: "iconSm",
|
|
7656
7704
|
variant: "ghost"
|
|
7657
7705
|
}, childProps, {
|
|
7658
|
-
onClick: (e) =>
|
|
7706
|
+
onClick: (e) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
7659
7707
|
e.stopPropagation();
|
|
7660
7708
|
yield props.notification.unread();
|
|
7661
7709
|
}),
|
|
@@ -7698,7 +7746,7 @@ var ArchiveButton = (props) => {
|
|
|
7698
7746
|
size: "iconSm",
|
|
7699
7747
|
variant: "ghost"
|
|
7700
7748
|
}, childProps, {
|
|
7701
|
-
onClick: (e) =>
|
|
7749
|
+
onClick: (e) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
7702
7750
|
e.stopPropagation();
|
|
7703
7751
|
yield props.notification.archive();
|
|
7704
7752
|
}),
|
|
@@ -7741,7 +7789,7 @@ var UnarchiveButton = (props) => {
|
|
|
7741
7789
|
size: "iconSm",
|
|
7742
7790
|
variant: "ghost"
|
|
7743
7791
|
}, childProps, {
|
|
7744
|
-
onClick: (e) =>
|
|
7792
|
+
onClick: (e) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
7745
7793
|
e.stopPropagation();
|
|
7746
7794
|
yield props.notification.unarchive();
|
|
7747
7795
|
}),
|
|
@@ -7784,7 +7832,7 @@ var UnsnoozeButton = (props) => {
|
|
|
7784
7832
|
size: "iconSm",
|
|
7785
7833
|
variant: "ghost"
|
|
7786
7834
|
}, childProps, {
|
|
7787
|
-
onClick: (e) =>
|
|
7835
|
+
onClick: (e) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
7788
7836
|
e.stopPropagation();
|
|
7789
7837
|
yield props.notification.unsnooze();
|
|
7790
7838
|
}),
|
|
@@ -7873,7 +7921,7 @@ var SnoozeButton = (props) => {
|
|
|
7873
7921
|
get time() {
|
|
7874
7922
|
return option.time;
|
|
7875
7923
|
},
|
|
7876
|
-
onClick: (e) =>
|
|
7924
|
+
onClick: (e) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
7877
7925
|
e.stopPropagation();
|
|
7878
7926
|
yield props.notification.snooze(preset.getDate().toISOString());
|
|
7879
7927
|
})
|
|
@@ -7911,7 +7959,7 @@ var SnoozeButton = (props) => {
|
|
|
7911
7959
|
get maxDurationHours() {
|
|
7912
7960
|
return maxSnoozeDurationHours();
|
|
7913
7961
|
},
|
|
7914
|
-
onSelect: (date) =>
|
|
7962
|
+
onSelect: (date) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
7915
7963
|
yield props.notification.snooze(date.toISOString());
|
|
7916
7964
|
}),
|
|
7917
7965
|
onCancel: () => {
|
|
@@ -8025,7 +8073,7 @@ var DefaultNotification = (props) => {
|
|
|
8025
8073
|
}, 1e3 * 60);
|
|
8026
8074
|
return () => clearInterval(interval);
|
|
8027
8075
|
});
|
|
8028
|
-
const handleNotificationClick = (e) =>
|
|
8076
|
+
const handleNotificationClick = (e) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
8029
8077
|
var _a, _b, _c;
|
|
8030
8078
|
e.stopPropagation();
|
|
8031
8079
|
e.preventDefault();
|
|
@@ -8035,7 +8083,7 @@ var DefaultNotification = (props) => {
|
|
|
8035
8083
|
(_a = props.onNotificationClick) == null ? void 0 : _a.call(props, props.notification);
|
|
8036
8084
|
navigate((_b = props.notification.redirect) == null ? void 0 : _b.url, (_c = props.notification.redirect) == null ? void 0 : _c.target);
|
|
8037
8085
|
});
|
|
8038
|
-
const handleActionButtonClick = (action, e) =>
|
|
8086
|
+
const handleActionButtonClick = (action, e) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
8039
8087
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
8040
8088
|
e.stopPropagation();
|
|
8041
8089
|
if (action === "primary" /* PRIMARY */) {
|
|
@@ -8711,7 +8759,7 @@ var _tmpl$85 = /* @__PURE__ */ web.template(`<div>`);
|
|
|
8711
8759
|
var _tmpl$227 = /* @__PURE__ */ web.template(`<div><div>`);
|
|
8712
8760
|
var NotificationList = (props) => {
|
|
8713
8761
|
var _a, _b, _c, _d, _e;
|
|
8714
|
-
const options = solidJs.createMemo(() =>
|
|
8762
|
+
const options = solidJs.createMemo(() => chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, props.filter), {
|
|
8715
8763
|
limit: props.limit
|
|
8716
8764
|
}));
|
|
8717
8765
|
const style = useStyle();
|
|
@@ -8746,7 +8794,7 @@ var NotificationList = (props) => {
|
|
|
8746
8794
|
solidJs.createEffect(() => {
|
|
8747
8795
|
setLimit(props.limit || DEFAULT_LIMIT);
|
|
8748
8796
|
});
|
|
8749
|
-
const handleOnNewMessagesClick = (e) =>
|
|
8797
|
+
const handleOnNewMessagesClick = (e) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
8750
8798
|
e.stopPropagation();
|
|
8751
8799
|
resetNewMessagesCount();
|
|
8752
8800
|
refetch({
|
|
@@ -9024,7 +9072,7 @@ var InboxTabs = (props) => {
|
|
|
9024
9072
|
className: "nt-size-3",
|
|
9025
9073
|
iconKey: "check"
|
|
9026
9074
|
});
|
|
9027
|
-
const options = solidJs.createMemo(() => dropdownTabs().map((tab) =>
|
|
9075
|
+
const options = solidJs.createMemo(() => dropdownTabs().map((tab) => chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, tab), {
|
|
9028
9076
|
rightIcon: tab.label === activeTab() ? web.createComponent(IconRendererWrapper, {
|
|
9029
9077
|
iconKey: "check",
|
|
9030
9078
|
"class": checkIconClass,
|
|
@@ -9177,7 +9225,7 @@ var InboxTabs = (props) => {
|
|
|
9177
9225
|
},
|
|
9178
9226
|
get filter() {
|
|
9179
9227
|
var _a, _b;
|
|
9180
|
-
return
|
|
9228
|
+
return chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, filter()), {
|
|
9181
9229
|
tags: getTagsFromTab(tab),
|
|
9182
9230
|
data: (_a = tab.filter) == null ? void 0 : _a.data,
|
|
9183
9231
|
severity: (_b = tab.filter) == null ? void 0 : _b.severity
|
|
@@ -9513,7 +9561,7 @@ var MsTeamsConnectButton = (props) => {
|
|
|
9513
9561
|
}
|
|
9514
9562
|
const startedAt = Date.now();
|
|
9515
9563
|
const schedulePoll = (intervalMs) => {
|
|
9516
|
-
timeoutIdRef.current = setTimeout(() =>
|
|
9564
|
+
timeoutIdRef.current = setTimeout(() => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
9517
9565
|
var _a, _b;
|
|
9518
9566
|
try {
|
|
9519
9567
|
const response = yield novuAccessor().channelConnections.get({
|
|
@@ -9540,7 +9588,7 @@ var MsTeamsConnectButton = (props) => {
|
|
|
9540
9588
|
};
|
|
9541
9589
|
schedulePoll(POLL_INITIAL_INTERVAL_MS);
|
|
9542
9590
|
};
|
|
9543
|
-
const handleClick = () =>
|
|
9591
|
+
const handleClick = () => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
9544
9592
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9545
9593
|
if (isConnected()) {
|
|
9546
9594
|
const identifier = (_a = connection()) == null ? void 0 : _a.identifier;
|
|
@@ -9783,7 +9831,7 @@ var MsTeamsConnectButton = (props) => {
|
|
|
9783
9831
|
var useChannelEndpoint = (options) => {
|
|
9784
9832
|
const novuAccessor = useNovu();
|
|
9785
9833
|
const [loading, setLoading] = solidJs.createSignal(true);
|
|
9786
|
-
const [endpoint, { mutate, refetch }] = solidJs.createResource(options, (_0) =>
|
|
9834
|
+
const [endpoint, { mutate, refetch }] = solidJs.createResource(options, (_0) => chunkA6CBLMST_js.__async(null, [_0], function* ({ endpointIdentifier }) {
|
|
9787
9835
|
var _a;
|
|
9788
9836
|
try {
|
|
9789
9837
|
if (!endpointIdentifier) {
|
|
@@ -9797,10 +9845,10 @@ var useChannelEndpoint = (options) => {
|
|
|
9797
9845
|
return null;
|
|
9798
9846
|
}
|
|
9799
9847
|
}));
|
|
9800
|
-
const generateLinkUserOAuthUrl = (args) =>
|
|
9848
|
+
const generateLinkUserOAuthUrl = (args) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
9801
9849
|
return novuAccessor().channelEndpoints.generateLinkUserOAuthUrl(args);
|
|
9802
9850
|
});
|
|
9803
|
-
const create = (args) =>
|
|
9851
|
+
const create = (args) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
9804
9852
|
setLoading(true);
|
|
9805
9853
|
const response = yield novuAccessor().channelEndpoints.create(args);
|
|
9806
9854
|
if (response.data) {
|
|
@@ -9809,7 +9857,7 @@ var useChannelEndpoint = (options) => {
|
|
|
9809
9857
|
setLoading(false);
|
|
9810
9858
|
return response;
|
|
9811
9859
|
});
|
|
9812
|
-
const remove = (identifier) =>
|
|
9860
|
+
const remove = (identifier) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
9813
9861
|
setLoading(true);
|
|
9814
9862
|
const response = yield novuAccessor().channelEndpoints.delete({ identifier });
|
|
9815
9863
|
if (!response.error) {
|
|
@@ -9889,7 +9937,7 @@ var MsTeamsLinkUser = (props) => {
|
|
|
9889
9937
|
solidJs.createResource(() => ({
|
|
9890
9938
|
integrationIdentifier: integrationIdentifier(),
|
|
9891
9939
|
connectionIdentifier: connectionIdentifier()
|
|
9892
|
-
}), (_0) =>
|
|
9940
|
+
}), (_0) => chunkA6CBLMST_js.__async(null, [_0], function* ({
|
|
9893
9941
|
integrationIdentifier: intId,
|
|
9894
9942
|
connectionIdentifier: connId
|
|
9895
9943
|
}) {
|
|
@@ -9924,7 +9972,7 @@ var MsTeamsLinkUser = (props) => {
|
|
|
9924
9972
|
});
|
|
9925
9973
|
const startPolling = () => {
|
|
9926
9974
|
const startedAt = Date.now();
|
|
9927
|
-
pollingIntervalId = setInterval(() =>
|
|
9975
|
+
pollingIntervalId = setInterval(() => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
9928
9976
|
var _a, _b, _c, _d;
|
|
9929
9977
|
try {
|
|
9930
9978
|
const response = yield novuAccessor().channelEndpoints.list({
|
|
@@ -9950,7 +9998,7 @@ var MsTeamsLinkUser = (props) => {
|
|
|
9950
9998
|
}
|
|
9951
9999
|
}), POLL_INTERVAL_MS);
|
|
9952
10000
|
};
|
|
9953
|
-
const handleClick = () =>
|
|
10001
|
+
const handleClick = () => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
9954
10002
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
9955
10003
|
if (isLinked()) {
|
|
9956
10004
|
const identifier = (_a = endpoint()) == null ? void 0 : _a.identifier;
|
|
@@ -10213,7 +10261,7 @@ var SlackConnectButton = (props) => {
|
|
|
10213
10261
|
intervalIdRef.current = null;
|
|
10214
10262
|
}
|
|
10215
10263
|
const startedAt = Date.now();
|
|
10216
|
-
intervalIdRef.current = setInterval(() =>
|
|
10264
|
+
intervalIdRef.current = setInterval(() => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
10217
10265
|
var _a, _b;
|
|
10218
10266
|
try {
|
|
10219
10267
|
const response = yield novuAccessor().channelConnections.get({
|
|
@@ -10241,7 +10289,7 @@ var SlackConnectButton = (props) => {
|
|
|
10241
10289
|
}
|
|
10242
10290
|
}), POLL_INTERVAL_MS2);
|
|
10243
10291
|
};
|
|
10244
|
-
const handleClick = () =>
|
|
10292
|
+
const handleClick = () => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
10245
10293
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
10246
10294
|
if (isConnected()) {
|
|
10247
10295
|
const identifier = (_a = connection()) == null ? void 0 : _a.identifier;
|
|
@@ -10516,7 +10564,7 @@ var SlackLinkUser = (props) => {
|
|
|
10516
10564
|
solidJs.createResource(() => ({
|
|
10517
10565
|
integrationIdentifier: integrationIdentifier(),
|
|
10518
10566
|
connectionIdentifier: connectionIdentifier()
|
|
10519
|
-
}), (_0) =>
|
|
10567
|
+
}), (_0) => chunkA6CBLMST_js.__async(null, [_0], function* ({
|
|
10520
10568
|
integrationIdentifier: intId,
|
|
10521
10569
|
connectionIdentifier: connId
|
|
10522
10570
|
}) {
|
|
@@ -10551,7 +10599,7 @@ var SlackLinkUser = (props) => {
|
|
|
10551
10599
|
});
|
|
10552
10600
|
const startPolling = () => {
|
|
10553
10601
|
const startedAt = Date.now();
|
|
10554
|
-
pollingIntervalId = setInterval(() =>
|
|
10602
|
+
pollingIntervalId = setInterval(() => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
10555
10603
|
var _a, _b, _c, _d;
|
|
10556
10604
|
try {
|
|
10557
10605
|
const response = yield novuAccessor().channelEndpoints.list({
|
|
@@ -10577,7 +10625,7 @@ var SlackLinkUser = (props) => {
|
|
|
10577
10625
|
}
|
|
10578
10626
|
}), POLL_INTERVAL_MS3);
|
|
10579
10627
|
};
|
|
10580
|
-
const handleClick = () =>
|
|
10628
|
+
const handleClick = () => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
10581
10629
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
10582
10630
|
if (isLinked()) {
|
|
10583
10631
|
const identifier = (_a = endpoint()) == null ? void 0 : _a.identifier;
|
|
@@ -10783,12 +10831,12 @@ var useSubscription = (options) => {
|
|
|
10783
10831
|
var _a;
|
|
10784
10832
|
const subscriberId = novuAccessor().subscriberId;
|
|
10785
10833
|
const contextKey = novuAccessor().contextKey;
|
|
10786
|
-
return (_a = options.identifier) != null ? _a :
|
|
10834
|
+
return (_a = options.identifier) != null ? _a : chunkTLQQB5Y7_js.buildSubscriptionIdentifier({ topicKey: options.topicKey, subscriberId, contextKey });
|
|
10787
10835
|
};
|
|
10788
10836
|
const [loading, setLoading] = solidJs.createSignal(true);
|
|
10789
10837
|
const [subscription, { mutate, refetch }] = solidJs.createResource(
|
|
10790
10838
|
options || {},
|
|
10791
|
-
(_0) =>
|
|
10839
|
+
(_0) => chunkA6CBLMST_js.__async(null, [_0], function* ({ topicKey, identifier: identifier2, workflowIds, tags }) {
|
|
10792
10840
|
try {
|
|
10793
10841
|
const response = yield novuAccessor().subscriptions.get({
|
|
10794
10842
|
topicKey,
|
|
@@ -10803,7 +10851,7 @@ var useSubscription = (options) => {
|
|
|
10803
10851
|
}
|
|
10804
10852
|
})
|
|
10805
10853
|
);
|
|
10806
|
-
const create = (args) =>
|
|
10854
|
+
const create = (args) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
10807
10855
|
setLoading(true);
|
|
10808
10856
|
const response = yield novuAccessor().subscriptions.create(args);
|
|
10809
10857
|
if (response.data) {
|
|
@@ -10812,7 +10860,7 @@ var useSubscription = (options) => {
|
|
|
10812
10860
|
setLoading(false);
|
|
10813
10861
|
return response;
|
|
10814
10862
|
});
|
|
10815
|
-
const remove = (args) =>
|
|
10863
|
+
const remove = (args) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
10816
10864
|
setLoading(true);
|
|
10817
10865
|
const response = "subscription" in args ? yield novuAccessor().subscriptions.delete({ subscription: args.subscription }) : yield novuAccessor().subscriptions.delete({ topicKey: args.topicKey, subscriptionId: args.subscriptionId });
|
|
10818
10866
|
mutate(null);
|
|
@@ -11072,14 +11120,14 @@ var SubscriptionPreferenceGroupRow = (props) => {
|
|
|
11072
11120
|
indeterminate: true
|
|
11073
11121
|
};
|
|
11074
11122
|
});
|
|
11075
|
-
const handleGroupChange = (checked) =>
|
|
11123
|
+
const handleGroupChange = (checked) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
11076
11124
|
const updates = props.group.group.map((pref) => ({
|
|
11077
11125
|
workflowId: pref.preference.workflow.identifier || pref.preference.workflow.id,
|
|
11078
11126
|
value: checked
|
|
11079
11127
|
}));
|
|
11080
11128
|
yield props.subscription.bulkUpdatePreferences(updates);
|
|
11081
11129
|
});
|
|
11082
|
-
const handlePreferenceChange = (preference) => (checked) =>
|
|
11130
|
+
const handlePreferenceChange = (preference) => (checked) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
11083
11131
|
yield preference.update({
|
|
11084
11132
|
value: checked
|
|
11085
11133
|
});
|
|
@@ -11289,7 +11337,7 @@ var SubscriptionPreferenceRow = (props) => {
|
|
|
11289
11337
|
t
|
|
11290
11338
|
} = useLocalization();
|
|
11291
11339
|
const preference = solidJs.createMemo(() => props.preference.preference);
|
|
11292
|
-
const handleChange = (checked) =>
|
|
11340
|
+
const handleChange = (checked) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
11293
11341
|
yield preference().update({
|
|
11294
11342
|
value: checked
|
|
11295
11343
|
});
|
|
@@ -11596,7 +11644,7 @@ var SubscriptionPreferences = (props) => {
|
|
|
11596
11644
|
solidJs.createEffect(() => {
|
|
11597
11645
|
setDynamicLocalization((prev) => {
|
|
11598
11646
|
var _a, _b;
|
|
11599
|
-
return
|
|
11647
|
+
return chunkA6CBLMST_js.__spreadValues(chunkA6CBLMST_js.__spreadValues({}, prev), (_b = (_a = props.subscription) == null ? void 0 : _a.preferences) == null ? void 0 : _b.reduce((acc, preference) => {
|
|
11600
11648
|
var _a2, _b2;
|
|
11601
11649
|
if (((_a2 = preference.workflow) == null ? void 0 : _a2.identifier) && ((_b2 = preference.workflow) == null ? void 0 : _b2.name)) {
|
|
11602
11650
|
acc[preference.workflow.identifier] = preference.workflow.name;
|
|
@@ -12095,7 +12143,7 @@ var SubscriptionButtonWrapper = (props) => {
|
|
|
12095
12143
|
workflowIds,
|
|
12096
12144
|
tags
|
|
12097
12145
|
});
|
|
12098
|
-
const onSubscribeClick = () =>
|
|
12146
|
+
const onSubscribeClick = () => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
12099
12147
|
var _a2, _b2, _c, _d, _e, _f;
|
|
12100
12148
|
const currentSubscription = subscription();
|
|
12101
12149
|
(_a2 = props.onClick) == null ? void 0 : _a2.call(props, {
|
|
@@ -12169,7 +12217,7 @@ var SubscriptionPreferencesWrapper = (props) => {
|
|
|
12169
12217
|
workflowIds,
|
|
12170
12218
|
tags
|
|
12171
12219
|
});
|
|
12172
|
-
const onSubscribeClick = () =>
|
|
12220
|
+
const onSubscribeClick = () => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
12173
12221
|
var _a2, _b2, _c, _d, _e, _f;
|
|
12174
12222
|
const currentSubscription = subscription();
|
|
12175
12223
|
(_a2 = props.onClick) == null ? void 0 : _a2.call(props, {
|
|
@@ -12231,6 +12279,323 @@ var SubscriptionPreferencesWrapper = (props) => {
|
|
|
12231
12279
|
onSubscribeClick
|
|
12232
12280
|
});
|
|
12233
12281
|
};
|
|
12282
|
+
var TELEGRAM_PROVIDER_ID = "telegram";
|
|
12283
|
+
var useTelegramConnection = (options) => {
|
|
12284
|
+
const novuAccessor = useNovu();
|
|
12285
|
+
const [loading, setLoading] = solidJs.createSignal(true);
|
|
12286
|
+
const [endpoint, { mutate, refetch }] = solidJs.createResource(
|
|
12287
|
+
options,
|
|
12288
|
+
(_0) => chunkA6CBLMST_js.__async(null, [_0], function* ({ integrationIdentifier, subscriberId }) {
|
|
12289
|
+
var _a, _b;
|
|
12290
|
+
try {
|
|
12291
|
+
if (!integrationIdentifier) {
|
|
12292
|
+
return null;
|
|
12293
|
+
}
|
|
12294
|
+
const response = yield novuAccessor().channelEndpoints.list({
|
|
12295
|
+
integrationIdentifier,
|
|
12296
|
+
providerId: TELEGRAM_PROVIDER_ID,
|
|
12297
|
+
subscriberId,
|
|
12298
|
+
limit: 1
|
|
12299
|
+
});
|
|
12300
|
+
return (_b = (_a = response.data) == null ? void 0 : _a[0]) != null ? _b : null;
|
|
12301
|
+
} catch (e) {
|
|
12302
|
+
return null;
|
|
12303
|
+
}
|
|
12304
|
+
})
|
|
12305
|
+
);
|
|
12306
|
+
const link = (args) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
12307
|
+
return novuAccessor().channelEndpoints.link(args);
|
|
12308
|
+
});
|
|
12309
|
+
const disconnect = (identifier) => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
12310
|
+
setLoading(true);
|
|
12311
|
+
const response = yield novuAccessor().channelEndpoints.delete({ identifier });
|
|
12312
|
+
if (!response.error) {
|
|
12313
|
+
mutate(null);
|
|
12314
|
+
}
|
|
12315
|
+
setLoading(false);
|
|
12316
|
+
return response;
|
|
12317
|
+
});
|
|
12318
|
+
solidJs.createEffect(() => {
|
|
12319
|
+
setLoading(endpoint.loading);
|
|
12320
|
+
});
|
|
12321
|
+
return { endpoint, loading, mutate, refetch, link, disconnect };
|
|
12322
|
+
};
|
|
12323
|
+
var _tmpl$104 = /* @__PURE__ */ web.template(`<svg width=16 height=16 viewBox="0 0 32 32"fill=none xmlns=http://www.w3.org/2000/svg><circle cx=16 cy=16 r=14 fill=#26A5E4></circle><path fill=#fff d="M7.2 15.6l14.4-5.6c.7-.2 1.3.2 1.1 1l-2.4 11.6c-.2.8-.7 1-1.4.6l-4-3-1.9 1.8c-.2.2-.4.4-.8.4l.3-4 7.2-6.6c.3-.3-.1-.4-.5-.2l-8.9 5.6-3.8-1.2c-.8-.2-.8-.8.2-1.2l-.1-.2Z">`);
|
|
12324
|
+
var TelegramColored = (props) => {
|
|
12325
|
+
return (() => {
|
|
12326
|
+
var _el$ = _tmpl$104();
|
|
12327
|
+
web.spread(_el$, props, true, true);
|
|
12328
|
+
return _el$;
|
|
12329
|
+
})();
|
|
12330
|
+
};
|
|
12331
|
+
|
|
12332
|
+
// src/ui/components/telegram-connect-button/TelegramConnectButton.tsx
|
|
12333
|
+
var _tmpl$105 = /* @__PURE__ */ web.template(`<span>`);
|
|
12334
|
+
var _tmpl$234 = /* @__PURE__ */ web.template(`<div>`);
|
|
12335
|
+
var TELEGRAM_PROVIDER_ID2 = "telegram";
|
|
12336
|
+
var POLL_INTERVAL_MS4 = 2500;
|
|
12337
|
+
var POLL_TIMEOUT_MS5 = 12e4;
|
|
12338
|
+
var TelegramConnectButton = (props) => {
|
|
12339
|
+
const style = useStyle();
|
|
12340
|
+
const novuAccessor = useNovu();
|
|
12341
|
+
const integrationIdentifier = () => props.integrationIdentifier;
|
|
12342
|
+
const resolvedSubscriberId = () => {
|
|
12343
|
+
var _a;
|
|
12344
|
+
return (_a = props.subscriberId) != null ? _a : novuAccessor().subscriberId;
|
|
12345
|
+
};
|
|
12346
|
+
const {
|
|
12347
|
+
endpoint,
|
|
12348
|
+
loading,
|
|
12349
|
+
disconnect,
|
|
12350
|
+
mutate,
|
|
12351
|
+
link
|
|
12352
|
+
} = useTelegramConnection({
|
|
12353
|
+
integrationIdentifier: integrationIdentifier(),
|
|
12354
|
+
subscriberId: props.subscriberId
|
|
12355
|
+
});
|
|
12356
|
+
const [actionLoading, setActionLoading] = solidJs.createSignal(false);
|
|
12357
|
+
const isConnected = () => !!endpoint();
|
|
12358
|
+
const isLoading = () => loading() || actionLoading();
|
|
12359
|
+
const intervalIdRef = {
|
|
12360
|
+
current: null
|
|
12361
|
+
};
|
|
12362
|
+
const stopPolling = () => {
|
|
12363
|
+
if (intervalIdRef.current !== null) {
|
|
12364
|
+
clearInterval(intervalIdRef.current);
|
|
12365
|
+
intervalIdRef.current = null;
|
|
12366
|
+
}
|
|
12367
|
+
};
|
|
12368
|
+
solidJs.onCleanup(stopPolling);
|
|
12369
|
+
const startPolling = () => {
|
|
12370
|
+
stopPolling();
|
|
12371
|
+
const startedAt = Date.now();
|
|
12372
|
+
let committed = false;
|
|
12373
|
+
intervalIdRef.current = setInterval(() => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
12374
|
+
var _a, _b, _c;
|
|
12375
|
+
if (committed) {
|
|
12376
|
+
return;
|
|
12377
|
+
}
|
|
12378
|
+
try {
|
|
12379
|
+
const response = yield novuAccessor().channelEndpoints.list({
|
|
12380
|
+
integrationIdentifier: integrationIdentifier(),
|
|
12381
|
+
providerId: TELEGRAM_PROVIDER_ID2,
|
|
12382
|
+
subscriberId: resolvedSubscriberId(),
|
|
12383
|
+
limit: 1
|
|
12384
|
+
});
|
|
12385
|
+
if (committed) {
|
|
12386
|
+
return;
|
|
12387
|
+
}
|
|
12388
|
+
const found = (_a = response.data) == null ? void 0 : _a[0];
|
|
12389
|
+
if (found) {
|
|
12390
|
+
committed = true;
|
|
12391
|
+
stopPolling();
|
|
12392
|
+
setActionLoading(false);
|
|
12393
|
+
mutate(found);
|
|
12394
|
+
(_b = props.onConnectSuccess) == null ? void 0 : _b.call(props, found.identifier);
|
|
12395
|
+
return;
|
|
12396
|
+
}
|
|
12397
|
+
} catch (e) {
|
|
12398
|
+
}
|
|
12399
|
+
if (committed) {
|
|
12400
|
+
return;
|
|
12401
|
+
}
|
|
12402
|
+
if (Date.now() - startedAt >= POLL_TIMEOUT_MS5) {
|
|
12403
|
+
committed = true;
|
|
12404
|
+
stopPolling();
|
|
12405
|
+
setActionLoading(false);
|
|
12406
|
+
(_c = props.onConnectError) == null ? void 0 : _c.call(props, new Error("Telegram connection timed out. Please try again."));
|
|
12407
|
+
}
|
|
12408
|
+
}), POLL_INTERVAL_MS4);
|
|
12409
|
+
};
|
|
12410
|
+
const handleClick = () => chunkA6CBLMST_js.__async(null, null, function* () {
|
|
12411
|
+
var _a, _b, _c, _d, _e, _f;
|
|
12412
|
+
if (isConnected()) {
|
|
12413
|
+
const identifier = (_a = endpoint()) == null ? void 0 : _a.identifier;
|
|
12414
|
+
if (!identifier) return;
|
|
12415
|
+
const result = yield disconnect(identifier);
|
|
12416
|
+
if (result.error) {
|
|
12417
|
+
(_b = props.onDisconnectError) == null ? void 0 : _b.call(props, result.error);
|
|
12418
|
+
} else {
|
|
12419
|
+
(_c = props.onDisconnectSuccess) == null ? void 0 : _c.call(props);
|
|
12420
|
+
}
|
|
12421
|
+
} else {
|
|
12422
|
+
setActionLoading(true);
|
|
12423
|
+
const result = yield link({
|
|
12424
|
+
integrationIdentifier: integrationIdentifier()
|
|
12425
|
+
});
|
|
12426
|
+
if (result.error) {
|
|
12427
|
+
setActionLoading(false);
|
|
12428
|
+
(_d = props.onConnectError) == null ? void 0 : _d.call(props, result.error);
|
|
12429
|
+
return;
|
|
12430
|
+
}
|
|
12431
|
+
if ((_e = result.data) == null ? void 0 : _e.url) {
|
|
12432
|
+
window.open(result.data.url, "_blank", "noopener,noreferrer");
|
|
12433
|
+
startPolling();
|
|
12434
|
+
} else {
|
|
12435
|
+
setActionLoading(false);
|
|
12436
|
+
(_f = props.onConnectError) == null ? void 0 : _f.call(props, new Error("Telegram link URL was not returned. Please try again."));
|
|
12437
|
+
}
|
|
12438
|
+
}
|
|
12439
|
+
});
|
|
12440
|
+
const buttonContent = () => (() => {
|
|
12441
|
+
var _el$ = _tmpl$105();
|
|
12442
|
+
web.insert(_el$, web.createComponent(Motion.span, {
|
|
12443
|
+
initial: {
|
|
12444
|
+
opacity: 1
|
|
12445
|
+
},
|
|
12446
|
+
get animate() {
|
|
12447
|
+
return {
|
|
12448
|
+
opacity: actionLoading() ? 0 : 1
|
|
12449
|
+
};
|
|
12450
|
+
},
|
|
12451
|
+
transition: {
|
|
12452
|
+
easing: "ease-in-out",
|
|
12453
|
+
duration: 0.2
|
|
12454
|
+
},
|
|
12455
|
+
"class": "nt-inline-flex nt-items-center nt-gap-1",
|
|
12456
|
+
get children() {
|
|
12457
|
+
return [web.memo(() => web.memo(() => !!isConnected())() ? web.createComponent(IconRendererWrapper, {
|
|
12458
|
+
iconKey: "channelConnected",
|
|
12459
|
+
get ["class"]() {
|
|
12460
|
+
return style({
|
|
12461
|
+
key: "channelConnectButtonIcon",
|
|
12462
|
+
className: "nt-inline-flex nt-items-center nt-justify-center nt-size-4 nt-shrink-0 nt-rounded-full nt-bg-white nt-shadow-[0_1px_2px_0_rgba(10,13,20,0.03)]",
|
|
12463
|
+
iconKey: "channelConnected",
|
|
12464
|
+
context: {
|
|
12465
|
+
connected: true
|
|
12466
|
+
}
|
|
12467
|
+
});
|
|
12468
|
+
},
|
|
12469
|
+
get fallback() {
|
|
12470
|
+
return (() => {
|
|
12471
|
+
var _el$3 = _tmpl$105();
|
|
12472
|
+
web.insert(_el$3, web.createComponent(CheckCircleFill, {
|
|
12473
|
+
"class": "nt-size-full"
|
|
12474
|
+
}));
|
|
12475
|
+
web.effect(() => web.className(_el$3, style({
|
|
12476
|
+
key: "channelConnectButtonIcon",
|
|
12477
|
+
className: "nt-inline-flex nt-items-center nt-justify-center nt-size-4 nt-shrink-0 nt-rounded-full nt-bg-white nt-shadow-[0_1px_2px_0_rgba(10,13,20,0.03)]",
|
|
12478
|
+
iconKey: "channelConnected",
|
|
12479
|
+
context: {
|
|
12480
|
+
connected: true
|
|
12481
|
+
}
|
|
12482
|
+
})));
|
|
12483
|
+
return _el$3;
|
|
12484
|
+
})();
|
|
12485
|
+
}
|
|
12486
|
+
}) : web.createComponent(IconRendererWrapper, {
|
|
12487
|
+
iconKey: "channelConnect",
|
|
12488
|
+
get ["class"]() {
|
|
12489
|
+
return style({
|
|
12490
|
+
key: "channelConnectButtonIcon",
|
|
12491
|
+
className: "nt-size-4 nt-shrink-0",
|
|
12492
|
+
iconKey: "channelConnect",
|
|
12493
|
+
context: {
|
|
12494
|
+
connected: false
|
|
12495
|
+
}
|
|
12496
|
+
});
|
|
12497
|
+
},
|
|
12498
|
+
get fallback() {
|
|
12499
|
+
return web.createComponent(TelegramColored, {
|
|
12500
|
+
get ["class"]() {
|
|
12501
|
+
return style({
|
|
12502
|
+
key: "channelConnectButtonIcon",
|
|
12503
|
+
className: "nt-size-4 nt-shrink-0",
|
|
12504
|
+
iconKey: "channelConnect",
|
|
12505
|
+
context: {
|
|
12506
|
+
connected: false
|
|
12507
|
+
}
|
|
12508
|
+
});
|
|
12509
|
+
}
|
|
12510
|
+
});
|
|
12511
|
+
}
|
|
12512
|
+
})), (() => {
|
|
12513
|
+
var _el$2 = _tmpl$105();
|
|
12514
|
+
web.insert(_el$2, () => {
|
|
12515
|
+
var _a, _b;
|
|
12516
|
+
return isConnected() ? (_a = props.connectedLabel) != null ? _a : "Connected to Telegram" : (_b = props.connectLabel) != null ? _b : "Connect Telegram";
|
|
12517
|
+
});
|
|
12518
|
+
web.effect(() => web.className(_el$2, style({
|
|
12519
|
+
key: "channelConnectButtonLabel",
|
|
12520
|
+
className: "[line-height:16px]",
|
|
12521
|
+
context: {
|
|
12522
|
+
connected: isConnected()
|
|
12523
|
+
}
|
|
12524
|
+
})));
|
|
12525
|
+
return _el$2;
|
|
12526
|
+
})()];
|
|
12527
|
+
}
|
|
12528
|
+
}), null);
|
|
12529
|
+
web.insert(_el$, web.createComponent(Motion.span, {
|
|
12530
|
+
initial: {
|
|
12531
|
+
opacity: 0
|
|
12532
|
+
},
|
|
12533
|
+
get animate() {
|
|
12534
|
+
return {
|
|
12535
|
+
opacity: actionLoading() ? 1 : 0
|
|
12536
|
+
};
|
|
12537
|
+
},
|
|
12538
|
+
transition: {
|
|
12539
|
+
easing: "ease-in-out",
|
|
12540
|
+
duration: 0.2
|
|
12541
|
+
},
|
|
12542
|
+
"class": "nt-absolute nt-left-0 nt-inline-flex nt-items-center",
|
|
12543
|
+
get children() {
|
|
12544
|
+
return web.createComponent(Loader, {
|
|
12545
|
+
"class": "nt-text-foreground-alpha-600 nt-size-3.5 nt-animate-spin"
|
|
12546
|
+
});
|
|
12547
|
+
}
|
|
12548
|
+
}), null);
|
|
12549
|
+
web.effect(() => web.className(_el$, style({
|
|
12550
|
+
key: "channelConnectButtonInner",
|
|
12551
|
+
className: "nt-relative nt-overflow-hidden nt-inline-flex nt-items-center nt-justify-center nt-gap-1",
|
|
12552
|
+
context: {
|
|
12553
|
+
connected: isConnected()
|
|
12554
|
+
}
|
|
12555
|
+
})));
|
|
12556
|
+
return _el$;
|
|
12557
|
+
})();
|
|
12558
|
+
return web.createComponent(solidJs.Show, {
|
|
12559
|
+
get when() {
|
|
12560
|
+
return !loading();
|
|
12561
|
+
},
|
|
12562
|
+
get fallback() {
|
|
12563
|
+
return web.createComponent(Loader, {
|
|
12564
|
+
"class": "nt-text-foreground-alpha-600 nt-size-4 nt-animate-spin"
|
|
12565
|
+
});
|
|
12566
|
+
},
|
|
12567
|
+
get children() {
|
|
12568
|
+
var _el$4 = _tmpl$234();
|
|
12569
|
+
web.insert(_el$4, web.createComponent(Button, {
|
|
12570
|
+
get ["class"]() {
|
|
12571
|
+
return style({
|
|
12572
|
+
key: "channelConnectButton",
|
|
12573
|
+
className: "nt-transition-[width] nt-duration-800 nt-will-change-[width]",
|
|
12574
|
+
context: {
|
|
12575
|
+
connected: isConnected()
|
|
12576
|
+
}
|
|
12577
|
+
});
|
|
12578
|
+
},
|
|
12579
|
+
variant: "secondary",
|
|
12580
|
+
onClick: handleClick,
|
|
12581
|
+
get disabled() {
|
|
12582
|
+
return isLoading();
|
|
12583
|
+
},
|
|
12584
|
+
get children() {
|
|
12585
|
+
return buttonContent();
|
|
12586
|
+
}
|
|
12587
|
+
}));
|
|
12588
|
+
web.effect(() => web.className(_el$4, style({
|
|
12589
|
+
key: "channelConnectButtonContainer",
|
|
12590
|
+
className: "nt-flex nt-items-center nt-gap-2",
|
|
12591
|
+
context: {
|
|
12592
|
+
connected: isConnected()
|
|
12593
|
+
}
|
|
12594
|
+
})));
|
|
12595
|
+
return _el$4;
|
|
12596
|
+
}
|
|
12597
|
+
});
|
|
12598
|
+
};
|
|
12234
12599
|
|
|
12235
12600
|
// src/ui/components/Renderer.tsx
|
|
12236
12601
|
var novuComponents = {
|
|
@@ -12245,7 +12610,7 @@ var novuComponents = {
|
|
|
12245
12610
|
renderAvatar,
|
|
12246
12611
|
renderDefaultActions,
|
|
12247
12612
|
renderCustomActions
|
|
12248
|
-
} = _a, otherProps =
|
|
12613
|
+
} = _a, otherProps = chunkA6CBLMST_js.__objRest(_a, [
|
|
12249
12614
|
"renderBody",
|
|
12250
12615
|
"renderSubject",
|
|
12251
12616
|
"renderAvatar",
|
|
@@ -12261,7 +12626,7 @@ var novuComponents = {
|
|
|
12261
12626
|
}
|
|
12262
12627
|
const _b = props, {
|
|
12263
12628
|
renderNotification
|
|
12264
|
-
} = _b, propsWithoutRenderNotification =
|
|
12629
|
+
} = _b, propsWithoutRenderNotification = chunkA6CBLMST_js.__objRest(_b, [
|
|
12265
12630
|
"renderNotification"
|
|
12266
12631
|
]);
|
|
12267
12632
|
return web.createComponent(InboxContent, web.mergeProps(propsWithoutRenderNotification, {
|
|
@@ -12279,7 +12644,7 @@ var novuComponents = {
|
|
|
12279
12644
|
renderAvatar,
|
|
12280
12645
|
renderDefaultActions,
|
|
12281
12646
|
renderCustomActions
|
|
12282
|
-
} = _a, otherProps =
|
|
12647
|
+
} = _a, otherProps = chunkA6CBLMST_js.__objRest(_a, [
|
|
12283
12648
|
"renderBody",
|
|
12284
12649
|
"renderSubject",
|
|
12285
12650
|
"renderAvatar",
|
|
@@ -12295,7 +12660,7 @@ var novuComponents = {
|
|
|
12295
12660
|
}
|
|
12296
12661
|
const _b = props, {
|
|
12297
12662
|
renderNotification
|
|
12298
|
-
} = _b, propsWithoutRenderNotification =
|
|
12663
|
+
} = _b, propsWithoutRenderNotification = chunkA6CBLMST_js.__objRest(_b, [
|
|
12299
12664
|
"renderNotification"
|
|
12300
12665
|
]);
|
|
12301
12666
|
return web.createComponent(InboxContent, web.mergeProps(propsWithoutRenderNotification, {
|
|
@@ -12312,10 +12677,11 @@ var novuComponents = {
|
|
|
12312
12677
|
SlackLinkUser,
|
|
12313
12678
|
SlackConnectButton,
|
|
12314
12679
|
MsTeamsLinkUser,
|
|
12315
|
-
MsTeamsConnectButton
|
|
12680
|
+
MsTeamsConnectButton,
|
|
12681
|
+
TelegramConnectButton
|
|
12316
12682
|
};
|
|
12317
12683
|
var SUBSCRIPTION_COMPONENTS = ["Subscription", "SubscriptionButton", "SubscriptionPreferences"];
|
|
12318
|
-
var CHANNEL_COMPONENTS = ["ConnectChat", "SlackLinkUser", "SlackConnectButton", "MsTeamsLinkUser", "MsTeamsConnectButton"];
|
|
12684
|
+
var CHANNEL_COMPONENTS = ["ConnectChat", "SlackLinkUser", "SlackConnectButton", "MsTeamsLinkUser", "MsTeamsConnectButton", "TelegramConnectButton"];
|
|
12319
12685
|
var InboxComponentsRenderer = (props) => {
|
|
12320
12686
|
return web.createComponent(solidJs.Show, {
|
|
12321
12687
|
get when() {
|
|
@@ -12495,31 +12861,31 @@ var Renderer = (props) => {
|
|
|
12495
12861
|
var _dispose, _container, _setContainer, _rootElement, _mountedElements, _setMountedElements, _appearance, _setAppearance, _localization, _setLocalization, _options, _setOptions, _tabs, _setTabs, _routerPush, _setRouterPush, _preferencesFilter, _setPreferencesFilter, _preferenceGroups, _setPreferenceGroups, _preferencesSort, _setPreferencesSort, _novu, _setNovu, _NovuUI_instances, getContainerElement_fn, mountComponentRenderer_fn, updateComponentProps_fn;
|
|
12496
12862
|
var NovuUI = class {
|
|
12497
12863
|
constructor(props) {
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12509
|
-
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12864
|
+
chunkA6CBLMST_js.__privateAdd(this, _NovuUI_instances);
|
|
12865
|
+
chunkA6CBLMST_js.__privateAdd(this, _dispose, null);
|
|
12866
|
+
chunkA6CBLMST_js.__privateAdd(this, _container);
|
|
12867
|
+
chunkA6CBLMST_js.__privateAdd(this, _setContainer);
|
|
12868
|
+
chunkA6CBLMST_js.__privateAdd(this, _rootElement);
|
|
12869
|
+
chunkA6CBLMST_js.__privateAdd(this, _mountedElements);
|
|
12870
|
+
chunkA6CBLMST_js.__privateAdd(this, _setMountedElements);
|
|
12871
|
+
chunkA6CBLMST_js.__privateAdd(this, _appearance);
|
|
12872
|
+
chunkA6CBLMST_js.__privateAdd(this, _setAppearance);
|
|
12873
|
+
chunkA6CBLMST_js.__privateAdd(this, _localization);
|
|
12874
|
+
chunkA6CBLMST_js.__privateAdd(this, _setLocalization);
|
|
12875
|
+
chunkA6CBLMST_js.__privateAdd(this, _options);
|
|
12876
|
+
chunkA6CBLMST_js.__privateAdd(this, _setOptions);
|
|
12877
|
+
chunkA6CBLMST_js.__privateAdd(this, _tabs);
|
|
12878
|
+
chunkA6CBLMST_js.__privateAdd(this, _setTabs);
|
|
12879
|
+
chunkA6CBLMST_js.__privateAdd(this, _routerPush);
|
|
12880
|
+
chunkA6CBLMST_js.__privateAdd(this, _setRouterPush);
|
|
12881
|
+
chunkA6CBLMST_js.__privateAdd(this, _preferencesFilter);
|
|
12882
|
+
chunkA6CBLMST_js.__privateAdd(this, _setPreferencesFilter);
|
|
12883
|
+
chunkA6CBLMST_js.__privateAdd(this, _preferenceGroups);
|
|
12884
|
+
chunkA6CBLMST_js.__privateAdd(this, _setPreferenceGroups);
|
|
12885
|
+
chunkA6CBLMST_js.__privateAdd(this, _preferencesSort);
|
|
12886
|
+
chunkA6CBLMST_js.__privateAdd(this, _setPreferencesSort);
|
|
12887
|
+
chunkA6CBLMST_js.__privateAdd(this, _novu);
|
|
12888
|
+
chunkA6CBLMST_js.__privateAdd(this, _setNovu);
|
|
12523
12889
|
var _a;
|
|
12524
12890
|
this.id = generateRandomString(16);
|
|
12525
12891
|
const [appearance, setAppearance] = solidJs.createSignal(props.appearance);
|
|
@@ -12531,41 +12897,41 @@ var NovuUI = class {
|
|
|
12531
12897
|
const [preferenceGroups, setPreferenceGroups] = solidJs.createSignal(props.preferenceGroups);
|
|
12532
12898
|
const [preferencesSort, setPreferencesSort] = solidJs.createSignal(props.preferencesSort);
|
|
12533
12899
|
const [routerPush, setRouterPush] = solidJs.createSignal(props.routerPush);
|
|
12534
|
-
const [container, setContainer] = solidJs.createSignal(
|
|
12900
|
+
const [container, setContainer] = solidJs.createSignal(chunkA6CBLMST_js.__privateMethod(this, _NovuUI_instances, getContainerElement_fn).call(this, props.container));
|
|
12535
12901
|
const [novu, setNovu] = solidJs.createSignal(props.novu);
|
|
12536
|
-
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12540
|
-
|
|
12541
|
-
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12553
|
-
|
|
12554
|
-
|
|
12555
|
-
|
|
12556
|
-
|
|
12557
|
-
|
|
12558
|
-
|
|
12902
|
+
chunkA6CBLMST_js.__privateSet(this, _mountedElements, mountedElements);
|
|
12903
|
+
chunkA6CBLMST_js.__privateSet(this, _setMountedElements, setMountedElements);
|
|
12904
|
+
chunkA6CBLMST_js.__privateSet(this, _appearance, appearance);
|
|
12905
|
+
chunkA6CBLMST_js.__privateSet(this, _setAppearance, setAppearance);
|
|
12906
|
+
chunkA6CBLMST_js.__privateSet(this, _localization, localization);
|
|
12907
|
+
chunkA6CBLMST_js.__privateSet(this, _setLocalization, setLocalization);
|
|
12908
|
+
chunkA6CBLMST_js.__privateSet(this, _options, options);
|
|
12909
|
+
chunkA6CBLMST_js.__privateSet(this, _setOptions, setOptions);
|
|
12910
|
+
chunkA6CBLMST_js.__privateSet(this, _tabs, tabs);
|
|
12911
|
+
chunkA6CBLMST_js.__privateSet(this, _setTabs, setTabs);
|
|
12912
|
+
chunkA6CBLMST_js.__privateSet(this, _routerPush, routerPush);
|
|
12913
|
+
chunkA6CBLMST_js.__privateSet(this, _setRouterPush, setRouterPush);
|
|
12914
|
+
chunkA6CBLMST_js.__privateSet(this, _novu, novu);
|
|
12915
|
+
chunkA6CBLMST_js.__privateSet(this, _setNovu, setNovu);
|
|
12916
|
+
chunkA6CBLMST_js.__privateSet(this, _preferencesFilter, preferencesFilter);
|
|
12917
|
+
chunkA6CBLMST_js.__privateSet(this, _setPreferencesFilter, setPreferencesFilter);
|
|
12918
|
+
chunkA6CBLMST_js.__privateSet(this, _preferenceGroups, preferenceGroups);
|
|
12919
|
+
chunkA6CBLMST_js.__privateSet(this, _setPreferenceGroups, setPreferenceGroups);
|
|
12920
|
+
chunkA6CBLMST_js.__privateSet(this, _preferencesSort, preferencesSort);
|
|
12921
|
+
chunkA6CBLMST_js.__privateSet(this, _setPreferencesSort, setPreferencesSort);
|
|
12922
|
+
chunkA6CBLMST_js.__privateSet(this, _container, container);
|
|
12923
|
+
chunkA6CBLMST_js.__privateSet(this, _setContainer, setContainer);
|
|
12924
|
+
chunkA6CBLMST_js.__privateMethod(this, _NovuUI_instances, mountComponentRenderer_fn).call(this);
|
|
12559
12925
|
}
|
|
12560
12926
|
mountComponent({
|
|
12561
12927
|
name,
|
|
12562
12928
|
element,
|
|
12563
12929
|
props: componentProps
|
|
12564
12930
|
}) {
|
|
12565
|
-
if (
|
|
12566
|
-
return
|
|
12931
|
+
if (chunkA6CBLMST_js.__privateGet(this, _mountedElements).call(this).has(element)) {
|
|
12932
|
+
return chunkA6CBLMST_js.__privateMethod(this, _NovuUI_instances, updateComponentProps_fn).call(this, element, componentProps);
|
|
12567
12933
|
}
|
|
12568
|
-
|
|
12934
|
+
chunkA6CBLMST_js.__privateGet(this, _setMountedElements).call(this, (oldNodes) => {
|
|
12569
12935
|
const newNodes = new Map(oldNodes);
|
|
12570
12936
|
newNodes.set(element, {
|
|
12571
12937
|
name,
|
|
@@ -12575,47 +12941,47 @@ var NovuUI = class {
|
|
|
12575
12941
|
});
|
|
12576
12942
|
}
|
|
12577
12943
|
unmountComponent(element) {
|
|
12578
|
-
|
|
12944
|
+
chunkA6CBLMST_js.__privateGet(this, _setMountedElements).call(this, (oldMountedElements) => {
|
|
12579
12945
|
const newMountedElements = new Map(oldMountedElements);
|
|
12580
12946
|
newMountedElements.delete(element);
|
|
12581
12947
|
return newMountedElements;
|
|
12582
12948
|
});
|
|
12583
12949
|
}
|
|
12584
12950
|
updateNovu(novu) {
|
|
12585
|
-
|
|
12951
|
+
chunkA6CBLMST_js.__privateGet(this, _setNovu).call(this, novu);
|
|
12586
12952
|
}
|
|
12587
12953
|
updateAppearance(appearance) {
|
|
12588
|
-
|
|
12954
|
+
chunkA6CBLMST_js.__privateGet(this, _setAppearance).call(this, appearance);
|
|
12589
12955
|
}
|
|
12590
12956
|
updateLocalization(localization) {
|
|
12591
|
-
|
|
12957
|
+
chunkA6CBLMST_js.__privateGet(this, _setLocalization).call(this, localization);
|
|
12592
12958
|
}
|
|
12593
12959
|
updateOptions(options) {
|
|
12594
|
-
|
|
12960
|
+
chunkA6CBLMST_js.__privateGet(this, _setOptions).call(this, options);
|
|
12595
12961
|
}
|
|
12596
12962
|
updateTabs(tabs) {
|
|
12597
|
-
|
|
12963
|
+
chunkA6CBLMST_js.__privateGet(this, _setTabs).call(this, tabs != null ? tabs : []);
|
|
12598
12964
|
}
|
|
12599
12965
|
updatePreferencesFilter(preferencesFilter) {
|
|
12600
|
-
|
|
12966
|
+
chunkA6CBLMST_js.__privateGet(this, _setPreferencesFilter).call(this, preferencesFilter);
|
|
12601
12967
|
}
|
|
12602
12968
|
updatePreferenceGroups(preferenceGroups) {
|
|
12603
|
-
|
|
12969
|
+
chunkA6CBLMST_js.__privateGet(this, _setPreferenceGroups).call(this, preferenceGroups);
|
|
12604
12970
|
}
|
|
12605
12971
|
updatePreferencesSort(preferencesSort) {
|
|
12606
|
-
|
|
12972
|
+
chunkA6CBLMST_js.__privateGet(this, _setPreferencesSort).call(this, () => preferencesSort);
|
|
12607
12973
|
}
|
|
12608
12974
|
updateRouterPush(routerPush) {
|
|
12609
|
-
|
|
12975
|
+
chunkA6CBLMST_js.__privateGet(this, _setRouterPush).call(this, () => routerPush);
|
|
12610
12976
|
}
|
|
12611
12977
|
updateContainer(container) {
|
|
12612
|
-
|
|
12978
|
+
chunkA6CBLMST_js.__privateGet(this, _setContainer).call(this, chunkA6CBLMST_js.__privateMethod(this, _NovuUI_instances, getContainerElement_fn).call(this, container));
|
|
12613
12979
|
}
|
|
12614
12980
|
unmount() {
|
|
12615
12981
|
var _a, _b;
|
|
12616
|
-
(_a =
|
|
12617
|
-
|
|
12618
|
-
(_b =
|
|
12982
|
+
(_a = chunkA6CBLMST_js.__privateGet(this, _dispose)) == null ? void 0 : _a.call(this);
|
|
12983
|
+
chunkA6CBLMST_js.__privateSet(this, _dispose, null);
|
|
12984
|
+
(_b = chunkA6CBLMST_js.__privateGet(this, _rootElement)) == null ? void 0 : _b.remove();
|
|
12619
12985
|
}
|
|
12620
12986
|
};
|
|
12621
12987
|
_dispose = new WeakMap();
|
|
@@ -12654,70 +13020,70 @@ getContainerElement_fn = function(container) {
|
|
|
12654
13020
|
return container;
|
|
12655
13021
|
};
|
|
12656
13022
|
mountComponentRenderer_fn = function() {
|
|
12657
|
-
if (
|
|
13023
|
+
if (chunkA6CBLMST_js.__privateGet(this, _dispose) !== null) {
|
|
12658
13024
|
return;
|
|
12659
13025
|
}
|
|
12660
|
-
|
|
12661
|
-
|
|
12662
|
-
const container =
|
|
12663
|
-
(container != null ? container : document.body).appendChild(
|
|
13026
|
+
chunkA6CBLMST_js.__privateSet(this, _rootElement, document.createElement("div"));
|
|
13027
|
+
chunkA6CBLMST_js.__privateGet(this, _rootElement).setAttribute("id", `novu-ui-${this.id}`);
|
|
13028
|
+
const container = chunkA6CBLMST_js.__privateGet(this, _container).call(this);
|
|
13029
|
+
(container != null ? container : document.body).appendChild(chunkA6CBLMST_js.__privateGet(this, _rootElement));
|
|
12664
13030
|
const dispose = web.render(() => {
|
|
12665
13031
|
const _self$ = this;
|
|
12666
13032
|
return web.createComponent(Renderer, {
|
|
12667
13033
|
novuUI: _self$,
|
|
12668
13034
|
get nodes() {
|
|
12669
13035
|
var _a;
|
|
12670
|
-
return
|
|
13036
|
+
return chunkA6CBLMST_js.__privateGet(_a = _self$, _mountedElements).call(_a);
|
|
12671
13037
|
},
|
|
12672
13038
|
get options() {
|
|
12673
13039
|
var _a;
|
|
12674
|
-
return
|
|
13040
|
+
return chunkA6CBLMST_js.__privateGet(_a = _self$, _options).call(_a);
|
|
12675
13041
|
},
|
|
12676
13042
|
get appearance() {
|
|
12677
13043
|
var _a;
|
|
12678
|
-
return
|
|
13044
|
+
return chunkA6CBLMST_js.__privateGet(_a = _self$, _appearance).call(_a);
|
|
12679
13045
|
},
|
|
12680
13046
|
get localization() {
|
|
12681
13047
|
var _a;
|
|
12682
|
-
return
|
|
13048
|
+
return chunkA6CBLMST_js.__privateGet(_a = _self$, _localization).call(_a);
|
|
12683
13049
|
},
|
|
12684
13050
|
get tabs() {
|
|
12685
13051
|
var _a;
|
|
12686
|
-
return
|
|
13052
|
+
return chunkA6CBLMST_js.__privateGet(_a = _self$, _tabs).call(_a);
|
|
12687
13053
|
},
|
|
12688
13054
|
get preferencesFilter() {
|
|
12689
13055
|
var _a;
|
|
12690
|
-
return
|
|
13056
|
+
return chunkA6CBLMST_js.__privateGet(_a = _self$, _preferencesFilter).call(_a);
|
|
12691
13057
|
},
|
|
12692
13058
|
get preferenceGroups() {
|
|
12693
13059
|
var _a;
|
|
12694
|
-
return
|
|
13060
|
+
return chunkA6CBLMST_js.__privateGet(_a = _self$, _preferenceGroups).call(_a);
|
|
12695
13061
|
},
|
|
12696
13062
|
get preferencesSort() {
|
|
12697
13063
|
var _a;
|
|
12698
|
-
return
|
|
13064
|
+
return chunkA6CBLMST_js.__privateGet(_a = _self$, _preferencesSort).call(_a);
|
|
12699
13065
|
},
|
|
12700
13066
|
get routerPush() {
|
|
12701
13067
|
var _a;
|
|
12702
|
-
return
|
|
13068
|
+
return chunkA6CBLMST_js.__privateGet(_a = _self$, _routerPush).call(_a);
|
|
12703
13069
|
},
|
|
12704
13070
|
get novu() {
|
|
12705
|
-
return
|
|
13071
|
+
return chunkA6CBLMST_js.__privateGet(_self$, _novu);
|
|
12706
13072
|
},
|
|
12707
13073
|
get container() {
|
|
12708
13074
|
var _a;
|
|
12709
|
-
return
|
|
13075
|
+
return chunkA6CBLMST_js.__privateGet(_a = _self$, _container).call(_a);
|
|
12710
13076
|
}
|
|
12711
13077
|
});
|
|
12712
|
-
},
|
|
12713
|
-
|
|
13078
|
+
}, chunkA6CBLMST_js.__privateGet(this, _rootElement));
|
|
13079
|
+
chunkA6CBLMST_js.__privateSet(this, _dispose, dispose);
|
|
12714
13080
|
};
|
|
12715
13081
|
updateComponentProps_fn = function(element, props) {
|
|
12716
|
-
|
|
13082
|
+
chunkA6CBLMST_js.__privateGet(this, _setMountedElements).call(this, (oldMountedElements) => {
|
|
12717
13083
|
const newMountedElements = new Map(oldMountedElements);
|
|
12718
13084
|
const mountedElement = newMountedElements.get(element);
|
|
12719
13085
|
if (mountedElement) {
|
|
12720
|
-
newMountedElements.set(element,
|
|
13086
|
+
newMountedElements.set(element, chunkA6CBLMST_js.__spreadProps(chunkA6CBLMST_js.__spreadValues({}, mountedElement), {
|
|
12721
13087
|
props
|
|
12722
13088
|
}));
|
|
12723
13089
|
}
|