[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"mdc--zb07r-key":3},{"data":4,"body":5},{},{"type":6,"children":7},"root",[8,554],{"type":9,"tag":10,"props":11,"children":17},"element","pre",{"className":12,"code":13,"filename":14,"language":15,"meta":16,"style":16},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const response = await fetch('https:\u002F\u002Fapi.tripguru.ai\u002Fv1\u002Fproducts?city=Paris', {\n  headers: {\n    Authorization: 'Bearer YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson'\n  }\n})\n\nconst { products } = await response.json()\n\nconst cart = await fetch('https:\u002F\u002Fapi.tripguru.ai\u002Fv1\u002Fcart\u002Fitems', {\n  method: 'POST',\n  headers: {\n    Authorization: 'Bearer YOUR_API_KEY',\n    'Content-Type': 'application\u002Fjson'\n  },\n  body: JSON.stringify({\n    productId: products[0].id,\n    quantity: 2\n  })\n})\n","booking-flow.ts","ts","",[18],{"type":9,"tag":19,"props":20,"children":21},"code",{"__ignoreMap":16},[22,89,108,140,176,185,199,209,260,268,318,348,364,392,424,433,469,511,529,542],{"type":9,"tag":23,"props":24,"children":27},"span",{"class":25,"line":26},"line",1,[28,35,41,47,53,59,64,69,75,79,84],{"type":9,"tag":23,"props":29,"children":31},{"style":30},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[32],{"type":33,"value":34},"text","const",{"type":9,"tag":23,"props":36,"children":38},{"style":37},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[39],{"type":33,"value":40}," response ",{"type":9,"tag":23,"props":42,"children":44},{"style":43},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[45],{"type":33,"value":46},"=",{"type":9,"tag":23,"props":48,"children":50},{"style":49},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[51],{"type":33,"value":52}," await",{"type":9,"tag":23,"props":54,"children":56},{"style":55},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[57],{"type":33,"value":58}," fetch",{"type":9,"tag":23,"props":60,"children":61},{"style":37},[62],{"type":33,"value":63},"(",{"type":9,"tag":23,"props":65,"children":66},{"style":43},[67],{"type":33,"value":68},"'",{"type":9,"tag":23,"props":70,"children":72},{"style":71},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[73],{"type":33,"value":74},"https:\u002F\u002Fapi.tripguru.ai\u002Fv1\u002Fproducts?city=Paris",{"type":9,"tag":23,"props":76,"children":77},{"style":43},[78],{"type":33,"value":68},{"type":9,"tag":23,"props":80,"children":81},{"style":43},[82],{"type":33,"value":83},",",{"type":9,"tag":23,"props":85,"children":86},{"style":43},[87],{"type":33,"value":88}," {\n",{"type":9,"tag":23,"props":90,"children":92},{"class":25,"line":91},2,[93,99,104],{"type":9,"tag":23,"props":94,"children":96},{"style":95},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[97],{"type":33,"value":98},"  headers",{"type":9,"tag":23,"props":100,"children":101},{"style":43},[102],{"type":33,"value":103},":",{"type":9,"tag":23,"props":105,"children":106},{"style":43},[107],{"type":33,"value":88},{"type":9,"tag":23,"props":109,"children":111},{"class":25,"line":110},3,[112,117,121,126,131,135],{"type":9,"tag":23,"props":113,"children":114},{"style":95},[115],{"type":33,"value":116},"    Authorization",{"type":9,"tag":23,"props":118,"children":119},{"style":43},[120],{"type":33,"value":103},{"type":9,"tag":23,"props":122,"children":123},{"style":43},[124],{"type":33,"value":125}," '",{"type":9,"tag":23,"props":127,"children":128},{"style":71},[129],{"type":33,"value":130},"Bearer YOUR_API_KEY",{"type":9,"tag":23,"props":132,"children":133},{"style":43},[134],{"type":33,"value":68},{"type":9,"tag":23,"props":136,"children":137},{"style":43},[138],{"type":33,"value":139},",\n",{"type":9,"tag":23,"props":141,"children":143},{"class":25,"line":142},4,[144,149,154,158,162,166,171],{"type":9,"tag":23,"props":145,"children":146},{"style":43},[147],{"type":33,"value":148},"    '",{"type":9,"tag":23,"props":150,"children":151},{"style":95},[152],{"type":33,"value":153},"Content-Type",{"type":9,"tag":23,"props":155,"children":156},{"style":43},[157],{"type":33,"value":68},{"type":9,"tag":23,"props":159,"children":160},{"style":43},[161],{"type":33,"value":103},{"type":9,"tag":23,"props":163,"children":164},{"style":43},[165],{"type":33,"value":125},{"type":9,"tag":23,"props":167,"children":168},{"style":71},[169],{"type":33,"value":170},"application\u002Fjson",{"type":9,"tag":23,"props":172,"children":173},{"style":43},[174],{"type":33,"value":175},"'\n",{"type":9,"tag":23,"props":177,"children":179},{"class":25,"line":178},5,[180],{"type":9,"tag":23,"props":181,"children":182},{"style":43},[183],{"type":33,"value":184},"  }\n",{"type":9,"tag":23,"props":186,"children":188},{"class":25,"line":187},6,[189,194],{"type":9,"tag":23,"props":190,"children":191},{"style":43},[192],{"type":33,"value":193},"}",{"type":9,"tag":23,"props":195,"children":196},{"style":37},[197],{"type":33,"value":198},")\n",{"type":9,"tag":23,"props":200,"children":202},{"class":25,"line":201},7,[203],{"type":9,"tag":23,"props":204,"children":206},{"emptyLinePlaceholder":205},true,[207],{"type":33,"value":208},"\n",{"type":9,"tag":23,"props":210,"children":212},{"class":25,"line":211},8,[213,217,222,227,231,236,240,245,250,255],{"type":9,"tag":23,"props":214,"children":215},{"style":30},[216],{"type":33,"value":34},{"type":9,"tag":23,"props":218,"children":219},{"style":43},[220],{"type":33,"value":221}," {",{"type":9,"tag":23,"props":223,"children":224},{"style":37},[225],{"type":33,"value":226}," products ",{"type":9,"tag":23,"props":228,"children":229},{"style":43},[230],{"type":33,"value":193},{"type":9,"tag":23,"props":232,"children":233},{"style":43},[234],{"type":33,"value":235}," =",{"type":9,"tag":23,"props":237,"children":238},{"style":49},[239],{"type":33,"value":52},{"type":9,"tag":23,"props":241,"children":242},{"style":37},[243],{"type":33,"value":244}," response",{"type":9,"tag":23,"props":246,"children":247},{"style":43},[248],{"type":33,"value":249},".",{"type":9,"tag":23,"props":251,"children":252},{"style":55},[253],{"type":33,"value":254},"json",{"type":9,"tag":23,"props":256,"children":257},{"style":37},[258],{"type":33,"value":259},"()\n",{"type":9,"tag":23,"props":261,"children":263},{"class":25,"line":262},9,[264],{"type":9,"tag":23,"props":265,"children":266},{"emptyLinePlaceholder":205},[267],{"type":33,"value":208},{"type":9,"tag":23,"props":269,"children":271},{"class":25,"line":270},10,[272,276,281,285,289,293,297,301,306,310,314],{"type":9,"tag":23,"props":273,"children":274},{"style":30},[275],{"type":33,"value":34},{"type":9,"tag":23,"props":277,"children":278},{"style":37},[279],{"type":33,"value":280}," cart ",{"type":9,"tag":23,"props":282,"children":283},{"style":43},[284],{"type":33,"value":46},{"type":9,"tag":23,"props":286,"children":287},{"style":49},[288],{"type":33,"value":52},{"type":9,"tag":23,"props":290,"children":291},{"style":55},[292],{"type":33,"value":58},{"type":9,"tag":23,"props":294,"children":295},{"style":37},[296],{"type":33,"value":63},{"type":9,"tag":23,"props":298,"children":299},{"style":43},[300],{"type":33,"value":68},{"type":9,"tag":23,"props":302,"children":303},{"style":71},[304],{"type":33,"value":305},"https:\u002F\u002Fapi.tripguru.ai\u002Fv1\u002Fcart\u002Fitems",{"type":9,"tag":23,"props":307,"children":308},{"style":43},[309],{"type":33,"value":68},{"type":9,"tag":23,"props":311,"children":312},{"style":43},[313],{"type":33,"value":83},{"type":9,"tag":23,"props":315,"children":316},{"style":43},[317],{"type":33,"value":88},{"type":9,"tag":23,"props":319,"children":321},{"class":25,"line":320},11,[322,327,331,335,340,344],{"type":9,"tag":23,"props":323,"children":324},{"style":95},[325],{"type":33,"value":326},"  method",{"type":9,"tag":23,"props":328,"children":329},{"style":43},[330],{"type":33,"value":103},{"type":9,"tag":23,"props":332,"children":333},{"style":43},[334],{"type":33,"value":125},{"type":9,"tag":23,"props":336,"children":337},{"style":71},[338],{"type":33,"value":339},"POST",{"type":9,"tag":23,"props":341,"children":342},{"style":43},[343],{"type":33,"value":68},{"type":9,"tag":23,"props":345,"children":346},{"style":43},[347],{"type":33,"value":139},{"type":9,"tag":23,"props":349,"children":351},{"class":25,"line":350},12,[352,356,360],{"type":9,"tag":23,"props":353,"children":354},{"style":95},[355],{"type":33,"value":98},{"type":9,"tag":23,"props":357,"children":358},{"style":43},[359],{"type":33,"value":103},{"type":9,"tag":23,"props":361,"children":362},{"style":43},[363],{"type":33,"value":88},{"type":9,"tag":23,"props":365,"children":367},{"class":25,"line":366},13,[368,372,376,380,384,388],{"type":9,"tag":23,"props":369,"children":370},{"style":95},[371],{"type":33,"value":116},{"type":9,"tag":23,"props":373,"children":374},{"style":43},[375],{"type":33,"value":103},{"type":9,"tag":23,"props":377,"children":378},{"style":43},[379],{"type":33,"value":125},{"type":9,"tag":23,"props":381,"children":382},{"style":71},[383],{"type":33,"value":130},{"type":9,"tag":23,"props":385,"children":386},{"style":43},[387],{"type":33,"value":68},{"type":9,"tag":23,"props":389,"children":390},{"style":43},[391],{"type":33,"value":139},{"type":9,"tag":23,"props":393,"children":395},{"class":25,"line":394},14,[396,400,404,408,412,416,420],{"type":9,"tag":23,"props":397,"children":398},{"style":43},[399],{"type":33,"value":148},{"type":9,"tag":23,"props":401,"children":402},{"style":95},[403],{"type":33,"value":153},{"type":9,"tag":23,"props":405,"children":406},{"style":43},[407],{"type":33,"value":68},{"type":9,"tag":23,"props":409,"children":410},{"style":43},[411],{"type":33,"value":103},{"type":9,"tag":23,"props":413,"children":414},{"style":43},[415],{"type":33,"value":125},{"type":9,"tag":23,"props":417,"children":418},{"style":71},[419],{"type":33,"value":170},{"type":9,"tag":23,"props":421,"children":422},{"style":43},[423],{"type":33,"value":175},{"type":9,"tag":23,"props":425,"children":427},{"class":25,"line":426},15,[428],{"type":9,"tag":23,"props":429,"children":430},{"style":43},[431],{"type":33,"value":432},"  },\n",{"type":9,"tag":23,"props":434,"children":436},{"class":25,"line":435},16,[437,442,446,451,455,460,464],{"type":9,"tag":23,"props":438,"children":439},{"style":95},[440],{"type":33,"value":441},"  body",{"type":9,"tag":23,"props":443,"children":444},{"style":43},[445],{"type":33,"value":103},{"type":9,"tag":23,"props":447,"children":448},{"style":37},[449],{"type":33,"value":450}," JSON",{"type":9,"tag":23,"props":452,"children":453},{"style":43},[454],{"type":33,"value":249},{"type":9,"tag":23,"props":456,"children":457},{"style":55},[458],{"type":33,"value":459},"stringify",{"type":9,"tag":23,"props":461,"children":462},{"style":37},[463],{"type":33,"value":63},{"type":9,"tag":23,"props":465,"children":466},{"style":43},[467],{"type":33,"value":468},"{\n",{"type":9,"tag":23,"props":470,"children":472},{"class":25,"line":471},17,[473,478,482,487,493,498,502,507],{"type":9,"tag":23,"props":474,"children":475},{"style":95},[476],{"type":33,"value":477},"    productId",{"type":9,"tag":23,"props":479,"children":480},{"style":43},[481],{"type":33,"value":103},{"type":9,"tag":23,"props":483,"children":484},{"style":37},[485],{"type":33,"value":486}," products[",{"type":9,"tag":23,"props":488,"children":490},{"style":489},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[491],{"type":33,"value":492},"0",{"type":9,"tag":23,"props":494,"children":495},{"style":37},[496],{"type":33,"value":497},"]",{"type":9,"tag":23,"props":499,"children":500},{"style":43},[501],{"type":33,"value":249},{"type":9,"tag":23,"props":503,"children":504},{"style":37},[505],{"type":33,"value":506},"id",{"type":9,"tag":23,"props":508,"children":509},{"style":43},[510],{"type":33,"value":139},{"type":9,"tag":23,"props":512,"children":514},{"class":25,"line":513},18,[515,520,524],{"type":9,"tag":23,"props":516,"children":517},{"style":95},[518],{"type":33,"value":519},"    quantity",{"type":9,"tag":23,"props":521,"children":522},{"style":43},[523],{"type":33,"value":103},{"type":9,"tag":23,"props":525,"children":526},{"style":489},[527],{"type":33,"value":528}," 2\n",{"type":9,"tag":23,"props":530,"children":532},{"class":25,"line":531},19,[533,538],{"type":9,"tag":23,"props":534,"children":535},{"style":43},[536],{"type":33,"value":537},"  }",{"type":9,"tag":23,"props":539,"children":540},{"style":37},[541],{"type":33,"value":198},{"type":9,"tag":23,"props":543,"children":545},{"class":25,"line":544},20,[546,550],{"type":9,"tag":23,"props":547,"children":548},{"style":43},[549],{"type":33,"value":193},{"type":9,"tag":23,"props":551,"children":552},{"style":37},[553],{"type":33,"value":198},{"type":9,"tag":555,"props":556,"children":557},"style",{},[558],{"type":33,"value":559},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}"]