@next-core/brick-kit 2.168.1 → 2.169.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/index.esm.js CHANGED
@@ -1675,7 +1675,7 @@ try {
1675
1675
  var EventTarget$1 = self.EventTarget;
1676
1676
 
1677
1677
  /** @internal */
1678
- function looseCheckIf(ifContainer, context) {
1678
+ function looseCheckIf$1(ifContainer, context) {
1679
1679
  return !hasOwnProperty(ifContainer, "if") || _looseCheckIf(ifContainer.if, context, computeRealValue);
1680
1680
  }
1681
1681
 
@@ -1999,7 +1999,7 @@ function resolveNormalStoryboardContext(_x5, _x6, _x7, _x8) {
1999
1999
  function _resolveNormalStoryboardContext() {
2000
2000
  _resolveNormalStoryboardContext = _asyncToGenerator$3(function* (contextConf, mergedContext, storyboardContextWrapper, brick) {
2001
2001
  yield storyboardContextWrapper.waitForUsedContext(contextConf.if);
2002
- if (!looseCheckIf(contextConf, mergedContext)) {
2002
+ if (!looseCheckIf$1(contextConf, mergedContext)) {
2003
2003
  return false;
2004
2004
  }
2005
2005
  var isTemplateState = !!storyboardContextWrapper.tplContextId;
@@ -2009,7 +2009,7 @@ function _resolveNormalStoryboardContext() {
2009
2009
  if (value === undefined) {
2010
2010
  if (contextConf.resolve) {
2011
2011
  yield storyboardContextWrapper.waitForUsedContext(contextConf.resolve.if);
2012
- if (looseCheckIf(contextConf.resolve, mergedContext)) {
2012
+ if (looseCheckIf$1(contextConf.resolve, mergedContext)) {
2013
2013
  load = /*#__PURE__*/function () {
2014
2014
  var _ref = _asyncToGenerator$3(function* (options) {
2015
2015
  var valueConf = {};
@@ -2044,7 +2044,7 @@ function _resolveNormalStoryboardContext() {
2044
2044
  return _resolveNormalStoryboardContext.apply(this, arguments);
2045
2045
  }
2046
2046
  function syncResolveStoryboardContext(contextConf, mergedContext, storyboardContextWrapper, brick) {
2047
- if (!looseCheckIf(contextConf, mergedContext)) {
2047
+ if (!looseCheckIf$1(contextConf, mergedContext)) {
2048
2048
  return false;
2049
2049
  }
2050
2050
  if (contextConf.resolve) {
@@ -5881,7 +5881,41 @@ function isExecuteCustomHandler(handler) {
5881
5881
  function isSetPropsCustomHandler(handler) {
5882
5882
  return !!handler.properties;
5883
5883
  }
5884
+ function isConditionalEventHandler(handler) {
5885
+ return !!handler.then;
5886
+ }
5887
+ function looseCheckIf(handler, context, runtimeBrick) {
5888
+ if (!looseCheckIf$1(handler, context)) {
5889
+ var elseHandler = handler.else;
5890
+ if (elseHandler) {
5891
+ if (Array.isArray(elseHandler)) {
5892
+ elseHandler.forEach(action => listenerFactory(action, context, runtimeBrick)(context.event));
5893
+ } else {
5894
+ listenerFactory(elseHandler, context, runtimeBrick)(context.event);
5895
+ }
5896
+ }
5897
+ return false;
5898
+ }
5899
+ return true;
5900
+ }
5901
+ function runConditionalEventHandler(handler, context, runtimeBrick) {
5902
+ return event => {
5903
+ if (!looseCheckIf(handler, _objectSpread(_objectSpread({}, context), {}, {
5904
+ event: event
5905
+ }), runtimeBrick)) {
5906
+ return;
5907
+ }
5908
+ if (Array.isArray(handler.then)) {
5909
+ handler.then.forEach(action => listenerFactory(action, context, runtimeBrick)(event));
5910
+ } else {
5911
+ listenerFactory(handler.then, context, runtimeBrick)(event);
5912
+ }
5913
+ };
5914
+ }
5884
5915
  function listenerFactory(handler, context, runtimeBrick) {
5916
+ if (isConditionalEventHandler(handler)) {
5917
+ return runConditionalEventHandler(handler, context, runtimeBrick);
5918
+ }
5885
5919
  if (isBuiltinHandler(handler)) {
5886
5920
  var method = handler.action.split(".")[1];
5887
5921
  switch (handler.action) {
@@ -5895,31 +5929,31 @@ function listenerFactory(handler, context, runtimeBrick) {
5895
5929
  case "history.goForward":
5896
5930
  case "history.reload":
5897
5931
  case "history.unblock":
5898
- return builtinHistoryListenerFactory(method, handler.args, handler, handler.callback, context);
5932
+ return builtinHistoryListenerFactory(method, handler.args, handler, handler.callback, context, runtimeBrick);
5899
5933
  case "segue.push":
5900
5934
  case "segue.replace":
5901
- return builtinSegueListenerFactory(method, handler.args, handler, handler.callback, context);
5935
+ return builtinSegueListenerFactory(method, handler.args, handler, handler.callback, context, runtimeBrick);
5902
5936
  case "alias.push":
5903
5937
  case "alias.replace":
5904
- return builtinAliasListenerFactory(method, handler.args, handler, context);
5938
+ return builtinAliasListenerFactory(method, handler.args, handler, context, runtimeBrick);
5905
5939
  case "legacy.go":
5906
- return builtinIframeListenerFactory(handler.args, handler, context);
5940
+ return builtinIframeListenerFactory(handler.args, handler, context, runtimeBrick);
5907
5941
  case "window.open":
5908
- return builtinWindowListenerFactory(handler.args, handler, context);
5942
+ return builtinWindowListenerFactory(handler.args, handler, context, runtimeBrick);
5909
5943
  case "location.reload":
5910
5944
  case "location.assign":
5911
- return builtinLocationListenerFactory(method, handler.args, handler, context);
5945
+ return builtinLocationListenerFactory(method, handler.args, handler, context, runtimeBrick);
5912
5946
  case "localStorage.setItem":
5913
5947
  case "localStorage.removeItem":
5914
- return builtinWebStorageListenerFactory("local", method, handler.args, handler, context);
5948
+ return builtinWebStorageListenerFactory("local", method, handler.args, handler, context, runtimeBrick);
5915
5949
  case "sessionStorage.setItem":
5916
5950
  case "sessionStorage.removeItem":
5917
- return builtinWebStorageListenerFactory("session", method, handler.args, handler, context);
5951
+ return builtinWebStorageListenerFactory("session", method, handler.args, handler, context, runtimeBrick);
5918
5952
  case "event.preventDefault":
5919
5953
  return event => {
5920
5954
  if (!looseCheckIf(handler, _objectSpread(_objectSpread({}, context), {}, {
5921
5955
  event
5922
- }))) {
5956
+ }), runtimeBrick)) {
5923
5957
  return;
5924
5958
  }
5925
5959
  event.preventDefault();
@@ -5928,17 +5962,17 @@ function listenerFactory(handler, context, runtimeBrick) {
5928
5962
  case "console.error":
5929
5963
  case "console.warn":
5930
5964
  case "console.info":
5931
- return builtinConsoleListenerFactory(method, handler.args, handler, context);
5965
+ return builtinConsoleListenerFactory(method, handler.args, handler, context, runtimeBrick);
5932
5966
  case "message.success":
5933
5967
  case "message.error":
5934
5968
  case "message.info":
5935
5969
  case "message.warn":
5936
- return builtinMessageListenerFactory(method, handler.args, handler, context);
5970
+ return builtinMessageListenerFactory(method, handler.args, handler, context, runtimeBrick);
5937
5971
  case "handleHttpError":
5938
5972
  return event => {
5939
5973
  if (!looseCheckIf(handler, _objectSpread(_objectSpread({}, context), {}, {
5940
5974
  event
5941
- }))) {
5975
+ }), runtimeBrick)) {
5942
5976
  return;
5943
5977
  }
5944
5978
  handleHttpError(event.detail);
@@ -5947,15 +5981,15 @@ function listenerFactory(handler, context, runtimeBrick) {
5947
5981
  case "context.replace":
5948
5982
  case "context.refresh":
5949
5983
  case "context.load":
5950
- return builtinContextListenerFactory(method, handler.args, handler, handler.callback, context);
5984
+ return builtinContextListenerFactory(method, handler.args, handler, handler.callback, context, runtimeBrick);
5951
5985
  case "state.update":
5952
5986
  case "state.refresh":
5953
5987
  case "state.load":
5954
- return builtinStateListenerFactory(method, handler.args, handler, handler.callback, context);
5988
+ return builtinStateListenerFactory(method, handler.args, handler, handler.callback, context, runtimeBrick);
5955
5989
  case "formstate.update":
5956
- return builtinFormStateListenerFactory(method, handler.args, handler, handler.callback, context);
5990
+ return builtinFormStateListenerFactory(method, handler.args, handler, handler.callback, context, runtimeBrick);
5957
5991
  case "tpl.dispatchEvent":
5958
- return builtinTplDispatchEventFactory(handler.args, handler, context);
5992
+ return builtinTplDispatchEventFactory(handler.args, handler, context, runtimeBrick);
5959
5993
  case "message.subscribe":
5960
5994
  case "message.unsubscribe":
5961
5995
  return builtinWebSocketListenerFactory(runtimeBrick, method, handler.args, handler, handler.callback, context);
@@ -5964,19 +5998,19 @@ function listenerFactory(handler, context, runtimeBrick) {
5964
5998
  return event => {
5965
5999
  if (!looseCheckIf(handler, _objectSpread(_objectSpread({}, context), {}, {
5966
6000
  event
5967
- }))) {
6001
+ }), runtimeBrick)) {
5968
6002
  return;
5969
6003
  }
5970
6004
  applyTheme(handler.action === "theme.setDarkTheme" ? "dark" : "light");
5971
6005
  };
5972
6006
  case "theme.setTheme":
5973
- return builtinThemeListenerFactory(handler.args, handler, context);
6007
+ return builtinThemeListenerFactory(handler.args, handler, context, runtimeBrick);
5974
6008
  case "mode.setDashboardMode":
5975
6009
  case "mode.setDefaultMode":
5976
6010
  return event => {
5977
6011
  if (!looseCheckIf(handler, _objectSpread(_objectSpread({}, context), {}, {
5978
6012
  event
5979
- }))) {
6013
+ }), runtimeBrick)) {
5980
6014
  return;
5981
6015
  }
5982
6016
  applyMode(handler.action === "mode.setDashboardMode" ? "dashboard" : "default");
@@ -5985,7 +6019,7 @@ function listenerFactory(handler, context, runtimeBrick) {
5985
6019
  return event => {
5986
6020
  if (!looseCheckIf(handler, _objectSpread(_objectSpread({}, context), {}, {
5987
6021
  event
5988
- }))) {
6022
+ }), runtimeBrick)) {
5989
6023
  return;
5990
6024
  }
5991
6025
  clearMenuTitleCache();
@@ -5994,15 +6028,15 @@ function listenerFactory(handler, context, runtimeBrick) {
5994
6028
  return event => {
5995
6029
  if (!looseCheckIf(handler, _objectSpread(_objectSpread({}, context), {}, {
5996
6030
  event
5997
- }))) {
6031
+ }), runtimeBrick)) {
5998
6032
  return;
5999
6033
  }
6000
6034
  clearMenuCache();
6001
6035
  };
6002
6036
  case "analytics.event":
6003
- return builtinAnalyticsListenerFactory(handler.args, handler, context);
6037
+ return builtinAnalyticsListenerFactory(handler.args, handler, context, runtimeBrick);
6004
6038
  case "preview.debug":
6005
- return builtinFormDebugListenerFactory(handler.args, handler, context);
6039
+ return builtinFormDebugListenerFactory(handler.args, handler, context, runtimeBrick);
6006
6040
  default:
6007
6041
  return () => {
6008
6042
  // eslint-disable-next-line no-console
@@ -6022,7 +6056,7 @@ function usingProviderFactory(handler, context, runtimeBrick) {
6022
6056
  var _ref2 = _asyncToGenerator$3(function* (event) {
6023
6057
  if (!looseCheckIf(handler, _objectSpread(_objectSpread({}, context), {}, {
6024
6058
  event
6025
- }))) {
6059
+ }), runtimeBrick)) {
6026
6060
  return;
6027
6061
  }
6028
6062
  try {
@@ -6053,11 +6087,11 @@ function getFormContext(formContextId) {
6053
6087
  }
6054
6088
  return getCustomFormContext(formContextId);
6055
6089
  }
6056
- function builtinTplDispatchEventFactory(args, ifContainer, context) {
6090
+ function builtinTplDispatchEventFactory(args, ifContainer, context, runtimeBrick) {
6057
6091
  return function (event) {
6058
6092
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6059
6093
  event
6060
- }))) {
6094
+ }), runtimeBrick)) {
6061
6095
  return;
6062
6096
  }
6063
6097
  var tpl = getTplContext(context.tplContextId).getBrick().element;
@@ -6065,11 +6099,11 @@ function builtinTplDispatchEventFactory(args, ifContainer, context) {
6065
6099
  tpl.dispatchEvent(new CustomEvent(type, init));
6066
6100
  };
6067
6101
  }
6068
- function builtinContextListenerFactory(method, args, ifContainer, callback, context) {
6102
+ function builtinContextListenerFactory(method, args, ifContainer, callback, context, runtimeBrick) {
6069
6103
  return function (event) {
6070
6104
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6071
6105
  event
6072
- }))) {
6106
+ }), runtimeBrick)) {
6073
6107
  return;
6074
6108
  }
6075
6109
  var storyboardContext = _internalApiGetStoryboardContextWrapper();
@@ -6077,11 +6111,11 @@ function builtinContextListenerFactory(method, args, ifContainer, callback, cont
6077
6111
  storyboardContext.updateValue(name, value, method, callback);
6078
6112
  };
6079
6113
  }
6080
- function builtinStateListenerFactory(method, args, ifContainer, callback, context) {
6114
+ function builtinStateListenerFactory(method, args, ifContainer, callback, context, runtimeBrick) {
6081
6115
  return function (event) {
6082
6116
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6083
6117
  event
6084
- }))) {
6118
+ }), runtimeBrick)) {
6085
6119
  return;
6086
6120
  }
6087
6121
  var tplContext = getTplContext(context.tplContextId);
@@ -6089,11 +6123,11 @@ function builtinStateListenerFactory(method, args, ifContainer, callback, contex
6089
6123
  tplContext.state.updateValue(name, value, method === "update" ? "replace" : method, callback);
6090
6124
  };
6091
6125
  }
