1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1637],{35844:(e,t,a)=>{a.d(t,{Cf:()=>h,L3:()=>p,lG:()=>c,rr:()=>m,zM:()=>l});var r=a(81203),n=a(21843),o=a(44744),i=a(90067),s=a(75480);let c=o.bL,l=o.l9,d=o.ZL;o.bm;let u=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(o.hJ,{ref:t,className:(0,s.cn)("fixed inset-0 z-50 bg-black/60 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...n})});u.displayName=o.hJ.displayName;let h=n.forwardRef((e,t)=>{let{className:a,children:n,...c}=e;return(0,r.jsxs)(d,{children:[(0,r.jsx)(u,{}),(0,r.jsxs)(o.UC,{ref:t,className:(0,s.cn)("fixed left-[50%] top-[50%] z-50 w-full max-w-md translate-x-[-50%] translate-y-[-50%] bg-white rounded-lg p-6 shadow-xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",a),...c,children:[n,(0,r.jsxs)(o.bm,{className:"absolute right-4 top-4 roun
1ded-md p-2 hover:bg-black/5 transition-colors",children:[(0,r.jsx)(i.A,{size:20,weight:"bold"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});h.displayName=o.UC.displayName;let p=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(o.hE,{ref:t,className:(0,s.cn)("font-poppins font-semibold text-xl text-foreground",a),...n})});p.displayName=o.hE.displayName;let m=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,r.jsx)(o.VY,{ref:t,className:(0,s.cn)("font-roboto text-lg text-foreground mt-1",a),...n})});m.displayName=o.VY.displayName},62379:(e,t,a)=>{a.d(t,{$:()=>c});var r=a(81203);a(21843);var n=a(46353),o=a(40303),i=a(75480);let s=(0,o.F)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-brand-primary-500 hover:bg-brand-primary-600 text-white",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",secondaryOutline:"bg-black/[0.04] text-accent-blue-800 hover:bg-black/[0.08] border-0",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline",tertiary:"text-text-secondary hover:text-foreground bg-transparent"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 px-6 has-[>
1svg]:px-4",xl:"h-14 rounded-lg px-8 text-base font-medium gap-2.5",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function c(e){let{className:t,variant:a,size:o,asChild:c=!1,...l}=e,d=c?n.DX:"button";return(0,r.jsx)(d,{"data-slot":"button",className:(0,i.cn)(s({variant:a,size:o,className:t})),...l})}},75480:(e,t,a)=>{a.d(t,{GN:()=>s,KW:()=>i,cn:()=>o});var r=a(35815),n=a(7563);function o(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,n.QP)((0,r.$)(t))}function i(e){let t=Math.floor((Date.now()-new Date(e).getTime())/6e4);if(t<1)return"Just now";if(t<60)return"".concat(t,"m ago");let a=Math.floor(t/60);if(a<24)return"".concat(a,"h ago");let r=Math.floor(a/24);return"".concat(r,"d ago")}function s(e){return("string"==typeof e?new Date(e):e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}).replace(",","")}},86155:(e,t,a)=>{a.d(t,{G:()=>f,R:()=>b});var r=a(81203),n=a(21843),o=a(35844),i=a(3251),s=a(34871),c=a(2565),l=a(16514),d=a(53274);let u={default:{shareText:"Check out this fire-safe home walkthrough from Pillar",title:"Share this walkthrough",description:null},estimate:{shareText:"Check out my fire-safe home estimate from Pillar",title:"Share your fire-safe estimate",description:"This will share your custom estimate, address and square footage."},"priority-upgrades":{shareText:"Check out my priority upgrades from Pillar",title:"Share your priority upgrades",description:"This link lets your project team see proposed changes to update your plans for insurability."},"punch-list":{shareText:"View my IBHS punch list from Pillar",title:"Share punch list",description:"Share this checklist with your contractor or project team to track IBHS compliance items."},cluster:{shareText:"See how our neighborhood is building back fire-safe on Pillar",title:"Invite your neighbors",description:"Share to neighbors in your cluster so they can see the standard and you can save on insurance."},"stand-estimate":{shareText:"Your Stand agent put together a financing estimate for your home",title:"Share this estimate",description:"Send this link and the homeowner can finish on their own device â they enter their own details and authorize their own credit check."}},h=[{id:"copy",label:"Copy Link",icon:i.A},{id:"email",label:"Email",icon:s.A},{id:"messages",label:"Messages",icon:c.A},{id:"embed",label:"Embed",icon:l.A}],p=[{id:"copy-url",label:"Copy URL",icon:i.A},{id:"copy",label:"Copy Content",icon:d.A},{id:"email",label:"Email",icon:s.A},{id:"messages",label:"Messages",icon:c.A}];function m(e){let t={};return e.forEach(e=>{t[e.category]||(t[e.category]=[]),t[e.category].push(e)}),t}function g(e,t,a){return"Review for Wildfire Prepared Home Plus\n\n".concat(t||"Property Address").concat(a?"\nView full interactive list: ".concat(a,"\n"):"","\n")+Object.entries(m(e)).map(e=>{let[t,a]=e,r=a.map(e=>{var t;let a=(null==(t=e.pages)?void 0:t.length)?"Pg ".concat(e.pages.join(", ")," - "):"";return" ⢠".concat(a).concat(e.text)}).join("\n");return"".concat(t,"\n").concat(r)}).join("\n\n")}function f(e){let{open:t,onOpenChange:a,variant:i="default",estimateData:s,punchListItems:c,propertyAddress:l,title:d,description:f,url:b,contentClassName:x}
1=e,[y,v]=(0,n.useState)(null),w=b||window.location.href,k="punch-list"===i,j="stand-estimate"===i,P="estimate"===i?function(e,t){if(!t)return e;let a=new URL(e);return a.searchParams.set("shared","true"),a.searchParams.set("address",t.address),a.searchParams.set("sqft",t.squareFt.toString()),a.searchParams.set("cost",t.estimatedCost.toString()),a.searchParams.set("code",t.fireCode),a.toString()}(w,s):w,N=u[i],C=N.shareText,S=d||N.title,z=f||N.description,T=k?p:"priority-upgrades"===i?h.filter(e=>"copy"===e.id||"email"===e.id):j?h.filter(e=>"embed"!==e.id):h,A=async e=>{try{switch(e){case"copy-url":await navigator.clipboard.writeText(P),v("copy-url"),setTimeout(()=>v(null),2e3);break;case"copy":if(k&&c){let e=g(c,l,P),t=function(e,t,a){let r=Object.entries(m(e)).map(e=>{let[t,a]=e,r=a.map(e=>{var t;let a=(null==(t=e.pages)?void 0:t.length)?"Pg ".concat(e.pages.join(", ")," â "):"";return'<li style="margin-bottom:4px;">'.concat(a).concat(e.text,"</li>")}).join("");return'<h2 style="font-size:16px;font-weight:600;margin:16px 0 8px 0;color:#2b0d00;">'.concat(t,'</h2>\n<ul style="margin:0;padding-left:20px;color:#333;">').concat(r,"</ul>")}).join(""),n=a?'<p style="margin:8px 0 16px 0;font-size:14px;color:#666;">\n View full interactive list: <a href="'.concat(a,'" style="color:#561900;">').concat(a,"</a>\n </p>"):"";return'<div style="font-family:system-ui,-apple-system,sans-serif;line-height:1.5;">\n<p style="font-size:14px;color:#666;margin:0 0 8px 0;">Review for Wildfire Prepared Home Plus</p>\n<h1 style="font-size:24px;font-weight:700;margin:0 0 8px 0;color:#561900;">'.concat(t||"Property","</h1>\n").concat(n,"\n").concat(r,"\n</div>")}(c,l,P);try{await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([e],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})})])}catch(t){await navigator.clipboard.writeText(e)}}else await navigator.clipboard.writeText(P);v("copy"),setTimeout(()=>v(null),2e3);break;case"email":{let e=encodeURIComponent(C),t=k&&c?g(c,l,P):"".concat(C,"\n\n").concat(P),a=encodeURIComponent(t);window.location.href="mailto:?subject=".concat(e,"&body=").concat(a);break}case"messages":{let e=k&&c?function(e,t,a){let r=Object.entries(m(e)).map(e=>{let[t,a]=e,r=a.slice(0,6).map(e=>{var t;let a=(null==(t=e.pages)?void 0:t.length)?"Pg ".concat(e.pages.join(", ")," - "):"";return"⢠".concat(a).concat(e.text)}).join("\n"),n=a.length-6;return"".concat(t,":\n").concat(r).concat(n>0?"\n ...and ".concat(n," more"):"")}),n=r.slice(0,4),o=r.length-4;return(t?"IBHS Punch List for ".concat(t,"\n\n"):"IBHS Punch List\n\n")+n.join("\n\n")+(o>0?"\n\n...and ".concat(o," more sections"):"")+(a?"\n\nView full list: ".concat(a):"")}(c,l,P):"".concat(C,"\n\n").concat(P),t=encodeURIComponent(e),a=/iPhone|iPad|iPod/i.test(navigator.userAgent),r=/Android/i.test(navigator.userAgent);a?window.location.href="sms:&body=".concat(t):r?window.location.href="sms:?body=".concat(t):(await navigator.clipboard.writeText(e),v("messages"),setTimeout(()=>v(null),2e3));break}case"embed":{let e='<iframe src="'.concat(P,'" width="100%" height="600" frameborder="0" allowfullscreen></iframe>');await navigator.clipboard.writeText(e),v("embed"),setTimeout(()=>v(null),2e3)}}}catch(e){console.error("Share error:",e)}};return(0,r.jsx)(o.lG,{open:t,onOpenChange:a,children:(0,r.jsxs)(o.Cf,{className:"max-w-[520px] ".concat(null!=x?x:""),...!z&&{"aria-describedby":void 0},children:[(0,r.jsx)(o.L3,{children:S}),z?(0,r.jsx)(o.rr,{children:z}):null,(0,r.jsx)("div",{className:"grid grid-cols-2 gap-3 mt-6",children:T.map(e=>{let{id:t,label:a,icon:n}=e,o=y===t;return(0,r.jsxs)("button",{onClick:()=>A(t),className:"flex items-center gap-3 px-4 py-4 rounded-xl border border-border hover:bg-black/[0.02] transition-colors text-left",children:[(0,r.jsx)(n,{size:24,className:"text-text-secondary shrink-0"}),(0,r.jsx)("span",{className:"".concat(j?"font-sans":"font-roboto"," text-base text-foreground"),children:o?"Copied!":a})]},t)})})]})})}function b(){let e="undefined"!=typeof navigator&&/Android|iPhone|iPad|iPod/i.test(navigator.userAgent)&&!!navigator.share,t=async t=>{if(e)try{return await navigator.share(t),!0}catch(e){e instanceof Error&&"AbortError"!==e.name&&console.error("Native share error:",e)}return!1};return{canNativeShare:e,share:t}}}}]);
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.