@ctonti/ask-golf-veneto 1.0.6 → 1.0.8

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/browser.js CHANGED
@@ -29711,6 +29711,28 @@ const Bus = createLucideIcon("bus", [
29711
29711
  key: "1v4tcr"
29712
29712
  }]
29713
29713
  ]);
29714
+ const Calendar = createLucideIcon("calendar", [
29715
+ ["path", {
29716
+ d: "M8 2v4",
29717
+ key: "1cmpym"
29718
+ }],
29719
+ ["path", {
29720
+ d: "M16 2v4",
29721
+ key: "4m81vk"
29722
+ }],
29723
+ ["rect", {
29724
+ width: "18",
29725
+ height: "18",
29726
+ x: "3",
29727
+ y: "4",
29728
+ rx: "2",
29729
+ key: "1hopcy"
29730
+ }],
29731
+ ["path", {
29732
+ d: "M3 10h18",
29733
+ key: "8toen8"
29734
+ }]
29735
+ ]);
29714
29736
  const Car = createLucideIcon("car", [
29715
29737
  ["path", {
29716
29738
  d: "M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",
@@ -29941,6 +29963,24 @@ const MapPin = createLucideIcon("map-pin", [["path", {
29941
29963
  r: "3",
29942
29964
  key: "ilqhr7"
29943
29965
  }]]);
29966
+ const MessageSquareText = createLucideIcon("message-square-text", [
29967
+ ["path", {
29968
+ d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",
29969
+ key: "18887p"
29970
+ }],
29971
+ ["path", {
29972
+ d: "M7 11h10",
29973
+ key: "1twpyw"
29974
+ }],
29975
+ ["path", {
29976
+ d: "M7 15h6",
29977
+ key: "d9of3u"
29978
+ }],
29979
+ ["path", {
29980
+ d: "M7 7h8",
29981
+ key: "af5zfr"
29982
+ }]
29983
+ ]);
29944
29984
  const Mic = createLucideIcon("mic", [
29945
29985
  ["path", {
29946
29986
  d: "M12 19v3",
@@ -30107,6 +30147,13 @@ const Ruler = createLucideIcon("ruler", [
30107
30147
  key: "wo5hmg"
30108
30148
  }]
30109
30149
  ]);
30150
+ const Send = createLucideIcon("send", [["path", {
30151
+ d: "M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",
30152
+ key: "1ffxy3"
30153
+ }], ["path", {
30154
+ d: "m21.854 2.147-10.94 10.939",
30155
+ key: "12cjpa"
30156
+ }]]);
30110
30157
  const Settings2 = createLucideIcon("settings-2", [
30111
30158
  ["path", {
30112
30159
  d: "M14 17H5",
@@ -69136,51 +69183,384 @@ function Chat$1({ appKey, apiKey, ...props }) {
69136
69183
  //#region src/components/intro.tsx
69137
69184
  function Intro() {
69138
69185
  const { PromptIntro } = (0, import_react.useContext)(ComponentsContext);
69139
- const { contents, append } = (0, import_react.useContext)(ChatContext);
69140
- const title = contents.intro?.title || "Progetta la tua <em>vacanza golf</em> in Veneto";
69186
+ const chatCtx = (0, import_react.useContext)(ChatContext);
69187
+ const title = chatCtx?.contents?.intro?.title || "Progetta la tua <em>vacanza golf</em> in Veneto";
69188
+ const [activeTab, setActiveTab] = (0, import_react.useState)("wizard");
69189
+ const [period, setPeriod] = (0, import_react.useState)("Maggio - Giugno");
69190
+ const [duration, setDuration] = (0, import_react.useState)("7 Giorni (1 Settimana)");
69191
+ const [travelers, setTravelers] = (0, import_react.useState)("Coppia");
69192
+ const [golfFrequency, setGolfFrequency] = (0, import_react.useState)("Golf a giorni alterni");
69193
+ const [golfLevel, setGolfLevel] = (0, import_react.useState)("Giocatore Amatoriale (HCP 15-28)");
69194
+ const [interests, setInterests] = (0, import_react.useState)([
69195
+ "Degustazioni Vini (Prosecco DOCG / Amarone)",
69196
+ "Arte & Città Storiche (Venezia, Verona, Vicenza)",
69197
+ "Terme & Benessere (Colli Euganei)"
69198
+ ]);
69199
+ const [stayType, setStayType] = (0, import_react.useState)("Golf Resort & Hotel 5★");
69200
+ const [transport, setTransport] = (0, import_react.useState)("Volo + Noleggio Auto");
69201
+ const [notes, setNotes] = (0, import_react.useState)("");
69202
+ const toggleInterest = (item) => {
69203
+ setInterests((prev) => prev.includes(item) ? prev.filter((i) => i !== item) : [...prev, item]);
69204
+ };
69205
+ const submitMessage = (formattedText) => {
69206
+ console.log("Submitting prompt to chat:", formattedText);
69207
+ if (typeof chatCtx?.append === "function") {
69208
+ chatCtx.append({
69209
+ role: "user",
69210
+ content: formattedText
69211
+ });
69212
+ return;
69213
+ }
69214
+ if (typeof chatCtx?.sendMessage === "function") {
69215
+ chatCtx.sendMessage({ text: formattedText });
69216
+ return;
69217
+ }
69218
+ if (typeof chatCtx?.setInput === "function") {
69219
+ chatCtx.setInput(formattedText);
69220
+ setTimeout(() => {
69221
+ if (typeof chatCtx?.handleSubmit === "function") chatCtx.handleSubmit();
69222
+ }, 50);
69223
+ return;
69224
+ }
69225
+ };
69226
+ const handleWizardSubmit = (e) => {
69227
+ e.preventDefault();
69228
+ submitMessage(`Desidero organizzare una vacanza su misura in Veneto con i seguenti dettagli:
69229
+
69230
+ - **Periodo desiderato:** ${period}
69231
+ - **Durata del soggiorno:** ${duration}
69232
+ - **Tipologia di viaggiatori:** ${travelers}
69233
+ - **Frequenza di gioco:** ${golfFrequency}
69234
+ - **Livello / Handicap:** ${golfLevel}
69235
+ - **Interests principali (oltre al golf):** ${interests.length > 0 ? interests.join(", ") : "Nessuno in particolare"}
69236
+ - **Tipologia di alloggio preferita:** ${stayType}
69237
+ - **Modalità di trasporto e logistica:** ${transport}
69238
+ ${notes.trim() ? `- **Note e desideri particolari:** ${notes}` : ""}
69239
+
69240
+ Per favore, progetta per noi un itinerario dettagliatissimo e motivazionale in Veneto, selezionando i migliori Golf Club affiliati al consorzio e le migliori esperienze correlate.`);
69241
+ };
69141
69242
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", {
69142
- className: "relative flex min-h-[calc(100vh-80px)] w-full flex-col items-center justify-center py-12 px-6 bg-[#faf8f3] text-[#213f31] overflow-hidden",
69243
+ className: "relative flex min-h-[calc(100vh-80px)] w-full flex-col items-center justify-center py-12 px-4 bg-[#faf8f3] text-[#213f31] overflow-hidden",
69143
69244
  children: [
69144
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute -top-24 -right-24 w-96 h-96 rounded-full bg-[#213f31]/5 pointer-events-none" }),
69145
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute -bottom-24 -left-24 w-96 h-96 rounded-full bg-[#478264]/5 pointer-events-none" }),
69245
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute -top-32 -right-32 w-[500px] h-[500px] rounded-full bg-[#213f31]/5 pointer-events-none blur-3xl" }),
69246
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute -bottom-32 -left-32 w-[500px] h-[500px] rounded-full bg-[#478264]/5 pointer-events-none blur-3xl" }),
69146
69247
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69147
- className: "relative z-10 w-full max-w-4xl mx-auto flex flex-col items-center gap-8 text-center",
69248
+ className: "relative z-10 w-full max-w-4xl mx-auto flex flex-col items-center gap-6 text-center",
69148
69249
  children: [
69149
69250
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69150
69251
  className: "inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-[#213f31]/10 border border-[#213f31]/20",
69151
- children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "w-2 h-2 rounded-full bg-[#34674e]" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
69252
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "w-2 h-2 rounded-full bg-[#34674e] animate-pulse" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
69152
69253
  className: "text-[#213f31] font-sans text-xs font-semibold uppercase tracking-[0.25em]",
69153
69254
  children: "Concierge Ufficiale Golf in Veneto"
69154
69255
  })]
69155
69256
  }),
69156
69257
  title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
69157
- className: "text-4xl @md:text-6xl @lg:text-7xl font-normal leading-[1.15] font-heading italic text-[#213f31] drop-shadow-sm max-w-3xl",
69258
+ className: "text-4xl @md:text-5xl @lg:text-6xl font-normal leading-[1.15] font-heading italic text-[#213f31] drop-shadow-sm max-w-3xl",
69158
69259
  dangerouslySetInnerHTML: { __html: title }
69159
69260
  }),
69160
69261
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
69161
69262
  className: "font-sans text-[#213f31]/80 text-base @md:text-lg max-w-2xl font-light leading-relaxed",
69162
- children: "Un consulente dedicato per disegnare il tuo itinerario su misura: campi da golf affiliati, eccellenze enogastronomiche, arte e relax."
69263
+ children: "Compila il form per ricevere un programma di viaggio dettagliatissimo ideato dai nostri esperti per i 15 campi da golf affiliati in Veneto."
69163
69264
  }),
69164
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
69165
- className: "w-full max-w-2xl mt-2 bg-white rounded-2xl p-4 shadow-xl border border-[#e8d9c0]",
69166
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PromptIntro, {})
69265
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69266
+ className: "flex items-center gap-2 bg-[#213f31]/10 p-1.5 rounded-full border border-[#213f31]/15 mb-2",
69267
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
69268
+ type: "button",
69269
+ onClick: () => setActiveTab("wizard"),
69270
+ className: `flex items-center gap-2 px-5 py-2 rounded-full text-xs font-bold uppercase tracking-wider transition-all cursor-pointer ${activeTab === "wizard" ? "bg-[#213f31] text-[#faf8f3] shadow-md" : "text-[#213f31]/70 hover:text-[#213f31]"}`,
69271
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Sparkles, { className: "w-4 h-4 text-[#e8d9c0]" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Planner Su Misura (Consigliato)" })]
69272
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
69273
+ type: "button",
69274
+ onClick: () => setActiveTab("chat"),
69275
+ className: `flex items-center gap-2 px-5 py-2 rounded-full text-xs font-bold uppercase tracking-wider transition-all cursor-pointer ${activeTab === "chat" ? "bg-[#213f31] text-[#faf8f3] shadow-md" : "text-[#213f31]/70 hover:text-[#213f31]"}`,
69276
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MessageSquareText, { className: "w-4 h-4" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Messaggio Libero" })]
69277
+ })]
69167
69278
  }),
69168
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
69169
- className: "flex flex-wrap items-center justify-center gap-2.5 mt-2 max-w-3xl",
69279
+ activeTab === "wizard" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", {
69280
+ onSubmit: handleWizardSubmit,
69281
+ className: "w-full bg-white rounded-3xl p-6 @md:p-8 shadow-2xl border border-[#e8d9c0] text-left space-y-6 text-[#213f31]",
69170
69282
  children: [
69171
- "5 giorni tra golf d'eccellenza e Prosecco",
69172
- "Weekend romantico: Golf al Lido & Venezia",
69173
- "Golf, Terme ed Enogastronomia nei Colli Euganei",
69174
- "Tour dei migliori 15 Golf Club del Veneto"
69175
- ].map((prompt, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
69176
- type: "button",
69177
- onClick: () => append?.({
69178
- role: "user",
69179
- content: prompt
69283
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69284
+ className: "space-y-3 pb-5 border-b border-[#e8d9c0]/50",
69285
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69286
+ className: "flex items-center gap-2 text-xs font-bold uppercase tracking-wider text-[#34674e]",
69287
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Calendar, { className: "w-4 h-4 text-[#34674e]" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "1. Periodo & Durata" })]
69288
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69289
+ className: "grid grid-cols-1 @md:grid-cols-2 gap-4",
69290
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", {
69291
+ className: "block text-xs font-semibold text-[#213f31]/70 mb-1.5",
69292
+ children: "Mese / Stagione Ideale"
69293
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("select", {
69294
+ value: period,
69295
+ onChange: (e) => setPeriod(e.target.value),
69296
+ className: "w-full bg-[#faf8f3] border border-[#e8d9c0] rounded-xl px-4 py-2.5 text-sm font-medium text-[#213f31] focus:outline-none focus:ring-2 focus:ring-[#34674e]",
69297
+ children: [
69298
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69299
+ value: "Primavera (Aprile - Maggio)",
69300
+ children: "Primavera (Aprile - Maggio)"
69301
+ }),
69302
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69303
+ value: "Inizio Estate (Giugno - Luglio)",
69304
+ children: "Inizio Estate (Giugno - Luglio)"
69305
+ }),
69306
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69307
+ value: "Tarda Estate / Autunno (Settembre - Ottobre)",
69308
+ children: "Tarda Estate / Autunno (Settembre - Ottobre)"
69309
+ }),
69310
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69311
+ value: "Inverno (Golf & Spa/Montagna)",
69312
+ children: "Inverno (Golf & Spa/Montagna)"
69313
+ }),
69314
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69315
+ value: "Date Flessibili / Tutto l'anno",
69316
+ children: "Date Flessibili / Tutto l'anno"
69317
+ })
69318
+ ]
69319
+ })] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", {
69320
+ className: "block text-xs font-semibold text-[#213f31]/70 mb-1.5",
69321
+ children: "Durata del Viaggio"
69322
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("select", {
69323
+ value: duration,
69324
+ onChange: (e) => setDuration(e.target.value),
69325
+ className: "w-full bg-[#faf8f3] border border-[#e8d9c0] rounded-xl px-4 py-2.5 text-sm font-medium text-[#213f31] focus:outline-none focus:ring-2 focus:ring-[#34674e]",
69326
+ children: [
69327
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69328
+ value: "3-4 Giorni (Weekend Lungo)",
69329
+ children: "3-4 Giorni (Weekend Lungo)"
69330
+ }),
69331
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69332
+ value: "5 Giorni (Feriali o Breve Vacanza)",
69333
+ children: "5 Giorni (Feriali o Breve Vacanza)"
69334
+ }),
69335
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69336
+ value: "7 Giorni (1 Settimana Classica)",
69337
+ children: "7 Giorni (1 Settimana Classica)"
69338
+ }),
69339
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69340
+ value: "10-14 Giorni (Grand Tour Veneto)",
69341
+ children: "10-14 Giorni (Grand Tour Veneto)"
69342
+ })
69343
+ ]
69344
+ })] })]
69345
+ })]
69180
69346
  }),