6092
- function builtinFormStateListenerFactory(method, args, ifContainer, callback, context) {
6126
+ function builtinFormStateListenerFactory(method, args, ifContainer, callback, context, runtimeBrick) {
6093
6127
  return function (event) {
6094
6128
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6095
6129
  event
6096
- }))) {
6130
+ }), runtimeBrick)) {
6097
6131
  return;
6098
6132
  }
6099
6133
  var formContext = getFormContext(context.formContextId);
@@ -6101,11 +6135,11 @@ function builtinFormStateListenerFactory(method, args, ifContainer, callback, co
6101
6135
  formContext.formState.updateValue(name, value, method === "update" ? "replace" : method, callback);
6102
6136
  };
6103
6137
  }
6104
- function builtinLocationListenerFactory(method, args, ifContainer, context) {
6138
+ function builtinLocationListenerFactory(method, args, ifContainer, context, runtimeBrick) {
6105
6139
  return function (event) {
6106
6140
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6107
6141
  event
6108
- }))) {
6142
+ }), runtimeBrick)) {
6109
6143
  return;
6110
6144
  }
6111
6145
  if (method === "assign") {
@@ -6116,11 +6150,11 @@ function builtinLocationListenerFactory(method, args, ifContainer, context) {
6116
6150
  }
6117
6151
  };
