your-ai-workflow-firebase-os 1.14.69 → 1.14.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AddressField-CH7i8N-5.js → AddressField-B2YBRXcx.js} +29 -29
- package/dist/{AddressField-B0hFfCbG.cjs → AddressField-BBv8NGX8.cjs} +1 -1
- package/dist/{ContactPopup-DU9C56xE.js → ContactPopup-D74uLI25.js} +802 -801
- package/dist/{ContactPopup-xaCOjG6r.cjs → ContactPopup-G5USfpWQ.cjs} +3 -3
- package/dist/{PhoneInputField-p60Pe2nE.cjs → PhoneInputField-B3P_vUDW.cjs} +1 -1
- package/dist/PhoneInputField-CVamkTJg.js +2 -0
- package/dist/{PhoneInputField-m6STmA8A.cjs → PhoneInputField-CdNTvWXQ.cjs} +1 -1
- package/dist/{PhoneInputField-CviLyTET.js → PhoneInputField-D3wWs-M8.js} +1 -1
- package/dist/components/ConfirmModal.d.ts +1 -1
- package/dist/components/Popup.d.ts +8 -0
- package/dist/components/PublicCopies.d.ts +1 -0
- package/dist/components/ShownFrom.d.ts +3 -0
- package/dist/components/SignInButtons.d.ts +10 -1
- package/dist/components/SupportBar.d.ts +1 -4
- package/dist/components/Swatch.d.ts +1 -1
- package/dist/lib/keptCopies.d.ts +19 -0
- package/dist/lib/pageDesignLines.d.ts +1 -1
- package/dist/lib/pageGutter.d.ts +8 -0
- package/dist/lib/publicCopy.d.ts +15 -0
- package/dist/lib/publicCopyPlan.d.ts +62 -0
- package/dist/lib/recordLock.d.ts +32 -4
- package/dist/lucide-react-BYniZ3lQ.cjs +1 -0
- package/dist/{lucide-react-B-0lxRJc.js → lucide-react-ehRy1vqS.js} +5273 -5273
- package/dist/pages/PagesAdmin.d.ts +12 -3
- package/dist/renderer.cjs.js +1 -1
- package/dist/renderer.es.js +1 -1
- package/dist/server.cjs.js +1 -1
- package/dist/server.es.js +1 -1
- package/dist/{validate-BTbvTYP_.js → validate-C_iJKXDU.js} +371 -367
- package/dist/validate-L8QWFfBP.cjs +103 -0
- package/dist/vite.cjs.js +2 -2
- package/dist/vite.es.js +21 -7
- package/dist/your-ai-workflow-firebase-os.cjs.js +57 -54
- package/dist/your-ai-workflow-firebase-os.css +1 -1
- package/dist/your-ai-workflow-firebase-os.es.js +11834 -11542
- package/package.json +5 -5
- package/src/index.css +52 -0
- package/dist/PhoneInputField-DA7JTmEc.js +0 -2
- package/dist/lucide-react-CxW3OCAz.cjs +0 -1
- package/dist/validate-tte4piFl.cjs +0 -103
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as e, ct as t, ht as n, o as r, on as i } from "./lucide-react-ehRy1vqS.js";
|
|
2
2
|
import { o as a, t as o } from "./address-Ca1h_UZX.js";
|
|
3
3
|
import { n as s, t as c } from "./dist-BkUiTtIb.js";
|
|
4
4
|
import { useEffect as l, useRef as u, useState as d } from "react";
|
|
@@ -166,7 +166,7 @@ function j(e) {
|
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
|
-
function M({ label:
|
|
169
|
+
function M({ label: t, value: n, disabled: a, onPick: o }) {
|
|
170
170
|
let [s, c] = d(!1), [m, g] = d(""), _ = u(null), y = u(null);
|
|
171
171
|
l(() => {
|
|
172
172
|
if (!s) {
|
|
@@ -179,7 +179,7 @@ function M({ label: n, value: i, disabled: a, onPick: o }) {
|
|
|
179
179
|
};
|
|
180
180
|
return document.addEventListener("pointerdown", e, !0), () => document.removeEventListener("pointerdown", e, !0);
|
|
181
181
|
}, [s]);
|
|
182
|
-
let b = m.trim().toLowerCase(), x = b ? h().filter((e) => e.name.toLowerCase().includes(b)) : h(), S = v(
|
|
182
|
+
let b = m.trim().toLowerCase(), x = b ? h().filter((e) => e.name.toLowerCase().includes(b)) : h(), S = v(n);
|
|
183
183
|
return /* @__PURE__ */ p("div", {
|
|
184
184
|
className: "relative w-full",
|
|
185
185
|
ref: _,
|
|
@@ -189,16 +189,16 @@ function M({ label: n, value: i, disabled: a, onPick: o }) {
|
|
|
189
189
|
onClick: () => c((e) => !e),
|
|
190
190
|
"aria-haspopup": "listbox",
|
|
191
191
|
"aria-expanded": s,
|
|
192
|
-
"aria-label":
|
|
192
|
+
"aria-label": t,
|
|
193
193
|
className: `${O} justify-between gap-2 text-left cursor-pointer hover:border-accent/40 disabled:cursor-not-allowed disabled:opacity-50`,
|
|
194
194
|
style: D,
|
|
195
195
|
children: [/* @__PURE__ */ f("span", {
|
|
196
|
-
className: `truncate ${
|
|
197
|
-
children:
|
|
198
|
-
}), /* @__PURE__ */ f(
|
|
196
|
+
className: `truncate ${n ? "text-foreground" : "text-foreground/40"}`,
|
|
197
|
+
children: n || "Country"
|
|
198
|
+
}), /* @__PURE__ */ f(i, { className: `w-3.5 h-3.5 shrink-0 text-foreground/50 transition-transform duration-300 ${s ? "rotate-180" : ""}` })]
|
|
199
199
|
}), s && /* @__PURE__ */ p("div", {
|
|
200
200
|
role: "listbox",
|
|
201
|
-
"aria-label":
|
|
201
|
+
"aria-label": t,
|
|
202
202
|
className: "absolute z-[999999] top-[calc(100%+8px)] left-0 w-full glass-popover overflow-hidden",
|
|
203
203
|
style: D,
|
|
204
204
|
children: [/* @__PURE__ */ p("div", {
|
|
@@ -222,7 +222,7 @@ function M({ label: n, value: i, disabled: a, onPick: o }) {
|
|
|
222
222
|
}), /* @__PURE__ */ p("div", {
|
|
223
223
|
className: "max-h-56 overflow-y-auto no-scrollbar p-1",
|
|
224
224
|
children: [
|
|
225
|
-
|
|
225
|
+
n && !b && /* @__PURE__ */ p("div", {
|
|
226
226
|
role: "option",
|
|
227
227
|
"aria-selected": !1,
|
|
228
228
|
onClick: () => {
|
|
@@ -257,30 +257,30 @@ function M({ label: n, value: i, disabled: a, onPick: o }) {
|
|
|
257
257
|
})]
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
|
-
function N({ id: e, label:
|
|
261
|
-
let m = j(
|
|
262
|
-
...
|
|
260
|
+
function N({ id: e, label: r, value: i, onChange: s, required: c = !1, disabled: l = !1, placeholder: u, error: d }) {
|
|
261
|
+
let m = j(i.street), h = a(v(i.country)), g = (e) => s({
|
|
262
|
+
...i,
|
|
263
263
|
...e
|
|
264
264
|
}), _ = (e) => m.take(() => s({
|
|
265
265
|
street: e.street,
|
|
266
266
|
city: e.city,
|
|
267
267
|
region: e.region,
|
|
268
268
|
postcode: e.postcode,
|
|
269
|
-
country: y(e.countryCode || e.country) ||
|
|
270
|
-
})), b = (e,
|
|
269
|
+
country: y(e.countryCode || e.country) || i.country
|
|
270
|
+
})), b = (e, t, n, a, o) => /* @__PURE__ */ f("div", {
|
|
271
271
|
className: a,
|
|
272
272
|
children: /* @__PURE__ */ f("input", {
|
|
273
273
|
type: "text",
|
|
274
274
|
disabled: l,
|
|
275
|
-
value:
|
|
275
|
+
value: i[e],
|
|
276
276
|
onChange: (t) => g({ [e]: t.target.value }),
|
|
277
|
-
placeholder:
|
|
278
|
-
"aria-label": `${
|
|
277
|
+
placeholder: n,
|
|
278
|
+
"aria-label": `${r} — ${t}`,
|
|
279
279
|
autoComplete: o,
|
|
280
280
|
className: k,
|
|
281
281
|
style: D
|
|
282
282
|
})
|
|
283
|
-
}, e), x = h.postal ? "col-span-1" : "col-span-2", S = h.region ? "col-span-1" : "col-span-2", C = !!(
|
|
283
|
+
}, e), x = h.postal ? "col-span-1" : "col-span-2", S = h.region ? "col-span-1" : "col-span-2", C = !!(i.country || i.city || i.region || i.postcode);
|
|
284
284
|
return /* @__PURE__ */ p("div", {
|
|
285
285
|
className: "flex flex-col w-full",
|
|
286
286
|
ref: m.boxRef,
|
|
@@ -288,7 +288,7 @@ function N({ id: e, label: t, value: r, onChange: s, required: c = !1, disabled:
|
|
|
288
288
|
/* @__PURE__ */ f("label", {
|
|
289
289
|
className: E,
|
|
290
290
|
htmlFor: e,
|
|
291
|
-
children:
|
|
291
|
+
children: r
|
|
292
292
|
}),
|
|
293
293
|
/* @__PURE__ */ p("div", {
|
|
294
294
|
className: "relative w-full",
|
|
@@ -296,13 +296,13 @@ function N({ id: e, label: t, value: r, onChange: s, required: c = !1, disabled:
|
|
|
296
296
|
className: `${O} gap-2.5 focus-within:border-accent glow-focus ${d ? "border-red-500/50" : ""}`,
|
|
297
297
|
style: D,
|
|
298
298
|
children: [
|
|
299
|
-
/* @__PURE__ */ f(
|
|
299
|
+
/* @__PURE__ */ f(t, { className: "w-4 h-4 shrink-0 text-foreground/40" }),
|
|
300
300
|
/* @__PURE__ */ f("input", {
|
|
301
301
|
id: e,
|
|
302
302
|
type: "text",
|
|
303
303
|
required: c,
|
|
304
304
|
disabled: l,
|
|
305
|
-
value:
|
|
305
|
+
value: i.street,
|
|
306
306
|
onChange: (e) => {
|
|
307
307
|
m.typed.current = !0, g({ street: e.target.value });
|
|
308
308
|
},
|
|
@@ -323,17 +323,17 @@ function N({ id: e, label: t, value: r, onChange: s, required: c = !1, disabled:
|
|
|
323
323
|
}), m.open && /* @__PURE__ */ f("div", {
|
|
324
324
|
id: `${e}-list`,
|
|
325
325
|
role: "listbox",
|
|
326
|
-
"aria-label":
|
|
326
|
+
"aria-label": r,
|
|
327
327
|
className: "absolute z-[999999] top-[calc(100%+8px)] left-0 w-full glass-popover overflow-hidden p-1",
|
|
328
328
|
style: D,
|
|
329
|
-
children: m.rows.map((e,
|
|
329
|
+
children: m.rows.map((e, n) => /* @__PURE__ */ p("div", {
|
|
330
330
|
role: "option",
|
|
331
|
-
"aria-selected":
|
|
332
|
-
onMouseEnter: () => m.setActive(
|
|
331
|
+
"aria-selected": n === m.active,
|
|
332
|
+
onMouseEnter: () => m.setActive(n),
|
|
333
333
|
onClick: () => _(e),
|
|
334
|
-
className: `flex items-center gap-2.5 px-3 py-2.5 transition-colors text-[13px] font-medium cursor-pointer ${
|
|
334
|
+
className: `flex items-center gap-2.5 px-3 py-2.5 transition-colors text-[13px] font-medium cursor-pointer ${n === m.active ? "bg-accent/10 text-accent" : "text-foreground/80 hover:bg-foreground/5"}`,
|
|
335
335
|
style: { borderRadius: "calc(var(--input-radius, 0.75rem) - 0.25rem)" },
|
|
336
|
-
children: [/* @__PURE__ */ f(
|
|
336
|
+
children: [/* @__PURE__ */ f(t, { className: "w-3.5 h-3.5 shrink-0 text-foreground/35" }), /* @__PURE__ */ f("span", {
|
|
337
337
|
className: "truncate",
|
|
338
338
|
children: e.label
|
|
339
339
|
})]
|
|
@@ -343,8 +343,8 @@ function N({ id: e, label: t, value: r, onChange: s, required: c = !1, disabled:
|
|
|
343
343
|
/* @__PURE__ */ f("div", {
|
|
344
344
|
className: "mt-2.5",
|
|
345
345
|
children: /* @__PURE__ */ f(M, {
|
|
346
|
-
label: `${
|
|
347
|
-
value:
|
|
346
|
+
label: `${r} — country`,
|
|
347
|
+
value: i.country,
|
|
348
348
|
disabled: l,
|
|
349
349
|
onPick: (e) => g({ country: e })
|
|
350
350
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./lucide-react-
|
|
1
|
+
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./lucide-react-BYniZ3lQ.cjs`),t=require(`./address-DI1YaCI4.cjs`),n=require(`./dist-BLGlDv1e.cjs`);let r=require(`react`),i=require(`react/jsx-runtime`);var a=null;function o(){return a||(a=n.t.map(e=>{let t=n.n(e);return{iso2:t.iso2,name:t.name}}).sort((e,t)=>e.name.localeCompare(t.name)),a)}var s=e=>o().find(t=>t.iso2===String(e||``).toLowerCase())?.name||``,c={"united states of america":`us`,usa:`us`,"u.s.":`us`,"u.s.a.":`us`,uk:`gb`,"great britain":`gb`,england:`gb`,scotland:`gb`,wales:`gb`,"northern ireland":`gb`,"russian federation":`ru`,deutschland:`de`,españa:`es`,italia:`it`,brasil:`br`,"south korea":`kr`,"republic of korea":`kr`,"north korea":`kp`,czechia:`cz`,"czech republic":`cz`,"viet nam":`vn`,türkiye:`tr`,"the netherlands":`nl`,holland:`nl`,uae:`ae`,"united arab emirates":`ae`,"hong kong sar":`hk`,macau:`mo`,"ivory coast":`ci`,"côte d'ivoire":`ci`,eswatini:`sz`,"myanmar (burma)":`mm`,burma:`mm`};function l(e){let t=String(e||``).trim().toLowerCase();if(!t)return``;if(/^[a-z]{2}$/.test(t)&&o().some(e=>e.iso2===t))return t;if(c[t])return c[t];let n=o().find(e=>e.name.toLowerCase()===t);return n?n.iso2:o().find(e=>t.startsWith(e.name.toLowerCase())||e.name.toLowerCase().startsWith(t))?.iso2||``}function u(e){let t=l(e);return t?s(t):String(e||``).trim()}var d=`https://photon.komoot.io/api/`;function f(e){let t=(e.street||``).trim(),n=(e.housenumber||``).trim();return t?n?`${n} ${t}`:t:(e.name||``).trim()}var p=e=>(e.city||e.town||e.village||e.district||e.county||``).trim();function m(e,t){let n=e.properties;if(!n)return null;let r=f(n),i=p(n);if(!r&&!i)return null;let a=(n.state||``).trim(),o=(n.postcode||``).trim(),s=(n.country||``).trim(),c=[a,o].filter(Boolean).join(` `);return{id:`${n.osm_type||`x`}${n.osm_id??t}-${t}`,label:[r,i,c,s].filter(Boolean).join(`, `),street:r,city:i,region:a,postcode:o,country:s,countryCode:(n.countrycode||``).trim().toLowerCase()}}function h(e){let t=new Set;return e.filter(e=>{let n=e.label.toLowerCase();return t.has(n)?!1:(t.add(n),!0)})}async function g(e,t={}){let n=String(e||``).trim();if(n.length<3)return[];let r=`${d}?q=${encodeURIComponent(n)}&limit=${t.limit??6}`;try{let e=await fetch(r,{signal:t.signal});if(!e.ok)return[];let n=await e.json();return h((Array.isArray(n?.features)?n.features:[]).map(m).filter(e=>e!==null))}catch{return[]}}var _=`text-[13px] font-medium text-foreground/70 select-none mb-2`,v={borderRadius:`var(--input-radius, 0.75rem)`},y=`flex items-center h-12 w-full px-4 text-[15px] text-foreground transition-all duration-300 glass-panel`,b=`block h-12 w-full px-4 py-2 text-[15px] text-foreground transition-all duration-300 placeholder:text-foreground/40 focus:outline-none focus:border-accent glow-focus disabled:cursor-not-allowed disabled:opacity-50 glass-panel`,x=`flex-1 min-w-0 bg-transparent border-none outline-none shadow-none p-0 text-[15px] text-foreground placeholder:text-foreground/40 no-glow`;function S(e){let[t,n]=(0,r.useState)(!1),[i,a]=(0,r.useState)(!1),[o,s]=(0,r.useState)([]),[c,l]=(0,r.useState)(-1),u=(0,r.useRef)(!1),d=(0,r.useRef)(!1),f=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(u.current){u.current=!1;return}if(!d.current){s([]),a(!1),n(!1);return}let t=e.trim();if(t.length<3){s([]),a(!1),n(!1);return}let r=new AbortController;a(!0);let i=setTimeout(async()=>{let e=await g(t,{signal:r.signal});r.signal.aborted||(s(e),l(-1),a(!1),n(e.length>0))},250);return()=>{r.abort(),clearTimeout(i)}},[e]),(0,r.useEffect)(()=>{if(!t)return;let e=e=>{f.current?.contains(e.target)||n(!1)};return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},[t]),{open:t,setOpen:n,busy:i,rows:o,active:c,setActive:l,boxRef:f,typed:d,take:e=>{u.current=!0,e(),n(!1),s([]),l(-1)},onKeyDown:(e,r)=>{if(e.key===`Escape`&&t){e.stopPropagation(),n(!1);return}!t||!o.length||(e.key===`ArrowDown`?(e.preventDefault(),l(e=>(e+1)%o.length)):e.key===`ArrowUp`?(e.preventDefault(),l(e=>(e<=0?o.length:e)-1)):e.key===`Enter`&&c>=0&&(e.preventDefault(),r(o[c])))}}}function C({label:t,value:n,disabled:a,onPick:s}){let[c,u]=(0,r.useState)(!1),[d,f]=(0,r.useState)(``),p=(0,r.useRef)(null),m=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!c){f(``);return}m.current?.focus();let e=e=>{p.current?.contains(e.target)||u(!1)};return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},[c]);let h=d.trim().toLowerCase(),g=h?o().filter(e=>e.name.toLowerCase().includes(h)):o(),_=l(n);return(0,i.jsxs)(`div`,{className:`relative w-full`,ref:p,children:[(0,i.jsxs)(`button`,{type:`button`,disabled:a,onClick:()=>u(e=>!e),"aria-haspopup":`listbox`,"aria-expanded":c,"aria-label":t,className:`${y} justify-between gap-2 text-left cursor-pointer hover:border-accent/40 disabled:cursor-not-allowed disabled:opacity-50`,style:v,children:[(0,i.jsx)(`span`,{className:`truncate ${n?`text-foreground`:`text-foreground/40`}`,children:n||`Country`}),(0,i.jsx)(e.on,{className:`w-3.5 h-3.5 shrink-0 text-foreground/50 transition-transform duration-300 ${c?`rotate-180`:``}`})]}),c&&(0,i.jsxs)(`div`,{role:`listbox`,"aria-label":t,className:`absolute z-[999999] top-[calc(100%+8px)] left-0 w-full glass-popover overflow-hidden`,style:v,children:[(0,i.jsxs)(`div`,{className:`flex items-center gap-2 px-3 h-11 border-b border-[var(--panel-border)]/50`,children:[(0,i.jsx)(e.F,{className:`w-3.5 h-3.5 shrink-0 text-foreground/35`}),(0,i.jsx)(`input`,{ref:m,value:d,onChange:e=>f(e.target.value),onKeyDown:e=>{if(e.key===`Escape`){e.stopPropagation(),u(!1);return}e.key===`Enter`&&(e.preventDefault(),g[0]&&(s(g[0].name),u(!1)))},placeholder:`Search countries`,"aria-label":`Search countries`,autoComplete:`off`,className:`${x} text-[14px]`})]}),(0,i.jsxs)(`div`,{className:`max-h-56 overflow-y-auto no-scrollbar p-1`,children:[n&&!h&&(0,i.jsxs)(`div`,{role:`option`,"aria-selected":!1,onClick:()=>{s(``),u(!1)},className:`flex items-center gap-2.5 px-3 py-2.5 text-[13px] font-medium text-foreground/60 hover:bg-foreground/5 cursor-pointer`,style:{borderRadius:`calc(var(--input-radius, 0.75rem) - 0.25rem)`},children:[(0,i.jsx)(e.o,{className:`w-3.5 h-3.5 shrink-0 text-foreground/35`}),(0,i.jsx)(`span`,{className:`truncate`,children:`No country`})]}),g.map(e=>(0,i.jsx)(`div`,{role:`option`,"aria-selected":e.iso2===_,onClick:()=>{s(e.name),u(!1)},className:`flex items-center px-3 py-2.5 transition-colors font-medium text-[13px] cursor-pointer ${e.iso2===_?`bg-accent/10 text-accent font-bold`:`text-foreground/80 hover:bg-foreground/5 hover:text-foreground`}`,style:{borderRadius:`calc(var(--input-radius, 0.75rem) - 0.25rem)`},children:(0,i.jsx)(`span`,{className:`truncate`,children:e.name})},e.iso2)),g.length===0&&(0,i.jsx)(`div`,{className:`px-3 py-2.5 text-[13px] text-foreground/40`,children:`No match`})]})]})]})}function w({id:n,label:r,value:a,onChange:o,required:s=!1,disabled:c=!1,placeholder:d,error:f}){let p=S(a.street),m=t.o(l(a.country)),h=e=>o({...a,...e}),g=e=>p.take(()=>o({street:e.street,city:e.city,region:e.region,postcode:e.postcode,country:u(e.countryCode||e.country)||a.country})),w=(e,t,n,o,s)=>(0,i.jsx)(`div`,{className:o,children:(0,i.jsx)(`input`,{type:`text`,disabled:c,value:a[e],onChange:t=>h({[e]:t.target.value}),placeholder:n,"aria-label":`${r} — ${t}`,autoComplete:s,className:b,style:v})},e),T=m.postal?`col-span-1`:`col-span-2`,E=m.region?`col-span-1`:`col-span-2`,D=!!(a.country||a.city||a.region||a.postcode);return(0,i.jsxs)(`div`,{className:`flex flex-col w-full`,ref:p.boxRef,children:[(0,i.jsx)(`label`,{className:_,htmlFor:n,children:r}),(0,i.jsxs)(`div`,{className:`relative w-full`,children:[(0,i.jsxs)(`div`,{className:`${y} gap-2.5 focus-within:border-accent glow-focus ${f?`border-red-500/50`:``}`,style:v,children:[(0,i.jsx)(e.ct,{className:`w-4 h-4 shrink-0 text-foreground/40`}),(0,i.jsx)(`input`,{id:n,type:`text`,required:s,disabled:c,value:a.street,onChange:e=>{p.typed.current=!0,h({street:e.target.value})},onFocus:()=>{p.rows.length&&p.setOpen(!0)},onKeyDown:e=>p.onKeyDown(e,g),role:`combobox`,"aria-expanded":p.open,"aria-autocomplete":`list`,"aria-controls":`${n}-list`,placeholder:d||`Start typing your address`,autoComplete:`address-line1`,className:x}),p.busy&&(0,i.jsx)(e.ht,{className:`w-3.5 h-3.5 shrink-0 text-foreground/30 animate-spin`})]}),p.open&&(0,i.jsx)(`div`,{id:`${n}-list`,role:`listbox`,"aria-label":r,className:`absolute z-[999999] top-[calc(100%+8px)] left-0 w-full glass-popover overflow-hidden p-1`,style:v,children:p.rows.map((t,n)=>(0,i.jsxs)(`div`,{role:`option`,"aria-selected":n===p.active,onMouseEnter:()=>p.setActive(n),onClick:()=>g(t),className:`flex items-center gap-2.5 px-3 py-2.5 transition-colors text-[13px] font-medium cursor-pointer ${n===p.active?`bg-accent/10 text-accent`:`text-foreground/80 hover:bg-foreground/5`}`,style:{borderRadius:`calc(var(--input-radius, 0.75rem) - 0.25rem)`},children:[(0,i.jsx)(e.ct,{className:`w-3.5 h-3.5 shrink-0 text-foreground/35`}),(0,i.jsx)(`span`,{className:`truncate`,children:t.label})]},t.id))})]}),(0,i.jsx)(`div`,{className:`mt-2.5`,children:(0,i.jsx)(C,{label:`${r} — country`,value:a.country,disabled:c,onPick:e=>h({country:e})})}),D&&(0,i.jsxs)(`div`,{className:`grid grid-cols-2 gap-2.5 mt-2.5`,children:[w(`city`,`city`,t.t[m.locality],`col-span-2`,`address-level2`),m.region&&w(`region`,`region`,t.t[m.region],T,`address-level1`),m.postal&&w(`postcode`,`postcode`,t.t[m.postal],E,`postal-code`)]}),f&&(0,i.jsx)(`p`,{className:`text-[13px] text-red-500 font-medium mt-1.5`,children:f})]})}exports.AddressField=w,exports.default=w;
|