PageSourceSearch

https://www.investorkit.com.au/_next/static/immutable/chunks/2om39j-lm2m-a.js

js investorkit.com.au collected 2026-10-02 15:18:21 UTC 98,320 bytes, 172 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,179176,950570,e=>{"use strict";var t=e.i(266201),i=e.i(397543),n=e.i(986122),o=e.i(486851),r=e.i(418697),l=e.i(245791),a=e.i(976332),s=e.i(74544),d=e.i(169963),c=e.i(707524),u=e.i(79092);let p="https://keklbmejmggpjagwkrhv.supabase.co/functions/v1/forms",f=[{code:"AU",dial:"61",flag:"🇦🇺",placeholder:"0400 000 000"},{code:"NZ",dial:"64",flag:"🇳🇿",placeholder:"021 123 4567"},{code:"US",dial:"1",flag:"🇺🇸",placeholder:"(555) 555-0123"},{code:"GB",dial:"44",flag:"🇬🇧",placeholder:"07400 123456"},{code:"SG",dial:"65",flag:"🇸🇬",placeholder:"8123 4567"},{code:"HK",dial:"852",flag:"🇭🇰",placeholder:"5123 4567"},{code:"IN",dial:"91",flag:"🇮🇳",placeholder:"98765 43210"},{code:"AE",dial:"971",flag:"🇦🇪",placeholder:"050 123 4567"},{code:"CA",dial:"1",flag:"🇨🇦",placeholder:"(555) 555-0123"},{code:"ZA",dial:"27",flag:"🇿🇦",placeholder:"071 123 4567"}],m=["one","two","three","four","five","six"],h=i.sectionTheme.danger,g="var(--danger, #DC2626)";function y(e){try{let t=window.localStorage.getItem(e);return t&&"null"!==t?t:null}catch{return null}}function b(e){try{let t=window.sessionStorage.getItem(e);return t&&"null"!==t?t:null}catch{return null}}function x(...e){for(let t of e){let e=y(t);if(e)return e}return""}function w(e){if("u"<typeof document)return"";try{for(let t of document.cookie.split(";")){let i=t.indexOf("=");if(i>-1&&t.slice(0,i).trim()===e)return decodeURIComponent(t.slice(i+1).trim())}}catch{}return""}let v=new Map;function k(e){return"string"==typeof e&&e?e:"form"}function _(e){let t=k(e),i=v.get(t);return i||(i=function(){try{let e=globalThis.crypto;if("function"==typeof e?.randomUUID)return String(e.randomUUID())}catch{}return`${Date.now().toString(36)}${Math.random().toString(36).slice(2,12)}`}(),v.set(t,i)),i}function S(e,t){return"booking_form_submitted"===e?`${_(t)}:lead`:"booking_confirmed"===e?`${_(t)}:schedule`:""}let C=["gbraid","wbraid","dclid","msclkid","ttclid","li_fat_id"];function T(e){let t={};for(let e of["utm_source","utm_medium","utm_campaign","utm_term","utm_content"]){let i=y(e)??y(`glue_last_${e}`);i&&(t[e]=i)}let i={};for(let e of["glue_url_first","glue_url_current","glue_url_last","glue_user_referrer","glue_session_start","glue_user_geolocation","glue_user_firstseen","glue_initial_utm_source","glue_initial_utm_medium","glue_initial_utm_campaign","glue_initial_utm_term","glue_initial_utm_content","glue_last_utm_source","glue_last_utm_medium","glue_last_utm_campaign","glue_last_utm_term","glue_last_utm_content","glue_gclid","glue_fbclid","glue_msclkid","glue_ttclid","gclid","fbclid","comet_source","comet_ad_id","comet_placement","glue_user_ip","glue_fb_fbp","glue_fb_fbc","glue_fb_fbclid","glue_initial_fbclid","glue_last_fbclid","glue_initial_gclid","glue_last_gclid","glue_initial_campaign_id","glue_last_campaign_id","glue_initial_adset_id","glue_last_adset_id","glue_initial_ad_id","glue_last_ad_id","glue_initial_placement","glue_last_placement","glue_fbp","glue_fbc",...C.flatMap(e=>[`glue_initial_${e}`,`glue_last_${e}`])]){let t=y(e)??b(e);t&&(i[e]=t)}if(!i.glue_fb_fbc){let e=w("_fbc")||i.glue_fbc;e&&(i.glue_fb_fbc=e)}if(!i.glue_fb_fbp){let e=w("_fbp")||i.glue_fbp;e&&(i.glue_fb_fbp=e)}return void 0!==e&&(i.ikit_event_id=S("booking_form_submitted",e),i.ikit_event_id_schedule=S("booking_confirmed",e)),{user_id:y("glue_user_id")??void 0,session_id:b("glue_session_id")??void 0,utm:t,extras:i}}function j(e){if("page_url"===e)try{return window.location.href}catch{return""}if("page_path"===e)try{return window.location.pathname}catch{return""}try{let t=new URLSearchParams(window.location.search).get(e);if(t)return t}catch{}let t=y(e)??y(`glue_last_${e}`)??b(e);if(t)return t;try{let t=window.glue?.getAttribute?.(e);if(t)return String(t)}catch{}return""}let $=(()=>{try{let e=new URLSearchParams(window.location.search),t=e.get("bfdebug")??e.get("devmode");if(null!==t)return"false"!==t&&"0"!==t;let i=localStorage.getItem("glue_devmode");return null!==i&&"false"!==i&&""!==i}catch{return!1}})();function K(e,...t){if($)try{console.log(`glue\xb7form ${e}`,...t)}catch{}}function E(e,...t){if($)try{console.warn(`glue\xb7form ${e}`,...t)}catch{}}let I=["invalid_phone","captcha_failed","missing_answer","booking_failed","turnstile_load_failed"],P=["name","email","phone","text","select","textarea"];function L(e){let t=e.error&&"object"==typeof e.error?e.error:{},i=e.status??t.formStatus,n="number"==typeof i&&Number.isInteger(i)?i:-1,o=e.code??t.formCode;return{reason:"string"==typeof o&&I.includes(o)?o:0===n?"network_error":404===n?"not_found":413===n?"payload_too_large":n>=500?"server_error":n>
1=400?"invalid_request":n>=200&&n<300?"bad_response":"client_exception",status:n}}function O(e,t){let i=t.replace(/\D/g,"");return i.startsWith("00")?i=i.slice(2):t.trim().startsWith("+")||i.startsWith(e)||("39"!==e&&i.startsWith("0")&&(i=i.slice(1)),i=e+i),/^6[14]0/.test(i)&&(i=i.slice(0,2)+i.slice(3)),`+${i}`}function N(e,t="61"){if("string"!=typeof e)return"length";let i=e.trim(),n=i.replace(/\D/g,""),o=i.startsWith("+")||n.startsWith("00")||n.startsWith(t);n.startsWith("00")&&(n=n.slice(2)),o?t=n.match(/^(1|7|20|27|3[0-469]|4[013-9]|5[1-8]|6[0-6]|8[1246]|9[0-58])/)?.[0]??n.slice(0,3):(n.startsWith("0")&&(n=n.slice(1)),n=t+n);let r=n.slice(t.length);return(("61"===t||"64"===t)&&r.startsWith("0")&&(n=t+(r=r.slice(1))),"61"===t?9!==r.length:"64"===t?r.length<8||r.length>10:n.length<8||n.length>15)?"length":"61"===t&&!/^[23478]/.test(r)||/^(\d)\1*$/.test(r)||/(\d)\1{6,}/.test(n)||/123456789|987654321|0123456/.test(n)?"pattern":null}function A(e,t,i,n="",o=""){if(1===t.length){!e[t[0]]&&i.trim()&&(e[t[0]]=i.trim());return}let r=i.trim().split(/\s+/).filter(Boolean),l=[n||r[0]||"",o||r.slice(1).join(" ")];t.slice(0,2).forEach((t,i)=>{!e[t]&&l[i]&&(e[t]=l[i])})}function V(e,t){let i=e.trim().replace(/\s+/g," "),n=t.trim().replace(/\s+/g," ");if(!n){let e=i.split(" ");return e.length>1?[e[0],e.slice(1).join(" ")]:[i,""]}let o=i.slice(-(n.length+1));return i.length>o.length&&o.toLowerCase()===` ${n}`.toLowerCase()?[i.slice(0,-o.length),n]:[i,n]}let B=["name","email","phone"];function D(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.trim())}let R=["gmail.com","googlemail.com","hotmail.com","hotmail.com.au","outlook.com","outlook.com.au","live.com","live.com.au","yahoo.com","yahoo.com.au","icloud.com","me.com","bigpond.com","bigpond.net.au","optusnet.com.au","tpg.com.au","iinet.net.au","proton.me","protonmail.com"],W=["email.com","mail.com","ymail.com","gmx.com","aol.com","msn.com","cloud.com","rocketmail.com","outlook.co.nz","hotmail.co.uk","hotmail.ca","hotmail.fr","yahoo.ca","yahoo.co.uk","yahoo.co.nz","protonmail.ch","pm.me","fastmail.com"],U=[[".com.aus",".com.au"],[".comau",".com.au"],[".com.a",".com.au"],[".coma",".com"],[".comm",".com"],[".con",".com"],[".cmo",".com"],[".cpm",".com"],[".vom",".com"],[".xom",".com"],[".ocm",".com"],[".coom",".com"]],F=[[".cm.au",".com.au"],[".om",".com"],[".cm",".com"],[".co",".com"]],z=["con","coma","comau","cmo","comm","cpm","vom","xom","ocm","coom","aus","nte","orgau","netau"],M=R.map(e=>e.split(".")[0]);function q(e){let t=(e??"").trim(),i=t.lastIndexOf("@");if(i<1||i!==t.indexOf("@"))return"";let n=t.slice(0,i),o=t.slice(i+1).toLowerCase();if(!o||R.includes(o)||W.includes(o))return"";let r=o;for(let[e,t]of U)if(r.endsWith(e)){r=r.slice(0,-e.length)+t;break}let l=r!==o,a=r.split(".")[0];for(let[e,t]of F){let i=r.slice(0,-e.length)+t;if(r.endsWith(e)&&R.includes(i)){r=i;break}}let s="";if(R.includes(r))s=r;else{let e=r.slice(a.length),t=1/0,i=!1;for(let n of R){let o=n.split(".")[0];if(n.slice(o.length)!==e||o.length<5)continue;let r=o.length<=6?1:2,l=function(e,t){let i=[];for(let n=0;n<=e.length;n++){i.push([n]);for(let o=1;o<=t.length;o++){if(0===n){i[n][o]=o;continue}let r=+(e[n-1]!==t[o-1]),l=Math.min(i[n-1][o]+1,i[n][o-1]+1,i[n-1][o-1]+r);n>1&&o>1&&e[n-1]===t[o-2]&&e[n-2]===t[o-1]&&(l=Math.min(l,i[n-2][o-2]+1)),i[n][o]=l}}return i[e.length][t.length]}(a,o);l>r||(l<t?(s=n,t=l,i=!1):l===t&&(i=!0))}i&&(s="")}return!s&&l&&(s=r),s&&s!==o?`${n}@${s}`:""}function H(e){let t=(e??"").trim();if(/[^\x00-\x7F]/.test(t))return"non_ascii";let i=t.indexOf("@");if(i<1||i!==t.lastIndexOf("@")||/\s/.test(t))return"format";let n=t.slice(0,i),o=t.slice(i+1).toLowerCase().split(".");if(n.startsWith(".")||n.endsWith(".")||n.includes(".."))return"local_dots";if(o.length<2||o.some(e=>!e))return"domain_dots";let r=o[o.length-1];return r.length<2||/^\d+$/.test(r)||z.includes(r)||("om"===r||"cm"===r)&&2===o.length&&M.includes(o[0])?"fake_tld":""}function Q(e){let t=Math.floor(e/60);return`${t}:${String(e%60).padStart(2,"0")}`}let Y=[{name:"Step 1 — Your details",enabled:!0,type:"fields",title:"",cta:"See available times",note:"Takes 30 seconds.",after:"next",redirectUrl:"",conditional:!1,showKey:"",showOp:"contains",showValue:""},{name:"Step 2 — Pick a time",enabled:!0,type:"slots",title:"Pick a time that suits you",cta:"",note:"",after:"success",redirectUrl:"",calendlyUrl:"https://calendly.com/investorkit/discovery-call",days:14,chips:"Free · No obligation",confirmLabel:"Confirm booking",holdSeconds:240,urgencyText:"Not reserved yet. Popular times get taken fast.",exitIntent:!0,exitTitle:"Wait, your time isn't locked in yet",exitBody:"You're only two taps away. Pick a time and confirm.",exitSelectedBody:"You're one tap away from locking it in.",conditional:!1,showKey:"",showOp:"contains",showValue:""}],G=[{label:"Let's start with your full name",type:"name",fieldKey:"",placeholder:"e.g. Jane Smith",options:"",required:!0,prefillKey:"",attioSlug:"",attioSlugCustom:"",calendlyQuestion:"",conditional:!1,showKey:"",showOp:"contains",showValue:""},{label:"What is your email address?",type:"email",fieldKey:"",placeholder:"e.g. [email protected]",options:"",required:!0,prefillKey:"",attioSlug:"",attioSlugCustom:"",calendlyQuestion:"",conditional:!1,showKey:"",showOp:"contains",showValue:""},{label:"And what is your mobile number?",type:"phone",fieldKey:"",placeholder:"",options:"",required:!0,prefillKey:"",attioSlug:"",attioSlugCustom:"",calendlyQuestion:"",conditional:!1,showKey:"",showOp:"contains",showValue:""},{label:"What stage are you at in your property journey?",type:"select",fieldKey:"stage",placeholder:"",options:"I have access to at least $125K in equity, I have access to at least $125K in savings, I have access to guarantor support, I have access to all of the above, I have access to none of the above, I have access to at least $585,000 in cash or equity, I have access to less than $585,000 in cash or equity",required:!0,prefillKey:"stage",attioSlug:"stage",attioSlugCustom:"",calendlyQuestion:"Do you have access to the following?",conditional:!1,showKey:"",showOp:"contains",showValue:""},{label:"Anything to share before the call?",type:"textarea",fieldKey:"message",placeholder:"",options:"",required:!1,prefillKey:"",attioSlug:"message",attioSlugCustom:"",calendlyQuestion:"Please share anything that will help prepare for our meeting.",conditional:!1,showKey:"",showOp:"contains",showValue:""}],J="https://calendly.com/investorkit/discovery-call",Z="Free · No obligation",X="Confirm booking",ee="Not reserved yet. Popular times get taken fast.",et={title:"You're booked, {name}!",leadTitle:"Thanks, {name}!",leadBody:"We've got your details and will be in touch shortly.",redirectUrl:"",redirectDelay:2},ei={attio:!0,fillout:!0,filloutFormId:"5ofwuEck4cus",prefetchUrl:"",webhookUrl:"",turnstile:!0,turnstileSiteKey:"0x4AAAAAAA5L0eN51j8HPqkj",dataLayer:!0,pixels:!0,skipPrefilledIdentity:!1},en={accent:i.sectionTheme.accent,text:i.sectionTheme.foreground,muted:i.sectionTheme.muted,border:i.sectionTheme.border,background:i.sectionTheme.surface,radiu
1s:10,font:{fontSize:15,lineHeight:"1.4em"}},eo={discovery:{},whitepaper:{formNameOverride:"whitepaper",steps:[{name:"Step 1 — Get the whitepaper",type:"fields",title:"Download the whitepaper",cta:"Request Access",note:"Instant delivery.",after:"redirect",redirectUrl:"{{dynamic_url}}"}],fieldsStep1:G.slice(0,4),success:{...et,leadTitle:"Check your inbox, {name}!",leadBody:"Your whitepaper is on its way. We've just sent it to your email."},integration:{...ei,filloutFormId:"e7uA4Y6VsSus"},design:{...en,accent:"var(--accent)",radius:14}},newsletter:{formNameOverride:"newsletter",steps:[{name:"Step 1 — Subscribe",type:"fields",title:"Get the weekly property brief",cta:"Subscribe free",note:"One email a week. Unsubscribe anytime.",after:"success",redirectUrl:""}],fieldsStep1:G.slice(0,2),success:{...et,leadTitle:"You're in, {name}!",leadBody:"Welcome aboard. Your first brief lands this week."},integration:{...ei,filloutFormId:"uckqGUUw5Bus"},design:{...en,accent:"var(--accent)",radius:12}}},er={},el={};function ea(e){return JSON.stringify((e??[]).map(e=>[e?.label??"",e?.type??"",e?.fieldKey??"",e?.options??"",!!e?.required,e?.prefillKey??"",e?.attioSlug??"",e?.calendlyQuestion??"",e?.enabled!==!1,!!e?.conditional,e?.showWhere??"",e?.showKey??"",e?.showOp??"",e?.showValue??""]))}function es(e){var w,_,C,$;let I,R,W,U,F,z=e.templateConfig??{},M=z.mode??"preset",et=z.preset&&"discovery"!==z.preset?z.preset:e.template??"discovery",en="json"===M?z.json??"":e.jsonConfig??"",{formNameOverride:es,dynamicUrl:eu,steps:ep,formFields:ef,fieldsStep1:em,fieldsStep2:eh,fieldsStep3:eg,fieldsStep4:ey,fieldsStep5:eb,fieldsStep6:ex,calendar:ew,routingRules:ev,redirectParams:ek,success:e_,conversion:eS,integration:eC,fillout:eT,prefetch:ej,spam:e$,design:eK}=(0,s.useMemo)(()=>{let t={...e},i=eo[et];if(i)for(let[e,n]of Object.entries(i))t[e]="design"===e&&t[e]?.font?{...n,font:t[e].font}:n;let n=en.trim();if(n)try{let e=JSON.parse(n);if(e&&"object"==typeof e&&!Array.isArray(e)){for(let i of["steps","formFields","fieldsStep1","fieldsStep2","fieldsStep3","fieldsStep4","fieldsStep5","fieldsStep6","routingRules","redirectParams"])Array.isArray(e[i])&&(t[i]=e[i]);for(let i of([1,2,3,4,5,6].some(t=>Array.isArray(e[`fieldsStep${t}`]))&&(t.formFields=[]),["calendar","success","conversion","integration","fillout","prefetch","spam","design"]))e[i]&&"object"==typeof e[i]&&(t[i]={...t[i],...e[i]});"string"==typeof e.formNameOverride&&(t.formNameOverride=e.formNameOverride),"string"==typeof e.dynamicUrl&&(t.dynamicUrl=e.dynamicUrl),(e.calendar||e.conversion)&&!Array.isArray(e.steps)&&(t.steps=(t.steps??[]).map(e=>e&&("slots"===e.type||"embed"===e.type)?{...e,calendlyUrl:"",days:void 0,chips:void 0,confirmLabel:void 0,holdSeconds:void 0,urgencyText:void 0,exitIntent:void 0,exitTitle:void 0,exitBody:void 0,exitSelectedBody:void 0}:e))}}catch{}return t},[e,et,en]),{stepContent1:eE,stepContent2:eI,stepContent3:eP,style:eL}=e,eO=eK?.accent??i.sectionTheme.accent,eN=eO===i.sectionTheme.accent||"var(--accent)"===eO?i.sectionTheme.accentText:eO,eA=eK?.text??i.sectionTheme.foreground,eV=eK?.muted??i.sectionTheme.muted,eB=eK?.border??i.sectionTheme.border,eD=eK?.background??i.sectionTheme.surface,eR=eK?.radius??10,eW=eK?.font,eU=(e,t)=>{let i=eC?.[e];return void 0!==i&&i!==ei[e]?i:null!=t?t:i??ei[e]},eF=!!eU("fillout",eT?.enabled),ez=String(eU("filloutFormId",eT?.formId)??"").trim(),eM="custom"===ez?(eC?.filloutFormIdCustom??"").trim():ez,eq=String(eU("prefetchUrl",ej?.url)??"").trim(),eH=(eC?.webhookUrl??"").trim(),eQ=eC?.attio??!0,eY=(0,s.useMemo)(()=>({dataLayer:eC?.dataLayer??!0,pixels:eC?.pixels??!0}),[eC?.dataLayer,eC?.pixels]),eG=(0,s.useCallback)((e,t)=>(function(e,t,i={dataLayer:!0,pixels:!1}){try{window.glue?.journey?.track?.(e,t)}catch{}let n="";try{n=S(e,t?.form)}catch{}try{if(i.dataLayer){let i=window;(i.dataLayer=i.dataLayer||[]).push({event:e,...t,...n?{event_id:n}:{}})}}catch{}try{if(i.pixels){let i=window;"booking_form_submitted"===e&&(n?i.fbq?.("track","Lead",{},{eventID:n}):i.fbq?.("track","Lead"),i.gtag?.("event","generate_lead",{method:t?.form})),"booking_confirmed"===e&&(n?i.fbq?.("track","Schedule",{},{eventID:n}):i.fbq?.("track","Schedule"),i.gtag?.("event","book_appointment",{method:t?.form}))}}catch{}})(e,t,eY),[eY]),eJ=e_?.redirectUrl??"",eZ=e_?.redirectDelay??2,eX=d.RenderTarget.current()===d.RenderTarget.canvas||/^\/canvas\//.test(window.location.pathname),e0=(0,s.useId)(),e1=(0,s.useMemo)(()=>`gbf${e0.replace(/[^a-zA-Z0-9]/g,"")}
1`,[e0]),[e2,e4]=(0,s.useState)(null);(0,s.useEffect)(()=>{if(!eX)try{let t=JSON.stringify([es??"",eu??"",e.templateConfig??null]);(er[t]??={})[e1]={steps:ep,formFields:ef,fieldsStep1:em,fieldsStep2:eh,fieldsStep3:eg,fieldsStep4:ey,fieldsStep5:eb,fieldsStep6:ex};let i=el[t]??=new Set,n=()=>{let e=Object.values(er[t]??{}),i=e.find(e=>!!(e?.formFields?.length||[e?.fieldsStep2,e?.fieldsStep3,e?.fieldsStep4,e?.fieldsStep5,e?.fieldsStep6].some(e=>e?.length))||ea(e?.fieldsStep1)!==ea(G)||JSON.stringify(e?.steps??[])!==JSON.stringify(Y))??e[0]??null;e4(e=>{let t=e?JSON.stringify(e):"",n=i?JSON.stringify(i):"";return t===n?e:i})};return i.add(n),i.forEach(e=>e()),()=>{i.delete(n),delete er[t]?.[e1]}}catch{}},[eX,e1,es,eu,e.templateConfig,ep,ef,em,eh,eg,ey,eb,ex]);let e6=e2?.steps??ep,e5=e2?.formFields??ef,e3=e2?.fieldsStep1??em,e8=e2?.fieldsStep2??eh,e7=e2?.fieldsStep3??eg,e9=e2?.fieldsStep4??ey,te=e2?.fieldsStep5??eb,tt=e2?.fieldsStep6??ex,ti=(0,s.useMemo)(()=>{let e=(e6??[]).filter(e=>e&&e.type).map(e=>({...e,type:e.type,title:(e.title??"").trim(),cta:(e.cta??"").trim(),note:(e.note??"").trim(),after:e.after??"next",redirectUrl:(e.redirectUrl??"").trim()}));return e.length?e:[{type:"fields",title:"",cta:"Submit",note:"",after:"success",redirectUrl:""}]},[e6]),tn=ti.length,to=ti.some(e=>"slots"===e.type),tr=ti.some(e=>"embed"===e.type),tl=ti.find(e=>"slots"===e.type)??ti.find(e=>"embed"===e.type),ta={url:(tl?.calendlyUrl??"").trim()||ew?.url||J,days:tl?.days??ew?.days??14,chips:tl?.chips??ew?.chips??Z,confirmLabel:tl?.confirmLabel??ew?.confirmLabel??X,holdSeconds:tl?.holdSeconds??ew?.holdSeconds??240,urgencyText:tl?.urgencyText??ew?.urgencyText??ee},ts=ta.url,td=ta.days,tc=ta.holdSeconds,tu={enabled:tl?.exitIntent??ew?.exitIntent??eS?.exitIntent??!0,title:tl?.exitTitle??ew?.exitTitle??eS?.title??"Wait, your time isn't locked in yet",body:tl?.exitBody??ew?.exitBody??eS?.body??"You're only two taps away. Pick a time and confirm.",selectedBody:tl?.exitSelectedBody??ew?.exitSelectedBody??eS?.selectedBody??"You're one tap away from locking it in."},tp=(0,s.useMemo)(()=>{let e=(z.formName??"").trim()||(es??"").trim();if(e)return e;try{let e=new URL(ts).pathname.split("/").filter(Boolean);return e[e.length-1]||"booking-form"}catch{return"booking-form"}},[ts,es,z.formName]),tf=(0,s.useRef)({counts:{},send:null});(0,s.useEffect)(()=>{tf.current.send=(e,t)=>eG(e,{form:tp,...t})},[tp,eG]);let tm=(0,s.useCallback)((e,t={})=>{try{let i,n=tf.current;if(n.counts[e]=(n.counts[e]??0)+1,n.counts[e]>5)return;n.send?.(e,(i={},("number"==typeof t.step&&(i.step=t.step),"number"==typeof t.of&&(i.of=t.of),"booking_phone_invalid"===e)?(("length"===t.reason||"pattern"===t.reason)&&(i.reason=t.reason),i):"booking_form_invalid"===e?(t.fields&&(i.fields=t.fields),i):{...i,...L(t)}))}catch{}},[]),[th,tg]=(0,s.useState)(0),[ty,tb]=(0,s.useState)("steps"),tx=ti[Math.min(th,tn-1)],[tw,tv]=(0,s.useState)({}),[tk,t_]=(0,s.useState)(0),[tS,tC]=(0,s.useState)({}),[tT,tj]=(0,s.useState)({}),[t$,tK]=(0,s.useState)({}),tE=(0,s.useRef)({}),[tI,tP]=(0,s.useState)(""),tL=(0,s.useRef)("u">typeof performance?performance.now():0),tO=eU("turnstile",e$?.enabled)?String(eU("turnstileSiteKey",e$?.turnstileSiteKey)??"").trim():"",tN=(0,s.useRef)(null),tA=(0,s.useRef)(""),tV=(0,s.useRef)(null);(0,s.useEffect)(()=>{if(eX||!tO)return;let e=()=>{let e=window.turnstile;e&&tN.current&&null===tV.current&&(tV.current=e.render(tN.current,{sitekey:tO,appearance:"interaction-only",callback:e=>{tA.current=e},"expired-callback":()=>{tA.current="";try{window.turnstile?.reset?.(tV.current)}catch{}}}))};if(window.turnstile)return void e();let t="cf-turnstile-script",i=null,n=()=>{i&&!i.dataset.ikitErrorReported&&(i.dataset.ikitErrorReported="1",tm("booking_captcha_failed",{code:"turnstile_load_failed"}))},o=["pointerdown","touchstart","keydown","focusin"],r=()=>{for(let e of o)document.removeEventListener(e,r,!0);(i=document.getElementById(t))||((i=document.createElement("script")).id=t,i.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",i.async=!0,document.head.appendChild(i)),i.addEventListener("load",e),i.addEventListener("error",n)};for(let e of o)document.addEventListener(e,r,{capture:!0,passive:!0});return()=>{for(let e of o)document.removeEventListener(e,r,!0);i?.removeEventListener("load",e),i?.removeEventListener("error",n)}},[eX,tO,tm]);let tB=(0,s.useMemo)(()=>{let e=[e3??G,e8??[],e7??[],e9??[],te??[],tt??[]],t=e=>JSON.stringify((e??[]).map(e=>[e.label??"",e.type??"text",e.fieldKey??"",e.placeholder??"",e.options??"",!!e.required,e.prefillKey??"",e.atti
1oSlug??"",e.calendlyQuestion??"",!1!==e.enabled])),i=t(e[0])!==t(G)||e.slice(1).some(e=>e.length>0);if(e5?.length&&!i)return e5;let n=[];return e.forEach((e,t)=>{for(let i of e)n.push({...i,step:t+1})}),n},[e5,e3,e8,e7,e9,te,tt]),tD=(0,s.useMemo)(()=>(tB??[]).filter(e=>e&&(e.label??"").trim()&&!1!==e.enabled).map(e=>{let t=e.label.trim(),i=e.type??"text",n="name"===i||"email"===i||"phone"===i,o=(e.fieldKey??"").trim()||(n?i:t.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,""));return{label:t,type:i,fieldKey:o,placeholder:(e.placeholder??"").trim(),choices:(e.options??"").split(e.options?.includes("|")?"|":/,(?=\s)/).map(e=>e.trim()).filter(Boolean),required:!!n||!!e.required,attioSlug:"custom"===(e.attioSlug??"").trim()?(e.attioSlugCustom??"").trim():(e.attioSlug??"").trim(),calendlyQuestion:(e.calendlyQuestion??"").trim(),prefillKey:(e.prefillKey??"").trim(),conditional:!!e.conditional,showWhere:(e.showWhere??"auto").trim()||"auto",showKey:(e.showKey??"").trim(),showOp:e.showOp??"contains",showValue:(e.showValue??"").trim(),step:Math.max(1,Math.round(e.step??1)),toolDescription:(e.toolDescription??"").trim()}}),[tB]),tR=(0,s.useCallback)((e,t="auto")=>{let i=e.trim();if("field"===t)return tw[i]??"";if("auto"!==t){if("page_url"===t||"page_path"===t)return j(t);if("query"===t)try{return new URLSearchParams(window.location.search).get(i)??""}catch{return""}if("storage"===t){let e=y(i)??y(`glue_last_${i}`)??b(i);if(e)return e;try{let e=window.glue?.getAttribute?.(i);if(e)return String(e)}catch{}return""}return j(i)}if(!i)return"";let n=tw[i];return void 0!==n&&""!==n?n:j(i)},[tw]),tW=(0,s.useCallback)(e=>{let t=(e.showWhere??"auto").trim()||"auto",i=(e.showKey??"").trim();if(!i&&"page_url"!==t&&"page_path"!==t)return!0;let n=tR(i,t).toLowerCase(),o=(e.showValue??"").trim().toLowerCase(),r=e.showOp??"contains";return"exists"===r?!!n:"contains"===r?!!n&&n.includes(o):n===o},[tR]),tU=(0,s.useCallback)(e=>!!(!e.conditional||(e.showKey??"").trim()&&e.showKey===e.fieldKey)||tW(e),[tW]),tF=(0,s.useCallback)(e=>{let t=ti[e];return!!t&&!1!==t.enabled&&(!t.conditional||tW(t))},[ti,tW]),tz=(0,s.useCallback)(e=>{for(let t=e+1;t<tn;t++)if(tF(t))return t;return -1},[tn,tF]),tM=(0,s.useCallback)(e=>{for(let t=e-1;t>=0;t--)if(tF(t))return t;return -1},[tF]),tq=(0,s.useCallback)(e=>tD.filter(t=>t.step===e+1&&tU(t)),[tD,tU]),tH=(0,s.useCallback)(e=>{let t=(e.step??1)-1;return!(t>=tn)&&!!tF(t)&&tU(e)},[tn,tF,tU]),tQ=ti.findIndex(e=>"slots"===e.type),tY=-1!==tQ&&tF(tQ),tG=-1;for(let e=0;e<tn;e++)"fields"===ti[e].type&&tF(e)&&(tG=e);let tJ=(0,s.useMemo)(()=>({name:tD.find(e=>"name"===e.type)?.fieldKey,email:tD.find(e=>"email"===e.type)?.fieldKey,phone:tD.find(e=>"phone"===e.type)?.fieldKey}),[tD]),tZ=(0,s.useMemo)(()=>tD.filter(e=>"name"===e.type).map(e=>e.fieldKey),[tD]),tX=tZ.length>1,[t0,t1]=tX?V(tw[tZ[0]]??"",tZ.slice(1).map(e=>tw[e]??"").join(" ")):["",""],t2=tX?[t0,t1].filter(Boolean).join(" "):tZ.map(e=>(tw[e]??"").trim()).filter(Boolean).join(" "),t4=tJ.email?tw[tJ.email]??"":"",t6=tJ.phone?tw[tJ.phone]??"":"",t5=f[tk]??f[0],[t3,t8]=(0,s.useState)({status:"idle"}),[t7,t9]=(0,s.useState)(""),[ie,it]=(0,s.useState)(""),[ii,io]=(0,s.useState)(!1),[ir,il]=(0,s.useState)(""),ia=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=ia.current;if(!ie||!e)return;let t=document.activeElement;e.focus();let i=t=>{if("Escape"!==t.key||ii||(t.preventDefault(),it("")),"Tab"!==t.key)return;let i=Array.from(e.querySelectorAll("button:not(:disabled)")),n=i[0],o=i[i.length-1];t.shiftKey&&(document.activeElement===n||document.activeElement===e)?(t.preventDefault(),o?.focus()):t.shiftKey||document.activeElement!==o&&document.activeElement!==e||(t.preventDefault(),n?.focus())};return e.addEventListener("keydown",i),()=>{e.removeEventListener("keydown",i),t?.focus()}},[ie,ii]);let[is,id]=(0,s.useState)(!1),[ic,iu]=(0,s.useState)(null),[ip,im]=(0,s.useState)(null),ih=(0,s.useRef)(null),ig=(0,s.useRef)(!1),iy=(0,s.useRef)(!1),ib=(0,s.useRef)(!1),[ix,iw]=(0,s.useState)(!1),[iv,ik]=(0,s.use
1State)(""),i_=(0,s.useRef)(!1);(0,s.useEffect)(()=>{v.delete(k(tp))},[tp]);let iS=(0,s.useRef)(!1),iC=(0,s.useRef)(!1),iT=(0,s.useRef)(null),ij=eC?.skipPrefilledIdentity===!0,i$=eC?.prefillIdentityFromLink===!0||ij,[iK,iE]=(0,s.useState)(!1),[iI,iP]=(0,s.useState)(!1),[iL,iO]=(0,s.useState)(null),iN=(0,s.useRef)(!1);(0,s.useEffect)(()=>{if(eX||!i$||iN.current)return;iN.current=!0;let e=function(){try{let e=new URLSearchParams(window.location.search),t=(...t)=>t.map(t=>(e.get(t)??"").trim()).find(Boolean)??"";return{name:t("name","full_name","glue_name","glue_full_name"),first:t("fname","first_name","glue_fname","glue_first_name"),last:t("lname","last_name","glue_lname","glue_last_name"),email:t("email","glue_email"),phone:t("phone","mobile","phone_number","glue_phone","glue_mobile","glue_phone_number")}}catch{return null}}(),t=e?e.name||[e.first,e.last].filter(Boolean).join(" "):"";if(!e||!t||!e.email||!e.phone||!tZ.length||!tJ.email||!tJ.phone)return;let i={};A(i,tZ,t,e.first,e.last),i[tJ.email]=e.email,i[tJ.phone]=e.phone,iO(i),tv(e=>({...e,...i}))},[eX,i$,tZ,tJ]);let iA=ti.findIndex((e,t)=>tF(t)),iV=ij&&ti[iA]?.type==="fields"?tq(iA):[],iB=iV.filter(e=>B.includes(e.type)),iD=iB.length>0&&iB.length===iV.length,iR=iD?tz(iA):iA,iW=!!iL&&iB.length>0&&ti[iR]?.type==="fields"&&iB.every(e=>{let t;return void 0!==iL[e.fieldKey]&&tw[e.fieldKey]===iL[e.fieldKey]&&(t=(tw[e.fieldKey]??"").trim(),"name"===e.type?tX?/\p{L}/u.test(e.fieldKey===tZ[0]?t0:t1):t.length>=2:"email"===e.type?D(t)&&!H(t)&&!q(t):"phone"===e.type&&!N(O(t5.dial,t)))}),iU=iK?iB.find(e=>tT[e.fieldKey])?.fieldKey??"":"",iF=(0,s.useCallback)(()=>iP(!0),[]),iz=(0,s.useCallback)(e=>{iP(!0),iE(!1),(0,s.startTransition)(()=>tg(iA)),function e(t,i=60){if("u"<typeof document)return;let n=document.getElementById(t);n?n.focus():i>0&&window.requestAnimationFrame(()=>e(t,i-1))}(e)},[iA]);(0,s.useEffect)(()=>{!iW||iI||iK||ix||iy.current||"steps"!==ty||th!==iA||(iE(!0),iR!==iA&&(0,s.startTransition)(()=>tg(iR)))},[iW,iI,iK,ix,ty,th,iA,iR]),(0,s.useEffect)(()=>{iU&&iz(`${e1}-${iU}`)},[iU,iz,e1]);let iM=(0,s.useRef)(null),iq=(0,s.useMemo)(()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return"Australia/Sydney"}},[]),iH=(0,s.useMemo)(()=>{try{return new Intl.DateTimeFormat(void 0,{timeZoneName:"short"}).formatToParts(new Date).find(e=>"timeZoneName"===e.type)?.value??""}catch{return""}},[]),iQ=(0,s.useMemo)(()=>{let e=iq.split("/").pop()?.replace(/_/g," ")??"";return e?`${e} time${iH?` (${iH})`:""}`:iH},[iq,iH]),iY=(0,s.useMemo)(()=>{let e=new Set(tD.map(e=>e.calendlyQuestion).filter(Boolean));return(t3.data?.questions??[]).filter(t=>t.required&&"phone_number"!==t.type&&!e.has(t.name))},[t3.data,tD]),iG=(0,s.useMemo)(()=>(ev??[]).filter(e=>!!e&&!!(e.key??"").trim()&&!!("redirect"===(e.action??"calendly")?(e.redirectUrl??"").trim():(e.calendlyUrl??"").trim())&&("exists"===e.operator||!!(e.value??"").trim())),[ev]),iJ=(0,s.useCallback)(e=>{let t=j(e.key.trim()).toLowerCase(),i=(e.value??"").trim().toLowerCase();return"exists"===e.operator?!!t:"contains"===e.operator?!!t&&t.includes(i):t===i},[]);(0,s.useEffect)(()=>{iM.current=null},[ts,iG]);let iZ=(0,s.useCallback)(()=>{if(iM.current)return iM.current;let e=ts;for(let t of iG)if((t.action??"calendly")!=="redirect"&&iJ(t)){e=t.calendlyUrl.trim(),eG("booking_form_routed",{form:tp,key:t.key.trim(),value:j(t.key.trim()),to:e});break}return iM.current=e,e}
1,[ts,tp,iG,iJ]),[iX,i0]=(0,s.useState)({});(0,s.useEffect)(()=>{if(eX||!eq)return;let e=new AbortController;return fetch(eq,{signal:e.signal}).then(e=>e.json()).then(e=>{let t=function e(t,i="",n={}){if(!t||"object"!=typeof t)return n;for(let[o,r]of Object.entries(t)){let t=i?`${i}.${o}`:o;null!=r&&("object"==typeof r?i||e(r,o,n):(n[t]=String(r),i&&void 0===n[o]&&(n[o]=String(r))))}return n}(e);(0,s.startTransition)(()=>{i0(t),tv(e=>{let i={...e};for(let e of tD)!i[e.fieldKey]&&t[e.fieldKey]&&(i[e.fieldKey]=t[e.fieldKey]);return i})})}).catch(()=>{}),()=>e.abort()},[eX,eq,tD]);let i1=(0,s.useCallback)(e=>e&&e.includes("{{")?e.replace(/\{\{\s*([\w.]+)\s*\}\}/g,(e,t)=>"dynamic_url"===t&&(eu??"").trim()?eu.trim():iX[t]??j(t)??""):e,[iX,eu]);(0,s.useEffect)(()=>{if(eX)return;let e=!1,t=()=>{e||(0,s.startTransition)(()=>{tv(e=>{let t={...e};if(tZ.some(e=>!t[e])){let e=x("glue_name","glue_full_name","glue_fullname"),i=x("glue_fname","glue_first_name"),n=x("glue_lname","glue_last_name");A(t,tZ,e||[i,n].filter(Boolean).join(" "),i,n)}if(tJ.email&&!t[tJ.email]){let e=x("glue_email","email");e&&(t[tJ.email]=e)}if(tJ.phone&&!t[tJ.phone]){let e=x("glue_phone","glue_mobile","phone");e&&(t[tJ.phone]=e)}for(let e of tD){if(!e.prefillKey||t[e.fieldKey])continue;let i=j(e.prefillKey);i&&(t[e.fieldKey]=i)}return t})})};t();let i=window.setTimeout(t,1200);return()=>{e=!0,window.clearTimeout(i)}},[eX,tJ,tZ,tD]),(0,s.useEffect)(()=>{if(eX||!eQ)return;let e=y("glue_user_id");if(!e)return;let t=new AbortController;return fetch(`${p}?action=prefill&glue_user_id=${encodeURIComponent(e)}`,{signal:t.signal}).then(e=>e.json()).then(e=>{e&&!e.error&&(0,s.startTransition)(()=>{tv(t=>{let i={...t},n=(e,t)=>{e&&t&&!i[e]&&(i[e]=t)};for(let t of tD){let i=e.fields?.[t.fieldKey];"string"==typeof i&&n(t.fieldKey,i)}return A(i,tZ,"string"==typeof e.full_name?e.full_name:""),n(tJ.email,e.email),n(tJ.phone,e.phone),i})})}).catch(()=>{}),()=>t.abort()},[eX,eQ,p,tJ,tZ,tD]);let i2=(0,s.useCallback)(()=>{if(eX)return;iT.current?.abort();let e=new AbortController;iT.current=e,(0,s.startTransition)(()=>t8(e=>"ready"===e.status&&e.data?e:{...e,status:"loading"}));let t=`${p}?action=slots&url=${encodeURIComponent(iZ())}&days=${td}`,i=0;fetch(t,{signal:e.signal}).then(async e=>{i=e.status;let t=await e.json();if(!e.ok)throw Error(t?.error??"Could not load times");(0,s.startTransition)(()=>t8({status:"ready",data:t}))}).catch(t=>{e.signal.aborted||(tm("booking_slots_failed",{status:i}),E("slots failed",{status:i,message:t?.message}),(0,s.startTransition)(()=>t8(e=>"ready"===e.status&&e.data?e:{status:"error",error:t?.message??"Could not load times"})))})},[td,p,eX,iZ,tm]);(0,s.useEffect)(()=>{if(eX){to&&t8({status:"ready",data:function(){let e=[],t=new Date;for(let i=1;i<=5;i++)for(let n=9;n<=16;n+=1){let o=new Date(t);o.setDate(o.getDate()+i),o.setHours(n,n%2?30:0,0,0),e.push(o.toISOString())}return{event:{uri:"",name:"Discovery Call with InvestorKit",duration:15,scheduling_url:""},questions:[{name:"Do you have access to the following?",type:"single_select",position:1,required:!0,answer_choices:["I have a minimum 120K in savings","I have a minimum 120K in equity","I have a minimum 120K in guarantor support","All of the above","None of the above"]}],slots:e}}()});return}if(to)return i2(),()=>iT.current?.abort()},[i2,eX,to]);let i4=(0,s.useMemo)(()=>{let e=new Map;for(let t of t3.data?.slots??[]){let i=new Date(t).toLocaleDateString("en-CA"),n=e.get(i);n?n.push(t):e.set(i,[t])}return e},[t3.data]),i6=(0,s.useMemo)(()=>[...i4.keys()].sort(),[i4]);(0,s.useEffect)(()=>{i6.length&&(0,s.startTransition)(()=>{t9(e=>e&&i6.includes(e)?e:i6[0])})},[i6]);let[i5,i3]=(0,s.useState)("morning"),i8=(0,s.useCallback)(e=>{let t=new Date(e).getHours();return t<12?"morning":t<17?"afternoon":"evening"},[]);(0,s.useEffect)(()=>{if(!t7)return;let e=i4.get(t7)??[];e.length&&(0,s.startTransition)(()=>{i3(t=>e.some(e=>i8(e)===t)?t:i8(e[0]))})},[t7,i4,i8]);let i7=(0,s.useRef)(null),[i9,ne]=(0,s.useState)(null),nt=(0,s.useCallback)(e=>{i7.current=e,ne(e)}
1,[]),[ni,nn]=(0,s.useState)(!1),[no,nr]=(0,s.useState)({start:!0,end:!1});(0,s.useEffect)(()=>{if(!i9)return;let e=()=>{nn(i9.scrollWidth>i9.clientWidth+8);let e=i9.scrollLeft<=4,t=i9.scrollLeft+i9.clientWidth>=i9.scrollWidth-4;nr(i=>i.start===e&&i.end===t?i:{start:e,end:t})};e();let t="u"<typeof ResizeObserver?null:new ResizeObserver(e);return t?.observe(i9),window.addEventListener("resize",e),i9.addEventListener("scroll",e,{passive:!0}),()=>{t?.disconnect(),window.removeEventListener("resize",e),i9.removeEventListener("scroll",e)}},[i9,i6]);let nl=e=>i7.current?.scrollBy({left:240*e,behavior:"smooth"});(0,s.useEffect)(()=>{if(eX||!tu.enabled||"steps"!==ty||tx?.type!=="slots"||"u"<typeof document)return;try{if(window.sessionStorage.getItem("gbf_exit_shown"))return}catch{}let e=e=>{if(!iC.current&&!e.relatedTarget&&!(e.clientY>0)){iC.current=!0;try{window.sessionStorage.setItem("gbf_exit_shown","1")}catch{}eG("booking_exit_intent_shown",{form:tp,slot_selected:!!ie}),(0,s.startTransition)(()=>id(!0))}};return document.addEventListener("mouseout",e),()=>document.removeEventListener("mouseout",e)},[eX,tu.enabled,ty,tx?.type,tp,ie]),(0,s.useEffect)(()=>{if(!ie||tc<=0||eX)return void iu(null);let e=Date.now();(0,s.startTransition)(()=>iu(tc));let t=window.setInterval(()=>{let t=tc-Math.floor((Date.now()-e)/1e3);t<=0?(e=Date.now(),(0,s.startTransition)(()=>iu(tc)),i2()):(0,s.startTransition)(()=>iu(t))},1e3);return()=>window.clearInterval(t)},[ie,tc,eX,i2]),(0,s.useEffect)(()=>{ie&&t3.data&&(t3.data.slots.includes(ie)||(0,s.startTransition)(()=>{it(""),il("That time was just taken. Please pick another.")}))},[t3.data,ie]);let na=(0,s.useMemo)(()=>{let e=[];for(let t of(e_?.passParams??"").split("\n")){let i=t.search(/[=:]/);if(-1===i)continue;let n=t.slice(0,i).trim(),o=t.slice(i+1).trim();n&&o&&e.push({urlParam:n,sourceField:o})}return[...e,...ek??[]]},[e_?.passParams,ek]),ns=(0,s.useCallback)(e=>{let t=i1(e??"").trim();if(t){eG("booking_redirected",{form:tp,to:t});try{let e=new URL(t,window.location.origin);for(let t of(e.searchParams.set("booked","1"),ih.current&&e.searchParams.set("sid",ih.current),na)){if(!t.urlParam||!t.sourceField)continue;let i="",n=tD.find(e=>e.fieldKey===t.sourceField||e.label===t.sourceField);n?(i=tH(n)?tw[n.fieldKey]??"":"","phone"===n.type&&i&&(i=O(t5.dial,i))):i=j(t.sourceField),i&&e.searchParams.set(t.urlParam,i)}window.location.assign(e.toString())}catch{window.location.assign(t)}}},[tp,na,tD,tH,tw,t5.dial,i1]),nd=(0,s.useRef)(!1);(0,s.useEffect)(()=>{if(!eX&&!nd.current){for(let e of iG)if((e.action??"calendly")==="redirect"&&iJ(e)){nd.current=!0,eG("booking_form_routed",{form:tp,key:e.key.trim(),value:j(e.key.trim()),to:e.redirectUrl.trim()}),ns(e.redirectUrl.trim());return}}},[eX,iG,iJ,tp,ns]),(0,s.useEffect)(()=>{if("success"!==ty||!eJ||eX)return;let e=window.setTimeout(()=>ns(eJ),1e3*Math.max(0,eZ));return()=>window.clearTimeout(e)},[ty,eJ,eZ,eX,ns]),(0,s.useEffect)(()=>{"success"!==ty||eX||!e.onComplete||ig.current||(ig.current=!0,e.onComplete({name:t2.trim(),...tX?{firstName:t0,lastName:t1}:{},email:t4.trim(),phoneCountryCode:t5.dial,phone:t6.replace(/\D/g,""),submissionId:ih.current??void 0,formName:tp}))},[ty,eX,e.onComplete,t2,tX,t0,t1,t4,t5.dial,t6,tp]),(0,s.useEffect)(()=>{eX||"steps"!==ty||tx?.type==="redirect"&&ns(tx.redirectUrl||eJ)},[eX,ty,tx,ns,eJ]),(0,s.useEffect)(()=>{if(eX||"steps"!==ty||tx?.type!=="embed")return;let e=e=>{"string"==typeof e.origin&&e.origin.endsWith("calendly.com")&&e.data?.event==="calendly.event_scheduled"&&(eG("booking_confirmed",{form:tp,via:"embed"}),eJ&&window.setTimeout(()=>ns(eJ),1e3*Math.max(0,eZ)))};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[eX,ty,tx?.type,tp,eJ,eZ,ns]);let nc=(0,s.useCallback)(()=>{iS.current||(iS.current=!0,eG("booking_form_started",{form:tp}))},[tp]),nu=(0,s.useCallback)((e,t)=>{tv(i=>({...i,[e]:t}))},[]),np=(0,s.useCallback)((e,t,i)=>{tK(i=>(i[e]??"")===t?i:{...i,[e]:t}),t&&tE.current[e]!==t&&(tE.current[e]=t,eG("booking_email_hint_shown",{form:tp,reason:i??"domain_typo"}))},[tp,eG]);(0,s.useCallback)((e,t)=>{let i=t$[e];if(i){nu(e,i),tK(t=>({...t,[e]:""})),tj(t=>{if(!t[e])return t;let i={...t};return delete i[e],i}),eG("booking_email_hint_accepted",{form:tp,reason:"applied"});try{document.getElementById(t)?.focus()}catch{}}},[t$,tp,nu,eG]);let nf=(0,s.useCallback)(()=>{let e={},t={};for(let i of tD){if(!tH(i))continue;let n=(tw[i.fieldKey]??"").trim();n&&(e[i.fieldKey]="phone"===i.type?O(t5.dial,n):n),i.attioSlug&&(t[i.fieldKey]=i.attioSlug)}
1for(let[t,i]of(tX&&(t0&&(e[tZ[0]]=t0),t1&&(e[tZ[1]]=t1),t2&&(e.name=t2)),Object.entries(tS)))i&&(e[t]=i);let i=iY.find(e=>"single_select"===e.type);return i&&tS[i.name]&&(e.qualifier=tS[i.name]),{fields:e,attioMap:t}},[tS,iY,t5.dial,t1,tD,tH,t2,t0,tZ,tX,tw]),nm=(0,s.useCallback)(async e=>{let{fields:t,attioMap:i}=nf(),n=T(tp),o=!iy.current;K(`persist ${o?"submit":"update"} — step ${e}/${tn}`,{action:o?"submit":"update",submission_id:ih.current??"(none yet)",email:t4.trim()||void 0,fieldKeys:Object.keys(t)});let r=await fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:o?"submit":"update",phone_rule:1,submission_id:ih.current??void 0,hp:tI||void 0,cf_token:tA.current||void 0,elapsed_ms:"u">typeof performance?Math.round(performance.now()-tL.current):void 0,form_name:tp,step:e,steps_total:tn,calendly_url:to||tr?iZ():void 0,attio_sync:eQ,fillout_form_id:eF&&eM?eM:void 0,webhook_url:eH||void 0,attio_map:i,labels:Object.fromEntries(tD.map(e=>[e.fieldKey,e.label])),fields:t,page_url:window.location.href,referrer:"u">typeof document?document.referrer:void 0,workspace_id:eC?.workspaceId||window.__glueConfig?.workspaceId,glue:n})}).catch(e=>{throw Object.assign(e instanceof Error?e:Error("Network request failed"),{formStatus:0})}),l=await r.json().catch(()=>null);if(!r.ok||(o?!l?.submission_id:l?.ok!==!0)){E("submission rejected",{status:r.status});let e={formStatus:r.status,formCode:"string"==typeof l?.error?l.error:""};if(l?.error==="invalid_phone")throw Object.assign(Error("Check the number and country code"),e);if(l?.error==="captcha_failed")throw Object.assign(Error("Verification expired. Please try again."),e);throw Object.assign(Error("Your details could not be saved. Please try again."),e)}l?.submission_id&&(ih.current=l.submission_id),iy.current=!0,eG(o?"booking_form_submitted":"booking_step_completed",{submission_id:ih.current,form:tp,step:e,of:tn,email:t4.trim()||void 0}),!i_.current&&t4.trim()&&(i_.current=!0,function(e,t){try{let i=window.glue?.journey?.identify;if("function"!=typeof i)return void E("identify skipped — glue SDK not present on window",{email:e});i(e,t),K("identify → glue",{email:e,traits:t})}catch(e){E("identify threw",e)}}(t4.trim(),{name:t2.trim()||void 0,phone:t6.trim()?O(t5.dial,t6):void 0,...t.stage?{stage:t.stage}:{}}))},[eQ,nf,t5.dial,t4,p,tD,eF,eM,tp,t2,tr,to,tI,t6,iZ,tn,eH,eC?.workspaceId,eG]),nh=(0,s.useCallback)(e=>{let t=ti[e],i=t?.after==="redirect"?i1(t.redirectUrl||eJ).trim():"",n=tz(e);K(`step ${e} → ${i?"redirect":t?.after==="success"||-1===n?"success":`step ${n}`}`,{from:e,after:t?.after,redirectTarget:i||void 0}),(0,s.startTransition)(()=>{il(""),i||(t?.after==="success"||t?.after==="redirect"||-1===n?tb("success"):tg(n))}),i&&window.setTimeout(()=>ns(i),50)},[ti,tz,eJ,ns,i1]);(0,s.useEffect)(()=>{if("steps"!==ty||tF(th))return;let e=tz(th),t=tM(th);(-1!==e||-1!==t)&&(0,s.startTransition)(()=>tg(-1!==e?e:t))},[ty,th,tF,tz,tM]);let ng=(0,s.useCallback)(e=>{var t;let i={},n=tX?V(tw[tZ[0]]??"",tZ.slice(1).map(e=>tw[e]??"").join(" ")):null;for(let t of tq(e)){let e=(tw[t.fieldKey]??"").trim();if("name"===t.type)if(n){let e=t.fieldKey===tZ[0]?n[0]:n[1];/\p{L}/u.test(e)||(i[t.fieldKey]=t.fieldKey===tZ[0]?"Please enter your first name":"Please enter your last name")}else e.length<2&&(i[t.fieldKey]="Please enter your full name");else if("email"===t.type){let n=D(e)?H(e):"";D(e)?n&&(i[t.fieldKey]="Check your email address",eG("booking_email_invalid",{form:tp,reason:n})):i[t.fieldKey]="Please enter a valid email address";let o=q(e);np(t.fieldKey,o,o?function(e,t){let i=e=>e.slice(e.lastIndexOf("@")+1).toLowerCase().split(".")[0];return i(e)===i(t)?"tld_typo":"domain_typo"}(e,o):void 0)}else if("phone"===t.type){let n=N(O(t5.dial,e));n&&(i[t.fieldKey]="Check the number and country code",tm("booking_phone_invalid",{reason:n}))}else t.required&&!e&&(i[t.fieldKey]="select"===t.type?"Please select an option":"Required")}if(e===tG&&tY)for(let e of iY)tS[e.name]?.trim()||(i[e.name]="single_select"===e.type?"Please select an option":"Required");n&&2===tZ.length&&tq(e).some(e=>e.fieldKey===tZ[0])&&(n[0]!==(tw[tZ[0]]??"")||n[1]!==(tw[tZ[1]]??""))&&tv(e=>({...e,[tZ[0]]:n[0],[tZ[1]]:n[1]})),tj(i);let o=Object.keys(i);return o.length&&tm("booking_form_invalid",{step:e+1,of:tn,fields:(t=tq(e),[...new Set(o.map(e=>{let i=t.find(t=>t.fieldKey===e)?.type??"question";return"question"===i||P.includes(i)?i:"other"}))].sort().join(","))}),0===o.length},[t5.dial,tS,iY,tq,tY,tG,tw,tn,tm,eG,tp,np,tX,tZ,tv]),ny=(0,s.useCallback)(async e=>
1{if(e.preventDefault(),!eX&&!ib.current&&ng(th)){ib.current=!0,iw(!0),ik("");try{await nm(th+1),nh(th)}catch(e){if("invalid_phone"===L({error:e}).reason){let e=Object.fromEntries(tD.filter(e=>"phone"===e.type).map(e=>[e.fieldKey,"Check the number and country code"]));tj(t=>({...t,...e})),ik("")}else ik(e instanceof Error&&"Verification expired. Please try again."===e.message?e.message:"Your details could not be saved. Please try again.");tm("booking_form_failed",{error:e,step:th+1,of:tn})}finally{ib.current=!1,iw(!1),tA.current="";try{null!==tV.current&&window.turnstile?.reset?.(tV.current)}catch{}}}},[nh,tD,eX,nm,th,tn,tm,ng]),nb=(0,s.useCallback)(()=>{let e={...tS};for(let t of tD){if(!tH(t))continue;let i=(tw[t.fieldKey]??"").trim();t.calendlyQuestion&&i&&(e[t.calendlyQuestion]="phone"===t.type?O(t5.dial,i):i)}return e},[tS,t5.dial,tD,tH,tw]),nx=(0,s.useCallback)(()=>{if(!ie||ii||eX)return;io(!0),il(""),eG("booking_slot_selected",{form:tp,slot:ie});let e=0,t=!1,i=!1;fetch(p,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"book",submission_id:ih.current,form_name:tp,url:iZ(),start_time:ie,invitee:{name:t2.trim(),email:t4.trim(),phone:O(t5.dial,t6),timezone:iq},answers:nb(),webhook_url:eH||void 0,glue:T(tp)})}).then(async n=>{e=n.status;let o=await n.json();if(t=!0,n.ok&&o?.booked){i=!0,K("booking confirmed",{slot:ie,event:o.event?.name}),eG("booking_confirmed",{form:tp,slot:ie,event:o.event?.name});let e=ti[th],t=e?.after==="redirect"?i1(e.redirectUrl||eJ).trim():"";return t?void ns(t):void(0,s.startTransition)(()=>{im({startTime:ie,eventName:o.event?.name??"",duration:o.event?.duration??15,cancelUrl:o.cancel_url,rescheduleUrl:o.reschedule_url}),id(!1),tb("success")})}if(o?.error==="slot_taken"){K("booking slot_taken — slot removed from grid",{slot:ie}),eG("booking_slot_taken",{form:tp,slot:ie}),(0,s.startTransition)(()=>{il("That time was just taken. Please pick another."),it(""),t8(e=>e.data?{...e,data:{...e.data,slots:e.data.slots.filter(e=>e!==ie)}}:e)});return}if(o?.error==="missing_answer"){E("booking missing_answer",{question:o.question}),tm("booking_book_failed",{status:n.status,code:"missing_answer"}),(0,s.startTransition)(()=>il(`Please go back and answer: "${o.question}"`));return}E(`booking failed — HTTP ${n.status}`,o),tm("booking_book_failed",{status:n.status,code:o?.error}),(0,s.startTransition)(()=>il(o?.message??"Something went wrong. Please try again."))}).catch(n=>{E("booking network error",n),i||tm("booking_book_failed",{status:t?-1:e}),(0,s.startTransition)(()=>il("Connection problem. Please check your internet and try again."))}).finally(()=>io(!1))},[ii,nb,t5.dial,t4,p,tp,t2,eX,t6,iZ,ie,iq,ti,th,eJ,ns,eH,tm]),nw=(0,s.useCallback)(()=>{let e=iZ();try{let t=new URL(e);t2.trim()&&t.searchParams.set("name",t2.trim()),t4.trim()&&t.searchParams.set("email",t4.trim()),t6.trim()&&t.searchParams.set("a1",O(t5.dial,t6));let i=T();for(let[e,n]of Object.entries(i.utm))t.searchParams.set(e,n);return i.user_id&&t.searchParams.set("salesforce_uuid",i.user_id),t.searchParams.set("hide_gdpr_banner","1"),t.toString()}catch{return e}},[iZ,t2,t4,t6,t5.dial]),nv=(0,s.useCallback)(e=>new Date(e).toLocaleTimeString(void 0,{hour:"numeric",minute:"2-digit",hour12:!0}),[]),nk=(0,s.useCallback)((e,t)=>nv(new Date(new Date(e).getTime()+6e4*t).toISOString()),[nv]),n_={display:"block",fontSize:14.5,fontWeight:600,color:eA,marginBottom:8},nS=(0,t.jsx)("span",{style:{color:eV,fontWeight:400},children:" *"}),nC=e=>e?(0,t.jsx)("p",{style:{margin:"6px 0 0",fontSize:13,color:h},children:e}):null,nT=ti.map((e,t)=>t).filter(tF),nj=iK&&iD?nT.filter(e=>e!==iA):nT,n$=e=>(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[tM(e)>=0&&!(iK&&iD&&tM(e)===iA)?(0,t.jsxs)(n.Button,{type:"button",className:"gbf-link","aria-label":"Back",onPress:()=>(0,s.startTransition)(()=>tg(tM(e))),style:{display:"flex",alignItems:"center",gap:6,minHeight:44},variant:"ghost",children:[(0,t.jsx)(o.IconChevronLeft,{"aria-hidden":"true"})," Back"]}):(0,t.jsx)("span",{}),(e=>{if(nj.length<=1)return null;let i=Math.max(0,nj.indexOf(e));return(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,t.jsx)("div",{style:{display:"flex",gap:4},"aria-hidden":"true",children:nj.map((e,n)=>(0,t.jsx)("div",{style:{width:n===i?18:6,height:6,borderRadius:3,background:n<=i?eO:eB,transition:"width .2s ease"}},e))}),(0,t.jsx)("span",{style:{fontSize:12,fontWeight:600,letterSpacing:"0.04em",textTransform:"uppercase",color:eV},children:i>=nj.length-1?"Last step":`Step ${i+1} of ${nj.length}`})]})})(e)]}),nK=`
2        .${e1} * { box-sizing: border-box; }
3        .${e1} .gbf-input, .${e1} .gbf-select {
4            width: 100%; height: 48px; padding: 0 14px;
5            border: 1px solid ${eB}; border-radius: ${Math.min(eR,12)}px;
6            background: ${eD}; color: ${eA};
7            font: inherit; font-size: 16px; outline: none;
8            transition: border-color .15s ease, box-shadow .15s ease;
9            appearance: none; -webkit-appearance: none;
10        }
11        .${e1} .gbf-input::placeholder { color: ${eV}; }
12        .${e1} .gbf-input:focus, .${e1} .gbf-select:focus {
13            border-color: ${eO};
14            box-shadow: 0 0 0 3px color-mix(in srgb, ${eO} 13.33%, transparent);
15        }
16        .${e1} .gbf-invalid { border-color: ${h} !important; }
17        .${e1} .gbf-textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; }
18        .${e1} .gbf-name-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 136px), 1fr)); gap: 20px 12px; }
19        .${e1} .gbf-btn {
20            width: 100%; height: auto; min-height: 50px; padding: 12px 20px; border: none; cursor: pointer;
21            border-radius: ${Math.min(eR,12)}px; background: ${eO};
22            color: var(--ikit-inverse-text); font: inherit; font-size: 16px; font-weight: 600;
23            line-height: 1.3; white-space: normal; text-align: center;
24            transition: filter .15s ease, transform .05s ease;
25        }
26        .${e1} .gbf-btn:active { transform: scale(.99); }
27        .${e1} .gbf-btn:disabled { opacity: .6; cursor: default; filter: none; }
28        .${e1} .gbf-days {
29            display: flex; gap: 8px; overflow-x: auto; padding: 4px;
30            scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 4px;
31        }
32        /* Fade only the edge that has more days behind it, so the first and
33           last chips (and their focus rings) are never washed out. */
34        .${e1} .gbf-days[data-fade="end"] {
35            -webkit-mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%);
36            mask-image: linear-gradient(to right, black calc(100% - 32px), transparent 100%);
37        }
38        .${e1} .gbf-days[data-fade="start"] {
39            -webkit-mask-image: linear-gradient(to left, black calc(100% - 32px), transparent 100%);
40            mask-image: linear-gradient(to left, black calc(100% - 32px), transparent 100%);
41        }
42        .${e1} .gbf-days[data-fade="both"] {
43            -webkit-mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
44            mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
45        }
46        .${e1} .gbf-days::-webkit-scrollbar { display: none; }
47        .${e1} .gbf-day {
48            flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
49            min-width: 72px; height: auto; min-height: 56px; padding: 8px 12px;
50            cursor: pointer; scroll-snap-align: start; white-space: normal;
51            border: 1px solid ${eB}; border-radius: ${Math.min(eR,12)}px;
52            background: ${eD}; font: inherit; line-height: 1.25; text-align: center;
53            font-variant-numeric: tabular-nums;
54            transition: border-color .15s ease, background .15s ease;
55        }
56        .${e1} .gbf-day[data-selected="true"] {
57            background: ${eA}; border-color: ${eA};
58        }
59        .${e1} .gbf-arrow {
60            position: absolute; top: 50%; transform: translateY(-50%);
61            width: 32px; height: 32px; border-radius: 50%;
62            display: flex; align-items: center; justify-content: center;
63            border: 1px solid ${eB}; background: ${eD};
64            color: ${eA}; font-size: 18px; line-height: 1;
65            min-width: 32px; cursor: pointer; z-index: 2; padding: 0;
66            box-shadow: 0 2px 8px color-mix(in srgb, var(--foreground) 12%, transparent);
67            transition: border-color .15s ease;
68        }
69        /* 32px to look at, 44px to hit. */
70        .${e1} .gbf-arrow::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
71        .${e1} .gbf-seg {
72            flex: 1 1 0; min-width: 0; height: auto; min-height: 44px; padding: 6px 8px;
73            flex-wrap: wrap; gap: 0 4px;
74            cursor: pointer; font: inherit; line-height: 1.2; white-space: normal; text-align: center;
75            font-size: 13.5px; font-weight: 600; border: none;
76            border-radius: ${Math.min(eR,10)}px;
77            background: transparent; color: ${eV};
78            transition: background .15s ease, color .15s ease, box-shadow .15s ease;
79        }
80        .${e1} .gbf-seg:disabled { opacity: .4; cursor: default; }
81        .${e1} .gbf-seg-count { font-weight: 500; font-variant-numeric: tabular-nums; }
82        .${e1} .gbf-seg-count::before { content: "\xb7"; margin-right: 4px; }
83        /* Phones: label over count on every tab, so no tab wraps on its own. */
84        @media (max-width: 480px) {
85            .${e1} .gbf-seg { flex-direction: column; }
86            .${e1} .gbf-seg-count::before { content: none; }
87        }
88        @media (max-width: 360px) {
89            .${e1} .gbf-seg { padding: 6px 4px; font-size: 12.5px; }
90        }
91        .${e1} .gbf-seg[data-selected="true"] {
92            background: ${eD}; color: ${eA};
93            box-shadow: 0 1px 3px color-mix(in srgb, var(--foreground) 12%, transparent);
94        }
95        .${e1} .gbf-panel {
96            max-height: 296px; overflow-y: auto; padding: 4px 6px 16px 4px;
97            scrollbar-width: thin; scrollbar-color: ${eB} transparent;
98            -webkit-mask-image: linear-gradient(to bottom, black 0, black calc(100% - 20px), transparent 100%);
99            mask-image: linear-gradient(to bottom, black 0, black calc(100% - 20px), transparent 100%);
100        }
101        .${e1} .gbf-panel::-webkit-scrollbar { width: 5px; }
102        .${e1} .gbf-panel::-webkit-scrollbar-thumb { background: ${eB}; border-radius: 3px; }
103        .${e1} .gbf-times {
104            display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px;
105        }
106        .${e1} .gbf-time {
107            width: 100%; height: auto; min-height: 46px; cursor: pointer; font: inherit; font-size: 15px; font-weight: 600;
108            border: 1px solid color-mix(in srgb, ${eO} 33.33%, transparent); border-radius: ${Math.min(eR,12)}px;
109            color: ${eN}; background: ${eD};
110            font-variant-numeric: tabular-nums;
111            transition: border-color .15s ease, background .15s ease, color .15s ease;
112        }
113        .${e1} .gbf-time[data-selected="true"] {
114            background: ${eO}; border-color: ${eO}; color: var(--ikit-inverse-text);
115        }
116        .${e1} .gbf-time[data-soonest="true"]:not([data-selected="true"]) {
117            flex-direction: column; gap: 1px; padding: 5px 6px;
118            border: 1.5px solid ${g}; color: color-mix(in srgb, ${g} 85%, #000);
119            background: color-mix(in srgb, ${g} 6%, ${eD});
120        }
121        .${e1} .gbf-time[data-soonest="true"][data-selected="true"] { flex-direction: column; gap: 1px; padding: 5px 6px; }
122        .${e1} .gbf-soonest-label { font-size: 11px; font-weight: 600; line-height: 1.2; white-space: normal; }
123        .${e1} .gbf-skeleton {
124            min-height: 46px; border-radius: ${Math.min(eR,12)}px;
125            background: color-mix(in srgb, ${eB} 33.33%, transparent); animation: ${e1}-pulse 1.2s ease-in-out infinite;
126        }
127        @keyframes ${e1}-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
128        @media (prefers-reduced-motion: reduce) { .${e1} .gbf-skeleton { animation: none; } }
129        .${e1} .gbf-link {
130            background: none; border: none; padding: 0; cursor: pointer;
131            font: inherit; font-size: 14px; color: ${eV};
132        }
133        .${e1} .gbf-identity {
134            display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
135            padding: 10px 6px 10px 14px; border: 1px solid ${eB}; border-radius: ${Math.min(eR,12)}px;
136            background: color-mix(in srgb, ${eO} 5%, ${eD});
137        }
138        /* 44px tap target; the negative margin keeps it from padding out the first line. */
139        .${e1} .gbf-change {
140            min-height: 44px; margin: -10px 0; padding: 0 10px; color: ${eN}; font-weight: 600;
141            text-decoration: underline; text-underline-offset: 3px;
142        }
143        .${e1} .gbf-chip {
144            display: inline-flex; align-items: center; padding: 4px 10px;
145            border-radius: 999px; background: color-mix(in srgb, ${eO} 7.84%, transparent); color: ${eN};
146            font-size: 12.5px; font-weight: 600; white-space: nowrap;
147        }
148        .${e1} .gbf-sr {
149            position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
150            overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
151        }
152        /* Hover only where a real pointer hovers: on touch, :hover sticks
153           after a tap and makes an unselected chip look chosen. */
154        @media (hover: hover) {
155            .${e1} .gbf-btn:hover { filter: brightness(1.06); }
156            .${e1} .gbf-day:hover { border-color: ${eA}; }
157            .${e1} .gbf-arrow:hover { border-color: ${eO}; }
158            .${e1} .gbf-time:hover { border-color: ${eO}; }
159            .${e1} .gbf-time[data-soonest="true"]:not([data-selected="true"]):hover {
160                border-color: ${g}; background: color-mix(in srgb, ${g} 10%, ${eD});
161            }
162            .${e1} .gbf-link:hover { color: ${eA}; }
163        }
164        /* One visible keyboard focus ring for every slot-step control. The
165           strip and panel carry 4px padding so the ring is never clipped. */
166        .${e1} :is(.gbf-btn, .gbf-day, .gbf-arrow, .gbf-seg, .gbf-time, .gbf-link, .gbf-focus):is(:focus-visible, [data-focus-visible="true"]) {
167            outline: 2px solid ${eN}; outline-offset: 2px; box-shadow: none;
168        }
169        .${e1} :is(.gbf-day, .gbf-time)[data-selected="true"]:is(:focus-visible, [data-focus-visible="true"]) {
170            outline-color: ${eA};
171        }
172    `,nE=t3.data,nI=t7?i4.get(t7)??[]:[],nP={morning:0,afternoon:0,evening:0};for(let e of nI)nP[i8(e)]++;let nL=nI.length>10,nO=nL?nI.filter(e=>i8(e)===i5):nI,nN=nE?.slots?.[0],nA=nE?.event?.duration??15,nV=(0,s.useMemo)(()=>[`${nA} min`,...(ta.chips??"").split("·").map(e=>e.trim()).filter(Boolean)],[nA,ta.chips]),nB=e=>(0,t.jsxs)("div",{onFocus:ij&&B.includes(e.type)?iF:void 0,children:[(0,t.jsxs)("label",{style:n_,htmlFor:`${e1}-${e.fieldKey}`,children:[i1(e.label),e.required?nS:null]}),(e=>{let i,n=`${e1}-${e.fieldKey}`,o=tT[e.fieldKey]?" gbf-invalid":"",l=tw[e.fieldKey]??"",s={name:e.fieldKey,required:e.required,toolparamdescription:e.toolDescription||("email"===e.type?"Email address.":"phone"===e.type?"Mobile number, for example 0400 000 000 for Australia.":"name"!==e.type?"":tX?e.fieldKey===tZ[0]?"First name.":"Last name.":"Full name, first and last.")||i1(e.label)};return"phone"===e.type?(0,t.jsxs)("div",{style:{display:"flex",alignItems:"stretch",border:`1px solid ${tT[e.fieldKey]?h:eB}`,borderRadius:Math.min(eR,12),background:eD,overflow:"hidden"},children:[(0,t.jsx)("select",{"aria-label":"Country code",name:`${e.fieldKey}_country`,toolparamdescription:"Country calling code for the phone number. Australia (+61) is selected by default.",value:tk,onChange:e=>t_(Number(e.target.value)),style:{border:"none",outline:"none",background:"transparent",fontSize:16,color:eA,padding:"0 10px",cursor:"pointer"},children:f.map((e,i)=>{let n;return(0,t.jsx)("option",{value:i,children:(n=f.some(t=>t!==e&&t.dial===e.dial),`${e.flag} ${n?`${e.code} `:""}+${e.dial}`)},e.code)})}),(0,t.jsx)("div",{style:{width:1,background:eB,margin:"14px 6px"}}),(0,t.jsx)(r.Input,{id:n,...s,type:"tel",autoComplete:"tel",inputMode:"tel",placeholder:e.placeholder||t5.placeholder,value:l,onChange:t=>nu(e.fieldKey,t.target.value),onFocus:nc,style:{flex:1,border:"none",outline:"none",background:"transparent",fontSize:16,color:eA,padding:"12px 14px",minWidth:0}})]}):"email"===e.type?(0,t.jsxs)("div",{style:{position:"relative"},children:[(0,t.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",style:{position:"absolute",left:14,top:"50%",transform:"translateY(-50%)",pointerEvents:"none"},children:[(0,t.jsx)("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2",stroke:eV,strokeWidth:"1.6"}),(0,t.jsx)("path",{d:"M3.5 7l8.5 6 8.5-6",stroke:eV,strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,t.jsx)(r.Input,{id:n,...s,className:`gbf-input${o}`,style:{paddingLeft:40},type:"email",autoComplete:"email",inputMode:"email",placeholder:e.placeholder||"e.g. [email protected]",value:l,onChange:t=>nu(e.fieldKey,t.target.value),onFocus:nc})]}):"select"===e.type&&e.choices.length>0?(0,t.jsxs)("div",{style:{position:"relative"},children:[(0,t.jsxs)("select",{id:n,...s,className:`gbf-select${o}`,value:l,onChange:t=>nu(e.fieldKey,t.target.value),onFocus:nc,style:{color:l?eA:eV,paddingRight:38,cursor:"pointer"},children:[(0,t.jsx)("option",{value:"",disabled:!0,children:e.placeholder||"Select"}),e.choices.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)(ec,{color:eV})]}):"textarea"===e.type?(0,t.jsx)(a.TextArea,{id:n,...s,className:`gbf-input gbf-textarea${o}`,rows:3,placeholder:e.placeholder,value:l,onChange:t=>nu(e.fieldKey,t.target.value),onFocus:nc}):(0,t.jsx)(r.Input,{id:n,...s,className:`gbf-input${o}`,type:"text",autoComplete:"name"===e.type?(i=e.fieldKey,tX?i===tZ[0]?"given-name":"family-name":"name"):"off",placeholder:e.placeholder||("name"===e.type?tX?e.fieldKey===tZ[0]?"e.g. Jane":"e.g. Smith":"e.g. Jane Smith":""),value:l,onChange:t=>nu(e.fieldKey,t.target.value),onFocus:nc})})(e),nC(tT[e.fieldKey])]},e.fieldKey),nD=ti.filter(e=>"fields"===e.type&&!1!==e.enabled),nR=(w=i1(tx?.name||tx?.title||""),_=i1(tx?.cta??"")||"Continue",C=Math.max(0,nD.indexOf(tx)),$=nD.length,I=tp.toLowerCase().split(/[^a-z]+/).filter(
172Boolean).slice(0,6),R=$>1,W=["submit",...I.length?I:["form"],...R?["step",m[C]??"next"]:[]].join("_"),U=R?`step (${C+1} of ${$})`:"form",F=w?`the "${w}" ${U}`:R?`step ${C+1} of ${$} of this form`:"this form",{name:W,description:`Fills in ${F} for the person, who then presses "${_}" to send it.`}),nW=tx?.type==="fields"?{toolname:tx.toolName||nR.name,tooldescription:tx.toolDescription||nR.description}:{},nU={initial:{opacity:0,x:16},animate:{opacity:1,x:0},exit:{opacity:0,x:-16},transition:{duration:.22,ease:"easeOut"}},[nF,nz]=(0,s.useState)(eX);(0,s.useEffect)(()=>{nz(eX||/(^|\.)framercanvas\.com$/.test(window.location.host))},[eX]);let nM=nF&&("export"===M||/^(copy|export|json)$/i.test((e.jsonConfig??"").trim())),[nq,nH]=(0,s.useState)(null),[nQ,nY]=(0,s.useState)(""),[nG,nJ]=(0,s.useState)("");(0,s.useEffect)(()=>{nF&&nJ(y("dataglue_meta_key")??"")},[nF]),(0,s.useEffect)(()=>{if(!nF||!nG)return;let e=new AbortController;return fetch(`${p}?action=meta`,{headers:{"x-dataglue-key":nG},signal:e.signal}).then(e=>e.ok?e.json():null).then(e=>{e&&nH(e)}).catch(()=>{}),()=>e.abort()},[nF,nG]);let nZ=nF&&(!eX||nG)?(0,t.jsxs)("div",{style:{marginTop:10,padding:"6px 10px",borderRadius:i.sectionTheme.radius,border:`1px dashed ${eB}`,fontSize:11,color:eV,display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,t.jsx)("strong",{style:{color:eO},children:"DataGlue"}),nq?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{children:["Fillout:"," ",eF?nq.fillout.find(e=>e.id===eM)?.name??`⚠ unknown id ${eM}`:"off"]}),(0,t.jsx)("span",{children:"·"}),(0,t.jsxs)("span",{children:["Event:"," ",to||tr?nq.calendly.find(e=>e.url===ta.url)?.name??ta.url:"no calendar step"]}),(0,t.jsx)("span",{children:"·"}),(0,t.jsxs)("span",{children:["Attio ",eQ?"on":"off"]}),(0,t.jsx)("span",{children:"·"}),(0,t.jsxs)("span",{children:["Turnstile ",tO?"on":"⚠ OFF (strict server)"]})]}):nG?(0,t.jsx)("span",{children:"checking wiring…"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.Input,{type:"password",placeholder:"editor key",value:nQ,onChange:e=>nY(e.target.value.trim()),style:{border:`1px solid ${eB}`,borderRadius:6,padding:"2px 6px",fontSize:11,background:eD,color:eA,width:160}}),(0,t.jsx)(n.Button,{type:"button",onPress:()=>{try{window.localStorage.setItem("dataglue_meta_key",nQ)}catch{}nJ(nQ)},style:{border:`1px solid ${eB}`,borderRadius:6,padding:"2px 8px",fontSize:11,background:eD,color:eA,cursor:"pointer"},variant:"ghost",children:"connect"})]})]}):null,nX=(0,s.useMemo)(()=>{let e=[[],[],[],[],[],[]];for(let t of tB??[])e[Math.min(5,Math.max(0,Math.round(t.step??1)-1))].push({...t,step:void 0});return JSON.stringify({formNameOverride:tp,dynamicUrl:(eu??"").trim()||void 0,steps:ep,fieldsStep1:e[0],fieldsStep2:e[1],fieldsStep3:e[2],fieldsStep4:e[3],fieldsStep5:e[4],fieldsStep6:e[5],calendar:{...ta,exitIntent:tu.enabled,exitTitle:tu.title,exitBody:tu.body,exitSelectedBody:tu.selectedBody},routingRules:ev,redirectParams:ek,success:e_,integration:{attio:eQ,fillout:eF,filloutFormId:eM,prefetchUrl:eq,webhookUrl:eH,turnstile:!!tO||(eC?.turnstile??!0),turnstileSiteKey:eC?.turnstileSiteKey??e$?.turnstileSiteKey??"",dataLayer:eC?.dataLayer??!0,pixels:eC?.pixels??!0},design:eK},null,2)},[tp,eu,ep,tB,ta.url,ta.days,ta.chips,ta.confirmLabel,ta.holdSeconds,ta.urgencyText,tu.enabled,tu.title,tu.body,tu.selectedBody,ev,ek,e_,eQ,eF,eM,eq,tO,eC,e$,eK]);return((0,s.useEffect)(()=>{if(nM)try{navigator.clipboard?.writeText(nX)}catch{}},[nM,nX]),nM)?(0,t.jsxs)("section",{className:e1,style:{position:"relative",width:"100%",background:eD,borderRadius:eR,color:eA,padding:16,...eW,...eL},children:[(0,t.jsx)("h3",{style:{margin:"0 0 6px",fontSize:16,fontWeight:700},children:"Form config JSON"}),(0,t.jsx)("p",{style:{margin:"0 0 10px",fontSize:13,color:eV},children:"Copied to your clipboard (if allowed) — or click the box to select all. Paste into any DataGlue Form's Template → JSON to clone this form. Switch Mode back to Preset to restore this one."}),(0,t.jsx)(a.TextArea,{readOnly:!0,value:nX,onClick:e=>e.currentTarget.select(),onFocus:e=>e.currentTarget.select(),style:{width:"100%",height:260,resize:"vertical",border:`1px solid ${eB}`,borderRadius:Math.min(eR,12),background:eD,color:eA,fontSize:11.5,lineHeight:1.5,padding:12,outline:"none",boxSizing:"border-box"}})]}):"steps"===ty&&0===nT.length?(0,t.jsx)("section",{className:e1,style:{width:"100%",...eL}}):(0,t.jsxs)("section",{className:e1,style:{position:"relative",width:"100%",background:eD,borderRadius:eR,color:eA,...eW,...eL},children:[(0,t.jsx)("style",{children:nK}),(0,t.jsxs)(u.AnimatePresence,{mode:"wait",initial:!1,children:["steps"===ty&&tx?.type==="fields"&&(0,t.jsxs)(c.motion.form,{onSubmit:ny,"data-glue-form":tp,name:tp.includes("-")?tp:void 0,...nW,...nU,style:{display:"flex",flexDirection:"column",gap:20},noValidate:!0,children:[n$(th),iK&&th===iR&&(()=>{let e,i=iB.map(e=>e.type),[o,...r]=[i.includes("name")&&t2,i.includes("email")&&t4.trim(),i.includes("phone")&&t6.trim()&&(e=O(t5.dial,t6),/^\+614\d{8}$/.test(e)?e.replace(/^\+61(\d{3})(\d{3})(\d{3}
172)$/,"+61 $1 $2 $3"):t6.trim())].filter(Boolean);return(0,t.jsxs)("div",{className:"gbf-identity","data-identity-summary":!0,children:[(0,t.jsxs)("p",{style:{margin:0,minWidth:0,fontSize:14.5,color:eA,overflowWrap:"anywhere"},children:["Booking as ",(0,t.jsx)("strong",{children:o})]}),(0,t.jsx)(n.Button,{type:"button",className:"gbf-link gbf-change","aria-label":"Change your details",variant:"ghost",onPress:()=>iz(`${e1}-${iB[0]?.fieldKey}`),children:"Change"}),r.length>0&&(0,t.jsx)("p",{style:{gridColumn:"1 / -1",margin:"4px 8px 0 0",fontSize:13,color:eV},children:r.map((e,i)=>(0,t.jsxs)(s.Fragment,{children:[i>0&&" ",(0,t.jsx)("span",{style:{display:"inline-block",maxWidth:"100%",overflowWrap:"anywhere"},children:i<r.length-1?`${e} \xb7`:e})]},e))})]})})(),tx.title&&(0,t.jsx)("h3",{style:{margin:0,fontSize:19,fontWeight:700},children:i1(tx.title)}),(0,t.jsx)(r.Input,{type:"text",name:"_gbf_hp",form:"",value:tI,onChange:e=>tP(e.target.value),tabIndex:-1,autoComplete:"off","aria-hidden":"true",style:{position:"absolute",left:-9999,top:0,width:1,height:1,opacity:0,pointerEvents:"none"}}),tO&&(0,t.jsx)("div",{ref:tN,style:{lineHeight:0}}),(function(e){let t=[];for(let i=0;i<e.length;i++){let n=e[i],o=e[i+1];"name"===n.type&&o?.type==="name"?(t.push([n,o]),i++):t.push(n)}return t})(iK?tq(th).filter(e=>!iB.some(t=>t.fieldKey===e.fieldKey)):tq(th)).map(e=>Array.isArray(e)?(0,t.jsx)("div",{className:"gbf-name-row",children:e.map(nB)},`${e[0].fieldKey}-row`):nB(e)),th===tG&&tY&&(0,t.jsx)(u.AnimatePresence,{initial:!1,children:iY.map(e=>(0,t.jsxs)(c.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.25,ease:"easeOut"},style:{overflow:"hidden"},children:[(0,t.jsxs)("label",{style:n_,htmlFor:`${e1}-q${e.position}`,children:[e.name,nS]}),"single_select"===e.type?(0,t.jsxs)("div",{style:{position:"relative"},children:[(0,t.jsxs)("select",{id:`${e1}-q${e.position}`,name:`question_${e.position}`,required:!0,toolparamdescription:e.name,className:`gbf-select${tT[e.name]?" gbf-invalid":""}`,value:tS[e.name]??"",onChange:t=>tC(i=>({...i,[e.name]:t.target.value})),style:{color:tS[e.name]?eA:eV,paddingRight:38,cursor:"pointer"},children:[(0,t.jsx)("option",{value:"",disabled:!0,children:"Select"}),e.answer_choices.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)(ec,{color:eV})]}):(0,t.jsx)(r.Input,{id:`${e1}-q${e.position}`,name:`question_${e.position}`,required:!0,toolparamdescription:e.name,className:`gbf-input${tT[e.name]?" gbf-invalid":""}`,type:"text",value:tS[e.name]??"",onChange:t=>tC(i=>({...i,[e.name]:t.target.value}))}),nC(tT[e.name])]},e.name))}),iv&&(0,t.jsx)("p",{role:"alert",style:{color:h,margin:0},children:iv}),(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Button,{className:"gbf-btn",type:"submit",variant:"ghost",isDisabled:ix,"aria-busy":ix,children:ix?"Saving your details...":i1(tx.cta)||"Continue"}),e.legalNotice&&(0,t.jsx)("p",{"data-form-legal-notice":!0,style:{margin:"8px 0 0",fontSize:10,lineHeight:1.4,color:eV,textAlign:"center"},children:e.legalNotice}),tx.note&&(0,t.jsx)("p",{style:{margin:"10px 0 0",fontSize:13,color:eV,textAlign:"center"},children:i1(tx.note)})]})]},`step-${th}`),"steps"===ty&&tx?.type==="content"&&(0,t.jsxs)(c.motion.div,{...nU,style:{display:"flex",flexDirection:"column",gap:14},children:[n$(th),tx.title&&(0,t.jsx)("h3",{style:{margin:0,fontSize:19,fontWeight:700},children:i1(tx.title)}),(e=>{let t=0;for(let i=0;i<=e;i++)ti[i]?.type==="content"&&t++;return[eE,eI,eP][t-1]})(th)??(0,t.jsx)("p",{style:{margin:0,fontSize:14.5,color:eV},children:'Connect content to a "Step Content" property to show it here.'}),(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Button,{type:"button",className:"gbf-btn",onPress:()=>nh(th),variant:"ghost",children:i1(tx.cta)||"Continue"}),tx.note&&(0,t.jsx)("p",{style:{margin:"10px 0 0",fontSize:13,color:eV,textAlign:"center"},children:i1(tx.note)})]})]},`step-${th}`),"steps"===ty&&tx?.type==="embed"&&(0,t.jsxs)(c.motion.div,{...nU,style:{display:"flex",flexDirection:"column",gap:14},children:[n$(th),(0,t.jsx)(ed,{url:nw(),disabled:eX})]},`step-${th}`),"steps"===ty&&tx?.type==="redirect"&&(0,t.jsx)(c.motion.div,{...nU,style:{padding:"32px 0",textAlign:"center"},children:(0,t.jsx)("p",{style:{margin:0,fontSize:14.5,color:eV},children:"Redirecting…"})},`step-${th}`),"steps"===ty&&tx?.type==="slots"&&(0,t.jsxs)(c.motion.div,{...nU,style:{display:"flex",flexDirection:"column",gap:14,position:"relative"},children:[n$(th),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{style:{margin:0,fontSize:19,fontWeight:700},children:i1(tx.title)||"Pick a time that suits you"}),(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:6,marginTop:8},children:[nV.map(e=>(0,t.jsx)("span",{className:"gbf-chip",children:e},e)),iQ&&(0,t.jsx)("span",{style:{fontSize:12.5,color:eV,marginLeft:2},children:iQ})]})]}),ir&&(0,t.jsx)("div",{role:"alert",style:{padding:"10px 14px",borderRadius:Math.min(eR,12),background:`color-mix(in srgb, ${h} 8%, transparent)`,border:`1px solid color-mix(in srgb, ${h} 33%, transparent)`,color:h,fontSize:14},children:ir}),"error"===t3.status&&(0,t.jsxs)("div",{role:"alert",style:{textAlign:"center",padding:"24px 0",display:"flex",flexDirection:"column",alignItems:"center",gap:12},children:[(0,t.jsx)("p",{style:{margin:0,color:eV,fontSize:14.5},children:"We couldn't load the available times just now."}),(0,t.jsx)(n.Button,{className:"gbf-btn",type:"button",style:{width:"auto",padding:"0 24px"},onPress:i2,variant:"ghost",children:"Try again"}),(0,t.jsxs)(l.Link,{className:"gbf-focus",href:iZ(),target:"_blank",rel:"noreferrer",style:{color:eN,fontSize:14.5,fontWeight:600,display:"inline-flex",alignItems:"center",gap:6},children:["Open the booking page instead ",(0,t.jsx)(o.IconChevronRight,{"aria-hidden":"true"})]})]}),"loading"===t3.status&&(0,t.jsxs)("div",{className:"gbf-times",role:"status","aria-live":"polite",children:[(0,t.jsx)("span",{className:"gbf-sr",children:"Loading available times"}),Array.from({length:8}).map((e,i)=>(0,t.jsx)("div",{className:"gbf-skeleton","aria-hidden":"true"},i))]}),"ready"===t3.status&&0===i6.length&&(0,t.jsxs)("div",{style:{textAlign:"center",padding:"24px 0"},children:[(0,t.jsx)("p",{style:{margin:"0 0 12px",color:eV,fontSize:14.5},children:"No times available right now."}),(0,t.jsxs)(l.Link,{className:"gbf-focus",href:iZ(),target:"_blank",rel:"noreferrer",style:{color:eN,fontSize:14.5,fontWeight:600,display:"inline-flex",alignItems:"center",gap:6},children:["Open the booking page instead ",(0,t.jsx)(o.IconChevronRight,{"aria-hidden":"true"})]})]}),"ready"===t3.status&&i6.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{style:{position:"relative"},children:[(0,t.jsx)("div",{className:"gbf-days",ref:nt,role:"group","aria-label":"Available days","data-fade":ni?no.start?"end":no.end?"start":"both":void 0,children:i6.map(e=>{let i=new Date(`${e}T12:00:00`),o=e===t7;return(0,t.jsxs)(n.Button,{type:"button","aria-pressed":o,className:"gbf-day","data-selected":o,onPress:()=>(0,s.startTransition)(()=>{t9(e),it("")}),variant:"ghost",children:[(0,t.jsx)("div",{style:{fontSize:12,fontWeight:600,color:o?"color-mix(in srgb, var(--ikit-inverse-text) 80%, transparent)":eV},children:i.toLocaleDateString(void 0,{weekday:"short"})}),(0,t.jsx)("div",{style:{fontSize:15,fontWeight:700,color:o?"var(--ikit-inverse-text)":eA,whiteSpace:"nowrap"},children:i.toLocaleDateString(void 0,{day:"numeric",month:"short"})})]},e)})}),ni&&!no.start&&(0,t.jsx)(n.Button,{type:"button",className:"gbf-arrow",style:{left:-4},"aria-label":"Earlier days",onPress:()=>nl(-1),variant:"ghost",children:(0,t.jsx)(o.IconChevronLeft,{"aria-hidden":"true"})}),ni&&!no.end&&(0,t.jsx)(n.Button,{type:"button",className:"gbf-arrow",style:{right:-4},"aria-label":"Later days",onPress:()=>nl(1),variant:"ghost",children:(0,t.jsx)(o.IconChevronRight,{"aria-hidden":"true"})})]}),nL&&(0,t.jsx)("div",{role:"group","aria-label":"Time of day",style:{display:"flex",gap:4,padding:3,background:`color-mix(in srgb, ${eB} 25.1%, transparent)`,borderRadius:Math.min(eR,12)},children:["morning","afternoon","evening"].map(e=>(0,t.jsxs)(n.Button,{type:"button","aria-pressed":i5===e,className:"gbf-seg","data-selected":i5===e,isDisabled:!nP[e],onPress:()=>(0,s.startTransition)(()=>{i3(e),it("")}),variant:"ghost",children:["morning"===e?"Morning":"afternoon"===e?"Afternoon":"Evening",nP[e]?(0,t.jsx)("span",{className:"gbf-seg-count",children:nP[e]}):null]},e))}),(0,t.jsx)("div",{className:"gbf-panel",children:(0,t.jsx)("div",{className:"gbf-times",children:nO.map(e=>(0,t.jsxs)(n.Button,{type:"button",className:"gbf-time","data-selected":e===ie,"data-soonest":e===nN,"aria-pressed":e===ie,onPress:()=>{e===nN&&eG("booking_quick_pick",{form:tp,slot:e}),(0,s.startTransition)(()=>it(e))},variant:"ghost",children:[nv(e)," ",e===nN&&(0,t.jsx)("span",{className:"gbf-soonest-label",children:"Don't miss this spot!"})]},e))})}),(0,t.jsx)(u.AnimatePresence,{children:ie&&(0,t.jsx)(c.motion.div,{initial:{opacity:0}
172,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},onClick:e=>e.stopPropagation(),style:{position:"fixed",inset:0,zIndex:9998,background:"color-mix(in srgb, var(--foreground) 45%, transparent)",display:"flex",alignItems:"center",justifyContent:"center",padding:20},children:(0,t.jsx)(c.motion.div,{ref:ia,role:"dialog","aria-modal":"true","aria-label":"Confirm your booking",tabIndex:-1,initial:{opacity:0,y:14,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:14,scale:.97},transition:{duration:.2,ease:"easeOut"},onClick:e=>e.stopPropagation(),style:{width:"100%",maxWidth:400,background:eD,borderRadius:Math.min(eR+4,16),padding:"24px",boxShadow:"0 24px 60px color-mix(in srgb, var(--foreground) 25%, transparent)"},children:(0,t.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{style:{fontSize:13,color:eV,marginBottom:4},children:new Date(ie).toLocaleDateString(void 0,{weekday:"long",day:"numeric",month:"long"})}),(0,t.jsxs)("div",{style:{fontSize:22,fontWeight:700,color:eA},children:[nv(ie)," to ",nk(ie,nA)]}),null!==ic&&ta.urgencyText&&(0,t.jsxs)("div",{style:{marginTop:6,fontSize:13,fontWeight:600,color:eN,fontVariantNumeric:"tabular-nums"},children:[ta.urgencyText," ",Q(ic)]})]}),ir&&(0,t.jsx)("p",{role:"alert",style:{color:h,margin:0},children:ir}),(0,t.jsx)(n.Button,{type:"button",className:"gbf-btn",onPress:nx,isDisabled:ii,variant:"ghost",children:ii?"Booking…":ta.confirmLabel}),(0,t.jsx)(n.Button,{type:"button",className:"gbf-link",style:{textAlign:"center",minHeight:32},onPress:()=>(0,s.startTransition)(()=>it("")),variant:"ghost",children:"Pick a different time"})]})})},"confirm-bar")})]})]},`step-${th}`),"success"===ty&&(0,t.jsxs)(c.motion.div,{initial:{opacity:0,scale:.97},animate:{opacity:1,scale:1},transition:{duration:.25,ease:"easeOut"},style:{display:"flex",flexDirection:"column",alignItems:"center",textAlign:"center",gap:14,padding:"20px 0"},children:[(0,t.jsxs)(c.motion.svg,{width:"56",height:"56",viewBox:"0 0 56 56",fill:"none","aria-hidden":"true",initial:{scale:.6,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:260,damping:18},children:[(0,t.jsx)("circle",{cx:"28",cy:"28",r:"26",fill:`color-mix(in srgb, ${eO} 10.2%, transparent)`}),(0,t.jsx)("circle",{cx:"28",cy:"28",r:"19",fill:eO}),(0,t.jsx)(c.motion.path,{d:"M20 28.5l5.5 5.5L36.5 22.5",stroke:"var(--ikit-inverse-text)",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",initial:{pathLength:0},animate:{pathLength:1},transition:{delay:.15,duration:.35,ease:"easeOut"}})]}),(0,t.jsx)("h3",{style:{margin:0,fontSize:22,fontWeight:700},children:i1(ip?e_?.title??"You're booked, {name}!":e_?.leadTitle??"Thanks, {name}!").replace("{name}",t2.trim().split(" ")[0]||"you")}),ip?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{style:{margin:0,fontSize:15.5,color:eA,fontWeight:600},children:[new Date(ip.startTime).toLocaleDateString(void 0,{weekday:"long",day:"numeric",month:"long"})," · ",nv(ip.startTime)," to ",nk(ip.startTime,ip.duration),iH?` ${iH}`:""]}),(0,t.jsxs)("p",{style:{margin:0,fontSize:14,color:eV},children:["A calendar invite has been sent to"," ",t4.trim(),"."]})]}):(0,t.jsx)("p",{style:{margin:0,fontSize:14.5,color:eV},children:i1(e_?.leadBody??"We've got your details and will be in touch shortly.").replace("{name}",t2.trim().split(" ")[0]||"you")}),(ip?.rescheduleUrl||ip?.cancelUrl)&&(0,t.jsxs)("p",{style:{margin:"4px 0 0",fontSize:13,color:eV},children:[ip?.rescheduleUrl&&(0,t.jsx)(l.Link,{href:ip?.rescheduleUrl,target:"_blank",rel:"noreferrer",style:{color:eV},children:"Reschedule"}),ip?.rescheduleUrl&&ip?.cancelUrl&&" · ",ip?.cancelUrl&&(0,t.jsx)(l.Link,{href:ip?.cancelUrl,target:"_blank",rel:"noreferrer",style:{color:eV},children:"Cancel"})]})]},"success")]}),(0,t.jsx)(u.AnimatePresence,{children:is&&"steps"===ty&&tx?.type==="slots"&&(0,t.jsx)(c.motion.div,{initial:{opacity:0}
172,animate:{opacity:1},exit:{opacity:0},transition:{duration:.18},onClick:()=>{eG("booking_exit_intent_dismissed",{form:tp}),(0,s.startTransition)(()=>id(!1))},style:{position:"fixed",inset:0,zIndex:9999,background:"color-mix(in srgb, var(--foreground) 45%, transparent)",display:"flex",alignItems:"center",justifyContent:"center",padding:20},children:(0,t.jsxs)(c.motion.div,{role:"dialog","aria-modal":"true","aria-label":tu.title,initial:{opacity:0,y:14,scale:.97},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:14,scale:.97},transition:{duration:.2,ease:"easeOut"},onClick:e=>e.stopPropagation(),style:{width:"100%",maxWidth:400,background:eD,borderRadius:Math.min(eR+4,16),padding:"28px 24px 20px",textAlign:"center",boxShadow:"0 24px 60px color-mix(in srgb, var(--foreground) 25%, transparent)"},children:[(0,t.jsx)("div",{style:{fontSize:34,lineHeight:1},"aria-hidden":"true",children:"⏳"}),(0,t.jsx)("h3",{style:{margin:"12px 0 10px",fontSize:19,fontWeight:700},children:i1(tu.title)}),ie?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{style:{background:`color-mix(in srgb, ${eO} 6.27%, transparent)`,border:`1px solid color-mix(in srgb, ${eO} 26.67%, transparent)`,borderRadius:Math.min(eR,12),padding:"10px 14px",marginBottom:12},children:[(0,t.jsx)("div",{style:{fontSize:12.5,color:eV},children:new Date(ie).toLocaleDateString(void 0,{weekday:"long",day:"numeric",month:"long"})}),(0,t.jsxs)("div",{style:{fontSize:19,fontWeight:700,color:eA},children:[nv(ie)," to ",nk(ie,nA)]}),null!==ic&&(0,t.jsxs)("div",{style:{marginTop:2,fontSize:12,fontWeight:600,color:eN,fontVariantNumeric:"tabular-nums"},children:["Still available ·"," ",Q(ic)]})]}),(0,t.jsx)("p",{style:{margin:"0 0 16px",fontSize:14.5,color:eV,lineHeight:1.45},children:i1(tu.selectedBody)})]}):(0,t.jsx)("p",{style:{margin:"0 0 16px",fontSize:14.5,color:eV,lineHeight:1.45},children:i1(tu.body)}),(0,t.jsx)(n.Button,{type:"button",className:"gbf-btn",isDisabled:ii,onPress:()=>{eG("booking_exit_intent_cta",{form:tp,slot_selected:!!ie}),(0,s.startTransition)(()=>id(!1)),ie&&nx()},variant:"ghost",children:ie?ii?"Booking…":ta.confirmLabel:"Pick my time"}),(0,t.jsx)(n.Button,{type:"button",className:"gbf-link",style:{marginTop:12,minHeight:32,display:"block",marginLeft:"auto",marginRight:"auto"},onPress:()=>{eG("booking_exit_intent_dismissed",{form:tp}),(0,s.startTransition)(()=>id(!1))},variant:"ghost",children:"No thanks"})]})},"exit-intent")}),nZ]})}function ed({url:e,disabled:n=!1}){return((0,s.useEffect)(()=>{if(n||"u"<typeof document)return;let e="calendly-widget-script";
172if(document.getElementById(e)){try{window.Calendly?.initInlineWidgets?.()}catch{}return}let t=document.createElement("script");t.id=e,t.src="https://assets.calendly.com/assets/external/widget.js",t.async=!0,document.body.appendChild(t)},[n,e]),n)?(0,t.jsx)("div",{style:{display:"grid",placeItems:"center",minWidth:280,width:"100%",height:660,border:`1px dashed ${i.sectionTheme.border}`,borderRadius:i.sectionTheme.radius,background:i.sectionTheme.surfaceSecondary,color:i.sectionTheme.muted,textAlign:"center",padding:24},children:"Calendly loads on the published page."}):(0,t.jsx)("div",{className:"calendly-inline-widget","data-url":e,style:{minWidth:280,width:"100%",height:660}})}function ec({color:e}){return(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",style:{position:"absolute",right:14,top:"50%",transform:"translateY(-50%)",pointerEvents:"none"},children:(0,t.jsx)("path",{d:"M6 9l6 6 6-6",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}let eu={label:{type:d.ControlType.String,title:"Label",defaultValue:""},type:{type:d.ControlType.Enum,title:"Type",options:["name","email","phone","text","select","textarea"],optionTitles:["Name","Email","Phone","Text","Select","Long text"],defaultValue:"text"},fieldKey:{type:d.ControlType.String,title:"Key",description:"Payload key — auto from type/label if empty",defaultValue:""},placeholder:{type:d.ControlType.String,title:"Hint",defaultValue:""},options:{type:d.ControlType.String,title:"Options",description:'Separate with ", " or "|" (select only)',defaultValue:"",hidden:e=>"select"!==e.type},required:{type:d.ControlType.Boolean,title:"Required",defaultValue:!1},prefillKey:{type:d.ControlType.String,title:"Prefill From",description:"Auto-fill from a query param / glue key, e.g. `utm_source`, `glue_email`, `comet_source`. Identity fields prefill from glue automatically.",defaultValue:""},attioSlug:{type:d.ControlType.Enum,title:"Attio Column",description:"Identity, UTMs and tracking map to Attio automatically — pick a column only for extra answers.",options:["","stage","qualifier","message","custom"],optionTitles:["Auto","Stage","Qualifier","Message","Custom slug…"],defaultValue:""},attioSlugCustom:{type:d.ControlType.String,title:"Custom Slug",description:"Attribute api_slug on the Form Submissions object (create it in Attio first)",defaultValue:"",hidden:e=>"custom"!==e.attioSlug},calendlyQuestion:{type:d.ControlType.String,title:"Question",description:"Exact Calendly question this field answers on booking",defaultValue:""},enabled:{type:d.ControlType.Boolean,title:"Field",description:"Hidden removes this field entirely — not shown, validated, or sent to Supabase/Attio/Fillout/Calendly. For rule-based visibility, leave Shown and use Conditional below.",defaultValue:!0,enabledTitle:"Shown",disabledTitle:"Hidden"},conditional:{type:d.ControlType.Boolean,title:"Conditional",description:"Show this field only when a rule matches",defaultValue:!1,enabledTitle:"Rule",disabledTitle:"Always"},showWhere:{type:d.ControlType.Enum,title:"Where",description:"Anywhere checks all sources in that order",options:["auto","field","query","storage","page_url","page_path"],optionTitles:["Anywhere","Field Answer","Query Param","Glue / Storage","Page URL","Page Path"],defaultValue:"auto",hidden:e=>!e.conditional},showKey:{type:d.ControlType.String,title:"When",description:"The key to read there — another field's key, query param or glue/storage key",defaultValue:"",hidden:e=>!e.conditional||"page_url"===e.showWhere||"page_path"===e.showWhere},showOp:{type:d.ControlType.Enum,title:"Match",options:["contains","equals","exists"],optionTitles:["Contains","Equals","Exists"],defaultValue:"contains",hidden:e=>!e.conditional},showValue:{type:d.ControlType.String,title:"Value",defaultValue:"",hidden:e=>!e.conditional||"exists"===e.showOp}},ep=(e,t)=>({type:d.ControlType.Array,title:`↳ Step ${e} \xb7 Fields`,description:`Shown while Step ${e} is a Fields step. Identity fields prefill from glue automatically; returning visitors also prefill from their last submission.`,maxCount:12,hidden:t=>(t.steps?.[e-1]?.type??(1===e?"fields":""))!=="fields",control:{type:d.ControlType.Object,controls:eu},defaultValue:t});
172(0,d.addPropertyControls)(es,{templateConfig:{type:d.ControlType.Object,title:"Template",controls:{mode:{type:d.ControlType.Enum,title:"Mode",options:["preset","json","export"],optionTitles:["Preset","Paste","Export"],displaySegmentedControl:!0,defaultValue:"preset"},preset:{type:d.ControlType.Enum,title:"Preset",options:["discovery","whitepaper","newsletter"],optionTitles:["Discovery Call","Whitepaper","Newsletter"],defaultValue:"discovery",description:"Whitepaper/Newsletter take over the panels they define. Discovery = your panels rule. To hand-tune a preset: Export → Paste → edit.",hidden:e=>"json"===e.mode},json:{type:d.ControlType.String,title:"JSON",displayTextArea:!0,description:"Paste a config exported from any DataGlue Form — it overrides everything.",defaultValue:"",hidden:e=>"json"!==e.mode},formName:{type:d.ControlType.String,title:"Form Name",placeholder:"auto from Calendly URL",description:"Analytics + Attio name for this form.",defaultValue:""}}},dynamicUrl:{type:d.ControlType.String,title:"Dynamic URL",description:"Bindable (+): per-page value available as `{{dynamic_url}}` in any copy or redirect — bind to a CMS field for per-whitepaper destinations. Unbound, `?dynamic_url=` on the page works too.",defaultValue:""},steps:{type:d.ControlType.Array,title:"Steps",description:"The form's flow, in order. Each step carries its own settings — a Calendar Slots step holds the event, timer and exit intent. A Fields step's fields live in its ↳ Step N · Fields list directly below (Framer can't nest lists inside lists, so they sit as indented siblings).",maxCount:6,control:{type:d.ControlType.Object,controls:{name:{type:d.ControlType.String,title:"Name",description:"Label in this panel only",defaultValue:"New step"},enabled:{type:d.ControlType.Boolean,title:"Step",description:"Hidden removes this step from the flow entirely. For rule-based visibility, leave Shown and use Conditional below.",defaultValue:!0,enabledTitle:"Shown",disabledTitle:"Hidden"},type:{type:d.ControlType.Enum,title:"Type",options:["fields","slots","embed","content","redirect"],optionTitles:["Fields","Calendar Slots","Calendly Embed","Custom Content","Redirect"],defaultValue:"fields"},title:{type:d.ControlType.String,title:"Title",defaultValue:""},cta:{type:d.ControlType.String,title:"CTA",defaultValue:"Continue",hidden:e=>"slots"===e.type||"embed"===e.type||"redirect"===e.type},note:{type:d.ControlType.String,title:"Note",description:"Reassurance line under the CTA",defaultValue:"",hidden:e=>"slots"===e.type||"embed"===e.type||"redirect"===e.type},after:{type:d.ControlType.Enum,title:"Then",options:["next","success","redirect"],optionTitles:["Next step","Success","Redirect"],defaultValue:"next",hidden:e=>"embed"===e.type||"redirect"===e.type},redirectUrl:{type:d.ControlType.String,title:"Redirect To",description:"Supports {{merge_tags}}",defaultValue:"",hidden:e=>"redirect"!==e.after&&"redirect"!==e.type},calendlyUrl:{type:d.ControlType.String,title:"Event URL",description:"Calendly event this step books",defaultValue:J,hidden:e=>"slots"!==e.type&&"embed"!==e.type},days:{type:d.ControlType.Number,title:"Days",defaultValue:14,min:7,max:28,step:7,displayStepper:!0,hidden:e=>"slots"!==e.type},chips:{type:d.ControlType.String,title:"Chips",description:"Separate with ·",defaultValue:Z,hidden:e=>"slots"!==e.type},confirmLabel:{type:d.ControlType.String,title:"Confirm",defaultValue:X,hidden:e=>"slots"!==e.type},holdSeconds:{type:d.ControlType.Number,title:"Timer",description:"Seconds before re-checking availability (0 = off)",defaultValue:240,min:0,max:600,step:30,hidden:e=>"slots"!==e.type},urgencyText:{type:d.ControlType.String,title:"Urgency",defaultValue:ee,hidden:e=>"slots"!==e.type},exitIntent:{type:d.ControlType.Boolean,title:"Exit Intent",description:"Desktop nudge when the cursor leaves the page",defaultValue:!0,enabledTitle:"On",disabledTitle:"Off",hidden:e=>"slots"!==e.type},exitTitle:{type:d.ControlType.String,title:"Exit Title",defaultValue:"Wait, your time isn't locked in yet",hidden:e=>"slots"!==e.type||!e.exitIntent},exitBody:{type:d.ControlType.String,title:"Exit Body",description:"Shown when no time is picked yet",defaultValue:"You're only two taps away. Pick a time and confirm.",hidden:e=>"slots"!==e.type||!e.exitIntent},exitSelectedBody:{type:d.ControlType.String,title:"Exit Picked",description:"Shown under their picked time",defaultValue:"You're one tap away from locking it in.",hidden:e=>"slots"!==e.type||!e.exitIntent},conditional:{type:d.ControlType.Boolean,title:"Conditional",description:"Show this step only when a rule matches — it's skipped otherwise",defaultValue:!1,enabledTitle:"Rule",disabledTitle:"Always"},showWhere:{type:d.ControlType.Enum,title:"Where",description:"Anywhere checks all sources in that order",options:["auto","field","query","storage","page_url","page_path"],optionTitles:["Anywhere","Field Answer","Query Param","Glue / Storage","Page URL","Page Path"],defaultValue:"auto",hidden:e=>!e.conditional},showKey:{type:d.ControlType.String,title:"When",description:"The key to read there — a field key, query param or glue/storage key",defaultValue:"",hidden:e=>!e.conditional||"page_url"===e.showWhere||"page_path"===e.showWhere},showOp:{type:d.ControlType.Enum,title:"Match",options:["contains","equals","exists"],optionTitles:["Contains","Equals","Exists"],defaultValue:"contains",hidden:e=>!e.conditional},showValue:{type:d.ControlType.String,title:"Value",defaultValue:"",hidden:e=>!e.conditional||"exists"===e.showOp}}},defaultValue:Y}
172,fieldsStep1:ep(1,G),fieldsStep2:ep(2,[]),fieldsStep3:ep(3,[]),fieldsStep4:ep(4,[]),fieldsStep5:ep(5,[]),fieldsStep6:ep(6,[]),stepContent1:{type:d.ControlType.ComponentInstance,title:"Content 1",hidden:e=>(e.steps?.filter(e=>e?.type==="content").length??0)<1},stepContent2:{type:d.ControlType.ComponentInstance,title:"Content 2",hidden:e=>(e.steps?.filter(e=>e?.type==="content").length??0)<2},stepContent3:{type:d.ControlType.ComponentInstance,title:"Content 3",hidden:e=>(e.steps?.filter(e=>e?.type==="content").length??0)<3},routingRules:{type:d.ControlType.Array,title:"Logic",description:"If this, do that — first match wins. Route to a Calendly event variant, or redirect on load. Keys read query params, glue storage and glue attributes.",control:{type:d.ControlType.Object,controls:{key:{type:d.ControlType.String,title:"Key",description:"Query param / storage key, e.g. utm_source",defaultValue:"utm_source"},operator:{type:d.ControlType.Enum,title:"Match",options:["equals","contains","exists"],optionTitles:["Equals","Contains","Exists"],defaultValue:"contains"},value:{type:d.ControlType.String,title:"Value",defaultValue:"",hidden:e=>"exists"===e.operator},action:{type:d.ControlType.Enum,title:"Action",options:["calendly","redirect"],optionTitles:["Calendly event","Redirect on load"],defaultValue:"calendly"},calendlyUrl:{type:d.ControlType.String,title:"Event URL",description:"Calendly event to book when matched",defaultValue:"",hidden:e=>"redirect"===e.action},redirectUrl:{type:d.ControlType.String,title:"Redirect To",description:"Sent here on load when matched",defaultValue:"",hidden:e=>"redirect"!==e.action}}},defaultValue:[]},success:{type:d.ControlType.Object,title:"Success / Redirect",controls:{title:{type:d.ControlType.String,title:"Title",description:"{name} inserts their first name",defaultValue:et.title},leadTitle:{type:d.ControlType.String,title:"Lead Title",description:"Used when no booking happened",defaultValue:et.leadTitle},leadBody:{type:d.ControlType.String,title:"Lead Body",description:"Used when no booking happened",defaultValue:et.leadBody},redirectUrl:{type:d.ControlType.String,title:"Redirect",description:"Where to send the visitor afterwards (optional). Supports {{merge_tags}} — e.g. `{{whitepaper_url}}` from a query param, Prefetch JSON or glue.",defaultValue:""},redirectDelay:{type:d.ControlType.Number,title:"Delay",unit:"s",defaultValue:2,min:0,max:10,hidden:e=>!e.redirectUrl},passParams:{type:d.ControlType.String,title:"Pass Params",displayTextArea:!0,description:"Appended to every redirect, one per line: `url_param = source`. Source = a form field key/label or tracking key (`email = email`, `src = utm_source`).",defaultValue:""}}},integration:{type:d.ControlType.Object,title:"Integration",description:"Supabase + Attio sync is always on. Everything else lives here.",controls:{attio:{type:d.ControlType.Boolean,title:"Attio Sync",description:"Person + Form Submissions record in Attio, and returning-visitor prefill from their last submission.",defaultValue:!0,enabledTitle:"On",disabledTitle:"Off"},fillout:{type:d.ControlType.Boolean,title:"Fillout Sync",defaultValue:!0,enabledTitle:"On",disabledTitle:"Off"},filloutFormId:{type:d.ControlType.Enum,title:"Fillout Form",description:"Your live lead-gen Fillout forms",options:["5ofwuEck4cus","935n3mdGbxus","cUCFkFNg6Qus","j4zPkERLeBus","acY62mdrskus","eAfbBgc3Ppus","ucqSUQgTpXus","xzPJP8Qr8bus","w9d5QgEyXFus","6qhzu4P691us","e7uA4Y6VsSus","uckqGUUw5Bus","aBxanCoLEUus","nwhycHaBuVus","pNdJ4GGWQNus","custom"],optionTitles:["Discovery Call (Residential)","Discovery (Residential) · Calendly","Discovery Call (Commercial)","Discovery (Website) · Calendly","Discovery Call (META)","Discovery (META Ads) · Calendly","Discovery Call (Google)","Discovery (Google Ads) · Calendly","Discovery Call (Webinar)","Discovery (YouTube Offer Page)","Whitepaper Download","Newsletter Subscribe","Website: Partnerships","Book Resources (Opt-in)","ARI Calculator Download","Custom ID…"],defaultValue:ei.filloutFormId,hidden:e=>!e.fillout},filloutFormIdCustom:{type:d.ControlType.String,title:"Custom Form ID",defaultValue:"",hidden:e=>!e.fillout||"custom"!==e.filloutFormId},prefetchUrl:{type:d.ControlType.String,title:"Prefetch URL",description:"JSON endpoint fetched on load. Keys prefill matching fields and power {{merge_tags}} in copy.",defaultValue:""}
172,webhookUrl:{type:d.ControlType.String,title:"Webhook",description:"POST the full submission after every step and booking to an external automation endpoint. Fillout ignores API-mirrored submissions for its own integrations, so trigger them here instead. The host must be allowlisted in the forms function.",defaultValue:""},turnstile:{type:d.ControlType.Boolean,title:"Turnstile",description:"Invisible spam shield. Server verifies tokens (strict) — leave On in production.",defaultValue:!0,enabledTitle:"On",disabledTitle:"Off"},turnstileSiteKey:{type:d.ControlType.String,title:"Site Key",defaultValue:ei.turnstileSiteKey,hidden:e=>!e.turnstile},dataLayer:{type:d.ControlType.Boolean,title:"Data Layer",description:"Push form events to window.dataLayer (GTM)",defaultValue:!0,enabledTitle:"On",disabledTitle:"Off"},pixels:{type:d.ControlType.Boolean,title:"Pixels",description:"Fire Meta/Google conversions directly: Lead on submit, Schedule on booking — the backward-compatible replacement for Fillout's pixel integration. Turn off only if GTM already fires these (avoid double-counting).",defaultValue:!0,enabledTitle:"On",disabledTitle:"Off"},skipPrefilledIdentity:{type:d.ControlType.Boolean,title:"Skip Known",description:'When the page link carries a valid name, email and mobile (?name=&email=&phone=), show one "Booking as" line with a Change button instead of those inputs. Details remembered on the device only prefill.',defaultValue:!1,enabledTitle:"On",disabledTitle:"Off"}}},design:{type:d.ControlType.Object,title:"Design",controls:{accent:{type:d.ControlType.Color,title:"Accent",defaultValue:en.accent},text:{type:d.ControlType.Color,title:"Text",defaultValue:en.text},muted:{type:d.ControlType.Color,title:"Muted",defaultValue:en.muted},border:{type:d.ControlType.Color,title:"Borders",defaultValue:en.border},background:{type:d.ControlType.Color,title:"Background",defaultValue:en.background},radius:{type:d.ControlType.Number,title:"Radius",defaultValue:10,min:0,max:20},font:{type:d.ControlType.Font,title:"Font",controls:"extended",defaultFontType:"sans-serif",defaultValue:{fontSize:15,lineHeight:"1.4em"}}}}}),e.s(["dataGlueFormDefaults",0,{templateConfig:{mode:"preset",preset:"discovery",json:"",formName:""},dynamicUrl:"",steps:Y,fieldsStep1:G,fieldsStep2:[],fieldsStep3:[],fieldsStep4:[],fieldsStep5:[],fieldsStep6:[],routingRules:[],success:et,integration:ei,design:en},"default",0,es],179176),e.s(["FormDisclaimer",0,function(){return(0,t.jsxs)("span",{className:"ikit-form-disclaimer-copy",children:[(0,t.jsx)("span",{"aria-hidden":"true",children:"* "}),"By submitting this form you agree to our ",(0,t.jsx)("a",{href:"/privacy-policy",target:"_blank",rel:"noopener noreferrer",children:"privacy policy"})," and ",(0,t.jsx)("a",{href:"/terms-of-use",target:"_blank",rel:"noopener noreferrer",children:"terms of use"}),", and consent to InvestorKit Group marketing by email and, if you provide a mobile number, SMS. ",(0,t.jsx)("a",{href:"/unsubscribe",children:"Opt out anytime"}),"."]})}],950570)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.