6118
6152
  }
6119
- function builtinSegueListenerFactory(method, args, ifContainer, callback, context) {
6153
+ function builtinSegueListenerFactory(method, args, ifContainer, callback, context, runtimeBrick) {
6120
6154
  return function (event) {
6121
6155
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6122
6156
  event
6123
- }))) {
6157
+ }), runtimeBrick)) {
6124
6158
  return;
6125
6159
  }
6126
6160
  var {
@@ -6138,11 +6172,11 @@ function builtinSegueListenerFactory(method, args, ifContainer, callback, contex
6138
6172
  } : undefined);
6139
6173
  };
6140
6174
  }
6141
- function builtinAliasListenerFactory(method, args, ifContainer, context) {
6175
+ function builtinAliasListenerFactory(method, args, ifContainer, context, runtimeBrick) {
6142
6176
  return function (event) {
6143
6177
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6144
6178
  event
6145
- }))) {
6179
+ }), runtimeBrick)) {
6146
6180
  return;
6147
6181
  }
6148
6182
  var {
@@ -6155,7 +6189,7 @@ function builtinWebSocketListenerFactory(runtimeBrick, method, args, ifContainer
6155
6189
  return function (event) {
6156
6190
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6157
6191
  event
6158
- }))) {
6192
+ }), runtimeBrick)) {
6159
6193
  return;
6160
6194
  }
