1"use strict";(self.webpackChunkclusterly_ng_frontend=self.webpackChunkclusterly_ng_frontend||[]).push([[4370],{809:(e,l,n)=>{n.r(l),n.d(l,{default:()=>R});var i=n(7313),t=n(5590),o=n(2176),s=n(3229),a=n(8467),d=n(1465),r=n(8352),c=n(7114),u=n.n(c),v=n(4580),m=n(8153),p=n(9062),h=n(3854),f=n(7248),g=n.n(f),x=n(8786),j=n.n(x),y=n(3152),N=n(9513),b=n(6814),A=n(5537),T=n(3499),E=n(9094),S=n(2328),w=n(4755),C=n(6392),P=n(37),O=n(5777),_=n(390),I=n(6417);const R=(0,t.Zh)()((e=>{var l,t,c,f,x,R,k,L,F,B,D,K;let{t:z,state:U}=e;const M=(0,a.TH)(),W=(0,a.s0)(),Y=(0,i.useRef)(null),{id:Z}=(0,a.UO)(),q=(0,A.v9)((e=>e.auth.user)),[H,V]=(0,i.useState)(!1),[G,Q]=(0,i.useState)(null),[J,X]=(0,i.useState)([]),[$,ee]=(0,i.useState)([]),[le,ne]=(0,i.useState)(!1),[ie,te]=(0,i.useState)(!1),oe={requestType:"B",phone:"",requestText:""},[se,ae]=(0,i.useState)(oe),[de,re]=(0,i.useState)("+44"),[ce,ue]=(0,i.useState)(""),[ve,me]=(0,i.useState)("");(0,i.useEffect)((()=>{V(!0),O.Z.getBuildingAssetWithLinkId(Z).then((e=>{var l;V(!1),Q(null===e||void 0===e?void 0:e.data);let n=[...null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.documentList],i=[],t=[];for(let o=0;o<(null===n||void 0===n?void 0:n.length);o++)1===n[o].docType?t.push(n[o]):2===n[o].docType&&i.push({original:n[o].documentURL});X(t),ee(i)}),(e=>{const l=e.response&&e.response.data&&e.response.data.message||e.message||e.timeoutErrorMessage||e.toString();V(!1),u().fire({title:z(l),icon:"error",timer:2e3,showConfirmButton:!1})}))}),[]),(0,i.useEffect)((()=>{void 0!==(null===G||void 0===G?void 0:G.name)&&null!==(null===G||void 0===G?void 0:G.name)&&""!==(null===G||void 0===G?void 0:G.subject)&&(document.title=null===G||void 0===G?void 0:G.name)}),[G]),(0,i.useEffect)((()=>{void 0!==G&&null!==G&&P.Z.postKoppen({lat:parseFloat(null===G||void 0===G?void 0:G.latLon),lon:parseFloat(null===G||void 0===G?void 0:G.latlng)}).then((e=>{var l;ue(null===e||void 0===e||null===(l=e.data)||void 0===l?void 0:l.kg_zone)}))}),[null===G||void 0===G?void 0:G.latLon,null===G||void 0===G?void 0:G.latlng,9]),(0,i.useEffect)((()=>{const e=y.nk.find((e=>(null===e||void 0===e?void 0:e.class)===ce));me(e?ce+" - "+z(null===e||void 0===e?void 0:e.name):null)}),[ce]);const pe=g().icon({iconUrl:n(5731),iconSize:[60,60],iconAnchor:[30,55],popupAnchor:[0,-48]}),he=e=>{const l=null===y.eh||void 0===y.eh?void 0:y.eh.find((l=>(null===l||void 0===l?void 0:l.code)===e));return l?null===l||void 0===l?void 0:l.name:null},fe=e=>{const l=null===y.Wq||void 0===y.Wq?void 0:y.Wq.find((l=>(null===l||void 0===l?void 0:l.code)===e));return l?null===l||void 0===l?void 0:l.name:null},ge=()=>{te(!1),ae(oe),re("+44")},xe=()=>{var e;V(!0);const l={...se,phone:de+se.phone,buildingAssetId:null===G||void 0===G?void 0:G.id,organisationId:null===q||void 0===q||null===(e=q.lastUsedOrganisation)||void 0===e?void 0:e.id};r.Z.addTestProcess(l).then((e=>{V(!1),U.setIsClient(!0),ae(oe),te(!1),U.setBlockedPanel(!0)}),(e=>{te(!1);const l=e.response&&e.response.data&&e.response.data.message||e.message||e.timeoutErrorMessage||e.toString();V(!1),u().fire({title:z(l),icon:"error",timer:2500,showConfirmButton:!1})}))};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"grid w-full",children:[(0,I.jsx)("div",{className:"col-12 lg:col-3",children:(0,I.jsx)(o.Z,{})}),(0,I.jsx)("div",{className:(0,_.jl)()?"col-12 lg:col-9":"col-12",children:(0,I.jsxs)(s.ml,{children:[(0,I.jsx)("div",{className:"back-button",onClick:()=>W(-1),children:"search"===(null===M||void 0===M?void 0:M.state)?z("backToSearch"):z("backToOrgProfile")}),(0,I.jsx)(d.i,{}),(0,I.jsxs)("div",{className:"grid mt-1",children:[(0,I.jsxs)("div",{className:"lg:col-8 col-12",children:[(0,I.jsx)("div",{className:"facility-title",children:null===G||void 0===G?void 0:G.name}),(null===G||void 0===G?void 0:G.latlng)&&(null===G||void 0===G?void 0:G.latLon)&&(0,I.jsx)("div",{className:"map",children:(0,I.jsxs)(v.h,{ref:Y,center:null===(null===G||void 0===G?void 0:G.latlng)&&null===(null===G||void 0===G?void 0:G.latLon)?[51.50731233910749,-.12774676732048648]:[parseFloat(null===G||void 0===G?void 0:G.latlng),parseFloat(null===G||void 0===G?void 0:G.latLon)],zoom:9,maxZoom:17,minZoom:12,scrollWheelZoom:!0,className:"map-style",children:[(0,I.jsx)(m.I,{url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'\xa9 <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}),(null===G||void 0===G?void 0:G.latlng)&&(null===G||void 0===G?void 0:G.latLon)&&(0,I.jsx)(p.J,{position:[null===G||void 0===G?void 0:G.latlng,null===G||void 0===G?void 0:G.latLon],icon:pe,children:(0,I.jsxs)(h.G,{children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("b",{children:"Latitude: "}),null===G||void 0===G?void 0:G.latlng]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("b",{children:"Longitude: "}),null===G||void 0===G?void 0:G.latLon]})]})})]})}),null!==(null===G||void 0===G?void 0:G.briefInformation)&&""!==(null===G||void 0===G?void 0:G.briefInformation)&&(0,I.jsxs)("div",{className:"mt-3",children:[(0,I.jsx)("span",{className:"titles",children:z("briefInformationAboutBuilding")}),(0,I.jsx)("div",{className:"text-content",children:null===G||void 0===G?void 0:G.briefInformation})]}),null!==(null===G||void 0===G?void 0:G.envelopeMaterialComposition)&&""!==(null===G||void 0===G?void 0:G.envelopeMaterialComposition)&&(0,I.jsxs)("div",{className:"mt-3",children:[(0,I.jsx)("span",{className:"titles",children:z("envelopeMaterialComposition")}),(0,I.jsx)("div",{className:"text-content",children:null===G||void 0===G?void 0:G.envelopeMaterialComposition})]}),null!==(null===G||void 0===G?void 0:G.sanitaryAndElectricalSystems)&&""!==(null===G||void 0===G?void 0:G.sanitaryAndElectricalSystems)&&(0,I.jsxs)("div",{className:"mt-3",children:[(0,I.jsx)("span",{className:"titles",children:z("sanitaryAndElectricalSystems")}),(0,I.jsx)("div",{className:"text-content",children:null===G||void 0===G?void 0:G.sanitaryAndElectricalSystems})]}),null!==(null===G||void 0===G?void 0:G.renovations)&&""!==(null===G||void 0===G?void 0:G.renovations)&&(0,I.jsxs)("div",{className:"mt-3",children:[(0,I.jsx)("span",{className:"titles",children:z("renovations")}),(0,I.jsx)("div",{className:"text-content",children:null===G||void 0===G?void 0:G.renovations})]}),(null===J||void 0===J?void 0:J.length)>0&&(0,I.jsxs)("div",{className:"mt-3 mb-3",children:[(0,I.jsx)("span",{className:"titles",children:z("documents")}),(0,I.jsx)("div",{className:"documents",children:null===J||void 0===J?void 0:J.map(((e,l)=>(0,I.jsxs)("div",{className:"doc-item",children:[(0,I.jsx)("div",{className:"col-10",children:(0,I.jsx)("div",{className:"flex flex-column",children:(0,I.jsx)("span",{className:"doc-name",children:null===e||void 0===e?void 0:e.description})})}),(0,I.jsx)("div",{className:"col-2",children:(0,I.jsx)("div",{className:"flex align-items-center justify-content-end",children:(0,I.jsx)("a",{href:e.documentURL,download:"dokuman.pdf",target:"_blank",rel:"noreferrer",children:(0,I.jsx)("img",{src:"/assets/img/downloadIcon.png",alt:"",style:{cursor:"pointer"}})})})})]},l)))})]}),(null===G||void 0===G?void 0:G.otherLink)&&""!==(null===G||void 0===G||null===(l=G.otherLink)||void 0===l?void 0:l.trim())&&"http://"!==(null===G||void 0===G?void 0:G.otherLink)&&(0,I.jsx)("a",{href:null===G||void 0===G?void 0:G.otherLink,className:"flex align-items-center justify-content-center pt-3 pb-3",style:{textDecoration:"underline",color:"#65558F"},children:z("relatedLinkOrg")})]}),(0,I.jsxs)("div",{className:"lg:col-4 col-12",children:[(0,I.jsxs)("div",{className:"mb-2",children:[(0,I.jsx)("span",{className:"titles",children:z("organisation")}),(0,I.jsxs)("div",{className:"organisation-container",children:[!1,(0,I.jsxs)("div",{className:"organisation",children:[(0,I.jsx)("div",{className:"flex aling-items-center justify-content-center",children:(0,I.jsx)("img",{className:"org-img",src:null===G||void 0===G||null===(t=G.organisation)||void 0===t?void 0:t.logoLink,alt:""})}),(0,I.jsxs)("div",{className:"flex flex-column",children:[(0,I.jsx)("a",{href:"/o/".concat(null===G||void 0===G||null===(c=G.organisation)||void 0===c?void 0:c.linkId),children:(0,I.jsx)("span",{className:"org-name",children:null===G||void 0===G||null===(f=G.organisation)||void 0===f?void 0:f.name})}),(0,I.jsx)("span",{className:"org-country",children:null===G||void 0===G||null===(x=G.organisation)||void 0===x?void 0:x.country})]})]})]})]}),(0,_.jl)()&&(0,I.jsx)(T.z,{label:z("contactUsForAssistanceAndQuote"),className:"contact-button mb-2",onClick:()=>{te(!0)}}),(null===$||void 0===$?void 0:$.length)>0&&(0,I.jsx)("div",{className:le?"gallery-w-fullscreen":"mb-4 gallery",children:(0,I.jsx)(j(),{items:$,showThumbnails:!1,showPlayButton:!1,showBullets:!1,show
1FullscreenButton:!0,onScreenChange:e=>{ne(e)}})}),null!==(null===G||void 0===G?void 0:G.typeOfOwnership)&&""!==(null===G||void 0===G?void 0:G.typeOfOwnership)&&(0,I.jsxs)("div",{className:"mt-2",children:[(0,I.jsx)("span",{className:"titles",children:z("typeOfOwnership")}),(0,I.jsx)("div",{className:"text-content-second",children:(e=>{const l=null===y.Ro||void 0===y.Ro?void 0:y.Ro.find((l=>(null===l||void 0===l?void 0:l.code)===e));return l?null===l||void 0===l?void 0:l.name:null})(null===G||void 0===G?void 0:G.typeOfOwnership)})]}),null!==(null===G||void 0===G?void 0:G.buildingType)&&""!==(null===G||void 0===G?void 0:G.buildingType)&&(0,I.jsxs)("div",{className:"mt-2",children:[(0,I.jsx)("span",{className:"titles",children:z("buildingType")}),(0,I.jsx)("div",{className:"text-content-second",children:(e=>{const l=null===y.xC||void 0===y.xC?void 0:y.xC.find((l=>(null===l||void 0===l?void 0:l.code)===e));return l?null===l||void 0===l?void 0:l.name:null})(null===G||void 0===G?void 0:G.buildingType)})]}),null!==(null===G||void 0===G?void 0:G.constructionYear)&&""!==(null===G||void 0===G?void 0:G.constructionYear)&&(0,I.jsxs)("div",{className:"mt-2",children:[(0,I.jsx)("span",{className:"titles",children:z("constructionYear")}),(0,I.jsx)("div",{className:"text-content-second",children:null===G||void 0===G?void 0:G.constructionYear})]}),null!==(null===G||void 0===G?void 0:G.climateInformation)&&""!==(null===G||void 0===G?void 0:G.climateInformation)&&(0,I.jsxs)("div",{className:"mt-2",children:[(0,I.jsx)("span",{className:"titles",children:z("k\xf6ppenClimateClassification")}),(0,I.jsx)("div",{className:"text-content-second",children:ve})]}),null!==(null===G||void 0===G?void 0:G.climateInformation)&&""!==(null===G||void 0===G?void 0:G.climateInformation)&&(0,I.jsxs)("div",{className:"mt-2",children:[(0,I.jsx)("span",{className:"titles",children:z("climateInformation")}),(0,I.jsx)("div",{className:"text-content-second",children:null===G||void 0===G?void 0:G.climateInformation})]}),null!==(null===G||void 0===G?void 0:G.numberOfStoreys)&&""!==(null===G||void 0===G?void 0:G.numberOfStoreys)&&(0,I.jsxs)("div",{className:"mt-2",children:[(0,I.jsx)("span",{className:"titles",children:z("numberOfStoreys")}),(0,I.jsx)("div",{className:"text-content-second",children:null===G||void 0===G?void 0:G.numberOfStoreys})]}),null!==(null===G||void 0===G?void 0:G.totalFloorArea)&&""!==(null===G||void 0===G?void 0:G.totalFloorArea)&&(0,I.jsxs)("div",{className:"mt-2",children:[(0,I.jsx)("span",{className:"titles",children:z("totalFloor")}),(0,I.jsx)("div",{className:"text-content-second",children:null===G||void 0===G?void 0:G.totalFloorArea})]}),null!==(null===G||void 0===G?void 0:G.facadeTypology)&&""!==(null===G||void 0===G?void 0:G.facadeTypology)&&(0,I.jsxs)("div",{className:"mt-2",children:[(0,I.jsx)("div",{className:"titles",children:z("facadeTypology")}),(0,I.jsx)("div",{className:"flex flex-wrap gap-2 mt-1",children:null===G||void 0===G||null===(R=G.facadeTypology)||void 0===R||null===(k=R.split(","))||void 0===k?void 0:k.map(((e,l)=>(0,I.jsx)("div",{className:"tag",children:he(e)},l)))})]}),null!==(null===G||void 0===G?void 0:G.roofTypology)&&""!==(null===G||void 0===G?void 0:G.roofTypology)&&(0,I.jsxs)("div",{className:"mt-3",children:[(0,I.jsx)("div",{className:"titles",children:z("roofTypology")}),(0,I.jsx)("div",{className:"flex flex-wrap gap-2 mt-1",children:null===G||void 0===G||null===(L=G.roofTypology)||void 0===L||null===(F=L.split(","))||void 0===F?void 0:F.map(((e,l)=>(0,I.jsx)("div",{className:"tag",children:fe(e)},l)))})]}),"1"===(null===G||void 0===G?void 0:G.hostedAnyPilotingActivities)&&(0,I.jsxs)("div",{className:"pilotActivityStatus",children:[(0,I.jsx)("i",{className:"pi pi-info-circle"}),(0,I.jsx)("label",{children:z("previouslyText")})]})]})]})]})})]}),(0,I.jsx)(b.V,{visible:ie,modal:!0,className:"p-fluid dialog-size",footer:()=>(0,I.jsxs)("div",{className:"flex align-items-center justify-content-center gap-3",children:[(0,I.jsx)(T.z,{label:z("cancel"),className:"dialog-cancel-button",onClick:ge}),(0,I.jsx)(T.z,{label:z("submit"),className:"dialog-save-fourth-button",onClick:xe})]}),onHide:ge,header:(je="pilotRequest",ye="pleaseFillOutTheFormBelowToRequestAPilot",Ne="/assets/img/mtblogo.png",(0,I.jsxs)("div",{className:"flex align-items-center gap-3",children:[(0,I.jsx)("div",{className:"image-wrapper",children:(0,I.jsx)("img",{style:{width:"50px",height:"50px",objectFit:"contain"},src:Ne,alt:"logo-desc"})}),(0,I.jsxs)("div",{className:"flex flex-column gap-1",children:[(0,I.jsx)("div",{style:{fontSize:"16px",color:"#8A5C9C",fontWeight:"bold"},children:z(je)}),(0,I.jsx)("div",{style:{color:"#595959"},children:z(ye)})]})]})),children:(0,I.jsxs)(s.TM,{children:[(0,I.jsxs)("div",{className:"service-information",children:[(0,I.jsx)("div",{className:"title",children:z("buildingInformation")}),(0,I.jsxs)("div",{className:"information-wrapper",children:[(0,I.jsx)("div",{className:"image-wrapper",children:(0,I.jsx)("img",{src:(e=>{var l,n;const i=null===e||void 0===e||null===(l=e.documentList)||void 0===l?void 0:l.filter((e=>2===(null===e||void 0===e?void 0:e.docType)));return(null===i||void 0===i?void 0:i.length)>0?null===(n=i[0])||void 0===n?void 0:n.documentURL:"/assets/img/buildingTemplate.svg"})(G),alt:"service-information"})}),(0,I.jsxs)("div",{className:"text-wrapper",children:[(0,I.jsx)("div",{className:"title",children:null===G||void 0===G?void 0:G.name}),(0,I.jsx)("div",{children:null===G||void 0===G||null===(B=G.organisation)||void 0===B?void 0:B.name}),(0,I.jsx)("div",{children:null===G||void 0===G?void 0:G.country})]})]})]}),(0,I.jsxs)("div",{className:"p-float-label w-full",children:[(0,I.jsx)(E.g,{value:se.requestText,onChange:e=>ae({...se,requestText:e.target.value}),rows:7,cols:30,className:"w-full",id:"note"}),(0,I.jsx)("label",{htmlFor:"note",children:z("feelFreeText")})]}),(0,I.jsxs)("div",{className:"owner-section",children:[(0,I.jsxs)("div",{className:"flex align-items-center",children:[(0,I.jsx)("div",{className:"title",children:z("yourBelowInformationWillBeSharedWithMetabuildingTeamAndTheBuildingOwner")}),(0,I.jsx)("i",{className:"pi pi-info-circle","data-pr-tooltip":z("detailTextTooltip"),"data-pr-position":"right",style:{marginLeft:"10px",cursor:"pointer"}}),(0,I.jsx)(S.u,{target:".pi-info-circle"})]}),(0,I.jsxs)("div",{className:"information-wrapper",children:[(0,I.jsx)("div",{className:"image-wrapper",children:(0,I.jsx)("img",{src:null!==q&&void 0!==q&&q.avatarLink?null===q||void 0===q?void 0:q.avatarLink:"/assets/img/templateUser.png",alt:"service-information"})}),(0,I.jsxs)("div",{className:"text-wrapper",children:[(0,I.jsx)("div",{className:"title",children:null===q||void 0===q?void 0:q.fullname}),(0,I.jsx)("div",{children:null===q||void 0===q?void 0:q.username}),(0,I.jsxs)("div",{className:"flex align-items-center",children:[(0,I.jsx)("span",{children:null===q||void 0===q||null===(D=q.lastUsedOrganisation)||void 0===D?void 0:D.name})," ",(0,I.jsx)("i",{className:"pi pi-info-circle","data-pr-tooltip":z("orgSwitchText"),"data-pr-position":"right",style:{marginLeft:"10px",cursor:"pointer"}}),(0,I.jsx)(S.u,{target:".pi-info-circle"})]}),(0,I.jsx)("div",{children:null===q||void 0===q||null===(K=q.lastUsedOrganisation)||void 0===K?void 0:K.country})]})]})]}),(0,I.jsxs)("div",{className:"contact-section",children:[(0,I.jsx)("div",{className:"title",children:z("wouldYouPreferToBeContactedByPhone")}),(0,I.jsxs)("div",{className:"flex align-items-center gap-2",children:[(0,I.jsx)("div",{className:"",children:(0,I.jsx)(w.L,{id:"countryCode",value:de,options:y.K0,onChange:e=>re(e.value),placeholder:z("selectCountryCode"),filter:!0,filterBy:"label",appendTo:"self"})}),(0,I.jsxs)("div",{className:"p-float-label w-full",children:[(0,I.jsx)(C.v,{id:"phone",mask:"(999) 999-9999",value:se.phone,placeholder:"(999) 999-9999",onChange:e=>ae({...se,phone:e.value})}),(0,I.jsx)("label",{htmlFor:"phone",children:z("phoneNumber")})]})]})]})]})}),(0,I.jsx)(N.Z,{loading:H,lang:z})]});var je,ye,Ne}))},37:(e,l,n)=>{n.d(l,{Z:()=>s});var i=n(5662);const t={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_SERVER_ADDRESS:"https://online.clusterly.net",REACT_APP_CAPTCHA_SITE_KEY:"6LcGN3spAAAAANgzd6z8M6eWkEMACqR54LIVXtww",REACT_APP_ORCID_CLIENT_ID:"APP-0G4J9PHFY54KE5FN",REACT_APP_LINKEDIN_CLIENT_ID:"781201pd44l3in",REACT_APP_MB_LABS_STATUS:"false",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyAmnt1N83N4yRxjpAkCIgcRVSUDYACKA9Q"}.REACT_APP_KOPPEN_ADDRESS+"/getKoppenGeigerZone",o=i.Z.create({baseURL:t,timeout:3e4,timeoutErrorMessage:"Connection timeout. Please try again",headers:{"Content-Type":"application/json",Accept:"application/json"}});const s=new class{postKoppen(e){return o.post("",{body:e})}}},9116:(e,l,n)=>{n.d(l,{C:()=>s});var i=n(7313),t=n(5234);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var n=arguments[l];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(this,arguments)}var s=i.memo(i.forwardRef((function(e,l){var n,a,d,r=i.useRef(null),c=t.gb.findDiffKeys(e,s.defaultProps),u=(0,t.AK)("p-badge p-component",(n={"p-badge-no-gutter":t.gb.isNotEmpty(e.value)&&1===String(e.value).length,"p-badge-dot":t.gb.isEmpty(e.value),"p-badge-lg":"large"===e.size,"p-badge-xl":"xlarge"===e.size},a="p-badge-".concat(e.severity),d=null!==e.severity,a in n?Object.defineProperty(n,a,{value:d,enumerable:!0,configurable:!0,writable:!0}):n[a]=d,n),e.className);return i.useImperativeHandle(l,(function(){return{props:e,getElement:function(){return r.current}}})),i.createElement("span",o({ref:r,className:u,style:e.style},c),e.value)})));s.displayName="Badge",s.defaultProps={__TYPE:"Badge",value:null,severity:null,size:null,style:null,className:null}},1465:(e,l,n)=>{n.d(l,{i:()=>s});var i=n(7313),t=n(5234);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var n=arguments[l];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(this,arguments)}var s=i.forwardRef((function(e,l){var n=i.useRef(null),a="horizontal"===e.layout,d="vertical"===e.layout,r=t.gb.findDiffKeys(e,s.defaultProps),c=(0,t.AK)("p-divider p-component p-divider-".concat(e.layout," p-divider-").concat(e.type),{"p-divider-left":a&&
1(!e.align||"left"===e.align),"p-divider-right":a&&"right"===e.align,"p-divider-center":a&&"center"===e.align||d&&(!e.align||"center"===e.align),"p-divider-top":d&&"top"===e.align,"p-divider-bottom":d&&"bottom"===e.align},e.className);return i.useImperativeHandle(l,(function(){return{props:e,getElement:function(){return n.current}}})),i.createElement("div",o({ref:n,className:c,style:e.style,role:"separator"},r),i.createElement("div",{className:"p-divider-content"},e.children))}));s.displayName="Divider",s.defaultProps={__TYPE:"Divider",align:null,layout:"horizontal",type:"solid",style:null,className:null}},5539:(e,l,n)=>{n.d(l,{Q:()=>r});var i=n(7313),t=n(2328),o=n(5234);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var l=1;l<arguments.length;l++){var n=arguments[l];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s.apply(this,arguments)}function a(e,l){(null==l||l>e.length)&&(l=e.length);for(var n=0,i=new Array(l);n<l;n++)i[n]=e[n];return i}function d(e,l){return function(e){if(Array.isArray(e))return e}(e)||function(e,l){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,t,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!l||o.length!==l);s=!0);}catch(d){a=!0,t=d}finally{try{s||null==n.return||n.return()}finally{if(a)throw t}}return o}}(e,l)||function(e,l){if(e){if("string"===typeof e)return a(e,l);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,l):void 0}}(e,l)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var r=i.memo(i.forwardRef((function(e,l){var n=d(i.useState(!1),2),a=n[0],c=n[1],u=i.useRef(null),v=i.useRef(e.inputRef),m=e.checked===e.trueValue,p=function(l){if(e.onChange){var n=m?e.falseValue:e.trueValue;e.onChange({originalEvent:l,value:n,stopPropagation:function(){},preventDefault:function(){},target:{name:e.name,id:e.id,value:n}})}};i.useImperativeHandle(l,(function(){return{props:e,getElement:function(){return u.current},getInput:function(){return u.current}}})),i.useEffect((function(){o.gb.combinedRefs(v,e.inputRef)}),[v,e.inputRef]);var h=o.gb.isNotEmpty(e.tooltip),f=o.gb.findDiffKeys(e,r.defaultProps),g=o.gb.reduceKeys(f,o.p7.ARIA_PROPS),x=(0,o.AK)("p-inputswitch p-component",{"p-inputswitch-checked":m,"p-disabled":e.disabled,"p-focus":a},e.className);return i.createElement(i.Fragment,null,i.createElement("div",s({ref:u,id:e.id,className:x,style:e.style},f,{onClick:function(l){e.disabled||(p(l),o.p7.focus(v.current),l.preventDefault())},role:"checkbox","aria-checked":m}),i.createElement("div",{className:"p-hidden-accessible"},i.createElement("input",s({ref:v,type:"checkbox",id:e.inputId,name:e.name,checked:m,onChange:p,onFocus:function(l){c(!0),e.onFocus&&e.onFocus(l)},onBlur:function(l){c(!1),e.onBlur&&e.onBlur(l)},disabled:e.disabled,role:"switch",tabIndex:e.tabIndex,"aria-checked":m},g))),i.createElement("span",{className:"p-inputswitch-slider"})),h&&i.createElement(t.u,s({target:u,content:e.tooltip},e.tooltipOptions)))})));r.displayName="InputSwitch",r.defaultProps={__TYPE:"InputSwitch",checked:!1,className:null,disabled:!1,falseValue:!1,id:null,inputId:null,inputRef:null,name:null,onBlur:null,onChange:null,onFocus:null,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!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.