PageSourceSearch

https://chatspark.io/_next/static/chunks/6160.b14a04577b629221.js

js chatspark.io collected 2026-10-04 16:09:17 UTC 28,134 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6160],{16160:function(e,t,o){"use strict";o.r(t),o.d(t,{MarkButton:function(){return Q},Toolbar:function(){return J}});var n=o(57437),i=o(98559),s=o(40006),l=o(25112),r=o(21183),c=o(31718),a=o(3360),d=o(35012),h=o(60373),C=o(55459),x=o(30551),u=o(88089),p=o(27640),m=o(72940),g=o(5015),f=o(54603),j=o(78234),w=o(54816),k=o(63676),b=o(88703),y=o(74332),S=o(29967),M=o(94725),H=o(1908);o(92678);var v=o(2265),L=o(71931),V=o(35848),B=o(19741),I=o(94107),Z=o(80720),T=o(30166),E=o(38786),z=o(48080),F=o(43170),R=o(32921),A=o(91380),O=o(14099),P=o(53201),_=o(77255),K=o(15096),U=o(27340),q=o(86063),D=o(90908),W=o(67133),N=o(12240),X=o(30760);let Y=(0,T.default)(()=>Promise.all([o.e(4560),o.e(8497)]).then(o.bind(o,41799)),{loadableGenerated:{webpack:()=>[41799]},ssr:!1}),G=e=>{let{isOpen:t,onClose:o,style:i,isSquare:s,isCalendly:l}=e,r=navigator.platform.toUpperCase().indexOf("MAC")>=0?"⌘":"Ctrl",c=[{action:"Bold",keys:["".concat(r),"B"]},{action:"Italic",keys:["".concat(r),"I"]},{action:"Underline",keys:["".concat(r),"U"]},..."todo"===i?[{action:"Heading 1",keys:["".concat(r),"Alt","1"]},{action:"Heading 2",keys:["".concat(r),"Alt","2"]}]:[],{action:"Bullet List",keys:["".concat(r),"Shift","8"]},{action:"Ordered List",keys:["".concat(r),"Shift","7"]},{action:"Insert Link",keys:["".concat(r),"K"]},{action:"Remove Link",keys:["".concat(r),"Shift","K"]},{action:"Undo",keys:["".concat(r),"Z"]},{action:"Redo",keys:["".concat(r),"Shift","Z"]},...s?[{action:"Insert Square Link",keys:["".concat(r),"Shift","S"]}]:[],...l?[{action:"Insert Calendly Link",keys:["".concat(r),"Shift","C"]}]:[],{action:"Emoji Picker",keys:["".concat(r),"E"]},{action:"Show Shortcuts",keys:["".concat(r),"/"]}];return(0,n.jsxs)(z.Modal,{isOpen:t,onClose:o,size:"lg",children:[(0,n.jsx)(F.ModalOverlay,{}),(0,n.jsxs)(R.ModalContent,{children:[(0,n.jsx)(A.ModalHeader,{children:"Keyboard Shortcuts"}),(0,n.jsx)(O.ModalCloseButton,{}),(0,n.jsx)(P.ModalBody,{pb:6,children:(0,n.jsxs)(_.Table,{variant:"simple",size:"sm",children:[(0,n.jsx)(K.Thead,{children:(0,n.jsxs)(U.Tr,{children:[(0,n.jsx)(q.Th,{children:"Action"}),(0,n.jsx)(q.Th,{children:"Shortcut"})]})}),(0,n.jsx)(D.Tbody,{children:c.map((e,t)=>(0,n.jsxs)(U.Tr,{children:[(0,n.jsx)(W.Td,{children:e.action}),(0,n.jsx)(W.Td,{children:e.keys.map((t,o)=>(0,n.jsxs)("span",{children:[(0,n.jsx)(N.Kbd,{children:t}),o<e.keys.length-1&&" + "]},o))})]},t))})]})})]})]})},Q=e=>{let{onClick:t,format:o,icon:s,buttonStyles:l}=e;return(0,n.jsx)(i.IconButton,{onClick:t,"aria-label":o,icon:s,borderWidth:0,...l})},J=e=>{let{editor:t,style:o,showEmojiPicker:c,isSquare:a,isCalendly:d,showKeyboardShortcuts:h}=e,C={display:"inline",variant:"outline",backgroundColor:"transparent",color:"#2B6CB0",_hover:{color:"#000"},fontSize:"20px",width:"28px",height:"28px",minWidth:"auto"};return(0,n.jsxs)(s.HStack,{background:"transparent",borderWidth:"0",borderRadius:"5px",padding:"8px",spacing:"0px",wrap:"wrap",justifyContent:"space-between",children:[(0,n.jsx)(Q,{format:"bold",onClick:()=>t.chain().focus().toggleBold().run(),icon:(0,n.jsx)(l.Icon,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",children:(0,n.jsx)("path",{d:"M11.4062 15.625H5.625V4.375H10.9375C11.5639 4.37504 12.1771 4.55435 12.7048 4.89174C13.2325 5.22914 13.6526 5.71052 13.9155 6.27903C14.1784 6.84754 14.2731 7.47942 14.1884 8.10001C14.1037 8.72061 13.8431 9.30399 13.4375 9.78125C13.9673 10.205 14.3528 10.7825 14.5408 11.4344C14.7289 12.0862 14.7102 12.7803 14.4875 13.4211C14.2647 14.0619 13.8488 14.6179 13.297 15.0126C12.7452 15.4073 12.0847 15.6213 11.4062 15.625ZM7.5 13.75H11.3937C11.5784 13.75 11.7613 13.7136 11.9319 13.643C12.1025 13.5723 12.2575 13.4687 12.3881 13.3381C12.5187 13.2075 12.6223 13.0525 12.693 12.8819C12.7636 12.7113 12.8 12.5284 12.8 12.3438C12.8 12.1591 12.7636 11.9762 12.693 11.8056C12.6223 11.635 12.5187 11.48 12.3881 11.3494C12.2575 11.2188 12.1025 11.1152 11.9319 11.0445C11.7613 10.9739 11.5784 10.9375 11.3937 10.9375H7.5V13.75ZM7.5 9.0625H10.9375C11.1222 9.0625 11.305 9.02613 11.4756 8.95546C11.6463 8.88478 11.8013 8.7812 11.9319 8.65062C12.0625 8.52004 12.166 8.36501 12.2367 8.1944C12.3074 8.02378 12.3438 7.84092 12.3438 7.65625C12.3438 7.47158 12.3074 7.28872 12.2367 7.1181C12.166 6.94749 12.0625 6.79246 11.9319 6.66188C11.8013 6.5313 11.6463 6.42772 11.4756 6.35704C11.305 6.28637 11.1222 6.25 10.9375 6.25H7.5V9.0625Z",fill:"#212529"})}),buttonStyles:C}),(0,n.jsx)(Q,{format:"italic",icon:(0,n.jsx)(l.Icon,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",children:(0,n.jsx)("path",{d:"M15.625 5.625V4.375H7.5V5.625H10.7125L7.98125 14.375H4.375V15.625H12.5V14.375H9.2875L12.0187 5.625H15.625Z",fill:"#212529"})}),onClick:()=>t.chain().focus().toggleItalic().run(),buttonStyles:C}),(0,n.jsx)(Q,{format:"underline",icon:(0,n.jsx)(l.Icon,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",children:(0,n.jsx)("path",{d:"M2.5 16.25H17.5V17.5
1H2.5V16.25ZM10 14.375C8.83968 14.375 7.72688 13.9141 6.90641 13.0936C6.08594 12.2731 5.625 11.1603 5.625 10V3.125H6.875V10C6.875 10.8288 7.20424 11.6237 7.79029 12.2097C8.37634 12.7958 9.1712 13.125 10 13.125C10.8288 13.125 11.6237 12.7958 12.2097 12.2097C12.7958 11.6237 13.125 10.8288 13.125 10V3.125H14.375V10C14.375 11.1603 13.9141 12.2731 13.0936 13.0936C12.2731 13.9141 11.1603 14.375 10 14.375Z",fill:"#212529"})}),onClick:()=>t.chain().focus().toggleUnderline().run(),buttonStyles:C}),"todo"===o?(0,n.jsx)(Q,{format:"heading-one",icon:(0,n.jsx)(B.r,{}),onClick:()=>t.chain().focus().toggleHeading({level:1}).run(),buttonStyles:C}):null,"todo"===o?(0,n.jsx)(Q,{format:"heading-two",icon:(0,n.jsx)(I.X,{}),onClick:()=>t.chain().focus().toggleHeading({level:2}).run(),buttonStyles:C}):null,(0,n.jsx)(Q,{format:"bulletlist",icon:(0,n.jsxs)(l.Icon,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",children:[(0,n.jsx)("path",{d:"M4.375 7.5C5.41053 7.5 6.25 6.66053 6.25 5.625C6.25 4.58947 5.41053 3.75 4.375 3.75C3.33947 3.75 2.5 4.58947 2.5 5.625C2.5 6.66053 3.33947 7.5 4.375 7.5Z",fill:"#212529"}),(0,n.jsx)("path",{d:"M4.375 16.25C5.41053 16.25 6.25 15.4105 6.25 14.375C6.25 13.3395 5.41053 12.5 4.375 12.5C3.33947 12.5 2.5 13.3395 2.5 14.375C2.5 15.4105 3.33947 16.25 4.375 16.25Z",fill:"#212529"}),(0,n.jsx)("path",{d:"M10 13.75H18.75V15H10V13.75ZM10 5H18.75V6.25H10V5Z",fill:"#212529"})]}),onClick:()=>t.chain().focus().toggleBulletList().run(),buttonStyles:{marginLeft:"8px",...C}}),(0,n.jsx)(Q,{format:"orderedlist",icon:(0,n.jsx)(l.Icon,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",children:(0,n.jsx)("path",{d:"M10 13.75H18.75V15H10V13.75ZM10 5H18.75V6.25H10V5ZM5 7.5V2.5H3.75V3.125H2.5V4.375H3.75V7.5H2.5V8.75H6.25V7.5H5ZM6.25 17.5H2.5V15C2.5 14.6685 2.6317 14.3505 2.86612 14.1161C3.10054 13.8817 3.41848 13.75 3.75 13.75H5V12.5H2.5V11.25H5C5.33152 11.25 5.64946 11.3817 5.88388 11.6161C6.1183 11.8505 6.25 12.1685 6.25 12.5V13.75C6.25 14.0815 6.1183 14.3995 5.88388 14.6339C5.64946 14.8683 5.33152 15 5 15H3.75V16.25H6.25V17.5Z",fill:"#212529"})}),onClick:()=>t.chain().focus().toggleOrderedList().run(),buttonStyles:{marginRight:"8px",...C}}),(0,n.jsx)(E.Rw,{defaultValue:t.getAttributes("link").href,editor:t,onSubmit:e=>{if(null!==e){if(""===e){t.chain().focus().extendMarkRange("link").unsetLink().run();return}t.chain().focus().extendMarkRange("link").setLink({href:e}).run()}},children:(0,n.jsx)(Q,{format:"link",icon:(0,n.jsxs)(l.Icon,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",children:[(0,n.jsx)("path",{d:"M18.2812 4.22503C17.9329 3.87543 17.5189 3.59804 17.0631 3.40877C16.6072 3.2195 16.1185 3.12207 15.625 3.12207C15.1314 3.12207 14.6427 3.2195 14.1869 3.40877C13.7311 3.59804 13.3171 3.87543 12.9687 4.22503L13.8562 5.11253C14.0889 4.87984 14.3652 4.69526 14.6692 4.56934C14.9732 4.44341 15.2991 4.37859 15.6281 4.37859C15.9572 4.37859 16.283 4.44341 16.5871 4.56934C16.8911 4.69526 17.1673 4.87984 17.4 5.11253C17.6327 5.34521 17.8173 5.62145 17.9432 5.92547C18.0691 6.22949 18.1339 6.55533 18.1339 6.8844C18.1339 7.21347 18.0691 7.53931 17.9432 7.84333C17.8173 8.14735 17.6327 8.42359 17.4 8.65628L12.4 13.6563C11.9309 14.1262 11.2943 14.3905 10.6303 14.3911C9.96633 14.3917 9.3293 14.1285 8.85937 13.6594C8.38944 13.1903 8.12511 12.5537 8.12452 11.8897C8.12394 11.2257 8.38714 10.5887 8.85625 10.1188L9.7375 9.23128L8.85625 8.34378L7.96875 9.23128C7.61915 9.57966 7.34176 9.99364 7.15249 10.4495C6.96322 10.9053 6.86579 11.394 6.86579 11.8875C6.86579 12.3811 6.96322 12.8698 7.15249 13.3256C7.34176 13.7814 7.61915 14.1954 7.96875 14.5438C8.67593 15.2419 9.63129 15.6308 10.625 15.625C11.1204 15.6271 11.6114 15.5309 12.0695 15.3421C12.5275 15.1533 12.9436 14.8756 13.2937 14.525L18.2937 9.52503C18.9943 8.82025 19.3865 7.86619 19.3842 6.87244C19.3819 5.87869 18.9852 4.9265 18.2812 4.22503Z",fill:"#212529"}),(0,n.jsx)("path",{d:"M2.61875 15.5125C2.38537 15.2802 2.20018 15.0041 2.07381 14.7C1.94745 14.396 1.8824 14.0699 1.8824 13.7407C1.8824 13.4114 1.94745 13.0853 2.07381 12.7813C2.20018 12.4772 2.38537 12.2011 2.61875 11.9688L7.61875 6.96878C7.85104 6.7354 8.12716 6.55021 8.43123 6.42384C8.7353 6.29748 9.06134 6.23243 9.39062 6.23243C9.7199 6.23243 10.0459 6.29748 10.35 6.42384C10.6541 6.55021 10.9302 6.7354 11.1625 6.96878C11.3944 7.2029 11.5
177 7.48119 11.6993 7.78716C11.8217 8.09313 11.8815 8.42055 11.875 8.75003C11.8769 9.08053 11.8133 9.40813 11.6877 9.71388C11.5622 10.0196 11.3773 10.2974 11.1437 10.5313L9.81875 11.875L10.7062 12.7625L12.0312 11.4375C12.7366 10.7322 13.1328 9.77561 13.1328 8.77815C13.1328 7.78069 12.7366 6.82409 12.0312 6.11878C11.3259 5.41347 10.3693 5.01723 9.37187 5.01723C8.37441 5.01723 7.41781 5.41347 6.7125 6.11878L1.7125 11.1188C1.36196 11.4673 1.08377 11.8816 0.893948 12.338C0.704123 12.7944 0.6064 13.2839 0.6064 13.7782C0.6064 14.2725 0.704123 14.7619 0.893948 15.2183C1.08377 15.6747 1.36196 16.089 1.7125 16.4375C2.42426 17.1303 3.38181 17.5124 4.375 17.5C5.37694 17.501 6.33857 17.1055 7.05 16.4L6.1625 15.5125C5.9302 15.7459 5.65409 15.9311 5.35002 16.0575C5.04594 16.1838 4.7199 16.2489 4.39062 16.2489C4.06134 16.2489 3.7353 16.1838 3.43123 16.0575C3.12715 15.9311 2.85104 15.7459 2.61875 15.5125Z",fill:"#212529"})]}),buttonStyles:C})}),"minimal"===o?(0,n.jsx)(E.VF,{message:"Drag and drop an image inside the text field to upload it.",children:(0,n.jsx)(Q,{format:"image",icon:(0,n.jsxs)(l.Icon,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"none",children:[(0,n.jsx)("path",{d:"M11.875 8.75C12.2458 8.75 12.6084 8.64003 12.9167 8.43401C13.225 8.22798 13.4654 7.93514 13.6073 7.59253C13.7492 7.24992 13.7863 6.87292 13.714 6.50921C13.6416 6.14549 13.463 5.8114 13.2008 5.54917C12.9386 5.28695 12.6045 5.10837 12.2408 5.03603C11.8771 4.96368 11.5001 5.00081 11.1575 5.14273C10.8149 5.28464 10.522 5.52496 10.316 5.83331C10.11 6.14165 10 6.50416 10 6.875C10 7.37228 10.1975 7.84919 10.5492 8.20083C10.9008 8.55246 11.3777 8.75 11.875 8.75ZM11.875 6.25C11.9986 6.25 12.1195 6.28666 12.2222 6.35533C12.325 6.42401 12.4051 6.52162 12.4524 6.63582C12.4997 6.75003 12.5121 6.87569 12.488 6.99693C12.4639 7.11817 12.4044 7.22953 12.3169 7.31694C12.2295 7.40435 12.1182 7.46388 11.9969 7.48799C11.8757 7.51211 11.75 7.49973 11.6358 7.45243C11.5216 7.40512 11.424 7.32501 11.3553 7.22223C11.2867 7.11945 11.25 6.99861 11.25 6.875C11.25 6.70924 11.3158 6.55027 11.4331 6.43306C11.5503 6.31585 11.7092 6.25 11.875 6.25Z",fill:"#212529"}),(0,n.jsx)("path",{d:"M16.25 2.5H3.75C3.41848 2.5 3.10054 2.6317 2.86612 2.86612C2.6317 3.10054 2.5 3.41848 2.5 3.75V16.25C2.5 16.5815 2.6317 16.8995 2.86612 17.1339C3.10054 17.3683 3.41848 17.5 3.75 17.5H16.25C16.5815 17.5 16.8995 17.3683 17.1339 17.1339C17.3683 16.8995 17.5 16.5815 17.5 16.25V3.75C17.5 3.41848 17.3683 3.10054 17.1339 2.86612C16.8995 2.6317 16.5815 2.5 16.25 2.5ZM16.25 16.25H3.75V12.5L6.875 9.375L10.3688 12.8687C10.603 13.1016 10.9198 13.2322 11.25 13.2322C11.5802 13.2322 11.897 13.1016 12.1313 12.8687L13.125 11.875L16.25 15V16.25ZM16.25 13.2312L14.0063 10.9875C13.772 10.7547 13.4552 10.624 13.125 10.624C12.7948 10.624 12.478 10.7547 12.2437 10.9875L11.25 11.9812L7.75625 8.4875C7.52205 8.25469 7.20523 8.12401 6.875 8.12401C6.54477 8.12401 6.22795 8.25469 5.99375 8.4875L3.75 10.7312V3.75H16.25V13.2312Z",fill:"#212529"})]}),buttonStyles:C})}):"",(0,n.jsx)(Q,{format:"emojis",icon:(0,n.jsxs)(l.Icon,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 16",fill:"none",height:"0.85em",width:"0.85em",children:[(0,n.jsx)("g",{clipPath:"url(#clip0_312_2505)",children:(0,n.jsx)("path",{d:"M13.5938 8C13.5938 6.38384 12.9517 4.83387 11.8089 3.69107C10.6661 2.54827 9.11616 1.90625 7.5 1.90625C5.88384 1.90625 4.33387 2.54827 3.19107 3.69107C2.04827 4.83387 1.40625 6.38384 1.40625 8C1.40625 9.61616 2.04827 11.1661 3.19107 12.3089C4.33387 13.4517 5.88384 14.0938 7.5 14.0938C9.11616 14.0938 10.6661 13.4517 11.8089 12.3089C12.9517 11.1661 13.5938 9.61616 13.5938 8ZM0 8C0 6.01088 0.790176 4.10322 2.1967 2.6967C3.60322 1.29018 5.51088 0.5 7.5 0.5C9.48912 0.5 11.3968 1.29018 12.8033 2.6967C14.2098 4.10322 15 6.01088 15 8C15 9.98912 14.2098 11.8968 12.8033 13.3033C11.3968 14.7098 9.48912 15.5 7.5 15.5C5.51088 15.5 3.60322 14.7098 2.1967 13.3033C0.790176 11.8968 0 9.98912 0 8ZM5.20312 9.81934C5.64844 10.2998 6.41016 10.8125 7.5 10.8125C8.58984 10.8125 9.35156 10.2998 9.79688 9.81934C10.0605 9.53516 10.5059 9.51465 10.79 9.77832C11.0742 10.042 11.0947 10.4873 10.8311 10.7715C10.1865 11.4688 9.07324 12.2188 7.50293 12.2188C5.93262 12.2188 4.81641 11.4717 4.1748 10.7715C3.91113 10.4873 3.92871 10.042 4.21582 9.77832C4.50293 9.51465 4.94531 9.53223 5.20898 9.81934H5.20312ZM4.23047 6.59375C4.23047 6.34511 4.32924 6.10665 4.50506 5.93084C4.68087 5.75502 4.91933 5.65625 5.16797 5.65625C5.41661 5.65625 5.65507 5.75502 5.83088 5.93084C6.0067 6.10665 6.10547 6.34511 6.10547 6.59375C6.10547 6.84239 6.0067 7.08085 5.83088 7.25666C5.65507 7.43248 5.41661 7.53125 5.16797 7.53125C4.91933 7.53125 4.68087 7.43248 4.50506 7.25666C4.32924 7.08085 4.23047 6.84239 4.23047 6.59375ZM9.85547 5.65625C10.1041 5.65625 10.3426 5.75502 10.5184 5.93084C10.6942 6.10665 10.793 6.34511 10.793 6.59375C10.793 6.84239 10.6942 7.08085 10.5184 7.25666C10.3426 7.43248 10.1041 7.53125 9.85547 7.53125C9.60683 7.53125 9.36837 7.43248 9.19256 7.25666C9.01674 7.08085 8.91797 6.84239 8.91797 6.59375C8.91797 6.34511 9.01674 6.10665 9.19256 5.93084C9.36837 5.75502 9.60683 5.65625 9.85547 5.65625Z",fill:"#212529"})}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_312_2505",children:(0,n.jsx)("rect",{width:"15",height:"15",fill:"white",transform:"translate(0 0.5)"})})})]}),onClick:()=>{c()},buttonStyles:C}),a&&(0,n.jsx)(Q,{format:"square-short-code",icon:(0,n.jsx)(l.Icon,{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M256 128h512a128 128 0 0 1 128 128v512a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128m42.666667 128a42.666667 42.666667 0 0 0-42.666667 42.666667v426.666666a42.666667 42.666667 0 0 0 42.666667 42.666667h426.666666a42.666667 42.666667 0 0 0 42.666667-42.666667V298.666667a42.666667 42.666667 0 0 0-42.666667-42.666667H298.666667m106.666666 128h213.333334a21.333333 21.333333 0 0 1 21.333333 21.333333v213.333334a21.333333 21.333333 0 0 1-21.333333 21.333333h-213.333334a21.333333 21.333333 0 0 1-21.333333-21.333333v-213.333334a21.333333 21.333333 0 0 1 21.333333-21.333333z",fill:""})}),onClick:()=>$(t),buttonStyles:C}),d&&(0,n.jsx)(Q,{format:"calendly-short-code",icon:(0,n.jsxs)(l.Icon,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 641.89 395.28",style:{height:"25px",width:"25px",right:"5
1px",bottom:"2px",position:"relative"},children:[(0,n.jsx)("path",{class:"st0",d:"M505.27,365.28c-14.79,12.86-33.19,28.86-66.71,28.86h-20.01c-24.22,0-46.25-8.62-62.01-24.28  c-15.39-15.3-23.89-36.22-23.89-58.94v-26.87c0-22.72,8.48-43.66,23.89-58.94c15.77-15.66,37.79-24.28,62.01-24.28h20.01  c33.51,0,51.92,16,66.71,28.86c15.34,13.34,28.59,24.86,63.89,24.86c5.48,0,10.86-0.43,16.09-1.26c-0.04-0.11-0.08-0.2-0.12-0.3  c-2.1-5.1-4.57-10.12-7.42-14.96l-23.6-40.1c-21.65-36.8-61.68-59.46-104.98-59.46h-47.21c-43.3,0-83.33,22.67-104.98,59.46  l-23.6,40.1c-21.65,36.8-21.65,82.12,0,118.91l23.6,40.1c21.65,36.8,61.68,59.45,104.98,59.45h47.21  c43.3,0,83.33-22.67,104.98-59.45l23.6-40.1c2.85-4.85,5.32-9.85,7.42-14.95c0.04-0.11,0.08-0.2,0.12-0.3  c-5.23-0.83-10.59-1.26-16.09-1.26C533.87,340.42,520.61,351.94,505.27,365.28z",fill:"#000000"}),(0,n.jsx)("path",{class:"st0",d:"M438.57,225.16h-20.01c-36.86,0-61.09,25.83-61.09,58.89v26.87c0,33.06,24.22,58.89,61.09,58.89h20.01  c53.71,0,49.49-53.72,130.59-53.72c7.77,0,15.45,0.7,22.92,2.06c2.46-13.66,2.46-27.64,0-41.31c-7.48,1.36-15.15,2.06-22.92,2.06  C488.06,278.89,492.28,225.16,438.57,225.16z",fill:"#000000"}),(0,n.jsx)("path",{class:"st0",d:"M638.66,337.76c-13.85-10.02-29.74-16.56-46.59-19.64c-0.03,0.13-0.04,0.26-0.07,0.39  c-1.44,7.87-3.69,15.62-6.77,23.14c14.22,2.26,27.32,7.5,38.52,15.55c-0.04,0.12-0.07,0.24-0.11,0.37  c-6.46,20.57-16.2,39.96-28.93,57.6c-12.58,17.42-27.79,32.76-45.22,45.57c-36.18,26.62-79.27,40.68-124.63,40.68  c-28.08,0-55.31-5.39-80.94-16.02c-24.75-10.27-46.99-24.98-66.11-43.73c-19.11-18.75-34.1-40.56-44.57-64.85  c-10.83-25.14-16.33-51.85-16.33-79.4c0-27.55,5.5-54.26,16.33-79.4c10.47-24.28,25.46-46.1,44.57-64.85  c19.11-18.75,41.35-33.45,66.11-43.73c25.62-10.63,52.85-16.02,80.94-16.02c45.36,0,88.45,14.06,124.63,40.68  c17.43,12.82,32.63,28.15,45.22,45.57c12.73,17.65,22.47,37.04,28.93,57.6c0.04,0.13,0.08,0.25,0.11,0.37  c-11.19,8.04-24.3,13.3-38.52,15.55c3.08,7.53,5.34,15.3,6.77,23.17c0.03,0.13,0.04,0.25,0.07,0.38  c16.85-3.08,32.73-9.62,46.59-19.64c13.28-9.64,10.71-20.53,8.69-26.99C618.08,136.9,529.55,69.12,424.87,69.12  c-128.55,0-232.75,102.22-232.75,228.32c0,126.1,104.21,228.32,232.75,228.32c104.68,0,193.21-67.79,222.48-161.05  C649.38,358.29,651.96,347.41,638.66,337.76z",fill:"#000000"}),(0,n.jsx)("path",{class:"st1",d:"M585.25,253.26c-5.23,0.83-10.59,1.26-16.09,1.26c-35.29,0-48.55-11.52-63.89-24.86  c-14.79-12.86-33.19-28.86-66.71-28.86h-20.01c-24.22,0-46.25,8.62-62.01,24.28c-15.39,15.3-23.89,36.22-23.89,58.94v26.87  c0,22.72,8.48,43.66,23.89,58.94c15.77,15.66,37.79,24.28,62.01,24.28h20.01c33.51,0,51.92-16.01,66.71-28.86  c15.34-13.34,28.59-24.86,63.89-24.86c5.48,0,10.86,0.43,16.09,1.26c3.08-7.52,5.32-15.28,6.77-23.14c0.03-0.13,0.04-0.26,0.07-0.39  c-7.48-1.36-15.15-2.06-22.92-2.06c-81.1,0-76.88,53.72-130.59,53.72h-20.01c-36.86,0-61.09-25.83-61.09-58.89v-26.87  c0-33.06,24.22-58.89,61.09-58.89h20.01c53.71,0,49.5,53.72,130.59,53.72c7.77,0,15.45-0.7,22.92-2.06  c-0.03-0.13-0.04-0.25-0.07-0.38C590.59,268.56,588.33,260.8,585.25,253.26z",fill:"#808080"}),(0,n.jsx)("path",{class:"st1",d:"M585.25,253.26c-5.23,0.83-10.59,1.26-16.09,1.26c-35.29,0-48.55-11.52-63.89-24.86  c-14.79-12.86-33.19-28.86-66.71-28.86h-20.01c-24.22,0-46.25,8.62-62.01,24.28c-15.39,15.3-23.89,36.22-23.89,58.94v26.87  c0,22.72,8.48,43.66,23.89,58.94c15.77,15.66,37.79,24.28,62.01,24.28h20.01c33.51,0,51.92-16.01,66.71-28.86  c15.34-13.34,28.59-24.86,63.89-24.86c5.48,0,10.86,0.43,16.09,1.26c3.08-7.52,5.32-15.28,6.77-23.14c0.03-0.13,0.04-0.26,0.07-0.39  c-7.48-1.36-15.15-2.06-22.92-2.06c-81.1,0-76.88,53.72-130.59,53.72h-20.01c-36.86,0-61.09-25.83-61.09-58.89v-26.87  c0-33.06,24.22-58.89,61.09-58.89h20.01c53.71,0,49.5,53.72,130.59,53.72c7.77,0,15.45-0.7,22.92-2.06  c-0.03-0.13-0.04-0.25-0.07-0.38C590.59,268.56,588.33,260.8,585.25,253.26z",fill:"#808080"})]}),onClick:()=>ee(t),buttonStyles:C}),(0,n.jsx)(r.Box,{flex:"1"}),(0,n.jsx)(i.IconButton,{onClick:h,"aria-label":"keyboard-shortcuts",icon:(0,n.jsx)(Z.r,{}),borderWidth:0,title:"Keyboard Shortcuts (Cmd+/)",...C})]})},$=e=>{let t=e.state.doc.textContent,o=null==t?void 0:t.slice(e.state.selection.from-1,e.state.selection.to-1);e.commands.deleteSelection(),e.commands.insertContentAt(e.state.selection.from-1," [square_url](".concat(o,")"))},ee=e=>{let t=e.state.doc.textContent,o=null==t?void 0:t.slice(e.state.selection.from-1,e.state.selection.to-1);e.commands.deleteSelection(),e.commands.insertContentAt(e.state.selection.from-1," [calendly_url](".concat(o,")"))},et=e=>{let t=new FormData;return t.append("file",e),fetch("/api/uploads/editor-images",{method:"POST",cac
1he:"no-store",body:t})},eo=e=>M.hj.create({name:"customKeyboardShortcuts",priority:1e3,addKeyboardShortcuts(){return{"Mod-k":()=>(console.log("Mod-k pressed, onInsertLink callback:",e.onInsertLink),!!e.onInsertLink&&(e.onInsertLink(),!0)),"Mod-Shift-k":()=>(this.editor.chain().focus().extendMarkRange("link").unsetLink().run(),!0),"Mod-e":()=>!!e.onShowEmojiPicker&&(e.onShowEmojiPicker(),!0),"Mod-/":()=>!!e.onShowKeyboardShortcuts&&(e.onShowKeyboardShortcuts(),!0),"Mod-Shift-s":()=>{if(e.onInsertSquare){let e=this.editor.state.doc.textContent,t=null==e?void 0:e.slice(this.editor.state.selection.from-1,this.editor.state.selection.to-1);return this.editor.commands.deleteSelection(),this.editor.commands.insertContentAt(this.editor.state.selection.from-1," [square_url](".concat(t,")")),!0}return!1},"Mod-Shift-c":()=>{if(e.onInsertCalendly){let e=this.editor.state.doc.textContent,t=null==e?void 0:e.slice(this.editor.state.selection.from-1,this.editor.state.selection.to-1);return this.editor.commands.deleteSelection(),this.editor.commands.insertContentAt(this.editor.state.selection.from-1," [calendly_url](".concat(t,")")),!0}return!1}}}});t.default=e=>{let{code:t,onUpdate:o,debouncedUpdate:i,isLoading:l,style:M="default",isSquare:B,isCalendly:I}=e,[Z,T]=(0,v.useState)(l),[E,_]=(0,v.useState)(!0),{isOpen:K,onToggle:U,onClose:q}=(0,c.useDisclosure)(),{isOpen:D,onToggle:W,onClose:N}=(0,c.useDisclosure)(),{isOpen:Q,onOpen:$,onClose:ee}=(0,c.useDisclosure)(),[en,ei]=(0,v.useState)(""),es=(0,y.uS)((0,n.jsx)(b.M,{dangerouslySetInnerHTML:{__html:t}}));(0,v.useEffect)(()=>{T(l)},[l]);let el=(0,g.jE)({extensions:[f.Z,j.Z,S.Z.configure(),k.ZP,w.ZP.configure({openOnClick:!0,HTMLAttributes:{class:"tiptap-link"}}).extend({addKeyboardShortcuts:()=>({"Mod-k":()=>!1})}),V.Z.configure({types:["image"]}),eo({onInsertLink:()=>{console.log("onInsertLink callback triggered"),$()},onShowEmojiPicker:()=>{U(),setTimeout(()=>{_(!1)},2e3)},onShowKeyboardShortcuts:()=>{W()},onInsertSquare:!!B||null,onInsertCalendly:!!I||null})],onUpdate:e=>{o(e)},editorProps:{handleDrop:function(e,t,o,n){if(!n&&t.dataTransfer&&t.dataTransfer.files&&t.dataTransfer.files[0]){let o=t.dataTransfer.files[0],n=(o.size/1024/1024).toFixed(4);if(("image/jpeg"===o.type||"image/png"===o.type)&&n<10){let n=window.URL||window.webkitURL,i=new Image;i.src=n.createObjectURL(o),i.onload=function(){this.width>5e3||this.height>5e3?window.alert("Your images need to be less than 5000 pixels in height and width."):(T(!0),et(o).then(e=>{if(!e.ok)throw Error("Failed to upload image");return e.json()}).then(o=>{let{imageUrl:n}=o,i=new Image;i.src=n,i.onload=function(){let{schema:n}=e.state,i=e.posAtCoords({left:t.clientX,top:t.clientY}),s=n.nodes.image.create({src:o.imageUrl}),l=e.state.tr.insert(i.pos,s);return T(!1),e.dispatch(l)}}).catch(function(e){e&&(window.alert("There was a problem uploading your image, please try again."),T(!1))}))}}else window.alert("Images need to be in jpg or png format and less than 10mb in size.");return!0}return!1}},autofocus:!0,content:(null==t?void 0:t.length)>=1?es:""},[t]),[er]=(0,L.Nr)(null==el?void 0:el.state.doc.content,2e3);if((0,v.useEffect)(()=>{"function"==typeof i&&el&&i(el)},[er]),(0,v.useEffect)(()=>{Q&&el&&(console.log("Link modal opened, isLinkModalOpen:",Q),ei(el.getAttributes("link").href||""))},[Q,el]),!el)return null;let ec=el.storage.characterCount.words()||0,ea=(0,H.QV)(ec/parseInt("750")),ed=()=>{el&&(""===en?el.chain().focus().extendMarkRange("link").unsetLink().run():el.chain().focus().extendMarkRange("link").setLink({href:en}).run(),ee())};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(G,{isOpen:D,onClose:N,style:M,isSquare:B,isCalendly:I}),(0,n.jsxs)(z.Modal,{isOpen:Q,onClose:ee,motionPreset:"slideInBottom",children:[(0,n.jsx)(F.ModalOverlay,{}),(0,n.jsxs)(R.ModalContent,{children:[(0,n.jsx)(A.ModalHeader,{children:"Insert Link"}),(0,n.jsx)(O.ModalCloseButton,{}),(0,n.jsx)(P.ModalBody,{px:"24px",children:(0,n.jsx)("input",{type:"text",value:en,onChange:e=>ei(e.target.value),placeholder:"Enter URL",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),ed())},autoFocus:!0,style:{width:"100%",padding:"8px 12px",border:"1px solid #E2E8F0",borderRadius:"6px",fontSize:"14px",outline:"none"}})}),(0,n.jsxs)(X.ModalFooter,{pt:0,children:[(0,n.jsx)("button",{onClick:ee,style:{marginRight:"12px",padding:"8px 16px",background:"transparent",border:"1px solid #E2E8F0",borderRadius:"6px",cursor:"pointer"},children:"Cancel"}),(0,n.jsx)("button",{onClick:ed,style:{padding:"8px 16px",background:"#3182CE",color:"white",border:"none",borderRadius:"6px",cursor:"pointer"},children:"Ok"})]})]})]}),(0,n.jsxs)(r.Box,{border:"1px solid #E2E8F0",borderRadius:"6px",children:[(0,n.jsx)(r.Box,{zIndex:31474836471,children:(0,n.jsxs)(a.Popover,{returnFocusOnClose
1:!1,isOpen:K,onClose:q,placement:"auto-end",closeOnBlur:!0,zIndex:"popover",children:[(0,n.jsx)(d.PopoverTrigger,{display:"inline-block",children:(0,n.jsx)(h.Text,{})}),(0,n.jsx)(C.Portal,{children:(0,n.jsx)(x.PopoverContent,{bg:"white",border:"0",width:"350px",height:"450px",children:(0,n.jsx)(u.PopoverBody,{p:"0",children:K?(0,n.jsxs)(n.Fragment,{children:[E?(0,n.jsx)(p.Center,{width:"350px",height:"450px",children:(0,n.jsx)(m.Spinner,{size:"xl"})}):"",(0,n.jsx)(r.Box,{visibility:E?"hidden":"visible",children:(0,n.jsx)(Y,{isLazy:!0,width:"350px",height:"450px",emojiStyle:"native",onEmojiClick:e=>{el.chain().focus().insertContent(e.emoji).run()}})})]}):""})})})]})}),"default"===M?(0,n.jsx)(J,{editor:el,style:M,isSquare:B,isCalendly:I,showEmojiPicker:()=>{U(),setTimeout(()=>{_(!1)},2e3)},showKeyboardShortcuts:W}):"",(0,n.jsxs)(r.Box,{children:[(0,n.jsx)(r.Box,{sx:(0,b.O)({baseStyle:{h1:{fontSize:"1.5rem",fontWeight:"600",lineHeight:"1.3",letterSpacing:"-0.02em",color:"#1A202C",marginTop:"1.25em",marginBottom:"0.5em"},h2:{fontSize:"1.25rem",fontWeight:"600",lineHeight:"1.35",letterSpacing:"-0.01em",color:"#1A202C",marginTop:"1.25em",marginBottom:"0.4em"},h3:{fontSize:"1.1rem",fontWeight:"600",lineHeight:"1.4",color:"#1A202C",marginTop:"1em",marginBottom:"0.35em"},p:{color:"#1A202C",fontWeight:"400",fontSize:"14px",lineHeight:"1.6",marginBottom:"0.75em"},a:{color:"#3182CE",textDecorationLine:"underline"},ul:{fontSize:"14px",lineHeight:"1.6",color:"#1A202C",paddingLeft:"1.25em",marginBottom:"0.75em"},ol:{fontSize:"14px",lineHeight:"1.6",color:"#1A202C",paddingLeft:"1.25em",marginBottom:"0.75em"},li:{marginBottom:"0.2em"},blockquote:{fontSize:"13px",lineHeight:"1.6",fontStyle:"italic",color:"#4A5568",borderLeftWidth:"3px",borderLeftColor:"#E2E8F0",paddingLeft:"1em",marginTop:"0.75em",marginBottom:"0.75em"},hr:{borderColor:"#E2E8F0",borderTopWidth:"1px",marginTop:"1.25em",marginBottom:"1.25em"},code:{fontSize:"0.875em",fontFamily:"SFMono-Regular, Menlo, Monaco, Consolas, monospace",backgroundColor:"#EDF2F7",borderRadius:"3px",padding:"0.15em 0.35em",color:"#1A202C"},pre:{fontSize:"13px",lineHeight:"1.5",fontFamily:"SFMono-Regular, Menlo, Monaco, Consolas, monospace",backgroundColor:"#F7FAFC",borderRadius:"6px",padding:"0.75em 1em",overflowX:"auto",marginBottom:"0.75em"}}})().components.Prose.baseStyle(),children:(0,n.jsx)(g.kg,{editor:el})}),"minimal"===M?(0,n.jsxs)(s.HStack,{children:[(0,n.jsx)(J,{editor:el,style:M,showEmojiPicker:()=>{U(),setTimeout(()=>{_(!1)},2e3)},showKeyboardShortcuts:W,isSquare:B,isCalendly:I}),Z?(0,n.jsx)(m.Spinner,{size:"xs"}):""]}):(0,n.jsxs)(s.HStack,{justifyContent:"space-between",p:"20px",pt:"0",children:[(0,n.jsx)(h.Text,{p:"0",color:"#718096",children:(0,n.jsxs)("small",{children:[(0,H._6)((0,H.vY)(ec),"word")," /"," ",(0,H._6)(ea,"page")]})}),(0,n.jsxs)(s.HStack,{children:[(0,n.jsx)(h.Text,{p:"0",color:"#718096",children:(0,n.jsx)("small",{children:"Markdown Supported"})}),Z?(0,n.jsx)(m.Spinner,{size:"xs"}):""]})]})]})]})]})}},92678:function(){}}]);

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.