6161
6195
  var [channel, messageTopic] = argsFactory(args, context, event);
@@ -6172,7 +6206,7 @@ function builtinWebSocketListenerFactory(runtimeBrick, method, args, ifContainer
6172
6206
  }));
6173
6207
  };
6174
6208
  }
6175
- function builtinIframeListenerFactory(args, ifContainer, context) {
6209
+ function builtinIframeListenerFactory(args, ifContainer, context, runtimeBrick) {
6176
6210
  var legacyIframeMountPoint = document.querySelector("#legacy-iframe-mount-point");
6177
6211
  var postMessage = url => {
6178
6212
  var iframe = legacyIframeMountPoint.firstChild;
@@ -6186,30 +6220,30 @@ function builtinIframeListenerFactory(args, ifContainer, context) {
6186
6220
  return function (event) {
6187
6221
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6188
6222
  event
6189
- }))) {
6223
+ }), runtimeBrick)) {
6190
6224
  return;
6191
6225
  }
6192
6226
  var [url] = argsFactory(args, context, event);
6193
6227
  postMessage(url);
6194
6228
  };
6195
6229
  }
6196
- function builtinWindowListenerFactory(args, ifContainer, context) {
6230
+ function builtinWindowListenerFactory(args, ifContainer, context, runtimeBrick) {
6197
6231
  return function (event) {
6198
6232
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6199
6233
  event
6200
- }))) {
6234
+ }), runtimeBrick)) {
6201
6235
  return;
6202
6236
  }
