@bigbinary/neeto-commons-frontend 2.0.13 → 2.0.14

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.
@@ -11,11 +11,11 @@ var relativeTime = require('dayjs/plugin/relativeTime');
11
11
  var updateLocale = require('dayjs/plugin/updateLocale');
12
12
  var react = require('@honeybadger-io/react');
13
13
  var reactI18next = require('react-i18next');
14
- var reactQuery = require('react-query');
15
14
  var i18next = require('i18next');
15
+ var yup = require('yup');
16
+ var reactQuery = require('react-query');
16
17
  var formik$1 = require('@bigbinary/neetoui/formik');
17
18
  var formik = require('formik');
18
- var yup = require('yup');
19
19
  var reactRouterDom = require('react-router-dom');
20
20
  var layouts = require('@bigbinary/neetoui/layouts');
21
21
  var axios$1 = require('axios');
@@ -290,8 +290,8 @@ var removeFixedColumns = function removeFixedColumns(fixedColumns, columnData) {
290
290
  };
291
291
  var filterBySearchTerm = function filterBySearchTerm(searchTerm, columns) {
292
292
  return ramda.filter(function (_ref) {
293
- var name = _ref.name;
294
- return ramda.includes(ramda.trim(ramda.toLower(searchTerm)), ramda.trim(ramda.toLower(name)));
293
+ var title = _ref.title;
294
+ return ramda.includes(ramda.trim(ramda.toLower(searchTerm)), ramda.trim(ramda.toLower(title)));
295
295
  }, columns);
296
296
  };
297
297
 
