hubs/room-RoomSidebar-stories.04...

2 строки
18 KiB
JavaScript
Исходник Постоянная ссылка Обычный вид История

2024-11-17 09:58:05 +03:00
/*! For license information please see room-RoomSidebar-stories.04a7695c.iframe.bundle.js.LICENSE.txt */
(globalThis.webpackChunkhubs=globalThis.webpackChunkhubs||[]).push([[3133],{"./src/react-components/room/RoomSidebar.stories.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CanEdit:()=>CanEdit,NotLoggedIn:()=>NotLoggedIn,NotSceneOwner:()=>NotSceneOwner,SceneOwner:()=>SceneOwner,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});__webpack_require__("./node_modules/react/index.js");var _SceneOwner$parameter,_SceneOwner$parameter2,_SceneOwner$parameter3,_NotSceneOwner$parame,_NotSceneOwner$parame2,_NotSceneOwner$parame3,_CanEdit$parameters,_CanEdit$parameters2,_CanEdit$parameters2$,_NotLoggedIn$paramete,_NotLoggedIn$paramete2,_NotLoggedIn$paramete3,_layout_RoomLayout__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/react-components/layout/RoomLayout.js"),_RoomSidebar__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/react-components/room/RoomSidebar.js"),_assets_images_home_hero_background_unbranded_png__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./src/assets/images/home-hero-background-unbranded.png"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/react/jsx-runtime.js");function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);enumerableOnly&&(symbols=symbols.filter((function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable}))),keys.push.apply(keys,symbols)}return keys}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?ownKeys(Object(source),!0).forEach((function(key){_defineProperty(target,key,source[key])})):Object.getOwnPropertyDescriptors?Object.defineProperties(target,Object.getOwnPropertyDescriptors(source)):ownKeys(Object(source)).forEach((function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key))}))}return target}function _defineProperty(obj,key,value){return(key=function _toPropertyKey(arg){var key=function _toPrimitive(input,hint){if("object"!=typeof input||null===input)return input;var prim=input[Symbol.toPrimitive];if(void 0!==prim){var res=prim.call(input,hint||"default");if("object"!=typeof res)return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===hint?String:Number)(input)}(arg,"string");return"symbol"==typeof key?key:String(key)}(key))in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}const __WEBPACK_DEFAULT_EXPORT__={title:"Room/RoomSidebar",parameters:{layout:"fullscreen"}},room={name:"Room Name",description:"Room Description",scene:{name:"Scene Name",account_id:"123",allow_promotion:!1,allow_remixing:!1,url:"#",screenshot_url:_assets_images_home_hero_background_unbranded_png__WEBPACK_IMPORTED_MODULE_3__,attributions:{creator:"Creator",content:[{name:"Model 1",author:"User 1",url:"https://sketchfab.com/example"},{name:"Model 2",author:"User 2",url:"https://poly.google.com"},{name:"Model 3",author:"User 3"}]}}},SceneOwner=()=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_layout_RoomLayout__WEBPACK_IMPORTED_MODULE_1__.s,{sidebar:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_RoomSidebar__WEBPACK_IMPORTED_MODULE_2__.g,{accountId:"123",room})});SceneOwner.displayName="SceneOwner";const NotSceneOwner=()=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_layout_RoomLayout__WEBPACK_IMPORTED_MODULE_1__.s,{sidebar:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_RoomSidebar__WEBPACK_IMPORTED_MODULE_2__.g,{accountId:"456",room})});NotSceneOwner.displayName="NotSceneOwner";const CanEdit=()=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_layout_RoomLayout__WEBPACK_IMPORTED_MODULE_1__.s,{sidebar:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_RoomSidebar__WEBPACK_IMPORTED_MODULE_2__.g,{accountId:"123",room,canEdit:!0})});CanEdit.displayName="CanEdit";const N