1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6292],{6039:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/theta/[twinId]",function(){return r(12538)}])},73312:function(e,t,r){"use strict";r.d(t,{q:function(){return ErrorComponent}});var a=r(85893),n=r(67421),i=r(41664),l=r.n(i),o=r(32357);function ErrorComponent(e){let{statusCode:t}=e,{ready:r,t:i}=(0,n.$G)("error");return r?(0,a.jsx)("div",{className:"flex min-h-full flex-col justify-center py-12 sm:px-6 lg:px-8",children:(0,a.jsx)("div",{className:"mt-8 sm:mx-auto sm:w-full sm:max-w-md",children:(0,a.jsx)("div",{className:"bg-white px-4 py-8 shadow sm:rounded-lg sm:px-10",children:(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsx)("h2",{className:"mt-6 text-center text-3xl font-bold tracking-tight text-gray-900",children:i(["".concat(t,".Title"),"Default.Title"])}),(0,a.jsx)("p",{className:"text-center",children:i(["".concat(t,".Message"),"Default.Message"])}),(0,a.jsx)("div",{children:(0,a.jsx)(l(),{className:"flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",href:"/",children:i("Redirect")})})]})})})}):(0,a.jsx)(o.h,{})}},32357:function(e,t,r){"use strict";r.d(t,{h:function(){return LoadingPage}});var a=r(85893),n=r(18828);function LoadingPage(){return(0,a.jsx)("div",{"aria-busy":"true",className:"fixed flex h-full w-full items-center justify-center",children:(0,a.jsx)(n.g,{className:"text-4xl text-ricoh360-primary-blue"})})}},55711:function(e,t,r){"use strict";r.d(t,{t:function(){return useCheckAdminRole}});var a=r(67294),n=r(60403),i=r(48283),l=r(29953),o=r(32558);function useCheckAdminRole(){let{teamId:e}=a.useContext(i.G),{data:t,isLoading:r}=(0,o.Z)(n._N,{skip:!e,variables:{orderBy:n.As.Asc,sortBy:n.T1.UserRole,teamId:e}}),s=(0,l.Z)(t);return{isOwner:s===n.k_.Owner,isOwnerOrAdmin:s&&[n.k_.Owner,n.k_.Admin].includes(s),loading:r||!s}}},29953:function(e,t,r){"use strict";r.d(t,{Z:function(){return useLoginUserRole}});var a=r(67294),n=r(88574);function useLoginUserRole(e){let{user:t}=(0,a.useContext)(n.S),r=(0,a.useMemo)(()=>{var r,a;return e&&t&&null!==(a=null===(r=e.getTeam.members.find(e=>e.userId===t.id))||void 0===r?void 0:r.userRole)&&void 0!==a?a:null},[e,t]);return r}},80705:function(e,t,r){"use strict";r.d(t,{h:function(){return n}});var a=r(16310);let n=/[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}/,i={"/account/setup":(0,a.Ry)({survey:(0,a.Z_)().oneOf(["customer","devices","industry"]).required()}),"/admin/theta":(0,a.Ry)({page:(0,a.Z_)().matches(/[0-9]+/,"page must be a number"),per_page:(0,a.Z_)().oneOf(["20","50","100"])}),"/admin/theta/[twinId]":(0,a.Ry)({interval:(0,a.Z_)().oneOf(["daily","weekly","monthly"]),twinId:(0,a.Z_)().matches(n,"twinId must be a valid UUID format").required()}),"/ai-insights/[contentId]":(0,a.Ry)({contentId:(0,a.Z_)().matches(n,"contentId must be a valid UUID format").required()}),"/albums/[albumId]":(0,a.Ry)({albumId:(0,a.Z_)().matches(n,"albumId must be a valid UUID format").required()}),"/albums/[albumId]/entries/[entryId]":(0,a.Ry)({albumId:(0,a.Z_)().matches(n,"albumId must be a valid UUID format").required(),entryId:(0,a.Z_)().matches(n,"entryId must be a valid UUID format").required(),list:(0,a.Z_)().oneOf(["true"])}),"/albums/[albumId]/entries/compare":(0,a.Ry)({albumId:(0,a.Z_)().matches(n,"albumId must be a valid UUID format").required(),entry_id:(0,a.IX)().of((0,a.Z_)().matches(n,"entry_id must have valid UUID values").required()).min(2).max(2).required(),list:(0,a.Z_)().oneOf(["true"])}),"/gallery/[contentId]":(0,a.Ry)({contentId:(0,a.Z_)().matches(n,"contentId must be a valid UUID format").required(),list:(0,a.Z_)().oneOf(["true"]),mode:(0,a.Z_)().oneOf(["edit"])}),"/gallery/compare":(0,a.Ry)({content_id:(0,a.IX)().of((0,a.Z_)().matches(n,"content_id must have valid UUID values").required()).min(2).max(2).required(),list:(0,a.Z_)().oneOf(["true"])}),"/invite/[code]":(0,a.Ry)({code:(0,a.Z_)().matches(n,"code must be a valid UUID format").required()}),"/projects/[projectId]":(0,a.Ry)({projectId:(0,a.Z_)().matches(n,"projectId must be a valid UUID format").required()}),"/projects/[projectId]/drawings/[floorplanId]":(0,a.Ry)({floorplanId:(0,a.Z_)().matches(n,"floorplanId must be a valid UUID format").required(),projectId:(0,a.Z_)().matches(n,"projectId must be a valid UUID format").required()}),"/projects/[projectId]/viewer":(0,a.Ry)({list:(0,a.Z_)().oneOf(["true"]),marker:(0,a.Z_)().matches(n,"marker must have valid UUID values"),projectId:(0,a.Z_)().matches(n,"projectId must be a valid UUID format").required(),scene:(0,a.Z_)().matches(n,"scene must have valid UUID values")}),"/projects/[projectId]/viewer/compare":(0,a.Ry)({list:(0,a.Z_)().oneOf(["true"]),marker:(0,a.IX)().of((0,a.Z_)().matches(n,"marker must have valid UUID values").required()).transform((e,t)=>"string"==typeof t?[t]:e),projectId:(0,a.Z_)().matches(n,"projectId must be a valid UUID format").required(),scene:(0,a.IX)().of((0,a.Z_)().matches(n,"scene must have valid UUID values").required()).transform((e,t)=>"string"==typeof t?[t]:e)}).test("marker-and-scene-total","marker and scene must have a total of 2 UUIDs",e=>{var t,r;let a=(null===(t=e.marker)||void 0===t?void 0:t.length)||0,n=(null===(r=e.scene)||void 0===r?void 0:r.length)||0;return a+n===2}),"/theta-ls/[twinId]":(0,a.Ry)({twinId:(0,a.Z_)().matches(/[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}/,"twinId must be a valid UUID format").required()}),"/timelapse/[twinId]":(0,a.Ry)({twinId:(0,a.Z_)().matches(/[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}/,"twinId must be a valid UUID format").required()}),"/viewer/[contentId]":(0,a.Ry)({contentId:(0,a.Z_)().matches(n,"contentId must be a valid UUID format").required()})};t.Z=i},1342:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{noSSR:function(){return noSSR},default:function(){return dynamic}});let a=r(38754),n=(r(67294),a._(r(24304)));function convertModule(e){return{default:(null==e?void 0:e.default)||e}}function noSSR(e,t){return delete t.webpack,delete t.modules,e(t)}function dynamic(e,t){let r=n.default,a={loading:e=>{let{error:t,isLoading:r,pastDelay:a}=e;return null}};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a={...a,...e}),a={...a,...t};let i=a.loader;return(a.loadableGenerated&&(a={...a,...a.loadableGenerated},delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr)?r({...a,loader:()=>null!=i?i().then(convertModule):Promise.resolve(convertModule(()=>null))}):(delete a.webpack,delete a.modules,noSSR(r,a))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},30043:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return i}});let a=r(38754),n=a._(r(67294)),i=n.default.createContext(null)},24304:function(e,t,r){"use strict";/** 2@copyright (c) 2017-present James Kyle <[email protected]> 3 MIT License 4 Permission is hereby granted, free of charge, to any person obtaining 5a copy of this software and associated documentation files (the 6"Software"), to deal in the Software without restriction, including 7without limitation the rights to use, copy, modify, merge, publish, 8distribute, sublicense, and/or sell copies of the Software, and to 9permit persons to whom the Software is furnished to do so, subject to 10the following conditions: 11 The above copyright notice and this permission notice shall be 12included in all copies or substantial portions of the Software. 13 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 14EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 15MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 16NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 17LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 18OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 19WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE 20*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return d}});let a=r(38754),n=a._(r(67294)),i=r(30043),l=[],o=[],s=!1;function load(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}let LoadableSubscription=class LoadableSubscription{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}};function Loadable(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function init(){if(!a){let t=new LoadableSubscription(e,r);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!s){let e=r.webpack?r.webpack():r.modules;e&&o.push(t=>{for(let r of e)if(t.includes(r))return init()})}
20function LoadableComponent(e,t){!function(){init();let e=n.default.useContext(i.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let l=n.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),n.default.useMemo(()=>{var t;return l.loading||l.error?n.default.createElement(r.loading,{isLoading:l.loading,pastDelay:l.pastDelay,timedOut:l.timedOut,error:l.error,retry:a.retry}):l.loaded?n.default.createElement((t=l.loaded)&&t.default?t.default:t,e):null},[e,l])}return LoadableComponent.preload=()=>init(),LoadableComponent.displayName="LoadableComponent",n.default.forwardRef(LoadableComponent)}(load,e)}function flushInitializers(e,t){let r=[];for(;e.length;){let a=e.pop();r.push(a(t))}return Promise.all(r).then(()=>{if(e.length)return flushInitializers(e,t)})}Loadable.preloadAll=()=>new Promise((e,t)=>{flushInitializers(l).then(e,t)}),Loadable.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let res=()=>(s=!0,t());flushInitializers(o,e).then(res,res)})),window.__NEXT_PRELOADREADY=Loadable.preloadReady;let d=Loadable},12538:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return _},default:function(){return AdminThetaTwinIdIndex}});var a=r(85893),n=r(67421),i=r(5152),l=r.n(i),o=r(9008),s=r.n(o),d=r(11163),u=r(73312),c=r(32357),m=r(55711),f=r(80705);let h=l()(()=>Promise.all([r.e(2196),r.e(9615),r.e(3853),r.e(3833),r.e(9116),r.e(4357)]).then(r.bind(r,84357)),{loadableGenerated:{webpack:()=>[84357]},loading:()=>(0,a.jsx)(c.h,{})});var _=!0;function AdminThetaTwinIdIndex(e){let{isFallback:t,query:r}=(0,d.useRouter)(),{ready:i,t:l}=(0,n.$G)(["common","error","theta"]),{isOwnerOrAdmin:o,loading:_}=(0,m.t)();if(t||!i||_)return(0,a.jsx)(c.h,{});if(!o)return(0,a.jsx)(u.q,{statusCode:403});try{f.Z["/admin/theta/[twinId]"].validateSync(r)}catch(e){return(0,a.jsx)(u.q,{statusCode:400})}return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s(),{children:(0,a.jsx)("title",{children:l("PageTitleDetail",{ns:"theta"})})}),(0,a.jsx)(h,{twinId:r.twinId})]})}},5152:function(e,t,r){e.exports=r(1342)}},function(e){e.O(0,[6310,9774,2888,179],function(){return e(e.s=6039)}),_N_E=e.O()}]);
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.