1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4882],{93991:function(e,n,t){t.d(n,{a:function(){return i}});var i=t(19521).ZP.span.withConfig({componentId:"sc-m2ll8k-0"})((function(){return[{position:"absolute",top:"0.5rem",right:"0.5rem",zIndex:"10",padding:"0px"}]}))},70694:function(e,n,t){t.d(n,{P:function(){return o}});var i=t(19521),r=t(85893),o=function(e){var n=e.width,t=e.height,o=e.children,s=t/n*100;return(0,r.jsx)(a,{$_css2:[(0,i.iv)(["padding-top:","%;"],s),{position:"relative",width:"100%"}],children:(0,r.jsx)(c,{$_css3:[{position:"absolute",top:"0px",left:"0px",bottom:"0px",right:"0px"}],children:o})})},a=(0,i.ZP)("div").withConfig({componentId:"sc-1wqtps3-0"})(["",""],(function(e){return e.$_css2})),c=(0,i.ZP)("div").withConfig({componentId:"sc-1wqtps3-1"})(["",""],(function(e){return e.$_css3}))},84953:function(e,n,t){t.d(n,{C:function(){return i}});var i=t(19521).ZP.span.withConfig({componentId:"sc-q65xci-0"})((function(e){var n=e.variant,t=void 0===n?"default":n;return[{fontWeight:"700",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",borderRadius:"0.375rem",fontSize:"0.75rem",lineHeight:"1"},"default"===t&&{"--tw-bg-opacity":"1",backgroundColor:"rgba(243, 244, 246, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(55, 65, 81, var(--tw-text-opacity))"},"dark"===t&&{"--tw-bg-opacity":"1",backgroundColor:"rgba(12, 74, 110, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(255, 255, 255, var(--tw-text-opacity))"},"premium"===t&&{"--tw-bg-opacity":"1",backgroundColor:"rgba(0, 158, 255, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(255, 255, 255, var(--tw-text-opacity))"},"outline"===t&&{backgroundColor:"rgba(0, 0, 0, 0)","--tw-text-opacity":"1",color:"rgba(107, 114, 128, var(--tw-text-opacity))","--tw-border-opacity":"1",borderColor:"rgba(156, 163, 175, var(--tw-border-opacity))",paddingLeft:"0.5rem",paddingRight:"0.5rem",borderWidth:"2px",fontWeight:"500"}]}))},43178:function(e,n,t){t.d(n,{Z:function(){return f},x:function(){return m}});t(47941),t(82526),t(57327),t(41539),t(38880),t(54747),t(49337);var i=t(59499),r=t(4730),o=t(19521),a=t(93991),c=t(46015),s={base:[{"--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))",borderWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(249, 250, 251, var(--tw-border-opacity))",borderRadius:"0.75rem",padding:"1.25rem",userSelect:"none"},{"--tw-shadow":"0 0 30px -6px rgba(88, 88, 88, 0.125), 0 0 15px -3px rgba(88, 88, 88, 0.1)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-sha
1dow)",":hover":{"--tw-shadow":"0 0 40px -8px rgba(88, 88, 88, 0.15), 0 0 20px -4px rgba(88, 88, 88, 0.125)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)"},transitionProperty:"box-shadow",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms"}],selectable:[{userSelect:"auto"}]},d=[{display:"block",position:"relative",borderRadius:"0.75rem"},{":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgba(0, 158, 255, var(--tw-ring-opacity))","--tw-ring-offset-width":"2px"}}],l=t(85893),u=["to","onClick","children","badge"];function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var m=o.ZP.div.withConfig({componentId:"sc-1odqge3-0"})((function(e){var n=e.selectable,t=e.onClick;return[s.base,n&&s.selectable,t&&{cursor:"pointer"}]})),f=function(e){var n=e.to,t=e.onClick,i=e.children,o=e.badge,s=(0,r.Z)(e,u);return n?(0,l.jsx)(c.r,{href:n,children:(0,l.jsxs)(v,{onClick:t,$_css:d,children:[o&&(0,l.jsx)(a.a,{children:o}),(0,l.jsx)(m,h(h({},s),{},{children:i}))]})}):(0,l.jsx)(m,h(h({onClick:t},s),{},{children:i}))},v=(0,o.ZP)("a").withConfig({componentId:"sc-1odqge3-1"})(["",""],(function(e){return e.$_css}))},57118:function(e,n,t){t.d(n,{j:function(){return h}});var i=t(19521),r=(t(68309),t(21249),t(67294)),o=t(38736),a=t(65325),c=t(79572),s=t(69789),d=t(66309),l=t(55246),u=t(85893),p=function(e){var n,t,i=e.facility,r=e.profiles,o=e.onClick,a=(0,l.n7)("companyProfiles",null===(n=i.relationships)||void 0===n||null===(t=n.companyProfile.data)||void 0===t?void 0:t.id,r);return a?(0,u.jsxs)(m,{onClick:function(){return o({facility:i,provider:a})}
1,$_css:[{"--tw-text-opacity":"1",color:"rgba(55, 65, 81, var(--tw-text-opacity))",fontWeight:"500",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"1rem",paddingRight:"1rem",marginTop:"0.25rem",marginBottom:"0.25rem",borderRadius:"0.375rem"},{":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(249, 250, 251, var(--tw-bg-opacity))",cursor:"pointer"}}],children:[i.attributes.name," \u2013 ",a.attributes.name]}):null},h=function(e){var n,t,i=e.onSelect,l=(0,r.useState)(""),h=l[0],m=l[1],g=(0,a.d)(m),x=g.ref,j=g.handleInput,b=(0,d.E)(["facilities",h],{url:"".concat(s.O.DIRECTORY_SERVICE_URL,"/admin/facilities"),params:{"filter[search]":h}},{enabled:!!h}),y=b.data,w=b.isSuccess;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a.M,{ref:x,onChange:j,placeholder:"Search data centers"}),w&&!(null===y||void 0===y||null===(n=y.data)||void 0===n||!n.data.length)&&(0,u.jsx)(f,{children:y.data.data.map((function(e){var n;return(0,u.jsx)(p,{facility:e,profiles:null===(n=y.data)||void 0===n?void 0:n.included,onClick:i},e.id)}))}),w&&!(null!==y&&void 0!==y&&null!==(t=y.data)&&void 0!==t&&t.data.length)&&(0,u.jsxs)(v,{children:[(0,u.jsx)(c.YS,{children:"Unfortunately, there's no data center that matches your search!"}),(0,u.jsxs)(c.kW,{children:["Email us at ",(0,u.jsx)(o.e,{href:"mailto:info%40cloudscene.com",children:"[email protected]"})," to add in our directory."]})]})]})},m=(0,i.ZP)(c.YS).withConfig({componentId:"sc-10r019i-0"})(["",""],(function(e){return e.$_css})),f=(0,i.ZP)("div").withConfig({componentId:"sc-10r019i-1"})({height:"16rem",overflow:"auto"}),v=(0,i.ZP)("div").withConfig({componentId:"sc-10r019i-2"})({height:"10rem",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(1rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(1rem * var(--tw-space-y-reverse))"}})},56317:function(e,n,t){t.d(n,{p:function(){return c}});var i=t(19521),r=(t(68309),t(79572)),o=t(73663),a=t(85893),c=function(e){var n=e.facility,t=e.provider;return(0,a.jsxs)(s,{children:[(0,a.jsxs)(d,{children:[(0,a.jsx)(r.s0,{children:n.attributes.name}),(0,a.jsx)(r.YS,{children:t.attributes.name})]}),t.attributes.logo&&(0,a.jsx)(l,{children:(0,a.jsx)("img",{src:(0,o.g)(t.attributes.logo),alt:t.attributes.name,width:48})})]})},s=(0,i.ZP)("div").withConfig({componentId:"sc-1ui7rtz-0"})({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:"0.75rem",paddingBottom:"0.75rem",borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-border-opacity))"}),d=(0,i.ZP)("div").withConfig({componentId:"sc-1ui7rtz-1"})({flex:"0 1 auto"}),l=(0,i.ZP)("div").withConfig({componentId:"sc-1ui7rtz-2"})({flex:"0 1 auto"})},72563:function(e,n,t){t.d(n,{D:function(){return s},O:function(){return c}});t(41539),t(88674);var i=t(5152),r=t.n(i),o=(t(9653),t(37054)),a=t(85893),c=function(e){var n=e.lat,t=e.lon,i=e.onRemove;return n&&t?(0,a.jsx)(o.Jx,{position:new google.maps.LatLng({lat:Number(n),lng:Number(t)}),onClick:function(){return i()}}):null},s=r()((function(){return t.e(4587).then(t.bind(t,54587)).then((function(e){return e.Map}))}),{ssr:!1,loadableGenerated:{webpack:function(){return[54587]}}})},20026:function(e,n,t){t.d(n,{E:function(){return h}});var i=t(19521),r=(t(68309),t(21249),t(67294)),o=t(38736),a=t(65325),c=t(79572),s=t(69789),d=t(66309),l=t(55246),u=t(85893),p=function(e){var n,t,i=e.fabric,r=e.profiles,o=e.onClick,a=(0,l.n7)("companyProfiles",null===(n=i.relationships)||void 0===n||null===(t=n.companyProfile.data)||void 0===t?void 0:t.id,r);return a?(0,u.jsxs)(m,{onClick:function(){return o({fabric:i,provider:a})}
1,$_css:[{"--tw-text-opacity":"1",color:"rgba(55, 65, 81, var(--tw-text-opacity))",fontWeight:"500",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"1rem",paddingRight:"1rem",marginTop:"0.25rem",marginBottom:"0.25rem",borderRadius:"0.375rem"},{":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(249, 250, 251, var(--tw-bg-opacity))",cursor:"pointer"}}],children:[i.attributes.name," \u2013 ",a.attributes.name]}):null},h=function(e){var n,t,i=e.onSelect,l=(0,r.useState)(""),h=l[0],m=l[1],g=(0,a.d)(m),x=g.ref,j=g.handleInput,b=(0,d.E)(["fabrics","search",h],{url:"".concat(s.O.DIRECTORY_SERVICE_URL,"/admin/fabrics"),params:{"filter[search]":h}},{enabled:!!h}),y=b.data,w=b.isSuccess;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(a.M,{ref:x,onChange:j,placeholder:"Search network fabrics"}),w&&!(null===y||void 0===y||null===(n=y.data)||void 0===n||!n.data.length)&&(0,u.jsx)(f,{children:y.data.data.map((function(e){var n;return(0,u.jsx)(p,{fabric:e,profiles:null===(n=y.data)||void 0===n?void 0:n.included,onClick:i},e.id)}))}),w&&!(null!==y&&void 0!==y&&null!==(t=y.data)&&void 0!==t&&t.data.length)&&(0,u.jsxs)(v,{children:[(0,u.jsx)(c.YS,{children:"Unfortunately, there's no network fabric that matches your search!"}),(0,u.jsxs)(c.kW,{children:["Email us at ",(0,u.jsx)(o.e,{href:"mailto:info%40cloudscene.com",children:"[email protected]"})," to add in our directory."]})]})]})},m=(0,i.ZP)(c.YS).withConfig({componentId:"sc-1bdfwd1-0"})(["",""],(function(e){return e.$_css})),f=(0,i.ZP)("div").withConfig({componentId:"sc-1bdfwd1-1"})({height:"16rem",overflow:"auto"}),v=(0,i.ZP)("div").withConfig({componentId:"sc-1bdfwd1-2"})({height:"10rem",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(1rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(1rem * var(--tw-space-y-reverse))"}})},78901:function(e,n,t){t.d(n,{H:function(){return c}});var i=t(19521),r=(t(68309),t(79572)),o=t(73663),a=t(85893),c=function(e){var n=e.fabric,t=e.provider;return(0,a.jsxs)(s,{children:[(0,a.jsxs)(d,{children:[(0,a.jsx)(r.s0,{children:n.attributes.name}),(0,a.jsx)(r.YS,{children:t.attributes.name})]}),t.attributes.logo&&(0,a.jsx)(l,{children:(0,a.jsx)("img",{src:(0,o.g)(t.attributes.logo),alt:t.attributes.name,width:48})})]})},s=(0,i.ZP)("div").withConfig({componentId:"sc-19lk1se-0"})({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingTop:"0.75rem",paddingBottom:"0.75rem"}),d=(0,i.ZP)("div").withConfig({componentId:"sc-19lk1se-1"})({flex:"0 1 auto"}),l=(0,i.ZP)("div").withConfig({componentId:"sc-19lk1se-2"})({flex:"0 1 auto"})},61719:function(e,n,t){t.d(n,{HE:function(){return v},$0:function(){return h}});var i=t(19521),r=(t(84192),t(60293)),o=(t(512),t(79572),t(69789),t(85893)),a=t(67294),c=t(74448),s=t(43492),d=t(84953),l=t(94837),u=t(77345),p=t(76985),h=function(e){var n=e.premium,t=(0,s.aC)().hasCompanyPackage,i=(0,c.ij)(p.c.SUBSCRIPTIONS)?t([u.m.STARTER,u.m.PRO]):n;return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(r.L,{id:"SUBSCRIPTIONS",fallback:(0,a.cloneElement)(i?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(l.u_,{}),{children:(0,o.jsxs)(m,{children:[(0,o.jsx)(d.C,{variant:"premium",children:"Promoted"}),","]})}),children:(0,a.cloneElement)(i?(0,o.jsx)(o.Fragment,{}):(0,o.jsx)(l.u_,{}),{children:(0,o.jsxs)(f,{children:[(0,o.jsx)(d.C,{variant:"premium",children:"Premium Feature"}),","]})})})})},m=(0,i.ZP)("div").withConfig({componentId:"sc-uusk2i-0"})({padding:"1.5rem"}),f=(0,i.ZP)("div").withConfig({componentId:"sc-uusk2i-1"})({padding:"1.5rem"}),v=function(e){var n=e.locked,t=e.children,i=(0,s.aC)().hasCompanyPackage,r=(0,c.ij)(p.c.SUBSCRIPTIONS)?!i([u.m.STARTER,u.m.PRO]):n;return(0,o.jsx)(g,{disabled:r,$_css:[r&&{opacity:"0.3",pointerEvents:"none"}],children:t})},g=(0,i.ZP)("fieldset").withConfig({componentId:"sc-z9zajy-0"})(["",""],(function(e){return e.$_css}))},64213:function(e,n,t){t.d(n,{$:function(){return d}});t(69826),t(41539),t(68309),t(2707),t(57327),t(26699),t(32023);var i=t(67294),r=t(82624),o=t(65325),a=t(69789),c=t(66309),s=t(85893),d=function(e){var n,t,d=e.name,l=e.label,u=void 0===l?"Country":l,p=e.placeholder,h=void 0===p?"Search countries":p,m=e.defaultValue,f=e.onChange,v=e.admin,g=void 0!==v&&v,x=(0,i.useState)(""),j=x[0],b=x[1],y=(0,o.d)(b),w=y.ref,C=y.handleInput,P=(0,c.E)(["zones",g],{url:"".concat(a.O.DIRECTORY_SERVICE_URL,g?"/admin/zones":"/zones")}),O=P.data,I=P.isSuccess,Z=P.status,R=function(e,n){return null===n||void 0===n?void 0:n.find((function(n){return n.attributes.iso===e}))}(m,null===O||void 0===O||null===(n=O.data)||void 0===n?void 0:n.data),S=(0,i.useMemo)((function(){var e;return I&&null!==O&&void 0!==O&&null!==(e=O.data)&&void 0!==e&&e.data?O.data.data.filter((function(e){return e.attributes.name.toLowerCase().includes(j.toLowerCase())})).sort((function(e,n){return e.attributes.name.localeCompare(n.attributes.name)})):[]}),[j,I,null===O||void 0===O||null===(t=O.data)||void 0===t?void 0:t.data]);return(0,s.jsx)(r.Ct,{ref:w,label:u,name:d,defaultValue:R,placeholder:h,items:S,itemToString:function(e){var n;return null!==(n=null===e||void 0===e?void 0:e.attributes.name)&&void 0!==n?n:""},itemToID:function(e){return e.id},onInput:C,onChange:function(e){if(!e)return f(null);f(e)},children:(0,s.jsx)(r.FY,{status:Z,items:S,input:j})},null===R||void 0===R?void 0:R.id)}},72510:function(e,n,t){t.d(n,{mm:function(){return k},wt:function(){return ai},yb:function(){return vn}
1,I8:function(){return M},fr:function(){return Ft},Fk:function(){return Di},g2:function(){return Ke},KF:function(){return it}});t(47941),t(82526),t(57327),t(41539),t(38880),t(54747),t(49337);var i=t(59499),r=t(50029),o=t(87794),a=t.n(o),c=(t(92222),t(68309),t(67294)),s=t(47533),d=t(87536),l=t(57289),u=t(69789),p=t(67053),h=t(48059),m=t(24643),f=t(38726),v=t(51475),g=t(61191),x=t(14543),j=(t(74916),t(77601),t(46990)),b=t(74231),y=t(33371),w=(t(21703),t(94725)),C=t(7813);function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var I,Z=b.Ry({attributes:b.Ry({name:b.Z_().required("A name is required"),legalName:b.Z_().required("A legal name is required"),description:b.Z_().required("A description is required"),website:b.Z_().required("Your provider website is required").url("Must be a valid URL"),foundingYear:b.Z_().required("A founding year is required"),companySize:b.Z_().required("Company size is required")}),logo:b.Ry().required("A logo is required")}),R=(0,j.Z)((I="companyProfiles",function(){var e=(0,r.Z)(a().mark((function e(n){var t,i,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(0,w.r)()){e.next=3;break}throw new Error;case 3:return e.next=5,t();case 5:return i=e.sent,e.next=8,(0,C.v_)("".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/").concat(I,"/validate"),{data:{type:I,attributes:{slug:(0,x.V3)(n)}}},{headers:O(O({},i?{Authorization:"Bearer ".concat(i)}:void 0),{},{Accept:"application/json","Content-Type":"application/json"})});case 8:return r=e.sent,e.abrupt("return",r);case 10:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),300,{onlyResolvesLast:!0}),S=b.Ry({attributes:b.Ry({slug:b.Z_().required("A slug is required").test("checkUniqueSlug",function(){var e=(0,r.Z)(a().mark((function e(n,t){var i,r,o,c,s,d;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.path,r=t.createError,n){e.next=3;break}return e.abrupt("return",!1);case 3:return e.prev=3,e.next=6,R(n);case 6:return o=e.sent,e.abrupt("return",o.ok);case 10:return e.prev=10,e.t0=e.catch(3),d=(0,y.D3)(e.t0)?null!==(c=null===(s=e.t0.data)||void 0===s?void 0:s.errors[0].detail)&&void 0!==c?c:e.t0.statusText:"Slug is already in use",e.abrupt("return",r({message:d,path:i}));case 14:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(n,t){return e.apply(this,arguments)}}())})}),T=t(85893);function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=function(e){var n=e.children,t=(0,l.V6)(),i=(0,d.cI)({defaultValues:{attributes:(0,v.DP)({visibility:"public"},f.P.attributes),location:(0,v.DP)({},f.P.location),exactLocation:(0,v.DP)({},f.P.exactLocation),certifications:{},banners:[],parent:null,logo:null,documents:[]},mode:"onChange",shouldFocusError:!1,resolver:(0,s.X)(Z.concat(S))}),o=(0,h.s)((0,c.useCallback)((function(e){var n;t.dispatch({type:"ADD",variant:"error",message:null!==(n=e[0])&&void 0!==n?n:"There was an error saving the changes"})}),[t])),j=(0,c.useCallback)((function(){t.dispatch({type:"ADD",variant:"info",message:"Thank y
1ou your changes have been submitted"}),i.reset()}),[t,i]),b=(0,m.G)(void 0,{onError:o}),y=(0,p.m)("POST","".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/companyProfiles"),{onSuccess:j,onError:o});return(0,T.jsx)(d.RV,D(D({},i),{},{children:(0,T.jsx)("form",{onSubmit:i.handleSubmit(function(){var e=(0,r.Z)(a().mark((function e(n){var t,i,r,o,c,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=D(D({},(0,f.Kp)(n)),{},{slug:(0,x.V3)(null!==(t=n.attributes.slug)&&void 0!==t?t:n.attributes.name)}),r=(0,g.X)(n),e.next=4,b.mutateAsync({data:(0,g.W)(r)});case 4:return o=e.sent,c=o.data,s=D({location:c?{data:{id:c.data.id,type:c.data.type}}:void 0},(0,f.Zs)(n)),e.next=9,y.mutateAsync({data:{type:"companyProfiles",attributes:i,relationships:s}});case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),children:n})}))},A=(t(21249),t(67111)),_=t(78507),L=t(10620);function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function F(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?z(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M=function(e){var n,t,i,o,x,j,b=e.children,y=(0,A.Mv)(),w=(0,l.V6)(),C=(0,s.X)(Z),P=(0,h.s)((0,c.useCallback)((function(e){var n;w.dispatch({type:"ADD",variant:"error",message:null!==(n=e[0])&&void 0!==n?n:"There was an error saving the changes"})}),[w])),O=(0,c.useCallback)((function(){w.dispatch({type:"ADD",variant:"info",message:"Thank you your changes have been submitted"})}),[w]),I=(0,m.G)(null===(n=y.location)||void 0===n?void 0:n.id,{onError:P}),R=(0,p.m)("PATCH","".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/companyProfiles/").concat(y.id),{onSuccess:O,onError:P}),S=(0,d.cI)({defaultValues:{attributes:(0,v.DP)(y.attributes,f.P.attributes),location:(0,v.DP)(null===(t=y.location)||void 0===t?void 0:t.attributes,f.P.location),exactLocation:(0,v.DP)(null===(i=y.location)||void 0===i?void 0:i.attributes,f.P.exactLocation),banners:null!==(o=y.banners)&&void 0!==o?o:[],certifications:(0,_.U)(y.certifications),categories:(0,L.I)(y.categories),parent:y.parent&&(0,f.SA)(y.parent),logo:y.logo,documents:null!==(x=null===(j=y.documents)||void 0===j?void 0:j.map((function(e){return{document:e}})))&&void 0!==x?x:[]},mode:"onChange",shouldFocusError:!1,resolver:C});return(0,T.jsx)(d.RV,F(F({},S),{},{children:(0,T.jsx)("form",{onSubmit:S.handleSubmit(function(){var e=(0,r.Z)(a().mark((function e(n){var t,i,r,o,c,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(0,g.X)(n,y),e.next=3,I.mutateAsync({data:(0,g.W)(i,null===(t=y.location)||void 0===t?void 0:t.id)});case 3:return r=e.sent,o=r.data,c=(0,f.eG)(n,y),s=F({location:o?{data:{id:o.data.id,type:o.data.type}}:void 0},(0,f.Zs)(n)),e.next=9,R.mutateAsync({data:{id:y.id,type:"companyProfiles",attributes:c,relationships:s}});case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}()),children:b})}))},N=t(19521),V=t(14581),Y=t(13387),U=t(31560),q=t(41167),B=t(72563),H=t(61719),G=t(24246),W=t(79572),K=t(64213),$=t(79066),X=t(28246),Q=t(16835),J=(t(43290),t(29254),t(86893)),ee=t(84192),ne=N.ZP.button.attrs({type:"button"}).withConfig({componentId:"sc-hudkbl-0"})((function(e){return[{"--tw-text-opacity":"1",color:"rgba(0, 158, 255, var(--tw-text-opacity))",width:"100%",borderRadius:"0.75rem",display:"flex",borderWidth:"2px","--tw-border-opacity":"1",borderColor:"rgba(229, 231, 235, var(--tw-border-opacity))",alignItems:"center",justifyContent:"center"},{":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-opacity":"1","--tw-ring-color":"rgba(0, 158, 255, var(--tw-ring-opacity))","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
1dow, 0 0 #0000)"}},e.disabled&&{cursor:"auto",opacity:"0.7"}]})),te=t(94837),ie=t(51434),re=t(38495),oe=t(94866),ae=t(512),ce=t(6126),se=t(66309),de=t(55246),le=function(){var e=(0,c.useContext)(te.tC).openModal;return(0,T.jsx)(ae.e,{label:"Add Press Release",children:(0,T.jsx)(he,{onClick:e,children:(0,T.jsx)(J.OvN,{color:"white",size:20})})})},ue=function(){var e=(0,c.useContext)(te.tC).openModal;return(0,T.jsx)(me,{onClick:e,children:(0,T.jsx)(J.OvN,{size:24})})},pe=function(){var e,n,t,i,r,o,a,s,d,l,p,h=(0,c.useContext)(A.lP),m=(0,oe.l)(),f=(0,Q.Z)(m,2),v=f[0],g=f[1],x=(0,se.E)(["press-releases",null===h||void 0===h?void 0:h.id,v.page],{url:"".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/companyProfiles/").concat(null===h||void 0===h?void 0:h.id,"/pressReleases"),params:{pending:!0,"page[number]":v.page,"page[size]":6,sort:"startAt"}},{enabled:!(null===h||void 0===h||!h.id)}),j=x.data,b=x.refetch,y=x.isFetching;if(!h)return null;var w=!h.meta.premium;return(0,T.jsxs)("div",{children:[(0,T.jsxs)(fe,{children:[(0,T.jsxs)(ve,{children:[(0,T.jsxs)("div",{children:[(0,T.jsxs)(ge,{children:[(0,T.jsx)(q._,{children:"Press Releases "}),(0,T.jsx)(H.$0,{premium:!(null===h||void 0===h||!h.meta.premium)})]}),(0,T.jsx)(W.YS,{children:"Recommended file type: .pdf (max 2MB)"})]}),(0,T.jsx)(H.HE,{locked:w,children:(0,T.jsx)(ce.J4.Provider,{value:{companyId:h.id},children:(0,T.jsx)(re.u_,{onSubmit:b,children:(0,T.jsx)(le,{})})})})]}),(0,T.jsx)(H.HE,{locked:w,children:(0,T.jsxs)(xe,{children:[y&&Array(6).fill((0,T.jsx)(re.Od,{})),!y&&(null===j||void 0===j||null===(e=j.data)||void 0===e?void 0:e.data)&&j.data.data.map((function(e){var n,t,i,r,o,a,s,d,l,u,p=(0,de.DQ)(null===(n=e.relationships.image)||void 0===n||null===(t=n.data)||void 0===t?void 0:t.id,"image",null!==(i=null===j||void 0===j||null===(r=j.data)||void 0===r?void 0:r.included)&&void 0!==i?i:[]),m=(0,de.DQ)(null===(o=e.relationships)||void 0===o||null===(a=o.pdfDocument)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.id,"file",null!==(d=null===j||void 0===j||null===(l=j.data)||void 0===l?void 0:l.included)&&void 0!==d?d:[]);return(0,T.jsx)(c.Fragment,{children:(0,T.jsx)(ce.J4.Provider,{value:{pressRelease:e,companyId:h.id,image:p,pdfDocument:m,type:null!==(u=e.attributes)&&void 0!==u&&u.link?"link":"pdf"},children:(0,T.jsx)(re._b,{children:(0,T.jsx)(re.Zb,{children:(0,T.jsx)(re.v2,{onSubmit:b,onDelete:b})})})})},e.id)})),!y&&(null!==(n=null===j||void 0===j||null===(t=j.data)||void 0===t?void 0:t.data.length)&&void 0!==n?n:0)<6&&(0,T.jsx)(ce.J4.Provider,{value:{companyId:h.id},children:(0,T.jsx)(re.u_,{onSubmit:b,children:(0,T.jsx)(ue,{})})})]})})]}),(null===j||void 0===j||null===(i=j.data)||void 0===i||null===(r=i.meta)||void 0===r?void 0:r.page)&&(0,T.jsx)(je,{children:(0,T.jsx)(ie.t,{currentPage:null===j||void 0===j||null===(o=j.data)||void 0===o||null===(a=o.meta)||void 0===a||null===(s=a.page)||void 0===s?void 0:s["current-page"],totalPages:null===j||void 0===j||null===(d=j.data)||void 0===d||null===(l=d.meta)||void 0===l||null===(p=l.page)||void 0===p?void 0:p["last-page"],setPage:function(e){g({type:"PAGE",payload:e})}})})]})},he=(0,N.ZP)(ee.KM).withConfig({componentId:"sc-3yb1yf-0"})({padding:"0.5rem"}),me=(0,N.ZP)(ne).withConfig({componentId:"sc-3yb1yf-1"})({height:"8rem"}),fe=(0,N.ZP)("div").withConfig({componentId:"sc-3yb1yf-2"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem"}),ve=(0,N.ZP)("div").withConfig({componentId:"sc-3yb1yf-3"})({display:"flex",justifyContent:"space-between",alignItems:"center"}),ge=(0,N.ZP)("div").withConfig({componentId:"sc-3yb1yf-4"})({display:"flex",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":0,marginRight:"calc(0.5rem * var(--tw-space-x-reverse))",marginLeft:"calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))"}}),xe=(0,N.ZP)("div").withConfig({componentId:"sc-3yb1yf-5"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem","@media (min-width: 768px)":{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},"@media (min-width: 1024px)":{gridTemplateColumns:"repeat(3, minmax(0, 1fr))"}}),je=(0,N.ZP)("div").withConfig({componentId:"sc-3yb1yf-6"})({display:"flex",justifyContent:"flex-end",marginTop:"1rem",marginBottom:"1rem"}),be=b.Ry({name:b.Z_().required(),document:b.Ry({id:b.Z_()})});function ye(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function we(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?ye(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ye(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ce=function(e){var n=e.onSuccess,t=(0,p.m)("PATCH",(function(e){return"".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/documents/").concat(e.data.id)}),{onSuccess:n}),i=t.mutate,r=t.isLoading,o=(0,d.cl)(),a=o.isValid,c=o.isSubmitting,s=(0,d.Gc)().handleSubmit;return(0,T.jsx)(ee.KM,{disabled:r||!a||c,onClick:s((function(e){if(e.document)return i({data:(0,X.OE)(e.name,e.document)})})),children:"Done"})},Pe=function(e){var n,t=e.document,i=e.onDone,r=(0,d.cI)({defaultValues:{name:null!==(n=null===t||void 0===t?void 0:t.attributes.fileName)&&void 0!==n?n:"",document:null!==t&&void 0!==t?t:null},mode:"onChange",resolver:(0,s.X)(be),shouldFocusError:!1});return(0,T.jsx)(d.RV,we(we({},r),{},{children:(0,T.jsxs)(Oe,{children:[(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{children:"PDF (max 5MB)"}),(0,T.jsx)(Ie,{children:(0,T.jsx)(d.Qr,{control:r.control,name:"document",render:function(e){var n=e.field;return(0,T.jsx)(V.fh,{type:"file",accept:X.t0,maxSize:5242880,onDone:function(e){n.onChange(e)},disabled:!!t,children:n.value&&(0,T.jsx)(V.Zb,{document:n.value,onClick:function(){n.onChange(null)}})})}})})]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"name",children:"Product Name"}),(0,T.jsx)(U.I,we(we({},r.register("name")),{},{type:"text"}))]}),(0,T.jsx)(Ze,{children:(0,T.jsx)(Ce,{onSuccess:function(e){var n;null!==(n=e.data)&&void 0!==n&&n.data&&i(e.data.data)}})})]})}))},Oe=(0,N.ZP)("div").withConfig({componentId:"sc-1iiwrne-0"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem",gridAutoRows:"min-content"}),Ie=(0,N.ZP)("div").withConfig({componentId:"sc-1iiwrne-1"})({height:"5rem",width:"100%"}),Ze=(0,N.ZP)("div").withConfig({componentId:"sc-1iiwrne-2"})({display:"flex",justifyContent:"flex-end"}),Re=function(e){var n=e.document,t=e.onRemove,i=(0,l.V6)(),r=(0,p.m)("DELETE","".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/documents/").concat(n.id),{onSuccess:function(){t()},onError:function(){i.dispatch({type:"ADD",variant:"error",message:"There was an error removing the document"})}}),o=r.mutate,a=r.isLoading;return(0,T.jsxs)(Se,{children:[(0,T.jsx)(Te,{children:"Are you sure you want to remove this product brochure?"}),(0,T.jsx)(ee.KM,{variant:"danger",disabled:a,onClick:function(){o(void 0)},children:"Remove Product Brochure"})]})},Se=(0,N.ZP)("div").withConfig({componentId:"sc-ywewk6-0"})({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(2rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(2rem * var(--tw-space-y-reverse))"}}),Te=(0,N.ZP)(W.YS).withConfig({componentId:"sc-ywewk6-1"})({fontWeight:"400"}),Ee=function(){var e=(0,c.useRef)(),n=(0,d.Gc)().control,t=(0,d.Dq)({control:n,name:"documents"}),i=t.fields,r=t.append,o=t.remove,a=(0,c.useContext)(A.lP),s=!(null!==a&&void 0!==a&&a.meta.premium);return a?(0,T.jsxs)(De,{children:[(0,T.jsxs)(ke,{children:[(0,T.jsxs)("div",{children:[(0,T.jsxs)(Ae,{children:[(0,T.jsx)(q._,{children:"Product Brochures"}),(0,T.jsx)(H.$0,{premium:!(null===a||void 0===a||!a.meta.premium)})]}),(0,T.jsx)(W.YS,{children:"Recommended file type: .pdf (max 5MB)"})]}),(0,T.jsx)(H.HE,{locked:s,children:(0,T.jsx)(te.u_,{ref:e,action:function(e){var n=e.openModal;return(0,T.jsx)(ae.e,{label:"Add Product Brochure",children:(0,T.jsx)(_e,{onClick:n,children:(0,T.jsx)(J.OvN,{color:"white",size:20})})})},children:(0,T.jsx)(te.Vq.V,{icon:(0,T.jsx)(J.H33,{color:"#009eff",size:32}),header:(0,T.jsx)(W.s0,{children:"Add Product Brochure"}),children:function(e){var n=e.closeModal;return(0,T.jsx)(Pe,{onDone:function(e){n(),r({document:e})}})}})})})]}),(0,T.jsx)(H.HE,{locked:s,children:(0,T.jsxs)(Le,{children:[i.map((function(e,n){return(0,T.jsx)(ze,{children:(0,T.jsx)(te.u_,{action:function(n){var t=n.openM
1odal;return(0,T.jsx)(V.Zb,{document:e.document,onClick:t})},children:(0,T.jsx)(te.Vq.V,{header:(0,T.jsx)(W.s0,{children:"Remove Product Brochure"}),children:function(t){var i=t.closeModal;return(0,T.jsx)(Re,{document:e.document,onRemove:function(){i(),o(n)}})}})})},e.id)})),(0,T.jsx)(Fe,{onClick:function(n){var t;null===(t=e.current)||void 0===t||t.openModal(n)},children:(0,T.jsx)(J.OvN,{size:24})})]})})]}):null},De=(0,N.ZP)("div").withConfig({componentId:"sc-pc47ho-0"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem"}),ke=(0,N.ZP)("div").withConfig({componentId:"sc-pc47ho-1"})({display:"flex",justifyContent:"space-between",alignItems:"center"}),Ae=(0,N.ZP)("div").withConfig({componentId:"sc-pc47ho-2"})({display:"flex",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":0,marginRight:"calc(0.5rem * var(--tw-space-x-reverse))",marginLeft:"calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))"}}),_e=(0,N.ZP)(ee.KM).withConfig({componentId:"sc-pc47ho-3"})({padding:"0.5rem"}),Le=(0,N.ZP)("div").withConfig({componentId:"sc-pc47ho-4"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem","@media (min-width: 768px)":{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"},"@media (min-width: 1024px)":{gridTemplateColumns:"repeat(3, minmax(0, 1fr))"}}),ze=(0,N.ZP)("div").withConfig({componentId:"sc-pc47ho-5"})({height:"5rem",width:"100%"}),Fe=(0,N.ZP)(ne).withConfig({componentId:"sc-pc47ho-6"})({height:"5rem"});function Me(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Me(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Me(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ve=["banners.0","banners.1","banners.2"],Ye=function(){var e=(0,d.Gc)(),n=e.register,t=e.control;return(0,T.jsxs)($e,{children:[(0,T.jsx)(W.s0,{children:"Service Provider Overview"}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.name",children:"Company Name *"}),(0,T.jsx)(U.I,Ne({},n("attributes.name"))),(0,T.jsx)(Y.d,{name:"attributes.name"})]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.legalName",children:"Company Legal Name *"}),(0,T.jsx)(U.I,Ne({},n("attributes.legalName"))),(0,T.jsx)(Y.d,{name:"attributes.legalName"})]}),(0,T.jsx)("div",{children:(0,T.jsx)(d.Qr,{name:"parent",control:t,render:function(e){var n=e.field;return(0,T.jsx)(G.R,{label:"Parent Company Name",name:n.name,defaultValue:n.value,onChange:n.onChange,clearable:!0})}})})]})},Ue=function(){var e=(0,d.Gc)().register;return(0,T.jsxs)(Xe,{children:[(0,T.jsx)(W.s0,{children:"Contact Details"}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.salesPhone",children:"Sales Phone"}),(0,T.jsx)(U.I,Ne({},e("attributes.salesPhone")))]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.supportPhone",children:"Support Phone"}),(0,T.jsx)(U.I,Ne({},e("attributes.supportPhone")))]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.salesEmail",children:"Sales Email"}),(0,T.jsx)(U.I,Ne({},e("attributes.salesEmail")))]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.supportEmail",children:"Support Email"}),(0,T.jsx)(U.I,Ne({},e("attributes.supportEmail")))]})]})},qe=function(){var e=(0,d.Gc)().register;return(0,T.jsxs)(Qe,{id:"service-provider-social",children:[(0,T.jsx)(Je,{children:(0,T.jsx)(W.s0,{children:"Social Media"})}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.facebook",children:"Facebook URL"}),(0,T.jsx)(U.I,Ne({},e("attributes.facebook")))]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.twitter",children:"Twitter URL"}),(0,T.jsx)(U.I,Ne({},e("attributes.twitter")))]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.linkedin",children:"LinkedIn URL"}),(0,T.jsx)(U.I,Ne({},e("attributes.linkedin")))]})]})},Be=function(){var e=(0,d.Gc)(),n=e.register,t=e.control;return(0,T.jsxs)(en,{id:"service-provider-address",children:[(0,T.jsx)(nn,{children:(0,T.jsx)(W.s0,{children:"Address Details"})}),(0,T.jsxs)(tn,{children:[(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"location.suite",children:"Suite"}),(0,T.jsx)(U.I,Ne({},n("location.suite")))]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"location.level",children:"Level"}),(0,T.jsx)(U.I,Ne({},n("location.level")))]})]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"location.building",children:"Building"}),(0,T.jsx)(U.I,Ne({},n("location.building")))]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"location.line1",children:"Address Line 1"}),(0,T.jsx)(U.I,Ne({},n("location.line1")))]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"location.line2",children:"Address Line 2"}),(0,T.jsx)(U.I,Ne({},n("location.line2")))]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"location.city",children:"City"}),(0,T.jsx)(U.I,Ne({},n("location.city")))]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"location.region",children:"Region / State"}),(0,T.jsx)(U.I,Ne({},n("location.region")))]}),(0,T.jsx)("div",{children:(0,T.jsx)(d.Qr,{name:"location.country",control:t,render:function(e){var n=e.field;return(0,T.jsx)(K.$,{admin:!0,name:n.name,defaultValue:n.value,onChange:function(e){n.onChange(null===e||void 0===e?void 0:e.attributes.iso)}})}})}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"location.zipCode",children:"Zip / Postcode"}),(0,T.jsx)(U.I,Ne({},n("location.zipCode")))]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.website",children:"Website *"}),(0,T.jsx)(U.I,Ne({},n("attributes.website"))),(0,T.jsx)(Y.d,{name:"attributes.website"})]})]})},He=function(){var e=(0,d.Gc)().control;return(0,T.jsxs)(rn,{children:[(0,T.jsx)(q._,{children:"Refine Location"}),(0,T.jsx)(d.Qr,{name:"exactLocation",control:e,render:function(e){var n=e.field;return(0,T.jsx)(B.D,{lat:n.value.lat,lon:n.value.lon,onPlaceMarker:function(e,t){return n.onChange({lat:e,lon:t})},children:(0,T.jsx)(B.O,{lat:n.value.lat,lon:n.value.lon,onRemove:function(){return n.onChange({lat:null,lon:null})}})})}})]})},Ge=function(){var e=(0,d.Gc)(),n=e.control,t=e.register;return(0,T.jsxs)(on,{id:"service-provider-details",children:[(0,T.jsx)(W.s0,{children:"Company Details"}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.description",children:"Description *"}),(0,T.jsx)(d.Qr,{name:"attributes.description",control:n,render:function(e){var n=e.field;return(0,T.jsx)($.L,{name:n.name,value:n.value,onChange:n.onChange})}}),(0,T.jsx)(Y.d,{name:"attributes.description"})]}),(0,T.jsxs)(an,{children:[(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.foundingYear",children:"Year Founded *"}),(0,T.jsx)(U.I,Ne(Ne({},t("attributes.foundingYear")),{},{type:"number"})),(0,T.jsx)(Y.d,{name:"attributes.foundingYear"})]}),(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.companySize",children:"Company Size *"}),(0,T.jsx)(U.I,Ne(Ne({},t("attributes.companySize")),{},{type:"number"})),(0,T.jsx)(Y.d,{name:"attributes.companySize"})]})]})]})},We=function(){var e=(0,d.Gc)().control,n=(0,c.useContext)(A.lP),t=!(null!==n&&void 0!==n&&n.meta.premium);return(0,T.jsxs)(cn,{children:[(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{children:"Logo *"}),(0,T.jsx)(W.YS,{children:"Recommended file type: .png (max 1MB)"}),(0,T.jsx)(sn,{children:(0,T.jsx)(d.Qr,{name:"logo",control:e,render:function(e){var n=e.field;return(0,T.jsx)(V.fh,{type:"logo",accept:X.oY,onDone:function(e){n.onChange(e)},disabled:!!n.value,children:n.value&&(0,T.jsx)(V.eT,{variant:"contain",src:n.value.attributes.url,onClick:function(){n.onChange(null)}})})}})}),(0,T.jsx)(Y.d,{name:"logo"})]}),(0,T.jsxs)("div",{children:[(0,T.jsxs)(dn,{children:[(0,T.jsx)(q._,{children:"Banner"}),(0,T.jsx)(H.$0,{premium:!(null===n||void 0===n||!n.meta.premium)})]}),(0,T.jsx)(W.YS,{children:"Recommended banner size: 1200px x 400px (max 2MB)"}),(0,T.jsx)(H.HE,{locked:t,children:(0,T.jsx)(ln,{$_css:[{display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem",marginTop:"1.5rem","@media (min-width: 768px)":{gridTemplateColumns:"repeat(3, minmax(0, 1fr))"}}],children:Ve.map((function(n){return(0,T.jsx)(un,{children:(0,T.jsx)(d.Qr,{name:n,control:e,render:function(e){var n=e.field;return(0,T.jsx)(V.fh,{type:"banner-image",accept:X.oY,maxSize:2097152,onDone:function(e){n.onChange(e)},disabled:!!n.value,children:n.value&&(0,T.jsx)(V.eT,{variant:"cover",src:n.value.attributes.url,onClick:function(){n.onChange(null)}})})}})},n)}))})})]})]})},Ke=function(){return(0,T.jsxs)(pn,{children:[(0,T.jsx)(We,{}),(0,T.jsx)(pe,{}),(0,T.jsx)(Ee,{}),(0,T.jsxs)(hn,{id:"service-provider-company",children:[(0,T.jsx)(Ye,{}),(0,T.jsx)(Ue,{})]}),(0,T.jsx)(qe,{}),(0,T.jsx)(Be,{}),(0,T.jsx)(He,{}),(0,T.jsx)(Ge,{})]})},$e=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-0"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gridAutoFlow:"row",gap:"1.5rem",gridAutoRows:"min-content"}),Xe=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-1"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem",gridAutoFlow:"row",gridAutoRows:"min-content"}),Qe=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-2"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem","@media (min-width: 768px)":{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}}),Je=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-3"})({"@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}}),en=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-4"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem","@media (min-width: 768px)":{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}}),nn=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-5"})({"@media (min-width: 768px)":{gridColumn:"span 2 / span 2"}}),tn=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-6"})({display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",gap:"1.5rem"}),rn=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-7"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem"}),on=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-8"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem"}),an=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-9"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem","@media (min-width: 768px)":{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}}),cn=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-10"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem"}),sn=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-11"}
1)({height:"8rem",width:"8rem",marginTop:"1.5rem"}),dn=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-12"})({display:"flex",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":0,marginRight:"calc(0.5rem * var(--tw-space-x-reverse))",marginLeft:"calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))"}}),ln=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-13"})(["",""],(function(e){return e.$_css})),un=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-14"})({height:"8rem",width:"100%"}),pn=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-15"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"4rem"}),hn=(0,N.ZP)("div").withConfig({componentId:"sc-ba5hat-16"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem",gridAutoRows:"min-content","@media (min-width: 768px)":{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}}),mn=(t(26699),t(47216)),fn=function(){var e=(0,d.Gc)().control,n=(0,se.E)(["certifications"],{url:"".concat(u.O.DIRECTORY_SERVICE_URL,"/admin/certifications")}).data;if(null===n||void 0===n||!n.data)return null;var t=n.data.filter((function(e){return["PCI","MEF","ASD"].includes(e.attributes.name)}));return(0,T.jsx)(gn,{children:t.map((function(n){return(0,T.jsxs)("div",{children:[(0,T.jsx)(xn,{children:n.attributes.name}),(0,T.jsx)(jn,{children:n.certifications.map((function(t){return(0,T.jsx)(d.Qr,{name:"certifications.".concat(t.id),control:e,render:function(e){var i=e.field;return(0,T.jsx)(mn.k,{id:t.id,label:t.attributes.name,name:i.name,value:i.value,onChange:i.onChange,options:n.certifications})}},t.id)}))})]},n.id)}))})},vn=function(){return(0,T.jsx)(bn,{children:(0,T.jsx)(fn,{})})},gn=(0,N.ZP)("div").withConfig({componentId:"sc-eby7ag-0"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"4rem",gridAutoRows:"min-content"}),xn=(0,N.ZP)(W.s0).withConfig({componentId:"sc-eby7ag-1"})({marginBottom:"0.5rem"}),jn=(0,N.ZP)("div").withConfig({componentId:"sc-eby7ag-2"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gridAutoFlow:"row",gap:"1.5rem",gridAutoRows:"min-content","@media (min-width: 768px)":{gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}}),bn=(0,N.ZP)("div").withConfig({componentId:"sc-eby7ag-3"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"4rem",gridAutoRows:"min-content"}),yn=(t(32023),t(64765),t(69600),t(74448)),wn=t(47985),Cn=t(60293),Pn=t(38736),On=t(57118),In=t(56317),Zn=t(33151);function Rn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function Sn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Rn(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Rn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Tn=function(e,n){switch(n.type){case"STEP":return Sn(Sn({},e),{},{step:n.payload});case"ATTACH_FACILITY":return Sn(Sn({},e),{},{facility:n.payload.facility,provider:n.payload.provider});default:return e}},En=(0,c.createContext)({state:{step:"UNKNOWN",pop:void 0,facility:void 0,provider:void 0},dispatch:Zn.Z}),Dn=function(e){var n=e.pop,t=e.facility,i=e.provider,r=e.submit,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.pop,t=e.facility,i=e.provider;return(0,c.useReducer)(Tn,{step:t&&i?"CONFIRM":"FACILITY",pop:n,facility:t,provider:i})}({pop:n,facility:t,provider:i}),a=(0,Q.Z)(o,2),s=a[0],d=a[1];return(0,T.jsx)(En.Provider,{value:{state:s,dispatch:d},children:(0,T.jsxs)(kn,{children:["FACILITY"===s.step&&(0,T.jsxs)(An,{children:[(0,T.jsxs)(_n,{children:["Search and select a Data Center to add a new",(0,T.jsx)("br",{})," Point of Presence"]}),(0,T.jsx)(On.j,{onSelect:function(e){var n=e.facility,t=e.provider;d({type:"ATTACH_FACILITY",payload:{facility:n,provider:t}}),d({type:"STEP",payload:"CONFIRM"})}})]}),"CONFIRM"===s.step&&(0,T.jsxs)(T.Fragment,{children:[s.facility&&s.provider&&(0,T.jsx)(In.p,{facility:s.facility,provider:s.provider}),(0,T.jsx)(Ln,{as:"div",children:"Services"}),"Update your Point of Presence services through the"," ",(0,T.jsx)(Pn.e,{href:u.O.PRODUCT_PORTAL_URL,children:"Product Portal"}),r&&(0,T.jsx)(zn,{children:r})]})]})})},kn=(0,N.ZP)("div").withConfig({componentId:"sc-o2dh3d-0"})({maxHeight:"30rem"}),An=(0,N.ZP)("div").withConfig({componentId:"sc-o2dh3d-1"})({display:"grid",gridAutoFlow:"row",gap:"1rem"}),_n=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-o2dh3d-2"})({"--tw-text-opacity":"1",color:"rgba(156, 163, 175, var(--tw-text-opacity))",textAlign:"center"}),Ln=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-o2dh3d-3"})({marginTop:"0.5rem",marginBottom:"0.5rem","--tw-text-opacity":"1",color:"rgba(17, 24, 39, var(--tw-text-opacity))",fontWeight:"700"}),zn=(0,N.ZP)("div").withConfig({componentId:"sc-o2dh3d-4"})({marginTop:"1.5rem"}),Fn=function(e){var n=e.pop,t=(0,c.useContext)(te.tC).closeModal,i=(0,l.V6)(),r=(0,p.m)("DELETE","".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/pops/").concat(n.id),{onSuccess:function(){t(),i.dispatch({type:"ADD",variant:"info",message:"The changes have been saved and are pending approval"})},onError:function(){i.dispatch({type:"ADD",variant:"error",message:"There was an error saving the changes"})}}),o=r.mutate,a=r.isLoading;return(0,T.jsxs)(Mn,{children:[(0,T.jsx)(Nn,{children:"Are you sure you want to remove this point of presence?"}),(0,T.jsx)(ee.KM,{variant:"danger",disabled:a,onClick:function(){o(void 0)},children:"Remove Point of Presence"})]})},Mn=(0,N.ZP)("div").withConfig({componentId:"sc-1dlsx7-0"})({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(2rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(2rem * var(--tw-space-y-reverse))"}}),Nn=(0,N.ZP)(W.YS).withConfig({componentId:"sc-1dlsx7-1"})({fontWeight:"400"}),Vn=(t(69826),t(68625)),Yn=function(e){var n=e.onSuccess,t=e.children,i=(0,c.useContext)(te.tC).closeModal,r=(0,c.useContext)(En).state,o=(0,A.Mv)(),a=(0,l.V6)(),s=(0,h.s)((0,c.useCallback)((function(e){var n=e.find((function(e){return e.includes("DUPLICATE_RECORD:")}));a.dispatch({type:"ADD",variant:"error",message:n?"A Point of Presence for this provider already exists":"There was an error saving the changes"})}
1),[a])),d=(0,p.m)(r.pop?"PATCH":"POST",r.pop?"".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/pops/").concat(r.pop.id):"".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/pops"),{onSuccess:function(){i(),null===n||void 0===n||n(),a.dispatch({type:"ADD",variant:"info",message:"The changes have been saved and are pending approval"})},onError:s}),m=d.mutate,f=d.isLoading,v=!r.facility||!o.id||f,g=(0,c.useCallback)((function(){var e;r.facility&&o.id&&m({data:(0,Vn.J)({id:null===(e=r.pop)||void 0===e?void 0:e.id,facility:r.facility.id,provider:o.id})})}),[r,o,m]);return(0,T.jsx)(Un,{disabled:v,onClick:g,children:t})},Un=(0,N.ZP)(ee.KM).withConfig({componentId:"sc-wo1yaw-0"})({width:"100%"}),qn=t(1076),Bn=t(14557),Hn=t(76985),Gn=t(72281),Wn=function(){return(0,T.jsxs)($n,{children:[(0,T.jsx)(Xn,{}),(0,T.jsx)(Qn,{})]})},Kn=function(){return(0,T.jsx)(Jn,{children:(0,T.jsxs)(et,{children:[(0,T.jsx)(Wn,{}),(0,T.jsx)(Wn,{}),(0,T.jsx)(Wn,{}),(0,T.jsx)(Wn,{})]})})},$n=(0,N.ZP)("div").withConfig({componentId:"sc-1fv8fyy-0"})({width:"100%",display:"flex",justifyContent:"space-between"}),Xn=(0,N.ZP)("div").withConfig({componentId:"sc-1fv8fyy-1"})({width:"66.666667%",height:"1.5rem",borderRadius:"0.75rem","--tw-bg-opacity":"1",backgroundColor:"rgba(243, 244, 246, var(--tw-bg-opacity))"}),Qn=(0,N.ZP)("div").withConfig({componentId:"sc-1fv8fyy-2"})({width:"2rem",height:"1.5rem",borderRadius:"0.75rem","--tw-bg-opacity":"1",backgroundColor:"rgba(243, 244, 246, var(--tw-bg-opacity))"}),Jn=(0,N.ZP)("div").withConfig({componentId:"sc-1fv8fyy-3"})({animation:"pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",width:"100%"}),et=(0,N.ZP)("div").withConfig({componentId:"sc-1fv8fyy-4"})({width:"100%",display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem"}),nt=function(e){var n=e.pops,t=void 0===n?[]:n,i=e.includes;return(0,T.jsx)("div",{children:(0,T.jsxs)(qn.XY,{children:[(0,T.jsxs)(qn.h4,{children:[(0,T.jsx)(qn.bL,{width:5,align:"left",children:(0,T.jsx)(rt,{children:"Pending Data Center"})}),(0,T.jsx)(qn.bL,{width:5,align:"left",children:(0,T.jsx)(ot,{children:"Status"})})]}),t.length>0&&(0,T.jsx)(qn.ZA,{children:t.map((function(e){var n,t,r=(0,de.n7)("facilities",null===(n=e.relationships)||void 0===n||null===(t=n.facility.data)||void 0===t?void 0:t.id,i);return(0,T.jsxs)(qn.X2,{children:[(0,T.jsx)(qn.bL,{align:"left",children:(0,T.jsx)(W.ZT,{children:null===r||void 0===r?void 0:r.attributes.name})}),(0,T.jsx)(qn.bL,{align:"left",children:(0,T.jsx)(W.ZT,{children:"Pending Approval"})})]},e.id)}))})]})})},tt=function(e){var n=e.provider,t=e.onSuccess,i=e.search;return(0,T.jsx)(at,{children:(0,T.jsxs)(ct,{children:[(0,T.jsxs)(st,{children:[(0,T.jsx)("img",{src:"/assets/images/search-no-results.png",alt:"No Results",height:"200"}),!i&&(0,T.jsxs)(W.ZT,{children:["No Points of Presence currently exist for ",n.attributes.name]}),!!i&&(0,T.jsx)(W.ZT,{children:"There were no results found based on your search."})]}),(0,T.jsx)(te.u_,{action:function(e){var n=e.openModal;return(0,T.jsx)(ee.KM,{onClick:n,children:(0,T.jsx)(ee.uz,{start:(0,T.jsx)(J.OvN,{color:"white",size:20}),children:"Add Point of Presence"})})},children:(0,T.jsx)(te.Vq.V,{header:(0,T.jsx)(dt,{children:"Add Point of Presence"}),children:(0,T.jsx)(Dn,{submit:(0,T.jsx)(Yn,{onSuccess:t,children:"Add Point of Presence"})})})})]})})},it=function(){var e,n,t,i,r,o,a,s,d,l,p,h,m,v,g,x,j,b,y,w=(0,A.Mv)(),C=(0,oe.l)(),P=(0,Q.Z)(C,2),O=P[0],I=P[1],Z=(0,yn.ij)(Hn.c.PENDING_POP),R=(0,c.useMemo)((function(){var e={include:["facility","facility.companyProfile"].join(","),"page[number]":O.page};return O.search&&(e["filter[search]"]=O.search),e}),[O.page,O.search]),S=(0,se.E)(["pops","active",w.id,O.search,O.page],{url:"".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/companyProfiles/").concat(w.id,"/pops"),params:R}),E=(0,se.E)(["pops","pending",w.id],{url:"".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/companyProfiles/").concat(w.id,"/pops"),params:{include:["facility","facility.companyProfile"].join(","),"filter[state]":"pending"}},{enabled:Z}),D=null===(e=S.data)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.data,k=null===(t=S.data)||void 0===t||null===(i=t.data)||void 0===i?void 0:i.included,_=null===(r=E.data)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.data;return(0,T.jsxs)(lt,{children:[(0,T.jsx)(W.s0,{children:"Points of Presence"}
1),!(null===_||void 0===_||!_.length)&&(0,T.jsx)(Cn.L,{id:"PENDING_POP",children:(0,T.jsx)(nt,{pops:_,includes:null===(a=E.data)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.included})}),(0,T.jsx)(Bn.x,{action:(0,T.jsx)(te.u_,{action:function(e){var n=e.openModal;return(0,T.jsx)(ae.e,{label:"Add Point of Presence",children:(0,T.jsx)(ut,{onClick:n,children:(0,T.jsx)(J.OvN,{color:"white",size:20})})})},children:(0,T.jsx)(te.Vq.V,{header:(0,T.jsx)(pt,{children:"Add Point of Presence"}),children:(0,T.jsx)(Dn,{submit:(0,T.jsx)(Yn,{onSuccess:E.refetch,children:"Add Point of Presence"})})})}),children:(0,T.jsx)(oe.o,{placeholder:"Search by data center name",onInput:function(e){I({type:"SEARCH",payload:e})}})}),S.isInitialLoading&&(0,T.jsx)(Kn,{}),S.isSuccess&&!(null!==D&&void 0!==D&&D.length)&&(0,T.jsx)(tt,{provider:w,onSuccess:E.refetch,search:O.search}),S.isSuccess&&!(null===D||void 0===D||!D.length)&&(0,T.jsxs)(qn.XY,{children:[(0,T.jsxs)(qn.h4,{children:[(0,T.jsx)(qn.bL,{width:5,align:"left",children:(0,T.jsx)(ht,{children:"Data Center"})}),(0,T.jsx)(qn.bL,{width:5,align:"left",children:(0,T.jsx)(mt,{children:"Owner"})}),(0,T.jsx)(qn.bL,{width:2})]}),S.isSuccess&&(0,T.jsx)(qn.ZA,{children:D.map((function(e){var n,t,i,r,o=(0,de.n7)("facilities",null===(n=e.relationships)||void 0===n||null===(t=n.facility.data)||void 0===t?void 0:t.id,k),a=(0,de.n7)("companyProfiles",null===o||void 0===o||null===(i=o.relationships)||void 0===i||null===(r=i.companyProfile.data)||void 0===r?void 0:r.id,k);return(0,T.jsxs)(qn.X2,{children:[(0,T.jsx)(qn.bL,{align:"left",children:(0,T.jsx)(W.ZT,{children:null===o||void 0===o?void 0:o.attributes.name})}),(0,T.jsx)(qn.bL,{align:"left",children:(0,T.jsx)(W.ZT,{children:null===a||void 0===a?void 0:a.attributes.name})}),(0,T.jsx)(qn.bL,{align:"right",children:(0,T.jsxs)(wn.P,{children:[(0,T.jsx)(te.u_,{action:function(e){var n=e.openModal;return(0,T.jsx)(wn.F,{onClick:n,children:"Edit"})},children:(0,T.jsx)(te.Vq.V,{header:(0,T.jsx)(ft,{children:"Edit Point of Presence"}),children:(0,T.jsx)(Dn,{pop:e,facility:o&&(0,Gn.UN)(o),provider:a&&(0,f.SA)(a),submit:(0,T.jsx)(vt,{as:"a",href:u.O.PRODUCT_PORTAL_URL,children:"Update Point of Presence"})})})}),(0,T.jsx)(te.u_,{action:function(e){var n=e.openModal;return(0,T.jsx)(wn.F,{variant:"danger",onClick:n,children:"Remove"})},children:(0,T.jsx)(te.Vq.V,{header:(0,T.jsx)(gt,{children:"Remove Point of Presence"}),children:(0,T.jsx)(Fn,{pop:e})})})]})})]},e.id)}))})]}),(null===(d=S.data)||void 0===d||null===(l=d.data)||void 0===l||null===(p=l.meta)||void 0===p?void 0:p.page)&&(0,T.jsx)(xt,{children:(0,T.jsx)(ie.t,{currentPage:null===(h=S.data)||void 0===h||null===(m=h.data)||void 0===m||null===(v=m.meta)||void 0===v||null===(g=v.page)||void 0===g?void 0:g["current-page"],totalPages:null===(x=S.data)||void 0===x||null===(j=x.data)||void 0===j||null===(b=j.meta)||void 0===b||null===(y=b.page)||void 0===y?void 0:y["last-page"],setPage:function(e){I({type:"PAGE",payload:e})}})})]})},rt=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-fzmiii-0"})({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700"}),ot=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-fzmiii-1"})({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700"}),at=(0,N.ZP)("div").withConfig({componentId:"sc-fzmiii-2"})({width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}),ct=(0,N.ZP)("div").withConfig({componentId:"sc-fzmiii-3"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",placeItems:"center",gap:"0.5rem"}),st=(0,N.ZP)("div").withConfig({componentId:"sc-fzmiii-4"})({display:"grid",placeItems:"center"}),dt=(0,N.ZP)(W.s0).withConfig({componentId:"sc-fzmiii-5"})({textAlign:"center"}),lt=(0,N.ZP)("div").withConfig({componentId:"sc-fzmiii-6"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem"}),ut=(0,N.ZP)(ee.KM).withConfig({componentId:"sc-fzmiii-7"})({padding:"0.5rem"}),pt=(0,N.ZP)(W.s0).withConfig({componentId:"sc-fzmiii-8"})({textAlign:"center"}),ht=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-fzmiii-9"})({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700"}),mt=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-fzmiii-10"})({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700"}),ft=(0,N.ZP)(W.s0).withConfig({componentId:"sc-fzmiii-11"})({textAlign:"center"}),vt=(0,N.ZP)(ee.KM).withConfig({componentId:"sc-fzmiii-12"})({display:"block",width:"100%"}),gt=(0,N.ZP)(W.s0).withConfig({componentId:"sc-fzmiii-13"})({textAlign:"center"}),xt=(0,N.ZP)("div").withConfig({componentId:"sc-fzmiii-14"})({display:"flex",justifyContent:"flex-end"}),jt=t(20026),bt=t(78901);function yt(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function wt(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?yt(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):yt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ct,Pt=function(e,n){switch(n.type){case"STEP":return wt(wt({},e),{},{step:n.payload});case"ATTACH_FABRIC":return wt(wt({},e),{},{fabric:n.payload.fabric,provider:n.payload.provider});default:return e}},Ot=(0,c.createContext)({state:{step:"UNKNOWN",fabric:void 0,provider:void 0},dispatch:Zn.Z}),It=function(e){var n=e.onSuccess,t=(0,c.useContext)(te.tC).closeModal,i=(0,l.V6)(),r=(0,A.Mv)(),o=(0,c.useContext)(Ot).state,a=(0,h.s)((0,c.useCallback)((function(e){var n=e.find((function(e){return e.includes("DUPLICATE_RECORD:")}));i.dispatch({type:"ADD",variant:"error",message:n?"This Network Fabric has already been added":"There was an error saving the changes"})}),[i])),s=(0,p.m)("POST","".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/companyProfiles/").concat(r.id,"/relationships/fabricMemberships"),{onSuccess:function(){t(),null===n||void 0===n||n(),i.dispatch({type:"ADD",variant:"info",message:"The changes have been saved and are pending approval"})},onError:a}),d=s.mutate,m=s.isLoading,f=!o.fabric||!r.id||m,v=(0,c.useCallback)((function(){o.fabric&&r.id&&d({data:[{type:"fabrics",id:o.fabric.id}]})}),[o,r,d]);return(0,T.jsx)(Zt,{disabled:f,onClick:v,children:"Add Network Fabric"})},Zt=(0,N.ZP)(ee.KM).withConfig({componentId:"sc-lipuox-0"})({width:"100%"}),Rt=function(e){var n=e.fabric,t=e.provider,i=e.onSuccess,r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.fabric,t=e.provider;return(0,c.useReducer)(Pt,{step:"FABRIC",fabric:n,provider:t})}({fabric:n,provider:t}),o=(0,Q.Z)(r,2),a=o[0],s=o[1];return(0,T.jsxs)(Ot.Provider,{value:{state:a,dispatch:s},children:["FABRIC"===a.step&&(0,T.jsx)(St,{children:(0,T.jsxs)(Tt,{children:[(0,T.jsx)(Et,{children:"Search and select a network fabric"}),(0,T.jsx)(jt.E,{onSelect:function(e){var n=e.fabric,t=e.provider;s({type:"ATTACH_FABRIC",payload:{fabric:n,provider:t}}),s({type:"STEP",payload:"FINAL"})}})]})}),"FINAL"===a.step&&(0,T.jsxs)(T.Fragment,{children:[a.fabric&&a.provider&&(0,T.jsx)(bt.H,{fabric:a.fabric,provider:a.provider}),(0,T.jsx)(Dt,{children:(0,T.jsx)(It,{onSuccess:i})})]})]})},St=(0,N.ZP)("div").withConfig({componentId:"sc-1bbtax3-0"})({height:"30rem"}),Tt=(0,N.ZP)("div").withConfig({componentId:"sc-1bbtax3-1"})({display:"grid",gridAutoFlow:"row",gap:"1rem"}),Et=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-1bbtax3-2"})({"--tw-text-opacity":"1",color:"rgba(156, 163, 175, var(--tw-text-opacity))",textAlign:"center"}),Dt=(0,N.ZP)("div").withConfig({componentId:"sc-1bbtax3-3"})({marginTop:"1.5rem"}),kt=function(e){var n=e.fabric,t=(0,A.Mv)(),i=(0,c.useContext)(te.tC).closeModal,r=(0,l.V6)(),o=(0,p.m)("DELETE","".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/companyProfiles/").concat(t.id,"/relationships/fabricMemberships"),{onSuccess:function(){i(),r.dispatch({type:"ADD",variant:"info",message:"The changes have been saved and are pending approval"})},onError:function(){r.dispatch({type:"ADD",variant:"error",message:"There was an error saving the changes"})}}),a=o.mutate,s=o.isLoading;return(0,T.jsxs)(At,{children:[(0,T.jsx)(_t,{children:"Are you sure you want to remove this network fabric?"}),(0,T.jsx)(ee.KM,{variant:"danger",disabled:s,onClick:function(){a({data:[{type:"fabrics",id:n.id}]})},children:"Remove Fabric"})]})},At=(0,N.ZP)("div").withConfig({componentId:"sc-1uudgbf-0"})({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(2rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(2rem * var(--tw-space-y-reverse))"}}),_t=(0,N.ZP)(W.YS).withConfig({componentId:"sc-1uudgbf-1"})({fontWeight:"400"}),Lt=function(e){var n=e.fabrics,t=void 0===n?[]:n;return(0,T.jsx)("div",{children:(0,T.jsxs)(qn.XY,{children:[(0,T.jsxs)(qn.h4,{children:[(0,T.jsx)(qn.bL,{width:5,align:"left",children:(0,T.jsx)(Mt,{children:"Pending Network Fabric"})}),(0,T.jsx)(qn.bL,{width:5,align:"left",children:(0,T.jsx)(Nt,{children:"Status"})})]}),t.length>0&&(0,T.jsx)(qn.ZA,{children:t.map((function(e){return(0,T.jsxs)(qn.X2,{children:[(0,T.jsx)(qn.bL,{align:"left",children:(0,T.jsx)(W.ZT,{children:e.attributes.name})}),(0,T.jsx)(qn.bL,{align:"left",children:(0,T.jsx)(W.ZT,{children:"Pending Approval"})})]},e.id)}))})]})})},zt=function(e){var n=e.provider,t=e.onSuccess,i=e.search;return(0,T.jsx)(Vt,{children:(0,T.jsxs)(Yt,{children:[(0,T.jsxs)(Ut,{children:[(0,T.jsx)("img",{src:"/assets/images/search-no-results.png",alt:"No Results",height:"200"}),!i&&(0,T.jsxs)(W.ZT,{children:["No Network Fabrics currently exist for ",n.attributes.name]}),!!i&&(0,T.jsx)(W.ZT,{children:"There were no results found based on your search."})]}),(0,T.jsx)(te.u_,{action:function(e){var n=e.openModal;return(0,T.jsx)(ee.KM,{onClick:n,children:(0,T.jsx)(ee.uz,{start:(0,T.jsx)(J.OvN,{color:"white",size:20}),children:"Add Network Fabric"})})},children:(0,T.jsx)(te.Vq.V,{header:(0,T.jsx)(qt,{children:"Add Network Fabric"}),children:(0,T.jsx)(Rt,{onSuccess:t})})})]})})},Ft=function(){var e,n,t,i,r,o,a,s,d,l,p,h,m,f,v,g,x,j=(0,A.Mv)(),b=(0,oe.l)(),y=(0,Q.Z)(b,2),w=y[0],C=y[1],P=(0,yn.ij)(Hn.c.PENDING_POP),O=(0,c.useMemo)((function(){var e={include:"companyProfile","page[number]":w.page};return w.search&&(e["filter[search]"]=w.search),e}),[w.page,w.search]),I=(0,se.E)(["memberships","active",j.id,w.search,w.page],{url:"".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/companyProfiles/").concat(j.id,"/fabricMemberships"),params:O}),Z=(0,se.E)(["memberships","pending",j.id],{url:"".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/companyProfiles/").concat(j.id,"/fabricMemberships"),params:{include:"companyProfile","filter[state]":"pending"}},{enabled:P}),R=null===(e=I.data)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.data,S=null===(t=I.data)||void 0===t||null===(i=t.data)||void 0===i?void 0:i.included,E=null===(r=Z.data)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.data;return(0,T.jsxs)(Bt,{children:[(0,T.jsx)(W.s0,{children:"Fabrics"}
1),!(null===E||void 0===E||!E.length)&&(0,T.jsx)(Cn.L,{id:"PENDING_POP",children:(0,T.jsx)(Lt,{fabrics:E})}),(0,T.jsx)(Bn.x,{action:(0,T.jsx)(te.u_,{action:function(e){var n=e.openModal;return(0,T.jsx)(ae.e,{label:"Add Network Fabric",children:(0,T.jsx)(Ht,{onClick:n,children:(0,T.jsx)(J.OvN,{color:"white",size:20})})})},children:(0,T.jsx)(te.Vq.V,{header:(0,T.jsx)(Gt,{children:"Add Network Fabric"}),children:(0,T.jsx)(Rt,{onSuccess:Z.refetch})})}),children:(0,T.jsx)(oe.o,{placeholder:"Search by network fabric name",onInput:function(e){C({type:"SEARCH",payload:e})}})}),I.isInitialLoading&&(0,T.jsx)(Kn,{}),I.isSuccess&&!(null!==R&&void 0!==R&&R.length)&&(0,T.jsx)(zt,{provider:j,onSuccess:Z.refetch,search:w.search}),I.isSuccess&&!(null===R||void 0===R||!R.length)&&(0,T.jsxs)(qn.XY,{children:[(0,T.jsxs)(qn.h4,{children:[(0,T.jsx)(qn.bL,{width:5,align:"left",children:(0,T.jsx)(Wt,{children:"Network Fabric"})}),(0,T.jsx)(qn.bL,{width:5,align:"left",children:(0,T.jsx)(Kt,{children:"Service Provider"})}),(0,T.jsx)(qn.bL,{width:2})]}),I.isSuccess&&!!R&&(0,T.jsx)(qn.ZA,{children:R.map((function(e){var n,t,i=(0,de.n7)("companyProfiles",null===(n=e.relationships)||void 0===n||null===(t=n.companyProfile.data)||void 0===t?void 0:t.id,S);return(0,T.jsxs)(qn.X2,{children:[(0,T.jsx)(qn.bL,{align:"left",children:(0,T.jsx)(W.ZT,{children:e.attributes.name})}),(0,T.jsx)(qn.bL,{align:"left",children:(0,T.jsx)(W.ZT,{children:null===i||void 0===i?void 0:i.attributes.name})}),(0,T.jsx)(qn.bL,{align:"right",children:(0,T.jsx)(wn.P,{children:(0,T.jsx)(te.u_,{action:function(e){var n=e.openModal;return(0,T.jsx)(wn.F,{variant:"danger",onClick:n,children:"Remove"})},children:(0,T.jsx)(te.Vq.V,{header:(0,T.jsx)($t,{children:"Remove Network Fabric"}),children:(0,T.jsx)(kt,{fabric:e})})})})})]},e.id)}))})]}),(null===(a=I.data)||void 0===a||null===(s=a.data)||void 0===s||null===(d=s.meta)||void 0===d?void 0:d.page)&&(0,T.jsx)(Xt,{children:(0,T.jsx)(ie.t,{currentPage:null===(l=I.data)||void 0===l||null===(p=l.data)||void 0===p||null===(h=p.meta)||void 0===h||null===(m=h.page)||void 0===m?void 0:m["current-page"],totalPages:null===(f=I.data)||void 0===f||null===(v=f.data)||void 0===v||null===(g=v.meta)||void 0===g||null===(x=g.page)||void 0===x?void 0:x["last-page"],setPage:function(e){C({type:"PAGE",payload:e})}})})]})},Mt=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-1pu3e32-0"})({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700"}),Nt=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-1pu3e32-1"})({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700"}),Vt=(0,N.ZP)("div").withConfig({componentId:"sc-1pu3e32-2"})({width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}),Yt=(0,N.ZP)("div").withConfig({componentId:"sc-1pu3e32-3"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",placeItems:"center",gap:"0.5rem"}),Ut=(0,N.ZP)("div").withConfig({componentId:"sc-1pu3e32-4"})({display:"grid",placeItems:"center"}),qt=(0,N.ZP)(W.s0).withConfig({componentId:"sc-1pu3e32-5"})({textAlign:"center"}),Bt=(0,N.ZP)("div").withConfig({componentId:"sc-1pu3e32-6"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem"}),Ht=(0,N.ZP)(ee.KM).withConfig({componentId:"sc-1pu3e32-7"})({padding:"0.5rem"}),Gt=(0,N.ZP)(W.s0).withConfig({componentId:"sc-1pu3e32-8"})({textAlign:"center"}),Wt=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-1pu3e32-9"})({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700"}),Kt=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-1pu3e32-10"})({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700"}),$t=(0,N.ZP)(W.s0).withConfig({componentId:"sc-1pu3e32-11"})({textAlign:"center"}),Xt=(0,N.ZP)("div").withConfig({componentId:"sc-1pu3e32-12"})({display:"flex",justifyContent:"flex-end"}),Qt=t(18009),Jt=N.ZP.button.attrs((function(e){var n=e.type;return{type:void 0===n?"button":n}})).withConfig({componentId:"sc-vp4y16-0"})((function(e){return[{borderWidth:"2px",cursor:"pointer",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},borderRadius:"0.375rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"1.5rem",paddingRight:"1.5rem",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",fontWeight:"700","--tw-text-opacity":"1",color:"rgba(156, 163, 175, var(--tw-text-opacity))","--tw-border-opacity":"1",borderColor:"rgba(209, 213, 219, var(--tw-border-opacity))",":hover":{"--tw-text-opacity":"1",color:"rgba(55, 65, 81, var(--tw-text-opacity))"},fontFamily:"DM Sans, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji"},e.selected&&{"--tw-text-opacity":"1",color:"rgba(55, 65, 81, var(--tw-text-opacity))","--tw-border-opacity":"1",borderColor:"rgba(0, 158, 255, var(--tw-border-opacity))"}]}
1)),ei=t(71383),ni=N.ZP.div.withConfig({componentId:"sc-ov774z-0"})((function(){return[{display:"flex",flexWrap:"wrap",marginLeft:"-0.5rem",marginRight:"-0.5rem"},(0,N.iv)(Ct||(Ct=(0,ei.Z)(["\n > "," {\n ","\n }\n "])),Jt,{paddingLeft:"0.5rem",paddingRight:"0.5rem"})]})),ti=t(49537);function ii(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function ri(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ii(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ii(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var oi=function(){var e,n=(0,d.Gc)().control,t=(0,se.E)(["company-categories"],{url:"".concat(u.O.DIRECTORY_SERVICE_URL,"/companyCategories")}).data;return(0,T.jsxs)(ci,{children:[(0,T.jsx)(q._,{children:"Profile Type"}),(0,T.jsx)("div",{children:(0,T.jsx)(ni,{children:null===t||void 0===t||null===(e=t.data)||void 0===e?void 0:e.data.map((function(e){return(0,T.jsx)("div",{children:(0,T.jsx)(d.Qr,{name:"categories.".concat(e.id),control:n,render:function(n){var t=n.field;return(0,T.jsx)(si,{name:t.name,selected:t.value,onClick:function(){return t.onChange(!t.value)},children:e.attributes.name})}})},e.id)}))})})]})},ai=function(){var e=(0,d.Gc)(),n=e.control,t=e.register,i=(0,c.useContext)(A.lP);return(0,T.jsx)("div",{id:"service-provider-admin",children:(0,T.jsx)(Qt.UQ,{initial:!i,title:(0,T.jsx)(W.s0,{children:"Cloudscene Admin"}),children:(0,T.jsxs)(di,{children:[(0,T.jsx)(oi,{}),(0,T.jsxs)(li,{children:[(0,T.jsxs)(ui,{children:[(0,T.jsx)(q._,{children:"Private Profile"}),(0,T.jsx)(pi,{children:"A private profile will not be visible anywhere on Cloudscene"})]}),(0,T.jsx)(hi,{children:(0,T.jsx)(d.Qr,{name:"attributes.visibility",control:n,render:function(e){var n=e.field;return(0,T.jsx)(ti.C,{id:n.name,name:n.name,checked:"private"===n.value,onChange:function(e){n.onChange(e.target.checked?"private":"public")}})}})})]}),(0,T.jsx)(mi,{children:(0,T.jsxs)("div",{children:[(0,T.jsx)(q._,{htmlFor:"attributes.slug",children:"Slug *"}),(0,T.jsx)(U.I,ri({},t("attributes.slug"))),(0,T.jsx)(Y.d,{name:"attributes.slug"})]})})]})})})},ci=(0,N.ZP)("div").withConfig({componentId:"sc-1dyz9f4-0"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1rem"}),si=(0,N.ZP)(Jt).withConfig({componentId:"sc-1dyz9f4-1"})({margin:"0.25rem"}),di=(0,N.ZP)("div").withConfig({componentId:"sc-1dyz9f4-2"})({display:"flex",flexDirection:"column","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(1rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(1rem * var(--tw-space-y-reverse))"},padding:"0.5rem"}),li=(0,N.ZP)("div").withConfig({componentId:"sc-1dyz9f4-3"})({display:"flex",justifyContent:"space-between",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":0,marginRight:"calc(1rem * var(--tw-space-x-reverse))",marginLeft:"calc(1rem * calc(1 - var(--tw-space-x-reverse)))"}}),ui=(0,N.ZP)("div").withConfig({componentId:"sc-1dyz9f4-4"})({flex:"1 1 auto"}),pi=(0,N.ZP)(W.YS).withConfig({componentId:"sc-1dyz9f4-5"})({"--tw-text-opacity":"1",color:"rgba(156, 163, 175, var(--tw-text-opacity))"}),hi=(0,N.ZP)("div").withConfig({componentId:"sc-1dyz9f4-6"})({flex:"none"}),mi=(0,N.ZP)("div").withConfig({componentId:"sc-1dyz9f4-7"})({display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))"}),fi=function(e){var n=e.onRamp,t=(0,c.useContext)(te.tC).closeModal,i=(0,l.V6)(),r=(0,p.m)("DELETE","".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/onRamps/").concat(n.id),{onSuccess:function(){t(),i.dispatch({type:"ADD",variant:"info",message:"The changes have been saved and are pending approval"})},onError:function(){i.dispatch({type:"ADD",variant:"error",message:"There was an error saving the changes"})}}),o=r.mutate,a=r.isLoading;return(0,T.jsxs)(vi,{children:[(0,T.jsx)(gi,{children:"Are you sure you want to remove this on-ramp?"}),(0,T.jsx)(ee.KM,{variant:"danger",disabled:a,onClick:function(){o(void 0)},children:"Remove On-Ramp"})]})},vi=(0,N.ZP)("div").withConfig({componentId:"sc-crnfsj-0"})({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center","> :not([hidden]) ~ :not([hidden])":{"--tw-space-y-reverse":0,marginTop:"calc(2rem * calc(1 - var(--tw-space-y-reverse)))",marginBottom:"calc(2rem * var(--tw-space-y-reverse))"}}),gi=(0,N.ZP)(W.YS).withConfig({componentId:"sc-crnfsj-1"})({fontWeight:"400"}),xi=function(e){var n=e.facility;return{type:"onRamps",attributes:{state:"active"},relationships:{companyProfile:{data:{id:e.provider,type:"companyProfiles"}},facility:{data:{id:n,type:"facilities"}}}}};function ji(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function bi(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?ji(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ji(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var yi=function(e,n){switch(n.type){case"STEP":return bi(bi({},e),{},{step:n.payload});case"ATTACH_FACILITY":return bi(bi({},e),{},{facility:n.payload.facility,provider:n.payload.provider});default:return e}},wi=(0,c.createContext)({state:{step:"UNKNOWN",facility:void 0,provider:void 0},dispatch:Zn.Z}),Ci=function(e){var n=e.onSuccess,t=(0,c.useContext)(wi).state,i=(0,c.useContext)(te.tC).closeModal,r=(0,A.Mv)(),o=(0,l.V6)(),a=(0,h.s)((0,c.useCallback)((function(e){var n=e.find((function(e){return e.includes("DUPLICATE_RECORD:")}));o.dispatch({type:"ADD",variant:"error",message:n?"A Point of Presence for this provider already exists":"There was an error saving the changes"})}),[o])),s=(0,p.m)("POST","".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/onRamps"),{onSuccess:function(){i(),null===n||void 0===n||n(),o.dispatch({type:"ADD",variant:"info",message:"The changes have been saved and are pending approval"})},onError:a}),d=s.mutate,m=s.isLoading,f=!t.facility||!r.id||m,v=(0,c.useCallback)((function(){t.facility&&r.id&&d({data:xi({facility:t.facility.id,provider:r.id})})}),[t,r,d]);return(0,T.jsx)(Pi,{disabled:f,onClick:v,children:"Add On-Ramp"})},Pi=(0,N.ZP)(ee.KM).withConfig({componentId:"sc-2sxi99-0"})({width:"100%"}),Oi=function(e){var n=e.onSuccess,t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.facility,t=e.provider;return(0,c.useReducer)(yi,{step:"FACILITY",facility:n,provider:t})}({}),i=(0,Q.Z)(t,2),r=i[0],o=i[1];return(0,T.jsx)(wi.Provider,{value:{state:r,dispatch:o},children:(0,T.jsxs)(Ii,{children:["FACILITY"===r.step&&(0,T.jsxs)(Zi,{children:[(0,T.jsxs)(Ri,{children:["Search and select a Data Center to add a new",(0,T.jsx)("br",{})," On-Ramp"]}),(0,T.jsx)(On.j,{onSelect:function(e){var n=e.facility,t=e.provider;o({type:"ATTACH_FACILITY",payload:{facility:n,provider:t}}),o({type:"STEP",payload:"FINAL"})}})]}),"FINAL"===r.step&&(0,T.jsxs)(T.Fragment,{children:[r.facility&&r.provider&&(0,T.jsx)(In.p,{facility:r.facility,provider:r.provider}),(0,T.jsx)(Si,{children:(0,T.jsx)(Ci,{onSuccess:n})})]})]})})},Ii=(0,N.ZP)("div").withConfig({componentId:"sc-rh6kua-0"})({maxHeight:"30rem"}),Zi=(0,N.ZP)("div").withConfig({componentId:"sc-rh6kua-1"})({display:"grid",gridAutoFlow:"row",gap:"1rem"}),Ri=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-rh6kua-2"})({"--tw-text-opacity":"1",color:"rgba(156, 163, 175, var(--tw-text-opacity))",textAlign:"center"}),Si=(0,N.ZP)("div").withConfig({componentId:"sc-rh6kua-3"})({marginTop:"1.5rem"}),Ti=function(e){var n=e.onRamps,t=void 0===n?[]:n,i=e.includes;return(0,T.jsx)("div",{children:(0,T.jsxs)(qn.XY,{children:[(0,T.jsxs)(qn.h4,{children:[(0,T.jsx)(qn.bL,{width:5,align:"left",children:(0,T.jsx)(ki,{children:"Pending Data Center"})}),(0,T.jsx)(qn.bL,{width:5,align:"left",children:(0,T.jsx)(Ai,{children:"Status"})})]}),t.length>0&&(0,T.jsx)(qn.ZA,{children:t.map((function(e){var n,t,r=(0,de.n7)("facilities",null===(n=e.relationships)||void 0===n||null===(t=n.facility.data)||void 0===t?void 0:t.id,i);return(0,T.jsxs)(qn.X2,{children:[(0,T.jsx)(qn.bL,{align:"left",children:(0,T.jsx)(W.ZT,{children:null===r||void 0===r?void 0:r.attributes.name})}),(0,T.jsx)(qn.bL,{align:"left",children:(0,T.jsx)(W.ZT,{children:"Pending Approval"})})]},e.id)}))})]})})},Ei=function(e){var n=e.provider,t=e.onSuccess,i=e.search;return(0,T.jsx)(_i,{children:(0,T.jsxs)(Li,{children:[(0,T.jsxs)(zi,{children:[(0,T.jsx)("img",{src:"/assets/images/search-no-results.png",alt:"No Results",height:"200"}),!i&&(0,T.jsxs)(W.ZT,{children:["No On-Ramps currently exist for ",n.attributes.name]}),!!i&&(0,T.jsx)(W.ZT,{children:"There were no results found based on your search."})]}),(0,T.jsx)(te.u_,{action:function(e){var n=e.openModal;return(0,T.jsx)(ee.KM,{onClick:n,children:(0,T.jsx)(ee.uz,{start:(0,T.jsx)(J.OvN,{color:"white",size:20}),children:"Add On-Ramp"})})},children:(0,T.jsx)(te.Vq.V,{header:(0,T.jsx)(Fi,{children:"Add On-Ramp"}),children:(0,T.jsx)(Oi,{onSuccess:t})})})]})})},Di=function(){var e,n,t,i,r,o,a,s,d,l,p,h,m,f,v,g,x,j,b,y=(0,A.Mv)(),w=(0,oe.l)(),C=(0,Q.Z)(w,2),P=C[0],O=C[1],I=(0,yn.ij)(Hn.c.PENDING_POP),Z=(0,c.useMemo)((function(){var e={"page[number]":P.page,flat:!0};return P.search&&(e["filter[search]"]=P.search),e}),[P.page,P.search]),R=(0,se.E)(["on-ramps",y.id,P.search,P.page],{url:"".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/companyProfiles/").concat(y.id,"/onRamps"),params:Z}),S=(0,se.E)(["on-ramps","pending",y.id],{url:"".concat(u.O.DIRECTORY_SERVICE_URL,"/assets/companyProfiles/").concat(y.id,"/onRamps"),params:{"filter[state]":"pending",flat:!0}},{enabled:I}),E=null===(e=R.data)||void 0===e||null===(n=e.data)||void 0===n?void 0:n.data,D=null===(t=R.data)||void 0===t||null===(i=t.data)||void 0===i?void 0:i.included,k=null===(r=S.data)||void 0===r||null===(o=r.data)||void 0===o?void 0:o.data;return(0,T.jsxs)(Mi,{children:[(0,T.jsx)(W.s0,{children:"On-Ramps"}
1),!(null===k||void 0===k||!k.length)&&(0,T.jsx)(Cn.L,{id:"PENDING_POP",children:(0,T.jsx)(Ti,{onRamps:k,includes:null===(a=S.data)||void 0===a||null===(s=a.data)||void 0===s?void 0:s.included})}),(0,T.jsx)(Bn.x,{action:(0,T.jsx)(te.u_,{action:function(e){var n=e.openModal;return(0,T.jsx)(ae.e,{label:"Add On-Ramp",children:(0,T.jsx)(Ni,{onClick:n,children:(0,T.jsx)(J.OvN,{color:"white",size:20})})})},children:(0,T.jsx)(te.Vq.V,{header:(0,T.jsx)(Vi,{children:"Add On-Ramp"}),children:(0,T.jsx)(Oi,{onSuccess:S.refetch})})}),children:(0,T.jsx)(oe.o,{placeholder:"Search by data center name",onInput:function(e){O({type:"SEARCH",payload:e})}})}),R.isInitialLoading&&(0,T.jsx)(Kn,{}),R.isSuccess&&!(null!==E&&void 0!==E&&E.length)&&(0,T.jsx)(Ei,{provider:y,onSuccess:S.refetch,search:P.search}),R.isSuccess&&!(null===E||void 0===E||!E.length)&&(0,T.jsxs)(qn.XY,{children:[(0,T.jsxs)(qn.h4,{children:[(0,T.jsx)(qn.bL,{width:5,align:"left",children:(0,T.jsx)(Yi,{children:"Data Center"})}),(0,T.jsx)(qn.bL,{width:5,align:"left",children:(0,T.jsx)(Ui,{children:"Owner"})}),(0,T.jsx)(qn.bL,{width:2})]}),R.isSuccess&&!!E&&(0,T.jsx)(qn.ZA,{children:E.map((function(e){var n,t,i,r,o=(0,de.n7)("facilities",null===(n=e.relationships)||void 0===n||null===(t=n.facility.data)||void 0===t?void 0:t.id,D),a=(0,de.n7)("companyProfiles",null===o||void 0===o||null===(i=o.relationships)||void 0===i||null===(r=i.companyProfile.data)||void 0===r?void 0:r.id,D);return(0,T.jsxs)(qn.X2,{children:[(0,T.jsx)(qn.bL,{align:"left",children:(0,T.jsx)(W.ZT,{children:null===o||void 0===o?void 0:o.attributes.name})}),(0,T.jsx)(qn.bL,{align:"left",children:(0,T.jsx)(W.ZT,{children:null===a||void 0===a?void 0:a.attributes.name})}),(0,T.jsx)(qn.bL,{align:"right",children:(0,T.jsx)(wn.P,{children:(0,T.jsx)(te.u_,{action:function(e){var n=e.openModal;return(0,T.jsx)(wn.F,{variant:"danger",onClick:n,children:"Remove"})},children:(0,T.jsx)(te.Vq.V,{header:(0,T.jsx)(qi,{children:"Remove On-Ramp"}),children:(0,T.jsx)(fi,{onRamp:e})})})})})]},e.id)}))})]}),(null===(d=R.data)||void 0===d||null===(l=d.data)||void 0===l||null===(p=l.meta)||void 0===p?void 0:p.page)&&(0,T.jsx)(Bi,{children:(0,T.jsx)(ie.t,{currentPage:null===(h=R.data)||void 0===h||null===(m=h.data)||void 0===m||null===(f=m.meta)||void 0===f||null===(v=f.page)||void 0===v?void 0:v["current-page"],totalPages:null===(g=R.data)||void 0===g||null===(x=g.data)||void 0===x||null===(j=x.meta)||void 0===j||null===(b=j.page)||void 0===b?void 0:b["last-page"],setPage:function(e){O({type:"PAGE",payload:e})}})})]})}
1,ki=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-zq5p5e-0"})({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700"}),Ai=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-zq5p5e-1"})({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700"}),_i=(0,N.ZP)("div").withConfig({componentId:"sc-zq5p5e-2"})({width:"100%",display:"flex",justifyContent:"center",alignItems:"center"}),Li=(0,N.ZP)("div").withConfig({componentId:"sc-zq5p5e-3"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",placeItems:"center",gap:"0.5rem"}),zi=(0,N.ZP)("div").withConfig({componentId:"sc-zq5p5e-4"})({display:"grid",placeItems:"center"}),Fi=(0,N.ZP)(W.s0).withConfig({componentId:"sc-zq5p5e-5"})({textAlign:"center"}),Mi=(0,N.ZP)("div").withConfig({componentId:"sc-zq5p5e-6"})({display:"grid",gridTemplateColumns:"repeat(1, minmax(0, 1fr))",gap:"1.5rem"}),Ni=(0,N.ZP)(ee.KM).withConfig({componentId:"sc-zq5p5e-7"})({padding:"0.5rem"}),Vi=(0,N.ZP)(W.s0).withConfig({componentId:"sc-zq5p5e-8"})({textAlign:"center"}),Yi=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-zq5
1p5e-9"})({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700"}),Ui=(0,N.ZP)(W.ZT).withConfig({componentId:"sc-zq5p5e-10"})({fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700"}),qi=(0,N.ZP)(W.s0).withConfig({componentId:"sc-zq5p5e-11"})({textAlign:"center"}),Bi=(0,N.ZP)("div").withConfig({componentId:"sc-zq5p5e-12"})({display:"flex",justifyContent:"flex-end"})},24643:function(e,n,t){t.d(n,{G:function(){return o}});t(92222);var i=t(69789),r=t(67053),o=function(e,n){var t=e?"".concat(i.O.DIRECTORY_SERVICE_URL,"/assets/locations/").concat(e):"".concat(i.O.DIRECTORY_SERVICE_URL,"/assets/locations");return(0,r.m)(e?"PATCH":"POST",t,n)}},72281:function(e,n,t){t.d(n,{UN:function(){return f},XT:function(){return v},ji:function(){return h},pG:function(){return m},sh:function(){return p},vs:function(){return u}});t(47941),t(82526),t(57327),t(38880),t(54747),t(49337);var i=t(27812),r=t(59499),o=t(16835),a=(t(41539),t(69720),t(92222),t(68309),t(49177)),c=t(78507),s=t(28246);function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var u={attributes:["name","description","salesEmail","salesPhone","supportEmail","supportPhone","website","visibility","slug"],location:["suite","level","building","line1","line2","city","region","country","zipCode","lat","lon"],exactLocation:["lat","lon"],technical:{flags:["buildGenCarrierNeutral","buildGenLoadingDocs","buildGenSatellitePlat","colocRackCagedAreas","colocSubRacks","custBoardRoom","custBreakRoom","custMeetingRoom","custOffices","custSpareParts","custWifiAccess","onSiteParking","secEleCctv","secHumanGuard","secPhyBulletProof","secPhyMantrap","stagingRooms"],values:["airConfigHumidity","airConfigHumidityVar","airConfigTemp","airConfigTempVar","authenticationFactor","bioMetric","buildGenFloorLoadCap","buildSizeColocationTot","buildSizeGross","genDistanceToAirport","interFiberConn","interMeetme","loadingDocSize","powerGeneratorDuration","powerGeneratorRedundancy","powerGenPue","powerGenTotal","powerGenRackMax","powerUpsType","rackHeight","secEleCctvBackup","utilityConnectionRedundancy"]}},p=function(e){var n=Object.entries(e.attributes).reduce((function(e,n){var t=(0,o.Z)(n,2),i=t[0],a=t[1];return l(l({},e),{},(0,r.Z)({},i,""===a?null:a))}),{}),t=Object.entries(e.technical).reduce((function(e,n){var t=(0,o.Z)(n,2),i=t[0],a=t[1];return l(l({},e),{},(0,r.Z)({},i,""===a?null:a))}),{});return l(l({},n),t)},h=function(e,n){var t=Object.entries(e.attributes).reduce((function(e,n){var t=(0,o.Z)(n,2),i=t[0],a=t[1];return l(l({},e),{},(0,r.Z)({},i,""===a?null:a))}),{}),i=Object.entries(e.technical).reduce((function(e,n){var t=(0,o.Z)(n,2),i=t[0],a=t[1];return l(l({},e),{},(0,r.Z)({},i,""===a?null:a))}),{});return(0,a.Z)(n.attributes,l(l({},t),i))},m=function(e){var n=e.certifications,t=e.banners,r=e.documents,o=e.market,a=e.provider,d=e.tier;return{certificationOptions:{data:(0,c.B)(n)},documents:{data:s.qf.apply(void 0,(0,i.Z)(t).concat((0,i.Z)(r)))},market:null!==o&&void 0!==o&&o.market?{data:{type:"markets",id:o.market.id}}:void 0,zone:null!==o&&void 0!==o&&o.zone?{data:{type:"zones",id:o.zone.id}}:void 0,companyProfile:a?{data:{type:"companyProfiles",id:a.id}}:void 0,facilityTier:{data:d?{type:"facilityTiers",id:d.id}:null}}},f=function(e){return{id:e.id,relationships:e.relationships,type:"facilities",attributes:{name:e.attributes.name}}},v=function(e){return 0===e||!1===e?"No":1===e||!0===e?"Yes":2===e||null===e||""===e?null:e}},61191:function(e,n,t){t.d(n,{W:function(){return u},X:function(){return l}});var i=t(4730),r=t(59499),o=t(16835),a=(t(41539),t(69720),t(47941),t(82526),t(57327),t(38880),t(54747),t(49337),t(49177)),c=["line1","line2"];function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?s(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var l=function(e,n){var t,i,c=Object.entries(e.location).reduce((function(e,n){var t=(0,o.Z)(n,2),i=t[0],a=t[1];return d(d({},e),{},(0,r.Z)({},i,""===a?null:a))}),{});return c.lat=null!==(t=e.exactLocation.lat)&&void 0!==t?t:null,c.lon=null!==(i=e.exactLocation.lon)&&void 0!==i?i:null,null!==n&&void 0!==n&&n.location?(0,a.Z)(n.location.attributes,c):c},u=function(e,n){var t=e.line1,r=e.line2;return{type:"locations",id:n,attributes:d(d(d({},(0,i.Z)(e,c)),t?{line_1:t}:{}),r?{line_2:r}:{})}}},68625:function(e,n,t){t.d(n,{J:function(){return i}});var i=function(e){var n=e.id,t=e.facility;return{id:n,type:"pops",attributes:{state:"active"},relationships:{companyProfile:{data:{id:e.provider,type:"companyProfiles"}},facility:{data:{id:t,type:"facilities"}}}}}},14543:function(e,n,t){t.d(n,{V3:function(){return o}});t(74916),t(15306),t(69600);var i=t(31304),r=t.n(i),o=function(e){return r()(e,{replacement:"-",lower:!0,strict:!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.