@bigbinary/neeto-site-blocks 1.8.17 → 1.8.18

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.cjs.js CHANGED
@@ -14600,7 +14600,7 @@ var useElementClick = function useElementClick(_ref) {
14600
14600
  event.preventDefault();
14601
14601
  if (!id) return;
14602
14602
  setTimeout(function () {
14603
- var accordion = document.querySelector("[data-accordion-id=".concat(id.replace(/-[^-]+$/, ""), "]"));
14603
+ var accordion = document.querySelector("[data-accordion-id=".concat(id === null || id === void 0 ? void 0 : id.replace(/-[^-]+$/, ""), "]"));
14604
14604
  var element = document.querySelector("[data-element-id=".concat(id, "]"));
14605
14605
  var card = document.querySelector("[data-highlight-id=".concat(id, "]"));
14606
14606
 
@@ -14647,7 +14647,7 @@ var useElementClick = function useElementClick(_ref) {
14647
14647
  var handleTitleClick = function handleTitleClick() {
14648
14648
  setTimeout(function () {
14649
14649
  if (!document) return;
14650
- var accordion = document.querySelector("[data-accordion-id=".concat(id.replace(/-[^-]+$/, ""), "]"));
14650
+ var accordion = document.querySelector("[data-accordion-id=".concat(id === null || id === void 0 ? void 0 : id.replace(/-[^-]+$/, ""), "]"));
14651
14651
  var inputWrapper = accordion === null || accordion === void 0 ? void 0 : accordion.querySelector(".neeto-ui-input");
14652
14652
  var card = document.querySelector("[data-highlight-id=".concat(id, "]"));
14653
14653
  var element = document.querySelector("[data-element-id=".concat(id, "]"));
@@ -14703,7 +14703,7 @@ var useElementClick = function useElementClick(_ref) {
14703
14703
  event.preventDefault();
14704
14704
  setTimeout(function () {
14705
14705
  if (neetoCist.isPresent(index)) {
14706
- var accordion = document.querySelector("[data-accordion-id=".concat(id.replace(/-[^-]+$/, ""), "]"));
14706
+ var accordion = document.querySelector("[data-accordion-id=".concat(id === null || id === void 0 ? void 0 : id.replace(/-[^-]+$/, ""), "]"));
14707
14707
  if (!accordion) return;
14708
14708
  accordion.scrollIntoView({
14709
14709
  behavior: "smooth",