1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2729],{72729:(e,t,r)=>{r.r(t),r.d(t,{default:()=>G});var n=r(65392);r(25267);var l=r(24252),a=r(10477),s=r(47579),o=r(40221),i=r(52689),c=r(37401),d=r(33927),u=r(60369),m=r(72884),h=r(86027),p=r(96621);let f=h.bP.create({atom:!0,group:"block",name:"htmlBlock",addOptions:()=>({HTMLAttributes:{class:"html-block-wrapper"}}),addAttributes:()=>({content:{default:"",parseHTML:e=>e.getAttribute("data-content")||e.innerHTML}}),parseHTML:()=>[{tag:"div[data-html-block]",getAttrs:e=>({content:e.getAttribute("data-content")||e.innerHTML})}],renderHTML(e){let{node:t}=e;return["div",{...this.options.HTMLAttributes,"data-html-block":"true","data-content":t.attrs.content}]},addNodeView:()=>e=>{let{node:t}=e,r=document.createElement("div");return r.classList.add("html-block-wrapper"),r.setAttribute("data-html-block","true"),r.setAttribute("data-content",t.attrs.content),r.innerHTML=t.attrs.content,{dom:r}},addProseMirrorPlugins:()=>[new p.k_({key:new p.hs("htmlBlock-serializer"),props:{nodeViews:{}}})],addCommands(){return{setHTMLBlock:e=>t=>{var r;let{tr:n,dispatch:l,editor:a}=t,{selection:s}=n;if(!l)return!0;let o=s?s.from:n.doc.content.size,i=n.doc.resolve(o),c=i.parent,d=this.type.create({content:e.content}),u=null==(r=a.schema.nodes.paragraph)?void 0:r.create();if("paragraph"===c.type.name&&0===c.content.size){let e=i.start(i.depth),t=i.end(i.depth);n.replaceWith(e,t,[d,u]),o=e}else n.insert(o,[d,u]);if(o<=1){let e=n.doc.firstChild;e&&"paragraph"===e.type.name&&0===e.content.size&&(n.delete(0,e.nodeSize),o=0)}let m=o+d.nodeSize+1;return n.setSelection(p.U3.near(n.doc.resolve(Math.min(m,n.doc.content.size)))),l(n.scrollIntoView()),!0}}}}),x=h.bP.create({atom:!0,group:"inline",inline:!0,name:"htmlInline",addOptions:()=>({HTMLAttributes:{class:"html-inline-wrapper"}}),addAttributes:()=>({content:{default:"",parseHTML:e=>e.getAttribute("data-content")||e.innerHTML}}),parseHTML:()=>[{tag:"span[data-html-inline]",getAttrs:e=>({content:e.getAttribute("data-content")||e.innerHTML})}],renderHTML(e){let{node:t}=e;return["span",{...this.options.HTMLAttributes,"data-html-inline":"true","data-content":t.attrs.content}]},addNodeView:()=>e=>{let{node:t}=e,r=document.createElement("span");return r.classList.add("html-inline-wrapper"),r.setAttribute("data-html-inline","true"),r.setAttribute("data-content",t.attrs.content),r.innerHTML=t.attrs.content,{dom:r}},addProseMirrorPlugins:()=>[new p.k_({key:new p.hs("htmlInline-serializer"),props:{nodeViews:{}}})],addCommands(){return{setHTMLInline:e=>t=>{let{commands:r}=t;return r.insertContent({type:this.name,attrs:{content:e.content}})}}}});var g=r(55138),b=r(91935),w=r(75144);function y(e){let{ref:t}=e;return(0,n.jsxs)("div",{ref:t,style:{display:"none"},className:"relative p-6 md:p-8 rounded-md overflow-hidden text-white bg-[#1C212B] mb-5",children:[(0,n.jsxs)("div",{className:"relative z-20",children:[(0,n.jsxs)("p",{className:"w-full md:w-1/2 mb-4 text-lg md:text-xl",children:["Need speed and stability? ",(0,n.jsx)("br",{}),"IPcook proxies deliver 99.99% uptime!"]}),(0,n.jsx)(g.N_,{prefetch:!1,href:"".concat(u.RF,"/user/register"),children:(0,n.jsx)(b.$,{className:"w-40 py-5 bg-[#1BB495] hover:bg-[#0E9C80]",style:{boxSizing:"border-box"},children:(0,n.jsx)("span",{children:"Start for Free"})})})]}),(0,n.jsx)("div",{className:"absolute bottom-0 right-0 w-auto h-full opacity-50 z-10 select-none pointer-events-none",children:(0,n.jsx)(w.default,{alt:"AdBanner",width:1260,height:912,src:"/ipcook/assets/images/ad/ad_banner_one.png",className:"object-cover xl:object-contain w-full h-full"})})]})}var v=r(88027),j=r(63718);function N(e){let{ref:t}=e;return(0,n.jsxs)("div",{ref:t,style:{display:"none"},className:"flex flex-col md:flex-row md:space-x-4 space-y-4 md:space-y-0 mb-5",children:[(0,n.jsxs)(g.N_,{prefetch:!1,href:"".concat(u.RF,"/user/register"),style:{textDecoration:"none",color:"#fff"},className:"w-full md:w-auto flex items-center justify-center md:px-8 py-2 space-x-1 text-white bg-[#1BB495] rounded hover:bg-[#0E9C80]",children:["Start for Free",(0,n.jsx)(v.A,{})]}),(0,n.jsxs)(g.N_,{prefetch:!1,style:{textDecoration:"none"},href:"".concat((0,j.x)({action:"login"}).google),className:"w-full md:w-auto flex items-center justify-center md:px-8 py-2 space-x-1 border border-[#
1E5E6E7] bg-white rounded hover:bg-[#F5F6F6]",children:[(0,n.jsx)(w.default,{alt:"google",width:16,height:16,style:{border:"none"},src:"/ipcook/assets/images/home/google_small_logo.svg"}),(0,n.jsx)("span",{className:"text-[#5B5E65]",children:"Sign up with Google"})]})]})}var k=r(31297);function C(e){let{ref:t}=e;return(0,n.jsxs)("div",{ref:t,style:{display:"none"},className:"w-full min-h-45 relative border border-[#f1f5f4] rounded-md overflow-hidden",children:[(0,n.jsx)(w.default,{width:789,height:180,alt:"Try It Free Bg",src:"/aieditor/assets/images/hoocs-ai/try-it-free-bg.svg",className:"w-full h-full object-cover border-none!",containerClassName:"absolute top-0 left-0 right-0 bottom-0 z-1"}),(0,n.jsx)(w.default,{width:789,height:180,alt:"Try It Free Mask Bg",src:"/aieditor/assets/images/hoocs-ai/try-it-free-mask-bg.webp",className:"w-full h-full object-cover border-none!",containerClassName:"absolute top-0 left-0 right-0 bottom-0 z-2"}),(0,n.jsx)(w.default,{width:131,height:171,alt:"Try It Free Media",src:"/aieditor/assets/images/hoocs-ai/try-it-free-media.webp",className:"w-32.75 h-42.75 border-none!",containerClassName:"absolute left-[33.75rem] bottom-[-.5rem] z-3"}),(0,n.jsxs)("div",{className:"w-[460px] relative z-2 pl-10.5 pt-8 pb-5",children:[(0,n.jsx)("div",{className:"text-2xl text-black font-medium",children:"Start transcribing smarter with Hoocs.ai"}),(0,n.jsx)("div",{className:"text-sm text-[#8A8D8D] pt-1 pb-3",children:"Transcribe anything instantly. Try Hoocs.ai now."}),(0,n.jsxs)(g.N_,{prefetch:!1,href:"".concat(u.tw,"/user/register"),"data-track-event":"register_view",style:{textDecoration:"none",color:"#fff"},className:"w-45.75 h-9 flex items-center justify-center gap-3 text-white! text-[.9375rem]! bg-[#2D9B93]! rounded! hover:bg-[#24837c]!",children:["Start for Free",(0,n.jsx)(k.A,{size:16})]})]})]})}function F(e){let{ref:t}=e;return(0,n.jsx)("div",{ref:t,style:{display:"none"},children:(0,n.jsx)(g.N_,{prefetch:!1,href:"".concat(u.tw,"/user/register"),"data-track-event":"register_view",style:{textDecoration:"none",color:"#fff"},className:"w-65 h-10 flex items-center justify-center text-white text-[.9375rem] bg-[#2D9B93] rounded-full hover:bg-[#24837c]",children:"Get Hoocs.Ai Now"})})}let A={letter:"A",backgroundColor:"#2D9B93",color:"#FFFFFF"},S=["#2D9B93","#1F7A8C","#3468C0","#8B5CF6","#E76F51","#F59E0B","#111827","#F3F4F6"],B=["#FFFFFF","#111827","#2D9B93","#3468C0","#E76F51","#F59E0B","#6B7280","#000000"];function H(e){return e.trim().slice(0,1).toUpperCase()}function M(e){let{ref:t,value:r}=e,l=H(r.letter)||A.letter,a=r.backgroundColor||A.backgroundColor,s=r.color||A.color;return(0,n.jsx)("span",{ref:t,style:{display:"none"},children:(0,n.jsx)("span",{"data-css-avatar":"true","data-letter":l,"data-background-color":a,"data-color":s,style:{alignItems:"center",background:a,borderRadius:"9999px",color:s,display:"inline-flex",fontSize:15,fontWeight:400,height:26,justifyContent:"center",lineHeight:1,marginInline:8,width:26},children:l})})}
1function T(e){let{colors:t,label:r,value:l,onChange:a}=e;return(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)("div",{className:"text-sm font-medium text-[#111827]",children:r}),(0,n.jsxs)("div",{className:"flex flex-wrap gap-2",children:[t.map(e=>{let t=e.toLowerCase()===l.toLowerCase();return(0,n.jsx)("button",{"aria-label":"".concat(r," ").concat(e),className:"h-7 w-7 rounded-full border border-[#E5E7EB] cursor-pointer",onClick:()=>a(e),style:{backgroundColor:e,boxShadow:t?"0 0 0 2px #2D9B93":"none"},type:"button"},e)}),(0,n.jsx)("input",{"aria-label":"èªå®ä¹".concat(r),className:"h-7 w-10 cursor-pointer rounded border border-[#E5E7EB] bg-white p-0.5",onChange:e=>a(e.target.value),type:"color",value:l})]})]})}function E(e){let{open:t,onCancel:r,onConfirm:a}=e,[s,o]=(0,l.useState)(A.letter),[i,c]=(0,l.useState)(A.backgroundColor),[d,u]=(0,l.useState)(A.color);if((0,l.useEffect)(()=>{t&&(o(A.letter),c(A.backgroundColor),u(A.color))},[t]),!t)return null;let m=H(s)||A.letter;return(0,n.jsx)("div",{className:"fixed inset-0 z-999 flex items-center justify-center bg-black/35 px-4",children:(0,n.jsxs)("form",{className:"w-full max-w-[360px] rounded-md bg-white p-5 shadow-xl",onSubmit:e=>
1{e.preventDefault(),a({letter:m,backgroundColor:i,color:d})},children:[(0,n.jsxs)("div",{className:"mb-4 flex items-center justify-between",children:[(0,n.jsx)("div",{className:"text-base font-semibold text-[#111827]",children:"æå
¥ CSS Avatar"}),(0,n.jsx)("button",{className:"text-xl leading-none text-[#6B7280] cursor-pointer",onClick:r,type:"button",children:"\xd7"})]}),(0,n.jsxs)("div",{className:"mb-4 flex items-center gap-4",children:[(0,n.jsx)("span",{"data-css-avatar":"true","data-letter":m,"data-background-color":i,"data-color":d,style:{alignItems:"center",background:i,borderRadius:"9999px",color:d,display:"inline-flex",fontSize:14,fontWeight:600,height:26,justifyContent:"center",lineHeight:1,width:26},children:m}),(0,n.jsxs)("label",{className:"flex-1 space-y-2",children:[(0,n.jsx)("div",{className:"text-sm font-medium text-[#111827]",children:"忝"}),(0,n.jsx)("input",{autoFocus:!0,className:"h-9 w-full rounded border border-[#D1D5DB] px-3 text-sm outline-none focus:border-[#2D9B93]",maxLength:1,onChange:e=>o(e.target.value),placeholder:"A",value:s})]})]}),(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsx)(T,{colors:S,label:"èæ¯é¢è²",onChange:c,value:i}),(0,n.jsx)(T,{colors:B,label:"åä½é¢è²",onChange:u,value:d})]}),(0,n.jsxs)("div",{className:"mt-5 flex justify-end gap-2",children:[(0,n.jsx)("button",{className:"h-9 rounded border border-[#D1D5DB] px-4 text-sm text-[#374151] cursor-pointer",onClick:r,type:"button",children:"åæ¶"}),(0,n.jsx)("button",{className:"h-9 rounded bg-[#2D9B93] px-4 text-sm text-white cursor-pointer hover:bg-[#24837c]",type:"submit",children:"æå
¥"})]})]})})}var L=r(49367);let D=["No-Cost Analysis","Verified Local Installers","Clear Side-by-Side Quotes"];function I(e){let{ref:t}=e;return(0,n.jsxs)("div",{ref:t,style:{display:"none"},className:"relative min-h-[360px] w-full overflow-hidden rounded-[13.703px] bg-[#001F3C] px-5 py-6 sm:min-h-[300px] md:h-[246px] md:min-h-0 md:pl-5 md:pr-0 md:py-0",children:[(0,n.jsx)(w.default,{src:"/solarmatcher/assets/images/blog/solarmatcher-blog-card-bg.webp",width:680,height:246,alt:"Get Started For Free Bg",className:"pointer-events-none h-full w-full object-cover border-none!",containerClassName:"absolute inset-0 rounded-[13.703px]"}),(0,n.jsxs)("div",{className:"relative z-10 flex h-full w-full max-w-[605px] flex-col items-start justify-center gap-6 sm:gap-[30px] md:w-[605px]",children:[(0,n.jsxs)("div",{className:"flex w-full flex-col items-start gap-5 sm:gap-[26px]",children:[(0,n.jsxs)("p",{className:"w-full max-w-[450px] text-[26px] font-semibold leading-[28px] text-white sm:text-[28px] sm:leading-[30px] md:text-[32px] md:leading-[34px]",children:["See If Your Home Qualifies For ",(0,n.jsx)("span",{className:"text-[#2AA4D9]",children:"Solar Savings"})]}),(0,n.jsx)(g.N_,{prefetch:!1,href:"".concat(u.x$,"/solar-estimator"),"data-track-event":"get_quote",style:{textDecoration:"none",color:"#fff"},className:"flex h-11 w-full max-w-[216px] items-center justify-center rounded-[50px] bg-[#F26703] text-[16px] font-normal leading-5 text-white transition-colors hover:bg-[#d95d03] sm:w-[216px]",children:"Get Started For Free"})]}),(0,n.jsx)("div",{className:"flex w-full flex-col items-start gap-3 sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-6 sm:gap-y-3 md:flex-nowrap md:gap-[29px]",children:D.map(e=>(0,n.jsxs)("div",{className:"flex min-w-0 items-center gap-[5px] text-[14px] font-normal leading-5 text-white sm:text-[16px] md:shrink-0",children:[(0,n.jsx)("span",{className:"flex size-3.5 shrink-0 items-center justify-center rounded-full bg-[#2AA4D9] text-white",children:(0,n.jsx)(L.A,{className:"size-2.5",strokeWidth:3})}),(0,n.jsx)("span",{className:"whitespace-normal sm:whitespace-nowrap",children:e})]},e))})]})]})}function z(e){let{ref:t}=e;return(0,n.jsx)("div",{ref:t,style:{display:"none"},children:(0,n.jsx)(g.N_,{prefetch:!1,href:"".concat(u.x$,"/solar-estimator"),"data-track-event":"get_quote",style:{textDecoration:"none",color:"#fff"},className:"w-[256px] h-11 flex items-center font-medium justify-center text-white text-[16px] bg-[#F26703] rounded-[50px] transition-colors hover:bg-[#d95d03]",children:"Get Free Solar Estimate"})})}let _={[i.md.Ipcook]:u.RF,[i.md.HoocsAi]:u.tw,[i.md.SolarMatcher]:u.x$},R={[i.md.Ipcook]:"#1BB495",[i.md.HoocsAi]:"#2D9B93",[i.md.SolarMatcher]:"#001F3C"},P=["link"],G=(0,l.forwardRef)(function(e,t){let{value:r,onChange:u,options:h={},defaultValue:p,imageSize:g=10,type:b=i.md.Ipcook,placeholder:w="请è¾å
¥å
å®¹ï¼æ¯æå¯ææ¬ç¼è¾...",imageAccept:v=["image/jpeg","image/jpg","image/png","image/webp","image/svg+xml"],...j}=e,k=_[b],A=(0,l.useRef)(null),S=(0,l.useRef)(null),B=(0,l.useRef)(null),T=(0,l.useRef)(null),L=(0,l.useRef)(null),D=(0,l.useRef)(null),G=(0,l.useRef)(null),V=(0,l.useRef)(null),q=(0,l.useRef)(null),U=(0,l.useRef)(null),[Y,$]=(0,l.useState)(!1),[O,W]=(0,l.useState)({letter:"A",backgroundColor:"#2D9B93",color:"#FFFFFF"}),K=R[b],Q=e=>{let{current:t}=e;if(!t)return"";let r=t.style.display;t.style.display="";let n=t.outerHTML;return t.style.display=r,n},J=e=>(t,r)=>{let n=Q(e);n&&r.innerEditor.chain().focus().setHTMLBlock({content:n}).run()};return(0,l.useEffect)(()=>
1{if(A.current)return S.current||(S.current=new o.ou({placeholder:w,element:A.current,content:p,contentRetention:!0,onChange:e=>{"function"==typeof u&&u(e.getHtml())},container:{defaultType:"default",typeItems:["default","info","warning","danger"]},codeBlock:{languages:[{name:"Auto",value:"auto"},{name:"Python",value:"python",alias:["py","gyp","ipython"]},{name:"JavaScript",value:"javascript",alias:["js","jsx","mjs","cjs"]}]},toolbarKeys:["undo","redo","brush","eraser","|","heading","font-family","font-size","|","bold","italic","underline","strike","link","code","subscript","superscript","hr","todo","emoji","|","highlight","font-color","|","align","line-height","|","bullet-list","ordered-list","indent-decrease","indent-increase","break","|","image","quote","container","table","code-block","|","source-code","fullscreen",{toolbarKeys:[...b===i.md.Ipcook?[{tip:"IPcook&Googleç»å½",html:"IPcook&Googleç»å½",onClick:J(T)},{tip:"IPcookç»å½",html:"IPcookç»å½",onClick:J(B)}]:[],...b===i.md.HoocsAi?[{tip:"Try It Free",html:"Try It Free",onClick:J(D)},{tip:"Get Hoocs.Ai Now",html:"Get Hoocs.Ai Now",onClick:J(L)},{tip:"CSS Avatar",html:"CSS Avatar",onClick:(e,t)=>{V.current=t,$(!0)}}]:[],...b===i.md.SolarMatcher?[{tip:"solarmatcher广åå¡ç",html:"solarmatcher广åå¡ç",onClick:J(q)},{tip:"solarmatcher表åå¡«åæé®",html:"solarmatcher表åå¡«åæé®",onClick:J(U)}]:[],{tip:"æ·»å YouTubeè§é¢",html:"æ·»å YouTubeè§é¢",onClick:(e,t)=>{let r=prompt("请è¾å
¥YouTubeè§é¢url");r&&t.innerEditor.chain().focus().setYoutubeVideo({src:r,width:640,height:480}).command(e=>{let{tr:t,dispatch:r}=e;if(r){let e=t.doc.type.schema.nodes.paragraph.create();t.insert(t.selection.to,e)}return!0}).run()}}]}],onCreateBefore:(e,t)=>[...t.filter(e=>!P.includes(e.name)),f,x,d.N_.configure({HTMLAttributes:{ref:null,rel:null,target:null}}),c.A.configure({controls:!1,nocookie:!0,interfaceLanguage:"en"})],textSelectionBubbleMenu:{enable:!0,items:["Bold","Italic","Underline","Strike","code"]},image:{uploadUrl:"/images/upload",uploadFormName:"file",uploaderEvent:{onUploadBefore:e=>{if(!e)return s.oR.error("å¾çä¸è½ä¸ºç©º"),!1;if(e.size>1024*g*1024)return s.oR.error("å¾ç大å°ä¸è½è¶
è¿".concat(g,"MB")),!1;if(!v.includes(e.type)){let e=v.map(e=>e.replace("image/","")).join(",");return s.oR.error("å¾çæ ¼å¼ä¸æ¯æï¼æ¯æçæ ¼å¼ä¸ºï¼".concat(e)),!1}return!0}},uploader:e=>new Promise((t,r)=>{(0,m.V6)({file:e}).then(e=>{let{data:r}=e;if(200===r.code){let{url:e}=r.data,n=e.includes("http")?e:k+e;t({errorCode:0,data:{class:"",alt:"å¾çalt",align:"center",width:"100%",height:"auto",loading:!0,src:n,"data-src":n}})}}).catch(e=>{r(e)})})},htmlPasteConfig:{pasteAsText:!1,pasteClean:!1,removeEmptyParagraphs:!0,pasteProcessor:e=>{if(e){let t=new DOMParser().parseFromString(e,"text/html");return t.querySelectorAll("*").forEach(e=>{e.removeAttribute("class")}),t.body.innerHTML}return e}},...h||{}})),()=>{S.current&&(S.current.destroy(),S.current=null)}},[]),(0,l.useEffect)(()=>{t&&("function"==typeof t?t(A.current):t.current=A.current)},[t]),(0,l.useEffect)(()=>{S.current&&r!==S.current.getHtml()&&S.current.setContent(r||"")},[r]),(0,l.useEffect)(()=>{if(!A.current)return;let e=()=>{var e;let t=null==(e=A.current)?void 0:e.querySelectorAll(".color-panel .color-item");if(!t||0===t.length)return;let r=t[t.length-1];r.setAttribute("data-color",K),r.style.borderColor=K,r.style.backgroundColor=K},t=new MutationObserver(t=>{t.forEach(t=>{"childList"===t.type&&t.addedNodes.length>0&&setTimeout(()=>{e()},100)})});return A.current&&(t.observe(A.current,{childList:!0,subtree:!0,attributes:!1}),e()),()=>{t.disconnect()}},[K]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:A,...j}),(0,n.jsx)(N,{ref:T}),(0,n.jsx)(y,{ref:B}),(0,n.jsx)(F,{ref:L}),(0,n.jsx)(C,{ref:D}),(0,n.jsx)(M,{ref:G,value:O}),(0,n.jsx)(E,{onCancel:()=>{$(!1),V.current=null},onConfirm:e=>{let t=V.current;if(t){var r;if(r=H(e.letter),!/^[A-Z]$/.test(r))return void s.oR.error("请è¾å
¥ä¸ä¸ªè±æåæ¯");(0,a.flushSync)(()=>{W(e)}),((e,t)=>{let r=Q(G);
1r&&t.innerEditor.chain().focus().setHTMLInline({content:r}).run()})(new MouseEvent("click"),t),$(!1),V.current=null}},open:Y}),(0,n.jsx)(I,{ref:q}),(0,n.jsx)(z,{ref:U})]})})}}]);
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.