This commit is contained in:
2026-04-01 13:56:27 +02:00
parent fd0990544a
commit 92b7a2a95e
4 changed files with 26 additions and 186 deletions

4
.vscode/ftp-kr.json vendored
View File

@@ -17,6 +17,8 @@
"/.paul",
"/docs",
".env",
"CLAUDE.md"
"CLAUDE.md",
"/.serena",
"/.playwright-mcp"
]
}

View File

@@ -1,77 +1,6 @@
{
"ftp://host117523.hostido.net.pl@www@carei.pagedev.pl": {
"public_html": {
".claude": {
"memory": {}
},
"docs": {
"Oferta 37 Softra_Rent_API - zaaczni k Specyfikacja_Rent_RESTAPI_1_15.pdf": {
"type": "-",
"size": 728052,
"lmtime": 1774264175010,
"modified": false
},
"rent-api-00-wstep-i-zasady.md": {
"type": "-",
"size": 6574,
"lmtime": 1774264560325,
"modified": false
},
"rent-api-01-autoryzacja-i-flota.md": {
"type": "-",
"size": 6347,
"lmtime": 1774264560327,
"modified": false
},
"rent-api-02-klienci-i-konta.md": {
"type": "-",
"size": 10621,
"lmtime": 1774264560329,
"modified": false
},
"rent-api-03-rezerwacje-i-platnosci.md": {
"type": "-",
"size": 12135,
"lmtime": 1774264560332,
"modified": false
},
"rent-api-04-faktury-i-historia.md": {
"type": "-",
"size": 2670,
"lmtime": 1774264560333,
"modified": false
},
"rent-api-05-slowniki-i-uzgodnienia.md": {
"type": "-",
"size": 4092,
"lmtime": 1774264560334,
"modified": false
},
"_rent_api_extracted_fixed.txt": {
"type": "-",
"size": 51911,
"lmtime": 1774264303315,
"modified": false
},
"_rent_api_extracted_repaired.txt": {
"type": "-",
"size": 43767,
"lmtime": 1774264510964,
"modified": false
},
"_rent_api_extracted.txt": {
"type": "-",
"size": 51911,
"lmtime": 1774264285972,
"modified": false
},
"rent-api-transkrypcja-index.md": {
"type": "-",
"size": 553,
"lmtime": 1774264560335,
"modified": false
}
},
".env": {
"type": "-",
"size": 95,
@@ -102,119 +31,6 @@
"lmtime": 0,
"modified": false
},
".paul": {
"HANDOFF-2026-03-25.md": {
"type": "-",
"size": 3911,
"lmtime": 0,
"modified": false
},
"HANDOFF-2026-03-25-phase3.md": {
"type": "-",
"size": 3672,
"lmtime": 1774440974369,
"modified": false
},
"HANDOFF-2026-03-25-phase5.md": {
"type": "-",
"size": 4436,
"lmtime": 1774453504251,
"modified": false
},
"handoffs": {
"archive": {
"HANDOFF-2026-03-25.md": {
"type": "-",
"size": 3911,
"lmtime": 1774394933000,
"modified": false
},
"HANDOFF-2026-03-25-phase3.md": {
"type": "-",
"size": 3672,
"lmtime": 1774440974369,
"modified": false
},
"HANDOFF-2026-03-25-phase5.md": {
"type": "-",
"size": 4436,
"lmtime": 1774453504000,
"modified": false
}
}
},
"phases": {
"01-reservation-form-plugin": {},
"02-form-ui-step1": {
"02-01-SUMMARY.md": {
"type": "-",
"size": 6067,
"lmtime": 1774426464638,
"modified": false
}
},
"03-form-submit-booking": {
"03-01-PLAN.md": {
"type": "-",
"size": 17170,
"lmtime": 1774429395933,
"modified": false
},
"03-01-SUMMARY.md": {
"type": "-",
"size": 5371,
"lmtime": 1774440223363,
"modified": false
}
},
"04-polish-testing": {
"04-01-PLAN.md": {
"type": "-",
"size": 12463,
"lmtime": 1774444454151,
"modified": false
},
"04-01-SUMMARY.md": {
"type": "-",
"size": 5317,
"lmtime": 1774447383859,
"modified": false
}
},
"05-admin-panel": {
"05-01-PLAN.md": {
"type": "-",
"size": 11298,
"lmtime": 1774447717369,
"modified": false
},
"05-01-SUMMARY.md": {
"type": "-",
"size": 4697,
"lmtime": 1774456664870,
"modified": false
}
}
},
"PROJECT.md": {
"type": "-",
"size": 3246,
"lmtime": 1774456701930,
"modified": false
},
"ROADMAP.md": {
"type": "-",
"size": 1862,
"lmtime": 1774456710745,
"modified": false
},
"STATE.md": {
"type": "-",
"size": 1212,
"lmtime": 1774456724909,
"modified": false
}
},
".playwright-mcp": {},
"readme.html": {
"type": "-",

View File

@@ -166,6 +166,26 @@
initDateLabels();
dataLoaded = true;
}
// Pre-select segment from trigger attribute
var presetSegment = triggerBtn && triggerBtn.getAttribute('segment');
if (presetSegment && segmentSelect) {
var trySet = function () {
if (segmentSelect.querySelector('option[value="' + presetSegment + '"]')) {
segmentSelect.value = presetSegment;
segmentSelect.dispatchEvent(new Event('change'));
return true;
}
return false;
};
if (!trySet()) {
var attempts = 0;
var iv = setInterval(function () {
if (trySet() || ++attempts > 20) clearInterval(iv);
}, 100);
}
}
setTimeout(function () {
if (segmentSelect) segmentSelect.focus();
}, 350);

View File

@@ -58,6 +58,7 @@ class Carei_Reservation_Widget extends \Elementor\Widget_Base {
<div class="carei-modal-overlay" data-carei-modal role="dialog" aria-modal="true" aria-labelledby="carei-modal-title">
<div class="carei-modal">
<div class="carei-modal__scroll">
<span role="button" tabindex="0" class="carei-modal-close" data-carei-close-modal aria-label="Zamknij formularz">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M15 5L5 15M5 5l10 10" stroke="currentColor" stroke-width="1.2" stroke-linecap="round"/>
@@ -149,7 +150,7 @@ class Carei_Reservation_Widget extends \Elementor\Widget_Base {
</div>
</div>
<div class="carei-form__divider"><span>Ubezpieczenie</span></div>
<div class="carei-form__divider"><span>Pakiety ochronne</span></div>
<div class="carei-form__section">
<div class="carei-form__row" id="carei-insurance-container">
<!-- Dynamicznie z API pricelist -->
@@ -292,6 +293,7 @@ class Carei_Reservation_Widget extends \Elementor\Widget_Base {
<button type="button" class="carei-success__close" id="carei-success-close">Zamknij</button>
</div>
</div><!-- .carei-modal__scroll -->
</div>
</div>
<?php