"use strict";(self.webpackChunkunifiNetworkUi=self.webpackChunkunifiNetworkUi||[]).push([[2292],{345558:(e,t,E)=>{E.d(t,{_:()=>A});var n=E(691189);const a="hotspotConfig",A=(e={},t={})=>(0,n.Kd)(a,"/api/stat/s/{site}/hotspotconfig",a,e,t)},846637:(e,t,E)=>{E.r(t),E.d(t,{default:()=>P});var n=E(296540),a=E(956347),A=E(530864),l=E(860923),r=E(582724),T=E(345558),o=E(28067),S=E(412808),O=E(469733),c=E(415331),N=E(291231);const i=e=>{const t=(0,O.useSelector)(N.G);return n.createElement(c.A,{routes:t,...e})};var m=E(670180),s=E(257143),z=E(71479),I=E(294303),u=E(566723);const d=(0,z.A)(I.A)`
  height: 100%;
  overflow: auto;
  margin: ${u.Ln};
  border-radius: 6px;
  gap: ${u.Ln};
  flex-direction: column;
  align-items: flex-start;
  position: relative;
`,P=({match:{path:e,params:t}})=>(0,r.A)([(0,T._)()],n.createElement(l.A,null,n.createElement(d,null,n.createElement(n.Suspense,{fallback:null},n.createElement(a.dO,null,n.createElement(A.F,{path:o.k[S.z.GUESTS],render:e=>n.createElement(i,{id:S.z.GUESTS,...e})}),n.createElement(A.F,{path:o.k[S.z.PAYMENTS],render:e=>n.createElement(i,{id:S.z.PAYMENTS,...e})}),n.createElement(A.F,{path:o.k[S.z.VOUCHERS],render:e=>n.createElement(i,{id:S.z.VOUCHERS,...e})}),n.createElement(A.F,{path:o.k[S.z.PORTAL],render:e=>n.createElement(i,{id:S.z.PORTAL,...e})}),n.createElement(A.F,{exact:!0,path:s.K[m.H.HOTSPOT]},n.createElement(a.rd,{to:(0,a.tW)(e,{...t,subSection:S.z.GUESTS})})))))),{trackingName:m.H.HOTSPOT})},28067:(e,t,E)=>{E.d(t,{k:()=>l});var n=E(670180),a=E(257143),A=E(412808);const l={[A.z.GUESTS]:`${a.K[n.H.HOTSPOT]}/${A.z.GUESTS}`,[A.z.PAYMENTS]:`${a.K[n.H.HOTSPOT]}/${A.z.PAYMENTS}`,[A.z.VOUCHERS]:`${a.K[n.H.HOTSPOT]}/${A.z.VOUCHERS}`,[A.z.PORTAL]:`${a.K[n.H.HOTSPOT]}/${A.z.PORTAL}`}},291231:(e,t,E)=>{E.d(t,{G:()=>C});var n=E(801081),a=E(296540);const A=(0,a.lazy)(()=>E.e(4158).then(E.bind(E,713331))),l=e=>a.createElement(a.Suspense,{fallback:null},a.createElement(A,{...e})),r=(0,a.lazy)(()=>E.e(8004).then(E.bind(E,687535))),T=()=>a.createElement(a.Suspense,{fallback:null},a.createElement(r,null)),o=(0,a.lazy)(()=>Promise.all([E.e(8339),E.e(8003)]).then(E.bind(E,632378))),S=e=>a.createElement(a.Suspense,{fallback:null},a.createElement(o,{...e})),O=(0,a.lazy)(()=>E.e(8880).then(E.bind(E,486799))),c=()=>a.createElement(a.Suspense,{fallback:null},a.createElement(O,null));var N=E(87485),i=E(25553),m=E(345558);const s=(0,i.uh)((0,m._)()),z=(0,n.Mz)(s,N.i6);var I;!function(e){e.EXTERNAL="custom",e.HOTSPOT="hotspot",e.NONE="none"}(I||(I={}));var u=E(602021),d=E(627440),P=E(189601),L=E(412808),U=E(592510);const H={[L.z.GUESTS]:void 0,[L.z.PAYMENTS]:[(0,m._)(void 0,{crudCacheStrategy:{type:U.e.CACHE}})],[L.z.VOUCHERS]:[(0,m._)(void 0,{crudCacheStrategy:{type:U.e.CACHE}})],[L.z.PORTAL]:void 0};var R=E(28067);const C=(0,P.WY)()((0,n.Mz)(z,u.dK,({auth:e,payment_enabled:t,voucher_enabled:E},n)=>{return a=e===I.HOTSPOT,{[L.z.GUESTS]:{[d.o9.ROUTE_COMPONENT]:l,[d.o9.SIDE_NAVIGATION]:void 0,[d.o9.ROUTE]:{[d.Fm.AVAILABLE]:!0},[d.o9.NAVIGATION]:{[d.mx.AVAILABLE]:!0},[d.o9.DEPENDENCIES]:H[L.z.GUESTS]},[L.z.PAYMENTS]:{[d.o9.ROUTE_COMPONENT]:T,[d.o9.SIDE_NAVIGATION]:void 0,[d.o9.ROUTE]:{[d.Fm.AVAILABLE]:a&&t},[d.o9.NAVIGATION]:{[d.mx.AVAILABLE]:a&&t},[d.o9.DEPENDENCIES]:H[L.z.PAYMENTS],[d.o9.REDIRECT_WHEN_UNAVAILABLE]:{[d.W4.PATH]:R.k[L.z.GUESTS]}},[L.z.VOUCHERS]:{[d.o9.ROUTE_COMPONENT]:c,[d.o9.SIDE_NAVIGATION]:void 0,[d.o9.ROUTE]:{[d.Fm.AVAILABLE]:a&&E},[d.o9.NAVIGATION]:{[d.mx.AVAILABLE]:a&&E},[d.o9.DEPENDENCIES]:H[L.z.VOUCHERS],[d.o9.REDIRECT_WHEN_UNAVAILABLE]:{[d.W4.PATH]:R.k[L.z.GUESTS]}},[L.z.PORTAL]:{[d.o9.ROUTE_COMPONENT]:S,[d.o9.SIDE_NAVIGATION]:void 0,[d.o9.ROUTE]:{[d.Fm.AVAILABLE]:n},[d.o9.NAVIGATION]:{[d.mx.AVAILABLE]:n},[d.o9.DEPENDENCIES]:H[L.z.PORTAL],[d.o9.REDIRECT_WHEN_UNAVAILABLE]:{[d.W4.PATH]:R.k[L.z.GUESTS]}}};var a}),e=>e)}}]);