PageSourceSearch

https://assets.oneroof.co.nz/rebuild/aws/20260921155645/_next/static/chunks/2205.1aee720edf1badff.js

js oneroof.co.nz collected 2026-09-24 19:33:27 UTC 4,276 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2205,6384],{91608:function(e,n,s){s.d(n,{Z:function(){return c}});var t=s(57437),r=s(9565),l=s(71388),a=s(72853),i=s(2265);function c(e){let{title:n,children:s}=e,{lng:c,lat:o,zoom:u}=(0,r.O)(),{setCurrentMenu:d}=(0,l.G)(),{map:m}=(0,a.eH)(),x=(0,i.useCallback)(()=>{d(null),m.setCenter([c,o]),m.zoomTo(u)},[m,c,o,u,d]);return(0,t.jsxs)("div",{className:"bg-white rounded-sm shadow-card sm:w-386 sm:shadow-sm",children:[(0,t.jsxs)("div",{className:"flex items-center h-56 px-6 pr-48 text-font",children:[(0,t.jsx)("i",{className:"icon icon-back !text-[22px] leading-[1] font-medium p-10 cursor-pointer",onClick:x}),(0,t.jsx)("span",{className:"flex-1 text-center text-lg font-medium",children:n})]}),s]})}},12205:function(e,n,s){s.r(n),s.d(n,{default:function(){return x}});var t=s(57437),r=s(5403),l=s(91608),a=s(18133),i=s(85264),c=s(68692),o=s(76384),u=s(69936),d=s(2265),m=s(72853);function x(){let{data:e,isLoading:n}=(0,r.Z)("map-layers"),s=(0,a.Z)(e,"pipe",[]),[x,f]=(0,u.Z)(s),{changeUndergroundServicesVisible:h}=(0,m.eH)();return(0,d.useEffect)(()=>(h(!0),()=>{h(!1)}),[h]),(0,t.jsx)(l.Z,{title:"Underground services",children:(0,t.jsxs)("div",{className:"px-16 pb-16",children:[n&&(0,t.jsx)(o.SkeletonCard,{}),!n&&(0,i.Z)(x)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"space-y-6",children:(0,c.Z)(x,e=>(0,t.jsx)(o.Item,{type:e.legend.type,fill:e.legend.fill,name:e.name},e.name))}),(0,t.jsx)(f,{className:"text-center mt-10",btnClassName:"button-text-primary text-lg"})]}):void 0]})})}},76384:function(e,n,s){s.r(n),s.d(n,{Item:function(){return h},SkeletonCard:function(){return p},default:function(){return f}});var t=s(57437),r=s(5403),l=s(91608),a=s(18133),i=s(85765),c=s(68692),o=s(85264),u=s(73061),d=s(69936),m=s(2265),x=s(72853);function f(){let{data:e,isLoading:n}=(0,r.Z)("map-layers"),s=(0,a.Z)(e,"unitaryPlan",[]),u=(0,i.Z)((0,c.Z)(s,e=>(0,a.Z)(e,"legend.items"))),[f,j]=(0,d.Z)(u),{changeUnitaryPlanZoneVisible:Z}=(0,x.eH)();return(0,m.useEffect)(()=>(Z(!0),()=>{Z(!1)}),[Z]),(0,t.jsx)(l.Z,{title:"Unitary plan Zone",children:(0,t.jsxs)("div",{className:"px-16 pb-16",children:[n&&(0,t.jsx)(p,{}),!n&&(0,o.Z)(f)?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"space-y-6",children:(0,c.Z)(f,e=>(0,t.jsx)(h,{type:e.type,fill:e.fill,name:e.name},e.name))}),(0,t.jsx)(j,{className:"text-center mt-10",btnClassName:"button-text-primary text-lg"})]}):void 0]})})}function h(e){let n,s,{type:r,fill:l,name:a}=e,[i,c]=(n=["flex-shrink-0 w-16"],s={backgroundColor:l},"line"===r?n.push("h-2","rounded-xs"):"dot"===r?n.push("h-16","rounded-half"):"circle"===r?(n.push("h-16","border-2","rounded-half"),s={borderColor:l}):n.push("h-16","rounded-sm"),[n.join(" "),s]);return(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("i",{className:i,style:c}),(0,t.jsx)("span",{className:"line-clamp-1 ml-8 text-font text-sm",children:a})]})}function p(){return(0,t.jsx)("div",{className:"skeleton-wrap space-y-10",children:(0,c.Z)((0,u.Z)(0,4),e=>(0,t.jsxs)("div",{className:"flex space-x-4 h-20",children:[(0,t.jsx)("span",{className:"h-full w-20"}),(0,t.jsx)("span",{className:"h-full flex-1"})]},e))})}},69936:function(e,n,s){s.d(n,{Z:function(){return u}});var t=s(57437),r=s(84772),l=s.n(r),a=s(40795),i=s(85264),c=s(2265),o=s(70615);function u(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,[s,r]=(0,o.Z)(!1);return[(0,c.useMemo)(()=>s?e:(0,a.Z)(e,n),[e,s,n]),(0,c.useMemo)(()=>function(a){let{className:o,btnClassName:u,showAllLabel:d="View more",showLessLabel:m="View less",arrow:x=!1}=a,f=(0,c.useCallback)(()=>r(),[]);if(!((0,i.Z)(e)<=n))return(0,t.jsxs)("div",{className:o,onClick:f,children:[(0,t.jsx)("span",{className:u,children:s?m:d}),x&&(0,t.jsx)("i",{className:l()("icon ml-4",s?"icon-arrow-up":"icon-arrow-down")})]})},[e,n,s,r]),s,r]}},73061:function(e,n,s){s.d(n,{Z:function(){return c}});var t=Math.ceil,r=Math.max,l=function(e,n,s,l){for(var a=-1,i=r(t((n-e)/(s||1)),0),c=Array(i);i--;)c[l?i:++a]=e,e+=s;return c},a=s(2864),i=s(29491),c=function(e,n,s){return s&&"number"!=typeof s&&(0,a.Z)(e,n,s)&&(n=s=void 0),e=(0,i.Z)(e),void 0===n?(n=e,e=0):n=(0,i.Z)(n),s=void 0===s?e<n?1:-1:(0,i.Z)(s),l(e,n,s,void 0)}}}]);

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.