6203
6237
  var [url, target, features] = argsFactory(args, context, event);
6204
6238
  window.open(url, target || "_self", features);
6205
6239
  };
6206
6240
  }
6207
- function builtinAnalyticsListenerFactory(args, ifContainer, context) {
6241
+ function builtinAnalyticsListenerFactory(args, ifContainer, context, runtimeBrick) {
6208
6242
  return function (event) {
6209
6243
  var _runtime$getCurrentAp, _runtime$getCurrentRo;
6210
6244
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6211
6245
  event
6212
- }))) {
6246
+ }), runtimeBrick)) {
6213
6247
  return;
6214
6248
  }
6215
6249
  var [action, data] = argsFactory(args, context, event);
@@ -6220,11 +6254,11 @@ function builtinAnalyticsListenerFactory(args, ifContainer, context) {
6220
6254
  }, data));
6221
6255
  };
6222
6256
  }
6223
- function builtinThemeListenerFactory(args, ifContainer, context) {
6257
+ function builtinThemeListenerFactory(args, ifContainer, context, runtimeBrick) {
6224
6258
  return function (event) {
6225
6259
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6226
6260
  event
6227
- }))) {
6261
+ }), runtimeBrick)) {
6228
6262
  return;
6229
6263
  }
6230
6264
  var [theme] = argsFactory(args, context, event);
