PageSourceSearch

https://www.assaabloydss.com/etc.clientlibs/aeh/clientlibs/depende…/resources/chunks/index.O7SZYHxr.js

js assaabloydss.com collected 2026-10-01 12:06:09 UTC 11,528 bytes, 1 lines download raw bytes

1import{a3 as V,a4 as W,a5 as U,a9 as me,j as e,aK as xe,aL as ge,aM as fe,ah as O,ap as ve,B as ce,p as je,N as w}from"../js/app.CzHXv3OC.js";import{g as $}from"./vendor.CLXKpVbq.js";import{r as S}from"./elastic.CDqqVJuy.js";import{K as be}from"./KeyboardArrowDown.DijceEgu.js";import{a as T}from"./Button.CgtN9LhY.js";import{z as o}from"./index.D6mVWLHx.js";import{I as ye,J as ne}from"./button.BLXcxSDr.js";const ke=t=>{var s;return((s=document.cookie.match("(^|;)\\s*"+t+"\\s*=\\s*([^;]+)"))==null?void 0:s.pop())||""};function Oe(t=""){switch(t){case"modal":return"modal";case"_blank":return"_blank";default:return"_self"}}var b={},ie;function we(){if(ie)return b;ie=1;var t=V();Object.defineProperty(b,"__esModule",{value:!0}),b.default=void 0;var s=t(W()),a=U();return b.default=(0,s.default)((0,a.jsx)("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2"}),"ChatBubble"),b}var ze=we();const Ie=$(ze),Ae=me(e.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),de=()=>{const{widget:t,setWidget:s,menuKey:a,setMenuKey:n,ready:r,setReady:d,authenticated:h,setAuthenticated:l,connected:z,setConnected:C,disconnected:I,setDisconnected:x,dismissed:D,setDismissed:E,timedout:L,setTimedout:m,ended:H,setEnded:g,destroyed:M,setDestroyed:_,hidden:f,setHidden:A}=xe();function B(){t&&(f==="yes"?t.show():t.hide())}function R({menuKeyArg:q,ticketId:N,preferredChannel:u}){t&&t.start({menuKey:q,ticketId:N,preferredChannel:u})}return{widget:t,setWidget:s,menuKey:a,setMenuKey:n,ready:r,setReady:d,authenticated:h,setAuthenticated:l,connected:z,setConnected:C,disconnected:I,setDisconnected:x,dismissed:D,setDismissed:E,timedout:L,setTimedout:m,ended:H,setEnded:g,destroyed:M,setDestroyed:_,hidden:f,setHidden:A,toggleHidden:B,start:R}};var y={},oe;function Ce(){if(oe)return y;oe=1;var t=V();Object.defineProperty(y,"__esModule",{value:!0}),y.default=void 0;var s=t(W()),a=U();return y.default=(0,s.default)([(0,a.jsx)("path",{d:"M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2h1v-6.1c0-3.87 3.13-7 7-7s7 3.13 7 7V19h-8v2h8c1.1 0 2-.9 2-2v-1.22c.59-.31 1-.92 1-1.64v-2.3c0-.7-.41-1.31-1-1.62"},"0"),(0,a.jsx)("circle",{cx:"9",cy:"13",r:"1"},"1"),(0,a.jsx)("circle",{cx:"15",cy:"13",r:"1"},"2"),(0,a.jsx)("path",{d:"M18 11.03C17.52 8.18 15.04 6 12.05 6c-3.03 0-6.29 2.51-6.03 6.45 2.47-1.01 4.33-3.21 4.86-5.89 1.31 2.63 4 4.44 7.12 4.47"},"3")],"SupportAgent"),y}var De=Ce();const Ee=$(De);var k={},re;function Le(){if(re)return k;re=1;var t=V();Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var s=t(W()),a=U();return k.default=(0,s.default)([(0,a.jsx)("path",{d:"m21.67 18.17-5.3-5.3h-.99l-2.54 2.54v.99l5.3 5.3c.39.39 1.02.39 1.41 0l2.12-2.12c.39-.38.39-1.02 0-1.41"},"0"),(0,a.jsx)("path",{d:"m17.34 10.19 1.41-1.41 2.12 2.12c1.17-1.17 1.17-3.07 0-4.24l-3.54-3.54-1.41 1.41V1.71l-.7-.71-3.54 3.54.71.71h2.83l-1.41 1.41 1.06 1.06-2.89 2.89-4.13-4.13V5.06L4.83 2.04 2 4.87 5.03 7.9h1.41l4.13 4.13-.85.85H7.6l-5.3 5.3c-.39.39-.39 1.02 0 1.41l2.12 2.12c.39.39 1.02.39 1.41 0l5.3-5.3v-2.12l5.15-5.15z"},"1")],"Handyman"),k}var He=Le();const le=$(He),Me=({ujetMenuKeyCustomerService:t,ujetMenuKeyTechnicalProductSupport:s,ujetMenuKeyTechnicalElectricalProductSupport:a,onClose:n,...r})=>{const{setMenuKey:d,start:h}=de();return e.jsxs(ge,{onClose:n,maxWidth:"sm",PaperProps:{sx:{position:"absolute",right:-12,bottom:40,minWidth:"280px"}},...r,children:[e.jsx(fe,{sx:{m:0,p:2,color:"var(--aa-one-cms-palette-primary-contrastText)",backgroundColor:"var(--aa-one-cms-palette-primary-main)"},children:"Select Chat Menu"}),e.jsx(O,{"aria-label":"close",onClick:l=>n==null?void 0:n(l,"backdropClick"),sx:{position:"absolute",right:8,top:8,color:"var(--aa-one-cms-palette-primary-contrastText)"},children:e.jsx(ve,{})}),t||s||a?e.jsxs(ce,{sx:{display:"flex",flexDirection:"column",alignItems:"start",ga
1p:"4px",p:1,bgcolor:"background.paper"},children:[t&&e.jsx(T,{startIcon:e.jsx(Ee,{}),onClick:l=>{d(t),n==null||n(l,"backdropClick"),h({menuKeyArg:t})},children:"Customer Service"}),s&&e.jsx(T,{startIcon:e.jsx(le,{}),onClick:l=>{d(s),n==null||n(l,"backdropClick"),h({menuKeyArg:s})},children:"Technical Product Support"}),a&&e.jsx(T,{startIcon:e.jsx(le,{}),onClick:l=>{d(a),n==null||n(l,"backdropClick"),h({menuKeyArg:a})},children:"Technical Electrical Product Support"})]}):"No available menus "]})},Ve=({ujetMenuKeyCustomerService:t,ujetMenuKeyTechnicalProductSupport:s,ujetMenuKeyTechnicalElectricalProductSupport:a,domain:n,siteRoot:r,companyId:d,host:h,tenant:l,logoSrc:z,hasSpeedDial:C=!1})=>{const[I,x]=S.useState(!1),D=()=>{x(!I)},E=()=>{x(!0)},L=()=>{x(!1)},{widget:m,setWidget:H,ready:g,setReady:M,setAuthenticated:_,setConnected:f,setDisconnected:A,setDismissed:B,setTimedout:R,setEnded:q,setDestroyed:N,hidden:u,setHidden:he,toggleHidden:ue,start:F,menuKey:c}=de();S.useEffect(()=>{async function Q(){const v=ke("ujet-jwt");if(v)try{const[,j]=v.split("."),{exp:pe}=JSON.parse(atob(j));if(!(Date.now()>=pe*1e3))return{token:v};document.cookie="ujet-jwt=; Max-Age=0; path=/;"}catch{document.cookie="ujet-jwt=; Max-Age=0; path=/;"}try{return{token:await(await fetch(`${n}/bin/getUJETAuthToken?tNow=${Date.now()}&cmpntPath=${r}/jcr:content/ujet`)).text()}}catch(j){console.error("Error: authenticating with UJET",j)}}const i=new UJET({companyId:d,host:h,tenant:l,authenticate:Q});i.config({disableLauncher:!0,logo:`${n}${z}`}),H(i),i.mount("#ujet-widget");const P=()=>{M(!0)};i.on("ready",P);const G=()=>{_(!0)};i.on("authenticated",G);const X=()=>{f(!0),A(!1)};i.on("chat.connected",X);const Y=()=>{A(!0),f(!1)};i.on("chat.disconnected",Y);const Z=()=>B(!0);i.on("chat.dismissed",Z);const ee=()=>R(!0);i.on("chat.timeout",ee);const te=()=>q(!0);i.on("chat.ended",te);const ae=()=>N(!0);i.on("chat.destroyed",ae);const se=v=>{he(v?"no":"yes")};return i.on("visible",se),()=>{i.off("ready",P),i.off("authenticated",G),i.off("chat.connected",X),i.off("chat.disconnected",Y),i.off("chat.dismissed",Z),i.off("chat.timeout",ee),i.off("chat.ended",te),i.off("chat.destroyed",ae),i.off("visible",se)}},[d,h,l,n,z]),S.useEffect(()=>{c?c&&u==="no"&&F({menuKeyArg:c}):(u==="yes"||!u)&&(m==null||m.hide())},[m,c]);const K=c===t||c===s||c===a;return e.jsxs(e.Fragment,{children:[e.jsx(Me,{open:I,onClose:L,ujetMenuKeyCustomerService:t,ujetMenuKeyTechnicalProductSupport:s,ujetMenuKeyTechnicalElectricalProductSupport:a}),e.jsx("div",{id:"ujet-widget",style:{"--ujet-bottom":C?"150px":"70px",zIndex:1112,position:"relative"}}),e.jsxs(ce,{sx:{position:"fixed",display:"relative",bottom:{xs:20,md:16},right:18,zIndex:100},children:[u==="yes"&&c&&K&&e.jsx(O,{"aria-label":"Open Chat Menu",sx:{position:"absolute",display:"flex",justifyItems:"center",alignItems:"center",right:"-10px",bottom:"-10px",zIndex:10,width:"30px",height:"30px",backgroundColor:"gray",color:"white"},onClick:D,children:e.jsx(Ae,{})}),e.jsx(O,{"aria-label":u==="yes"?"Open Chat":"Minimize Chat",size:"large",sx:{backgroundColor:"var(--aa-one-cms-palette-primary-main)",color:"var(--aa-one-cms-palette-primary-contrastText)",boxShadow:3,":hover":{backgroundColor:"var(--aa-one-cms-palette-primary-contrastText)",color:"var(--aa-one-cms-palette-primary-main)"}},onClick:Q=>{!c||!K?E():g?ue():F({menuKeyArg:c})},children:g?e.jsx(e.Fragment,{children:g&&u==="yes"?e.jsx(Ie,{}):e.jsx(be,{})}):e.jsx(je,{color:"inherit",size:28})})]})]})},We=o.object({name:o.string().optional(),street:o.string().optional(),city:o.string().optional(),state:o.string().optional(),zipcode:o.string().optional(),directions:o.string().optional()}),p=o.object({open:ne.optional(),closed:ne.optional(),timezone:ye.optional()}),J=o.object({enabled:o.boolean().optional(),liveChat:o.string().optional(),phone:o.string().optional(),phoneLink:o.string().optional(),title:o.string().optional(),monday:p.optional(),tuesday:p.optional(),wednesday:p.optional(),thursday:p.optional(),friday:p.optional(),saturday:p.optional(),sunday:p.optional()}
1),Ue=o.object({customer:J.optional(),technical:J.optional(),technicalElectromechanical:J.optional()});var $e=({title:t,titleId:s,size:a="sm",className:n,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24","aria-labelledby":s,className:w("stroke-[#909090]",a==="sm"&&"size-[var(--icon-size-24)]",a==="lg"&&"size-[var(--icon-size-32)]",n),...r,children:[t?e.jsx("title",{id:s,children:t}):null,e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M7 10v4h3v7h4v-7h3l1-4h-4V8a1 1 0 0 1 1-1h3V3h-3a5 5 0 0 0-5 5v2z"})]}),Fe=({title:t,titleId:s,size:a="sm",className:n,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24","aria-labelledby":s,className:w("stroke-[#909090]",a==="sm"&&"size-[var(--icon-size-24)]",a==="lg"&&"size-[var(--icon-size-32)]",n),...r,children:[t?e.jsx("title",{id:s,children:t}):null,e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M16.5 7.5v.01M4 8a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4H8a4 4 0 0 1-4-4zm5 4a3 3 0 1 0 6 0 3 3 0 0 0-6 0"})]}),Ke=({title:t,titleId:s,size:a="sm",className:n,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24","aria-labelledby":s,className:w("stroke-[#909090]",a==="sm"&&"size-[var(--icon-size-24)]",a==="lg"&&"size-[var(--icon-size-32)]",n),...r,children:[t?e.jsx("title",{id:s,children:t}):null,e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M8 11v5m0-8v.01M12 16v-5m4 5v-3a2 2 0 0 0-4 0M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z"})]}),Qe=({title:t,titleId:s,size:a="sm",...n})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24","aria-labelledby":s,className:w(a==="sm"&&"size-[var(--icon-size-24)]",a==="lg"&&"size-[var(--icon-size-32)]"),...n,children:[t?e.jsx("title",{id:s,children:t}):null,e.jsx("path",{fill:"currentColor",d:"M13.712 10.622 20.413 3h-1.588l-5.818 6.618L8.36 3H3l7.027 10.007L3 21h1.588l6.144-6.989L15.64 21H21zm-2.174 2.474-.713-.997L5.16 4.17H7.6l4.571 6.4.712.996 5.943 8.319h-2.439z"})]}),Pe=({title:t,titleId:s,size:a="sm",className:n,...r})=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 24 24","aria-labelledby":s,className:w("stroke-[#909090]",a==="sm"&&"size-[var(--icon-size-24)]",a==="lg"&&"size-[var(--icon-size-32)]",n),...r,children:[t?e.jsx("title",{id:s,children:t}):null,e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M3 9a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4v6a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4z"}),e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m10 9 5 3-5 3z"})]});export{We as A,Ve as U,$e as a,de as b,Oe as c,Ue as d,Pe as h,Fe as l,Qe as m,Ke as 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.