@@ -369,16 +369,18 @@ var Columns = function Columns(_ref) {
369
369
  }, searchProps)), isNotEmpty(filteredColumns) ? filteredColumns.map(function (_ref4) {
370
370
  var dataIndex = _ref4.dataIndex,
371
371
  key = _ref4.key,
372
- name = _ref4.name;
373
- return /*#__PURE__*/React__default["default"].createElement(MenuItem.Button, {
372
+ title = _ref4.title;
373
+ return /*#__PURE__*/React__default["default"].createElement(MenuItem, {
374
374
  key: key
375
- }, /*#__PURE__*/React__default["default"].createElement("label", {
376
- className: "neeto-ui-w-full"
375
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Label, {
376
+ className: "neeto-ui-w-full neeto-ui-px-3 neeto-ui-py-2 hover:neeto-ui-bg-gray-200 neeto-ui-cursor-pointer",
377
+ htmlFor: dataIndex
377
378
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Checkbox, _extends$4({
379
+ id: dataIndex,
378
380
  name: dataIndex,
379
381
  checked: !hiddenColumns.includes(dataIndex),
380
382
  "data-cy": "neeto-ui-columns-checkbox",
381
- label: name,
383
+ label: title,
382
384
  onChange: handleChange
383
385
  }, checkboxProps))));
384
386
  }) : /*#__PURE__*/React__default["default"].createElement("span", {
@@ -524,6 +526,27 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
524
526
  }, children);
525
527
  };
526
528
 
529
+ var EMBED_WIDGET_S3_SCRIPT_STRING = "<script src=\"https://neeto-widget.s3.ap-south-1.amazonaws.com/embedNeetoWidget.js\"></script>";
530
+ var DISABLE_NEETO_CHAT = "disableNeetoChat: true,";
531
+ var DISABLE_NEETO_CHANGELOG = "disableNeetoChangelog: true,";
532
+ var DISABLE_NEETO_REPLAY = "disableNeetoReplay: true,";
533
+ var SAMPLE_CONTEXT_CODE_STRING = "window.NeetoReplayWidgetSessionContext = {\n key1: \"value\",\n key2: [\"array\", \"of\", \"values\"],\n /* More key-value pairs */\n}";
534
+ var SAMPLE_USER_IDENTITY_CODE_STRING = "window.NeetoWidgetUserIdentity = {\n user_identifier: \"USER_ID_HERE\",\n name: \"USER_NAME_HERE\",\n email: \"USER_EMAIL_HERE\",\n started_at: \"YYYY-MM-DD\",\n}";
535
+ var WIDGET_TYPES = {
536
+ changelog: "changelog",
537
+ chat: "chat",
538
+ replay: "replay"
539
+ };
540
+ var WIDGET_TYPES_VALUES = ramda.values(WIDGET_TYPES);
541
+ var EMAIL_WIDGET_SNIPPET_FORM_VALIDATION_SCHEMA = yup__namespace.object({
542
+ emails: yup__namespace.array().required().label(i18next__default["default"].t("neetoCommons.widget.email.fields.emails.label")),
543
+ subject: yup__namespace.string().required().label(i18next__default["default"].t("neetoCommons.widget.email.fields.subject.label"))
544
+ });
545
+ var QUERY_KEYS = {
546
+ apiKey: "neetoWidgetApiKey"
547
+ };
548
+ var DEFAULT_QUERY_STALE_TIME = 60 * 60 * 1000; // 1 hour in milliseconds
549
+
527
550
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
528
551
 
529
552
  var propTypes = {exports: {}};
@@ -51558,7 +51581,7 @@ var languageLoaders = {
51558
51581
  return Promise.resolve().then(function () { return apex$1; });
51559
51582
  }),
51560
51583
  apl: createLanguageAsyncLoader("apl", function () {
51561
- return Promise.resolve().then(function () { return apl; });
51584
+ return Promise.resolve().then(function () { return apl$1; });
51562
51585
  }),
51563
51586
  applescript: createLanguageAsyncLoader("applescript", function () {
51564
51587
  return Promise.resolve().then(function () { return applescript$2; });
@@ -51591,7 +51614,7 @@ var languageLoaders = {
51591
51614
  return Promise.resolve().then(function () { return autoit$2; });
51592
51615
  }),
51593
51616
  avisynth: createLanguageAsyncLoader("avisynth", function () {
51594
- return Promise.resolve().then(function () { return avisynth$1; });
51617
+ return Promise.resolve().then(function () { return avisynth; });
51595
51618
  }),
51596
51619
  avroIdl: createLanguageAsyncLoader("avroIdl", function () {
51597
51620
  return Promise.resolve().then(function () { return avroIdl; });
@@ -61375,54 +61398,50 @@ var apex$1 = /*#__PURE__*/_mergeNamespaces({
61375
61398
  'default': apex_1
61376
61399
  }, [apex_1]);
61377
61400
 
61378
- var apl_1;
61379
- var hasRequiredApl;
61380
-
61381
- function requireApl () {
61382
- if (hasRequiredApl) return apl_1;
61383
- hasRequiredApl = 1;
61384
-
61385
- apl_1 = apl;
61386
- apl.displayName = 'apl';
61387
- apl.aliases = [];
61388
- function apl(Prism) {
61389
- Prism.languages.apl = {
61390
- comment: /(?:⍝|#[! ]).*$/m,
61391
- string: {
61392
- pattern: /'(?:[^'\r\n]|'')*'/,
61393
- greedy: true
61394
- },
61395
- number:
61396
- /¯?(?:\d*\.?\b\d+(?:e[]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,
61397
- statement: /:[A-Z][a-z][A-Za-z]*\b/,
61398
- 'system-function': {
61399
- pattern: /⎕[A-Z]+/i,
61400
- alias: 'function'
61401
- },
61402
- constant: /[⍬⌾#⎕⍞]/,
61403
- function: /[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
61404
- 'monadic-operator': {
61405
- pattern: /[\\\/⌿⍀¨⍨⌶&∥]/,
61406
- alias: 'operator'
61407
- },
61408
- 'dyadic-operator': {
61409
- pattern: /[.⍣⍠⍤∘⌸@⌺⍥]/,
61410
- alias: 'operator'
61411
- },
61412
- assignment: {
61413
- pattern: /←/,
61414
- alias: 'keyword'
61415
- },
61416
- punctuation: /[\[;\]()◇⋄]/,
61417
- dfn: {
61418
- pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
61419
- alias: 'builtin'
61420
- }
61421
- };
61422
- }
61423
- return apl_1;
61401
+ var apl_1 = apl;
61402
+ apl.displayName = 'apl';
61403
+ apl.aliases = [];
61404
+ function apl(Prism) {
61405
+ Prism.languages.apl = {
61406
+ comment: /(?:⍝|#[! ]).*$/m,
61407
+ string: {
61408
+ pattern: /'(?:[^'\r\n]|'')*'/,
61409
+ greedy: true
61410
+ },
61411
+ number:
61412
+ /¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,
61413
+ statement: /:[A-Z][a-z][A-Za-z]*\b/,
61414
+ 'system-function': {
61415
+ pattern: /⎕[A-Z]+/i,
61416
+ alias: 'function'
61417
+ },
61418
+ constant: /[⍬⌾#⎕⍞]/,
61419
+ function: /[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,
61420
+ 'monadic-operator': {
61421
+ pattern: /[\\\/⌿⍀¨⍨⌶&∥]/,
61422
+ alias: 'operator'
61423
+ },
61424
+ 'dyadic-operator': {
61425
+ pattern: /[.⍣⍠⍤∘⌸@⌺⍥]/,
61426
+ alias: 'operator'
61427
+ },
61428
+ assignment: {
61429
+ pattern: /←/,
61430
+ alias: 'keyword'
61431
+ },
61432
+ punctuation: /[\[;\]()◇⋄]/,
61433
+ dfn: {
61434
+ pattern: /[{}⍺⍵⍶⍹∇⍫:]/,
61435
+ alias: 'builtin'
61436
+ }
61437
+ };
61424
61438
  }
61425
61439
 
61440
+ var apl$1 = /*#__PURE__*/_mergeNamespaces({
61441
+ __proto__: null,
61442
+ 'default': apl_1
61443
+ }, [apl_1]);
61444
+
61426
61445
  var applescript_1 = applescript$1;
61427
61446
  applescript$1.displayName = 'applescript';
61428
61447
  applescript$1.aliases = [];
@@ -62743,179 +62762,183 @@ var autoit$2 = /*#__PURE__*/_mergeNamespaces({
62743
62762
  'default': autoit_1
62744
62763
  }, [autoit_1]);
62745
62764
 
62746
- var avisynth_1 = avisynth;
62747
- avisynth.displayName = 'avisynth';
62748
- avisynth.aliases = ['avs'];
62749
- function avisynth(Prism) {
62765
+ var avisynth_1;
62766
+ var hasRequiredAvisynth;
62767
+
62768
+ function requireAvisynth () {
62769
+ if (hasRequiredAvisynth) return avisynth_1;
62770
+ hasRequiredAvisynth = 1;
62771
+
62772
+ avisynth_1 = avisynth;
62773
+ avisynth.displayName = 'avisynth';
62774
+ avisynth.aliases = ['avs'];
62775
+ function avisynth(Prism) {
62750
62776
  (function (Prism) {
62751
- function replace(pattern, replacements) {
62752
- return pattern.replace(/<<(\d+)>>/g, function (m, index) {
62753
- return replacements[+index]
62754
- })
62755
- }
62756
- function re(pattern, replacements, flags) {
62757
- return RegExp(replace(pattern, replacements), flags || '')
62758
- }
62759
- var types = /bool|clip|float|int|string|val/.source;
62760
- var internals = [
62761
- // bools
62762
- /is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/
62763
- .source, // control
62764
- /apply|assert|default|eval|import|nop|select|undefined/.source, // global
62765
- /opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/
62766
- .source, // conv
62767
- /hex(?:value)?|value/.source, // numeric
62768
- /abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/
62769
- .source, // trig
62770
- /a?sinh?|a?cosh?|a?tan[2h]?/.source, // bit
62771
- /(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/
62772
- .source, // runtime
62773
- /average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/
62774
- .source, // script
62775
- /getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/
62776
- .source, // string
62777
- /chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/
62778
- .source, // version
62779
- /isversionorgreater|version(?:number|string)/.source, // helper
62780
- /buildpixeltype|colorspacenametopixeltype/.source, // avsplus
62781
- /addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source
62782
- ].join('|');
62783
- var properties = [
62784
- // content
62785
- /has(?:audio|video)/.source, // resolution
62786
- /height|width/.source, // framerate
62787
- /frame(?:count|rate)|framerate(?:denominator|numerator)/.source, // interlacing
62788
- /getparity|is(?:field|frame)based/.source, // color format
62789
- /bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/
62790
- .source, // audio
62791
- /audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/
62792
- .source
62793
- ].join('|');
62794
- var filters = [
62795
- // source
62796
- /avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/
62797
- .source, // color
62798
- /coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/
62799
- .source, // overlay
62800
- /(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source, // geometry
62801
- /addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/
62802
- .source, // pixel
62803
- /blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/
62804
- .source, // timeline
62805
- /trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/
62806
- .source, // interlace
62807
- /assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/
62808
- .source, // audio
62809
- /amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/
62810
- .source, // conditional
62811
- /animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/
62812
- .source, // export
62813
- /imagewriter/.source, // debug
62814
- /blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/
62815
- .source
62816
- ].join('|');
62817
- var allinternals = [internals, properties, filters].join('|');
62818
- Prism.languages.avisynth = {
62819
- comment: [
62820
- {
62821
- // Matches [* *] nestable block comments, but only supports 1 level of nested comments
62822
- // /\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|<self>)*\*\]/
62823
- pattern:
62824
- /(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,
62825
- lookbehind: true,
62826
- greedy: true
62827
- },
62828
- {
62829
- // Matches /* */ block comments
62830
- pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
62831
- lookbehind: true,
62832
- greedy: true
62833
- },
62834
- {
62835
- // Matches # comments
62836
- pattern: /(^|[^\\$])#.*/,
62837
- lookbehind: true,
62838
- greedy: true
62839
- }
62840
- ],
62841
- // Handle before strings because optional arguments are surrounded by double quotes
62842
- argument: {
62843
- pattern: re(/\b(?:<<0>>)\s+("?)\w+\1/.source, [types], 'i'),
62844
- inside: {
62845
- keyword: /^\w+/
62846
- }
62847
- },
62848
- // Optional argument assignment
62849
- 'argument-label': {
62850
- pattern: /([,(][\s\\]*)\w+\s*=(?!=)/,
62851
- lookbehind: true,
62852
- inside: {
62853
- 'argument-name': {
62854
- pattern: /^\w+/,
62855
- alias: 'punctuation'
62856
- },
62857
- punctuation: /=$/
62858
- }
62859
- },
62860
- string: [
62861
- {
62862
- // triple double-quoted
62863
- pattern: /"""[\s\S]*?"""/,
62864
- greedy: true
62865
- },
62866
- {
62867
- // single double-quoted
62868
- pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
62869
- greedy: true,
62870
- inside: {
62871
- constant: {
62872
- // These *are* case-sensitive!
62873
- pattern:
62874
- /\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/
62875
- }
62876
- }
62877
- }
62878
- ],
62879
- // The special "last" variable that takes the value of the last implicitly returned clip
62880
- variable: /\b(?:last)\b/i,
62881
- boolean: /\b(?:false|no|true|yes)\b/i,
62882
- keyword:
62883
- /\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,
62884
- constant: /\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,
62885
- // AviSynth's internal functions, filters, and properties
62886
- 'builtin-function': {
62887
- pattern: re(/\b(?:<<0>>)\b/.source, [allinternals], 'i'),
62888
- alias: 'function'
62889
- },
62890
- 'type-cast': {
62891
- pattern: re(/\b(?:<<0>>)(?=\s*\()/.source, [types], 'i'),
62892
- alias: 'keyword'
62893
- },
62894
- // External/user-defined filters
62895
- function: {
62896
- pattern: /\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,
62897
- lookbehind: true
62898
- },
62899
- // Matches a \ as the first or last character on a line
62900
- 'line-continuation': {
62901
- pattern: /(^[ \t]*)\\|\\(?=[ \t]*$)/m,
62902
- lookbehind: true,
62903
- alias: 'punctuation'
62904
- },
62905
- number:
62906
- /\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,
62907
- operator: /\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,
62908
- punctuation: /[{}\[\]();,.]/
62909
- };
62910
- Prism.languages.avs = Prism.languages.avisynth;
62911
- })(Prism);
62777
+ function replace(pattern, replacements) {
62778
+ return pattern.replace(/<<(\d+)>>/g, function (m, index) {
62779
+ return replacements[+index]
62780
+ })
62781
+ }
62782
+ function re(pattern, replacements, flags) {
62783
+ return RegExp(replace(pattern, replacements), flags || '')
62784
+ }
62785
+ var types = /bool|clip|float|int|string|val/.source;
62786
+ var internals = [
62787
+ // bools
62788
+ /is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/
62789
+ .source, // control
62790
+ /apply|assert|default|eval|import|nop|select|undefined/.source, // global
62791
+ /opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/
62792
+ .source, // conv
62793
+ /hex(?:value)?|value/.source, // numeric
62794
+ /abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/
62795
+ .source, // trig
62796
+ /a?sinh?|a?cosh?|a?tan[2h]?/.source, // bit
62797
+ /(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/
62798
+ .source, // runtime
62799
+ /average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/
62800
+ .source, // script
62801
+ /getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/
62802
+ .source, // string
62803
+ /chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/
62804
+ .source, // version
62805
+ /isversionorgreater|version(?:number|string)/.source, // helper
62806
+ /buildpixeltype|colorspacenametopixeltype/.source, // avsplus
62807
+ /addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source
62808
+ ].join('|');
62809
+ var properties = [
62810
+ // content
62811
+ /has(?:audio|video)/.source, // resolution
62812
+ /height|width/.source, // framerate
62813
+ /frame(?:count|rate)|framerate(?:denominator|numerator)/.source, // interlacing
62814
+ /getparity|is(?:field|frame)based/.source, // color format
62815
+ /bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/
62816
+ .source, // audio
62817
+ /audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/
62818
+ .source
62819
+ ].join('|');
62820
+ var filters = [
62821
+ // source
62822
+ /avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/
62823
+ .source, // color
62824
+ /coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/
62825
+ .source, // overlay
62826
+ /(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source, // geometry
62827
+ /addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/
62828
+ .source, // pixel
62829
+ /blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/
62830
+ .source, // timeline
62831
+ /trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/
62832
+ .source, // interlace
62833
+ /assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/
62834
+ .source, // audio
62835
+ /amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/
62836
+ .source, // conditional
62837
+ /animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/
62838
+ .source, // export
62839
+ /imagewriter/.source, // debug
62840
+ /blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/
62841
+ .source
62842
+ ].join('|');
62843
+ var allinternals = [internals, properties, filters].join('|');
62844
+ Prism.languages.avisynth = {
62845
+ comment: [
62846
+ {
62847
+ // Matches [* *] nestable block comments, but only supports 1 level of nested comments
62848
+ // /\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|<self>)*\*\]/
62849
+ pattern:
62850
+ /(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,
62851
+ lookbehind: true,
62852
+ greedy: true
62853
+ },
62854
+ {
62855
+ // Matches /* */ block comments
62856
+ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,
62857
+ lookbehind: true,
62858
+ greedy: true
62859
+ },
62860
+ {
62861
+ // Matches # comments
62862
+ pattern: /(^|[^\\$])#.*/,
62863
+ lookbehind: true,
62864
+ greedy: true
62865
+ }
62866
+ ],
62867
+ // Handle before strings because optional arguments are surrounded by double quotes
62868
+ argument: {
62869
+ pattern: re(/\b(?:<<0>>)\s+("?)\w+\1/.source, [types], 'i'),
62870
+ inside: {
62871
+ keyword: /^\w+/
62872
+ }
62873
+ },
62874
+ // Optional argument assignment
62875
+ 'argument-label': {
62876
+ pattern: /([,(][\s\\]*)\w+\s*=(?!=)/,
62877
+ lookbehind: true,
62878
+ inside: {
62879
+ 'argument-name': {
62880
+ pattern: /^\w+/,
62881
+ alias: 'punctuation'
62882
+ },
62883
+ punctuation: /=$/
62884
+ }
62885
+ },
62886
+ string: [
62887
+ {
62888
+ // triple double-quoted
62889
+ pattern: /"""[\s\S]*?"""/,
62890
+ greedy: true
62891
+ },
62892
+ {
62893
+ // single double-quoted
62894
+ pattern: /"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
62895
+ greedy: true,
62896
+ inside: {
62897
+ constant: {
62898
+ // These *are* case-sensitive!
62899
+ pattern:
62900
+ /\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/
62901
+ }
62902
+ }
62903
+ }
62904
+ ],
62905
+ // The special "last" variable that takes the value of the last implicitly returned clip
62906
+ variable: /\b(?:last)\b/i,
62907
+ boolean: /\b(?:false|no|true|yes)\b/i,
62908
+ keyword:
62909
+ /\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,
62910
+ constant: /\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,
62911
+ // AviSynth's internal functions, filters, and properties
62912
+ 'builtin-function': {
62913
+ pattern: re(/\b(?:<<0>>)\b/.source, [allinternals], 'i'),
62914
+ alias: 'function'
62915
+ },
62916
+ 'type-cast': {
62917
+ pattern: re(/\b(?:<<0>>)(?=\s*\()/.source, [types], 'i'),
62918
+ alias: 'keyword'
62919
+ },
62920
+ // External/user-defined filters
62921
+ function: {
62922
+ pattern: /\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,
62923
+ lookbehind: true
62924
+ },
62925
+ // Matches a \ as the first or last character on a line
62926
+ 'line-continuation': {
62927
+ pattern: /(^[ \t]*)\\|\\(?=[ \t]*$)/m,
62928
+ lookbehind: true,
62929
+ alias: 'punctuation'
62930
+ },
62931
+ number:
62932
+ /\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,
62933
+ operator: /\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,
62934
+ punctuation: /[{}\[\]();,.]/
62935
+ };
62936
+ Prism.languages.avs = Prism.languages.avisynth;
62937
+ })(Prism);
62938
+ }
62939
+ return avisynth_1;
62912
62940
  }
62913
62941
 
62914
- var avisynth$1 = /*#__PURE__*/_mergeNamespaces({
62915
- __proto__: null,
62916
- 'default': avisynth_1
62917
- }, [avisynth_1]);
62918
-
62919
62942
  var avroIdl_1;
62920
62943
  var hasRequiredAvroIdl;
62921
62944
 
@@ -84149,7 +84172,7 @@ refractor.register(al_1);
84149
84172
  refractor.register(antlr4_1);
84150
84173
  refractor.register(apacheconf_1);
84151
84174
  refractor.register(apex_1);
84152
- refractor.register(requireApl());
84175
+ refractor.register(apl_1);
84153
84176
  refractor.register(applescript_1);
84154
84177
  refractor.register(aql_1);
84155
84178
  refractor.register(arduino_1);
@@ -84160,7 +84183,7 @@ refractor.register(asmatmel_1);
84160
84183
  refractor.register(aspnet_1);
84161
84184
  refractor.register(autohotkey_1);
84162
84185
  refractor.register(autoit_1);
84163
- refractor.register(avisynth_1);
84186
+ refractor.register(requireAvisynth());
84164
84187
  refractor.register(requireAvroIdl());
84165
84188
  refractor.register(requireBash());
84166
84189
  refractor.register(requireBasic());
@@ -85663,27 +85686,6 @@ CodeBlock.propTypes = {
85663
85686
  codeStyles: propTypes.exports.object
85664
85687
  };
85665
85688
 
85666
- var EMBED_WIDGET_S3_SCRIPT_STRING = "<script src=\"https://neeto-widget.s3.ap-south-1.amazonaws.com/embedNeetoWidget.js\"></script>";
85667
- var DISABLE_NEETO_CHAT = "disableNeetoChat: true,";
85668
- var DISABLE_NEETO_CHANGELOG = "disableNeetoChangelog: true,";
85669
- var DISABLE_NEETO_REPLAY = "disableNeetoReplay: true,";
85670
- var SAMPLE_CONTEXT_CODE_STRING = "window.NeetoReplayWidgetSessionContext = {\n key1: \"value\",\n key2: [\"array\", \"of\", \"values\"],\n /* More key-value pairs */\n}";
85671
- var SAMPLE_USER_IDENTITY_CODE_STRING = "window.NeetoWidgetUserIdentity = {\n user_identifier: \"USER_ID_HERE\",\n name: \"USER_NAME_HERE\",\n email: \"USER_EMAIL_HERE\",\n started_at: \"YYYY-MM-DD\",\n}";
85672
- var WIDGET_TYPES = {
85673
- changelog: "changelog",
85674
- chat: "chat",
85675
- replay: "replay"
85676
- };
85677
- var WIDGET_TYPES_VALUES = ramda.values(WIDGET_TYPES);
85678
- var EMAIL_WIDGET_SNIPPET_FORM_VALIDATION_SCHEMA = yup__namespace.object({
85679
- emails: yup__namespace.array().required().label(i18next__default["default"].t("neetoCommons.widget.email.fields.emails.label")),
85680
- subject: yup__namespace.string().required().label(i18next__default["default"].t("neetoCommons.widget.email.fields.subject.label"))
85681
- });
85682
- var QUERY_KEYS = {
85683
- apiKey: "neetoWidgetApiKey"
85684
- };
85685
- var DEFAULT_QUERY_STALE_TIME = 60 * 60 * 1000; // 1 hour in milliseconds
85686
-
85687
85689
  var getWidgetApiKeyUrl = function getWidgetApiKeyUrl() {
85688
85690
  return "api/v1/widget/api_keys/".concat(window.globalProps.organization.subdomain);
85689
85691
  };
@@ -85927,6 +85929,12 @@ CodeSnippet.propTypes = {
85927
85929
 
85928
85930
  var useFetchApiKey = function useFetchApiKey() {
85929
85931
  return reactQuery.useQuery(QUERY_KEYS.apiKey, function () {
85932
+ if (window.globalProps.railsEnv === "heroku" || !process.env.ENABLE_SSO) {
85933
+ return Promise.resolve({
85934
+ widgetApiKey: "placeholder-api-key"
85935
+ });
85936
+ }
85937
+
85930
85938
  return queryWidgetApiKey();
85931
85939
  }, {
85932
85940
  staleTime: DEFAULT_QUERY_STALE_TIME
@@ -85944,9 +85952,8 @@ var SelectionTabs = function SelectionTabs(_ref) {
85944
85952
  return /*#__PURE__*/React__default["default"].createElement("div", {
85945
85953
  className: "mb-1",
85946
85954
  key: widget
85947
- }, primarySelectedWidget !== widget ? /*#__PURE__*/React__default["default"].createElement(neetoui.Checkbox, {
85955
+ }, primarySelectedWidget !== widget ? /*#__PURE__*/React__default["default"].createElement(neetoui.Switch, {
85948
85956
  label: "neeto".concat(capitalize(widget)),
85949
- size: "small",
85950
85957
  checked: selectedWidgets.includes(widget),
85951
85958
  onChange: function onChange() {
85952
85959
  return updateSelectedWidgets(widget);
@@ -86257,7 +86264,8 @@ var Sidebar = function Sidebar(_ref) {
86257
86264
  };
86258
86265
 
86259
86266
  var NeetoWidget = {
86260
- EmbedCode: EmbedCodeQueryClient
86267
+ EmbedCode: EmbedCodeQueryClient,
86268
+ WIDGET_TYPES: WIDGET_TYPES
86261
86269
  };
86262
86270
 
86263
86271
  function useDebounce(value) {
@@ -88072,12 +88080,12 @@ var zephir = /*#__PURE__*/_mergeNamespaces({
88072
88080
  'default': zephirExports
88073
88081
  }, [zephirExports]);
88074
88082
 
88075
- var aplExports = requireApl();
88083
+ var avisynthExports = requireAvisynth();
88076
88084
 
88077
- var apl = /*#__PURE__*/_mergeNamespaces({
88085
+ var avisynth = /*#__PURE__*/_mergeNamespaces({
88078
88086
  __proto__: null,
88079
- 'default': aplExports
88080
- }, [aplExports]);
88087
+ 'default': avisynthExports
88088
+ }, [avisynthExports]);
88081
88089
 
88082
88090
  var avroIdlExports = requireAvroIdl();
88083
88091