@xapp/form-widget 1.121.0 → 1.121.1

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.js CHANGED
@@ -1,3 +1,3 @@
1
- "use strict";var e=require("react/jsx-runtime"),n=require("react"),t=function(){return t=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},t.apply(this,arguments)};function r(e,n,t,r){return new(t||(t=Promise))(function(a,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function p(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(i,p)}s((r=r.apply(e,n||[])).next())})}function a(e,n){var t,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=p(0),i.throw=p(1),i.return=p(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function p(p){return function(s){return function(p){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,p[0]&&(o=0)),o;)try{if(t=1,r&&(a=2&p[0]?r.return:p[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,p[1])).done)return a;switch(r=0,a&&(p=[2&p[0],a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,r=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==p[0]&&2!==p[0])){o=0;continue}if(3===p[0]&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(6===p[0]&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=n.call(e,o)}catch(e){p=[6,e],r=0}finally{t=a=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,s])}}}function o(e,n,t){if(t||2===arguments.length)for(var r,a=0,o=n.length;a<o;a++)!r&&a in n||(r||(r=Array.prototype.slice.call(n,0,a)),r[a]=n[a]);return e.concat(r||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p=e,s=n,d=function(){return d=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},d.apply(this,arguments)};function l(e,n,t,r){return new(t||(t=Promise))(function(n,a){function o(e){try{p(r.next(e))}catch(e){a(e)}}function i(e){try{p(r.throw(e))}catch(e){a(e)}}function p(e){var r;e.done?n(e.value):(r=e.value,r instanceof t?r:new t(function(e){e(r)})).then(o,i)}p((r=r.apply(e,[])).next())})}function c(e,n){var t,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=p(0),i.throw=p(1),i.return=p(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function p(p){return function(s){return function(p){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,p[0]&&(o=0)),o;)try{if(t=1,r&&(a=2&p[0]?r.return:p[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,p[1])).done)return a;switch(r=0,a&&(p=[2&p[0],a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,r=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==p[0]&&2!==p[0])){o=0;continue}if(3===p[0]&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(6===p[0]&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=n.call(e,o)}catch(e){p=[6,e],r=0}finally{t=a=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,s])}}}function u(e,n,t){for(var r,a=0,o=n.length;a<o;a++)!r&&a in n||(r||(r=Array.prototype.slice.call(n,0,a)),r[a]=n[a]);return e.concat(r||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;["FAQ","INTENT","HISTORICAL"].reduce(function(e,n,t){return e[n]=t,e},{});var m=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],_=["gclid","gbraid","wbraid","msclkid","fbclid"],f=u(u([],m),_);var x={link_url:1e3,page_location:1e3};function h(e){return"string"==typeof e&&/^G-[A-Z0-9]{4,}$/i.test(e.trim())}function g(){return"undefined"!=typeof navigator&&!0===navigator.globalPrivacyControl}function v(e){if("undefined"==typeof window||"undefined"==typeof document)return!1;var n=window.google_tag_manager;return!!n&&Object.prototype.hasOwnProperty.call(n,e)&&function(e){var n=document.querySelectorAll("script[src*='/gtag/js']");return Array.from(n).some(function(n){var t;try{var r=new URL(n.src,window.location.href);return r.hostname.endsWith("googletagmanager.com")&&(null===(t=r.searchParams.get("id"))||void 0===t?void 0:t.toUpperCase())===e.toUpperCase()}catch(e){return!1}})}(e)}function b(e,n){var t;return n.slice(0,null!==(t=x[e])&&void 0!==t?t:100)}function y(e){var n=((null==e?void 0:e.content)||[]).filter(function(e){return"text"===e.type&&"string"==typeof e.text}).map(function(e){return e.text}).join("\n");if(null==e?void 0:e.isError)return{ok:!1,message:n};try{return JSON.parse(n)}catch(e){return{text:n}}}!function(){function e(e,n){this.mcpUrl=e,this.nextId=1,this.fetchImpl=n||("function"==typeof fetch?fetch:void 0)}e.prototype.callTool=function(e,n){return l(this,0,void 0,function(){var t,r;return c(this,function(a){switch(a.label){case 0:if("function"!=typeof this.fetchImpl)throw new Error("fetch is not available");return[4,this.fetchImpl(this.mcpUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:this.nextId++,method:"tools/call",params:{name:e,arguments:n}})})];case 1:if(!(t=a.sent()).ok)throw new Error("MCP endpoint answered ".concat(t.status));return[4,t.json()];case 2:if((r=a.sent()).error)throw new Error(r.error.message||"MCP error ".concat(r.error.code));return[2,y(r.result)]}})})}}(),u(u([],f),["st_source","srsltid","ref","source"]);var w=/^[a-z][a-z-]{0,31}$/;var F="data-xapp-scroll-lock",k="data-xapp-scroll-lock-restore",S=["position","top","left","right","width","overflow"];function T(e){var n=Number(e.getAttribute(F));return Number.isFinite(n)&&n>0?n:0}function C(){if("undefined"==typeof document||"undefined"==typeof window)return function(){};var e=document.body;if(0===T(e)){var n=function(e){var n=S.reduce(function(n,t){return n[t]=e.style.getPropertyValue(t),n},{});return{scrollY:window.scrollY||window.pageYOffset||0,inlineStyles:n}}(e);e.setAttribute(k,JSON.stringify(n)),e.style.position="fixed",e.style.top="-".concat(n.scrollY,"px"),e.style.left="0",e.style.right="0",e.style.width="100%",e.style.overflow="hidden"}e.setAttribute(F,String(T(e)+1));var t=!1;return function(){if(!t){t=!0;var n=T(e)-1;if(n>0)e.setAttribute(F,String(n));else if(!(n<0)){e.removeAttribute(F);var r=function(e){var n=e.getAttribute(k);e.removeAttribute(k);try{var t=JSON.parse(n||"");if(t&&"number"==typeof t.scrollY&&t.inlineStyles)return t}catch(e){}return{scrollY:0,inlineStyles:{}}}(e),a=r.scrollY,o=r.inlineStyles;S.forEach(function(n){o[n]?e.style.setProperty(n,o[n]):e.style.removeProperty(n)}),e.style.length||e.removeAttribute("style"),window.scrollTo(0,a)}}}}var D="--xapp-viewport-height",N="--xapp-viewport-offset-top",I="--xapp-keyboard-inset",R="data-xapp-viewport-subscribers";function A(e){var n=Number(e.getAttribute(R));return Number.isFinite(n)&&n>0?n:0}function j(e){var n="undefined"==typeof window?void 0:window.visualViewport;if(n){var t=n.height,r=n.offsetTop;if(t>0){var a=window.innerHeight||t,o=Math.max(0,a-t),i=o>=120?o:0;e.style.setProperty(D,"".concat(Math.round(t),"px")),e.style.setProperty(N,"".concat(Math.round(r),"px")),e.style.setProperty(I,"".concat(Math.round(i),"px"))}}}function M(){if("undefined"==typeof document)return function(){};var e=document.documentElement;e.setAttribute(R,String(A(e)+1)),j(e);var n,t="undefined"==typeof window?void 0:window.visualViewport,r=function(){void 0===n&&(n=window.requestAnimationFrame(function(){n=void 0,j(e)}))};null==t||t.addEventListener("resize",r),null==t||t.addEventListener("scroll",r);var a=!1;return function(){if(!a){a=!0,null==t||t.removeEventListener("resize",r),null==t||t.removeEventListener("scroll",r),void 0!==n&&(window.cancelAnimationFrame(n),n=void 0);var o=A(e)-1;o>0?e.setAttribute(R,String(o)):(e.removeAttribute(R),function(e){e.style.removeProperty(D),e.style.removeProperty(N),e.style.removeProperty(I)}(e))}}}function E(){var e=getComputedStyle(document.documentElement).getPropertyValue(I),n=parseFloat(e);return Number.isFinite(n)?n:0}function O(e){e&&"scrollIntoView"in e&&e.scrollIntoView({block:"nearest",behavior:"smooth"})}function z(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-65xx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===n?t:3&t|8).toString(16)})}var P="__xapp_visitor_id",L="__xapp_visit",H=/^[A-Za-z0-9_-]{8,64}$/;function U(){try{var e=window;return e.__xappVisitIdentity=e.__xappVisitIdentity||{}}catch(e){return{}}}function B(e){try{return localStorage.getItem(e)||void 0}catch(e){return}}function W(e,n){try{return localStorage.setItem(e,n),!0}catch(e){return!1}}function $(e){return e&&H.test(e)?e:void 0}function Y(){var e=$(B(P));if(e)return e;var n=U(),t=n.visitorId||$(B("__xapp_form_user_id"))||z();return W(P,t)||(n.visitorId=t),t}var q=function(e){var n=e.icon;return p.jsx("div",{tabIndex:e.tabIndex?Number(e.tabIndex):0,className:"xapp-search-icon-button ".concat(e.className||""),onClick:e.onClick,children:p.jsx("div",{className:"xapp-search-icon-button__content",children:p.jsx(n,{})})})},G=function(e){return p.jsx("div",{className:"xappw-message-bubble",children:e.children})},V=function(e){return p.jsx("div",{className:"xappw-suggestions-group-heading",children:e.label})},J=function(e){return function(){try{return"1"===sessionStorage.getItem("xa_test")}catch(e){return!1}}()&&(e.xaTest=!0,delete e.rwg_token),e},K=g,Z=v,X=h,Q=function(){try{var e=window.__xappInternal;return"string"==typeof e&&w.test(e)?e:void 0}catch(e){return}},ee=function(e,n,t){try{if("undefined"==typeof window)return;var r=e.measurementId;if(!h(r)||g())return;for(var a=r.trim(),o={},i=0,p=Object.entries(t);i<p.length;i++){var s=p[i],l=s[0],c=s[1];void 0!==c&&(o[l]="string"==typeof c?b(l,c):c)}Object.assign(o,function(e){var n,t,r={},a=null===(n=e.locationId)||void 0===n?void 0:n.trim();a&&(r.location_id=b("location_id",a));var o=null===(t=e.locationName)||void 0===t?void 0:t.trim();return o&&(r.location_name=b("location_name",o)),r}(e));var u=window;if(v(a)){var m=d({send_to:a},o);return"function"==typeof u.gtag?(u.gtag("event",n,m),"gtag"):Array.isArray(u.dataLayer)?(function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];null===(e=u.dataLayer)||void 0===e||e.push(arguments)}("event",n,m),"gtag"):void 0}if(Array.isArray(u.dataLayer))return u.dataLayer.push(d({event:n},o)),"dataLayer"}catch(e){}},ne=function(e){if(e)try{var n=new URL(e);return n.origin+n.pathname}catch(e){return}},te=function(e){void 0===e&&(e=!0),s.useEffect(function(){if(e)return C()},[e])},re=function(e){void 0===e&&(e=!0),s.useEffect(function(){if(e&&"undefined"!=typeof document){var n=E(),t=function(e){E()>0&&O(e.target)},r=function(){window.requestAnimationFrame(function(){var e=E(),t=n<=0&&e>0;n=e,t&&O(document.activeElement)})},a="undefined"==typeof window?void 0:window.visualViewport;return document.addEventListener("focusin",t),null==a||a.addEventListener("resize",r),null==a||a.addEventListener("scroll",r),function(){document.removeEventListener("focusin",t),null==a||a.removeEventListener("resize",r),null==a||a.removeEventListener("scroll",r)}}},[e])},ae=function(e){void 0===e&&(e=!0),s.useEffect(function(){if(e)return M()},[e])},oe=z,ie=function(e){void 0===e&&(e=Date.now());var n=U(),t=function(e){if(e)try{var n=JSON.parse(e);return n&&$(n.id)&&"number"==typeof n.at?n:void 0}catch(e){return}}(B(L))||n.visit,r={id:t&&t.at<=e&&e-t.at<=18e5&&t?t.id:z(),at:e};return W(L,JSON.stringify(r))||(n.visit=r),{visitorId:Y(),visitId:r.id}},pe=Y,se={extractUtmParameters:!0,extractClickIds:!0,customParameterPrefix:"track_",persistToLocalStorage:!0,persistenceDays:30,preferUrlParameters:!0},de=m,le=_;function ce(e){return void 0===e?"xa_tracking_":"".concat("xa_tracking","@").concat(encodeURIComponent(e),":")}function ue(e){return e.length<=255&&!/[<>"'\x00-\x1f]/.test(e)}function me(e){var n={},t=ce(e);return o(o([],de,!0),le,!0).forEach(function(e){var r=localStorage.getItem("".concat(t).concat(e));if(r)try{var a=JSON.parse(r);a.expires>Date.now()&&(n[e]=a.value)}catch(n){localStorage.removeItem("".concat(t).concat(e))}}),function(){for(var e=[],n=0;n<localStorage.length;n++){var t=localStorage.key(n);t&&e.push(t)}return e}().forEach(function(e){if(e.startsWith("".concat(t,"track_")))try{var r=JSON.parse(localStorage.getItem(e)||"{}");if(r.expires>Date.now()){var a=e.slice(t.length);n[a]=r.value}}catch(n){localStorage.removeItem(e)}}),n}function _e(e,n){void 0===e&&(e=window.location.href),void 0===n&&(n={});var r=t(t({},se),n),a=function(e,n){void 0===e&&(e=window.location.href),void 0===n&&(n={});var r,a=t(t({},se),n);try{r=new URL(e)}catch(n){return console.warn("Invalid URL provided to tracking parameter extraction:",e),{}}var o=r.searchParams,i={};return a.extractUtmParameters&&de.forEach(function(e){var n=o.get(e);n&&ue(n)&&(i[e]=n)}),a.extractClickIds&&le.forEach(function(e){var n=o.get(e);n&&ue(n)&&(i[e]=n)}),a.customParameterPrefix&&o.forEach(function(e,n){n.startsWith(a.customParameterPrefix)&&ue(e)&&(i[n]=e)}),i}(e,n),o=me(n.scope),i=r.preferUrlParameters?t(t({},o),a):t(t({},a),o);return Object.keys(a).length>0&&function(e,n){void 0===n&&(n={});var r=t(t({},se),n);if(r.persistToLocalStorage){var a=Date.now()+24*r.persistenceDays*60*60*1e3,o=ce(n.scope);Object.entries(e).forEach(function(e){var n=e[0],t=e[1];if(t){var r={value:t,expires:a,stored:Date.now()};localStorage.setItem("".concat(o).concat(n),JSON.stringify(r))}})}}(a,n),i}function fe(){return(new Date).toISOString()+" ::"}function xe(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];"debug"===window.xaLogLevel&&console.log.apply(console,o([fe()],e,!1))}function he(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];console.error.apply(console,o([fe()],e,!1))}function ge(e){return!!e&&"CAROUSEL"===e.type}function ve(e){return!!e&&"LIST"===e.type}function be(e){return!!e&&"FORM"===e.type}function ye(e,n){var r=n.type;switch(r){case"set-query":return t(t({},e),{query:n.query||""});case"set-response":return t(t({},e),{responseQuery:n.query,responseIntentId:n.intentId});case"set-context":return t(t({},e),{context:n.context});case"new-search":return t(t({},e),{query:""});case"set-modal-state":return t(t({},e),{active:n.active,minimized:n.minimized,sendRequest:n.sendRequest});case"open-modal-state":return e.active?e:t(t({},e),{active:!0,minimized:!1,sendRequest:!0});default:!function(e){throw new Error("Unknown kind "+e)}(r)}}var we={query:"",active:!1,minimized:!1,sendRequest:!0},Fe=[we,function(){}],ke=n.createContext(Fe),Se=function(t){var r=n.useReducer(ye,t.initialState||we);return e.jsx(ke.Provider,{value:r,children:t.children})};function Te(){return n.useContext(ke)}function Ce(){return Te()[0]}function De(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var Ne="xapp_form_ModalDialog-module_xapp_search_modal__WpGiJ",Ie="xapp_form_ModalDialog-module_xapp_search_modal__backdrop__rryOU",Re="xapp_form_ModalDialog-module_xapp_search_modal__body__qK17C",Ae="xapp_form_ModalDialog-module_xapp_search_modal_embedded__Ye0Dg";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_ModalDialog-module_xapp_search_modal__WpGiJ {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 48px;\n z-index: 15000;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_ModalDialog-module_xapp_search_modal__WpGiJ {\n padding: env(safe-area-inset-top) env(safe-area-inset-right) max(env(safe-area-inset-bottom), var(--xapp-keyboard-inset, 0px)) env(safe-area-inset-left);\n }\n}\n@media (max-height: 640px) and (min-width: 641px) and (pointer: fine) {\n .xapp_form_ModalDialog-module_xapp_search_modal__WpGiJ {\n padding-bottom: 24px;\n }\n}\n.xapp_form_ModalDialog-module_xapp_search_modal__backdrop__rryOU {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: -1;\n background: rgba(0, 0, 0, 0.4);\n}\n.xapp_form_ModalDialog-module_xapp_search_modal__body__qK17C {\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_ModalDialog-module_xapp_search_modal__body__qK17C {\n width: 100%;\n height: 100%;\n }\n}\n\n.xapp_form_ModalDialog-module_xapp_search_modal_embedded__Ye0Dg {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n}");var je=function(n){var t=n.embedded;return te(!t),ae(!t),re(),t?e.jsx("div",{className:Ae,children:n.children}):e.jsxs("div",{className:Ne,children:[!n.disableBackdrop&&e.jsx("div",{"data-testid":"xapp-modal-backdrop",className:Ie,onClick:n.onClose}),e.jsx("div",{className:Re,children:n.children})]})},Me="__xappDroppedAfterFinal";var Ee=new Map,Oe=new Set(["LAUNCH_REQUEST","INTENT_REQUEST"]),ze=function(){function e(e){this.sessionSent=!1,this.prefetchSemaphore=Promise.resolve(),this.config=e,this.responseCache={}}return Object.defineProperty(e.prototype,"trackingScope",{get:function(){return e=this.config.key,n=this.config.intentId,"".concat(null!=e?e:"","|").concat(null!=n?n:"");var e,n},enumerable:!1,configurable:!0}),e.prototype.getCachedTrackingParameters=function(){var e=Date.now();if(this.cachedTrackingParams&&e-this.cachedTrackingParams.ts<3e5)return this.cachedTrackingParams.value;var n=me(this.trackingScope);return this.cachedTrackingParams={ts:e,value:n},n},e.getApi=function(n){var t=function(e){var n;return"".concat(e.url," ").concat(e.key," ").concat(null!==(n=e.intentId)&&void 0!==n?n:""," ").concat(e.demoMode?"demo":"live")}(n),r=Ee.get(t);if(r)return r;var a=new e(n);return Ee.set(t,a),n.prefetchQuery&&a.prefetch(n.prefetchQuery),a},e.prototype.launchRequest=function(e){return this.send({type:"LAUNCH_REQUEST",rawQuery:e,intentId:"LaunchRequest",platform:"stentor-platform",channel:"form-widget"})},e.prototype.intentRequest=function(e){var n=(null==e?void 0:e.intentId)?void 0:e.query,t=(null==e?void 0:e.intentId)?e.intentId:"NLU_RESULT_PLACEHOLDER";return this.send({type:"INTENT_REQUEST",rawQuery:n,intentId:t,platform:"stentor-platform",channel:"form-widget"})},e.prototype.channelActionRequest=function(e,n){var r,a=this,o=!!e.final;if(this.session){if(this.session.hadFinal)return xe("Had final submit. Not sending action request: ".concat(n)),Promise.resolve(((r={})[Me]=!0,r));this.session.hadFinal=o}return this.send(t(t({type:"CHANNEL_ACTION_REQUEST",action:n,platform:"stentor-platform",channel:"form-widget"},this.config.intentId?{overrideKey:this.config.intentId}:{}),{attributes:{data:e}})).catch(function(e){throw a.session&&o&&(a.session.hadFinal=!1),e})},e.prototype.trackEvent=function(e,n){return r(this,void 0,void 0,function(){var t,r,o,i,p,s,d;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),t=this.config.key,this.config.demoMode?(xe("[demoMode] suppressed tracking event",e),[2,void 0]):t?(r=this.getTrackingUrl(),o={key:t,events:[n]},i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o),mode:"cors"},[4,fetch(r,i)]):(he("[EventTracking] No widget key configured, skipping event tracking"),[2,void 0]);case 1:return(p=a.sent()).ok?[4,p.json()]:(he("Event tracking failed: ".concat(p.status," ").concat(p.statusText)),[2,void 0]);case 2:return s=a.sent(),xe("Event tracking succeeded: ".concat(e,", processed: ").concat(s.processed)),[2,s];case 3:return d=a.sent(),he("Event tracking error: ".concat(d)),[2,void 0];case 4:return[2]}})})},e.prototype.trackEventBeacon=function(e,n){var r=this.config.key;if(this.config.demoMode)return xe("[demoMode] suppressed tracking beacon",e.eventType),!1;if(!r)return he("[EventTracking] No widget key configured, skipping event beacon"),!1;try{var a=this.getTrackingUrl(),o=t(t({key:r},n?{widgetType:n}:{}),{events:[e]});return fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o),keepalive:!0}).catch(function(){}),!0}catch(e){return he("Event beacon error: ".concat(e)),!1}},e.prototype.getTrackingUrl=function(){var e=this.config.url;try{var n=new URL(e);return"".concat(n.origin,"/cms/widget/events")}catch(n){he("[EventTracking] Failed to parse URL: ".concat(e));var t=e.match(/^(https?:\/\/[^/]+)/);return"".concat(t?t[1]:e.replace(/\/$/,""),"/cms/widget/events")}},e.prototype.resetSession=function(){this.session=void 0,this.sessionSent=!1},e.prototype.visitSession=function(){this.session||(this.session={sessionId:"stentor-form-session-".concat(oe()),userId:pe(),hadFinal:!1});var e=this.session;return{sessionId:e.sessionId,userId:e.userId}},e.prototype.getCachedResponse=function(e){if(e){var n=(new Date).getTime(),t=this.responseCache[e];if(t){if(n-t.ts<9e5)return xe('Returning cached response for "'.concat(e,'"')),t.value;xe('Deleting expired cached response for "'.concat(e,'"')),delete this.responseCache[e]}}},e.prototype.send=function(e){return r(this,void 0,void 0,function(){var n,r,o,i,p,s,d,l,c,u,m,_,f,x,h,g,v,b,y,w,F,k,S,T;return a(this,function(a){switch(a.label){case 0:return[4,this.prefetchSemaphore];case 1:if(a.sent(),this.config.demoMode&&!Oe.has(e.type))return xe("[demoMode] suppressed request",e.type),[2,{}];if(n=this.getCachedResponse(e.rawQuery))return[2,Promise.resolve(n)];r=this.config,o=r.url,i=r.key,p=!this.sessionSent,s=this.visitSession(),d=s.sessionId,l=s.userId,this.sessionSent=!0,c={};try{(null==(u=new URL(window.location.href))?void 0:u.host.toLowerCase().startsWith("localhost"))?c.isLocal=!0:c.currentUrl=window.location.href}catch(e){}(m=ne(document.referrer))&&(c.referrer=m),(_=localStorage.getItem("xa_rwg_token"))&&(c.rwg_token=_),(f=localStorage.getItem("xa_merchant_id"))&&(c.merchant_id=f),(x=localStorage.getItem("xa_environment"))&&(c.environment=x),(h=localStorage.getItem("xa_enablePreferredTime"))&&(c.enablePreferredTime=h),(g=localStorage.getItem("xa_service"))&&(c.service=g),(v=localStorage.getItem("xa_origin"))&&(c.origin=v);try{b=new URLSearchParams(window.location.search),(y=b.get("placeId"))&&(c.placeId=y)}catch(e){}return w=this.getCachedTrackingParameters(),Object.assign(c,w),J(c),c.currentTime=(new Date).toISOString(),F=t(t({},e),{sessionId:d,userId:l,isNewSession:p,attributes:t(t({},e.attributes),c)}),k=JSON.stringify(F),S={method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(i)},body:k,mode:"cors"},[4,fetch(o,S)];case 2:return(T=a.sent()).ok?[3,5]:(he("Stentor call failed: ".concat(T.statusText)),[4,(C=1e3,new Promise(function(e){setTimeout(e,C)}))]);case 3:return a.sent(),[4,fetch(o,S)];case 4:if(!(T=a.sent()).ok)throw he("Stentor call failed again: ".concat(T.statusText)),new Error("Status ".concat(T.status,", Text: ").concat(T.statusText));a.label=5;case 5:return[2,T.json()]}var C})})},e.prototype.prefetch=function(e){return r(this,void 0,void 0,function(){var n,o,i,p,s,d,l,c,u,m,_,f,x,h,g=this;return a(this,function(v){return this.config.demoMode||this.getCachedResponse(e)||(this.prefetchSemaphore=new Promise(function(e){n=e}),o=this.config,i=o.url,p=o.key,s=!this.sessionSent,d=this.visitSession(),l=d.sessionId,c=d.userId,this.sessionSent=!0,u={type:"INTENT_REQUEST",rawQuery:e,intentId:"NLU_RESULT_PLACEHOLDER",platform:"stentor-platform",channel:"form-widget"},m={currentTime:(new Date).toISOString()},_=t(t({},u),{sessionId:l,userId:c,isNewSession:s,attributes:m}),f=JSON.stringify(_),x={method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(p)},body:f,mode:"cors"},h=(new Date).getTime(),fetch(i,x).then(function(n){return r(g,void 0,void 0,function(){var t,r,o,i;return a(this,function(a){switch(a.label){case 0:return n.ok?(t=(new Date).getTime(),r=this.responseCache,o=e,i={ts:t},[4,n.json()]):(he("Stentor prefetch failed: ".concat(n.statusText)),[2]);case 1:return r[o]=(i.value=a.sent(),i),xe("Stentor prefetch took: ".concat(t-h," ms")),[2]}})})}).finally(function(){n()})),[2]})})},e}();function Pe(e){return"string"==typeof e?e:e.title}var Le=n.createContext({api:{key:"",url:""},suggestionsUrl:"",isVoiceEnabled:!1,autoGreeting:"schedule"});function He(){var e,t=n.useState(0),r=t[0],a=t[1],o=(e=n.useRef(!1),n.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),n.useCallback(function(){return e.current},[])),i=n.useCallback(function(e){return function(e,n){return n(1),e().finally(function(){n(-1)})}(e,function(e){o()&&a(function(n){return n+e})})},[o]);return n.useMemo(function(){return{loading:!!r,run:i}},[r,i])}var Ue="xxTrustedFormCertUrl",Be="xxTrustedFormPingUrl";function We(e){return n.useEffect(function(){if(e)if(function(e){try{return"https://api.trustedform.com"===new URL(e).origin}catch(e){return!1}}(e)){if(!document.querySelector('script[src="'.concat(e,'"]'))){var n=document.createElement("script");n.async=!0,n.src=e,n.onerror=function(){he("[TrustedForm] Failed to load script")},document.head.appendChild(n)}}else he("[TrustedForm] Rejected script URL from unexpected origin")},[e]),n.useCallback(function(){if(e){var n={},t=document.querySelector('input[name="'.concat(Ue,'"], input[id="').concat(Ue,'"]')),r=document.querySelector('input[name="'.concat(Be,'"], input[id="').concat(Be,'"]'));if((null==t?void 0:t.value)&&(n[Ue]=t.value),(null==r?void 0:r.value)&&(n[Be]=r.value),0!==Object.keys(n).length)return n;he("[TrustedForm] No certificate data found in DOM")}},[e])}function $e(e){if("undefined"!=typeof document&&document.cookie){var n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));if(t)try{return decodeURIComponent(t[1])}catch(e){return t[1]}}}var Ye=function(){return e.jsx("svg",{viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M10 14L3 7.5L10 1",stroke:"currentColor",fill:"none",strokeLinecap:"square"})})},qe=function(){return e.jsx("svg",{viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M5 14L12 7.5L5 1",stroke:"currentColor",fill:"none",strokeLinecap:"square"})})},Ge=function(){return e.jsxs("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"spinner-secondHalf",children:[e.jsx("stop",{offset:"0%",stopOpacity:"0",stopColor:"currentColor"}),e.jsx("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]}),e.jsxs("linearGradient",{id:"spinner-firstHalf",children:[e.jsx("stop",{offset:"0%",stopOpacity:"1",stopColor:"currentColor"}),e.jsx("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]})]}),e.jsxs("g",{strokeWidth:16,children:[e.jsx("path",{stroke:"url(#spinner-secondHalf)",d:"M".concat(8," 100 A").concat(92," ").concat(92," 0 0 1 ").concat(192," 100")}),e.jsx("path",{stroke:"url(#spinner-firstHalf)",d:"M".concat(192," 100 A").concat(92," ").concat(92," 0 0 1 ").concat(8," 100")}),e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",d:"M".concat(8," 100 A").concat(92," ").concat(92," 0 0 1 ").concat(8," ").concat(96)})]}),e.jsx("animateTransform",{from:"0 0 0",to:"360 0 0",attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1300ms"})]})},Ve=function(n){return function(t){var r=t.className;return e.jsx("svg",{className:r,viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:n})})}},Je=Ve("M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"),Ke=Ve("M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"),Ze=Ve("M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),Xe=Ve("M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"),Qe=Ve("M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"),en=Ve("M7 10l5 5 5-5z"),nn=Ve("M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"),tn=Ve("M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"),rn="xapp_form_SearchResponseBubble-module_xapp_search_response_bubble__UtmuK";De(".xapp_form_SearchResponseBubble-module_xapp_search_response_bubble__UtmuK {\n --xapp-bubble-background: #fff;\n}");var an=function(n){return e.jsx("div",{className:rn,children:e.jsx(G,{children:n.children})})};function on(e,n){for(var t=-1,r=0,a=n;r<a.length;r++){var o=a[r],i=e.indexOf(o);i>=0&&(t<0||t>=0&&i<t)&&(t=i)}return t}var pn=[":","/"],sn=["/"],dn=["?","#"],ln=["#"],cn=[function(e){var n=e.indexOf("://");return n<0?n:n+3},function(e){return on(e,pn)},function(e){return":"!==e.charAt(0)?-1:on(e,sn)},function(e){var n=on(e,dn);return n>=0?n:e.length},function(e){return on(e,ln)}];var un="/...";function mn(e,n){if(!e)return e;if(e.length<n)return e;var t=function(e){for(var n=[],t=e,r=0,a=cn;r<a.length;r++){var o=a[r],i=Math.max(0,o(t,e)),p=t.substring(0,i);n.push(p),t=t.substring(i)}return t&&n.push(t),n}(e);function r(){return t.join("")}function a(){return r().length>n}function o(e){a()&&(t[e]="")}if(":80"===t[2]&&"http://"===t[0]&&o(2),":443"===t[2]&&"https://"===t[0]&&o(2),o(5),o(4),o(2),o(0),a()){var i=t[3],p=r().length-i.length,s=n-p;if(s<0)t[3]="";else if(s<i.length){var d=i.length-s+4;t[3]=un+i.substring(d)}}return r()}var _n="xapp_form_Card-module_xapp_search_card__9iVCv",fn="xapp_form_Card-module_xapp_search_card__featured__CX-L0",xn="xapp_form_Card-module_xapp_search_card__featured_box__1fV9y",hn="xapp_form_Card-module_xapp_search_card__img__KJ1s3",gn="xapp_form_Card-module_xapp_search_card__content__dathl",vn="xapp_form_Card-module_xapp_search_card__link__DNSSb",bn="xapp_form_Card-module_xapp_search_card__title__ddR3K",yn="xapp_form_Card-module_xapp_search_card__description__MruSU";De('/**\n * The phone breakpoint.\n *\n * Width alone cannot express "phone". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step\'s action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field\'s helper / error line. The metrics are MUI\'s FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_Card-module_xapp_search_card__9iVCv {\n border: solid 0 var(--xapp-form-widget-border-color, #d3d3df);\n border-radius: 12px;\n margin-top: 0;\n margin-right: 0;\n margin-bottom: 20px;\n margin-left: 0;\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-items: stretch;\n overflow: hidden;\n border-radius: var(--xapp-form-widget-border-radius-lg, 16px);\n box-shadow: var(--xapp-form-widget-box-shadow-subtle, 0 2px 8px rgba(0, 0, 0, 0.08));\n transition: box-shadow 200ms ease-in-out, transform 200ms ease-in-out;\n background-color: #fff;\n}\n.xapp_form_Card-module_xapp_search_card__9iVCv:hover {\n box-shadow: var(--xapp-form-widget-box-shadow, 0 4px 24px rgba(0, 0, 0, 0.12));\n}\n.xapp_form_Card-module_xapp_search_card__featured__CX-L0 {\n flex: 1 1 240px;\n margin: 12px;\n width: 100%;\n min-width: 240px;\n overflow: hidden;\n}\n.xapp_form_Card-module_xapp_search_card__featured_box__1fV9y {\n position: relative;\n padding-bottom: math-div(100%, math-div(16, 9));\n box-sizing: border-box;\n overflow: hidden;\n}\n.xapp_form_Card-module_xapp_search_card__img__KJ1s3 {\n position: relative;\n width: 100%;\n height: 100%;\n object-fit: cover;\n overflow: hidden;\n}\n.xapp_form_Card-module_xapp_search_card__content__dathl {\n flex: 4 1 200px;\n min-width: 200px;\n margin: 12px;\n display: flex;\n flex-direction: column;\n}\n.xapp_form_Card-module_xapp_search_card__extra__R-h6g {\n margin-top: auto;\n margin-left: auto;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-items: stretch;\n max-width: 100%;\n}\n.xapp_form_Card-module_xapp_search_card__extra__R-h6g:before {\n content: "";\n min-width: 360px;\n}\n.xapp_form_Card-module_xapp_search_card__link__DNSSb {\n display: block;\n flex: 0 0 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 1.5em;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n font-weight: normal;\n font-size: 16px;\n font-style: normal;\n color: #006621;\n margin-top: 0;\n margin-right: 0;\n margin-bottom: 0;\n margin-left: 0;\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n}\n.xapp_form_Card-module_xapp_search_card__btn__DHrQp {\n flex: 1 1 auto;\n margin-top: 12px;\n}\n.xapp_form_Card-module_xapp_search_card__title__ddR3K {\n overflow: hidden;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 1.25em;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n font-weight: normal;\n font-size: 20px;\n font-style: normal;\n color: #1a0dab;\n margin-top: 0;\n margin-right: 0;\n margin-bottom: 0;\n margin-left: 0;\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n}\n.xapp_form_Card-module_xapp_search_card__title__ddR3K:hover {\n text-decoration: underline;\n}\n.xapp_form_Card-module_xapp_search_card__description__MruSU {\n line-height: 1.25em;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n font-weight: normal;\n font-size: 16px;\n font-style: normal;\n color: #666;\n margin-top: 6px;\n margin-right: 0;\n margin-bottom: 0;\n margin-left: 0;\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n overflow: hidden;\n max-height: 6.25em;\n position: relative;\n}\n.xapp_form_Card-module_xapp_search_card__description__MruSU:after {\n background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 12.5%, white 100%);\n content: "";\n height: 1.25em;\n position: absolute;\n top: 5em;\n left: 0;\n right: 0;\n pointer-events: none;\n}');var wn=function(n){var t,r,a,o=n.item,i=null===(t=o.image)||void 0===t?void 0:t.url;return e.jsxs("div",{className:"".concat(_n," ").concat(n.className||""),children:[!!i&&e.jsx("div",{className:fn,children:e.jsx("div",{className:xn,children:e.jsx("img",{src:null===(r=o.image)||void 0===r?void 0:r.url,className:hn,alt:null===(a=o.image)||void 0===a?void 0:a.accessibilityText})})}),e.jsxs("div",{className:gn,children:[!!o.url&&e.jsx("a",{href:o.url,className:bn,children:o.title}),!!o.url&&e.jsx("div",{className:vn,children:mn(o.url,40)}),e.jsx("div",{className:yn,children:o.description})]})]})},Fn="xapp_form_Carousel-module_xapp_search_carousel__NZTGa",kn="xapp_form_Carousel-module_xapp_search_carousel__prev__BdNo-",Sn="xapp_form_Carousel-module_xapp_search_carousel__next__udR98",Tn="xapp_form_Carousel-module_xapp_search_carousel__items__gRPzO",Cn="xapp_form_Carousel-module_xapp_search_carousel__content__EoqyB";De(".xapp_form_Carousel-module_xapp_search_carousel__NZTGa {\n display: flex;\n flex-flow: row nowrap;\n}\n.xapp_form_Carousel-module_xapp_search_carousel__prev__BdNo-, .xapp_form_Carousel-module_xapp_search_carousel__next__udR98 {\n flex: 0 0 32px;\n height: 32px;\n cursor: pointer;\n box-sizing: border-box;\n padding: 4px;\n align-self: center;\n}\n.xapp_form_Carousel-module_xapp_search_carousel__items__gRPzO {\n display: flex;\n position: relative;\n height: auto;\n align-items: stretch;\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n -moz-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n overflow-y: hidden;\n /* smartphones, touchscreens */\n}\n@media (hover: none) and (pointer: coarse) {\n .xapp_form_Carousel-module_xapp_search_carousel__items__gRPzO {\n overflow-x: auto;\n }\n}\n.xapp_form_Carousel-module_xapp_search_carousel__content__EoqyB {\n flex-grow: 1;\n}");var Dn="xapp_form_CarouselItem-module_xapp_search_carousel_item__xNpwo";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_CarouselItem-module_xapp_search_carousel_item__xNpwo {\n display: inline-flex;\n flex-direction: column;\n padding-right: 12px;\n flex-shrink: 0;\n width: 275px;\n}\n.xapp_form_CarouselItem-module_xapp_search_carousel_item__xNpwo:last-child {\n padding-right: 0;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_CarouselItem-module_xapp_search_carousel_item__xNpwo {\n min-width: 100%;\n max-width: 100%;\n }\n}");var Nn=function(n){return e.jsx("div",{className:"".concat(Dn," ").concat(n.className||""),children:n.children})},In=function(t){var r=t.list,a=n.useRef(null),o=n.useCallback(function(e){var n=a.current;if(n)for(var t=n.getElementsByClassName("xapp_search_carousel-item"),r=n.getBoundingClientRect(),o=t.length,i=0;i<o;i++){var p=t.item(i);if(p){var s=p.getBoundingClientRect(),d=e({position:s.left-r.left,size:s.width});if(void 0!==d)return void(n.scrollLeft+=d)}}},[]),i=n.useCallback(function(){var e;o(function(n){if(n.position>-10)return e;e=n.position})},[o]),p=n.useCallback(function(){o(function(e){if(e.position>10)return e.position})},[o]);return e.jsxs("div",{className:Fn,children:[e.jsx(q,{icon:Ye,className:kn,onClick:i}),e.jsx("div",{ref:a,className:Tn,children:r.items.map(function(n,t){return e.jsx(Nn,{children:e.jsx(wn,{item:n,className:Cn})},t)})}),e.jsx(q,{icon:qe,className:Sn,onClick:p})]})},Rn=function(n){var t=n.carousel;return e.jsx("div",{children:e.jsx(In,{list:t})})},An="xapp_form_Cards-module_xapp_search_cards__aeR3S";De(".xapp_form_Cards-module_xapp_search_cards__aeR3S {\n display: flex;\n flex-direction: column;\n}");var jn=function(n){var t=n.list;return e.jsx("div",{className:An,children:t.items.map(function(n,t){return e.jsx(wn,{item:n},t)})})},Mn=function(n){var t=n.list,r=null==t?void 0:t.title;return e.jsxs("div",{children:[r?e.jsx(V,{label:r}):e.jsx(e.Fragment,{}),e.jsx(jn,{list:t})]})},En=/('(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|`(?:\\.|[^`\\])*`)/,On=function(e,n,t){void 0===n&&(n="this"),void 0===t&&(t=[]);var r=t.map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("|"),a=new RegExp("\\b(?!(?:if|else|length|for|while|includes|function|var|let|const|return|switch|case|do|true|false|null|undefined|typeof|new|this|void|delete|in|instanceof|export|import".concat(r?"|".concat(r):"",")\\b)([a-zA-Z_$][a-zA-Z0-9_$]*)\\b"),"g");return e.split(En).map(function(e,t){return t%2==1?e:e.replace(a,"".concat(n,".$1"))}).join("")},zn=/#{([\s\S]+?)}/g;function Pn(e,n){var t=n;try{var r=JSON.stringify(e).replace(zn,function(e,n){var r=n.trim();if(!(r in t))throw new Error('Missing template key "'.concat(r,'"'));var a=t[r];return null==a?"":String(a)}).replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t");return JSON.parse(r)}catch(e){}return e}var Ln=/^\d{4}-\d{2}-\d{2}$/,Hn=/^(\d{1,2}):(\d{2})/;function Un(e){var n="string"==typeof e?Hn.exec(e.trim()):null;return n?"".concat(n[1].padStart(2,"0"),":").concat(n[2]):void 0}function Bn(e,n,t){var r=Un(n);return!!t&&!!r&&e===t.date&&r<t.blockedUntil}function Wn(e){return e.filter(function(e){return!!Un(e.startTime)})}var $n={exports:{}};$n.exports=function(){var e=1e3,n=6e4,t=36e5,r="millisecond",a="second",o="minute",i="hour",p="day",s="week",d="month",l="quarter",c="year",u="date",m="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var n=["th","st","nd","rd"],t=e%100;return"["+e+(n[(t-20)%10]||n[t]||n[0])+"]"}},h=function(e,n,t){var r=String(e);return!r||r.length>=n?e:""+Array(n+1-r.length).join(t)+e},g={s:h,z:function(e){var n=-e.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),a=t%60;return(n<=0?"+":"-")+h(r,2,"0")+":"+h(a,2,"0")},m:function e(n,t){if(n.date()<t.date())return-e(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),a=n.clone().add(r,d),o=t-a<0,i=n.clone().add(r+(o?-1:1),d);return+(-(r+(t-a)/(o?a-i:i-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:c,w:s,d:p,D:u,h:i,m:o,s:a,ms:r,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=x;var y="$isDayjsObject",w=function(e){return e instanceof T||!(!e||!e[y])},F=function e(n,t,r){var a;if(!n)return v;if("string"==typeof n){var o=n.toLowerCase();b[o]&&(a=o),t&&(b[o]=t,a=o);var i=n.split("-");if(!a&&i.length>1)return e(i[0])}else{var p=n.name;b[p]=n,a=p}return!r&&a&&(v=a),a||!r&&v},k=function(e,n){if(w(e))return e.clone();var t="object"==typeof n?n:{};return t.date=e,t.args=arguments,new T(t)},S=g;S.l=F,S.i=w,S.w=function(e,n){return k(e,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var T=function(){function x(e){this.$L=F(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[y]=!0}var h=x.prototype;return h.parse=function(e){this.$d=function(e){var n=e.date,t=e.utc;if(null===n)return new Date(NaN);if(S.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var r=n.match(_);if(r){var a=r[2]-1||0,o=(r[7]||"0").substring(0,3);return t?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(n)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return S},h.isValid=function(){return!(this.$d.toString()===m)},h.isSame=function(e,n){var t=k(e);return this.startOf(n)<=t&&t<=this.endOf(n)},h.isAfter=function(e,n){return k(e)<this.startOf(n)},h.isBefore=function(e,n){return this.endOf(n)<k(e)},h.$g=function(e,n,t){return S.u(e)?this[n]:this.set(t,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,n){var t=this,r=!!S.u(n)||n,l=S.p(e),m=function(e,n){var a=S.w(t.$u?Date.UTC(t.$y,n,e):new Date(t.$y,n,e),t);return r?a:a.endOf(p)},_=function(e,n){return S.w(t.toDate()[e].apply(t.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(n)),t)},f=this.$W,x=this.$M,h=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case c:return r?m(1,0):m(31,11);case d:return r?m(1,x):m(0,x+1);case s:var v=this.$locale().weekStart||0,b=(f<v?f+7:f)-v;return m(r?h-b:h+(6-b),x);case p:case u:return _(g+"Hours",0);case i:return _(g+"Minutes",1);case o:return _(g+"Seconds",2);case a:return _(g+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(e,n){var t,s=S.p(e),l="set"+(this.$u?"UTC":""),m=(t={},t[p]=l+"Date",t[u]=l+"Date",t[d]=l+"Month",t[c]=l+"FullYear",t[i]=l+"Hours",t[o]=l+"Minutes",t[a]=l+"Seconds",t[r]=l+"Milliseconds",t)[s],_=s===p?this.$D+(n-this.$W):n;if(s===d||s===c){var f=this.clone().set(u,1);f.$d[m](_),f.init(),this.$d=f.set(u,Math.min(this.$D,f.daysInMonth())).$d}else m&&this.$d[m](_);return this.init(),this},h.set=function(e,n){return this.clone().$set(e,n)},h.get=function(e){return this[S.p(e)]()},h.add=function(r,l){var u,m=this;r=Number(r);var _=S.p(l),f=function(e){var n=k(m);return S.w(n.date(n.date()+Math.round(e*r)),m)};if(_===d)return this.set(d,this.$M+r);if(_===c)return this.set(c,this.$y+r);if(_===p)return f(1);if(_===s)return f(7);var x=(u={},u[o]=n,u[i]=t,u[a]=e,u)[_]||1,h=this.$d.getTime()+r*x;return S.w(h,this)},h.subtract=function(e,n){return this.add(-1*e,n)},h.format=function(e){var n=this,t=this.$locale();if(!this.isValid())return t.invalidDate||m;var r=e||"YYYY-MM-DDTHH:mm:ssZ",a=S.z(this),o=this.$H,i=this.$m,p=this.$M,s=t.weekdays,d=t.months,l=t.meridiem,c=function(e,t,a,o){return e&&(e[t]||e(n,r))||a[t].slice(0,o)},u=function(e){return S.s(o%12||12,e,"0")},_=l||function(e,n,t){var r=e<12?"AM":"PM";return t?r.toLowerCase():r};return r.replace(f,function(e,r){return r||function(e){switch(e){case"YY":return String(n.$y).slice(-2);case"YYYY":return S.s(n.$y,4,"0");case"M":return p+1;case"MM":return S.s(p+1,2,"0");case"MMM":return c(t.monthsShort,p,d,3);case"MMMM":return c(d,p);case"D":return n.$D;case"DD":return S.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return c(t.weekdaysMin,n.$W,s,2);case"ddd":return c(t.weekdaysShort,n.$W,s,3);case"dddd":return s[n.$W];case"H":return String(o);case"HH":return S.s(o,2,"0");case"h":return u(1);case"hh":return u(2);case"a":return _(o,i,!0);case"A":return _(o,i,!1);case"m":return String(i);case"mm":return S.s(i,2,"0");case"s":return String(n.$s);case"ss":return S.s(n.$s,2,"0");case"SSS":return S.s(n.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")})},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(r,u,m){var _,f=this,x=S.p(u),h=k(r),g=(h.utcOffset()-this.utcOffset())*n,v=this-h,b=function(){return S.m(f,h)};switch(x){case c:_=b()/12;break;case d:_=b();break;case l:_=b()/3;break;case s:_=(v-g)/6048e5;break;case p:_=(v-g)/864e5;break;case i:_=v/t;break;case o:_=v/n;break;case a:_=v/e;break;default:_=v}return m?_:S.a(_)},h.daysInMonth=function(){return this.endOf(d).$D},h.$locale=function(){return b[this.$L]},h.locale=function(e,n){if(!e)return this.$L;var t=this.clone(),r=F(e,n,!0);return r&&(t.$L=r),t},h.clone=function(){return S.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},x}(),C=T.prototype;return k.prototype=C,[["$ms",r],["$s",a],["$m",o],["$H",i],["$W",p],["$M",d],["$y",c],["$D",u]].forEach(function(e){C[e[1]]=function(n){return this.$g(n,e[0],e[1])}}),k.extend=function(e,n){return e.$i||(e(n,T,k),e.$i=!0),k},k.locale=F,k.isDayjs=w,k.unix=function(e){return k(1e3*e)},k.en=b[v],k.Ls=b,k.p={},k}();var Yn,qn,Gn=i($n.exports),Vn={exports:{}},Jn=i(Vn.exports=(Yn={year:0,month:1,day:2,hour:3,minute:4,second:5},qn={},function(e,n,t){var r,a=function(e,n,t){void 0===t&&(t={});var r=new Date(e),a=function(e,n){void 0===n&&(n={});var t=n.timeZoneName||"short",r=e+"|"+t,a=qn[r];return a||(a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:t}),qn[r]=a),a}(n,t);return a.formatToParts(r)},o=function(e,n){for(var r=a(e,n),o=[],i=0;i<r.length;i+=1){var p=r[i],s=p.type,d=p.value,l=Yn[s];l>=0&&(o[l]=parseInt(d,10))}var c=o[3],u=24===c?0:c,m=o[0]+"-"+o[1]+"-"+o[2]+" "+u+":"+o[4]+":"+o[5]+":000",_=+e;return(t.utc(m).valueOf()-(_-=_%1e3))/6e4},i=n.prototype;i.tz=function(e,n){if(void 0===e&&(e=r),!this.isValid())return this;var a,i=this.utcOffset(),p=this.toDate(),s=p.toLocaleString("en-US",{timeZone:e}),d=o(+p,e);if(Number(d)){if(a=t(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(d,!0),n){var l=a.utcOffset();a=a.add(i-l,"minute")}}else a=this.utcOffset(0,n);return a.$x.$timezone=e,a},i.offsetName=function(e){var n=this.$x.$timezone||t.tz.guess(),r=a(this.valueOf(),n,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return r&&r.value};var p=i.startOf;i.startOf=function(e,n){if(!this.$x||!this.$x.$timezone)return p.call(this,e,n);var r=t(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return p.call(r,e,n).tz(this.$x.$timezone,!0)},t.tz=function(e,n,a){var i=a&&n,p=a||n||r,s=o(+t(),p);if("string"!=typeof e)return t(e).tz(p);var d=t.utc(e,i).valueOf();if(Number.isNaN(d)){var l=t(NaN);return l.$x.$timezone=p,l}var c=function(e,n,t){var r=e-60*n*1e3,a=o(r,t);if(n===a)return[r,n];var i=o(r-=60*(a-n)*1e3,t);return a===i?[r,a]:[e-60*Math.min(a,i)*1e3,Math.max(a,i)]}(d,s,p),u=c[0],m=c[1],_=t(u).utcOffset(m);return _.$x.$timezone=p,_},t.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},t.tz.setDefault=function(e){r=e}})),Kn={exports:{}};Kn.exports=function(){var e="minute",n=/[+-]\d\d(?::?\d\d)?/g,t=/([+-]|\d\d)/g;return function(r,a,o){var i=a.prototype;o.utc=function(e){return new a({date:e,utc:!0,args:arguments})},i.utc=function(n){var t=o(this.toDate(),{locale:this.$L,utc:!0});return n?t.add(this.utcOffset(),e):t},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var p=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),p.call(this,e)};var s=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else s.call(this)};var d=i.utcOffset;i.utcOffset=function(r,a){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?d.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(n);if(!r)return null;var a=(""+r[0]).match(t)||["-",0,0],o=a[0],i=60*+a[1]+ +a[2];return 0===i?0:"+"===o?i:-i}(r),null===r))return this;var i=Math.abs(r)<=16?60*r:r;if(0===i)return this.utc(a);var p=this.clone();if(a)return p.$offset=i,p.$u=!1,p;var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(p=this.local().add(i+s,e)).$offset=i,p.$x.$localOffset=s,p};var l=i.format;i.format=function(e){var n=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,n)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var c=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var u=i.diff;i.diff=function(e,n,t){if(e&&this.$u===e.$u)return u.call(this,e,n,t);var r=this.local(),a=o(e).local();return u.call(r,a,n,t)}}}();var Zn=i(Kn.exports);Gn.extend(Zn),Gn.extend(Jn);var Xn="preferred_date",Qn="datetime",et="preferred_time_zone",nt=/^[+-]?\d/,tt=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],rt=/^(\d{1,2}):(\d{2})/;function at(e){var n=rt.exec(e||"");if(!n)return-1;var t=Number(n[1]),r=Number(n[2]);return t>23||r>59?-1:60*t+r}function ot(e){return e<10?"0".concat(e):"".concat(e)}function it(e){var n=(e%1440+1440)%1440;return"".concat(ot(Math.floor(n/60)),":").concat(ot(n%60))}function pt(e){return"".concat(e.getFullYear(),"-").concat(ot(e.getMonth()+1),"-").concat(ot(e.getDate()))}function st(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),!0}catch(e){return!1}}var dt=["longGeneric","long"];function lt(e){if(!e)return"";for(var n=0,t=dt;n<t.length;n++){var r=t[n];try{var a=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:r}).formatToParts(new Date).find(function(e){return"timeZoneName"===e.type});if(a&&a.value)return a.value}catch(e){}}return e}function ct(e,n,t){var r=at(n),a=r<0?n:it(r),o="".concat(e,"T").concat(a);try{return Gn.tz(o,t).format()}catch(e){return Gn(o).format()}}function ut(e){var n=null==e?void 0:e.timezone;if(n&&"string"==typeof n&&!nt.test(n)){try{if(!Gn.tz("2026-01-01T00:00",n).isValid())return}catch(e){return}return n}}function mt(e){var n=at(e);if(n<0)return e;var t=Math.floor(n/60);return"".concat(t%12==0?12:t%12,":").concat(ot(n%60)," ").concat(t<12?"AM":"PM")}function _t(e){if(!e)return"";if(e.label)return e.label;var n=mt(e.start);return e.end?"".concat(n," - ").concat(mt(e.end)):n}function ft(e){var n=null==e?void 0:e.horizonDays;return"number"==typeof n&&n>=0?n:60}function xt(e){return!!e&&"object"==typeof e&&"string"==typeof e.start}function ht(e,n,t,r){var a=n.leadTimeMinutes,o=a&&a>0?a:0,i=r.getTime()+6e4*o;return e.filter(function(e){return function(e,n,t){var r="".concat(e,"T").concat(n);try{return Gn.tz(r,t).valueOf()}catch(e){return Gn(r).valueOf()}}(t,e.start,n.timezone)>=i})}function gt(e,n,t,r,a){if(void 0===t&&(t=new Date),!e||!n||isNaN(n.getTime()))return[];var i=pt(n);return function(e,n,t,r){if(r)return ht(o([],r[n]||[],!0),e,n,t);var a=function(e,n){return(e.exceptions||[]).find(function(e){return e.date===n})}(e,n);if(Array.isArray(e.offerings))return!a||a.spans&&0!==a.spans.length?ht(e.offerings,e,n,t):[];for(var i=function(e){var n=new Date("".concat(e,"T00:00:00Z"));return isNaN(n.getTime())?void 0:tt[n.getUTCDay()]}(n),p=a?a.spans||[]:i&&(e.days||{})[i]||[],s=e.slotMinutes&&e.slotMinutes>0?e.slotMinutes:30,d=e.durationMinutes&&e.durationMinutes>0?e.durationMinutes:void 0,l=[],c=0,u=p;c<u.length;c++){var m=u[c],_=at(null==m?void 0:m.start),f=at(null==m?void 0:m.end);if(!(_<0||f<0))for(var x=_;x<f&&!(d&&x+d>f);x+=s){var h={start:it(x)};d&&(h.end=it(x+d)),l.push(h)}}return ht(l,e,n,t)}(e,i,t,r).filter(function(e){return!Bn(i,e.start,a)})}function vt(e,n,t,r,a){if(void 0===t&&(t=new Date),!e||!n||isNaN(n.getTime()))return!1;var o,i,p=pt(n),s=ft(e),d=yt(e.timezone,t),l=(o=d,i=p,Math.round((Date.parse("".concat(i,"T00:00:00Z"))-Date.parse("".concat(o,"T00:00:00Z")))/864e5));return!(l<0||l>s)&&gt(e,n,t,r,a).length>0}function bt(e,n,t,r,a){if(void 0===n&&(n=new Date),void 0===t&&(t=function(){return!1}),e)for(var o=yt(e.timezone,n),i=0;i<=ft(e);i++){var p=Gn("".concat(o,"T00:00:00")).add(i,"day").toDate();if(vt(e,p,n,r,a)&&!t(p))return p}}function yt(e,n){try{return Gn(n).tz(e).format("YYYY-MM-DD")}catch(e){return pt(n)}}var wt=["step-nomatch","step-nomatchaggregator","step-no-match-financing","step-payPerCallNoneAvailable"];function Ft(e){var n=e.querySelectorAll('[id^="step-"]');if(0===n.length)return"empty";for(var t=!1,r=0;r<n.length;r++){var a=n[r].id;if(-1!==wt.indexOf(a))return"no_coverage";if("step-loading"!==a)return"rendered";t=!0}return t?"loading":"empty"}var kt="data-xapp-external-widget-origin";function St(e,r){void 0===r&&(r={});var a=r.onRendered,o=r.onNoRender,i=r.onError,p=r.onFallback,s=n.useState("pending"),d=s[0],l=s[1],c=n.useState(0),u=c[0],m=c[1],_=n.useRef(!1),f=n.useRef(!1),x=n.useRef(0),h=n.useRef(!1),g=n.useRef(r);return g.current=r,n.useEffect(function(){var n;if(e){var r=function(e){if(!e)return"unknown";try{return new URL(e).hostname}catch(e){return"unknown"}}(e.scriptSrc),s=t({},e.config);if(e.successCallbackKey){var d=e.successCallbackKey;s[d]=function(e){var n,t;if(f.current)return x.current+=1,he("[ExternalWidget] Suppressed repeat ".concat(d," fire ")+"#".concat(x.current," from ").concat(r),e),void m(x.current);f.current=!0,null===(t=(n=g.current).onScheduled)||void 0===t||t.call(n,r,e)}}if(window[e.configGlobal]=s,!_.current){_.current=!0;var c=function(n,t){h.current||(h.current=!0,l(n),null==t||t(),"rendered"!==n&&e.fallbackStep&&(null==p||p(e.fallbackStep)))};if(!function(e){try{return"https:"===new URL(e).protocol}catch(e){return!1}}(e.scriptSrc))return he("[ExternalWidget] Rejected script URL from unexpected origin: ".concat(e.scriptSrc)),void c("error",function(){return null==i?void 0:i(r)});var u,v,b,y=document.getElementById(e.anchorId),w=null!==(n=e.renderTimeoutMs)&&void 0!==n?n:8e3,F=0,k=function(){return c("no_render",function(){return null==o?void 0:o(r)})},S=function(e){if(!e)return!1;var n=Ft(e);return"rendered"===n?(c("rendered",function(){return null==a?void 0:a(r)}),!0):"no_coverage"===n&&(k(),!0)},T=function(){if(!h.current){var n=document.getElementById(e.anchorId);if(!S(n))return n&&"loading"===Ft(n)&&F<3?(F+=1,void(u=setTimeout(T,w))):void k()}};S(y)||(y&&(v=new MutationObserver(function(){S(document.getElementById(e.anchorId))})).observe(y,{childList:!0,subtree:!0}),u=setTimeout(T,w));try{b=new URL(e.scriptSrc).origin}catch(n){b=e.scriptSrc}if(!document.querySelector("script[".concat(kt,'="').concat(b,'"]'))){var C=document.createElement("script");C.src=e.cacheBust?"".concat(e.scriptSrc).concat(e.scriptSrc.includes("?")?"&":"?","v=").concat(Date.now()):e.scriptSrc,C.setAttribute(kt,b),C.onerror=function(){he("[ExternalWidget] Failed to load script: ".concat(e.scriptSrc)),c("error",function(){return null==i?void 0:i(r)})},document.body.appendChild(C)}return function(){u&&clearTimeout(u),null==v||v.disconnect()}}}},[e]),{outcome:d,suppressedScheduledCount:u}}var Tt={xapp_select_option:"xapp_form_FormFieldSelect-module_xapp_select_option__m-RaK",xapp_select_label:"xapp_form_FormFieldSelect-module_xapp_select_label__U70Ur",xapp_checkbox_select:"xapp_form_FormFieldSelect-module_xapp_checkbox_select__QccWu",xapp_select_input:"xapp_form_FormFieldSelect-module_xapp_select_input__UcGaw",xapp_select_icon:"xapp_form_FormFieldSelect-module_xapp_select_icon__BgEGq",xapp_select_helper:"xapp_form_FormFieldSelect-module_xapp_select_helper__T4Eyt",xapp_select_container:"xapp_form_FormFieldSelect-module_xapp_select_container__HWy4J",xapp_select_title_container:"xapp_form_FormFieldSelect-module_xapp_select_title_container__tnfQy"};De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldSelect-module_xapp_select_option__m-RaK {\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n margin: 0 16px 0 -10px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_label__U70Ur {\n font-family: var(--xapp-form-widget-checkbox-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n letter-spacing: 0.00938em;\n}\n\n.xapp_form_FormFieldSelect-module_xapp_checkbox_select__QccWu {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n box-sizing: border-box;\n flex-shrink: 0;\n margin: 6px 0 !important;\n font-size: var(--xapp-form-widget-checkbox-font-size, 14px) !important;\n font-family: var(--xapp-form-widget-checkbox-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif)) !important;\n color: var(--xapp-form-widget-checkbox-color, #000000) !important;\n padding: 8px 10px !important;\n height: 32px !important;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldSelect-module_xapp_checkbox_select__QccWu {\n height: 44px !important;\n }\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_input__UcGaw {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n opacity: 0;\n z-index: 1;\n cursor: inherit;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_icon__BgEGq {\n font-size: 24px;\n flex-shrink: 0;\n border-radius: 2px;\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_input__UcGaw:focus-visible + .xapp_form_FormFieldSelect-module_xapp_select_icon__BgEGq {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_helper__T4Eyt {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_container__HWy4J {\n display: flex;\n flex-wrap: wrap; /* Allows items to wrap onto a new row */\n justify-content: center; /* Centers items horizontally */\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_title_container__tnfQy {\n text-align: center; /* Keeps the title over the centered options */\n}\n.xapp_form_FormFieldSelect-module_xapp_select_title_container__tnfQy p {\n font-family: var(--xapp-form-widget-checkbox-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n color: var(--xapp-form-widget-checkbox-color, #000000);\n}\n.xapp_form_FormFieldSelect-module_xapp_select_title_container__empty__zC4gk p {\n margin: 0;\n}");var Ct=function(r){var a=r.field,i=r.onFieldChange,p=r.errorMessage,s=n.useState([]),d=s[0],l=s[1],c=n.useState(""),u=c[0],m=c[1],_=function(e){var n=e.target,t=n.name,r=n.checked;l(function(e){return r?o(o([],e,!0),[t],!1):e.filter(function(e){return e!==t})})},f=function(e){m(e.target.value)},x="xapp-select-".concat(n.useId()),h="".concat(x,"-title"),g="".concat(x,"-helper-text"),v=!!p;return n.useEffect(function(){a.radio?i(a.name,u?[u]:[]):i(a.name,d)},[d,u,a.name,a.radio,i]),e.jsxs("div",{style:t({},a.style),children:[e.jsx("div",{className:"".concat(Tt.xapp_select_title_container).concat(a.title?"":"__empty"),children:e.jsx("p",{id:h,children:a.title})}),e.jsx("div",{className:Tt.xapp_select_container,role:a.radio?"radiogroup":"group","aria-invalid":a.radio&&v||void 0,"aria-labelledby":a.title?h:void 0,"aria-describedby":v?g:void 0,children:a.items.map(function(n){var t=a.radio?u===n.id:d.includes(n.id),r=a.radio?t?Xe:Qe:t?Ke:Ze;return e.jsxs("label",{className:Tt.xapp_select_option,children:[e.jsxs("span",{className:"".concat(Tt.xapp_checkbox_select," ").concat(t?Tt.xapp_checkbox_select_checked:""),children:[a.radio?e.jsx("input",{type:"radio",className:Tt.xapp_select_input,name:a.name,value:n.id,checked:t,onChange:f}):e.jsx("input",{type:"checkbox",className:Tt.xapp_select_input,name:n.id,checked:t,onChange:_,"aria-invalid":v||void 0}),e.jsx(r,{className:Tt.xapp_select_icon})]}),e.jsx("span",{className:Tt.xapp_select_label,children:n.label})]},n.id)})}),p&&e.jsx("p",{id:g,className:Tt.xapp_select_helper,children:p})]})},Dt={xapp_form_card:"xapp_form_FormFieldCard-module_xapp_form_card__AcVAf",xapp_form_card_body:"xapp_form_FormFieldCard-module_xapp_form_card_body__vuEht",xapp_form_card_header:"xapp_form_FormFieldCard-module_xapp_form_card_header__SS1vk",xapp_form_card_header_title:"xapp_form_FormFieldCard-module_xapp_form_card_header_title__xZzN5",xapp_form_card_header_subheader:"xapp_form_FormFieldCard-module_xapp_form_card_header_subheader__zOL4x",xapp_form_card_media:"xapp_form_FormFieldCard-module_xapp_form_card_media__o6A6S",xapp_form_card_content:"xapp_form_FormFieldCard-module_xapp_form_card_content__xk0qq",xapp_form_card_text:"xapp_form_FormFieldCard-module_xapp_form_card_text__L-a2X",xapp_form_card_text_h1:"xapp_form_FormFieldCard-module_xapp_form_card_text_h1__YgA4Z",xapp_form_card_text_h2:"xapp_form_FormFieldCard-module_xapp_form_card_text_h2__Tx0rO",xapp_form_card_text_h3:"xapp_form_FormFieldCard-module_xapp_form_card_text_h3__Js1Op",xapp_form_card_text_h4:"xapp_form_FormFieldCard-module_xapp_form_card_text_h4__9yry6",xapp_form_card_text_h5:"xapp_form_FormFieldCard-module_xapp_form_card_text_h5__toyJR",xapp_form_card_text_h6:"xapp_form_FormFieldCard-module_xapp_form_card_text_h6__0-eii",xapp_form_card_text_subtitle1:"xapp_form_FormFieldCard-module_xapp_form_card_text_subtitle1__NANlV",xapp_form_card_text_subtitle2:"xapp_form_FormFieldCard-module_xapp_form_card_text_subtitle2__MYx4s",xapp_form_card_text_body1:"xapp_form_FormFieldCard-module_xapp_form_card_text_body1__mLBa1",xapp_form_card_text_body2:"xapp_form_FormFieldCard-module_xapp_form_card_text_body2__LVGQo",xapp_form_card_text_inherit:"xapp_form_FormFieldCard-module_xapp_form_card_text_inherit__v3d-Y",xapp_form_card_text_button:"xapp_form_FormFieldCard-module_xapp_form_card_text_button__2t1tt",xapp_form_card_text_caption:"xapp_form_FormFieldCard-module_xapp_form_card_text_caption__GcGFA",xapp_form_card_text_overline:"xapp_form_FormFieldCard-module_xapp_form_card_text_overline__ial1O"};De(".xapp_form_FormFieldCard-module_xapp_form_card__AcVAf img {\n width: 50% !important;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_body__vuEht {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n border-radius: 4px;\n background-color: transparent;\n font-family: var(--xapp-form-widget-card-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_header__SS1vk {\n display: flex;\n flex-direction: column;\n padding: 16px;\n font-family: inherit;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_header_title__xZzN5 {\n display: block;\n font-size: 1.5rem;\n font-weight: 400;\n line-height: 1.334;\n color: var(--xapp-form-widget-card-color, rgba(0, 0, 0, 0.87));\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_header_subheader__zOL4x {\n display: block;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: rgba(0, 0, 0, 0.6);\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_media__o6A6S {\n display: block;\n object-fit: cover;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_content__xk0qq {\n padding: 4px;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text__L-a2X {\n margin: 0;\n font-family: inherit;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_h1__YgA4Z {\n font-size: 6rem;\n font-weight: 300;\n line-height: 1.167;\n letter-spacing: -0.01562em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_h2__Tx0rO {\n font-size: 3.75rem;\n font-weight: 300;\n line-height: 1.2;\n letter-spacing: -0.00833em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_h3__Js1Op {\n font-size: 3rem;\n font-weight: 400;\n line-height: 1.167;\n letter-spacing: 0;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_h4__9yry6 {\n font-size: 2.125rem;\n font-weight: 400;\n line-height: 1.235;\n letter-spacing: 0.00735em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_h5__toyJR {\n font-size: 1.5rem;\n font-weight: 400;\n line-height: 1.334;\n letter-spacing: 0;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_h6__0-eii {\n font-size: 1.25rem;\n font-weight: 500;\n line-height: 1.6;\n letter-spacing: 0.0075em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_subtitle1__NANlV {\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.75;\n letter-spacing: 0.00938em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_subtitle2__MYx4s {\n font-size: 0.875rem;\n font-weight: 500;\n line-height: 1.57;\n letter-spacing: 0.00714em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_body1__mLBa1 {\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n letter-spacing: 0.00938em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_body2__LVGQo {\n font-size: 0.875rem;\n font-weight: 400;\n line-height: 1.43;\n letter-spacing: 0.01071em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_inherit__v3d-Y {\n font: inherit;\n letter-spacing: inherit;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_button__2t1tt {\n display: block;\n font-size: 0.875rem;\n font-weight: 500;\n line-height: 1.75;\n letter-spacing: 0.02857em;\n text-transform: uppercase;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_caption__GcGFA {\n display: block;\n font-size: 0.75rem;\n font-weight: 400;\n line-height: 1.66;\n letter-spacing: 0.03333em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_overline__ial1O {\n display: block;\n font-size: 0.75rem;\n font-weight: 400;\n line-height: 2.66;\n letter-spacing: 0.08333em;\n text-transform: uppercase;\n}");var Nt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p",button:"span",caption:"span",overline:"span"},It={primary:"#1976d2",secondary:"#9c27b0",error:"#d32f2f",warning:"#ed6c02",info:"#0288d1",success:"#2e7d32",textPrimary:"rgba(0, 0, 0, 0.87)",textSecondary:"rgba(0, 0, 0, 0.6)",textDisabled:"rgba(0, 0, 0, 0.38)","text.primary":"rgba(0, 0, 0, 0.87)","text.secondary":"rgba(0, 0, 0, 0.6)","text.disabled":"rgba(0, 0, 0, 0.38)"};var Rt=function(n){var r,a=n.field,o=a.variant&&Nt[a.variant]?a.variant:"body2",i=Nt[o];return e.jsx("div",{className:Dt.xapp_form_card,children:e.jsxs("div",{className:Dt.xapp_form_card_body,children:[a.header&&e.jsxs("div",{className:Dt.xapp_form_card_header,children:[e.jsx("span",{className:Dt.xapp_form_card_header_title,children:a.header.title}),a.header.subheader&&e.jsx("span",{className:Dt.xapp_form_card_header_subheader,children:a.header.subheader})]}),a.media&&e.jsx("img",{className:Dt.xapp_form_card_media,src:a.media.imageUrl,alt:a.media.alt,height:a.media.height,width:a.media.width}),a.text&&e.jsx("div",{className:Dt.xapp_form_card_content,children:e.jsx(i,{className:"".concat(Dt.xapp_form_card_text," ").concat(Dt["xapp_form_card_text_".concat(o)]||""),"data-variant":o,style:t({whiteSpace:"pre-line",textAlign:a.align||"center",color:(r=a.color||"textSecondary",It[r]||r)},a.style),children:a.text})})]})})},At="xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb",jt="xapp_form_FormFieldChips-module_xapp_chip_label__Yua52",Mt="xapp_form_FormFieldChips-module_xapp_chip_link__yhO-O",Et="xapp_form_FormFieldChips-module_xapp_chip_icon__Awxmc",Ot="xapp_form_FormFieldChips-module_xapp_chips_helper__2gCIL",zt="xapp_form_FormFieldChips-module_xapp_chip_clicked__S8xmo",Pt="xapp_form_FormFieldChips-module_xapp_chips_container__ZITF5",Lt="xapp_form_FormFieldChips-module_xapp_chip_wrapper__AGfKl",Ht="xapp_form_FormFieldChips-module_xapp_chips_title_container__VGw77";function Ut(e){return!!e&&!e.url}De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb {\n display: inline-flex !important;\n align-items: center;\n justify-content: center;\n position: relative;\n box-sizing: border-box !important;\n max-width: 100%;\n vertical-align: middle;\n white-space: nowrap;\n border: 0 !important;\n outline: 0;\n line-height: 1.5 !important;\n text-transform: none !important;\n text-decoration: none !important;\n letter-spacing: normal;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n margin: 6px !important;\n font-size: var(--xapp-form-widget-chips-font-size, 0.875em) !important;\n font-family: var(--xapp-form-widget-chips-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif)) !important;\n padding: 8px 16px !important;\n height: 32px !important;\n border-radius: var(--xapp-form-widget-border-radius-lg, 16px) !important;\n min-width: 130px !important;\n background-color: var(--xapp-form-widget-chips-background-color, #c4dced) !important;\n color: var(--xapp-form-widget-chips-color, #000000) !important;\n cursor: pointer;\n transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out, transform 150ms ease-in-out !important;\n}\n.xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb:hover {\n box-shadow: var(--xapp-form-widget-box-shadow-subtle, 0 2px 8px rgba(0, 0, 0, 0.08)) !important;\n transform: translateY(-1px);\n}\n.xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb:active {\n transform: scale(0.98) !important;\n}\n.xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n box-shadow: none !important;\n transform: none !important;\n}\n.xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb:focus {\n outline: none;\n}\n.xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb {\n min-width: 100px !important;\n font-size: 16px !important;\n height: 44px !important;\n }\n}\n\n.xapp_form_FormFieldChips-module_xapp_chip_label__Yua52 {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding-left: 4px;\n padding-right: 4px;\n font-family: var(--xapp-form-widget-chips-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif)) !important;\n}\n\n.xapp_form_FormFieldChips-module_xapp_chip_link__yhO-O .xapp_form_FormFieldChips-module_xapp_chip_label__Yua52 {\n text-decoration: underline;\n}\n\n.xapp_form_FormFieldChips-module_xapp_chip_icon__Awxmc {\n flex-shrink: 0;\n font-size: 1.5rem;\n margin-left: 5px;\n margin-right: -6px;\n}\n\n.xapp_form_FormFieldChips-module_xapp_chips_helper__2gCIL {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n}\n\n.xapp_form_FormFieldChips-module_xapp_chip_clicked__S8xmo {\n background-color: var(--xapp-form-widget-chips-background-color-selected, var(--xapp-form-widget-chips-background-color-dark, #6e7ae1)) !important;\n color: var(--xapp-form-widget-chips-color-selected, #ffffff) !important;\n box-shadow: 0 2px 8px rgba(110, 122, 225, 0.3) !important;\n}\n\n.xapp_form_FormFieldChips-module_xapp_chips_container__ZITF5 {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n justify-content: center;\n}\n\n.xapp_form_FormFieldChips-module_xapp_chip_wrapper__AGfKl {\n flex: 0 0 calc(33.33% - 10px);\n margin: 0 2px;\n text-align: center;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldChips-module_xapp_chip_wrapper__AGfKl {\n margin: 0 2px;\n }\n}\n\n.xapp_form_FormFieldChips-module_xapp_chips_title_container__VGw77 {\n margin: inherit;\n}\n.xapp_form_FormFieldChips-module_xapp_chips_title_container__VGw77 p {\n font-family: var(--xapp-form-widget-chips-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n font-size: 1.25em;\n font-weight: 600;\n line-height: 1.3;\n}\n.xapp_form_FormFieldChips-module_xapp_chips_title_container__empty__5seHa p {\n margin: 10px 0;\n}");var Bt=function(r){var a=r.field,i=r.onFieldChange,p=r.errorMessage,s=r.value,d=r.disabledItemIds,l=s||r.field.items.filter(Ut).filter(function(e){return e.selected}).map(function(e){return e.id}),c=n.useState(l),u=c[0],m=c[1],_=(d||[]).join(",");n.useEffect(function(){var e=_?_.split(","):[];e.length>0&&m(function(n){var t=n.filter(function(n){return!e.includes(n)});return t.length===n.length?n:t})},[_]);var f="xapp-chips-".concat(n.useId()),x="".concat(f,"-title"),h="".concat(f,"-helper-text");return n.useEffect(function(){"function"==typeof i&&i(a.name,u)},[u,a.name,i]),e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignContent:"center",alignItems:"center"},children:[e.jsx("div",{className:"".concat(Ht).concat(a.title?"":"__empty"),style:t({},a.style),children:e.jsx("p",{id:x,children:a.title})}),e.jsx("div",{className:Pt,role:"group","aria-labelledby":a.title?x:void 0,"aria-describedby":p?h:void 0,children:a.items.map(function(n,t){var r=u.includes(n.id),i=!!(null==d?void 0:d.includes(n.id)),p="".concat(At," ").concat(r?zt:""),s=e.jsxs(e.Fragment,{children:[r&&e.jsx(Je,{className:Et}),e.jsx("span",{className:jt,children:n.label})]});return Ut(n)?e.jsx("div",{className:Lt,children:e.jsx("button",{type:"button","aria-pressed":r,disabled:i,onClick:function(){return function(e){if(!(null==d?void 0:d.includes(e))){var n=u.includes(e);a.radio?m(function(t){return n?[]:[e]}):m(function(t){return n?t.filter(function(n){return n!==e}):o(o([],t,!0),[e],!1)})}}(n.id)},className:p,children:s})},t):function(e){return!!e.url}(n)?e.jsx("div",{className:Lt,children:e.jsx("a",{href:n.url,className:"".concat(p," ").concat(Mt),children:s})},t):e.jsx(e.Fragment,{})})}),p&&e.jsx("p",{id:h,className:Ot,children:p})]})},Wt={PHONE:{type:"tel",inputMode:"tel",autoComplete:"tel"},EMAIL:{type:"email",inputMode:"email",autoComplete:"email"},ZIP_CODE:{type:"text",inputMode:"numeric",autoComplete:"postal-code"},ADDRESS:{type:"text",inputMode:"text",autoComplete:"street-address"}},$t={type:"text",inputMode:"text"},Yt={name:"name",fullname:"name",yourname:"name",customername:"name",contactname:"name",firstname:"given-name",fname:"given-name",givenname:"given-name",lastname:"family-name",lname:"family-name",surname:"family-name",familyname:"family-name",email:"email",emailaddress:"email",phone:"tel",phonenumber:"tel",telephone:"tel",tel:"tel",mobile:"tel",mobilephone:"tel",cellphone:"tel",zip:"postal-code",zipcode:"postal-code",postalcode:"postal-code",postcode:"postal-code",address:"street-address",streetaddress:"street-address",street:"street-address",city:"address-level2",town:"address-level2",state:"address-level1",province:"address-level1",company:"organization",companyname:"organization",organization:"organization",business:"organization",businessname:"organization"};function qt(e){var n=e.format,r=e.name,a=e.isLastField,o=n?Wt[n]:void 0,i=a?"done":"next";if(o)return t(t({},o),{enterKeyHint:i});var p=function(e){if(e)return Yt[e.toLowerCase().replace(/[^a-z0-9]/g,"")]}(r);return t(t({},$t),p?{autoComplete:p,enterKeyHint:i}:{enterKeyHint:i})}var Gt={xapp_text_input_container__title:"xapp_form_FormFieldTextInput-module_xapp_text_input_container__title__zeqDT",xapp_text_input_container__field:"xapp_form_FormFieldTextInput-module_xapp_text_input_container__field__B5K33",xapp_text_input_counter:"xapp_form_FormFieldTextInput-module_xapp_text_input_counter__oSgo1","xapp_text_input_counter--limit":"xapp_form_FormFieldTextInput-module_xapp_text_input_counter--limit__59Lau",xapp_text_input_text:"xapp_form_FormFieldTextInput-module_xapp_text_input_text__3rHVn",xapp_text_input_root:"xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl",xapp_text_input_focused:"xapp_form_FormFieldTextInput-module_xapp_text_input_focused__TMVDB",xapp_text_input_error:"xapp_form_FormFieldTextInput-module_xapp_text_input_error__t0djn",xapp_text_input_control:"xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw",xapp_text_input_label:"xapp_form_FormFieldTextInput-module_xapp_text_input_label__mNAse",xapp_text_input_asterisk:"xapp_form_FormFieldTextInput-module_xapp_text_input_asterisk__sODty",xapp_text_input_helper:"xapp_form_FormFieldTextInput-module_xapp_text_input_helper__scKZk"};De('/**\n * The phone breakpoint.\n *\n * Width alone cannot express "phone". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step\'s action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field\'s helper / error line. The metrics are MUI\'s FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldTextInput-module_xapp_text_input_container__title__zeqDT p {\n margin: 0;\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_container__field__B5K33 {\n position: relative;\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_counter__oSgo1 {\n position: absolute;\n right: 36px;\n bottom: 8px;\n font-size: 12px;\n color: #666;\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n transition: color 200ms ease-in-out;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_counter--limit__59Lau {\n color: #d32f2f;\n font-weight: 500;\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_text__3rHVn {\n display: inline-flex;\n flex-direction: column;\n position: relative;\n width: 100%;\n min-width: 0;\n margin: 16px 0 8px;\n padding: 0;\n border: 0;\n box-sizing: border-box;\n vertical-align: top;\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n box-sizing: border-box;\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n font-size: 1rem;\n line-height: 1.4375em;\n cursor: text;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::before, .xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::after {\n display: var(--xapp-form-widget-text-underline-display, block) !important;\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::before {\n border-bottom: 1px solid rgba(0, 0, 0, 0.42);\n transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::after {\n border-bottom: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n transform: scaleX(0);\n transition: transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl:hover::before {\n border-bottom-color: rgba(0, 0, 0, 0.87);\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_focused__TMVDB::after {\n transform: scaleX(1);\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_error__t0djn .xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::before, .xapp_form_FormFieldTextInput-module_xapp_text_input_error__t0djn .xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::after {\n border-bottom-color: #d32f2f;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_error__t0djn .xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::after {\n transform: scaleX(1);\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw {\n display: block;\n min-width: 0;\n padding: 21px 12px 4px 12px !important;\n border: var(--xapp-form-widget-text-border-width, 0) solid var(--xapp-form-widget-text-border-color, transparent) !important;\n background-color: var(--xapp-form-widget-text-background-color, rgba(0, 0, 0, 0.06)) !important;\n border-radius: var(--xapp-form-widget-border-radius-sm, 8px) var(--xapp-form-widget-border-radius-sm, 8px) var(--xapp-form-widget-text-bottom-radius, 0) var(--xapp-form-widget-text-bottom-radius, 0) !important;\n transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out !important;\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87)) !important;\n font-size: var(--xapp-form-widget-text-font-size, 1rem) !important;\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif)) !important;\n line-height: 1.4375em !important;\n letter-spacing: inherit;\n height: auto !important;\n min-height: 0 !important;\n width: 100% !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n margin: 0 !important;\n margin-bottom: 0 !important;\n border-width: var(--xapp-form-widget-text-border-width, 0) !important;\n border-style: solid !important;\n box-shadow: none;\n -webkit-appearance: none !important;\n appearance: none !important;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw::placeholder {\n color: currentColor;\n opacity: 0.42;\n transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw[data-shrink=false]::placeholder {\n opacity: 0 !important;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw:hover {\n background-color: var(--xapp-form-widget-text-background-color-dark, rgba(0, 0, 0, 0.09)) !important;\n border-color: var(--xapp-form-widget-text-border-color-focus, var(--xapp-form-widget-text-border-color, transparent)) !important;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw:focus {\n background-color: var(--xapp-form-widget-text-background-color-dark, rgba(0, 0, 0, 0.09)) !important;\n border-color: var(--xapp-form-widget-text-border-color-focus, var(--xapp-form-widget-text-border-color, transparent)) !important;\n outline: none !important;\n box-shadow: inset 0 0 0 2px var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54)) !important;\n}\n\ntextarea.xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw {\n resize: none;\n overflow: auto;\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_label__mNAse {\n position: absolute !important;\n left: 0;\n top: 0;\n z-index: 1;\n display: block;\n max-width: calc(100% - 24px);\n margin: 0 !important;\n padding: 0 !important;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n pointer-events: none;\n transform-origin: top left;\n transform: translate(12px, 13px) scale(1) !important;\n transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms !important;\n color: rgba(0, 0, 0, 0.6);\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif) !important;\n font-size: 1rem !important;\n font-weight: 400 !important;\n line-height: 1.4375em !important;\n letter-spacing: 0.00938em;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_label__mNAse[data-shrink=true] {\n max-width: calc(133% - 24px);\n transform: translate(12px, 4px) scale(0.75) !important;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_focused__TMVDB .xapp_form_FormFieldTextInput-module_xapp_text_input_label__mNAse {\n color: var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_error__t0djn .xapp_form_FormFieldTextInput-module_xapp_text_input_label__mNAse {\n color: #d32f2f;\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_error__t0djn .xapp_form_FormFieldTextInput-module_xapp_text_input_asterisk__sODty {\n color: #d32f2f;\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_helper__scKZk {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n}');var Vt=function(r){var a=r.field,o=r.onFieldChange,i=r.value,p=r.errorMessage,s=r.required,d=r.isLastField,l=n.useState(i||""),c=l[0],u=l[1],m=n.useState(!1),_=m[0],f=m[1],x="xapp-text-".concat(n.useId()),h="".concat(x,"-helper-text"),g=n.useRef(null);n.useEffect(function(){o(a.name,c)},[a.name,o,c]),n.useEffect(function(){u(i||"")},[i]);var v=!!a.multiline&&!a.rows;n.useLayoutEffect(function(){var e=g.current;if(v&&e){e.style.height="auto";var n=parseFloat(getComputedStyle(e).lineHeight)||0,t=a.rowsMax&&n?n*a.rowsMax:1/0,r=Math.min(e.scrollHeight,t);r>0&&(e.style.height="".concat(r,"px"))}},[v,a.rowsMax,c]);var b=a.maxLength,y=c.length,w=void 0!==b&&y>=b,F=void 0!==b&&y>=.8*b,k=qt({format:a.format,name:a.name,isLastField:d}),S=k.type,T=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t}(k,["type"]),C=_||c.length>0||!a.label,D=t(t({},T),{id:x,name:a.name,className:Gt.xapp_text_input_control,placeholder:a.placeholder,value:c,onChange:function(e){var n=e.target.value;u(n)},onFocus:function(){return f(!0)},onBlur:function(){return f(!1)},required:s,maxLength:a.maxLength||void 0,"aria-invalid":!!p,"aria-describedby":p?h:void 0,"data-shrink":C?"true":"false"});return e.jsxs("div",{className:Gt.xapp_text_input_container,children:[a.title&&e.jsx("div",{className:Gt.xapp_text_input_container__title,children:e.jsx("p",{children:a.title})}),e.jsxs("div",{className:Gt.xapp_text_input_container__field,children:[e.jsxs("div",{className:"".concat(Gt.xapp_text_input_text," ").concat(p?Gt.xapp_text_input_error:""),style:a.style,children:[e.jsxs("div",{className:"".concat(Gt.xapp_text_input_root," ").concat(_?Gt.xapp_text_input_focused:""," ").concat(a.multiline?Gt.xapp_text_input_multiline:""),children:[a.label&&e.jsxs("label",{htmlFor:x,className:Gt.xapp_text_input_label,"data-shrink":C?"true":"false",children:[a.label,s&&e.jsx("span",{className:Gt.xapp_text_input_asterisk,"aria-hidden":"true",children:" *"})]}),a.multiline?e.jsx("textarea",t({},D,{ref:g,rows:a.rows||1})):e.jsx("input",t({},D,{type:S}))]}),p&&e.jsx("p",{id:h,className:Gt.xapp_text_input_helper,children:p})]}),F&&e.jsxs("div",{className:"".concat(Gt.xapp_text_input_counter," ").concat(w?Gt["xapp_text_input_counter--limit"]:""),children:[y,"/",b]})]})]})},Jt="xapp_form_FormFieldDropdown-module_xapp_dropdown_container__4oRlr",Kt="xapp_form_FormFieldDropdown-module_xapp_dropdown_control__Dbrih",Zt="xapp_form_FormFieldDropdown-module_xapp_dropdown_select__CH-Gc",Xt="xapp_form_FormFieldDropdown-module_xapp_dropdown_arrow__hX1wc",Qt="xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy",er="xapp_form_FormFieldDropdown-module_xapp_dropdown_label__chOkA",nr="xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B",tr="xapp_form_FormFieldDropdown-module_xapp_dropdown_helper__uYy73",rr="xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form__h8qhc",ar="xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form_input__Fc7Ow";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_container__4oRlr {\n margin-top: 20px;\n margin-bottom: 20px;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_control__Dbrih {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n box-sizing: border-box;\n border-radius: 4px;\n background-color: var(--xapp-form-widget-dropdown-background-color, transparent);\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_select__CH-Gc {\n display: block;\n width: 100% !important;\n max-width: 100% !important;\n height: auto !important;\n min-height: 1.4375em;\n box-sizing: border-box !important;\n margin: 0 !important;\n padding: 8.5px 32px 8.5px 14px !important;\n border: 0 !important;\n border-radius: 4px;\n outline: 0;\n background: transparent none !important;\n box-shadow: none !important;\n -webkit-appearance: none !important;\n -moz-appearance: none !important;\n appearance: none !important;\n cursor: pointer;\n color: var(--xapp-form-widget-dropdown-color, rgba(0, 0, 0, 0.87)) !important;\n font-size: var(--xapp-form-widget-dropdown-font-size, 14px);\n font-family: var(--xapp-form-widget-dropdown-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n line-height: 1.4375em !important;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldDropdown-module_xapp_dropdown_select__CH-Gc {\n font-size: var(--xapp-form-widget-dropdown-font-size-mobile, 16px);\n }\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_arrow__hX1wc {\n position: absolute;\n right: 7px;\n top: calc(50% - 0.5em);\n font-size: 24px;\n color: rgba(0, 0, 0, 0.54);\n pointer-events: none;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy {\n position: absolute;\n inset: -5px 0 0;\n margin: 0 !important;\n padding: 0 8px !important;\n min-width: 0;\n border: 1px solid rgba(0, 0, 0, 0.23) !important;\n border-radius: inherit;\n text-align: left;\n overflow: hidden;\n pointer-events: none;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy legend {\n float: unset;\n display: block;\n width: auto;\n max-width: 100%;\n height: 11px;\n margin: 0 !important;\n padding: 0 !important;\n border: 0 !important;\n font-size: 0.75em;\n visibility: hidden;\n white-space: nowrap;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy legend > span {\n display: inline-block;\n padding-left: 5px;\n padding-right: 5px;\n opacity: 0;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_control__Dbrih:hover .xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy {\n border-color: rgba(0, 0, 0, 0.87) !important;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_control__Dbrih:focus-within .xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy {\n border: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54)) !important;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_label__chOkA {\n position: absolute !important;\n left: 0;\n top: 0;\n z-index: 1;\n max-width: calc(133% - 32px);\n margin: 0 !important;\n padding: 0 !important;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n pointer-events: none;\n transform-origin: top left;\n transform: translate(14px, -9px) scale(0.75) !important;\n color: rgba(0, 0, 0, 0.6);\n font-family: var(--xapp-form-widget-dropdown-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n font-size: 1rem !important;\n font-weight: 400;\n line-height: 1.4375em;\n letter-spacing: 0.00938em;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_control__Dbrih:focus-within .xapp_form_FormFieldDropdown-module_xapp_dropdown_label__chOkA {\n color: var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B .xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy, .xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B:hover .xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy, .xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B:focus-within .xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy {\n border-color: #d32f2f !important;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B .xapp_form_FormFieldDropdown-module_xapp_dropdown_label__chOkA, .xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B:focus-within .xapp_form_FormFieldDropdown-module_xapp_dropdown_label__chOkA {\n color: #d32f2f;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_helper__uYy73 {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form__h8qhc {\n margin-top: 8px;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form_input__Fc7Ow {\n display: block;\n width: 100% !important;\n max-width: 100% !important;\n height: auto !important;\n box-sizing: border-box !important;\n margin: 0 !important;\n padding: 8.5px 14px !important;\n border: 1px solid rgba(0, 0, 0, 0.23) !important;\n border-radius: 4px !important;\n background: var(--xapp-form-widget-dropdown-background-color, transparent) !important;\n box-shadow: none !important;\n color: var(--xapp-form-widget-dropdown-color, rgba(0, 0, 0, 0.87)) !important;\n font-size: var(--xapp-form-widget-dropdown-font-size, 14px);\n font-family: var(--xapp-form-widget-dropdown-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n line-height: 1.4375em !important;\n -webkit-appearance: none;\n appearance: none;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form_input__Fc7Ow:hover {\n border-color: rgba(0, 0, 0, 0.87) !important;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form_input__Fc7Ow:focus {\n outline: 0;\n border: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54)) !important;\n padding: 7.5px 13px !important;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form_input__Fc7Ow.xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B {\n border-color: #d32f2f !important;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form_input__Fc7Ow {\n font-size: var(--xapp-form-widget-dropdown-font-size-mobile, 16px);\n }\n}");var or=function(t){var r=t.field,a=t.onFieldChange,o=t.errorMessage,i=t.required,p=t.freeFormErrorMessage,s="".concat(r.name,"-helper-text"),d="".concat(r.name,"-free-form"),l="".concat(d,"-helper-text"),c=n.useState(function(){var e=r.items.find(function(e){return e.selected});return(null==e?void 0:e.id)||"none"}),u=c[0],m=c[1],_=n.useState(""),f=_[0],x=_[1],h=n.useState(function(){var e=r.items.find(function(e){return e.selected});return(null==e?void 0:e.freeFormInput)||!1}),g=h[0],v=h[1],b=n.useRef(a);n.useEffect(function(){"development"===process.env.NODE_ENV&&b.current!==a&&console.warn("FormFieldDropdown: onFieldChange prop is not memoized. This may cause performance issues. Please wrap it in useCallback in the parent component."),b.current=a},[a]);var y=n.useMemo(function(){if(g){var e=r.items.find(function(e){return e.id===u});return(null==e?void 0:e.freeFormFieldName)||"message"}return null},[g,u,r.items]);return n.useEffect(function(){"none"!==u&&a(r.name,u),g&&f&&y&&a(y,f)},[u,f,g,r.name,y,a]),e.jsxs("div",{className:Jt,children:[e.jsxs("div",{className:"".concat(Kt," ").concat(o?nr:""),children:[e.jsxs("label",{htmlFor:r.name,className:er,children:[r.title,i&&e.jsx("span",{"aria-hidden":"true",children:" *"})]}),e.jsxs("select",{className:Zt,name:r.name,id:r.name,value:u,onChange:function(e){var n=e.target.value,t=r.items.find(function(e){return e.id===u});m(n);var o=r.items.find(function(e){return e.id===n});if(o&&o.freeFormInput)v(!0);else if(v(!1),(null==t?void 0:t.freeFormInput)&&f){var i=(null==t?void 0:t.freeFormFieldName)||"message";x(""),a(i,"")}},required:i,"aria-invalid":!!o,"aria-describedby":o?s:void 0,children:[e.jsx("option",{value:"none",children:"Select an option"}),r.items.map(function(n){return e.jsx("option",{value:n.id,children:n.label},n.id)})]}),e.jsx(en,{className:Xt}),e.jsx("fieldset",{"aria-hidden":"true",className:Qt,children:e.jsx("legend",{children:e.jsxs("span",{children:[r.title,i&&" *"]})})})]}),o&&e.jsx("p",{id:s,className:tr,children:o}),g&&e.jsxs("div",{className:rr,children:[e.jsx("input",{type:"text",id:d,className:"".concat(ar," ").concat(p?nr:""),required:!0,placeholder:"Please specify","aria-label":"Please specify",value:f,onChange:function(e){x(e.target.value)},maxLength:r.maxLength||void 0,"aria-invalid":!!p,"aria-describedby":p?l:void 0}),p&&e.jsx("p",{id:l,className:tr,children:p})]})]})},ir="xapp_form_Calendar-module_xapp_calendar__g0vk4",pr="xapp_form_Calendar-module_xapp_calendar_header__rpFZl",sr="xapp_form_Calendar-module_xapp_calendar_label__JueKy",dr="xapp_form_Calendar-module_xapp_calendar_nav__RRUAJ",lr="xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D",cr="xapp_form_Calendar-module_xapp_calendar_week__7Ouri",ur="xapp_form_Calendar-module_xapp_calendar_weeks__EdB4Q",mr="xapp_form_Calendar-module_xapp_calendar_skeleton__yL-4v",_r="xapp_form_Calendar-module_xapp_calendar_weekday__NzfbO",fr="xapp_form_Calendar-module_xapp_calendar_day__Lb9-E",xr="xapp_form_Calendar-module_xapp_calendar_day_outside__4XT5w",hr="xapp_form_Calendar-module_xapp_calendar_day_today__uclpX",gr="xapp_form_Calendar-module_xapp_calendar_day_selected__qi4gk",vr="xapp_form_Calendar-module_xapp_calendar_filler__8Rf7z",br="xapp_form_Calendar-module_xapp_calendar_skeleton_day__yJl4Q";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n/* The month calendar that replaced @mui/x-date-pickers' DateCalendar (#1745).\n *\n * The metrics are MUI's own - a 320px calendar, 36px round days with a 2px gap, a 40px header -\n * so an unthemed calendar looks as it did. Box properties carry !important where a host page's\n * `button { ... }` rules would otherwise reach in: the widget is embedded on sites we do not\n * control, and MUI's emotion styles used to win those fights for us. */\n.xapp_form_Calendar-module_xapp_calendar__g0vk4 {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: 320px;\n max-width: 100%;\n margin: 0 auto;\n color: var(--xapp-form-widget-date-color, rgba(0, 0, 0, 0.87));\n font-family: var(--xapp-form-widget-date-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n}\n\n.xapp_form_Calendar-module_xapp_calendar_header__rpFZl {\n display: flex;\n align-items: center;\n min-height: 40px;\n max-height: 40px;\n margin: 12px 0 4px;\n padding: 0 12px 0 24px;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_label__JueKy {\n flex: 1 1 auto;\n margin-right: auto;\n font-family: inherit;\n font-size: 1rem;\n font-weight: 500;\n line-height: 1.75;\n letter-spacing: 0.00938em;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_nav__RRUAJ {\n display: flex;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D {\n appearance: none;\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 0 !important;\n min-height: 0 !important;\n padding: 0 !important;\n border: 0 !important;\n background-image: none !important;\n box-shadow: none !important;\n font-family: inherit;\n text-transform: none;\n cursor: pointer;\n width: 40px !important;\n height: 40px !important;\n border-radius: 50% !important;\n background-color: transparent !important;\n color: rgba(0, 0, 0, 0.54) !important;\n font-size: 1.5rem;\n}\n.xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D:hover:not(:disabled) {\n background-color: rgba(0, 0, 0, 0.04) !important;\n}\n.xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D:disabled {\n color: rgba(0, 0, 0, 0.26) !important;\n cursor: default;\n}\n.xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D:focus {\n outline: none;\n}\n.xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_week__7Ouri {\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 2px 0;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_weeks__EdB4Q,\n.xapp_form_Calendar-module_xapp_calendar_skeleton__yL-4v {\n min-height: 240px;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_weekday__NzfbO {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 36px;\n height: 40px;\n margin: 0 2px;\n color: rgba(0, 0, 0, 0.6);\n font-size: 0.75rem;\n font-weight: 400;\n line-height: 1.66;\n letter-spacing: 0.03333em;\n text-align: center;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_day__Lb9-E {\n appearance: none;\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 0 !important;\n min-height: 0 !important;\n padding: 0 !important;\n border: 0 !important;\n background-image: none !important;\n box-shadow: none !important;\n font-family: inherit;\n text-transform: none;\n cursor: pointer;\n width: 36px !important;\n height: 36px !important;\n margin: 0 2px !important;\n border-radius: 50% !important;\n background-color: transparent !important;\n color: inherit !important;\n font-size: 0.75rem;\n font-weight: 400;\n line-height: 1.66;\n letter-spacing: 0.03333em;\n transition: background-color 200ms ease-in-out;\n}\n.xapp_form_Calendar-module_xapp_calendar_day__Lb9-E:hover:not(:disabled) {\n background-color: rgba(25, 118, 210, 0.04) !important;\n}\n.xapp_form_Calendar-module_xapp_calendar_day__Lb9-E:disabled {\n color: rgba(0, 0, 0, 0.38) !important;\n cursor: default;\n}\n.xapp_form_Calendar-module_xapp_calendar_day__Lb9-E:focus {\n outline: none;\n}\n.xapp_form_Calendar-module_xapp_calendar_day__Lb9-E:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_day_outside__4XT5w {\n color: rgba(0, 0, 0, 0.6) !important;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_day_today__uclpX:not(.xapp_form_Calendar-module_xapp_calendar_day_selected__qi4gk) {\n border: 1px solid rgba(0, 0, 0, 0.6) !important;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_day_selected__qi4gk {\n background-color: var(--xapp-form-widget-date-background-color-selected, #1976d2) !important;\n color: #ffffff !important;\n font-weight: 500;\n}\n.xapp_form_Calendar-module_xapp_calendar_day_selected__qi4gk:hover:not(:disabled) {\n background-color: var(--xapp-form-widget-date-background-color-selected, #1976d2) !important;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_filler__8Rf7z {\n width: 36px;\n height: 36px;\n margin: 0 2px;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_skeleton_day__yJl4Q {\n width: 36px;\n height: 36px;\n margin: 0 2px;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.11);\n animation: xapp_form_Calendar-module_xapp_calendar_pulse__LTQW7 2s ease-in-out 0.5s infinite;\n}\n\n@keyframes xapp_form_Calendar-module_xapp_calendar_pulse__LTQW7 {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .xapp_form_Calendar-module_xapp_calendar_skeleton_day__yJl4Q {\n animation: none;\n }\n}\n/* Phones: 44x44 days, weekday labels and month arrows (WCAG 2.5.8, Apple's HIG). Date selection\n * is the most expensive mis-tap in this funnel. Seven 44px columns only fit the 320px calendar\n * once the 2px side gaps go, so the gap goes rather than the cell. */\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_Calendar-module_xapp_calendar_day__Lb9-E {\n width: 44px !important;\n height: 44px !important;\n margin: 0 !important;\n font-size: 0.875rem;\n }\n .xapp_form_Calendar-module_xapp_calendar_weekday__NzfbO {\n width: 44px;\n height: 44px;\n margin: 0;\n }\n .xapp_form_Calendar-module_xapp_calendar_filler__8Rf7z,\n .xapp_form_Calendar-module_xapp_calendar_skeleton_day__yJl4Q {\n width: 44px;\n height: 44px;\n margin: 0;\n }\n .xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D {\n width: 44px !important;\n height: 44px !important;\n }\n .xapp_form_Calendar-module_xapp_calendar_weeks__EdB4Q,\n .xapp_form_Calendar-module_xapp_calendar_skeleton__yL-4v {\n min-height: 288px;\n }\n}");function yr(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(function(e){return!!e}).join(" ")}var wr=function(t){var r=t.value,a=t.onChange,o=t.shouldDisableDate,i=t.minDate,p=t.maxDate,s=t.referenceDate,d=t.loading,l=t.showDaysOutsideCurrentMonth,c=t.fixedWeekNumber,u=t.getDayClassName,m=t.classes,_=void 0===m?{}:m,f=t.className,x=n.useMemo(function(){return(t.today||Gn()).startOf("day")},[t.today?t.today.format("YYYY-MM-DD"):void 0]),h=n.useId(),g=n.useRef(null),v=n.useRef(!1),b=n.useState(function(){return(r||s||x).startOf("month")}),y=b[0],w=b[1],F=n.useState(function(){return(r||x).startOf("day")}),k=F[0],S=F[1],T=r?r.format("YYYY-MM-DD"):void 0;n.useEffect(function(){r&&(S(r.startOf("day")),w(function(e){return r.isSame(e,"month")?e:r.startOf("month")}))},[T]);var C=n.useCallback(function(e){return!!i&&e.isBefore(i,"day")||!!p&&e.isAfter(p,"day")},[i,p]),D=n.useCallback(function(e){return C(e)||!!o&&o(e)},[C,o]),N=n.useCallback(function(e,n,t){for(var r=e.isBefore(n,"day")?n:e.isAfter(t,"day")?t:e,a=t.diff(n,"day"),o=0;o<=a;o++)for(var i=0,p=[r.add(-o,"day"),r.add(o,"day")];i<p.length;i++){var s=p[i];if(!s.isBefore(n,"day")&&!s.isAfter(t,"day")&&!D(s))return s}},[D]),I=n.useMemo(function(){return k.isSame(y,"month")&&!D(k)?k:N(k,y.startOf("month"),y.endOf("month").startOf("day"))},[k,y,D,N]);n.useEffect(function(){var e;if(v.current){v.current=!1;var n=String(k.valueOf()),t=null===(e=g.current)||void 0===e?void 0:e.querySelector('[data-timestamp="'.concat(n,'"]'));null==t||t.focus()}},[k,y]);var R=function(e,n){for(var t=e,r=0;r<366;r+=Math.abs(n)){if(t=t.add(n,"day"),C(t))return;if(!D(t))return t}},A=function(e,n){var t=e.add(n,"month");return N(t,t.startOf("month"),t.endOf("month").startOf("day"))},j=function(e,n){var t;switch(e.key){case"ArrowLeft":t=R(n,-1);break;case"ArrowRight":t=R(n,1);break;case"ArrowUp":t=R(n,-7);break;case"ArrowDown":t=R(n,7);break;case"Home":case"End":var r="Home"===e.key?n.startOf("week"):n.endOf("week").startOf("day");l||r.isSame(n,"month")||(r="Home"===e.key?n.startOf("month"):n.endOf("month").startOf("day")),t=function(e,n){for(var t=n.isBefore(e,"day")?-1:1,r=Math.abs(n.diff(e,"day")),a=0;a<=r;a++){var o=e.add(a*t,"day");if(!D(o))return o}}(r,n);break;case"PageUp":t=A(n,-1);break;case"PageDown":t=A(n,1);break;default:return}e.preventDefault(),t&&!t.isSame(n,"day")&&function(e){v.current=!0,S(e),e.isSame(y,"month")||w(e.startOf("month"))}(t)},M=!!i&&!y.isAfter(i,"month"),E=!!p&&!y.isBefore(p,"month"),O=n.useMemo(function(){return function(e,n){var t=e.startOf("month"),r=Math.ceil((t.day()+t.daysInMonth())/7),a=Math.max(r,n||0),o=t.startOf("week");return Array.from({length:a},function(e,n){return Array.from({length:7},function(e,t){return o.add(7*n+t,"day")})})}(y,c)},[y,c]),z=O[0];return e.jsxs("div",{className:yr(ir,f),"data-xapp-calendar":"",children:[e.jsxs("div",{className:yr(pr,_.header),children:[e.jsx("span",{"aria-live":"polite",className:sr,id:h,children:y.format("MMMM YYYY")}),e.jsxs("div",{className:dr,children:[e.jsx("button",{"aria-label":"Previous month",className:lr,disabled:M,onClick:function(){return w(y.add(-1,"month"))},type:"button",children:e.jsx(nn,{})}),e.jsx("button",{"aria-label":"Next month",className:lr,disabled:E,onClick:function(){return w(y.add(1,"month"))},type:"button",children:e.jsx(tn,{})})]})]}),e.jsxs("div",{"aria-busy":!!d||void 0,"aria-labelledby":h,ref:g,role:"grid",children:[e.jsx("div",{className:cr,role:"row",children:z.map(function(n){return e.jsx("span",{"aria-label":n.format("dddd"),className:yr(_r,_.weekday),role:"columnheader",children:n.format("dd").charAt(0)},n.day())})}),d?e.jsx("div",{"aria-hidden":"true",className:mr,children:O.map(function(n,t){return e.jsx("div",{className:cr,children:n.map(function(n){return e.jsx("span",{className:br},n.valueOf())})},t)})}):e.jsx("div",{className:yr(ur,_.weeks),role:"rowgroup",children:O.map(function(n,t){return e.jsx("div",{className:cr,role:"row",children:n.map(function(n){var t=!n.isSame(y,"month");if(t&&!l)return e.jsx("span",{className:vr,role:"gridcell"},n.valueOf());var o=D(n),i=!!r&&n.isSame(r,"day"),p=n.isSame(x,"day");return e.jsx("button",{"aria-current":p?"date":void 0,"aria-label":n.format("dddd, MMMM D, YYYY"),"aria-selected":i,className:yr(fr,_.day,i&&gr,i&&_.daySelected,p&&hr,p&&_.dayToday,t&&xr,u&&u(n,o)),"data-timestamp":n.valueOf(),disabled:o,onClick:function(){return function(e){S(e),e.isSame(y,"month")||w(e.startOf("month")),a(e)}(n)},onKeyDown:function(e){return j(e,n)},role:"gridcell",tabIndex:I&&n.isSame(I,"day")?0:-1,type:"button",children:n.date()},n.valueOf())})},t)})})]})]})};function Fr(e){if(e){var n=e.split(",").map(function(e){return e.trim()}).filter(function(e){return!!e});return n.length>0?n:void 0}}function kr(e,n){if(!n||0===n.length)return!1;var t=e.format("YYYY-MM-DD"),r=e.format("dddd");return n.some(function(e){return Sr(t,e)||Sr(r,e)})}function Sr(e,n){var t=n.split("*").map(Tr).join(".*");return new RegExp("^".concat(t,"$")).test(e)}function Tr(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function Cr(e,n){return Array.isArray(n.availableDays)&&n.availableDays.length>0?n.availableDays.map(function(e){return e.toLowerCase()}).includes(e.format("dddd").toLowerCase()):0!==e.day()&&6!==e.day()}var Dr="xapp_form_FormFieldDate-module_xapp_date_picker_container__d8LYB",Nr="xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1",Ir="xapp_form_FormFieldDate-module_xapp_date_picker_header__-IdYL",Rr="xapp_form_FormFieldDate-module_xapp_date_picker_weekday__G7-Zs",Ar="xapp_form_FormFieldDate-module_xapp_date_picker_weeks__GeGSq",jr="xapp_form_FormFieldDate-module_xapp_date_picker_day__NFNvS",Mr="xapp_form_FormFieldDate-module_xapp_date_picker_day_today__mxuN9",Er="xapp_form_FormFieldDate-module_xapp_date_picker_past__ECo-S",Or="xapp_form_FormFieldDate-module_xapp_date_picker_available__2Xtlu",zr="xapp_form_FormFieldDate-module_xapp_date_picker_day_selected__10ZGY",Pr="xapp_form_FormFieldDate-module_xapp_date_picker_loading__z6hMR",Lr="xapp_form_FormFieldDate-module_xapp_date_picker_error__GFfVJ";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldDate-module_xapp_date_picker_container__d8LYB {\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n font-family: var(--xapp-form-widget-date-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n}\n\n/* The compact look this field has always shipped with, now on the shared Calendar (#1745).\n *\n * Until #1745 these rules targeted MUI's class names. The published bundle keeps CSS-module\n * names unchanged, so there they matched and drew 30px days tinted by availability; Storybook\n * hashes the names, so it never showed them. The Calendar's parts carry these classes directly\n * now, so both builds draw the production look.\n *\n * Each rule is scoped under `.xapp_date_picker` so it outranks the Calendar's own rule for the\n * same part whichever order the two stylesheets load in. */\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_header__-IdYL {\n margin-top: 10px;\n margin-bottom: 4px;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_weekday__G7-Zs {\n width: 30px;\n height: 32px;\n font-weight: 600;\n font-size: 0.75rem;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_weeks__GeGSq {\n min-height: 200px;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day__NFNvS {\n width: 30px !important;\n height: 30px !important;\n font-weight: 600;\n font-size: 0.75rem;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day__NFNvS:hover:not(:disabled) {\n background-color: #cfd8da !important;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day__NFNvS:disabled {\n font-weight: 300;\n text-decoration: line-through;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day_today__mxuN9 {\n font-weight: bold;\n color: #321aa3 !important;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_past__ECo-S {\n background-color: rgba(48, 49, 53, 0.2392156863) !important;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_available__2Xtlu {\n background-color: rgba(0, 255, 21, 0.1607843137) !important;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day_selected__10ZGY {\n background-color: var(--xapp-form-widget-date-background-color-selected, #1976d2) !important;\n color: #fff !important;\n font-weight: 600;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day_selected__10ZGY:hover:not(:disabled) {\n background-color: var(--xapp-form-widget-date-background-color-selected, #1976d2) !important;\n}\n\n.xapp_form_FormFieldDate-module_xapp_date_picker_loading__z6hMR {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n margin: 14px 0 -14px 98px !important;\n color: inherit !important;\n}\n\n.xapp_form_FormFieldDate-module_xapp_date_picker_error__GFfVJ {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n margin: 14px 0 -14px 14px !important;\n}\n\n/* Mobile: 44x44 tappable day cells.\n *\n * Date selection is the most expensive mis-tap in this funnel - the visitor either books the\n * wrong day or gives up - and the 30px cells above are under the 44x44 that Apple's HIG and\n * WCAG 2.5.8 ask for. Seven 44px columns fit the 320px calendar once the 2px side margins go,\n * hence dropping the gap rather than the cell. */\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day__NFNvS {\n width: 44px !important;\n height: 44px !important;\n margin: 0 !important;\n font-size: 0.875rem;\n }\n .xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_weekday__G7-Zs {\n width: 44px;\n height: 44px;\n margin: 0;\n }\n .xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_weeks__GeGSq {\n min-height: 264px;\n }\n}");var Hr={blockWeekends:!0,blockCurrentDay:!0,blockNextBusinessDays:2},Ur=function(t){var r=Gn().add(2,"month"),a=Gn(),o=t.field,i=t.onFieldChange,p=t.errorMessage,s=t.busyDays,d=t.loading,l=t.blockedDate,c=n.useState(),u=c[0],m=c[1];n.useEffect(function(){i(o.name,u)},[u,o.name,i]);var _=Fr(s),f=n.useCallback(function(e){if(l&&e.format("YYYY-MM-DD")===l)return!0;if(!_)return function(e,n,t){if(n.blockWeekends&&(0===e.day()||6===e.day()))return!0;if(n.blockCurrentDay&&e.isSame(t,"day"))return!0;if(n.blockNextBusinessDays){for(var r=t,a=0,o=0;a<n.blockNextBusinessDays&&o<366;)o++,Cr(r=r.add(1,"day"),n)&&a++;if(e.isBefore(r,"day"))return!0}return!!(n.currentDayAvailableUntil&&e.isSame(t,"day")&&t.format("HH:mm")>n.currentDayAvailableUntil)||!(!(Array.isArray(n.availableDays)&&n.availableDays.length>0)||n.availableDays.map(function(e){return e.toLowerCase()}).includes(e.format("dddd").toLowerCase()))}(e,Object.keys((null==o?void 0:o.defaultBusyDays)||{}).length>0?o.defaultBusyDays||{}:Hr,a);try{return kr(e,_)}catch(e){console.error("shouldDisableDate: ".concat(e))}return!1},[a,_,o.defaultBusyDays,l]);return e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignContent:"center",alignItems:"center"},children:[e.jsx("div",{className:Dr,children:e.jsx(wr,{className:Nr,classes:{header:Ir,weekday:Rr,weeks:Ar,day:jr,daySelected:zr,dayToday:Mr},fixedWeekNumber:6,getDayClassName:function(e,n){var t=e.isBefore(a,"day"),o=e.isAfter(r,"day");return t||o?Er:n?void 0:Or},loading:d,maxDate:r,minDate:a,onChange:function(e){m(e)},shouldDisableDate:f,showDaysOutsideCurrentMonth:!0,today:a,value:u})}),d&&e.jsx("p",{className:Pr,children:"Getting latest availability..."}),!d&&p&&e.jsx("p",{className:Lr,children:p})]})},Br=/^\d{4}-\d{2}-\d{2}/;function Wr(e){if(!e)return"";if("string"==typeof e&&Br.test(e))return e.slice(0,10);var n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":n.toISOString().slice(0,10)}var $r=function(r){var a,o,i=r.field,p=r.onFieldChange,s=r.value,d=r.errorMessage,l=r.required,c=r.isLastField,u=Wr((null==s?void 0:s.from)||(null===(a=i.preselecteDates)||void 0===a?void 0:a.from)),m=Wr((null==s?void 0:s.to)||(null===(o=i.preselecteDates)||void 0===o?void 0:o.to)),_=n.useState({from:u,to:m}),f=_[0],x=_[1];n.useEffect(function(){x({from:u,to:m})},[u,m]);var h=function(e){x(e),p(i.name,e.from||e.to?e:void 0)},g="".concat(i.name,"-from"),v="".concat(i.name,"-to");return e.jsxs("div",{style:i.style,children:[i.title&&e.jsx("h2",{children:i.title}),e.jsx("label",{htmlFor:g,children:"From"}),e.jsx("input",{id:g,name:g,type:"date",value:f.from,onChange:function(e){h(t(t({},f),{from:e.target.value}))},max:f.to||void 0,required:l,enterKeyHint:"next"}),e.jsx("label",{htmlFor:v,children:"To"}),e.jsx("input",{id:v,name:v,type:"date",value:f.to,onChange:function(e){h(t(t({},f),{to:e.target.value}))},min:f.from||void 0,required:l,enterKeyHint:c?"done":"next"}),d&&e.jsx("p",{children:d})]})},Yr=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})$/;function qr(){return"undefined"!=typeof window&&window.location?function(e){if(e){var n;try{n=new URLSearchParams(e).get("window")}catch(e){return}if(n){var t=n.split("/"),r=t[0],a=t[1];if(Yr.test(r||"")&&Yr.test(a||"")&&Date.parse(a)>Date.parse(r))return{start:r,end:a}}}}(window.location.search):void 0}var Gr="xapp_form_FormFieldDateTime-module_xapp_datetime__rPNwE",Vr="xapp_form_FormFieldDateTime-module_xapp_datetime_title__VNHwW",Jr="xapp_form_FormFieldDateTime-module_xapp_datetime_body__ta9Ui",Kr="xapp_form_FormFieldDateTime-module_xapp_datetime_calendar__Ge5W6",Zr="xapp_form_FormFieldDateTime-module_xapp_datetime_times_column__UY7ho",Xr="xapp_form_FormFieldDateTime-module_xapp_datetime_timezone__ZE56Q",Qr="xapp_form_FormFieldDateTime-module_xapp_datetime_times__rhU-O",ea="xapp_form_FormFieldDateTime-module_xapp_datetime_group__CeL-E",na="xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl",ta="xapp_form_FormFieldDateTime-module_xapp_datetime_time_selected__IRT84",ra="xapp_form_FormFieldDateTime-module_xapp_datetime_message__4rf-S",aa="xapp_form_FormFieldDateTime-module_xapp_datetime_error__bTyZK";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldDateTime-module_xapp_datetime__rPNwE {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n font-family: var(--xapp-form-widget-date-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_title__VNHwW {\n margin: 0 0 8px;\n font-family: inherit;\n font-size: 1rem;\n text-align: center;\n}\n\n/* Calendar and column side by side on a wide enough viewport.\n *\n * `flex-wrap` rather than a fixed two-column grid: the pair has to be allowed to fall\n * onto two rows rather than force the step to scroll sideways, which is the failure the\n * mobile rule below would otherwise only fix at the breakpoint. */\n.xapp_form_FormFieldDateTime-module_xapp_datetime_body__ta9Ui {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: flex-start;\n gap: 16px;\n width: 100%;\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_calendar__Ge5W6 {\n flex: 0 0 auto;\n}\n\n/* The zone notice and the column travel together, so the sizing the column used to own\n * lives here now - the column itself keeps only the scrolling, which the notice must\n * stay outside of or it scrolls away from the times it describes. */\n.xapp_form_FormFieldDateTime-module_xapp_datetime_times_column__UY7ho {\n flex: 1 1 160px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 0;\n max-width: 240px;\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_timezone__ZE56Q {\n margin: 0;\n padding: 0 4px;\n font-size: var(--xapp-form-widget-date-font-size, 14px);\n text-align: left;\n}\n\n/* A column of buttons rather than chips: a half-hour schedule produces 16 or more\n * offerings and chips wrap into an unreadable block past a handful. */\n.xapp_form_FormFieldDateTime-module_xapp_datetime_times__rhU-O {\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 0;\n max-height: 320px;\n overflow-y: auto;\n padding: 4px;\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_group__CeL-E {\n position: sticky;\n top: 0;\n z-index: 1;\n margin: 4px 0 0;\n padding: 4px 0;\n background-color: #ffffff;\n font-family: inherit;\n font-size: var(--xapp-form-widget-date-font-size, 14px);\n font-weight: 600;\n text-align: left;\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl {\n flex: 0 0 auto;\n min-height: 44px;\n padding: 8px 12px;\n border: 1px solid var(--xapp-form-widget-chips-background-color, #c4dced);\n border-radius: var(--xapp-form-widget-border-radius-sm, 8px);\n background-color: transparent;\n /* Not $form-chips-color: that is the chips' FOREGROUND, authored to sit on the filled\n * chip background. This button is transparent, so a theme whose chips are dark with\n * white text - the common case - renders white on white and the times vanish. The\n * body text colour is the one that belongs on the form's own background. */\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87));\n font-family: var(--xapp-form-widget-chips-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n font-size: var(--xapp-form-widget-chips-font-size, 0.875em);\n font-weight: 600;\n cursor: pointer;\n transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out, transform 150ms ease-in-out;\n}\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl:hover {\n background-color: var(--xapp-form-widget-chips-background-color, #c4dced);\n /* Background and foreground move together: whenever the chip background is\n * applied, the colour the theme paired with it applies too. */\n color: var(--xapp-form-widget-chips-color, #000000);\n box-shadow: var(--xapp-form-widget-box-shadow-subtle, 0 2px 8px rgba(0, 0, 0, 0.08));\n}\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl:active {\n transform: scale(0.98);\n}\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl:focus {\n outline: none;\n}\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl {\n font-size: 16px;\n }\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time_selected__IRT84 {\n border-color: var(--xapp-form-widget-chips-background-color-selected, var(--xapp-form-widget-chips-background-color-dark, #6e7ae1));\n background-color: var(--xapp-form-widget-chips-background-color-selected, var(--xapp-form-widget-chips-background-color-dark, #6e7ae1));\n color: var(--xapp-form-widget-chips-color-selected, #ffffff);\n}\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time_selected__IRT84:hover {\n background-color: var(--xapp-form-widget-chips-background-color-selected, var(--xapp-form-widget-chips-background-color-dark, #6e7ae1));\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_message__4rf-S {\n margin: 8px 0;\n font-size: var(--xapp-form-widget-date-font-size, 14px);\n text-align: center;\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_error__bTyZK {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n margin-top: 14px !important;\n}\n\n/* Stacked, with the column under the calendar and given room to scroll on its own. */\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldDateTime-module_xapp_datetime_body__ta9Ui {\n flex-direction: column;\n align-items: center;\n }\n .xapp_form_FormFieldDateTime-module_xapp_datetime_times_column__UY7ho {\n width: 100%;\n max-width: 320px;\n }\n .xapp_form_FormFieldDateTime-module_xapp_datetime_times__rhU-O {\n max-height: 260px;\n }\n}");var oa="Appointment times",ia="Times shown in";function pa(e){return"".concat(e.start,"|").concat(e.end||"")}var sa=function(t){var r=t.field,a=t.onFieldChange,o=t.errorMessage,i=t.value,p=t.required,s=t.busyDays,d=t.offeringsByDate,l=t.nextBusinessDayBlock,c=t.preselectFirstAvailable,u=n.useState(function(){return"requestedWindow"in t?t.requestedWindow:qr()})[0],m=r.schedule,_=n.useMemo(function(){return t.now||new Date},[t.now]),f=n.useState(function(){return(null==i?void 0:i.date)?Gn("".concat(i.date,"T00:00:00")):void 0}),x=f[0],h=f[1],g=n.useState(function(){return i?pa(i):void 0}),v=g[0],b=g[1],y=n.useMemo(function(){return x?gt(m,x.toDate(),_,d,l):[]},[m,x,_,d,l]),w=n.useMemo(function(){return y.find(function(e){return pa(e)===v})},[y,v]),F=n.useMemo(function(){if(x&&w){var e,n,t=pt(x.toDate()),r={date:t,label:_t(w),start:w.start,datetime:ct(t,w.start,null==m?void 0:m.timezone)};return w.end&&(r.end=w.end),i&&(n=r,(e=i).date===n.date&&e.start===n.start&&e.end===n.end&&e.label===n.label&&e.datetime===n.datetime)?i:r}},[x,w,m,i]);n.useEffect(function(){a(r.name,F)},[F,r.name,a]);var k=n.useMemo(function(){return Fr(s)},[s]);n.useEffect(function(){x&&kr(x,k)&&(h(void 0),b(void 0))},[x,k]);var S=n.useMemo(function(){return c?bt(m,_,function(e){return kr(Gn(e),k)},d,l):void 0},[c,m,_,k,d,l]);n.useEffect(function(){S&&!x&&h(Gn(S))},[S,x]);var T=n.useRef(!1);n.useEffect(function(){if(!T.current&&u&&!i&&!x){T.current=!0;var e=function(e,n){if(st(n)){var t=Gn(e.start).tz(n),r=Gn(e.end).tz(n);return{date:t.format("YYYY-MM-DD"),start:t.format("HH:mm"),end:r.format("HH:mm")}}}(u,null==m?void 0:m.timezone);if(e){var n=Gn("".concat(e.date,"T00:00:00"));if(vt(m,n.toDate(),_,d,l)&&!kr(n,k)){var t=gt(m,n.toDate(),_,d,l),r=t.find(function(n){return n.start===e.start&&n.end===e.end})||t.find(function(n){return n.start===e.start});h(n),b(r?pa(r):void 0)}}}},[u,i,x,m,_,d,l,k]);var C,D=n.useCallback(function(e){return!vt(m,e.toDate(),_,d,l)||kr(e,k)},[m,_,k,d,l]),N=ft(m),I=!!m,R=null==m?void 0:m.timezone,A=st(R),j=n.useMemo(function(){if(!I)return"";var e=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||""}catch(e){return""}}();return function(e,n){var t=lt(e);if(!t)return"";var r=n&&n!==e?lt(n):"";return r&&r!==t?"".concat(ia," ").concat(t,", not your time zone (").concat(r,")."):"".concat(ia," ").concat(t,".")}(A?R:e,e)},[I,R,A]);return n.useEffect(function(){I&&!A&&console.warn('FormFieldDateTime: "'.concat(R,'" is not a usable timezone, so ')+"times are shown in the visitor's zone instead. Set the schedule's timezone to an IANA identifier such as \"America/New_York\".")},[I,R,A]),e.jsxs("div",{className:Gr,style:r.style,children:[!!r.title&&e.jsx("h2",{className:Vr,children:r.title}),e.jsxs("div",{className:Jr,children:[e.jsx("div",{className:Kr,children:e.jsx(wr,{maxDate:Gn(_).add(N,"day"),onChange:function(e){h(e),b(void 0)},referenceDate:Gn(_),shouldDisableDate:D,today:Gn(_),value:x||null})}),e.jsxs("div",{className:Zr,children:[!!j&&e.jsx("p",{className:Xr,children:j}),e.jsxs("div",{"aria-label":p?"".concat(oa," (required)"):oa,className:Qr,role:"group",children:[!x&&e.jsx("p",{className:ra,children:"Select a date to see the available times."}),!!x&&0===y.length&&e.jsx("p",{className:ra,children:"No times are available on this date."}),y.map(function(t,r){var a=pa(t),o=t.group!==C?t.group:void 0;return C=t.group,e.jsxs(n.Fragment,{children:[!!o&&e.jsx("h3",{className:ea,children:o}),e.jsx("button",{"aria-pressed":a===v,className:"".concat(na," ").concat(a===v?ta:""),onClick:function(){return b(a)},type:"button",children:_t(t)})]},"".concat(a,"-").concat(r))})]})]})]}),!!o&&e.jsx("p",{className:aa,children:o})]})},da={exports:{}};da.exports=(()=>{return e={705:e=>{e.exports=function(e,n){const t=[];return 0===n.length?t.push({text:e,highlight:!1}):n[0][0]>0&&t.push({text:e.slice(0,n[0][0]),highlight:!1}),n.forEach((r,a)=>{const o=r[0],i=r[1];t.push({text:e.slice(o,i),highlight:!0}),a===n.length-1?i<e.length&&t.push({text:e.slice(i,e.length),highlight:!1}):i<n[a+1][0]&&t.push({text:e.slice(i,n[a+1][0]),highlight:!1})}),t}}},n={},function t(r){var a=n[r];if(void 0!==a)return a.exports;var o=n[r]={exports:{}};return e[r](o,o.exports,t),o.exports}(705);var e,n})();var la=i(da.exports);function ca(e){return null!=e.placePrediction}function ua(e){var n,t=e.placePrediction;return{placeId:t.placeId,description:t.text.text,structured_formatting:{main_text:t.structuredFormat.mainText.text,secondary_text:(null===(n=t.structuredFormat.secondaryText)||void 0===n?void 0:n.text)||"",main_text_matched_substrings:(t.structuredFormat.mainText.matches||[]).map(function(e){var n,t,r;return{offset:null!==(n=e.startOffset)&&void 0!==n?n:0,length:(null!==(t=e.endOffset)&&void 0!==t?t:0)-(null!==(r=e.startOffset)&&void 0!==r?r:0)}})}}}var ma=function(){function e(e){this.baseUrl=e.baseUrl||"https://api.xapp.ai",this.key=e.apiKey}return e.prototype.getPlacePredictions=function(e,n){var t,r={};if(e.params){if(e.params.components){var a=e.params.components.split("|").filter(function(e){return e.startsWith("country:")}).map(function(e){return e.replace("country:","").toLowerCase()});a.length>0&&(r.includedRegionCodes=a)}if(e.params.language&&(r.languageCode=e.params.language),e.params.location){var o=e.params.location.split(",").map(Number),i=o[0],p=o[1];isNaN(i)||isNaN(p)||(r.locationBias={circle:{center:{latitude:i,longitude:p},radius:Number(e.params.radius)||5e4}})}}r.input=e.input,(null===(t=e.componentRestrictions)||void 0===t?void 0:t.country)?r.includedRegionCodes=[e.componentRestrictions.country.toLowerCase()]:r.includedRegionCodes||(r.includedRegionCodes=["us"]);var s="".concat(this.baseUrl,"/places/autocomplete");this.key&&(s+="?key=".concat(encodeURIComponent(this.key))),fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(function(e){if(!e.ok)throw new Error("getPlacePredictions: HTTP error! Status: ".concat(e.status));return e.json()}).then(function(e){n((e.suggestions||[]).filter(ca).map(ua))}).catch(function(e){he("getPlacePredictions: Fetch error:",e),n([])})},e.prototype.getPlaceDetails=function(e,n){var t="".concat(this.baseUrl,"/places/details/").concat(encodeURIComponent(e));this.key&&(t+="?key=".concat(encodeURIComponent(this.key))),fetch(t).then(function(e){if(!e.ok)throw new Error("getPlaceDetails: HTTP error! Status: ".concat(e.status));return e.json()}).then(function(e){n(e)}).catch(function(e){he("getPlaceDetails: Fetch error:",e),n(void 0)})},e}(),_a="xapp_form_FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM",fa="xapp_form_FormFieldTextInputAddress-module_xapp_address_anchor__HPntW",xa="xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks",ha="xapp_form_FormFieldTextInputAddress-module_xapp_address_focused__DQ0B3",ga="xapp_form_FormFieldTextInputAddress-module_xapp_address_error__inPHs",va="xapp_form_FormFieldTextInputAddress-module_xapp_address_control__4YDQD",ba="xapp_form_FormFieldTextInputAddress-module_xapp_address_label__lrzNq",ya="xapp_form_FormFieldTextInputAddress-module_xapp_address_asterisk__hVgBb",wa="xapp_form_FormFieldTextInputAddress-module_xapp_address_helper__CU-Ne",Fa="xapp_form_FormFieldTextInputAddress-module_xapp_address_popup__dw-zo",ka="xapp_form_FormFieldTextInputAddress-module_xapp_address_listbox__o7hkI",Sa="xapp_form_FormFieldTextInputAddress-module_xapp_address_option__nGWID",Ta="xapp_form_FormFieldTextInputAddress-module_xapp_address_option_active__KX0-4",Ca="xapp_form_FormFieldTextInputAddress-module_xapp_address_option_icon__N4n4Y",Da="xapp_form_FormFieldTextInputAddress-module_xapp_address_option_text__C2ulS",Na="xapp_form_FormFieldTextInputAddress-module_xapp_address_secondary__YipJC",Ia="xapp_form_FormFieldTextInputAddress-module_xapp_address_no_options__zSLTf",Ra="xapp_form_FormFieldTextInputAddress-module_xapp_address_attribution__VGy3K";De('/**\n * The phone breakpoint.\n *\n * Width alone cannot express "phone". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step\'s action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field\'s helper / error line. The metrics are MUI\'s FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM {\n display: inline-flex;\n flex-direction: column;\n position: relative;\n width: 100%;\n min-width: 0;\n margin: 16px 0 8px;\n padding: 0;\n border: 0;\n box-sizing: border-box;\n vertical-align: top;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_anchor__HPntW {\n position: relative;\n width: 100%;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n box-sizing: border-box;\n background-color: var(--xapp-form-widget-text-root-background, rgba(0, 0, 0, 0.06)) !important;\n border: var(--xapp-form-widget-text-root-border, 0) !important;\n border-radius: var(--xapp-form-widget-text-root-radius, 4px 4px 0 0) !important;\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n font-size: 1rem;\n line-height: 1.4375em;\n cursor: text;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks:hover, .xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks.xapp_form_FormFieldTextInputAddress-module_xapp_address_focused__DQ0B3 {\n border-color: var(--xapp-form-widget-text-border-color-focus, var(--xapp-form-widget-text-border-color, transparent)) !important;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::before, .xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::after {\n display: var(--xapp-form-widget-text-underline-display, block) !important;\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::before {\n border-bottom: 1px solid rgba(0, 0, 0, 0.42);\n transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::after {\n border-bottom: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n transform: scaleX(0);\n transition: transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks:hover::before {\n border-bottom-color: rgba(0, 0, 0, 0.87);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_focused__DQ0B3::after {\n transform: scaleX(1);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_error__inPHs .xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::before, .xapp_form_FormFieldTextInputAddress-module_xapp_address_error__inPHs .xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::after {\n border-bottom-color: #d32f2f;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_error__inPHs .xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::after {\n transform: scaleX(1);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_control__4YDQD {\n display: block;\n min-width: 0;\n padding: 21px 12px 4px 12px !important;\n border: 0 !important;\n background-color: var(--xapp-form-widget-text-input-background, var(--xapp-form-widget-text-background-color, rgba(0, 0, 0, 0.06))) !important;\n border-radius: var(--xapp-form-widget-border-radius-sm, 8px) var(--xapp-form-widget-border-radius-sm, 8px) var(--xapp-form-widget-text-bottom-radius, 0) var(--xapp-form-widget-text-bottom-radius, 0) !important;\n transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out !important;\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87)) !important;\n font-size: var(--xapp-form-widget-text-font-size, 1rem) !important;\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif)) !important;\n line-height: 1.4375em !important;\n letter-spacing: inherit;\n height: auto !important;\n min-height: 0 !important;\n width: 100% !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n margin: 0 !important;\n margin-bottom: 0 !important;\n border-width: 0 !important;\n border-style: none !important;\n box-shadow: none;\n -webkit-appearance: none !important;\n appearance: none !important;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_control__4YDQD::placeholder {\n color: currentColor;\n opacity: 0.42;\n transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_control__4YDQD[data-shrink=false]::placeholder {\n opacity: 0 !important;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_control__4YDQD:hover {\n background-color: var(--xapp-form-widget-text-background-color-dark, rgba(0, 0, 0, 0.09)) !important;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_control__4YDQD:focus {\n background-color: var(--xapp-form-widget-text-background-color-dark, rgba(0, 0, 0, 0.09)) !important;\n outline: none !important;\n box-shadow: inset 0 0 0 2px var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54)) !important;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_label__lrzNq {\n position: absolute !important;\n left: 0;\n top: 0;\n z-index: 1;\n display: block;\n max-width: calc(100% - 24px);\n margin: 0 !important;\n padding: 0 !important;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n pointer-events: none;\n transform-origin: top left;\n transform: translate(12px, 13px) scale(1) !important;\n transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms !important;\n color: rgba(0, 0, 0, 0.6);\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif) !important;\n font-size: 1rem !important;\n font-weight: 400 !important;\n line-height: 1.4375em !important;\n letter-spacing: 0.00938em;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_label__lrzNq[data-shrink=true] {\n max-width: calc(133% - 24px);\n transform: translate(12px, 4px) scale(0.75) !important;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_focused__DQ0B3 .xapp_form_FormFieldTextInputAddress-module_xapp_address_label__lrzNq {\n color: var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_error__inPHs .xapp_form_FormFieldTextInputAddress-module_xapp_address_label__lrzNq {\n color: #d32f2f;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_error__inPHs .xapp_form_FormFieldTextInputAddress-module_xapp_address_asterisk__hVgBb {\n color: #d32f2f;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_helper__CU-Ne {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_popup__dw-zo {\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n z-index: 16000;\n margin: 2px 0 0;\n overflow: hidden;\n background-color: #fff;\n color: rgba(0, 0, 0, 0.87);\n border-radius: 4px;\n box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n letter-spacing: 0.00938em;\n text-align: left;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_popup__dw-zo[hidden] {\n display: none;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_listbox__o7hkI {\n list-style: none !important;\n margin: 0 !important;\n padding: 8px 0 !important;\n max-height: 40vh;\n overflow: auto;\n box-sizing: border-box;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_listbox__o7hkI:empty {\n display: none;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_option__nGWID {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n min-height: 48px;\n margin: 0 !important;\n padding: 6px 16px !important;\n box-sizing: border-box;\n cursor: pointer;\n user-select: none;\n outline: 0;\n -webkit-tap-highlight-color: transparent;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_option__nGWID::before, .xapp_form_FormFieldTextInputAddress-module_xapp_address_option__nGWID::marker {\n content: none !important;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_option_active__KX0-4 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_option_icon__N4n4Y {\n flex: 0 0 auto;\n width: 1em;\n height: 1em;\n margin-right: 20px;\n font-size: 1.5rem;\n fill: rgba(0, 0, 0, 0.6);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_option_text__C2ulS {\n display: block;\n min-width: 0;\n word-wrap: break-word;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_secondary__YipJC {\n display: block;\n font-size: 0.875rem;\n line-height: 1.43;\n letter-spacing: 0.01071em;\n color: rgba(0, 0, 0, 0.6);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_no_options__zSLTf {\n padding: 14px 16px;\n color: rgba(0, 0, 0, 0.6);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_attribution__VGy3K {\n text-align: right;\n padding: 4px 12px 8px;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_attribution__VGy3K img {\n display: inline-block;\n height: 14px;\n width: auto;\n}');var Aa=function(){return e.jsx("svg",{className:Ca,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"})})},ja=function(r){var a,o=r.field,i=r.onFieldChange,p=r.errorMessage,s=r.required,d=r.googleMapsApiKey,l=r.mapsBaseUrl,c=r.requireSelection,u=!(null!==(a=o.requireSelection)&&void 0!==a?a:c),m=n.useState(null),_=m[0],f=m[1],x=n.useState(""),h=x[0],g=x[1],v=n.useState([]),b=v[0],y=v[1],w=n.useState(!1),F=w[0],k=w[1],S=n.useState(!1),T=S[0],C=S[1],D=n.useState(-1),N=D[0],I=D[1],R="xapp-address-".concat(n.useId()),A="".concat(R,"-listbox"),j="".concat(R,"-helper-text"),M=function(e){return"".concat(R,"-option-").concat(e)},E=n.useRef(null),O=n.useRef(""),z=function(e){O.current=e,g(e)};n.useEffect(function(){i(o.name,h)},[o.name,i,h]);var P=o.googleMapsApiKey||d,L=o.mapsBaseUrl||l,H=n.useMemo(function(){return new ma({apiKey:P,baseUrl:L})},[P,L]),U=function(){if(!L)return!0;try{var e=new URL(L).hostname;return"xapp.ai"===e||e.endsWith(".xapp.ai")}catch(e){return!1}}(),B=n.useMemo(function(){return function(e,n){var t,r=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(void 0,r)},n)};return r.clear=function(){return clearTimeout(t)},r}(function(e,n){H.getPlacePredictions(e,n)},400)},[H]);n.useEffect(function(){return function(){return B.clear()}},[B]),n.useEffect(function(){var e=!0;if(""!==h){var n=o.mapsUrlQueryParams||void 0;return B({input:h,params:n},function(n){e&&y(n||[])}),function(){e=!1}}y([])},[h,B,o.mapsUrlQueryParams]);var W=n.useMemo(function(){return _?b.filter(function(e){return e.description!==_.description}):b},[b,_]),$=F&&(W.length>0||!u&&""!==h);n.useEffect(function(){I(-1)},[W]),n.useLayoutEffect(function(){var e=E.current,n=N>=0?null==e?void 0:e.children[N]:void 0;e&&n instanceof HTMLElement&&(n.offsetTop<e.scrollTop?e.scrollTop=n.offsetTop:n.offsetTop+n.offsetHeight>e.scrollTop+e.clientHeight&&(e.scrollTop=n.offsetTop+n.offsetHeight-e.clientHeight))},[N,$]);var Y=function(){k(!1),I(-1)},q=function(e){if(Y(),f(e),z(e.description),e.placeId){var n=e.placeId,r=e.description;H.getPlaceDetails(n,function(n){(null==n?void 0:n.formattedAddress)&&O.current===r&&(f(t(t({},e),{description:n.formattedAddress})),z(n.formattedAddress))})}},G=T||h.length>0||!o.label,V=$&&N>=0?M(N):void 0;return e.jsxs("div",{className:"".concat(_a," ").concat(p?ga:""),style:o.style,children:[e.jsxs("div",{className:fa,children:[e.jsxs("div",{className:"".concat(xa," ").concat(T?ha:""),children:[o.label&&e.jsxs("label",{htmlFor:R,className:ba,"data-shrink":G?"true":"false",children:[o.label,s&&e.jsx("span",{className:ya,"aria-hidden":"true",children:" *"})]}),e.jsx("input",{id:R,name:o.name,type:"text",className:va,role:"combobox","aria-autocomplete":"list","aria-expanded":$,"aria-controls":A,"aria-activedescendant":V,"aria-invalid":!!p,"aria-describedby":p?j:void 0,autoComplete:"off",autoCapitalize:"none",spellCheck:!1,placeholder:o.placeholder,required:s,maxLength:o.maxLength||void 0,value:h,onChange:function(e){var n=e.target.value;z(n),""===n?f(null):k(!0)},onKeyDown:function(e){switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),k(!0),n="ArrowDown"===e.key?1:-1,0!==(t=W.length)&&I(function(e){var r=e+n;return r>=t?-1:r<-1?t-1:r});break;case"Enter":$&&N>=0&&W[N]?(e.preventDefault(),q(W[N])):Y();break;case"Escape":$&&(e.preventDefault(),e.stopPropagation(),Y())}var n,t},onFocus:function(){return C(!0)},onBlur:function(){if(C(!1),Y(),!u){var e=(null==_?void 0:_.description)||"";h!==e&&z(e)}},onMouseDown:function(){$||""===h||k(!0)},"data-shrink":G?"true":"false"})]}),e.jsxs("div",{className:Fa,hidden:!$,onMouseDown:function(e){return e.preventDefault()},children:[e.jsx("ul",{ref:E,id:A,role:"listbox","aria-label":"".concat(o.label||"Address"," suggestions"),className:ka,children:W.map(function(n,t){var r=n.structured_formatting.main_text_matched_substrings||[],a=la(n.structured_formatting.main_text,r.map(function(e){return[e.offset,e.offset+e.length]}));return e.jsxs("li",{id:M(t),role:"option","aria-selected":t===N,className:"".concat(Sa," ").concat(t===N?Ta:""),onMouseMove:function(){return I(t)},onClick:function(){return q(n)},children:[e.jsx(Aa,{}),e.jsxs("span",{className:Da,children:[a.map(function(n,t){return e.jsx("span",{style:{fontWeight:n.highlight?"bold":"normal"},children:n.text},t)}),e.jsx("span",{className:Na,children:n.structured_formatting.secondary_text})]})]},n.placeId||n.description)})}),$&&0===W.length&&e.jsx("div",{className:Ia,children:"No locations"}),U&&e.jsx("div",{className:Ra,children:e.jsx("img",{src:"https://maps.gstatic.com/mapfiles/api-3/images/powered-by-google-on-white3.png",alt:"powered by Google"})})]})]}),p&&e.jsx("p",{id:j,className:wa,children:p})]})},Ma=function(e){return"string"!=typeof e||0===e.trim().length},Ea=function(e){var n=e.replace(/\D/g,"");if(10===n.length||11===n.length&&n.startsWith("1")){return/^(1)?[-. ]?\(?(\d{3})\)?[-. ]?(\d{3})[-. ]?(\d{4})$/.test(n)}return!1},Oa=function(e){return null==e||("string"==typeof e?0===e.trim().length:Array.isArray(e)?0===e.length:("object"==typeof e&&e.constructor===Object||"object"==typeof e)&&0===Object.keys(e).length)},za="xapp_form_FormStepDisplay-module_xapp_step_iframe_wrapper__BBFRw",Pa="xapp_form_FormStepDisplay-module_xapp_step_full_bleed__rhGGK",La="xapp_form_FormStepDisplay-module_xapp_external_widget_container__ec4Hs",Ha="xapp_form_FormStepDisplay-module_xapp_external_widget_anchor__NSXBg",Ua="xapp_form_FormStepDisplay-module_xapp_external_widget_fallback__lkFJ-",Ba="xapp_form_FormStepDisplay-module_xapp_external_widget_loading__aRtx6",Wa="xapp_form_FormStepDisplay-module_xapp_external_widget_spinner__ga0X7",$a="xapp_form_FormStepDisplay-module_xapp_submit_error__Zbqdj",Ya="xapp_form_FormStepDisplay-module_xapp_formfield__hRmVx",qa="xapp_form_FormStepDisplay-module_active__fCsMz",Ga="xapp_form_FormStepDisplay-module_xapp_formfield_title__INjeF",Va="xapp_form_FormStepDisplay-module_xapp_formfield_subtitle__8VQC2",Ja="xapp_form_FormStepDisplay-module_xapp_form_actions__lXYdk",Ka="xapp_form_FormStepDisplay-module_xapp_form_actions_final__0TUxT",Za="xapp_form_FormStepDisplay-module_xapp_final_button_container__Gco-E",Xa="xapp_form_FormStepDisplay-module_xapp_form_nav_buttons__lI4BI",Qa="xapp_form_FormStepDisplay-module_xapp_dummy_button__Q-nE6",eo="xapp_form_FormStepDisplay-module_xapp_step_button__KeEND",no="xapp_form_FormStepDisplay-module_xapp_primary_button__d2wra",to="xapp_form_FormStepDisplay-module_xapp_secondary_button__LuMfN",ro="xapp_form_FormStepDisplay-module_xapp_disabled_button__RjSfL",ao="xapp_form_FormStepDisplay-module_xapp_back_button__mPqT0",oo="xapp_form_FormStepDisplay-module_xapp_back_button_label__9kKIl",io="xapp_form_FormStepDisplay-module_xapp_back_button_icon__w7o4I";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormStepDisplay-module_xapp_step_iframe_wrapper__BBFRw {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n overflow: scroll;\n position: relative;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_step_full_bleed__rhGGK {\n margin-left: -8px;\n margin-right: -8px;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormStepDisplay-module_xapp_step_full_bleed__rhGGK {\n margin-left: calc(-1 * (8px + env(safe-area-inset-left, 0px)));\n margin-right: calc(-1 * (8px + env(safe-area-inset-right, 0px)));\n }\n}\n\n.xapp_form_FormStepDisplay-module_xapp_external_widget_container__ec4Hs {\n background-color: var(--xapp-form-widget-external-widget-background-color, transparent);\n padding: var(--xapp-form-widget-external-widget-padding, 0);\n min-height: var(--xapp-form-widget-external-widget-min-height, auto);\n box-sizing: border-box;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_external_widget_anchor__NSXBg {\n margin: 0;\n padding: 0;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_external_widget_fallback__lkFJ- {\n padding: 20px;\n text-align: center;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n}\n\n.xapp_form_FormStepDisplay-module_xapp_external_widget_loading__aRtx6 {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 14px;\n min-height: 240px;\n padding: 40px 20px;\n text-align: center;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87));\n}\n.xapp_form_FormStepDisplay-module_xapp_external_widget_loading__aRtx6 p {\n margin: 0;\n font-size: 0.95em;\n opacity: 0.7;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_external_widget_spinner__ga0X7 {\n display: inline-block;\n width: 44px;\n height: 44px;\n color: var(--xapp-form-widget-primary-button-color, #ea6539);\n}\n.xapp_form_FormStepDisplay-module_xapp_external_widget_spinner__ga0X7 svg {\n width: 100%;\n height: 100%;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_submit_error__Zbqdj {\n padding: 12px 20px;\n text-align: center;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n color: #b3261e;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_formfield__hRmVx {\n display: none;\n font-family: inherit !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_formfield__hRmVx.xapp_form_FormStepDisplay-module_active__fCsMz {\n display: block;\n}\n.xapp_form_FormStepDisplay-module_xapp_formfield_title__INjeF p {\n margin: 10px 0 20px 0;\n font-size: 1em;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n}\n\n.xapp_form_FormStepDisplay-module_xapp_formfield_title__INjeF p {\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n text-align: var(--xapp-form-widget-step-title-align, left);\n font-size: var(--xapp-form-widget-step-title-font-size, inherit);\n font-weight: var(--xapp-form-widget-step-title-font-weight, inherit);\n color: var(--xapp-form-widget-step-title-color, inherit);\n}\n\n.xapp_form_FormStepDisplay-module_xapp_formfield_subtitle__8VQC2 {\n font-size: 0.875em;\n opacity: 0.8;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_form_actions__lXYdk {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_form_actions_final__0TUxT {\n flex-direction: var(--xapp-form-widget-final-button-direction, column);\n gap: var(--xapp-form-widget-final-button-gap, 0);\n}\n.xapp_form_FormStepDisplay-module_xapp_form_actions_final__0TUxT .xapp_form_FormStepDisplay-module_xapp_final_button_container__Gco-E {\n padding: var(--xapp-form-widget-final-button-container-padding, 20px 20px 0 20px);\n}\n.xapp_form_FormStepDisplay-module_xapp_form_actions_final__0TUxT .xapp_form_FormStepDisplay-module_xapp_form_nav_buttons__lI4BI {\n padding: var(--xapp-form-widget-final-button-nav-padding, 20px);\n flex: var(--xapp-form-widget-final-button-nav-flex, 1 1 auto);\n align-self: var(--xapp-form-widget-final-button-nav-align, stretch);\n align-items: center;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_final_button_container__Gco-E {\n display: flex;\n justify-content: center;\n padding: 20px 20px 0 20px;\n}\n.xapp_form_FormStepDisplay-module_xapp_final_button_container__Gco-E button {\n font-size: var(--xapp-form-widget-button-font-size, 1.2em) !important;\n padding: var(--xapp-form-widget-button-padding, 12px 32px) !important;\n min-width: 200px !important;\n border-radius: var(--xapp-form-widget-button-radius, var(--xapp-form-widget-border-radius-md, 12px)) !important;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_form_nav_buttons__lI4BI {\n display: flex;\n justify-content: space-between;\n padding: 20px;\n align-self: stretch;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_dummy_button__Q-nE6 {\n flex-grow: 1;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_step_button__KeEND {\n display: inline-flex !important;\n align-items: center;\n justify-content: center;\n position: relative;\n box-sizing: border-box !important;\n min-width: 64px;\n margin: 0 !important;\n border: 0;\n outline: 0;\n vertical-align: middle;\n cursor: pointer;\n user-select: none;\n -webkit-appearance: none;\n appearance: none;\n -webkit-tap-highlight-color: transparent;\n color: #fff !important;\n line-height: 1.75 !important;\n letter-spacing: 0.02857em;\n text-transform: uppercase !important;\n text-decoration: none !important;\n text-shadow: none !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_step_button__KeEND:disabled {\n color: rgba(0, 0, 0, 0.26) !important;\n pointer-events: none;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_primary_button__d2wra {\n background-color: var(--xapp-form-widget-primary-button-color, #ea6539) !important;\n font-family: inherit !important;\n border-radius: var(--xapp-form-widget-button-radius, var(--xapp-form-widget-border-radius-md, 12px)) !important;\n font-size: var(--xapp-form-widget-button-font-size, 0.875rem) !important;\n font-weight: var(--xapp-form-widget-button-font-weight, 500) !important;\n padding: var(--xapp-form-widget-button-padding, 6px 16px) !important;\n min-height: 44px !important;\n box-shadow: var(--xapp-form-widget-button-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)) !important;\n transition: box-shadow 200ms ease-in-out, transform 150ms ease-in-out, opacity 200ms ease-in-out !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_primary_button__d2wra:hover {\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;\n opacity: 0.9 !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_primary_button__d2wra:active {\n transform: scale(0.98) !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_primary_button__d2wra:focus {\n outline: none;\n}\n.xapp_form_FormStepDisplay-module_xapp_primary_button__d2wra:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_secondary_button__LuMfN {\n background-color: var(--xapp-form-widget-secondary-button-color, #d24cc7) !important;\n font-family: inherit !important;\n border-radius: var(--xapp-form-widget-button-radius, var(--xapp-form-widget-border-radius-md, 12px)) !important;\n font-size: var(--xapp-form-widget-button-font-size, 0.875rem) !important;\n font-weight: var(--xapp-form-widget-button-font-weight, 500) !important;\n padding: var(--xapp-form-widget-button-padding, 6px 16px) !important;\n min-height: 44px !important;\n box-shadow: var(--xapp-form-widget-button-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)) !important;\n transition: box-shadow 200ms ease-in-out, transform 150ms ease-in-out, opacity 200ms ease-in-out !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_secondary_button__LuMfN:hover {\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;\n opacity: 0.9 !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_secondary_button__LuMfN:active {\n transform: scale(0.98) !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_secondary_button__LuMfN:focus {\n outline: none;\n}\n.xapp_form_FormStepDisplay-module_xapp_secondary_button__LuMfN:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_disabled_button__RjSfL {\n background-color: var(--xapp-form-widget-secondary-button-color, #d24cc7) !important;\n opacity: 0.5 !important;\n font-family: inherit !important;\n border-radius: var(--xapp-form-widget-button-radius, var(--xapp-form-widget-border-radius-md, 12px)) !important;\n font-size: var(--xapp-form-widget-button-font-size, 0.875rem) !important;\n font-weight: var(--xapp-form-widget-button-font-weight, 500) !important;\n padding: var(--xapp-form-widget-button-padding, 6px 16px) !important;\n min-height: 44px !important;\n box-shadow: none !important;\n cursor: not-allowed !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_back_button__mPqT0 {\n background: var(--xapp-form-widget-back-button-background, var(--xapp-form-widget-primary-button-color, #ea6539)) !important;\n border: var(--xapp-form-widget-back-button-border, 0) !important;\n border-radius: var(--xapp-form-widget-back-button-radius, var(--xapp-form-widget-border-radius-md, 12px)) !important;\n padding: var(--xapp-form-widget-back-button-padding, 6px 16px) !important;\n min-width: var(--xapp-form-widget-back-button-size, 64px) !important;\n width: var(--xapp-form-widget-back-button-size, auto) !important;\n height: var(--xapp-form-widget-back-button-size, auto) !important;\n color: var(--xapp-form-widget-back-button-color, var(--xapp-form-widget-primary-button-text-color, #b7c5d1)) !important;\n font-size: var(--xapp-form-widget-back-button-font-size, 0.875rem) !important;\n font-weight: var(--xapp-form-widget-back-button-font-weight, 500) !important;\n box-shadow: var(--xapp-form-widget-back-button-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)) !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_back_button__mPqT0:hover {\n color: var(--xapp-form-widget-back-button-color-hover, var(--xapp-form-widget-primary-button-text-color, #b7c5d1)) !important;\n border-color: var(--xapp-form-widget-back-button-color-hover, currentColor) !important;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_back_button_label__9kKIl {\n display: var(--xapp-form-widget-back-button-label-display, inline);\n}\n\n.xapp_form_FormStepDisplay-module_xapp_back_button_icon__w7o4I {\n display: var(--xapp-form-widget-back-button-icon-display, none);\n align-items: center;\n justify-content: center;\n font-size: 20px;\n line-height: 1;\n -webkit-text-stroke: var(--xapp-form-widget-back-button-icon-stroke, 0);\n}");function po(e){return!!e&&void 0!==e.externalWidget}function so(e){return"value"in e&&void 0!==e.value}De("/**\n * CostGuide / Contractor Appointments booking-embed style overrides.\n *\n * The partner renders its form into #airo-anchor in the light DOM with stable, semantic\n * class names (spike: chat-widget#1514). This is a plain (non-module) stylesheet on purpose\n * so the selectors below emit literally rather than being scoped -- they target the partner's\n * own markup, not ours.\n *\n * Two hard constraints from the spike:\n * 1. Their rules are scoped `#airo-anchor #step-<name> .<class>` (two ids + a class), so a\n * plain `#airo-anchor .btn-next` measurably loses. Overrides must carry `#airo-anchor`\n * specificity AND `!important` to win.\n * 2. Most of their text inherits the container font, but `input` is explicitly Arial, so the\n * font must be re-applied to inputs directly.\n *\n * Every value maps to a `--xapp-form-widget-*` theme variable (with a fallback matching\n * `styles/_variables.scss`), so a Studio-themed widget restyles the partner's form too --\n * nothing here is a hard-coded color, font, or radius.\n *\n * Partner selectors verified: 2026-08-04. Re-verify against their markup per chat-widget#1516.\n */\n/* Primary action buttons: btn-next / btn-orange */\n#airo-anchor .btn-next,\n#airo-anchor .btn-orange {\n background-color: var(--xapp-form-widget-primary-button-color, #ea6539) !important;\n color: var(--xapp-form-widget-primary-button-text-color, #b7c5d1) !important;\n border-radius: var(--xapp-form-widget-border-radius-md, 12px) !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;\n}\n\n/* Secondary / back button: btn-back */\n#airo-anchor .btn-back {\n background-color: var(--xapp-form-widget-secondary-button-color, #d24cc7) !important;\n color: var(--xapp-form-widget-secondary-button-text-color, #b7c5d1) !important;\n border-radius: var(--xapp-form-widget-border-radius-md, 12px) !important;\n}\n\n/* Headings and body text: stepwrap / ms-title / ms-subtitle / page-title / label-item */\n#airo-anchor .stepwrap,\n#airo-anchor .ms-title,\n#airo-anchor .ms-subtitle,\n#airo-anchor .page-title,\n#airo-anchor .label-item {\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87)) !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;\n}\n\n/* Inputs are explicitly Arial in their sheet, so the inherited container font never reaches\n them -- re-apply directly (spike finding). radio-item grouped for the same reason. */\n#airo-anchor input,\n#airo-anchor .radio-item {\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;\n}\n\n/* Focus rings consistent with ours rather than their default orange. */\n#airo-anchor input:focus,\n#airo-anchor .btn-next:focus,\n#airo-anchor .btn-back:focus {\n outline-color: var(--xapp-form-widget-focus-ring-color, #012b54) !important;\n}");var lo=["preferred_time","preferred_date"];function co(e){return"DATE"===e.type||"DATETIME"===e.type||"CHIPS"===e.type&&lo.indexOf(e.name)>=0}function uo(e){var n=[e.name,"".concat(e.name,"_start"),"".concat(e.name,"_end")];if("DATETIME"===e.type){var t=e;n.push(t.dateFieldName||Xn,t.dateTimeFieldName||Qn,t.timeZoneFieldName||et)}return n}function mo(e){return!!e&&void 0!==e.mandatoryGroup}var _o=function(o){var i=n.useRef({}),p=n.useRef(new Set),s=n.useRef(!1),d=n.useRef(o.formStep.fields),l=n.useRef({}),c=n.useState({}),u=c[0],m=c[1],_=n.useState({}),f=_[0],x=_[1],h=n.useState({}),g=h[0],v=h[1],b=n.useState(!1),y=b[0],w=b[1],F=Ce().context,k=function(e){var n=null==e?void 0:e.schedulingDisabled;return!0===n||"true"===n}(F),S=null==F?void 0:F.offeringsByDate,T=n.useMemo(function(){return function(e){var n=e;if("string"==typeof n)try{n=JSON.parse(n)}catch(e){return}if(n&&"object"==typeof n&&!Array.isArray(n)){var t={};return Object.entries(n).forEach(function(e){var n=e[0],r=e[1];t[n]=Array.isArray(r)?r.filter(xt):[]}),t}}(S)},[S]),C=null==F?void 0:F.nextBusinessDayBlock,D=n.useMemo(function(){return function(e){var n=e;if("string"==typeof n)try{n=JSON.parse(n)}catch(e){return}if(n&&"object"==typeof n){var t=n,r=t.date,a=Un(t.blockedUntil);if("string"==typeof r&&Ln.test(r)&&a)return{date:r,blockedUntil:a}}}(C)},[C]),N=n.useState(),I=N[0],R=N[1],A=n.useCallback(function(e){return k&&!!e&&co(e)},[k]),j=o.formStep,M=o.onNextStep,E=o.onPrevStep,O=o.onData,z=o.onDataWithLabels,P=o.getData,L=o.getDataWithLabels,H=o.loading,U=o.currentStepIndex,B=o.totalSteps,W=o.onTrackNextStep,$=o.currentStepDataRef,Y=o.isActive,q=o.externalWidgetConfigPending,G=o.onTrackHandoffRendered,V=o.onTrackHandoffNoRender,J=o.onTrackHandoffScheduled,K=o.onTrackHandoffError,Z=o.onExternalWidgetFallback,X=o.submitError,Q=o.hideIntro,ee=Y&&!q&&po(j)?j.externalWidget:void 0,ne=St(ee,{onRendered:function(e){return null==G?void 0:G(j.name,e)},onNoRender:function(e){return null==V?void 0:V(j.name,e)},onScheduled:function(e,n){return null==J?void 0:J(j.name,e,n)},onError:function(e){return null==K?void 0:K(j.name,e)},onFallback:function(e){return null==Z?void 0:Z(e)}}).outcome,te=n.useState(!1),re=te[0],ae=te[1];n.useLayoutEffect(function(){if(ee){var e=ee.anchorId,n=document.getElementById(e);if(n){if(!(n.childElementCount>0)){var t=new MutationObserver(function(){var n=document.getElementById(e);n&&n.childElementCount>0&&(ae(!0),t.disconnect())});return t.observe(n,{childList:!0,subtree:!0}),function(){return t.disconnect()}}ae(!0)}}else ae(!1)},[ee]);var oe=n.useCallback(function(){var e={};Object.entries(l.current).forEach(function(n){var r=n[0],a=n[1];try{var o=t(t(t({},P()),i.current),{safeIncludes:function(e,n){return Array.isArray(e)?e.includes(n):"string"==typeof e&&e===n}});e[r]=a.call(o)}catch(n){"development"===process.env.NODE_ENV&&console.error('Condition evaluation failed for field "'.concat(r,'":'),n),e[r]=!1}}),function(e,n){var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(var a=0,o=t;a<o.length;a++){var i=o[a];if(e[i]!==n[i])return!1}return!0}(e,f)||x(e)},[f,P]);n.useEffect(function(){for(var e={},n=0,t=j.fields;n<t.length;n++){var r=t[n];if(mo(r)&&!A(r)){var a=r.mandatoryGroup;a&&(e[a]||(e[a]=[]),e[a].push(r.name))}}m(e)},[j.fields,A]);d.current!==j.fields&&(d.current=j.fields,p.current.clear(),s.current=!1,i.current={});for(var ie=0,pe=j.fields;ie<pe.length;ie++){var se=pe[ie];!so(se)||p.current.has(se.name)||Object.prototype.hasOwnProperty.call(i.current,se.name)||(i.current[se.name]=se.value,p.current.add(se.name))}var de=function(e){for(var n=t({},e),r=0,a=j.fields;r<a.length;r++){var o=a[r];A(o)&&delete n[o.name]}return n};n.useEffect(function(){for(var e=0,n=j.fields;e<n.length;e++){var t=n[e];if("CHIPS"===t.type){var r=t.items.filter(function(e){return Ut(e)}).filter(function(e){return e.selected}).map(function(e){return e.id});r.length>0&&!Object.prototype.hasOwnProperty.call(i.current,t.name)&&(i.current[t.name]=r)}if(t.condition){var a=On(t.condition);l.current[t.name]=new Function("return (".concat(a,");"))}}p.current.size>0&&!s.current&&(s.current=!0,O(de(i.current))),oe()},[oe,j.fields]);var le=n.useCallback(function(){var e={},n=!0,r={};j.fields.forEach(function(t){var a={valid:!0},o=i.current[t.name];if(!1===f[t.name]||A(t))e[t.name]=a;else{if(function(e){return!!e&&"DROPDOWN"===e.type}(t))if(!t.mandatory||null!=o&&"none"!==o){if(null!=o&&"none"!==o){var p=t.items.find(function(e){return e.id===o});if(p&&p.freeFormInput){var s=p.freeFormFieldName||"message",d=i.current[s];(!d||"string"==typeof d&&""===d.trim())&&(e[s]={valid:!1,message:"Please specify additional details"},a={valid:!1,message:""})}}}else a={valid:!1,message:t.mandatoryError||"Please select an option"};else if(function(e){return!!e&&"DATERANGE"===e.type}(t))t.mandatory&&!function(e){var n=e;return!!(null==n?void 0:n.from)&&!!(null==n?void 0:n.to)}(o)&&(a={valid:!1,message:t.mandatoryError||"Please select a date range"});else if(function(e){return!!e&&"DATETIME"===e.type}(t))t.mandatory&&!function(e){var n=e;return!!(null==n?void 0:n.date)&&!!(null==n?void 0:n.start)}(o)&&(a={valid:!1,message:t.mandatoryError||"Please select a date and a time"});else if(Object.prototype.hasOwnProperty.call(i.current,t.name))if(function(e){return!!e&&"TEXT"===e.type}(t))if(!0===t.mandatory&&Ma(o))a={valid:!1,message:t.mandatoryError||"This field is mandatory"};else if("EMAIL"!==t.format||Ma(o)){if("PHONE"!==t.format||Ma(o)){if("ZIP_CODE"===t.format&&!Ma(o)&&(a=function(e){if(Ma(e))return{valid:!0};var n=/^\d{5}$/.test(e)||/^\d{5}-\d{4}$/.test(e)||/^[A-Za-z]\d[A-Za-z]\s?\d[A-Za-z]\d$/.test(e);return{valid:n,message:n?void 0:"Invalid zip code or postal code"}}(o),a.valid)){var l=function(e){if(Ma(e))return e;var n=e.trim(),t=n.match(/^([A-Za-z]\d[A-Za-z])(\d[A-Za-z]\d)$/);return t?"".concat(t[1].toUpperCase()," ").concat(t[2].toUpperCase()):/^[A-Za-z]\d[A-Za-z]\s\d[A-Za-z]\d$/.test(n)?n.toUpperCase():e}(o);l!==o&&(r[t.name]=l)}}else if(a=function(e){if(Ma(e))return{valid:!0};var n=Ea(e);return{valid:n,message:n?void 0:"Invalid phone number"}}(o),a.valid){var c=function(e){if(Ma(e)||!Ea(e))return e;var n=e.replace(/\D/g,"");return 11===n.length&&n.startsWith("1")&&(n=n.slice(1)),n.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3")}(o);c!==o&&(r[t.name]=c)}}else a={valid:u=/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/.test(String(o).toLowerCase()),message:u?void 0:"Invalid email address"};else!function(e){return!!e&&"CHIPS"===e.type}(t)?function(e){return!!e&&"DATE"===e.type}(t)&&t.mandatory&&null==o?a={valid:!1,message:"Please select a day"}:function(e){return!!e&&"CHECK"===e.type}(t)&&t.mandatory&&!(null==o?void 0:o.length)&&(a={valid:!1,message:t.mandatoryError||"This field is mandatory"}):t.minRequired&&o.length<t.minRequired?a={valid:!1,message:"Please select at least ".concat(t.minRequired," option(s)")}:t.maxAllowed&&o.length>t.maxAllowed?a={valid:!1,message:"Please select no more than ".concat(t.maxAllowed," option(s)")}:t.mandatory&&1!==(null==o?void 0:o.length)&&(a={valid:!1,message:"Please select one option"});var u;n=n&&a.valid,e[t.name]=a}});for(var a=function(t){if(!t.some(function(e){return!Oa(i.current[e])})){var r=j.fields.find(function(e){return e.name===t[0]}),a=g[t[0]],o=(null==a?void 0:a.message)||(null==r?void 0:r.mandatoryError)||"At least one of these fields is required";t.forEach(function(n){e[n]={valid:!1,message:o}}),n=!1}},o=0,p=Object.entries(u);o<p.length;o++){a(p[o][1])}return Oa(r)||(i.current=t(t({},i.current),r)),function(e,n){var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(var a=0,o=t;a<o.length;a++){var i=o[a];if(!n.hasOwnProperty(i))return!1;var p=e[i],s=n[i];if(p.valid!==s.valid)return!1}return!0}(g,e)||v(e),n},[f,g,j.fields,u,A]),ce=function(){return r(void 0,void 0,void 0,function(){var e;return a(this,function(n){switch(n.label){case 0:if(!le()||y)return[2];w(!0),n.label=1;case 1:return n.trys.push([1,,4,5]),ue(i.current),W&&void 0!==U&&void 0!==B&&(e=U===B-1,W(j.name,U,de(i.current),e)),M?[4,M("submit"===j.nextAction)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[3,5];case 4:return w(!1),[7];case 5:return[2]}})})},ue=function(e){for(var n=de(e),r=P(),a=L(),o={},i={},p=0,s=j.fields;p<s.length;p++){var d=s[p];if(A(d))for(var l=0,c=uo(d);l<c.length;l++){var u=c[l];Object.prototype.hasOwnProperty.call(r,u)&&(o[u]=void 0),Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=void 0)}}for(var m=t(t({},o),n),_={},f=function(e,n,t){if(n.length>0){var r=n.join(", ");m["".concat(e,"_start")]=r,_["".concat(e,"_start")]=r}if(t.length>0){var a=t.join(", ");m["".concat(e,"_end")]=a,_["".concat(e,"_end")]=a}},x=function(e){var t,r,a,o,i,p=n[e],s=j.fields.find(function(n){return n.name===e});if("CHIPS"===(null==s?void 0:s.type)&&void 0!==p){var d=[],l=[],c=[];p.forEach(function(e){var n=s.items.find(function(n){return n.id===e});if(n){d.push(n.label);var t=n;t.startTime&&l.push(t.startTime),t.endTime&&c.push(t.endTime)}}),_[e]=function(e){if(0===e.length)return"";if(1===e.length)return e[0];if(2===e.length)return e.join(" and ");var n=e.pop();return e.join(", ")+", and "+n}(d),f(e,l,c)}else if("DATETIME"===(null==s?void 0:s.type)&&void 0!==p){var u=s,x=p;m[e]=x.label,_[e]=x.label,f(e,x.start?[x.start]:[],x.end?[x.end]:[]);var h=u.dateFieldName||Xn;m[h]=x.date,_[h]=x.date;var g=u.dateTimeFieldName||Qn;m[g]=x.datetime,_[g]=x.datetime;var v=ut(u.schedule);if(v){var b=u.timeZoneFieldName||et;m[b]=v,_[b]=v}}else if("DROPDOWN"===(null==s?void 0:s.type)&&void 0!==p){var y=s.items.find(function(e){return e.id===p});y?y.label&&y.label.trim().length>0?_[e]=y.label:_[e]=p.replace(/_/g," ").split(" ").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join(" "):_[e]=p}else"DATE"===(null==s?void 0:s.type)&&void 0!==p?_[e]=(t=new Date(p),r=t.getDate(),a=t.toLocaleString("default",{month:"long"}),o=t.getFullYear(),i=function(e){if(e>=11&&e<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(r),"".concat(a," ").concat(r).concat(i,", ").concat(o)):_[e]=p},h=0,g=Object.keys(n);h<g.length;h++){x(g[h])}O(m),z(t(t({},i),_))},me=function(){for(var e in g)if(!1!==f[e]&&!g[e].valid)return!0;return!1},_e=n.useCallback(function(e,n){var r,a,o=!Object.prototype.hasOwnProperty.call(i.current,e);if(p.current.has(e)){if(!o&&i.current[e]===n)return void p.current.delete(e);if(!o&&i.current[e]!==n)return}(o||i.current[e]!==n)&&(Array.isArray(n)&&0===n.length&&(n=void 0),i.current=t(t({},i.current),((r={})[e]=n,r)),(null===(a=null==j?void 0:j.fields)||void 0===a?void 0:a.some(function(n){return n.name===e&&"DATE"===n.type}))&&R(function(e){return e&&"function"==typeof e.format?e.format("YYYY-MM-DD"):void 0}(n)),$&&($.current=i.current),oe(),Oa(g)||le())},[oe,g,le,$,j]),fe=n.useContext(Le);oe();var xe,he=!!j&&j.fullBleed;return e.jsxs("div",{className:he?Pa:void 0,children:[!Q&&!!j&&(j.title||j.subtitle)&&e.jsxs("div",{className:Ga,children:[!!j.title&&e.jsx("p",{children:j.title}),!!j.subtitle&&e.jsx("p",{className:Va,children:j.subtitle})]}),!!j&&j.warnBeforeUnloadMessage&&e.jsxs("div",{style:{backgroundColor:"#fff3cd",color:"#856404",padding:"12px 16px",marginBottom:"16px",borderRadius:"4px",border:"1px solid #ffeaa7",display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("span",{style:{fontSize:"20px"},children:"⚠️"}),e.jsx("span",{children:j.warnBeforeUnloadMessage})]}),(xe=j,!!xe&&void 0!==xe.iframe&&e.jsx("div",{className:za,children:e.jsx("iframe",{src:j.iframe.src,title:j.title,width:j.iframe.width||"100%",height:j.iframe.height||"100%",frameBorder:"0",allowFullScreen:!0})})),po(j)&&e.jsxs("div",{className:La,children:[e.jsx("div",{id:j.externalWidget.anchorId,className:Ha}),Y&&"pending"===ne&&!re&&e.jsxs("div",{className:Ba,role:"status","aria-live":"polite",children:[e.jsx("span",{className:Wa,children:e.jsx(Ge,{})}),e.jsx("p",{children:"Finding available appointments…"})]}),("no_render"===ne||"error"===ne)&&!j.externalWidget.fallbackStep&&e.jsx("div",{className:Ua,children:e.jsx("p",{children:"We're sorry, we couldn't load the booking form. Please try again later."})})]}),e.jsx("div",{children:function(){if(!j)return[];var n=j.fields||[],t=n.findIndex(function(e){return A(e)}),r=D&&n.some(function(e){return co(e)&&"CHIPS"===e.type&&(n=e.items,t=D.date,r=D,(a=Wn(n)).length>0&&a.every(function(e){return Bn(t,e.startTime,r)}));var n,t,r,a})?D.date:void 0,a=n.map(function(a,p){var s,d,l,c,u,m,_,x,h,v,b,y,w,k=p===n.length-1;if(A(a))return p===t?e.jsx("div",{className:"".concat(Ya," ").concat(qa),children:e.jsx(Rt,{field:{name:"scheduling_disabled",type:"CARD",text:"We'll contact you to schedule a time."},onFieldChange:_e})},p):null;switch(a.type){case"TEXT":v="ADDRESS"===a.format?e.jsx(ja,{field:a,onFieldChange:_e,value:i.current[a.name],errorMessage:null===(s=g[a.name])||void 0===s?void 0:s.message,required:a.mandatory,googleMapsApiKey:fe.googleMapsApiKey,mapsBaseUrl:fe.mapsBaseUrl},a.name):e.jsx(Vt,{field:a,onFieldChange:_e,value:i.current[a.name],errorMessage:null===(d=g[a.name])||void 0===d?void 0:d.message,required:a.mandatory,isLastField:k},a.name);break;case"DROPDOWN":var S=a,C=i.current[S.name],N=void 0;if(C&&"none"!==C){var R=S.items.find(function(e){return e.id===C});if(R&&R.freeFormInput){var j=R.freeFormFieldName||"message";N=null===(l=g[j])||void 0===l?void 0:l.message}}v=e.jsx(or,{field:S,onFieldChange:_e,errorMessage:null===(c=g[a.name])||void 0===c?void 0:c.message,required:a.mandatory,freeFormErrorMessage:N},a.name);break;case"CHECK":v=e.jsx(Ct,{field:a,onFieldChange:_e,errorMessage:null===(u=g[a.name])||void 0===u?void 0:u.message},a.name);break;case"CHIPS":v=e.jsx(Bt,{field:a,onFieldChange:_e,errorMessage:null===(m=g[a.name])||void 0===m?void 0:m.message,value:i.current[a.name],disabledItemIds:co(a)?(b=a.items,y=I,w=D,Wn(b).filter(function(e){return Bn(y,e.startTime,w)}).map(function(e){return e.id})):void 0},a.name);break;case"DATE":var M=null==F?void 0:F.busyDays;v=e.jsx(Ur,{field:a,onFieldChange:_e,errorMessage:null===(_=g[a.name])||void 0===_?void 0:_.message,busyDays:M,loading:H,blockedDate:r},a.name);break;case"DATETIME":v=e.jsx(sa,{field:a,onFieldChange:_e,value:i.current[a.name],errorMessage:null===(x=g[a.name])||void 0===x?void 0:x.message,required:a.mandatory,busyDays:null==F?void 0:F.busyDays,offeringsByDate:T,nextBusinessDayBlock:D,preselectFirstAvailable:o.preselectFirstAvailableDate},a.name);break;case"DATERANGE":v=e.jsx($r,{field:a,onFieldChange:_e,value:i.current[a.name],errorMessage:null===(h=g[a.name])||void 0===h?void 0:h.message,required:a.mandatory,isLastField:k},a.name);break;case"CARD":v=e.jsx(Rt,{field:Pn(a,L()),onFieldChange:_e},a.name);break;default:v=null}return e.jsx("div",{className:"".concat(Ya," ").concat(!1!==f[a.name]?qa:""),children:v},p)});return a.filter(function(e){return null!==e})}()}),!!X&&e.jsx("div",{className:$a,role:"alert",children:e.jsx("p",{children:X})}),e.jsxs("div",t({className:"".concat(Ja," ").concat(j.final?Ka:"")},j.final?{"data-xapp-final-actions":""}:{},{children:[!!M&&"omit"!==j.nextAction&&j.final&&e.jsx("div",{className:Za,children:e.jsx("button",{type:"button",className:"".concat(eo," ").concat(me()||y?ro:j.nextLabel?to:no),disabled:y,onClick:ce,children:y?"Loading...":j.nextLabel||"Next"})}),e.jsxs("div",{className:Xa,children:[void 0===E&&e.jsx("div",{className:Qa}),!!E&&"omit"!==j.previousAction&&e.jsxs("button",{type:"button",className:"".concat(eo," ").concat(no," ").concat(ao),onClick:function(){ue(i.current),E&&E()},"aria-label":j.previousLabel||"Previous",children:[e.jsx("span",{className:oo,children:j.previousLabel||"Previous"}),e.jsx("span",{className:io,"aria-hidden":"true",children:"←"})]}),!!M&&"omit"!==j.nextAction&&!j.final&&e.jsx("button",{type:"button",className:"".concat(eo," ").concat(me()||y?ro:j.nextLabel?to:no),disabled:y,onClick:ce,children:y?"Loading...":j.nextLabel||"Next"})]})]}))]})},fo="xapp_form_FormFrame-module_xapp_form_frame_root__BLTha",xo="xapp_form_FormFrame-module_xapp_form_frame_intro__S4kWd",ho="xapp_form_FormFrame-module_xapp_form_frame_title__GA8dy",go="xapp_form_FormFrame-module_xapp_form_frame_subtitle__WOeJI",vo="xapp_form_FormFrame-module_xapp_form_frame_framed__9E311",bo="xapp_form_FormFrame-module_xapp_form_frame_plain__rBarK",yo="xapp_form_FormFrame-module_xapp_form_frame_tab_row__osSVR",wo="xapp_form_FormFrame-module_xapp_form_frame_tab__0O2ga";De(".xapp_form_FormFrame-module_xapp_form_frame_root__BLTha {\n display: block;\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_intro__S4kWd {\n background-color: #ffffff;\n padding: 28px 16px 18px;\n text-align: center;\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_title__GA8dy {\n margin: 0;\n font-family: Poppins, Arial, Verdana, sans-serif;\n font-size: 24px;\n font-weight: 700;\n line-height: 1.15;\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87));\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_subtitle__WOeJI {\n margin: 6px 0 0 0;\n font-family: Poppins, Arial, Verdana, sans-serif;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.4;\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87));\n opacity: 0.75;\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_framed__9E311 {\n position: relative;\n border: 4px solid var(--xapp-form-widget-border-color, #d3d3df);\n border-radius: 0;\n background-color: var(--xapp-form-widget-background-color, #f3f8fb);\n margin-top: -2px;\n padding: 24px 22px 8px;\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_plain__rBarK {\n display: block;\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_tab_row__osSVR {\n background-color: #ffffff;\n text-align: center;\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_tab__0O2ga {\n display: inline-block;\n position: relative;\n z-index: 1;\n padding: 12px 30px;\n border-radius: 12px 12px 0 0;\n background-color: var(--xapp-form-widget-header-background-color, #012b54);\n color: var(--xapp-form-widget-header-text-color, #b7c5d1);\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n font-size: 14px;\n font-weight: 700;\n letter-spacing: 1px;\n white-space: nowrap;\n}");var Fo=function(n){var t=n.framing,r=n.framed,a=n.children,o=null==t?void 0:t.tabLabel,i=null==t?void 0:t.introTitle,p=null==t?void 0:t.introSubtitle,s=(null==t?void 0:t.introPlacement)||"above-tab",d=i||p?e.jsxs("div",{className:xo,"data-xapp-form-frame-intro":"",children:[!!i&&e.jsx("h2",{className:ho,"data-xapp-form-frame-title":"",children:i}),!!p&&e.jsx("p",{className:go,"data-xapp-form-frame-subtitle":"",children:p})]}):null;return e.jsxs("div",{className:fo,children:["above-tab"===s&&d,r&&!!o&&e.jsx("div",{className:yo,children:e.jsx("span",{className:wo,"data-xapp-form-frame-tab":"",children:o})}),e.jsxs("div",{className:r?vo:bo,"data-xapp-form-frame":r?"framed":"plain",children:["inline"===s&&d,a]})]})},ko="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header__YhCD1",So="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_showcase__NhRLn",To="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_container__V9y-e",Co="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_row__rmXFD",Do="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_title__yVgEi",No="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_track__Ktw8x",Io="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_step__tTjar",Ro="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_dot__THRsN",Ao="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_label__tLrJ6";De('/**\n * The phone breakpoint.\n *\n * Width alone cannot express "phone". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step\'s action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field\'s helper / error line. The metrics are MUI\'s FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header__YhCD1 {\n background-color: inherit !important;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_showcase__NhRLn {\n background-color: inherit !important;\n padding: 0px !important;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_container__V9y-e {\n background-color: inherit !important;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_row__rmXFD {\n display: flex;\n justify-content: center;\n gap: 16px;\n padding: 16px;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_title__yVgEi {\n margin: 0;\n color: var(--xapp-form-widget-header-text-color, #b7c5d1);\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 2.125rem;\n font-weight: 400;\n line-height: 1.235;\n letter-spacing: 0.00735em;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_track__Ktw8x {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n min-height: 50px;\n}\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_track__Ktw8x::before {\n content: "";\n position: absolute;\n top: 50%;\n left: 0;\n right: 0;\n height: 3px;\n background-color: white;\n z-index: 1;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_step__tTjar {\n position: relative;\n top: 10px;\n z-index: 2;\n display: flex;\n flex-direction: column;\n align-items: center;\n min-width: 100px;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_dot__THRsN {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 30px !important;\n min-width: auto;\n height: 30px !important;\n margin: 0;\n padding: 0 !important;\n border: 3px solid white !important;\n border-radius: 50% !important;\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n cursor: pointer;\n}\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_dot__THRsN:focus {\n outline: none;\n}\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_dot__THRsN:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_label__tLrJ6 {\n margin: 8px;\n color: var(--xapp-form-widget-header-text-color, #b7c5d1);\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.875rem;\n font-weight: 400;\n line-height: 1.43;\n letter-spacing: 0.01071em;\n}');var jo=function(n){var t=n.items,r=n.onHeaderClick,a=n.labelHeader,o=n.stepName,i=n.isShowCase;if(a){var p=t.find(function(e){return e.step===o}),s=null==p?void 0:p.label;return void 0===s?null:e.jsx("div",{className:"".concat(Co," ").concat(i?So:To),children:e.jsx("h4",{className:Do,children:s})})}return e.jsx("div",{className:"".concat(Co," ").concat(ko),children:e.jsx("div",{className:No,children:t.map(function(n,t){return e.jsxs("div",{className:Io,children:[e.jsx("button",{type:"button","aria-label":n.label,className:"".concat(ko," ").concat(Ro),onClick:function(){r("".concat(n.step))}}),e.jsx("p",{className:Ao,children:n.label})]},t)})})})};
1
+ "use strict";var e=require("react/jsx-runtime"),n=require("react"),t=function(){return t=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},t.apply(this,arguments)};function r(e,n,t,r){return new(t||(t=Promise))(function(a,o){function i(e){try{s(r.next(e))}catch(e){o(e)}}function p(e){try{s(r.throw(e))}catch(e){o(e)}}function s(e){var n;e.done?a(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(i,p)}s((r=r.apply(e,n||[])).next())})}function a(e,n){var t,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=p(0),i.throw=p(1),i.return=p(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function p(p){return function(s){return function(p){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,p[0]&&(o=0)),o;)try{if(t=1,r&&(a=2&p[0]?r.return:p[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,p[1])).done)return a;switch(r=0,a&&(p=[2&p[0],a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,r=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==p[0]&&2!==p[0])){o=0;continue}if(3===p[0]&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(6===p[0]&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=n.call(e,o)}catch(e){p=[6,e],r=0}finally{t=a=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,s])}}}function o(e,n,t){if(t||2===arguments.length)for(var r,a=0,o=n.length;a<o;a++)!r&&a in n||(r||(r=Array.prototype.slice.call(n,0,a)),r[a]=n[a]);return e.concat(r||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p=e,s=n,d=function(){return d=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e},d.apply(this,arguments)};function l(e,n,t,r){return new(t||(t=Promise))(function(n,a){function o(e){try{p(r.next(e))}catch(e){a(e)}}function i(e){try{p(r.throw(e))}catch(e){a(e)}}function p(e){var r;e.done?n(e.value):(r=e.value,r instanceof t?r:new t(function(e){e(r)})).then(o,i)}p((r=r.apply(e,[])).next())})}function c(e,n){var t,r,a,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=p(0),i.throw=p(1),i.return=p(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function p(p){return function(s){return function(p){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,p[0]&&(o=0)),o;)try{if(t=1,r&&(a=2&p[0]?r.return:p[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,p[1])).done)return a;switch(r=0,a&&(p=[2&p[0],a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,r=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==p[0]&&2!==p[0])){o=0;continue}if(3===p[0]&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(6===p[0]&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=n.call(e,o)}catch(e){p=[6,e],r=0}finally{t=a=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,s])}}}function u(e,n,t){for(var r,a=0,o=n.length;a<o;a++)!r&&a in n||(r||(r=Array.prototype.slice.call(n,0,a)),r[a]=n[a]);return e.concat(r||Array.prototype.slice.call(n))}"function"==typeof SuppressedError&&SuppressedError;["FAQ","INTENT","HISTORICAL"].reduce(function(e,n,t){return e[n]=t,e},{});var m=["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],_=["gclid","gbraid","wbraid","msclkid","fbclid"],f=u(u([],m),_);var x={link_url:1e3,page_location:1e3};function h(e){return"string"==typeof e&&/^G-[A-Z0-9]{4,}$/i.test(e.trim())}function g(){return"undefined"!=typeof navigator&&!0===navigator.globalPrivacyControl}function v(e){if("undefined"==typeof window||"undefined"==typeof document)return!1;var n=window.google_tag_manager;return!!n&&Object.prototype.hasOwnProperty.call(n,e)&&function(e){var n=document.querySelectorAll("script[src*='/gtag/js']");return Array.from(n).some(function(n){var t;try{var r=new URL(n.src,window.location.href);return r.hostname.endsWith("googletagmanager.com")&&(null===(t=r.searchParams.get("id"))||void 0===t?void 0:t.toUpperCase())===e.toUpperCase()}catch(e){return!1}})}(e)}function b(e,n){var t;return n.slice(0,null!==(t=x[e])&&void 0!==t?t:100)}function y(e){var n=((null==e?void 0:e.content)||[]).filter(function(e){return"text"===e.type&&"string"==typeof e.text}).map(function(e){return e.text}).join("\n");if(null==e?void 0:e.isError)return{ok:!1,message:n};try{return JSON.parse(n)}catch(e){return{text:n}}}!function(){function e(e,n){this.mcpUrl=e,this.nextId=1,this.fetchImpl=n||("function"==typeof fetch?fetch:void 0)}e.prototype.callTool=function(e,n){return l(this,0,void 0,function(){var t,r;return c(this,function(a){switch(a.label){case 0:if("function"!=typeof this.fetchImpl)throw new Error("fetch is not available");return[4,this.fetchImpl(this.mcpUrl,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:this.nextId++,method:"tools/call",params:{name:e,arguments:n}})})];case 1:if(!(t=a.sent()).ok)throw new Error("MCP endpoint answered ".concat(t.status));return[4,t.json()];case 2:if((r=a.sent()).error)throw new Error(r.error.message||"MCP error ".concat(r.error.code));return[2,y(r.result)]}})})}}(),u(u([],f),["st_source","srsltid","ref","source"]);var w=/^[a-z][a-z-]{0,31}$/;function F(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-65xx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===n?t:3&t|8).toString(16)})}var k="__xapp_visitor_id",S="__xapp_visit",T=/^[A-Za-z0-9_-]{8,64}$/;function C(){try{var e=window;return e.__xappVisitIdentity=e.__xappVisitIdentity||{}}catch(e){return{}}}function D(e){try{return localStorage.getItem(e)||void 0}catch(e){return}}function N(e,n){try{return localStorage.setItem(e,n),!0}catch(e){return!1}}function I(e){return e&&T.test(e)?e:void 0}function R(){var e=I(D(k));if(e)return e;var n=C(),t=n.visitorId||I(D("__xapp_form_user_id"))||F();return N(k,t)||(n.visitorId=t),t}var A="data-xapp-scroll-lock",j="data-xapp-scroll-lock-restore",M=["position","top","left","right","width","overflow"];function E(e){var n=Number(e.getAttribute(A));return Number.isFinite(n)&&n>0?n:0}function O(){if("undefined"==typeof document||"undefined"==typeof window)return function(){};var e=document.body;if(0===E(e)){var n=function(e){var n=M.reduce(function(n,t){return n[t]=e.style.getPropertyValue(t),n},{});return{scrollY:window.scrollY||window.pageYOffset||0,inlineStyles:n}}(e);e.setAttribute(j,JSON.stringify(n)),e.style.position="fixed",e.style.top="-".concat(n.scrollY,"px"),e.style.left="0",e.style.right="0",e.style.width="100%",e.style.overflow="hidden"}e.setAttribute(A,String(E(e)+1));var t=!1;return function(){if(!t){t=!0;var n=E(e)-1;if(n>0)e.setAttribute(A,String(n));else if(!(n<0)){e.removeAttribute(A);var r=function(e){var n=e.getAttribute(j);e.removeAttribute(j);try{var t=JSON.parse(n||"");if(t&&"number"==typeof t.scrollY&&t.inlineStyles)return t}catch(e){}return{scrollY:0,inlineStyles:{}}}(e),a=r.scrollY,o=r.inlineStyles;M.forEach(function(n){o[n]?e.style.setProperty(n,o[n]):e.style.removeProperty(n)}),e.style.length||e.removeAttribute("style"),window.scrollTo(0,a)}}}}var z="--xapp-viewport-height",P="--xapp-viewport-offset-top",L="--xapp-keyboard-inset",H="data-xapp-viewport-subscribers";function U(e){var n=Number(e.getAttribute(H));return Number.isFinite(n)&&n>0?n:0}function B(e){var n="undefined"==typeof window?void 0:window.visualViewport;if(n){var t=n.height,r=n.offsetTop;if(t>0){var a=window.innerHeight||t,o=Math.max(0,a-t),i=o>=120?o:0;e.style.setProperty(z,"".concat(Math.round(t),"px")),e.style.setProperty(P,"".concat(Math.round(r),"px")),e.style.setProperty(L,"".concat(Math.round(i),"px"))}}}function W(){if("undefined"==typeof document)return function(){};var e=document.documentElement;e.setAttribute(H,String(U(e)+1)),B(e);var n,t="undefined"==typeof window?void 0:window.visualViewport,r=function(){void 0===n&&(n=window.requestAnimationFrame(function(){n=void 0,B(e)}))};null==t||t.addEventListener("resize",r),null==t||t.addEventListener("scroll",r);var a=!1;return function(){if(!a){a=!0,null==t||t.removeEventListener("resize",r),null==t||t.removeEventListener("scroll",r),void 0!==n&&(window.cancelAnimationFrame(n),n=void 0);var o=U(e)-1;o>0?e.setAttribute(H,String(o)):(e.removeAttribute(H),function(e){e.style.removeProperty(z),e.style.removeProperty(P),e.style.removeProperty(L)}(e))}}}function $(){var e=getComputedStyle(document.documentElement).getPropertyValue(L),n=parseFloat(e);return Number.isFinite(n)?n:0}function Y(e){e&&"scrollIntoView"in e&&e.scrollIntoView({block:"nearest",behavior:"smooth"})}var q=function(e){var n=e.icon;return p.jsx("div",{tabIndex:e.tabIndex?Number(e.tabIndex):0,className:"xapp-search-icon-button ".concat(e.className||""),onClick:e.onClick,children:p.jsx("div",{className:"xapp-search-icon-button__content",children:p.jsx(n,{})})})},G=function(e){return p.jsx("div",{className:"xappw-message-bubble",children:e.children})},V=function(e){return p.jsx("div",{className:"xappw-suggestions-group-heading",children:e.label})},J=function(e){return function(){try{return"1"===sessionStorage.getItem("xa_test")}catch(e){return!1}}()&&(e.xaTest=!0,delete e.rwg_token),e},K=g,Z=v,X=h,Q=function(){try{var e=window.__xappInternal;return"string"==typeof e&&w.test(e)?e:void 0}catch(e){return}},ee=function(e,n,t){try{if("undefined"==typeof window)return;var r=e.measurementId;if(!h(r)||g())return;for(var a=r.trim(),o={},i=0,p=Object.entries(t);i<p.length;i++){var s=p[i],l=s[0],c=s[1];void 0!==c&&(o[l]="string"==typeof c?b(l,c):c)}Object.assign(o,function(e){var n,t,r={},a=null===(n=e.locationId)||void 0===n?void 0:n.trim();a&&(r.location_id=b("location_id",a));var o=null===(t=e.locationName)||void 0===t?void 0:t.trim();return o&&(r.location_name=b("location_name",o)),r}(e));var u=window;if(v(a)){var m=d({send_to:a},o);return"function"==typeof u.gtag?(u.gtag("event",n,m),"gtag"):Array.isArray(u.dataLayer)?(function(){for(var e,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];null===(e=u.dataLayer)||void 0===e||e.push(arguments)}("event",n,m),"gtag"):void 0}if(Array.isArray(u.dataLayer))return u.dataLayer.push(d({event:n},o)),"dataLayer"}catch(e){}},ne=function(e){if(e)try{var n=new URL(e);return n.origin+n.pathname}catch(e){return}},te=function(e){void 0===e&&(e=!0),s.useEffect(function(){if(e)return O()},[e])},re=function(e){void 0===e&&(e=!0),s.useEffect(function(){if(e&&"undefined"!=typeof document){var n=$(),t=function(e){$()>0&&Y(e.target)},r=function(){window.requestAnimationFrame(function(){var e=$(),t=n<=0&&e>0;n=e,t&&Y(document.activeElement)})},a="undefined"==typeof window?void 0:window.visualViewport;return document.addEventListener("focusin",t),null==a||a.addEventListener("resize",r),null==a||a.addEventListener("scroll",r),function(){document.removeEventListener("focusin",t),null==a||a.removeEventListener("resize",r),null==a||a.removeEventListener("scroll",r)}}},[e])},ae=function(e){void 0===e&&(e=!0),s.useEffect(function(){if(e)return W()},[e])},oe=F,ie=function(e){void 0===e&&(e=Date.now());var n=C(),t=function(e){if(e)try{var n=JSON.parse(e);return n&&I(n.id)&&"number"==typeof n.at?n:void 0}catch(e){return}}(D(S))||n.visit,r={id:t&&t.at<=e&&e-t.at<=18e5&&t?t.id:F(),at:e};return N(S,JSON.stringify(r))||(n.visit=r),{visitorId:R(),visitId:r.id}},pe=R,se={extractUtmParameters:!0,extractClickIds:!0,customParameterPrefix:"track_",persistToLocalStorage:!0,persistenceDays:30,preferUrlParameters:!0},de=m,le=_;function ce(e){return void 0===e?"xa_tracking_":"".concat("xa_tracking","@").concat(encodeURIComponent(e),":")}function ue(e){return e.length<=255&&!/[<>"'\x00-\x1f]/.test(e)}function me(e){var n={},t=ce(e);return o(o([],de,!0),le,!0).forEach(function(e){var r=localStorage.getItem("".concat(t).concat(e));if(r)try{var a=JSON.parse(r);a.expires>Date.now()&&(n[e]=a.value)}catch(n){localStorage.removeItem("".concat(t).concat(e))}}),function(){for(var e=[],n=0;n<localStorage.length;n++){var t=localStorage.key(n);t&&e.push(t)}return e}().forEach(function(e){if(e.startsWith("".concat(t,"track_")))try{var r=JSON.parse(localStorage.getItem(e)||"{}");if(r.expires>Date.now()){var a=e.slice(t.length);n[a]=r.value}}catch(n){localStorage.removeItem(e)}}),n}function _e(e,n){void 0===e&&(e=window.location.href),void 0===n&&(n={});var r=t(t({},se),n),a=function(e,n){void 0===e&&(e=window.location.href),void 0===n&&(n={});var r,a=t(t({},se),n);try{r=new URL(e)}catch(n){return console.warn("Invalid URL provided to tracking parameter extraction:",e),{}}var o=r.searchParams,i={};return a.extractUtmParameters&&de.forEach(function(e){var n=o.get(e);n&&ue(n)&&(i[e]=n)}),a.extractClickIds&&le.forEach(function(e){var n=o.get(e);n&&ue(n)&&(i[e]=n)}),a.customParameterPrefix&&o.forEach(function(e,n){n.startsWith(a.customParameterPrefix)&&ue(e)&&(i[n]=e)}),i}(e,n),o=me(n.scope),i=r.preferUrlParameters?t(t({},o),a):t(t({},a),o);return Object.keys(a).length>0&&function(e,n){void 0===n&&(n={});var r=t(t({},se),n);if(r.persistToLocalStorage){var a=Date.now()+24*r.persistenceDays*60*60*1e3,o=ce(n.scope);Object.entries(e).forEach(function(e){var n=e[0],t=e[1];if(t){var r={value:t,expires:a,stored:Date.now()};localStorage.setItem("".concat(o).concat(n),JSON.stringify(r))}})}}(a,n),i}function fe(){return(new Date).toISOString()+" ::"}function xe(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];"debug"===window.xaLogLevel&&console.log.apply(console,o([fe()],e,!1))}function he(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];console.error.apply(console,o([fe()],e,!1))}function ge(e){return!!e&&"CAROUSEL"===e.type}function ve(e){return!!e&&"LIST"===e.type}function be(e){return!!e&&"FORM"===e.type}function ye(e,n){var r=n.type;switch(r){case"set-query":return t(t({},e),{query:n.query||""});case"set-response":return t(t({},e),{responseQuery:n.query,responseIntentId:n.intentId});case"set-context":return t(t({},e),{context:n.context});case"new-search":return t(t({},e),{query:""});case"set-modal-state":return t(t({},e),{active:n.active,minimized:n.minimized,sendRequest:n.sendRequest});case"open-modal-state":return e.active?e:t(t({},e),{active:!0,minimized:!1,sendRequest:!0});default:!function(e){throw new Error("Unknown kind "+e)}(r)}}var we={query:"",active:!1,minimized:!1,sendRequest:!0},Fe=[we,function(){}],ke=n.createContext(Fe),Se=function(t){var r=n.useReducer(ye,t.initialState||we);return e.jsx(ke.Provider,{value:r,children:t.children})};function Te(){return n.useContext(ke)}function Ce(){return Te()[0]}function De(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var Ne="xapp_form_ModalDialog-module_xapp_search_modal__WpGiJ",Ie="xapp_form_ModalDialog-module_xapp_search_modal__backdrop__rryOU",Re="xapp_form_ModalDialog-module_xapp_search_modal__body__qK17C",Ae="xapp_form_ModalDialog-module_xapp_search_modal_embedded__Ye0Dg";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_ModalDialog-module_xapp_search_modal__WpGiJ {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding: 48px;\n z-index: 15000;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_ModalDialog-module_xapp_search_modal__WpGiJ {\n padding: env(safe-area-inset-top) env(safe-area-inset-right) max(env(safe-area-inset-bottom), var(--xapp-keyboard-inset, 0px)) env(safe-area-inset-left);\n }\n}\n@media (max-height: 640px) and (min-width: 641px) and (pointer: fine) {\n .xapp_form_ModalDialog-module_xapp_search_modal__WpGiJ {\n padding-bottom: 24px;\n }\n}\n.xapp_form_ModalDialog-module_xapp_search_modal__backdrop__rryOU {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: -1;\n background: rgba(0, 0, 0, 0.4);\n}\n.xapp_form_ModalDialog-module_xapp_search_modal__body__qK17C {\n box-sizing: border-box;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_ModalDialog-module_xapp_search_modal__body__qK17C {\n width: 100%;\n height: 100%;\n }\n}\n\n.xapp_form_ModalDialog-module_xapp_search_modal_embedded__Ye0Dg {\n box-sizing: border-box;\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n max-width: 100%;\n max-height: 100%;\n overflow: hidden;\n}");var je=function(n){var t=n.embedded;return te(!t),ae(!t),re(),t?e.jsx("div",{className:Ae,children:n.children}):e.jsxs("div",{className:Ne,children:[!n.disableBackdrop&&e.jsx("div",{"data-testid":"xapp-modal-backdrop",className:Ie,onClick:n.onClose}),e.jsx("div",{className:Re,children:n.children})]})},Me="__xappDroppedAfterFinal";var Ee=new Map,Oe=new Set(["LAUNCH_REQUEST","INTENT_REQUEST"]),ze=function(){function e(e){this.sessionSent=!1,this.prefetchSemaphore=Promise.resolve(),this.config=e,this.responseCache={}}return Object.defineProperty(e.prototype,"trackingScope",{get:function(){return e=this.config.key,n=this.config.intentId,"".concat(null!=e?e:"","|").concat(null!=n?n:"");var e,n},enumerable:!1,configurable:!0}),e.prototype.getCachedTrackingParameters=function(){var e=Date.now();if(this.cachedTrackingParams&&e-this.cachedTrackingParams.ts<3e5)return this.cachedTrackingParams.value;var n=me(this.trackingScope);return this.cachedTrackingParams={ts:e,value:n},n},e.getApi=function(n){var t=function(e){var n;return"".concat(e.url," ").concat(e.key," ").concat(null!==(n=e.intentId)&&void 0!==n?n:""," ").concat(e.demoMode?"demo":"live")}(n),r=Ee.get(t);if(r)return r;var a=new e(n);return Ee.set(t,a),n.prefetchQuery&&a.prefetch(n.prefetchQuery),a},e.prototype.launchRequest=function(e){return this.send({type:"LAUNCH_REQUEST",rawQuery:e,intentId:"LaunchRequest",platform:"stentor-platform",channel:"form-widget"})},e.prototype.intentRequest=function(e){var n=(null==e?void 0:e.intentId)?void 0:e.query,t=(null==e?void 0:e.intentId)?e.intentId:"NLU_RESULT_PLACEHOLDER";return this.send({type:"INTENT_REQUEST",rawQuery:n,intentId:t,platform:"stentor-platform",channel:"form-widget"})},e.prototype.channelActionRequest=function(e,n){var r,a=this,o=!!e.final;if(this.session){if(this.session.hadFinal)return xe("Had final submit. Not sending action request: ".concat(n)),Promise.resolve(((r={})[Me]=!0,r));this.session.hadFinal=o}return this.send(t(t({type:"CHANNEL_ACTION_REQUEST",action:n,platform:"stentor-platform",channel:"form-widget"},this.config.intentId?{overrideKey:this.config.intentId}:{}),{attributes:{data:e}})).catch(function(e){throw a.session&&o&&(a.session.hadFinal=!1),e})},e.prototype.trackEvent=function(e,n){return r(this,void 0,void 0,function(){var t,r,o,i,p,s,d;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),t=this.config.key,this.config.demoMode?(xe("[demoMode] suppressed tracking event",e),[2,void 0]):t?(r=this.getTrackingUrl(),o={key:t,events:[n]},i={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o),mode:"cors"},[4,fetch(r,i)]):(he("[EventTracking] No widget key configured, skipping event tracking"),[2,void 0]);case 1:return(p=a.sent()).ok?[4,p.json()]:(he("Event tracking failed: ".concat(p.status," ").concat(p.statusText)),[2,void 0]);case 2:return s=a.sent(),xe("Event tracking succeeded: ".concat(e,", processed: ").concat(s.processed)),[2,s];case 3:return d=a.sent(),he("Event tracking error: ".concat(d)),[2,void 0];case 4:return[2]}})})},e.prototype.trackEventBeacon=function(e,n){var r=this.config.key;if(this.config.demoMode)return xe("[demoMode] suppressed tracking beacon",e.eventType),!1;if(!r)return he("[EventTracking] No widget key configured, skipping event beacon"),!1;try{var a=this.getTrackingUrl(),o=t(t({key:r},n?{widgetType:n}:{}),{events:[e]});return fetch(a,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(o),keepalive:!0}).catch(function(){}),!0}catch(e){return he("Event beacon error: ".concat(e)),!1}},e.prototype.getTrackingUrl=function(){var e=this.config.url;try{var n=new URL(e);return"".concat(n.origin,"/cms/widget/events")}catch(n){he("[EventTracking] Failed to parse URL: ".concat(e));var t=e.match(/^(https?:\/\/[^/]+)/);return"".concat(t?t[1]:e.replace(/\/$/,""),"/cms/widget/events")}},e.prototype.resetSession=function(){this.session=void 0,this.sessionSent=!1},e.prototype.visitSession=function(){this.session||(this.session={sessionId:"stentor-form-session-".concat(oe()),userId:pe(),hadFinal:!1});var e=this.session;return{sessionId:e.sessionId,userId:e.userId}},e.prototype.getCachedResponse=function(e){if(e){var n=(new Date).getTime(),t=this.responseCache[e];if(t){if(n-t.ts<9e5)return xe('Returning cached response for "'.concat(e,'"')),t.value;xe('Deleting expired cached response for "'.concat(e,'"')),delete this.responseCache[e]}}},e.prototype.send=function(e){return r(this,void 0,void 0,function(){var n,r,o,i,p,s,d,l,c,u,m,_,f,x,h,g,v,b,y,w,F,k,S,T;return a(this,function(a){switch(a.label){case 0:return[4,this.prefetchSemaphore];case 1:if(a.sent(),this.config.demoMode&&!Oe.has(e.type))return xe("[demoMode] suppressed request",e.type),[2,{}];if(n=this.getCachedResponse(e.rawQuery))return[2,Promise.resolve(n)];r=this.config,o=r.url,i=r.key,p=!this.sessionSent,s=this.visitSession(),d=s.sessionId,l=s.userId,this.sessionSent=!0,c={};try{(null==(u=new URL(window.location.href))?void 0:u.host.toLowerCase().startsWith("localhost"))?c.isLocal=!0:c.currentUrl=window.location.href}catch(e){}(m=ne(document.referrer))&&(c.referrer=m),(_=localStorage.getItem("xa_rwg_token"))&&(c.rwg_token=_),(f=localStorage.getItem("xa_merchant_id"))&&(c.merchant_id=f),(x=localStorage.getItem("xa_environment"))&&(c.environment=x),(h=localStorage.getItem("xa_enablePreferredTime"))&&(c.enablePreferredTime=h),(g=localStorage.getItem("xa_service"))&&(c.service=g),(v=localStorage.getItem("xa_origin"))&&(c.origin=v);try{b=new URLSearchParams(window.location.search),(y=b.get("placeId"))&&(c.placeId=y)}catch(e){}return w=this.getCachedTrackingParameters(),Object.assign(c,w),J(c),c.currentTime=(new Date).toISOString(),F=t(t({},e),{sessionId:d,userId:l,isNewSession:p,attributes:t(t({},e.attributes),c)}),k=JSON.stringify(F),S={method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(i)},body:k,mode:"cors"},[4,fetch(o,S)];case 2:return(T=a.sent()).ok?[3,5]:(he("Stentor call failed: ".concat(T.statusText)),[4,(C=1e3,new Promise(function(e){setTimeout(e,C)}))]);case 3:return a.sent(),[4,fetch(o,S)];case 4:if(!(T=a.sent()).ok)throw he("Stentor call failed again: ".concat(T.statusText)),new Error("Status ".concat(T.status,", Text: ").concat(T.statusText));a.label=5;case 5:return[2,T.json()]}var C})})},e.prototype.prefetch=function(e){return r(this,void 0,void 0,function(){var n,o,i,p,s,d,l,c,u,m,_,f,x,h,g=this;return a(this,function(v){return this.config.demoMode||this.getCachedResponse(e)||(this.prefetchSemaphore=new Promise(function(e){n=e}),o=this.config,i=o.url,p=o.key,s=!this.sessionSent,d=this.visitSession(),l=d.sessionId,c=d.userId,this.sessionSent=!0,u={type:"INTENT_REQUEST",rawQuery:e,intentId:"NLU_RESULT_PLACEHOLDER",platform:"stentor-platform",channel:"form-widget"},m={currentTime:(new Date).toISOString()},_=t(t({},u),{sessionId:l,userId:c,isNewSession:s,attributes:m}),f=JSON.stringify(_),x={method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(p)},body:f,mode:"cors"},h=(new Date).getTime(),fetch(i,x).then(function(n){return r(g,void 0,void 0,function(){var t,r,o,i;return a(this,function(a){switch(a.label){case 0:return n.ok?(t=(new Date).getTime(),r=this.responseCache,o=e,i={ts:t},[4,n.json()]):(he("Stentor prefetch failed: ".concat(n.statusText)),[2]);case 1:return r[o]=(i.value=a.sent(),i),xe("Stentor prefetch took: ".concat(t-h," ms")),[2]}})})}).finally(function(){n()})),[2]})})},e}();function Pe(e){return"string"==typeof e?e:e.title}var Le=n.createContext({api:{key:"",url:""},suggestionsUrl:"",isVoiceEnabled:!1,autoGreeting:"schedule"});function He(){var e,t=n.useState(0),r=t[0],a=t[1],o=(e=n.useRef(!1),n.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),n.useCallback(function(){return e.current},[])),i=n.useCallback(function(e){return function(e,n){return n(1),e().finally(function(){n(-1)})}(e,function(e){o()&&a(function(n){return n+e})})},[o]);return n.useMemo(function(){return{loading:!!r,run:i}},[r,i])}var Ue="xxTrustedFormCertUrl",Be="xxTrustedFormPingUrl";function We(e){return n.useEffect(function(){if(e)if(function(e){try{return"https://api.trustedform.com"===new URL(e).origin}catch(e){return!1}}(e)){if(!document.querySelector('script[src="'.concat(e,'"]'))){var n=document.createElement("script");n.async=!0,n.src=e,n.onerror=function(){he("[TrustedForm] Failed to load script")},document.head.appendChild(n)}}else he("[TrustedForm] Rejected script URL from unexpected origin")},[e]),n.useCallback(function(){if(e){var n={},t=document.querySelector('input[name="'.concat(Ue,'"], input[id="').concat(Ue,'"]')),r=document.querySelector('input[name="'.concat(Be,'"], input[id="').concat(Be,'"]'));if((null==t?void 0:t.value)&&(n[Ue]=t.value),(null==r?void 0:r.value)&&(n[Be]=r.value),0!==Object.keys(n).length)return n;he("[TrustedForm] No certificate data found in DOM")}},[e])}function $e(e){if("undefined"!=typeof document&&document.cookie){var n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));if(t)try{return decodeURIComponent(t[1])}catch(e){return t[1]}}}var Ye=function(){return e.jsx("svg",{viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M10 14L3 7.5L10 1",stroke:"currentColor",fill:"none",strokeLinecap:"square"})})},qe=function(){return e.jsx("svg",{viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M5 14L12 7.5L5 1",stroke:"currentColor",fill:"none",strokeLinecap:"square"})})},Ge=function(){return e.jsxs("svg",{viewBox:"0 0 200 200",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"spinner-secondHalf",children:[e.jsx("stop",{offset:"0%",stopOpacity:"0",stopColor:"currentColor"}),e.jsx("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]}),e.jsxs("linearGradient",{id:"spinner-firstHalf",children:[e.jsx("stop",{offset:"0%",stopOpacity:"1",stopColor:"currentColor"}),e.jsx("stop",{offset:"100%",stopOpacity:"0.5",stopColor:"currentColor"})]})]}),e.jsxs("g",{strokeWidth:16,children:[e.jsx("path",{stroke:"url(#spinner-secondHalf)",d:"M".concat(8," 100 A").concat(92," ").concat(92," 0 0 1 ").concat(192," 100")}),e.jsx("path",{stroke:"url(#spinner-firstHalf)",d:"M".concat(192," 100 A").concat(92," ").concat(92," 0 0 1 ").concat(8," 100")}),e.jsx("path",{stroke:"currentColor",strokeLinecap:"round",d:"M".concat(8," 100 A").concat(92," ").concat(92," 0 0 1 ").concat(8," ").concat(96)})]}),e.jsx("animateTransform",{from:"0 0 0",to:"360 0 0",attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1300ms"})]})},Ve=function(n){return function(t){var r=t.className;return e.jsx("svg",{className:r,viewBox:"0 0 24 24",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:n})})}},Je=Ve("M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"),Ke=Ve("M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"),Ze=Ve("M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"),Xe=Ve("M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"),Qe=Ve("M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"),en=Ve("M7 10l5 5 5-5z"),nn=Ve("M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"),tn=Ve("M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"),rn="xapp_form_SearchResponseBubble-module_xapp_search_response_bubble__UtmuK";De(".xapp_form_SearchResponseBubble-module_xapp_search_response_bubble__UtmuK {\n --xapp-bubble-background: #fff;\n}");var an=function(n){return e.jsx("div",{className:rn,children:e.jsx(G,{children:n.children})})};function on(e,n){for(var t=-1,r=0,a=n;r<a.length;r++){var o=a[r],i=e.indexOf(o);i>=0&&(t<0||t>=0&&i<t)&&(t=i)}return t}var pn=[":","/"],sn=["/"],dn=["?","#"],ln=["#"],cn=[function(e){var n=e.indexOf("://");return n<0?n:n+3},function(e){return on(e,pn)},function(e){return":"!==e.charAt(0)?-1:on(e,sn)},function(e){var n=on(e,dn);return n>=0?n:e.length},function(e){return on(e,ln)}];var un="/...";function mn(e,n){if(!e)return e;if(e.length<n)return e;var t=function(e){for(var n=[],t=e,r=0,a=cn;r<a.length;r++){var o=a[r],i=Math.max(0,o(t,e)),p=t.substring(0,i);n.push(p),t=t.substring(i)}return t&&n.push(t),n}(e);function r(){return t.join("")}function a(){return r().length>n}function o(e){a()&&(t[e]="")}if(":80"===t[2]&&"http://"===t[0]&&o(2),":443"===t[2]&&"https://"===t[0]&&o(2),o(5),o(4),o(2),o(0),a()){var i=t[3],p=r().length-i.length,s=n-p;if(s<0)t[3]="";else if(s<i.length){var d=i.length-s+4;t[3]=un+i.substring(d)}}return r()}var _n="xapp_form_Card-module_xapp_search_card__9iVCv",fn="xapp_form_Card-module_xapp_search_card__featured__CX-L0",xn="xapp_form_Card-module_xapp_search_card__featured_box__1fV9y",hn="xapp_form_Card-module_xapp_search_card__img__KJ1s3",gn="xapp_form_Card-module_xapp_search_card__content__dathl",vn="xapp_form_Card-module_xapp_search_card__link__DNSSb",bn="xapp_form_Card-module_xapp_search_card__title__ddR3K",yn="xapp_form_Card-module_xapp_search_card__description__MruSU";De('/**\n * The phone breakpoint.\n *\n * Width alone cannot express "phone". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step\'s action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field\'s helper / error line. The metrics are MUI\'s FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_Card-module_xapp_search_card__9iVCv {\n border: solid 0 var(--xapp-form-widget-border-color, #d3d3df);\n border-radius: 12px;\n margin-top: 0;\n margin-right: 0;\n margin-bottom: 20px;\n margin-left: 0;\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n box-sizing: border-box;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-items: stretch;\n overflow: hidden;\n border-radius: var(--xapp-form-widget-border-radius-lg, 16px);\n box-shadow: var(--xapp-form-widget-box-shadow-subtle, 0 2px 8px rgba(0, 0, 0, 0.08));\n transition: box-shadow 200ms ease-in-out, transform 200ms ease-in-out;\n background-color: #fff;\n}\n.xapp_form_Card-module_xapp_search_card__9iVCv:hover {\n box-shadow: var(--xapp-form-widget-box-shadow, 0 4px 24px rgba(0, 0, 0, 0.12));\n}\n.xapp_form_Card-module_xapp_search_card__featured__CX-L0 {\n flex: 1 1 240px;\n margin: 12px;\n width: 100%;\n min-width: 240px;\n overflow: hidden;\n}\n.xapp_form_Card-module_xapp_search_card__featured_box__1fV9y {\n position: relative;\n padding-bottom: math-div(100%, math-div(16, 9));\n box-sizing: border-box;\n overflow: hidden;\n}\n.xapp_form_Card-module_xapp_search_card__img__KJ1s3 {\n position: relative;\n width: 100%;\n height: 100%;\n object-fit: cover;\n overflow: hidden;\n}\n.xapp_form_Card-module_xapp_search_card__content__dathl {\n flex: 4 1 200px;\n min-width: 200px;\n margin: 12px;\n display: flex;\n flex-direction: column;\n}\n.xapp_form_Card-module_xapp_search_card__extra__R-h6g {\n margin-top: auto;\n margin-left: auto;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n justify-items: stretch;\n max-width: 100%;\n}\n.xapp_form_Card-module_xapp_search_card__extra__R-h6g:before {\n content: "";\n min-width: 360px;\n}\n.xapp_form_Card-module_xapp_search_card__link__DNSSb {\n display: block;\n flex: 0 0 auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 1.5em;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n font-weight: normal;\n font-size: 16px;\n font-style: normal;\n color: #006621;\n margin-top: 0;\n margin-right: 0;\n margin-bottom: 0;\n margin-left: 0;\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n}\n.xapp_form_Card-module_xapp_search_card__btn__DHrQp {\n flex: 1 1 auto;\n margin-top: 12px;\n}\n.xapp_form_Card-module_xapp_search_card__title__ddR3K {\n overflow: hidden;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 1.25em;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n font-weight: normal;\n font-size: 20px;\n font-style: normal;\n color: #1a0dab;\n margin-top: 0;\n margin-right: 0;\n margin-bottom: 0;\n margin-left: 0;\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n}\n.xapp_form_Card-module_xapp_search_card__title__ddR3K:hover {\n text-decoration: underline;\n}\n.xapp_form_Card-module_xapp_search_card__description__MruSU {\n line-height: 1.25em;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n font-weight: normal;\n font-size: 16px;\n font-style: normal;\n color: #666;\n margin-top: 6px;\n margin-right: 0;\n margin-bottom: 0;\n margin-left: 0;\n padding-top: 0;\n padding-right: 0;\n padding-bottom: 0;\n padding-left: 0;\n overflow: hidden;\n max-height: 6.25em;\n position: relative;\n}\n.xapp_form_Card-module_xapp_search_card__description__MruSU:after {\n background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 12.5%, white 100%);\n content: "";\n height: 1.25em;\n position: absolute;\n top: 5em;\n left: 0;\n right: 0;\n pointer-events: none;\n}');var wn=function(n){var t,r,a,o=n.item,i=null===(t=o.image)||void 0===t?void 0:t.url;return e.jsxs("div",{className:"".concat(_n," ").concat(n.className||""),children:[!!i&&e.jsx("div",{className:fn,children:e.jsx("div",{className:xn,children:e.jsx("img",{src:null===(r=o.image)||void 0===r?void 0:r.url,className:hn,alt:null===(a=o.image)||void 0===a?void 0:a.accessibilityText})})}),e.jsxs("div",{className:gn,children:[!!o.url&&e.jsx("a",{href:o.url,className:bn,children:o.title}),!!o.url&&e.jsx("div",{className:vn,children:mn(o.url,40)}),e.jsx("div",{className:yn,children:o.description})]})]})},Fn="xapp_form_Carousel-module_xapp_search_carousel__NZTGa",kn="xapp_form_Carousel-module_xapp_search_carousel__prev__BdNo-",Sn="xapp_form_Carousel-module_xapp_search_carousel__next__udR98",Tn="xapp_form_Carousel-module_xapp_search_carousel__items__gRPzO",Cn="xapp_form_Carousel-module_xapp_search_carousel__content__EoqyB";De(".xapp_form_Carousel-module_xapp_search_carousel__NZTGa {\n display: flex;\n flex-flow: row nowrap;\n}\n.xapp_form_Carousel-module_xapp_search_carousel__prev__BdNo-, .xapp_form_Carousel-module_xapp_search_carousel__next__udR98 {\n flex: 0 0 32px;\n height: 32px;\n cursor: pointer;\n box-sizing: border-box;\n padding: 4px;\n align-self: center;\n}\n.xapp_form_Carousel-module_xapp_search_carousel__items__gRPzO {\n display: flex;\n position: relative;\n height: auto;\n align-items: stretch;\n scroll-behavior: smooth;\n -ms-overflow-style: none;\n -moz-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n overflow-y: hidden;\n /* smartphones, touchscreens */\n}\n@media (hover: none) and (pointer: coarse) {\n .xapp_form_Carousel-module_xapp_search_carousel__items__gRPzO {\n overflow-x: auto;\n }\n}\n.xapp_form_Carousel-module_xapp_search_carousel__content__EoqyB {\n flex-grow: 1;\n}");var Dn="xapp_form_CarouselItem-module_xapp_search_carousel_item__xNpwo";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_CarouselItem-module_xapp_search_carousel_item__xNpwo {\n display: inline-flex;\n flex-direction: column;\n padding-right: 12px;\n flex-shrink: 0;\n width: 275px;\n}\n.xapp_form_CarouselItem-module_xapp_search_carousel_item__xNpwo:last-child {\n padding-right: 0;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_CarouselItem-module_xapp_search_carousel_item__xNpwo {\n min-width: 100%;\n max-width: 100%;\n }\n}");var Nn=function(n){return e.jsx("div",{className:"".concat(Dn," ").concat(n.className||""),children:n.children})},In=function(t){var r=t.list,a=n.useRef(null),o=n.useCallback(function(e){var n=a.current;if(n)for(var t=n.getElementsByClassName("xapp_search_carousel-item"),r=n.getBoundingClientRect(),o=t.length,i=0;i<o;i++){var p=t.item(i);if(p){var s=p.getBoundingClientRect(),d=e({position:s.left-r.left,size:s.width});if(void 0!==d)return void(n.scrollLeft+=d)}}},[]),i=n.useCallback(function(){var e;o(function(n){if(n.position>-10)return e;e=n.position})},[o]),p=n.useCallback(function(){o(function(e){if(e.position>10)return e.position})},[o]);return e.jsxs("div",{className:Fn,children:[e.jsx(q,{icon:Ye,className:kn,onClick:i}),e.jsx("div",{ref:a,className:Tn,children:r.items.map(function(n,t){return e.jsx(Nn,{children:e.jsx(wn,{item:n,className:Cn})},t)})}),e.jsx(q,{icon:qe,className:Sn,onClick:p})]})},Rn=function(n){var t=n.carousel;return e.jsx("div",{children:e.jsx(In,{list:t})})},An="xapp_form_Cards-module_xapp_search_cards__aeR3S";De(".xapp_form_Cards-module_xapp_search_cards__aeR3S {\n display: flex;\n flex-direction: column;\n}");var jn=function(n){var t=n.list;return e.jsx("div",{className:An,children:t.items.map(function(n,t){return e.jsx(wn,{item:n},t)})})},Mn=function(n){var t=n.list,r=null==t?void 0:t.title;return e.jsxs("div",{children:[r?e.jsx(V,{label:r}):e.jsx(e.Fragment,{}),e.jsx(jn,{list:t})]})},En=/('(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|`(?:\\.|[^`\\])*`)/,On=function(e,n,t){void 0===n&&(n="this"),void 0===t&&(t=[]);var r=t.map(function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}).join("|"),a=new RegExp("\\b(?!(?:if|else|length|for|while|includes|function|var|let|const|return|switch|case|do|true|false|null|undefined|typeof|new|this|void|delete|in|instanceof|export|import".concat(r?"|".concat(r):"",")\\b)([a-zA-Z_$][a-zA-Z0-9_$]*)\\b"),"g");return e.split(En).map(function(e,t){return t%2==1?e:e.replace(a,"".concat(n,".$1"))}).join("")},zn=/#{([\s\S]+?)}/g;function Pn(e,n){var t=n;try{var r=JSON.stringify(e).replace(zn,function(e,n){var r=n.trim();if(!(r in t))throw new Error('Missing template key "'.concat(r,'"'));var a=t[r];return null==a?"":String(a)}).replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t");return JSON.parse(r)}catch(e){}return e}var Ln=/^\d{4}-\d{2}-\d{2}$/,Hn=/^(\d{1,2}):(\d{2})/;function Un(e){var n="string"==typeof e?Hn.exec(e.trim()):null;return n?"".concat(n[1].padStart(2,"0"),":").concat(n[2]):void 0}function Bn(e,n,t){var r=Un(n);return!!t&&!!r&&e===t.date&&r<t.blockedUntil}function Wn(e){return e.filter(function(e){return!!Un(e.startTime)})}var $n={exports:{}};$n.exports=function(){var e=1e3,n=6e4,t=36e5,r="millisecond",a="second",o="minute",i="hour",p="day",s="week",d="month",l="quarter",c="year",u="date",m="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var n=["th","st","nd","rd"],t=e%100;return"["+e+(n[(t-20)%10]||n[t]||n[0])+"]"}},h=function(e,n,t){var r=String(e);return!r||r.length>=n?e:""+Array(n+1-r.length).join(t)+e},g={s:h,z:function(e){var n=-e.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),a=t%60;return(n<=0?"+":"-")+h(r,2,"0")+":"+h(a,2,"0")},m:function e(n,t){if(n.date()<t.date())return-e(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),a=n.clone().add(r,d),o=t-a<0,i=n.clone().add(r+(o?-1:1),d);return+(-(r+(t-a)/(o?a-i:i-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:c,w:s,d:p,D:u,h:i,m:o,s:a,ms:r,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=x;var y="$isDayjsObject",w=function(e){return e instanceof T||!(!e||!e[y])},F=function e(n,t,r){var a;if(!n)return v;if("string"==typeof n){var o=n.toLowerCase();b[o]&&(a=o),t&&(b[o]=t,a=o);var i=n.split("-");if(!a&&i.length>1)return e(i[0])}else{var p=n.name;b[p]=n,a=p}return!r&&a&&(v=a),a||!r&&v},k=function(e,n){if(w(e))return e.clone();var t="object"==typeof n?n:{};return t.date=e,t.args=arguments,new T(t)},S=g;S.l=F,S.i=w,S.w=function(e,n){return k(e,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var T=function(){function x(e){this.$L=F(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[y]=!0}var h=x.prototype;return h.parse=function(e){this.$d=function(e){var n=e.date,t=e.utc;if(null===n)return new Date(NaN);if(S.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var r=n.match(_);if(r){var a=r[2]-1||0,o=(r[7]||"0").substring(0,3);return t?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(n)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return S},h.isValid=function(){return!(this.$d.toString()===m)},h.isSame=function(e,n){var t=k(e);return this.startOf(n)<=t&&t<=this.endOf(n)},h.isAfter=function(e,n){return k(e)<this.startOf(n)},h.isBefore=function(e,n){return this.endOf(n)<k(e)},h.$g=function(e,n,t){return S.u(e)?this[n]:this.set(t,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,n){var t=this,r=!!S.u(n)||n,l=S.p(e),m=function(e,n){var a=S.w(t.$u?Date.UTC(t.$y,n,e):new Date(t.$y,n,e),t);return r?a:a.endOf(p)},_=function(e,n){return S.w(t.toDate()[e].apply(t.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(n)),t)},f=this.$W,x=this.$M,h=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case c:return r?m(1,0):m(31,11);case d:return r?m(1,x):m(0,x+1);case s:var v=this.$locale().weekStart||0,b=(f<v?f+7:f)-v;return m(r?h-b:h+(6-b),x);case p:case u:return _(g+"Hours",0);case i:return _(g+"Minutes",1);case o:return _(g+"Seconds",2);case a:return _(g+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(e,n){var t,s=S.p(e),l="set"+(this.$u?"UTC":""),m=(t={},t[p]=l+"Date",t[u]=l+"Date",t[d]=l+"Month",t[c]=l+"FullYear",t[i]=l+"Hours",t[o]=l+"Minutes",t[a]=l+"Seconds",t[r]=l+"Milliseconds",t)[s],_=s===p?this.$D+(n-this.$W):n;if(s===d||s===c){var f=this.clone().set(u,1);f.$d[m](_),f.init(),this.$d=f.set(u,Math.min(this.$D,f.daysInMonth())).$d}else m&&this.$d[m](_);return this.init(),this},h.set=function(e,n){return this.clone().$set(e,n)},h.get=function(e){return this[S.p(e)]()},h.add=function(r,l){var u,m=this;r=Number(r);var _=S.p(l),f=function(e){var n=k(m);return S.w(n.date(n.date()+Math.round(e*r)),m)};if(_===d)return this.set(d,this.$M+r);if(_===c)return this.set(c,this.$y+r);if(_===p)return f(1);if(_===s)return f(7);var x=(u={},u[o]=n,u[i]=t,u[a]=e,u)[_]||1,h=this.$d.getTime()+r*x;return S.w(h,this)},h.subtract=function(e,n){return this.add(-1*e,n)},h.format=function(e){var n=this,t=this.$locale();if(!this.isValid())return t.invalidDate||m;var r=e||"YYYY-MM-DDTHH:mm:ssZ",a=S.z(this),o=this.$H,i=this.$m,p=this.$M,s=t.weekdays,d=t.months,l=t.meridiem,c=function(e,t,a,o){return e&&(e[t]||e(n,r))||a[t].slice(0,o)},u=function(e){return S.s(o%12||12,e,"0")},_=l||function(e,n,t){var r=e<12?"AM":"PM";return t?r.toLowerCase():r};return r.replace(f,function(e,r){return r||function(e){switch(e){case"YY":return String(n.$y).slice(-2);case"YYYY":return S.s(n.$y,4,"0");case"M":return p+1;case"MM":return S.s(p+1,2,"0");case"MMM":return c(t.monthsShort,p,d,3);case"MMMM":return c(d,p);case"D":return n.$D;case"DD":return S.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return c(t.weekdaysMin,n.$W,s,2);case"ddd":return c(t.weekdaysShort,n.$W,s,3);case"dddd":return s[n.$W];case"H":return String(o);case"HH":return S.s(o,2,"0");case"h":return u(1);case"hh":return u(2);case"a":return _(o,i,!0);case"A":return _(o,i,!1);case"m":return String(i);case"mm":return S.s(i,2,"0");case"s":return String(n.$s);case"ss":return S.s(n.$s,2,"0");case"SSS":return S.s(n.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")})},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(r,u,m){var _,f=this,x=S.p(u),h=k(r),g=(h.utcOffset()-this.utcOffset())*n,v=this-h,b=function(){return S.m(f,h)};switch(x){case c:_=b()/12;break;case d:_=b();break;case l:_=b()/3;break;case s:_=(v-g)/6048e5;break;case p:_=(v-g)/864e5;break;case i:_=v/t;break;case o:_=v/n;break;case a:_=v/e;break;default:_=v}return m?_:S.a(_)},h.daysInMonth=function(){return this.endOf(d).$D},h.$locale=function(){return b[this.$L]},h.locale=function(e,n){if(!e)return this.$L;var t=this.clone(),r=F(e,n,!0);return r&&(t.$L=r),t},h.clone=function(){return S.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},x}(),C=T.prototype;return k.prototype=C,[["$ms",r],["$s",a],["$m",o],["$H",i],["$W",p],["$M",d],["$y",c],["$D",u]].forEach(function(e){C[e[1]]=function(n){return this.$g(n,e[0],e[1])}}),k.extend=function(e,n){return e.$i||(e(n,T,k),e.$i=!0),k},k.locale=F,k.isDayjs=w,k.unix=function(e){return k(1e3*e)},k.en=b[v],k.Ls=b,k.p={},k}();var Yn,qn,Gn=i($n.exports),Vn={exports:{}},Jn=i(Vn.exports=(Yn={year:0,month:1,day:2,hour:3,minute:4,second:5},qn={},function(e,n,t){var r,a=function(e,n,t){void 0===t&&(t={});var r=new Date(e),a=function(e,n){void 0===n&&(n={});var t=n.timeZoneName||"short",r=e+"|"+t,a=qn[r];return a||(a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:t}),qn[r]=a),a}(n,t);return a.formatToParts(r)},o=function(e,n){for(var r=a(e,n),o=[],i=0;i<r.length;i+=1){var p=r[i],s=p.type,d=p.value,l=Yn[s];l>=0&&(o[l]=parseInt(d,10))}var c=o[3],u=24===c?0:c,m=o[0]+"-"+o[1]+"-"+o[2]+" "+u+":"+o[4]+":"+o[5]+":000",_=+e;return(t.utc(m).valueOf()-(_-=_%1e3))/6e4},i=n.prototype;i.tz=function(e,n){if(void 0===e&&(e=r),!this.isValid())return this;var a,i=this.utcOffset(),p=this.toDate(),s=p.toLocaleString("en-US",{timeZone:e}),d=o(+p,e);if(Number(d)){if(a=t(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(d,!0),n){var l=a.utcOffset();a=a.add(i-l,"minute")}}else a=this.utcOffset(0,n);return a.$x.$timezone=e,a},i.offsetName=function(e){var n=this.$x.$timezone||t.tz.guess(),r=a(this.valueOf(),n,{timeZoneName:e}).find(function(e){return"timezonename"===e.type.toLowerCase()});return r&&r.value};var p=i.startOf;i.startOf=function(e,n){if(!this.$x||!this.$x.$timezone)return p.call(this,e,n);var r=t(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return p.call(r,e,n).tz(this.$x.$timezone,!0)},t.tz=function(e,n,a){var i=a&&n,p=a||n||r,s=o(+t(),p);if("string"!=typeof e)return t(e).tz(p);var d=t.utc(e,i).valueOf();if(Number.isNaN(d)){var l=t(NaN);return l.$x.$timezone=p,l}var c=function(e,n,t){var r=e-60*n*1e3,a=o(r,t);if(n===a)return[r,n];var i=o(r-=60*(a-n)*1e3,t);return a===i?[r,a]:[e-60*Math.min(a,i)*1e3,Math.max(a,i)]}(d,s,p),u=c[0],m=c[1],_=t(u).utcOffset(m);return _.$x.$timezone=p,_},t.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},t.tz.setDefault=function(e){r=e}})),Kn={exports:{}};Kn.exports=function(){var e="minute",n=/[+-]\d\d(?::?\d\d)?/g,t=/([+-]|\d\d)/g;return function(r,a,o){var i=a.prototype;o.utc=function(e){return new a({date:e,utc:!0,args:arguments})},i.utc=function(n){var t=o(this.toDate(),{locale:this.$L,utc:!0});return n?t.add(this.utcOffset(),e):t},i.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var p=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),p.call(this,e)};var s=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else s.call(this)};var d=i.utcOffset;i.utcOffset=function(r,a){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?d.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(n);if(!r)return null;var a=(""+r[0]).match(t)||["-",0,0],o=a[0],i=60*+a[1]+ +a[2];return 0===i?0:"+"===o?i:-i}(r),null===r))return this;var i=Math.abs(r)<=16?60*r:r;if(0===i)return this.utc(a);var p=this.clone();if(a)return p.$offset=i,p.$u=!1,p;var s=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(p=this.local().add(i+s,e)).$offset=i,p.$x.$localOffset=s,p};var l=i.format;i.format=function(e){var n=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,n)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()};var c=i.toDate;i.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var u=i.diff;i.diff=function(e,n,t){if(e&&this.$u===e.$u)return u.call(this,e,n,t);var r=this.local(),a=o(e).local();return u.call(r,a,n,t)}}}();var Zn=i(Kn.exports);Gn.extend(Zn),Gn.extend(Jn);var Xn="preferred_date",Qn="datetime",et="preferred_time_zone",nt=/^[+-]?\d/,tt=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],rt=/^(\d{1,2}):(\d{2})/;function at(e){var n=rt.exec(e||"");if(!n)return-1;var t=Number(n[1]),r=Number(n[2]);return t>23||r>59?-1:60*t+r}function ot(e){return e<10?"0".concat(e):"".concat(e)}function it(e){var n=(e%1440+1440)%1440;return"".concat(ot(Math.floor(n/60)),":").concat(ot(n%60))}function pt(e){return"".concat(e.getFullYear(),"-").concat(ot(e.getMonth()+1),"-").concat(ot(e.getDate()))}function st(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),!0}catch(e){return!1}}var dt=["longGeneric","long"];function lt(e){if(!e)return"";for(var n=0,t=dt;n<t.length;n++){var r=t[n];try{var a=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:r}).formatToParts(new Date).find(function(e){return"timeZoneName"===e.type});if(a&&a.value)return a.value}catch(e){}}return e}function ct(e,n,t){var r=at(n),a=r<0?n:it(r),o="".concat(e,"T").concat(a);try{return Gn.tz(o,t).format()}catch(e){return Gn(o).format()}}function ut(e){var n=null==e?void 0:e.timezone;if(n&&"string"==typeof n&&!nt.test(n)){try{if(!Gn.tz("2026-01-01T00:00",n).isValid())return}catch(e){return}return n}}function mt(e){var n=at(e);if(n<0)return e;var t=Math.floor(n/60);return"".concat(t%12==0?12:t%12,":").concat(ot(n%60)," ").concat(t<12?"AM":"PM")}function _t(e){if(!e)return"";if(e.label)return e.label;var n=mt(e.start);return e.end?"".concat(n," - ").concat(mt(e.end)):n}function ft(e){var n=null==e?void 0:e.horizonDays;return"number"==typeof n&&n>=0?n:60}function xt(e){return!!e&&"object"==typeof e&&"string"==typeof e.start}function ht(e,n,t,r){var a=n.leadTimeMinutes,o=a&&a>0?a:0,i=r.getTime()+6e4*o;return e.filter(function(e){return function(e,n,t){var r="".concat(e,"T").concat(n);try{return Gn.tz(r,t).valueOf()}catch(e){return Gn(r).valueOf()}}(t,e.start,n.timezone)>=i})}function gt(e,n,t,r,a){if(void 0===t&&(t=new Date),!e||!n||isNaN(n.getTime()))return[];var i=pt(n);return function(e,n,t,r){if(r)return ht(o([],r[n]||[],!0),e,n,t);var a=function(e,n){return(e.exceptions||[]).find(function(e){return e.date===n})}(e,n);if(Array.isArray(e.offerings))return!a||a.spans&&0!==a.spans.length?ht(e.offerings,e,n,t):[];for(var i=function(e){var n=new Date("".concat(e,"T00:00:00Z"));return isNaN(n.getTime())?void 0:tt[n.getUTCDay()]}(n),p=a?a.spans||[]:i&&(e.days||{})[i]||[],s=e.slotMinutes&&e.slotMinutes>0?e.slotMinutes:30,d=e.durationMinutes&&e.durationMinutes>0?e.durationMinutes:void 0,l=[],c=0,u=p;c<u.length;c++){var m=u[c],_=at(null==m?void 0:m.start),f=at(null==m?void 0:m.end);if(!(_<0||f<0))for(var x=_;x<f&&!(d&&x+d>f);x+=s){var h={start:it(x)};d&&(h.end=it(x+d)),l.push(h)}}return ht(l,e,n,t)}(e,i,t,r).filter(function(e){return!Bn(i,e.start,a)})}function vt(e,n,t,r,a){if(void 0===t&&(t=new Date),!e||!n||isNaN(n.getTime()))return!1;var o,i,p=pt(n),s=ft(e),d=yt(e.timezone,t),l=(o=d,i=p,Math.round((Date.parse("".concat(i,"T00:00:00Z"))-Date.parse("".concat(o,"T00:00:00Z")))/864e5));return!(l<0||l>s)&&gt(e,n,t,r,a).length>0}function bt(e,n,t,r,a){if(void 0===n&&(n=new Date),void 0===t&&(t=function(){return!1}),e)for(var o=yt(e.timezone,n),i=0;i<=ft(e);i++){var p=Gn("".concat(o,"T00:00:00")).add(i,"day").toDate();if(vt(e,p,n,r,a)&&!t(p))return p}}function yt(e,n){try{return Gn(n).tz(e).format("YYYY-MM-DD")}catch(e){return pt(n)}}var wt=["step-nomatch","step-nomatchaggregator","step-no-match-financing","step-payPerCallNoneAvailable"];function Ft(e){var n=e.querySelectorAll('[id^="step-"]');if(0===n.length)return"empty";for(var t=!1,r=0;r<n.length;r++){var a=n[r].id;if(-1!==wt.indexOf(a))return"no_coverage";if("step-loading"!==a)return"rendered";t=!0}return t?"loading":"empty"}var kt="data-xapp-external-widget-origin";function St(e,r){void 0===r&&(r={});var a=r.onRendered,o=r.onNoRender,i=r.onError,p=r.onFallback,s=n.useState("pending"),d=s[0],l=s[1],c=n.useState(0),u=c[0],m=c[1],_=n.useRef(!1),f=n.useRef(!1),x=n.useRef(0),h=n.useRef(!1),g=n.useRef(r);return g.current=r,n.useEffect(function(){var n;if(e){var r=function(e){if(!e)return"unknown";try{return new URL(e).hostname}catch(e){return"unknown"}}(e.scriptSrc),s=t({},e.config);if(e.successCallbackKey){var d=e.successCallbackKey;s[d]=function(e){var n,t;if(f.current)return x.current+=1,he("[ExternalWidget] Suppressed repeat ".concat(d," fire ")+"#".concat(x.current," from ").concat(r),e),void m(x.current);f.current=!0,null===(t=(n=g.current).onScheduled)||void 0===t||t.call(n,r,e)}}if(window[e.configGlobal]=s,!_.current){_.current=!0;var c=function(n,t){h.current||(h.current=!0,l(n),null==t||t(),"rendered"!==n&&e.fallbackStep&&(null==p||p(e.fallbackStep)))};if(!function(e){try{return"https:"===new URL(e).protocol}catch(e){return!1}}(e.scriptSrc))return he("[ExternalWidget] Rejected script URL from unexpected origin: ".concat(e.scriptSrc)),void c("error",function(){return null==i?void 0:i(r)});var u,v,b,y=document.getElementById(e.anchorId),w=null!==(n=e.renderTimeoutMs)&&void 0!==n?n:8e3,F=0,k=function(){return c("no_render",function(){return null==o?void 0:o(r)})},S=function(e){if(!e)return!1;var n=Ft(e);return"rendered"===n?(c("rendered",function(){return null==a?void 0:a(r)}),!0):"no_coverage"===n&&(k(),!0)},T=function(){if(!h.current){var n=document.getElementById(e.anchorId);if(!S(n))return n&&"loading"===Ft(n)&&F<3?(F+=1,void(u=setTimeout(T,w))):void k()}};S(y)||(y&&(v=new MutationObserver(function(){S(document.getElementById(e.anchorId))})).observe(y,{childList:!0,subtree:!0}),u=setTimeout(T,w));try{b=new URL(e.scriptSrc).origin}catch(n){b=e.scriptSrc}if(!document.querySelector("script[".concat(kt,'="').concat(b,'"]'))){var C=document.createElement("script");C.src=e.cacheBust?"".concat(e.scriptSrc).concat(e.scriptSrc.includes("?")?"&":"?","v=").concat(Date.now()):e.scriptSrc,C.setAttribute(kt,b),C.onerror=function(){he("[ExternalWidget] Failed to load script: ".concat(e.scriptSrc)),c("error",function(){return null==i?void 0:i(r)})},document.body.appendChild(C)}return function(){u&&clearTimeout(u),null==v||v.disconnect()}}}},[e]),{outcome:d,suppressedScheduledCount:u}}var Tt={xapp_select_option:"xapp_form_FormFieldSelect-module_xapp_select_option__m-RaK",xapp_select_label:"xapp_form_FormFieldSelect-module_xapp_select_label__U70Ur",xapp_checkbox_select:"xapp_form_FormFieldSelect-module_xapp_checkbox_select__QccWu",xapp_select_input:"xapp_form_FormFieldSelect-module_xapp_select_input__UcGaw",xapp_select_icon:"xapp_form_FormFieldSelect-module_xapp_select_icon__BgEGq",xapp_select_helper:"xapp_form_FormFieldSelect-module_xapp_select_helper__T4Eyt",xapp_select_container:"xapp_form_FormFieldSelect-module_xapp_select_container__HWy4J",xapp_select_title_container:"xapp_form_FormFieldSelect-module_xapp_select_title_container__tnfQy"};De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldSelect-module_xapp_select_option__m-RaK {\n display: inline-flex;\n align-items: center;\n vertical-align: middle;\n margin: 0 16px 0 -10px;\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_label__U70Ur {\n font-family: var(--xapp-form-widget-checkbox-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n letter-spacing: 0.00938em;\n}\n\n.xapp_form_FormFieldSelect-module_xapp_checkbox_select__QccWu {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: relative;\n box-sizing: border-box;\n flex-shrink: 0;\n margin: 6px 0 !important;\n font-size: var(--xapp-form-widget-checkbox-font-size, 14px) !important;\n font-family: var(--xapp-form-widget-checkbox-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif)) !important;\n color: var(--xapp-form-widget-checkbox-color, #000000) !important;\n padding: 8px 10px !important;\n height: 32px !important;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldSelect-module_xapp_checkbox_select__QccWu {\n height: 44px !important;\n }\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_input__UcGaw {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n opacity: 0;\n z-index: 1;\n cursor: inherit;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_icon__BgEGq {\n font-size: 24px;\n flex-shrink: 0;\n border-radius: 2px;\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_input__UcGaw:focus-visible + .xapp_form_FormFieldSelect-module_xapp_select_icon__BgEGq {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_helper__T4Eyt {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_container__HWy4J {\n display: flex;\n flex-wrap: wrap; /* Allows items to wrap onto a new row */\n justify-content: center; /* Centers items horizontally */\n}\n\n.xapp_form_FormFieldSelect-module_xapp_select_title_container__tnfQy {\n text-align: center; /* Keeps the title over the centered options */\n}\n.xapp_form_FormFieldSelect-module_xapp_select_title_container__tnfQy p {\n font-family: var(--xapp-form-widget-checkbox-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n color: var(--xapp-form-widget-checkbox-color, #000000);\n}\n.xapp_form_FormFieldSelect-module_xapp_select_title_container__empty__zC4gk p {\n margin: 0;\n}");var Ct=function(r){var a=r.field,i=r.onFieldChange,p=r.errorMessage,s=n.useState([]),d=s[0],l=s[1],c=n.useState(""),u=c[0],m=c[1],_=function(e){var n=e.target,t=n.name,r=n.checked;l(function(e){return r?o(o([],e,!0),[t],!1):e.filter(function(e){return e!==t})})},f=function(e){m(e.target.value)},x="xapp-select-".concat(n.useId()),h="".concat(x,"-title"),g="".concat(x,"-helper-text"),v=!!p;return n.useEffect(function(){a.radio?i(a.name,u?[u]:[]):i(a.name,d)},[d,u,a.name,a.radio,i]),e.jsxs("div",{style:t({},a.style),children:[e.jsx("div",{className:"".concat(Tt.xapp_select_title_container).concat(a.title?"":"__empty"),children:e.jsx("p",{id:h,children:a.title})}),e.jsx("div",{className:Tt.xapp_select_container,role:a.radio?"radiogroup":"group","aria-invalid":a.radio&&v||void 0,"aria-labelledby":a.title?h:void 0,"aria-describedby":v?g:void 0,children:a.items.map(function(n){var t=a.radio?u===n.id:d.includes(n.id),r=a.radio?t?Xe:Qe:t?Ke:Ze;return e.jsxs("label",{className:Tt.xapp_select_option,children:[e.jsxs("span",{className:"".concat(Tt.xapp_checkbox_select," ").concat(t?Tt.xapp_checkbox_select_checked:""),children:[a.radio?e.jsx("input",{type:"radio",className:Tt.xapp_select_input,name:a.name,value:n.id,checked:t,onChange:f}):e.jsx("input",{type:"checkbox",className:Tt.xapp_select_input,name:n.id,checked:t,onChange:_,"aria-invalid":v||void 0}),e.jsx(r,{className:Tt.xapp_select_icon})]}),e.jsx("span",{className:Tt.xapp_select_label,children:n.label})]},n.id)})}),p&&e.jsx("p",{id:g,className:Tt.xapp_select_helper,children:p})]})},Dt={xapp_form_card:"xapp_form_FormFieldCard-module_xapp_form_card__AcVAf",xapp_form_card_body:"xapp_form_FormFieldCard-module_xapp_form_card_body__vuEht",xapp_form_card_header:"xapp_form_FormFieldCard-module_xapp_form_card_header__SS1vk",xapp_form_card_header_title:"xapp_form_FormFieldCard-module_xapp_form_card_header_title__xZzN5",xapp_form_card_header_subheader:"xapp_form_FormFieldCard-module_xapp_form_card_header_subheader__zOL4x",xapp_form_card_media:"xapp_form_FormFieldCard-module_xapp_form_card_media__o6A6S",xapp_form_card_content:"xapp_form_FormFieldCard-module_xapp_form_card_content__xk0qq",xapp_form_card_text:"xapp_form_FormFieldCard-module_xapp_form_card_text__L-a2X",xapp_form_card_text_h1:"xapp_form_FormFieldCard-module_xapp_form_card_text_h1__YgA4Z",xapp_form_card_text_h2:"xapp_form_FormFieldCard-module_xapp_form_card_text_h2__Tx0rO",xapp_form_card_text_h3:"xapp_form_FormFieldCard-module_xapp_form_card_text_h3__Js1Op",xapp_form_card_text_h4:"xapp_form_FormFieldCard-module_xapp_form_card_text_h4__9yry6",xapp_form_card_text_h5:"xapp_form_FormFieldCard-module_xapp_form_card_text_h5__toyJR",xapp_form_card_text_h6:"xapp_form_FormFieldCard-module_xapp_form_card_text_h6__0-eii",xapp_form_card_text_subtitle1:"xapp_form_FormFieldCard-module_xapp_form_card_text_subtitle1__NANlV",xapp_form_card_text_subtitle2:"xapp_form_FormFieldCard-module_xapp_form_card_text_subtitle2__MYx4s",xapp_form_card_text_body1:"xapp_form_FormFieldCard-module_xapp_form_card_text_body1__mLBa1",xapp_form_card_text_body2:"xapp_form_FormFieldCard-module_xapp_form_card_text_body2__LVGQo",xapp_form_card_text_inherit:"xapp_form_FormFieldCard-module_xapp_form_card_text_inherit__v3d-Y",xapp_form_card_text_button:"xapp_form_FormFieldCard-module_xapp_form_card_text_button__2t1tt",xapp_form_card_text_caption:"xapp_form_FormFieldCard-module_xapp_form_card_text_caption__GcGFA",xapp_form_card_text_overline:"xapp_form_FormFieldCard-module_xapp_form_card_text_overline__ial1O"};De(".xapp_form_FormFieldCard-module_xapp_form_card__AcVAf img {\n width: 50% !important;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_body__vuEht {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n border-radius: 4px;\n background-color: transparent;\n font-family: var(--xapp-form-widget-card-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_header__SS1vk {\n display: flex;\n flex-direction: column;\n padding: 16px;\n font-family: inherit;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_header_title__xZzN5 {\n display: block;\n font-size: 1.5rem;\n font-weight: 400;\n line-height: 1.334;\n color: var(--xapp-form-widget-card-color, rgba(0, 0, 0, 0.87));\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_header_subheader__zOL4x {\n display: block;\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n color: rgba(0, 0, 0, 0.6);\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_media__o6A6S {\n display: block;\n object-fit: cover;\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_content__xk0qq {\n padding: 4px;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text__L-a2X {\n margin: 0;\n font-family: inherit;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_h1__YgA4Z {\n font-size: 6rem;\n font-weight: 300;\n line-height: 1.167;\n letter-spacing: -0.01562em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_h2__Tx0rO {\n font-size: 3.75rem;\n font-weight: 300;\n line-height: 1.2;\n letter-spacing: -0.00833em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_h3__Js1Op {\n font-size: 3rem;\n font-weight: 400;\n line-height: 1.167;\n letter-spacing: 0;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_h4__9yry6 {\n font-size: 2.125rem;\n font-weight: 400;\n line-height: 1.235;\n letter-spacing: 0.00735em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_h5__toyJR {\n font-size: 1.5rem;\n font-weight: 400;\n line-height: 1.334;\n letter-spacing: 0;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_h6__0-eii {\n font-size: 1.25rem;\n font-weight: 500;\n line-height: 1.6;\n letter-spacing: 0.0075em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_subtitle1__NANlV {\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.75;\n letter-spacing: 0.00938em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_subtitle2__MYx4s {\n font-size: 0.875rem;\n font-weight: 500;\n line-height: 1.57;\n letter-spacing: 0.00714em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_body1__mLBa1 {\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n letter-spacing: 0.00938em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_body2__LVGQo {\n font-size: 0.875rem;\n font-weight: 400;\n line-height: 1.43;\n letter-spacing: 0.01071em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_inherit__v3d-Y {\n font: inherit;\n letter-spacing: inherit;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_button__2t1tt {\n display: block;\n font-size: 0.875rem;\n font-weight: 500;\n line-height: 1.75;\n letter-spacing: 0.02857em;\n text-transform: uppercase;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_caption__GcGFA {\n display: block;\n font-size: 0.75rem;\n font-weight: 400;\n line-height: 1.66;\n letter-spacing: 0.03333em;\n}\n\n.xapp_form_FormFieldCard-module_xapp_form_card_text_overline__ial1O {\n display: block;\n font-size: 0.75rem;\n font-weight: 400;\n line-height: 2.66;\n letter-spacing: 0.08333em;\n text-transform: uppercase;\n}");var Nt={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p",button:"span",caption:"span",overline:"span"},It={primary:"#1976d2",secondary:"#9c27b0",error:"#d32f2f",warning:"#ed6c02",info:"#0288d1",success:"#2e7d32",textPrimary:"rgba(0, 0, 0, 0.87)",textSecondary:"rgba(0, 0, 0, 0.6)",textDisabled:"rgba(0, 0, 0, 0.38)","text.primary":"rgba(0, 0, 0, 0.87)","text.secondary":"rgba(0, 0, 0, 0.6)","text.disabled":"rgba(0, 0, 0, 0.38)"};var Rt=function(n){var r,a=n.field,o=a.variant&&Nt[a.variant]?a.variant:"body2",i=Nt[o];return e.jsx("div",{className:Dt.xapp_form_card,children:e.jsxs("div",{className:Dt.xapp_form_card_body,children:[a.header&&e.jsxs("div",{className:Dt.xapp_form_card_header,children:[e.jsx("span",{className:Dt.xapp_form_card_header_title,children:a.header.title}),a.header.subheader&&e.jsx("span",{className:Dt.xapp_form_card_header_subheader,children:a.header.subheader})]}),a.media&&e.jsx("img",{className:Dt.xapp_form_card_media,src:a.media.imageUrl,alt:a.media.alt,height:a.media.height,width:a.media.width}),a.text&&e.jsx("div",{className:Dt.xapp_form_card_content,children:e.jsx(i,{className:"".concat(Dt.xapp_form_card_text," ").concat(Dt["xapp_form_card_text_".concat(o)]||""),"data-variant":o,style:t({whiteSpace:"pre-line",textAlign:a.align||"center",color:(r=a.color||"textSecondary",It[r]||r)},a.style),children:a.text})})]})})},At="xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb",jt="xapp_form_FormFieldChips-module_xapp_chip_label__Yua52",Mt="xapp_form_FormFieldChips-module_xapp_chip_link__yhO-O",Et="xapp_form_FormFieldChips-module_xapp_chip_icon__Awxmc",Ot="xapp_form_FormFieldChips-module_xapp_chips_helper__2gCIL",zt="xapp_form_FormFieldChips-module_xapp_chip_clicked__S8xmo",Pt="xapp_form_FormFieldChips-module_xapp_chips_container__ZITF5",Lt="xapp_form_FormFieldChips-module_xapp_chip_wrapper__AGfKl",Ht="xapp_form_FormFieldChips-module_xapp_chips_title_container__VGw77";function Ut(e){return!!e&&!e.url}De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb {\n display: inline-flex !important;\n align-items: center;\n justify-content: center;\n position: relative;\n box-sizing: border-box !important;\n max-width: 100%;\n vertical-align: middle;\n white-space: nowrap;\n border: 0 !important;\n outline: 0;\n line-height: 1.5 !important;\n text-transform: none !important;\n text-decoration: none !important;\n letter-spacing: normal;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n margin: 6px !important;\n font-size: var(--xapp-form-widget-chips-font-size, 0.875em) !important;\n font-family: var(--xapp-form-widget-chips-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif)) !important;\n padding: 8px 16px !important;\n height: 32px !important;\n border-radius: var(--xapp-form-widget-border-radius-lg, 16px) !important;\n min-width: 130px !important;\n background-color: var(--xapp-form-widget-chips-background-color, #c4dced) !important;\n color: var(--xapp-form-widget-chips-color, #000000) !important;\n cursor: pointer;\n transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out, transform 150ms ease-in-out !important;\n}\n.xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb:hover {\n box-shadow: var(--xapp-form-widget-box-shadow-subtle, 0 2px 8px rgba(0, 0, 0, 0.08)) !important;\n transform: translateY(-1px);\n}\n.xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb:active {\n transform: scale(0.98) !important;\n}\n.xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb:disabled {\n opacity: 0.4;\n cursor: not-allowed;\n box-shadow: none !important;\n transform: none !important;\n}\n.xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb:focus {\n outline: none;\n}\n.xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldChips-module_xapp_checkbox_chip__8DRkb {\n min-width: 100px !important;\n font-size: 16px !important;\n height: 44px !important;\n }\n}\n\n.xapp_form_FormFieldChips-module_xapp_chip_label__Yua52 {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n padding-left: 4px;\n padding-right: 4px;\n font-family: var(--xapp-form-widget-chips-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif)) !important;\n}\n\n.xapp_form_FormFieldChips-module_xapp_chip_link__yhO-O .xapp_form_FormFieldChips-module_xapp_chip_label__Yua52 {\n text-decoration: underline;\n}\n\n.xapp_form_FormFieldChips-module_xapp_chip_icon__Awxmc {\n flex-shrink: 0;\n font-size: 1.5rem;\n margin-left: 5px;\n margin-right: -6px;\n}\n\n.xapp_form_FormFieldChips-module_xapp_chips_helper__2gCIL {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n}\n\n.xapp_form_FormFieldChips-module_xapp_chip_clicked__S8xmo {\n background-color: var(--xapp-form-widget-chips-background-color-selected, var(--xapp-form-widget-chips-background-color-dark, #6e7ae1)) !important;\n color: var(--xapp-form-widget-chips-color-selected, #ffffff) !important;\n box-shadow: 0 2px 8px rgba(110, 122, 225, 0.3) !important;\n}\n\n.xapp_form_FormFieldChips-module_xapp_chips_container__ZITF5 {\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n justify-content: center;\n}\n\n.xapp_form_FormFieldChips-module_xapp_chip_wrapper__AGfKl {\n flex: 0 0 calc(33.33% - 10px);\n margin: 0 2px;\n text-align: center;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldChips-module_xapp_chip_wrapper__AGfKl {\n margin: 0 2px;\n }\n}\n\n.xapp_form_FormFieldChips-module_xapp_chips_title_container__VGw77 {\n margin: inherit;\n}\n.xapp_form_FormFieldChips-module_xapp_chips_title_container__VGw77 p {\n font-family: var(--xapp-form-widget-chips-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n font-size: 1.25em;\n font-weight: 600;\n line-height: 1.3;\n}\n.xapp_form_FormFieldChips-module_xapp_chips_title_container__empty__5seHa p {\n margin: 10px 0;\n}");var Bt=function(r){var a=r.field,i=r.onFieldChange,p=r.errorMessage,s=r.value,d=r.disabledItemIds,l=s||r.field.items.filter(Ut).filter(function(e){return e.selected}).map(function(e){return e.id}),c=n.useState(l),u=c[0],m=c[1],_=(d||[]).join(",");n.useEffect(function(){var e=_?_.split(","):[];e.length>0&&m(function(n){var t=n.filter(function(n){return!e.includes(n)});return t.length===n.length?n:t})},[_]);var f="xapp-chips-".concat(n.useId()),x="".concat(f,"-title"),h="".concat(f,"-helper-text");return n.useEffect(function(){"function"==typeof i&&i(a.name,u)},[u,a.name,i]),e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignContent:"center",alignItems:"center"},children:[e.jsx("div",{className:"".concat(Ht).concat(a.title?"":"__empty"),style:t({},a.style),children:e.jsx("p",{id:x,children:a.title})}),e.jsx("div",{className:Pt,role:"group","aria-labelledby":a.title?x:void 0,"aria-describedby":p?h:void 0,children:a.items.map(function(n,t){var r=u.includes(n.id),i=!!(null==d?void 0:d.includes(n.id)),p="".concat(At," ").concat(r?zt:""),s=e.jsxs(e.Fragment,{children:[r&&e.jsx(Je,{className:Et}),e.jsx("span",{className:jt,children:n.label})]});return Ut(n)?e.jsx("div",{className:Lt,children:e.jsx("button",{type:"button","aria-pressed":r,disabled:i,onClick:function(){return function(e){if(!(null==d?void 0:d.includes(e))){var n=u.includes(e);a.radio?m(function(t){return n?[]:[e]}):m(function(t){return n?t.filter(function(n){return n!==e}):o(o([],t,!0),[e],!1)})}}(n.id)},className:p,children:s})},t):function(e){return!!e.url}(n)?e.jsx("div",{className:Lt,children:e.jsx("a",{href:n.url,className:"".concat(p," ").concat(Mt),children:s})},t):e.jsx(e.Fragment,{})})}),p&&e.jsx("p",{id:h,className:Ot,children:p})]})},Wt={PHONE:{type:"tel",inputMode:"tel",autoComplete:"tel"},EMAIL:{type:"email",inputMode:"email",autoComplete:"email"},ZIP_CODE:{type:"text",inputMode:"numeric",autoComplete:"postal-code"},ADDRESS:{type:"text",inputMode:"text",autoComplete:"street-address"}},$t={type:"text",inputMode:"text"},Yt={name:"name",fullname:"name",yourname:"name",customername:"name",contactname:"name",firstname:"given-name",fname:"given-name",givenname:"given-name",lastname:"family-name",lname:"family-name",surname:"family-name",familyname:"family-name",email:"email",emailaddress:"email",phone:"tel",phonenumber:"tel",telephone:"tel",tel:"tel",mobile:"tel",mobilephone:"tel",cellphone:"tel",zip:"postal-code",zipcode:"postal-code",postalcode:"postal-code",postcode:"postal-code",address:"street-address",streetaddress:"street-address",street:"street-address",city:"address-level2",town:"address-level2",state:"address-level1",province:"address-level1",company:"organization",companyname:"organization",organization:"organization",business:"organization",businessname:"organization"};function qt(e){var n=e.format,r=e.name,a=e.isLastField,o=n?Wt[n]:void 0,i=a?"done":"next";if(o)return t(t({},o),{enterKeyHint:i});var p=function(e){if(e)return Yt[e.toLowerCase().replace(/[^a-z0-9]/g,"")]}(r);return t(t({},$t),p?{autoComplete:p,enterKeyHint:i}:{enterKeyHint:i})}var Gt={xapp_text_input_container__title:"xapp_form_FormFieldTextInput-module_xapp_text_input_container__title__zeqDT",xapp_text_input_container__field:"xapp_form_FormFieldTextInput-module_xapp_text_input_container__field__B5K33",xapp_text_input_counter:"xapp_form_FormFieldTextInput-module_xapp_text_input_counter__oSgo1","xapp_text_input_counter--limit":"xapp_form_FormFieldTextInput-module_xapp_text_input_counter--limit__59Lau",xapp_text_input_text:"xapp_form_FormFieldTextInput-module_xapp_text_input_text__3rHVn",xapp_text_input_root:"xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl",xapp_text_input_focused:"xapp_form_FormFieldTextInput-module_xapp_text_input_focused__TMVDB",xapp_text_input_error:"xapp_form_FormFieldTextInput-module_xapp_text_input_error__t0djn",xapp_text_input_control:"xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw",xapp_text_input_label:"xapp_form_FormFieldTextInput-module_xapp_text_input_label__mNAse",xapp_text_input_asterisk:"xapp_form_FormFieldTextInput-module_xapp_text_input_asterisk__sODty",xapp_text_input_helper:"xapp_form_FormFieldTextInput-module_xapp_text_input_helper__scKZk"};De('/**\n * The phone breakpoint.\n *\n * Width alone cannot express "phone". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step\'s action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field\'s helper / error line. The metrics are MUI\'s FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldTextInput-module_xapp_text_input_container__title__zeqDT p {\n margin: 0;\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_container__field__B5K33 {\n position: relative;\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_counter__oSgo1 {\n position: absolute;\n right: 36px;\n bottom: 8px;\n font-size: 12px;\n color: #666;\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n transition: color 200ms ease-in-out;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_counter--limit__59Lau {\n color: #d32f2f;\n font-weight: 500;\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_text__3rHVn {\n display: inline-flex;\n flex-direction: column;\n position: relative;\n width: 100%;\n min-width: 0;\n margin: 16px 0 8px;\n padding: 0;\n border: 0;\n box-sizing: border-box;\n vertical-align: top;\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n box-sizing: border-box;\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n font-size: 1rem;\n line-height: 1.4375em;\n cursor: text;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::before, .xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::after {\n display: var(--xapp-form-widget-text-underline-display, block) !important;\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::before {\n border-bottom: 1px solid rgba(0, 0, 0, 0.42);\n transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::after {\n border-bottom: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n transform: scaleX(0);\n transition: transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl:hover::before {\n border-bottom-color: rgba(0, 0, 0, 0.87);\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_focused__TMVDB::after {\n transform: scaleX(1);\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_error__t0djn .xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::before, .xapp_form_FormFieldTextInput-module_xapp_text_input_error__t0djn .xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::after {\n border-bottom-color: #d32f2f;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_error__t0djn .xapp_form_FormFieldTextInput-module_xapp_text_input_root__LhuLl::after {\n transform: scaleX(1);\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw {\n display: block;\n min-width: 0;\n padding: 21px 12px 4px 12px !important;\n border: var(--xapp-form-widget-text-border-width, 0) solid var(--xapp-form-widget-text-border-color, transparent) !important;\n background-color: var(--xapp-form-widget-text-background-color, rgba(0, 0, 0, 0.06)) !important;\n border-radius: var(--xapp-form-widget-border-radius-sm, 8px) var(--xapp-form-widget-border-radius-sm, 8px) var(--xapp-form-widget-text-bottom-radius, 0) var(--xapp-form-widget-text-bottom-radius, 0) !important;\n transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out !important;\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87)) !important;\n font-size: var(--xapp-form-widget-text-font-size, 1rem) !important;\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif)) !important;\n line-height: 1.4375em !important;\n letter-spacing: inherit;\n height: auto !important;\n min-height: 0 !important;\n width: 100% !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n margin: 0 !important;\n margin-bottom: 0 !important;\n border-width: var(--xapp-form-widget-text-border-width, 0) !important;\n border-style: solid !important;\n box-shadow: none;\n -webkit-appearance: none !important;\n appearance: none !important;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw::placeholder {\n color: currentColor;\n opacity: 0.42;\n transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw[data-shrink=false]::placeholder {\n opacity: 0 !important;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw:hover {\n background-color: var(--xapp-form-widget-text-background-color-dark, rgba(0, 0, 0, 0.09)) !important;\n border-color: var(--xapp-form-widget-text-border-color-focus, var(--xapp-form-widget-text-border-color, transparent)) !important;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw:focus {\n background-color: var(--xapp-form-widget-text-background-color-dark, rgba(0, 0, 0, 0.09)) !important;\n border-color: var(--xapp-form-widget-text-border-color-focus, var(--xapp-form-widget-text-border-color, transparent)) !important;\n outline: none !important;\n box-shadow: inset 0 0 0 2px var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54)) !important;\n}\n\ntextarea.xapp_form_FormFieldTextInput-module_xapp_text_input_control__GO3Jw {\n resize: none;\n overflow: auto;\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_label__mNAse {\n position: absolute !important;\n left: 0;\n top: 0;\n z-index: 1;\n display: block;\n max-width: calc(100% - 24px);\n margin: 0 !important;\n padding: 0 !important;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n pointer-events: none;\n transform-origin: top left;\n transform: translate(12px, 13px) scale(1) !important;\n transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms !important;\n color: rgba(0, 0, 0, 0.6);\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif) !important;\n font-size: 1rem !important;\n font-weight: 400 !important;\n line-height: 1.4375em !important;\n letter-spacing: 0.00938em;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_label__mNAse[data-shrink=true] {\n max-width: calc(133% - 24px);\n transform: translate(12px, 4px) scale(0.75) !important;\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_focused__TMVDB .xapp_form_FormFieldTextInput-module_xapp_text_input_label__mNAse {\n color: var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n}\n.xapp_form_FormFieldTextInput-module_xapp_text_input_error__t0djn .xapp_form_FormFieldTextInput-module_xapp_text_input_label__mNAse {\n color: #d32f2f;\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_error__t0djn .xapp_form_FormFieldTextInput-module_xapp_text_input_asterisk__sODty {\n color: #d32f2f;\n}\n\n.xapp_form_FormFieldTextInput-module_xapp_text_input_helper__scKZk {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n}');var Vt=function(r){var a=r.field,o=r.onFieldChange,i=r.value,p=r.errorMessage,s=r.required,d=r.isLastField,l=n.useState(i||""),c=l[0],u=l[1],m=n.useState(!1),_=m[0],f=m[1],x="xapp-text-".concat(n.useId()),h="".concat(x,"-helper-text"),g=n.useRef(null);n.useEffect(function(){o(a.name,c)},[a.name,o,c]),n.useEffect(function(){u(i||"")},[i]);var v=!!a.multiline&&!a.rows;n.useLayoutEffect(function(){var e=g.current;if(v&&e){e.style.height="auto";var n=parseFloat(getComputedStyle(e).lineHeight)||0,t=a.rowsMax&&n?n*a.rowsMax:1/0,r=Math.min(e.scrollHeight,t);r>0&&(e.style.height="".concat(r,"px"))}},[v,a.rowsMax,c]);var b=a.maxLength,y=c.length,w=void 0!==b&&y>=b,F=void 0!==b&&y>=.8*b,k=qt({format:a.format,name:a.name,isLastField:d}),S=k.type,T=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)n.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]])}return t}(k,["type"]),C=_||c.length>0||!a.label,D=t(t({},T),{id:x,name:a.name,className:Gt.xapp_text_input_control,placeholder:a.placeholder,value:c,onChange:function(e){var n=e.target.value;u(n)},onFocus:function(){return f(!0)},onBlur:function(){return f(!1)},required:s,maxLength:a.maxLength||void 0,"aria-invalid":!!p,"aria-describedby":p?h:void 0,"data-shrink":C?"true":"false"});return e.jsxs("div",{className:Gt.xapp_text_input_container,children:[a.title&&e.jsx("div",{className:Gt.xapp_text_input_container__title,children:e.jsx("p",{children:a.title})}),e.jsxs("div",{className:Gt.xapp_text_input_container__field,children:[e.jsxs("div",{className:"".concat(Gt.xapp_text_input_text," ").concat(p?Gt.xapp_text_input_error:""),style:a.style,children:[e.jsxs("div",{className:"".concat(Gt.xapp_text_input_root," ").concat(_?Gt.xapp_text_input_focused:""," ").concat(a.multiline?Gt.xapp_text_input_multiline:""),children:[a.label&&e.jsxs("label",{htmlFor:x,className:Gt.xapp_text_input_label,"data-shrink":C?"true":"false",children:[a.label,s&&e.jsx("span",{className:Gt.xapp_text_input_asterisk,"aria-hidden":"true",children:" *"})]}),a.multiline?e.jsx("textarea",t({},D,{ref:g,rows:a.rows||1})):e.jsx("input",t({},D,{type:S}))]}),p&&e.jsx("p",{id:h,className:Gt.xapp_text_input_helper,children:p})]}),F&&e.jsxs("div",{className:"".concat(Gt.xapp_text_input_counter," ").concat(w?Gt["xapp_text_input_counter--limit"]:""),children:[y,"/",b]})]})]})},Jt="xapp_form_FormFieldDropdown-module_xapp_dropdown_container__4oRlr",Kt="xapp_form_FormFieldDropdown-module_xapp_dropdown_control__Dbrih",Zt="xapp_form_FormFieldDropdown-module_xapp_dropdown_select__CH-Gc",Xt="xapp_form_FormFieldDropdown-module_xapp_dropdown_arrow__hX1wc",Qt="xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy",er="xapp_form_FormFieldDropdown-module_xapp_dropdown_label__chOkA",nr="xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B",tr="xapp_form_FormFieldDropdown-module_xapp_dropdown_helper__uYy73",rr="xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form__h8qhc",ar="xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form_input__Fc7Ow";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_container__4oRlr {\n margin-top: 20px;\n margin-bottom: 20px;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_control__Dbrih {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n box-sizing: border-box;\n border-radius: 4px;\n background-color: var(--xapp-form-widget-dropdown-background-color, transparent);\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_select__CH-Gc {\n display: block;\n width: 100% !important;\n max-width: 100% !important;\n height: auto !important;\n min-height: 1.4375em;\n box-sizing: border-box !important;\n margin: 0 !important;\n padding: 8.5px 32px 8.5px 14px !important;\n border: 0 !important;\n border-radius: 4px;\n outline: 0;\n background: transparent none !important;\n box-shadow: none !important;\n -webkit-appearance: none !important;\n -moz-appearance: none !important;\n appearance: none !important;\n cursor: pointer;\n color: var(--xapp-form-widget-dropdown-color, rgba(0, 0, 0, 0.87)) !important;\n font-size: var(--xapp-form-widget-dropdown-font-size, 14px);\n font-family: var(--xapp-form-widget-dropdown-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n line-height: 1.4375em !important;\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldDropdown-module_xapp_dropdown_select__CH-Gc {\n font-size: var(--xapp-form-widget-dropdown-font-size-mobile, 16px);\n }\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_arrow__hX1wc {\n position: absolute;\n right: 7px;\n top: calc(50% - 0.5em);\n font-size: 24px;\n color: rgba(0, 0, 0, 0.54);\n pointer-events: none;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy {\n position: absolute;\n inset: -5px 0 0;\n margin: 0 !important;\n padding: 0 8px !important;\n min-width: 0;\n border: 1px solid rgba(0, 0, 0, 0.23) !important;\n border-radius: inherit;\n text-align: left;\n overflow: hidden;\n pointer-events: none;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy legend {\n float: unset;\n display: block;\n width: auto;\n max-width: 100%;\n height: 11px;\n margin: 0 !important;\n padding: 0 !important;\n border: 0 !important;\n font-size: 0.75em;\n visibility: hidden;\n white-space: nowrap;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy legend > span {\n display: inline-block;\n padding-left: 5px;\n padding-right: 5px;\n opacity: 0;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_control__Dbrih:hover .xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy {\n border-color: rgba(0, 0, 0, 0.87) !important;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_control__Dbrih:focus-within .xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy {\n border: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54)) !important;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_label__chOkA {\n position: absolute !important;\n left: 0;\n top: 0;\n z-index: 1;\n max-width: calc(133% - 32px);\n margin: 0 !important;\n padding: 0 !important;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n pointer-events: none;\n transform-origin: top left;\n transform: translate(14px, -9px) scale(0.75) !important;\n color: rgba(0, 0, 0, 0.6);\n font-family: var(--xapp-form-widget-dropdown-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n font-size: 1rem !important;\n font-weight: 400;\n line-height: 1.4375em;\n letter-spacing: 0.00938em;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_control__Dbrih:focus-within .xapp_form_FormFieldDropdown-module_xapp_dropdown_label__chOkA {\n color: var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B .xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy, .xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B:hover .xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy, .xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B:focus-within .xapp_form_FormFieldDropdown-module_xapp_dropdown_outline__fxBhy {\n border-color: #d32f2f !important;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B .xapp_form_FormFieldDropdown-module_xapp_dropdown_label__chOkA, .xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B:focus-within .xapp_form_FormFieldDropdown-module_xapp_dropdown_label__chOkA {\n color: #d32f2f;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_helper__uYy73 {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form__h8qhc {\n margin-top: 8px;\n}\n\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form_input__Fc7Ow {\n display: block;\n width: 100% !important;\n max-width: 100% !important;\n height: auto !important;\n box-sizing: border-box !important;\n margin: 0 !important;\n padding: 8.5px 14px !important;\n border: 1px solid rgba(0, 0, 0, 0.23) !important;\n border-radius: 4px !important;\n background: var(--xapp-form-widget-dropdown-background-color, transparent) !important;\n box-shadow: none !important;\n color: var(--xapp-form-widget-dropdown-color, rgba(0, 0, 0, 0.87)) !important;\n font-size: var(--xapp-form-widget-dropdown-font-size, 14px);\n font-family: var(--xapp-form-widget-dropdown-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n line-height: 1.4375em !important;\n -webkit-appearance: none;\n appearance: none;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form_input__Fc7Ow:hover {\n border-color: rgba(0, 0, 0, 0.87) !important;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form_input__Fc7Ow:focus {\n outline: 0;\n border: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54)) !important;\n padding: 7.5px 13px !important;\n}\n.xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form_input__Fc7Ow.xapp_form_FormFieldDropdown-module_xapp_dropdown_error__-pG-B {\n border-color: #d32f2f !important;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldDropdown-module_xapp_dropdown_free_form_input__Fc7Ow {\n font-size: var(--xapp-form-widget-dropdown-font-size-mobile, 16px);\n }\n}");var or=function(t){var r=t.field,a=t.onFieldChange,o=t.errorMessage,i=t.required,p=t.freeFormErrorMessage,s="".concat(r.name,"-helper-text"),d="".concat(r.name,"-free-form"),l="".concat(d,"-helper-text"),c=n.useState(function(){var e=r.items.find(function(e){return e.selected});return(null==e?void 0:e.id)||"none"}),u=c[0],m=c[1],_=n.useState(""),f=_[0],x=_[1],h=n.useState(function(){var e=r.items.find(function(e){return e.selected});return(null==e?void 0:e.freeFormInput)||!1}),g=h[0],v=h[1],b=n.useRef(a);n.useEffect(function(){"development"===process.env.NODE_ENV&&b.current!==a&&console.warn("FormFieldDropdown: onFieldChange prop is not memoized. This may cause performance issues. Please wrap it in useCallback in the parent component."),b.current=a},[a]);var y=n.useMemo(function(){if(g){var e=r.items.find(function(e){return e.id===u});return(null==e?void 0:e.freeFormFieldName)||"message"}return null},[g,u,r.items]);return n.useEffect(function(){"none"!==u&&a(r.name,u),g&&f&&y&&a(y,f)},[u,f,g,r.name,y,a]),e.jsxs("div",{className:Jt,children:[e.jsxs("div",{className:"".concat(Kt," ").concat(o?nr:""),children:[e.jsxs("label",{htmlFor:r.name,className:er,children:[r.title,i&&e.jsx("span",{"aria-hidden":"true",children:" *"})]}),e.jsxs("select",{className:Zt,name:r.name,id:r.name,value:u,onChange:function(e){var n=e.target.value,t=r.items.find(function(e){return e.id===u});m(n);var o=r.items.find(function(e){return e.id===n});if(o&&o.freeFormInput)v(!0);else if(v(!1),(null==t?void 0:t.freeFormInput)&&f){var i=(null==t?void 0:t.freeFormFieldName)||"message";x(""),a(i,"")}},required:i,"aria-invalid":!!o,"aria-describedby":o?s:void 0,children:[e.jsx("option",{value:"none",children:"Select an option"}),r.items.map(function(n){return e.jsx("option",{value:n.id,children:n.label},n.id)})]}),e.jsx(en,{className:Xt}),e.jsx("fieldset",{"aria-hidden":"true",className:Qt,children:e.jsx("legend",{children:e.jsxs("span",{children:[r.title,i&&" *"]})})})]}),o&&e.jsx("p",{id:s,className:tr,children:o}),g&&e.jsxs("div",{className:rr,children:[e.jsx("input",{type:"text",id:d,className:"".concat(ar," ").concat(p?nr:""),required:!0,placeholder:"Please specify","aria-label":"Please specify",value:f,onChange:function(e){x(e.target.value)},maxLength:r.maxLength||void 0,"aria-invalid":!!p,"aria-describedby":p?l:void 0}),p&&e.jsx("p",{id:l,className:tr,children:p})]})]})},ir="xapp_form_Calendar-module_xapp_calendar__g0vk4",pr="xapp_form_Calendar-module_xapp_calendar_header__rpFZl",sr="xapp_form_Calendar-module_xapp_calendar_label__JueKy",dr="xapp_form_Calendar-module_xapp_calendar_nav__RRUAJ",lr="xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D",cr="xapp_form_Calendar-module_xapp_calendar_week__7Ouri",ur="xapp_form_Calendar-module_xapp_calendar_weeks__EdB4Q",mr="xapp_form_Calendar-module_xapp_calendar_skeleton__yL-4v",_r="xapp_form_Calendar-module_xapp_calendar_weekday__NzfbO",fr="xapp_form_Calendar-module_xapp_calendar_day__Lb9-E",xr="xapp_form_Calendar-module_xapp_calendar_day_outside__4XT5w",hr="xapp_form_Calendar-module_xapp_calendar_day_today__uclpX",gr="xapp_form_Calendar-module_xapp_calendar_day_selected__qi4gk",vr="xapp_form_Calendar-module_xapp_calendar_filler__8Rf7z",br="xapp_form_Calendar-module_xapp_calendar_skeleton_day__yJl4Q";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n/* The month calendar that replaced @mui/x-date-pickers' DateCalendar (#1745).\n *\n * The metrics are MUI's own - a 320px calendar, 36px round days with a 2px gap, a 40px header -\n * so an unthemed calendar looks as it did. Box properties carry !important where a host page's\n * `button { ... }` rules would otherwise reach in: the widget is embedded on sites we do not\n * control, and MUI's emotion styles used to win those fights for us. */\n.xapp_form_Calendar-module_xapp_calendar__g0vk4 {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: 320px;\n max-width: 100%;\n margin: 0 auto;\n color: var(--xapp-form-widget-date-color, rgba(0, 0, 0, 0.87));\n font-family: var(--xapp-form-widget-date-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n}\n\n.xapp_form_Calendar-module_xapp_calendar_header__rpFZl {\n display: flex;\n align-items: center;\n min-height: 40px;\n max-height: 40px;\n margin: 12px 0 4px;\n padding: 0 12px 0 24px;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_label__JueKy {\n flex: 1 1 auto;\n margin-right: auto;\n font-family: inherit;\n font-size: 1rem;\n font-weight: 500;\n line-height: 1.75;\n letter-spacing: 0.00938em;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_nav__RRUAJ {\n display: flex;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D {\n appearance: none;\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 0 !important;\n min-height: 0 !important;\n padding: 0 !important;\n border: 0 !important;\n background-image: none !important;\n box-shadow: none !important;\n font-family: inherit;\n text-transform: none;\n cursor: pointer;\n width: 40px !important;\n height: 40px !important;\n border-radius: 50% !important;\n background-color: transparent !important;\n color: rgba(0, 0, 0, 0.54) !important;\n font-size: 1.5rem;\n}\n.xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D:hover:not(:disabled) {\n background-color: rgba(0, 0, 0, 0.04) !important;\n}\n.xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D:disabled {\n color: rgba(0, 0, 0, 0.26) !important;\n cursor: default;\n}\n.xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D:focus {\n outline: none;\n}\n.xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_week__7Ouri {\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 2px 0;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_weeks__EdB4Q,\n.xapp_form_Calendar-module_xapp_calendar_skeleton__yL-4v {\n min-height: 240px;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_weekday__NzfbO {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 36px;\n height: 40px;\n margin: 0 2px;\n color: rgba(0, 0, 0, 0.6);\n font-size: 0.75rem;\n font-weight: 400;\n line-height: 1.66;\n letter-spacing: 0.03333em;\n text-align: center;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_day__Lb9-E {\n appearance: none;\n box-sizing: border-box;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 0 !important;\n min-height: 0 !important;\n padding: 0 !important;\n border: 0 !important;\n background-image: none !important;\n box-shadow: none !important;\n font-family: inherit;\n text-transform: none;\n cursor: pointer;\n width: 36px !important;\n height: 36px !important;\n margin: 0 2px !important;\n border-radius: 50% !important;\n background-color: transparent !important;\n color: inherit !important;\n font-size: 0.75rem;\n font-weight: 400;\n line-height: 1.66;\n letter-spacing: 0.03333em;\n transition: background-color 200ms ease-in-out;\n}\n.xapp_form_Calendar-module_xapp_calendar_day__Lb9-E:hover:not(:disabled) {\n background-color: rgba(25, 118, 210, 0.04) !important;\n}\n.xapp_form_Calendar-module_xapp_calendar_day__Lb9-E:disabled {\n color: rgba(0, 0, 0, 0.38) !important;\n cursor: default;\n}\n.xapp_form_Calendar-module_xapp_calendar_day__Lb9-E:focus {\n outline: none;\n}\n.xapp_form_Calendar-module_xapp_calendar_day__Lb9-E:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_day_outside__4XT5w {\n color: rgba(0, 0, 0, 0.6) !important;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_day_today__uclpX:not(.xapp_form_Calendar-module_xapp_calendar_day_selected__qi4gk) {\n border: 1px solid rgba(0, 0, 0, 0.6) !important;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_day_selected__qi4gk {\n background-color: var(--xapp-form-widget-date-background-color-selected, #1976d2) !important;\n color: #ffffff !important;\n font-weight: 500;\n}\n.xapp_form_Calendar-module_xapp_calendar_day_selected__qi4gk:hover:not(:disabled) {\n background-color: var(--xapp-form-widget-date-background-color-selected, #1976d2) !important;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_filler__8Rf7z {\n width: 36px;\n height: 36px;\n margin: 0 2px;\n}\n\n.xapp_form_Calendar-module_xapp_calendar_skeleton_day__yJl4Q {\n width: 36px;\n height: 36px;\n margin: 0 2px;\n border-radius: 50%;\n background-color: rgba(0, 0, 0, 0.11);\n animation: xapp_form_Calendar-module_xapp_calendar_pulse__LTQW7 2s ease-in-out 0.5s infinite;\n}\n\n@keyframes xapp_form_Calendar-module_xapp_calendar_pulse__LTQW7 {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n 100% {\n opacity: 1;\n }\n}\n@media (prefers-reduced-motion: reduce) {\n .xapp_form_Calendar-module_xapp_calendar_skeleton_day__yJl4Q {\n animation: none;\n }\n}\n/* Phones: 44x44 days, weekday labels and month arrows (WCAG 2.5.8, Apple's HIG). Date selection\n * is the most expensive mis-tap in this funnel. Seven 44px columns only fit the 320px calendar\n * once the 2px side gaps go, so the gap goes rather than the cell. */\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_Calendar-module_xapp_calendar_day__Lb9-E {\n width: 44px !important;\n height: 44px !important;\n margin: 0 !important;\n font-size: 0.875rem;\n }\n .xapp_form_Calendar-module_xapp_calendar_weekday__NzfbO {\n width: 44px;\n height: 44px;\n margin: 0;\n }\n .xapp_form_Calendar-module_xapp_calendar_filler__8Rf7z,\n .xapp_form_Calendar-module_xapp_calendar_skeleton_day__yJl4Q {\n width: 44px;\n height: 44px;\n margin: 0;\n }\n .xapp_form_Calendar-module_xapp_calendar_nav_button__NTU0D {\n width: 44px !important;\n height: 44px !important;\n }\n .xapp_form_Calendar-module_xapp_calendar_weeks__EdB4Q,\n .xapp_form_Calendar-module_xapp_calendar_skeleton__yL-4v {\n min-height: 288px;\n }\n}");function yr(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(function(e){return!!e}).join(" ")}var wr=function(t){var r=t.value,a=t.onChange,o=t.shouldDisableDate,i=t.minDate,p=t.maxDate,s=t.referenceDate,d=t.loading,l=t.showDaysOutsideCurrentMonth,c=t.fixedWeekNumber,u=t.getDayClassName,m=t.classes,_=void 0===m?{}:m,f=t.className,x=n.useMemo(function(){return(t.today||Gn()).startOf("day")},[t.today?t.today.format("YYYY-MM-DD"):void 0]),h=n.useId(),g=n.useRef(null),v=n.useRef(!1),b=n.useState(function(){return(r||s||x).startOf("month")}),y=b[0],w=b[1],F=n.useState(function(){return(r||x).startOf("day")}),k=F[0],S=F[1],T=r?r.format("YYYY-MM-DD"):void 0;n.useEffect(function(){r&&(S(r.startOf("day")),w(function(e){return r.isSame(e,"month")?e:r.startOf("month")}))},[T]);var C=n.useCallback(function(e){return!!i&&e.isBefore(i,"day")||!!p&&e.isAfter(p,"day")},[i,p]),D=n.useCallback(function(e){return C(e)||!!o&&o(e)},[C,o]),N=n.useCallback(function(e,n,t){for(var r=e.isBefore(n,"day")?n:e.isAfter(t,"day")?t:e,a=t.diff(n,"day"),o=0;o<=a;o++)for(var i=0,p=[r.add(-o,"day"),r.add(o,"day")];i<p.length;i++){var s=p[i];if(!s.isBefore(n,"day")&&!s.isAfter(t,"day")&&!D(s))return s}},[D]),I=n.useMemo(function(){return k.isSame(y,"month")&&!D(k)?k:N(k,y.startOf("month"),y.endOf("month").startOf("day"))},[k,y,D,N]);n.useEffect(function(){var e;if(v.current){v.current=!1;var n=String(k.valueOf()),t=null===(e=g.current)||void 0===e?void 0:e.querySelector('[data-timestamp="'.concat(n,'"]'));null==t||t.focus()}},[k,y]);var R=function(e,n){for(var t=e,r=0;r<366;r+=Math.abs(n)){if(t=t.add(n,"day"),C(t))return;if(!D(t))return t}},A=function(e,n){var t=e.add(n,"month");return N(t,t.startOf("month"),t.endOf("month").startOf("day"))},j=function(e,n){var t;switch(e.key){case"ArrowLeft":t=R(n,-1);break;case"ArrowRight":t=R(n,1);break;case"ArrowUp":t=R(n,-7);break;case"ArrowDown":t=R(n,7);break;case"Home":case"End":var r="Home"===e.key?n.startOf("week"):n.endOf("week").startOf("day");l||r.isSame(n,"month")||(r="Home"===e.key?n.startOf("month"):n.endOf("month").startOf("day")),t=function(e,n){for(var t=n.isBefore(e,"day")?-1:1,r=Math.abs(n.diff(e,"day")),a=0;a<=r;a++){var o=e.add(a*t,"day");if(!D(o))return o}}(r,n);break;case"PageUp":t=A(n,-1);break;case"PageDown":t=A(n,1);break;default:return}e.preventDefault(),t&&!t.isSame(n,"day")&&function(e){v.current=!0,S(e),e.isSame(y,"month")||w(e.startOf("month"))}(t)},M=!!i&&!y.isAfter(i,"month"),E=!!p&&!y.isBefore(p,"month"),O=n.useMemo(function(){return function(e,n){var t=e.startOf("month"),r=Math.ceil((t.day()+t.daysInMonth())/7),a=Math.max(r,n||0),o=t.startOf("week");return Array.from({length:a},function(e,n){return Array.from({length:7},function(e,t){return o.add(7*n+t,"day")})})}(y,c)},[y,c]),z=O[0];return e.jsxs("div",{className:yr(ir,f),"data-xapp-calendar":"",children:[e.jsxs("div",{className:yr(pr,_.header),children:[e.jsx("span",{"aria-live":"polite",className:sr,id:h,children:y.format("MMMM YYYY")}),e.jsxs("div",{className:dr,children:[e.jsx("button",{"aria-label":"Previous month",className:lr,disabled:M,onClick:function(){return w(y.add(-1,"month"))},type:"button",children:e.jsx(nn,{})}),e.jsx("button",{"aria-label":"Next month",className:lr,disabled:E,onClick:function(){return w(y.add(1,"month"))},type:"button",children:e.jsx(tn,{})})]})]}),e.jsxs("div",{"aria-busy":!!d||void 0,"aria-labelledby":h,ref:g,role:"grid",children:[e.jsx("div",{className:cr,role:"row",children:z.map(function(n){return e.jsx("span",{"aria-label":n.format("dddd"),className:yr(_r,_.weekday),role:"columnheader",children:n.format("dd").charAt(0)},n.day())})}),d?e.jsx("div",{"aria-hidden":"true",className:mr,children:O.map(function(n,t){return e.jsx("div",{className:cr,children:n.map(function(n){return e.jsx("span",{className:br},n.valueOf())})},t)})}):e.jsx("div",{className:yr(ur,_.weeks),role:"rowgroup",children:O.map(function(n,t){return e.jsx("div",{className:cr,role:"row",children:n.map(function(n){var t=!n.isSame(y,"month");if(t&&!l)return e.jsx("span",{className:vr,role:"gridcell"},n.valueOf());var o=D(n),i=!!r&&n.isSame(r,"day"),p=n.isSame(x,"day");return e.jsx("button",{"aria-current":p?"date":void 0,"aria-label":n.format("dddd, MMMM D, YYYY"),"aria-selected":i,className:yr(fr,_.day,i&&gr,i&&_.daySelected,p&&hr,p&&_.dayToday,t&&xr,u&&u(n,o)),"data-timestamp":n.valueOf(),disabled:o,onClick:function(){return function(e){S(e),e.isSame(y,"month")||w(e.startOf("month")),a(e)}(n)},onKeyDown:function(e){return j(e,n)},role:"gridcell",tabIndex:I&&n.isSame(I,"day")?0:-1,type:"button",children:n.date()},n.valueOf())})},t)})})]})]})};function Fr(e){if(e){var n=e.split(",").map(function(e){return e.trim()}).filter(function(e){return!!e});return n.length>0?n:void 0}}function kr(e,n){if(!n||0===n.length)return!1;var t=e.format("YYYY-MM-DD"),r=e.format("dddd");return n.some(function(e){return Sr(t,e)||Sr(r,e)})}function Sr(e,n){var t=n.split("*").map(Tr).join(".*");return new RegExp("^".concat(t,"$")).test(e)}function Tr(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function Cr(e,n){return Array.isArray(n.availableDays)&&n.availableDays.length>0?n.availableDays.map(function(e){return e.toLowerCase()}).includes(e.format("dddd").toLowerCase()):0!==e.day()&&6!==e.day()}var Dr="xapp_form_FormFieldDate-module_xapp_date_picker_container__d8LYB",Nr="xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1",Ir="xapp_form_FormFieldDate-module_xapp_date_picker_header__-IdYL",Rr="xapp_form_FormFieldDate-module_xapp_date_picker_weekday__G7-Zs",Ar="xapp_form_FormFieldDate-module_xapp_date_picker_weeks__GeGSq",jr="xapp_form_FormFieldDate-module_xapp_date_picker_day__NFNvS",Mr="xapp_form_FormFieldDate-module_xapp_date_picker_day_today__mxuN9",Er="xapp_form_FormFieldDate-module_xapp_date_picker_past__ECo-S",Or="xapp_form_FormFieldDate-module_xapp_date_picker_available__2Xtlu",zr="xapp_form_FormFieldDate-module_xapp_date_picker_day_selected__10ZGY",Pr="xapp_form_FormFieldDate-module_xapp_date_picker_loading__z6hMR",Lr="xapp_form_FormFieldDate-module_xapp_date_picker_error__GFfVJ";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldDate-module_xapp_date_picker_container__d8LYB {\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n font-family: var(--xapp-form-widget-date-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n}\n\n/* The compact look this field has always shipped with, now on the shared Calendar (#1745).\n *\n * Until #1745 these rules targeted MUI's class names. The published bundle keeps CSS-module\n * names unchanged, so there they matched and drew 30px days tinted by availability; Storybook\n * hashes the names, so it never showed them. The Calendar's parts carry these classes directly\n * now, so both builds draw the production look.\n *\n * Each rule is scoped under `.xapp_date_picker` so it outranks the Calendar's own rule for the\n * same part whichever order the two stylesheets load in. */\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_header__-IdYL {\n margin-top: 10px;\n margin-bottom: 4px;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_weekday__G7-Zs {\n width: 30px;\n height: 32px;\n font-weight: 600;\n font-size: 0.75rem;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_weeks__GeGSq {\n min-height: 200px;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day__NFNvS {\n width: 30px !important;\n height: 30px !important;\n font-weight: 600;\n font-size: 0.75rem;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day__NFNvS:hover:not(:disabled) {\n background-color: #cfd8da !important;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day__NFNvS:disabled {\n font-weight: 300;\n text-decoration: line-through;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day_today__mxuN9 {\n font-weight: bold;\n color: #321aa3 !important;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_past__ECo-S {\n background-color: rgba(48, 49, 53, 0.2392156863) !important;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_available__2Xtlu {\n background-color: rgba(0, 255, 21, 0.1607843137) !important;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day_selected__10ZGY {\n background-color: var(--xapp-form-widget-date-background-color-selected, #1976d2) !important;\n color: #fff !important;\n font-weight: 600;\n}\n.xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day_selected__10ZGY:hover:not(:disabled) {\n background-color: var(--xapp-form-widget-date-background-color-selected, #1976d2) !important;\n}\n\n.xapp_form_FormFieldDate-module_xapp_date_picker_loading__z6hMR {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n margin: 14px 0 -14px 98px !important;\n color: inherit !important;\n}\n\n.xapp_form_FormFieldDate-module_xapp_date_picker_error__GFfVJ {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n margin: 14px 0 -14px 14px !important;\n}\n\n/* Mobile: 44x44 tappable day cells.\n *\n * Date selection is the most expensive mis-tap in this funnel - the visitor either books the\n * wrong day or gives up - and the 30px cells above are under the 44x44 that Apple's HIG and\n * WCAG 2.5.8 ask for. Seven 44px columns fit the 320px calendar once the 2px side margins go,\n * hence dropping the gap rather than the cell. */\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_day__NFNvS {\n width: 44px !important;\n height: 44px !important;\n margin: 0 !important;\n font-size: 0.875rem;\n }\n .xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_weekday__G7-Zs {\n width: 44px;\n height: 44px;\n margin: 0;\n }\n .xapp_form_FormFieldDate-module_xapp_date_picker__Rvtj1 .xapp_form_FormFieldDate-module_xapp_date_picker_weeks__GeGSq {\n min-height: 264px;\n }\n}");var Hr={blockWeekends:!0,blockCurrentDay:!0,blockNextBusinessDays:2},Ur=function(t){var r=Gn().add(2,"month"),a=Gn(),o=t.field,i=t.onFieldChange,p=t.errorMessage,s=t.busyDays,d=t.loading,l=t.blockedDate,c=n.useState(),u=c[0],m=c[1];n.useEffect(function(){i(o.name,u)},[u,o.name,i]);var _=Fr(s),f=n.useCallback(function(e){if(l&&e.format("YYYY-MM-DD")===l)return!0;if(!_)return function(e,n,t){if(n.blockWeekends&&(0===e.day()||6===e.day()))return!0;if(n.blockCurrentDay&&e.isSame(t,"day"))return!0;if(n.blockNextBusinessDays){for(var r=t,a=0,o=0;a<n.blockNextBusinessDays&&o<366;)o++,Cr(r=r.add(1,"day"),n)&&a++;if(e.isBefore(r,"day"))return!0}return!!(n.currentDayAvailableUntil&&e.isSame(t,"day")&&t.format("HH:mm")>n.currentDayAvailableUntil)||!(!(Array.isArray(n.availableDays)&&n.availableDays.length>0)||n.availableDays.map(function(e){return e.toLowerCase()}).includes(e.format("dddd").toLowerCase()))}(e,Object.keys((null==o?void 0:o.defaultBusyDays)||{}).length>0?o.defaultBusyDays||{}:Hr,a);try{return kr(e,_)}catch(e){console.error("shouldDisableDate: ".concat(e))}return!1},[a,_,o.defaultBusyDays,l]);return e.jsxs("div",{style:{display:"flex",flexDirection:"column",alignContent:"center",alignItems:"center"},children:[e.jsx("div",{className:Dr,children:e.jsx(wr,{className:Nr,classes:{header:Ir,weekday:Rr,weeks:Ar,day:jr,daySelected:zr,dayToday:Mr},fixedWeekNumber:6,getDayClassName:function(e,n){var t=e.isBefore(a,"day"),o=e.isAfter(r,"day");return t||o?Er:n?void 0:Or},loading:d,maxDate:r,minDate:a,onChange:function(e){m(e)},shouldDisableDate:f,showDaysOutsideCurrentMonth:!0,today:a,value:u})}),d&&e.jsx("p",{className:Pr,children:"Getting latest availability..."}),!d&&p&&e.jsx("p",{className:Lr,children:p})]})},Br=/^\d{4}-\d{2}-\d{2}/;function Wr(e){if(!e)return"";if("string"==typeof e&&Br.test(e))return e.slice(0,10);var n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":n.toISOString().slice(0,10)}var $r=function(r){var a,o,i=r.field,p=r.onFieldChange,s=r.value,d=r.errorMessage,l=r.required,c=r.isLastField,u=Wr((null==s?void 0:s.from)||(null===(a=i.preselecteDates)||void 0===a?void 0:a.from)),m=Wr((null==s?void 0:s.to)||(null===(o=i.preselecteDates)||void 0===o?void 0:o.to)),_=n.useState({from:u,to:m}),f=_[0],x=_[1];n.useEffect(function(){x({from:u,to:m})},[u,m]);var h=function(e){x(e),p(i.name,e.from||e.to?e:void 0)},g="".concat(i.name,"-from"),v="".concat(i.name,"-to");return e.jsxs("div",{style:i.style,children:[i.title&&e.jsx("h2",{children:i.title}),e.jsx("label",{htmlFor:g,children:"From"}),e.jsx("input",{id:g,name:g,type:"date",value:f.from,onChange:function(e){h(t(t({},f),{from:e.target.value}))},max:f.to||void 0,required:l,enterKeyHint:"next"}),e.jsx("label",{htmlFor:v,children:"To"}),e.jsx("input",{id:v,name:v,type:"date",value:f.to,onChange:function(e){h(t(t({},f),{to:e.target.value}))},min:f.from||void 0,required:l,enterKeyHint:c?"done":"next"}),d&&e.jsx("p",{children:d})]})},Yr=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:\d{2})$/;function qr(){return"undefined"!=typeof window&&window.location?function(e){if(e){var n;try{n=new URLSearchParams(e).get("window")}catch(e){return}if(n){var t=n.split("/"),r=t[0],a=t[1];if(Yr.test(r||"")&&Yr.test(a||"")&&Date.parse(a)>Date.parse(r))return{start:r,end:a}}}}(window.location.search):void 0}var Gr="xapp_form_FormFieldDateTime-module_xapp_datetime__rPNwE",Vr="xapp_form_FormFieldDateTime-module_xapp_datetime_title__VNHwW",Jr="xapp_form_FormFieldDateTime-module_xapp_datetime_body__ta9Ui",Kr="xapp_form_FormFieldDateTime-module_xapp_datetime_calendar__Ge5W6",Zr="xapp_form_FormFieldDateTime-module_xapp_datetime_times_column__UY7ho",Xr="xapp_form_FormFieldDateTime-module_xapp_datetime_timezone__ZE56Q",Qr="xapp_form_FormFieldDateTime-module_xapp_datetime_times__rhU-O",ea="xapp_form_FormFieldDateTime-module_xapp_datetime_group__CeL-E",na="xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl",ta="xapp_form_FormFieldDateTime-module_xapp_datetime_time_selected__IRT84",ra="xapp_form_FormFieldDateTime-module_xapp_datetime_message__4rf-S",aa="xapp_form_FormFieldDateTime-module_xapp_datetime_error__bTyZK";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldDateTime-module_xapp_datetime__rPNwE {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n font-family: var(--xapp-form-widget-date-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_title__VNHwW {\n margin: 0 0 8px;\n font-family: inherit;\n font-size: 1rem;\n text-align: center;\n}\n\n/* Calendar and column side by side on a wide enough viewport.\n *\n * `flex-wrap` rather than a fixed two-column grid: the pair has to be allowed to fall\n * onto two rows rather than force the step to scroll sideways, which is the failure the\n * mobile rule below would otherwise only fix at the breakpoint. */\n.xapp_form_FormFieldDateTime-module_xapp_datetime_body__ta9Ui {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n align-items: flex-start;\n gap: 16px;\n width: 100%;\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_calendar__Ge5W6 {\n flex: 0 0 auto;\n}\n\n/* The zone notice and the column travel together, so the sizing the column used to own\n * lives here now - the column itself keeps only the scrolling, which the notice must\n * stay outside of or it scrolls away from the times it describes. */\n.xapp_form_FormFieldDateTime-module_xapp_datetime_times_column__UY7ho {\n flex: 1 1 160px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 0;\n max-width: 240px;\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_timezone__ZE56Q {\n margin: 0;\n padding: 0 4px;\n font-size: var(--xapp-form-widget-date-font-size, 14px);\n text-align: left;\n}\n\n/* A column of buttons rather than chips: a half-hour schedule produces 16 or more\n * offerings and chips wrap into an unreadable block past a handful. */\n.xapp_form_FormFieldDateTime-module_xapp_datetime_times__rhU-O {\n display: flex;\n flex-direction: column;\n gap: 8px;\n min-width: 0;\n max-height: 320px;\n overflow-y: auto;\n padding: 4px;\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_group__CeL-E {\n position: sticky;\n top: 0;\n z-index: 1;\n margin: 4px 0 0;\n padding: 4px 0;\n background-color: #ffffff;\n font-family: inherit;\n font-size: var(--xapp-form-widget-date-font-size, 14px);\n font-weight: 600;\n text-align: left;\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl {\n flex: 0 0 auto;\n min-height: 44px;\n padding: 8px 12px;\n border: 1px solid var(--xapp-form-widget-chips-background-color, #c4dced);\n border-radius: var(--xapp-form-widget-border-radius-sm, 8px);\n background-color: transparent;\n /* Not $form-chips-color: that is the chips' FOREGROUND, authored to sit on the filled\n * chip background. This button is transparent, so a theme whose chips are dark with\n * white text - the common case - renders white on white and the times vanish. The\n * body text colour is the one that belongs on the form's own background. */\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87));\n font-family: var(--xapp-form-widget-chips-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n font-size: var(--xapp-form-widget-chips-font-size, 0.875em);\n font-weight: 600;\n cursor: pointer;\n transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out, transform 150ms ease-in-out;\n}\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl:hover {\n background-color: var(--xapp-form-widget-chips-background-color, #c4dced);\n /* Background and foreground move together: whenever the chip background is\n * applied, the colour the theme paired with it applies too. */\n color: var(--xapp-form-widget-chips-color, #000000);\n box-shadow: var(--xapp-form-widget-box-shadow-subtle, 0 2px 8px rgba(0, 0, 0, 0.08));\n}\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl:active {\n transform: scale(0.98);\n}\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl:focus {\n outline: none;\n}\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldDateTime-module_xapp_datetime_time__x5lxl {\n font-size: 16px;\n }\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time_selected__IRT84 {\n border-color: var(--xapp-form-widget-chips-background-color-selected, var(--xapp-form-widget-chips-background-color-dark, #6e7ae1));\n background-color: var(--xapp-form-widget-chips-background-color-selected, var(--xapp-form-widget-chips-background-color-dark, #6e7ae1));\n color: var(--xapp-form-widget-chips-color-selected, #ffffff);\n}\n.xapp_form_FormFieldDateTime-module_xapp_datetime_time_selected__IRT84:hover {\n background-color: var(--xapp-form-widget-chips-background-color-selected, var(--xapp-form-widget-chips-background-color-dark, #6e7ae1));\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_message__4rf-S {\n margin: 8px 0;\n font-size: var(--xapp-form-widget-date-font-size, 14px);\n text-align: center;\n}\n\n.xapp_form_FormFieldDateTime-module_xapp_datetime_error__bTyZK {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n margin-top: 14px !important;\n}\n\n/* Stacked, with the column under the calendar and given room to scroll on its own. */\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormFieldDateTime-module_xapp_datetime_body__ta9Ui {\n flex-direction: column;\n align-items: center;\n }\n .xapp_form_FormFieldDateTime-module_xapp_datetime_times_column__UY7ho {\n width: 100%;\n max-width: 320px;\n }\n .xapp_form_FormFieldDateTime-module_xapp_datetime_times__rhU-O {\n max-height: 260px;\n }\n}");var oa="Appointment times",ia="Times shown in";function pa(e){return"".concat(e.start,"|").concat(e.end||"")}var sa=function(t){var r=t.field,a=t.onFieldChange,o=t.errorMessage,i=t.value,p=t.required,s=t.busyDays,d=t.offeringsByDate,l=t.nextBusinessDayBlock,c=t.preselectFirstAvailable,u=n.useState(function(){return"requestedWindow"in t?t.requestedWindow:qr()})[0],m=r.schedule,_=n.useMemo(function(){return t.now||new Date},[t.now]),f=n.useState(function(){return(null==i?void 0:i.date)?Gn("".concat(i.date,"T00:00:00")):void 0}),x=f[0],h=f[1],g=n.useState(function(){return i?pa(i):void 0}),v=g[0],b=g[1],y=n.useMemo(function(){return x?gt(m,x.toDate(),_,d,l):[]},[m,x,_,d,l]),w=n.useMemo(function(){return y.find(function(e){return pa(e)===v})},[y,v]),F=n.useMemo(function(){if(x&&w){var e,n,t=pt(x.toDate()),r={date:t,label:_t(w),start:w.start,datetime:ct(t,w.start,null==m?void 0:m.timezone)};return w.end&&(r.end=w.end),i&&(n=r,(e=i).date===n.date&&e.start===n.start&&e.end===n.end&&e.label===n.label&&e.datetime===n.datetime)?i:r}},[x,w,m,i]);n.useEffect(function(){a(r.name,F)},[F,r.name,a]);var k=n.useMemo(function(){return Fr(s)},[s]);n.useEffect(function(){x&&kr(x,k)&&(h(void 0),b(void 0))},[x,k]);var S=n.useMemo(function(){return c?bt(m,_,function(e){return kr(Gn(e),k)},d,l):void 0},[c,m,_,k,d,l]);n.useEffect(function(){S&&!x&&h(Gn(S))},[S,x]);var T=n.useRef(!1);n.useEffect(function(){if(!T.current&&u&&!i&&!x){T.current=!0;var e=function(e,n){if(st(n)){var t=Gn(e.start).tz(n),r=Gn(e.end).tz(n);return{date:t.format("YYYY-MM-DD"),start:t.format("HH:mm"),end:r.format("HH:mm")}}}(u,null==m?void 0:m.timezone);if(e){var n=Gn("".concat(e.date,"T00:00:00"));if(vt(m,n.toDate(),_,d,l)&&!kr(n,k)){var t=gt(m,n.toDate(),_,d,l),r=t.find(function(n){return n.start===e.start&&n.end===e.end})||t.find(function(n){return n.start===e.start});h(n),b(r?pa(r):void 0)}}}},[u,i,x,m,_,d,l,k]);var C,D=n.useCallback(function(e){return!vt(m,e.toDate(),_,d,l)||kr(e,k)},[m,_,k,d,l]),N=ft(m),I=!!m,R=null==m?void 0:m.timezone,A=st(R),j=n.useMemo(function(){if(!I)return"";var e=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone||""}catch(e){return""}}();return function(e,n){var t=lt(e);if(!t)return"";var r=n&&n!==e?lt(n):"";return r&&r!==t?"".concat(ia," ").concat(t,", not your time zone (").concat(r,")."):"".concat(ia," ").concat(t,".")}(A?R:e,e)},[I,R,A]);return n.useEffect(function(){I&&!A&&console.warn('FormFieldDateTime: "'.concat(R,'" is not a usable timezone, so ')+"times are shown in the visitor's zone instead. Set the schedule's timezone to an IANA identifier such as \"America/New_York\".")},[I,R,A]),e.jsxs("div",{className:Gr,style:r.style,children:[!!r.title&&e.jsx("h2",{className:Vr,children:r.title}),e.jsxs("div",{className:Jr,children:[e.jsx("div",{className:Kr,children:e.jsx(wr,{maxDate:Gn(_).add(N,"day"),onChange:function(e){h(e),b(void 0)},referenceDate:Gn(_),shouldDisableDate:D,today:Gn(_),value:x||null})}),e.jsxs("div",{className:Zr,children:[!!j&&e.jsx("p",{className:Xr,children:j}),e.jsxs("div",{"aria-label":p?"".concat(oa," (required)"):oa,className:Qr,role:"group",children:[!x&&e.jsx("p",{className:ra,children:"Select a date to see the available times."}),!!x&&0===y.length&&e.jsx("p",{className:ra,children:"No times are available on this date."}),y.map(function(t,r){var a=pa(t),o=t.group!==C?t.group:void 0;return C=t.group,e.jsxs(n.Fragment,{children:[!!o&&e.jsx("h3",{className:ea,children:o}),e.jsx("button",{"aria-pressed":a===v,className:"".concat(na," ").concat(a===v?ta:""),onClick:function(){return b(a)},type:"button",children:_t(t)})]},"".concat(a,"-").concat(r))})]})]})]}),!!o&&e.jsx("p",{className:aa,children:o})]})},da={exports:{}};da.exports=(()=>{return e={705:e=>{e.exports=function(e,n){const t=[];return 0===n.length?t.push({text:e,highlight:!1}):n[0][0]>0&&t.push({text:e.slice(0,n[0][0]),highlight:!1}),n.forEach((r,a)=>{const o=r[0],i=r[1];t.push({text:e.slice(o,i),highlight:!0}),a===n.length-1?i<e.length&&t.push({text:e.slice(i,e.length),highlight:!1}):i<n[a+1][0]&&t.push({text:e.slice(i,n[a+1][0]),highlight:!1})}),t}}},n={},function t(r){var a=n[r];if(void 0!==a)return a.exports;var o=n[r]={exports:{}};return e[r](o,o.exports,t),o.exports}(705);var e,n})();var la=i(da.exports);function ca(e){return null!=e.placePrediction}function ua(e){var n,t=e.placePrediction;return{placeId:t.placeId,description:t.text.text,structured_formatting:{main_text:t.structuredFormat.mainText.text,secondary_text:(null===(n=t.structuredFormat.secondaryText)||void 0===n?void 0:n.text)||"",main_text_matched_substrings:(t.structuredFormat.mainText.matches||[]).map(function(e){var n,t,r;return{offset:null!==(n=e.startOffset)&&void 0!==n?n:0,length:(null!==(t=e.endOffset)&&void 0!==t?t:0)-(null!==(r=e.startOffset)&&void 0!==r?r:0)}})}}}var ma=function(){function e(e){this.baseUrl=e.baseUrl||"https://api.xapp.ai",this.key=e.apiKey}return e.prototype.getPlacePredictions=function(e,n){var t,r={};if(e.params){if(e.params.components){var a=e.params.components.split("|").filter(function(e){return e.startsWith("country:")}).map(function(e){return e.replace("country:","").toLowerCase()});a.length>0&&(r.includedRegionCodes=a)}if(e.params.language&&(r.languageCode=e.params.language),e.params.location){var o=e.params.location.split(",").map(Number),i=o[0],p=o[1];isNaN(i)||isNaN(p)||(r.locationBias={circle:{center:{latitude:i,longitude:p},radius:Number(e.params.radius)||5e4}})}}r.input=e.input,(null===(t=e.componentRestrictions)||void 0===t?void 0:t.country)?r.includedRegionCodes=[e.componentRestrictions.country.toLowerCase()]:r.includedRegionCodes||(r.includedRegionCodes=["us"]);var s="".concat(this.baseUrl,"/places/autocomplete");this.key&&(s+="?key=".concat(encodeURIComponent(this.key))),fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}).then(function(e){if(!e.ok)throw new Error("getPlacePredictions: HTTP error! Status: ".concat(e.status));return e.json()}).then(function(e){n((e.suggestions||[]).filter(ca).map(ua))}).catch(function(e){he("getPlacePredictions: Fetch error:",e),n([])})},e.prototype.getPlaceDetails=function(e,n){var t="".concat(this.baseUrl,"/places/details/").concat(encodeURIComponent(e));this.key&&(t+="?key=".concat(encodeURIComponent(this.key))),fetch(t).then(function(e){if(!e.ok)throw new Error("getPlaceDetails: HTTP error! Status: ".concat(e.status));return e.json()}).then(function(e){n(e)}).catch(function(e){he("getPlaceDetails: Fetch error:",e),n(void 0)})},e}(),_a="xapp_form_FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM",fa="xapp_form_FormFieldTextInputAddress-module_xapp_address_anchor__HPntW",xa="xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks",ha="xapp_form_FormFieldTextInputAddress-module_xapp_address_focused__DQ0B3",ga="xapp_form_FormFieldTextInputAddress-module_xapp_address_error__inPHs",va="xapp_form_FormFieldTextInputAddress-module_xapp_address_control__4YDQD",ba="xapp_form_FormFieldTextInputAddress-module_xapp_address_label__lrzNq",ya="xapp_form_FormFieldTextInputAddress-module_xapp_address_asterisk__hVgBb",wa="xapp_form_FormFieldTextInputAddress-module_xapp_address_helper__CU-Ne",Fa="xapp_form_FormFieldTextInputAddress-module_xapp_address_popup__dw-zo",ka="xapp_form_FormFieldTextInputAddress-module_xapp_address_listbox__o7hkI",Sa="xapp_form_FormFieldTextInputAddress-module_xapp_address_option__nGWID",Ta="xapp_form_FormFieldTextInputAddress-module_xapp_address_option_active__KX0-4",Ca="xapp_form_FormFieldTextInputAddress-module_xapp_address_option_icon__N4n4Y",Da="xapp_form_FormFieldTextInputAddress-module_xapp_address_option_text__C2ulS",Na="xapp_form_FormFieldTextInputAddress-module_xapp_address_secondary__YipJC",Ia="xapp_form_FormFieldTextInputAddress-module_xapp_address_no_options__zSLTf",Ra="xapp_form_FormFieldTextInputAddress-module_xapp_address_attribution__VGy3K";De('/**\n * The phone breakpoint.\n *\n * Width alone cannot express "phone". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step\'s action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field\'s helper / error line. The metrics are MUI\'s FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormFieldTextInputAddress-module_xapp_text_input_address__-FQjM {\n display: inline-flex;\n flex-direction: column;\n position: relative;\n width: 100%;\n min-width: 0;\n margin: 16px 0 8px;\n padding: 0;\n border: 0;\n box-sizing: border-box;\n vertical-align: top;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_anchor__HPntW {\n position: relative;\n width: 100%;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks {\n position: relative;\n display: flex;\n align-items: center;\n width: 100%;\n box-sizing: border-box;\n background-color: var(--xapp-form-widget-text-root-background, rgba(0, 0, 0, 0.06)) !important;\n border: var(--xapp-form-widget-text-root-border, 0) !important;\n border-radius: var(--xapp-form-widget-text-root-radius, 4px 4px 0 0) !important;\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n font-size: 1rem;\n line-height: 1.4375em;\n cursor: text;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks:hover, .xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks.xapp_form_FormFieldTextInputAddress-module_xapp_address_focused__DQ0B3 {\n border-color: var(--xapp-form-widget-text-border-color-focus, var(--xapp-form-widget-text-border-color, transparent)) !important;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::before, .xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::after {\n display: var(--xapp-form-widget-text-underline-display, block) !important;\n content: "";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n pointer-events: none;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::before {\n border-bottom: 1px solid rgba(0, 0, 0, 0.42);\n transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::after {\n border-bottom: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n transform: scaleX(0);\n transition: transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks:hover::before {\n border-bottom-color: rgba(0, 0, 0, 0.87);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_focused__DQ0B3::after {\n transform: scaleX(1);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_error__inPHs .xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::before, .xapp_form_FormFieldTextInputAddress-module_xapp_address_error__inPHs .xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::after {\n border-bottom-color: #d32f2f;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_error__inPHs .xapp_form_FormFieldTextInputAddress-module_xapp_address_root__2w9ks::after {\n transform: scaleX(1);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_control__4YDQD {\n display: block;\n min-width: 0;\n padding: 21px 12px 4px 12px !important;\n border: 0 !important;\n background-color: var(--xapp-form-widget-text-input-background, var(--xapp-form-widget-text-background-color, rgba(0, 0, 0, 0.06))) !important;\n border-radius: var(--xapp-form-widget-border-radius-sm, 8px) var(--xapp-form-widget-border-radius-sm, 8px) var(--xapp-form-widget-text-bottom-radius, 0) var(--xapp-form-widget-text-bottom-radius, 0) !important;\n transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out !important;\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87)) !important;\n font-size: var(--xapp-form-widget-text-font-size, 1rem) !important;\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif)) !important;\n line-height: 1.4375em !important;\n letter-spacing: inherit;\n height: auto !important;\n min-height: 0 !important;\n width: 100% !important;\n max-width: 100% !important;\n box-sizing: border-box !important;\n margin: 0 !important;\n margin-bottom: 0 !important;\n border-width: 0 !important;\n border-style: none !important;\n box-shadow: none;\n -webkit-appearance: none !important;\n appearance: none !important;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_control__4YDQD::placeholder {\n color: currentColor;\n opacity: 0.42;\n transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_control__4YDQD[data-shrink=false]::placeholder {\n opacity: 0 !important;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_control__4YDQD:hover {\n background-color: var(--xapp-form-widget-text-background-color-dark, rgba(0, 0, 0, 0.09)) !important;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_control__4YDQD:focus {\n background-color: var(--xapp-form-widget-text-background-color-dark, rgba(0, 0, 0, 0.09)) !important;\n outline: none !important;\n box-shadow: inset 0 0 0 2px var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54)) !important;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_label__lrzNq {\n position: absolute !important;\n left: 0;\n top: 0;\n z-index: 1;\n display: block;\n max-width: calc(100% - 24px);\n margin: 0 !important;\n padding: 0 !important;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n pointer-events: none;\n transform-origin: top left;\n transform: translate(12px, 13px) scale(1) !important;\n transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms !important;\n color: rgba(0, 0, 0, 0.6);\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif) !important;\n font-size: 1rem !important;\n font-weight: 400 !important;\n line-height: 1.4375em !important;\n letter-spacing: 0.00938em;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_label__lrzNq[data-shrink=true] {\n max-width: calc(133% - 24px);\n transform: translate(12px, 4px) scale(0.75) !important;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_focused__DQ0B3 .xapp_form_FormFieldTextInputAddress-module_xapp_address_label__lrzNq {\n color: var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_error__inPHs .xapp_form_FormFieldTextInputAddress-module_xapp_address_label__lrzNq {\n color: #d32f2f;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_error__inPHs .xapp_form_FormFieldTextInputAddress-module_xapp_address_asterisk__hVgBb {\n color: #d32f2f;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_helper__CU-Ne {\n margin: 3px 14px 0 !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.75rem !important;\n font-weight: 400;\n line-height: 1.66 !important;\n letter-spacing: 0.03333em;\n text-align: left;\n color: #d32f2f !important;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_popup__dw-zo {\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n z-index: 16000;\n margin: 2px 0 0;\n overflow: hidden;\n background-color: #fff;\n color: rgba(0, 0, 0, 0.87);\n border-radius: 4px;\n box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n font-family: var(--xapp-form-widget-text-font-family, var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif));\n font-size: 1rem;\n font-weight: 400;\n line-height: 1.5;\n letter-spacing: 0.00938em;\n text-align: left;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_popup__dw-zo[hidden] {\n display: none;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_listbox__o7hkI {\n list-style: none !important;\n margin: 0 !important;\n padding: 8px 0 !important;\n max-height: 40vh;\n overflow: auto;\n box-sizing: border-box;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_listbox__o7hkI:empty {\n display: none;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_option__nGWID {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n min-height: 48px;\n margin: 0 !important;\n padding: 6px 16px !important;\n box-sizing: border-box;\n cursor: pointer;\n user-select: none;\n outline: 0;\n -webkit-tap-highlight-color: transparent;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_option__nGWID::before, .xapp_form_FormFieldTextInputAddress-module_xapp_address_option__nGWID::marker {\n content: none !important;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_option_active__KX0-4 {\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_option_icon__N4n4Y {\n flex: 0 0 auto;\n width: 1em;\n height: 1em;\n margin-right: 20px;\n font-size: 1.5rem;\n fill: rgba(0, 0, 0, 0.6);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_option_text__C2ulS {\n display: block;\n min-width: 0;\n word-wrap: break-word;\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_secondary__YipJC {\n display: block;\n font-size: 0.875rem;\n line-height: 1.43;\n letter-spacing: 0.01071em;\n color: rgba(0, 0, 0, 0.6);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_no_options__zSLTf {\n padding: 14px 16px;\n color: rgba(0, 0, 0, 0.6);\n}\n\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_attribution__VGy3K {\n text-align: right;\n padding: 4px 12px 8px;\n}\n.xapp_form_FormFieldTextInputAddress-module_xapp_address_attribution__VGy3K img {\n display: inline-block;\n height: 14px;\n width: auto;\n}');var Aa=function(){return e.jsx("svg",{className:Ca,viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",children:e.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"})})},ja=function(r){var a,o=r.field,i=r.onFieldChange,p=r.errorMessage,s=r.required,d=r.googleMapsApiKey,l=r.mapsBaseUrl,c=r.requireSelection,u=!(null!==(a=o.requireSelection)&&void 0!==a?a:c),m=n.useState(null),_=m[0],f=m[1],x=n.useState(""),h=x[0],g=x[1],v=n.useState([]),b=v[0],y=v[1],w=n.useState(!1),F=w[0],k=w[1],S=n.useState(!1),T=S[0],C=S[1],D=n.useState(-1),N=D[0],I=D[1],R="xapp-address-".concat(n.useId()),A="".concat(R,"-listbox"),j="".concat(R,"-helper-text"),M=function(e){return"".concat(R,"-option-").concat(e)},E=n.useRef(null),O=n.useRef(""),z=function(e){O.current=e,g(e)};n.useEffect(function(){i(o.name,h)},[o.name,i,h]);var P=o.googleMapsApiKey||d,L=o.mapsBaseUrl||l,H=n.useMemo(function(){return new ma({apiKey:P,baseUrl:L})},[P,L]),U=function(){if(!L)return!0;try{var e=new URL(L).hostname;return"xapp.ai"===e||e.endsWith(".xapp.ai")}catch(e){return!1}}(),B=n.useMemo(function(){return function(e,n){var t,r=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];clearTimeout(t),t=setTimeout(function(){return e.apply(void 0,r)},n)};return r.clear=function(){return clearTimeout(t)},r}(function(e,n){H.getPlacePredictions(e,n)},400)},[H]);n.useEffect(function(){return function(){return B.clear()}},[B]),n.useEffect(function(){var e=!0;if(""!==h){var n=o.mapsUrlQueryParams||void 0;return B({input:h,params:n},function(n){e&&y(n||[])}),function(){e=!1}}y([])},[h,B,o.mapsUrlQueryParams]);var W=n.useMemo(function(){return _?b.filter(function(e){return e.description!==_.description}):b},[b,_]),$=F&&(W.length>0||!u&&""!==h);n.useEffect(function(){I(-1)},[W]),n.useLayoutEffect(function(){var e=E.current,n=N>=0?null==e?void 0:e.children[N]:void 0;e&&n instanceof HTMLElement&&(n.offsetTop<e.scrollTop?e.scrollTop=n.offsetTop:n.offsetTop+n.offsetHeight>e.scrollTop+e.clientHeight&&(e.scrollTop=n.offsetTop+n.offsetHeight-e.clientHeight))},[N,$]);var Y=function(){k(!1),I(-1)},q=function(e){if(Y(),f(e),z(e.description),e.placeId){var n=e.placeId,r=e.description;H.getPlaceDetails(n,function(n){(null==n?void 0:n.formattedAddress)&&O.current===r&&(f(t(t({},e),{description:n.formattedAddress})),z(n.formattedAddress))})}},G=T||h.length>0||!o.label,V=$&&N>=0?M(N):void 0;return e.jsxs("div",{className:"".concat(_a," ").concat(p?ga:""),style:o.style,children:[e.jsxs("div",{className:fa,children:[e.jsxs("div",{className:"".concat(xa," ").concat(T?ha:""),children:[o.label&&e.jsxs("label",{htmlFor:R,className:ba,"data-shrink":G?"true":"false",children:[o.label,s&&e.jsx("span",{className:ya,"aria-hidden":"true",children:" *"})]}),e.jsx("input",{id:R,name:o.name,type:"text",className:va,role:"combobox","aria-autocomplete":"list","aria-expanded":$,"aria-controls":A,"aria-activedescendant":V,"aria-invalid":!!p,"aria-describedby":p?j:void 0,autoComplete:"off",autoCapitalize:"none",spellCheck:!1,placeholder:o.placeholder,required:s,maxLength:o.maxLength||void 0,value:h,onChange:function(e){var n=e.target.value;z(n),""===n?f(null):k(!0)},onKeyDown:function(e){switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),k(!0),n="ArrowDown"===e.key?1:-1,0!==(t=W.length)&&I(function(e){var r=e+n;return r>=t?-1:r<-1?t-1:r});break;case"Enter":$&&N>=0&&W[N]?(e.preventDefault(),q(W[N])):Y();break;case"Escape":$&&(e.preventDefault(),e.stopPropagation(),Y())}var n,t},onFocus:function(){return C(!0)},onBlur:function(){if(C(!1),Y(),!u){var e=(null==_?void 0:_.description)||"";h!==e&&z(e)}},onMouseDown:function(){$||""===h||k(!0)},"data-shrink":G?"true":"false"})]}),e.jsxs("div",{className:Fa,hidden:!$,onMouseDown:function(e){return e.preventDefault()},children:[e.jsx("ul",{ref:E,id:A,role:"listbox","aria-label":"".concat(o.label||"Address"," suggestions"),className:ka,children:W.map(function(n,t){var r=n.structured_formatting.main_text_matched_substrings||[],a=la(n.structured_formatting.main_text,r.map(function(e){return[e.offset,e.offset+e.length]}));return e.jsxs("li",{id:M(t),role:"option","aria-selected":t===N,className:"".concat(Sa," ").concat(t===N?Ta:""),onMouseMove:function(){return I(t)},onClick:function(){return q(n)},children:[e.jsx(Aa,{}),e.jsxs("span",{className:Da,children:[a.map(function(n,t){return e.jsx("span",{style:{fontWeight:n.highlight?"bold":"normal"},children:n.text},t)}),e.jsx("span",{className:Na,children:n.structured_formatting.secondary_text})]})]},n.placeId||n.description)})}),$&&0===W.length&&e.jsx("div",{className:Ia,children:"No locations"}),U&&e.jsx("div",{className:Ra,children:e.jsx("img",{src:"https://maps.gstatic.com/mapfiles/api-3/images/powered-by-google-on-white3.png",alt:"powered by Google"})})]})]}),p&&e.jsx("p",{id:j,className:wa,children:p})]})},Ma=function(e){return"string"!=typeof e||0===e.trim().length},Ea=function(e){var n=e.replace(/\D/g,"");if(10===n.length||11===n.length&&n.startsWith("1")){return/^(1)?[-. ]?\(?(\d{3})\)?[-. ]?(\d{3})[-. ]?(\d{4})$/.test(n)}return!1},Oa=function(e){return null==e||("string"==typeof e?0===e.trim().length:Array.isArray(e)?0===e.length:("object"==typeof e&&e.constructor===Object||"object"==typeof e)&&0===Object.keys(e).length)},za="xapp_form_FormStepDisplay-module_xapp_step_iframe_wrapper__BBFRw",Pa="xapp_form_FormStepDisplay-module_xapp_step_full_bleed__rhGGK",La="xapp_form_FormStepDisplay-module_xapp_external_widget_container__ec4Hs",Ha="xapp_form_FormStepDisplay-module_xapp_external_widget_anchor__NSXBg",Ua="xapp_form_FormStepDisplay-module_xapp_external_widget_fallback__lkFJ-",Ba="xapp_form_FormStepDisplay-module_xapp_external_widget_loading__aRtx6",Wa="xapp_form_FormStepDisplay-module_xapp_external_widget_spinner__ga0X7",$a="xapp_form_FormStepDisplay-module_xapp_submit_error__Zbqdj",Ya="xapp_form_FormStepDisplay-module_xapp_formfield__hRmVx",qa="xapp_form_FormStepDisplay-module_active__fCsMz",Ga="xapp_form_FormStepDisplay-module_xapp_formfield_title__INjeF",Va="xapp_form_FormStepDisplay-module_xapp_formfield_subtitle__8VQC2",Ja="xapp_form_FormStepDisplay-module_xapp_form_actions__lXYdk",Ka="xapp_form_FormStepDisplay-module_xapp_form_actions_final__0TUxT",Za="xapp_form_FormStepDisplay-module_xapp_final_button_container__Gco-E",Xa="xapp_form_FormStepDisplay-module_xapp_form_nav_buttons__lI4BI",Qa="xapp_form_FormStepDisplay-module_xapp_dummy_button__Q-nE6",eo="xapp_form_FormStepDisplay-module_xapp_step_button__KeEND",no="xapp_form_FormStepDisplay-module_xapp_primary_button__d2wra",to="xapp_form_FormStepDisplay-module_xapp_secondary_button__LuMfN",ro="xapp_form_FormStepDisplay-module_xapp_disabled_button__RjSfL",ao="xapp_form_FormStepDisplay-module_xapp_back_button__mPqT0",oo="xapp_form_FormStepDisplay-module_xapp_back_button_label__9kKIl",io="xapp_form_FormStepDisplay-module_xapp_back_button_icon__w7o4I";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormStepDisplay-module_xapp_step_iframe_wrapper__BBFRw {\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n overflow: scroll;\n position: relative;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_step_full_bleed__rhGGK {\n margin-left: -8px;\n margin-right: -8px;\n}\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormStepDisplay-module_xapp_step_full_bleed__rhGGK {\n margin-left: calc(-1 * (8px + env(safe-area-inset-left, 0px)));\n margin-right: calc(-1 * (8px + env(safe-area-inset-right, 0px)));\n }\n}\n\n.xapp_form_FormStepDisplay-module_xapp_external_widget_container__ec4Hs {\n background-color: var(--xapp-form-widget-external-widget-background-color, transparent);\n padding: var(--xapp-form-widget-external-widget-padding, 0);\n min-height: var(--xapp-form-widget-external-widget-min-height, auto);\n box-sizing: border-box;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_external_widget_anchor__NSXBg {\n margin: 0;\n padding: 0;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_external_widget_fallback__lkFJ- {\n padding: 20px;\n text-align: center;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n}\n\n.xapp_form_FormStepDisplay-module_xapp_external_widget_loading__aRtx6 {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 14px;\n min-height: 240px;\n padding: 40px 20px;\n text-align: center;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87));\n}\n.xapp_form_FormStepDisplay-module_xapp_external_widget_loading__aRtx6 p {\n margin: 0;\n font-size: 0.95em;\n opacity: 0.7;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_external_widget_spinner__ga0X7 {\n display: inline-block;\n width: 44px;\n height: 44px;\n color: var(--xapp-form-widget-primary-button-color, #ea6539);\n}\n.xapp_form_FormStepDisplay-module_xapp_external_widget_spinner__ga0X7 svg {\n width: 100%;\n height: 100%;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_submit_error__Zbqdj {\n padding: 12px 20px;\n text-align: center;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n color: #b3261e;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_formfield__hRmVx {\n display: none;\n font-family: inherit !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_formfield__hRmVx.xapp_form_FormStepDisplay-module_active__fCsMz {\n display: block;\n}\n.xapp_form_FormStepDisplay-module_xapp_formfield_title__INjeF p {\n margin: 10px 0 20px 0;\n font-size: 1em;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n}\n\n.xapp_form_FormStepDisplay-module_xapp_formfield_title__INjeF p {\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n text-align: var(--xapp-form-widget-step-title-align, left);\n font-size: var(--xapp-form-widget-step-title-font-size, inherit);\n font-weight: var(--xapp-form-widget-step-title-font-weight, inherit);\n color: var(--xapp-form-widget-step-title-color, inherit);\n}\n\n.xapp_form_FormStepDisplay-module_xapp_formfield_subtitle__8VQC2 {\n font-size: 0.875em;\n opacity: 0.8;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_form_actions__lXYdk {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_form_actions_final__0TUxT {\n flex-direction: var(--xapp-form-widget-final-button-direction, column);\n gap: var(--xapp-form-widget-final-button-gap, 0);\n}\n.xapp_form_FormStepDisplay-module_xapp_form_actions_final__0TUxT .xapp_form_FormStepDisplay-module_xapp_final_button_container__Gco-E {\n padding: var(--xapp-form-widget-final-button-container-padding, 20px 20px 0 20px);\n}\n.xapp_form_FormStepDisplay-module_xapp_form_actions_final__0TUxT .xapp_form_FormStepDisplay-module_xapp_form_nav_buttons__lI4BI {\n padding: var(--xapp-form-widget-final-button-nav-padding, 20px);\n flex: var(--xapp-form-widget-final-button-nav-flex, 1 1 auto);\n align-self: var(--xapp-form-widget-final-button-nav-align, stretch);\n align-items: center;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_final_button_container__Gco-E {\n display: flex;\n justify-content: center;\n padding: 20px 20px 0 20px;\n}\n.xapp_form_FormStepDisplay-module_xapp_final_button_container__Gco-E button {\n font-size: var(--xapp-form-widget-button-font-size, 1.2em) !important;\n padding: var(--xapp-form-widget-button-padding, 12px 32px) !important;\n min-width: 200px !important;\n border-radius: var(--xapp-form-widget-button-radius, var(--xapp-form-widget-border-radius-md, 12px)) !important;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_form_nav_buttons__lI4BI {\n display: flex;\n justify-content: space-between;\n padding: 20px;\n align-self: stretch;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_dummy_button__Q-nE6 {\n flex-grow: 1;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_step_button__KeEND {\n display: inline-flex !important;\n align-items: center;\n justify-content: center;\n position: relative;\n box-sizing: border-box !important;\n min-width: 64px;\n margin: 0 !important;\n border: 0;\n outline: 0;\n vertical-align: middle;\n cursor: pointer;\n user-select: none;\n -webkit-appearance: none;\n appearance: none;\n -webkit-tap-highlight-color: transparent;\n color: #fff !important;\n line-height: 1.75 !important;\n letter-spacing: 0.02857em;\n text-transform: uppercase !important;\n text-decoration: none !important;\n text-shadow: none !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_step_button__KeEND:disabled {\n color: rgba(0, 0, 0, 0.26) !important;\n pointer-events: none;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_primary_button__d2wra {\n background-color: var(--xapp-form-widget-primary-button-color, #ea6539) !important;\n font-family: inherit !important;\n border-radius: var(--xapp-form-widget-button-radius, var(--xapp-form-widget-border-radius-md, 12px)) !important;\n font-size: var(--xapp-form-widget-button-font-size, 0.875rem) !important;\n font-weight: var(--xapp-form-widget-button-font-weight, 500) !important;\n padding: var(--xapp-form-widget-button-padding, 6px 16px) !important;\n min-height: 44px !important;\n box-shadow: var(--xapp-form-widget-button-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)) !important;\n transition: box-shadow 200ms ease-in-out, transform 150ms ease-in-out, opacity 200ms ease-in-out !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_primary_button__d2wra:hover {\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;\n opacity: 0.9 !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_primary_button__d2wra:active {\n transform: scale(0.98) !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_primary_button__d2wra:focus {\n outline: none;\n}\n.xapp_form_FormStepDisplay-module_xapp_primary_button__d2wra:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_secondary_button__LuMfN {\n background-color: var(--xapp-form-widget-secondary-button-color, #d24cc7) !important;\n font-family: inherit !important;\n border-radius: var(--xapp-form-widget-button-radius, var(--xapp-form-widget-border-radius-md, 12px)) !important;\n font-size: var(--xapp-form-widget-button-font-size, 0.875rem) !important;\n font-weight: var(--xapp-form-widget-button-font-weight, 500) !important;\n padding: var(--xapp-form-widget-button-padding, 6px 16px) !important;\n min-height: 44px !important;\n box-shadow: var(--xapp-form-widget-button-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)) !important;\n transition: box-shadow 200ms ease-in-out, transform 150ms ease-in-out, opacity 200ms ease-in-out !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_secondary_button__LuMfN:hover {\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;\n opacity: 0.9 !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_secondary_button__LuMfN:active {\n transform: scale(0.98) !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_secondary_button__LuMfN:focus {\n outline: none;\n}\n.xapp_form_FormStepDisplay-module_xapp_secondary_button__LuMfN:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_disabled_button__RjSfL {\n background-color: var(--xapp-form-widget-secondary-button-color, #d24cc7) !important;\n opacity: 0.5 !important;\n font-family: inherit !important;\n border-radius: var(--xapp-form-widget-button-radius, var(--xapp-form-widget-border-radius-md, 12px)) !important;\n font-size: var(--xapp-form-widget-button-font-size, 0.875rem) !important;\n font-weight: var(--xapp-form-widget-button-font-weight, 500) !important;\n padding: var(--xapp-form-widget-button-padding, 6px 16px) !important;\n min-height: 44px !important;\n box-shadow: none !important;\n cursor: not-allowed !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_back_button__mPqT0 {\n background: var(--xapp-form-widget-back-button-background, var(--xapp-form-widget-primary-button-color, #ea6539)) !important;\n border: var(--xapp-form-widget-back-button-border, 0) !important;\n border-radius: var(--xapp-form-widget-back-button-radius, var(--xapp-form-widget-border-radius-md, 12px)) !important;\n padding: var(--xapp-form-widget-back-button-padding, 6px 16px) !important;\n min-width: var(--xapp-form-widget-back-button-size, 64px) !important;\n width: var(--xapp-form-widget-back-button-size, auto) !important;\n height: var(--xapp-form-widget-back-button-size, auto) !important;\n color: var(--xapp-form-widget-back-button-color, var(--xapp-form-widget-primary-button-text-color, #b7c5d1)) !important;\n font-size: var(--xapp-form-widget-back-button-font-size, 0.875rem) !important;\n font-weight: var(--xapp-form-widget-back-button-font-weight, 500) !important;\n box-shadow: var(--xapp-form-widget-back-button-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)) !important;\n}\n.xapp_form_FormStepDisplay-module_xapp_back_button__mPqT0:hover {\n color: var(--xapp-form-widget-back-button-color-hover, var(--xapp-form-widget-primary-button-text-color, #b7c5d1)) !important;\n border-color: var(--xapp-form-widget-back-button-color-hover, currentColor) !important;\n}\n\n.xapp_form_FormStepDisplay-module_xapp_back_button_label__9kKIl {\n display: var(--xapp-form-widget-back-button-label-display, inline);\n}\n\n.xapp_form_FormStepDisplay-module_xapp_back_button_icon__w7o4I {\n display: var(--xapp-form-widget-back-button-icon-display, none);\n align-items: center;\n justify-content: center;\n font-size: 20px;\n line-height: 1;\n -webkit-text-stroke: var(--xapp-form-widget-back-button-icon-stroke, 0);\n}");function po(e){return!!e&&void 0!==e.externalWidget}function so(e){return"value"in e&&void 0!==e.value}De("/**\n * CostGuide / Contractor Appointments booking-embed style overrides.\n *\n * The partner renders its form into #airo-anchor in the light DOM with stable, semantic\n * class names (spike: chat-widget#1514). This is a plain (non-module) stylesheet on purpose\n * so the selectors below emit literally rather than being scoped -- they target the partner's\n * own markup, not ours.\n *\n * Two hard constraints from the spike:\n * 1. Their rules are scoped `#airo-anchor #step-<name> .<class>` (two ids + a class), so a\n * plain `#airo-anchor .btn-next` measurably loses. Overrides must carry `#airo-anchor`\n * specificity AND `!important` to win.\n * 2. Most of their text inherits the container font, but `input` is explicitly Arial, so the\n * font must be re-applied to inputs directly.\n *\n * Every value maps to a `--xapp-form-widget-*` theme variable (with a fallback matching\n * `styles/_variables.scss`), so a Studio-themed widget restyles the partner's form too --\n * nothing here is a hard-coded color, font, or radius.\n *\n * Partner selectors verified: 2026-08-04. Re-verify against their markup per chat-widget#1516.\n */\n/* Primary action buttons: btn-next / btn-orange */\n#airo-anchor .btn-next,\n#airo-anchor .btn-orange {\n background-color: var(--xapp-form-widget-primary-button-color, #ea6539) !important;\n color: var(--xapp-form-widget-primary-button-text-color, #b7c5d1) !important;\n border-radius: var(--xapp-form-widget-border-radius-md, 12px) !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;\n}\n\n/* Secondary / back button: btn-back */\n#airo-anchor .btn-back {\n background-color: var(--xapp-form-widget-secondary-button-color, #d24cc7) !important;\n color: var(--xapp-form-widget-secondary-button-text-color, #b7c5d1) !important;\n border-radius: var(--xapp-form-widget-border-radius-md, 12px) !important;\n}\n\n/* Headings and body text: stepwrap / ms-title / ms-subtitle / page-title / label-item */\n#airo-anchor .stepwrap,\n#airo-anchor .ms-title,\n#airo-anchor .ms-subtitle,\n#airo-anchor .page-title,\n#airo-anchor .label-item {\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87)) !important;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;\n}\n\n/* Inputs are explicitly Arial in their sheet, so the inherited container font never reaches\n them -- re-apply directly (spike finding). radio-item grouped for the same reason. */\n#airo-anchor input,\n#airo-anchor .radio-item {\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;\n}\n\n/* Focus rings consistent with ours rather than their default orange. */\n#airo-anchor input:focus,\n#airo-anchor .btn-next:focus,\n#airo-anchor .btn-back:focus {\n outline-color: var(--xapp-form-widget-focus-ring-color, #012b54) !important;\n}");var lo=["preferred_time","preferred_date"];function co(e){return"DATE"===e.type||"DATETIME"===e.type||"CHIPS"===e.type&&lo.indexOf(e.name)>=0}function uo(e){var n=[e.name,"".concat(e.name,"_start"),"".concat(e.name,"_end")];if("DATETIME"===e.type){var t=e;n.push(t.dateFieldName||Xn,t.dateTimeFieldName||Qn,t.timeZoneFieldName||et)}return n}function mo(e){return!!e&&void 0!==e.mandatoryGroup}var _o=function(o){var i=n.useRef({}),p=n.useRef(new Set),s=n.useRef(!1),d=n.useRef(o.formStep.fields),l=n.useRef({}),c=n.useState({}),u=c[0],m=c[1],_=n.useState({}),f=_[0],x=_[1],h=n.useState({}),g=h[0],v=h[1],b=n.useState(!1),y=b[0],w=b[1],F=Ce().context,k=function(e){var n=null==e?void 0:e.schedulingDisabled;return!0===n||"true"===n}(F),S=null==F?void 0:F.offeringsByDate,T=n.useMemo(function(){return function(e){var n=e;if("string"==typeof n)try{n=JSON.parse(n)}catch(e){return}if(n&&"object"==typeof n&&!Array.isArray(n)){var t={};return Object.entries(n).forEach(function(e){var n=e[0],r=e[1];t[n]=Array.isArray(r)?r.filter(xt):[]}),t}}(S)},[S]),C=null==F?void 0:F.nextBusinessDayBlock,D=n.useMemo(function(){return function(e){var n=e;if("string"==typeof n)try{n=JSON.parse(n)}catch(e){return}if(n&&"object"==typeof n){var t=n,r=t.date,a=Un(t.blockedUntil);if("string"==typeof r&&Ln.test(r)&&a)return{date:r,blockedUntil:a}}}(C)},[C]),N=n.useState(),I=N[0],R=N[1],A=n.useCallback(function(e){return k&&!!e&&co(e)},[k]),j=o.formStep,M=o.onNextStep,E=o.onPrevStep,O=o.onData,z=o.onDataWithLabels,P=o.getData,L=o.getDataWithLabels,H=o.loading,U=o.currentStepIndex,B=o.totalSteps,W=o.onTrackNextStep,$=o.currentStepDataRef,Y=o.isActive,q=o.externalWidgetConfigPending,G=o.onTrackHandoffRendered,V=o.onTrackHandoffNoRender,J=o.onTrackHandoffScheduled,K=o.onTrackHandoffError,Z=o.onExternalWidgetFallback,X=o.submitError,Q=o.hideIntro,ee=Y&&!q&&po(j)?j.externalWidget:void 0,ne=St(ee,{onRendered:function(e){return null==G?void 0:G(j.name,e)},onNoRender:function(e){return null==V?void 0:V(j.name,e)},onScheduled:function(e,n){return null==J?void 0:J(j.name,e,n)},onError:function(e){return null==K?void 0:K(j.name,e)},onFallback:function(e){return null==Z?void 0:Z(e)}}).outcome,te=n.useState(!1),re=te[0],ae=te[1];n.useLayoutEffect(function(){if(ee){var e=ee.anchorId,n=document.getElementById(e);if(n){if(!(n.childElementCount>0)){var t=new MutationObserver(function(){var n=document.getElementById(e);n&&n.childElementCount>0&&(ae(!0),t.disconnect())});return t.observe(n,{childList:!0,subtree:!0}),function(){return t.disconnect()}}ae(!0)}}else ae(!1)},[ee]);var oe=n.useCallback(function(){var e={};Object.entries(l.current).forEach(function(n){var r=n[0],a=n[1];try{var o=t(t(t({},P()),i.current),{safeIncludes:function(e,n){return Array.isArray(e)?e.includes(n):"string"==typeof e&&e===n}});e[r]=a.call(o)}catch(n){"development"===process.env.NODE_ENV&&console.error('Condition evaluation failed for field "'.concat(r,'":'),n),e[r]=!1}}),function(e,n){var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(var a=0,o=t;a<o.length;a++){var i=o[a];if(e[i]!==n[i])return!1}return!0}(e,f)||x(e)},[f,P]);n.useEffect(function(){for(var e={},n=0,t=j.fields;n<t.length;n++){var r=t[n];if(mo(r)&&!A(r)){var a=r.mandatoryGroup;a&&(e[a]||(e[a]=[]),e[a].push(r.name))}}m(e)},[j.fields,A]);d.current!==j.fields&&(d.current=j.fields,p.current.clear(),s.current=!1,i.current={});for(var ie=0,pe=j.fields;ie<pe.length;ie++){var se=pe[ie];!so(se)||p.current.has(se.name)||Object.prototype.hasOwnProperty.call(i.current,se.name)||(i.current[se.name]=se.value,p.current.add(se.name))}var de=function(e){for(var n=t({},e),r=0,a=j.fields;r<a.length;r++){var o=a[r];A(o)&&delete n[o.name]}return n};n.useEffect(function(){for(var e=0,n=j.fields;e<n.length;e++){var t=n[e];if("CHIPS"===t.type){var r=t.items.filter(function(e){return Ut(e)}).filter(function(e){return e.selected}).map(function(e){return e.id});r.length>0&&!Object.prototype.hasOwnProperty.call(i.current,t.name)&&(i.current[t.name]=r)}if(t.condition){var a=On(t.condition);l.current[t.name]=new Function("return (".concat(a,");"))}}p.current.size>0&&!s.current&&(s.current=!0,O(de(i.current))),oe()},[oe,j.fields]);var le=n.useCallback(function(){var e={},n=!0,r={};j.fields.forEach(function(t){var a={valid:!0},o=i.current[t.name];if(!1===f[t.name]||A(t))e[t.name]=a;else{if(function(e){return!!e&&"DROPDOWN"===e.type}(t))if(!t.mandatory||null!=o&&"none"!==o){if(null!=o&&"none"!==o){var p=t.items.find(function(e){return e.id===o});if(p&&p.freeFormInput){var s=p.freeFormFieldName||"message",d=i.current[s];(!d||"string"==typeof d&&""===d.trim())&&(e[s]={valid:!1,message:"Please specify additional details"},a={valid:!1,message:""})}}}else a={valid:!1,message:t.mandatoryError||"Please select an option"};else if(function(e){return!!e&&"DATERANGE"===e.type}(t))t.mandatory&&!function(e){var n=e;return!!(null==n?void 0:n.from)&&!!(null==n?void 0:n.to)}(o)&&(a={valid:!1,message:t.mandatoryError||"Please select a date range"});else if(function(e){return!!e&&"DATETIME"===e.type}(t))t.mandatory&&!function(e){var n=e;return!!(null==n?void 0:n.date)&&!!(null==n?void 0:n.start)}(o)&&(a={valid:!1,message:t.mandatoryError||"Please select a date and a time"});else if(Object.prototype.hasOwnProperty.call(i.current,t.name))if(function(e){return!!e&&"TEXT"===e.type}(t))if(!0===t.mandatory&&Ma(o))a={valid:!1,message:t.mandatoryError||"This field is mandatory"};else if("EMAIL"!==t.format||Ma(o)){if("PHONE"!==t.format||Ma(o)){if("ZIP_CODE"===t.format&&!Ma(o)&&(a=function(e){if(Ma(e))return{valid:!0};var n=/^\d{5}$/.test(e)||/^\d{5}-\d{4}$/.test(e)||/^[A-Za-z]\d[A-Za-z]\s?\d[A-Za-z]\d$/.test(e);return{valid:n,message:n?void 0:"Invalid zip code or postal code"}}(o),a.valid)){var l=function(e){if(Ma(e))return e;var n=e.trim(),t=n.match(/^([A-Za-z]\d[A-Za-z])(\d[A-Za-z]\d)$/);return t?"".concat(t[1].toUpperCase()," ").concat(t[2].toUpperCase()):/^[A-Za-z]\d[A-Za-z]\s\d[A-Za-z]\d$/.test(n)?n.toUpperCase():e}(o);l!==o&&(r[t.name]=l)}}else if(a=function(e){if(Ma(e))return{valid:!0};var n=Ea(e);return{valid:n,message:n?void 0:"Invalid phone number"}}(o),a.valid){var c=function(e){if(Ma(e)||!Ea(e))return e;var n=e.replace(/\D/g,"");return 11===n.length&&n.startsWith("1")&&(n=n.slice(1)),n.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3")}(o);c!==o&&(r[t.name]=c)}}else a={valid:u=/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/.test(String(o).toLowerCase()),message:u?void 0:"Invalid email address"};else!function(e){return!!e&&"CHIPS"===e.type}(t)?function(e){return!!e&&"DATE"===e.type}(t)&&t.mandatory&&null==o?a={valid:!1,message:"Please select a day"}:function(e){return!!e&&"CHECK"===e.type}(t)&&t.mandatory&&!(null==o?void 0:o.length)&&(a={valid:!1,message:t.mandatoryError||"This field is mandatory"}):t.minRequired&&o.length<t.minRequired?a={valid:!1,message:"Please select at least ".concat(t.minRequired," option(s)")}:t.maxAllowed&&o.length>t.maxAllowed?a={valid:!1,message:"Please select no more than ".concat(t.maxAllowed," option(s)")}:t.mandatory&&1!==(null==o?void 0:o.length)&&(a={valid:!1,message:"Please select one option"});var u;n=n&&a.valid,e[t.name]=a}});for(var a=function(t){if(!t.some(function(e){return!Oa(i.current[e])})){var r=j.fields.find(function(e){return e.name===t[0]}),a=g[t[0]],o=(null==a?void 0:a.message)||(null==r?void 0:r.mandatoryError)||"At least one of these fields is required";t.forEach(function(n){e[n]={valid:!1,message:o}}),n=!1}},o=0,p=Object.entries(u);o<p.length;o++){a(p[o][1])}return Oa(r)||(i.current=t(t({},i.current),r)),function(e,n){var t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;for(var a=0,o=t;a<o.length;a++){var i=o[a];if(!n.hasOwnProperty(i))return!1;var p=e[i],s=n[i];if(p.valid!==s.valid)return!1}return!0}(g,e)||v(e),n},[f,g,j.fields,u,A]),ce=function(){return r(void 0,void 0,void 0,function(){var e;return a(this,function(n){switch(n.label){case 0:if(!le()||y)return[2];w(!0),n.label=1;case 1:return n.trys.push([1,,4,5]),ue(i.current),W&&void 0!==U&&void 0!==B&&(e=U===B-1,W(j.name,U,de(i.current),e)),M?[4,M("submit"===j.nextAction)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[3,5];case 4:return w(!1),[7];case 5:return[2]}})})},ue=function(e){for(var n=de(e),r=P(),a=L(),o={},i={},p=0,s=j.fields;p<s.length;p++){var d=s[p];if(A(d))for(var l=0,c=uo(d);l<c.length;l++){var u=c[l];Object.prototype.hasOwnProperty.call(r,u)&&(o[u]=void 0),Object.prototype.hasOwnProperty.call(a,u)&&(i[u]=void 0)}}for(var m=t(t({},o),n),_={},f=function(e,n,t){if(n.length>0){var r=n.join(", ");m["".concat(e,"_start")]=r,_["".concat(e,"_start")]=r}if(t.length>0){var a=t.join(", ");m["".concat(e,"_end")]=a,_["".concat(e,"_end")]=a}},x=function(e){var t,r,a,o,i,p=n[e],s=j.fields.find(function(n){return n.name===e});if("CHIPS"===(null==s?void 0:s.type)&&void 0!==p){var d=[],l=[],c=[];p.forEach(function(e){var n=s.items.find(function(n){return n.id===e});if(n){d.push(n.label);var t=n;t.startTime&&l.push(t.startTime),t.endTime&&c.push(t.endTime)}}),_[e]=function(e){if(0===e.length)return"";if(1===e.length)return e[0];if(2===e.length)return e.join(" and ");var n=e.pop();return e.join(", ")+", and "+n}(d),f(e,l,c)}else if("DATETIME"===(null==s?void 0:s.type)&&void 0!==p){var u=s,x=p;m[e]=x.label,_[e]=x.label,f(e,x.start?[x.start]:[],x.end?[x.end]:[]);var h=u.dateFieldName||Xn;m[h]=x.date,_[h]=x.date;var g=u.dateTimeFieldName||Qn;m[g]=x.datetime,_[g]=x.datetime;var v=ut(u.schedule);if(v){var b=u.timeZoneFieldName||et;m[b]=v,_[b]=v}}else if("DROPDOWN"===(null==s?void 0:s.type)&&void 0!==p){var y=s.items.find(function(e){return e.id===p});y?y.label&&y.label.trim().length>0?_[e]=y.label:_[e]=p.replace(/_/g," ").split(" ").map(function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join(" "):_[e]=p}else"DATE"===(null==s?void 0:s.type)&&void 0!==p?_[e]=(t=new Date(p),r=t.getDate(),a=t.toLocaleString("default",{month:"long"}),o=t.getFullYear(),i=function(e){if(e>=11&&e<=13)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}(r),"".concat(a," ").concat(r).concat(i,", ").concat(o)):_[e]=p},h=0,g=Object.keys(n);h<g.length;h++){x(g[h])}O(m),z(t(t({},i),_))},me=function(){for(var e in g)if(!1!==f[e]&&!g[e].valid)return!0;return!1},_e=n.useCallback(function(e,n){var r,a,o=!Object.prototype.hasOwnProperty.call(i.current,e);if(p.current.has(e)){if(!o&&i.current[e]===n)return void p.current.delete(e);if(!o&&i.current[e]!==n)return}(o||i.current[e]!==n)&&(Array.isArray(n)&&0===n.length&&(n=void 0),i.current=t(t({},i.current),((r={})[e]=n,r)),(null===(a=null==j?void 0:j.fields)||void 0===a?void 0:a.some(function(n){return n.name===e&&"DATE"===n.type}))&&R(function(e){return e&&"function"==typeof e.format?e.format("YYYY-MM-DD"):void 0}(n)),$&&($.current=i.current),oe(),Oa(g)||le())},[oe,g,le,$,j]),fe=n.useContext(Le);oe();var xe,he=!!j&&j.fullBleed;return e.jsxs("div",{className:he?Pa:void 0,children:[!Q&&!!j&&(j.title||j.subtitle)&&e.jsxs("div",{className:Ga,children:[!!j.title&&e.jsx("p",{children:j.title}),!!j.subtitle&&e.jsx("p",{className:Va,children:j.subtitle})]}),!!j&&j.warnBeforeUnloadMessage&&e.jsxs("div",{style:{backgroundColor:"#fff3cd",color:"#856404",padding:"12px 16px",marginBottom:"16px",borderRadius:"4px",border:"1px solid #ffeaa7",display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("span",{style:{fontSize:"20px"},children:"⚠️"}),e.jsx("span",{children:j.warnBeforeUnloadMessage})]}),(xe=j,!!xe&&void 0!==xe.iframe&&e.jsx("div",{className:za,children:e.jsx("iframe",{src:j.iframe.src,title:j.title,width:j.iframe.width||"100%",height:j.iframe.height||"100%",frameBorder:"0",allowFullScreen:!0})})),po(j)&&e.jsxs("div",{className:La,children:[e.jsx("div",{id:j.externalWidget.anchorId,className:Ha}),Y&&"pending"===ne&&!re&&e.jsxs("div",{className:Ba,role:"status","aria-live":"polite",children:[e.jsx("span",{className:Wa,children:e.jsx(Ge,{})}),e.jsx("p",{children:"Finding available appointments…"})]}),("no_render"===ne||"error"===ne)&&!j.externalWidget.fallbackStep&&e.jsx("div",{className:Ua,children:e.jsx("p",{children:"We're sorry, we couldn't load the booking form. Please try again later."})})]}),e.jsx("div",{children:function(){if(!j)return[];var n=j.fields||[],t=n.findIndex(function(e){return A(e)}),r=D&&n.some(function(e){return co(e)&&"CHIPS"===e.type&&(n=e.items,t=D.date,r=D,(a=Wn(n)).length>0&&a.every(function(e){return Bn(t,e.startTime,r)}));var n,t,r,a})?D.date:void 0,a=n.map(function(a,p){var s,d,l,c,u,m,_,x,h,v,b,y,w,k=p===n.length-1;if(A(a))return p===t?e.jsx("div",{className:"".concat(Ya," ").concat(qa),children:e.jsx(Rt,{field:{name:"scheduling_disabled",type:"CARD",text:"We'll contact you to schedule a time."},onFieldChange:_e})},p):null;switch(a.type){case"TEXT":v="ADDRESS"===a.format?e.jsx(ja,{field:a,onFieldChange:_e,value:i.current[a.name],errorMessage:null===(s=g[a.name])||void 0===s?void 0:s.message,required:a.mandatory,googleMapsApiKey:fe.googleMapsApiKey,mapsBaseUrl:fe.mapsBaseUrl},a.name):e.jsx(Vt,{field:a,onFieldChange:_e,value:i.current[a.name],errorMessage:null===(d=g[a.name])||void 0===d?void 0:d.message,required:a.mandatory,isLastField:k},a.name);break;case"DROPDOWN":var S=a,C=i.current[S.name],N=void 0;if(C&&"none"!==C){var R=S.items.find(function(e){return e.id===C});if(R&&R.freeFormInput){var j=R.freeFormFieldName||"message";N=null===(l=g[j])||void 0===l?void 0:l.message}}v=e.jsx(or,{field:S,onFieldChange:_e,errorMessage:null===(c=g[a.name])||void 0===c?void 0:c.message,required:a.mandatory,freeFormErrorMessage:N},a.name);break;case"CHECK":v=e.jsx(Ct,{field:a,onFieldChange:_e,errorMessage:null===(u=g[a.name])||void 0===u?void 0:u.message},a.name);break;case"CHIPS":v=e.jsx(Bt,{field:a,onFieldChange:_e,errorMessage:null===(m=g[a.name])||void 0===m?void 0:m.message,value:i.current[a.name],disabledItemIds:co(a)?(b=a.items,y=I,w=D,Wn(b).filter(function(e){return Bn(y,e.startTime,w)}).map(function(e){return e.id})):void 0},a.name);break;case"DATE":var M=null==F?void 0:F.busyDays;v=e.jsx(Ur,{field:a,onFieldChange:_e,errorMessage:null===(_=g[a.name])||void 0===_?void 0:_.message,busyDays:M,loading:H,blockedDate:r},a.name);break;case"DATETIME":v=e.jsx(sa,{field:a,onFieldChange:_e,value:i.current[a.name],errorMessage:null===(x=g[a.name])||void 0===x?void 0:x.message,required:a.mandatory,busyDays:null==F?void 0:F.busyDays,offeringsByDate:T,nextBusinessDayBlock:D,preselectFirstAvailable:o.preselectFirstAvailableDate},a.name);break;case"DATERANGE":v=e.jsx($r,{field:a,onFieldChange:_e,value:i.current[a.name],errorMessage:null===(h=g[a.name])||void 0===h?void 0:h.message,required:a.mandatory,isLastField:k},a.name);break;case"CARD":v=e.jsx(Rt,{field:Pn(a,L()),onFieldChange:_e},a.name);break;default:v=null}return e.jsx("div",{className:"".concat(Ya," ").concat(!1!==f[a.name]?qa:""),children:v},p)});return a.filter(function(e){return null!==e})}()}),!!X&&e.jsx("div",{className:$a,role:"alert",children:e.jsx("p",{children:X})}),e.jsxs("div",t({className:"".concat(Ja," ").concat(j.final?Ka:"")},j.final?{"data-xapp-final-actions":""}:{},{children:[!!M&&"omit"!==j.nextAction&&j.final&&e.jsx("div",{className:Za,children:e.jsx("button",{type:"button",className:"".concat(eo," ").concat(me()||y?ro:j.nextLabel?to:no),disabled:y,onClick:ce,children:y?"Loading...":j.nextLabel||"Next"})}),e.jsxs("div",{className:Xa,children:[void 0===E&&e.jsx("div",{className:Qa}),!!E&&"omit"!==j.previousAction&&e.jsxs("button",{type:"button",className:"".concat(eo," ").concat(no," ").concat(ao),onClick:function(){ue(i.current),E&&E()},"aria-label":j.previousLabel||"Previous",children:[e.jsx("span",{className:oo,children:j.previousLabel||"Previous"}),e.jsx("span",{className:io,"aria-hidden":"true",children:"←"})]}),!!M&&"omit"!==j.nextAction&&!j.final&&e.jsx("button",{type:"button",className:"".concat(eo," ").concat(me()||y?ro:j.nextLabel?to:no),disabled:y,onClick:ce,children:y?"Loading...":j.nextLabel||"Next"})]})]}))]})},fo="xapp_form_FormFrame-module_xapp_form_frame_root__BLTha",xo="xapp_form_FormFrame-module_xapp_form_frame_intro__S4kWd",ho="xapp_form_FormFrame-module_xapp_form_frame_title__GA8dy",go="xapp_form_FormFrame-module_xapp_form_frame_subtitle__WOeJI",vo="xapp_form_FormFrame-module_xapp_form_frame_framed__9E311",bo="xapp_form_FormFrame-module_xapp_form_frame_plain__rBarK",yo="xapp_form_FormFrame-module_xapp_form_frame_tab_row__osSVR",wo="xapp_form_FormFrame-module_xapp_form_frame_tab__0O2ga";De(".xapp_form_FormFrame-module_xapp_form_frame_root__BLTha {\n display: block;\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_intro__S4kWd {\n background-color: #ffffff;\n padding: 28px 16px 18px;\n text-align: center;\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_title__GA8dy {\n margin: 0;\n font-family: Poppins, Arial, Verdana, sans-serif;\n font-size: 24px;\n font-weight: 700;\n line-height: 1.15;\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87));\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_subtitle__WOeJI {\n margin: 6px 0 0 0;\n font-family: Poppins, Arial, Verdana, sans-serif;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.4;\n color: var(--xapp-form-widget-text-color, rgba(0, 0, 0, 0.87));\n opacity: 0.75;\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_framed__9E311 {\n position: relative;\n border: 4px solid var(--xapp-form-widget-border-color, #d3d3df);\n border-radius: 0;\n background-color: var(--xapp-form-widget-background-color, #f3f8fb);\n margin-top: -2px;\n padding: 24px 22px 8px;\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_plain__rBarK {\n display: block;\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_tab_row__osSVR {\n background-color: #ffffff;\n text-align: center;\n}\n\n.xapp_form_FormFrame-module_xapp_form_frame_tab__0O2ga {\n display: inline-block;\n position: relative;\n z-index: 1;\n padding: 12px 30px;\n border-radius: 12px 12px 0 0;\n background-color: var(--xapp-form-widget-header-background-color, #012b54);\n color: var(--xapp-form-widget-header-text-color, #b7c5d1);\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n font-size: 14px;\n font-weight: 700;\n letter-spacing: 1px;\n white-space: nowrap;\n}");var Fo=function(n){var t=n.framing,r=n.framed,a=n.children,o=null==t?void 0:t.tabLabel,i=null==t?void 0:t.introTitle,p=null==t?void 0:t.introSubtitle,s=(null==t?void 0:t.introPlacement)||"above-tab",d=i||p?e.jsxs("div",{className:xo,"data-xapp-form-frame-intro":"",children:[!!i&&e.jsx("h2",{className:ho,"data-xapp-form-frame-title":"",children:i}),!!p&&e.jsx("p",{className:go,"data-xapp-form-frame-subtitle":"",children:p})]}):null;return e.jsxs("div",{className:fo,children:["above-tab"===s&&d,r&&!!o&&e.jsx("div",{className:yo,children:e.jsx("span",{className:wo,"data-xapp-form-frame-tab":"",children:o})}),e.jsxs("div",{className:r?vo:bo,"data-xapp-form-frame":r?"framed":"plain",children:["inline"===s&&d,a]})]})},ko="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header__YhCD1",So="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_showcase__NhRLn",To="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_container__V9y-e",Co="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_row__rmXFD",Do="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_title__yVgEi",No="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_track__Ktw8x",Io="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_step__tTjar",Ro="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_dot__THRsN",Ao="xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_label__tLrJ6";De('/**\n * The phone breakpoint.\n *\n * Width alone cannot express "phone". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step\'s action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field\'s helper / error line. The metrics are MUI\'s FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header__YhCD1 {\n background-color: inherit !important;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_showcase__NhRLn {\n background-color: inherit !important;\n padding: 0px !important;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_container__V9y-e {\n background-color: inherit !important;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_row__rmXFD {\n display: flex;\n justify-content: center;\n gap: 16px;\n padding: 16px;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_title__yVgEi {\n margin: 0;\n color: var(--xapp-form-widget-header-text-color, #b7c5d1);\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 2.125rem;\n font-weight: 400;\n line-height: 1.235;\n letter-spacing: 0.00735em;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_track__Ktw8x {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n min-height: 50px;\n}\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_track__Ktw8x::before {\n content: "";\n position: absolute;\n top: 50%;\n left: 0;\n right: 0;\n height: 3px;\n background-color: white;\n z-index: 1;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_step__tTjar {\n position: relative;\n top: 10px;\n z-index: 2;\n display: flex;\n flex-direction: column;\n align-items: center;\n min-width: 100px;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_dot__THRsN {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 30px !important;\n min-width: auto;\n height: 30px !important;\n margin: 0;\n padding: 0 !important;\n border: 3px solid white !important;\n border-radius: 50% !important;\n box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n cursor: pointer;\n}\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_dot__THRsN:focus {\n outline: none;\n}\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_dot__THRsN:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n\n.xapp_form_SimpleNavigationHeader-module_xapp_navigation_header_label__tLrJ6 {\n margin: 8px;\n color: var(--xapp-form-widget-header-text-color, #b7c5d1);\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, Roboto, Helvetica, Arial, sans-serif);\n font-size: 0.875rem;\n font-weight: 400;\n line-height: 1.43;\n letter-spacing: 0.01071em;\n}');var jo=function(n){var t=n.items,r=n.onHeaderClick,a=n.labelHeader,o=n.stepName,i=n.isShowCase;if(a){var p=t.find(function(e){return e.step===o}),s=null==p?void 0:p.label;return void 0===s?null:e.jsx("div",{className:"".concat(Co," ").concat(i?So:To),children:e.jsx("h4",{className:Do,children:s})})}return e.jsx("div",{className:"".concat(Co," ").concat(ko),children:e.jsx("div",{className:No,children:t.map(function(n,t){return e.jsxs("div",{className:Io,children:[e.jsx("button",{type:"button","aria-label":n.label,className:"".concat(ko," ").concat(Ro),onClick:function(){r("".concat(n.step))}}),e.jsx("p",{className:Ao,children:n.label})]},t)})})})};
2
2
  /*! Copyright (c) 2025, XAPP AI */function Mo(e,n){var t=e.slice(0,5);return!!n.find(function(e){if(e===t)return!0;if(e.includes("*")){var n=e.replace(/\*/g,"\\d")+"$";return new RegExp("^".concat(n)).test(t)}return!1})}function Eo(e){if(e){var n=e.match(/\b\d{5}(?:-\d{4})?\b/g);if(n)for(var t=n.length-1;t>=0;t--){var r=n[t],a=e.indexOf(r),o=e.slice(0,a);if(/(,|\b[A-Z]{2})\s*$/.test(o.trim()))return r;if(a>15)return r}}}var Oo="xapp_form_FormDisplay-module_xapp_formstep__OW1rY",zo="xapp_form_FormDisplay-module_active__5wTV3",Po="xapp_form_FormDisplay-module_xapp_header_container__Y-eFl",Lo="xapp_form_FormDisplay-module_xapp_header_container_showcase__MWJfr";De(".xapp_form_FormDisplay-module_xapp_formstep__OW1rY {\n display: none;\n padding: 8px;\n}\n.xapp_form_FormDisplay-module_xapp_formstep__OW1rY.xapp_form_FormDisplay-module_active__5wTV3 {\n display: block;\n background-color: var(--xapp-form-widget-background-color, #f3f8fb) !important;\n}\n.xapp_form_FormDisplay-module_xapp_formstep__OW1rY.xapp_form_FormDisplay-module_title__-BtIw p {\n margin: 10px 0 0 0;\n}\n.xapp_form_FormDisplay-module_xapp_formstep__OW1rY {\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;\n}\n\n.xapp_form_FormDisplay-module_xapp_header_container__Y-eFl {\n background-color: var(--xapp-form-widget-header-background-color, #012b54) !important;\n position: absolute;\n top: 0px;\n right: 0px;\n left: 0px;\n z-index: 1000;\n min-height: 88px;\n padding-top: 16px;\n}\n.xapp_form_FormDisplay-module_xapp_header_container__Y-eFl .xapp_form_FormDisplay-module_empty_step_header__eHbBH {\n height: 42px;\n}\n.xapp_form_FormDisplay-module_xapp_header_container__Y-eFl {\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;\n}\n\n.xapp_form_FormDisplay-module_xapp_header_container_showcase__MWJfr {\n border-top-left-radius: 12px;\n border-top-right-radius: 12px;\n background-color: var(--xapp-form-widget-header-background-color, #012b54) !important;\n padding-top: 10px;\n padding-bottom: 10px;\n margin-top: 10px;\n}\n.xapp_form_FormDisplay-module_xapp_header_container_showcase__MWJfr .xapp_form_FormDisplay-module_empty_step_header__eHbBH {\n height: 42px;\n}\n.xapp_form_FormDisplay-module_xapp_header_container_showcase__MWJfr {\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;\n}");var Ho=function(o){var i,p=o.form,s=o.onActionResponse,d=o.isShowCase,l=o.loading,c=o.onTrackNextStep,u=o.onTrackPreviousStep,m=o.onTrackSubmit,_=o.onTrackSubmitFailure,f=o.currentStepDataRef,x=o.initialStep,h=o.preselectFirstAvailableDate,g=o.onTrackInitialStep,v=o.onFormNext,b=o.stepUpdate,y=o.onTrackHandoffRendered,w=o.onTrackHandoffNoRender,F=o.onTrackHandoffScheduled,k=o.onTrackHandoffError,S=n.useContext(Le).framing,T=n.useState(0),C=T[0],D=T[1],N=n.useRef(!1),I=n.useState({}),R=I[0],A=I[1],j=n.useState(void 0),M=j[0],E=j[1],O=function(e){var n=e.step;n&&A(function(r){var a,o,i,p=r[n],s={fields:e.fields||[]};return(null===(o=e.externalWidget)||void 0===o?void 0:o.config)?(H.current[n]=!0,s.externalWidget={config:t(t({},null===(i=null==p?void 0:p.externalWidget)||void 0===i?void 0:i.config),e.externalWidget.config)}):(null==p?void 0:p.externalWidget)&&(s.externalWidget=p.externalWidget),t(t({},r),((a={})[n]=s,a))})};n.useEffect(function(){b&&O(b)},[b]);var z=n.useState(!1),P=z[0],L=z[1],H=n.useRef({}),U=n.useState(!1),B=U[0],W=U[1];n.useEffect(function(){var e;W(!1);var n=null===(e=p.steps)||void 0===e?void 0:e[C];if(n&&po(n)){var t=setTimeout(function(){W(!0),H.current[n.name]=!0,L(!1)},5e3);return function(){return clearTimeout(t)}}},[C]);var $=n.useRef({});n.useEffect(function(){if(Array.isArray(p.steps)&&p.steps.length>0)for(var e=function(e){if(e.condition){var n=On(e.condition,"context",["isInServiceArea"]);$.current[e.name]=function(e){return new Function("context","isInServiceArea","return (".concat(n,");"))(e,Mo)}}},n=0,t=p.steps;n<t.length;n++){e(t[n])}},[null==p?void 0:p.steps]),n.useEffect(function(){var e;(C<0||C>=(null===(e=null==p?void 0:p.steps)||void 0===e?void 0:e.length))&&D(0)},[null==p?void 0:p.steps,C]),n.useEffect(function(){if(!N.current&&"number"==typeof x){var e=null==p?void 0:p.steps;(null==e?void 0:e.length)&&(N.current=!0,x>0&&x<e.length&&(D(x),null==g||g(x)))}},[null==p?void 0:p.steps,x,g]);var Y=n.useMemo(function(){var e,n,t=null===(e=p.steps)||void 0===e?void 0:e[C];return null!==(n=null==t?void 0:t.warnBeforeUnload)&&void 0!==n&&n},[C,p.steps]);n.useEffect(function(){if(Y){var e=function(e){return e.preventDefault(),e.returnValue="",""};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}}},[Y]);var q=n.useRef({}),G=n.useRef({}),V=n.useRef({}),J=n.useRef(!1);n.useEffect(function(){J.current=!1},[C]);var K=function(e){return r(void 0,void 0,void 0,function(){var n,r,o,i,s,d,l,c,u,m,_,f,x,h;return a(this,function(a){switch(a.label){case 0:for(n=-1,r=C+1;r<p.steps.length;r++){if(o=p.steps[r],i=$.current[o.name],s=q.current.zip_code||q.current.zip||Eo(q.current.address),d=t(t({},q.current),{zip:s}),!i){n=r;break}if(i(d)){n=r;break}}if(l=p.steps[C],!(n>=0&&!e&&v&&(null==l?void 0:l.serverCallback)))return[3,4];A(function(e){var r=t({},e);return delete r[p.steps[n].name],r}),a.label=1;case 1:return a.trys.push([1,3,,4]),c=new Promise(function(e){return setTimeout(function(){return e(void 0)},3e3)}),u=v({result:V.current,form:p.name,step:p.steps[C].name,nextStep:p.steps[n].name}),[4,Promise.race([u,c])];case 2:if(m=a.sent(),null==(_=m)?void 0:_.displays)for(f=0,x=_.displays;f<x.length;f++)"FORM_STEP_UPDATE"===(h=x[f]).type&&O(h);return[3,4];case 3:return a.sent(),[3,4];case 4:return n>=0&&!!e&&po(p.steps[n])&&!H.current[p.steps[n].name]&&L(!0),n>=0&&D(n),e?[4,te(C)]:[3,6];case 5:a.sent(),a.label=6;case 6:return[2]}})})},Z=function(){for(var e,n,r=C,a=(null===(n=null===(e=p.steps)||void 0===e?void 0:e[r])||void 0===n?void 0:n.name)||"unknown",o=C-1;o>=0;o--){var i=p.steps[o],s=$.current[i.name],d=q.current.zip_code||q.current.zip||Eo(q.current.address),l=t(t({},q.current),{zip:d});if(!s){u&&u(a,r,i.name,o),D(o);break}if(s(l)){u&&u(a,r,i.name,o),D(o);break}}},X=function(e){V.current=e,q.current=t(t({},q.current),e)},Q=function(){return q.current},ee=function(e){G.current=t(t({},G.current),e)},ne=function(){return G.current},te=function(e){return r(void 0,void 0,void 0,function(){var n,t,r,o,i;return a(this,function(a){switch(a.label){case 0:if(J.current)return[2];if(J.current=!0,t=(n=null!=e?e:C)>=0&&n<p.steps.length?n:0,m&&m(p.steps[t].name,t,q.current,p.steps.length),r={result:q.current,form:p.name,step:p.steps[t].name,final:!!p.steps[t].final},"function"!=typeof s)return[2];E(void 0),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,s(r,"FORM_SUBMIT")];case 2:return a.sent(),[3,4];case 3:return o=a.sent(),J.current=!1,E(t),i=o instanceof Error?o.message:String(o),he("FORM_SUBMIT failed on step ".concat(p.steps[t].name,": ").concat(i)),_&&_(p.steps[t].name,t,p.steps.length,i),[3,4];case 4:return[2]}})})},re=function(e){var n=p.steps.findIndex(function(n){return n.name===e});-1!==n?D(n):he("External widget fallback: Cannot find step to jump to: ".concat(e))},ae=C;(C<0||C>=(null===(i=null==p?void 0:p.steps)||void 0===i?void 0:i.length))&&(ae=0);var oe=po(p.steps[ae]),ie=!oe,pe=oe,se=!!(null==S?void 0:S.tabLabel)&&!!p.labelHeader&&ie||pe;return e.jsxs("div",t({},se?{"data-xapp-header-suppressed":""}:{},pe?{"data-xapp-bare-handoff":""}:{},{children:[p.header.length>0&&!se&&e.jsx("div",{className:d?Lo:Po,children:e.jsx(jo,{items:p.header,onHeaderClick:function(e){var n=p.steps.findIndex(function(n){return n.name===e});-1!==n?D(n):he("Header click: Cannot find step to jump to: ".concat(e))},labelHeader:p.labelHeader,stepName:p.steps[ae].name,isShowCase:d})}),e.jsx("div",{children:p.steps.map(function(n,r){var a,o,i=R[n.name],s=n;if((null==i?void 0:i.fields)&&(s=t(t({},s),{fields:i.fields})),null===(a=null==i?void 0:i.externalWidget)||void 0===a?void 0:a.config){var d=n.externalWidget;d&&(s=t(t({},s),{externalWidget:t(t({},d),{config:t(t({},d.config),i.externalWidget.config)})}))}var u=p.steps[ae].name===n.name,m=!po(s),_=e.jsx(_o,{formStep:s,preselectFirstAvailableDate:h,onData:X,onDataWithLabels:ee,onNextStep:ae<p.steps.length?K:void 0,onPrevStep:ae>0?Z:void 0,getData:Q,getDataWithLabels:ne,loading:l,currentStepIndex:r,totalSteps:p.steps.length,onTrackNextStep:c,currentStepDataRef:f,isActive:u,externalWidgetConfigPending:P&&po(n)&&!(null===(o=null==i?void 0:i.externalWidget)||void 0===o?void 0:o.config)&&!B,onTrackHandoffRendered:y,onTrackHandoffNoRender:w,onTrackHandoffScheduled:F,onTrackHandoffError:k,onExternalWidgetFallback:re,hideIntro:!!(null==S?void 0:S.introTitle)||!!(null==S?void 0:S.introSubtitle)||po(s),submitError:M===r?"We couldn't submit your information. Please check your connection and try again.":void 0});return e.jsx("div",{className:"".concat(Oo," ").concat(u?zo:""),"data-xapp-form-step-active":u?"true":"false",children:S?e.jsx(Fo,{framing:S,framed:m,children:_}):_},r)})})]}))},Uo=function(n){var t=n.display,r=n.onActionResponse,a=n.loading,o=n.onTrackNextStep,i=n.onTrackPreviousStep,p=n.onTrackSubmit,s=n.onTrackSubmitFailure,d=n.currentStepDataRef,l=n.initialStep,c=n.preselectFirstAvailableDate,u=n.onTrackInitialStep,m=n.onFormNext,_=n.stepUpdate,f=n.onTrackHandoffRendered,x=n.onTrackHandoffNoRender,h=n.onTrackHandoffScheduled,g=n.onTrackHandoffError;return e.jsxs("div",{className:"xapp-search-response-display",children:[be(t)&&e.jsx(Ho,{form:t,loading:a,onActionResponse:r,onTrackNextStep:o,onTrackPreviousStep:i,onTrackSubmit:p,onTrackSubmitFailure:s,currentStepDataRef:d,initialStep:l,preselectFirstAvailableDate:c,onTrackInitialStep:u,onFormNext:m,stepUpdate:_,onTrackHandoffRendered:f,onTrackHandoffNoRender:x,onTrackHandoffScheduled:h,onTrackHandoffError:g}),ve(t)&&e.jsx(Mn,{list:t}),ge(t)&&e.jsx(Rn,{carousel:t})]})},Bo=function(n){var t=n.html;return e.jsx("div",{className:"xapp-search-response-html",dangerouslySetInnerHTML:{__html:t}})},Wo=function(n){var t=n.text;return e.jsx("div",{className:"xapp-search-response-text",children:e.jsx("p",{children:t})})},$o=function(t){var r=t.audio,a=t.onAudioChange,o=n.useRef(null);return n.useEffect(function(){var e=o.current,n=function(){xe("Audio finished playing"),a(!1)},t=function(){xe("Audio started playing"),a(!0)};return e&&(e.addEventListener("ended",n),e.addEventListener("play",t)),function(){e&&(e.removeEventListener("ended",n),e.removeEventListener("play",t))}},[r,a]),e.jsx("audio",{ref:o,autoPlay:!0,src:r})},Yo="xapp_form_SearchResponseOutputSpeech-module_xapp_search_response_output_speech__DCf8F";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_SearchResponseOutputSpeech-module_xapp_search_response_output_speech__DCf8F {\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n font-weight: normal;\n font-size: 16px;\n font-style: normal;\n color: #000;\n}\n.xapp_form_SearchResponseOutputSpeech-module_xapp_search_response_output_speech__DCf8F p {\n margin: 0 0 1em 0;\n}\n.xapp_form_SearchResponseOutputSpeech-module_xapp_search_response_output_speech__DCf8F p:last-child {\n margin-bottom: 0;\n}");var qo=function(t){var r,a=t.outputSpeech,o=t.onAudioChange,i="string"==typeof a?a:null==a?void 0:a.displayText,p="string"==typeof a||null==a?void 0:a.html,s="string"==typeof a||null==a?void 0:a.ssml;if(n.useContext(Le).isVoiceEnabled){var d=s?function(e){for(var n,t=/<audio\s+src\s*=\s*"(.+?)"\s*\/?>/g,r=[];null!==(n=t.exec(e));)r.push(n[1]);return r}(s):[];r=d.length>0?d[0]:void 0}return e.jsxs("div",{className:Yo,children:[!!p&&e.jsx(Bo,{html:p}),!!i&&!p&&e.jsx(Wo,{text:i}),!!r&&e.jsx($o,{audio:r,onAudioChange:o})]})},Go={};Object.defineProperty(Go,"__esModule",{value:!0});var Vo=Go.isLinkoutSuggestion=function(e){if(!e)return!1;return void 0!==e.url};var Jo="xapp_form_Button-module_xapp_search_btn__cQf3T",Ko="xapp_form_Button-module_xapp_search_btn__expand__dUwot";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_Button-module_xapp_search_btn__cQf3T {\n display: inline-block;\n border-radius: var(--xapp-form-widget-border-radius-md, 12px);\n border: solid 1px var(--xapp-form-widget-border-color, #d3d3df);\n background: white;\n padding: 4px 24px;\n color: black;\n text-decoration: none;\n box-sizing: border-box;\n text-align: center;\n line-height: normal;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n font-size: 16px;\n cursor: pointer;\n transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out, transform 150ms ease-in-out;\n}\n.xapp_form_Button-module_xapp_search_btn__cQf3T:hover {\n background-color: rgba(0, 0, 0, 0.04);\n box-shadow: var(--xapp-form-widget-box-shadow-subtle, 0 2px 8px rgba(0, 0, 0, 0.08));\n}\n.xapp_form_Button-module_xapp_search_btn__cQf3T:active {\n transform: scale(0.98);\n}\n.xapp_form_Button-module_xapp_search_btn__cQf3T:focus {\n outline: none;\n}\n.xapp_form_Button-module_xapp_search_btn__cQf3T:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n.xapp_form_Button-module_xapp_search_btn__expand__dUwot {\n width: 100%;\n}");var Zo=function(n){var t=n.className,r=n.expand,a=n.onClick;return e.jsx("button",{type:"button",className:"".concat(Jo," ").concat(r?Ko:""," ").concat(t||""),onClick:a,children:n.children})},Xo="xapp_form_SuggestedAction-module_xapp_search_suggested_action__gbLCz";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_SuggestedAction-module_xapp_search_suggested_action__gbLCz {\n display: inline-block;\n border-radius: var(--xapp-form-widget-border-radius-md, 12px);\n border: solid 1px var(--xapp-form-widget-border-color, var(--xapp-form-accent-color, #d3d3df));\n background: white;\n padding: 4px 24px;\n color: black;\n text-decoration: none;\n box-sizing: border-box;\n text-align: center;\n line-height: normal;\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n font-size: 16px;\n cursor: pointer;\n transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out, transform 150ms ease-in-out;\n}\n.xapp_form_SuggestedAction-module_xapp_search_suggested_action__gbLCz:hover {\n background-color: rgba(0, 0, 0, 0.04);\n box-shadow: var(--xapp-form-widget-box-shadow-subtle, 0 2px 8px rgba(0, 0, 0, 0.08));\n}\n.xapp_form_SuggestedAction-module_xapp_search_suggested_action__gbLCz:active {\n transform: scale(0.98);\n}\n.xapp_form_SuggestedAction-module_xapp_search_suggested_action__gbLCz:focus {\n outline: none;\n}\n.xapp_form_SuggestedAction-module_xapp_search_suggested_action__gbLCz:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}");var Qo=function(t){var r=t.action,a=t.className,o=t.onClick,i=n.useCallback(function(){o(r)},[r,o]);return Vo(r)?e.jsx("span",{className:"".concat(Xo," ").concat(a||""),children:e.jsx("a",{href:r.url,children:Pe(r)})}):e.jsxs(Zo,{className:"".concat(Xo," ").concat(a||""),onClick:i,children:[" ",Pe(r)]})},ei={xapp_search_suggested_actions__actions:"xapp_form_SuggestedActions-module_xapp_search_suggested_actions__actions__Apv0-",xapp_search_suggested_actions__item:"xapp_form_SuggestedActions-module_xapp_search_suggested_actions__item__Q7nQb"};De(".xapp_form_SuggestedActions-module_xapp_search_suggested_actions__actions__Apv0- {\n margin-top: 8px;\n margin-bottom: 8px;\n}\n.xapp_form_SuggestedActions-module_xapp_search_suggested_actions__item__Q7nQb {\n margin-right: 16px;\n}");var ni=function(n){var t=n.actions,r=n.onActionClick;return e.jsx("div",{className:ei.xapp_search_suggested_actions,children:e.jsx("div",{className:ei.xapp_search_suggested_actions__actions,children:t.map(function(n,t){return e.jsx(Qo,{action:n,className:ei.xapp_search_suggested_actions__item,onClick:r},t)})})})},ti={xapp_search_response_part:"xapp_form_SearchResponsePart-module_xapp_search_response_part__sF6gs",noHeaderForm:"xapp_form_SearchResponsePart-module_noHeaderForm__HdlyL"};De(".xapp_form_SearchResponsePart-module_xapp_search_response_part__sF6gs {\n margin-bottom: 12px;\n margin-top: 86px;\n border-radius: 8px;\n}\n.xapp_form_SearchResponsePart-module_xapp_search_response_part__sF6gs.xapp_form_SearchResponsePart-module_noHeaderForm__HdlyL {\n margin-top: 12px;\n}\n.xapp_form_SearchResponsePart-module_xapp_search_response_part__sF6gs:has([data-xapp-header-suppressed]) {\n margin-top: 12px;\n}");var ri=function(n){var t=n.extraClass,r=t?ti[t]||t:"";return e.jsx("div",{className:"".concat(ti.xapp_search_response_part," ").concat(r),children:n.children})},ai="xapp_form_FormResponse-module_xapp_search_response__r2YN1";De(".xapp_form_FormResponse-module_xapp_search_response__r2YN1 {\n padding: 0 10px;\n overflow: auto;\n}");var oi=function(n){var t=n.response,r=n.className,a=n.onActionClick,o=n.onActionResponse,i=n.onAudioChange,p=n.loading,s=n.onTrackNextStep,d=n.onTrackPreviousStep,l=n.onTrackSubmit,c=n.onTrackSubmitFailure,u=n.currentStepDataRef,m=n.initialStep,_=n.preselectFirstAvailableDate,f=n.onTrackInitialStep,x=n.onFormNext,h=n.stepUpdate,g=n.onTrackHandoffRendered,v=n.onTrackHandoffNoRender,b=n.onTrackHandoffScheduled,y=n.onTrackHandoffError,w=t.outputSpeech,F=t.displays,k="object"==typeof w?w.suggestions:void 0;return e.jsxs("div",{className:"".concat(ai," ").concat(r||""),children:[!!w&&e.jsx(ri,{children:e.jsx(an,{children:e.jsx(qo,{outputSpeech:w,onAudioChange:i})})}),!!(null==k?void 0:k.length)&&(null==k?void 0:k.length)>0&&e.jsx(ni,{actions:k,onActionClick:a}),!!(null==F?void 0:F.length)&&(null==F?void 0:F.length)>0&&F.map(function(n,t){var r=be(n)&&(!n.header||0===n.header.length);return e.jsx(ri,{extraClass:r?"noHeaderForm":"",children:e.jsx(Uo,{display:n,onActionResponse:o,loading:p,onTrackNextStep:s,onTrackPreviousStep:d,onTrackSubmit:l,onTrackSubmitFailure:c,currentStepDataRef:u,initialStep:m,preselectFirstAvailableDate:_,onTrackInitialStep:f,onFormNext:x,stepUpdate:h,onTrackHandoffRendered:g,onTrackHandoffNoRender:v,onTrackHandoffScheduled:b,onTrackHandoffError:y})},t)})]})},ii=["pointerdown","keydown","scroll","touchstart"],pi=function(){function e(e,n,t){this.api=e,this.sessionId=n,this.formId=t}return e.forVisit=function(n,t){return new e(n,n.visitSession().sessionId,t)},e.prototype.trackFormOpen=function(e){return r(this,void 0,void 0,function(){var n,t,r;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.buildMetadata({isOpen:!0}),this.watchForFirstInteraction(),t={eventType:"form_open",metadata:n,data:e},[4,this.sendEvent(t)];case 1:return a.sent(),xe("[EventTracking] form_open event tracked: ".concat(e.formName)),[3,3];case 2:return r=a.sent(),he("[EventTracking] Failed to track form_open event: ".concat(r)),[3,3];case 3:return[2]}})})},e.prototype.trackEngaged=function(e){return r(this,void 0,void 0,function(){var n,t,r;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.buildMetadata(),t={eventType:"engaged",metadata:n,data:e},[4,this.sendEvent(t)];case 1:return a.sent(),xe("[EventTracking] engaged event tracked: ".concat(e.formName," (").concat(e.trigger,")")),[3,3];case 2:return r=a.sent(),he("[EventTracking] Failed to track engaged event: ".concat(r)),[3,3];case 3:return[2]}})})},e.prototype.trackNextStep=function(e){return r(this,void 0,void 0,function(){var n,t,r;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.buildMetadata(),t={eventType:"next_step",metadata:n,data:e},[4,this.sendEvent(t)];case 1:return a.sent(),xe("[EventTracking] next_step event tracked: ".concat(e.completedStepName)),[3,3];case 2:return r=a.sent(),he("[EventTracking] Failed to track next_step event: ".concat(r)),[3,3];case 3:return[2]}})})},e.prototype.trackPreviousStep=function(e){return r(this,void 0,void 0,function(){var n,t,r;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.buildMetadata(),t={eventType:"previous_step",metadata:n,data:e},[4,this.sendEvent(t)];case 1:return a.sent(),xe("[EventTracking] previous_step event tracked: ".concat(e.fromStepName," -> ").concat(e.toStepName)),[3,3];case 2:return r=a.sent(),he("[EventTracking] Failed to track previous_step event: ".concat(r)),[3,3];case 3:return[2]}})})},e.prototype.trackStepChange=function(e){return r(this,void 0,void 0,function(){var n,t,r;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.buildMetadata(),t={eventType:"step_change",metadata:n,data:e},[4,this.sendEvent(t)];case 1:return a.sent(),xe("[EventTracking] step_change event tracked: ".concat(e.fromStepName," -> ").concat(e.toStepName," (").concat(e.direction,")")),[3,3];case 2:return r=a.sent(),he("[EventTracking] Failed to track step_change event: ".concat(r)),[3,3];case 3:return[2]}})})},e.prototype.trackSubmit=function(e){return r(this,void 0,void 0,function(){var n,t,r;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.buildMetadata(),t={eventType:"submit",metadata:n,data:e},[4,this.sendEvent(t)];case 1:return a.sent(),xe("[EventTracking] submit event tracked: ".concat(e.finalStepName)),[3,3];case 2:return r=a.sent(),he("[EventTracking] Failed to track submit event: ".concat(r)),[3,3];case 3:return[2]}})})},e.prototype.trackSubmitFailure=function(e){return r(this,void 0,void 0,function(){var n,t,r;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.buildMetadata(),t={eventType:"submit_failure",metadata:n,data:e},[4,this.sendEvent(t)];case 1:return a.sent(),xe("[EventTracking] submit_failure event tracked: ".concat(e.finalStepName)),[3,3];case 2:return r=a.sent(),he("[EventTracking] Failed to track submit_failure event: ".concat(r)),[3,3];case 3:return[2]}})})},e.prototype.trackClose=function(e){return r(this,void 0,void 0,function(){var n,t,r;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.buildMetadata(),t={eventType:"close",metadata:n,data:e},[4,this.sendEvent(t)];case 1:return a.sent(),xe("[EventTracking] close event tracked: ".concat(e.lastStepName)),[3,3];case 2:return r=a.sent(),he("[EventTracking] Failed to track close event: ".concat(r)),[3,3];case 3:return[2]}})})},e.prototype.trackPartialData=function(e){return r(this,void 0,void 0,function(){var n,t,r;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.buildMetadata(),t={eventType:"partial_data",metadata:n,data:e},[4,this.sendEvent(t)];case 1:return a.sent(),xe("[EventTracking] partial_data event tracked: ".concat(e.lastStepName," (").concat(e.abandonmentReason,")")),[3,3];case 2:return r=a.sent(),he("[EventTracking] Failed to track partial_data event: ".concat(r)),[3,3];case 3:return[2]}})})},e.prototype.trackHandoffRendered=function(e){return r(this,void 0,void 0,function(){var n,t,r;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.buildMetadata(),t={eventType:"handoff_rendered",metadata:n,data:e},[4,this.sendEvent(t)];case 1:return a.sent(),xe("[EventTracking] handoff_rendered event tracked: ".concat(e.stepName," (").concat(e.provider,")")),[3,3];case 2:return r=a.sent(),he("[EventTracking] Failed to track handoff_rendered event: ".concat(r)),[3,3];case 3:return[2]}})})},e.prototype.trackHandoffNoRender=function(e){return r(this,void 0,void 0,function(){var n,t,r;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.buildMetadata(),t={eventType:"handoff_no_render",metadata:n,data:e},[4,this.sendEvent(t)];case 1:return a.sent(),xe("[EventTracking] handoff_no_render event tracked: ".concat(e.stepName," (").concat(e.provider,")")),[3,3];case 2:return r=a.sent(),he("[EventTracking] Failed to track handoff_no_render event: ".concat(r)),[3,3];case 3:return[2]}})})},e.prototype.trackHandoffScheduled=function(e){return r(this,void 0,void 0,function(){var n,t,r;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.buildMetadata(),t={eventType:"handoff_scheduled",metadata:n,data:e},[4,this.sendEvent(t)];case 1:return a.sent(),xe("[EventTracking] handoff_scheduled event tracked: ".concat(e.stepName," (").concat(e.provider,")")),[3,3];case 2:return r=a.sent(),he("[EventTracking] Failed to track handoff_scheduled event: ".concat(r)),[3,3];case 3:return[2]}})})},e.prototype.trackHandoffError=function(e){return r(this,void 0,void 0,function(){var n,t,r;return a(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),n=this.buildMetadata(),t={eventType:"handoff_error",metadata:n,data:e},[4,this.sendEvent(t)];case 1:return a.sent(),xe("[EventTracking] handoff_error event tracked: ".concat(e.stepName," (").concat(e.provider,")")),[3,3];case 2:return r=a.sent(),he("[EventTracking] Failed to track handoff_error event: ".concat(r)),[3,3];case 3:return[2]}})})},e.prototype.trackLoad=function(e){try{var n=this.buildMetadata();delete n.currentUrl;var r={eventType:"load",metadata:t(t({},n),e),data:{}};return this.api.trackEventBeacon(r,"form")}catch(e){return he("[EventTracking] Failed to queue load event: ".concat(e)),!1}},e.prototype.trackPartialDataBeacon=function(e){try{var n={eventType:"partial_data",metadata:this.buildMetadata(),data:e};return this.api.trackEventBeacon(n)}catch(e){return he("[EventTracking] Failed to queue partial_data beacon: ".concat(e)),!1}},e.prototype.buildMetadata=function(e){var n=(void 0===e?{}:e).isOpen,t=void 0!==n&&n,r=new Date,a=Date.now();t&&void 0===this.openedAt&&(this.openedAt=a);var o={timestamp:r.toISOString(),sessionId:this.sessionId||"unknown",formId:this.formId||"unknown",userAgent:navigator.userAgent},i=Q();i&&(o.internal=i),void 0!==this.openedAt&&(o.msOnPage=String(Math.max(0,a-this.openedAt)),void 0!==this.firstInteractionAt&&(o.msToFirstInteraction=String(Math.max(0,this.firstInteractionAt-this.openedAt))));try{o.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}try{o.language=navigator.language,o.screenWidth=String(window.screen.width),o.screenHeight=String(window.screen.height),o.viewportWidth=String(window.innerWidth),o.viewportHeight=String(window.innerHeight)}catch(e){}var p=ie(),s=p.visitorId,d=p.visitId;o.userId=s,o.visitorId=s,o.visitId=d;try{var l=new URL(window.location.href);(null==l?void 0:l.host.toLowerCase().startsWith("localhost"))||(o.currentUrl=window.location.href)}catch(e){}try{var c=ne(document.referrer);c&&(o.referrer=c)}catch(e){}try{var u=this.getTrackingParameters();Object.assign(o,u)}catch(e){}return o},e.prototype.dispose=function(){var e;null===(e=this.stopWatchingForInteraction)||void 0===e||e.call(this)},e.prototype.adoptVisitFrom=function(e){var n;e&&e!==this&&void 0!==e.openedAt&&(this.openedAt=e.openedAt,this.firstInteractionAt=e.firstInteractionAt,null===(n=e.stopWatchingForInteraction)||void 0===n||n.call(e),void 0===this.firstInteractionAt&&this.watchForFirstInteraction())},e.prototype.watchForFirstInteraction=function(){var e=this;if(!this.stopWatchingForInteraction&&void 0===this.firstInteractionAt&&"undefined"!=typeof document)try{var n=function(n){var t;n.isTrusted&&(void 0===e.firstInteractionAt&&(e.firstInteractionAt=Date.now()),null===(t=e.stopWatchingForInteraction)||void 0===t||t.call(e))};this.stopWatchingForInteraction=function(){for(var t=0,r=ii;t<r.length;t++){var a=r[t];document.removeEventListener(a,n,!0)}e.stopWatchingForInteraction=void 0};for(var t=0,r=ii;t<r.length;t++){var a=r[t];document.addEventListener(a,n,{capture:!0,passive:!0})}}catch(e){}},e.prototype.getTrackingParameters=function(){return me(this.api.trackingScope)},e.prototype.sendEvent=function(e){return r(this,void 0,void 0,function(){var n;return a(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.api.trackEvent(e.eventType,e)];case 1:return t.sent(),[3,3];case 2:return n=t.sent(),he("[EventTracking] API call failed: ".concat(n)),[3,3];case 3:return[2]}})})},e}(),si="xapp_form_FormWidget-module_loading__aAJ-B",di="xapp_form_FormWidget-module_xapp_form_widget__V-G-H",li="xapp_form_FormWidget-module_xapp_form_widget__content__a9NXC",ci="xapp_form_FormWidget-module_xapp_form_widget__response__X8Hbz",ui="xapp_form_FormWidget-module_xapp_form_widget__spinner__FBxso",mi="xapp_form_FormWidget-module_xapp_form_widget__close__0lp0O",_i="xapp_form_FormWidget-module_embedded__UB1Gi";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_FormWidget-module_loading__aAJ-B {\n background-color: rgba(0, 0, 0, 0) !important;\n border: 0px !important;\n}\n\n.xapp_form_FormWidget-module_xapp_form_widget__V-G-H {\n display: flex;\n flex-direction: column;\n border: solid 1px var(--xapp-form-widget-border-color, #d3d3df);\n background: var(--xapp-form-widget-background-color, #f3f8fb);\n border-radius: var(--xapp-form-widget-border-radius-xl, 20px);\n overflow: hidden;\n max-width: 740px;\n max-height: 100%;\n box-shadow: var(--xapp-form-widget-box-shadow, 0 4px 24px rgba(0, 0, 0, 0.12));\n box-sizing: border-box;\n position: relative;\n}\n.xapp_form_FormWidget-module_xapp_form_widget__V-G-H:has([data-xapp-bare-handoff]) {\n border: 0;\n border-radius: 0;\n box-shadow: none;\n background: transparent;\n}\n.xapp_form_FormWidget-module_xapp_form_widget__V-G-H:has([data-xapp-bare-handoff]) .xapp_form_FormWidget-module_xapp_form_widget__content__a9NXC {\n border-top: 0;\n}\n.xapp_form_FormWidget-module_xapp_form_widget__content__a9NXC {\n display: flex;\n flex-direction: column;\n border-top: solid 1px var(--xapp-form-widget-border-color, #d3d3df);\n max-height: 100%;\n min-height: 128px;\n overflow: hidden;\n width: 100%;\n}\n.xapp_form_FormWidget-module_xapp_form_widget__response__X8Hbz {\n padding-top: 1em;\n}\n.xapp_form_FormWidget-module_xapp_form_widget__spinner__FBxso {\n width: 100px;\n height: 100px;\n margin: auto;\n padding: 20px;\n}\n.xapp_form_FormWidget-module_xapp_form_widget__close__0lp0O {\n position: absolute;\n top: 8px;\n right: 8px;\n width: 28px;\n height: 28px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #666;\n cursor: pointer;\n font-weight: bold;\n border: none;\n background: rgba(255, 255, 255, 0.9);\n z-index: 1000;\n transition: background-color 200ms ease-in-out, transform 150ms ease-in-out, box-shadow 200ms ease-in-out;\n box-shadow: var(--xapp-form-widget-box-shadow-subtle, 0 2px 8px rgba(0, 0, 0, 0.08));\n}\n.xapp_form_FormWidget-module_xapp_form_widget__close__0lp0O::before {\n content: \"\";\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n width: 44px;\n height: 44px;\n}\n.xapp_form_FormWidget-module_xapp_form_widget__close__0lp0O:hover {\n background-color: rgb(255, 255, 255);\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);\n transform: scale(1.05);\n}\n.xapp_form_FormWidget-module_xapp_form_widget__close__0lp0O:active {\n transform: scale(0.95);\n}\n.xapp_form_FormWidget-module_xapp_form_widget__close__0lp0O:focus {\n outline: none;\n}\n.xapp_form_FormWidget-module_xapp_form_widget__close__0lp0O:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n\n/* A width per breakpoint, capped at the container.\n *\n * These used to set `width` in pixels, derived from the VIEWPORT, which says\n * nothing about the container the widget was actually put in. Anywhere\n * narrower -- get.xapp.ai embeds the form in a ~548px frame -- it rendered at\n * 740px and spilled out, clipped and silent. #1687.\n *\n * #1690 answered that with `width: 100%` and a `max-width` cap, which broke the\n * floating popup instead: its body is a centred flex item that shrinks to fit,\n * so 100% of it is the form's own content width, and a step of stacked fields\n * rendered as a ~175-260px sliver in the middle of a desktop page.\n *\n * So the width is definite again and the container caps it: `max-width: 100%`\n * lets it shrink inside a narrower frame, and a shrink-to-fit parent sizes to\n * the definite width rather than to the content. Its own date/time layout is\n * flex-wrap: wrap, so it stacks unaided once two columns no longer fit.\n */\n@media (min-width: 1201px) {\n .xapp_form_FormWidget-module_xapp_form_widget__V-G-H {\n width: 740px;\n max-width: 100%;\n }\n}\n@media (min-width: 992px) and (max-width: 1200px) {\n .xapp_form_FormWidget-module_xapp_form_widget__V-G-H {\n width: 600px;\n max-width: 100%;\n }\n}\n@media (min-width: 641px) and (max-width: 991px) {\n .xapp_form_FormWidget-module_xapp_form_widget__V-G-H {\n width: 500px;\n max-width: 100%;\n }\n}\n/* Mobile */\n@media (max-width: 640px), (max-height: 480px) and (pointer: coarse) {\n .xapp_form_FormWidget-module_xapp_form_widget__V-G-H {\n width: 100%;\n max-width: none;\n height: 100%;\n border-radius: 0;\n border: 0;\n }\n .xapp_form_FormWidget-module_xapp_form_widget__content__a9NXC {\n width: 100%;\n border-top: 0;\n flex: 1 1 auto;\n min-height: 0;\n overflow-y: auto;\n }\n}\n.xapp_form_FormWidget-module_embedded__UB1Gi {\n width: 100%;\n height: 100%;\n max-width: none;\n border: none;\n border-radius: 0;\n box-shadow: none;\n}");var fi=[1e3,2e3];var xi=function(n){var t=n.config;return e.jsx(Le.Provider,{value:t,children:e.jsx(hi,{docked:n.docked,embedded:n.embedded,initialStep:n.initialStep,preselectFirstAvailableDate:n.preselectFirstAvailableDate,openedByTrigger:n.openedByTrigger,formPlacement:n.formPlacement,preselectChipLabel:n.preselectChipLabel,onPreselectChipUsed:n.onPreselectChipUsed,onSubmit:n.onSubmit,response:n.response})})},hi=function(o){var i,p=o.docked,s=o.embedded,d=o.initialStep,l=o.preselectFirstAvailableDate,c=o.openedByTrigger,u=o.formPlacement,m=o.preselectChipLabel,_=o.onPreselectChipUsed,f=o.onSubmit,x=Te(),h=x[0],g=x[1],v=He(),b=v.loading,y=v.run,w=h.query,F=h.sendRequest,k=h.active,S=n.useState(o.response),T=S[0],C=S[1],D=n.useState(void 0),N=D[0],I=D[1],R=n.useState(!1),A=R[0],j=R[1],M=n.useState(0),E=M[0],O=M[1],z=n.useContext(Le),P=We(z.api.demoMode||null===(i=z.trustedForm)||void 0===i?void 0:i.scriptUrl),L=n.useMemo(function(){return ze.getApi({key:z.api.key,url:z.api.url,intentId:z.intentId,demoMode:z.api.demoMode})},[z]),H=n.useRef(null),U=n.useRef({}),B=n.useRef({}),W=n.useRef(0),$=n.useRef(!1),Y=n.useRef(!1),q=n.useRef(void 0),G=n.useCallback(function(){var e=q.current;if(e)return e;var n=oe();return q.current=n,n},[]),V=n.useRef(new Set),J=n.useRef(null),Q=n.useRef("unknown"),ne=n.useRef(!1),te=n.useRef(!1),re=n.useRef(!1),ae=n.useCallback(function(e){var n,t,r;H.current&&!re.current&&(re.current=!0,H.current.trackEngaged({formName:Q.current,trigger:e,firstStepName:null===(r=null===(t=null===(n=J.current)||void 0===n?void 0:n.steps)||void 0===t?void 0:t[0])||void 0===r?void 0:r.name}),z.api.demoMode||function(e,n){ee(e,"form_start",{form_placement:n})}({measurementId:z.ga4MeasurementId,locationId:z.appId,locationName:z.ga4LocationName},u))},[z.api.demoMode,z.ga4MeasurementId,z.appId,z.ga4LocationName,u]),ie=n.useCallback(function(){C(void 0),g({type:"new-search"}),g({type:"set-modal-state",active:!1,minimized:!0,sendRequest:!1})},[g]),pe=n.useCallback(function(){var e,n,r,a,o;if(H.current&&!$.current&&!ne.current){var i=J.current;if(i){var p=(null===(e=i.steps)||void 0===e?void 0:e.length)||1,s=W.current,d=t(t({},U.current),B.current),l=Object.keys(d).length>0;H.current.trackClose({lastStepName:(null===(r=null===(n=i.steps)||void 0===n?void 0:n[s])||void 0===r?void 0:r.name)||"unknown",lastStepIndex:s,totalStepsCompleted:s,totalSteps:p,formData:l?d:void 0}),H.current.trackPartialData({lastStepName:(null===(o=null===(a=i.steps)||void 0===a?void 0:a[s])||void 0===o?void 0:o.name)||"unknown",lastStepIndex:s,totalStepsCompleted:s,totalSteps:p,partialData:l?d:void 0,abandonmentReason:"widget_close"}),ne.current=!0}}C(void 0),g({type:"new-search"}),g({type:"set-modal-state",active:!1,minimized:!1,sendRequest:!1}),L.channelActionRequest({data:{result:{},step:"",form:""}},"FORM_CLOSE").then(function(e){xe("ACTION Request (FORM_CLOSE). Data: Response: ".concat(JSON.stringify(e))),O(0)})},[L,g]);n.useEffect(function(){return function(){var e;null===(e=H.current)||void 0===e||e.dispose()}},[]),n.useEffect(function(){var e=_e(window.location.href,{persistToLocalStorage:!0,persistenceDays:30,preferUrlParameters:!0,scope:L.trackingScope});"development"===process.env.NODE_ENV&&Object.keys(e).length>0&&xe("[FormWidget] Captured tracking parameters:",e)},[L]),n.useEffect(function(){var e=function(){var e,n,r,a=t(t({},U.current),B.current);if(H.current&&!$.current&&!ne.current){var o=J.current;if(o){var i=(null===(e=o.steps)||void 0===e?void 0:e.length)||1,p=W.current;H.current.trackPartialDataBeacon({lastStepName:(null===(r=null===(n=o.steps)||void 0===n?void 0:n[p])||void 0===r?void 0:r.name)||"unknown",lastStepIndex:p,partialData:a,totalStepsCompleted:p,totalSteps:i,completionPercentage:Math.round(p/i*100),abandonmentReason:"close_tab"}),ne.current=!0}}};return window.addEventListener("beforeunload",e),function(){return window.removeEventListener("beforeunload",e)}},[]),n.useEffect(function(){var e=null,n=function(){var e,n,r,a=t(t({},U.current),B.current);if(H.current&&!$.current&&!ne.current){var o=J.current;if(o){var i=(null===(e=o.steps)||void 0===e?void 0:e.length)||1,p=W.current;H.current.trackPartialDataBeacon({lastStepName:(null===(r=null===(n=o.steps)||void 0===n?void 0:n[p])||void 0===r?void 0:r.name)||"unknown",lastStepIndex:p,partialData:a,totalStepsCompleted:p,totalSteps:i,completionPercentage:Math.round(p/i*100),abandonmentReason:"timeout"}),ne.current=!0}}},r=function(){if(document.hidden){var t=(r=new Date,(a=new Date(r)).setHours(24,0,0,0),a.getTime()-r.getTime());e=setTimeout(n,t)}else e&&(clearTimeout(e),e=null);var r,a};return document.addEventListener("visibilitychange",r),function(){document.removeEventListener("visibilitychange",r),e&&clearTimeout(e)}},[]);var se=n.useCallback(function(e){var n;(null===(n=null==e?void 0:e.context)||void 0===n?void 0:n.active)&&e.context.active.length>0&&g({type:"set-context",context:e.context.active[0].parameters||{}})},[g]),de=n.useCallback(function(e,n){g({query:e.query,intentId:e.intentId,type:"set-query"}),y(function(){return L.intentRequest(e).then(function(t){var r,a,o,i;C(t),g({type:"set-response",response:t,query:e.query,intentId:e.intentId}),se(t);var p=null===(r=null==t?void 0:t.displays)||void 0===r?void 0:r.find(function(e){var n=e;return"FORM"===(null==n?void 0:n.type)});if(p){J.current=p;var s=L.visitSession().sessionId,d=p.name||"unknown";Q.current=d;var l=H.current;if(H.current=new pi(L,s,d),H.current.adoptVisitFrom(l),!te.current){te.current=!0;var c=(null===(a=p.steps)||void 0===a?void 0:a.length)||1,u=null===(i=null===(o=p.steps)||void 0===o?void 0:o[0])||void 0===i?void 0:i.name;H.current.trackFormOpen({formName:d,totalSteps:c,firstStepName:u,lastStepIndex:0})}(null==n?void 0:n.engagementTrigger)&&ae(n.engagementTrigger)}})})},[L,g,y,se,ae]),le=n.useCallback(function(e,n){var t=function(){return L.channelActionRequest(e,n).then(function(t){if(xe("ACTION Request (".concat(n,"). Data: ").concat(JSON.stringify(e)," Response: ").concat(JSON.stringify(t))),function(e){return!!e&&!0===e[Me]}(t)&&he("ACTION Request (".concat(n,") was suppressed: this session already sent a final submit.")),(t.outputSpeech||t.displays)&&g({type:"set-response",response:t,query:""}),"FORM_SUBMIT"===n&&t.displays){var r=t.displays.find(function(e){return"FORM_STEP_UPDATE"===(null==e?void 0:e.type)});r&&I(r)}se(t),e.autoClose?O(1):e.autoMinimize?O(2):O(0)})};return"FORM_SUBMIT"===n?y(function(){return function(e,n){return r(this,void 0,void 0,function(){var t,r,o;return a(this,function(a){switch(a.label){case 0:r=0,a.label=1;case 1:return r<=n.length?r>0?[4,(i=n[r-1],new Promise(function(e){setTimeout(e,i)}))]:[3,3]:[3,7];case 2:a.sent(),a.label=3;case 3:return a.trys.push([3,5,,6]),[4,e()];case 4:return[2,a.sent()];case 5:return o=a.sent(),t=o,he("FORM_SUBMIT attempt ".concat(r+1," of ").concat(n.length+1," failed: ").concat(o)),[3,6];case 6:return r++,[3,1];case 7:throw t}var i})})}(t,fi)}):y(t).catch(function(e){he("ACTION Request (".concat(n,") failed: ").concat(e))})},[L,g,y,se]);n.useEffect(function(){if(p&&!Y.current||F&&k&&(z.autoGreeting||z.intentId)){p&&(Y.current=!0),L.resetSession();var e=p||c?void 0:"manual_open";de({query:z.autoGreeting,intentId:z.intentId},{engagementTrigger:e}),g({type:"set-modal-state",active:!0,minimized:!1,sendRequest:!1})}},[p,c,F,k,de,g,z.autoGreeting,L,z.intentId]),n.useEffect(function(){A||(1===E?(C(void 0),g({type:"new-search"}),g({type:"set-modal-state",active:!1,minimized:!1,sendRequest:!1}),O(0)):2===E&&(C(void 0),g({type:"new-search"}),g({type:"set-modal-state",active:!1,minimized:!0,sendRequest:!1}),O(0)))},[A,g,E]);var ce=n.useCallback(function(e){var n=Pe(e);de({query:n},{engagementTrigger:"chip_click"})},[de]);n.useEffect(function(){if(m&&T){var e=T.outputSpeech,n="object"==typeof e&&null!==e?e.suggestions:void 0;if(n&&0!==n.length){var t=n.find(function(e){return Pe(e).toLowerCase()===m.toLowerCase()});t&&(xe("Auto-selecting chip: ".concat(Pe(t))),setTimeout(function(){ce(t)},100)),_&&_()}}},[T,m,ce,_]);var ue=n.useCallback(function(e,n){if(n||(n=e.action),e.timezoneOffset=(new Date).getTimezoneOffset(),"FORM_SUBMIT"===n){var r=P();r&&e.result&&(e.result=t(t({},e.result),r));var a=G();z.api.demoMode||V.current.has(a)||!function(e,n,r,a,o){if(!X(e)||K())return!1;var i=e.trim();return!!Z(i)&&"gtag"===ee(t(t({},o),{measurementId:i}),"generate_lead",{event_id:n,lead_source:r,form_placement:a})}(z.ga4MeasurementId,a,"form-widget",u,{locationId:z.appId,locationName:z.ga4LocationName})||V.current.add(a),e.extras=t(t(t(t(t({},e.extras),{eventId:a}),(o=$e("_fbp"),i=$e("_fbc"),t(t({},o?{fbp:o}:{}),i?{fbc:i}:{}))),function(e,n){if(K())return{ga4OptOut:!0};var t={},r=function(e){var n=(null==e?void 0:e.split("."))||[];if(!(n.length<4)){var t=n.slice(-2).join(".");return/^\d+\.\d+$/.test(t)?t:void 0}}($e("_ga"));if(r&&(t.gaClientId=r),X(e)){var a=e.trim().replace(/^G-/i,""),o=function(e){var n=(null==e?void 0:e.split("."))||[];if(!(n.length<3)){var t;if("GS2"===n[0]){var r=n[2].split("$").find(function(e){return e.startsWith("s")});t=null==r?void 0:r.slice(1)}else t=n[2];return t&&/^\d+$/.test(t)?t:void 0}}($e("_ga_".concat(a)));o&&(t.gaSessionId=o)}return n&&(t.ga4ClientFired=!0),t}(z.ga4MeasurementId,V.current.has(a))),u?{formPlacement:u}:{})}var o,i;return le(e,n)},[le,P,G,z.api.demoMode,z.ga4MeasurementId,z.appId,z.ga4LocationName,u]),me=n.useCallback(function(e){return L.channelActionRequest(e,"FORM_NEXT").then(function(e){return se(e),e})},[L,se]),fe=function(e){j(e)},ge=n.useCallback(function(e){W.current=e},[]),ve=n.useCallback(function(e,n,r,a){var o,i,p;if(U.current=t(t({},U.current),r),B.current={},W.current=n+1,ae("step_transition"),H.current){var s=J.current,d=null===(i=null===(o=null==s?void 0:s.steps)||void 0===o?void 0:o[n+1])||void 0===i?void 0:i.name,l=(null===(p=null==s?void 0:s.steps)||void 0===p?void 0:p.length)||1;H.current.trackNextStep({completedStepName:e,completedStepIndex:n,nextStepName:d,stepData:r,isLastStep:a}),d&&H.current.trackStepChange({fromStepName:e,fromStepIndex:n,toStepName:d,toStepIndex:n+1,direction:"forward",lastStepIndex:n+1,totalSteps:l})}},[ae]),be=n.useCallback(function(e,n,t,r){var a,o;if(B.current={},W.current=r,H.current){var i=(null===(o=null===(a=J.current)||void 0===a?void 0:a.steps)||void 0===o?void 0:o.length)||1;H.current.trackPreviousStep({fromStepName:e,fromStepIndex:n,toStepName:t,toStepIndex:r,lastStepIndex:r,totalSteps:i}),H.current.trackStepChange({fromStepName:e,fromStepIndex:n,toStepName:t,toStepIndex:r,direction:"backward",lastStepIndex:r,totalSteps:i})}},[]),ye=n.useCallback(function(e,n,r,a){if(!$.current){$.current=!0;var o=P(),i=o?t(t({},r),o):r;if(U.current=i,H.current&&H.current.trackSubmit({finalStepName:e,finalStepIndex:n,completedData:i,totalSteps:a}),f&&!z.api.demoMode)try{f(G())}catch(e){he("[FormWidget] onSubmit callback threw:",e)}}},[P,f,G,z.api.demoMode]),we=n.useCallback(function(e,n,t,r){var a;null===(a=H.current)||void 0===a||a.trackSubmitFailure({finalStepName:e,finalStepIndex:n,totalSteps:t,reason:r})},[]),Fe=n.useCallback(function(e,n){var t;null===(t=H.current)||void 0===t||t.trackHandoffRendered({stepName:e,provider:n})},[]),ke=n.useCallback(function(e,n){var t;null===(t=H.current)||void 0===t||t.trackHandoffNoRender({stepName:e,provider:n})},[]),Se=n.useCallback(function(e,n,t){var r;null===(r=H.current)||void 0===r||r.trackHandoffScheduled({stepName:e,provider:n,payload:t})},[]),Ce=n.useCallback(function(e,n){var t;null===(t=H.current)||void 0===t||t.trackHandoffError({stepName:e,provider:n})},[]),De=!!w||!!T;return p?e.jsx("div",{className:"".concat(di," ").concat(s?_i:""," ").concat(b?si:""),children:e.jsx("div",{className:"".concat(li," ").concat(b?si:""),children:T?e.jsx(oi,{response:T,className:ci,onActionClick:ce,onActionResponse:ue,onAudioChange:fe,loading:b,onTrackNextStep:ve,onTrackPreviousStep:be,onTrackSubmit:ye,onTrackSubmitFailure:we,currentStepDataRef:B,initialStep:d,preselectFirstAvailableDate:l,onTrackInitialStep:ge,onFormNext:me,stepUpdate:N,onTrackHandoffRendered:Fe,onTrackHandoffNoRender:ke,onTrackHandoffScheduled:Se,onTrackHandoffError:Ce}):e.jsx("div",{className:ui,children:e.jsx(Ge,{})})})}):e.jsxs("div",{className:"".concat(di," ").concat(s?_i:""," ").concat(b&&!T?si:""),children:[De&&e.jsxs("div",{className:"".concat(li," ").concat(b&&!T?si:""),children:[!T&&b&&e.jsx("div",{className:ui,children:e.jsx(Ge,{})}),T&&e.jsx(oi,{response:T,className:ci,onActionClick:ce,onActionResponse:ue,onAudioChange:fe,loading:b,onTrackNextStep:ve,onTrackPreviousStep:be,onTrackSubmit:ye,onTrackSubmitFailure:we,currentStepDataRef:B,initialStep:d,preselectFirstAvailableDate:l,onTrackInitialStep:ge,onFormNext:me,stepUpdate:N,onTrackHandoffRendered:Fe,onTrackHandoffNoRender:ke,onTrackHandoffScheduled:Se,onTrackHandoffError:Ce})]}),T&&!!ie&&e.jsx("div",{className:mi,onClick:pe,children:"✕"})]})},gi=function(r){return n.useContext(ke)===Fe?e.jsx(Se,{children:e.jsx(xi,t({},r))}):e.jsx(xi,t({},r))},vi=function(e){var t,r=e.theme;n.useEffect(function(){var e,n=null===(e=null==r?void 0:r.font)||void 0===e?void 0:e.link;return n&&function(e){try{var n=new URL(e);if("https:"!==n.protocol)return void console.warn("Only HTTPS font URLs are allowed:",e);["fonts.googleapis.com","fonts.gstatic.com","use.typekit.net","use.fontawesome.com","cdn.jsdelivr.net","unpkg.com","cdnjs.cloudflare.com"].includes(n.hostname)||console.warn("Font URL from untrusted domain:",n.hostname),"fonts.googleapis.com"!==n.hostname||n.searchParams.has("display")||(n.searchParams.set("display","swap"),e=n.toString())}catch(n){return void console.error("Invalid font URL:",e,n)}var t="xapp-form-widget-font",r=document.getElementById(t);r&&r.remove();var a=document.createElement("link");a.id=t,a.rel="stylesheet",a.href=e,a.crossOrigin="anonymous",document.head.appendChild(a)}(n),function(){if(n){var e=document.getElementById("xapp-form-widget-font");e&&e.getAttribute("href")===n&&e.remove()}}},[null===(t=null==r?void 0:r.font)||void 0===t?void 0:t.link]);var o=JSON.stringify(function(e){var n=[],t=function(e){var n=e||{};return wi("--xapp-form-widget-",Fi(ki("background-color",null==n?void 0:n.backgroundColor),ki("header-background-color",null==n?void 0:n.headerBackgroundColor),ki("header-text-color",null==n?void 0:n.headerTextColor),ki("primary-button-color",null==n?void 0:n.primaryButtonColor),ki("primary-button-text-color",null==n?void 0:n.primaryButtonTextColor),ki("secondary-button-color",null==n?void 0:n.secondaryButtonColor),ki("secondary-button-text-color",null==n?void 0:n.secondaryButtonTextColor),ki("border-color",null==n?void 0:n.borderColor),ki("border-radius-md",null==n?void 0:n.borderRadius),ki("border-radius-xl",null==n?void 0:n.borderRadius),wi("font-",Fi(function(e){return a(this,function(n){switch(n.label){case 0:return e?[4,["family",e.fontFamily]]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})}(null==n?void 0:n.font))),wi("text-",Fi(function(e){return a(this,function(n){switch(n.label){case 0:return e?[4,["background-color",e.backgroundColor]]:[3,15];case 1:return n.sent(),[4,["background-color-dark",Si(e.backgroundColor,3)]];case 2:return n.sent(),[4,["color",e.color]];case 3:return n.sent(),[4,["font-size",e.fontSize]];case 4:return n.sent(),[4,["font-family",e.fontFamily]];case 5:return n.sent(),[4,["border-color",e.borderColor]];case 6:return n.sent(),[4,["border-width",e.borderWidth]];case 7:return n.sent(),[4,["border-color-focus",e.borderColorFocus||e.borderColor]];case 8:return n.sent(),[4,["underline-display",e.borderWidth?"none":void 0]];case 9:return n.sent(),[4,["bottom-radius",e.borderWidth?"var(--xapp-form-widget-border-radius-sm, 8px)":void 0]];case 10:return n.sent(),e.borderWidth?[4,["root-background",e.backgroundColor]]:[3,15];case 11:return n.sent(),[4,["root-border","".concat(e.borderWidth," solid ").concat(e.borderColor||"transparent")]];case 12:return n.sent(),[4,["root-radius","var(--xapp-form-widget-border-radius-sm, 8px)"]];case 13:return n.sent(),[4,["input-background","transparent"]];case 14:n.sent(),n.label=15;case 15:return[2]}})}(null==n?void 0:n.text))),wi("back-button-",Fi(function(e){var n,t,r;return a(this,function(a){switch(a.label){case 0:return n="icon"===(null==e?void 0:e.backButtonVariant),t=null==e?void 0:e.backButton,[4,["label-display",n?"none":"inline"]];case 1:return a.sent(),[4,["icon-display",n?"inline-flex":"none"]];case 2:return a.sent(),n?(r=null==t?void 0:t.color,[4,["background","transparent"]]):[3,12];case 3:return a.sent(),[4,["border","".concat((null==t?void 0:t.borderWidth)||"1px"," solid ").concat((null==t?void 0:t.borderColor)||r||"currentColor")]];case 4:return a.sent(),[4,["icon-stroke",null==t?void 0:t.iconStroke]];case 5:return a.sent(),[4,["radius","50%"]];case 6:return a.sent(),[4,["shadow","none"]];case 7:return a.sent(),[4,["size","44px"]];case 8:return a.sent(),[4,["padding","0"]];case 9:return a.sent(),[4,["color",r||"currentColor"]];case 10:return a.sent(),[4,["color-hover",(null==t?void 0:t.colorHover)||r||"currentColor"]];case 11:a.sent(),a.label=12;case 12:return[2]}})}(n))),wi("button-",Fi(function(e){return a(this,function(n){switch(n.label){case 0:return e?[4,["font-size",e.fontSize]]:[3,6];case 1:return n.sent(),[4,["font-weight",e.fontWeight]];case 2:return n.sent(),[4,["padding",e.padding]];case 3:return n.sent(),[4,["radius",e.borderRadius]];case 4:return n.sent(),[4,["shadow",e.boxShadow]];case 5:n.sent(),n.label=6;case 6:return[2]}})}(null==n?void 0:n.button))),wi("step-title-",Fi(function(e){return a(this,function(n){switch(n.label){case 0:return e?[4,["align",e.align]]:[3,5];case 1:return n.sent(),[4,["font-size",e.fontSize]];case 2:return n.sent(),[4,["font-weight",e.fontWeight]];case 3:return n.sent(),[4,["color",e.color]];case 4:n.sent(),n.label=5;case 5:return[2]}})}(null==n?void 0:n.stepTitle))),wi("final-button-",Fi(function(e){return a(this,function(n){switch(n.label){case 0:return"inline"!==(null==e?void 0:e.finalButtonPlacement)?[3,7]:[4,["direction","row-reverse"]];case 1:return n.sent(),[4,["gap","24px"]];case 2:return n.sent(),[4,["nav-flex","0 0 auto"]];case 3:return n.sent(),[4,["nav-align","center"]];case 4:return n.sent(),[4,["container-padding","20px 0"]];case 5:return n.sent(),[4,["nav-padding","20px 0"]];case 6:n.sent(),n.label=7;case 7:return[2]}})}(n))),wi("dropdown-",Fi(function(e){return a(this,function(n){switch(n.label){case 0:return e?[4,["background-color",e.backgroundColor]]:[3,5];case 1:return n.sent(),[4,["color",e.color]];case 2:return n.sent(),[4,["font-size",e.fontSize]];case 3:return n.sent(),[4,["font-family",e.fontFamily]];case 4:n.sent(),n.label=5;case 5:return[2]}})}(null==n?void 0:n.dropdown))),wi("checkbox-",Fi(function(e){return a(this,function(n){switch(n.label){case 0:return e?[4,["background-color",e.backgroundColor]]:[3,5];case 1:return n.sent(),[4,["color",e.color]];case 2:return n.sent(),[4,["font-size",e.fontSize]];case 3:return n.sent(),[4,["font-family",e.fontFamily]];case 4:n.sent(),n.label=5;case 5:return[2]}})}(null==n?void 0:n.checkbox))),wi("chips-",Fi(function(e){return a(this,function(n){switch(n.label){case 0:return e?[4,["background-color",e.backgroundColor]]:[3,8];case 1:return n.sent(),[4,["background-color-selected",e.backgroundColorSelected]];case 2:return n.sent(),[4,["background-color-dark",Si(e.backgroundColor,20)]];case 3:return n.sent(),[4,["color",e.color]];case 4:return n.sent(),[4,["color-selected",e.colorSelected]];case 5:return n.sent(),[4,["font-size",e.fontSize]];case 6:return n.sent(),[4,["font-family",e.fontFamily]];case 7:n.sent(),n.label=8;case 8:return[2]}})}(null==n?void 0:n.chips))),wi("date-",Fi(function(e){return a(this,function(n){switch(n.label){case 0:return e?[4,["background-color",e.backgroundColor]]:[3,6];case 1:return n.sent(),[4,["background-color-selected",e.backgroundColorSelected]];case 2:return n.sent(),[4,["color",e.color]];case 3:return n.sent(),[4,["font-size",e.fontSize]];case 4:return n.sent(),[4,["font-family",e.fontFamily]];case 5:n.sent(),n.label=6;case 6:return[2]}})}(null==n?void 0:n.date))),wi("card-",Fi(function(e){return a(this,function(n){switch(n.label){case 0:return e?[4,["background-color",e.backgroundColor]]:[3,5];case 1:return n.sent(),[4,["color",e.color]];case 2:return n.sent(),[4,["font-size",e.fontSize]];case 3:return n.sent(),[4,["font-family",e.fontFamily]];case 4:n.sent(),n.label=5;case 5:return[2]}})}(null==n?void 0:n.card))),wi("side-button-",Fi(function(e){return a(this,function(n){switch(n.label){case 0:return e?[4,["background-color",e.backgroundColor]]:[3,8];case 1:return n.sent(),[4,["background-color-dark",Si(e.backgroundColor,10)]];case 2:return n.sent(),[4,["color",e.color]];case 3:return n.sent(),[4,["font-size",e.fontSize]];case 4:return n.sent(),[4,["font-family",e.fontFamily]];case 5:return n.sent(),[4,["top",e.top]];case 6:return n.sent(),[4,["min-length",e.minLength]];case 7:n.sent(),n.label=8;case 8:return[2]}})}(null==n?void 0:n.sideButton))),wi("external-widget-",Fi(function(e){return a(this,function(n){switch(n.label){case 0:return e?[4,["background-color",e.backgroundColor]]:[3,4];case 1:return n.sent(),[4,["padding",e.padding]];case 2:return n.sent(),[4,["min-height",e.minHeight]];case 3:n.sent(),n.label=4;case 4:return[2]}})}(null==n?void 0:n.externalWidget)))))}(e),r=t.next();for(;!1===r.done;){var o=r.value,i=o[0],p=o[1];null!=p&&""!==p&&n.push([i,p]),r=t.next()}return n}(r));return n.useLayoutEffect(function(){var e=JSON.parse(o);return function(e){for(var n,t=document.documentElement,r=0,a=e;r<a.length;r++){var o=a[r],i=o[0],p=o[1];t.style.setProperty(i,p),yi.set(i,(null!==(n=yi.get(i))&&void 0!==n?n:0)+1)}}(e),function(){return function(e){for(var n,t=document.documentElement,r=0,a=e;r<a.length;r++){var o=a[r][0],i=(null!==(n=yi.get(o))&&void 0!==n?n:1)-1;i<=0?(yi.delete(o),t.style.removeProperty(o)):yi.set(o,i)}}(e)}},[o]),null};var bi,yi=new Map;function wi(e,n){var t;return a(this,function(r){switch(r.label){case 0:t=n.next(),r.label=1;case 1:return t.done?[3,3]:[4,["".concat(e).concat(t.value[0]),t.value[1]]];case 2:return r.sent(),t=n.next(),[3,1];case 3:return[2]}})}function Fi(){var e,n,t,r,o,i=[];for(e=0;e<arguments.length;e++)i[e]=arguments[e];return a(this,function(e){switch(e.label){case 0:n=0,t=i,e.label=1;case 1:if(!(n<t.length))return[3,5];r=t[n],o=r.next(),e.label=2;case 2:return!1!==o.done?[3,4]:[4,o.value];case 3:return e.sent(),o=r.next(),[3,2];case 4:return n++,[3,1];case 5:return[2]}})}function ki(e,n){return a(this,function(t){switch(t.label){case 0:return[4,[e,n]];case 1:return t.sent(),[2]}})}function Si(e,n){var t,r,a,o,i,p,s,d,l,c;if(!e)return e;try{if(e.startsWith("#")){var u=e.match(/\w\w/g);u&&(r=(t=u.map(function(e){return parseInt(e,16)}))[0],a=t[1],o=t[2])}else if(e.startsWith("rgb")){var m=(l=/^rgba?\((\d+),\s*(\d+),\s*(\d+),\s*([\d.]+)\)$/,c=/^rgb?\((\d+),\s*(\d+),\s*(\d+)\)$/,(d=(s=e).match(l))?{r:parseInt(d[1]),g:parseInt(d[2]),b:parseInt(d[3]),a:parseFloat(d[4])}:(d=s.match(c))?{r:parseInt(d[1]),g:parseInt(d[2]),b:parseInt(d[3])}:null);m&&(r=m.r,a=m.g,o=m.b,i=m.a)}if(void 0===r||void 0===a||void 0===o)return he("Darken: Unsupported color format: ".concat(e)),e;if(void 0!==i){if(0===r&&0===a&&0===o)i+=n/100;else{var _=.3*r+.59*a+.11*o,f=_*(1-n/100)/_;r=Math.round(r*f),a=Math.round(a*f),o=Math.round(o*f)}p="rgba(".concat(r,", ").concat(a,", ").concat(o,", ").concat(i,")")}else r=Math.max(0,r-n),a=Math.max(0,a-n),o=Math.max(0,o-n),p="#".concat(r.toString(16).padStart(2,"0")).concat(a.toString(16).padStart(2,"0")).concat(o.toString(16).padStart(2,"0"))}catch(n){he("Darken: Unsupported color format: ".concat(e," - Error: ").concat(n))}return p}!function(e){e.XAPP_FORM_BUTTON="xapp-form-button"}(bi||(bi={}));var Ti="xapp_form_SideButton-module_xapp_form_sticky_button__YqORL",Ci="xapp_form_SideButton-module_left__GT6z8",Di="xapp_form_SideButton-module_right__Hy2FU";De("/**\n * The phone breakpoint.\n *\n * Width alone cannot express \"phone\". A phone on its side is 740-863px wide - wider than\n * an iPad in portrait - so `max-width: 640px` silently excluded every landscape phone, and\n * with it the full-screen panel, the full-bleed modal, the 44px hit boxes, the safe-area\n * insets and the soft-keyboard padding. Measured on 2026-08-13: in landscape the chat\n * input sat ~22px from the bottom of a 340px viewport, so any keyboard covered it, and the\n * form step's action row was unreachable. XappMedia/chat-widget#1561.\n *\n * The second arm adds short-and-touch, which is what a landscape phone is. Verified in\n * Chromium against device descriptors: it matches iPhone 14, Pixel 7 and Galaxy S8 in\n * landscape, and matches no iPad in either orientation and no desktop. `pointer: coarse`\n * reports the PRIMARY pointer, so a touch laptop driven by a trackpad stays on desktop.\n *\n * Use this instead of writing the query by hand, so the definition lives in one place.\n */\n/**\n * A field's helper / error line. The metrics are MUI's FormHelperText, which every field used\n * until #1741, so a validation message sits exactly where it always has.\n */\n.xapp_form_SideButton-module_xapp_form_sticky_button__YqORL {\n position: fixed;\n z-index: 10000;\n cursor: pointer;\n transform: translateY(-50%);\n text-align: center;\n writing-mode: vertical-rl;\n background-color: var(--xapp-form-widget-side-button-background-color, #d8412a);\n color: var(--xapp-form-widget-side-button-color, #ffffff);\n font-size: var(--xapp-form-widget-side-button-font-size, 1.5em);\n font-family: var(--xapp-form-widget-side-button-font-family, var(--xapp-form-widget-font-family, RobotoRegular, serif));\n top: var(--xapp-form-widget-side-button-top, 50%);\n min-height: var(--xapp-form-widget-side-button-min-length, 200px);\n box-shadow: var(--xapp-form-widget-box-shadow, 0 4px 24px rgba(0, 0, 0, 0.12));\n transition: background-color 200ms ease-in-out, box-shadow 200ms ease-in-out, transform 150ms ease-in-out;\n}\n.xapp_form_SideButton-module_xapp_form_sticky_button__YqORL:hover {\n background-color: var(--xapp-form-widget-side-button-background-color-dark, darkred);\n box-shadow: var(--xapp-form-widget-box-shadow-hover, 0 6px 32px rgba(0, 0, 0, 0.16));\n}\n.xapp_form_SideButton-module_xapp_form_sticky_button__YqORL:active {\n transform: translateY(-50%) scale(0.98);\n}\n.xapp_form_SideButton-module_xapp_form_sticky_button__YqORL:focus {\n outline: none;\n}\n.xapp_form_SideButton-module_xapp_form_sticky_button__YqORL:focus-visible {\n outline: 2px solid var(--xapp-form-widget-focus-ring-color, var(--xapp-form-widget-header-background-color, #012b54));\n outline-offset: 0px;\n}\n.xapp_form_SideButton-module_xapp_form_sticky_button__YqORL.xapp_form_SideButton-module_left__GT6z8 {\n left: 0;\n border-top-right-radius: 50%;\n border-bottom-right-radius: 50%;\n padding: 20px 20px 20px 10px;\n}\n.xapp_form_SideButton-module_xapp_form_sticky_button__YqORL.xapp_form_SideButton-module_right__Hy2FU {\n right: 0;\n border-top-right-radius: 50%;\n border-bottom-right-radius: 50%;\n padding: 20px 20px 20px 10px;\n transform: translateY(-50%) rotate(180deg);\n}\n.xapp_form_SideButton-module_xapp_form_sticky_button__YqORL.xapp_form_SideButton-module_right__Hy2FU:active {\n transform: translateY(-50%) rotate(180deg) scale(0.98);\n}");var Ni=function(n){var t=n.onClick,r=n.position,a=n.label,o=n.hidden,i="right"===(null==r?void 0:r.toLowerCase())?Di:Ci;return e.jsx("div",{onClick:t,className:"".concat(Ti," ").concat(i),"data-xapp-form-side-button":"true",style:o?{display:"none"}:void 0,"aria-hidden":o||void 0,children:e.jsx("span",{children:a||"Schedule Now"})})},Ii="xafw-auto-open-dismissed";function Ri(e){if(!("number"!=typeof e||e<0))return Math.min(e,3e5)}function Ai(e){if("number"==typeof e)return Math.max(0,Math.min(e,100))}function ji(e){var t,r=e.config,a=e.isActive,o=e.onOpen,i=e.hasInteracted,p=n.useRef(new Set),s=n.useRef(!1),d=n.useRef(null),l=(null==r?void 0:r.sessionKey)||Ii,c=(null==r?void 0:r.mode)||"any",u=null==r?void 0:r.triggers,m=Ri(null==u?void 0:u.delay),_=Ai(null==u?void 0:u.scrollPercent),f=null==u?void 0:u.exitIntent,x="number"!=typeof(t=null==u?void 0:u.exitIntentThreshold)||t<0?50:t,h=Ri(null==u?void 0:u.inactivity),g=null==r?void 0:r.patterns,v=null==r?void 0:r.minimumWidth,b=n.useMemo(function(){return JSON.stringify(null!=g?g:[])},[g]),y=n.useRef([]),w=n.useCallback(function(){var e=[];return void 0!==(null==u?void 0:u.delay)&&e.push("delay"),void 0!==(null==u?void 0:u.scrollPercent)&&e.push("scrollPercent"),(null==u?void 0:u.exitIntent)&&e.push("exitIntent"),void 0!==(null==u?void 0:u.inactivity)&&e.push("inactivity"),e},[null==u?void 0:u.delay,null==u?void 0:u.scrollPercent,null==u?void 0:u.exitIntent,null==u?void 0:u.inactivity]),F=n.useCallback(function(e){if(!s.current)if(p.current.add(e),"any"===c)s.current=!0,o();else if("all"===c){var n=y.current.every(function(e){return p.current.has(e)});n&&(s.current=!0,o())}},[c,o]);n.useEffect(function(){p.current=new Set,s.current=!1,y.current=w()},[w]),n.useEffect(function(){if((void 0!==m||void 0!==_||f||void 0!==h)&&!a&&!i&&!function(e){try{return"true"===sessionStorage.getItem(e)}catch(e){return!1}}(l)&&function(e){if(!e||0===e.length)return!0;var n=window.location.href;return e.some(function(e){return n.includes(e)})}(g)&&function(e){return"number"!=typeof e||window.innerWidth>=e}(v)){var e=[],n=[],t=function(e,t,r,a){e.addEventListener(t,r,a),n.push({target:e,event:t,handler:r,options:a})};if("number"==typeof m&&m>0){var r=setTimeout(function(){F("delay")},m);e.push(r)}if("number"==typeof _){var o=_,p=!1,s=function(){var e=window.scrollY||document.documentElement.scrollTop,n=document.documentElement.scrollHeight-window.innerHeight;n<=0||(e/n*100>=o&&F("scrollPercent"),p=!1)};t(window,"scroll",function(){p||(p=!0,"function"==typeof requestAnimationFrame?requestAnimationFrame(s):s())},{passive:!0}),s()}if(f&&!("ontouchstart"in window||navigator.maxTouchPoints>0)){var c=null!=x?x:50;t(document,"mouseout",function(e){e.clientY<=c&&F("exitIntent")})}if("number"==typeof h&&h>0){var u=function(){d.current&&clearTimeout(d.current),d.current=setTimeout(function(){F("inactivity")},h)};u();["mousemove","keydown","scroll","click","touchstart"].forEach(function(e){t(document,e,u,{passive:!0})})}return function(){e.forEach(function(e){return clearTimeout(e)}),d.current&&(clearTimeout(d.current),d.current=null),n.forEach(function(e){var n=e.target,t=e.event,r=e.handler,a=e.options;n.removeEventListener(t,r,a)})}}},[m,_,f,x,h,b,v,a,i,l,F])}
3
3
  /*! Copyright (c) 2026, XAPPmedia */var Mi="data-xapp-form-page",Ei="data-xapp-form-page-count";function Oi(){var e=parseInt(document.body.getAttribute(Ei)||"0",10);return Number.isNaN(e)?0:e}function zi(){if("undefined"==typeof document||!document.body)return function(){};document.body.setAttribute(Ei,String(Oi()+1)),document.body.setAttribute(Mi,"true");var e=!1;return function(){if(!e){e=!0;var n=Math.max(0,Oi()-1);0===n?(document.body.removeAttribute(Mi),document.body.removeAttribute(Ei)):document.body.setAttribute(Ei,String(n))}}}function Pi(e){var n=null!=e?e:"undefined"!=typeof document?document.getElementById("xapp-form-widget"):null;return!!n&&(n.classList.contains("embedded")||n.classList.contains("xapp-embedded"))}var Li,Hi=function(e){e.target instanceof Element&&(Li={target:e.target,at:Date.now()})};var Ui="xapp_form_Form-module_xapp_form__mMqzX";De('@font-face {\n font-family: RobotoRegular;\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: local("Roboto"), local("Roboto-Regular"), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2) format("woff2");\n}\n.xapp_form_Form-module_xapp_form__mMqzX {\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif);\n}\n.xapp_form_Form-module_xapp_form__mMqzX button {\n font-family: var(--xapp-form-widget-font-family, RobotoRegular, serif) !important;\n}');var Bi=function(r){var a,o,i,p,s=r.config,d=r.theme,l=Te()[1],c=Ce(),u=c.active,m=c.minimized,_=n.useState(),f=_[0],x=_[1],h=n.useState(!1),g=h[0],v=h[1],b=n.useState(!1),y=b[0],w=b[1],F=n.useState(Pi)[0],k=n.useState(),S=k[0],T=k[1],C=!!(null===(a=s.autoOpen)||void 0===a?void 0:a.enabled)&&!function(e){var n=null==e?void 0:e.triggers;return void 0!==Ri(null==n?void 0:n.delay)||void 0!==Ai(null==n?void 0:n.scrollPercent)||!!(null==n?void 0:n.exitIntent)||void 0!==Ri(null==n?void 0:n.inactivity)}(s.autoOpen),D=n.useCallback(function(e,n){u||T(e),(null==n?void 0:n.preselectChipLabel)&&x(n.preselectChipLabel),l({type:"open-modal-state"})},[u,l]),N=n.useCallback(function(){D("site_button")},[D]),I=n.useCallback(function(){D("side_button")},[D]),R=n.useCallback(function(e){D("chat"===(null==e?void 0:e.source)?"chat":"site_button",e)},[D]),A=n.useCallback(function(){return{active:u,minimized:m}},[u,m]),j=n.useMemo(function(){return ze.getApi({key:s.api.key,url:s.api.url,intentId:s.intentId,demoMode:s.api.demoMode})},[s]),M=n.useCallback(function(){var e;if(x(void 0),v(!0),y){try{var n=(null===(e=s.autoOpen)||void 0===e?void 0:e.sessionKey)||Ii;sessionStorage.setItem(n,"true")}catch(e){}w(!1)}l({type:"new-search"}),l({type:"set-modal-state",active:!1,minimized:!1,sendRequest:!1}),j.channelActionRequest({data:{result:{},step:"",form:""}},"FORM_CLOSE").then(function(e){xe("ACTION Request (FORM_CLOSE). Data: Response: ".concat(JSON.stringify(e)))})},[j,null===(o=s.autoOpen)||void 0===o?void 0:o.sessionKey,l,y]),E=n.useCallback(function(){w(!0),T("auto_open"),l({type:"set-modal-state",active:!0,minimized:!1,sendRequest:!0})},[l]);return ji({config:s.autoOpen,isActive:u,onOpen:E,hasInteracted:g}),n.useEffect(function(){var e=document.getElementsByClassName(bi.XAPP_FORM_BUTTON);if(e.length)xe("Assigning ".concat(e.length," button(s) by class: ").concat(bi.XAPP_FORM_BUTTON)),Array.from(e).forEach(function(e){e.onclick=N,e.onfocus=N});else{var n=document.getElementById(bi.XAPP_FORM_BUTTON);n?(xe("Assigning one button by id: ".concat(bi.XAPP_FORM_BUTTON,")}")),n.onclick=N,n.onfocus=N):xe("Cannot assign buttons by class or id: ".concat(bi.XAPP_FORM_BUTTON,")}"))}window.xafwControl={openForm:R,formStatus:A}},[A,N,R]),n.useEffect(function(){var e=s.triggerSelector,n=function(){document.removeEventListener("click",Hi,!0);var e=Li;if(Li=void 0,e&&!(Date.now()-e.at>1e4))return e.target}();if(e){try{document.querySelector(e)}catch(n){return void he('Invalid triggerSelector "'.concat(e,'": ').concat(n))}(null==n?void 0:n.closest(e))&&(xe('Opening for a triggerSelector "'.concat(e,'" click made before the form loaded')),N());var t=function(n){var t=n.target instanceof Element?n.target.closest(e):null;t&&(t instanceof HTMLAnchorElement&&("#"===t.getAttribute("href")||""===t.getAttribute("href"))&&n.preventDefault(),N())};return document.addEventListener("click",t,!0),function(){document.removeEventListener("click",t,!0)}}},[s.triggerSelector,N]),p=r.button&&"object"==typeof r.button?e.jsx(r.button.type,t({},r.button.props,{onClick:N,onFocus:N})):e.jsx(e.Fragment,{}),e.jsxs("div",{className:Ui,children:[e.jsx(vi,{theme:d}),s.sideButtonLabel&&!C&&!F&&e.jsx(Ni,{onClick:I,label:s.sideButtonLabel,position:null===(i=null==d?void 0:d.sideButton)||void 0===i?void 0:i.position,hidden:s.hideSideButton}),p,(u||C)&&e.jsx(je,{disableBackdrop:C,embedded:F,onClose:M,children:e.jsx(gi,{docked:C,embedded:F,openedByTrigger:y,formPlacement:F?"embedded":C?"auto_open":S,config:s,preselectChipLabel:f,onPreselectChipUsed:function(){return x(void 0)}})})]})};function Wi(){var e=null===document||void 0===document?void 0:document.getElementById("xapp-form-js");return function(e){if(!e)return{path:""};var n=e.lastIndexOf("/"),t="";n>=0&&(t=e.substr(0,n));var r=new URL(e),a=new URLSearchParams(r.search).get("key")||"";return{path:t,key:a}}(null==e?void 0:e.src)}var $i="none";function Yi(e){var n,t=e.standalone,r=e.stylePreset,a=e.partnerCode,o=e.getPresetStyle;if(t&&r!==$i){if(r)return r;if(a)return(null===(n=null==o?void 0:o(a))||void 0===n?void 0:n.enabled)?a:void 0}}function qi(e,n){return n?e?Vi(e,n):n:e}function Gi(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Vi(e,n){for(var r=t({},e),a=0,o=Object.entries(n);a<o.length;a++){var i=o[a],p=i[0],s=i[1];if(void 0!==s){var d=r[p];r[p]=Gi(s)&&Gi(d)?Vi(d,s):s}}return r}exports.COST_GUIDE_FORM_STYLE={enabled:!0,theme:{borderColor:"transparent",borderRadius:"8px",backgroundColor:"#ffffff",headerBackgroundColor:"#ffffff",headerTextColor:"#1c3f47",primaryButtonColor:"#fb9b26",primaryButtonTextColor:"#ffffff",secondaryButtonColor:"#fb9b26",secondaryButtonTextColor:"#ffffff",text:{color:"#1c3f47",backgroundColor:"#ffffff",borderColor:"#cfe3e7",borderWidth:"1px",borderColorFocus:"#92dae1"},chips:{backgroundColor:"#d6eef2",color:"#1c3f47",backgroundColorSelected:"#1aacbe",colorSelected:"#ffffff"},date:{backgroundColorSelected:"#1aacbe"},button:{fontSize:"20px",fontWeight:"700",padding:"17px 25px",borderRadius:"10px",boxShadow:"0 4px 5px 4px rgba(0, 0, 0, 0.15)"},finalButtonPlacement:"inline",stepTitle:{align:"center",fontSize:"24px",fontWeight:"700",color:"#174146"},backButtonVariant:"icon",backButton:{color:"#a0cdd3",borderColor:"#a0cdd3",colorHover:"#174146",borderWidth:"2px",iconStroke:"0.8px"},font:{fontFamily:"Poppins, Arial, Verdana, sans-serif",link:"https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap"},standAlone:{backgroundColor:"rgb(243, 248, 251)"},externalWidget:{minHeight:"600px"}}},exports.DEFAULT_DATE_FIELD_NAME=Xn,exports.DEFAULT_DATE_TIME_FIELD_NAME=Qn,exports.DEFAULT_HORIZON_DAYS=60,exports.DEFAULT_SLOT_MINUTES=30,exports.DEFAULT_TIME_ZONE_FIELD_NAME=et,exports.FORM_PAGE_ATTRIBUTE=Mi,exports.FORM_PAGE_COUNT_ATTRIBUTE=Ei,exports.Form=Bi,exports.FormContainer=function(n){return e.jsx(Se,{children:e.jsx(Bi,{config:n.config,theme:n.theme,button:n.button,buttonElementLookup:n.buttonElementLookup})})},exports.FormDisplay=Ho,exports.FormFrame=Fo,exports.FormWidget=gi,exports.LeftAngleIcon=Ye,exports.RightAngleIcon=qe,exports.STYLE_PRESET_NONE=$i,exports.SearchIcon=function(){return e.jsx("svg",{fill:"#000000",height:"300px",width:"30px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 382.163 382.163",children:e.jsxs("g",{children:[e.jsx("path",{d:"M344.89,215.855c0-50.602-24.567-95.57-62.396-123.618l2.982-5.326l46.258,25.92c1.16,0.65,2.418,0.958,3.659,0.958\n\t\tc2.626,0,5.175-1.381,6.55-3.835c8.883-15.853,11.061-34.216,6.132-51.706c-4.243-15.059-13.327-27.91-25.887-36.864l5.722-10.22\n\t\tc2.023-3.614,0.733-8.185-2.881-10.208c-3.614-2.023-8.184-0.734-10.208,2.88l-5.72,10.216\n\t\tc-31.487-13.349-68.758-1.123-85.857,29.391c-0.972,1.735-1.215,3.786-0.676,5.7s1.817,3.536,3.553,4.509l46.268,25.925\n\t\tl-2.406,4.297c-23.084-13.853-50.078-21.83-78.903-21.83c-28.825,0-55.818,7.977-78.902,21.829l-2.408-4.296l46.269-25.926\n\t\tc3.614-2.025,4.902-6.595,2.877-10.209c-8.883-15.853-23.407-27.297-40.897-32.226c-15.061-4.244-30.765-3.205-44.96,2.833\n\t\tL67.342,3.838c-2.023-3.615-6.593-4.904-10.208-2.881c-3.614,2.023-4.904,6.594-2.881,10.208l5.721,10.22\n\t\tc-12.559,8.954-21.643,21.804-25.886,36.864c-4.929,17.49-2.751,35.854,6.132,51.706c1.375,2.454,3.924,3.835,6.55,3.835\n\t\tc1.241,0,2.5-0.309,3.659-0.958l46.257-25.919l2.984,5.324c-37.83,28.047-62.397,73.016-62.397,123.619\n\t\tc0,45.21,19.61,85.924,50.767,114.091l-9.427,43.114c-0.885,4.047,1.678,8.044,5.725,8.929c0.54,0.118,1.078,0.175,1.609,0.175\n\t\tc3.448,0,6.553-2.393,7.32-5.899l7.818-35.757c25.321,18.332,56.416,29.157,89.996,29.157c33.58,0,64.676-10.825,89.997-29.158\n\t\tl7.818,35.758c0.767,3.507,3.871,5.899,7.319,5.899c0.531,0,1.07-0.057,1.609-0.175c4.046-0.885,6.61-4.882,5.725-8.929\n\t\tl-9.427-43.115C325.281,301.778,344.89,261.065,344.89,215.855z M308.517,30.436c12.357,6.924,21.279,18.246,25.121,31.88\n\t\tc3.155,11.198,2.574,22.853-1.57,33.507l-91.609-51.331C256.211,23.856,285.228,17.387,308.517,30.436z M50.096,95.824\n\t\tc-4.145-10.654-4.726-22.31-1.57-33.507c3.842-13.634,12.763-24.956,25.121-31.88c8.179-4.583,17.064-6.758,25.833-6.758\n\t\tc16.201,0,32.005,7.425,42.225,20.814L50.096,95.824z M52.273,215.855c0-76.54,62.269-138.809,138.809-138.809\n\t\tS329.89,139.315,329.89,215.855s-62.27,138.809-138.809,138.809S52.273,292.394,52.273,215.855z"}),e.jsx("path",{d:"M191.081,107.685c-59.645,0-108.17,48.525-108.17,108.17c0,59.645,48.525,108.17,108.17,108.17\n\t\tc59.646,0,108.17-48.525,108.17-108.17C299.252,156.21,250.727,107.685,191.081,107.685z M191.081,309.025\n\t\tc-51.374,0-93.17-41.796-93.17-93.17c0-51.374,41.796-93.17,93.17-93.17c51.375,0,93.17,41.796,93.17,93.17\n\t\tC284.252,267.229,242.456,309.025,191.081,309.025z"}),e.jsx("path",{d:"M198.585,190.081v-36.262c0-4.142-3.358-7.5-7.5-7.5s-7.5,3.358-7.5,7.5v36.26c-8.784,2.559-15.718,9.492-18.279,18.276\n\t\th-16.941c-4.142,0-7.5,3.358-7.5,7.5s3.358,7.5,7.5,7.5h16.941c3.254,11.165,13.574,19.349,25.775,19.349\n\t\tc14.805,0,26.849-12.044,26.849-26.849C217.93,203.655,209.748,193.337,198.585,190.081z M191.081,227.704\n\t\tc-6.533,0-11.849-5.315-11.849-11.849s5.315-11.849,11.849-11.849c6.534,0,11.849,5.315,11.849,11.849\n\t\tS197.615,227.704,191.081,227.704z"})]})})},exports.SpinnerIcon=Ge,exports.WidgetStylesheet=vi,exports.firstSelectableDate=bt,exports.formatOfferingLabel=_t,exports.generateOfferings=gt,exports.horizonDaysOf=ft,exports.isDateSelectable=vt,exports.markFormPage=zi,exports.mergeFormWidgetTheme=qi,exports.parseWidgetEnv=function(e){var n,t,r=(null===(n=e.connection)||void 0===n?void 0:n.accountKey)||Wi().key||"";return[{api:{url:(null===(t=e.connection)||void 0===t?void 0:t.serverUrl)||"",key:r},suggestionsUrl:e.autocompleteSuggestionsUrl,autoGreeting:e.autoGreeting||"contact us",intentId:e.intentId,sideButtonLabel:e.sideButtonLabel,hideSideButton:e.hideSideButton,googleMapsApiKey:e.googleMapsApiKey,mapsBaseUrl:e.mapsBaseUrl,autoOpen:e.autoOpen,disabled:e.disabled,trustedForm:e.trustedForm,triggerSelector:e.triggerSelector,ga4MeasurementId:e.ga4MeasurementId,ga4LocationName:e.ga4LocationName,appId:e.appId},e.theme]},exports.resolveFormStyle=function(e){var n=e.customerTheme,t=e.getPresetStyle,r=Yi(e),a=r?null==t?void 0:t(r):void 0;return a?{preset:r,theme:qi(n,a.theme),framing:a.framing}:{theme:n}},exports.resolveStylePresetName=Yi,exports.timeZoneOf=ut,exports.toCalendarDate=pt,exports.toOffsetIso=ct,exports.useFormPageMarker=function(e){void 0===e&&(e=!0),n.useEffect(function(){if(e)return zi()},[e])};