69181
- className: "px-4 py-2 rounded-full bg-[#213f31]/5 hover:bg-[#213f31] text-[#213f31] hover:text-[#faf8f3] text-xs font-medium border border-[#213f31]/15 transition-all duration-200 cursor-pointer shadow-sm",
69182
- children: prompt
69183
- }, i))
69347
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69348
+ className: "space-y-3 pb-5 border-b border-[#e8d9c0]/50",
69349
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69350
+ className: "flex items-center gap-2 text-xs font-bold uppercase tracking-wider text-[#34674e]",
69351
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Users, { className: "w-4 h-4 text-[#34674e]" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "2. Chi Viaggia & Frequenza Golf" })]
69352
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69353
+ className: "grid grid-cols-1 @md:grid-cols-3 gap-4",
69354
+ children: [
69355
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", {
69356
+ className: "block text-xs font-semibold text-[#213f31]/70 mb-1.5",
69357
+ children: "Composizione Gruppo"
69358
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("select", {
69359
+ value: travelers,
69360
+ onChange: (e) => setTravelers(e.target.value),
69361
+ className: "w-full bg-[#faf8f3] border border-[#e8d9c0] rounded-xl px-3.5 py-2.5 text-sm font-medium text-[#213f31] focus:outline-none focus:ring-2 focus:ring-[#34674e]",
69362
+ children: [
69363
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69364
+ value: "Coppia (Golf & Relax)",
69365
+ children: "Coppia (Golf & Relax)"
69366
+ }),
69367
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69368
+ value: "Gruppo di Amici Golfisti",
69369
+ children: "Gruppo di Amici Golfisti"
69370
+ }),
69371
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69372
+ value: "Famiglia con bambini/ragazzi",
69373
+ children: "Famiglia con bambini/ragazzi"
69374
+ }),
69375
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69376
+ value: "Viaggiatore Singolo (Solo Traveler)",
69377
+ children: "Viaggiatore Singolo (Solo Traveler)"
69378
+ })
69379
+ ]
69380
+ })] }),
69381
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", {
69382
+ className: "block text-xs font-semibold text-[#213f31]/70 mb-1.5",
69383
+ children: "Ritmo di Gioco Desiderato"
69384
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("select", {
69385
+ value: golfFrequency,
69386
+ onChange: (e) => setGolfFrequency(e.target.value),
69387
+ className: "w-full bg-[#faf8f3] border border-[#e8d9c0] rounded-xl px-3.5 py-2.5 text-sm font-medium text-[#213f31] focus:outline-none focus:ring-2 focus:ring-[#34674e]",
69388
+ children: [
69389
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69390
+ value: "Golf Intenso (Tutti i giorni 18 buche)",
69391
+ children: "Golf Intenso (Tutti i giorni 18 buche)"
69392
+ }),
69393
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69394
+ value: "Golf a giorni alterni (Equilibrato)",
69395
+ children: "Golf a giorni alterni (Equilibrato)"
69396
+ }),
69397
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69398
+ value: "Golf Rilassante (2-3 uscite in totale)",
69399
+ children: "Golf Rilassante (2-3 uscite in totale)"
69400
+ })
69401
+ ]
69402
+ })] }),
69403
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", {
69404
+ className: "block text-xs font-semibold text-[#213f31]/70 mb-1.5",
69405
+ children: "Livello / Handicap"
69406
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("select", {
69407
+ value: golfLevel,
69408
+ onChange: (e) => setGolfLevel(e.target.value),
69409
+ className: "w-full bg-[#faf8f3] border border-[#e8d9c0] rounded-xl px-3.5 py-2.5 text-sm font-medium text-[#213f31] focus:outline-none focus:ring-2 focus:ring-[#34674e]",
69410
+ children: [
69411
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69412
+ value: "Giocatore Amatoriale (HCP 15-28)",
69413
+ children: "Giocatore Amatoriale (HCP 15-28)"
69414
+ }),
69415
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69416
+ value: "Giocatore Esperto / Single Digit (HCP < 12)",
69417
+ children: "Giocatore Esperto / Single Digit (HCP < 12)"
69418
+ }),
69419
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69420
+ value: "Principiante / Pratica & Accademia",
69421
+ children: "Principiante / Pratica & Accademia"
69422
+ }),
69423
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69424
+ value: "Misto (Golfisti + Non-Golfisti)",
69425
+ children: "Misto (Golfisti + Non-Golfisti)"
69426
+ })
69427
+ ]
69428
+ })] })
69429
+ ]
69430
+ })]
69431
+ }),
69432
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69433
+ className: "space-y-3 pb-5 border-b border-[#e8d9c0]/50",
69434
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69435
+ className: "flex items-center gap-2 text-xs font-bold uppercase tracking-wider text-[#34674e]",
69436
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Compass, { className: "w-4 h-4 text-[#34674e]" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "3. Interessi ed Esperienze Extra Golf" })]
69437
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
69438
+ className: "grid grid-cols-1 @md:grid-cols-2 gap-2.5",
69439
+ children: [
69440
+ "Degustazioni Vini (Prosecco DOCG / Amarone)",
69441
+ "Arte & Città Storiche (Venezia, Verona, Vicenza)",
69442
+ "Terme & Benessere (Colli Euganei)",
69443
+ "Cucina Gourmet & Trattorie Tipiche",
69444
+ "Dolomiti & Escursioni in Natura",
69445
+ "Lago di Garda & Parchi per la Famiglia"
69446
+ ].map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69447
+ onClick: () => toggleInterest(item),
69448
+ className: `flex items-center gap-3 p-3 rounded-xl border cursor-pointer transition-all ${interests.includes(item) ? "bg-[#213f31]/10 border-[#213f31] text-[#213f31] font-semibold" : "bg-[#faf8f3] border-[#e8d9c0] text-[#213f31]/70 hover:border-[#213f31]/40"}`,
69449
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("input", {
69450
+ type: "checkbox",
69451
+ checked: interests.includes(item),
69452
+ onChange: () => {},
69453
+ className: "w-4 h-4 accent-[#213f31]"
69454
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
69455
+ className: "text-xs",
69456
+ children: item
69457
+ })]
69458
+ }, i))
69459
+ })]
69460
+ }),
69461
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69462
+ className: "space-y-3 pb-4",
69463
+ children: [
69464
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69465
+ className: "flex items-center gap-2 text-xs font-bold uppercase tracking-wider text-[#34674e]",
69466
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Car, { className: "w-4 h-4 text-[#34674e]" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "4. Ospitalità & Logistica" })]
69467
+ }),
69468
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69469
+ className: "grid grid-cols-1 @md:grid-cols-2 gap-4",
69470
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", {
69471
+ className: "block text-xs font-semibold text-[#213f31]/70 mb-1.5",
69472
+ children: "Stile di Alloggio"
69473
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("select", {
69474
+ value: stayType,
69475
+ onChange: (e) => setStayType(e.target.value),
69476
+ className: "w-full bg-[#faf8f3] border border-[#e8d9c0] rounded-xl px-4 py-2.5 text-sm font-medium text-[#213f31] focus:outline-none focus:ring-2 focus:ring-[#34674e]",
69477
+ children: [
69478
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69479
+ value: "Golf Resort & Hotel 5★",
69480
+ children: "Golf Resort & Hotel 5★"
69481
+ }),
69482
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69483
+ value: "Boutique Hotel in Ville Storiche Venete",
69484
+ children: "Boutique Hotel in Ville Storiche Venete"
69485
+ }),
69486
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69487
+ value: "Hotel Termale & Spa Resort",
69488
+ children: "Hotel Termale & Spa Resort"
69489
+ }),
69490
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69491
+ value: "Agriturismo di Charme tra i Vigneti",
69492
+ children: "Agriturismo di Charme tra i Vigneti"
69493
+ })
69494
+ ]
69495
+ })] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", {
69496
+ className: "block text-xs font-semibold text-[#213f31]/70 mb-1.5",
69497
+ children: "Trasporto & Trasferimenti"
69498
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("select", {
69499
+ value: transport,
69500
+ onChange: (e) => setTransport(e.target.value),
69501
+ className: "w-full bg-[#faf8f3] border border-[#e8d9c0] rounded-xl px-4 py-2.5 text-sm font-medium text-[#213f31] focus:outline-none focus:ring-2 focus:ring-[#34674e]",
69502
+ children: [
69503
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69504
+ value: "Auto propria (Guido la mia vettura)",
69505
+ children: "Auto propria (Guido la mia vettura)"
69506
+ }),
69507
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69508
+ value: "Volo + Noleggio Auto all'arrivo",
69509
+ children: "Volo + Noleggio Auto all'arrivo"
69510
+ }),
69511
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69512
+ value: "Volo + Transfer Privato NCC con Chauffeur",
69513
+ children: "Volo + Transfer Privato NCC con Chauffeur"
69514
+ }),
69515
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
69516
+ value: "Treno Alta Velocità + Noleggio / Taxi",
69517
+ children: "Treno Alta Velocità + Noleggio / Taxi"
69518
+ })
69519
+ ]
69520
+ })] })]
69521
+ }),
69522
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", {
69523
+ className: "block text-xs font-semibold text-[#213f31]/70 mb-1.5",
69524
+ children: "Desideri Speciali o Requisiti Particolari (Facoltativo)"
69525
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("textarea", {
69526
+ rows: 2,
69527
+ value: notes,
69528
+ onChange: (e) => setNotes(e.target.value),
69529
+ placeholder: "Es. Vorremmo prenotare il noleggio sacche da golf in loco, oppure festeggiare un anniversario...",
69530
+ className: "w-full bg-[#faf8f3] border border-[#e8d9c0] rounded-xl p-3 text-xs text-[#213f31] focus:outline-none focus:ring-2 focus:ring-[#34674e]"
69531
+ })] })
69532
+ ]
69533
+ }),
69534
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
69535
+ className: "pt-2",
69536
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("button", {
69537
+ type: "submit",
69538
+ className: "w-full py-4 px-6 rounded-2xl bg-[#213f31] hover:bg-[#34674e] text-[#faf8f3] font-bold text-sm uppercase tracking-widest shadow-xl flex items-center justify-center gap-3 transition-all cursor-pointer hover:scale-[1.01]",
69539
+ children: [
69540
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Flag, { className: "w-5 h-5 text-[#e8d9c0]" }),
69541
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Progetta il mio Itinerario in Veneto" }),
69542
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Send, { className: "w-4 h-4 ml-auto text-[#e8d9c0]" })
69543
+ ]
69544
+ })
69545
+ })
69546
+ ]
69547
+ }),
69548
+ activeTab === "chat" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
69549
+ className: "w-full max-w-2xl bg-white rounded-3xl p-6 shadow-2xl border border-[#e8d9c0] space-y-4",
69550
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PromptIntro, {}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
69551
+ className: "flex flex-wrap items-center justify-center gap-2 pt-2",
69552
+ children: [
69553
+ "7 giorni tra Golf, Colline del Prosecco e Venezia",
69554
+ "Weekend lungo Golf & Relax Termale a Galzignano",
69555
+ "Golf & Amarone in Valpolicella per 4 amici",
69556
+ "Tour di 10 giorni: Dolomiti, Lago di Garda e Golf"
69557
+ ].map((prompt, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
69558
+ type: "button",
69559
+ onClick: () => submitMessage(prompt),
69560
+ className: "px-4 py-2 rounded-full bg-[#213f31]/5 hover:bg-[#213f31] text-[#213f31] hover:text-[#faf8f3] text-xs font-medium border border-[#213f31]/15 transition-all duration-200 cursor-pointer shadow-sm",
69561
+ children: prompt
69562
+ }, i))
69563
+ })]
69184
69564
  })
69185
69565
  ]
69186
69566
  })