@heycater/qualification-funnel 1.19.3 → 1.19.5
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/heycater-funnel.iife.js +90 -90
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +12 -3
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -4273,7 +4273,11 @@ const useIsGb = () => {
|
|
|
4273
4273
|
};
|
|
4274
4274
|
const getIsGb = (query) => {
|
|
4275
4275
|
if (typeof window !== "undefined") {
|
|
4276
|
-
|
|
4276
|
+
const pathname = window.location.pathname.toLowerCase();
|
|
4277
|
+
if (pathname.includes("london")) {
|
|
4278
|
+
return true;
|
|
4279
|
+
}
|
|
4280
|
+
if (pathname.includes("en-uk")) {
|
|
4277
4281
|
return true;
|
|
4278
4282
|
}
|
|
4279
4283
|
}
|
|
@@ -8009,6 +8013,7 @@ function setQuestion(state, stepId) {
|
|
|
8009
8013
|
return state;
|
|
8010
8014
|
}
|
|
8011
8015
|
function toNextStep(state, onFunnelFinished) {
|
|
8016
|
+
var _a2;
|
|
8012
8017
|
if (state.status !== QUALIFICATION_STATUS.answering) {
|
|
8013
8018
|
return state;
|
|
8014
8019
|
}
|
|
@@ -8019,8 +8024,12 @@ function toNextStep(state, onFunnelFinished) {
|
|
|
8019
8024
|
const stepIndex = state.qualification.steps.findIndex(
|
|
8020
8025
|
(_step) => _step.id === step2.id
|
|
8021
8026
|
);
|
|
8022
|
-
|
|
8023
|
-
|
|
8027
|
+
let nextStepIndex = stepIndex + 1;
|
|
8028
|
+
while (nextStepIndex < state.qualification.steps.length && ((_a2 = state.qualification.steps[nextStepIndex]) == null ? void 0 : _a2.disabled)) {
|
|
8029
|
+
nextStepIndex++;
|
|
8030
|
+
}
|
|
8031
|
+
const nextStep = state.qualification.steps[nextStepIndex];
|
|
8032
|
+
if (!nextStep) {
|
|
8024
8033
|
const funnelAnsweredState = {
|
|
8025
8034
|
...state,
|
|
8026
8035
|
status: "answered",
|