[{"data":1,"prerenderedAt":17491},["ShallowReactive",2],{"content-query-rF8Lyp2le7":3},[4,181,2498,2919,5829,9092,16727],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"pubDate":11,"date":12,"heroImage":13,"component":8,"body":14,"_type":175,"_id":176,"_source":177,"_file":178,"_stem":179,"_extension":180},"/articles/framework-agnostic-overview","articles",false,"","Build a basic javascript framework","A guide on how to build a very simple Javascript framework, so you can become framework agnostic","Jan 05 2025","2025-01-05","/reactivity-system.webp",{"type":15,"children":16,"toc":168},"root",[17,25,30,34,38,45,50,57,158,163],{"type":18,"tag":19,"props":20,"children":21},"element","p",{},[22],{"type":23,"value":24},"text","Let's admit it, we are pretty plagued with JavaScript frameworks these days. Throughout my career, I have had to learn the next best thing over and over again as trendy tech leads wanted us to be \"cutting edge.\" After learning Angular, React, Vue, Next, Nuxt, Svelte, and then SvelteKit, I have realized—they are really all quite similar.",{"type":18,"tag":19,"props":26,"children":27},{},[28],{"type":23,"value":29},"This is a series to help you become more framework agnostic. To not be stressed or worried if your boss comes in one day, sipping their flat white, and on a whim decides that Nuxt is the way forward for the business when the entire codebase is written in AngularJS.",{"type":18,"tag":31,"props":32,"children":33},"hello",{},[],{"type":18,"tag":35,"props":36,"children":37},"hr",{},[],{"type":18,"tag":39,"props":40,"children":42},"h2",{"id":41},"framework-agnostic-series",[43],{"type":23,"value":44},"Framework agnostic series",{"type":18,"tag":19,"props":46,"children":47},{},[48],{"type":23,"value":49},"This series will guide you through the process of building your own JavaScript framework from scratch using TypeScript. The goal isn't to reinvent the wheel but to break down the concepts behind modern frameworks like React, Vue, and Svelte so you can better understand how they work under the hood.",{"type":18,"tag":51,"props":52,"children":54},"h3",{"id":53},"chapters",[55],{"type":23,"value":56},"Chapters",{"type":18,"tag":58,"props":59,"children":60},"ol",{},[61,78,88,98,108,118,128,138,148],{"type":18,"tag":62,"props":63,"children":64},"li",{},[65,76],{"type":18,"tag":66,"props":67,"children":68},"strong",{},[69],{"type":18,"tag":70,"props":71,"children":73},"a",{"href":72},"/articles/build-your-own-reactivty-system",[74],{"type":23,"value":75},"Build your own reactivity system",{"type":23,"value":77}," – How data binding and state updates work.",{"type":18,"tag":62,"props":79,"children":80},{},[81,86],{"type":18,"tag":66,"props":82,"children":83},{},[84],{"type":23,"value":85},"Virtual DOM and Rendering",{"type":23,"value":87}," – Building a minimal diffing algorithm.",{"type":18,"tag":62,"props":89,"children":90},{},[91,96],{"type":18,"tag":66,"props":92,"children":93},{},[94],{"type":23,"value":95},"Components System",{"type":23,"value":97}," – Creating a basic component structure and lifecycle.",{"type":18,"tag":62,"props":99,"children":100},{},[101,106],{"type":18,"tag":66,"props":102,"children":103},{},[104],{"type":23,"value":105},"State Management",{"type":23,"value":107}," – Handling local and global state effectively.",{"type":18,"tag":62,"props":109,"children":110},{},[111,116],{"type":18,"tag":66,"props":112,"children":113},{},[114],{"type":23,"value":115},"Event Handling and Directives",{"type":23,"value":117}," – Adding event binding and custom directives.",{"type":18,"tag":62,"props":119,"children":120},{},[121,126],{"type":18,"tag":66,"props":122,"children":123},{},[124],{"type":23,"value":125},"Template Compilation (Optional)",{"type":23,"value":127}," – Compiling templates into render functions.",{"type":18,"tag":62,"props":129,"children":130},{},[131,136],{"type":18,"tag":66,"props":132,"children":133},{},[134],{"type":23,"value":135},"Routing System (Optional)",{"type":23,"value":137}," – A minimal client-side router for single-page apps.",{"type":18,"tag":62,"props":139,"children":140},{},[141,146],{"type":18,"tag":66,"props":142,"children":143},{},[144],{"type":23,"value":145},"Optimizations and Performance",{"type":23,"value":147}," – Techniques for faster rendering and reduced re-renders.",{"type":18,"tag":62,"props":149,"children":150},{},[151,156],{"type":18,"tag":66,"props":152,"children":153},{},[154],{"type":23,"value":155},"Packaging and Publishing",{"type":23,"value":157}," – Sharing your framework with the world.",{"type":18,"tag":19,"props":159,"children":160},{},[161],{"type":23,"value":162},"By the end of this series, you'll have a foundational understanding of how frameworks work and be more framework agnostic.",{"type":18,"tag":19,"props":164,"children":165},{},[166],{"type":23,"value":167},"Ready? Let's dive in!",{"title":8,"searchDepth":169,"depth":169,"links":170},2,[171],{"id":41,"depth":169,"text":44,"children":172},[173],{"id":53,"depth":174,"text":56},3,"markdown","content:articles:framework-agnostic-overview.md","content","articles/framework-agnostic-overview.md","articles/framework-agnostic-overview","md",{"_path":72,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":75,"description":182,"pubDate":183,"date":184,"heroImage":13,"component":8,"body":185,"_type":175,"_id":2495,"_source":177,"_file":2496,"_stem":2497,"_extension":180},"A beginners guide to understanding reactivity in JavaScript","Jan 04 2025","2025-01-04",{"type":15,"children":186,"toc":2489},[187,206,211,216,219,225,230,305,310,374,379,444,449,455,467,474,488,560,1339,1344,1349,1354,1359,1371,1490,1502,1601,1606,1619,1624,1630,1635,1948,1961,2259,2307,2319,2472,2478,2483],{"type":18,"tag":188,"props":189,"children":190},"blockquote",{},[191],{"type":18,"tag":19,"props":192,"children":193},{},[194,196,204],{"type":23,"value":195},"TLDR: You can explore the complete project on ",{"type":18,"tag":70,"props":197,"children":201},{"href":198,"rel":199},"https://stackblitz.com/edit/reactivity-system-james-dawson?file=src%2Fref.ts,src%2Fmain.ts,src%2Fstyle.css&terminal=dev",[200],"nofollow",[202],{"type":23,"value":203},"StackBlitz",{"type":23,"value":205},".",{"type":18,"tag":19,"props":207,"children":208},{},[209],{"type":23,"value":210},"Modern-day programming is all about speed. You install a framework, a UI library, let AI generate your code and have something that is pretty impressive off the bat. These tools are incredible, but many experienced developers worry that newer programmers might stop questioning how all this abstraction works under the hood.. I would argue with AI, there has never been a better time to get a deeper and more specific knowledge on how the frameworks and plugins that we use everyday are built and understood. You have in your pocket a reasonably competent colleague who has moderately deep domain knowledge in many popular niches.",{"type":18,"tag":19,"props":212,"children":213},{},[214],{"type":23,"value":215},"So let's put it to use! Today we are going to look at the different reactivity systems for frontend frameworks. Their strengths and trade offs, which frameworks have chose which and what is really happening under all this abstraction.",{"type":18,"tag":31,"props":217,"children":218},{},[],{"type":18,"tag":39,"props":220,"children":222},{"id":221},"what-is-a-reactivity-system",[223],{"type":23,"value":224},"What is a reactivity system?",{"type":18,"tag":19,"props":226,"children":227},{},[228],{"type":23,"value":229},"Reactivity is a common programming paradigm for mutating or \"reacting\" to changes between two pieces of separate data. A reactive system automatically updates dependent values when data changes, like how a spreadsheet formula adjusts when you modify a cell.",{"type":18,"tag":231,"props":232,"children":233},"table",{},[234,258],{"type":18,"tag":235,"props":236,"children":237},"thead",{},[238],{"type":18,"tag":239,"props":240,"children":241},"tr",{},[242,248,253],{"type":18,"tag":243,"props":244,"children":245},"th",{},[246],{"type":23,"value":247},"A",{"type":18,"tag":243,"props":249,"children":250},{},[251],{"type":23,"value":252},"B",{"type":18,"tag":243,"props":254,"children":255},{},[256],{"type":23,"value":257},"C",{"type":18,"tag":259,"props":260,"children":261},"tbody",{},[262,277,291],{"type":18,"tag":239,"props":263,"children":264},{},[265,271,274],{"type":18,"tag":266,"props":267,"children":268},"td",{},[269],{"type":23,"value":270},"1",{"type":18,"tag":266,"props":272,"children":273},{},[],{"type":18,"tag":266,"props":275,"children":276},{},[],{"type":18,"tag":239,"props":278,"children":279},{},[280,285,288],{"type":18,"tag":266,"props":281,"children":282},{},[283],{"type":23,"value":284},"2",{"type":18,"tag":266,"props":286,"children":287},{},[],{"type":18,"tag":266,"props":289,"children":290},{},[],{"type":18,"tag":239,"props":292,"children":293},{},[294,299,302],{"type":18,"tag":266,"props":295,"children":296},{},[297],{"type":23,"value":298},"=SUM(A1, A2)",{"type":18,"tag":266,"props":300,"children":301},{},[],{"type":18,"tag":266,"props":303,"children":304},{},[],{"type":18,"tag":19,"props":306,"children":307},{},[308],{"type":23,"value":309},"This simple formula will create an output like the one below.",{"type":18,"tag":231,"props":311,"children":312},{},[313,331],{"type":18,"tag":235,"props":314,"children":315},{},[316],{"type":18,"tag":239,"props":317,"children":318},{},[319,323,327],{"type":18,"tag":243,"props":320,"children":321},{},[322],{"type":23,"value":247},{"type":18,"tag":243,"props":324,"children":325},{},[326],{"type":23,"value":252},{"type":18,"tag":243,"props":328,"children":329},{},[330],{"type":23,"value":257},{"type":18,"tag":259,"props":332,"children":333},{},[334,347,360],{"type":18,"tag":239,"props":335,"children":336},{},[337,341,344],{"type":18,"tag":266,"props":338,"children":339},{},[340],{"type":23,"value":270},{"type":18,"tag":266,"props":342,"children":343},{},[],{"type":18,"tag":266,"props":345,"children":346},{},[],{"type":18,"tag":239,"props":348,"children":349},{},[350,354,357],{"type":18,"tag":266,"props":351,"children":352},{},[353],{"type":23,"value":284},{"type":18,"tag":266,"props":355,"children":356},{},[],{"type":18,"tag":266,"props":358,"children":359},{},[],{"type":18,"tag":239,"props":361,"children":362},{},[363,368,371],{"type":18,"tag":266,"props":364,"children":365},{},[366],{"type":23,"value":367},"3",{"type":18,"tag":266,"props":369,"children":370},{},[],{"type":18,"tag":266,"props":372,"children":373},{},[],{"type":18,"tag":19,"props":375,"children":376},{},[377],{"type":23,"value":378},"In a spreadsheet a basic SUM formula is considered to be reactive. Since if we mutate A2, which is one of the formula's dependencies, the program will update A3 automatically.",{"type":18,"tag":231,"props":380,"children":381},{},[382,400],{"type":18,"tag":235,"props":383,"children":384},{},[385],{"type":18,"tag":239,"props":386,"children":387},{},[388,392,396],{"type":18,"tag":243,"props":389,"children":390},{},[391],{"type":23,"value":247},{"type":18,"tag":243,"props":393,"children":394},{},[395],{"type":23,"value":252},{"type":18,"tag":243,"props":397,"children":398},{},[399],{"type":23,"value":257},{"type":18,"tag":259,"props":401,"children":402},{},[403,416,430],{"type":18,"tag":239,"props":404,"children":405},{},[406,410,413],{"type":18,"tag":266,"props":407,"children":408},{},[409],{"type":23,"value":270},{"type":18,"tag":266,"props":411,"children":412},{},[],{"type":18,"tag":266,"props":414,"children":415},{},[],{"type":18,"tag":239,"props":417,"children":418},{},[419,424,427],{"type":18,"tag":266,"props":420,"children":421},{},[422],{"type":23,"value":423},"4",{"type":18,"tag":266,"props":425,"children":426},{},[],{"type":18,"tag":266,"props":428,"children":429},{},[],{"type":18,"tag":239,"props":431,"children":432},{},[433,438,441],{"type":18,"tag":266,"props":434,"children":435},{},[436],{"type":23,"value":437},"5",{"type":18,"tag":266,"props":439,"children":440},{},[],{"type":18,"tag":266,"props":442,"children":443},{},[],{"type":18,"tag":19,"props":445,"children":446},{},[447],{"type":23,"value":448},"This is the nuts and bolts of a reactive system. Now how can we represent the same thing in JavaScript?",{"type":18,"tag":39,"props":450,"children":452},{"id":451},"a-basic-reactivity-system",[453],{"type":23,"value":454},"A basic reactivity system",{"type":18,"tag":19,"props":456,"children":457},{},[458,460,466],{"type":23,"value":459},"Let's try and create and simple reactivity system that will emulate the spreadsheet above. We will be using only typescript for this project. As always you can see the complete project",{"type":18,"tag":70,"props":461,"children":463},{"href":198,"rel":462},[200],[464],{"type":23,"value":465},"here",{"type":23,"value":205},{"type":18,"tag":468,"props":469,"children":471},"h4",{"id":470},"the-reactive-property",[472],{"type":23,"value":473},"The reactive property",{"type":18,"tag":19,"props":475,"children":476},{},[477,479,486],{"type":23,"value":478},"We will create a basic typescript composable called ",{"type":18,"tag":480,"props":481,"children":483},"code",{"className":482},[],[484],{"type":23,"value":485},"ref.ts",{"type":23,"value":487},". This will be the building block for our reactive system, there are three pieces of functionality that we need.",{"type":18,"tag":489,"props":490,"children":491},"ul",{},[492,509,534],{"type":18,"tag":62,"props":493,"children":494},{},[495,501,503],{"type":18,"tag":480,"props":496,"children":498},{"className":497},[],[499],{"type":23,"value":500},"get",{"type":23,"value":502}," the current value of the ",{"type":18,"tag":480,"props":504,"children":506},{"className":505},[],[507],{"type":23,"value":508},"ref",{"type":18,"tag":62,"props":510,"children":511},{},[512,518,520,525,527,532],{"type":18,"tag":480,"props":513,"children":515},{"className":514},[],[516],{"type":23,"value":517},"subscribe",{"type":23,"value":519}," to the ",{"type":18,"tag":480,"props":521,"children":523},{"className":522},[],[524],{"type":23,"value":508},{"type":23,"value":526}," and execute some code when the ",{"type":18,"tag":480,"props":528,"children":530},{"className":529},[],[531],{"type":23,"value":508},{"type":23,"value":533},"'s active value is updated",{"type":18,"tag":62,"props":535,"children":536},{},[537,543,545,550,552,558],{"type":18,"tag":480,"props":538,"children":540},{"className":539},[],[541],{"type":23,"value":542},"set",{"type":23,"value":544}," a new value of the ",{"type":18,"tag":480,"props":546,"children":548},{"className":547},[],[549],{"type":23,"value":508},{"type":23,"value":551},", execute any ",{"type":18,"tag":480,"props":553,"children":555},{"className":554},[],[556],{"type":23,"value":557},"subscribers",{"type":23,"value":559}," who are listening for changes",{"type":18,"tag":561,"props":562,"children":566},"pre",{"className":563,"code":564,"language":565,"meta":8,"style":8},"language-ts shiki shiki-themes github-dark","type Subscriber\u003CT> = (newValue: T) => void;\n\nexport function ref(value: string | number) {\n  if (value === undefined || value === null) {\n    throw new Error('Error: Ref must be defined');\n  }\n\n  let activeValue = value;\n  const subscribers: Subscriber\u003Ctypeof value>[] = [];\n\n  // Get the active value\n  function get() {\n    return activeValue;\n  }\n\n  // Sets a new value and calls each subscribe that has been appeneded\n  function set(newValue: typeof value) {\n    if (activeValue !== newValue) {\n      activeValue = newValue;\n      subscribers.forEach((subscriber) => subscriber(activeValue));\n    }\n  }\n\n  // subscribes to this reactive property, when set is called all subscribers will execute as well!\n  function subscribe(subscriber: Subscriber\u003Ctypeof value>) {\n    subscribers.push(subscriber);\n    return () => {\n      const index = subscribers.indexOf(subscriber);\n      if (index > -1) {\n        subscribers.splice(index, 1);\n      }\n    };\n  }\n\n  return { get, set, subscribe };\n}\n","ts",[567],{"type":18,"tag":480,"props":568,"children":569},{"__ignoreMap":8},[570,651,660,712,759,793,802,810,833,878,886,896,915,929,937,945,954,989,1013,1031,1073,1082,1090,1098,1107,1149,1168,1190,1223,1255,1282,1291,1300,1308,1316,1330],{"type":18,"tag":571,"props":572,"children":575},"span",{"class":573,"line":574},"line",1,[576,582,588,594,599,604,609,614,620,625,630,635,640,646],{"type":18,"tag":571,"props":577,"children":579},{"style":578},"--shiki-default:#F97583",[580],{"type":23,"value":581},"type",{"type":18,"tag":571,"props":583,"children":585},{"style":584},"--shiki-default:#B392F0",[586],{"type":23,"value":587}," Subscriber",{"type":18,"tag":571,"props":589,"children":591},{"style":590},"--shiki-default:#E1E4E8",[592],{"type":23,"value":593},"\u003C",{"type":18,"tag":571,"props":595,"children":596},{"style":584},[597],{"type":23,"value":598},"T",{"type":18,"tag":571,"props":600,"children":601},{"style":590},[602],{"type":23,"value":603},"> ",{"type":18,"tag":571,"props":605,"children":606},{"style":578},[607],{"type":23,"value":608},"=",{"type":18,"tag":571,"props":610,"children":611},{"style":590},[612],{"type":23,"value":613}," (",{"type":18,"tag":571,"props":615,"children":617},{"style":616},"--shiki-default:#FFAB70",[618],{"type":23,"value":619},"newValue",{"type":18,"tag":571,"props":621,"children":622},{"style":578},[623],{"type":23,"value":624},":",{"type":18,"tag":571,"props":626,"children":627},{"style":584},[628],{"type":23,"value":629}," T",{"type":18,"tag":571,"props":631,"children":632},{"style":590},[633],{"type":23,"value":634},") ",{"type":18,"tag":571,"props":636,"children":637},{"style":578},[638],{"type":23,"value":639},"=>",{"type":18,"tag":571,"props":641,"children":643},{"style":642},"--shiki-default:#79B8FF",[644],{"type":23,"value":645}," void",{"type":18,"tag":571,"props":647,"children":648},{"style":590},[649],{"type":23,"value":650},";\n",{"type":18,"tag":571,"props":652,"children":653},{"class":573,"line":169},[654],{"type":18,"tag":571,"props":655,"children":657},{"emptyLinePlaceholder":656},true,[658],{"type":23,"value":659},"\n",{"type":18,"tag":571,"props":661,"children":662},{"class":573,"line":174},[663,668,673,678,683,688,692,697,702,707],{"type":18,"tag":571,"props":664,"children":665},{"style":578},[666],{"type":23,"value":667},"export",{"type":18,"tag":571,"props":669,"children":670},{"style":578},[671],{"type":23,"value":672}," function",{"type":18,"tag":571,"props":674,"children":675},{"style":584},[676],{"type":23,"value":677}," ref",{"type":18,"tag":571,"props":679,"children":680},{"style":590},[681],{"type":23,"value":682},"(",{"type":18,"tag":571,"props":684,"children":685},{"style":616},[686],{"type":23,"value":687},"value",{"type":18,"tag":571,"props":689,"children":690},{"style":578},[691],{"type":23,"value":624},{"type":18,"tag":571,"props":693,"children":694},{"style":642},[695],{"type":23,"value":696}," string",{"type":18,"tag":571,"props":698,"children":699},{"style":578},[700],{"type":23,"value":701}," |",{"type":18,"tag":571,"props":703,"children":704},{"style":642},[705],{"type":23,"value":706}," number",{"type":18,"tag":571,"props":708,"children":709},{"style":590},[710],{"type":23,"value":711},") {\n",{"type":18,"tag":571,"props":713,"children":715},{"class":573,"line":714},4,[716,721,726,731,736,741,746,750,755],{"type":18,"tag":571,"props":717,"children":718},{"style":578},[719],{"type":23,"value":720},"  if",{"type":18,"tag":571,"props":722,"children":723},{"style":590},[724],{"type":23,"value":725}," (value ",{"type":18,"tag":571,"props":727,"children":728},{"style":578},[729],{"type":23,"value":730},"===",{"type":18,"tag":571,"props":732,"children":733},{"style":642},[734],{"type":23,"value":735}," undefined",{"type":18,"tag":571,"props":737,"children":738},{"style":578},[739],{"type":23,"value":740}," ||",{"type":18,"tag":571,"props":742,"children":743},{"style":590},[744],{"type":23,"value":745}," value ",{"type":18,"tag":571,"props":747,"children":748},{"style":578},[749],{"type":23,"value":730},{"type":18,"tag":571,"props":751,"children":752},{"style":642},[753],{"type":23,"value":754}," null",{"type":18,"tag":571,"props":756,"children":757},{"style":590},[758],{"type":23,"value":711},{"type":18,"tag":571,"props":760,"children":762},{"class":573,"line":761},5,[763,768,773,778,782,788],{"type":18,"tag":571,"props":764,"children":765},{"style":578},[766],{"type":23,"value":767},"    throw",{"type":18,"tag":571,"props":769,"children":770},{"style":578},[771],{"type":23,"value":772}," new",{"type":18,"tag":571,"props":774,"children":775},{"style":584},[776],{"type":23,"value":777}," Error",{"type":18,"tag":571,"props":779,"children":780},{"style":590},[781],{"type":23,"value":682},{"type":18,"tag":571,"props":783,"children":785},{"style":784},"--shiki-default:#9ECBFF",[786],{"type":23,"value":787},"'Error: Ref must be defined'",{"type":18,"tag":571,"props":789,"children":790},{"style":590},[791],{"type":23,"value":792},");\n",{"type":18,"tag":571,"props":794,"children":796},{"class":573,"line":795},6,[797],{"type":18,"tag":571,"props":798,"children":799},{"style":590},[800],{"type":23,"value":801},"  }\n",{"type":18,"tag":571,"props":803,"children":805},{"class":573,"line":804},7,[806],{"type":18,"tag":571,"props":807,"children":808},{"emptyLinePlaceholder":656},[809],{"type":23,"value":659},{"type":18,"tag":571,"props":811,"children":813},{"class":573,"line":812},8,[814,819,824,828],{"type":18,"tag":571,"props":815,"children":816},{"style":578},[817],{"type":23,"value":818},"  let",{"type":18,"tag":571,"props":820,"children":821},{"style":590},[822],{"type":23,"value":823}," activeValue ",{"type":18,"tag":571,"props":825,"children":826},{"style":578},[827],{"type":23,"value":608},{"type":18,"tag":571,"props":829,"children":830},{"style":590},[831],{"type":23,"value":832}," value;\n",{"type":18,"tag":571,"props":834,"children":836},{"class":573,"line":835},9,[837,842,847,851,855,859,864,869,873],{"type":18,"tag":571,"props":838,"children":839},{"style":578},[840],{"type":23,"value":841},"  const",{"type":18,"tag":571,"props":843,"children":844},{"style":642},[845],{"type":23,"value":846}," subscribers",{"type":18,"tag":571,"props":848,"children":849},{"style":578},[850],{"type":23,"value":624},{"type":18,"tag":571,"props":852,"children":853},{"style":584},[854],{"type":23,"value":587},{"type":18,"tag":571,"props":856,"children":857},{"style":590},[858],{"type":23,"value":593},{"type":18,"tag":571,"props":860,"children":861},{"style":578},[862],{"type":23,"value":863},"typeof",{"type":18,"tag":571,"props":865,"children":866},{"style":590},[867],{"type":23,"value":868}," value>[] ",{"type":18,"tag":571,"props":870,"children":871},{"style":578},[872],{"type":23,"value":608},{"type":18,"tag":571,"props":874,"children":875},{"style":590},[876],{"type":23,"value":877}," [];\n",{"type":18,"tag":571,"props":879,"children":881},{"class":573,"line":880},10,[882],{"type":18,"tag":571,"props":883,"children":884},{"emptyLinePlaceholder":656},[885],{"type":23,"value":659},{"type":18,"tag":571,"props":887,"children":889},{"class":573,"line":888},11,[890],{"type":18,"tag":571,"props":891,"children":893},{"style":892},"--shiki-default:#6A737D",[894],{"type":23,"value":895},"  // Get the active value\n",{"type":18,"tag":571,"props":897,"children":899},{"class":573,"line":898},12,[900,905,910],{"type":18,"tag":571,"props":901,"children":902},{"style":578},[903],{"type":23,"value":904},"  function",{"type":18,"tag":571,"props":906,"children":907},{"style":584},[908],{"type":23,"value":909}," get",{"type":18,"tag":571,"props":911,"children":912},{"style":590},[913],{"type":23,"value":914},"() {\n",{"type":18,"tag":571,"props":916,"children":918},{"class":573,"line":917},13,[919,924],{"type":18,"tag":571,"props":920,"children":921},{"style":578},[922],{"type":23,"value":923},"    return",{"type":18,"tag":571,"props":925,"children":926},{"style":590},[927],{"type":23,"value":928}," activeValue;\n",{"type":18,"tag":571,"props":930,"children":932},{"class":573,"line":931},14,[933],{"type":18,"tag":571,"props":934,"children":935},{"style":590},[936],{"type":23,"value":801},{"type":18,"tag":571,"props":938,"children":940},{"class":573,"line":939},15,[941],{"type":18,"tag":571,"props":942,"children":943},{"emptyLinePlaceholder":656},[944],{"type":23,"value":659},{"type":18,"tag":571,"props":946,"children":948},{"class":573,"line":947},16,[949],{"type":18,"tag":571,"props":950,"children":951},{"style":892},[952],{"type":23,"value":953},"  // Sets a new value and calls each subscribe that has been appeneded\n",{"type":18,"tag":571,"props":955,"children":957},{"class":573,"line":956},17,[958,962,967,971,975,979,984],{"type":18,"tag":571,"props":959,"children":960},{"style":578},[961],{"type":23,"value":904},{"type":18,"tag":571,"props":963,"children":964},{"style":584},[965],{"type":23,"value":966}," set",{"type":18,"tag":571,"props":968,"children":969},{"style":590},[970],{"type":23,"value":682},{"type":18,"tag":571,"props":972,"children":973},{"style":616},[974],{"type":23,"value":619},{"type":18,"tag":571,"props":976,"children":977},{"style":578},[978],{"type":23,"value":624},{"type":18,"tag":571,"props":980,"children":981},{"style":578},[982],{"type":23,"value":983}," typeof",{"type":18,"tag":571,"props":985,"children":986},{"style":590},[987],{"type":23,"value":988}," value) {\n",{"type":18,"tag":571,"props":990,"children":992},{"class":573,"line":991},18,[993,998,1003,1008],{"type":18,"tag":571,"props":994,"children":995},{"style":578},[996],{"type":23,"value":997},"    if",{"type":18,"tag":571,"props":999,"children":1000},{"style":590},[1001],{"type":23,"value":1002}," (activeValue ",{"type":18,"tag":571,"props":1004,"children":1005},{"style":578},[1006],{"type":23,"value":1007},"!==",{"type":18,"tag":571,"props":1009,"children":1010},{"style":590},[1011],{"type":23,"value":1012}," newValue) {\n",{"type":18,"tag":571,"props":1014,"children":1016},{"class":573,"line":1015},19,[1017,1022,1026],{"type":18,"tag":571,"props":1018,"children":1019},{"style":590},[1020],{"type":23,"value":1021},"      activeValue ",{"type":18,"tag":571,"props":1023,"children":1024},{"style":578},[1025],{"type":23,"value":608},{"type":18,"tag":571,"props":1027,"children":1028},{"style":590},[1029],{"type":23,"value":1030}," newValue;\n",{"type":18,"tag":571,"props":1032,"children":1034},{"class":573,"line":1033},20,[1035,1040,1045,1050,1055,1059,1063,1068],{"type":18,"tag":571,"props":1036,"children":1037},{"style":590},[1038],{"type":23,"value":1039},"      subscribers.",{"type":18,"tag":571,"props":1041,"children":1042},{"style":584},[1043],{"type":23,"value":1044},"forEach",{"type":18,"tag":571,"props":1046,"children":1047},{"style":590},[1048],{"type":23,"value":1049},"((",{"type":18,"tag":571,"props":1051,"children":1052},{"style":616},[1053],{"type":23,"value":1054},"subscriber",{"type":18,"tag":571,"props":1056,"children":1057},{"style":590},[1058],{"type":23,"value":634},{"type":18,"tag":571,"props":1060,"children":1061},{"style":578},[1062],{"type":23,"value":639},{"type":18,"tag":571,"props":1064,"children":1065},{"style":584},[1066],{"type":23,"value":1067}," subscriber",{"type":18,"tag":571,"props":1069,"children":1070},{"style":590},[1071],{"type":23,"value":1072},"(activeValue));\n",{"type":18,"tag":571,"props":1074,"children":1076},{"class":573,"line":1075},21,[1077],{"type":18,"tag":571,"props":1078,"children":1079},{"style":590},[1080],{"type":23,"value":1081},"    }\n",{"type":18,"tag":571,"props":1083,"children":1085},{"class":573,"line":1084},22,[1086],{"type":18,"tag":571,"props":1087,"children":1088},{"style":590},[1089],{"type":23,"value":801},{"type":18,"tag":571,"props":1091,"children":1093},{"class":573,"line":1092},23,[1094],{"type":18,"tag":571,"props":1095,"children":1096},{"emptyLinePlaceholder":656},[1097],{"type":23,"value":659},{"type":18,"tag":571,"props":1099,"children":1101},{"class":573,"line":1100},24,[1102],{"type":18,"tag":571,"props":1103,"children":1104},{"style":892},[1105],{"type":23,"value":1106},"  // subscribes to this reactive property, when set is called all subscribers will execute as well!\n",{"type":18,"tag":571,"props":1108,"children":1110},{"class":573,"line":1109},25,[1111,1115,1120,1124,1128,1132,1136,1140,1144],{"type":18,"tag":571,"props":1112,"children":1113},{"style":578},[1114],{"type":23,"value":904},{"type":18,"tag":571,"props":1116,"children":1117},{"style":584},[1118],{"type":23,"value":1119}," subscribe",{"type":18,"tag":571,"props":1121,"children":1122},{"style":590},[1123],{"type":23,"value":682},{"type":18,"tag":571,"props":1125,"children":1126},{"style":616},[1127],{"type":23,"value":1054},{"type":18,"tag":571,"props":1129,"children":1130},{"style":578},[1131],{"type":23,"value":624},{"type":18,"tag":571,"props":1133,"children":1134},{"style":584},[1135],{"type":23,"value":587},{"type":18,"tag":571,"props":1137,"children":1138},{"style":590},[1139],{"type":23,"value":593},{"type":18,"tag":571,"props":1141,"children":1142},{"style":578},[1143],{"type":23,"value":863},{"type":18,"tag":571,"props":1145,"children":1146},{"style":590},[1147],{"type":23,"value":1148}," value>) {\n",{"type":18,"tag":571,"props":1150,"children":1152},{"class":573,"line":1151},26,[1153,1158,1163],{"type":18,"tag":571,"props":1154,"children":1155},{"style":590},[1156],{"type":23,"value":1157},"    subscribers.",{"type":18,"tag":571,"props":1159,"children":1160},{"style":584},[1161],{"type":23,"value":1162},"push",{"type":18,"tag":571,"props":1164,"children":1165},{"style":590},[1166],{"type":23,"value":1167},"(subscriber);\n",{"type":18,"tag":571,"props":1169,"children":1171},{"class":573,"line":1170},27,[1172,1176,1181,1185],{"type":18,"tag":571,"props":1173,"children":1174},{"style":578},[1175],{"type":23,"value":923},{"type":18,"tag":571,"props":1177,"children":1178},{"style":590},[1179],{"type":23,"value":1180}," () ",{"type":18,"tag":571,"props":1182,"children":1183},{"style":578},[1184],{"type":23,"value":639},{"type":18,"tag":571,"props":1186,"children":1187},{"style":590},[1188],{"type":23,"value":1189}," {\n",{"type":18,"tag":571,"props":1191,"children":1193},{"class":573,"line":1192},28,[1194,1199,1204,1209,1214,1219],{"type":18,"tag":571,"props":1195,"children":1196},{"style":578},[1197],{"type":23,"value":1198},"      const",{"type":18,"tag":571,"props":1200,"children":1201},{"style":642},[1202],{"type":23,"value":1203}," index",{"type":18,"tag":571,"props":1205,"children":1206},{"style":578},[1207],{"type":23,"value":1208}," =",{"type":18,"tag":571,"props":1210,"children":1211},{"style":590},[1212],{"type":23,"value":1213}," subscribers.",{"type":18,"tag":571,"props":1215,"children":1216},{"style":584},[1217],{"type":23,"value":1218},"indexOf",{"type":18,"tag":571,"props":1220,"children":1221},{"style":590},[1222],{"type":23,"value":1167},{"type":18,"tag":571,"props":1224,"children":1226},{"class":573,"line":1225},29,[1227,1232,1237,1242,1247,1251],{"type":18,"tag":571,"props":1228,"children":1229},{"style":578},[1230],{"type":23,"value":1231},"      if",{"type":18,"tag":571,"props":1233,"children":1234},{"style":590},[1235],{"type":23,"value":1236}," (index ",{"type":18,"tag":571,"props":1238,"children":1239},{"style":578},[1240],{"type":23,"value":1241},">",{"type":18,"tag":571,"props":1243,"children":1244},{"style":578},[1245],{"type":23,"value":1246}," -",{"type":18,"tag":571,"props":1248,"children":1249},{"style":642},[1250],{"type":23,"value":270},{"type":18,"tag":571,"props":1252,"children":1253},{"style":590},[1254],{"type":23,"value":711},{"type":18,"tag":571,"props":1256,"children":1258},{"class":573,"line":1257},30,[1259,1264,1269,1274,1278],{"type":18,"tag":571,"props":1260,"children":1261},{"style":590},[1262],{"type":23,"value":1263},"        subscribers.",{"type":18,"tag":571,"props":1265,"children":1266},{"style":584},[1267],{"type":23,"value":1268},"splice",{"type":18,"tag":571,"props":1270,"children":1271},{"style":590},[1272],{"type":23,"value":1273},"(index, ",{"type":18,"tag":571,"props":1275,"children":1276},{"style":642},[1277],{"type":23,"value":270},{"type":18,"tag":571,"props":1279,"children":1280},{"style":590},[1281],{"type":23,"value":792},{"type":18,"tag":571,"props":1283,"children":1285},{"class":573,"line":1284},31,[1286],{"type":18,"tag":571,"props":1287,"children":1288},{"style":590},[1289],{"type":23,"value":1290},"      }\n",{"type":18,"tag":571,"props":1292,"children":1294},{"class":573,"line":1293},32,[1295],{"type":18,"tag":571,"props":1296,"children":1297},{"style":590},[1298],{"type":23,"value":1299},"    };\n",{"type":18,"tag":571,"props":1301,"children":1303},{"class":573,"line":1302},33,[1304],{"type":18,"tag":571,"props":1305,"children":1306},{"style":590},[1307],{"type":23,"value":801},{"type":18,"tag":571,"props":1309,"children":1311},{"class":573,"line":1310},34,[1312],{"type":18,"tag":571,"props":1313,"children":1314},{"emptyLinePlaceholder":656},[1315],{"type":23,"value":659},{"type":18,"tag":571,"props":1317,"children":1319},{"class":573,"line":1318},35,[1320,1325],{"type":18,"tag":571,"props":1321,"children":1322},{"style":578},[1323],{"type":23,"value":1324},"  return",{"type":18,"tag":571,"props":1326,"children":1327},{"style":590},[1328],{"type":23,"value":1329}," { get, set, subscribe };\n",{"type":18,"tag":571,"props":1331,"children":1333},{"class":573,"line":1332},36,[1334],{"type":18,"tag":571,"props":1335,"children":1336},{"style":590},[1337],{"type":23,"value":1338},"}\n",{"type":18,"tag":19,"props":1340,"children":1341},{},[1342],{"type":23,"value":1343},"Above we have the final output, I always think it is good to have a quick scan over the whole code and then break everything down individually.",{"type":18,"tag":468,"props":1345,"children":1346},{"id":500},[1347],{"type":23,"value":1348},"get()",{"type":18,"tag":19,"props":1350,"children":1351},{},[1352],{"type":23,"value":1353},"This function is very simple and just returns the current active value",{"type":18,"tag":468,"props":1355,"children":1356},{"id":517},[1357],{"type":23,"value":1358},"subscribe()",{"type":18,"tag":19,"props":1360,"children":1361},{},[1362,1364,1369],{"type":23,"value":1363},"The ",{"type":18,"tag":480,"props":1365,"children":1367},{"className":1366},[],[1368],{"type":23,"value":517},{"type":23,"value":1370}," function takes a callback function as its parameter and push this function to the subscribers array, that is it! The code will now execute when to the active value is updated. We also have some unsubscribe logic baked into the subscribe function.",{"type":18,"tag":561,"props":1372,"children":1376},{"className":1373,"code":1374,"language":1375,"meta":8,"style":8},"language-js shiki shiki-themes github-dark","    return () => {\n      const index = subscribers.indexOf(subscriber);\n      if (index > -1) {\n        subscribers.splice(index, 1);\n      }\n    };\n","js",[1377],{"type":18,"tag":480,"props":1378,"children":1379},{"__ignoreMap":8},[1380,1399,1426,1453,1476,1483],{"type":18,"tag":571,"props":1381,"children":1382},{"class":573,"line":574},[1383,1387,1391,1395],{"type":18,"tag":571,"props":1384,"children":1385},{"style":578},[1386],{"type":23,"value":923},{"type":18,"tag":571,"props":1388,"children":1389},{"style":590},[1390],{"type":23,"value":1180},{"type":18,"tag":571,"props":1392,"children":1393},{"style":578},[1394],{"type":23,"value":639},{"type":18,"tag":571,"props":1396,"children":1397},{"style":590},[1398],{"type":23,"value":1189},{"type":18,"tag":571,"props":1400,"children":1401},{"class":573,"line":169},[1402,1406,1410,1414,1418,1422],{"type":18,"tag":571,"props":1403,"children":1404},{"style":578},[1405],{"type":23,"value":1198},{"type":18,"tag":571,"props":1407,"children":1408},{"style":642},[1409],{"type":23,"value":1203},{"type":18,"tag":571,"props":1411,"children":1412},{"style":578},[1413],{"type":23,"value":1208},{"type":18,"tag":571,"props":1415,"children":1416},{"style":590},[1417],{"type":23,"value":1213},{"type":18,"tag":571,"props":1419,"children":1420},{"style":584},[1421],{"type":23,"value":1218},{"type":18,"tag":571,"props":1423,"children":1424},{"style":590},[1425],{"type":23,"value":1167},{"type":18,"tag":571,"props":1427,"children":1428},{"class":573,"line":174},[1429,1433,1437,1441,1445,1449],{"type":18,"tag":571,"props":1430,"children":1431},{"style":578},[1432],{"type":23,"value":1231},{"type":18,"tag":571,"props":1434,"children":1435},{"style":590},[1436],{"type":23,"value":1236},{"type":18,"tag":571,"props":1438,"children":1439},{"style":578},[1440],{"type":23,"value":1241},{"type":18,"tag":571,"props":1442,"children":1443},{"style":578},[1444],{"type":23,"value":1246},{"type":18,"tag":571,"props":1446,"children":1447},{"style":642},[1448],{"type":23,"value":270},{"type":18,"tag":571,"props":1450,"children":1451},{"style":590},[1452],{"type":23,"value":711},{"type":18,"tag":571,"props":1454,"children":1455},{"class":573,"line":714},[1456,1460,1464,1468,1472],{"type":18,"tag":571,"props":1457,"children":1458},{"style":590},[1459],{"type":23,"value":1263},{"type":18,"tag":571,"props":1461,"children":1462},{"style":584},[1463],{"type":23,"value":1268},{"type":18,"tag":571,"props":1465,"children":1466},{"style":590},[1467],{"type":23,"value":1273},{"type":18,"tag":571,"props":1469,"children":1470},{"style":642},[1471],{"type":23,"value":270},{"type":18,"tag":571,"props":1473,"children":1474},{"style":590},[1475],{"type":23,"value":792},{"type":18,"tag":571,"props":1477,"children":1478},{"class":573,"line":761},[1479],{"type":18,"tag":571,"props":1480,"children":1481},{"style":590},[1482],{"type":23,"value":1290},{"type":18,"tag":571,"props":1484,"children":1485},{"class":573,"line":795},[1486],{"type":18,"tag":571,"props":1487,"children":1488},{"style":590},[1489],{"type":23,"value":1299},{"type":18,"tag":19,"props":1491,"children":1492},{},[1493,1495,1500],{"type":23,"value":1494},"You would be able to unsubscribe from a ",{"type":18,"tag":480,"props":1496,"children":1498},{"className":1497},[],[1499],{"type":23,"value":508},{"type":23,"value":1501}," like this.",{"type":18,"tag":561,"props":1503,"children":1505},{"className":563,"code":1504,"language":565,"meta":8,"style":8},"const unsubscribe = subscribe((newValue) => { console.log('New Value:', newValue); }); \n\n// This will unsubscribe from listening to updates\nunsubscribe();\n",[1506],{"type":18,"tag":480,"props":1507,"children":1508},{"__ignoreMap":8},[1509,1573,1580,1588],{"type":18,"tag":571,"props":1510,"children":1511},{"class":573,"line":574},[1512,1517,1522,1527,1532,1536,1540,1545,1549,1554,1559,1563,1568],{"type":18,"tag":571,"props":1513,"children":1514},{"style":578},[1515],{"type":23,"value":1516},"const",{"type":18,"tag":571,"props":1518,"children":1519},{"style":642},[1520],{"type":23,"value":1521}," unsubscribe",{"type":18,"tag":571,"props":1523,"children":1524},{"style":578},[1525],{"type":23,"value":1526}," =",{"type":18,"tag":571,"props":1528,"children":1529},{"style":584},[1530],{"type":23,"value":1531}," subscribe",{"type":18,"tag":571,"props":1533,"children":1534},{"style":590},[1535],{"type":23,"value":1049},{"type":18,"tag":571,"props":1537,"children":1538},{"style":616},[1539],{"type":23,"value":619},{"type":18,"tag":571,"props":1541,"children":1542},{"style":590},[1543],{"type":23,"value":1544},") ",{"type":18,"tag":571,"props":1546,"children":1547},{"style":578},[1548],{"type":23,"value":639},{"type":18,"tag":571,"props":1550,"children":1551},{"style":590},[1552],{"type":23,"value":1553}," { console.",{"type":18,"tag":571,"props":1555,"children":1556},{"style":584},[1557],{"type":23,"value":1558},"log",{"type":18,"tag":571,"props":1560,"children":1561},{"style":590},[1562],{"type":23,"value":682},{"type":18,"tag":571,"props":1564,"children":1565},{"style":784},[1566],{"type":23,"value":1567},"'New Value:'",{"type":18,"tag":571,"props":1569,"children":1570},{"style":590},[1571],{"type":23,"value":1572},", newValue); }); \n",{"type":18,"tag":571,"props":1574,"children":1575},{"class":573,"line":169},[1576],{"type":18,"tag":571,"props":1577,"children":1578},{"emptyLinePlaceholder":656},[1579],{"type":23,"value":659},{"type":18,"tag":571,"props":1581,"children":1582},{"class":573,"line":174},[1583],{"type":18,"tag":571,"props":1584,"children":1585},{"style":892},[1586],{"type":23,"value":1587},"// This will unsubscribe from listening to updates\n",{"type":18,"tag":571,"props":1589,"children":1590},{"class":573,"line":714},[1591,1596],{"type":18,"tag":571,"props":1592,"children":1593},{"style":584},[1594],{"type":23,"value":1595},"unsubscribe",{"type":18,"tag":571,"props":1597,"children":1598},{"style":590},[1599],{"type":23,"value":1600},"();\n",{"type":18,"tag":468,"props":1602,"children":1603},{"id":542},[1604],{"type":23,"value":1605},"set()",{"type":18,"tag":19,"props":1607,"children":1608},{},[1609,1611,1617],{"type":23,"value":1610},"Where all the magic happens! When we set a new value, we update the ",{"type":18,"tag":480,"props":1612,"children":1614},{"className":1613},[],[1615],{"type":23,"value":1616},"activeValue",{"type":23,"value":1618}," and loop through all the functions that are stored in the subscribers array and execute each one.",{"type":18,"tag":19,"props":1620,"children":1621},{},[1622],{"type":23,"value":1623},"That is pretty much all that is going on!",{"type":18,"tag":39,"props":1625,"children":1627},{"id":1626},"lets-see-it-in-action",[1628],{"type":23,"value":1629},"Let's see it in action",{"type":18,"tag":19,"props":1631,"children":1632},{},[1633],{"type":23,"value":1634},"In the stackblitz I made a basic app for you to play around and see how the reactivity works. Let's break it down.",{"type":18,"tag":561,"props":1636,"children":1638},{"className":563,"code":1637,"language":565,"meta":8,"style":8},"\nconst app = document.querySelector\u003CHTMLDivElement>('#app')!;\n\n// create basic elements\nconst firstElement = document.createElement('div');\nconst secondElement = document.createElement('div');\nconst inputElement = document.createElement('input');\n\ninputElement.type = 'text';\ninputElement.placeholder = 'Update title...';\n\n// append to DOM\napp.appendChild(firstElement);\napp.appendChild(secondElement);\napp.appendChild(inputElement);\n",[1639],{"type":18,"tag":480,"props":1640,"children":1641},{"__ignoreMap":8},[1642,1649,1708,1715,1723,1761,1797,1834,1841,1862,1883,1890,1898,1916,1932],{"type":18,"tag":571,"props":1643,"children":1644},{"class":573,"line":574},[1645],{"type":18,"tag":571,"props":1646,"children":1647},{"emptyLinePlaceholder":656},[1648],{"type":23,"value":659},{"type":18,"tag":571,"props":1650,"children":1651},{"class":573,"line":169},[1652,1656,1661,1665,1670,1675,1679,1684,1689,1694,1699,1704],{"type":18,"tag":571,"props":1653,"children":1654},{"style":578},[1655],{"type":23,"value":1516},{"type":18,"tag":571,"props":1657,"children":1658},{"style":642},[1659],{"type":23,"value":1660}," app",{"type":18,"tag":571,"props":1662,"children":1663},{"style":578},[1664],{"type":23,"value":1208},{"type":18,"tag":571,"props":1666,"children":1667},{"style":590},[1668],{"type":23,"value":1669}," document.",{"type":18,"tag":571,"props":1671,"children":1672},{"style":584},[1673],{"type":23,"value":1674},"querySelector",{"type":18,"tag":571,"props":1676,"children":1677},{"style":590},[1678],{"type":23,"value":593},{"type":18,"tag":571,"props":1680,"children":1681},{"style":584},[1682],{"type":23,"value":1683},"HTMLDivElement",{"type":18,"tag":571,"props":1685,"children":1686},{"style":590},[1687],{"type":23,"value":1688},">(",{"type":18,"tag":571,"props":1690,"children":1691},{"style":784},[1692],{"type":23,"value":1693},"'#app'",{"type":18,"tag":571,"props":1695,"children":1696},{"style":590},[1697],{"type":23,"value":1698},")",{"type":18,"tag":571,"props":1700,"children":1701},{"style":578},[1702],{"type":23,"value":1703},"!",{"type":18,"tag":571,"props":1705,"children":1706},{"style":590},[1707],{"type":23,"value":650},{"type":18,"tag":571,"props":1709,"children":1710},{"class":573,"line":174},[1711],{"type":18,"tag":571,"props":1712,"children":1713},{"emptyLinePlaceholder":656},[1714],{"type":23,"value":659},{"type":18,"tag":571,"props":1716,"children":1717},{"class":573,"line":714},[1718],{"type":18,"tag":571,"props":1719,"children":1720},{"style":892},[1721],{"type":23,"value":1722},"// create basic elements\n",{"type":18,"tag":571,"props":1724,"children":1725},{"class":573,"line":761},[1726,1730,1735,1739,1743,1748,1752,1757],{"type":18,"tag":571,"props":1727,"children":1728},{"style":578},[1729],{"type":23,"value":1516},{"type":18,"tag":571,"props":1731,"children":1732},{"style":642},[1733],{"type":23,"value":1734}," firstElement",{"type":18,"tag":571,"props":1736,"children":1737},{"style":578},[1738],{"type":23,"value":1208},{"type":18,"tag":571,"props":1740,"children":1741},{"style":590},[1742],{"type":23,"value":1669},{"type":18,"tag":571,"props":1744,"children":1745},{"style":584},[1746],{"type":23,"value":1747},"createElement",{"type":18,"tag":571,"props":1749,"children":1750},{"style":590},[1751],{"type":23,"value":682},{"type":18,"tag":571,"props":1753,"children":1754},{"style":784},[1755],{"type":23,"value":1756},"'div'",{"type":18,"tag":571,"props":1758,"children":1759},{"style":590},[1760],{"type":23,"value":792},{"type":18,"tag":571,"props":1762,"children":1763},{"class":573,"line":795},[1764,1768,1773,1777,1781,1785,1789,1793],{"type":18,"tag":571,"props":1765,"children":1766},{"style":578},[1767],{"type":23,"value":1516},{"type":18,"tag":571,"props":1769,"children":1770},{"style":642},[1771],{"type":23,"value":1772}," secondElement",{"type":18,"tag":571,"props":1774,"children":1775},{"style":578},[1776],{"type":23,"value":1208},{"type":18,"tag":571,"props":1778,"children":1779},{"style":590},[1780],{"type":23,"value":1669},{"type":18,"tag":571,"props":1782,"children":1783},{"style":584},[1784],{"type":23,"value":1747},{"type":18,"tag":571,"props":1786,"children":1787},{"style":590},[1788],{"type":23,"value":682},{"type":18,"tag":571,"props":1790,"children":1791},{"style":784},[1792],{"type":23,"value":1756},{"type":18,"tag":571,"props":1794,"children":1795},{"style":590},[1796],{"type":23,"value":792},{"type":18,"tag":571,"props":1798,"children":1799},{"class":573,"line":804},[1800,1804,1809,1813,1817,1821,1825,1830],{"type":18,"tag":571,"props":1801,"children":1802},{"style":578},[1803],{"type":23,"value":1516},{"type":18,"tag":571,"props":1805,"children":1806},{"style":642},[1807],{"type":23,"value":1808}," inputElement",{"type":18,"tag":571,"props":1810,"children":1811},{"style":578},[1812],{"type":23,"value":1208},{"type":18,"tag":571,"props":1814,"children":1815},{"style":590},[1816],{"type":23,"value":1669},{"type":18,"tag":571,"props":1818,"children":1819},{"style":584},[1820],{"type":23,"value":1747},{"type":18,"tag":571,"props":1822,"children":1823},{"style":590},[1824],{"type":23,"value":682},{"type":18,"tag":571,"props":1826,"children":1827},{"style":784},[1828],{"type":23,"value":1829},"'input'",{"type":18,"tag":571,"props":1831,"children":1832},{"style":590},[1833],{"type":23,"value":792},{"type":18,"tag":571,"props":1835,"children":1836},{"class":573,"line":812},[1837],{"type":18,"tag":571,"props":1838,"children":1839},{"emptyLinePlaceholder":656},[1840],{"type":23,"value":659},{"type":18,"tag":571,"props":1842,"children":1843},{"class":573,"line":835},[1844,1849,1853,1858],{"type":18,"tag":571,"props":1845,"children":1846},{"style":590},[1847],{"type":23,"value":1848},"inputElement.type ",{"type":18,"tag":571,"props":1850,"children":1851},{"style":578},[1852],{"type":23,"value":608},{"type":18,"tag":571,"props":1854,"children":1855},{"style":784},[1856],{"type":23,"value":1857}," 'text'",{"type":18,"tag":571,"props":1859,"children":1860},{"style":590},[1861],{"type":23,"value":650},{"type":18,"tag":571,"props":1863,"children":1864},{"class":573,"line":880},[1865,1870,1874,1879],{"type":18,"tag":571,"props":1866,"children":1867},{"style":590},[1868],{"type":23,"value":1869},"inputElement.placeholder ",{"type":18,"tag":571,"props":1871,"children":1872},{"style":578},[1873],{"type":23,"value":608},{"type":18,"tag":571,"props":1875,"children":1876},{"style":784},[1877],{"type":23,"value":1878}," 'Update title...'",{"type":18,"tag":571,"props":1880,"children":1881},{"style":590},[1882],{"type":23,"value":650},{"type":18,"tag":571,"props":1884,"children":1885},{"class":573,"line":888},[1886],{"type":18,"tag":571,"props":1887,"children":1888},{"emptyLinePlaceholder":656},[1889],{"type":23,"value":659},{"type":18,"tag":571,"props":1891,"children":1892},{"class":573,"line":898},[1893],{"type":18,"tag":571,"props":1894,"children":1895},{"style":892},[1896],{"type":23,"value":1897},"// append to DOM\n",{"type":18,"tag":571,"props":1899,"children":1900},{"class":573,"line":917},[1901,1906,1911],{"type":18,"tag":571,"props":1902,"children":1903},{"style":590},[1904],{"type":23,"value":1905},"app.",{"type":18,"tag":571,"props":1907,"children":1908},{"style":584},[1909],{"type":23,"value":1910},"appendChild",{"type":18,"tag":571,"props":1912,"children":1913},{"style":590},[1914],{"type":23,"value":1915},"(firstElement);\n",{"type":18,"tag":571,"props":1917,"children":1918},{"class":573,"line":931},[1919,1923,1927],{"type":18,"tag":571,"props":1920,"children":1921},{"style":590},[1922],{"type":23,"value":1905},{"type":18,"tag":571,"props":1924,"children":1925},{"style":584},[1926],{"type":23,"value":1910},{"type":18,"tag":571,"props":1928,"children":1929},{"style":590},[1930],{"type":23,"value":1931},"(secondElement);\n",{"type":18,"tag":571,"props":1933,"children":1934},{"class":573,"line":939},[1935,1939,1943],{"type":18,"tag":571,"props":1936,"children":1937},{"style":590},[1938],{"type":23,"value":1905},{"type":18,"tag":571,"props":1940,"children":1941},{"style":584},[1942],{"type":23,"value":1910},{"type":18,"tag":571,"props":1944,"children":1945},{"style":590},[1946],{"type":23,"value":1947},"(inputElement);\n",{"type":18,"tag":19,"props":1949,"children":1950},{},[1951,1953,1959],{"type":23,"value":1952},"We are grabbing out ",{"type":18,"tag":480,"props":1954,"children":1956},{"className":1955},[],[1957],{"type":23,"value":1958},"app",{"type":23,"value":1960}," element and appending a two divs and a single input to the DOM.",{"type":18,"tag":561,"props":1962,"children":1964},{"className":563,"code":1963,"language":565,"meta":8,"style":8},"// Create reactive property\nconst title = ref('Subscribe to the blog');\n\nfirstElement.innerHTML = `First element: ${title.get()}`;\nsecondElement.innerHTML = `Second Element ${title.get()}`;\n\n// Create two subscribers to the reactive value\ntitle.subscribe((newTitle) => {\n  firstElement.innerHTML = `First element: ${newTitle}`;\n});\n\ntitle.subscribe((newTitle) => {\n  secondElement.innerHTML = `Second element: ${newTitle}`;\n});\n",[1965],{"type":18,"tag":480,"props":1966,"children":1967},{"__ignoreMap":8},[1968,1976,2009,2016,2060,2101,2108,2116,2149,2177,2185,2192,2223,2252],{"type":18,"tag":571,"props":1969,"children":1970},{"class":573,"line":574},[1971],{"type":18,"tag":571,"props":1972,"children":1973},{"style":892},[1974],{"type":23,"value":1975},"// Create reactive property\n",{"type":18,"tag":571,"props":1977,"children":1978},{"class":573,"line":169},[1979,1983,1988,1992,1996,2000,2005],{"type":18,"tag":571,"props":1980,"children":1981},{"style":578},[1982],{"type":23,"value":1516},{"type":18,"tag":571,"props":1984,"children":1985},{"style":642},[1986],{"type":23,"value":1987}," title",{"type":18,"tag":571,"props":1989,"children":1990},{"style":578},[1991],{"type":23,"value":1208},{"type":18,"tag":571,"props":1993,"children":1994},{"style":584},[1995],{"type":23,"value":677},{"type":18,"tag":571,"props":1997,"children":1998},{"style":590},[1999],{"type":23,"value":682},{"type":18,"tag":571,"props":2001,"children":2002},{"style":784},[2003],{"type":23,"value":2004},"'Subscribe to the blog'",{"type":18,"tag":571,"props":2006,"children":2007},{"style":590},[2008],{"type":23,"value":792},{"type":18,"tag":571,"props":2010,"children":2011},{"class":573,"line":174},[2012],{"type":18,"tag":571,"props":2013,"children":2014},{"emptyLinePlaceholder":656},[2015],{"type":23,"value":659},{"type":18,"tag":571,"props":2017,"children":2018},{"class":573,"line":714},[2019,2024,2028,2033,2038,2042,2046,2051,2056],{"type":18,"tag":571,"props":2020,"children":2021},{"style":590},[2022],{"type":23,"value":2023},"firstElement.innerHTML ",{"type":18,"tag":571,"props":2025,"children":2026},{"style":578},[2027],{"type":23,"value":608},{"type":18,"tag":571,"props":2029,"children":2030},{"style":784},[2031],{"type":23,"value":2032}," `First element: ${",{"type":18,"tag":571,"props":2034,"children":2035},{"style":590},[2036],{"type":23,"value":2037},"title",{"type":18,"tag":571,"props":2039,"children":2040},{"style":784},[2041],{"type":23,"value":205},{"type":18,"tag":571,"props":2043,"children":2044},{"style":584},[2045],{"type":23,"value":500},{"type":18,"tag":571,"props":2047,"children":2048},{"style":784},[2049],{"type":23,"value":2050},"()",{"type":18,"tag":571,"props":2052,"children":2053},{"style":784},[2054],{"type":23,"value":2055},"}`",{"type":18,"tag":571,"props":2057,"children":2058},{"style":590},[2059],{"type":23,"value":650},{"type":18,"tag":571,"props":2061,"children":2062},{"class":573,"line":761},[2063,2068,2072,2077,2081,2085,2089,2093,2097],{"type":18,"tag":571,"props":2064,"children":2065},{"style":590},[2066],{"type":23,"value":2067},"secondElement.innerHTML ",{"type":18,"tag":571,"props":2069,"children":2070},{"style":578},[2071],{"type":23,"value":608},{"type":18,"tag":571,"props":2073,"children":2074},{"style":784},[2075],{"type":23,"value":2076}," `Second Element ${",{"type":18,"tag":571,"props":2078,"children":2079},{"style":590},[2080],{"type":23,"value":2037},{"type":18,"tag":571,"props":2082,"children":2083},{"style":784},[2084],{"type":23,"value":205},{"type":18,"tag":571,"props":2086,"children":2087},{"style":584},[2088],{"type":23,"value":500},{"type":18,"tag":571,"props":2090,"children":2091},{"style":784},[2092],{"type":23,"value":2050},{"type":18,"tag":571,"props":2094,"children":2095},{"style":784},[2096],{"type":23,"value":2055},{"type":18,"tag":571,"props":2098,"children":2099},{"style":590},[2100],{"type":23,"value":650},{"type":18,"tag":571,"props":2102,"children":2103},{"class":573,"line":795},[2104],{"type":18,"tag":571,"props":2105,"children":2106},{"emptyLinePlaceholder":656},[2107],{"type":23,"value":659},{"type":18,"tag":571,"props":2109,"children":2110},{"class":573,"line":804},[2111],{"type":18,"tag":571,"props":2112,"children":2113},{"style":892},[2114],{"type":23,"value":2115},"// Create two subscribers to the reactive value\n",{"type":18,"tag":571,"props":2117,"children":2118},{"class":573,"line":812},[2119,2124,2128,2132,2137,2141,2145],{"type":18,"tag":571,"props":2120,"children":2121},{"style":590},[2122],{"type":23,"value":2123},"title.",{"type":18,"tag":571,"props":2125,"children":2126},{"style":584},[2127],{"type":23,"value":517},{"type":18,"tag":571,"props":2129,"children":2130},{"style":590},[2131],{"type":23,"value":1049},{"type":18,"tag":571,"props":2133,"children":2134},{"style":616},[2135],{"type":23,"value":2136},"newTitle",{"type":18,"tag":571,"props":2138,"children":2139},{"style":590},[2140],{"type":23,"value":634},{"type":18,"tag":571,"props":2142,"children":2143},{"style":578},[2144],{"type":23,"value":639},{"type":18,"tag":571,"props":2146,"children":2147},{"style":590},[2148],{"type":23,"value":1189},{"type":18,"tag":571,"props":2150,"children":2151},{"class":573,"line":835},[2152,2157,2161,2165,2169,2173],{"type":18,"tag":571,"props":2153,"children":2154},{"style":590},[2155],{"type":23,"value":2156},"  firstElement.innerHTML ",{"type":18,"tag":571,"props":2158,"children":2159},{"style":578},[2160],{"type":23,"value":608},{"type":18,"tag":571,"props":2162,"children":2163},{"style":784},[2164],{"type":23,"value":2032},{"type":18,"tag":571,"props":2166,"children":2167},{"style":590},[2168],{"type":23,"value":2136},{"type":18,"tag":571,"props":2170,"children":2171},{"style":784},[2172],{"type":23,"value":2055},{"type":18,"tag":571,"props":2174,"children":2175},{"style":590},[2176],{"type":23,"value":650},{"type":18,"tag":571,"props":2178,"children":2179},{"class":573,"line":880},[2180],{"type":18,"tag":571,"props":2181,"children":2182},{"style":590},[2183],{"type":23,"value":2184},"});\n",{"type":18,"tag":571,"props":2186,"children":2187},{"class":573,"line":888},[2188],{"type":18,"tag":571,"props":2189,"children":2190},{"emptyLinePlaceholder":656},[2191],{"type":23,"value":659},{"type":18,"tag":571,"props":2193,"children":2194},{"class":573,"line":898},[2195,2199,2203,2207,2211,2215,2219],{"type":18,"tag":571,"props":2196,"children":2197},{"style":590},[2198],{"type":23,"value":2123},{"type":18,"tag":571,"props":2200,"children":2201},{"style":584},[2202],{"type":23,"value":517},{"type":18,"tag":571,"props":2204,"children":2205},{"style":590},[2206],{"type":23,"value":1049},{"type":18,"tag":571,"props":2208,"children":2209},{"style":616},[2210],{"type":23,"value":2136},{"type":18,"tag":571,"props":2212,"children":2213},{"style":590},[2214],{"type":23,"value":634},{"type":18,"tag":571,"props":2216,"children":2217},{"style":578},[2218],{"type":23,"value":639},{"type":18,"tag":571,"props":2220,"children":2221},{"style":590},[2222],{"type":23,"value":1189},{"type":18,"tag":571,"props":2224,"children":2225},{"class":573,"line":917},[2226,2231,2235,2240,2244,2248],{"type":18,"tag":571,"props":2227,"children":2228},{"style":590},[2229],{"type":23,"value":2230},"  secondElement.innerHTML ",{"type":18,"tag":571,"props":2232,"children":2233},{"style":578},[2234],{"type":23,"value":608},{"type":18,"tag":571,"props":2236,"children":2237},{"style":784},[2238],{"type":23,"value":2239}," `Second element: ${",{"type":18,"tag":571,"props":2241,"children":2242},{"style":590},[2243],{"type":23,"value":2136},{"type":18,"tag":571,"props":2245,"children":2246},{"style":784},[2247],{"type":23,"value":2055},{"type":18,"tag":571,"props":2249,"children":2250},{"style":590},[2251],{"type":23,"value":650},{"type":18,"tag":571,"props":2253,"children":2254},{"class":573,"line":931},[2255],{"type":18,"tag":571,"props":2256,"children":2257},{"style":590},[2258],{"type":23,"value":2184},{"type":18,"tag":19,"props":2260,"children":2261},{},[2262,2264,2269,2271,2277,2279,2284,2286,2291,2293,2298,2300,2305],{"type":23,"value":2263},"We then create a reactive string variable using our ",{"type":18,"tag":480,"props":2265,"children":2267},{"className":2266},[],[2268],{"type":23,"value":508},{"type":23,"value":2270}," composable. Then we set the ",{"type":18,"tag":480,"props":2272,"children":2274},{"className":2273},[],[2275],{"type":23,"value":2276},"innerHTML",{"type":23,"value":2278}," to the first and second div to use the ",{"type":18,"tag":480,"props":2280,"children":2282},{"className":2281},[],[2283],{"type":23,"value":508},{"type":23,"value":2285},"'s ",{"type":18,"tag":480,"props":2287,"children":2289},{"className":2288},[],[2290],{"type":23,"value":1348},{"type":23,"value":2292}," function. Afterwards, we subscribe to the reactive ",{"type":18,"tag":480,"props":2294,"children":2296},{"className":2295},[],[2297],{"type":23,"value":2037},{"type":23,"value":2299}," and on a change we update the firstElement's ",{"type":18,"tag":480,"props":2301,"children":2303},{"className":2302},[],[2304],{"type":23,"value":2276},{"type":23,"value":2306}," to the new value and we do the same for the second element.",{"type":18,"tag":19,"props":2308,"children":2309},{},[2310,2312,2317],{"type":23,"value":2311},"Finally we have add an event listener to the input to set the new value for the ",{"type":18,"tag":480,"props":2313,"children":2315},{"className":2314},[],[2316],{"type":23,"value":2037},{"type":23,"value":2318}," when the input is updated.",{"type":18,"tag":561,"props":2320,"children":2322},{"className":563,"code":2321,"language":565,"meta":8,"style":8},"inputElement.addEventListener('input', (event) => {\n  let value = (event.target as HTMLInputElement).value;\n  value = value === '' ? 'Subscribe the the blog' : value;\n  title.set(value);\n});\n",[2323],{"type":18,"tag":480,"props":2324,"children":2325},{"__ignoreMap":8},[2326,2369,2404,2448,2465],{"type":18,"tag":571,"props":2327,"children":2328},{"class":573,"line":574},[2329,2334,2339,2343,2347,2352,2357,2361,2365],{"type":18,"tag":571,"props":2330,"children":2331},{"style":590},[2332],{"type":23,"value":2333},"inputElement.",{"type":18,"tag":571,"props":2335,"children":2336},{"style":584},[2337],{"type":23,"value":2338},"addEventListener",{"type":18,"tag":571,"props":2340,"children":2341},{"style":590},[2342],{"type":23,"value":682},{"type":18,"tag":571,"props":2344,"children":2345},{"style":784},[2346],{"type":23,"value":1829},{"type":18,"tag":571,"props":2348,"children":2349},{"style":590},[2350],{"type":23,"value":2351},", (",{"type":18,"tag":571,"props":2353,"children":2354},{"style":616},[2355],{"type":23,"value":2356},"event",{"type":18,"tag":571,"props":2358,"children":2359},{"style":590},[2360],{"type":23,"value":634},{"type":18,"tag":571,"props":2362,"children":2363},{"style":578},[2364],{"type":23,"value":639},{"type":18,"tag":571,"props":2366,"children":2367},{"style":590},[2368],{"type":23,"value":1189},{"type":18,"tag":571,"props":2370,"children":2371},{"class":573,"line":169},[2372,2376,2380,2384,2389,2394,2399],{"type":18,"tag":571,"props":2373,"children":2374},{"style":578},[2375],{"type":23,"value":818},{"type":18,"tag":571,"props":2377,"children":2378},{"style":590},[2379],{"type":23,"value":745},{"type":18,"tag":571,"props":2381,"children":2382},{"style":578},[2383],{"type":23,"value":608},{"type":18,"tag":571,"props":2385,"children":2386},{"style":590},[2387],{"type":23,"value":2388}," (event.target ",{"type":18,"tag":571,"props":2390,"children":2391},{"style":578},[2392],{"type":23,"value":2393},"as",{"type":18,"tag":571,"props":2395,"children":2396},{"style":584},[2397],{"type":23,"value":2398}," HTMLInputElement",{"type":18,"tag":571,"props":2400,"children":2401},{"style":590},[2402],{"type":23,"value":2403},").value;\n",{"type":18,"tag":571,"props":2405,"children":2406},{"class":573,"line":174},[2407,2412,2416,2420,2424,2429,2434,2439,2444],{"type":18,"tag":571,"props":2408,"children":2409},{"style":590},[2410],{"type":23,"value":2411},"  value ",{"type":18,"tag":571,"props":2413,"children":2414},{"style":578},[2415],{"type":23,"value":608},{"type":18,"tag":571,"props":2417,"children":2418},{"style":590},[2419],{"type":23,"value":745},{"type":18,"tag":571,"props":2421,"children":2422},{"style":578},[2423],{"type":23,"value":730},{"type":18,"tag":571,"props":2425,"children":2426},{"style":784},[2427],{"type":23,"value":2428}," ''",{"type":18,"tag":571,"props":2430,"children":2431},{"style":578},[2432],{"type":23,"value":2433}," ?",{"type":18,"tag":571,"props":2435,"children":2436},{"style":784},[2437],{"type":23,"value":2438}," 'Subscribe the the blog'",{"type":18,"tag":571,"props":2440,"children":2441},{"style":578},[2442],{"type":23,"value":2443}," :",{"type":18,"tag":571,"props":2445,"children":2446},{"style":590},[2447],{"type":23,"value":832},{"type":18,"tag":571,"props":2449,"children":2450},{"class":573,"line":714},[2451,2456,2460],{"type":18,"tag":571,"props":2452,"children":2453},{"style":590},[2454],{"type":23,"value":2455},"  title.",{"type":18,"tag":571,"props":2457,"children":2458},{"style":584},[2459],{"type":23,"value":542},{"type":18,"tag":571,"props":2461,"children":2462},{"style":590},[2463],{"type":23,"value":2464},"(value);\n",{"type":18,"tag":571,"props":2466,"children":2467},{"class":573,"line":761},[2468],{"type":18,"tag":571,"props":2469,"children":2470},{"style":590},[2471],{"type":23,"value":2184},{"type":18,"tag":39,"props":2473,"children":2475},{"id":2474},"conclusion",[2476],{"type":23,"value":2477},"Conclusion",{"type":18,"tag":19,"props":2479,"children":2480},{},[2481],{"type":23,"value":2482},"By building this simple reactive system, you've taken a first step into understanding how popular frameworks handle data binding under the hood. Different frameworks optimize this concept in unique ways, handling edge cases like batching updates and performance optimization. We'll dive into those advanced patterns next week, so stay tuned!",{"type":18,"tag":2484,"props":2485,"children":2486},"style",{},[2487],{"type":23,"value":2488},"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);}",{"title":8,"searchDepth":169,"depth":169,"links":2490},[2491,2492,2493,2494],{"id":221,"depth":169,"text":224},{"id":451,"depth":169,"text":454},{"id":1626,"depth":169,"text":1629},{"id":2474,"depth":169,"text":2477},"content:articles:build-your-own-reactivty-system.md","articles/build-your-own-reactivty-system.md","articles/build-your-own-reactivty-system",{"_path":2499,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2500,"description":2501,"pubDate":2502,"date":2503,"heroImage":2504,"component":8,"body":2505,"_type":175,"_id":2916,"_source":177,"_file":2917,"_stem":2918,"_extension":180},"/articles/my-cv","Hey, I'm James","I like designing and building things.","Dec 12 2024","2024-12-12","/james.jpg",{"type":15,"children":2506,"toc":2903},[2507,2525,2531,2536,2546,2556,2561,2566,2577,2586,2591,2597,2606,2611,2622,2631,2636,2647,2656,2661,2672,2681,2686,2697,2707,2712,2715,2721,2729,2817,2835,2838,2846,2852],{"type":18,"tag":19,"props":2508,"children":2509},{},[2510,2516,2520],{"type":18,"tag":2511,"props":2512,"children":2513},"em",{},[2514],{"type":23,"value":2515},"70% engineering + 30% pretty boxes",{"type":18,"tag":2517,"props":2518,"children":2519},"br",{},[],{"type":18,"tag":66,"props":2521,"children":2522},{},[2523],{"type":23,"value":2524},"Senior Design Engineer",{"type":18,"tag":39,"props":2526,"children":2528},{"id":2527},"the-journey-so-far",[2529],{"type":23,"value":2530},"The journey, so far...",{"type":18,"tag":19,"props":2532,"children":2533},{},[2534],{"type":23,"value":2535},"My last seven years of experience have been built across multiple companies.",{"type":18,"tag":51,"props":2537,"children":2539},{"id":2538},"buildbox",[2540],{"type":18,"tag":70,"props":2541,"children":2544},{"href":2542,"rel":2543},"https://app.buidlbox.io",[200],[2545],{"type":23,"value":2538},{"type":18,"tag":19,"props":2547,"children":2548},{},[2549,2554],{"type":18,"tag":66,"props":2550,"children":2551},{},[2552],{"type":23,"value":2553},"Role:",{"type":23,"value":2555}," Lead Frontend / Designer (2022-Present)",{"type":18,"tag":19,"props":2557,"children":2558},{},[2559],{"type":23,"value":2560},"Buildbox is a Web3 hackathon platform where I led the development of our greenfield frontend platform from the ground up. I was responsible for everything—from initial architecture and design to UX and performance optimization. Leading a team of frontend engineers, I’ve built more in the last two years than I had in my entire programming career before this. I’ve done all this while navigating a high-growth environment filled with reviews, planning, and respectful collaboration, which elevated my own abilities.",{"type":18,"tag":19,"props":2562,"children":2563},{},[2564],{"type":23,"value":2565},"Hackathons have become a core part of my life. I’ve traveled globally to conferences where we hosted hackathons, supported developers in their 0-to-1 process, gathered sponsors, and even served as an MC for our events. Beyond hackathons, I represented Buildbox in various communities, helping bring valuable leads into our platform. This experience shaped my skills and my passion for the Web3 developer community.",{"type":18,"tag":51,"props":2567,"children":2569},{"id":2568},"gitcoin",[2570],{"type":18,"tag":70,"props":2571,"children":2574},{"href":2572,"rel":2573},"https://gitcoin.co/",[200],[2575],{"type":23,"value":2576},"Gitcoin",{"type":18,"tag":19,"props":2578,"children":2579},{},[2580,2584],{"type":18,"tag":66,"props":2581,"children":2582},{},[2583],{"type":23,"value":2553},{"type":23,"value":2585}," Lead Frontend / Designer (2023)",{"type":18,"tag":19,"props":2587,"children":2588},{},[2589],{"type":23,"value":2590},"My time at Gitcoin was very brief—shortly after I joined, I was told I’d be on a team building a hackathons platform that would compete directly with my own community. Despite this short stint, I’m proud of making it through their rigorous interview processes!",{"type":18,"tag":51,"props":2592,"children":2594},{"id":2593},"freelancer",[2595],{"type":23,"value":2596},"Freelancer",{"type":18,"tag":19,"props":2598,"children":2599},{},[2600,2604],{"type":18,"tag":66,"props":2601,"children":2602},{},[2603],{"type":23,"value":2553},{"type":23,"value":2605}," Web3 Freelancing (2020-2022)",{"type":18,"tag":19,"props":2607,"children":2608},{},[2609],{"type":23,"value":2610},"I began freelancing specifically for NFT projects and saw a lot of success during the NFT boom. Many people needed dApps designed and built, and I had both the frontend and design skills to make it happen. Around this time, I also forged relationships through hackathons in Buildbox’s early days. This experience deepened my love for Web3, regenerative finance (Regen), and hackathon communities.",{"type":18,"tag":51,"props":2612,"children":2614},{"id":2613},"photoshelter",[2615],{"type":18,"tag":70,"props":2616,"children":2619},{"href":2617,"rel":2618},"https://www.photoshelter.com/",[200],[2620],{"type":23,"value":2621},"PhotoShelter",{"type":18,"tag":19,"props":2623,"children":2624},{},[2625,2629],{"type":18,"tag":66,"props":2626,"children":2627},{},[2628],{"type":23,"value":2553},{"type":23,"value":2630}," Senior Frontend (2019-2020)",{"type":18,"tag":19,"props":2632,"children":2633},{},[2634],{"type":23,"value":2635},"PhotoShelter was a well-established Digital Asset Management platform serving multi-million-dollar organizations. As a senior frontend engineer, I merged various frontend libraries and approaches into a cohesive environment for our internal team. This role required careful incremental, stable upgrades to our architecture and significantly improved my ability to scale web apps without losing quality. My JavaScript skills grew dramatically as I learned to question assumptions and appreciate the custom logic behind everyday packages.",{"type":18,"tag":51,"props":2637,"children":2639},{"id":2638},"financial-cloud",[2640],{"type":18,"tag":70,"props":2641,"children":2644},{"href":2642,"rel":2643},"https://www.financial-cloud.com/",[200],[2645],{"type":23,"value":2646},"Financial Cloud",{"type":18,"tag":19,"props":2648,"children":2649},{},[2650,2654],{"type":18,"tag":66,"props":2651,"children":2652},{},[2653],{"type":23,"value":2553},{"type":23,"value":2655}," Frontend (2017-2019)",{"type":18,"tag":19,"props":2657,"children":2658},{},[2659],{"type":23,"value":2660},"My first role as a professional software engineer focused primarily on the frontend. However, working at a startup meant wearing many hats and contributing to internal apps across the stack. This experience prepared me for rapid iteration and adaptability.",{"type":18,"tag":51,"props":2662,"children":2664},{"id":2663},"this-blog",[2665],{"type":18,"tag":70,"props":2666,"children":2669},{"href":2667,"rel":2668},"https://jamesdawson.dev/",[200],[2670],{"type":23,"value":2671},"This blog",{"type":18,"tag":19,"props":2673,"children":2674},{},[2675,2679],{"type":18,"tag":66,"props":2676,"children":2677},{},[2678],{"type":23,"value":2553},{"type":23,"value":2680}," Developer / Content Writer (2024-Present)",{"type":18,"tag":19,"props":2682,"children":2683},{},[2684],{"type":23,"value":2685},"Build is my blog! I have recently decided I want to help people learn about all the amazing stuff happening on the web. I want to cover design, UX, web development, and crypto. I’m really excited to see where this journey takes me!",{"type":18,"tag":51,"props":2687,"children":2689},{"id":2688},"university-of-stirling",[2690],{"type":18,"tag":70,"props":2691,"children":2694},{"href":2692,"rel":2693},"https://www.stir.ac.uk/",[200],[2695],{"type":23,"value":2696},"University of Stirling",{"type":18,"tag":19,"props":2698,"children":2699},{},[2700,2705],{"type":18,"tag":66,"props":2701,"children":2702},{},[2703],{"type":23,"value":2704},"Degree:",{"type":23,"value":2706}," Software Engineering BEng (2012-2017)",{"type":18,"tag":19,"props":2708,"children":2709},{},[2710],{"type":23,"value":2711},"During my time at university, I learned the fundamentals of computer science—algorithms, programming principles, and a wide array of technologies. I always knew my passion lay in web development.",{"type":18,"tag":35,"props":2713,"children":2714},{},[],{"type":18,"tag":39,"props":2716,"children":2718},{"id":2717},"my-tech-stack",[2719],{"type":23,"value":2720},"My Tech Stack",{"type":18,"tag":19,"props":2722,"children":2723},{},[2724],{"type":18,"tag":66,"props":2725,"children":2726},{},[2727],{"type":23,"value":2728},"The tools I use every day:",{"type":18,"tag":489,"props":2730,"children":2731},{},[2732,2737,2742,2747,2752,2757,2762,2767,2772,2777,2782,2787,2792,2797,2802,2807,2812],{"type":18,"tag":62,"props":2733,"children":2734},{},[2735],{"type":23,"value":2736},"AWS",{"type":18,"tag":62,"props":2738,"children":2739},{},[2740],{"type":23,"value":2741},"TypeScript",{"type":18,"tag":62,"props":2743,"children":2744},{},[2745],{"type":23,"value":2746},"JavaScript",{"type":18,"tag":62,"props":2748,"children":2749},{},[2750],{"type":23,"value":2751},"React",{"type":18,"tag":62,"props":2753,"children":2754},{},[2755],{"type":23,"value":2756},"Next.js",{"type":18,"tag":62,"props":2758,"children":2759},{},[2760],{"type":23,"value":2761},"Vue.js",{"type":18,"tag":62,"props":2763,"children":2764},{},[2765],{"type":23,"value":2766},"Angular",{"type":18,"tag":62,"props":2768,"children":2769},{},[2770],{"type":23,"value":2771},"Node.js",{"type":18,"tag":62,"props":2773,"children":2774},{},[2775],{"type":23,"value":2776},"Svelte",{"type":18,"tag":62,"props":2778,"children":2779},{},[2780],{"type":23,"value":2781},"Svelte kit",{"type":18,"tag":62,"props":2783,"children":2784},{},[2785],{"type":23,"value":2786},"CSS",{"type":18,"tag":62,"props":2788,"children":2789},{},[2790],{"type":23,"value":2791},"Tailwind",{"type":18,"tag":62,"props":2793,"children":2794},{},[2795],{"type":23,"value":2796},"Figma",{"type":18,"tag":62,"props":2798,"children":2799},{},[2800],{"type":23,"value":2801},"Rust",{"type":18,"tag":62,"props":2803,"children":2804},{},[2805],{"type":23,"value":2806},"Unity",{"type":18,"tag":62,"props":2808,"children":2809},{},[2810],{"type":23,"value":2811},"Go",{"type":18,"tag":62,"props":2813,"children":2814},{},[2815],{"type":23,"value":2816},"C#",{"type":18,"tag":19,"props":2818,"children":2819},{},[2820,2822,2827,2829,2834],{"type":23,"value":2821},"I started programming ",{"type":18,"tag":66,"props":2823,"children":2824},{},[2825],{"type":23,"value":2826},"12 years ago",{"type":23,"value":2828},", and have been programming professionally for ",{"type":18,"tag":66,"props":2830,"children":2831},{},[2832],{"type":23,"value":2833},"7 years",{"type":23,"value":205},{"type":18,"tag":35,"props":2836,"children":2837},{},[],{"type":18,"tag":188,"props":2839,"children":2840},{},[2841],{"type":18,"tag":19,"props":2842,"children":2843},{},[2844],{"type":23,"value":2845},"I want to work with people who are curious about technology, passionate about what they do, open minded, willing to try new things and laugh along the way.",{"type":18,"tag":39,"props":2847,"children":2849},{"id":2848},"contact",[2850],{"type":23,"value":2851},"Contact",{"type":18,"tag":489,"props":2853,"children":2854},{},[2855,2871,2887],{"type":18,"tag":62,"props":2856,"children":2857},{},[2858,2863,2865],{"type":18,"tag":66,"props":2859,"children":2860},{},[2861],{"type":23,"value":2862},"Email:",{"type":23,"value":2864}," ",{"type":18,"tag":70,"props":2866,"children":2868},{"href":2867},"mailto:hello@jamesdawson.dev",[2869],{"type":23,"value":2870},"hello@jamesdawson.dev",{"type":18,"tag":62,"props":2872,"children":2873},{},[2874,2879,2880],{"type":18,"tag":66,"props":2875,"children":2876},{},[2877],{"type":23,"value":2878},"X (Twitter):",{"type":23,"value":2864},{"type":18,"tag":70,"props":2881,"children":2884},{"href":2882,"rel":2883},"https://twitter.com/jamesdawsonx",[200],[2885],{"type":23,"value":2886},"@jamesdawsonx",{"type":18,"tag":62,"props":2888,"children":2889},{},[2890,2895,2896],{"type":18,"tag":66,"props":2891,"children":2892},{},[2893],{"type":23,"value":2894},"Website:",{"type":23,"value":2864},{"type":18,"tag":70,"props":2897,"children":2900},{"href":2898,"rel":2899},"https://jamesdawson.dev",[200],[2901],{"type":23,"value":2902},"jamesdawson.dev",{"title":8,"searchDepth":169,"depth":169,"links":2904},[2905,2914,2915],{"id":2527,"depth":169,"text":2530,"children":2906},[2907,2908,2909,2910,2911,2912,2913],{"id":2538,"depth":174,"text":2538},{"id":2568,"depth":174,"text":2576},{"id":2593,"depth":174,"text":2596},{"id":2613,"depth":174,"text":2621},{"id":2638,"depth":174,"text":2646},{"id":2663,"depth":174,"text":2671},{"id":2688,"depth":174,"text":2696},{"id":2717,"depth":169,"text":2720},{"id":2848,"depth":169,"text":2851},"content:articles:my-cv.md","articles/my-cv.md","articles/my-cv",{"_path":2920,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":2921,"description":2922,"pubDate":2923,"date":2924,"heroImage":8,"component":2925,"body":2926,"_type":175,"_id":5826,"_source":177,"_file":5827,"_stem":5828,"_extension":180},"/articles/trailing-gradient-button","How to build a trailing gradient button","Step by step reverse design engineering a trailing conic gradient button","Aug 18 2024","2024-08-18","RaycastButton",{"type":15,"children":2927,"toc":5822},[2928,2942,2947,2953,2958,2967,2972,3069,3073,3078,3247,3251,3300,3306,3310,3333,3338,3388,4008,4012,4017,4058,4928,4932,4945,4950,5349,5809,5814,5818],{"type":18,"tag":19,"props":2929,"children":2930},{},[2931,2933,2940],{"type":23,"value":2932},"Ok, so I have been getting really inspired in recently by the ",{"type":18,"tag":70,"props":2934,"children":2937},{"href":2935,"rel":2936},"https://raycast.com",[200],[2938],{"type":23,"value":2939},"raycast landing page",{"type":23,"value":2941},". The whole site is really beautiful but there is one thing that I am really wanted to learn how to make this cool button effect.",{"type":18,"tag":19,"props":2943,"children":2944},{},[2945],{"type":23,"value":2946},"It took me a lot longer than I want to admit to get this to finally work and the process was super fascinating. Let's dive in!",{"type":18,"tag":39,"props":2948,"children":2950},{"id":2949},"conic-gradients",[2951],{"type":23,"value":2952},"Conic gradients",{"type":18,"tag":19,"props":2954,"children":2955},{},[2956],{"type":23,"value":2957},"This button has a lot of different moving parts but lets look at the most basic element. The conic gradient. What's a conic gradient?",{"type":18,"tag":19,"props":2959,"children":2960},{},[2961],{"type":18,"tag":480,"props":2962,"children":2964},{"className":2963},[],[2965],{"type":23,"value":2966},"The conic-gradient() CSS function creates an image consisting of a gradient with color transitions rotated around a center point (rather than radiating from the center). Example conic gradients include pie charts and color wheels.",{"type":18,"tag":19,"props":2968,"children":2969},{},[2970],{"type":23,"value":2971},"Let's look at a basic conic gradient.",{"type":18,"tag":561,"props":2973,"children":2977},{"className":2974,"code":2975,"language":2976,"meta":8,"style":8},"language-css shiki shiki-themes github-dark",".basic-conic-gradient {\n  background: conic-gradient(red, orange, yellow, green, blue);\n}\n","css",[2978],{"type":18,"tag":480,"props":2979,"children":2980},{"__ignoreMap":8},[2981,2994,3062],{"type":18,"tag":571,"props":2982,"children":2983},{"class":573,"line":574},[2984,2989],{"type":18,"tag":571,"props":2985,"children":2986},{"style":584},[2987],{"type":23,"value":2988},".basic-conic-gradient",{"type":18,"tag":571,"props":2990,"children":2991},{"style":590},[2992],{"type":23,"value":2993}," {\n",{"type":18,"tag":571,"props":2995,"children":2996},{"class":573,"line":169},[2997,3002,3007,3012,3016,3021,3026,3031,3035,3040,3044,3049,3053,3058],{"type":18,"tag":571,"props":2998,"children":2999},{"style":642},[3000],{"type":23,"value":3001},"  background",{"type":18,"tag":571,"props":3003,"children":3004},{"style":590},[3005],{"type":23,"value":3006},": ",{"type":18,"tag":571,"props":3008,"children":3009},{"style":642},[3010],{"type":23,"value":3011},"conic-gradient",{"type":18,"tag":571,"props":3013,"children":3014},{"style":590},[3015],{"type":23,"value":682},{"type":18,"tag":571,"props":3017,"children":3018},{"style":642},[3019],{"type":23,"value":3020},"red",{"type":18,"tag":571,"props":3022,"children":3023},{"style":590},[3024],{"type":23,"value":3025},", ",{"type":18,"tag":571,"props":3027,"children":3028},{"style":642},[3029],{"type":23,"value":3030},"orange",{"type":18,"tag":571,"props":3032,"children":3033},{"style":590},[3034],{"type":23,"value":3025},{"type":18,"tag":571,"props":3036,"children":3037},{"style":642},[3038],{"type":23,"value":3039},"yellow",{"type":18,"tag":571,"props":3041,"children":3042},{"style":590},[3043],{"type":23,"value":3025},{"type":18,"tag":571,"props":3045,"children":3046},{"style":642},[3047],{"type":23,"value":3048},"green",{"type":18,"tag":571,"props":3050,"children":3051},{"style":590},[3052],{"type":23,"value":3025},{"type":18,"tag":571,"props":3054,"children":3055},{"style":642},[3056],{"type":23,"value":3057},"blue",{"type":18,"tag":571,"props":3059,"children":3060},{"style":590},[3061],{"type":23,"value":792},{"type":18,"tag":571,"props":3063,"children":3064},{"class":573,"line":174},[3065],{"type":18,"tag":571,"props":3066,"children":3067},{"style":590},[3068],{"type":23,"value":1338},{"type":18,"tag":3070,"props":3071,"children":3072},"basic-conic-gradient",{},[],{"type":18,"tag":19,"props":3074,"children":3075},{},[3076],{"type":23,"value":3077},"Pretty! Now let's manipulate this conic to match the trailing effect of the button.",{"type":18,"tag":561,"props":3079,"children":3081},{"className":2974,"code":3080,"language":2976,"meta":8,"style":8},".basic-conic {\n  background: conic-gradient(\n      from -80deg at 30px 15px,\n      transparent 0,\n      #eca5a7 20%,\n      transparent 25%\n    ),\n    #452324;\n}\n",[3082],{"type":18,"tag":480,"props":3083,"children":3084},{"__ignoreMap":8},[3085,3097,3117,3164,3181,3203,3220,3228,3240],{"type":18,"tag":571,"props":3086,"children":3087},{"class":573,"line":574},[3088,3093],{"type":18,"tag":571,"props":3089,"children":3090},{"style":584},[3091],{"type":23,"value":3092},".basic-conic",{"type":18,"tag":571,"props":3094,"children":3095},{"style":590},[3096],{"type":23,"value":2993},{"type":18,"tag":571,"props":3098,"children":3099},{"class":573,"line":169},[3100,3104,3108,3112],{"type":18,"tag":571,"props":3101,"children":3102},{"style":642},[3103],{"type":23,"value":3001},{"type":18,"tag":571,"props":3105,"children":3106},{"style":590},[3107],{"type":23,"value":3006},{"type":18,"tag":571,"props":3109,"children":3110},{"style":642},[3111],{"type":23,"value":3011},{"type":18,"tag":571,"props":3113,"children":3114},{"style":590},[3115],{"type":23,"value":3116},"(\n",{"type":18,"tag":571,"props":3118,"children":3119},{"class":573,"line":174},[3120,3125,3130,3135,3140,3145,3150,3155,3159],{"type":18,"tag":571,"props":3121,"children":3122},{"style":578},[3123],{"type":23,"value":3124},"      from",{"type":18,"tag":571,"props":3126,"children":3127},{"style":642},[3128],{"type":23,"value":3129}," -80",{"type":18,"tag":571,"props":3131,"children":3132},{"style":578},[3133],{"type":23,"value":3134},"deg",{"type":18,"tag":571,"props":3136,"children":3137},{"style":578},[3138],{"type":23,"value":3139}," at",{"type":18,"tag":571,"props":3141,"children":3142},{"style":642},[3143],{"type":23,"value":3144}," 30",{"type":18,"tag":571,"props":3146,"children":3147},{"style":578},[3148],{"type":23,"value":3149},"px",{"type":18,"tag":571,"props":3151,"children":3152},{"style":642},[3153],{"type":23,"value":3154}," 15",{"type":18,"tag":571,"props":3156,"children":3157},{"style":578},[3158],{"type":23,"value":3149},{"type":18,"tag":571,"props":3160,"children":3161},{"style":590},[3162],{"type":23,"value":3163},",\n",{"type":18,"tag":571,"props":3165,"children":3166},{"class":573,"line":714},[3167,3172,3177],{"type":18,"tag":571,"props":3168,"children":3169},{"style":642},[3170],{"type":23,"value":3171},"      transparent",{"type":18,"tag":571,"props":3173,"children":3174},{"style":642},[3175],{"type":23,"value":3176}," 0",{"type":18,"tag":571,"props":3178,"children":3179},{"style":590},[3180],{"type":23,"value":3163},{"type":18,"tag":571,"props":3182,"children":3183},{"class":573,"line":761},[3184,3189,3194,3199],{"type":18,"tag":571,"props":3185,"children":3186},{"style":642},[3187],{"type":23,"value":3188},"      #eca5a7",{"type":18,"tag":571,"props":3190,"children":3191},{"style":642},[3192],{"type":23,"value":3193}," 20",{"type":18,"tag":571,"props":3195,"children":3196},{"style":578},[3197],{"type":23,"value":3198},"%",{"type":18,"tag":571,"props":3200,"children":3201},{"style":590},[3202],{"type":23,"value":3163},{"type":18,"tag":571,"props":3204,"children":3205},{"class":573,"line":795},[3206,3210,3215],{"type":18,"tag":571,"props":3207,"children":3208},{"style":642},[3209],{"type":23,"value":3171},{"type":18,"tag":571,"props":3211,"children":3212},{"style":642},[3213],{"type":23,"value":3214}," 25",{"type":18,"tag":571,"props":3216,"children":3217},{"style":578},[3218],{"type":23,"value":3219},"%\n",{"type":18,"tag":571,"props":3221,"children":3222},{"class":573,"line":804},[3223],{"type":18,"tag":571,"props":3224,"children":3225},{"style":590},[3226],{"type":23,"value":3227},"    ),\n",{"type":18,"tag":571,"props":3229,"children":3230},{"class":573,"line":812},[3231,3236],{"type":18,"tag":571,"props":3232,"children":3233},{"style":642},[3234],{"type":23,"value":3235},"    #452324",{"type":18,"tag":571,"props":3237,"children":3238},{"style":590},[3239],{"type":23,"value":650},{"type":18,"tag":571,"props":3241,"children":3242},{"class":573,"line":835},[3243],{"type":18,"tag":571,"props":3244,"children":3245},{"style":590},[3246],{"type":23,"value":1338},{"type":18,"tag":3248,"props":3249,"children":3250},"raycast-conic-static",{},[],{"type":18,"tag":19,"props":3252,"children":3253},{},[3254,3256,3262,3264,3270,3272,3278,3280,3286,3287,3292,3294],{"type":23,"value":3255},"What we have here is a conic that has been rotated ",{"type":18,"tag":480,"props":3257,"children":3259},{"className":3258},[],[3260],{"type":23,"value":3261},"-80deg",{"type":23,"value":3263}," (Which is why the gradient is pointing to the top left corner and not straight up). It is positioned at ",{"type":18,"tag":480,"props":3265,"children":3267},{"className":3266},[],[3268],{"type":23,"value":3269},"x: 30px y:15px",{"type":23,"value":3271},", this is why it is moved in slightly from the top left corner as well. The rest of the code is implementing the actual conic gradient so it goes from ",{"type":18,"tag":480,"props":3273,"children":3275},{"className":3274},[],[3276],{"type":23,"value":3277},"transparent",{"type":23,"value":3279}," to ",{"type":18,"tag":480,"props":3281,"children":3283},{"className":3282},[],[3284],{"type":23,"value":3285},"#eca5a7",{"type":23,"value":3279},{"type":18,"tag":480,"props":3288,"children":3290},{"className":3289},[],[3291],{"type":23,"value":3277},{"type":23,"value":3293}," again at each stop and finally ",{"type":18,"tag":480,"props":3295,"children":3297},{"className":3296},[],[3298],{"type":23,"value":3299},"#452324",{"type":18,"tag":39,"props":3301,"children":3303},{"id":3302},"the-animation-breakdown",[3304],{"type":23,"value":3305},"The animation breakdown",{"type":18,"tag":3307,"props":3308,"children":3309},"raycast-conic-start",{},[],{"type":18,"tag":19,"props":3311,"children":3312},{},[3313,3315,3322,3324,3331],{"type":23,"value":3314},"Now we can get into the fun stuff, the animation. We need to get this gradient to move all the way round the button. There are too options for this, you can animate it in javascript or you can alter the properties of the conic itself. The implementation that I did uses pure css, though it is using the ",{"type":18,"tag":70,"props":3316,"children":3319},{"href":3317,"rel":3318},"https://developer.mozilla.org/en-US/docs/Web/CSS/@property",[200],[3320],{"type":23,"value":3321},"@property",{"type":23,"value":3323}," which is a css at-rule from the ",{"type":18,"tag":70,"props":3325,"children":3328},{"href":3326,"rel":3327},"https://developer.mozilla.org/en-US/docs/Web/API/Houdini_APIs",[200],[3329],{"type":23,"value":3330},"Houdini API ",{"type":23,"value":3332}," and is not available on all legacy browsers, so check it out before you add it to production.",{"type":18,"tag":19,"props":3334,"children":3335},{},[3336],{"type":23,"value":3337},"Let's get the gradient moving back and forward first and then we can worry about the rotation after that. Check out the following example.",{"type":18,"tag":561,"props":3339,"children":3343},{"className":3340,"code":3341,"language":3342,"meta":8,"style":8},"language-html shiki shiki-themes github-dark","\u003Cdiv class=\"basic-conic animate\">\u003C/div>\n","html",[3344],{"type":18,"tag":480,"props":3345,"children":3346},{"__ignoreMap":8},[3347],{"type":18,"tag":571,"props":3348,"children":3349},{"class":573,"line":574},[3350,3354,3360,3365,3369,3374,3379,3383],{"type":18,"tag":571,"props":3351,"children":3352},{"style":590},[3353],{"type":23,"value":593},{"type":18,"tag":571,"props":3355,"children":3357},{"style":3356},"--shiki-default:#85E89D",[3358],{"type":23,"value":3359},"div",{"type":18,"tag":571,"props":3361,"children":3362},{"style":584},[3363],{"type":23,"value":3364}," class",{"type":18,"tag":571,"props":3366,"children":3367},{"style":590},[3368],{"type":23,"value":608},{"type":18,"tag":571,"props":3370,"children":3371},{"style":784},[3372],{"type":23,"value":3373},"\"basic-conic animate\"",{"type":18,"tag":571,"props":3375,"children":3376},{"style":590},[3377],{"type":23,"value":3378},">\u003C/",{"type":18,"tag":571,"props":3380,"children":3381},{"style":3356},[3382],{"type":23,"value":3359},{"type":18,"tag":571,"props":3384,"children":3385},{"style":590},[3386],{"type":23,"value":3387},">\n",{"type":18,"tag":561,"props":3389,"children":3391},{"className":2974,"code":3390,"language":2976,"meta":8,"style":8},"@property --position {\n  syntax: \"\u003Clength>\";\n  initial-value: 0;\n  inherits: false;\n}\n\n.basic-conic {\n  width: 243px;\n  height: 33px;\n  border-radius: 10000px;\n  background: conic-gradient(\n      from -80deg at var(--position) 15px,\n      transparent 0,\n      #eca5a7 20%,\n      transparent 25%\n    ),\n    #452324;\n}\n\n.animate {\n  animation: moveAnimation -0.64s linear 3s infinite;\n}\n\n@keyframes moveAnimation {\n  0% {\n    --position: 20px;\n  }\n  32.8228% {\n    --position: 243px;\n  }\n  50% {\n    --position: 243px;\n  }\n  82.8228% {\n    --position: 20px;\n  }\n  100% {\n    --position: 20px;\n  }\n}\n",[3392],{"type":18,"tag":480,"props":3393,"children":3394},{"__ignoreMap":8},[3395,3407,3424,3437,3445,3452,3459,3470,3495,3520,3545,3564,3614,3629,3648,3663,3670,3681,3688,3695,3707,3753,3760,3767,3784,3796,3821,3829,3841,3864,3871,3883,3906,3913,3925,3948,3955,3968,3992,4000],{"type":18,"tag":571,"props":3396,"children":3397},{"class":573,"line":574},[3398,3402],{"type":18,"tag":571,"props":3399,"children":3400},{"style":578},[3401],{"type":23,"value":3321},{"type":18,"tag":571,"props":3403,"children":3404},{"style":590},[3405],{"type":23,"value":3406}," --position {\n",{"type":18,"tag":571,"props":3408,"children":3409},{"class":573,"line":169},[3410,3415,3419],{"type":18,"tag":571,"props":3411,"children":3412},{"style":590},[3413],{"type":23,"value":3414},"  syntax: \"\u003Clength",{"type":18,"tag":571,"props":3416,"children":3417},{"style":578},[3418],{"type":23,"value":1241},{"type":18,"tag":571,"props":3420,"children":3421},{"style":590},[3422],{"type":23,"value":3423},"\";\n",{"type":18,"tag":571,"props":3425,"children":3426},{"class":573,"line":174},[3427,3432],{"type":18,"tag":571,"props":3428,"children":3429},{"style":3356},[3430],{"type":23,"value":3431},"  initial-value",{"type":18,"tag":571,"props":3433,"children":3434},{"style":590},[3435],{"type":23,"value":3436},": 0;\n",{"type":18,"tag":571,"props":3438,"children":3439},{"class":573,"line":714},[3440],{"type":18,"tag":571,"props":3441,"children":3442},{"style":590},[3443],{"type":23,"value":3444},"  inherits: false;\n",{"type":18,"tag":571,"props":3446,"children":3447},{"class":573,"line":761},[3448],{"type":18,"tag":571,"props":3449,"children":3450},{"style":590},[3451],{"type":23,"value":1338},{"type":18,"tag":571,"props":3453,"children":3454},{"class":573,"line":795},[3455],{"type":18,"tag":571,"props":3456,"children":3457},{"emptyLinePlaceholder":656},[3458],{"type":23,"value":659},{"type":18,"tag":571,"props":3460,"children":3461},{"class":573,"line":804},[3462,3466],{"type":18,"tag":571,"props":3463,"children":3464},{"style":584},[3465],{"type":23,"value":3092},{"type":18,"tag":571,"props":3467,"children":3468},{"style":590},[3469],{"type":23,"value":2993},{"type":18,"tag":571,"props":3471,"children":3472},{"class":573,"line":812},[3473,3478,3482,3487,3491],{"type":18,"tag":571,"props":3474,"children":3475},{"style":642},[3476],{"type":23,"value":3477},"  width",{"type":18,"tag":571,"props":3479,"children":3480},{"style":590},[3481],{"type":23,"value":3006},{"type":18,"tag":571,"props":3483,"children":3484},{"style":642},[3485],{"type":23,"value":3486},"243",{"type":18,"tag":571,"props":3488,"children":3489},{"style":578},[3490],{"type":23,"value":3149},{"type":18,"tag":571,"props":3492,"children":3493},{"style":590},[3494],{"type":23,"value":650},{"type":18,"tag":571,"props":3496,"children":3497},{"class":573,"line":835},[3498,3503,3507,3512,3516],{"type":18,"tag":571,"props":3499,"children":3500},{"style":642},[3501],{"type":23,"value":3502},"  height",{"type":18,"tag":571,"props":3504,"children":3505},{"style":590},[3506],{"type":23,"value":3006},{"type":18,"tag":571,"props":3508,"children":3509},{"style":642},[3510],{"type":23,"value":3511},"33",{"type":18,"tag":571,"props":3513,"children":3514},{"style":578},[3515],{"type":23,"value":3149},{"type":18,"tag":571,"props":3517,"children":3518},{"style":590},[3519],{"type":23,"value":650},{"type":18,"tag":571,"props":3521,"children":3522},{"class":573,"line":880},[3523,3528,3532,3537,3541],{"type":18,"tag":571,"props":3524,"children":3525},{"style":642},[3526],{"type":23,"value":3527},"  border-radius",{"type":18,"tag":571,"props":3529,"children":3530},{"style":590},[3531],{"type":23,"value":3006},{"type":18,"tag":571,"props":3533,"children":3534},{"style":642},[3535],{"type":23,"value":3536},"10000",{"type":18,"tag":571,"props":3538,"children":3539},{"style":578},[3540],{"type":23,"value":3149},{"type":18,"tag":571,"props":3542,"children":3543},{"style":590},[3544],{"type":23,"value":650},{"type":18,"tag":571,"props":3546,"children":3547},{"class":573,"line":888},[3548,3552,3556,3560],{"type":18,"tag":571,"props":3549,"children":3550},{"style":642},[3551],{"type":23,"value":3001},{"type":18,"tag":571,"props":3553,"children":3554},{"style":590},[3555],{"type":23,"value":3006},{"type":18,"tag":571,"props":3557,"children":3558},{"style":642},[3559],{"type":23,"value":3011},{"type":18,"tag":571,"props":3561,"children":3562},{"style":590},[3563],{"type":23,"value":3116},{"type":18,"tag":571,"props":3565,"children":3566},{"class":573,"line":898},[3567,3571,3575,3579,3583,3588,3592,3597,3601,3606,3610],{"type":18,"tag":571,"props":3568,"children":3569},{"style":578},[3570],{"type":23,"value":3124},{"type":18,"tag":571,"props":3572,"children":3573},{"style":642},[3574],{"type":23,"value":3129},{"type":18,"tag":571,"props":3576,"children":3577},{"style":578},[3578],{"type":23,"value":3134},{"type":18,"tag":571,"props":3580,"children":3581},{"style":578},[3582],{"type":23,"value":3139},{"type":18,"tag":571,"props":3584,"children":3585},{"style":642},[3586],{"type":23,"value":3587}," var",{"type":18,"tag":571,"props":3589,"children":3590},{"style":590},[3591],{"type":23,"value":682},{"type":18,"tag":571,"props":3593,"children":3594},{"style":616},[3595],{"type":23,"value":3596},"--position",{"type":18,"tag":571,"props":3598,"children":3599},{"style":590},[3600],{"type":23,"value":1544},{"type":18,"tag":571,"props":3602,"children":3603},{"style":642},[3604],{"type":23,"value":3605},"15",{"type":18,"tag":571,"props":3607,"children":3608},{"style":578},[3609],{"type":23,"value":3149},{"type":18,"tag":571,"props":3611,"children":3612},{"style":590},[3613],{"type":23,"value":3163},{"type":18,"tag":571,"props":3615,"children":3616},{"class":573,"line":917},[3617,3621,3625],{"type":18,"tag":571,"props":3618,"children":3619},{"style":642},[3620],{"type":23,"value":3171},{"type":18,"tag":571,"props":3622,"children":3623},{"style":642},[3624],{"type":23,"value":3176},{"type":18,"tag":571,"props":3626,"children":3627},{"style":590},[3628],{"type":23,"value":3163},{"type":18,"tag":571,"props":3630,"children":3631},{"class":573,"line":931},[3632,3636,3640,3644],{"type":18,"tag":571,"props":3633,"children":3634},{"style":642},[3635],{"type":23,"value":3188},{"type":18,"tag":571,"props":3637,"children":3638},{"style":642},[3639],{"type":23,"value":3193},{"type":18,"tag":571,"props":3641,"children":3642},{"style":578},[3643],{"type":23,"value":3198},{"type":18,"tag":571,"props":3645,"children":3646},{"style":590},[3647],{"type":23,"value":3163},{"type":18,"tag":571,"props":3649,"children":3650},{"class":573,"line":939},[3651,3655,3659],{"type":18,"tag":571,"props":3652,"children":3653},{"style":642},[3654],{"type":23,"value":3171},{"type":18,"tag":571,"props":3656,"children":3657},{"style":642},[3658],{"type":23,"value":3214},{"type":18,"tag":571,"props":3660,"children":3661},{"style":578},[3662],{"type":23,"value":3219},{"type":18,"tag":571,"props":3664,"children":3665},{"class":573,"line":947},[3666],{"type":18,"tag":571,"props":3667,"children":3668},{"style":590},[3669],{"type":23,"value":3227},{"type":18,"tag":571,"props":3671,"children":3672},{"class":573,"line":956},[3673,3677],{"type":18,"tag":571,"props":3674,"children":3675},{"style":642},[3676],{"type":23,"value":3235},{"type":18,"tag":571,"props":3678,"children":3679},{"style":590},[3680],{"type":23,"value":650},{"type":18,"tag":571,"props":3682,"children":3683},{"class":573,"line":991},[3684],{"type":18,"tag":571,"props":3685,"children":3686},{"style":590},[3687],{"type":23,"value":1338},{"type":18,"tag":571,"props":3689,"children":3690},{"class":573,"line":1015},[3691],{"type":18,"tag":571,"props":3692,"children":3693},{"emptyLinePlaceholder":656},[3694],{"type":23,"value":659},{"type":18,"tag":571,"props":3696,"children":3697},{"class":573,"line":1033},[3698,3703],{"type":18,"tag":571,"props":3699,"children":3700},{"style":584},[3701],{"type":23,"value":3702},".animate",{"type":18,"tag":571,"props":3704,"children":3705},{"style":590},[3706],{"type":23,"value":2993},{"type":18,"tag":571,"props":3708,"children":3709},{"class":573,"line":1075},[3710,3715,3720,3725,3730,3735,3740,3744,3749],{"type":18,"tag":571,"props":3711,"children":3712},{"style":642},[3713],{"type":23,"value":3714},"  animation",{"type":18,"tag":571,"props":3716,"children":3717},{"style":590},[3718],{"type":23,"value":3719},": moveAnimation ",{"type":18,"tag":571,"props":3721,"children":3722},{"style":642},[3723],{"type":23,"value":3724},"-0.64",{"type":18,"tag":571,"props":3726,"children":3727},{"style":578},[3728],{"type":23,"value":3729},"s",{"type":18,"tag":571,"props":3731,"children":3732},{"style":642},[3733],{"type":23,"value":3734}," linear",{"type":18,"tag":571,"props":3736,"children":3737},{"style":642},[3738],{"type":23,"value":3739}," 3",{"type":18,"tag":571,"props":3741,"children":3742},{"style":578},[3743],{"type":23,"value":3729},{"type":18,"tag":571,"props":3745,"children":3746},{"style":642},[3747],{"type":23,"value":3748}," infinite",{"type":18,"tag":571,"props":3750,"children":3751},{"style":590},[3752],{"type":23,"value":650},{"type":18,"tag":571,"props":3754,"children":3755},{"class":573,"line":1084},[3756],{"type":18,"tag":571,"props":3757,"children":3758},{"style":590},[3759],{"type":23,"value":1338},{"type":18,"tag":571,"props":3761,"children":3762},{"class":573,"line":1092},[3763],{"type":18,"tag":571,"props":3764,"children":3765},{"emptyLinePlaceholder":656},[3766],{"type":23,"value":659},{"type":18,"tag":571,"props":3768,"children":3769},{"class":573,"line":1100},[3770,3775,3780],{"type":18,"tag":571,"props":3771,"children":3772},{"style":578},[3773],{"type":23,"value":3774},"@keyframes",{"type":18,"tag":571,"props":3776,"children":3777},{"style":616},[3778],{"type":23,"value":3779}," moveAnimation",{"type":18,"tag":571,"props":3781,"children":3782},{"style":590},[3783],{"type":23,"value":2993},{"type":18,"tag":571,"props":3785,"children":3786},{"class":573,"line":1109},[3787,3792],{"type":18,"tag":571,"props":3788,"children":3789},{"style":584},[3790],{"type":23,"value":3791},"  0%",{"type":18,"tag":571,"props":3793,"children":3794},{"style":590},[3795],{"type":23,"value":2993},{"type":18,"tag":571,"props":3797,"children":3798},{"class":573,"line":1151},[3799,3804,3808,3813,3817],{"type":18,"tag":571,"props":3800,"children":3801},{"style":616},[3802],{"type":23,"value":3803},"    --position",{"type":18,"tag":571,"props":3805,"children":3806},{"style":590},[3807],{"type":23,"value":3006},{"type":18,"tag":571,"props":3809,"children":3810},{"style":642},[3811],{"type":23,"value":3812},"20",{"type":18,"tag":571,"props":3814,"children":3815},{"style":578},[3816],{"type":23,"value":3149},{"type":18,"tag":571,"props":3818,"children":3819},{"style":590},[3820],{"type":23,"value":650},{"type":18,"tag":571,"props":3822,"children":3823},{"class":573,"line":1170},[3824],{"type":18,"tag":571,"props":3825,"children":3826},{"style":590},[3827],{"type":23,"value":3828},"  }\n",{"type":18,"tag":571,"props":3830,"children":3831},{"class":573,"line":1192},[3832,3837],{"type":18,"tag":571,"props":3833,"children":3834},{"style":584},[3835],{"type":23,"value":3836},"  32.8228%",{"type":18,"tag":571,"props":3838,"children":3839},{"style":590},[3840],{"type":23,"value":2993},{"type":18,"tag":571,"props":3842,"children":3843},{"class":573,"line":1225},[3844,3848,3852,3856,3860],{"type":18,"tag":571,"props":3845,"children":3846},{"style":616},[3847],{"type":23,"value":3803},{"type":18,"tag":571,"props":3849,"children":3850},{"style":590},[3851],{"type":23,"value":3006},{"type":18,"tag":571,"props":3853,"children":3854},{"style":642},[3855],{"type":23,"value":3486},{"type":18,"tag":571,"props":3857,"children":3858},{"style":578},[3859],{"type":23,"value":3149},{"type":18,"tag":571,"props":3861,"children":3862},{"style":590},[3863],{"type":23,"value":650},{"type":18,"tag":571,"props":3865,"children":3866},{"class":573,"line":1257},[3867],{"type":18,"tag":571,"props":3868,"children":3869},{"style":590},[3870],{"type":23,"value":3828},{"type":18,"tag":571,"props":3872,"children":3873},{"class":573,"line":1284},[3874,3879],{"type":18,"tag":571,"props":3875,"children":3876},{"style":584},[3877],{"type":23,"value":3878},"  50%",{"type":18,"tag":571,"props":3880,"children":3881},{"style":590},[3882],{"type":23,"value":2993},{"type":18,"tag":571,"props":3884,"children":3885},{"class":573,"line":1293},[3886,3890,3894,3898,3902],{"type":18,"tag":571,"props":3887,"children":3888},{"style":616},[3889],{"type":23,"value":3803},{"type":18,"tag":571,"props":3891,"children":3892},{"style":590},[3893],{"type":23,"value":3006},{"type":18,"tag":571,"props":3895,"children":3896},{"style":642},[3897],{"type":23,"value":3486},{"type":18,"tag":571,"props":3899,"children":3900},{"style":578},[3901],{"type":23,"value":3149},{"type":18,"tag":571,"props":3903,"children":3904},{"style":590},[3905],{"type":23,"value":650},{"type":18,"tag":571,"props":3907,"children":3908},{"class":573,"line":1302},[3909],{"type":18,"tag":571,"props":3910,"children":3911},{"style":590},[3912],{"type":23,"value":3828},{"type":18,"tag":571,"props":3914,"children":3915},{"class":573,"line":1310},[3916,3921],{"type":18,"tag":571,"props":3917,"children":3918},{"style":584},[3919],{"type":23,"value":3920},"  82.8228%",{"type":18,"tag":571,"props":3922,"children":3923},{"style":590},[3924],{"type":23,"value":2993},{"type":18,"tag":571,"props":3926,"children":3927},{"class":573,"line":1318},[3928,3932,3936,3940,3944],{"type":18,"tag":571,"props":3929,"children":3930},{"style":616},[3931],{"type":23,"value":3803},{"type":18,"tag":571,"props":3933,"children":3934},{"style":590},[3935],{"type":23,"value":3006},{"type":18,"tag":571,"props":3937,"children":3938},{"style":642},[3939],{"type":23,"value":3812},{"type":18,"tag":571,"props":3941,"children":3942},{"style":578},[3943],{"type":23,"value":3149},{"type":18,"tag":571,"props":3945,"children":3946},{"style":590},[3947],{"type":23,"value":650},{"type":18,"tag":571,"props":3949,"children":3950},{"class":573,"line":1332},[3951],{"type":18,"tag":571,"props":3952,"children":3953},{"style":590},[3954],{"type":23,"value":3828},{"type":18,"tag":571,"props":3956,"children":3958},{"class":573,"line":3957},37,[3959,3964],{"type":18,"tag":571,"props":3960,"children":3961},{"style":584},[3962],{"type":23,"value":3963},"  100%",{"type":18,"tag":571,"props":3965,"children":3966},{"style":590},[3967],{"type":23,"value":2993},{"type":18,"tag":571,"props":3969,"children":3971},{"class":573,"line":3970},38,[3972,3976,3980,3984,3988],{"type":18,"tag":571,"props":3973,"children":3974},{"style":616},[3975],{"type":23,"value":3803},{"type":18,"tag":571,"props":3977,"children":3978},{"style":590},[3979],{"type":23,"value":3006},{"type":18,"tag":571,"props":3981,"children":3982},{"style":642},[3983],{"type":23,"value":3812},{"type":18,"tag":571,"props":3985,"children":3986},{"style":578},[3987],{"type":23,"value":3149},{"type":18,"tag":571,"props":3989,"children":3990},{"style":590},[3991],{"type":23,"value":650},{"type":18,"tag":571,"props":3993,"children":3995},{"class":573,"line":3994},39,[3996],{"type":18,"tag":571,"props":3997,"children":3998},{"style":590},[3999],{"type":23,"value":3828},{"type":18,"tag":571,"props":4001,"children":4003},{"class":573,"line":4002},40,[4004],{"type":18,"tag":571,"props":4005,"children":4006},{"style":590},[4007],{"type":23,"value":1338},{"type":18,"tag":4009,"props":4010,"children":4011},"raycast-conic-moving-position",{},[],{"type":18,"tag":19,"props":4013,"children":4014},{},[4015],{"type":23,"value":4016},"Are you starting to see it? The animation moves the the gradient from one edge to the other, it then pauses, and moves back. The pause will allow us to execute the rotation before the gradient moves back to the start of the button. Check out the rotation code below.",{"type":18,"tag":561,"props":4018,"children":4019},{"className":3340,"code":3341,"language":3342,"meta":8,"style":8},[4020],{"type":18,"tag":480,"props":4021,"children":4022},{"__ignoreMap":8},[4023],{"type":18,"tag":571,"props":4024,"children":4025},{"class":573,"line":574},[4026,4030,4034,4038,4042,4046,4050,4054],{"type":18,"tag":571,"props":4027,"children":4028},{"style":590},[4029],{"type":23,"value":593},{"type":18,"tag":571,"props":4031,"children":4032},{"style":3356},[4033],{"type":23,"value":3359},{"type":18,"tag":571,"props":4035,"children":4036},{"style":584},[4037],{"type":23,"value":3364},{"type":18,"tag":571,"props":4039,"children":4040},{"style":590},[4041],{"type":23,"value":608},{"type":18,"tag":571,"props":4043,"children":4044},{"style":784},[4045],{"type":23,"value":3373},{"type":18,"tag":571,"props":4047,"children":4048},{"style":590},[4049],{"type":23,"value":3378},{"type":18,"tag":571,"props":4051,"children":4052},{"style":3356},[4053],{"type":23,"value":3359},{"type":18,"tag":571,"props":4055,"children":4056},{"style":590},[4057],{"type":23,"value":3387},{"type":18,"tag":561,"props":4059,"children":4061},{"className":2974,"code":4060,"language":2976,"meta":8,"style":8},"@property --position {\n  syntax: \"\u003Clength>\";\n  initial-value: 0;\n  inherits: false;\n}\n\n.basic-conic {\n  width: 320px;\n  height: 80px;\n  background: conic-gradient(\n      from -80deg at at var(--position) 15px,\n      transparent 0,\n      #eca5a7 20%,\n      transparent 25%\n    ),\n    #452324;\n}\n\n.animate {\n  animation:\n    moveAnimation -0.64s linear 3s infinite,\n    rotateAnimation -0.64s linear 3s infinite;\n}\n\n@keyframes rotateAnimation {\n  0% {\n    --rotation: 0deg;\n  }\n  32.8228% {\n    --rotation: 0deg;\n  }\n  50% {\n    --rotation: 180deg;\n  }\n  82.8228% {\n    --rotation: 180deg;\n  }\n  100% {\n    --rotation: 360deg;\n  }\n}\n\n@keyframes moveAnimation {\n  0% {\n    --position: 20px;\n  }\n  32.8228% {\n    --position: 230px;\n  }\n  50% {\n    --position: 230px;\n  }\n  82.8228% {\n    --position: 20px;\n  }\n  100% {\n    --position: 20px;\n  }\n}\n",[4062],{"type":18,"tag":480,"props":4063,"children":4064},{"__ignoreMap":8},[4065,4076,4091,4102,4109,4116,4123,4134,4158,4182,4201,4252,4267,4286,4301,4308,4319,4326,4333,4344,4356,4392,4428,4435,4442,4458,4469,4494,4501,4512,4535,4542,4553,4577,4584,4595,4618,4625,4636,4660,4667,4675,4683,4699,4711,4735,4743,4755,4780,4788,4800,4824,4832,4844,4868,4876,4888,4912,4920],{"type":18,"tag":571,"props":4066,"children":4067},{"class":573,"line":574},[4068,4072],{"type":18,"tag":571,"props":4069,"children":4070},{"style":578},[4071],{"type":23,"value":3321},{"type":18,"tag":571,"props":4073,"children":4074},{"style":590},[4075],{"type":23,"value":3406},{"type":18,"tag":571,"props":4077,"children":4078},{"class":573,"line":169},[4079,4083,4087],{"type":18,"tag":571,"props":4080,"children":4081},{"style":590},[4082],{"type":23,"value":3414},{"type":18,"tag":571,"props":4084,"children":4085},{"style":578},[4086],{"type":23,"value":1241},{"type":18,"tag":571,"props":4088,"children":4089},{"style":590},[4090],{"type":23,"value":3423},{"type":18,"tag":571,"props":4092,"children":4093},{"class":573,"line":174},[4094,4098],{"type":18,"tag":571,"props":4095,"children":4096},{"style":3356},[4097],{"type":23,"value":3431},{"type":18,"tag":571,"props":4099,"children":4100},{"style":590},[4101],{"type":23,"value":3436},{"type":18,"tag":571,"props":4103,"children":4104},{"class":573,"line":714},[4105],{"type":18,"tag":571,"props":4106,"children":4107},{"style":590},[4108],{"type":23,"value":3444},{"type":18,"tag":571,"props":4110,"children":4111},{"class":573,"line":761},[4112],{"type":18,"tag":571,"props":4113,"children":4114},{"style":590},[4115],{"type":23,"value":1338},{"type":18,"tag":571,"props":4117,"children":4118},{"class":573,"line":795},[4119],{"type":18,"tag":571,"props":4120,"children":4121},{"emptyLinePlaceholder":656},[4122],{"type":23,"value":659},{"type":18,"tag":571,"props":4124,"children":4125},{"class":573,"line":804},[4126,4130],{"type":18,"tag":571,"props":4127,"children":4128},{"style":584},[4129],{"type":23,"value":3092},{"type":18,"tag":571,"props":4131,"children":4132},{"style":590},[4133],{"type":23,"value":2993},{"type":18,"tag":571,"props":4135,"children":4136},{"class":573,"line":812},[4137,4141,4145,4150,4154],{"type":18,"tag":571,"props":4138,"children":4139},{"style":642},[4140],{"type":23,"value":3477},{"type":18,"tag":571,"props":4142,"children":4143},{"style":590},[4144],{"type":23,"value":3006},{"type":18,"tag":571,"props":4146,"children":4147},{"style":642},[4148],{"type":23,"value":4149},"320",{"type":18,"tag":571,"props":4151,"children":4152},{"style":578},[4153],{"type":23,"value":3149},{"type":18,"tag":571,"props":4155,"children":4156},{"style":590},[4157],{"type":23,"value":650},{"type":18,"tag":571,"props":4159,"children":4160},{"class":573,"line":835},[4161,4165,4169,4174,4178],{"type":18,"tag":571,"props":4162,"children":4163},{"style":642},[4164],{"type":23,"value":3502},{"type":18,"tag":571,"props":4166,"children":4167},{"style":590},[4168],{"type":23,"value":3006},{"type":18,"tag":571,"props":4170,"children":4171},{"style":642},[4172],{"type":23,"value":4173},"80",{"type":18,"tag":571,"props":4175,"children":4176},{"style":578},[4177],{"type":23,"value":3149},{"type":18,"tag":571,"props":4179,"children":4180},{"style":590},[4181],{"type":23,"value":650},{"type":18,"tag":571,"props":4183,"children":4184},{"class":573,"line":880},[4185,4189,4193,4197],{"type":18,"tag":571,"props":4186,"children":4187},{"style":642},[4188],{"type":23,"value":3001},{"type":18,"tag":571,"props":4190,"children":4191},{"style":590},[4192],{"type":23,"value":3006},{"type":18,"tag":571,"props":4194,"children":4195},{"style":642},[4196],{"type":23,"value":3011},{"type":18,"tag":571,"props":4198,"children":4199},{"style":590},[4200],{"type":23,"value":3116},{"type":18,"tag":571,"props":4202,"children":4203},{"class":573,"line":888},[4204,4208,4212,4216,4220,4224,4228,4232,4236,4240,4244,4248],{"type":18,"tag":571,"props":4205,"children":4206},{"style":578},[4207],{"type":23,"value":3124},{"type":18,"tag":571,"props":4209,"children":4210},{"style":642},[4211],{"type":23,"value":3129},{"type":18,"tag":571,"props":4213,"children":4214},{"style":578},[4215],{"type":23,"value":3134},{"type":18,"tag":571,"props":4217,"children":4218},{"style":578},[4219],{"type":23,"value":3139},{"type":18,"tag":571,"props":4221,"children":4222},{"style":578},[4223],{"type":23,"value":3139},{"type":18,"tag":571,"props":4225,"children":4226},{"style":642},[4227],{"type":23,"value":3587},{"type":18,"tag":571,"props":4229,"children":4230},{"style":590},[4231],{"type":23,"value":682},{"type":18,"tag":571,"props":4233,"children":4234},{"style":616},[4235],{"type":23,"value":3596},{"type":18,"tag":571,"props":4237,"children":4238},{"style":590},[4239],{"type":23,"value":1544},{"type":18,"tag":571,"props":4241,"children":4242},{"style":642},[4243],{"type":23,"value":3605},{"type":18,"tag":571,"props":4245,"children":4246},{"style":578},[4247],{"type":23,"value":3149},{"type":18,"tag":571,"props":4249,"children":4250},{"style":590},[4251],{"type":23,"value":3163},{"type":18,"tag":571,"props":4253,"children":4254},{"class":573,"line":898},[4255,4259,4263],{"type":18,"tag":571,"props":4256,"children":4257},{"style":642},[4258],{"type":23,"value":3171},{"type":18,"tag":571,"props":4260,"children":4261},{"style":642},[4262],{"type":23,"value":3176},{"type":18,"tag":571,"props":4264,"children":4265},{"style":590},[4266],{"type":23,"value":3163},{"type":18,"tag":571,"props":4268,"children":4269},{"class":573,"line":917},[4270,4274,4278,4282],{"type":18,"tag":571,"props":4271,"children":4272},{"style":642},[4273],{"type":23,"value":3188},{"type":18,"tag":571,"props":4275,"children":4276},{"style":642},[4277],{"type":23,"value":3193},{"type":18,"tag":571,"props":4279,"children":4280},{"style":578},[4281],{"type":23,"value":3198},{"type":18,"tag":571,"props":4283,"children":4284},{"style":590},[4285],{"type":23,"value":3163},{"type":18,"tag":571,"props":4287,"children":4288},{"class":573,"line":931},[4289,4293,4297],{"type":18,"tag":571,"props":4290,"children":4291},{"style":642},[4292],{"type":23,"value":3171},{"type":18,"tag":571,"props":4294,"children":4295},{"style":642},[4296],{"type":23,"value":3214},{"type":18,"tag":571,"props":4298,"children":4299},{"style":578},[4300],{"type":23,"value":3219},{"type":18,"tag":571,"props":4302,"children":4303},{"class":573,"line":939},[4304],{"type":18,"tag":571,"props":4305,"children":4306},{"style":590},[4307],{"type":23,"value":3227},{"type":18,"tag":571,"props":4309,"children":4310},{"class":573,"line":947},[4311,4315],{"type":18,"tag":571,"props":4312,"children":4313},{"style":642},[4314],{"type":23,"value":3235},{"type":18,"tag":571,"props":4316,"children":4317},{"style":590},[4318],{"type":23,"value":650},{"type":18,"tag":571,"props":4320,"children":4321},{"class":573,"line":956},[4322],{"type":18,"tag":571,"props":4323,"children":4324},{"style":590},[4325],{"type":23,"value":1338},{"type":18,"tag":571,"props":4327,"children":4328},{"class":573,"line":991},[4329],{"type":18,"tag":571,"props":4330,"children":4331},{"emptyLinePlaceholder":656},[4332],{"type":23,"value":659},{"type":18,"tag":571,"props":4334,"children":4335},{"class":573,"line":1015},[4336,4340],{"type":18,"tag":571,"props":4337,"children":4338},{"style":584},[4339],{"type":23,"value":3702},{"type":18,"tag":571,"props":4341,"children":4342},{"style":590},[4343],{"type":23,"value":2993},{"type":18,"tag":571,"props":4345,"children":4346},{"class":573,"line":1033},[4347,4351],{"type":18,"tag":571,"props":4348,"children":4349},{"style":642},[4350],{"type":23,"value":3714},{"type":18,"tag":571,"props":4352,"children":4353},{"style":590},[4354],{"type":23,"value":4355},":\n",{"type":18,"tag":571,"props":4357,"children":4358},{"class":573,"line":1075},[4359,4364,4368,4372,4376,4380,4384,4388],{"type":18,"tag":571,"props":4360,"children":4361},{"style":590},[4362],{"type":23,"value":4363},"    moveAnimation ",{"type":18,"tag":571,"props":4365,"children":4366},{"style":642},[4367],{"type":23,"value":3724},{"type":18,"tag":571,"props":4369,"children":4370},{"style":578},[4371],{"type":23,"value":3729},{"type":18,"tag":571,"props":4373,"children":4374},{"style":642},[4375],{"type":23,"value":3734},{"type":18,"tag":571,"props":4377,"children":4378},{"style":642},[4379],{"type":23,"value":3739},{"type":18,"tag":571,"props":4381,"children":4382},{"style":578},[4383],{"type":23,"value":3729},{"type":18,"tag":571,"props":4385,"children":4386},{"style":642},[4387],{"type":23,"value":3748},{"type":18,"tag":571,"props":4389,"children":4390},{"style":590},[4391],{"type":23,"value":3163},{"type":18,"tag":571,"props":4393,"children":4394},{"class":573,"line":1084},[4395,4400,4404,4408,4412,4416,4420,4424],{"type":18,"tag":571,"props":4396,"children":4397},{"style":590},[4398],{"type":23,"value":4399},"    rotateAnimation ",{"type":18,"tag":571,"props":4401,"children":4402},{"style":642},[4403],{"type":23,"value":3724},{"type":18,"tag":571,"props":4405,"children":4406},{"style":578},[4407],{"type":23,"value":3729},{"type":18,"tag":571,"props":4409,"children":4410},{"style":642},[4411],{"type":23,"value":3734},{"type":18,"tag":571,"props":4413,"children":4414},{"style":642},[4415],{"type":23,"value":3739},{"type":18,"tag":571,"props":4417,"children":4418},{"style":578},[4419],{"type":23,"value":3729},{"type":18,"tag":571,"props":4421,"children":4422},{"style":642},[4423],{"type":23,"value":3748},{"type":18,"tag":571,"props":4425,"children":4426},{"style":590},[4427],{"type":23,"value":650},{"type":18,"tag":571,"props":4429,"children":4430},{"class":573,"line":1092},[4431],{"type":18,"tag":571,"props":4432,"children":4433},{"style":590},[4434],{"type":23,"value":1338},{"type":18,"tag":571,"props":4436,"children":4437},{"class":573,"line":1100},[4438],{"type":18,"tag":571,"props":4439,"children":4440},{"emptyLinePlaceholder":656},[4441],{"type":23,"value":659},{"type":18,"tag":571,"props":4443,"children":4444},{"class":573,"line":1109},[4445,4449,4454],{"type":18,"tag":571,"props":4446,"children":4447},{"style":578},[4448],{"type":23,"value":3774},{"type":18,"tag":571,"props":4450,"children":4451},{"style":616},[4452],{"type":23,"value":4453}," rotateAnimation",{"type":18,"tag":571,"props":4455,"children":4456},{"style":590},[4457],{"type":23,"value":2993},{"type":18,"tag":571,"props":4459,"children":4460},{"class":573,"line":1151},[4461,4465],{"type":18,"tag":571,"props":4462,"children":4463},{"style":584},[4464],{"type":23,"value":3791},{"type":18,"tag":571,"props":4466,"children":4467},{"style":590},[4468],{"type":23,"value":2993},{"type":18,"tag":571,"props":4470,"children":4471},{"class":573,"line":1170},[4472,4477,4481,4486,4490],{"type":18,"tag":571,"props":4473,"children":4474},{"style":616},[4475],{"type":23,"value":4476},"    --rotation",{"type":18,"tag":571,"props":4478,"children":4479},{"style":590},[4480],{"type":23,"value":3006},{"type":18,"tag":571,"props":4482,"children":4483},{"style":642},[4484],{"type":23,"value":4485},"0",{"type":18,"tag":571,"props":4487,"children":4488},{"style":578},[4489],{"type":23,"value":3134},{"type":18,"tag":571,"props":4491,"children":4492},{"style":590},[4493],{"type":23,"value":650},{"type":18,"tag":571,"props":4495,"children":4496},{"class":573,"line":1192},[4497],{"type":18,"tag":571,"props":4498,"children":4499},{"style":590},[4500],{"type":23,"value":3828},{"type":18,"tag":571,"props":4502,"children":4503},{"class":573,"line":1225},[4504,4508],{"type":18,"tag":571,"props":4505,"children":4506},{"style":584},[4507],{"type":23,"value":3836},{"type":18,"tag":571,"props":4509,"children":4510},{"style":590},[4511],{"type":23,"value":2993},{"type":18,"tag":571,"props":4513,"children":4514},{"class":573,"line":1257},[4515,4519,4523,4527,4531],{"type":18,"tag":571,"props":4516,"children":4517},{"style":616},[4518],{"type":23,"value":4476},{"type":18,"tag":571,"props":4520,"children":4521},{"style":590},[4522],{"type":23,"value":3006},{"type":18,"tag":571,"props":4524,"children":4525},{"style":642},[4526],{"type":23,"value":4485},{"type":18,"tag":571,"props":4528,"children":4529},{"style":578},[4530],{"type":23,"value":3134},{"type":18,"tag":571,"props":4532,"children":4533},{"style":590},[4534],{"type":23,"value":650},{"type":18,"tag":571,"props":4536,"children":4537},{"class":573,"line":1284},[4538],{"type":18,"tag":571,"props":4539,"children":4540},{"style":590},[4541],{"type":23,"value":3828},{"type":18,"tag":571,"props":4543,"children":4544},{"class":573,"line":1293},[4545,4549],{"type":18,"tag":571,"props":4546,"children":4547},{"style":584},[4548],{"type":23,"value":3878},{"type":18,"tag":571,"props":4550,"children":4551},{"style":590},[4552],{"type":23,"value":2993},{"type":18,"tag":571,"props":4554,"children":4555},{"class":573,"line":1302},[4556,4560,4564,4569,4573],{"type":18,"tag":571,"props":4557,"children":4558},{"style":616},[4559],{"type":23,"value":4476},{"type":18,"tag":571,"props":4561,"children":4562},{"style":590},[4563],{"type":23,"value":3006},{"type":18,"tag":571,"props":4565,"children":4566},{"style":642},[4567],{"type":23,"value":4568},"180",{"type":18,"tag":571,"props":4570,"children":4571},{"style":578},[4572],{"type":23,"value":3134},{"type":18,"tag":571,"props":4574,"children":4575},{"style":590},[4576],{"type":23,"value":650},{"type":18,"tag":571,"props":4578,"children":4579},{"class":573,"line":1310},[4580],{"type":18,"tag":571,"props":4581,"children":4582},{"style":590},[4583],{"type":23,"value":3828},{"type":18,"tag":571,"props":4585,"children":4586},{"class":573,"line":1318},[4587,4591],{"type":18,"tag":571,"props":4588,"children":4589},{"style":584},[4590],{"type":23,"value":3920},{"type":18,"tag":571,"props":4592,"children":4593},{"style":590},[4594],{"type":23,"value":2993},{"type":18,"tag":571,"props":4596,"children":4597},{"class":573,"line":1332},[4598,4602,4606,4610,4614],{"type":18,"tag":571,"props":4599,"children":4600},{"style":616},[4601],{"type":23,"value":4476},{"type":18,"tag":571,"props":4603,"children":4604},{"style":590},[4605],{"type":23,"value":3006},{"type":18,"tag":571,"props":4607,"children":4608},{"style":642},[4609],{"type":23,"value":4568},{"type":18,"tag":571,"props":4611,"children":4612},{"style":578},[4613],{"type":23,"value":3134},{"type":18,"tag":571,"props":4615,"children":4616},{"style":590},[4617],{"type":23,"value":650},{"type":18,"tag":571,"props":4619,"children":4620},{"class":573,"line":3957},[4621],{"type":18,"tag":571,"props":4622,"children":4623},{"style":590},[4624],{"type":23,"value":3828},{"type":18,"tag":571,"props":4626,"children":4627},{"class":573,"line":3970},[4628,4632],{"type":18,"tag":571,"props":4629,"children":4630},{"style":584},[4631],{"type":23,"value":3963},{"type":18,"tag":571,"props":4633,"children":4634},{"style":590},[4635],{"type":23,"value":2993},{"type":18,"tag":571,"props":4637,"children":4638},{"class":573,"line":3994},[4639,4643,4647,4652,4656],{"type":18,"tag":571,"props":4640,"children":4641},{"style":616},[4642],{"type":23,"value":4476},{"type":18,"tag":571,"props":4644,"children":4645},{"style":590},[4646],{"type":23,"value":3006},{"type":18,"tag":571,"props":4648,"children":4649},{"style":642},[4650],{"type":23,"value":4651},"360",{"type":18,"tag":571,"props":4653,"children":4654},{"style":578},[4655],{"type":23,"value":3134},{"type":18,"tag":571,"props":4657,"children":4658},{"style":590},[4659],{"type":23,"value":650},{"type":18,"tag":571,"props":4661,"children":4662},{"class":573,"line":4002},[4663],{"type":18,"tag":571,"props":4664,"children":4665},{"style":590},[4666],{"type":23,"value":3828},{"type":18,"tag":571,"props":4668,"children":4670},{"class":573,"line":4669},41,[4671],{"type":18,"tag":571,"props":4672,"children":4673},{"style":590},[4674],{"type":23,"value":1338},{"type":18,"tag":571,"props":4676,"children":4678},{"class":573,"line":4677},42,[4679],{"type":18,"tag":571,"props":4680,"children":4681},{"emptyLinePlaceholder":656},[4682],{"type":23,"value":659},{"type":18,"tag":571,"props":4684,"children":4686},{"class":573,"line":4685},43,[4687,4691,4695],{"type":18,"tag":571,"props":4688,"children":4689},{"style":578},[4690],{"type":23,"value":3774},{"type":18,"tag":571,"props":4692,"children":4693},{"style":616},[4694],{"type":23,"value":3779},{"type":18,"tag":571,"props":4696,"children":4697},{"style":590},[4698],{"type":23,"value":2993},{"type":18,"tag":571,"props":4700,"children":4702},{"class":573,"line":4701},44,[4703,4707],{"type":18,"tag":571,"props":4704,"children":4705},{"style":584},[4706],{"type":23,"value":3791},{"type":18,"tag":571,"props":4708,"children":4709},{"style":590},[4710],{"type":23,"value":2993},{"type":18,"tag":571,"props":4712,"children":4714},{"class":573,"line":4713},45,[4715,4719,4723,4727,4731],{"type":18,"tag":571,"props":4716,"children":4717},{"style":616},[4718],{"type":23,"value":3803},{"type":18,"tag":571,"props":4720,"children":4721},{"style":590},[4722],{"type":23,"value":3006},{"type":18,"tag":571,"props":4724,"children":4725},{"style":642},[4726],{"type":23,"value":3812},{"type":18,"tag":571,"props":4728,"children":4729},{"style":578},[4730],{"type":23,"value":3149},{"type":18,"tag":571,"props":4732,"children":4733},{"style":590},[4734],{"type":23,"value":650},{"type":18,"tag":571,"props":4736,"children":4738},{"class":573,"line":4737},46,[4739],{"type":18,"tag":571,"props":4740,"children":4741},{"style":590},[4742],{"type":23,"value":3828},{"type":18,"tag":571,"props":4744,"children":4746},{"class":573,"line":4745},47,[4747,4751],{"type":18,"tag":571,"props":4748,"children":4749},{"style":584},[4750],{"type":23,"value":3836},{"type":18,"tag":571,"props":4752,"children":4753},{"style":590},[4754],{"type":23,"value":2993},{"type":18,"tag":571,"props":4756,"children":4758},{"class":573,"line":4757},48,[4759,4763,4767,4772,4776],{"type":18,"tag":571,"props":4760,"children":4761},{"style":616},[4762],{"type":23,"value":3803},{"type":18,"tag":571,"props":4764,"children":4765},{"style":590},[4766],{"type":23,"value":3006},{"type":18,"tag":571,"props":4768,"children":4769},{"style":642},[4770],{"type":23,"value":4771},"230",{"type":18,"tag":571,"props":4773,"children":4774},{"style":578},[4775],{"type":23,"value":3149},{"type":18,"tag":571,"props":4777,"children":4778},{"style":590},[4779],{"type":23,"value":650},{"type":18,"tag":571,"props":4781,"children":4783},{"class":573,"line":4782},49,[4784],{"type":18,"tag":571,"props":4785,"children":4786},{"style":590},[4787],{"type":23,"value":3828},{"type":18,"tag":571,"props":4789,"children":4791},{"class":573,"line":4790},50,[4792,4796],{"type":18,"tag":571,"props":4793,"children":4794},{"style":584},[4795],{"type":23,"value":3878},{"type":18,"tag":571,"props":4797,"children":4798},{"style":590},[4799],{"type":23,"value":2993},{"type":18,"tag":571,"props":4801,"children":4803},{"class":573,"line":4802},51,[4804,4808,4812,4816,4820],{"type":18,"tag":571,"props":4805,"children":4806},{"style":616},[4807],{"type":23,"value":3803},{"type":18,"tag":571,"props":4809,"children":4810},{"style":590},[4811],{"type":23,"value":3006},{"type":18,"tag":571,"props":4813,"children":4814},{"style":642},[4815],{"type":23,"value":4771},{"type":18,"tag":571,"props":4817,"children":4818},{"style":578},[4819],{"type":23,"value":3149},{"type":18,"tag":571,"props":4821,"children":4822},{"style":590},[4823],{"type":23,"value":650},{"type":18,"tag":571,"props":4825,"children":4827},{"class":573,"line":4826},52,[4828],{"type":18,"tag":571,"props":4829,"children":4830},{"style":590},[4831],{"type":23,"value":3828},{"type":18,"tag":571,"props":4833,"children":4835},{"class":573,"line":4834},53,[4836,4840],{"type":18,"tag":571,"props":4837,"children":4838},{"style":584},[4839],{"type":23,"value":3920},{"type":18,"tag":571,"props":4841,"children":4842},{"style":590},[4843],{"type":23,"value":2993},{"type":18,"tag":571,"props":4845,"children":4847},{"class":573,"line":4846},54,[4848,4852,4856,4860,4864],{"type":18,"tag":571,"props":4849,"children":4850},{"style":616},[4851],{"type":23,"value":3803},{"type":18,"tag":571,"props":4853,"children":4854},{"style":590},[4855],{"type":23,"value":3006},{"type":18,"tag":571,"props":4857,"children":4858},{"style":642},[4859],{"type":23,"value":3812},{"type":18,"tag":571,"props":4861,"children":4862},{"style":578},[4863],{"type":23,"value":3149},{"type":18,"tag":571,"props":4865,"children":4866},{"style":590},[4867],{"type":23,"value":650},{"type":18,"tag":571,"props":4869,"children":4871},{"class":573,"line":4870},55,[4872],{"type":18,"tag":571,"props":4873,"children":4874},{"style":590},[4875],{"type":23,"value":3828},{"type":18,"tag":571,"props":4877,"children":4879},{"class":573,"line":4878},56,[4880,4884],{"type":18,"tag":571,"props":4881,"children":4882},{"style":584},[4883],{"type":23,"value":3963},{"type":18,"tag":571,"props":4885,"children":4886},{"style":590},[4887],{"type":23,"value":2993},{"type":18,"tag":571,"props":4889,"children":4891},{"class":573,"line":4890},57,[4892,4896,4900,4904,4908],{"type":18,"tag":571,"props":4893,"children":4894},{"style":616},[4895],{"type":23,"value":3803},{"type":18,"tag":571,"props":4897,"children":4898},{"style":590},[4899],{"type":23,"value":3006},{"type":18,"tag":571,"props":4901,"children":4902},{"style":642},[4903],{"type":23,"value":3812},{"type":18,"tag":571,"props":4905,"children":4906},{"style":578},[4907],{"type":23,"value":3149},{"type":18,"tag":571,"props":4909,"children":4910},{"style":590},[4911],{"type":23,"value":650},{"type":18,"tag":571,"props":4913,"children":4915},{"class":573,"line":4914},58,[4916],{"type":18,"tag":571,"props":4917,"children":4918},{"style":590},[4919],{"type":23,"value":3828},{"type":18,"tag":571,"props":4921,"children":4923},{"class":573,"line":4922},59,[4924],{"type":18,"tag":571,"props":4925,"children":4926},{"style":590},[4927],{"type":23,"value":1338},{"type":18,"tag":4929,"props":4930,"children":4931},"raycast-conic-moving-and-rotating",{},[],{"type":18,"tag":19,"props":4933,"children":4934},{},[4935,4937,4943],{"type":23,"value":4936},"It is starting to really come together! As you can see there are now two ",{"type":18,"tag":480,"props":4938,"children":4940},{"className":4939},[],[4941],{"type":23,"value":4942},"keyframes",{"type":23,"value":4944}," executing this and the timing is very precise. Once the move animation reaches the end, the rotate animation executes, and round and round it goes.",{"type":18,"tag":19,"props":4946,"children":4947},{},[4948],{"type":23,"value":4949},"Now all we need to do is add the masking layer with our actual button ontop. We will also add a cool glowing effect and we should have the final component!",{"type":18,"tag":561,"props":4951,"children":4953},{"className":3340,"code":4952,"language":3342,"meta":8,"style":8},"\u003Ca\n  class=\"announcement-link no-underline\"\n  rel=\"external\"\n  href=\"/blog/more-ai-models\"\n>\n  \u003Cspan class=\"no-underline !font-white\">Pretty cool?\u003C/span>\n  \u003Cspan class=\"muted flex no-underline\"\n    >Click me and see\n    \u003Csvg\n      xmlns=\"http://www.w3.org/2000/svg\"\n      fill=\"none\"\n      viewBox=\"0 0 16 16\"\n      class=\"w-4\"\n    >\n      \u003Cpath\n        stroke=\"currentColor\"\n        stroke-linecap=\"round\"\n        stroke-linejoin=\"round\"\n        stroke-width=\"1.5\"\n        d=\"M9.75 4.75 13.25 8m0 0-3.5 3.25M13.25 8H2.75\"\n      >\u003C/path>\n    \u003C/svg>\n  \u003C/span>\n\u003C/a>\n",[4954],{"type":18,"tag":480,"props":4955,"children":4956},{"__ignoreMap":8},[4957,4969,4986,5003,5020,5027,5065,5089,5097,5110,5127,5144,5161,5178,5186,5199,5216,5233,5249,5266,5283,5300,5317,5333],{"type":18,"tag":571,"props":4958,"children":4959},{"class":573,"line":574},[4960,4964],{"type":18,"tag":571,"props":4961,"children":4962},{"style":590},[4963],{"type":23,"value":593},{"type":18,"tag":571,"props":4965,"children":4966},{"style":3356},[4967],{"type":23,"value":4968},"a\n",{"type":18,"tag":571,"props":4970,"children":4971},{"class":573,"line":169},[4972,4977,4981],{"type":18,"tag":571,"props":4973,"children":4974},{"style":584},[4975],{"type":23,"value":4976},"  class",{"type":18,"tag":571,"props":4978,"children":4979},{"style":590},[4980],{"type":23,"value":608},{"type":18,"tag":571,"props":4982,"children":4983},{"style":784},[4984],{"type":23,"value":4985},"\"announcement-link no-underline\"\n",{"type":18,"tag":571,"props":4987,"children":4988},{"class":573,"line":174},[4989,4994,4998],{"type":18,"tag":571,"props":4990,"children":4991},{"style":584},[4992],{"type":23,"value":4993},"  rel",{"type":18,"tag":571,"props":4995,"children":4996},{"style":590},[4997],{"type":23,"value":608},{"type":18,"tag":571,"props":4999,"children":5000},{"style":784},[5001],{"type":23,"value":5002},"\"external\"\n",{"type":18,"tag":571,"props":5004,"children":5005},{"class":573,"line":714},[5006,5011,5015],{"type":18,"tag":571,"props":5007,"children":5008},{"style":584},[5009],{"type":23,"value":5010},"  href",{"type":18,"tag":571,"props":5012,"children":5013},{"style":590},[5014],{"type":23,"value":608},{"type":18,"tag":571,"props":5016,"children":5017},{"style":784},[5018],{"type":23,"value":5019},"\"/blog/more-ai-models\"\n",{"type":18,"tag":571,"props":5021,"children":5022},{"class":573,"line":761},[5023],{"type":18,"tag":571,"props":5024,"children":5025},{"style":590},[5026],{"type":23,"value":3387},{"type":18,"tag":571,"props":5028,"children":5029},{"class":573,"line":795},[5030,5035,5039,5043,5047,5052,5057,5061],{"type":18,"tag":571,"props":5031,"children":5032},{"style":590},[5033],{"type":23,"value":5034},"  \u003C",{"type":18,"tag":571,"props":5036,"children":5037},{"style":3356},[5038],{"type":23,"value":571},{"type":18,"tag":571,"props":5040,"children":5041},{"style":584},[5042],{"type":23,"value":3364},{"type":18,"tag":571,"props":5044,"children":5045},{"style":590},[5046],{"type":23,"value":608},{"type":18,"tag":571,"props":5048,"children":5049},{"style":784},[5050],{"type":23,"value":5051},"\"no-underline !font-white\"",{"type":18,"tag":571,"props":5053,"children":5054},{"style":590},[5055],{"type":23,"value":5056},">Pretty cool?\u003C/",{"type":18,"tag":571,"props":5058,"children":5059},{"style":3356},[5060],{"type":23,"value":571},{"type":18,"tag":571,"props":5062,"children":5063},{"style":590},[5064],{"type":23,"value":3387},{"type":18,"tag":571,"props":5066,"children":5067},{"class":573,"line":804},[5068,5072,5076,5080,5084],{"type":18,"tag":571,"props":5069,"children":5070},{"style":590},[5071],{"type":23,"value":5034},{"type":18,"tag":571,"props":5073,"children":5074},{"style":3356},[5075],{"type":23,"value":571},{"type":18,"tag":571,"props":5077,"children":5078},{"style":584},[5079],{"type":23,"value":3364},{"type":18,"tag":571,"props":5081,"children":5082},{"style":590},[5083],{"type":23,"value":608},{"type":18,"tag":571,"props":5085,"children":5086},{"style":784},[5087],{"type":23,"value":5088},"\"muted flex no-underline\"\n",{"type":18,"tag":571,"props":5090,"children":5091},{"class":573,"line":812},[5092],{"type":18,"tag":571,"props":5093,"children":5094},{"style":590},[5095],{"type":23,"value":5096},"    >Click me and see\n",{"type":18,"tag":571,"props":5098,"children":5099},{"class":573,"line":835},[5100,5105],{"type":18,"tag":571,"props":5101,"children":5102},{"style":590},[5103],{"type":23,"value":5104},"    \u003C",{"type":18,"tag":571,"props":5106,"children":5107},{"style":3356},[5108],{"type":23,"value":5109},"svg\n",{"type":18,"tag":571,"props":5111,"children":5112},{"class":573,"line":880},[5113,5118,5122],{"type":18,"tag":571,"props":5114,"children":5115},{"style":584},[5116],{"type":23,"value":5117},"      xmlns",{"type":18,"tag":571,"props":5119,"children":5120},{"style":590},[5121],{"type":23,"value":608},{"type":18,"tag":571,"props":5123,"children":5124},{"style":784},[5125],{"type":23,"value":5126},"\"http://www.w3.org/2000/svg\"\n",{"type":18,"tag":571,"props":5128,"children":5129},{"class":573,"line":888},[5130,5135,5139],{"type":18,"tag":571,"props":5131,"children":5132},{"style":584},[5133],{"type":23,"value":5134},"      fill",{"type":18,"tag":571,"props":5136,"children":5137},{"style":590},[5138],{"type":23,"value":608},{"type":18,"tag":571,"props":5140,"children":5141},{"style":784},[5142],{"type":23,"value":5143},"\"none\"\n",{"type":18,"tag":571,"props":5145,"children":5146},{"class":573,"line":898},[5147,5152,5156],{"type":18,"tag":571,"props":5148,"children":5149},{"style":584},[5150],{"type":23,"value":5151},"      viewBox",{"type":18,"tag":571,"props":5153,"children":5154},{"style":590},[5155],{"type":23,"value":608},{"type":18,"tag":571,"props":5157,"children":5158},{"style":784},[5159],{"type":23,"value":5160},"\"0 0 16 16\"\n",{"type":18,"tag":571,"props":5162,"children":5163},{"class":573,"line":917},[5164,5169,5173],{"type":18,"tag":571,"props":5165,"children":5166},{"style":584},[5167],{"type":23,"value":5168},"      class",{"type":18,"tag":571,"props":5170,"children":5171},{"style":590},[5172],{"type":23,"value":608},{"type":18,"tag":571,"props":5174,"children":5175},{"style":784},[5176],{"type":23,"value":5177},"\"w-4\"\n",{"type":18,"tag":571,"props":5179,"children":5180},{"class":573,"line":931},[5181],{"type":18,"tag":571,"props":5182,"children":5183},{"style":590},[5184],{"type":23,"value":5185},"    >\n",{"type":18,"tag":571,"props":5187,"children":5188},{"class":573,"line":939},[5189,5194],{"type":18,"tag":571,"props":5190,"children":5191},{"style":590},[5192],{"type":23,"value":5193},"      \u003C",{"type":18,"tag":571,"props":5195,"children":5196},{"style":3356},[5197],{"type":23,"value":5198},"path\n",{"type":18,"tag":571,"props":5200,"children":5201},{"class":573,"line":947},[5202,5207,5211],{"type":18,"tag":571,"props":5203,"children":5204},{"style":584},[5205],{"type":23,"value":5206},"        stroke",{"type":18,"tag":571,"props":5208,"children":5209},{"style":590},[5210],{"type":23,"value":608},{"type":18,"tag":571,"props":5212,"children":5213},{"style":784},[5214],{"type":23,"value":5215},"\"currentColor\"\n",{"type":18,"tag":571,"props":5217,"children":5218},{"class":573,"line":956},[5219,5224,5228],{"type":18,"tag":571,"props":5220,"children":5221},{"style":584},[5222],{"type":23,"value":5223},"        stroke-linecap",{"type":18,"tag":571,"props":5225,"children":5226},{"style":590},[5227],{"type":23,"value":608},{"type":18,"tag":571,"props":5229,"children":5230},{"style":784},[5231],{"type":23,"value":5232},"\"round\"\n",{"type":18,"tag":571,"props":5234,"children":5235},{"class":573,"line":991},[5236,5241,5245],{"type":18,"tag":571,"props":5237,"children":5238},{"style":584},[5239],{"type":23,"value":5240},"        stroke-linejoin",{"type":18,"tag":571,"props":5242,"children":5243},{"style":590},[5244],{"type":23,"value":608},{"type":18,"tag":571,"props":5246,"children":5247},{"style":784},[5248],{"type":23,"value":5232},{"type":18,"tag":571,"props":5250,"children":5251},{"class":573,"line":1015},[5252,5257,5261],{"type":18,"tag":571,"props":5253,"children":5254},{"style":584},[5255],{"type":23,"value":5256},"        stroke-width",{"type":18,"tag":571,"props":5258,"children":5259},{"style":590},[5260],{"type":23,"value":608},{"type":18,"tag":571,"props":5262,"children":5263},{"style":784},[5264],{"type":23,"value":5265},"\"1.5\"\n",{"type":18,"tag":571,"props":5267,"children":5268},{"class":573,"line":1033},[5269,5274,5278],{"type":18,"tag":571,"props":5270,"children":5271},{"style":584},[5272],{"type":23,"value":5273},"        d",{"type":18,"tag":571,"props":5275,"children":5276},{"style":590},[5277],{"type":23,"value":608},{"type":18,"tag":571,"props":5279,"children":5280},{"style":784},[5281],{"type":23,"value":5282},"\"M9.75 4.75 13.25 8m0 0-3.5 3.25M13.25 8H2.75\"\n",{"type":18,"tag":571,"props":5284,"children":5285},{"class":573,"line":1075},[5286,5291,5296],{"type":18,"tag":571,"props":5287,"children":5288},{"style":590},[5289],{"type":23,"value":5290},"      >\u003C/",{"type":18,"tag":571,"props":5292,"children":5293},{"style":3356},[5294],{"type":23,"value":5295},"path",{"type":18,"tag":571,"props":5297,"children":5298},{"style":590},[5299],{"type":23,"value":3387},{"type":18,"tag":571,"props":5301,"children":5302},{"class":573,"line":1084},[5303,5308,5313],{"type":18,"tag":571,"props":5304,"children":5305},{"style":590},[5306],{"type":23,"value":5307},"    \u003C/",{"type":18,"tag":571,"props":5309,"children":5310},{"style":3356},[5311],{"type":23,"value":5312},"svg",{"type":18,"tag":571,"props":5314,"children":5315},{"style":590},[5316],{"type":23,"value":3387},{"type":18,"tag":571,"props":5318,"children":5319},{"class":573,"line":1092},[5320,5325,5329],{"type":18,"tag":571,"props":5321,"children":5322},{"style":590},[5323],{"type":23,"value":5324},"  \u003C/",{"type":18,"tag":571,"props":5326,"children":5327},{"style":3356},[5328],{"type":23,"value":571},{"type":18,"tag":571,"props":5330,"children":5331},{"style":590},[5332],{"type":23,"value":3387},{"type":18,"tag":571,"props":5334,"children":5335},{"class":573,"line":1100},[5336,5341,5345],{"type":18,"tag":571,"props":5337,"children":5338},{"style":590},[5339],{"type":23,"value":5340},"\u003C/",{"type":18,"tag":571,"props":5342,"children":5343},{"style":3356},[5344],{"type":23,"value":70},{"type":18,"tag":571,"props":5346,"children":5347},{"style":590},[5348],{"type":23,"value":3387},{"type":18,"tag":561,"props":5350,"children":5352},{"className":2974,"code":5351,"language":2976,"meta":8,"style":8},".announcement:hover {\n  background-color: #833637;\n  box-shadow: 0 0 20px 3px rgba(245, 49, 108, 0.25);\n}\n.announcement-link {\n  display: flex;\n  flex-wrap: nowrap;\n  gap: 13px;\n  align-items: center;\n  height: 30px;\n  padding: 4px 12px;\n  font-size: 14px;\n  font-weight: 500;\n  letter-spacing: 0.2px;\n  background: #130d0e;\n  border-radius: 1000px;\n}\n.announcement > svg {\n  width: 10px;\n}\n",[5353],{"type":18,"tag":480,"props":5354,"children":5355},{"__ignoreMap":8},[5356,5368,5389,5470,5477,5489,5510,5531,5556,5577,5601,5634,5659,5680,5705,5725,5749,5756,5778,5802],{"type":18,"tag":571,"props":5357,"children":5358},{"class":573,"line":574},[5359,5364],{"type":18,"tag":571,"props":5360,"children":5361},{"style":584},[5362],{"type":23,"value":5363},".announcement:hover",{"type":18,"tag":571,"props":5365,"children":5366},{"style":590},[5367],{"type":23,"value":2993},{"type":18,"tag":571,"props":5369,"children":5370},{"class":573,"line":169},[5371,5376,5380,5385],{"type":18,"tag":571,"props":5372,"children":5373},{"style":642},[5374],{"type":23,"value":5375},"  background-color",{"type":18,"tag":571,"props":5377,"children":5378},{"style":590},[5379],{"type":23,"value":3006},{"type":18,"tag":571,"props":5381,"children":5382},{"style":642},[5383],{"type":23,"value":5384},"#833637",{"type":18,"tag":571,"props":5386,"children":5387},{"style":590},[5388],{"type":23,"value":650},{"type":18,"tag":571,"props":5390,"children":5391},{"class":573,"line":174},[5392,5397,5401,5405,5409,5413,5417,5421,5425,5430,5434,5439,5443,5448,5452,5457,5461,5466],{"type":18,"tag":571,"props":5393,"children":5394},{"style":642},[5395],{"type":23,"value":5396},"  box-shadow",{"type":18,"tag":571,"props":5398,"children":5399},{"style":590},[5400],{"type":23,"value":3006},{"type":18,"tag":571,"props":5402,"children":5403},{"style":642},[5404],{"type":23,"value":4485},{"type":18,"tag":571,"props":5406,"children":5407},{"style":642},[5408],{"type":23,"value":3176},{"type":18,"tag":571,"props":5410,"children":5411},{"style":642},[5412],{"type":23,"value":3193},{"type":18,"tag":571,"props":5414,"children":5415},{"style":578},[5416],{"type":23,"value":3149},{"type":18,"tag":571,"props":5418,"children":5419},{"style":642},[5420],{"type":23,"value":3739},{"type":18,"tag":571,"props":5422,"children":5423},{"style":578},[5424],{"type":23,"value":3149},{"type":18,"tag":571,"props":5426,"children":5427},{"style":642},[5428],{"type":23,"value":5429}," rgba",{"type":18,"tag":571,"props":5431,"children":5432},{"style":590},[5433],{"type":23,"value":682},{"type":18,"tag":571,"props":5435,"children":5436},{"style":642},[5437],{"type":23,"value":5438},"245",{"type":18,"tag":571,"props":5440,"children":5441},{"style":590},[5442],{"type":23,"value":3025},{"type":18,"tag":571,"props":5444,"children":5445},{"style":642},[5446],{"type":23,"value":5447},"49",{"type":18,"tag":571,"props":5449,"children":5450},{"style":590},[5451],{"type":23,"value":3025},{"type":18,"tag":571,"props":5453,"children":5454},{"style":642},[5455],{"type":23,"value":5456},"108",{"type":18,"tag":571,"props":5458,"children":5459},{"style":590},[5460],{"type":23,"value":3025},{"type":18,"tag":571,"props":5462,"children":5463},{"style":642},[5464],{"type":23,"value":5465},"0.25",{"type":18,"tag":571,"props":5467,"children":5468},{"style":590},[5469],{"type":23,"value":792},{"type":18,"tag":571,"props":5471,"children":5472},{"class":573,"line":714},[5473],{"type":18,"tag":571,"props":5474,"children":5475},{"style":590},[5476],{"type":23,"value":1338},{"type":18,"tag":571,"props":5478,"children":5479},{"class":573,"line":761},[5480,5485],{"type":18,"tag":571,"props":5481,"children":5482},{"style":584},[5483],{"type":23,"value":5484},".announcement-link",{"type":18,"tag":571,"props":5486,"children":5487},{"style":590},[5488],{"type":23,"value":2993},{"type":18,"tag":571,"props":5490,"children":5491},{"class":573,"line":795},[5492,5497,5501,5506],{"type":18,"tag":571,"props":5493,"children":5494},{"style":642},[5495],{"type":23,"value":5496},"  display",{"type":18,"tag":571,"props":5498,"children":5499},{"style":590},[5500],{"type":23,"value":3006},{"type":18,"tag":571,"props":5502,"children":5503},{"style":642},[5504],{"type":23,"value":5505},"flex",{"type":18,"tag":571,"props":5507,"children":5508},{"style":590},[5509],{"type":23,"value":650},{"type":18,"tag":571,"props":5511,"children":5512},{"class":573,"line":804},[5513,5518,5522,5527],{"type":18,"tag":571,"props":5514,"children":5515},{"style":642},[5516],{"type":23,"value":5517},"  flex-wrap",{"type":18,"tag":571,"props":5519,"children":5520},{"style":590},[5521],{"type":23,"value":3006},{"type":18,"tag":571,"props":5523,"children":5524},{"style":642},[5525],{"type":23,"value":5526},"nowrap",{"type":18,"tag":571,"props":5528,"children":5529},{"style":590},[5530],{"type":23,"value":650},{"type":18,"tag":571,"props":5532,"children":5533},{"class":573,"line":812},[5534,5539,5543,5548,5552],{"type":18,"tag":571,"props":5535,"children":5536},{"style":642},[5537],{"type":23,"value":5538},"  gap",{"type":18,"tag":571,"props":5540,"children":5541},{"style":590},[5542],{"type":23,"value":3006},{"type":18,"tag":571,"props":5544,"children":5545},{"style":642},[5546],{"type":23,"value":5547},"13",{"type":18,"tag":571,"props":5549,"children":5550},{"style":578},[5551],{"type":23,"value":3149},{"type":18,"tag":571,"props":5553,"children":5554},{"style":590},[5555],{"type":23,"value":650},{"type":18,"tag":571,"props":5557,"children":5558},{"class":573,"line":835},[5559,5564,5568,5573],{"type":18,"tag":571,"props":5560,"children":5561},{"style":642},[5562],{"type":23,"value":5563},"  align-items",{"type":18,"tag":571,"props":5565,"children":5566},{"style":590},[5567],{"type":23,"value":3006},{"type":18,"tag":571,"props":5569,"children":5570},{"style":642},[5571],{"type":23,"value":5572},"center",{"type":18,"tag":571,"props":5574,"children":5575},{"style":590},[5576],{"type":23,"value":650},{"type":18,"tag":571,"props":5578,"children":5579},{"class":573,"line":880},[5580,5584,5588,5593,5597],{"type":18,"tag":571,"props":5581,"children":5582},{"style":642},[5583],{"type":23,"value":3502},{"type":18,"tag":571,"props":5585,"children":5586},{"style":590},[5587],{"type":23,"value":3006},{"type":18,"tag":571,"props":5589,"children":5590},{"style":642},[5591],{"type":23,"value":5592},"30",{"type":18,"tag":571,"props":5594,"children":5595},{"style":578},[5596],{"type":23,"value":3149},{"type":18,"tag":571,"props":5598,"children":5599},{"style":590},[5600],{"type":23,"value":650},{"type":18,"tag":571,"props":5602,"children":5603},{"class":573,"line":888},[5604,5609,5613,5617,5621,5626,5630],{"type":18,"tag":571,"props":5605,"children":5606},{"style":642},[5607],{"type":23,"value":5608},"  padding",{"type":18,"tag":571,"props":5610,"children":5611},{"style":590},[5612],{"type":23,"value":3006},{"type":18,"tag":571,"props":5614,"children":5615},{"style":642},[5616],{"type":23,"value":423},{"type":18,"tag":571,"props":5618,"children":5619},{"style":578},[5620],{"type":23,"value":3149},{"type":18,"tag":571,"props":5622,"children":5623},{"style":642},[5624],{"type":23,"value":5625}," 12",{"type":18,"tag":571,"props":5627,"children":5628},{"style":578},[5629],{"type":23,"value":3149},{"type":18,"tag":571,"props":5631,"children":5632},{"style":590},[5633],{"type":23,"value":650},{"type":18,"tag":571,"props":5635,"children":5636},{"class":573,"line":898},[5637,5642,5646,5651,5655],{"type":18,"tag":571,"props":5638,"children":5639},{"style":642},[5640],{"type":23,"value":5641},"  font-size",{"type":18,"tag":571,"props":5643,"children":5644},{"style":590},[5645],{"type":23,"value":3006},{"type":18,"tag":571,"props":5647,"children":5648},{"style":642},[5649],{"type":23,"value":5650},"14",{"type":18,"tag":571,"props":5652,"children":5653},{"style":578},[5654],{"type":23,"value":3149},{"type":18,"tag":571,"props":5656,"children":5657},{"style":590},[5658],{"type":23,"value":650},{"type":18,"tag":571,"props":5660,"children":5661},{"class":573,"line":917},[5662,5667,5671,5676],{"type":18,"tag":571,"props":5663,"children":5664},{"style":642},[5665],{"type":23,"value":5666},"  font-weight",{"type":18,"tag":571,"props":5668,"children":5669},{"style":590},[5670],{"type":23,"value":3006},{"type":18,"tag":571,"props":5672,"children":5673},{"style":642},[5674],{"type":23,"value":5675},"500",{"type":18,"tag":571,"props":5677,"children":5678},{"style":590},[5679],{"type":23,"value":650},{"type":18,"tag":571,"props":5681,"children":5682},{"class":573,"line":931},[5683,5688,5692,5697,5701],{"type":18,"tag":571,"props":5684,"children":5685},{"style":642},[5686],{"type":23,"value":5687},"  letter-spacing",{"type":18,"tag":571,"props":5689,"children":5690},{"style":590},[5691],{"type":23,"value":3006},{"type":18,"tag":571,"props":5693,"children":5694},{"style":642},[5695],{"type":23,"value":5696},"0.2",{"type":18,"tag":571,"props":5698,"children":5699},{"style":578},[5700],{"type":23,"value":3149},{"type":18,"tag":571,"props":5702,"children":5703},{"style":590},[5704],{"type":23,"value":650},{"type":18,"tag":571,"props":5706,"children":5707},{"class":573,"line":939},[5708,5712,5716,5721],{"type":18,"tag":571,"props":5709,"children":5710},{"style":642},[5711],{"type":23,"value":3001},{"type":18,"tag":571,"props":5713,"children":5714},{"style":590},[5715],{"type":23,"value":3006},{"type":18,"tag":571,"props":5717,"children":5718},{"style":642},[5719],{"type":23,"value":5720},"#130d0e",{"type":18,"tag":571,"props":5722,"children":5723},{"style":590},[5724],{"type":23,"value":650},{"type":18,"tag":571,"props":5726,"children":5727},{"class":573,"line":947},[5728,5732,5736,5741,5745],{"type":18,"tag":571,"props":5729,"children":5730},{"style":642},[5731],{"type":23,"value":3527},{"type":18,"tag":571,"props":5733,"children":5734},{"style":590},[5735],{"type":23,"value":3006},{"type":18,"tag":571,"props":5737,"children":5738},{"style":642},[5739],{"type":23,"value":5740},"1000",{"type":18,"tag":571,"props":5742,"children":5743},{"style":578},[5744],{"type":23,"value":3149},{"type":18,"tag":571,"props":5746,"children":5747},{"style":590},[5748],{"type":23,"value":650},{"type":18,"tag":571,"props":5750,"children":5751},{"class":573,"line":956},[5752],{"type":18,"tag":571,"props":5753,"children":5754},{"style":590},[5755],{"type":23,"value":1338},{"type":18,"tag":571,"props":5757,"children":5758},{"class":573,"line":991},[5759,5764,5769,5774],{"type":18,"tag":571,"props":5760,"children":5761},{"style":584},[5762],{"type":23,"value":5763},".announcement",{"type":18,"tag":571,"props":5765,"children":5766},{"style":578},[5767],{"type":23,"value":5768}," >",{"type":18,"tag":571,"props":5770,"children":5771},{"style":3356},[5772],{"type":23,"value":5773}," svg",{"type":18,"tag":571,"props":5775,"children":5776},{"style":590},[5777],{"type":23,"value":2993},{"type":18,"tag":571,"props":5779,"children":5780},{"class":573,"line":1015},[5781,5785,5789,5794,5798],{"type":18,"tag":571,"props":5782,"children":5783},{"style":642},[5784],{"type":23,"value":3477},{"type":18,"tag":571,"props":5786,"children":5787},{"style":590},[5788],{"type":23,"value":3006},{"type":18,"tag":571,"props":5790,"children":5791},{"style":642},[5792],{"type":23,"value":5793},"10",{"type":18,"tag":571,"props":5795,"children":5796},{"style":578},[5797],{"type":23,"value":3149},{"type":18,"tag":571,"props":5799,"children":5800},{"style":590},[5801],{"type":23,"value":650},{"type":18,"tag":571,"props":5803,"children":5804},{"class":573,"line":1033},[5805],{"type":18,"tag":571,"props":5806,"children":5807},{"style":590},[5808],{"type":23,"value":1338},{"type":18,"tag":19,"props":5810,"children":5811},{},[5812],{"type":23,"value":5813},"And voila! Here we have a trailing effect made entirely with css!",{"type":18,"tag":5815,"props":5816,"children":5817},"raycast-button",{},[],{"type":18,"tag":2484,"props":5819,"children":5820},{},[5821],{"type":23,"value":2488},{"title":8,"searchDepth":169,"depth":169,"links":5823},[5824,5825],{"id":2949,"depth":169,"text":2952},{"id":3302,"depth":169,"text":3305},"content:articles:trailing-gradient-button.md","articles/trailing-gradient-button.md","articles/trailing-gradient-button",{"_path":5830,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":5831,"description":5832,"pubDate":5833,"date":5834,"heroImage":5835,"component":8,"body":5836,"_type":175,"_id":9089,"_source":177,"_file":9090,"_stem":9091,"_extension":180},"/articles/build-a-newsletter-in-30-minutes","Create a newsletter site for free in 30 minutes","We will create a Newsletter website in Nuxt in less than 30 minutes!","Jul 01 2024","2024-07-01","/resendandnuxt.png",{"type":15,"children":5837,"toc":9084},[5838,5843,5856,5862,5867,6045,6050,6162,6167,6300,6305,6437,6450,6637,6642,6743,6753,6850,6855,7005,7011,7024,7388,7393,7399,7421,7434,7461,7466,7479,8079,8084,8340,8345,9075,9080],{"type":18,"tag":19,"props":5839,"children":5840},{},[5841],{"type":23,"value":5842},"By the end of this article you should have something that looks like this and is a fully functioning newsletter for free!",{"type":18,"tag":5844,"props":5845,"children":5846},"markdown-image",{},[5847],{"type":18,"tag":19,"props":5848,"children":5849},{},[5850],{"type":18,"tag":5851,"props":5852,"children":5855},"img",{"alt":5853,"src":5854},"News letter example","/blogs/newsletter.png",[],{"type":18,"tag":39,"props":5857,"children":5859},{"id":5858},"initial-setup",[5860],{"type":23,"value":5861},"Initial Setup",{"type":18,"tag":19,"props":5863,"children":5864},{},[5865],{"type":23,"value":5866},"We need to create a new project.",{"type":18,"tag":5868,"props":5869,"children":5870},"code-group",{},[5871,5922,5962,6005],{"type":18,"tag":561,"props":5872,"children":5877},{"className":5873,"code":5874,"filename":5875,"language":5876,"meta":8,"style":8},"language-bash shiki shiki-themes github-dark","pnpm dlx nuxi@latest init \u003Cproject-name>\n","pnpm","bash",[5878],{"type":18,"tag":480,"props":5879,"children":5880},{"__ignoreMap":8},[5881],{"type":18,"tag":571,"props":5882,"children":5883},{"class":573,"line":574},[5884,5888,5893,5898,5903,5908,5913,5918],{"type":18,"tag":571,"props":5885,"children":5886},{"style":584},[5887],{"type":23,"value":5875},{"type":18,"tag":571,"props":5889,"children":5890},{"style":784},[5891],{"type":23,"value":5892}," dlx",{"type":18,"tag":571,"props":5894,"children":5895},{"style":784},[5896],{"type":23,"value":5897}," nuxi@latest",{"type":18,"tag":571,"props":5899,"children":5900},{"style":784},[5901],{"type":23,"value":5902}," init",{"type":18,"tag":571,"props":5904,"children":5905},{"style":578},[5906],{"type":23,"value":5907}," \u003C",{"type":18,"tag":571,"props":5909,"children":5910},{"style":784},[5911],{"type":23,"value":5912},"project-nam",{"type":18,"tag":571,"props":5914,"children":5915},{"style":590},[5916],{"type":23,"value":5917},"e",{"type":18,"tag":571,"props":5919,"children":5920},{"style":578},[5921],{"type":23,"value":3387},{"type":18,"tag":561,"props":5923,"children":5926},{"className":5873,"code":5924,"filename":5925,"language":5876,"meta":8,"style":8},"npx nuxi@latest init \u003Cproject-name>\n","npm",[5927],{"type":18,"tag":480,"props":5928,"children":5929},{"__ignoreMap":8},[5930],{"type":18,"tag":571,"props":5931,"children":5932},{"class":573,"line":574},[5933,5938,5942,5946,5950,5954,5958],{"type":18,"tag":571,"props":5934,"children":5935},{"style":584},[5936],{"type":23,"value":5937},"npx",{"type":18,"tag":571,"props":5939,"children":5940},{"style":784},[5941],{"type":23,"value":5897},{"type":18,"tag":571,"props":5943,"children":5944},{"style":784},[5945],{"type":23,"value":5902},{"type":18,"tag":571,"props":5947,"children":5948},{"style":578},[5949],{"type":23,"value":5907},{"type":18,"tag":571,"props":5951,"children":5952},{"style":784},[5953],{"type":23,"value":5912},{"type":18,"tag":571,"props":5955,"children":5956},{"style":590},[5957],{"type":23,"value":5917},{"type":18,"tag":571,"props":5959,"children":5960},{"style":578},[5961],{"type":23,"value":3387},{"type":18,"tag":561,"props":5963,"children":5966},{"className":5873,"code":5964,"filename":5965,"language":5876,"meta":8,"style":8},"yarn dlx nuxi@latest init \u003Cproject-name>\n","yarn",[5967],{"type":18,"tag":480,"props":5968,"children":5969},{"__ignoreMap":8},[5970],{"type":18,"tag":571,"props":5971,"children":5972},{"class":573,"line":574},[5973,5977,5981,5985,5989,5993,5997,6001],{"type":18,"tag":571,"props":5974,"children":5975},{"style":584},[5976],{"type":23,"value":5965},{"type":18,"tag":571,"props":5978,"children":5979},{"style":784},[5980],{"type":23,"value":5892},{"type":18,"tag":571,"props":5982,"children":5983},{"style":784},[5984],{"type":23,"value":5897},{"type":18,"tag":571,"props":5986,"children":5987},{"style":784},[5988],{"type":23,"value":5902},{"type":18,"tag":571,"props":5990,"children":5991},{"style":578},[5992],{"type":23,"value":5907},{"type":18,"tag":571,"props":5994,"children":5995},{"style":784},[5996],{"type":23,"value":5912},{"type":18,"tag":571,"props":5998,"children":5999},{"style":590},[6000],{"type":23,"value":5917},{"type":18,"tag":571,"props":6002,"children":6003},{"style":578},[6004],{"type":23,"value":3387},{"type":18,"tag":561,"props":6006,"children":6009},{"className":5873,"code":6007,"filename":6008,"language":5876,"meta":8,"style":8},"bunx nuxi@latest init \u003Cproject-name>\n","bun",[6010],{"type":18,"tag":480,"props":6011,"children":6012},{"__ignoreMap":8},[6013],{"type":18,"tag":571,"props":6014,"children":6015},{"class":573,"line":574},[6016,6021,6025,6029,6033,6037,6041],{"type":18,"tag":571,"props":6017,"children":6018},{"style":584},[6019],{"type":23,"value":6020},"bunx",{"type":18,"tag":571,"props":6022,"children":6023},{"style":784},[6024],{"type":23,"value":5897},{"type":18,"tag":571,"props":6026,"children":6027},{"style":784},[6028],{"type":23,"value":5902},{"type":18,"tag":571,"props":6030,"children":6031},{"style":578},[6032],{"type":23,"value":5907},{"type":18,"tag":571,"props":6034,"children":6035},{"style":784},[6036],{"type":23,"value":5912},{"type":18,"tag":571,"props":6038,"children":6039},{"style":590},[6040],{"type":23,"value":5917},{"type":18,"tag":571,"props":6042,"children":6043},{"style":578},[6044],{"type":23,"value":3387},{"type":18,"tag":19,"props":6046,"children":6047},{},[6048],{"type":23,"value":6049},"We will also add typescript.",{"type":18,"tag":5868,"props":6051,"children":6052},{},[6053,6082,6109,6135],{"type":18,"tag":561,"props":6054,"children":6056},{"className":5873,"code":6055,"filename":5875,"language":5876,"meta":8,"style":8},"pnpm add -D typescript\n",[6057],{"type":18,"tag":480,"props":6058,"children":6059},{"__ignoreMap":8},[6060],{"type":18,"tag":571,"props":6061,"children":6062},{"class":573,"line":574},[6063,6067,6072,6077],{"type":18,"tag":571,"props":6064,"children":6065},{"style":584},[6066],{"type":23,"value":5875},{"type":18,"tag":571,"props":6068,"children":6069},{"style":784},[6070],{"type":23,"value":6071}," add",{"type":18,"tag":571,"props":6073,"children":6074},{"style":642},[6075],{"type":23,"value":6076}," -D",{"type":18,"tag":571,"props":6078,"children":6079},{"style":784},[6080],{"type":23,"value":6081}," typescript\n",{"type":18,"tag":561,"props":6083,"children":6085},{"className":5873,"code":6084,"filename":5925,"language":5876,"meta":8,"style":8},"npm install -D typescript\n",[6086],{"type":18,"tag":480,"props":6087,"children":6088},{"__ignoreMap":8},[6089],{"type":18,"tag":571,"props":6090,"children":6091},{"class":573,"line":574},[6092,6096,6101,6105],{"type":18,"tag":571,"props":6093,"children":6094},{"style":584},[6095],{"type":23,"value":5925},{"type":18,"tag":571,"props":6097,"children":6098},{"style":784},[6099],{"type":23,"value":6100}," install",{"type":18,"tag":571,"props":6102,"children":6103},{"style":642},[6104],{"type":23,"value":6076},{"type":18,"tag":571,"props":6106,"children":6107},{"style":784},[6108],{"type":23,"value":6081},{"type":18,"tag":561,"props":6110,"children":6112},{"className":5873,"code":6111,"filename":5965,"language":5876,"meta":8,"style":8},"yarn add -D typescript\n",[6113],{"type":18,"tag":480,"props":6114,"children":6115},{"__ignoreMap":8},[6116],{"type":18,"tag":571,"props":6117,"children":6118},{"class":573,"line":574},[6119,6123,6127,6131],{"type":18,"tag":571,"props":6120,"children":6121},{"style":584},[6122],{"type":23,"value":5965},{"type":18,"tag":571,"props":6124,"children":6125},{"style":784},[6126],{"type":23,"value":6071},{"type":18,"tag":571,"props":6128,"children":6129},{"style":642},[6130],{"type":23,"value":6076},{"type":18,"tag":571,"props":6132,"children":6133},{"style":784},[6134],{"type":23,"value":6081},{"type":18,"tag":561,"props":6136,"children":6138},{"className":5873,"code":6137,"filename":6008,"language":5876,"meta":8,"style":8},"bun add -d typescript\n",[6139],{"type":18,"tag":480,"props":6140,"children":6141},{"__ignoreMap":8},[6142],{"type":18,"tag":571,"props":6143,"children":6144},{"class":573,"line":574},[6145,6149,6153,6158],{"type":18,"tag":571,"props":6146,"children":6147},{"style":584},[6148],{"type":23,"value":6008},{"type":18,"tag":571,"props":6150,"children":6151},{"style":784},[6152],{"type":23,"value":6071},{"type":18,"tag":571,"props":6154,"children":6155},{"style":642},[6156],{"type":23,"value":6157}," -d",{"type":18,"tag":571,"props":6159,"children":6160},{"style":784},[6161],{"type":23,"value":6081},{"type":18,"tag":19,"props":6163,"children":6164},{},[6165],{"type":23,"value":6166},"and finally we will add tailwind.",{"type":18,"tag":5868,"props":6168,"children":6169},{},[6170,6206,6236,6270],{"type":18,"tag":561,"props":6171,"children":6173},{"className":5873,"code":6172,"filename":5875,"language":5876,"meta":8,"style":8},"pnpm dlx nuxi@latest module add @nuxtjs/tailwindcss\n",[6174],{"type":18,"tag":480,"props":6175,"children":6176},{"__ignoreMap":8},[6177],{"type":18,"tag":571,"props":6178,"children":6179},{"class":573,"line":574},[6180,6184,6188,6192,6197,6201],{"type":18,"tag":571,"props":6181,"children":6182},{"style":584},[6183],{"type":23,"value":5875},{"type":18,"tag":571,"props":6185,"children":6186},{"style":784},[6187],{"type":23,"value":5892},{"type":18,"tag":571,"props":6189,"children":6190},{"style":784},[6191],{"type":23,"value":5897},{"type":18,"tag":571,"props":6193,"children":6194},{"style":784},[6195],{"type":23,"value":6196}," module",{"type":18,"tag":571,"props":6198,"children":6199},{"style":784},[6200],{"type":23,"value":6071},{"type":18,"tag":571,"props":6202,"children":6203},{"style":784},[6204],{"type":23,"value":6205}," @nuxtjs/tailwindcss\n",{"type":18,"tag":561,"props":6207,"children":6209},{"className":5873,"code":6208,"filename":5925,"language":5876,"meta":8,"style":8},"npx nuxi@latest module add @nuxtjs/tailwindcss\n",[6210],{"type":18,"tag":480,"props":6211,"children":6212},{"__ignoreMap":8},[6213],{"type":18,"tag":571,"props":6214,"children":6215},{"class":573,"line":574},[6216,6220,6224,6228,6232],{"type":18,"tag":571,"props":6217,"children":6218},{"style":584},[6219],{"type":23,"value":5937},{"type":18,"tag":571,"props":6221,"children":6222},{"style":784},[6223],{"type":23,"value":5897},{"type":18,"tag":571,"props":6225,"children":6226},{"style":784},[6227],{"type":23,"value":6196},{"type":18,"tag":571,"props":6229,"children":6230},{"style":784},[6231],{"type":23,"value":6071},{"type":18,"tag":571,"props":6233,"children":6234},{"style":784},[6235],{"type":23,"value":6205},{"type":18,"tag":561,"props":6237,"children":6239},{"className":5873,"code":6238,"filename":5965,"language":5876,"meta":8,"style":8},"yarn dlx nuxi@latest module add @nuxtjs/tailwindcss\n",[6240],{"type":18,"tag":480,"props":6241,"children":6242},{"__ignoreMap":8},[6243],{"type":18,"tag":571,"props":6244,"children":6245},{"class":573,"line":574},[6246,6250,6254,6258,6262,6266],{"type":18,"tag":571,"props":6247,"children":6248},{"style":584},[6249],{"type":23,"value":5965},{"type":18,"tag":571,"props":6251,"children":6252},{"style":784},[6253],{"type":23,"value":5892},{"type":18,"tag":571,"props":6255,"children":6256},{"style":784},[6257],{"type":23,"value":5897},{"type":18,"tag":571,"props":6259,"children":6260},{"style":784},[6261],{"type":23,"value":6196},{"type":18,"tag":571,"props":6263,"children":6264},{"style":784},[6265],{"type":23,"value":6071},{"type":18,"tag":571,"props":6267,"children":6268},{"style":784},[6269],{"type":23,"value":6205},{"type":18,"tag":561,"props":6271,"children":6273},{"className":5873,"code":6272,"filename":6008,"language":5876,"meta":8,"style":8},"bunx nuxi@latest module add @nuxtjs/tailwindcss\n",[6274],{"type":18,"tag":480,"props":6275,"children":6276},{"__ignoreMap":8},[6277],{"type":18,"tag":571,"props":6278,"children":6279},{"class":573,"line":574},[6280,6284,6288,6292,6296],{"type":18,"tag":571,"props":6281,"children":6282},{"style":584},[6283],{"type":23,"value":6020},{"type":18,"tag":571,"props":6285,"children":6286},{"style":784},[6287],{"type":23,"value":5897},{"type":18,"tag":571,"props":6289,"children":6290},{"style":784},[6291],{"type":23,"value":6196},{"type":18,"tag":571,"props":6293,"children":6294},{"style":784},[6295],{"type":23,"value":6071},{"type":18,"tag":571,"props":6297,"children":6298},{"style":784},[6299],{"type":23,"value":6205},{"type":18,"tag":19,"props":6301,"children":6302},{},[6303],{"type":23,"value":6304},"We now want to add the shadcn nuxt module.",{"type":18,"tag":5868,"props":6306,"children":6307},{},[6308,6343,6373,6407],{"type":18,"tag":561,"props":6309,"children":6311},{"className":5873,"code":6310,"filename":5875,"language":5876,"meta":8,"style":8},"pnpm dlx nuxi@latest module add shadcn-nuxt\n",[6312],{"type":18,"tag":480,"props":6313,"children":6314},{"__ignoreMap":8},[6315],{"type":18,"tag":571,"props":6316,"children":6317},{"class":573,"line":574},[6318,6322,6326,6330,6334,6338],{"type":18,"tag":571,"props":6319,"children":6320},{"style":584},[6321],{"type":23,"value":5875},{"type":18,"tag":571,"props":6323,"children":6324},{"style":784},[6325],{"type":23,"value":5892},{"type":18,"tag":571,"props":6327,"children":6328},{"style":784},[6329],{"type":23,"value":5897},{"type":18,"tag":571,"props":6331,"children":6332},{"style":784},[6333],{"type":23,"value":6196},{"type":18,"tag":571,"props":6335,"children":6336},{"style":784},[6337],{"type":23,"value":6071},{"type":18,"tag":571,"props":6339,"children":6340},{"style":784},[6341],{"type":23,"value":6342}," shadcn-nuxt\n",{"type":18,"tag":561,"props":6344,"children":6346},{"className":5873,"code":6345,"filename":5925,"language":5876,"meta":8,"style":8},"npx nuxi@latest module add shadcn-nuxt\n",[6347],{"type":18,"tag":480,"props":6348,"children":6349},{"__ignoreMap":8},[6350],{"type":18,"tag":571,"props":6351,"children":6352},{"class":573,"line":574},[6353,6357,6361,6365,6369],{"type":18,"tag":571,"props":6354,"children":6355},{"style":584},[6356],{"type":23,"value":5937},{"type":18,"tag":571,"props":6358,"children":6359},{"style":784},[6360],{"type":23,"value":5897},{"type":18,"tag":571,"props":6362,"children":6363},{"style":784},[6364],{"type":23,"value":6196},{"type":18,"tag":571,"props":6366,"children":6367},{"style":784},[6368],{"type":23,"value":6071},{"type":18,"tag":571,"props":6370,"children":6371},{"style":784},[6372],{"type":23,"value":6342},{"type":18,"tag":561,"props":6374,"children":6376},{"className":5873,"code":6375,"filename":5965,"language":5876,"meta":8,"style":8},"yarn dlx nuxi@latest module add shadcn-nuxt\n",[6377],{"type":18,"tag":480,"props":6378,"children":6379},{"__ignoreMap":8},[6380],{"type":18,"tag":571,"props":6381,"children":6382},{"class":573,"line":574},[6383,6387,6391,6395,6399,6403],{"type":18,"tag":571,"props":6384,"children":6385},{"style":584},[6386],{"type":23,"value":5965},{"type":18,"tag":571,"props":6388,"children":6389},{"style":784},[6390],{"type":23,"value":5892},{"type":18,"tag":571,"props":6392,"children":6393},{"style":784},[6394],{"type":23,"value":5897},{"type":18,"tag":571,"props":6396,"children":6397},{"style":784},[6398],{"type":23,"value":6196},{"type":18,"tag":571,"props":6400,"children":6401},{"style":784},[6402],{"type":23,"value":6071},{"type":18,"tag":571,"props":6404,"children":6405},{"style":784},[6406],{"type":23,"value":6342},{"type":18,"tag":561,"props":6408,"children":6410},{"className":5873,"code":6409,"filename":6008,"language":5876,"meta":8,"style":8},"bunx nuxi@latest module add shadcn-nuxt\n",[6411],{"type":18,"tag":480,"props":6412,"children":6413},{"__ignoreMap":8},[6414],{"type":18,"tag":571,"props":6415,"children":6416},{"class":573,"line":574},[6417,6421,6425,6429,6433],{"type":18,"tag":571,"props":6418,"children":6419},{"style":584},[6420],{"type":23,"value":6020},{"type":18,"tag":571,"props":6422,"children":6423},{"style":784},[6424],{"type":23,"value":5897},{"type":18,"tag":571,"props":6426,"children":6427},{"style":784},[6428],{"type":23,"value":6196},{"type":18,"tag":571,"props":6430,"children":6431},{"style":784},[6432],{"type":23,"value":6071},{"type":18,"tag":571,"props":6434,"children":6435},{"style":784},[6436],{"type":23,"value":6342},{"type":18,"tag":19,"props":6438,"children":6439},{},[6440,6442,6448],{"type":23,"value":6441},"Then we open our ",{"type":18,"tag":480,"props":6443,"children":6445},{"className":6444},[],[6446],{"type":23,"value":6447},"nuxt.config.ts",{"type":23,"value":6449}," file. And replace it with the following.",{"type":18,"tag":561,"props":6451,"children":6453},{"className":1373,"code":6452,"language":1375,"meta":8,"style":8},"export default defineNuxtConfig({\n  modules: [\"@nuxtjs/tailwindcss\", \"shadcn-nuxt\"],\n  shadcn: {\n    /**\n     * Prefix for all the imported component\n     */\n    prefix: \"\",\n    /**\n     * Directory that the component lives in.\n     * @default \"./components/ui\"\n     */\n    componentDir: \"./components/ui\",\n  },\n});\n",[6454],{"type":18,"tag":480,"props":6455,"children":6456},{"__ignoreMap":8},[6457,6479,6506,6514,6522,6530,6538,6555,6562,6570,6598,6605,6622,6630],{"type":18,"tag":571,"props":6458,"children":6459},{"class":573,"line":574},[6460,6464,6469,6474],{"type":18,"tag":571,"props":6461,"children":6462},{"style":578},[6463],{"type":23,"value":667},{"type":18,"tag":571,"props":6465,"children":6466},{"style":578},[6467],{"type":23,"value":6468}," default",{"type":18,"tag":571,"props":6470,"children":6471},{"style":584},[6472],{"type":23,"value":6473}," defineNuxtConfig",{"type":18,"tag":571,"props":6475,"children":6476},{"style":590},[6477],{"type":23,"value":6478},"({\n",{"type":18,"tag":571,"props":6480,"children":6481},{"class":573,"line":169},[6482,6487,6492,6496,6501],{"type":18,"tag":571,"props":6483,"children":6484},{"style":590},[6485],{"type":23,"value":6486},"  modules: [",{"type":18,"tag":571,"props":6488,"children":6489},{"style":784},[6490],{"type":23,"value":6491},"\"@nuxtjs/tailwindcss\"",{"type":18,"tag":571,"props":6493,"children":6494},{"style":590},[6495],{"type":23,"value":3025},{"type":18,"tag":571,"props":6497,"children":6498},{"style":784},[6499],{"type":23,"value":6500},"\"shadcn-nuxt\"",{"type":18,"tag":571,"props":6502,"children":6503},{"style":590},[6504],{"type":23,"value":6505},"],\n",{"type":18,"tag":571,"props":6507,"children":6508},{"class":573,"line":174},[6509],{"type":18,"tag":571,"props":6510,"children":6511},{"style":590},[6512],{"type":23,"value":6513},"  shadcn: {\n",{"type":18,"tag":571,"props":6515,"children":6516},{"class":573,"line":714},[6517],{"type":18,"tag":571,"props":6518,"children":6519},{"style":892},[6520],{"type":23,"value":6521},"    /**\n",{"type":18,"tag":571,"props":6523,"children":6524},{"class":573,"line":761},[6525],{"type":18,"tag":571,"props":6526,"children":6527},{"style":892},[6528],{"type":23,"value":6529},"     * Prefix for all the imported component\n",{"type":18,"tag":571,"props":6531,"children":6532},{"class":573,"line":795},[6533],{"type":18,"tag":571,"props":6534,"children":6535},{"style":892},[6536],{"type":23,"value":6537},"     */\n",{"type":18,"tag":571,"props":6539,"children":6540},{"class":573,"line":804},[6541,6546,6551],{"type":18,"tag":571,"props":6542,"children":6543},{"style":590},[6544],{"type":23,"value":6545},"    prefix: ",{"type":18,"tag":571,"props":6547,"children":6548},{"style":784},[6549],{"type":23,"value":6550},"\"\"",{"type":18,"tag":571,"props":6552,"children":6553},{"style":590},[6554],{"type":23,"value":3163},{"type":18,"tag":571,"props":6556,"children":6557},{"class":573,"line":812},[6558],{"type":18,"tag":571,"props":6559,"children":6560},{"style":892},[6561],{"type":23,"value":6521},{"type":18,"tag":571,"props":6563,"children":6564},{"class":573,"line":835},[6565],{"type":18,"tag":571,"props":6566,"children":6567},{"style":892},[6568],{"type":23,"value":6569},"     * Directory that the component lives in.\n",{"type":18,"tag":571,"props":6571,"children":6572},{"class":573,"line":880},[6573,6578,6583,6588,6593],{"type":18,"tag":571,"props":6574,"children":6575},{"style":892},[6576],{"type":23,"value":6577},"     * ",{"type":18,"tag":571,"props":6579,"children":6580},{"style":578},[6581],{"type":23,"value":6582},"@default",{"type":18,"tag":571,"props":6584,"children":6585},{"style":784},[6586],{"type":23,"value":6587}," \"",{"type":18,"tag":571,"props":6589,"children":6590},{"style":590},[6591],{"type":23,"value":6592},"./components/ui",{"type":18,"tag":571,"props":6594,"children":6595},{"style":784},[6596],{"type":23,"value":6597},"\"\n",{"type":18,"tag":571,"props":6599,"children":6600},{"class":573,"line":888},[6601],{"type":18,"tag":571,"props":6602,"children":6603},{"style":892},[6604],{"type":23,"value":6537},{"type":18,"tag":571,"props":6606,"children":6607},{"class":573,"line":898},[6608,6613,6618],{"type":18,"tag":571,"props":6609,"children":6610},{"style":590},[6611],{"type":23,"value":6612},"    componentDir: ",{"type":18,"tag":571,"props":6614,"children":6615},{"style":784},[6616],{"type":23,"value":6617},"\"./components/ui\"",{"type":18,"tag":571,"props":6619,"children":6620},{"style":590},[6621],{"type":23,"value":3163},{"type":18,"tag":571,"props":6623,"children":6624},{"class":573,"line":917},[6625],{"type":18,"tag":571,"props":6626,"children":6627},{"style":590},[6628],{"type":23,"value":6629},"  },\n",{"type":18,"tag":571,"props":6631,"children":6632},{"class":573,"line":931},[6633],{"type":18,"tag":571,"props":6634,"children":6635},{"style":590},[6636],{"type":23,"value":2184},{"type":18,"tag":19,"props":6638,"children":6639},{},[6640],{"type":23,"value":6641},"Run the setup CLI.",{"type":18,"tag":5868,"props":6643,"children":6644},{},[6645,6673,6695,6721],{"type":18,"tag":561,"props":6646,"children":6648},{"className":5873,"code":6647,"filename":5875,"language":5876,"meta":8,"style":8},"pnpm dlx shadcn-vue@latest init\n",[6649],{"type":18,"tag":480,"props":6650,"children":6651},{"__ignoreMap":8},[6652],{"type":18,"tag":571,"props":6653,"children":6654},{"class":573,"line":574},[6655,6659,6663,6668],{"type":18,"tag":571,"props":6656,"children":6657},{"style":584},[6658],{"type":23,"value":5875},{"type":18,"tag":571,"props":6660,"children":6661},{"style":784},[6662],{"type":23,"value":5892},{"type":18,"tag":571,"props":6664,"children":6665},{"style":784},[6666],{"type":23,"value":6667}," shadcn-vue@latest",{"type":18,"tag":571,"props":6669,"children":6670},{"style":784},[6671],{"type":23,"value":6672}," init\n",{"type":18,"tag":561,"props":6674,"children":6676},{"className":5873,"code":6675,"filename":5925,"language":5876,"meta":8,"style":8},"npx shadcn-vue@latest init\n",[6677],{"type":18,"tag":480,"props":6678,"children":6679},{"__ignoreMap":8},[6680],{"type":18,"tag":571,"props":6681,"children":6682},{"class":573,"line":574},[6683,6687,6691],{"type":18,"tag":571,"props":6684,"children":6685},{"style":584},[6686],{"type":23,"value":5937},{"type":18,"tag":571,"props":6688,"children":6689},{"style":784},[6690],{"type":23,"value":6667},{"type":18,"tag":571,"props":6692,"children":6693},{"style":784},[6694],{"type":23,"value":6672},{"type":18,"tag":561,"props":6696,"children":6698},{"className":5873,"code":6697,"filename":5965,"language":5876,"meta":8,"style":8},"yarn dlx shadcn-vue@latest init\n",[6699],{"type":18,"tag":480,"props":6700,"children":6701},{"__ignoreMap":8},[6702],{"type":18,"tag":571,"props":6703,"children":6704},{"class":573,"line":574},[6705,6709,6713,6717],{"type":18,"tag":571,"props":6706,"children":6707},{"style":584},[6708],{"type":23,"value":5965},{"type":18,"tag":571,"props":6710,"children":6711},{"style":784},[6712],{"type":23,"value":5892},{"type":18,"tag":571,"props":6714,"children":6715},{"style":784},[6716],{"type":23,"value":6667},{"type":18,"tag":571,"props":6718,"children":6719},{"style":784},[6720],{"type":23,"value":6672},{"type":18,"tag":561,"props":6722,"children":6724},{"className":5873,"code":6723,"filename":6008,"language":5876,"meta":8,"style":8},"bunx shadcn-vue@latest init\n",[6725],{"type":18,"tag":480,"props":6726,"children":6727},{"__ignoreMap":8},[6728],{"type":18,"tag":571,"props":6729,"children":6730},{"class":573,"line":574},[6731,6735,6739],{"type":18,"tag":571,"props":6732,"children":6733},{"style":584},[6734],{"type":23,"value":6020},{"type":18,"tag":571,"props":6736,"children":6737},{"style":784},[6738],{"type":23,"value":6667},{"type":18,"tag":571,"props":6740,"children":6741},{"style":784},[6742],{"type":23,"value":6672},{"type":18,"tag":19,"props":6744,"children":6745},{},[6746,6748],{"type":23,"value":6747},"And finally just follow the default steps. ",{"type":18,"tag":2511,"props":6749,"children":6750},{},[6751],{"type":23,"value":6752},"Make sure you select your framework as Nuxt",{"type":18,"tag":561,"props":6754,"children":6758},{"className":6755,"code":6756,"language":6757,"meta":8,"style":8},"language-txt shiki shiki-themes github-dark","Would you like to use TypeScript (recommended)?  yes\nWhich framework are you using? Nuxt\nWhich style would you like to use? › Default\nWhich color would you like to use as base color? › Slate\nWhere is your tsconfig.json or jsconfig.json file? › ./tsconfig.json\nWhere is your global CSS file? › › src/index.css\nDo you want to use CSS variables for colors? › no / yes\nWhere is your tailwind.config.js located? › tailwind.config.js\nConfigure the import alias for components: › @/components\nConfigure the import alias for utils: › @/lib/utils\nWrite configuration to components.json. Proceed? > Y/n\n","txt",[6759],{"type":18,"tag":480,"props":6760,"children":6761},{"__ignoreMap":8},[6762,6770,6778,6786,6794,6802,6810,6818,6826,6834,6842],{"type":18,"tag":571,"props":6763,"children":6764},{"class":573,"line":574},[6765],{"type":18,"tag":571,"props":6766,"children":6767},{},[6768],{"type":23,"value":6769},"Would you like to use TypeScript (recommended)?  yes\n",{"type":18,"tag":571,"props":6771,"children":6772},{"class":573,"line":169},[6773],{"type":18,"tag":571,"props":6774,"children":6775},{},[6776],{"type":23,"value":6777},"Which framework are you using? Nuxt\n",{"type":18,"tag":571,"props":6779,"children":6780},{"class":573,"line":174},[6781],{"type":18,"tag":571,"props":6782,"children":6783},{},[6784],{"type":23,"value":6785},"Which style would you like to use? › Default\n",{"type":18,"tag":571,"props":6787,"children":6788},{"class":573,"line":714},[6789],{"type":18,"tag":571,"props":6790,"children":6791},{},[6792],{"type":23,"value":6793},"Which color would you like to use as base color? › Slate\n",{"type":18,"tag":571,"props":6795,"children":6796},{"class":573,"line":761},[6797],{"type":18,"tag":571,"props":6798,"children":6799},{},[6800],{"type":23,"value":6801},"Where is your tsconfig.json or jsconfig.json file? › ./tsconfig.json\n",{"type":18,"tag":571,"props":6803,"children":6804},{"class":573,"line":795},[6805],{"type":18,"tag":571,"props":6806,"children":6807},{},[6808],{"type":23,"value":6809},"Where is your global CSS file? › › src/index.css\n",{"type":18,"tag":571,"props":6811,"children":6812},{"class":573,"line":804},[6813],{"type":18,"tag":571,"props":6814,"children":6815},{},[6816],{"type":23,"value":6817},"Do you want to use CSS variables for colors? › no / yes\n",{"type":18,"tag":571,"props":6819,"children":6820},{"class":573,"line":812},[6821],{"type":18,"tag":571,"props":6822,"children":6823},{},[6824],{"type":23,"value":6825},"Where is your tailwind.config.js located? › tailwind.config.js\n",{"type":18,"tag":571,"props":6827,"children":6828},{"class":573,"line":835},[6829],{"type":18,"tag":571,"props":6830,"children":6831},{},[6832],{"type":23,"value":6833},"Configure the import alias for components: › @/components\n",{"type":18,"tag":571,"props":6835,"children":6836},{"class":573,"line":880},[6837],{"type":18,"tag":571,"props":6838,"children":6839},{},[6840],{"type":23,"value":6841},"Configure the import alias for utils: › @/lib/utils\n",{"type":18,"tag":571,"props":6843,"children":6844},{"class":573,"line":888},[6845],{"type":18,"tag":571,"props":6846,"children":6847},{},[6848],{"type":23,"value":6849},"Write configuration to components.json. Proceed? > Y/n\n",{"type":18,"tag":19,"props":6851,"children":6852},{},[6853],{"type":23,"value":6854},"That is all the setup done! All we need to do now is add the input and button components.",{"type":18,"tag":5868,"props":6856,"children":6857},{},[6858,6899,6933,6971],{"type":18,"tag":561,"props":6859,"children":6861},{"className":5873,"code":6860,"filename":5875,"language":5876,"meta":8,"style":8},"pnpm dlx npx shadcn-vue@latest add button input \n",[6862],{"type":18,"tag":480,"props":6863,"children":6864},{"__ignoreMap":8},[6865],{"type":18,"tag":571,"props":6866,"children":6867},{"class":573,"line":574},[6868,6872,6876,6881,6885,6889,6894],{"type":18,"tag":571,"props":6869,"children":6870},{"style":584},[6871],{"type":23,"value":5875},{"type":18,"tag":571,"props":6873,"children":6874},{"style":784},[6875],{"type":23,"value":5892},{"type":18,"tag":571,"props":6877,"children":6878},{"style":784},[6879],{"type":23,"value":6880}," npx",{"type":18,"tag":571,"props":6882,"children":6883},{"style":784},[6884],{"type":23,"value":6667},{"type":18,"tag":571,"props":6886,"children":6887},{"style":784},[6888],{"type":23,"value":6071},{"type":18,"tag":571,"props":6890,"children":6891},{"style":784},[6892],{"type":23,"value":6893}," button",{"type":18,"tag":571,"props":6895,"children":6896},{"style":784},[6897],{"type":23,"value":6898}," input\n",{"type":18,"tag":561,"props":6900,"children":6902},{"className":5873,"code":6901,"filename":5925,"language":5876,"meta":8,"style":8},"npx npx shadcn-vue@latest add button input\n",[6903],{"type":18,"tag":480,"props":6904,"children":6905},{"__ignoreMap":8},[6906],{"type":18,"tag":571,"props":6907,"children":6908},{"class":573,"line":574},[6909,6913,6917,6921,6925,6929],{"type":18,"tag":571,"props":6910,"children":6911},{"style":584},[6912],{"type":23,"value":5937},{"type":18,"tag":571,"props":6914,"children":6915},{"style":784},[6916],{"type":23,"value":6880},{"type":18,"tag":571,"props":6918,"children":6919},{"style":784},[6920],{"type":23,"value":6667},{"type":18,"tag":571,"props":6922,"children":6923},{"style":784},[6924],{"type":23,"value":6071},{"type":18,"tag":571,"props":6926,"children":6927},{"style":784},[6928],{"type":23,"value":6893},{"type":18,"tag":571,"props":6930,"children":6931},{"style":784},[6932],{"type":23,"value":6898},{"type":18,"tag":561,"props":6934,"children":6936},{"className":5873,"code":6935,"filename":5965,"language":5876,"meta":8,"style":8},"yarn dlx npx shadcn-vue@latest add button input\n",[6937],{"type":18,"tag":480,"props":6938,"children":6939},{"__ignoreMap":8},[6940],{"type":18,"tag":571,"props":6941,"children":6942},{"class":573,"line":574},[6943,6947,6951,6955,6959,6963,6967],{"type":18,"tag":571,"props":6944,"children":6945},{"style":584},[6946],{"type":23,"value":5965},{"type":18,"tag":571,"props":6948,"children":6949},{"style":784},[6950],{"type":23,"value":5892},{"type":18,"tag":571,"props":6952,"children":6953},{"style":784},[6954],{"type":23,"value":6880},{"type":18,"tag":571,"props":6956,"children":6957},{"style":784},[6958],{"type":23,"value":6667},{"type":18,"tag":571,"props":6960,"children":6961},{"style":784},[6962],{"type":23,"value":6071},{"type":18,"tag":571,"props":6964,"children":6965},{"style":784},[6966],{"type":23,"value":6893},{"type":18,"tag":571,"props":6968,"children":6969},{"style":784},[6970],{"type":23,"value":6898},{"type":18,"tag":561,"props":6972,"children":6974},{"className":5873,"code":6973,"filename":6008,"language":5876,"meta":8,"style":8},"bunx npx shadcn-vue@latest add button input\n",[6975],{"type":18,"tag":480,"props":6976,"children":6977},{"__ignoreMap":8},[6978],{"type":18,"tag":571,"props":6979,"children":6980},{"class":573,"line":574},[6981,6985,6989,6993,6997,7001],{"type":18,"tag":571,"props":6982,"children":6983},{"style":584},[6984],{"type":23,"value":6020},{"type":18,"tag":571,"props":6986,"children":6987},{"style":784},[6988],{"type":23,"value":6880},{"type":18,"tag":571,"props":6990,"children":6991},{"style":784},[6992],{"type":23,"value":6667},{"type":18,"tag":571,"props":6994,"children":6995},{"style":784},[6996],{"type":23,"value":6071},{"type":18,"tag":571,"props":6998,"children":6999},{"style":784},[7000],{"type":23,"value":6893},{"type":18,"tag":571,"props":7002,"children":7003},{"style":784},[7004],{"type":23,"value":6898},{"type":18,"tag":39,"props":7006,"children":7008},{"id":7007},"build-a-basic-app",[7009],{"type":23,"value":7010},"Build a basic app",{"type":18,"tag":19,"props":7012,"children":7013},{},[7014,7016,7022],{"type":23,"value":7015},"Amazing, now let’s make ourselves a quick landing page. Replace the following code in your ",{"type":18,"tag":480,"props":7017,"children":7019},{"className":7018},[],[7020],{"type":23,"value":7021},"app.vue",{"type":23,"value":7023}," file.",{"type":18,"tag":5868,"props":7025,"children":7026},{},[7027],{"type":18,"tag":561,"props":7028,"children":7032},{"className":7029,"code":7030,"filename":7021,"language":7031,"meta":8,"style":8},"language-vue shiki shiki-themes github-dark","\u003Ctemplate>\n  \u003Cdiv class=\"dark space-x-2 max-w-sm mx-auto my-auto mt-20\">\n    \u003Cp class=\"text-center\">Hey 👋\u003C/p>\n    \u003Ch1 class=\"text-7xl font-extrabold text-center mb-4\">Join my newsletter\u003C/h1>\n    \u003Cp class=\"text-center mb-8\">We talk about \u003Ci>amazing things\u003C/i>, delivered to your inbox \u003Cb>every Saturday\u003C/b>.\u003C/p>\n    \u003Cdiv class=\"flex gap-2 \">\n\n\n    \u003CInput type=\"email\" placeholder=\"Your email\" />\n    \u003CButton>Join newsletter\u003C/Button>\n    \u003C/div>\n \u003C/div>\n\u003C/template>\n\n","vue",[7033],{"type":18,"tag":480,"props":7034,"children":7035},{"__ignoreMap":8},[7036,7052,7080,7117,7155,7230,7258,7265,7272,7317,7342,7357,7373],{"type":18,"tag":571,"props":7037,"children":7038},{"class":573,"line":574},[7039,7043,7048],{"type":18,"tag":571,"props":7040,"children":7041},{"style":590},[7042],{"type":23,"value":593},{"type":18,"tag":571,"props":7044,"children":7045},{"style":3356},[7046],{"type":23,"value":7047},"template",{"type":18,"tag":571,"props":7049,"children":7050},{"style":590},[7051],{"type":23,"value":3387},{"type":18,"tag":571,"props":7053,"children":7054},{"class":573,"line":169},[7055,7059,7063,7067,7071,7076],{"type":18,"tag":571,"props":7056,"children":7057},{"style":590},[7058],{"type":23,"value":5034},{"type":18,"tag":571,"props":7060,"children":7061},{"style":3356},[7062],{"type":23,"value":3359},{"type":18,"tag":571,"props":7064,"children":7065},{"style":584},[7066],{"type":23,"value":3364},{"type":18,"tag":571,"props":7068,"children":7069},{"style":590},[7070],{"type":23,"value":608},{"type":18,"tag":571,"props":7072,"children":7073},{"style":784},[7074],{"type":23,"value":7075},"\"dark space-x-2 max-w-sm mx-auto my-auto mt-20\"",{"type":18,"tag":571,"props":7077,"children":7078},{"style":590},[7079],{"type":23,"value":3387},{"type":18,"tag":571,"props":7081,"children":7082},{"class":573,"line":174},[7083,7087,7091,7095,7099,7104,7109,7113],{"type":18,"tag":571,"props":7084,"children":7085},{"style":590},[7086],{"type":23,"value":5104},{"type":18,"tag":571,"props":7088,"children":7089},{"style":3356},[7090],{"type":23,"value":19},{"type":18,"tag":571,"props":7092,"children":7093},{"style":584},[7094],{"type":23,"value":3364},{"type":18,"tag":571,"props":7096,"children":7097},{"style":590},[7098],{"type":23,"value":608},{"type":18,"tag":571,"props":7100,"children":7101},{"style":784},[7102],{"type":23,"value":7103},"\"text-center\"",{"type":18,"tag":571,"props":7105,"children":7106},{"style":590},[7107],{"type":23,"value":7108},">Hey 👋\u003C/",{"type":18,"tag":571,"props":7110,"children":7111},{"style":3356},[7112],{"type":23,"value":19},{"type":18,"tag":571,"props":7114,"children":7115},{"style":590},[7116],{"type":23,"value":3387},{"type":18,"tag":571,"props":7118,"children":7119},{"class":573,"line":714},[7120,7124,7129,7133,7137,7142,7147,7151],{"type":18,"tag":571,"props":7121,"children":7122},{"style":590},[7123],{"type":23,"value":5104},{"type":18,"tag":571,"props":7125,"children":7126},{"style":3356},[7127],{"type":23,"value":7128},"h1",{"type":18,"tag":571,"props":7130,"children":7131},{"style":584},[7132],{"type":23,"value":3364},{"type":18,"tag":571,"props":7134,"children":7135},{"style":590},[7136],{"type":23,"value":608},{"type":18,"tag":571,"props":7138,"children":7139},{"style":784},[7140],{"type":23,"value":7141},"\"text-7xl font-extrabold text-center mb-4\"",{"type":18,"tag":571,"props":7143,"children":7144},{"style":590},[7145],{"type":23,"value":7146},">Join my newsletter\u003C/",{"type":18,"tag":571,"props":7148,"children":7149},{"style":3356},[7150],{"type":23,"value":7128},{"type":18,"tag":571,"props":7152,"children":7153},{"style":590},[7154],{"type":23,"value":3387},{"type":18,"tag":571,"props":7156,"children":7157},{"class":573,"line":761},[7158,7162,7166,7170,7174,7179,7184,7189,7194,7198,7203,7208,7213,7217,7222,7226],{"type":18,"tag":571,"props":7159,"children":7160},{"style":590},[7161],{"type":23,"value":5104},{"type":18,"tag":571,"props":7163,"children":7164},{"style":3356},[7165],{"type":23,"value":19},{"type":18,"tag":571,"props":7167,"children":7168},{"style":584},[7169],{"type":23,"value":3364},{"type":18,"tag":571,"props":7171,"children":7172},{"style":590},[7173],{"type":23,"value":608},{"type":18,"tag":571,"props":7175,"children":7176},{"style":784},[7177],{"type":23,"value":7178},"\"text-center mb-8\"",{"type":18,"tag":571,"props":7180,"children":7181},{"style":590},[7182],{"type":23,"value":7183},">We talk about \u003C",{"type":18,"tag":571,"props":7185,"children":7186},{"style":3356},[7187],{"type":23,"value":7188},"i",{"type":18,"tag":571,"props":7190,"children":7191},{"style":590},[7192],{"type":23,"value":7193},">amazing things\u003C/",{"type":18,"tag":571,"props":7195,"children":7196},{"style":3356},[7197],{"type":23,"value":7188},{"type":18,"tag":571,"props":7199,"children":7200},{"style":590},[7201],{"type":23,"value":7202},">, delivered to your inbox \u003C",{"type":18,"tag":571,"props":7204,"children":7205},{"style":3356},[7206],{"type":23,"value":7207},"b",{"type":18,"tag":571,"props":7209,"children":7210},{"style":590},[7211],{"type":23,"value":7212},">every Saturday\u003C/",{"type":18,"tag":571,"props":7214,"children":7215},{"style":3356},[7216],{"type":23,"value":7207},{"type":18,"tag":571,"props":7218,"children":7219},{"style":590},[7220],{"type":23,"value":7221},">.\u003C/",{"type":18,"tag":571,"props":7223,"children":7224},{"style":3356},[7225],{"type":23,"value":19},{"type":18,"tag":571,"props":7227,"children":7228},{"style":590},[7229],{"type":23,"value":3387},{"type":18,"tag":571,"props":7231,"children":7232},{"class":573,"line":795},[7233,7237,7241,7245,7249,7254],{"type":18,"tag":571,"props":7234,"children":7235},{"style":590},[7236],{"type":23,"value":5104},{"type":18,"tag":571,"props":7238,"children":7239},{"style":3356},[7240],{"type":23,"value":3359},{"type":18,"tag":571,"props":7242,"children":7243},{"style":584},[7244],{"type":23,"value":3364},{"type":18,"tag":571,"props":7246,"children":7247},{"style":590},[7248],{"type":23,"value":608},{"type":18,"tag":571,"props":7250,"children":7251},{"style":784},[7252],{"type":23,"value":7253},"\"flex gap-2 \"",{"type":18,"tag":571,"props":7255,"children":7256},{"style":590},[7257],{"type":23,"value":3387},{"type":18,"tag":571,"props":7259,"children":7260},{"class":573,"line":804},[7261],{"type":18,"tag":571,"props":7262,"children":7263},{"emptyLinePlaceholder":656},[7264],{"type":23,"value":659},{"type":18,"tag":571,"props":7266,"children":7267},{"class":573,"line":812},[7268],{"type":18,"tag":571,"props":7269,"children":7270},{"emptyLinePlaceholder":656},[7271],{"type":23,"value":659},{"type":18,"tag":571,"props":7273,"children":7274},{"class":573,"line":835},[7275,7279,7284,7289,7293,7298,7303,7307,7312],{"type":18,"tag":571,"props":7276,"children":7277},{"style":590},[7278],{"type":23,"value":5104},{"type":18,"tag":571,"props":7280,"children":7281},{"style":3356},[7282],{"type":23,"value":7283},"Input",{"type":18,"tag":571,"props":7285,"children":7286},{"style":584},[7287],{"type":23,"value":7288}," type",{"type":18,"tag":571,"props":7290,"children":7291},{"style":590},[7292],{"type":23,"value":608},{"type":18,"tag":571,"props":7294,"children":7295},{"style":784},[7296],{"type":23,"value":7297},"\"email\"",{"type":18,"tag":571,"props":7299,"children":7300},{"style":584},[7301],{"type":23,"value":7302}," placeholder",{"type":18,"tag":571,"props":7304,"children":7305},{"style":590},[7306],{"type":23,"value":608},{"type":18,"tag":571,"props":7308,"children":7309},{"style":784},[7310],{"type":23,"value":7311},"\"Your email\"",{"type":18,"tag":571,"props":7313,"children":7314},{"style":590},[7315],{"type":23,"value":7316}," />\n",{"type":18,"tag":571,"props":7318,"children":7319},{"class":573,"line":880},[7320,7324,7329,7334,7338],{"type":18,"tag":571,"props":7321,"children":7322},{"style":590},[7323],{"type":23,"value":5104},{"type":18,"tag":571,"props":7325,"children":7326},{"style":3356},[7327],{"type":23,"value":7328},"Button",{"type":18,"tag":571,"props":7330,"children":7331},{"style":590},[7332],{"type":23,"value":7333},">Join newsletter\u003C/",{"type":18,"tag":571,"props":7335,"children":7336},{"style":3356},[7337],{"type":23,"value":7328},{"type":18,"tag":571,"props":7339,"children":7340},{"style":590},[7341],{"type":23,"value":3387},{"type":18,"tag":571,"props":7343,"children":7344},{"class":573,"line":888},[7345,7349,7353],{"type":18,"tag":571,"props":7346,"children":7347},{"style":590},[7348],{"type":23,"value":5307},{"type":18,"tag":571,"props":7350,"children":7351},{"style":3356},[7352],{"type":23,"value":3359},{"type":18,"tag":571,"props":7354,"children":7355},{"style":590},[7356],{"type":23,"value":3387},{"type":18,"tag":571,"props":7358,"children":7359},{"class":573,"line":898},[7360,7365,7369],{"type":18,"tag":571,"props":7361,"children":7362},{"style":590},[7363],{"type":23,"value":7364}," \u003C/",{"type":18,"tag":571,"props":7366,"children":7367},{"style":3356},[7368],{"type":23,"value":3359},{"type":18,"tag":571,"props":7370,"children":7371},{"style":590},[7372],{"type":23,"value":3387},{"type":18,"tag":571,"props":7374,"children":7375},{"class":573,"line":917},[7376,7380,7384],{"type":18,"tag":571,"props":7377,"children":7378},{"style":590},[7379],{"type":23,"value":5340},{"type":18,"tag":571,"props":7381,"children":7382},{"style":3356},[7383],{"type":23,"value":7047},{"type":18,"tag":571,"props":7385,"children":7386},{"style":590},[7387],{"type":23,"value":3387},{"type":18,"tag":19,"props":7389,"children":7390},{},[7391],{"type":23,"value":7392},"This should all do the job! We now need an endpoint to send the signup request to, along with the users actual email address.",{"type":18,"tag":39,"props":7394,"children":7396},{"id":7395},"backend-with-resend",[7397],{"type":23,"value":7398},"Backend with Resend",{"type":18,"tag":19,"props":7400,"children":7401},{},[7402,7404,7411,7413,7420],{"type":23,"value":7403},"Now we can implement Resends logic. First we need ",{"type":18,"tag":70,"props":7405,"children":7408},{"href":7406,"rel":7407},"https://resend.com/signup",[200],[7409],{"type":23,"value":7410},"create an account with Resend",{"type":23,"value":7412}," and ",{"type":18,"tag":70,"props":7414,"children":7417},{"href":7415,"rel":7416},"https://resend.com/docs/dashboard/api-keys/introduction",[200],[7418],{"type":23,"value":7419},"get your API key",{"type":23,"value":205},{"type":18,"tag":19,"props":7422,"children":7423},{},[7424,7426,7432],{"type":23,"value":7425},"Once you have your API key. You should create a ",{"type":18,"tag":480,"props":7427,"children":7429},{"className":7428},[],[7430],{"type":23,"value":7431},".env",{"type":23,"value":7433}," file at the root of your directory and add the API key here.",{"type":18,"tag":5868,"props":7435,"children":7436},{},[7437],{"type":18,"tag":561,"props":7438,"children":7440},{"className":5873,"code":7439,"filename":7431,"language":5876,"meta":8,"style":8},"RESEND_API_KEY=you_key_goes_here\n",[7441],{"type":18,"tag":480,"props":7442,"children":7443},{"__ignoreMap":8},[7444],{"type":18,"tag":571,"props":7445,"children":7446},{"class":573,"line":574},[7447,7452,7456],{"type":18,"tag":571,"props":7448,"children":7449},{"style":590},[7450],{"type":23,"value":7451},"RESEND_API_KEY",{"type":18,"tag":571,"props":7453,"children":7454},{"style":578},[7455],{"type":23,"value":608},{"type":18,"tag":571,"props":7457,"children":7458},{"style":784},[7459],{"type":23,"value":7460},"you_key_goes_here\n",{"type":18,"tag":19,"props":7462,"children":7463},{},[7464],{"type":23,"value":7465},"Now we need to create an endpoint that will handle adding the email address to our resend audience and sending them a thankyou email.",{"type":18,"tag":19,"props":7467,"children":7468},{},[7469,7471,7477],{"type":23,"value":7470},"Create a new file in ",{"type":18,"tag":480,"props":7472,"children":7474},{"className":7473},[],[7475],{"type":23,"value":7476},"server/api/newsletter.post.ts",{"type":23,"value":7478}," and add the following code.",{"type":18,"tag":561,"props":7480,"children":7482},{"className":563,"code":7481,"language":565,"meta":8,"style":8},"import { Resend } from \"resend\";\n\nexport default defineEventHandler(async (event: any) => {\n  const resend = new Resend(process.env.RESNED_API_KEY);\n  const { email } = await readBody(event);\n\n  try {\n    const { error } = await resend.contacts.create({\n      email,\n      unsubscribed: false,\n      audienceId: YOUR_AUDIENCE_ID,\n    });\n\n    if (error) {\n      return {\n        statusCode: 400,\n        body: error.message,\n      };\n    }\n\n    await resend.emails.send({\n      from: \"onboarding@resend.dev\",\n      to: email,\n      subject: \"Hello\",\n      html: \"\u003Cp>Thank you for joining my newsletter\u003C/p>\",\n    });\n\n    return {\n      statusCode: 200,\n      body: \"You have been added to the newsletter\",\n    };\n  } catch (err) {\n    return {\n      statusCode: 500,\n      body: \"Internal Server Error\",\n    };\n  }\n});\n",[7483],{"type":18,"tag":480,"props":7484,"children":7485},{"__ignoreMap":8},[7486,7513,7520,7575,7616,7657,7664,7676,7719,7727,7744,7761,7769,7776,7789,7801,7818,7826,7834,7842,7849,7871,7888,7896,7913,7930,7937,7944,7956,7973,7990,7998,8016,8027,8042,8058,8065,8072],{"type":18,"tag":571,"props":7487,"children":7488},{"class":573,"line":574},[7489,7494,7499,7504,7509],{"type":18,"tag":571,"props":7490,"children":7491},{"style":578},[7492],{"type":23,"value":7493},"import",{"type":18,"tag":571,"props":7495,"children":7496},{"style":590},[7497],{"type":23,"value":7498}," { Resend } ",{"type":18,"tag":571,"props":7500,"children":7501},{"style":578},[7502],{"type":23,"value":7503},"from",{"type":18,"tag":571,"props":7505,"children":7506},{"style":784},[7507],{"type":23,"value":7508}," \"resend\"",{"type":18,"tag":571,"props":7510,"children":7511},{"style":590},[7512],{"type":23,"value":650},{"type":18,"tag":571,"props":7514,"children":7515},{"class":573,"line":169},[7516],{"type":18,"tag":571,"props":7517,"children":7518},{"emptyLinePlaceholder":656},[7519],{"type":23,"value":659},{"type":18,"tag":571,"props":7521,"children":7522},{"class":573,"line":174},[7523,7527,7531,7536,7540,7545,7550,7554,7558,7563,7567,7571],{"type":18,"tag":571,"props":7524,"children":7525},{"style":578},[7526],{"type":23,"value":667},{"type":18,"tag":571,"props":7528,"children":7529},{"style":578},[7530],{"type":23,"value":6468},{"type":18,"tag":571,"props":7532,"children":7533},{"style":584},[7534],{"type":23,"value":7535}," defineEventHandler",{"type":18,"tag":571,"props":7537,"children":7538},{"style":590},[7539],{"type":23,"value":682},{"type":18,"tag":571,"props":7541,"children":7542},{"style":578},[7543],{"type":23,"value":7544},"async",{"type":18,"tag":571,"props":7546,"children":7547},{"style":590},[7548],{"type":23,"value":7549}," (",{"type":18,"tag":571,"props":7551,"children":7552},{"style":616},[7553],{"type":23,"value":2356},{"type":18,"tag":571,"props":7555,"children":7556},{"style":578},[7557],{"type":23,"value":624},{"type":18,"tag":571,"props":7559,"children":7560},{"style":642},[7561],{"type":23,"value":7562}," any",{"type":18,"tag":571,"props":7564,"children":7565},{"style":590},[7566],{"type":23,"value":1544},{"type":18,"tag":571,"props":7568,"children":7569},{"style":578},[7570],{"type":23,"value":639},{"type":18,"tag":571,"props":7572,"children":7573},{"style":590},[7574],{"type":23,"value":2993},{"type":18,"tag":571,"props":7576,"children":7577},{"class":573,"line":714},[7578,7583,7588,7592,7597,7602,7607,7612],{"type":18,"tag":571,"props":7579,"children":7580},{"style":578},[7581],{"type":23,"value":7582},"  const",{"type":18,"tag":571,"props":7584,"children":7585},{"style":642},[7586],{"type":23,"value":7587}," resend",{"type":18,"tag":571,"props":7589,"children":7590},{"style":578},[7591],{"type":23,"value":1526},{"type":18,"tag":571,"props":7593,"children":7594},{"style":578},[7595],{"type":23,"value":7596}," new",{"type":18,"tag":571,"props":7598,"children":7599},{"style":584},[7600],{"type":23,"value":7601}," Resend",{"type":18,"tag":571,"props":7603,"children":7604},{"style":590},[7605],{"type":23,"value":7606},"(process.env.",{"type":18,"tag":571,"props":7608,"children":7609},{"style":642},[7610],{"type":23,"value":7611},"RESNED_API_KEY",{"type":18,"tag":571,"props":7613,"children":7614},{"style":590},[7615],{"type":23,"value":792},{"type":18,"tag":571,"props":7617,"children":7618},{"class":573,"line":761},[7619,7623,7628,7633,7638,7642,7647,7652],{"type":18,"tag":571,"props":7620,"children":7621},{"style":578},[7622],{"type":23,"value":7582},{"type":18,"tag":571,"props":7624,"children":7625},{"style":590},[7626],{"type":23,"value":7627}," { ",{"type":18,"tag":571,"props":7629,"children":7630},{"style":642},[7631],{"type":23,"value":7632},"email",{"type":18,"tag":571,"props":7634,"children":7635},{"style":590},[7636],{"type":23,"value":7637}," } ",{"type":18,"tag":571,"props":7639,"children":7640},{"style":578},[7641],{"type":23,"value":608},{"type":18,"tag":571,"props":7643,"children":7644},{"style":578},[7645],{"type":23,"value":7646}," await",{"type":18,"tag":571,"props":7648,"children":7649},{"style":584},[7650],{"type":23,"value":7651}," readBody",{"type":18,"tag":571,"props":7653,"children":7654},{"style":590},[7655],{"type":23,"value":7656},"(event);\n",{"type":18,"tag":571,"props":7658,"children":7659},{"class":573,"line":795},[7660],{"type":18,"tag":571,"props":7661,"children":7662},{"emptyLinePlaceholder":656},[7663],{"type":23,"value":659},{"type":18,"tag":571,"props":7665,"children":7666},{"class":573,"line":804},[7667,7672],{"type":18,"tag":571,"props":7668,"children":7669},{"style":578},[7670],{"type":23,"value":7671},"  try",{"type":18,"tag":571,"props":7673,"children":7674},{"style":590},[7675],{"type":23,"value":2993},{"type":18,"tag":571,"props":7677,"children":7678},{"class":573,"line":812},[7679,7684,7688,7693,7697,7701,7705,7710,7715],{"type":18,"tag":571,"props":7680,"children":7681},{"style":578},[7682],{"type":23,"value":7683},"    const",{"type":18,"tag":571,"props":7685,"children":7686},{"style":590},[7687],{"type":23,"value":7627},{"type":18,"tag":571,"props":7689,"children":7690},{"style":642},[7691],{"type":23,"value":7692},"error",{"type":18,"tag":571,"props":7694,"children":7695},{"style":590},[7696],{"type":23,"value":7637},{"type":18,"tag":571,"props":7698,"children":7699},{"style":578},[7700],{"type":23,"value":608},{"type":18,"tag":571,"props":7702,"children":7703},{"style":578},[7704],{"type":23,"value":7646},{"type":18,"tag":571,"props":7706,"children":7707},{"style":590},[7708],{"type":23,"value":7709}," resend.contacts.",{"type":18,"tag":571,"props":7711,"children":7712},{"style":584},[7713],{"type":23,"value":7714},"create",{"type":18,"tag":571,"props":7716,"children":7717},{"style":590},[7718],{"type":23,"value":6478},{"type":18,"tag":571,"props":7720,"children":7721},{"class":573,"line":835},[7722],{"type":18,"tag":571,"props":7723,"children":7724},{"style":590},[7725],{"type":23,"value":7726},"      email,\n",{"type":18,"tag":571,"props":7728,"children":7729},{"class":573,"line":880},[7730,7735,7740],{"type":18,"tag":571,"props":7731,"children":7732},{"style":590},[7733],{"type":23,"value":7734},"      unsubscribed: ",{"type":18,"tag":571,"props":7736,"children":7737},{"style":642},[7738],{"type":23,"value":7739},"false",{"type":18,"tag":571,"props":7741,"children":7742},{"style":590},[7743],{"type":23,"value":3163},{"type":18,"tag":571,"props":7745,"children":7746},{"class":573,"line":888},[7747,7752,7757],{"type":18,"tag":571,"props":7748,"children":7749},{"style":590},[7750],{"type":23,"value":7751},"      audienceId: ",{"type":18,"tag":571,"props":7753,"children":7754},{"style":642},[7755],{"type":23,"value":7756},"YOUR_AUDIENCE_ID",{"type":18,"tag":571,"props":7758,"children":7759},{"style":590},[7760],{"type":23,"value":3163},{"type":18,"tag":571,"props":7762,"children":7763},{"class":573,"line":898},[7764],{"type":18,"tag":571,"props":7765,"children":7766},{"style":590},[7767],{"type":23,"value":7768},"    });\n",{"type":18,"tag":571,"props":7770,"children":7771},{"class":573,"line":917},[7772],{"type":18,"tag":571,"props":7773,"children":7774},{"emptyLinePlaceholder":656},[7775],{"type":23,"value":659},{"type":18,"tag":571,"props":7777,"children":7778},{"class":573,"line":931},[7779,7784],{"type":18,"tag":571,"props":7780,"children":7781},{"style":578},[7782],{"type":23,"value":7783},"    if",{"type":18,"tag":571,"props":7785,"children":7786},{"style":590},[7787],{"type":23,"value":7788}," (error) {\n",{"type":18,"tag":571,"props":7790,"children":7791},{"class":573,"line":939},[7792,7797],{"type":18,"tag":571,"props":7793,"children":7794},{"style":578},[7795],{"type":23,"value":7796},"      return",{"type":18,"tag":571,"props":7798,"children":7799},{"style":590},[7800],{"type":23,"value":2993},{"type":18,"tag":571,"props":7802,"children":7803},{"class":573,"line":947},[7804,7809,7814],{"type":18,"tag":571,"props":7805,"children":7806},{"style":590},[7807],{"type":23,"value":7808},"        statusCode: ",{"type":18,"tag":571,"props":7810,"children":7811},{"style":642},[7812],{"type":23,"value":7813},"400",{"type":18,"tag":571,"props":7815,"children":7816},{"style":590},[7817],{"type":23,"value":3163},{"type":18,"tag":571,"props":7819,"children":7820},{"class":573,"line":956},[7821],{"type":18,"tag":571,"props":7822,"children":7823},{"style":590},[7824],{"type":23,"value":7825},"        body: error.message,\n",{"type":18,"tag":571,"props":7827,"children":7828},{"class":573,"line":991},[7829],{"type":18,"tag":571,"props":7830,"children":7831},{"style":590},[7832],{"type":23,"value":7833},"      };\n",{"type":18,"tag":571,"props":7835,"children":7836},{"class":573,"line":1015},[7837],{"type":18,"tag":571,"props":7838,"children":7839},{"style":590},[7840],{"type":23,"value":7841},"    }\n",{"type":18,"tag":571,"props":7843,"children":7844},{"class":573,"line":1033},[7845],{"type":18,"tag":571,"props":7846,"children":7847},{"emptyLinePlaceholder":656},[7848],{"type":23,"value":659},{"type":18,"tag":571,"props":7850,"children":7851},{"class":573,"line":1075},[7852,7857,7862,7867],{"type":18,"tag":571,"props":7853,"children":7854},{"style":578},[7855],{"type":23,"value":7856},"    await",{"type":18,"tag":571,"props":7858,"children":7859},{"style":590},[7860],{"type":23,"value":7861}," resend.emails.",{"type":18,"tag":571,"props":7863,"children":7864},{"style":584},[7865],{"type":23,"value":7866},"send",{"type":18,"tag":571,"props":7868,"children":7869},{"style":590},[7870],{"type":23,"value":6478},{"type":18,"tag":571,"props":7872,"children":7873},{"class":573,"line":1084},[7874,7879,7884],{"type":18,"tag":571,"props":7875,"children":7876},{"style":590},[7877],{"type":23,"value":7878},"      from: ",{"type":18,"tag":571,"props":7880,"children":7881},{"style":784},[7882],{"type":23,"value":7883},"\"onboarding@resend.dev\"",{"type":18,"tag":571,"props":7885,"children":7886},{"style":590},[7887],{"type":23,"value":3163},{"type":18,"tag":571,"props":7889,"children":7890},{"class":573,"line":1092},[7891],{"type":18,"tag":571,"props":7892,"children":7893},{"style":590},[7894],{"type":23,"value":7895},"      to: email,\n",{"type":18,"tag":571,"props":7897,"children":7898},{"class":573,"line":1100},[7899,7904,7909],{"type":18,"tag":571,"props":7900,"children":7901},{"style":590},[7902],{"type":23,"value":7903},"      subject: ",{"type":18,"tag":571,"props":7905,"children":7906},{"style":784},[7907],{"type":23,"value":7908},"\"Hello\"",{"type":18,"tag":571,"props":7910,"children":7911},{"style":590},[7912],{"type":23,"value":3163},{"type":18,"tag":571,"props":7914,"children":7915},{"class":573,"line":1109},[7916,7921,7926],{"type":18,"tag":571,"props":7917,"children":7918},{"style":590},[7919],{"type":23,"value":7920},"      html: ",{"type":18,"tag":571,"props":7922,"children":7923},{"style":784},[7924],{"type":23,"value":7925},"\"\u003Cp>Thank you for joining my newsletter\u003C/p>\"",{"type":18,"tag":571,"props":7927,"children":7928},{"style":590},[7929],{"type":23,"value":3163},{"type":18,"tag":571,"props":7931,"children":7932},{"class":573,"line":1151},[7933],{"type":18,"tag":571,"props":7934,"children":7935},{"style":590},[7936],{"type":23,"value":7768},{"type":18,"tag":571,"props":7938,"children":7939},{"class":573,"line":1170},[7940],{"type":18,"tag":571,"props":7941,"children":7942},{"emptyLinePlaceholder":656},[7943],{"type":23,"value":659},{"type":18,"tag":571,"props":7945,"children":7946},{"class":573,"line":1192},[7947,7952],{"type":18,"tag":571,"props":7948,"children":7949},{"style":578},[7950],{"type":23,"value":7951},"    return",{"type":18,"tag":571,"props":7953,"children":7954},{"style":590},[7955],{"type":23,"value":2993},{"type":18,"tag":571,"props":7957,"children":7958},{"class":573,"line":1225},[7959,7964,7969],{"type":18,"tag":571,"props":7960,"children":7961},{"style":590},[7962],{"type":23,"value":7963},"      statusCode: ",{"type":18,"tag":571,"props":7965,"children":7966},{"style":642},[7967],{"type":23,"value":7968},"200",{"type":18,"tag":571,"props":7970,"children":7971},{"style":590},[7972],{"type":23,"value":3163},{"type":18,"tag":571,"props":7974,"children":7975},{"class":573,"line":1257},[7976,7981,7986],{"type":18,"tag":571,"props":7977,"children":7978},{"style":590},[7979],{"type":23,"value":7980},"      body: ",{"type":18,"tag":571,"props":7982,"children":7983},{"style":784},[7984],{"type":23,"value":7985},"\"You have been added to the newsletter\"",{"type":18,"tag":571,"props":7987,"children":7988},{"style":590},[7989],{"type":23,"value":3163},{"type":18,"tag":571,"props":7991,"children":7992},{"class":573,"line":1284},[7993],{"type":18,"tag":571,"props":7994,"children":7995},{"style":590},[7996],{"type":23,"value":7997},"    };\n",{"type":18,"tag":571,"props":7999,"children":8000},{"class":573,"line":1293},[8001,8006,8011],{"type":18,"tag":571,"props":8002,"children":8003},{"style":590},[8004],{"type":23,"value":8005},"  } ",{"type":18,"tag":571,"props":8007,"children":8008},{"style":578},[8009],{"type":23,"value":8010},"catch",{"type":18,"tag":571,"props":8012,"children":8013},{"style":590},[8014],{"type":23,"value":8015}," (err) {\n",{"type":18,"tag":571,"props":8017,"children":8018},{"class":573,"line":1302},[8019,8023],{"type":18,"tag":571,"props":8020,"children":8021},{"style":578},[8022],{"type":23,"value":7951},{"type":18,"tag":571,"props":8024,"children":8025},{"style":590},[8026],{"type":23,"value":2993},{"type":18,"tag":571,"props":8028,"children":8029},{"class":573,"line":1310},[8030,8034,8038],{"type":18,"tag":571,"props":8031,"children":8032},{"style":590},[8033],{"type":23,"value":7963},{"type":18,"tag":571,"props":8035,"children":8036},{"style":642},[8037],{"type":23,"value":5675},{"type":18,"tag":571,"props":8039,"children":8040},{"style":590},[8041],{"type":23,"value":3163},{"type":18,"tag":571,"props":8043,"children":8044},{"class":573,"line":1318},[8045,8049,8054],{"type":18,"tag":571,"props":8046,"children":8047},{"style":590},[8048],{"type":23,"value":7980},{"type":18,"tag":571,"props":8050,"children":8051},{"style":784},[8052],{"type":23,"value":8053},"\"Internal Server Error\"",{"type":18,"tag":571,"props":8055,"children":8056},{"style":590},[8057],{"type":23,"value":3163},{"type":18,"tag":571,"props":8059,"children":8060},{"class":573,"line":1332},[8061],{"type":18,"tag":571,"props":8062,"children":8063},{"style":590},[8064],{"type":23,"value":7997},{"type":18,"tag":571,"props":8066,"children":8067},{"class":573,"line":3957},[8068],{"type":18,"tag":571,"props":8069,"children":8070},{"style":590},[8071],{"type":23,"value":3828},{"type":18,"tag":571,"props":8073,"children":8074},{"class":573,"line":3970},[8075],{"type":18,"tag":571,"props":8076,"children":8077},{"style":590},[8078],{"type":23,"value":2184},{"type":18,"tag":19,"props":8080,"children":8081},{},[8082],{"type":23,"value":8083},"Finally all that is left to do is to hook the frontend up to this api call",{"type":18,"tag":561,"props":8085,"children":8087},{"className":563,"code":8086,"language":565,"meta":8,"style":8},"const handleSubmitNewsletter = async (email: string) => {\n  const response = await $fetch(\"/api/newsletter\", {\n    method: \"POST\",\n    body: { email },\n  });\n\n  if (response.statusCode === 200) {\n    toast(response.body);\n  } else {\n    toast(\"Error\", {\n      description: response.body || \"An error occurred\",\n    });\n  }\n};\n",[8088],{"type":18,"tag":480,"props":8089,"children":8090},{"__ignoreMap":8},[8091,8141,8180,8197,8205,8213,8220,8247,8260,8276,8296,8318,8325,8332],{"type":18,"tag":571,"props":8092,"children":8093},{"class":573,"line":574},[8094,8098,8103,8107,8112,8116,8120,8124,8129,8133,8137],{"type":18,"tag":571,"props":8095,"children":8096},{"style":578},[8097],{"type":23,"value":1516},{"type":18,"tag":571,"props":8099,"children":8100},{"style":584},[8101],{"type":23,"value":8102}," handleSubmitNewsletter",{"type":18,"tag":571,"props":8104,"children":8105},{"style":578},[8106],{"type":23,"value":1526},{"type":18,"tag":571,"props":8108,"children":8109},{"style":578},[8110],{"type":23,"value":8111}," async",{"type":18,"tag":571,"props":8113,"children":8114},{"style":590},[8115],{"type":23,"value":7549},{"type":18,"tag":571,"props":8117,"children":8118},{"style":616},[8119],{"type":23,"value":7632},{"type":18,"tag":571,"props":8121,"children":8122},{"style":578},[8123],{"type":23,"value":624},{"type":18,"tag":571,"props":8125,"children":8126},{"style":642},[8127],{"type":23,"value":8128}," string",{"type":18,"tag":571,"props":8130,"children":8131},{"style":590},[8132],{"type":23,"value":1544},{"type":18,"tag":571,"props":8134,"children":8135},{"style":578},[8136],{"type":23,"value":639},{"type":18,"tag":571,"props":8138,"children":8139},{"style":590},[8140],{"type":23,"value":2993},{"type":18,"tag":571,"props":8142,"children":8143},{"class":573,"line":169},[8144,8148,8153,8157,8161,8166,8170,8175],{"type":18,"tag":571,"props":8145,"children":8146},{"style":578},[8147],{"type":23,"value":7582},{"type":18,"tag":571,"props":8149,"children":8150},{"style":642},[8151],{"type":23,"value":8152}," response",{"type":18,"tag":571,"props":8154,"children":8155},{"style":578},[8156],{"type":23,"value":1526},{"type":18,"tag":571,"props":8158,"children":8159},{"style":578},[8160],{"type":23,"value":7646},{"type":18,"tag":571,"props":8162,"children":8163},{"style":584},[8164],{"type":23,"value":8165}," $fetch",{"type":18,"tag":571,"props":8167,"children":8168},{"style":590},[8169],{"type":23,"value":682},{"type":18,"tag":571,"props":8171,"children":8172},{"style":784},[8173],{"type":23,"value":8174},"\"/api/newsletter\"",{"type":18,"tag":571,"props":8176,"children":8177},{"style":590},[8178],{"type":23,"value":8179},", {\n",{"type":18,"tag":571,"props":8181,"children":8182},{"class":573,"line":174},[8183,8188,8193],{"type":18,"tag":571,"props":8184,"children":8185},{"style":590},[8186],{"type":23,"value":8187},"    method: ",{"type":18,"tag":571,"props":8189,"children":8190},{"style":784},[8191],{"type":23,"value":8192},"\"POST\"",{"type":18,"tag":571,"props":8194,"children":8195},{"style":590},[8196],{"type":23,"value":3163},{"type":18,"tag":571,"props":8198,"children":8199},{"class":573,"line":714},[8200],{"type":18,"tag":571,"props":8201,"children":8202},{"style":590},[8203],{"type":23,"value":8204},"    body: { email },\n",{"type":18,"tag":571,"props":8206,"children":8207},{"class":573,"line":761},[8208],{"type":18,"tag":571,"props":8209,"children":8210},{"style":590},[8211],{"type":23,"value":8212},"  });\n",{"type":18,"tag":571,"props":8214,"children":8215},{"class":573,"line":795},[8216],{"type":18,"tag":571,"props":8217,"children":8218},{"emptyLinePlaceholder":656},[8219],{"type":23,"value":659},{"type":18,"tag":571,"props":8221,"children":8222},{"class":573,"line":804},[8223,8228,8233,8237,8242],{"type":18,"tag":571,"props":8224,"children":8225},{"style":578},[8226],{"type":23,"value":8227},"  if",{"type":18,"tag":571,"props":8229,"children":8230},{"style":590},[8231],{"type":23,"value":8232}," (response.statusCode ",{"type":18,"tag":571,"props":8234,"children":8235},{"style":578},[8236],{"type":23,"value":730},{"type":18,"tag":571,"props":8238,"children":8239},{"style":642},[8240],{"type":23,"value":8241}," 200",{"type":18,"tag":571,"props":8243,"children":8244},{"style":590},[8245],{"type":23,"value":8246},") {\n",{"type":18,"tag":571,"props":8248,"children":8249},{"class":573,"line":812},[8250,8255],{"type":18,"tag":571,"props":8251,"children":8252},{"style":584},[8253],{"type":23,"value":8254},"    toast",{"type":18,"tag":571,"props":8256,"children":8257},{"style":590},[8258],{"type":23,"value":8259},"(response.body);\n",{"type":18,"tag":571,"props":8261,"children":8262},{"class":573,"line":835},[8263,8267,8272],{"type":18,"tag":571,"props":8264,"children":8265},{"style":590},[8266],{"type":23,"value":8005},{"type":18,"tag":571,"props":8268,"children":8269},{"style":578},[8270],{"type":23,"value":8271},"else",{"type":18,"tag":571,"props":8273,"children":8274},{"style":590},[8275],{"type":23,"value":2993},{"type":18,"tag":571,"props":8277,"children":8278},{"class":573,"line":880},[8279,8283,8287,8292],{"type":18,"tag":571,"props":8280,"children":8281},{"style":584},[8282],{"type":23,"value":8254},{"type":18,"tag":571,"props":8284,"children":8285},{"style":590},[8286],{"type":23,"value":682},{"type":18,"tag":571,"props":8288,"children":8289},{"style":784},[8290],{"type":23,"value":8291},"\"Error\"",{"type":18,"tag":571,"props":8293,"children":8294},{"style":590},[8295],{"type":23,"value":8179},{"type":18,"tag":571,"props":8297,"children":8298},{"class":573,"line":888},[8299,8304,8309,8314],{"type":18,"tag":571,"props":8300,"children":8301},{"style":590},[8302],{"type":23,"value":8303},"      description: response.body ",{"type":18,"tag":571,"props":8305,"children":8306},{"style":578},[8307],{"type":23,"value":8308},"||",{"type":18,"tag":571,"props":8310,"children":8311},{"style":784},[8312],{"type":23,"value":8313}," \"An error occurred\"",{"type":18,"tag":571,"props":8315,"children":8316},{"style":590},[8317],{"type":23,"value":3163},{"type":18,"tag":571,"props":8319,"children":8320},{"class":573,"line":898},[8321],{"type":18,"tag":571,"props":8322,"children":8323},{"style":590},[8324],{"type":23,"value":7768},{"type":18,"tag":571,"props":8326,"children":8327},{"class":573,"line":917},[8328],{"type":18,"tag":571,"props":8329,"children":8330},{"style":590},[8331],{"type":23,"value":3828},{"type":18,"tag":571,"props":8333,"children":8334},{"class":573,"line":931},[8335],{"type":18,"tag":571,"props":8336,"children":8337},{"style":590},[8338],{"type":23,"value":8339},"};\n",{"type":18,"tag":19,"props":8341,"children":8342},{},[8343],{"type":23,"value":8344},"Now just add this function to your current frontend",{"type":18,"tag":561,"props":8346,"children":8348},{"className":7029,"code":8347,"language":7031,"meta":8,"style":8},"\u003Cscript lang=\"ts\" setup>\nconst email = ref\u003Cstring | null>(null);\nconst handleSubmitNewsletter = async (email: string) => {\n  const response = await $fetch(\"/api/newsletter\", {\n    method: \"POST\",\n    body: { email },\n  });\n\n  if (response.statusCode === 200) {\n    toast(response.body);\n  } else {\n    toast(\"Error\", {\n      description: response.body || \"An error occurred\",\n    });\n  }\n};\n\u003C/script>\n\n\u003Ctemplate>\n  \u003Cdiv class=\"space-x-2 max-w-md mx-auto my-auto mt-20 border border-border px-6 py-12  rounded-lg\">\n    \u003Cp class=\"pl-2\">Hey 👋\u003C/p>\n    \u003Ch1 class=\"text-3xl font-extrabold  mb-2\">Join my newsletter!\u003C/h1>\n    \u003Cp class=\" mb-16\">We talk about \u003Ci>amazing things\u003C/i>, delivered to your inbox \u003Cb>every Saturday\u003C/b>.\u003C/p>\n    \u003Cdiv class=\"flex gap-2 \">\n\n\n    \u003CInput type=\"email\" placeholder=\"Your email\" v-model=\"email\"/>\n    \u003CButton @click=\"handleSubmitNewsletter(email)\">Join newsletter\u003C/Button>\n    \u003C/div>\n \u003C/div>\n\u003C/template>\n",[8349],{"type":18,"tag":480,"props":8350,"children":8351},{"__ignoreMap":8},[8352,8387,8440,8487,8522,8537,8544,8551,8558,8581,8592,8607,8626,8645,8652,8659,8666,8681,8688,8703,8731,8767,8804,8872,8899,8906,8913,8975,9030,9045,9060],{"type":18,"tag":571,"props":8353,"children":8354},{"class":573,"line":574},[8355,8359,8364,8369,8373,8378,8383],{"type":18,"tag":571,"props":8356,"children":8357},{"style":590},[8358],{"type":23,"value":593},{"type":18,"tag":571,"props":8360,"children":8361},{"style":3356},[8362],{"type":23,"value":8363},"script",{"type":18,"tag":571,"props":8365,"children":8366},{"style":584},[8367],{"type":23,"value":8368}," lang",{"type":18,"tag":571,"props":8370,"children":8371},{"style":590},[8372],{"type":23,"value":608},{"type":18,"tag":571,"props":8374,"children":8375},{"style":784},[8376],{"type":23,"value":8377},"\"ts\"",{"type":18,"tag":571,"props":8379,"children":8380},{"style":584},[8381],{"type":23,"value":8382}," setup",{"type":18,"tag":571,"props":8384,"children":8385},{"style":590},[8386],{"type":23,"value":3387},{"type":18,"tag":571,"props":8388,"children":8389},{"class":573,"line":169},[8390,8394,8399,8403,8408,8412,8417,8422,8427,8431,8436],{"type":18,"tag":571,"props":8391,"children":8392},{"style":578},[8393],{"type":23,"value":1516},{"type":18,"tag":571,"props":8395,"children":8396},{"style":642},[8397],{"type":23,"value":8398}," email",{"type":18,"tag":571,"props":8400,"children":8401},{"style":578},[8402],{"type":23,"value":1526},{"type":18,"tag":571,"props":8404,"children":8405},{"style":584},[8406],{"type":23,"value":8407}," ref",{"type":18,"tag":571,"props":8409,"children":8410},{"style":590},[8411],{"type":23,"value":593},{"type":18,"tag":571,"props":8413,"children":8414},{"style":642},[8415],{"type":23,"value":8416},"string",{"type":18,"tag":571,"props":8418,"children":8419},{"style":578},[8420],{"type":23,"value":8421}," |",{"type":18,"tag":571,"props":8423,"children":8424},{"style":642},[8425],{"type":23,"value":8426}," null",{"type":18,"tag":571,"props":8428,"children":8429},{"style":590},[8430],{"type":23,"value":1688},{"type":18,"tag":571,"props":8432,"children":8433},{"style":642},[8434],{"type":23,"value":8435},"null",{"type":18,"tag":571,"props":8437,"children":8438},{"style":590},[8439],{"type":23,"value":792},{"type":18,"tag":571,"props":8441,"children":8442},{"class":573,"line":174},[8443,8447,8451,8455,8459,8463,8467,8471,8475,8479,8483],{"type":18,"tag":571,"props":8444,"children":8445},{"style":578},[8446],{"type":23,"value":1516},{"type":18,"tag":571,"props":8448,"children":8449},{"style":584},[8450],{"type":23,"value":8102},{"type":18,"tag":571,"props":8452,"children":8453},{"style":578},[8454],{"type":23,"value":1526},{"type":18,"tag":571,"props":8456,"children":8457},{"style":578},[8458],{"type":23,"value":8111},{"type":18,"tag":571,"props":8460,"children":8461},{"style":590},[8462],{"type":23,"value":7549},{"type":18,"tag":571,"props":8464,"children":8465},{"style":616},[8466],{"type":23,"value":7632},{"type":18,"tag":571,"props":8468,"children":8469},{"style":578},[8470],{"type":23,"value":624},{"type":18,"tag":571,"props":8472,"children":8473},{"style":642},[8474],{"type":23,"value":8128},{"type":18,"tag":571,"props":8476,"children":8477},{"style":590},[8478],{"type":23,"value":1544},{"type":18,"tag":571,"props":8480,"children":8481},{"style":578},[8482],{"type":23,"value":639},{"type":18,"tag":571,"props":8484,"children":8485},{"style":590},[8486],{"type":23,"value":2993},{"type":18,"tag":571,"props":8488,"children":8489},{"class":573,"line":714},[8490,8494,8498,8502,8506,8510,8514,8518],{"type":18,"tag":571,"props":8491,"children":8492},{"style":578},[8493],{"type":23,"value":7582},{"type":18,"tag":571,"props":8495,"children":8496},{"style":642},[8497],{"type":23,"value":8152},{"type":18,"tag":571,"props":8499,"children":8500},{"style":578},[8501],{"type":23,"value":1526},{"type":18,"tag":571,"props":8503,"children":8504},{"style":578},[8505],{"type":23,"value":7646},{"type":18,"tag":571,"props":8507,"children":8508},{"style":584},[8509],{"type":23,"value":8165},{"type":18,"tag":571,"props":8511,"children":8512},{"style":590},[8513],{"type":23,"value":682},{"type":18,"tag":571,"props":8515,"children":8516},{"style":784},[8517],{"type":23,"value":8174},{"type":18,"tag":571,"props":8519,"children":8520},{"style":590},[8521],{"type":23,"value":8179},{"type":18,"tag":571,"props":8523,"children":8524},{"class":573,"line":761},[8525,8529,8533],{"type":18,"tag":571,"props":8526,"children":8527},{"style":590},[8528],{"type":23,"value":8187},{"type":18,"tag":571,"props":8530,"children":8531},{"style":784},[8532],{"type":23,"value":8192},{"type":18,"tag":571,"props":8534,"children":8535},{"style":590},[8536],{"type":23,"value":3163},{"type":18,"tag":571,"props":8538,"children":8539},{"class":573,"line":795},[8540],{"type":18,"tag":571,"props":8541,"children":8542},{"style":590},[8543],{"type":23,"value":8204},{"type":18,"tag":571,"props":8545,"children":8546},{"class":573,"line":804},[8547],{"type":18,"tag":571,"props":8548,"children":8549},{"style":590},[8550],{"type":23,"value":8212},{"type":18,"tag":571,"props":8552,"children":8553},{"class":573,"line":812},[8554],{"type":18,"tag":571,"props":8555,"children":8556},{"emptyLinePlaceholder":656},[8557],{"type":23,"value":659},{"type":18,"tag":571,"props":8559,"children":8560},{"class":573,"line":835},[8561,8565,8569,8573,8577],{"type":18,"tag":571,"props":8562,"children":8563},{"style":578},[8564],{"type":23,"value":8227},{"type":18,"tag":571,"props":8566,"children":8567},{"style":590},[8568],{"type":23,"value":8232},{"type":18,"tag":571,"props":8570,"children":8571},{"style":578},[8572],{"type":23,"value":730},{"type":18,"tag":571,"props":8574,"children":8575},{"style":642},[8576],{"type":23,"value":8241},{"type":18,"tag":571,"props":8578,"children":8579},{"style":590},[8580],{"type":23,"value":8246},{"type":18,"tag":571,"props":8582,"children":8583},{"class":573,"line":880},[8584,8588],{"type":18,"tag":571,"props":8585,"children":8586},{"style":584},[8587],{"type":23,"value":8254},{"type":18,"tag":571,"props":8589,"children":8590},{"style":590},[8591],{"type":23,"value":8259},{"type":18,"tag":571,"props":8593,"children":8594},{"class":573,"line":888},[8595,8599,8603],{"type":18,"tag":571,"props":8596,"children":8597},{"style":590},[8598],{"type":23,"value":8005},{"type":18,"tag":571,"props":8600,"children":8601},{"style":578},[8602],{"type":23,"value":8271},{"type":18,"tag":571,"props":8604,"children":8605},{"style":590},[8606],{"type":23,"value":2993},{"type":18,"tag":571,"props":8608,"children":8609},{"class":573,"line":898},[8610,8614,8618,8622],{"type":18,"tag":571,"props":8611,"children":8612},{"style":584},[8613],{"type":23,"value":8254},{"type":18,"tag":571,"props":8615,"children":8616},{"style":590},[8617],{"type":23,"value":682},{"type":18,"tag":571,"props":8619,"children":8620},{"style":784},[8621],{"type":23,"value":8291},{"type":18,"tag":571,"props":8623,"children":8624},{"style":590},[8625],{"type":23,"value":8179},{"type":18,"tag":571,"props":8627,"children":8628},{"class":573,"line":917},[8629,8633,8637,8641],{"type":18,"tag":571,"props":8630,"children":8631},{"style":590},[8632],{"type":23,"value":8303},{"type":18,"tag":571,"props":8634,"children":8635},{"style":578},[8636],{"type":23,"value":8308},{"type":18,"tag":571,"props":8638,"children":8639},{"style":784},[8640],{"type":23,"value":8313},{"type":18,"tag":571,"props":8642,"children":8643},{"style":590},[8644],{"type":23,"value":3163},{"type":18,"tag":571,"props":8646,"children":8647},{"class":573,"line":931},[8648],{"type":18,"tag":571,"props":8649,"children":8650},{"style":590},[8651],{"type":23,"value":7768},{"type":18,"tag":571,"props":8653,"children":8654},{"class":573,"line":939},[8655],{"type":18,"tag":571,"props":8656,"children":8657},{"style":590},[8658],{"type":23,"value":3828},{"type":18,"tag":571,"props":8660,"children":8661},{"class":573,"line":947},[8662],{"type":18,"tag":571,"props":8663,"children":8664},{"style":590},[8665],{"type":23,"value":8339},{"type":18,"tag":571,"props":8667,"children":8668},{"class":573,"line":956},[8669,8673,8677],{"type":18,"tag":571,"props":8670,"children":8671},{"style":590},[8672],{"type":23,"value":5340},{"type":18,"tag":571,"props":8674,"children":8675},{"style":3356},[8676],{"type":23,"value":8363},{"type":18,"tag":571,"props":8678,"children":8679},{"style":590},[8680],{"type":23,"value":3387},{"type":18,"tag":571,"props":8682,"children":8683},{"class":573,"line":991},[8684],{"type":18,"tag":571,"props":8685,"children":8686},{"emptyLinePlaceholder":656},[8687],{"type":23,"value":659},{"type":18,"tag":571,"props":8689,"children":8690},{"class":573,"line":1015},[8691,8695,8699],{"type":18,"tag":571,"props":8692,"children":8693},{"style":590},[8694],{"type":23,"value":593},{"type":18,"tag":571,"props":8696,"children":8697},{"style":3356},[8698],{"type":23,"value":7047},{"type":18,"tag":571,"props":8700,"children":8701},{"style":590},[8702],{"type":23,"value":3387},{"type":18,"tag":571,"props":8704,"children":8705},{"class":573,"line":1033},[8706,8710,8714,8718,8722,8727],{"type":18,"tag":571,"props":8707,"children":8708},{"style":590},[8709],{"type":23,"value":5034},{"type":18,"tag":571,"props":8711,"children":8712},{"style":3356},[8713],{"type":23,"value":3359},{"type":18,"tag":571,"props":8715,"children":8716},{"style":584},[8717],{"type":23,"value":3364},{"type":18,"tag":571,"props":8719,"children":8720},{"style":590},[8721],{"type":23,"value":608},{"type":18,"tag":571,"props":8723,"children":8724},{"style":784},[8725],{"type":23,"value":8726},"\"space-x-2 max-w-md mx-auto my-auto mt-20 border border-border px-6 py-12  rounded-lg\"",{"type":18,"tag":571,"props":8728,"children":8729},{"style":590},[8730],{"type":23,"value":3387},{"type":18,"tag":571,"props":8732,"children":8733},{"class":573,"line":1075},[8734,8738,8742,8746,8750,8755,8759,8763],{"type":18,"tag":571,"props":8735,"children":8736},{"style":590},[8737],{"type":23,"value":5104},{"type":18,"tag":571,"props":8739,"children":8740},{"style":3356},[8741],{"type":23,"value":19},{"type":18,"tag":571,"props":8743,"children":8744},{"style":584},[8745],{"type":23,"value":3364},{"type":18,"tag":571,"props":8747,"children":8748},{"style":590},[8749],{"type":23,"value":608},{"type":18,"tag":571,"props":8751,"children":8752},{"style":784},[8753],{"type":23,"value":8754},"\"pl-2\"",{"type":18,"tag":571,"props":8756,"children":8757},{"style":590},[8758],{"type":23,"value":7108},{"type":18,"tag":571,"props":8760,"children":8761},{"style":3356},[8762],{"type":23,"value":19},{"type":18,"tag":571,"props":8764,"children":8765},{"style":590},[8766],{"type":23,"value":3387},{"type":18,"tag":571,"props":8768,"children":8769},{"class":573,"line":1084},[8770,8774,8778,8782,8786,8791,8796,8800],{"type":18,"tag":571,"props":8771,"children":8772},{"style":590},[8773],{"type":23,"value":5104},{"type":18,"tag":571,"props":8775,"children":8776},{"style":3356},[8777],{"type":23,"value":7128},{"type":18,"tag":571,"props":8779,"children":8780},{"style":584},[8781],{"type":23,"value":3364},{"type":18,"tag":571,"props":8783,"children":8784},{"style":590},[8785],{"type":23,"value":608},{"type":18,"tag":571,"props":8787,"children":8788},{"style":784},[8789],{"type":23,"value":8790},"\"text-3xl font-extrabold  mb-2\"",{"type":18,"tag":571,"props":8792,"children":8793},{"style":590},[8794],{"type":23,"value":8795},">Join my newsletter!\u003C/",{"type":18,"tag":571,"props":8797,"children":8798},{"style":3356},[8799],{"type":23,"value":7128},{"type":18,"tag":571,"props":8801,"children":8802},{"style":590},[8803],{"type":23,"value":3387},{"type":18,"tag":571,"props":8805,"children":8806},{"class":573,"line":1092},[8807,8811,8815,8819,8823,8828,8832,8836,8840,8844,8848,8852,8856,8860,8864,8868],{"type":18,"tag":571,"props":8808,"children":8809},{"style":590},[8810],{"type":23,"value":5104},{"type":18,"tag":571,"props":8812,"children":8813},{"style":3356},[8814],{"type":23,"value":19},{"type":18,"tag":571,"props":8816,"children":8817},{"style":584},[8818],{"type":23,"value":3364},{"type":18,"tag":571,"props":8820,"children":8821},{"style":590},[8822],{"type":23,"value":608},{"type":18,"tag":571,"props":8824,"children":8825},{"style":784},[8826],{"type":23,"value":8827},"\" mb-16\"",{"type":18,"tag":571,"props":8829,"children":8830},{"style":590},[8831],{"type":23,"value":7183},{"type":18,"tag":571,"props":8833,"children":8834},{"style":3356},[8835],{"type":23,"value":7188},{"type":18,"tag":571,"props":8837,"children":8838},{"style":590},[8839],{"type":23,"value":7193},{"type":18,"tag":571,"props":8841,"children":8842},{"style":3356},[8843],{"type":23,"value":7188},{"type":18,"tag":571,"props":8845,"children":8846},{"style":590},[8847],{"type":23,"value":7202},{"type":18,"tag":571,"props":8849,"children":8850},{"style":3356},[8851],{"type":23,"value":7207},{"type":18,"tag":571,"props":8853,"children":8854},{"style":590},[8855],{"type":23,"value":7212},{"type":18,"tag":571,"props":8857,"children":8858},{"style":3356},[8859],{"type":23,"value":7207},{"type":18,"tag":571,"props":8861,"children":8862},{"style":590},[8863],{"type":23,"value":7221},{"type":18,"tag":571,"props":8865,"children":8866},{"style":3356},[8867],{"type":23,"value":19},{"type":18,"tag":571,"props":8869,"children":8870},{"style":590},[8871],{"type":23,"value":3387},{"type":18,"tag":571,"props":8873,"children":8874},{"class":573,"line":1100},[8875,8879,8883,8887,8891,8895],{"type":18,"tag":571,"props":8876,"children":8877},{"style":590},[8878],{"type":23,"value":5104},{"type":18,"tag":571,"props":8880,"children":8881},{"style":3356},[8882],{"type":23,"value":3359},{"type":18,"tag":571,"props":8884,"children":8885},{"style":584},[8886],{"type":23,"value":3364},{"type":18,"tag":571,"props":8888,"children":8889},{"style":590},[8890],{"type":23,"value":608},{"type":18,"tag":571,"props":8892,"children":8893},{"style":784},[8894],{"type":23,"value":7253},{"type":18,"tag":571,"props":8896,"children":8897},{"style":590},[8898],{"type":23,"value":3387},{"type":18,"tag":571,"props":8900,"children":8901},{"class":573,"line":1109},[8902],{"type":18,"tag":571,"props":8903,"children":8904},{"emptyLinePlaceholder":656},[8905],{"type":23,"value":659},{"type":18,"tag":571,"props":8907,"children":8908},{"class":573,"line":1151},[8909],{"type":18,"tag":571,"props":8910,"children":8911},{"emptyLinePlaceholder":656},[8912],{"type":23,"value":659},{"type":18,"tag":571,"props":8914,"children":8915},{"class":573,"line":1170},[8916,8920,8924,8928,8932,8936,8940,8944,8948,8953,8957,8962,8966,8970],{"type":18,"tag":571,"props":8917,"children":8918},{"style":590},[8919],{"type":23,"value":5104},{"type":18,"tag":571,"props":8921,"children":8922},{"style":3356},[8923],{"type":23,"value":7283},{"type":18,"tag":571,"props":8925,"children":8926},{"style":584},[8927],{"type":23,"value":7288},{"type":18,"tag":571,"props":8929,"children":8930},{"style":590},[8931],{"type":23,"value":608},{"type":18,"tag":571,"props":8933,"children":8934},{"style":784},[8935],{"type":23,"value":7297},{"type":18,"tag":571,"props":8937,"children":8938},{"style":584},[8939],{"type":23,"value":7302},{"type":18,"tag":571,"props":8941,"children":8942},{"style":590},[8943],{"type":23,"value":608},{"type":18,"tag":571,"props":8945,"children":8946},{"style":784},[8947],{"type":23,"value":7311},{"type":18,"tag":571,"props":8949,"children":8950},{"style":584},[8951],{"type":23,"value":8952}," v-model",{"type":18,"tag":571,"props":8954,"children":8955},{"style":590},[8956],{"type":23,"value":608},{"type":18,"tag":571,"props":8958,"children":8959},{"style":784},[8960],{"type":23,"value":8961},"\"",{"type":18,"tag":571,"props":8963,"children":8964},{"style":590},[8965],{"type":23,"value":7632},{"type":18,"tag":571,"props":8967,"children":8968},{"style":784},[8969],{"type":23,"value":8961},{"type":18,"tag":571,"props":8971,"children":8972},{"style":590},[8973],{"type":23,"value":8974},"/>\n",{"type":18,"tag":571,"props":8976,"children":8977},{"class":573,"line":1192},[8978,8982,8986,8991,8996,9000,9004,9009,9014,9018,9022,9026],{"type":18,"tag":571,"props":8979,"children":8980},{"style":590},[8981],{"type":23,"value":5104},{"type":18,"tag":571,"props":8983,"children":8984},{"style":3356},[8985],{"type":23,"value":7328},{"type":18,"tag":571,"props":8987,"children":8988},{"style":590},[8989],{"type":23,"value":8990}," @",{"type":18,"tag":571,"props":8992,"children":8993},{"style":584},[8994],{"type":23,"value":8995},"click",{"type":18,"tag":571,"props":8997,"children":8998},{"style":590},[8999],{"type":23,"value":608},{"type":18,"tag":571,"props":9001,"children":9002},{"style":784},[9003],{"type":23,"value":8961},{"type":18,"tag":571,"props":9005,"children":9006},{"style":584},[9007],{"type":23,"value":9008},"handleSubmitNewsletter",{"type":18,"tag":571,"props":9010,"children":9011},{"style":590},[9012],{"type":23,"value":9013},"(email)",{"type":18,"tag":571,"props":9015,"children":9016},{"style":784},[9017],{"type":23,"value":8961},{"type":18,"tag":571,"props":9019,"children":9020},{"style":590},[9021],{"type":23,"value":7333},{"type":18,"tag":571,"props":9023,"children":9024},{"style":3356},[9025],{"type":23,"value":7328},{"type":18,"tag":571,"props":9027,"children":9028},{"style":590},[9029],{"type":23,"value":3387},{"type":18,"tag":571,"props":9031,"children":9032},{"class":573,"line":1225},[9033,9037,9041],{"type":18,"tag":571,"props":9034,"children":9035},{"style":590},[9036],{"type":23,"value":5307},{"type":18,"tag":571,"props":9038,"children":9039},{"style":3356},[9040],{"type":23,"value":3359},{"type":18,"tag":571,"props":9042,"children":9043},{"style":590},[9044],{"type":23,"value":3387},{"type":18,"tag":571,"props":9046,"children":9047},{"class":573,"line":1257},[9048,9052,9056],{"type":18,"tag":571,"props":9049,"children":9050},{"style":590},[9051],{"type":23,"value":7364},{"type":18,"tag":571,"props":9053,"children":9054},{"style":3356},[9055],{"type":23,"value":3359},{"type":18,"tag":571,"props":9057,"children":9058},{"style":590},[9059],{"type":23,"value":3387},{"type":18,"tag":571,"props":9061,"children":9062},{"class":573,"line":1284},[9063,9067,9071],{"type":18,"tag":571,"props":9064,"children":9065},{"style":590},[9066],{"type":23,"value":5340},{"type":18,"tag":571,"props":9068,"children":9069},{"style":3356},[9070],{"type":23,"value":7047},{"type":18,"tag":571,"props":9072,"children":9073},{"style":590},[9074],{"type":23,"value":3387},{"type":18,"tag":19,"props":9076,"children":9077},{},[9078],{"type":23,"value":9079},"And we have a working newsletter!",{"type":18,"tag":2484,"props":9081,"children":9082},{},[9083],{"type":23,"value":2488},{"title":8,"searchDepth":169,"depth":169,"links":9085},[9086,9087,9088],{"id":5858,"depth":169,"text":5861},{"id":7007,"depth":169,"text":7010},{"id":7395,"depth":169,"text":7398},"content:articles:build-a-newsletter-in-30-minutes.md","articles/build-a-newsletter-in-30-minutes.md","articles/build-a-newsletter-in-30-minutes",{"_path":9093,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9094,"description":9095,"pubDate":9096,"date":9097,"heroImage":9098,"component":8,"body":9099,"_type":175,"_id":16724,"_source":177,"_file":16725,"_stem":16726,"_extension":180},"/articles/how-to-structure-large-vue-files","How to avoid spaghetti code in your vue files","Structuring vue files with inline composables","May 14 2024","2024-05-14","/robot-spaghetti.webp",{"type":15,"children":9100,"toc":16719},[9101,9106,9112,9117,9123,9135,10064,10069,10074,10080,10085,11746,11752,11757,13972,13977,13983,13988,16704,16710,16715],{"type":18,"tag":19,"props":9102,"children":9103},{},[9104],{"type":23,"value":9105},"I must confess that I have been guilty in the past of following some pretty abhorent techniques for code organization in my vue learning journey but composables are the way to go! Let's get into it!",{"type":18,"tag":468,"props":9107,"children":9109},{"id":9108},"so-you-want-to-build-an-app",[9110],{"type":23,"value":9111},"So you want to build an app",{"type":18,"tag":19,"props":9113,"children":9114},{},[9115],{"type":23,"value":9116},"When you first start out building larger files in vue you can quickly see that you are storing a lot of logic and everything gets quite confusing. So you decide to go with the approach of grouping everything together. Let's look at this small file and see why we can be attracted towards this.",{"type":18,"tag":468,"props":9118,"children":9120},{"id":9119},"a-simple-todo",[9121],{"type":23,"value":9122},"A simple todo:",{"type":18,"tag":19,"props":9124,"children":9125},{},[9126,9128,9133],{"type":23,"value":9127},"The goal is is to show you the less optimal (and very common) way to structure our vue code. ",{"type":18,"tag":66,"props":9129,"children":9130},{},[9131],{"type":23,"value":9132},"You do not need to read all the code",{"type":23,"value":9134},"! Just glance through and ask yourself how easy you find it to understand.",{"type":18,"tag":561,"props":9136,"children":9141},{"className":7029,"code":9137,"filename":9138,"highlights":9139,"language":7031,"meta":9140,"style":8},"\u003Ctemplate>\n  \u003Ch1>NEXT: {{ priority }}\u003C/h1>\n  \u003Cul>\n    \u003Cli v-for=\"item in todos\" :key=\"item\">\n      {{ item }}\n      \u003Cbutton @click=\"makePriority(item)\">Make Priority\u003C/button>\n      \u003Cbutton @click=\"remove(item)\">Remove\u003C/button>\n    \u003C/li>\n  \u003C/ul>\n  \u003Cinput v-model=\"newTodo\" placeholder=\"New todo\" />\n  \u003Cbutton @click=\"add(newTodo)\">Add\u003C/button>\n\u003C/template>\n\n\u003Cscript setup lang=\"ts\">\nimport { ref } from 'vue';\n\nconst todos = ref(['Take out trash', 'clean room', 'write blog']);\nconst newTodo = ref('');\nconst priority = ref(todos.value[0]);\n\nfunction makePriority(item: string) {\n  priority.value = item;\n}\n\nfunction add(item: string) {\n  if (item.trim()) {\n    todos.value.push(item);\n    item.value = ''; \n  }\n}\n\nfunction remove(item: string) {\n  const idx = todos.value.indexOf(item);\n  if (idx !== -1) {\n    todos.value.splice(idx, 1); // Remove the item\n  }\n}\n\u003C/script>\n","file.js",[714,761,795,804],"meta-info=val",[9142],{"type":18,"tag":480,"props":9143,"children":9144},{"__ignoreMap":8},[9145,9160,9184,9199,9275,9284,9340,9394,9409,9424,9474,9528,9543,9550,9581,9606,9613,9665,9698,9731,9738,9771,9788,9795,9802,9833,9855,9872,9894,9901,9908,9915,9947,9976,10005,10035,10042,10049],{"type":18,"tag":571,"props":9146,"children":9147},{"class":573,"line":574},[9148,9152,9156],{"type":18,"tag":571,"props":9149,"children":9150},{"style":590},[9151],{"type":23,"value":593},{"type":18,"tag":571,"props":9153,"children":9154},{"style":3356},[9155],{"type":23,"value":7047},{"type":18,"tag":571,"props":9157,"children":9158},{"style":590},[9159],{"type":23,"value":3387},{"type":18,"tag":571,"props":9161,"children":9162},{"class":573,"line":169},[9163,9167,9171,9176,9180],{"type":18,"tag":571,"props":9164,"children":9165},{"style":590},[9166],{"type":23,"value":5034},{"type":18,"tag":571,"props":9168,"children":9169},{"style":3356},[9170],{"type":23,"value":7128},{"type":18,"tag":571,"props":9172,"children":9173},{"style":590},[9174],{"type":23,"value":9175},">NEXT: {{ priority }}\u003C/",{"type":18,"tag":571,"props":9177,"children":9178},{"style":3356},[9179],{"type":23,"value":7128},{"type":18,"tag":571,"props":9181,"children":9182},{"style":590},[9183],{"type":23,"value":3387},{"type":18,"tag":571,"props":9185,"children":9186},{"class":573,"line":174},[9187,9191,9195],{"type":18,"tag":571,"props":9188,"children":9189},{"style":590},[9190],{"type":23,"value":5034},{"type":18,"tag":571,"props":9192,"children":9193},{"style":3356},[9194],{"type":23,"value":489},{"type":18,"tag":571,"props":9196,"children":9197},{"style":590},[9198],{"type":23,"value":3387},{"type":18,"tag":571,"props":9200,"children":9203},{"class":9201,"line":714},[573,9202],"highlight",[9204,9208,9212,9217,9221,9225,9230,9235,9240,9244,9249,9254,9258,9262,9267,9271],{"type":18,"tag":571,"props":9205,"children":9206},{"style":590},[9207],{"type":23,"value":5104},{"type":18,"tag":571,"props":9209,"children":9210},{"style":3356},[9211],{"type":23,"value":62},{"type":18,"tag":571,"props":9213,"children":9214},{"style":578},[9215],{"type":23,"value":9216}," v-for",{"type":18,"tag":571,"props":9218,"children":9219},{"style":590},[9220],{"type":23,"value":608},{"type":18,"tag":571,"props":9222,"children":9223},{"style":784},[9224],{"type":23,"value":8961},{"type":18,"tag":571,"props":9226,"children":9227},{"style":590},[9228],{"type":23,"value":9229},"item ",{"type":18,"tag":571,"props":9231,"children":9232},{"style":578},[9233],{"type":23,"value":9234},"in",{"type":18,"tag":571,"props":9236,"children":9237},{"style":590},[9238],{"type":23,"value":9239}," todos",{"type":18,"tag":571,"props":9241,"children":9242},{"style":784},[9243],{"type":23,"value":8961},{"type":18,"tag":571,"props":9245,"children":9246},{"style":590},[9247],{"type":23,"value":9248}," :",{"type":18,"tag":571,"props":9250,"children":9251},{"style":584},[9252],{"type":23,"value":9253},"key",{"type":18,"tag":571,"props":9255,"children":9256},{"style":590},[9257],{"type":23,"value":608},{"type":18,"tag":571,"props":9259,"children":9260},{"style":784},[9261],{"type":23,"value":8961},{"type":18,"tag":571,"props":9263,"children":9264},{"style":590},[9265],{"type":23,"value":9266},"item",{"type":18,"tag":571,"props":9268,"children":9269},{"style":784},[9270],{"type":23,"value":8961},{"type":18,"tag":571,"props":9272,"children":9273},{"style":590},[9274],{"type":23,"value":3387},{"type":18,"tag":571,"props":9276,"children":9278},{"class":9277,"line":761},[573,9202],[9279],{"type":18,"tag":571,"props":9280,"children":9281},{"style":590},[9282],{"type":23,"value":9283},"      {{ item }}\n",{"type":18,"tag":571,"props":9285,"children":9287},{"class":9286,"line":795},[573,9202],[9288,9292,9297,9301,9305,9309,9313,9318,9323,9327,9332,9336],{"type":18,"tag":571,"props":9289,"children":9290},{"style":590},[9291],{"type":23,"value":5193},{"type":18,"tag":571,"props":9293,"children":9294},{"style":3356},[9295],{"type":23,"value":9296},"button",{"type":18,"tag":571,"props":9298,"children":9299},{"style":590},[9300],{"type":23,"value":8990},{"type":18,"tag":571,"props":9302,"children":9303},{"style":584},[9304],{"type":23,"value":8995},{"type":18,"tag":571,"props":9306,"children":9307},{"style":590},[9308],{"type":23,"value":608},{"type":18,"tag":571,"props":9310,"children":9311},{"style":784},[9312],{"type":23,"value":8961},{"type":18,"tag":571,"props":9314,"children":9315},{"style":584},[9316],{"type":23,"value":9317},"makePriority",{"type":18,"tag":571,"props":9319,"children":9320},{"style":590},[9321],{"type":23,"value":9322},"(item)",{"type":18,"tag":571,"props":9324,"children":9325},{"style":784},[9326],{"type":23,"value":8961},{"type":18,"tag":571,"props":9328,"children":9329},{"style":590},[9330],{"type":23,"value":9331},">Make Priority\u003C/",{"type":18,"tag":571,"props":9333,"children":9334},{"style":3356},[9335],{"type":23,"value":9296},{"type":18,"tag":571,"props":9337,"children":9338},{"style":590},[9339],{"type":23,"value":3387},{"type":18,"tag":571,"props":9341,"children":9343},{"class":9342,"line":804},[573,9202],[9344,9348,9352,9356,9360,9364,9368,9373,9377,9381,9386,9390],{"type":18,"tag":571,"props":9345,"children":9346},{"style":590},[9347],{"type":23,"value":5193},{"type":18,"tag":571,"props":9349,"children":9350},{"style":3356},[9351],{"type":23,"value":9296},{"type":18,"tag":571,"props":9353,"children":9354},{"style":590},[9355],{"type":23,"value":8990},{"type":18,"tag":571,"props":9357,"children":9358},{"style":584},[9359],{"type":23,"value":8995},{"type":18,"tag":571,"props":9361,"children":9362},{"style":590},[9363],{"type":23,"value":608},{"type":18,"tag":571,"props":9365,"children":9366},{"style":784},[9367],{"type":23,"value":8961},{"type":18,"tag":571,"props":9369,"children":9370},{"style":584},[9371],{"type":23,"value":9372},"remove",{"type":18,"tag":571,"props":9374,"children":9375},{"style":590},[9376],{"type":23,"value":9322},{"type":18,"tag":571,"props":9378,"children":9379},{"style":784},[9380],{"type":23,"value":8961},{"type":18,"tag":571,"props":9382,"children":9383},{"style":590},[9384],{"type":23,"value":9385},">Remove\u003C/",{"type":18,"tag":571,"props":9387,"children":9388},{"style":3356},[9389],{"type":23,"value":9296},{"type":18,"tag":571,"props":9391,"children":9392},{"style":590},[9393],{"type":23,"value":3387},{"type":18,"tag":571,"props":9395,"children":9396},{"class":573,"line":812},[9397,9401,9405],{"type":18,"tag":571,"props":9398,"children":9399},{"style":590},[9400],{"type":23,"value":5307},{"type":18,"tag":571,"props":9402,"children":9403},{"style":3356},[9404],{"type":23,"value":62},{"type":18,"tag":571,"props":9406,"children":9407},{"style":590},[9408],{"type":23,"value":3387},{"type":18,"tag":571,"props":9410,"children":9411},{"class":573,"line":835},[9412,9416,9420],{"type":18,"tag":571,"props":9413,"children":9414},{"style":590},[9415],{"type":23,"value":5324},{"type":18,"tag":571,"props":9417,"children":9418},{"style":3356},[9419],{"type":23,"value":489},{"type":18,"tag":571,"props":9421,"children":9422},{"style":590},[9423],{"type":23,"value":3387},{"type":18,"tag":571,"props":9425,"children":9426},{"class":573,"line":880},[9427,9431,9436,9440,9444,9448,9453,9457,9461,9465,9470],{"type":18,"tag":571,"props":9428,"children":9429},{"style":590},[9430],{"type":23,"value":5034},{"type":18,"tag":571,"props":9432,"children":9433},{"style":3356},[9434],{"type":23,"value":9435},"input",{"type":18,"tag":571,"props":9437,"children":9438},{"style":584},[9439],{"type":23,"value":8952},{"type":18,"tag":571,"props":9441,"children":9442},{"style":590},[9443],{"type":23,"value":608},{"type":18,"tag":571,"props":9445,"children":9446},{"style":784},[9447],{"type":23,"value":8961},{"type":18,"tag":571,"props":9449,"children":9450},{"style":590},[9451],{"type":23,"value":9452},"newTodo",{"type":18,"tag":571,"props":9454,"children":9455},{"style":784},[9456],{"type":23,"value":8961},{"type":18,"tag":571,"props":9458,"children":9459},{"style":584},[9460],{"type":23,"value":7302},{"type":18,"tag":571,"props":9462,"children":9463},{"style":590},[9464],{"type":23,"value":608},{"type":18,"tag":571,"props":9466,"children":9467},{"style":784},[9468],{"type":23,"value":9469},"\"New todo\"",{"type":18,"tag":571,"props":9471,"children":9472},{"style":590},[9473],{"type":23,"value":7316},{"type":18,"tag":571,"props":9475,"children":9476},{"class":573,"line":888},[9477,9481,9485,9489,9493,9497,9501,9506,9511,9515,9520,9524],{"type":18,"tag":571,"props":9478,"children":9479},{"style":590},[9480],{"type":23,"value":5034},{"type":18,"tag":571,"props":9482,"children":9483},{"style":3356},[9484],{"type":23,"value":9296},{"type":18,"tag":571,"props":9486,"children":9487},{"style":590},[9488],{"type":23,"value":8990},{"type":18,"tag":571,"props":9490,"children":9491},{"style":584},[9492],{"type":23,"value":8995},{"type":18,"tag":571,"props":9494,"children":9495},{"style":590},[9496],{"type":23,"value":608},{"type":18,"tag":571,"props":9498,"children":9499},{"style":784},[9500],{"type":23,"value":8961},{"type":18,"tag":571,"props":9502,"children":9503},{"style":584},[9504],{"type":23,"value":9505},"add",{"type":18,"tag":571,"props":9507,"children":9508},{"style":590},[9509],{"type":23,"value":9510},"(newTodo)",{"type":18,"tag":571,"props":9512,"children":9513},{"style":784},[9514],{"type":23,"value":8961},{"type":18,"tag":571,"props":9516,"children":9517},{"style":590},[9518],{"type":23,"value":9519},">Add\u003C/",{"type":18,"tag":571,"props":9521,"children":9522},{"style":3356},[9523],{"type":23,"value":9296},{"type":18,"tag":571,"props":9525,"children":9526},{"style":590},[9527],{"type":23,"value":3387},{"type":18,"tag":571,"props":9529,"children":9530},{"class":573,"line":898},[9531,9535,9539],{"type":18,"tag":571,"props":9532,"children":9533},{"style":590},[9534],{"type":23,"value":5340},{"type":18,"tag":571,"props":9536,"children":9537},{"style":3356},[9538],{"type":23,"value":7047},{"type":18,"tag":571,"props":9540,"children":9541},{"style":590},[9542],{"type":23,"value":3387},{"type":18,"tag":571,"props":9544,"children":9545},{"class":573,"line":917},[9546],{"type":18,"tag":571,"props":9547,"children":9548},{"emptyLinePlaceholder":656},[9549],{"type":23,"value":659},{"type":18,"tag":571,"props":9551,"children":9552},{"class":573,"line":931},[9553,9557,9561,9565,9569,9573,9577],{"type":18,"tag":571,"props":9554,"children":9555},{"style":590},[9556],{"type":23,"value":593},{"type":18,"tag":571,"props":9558,"children":9559},{"style":3356},[9560],{"type":23,"value":8363},{"type":18,"tag":571,"props":9562,"children":9563},{"style":584},[9564],{"type":23,"value":8382},{"type":18,"tag":571,"props":9566,"children":9567},{"style":584},[9568],{"type":23,"value":8368},{"type":18,"tag":571,"props":9570,"children":9571},{"style":590},[9572],{"type":23,"value":608},{"type":18,"tag":571,"props":9574,"children":9575},{"style":784},[9576],{"type":23,"value":8377},{"type":18,"tag":571,"props":9578,"children":9579},{"style":590},[9580],{"type":23,"value":3387},{"type":18,"tag":571,"props":9582,"children":9583},{"class":573,"line":939},[9584,9588,9593,9597,9602],{"type":18,"tag":571,"props":9585,"children":9586},{"style":578},[9587],{"type":23,"value":7493},{"type":18,"tag":571,"props":9589,"children":9590},{"style":590},[9591],{"type":23,"value":9592}," { ref } ",{"type":18,"tag":571,"props":9594,"children":9595},{"style":578},[9596],{"type":23,"value":7503},{"type":18,"tag":571,"props":9598,"children":9599},{"style":784},[9600],{"type":23,"value":9601}," 'vue'",{"type":18,"tag":571,"props":9603,"children":9604},{"style":590},[9605],{"type":23,"value":650},{"type":18,"tag":571,"props":9607,"children":9608},{"class":573,"line":947},[9609],{"type":18,"tag":571,"props":9610,"children":9611},{"emptyLinePlaceholder":656},[9612],{"type":23,"value":659},{"type":18,"tag":571,"props":9614,"children":9615},{"class":573,"line":956},[9616,9620,9624,9628,9632,9637,9642,9646,9651,9655,9660],{"type":18,"tag":571,"props":9617,"children":9618},{"style":578},[9619],{"type":23,"value":1516},{"type":18,"tag":571,"props":9621,"children":9622},{"style":642},[9623],{"type":23,"value":9239},{"type":18,"tag":571,"props":9625,"children":9626},{"style":578},[9627],{"type":23,"value":1526},{"type":18,"tag":571,"props":9629,"children":9630},{"style":584},[9631],{"type":23,"value":8407},{"type":18,"tag":571,"props":9633,"children":9634},{"style":590},[9635],{"type":23,"value":9636},"([",{"type":18,"tag":571,"props":9638,"children":9639},{"style":784},[9640],{"type":23,"value":9641},"'Take out trash'",{"type":18,"tag":571,"props":9643,"children":9644},{"style":590},[9645],{"type":23,"value":3025},{"type":18,"tag":571,"props":9647,"children":9648},{"style":784},[9649],{"type":23,"value":9650},"'clean room'",{"type":18,"tag":571,"props":9652,"children":9653},{"style":590},[9654],{"type":23,"value":3025},{"type":18,"tag":571,"props":9656,"children":9657},{"style":784},[9658],{"type":23,"value":9659},"'write blog'",{"type":18,"tag":571,"props":9661,"children":9662},{"style":590},[9663],{"type":23,"value":9664},"]);\n",{"type":18,"tag":571,"props":9666,"children":9667},{"class":573,"line":991},[9668,9672,9677,9681,9685,9689,9694],{"type":18,"tag":571,"props":9669,"children":9670},{"style":578},[9671],{"type":23,"value":1516},{"type":18,"tag":571,"props":9673,"children":9674},{"style":642},[9675],{"type":23,"value":9676}," newTodo",{"type":18,"tag":571,"props":9678,"children":9679},{"style":578},[9680],{"type":23,"value":1526},{"type":18,"tag":571,"props":9682,"children":9683},{"style":584},[9684],{"type":23,"value":8407},{"type":18,"tag":571,"props":9686,"children":9687},{"style":590},[9688],{"type":23,"value":682},{"type":18,"tag":571,"props":9690,"children":9691},{"style":784},[9692],{"type":23,"value":9693},"''",{"type":18,"tag":571,"props":9695,"children":9696},{"style":590},[9697],{"type":23,"value":792},{"type":18,"tag":571,"props":9699,"children":9700},{"class":573,"line":1015},[9701,9705,9710,9714,9718,9723,9727],{"type":18,"tag":571,"props":9702,"children":9703},{"style":578},[9704],{"type":23,"value":1516},{"type":18,"tag":571,"props":9706,"children":9707},{"style":642},[9708],{"type":23,"value":9709}," priority",{"type":18,"tag":571,"props":9711,"children":9712},{"style":578},[9713],{"type":23,"value":1526},{"type":18,"tag":571,"props":9715,"children":9716},{"style":584},[9717],{"type":23,"value":8407},{"type":18,"tag":571,"props":9719,"children":9720},{"style":590},[9721],{"type":23,"value":9722},"(todos.value[",{"type":18,"tag":571,"props":9724,"children":9725},{"style":642},[9726],{"type":23,"value":4485},{"type":18,"tag":571,"props":9728,"children":9729},{"style":590},[9730],{"type":23,"value":9664},{"type":18,"tag":571,"props":9732,"children":9733},{"class":573,"line":1033},[9734],{"type":18,"tag":571,"props":9735,"children":9736},{"emptyLinePlaceholder":656},[9737],{"type":23,"value":659},{"type":18,"tag":571,"props":9739,"children":9740},{"class":573,"line":1075},[9741,9746,9751,9755,9759,9763,9767],{"type":18,"tag":571,"props":9742,"children":9743},{"style":578},[9744],{"type":23,"value":9745},"function",{"type":18,"tag":571,"props":9747,"children":9748},{"style":584},[9749],{"type":23,"value":9750}," makePriority",{"type":18,"tag":571,"props":9752,"children":9753},{"style":590},[9754],{"type":23,"value":682},{"type":18,"tag":571,"props":9756,"children":9757},{"style":616},[9758],{"type":23,"value":9266},{"type":18,"tag":571,"props":9760,"children":9761},{"style":578},[9762],{"type":23,"value":624},{"type":18,"tag":571,"props":9764,"children":9765},{"style":642},[9766],{"type":23,"value":8128},{"type":18,"tag":571,"props":9768,"children":9769},{"style":590},[9770],{"type":23,"value":8246},{"type":18,"tag":571,"props":9772,"children":9773},{"class":573,"line":1084},[9774,9779,9783],{"type":18,"tag":571,"props":9775,"children":9776},{"style":590},[9777],{"type":23,"value":9778},"  priority.value ",{"type":18,"tag":571,"props":9780,"children":9781},{"style":578},[9782],{"type":23,"value":608},{"type":18,"tag":571,"props":9784,"children":9785},{"style":590},[9786],{"type":23,"value":9787}," item;\n",{"type":18,"tag":571,"props":9789,"children":9790},{"class":573,"line":1092},[9791],{"type":18,"tag":571,"props":9792,"children":9793},{"style":590},[9794],{"type":23,"value":1338},{"type":18,"tag":571,"props":9796,"children":9797},{"class":573,"line":1100},[9798],{"type":18,"tag":571,"props":9799,"children":9800},{"emptyLinePlaceholder":656},[9801],{"type":23,"value":659},{"type":18,"tag":571,"props":9803,"children":9804},{"class":573,"line":1109},[9805,9809,9813,9817,9821,9825,9829],{"type":18,"tag":571,"props":9806,"children":9807},{"style":578},[9808],{"type":23,"value":9745},{"type":18,"tag":571,"props":9810,"children":9811},{"style":584},[9812],{"type":23,"value":6071},{"type":18,"tag":571,"props":9814,"children":9815},{"style":590},[9816],{"type":23,"value":682},{"type":18,"tag":571,"props":9818,"children":9819},{"style":616},[9820],{"type":23,"value":9266},{"type":18,"tag":571,"props":9822,"children":9823},{"style":578},[9824],{"type":23,"value":624},{"type":18,"tag":571,"props":9826,"children":9827},{"style":642},[9828],{"type":23,"value":8128},{"type":18,"tag":571,"props":9830,"children":9831},{"style":590},[9832],{"type":23,"value":8246},{"type":18,"tag":571,"props":9834,"children":9835},{"class":573,"line":1151},[9836,9840,9845,9850],{"type":18,"tag":571,"props":9837,"children":9838},{"style":578},[9839],{"type":23,"value":8227},{"type":18,"tag":571,"props":9841,"children":9842},{"style":590},[9843],{"type":23,"value":9844}," (item.",{"type":18,"tag":571,"props":9846,"children":9847},{"style":584},[9848],{"type":23,"value":9849},"trim",{"type":18,"tag":571,"props":9851,"children":9852},{"style":590},[9853],{"type":23,"value":9854},"()) {\n",{"type":18,"tag":571,"props":9856,"children":9857},{"class":573,"line":1170},[9858,9863,9867],{"type":18,"tag":571,"props":9859,"children":9860},{"style":590},[9861],{"type":23,"value":9862},"    todos.value.",{"type":18,"tag":571,"props":9864,"children":9865},{"style":584},[9866],{"type":23,"value":1162},{"type":18,"tag":571,"props":9868,"children":9869},{"style":590},[9870],{"type":23,"value":9871},"(item);\n",{"type":18,"tag":571,"props":9873,"children":9874},{"class":573,"line":1192},[9875,9880,9884,9889],{"type":18,"tag":571,"props":9876,"children":9877},{"style":590},[9878],{"type":23,"value":9879},"    item.value ",{"type":18,"tag":571,"props":9881,"children":9882},{"style":578},[9883],{"type":23,"value":608},{"type":18,"tag":571,"props":9885,"children":9886},{"style":784},[9887],{"type":23,"value":9888}," ''",{"type":18,"tag":571,"props":9890,"children":9891},{"style":590},[9892],{"type":23,"value":9893},"; \n",{"type":18,"tag":571,"props":9895,"children":9896},{"class":573,"line":1225},[9897],{"type":18,"tag":571,"props":9898,"children":9899},{"style":590},[9900],{"type":23,"value":3828},{"type":18,"tag":571,"props":9902,"children":9903},{"class":573,"line":1257},[9904],{"type":18,"tag":571,"props":9905,"children":9906},{"style":590},[9907],{"type":23,"value":1338},{"type":18,"tag":571,"props":9909,"children":9910},{"class":573,"line":1284},[9911],{"type":18,"tag":571,"props":9912,"children":9913},{"emptyLinePlaceholder":656},[9914],{"type":23,"value":659},{"type":18,"tag":571,"props":9916,"children":9917},{"class":573,"line":1293},[9918,9922,9927,9931,9935,9939,9943],{"type":18,"tag":571,"props":9919,"children":9920},{"style":578},[9921],{"type":23,"value":9745},{"type":18,"tag":571,"props":9923,"children":9924},{"style":584},[9925],{"type":23,"value":9926}," remove",{"type":18,"tag":571,"props":9928,"children":9929},{"style":590},[9930],{"type":23,"value":682},{"type":18,"tag":571,"props":9932,"children":9933},{"style":616},[9934],{"type":23,"value":9266},{"type":18,"tag":571,"props":9936,"children":9937},{"style":578},[9938],{"type":23,"value":624},{"type":18,"tag":571,"props":9940,"children":9941},{"style":642},[9942],{"type":23,"value":8128},{"type":18,"tag":571,"props":9944,"children":9945},{"style":590},[9946],{"type":23,"value":8246},{"type":18,"tag":571,"props":9948,"children":9949},{"class":573,"line":1302},[9950,9954,9959,9963,9968,9972],{"type":18,"tag":571,"props":9951,"children":9952},{"style":578},[9953],{"type":23,"value":7582},{"type":18,"tag":571,"props":9955,"children":9956},{"style":642},[9957],{"type":23,"value":9958}," idx",{"type":18,"tag":571,"props":9960,"children":9961},{"style":578},[9962],{"type":23,"value":1526},{"type":18,"tag":571,"props":9964,"children":9965},{"style":590},[9966],{"type":23,"value":9967}," todos.value.",{"type":18,"tag":571,"props":9969,"children":9970},{"style":584},[9971],{"type":23,"value":1218},{"type":18,"tag":571,"props":9973,"children":9974},{"style":590},[9975],{"type":23,"value":9871},{"type":18,"tag":571,"props":9977,"children":9978},{"class":573,"line":1310},[9979,9983,9988,9992,9997,10001],{"type":18,"tag":571,"props":9980,"children":9981},{"style":578},[9982],{"type":23,"value":8227},{"type":18,"tag":571,"props":9984,"children":9985},{"style":590},[9986],{"type":23,"value":9987}," (idx ",{"type":18,"tag":571,"props":9989,"children":9990},{"style":578},[9991],{"type":23,"value":1007},{"type":18,"tag":571,"props":9993,"children":9994},{"style":578},[9995],{"type":23,"value":9996}," -",{"type":18,"tag":571,"props":9998,"children":9999},{"style":642},[10000],{"type":23,"value":270},{"type":18,"tag":571,"props":10002,"children":10003},{"style":590},[10004],{"type":23,"value":8246},{"type":18,"tag":571,"props":10006,"children":10007},{"class":573,"line":1318},[10008,10012,10016,10021,10025,10030],{"type":18,"tag":571,"props":10009,"children":10010},{"style":590},[10011],{"type":23,"value":9862},{"type":18,"tag":571,"props":10013,"children":10014},{"style":584},[10015],{"type":23,"value":1268},{"type":18,"tag":571,"props":10017,"children":10018},{"style":590},[10019],{"type":23,"value":10020},"(idx, ",{"type":18,"tag":571,"props":10022,"children":10023},{"style":642},[10024],{"type":23,"value":270},{"type":18,"tag":571,"props":10026,"children":10027},{"style":590},[10028],{"type":23,"value":10029},"); ",{"type":18,"tag":571,"props":10031,"children":10032},{"style":892},[10033],{"type":23,"value":10034},"// Remove the item\n",{"type":18,"tag":571,"props":10036,"children":10037},{"class":573,"line":1332},[10038],{"type":18,"tag":571,"props":10039,"children":10040},{"style":590},[10041],{"type":23,"value":3828},{"type":18,"tag":571,"props":10043,"children":10044},{"class":573,"line":3957},[10045],{"type":18,"tag":571,"props":10046,"children":10047},{"style":590},[10048],{"type":23,"value":1338},{"type":18,"tag":571,"props":10050,"children":10051},{"class":573,"line":3970},[10052,10056,10060],{"type":18,"tag":571,"props":10053,"children":10054},{"style":590},[10055],{"type":23,"value":5340},{"type":18,"tag":571,"props":10057,"children":10058},{"style":3356},[10059],{"type":23,"value":8363},{"type":18,"tag":571,"props":10061,"children":10062},{"style":590},[10063],{"type":23,"value":3387},{"type":18,"tag":19,"props":10065,"children":10066},{},[10067],{"type":23,"value":10068},"I have made a very simple todo app, we have the logic for adding and removing todo items from a todo list and setting a todo item to be our priority. All very straight forward things that you would of seen before. But look how we have groups everything, we have our refs together, followed by our computed and followed by our functions.",{"type":18,"tag":19,"props":10070,"children":10071},{},[10072],{"type":23,"value":10073},"While this looks neat on page with very little logic, when it comes to the real world this won't suffice. Let's see what happens if we add in functionality to start a timer when we select an item as a priority.",{"type":18,"tag":51,"props":10075,"children":10077},{"id":10076},"a-little-bit-more-complex",[10078],{"type":23,"value":10079},"A little bit more complex:",{"type":18,"tag":19,"props":10081,"children":10082},{},[10083],{"type":23,"value":10084},"Ok, we now we have thought of a cool feature for our todo app! What if we could have some kind of timer to track when we start a priority todo! What a great idea! Let's add it in!",{"type":18,"tag":561,"props":10086,"children":10088},{"className":7029,"code":10087,"language":7031,"meta":8,"style":8},"\u003Ctemplate>\n  \u003Ch1>NEXT: {{ priority }} - TIMER: {{ timeElapsedString }}\u003C/h1>\n  \u003Cul>\n    \u003Cli v-for=\"item in todos\" :key=\"item\">\n      {{ item }}\n      \u003Cbutton @click=\"makePriority(item)\">Make Priority\u003C/button>\n      \u003Cbutton @click=\"remove(item)\">Remove\u003C/button>\n    \u003C/li>\n  \u003C/ul>\n  \u003Cinput v-model=\"newTodo\" placeholder=\"New todo\" />\n  \u003Cbutton @click=\"add(newTodo)\">Add\u003C/button>\n\u003C/template>\n\n\u003Cscript setup lang=\"ts\">\nimport { ref, watch, computed, onMounted } from 'vue';\n\nconst todos = ref(['']);\nconst newTodo = ref('');\nconst priority = ref('');\nconst timeElapsed = ref(0);\nlet timer: number | null = null;\n\nfunction startTimer() {\n  if (timer) {\n    clearInterval(timer);\n  }\n  timeElapsed.value = 0; // Reset the timer\n  timer = setInterval(() => {\n    timeElapsed.value++;\n  }, 1000);\n}\n\nfunction makePriority(item: string) {\n  priority.value = item;\n}\n\nfunction add(item: string) {\n  if (item.trim()) {\n    todos.value.push(item);\n    newTodo.value = ''; // Clear the input field\n  }\n}\n\nfunction remove(item: string) {\n  const idx = todos.value.indexOf(item);\n  if (idx !== -1) {\n    todos.value.splice(idx, 1); // Remove the item\n  }\n}\n\nwatch(priority, (newValue, oldValue) => {\n  if (newValue !== oldValue) {\n    startTimer();\n  }\n});\nwatch(timeElapsed, (newValue, oldValue) => {\n  if (newValue !== oldValue && newValue > 30) {\n    timeElapsed.value = 0;\n    alert('Times up');\n  }\n});\n\n// Start the timer when the component is mounted\nonMounted(() => {\n  todos.value = ['Walk dog', 'Write blog', 'Water plants'];\n  priority.value = todos.value[0];\n  startTimer();\n});\n\n// Compute the elapsed time in MM:SS format\nconst timeElapsedString = computed(() => {\n  const minutes = Math.floor(timeElapsed.value / 60);\n  const seconds = timeElapsed.value % 60;\n  return `${minutes}:${seconds.toString().padStart(2, '0')}`;\n});\n\u003C/script>\n",[10089],{"type":18,"tag":480,"props":10090,"children":10091},{"__ignoreMap":8},[10092,10107,10131,10146,10213,10220,10271,10322,10337,10352,10399,10450,10465,10472,10503,10527,10534,10565,10596,10627,10659,10701,10708,10725,10737,10750,10757,10783,10813,10830,10846,10853,10860,10891,10906,10913,10920,10951,10970,10985,11010,11017,11024,11031,11062,11089,11116,11143,11150,11157,11164,11202,11223,11235,11242,11249,11285,11327,11347,11368,11376,11384,11392,11401,11422,11468,11493,11506,11514,11522,11531,11565,11611,11645,11722,11730],{"type":18,"tag":571,"props":10093,"children":10094},{"class":573,"line":574},[10095,10099,10103],{"type":18,"tag":571,"props":10096,"children":10097},{"style":590},[10098],{"type":23,"value":593},{"type":18,"tag":571,"props":10100,"children":10101},{"style":3356},[10102],{"type":23,"value":7047},{"type":18,"tag":571,"props":10104,"children":10105},{"style":590},[10106],{"type":23,"value":3387},{"type":18,"tag":571,"props":10108,"children":10109},{"class":573,"line":169},[10110,10114,10118,10123,10127],{"type":18,"tag":571,"props":10111,"children":10112},{"style":590},[10113],{"type":23,"value":5034},{"type":18,"tag":571,"props":10115,"children":10116},{"style":3356},[10117],{"type":23,"value":7128},{"type":18,"tag":571,"props":10119,"children":10120},{"style":590},[10121],{"type":23,"value":10122},">NEXT: {{ priority }} - TIMER: {{ timeElapsedString }}\u003C/",{"type":18,"tag":571,"props":10124,"children":10125},{"style":3356},[10126],{"type":23,"value":7128},{"type":18,"tag":571,"props":10128,"children":10129},{"style":590},[10130],{"type":23,"value":3387},{"type":18,"tag":571,"props":10132,"children":10133},{"class":573,"line":174},[10134,10138,10142],{"type":18,"tag":571,"props":10135,"children":10136},{"style":590},[10137],{"type":23,"value":5034},{"type":18,"tag":571,"props":10139,"children":10140},{"style":3356},[10141],{"type":23,"value":489},{"type":18,"tag":571,"props":10143,"children":10144},{"style":590},[10145],{"type":23,"value":3387},{"type":18,"tag":571,"props":10147,"children":10148},{"class":573,"line":714},[10149,10153,10157,10161,10165,10169,10173,10177,10181,10185,10189,10193,10197,10201,10205,10209],{"type":18,"tag":571,"props":10150,"children":10151},{"style":590},[10152],{"type":23,"value":5104},{"type":18,"tag":571,"props":10154,"children":10155},{"style":3356},[10156],{"type":23,"value":62},{"type":18,"tag":571,"props":10158,"children":10159},{"style":578},[10160],{"type":23,"value":9216},{"type":18,"tag":571,"props":10162,"children":10163},{"style":590},[10164],{"type":23,"value":608},{"type":18,"tag":571,"props":10166,"children":10167},{"style":784},[10168],{"type":23,"value":8961},{"type":18,"tag":571,"props":10170,"children":10171},{"style":590},[10172],{"type":23,"value":9229},{"type":18,"tag":571,"props":10174,"children":10175},{"style":578},[10176],{"type":23,"value":9234},{"type":18,"tag":571,"props":10178,"children":10179},{"style":590},[10180],{"type":23,"value":9239},{"type":18,"tag":571,"props":10182,"children":10183},{"style":784},[10184],{"type":23,"value":8961},{"type":18,"tag":571,"props":10186,"children":10187},{"style":590},[10188],{"type":23,"value":9248},{"type":18,"tag":571,"props":10190,"children":10191},{"style":584},[10192],{"type":23,"value":9253},{"type":18,"tag":571,"props":10194,"children":10195},{"style":590},[10196],{"type":23,"value":608},{"type":18,"tag":571,"props":10198,"children":10199},{"style":784},[10200],{"type":23,"value":8961},{"type":18,"tag":571,"props":10202,"children":10203},{"style":590},[10204],{"type":23,"value":9266},{"type":18,"tag":571,"props":10206,"children":10207},{"style":784},[10208],{"type":23,"value":8961},{"type":18,"tag":571,"props":10210,"children":10211},{"style":590},[10212],{"type":23,"value":3387},{"type":18,"tag":571,"props":10214,"children":10215},{"class":573,"line":761},[10216],{"type":18,"tag":571,"props":10217,"children":10218},{"style":590},[10219],{"type":23,"value":9283},{"type":18,"tag":571,"props":10221,"children":10222},{"class":573,"line":795},[10223,10227,10231,10235,10239,10243,10247,10251,10255,10259,10263,10267],{"type":18,"tag":571,"props":10224,"children":10225},{"style":590},[10226],{"type":23,"value":5193},{"type":18,"tag":571,"props":10228,"children":10229},{"style":3356},[10230],{"type":23,"value":9296},{"type":18,"tag":571,"props":10232,"children":10233},{"style":590},[10234],{"type":23,"value":8990},{"type":18,"tag":571,"props":10236,"children":10237},{"style":584},[10238],{"type":23,"value":8995},{"type":18,"tag":571,"props":10240,"children":10241},{"style":590},[10242],{"type":23,"value":608},{"type":18,"tag":571,"props":10244,"children":10245},{"style":784},[10246],{"type":23,"value":8961},{"type":18,"tag":571,"props":10248,"children":10249},{"style":584},[10250],{"type":23,"value":9317},{"type":18,"tag":571,"props":10252,"children":10253},{"style":590},[10254],{"type":23,"value":9322},{"type":18,"tag":571,"props":10256,"children":10257},{"style":784},[10258],{"type":23,"value":8961},{"type":18,"tag":571,"props":10260,"children":10261},{"style":590},[10262],{"type":23,"value":9331},{"type":18,"tag":571,"props":10264,"children":10265},{"style":3356},[10266],{"type":23,"value":9296},{"type":18,"tag":571,"props":10268,"children":10269},{"style":590},[10270],{"type":23,"value":3387},{"type":18,"tag":571,"props":10272,"children":10273},{"class":573,"line":804},[10274,10278,10282,10286,10290,10294,10298,10302,10306,10310,10314,10318],{"type":18,"tag":571,"props":10275,"children":10276},{"style":590},[10277],{"type":23,"value":5193},{"type":18,"tag":571,"props":10279,"children":10280},{"style":3356},[10281],{"type":23,"value":9296},{"type":18,"tag":571,"props":10283,"children":10284},{"style":590},[10285],{"type":23,"value":8990},{"type":18,"tag":571,"props":10287,"children":10288},{"style":584},[10289],{"type":23,"value":8995},{"type":18,"tag":571,"props":10291,"children":10292},{"style":590},[10293],{"type":23,"value":608},{"type":18,"tag":571,"props":10295,"children":10296},{"style":784},[10297],{"type":23,"value":8961},{"type":18,"tag":571,"props":10299,"children":10300},{"style":584},[10301],{"type":23,"value":9372},{"type":18,"tag":571,"props":10303,"children":10304},{"style":590},[10305],{"type":23,"value":9322},{"type":18,"tag":571,"props":10307,"children":10308},{"style":784},[10309],{"type":23,"value":8961},{"type":18,"tag":571,"props":10311,"children":10312},{"style":590},[10313],{"type":23,"value":9385},{"type":18,"tag":571,"props":10315,"children":10316},{"style":3356},[10317],{"type":23,"value":9296},{"type":18,"tag":571,"props":10319,"children":10320},{"style":590},[10321],{"type":23,"value":3387},{"type":18,"tag":571,"props":10323,"children":10324},{"class":573,"line":812},[10325,10329,10333],{"type":18,"tag":571,"props":10326,"children":10327},{"style":590},[10328],{"type":23,"value":5307},{"type":18,"tag":571,"props":10330,"children":10331},{"style":3356},[10332],{"type":23,"value":62},{"type":18,"tag":571,"props":10334,"children":10335},{"style":590},[10336],{"type":23,"value":3387},{"type":18,"tag":571,"props":10338,"children":10339},{"class":573,"line":835},[10340,10344,10348],{"type":18,"tag":571,"props":10341,"children":10342},{"style":590},[10343],{"type":23,"value":5324},{"type":18,"tag":571,"props":10345,"children":10346},{"style":3356},[10347],{"type":23,"value":489},{"type":18,"tag":571,"props":10349,"children":10350},{"style":590},[10351],{"type":23,"value":3387},{"type":18,"tag":571,"props":10353,"children":10354},{"class":573,"line":880},[10355,10359,10363,10367,10371,10375,10379,10383,10387,10391,10395],{"type":18,"tag":571,"props":10356,"children":10357},{"style":590},[10358],{"type":23,"value":5034},{"type":18,"tag":571,"props":10360,"children":10361},{"style":3356},[10362],{"type":23,"value":9435},{"type":18,"tag":571,"props":10364,"children":10365},{"style":584},[10366],{"type":23,"value":8952},{"type":18,"tag":571,"props":10368,"children":10369},{"style":590},[10370],{"type":23,"value":608},{"type":18,"tag":571,"props":10372,"children":10373},{"style":784},[10374],{"type":23,"value":8961},{"type":18,"tag":571,"props":10376,"children":10377},{"style":590},[10378],{"type":23,"value":9452},{"type":18,"tag":571,"props":10380,"children":10381},{"style":784},[10382],{"type":23,"value":8961},{"type":18,"tag":571,"props":10384,"children":10385},{"style":584},[10386],{"type":23,"value":7302},{"type":18,"tag":571,"props":10388,"children":10389},{"style":590},[10390],{"type":23,"value":608},{"type":18,"tag":571,"props":10392,"children":10393},{"style":784},[10394],{"type":23,"value":9469},{"type":18,"tag":571,"props":10396,"children":10397},{"style":590},[10398],{"type":23,"value":7316},{"type":18,"tag":571,"props":10400,"children":10401},{"class":573,"line":888},[10402,10406,10410,10414,10418,10422,10426,10430,10434,10438,10442,10446],{"type":18,"tag":571,"props":10403,"children":10404},{"style":590},[10405],{"type":23,"value":5034},{"type":18,"tag":571,"props":10407,"children":10408},{"style":3356},[10409],{"type":23,"value":9296},{"type":18,"tag":571,"props":10411,"children":10412},{"style":590},[10413],{"type":23,"value":8990},{"type":18,"tag":571,"props":10415,"children":10416},{"style":584},[10417],{"type":23,"value":8995},{"type":18,"tag":571,"props":10419,"children":10420},{"style":590},[10421],{"type":23,"value":608},{"type":18,"tag":571,"props":10423,"children":10424},{"style":784},[10425],{"type":23,"value":8961},{"type":18,"tag":571,"props":10427,"children":10428},{"style":584},[10429],{"type":23,"value":9505},{"type":18,"tag":571,"props":10431,"children":10432},{"style":590},[10433],{"type":23,"value":9510},{"type":18,"tag":571,"props":10435,"children":10436},{"style":784},[10437],{"type":23,"value":8961},{"type":18,"tag":571,"props":10439,"children":10440},{"style":590},[10441],{"type":23,"value":9519},{"type":18,"tag":571,"props":10443,"children":10444},{"style":3356},[10445],{"type":23,"value":9296},{"type":18,"tag":571,"props":10447,"children":10448},{"style":590},[10449],{"type":23,"value":3387},{"type":18,"tag":571,"props":10451,"children":10452},{"class":573,"line":898},[10453,10457,10461],{"type":18,"tag":571,"props":10454,"children":10455},{"style":590},[10456],{"type":23,"value":5340},{"type":18,"tag":571,"props":10458,"children":10459},{"style":3356},[10460],{"type":23,"value":7047},{"type":18,"tag":571,"props":10462,"children":10463},{"style":590},[10464],{"type":23,"value":3387},{"type":18,"tag":571,"props":10466,"children":10467},{"class":573,"line":917},[10468],{"type":18,"tag":571,"props":10469,"children":10470},{"emptyLinePlaceholder":656},[10471],{"type":23,"value":659},{"type":18,"tag":571,"props":10473,"children":10474},{"class":573,"line":931},[10475,10479,10483,10487,10491,10495,10499],{"type":18,"tag":571,"props":10476,"children":10477},{"style":590},[10478],{"type":23,"value":593},{"type":18,"tag":571,"props":10480,"children":10481},{"style":3356},[10482],{"type":23,"value":8363},{"type":18,"tag":571,"props":10484,"children":10485},{"style":584},[10486],{"type":23,"value":8382},{"type":18,"tag":571,"props":10488,"children":10489},{"style":584},[10490],{"type":23,"value":8368},{"type":18,"tag":571,"props":10492,"children":10493},{"style":590},[10494],{"type":23,"value":608},{"type":18,"tag":571,"props":10496,"children":10497},{"style":784},[10498],{"type":23,"value":8377},{"type":18,"tag":571,"props":10500,"children":10501},{"style":590},[10502],{"type":23,"value":3387},{"type":18,"tag":571,"props":10504,"children":10505},{"class":573,"line":939},[10506,10510,10515,10519,10523],{"type":18,"tag":571,"props":10507,"children":10508},{"style":578},[10509],{"type":23,"value":7493},{"type":18,"tag":571,"props":10511,"children":10512},{"style":590},[10513],{"type":23,"value":10514}," { ref, watch, computed, onMounted } ",{"type":18,"tag":571,"props":10516,"children":10517},{"style":578},[10518],{"type":23,"value":7503},{"type":18,"tag":571,"props":10520,"children":10521},{"style":784},[10522],{"type":23,"value":9601},{"type":18,"tag":571,"props":10524,"children":10525},{"style":590},[10526],{"type":23,"value":650},{"type":18,"tag":571,"props":10528,"children":10529},{"class":573,"line":947},[10530],{"type":18,"tag":571,"props":10531,"children":10532},{"emptyLinePlaceholder":656},[10533],{"type":23,"value":659},{"type":18,"tag":571,"props":10535,"children":10536},{"class":573,"line":956},[10537,10541,10545,10549,10553,10557,10561],{"type":18,"tag":571,"props":10538,"children":10539},{"style":578},[10540],{"type":23,"value":1516},{"type":18,"tag":571,"props":10542,"children":10543},{"style":642},[10544],{"type":23,"value":9239},{"type":18,"tag":571,"props":10546,"children":10547},{"style":578},[10548],{"type":23,"value":1526},{"type":18,"tag":571,"props":10550,"children":10551},{"style":584},[10552],{"type":23,"value":8407},{"type":18,"tag":571,"props":10554,"children":10555},{"style":590},[10556],{"type":23,"value":9636},{"type":18,"tag":571,"props":10558,"children":10559},{"style":784},[10560],{"type":23,"value":9693},{"type":18,"tag":571,"props":10562,"children":10563},{"style":590},[10564],{"type":23,"value":9664},{"type":18,"tag":571,"props":10566,"children":10567},{"class":573,"line":991},[10568,10572,10576,10580,10584,10588,10592],{"type":18,"tag":571,"props":10569,"children":10570},{"style":578},[10571],{"type":23,"value":1516},{"type":18,"tag":571,"props":10573,"children":10574},{"style":642},[10575],{"type":23,"value":9676},{"type":18,"tag":571,"props":10577,"children":10578},{"style":578},[10579],{"type":23,"value":1526},{"type":18,"tag":571,"props":10581,"children":10582},{"style":584},[10583],{"type":23,"value":8407},{"type":18,"tag":571,"props":10585,"children":10586},{"style":590},[10587],{"type":23,"value":682},{"type":18,"tag":571,"props":10589,"children":10590},{"style":784},[10591],{"type":23,"value":9693},{"type":18,"tag":571,"props":10593,"children":10594},{"style":590},[10595],{"type":23,"value":792},{"type":18,"tag":571,"props":10597,"children":10598},{"class":573,"line":1015},[10599,10603,10607,10611,10615,10619,10623],{"type":18,"tag":571,"props":10600,"children":10601},{"style":578},[10602],{"type":23,"value":1516},{"type":18,"tag":571,"props":10604,"children":10605},{"style":642},[10606],{"type":23,"value":9709},{"type":18,"tag":571,"props":10608,"children":10609},{"style":578},[10610],{"type":23,"value":1526},{"type":18,"tag":571,"props":10612,"children":10613},{"style":584},[10614],{"type":23,"value":8407},{"type":18,"tag":571,"props":10616,"children":10617},{"style":590},[10618],{"type":23,"value":682},{"type":18,"tag":571,"props":10620,"children":10621},{"style":784},[10622],{"type":23,"value":9693},{"type":18,"tag":571,"props":10624,"children":10625},{"style":590},[10626],{"type":23,"value":792},{"type":18,"tag":571,"props":10628,"children":10629},{"class":573,"line":1033},[10630,10634,10639,10643,10647,10651,10655],{"type":18,"tag":571,"props":10631,"children":10632},{"style":578},[10633],{"type":23,"value":1516},{"type":18,"tag":571,"props":10635,"children":10636},{"style":642},[10637],{"type":23,"value":10638}," timeElapsed",{"type":18,"tag":571,"props":10640,"children":10641},{"style":578},[10642],{"type":23,"value":1526},{"type":18,"tag":571,"props":10644,"children":10645},{"style":584},[10646],{"type":23,"value":8407},{"type":18,"tag":571,"props":10648,"children":10649},{"style":590},[10650],{"type":23,"value":682},{"type":18,"tag":571,"props":10652,"children":10653},{"style":642},[10654],{"type":23,"value":4485},{"type":18,"tag":571,"props":10656,"children":10657},{"style":590},[10658],{"type":23,"value":792},{"type":18,"tag":571,"props":10660,"children":10661},{"class":573,"line":1075},[10662,10667,10672,10676,10681,10685,10689,10693,10697],{"type":18,"tag":571,"props":10663,"children":10664},{"style":578},[10665],{"type":23,"value":10666},"let",{"type":18,"tag":571,"props":10668,"children":10669},{"style":590},[10670],{"type":23,"value":10671}," timer",{"type":18,"tag":571,"props":10673,"children":10674},{"style":578},[10675],{"type":23,"value":624},{"type":18,"tag":571,"props":10677,"children":10678},{"style":642},[10679],{"type":23,"value":10680}," number",{"type":18,"tag":571,"props":10682,"children":10683},{"style":578},[10684],{"type":23,"value":8421},{"type":18,"tag":571,"props":10686,"children":10687},{"style":642},[10688],{"type":23,"value":8426},{"type":18,"tag":571,"props":10690,"children":10691},{"style":578},[10692],{"type":23,"value":1526},{"type":18,"tag":571,"props":10694,"children":10695},{"style":642},[10696],{"type":23,"value":8426},{"type":18,"tag":571,"props":10698,"children":10699},{"style":590},[10700],{"type":23,"value":650},{"type":18,"tag":571,"props":10702,"children":10703},{"class":573,"line":1084},[10704],{"type":18,"tag":571,"props":10705,"children":10706},{"emptyLinePlaceholder":656},[10707],{"type":23,"value":659},{"type":18,"tag":571,"props":10709,"children":10710},{"class":573,"line":1092},[10711,10715,10720],{"type":18,"tag":571,"props":10712,"children":10713},{"style":578},[10714],{"type":23,"value":9745},{"type":18,"tag":571,"props":10716,"children":10717},{"style":584},[10718],{"type":23,"value":10719}," startTimer",{"type":18,"tag":571,"props":10721,"children":10722},{"style":590},[10723],{"type":23,"value":10724},"() {\n",{"type":18,"tag":571,"props":10726,"children":10727},{"class":573,"line":1100},[10728,10732],{"type":18,"tag":571,"props":10729,"children":10730},{"style":578},[10731],{"type":23,"value":8227},{"type":18,"tag":571,"props":10733,"children":10734},{"style":590},[10735],{"type":23,"value":10736}," (timer) {\n",{"type":18,"tag":571,"props":10738,"children":10739},{"class":573,"line":1109},[10740,10745],{"type":18,"tag":571,"props":10741,"children":10742},{"style":584},[10743],{"type":23,"value":10744},"    clearInterval",{"type":18,"tag":571,"props":10746,"children":10747},{"style":590},[10748],{"type":23,"value":10749},"(timer);\n",{"type":18,"tag":571,"props":10751,"children":10752},{"class":573,"line":1151},[10753],{"type":18,"tag":571,"props":10754,"children":10755},{"style":590},[10756],{"type":23,"value":3828},{"type":18,"tag":571,"props":10758,"children":10759},{"class":573,"line":1170},[10760,10765,10769,10773,10778],{"type":18,"tag":571,"props":10761,"children":10762},{"style":590},[10763],{"type":23,"value":10764},"  timeElapsed.value ",{"type":18,"tag":571,"props":10766,"children":10767},{"style":578},[10768],{"type":23,"value":608},{"type":18,"tag":571,"props":10770,"children":10771},{"style":642},[10772],{"type":23,"value":3176},{"type":18,"tag":571,"props":10774,"children":10775},{"style":590},[10776],{"type":23,"value":10777},"; ",{"type":18,"tag":571,"props":10779,"children":10780},{"style":892},[10781],{"type":23,"value":10782},"// Reset the timer\n",{"type":18,"tag":571,"props":10784,"children":10785},{"class":573,"line":1192},[10786,10791,10795,10800,10805,10809],{"type":18,"tag":571,"props":10787,"children":10788},{"style":590},[10789],{"type":23,"value":10790},"  timer ",{"type":18,"tag":571,"props":10792,"children":10793},{"style":578},[10794],{"type":23,"value":608},{"type":18,"tag":571,"props":10796,"children":10797},{"style":584},[10798],{"type":23,"value":10799}," setInterval",{"type":18,"tag":571,"props":10801,"children":10802},{"style":590},[10803],{"type":23,"value":10804},"(() ",{"type":18,"tag":571,"props":10806,"children":10807},{"style":578},[10808],{"type":23,"value":639},{"type":18,"tag":571,"props":10810,"children":10811},{"style":590},[10812],{"type":23,"value":2993},{"type":18,"tag":571,"props":10814,"children":10815},{"class":573,"line":1225},[10816,10821,10826],{"type":18,"tag":571,"props":10817,"children":10818},{"style":590},[10819],{"type":23,"value":10820},"    timeElapsed.value",{"type":18,"tag":571,"props":10822,"children":10823},{"style":578},[10824],{"type":23,"value":10825},"++",{"type":18,"tag":571,"props":10827,"children":10828},{"style":590},[10829],{"type":23,"value":650},{"type":18,"tag":571,"props":10831,"children":10832},{"class":573,"line":1257},[10833,10838,10842],{"type":18,"tag":571,"props":10834,"children":10835},{"style":590},[10836],{"type":23,"value":10837},"  }, ",{"type":18,"tag":571,"props":10839,"children":10840},{"style":642},[10841],{"type":23,"value":5740},{"type":18,"tag":571,"props":10843,"children":10844},{"style":590},[10845],{"type":23,"value":792},{"type":18,"tag":571,"props":10847,"children":10848},{"class":573,"line":1284},[10849],{"type":18,"tag":571,"props":10850,"children":10851},{"style":590},[10852],{"type":23,"value":1338},{"type":18,"tag":571,"props":10854,"children":10855},{"class":573,"line":1293},[10856],{"type":18,"tag":571,"props":10857,"children":10858},{"emptyLinePlaceholder":656},[10859],{"type":23,"value":659},{"type":18,"tag":571,"props":10861,"children":10862},{"class":573,"line":1302},[10863,10867,10871,10875,10879,10883,10887],{"type":18,"tag":571,"props":10864,"children":10865},{"style":578},[10866],{"type":23,"value":9745},{"type":18,"tag":571,"props":10868,"children":10869},{"style":584},[10870],{"type":23,"value":9750},{"type":18,"tag":571,"props":10872,"children":10873},{"style":590},[10874],{"type":23,"value":682},{"type":18,"tag":571,"props":10876,"children":10877},{"style":616},[10878],{"type":23,"value":9266},{"type":18,"tag":571,"props":10880,"children":10881},{"style":578},[10882],{"type":23,"value":624},{"type":18,"tag":571,"props":10884,"children":10885},{"style":642},[10886],{"type":23,"value":8128},{"type":18,"tag":571,"props":10888,"children":10889},{"style":590},[10890],{"type":23,"value":8246},{"type":18,"tag":571,"props":10892,"children":10893},{"class":573,"line":1310},[10894,10898,10902],{"type":18,"tag":571,"props":10895,"children":10896},{"style":590},[10897],{"type":23,"value":9778},{"type":18,"tag":571,"props":10899,"children":10900},{"style":578},[10901],{"type":23,"value":608},{"type":18,"tag":571,"props":10903,"children":10904},{"style":590},[10905],{"type":23,"value":9787},{"type":18,"tag":571,"props":10907,"children":10908},{"class":573,"line":1318},[10909],{"type":18,"tag":571,"props":10910,"children":10911},{"style":590},[10912],{"type":23,"value":1338},{"type":18,"tag":571,"props":10914,"children":10915},{"class":573,"line":1332},[10916],{"type":18,"tag":571,"props":10917,"children":10918},{"emptyLinePlaceholder":656},[10919],{"type":23,"value":659},{"type":18,"tag":571,"props":10921,"children":10922},{"class":573,"line":3957},[10923,10927,10931,10935,10939,10943,10947],{"type":18,"tag":571,"props":10924,"children":10925},{"style":578},[10926],{"type":23,"value":9745},{"type":18,"tag":571,"props":10928,"children":10929},{"style":584},[10930],{"type":23,"value":6071},{"type":18,"tag":571,"props":10932,"children":10933},{"style":590},[10934],{"type":23,"value":682},{"type":18,"tag":571,"props":10936,"children":10937},{"style":616},[10938],{"type":23,"value":9266},{"type":18,"tag":571,"props":10940,"children":10941},{"style":578},[10942],{"type":23,"value":624},{"type":18,"tag":571,"props":10944,"children":10945},{"style":642},[10946],{"type":23,"value":8128},{"type":18,"tag":571,"props":10948,"children":10949},{"style":590},[10950],{"type":23,"value":8246},{"type":18,"tag":571,"props":10952,"children":10953},{"class":573,"line":3970},[10954,10958,10962,10966],{"type":18,"tag":571,"props":10955,"children":10956},{"style":578},[10957],{"type":23,"value":8227},{"type":18,"tag":571,"props":10959,"children":10960},{"style":590},[10961],{"type":23,"value":9844},{"type":18,"tag":571,"props":10963,"children":10964},{"style":584},[10965],{"type":23,"value":9849},{"type":18,"tag":571,"props":10967,"children":10968},{"style":590},[10969],{"type":23,"value":9854},{"type":18,"tag":571,"props":10971,"children":10972},{"class":573,"line":3994},[10973,10977,10981],{"type":18,"tag":571,"props":10974,"children":10975},{"style":590},[10976],{"type":23,"value":9862},{"type":18,"tag":571,"props":10978,"children":10979},{"style":584},[10980],{"type":23,"value":1162},{"type":18,"tag":571,"props":10982,"children":10983},{"style":590},[10984],{"type":23,"value":9871},{"type":18,"tag":571,"props":10986,"children":10987},{"class":573,"line":4002},[10988,10993,10997,11001,11005],{"type":18,"tag":571,"props":10989,"children":10990},{"style":590},[10991],{"type":23,"value":10992},"    newTodo.value ",{"type":18,"tag":571,"props":10994,"children":10995},{"style":578},[10996],{"type":23,"value":608},{"type":18,"tag":571,"props":10998,"children":10999},{"style":784},[11000],{"type":23,"value":9888},{"type":18,"tag":571,"props":11002,"children":11003},{"style":590},[11004],{"type":23,"value":10777},{"type":18,"tag":571,"props":11006,"children":11007},{"style":892},[11008],{"type":23,"value":11009},"// Clear the input field\n",{"type":18,"tag":571,"props":11011,"children":11012},{"class":573,"line":4669},[11013],{"type":18,"tag":571,"props":11014,"children":11015},{"style":590},[11016],{"type":23,"value":3828},{"type":18,"tag":571,"props":11018,"children":11019},{"class":573,"line":4677},[11020],{"type":18,"tag":571,"props":11021,"children":11022},{"style":590},[11023],{"type":23,"value":1338},{"type":18,"tag":571,"props":11025,"children":11026},{"class":573,"line":4685},[11027],{"type":18,"tag":571,"props":11028,"children":11029},{"emptyLinePlaceholder":656},[11030],{"type":23,"value":659},{"type":18,"tag":571,"props":11032,"children":11033},{"class":573,"line":4701},[11034,11038,11042,11046,11050,11054,11058],{"type":18,"tag":571,"props":11035,"children":11036},{"style":578},[11037],{"type":23,"value":9745},{"type":18,"tag":571,"props":11039,"children":11040},{"style":584},[11041],{"type":23,"value":9926},{"type":18,"tag":571,"props":11043,"children":11044},{"style":590},[11045],{"type":23,"value":682},{"type":18,"tag":571,"props":11047,"children":11048},{"style":616},[11049],{"type":23,"value":9266},{"type":18,"tag":571,"props":11051,"children":11052},{"style":578},[11053],{"type":23,"value":624},{"type":18,"tag":571,"props":11055,"children":11056},{"style":642},[11057],{"type":23,"value":8128},{"type":18,"tag":571,"props":11059,"children":11060},{"style":590},[11061],{"type":23,"value":8246},{"type":18,"tag":571,"props":11063,"children":11064},{"class":573,"line":4713},[11065,11069,11073,11077,11081,11085],{"type":18,"tag":571,"props":11066,"children":11067},{"style":578},[11068],{"type":23,"value":7582},{"type":18,"tag":571,"props":11070,"children":11071},{"style":642},[11072],{"type":23,"value":9958},{"type":18,"tag":571,"props":11074,"children":11075},{"style":578},[11076],{"type":23,"value":1526},{"type":18,"tag":571,"props":11078,"children":11079},{"style":590},[11080],{"type":23,"value":9967},{"type":18,"tag":571,"props":11082,"children":11083},{"style":584},[11084],{"type":23,"value":1218},{"type":18,"tag":571,"props":11086,"children":11087},{"style":590},[11088],{"type":23,"value":9871},{"type":18,"tag":571,"props":11090,"children":11091},{"class":573,"line":4737},[11092,11096,11100,11104,11108,11112],{"type":18,"tag":571,"props":11093,"children":11094},{"style":578},[11095],{"type":23,"value":8227},{"type":18,"tag":571,"props":11097,"children":11098},{"style":590},[11099],{"type":23,"value":9987},{"type":18,"tag":571,"props":11101,"children":11102},{"style":578},[11103],{"type":23,"value":1007},{"type":18,"tag":571,"props":11105,"children":11106},{"style":578},[11107],{"type":23,"value":9996},{"type":18,"tag":571,"props":11109,"children":11110},{"style":642},[11111],{"type":23,"value":270},{"type":18,"tag":571,"props":11113,"children":11114},{"style":590},[11115],{"type":23,"value":8246},{"type":18,"tag":571,"props":11117,"children":11118},{"class":573,"line":4745},[11119,11123,11127,11131,11135,11139],{"type":18,"tag":571,"props":11120,"children":11121},{"style":590},[11122],{"type":23,"value":9862},{"type":18,"tag":571,"props":11124,"children":11125},{"style":584},[11126],{"type":23,"value":1268},{"type":18,"tag":571,"props":11128,"children":11129},{"style":590},[11130],{"type":23,"value":10020},{"type":18,"tag":571,"props":11132,"children":11133},{"style":642},[11134],{"type":23,"value":270},{"type":18,"tag":571,"props":11136,"children":11137},{"style":590},[11138],{"type":23,"value":10029},{"type":18,"tag":571,"props":11140,"children":11141},{"style":892},[11142],{"type":23,"value":10034},{"type":18,"tag":571,"props":11144,"children":11145},{"class":573,"line":4757},[11146],{"type":18,"tag":571,"props":11147,"children":11148},{"style":590},[11149],{"type":23,"value":3828},{"type":18,"tag":571,"props":11151,"children":11152},{"class":573,"line":4782},[11153],{"type":18,"tag":571,"props":11154,"children":11155},{"style":590},[11156],{"type":23,"value":1338},{"type":18,"tag":571,"props":11158,"children":11159},{"class":573,"line":4790},[11160],{"type":18,"tag":571,"props":11161,"children":11162},{"emptyLinePlaceholder":656},[11163],{"type":23,"value":659},{"type":18,"tag":571,"props":11165,"children":11166},{"class":573,"line":4802},[11167,11172,11177,11181,11185,11190,11194,11198],{"type":18,"tag":571,"props":11168,"children":11169},{"style":584},[11170],{"type":23,"value":11171},"watch",{"type":18,"tag":571,"props":11173,"children":11174},{"style":590},[11175],{"type":23,"value":11176},"(priority, (",{"type":18,"tag":571,"props":11178,"children":11179},{"style":616},[11180],{"type":23,"value":619},{"type":18,"tag":571,"props":11182,"children":11183},{"style":590},[11184],{"type":23,"value":3025},{"type":18,"tag":571,"props":11186,"children":11187},{"style":616},[11188],{"type":23,"value":11189},"oldValue",{"type":18,"tag":571,"props":11191,"children":11192},{"style":590},[11193],{"type":23,"value":1544},{"type":18,"tag":571,"props":11195,"children":11196},{"style":578},[11197],{"type":23,"value":639},{"type":18,"tag":571,"props":11199,"children":11200},{"style":590},[11201],{"type":23,"value":2993},{"type":18,"tag":571,"props":11203,"children":11204},{"class":573,"line":4826},[11205,11209,11214,11218],{"type":18,"tag":571,"props":11206,"children":11207},{"style":578},[11208],{"type":23,"value":8227},{"type":18,"tag":571,"props":11210,"children":11211},{"style":590},[11212],{"type":23,"value":11213}," (newValue ",{"type":18,"tag":571,"props":11215,"children":11216},{"style":578},[11217],{"type":23,"value":1007},{"type":18,"tag":571,"props":11219,"children":11220},{"style":590},[11221],{"type":23,"value":11222}," oldValue) {\n",{"type":18,"tag":571,"props":11224,"children":11225},{"class":573,"line":4834},[11226,11231],{"type":18,"tag":571,"props":11227,"children":11228},{"style":584},[11229],{"type":23,"value":11230},"    startTimer",{"type":18,"tag":571,"props":11232,"children":11233},{"style":590},[11234],{"type":23,"value":1600},{"type":18,"tag":571,"props":11236,"children":11237},{"class":573,"line":4846},[11238],{"type":18,"tag":571,"props":11239,"children":11240},{"style":590},[11241],{"type":23,"value":3828},{"type":18,"tag":571,"props":11243,"children":11244},{"class":573,"line":4870},[11245],{"type":18,"tag":571,"props":11246,"children":11247},{"style":590},[11248],{"type":23,"value":2184},{"type":18,"tag":571,"props":11250,"children":11251},{"class":573,"line":4878},[11252,11256,11261,11265,11269,11273,11277,11281],{"type":18,"tag":571,"props":11253,"children":11254},{"style":584},[11255],{"type":23,"value":11171},{"type":18,"tag":571,"props":11257,"children":11258},{"style":590},[11259],{"type":23,"value":11260},"(timeElapsed, (",{"type":18,"tag":571,"props":11262,"children":11263},{"style":616},[11264],{"type":23,"value":619},{"type":18,"tag":571,"props":11266,"children":11267},{"style":590},[11268],{"type":23,"value":3025},{"type":18,"tag":571,"props":11270,"children":11271},{"style":616},[11272],{"type":23,"value":11189},{"type":18,"tag":571,"props":11274,"children":11275},{"style":590},[11276],{"type":23,"value":1544},{"type":18,"tag":571,"props":11278,"children":11279},{"style":578},[11280],{"type":23,"value":639},{"type":18,"tag":571,"props":11282,"children":11283},{"style":590},[11284],{"type":23,"value":2993},{"type":18,"tag":571,"props":11286,"children":11287},{"class":573,"line":4890},[11288,11292,11296,11300,11305,11310,11315,11319,11323],{"type":18,"tag":571,"props":11289,"children":11290},{"style":578},[11291],{"type":23,"value":8227},{"type":18,"tag":571,"props":11293,"children":11294},{"style":590},[11295],{"type":23,"value":11213},{"type":18,"tag":571,"props":11297,"children":11298},{"style":578},[11299],{"type":23,"value":1007},{"type":18,"tag":571,"props":11301,"children":11302},{"style":590},[11303],{"type":23,"value":11304}," oldValue ",{"type":18,"tag":571,"props":11306,"children":11307},{"style":578},[11308],{"type":23,"value":11309},"&&",{"type":18,"tag":571,"props":11311,"children":11312},{"style":590},[11313],{"type":23,"value":11314}," newValue ",{"type":18,"tag":571,"props":11316,"children":11317},{"style":578},[11318],{"type":23,"value":1241},{"type":18,"tag":571,"props":11320,"children":11321},{"style":642},[11322],{"type":23,"value":3144},{"type":18,"tag":571,"props":11324,"children":11325},{"style":590},[11326],{"type":23,"value":8246},{"type":18,"tag":571,"props":11328,"children":11329},{"class":573,"line":4914},[11330,11335,11339,11343],{"type":18,"tag":571,"props":11331,"children":11332},{"style":590},[11333],{"type":23,"value":11334},"    timeElapsed.value ",{"type":18,"tag":571,"props":11336,"children":11337},{"style":578},[11338],{"type":23,"value":608},{"type":18,"tag":571,"props":11340,"children":11341},{"style":642},[11342],{"type":23,"value":3176},{"type":18,"tag":571,"props":11344,"children":11345},{"style":590},[11346],{"type":23,"value":650},{"type":18,"tag":571,"props":11348,"children":11349},{"class":573,"line":4922},[11350,11355,11359,11364],{"type":18,"tag":571,"props":11351,"children":11352},{"style":584},[11353],{"type":23,"value":11354},"    alert",{"type":18,"tag":571,"props":11356,"children":11357},{"style":590},[11358],{"type":23,"value":682},{"type":18,"tag":571,"props":11360,"children":11361},{"style":784},[11362],{"type":23,"value":11363},"'Times up'",{"type":18,"tag":571,"props":11365,"children":11366},{"style":590},[11367],{"type":23,"value":792},{"type":18,"tag":571,"props":11369,"children":11371},{"class":573,"line":11370},60,[11372],{"type":18,"tag":571,"props":11373,"children":11374},{"style":590},[11375],{"type":23,"value":3828},{"type":18,"tag":571,"props":11377,"children":11379},{"class":573,"line":11378},61,[11380],{"type":18,"tag":571,"props":11381,"children":11382},{"style":590},[11383],{"type":23,"value":2184},{"type":18,"tag":571,"props":11385,"children":11387},{"class":573,"line":11386},62,[11388],{"type":18,"tag":571,"props":11389,"children":11390},{"emptyLinePlaceholder":656},[11391],{"type":23,"value":659},{"type":18,"tag":571,"props":11393,"children":11395},{"class":573,"line":11394},63,[11396],{"type":18,"tag":571,"props":11397,"children":11398},{"style":892},[11399],{"type":23,"value":11400},"// Start the timer when the component is mounted\n",{"type":18,"tag":571,"props":11402,"children":11404},{"class":573,"line":11403},64,[11405,11410,11414,11418],{"type":18,"tag":571,"props":11406,"children":11407},{"style":584},[11408],{"type":23,"value":11409},"onMounted",{"type":18,"tag":571,"props":11411,"children":11412},{"style":590},[11413],{"type":23,"value":10804},{"type":18,"tag":571,"props":11415,"children":11416},{"style":578},[11417],{"type":23,"value":639},{"type":18,"tag":571,"props":11419,"children":11420},{"style":590},[11421],{"type":23,"value":2993},{"type":18,"tag":571,"props":11423,"children":11425},{"class":573,"line":11424},65,[11426,11431,11435,11440,11445,11449,11454,11458,11463],{"type":18,"tag":571,"props":11427,"children":11428},{"style":590},[11429],{"type":23,"value":11430},"  todos.value ",{"type":18,"tag":571,"props":11432,"children":11433},{"style":578},[11434],{"type":23,"value":608},{"type":18,"tag":571,"props":11436,"children":11437},{"style":590},[11438],{"type":23,"value":11439}," [",{"type":18,"tag":571,"props":11441,"children":11442},{"style":784},[11443],{"type":23,"value":11444},"'Walk dog'",{"type":18,"tag":571,"props":11446,"children":11447},{"style":590},[11448],{"type":23,"value":3025},{"type":18,"tag":571,"props":11450,"children":11451},{"style":784},[11452],{"type":23,"value":11453},"'Write blog'",{"type":18,"tag":571,"props":11455,"children":11456},{"style":590},[11457],{"type":23,"value":3025},{"type":18,"tag":571,"props":11459,"children":11460},{"style":784},[11461],{"type":23,"value":11462},"'Water plants'",{"type":18,"tag":571,"props":11464,"children":11465},{"style":590},[11466],{"type":23,"value":11467},"];\n",{"type":18,"tag":571,"props":11469,"children":11471},{"class":573,"line":11470},66,[11472,11476,11480,11485,11489],{"type":18,"tag":571,"props":11473,"children":11474},{"style":590},[11475],{"type":23,"value":9778},{"type":18,"tag":571,"props":11477,"children":11478},{"style":578},[11479],{"type":23,"value":608},{"type":18,"tag":571,"props":11481,"children":11482},{"style":590},[11483],{"type":23,"value":11484}," todos.value[",{"type":18,"tag":571,"props":11486,"children":11487},{"style":642},[11488],{"type":23,"value":4485},{"type":18,"tag":571,"props":11490,"children":11491},{"style":590},[11492],{"type":23,"value":11467},{"type":18,"tag":571,"props":11494,"children":11496},{"class":573,"line":11495},67,[11497,11502],{"type":18,"tag":571,"props":11498,"children":11499},{"style":584},[11500],{"type":23,"value":11501},"  startTimer",{"type":18,"tag":571,"props":11503,"children":11504},{"style":590},[11505],{"type":23,"value":1600},{"type":18,"tag":571,"props":11507,"children":11509},{"class":573,"line":11508},68,[11510],{"type":18,"tag":571,"props":11511,"children":11512},{"style":590},[11513],{"type":23,"value":2184},{"type":18,"tag":571,"props":11515,"children":11517},{"class":573,"line":11516},69,[11518],{"type":18,"tag":571,"props":11519,"children":11520},{"emptyLinePlaceholder":656},[11521],{"type":23,"value":659},{"type":18,"tag":571,"props":11523,"children":11525},{"class":573,"line":11524},70,[11526],{"type":18,"tag":571,"props":11527,"children":11528},{"style":892},[11529],{"type":23,"value":11530},"// Compute the elapsed time in MM:SS format\n",{"type":18,"tag":571,"props":11532,"children":11534},{"class":573,"line":11533},71,[11535,11539,11544,11548,11553,11557,11561],{"type":18,"tag":571,"props":11536,"children":11537},{"style":578},[11538],{"type":23,"value":1516},{"type":18,"tag":571,"props":11540,"children":11541},{"style":642},[11542],{"type":23,"value":11543}," timeElapsedString",{"type":18,"tag":571,"props":11545,"children":11546},{"style":578},[11547],{"type":23,"value":1526},{"type":18,"tag":571,"props":11549,"children":11550},{"style":584},[11551],{"type":23,"value":11552}," computed",{"type":18,"tag":571,"props":11554,"children":11555},{"style":590},[11556],{"type":23,"value":10804},{"type":18,"tag":571,"props":11558,"children":11559},{"style":578},[11560],{"type":23,"value":639},{"type":18,"tag":571,"props":11562,"children":11563},{"style":590},[11564],{"type":23,"value":2993},{"type":18,"tag":571,"props":11566,"children":11568},{"class":573,"line":11567},72,[11569,11573,11578,11582,11587,11592,11597,11602,11607],{"type":18,"tag":571,"props":11570,"children":11571},{"style":578},[11572],{"type":23,"value":7582},{"type":18,"tag":571,"props":11574,"children":11575},{"style":642},[11576],{"type":23,"value":11577}," minutes",{"type":18,"tag":571,"props":11579,"children":11580},{"style":578},[11581],{"type":23,"value":1526},{"type":18,"tag":571,"props":11583,"children":11584},{"style":590},[11585],{"type":23,"value":11586}," Math.",{"type":18,"tag":571,"props":11588,"children":11589},{"style":584},[11590],{"type":23,"value":11591},"floor",{"type":18,"tag":571,"props":11593,"children":11594},{"style":590},[11595],{"type":23,"value":11596},"(timeElapsed.value ",{"type":18,"tag":571,"props":11598,"children":11599},{"style":578},[11600],{"type":23,"value":11601},"/",{"type":18,"tag":571,"props":11603,"children":11604},{"style":642},[11605],{"type":23,"value":11606}," 60",{"type":18,"tag":571,"props":11608,"children":11609},{"style":590},[11610],{"type":23,"value":792},{"type":18,"tag":571,"props":11612,"children":11614},{"class":573,"line":11613},73,[11615,11619,11624,11628,11633,11637,11641],{"type":18,"tag":571,"props":11616,"children":11617},{"style":578},[11618],{"type":23,"value":7582},{"type":18,"tag":571,"props":11620,"children":11621},{"style":642},[11622],{"type":23,"value":11623}," seconds",{"type":18,"tag":571,"props":11625,"children":11626},{"style":578},[11627],{"type":23,"value":1526},{"type":18,"tag":571,"props":11629,"children":11630},{"style":590},[11631],{"type":23,"value":11632}," timeElapsed.value ",{"type":18,"tag":571,"props":11634,"children":11635},{"style":578},[11636],{"type":23,"value":3198},{"type":18,"tag":571,"props":11638,"children":11639},{"style":642},[11640],{"type":23,"value":11606},{"type":18,"tag":571,"props":11642,"children":11643},{"style":590},[11644],{"type":23,"value":650},{"type":18,"tag":571,"props":11646,"children":11648},{"class":573,"line":11647},74,[11649,11654,11659,11664,11669,11674,11678,11683,11688,11693,11697,11701,11705,11710,11714,11718],{"type":18,"tag":571,"props":11650,"children":11651},{"style":578},[11652],{"type":23,"value":11653},"  return",{"type":18,"tag":571,"props":11655,"children":11656},{"style":784},[11657],{"type":23,"value":11658}," `${",{"type":18,"tag":571,"props":11660,"children":11661},{"style":590},[11662],{"type":23,"value":11663},"minutes",{"type":18,"tag":571,"props":11665,"children":11666},{"style":784},[11667],{"type":23,"value":11668},"}:${",{"type":18,"tag":571,"props":11670,"children":11671},{"style":590},[11672],{"type":23,"value":11673},"seconds",{"type":18,"tag":571,"props":11675,"children":11676},{"style":784},[11677],{"type":23,"value":205},{"type":18,"tag":571,"props":11679,"children":11680},{"style":584},[11681],{"type":23,"value":11682},"toString",{"type":18,"tag":571,"props":11684,"children":11685},{"style":784},[11686],{"type":23,"value":11687},"().",{"type":18,"tag":571,"props":11689,"children":11690},{"style":584},[11691],{"type":23,"value":11692},"padStart",{"type":18,"tag":571,"props":11694,"children":11695},{"style":784},[11696],{"type":23,"value":682},{"type":18,"tag":571,"props":11698,"children":11699},{"style":642},[11700],{"type":23,"value":284},{"type":18,"tag":571,"props":11702,"children":11703},{"style":784},[11704],{"type":23,"value":3025},{"type":18,"tag":571,"props":11706,"children":11707},{"style":784},[11708],{"type":23,"value":11709},"'0'",{"type":18,"tag":571,"props":11711,"children":11712},{"style":784},[11713],{"type":23,"value":1698},{"type":18,"tag":571,"props":11715,"children":11716},{"style":784},[11717],{"type":23,"value":2055},{"type":18,"tag":571,"props":11719,"children":11720},{"style":590},[11721],{"type":23,"value":650},{"type":18,"tag":571,"props":11723,"children":11725},{"class":573,"line":11724},75,[11726],{"type":18,"tag":571,"props":11727,"children":11728},{"style":590},[11729],{"type":23,"value":2184},{"type":18,"tag":571,"props":11731,"children":11733},{"class":573,"line":11732},76,[11734,11738,11742],{"type":18,"tag":571,"props":11735,"children":11736},{"style":590},[11737],{"type":23,"value":5340},{"type":18,"tag":571,"props":11739,"children":11740},{"style":3356},[11741],{"type":23,"value":8363},{"type":18,"tag":571,"props":11743,"children":11744},{"style":590},[11745],{"type":23,"value":3387},{"type":18,"tag":468,"props":11747,"children":11749},{"id":11748},"it-begins-to-become-silly",[11750],{"type":23,"value":11751},"It begins to become silly*",{"type":18,"tag":19,"props":11753,"children":11754},{},[11755],{"type":23,"value":11756},"Ok you have been speaking to the product team and they have requested that you add in a subtask list for your todos. So each todo will have add and remove logic for its subtasks. No problem you say! Let's get building!",{"type":18,"tag":561,"props":11758,"children":11760},{"className":7029,"code":11759,"language":7031,"meta":8,"style":8},"\u003Ctemplate>\n  \u003Ch1>NEXT: {{ priority }} - TIMER: {{ timeElapsedString }}\u003C/h1>\n  \u003Cul>\n    \u003Cli v-for=\"item in todos\" :key=\"item\">\n      {{ item }} \u003Cbutton @click=\"makePriority(item)\">Make Priority\u003C/button>\n      \u003Cbutton @click=\"removeTodo(item)\">Remove\u003C/button>\n\n      \u003Ch4>Subtasks:\u003C/h4>\n      \u003Cul>\n        \u003Cli v-for=\"(item, index) in subtasks\" :key=\"item\">\n          {{ item }}\n          \u003Cbutton @click=\"remove(item)\">Remove\u003C/button>\n        \u003C/li>\n      \u003C/ul>\n      \u003Cinput v-model=\"newSubtask[index]\" placeholder=\"New subtask\" />\n      \u003Cbutton @click=\"add(newTodo)\">Add\u003C/button>\n    \u003C/li>\n  \u003C/ul>\n  \u003Cinput v-model=\"newTodo\" placeholder=\"New todo\" />\n  \u003Cbutton @click=\"addTodo(newTodo)\">Add\u003C/button>\n\u003C/template>\n\n\u003Cscript setup lang=\"ts\">\nimport { ref, watch, computed, onMounted } from 'vue';\n\n// state\nconst todos = ref([]);\nconst subtasks = ref([]);\nconst newTodo = ref();\nconst newSubtasks = ref\u003Cstring[]>([]);\nconst priority = ref();\nconst timeElapsed = ref(0);\nlet timer: number | null = null;\nconst DEADLINE = 60 * 15;\n// functions\nfunction startTimer() {\n  if (timer) {\n    clearInterval(timer);\n  }\n  timeElapsed.value = 0;\n  timer = setInterval(() => {\n    timeElapsed.value++;\n  }, 1000);\n}\n\nfunction makePriority(item: string) {\n  priority.value = item;\n}\n\nfunction addTodo(item: string) {\n  if (item.trim()) {\n    todos.value.push(item);\n    newTodo.value = '';\n  }\n}\n\nfunction removeTodo(item: string) {\n  const idx = todos.value.indexOf(item);\n  if (idx !== -1) {\n    todos.value.splice(idx, 1);\n  }\n}\nfunction addSubtask(item: string) {\n  if (item.trim()) {\n    subtasks.value.push(item);\n    newTodo.value = '';\n  }\n}\n\nfunction removeSubtask(item: string) {\n  const idx = subtasks.value.indexOf(item);\n  if (idx !== -1) {\n    subtasks.value.splice(idx, 1);\n  }\n}\n\n// watch\nwatch(priority, (newValue, oldValue) => {\n  if (newValue !== oldValue) {\n    startTimer();\n  }\n});\nwatch(timeElapsed, (newValue, oldValue) => {\n  if (newValue !== oldValue && newValue > DEADLINE) {\n    timeElapsed.value = 0;\n    alert('Times up');\n  }\n});\n\n// computed\nconst timeElapsedString = computed(() => {\n  const minutes = Math.floor(timeElapsed.value / 60);\n  const seconds = timeElapsed.value % 60;\n  return `${minutes}:${seconds.toString().padStart(2, '0')}`;\n});\n\n// Start the timer when the component is mounted\nonMounted(() => {\n  todos.value = ['Walk dog', 'Write blog', 'Water plants'];\n  priority.value = todos.value[0];\n  startTimer();\n});\n\u003C/script>\n",[11761],{"type":18,"tag":480,"props":11762,"children":11763},{"__ignoreMap":8},[11764,11779,11802,11817,11884,11936,11988,11995,12019,12034,12104,12112,12164,12180,12196,12245,12296,12311,12326,12373,12425,12440,12447,12478,12501,12508,12516,12540,12563,12586,12619,12642,12673,12712,12745,12753,12768,12779,12790,12797,12816,12843,12858,12873,12880,12887,12918,12933,12940,12947,12979,12998,13013,13032,13039,13046,13053,13085,13112,13139,13162,13169,13176,13208,13227,13243,13262,13269,13276,13283,13315,13343,13370,13393,13400,13407,13414,13423,13459,13479,13491,13499,13507,13543,13583,13603,13623,13631,13639,13647,13656,13688,13728,13760,13828,13836,13844,13852,13872,13912,13936,13948,13956],{"type":18,"tag":571,"props":11765,"children":11766},{"class":573,"line":574},[11767,11771,11775],{"type":18,"tag":571,"props":11768,"children":11769},{"style":590},[11770],{"type":23,"value":593},{"type":18,"tag":571,"props":11772,"children":11773},{"style":3356},[11774],{"type":23,"value":7047},{"type":18,"tag":571,"props":11776,"children":11777},{"style":590},[11778],{"type":23,"value":3387},{"type":18,"tag":571,"props":11780,"children":11781},{"class":573,"line":169},[11782,11786,11790,11794,11798],{"type":18,"tag":571,"props":11783,"children":11784},{"style":590},[11785],{"type":23,"value":5034},{"type":18,"tag":571,"props":11787,"children":11788},{"style":3356},[11789],{"type":23,"value":7128},{"type":18,"tag":571,"props":11791,"children":11792},{"style":590},[11793],{"type":23,"value":10122},{"type":18,"tag":571,"props":11795,"children":11796},{"style":3356},[11797],{"type":23,"value":7128},{"type":18,"tag":571,"props":11799,"children":11800},{"style":590},[11801],{"type":23,"value":3387},{"type":18,"tag":571,"props":11803,"children":11804},{"class":573,"line":174},[11805,11809,11813],{"type":18,"tag":571,"props":11806,"children":11807},{"style":590},[11808],{"type":23,"value":5034},{"type":18,"tag":571,"props":11810,"children":11811},{"style":3356},[11812],{"type":23,"value":489},{"type":18,"tag":571,"props":11814,"children":11815},{"style":590},[11816],{"type":23,"value":3387},{"type":18,"tag":571,"props":11818,"children":11819},{"class":573,"line":714},[11820,11824,11828,11832,11836,11840,11844,11848,11852,11856,11860,11864,11868,11872,11876,11880],{"type":18,"tag":571,"props":11821,"children":11822},{"style":590},[11823],{"type":23,"value":5104},{"type":18,"tag":571,"props":11825,"children":11826},{"style":3356},[11827],{"type":23,"value":62},{"type":18,"tag":571,"props":11829,"children":11830},{"style":578},[11831],{"type":23,"value":9216},{"type":18,"tag":571,"props":11833,"children":11834},{"style":590},[11835],{"type":23,"value":608},{"type":18,"tag":571,"props":11837,"children":11838},{"style":784},[11839],{"type":23,"value":8961},{"type":18,"tag":571,"props":11841,"children":11842},{"style":590},[11843],{"type":23,"value":9229},{"type":18,"tag":571,"props":11845,"children":11846},{"style":578},[11847],{"type":23,"value":9234},{"type":18,"tag":571,"props":11849,"children":11850},{"style":590},[11851],{"type":23,"value":9239},{"type":18,"tag":571,"props":11853,"children":11854},{"style":784},[11855],{"type":23,"value":8961},{"type":18,"tag":571,"props":11857,"children":11858},{"style":590},[11859],{"type":23,"value":9248},{"type":18,"tag":571,"props":11861,"children":11862},{"style":584},[11863],{"type":23,"value":9253},{"type":18,"tag":571,"props":11865,"children":11866},{"style":590},[11867],{"type":23,"value":608},{"type":18,"tag":571,"props":11869,"children":11870},{"style":784},[11871],{"type":23,"value":8961},{"type":18,"tag":571,"props":11873,"children":11874},{"style":590},[11875],{"type":23,"value":9266},{"type":18,"tag":571,"props":11877,"children":11878},{"style":784},[11879],{"type":23,"value":8961},{"type":18,"tag":571,"props":11881,"children":11882},{"style":590},[11883],{"type":23,"value":3387},{"type":18,"tag":571,"props":11885,"children":11886},{"class":573,"line":761},[11887,11892,11896,11900,11904,11908,11912,11916,11920,11924,11928,11932],{"type":18,"tag":571,"props":11888,"children":11889},{"style":590},[11890],{"type":23,"value":11891},"      {{ item }} \u003C",{"type":18,"tag":571,"props":11893,"children":11894},{"style":3356},[11895],{"type":23,"value":9296},{"type":18,"tag":571,"props":11897,"children":11898},{"style":590},[11899],{"type":23,"value":8990},{"type":18,"tag":571,"props":11901,"children":11902},{"style":584},[11903],{"type":23,"value":8995},{"type":18,"tag":571,"props":11905,"children":11906},{"style":590},[11907],{"type":23,"value":608},{"type":18,"tag":571,"props":11909,"children":11910},{"style":784},[11911],{"type":23,"value":8961},{"type":18,"tag":571,"props":11913,"children":11914},{"style":584},[11915],{"type":23,"value":9317},{"type":18,"tag":571,"props":11917,"children":11918},{"style":590},[11919],{"type":23,"value":9322},{"type":18,"tag":571,"props":11921,"children":11922},{"style":784},[11923],{"type":23,"value":8961},{"type":18,"tag":571,"props":11925,"children":11926},{"style":590},[11927],{"type":23,"value":9331},{"type":18,"tag":571,"props":11929,"children":11930},{"style":3356},[11931],{"type":23,"value":9296},{"type":18,"tag":571,"props":11933,"children":11934},{"style":590},[11935],{"type":23,"value":3387},{"type":18,"tag":571,"props":11937,"children":11938},{"class":573,"line":795},[11939,11943,11947,11951,11955,11959,11963,11968,11972,11976,11980,11984],{"type":18,"tag":571,"props":11940,"children":11941},{"style":590},[11942],{"type":23,"value":5193},{"type":18,"tag":571,"props":11944,"children":11945},{"style":3356},[11946],{"type":23,"value":9296},{"type":18,"tag":571,"props":11948,"children":11949},{"style":590},[11950],{"type":23,"value":8990},{"type":18,"tag":571,"props":11952,"children":11953},{"style":584},[11954],{"type":23,"value":8995},{"type":18,"tag":571,"props":11956,"children":11957},{"style":590},[11958],{"type":23,"value":608},{"type":18,"tag":571,"props":11960,"children":11961},{"style":784},[11962],{"type":23,"value":8961},{"type":18,"tag":571,"props":11964,"children":11965},{"style":584},[11966],{"type":23,"value":11967},"removeTodo",{"type":18,"tag":571,"props":11969,"children":11970},{"style":590},[11971],{"type":23,"value":9322},{"type":18,"tag":571,"props":11973,"children":11974},{"style":784},[11975],{"type":23,"value":8961},{"type":18,"tag":571,"props":11977,"children":11978},{"style":590},[11979],{"type":23,"value":9385},{"type":18,"tag":571,"props":11981,"children":11982},{"style":3356},[11983],{"type":23,"value":9296},{"type":18,"tag":571,"props":11985,"children":11986},{"style":590},[11987],{"type":23,"value":3387},{"type":18,"tag":571,"props":11989,"children":11990},{"class":573,"line":804},[11991],{"type":18,"tag":571,"props":11992,"children":11993},{"emptyLinePlaceholder":656},[11994],{"type":23,"value":659},{"type":18,"tag":571,"props":11996,"children":11997},{"class":573,"line":812},[11998,12002,12006,12011,12015],{"type":18,"tag":571,"props":11999,"children":12000},{"style":590},[12001],{"type":23,"value":5193},{"type":18,"tag":571,"props":12003,"children":12004},{"style":3356},[12005],{"type":23,"value":468},{"type":18,"tag":571,"props":12007,"children":12008},{"style":590},[12009],{"type":23,"value":12010},">Subtasks:\u003C/",{"type":18,"tag":571,"props":12012,"children":12013},{"style":3356},[12014],{"type":23,"value":468},{"type":18,"tag":571,"props":12016,"children":12017},{"style":590},[12018],{"type":23,"value":3387},{"type":18,"tag":571,"props":12020,"children":12021},{"class":573,"line":835},[12022,12026,12030],{"type":18,"tag":571,"props":12023,"children":12024},{"style":590},[12025],{"type":23,"value":5193},{"type":18,"tag":571,"props":12027,"children":12028},{"style":3356},[12029],{"type":23,"value":489},{"type":18,"tag":571,"props":12031,"children":12032},{"style":590},[12033],{"type":23,"value":3387},{"type":18,"tag":571,"props":12035,"children":12036},{"class":573,"line":880},[12037,12042,12046,12050,12054,12058,12063,12067,12072,12076,12080,12084,12088,12092,12096,12100],{"type":18,"tag":571,"props":12038,"children":12039},{"style":590},[12040],{"type":23,"value":12041},"        \u003C",{"type":18,"tag":571,"props":12043,"children":12044},{"style":3356},[12045],{"type":23,"value":62},{"type":18,"tag":571,"props":12047,"children":12048},{"style":578},[12049],{"type":23,"value":9216},{"type":18,"tag":571,"props":12051,"children":12052},{"style":590},[12053],{"type":23,"value":608},{"type":18,"tag":571,"props":12055,"children":12056},{"style":784},[12057],{"type":23,"value":8961},{"type":18,"tag":571,"props":12059,"children":12060},{"style":590},[12061],{"type":23,"value":12062},"(item, index) ",{"type":18,"tag":571,"props":12064,"children":12065},{"style":578},[12066],{"type":23,"value":9234},{"type":18,"tag":571,"props":12068,"children":12069},{"style":590},[12070],{"type":23,"value":12071}," subtasks",{"type":18,"tag":571,"props":12073,"children":12074},{"style":784},[12075],{"type":23,"value":8961},{"type":18,"tag":571,"props":12077,"children":12078},{"style":590},[12079],{"type":23,"value":9248},{"type":18,"tag":571,"props":12081,"children":12082},{"style":584},[12083],{"type":23,"value":9253},{"type":18,"tag":571,"props":12085,"children":12086},{"style":590},[12087],{"type":23,"value":608},{"type":18,"tag":571,"props":12089,"children":12090},{"style":784},[12091],{"type":23,"value":8961},{"type":18,"tag":571,"props":12093,"children":12094},{"style":590},[12095],{"type":23,"value":9266},{"type":18,"tag":571,"props":12097,"children":12098},{"style":784},[12099],{"type":23,"value":8961},{"type":18,"tag":571,"props":12101,"children":12102},{"style":590},[12103],{"type":23,"value":3387},{"type":18,"tag":571,"props":12105,"children":12106},{"class":573,"line":888},[12107],{"type":18,"tag":571,"props":12108,"children":12109},{"style":590},[12110],{"type":23,"value":12111},"          {{ item }}\n",{"type":18,"tag":571,"props":12113,"children":12114},{"class":573,"line":898},[12115,12120,12124,12128,12132,12136,12140,12144,12148,12152,12156,12160],{"type":18,"tag":571,"props":12116,"children":12117},{"style":590},[12118],{"type":23,"value":12119},"          \u003C",{"type":18,"tag":571,"props":12121,"children":12122},{"style":3356},[12123],{"type":23,"value":9296},{"type":18,"tag":571,"props":12125,"children":12126},{"style":590},[12127],{"type":23,"value":8990},{"type":18,"tag":571,"props":12129,"children":12130},{"style":584},[12131],{"type":23,"value":8995},{"type":18,"tag":571,"props":12133,"children":12134},{"style":590},[12135],{"type":23,"value":608},{"type":18,"tag":571,"props":12137,"children":12138},{"style":784},[12139],{"type":23,"value":8961},{"type":18,"tag":571,"props":12141,"children":12142},{"style":584},[12143],{"type":23,"value":9372},{"type":18,"tag":571,"props":12145,"children":12146},{"style":590},[12147],{"type":23,"value":9322},{"type":18,"tag":571,"props":12149,"children":12150},{"style":784},[12151],{"type":23,"value":8961},{"type":18,"tag":571,"props":12153,"children":12154},{"style":590},[12155],{"type":23,"value":9385},{"type":18,"tag":571,"props":12157,"children":12158},{"style":3356},[12159],{"type":23,"value":9296},{"type":18,"tag":571,"props":12161,"children":12162},{"style":590},[12163],{"type":23,"value":3387},{"type":18,"tag":571,"props":12165,"children":12166},{"class":573,"line":917},[12167,12172,12176],{"type":18,"tag":571,"props":12168,"children":12169},{"style":590},[12170],{"type":23,"value":12171},"        \u003C/",{"type":18,"tag":571,"props":12173,"children":12174},{"style":3356},[12175],{"type":23,"value":62},{"type":18,"tag":571,"props":12177,"children":12178},{"style":590},[12179],{"type":23,"value":3387},{"type":18,"tag":571,"props":12181,"children":12182},{"class":573,"line":931},[12183,12188,12192],{"type":18,"tag":571,"props":12184,"children":12185},{"style":590},[12186],{"type":23,"value":12187},"      \u003C/",{"type":18,"tag":571,"props":12189,"children":12190},{"style":3356},[12191],{"type":23,"value":489},{"type":18,"tag":571,"props":12193,"children":12194},{"style":590},[12195],{"type":23,"value":3387},{"type":18,"tag":571,"props":12197,"children":12198},{"class":573,"line":939},[12199,12203,12207,12211,12215,12219,12224,12228,12232,12236,12241],{"type":18,"tag":571,"props":12200,"children":12201},{"style":590},[12202],{"type":23,"value":5193},{"type":18,"tag":571,"props":12204,"children":12205},{"style":3356},[12206],{"type":23,"value":9435},{"type":18,"tag":571,"props":12208,"children":12209},{"style":584},[12210],{"type":23,"value":8952},{"type":18,"tag":571,"props":12212,"children":12213},{"style":590},[12214],{"type":23,"value":608},{"type":18,"tag":571,"props":12216,"children":12217},{"style":784},[12218],{"type":23,"value":8961},{"type":18,"tag":571,"props":12220,"children":12221},{"style":590},[12222],{"type":23,"value":12223},"newSubtask[index]",{"type":18,"tag":571,"props":12225,"children":12226},{"style":784},[12227],{"type":23,"value":8961},{"type":18,"tag":571,"props":12229,"children":12230},{"style":584},[12231],{"type":23,"value":7302},{"type":18,"tag":571,"props":12233,"children":12234},{"style":590},[12235],{"type":23,"value":608},{"type":18,"tag":571,"props":12237,"children":12238},{"style":784},[12239],{"type":23,"value":12240},"\"New subtask\"",{"type":18,"tag":571,"props":12242,"children":12243},{"style":590},[12244],{"type":23,"value":7316},{"type":18,"tag":571,"props":12246,"children":12247},{"class":573,"line":947},[12248,12252,12256,12260,12264,12268,12272,12276,12280,12284,12288,12292],{"type":18,"tag":571,"props":12249,"children":12250},{"style":590},[12251],{"type":23,"value":5193},{"type":18,"tag":571,"props":12253,"children":12254},{"style":3356},[12255],{"type":23,"value":9296},{"type":18,"tag":571,"props":12257,"children":12258},{"style":590},[12259],{"type":23,"value":8990},{"type":18,"tag":571,"props":12261,"children":12262},{"style":584},[12263],{"type":23,"value":8995},{"type":18,"tag":571,"props":12265,"children":12266},{"style":590},[12267],{"type":23,"value":608},{"type":18,"tag":571,"props":12269,"children":12270},{"style":784},[12271],{"type":23,"value":8961},{"type":18,"tag":571,"props":12273,"children":12274},{"style":584},[12275],{"type":23,"value":9505},{"type":18,"tag":571,"props":12277,"children":12278},{"style":590},[12279],{"type":23,"value":9510},{"type":18,"tag":571,"props":12281,"children":12282},{"style":784},[12283],{"type":23,"value":8961},{"type":18,"tag":571,"props":12285,"children":12286},{"style":590},[12287],{"type":23,"value":9519},{"type":18,"tag":571,"props":12289,"children":12290},{"style":3356},[12291],{"type":23,"value":9296},{"type":18,"tag":571,"props":12293,"children":12294},{"style":590},[12295],{"type":23,"value":3387},{"type":18,"tag":571,"props":12297,"children":12298},{"class":573,"line":956},[12299,12303,12307],{"type":18,"tag":571,"props":12300,"children":12301},{"style":590},[12302],{"type":23,"value":5307},{"type":18,"tag":571,"props":12304,"children":12305},{"style":3356},[12306],{"type":23,"value":62},{"type":18,"tag":571,"props":12308,"children":12309},{"style":590},[12310],{"type":23,"value":3387},{"type":18,"tag":571,"props":12312,"children":12313},{"class":573,"line":991},[12314,12318,12322],{"type":18,"tag":571,"props":12315,"children":12316},{"style":590},[12317],{"type":23,"value":5324},{"type":18,"tag":571,"props":12319,"children":12320},{"style":3356},[12321],{"type":23,"value":489},{"type":18,"tag":571,"props":12323,"children":12324},{"style":590},[12325],{"type":23,"value":3387},{"type":18,"tag":571,"props":12327,"children":12328},{"class":573,"line":1015},[12329,12333,12337,12341,12345,12349,12353,12357,12361,12365,12369],{"type":18,"tag":571,"props":12330,"children":12331},{"style":590},[12332],{"type":23,"value":5034},{"type":18,"tag":571,"props":12334,"children":12335},{"style":3356},[12336],{"type":23,"value":9435},{"type":18,"tag":571,"props":12338,"children":12339},{"style":584},[12340],{"type":23,"value":8952},{"type":18,"tag":571,"props":12342,"children":12343},{"style":590},[12344],{"type":23,"value":608},{"type":18,"tag":571,"props":12346,"children":12347},{"style":784},[12348],{"type":23,"value":8961},{"type":18,"tag":571,"props":12350,"children":12351},{"style":590},[12352],{"type":23,"value":9452},{"type":18,"tag":571,"props":12354,"children":12355},{"style":784},[12356],{"type":23,"value":8961},{"type":18,"tag":571,"props":12358,"children":12359},{"style":584},[12360],{"type":23,"value":7302},{"type":18,"tag":571,"props":12362,"children":12363},{"style":590},[12364],{"type":23,"value":608},{"type":18,"tag":571,"props":12366,"children":12367},{"style":784},[12368],{"type":23,"value":9469},{"type":18,"tag":571,"props":12370,"children":12371},{"style":590},[12372],{"type":23,"value":7316},{"type":18,"tag":571,"props":12374,"children":12375},{"class":573,"line":1033},[12376,12380,12384,12388,12392,12396,12400,12405,12409,12413,12417,12421],{"type":18,"tag":571,"props":12377,"children":12378},{"style":590},[12379],{"type":23,"value":5034},{"type":18,"tag":571,"props":12381,"children":12382},{"style":3356},[12383],{"type":23,"value":9296},{"type":18,"tag":571,"props":12385,"children":12386},{"style":590},[12387],{"type":23,"value":8990},{"type":18,"tag":571,"props":12389,"children":12390},{"style":584},[12391],{"type":23,"value":8995},{"type":18,"tag":571,"props":12393,"children":12394},{"style":590},[12395],{"type":23,"value":608},{"type":18,"tag":571,"props":12397,"children":12398},{"style":784},[12399],{"type":23,"value":8961},{"type":18,"tag":571,"props":12401,"children":12402},{"style":584},[12403],{"type":23,"value":12404},"addTodo",{"type":18,"tag":571,"props":12406,"children":12407},{"style":590},[12408],{"type":23,"value":9510},{"type":18,"tag":571,"props":12410,"children":12411},{"style":784},[12412],{"type":23,"value":8961},{"type":18,"tag":571,"props":12414,"children":12415},{"style":590},[12416],{"type":23,"value":9519},{"type":18,"tag":571,"props":12418,"children":12419},{"style":3356},[12420],{"type":23,"value":9296},{"type":18,"tag":571,"props":12422,"children":12423},{"style":590},[12424],{"type":23,"value":3387},{"type":18,"tag":571,"props":12426,"children":12427},{"class":573,"line":1075},[12428,12432,12436],{"type":18,"tag":571,"props":12429,"children":12430},{"style":590},[12431],{"type":23,"value":5340},{"type":18,"tag":571,"props":12433,"children":12434},{"style":3356},[12435],{"type":23,"value":7047},{"type":18,"tag":571,"props":12437,"children":12438},{"style":590},[12439],{"type":23,"value":3387},{"type":18,"tag":571,"props":12441,"children":12442},{"class":573,"line":1084},[12443],{"type":18,"tag":571,"props":12444,"children":12445},{"emptyLinePlaceholder":656},[12446],{"type":23,"value":659},{"type":18,"tag":571,"props":12448,"children":12449},{"class":573,"line":1092},[12450,12454,12458,12462,12466,12470,12474],{"type":18,"tag":571,"props":12451,"children":12452},{"style":590},[12453],{"type":23,"value":593},{"type":18,"tag":571,"props":12455,"children":12456},{"style":3356},[12457],{"type":23,"value":8363},{"type":18,"tag":571,"props":12459,"children":12460},{"style":584},[12461],{"type":23,"value":8382},{"type":18,"tag":571,"props":12463,"children":12464},{"style":584},[12465],{"type":23,"value":8368},{"type":18,"tag":571,"props":12467,"children":12468},{"style":590},[12469],{"type":23,"value":608},{"type":18,"tag":571,"props":12471,"children":12472},{"style":784},[12473],{"type":23,"value":8377},{"type":18,"tag":571,"props":12475,"children":12476},{"style":590},[12477],{"type":23,"value":3387},{"type":18,"tag":571,"props":12479,"children":12480},{"class":573,"line":1100},[12481,12485,12489,12493,12497],{"type":18,"tag":571,"props":12482,"children":12483},{"style":578},[12484],{"type":23,"value":7493},{"type":18,"tag":571,"props":12486,"children":12487},{"style":590},[12488],{"type":23,"value":10514},{"type":18,"tag":571,"props":12490,"children":12491},{"style":578},[12492],{"type":23,"value":7503},{"type":18,"tag":571,"props":12494,"children":12495},{"style":784},[12496],{"type":23,"value":9601},{"type":18,"tag":571,"props":12498,"children":12499},{"style":590},[12500],{"type":23,"value":650},{"type":18,"tag":571,"props":12502,"children":12503},{"class":573,"line":1109},[12504],{"type":18,"tag":571,"props":12505,"children":12506},{"emptyLinePlaceholder":656},[12507],{"type":23,"value":659},{"type":18,"tag":571,"props":12509,"children":12510},{"class":573,"line":1151},[12511],{"type":18,"tag":571,"props":12512,"children":12513},{"style":892},[12514],{"type":23,"value":12515},"// state\n",{"type":18,"tag":571,"props":12517,"children":12518},{"class":573,"line":1170},[12519,12523,12527,12531,12535],{"type":18,"tag":571,"props":12520,"children":12521},{"style":578},[12522],{"type":23,"value":1516},{"type":18,"tag":571,"props":12524,"children":12525},{"style":642},[12526],{"type":23,"value":9239},{"type":18,"tag":571,"props":12528,"children":12529},{"style":578},[12530],{"type":23,"value":1526},{"type":18,"tag":571,"props":12532,"children":12533},{"style":584},[12534],{"type":23,"value":8407},{"type":18,"tag":571,"props":12536,"children":12537},{"style":590},[12538],{"type":23,"value":12539},"([]);\n",{"type":18,"tag":571,"props":12541,"children":12542},{"class":573,"line":1192},[12543,12547,12551,12555,12559],{"type":18,"tag":571,"props":12544,"children":12545},{"style":578},[12546],{"type":23,"value":1516},{"type":18,"tag":571,"props":12548,"children":12549},{"style":642},[12550],{"type":23,"value":12071},{"type":18,"tag":571,"props":12552,"children":12553},{"style":578},[12554],{"type":23,"value":1526},{"type":18,"tag":571,"props":12556,"children":12557},{"style":584},[12558],{"type":23,"value":8407},{"type":18,"tag":571,"props":12560,"children":12561},{"style":590},[12562],{"type":23,"value":12539},{"type":18,"tag":571,"props":12564,"children":12565},{"class":573,"line":1225},[12566,12570,12574,12578,12582],{"type":18,"tag":571,"props":12567,"children":12568},{"style":578},[12569],{"type":23,"value":1516},{"type":18,"tag":571,"props":12571,"children":12572},{"style":642},[12573],{"type":23,"value":9676},{"type":18,"tag":571,"props":12575,"children":12576},{"style":578},[12577],{"type":23,"value":1526},{"type":18,"tag":571,"props":12579,"children":12580},{"style":584},[12581],{"type":23,"value":8407},{"type":18,"tag":571,"props":12583,"children":12584},{"style":590},[12585],{"type":23,"value":1600},{"type":18,"tag":571,"props":12587,"children":12588},{"class":573,"line":1257},[12589,12593,12598,12602,12606,12610,12614],{"type":18,"tag":571,"props":12590,"children":12591},{"style":578},[12592],{"type":23,"value":1516},{"type":18,"tag":571,"props":12594,"children":12595},{"style":642},[12596],{"type":23,"value":12597}," newSubtasks",{"type":18,"tag":571,"props":12599,"children":12600},{"style":578},[12601],{"type":23,"value":1526},{"type":18,"tag":571,"props":12603,"children":12604},{"style":584},[12605],{"type":23,"value":8407},{"type":18,"tag":571,"props":12607,"children":12608},{"style":590},[12609],{"type":23,"value":593},{"type":18,"tag":571,"props":12611,"children":12612},{"style":642},[12613],{"type":23,"value":8416},{"type":18,"tag":571,"props":12615,"children":12616},{"style":590},[12617],{"type":23,"value":12618},"[]>([]);\n",{"type":18,"tag":571,"props":12620,"children":12621},{"class":573,"line":1284},[12622,12626,12630,12634,12638],{"type":18,"tag":571,"props":12623,"children":12624},{"style":578},[12625],{"type":23,"value":1516},{"type":18,"tag":571,"props":12627,"children":12628},{"style":642},[12629],{"type":23,"value":9709},{"type":18,"tag":571,"props":12631,"children":12632},{"style":578},[12633],{"type":23,"value":1526},{"type":18,"tag":571,"props":12635,"children":12636},{"style":584},[12637],{"type":23,"value":8407},{"type":18,"tag":571,"props":12639,"children":12640},{"style":590},[12641],{"type":23,"value":1600},{"type":18,"tag":571,"props":12643,"children":12644},{"class":573,"line":1293},[12645,12649,12653,12657,12661,12665,12669],{"type":18,"tag":571,"props":12646,"children":12647},{"style":578},[12648],{"type":23,"value":1516},{"type":18,"tag":571,"props":12650,"children":12651},{"style":642},[12652],{"type":23,"value":10638},{"type":18,"tag":571,"props":12654,"children":12655},{"style":578},[12656],{"type":23,"value":1526},{"type":18,"tag":571,"props":12658,"children":12659},{"style":584},[12660],{"type":23,"value":8407},{"type":18,"tag":571,"props":12662,"children":12663},{"style":590},[12664],{"type":23,"value":682},{"type":18,"tag":571,"props":12666,"children":12667},{"style":642},[12668],{"type":23,"value":4485},{"type":18,"tag":571,"props":12670,"children":12671},{"style":590},[12672],{"type":23,"value":792},{"type":18,"tag":571,"props":12674,"children":12675},{"class":573,"line":1302},[12676,12680,12684,12688,12692,12696,12700,12704,12708],{"type":18,"tag":571,"props":12677,"children":12678},{"style":578},[12679],{"type":23,"value":10666},{"type":18,"tag":571,"props":12681,"children":12682},{"style":590},[12683],{"type":23,"value":10671},{"type":18,"tag":571,"props":12685,"children":12686},{"style":578},[12687],{"type":23,"value":624},{"type":18,"tag":571,"props":12689,"children":12690},{"style":642},[12691],{"type":23,"value":10680},{"type":18,"tag":571,"props":12693,"children":12694},{"style":578},[12695],{"type":23,"value":8421},{"type":18,"tag":571,"props":12697,"children":12698},{"style":642},[12699],{"type":23,"value":8426},{"type":18,"tag":571,"props":12701,"children":12702},{"style":578},[12703],{"type":23,"value":1526},{"type":18,"tag":571,"props":12705,"children":12706},{"style":642},[12707],{"type":23,"value":8426},{"type":18,"tag":571,"props":12709,"children":12710},{"style":590},[12711],{"type":23,"value":650},{"type":18,"tag":571,"props":12713,"children":12714},{"class":573,"line":1310},[12715,12719,12724,12728,12732,12737,12741],{"type":18,"tag":571,"props":12716,"children":12717},{"style":578},[12718],{"type":23,"value":1516},{"type":18,"tag":571,"props":12720,"children":12721},{"style":642},[12722],{"type":23,"value":12723}," DEADLINE",{"type":18,"tag":571,"props":12725,"children":12726},{"style":578},[12727],{"type":23,"value":1526},{"type":18,"tag":571,"props":12729,"children":12730},{"style":642},[12731],{"type":23,"value":11606},{"type":18,"tag":571,"props":12733,"children":12734},{"style":578},[12735],{"type":23,"value":12736}," *",{"type":18,"tag":571,"props":12738,"children":12739},{"style":642},[12740],{"type":23,"value":3154},{"type":18,"tag":571,"props":12742,"children":12743},{"style":590},[12744],{"type":23,"value":650},{"type":18,"tag":571,"props":12746,"children":12747},{"class":573,"line":1318},[12748],{"type":18,"tag":571,"props":12749,"children":12750},{"style":892},[12751],{"type":23,"value":12752},"// functions\n",{"type":18,"tag":571,"props":12754,"children":12755},{"class":573,"line":1332},[12756,12760,12764],{"type":18,"tag":571,"props":12757,"children":12758},{"style":578},[12759],{"type":23,"value":9745},{"type":18,"tag":571,"props":12761,"children":12762},{"style":584},[12763],{"type":23,"value":10719},{"type":18,"tag":571,"props":12765,"children":12766},{"style":590},[12767],{"type":23,"value":10724},{"type":18,"tag":571,"props":12769,"children":12770},{"class":573,"line":3957},[12771,12775],{"type":18,"tag":571,"props":12772,"children":12773},{"style":578},[12774],{"type":23,"value":8227},{"type":18,"tag":571,"props":12776,"children":12777},{"style":590},[12778],{"type":23,"value":10736},{"type":18,"tag":571,"props":12780,"children":12781},{"class":573,"line":3970},[12782,12786],{"type":18,"tag":571,"props":12783,"children":12784},{"style":584},[12785],{"type":23,"value":10744},{"type":18,"tag":571,"props":12787,"children":12788},{"style":590},[12789],{"type":23,"value":10749},{"type":18,"tag":571,"props":12791,"children":12792},{"class":573,"line":3994},[12793],{"type":18,"tag":571,"props":12794,"children":12795},{"style":590},[12796],{"type":23,"value":3828},{"type":18,"tag":571,"props":12798,"children":12799},{"class":573,"line":4002},[12800,12804,12808,12812],{"type":18,"tag":571,"props":12801,"children":12802},{"style":590},[12803],{"type":23,"value":10764},{"type":18,"tag":571,"props":12805,"children":12806},{"style":578},[12807],{"type":23,"value":608},{"type":18,"tag":571,"props":12809,"children":12810},{"style":642},[12811],{"type":23,"value":3176},{"type":18,"tag":571,"props":12813,"children":12814},{"style":590},[12815],{"type":23,"value":650},{"type":18,"tag":571,"props":12817,"children":12818},{"class":573,"line":4669},[12819,12823,12827,12831,12835,12839],{"type":18,"tag":571,"props":12820,"children":12821},{"style":590},[12822],{"type":23,"value":10790},{"type":18,"tag":571,"props":12824,"children":12825},{"style":578},[12826],{"type":23,"value":608},{"type":18,"tag":571,"props":12828,"children":12829},{"style":584},[12830],{"type":23,"value":10799},{"type":18,"tag":571,"props":12832,"children":12833},{"style":590},[12834],{"type":23,"value":10804},{"type":18,"tag":571,"props":12836,"children":12837},{"style":578},[12838],{"type":23,"value":639},{"type":18,"tag":571,"props":12840,"children":12841},{"style":590},[12842],{"type":23,"value":2993},{"type":18,"tag":571,"props":12844,"children":12845},{"class":573,"line":4677},[12846,12850,12854],{"type":18,"tag":571,"props":12847,"children":12848},{"style":590},[12849],{"type":23,"value":10820},{"type":18,"tag":571,"props":12851,"children":12852},{"style":578},[12853],{"type":23,"value":10825},{"type":18,"tag":571,"props":12855,"children":12856},{"style":590},[12857],{"type":23,"value":650},{"type":18,"tag":571,"props":12859,"children":12860},{"class":573,"line":4685},[12861,12865,12869],{"type":18,"tag":571,"props":12862,"children":12863},{"style":590},[12864],{"type":23,"value":10837},{"type":18,"tag":571,"props":12866,"children":12867},{"style":642},[12868],{"type":23,"value":5740},{"type":18,"tag":571,"props":12870,"children":12871},{"style":590},[12872],{"type":23,"value":792},{"type":18,"tag":571,"props":12874,"children":12875},{"class":573,"line":4701},[12876],{"type":18,"tag":571,"props":12877,"children":12878},{"style":590},[12879],{"type":23,"value":1338},{"type":18,"tag":571,"props":12881,"children":12882},{"class":573,"line":4713},[12883],{"type":18,"tag":571,"props":12884,"children":12885},{"emptyLinePlaceholder":656},[12886],{"type":23,"value":659},{"type":18,"tag":571,"props":12888,"children":12889},{"class":573,"line":4737},[12890,12894,12898,12902,12906,12910,12914],{"type":18,"tag":571,"props":12891,"children":12892},{"style":578},[12893],{"type":23,"value":9745},{"type":18,"tag":571,"props":12895,"children":12896},{"style":584},[12897],{"type":23,"value":9750},{"type":18,"tag":571,"props":12899,"children":12900},{"style":590},[12901],{"type":23,"value":682},{"type":18,"tag":571,"props":12903,"children":12904},{"style":616},[12905],{"type":23,"value":9266},{"type":18,"tag":571,"props":12907,"children":12908},{"style":578},[12909],{"type":23,"value":624},{"type":18,"tag":571,"props":12911,"children":12912},{"style":642},[12913],{"type":23,"value":8128},{"type":18,"tag":571,"props":12915,"children":12916},{"style":590},[12917],{"type":23,"value":8246},{"type":18,"tag":571,"props":12919,"children":12920},{"class":573,"line":4745},[12921,12925,12929],{"type":18,"tag":571,"props":12922,"children":12923},{"style":590},[12924],{"type":23,"value":9778},{"type":18,"tag":571,"props":12926,"children":12927},{"style":578},[12928],{"type":23,"value":608},{"type":18,"tag":571,"props":12930,"children":12931},{"style":590},[12932],{"type":23,"value":9787},{"type":18,"tag":571,"props":12934,"children":12935},{"class":573,"line":4757},[12936],{"type":18,"tag":571,"props":12937,"children":12938},{"style":590},[12939],{"type":23,"value":1338},{"type":18,"tag":571,"props":12941,"children":12942},{"class":573,"line":4782},[12943],{"type":18,"tag":571,"props":12944,"children":12945},{"emptyLinePlaceholder":656},[12946],{"type":23,"value":659},{"type":18,"tag":571,"props":12948,"children":12949},{"class":573,"line":4790},[12950,12954,12959,12963,12967,12971,12975],{"type":18,"tag":571,"props":12951,"children":12952},{"style":578},[12953],{"type":23,"value":9745},{"type":18,"tag":571,"props":12955,"children":12956},{"style":584},[12957],{"type":23,"value":12958}," addTodo",{"type":18,"tag":571,"props":12960,"children":12961},{"style":590},[12962],{"type":23,"value":682},{"type":18,"tag":571,"props":12964,"children":12965},{"style":616},[12966],{"type":23,"value":9266},{"type":18,"tag":571,"props":12968,"children":12969},{"style":578},[12970],{"type":23,"value":624},{"type":18,"tag":571,"props":12972,"children":12973},{"style":642},[12974],{"type":23,"value":8128},{"type":18,"tag":571,"props":12976,"children":12977},{"style":590},[12978],{"type":23,"value":8246},{"type":18,"tag":571,"props":12980,"children":12981},{"class":573,"line":4802},[12982,12986,12990,12994],{"type":18,"tag":571,"props":12983,"children":12984},{"style":578},[12985],{"type":23,"value":8227},{"type":18,"tag":571,"props":12987,"children":12988},{"style":590},[12989],{"type":23,"value":9844},{"type":18,"tag":571,"props":12991,"children":12992},{"style":584},[12993],{"type":23,"value":9849},{"type":18,"tag":571,"props":12995,"children":12996},{"style":590},[12997],{"type":23,"value":9854},{"type":18,"tag":571,"props":12999,"children":13000},{"class":573,"line":4826},[13001,13005,13009],{"type":18,"tag":571,"props":13002,"children":13003},{"style":590},[13004],{"type":23,"value":9862},{"type":18,"tag":571,"props":13006,"children":13007},{"style":584},[13008],{"type":23,"value":1162},{"type":18,"tag":571,"props":13010,"children":13011},{"style":590},[13012],{"type":23,"value":9871},{"type":18,"tag":571,"props":13014,"children":13015},{"class":573,"line":4834},[13016,13020,13024,13028],{"type":18,"tag":571,"props":13017,"children":13018},{"style":590},[13019],{"type":23,"value":10992},{"type":18,"tag":571,"props":13021,"children":13022},{"style":578},[13023],{"type":23,"value":608},{"type":18,"tag":571,"props":13025,"children":13026},{"style":784},[13027],{"type":23,"value":9888},{"type":18,"tag":571,"props":13029,"children":13030},{"style":590},[13031],{"type":23,"value":650},{"type":18,"tag":571,"props":13033,"children":13034},{"class":573,"line":4846},[13035],{"type":18,"tag":571,"props":13036,"children":13037},{"style":590},[13038],{"type":23,"value":3828},{"type":18,"tag":571,"props":13040,"children":13041},{"class":573,"line":4870},[13042],{"type":18,"tag":571,"props":13043,"children":13044},{"style":590},[13045],{"type":23,"value":1338},{"type":18,"tag":571,"props":13047,"children":13048},{"class":573,"line":4878},[13049],{"type":18,"tag":571,"props":13050,"children":13051},{"emptyLinePlaceholder":656},[13052],{"type":23,"value":659},{"type":18,"tag":571,"props":13054,"children":13055},{"class":573,"line":4890},[13056,13060,13065,13069,13073,13077,13081],{"type":18,"tag":571,"props":13057,"children":13058},{"style":578},[13059],{"type":23,"value":9745},{"type":18,"tag":571,"props":13061,"children":13062},{"style":584},[13063],{"type":23,"value":13064}," removeTodo",{"type":18,"tag":571,"props":13066,"children":13067},{"style":590},[13068],{"type":23,"value":682},{"type":18,"tag":571,"props":13070,"children":13071},{"style":616},[13072],{"type":23,"value":9266},{"type":18,"tag":571,"props":13074,"children":13075},{"style":578},[13076],{"type":23,"value":624},{"type":18,"tag":571,"props":13078,"children":13079},{"style":642},[13080],{"type":23,"value":8128},{"type":18,"tag":571,"props":13082,"children":13083},{"style":590},[13084],{"type":23,"value":8246},{"type":18,"tag":571,"props":13086,"children":13087},{"class":573,"line":4914},[13088,13092,13096,13100,13104,13108],{"type":18,"tag":571,"props":13089,"children":13090},{"style":578},[13091],{"type":23,"value":7582},{"type":18,"tag":571,"props":13093,"children":13094},{"style":642},[13095],{"type":23,"value":9958},{"type":18,"tag":571,"props":13097,"children":13098},{"style":578},[13099],{"type":23,"value":1526},{"type":18,"tag":571,"props":13101,"children":13102},{"style":590},[13103],{"type":23,"value":9967},{"type":18,"tag":571,"props":13105,"children":13106},{"style":584},[13107],{"type":23,"value":1218},{"type":18,"tag":571,"props":13109,"children":13110},{"style":590},[13111],{"type":23,"value":9871},{"type":18,"tag":571,"props":13113,"children":13114},{"class":573,"line":4922},[13115,13119,13123,13127,13131,13135],{"type":18,"tag":571,"props":13116,"children":13117},{"style":578},[13118],{"type":23,"value":8227},{"type":18,"tag":571,"props":13120,"children":13121},{"style":590},[13122],{"type":23,"value":9987},{"type":18,"tag":571,"props":13124,"children":13125},{"style":578},[13126],{"type":23,"value":1007},{"type":18,"tag":571,"props":13128,"children":13129},{"style":578},[13130],{"type":23,"value":9996},{"type":18,"tag":571,"props":13132,"children":13133},{"style":642},[13134],{"type":23,"value":270},{"type":18,"tag":571,"props":13136,"children":13137},{"style":590},[13138],{"type":23,"value":8246},{"type":18,"tag":571,"props":13140,"children":13141},{"class":573,"line":11370},[13142,13146,13150,13154,13158],{"type":18,"tag":571,"props":13143,"children":13144},{"style":590},[13145],{"type":23,"value":9862},{"type":18,"tag":571,"props":13147,"children":13148},{"style":584},[13149],{"type":23,"value":1268},{"type":18,"tag":571,"props":13151,"children":13152},{"style":590},[13153],{"type":23,"value":10020},{"type":18,"tag":571,"props":13155,"children":13156},{"style":642},[13157],{"type":23,"value":270},{"type":18,"tag":571,"props":13159,"children":13160},{"style":590},[13161],{"type":23,"value":792},{"type":18,"tag":571,"props":13163,"children":13164},{"class":573,"line":11378},[13165],{"type":18,"tag":571,"props":13166,"children":13167},{"style":590},[13168],{"type":23,"value":3828},{"type":18,"tag":571,"props":13170,"children":13171},{"class":573,"line":11386},[13172],{"type":18,"tag":571,"props":13173,"children":13174},{"style":590},[13175],{"type":23,"value":1338},{"type":18,"tag":571,"props":13177,"children":13178},{"class":573,"line":11394},[13179,13183,13188,13192,13196,13200,13204],{"type":18,"tag":571,"props":13180,"children":13181},{"style":578},[13182],{"type":23,"value":9745},{"type":18,"tag":571,"props":13184,"children":13185},{"style":584},[13186],{"type":23,"value":13187}," addSubtask",{"type":18,"tag":571,"props":13189,"children":13190},{"style":590},[13191],{"type":23,"value":682},{"type":18,"tag":571,"props":13193,"children":13194},{"style":616},[13195],{"type":23,"value":9266},{"type":18,"tag":571,"props":13197,"children":13198},{"style":578},[13199],{"type":23,"value":624},{"type":18,"tag":571,"props":13201,"children":13202},{"style":642},[13203],{"type":23,"value":8128},{"type":18,"tag":571,"props":13205,"children":13206},{"style":590},[13207],{"type":23,"value":8246},{"type":18,"tag":571,"props":13209,"children":13210},{"class":573,"line":11403},[13211,13215,13219,13223],{"type":18,"tag":571,"props":13212,"children":13213},{"style":578},[13214],{"type":23,"value":8227},{"type":18,"tag":571,"props":13216,"children":13217},{"style":590},[13218],{"type":23,"value":9844},{"type":18,"tag":571,"props":13220,"children":13221},{"style":584},[13222],{"type":23,"value":9849},{"type":18,"tag":571,"props":13224,"children":13225},{"style":590},[13226],{"type":23,"value":9854},{"type":18,"tag":571,"props":13228,"children":13229},{"class":573,"line":11424},[13230,13235,13239],{"type":18,"tag":571,"props":13231,"children":13232},{"style":590},[13233],{"type":23,"value":13234},"    subtasks.value.",{"type":18,"tag":571,"props":13236,"children":13237},{"style":584},[13238],{"type":23,"value":1162},{"type":18,"tag":571,"props":13240,"children":13241},{"style":590},[13242],{"type":23,"value":9871},{"type":18,"tag":571,"props":13244,"children":13245},{"class":573,"line":11470},[13246,13250,13254,13258],{"type":18,"tag":571,"props":13247,"children":13248},{"style":590},[13249],{"type":23,"value":10992},{"type":18,"tag":571,"props":13251,"children":13252},{"style":578},[13253],{"type":23,"value":608},{"type":18,"tag":571,"props":13255,"children":13256},{"style":784},[13257],{"type":23,"value":9888},{"type":18,"tag":571,"props":13259,"children":13260},{"style":590},[13261],{"type":23,"value":650},{"type":18,"tag":571,"props":13263,"children":13264},{"class":573,"line":11495},[13265],{"type":18,"tag":571,"props":13266,"children":13267},{"style":590},[13268],{"type":23,"value":3828},{"type":18,"tag":571,"props":13270,"children":13271},{"class":573,"line":11508},[13272],{"type":18,"tag":571,"props":13273,"children":13274},{"style":590},[13275],{"type":23,"value":1338},{"type":18,"tag":571,"props":13277,"children":13278},{"class":573,"line":11516},[13279],{"type":18,"tag":571,"props":13280,"children":13281},{"emptyLinePlaceholder":656},[13282],{"type":23,"value":659},{"type":18,"tag":571,"props":13284,"children":13285},{"class":573,"line":11524},[13286,13290,13295,13299,13303,13307,13311],{"type":18,"tag":571,"props":13287,"children":13288},{"style":578},[13289],{"type":23,"value":9745},{"type":18,"tag":571,"props":13291,"children":13292},{"style":584},[13293],{"type":23,"value":13294}," removeSubtask",{"type":18,"tag":571,"props":13296,"children":13297},{"style":590},[13298],{"type":23,"value":682},{"type":18,"tag":571,"props":13300,"children":13301},{"style":616},[13302],{"type":23,"value":9266},{"type":18,"tag":571,"props":13304,"children":13305},{"style":578},[13306],{"type":23,"value":624},{"type":18,"tag":571,"props":13308,"children":13309},{"style":642},[13310],{"type":23,"value":8128},{"type":18,"tag":571,"props":13312,"children":13313},{"style":590},[13314],{"type":23,"value":8246},{"type":18,"tag":571,"props":13316,"children":13317},{"class":573,"line":11533},[13318,13322,13326,13330,13335,13339],{"type":18,"tag":571,"props":13319,"children":13320},{"style":578},[13321],{"type":23,"value":7582},{"type":18,"tag":571,"props":13323,"children":13324},{"style":642},[13325],{"type":23,"value":9958},{"type":18,"tag":571,"props":13327,"children":13328},{"style":578},[13329],{"type":23,"value":1526},{"type":18,"tag":571,"props":13331,"children":13332},{"style":590},[13333],{"type":23,"value":13334}," subtasks.value.",{"type":18,"tag":571,"props":13336,"children":13337},{"style":584},[13338],{"type":23,"value":1218},{"type":18,"tag":571,"props":13340,"children":13341},{"style":590},[13342],{"type":23,"value":9871},{"type":18,"tag":571,"props":13344,"children":13345},{"class":573,"line":11567},[13346,13350,13354,13358,13362,13366],{"type":18,"tag":571,"props":13347,"children":13348},{"style":578},[13349],{"type":23,"value":8227},{"type":18,"tag":571,"props":13351,"children":13352},{"style":590},[13353],{"type":23,"value":9987},{"type":18,"tag":571,"props":13355,"children":13356},{"style":578},[13357],{"type":23,"value":1007},{"type":18,"tag":571,"props":13359,"children":13360},{"style":578},[13361],{"type":23,"value":9996},{"type":18,"tag":571,"props":13363,"children":13364},{"style":642},[13365],{"type":23,"value":270},{"type":18,"tag":571,"props":13367,"children":13368},{"style":590},[13369],{"type":23,"value":8246},{"type":18,"tag":571,"props":13371,"children":13372},{"class":573,"line":11613},[13373,13377,13381,13385,13389],{"type":18,"tag":571,"props":13374,"children":13375},{"style":590},[13376],{"type":23,"value":13234},{"type":18,"tag":571,"props":13378,"children":13379},{"style":584},[13380],{"type":23,"value":1268},{"type":18,"tag":571,"props":13382,"children":13383},{"style":590},[13384],{"type":23,"value":10020},{"type":18,"tag":571,"props":13386,"children":13387},{"style":642},[13388],{"type":23,"value":270},{"type":18,"tag":571,"props":13390,"children":13391},{"style":590},[13392],{"type":23,"value":792},{"type":18,"tag":571,"props":13394,"children":13395},{"class":573,"line":11647},[13396],{"type":18,"tag":571,"props":13397,"children":13398},{"style":590},[13399],{"type":23,"value":3828},{"type":18,"tag":571,"props":13401,"children":13402},{"class":573,"line":11724},[13403],{"type":18,"tag":571,"props":13404,"children":13405},{"style":590},[13406],{"type":23,"value":1338},{"type":18,"tag":571,"props":13408,"children":13409},{"class":573,"line":11732},[13410],{"type":18,"tag":571,"props":13411,"children":13412},{"emptyLinePlaceholder":656},[13413],{"type":23,"value":659},{"type":18,"tag":571,"props":13415,"children":13417},{"class":573,"line":13416},77,[13418],{"type":18,"tag":571,"props":13419,"children":13420},{"style":892},[13421],{"type":23,"value":13422},"// watch\n",{"type":18,"tag":571,"props":13424,"children":13426},{"class":573,"line":13425},78,[13427,13431,13435,13439,13443,13447,13451,13455],{"type":18,"tag":571,"props":13428,"children":13429},{"style":584},[13430],{"type":23,"value":11171},{"type":18,"tag":571,"props":13432,"children":13433},{"style":590},[13434],{"type":23,"value":11176},{"type":18,"tag":571,"props":13436,"children":13437},{"style":616},[13438],{"type":23,"value":619},{"type":18,"tag":571,"props":13440,"children":13441},{"style":590},[13442],{"type":23,"value":3025},{"type":18,"tag":571,"props":13444,"children":13445},{"style":616},[13446],{"type":23,"value":11189},{"type":18,"tag":571,"props":13448,"children":13449},{"style":590},[13450],{"type":23,"value":1544},{"type":18,"tag":571,"props":13452,"children":13453},{"style":578},[13454],{"type":23,"value":639},{"type":18,"tag":571,"props":13456,"children":13457},{"style":590},[13458],{"type":23,"value":2993},{"type":18,"tag":571,"props":13460,"children":13462},{"class":573,"line":13461},79,[13463,13467,13471,13475],{"type":18,"tag":571,"props":13464,"children":13465},{"style":578},[13466],{"type":23,"value":8227},{"type":18,"tag":571,"props":13468,"children":13469},{"style":590},[13470],{"type":23,"value":11213},{"type":18,"tag":571,"props":13472,"children":13473},{"style":578},[13474],{"type":23,"value":1007},{"type":18,"tag":571,"props":13476,"children":13477},{"style":590},[13478],{"type":23,"value":11222},{"type":18,"tag":571,"props":13480,"children":13482},{"class":573,"line":13481},80,[13483,13487],{"type":18,"tag":571,"props":13484,"children":13485},{"style":584},[13486],{"type":23,"value":11230},{"type":18,"tag":571,"props":13488,"children":13489},{"style":590},[13490],{"type":23,"value":1600},{"type":18,"tag":571,"props":13492,"children":13494},{"class":573,"line":13493},81,[13495],{"type":18,"tag":571,"props":13496,"children":13497},{"style":590},[13498],{"type":23,"value":3828},{"type":18,"tag":571,"props":13500,"children":13502},{"class":573,"line":13501},82,[13503],{"type":18,"tag":571,"props":13504,"children":13505},{"style":590},[13506],{"type":23,"value":2184},{"type":18,"tag":571,"props":13508,"children":13510},{"class":573,"line":13509},83,[13511,13515,13519,13523,13527,13531,13535,13539],{"type":18,"tag":571,"props":13512,"children":13513},{"style":584},[13514],{"type":23,"value":11171},{"type":18,"tag":571,"props":13516,"children":13517},{"style":590},[13518],{"type":23,"value":11260},{"type":18,"tag":571,"props":13520,"children":13521},{"style":616},[13522],{"type":23,"value":619},{"type":18,"tag":571,"props":13524,"children":13525},{"style":590},[13526],{"type":23,"value":3025},{"type":18,"tag":571,"props":13528,"children":13529},{"style":616},[13530],{"type":23,"value":11189},{"type":18,"tag":571,"props":13532,"children":13533},{"style":590},[13534],{"type":23,"value":1544},{"type":18,"tag":571,"props":13536,"children":13537},{"style":578},[13538],{"type":23,"value":639},{"type":18,"tag":571,"props":13540,"children":13541},{"style":590},[13542],{"type":23,"value":2993},{"type":18,"tag":571,"props":13544,"children":13546},{"class":573,"line":13545},84,[13547,13551,13555,13559,13563,13567,13571,13575,13579],{"type":18,"tag":571,"props":13548,"children":13549},{"style":578},[13550],{"type":23,"value":8227},{"type":18,"tag":571,"props":13552,"children":13553},{"style":590},[13554],{"type":23,"value":11213},{"type":18,"tag":571,"props":13556,"children":13557},{"style":578},[13558],{"type":23,"value":1007},{"type":18,"tag":571,"props":13560,"children":13561},{"style":590},[13562],{"type":23,"value":11304},{"type":18,"tag":571,"props":13564,"children":13565},{"style":578},[13566],{"type":23,"value":11309},{"type":18,"tag":571,"props":13568,"children":13569},{"style":590},[13570],{"type":23,"value":11314},{"type":18,"tag":571,"props":13572,"children":13573},{"style":578},[13574],{"type":23,"value":1241},{"type":18,"tag":571,"props":13576,"children":13577},{"style":642},[13578],{"type":23,"value":12723},{"type":18,"tag":571,"props":13580,"children":13581},{"style":590},[13582],{"type":23,"value":8246},{"type":18,"tag":571,"props":13584,"children":13586},{"class":573,"line":13585},85,[13587,13591,13595,13599],{"type":18,"tag":571,"props":13588,"children":13589},{"style":590},[13590],{"type":23,"value":11334},{"type":18,"tag":571,"props":13592,"children":13593},{"style":578},[13594],{"type":23,"value":608},{"type":18,"tag":571,"props":13596,"children":13597},{"style":642},[13598],{"type":23,"value":3176},{"type":18,"tag":571,"props":13600,"children":13601},{"style":590},[13602],{"type":23,"value":650},{"type":18,"tag":571,"props":13604,"children":13606},{"class":573,"line":13605},86,[13607,13611,13615,13619],{"type":18,"tag":571,"props":13608,"children":13609},{"style":584},[13610],{"type":23,"value":11354},{"type":18,"tag":571,"props":13612,"children":13613},{"style":590},[13614],{"type":23,"value":682},{"type":18,"tag":571,"props":13616,"children":13617},{"style":784},[13618],{"type":23,"value":11363},{"type":18,"tag":571,"props":13620,"children":13621},{"style":590},[13622],{"type":23,"value":792},{"type":18,"tag":571,"props":13624,"children":13626},{"class":573,"line":13625},87,[13627],{"type":18,"tag":571,"props":13628,"children":13629},{"style":590},[13630],{"type":23,"value":3828},{"type":18,"tag":571,"props":13632,"children":13634},{"class":573,"line":13633},88,[13635],{"type":18,"tag":571,"props":13636,"children":13637},{"style":590},[13638],{"type":23,"value":2184},{"type":18,"tag":571,"props":13640,"children":13642},{"class":573,"line":13641},89,[13643],{"type":18,"tag":571,"props":13644,"children":13645},{"emptyLinePlaceholder":656},[13646],{"type":23,"value":659},{"type":18,"tag":571,"props":13648,"children":13650},{"class":573,"line":13649},90,[13651],{"type":18,"tag":571,"props":13652,"children":13653},{"style":892},[13654],{"type":23,"value":13655},"// computed\n",{"type":18,"tag":571,"props":13657,"children":13659},{"class":573,"line":13658},91,[13660,13664,13668,13672,13676,13680,13684],{"type":18,"tag":571,"props":13661,"children":13662},{"style":578},[13663],{"type":23,"value":1516},{"type":18,"tag":571,"props":13665,"children":13666},{"style":642},[13667],{"type":23,"value":11543},{"type":18,"tag":571,"props":13669,"children":13670},{"style":578},[13671],{"type":23,"value":1526},{"type":18,"tag":571,"props":13673,"children":13674},{"style":584},[13675],{"type":23,"value":11552},{"type":18,"tag":571,"props":13677,"children":13678},{"style":590},[13679],{"type":23,"value":10804},{"type":18,"tag":571,"props":13681,"children":13682},{"style":578},[13683],{"type":23,"value":639},{"type":18,"tag":571,"props":13685,"children":13686},{"style":590},[13687],{"type":23,"value":2993},{"type":18,"tag":571,"props":13689,"children":13691},{"class":573,"line":13690},92,[13692,13696,13700,13704,13708,13712,13716,13720,13724],{"type":18,"tag":571,"props":13693,"children":13694},{"style":578},[13695],{"type":23,"value":7582},{"type":18,"tag":571,"props":13697,"children":13698},{"style":642},[13699],{"type":23,"value":11577},{"type":18,"tag":571,"props":13701,"children":13702},{"style":578},[13703],{"type":23,"value":1526},{"type":18,"tag":571,"props":13705,"children":13706},{"style":590},[13707],{"type":23,"value":11586},{"type":18,"tag":571,"props":13709,"children":13710},{"style":584},[13711],{"type":23,"value":11591},{"type":18,"tag":571,"props":13713,"children":13714},{"style":590},[13715],{"type":23,"value":11596},{"type":18,"tag":571,"props":13717,"children":13718},{"style":578},[13719],{"type":23,"value":11601},{"type":18,"tag":571,"props":13721,"children":13722},{"style":642},[13723],{"type":23,"value":11606},{"type":18,"tag":571,"props":13725,"children":13726},{"style":590},[13727],{"type":23,"value":792},{"type":18,"tag":571,"props":13729,"children":13731},{"class":573,"line":13730},93,[13732,13736,13740,13744,13748,13752,13756],{"type":18,"tag":571,"props":13733,"children":13734},{"style":578},[13735],{"type":23,"value":7582},{"type":18,"tag":571,"props":13737,"children":13738},{"style":642},[13739],{"type":23,"value":11623},{"type":18,"tag":571,"props":13741,"children":13742},{"style":578},[13743],{"type":23,"value":1526},{"type":18,"tag":571,"props":13745,"children":13746},{"style":590},[13747],{"type":23,"value":11632},{"type":18,"tag":571,"props":13749,"children":13750},{"style":578},[13751],{"type":23,"value":3198},{"type":18,"tag":571,"props":13753,"children":13754},{"style":642},[13755],{"type":23,"value":11606},{"type":18,"tag":571,"props":13757,"children":13758},{"style":590},[13759],{"type":23,"value":650},{"type":18,"tag":571,"props":13761,"children":13763},{"class":573,"line":13762},94,[13764,13768,13772,13776,13780,13784,13788,13792,13796,13800,13804,13808,13812,13816,13820,13824],{"type":18,"tag":571,"props":13765,"children":13766},{"style":578},[13767],{"type":23,"value":11653},{"type":18,"tag":571,"props":13769,"children":13770},{"style":784},[13771],{"type":23,"value":11658},{"type":18,"tag":571,"props":13773,"children":13774},{"style":590},[13775],{"type":23,"value":11663},{"type":18,"tag":571,"props":13777,"children":13778},{"style":784},[13779],{"type":23,"value":11668},{"type":18,"tag":571,"props":13781,"children":13782},{"style":590},[13783],{"type":23,"value":11673},{"type":18,"tag":571,"props":13785,"children":13786},{"style":784},[13787],{"type":23,"value":205},{"type":18,"tag":571,"props":13789,"children":13790},{"style":584},[13791],{"type":23,"value":11682},{"type":18,"tag":571,"props":13793,"children":13794},{"style":784},[13795],{"type":23,"value":11687},{"type":18,"tag":571,"props":13797,"children":13798},{"style":584},[13799],{"type":23,"value":11692},{"type":18,"tag":571,"props":13801,"children":13802},{"style":784},[13803],{"type":23,"value":682},{"type":18,"tag":571,"props":13805,"children":13806},{"style":642},[13807],{"type":23,"value":284},{"type":18,"tag":571,"props":13809,"children":13810},{"style":784},[13811],{"type":23,"value":3025},{"type":18,"tag":571,"props":13813,"children":13814},{"style":784},[13815],{"type":23,"value":11709},{"type":18,"tag":571,"props":13817,"children":13818},{"style":784},[13819],{"type":23,"value":1698},{"type":18,"tag":571,"props":13821,"children":13822},{"style":784},[13823],{"type":23,"value":2055},{"type":18,"tag":571,"props":13825,"children":13826},{"style":590},[13827],{"type":23,"value":650},{"type":18,"tag":571,"props":13829,"children":13831},{"class":573,"line":13830},95,[13832],{"type":18,"tag":571,"props":13833,"children":13834},{"style":590},[13835],{"type":23,"value":2184},{"type":18,"tag":571,"props":13837,"children":13839},{"class":573,"line":13838},96,[13840],{"type":18,"tag":571,"props":13841,"children":13842},{"emptyLinePlaceholder":656},[13843],{"type":23,"value":659},{"type":18,"tag":571,"props":13845,"children":13847},{"class":573,"line":13846},97,[13848],{"type":18,"tag":571,"props":13849,"children":13850},{"style":892},[13851],{"type":23,"value":11400},{"type":18,"tag":571,"props":13853,"children":13855},{"class":573,"line":13854},98,[13856,13860,13864,13868],{"type":18,"tag":571,"props":13857,"children":13858},{"style":584},[13859],{"type":23,"value":11409},{"type":18,"tag":571,"props":13861,"children":13862},{"style":590},[13863],{"type":23,"value":10804},{"type":18,"tag":571,"props":13865,"children":13866},{"style":578},[13867],{"type":23,"value":639},{"type":18,"tag":571,"props":13869,"children":13870},{"style":590},[13871],{"type":23,"value":2993},{"type":18,"tag":571,"props":13873,"children":13875},{"class":573,"line":13874},99,[13876,13880,13884,13888,13892,13896,13900,13904,13908],{"type":18,"tag":571,"props":13877,"children":13878},{"style":590},[13879],{"type":23,"value":11430},{"type":18,"tag":571,"props":13881,"children":13882},{"style":578},[13883],{"type":23,"value":608},{"type":18,"tag":571,"props":13885,"children":13886},{"style":590},[13887],{"type":23,"value":11439},{"type":18,"tag":571,"props":13889,"children":13890},{"style":784},[13891],{"type":23,"value":11444},{"type":18,"tag":571,"props":13893,"children":13894},{"style":590},[13895],{"type":23,"value":3025},{"type":18,"tag":571,"props":13897,"children":13898},{"style":784},[13899],{"type":23,"value":11453},{"type":18,"tag":571,"props":13901,"children":13902},{"style":590},[13903],{"type":23,"value":3025},{"type":18,"tag":571,"props":13905,"children":13906},{"style":784},[13907],{"type":23,"value":11462},{"type":18,"tag":571,"props":13909,"children":13910},{"style":590},[13911],{"type":23,"value":11467},{"type":18,"tag":571,"props":13913,"children":13915},{"class":573,"line":13914},100,[13916,13920,13924,13928,13932],{"type":18,"tag":571,"props":13917,"children":13918},{"style":590},[13919],{"type":23,"value":9778},{"type":18,"tag":571,"props":13921,"children":13922},{"style":578},[13923],{"type":23,"value":608},{"type":18,"tag":571,"props":13925,"children":13926},{"style":590},[13927],{"type":23,"value":11484},{"type":18,"tag":571,"props":13929,"children":13930},{"style":642},[13931],{"type":23,"value":4485},{"type":18,"tag":571,"props":13933,"children":13934},{"style":590},[13935],{"type":23,"value":11467},{"type":18,"tag":571,"props":13937,"children":13939},{"class":573,"line":13938},101,[13940,13944],{"type":18,"tag":571,"props":13941,"children":13942},{"style":584},[13943],{"type":23,"value":11501},{"type":18,"tag":571,"props":13945,"children":13946},{"style":590},[13947],{"type":23,"value":1600},{"type":18,"tag":571,"props":13949,"children":13951},{"class":573,"line":13950},102,[13952],{"type":18,"tag":571,"props":13953,"children":13954},{"style":590},[13955],{"type":23,"value":2184},{"type":18,"tag":571,"props":13957,"children":13959},{"class":573,"line":13958},103,[13960,13964,13968],{"type":18,"tag":571,"props":13961,"children":13962},{"style":590},[13963],{"type":23,"value":5340},{"type":18,"tag":571,"props":13965,"children":13966},{"style":3356},[13967],{"type":23,"value":8363},{"type":18,"tag":571,"props":13969,"children":13970},{"style":590},[13971],{"type":23,"value":3387},{"type":18,"tag":19,"props":13973,"children":13974},{},[13975],{"type":23,"value":13976},"And we can safely say we are starting to enter into code spaghetti territory. I have fallen into this trap and with new vue developers it seems to be a very common pitfall. But there is a better way!",{"type":18,"tag":39,"props":13978,"children":13980},{"id":13979},"a-better-way-you-say",[13981],{"type":23,"value":13982},"A better way you say?",{"type":18,"tag":19,"props":13984,"children":13985},{},[13986],{"type":23,"value":13987},"Yes! And you probably already know the anwser. Using the power of composables. Not only can composables be used to create reuable sections of code, they can be used to logically group our own vue code into chunks. The code lives within the page and, if needed, can easily become new composable file because of the pre work we have done. But that is not the reason why to do this, we are not trying to pre optimize, but to make our logic clearer to understand. Let's have a look at the refactored page.",{"type":18,"tag":561,"props":13989,"children":13991},{"className":7029,"code":13990,"language":7031,"meta":8,"style":8},"\u003Ctemplate>\n  \u003Ch1>NEXT: {{ priority }} - TIMER: {{ timeElapsedString }}\u003C/h1>\n  \u003Cul>\n    \u003Cli v-for=\"item in todos\" :key=\"item\">\n      {{ item }} \u003Cbutton @click=\"makePriority(item)\">Make Priority\u003C/button>\n      \u003Cbutton @click=\"removeTodo(item)\">Remove\u003C/button>\n\n      \u003Ch4>Subtasks:\u003C/h4>\n      \u003Cul>\n        \u003Cli v-for=\"(item, index) in subtasks\" :key=\"item\">\n          {{ item }}\n          \u003Cbutton @click=\"remove(item)\">Remove\u003C/button>\n        \u003C/li>\n      \u003C/ul>\n      \u003Cinput v-model=\"newSubtask[index]\" placeholder=\"New subtask\" />\n      \u003Cbutton @click=\"add(newTodo)\">Add\u003C/button>\n    \u003C/li>\n  \u003C/ul>\n  \u003Cinput v-model=\"newTodo\" placeholder=\"New todo\" />\n  \u003Cbutton @click=\"addTodo(newTodo)\">Add\u003C/button>\n\u003C/template>\n\n\u003Cscript setup lang=\"ts\">\nimport { ref, watch, computed, onMounted } from 'vue';\n\nconst useTodoState = () => {\n  const todos = ref([]);\n  const newTodo = ref();\n  const priority = ref();\n\n  function makePriority(item: string) {\n    priority.value = item;\n  }\n\n  function addTodo(item: string) {\n    if (item.trim()) {\n      todos.value.push(item);\n      newTodo.value = '';\n    }\n  }\n\n  function removeTodo(item: string) {\n    const idx = todos.value.indexOf(item);\n    if (idx !== -1) {\n      todos.value.splice(idx, 1);\n    }\n  }\n\n  onMounted(() => {\n    todos.value = ['Walk dog', 'Write blog', 'Water plants'];\n    priority.value = todos.value[0];\n  });\n\n  return {\n    todos,\n    newTodo,\n    priority,\n    addTodo,\n    removeTodo,\n    makePriority,\n  };\n};\n\nconst useSubtaskState = () => {\n  const subtasks = ref([]);\n  const newSubtasks = ref\u003Cstring[]>([]);\n\n  function addSubtask(item: string) {\n    if (item.trim()) {\n      subtasks.value.push(item);\n      newTodo.value = '';\n    }\n  }\n\n  function removeSubtask(item: string) {\n    const idx = subtasks.value.indexOf(item);\n    if (idx !== -1) {\n      subtasks.value.splice(idx, 1);\n    }\n  }\n\n  return {\n    subtasks,\n    newSubtasks,\n    addSubtask,\n    removeSubtask,\n  };\n};\n\nconst usePriorityTimer = (priority: Ref\u003Cstring>) => {\n  const timeElapsed = ref(0);\n  let timer: number | null = null;\n  const DEADLINE = 60 * 15;\n\n  function startTimer() {\n    if (timer) {\n      clearInterval(timer);\n    }\n    timeElapsed.value = 0;\n    timer = setInterval(() => {\n      timeElapsed.value++;\n    }, 1000);\n  }\n\n  watch(priority, (newValue, oldValue) => {\n    if (newValue !== oldValue) {\n      startTimer();\n    }\n  });\n  watch(timeElapsed, (newValue, oldValue) => {\n    if (newValue !== oldValue && newValue > DEADLINE) {\n      timeElapsed.value = 0;\n      alert('Times up');\n    }\n  });\n\n  const timeElapsedString = computed(() => {\n    const minutes = Math.floor(timeElapsed.value / 60);\n    const seconds = timeElapsed.value % 60;\n    return `${minutes}:${seconds.toString().padStart(2, '0')}`;\n  });\n\n  onMounted(() => {\n    startTimer();\n  });\n\n  return {\n    timeElapsedString,\n  };\n};\n\nconst { todos, newTodo, priority, addTodo, removeTodo, makePriority } =\n  useTodoState();\n\nconst { subtasks, newSubtasks, addSubtask, removeSubtask } = useSubtaskState();\nconst { timeElapsedString } = usePriorityTimer(priority);\n\u003C/script>\n",[13992],{"type":18,"tag":480,"props":13993,"children":13994},{"__ignoreMap":8},[13995,14010,14033,14048,14115,14166,14217,14224,14247,14262,14329,14336,14387,14402,14417,14464,14515,14530,14545,14592,14643,14658,14665,14696,14719,14726,14755,14778,14801,14824,14831,14863,14879,14886,14893,14924,14943,14959,14979,14986,14993,15000,15031,15058,15085,15108,15115,15122,15129,15149,15189,15212,15219,15226,15237,15245,15253,15261,15269,15277,15285,15293,15300,15307,15335,15358,15389,15396,15427,15446,15462,15481,15488,15495,15502,15533,15560,15587,15610,15617,15624,15631,15642,15650,15658,15666,15674,15681,15688,15695,15750,15781,15821,15852,15859,15874,15885,15897,15904,15923,15951,15967,15983,15990,15998,16035,16055,16068,16076,16084,16120,16160,16181,16202,16210,16218,16226,16258,16298,16330,16398,16406,16414,16434,16446,16454,16462,16474,16483,16491,16499,16507,16573,16586,16594,16654,16688],{"type":18,"tag":571,"props":13996,"children":13997},{"class":573,"line":574},[13998,14002,14006],{"type":18,"tag":571,"props":13999,"children":14000},{"style":590},[14001],{"type":23,"value":593},{"type":18,"tag":571,"props":14003,"children":14004},{"style":3356},[14005],{"type":23,"value":7047},{"type":18,"tag":571,"props":14007,"children":14008},{"style":590},[14009],{"type":23,"value":3387},{"type":18,"tag":571,"props":14011,"children":14012},{"class":573,"line":169},[14013,14017,14021,14025,14029],{"type":18,"tag":571,"props":14014,"children":14015},{"style":590},[14016],{"type":23,"value":5034},{"type":18,"tag":571,"props":14018,"children":14019},{"style":3356},[14020],{"type":23,"value":7128},{"type":18,"tag":571,"props":14022,"children":14023},{"style":590},[14024],{"type":23,"value":10122},{"type":18,"tag":571,"props":14026,"children":14027},{"style":3356},[14028],{"type":23,"value":7128},{"type":18,"tag":571,"props":14030,"children":14031},{"style":590},[14032],{"type":23,"value":3387},{"type":18,"tag":571,"props":14034,"children":14035},{"class":573,"line":174},[14036,14040,14044],{"type":18,"tag":571,"props":14037,"children":14038},{"style":590},[14039],{"type":23,"value":5034},{"type":18,"tag":571,"props":14041,"children":14042},{"style":3356},[14043],{"type":23,"value":489},{"type":18,"tag":571,"props":14045,"children":14046},{"style":590},[14047],{"type":23,"value":3387},{"type":18,"tag":571,"props":14049,"children":14050},{"class":573,"line":714},[14051,14055,14059,14063,14067,14071,14075,14079,14083,14087,14091,14095,14099,14103,14107,14111],{"type":18,"tag":571,"props":14052,"children":14053},{"style":590},[14054],{"type":23,"value":5104},{"type":18,"tag":571,"props":14056,"children":14057},{"style":3356},[14058],{"type":23,"value":62},{"type":18,"tag":571,"props":14060,"children":14061},{"style":578},[14062],{"type":23,"value":9216},{"type":18,"tag":571,"props":14064,"children":14065},{"style":590},[14066],{"type":23,"value":608},{"type":18,"tag":571,"props":14068,"children":14069},{"style":784},[14070],{"type":23,"value":8961},{"type":18,"tag":571,"props":14072,"children":14073},{"style":590},[14074],{"type":23,"value":9229},{"type":18,"tag":571,"props":14076,"children":14077},{"style":578},[14078],{"type":23,"value":9234},{"type":18,"tag":571,"props":14080,"children":14081},{"style":590},[14082],{"type":23,"value":9239},{"type":18,"tag":571,"props":14084,"children":14085},{"style":784},[14086],{"type":23,"value":8961},{"type":18,"tag":571,"props":14088,"children":14089},{"style":590},[14090],{"type":23,"value":9248},{"type":18,"tag":571,"props":14092,"children":14093},{"style":584},[14094],{"type":23,"value":9253},{"type":18,"tag":571,"props":14096,"children":14097},{"style":590},[14098],{"type":23,"value":608},{"type":18,"tag":571,"props":14100,"children":14101},{"style":784},[14102],{"type":23,"value":8961},{"type":18,"tag":571,"props":14104,"children":14105},{"style":590},[14106],{"type":23,"value":9266},{"type":18,"tag":571,"props":14108,"children":14109},{"style":784},[14110],{"type":23,"value":8961},{"type":18,"tag":571,"props":14112,"children":14113},{"style":590},[14114],{"type":23,"value":3387},{"type":18,"tag":571,"props":14116,"children":14117},{"class":573,"line":761},[14118,14122,14126,14130,14134,14138,14142,14146,14150,14154,14158,14162],{"type":18,"tag":571,"props":14119,"children":14120},{"style":590},[14121],{"type":23,"value":11891},{"type":18,"tag":571,"props":14123,"children":14124},{"style":3356},[14125],{"type":23,"value":9296},{"type":18,"tag":571,"props":14127,"children":14128},{"style":590},[14129],{"type":23,"value":8990},{"type":18,"tag":571,"props":14131,"children":14132},{"style":584},[14133],{"type":23,"value":8995},{"type":18,"tag":571,"props":14135,"children":14136},{"style":590},[14137],{"type":23,"value":608},{"type":18,"tag":571,"props":14139,"children":14140},{"style":784},[14141],{"type":23,"value":8961},{"type":18,"tag":571,"props":14143,"children":14144},{"style":584},[14145],{"type":23,"value":9317},{"type":18,"tag":571,"props":14147,"children":14148},{"style":590},[14149],{"type":23,"value":9322},{"type":18,"tag":571,"props":14151,"children":14152},{"style":784},[14153],{"type":23,"value":8961},{"type":18,"tag":571,"props":14155,"children":14156},{"style":590},[14157],{"type":23,"value":9331},{"type":18,"tag":571,"props":14159,"children":14160},{"style":3356},[14161],{"type":23,"value":9296},{"type":18,"tag":571,"props":14163,"children":14164},{"style":590},[14165],{"type":23,"value":3387},{"type":18,"tag":571,"props":14167,"children":14168},{"class":573,"line":795},[14169,14173,14177,14181,14185,14189,14193,14197,14201,14205,14209,14213],{"type":18,"tag":571,"props":14170,"children":14171},{"style":590},[14172],{"type":23,"value":5193},{"type":18,"tag":571,"props":14174,"children":14175},{"style":3356},[14176],{"type":23,"value":9296},{"type":18,"tag":571,"props":14178,"children":14179},{"style":590},[14180],{"type":23,"value":8990},{"type":18,"tag":571,"props":14182,"children":14183},{"style":584},[14184],{"type":23,"value":8995},{"type":18,"tag":571,"props":14186,"children":14187},{"style":590},[14188],{"type":23,"value":608},{"type":18,"tag":571,"props":14190,"children":14191},{"style":784},[14192],{"type":23,"value":8961},{"type":18,"tag":571,"props":14194,"children":14195},{"style":584},[14196],{"type":23,"value":11967},{"type":18,"tag":571,"props":14198,"children":14199},{"style":590},[14200],{"type":23,"value":9322},{"type":18,"tag":571,"props":14202,"children":14203},{"style":784},[14204],{"type":23,"value":8961},{"type":18,"tag":571,"props":14206,"children":14207},{"style":590},[14208],{"type":23,"value":9385},{"type":18,"tag":571,"props":14210,"children":14211},{"style":3356},[14212],{"type":23,"value":9296},{"type":18,"tag":571,"props":14214,"children":14215},{"style":590},[14216],{"type":23,"value":3387},{"type":18,"tag":571,"props":14218,"children":14219},{"class":573,"line":804},[14220],{"type":18,"tag":571,"props":14221,"children":14222},{"emptyLinePlaceholder":656},[14223],{"type":23,"value":659},{"type":18,"tag":571,"props":14225,"children":14226},{"class":573,"line":812},[14227,14231,14235,14239,14243],{"type":18,"tag":571,"props":14228,"children":14229},{"style":590},[14230],{"type":23,"value":5193},{"type":18,"tag":571,"props":14232,"children":14233},{"style":3356},[14234],{"type":23,"value":468},{"type":18,"tag":571,"props":14236,"children":14237},{"style":590},[14238],{"type":23,"value":12010},{"type":18,"tag":571,"props":14240,"children":14241},{"style":3356},[14242],{"type":23,"value":468},{"type":18,"tag":571,"props":14244,"children":14245},{"style":590},[14246],{"type":23,"value":3387},{"type":18,"tag":571,"props":14248,"children":14249},{"class":573,"line":835},[14250,14254,14258],{"type":18,"tag":571,"props":14251,"children":14252},{"style":590},[14253],{"type":23,"value":5193},{"type":18,"tag":571,"props":14255,"children":14256},{"style":3356},[14257],{"type":23,"value":489},{"type":18,"tag":571,"props":14259,"children":14260},{"style":590},[14261],{"type":23,"value":3387},{"type":18,"tag":571,"props":14263,"children":14264},{"class":573,"line":880},[14265,14269,14273,14277,14281,14285,14289,14293,14297,14301,14305,14309,14313,14317,14321,14325],{"type":18,"tag":571,"props":14266,"children":14267},{"style":590},[14268],{"type":23,"value":12041},{"type":18,"tag":571,"props":14270,"children":14271},{"style":3356},[14272],{"type":23,"value":62},{"type":18,"tag":571,"props":14274,"children":14275},{"style":578},[14276],{"type":23,"value":9216},{"type":18,"tag":571,"props":14278,"children":14279},{"style":590},[14280],{"type":23,"value":608},{"type":18,"tag":571,"props":14282,"children":14283},{"style":784},[14284],{"type":23,"value":8961},{"type":18,"tag":571,"props":14286,"children":14287},{"style":590},[14288],{"type":23,"value":12062},{"type":18,"tag":571,"props":14290,"children":14291},{"style":578},[14292],{"type":23,"value":9234},{"type":18,"tag":571,"props":14294,"children":14295},{"style":590},[14296],{"type":23,"value":12071},{"type":18,"tag":571,"props":14298,"children":14299},{"style":784},[14300],{"type":23,"value":8961},{"type":18,"tag":571,"props":14302,"children":14303},{"style":590},[14304],{"type":23,"value":9248},{"type":18,"tag":571,"props":14306,"children":14307},{"style":584},[14308],{"type":23,"value":9253},{"type":18,"tag":571,"props":14310,"children":14311},{"style":590},[14312],{"type":23,"value":608},{"type":18,"tag":571,"props":14314,"children":14315},{"style":784},[14316],{"type":23,"value":8961},{"type":18,"tag":571,"props":14318,"children":14319},{"style":590},[14320],{"type":23,"value":9266},{"type":18,"tag":571,"props":14322,"children":14323},{"style":784},[14324],{"type":23,"value":8961},{"type":18,"tag":571,"props":14326,"children":14327},{"style":590},[14328],{"type":23,"value":3387},{"type":18,"tag":571,"props":14330,"children":14331},{"class":573,"line":888},[14332],{"type":18,"tag":571,"props":14333,"children":14334},{"style":590},[14335],{"type":23,"value":12111},{"type":18,"tag":571,"props":14337,"children":14338},{"class":573,"line":898},[14339,14343,14347,14351,14355,14359,14363,14367,14371,14375,14379,14383],{"type":18,"tag":571,"props":14340,"children":14341},{"style":590},[14342],{"type":23,"value":12119},{"type":18,"tag":571,"props":14344,"children":14345},{"style":3356},[14346],{"type":23,"value":9296},{"type":18,"tag":571,"props":14348,"children":14349},{"style":590},[14350],{"type":23,"value":8990},{"type":18,"tag":571,"props":14352,"children":14353},{"style":584},[14354],{"type":23,"value":8995},{"type":18,"tag":571,"props":14356,"children":14357},{"style":590},[14358],{"type":23,"value":608},{"type":18,"tag":571,"props":14360,"children":14361},{"style":784},[14362],{"type":23,"value":8961},{"type":18,"tag":571,"props":14364,"children":14365},{"style":584},[14366],{"type":23,"value":9372},{"type":18,"tag":571,"props":14368,"children":14369},{"style":590},[14370],{"type":23,"value":9322},{"type":18,"tag":571,"props":14372,"children":14373},{"style":784},[14374],{"type":23,"value":8961},{"type":18,"tag":571,"props":14376,"children":14377},{"style":590},[14378],{"type":23,"value":9385},{"type":18,"tag":571,"props":14380,"children":14381},{"style":3356},[14382],{"type":23,"value":9296},{"type":18,"tag":571,"props":14384,"children":14385},{"style":590},[14386],{"type":23,"value":3387},{"type":18,"tag":571,"props":14388,"children":14389},{"class":573,"line":917},[14390,14394,14398],{"type":18,"tag":571,"props":14391,"children":14392},{"style":590},[14393],{"type":23,"value":12171},{"type":18,"tag":571,"props":14395,"children":14396},{"style":3356},[14397],{"type":23,"value":62},{"type":18,"tag":571,"props":14399,"children":14400},{"style":590},[14401],{"type":23,"value":3387},{"type":18,"tag":571,"props":14403,"children":14404},{"class":573,"line":931},[14405,14409,14413],{"type":18,"tag":571,"props":14406,"children":14407},{"style":590},[14408],{"type":23,"value":12187},{"type":18,"tag":571,"props":14410,"children":14411},{"style":3356},[14412],{"type":23,"value":489},{"type":18,"tag":571,"props":14414,"children":14415},{"style":590},[14416],{"type":23,"value":3387},{"type":18,"tag":571,"props":14418,"children":14419},{"class":573,"line":939},[14420,14424,14428,14432,14436,14440,14444,14448,14452,14456,14460],{"type":18,"tag":571,"props":14421,"children":14422},{"style":590},[14423],{"type":23,"value":5193},{"type":18,"tag":571,"props":14425,"children":14426},{"style":3356},[14427],{"type":23,"value":9435},{"type":18,"tag":571,"props":14429,"children":14430},{"style":584},[14431],{"type":23,"value":8952},{"type":18,"tag":571,"props":14433,"children":14434},{"style":590},[14435],{"type":23,"value":608},{"type":18,"tag":571,"props":14437,"children":14438},{"style":784},[14439],{"type":23,"value":8961},{"type":18,"tag":571,"props":14441,"children":14442},{"style":590},[14443],{"type":23,"value":12223},{"type":18,"tag":571,"props":14445,"children":14446},{"style":784},[14447],{"type":23,"value":8961},{"type":18,"tag":571,"props":14449,"children":14450},{"style":584},[14451],{"type":23,"value":7302},{"type":18,"tag":571,"props":14453,"children":14454},{"style":590},[14455],{"type":23,"value":608},{"type":18,"tag":571,"props":14457,"children":14458},{"style":784},[14459],{"type":23,"value":12240},{"type":18,"tag":571,"props":14461,"children":14462},{"style":590},[14463],{"type":23,"value":7316},{"type":18,"tag":571,"props":14465,"children":14466},{"class":573,"line":947},[14467,14471,14475,14479,14483,14487,14491,14495,14499,14503,14507,14511],{"type":18,"tag":571,"props":14468,"children":14469},{"style":590},[14470],{"type":23,"value":5193},{"type":18,"tag":571,"props":14472,"children":14473},{"style":3356},[14474],{"type":23,"value":9296},{"type":18,"tag":571,"props":14476,"children":14477},{"style":590},[14478],{"type":23,"value":8990},{"type":18,"tag":571,"props":14480,"children":14481},{"style":584},[14482],{"type":23,"value":8995},{"type":18,"tag":571,"props":14484,"children":14485},{"style":590},[14486],{"type":23,"value":608},{"type":18,"tag":571,"props":14488,"children":14489},{"style":784},[14490],{"type":23,"value":8961},{"type":18,"tag":571,"props":14492,"children":14493},{"style":584},[14494],{"type":23,"value":9505},{"type":18,"tag":571,"props":14496,"children":14497},{"style":590},[14498],{"type":23,"value":9510},{"type":18,"tag":571,"props":14500,"children":14501},{"style":784},[14502],{"type":23,"value":8961},{"type":18,"tag":571,"props":14504,"children":14505},{"style":590},[14506],{"type":23,"value":9519},{"type":18,"tag":571,"props":14508,"children":14509},{"style":3356},[14510],{"type":23,"value":9296},{"type":18,"tag":571,"props":14512,"children":14513},{"style":590},[14514],{"type":23,"value":3387},{"type":18,"tag":571,"props":14516,"children":14517},{"class":573,"line":956},[14518,14522,14526],{"type":18,"tag":571,"props":14519,"children":14520},{"style":590},[14521],{"type":23,"value":5307},{"type":18,"tag":571,"props":14523,"children":14524},{"style":3356},[14525],{"type":23,"value":62},{"type":18,"tag":571,"props":14527,"children":14528},{"style":590},[14529],{"type":23,"value":3387},{"type":18,"tag":571,"props":14531,"children":14532},{"class":573,"line":991},[14533,14537,14541],{"type":18,"tag":571,"props":14534,"children":14535},{"style":590},[14536],{"type":23,"value":5324},{"type":18,"tag":571,"props":14538,"children":14539},{"style":3356},[14540],{"type":23,"value":489},{"type":18,"tag":571,"props":14542,"children":14543},{"style":590},[14544],{"type":23,"value":3387},{"type":18,"tag":571,"props":14546,"children":14547},{"class":573,"line":1015},[14548,14552,14556,14560,14564,14568,14572,14576,14580,14584,14588],{"type":18,"tag":571,"props":14549,"children":14550},{"style":590},[14551],{"type":23,"value":5034},{"type":18,"tag":571,"props":14553,"children":14554},{"style":3356},[14555],{"type":23,"value":9435},{"type":18,"tag":571,"props":14557,"children":14558},{"style":584},[14559],{"type":23,"value":8952},{"type":18,"tag":571,"props":14561,"children":14562},{"style":590},[14563],{"type":23,"value":608},{"type":18,"tag":571,"props":14565,"children":14566},{"style":784},[14567],{"type":23,"value":8961},{"type":18,"tag":571,"props":14569,"children":14570},{"style":590},[14571],{"type":23,"value":9452},{"type":18,"tag":571,"props":14573,"children":14574},{"style":784},[14575],{"type":23,"value":8961},{"type":18,"tag":571,"props":14577,"children":14578},{"style":584},[14579],{"type":23,"value":7302},{"type":18,"tag":571,"props":14581,"children":14582},{"style":590},[14583],{"type":23,"value":608},{"type":18,"tag":571,"props":14585,"children":14586},{"style":784},[14587],{"type":23,"value":9469},{"type":18,"tag":571,"props":14589,"children":14590},{"style":590},[14591],{"type":23,"value":7316},{"type":18,"tag":571,"props":14593,"children":14594},{"class":573,"line":1033},[14595,14599,14603,14607,14611,14615,14619,14623,14627,14631,14635,14639],{"type":18,"tag":571,"props":14596,"children":14597},{"style":590},[14598],{"type":23,"value":5034},{"type":18,"tag":571,"props":14600,"children":14601},{"style":3356},[14602],{"type":23,"value":9296},{"type":18,"tag":571,"props":14604,"children":14605},{"style":590},[14606],{"type":23,"value":8990},{"type":18,"tag":571,"props":14608,"children":14609},{"style":584},[14610],{"type":23,"value":8995},{"type":18,"tag":571,"props":14612,"children":14613},{"style":590},[14614],{"type":23,"value":608},{"type":18,"tag":571,"props":14616,"children":14617},{"style":784},[14618],{"type":23,"value":8961},{"type":18,"tag":571,"props":14620,"children":14621},{"style":584},[14622],{"type":23,"value":12404},{"type":18,"tag":571,"props":14624,"children":14625},{"style":590},[14626],{"type":23,"value":9510},{"type":18,"tag":571,"props":14628,"children":14629},{"style":784},[14630],{"type":23,"value":8961},{"type":18,"tag":571,"props":14632,"children":14633},{"style":590},[14634],{"type":23,"value":9519},{"type":18,"tag":571,"props":14636,"children":14637},{"style":3356},[14638],{"type":23,"value":9296},{"type":18,"tag":571,"props":14640,"children":14641},{"style":590},[14642],{"type":23,"value":3387},{"type":18,"tag":571,"props":14644,"children":14645},{"class":573,"line":1075},[14646,14650,14654],{"type":18,"tag":571,"props":14647,"children":14648},{"style":590},[14649],{"type":23,"value":5340},{"type":18,"tag":571,"props":14651,"children":14652},{"style":3356},[14653],{"type":23,"value":7047},{"type":18,"tag":571,"props":14655,"children":14656},{"style":590},[14657],{"type":23,"value":3387},{"type":18,"tag":571,"props":14659,"children":14660},{"class":573,"line":1084},[14661],{"type":18,"tag":571,"props":14662,"children":14663},{"emptyLinePlaceholder":656},[14664],{"type":23,"value":659},{"type":18,"tag":571,"props":14666,"children":14667},{"class":573,"line":1092},[14668,14672,14676,14680,14684,14688,14692],{"type":18,"tag":571,"props":14669,"children":14670},{"style":590},[14671],{"type":23,"value":593},{"type":18,"tag":571,"props":14673,"children":14674},{"style":3356},[14675],{"type":23,"value":8363},{"type":18,"tag":571,"props":14677,"children":14678},{"style":584},[14679],{"type":23,"value":8382},{"type":18,"tag":571,"props":14681,"children":14682},{"style":584},[14683],{"type":23,"value":8368},{"type":18,"tag":571,"props":14685,"children":14686},{"style":590},[14687],{"type":23,"value":608},{"type":18,"tag":571,"props":14689,"children":14690},{"style":784},[14691],{"type":23,"value":8377},{"type":18,"tag":571,"props":14693,"children":14694},{"style":590},[14695],{"type":23,"value":3387},{"type":18,"tag":571,"props":14697,"children":14698},{"class":573,"line":1100},[14699,14703,14707,14711,14715],{"type":18,"tag":571,"props":14700,"children":14701},{"style":578},[14702],{"type":23,"value":7493},{"type":18,"tag":571,"props":14704,"children":14705},{"style":590},[14706],{"type":23,"value":10514},{"type":18,"tag":571,"props":14708,"children":14709},{"style":578},[14710],{"type":23,"value":7503},{"type":18,"tag":571,"props":14712,"children":14713},{"style":784},[14714],{"type":23,"value":9601},{"type":18,"tag":571,"props":14716,"children":14717},{"style":590},[14718],{"type":23,"value":650},{"type":18,"tag":571,"props":14720,"children":14721},{"class":573,"line":1109},[14722],{"type":18,"tag":571,"props":14723,"children":14724},{"emptyLinePlaceholder":656},[14725],{"type":23,"value":659},{"type":18,"tag":571,"props":14727,"children":14728},{"class":573,"line":1151},[14729,14733,14738,14742,14747,14751],{"type":18,"tag":571,"props":14730,"children":14731},{"style":578},[14732],{"type":23,"value":1516},{"type":18,"tag":571,"props":14734,"children":14735},{"style":584},[14736],{"type":23,"value":14737}," useTodoState",{"type":18,"tag":571,"props":14739,"children":14740},{"style":578},[14741],{"type":23,"value":1526},{"type":18,"tag":571,"props":14743,"children":14744},{"style":590},[14745],{"type":23,"value":14746}," () ",{"type":18,"tag":571,"props":14748,"children":14749},{"style":578},[14750],{"type":23,"value":639},{"type":18,"tag":571,"props":14752,"children":14753},{"style":590},[14754],{"type":23,"value":2993},{"type":18,"tag":571,"props":14756,"children":14757},{"class":573,"line":1170},[14758,14762,14766,14770,14774],{"type":18,"tag":571,"props":14759,"children":14760},{"style":578},[14761],{"type":23,"value":7582},{"type":18,"tag":571,"props":14763,"children":14764},{"style":642},[14765],{"type":23,"value":9239},{"type":18,"tag":571,"props":14767,"children":14768},{"style":578},[14769],{"type":23,"value":1526},{"type":18,"tag":571,"props":14771,"children":14772},{"style":584},[14773],{"type":23,"value":8407},{"type":18,"tag":571,"props":14775,"children":14776},{"style":590},[14777],{"type":23,"value":12539},{"type":18,"tag":571,"props":14779,"children":14780},{"class":573,"line":1192},[14781,14785,14789,14793,14797],{"type":18,"tag":571,"props":14782,"children":14783},{"style":578},[14784],{"type":23,"value":7582},{"type":18,"tag":571,"props":14786,"children":14787},{"style":642},[14788],{"type":23,"value":9676},{"type":18,"tag":571,"props":14790,"children":14791},{"style":578},[14792],{"type":23,"value":1526},{"type":18,"tag":571,"props":14794,"children":14795},{"style":584},[14796],{"type":23,"value":8407},{"type":18,"tag":571,"props":14798,"children":14799},{"style":590},[14800],{"type":23,"value":1600},{"type":18,"tag":571,"props":14802,"children":14803},{"class":573,"line":1225},[14804,14808,14812,14816,14820],{"type":18,"tag":571,"props":14805,"children":14806},{"style":578},[14807],{"type":23,"value":7582},{"type":18,"tag":571,"props":14809,"children":14810},{"style":642},[14811],{"type":23,"value":9709},{"type":18,"tag":571,"props":14813,"children":14814},{"style":578},[14815],{"type":23,"value":1526},{"type":18,"tag":571,"props":14817,"children":14818},{"style":584},[14819],{"type":23,"value":8407},{"type":18,"tag":571,"props":14821,"children":14822},{"style":590},[14823],{"type":23,"value":1600},{"type":18,"tag":571,"props":14825,"children":14826},{"class":573,"line":1257},[14827],{"type":18,"tag":571,"props":14828,"children":14829},{"emptyLinePlaceholder":656},[14830],{"type":23,"value":659},{"type":18,"tag":571,"props":14832,"children":14833},{"class":573,"line":1284},[14834,14839,14843,14847,14851,14855,14859],{"type":18,"tag":571,"props":14835,"children":14836},{"style":578},[14837],{"type":23,"value":14838},"  function",{"type":18,"tag":571,"props":14840,"children":14841},{"style":584},[14842],{"type":23,"value":9750},{"type":18,"tag":571,"props":14844,"children":14845},{"style":590},[14846],{"type":23,"value":682},{"type":18,"tag":571,"props":14848,"children":14849},{"style":616},[14850],{"type":23,"value":9266},{"type":18,"tag":571,"props":14852,"children":14853},{"style":578},[14854],{"type":23,"value":624},{"type":18,"tag":571,"props":14856,"children":14857},{"style":642},[14858],{"type":23,"value":8128},{"type":18,"tag":571,"props":14860,"children":14861},{"style":590},[14862],{"type":23,"value":8246},{"type":18,"tag":571,"props":14864,"children":14865},{"class":573,"line":1293},[14866,14871,14875],{"type":18,"tag":571,"props":14867,"children":14868},{"style":590},[14869],{"type":23,"value":14870},"    priority.value ",{"type":18,"tag":571,"props":14872,"children":14873},{"style":578},[14874],{"type":23,"value":608},{"type":18,"tag":571,"props":14876,"children":14877},{"style":590},[14878],{"type":23,"value":9787},{"type":18,"tag":571,"props":14880,"children":14881},{"class":573,"line":1302},[14882],{"type":18,"tag":571,"props":14883,"children":14884},{"style":590},[14885],{"type":23,"value":3828},{"type":18,"tag":571,"props":14887,"children":14888},{"class":573,"line":1310},[14889],{"type":18,"tag":571,"props":14890,"children":14891},{"emptyLinePlaceholder":656},[14892],{"type":23,"value":659},{"type":18,"tag":571,"props":14894,"children":14895},{"class":573,"line":1318},[14896,14900,14904,14908,14912,14916,14920],{"type":18,"tag":571,"props":14897,"children":14898},{"style":578},[14899],{"type":23,"value":14838},{"type":18,"tag":571,"props":14901,"children":14902},{"style":584},[14903],{"type":23,"value":12958},{"type":18,"tag":571,"props":14905,"children":14906},{"style":590},[14907],{"type":23,"value":682},{"type":18,"tag":571,"props":14909,"children":14910},{"style":616},[14911],{"type":23,"value":9266},{"type":18,"tag":571,"props":14913,"children":14914},{"style":578},[14915],{"type":23,"value":624},{"type":18,"tag":571,"props":14917,"children":14918},{"style":642},[14919],{"type":23,"value":8128},{"type":18,"tag":571,"props":14921,"children":14922},{"style":590},[14923],{"type":23,"value":8246},{"type":18,"tag":571,"props":14925,"children":14926},{"class":573,"line":1332},[14927,14931,14935,14939],{"type":18,"tag":571,"props":14928,"children":14929},{"style":578},[14930],{"type":23,"value":7783},{"type":18,"tag":571,"props":14932,"children":14933},{"style":590},[14934],{"type":23,"value":9844},{"type":18,"tag":571,"props":14936,"children":14937},{"style":584},[14938],{"type":23,"value":9849},{"type":18,"tag":571,"props":14940,"children":14941},{"style":590},[14942],{"type":23,"value":9854},{"type":18,"tag":571,"props":14944,"children":14945},{"class":573,"line":3957},[14946,14951,14955],{"type":18,"tag":571,"props":14947,"children":14948},{"style":590},[14949],{"type":23,"value":14950},"      todos.value.",{"type":18,"tag":571,"props":14952,"children":14953},{"style":584},[14954],{"type":23,"value":1162},{"type":18,"tag":571,"props":14956,"children":14957},{"style":590},[14958],{"type":23,"value":9871},{"type":18,"tag":571,"props":14960,"children":14961},{"class":573,"line":3970},[14962,14967,14971,14975],{"type":18,"tag":571,"props":14963,"children":14964},{"style":590},[14965],{"type":23,"value":14966},"      newTodo.value ",{"type":18,"tag":571,"props":14968,"children":14969},{"style":578},[14970],{"type":23,"value":608},{"type":18,"tag":571,"props":14972,"children":14973},{"style":784},[14974],{"type":23,"value":9888},{"type":18,"tag":571,"props":14976,"children":14977},{"style":590},[14978],{"type":23,"value":650},{"type":18,"tag":571,"props":14980,"children":14981},{"class":573,"line":3994},[14982],{"type":18,"tag":571,"props":14983,"children":14984},{"style":590},[14985],{"type":23,"value":7841},{"type":18,"tag":571,"props":14987,"children":14988},{"class":573,"line":4002},[14989],{"type":18,"tag":571,"props":14990,"children":14991},{"style":590},[14992],{"type":23,"value":3828},{"type":18,"tag":571,"props":14994,"children":14995},{"class":573,"line":4669},[14996],{"type":18,"tag":571,"props":14997,"children":14998},{"emptyLinePlaceholder":656},[14999],{"type":23,"value":659},{"type":18,"tag":571,"props":15001,"children":15002},{"class":573,"line":4677},[15003,15007,15011,15015,15019,15023,15027],{"type":18,"tag":571,"props":15004,"children":15005},{"style":578},[15006],{"type":23,"value":14838},{"type":18,"tag":571,"props":15008,"children":15009},{"style":584},[15010],{"type":23,"value":13064},{"type":18,"tag":571,"props":15012,"children":15013},{"style":590},[15014],{"type":23,"value":682},{"type":18,"tag":571,"props":15016,"children":15017},{"style":616},[15018],{"type":23,"value":9266},{"type":18,"tag":571,"props":15020,"children":15021},{"style":578},[15022],{"type":23,"value":624},{"type":18,"tag":571,"props":15024,"children":15025},{"style":642},[15026],{"type":23,"value":8128},{"type":18,"tag":571,"props":15028,"children":15029},{"style":590},[15030],{"type":23,"value":8246},{"type":18,"tag":571,"props":15032,"children":15033},{"class":573,"line":4685},[15034,15038,15042,15046,15050,15054],{"type":18,"tag":571,"props":15035,"children":15036},{"style":578},[15037],{"type":23,"value":7683},{"type":18,"tag":571,"props":15039,"children":15040},{"style":642},[15041],{"type":23,"value":9958},{"type":18,"tag":571,"props":15043,"children":15044},{"style":578},[15045],{"type":23,"value":1526},{"type":18,"tag":571,"props":15047,"children":15048},{"style":590},[15049],{"type":23,"value":9967},{"type":18,"tag":571,"props":15051,"children":15052},{"style":584},[15053],{"type":23,"value":1218},{"type":18,"tag":571,"props":15055,"children":15056},{"style":590},[15057],{"type":23,"value":9871},{"type":18,"tag":571,"props":15059,"children":15060},{"class":573,"line":4701},[15061,15065,15069,15073,15077,15081],{"type":18,"tag":571,"props":15062,"children":15063},{"style":578},[15064],{"type":23,"value":7783},{"type":18,"tag":571,"props":15066,"children":15067},{"style":590},[15068],{"type":23,"value":9987},{"type":18,"tag":571,"props":15070,"children":15071},{"style":578},[15072],{"type":23,"value":1007},{"type":18,"tag":571,"props":15074,"children":15075},{"style":578},[15076],{"type":23,"value":9996},{"type":18,"tag":571,"props":15078,"children":15079},{"style":642},[15080],{"type":23,"value":270},{"type":18,"tag":571,"props":15082,"children":15083},{"style":590},[15084],{"type":23,"value":8246},{"type":18,"tag":571,"props":15086,"children":15087},{"class":573,"line":4713},[15088,15092,15096,15100,15104],{"type":18,"tag":571,"props":15089,"children":15090},{"style":590},[15091],{"type":23,"value":14950},{"type":18,"tag":571,"props":15093,"children":15094},{"style":584},[15095],{"type":23,"value":1268},{"type":18,"tag":571,"props":15097,"children":15098},{"style":590},[15099],{"type":23,"value":10020},{"type":18,"tag":571,"props":15101,"children":15102},{"style":642},[15103],{"type":23,"value":270},{"type":18,"tag":571,"props":15105,"children":15106},{"style":590},[15107],{"type":23,"value":792},{"type":18,"tag":571,"props":15109,"children":15110},{"class":573,"line":4737},[15111],{"type":18,"tag":571,"props":15112,"children":15113},{"style":590},[15114],{"type":23,"value":7841},{"type":18,"tag":571,"props":15116,"children":15117},{"class":573,"line":4745},[15118],{"type":18,"tag":571,"props":15119,"children":15120},{"style":590},[15121],{"type":23,"value":3828},{"type":18,"tag":571,"props":15123,"children":15124},{"class":573,"line":4757},[15125],{"type":18,"tag":571,"props":15126,"children":15127},{"emptyLinePlaceholder":656},[15128],{"type":23,"value":659},{"type":18,"tag":571,"props":15130,"children":15131},{"class":573,"line":4782},[15132,15137,15141,15145],{"type":18,"tag":571,"props":15133,"children":15134},{"style":584},[15135],{"type":23,"value":15136},"  onMounted",{"type":18,"tag":571,"props":15138,"children":15139},{"style":590},[15140],{"type":23,"value":10804},{"type":18,"tag":571,"props":15142,"children":15143},{"style":578},[15144],{"type":23,"value":639},{"type":18,"tag":571,"props":15146,"children":15147},{"style":590},[15148],{"type":23,"value":2993},{"type":18,"tag":571,"props":15150,"children":15151},{"class":573,"line":4790},[15152,15157,15161,15165,15169,15173,15177,15181,15185],{"type":18,"tag":571,"props":15153,"children":15154},{"style":590},[15155],{"type":23,"value":15156},"    todos.value ",{"type":18,"tag":571,"props":15158,"children":15159},{"style":578},[15160],{"type":23,"value":608},{"type":18,"tag":571,"props":15162,"children":15163},{"style":590},[15164],{"type":23,"value":11439},{"type":18,"tag":571,"props":15166,"children":15167},{"style":784},[15168],{"type":23,"value":11444},{"type":18,"tag":571,"props":15170,"children":15171},{"style":590},[15172],{"type":23,"value":3025},{"type":18,"tag":571,"props":15174,"children":15175},{"style":784},[15176],{"type":23,"value":11453},{"type":18,"tag":571,"props":15178,"children":15179},{"style":590},[15180],{"type":23,"value":3025},{"type":18,"tag":571,"props":15182,"children":15183},{"style":784},[15184],{"type":23,"value":11462},{"type":18,"tag":571,"props":15186,"children":15187},{"style":590},[15188],{"type":23,"value":11467},{"type":18,"tag":571,"props":15190,"children":15191},{"class":573,"line":4802},[15192,15196,15200,15204,15208],{"type":18,"tag":571,"props":15193,"children":15194},{"style":590},[15195],{"type":23,"value":14870},{"type":18,"tag":571,"props":15197,"children":15198},{"style":578},[15199],{"type":23,"value":608},{"type":18,"tag":571,"props":15201,"children":15202},{"style":590},[15203],{"type":23,"value":11484},{"type":18,"tag":571,"props":15205,"children":15206},{"style":642},[15207],{"type":23,"value":4485},{"type":18,"tag":571,"props":15209,"children":15210},{"style":590},[15211],{"type":23,"value":11467},{"type":18,"tag":571,"props":15213,"children":15214},{"class":573,"line":4826},[15215],{"type":18,"tag":571,"props":15216,"children":15217},{"style":590},[15218],{"type":23,"value":8212},{"type":18,"tag":571,"props":15220,"children":15221},{"class":573,"line":4834},[15222],{"type":18,"tag":571,"props":15223,"children":15224},{"emptyLinePlaceholder":656},[15225],{"type":23,"value":659},{"type":18,"tag":571,"props":15227,"children":15228},{"class":573,"line":4846},[15229,15233],{"type":18,"tag":571,"props":15230,"children":15231},{"style":578},[15232],{"type":23,"value":11653},{"type":18,"tag":571,"props":15234,"children":15235},{"style":590},[15236],{"type":23,"value":2993},{"type":18,"tag":571,"props":15238,"children":15239},{"class":573,"line":4870},[15240],{"type":18,"tag":571,"props":15241,"children":15242},{"style":590},[15243],{"type":23,"value":15244},"    todos,\n",{"type":18,"tag":571,"props":15246,"children":15247},{"class":573,"line":4878},[15248],{"type":18,"tag":571,"props":15249,"children":15250},{"style":590},[15251],{"type":23,"value":15252},"    newTodo,\n",{"type":18,"tag":571,"props":15254,"children":15255},{"class":573,"line":4890},[15256],{"type":18,"tag":571,"props":15257,"children":15258},{"style":590},[15259],{"type":23,"value":15260},"    priority,\n",{"type":18,"tag":571,"props":15262,"children":15263},{"class":573,"line":4914},[15264],{"type":18,"tag":571,"props":15265,"children":15266},{"style":590},[15267],{"type":23,"value":15268},"    addTodo,\n",{"type":18,"tag":571,"props":15270,"children":15271},{"class":573,"line":4922},[15272],{"type":18,"tag":571,"props":15273,"children":15274},{"style":590},[15275],{"type":23,"value":15276},"    removeTodo,\n",{"type":18,"tag":571,"props":15278,"children":15279},{"class":573,"line":11370},[15280],{"type":18,"tag":571,"props":15281,"children":15282},{"style":590},[15283],{"type":23,"value":15284},"    makePriority,\n",{"type":18,"tag":571,"props":15286,"children":15287},{"class":573,"line":11378},[15288],{"type":18,"tag":571,"props":15289,"children":15290},{"style":590},[15291],{"type":23,"value":15292},"  };\n",{"type":18,"tag":571,"props":15294,"children":15295},{"class":573,"line":11386},[15296],{"type":18,"tag":571,"props":15297,"children":15298},{"style":590},[15299],{"type":23,"value":8339},{"type":18,"tag":571,"props":15301,"children":15302},{"class":573,"line":11394},[15303],{"type":18,"tag":571,"props":15304,"children":15305},{"emptyLinePlaceholder":656},[15306],{"type":23,"value":659},{"type":18,"tag":571,"props":15308,"children":15309},{"class":573,"line":11403},[15310,15314,15319,15323,15327,15331],{"type":18,"tag":571,"props":15311,"children":15312},{"style":578},[15313],{"type":23,"value":1516},{"type":18,"tag":571,"props":15315,"children":15316},{"style":584},[15317],{"type":23,"value":15318}," useSubtaskState",{"type":18,"tag":571,"props":15320,"children":15321},{"style":578},[15322],{"type":23,"value":1526},{"type":18,"tag":571,"props":15324,"children":15325},{"style":590},[15326],{"type":23,"value":14746},{"type":18,"tag":571,"props":15328,"children":15329},{"style":578},[15330],{"type":23,"value":639},{"type":18,"tag":571,"props":15332,"children":15333},{"style":590},[15334],{"type":23,"value":2993},{"type":18,"tag":571,"props":15336,"children":15337},{"class":573,"line":11424},[15338,15342,15346,15350,15354],{"type":18,"tag":571,"props":15339,"children":15340},{"style":578},[15341],{"type":23,"value":7582},{"type":18,"tag":571,"props":15343,"children":15344},{"style":642},[15345],{"type":23,"value":12071},{"type":18,"tag":571,"props":15347,"children":15348},{"style":578},[15349],{"type":23,"value":1526},{"type":18,"tag":571,"props":15351,"children":15352},{"style":584},[15353],{"type":23,"value":8407},{"type":18,"tag":571,"props":15355,"children":15356},{"style":590},[15357],{"type":23,"value":12539},{"type":18,"tag":571,"props":15359,"children":15360},{"class":573,"line":11470},[15361,15365,15369,15373,15377,15381,15385],{"type":18,"tag":571,"props":15362,"children":15363},{"style":578},[15364],{"type":23,"value":7582},{"type":18,"tag":571,"props":15366,"children":15367},{"style":642},[15368],{"type":23,"value":12597},{"type":18,"tag":571,"props":15370,"children":15371},{"style":578},[15372],{"type":23,"value":1526},{"type":18,"tag":571,"props":15374,"children":15375},{"style":584},[15376],{"type":23,"value":8407},{"type":18,"tag":571,"props":15378,"children":15379},{"style":590},[15380],{"type":23,"value":593},{"type":18,"tag":571,"props":15382,"children":15383},{"style":642},[15384],{"type":23,"value":8416},{"type":18,"tag":571,"props":15386,"children":15387},{"style":590},[15388],{"type":23,"value":12618},{"type":18,"tag":571,"props":15390,"children":15391},{"class":573,"line":11495},[15392],{"type":18,"tag":571,"props":15393,"children":15394},{"emptyLinePlaceholder":656},[15395],{"type":23,"value":659},{"type":18,"tag":571,"props":15397,"children":15398},{"class":573,"line":11508},[15399,15403,15407,15411,15415,15419,15423],{"type":18,"tag":571,"props":15400,"children":15401},{"style":578},[15402],{"type":23,"value":14838},{"type":18,"tag":571,"props":15404,"children":15405},{"style":584},[15406],{"type":23,"value":13187},{"type":18,"tag":571,"props":15408,"children":15409},{"style":590},[15410],{"type":23,"value":682},{"type":18,"tag":571,"props":15412,"children":15413},{"style":616},[15414],{"type":23,"value":9266},{"type":18,"tag":571,"props":15416,"children":15417},{"style":578},[15418],{"type":23,"value":624},{"type":18,"tag":571,"props":15420,"children":15421},{"style":642},[15422],{"type":23,"value":8128},{"type":18,"tag":571,"props":15424,"children":15425},{"style":590},[15426],{"type":23,"value":8246},{"type":18,"tag":571,"props":15428,"children":15429},{"class":573,"line":11516},[15430,15434,15438,15442],{"type":18,"tag":571,"props":15431,"children":15432},{"style":578},[15433],{"type":23,"value":7783},{"type":18,"tag":571,"props":15435,"children":15436},{"style":590},[15437],{"type":23,"value":9844},{"type":18,"tag":571,"props":15439,"children":15440},{"style":584},[15441],{"type":23,"value":9849},{"type":18,"tag":571,"props":15443,"children":15444},{"style":590},[15445],{"type":23,"value":9854},{"type":18,"tag":571,"props":15447,"children":15448},{"class":573,"line":11524},[15449,15454,15458],{"type":18,"tag":571,"props":15450,"children":15451},{"style":590},[15452],{"type":23,"value":15453},"      subtasks.value.",{"type":18,"tag":571,"props":15455,"children":15456},{"style":584},[15457],{"type":23,"value":1162},{"type":18,"tag":571,"props":15459,"children":15460},{"style":590},[15461],{"type":23,"value":9871},{"type":18,"tag":571,"props":15463,"children":15464},{"class":573,"line":11533},[15465,15469,15473,15477],{"type":18,"tag":571,"props":15466,"children":15467},{"style":590},[15468],{"type":23,"value":14966},{"type":18,"tag":571,"props":15470,"children":15471},{"style":578},[15472],{"type":23,"value":608},{"type":18,"tag":571,"props":15474,"children":15475},{"style":784},[15476],{"type":23,"value":9888},{"type":18,"tag":571,"props":15478,"children":15479},{"style":590},[15480],{"type":23,"value":650},{"type":18,"tag":571,"props":15482,"children":15483},{"class":573,"line":11567},[15484],{"type":18,"tag":571,"props":15485,"children":15486},{"style":590},[15487],{"type":23,"value":7841},{"type":18,"tag":571,"props":15489,"children":15490},{"class":573,"line":11613},[15491],{"type":18,"tag":571,"props":15492,"children":15493},{"style":590},[15494],{"type":23,"value":3828},{"type":18,"tag":571,"props":15496,"children":15497},{"class":573,"line":11647},[15498],{"type":18,"tag":571,"props":15499,"children":15500},{"emptyLinePlaceholder":656},[15501],{"type":23,"value":659},{"type":18,"tag":571,"props":15503,"children":15504},{"class":573,"line":11724},[15505,15509,15513,15517,15521,15525,15529],{"type":18,"tag":571,"props":15506,"children":15507},{"style":578},[15508],{"type":23,"value":14838},{"type":18,"tag":571,"props":15510,"children":15511},{"style":584},[15512],{"type":23,"value":13294},{"type":18,"tag":571,"props":15514,"children":15515},{"style":590},[15516],{"type":23,"value":682},{"type":18,"tag":571,"props":15518,"children":15519},{"style":616},[15520],{"type":23,"value":9266},{"type":18,"tag":571,"props":15522,"children":15523},{"style":578},[15524],{"type":23,"value":624},{"type":18,"tag":571,"props":15526,"children":15527},{"style":642},[15528],{"type":23,"value":8128},{"type":18,"tag":571,"props":15530,"children":15531},{"style":590},[15532],{"type":23,"value":8246},{"type":18,"tag":571,"props":15534,"children":15535},{"class":573,"line":11732},[15536,15540,15544,15548,15552,15556],{"type":18,"tag":571,"props":15537,"children":15538},{"style":578},[15539],{"type":23,"value":7683},{"type":18,"tag":571,"props":15541,"children":15542},{"style":642},[15543],{"type":23,"value":9958},{"type":18,"tag":571,"props":15545,"children":15546},{"style":578},[15547],{"type":23,"value":1526},{"type":18,"tag":571,"props":15549,"children":15550},{"style":590},[15551],{"type":23,"value":13334},{"type":18,"tag":571,"props":15553,"children":15554},{"style":584},[15555],{"type":23,"value":1218},{"type":18,"tag":571,"props":15557,"children":15558},{"style":590},[15559],{"type":23,"value":9871},{"type":18,"tag":571,"props":15561,"children":15562},{"class":573,"line":13416},[15563,15567,15571,15575,15579,15583],{"type":18,"tag":571,"props":15564,"children":15565},{"style":578},[15566],{"type":23,"value":7783},{"type":18,"tag":571,"props":15568,"children":15569},{"style":590},[15570],{"type":23,"value":9987},{"type":18,"tag":571,"props":15572,"children":15573},{"style":578},[15574],{"type":23,"value":1007},{"type":18,"tag":571,"props":15576,"children":15577},{"style":578},[15578],{"type":23,"value":9996},{"type":18,"tag":571,"props":15580,"children":15581},{"style":642},[15582],{"type":23,"value":270},{"type":18,"tag":571,"props":15584,"children":15585},{"style":590},[15586],{"type":23,"value":8246},{"type":18,"tag":571,"props":15588,"children":15589},{"class":573,"line":13425},[15590,15594,15598,15602,15606],{"type":18,"tag":571,"props":15591,"children":15592},{"style":590},[15593],{"type":23,"value":15453},{"type":18,"tag":571,"props":15595,"children":15596},{"style":584},[15597],{"type":23,"value":1268},{"type":18,"tag":571,"props":15599,"children":15600},{"style":590},[15601],{"type":23,"value":10020},{"type":18,"tag":571,"props":15603,"children":15604},{"style":642},[15605],{"type":23,"value":270},{"type":18,"tag":571,"props":15607,"children":15608},{"style":590},[15609],{"type":23,"value":792},{"type":18,"tag":571,"props":15611,"children":15612},{"class":573,"line":13461},[15613],{"type":18,"tag":571,"props":15614,"children":15615},{"style":590},[15616],{"type":23,"value":7841},{"type":18,"tag":571,"props":15618,"children":15619},{"class":573,"line":13481},[15620],{"type":18,"tag":571,"props":15621,"children":15622},{"style":590},[15623],{"type":23,"value":3828},{"type":18,"tag":571,"props":15625,"children":15626},{"class":573,"line":13493},[15627],{"type":18,"tag":571,"props":15628,"children":15629},{"emptyLinePlaceholder":656},[15630],{"type":23,"value":659},{"type":18,"tag":571,"props":15632,"children":15633},{"class":573,"line":13501},[15634,15638],{"type":18,"tag":571,"props":15635,"children":15636},{"style":578},[15637],{"type":23,"value":11653},{"type":18,"tag":571,"props":15639,"children":15640},{"style":590},[15641],{"type":23,"value":2993},{"type":18,"tag":571,"props":15643,"children":15644},{"class":573,"line":13509},[15645],{"type":18,"tag":571,"props":15646,"children":15647},{"style":590},[15648],{"type":23,"value":15649},"    subtasks,\n",{"type":18,"tag":571,"props":15651,"children":15652},{"class":573,"line":13545},[15653],{"type":18,"tag":571,"props":15654,"children":15655},{"style":590},[15656],{"type":23,"value":15657},"    newSubtasks,\n",{"type":18,"tag":571,"props":15659,"children":15660},{"class":573,"line":13585},[15661],{"type":18,"tag":571,"props":15662,"children":15663},{"style":590},[15664],{"type":23,"value":15665},"    addSubtask,\n",{"type":18,"tag":571,"props":15667,"children":15668},{"class":573,"line":13605},[15669],{"type":18,"tag":571,"props":15670,"children":15671},{"style":590},[15672],{"type":23,"value":15673},"    removeSubtask,\n",{"type":18,"tag":571,"props":15675,"children":15676},{"class":573,"line":13625},[15677],{"type":18,"tag":571,"props":15678,"children":15679},{"style":590},[15680],{"type":23,"value":15292},{"type":18,"tag":571,"props":15682,"children":15683},{"class":573,"line":13633},[15684],{"type":18,"tag":571,"props":15685,"children":15686},{"style":590},[15687],{"type":23,"value":8339},{"type":18,"tag":571,"props":15689,"children":15690},{"class":573,"line":13641},[15691],{"type":18,"tag":571,"props":15692,"children":15693},{"emptyLinePlaceholder":656},[15694],{"type":23,"value":659},{"type":18,"tag":571,"props":15696,"children":15697},{"class":573,"line":13649},[15698,15702,15707,15711,15715,15720,15724,15729,15733,15737,15742,15746],{"type":18,"tag":571,"props":15699,"children":15700},{"style":578},[15701],{"type":23,"value":1516},{"type":18,"tag":571,"props":15703,"children":15704},{"style":584},[15705],{"type":23,"value":15706}," usePriorityTimer",{"type":18,"tag":571,"props":15708,"children":15709},{"style":578},[15710],{"type":23,"value":1526},{"type":18,"tag":571,"props":15712,"children":15713},{"style":590},[15714],{"type":23,"value":7549},{"type":18,"tag":571,"props":15716,"children":15717},{"style":616},[15718],{"type":23,"value":15719},"priority",{"type":18,"tag":571,"props":15721,"children":15722},{"style":578},[15723],{"type":23,"value":624},{"type":18,"tag":571,"props":15725,"children":15726},{"style":584},[15727],{"type":23,"value":15728}," Ref",{"type":18,"tag":571,"props":15730,"children":15731},{"style":590},[15732],{"type":23,"value":593},{"type":18,"tag":571,"props":15734,"children":15735},{"style":642},[15736],{"type":23,"value":8416},{"type":18,"tag":571,"props":15738,"children":15739},{"style":590},[15740],{"type":23,"value":15741},">) ",{"type":18,"tag":571,"props":15743,"children":15744},{"style":578},[15745],{"type":23,"value":639},{"type":18,"tag":571,"props":15747,"children":15748},{"style":590},[15749],{"type":23,"value":2993},{"type":18,"tag":571,"props":15751,"children":15752},{"class":573,"line":13658},[15753,15757,15761,15765,15769,15773,15777],{"type":18,"tag":571,"props":15754,"children":15755},{"style":578},[15756],{"type":23,"value":7582},{"type":18,"tag":571,"props":15758,"children":15759},{"style":642},[15760],{"type":23,"value":10638},{"type":18,"tag":571,"props":15762,"children":15763},{"style":578},[15764],{"type":23,"value":1526},{"type":18,"tag":571,"props":15766,"children":15767},{"style":584},[15768],{"type":23,"value":8407},{"type":18,"tag":571,"props":15770,"children":15771},{"style":590},[15772],{"type":23,"value":682},{"type":18,"tag":571,"props":15774,"children":15775},{"style":642},[15776],{"type":23,"value":4485},{"type":18,"tag":571,"props":15778,"children":15779},{"style":590},[15780],{"type":23,"value":792},{"type":18,"tag":571,"props":15782,"children":15783},{"class":573,"line":13690},[15784,15789,15793,15797,15801,15805,15809,15813,15817],{"type":18,"tag":571,"props":15785,"children":15786},{"style":578},[15787],{"type":23,"value":15788},"  let",{"type":18,"tag":571,"props":15790,"children":15791},{"style":590},[15792],{"type":23,"value":10671},{"type":18,"tag":571,"props":15794,"children":15795},{"style":578},[15796],{"type":23,"value":624},{"type":18,"tag":571,"props":15798,"children":15799},{"style":642},[15800],{"type":23,"value":10680},{"type":18,"tag":571,"props":15802,"children":15803},{"style":578},[15804],{"type":23,"value":8421},{"type":18,"tag":571,"props":15806,"children":15807},{"style":642},[15808],{"type":23,"value":8426},{"type":18,"tag":571,"props":15810,"children":15811},{"style":578},[15812],{"type":23,"value":1526},{"type":18,"tag":571,"props":15814,"children":15815},{"style":642},[15816],{"type":23,"value":8426},{"type":18,"tag":571,"props":15818,"children":15819},{"style":590},[15820],{"type":23,"value":650},{"type":18,"tag":571,"props":15822,"children":15823},{"class":573,"line":13730},[15824,15828,15832,15836,15840,15844,15848],{"type":18,"tag":571,"props":15825,"children":15826},{"style":578},[15827],{"type":23,"value":7582},{"type":18,"tag":571,"props":15829,"children":15830},{"style":642},[15831],{"type":23,"value":12723},{"type":18,"tag":571,"props":15833,"children":15834},{"style":578},[15835],{"type":23,"value":1526},{"type":18,"tag":571,"props":15837,"children":15838},{"style":642},[15839],{"type":23,"value":11606},{"type":18,"tag":571,"props":15841,"children":15842},{"style":578},[15843],{"type":23,"value":12736},{"type":18,"tag":571,"props":15845,"children":15846},{"style":642},[15847],{"type":23,"value":3154},{"type":18,"tag":571,"props":15849,"children":15850},{"style":590},[15851],{"type":23,"value":650},{"type":18,"tag":571,"props":15853,"children":15854},{"class":573,"line":13762},[15855],{"type":18,"tag":571,"props":15856,"children":15857},{"emptyLinePlaceholder":656},[15858],{"type":23,"value":659},{"type":18,"tag":571,"props":15860,"children":15861},{"class":573,"line":13830},[15862,15866,15870],{"type":18,"tag":571,"props":15863,"children":15864},{"style":578},[15865],{"type":23,"value":14838},{"type":18,"tag":571,"props":15867,"children":15868},{"style":584},[15869],{"type":23,"value":10719},{"type":18,"tag":571,"props":15871,"children":15872},{"style":590},[15873],{"type":23,"value":10724},{"type":18,"tag":571,"props":15875,"children":15876},{"class":573,"line":13838},[15877,15881],{"type":18,"tag":571,"props":15878,"children":15879},{"style":578},[15880],{"type":23,"value":7783},{"type":18,"tag":571,"props":15882,"children":15883},{"style":590},[15884],{"type":23,"value":10736},{"type":18,"tag":571,"props":15886,"children":15887},{"class":573,"line":13846},[15888,15893],{"type":18,"tag":571,"props":15889,"children":15890},{"style":584},[15891],{"type":23,"value":15892},"      clearInterval",{"type":18,"tag":571,"props":15894,"children":15895},{"style":590},[15896],{"type":23,"value":10749},{"type":18,"tag":571,"props":15898,"children":15899},{"class":573,"line":13854},[15900],{"type":18,"tag":571,"props":15901,"children":15902},{"style":590},[15903],{"type":23,"value":7841},{"type":18,"tag":571,"props":15905,"children":15906},{"class":573,"line":13874},[15907,15911,15915,15919],{"type":18,"tag":571,"props":15908,"children":15909},{"style":590},[15910],{"type":23,"value":11334},{"type":18,"tag":571,"props":15912,"children":15913},{"style":578},[15914],{"type":23,"value":608},{"type":18,"tag":571,"props":15916,"children":15917},{"style":642},[15918],{"type":23,"value":3176},{"type":18,"tag":571,"props":15920,"children":15921},{"style":590},[15922],{"type":23,"value":650},{"type":18,"tag":571,"props":15924,"children":15925},{"class":573,"line":13914},[15926,15931,15935,15939,15943,15947],{"type":18,"tag":571,"props":15927,"children":15928},{"style":590},[15929],{"type":23,"value":15930},"    timer ",{"type":18,"tag":571,"props":15932,"children":15933},{"style":578},[15934],{"type":23,"value":608},{"type":18,"tag":571,"props":15936,"children":15937},{"style":584},[15938],{"type":23,"value":10799},{"type":18,"tag":571,"props":15940,"children":15941},{"style":590},[15942],{"type":23,"value":10804},{"type":18,"tag":571,"props":15944,"children":15945},{"style":578},[15946],{"type":23,"value":639},{"type":18,"tag":571,"props":15948,"children":15949},{"style":590},[15950],{"type":23,"value":2993},{"type":18,"tag":571,"props":15952,"children":15953},{"class":573,"line":13938},[15954,15959,15963],{"type":18,"tag":571,"props":15955,"children":15956},{"style":590},[15957],{"type":23,"value":15958},"      timeElapsed.value",{"type":18,"tag":571,"props":15960,"children":15961},{"style":578},[15962],{"type":23,"value":10825},{"type":18,"tag":571,"props":15964,"children":15965},{"style":590},[15966],{"type":23,"value":650},{"type":18,"tag":571,"props":15968,"children":15969},{"class":573,"line":13950},[15970,15975,15979],{"type":18,"tag":571,"props":15971,"children":15972},{"style":590},[15973],{"type":23,"value":15974},"    }, ",{"type":18,"tag":571,"props":15976,"children":15977},{"style":642},[15978],{"type":23,"value":5740},{"type":18,"tag":571,"props":15980,"children":15981},{"style":590},[15982],{"type":23,"value":792},{"type":18,"tag":571,"props":15984,"children":15985},{"class":573,"line":13958},[15986],{"type":18,"tag":571,"props":15987,"children":15988},{"style":590},[15989],{"type":23,"value":3828},{"type":18,"tag":571,"props":15991,"children":15993},{"class":573,"line":15992},104,[15994],{"type":18,"tag":571,"props":15995,"children":15996},{"emptyLinePlaceholder":656},[15997],{"type":23,"value":659},{"type":18,"tag":571,"props":15999,"children":16001},{"class":573,"line":16000},105,[16002,16007,16011,16015,16019,16023,16027,16031],{"type":18,"tag":571,"props":16003,"children":16004},{"style":584},[16005],{"type":23,"value":16006},"  watch",{"type":18,"tag":571,"props":16008,"children":16009},{"style":590},[16010],{"type":23,"value":11176},{"type":18,"tag":571,"props":16012,"children":16013},{"style":616},[16014],{"type":23,"value":619},{"type":18,"tag":571,"props":16016,"children":16017},{"style":590},[16018],{"type":23,"value":3025},{"type":18,"tag":571,"props":16020,"children":16021},{"style":616},[16022],{"type":23,"value":11189},{"type":18,"tag":571,"props":16024,"children":16025},{"style":590},[16026],{"type":23,"value":1544},{"type":18,"tag":571,"props":16028,"children":16029},{"style":578},[16030],{"type":23,"value":639},{"type":18,"tag":571,"props":16032,"children":16033},{"style":590},[16034],{"type":23,"value":2993},{"type":18,"tag":571,"props":16036,"children":16038},{"class":573,"line":16037},106,[16039,16043,16047,16051],{"type":18,"tag":571,"props":16040,"children":16041},{"style":578},[16042],{"type":23,"value":7783},{"type":18,"tag":571,"props":16044,"children":16045},{"style":590},[16046],{"type":23,"value":11213},{"type":18,"tag":571,"props":16048,"children":16049},{"style":578},[16050],{"type":23,"value":1007},{"type":18,"tag":571,"props":16052,"children":16053},{"style":590},[16054],{"type":23,"value":11222},{"type":18,"tag":571,"props":16056,"children":16058},{"class":573,"line":16057},107,[16059,16064],{"type":18,"tag":571,"props":16060,"children":16061},{"style":584},[16062],{"type":23,"value":16063},"      startTimer",{"type":18,"tag":571,"props":16065,"children":16066},{"style":590},[16067],{"type":23,"value":1600},{"type":18,"tag":571,"props":16069,"children":16071},{"class":573,"line":16070},108,[16072],{"type":18,"tag":571,"props":16073,"children":16074},{"style":590},[16075],{"type":23,"value":7841},{"type":18,"tag":571,"props":16077,"children":16079},{"class":573,"line":16078},109,[16080],{"type":18,"tag":571,"props":16081,"children":16082},{"style":590},[16083],{"type":23,"value":8212},{"type":18,"tag":571,"props":16085,"children":16087},{"class":573,"line":16086},110,[16088,16092,16096,16100,16104,16108,16112,16116],{"type":18,"tag":571,"props":16089,"children":16090},{"style":584},[16091],{"type":23,"value":16006},{"type":18,"tag":571,"props":16093,"children":16094},{"style":590},[16095],{"type":23,"value":11260},{"type":18,"tag":571,"props":16097,"children":16098},{"style":616},[16099],{"type":23,"value":619},{"type":18,"tag":571,"props":16101,"children":16102},{"style":590},[16103],{"type":23,"value":3025},{"type":18,"tag":571,"props":16105,"children":16106},{"style":616},[16107],{"type":23,"value":11189},{"type":18,"tag":571,"props":16109,"children":16110},{"style":590},[16111],{"type":23,"value":1544},{"type":18,"tag":571,"props":16113,"children":16114},{"style":578},[16115],{"type":23,"value":639},{"type":18,"tag":571,"props":16117,"children":16118},{"style":590},[16119],{"type":23,"value":2993},{"type":18,"tag":571,"props":16121,"children":16123},{"class":573,"line":16122},111,[16124,16128,16132,16136,16140,16144,16148,16152,16156],{"type":18,"tag":571,"props":16125,"children":16126},{"style":578},[16127],{"type":23,"value":7783},{"type":18,"tag":571,"props":16129,"children":16130},{"style":590},[16131],{"type":23,"value":11213},{"type":18,"tag":571,"props":16133,"children":16134},{"style":578},[16135],{"type":23,"value":1007},{"type":18,"tag":571,"props":16137,"children":16138},{"style":590},[16139],{"type":23,"value":11304},{"type":18,"tag":571,"props":16141,"children":16142},{"style":578},[16143],{"type":23,"value":11309},{"type":18,"tag":571,"props":16145,"children":16146},{"style":590},[16147],{"type":23,"value":11314},{"type":18,"tag":571,"props":16149,"children":16150},{"style":578},[16151],{"type":23,"value":1241},{"type":18,"tag":571,"props":16153,"children":16154},{"style":642},[16155],{"type":23,"value":12723},{"type":18,"tag":571,"props":16157,"children":16158},{"style":590},[16159],{"type":23,"value":8246},{"type":18,"tag":571,"props":16161,"children":16163},{"class":573,"line":16162},112,[16164,16169,16173,16177],{"type":18,"tag":571,"props":16165,"children":16166},{"style":590},[16167],{"type":23,"value":16168},"      timeElapsed.value ",{"type":18,"tag":571,"props":16170,"children":16171},{"style":578},[16172],{"type":23,"value":608},{"type":18,"tag":571,"props":16174,"children":16175},{"style":642},[16176],{"type":23,"value":3176},{"type":18,"tag":571,"props":16178,"children":16179},{"style":590},[16180],{"type":23,"value":650},{"type":18,"tag":571,"props":16182,"children":16184},{"class":573,"line":16183},113,[16185,16190,16194,16198],{"type":18,"tag":571,"props":16186,"children":16187},{"style":584},[16188],{"type":23,"value":16189},"      alert",{"type":18,"tag":571,"props":16191,"children":16192},{"style":590},[16193],{"type":23,"value":682},{"type":18,"tag":571,"props":16195,"children":16196},{"style":784},[16197],{"type":23,"value":11363},{"type":18,"tag":571,"props":16199,"children":16200},{"style":590},[16201],{"type":23,"value":792},{"type":18,"tag":571,"props":16203,"children":16205},{"class":573,"line":16204},114,[16206],{"type":18,"tag":571,"props":16207,"children":16208},{"style":590},[16209],{"type":23,"value":7841},{"type":18,"tag":571,"props":16211,"children":16213},{"class":573,"line":16212},115,[16214],{"type":18,"tag":571,"props":16215,"children":16216},{"style":590},[16217],{"type":23,"value":8212},{"type":18,"tag":571,"props":16219,"children":16221},{"class":573,"line":16220},116,[16222],{"type":18,"tag":571,"props":16223,"children":16224},{"emptyLinePlaceholder":656},[16225],{"type":23,"value":659},{"type":18,"tag":571,"props":16227,"children":16229},{"class":573,"line":16228},117,[16230,16234,16238,16242,16246,16250,16254],{"type":18,"tag":571,"props":16231,"children":16232},{"style":578},[16233],{"type":23,"value":7582},{"type":18,"tag":571,"props":16235,"children":16236},{"style":642},[16237],{"type":23,"value":11543},{"type":18,"tag":571,"props":16239,"children":16240},{"style":578},[16241],{"type":23,"value":1526},{"type":18,"tag":571,"props":16243,"children":16244},{"style":584},[16245],{"type":23,"value":11552},{"type":18,"tag":571,"props":16247,"children":16248},{"style":590},[16249],{"type":23,"value":10804},{"type":18,"tag":571,"props":16251,"children":16252},{"style":578},[16253],{"type":23,"value":639},{"type":18,"tag":571,"props":16255,"children":16256},{"style":590},[16257],{"type":23,"value":2993},{"type":18,"tag":571,"props":16259,"children":16261},{"class":573,"line":16260},118,[16262,16266,16270,16274,16278,16282,16286,16290,16294],{"type":18,"tag":571,"props":16263,"children":16264},{"style":578},[16265],{"type":23,"value":7683},{"type":18,"tag":571,"props":16267,"children":16268},{"style":642},[16269],{"type":23,"value":11577},{"type":18,"tag":571,"props":16271,"children":16272},{"style":578},[16273],{"type":23,"value":1526},{"type":18,"tag":571,"props":16275,"children":16276},{"style":590},[16277],{"type":23,"value":11586},{"type":18,"tag":571,"props":16279,"children":16280},{"style":584},[16281],{"type":23,"value":11591},{"type":18,"tag":571,"props":16283,"children":16284},{"style":590},[16285],{"type":23,"value":11596},{"type":18,"tag":571,"props":16287,"children":16288},{"style":578},[16289],{"type":23,"value":11601},{"type":18,"tag":571,"props":16291,"children":16292},{"style":642},[16293],{"type":23,"value":11606},{"type":18,"tag":571,"props":16295,"children":16296},{"style":590},[16297],{"type":23,"value":792},{"type":18,"tag":571,"props":16299,"children":16301},{"class":573,"line":16300},119,[16302,16306,16310,16314,16318,16322,16326],{"type":18,"tag":571,"props":16303,"children":16304},{"style":578},[16305],{"type":23,"value":7683},{"type":18,"tag":571,"props":16307,"children":16308},{"style":642},[16309],{"type":23,"value":11623},{"type":18,"tag":571,"props":16311,"children":16312},{"style":578},[16313],{"type":23,"value":1526},{"type":18,"tag":571,"props":16315,"children":16316},{"style":590},[16317],{"type":23,"value":11632},{"type":18,"tag":571,"props":16319,"children":16320},{"style":578},[16321],{"type":23,"value":3198},{"type":18,"tag":571,"props":16323,"children":16324},{"style":642},[16325],{"type":23,"value":11606},{"type":18,"tag":571,"props":16327,"children":16328},{"style":590},[16329],{"type":23,"value":650},{"type":18,"tag":571,"props":16331,"children":16333},{"class":573,"line":16332},120,[16334,16338,16342,16346,16350,16354,16358,16362,16366,16370,16374,16378,16382,16386,16390,16394],{"type":18,"tag":571,"props":16335,"children":16336},{"style":578},[16337],{"type":23,"value":7951},{"type":18,"tag":571,"props":16339,"children":16340},{"style":784},[16341],{"type":23,"value":11658},{"type":18,"tag":571,"props":16343,"children":16344},{"style":590},[16345],{"type":23,"value":11663},{"type":18,"tag":571,"props":16347,"children":16348},{"style":784},[16349],{"type":23,"value":11668},{"type":18,"tag":571,"props":16351,"children":16352},{"style":590},[16353],{"type":23,"value":11673},{"type":18,"tag":571,"props":16355,"children":16356},{"style":784},[16357],{"type":23,"value":205},{"type":18,"tag":571,"props":16359,"children":16360},{"style":584},[16361],{"type":23,"value":11682},{"type":18,"tag":571,"props":16363,"children":16364},{"style":784},[16365],{"type":23,"value":11687},{"type":18,"tag":571,"props":16367,"children":16368},{"style":584},[16369],{"type":23,"value":11692},{"type":18,"tag":571,"props":16371,"children":16372},{"style":784},[16373],{"type":23,"value":682},{"type":18,"tag":571,"props":16375,"children":16376},{"style":642},[16377],{"type":23,"value":284},{"type":18,"tag":571,"props":16379,"children":16380},{"style":784},[16381],{"type":23,"value":3025},{"type":18,"tag":571,"props":16383,"children":16384},{"style":784},[16385],{"type":23,"value":11709},{"type":18,"tag":571,"props":16387,"children":16388},{"style":784},[16389],{"type":23,"value":1698},{"type":18,"tag":571,"props":16391,"children":16392},{"style":784},[16393],{"type":23,"value":2055},{"type":18,"tag":571,"props":16395,"children":16396},{"style":590},[16397],{"type":23,"value":650},{"type":18,"tag":571,"props":16399,"children":16401},{"class":573,"line":16400},121,[16402],{"type":18,"tag":571,"props":16403,"children":16404},{"style":590},[16405],{"type":23,"value":8212},{"type":18,"tag":571,"props":16407,"children":16409},{"class":573,"line":16408},122,[16410],{"type":18,"tag":571,"props":16411,"children":16412},{"emptyLinePlaceholder":656},[16413],{"type":23,"value":659},{"type":18,"tag":571,"props":16415,"children":16417},{"class":573,"line":16416},123,[16418,16422,16426,16430],{"type":18,"tag":571,"props":16419,"children":16420},{"style":584},[16421],{"type":23,"value":15136},{"type":18,"tag":571,"props":16423,"children":16424},{"style":590},[16425],{"type":23,"value":10804},{"type":18,"tag":571,"props":16427,"children":16428},{"style":578},[16429],{"type":23,"value":639},{"type":18,"tag":571,"props":16431,"children":16432},{"style":590},[16433],{"type":23,"value":2993},{"type":18,"tag":571,"props":16435,"children":16437},{"class":573,"line":16436},124,[16438,16442],{"type":18,"tag":571,"props":16439,"children":16440},{"style":584},[16441],{"type":23,"value":11230},{"type":18,"tag":571,"props":16443,"children":16444},{"style":590},[16445],{"type":23,"value":1600},{"type":18,"tag":571,"props":16447,"children":16449},{"class":573,"line":16448},125,[16450],{"type":18,"tag":571,"props":16451,"children":16452},{"style":590},[16453],{"type":23,"value":8212},{"type":18,"tag":571,"props":16455,"children":16457},{"class":573,"line":16456},126,[16458],{"type":18,"tag":571,"props":16459,"children":16460},{"emptyLinePlaceholder":656},[16461],{"type":23,"value":659},{"type":18,"tag":571,"props":16463,"children":16465},{"class":573,"line":16464},127,[16466,16470],{"type":18,"tag":571,"props":16467,"children":16468},{"style":578},[16469],{"type":23,"value":11653},{"type":18,"tag":571,"props":16471,"children":16472},{"style":590},[16473],{"type":23,"value":2993},{"type":18,"tag":571,"props":16475,"children":16477},{"class":573,"line":16476},128,[16478],{"type":18,"tag":571,"props":16479,"children":16480},{"style":590},[16481],{"type":23,"value":16482},"    timeElapsedString,\n",{"type":18,"tag":571,"props":16484,"children":16486},{"class":573,"line":16485},129,[16487],{"type":18,"tag":571,"props":16488,"children":16489},{"style":590},[16490],{"type":23,"value":15292},{"type":18,"tag":571,"props":16492,"children":16494},{"class":573,"line":16493},130,[16495],{"type":18,"tag":571,"props":16496,"children":16497},{"style":590},[16498],{"type":23,"value":8339},{"type":18,"tag":571,"props":16500,"children":16502},{"class":573,"line":16501},131,[16503],{"type":18,"tag":571,"props":16504,"children":16505},{"emptyLinePlaceholder":656},[16506],{"type":23,"value":659},{"type":18,"tag":571,"props":16508,"children":16510},{"class":573,"line":16509},132,[16511,16515,16519,16524,16528,16532,16536,16540,16544,16548,16552,16556,16560,16564,16568],{"type":18,"tag":571,"props":16512,"children":16513},{"style":578},[16514],{"type":23,"value":1516},{"type":18,"tag":571,"props":16516,"children":16517},{"style":590},[16518],{"type":23,"value":7627},{"type":18,"tag":571,"props":16520,"children":16521},{"style":642},[16522],{"type":23,"value":16523},"todos",{"type":18,"tag":571,"props":16525,"children":16526},{"style":590},[16527],{"type":23,"value":3025},{"type":18,"tag":571,"props":16529,"children":16530},{"style":642},[16531],{"type":23,"value":9452},{"type":18,"tag":571,"props":16533,"children":16534},{"style":590},[16535],{"type":23,"value":3025},{"type":18,"tag":571,"props":16537,"children":16538},{"style":642},[16539],{"type":23,"value":15719},{"type":18,"tag":571,"props":16541,"children":16542},{"style":590},[16543],{"type":23,"value":3025},{"type":18,"tag":571,"props":16545,"children":16546},{"style":642},[16547],{"type":23,"value":12404},{"type":18,"tag":571,"props":16549,"children":16550},{"style":590},[16551],{"type":23,"value":3025},{"type":18,"tag":571,"props":16553,"children":16554},{"style":642},[16555],{"type":23,"value":11967},{"type":18,"tag":571,"props":16557,"children":16558},{"style":590},[16559],{"type":23,"value":3025},{"type":18,"tag":571,"props":16561,"children":16562},{"style":642},[16563],{"type":23,"value":9317},{"type":18,"tag":571,"props":16565,"children":16566},{"style":590},[16567],{"type":23,"value":7637},{"type":18,"tag":571,"props":16569,"children":16570},{"style":578},[16571],{"type":23,"value":16572},"=\n",{"type":18,"tag":571,"props":16574,"children":16576},{"class":573,"line":16575},133,[16577,16582],{"type":18,"tag":571,"props":16578,"children":16579},{"style":584},[16580],{"type":23,"value":16581},"  useTodoState",{"type":18,"tag":571,"props":16583,"children":16584},{"style":590},[16585],{"type":23,"value":1600},{"type":18,"tag":571,"props":16587,"children":16589},{"class":573,"line":16588},134,[16590],{"type":18,"tag":571,"props":16591,"children":16592},{"emptyLinePlaceholder":656},[16593],{"type":23,"value":659},{"type":18,"tag":571,"props":16595,"children":16597},{"class":573,"line":16596},135,[16598,16602,16606,16611,16615,16620,16624,16629,16633,16638,16642,16646,16650],{"type":18,"tag":571,"props":16599,"children":16600},{"style":578},[16601],{"type":23,"value":1516},{"type":18,"tag":571,"props":16603,"children":16604},{"style":590},[16605],{"type":23,"value":7627},{"type":18,"tag":571,"props":16607,"children":16608},{"style":642},[16609],{"type":23,"value":16610},"subtasks",{"type":18,"tag":571,"props":16612,"children":16613},{"style":590},[16614],{"type":23,"value":3025},{"type":18,"tag":571,"props":16616,"children":16617},{"style":642},[16618],{"type":23,"value":16619},"newSubtasks",{"type":18,"tag":571,"props":16621,"children":16622},{"style":590},[16623],{"type":23,"value":3025},{"type":18,"tag":571,"props":16625,"children":16626},{"style":642},[16627],{"type":23,"value":16628},"addSubtask",{"type":18,"tag":571,"props":16630,"children":16631},{"style":590},[16632],{"type":23,"value":3025},{"type":18,"tag":571,"props":16634,"children":16635},{"style":642},[16636],{"type":23,"value":16637},"removeSubtask",{"type":18,"tag":571,"props":16639,"children":16640},{"style":590},[16641],{"type":23,"value":7637},{"type":18,"tag":571,"props":16643,"children":16644},{"style":578},[16645],{"type":23,"value":608},{"type":18,"tag":571,"props":16647,"children":16648},{"style":584},[16649],{"type":23,"value":15318},{"type":18,"tag":571,"props":16651,"children":16652},{"style":590},[16653],{"type":23,"value":1600},{"type":18,"tag":571,"props":16655,"children":16657},{"class":573,"line":16656},136,[16658,16662,16666,16671,16675,16679,16683],{"type":18,"tag":571,"props":16659,"children":16660},{"style":578},[16661],{"type":23,"value":1516},{"type":18,"tag":571,"props":16663,"children":16664},{"style":590},[16665],{"type":23,"value":7627},{"type":18,"tag":571,"props":16667,"children":16668},{"style":642},[16669],{"type":23,"value":16670},"timeElapsedString",{"type":18,"tag":571,"props":16672,"children":16673},{"style":590},[16674],{"type":23,"value":7637},{"type":18,"tag":571,"props":16676,"children":16677},{"style":578},[16678],{"type":23,"value":608},{"type":18,"tag":571,"props":16680,"children":16681},{"style":584},[16682],{"type":23,"value":15706},{"type":18,"tag":571,"props":16684,"children":16685},{"style":590},[16686],{"type":23,"value":16687},"(priority);\n",{"type":18,"tag":571,"props":16689,"children":16691},{"class":573,"line":16690},137,[16692,16696,16700],{"type":18,"tag":571,"props":16693,"children":16694},{"style":590},[16695],{"type":23,"value":5340},{"type":18,"tag":571,"props":16697,"children":16698},{"style":3356},[16699],{"type":23,"value":8363},{"type":18,"tag":571,"props":16701,"children":16702},{"style":590},[16703],{"type":23,"value":3387},{"type":18,"tag":39,"props":16705,"children":16707},{"id":16706},"voila",[16708],{"type":23,"value":16709},"Voila!",{"type":18,"tag":19,"props":16711,"children":16712},{},[16713],{"type":23,"value":16714},"I hope you see the value in inline composables as much as I do and they make your code a lot less spaghetti!",{"type":18,"tag":2484,"props":16716,"children":16717},{},[16718],{"type":23,"value":2488},{"title":8,"searchDepth":169,"depth":169,"links":16720},[16721,16722,16723],{"id":10076,"depth":174,"text":10079},{"id":13979,"depth":169,"text":13982},{"id":16706,"depth":169,"text":16709},"content:articles:how-to-structure-large-vue-files.md","articles/how-to-structure-large-vue-files.md","articles/how-to-structure-large-vue-files",{"_path":16728,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":16729,"description":16730,"pubDate":16731,"date":16732,"heroImage":16733,"component":8,"body":16734,"_type":175,"_id":17488,"_source":177,"_file":17489,"_stem":17490,"_extension":180},"/articles/comparisions","The difference between == and === in javascript","Understanding the difference .","Feb 13 2024","2024-02-13","/blog-comparisions.png",{"type":15,"children":16735,"toc":17480},[16736,16756,16768,16780,16786,16815,16826,16853,16863,16890,16900,16926,16936,16960,16970,16982,16994,16999,17027,17050,17077,17101,17128,17151,17178,17188,17233,17243,17249,17254,17275,17280,17308,17313,17343,17348,17391,17396,17423,17428,17455,17460,17464,17476],{"type":18,"tag":19,"props":16737,"children":16738},{},[16739,16741,16746,16748,16754],{"type":23,"value":16740},"In JavaScript, comparing values can be done in two primary ways: using strict equality (",{"type":18,"tag":480,"props":16742,"children":16744},{"className":16743},[],[16745],{"type":23,"value":730},{"type":23,"value":16747},") and loose equality (",{"type":18,"tag":480,"props":16749,"children":16751},{"className":16750},[],[16752],{"type":23,"value":16753},"==",{"type":23,"value":16755},"). These operators may seem similar at first glance, but they behave quite differently and can leaving you scratching your head if you don't know what is going on.",{"type":18,"tag":39,"props":16757,"children":16759},{"id":16758},"strict-equality",[16760,16762,16767],{"type":23,"value":16761},"Strict Equality (",{"type":18,"tag":480,"props":16763,"children":16765},{"className":16764},[],[16766],{"type":23,"value":730},{"type":23,"value":1698},{"type":18,"tag":19,"props":16769,"children":16770},{},[16771,16773,16778],{"type":23,"value":16772},"Strict equality checks if the values on either side ",{"type":18,"tag":66,"props":16774,"children":16775},{},[16776],{"type":23,"value":16777},"are of the same type and equal in value",{"type":23,"value":16779},". That is it, nice and simple and should be your go to comparision tool. Let's check out some basic examples",{"type":18,"tag":468,"props":16781,"children":16783},{"id":16782},"examples",[16784],{"type":23,"value":16785},"Examples:",{"type":18,"tag":561,"props":16787,"children":16791},{"className":16788,"code":16789,"language":16790,"meta":8,"style":8},"language-javascript shiki shiki-themes github-dark","3 === 3;\n","javascript",[16792],{"type":18,"tag":480,"props":16793,"children":16794},{"__ignoreMap":8},[16795],{"type":18,"tag":571,"props":16796,"children":16797},{"class":573,"line":574},[16798,16802,16807,16811],{"type":18,"tag":571,"props":16799,"children":16800},{"style":642},[16801],{"type":23,"value":367},{"type":18,"tag":571,"props":16803,"children":16804},{"style":578},[16805],{"type":23,"value":16806}," ===",{"type":18,"tag":571,"props":16808,"children":16809},{"style":642},[16810],{"type":23,"value":3739},{"type":18,"tag":571,"props":16812,"children":16813},{"style":590},[16814],{"type":23,"value":650},{"type":18,"tag":19,"props":16816,"children":16817},{},[16818,16824],{"type":18,"tag":480,"props":16819,"children":16821},{"className":16820},[],[16822],{"type":23,"value":16823},"true",{"type":23,"value":16825},", because both the type (number) and value (3) match.",{"type":18,"tag":561,"props":16827,"children":16829},{"className":16788,"code":16828,"language":16790,"meta":8,"style":8},"3 === \"3\";\n",[16830],{"type":18,"tag":480,"props":16831,"children":16832},{"__ignoreMap":8},[16833],{"type":18,"tag":571,"props":16834,"children":16835},{"class":573,"line":574},[16836,16840,16844,16849],{"type":18,"tag":571,"props":16837,"children":16838},{"style":642},[16839],{"type":23,"value":367},{"type":18,"tag":571,"props":16841,"children":16842},{"style":578},[16843],{"type":23,"value":16806},{"type":18,"tag":571,"props":16845,"children":16846},{"style":784},[16847],{"type":23,"value":16848}," \"3\"",{"type":18,"tag":571,"props":16850,"children":16851},{"style":590},[16852],{"type":23,"value":650},{"type":18,"tag":19,"props":16854,"children":16855},{},[16856,16861],{"type":18,"tag":480,"props":16857,"children":16859},{"className":16858},[],[16860],{"type":23,"value":7739},{"type":23,"value":16862},", because the types differ (number vs. string).",{"type":18,"tag":561,"props":16864,"children":16866},{"className":16788,"code":16865,"language":16790,"meta":8,"style":8},"true === true;\n",[16867],{"type":18,"tag":480,"props":16868,"children":16869},{"__ignoreMap":8},[16870],{"type":18,"tag":571,"props":16871,"children":16872},{"class":573,"line":574},[16873,16877,16881,16886],{"type":18,"tag":571,"props":16874,"children":16875},{"style":642},[16876],{"type":23,"value":16823},{"type":18,"tag":571,"props":16878,"children":16879},{"style":578},[16880],{"type":23,"value":16806},{"type":18,"tag":571,"props":16882,"children":16883},{"style":642},[16884],{"type":23,"value":16885}," true",{"type":18,"tag":571,"props":16887,"children":16888},{"style":590},[16889],{"type":23,"value":650},{"type":18,"tag":19,"props":16891,"children":16892},{},[16893,16898],{"type":18,"tag":480,"props":16894,"children":16896},{"className":16895},[],[16897],{"type":23,"value":16823},{"type":23,"value":16899},", because both the type (boolean) and value (true) match.",{"type":18,"tag":561,"props":16901,"children":16903},{"className":16788,"code":16902,"language":16790,"meta":8,"style":8},"null === null;\n",[16904],{"type":18,"tag":480,"props":16905,"children":16906},{"__ignoreMap":8},[16907],{"type":18,"tag":571,"props":16908,"children":16909},{"class":573,"line":574},[16910,16914,16918,16922],{"type":18,"tag":571,"props":16911,"children":16912},{"style":642},[16913],{"type":23,"value":8435},{"type":18,"tag":571,"props":16915,"children":16916},{"style":578},[16917],{"type":23,"value":16806},{"type":18,"tag":571,"props":16919,"children":16920},{"style":642},[16921],{"type":23,"value":8426},{"type":18,"tag":571,"props":16923,"children":16924},{"style":590},[16925],{"type":23,"value":650},{"type":18,"tag":19,"props":16927,"children":16928},{},[16929,16934],{"type":18,"tag":480,"props":16930,"children":16932},{"className":16931},[],[16933],{"type":23,"value":16823},{"type":23,"value":16935},", because both the type and value match (null is a singular value of the type null).",{"type":18,"tag":561,"props":16937,"children":16939},{"className":16788,"code":16938,"language":16790,"meta":8,"style":8},"[] === [];\n",[16940],{"type":18,"tag":480,"props":16941,"children":16942},{"__ignoreMap":8},[16943],{"type":18,"tag":571,"props":16944,"children":16945},{"class":573,"line":574},[16946,16951,16955],{"type":18,"tag":571,"props":16947,"children":16948},{"style":590},[16949],{"type":23,"value":16950},"[] ",{"type":18,"tag":571,"props":16952,"children":16953},{"style":578},[16954],{"type":23,"value":730},{"type":18,"tag":571,"props":16956,"children":16957},{"style":590},[16958],{"type":23,"value":16959}," [];\n",{"type":18,"tag":19,"props":16961,"children":16962},{},[16963,16968],{"type":18,"tag":480,"props":16964,"children":16966},{"className":16965},[],[16967],{"type":23,"value":7739},{"type":23,"value":16969},", because even though both sides are arrays, they are different instances in memory.",{"type":18,"tag":39,"props":16971,"children":16973},{"id":16972},"loose-equality",[16974,16976,16981],{"type":23,"value":16975},"Loose Equality (",{"type":18,"tag":480,"props":16977,"children":16979},{"className":16978},[],[16980],{"type":23,"value":16753},{"type":23,"value":1698},{"type":18,"tag":19,"props":16983,"children":16984},{},[16985,16987,16992],{"type":23,"value":16986},"Loose equality checks if the values on either side ",{"type":18,"tag":66,"props":16988,"children":16989},{},[16990],{"type":23,"value":16991},"can be considered equal after type coercion",{"type":23,"value":16993},". This means JavaScript will try to convert the values to a common type before making the comparison. While this can be useful, it can also lead to some almost laughable comparisions.",{"type":18,"tag":468,"props":16995,"children":16997},{"id":16996},"examples-1",[16998],{"type":23,"value":16785},{"type":18,"tag":561,"props":17000,"children":17002},{"className":16788,"code":17001,"language":16790,"meta":8,"style":8},"0 == false;\n",[17003],{"type":18,"tag":480,"props":17004,"children":17005},{"__ignoreMap":8},[17006],{"type":18,"tag":571,"props":17007,"children":17008},{"class":573,"line":574},[17009,17013,17018,17023],{"type":18,"tag":571,"props":17010,"children":17011},{"style":642},[17012],{"type":23,"value":4485},{"type":18,"tag":571,"props":17014,"children":17015},{"style":578},[17016],{"type":23,"value":17017}," ==",{"type":18,"tag":571,"props":17019,"children":17020},{"style":642},[17021],{"type":23,"value":17022}," false",{"type":18,"tag":571,"props":17024,"children":17025},{"style":590},[17026],{"type":23,"value":650},{"type":18,"tag":19,"props":17028,"children":17029},{},[17030,17035,17037,17042,17044,17049],{"type":18,"tag":480,"props":17031,"children":17033},{"className":17032},[],[17034],{"type":23,"value":16823},{"type":23,"value":17036},", because ",{"type":18,"tag":480,"props":17038,"children":17040},{"className":17039},[],[17041],{"type":23,"value":4485},{"type":23,"value":17043}," is considered falsy, similar to ",{"type":18,"tag":480,"props":17045,"children":17047},{"className":17046},[],[17048],{"type":23,"value":7739},{"type":23,"value":205},{"type":18,"tag":561,"props":17051,"children":17053},{"className":16788,"code":17052,"language":16790,"meta":8,"style":8},"2 == \"2\";\n",[17054],{"type":18,"tag":480,"props":17055,"children":17056},{"__ignoreMap":8},[17057],{"type":18,"tag":571,"props":17058,"children":17059},{"class":573,"line":574},[17060,17064,17068,17073],{"type":18,"tag":571,"props":17061,"children":17062},{"style":642},[17063],{"type":23,"value":284},{"type":18,"tag":571,"props":17065,"children":17066},{"style":578},[17067],{"type":23,"value":17017},{"type":18,"tag":571,"props":17069,"children":17070},{"style":784},[17071],{"type":23,"value":17072}," \"2\"",{"type":18,"tag":571,"props":17074,"children":17075},{"style":590},[17076],{"type":23,"value":650},{"type":18,"tag":19,"props":17078,"children":17079},{},[17080,17085,17087,17093,17095,17100],{"type":18,"tag":480,"props":17081,"children":17083},{"className":17082},[],[17084],{"type":23,"value":16823},{"type":23,"value":17086},", because the string ",{"type":18,"tag":480,"props":17088,"children":17090},{"className":17089},[],[17091],{"type":23,"value":17092},"'2'",{"type":23,"value":17094}," is coerced to the number ",{"type":18,"tag":480,"props":17096,"children":17098},{"className":17097},[],[17099],{"type":23,"value":284},{"type":23,"value":205},{"type":18,"tag":561,"props":17102,"children":17104},{"className":16788,"code":17103,"language":16790,"meta":8,"style":8},"null == undefined;\n",[17105],{"type":18,"tag":480,"props":17106,"children":17107},{"__ignoreMap":8},[17108],{"type":18,"tag":571,"props":17109,"children":17110},{"class":573,"line":574},[17111,17115,17119,17124],{"type":18,"tag":571,"props":17112,"children":17113},{"style":642},[17114],{"type":23,"value":8435},{"type":18,"tag":571,"props":17116,"children":17117},{"style":578},[17118],{"type":23,"value":17017},{"type":18,"tag":571,"props":17120,"children":17121},{"style":642},[17122],{"type":23,"value":17123}," undefined",{"type":18,"tag":571,"props":17125,"children":17126},{"style":590},[17127],{"type":23,"value":650},{"type":18,"tag":19,"props":17129,"children":17130},{},[17131,17136,17137,17142,17143,17149],{"type":18,"tag":480,"props":17132,"children":17134},{"className":17133},[],[17135],{"type":23,"value":16823},{"type":23,"value":17036},{"type":18,"tag":480,"props":17138,"children":17140},{"className":17139},[],[17141],{"type":23,"value":8435},{"type":23,"value":7412},{"type":18,"tag":480,"props":17144,"children":17146},{"className":17145},[],[17147],{"type":23,"value":17148},"undefined",{"type":23,"value":17150}," are treated as equal in the context of loose equality.",{"type":18,"tag":561,"props":17152,"children":17154},{"className":16788,"code":17153,"language":16790,"meta":8,"style":8},"[] == \"\";\n",[17155],{"type":18,"tag":480,"props":17156,"children":17157},{"__ignoreMap":8},[17158],{"type":18,"tag":571,"props":17159,"children":17160},{"class":573,"line":574},[17161,17165,17169,17174],{"type":18,"tag":571,"props":17162,"children":17163},{"style":590},[17164],{"type":23,"value":16950},{"type":18,"tag":571,"props":17166,"children":17167},{"style":578},[17168],{"type":23,"value":16753},{"type":18,"tag":571,"props":17170,"children":17171},{"style":784},[17172],{"type":23,"value":17173}," \"\"",{"type":18,"tag":571,"props":17175,"children":17176},{"style":590},[17177],{"type":23,"value":650},{"type":18,"tag":19,"props":17179,"children":17180},{},[17181,17186],{"type":18,"tag":480,"props":17182,"children":17184},{"className":17183},[],[17185],{"type":23,"value":16823},{"type":23,"value":17187},", because an empty array coerces to an empty string.",{"type":18,"tag":561,"props":17189,"children":17191},{"className":16788,"code":17190,"language":16790,"meta":8,"style":8},"[1, 2] == \"1,2\";\n",[17192],{"type":18,"tag":480,"props":17193,"children":17194},{"__ignoreMap":8},[17195],{"type":18,"tag":571,"props":17196,"children":17197},{"class":573,"line":574},[17198,17203,17207,17211,17215,17220,17224,17229],{"type":18,"tag":571,"props":17199,"children":17200},{"style":590},[17201],{"type":23,"value":17202},"[",{"type":18,"tag":571,"props":17204,"children":17205},{"style":642},[17206],{"type":23,"value":270},{"type":18,"tag":571,"props":17208,"children":17209},{"style":590},[17210],{"type":23,"value":3025},{"type":18,"tag":571,"props":17212,"children":17213},{"style":642},[17214],{"type":23,"value":284},{"type":18,"tag":571,"props":17216,"children":17217},{"style":590},[17218],{"type":23,"value":17219},"] ",{"type":18,"tag":571,"props":17221,"children":17222},{"style":578},[17223],{"type":23,"value":16753},{"type":18,"tag":571,"props":17225,"children":17226},{"style":784},[17227],{"type":23,"value":17228}," \"1,2\"",{"type":18,"tag":571,"props":17230,"children":17231},{"style":590},[17232],{"type":23,"value":650},{"type":18,"tag":19,"props":17234,"children":17235},{},[17236,17241],{"type":18,"tag":480,"props":17237,"children":17239},{"className":17238},[],[17240],{"type":23,"value":16823},{"type":23,"value":17242},", because the array is coerced to a string, matching the right-hand side.",{"type":18,"tag":39,"props":17244,"children":17246},{"id":17245},"notable-gotchas",[17247],{"type":23,"value":17248},"Notable Gotchas",{"type":18,"tag":19,"props":17250,"children":17251},{},[17252],{"type":23,"value":17253},"Understanding the nuances of JavaScript's equality operators can help avoid common pitfalls. Here are a few examples that illustrate these \"gotchas\":",{"type":18,"tag":561,"props":17255,"children":17256},{"className":16788,"code":16938,"language":16790,"meta":8,"style":8},[17257],{"type":18,"tag":480,"props":17258,"children":17259},{"__ignoreMap":8},[17260],{"type":18,"tag":571,"props":17261,"children":17262},{"class":573,"line":574},[17263,17267,17271],{"type":18,"tag":571,"props":17264,"children":17265},{"style":590},[17266],{"type":23,"value":16950},{"type":18,"tag":571,"props":17268,"children":17269},{"style":578},[17270],{"type":23,"value":730},{"type":18,"tag":571,"props":17272,"children":17273},{"style":590},[17274],{"type":23,"value":16959},{"type":18,"tag":19,"props":17276,"children":17277},{},[17278],{"type":23,"value":17279},"Two distinct arrays are separate instances in memory. This makes sense.",{"type":18,"tag":561,"props":17281,"children":17283},{"className":16788,"code":17282,"language":16790,"meta":8,"style":8},"NaN === NaN;\n",[17284],{"type":18,"tag":480,"props":17285,"children":17286},{"__ignoreMap":8},[17287],{"type":18,"tag":571,"props":17288,"children":17289},{"class":573,"line":574},[17290,17295,17299,17304],{"type":18,"tag":571,"props":17291,"children":17292},{"style":642},[17293],{"type":23,"value":17294},"NaN",{"type":18,"tag":571,"props":17296,"children":17297},{"style":578},[17298],{"type":23,"value":16806},{"type":18,"tag":571,"props":17300,"children":17301},{"style":642},[17302],{"type":23,"value":17303}," NaN",{"type":18,"tag":571,"props":17305,"children":17306},{"style":590},[17307],{"type":23,"value":650},{"type":18,"tag":19,"props":17309,"children":17310},{},[17311],{"type":23,"value":17312},"NaN is the only JavaScript value not equal to itself. Something that is not a number does not equal something else that is not a number. OK...",{"type":18,"tag":561,"props":17314,"children":17316},{"className":16788,"code":17315,"language":16790,"meta":8,"style":8},"0 === -0;\n",[17317],{"type":18,"tag":480,"props":17318,"children":17319},{"__ignoreMap":8},[17320],{"type":18,"tag":571,"props":17321,"children":17322},{"class":573,"line":574},[17323,17327,17331,17335,17339],{"type":18,"tag":571,"props":17324,"children":17325},{"style":642},[17326],{"type":23,"value":4485},{"type":18,"tag":571,"props":17328,"children":17329},{"style":578},[17330],{"type":23,"value":16806},{"type":18,"tag":571,"props":17332,"children":17333},{"style":578},[17334],{"type":23,"value":9996},{"type":18,"tag":571,"props":17336,"children":17337},{"style":642},[17338],{"type":23,"value":4485},{"type":18,"tag":571,"props":17340,"children":17341},{"style":590},[17342],{"type":23,"value":650},{"type":18,"tag":19,"props":17344,"children":17345},{},[17346],{"type":23,"value":17347},"JavaScript considers positive and negative zero to be strictly equal. Logical.",{"type":18,"tag":561,"props":17349,"children":17351},{"className":16788,"code":17350,"language":16790,"meta":8,"style":8},"[1, 2] != \"1,2\";\n",[17352],{"type":18,"tag":480,"props":17353,"children":17354},{"__ignoreMap":8},[17355],{"type":18,"tag":571,"props":17356,"children":17357},{"class":573,"line":574},[17358,17362,17366,17370,17374,17378,17383,17387],{"type":18,"tag":571,"props":17359,"children":17360},{"style":590},[17361],{"type":23,"value":17202},{"type":18,"tag":571,"props":17363,"children":17364},{"style":642},[17365],{"type":23,"value":270},{"type":18,"tag":571,"props":17367,"children":17368},{"style":590},[17369],{"type":23,"value":3025},{"type":18,"tag":571,"props":17371,"children":17372},{"style":642},[17373],{"type":23,"value":284},{"type":18,"tag":571,"props":17375,"children":17376},{"style":590},[17377],{"type":23,"value":17219},{"type":18,"tag":571,"props":17379,"children":17380},{"style":578},[17381],{"type":23,"value":17382},"!=",{"type":18,"tag":571,"props":17384,"children":17385},{"style":784},[17386],{"type":23,"value":17228},{"type":18,"tag":571,"props":17388,"children":17389},{"style":590},[17390],{"type":23,"value":650},{"type":18,"tag":19,"props":17392,"children":17393},{},[17394],{"type":23,"value":17395},"Coercing an array into a string is just so crazy...",{"type":18,"tag":561,"props":17397,"children":17399},{"className":16788,"code":17398,"language":16790,"meta":8,"style":8},"NaN == \"NaN\";\n",[17400],{"type":18,"tag":480,"props":17401,"children":17402},{"__ignoreMap":8},[17403],{"type":18,"tag":571,"props":17404,"children":17405},{"class":573,"line":574},[17406,17410,17414,17419],{"type":18,"tag":571,"props":17407,"children":17408},{"style":642},[17409],{"type":23,"value":17294},{"type":18,"tag":571,"props":17411,"children":17412},{"style":578},[17413],{"type":23,"value":17017},{"type":18,"tag":571,"props":17415,"children":17416},{"style":784},[17417],{"type":23,"value":17418}," \"NaN\"",{"type":18,"tag":571,"props":17420,"children":17421},{"style":590},[17422],{"type":23,"value":650},{"type":18,"tag":19,"props":17424,"children":17425},{},[17426],{"type":23,"value":17427},"Even under loose equality, NaN is not considered equal to the string representation of itself. Poor NaN.",{"type":18,"tag":561,"props":17429,"children":17431},{"className":16788,"code":17430,"language":16790,"meta":8,"style":8},"\"false\" == false;\n",[17432],{"type":18,"tag":480,"props":17433,"children":17434},{"__ignoreMap":8},[17435],{"type":18,"tag":571,"props":17436,"children":17437},{"class":573,"line":574},[17438,17443,17447,17451],{"type":18,"tag":571,"props":17439,"children":17440},{"style":784},[17441],{"type":23,"value":17442},"\"false\"",{"type":18,"tag":571,"props":17444,"children":17445},{"style":578},[17446],{"type":23,"value":17017},{"type":18,"tag":571,"props":17448,"children":17449},{"style":642},[17450],{"type":23,"value":17022},{"type":18,"tag":571,"props":17452,"children":17453},{"style":590},[17454],{"type":23,"value":650},{"type":18,"tag":19,"props":17456,"children":17457},{},[17458],{"type":23,"value":17459},"A non-empty string is truthy, but it does not coerce to the boolean false under loose equality.",{"type":18,"tag":39,"props":17461,"children":17462},{"id":2474},[17463],{"type":23,"value":2477},{"type":18,"tag":19,"props":17465,"children":17466},{},[17467,17469,17475],{"type":23,"value":17468},"Use ",{"type":18,"tag":480,"props":17470,"children":17472},{"className":17471},[],[17473],{"type":23,"value":17474},"'==='",{"type":23,"value":205},{"type":18,"tag":2484,"props":17477,"children":17478},{},[17479],{"type":23,"value":2488},{"title":8,"searchDepth":169,"depth":169,"links":17481},[17482,17484,17486,17487],{"id":16758,"depth":169,"text":17483},"Strict Equality (===)",{"id":16972,"depth":169,"text":17485},"Loose Equality (==)",{"id":17245,"depth":169,"text":17248},{"id":2474,"depth":169,"text":2477},"content:articles:comparisions.md","articles/comparisions.md","articles/comparisions",1736104995188]