@@ -6233,9 +6267,9 @@ function builtinThemeListenerFactory(args, ifContainer, context) {
6233
6267
  }
6234
6268
  function customListenerFactory(handler, ifContainer, context, runtimeBrick) {
6235
6269
  return function (event) {
6236
- if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6270
+ if (!looseCheckIf(handler, _objectSpread(_objectSpread({}, context), {}, {
6237
6271
  event
6238
- }))) {
6272
+ }), runtimeBrick)) {
6239
6273
  return;
6240
6274
  }
6241
6275
  var targets = [];
@@ -6382,11 +6416,11 @@ function _brickCallback() {
6382
6416
  });
6383
6417
  return _brickCallback.apply(this, arguments);
6384
6418
  }
6385
- function builtinHistoryListenerFactory(method, args, ifContainer, callback, context) {
6419
+ function builtinHistoryListenerFactory(method, args, ifContainer, callback, context, runtimeBrick) {
6386
6420
  return function (event) {
6387
6421
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6388
6422
  event
6389
- }))) {
6423
+ }), runtimeBrick)) {
6390
6424
  return;
6391
6425
  }
6392
6426
  var baseArgsLength = 0;
@@ -6430,11 +6464,11 @@ function builtinHistoryListenerFactory(method, args, ifContainer, callback, cont
6430
6464
  getHistory()[overrideMethod](...computedArgs);
6431
6465
  };
6432
6466
  }
6433
- function builtinConsoleListenerFactory(method, args, ifContainer, context) {
6467
+ function builtinConsoleListenerFactory(method, args, ifContainer, context, runtimeBrick) {
6434
6468
  return function (event) {
6435
6469
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6436
6470
  event
6437
- }))) {
6471
+ }), runtimeBrick)) {
6438
6472
  return;
6439
6473
  }
6440
6474
  // eslint-disable-next-line no-console
@@ -6443,11 +6477,11 @@ function builtinConsoleListenerFactory(method, args, ifContainer, context) {
6443
6477
  }));
6444
6478
  };
6445
6479
  }
6446
- function builtinMessageListenerFactory(method, args, ifContainer, context) {
6480
+ function builtinMessageListenerFactory(method, args, ifContainer, context, runtimeBrick) {
6447
6481
  return function (event) {
6448
6482
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6449
6483
  event
6450
- }))) {
6484
+ }), runtimeBrick)) {
6451
6485
  return;
6452
6486
  }
6453
6487
  var processArg = argsFactory(args, context, event);
@@ -6460,11 +6494,11 @@ function builtinMessageListenerFactory(method, args, ifContainer, context) {
6460
6494
  message[method](...processArg);
6461
6495
  };
6462
6496
  }
6463
- function builtinWebStorageListenerFactory(storageType, method, args, ifContainer, context) {
6497
+ function builtinWebStorageListenerFactory(storageType, method, args, ifContainer, context, runtimeBrick) {
6464
6498
  return function (event) {
6465
6499
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6466
6500
  event
6467
- }))) {
6501
+ }), runtimeBrick)) {
6468
6502
  return;
6469
6503
  }
6470
6504
  var storage = storageType === "local" ? localStorage : sessionStorage;
@@ -6478,11 +6512,11 @@ function builtinWebStorageListenerFactory(storageType, method, args, ifContainer
6478
6512
  }
6479
6513
  };
6480
6514
  }
6481
- function builtinFormDebugListenerFactory(args, ifContainer, context) {
6515
+ function builtinFormDebugListenerFactory(args, ifContainer, context, runtimeBrick) {
6482
6516
  return function (event) {
6483
6517
  if (!looseCheckIf(ifContainer, _objectSpread(_objectSpread({}, context), {}, {
6484
6518
  event
6485
- }))) {
6519
+ }), runtimeBrick)) {
6486
6520
  return;
6487
6521
  }
