PageSourceSearch

https://account.everywhere.living/_next/static/chunks/1744.c2b375f31330ef0c.js

js everywhere.living collected 2026-10-09 23:54:05 UTC 5,289 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1744],{1744:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var o=n(95155),r=n(7534),l=n(34170),i=n(12115),u=n(85339),s=n(4538),a=n(97721),f=n(80875),p=n(91878);function d(e){var t,n;return(null!=(n=null==(t=e.position)?void 0:t[1])?n:0)+(0,p.wp)(e)}var g=n(56664);let m=new u._4j({color:0xffffff,roughness:.7,metalness:.25}),c=e=>{var t,n,c,h,v,w,k;let{node:y}=e,b=(0,i.useRef)(null);(0,r.b83)(y.id,"gutter",b);let x=(0,l.rJ)(y,"gutter"),S=(0,l.ur)(e=>e.shading),M=(0,l.ur)(e=>e.textures),X=(0,l.ur)(e=>e.colorPreset),I=(0,l.ur)(e=>e.sceneTheme),P=(0,r.zWC)(e=>e.get(y.id)),L=P?{...y,...P}:y,R=(0,r.YJj)(e=>L.roofSegmentId?e.nodes[L.roofSegmentId]:void 0),Z=(0,r.zWC)(e=>L.roofSegmentId?e.get(L.roofSegmentId):void 0),j=R?Z?{...R,...Z}:R:void 0,C=(0,r.YJj)((0,s.k)(e=>{var t,n;let o=L.roofSegmentId,r=o?e.nodes[o]:void 0,l=null==r?void 0:r.parentId,i=l?e.nodes[l]:void 0;if(!i)return[];let u=[];for(let o of null!=(t=i.children)?t:[]){let t=e.nodes[o];if((null==t?void 0:t.type)==="roof-segment")for(let o of(u.push(t),null!=(n=t.children)?n:[])){let t=e.nodes[o];(null==t?void 0:t.type)==="gutter"&&t.id!==y.id&&u.push(t)}}return u})),{mitres:Y,sharedEaveY:E}=(0,i.useMemo)(()=>{if(!j)return{mitres:f.Jf,sharedEaveY:void 0};let e=new Map;for(let t of C)"roof-segment"===t.type&&e.set(t.id,t);let t=[];for(let n of C){if("gutter"!==n.type)continue;let o=n.roofSegmentId?e.get(n.roofSegmentId):void 0;o&&t.push({gutter:n,segment:o})}return{mitres:(0,f.L7)(L,j,t),sharedEaveY:function(e,t,n){var o,r;let l=null!=(r=null==(o=t.position)?void 0:o[1])?r:0;if(0===n.length)return(0,p.wp)(t);let i=[{gutter:e,segment:t},...n],u=Array(i.length).fill(!1);u[0]=!0;let s=[0],a=d(t);for(;s.length>0;){let e=i[s.pop()];for(let t=0;t<i.length;t++){if(u[t])continue;let n=i[t];if(function(e,t,n,o){let r=(0,f.wZ)(e,t),l=(0,f.wZ)(n,o);return(0,f.cY)(r.minus.pos,l.plus.pos)<=f.aX||(0,f.cY)(r.minus.pos,l.minus.pos)<=f.aX||(0,f.cY)(r.plus.pos,l.plus.pos)<=f.aX||(0,f.cY)(r.plus.pos,l.minus.pos)<=f.aX}(e.gutter,e.segment,n.gutter,n.segment)){u[t]=!0,s.push(t);let e=d(n.segment);e>a&&(a=e)}}}return a-l}(L,j,t)}},[L.position[0],L.position[1],L.position[2],L.rotation,L.length,null==j||null==(t=j.position)?void 0:t[0],null==j||null==(n=j.position)?void 0:n[2],null==j?void 0:j.rotation,null==j?void 0:j.wallHeight,null==j?void 0:j.overhang,null==j?void 0:j.pitch,null==j?void 0:j.roofType,C]),q=(0,i.useMemo)(()=>(0,g.u)(L,Y),[L.length,L.size,L.thickness,L.profile,L.endCapLeft,L.endCapRight,L.hangerStyle,L.hangerSpacing,JSON.stringify(L.outlets),Y.left,Y.right]);(0,i.useEffect)(()=>()=>q.dispose(),[q]);let z=(0,i.useMemo)(()=>{var e;return M&&(L.material||L.materialPreset)?L.material?(0,l.Cc)(L.material,S):null!=(e=(0,l.qu)(L.materialPreset,S))?e:m:(0,l.Nm)("roof",X,u.hB5,I)},[M,X,I,S,L.material,L.materialPreset]),J=null!=E?E:j?(0,p.wp)(j):0,N=(0,i.useMemo)(()=>{var e,t,n;return new u.kn4().compose(new u.Pq0(null!=(e=L.position[0])?e:0,J,null!=(t=L.position[2])?t:0),new u.PTz().setFromAxisAngle(new u.Pq0(0,1,0),null!=(n=L.rotation)?n:0),new u.Pq0(1,1,1))},[L.position[0],L.position[2],L.rotation,J]),_=(0,a.w)(q,j,N);if(!R||!j)return null;let F=null!=(c=R.position)?c:[0,0,0],T=null!=(h=R.rotation)?h:0,A=null!=E?E:(0,p.wp)(j);return(0,o.jsx)("group",{position:F,"rotation-y":T,children:(0,o.jsx)("group",{position:[null!=(v=L.position[0])?v:0,A,null!=(w=L.position[2])?w:0],ref:b,"rotation-y":null!=(k=L.rotation)?k:0,visible:L.visible,children:(0,o.jsx)("mesh",{castShadow:!0,geometry:null!=_?_:q,material:z,name:"gutter-surface",receiveShadow:!0,...x})})})}},97721:(e,t,n)=>{n.d(t,{w:()=>s,x:()=>m});var o=n(95155),r=n(7534),l=n(34170),i=n(12115),u=n(85339);function s(e,t,n){let o=(0,r.zWC)(e=>{var n;return t?null==(n=e.get(t.id))?void 0:n.trim:void 0}),s=(0,i.useMemo)(()=>t&&o?{...t,trim:o}:t,[t,o]);!function(e){if(!e)return;let t=(0,r.Ftk)(e);JSON.stringify([e.width,e.depth,t.left,t.right,t.front,t.back,t.frontLeftX,t.frontLeftZ,t.frontRightX,t.frontRightZ,t.backLeftX,t.backLeftZ,t.backRightX,t.backRightZ])}(s),n.elements.join(",");let a=(0,i.useMemo)(()=>
1{if(!e||!s||!function(e){let t=(0,r.Ftk)(e);return t.left>0||t.right>0||t.front>0||t.back>0||t.frontLeftX>0||t.frontLeftZ>0||t.frontRightX>0||t.frontRightZ>0||t.backLeftX>0||t.backLeftZ>0||t.backRightX>0||t.backRightZ>0}(s))return null;let t=e.clone();t.applyMatrix4(n);let o=(0,l.tp)(t,s);if(!o)return null;let i=new u.kn4().copy(n).invert();o.applyMatrix4(i),o.computeVertexNormals();let a=e.groups.reduce((e,t)=>{var n;return Math.max(e,null!=(n=t.materialIndex)?n:0)},0);for(let e of o.groups){var f;(null!=(f=e.materialIndex)?f:0)>a&&(e.materialIndex=a)}return o},[e,n,s]);return(0,i.useEffect)(()=>()=>{null==a||a.dispose()},[a]),null!=a?a:e}let a=new u.kn4,f=new u.Pq0,p=new u.PTz,d=new u.O9p,g=new u.Pq0(1,1,1);function m(e){let{geometry:t,segment:n,parentToSegment:r,position:l=[0,0,0],rotation:m=[0,0,0],material:c,name:h,castShadow:v,receiveShadow:w}=e,k=s(t,n,(0,i.useMemo)(()=>(d.set(m[0],m[1],m[2]),p.setFromEuler(d),f.set(l[0],l[1],l[2]),a.compose(f,p,g),new u.kn4().multiplyMatrices(r,a)),[r,l[0],l[1],l[2],m[0],m[1],m[2]]));return(0,o.jsx)("mesh",{castShadow:v,geometry:null!=k?k:t,material:c,name:h,position:l,receiveShadow:w,rotation:m})}}}]);

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.