PageSourceSearch

https://heartbioportal.com/assets/create_post-DUAGrf9f.js

js heartbioportal.com collected 2026-10-04 16:25:19 UTC 36,059 bytes, 1 lines download raw bytes

1import{_ as e,g as t,a,b as s,N as i,c as o,S as n}from"./index-DxR1C7Xs.js";import{C as c,F as l,K as r,G as g,H as d,J as p,D as h,B as C,r as v,M as m,N as u,O as L,P as w,I as f,E as b}from"./charts-hTM29QIp.js";import{E as x,a as M,b as Z,S as _,I as y,U as A,T as H,c as k,C as B}from"./editor--C3k1C5m.js";const S=Object.assign({"../assets/tiptap/images/icons/add_col_after.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M5,14%20C7.76005315,14.0033061%209.99669388,16.2399468%2010,19%20C10,21.7614237%207.76142375,24%205,24%20C2.23857625,24%201.77635684e-15,21.7614237%201.77635684e-15,19%20C1.77635684e-15,16.2385763%202.23857625,14%205,14%20Z%20M7.5,19.9375%20C8.01776695,19.9375%208.4375,19.517767%208.4375,19%20C8.4375,18.482233%208.01776695,18.0625%207.5,18.0625%20L6.25,18.0625%20C6.07741102,18.0625%205.9375,17.922589%205.9375,17.75%20L5.9375,16.5%20C5.9375,15.982233%205.51776695,15.5625%205,15.5625%20C4.48223305,15.5625%204.0625,15.982233%204.0625,16.5%20L4.0625,17.75%20C4.0625,17.922589%203.92258898,18.0625%203.75,18.0625%20L2.5,18.0625%20C1.98223305,18.0625%201.5625,18.482233%201.5625,19%20C1.5625,19.517767%201.98223305,19.9375%202.5,19.9375%20L3.75,19.9375%20C3.92258898,19.9375%204.0625,20.077411%204.0625,20.25%20L4.0625,21.5%20C4.0625,22.017767%204.48223305,22.4375%205,22.4375%20C5.51776695,22.4375%205.9375,22.017767%205.9375,21.5%20L5.9375,20.25%20C5.9375,20.077411%206.07741102,19.9375%206.25,19.9375%20L7.5,19.9375%20Z%20M16,19%20C16,20.6568542%2017.3431458,22%2019,22%20C20.6568542,22%2022,20.6568542%2022,19%20L22,5%20C22,3.34314575%2020.6568542,2%2019,2%20C17.3431458,2%2016,3.34314575%2016,5%20L16,19%20Z%20M14,19%20L14,5%20C14,2.23857625%2016.2385763,0%2019,0%20C21.7614237,0%2024,2.23857625%2024,5%20L24,19%20C24,21.7614237%2021.7614237,24%2019,24%20C16.2385763,24%2014,21.7614237%2014,19%20Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/add_col_before.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M19,14%20C21.7600532,14.0033061%2023.9966939,16.2399468%2024,19%20C24,21.7614237%2021.7614237,24%2019,24%20C16.2385763,24%2014,21.7614237%2014,19%20C14,16.2385763%2016.2385763,14%2019,14%20Z%20M21.5,19.9375%20C22.017767,19.9375%2022.4375,19.517767%2022.4375,19%20C22.4375,18.482233%2022.017767,18.0625%2021.5,18.0625%20L20.25,18.0625%20C20.077411,18.0625%2019.9375,17.922589%2019.9375,17.75%20L19.9375,16.5%20C19.9375,15.982233%2019.517767,15.5625%2019,15.5625%20C18.482233,15.5625%2018.0625,15.982233%2018.0625,16.5%20L18.0625,17.75%20C18.0625,17.922589%2017.922589,18.0625%2017.75,18.0625%20L16.5,18.0625%20C15.982233,18.0625%2015.5625,18.482233%2015.5625,19%20C15.5625,19.517767%2015.982233,19.9375%2016.5,19.9375%20L17.75,19.9375%20C17.922589,19.9375%2018.0625,20.077411%2018.0625,20.25%20L18.0625,21.5%20C18.0625,22.017767%2018.482233,22.4375%2019,22.4375%20C19.517767,22.4375%2019.9375,22.017767%2019.9375,21.5%20L19.9375,20.25%20C19.9375,20.077411%2020.077411,19.9375%2020.25,19.9375%20L21.5,19.9375%20Z%20M2,19%20C2,20.6568542%203.34314575,22%205,22%20C6.65685425,22%208,20.6568542%208,19%20L8,5%20C8,3.34314575%206.65685425,2%205,2%20C3.34314575,2%202,3.34314575%202,5%20L2,19%20Z%20M-2.7585502e-16,19%20L5.81397739e-16,5%20C-1.37692243e-16,2.23857625%202.23857625,0%205,0%20C7.76142375,0%2010,2.23857625%2010,5%20L10,19%20C10,21.7614237%207.76142375,24%205,24%20C2.23857625,24%204.43234962e-16,21.7614237%20-2.7585502e-16,19%20Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/add_row_after.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M19,0%20C21.7600532,0.00330611633%2023.9966939,2.23994685%2024,5%20C24,7.76142375%2021.7614237,10%2019,10%20C16.2385763,10%2014,7.76142375%2014,5%20C14,2.23857625%2016.2385763,0%2019,0%20Z%20M21.5,5.9375%20C22.017767,5.9375%2022.4375,5.51776695%2022.4375,5%20C22.4375,4.48223305%2022.017767,4.0625%2021.5,4.0625%20L20.25,4.0625%20C20.077411,4.0625%2019.9375,3.92258898%2019.9375,3.75%20L19.9375,2.5%20C19.9375,1.98223305%2019.517767,1.5625%2019,1.5625%20C18.482233,1.5625%2018.0625,1.98223305%2018.0625,2.5%20L18.0625,3.75%20C18.0625,3.92258898%2017.922589,4.0625%2017.75,4.0625%20L16.5,4.0625%20C15.982233,4.0625%2015.5625,4.48223305%2015.5625,5%20C15.5625,5.51776695%2015.982233,5.9375%2016.5,5.9375%20L17.75,5.9375%20C17.922589,5.9375%2018.0625,6.07741102%2018.0625,6.25%20L18.0625,7.5%20C18.0625,8.01776695%2018.482233,8.4375%2019,8.4375%20C19.517767,8.4375%2019.9375,8.01776695%2019.9375,7.5%20L19.9375,6.25%20C19.9375,6.07741102%2020.077411,5.9375%2020.25,5.9375%20L21.5,5.9375%20Z%20M5,16%20C3.34314575,16%202,17.3431458%202,19%20C2,20.6568542%203.34314575,22%205,22%20L19,22%20C20.6568542,22%2022,20.6568542%2022,19%20C22,17.3431458%2020.6568542,16%2019,16%20L5,16%20Z%20M5,14%2
10L19,14%20C21.7614237,14%2024,16.2385763%2024,19%20C24,21.7614237%2021.7614237,24%2019,24%20L5,24%20C2.23857625,24%203.38176876e-16,21.7614237%200,19%20C-1.2263553e-15,16.2385763%202.23857625,14%205,14%20Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/add_row_before.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M19,14%20C21.7600532,14.0033061%2023.9966939,16.2399468%2024,19%20C24,21.7614237%2021.7614237,24%2019,24%20C16.2385763,24%2014,21.7614237%2014,19%20C14,16.2385763%2016.2385763,14%2019,14%20Z%20M21.5,19.9375%20C22.017767,19.9375%2022.4375,19.517767%2022.4375,19%20C22.4375,18.482233%2022.017767,18.0625%2021.5,18.0625%20L20.25,18.0625%20C20.077411,18.0625%2019.9375,17.922589%2019.9375,17.75%20L19.9375,16.5%20C19.9375,15.982233%2019.517767,15.5625%2019,15.5625%20C18.482233,15.5625%2018.0625,15.982233%2018.0625,16.5%20L18.0625,17.75%20C18.0625,17.922589%2017.922589,18.0625%2017.75,18.0625%20L16.5,18.0625%20C15.982233,18.0625%2015.5625,18.482233%2015.5625,19%20C15.5625,19.517767%2015.982233,19.9375%2016.5,19.9375%20L17.75,19.9375%20C17.922589,19.9375%2018.0625,20.077411%2018.0625,20.25%20L18.0625,21.5%20C18.0625,22.017767%2018.482233,22.4375%2019,22.4375%20C19.517767,22.4375%2019.9375,22.017767%2019.9375,21.5%20L19.9375,20.25%20C19.9375,20.077411%2020.077411,19.9375%2020.25,19.9375%20L21.5,19.9375%20Z%20M5,2%20C3.34314575,2%202,3.34314575%202,5%20C2,6.65685425%203.34314575,8%205,8%20L19,8%20C20.6568542,8%2022,6.65685425%2022,5%20C22,3.34314575%2020.6568542,2%2019,2%20L5,2%20Z%20M5,0%20L19,0%20C21.7614237,-5.07265313e-16%2024,2.23857625%2024,5%20C24,7.76142375%2021.7614237,10%2019,10%20L5,10%20C2.23857625,10%203.38176876e-16,7.76142375%200,5%20C-1.2263553e-15,2.23857625%202.23857625,5.07265313e-16%205,0%20Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/bold.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3etext-bold%3c/title%3e%3cpath%20d='M17.194,10.962A6.271,6.271,0,0,0,12.844.248H4.3a1.25,1.25,0,0,0,0,2.5H5.313a.25.25,0,0,1,.25.25V21a.25.25,0,0,1-.25.25H4.3a1.25,1.25,0,1,0,0,2.5h9.963a6.742,6.742,0,0,0,2.93-12.786Zm-4.35-8.214a3.762,3.762,0,0,1,0,7.523H8.313a.25.25,0,0,1-.25-.25V3a.25.25,0,0,1,.25-.25Zm1.42,18.5H8.313a.25.25,0,0,1-.25-.25V13.021a.25.25,0,0,1,.25-.25h4.531c.017,0,.033,0,.049,0l.013,0h1.358a4.239,4.239,0,0,1,0,8.477Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/checklist.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3echecklist-alternate%3c/title%3e%3cpath%20d='M21,0H3A3,3,0,0,0,0,3V21a3,3,0,0,0,3,3H21a3,3,0,0,0,3-3V3A3,3,0,0,0,21,0Zm1,21a1,1,0,0,1-1,1H3a1,1,0,0,1-1-1V3A1,1,0,0,1,3,2H21a1,1,0,0,1,1,1Z'/%3e%3cpath%20d='M11.249,4.5a1.251,1.251,0,0,0-1.75.25L7.365,7.6l-.482-.481A1.25,1.25,0,0,0,5.116,8.883l1.5,1.5A1.262,1.262,0,0,0,8.5,10.249l3-4A1.25,1.25,0,0,0,11.249,4.5Z'/%3e%3cpath%20d='M11.249,13.5a1.251,1.251,0,0,0-1.75.25L7.365,16.6l-.482-.481a1.25,1.25,0,1,0-1.767,1.768l1.5,1.5A1.265,1.265,0,0,0,8.5,19.249l3-4A1.25,1.25,0,0,0,11.249,13.5Z'/%3e%3cpath%20d='M18.5,7.749H14a1.25,1.25,0,0,0,0,2.5h4.5a1.25,1.25,0,0,0,0-2.5Z'/%3e%3cpath%20d='M18.5,15.749H14a1.25,1.25,0,0,0,0,2.5h4.5a1.25,1.25,0,1,0,0-2.5Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/code.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3eangle-brackets%3c/title%3e%3cpath%20d='M9.147,21.552a1.244,1.244,0,0,1-.895-.378L.84,13.561a2.257,2.257,0,0,1,0-3.125L8.252,2.823a1.25,1.25,0,0,1,1.791,1.744l-6.9,7.083a.5.5,0,0,0,0,.7l6.9,7.082a1.25,1.25,0,0,1-.9,2.122Z'/%3e%3cpath%20d='M14.854,21.552a1.25,1.25,0,0,1-.9-2.122l6.9-7.083a.5.5,0,0,0,0-.7l-6.9-7.082a1.25,1.25,0,0,1,1.791-1.744l7.411,7.612a2.257,2.257,0,0,1,0,3.125l-7.412,7.614A1.244,1.244,0,0,1,14.854,21.552Zm6.514-9.373h0Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/combine_cells.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M2,19%20C2,20.6568542%203.34314575,22%205,22%20L19,22%20C20.6568542,22%2022,20.6568542%2022,19%20L22,5%20C22,3.34314575%2020.6568542,2%2019,2%20L5,2%20C3.34314575,2%202,3.34314575%202,5%20L2,19%20Z%20M-1.16403344e-15,19%20L-3.0678068e-16,5%20C-6.44957556e-16,2.23857625%202.23857625,0%205,0%20L19,0%20C21.7614237,0%2024,2.23857625%2024,5%20L24,19%20C24,21.7614237%2021.7614237,24%2019,24%20L5,24%20C2.23857625,24%209.50500275e-16,21.7614237%20-1.16403344e-15,19%20Z%20M12,10%20C12.5522847,10%2013,10.4477153%2013,11%20L13,13%20C13,13.5522847%2012.5522847,14%2012,14%20C11.4477153,14%2011,13.5522847%2011,13%20L11,11%20C11,10.4477153%2011.4477153,10%2012,10%20Z%20M12,16%20C12.5522847,16%2013,16.4477153%2013,17%20L13,20%20C13,20.5522847%2012.5522847,21%2012,21%20C11.4477153,21%2011,20.5522847%2011,20%20L11,17%20C11,16.4477153%2011.4477153,16%2012,16%20Z%20M12,3%20C12.5522847,3%2013,3.44771525%2013,4%20L13,7%20C13,7.55228475%2012.5522847,8%2012,8%20C11.4477153,8%2011,7.55228475%2011,7%20L11,4%20C11,3.44771525%2011.4477153,3%2012,3%20Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/delete_col.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M12.6414391,21.9312708%20C12.9358807,22.5689168%2013.3234155,23.1547532%2013.7866134,23.6713497%20C13.2317936,23.8836754%2012.6294813,24%2012,24%20C9.23857625,24%207,21.7614237%207,19%20L7,5%20C7,2.23857625%209.23857625,0%2012,0%20C14.7614237,0%2017,2.23857625%2017,5%20L17,12.2898787%20C16.2775651,12.5048858%2015.6040072,12.8333806%2015,13.2546893%20L15,5%20C15,3.34314575%2013.6568542,2%2012,2%20C10.3431458,2%209,3.34314575%209,5%20L9,19%20C9,20.6568542%2010.3431458,22%2012,22%20C12.220157,22%2012.4347751,21.9762852%2012.6414391,21.9312708%20Z%20M19,14%20C21.7600532,14.0033061%2023.9966939,16.2399468%2024,19%20C24,21.7614237%2021.7614237,24%2019,24%20C16.2385763,24%2014,21.7614237%2014,19%20C14,16.2385763%2016.2385763,14%2019,14%20Z%20M16.5,19.9375%20L21.5,19.9375%20C22.017767,19.9375%2022.4375,19.517767%2022.4375,19%20C22.4375,18.482233%2022.017767,18.0625%2021.5,18.0625%20L16.5,18.0625%20C15.982233,18.0625%2015.5625,18.482233%2015.5625,19%20C15.5625,19.517767%2015.982233,19.9375%2016.5,19.9375%20Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/delete_row.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M13.2546893,15%20C12.8333806,15.6040072%2012.5048858,16.2775651%2012.2898787,17%20L5,17%20C2.23857625,17%203.38176876e-16,14.7614237%200,12%20C-1.2263553e-15,9.23857625%202.23857625,7%205,7%20L19,7%20C21.7614237,7%2024,9.23857625%2024,12%20C24,12.6294813%2023.8836754,13.2317936%2023.6713497,13.7866134%20C23.1547532,13.3234155%2022.5689168,12.9358807%2021.9312708,12.6414391%20C21.9762852,12.4347751%2022,12.220157%2022,12%20C22,10.3431458%2020.6568542,9%2019,9%2
10L5,9%20C3.34314575,9%202,10.3431458%202,12%20C2,13.6568542%203.34314575,15%205,15%20L13.2546893,15%20Z%20M19,14%20C21.7600532,14.0033061%2023.9966939,16.2399468%2024,19%20C24,21.7614237%2021.7614237,24%2019,24%20C16.2385763,24%2014,21.7614237%2014,19%20C14,16.2385763%2016.2385763,14%2019,14%20Z%20M16.5,19.9375%20L21.5,19.9375%20C22.017767,19.9375%2022.4375,19.517767%2022.4375,19%20C22.4375,18.482233%2022.017767,18.0625%2021.5,18.0625%20L16.5,18.0625%20C15.982233,18.0625%2015.5625,18.482233%2015.5625,19%20C15.5625,19.517767%2015.982233,19.9375%2016.5,19.9375%20Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/delete_table.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M19,14%20C21.7600532,14.0033061%2023.9966939,16.2399468%2024,19%20C24,21.7614237%2021.7614237,24%2019,24%20C16.2385763,24%2014,21.7614237%2014,19%20C14,16.2385763%2016.2385763,14%2019,14%20Z%20M16.5,19.9375%20L21.5,19.9375%20C22.017767,19.9375%2022.4375,19.517767%2022.4375,19%20C22.4375,18.482233%2022.017767,18.0625%2021.5,18.0625%20L16.5,18.0625%20C15.982233,18.0625%2015.5625,18.482233%2015.5625,19%20C15.5625,19.517767%2015.982233,19.9375%2016.5,19.9375%20Z%20M12.2898787,17%20L9,17%20L9,22%20L12.6736312,22%20C13.0297295,22.7496048%2013.515133,23.4258795%2014.1010173,24%20L5,24%20C2.23857625,24%20-1.43817996e-15,21.7614237%20-1.77635684e-15,19%20L-3.55271368e-15,5%20C-3.89089055e-15,2.23857625%202.23857625,5.07265313e-16%205,-1.77635684e-15%20L19,-1.77635684e-15%20C21.7614237,-2.28362215e-15%2024,2.23857625%2024,5%20L24,7.82313285%20C24.0122947,7.88054124%2024.0187107,7.93964623%2024.0187107,8%20C24.0187107,8.06035377%2024.0122947,8.11945876%2024,8.17686715%20L24,14.1010173%20C23.4258795,13.515133%2022.7496048,13.0297295%2022,12.6736312%20L22,9%20L17,9%20L17,12.2898787%20C16.2775651,12.5048858%2015.6040072,12.8333806%2015,13.2546893%20L15,9%20L9,9%20L9,15%20L13.2546893,15%20C12.8333806,15.6040072%2012.5048858,16.2775651%2012.2898787,17%20Z%20M17,7%20L22,7%20L22,5%20C22,3.34314575%2020.6568542,2%2019,2%20L17,2%20L17,7%20Z%20M15,7%20L15,2%20L9,2%20L9,7%20L15,7%20Z%20M7,2%20L5,2%20C3.34314575,2%202,3.34314575%202,5%20L2,7%20L7,7%20L7,2%20Z%20M2,9%20L2,15%20L7,15%20L7,9%20L2,9%20Z%20M2,17%20L2,19%20C2,20.6568542%203.34314575,22%205,22%20L7,22%20L7,17%20L2,17%20Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/github.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M11.999,0.5%20C5.649,0.5%200.5,5.648%200.5,12%20C0.5,17.082%203.794,21.392%208.365,22.914%20C8.939,23.017%209.121,22.678%209.121,22.373%20C9.121,22.099%209.127,21.336%209.121,20.376%20C5.923,21.07%205.26,18.861%205.26,18.861%20C4.737,17.532%203.985,17.179%203.985,17.179%20C2.94,16.465%204.062,16.48%204.062,16.48%20C5.215,16.56%205.824,17.664%205.824,17.664%20C6.85,19.422%208.515,18.914%209.17,18.62%20C9.276,17.878%209.572,17.369%209.901,17.084%20C7.347,16.792%204.663,15.807%204.663,11.398%20C4.663,10.143%205.111,9.117%205.847,8.312%20C5.729,8.023%205.333,6.852%205.959,5.269%20C5.959,5.269%206.926,4.96%209.121,6.449%20C10.039,6.193%2011.023,6.066%2012.001,6.061%20C12.977,6.066%2013.961,6.193%2014.881,6.449%2
10C17.076,4.961%2018.04,5.269%2018.04,5.269%20C18.667,6.852%2018.272,8.023%2018.154,8.312%20C18.89,9.117%2019.337,10.143%2019.337,11.398%20C19.337,15.818%2016.648,16.789%2014.086,17.072%20C14.498,17.429%2014.873,18.119%2014.873,19.192%20C14.873,20.63%2014.873,21.998%2014.873,22.376%20C14.873,22.684%2015.059,23.023%2015.643,22.912%20C20.209,21.389%2023.5,17.08%2023.5,12%20C23.5,5.648%2018.352,0.5%2011.999,0.5%20Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/hr.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M5,13%20C4.44771525,13%204,12.5522847%204,12%20C4,11.4477153%204.44771525,11%205,11%20L19,11%20C19.5522847,11%2020,11.4477153%2020,12%20C20,12.5522847%2019.5522847,13%2019,13%20L5,13%20Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/image.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3epaginate-filter-picture-alternate%3c/title%3e%3ccircle%20cx='9.75'%20cy='6.247'%20r='2.25'/%3e%3cpath%20d='M16.916,8.71A1.027,1.027,0,0,0,16,8.158a1.007,1.007,0,0,0-.892.586L13.55,12.178a.249.249,0,0,1-.422.053l-.82-1.024a1,1,0,0,0-.813-.376,1.007,1.007,0,0,0-.787.426L7.59,15.71A.5.5,0,0,0,8,16.5H20a.5.5,0,0,0,.425-.237.5.5,0,0,0,.022-.486Z'/%3e%3cpath%20d='M22,0H5.5a2,2,0,0,0-2,2V18.5a2,2,0,0,0,2,2H22a2,2,0,0,0,2-2V2A2,2,0,0,0,22,0Zm-.145,18.354a.5.5,0,0,1-.354.146H6a.5.5,0,0,1-.5-.5V2.5A.5.5,0,0,1,6,2H21.5a.5.5,0,0,1,.5.5V18A.5.5,0,0,1,21.855,18.351Z'/%3e%3cpath%20d='M19.5,22H2.5a.5.5,0,0,1-.5-.5V4.5a1,1,0,0,0-2,0V22a2,2,0,0,0,2,2H19.5a1,1,0,0,0,0-2Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/italic.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3etext-italic%3c/title%3e%3cpath%20d='M22.5.248H14.863a1.25,1.25,0,0,0,0,2.5h1.086a.25.25,0,0,1,.211.384L4.78,21.017a.5.5,0,0,1-.422.231H1.5a1.25,1.25,0,0,0,0,2.5H9.137a1.25,1.25,0,0,0,0-2.5H8.051a.25.25,0,0,1-.211-.384L19.22,2.98a.5.5,0,0,1,.422-.232H22.5a1.25,1.25,0,0,0,0-2.5Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/link.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3ehyperlink-2%3c/title%3e%3cpath%20d='M12.406,14.905a1,1,0,0,0-.543,1.307,1,1,0,0,1-.217,1.09L8.818,20.131a2,2,0,0,1-2.828,0L3.868,18.01a2,2,0,0,1,0-2.829L6.7,12.353a1.013,1.013,0,0,1,1.091-.217,1,1,0,0,0,.763-1.849,3.034,3.034,0,0,0-3.268.652L2.454,13.767a4.006,4.006,0,0,0,0,5.657l2.122,2.121a4,4,0,0,0,5.656,0l2.829-2.828a3.008,3.008,0,0,0,.651-3.27A1,1,0,0,0,12.406,14.905Z'/%3e%3cpath%20d='M7.757,16.241a1.011,1.011,0,0,0,1.414,0L16.95,8.463a1,1,0,0,0-1.414-1.414L7.757,14.827A1,1,0,0,0,7.757,16.241Z'/%3e%3cpath%20d='M21.546,4.574,19.425,2.453a4.006,4.006,0,0,0-5.657,0L10.939,5.281a3.006,3.006,0,0,0-.651,3.269,1,1,0,1,0,1.849-.764A1,1,0,0,1,12.354,6.7l2.828-2.828a2,2,0,0,1,2.829,0l2.121,2.121a2,2,0,0,1,0,2.829L17.3,11.645a1.015,1.015,0,0,1-1.091.217,1,1,0,0,0-.765,1.849,3.026,3.026,0,0,0,3.27-.651l2.828-2.828A4.007,4.007,0,0,0,21.546,4.574Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/mention.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3eread-email-at-alternate%3c/title%3e%3cpath%20d='M12,.5A11.634,11.634,0,0,0,.262,12,11.634,11.634,0,0,0,12,23.5a11.836,11.836,0,0,0,6.624-2,1.25,1.25,0,1,0-1.393-2.076A9.34,9.34,0,0,1,12,21a9.132,9.132,0,0,1-9.238-9A9.132,9.132,0,0,1,12,3a9.132,9.132,0,0,1,9.238,9v.891a1.943,1.943,0,0,1-3.884,0V12A5.355,5.355,0,1,0,12,17.261a5.376,5.376,0,0,0,3.861-1.634,4.438,4.438,0,0,0,7.877-2.736V12A11.634,11.634,0,0,0,12,.5Zm0,14.261A2.763,2.763,0,1,1,14.854,12,2.812,2.812,0,0,1,12,14.761Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/ol.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3elist-numbers%3c/title%3e%3cpath%20d='M7.75,4.5h15a1,1,0,0,0,0-2h-15a1,1,0,0,0,0,2Z'/%3e%3cpath%20d='M22.75,11h-15a1,1,0,1,0,0,2h15a1,1,0,0,0,0-2Z'/%3e%3cpath%20d='M22.75,19.5h-15a1,1,0,0,0,0,2h15a1,1,0,0,0,0-2Z'/%3e%3cpath%20d='M2.212,17.248A2,2,0,0,0,.279,18.732a.75.75,0,1,0,1.45.386.5.5,0,1,1,.483.63.75.75,0,1,0,0,1.5.5.5,0,1,1-.482.635.75.75,0,1,0-1.445.4,2,2,0,1,0,3.589-1.648.251.251,0,0,1,0-.278,2,2,0,0,0-1.662-3.111Z'/%3e%3cpath%20d='M4.25,10.748a2,2,0,0,0-4,0,.75.75,0,0,0,1.5,0,.5.5,0,0,1,1,0,1.031,1.031,0,0,1-.227.645L.414,14.029A.75.75,0,0,0,1,15.248H3.5a.75.75,0,0,0,0-1.5H3.081a.249.249,0,0,1-.195-.406L3.7,12.33A2.544,2.544,0,0,0,4.25,10.748Z'/%3e%3cpath%20d='M4,5.248H3.75A.25.25,0,0,1,3.5,5V1.623A1.377,1.377,0,0,0,2.125.248H1.5a.75.75,0,0,0,0,1.5h.25A.25.25,0,0,1,2,2V5a.25.25,0,0,1-.25.25H1.5a.75.75,0,0,0,0,1.5H4a.75.75,0,0,0,0-1.5Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/paragraph.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3eparagraph%3c/title%3e%3cpath%20d='M22.5.248H7.228a6.977,6.977,0,1,0,0,13.954H9.546a.25.25,0,0,1,.25.25V22.5a1.25,1.25,0,0,0,2.5,0V3a.25.25,0,0,1,.25-.25h3.682a.25.25,0,0,1,.25.25V22.5a1.25,1.25,0,0,0,2.5,0V3a.249.249,0,0,1,.25-.25H22.5a1.25,1.25,0,0,0,0-2.5ZM9.8,11.452a.25.25,0,0,1-.25.25H7.228a4.477,4.477,0,1,1,0-8.954H9.546A.25.25,0,0,1,9.8,3Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/quote.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3eclose-quote%3c/title%3e%3cpath%20d='M18.559,3.932a4.942,4.942,0,1,0,0,9.883,4.609,4.609,0,0,0,1.115-.141.25.25,0,0,1,.276.368,6.83,6.83,0,0,1-5.878,3.523,1.25,1.25,0,0,0,0,2.5,9.71,9.71,0,0,0,9.428-9.95V8.873A4.947,4.947,0,0,0,18.559,3.932Z'/%3e%3cpath%20d='M6.236,3.932a4.942,4.942,0,0,0,0,9.883,4.6,4.6,0,0,0,1.115-.141.25.25,0,0,1,.277.368A6.83,6.83,0,0,1,1.75,17.565a1.25,1.25,0,0,0,0,2.5,9.711,9.711,0,0,0,9.428-9.95V8.873A4.947,4.947,0,0,0,6.236,3.932Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/redo.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3eredo%3c/title%3e%3cpath%20d='M22.608.161a.5.5,0,0,0-.545.108L19.472,2.86a.25.25,0,0,1-.292.045A12.537,12.537,0,0,0,6.214,3.77,12.259,12.259,0,0,0,6.1,23.632a1.25,1.25,0,0,0,1.476-2.018A9.759,9.759,0,0,1,7.667,5.805a10,10,0,0,1,9.466-1.1.25.25,0,0,1,.084.409l-1.85,1.85a.5.5,0,0,0,.354.853h6.7a.5.5,0,0,0,.5-.5V.623A.5.5,0,0,0,22.608.161Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/remove.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3edelete-2-alternate%3c/title%3e%3cpath%20d='M20.485,3.511A12.01,12.01,0,1,0,24,12,12.009,12.009,0,0,0,20.485,3.511Zm-1.767,15.21A9.51,9.51,0,1,1,21.5,12,9.508,9.508,0,0,1,18.718,18.721Z'/%3e%3cpath%20d='M16.987,7.01a1.275,1.275,0,0,0-1.8,0l-3.177,3.177L8.829,7.01A1.277,1.277,0,0,0,7.024,8.816L10.2,11.993,7.024,15.171a1.277,1.277,0,0,0,1.805,1.806L12.005,13.8l3.177,3.178a1.277,1.277,0,0,0,1.8-1.806l-3.176-3.178,3.176-3.177A1.278,1.278,0,0,0,16.987,7.01Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/strike.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3etext-strike-through%3c/title%3e%3cpath%20d='M23.75,12.952A1.25,1.25,0,0,0,22.5,11.7H13.564a.492.492,0,0,1-.282-.09c-.722-.513-1.482-.981-2.218-1.432-2.8-1.715-4.5-2.9-4.5-4.863,0-2.235,2.207-2.569,3.523-2.569a4.54,4.54,0,0,1,3.081.764A2.662,2.662,0,0,1,13.615,5.5l0,.3a1.25,1.25,0,1,0,2.5,0l0-.268A4.887,4.887,0,0,0,14.95,1.755C13.949.741,12.359.248,10.091.248c-3.658,0-6.023,1.989-6.023,5.069,0,2.773,1.892,4.512,4,5.927a.25.25,0,0,1-.139.458H1.5a1.25,1.25,0,0,0,0,2.5H12.477a.251.251,0,0,1,.159.058,4.339,4.339,0,0,1,1.932,3.466c0,3.268-3.426,3.522-4.477,3.522-1.814,0-3.139-.405-3.834-1.173a3.394,3.394,0,0,1-.65-2.7,1.25,1.25,0,0,0-2.488-.246A5.76,5.76,0,0,0,4.4,21.753c1.2,1.324,3.114,2,5.688,2,4.174,0,6.977-2.42,6.977-6.022a6.059,6.059,0,0,0-.849-3.147.25.25,0,0,1,.216-.377H22.5A1.25,1.25,0,0,0,23.75,12.952Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/table.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill-rule='evenodd'%20d='M17,17%20L17,22%20L19,22%20C20.6568542,22%2022,20.6568542%2022,19%20L22,17%20L17,17%20Z%20M15,17%20L9,17%20L9,22%20L15,22%20L15,17%20Z%20M17,15%20L22,15%20L22,9%20L17,9%20L17,15%20Z%20M15,15%20L15,9%20L9,9%20L9,15%20L15,15%20Z%20M17,7%20L22,7%20L22,5%20C22,3.34314575%2020.6568542,2%2019,2%20L17,2%20L17,7%20Z%20M15,7%20L15,2%20L9,2%20L9,7%20L15,7%20Z%20M24,16.1768671%20L24,19%20C24,21.7614237%2021.7614237,24%2019,24%20L5,24%20C2.23857625,24%202.11453371e-15,21.7614237%201.77635684e-15,19%20L0,5%20C-3.38176876e-16,2.23857625%202.23857625,2.28362215e-15%205,0%20L19,0%20C21.7614237,-5.07265313e-16%2024,2.23857625%2024,5%20L24,7.82313285%20C24.0122947,7.88054124%2024.0187107,7.93964623%2024.0187107,8%20C24.0187107,8.06035377%2024.0122947,8.11945876%2024,8.17686715%20L24,15.8231329%20C24.0122947,15.8805412%2024.0187107,15.9396462%2024.0187107,16%20C24.0187107,16.0603538%2024.0122947,16.1194588%2024,16.1768671%20Z%20M7,2%20L5,2%20C3.34314575,2%202,3.34314575%202,5%20L2,7%20L7,7%20L7,2%20Z%20M2,9%20L2,15%20L7,15%20L7,9%20L2,9%20Z%20M2,17%20L2,19%20C2,20.6568542%203.34314575,22%205,22%20L7,22%20L7,17%20L2,17%20Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/ul.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3elist-bullets%3c/title%3e%3ccircle%20cx='2.5'%20cy='3.998'%20r='2.5'/%3e%3cpath%20d='M8.5,5H23a1,1,0,0,0,0-2H8.5a1,1,0,0,0,0,2Z'/%3e%3ccircle%20cx='2.5'%20cy='11.998'%20r='2.5'/%3e%3cpath%20d='M23,11H8.5a1,1,0,0,0,0,2H23a1,1,0,0,0,0-2Z'/%3e%3ccircle%20cx='2.5'%20cy='19.998'%20r='2.5'/%3e%3cpath%20d='M23,19H8.5a1,1,0,0,0,0,2H23a1,1,0,0,0,0-2Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/underline.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3etext-underline%3c/title%3e%3cpath%20d='M22.5,21.248H1.5a1.25,1.25,0,0,0,0,2.5h21a1.25,1.25,0,0,0,0-2.5Z'/%3e%3cpath%20d='M1.978,2.748H3.341a.25.25,0,0,1,.25.25v8.523a8.409,8.409,0,0,0,16.818,0V3a.25.25,0,0,1,.25-.25h1.363a1.25,1.25,0,0,0,0-2.5H16.3a1.25,1.25,0,0,0,0,2.5h1.363a.25.25,0,0,1,.25.25v8.523a5.909,5.909,0,0,1-11.818,0V3a.25.25,0,0,1,.25-.25H7.7a1.25,1.25,0,1,0,0-2.5H1.978a1.25,1.25,0,0,0,0,2.5Z'/%3e%3c/svg%3e","../assets/tiptap/images/icons/undo.svg":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3eundo%3c/title%3e%3cpath%20d='M17.786,3.77A12.542,12.542,0,0,0,4.821,2.905a.249.249,0,0,1-.292-.045L1.937.269A.507.507,0,0,0,1.392.16a.5.5,0,0,0-.308.462v6.7a.5.5,0,0,0,.5.5h6.7a.5.5,0,0,0,.354-.854L6.783,5.115
1a.253.253,0,0,1-.068-.228.249.249,0,0,1,.152-.181,10,10,0,0,1,9.466,1.1,9.759,9.759,0,0,1,.094,15.809A1.25,1.25,0,0,0,17.9,23.631a12.122,12.122,0,0,0,5.013-9.961A12.125,12.125,0,0,0,17.786,3.77Z'/%3e%3c/svg%3e"}),V={};for(const ie in S){const e=ie.split("/").pop().replace(".svg","");V[e]=S[ie]}const z={computed:{iconSrc(){return V[this.name]||""}},props:{name:{type:String,default:""},size:{type:String,default:"normal"},modifier:{type:Object,default:null},fixAlign:{type:Boolean,default:!1}}},F=["src","alt"];const T=e(z,[["render",function(e,t,a,s,i,o){return c(),l("div",{class:g(["icon",[`icon--${a.name}`,`icon--${a.size}`,{"has-align-fix":a.fixAlign}]])},[o.iconSrc?(c(),l("img",{key:0,src:o.iconSrc,alt:a.name},null,8,F)):r("",!0)],2)}],["__scopeId","data-v-0e5233be"]]),I=x.create({name:"fontSize",addOptions:()=>({types:["textStyle"]}),addGlobalAttributes(){return[{types:this.options.types,attributes:{fontSize:{default:null,parseHTML:e=>e.style.fontSize.replace(/['"]+/g,""),renderHTML:e=>e.fontSize?{style:`font-size: ${e.fontSize}`}:{}}}}]},addCommands:()=>({setFontSize:e=>({chain:t})=>t().setMark("textStyle",{fontSize:e+"px"}).run(),unsetFontSize:()=>({chain:e})=>e().setMark("textStyle",{fontSize:null}).removeEmptyTextStyle().run()})}),D={class:"editor"},j={key:0},P={class:"menubar"},$=["value"];const q=e({components:{EditorContent:M,Icon:T},props:{_content:{type:String,default:""}},data:()=>({editor:null,content:"",editor_key:0}),mounted(){try{this.editor=new Z({extensions:[_,y,A,H,k,B,I],content:this._content.replace(/\+(?!\+)/g," "),onUpdate:({editor:e})=>{const t=e.getHTML();this.content=t}})}catch(e){}},methods:{addImage(){const e=window.prompt("URL");e&&this.editor.chain().focus().setImage({src:e}).run()},upadteFont(e){}},beforeDestroy(){this.editor.destroy()}},[["render",function(e,t,a,s,i,o){const n=C("icon"),v=C("EditorContent");return c(),l("div",D,[i.editor?(c(),l("div",j,[d("div",P,[d("button",{class:g(["menubar__button",{"is-active":i.editor.isActive("bold")}]),onClick:t[0]||(t[0]=e=>i.editor.chain().focus().toggleBold().run())},[p(n,{name:"bold"})],2),d("button",{class:g(["menubar__button",{"is-active":i.editor.isActive("italic")}]),onClick:t[1]||(t[1]=e=>i.editor.chain().focus().toggleItalic().run())},[p(n,{name:"italic"})],2),d("button",{class:g(["menubar__button",{"is-active":i.editor.isActive("strike")}]),onClick:t[2]||(t[2]=e=>i.editor.chain().focus().toggleStrike().run())},[p(n,{name:"strike"})],2),d("button",{class:g(["menubar__button",{"is-active":i.editor.isActive("underline")}]),onClick:t[3]||(t[3]=e=>i.editor.chain().focus().toggleUnderline().run())},[p(n,{name:"underline"})],2),d("button",{class:g(["menubar__button",{"is-active":i.editor.isActive("heading",{level:1})}]),onClick:t[4]||(t[4]=e=>i.editor.commands.setFontSize(60)&&i.editor.chain().focus().toggleBold().run())}," h1 ",2),d("button",{class:g(["menubar__button",{"is-active":i.editor.isActive("heading",{level:2})}]),onClick:t[5]||(t[5]=e=>i.editor.commands.setFontSize(40)&&i.editor.chain().focus().toggleBold().run())}," h2 ",2),d("button",{class:g(["menubar__button",{"is-active":i.editor.isActive("heading",{level:3})}]),onClick:t[6]||(t[6]=e=>i.editor.commands.setFontSize(20)&&i.editor.chain().focus().toggleBold().run())}," h3 ",2),d("button",{class:g(["menubar__button",{"is-active":i.editor.isActive("code")}]),onClick:t[7]||(t[7]=e=>i.editor.chain().focus().toggleBlockquote().run())},[p(n,{name:"quote"})],2),d("button",{class:g(["menubar__button",{"is-active":i.editor.isActive("code")}]),onClick:t[8]||(t[8]=e=>i.editor.chain().focus().toggleCode().run())},[p(n,{name:"code"})],2),d("button",{class:g(["menubar__button",{"is-active":i.editor.isActive("code_block")}]),onClick:t[9]||(t[9]=e=>i.editor.chain().focus().toggleCodeBlock().run())},[p(n,{name:"combine_cells"})],2),d("button",{class:g(["menubar__button",{"is-active":i.editor.isActive("paragraph")}]),onClick:t[10]||(t[10]=e=>i.editor.chain().focus().setParagraph().run())},[p(n,{name:"paragraph"})],2),d("button",{class:"menubar__button",onClick:t[11]||(t[11]=(...e)=>o.addImage&&o.addImage(...e))},[p(n,{name:"image"})]),d("button",{class:g(["menubar__button",{"is-active":i.editor.isActive("bullet_list")}]),onClick:t[12]||(t[12]=e=>i.editor.chain().focus().toggleBulletList().run())},[p(n,{name:"ul"})],2),d("button",{class:g(["menubar__button",{"is-active":i.editor.isActive("ordered_list")}]),onClick:t[13]||(t[13]=e=>i.editor.chain().focus().toggleOrderedList().run())},[p(n,{name:"ol"})],2),d("button",{class:"menubar__button",onClick:t[14]||(t[14]=e=>i.editor.chain().focus().setHorizontalRule().run())},[p(n,{name:"hr"})]),d("button",{class:g(["menubar__button",{"is-active":{level:"body-green"}}]),onClick:t[15]||(t[15]=e=>i.editor.commands.setFontSize(40))}," Big font "),d("button",{class:"menubar__button",onClick:t[16]||(t[16]=e=>
1i.editor.chain().focus().undo().run())},[p(n,{name:"undo"})]),d("button",{class:"menubar__button",onClick:t[17]||(t[17]=e=>i.editor.chain().focus().redo().run())},[p(n,{name:"redo"})]),d("input",{type:"color",class:"menubar__button",onInput:t[18]||(t[18]=e=>i.editor.chain().focus().setColor(e.target.value).run()),value:i.editor.getAttributes("textStyle").color},null,40,$)])])):r("",!0),(c(),h(v,{class:"editor__content",editor:i.editor,dir:"auto",key:i.editor_key},null,8,["editor"]))])}]]);const N=t("object"==typeof self?self.FormData:window.FormData),O={class:"container",style:{padding:"10%"}},E={key:0},U={class:"box"},R={class:"field"},W={class:"control has-icons-right"},G={class:"field"},Y={class:"file has-name"},J={class:"file-label"},K={class:"file-name"},Q={class:"box"},X={type:"submit",class:"button is-info"},ee={key:0},te={key:1},ae={key:1};const se=e({setup(){const e=a(),t=s();return{userStore:e,query:v(t.query)}},components:{editor:q,Navbar:i},data(){return{content:"",_title:"",post_id:"",title:this._title,uploadFieldName:"...",formData:new N,editor_key:0}},computed:{},async mounted(){const e=this.query;if(this.post_id=e.post_id||"",this.title=e._title||"",this.content=e.content||"",this.post_id)try{const{data:e}=await o.get(`/blog/posts/${this.post_id}/`);this.title=e.title??this.title,this.content=e.content??this.content}catch(t){}this.editor_key++},methods:{filesChange:function(e){if(!e.length)return;const t=e[0];t.type.startsWith("image/")?t.size>8388608?n.fire({icon:"warning",title:"Image too large",text:`Please choose a cover image under 8 MB (this one is ${(t.size/1024/1024).toFixed(1)} MB).`}):(this.uploadFieldName=t.name,this.formData.set("image",t)):n.fire({icon:"warning",title:"Not an image",text:"Please choose an image file for the post cover."})},upload:async function(){let e=this.title,t=this.$refs._editor.content;t||(t=this.content),this.formData.append("title",e),this.formData.append("content",t),this.formData.append("status","0");let a="/blog/posts/";if(this.post_id){a=a+this.post_id+"/";var s=o.put(a,this.formData,{headers:{"Content-Type":"multipart/form-data"}})}else s=o.post(a,this.formData,{headers:{"Content-Type":"multipart/form-data"}});return s.then((()=>{n.fire({icon:"success",title:"Submitted for review!",text:"Thanks! Your post has been submitted and will appear on the blog once our team approves it.",footer:"<a href='/profile'>Track it in your profile</a>"})}),(e=>{var t,a;const s=null==(t=null==e?void 0:e.response)?void 0:t.data,i=null==(a=null==e?void 0:e.response)?void 0:a.status;let o="Something went wrong while saving your post. Please try again.";if(s&&"object"==typeof s&&!Array.isArray(s)){const e=[];for(const[t,a]of Object.entries(s)){const s=Array.isArray(a)?a.join(", "):String(a);e.push(`<p><strong>${t}:</strong> <span style="color:#dc2626">${s}</span></p>`)}e.length&&(o=e.join(""))}else"string"==typeof s&&s.trim()&&!s.trim().startsWith("<")?o=s:(null==e?void 0:e.response)?i&&(o=`The server returned an error (HTTP ${i}). Please make sure you're signed in, then try again.`):o="Couldn't reach the server. Please check your connection and try again.";n.fire({icon:"error",title:"Could not publish",html:o,footer:"<a href='/feedback'>Report an issue</a>"})}))},publish_post:async function(){await this.upload()}}},[["render",function(e,t,a,s,i,o){const n=C("navbar"),r=C("editor"),g=C("router-link");return c(),l("article",null,[p(n),d("div",O,[t[13]||(t[13]=d("div",{class:"mb-12 text-xl"},[d("p",null,"Write something great!"),d("p",{class:"is-size-6 has-text-grey"}," Posts are reviewed by our team before they appear publicly on the blog. ")],-1)),s.userStore.user?(c(),l("div",E,[d("div",U,[d("form",{onSubmit:t[2]||(t[2]=m(((...e)=>o.publish_post&&o.publish_post(...e)),["prevent"])),enctype:"multipart/form-data"},[d("div",R,[d("div",W,[u(d("input",{class:"input has-text-black",type:"text",placeholder:"Title","onUpdate:modelValue":t[0]||(t[0]=e=>i.title=e),dir:"auto"},null,512),[[L,i.title]]),t[3]||(t[3]=d("span",{class:"icon is-small is-right"},[d("i",{class:"fas fa-text-width"})],-1))])]),d("div",G,[d("div",Y,[d("label",J,[d("input",{class:"file-input",type:"file",id:"file",ref:"file",onChange:t[1]||(t[1]=e=>o.filesChange(e.target.files))},null,544),t[4]||(t[4]=d("span",{class:"file-cta"},[d("span",{class:"file-icon"},[d("i",{class:"fas fa-upload"})]),d("span",{class:"file-label"}," Select the post cover ... ")],-1)),d("span",K,w(i.uploadFieldName),1)])])]),d("div",Q,[(c(),h(r,{ref:"_editor",_content:i.content,key:i.editor_key},null,8,["_content"])),d("button",X,[i._title?(c(),l("div",ee,t[5]||(t[5]=[d("span",null,"Save changes",-1)]))):(c(),l("div",te,t[6]||(t[6]=[d("span",null,"Publish",-1)]))),t[7]||
1(t[7]=d("span",{class:"icon is-small"},[d("i",{class:"fas fa-check"})],-1))])])],32)])])):(c(),l("div",ae,[d("p",null,[t[10]||(t[10]=f(" You don't have permission to use this page. ")),p(g,{style:{color:"blue"},to:"/login"},{default:b((()=>t[8]||(t[8]=[f(" Log in ")]))),_:1}),t[11]||(t[11]=f(" If you already have an account or ")),p(g,{style:{color:"red"},to:"/signup"},{default:b((()=>t[9]||(t[9]=[f(" Register ")]))),_:1}),t[12]||(t[12]=f(" if you don't. "))])]))])])}]]);export{se as default};

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