6488
6522
  window.parent.postMessage({
@@ -10166,7 +10200,7 @@ class LocationContext {
10166
10200
  var match = matchPath(_this2.location.pathname, {
10167
10201
  path: computedPath,
10168
10202
  exact: route.exact,
10169
- checkIf: context => looseCheckIf(route, context),
10203
+ checkIf: context => looseCheckIf$1(route, context),
10170
10204
  getContext: match => _this2.getContext({
10171
10205
  match
10172
10206
  })
@@ -10422,7 +10456,7 @@ class LocationContext {
10422
10456
  yield _this8.resolver.resolveOne("reference", ifChecked, ifConf);
10423
10457
  return !hasOwnProperty(ifConf, "if") || !!ifConf.if;
10424
10458
  }
10425
- return looseCheckIf(ifContainer, context);
10459
+ return looseCheckIf$1(ifContainer, context);
10426
10460
  })();
10427
10461
  }
10428
10462
  preCheckPermissions(container, context) {
@@ -10978,7 +11012,7 @@ class Resolver {
10978
11012
  return function (_x) {
10979
11013
  return _ref.apply(this, arguments);
10980
11014
  };
10981
- }()))).filter(r => looseCheckIf(r, context));
11015
+ }()))).filter(r => looseCheckIf$1(r, context));
10982
11016
  yield Promise.all(useResolves.map(resolveConf => _this.resolveOne("brick", resolveConf, brickConf, brick, context)));
10983
11017
  if (brickConf.template) {
10984
11018
  brickConf.$$resolved = true;
@@ -14550,5 +14584,5 @@ function constructEventListener(handler) {
14550
14584
  });
14551
14585
  }
14552
14586
 
14553
- export { BrickAsComponent, BrickWrapper, DisplayByFeatureFlags, EasyopsEmpty, ErrorBoundary, FeatureFlagsProvider, ForwardRefSingleBrickAsComponent, ModalElement, SingleBrickAsComponent, StoryboardFunctionRegistryFactory, UpdatingElement, abortController, applyTheme, authenticate, batchSetAppsLocalTheme, checkIf, checkIfByTransform, constructEventListener, createHistory, createRuntime, developHelper, doTransform, event, getAuth, getCssPropertyValue, getCurrentTheme, getHistory, getMockInfo, getRealValue, getRuntime, getRuntimeMisc, handleHttpError, httpErrorToString, i18nText, initI18n, isLoggedIn, logout, looseCheckIf, looseCheckIfByTransform, looseCheckIfOfComputed, method, preprocessTransformProperties, property, reTransformForDevtools, renderEasyopsEmpty, transformElementProperties, transformIntermediateData, transformProperties, useApplyPageTitle, useCurrentApp, useCurrentMode, useCurrentTheme, useFeatureFlags, useLocation, useProvider, useRecentApps };
14587
+ export { BrickAsComponent, BrickWrapper, DisplayByFeatureFlags, EasyopsEmpty, ErrorBoundary, FeatureFlagsProvider, ForwardRefSingleBrickAsComponent, ModalElement, SingleBrickAsComponent, StoryboardFunctionRegistryFactory, UpdatingElement, abortController, applyTheme, authenticate, batchSetAppsLocalTheme, checkIf, checkIfByTransform, constructEventListener, createHistory, createRuntime, developHelper, doTransform, event, getAuth, getCssPropertyValue, getCurrentTheme, getHistory, getMockInfo, getRealValue, getRuntime, getRuntimeMisc, handleHttpError, httpErrorToString, i18nText, initI18n, isLoggedIn, logout, looseCheckIf$1 as looseCheckIf, looseCheckIfByTransform, looseCheckIfOfComputed, method, preprocessTransformProperties, property, reTransformForDevtools, renderEasyopsEmpty, transformElementProperties, transformIntermediateData, transformProperties, useApplyPageTitle, useCurrentApp, useCurrentMode, useCurrentTheme, useFeatureFlags, useLocation, useProvider, useRecentApps };
14554
14588
  //# sourceMappingURL=index.esm.js.map