{"version":3,"sources":["webpack:///./node_modules/vant/es/action-bar/ActionBar.js","webpack:///./node_modules/vant/es/action-bar/index.js","webpack:///./node_modules/vant/es/action-bar-button/ActionBarButton.js","webpack:///./node_modules/vant/es/action-bar-button/index.js","webpack:///./node_modules/vant/es/dialog/Dialog.js","webpack:///./node_modules/vant/es/dialog/function-call.js","webpack:///./node_modules/vant/es/dialog/index.js","webpack:///./src/views/choiceSpace/setMainSpace.vue?050d","webpack:///./node_modules/vant/es/swipe-cell/SwipeCell.js","webpack:///./node_modules/vant/es/swipe-cell/index.js","webpack:///./src/views/choiceSpace/setMainSpace.vue?ba58","webpack:///./src/views/choiceSpace/setMainSpace.vue","webpack:///./node_modules/vant/es/button/style/index.js","webpack:///./node_modules/vant/es/cell/Cell.js","webpack:///./node_modules/vant/es/cell/index.js","webpack:///./src/views/choiceSpace/setMainSpace.vue?513f","webpack:///./src/views/choiceSpace/setMainSpace.vue?7d4d","webpack:///./node_modules/vant/es/button/Button.js","webpack:///./node_modules/vant/es/button/index.js","webpack:///./node_modules/vant/es/dialog/style/index.js","webpack:///./src/views/choiceSpace/setMainSpace.vue?bb17"],"names":["bem","create","ACTION_BAR_KEY","Symbol","actionBarProps","safeAreaInsetBottom","stdin_default","name","props","slots","linkChildren","_a","default","call","ActionBar","actionBarButtonProps","type","String","text","icon","color","loading","Boolean","disabled","route","parent","index","isFirst","prev","children","value","isLast","next","isButton","last","first","ActionBarButton","t","dialogProps","title","theme","width","message","Function","callback","allowHtml","className","transition","messageAlign","closeOnPopstate","showCancelButton","cancelButtonText","cancelButtonColor","confirmButtonText","confirmButtonColor","showConfirmButton","closeOnClickOverlay","popupInheritKeys","emits","emit","root","confirm","cancel","updateShow","close","action","getActionHandler","show","beforeClose","args","onCancel","onConfirm","onKeydown","event","_b","target","popupRef","onEventType","Enter","Escape","key","renderTitle","isolated","renderMessage","hasTitle","classNames","content","renderContent","renderButtons","renderRoundButtons","renderFooter","footer","instance","initInstance","Wrapper","state","toggle","Dialog","options","Promise","resolve","reject","open","currentOptions","defaultOptions","overlay","teleport","lockScroll","overlayClass","overlayStyle","alert","setDefaultOptions","resetDefaultOptions","Component","install","app","use","config","globalProperties","$dialog","n","_hoisted_1","class","_hoisted_2","_hoisted_3","render","_ctx","_cache","$props","$setup","$data","$options","_component_van_cell","_component_van_button","_component_van_swipe_cell","_component_van_popup","spaceData","item","onClick","$event","checkMainSpace","right","square","delWorkSpace","border","spaceName","_","swipeCellProps","leftWidth","rightWidth","stopPropagation","opened","lockClick","startOffset","leftRef","rightRef","offset","dragging","touch","getWidthByRef","ref2","side","position","Math","abs","THRESHOLD","threshold","onTouchStart","start","onTouchMove","deltaX","move","isHorizontal","isEdge","onTouchEnd","setTimeout","done","getClickHandler","stop","renderSideContent","contentSlot","eventName","wrapperStyle","transform","transitionDuration","SwipeCell","components","VanSwipeCell","VanCell","VanButton","VanDialog","setup","proxyGlobal","userInfo","router","proxyData","loaging","parseImgUrl","formateData","params","workSpaceList","majorSpaceId","macAddress","mac","map","space","spaceId","push","saveWorkSpace","then","queryWorkSpace","proxy","$toast","forbidClick","duration","res","closeLoading","query","catch","clear","criteria","projectId","resData","result","isMajorSpace","__exports__","cellSharedProps","size","label","center","isLink","required","iconPrefix","valueClass","labelClass","titleClass","titleStyle","arrowDirection","clickable","cellProps","renderLabel","showLabel","renderValue","slot","hasValue","alone","renderLeftIcon","renderRightIcon","name2","classes","borderless","extra","Cell","module","exports","buttonProps","tag","block","plain","round","hairline","nativeType","loadingSize","loadingText","loadingType","iconPosition","renderLoadingIcon","renderIcon","renderText","getStyle","style","background","includes","borderColor","Button"],"mappings":"qYAIA,MAAO,EAAMA,GAAO,OAAAC,EAAA,MAAgB,cAC9BC,EAAiBC,OAAO,GACxBC,EAAiB,CACrBC,oBAAqB,QAEvB,IAAIC,EAAgB,6BAAgB,CAClCC,KAAI,EACJC,MAAOJ,EACP,MAAMI,GAAO,MACXC,IAEA,MAAM,aACJC,GACE,eAAYR,GAEhB,OADAQ,IACO,K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AAK,QAASc,GACdjD,MAGJ,MAAO,KACL,MAAM,IACJwO,EAAG,KACHhP,EAAI,KACJmN,EAAI,MACJ8B,EAAK,MACLE,EAAK,MACLD,EAAK,OACLpH,EAAM,QACNzH,EAAO,SACPE,EAAQ,SACR6O,EAAQ,WACRC,EAAU,aACVI,GACEjQ,EACEiP,EAAU,CAACzP,EAAI,CAACgB,EAAMmN,EAAM,CAChC+B,QACAD,QACAE,QACArH,SACAzH,UACAE,WACA6O,cACG,CACH,CAAC,QAAkBA,IAErB,OAAO,yBAAaJ,EAAK,CACvB,KAAQK,EACR,MAASZ,EACT,MAASoB,IACT,SAAYtP,EACZ,QAAWmH,GACV,CACD9H,QAAS,IAAM,CAAC,yBAAa,MAAO,CAClC,MAASZ,EAAI,YACZ,CAAkB,SAAjByQ,GAA2BE,IAAcC,IAA+B,UAAjBH,GAA4BE,aC1I/F,MAAMO,EAAS,eAAY,GAC3B,IAAI,EAAgBA,G,gFCHpB,qG,kCCAA","file":"static/js/chunk-32b29088.3f2d12dd.js","sourcesContent":["import { createVNode as _createVNode } from \"vue\";\nimport { defineComponent } from \"vue\";\nimport { truthProp, createNamespace } from \"../utils\";\nimport { useChildren } from \"@vant/use\";\nconst [name, bem] = createNamespace(\"action-bar\");\nconst ACTION_BAR_KEY = Symbol(name);\nconst actionBarProps = {\n  safeAreaInsetBottom: truthProp\n};\nvar stdin_default = defineComponent({\n  name,\n  props: actionBarProps,\n  setup(props, {\n    slots\n  }) {\n    const {\n      linkChildren\n    } = useChildren(ACTION_BAR_KEY);\n    linkChildren();\n    return () => {\n      var _a;\n      return _createVNode(\"div\", {\n        \"class\": [bem(), {\n          \"van-safe-area-bottom\": props.safeAreaInsetBottom\n        }]\n      }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]);\n    };\n  }\n});\nexport {\n  ACTION_BAR_KEY,\n  stdin_default as default\n};\n","import { withInstall } from \"../utils\";\nimport _ActionBar from \"./ActionBar\";\nconst ActionBar = withInstall(_ActionBar);\nvar stdin_default = ActionBar;\nexport {\n  ActionBar,\n  stdin_default as default\n};\n","import { createVNode as _createVNode } from \"vue\";\nimport { computed, defineComponent } from \"vue\";\nimport { extend, createNamespace } from \"../utils\";\nimport { ACTION_BAR_KEY } from \"../action-bar/ActionBar\";\nimport { useParent } from \"@vant/use\";\nimport { useExpose } from \"../composables/use-expose\";\nimport { useRoute, routeProps } from \"../composables/use-route\";\nimport { Button } from \"../button\";\nconst [name, bem] = createNamespace(\"action-bar-button\");\nconst actionBarButtonProps = extend({}, routeProps, {\n  type: String,\n  text: String,\n  icon: String,\n  color: String,\n  loading: Boolean,\n  disabled: Boolean\n});\nvar stdin_default = defineComponent({\n  name,\n  props: actionBarButtonProps,\n  setup(props, {\n    slots\n  }) {\n    const route = useRoute();\n    const {\n      parent,\n      index\n    } = useParent(ACTION_BAR_KEY);\n    const isFirst = computed(() => {\n      if (parent) {\n        const prev = parent.children[index.value - 1];\n        return !(prev && \"isButton\" in prev);\n      }\n    });\n    const isLast = computed(() => {\n      if (parent) {\n        const next = parent.children[index.value + 1];\n        return !(next && \"isButton\" in next);\n      }\n    });\n    useExpose({\n      isButton: true\n    });\n    return () => {\n      const {\n        type,\n        icon,\n        text,\n        color,\n        loading,\n        disabled\n      } = props;\n      return _createVNode(Button, {\n        \"class\": bem([type, {\n          last: isLast.value,\n          first: isFirst.value\n        }]),\n        \"size\": \"large\",\n        \"type\": type,\n        \"icon\": icon,\n        \"color\": color,\n        \"loading\": loading,\n        \"disabled\": disabled,\n        \"onClick\": route\n      }, {\n        default: () => [slots.default ? slots.default() : text]\n      });\n    };\n  }\n});\nexport {\n  stdin_default as default\n};\n","import { withInstall } from \"../utils\";\nimport _ActionBarButton from \"./ActionBarButton\";\nconst ActionBarButton = withInstall(_ActionBarButton);\nvar stdin_default = ActionBarButton;\nexport {\n  ActionBarButton,\n  stdin_default as default\n};\n","import { mergeProps as _mergeProps, createVNode as _createVNode } from \"vue\";\nimport { ref, reactive, withKeys, defineComponent } from \"vue\";\nimport { noop, pick, extend, addUnit, truthProp, isFunction, BORDER_TOP, BORDER_LEFT, unknownProp, numericProp, makeStringProp, callInterceptor, createNamespace } from \"../utils\";\nimport { popupSharedProps, popupSharedPropKeys } from \"../popup/shared\";\nimport { Popup } from \"../popup\";\nimport { Button } from \"../button\";\nimport { ActionBar } from \"../action-bar\";\nimport { ActionBarButton } from \"../action-bar-button\";\nconst [name, bem, t] = createNamespace(\"dialog\");\nconst dialogProps = extend({}, popupSharedProps, {\n  title: String,\n  theme: String,\n  width: numericProp,\n  message: [String, Function],\n  callback: Function,\n  allowHtml: Boolean,\n  className: unknownProp,\n  transition: makeStringProp(\"van-dialog-bounce\"),\n  messageAlign: String,\n  closeOnPopstate: truthProp,\n  showCancelButton: Boolean,\n  cancelButtonText: String,\n  cancelButtonColor: String,\n  confirmButtonText: String,\n  confirmButtonColor: String,\n  showConfirmButton: truthProp,\n  closeOnClickOverlay: Boolean\n});\nconst popupInheritKeys = [...popupSharedPropKeys, \"transition\", \"closeOnPopstate\"];\nvar stdin_default = defineComponent({\n  name,\n  props: dialogProps,\n  emits: [\"confirm\", \"cancel\", \"keydown\", \"update:show\"],\n  setup(props, {\n    emit,\n    slots\n  }) {\n    const root = ref();\n    const loading = reactive({\n      confirm: false,\n      cancel: false\n    });\n    const updateShow = (value) => emit(\"update:show\", value);\n    const close = (action) => {\n      var _a;\n      updateShow(false);\n      (_a = props.callback) == null ? void 0 : _a.call(props, action);\n    };\n    const getActionHandler = (action) => () => {\n      if (!props.show) {\n        return;\n      }\n      emit(action);\n      if (props.beforeClose) {\n        loading[action] = true;\n        callInterceptor(props.beforeClose, {\n          args: [action],\n          done() {\n            close(action);\n            loading[action] = false;\n          },\n          canceled() {\n            loading[action] = false;\n          }\n        });\n      } else {\n        close(action);\n      }\n    };\n    const onCancel = getActionHandler(\"cancel\");\n    const onConfirm = getActionHandler(\"confirm\");\n    const onKeydown = withKeys((event) => {\n      var _a, _b;\n      if (event.target !== ((_b = (_a = root.value) == null ? void 0 : _a.popupRef) == null ? void 0 : _b.value)) {\n        return;\n      }\n      const onEventType = {\n        Enter: props.showConfirmButton ? onConfirm : noop,\n        Escape: props.showCancelButton ? onCancel : noop\n      };\n      onEventType[event.key]();\n      emit(\"keydown\", event);\n    }, [\"enter\", \"esc\"]);\n    const renderTitle = () => {\n      const title = slots.title ? slots.title() : props.title;\n      if (title) {\n        return _createVNode(\"div\", {\n          \"class\": bem(\"header\", {\n            isolated: !props.message && !slots.default\n          })\n        }, [title]);\n      }\n    };\n    const renderMessage = (hasTitle) => {\n      const {\n        message,\n        allowHtml,\n        messageAlign\n      } = props;\n      const classNames = bem(\"message\", {\n        \"has-title\": hasTitle,\n        [messageAlign]: messageAlign\n      });\n      const content = isFunction(message) ? message() : message;\n      if (allowHtml && typeof content === \"string\") {\n        return _createVNode(\"div\", {\n          \"class\": classNames,\n          \"innerHTML\": content\n        }, null);\n      }\n      return _createVNode(\"div\", {\n        \"class\": classNames\n      }, [content]);\n    };\n    const renderContent = () => {\n      if (slots.default) {\n        return _createVNode(\"div\", {\n          \"class\": bem(\"content\")\n        }, [slots.default()]);\n      }\n      const {\n        title,\n        message,\n        allowHtml\n      } = props;\n      if (message) {\n        const hasTitle = !!(title || slots.title);\n        return _createVNode(\"div\", {\n          \"key\": allowHtml ? 1 : 0,\n          \"class\": bem(\"content\", {\n            isolated: !hasTitle\n          })\n        }, [renderMessage(hasTitle)]);\n      }\n    };\n    const renderButtons = () => _createVNode(\"div\", {\n      \"class\": [BORDER_TOP, bem(\"footer\")]\n    }, [props.showCancelButton && _createVNode(Button, {\n      \"size\": \"large\",\n      \"text\": props.cancelButtonText || t(\"cancel\"),\n      \"class\": bem(\"cancel\"),\n      \"style\": {\n        color: props.cancelButtonColor\n      },\n      \"loading\": loading.cancel,\n      \"onClick\": onCancel\n    }, null), props.showConfirmButton && _createVNode(Button, {\n      \"size\": \"large\",\n      \"text\": props.confirmButtonText || t(\"confirm\"),\n      \"class\": [bem(\"confirm\"), {\n        [BORDER_LEFT]: props.showCancelButton\n      }],\n      \"style\": {\n        color: props.confirmButtonColor\n      },\n      \"loading\": loading.confirm,\n      \"onClick\": onConfirm\n    }, null)]);\n    const renderRoundButtons = () => _createVNode(ActionBar, {\n      \"class\": bem(\"footer\")\n    }, {\n      default: () => [props.showCancelButton && _createVNode(ActionBarButton, {\n        \"type\": \"warning\",\n        \"text\": props.cancelButtonText || t(\"cancel\"),\n        \"class\": bem(\"cancel\"),\n        \"color\": props.cancelButtonColor,\n        \"loading\": loading.cancel,\n        \"onClick\": onCancel\n      }, null), props.showConfirmButton && _createVNode(ActionBarButton, {\n        \"type\": \"danger\",\n        \"text\": props.confirmButtonText || t(\"confirm\"),\n        \"class\": bem(\"confirm\"),\n        \"color\": props.confirmButtonColor,\n        \"loading\": loading.confirm,\n        \"onClick\": onConfirm\n      }, null)]\n    });\n    const renderFooter = () => {\n      if (slots.footer) {\n        return slots.footer();\n      }\n      return props.theme === \"round-button\" ? renderRoundButtons() : renderButtons();\n    };\n    return () => {\n      const {\n        width,\n        title,\n        theme,\n        message,\n        className\n      } = props;\n      return _createVNode(Popup, _mergeProps({\n        \"ref\": root,\n        \"role\": \"dialog\",\n        \"class\": [bem([theme]), className],\n        \"style\": {\n          width: addUnit(width)\n        },\n        \"tabindex\": 0,\n        \"aria-labelledby\": title || message,\n        \"onKeydown\": onKeydown,\n        \"onUpdate:show\": updateShow\n      }, pick(props, popupInheritKeys)), {\n        default: () => [renderTitle(), renderContent(), renderFooter()]\n      });\n    };\n  }\n});\nexport {\n  stdin_default as default\n};\n","import { createVNode as _createVNode, mergeProps as _mergeProps } from \"vue\";\nimport { extend, inBrowser, withInstall } from \"../utils\";\nimport { mountComponent, usePopupState } from \"../utils/mount-component\";\nimport VanDialog from \"./Dialog\";\nlet instance;\nfunction initInstance() {\n  const Wrapper = {\n    setup() {\n      const {\n        state,\n        toggle\n      } = usePopupState();\n      return () => _createVNode(VanDialog, _mergeProps(state, {\n        \"onUpdate:show\": toggle\n      }), null);\n    }\n  };\n  ({\n    instance\n  } = mountComponent(Wrapper));\n}\nfunction Dialog(options) {\n  if (!inBrowser) {\n    return Promise.resolve();\n  }\n  return new Promise((resolve, reject) => {\n    if (!instance) {\n      initInstance();\n    }\n    instance.open(extend({}, Dialog.currentOptions, options, {\n      callback: (action) => {\n        (action === \"confirm\" ? resolve : reject)(action);\n      }\n    }));\n  });\n}\nDialog.defaultOptions = {\n  title: \"\",\n  width: \"\",\n  theme: null,\n  message: \"\",\n  overlay: true,\n  callback: null,\n  teleport: \"body\",\n  className: \"\",\n  allowHtml: false,\n  lockScroll: true,\n  transition: void 0,\n  beforeClose: null,\n  overlayClass: \"\",\n  overlayStyle: void 0,\n  messageAlign: \"\",\n  cancelButtonText: \"\",\n  cancelButtonColor: null,\n  confirmButtonText: \"\",\n  confirmButtonColor: null,\n  showConfirmButton: true,\n  showCancelButton: false,\n  closeOnPopstate: true,\n  closeOnClickOverlay: false\n};\nDialog.currentOptions = extend({}, Dialog.defaultOptions);\nDialog.alert = Dialog;\nDialog.confirm = (options) => Dialog(extend({\n  showCancelButton: true\n}, options));\nDialog.close = () => {\n  if (instance) {\n    instance.toggle(false);\n  }\n};\nDialog.setDefaultOptions = (options) => {\n  extend(Dialog.currentOptions, options);\n};\nDialog.resetDefaultOptions = () => {\n  Dialog.currentOptions = extend({}, Dialog.defaultOptions);\n};\nDialog.Component = withInstall(VanDialog);\nDialog.install = (app) => {\n  app.use(Dialog.Component);\n  app.config.globalProperties.$dialog = Dialog;\n};\nexport {\n  Dialog\n};\n","import { Dialog } from \"./function-call\";\nvar stdin_default = Dialog;\nexport {\n  Dialog,\n  stdin_default as default\n};\n","import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-42e376a5\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"set-main-space content-box\" }\nconst _hoisted_2 = [\"onClick\"]\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"tip\" }, \" 正在设置主空间,设置成功后,将关闭弹窗,并且进入空间页面 \", -1))\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n  const _component_van_cell = _resolveComponent(\"van-cell\")!\n  const _component_van_button = _resolveComponent(\"van-button\")!\n  const _component_van_swipe_cell = _resolveComponent(\"van-swipe-cell\")!\n  const _component_van_popup = _resolveComponent(\"van-popup\")!\n\n  return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n    (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.spaceData, (item, index) => {\n      return (_openBlock(), _createElementBlock(\"div\", {\n        class: \"space-item\",\n        onClick: ($event: any) => (_ctx.checkMainSpace(item)),\n        key: 'space' + index\n      }, [\n        _createVNode(_component_van_swipe_cell, null, {\n          right: _withCtx(() => [\n            _createVNode(_component_van_button, {\n              square: \"\",\n              type: \"danger\",\n              onClick: ($event: any) => (_ctx.delWorkSpace(item)),\n              text: \"删除\"\n            }, null, 8, [\"onClick\"])\n          ]),\n          default: _withCtx(() => [\n            _createVNode(_component_van_cell, {\n              border: false,\n              title: item.spaceName\n            }, null, 8, [\"title\"])\n          ]),\n          _: 2\n        }, 1024)\n      ], 8, _hoisted_2))\n    }), 128)),\n    _createVNode(_component_van_popup, {\n      show: _ctx.show,\n      \"onUpdate:show\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.show) = $event))\n    }, {\n      default: _withCtx(() => [\n        _hoisted_3\n      ]),\n      _: 1\n    }, 8, [\"show\"])\n  ]))\n}","import { createVNode as _createVNode } from \"vue\";\nimport { ref, reactive, computed, defineComponent } from \"vue\";\nimport { clamp, isDef, numericProp, preventDefault, callInterceptor, createNamespace, makeNumericProp } from \"../utils\";\nimport { useRect, useClickAway } from \"@vant/use\";\nimport { useTouch } from \"../composables/use-touch\";\nimport { useExpose } from \"../composables/use-expose\";\nconst [name, bem] = createNamespace(\"swipe-cell\");\nconst swipeCellProps = {\n  name: makeNumericProp(\"\"),\n  disabled: Boolean,\n  leftWidth: numericProp,\n  rightWidth: numericProp,\n  beforeClose: Function,\n  stopPropagation: Boolean\n};\nvar stdin_default = defineComponent({\n  name,\n  props: swipeCellProps,\n  emits: [\"open\", \"close\", \"click\"],\n  setup(props, {\n    emit,\n    slots\n  }) {\n    let opened;\n    let lockClick;\n    let startOffset;\n    const root = ref();\n    const leftRef = ref();\n    const rightRef = ref();\n    const state = reactive({\n      offset: 0,\n      dragging: false\n    });\n    const touch = useTouch();\n    const getWidthByRef = (ref2) => ref2.value ? useRect(ref2).width : 0;\n    const leftWidth = computed(() => isDef(props.leftWidth) ? +props.leftWidth : getWidthByRef(leftRef));\n    const rightWidth = computed(() => isDef(props.rightWidth) ? +props.rightWidth : getWidthByRef(rightRef));\n    const open = (side) => {\n      state.offset = side === \"left\" ? leftWidth.value : -rightWidth.value;\n      if (!opened) {\n        opened = true;\n        emit(\"open\", {\n          name: props.name,\n          position: side\n        });\n      }\n    };\n    const close = (position) => {\n      state.offset = 0;\n      if (opened) {\n        opened = false;\n        emit(\"close\", {\n          name: props.name,\n          position\n        });\n      }\n    };\n    const toggle = (side) => {\n      const offset = Math.abs(state.offset);\n      const THRESHOLD = 0.15;\n      const threshold = opened ? 1 - THRESHOLD : THRESHOLD;\n      const width = side === \"left\" ? leftWidth.value : rightWidth.value;\n      if (width && offset > width * threshold) {\n        open(side);\n      } else {\n        close(side);\n      }\n    };\n    const onTouchStart = (event) => {\n      if (!props.disabled) {\n        startOffset = state.offset;\n        touch.start(event);\n      }\n    };\n    const onTouchMove = (event) => {\n      if (props.disabled) {\n        return;\n      }\n      const {\n        deltaX\n      } = touch;\n      touch.move(event);\n      if (touch.isHorizontal()) {\n        lockClick = true;\n        state.dragging = true;\n        const isEdge = !opened || deltaX.value * startOffset < 0;\n        if (isEdge) {\n          preventDefault(event, props.stopPropagation);\n        }\n        state.offset = clamp(deltaX.value + startOffset, -rightWidth.value, leftWidth.value);\n      }\n    };\n    const onTouchEnd = () => {\n      if (state.dragging) {\n        state.dragging = false;\n        toggle(state.offset > 0 ? \"left\" : \"right\");\n        setTimeout(() => {\n          lockClick = false;\n        }, 0);\n      }\n    };\n    const onClick = (position = \"outside\") => {\n      emit(\"click\", position);\n      if (opened && !lockClick) {\n        callInterceptor(props.beforeClose, {\n          args: [{\n            name: props.name,\n            position\n          }],\n          done: () => close(position)\n        });\n      }\n    };\n    const getClickHandler = (position, stop) => (event) => {\n      if (stop) {\n        event.stopPropagation();\n      }\n      onClick(position);\n    };\n    const renderSideContent = (side, ref2) => {\n      const contentSlot = slots[side];\n      if (contentSlot) {\n        return _createVNode(\"div\", {\n          \"ref\": ref2,\n          \"class\": bem(side),\n          \"onClick\": getClickHandler(side, true)\n        }, [contentSlot()]);\n      }\n    };\n    useExpose({\n      open,\n      close\n    });\n    useClickAway(root, () => onClick(\"outside\"), {\n      eventName: \"touchstart\"\n    });\n    return () => {\n      var _a;\n      const wrapperStyle = {\n        transform: `translate3d(${state.offset}px, 0, 0)`,\n        transitionDuration: state.dragging ? \"0s\" : \".6s\"\n      };\n      return _createVNode(\"div\", {\n        \"ref\": root,\n        \"class\": bem(),\n        \"onClick\": getClickHandler(\"cell\"),\n        \"onTouchstart\": onTouchStart,\n        \"onTouchmove\": onTouchMove,\n        \"onTouchend\": onTouchEnd,\n        \"onTouchcancel\": onTouchEnd\n      }, [_createVNode(\"div\", {\n        \"class\": bem(\"wrapper\"),\n        \"style\": wrapperStyle\n      }, [renderSideContent(\"left\", leftRef), (_a = slots.default) == null ? void 0 : _a.call(slots), renderSideContent(\"right\", rightRef)])]);\n    };\n  }\n});\nexport {\n  stdin_default as default\n};\n","import { withInstall } from \"../utils\";\nimport _SwipeCell from \"./SwipeCell\";\nconst SwipeCell = withInstall(_SwipeCell);\nvar stdin_default = SwipeCell;\nexport {\n  SwipeCell,\n  stdin_default as default\n};\n","\nimport {\n  defineComponent,\n  nextTick,\n  onMounted,\n  reactive,\n  toRefs,\n  getCurrentInstance,\n} from \"vue\";\nimport { useRoute, useRouter, onBeforeRouteUpdate } from \"vue-router\";\nimport { SwipeCell, Cell, Popup, Button, Dialog, Loading } from \"vant\";\nimport { getUserInfo, parseImgUrl } from \"@/utils\";\nimport {\n  deleteWorkSpace,\n  queryWorkSpace,\n  saveWorkSpace,\n} from \"@/apis/envmonitor\";\n\nexport default defineComponent({\n  components: {\n    VanSwipeCell: SwipeCell,\n    VanCell: Cell,\n    // VanPopup: Popup,\n    VanButton: Button,\n    VanDialog: Dialog,\n  },\n  setup() {\n    const proxyGlobal: any = getCurrentInstance();\n    const userInfo: any = getUserInfo();\n    const spaceData: any = [];\n    const router: any = useRouter();\n    const proxyData = reactive({\n      show: false,\n      userInfo: userInfo,\n      loaging: false,\n      parseImgUrl: parseImgUrl,\n      // 格式化提交的数据\n      formateData(item: any) {\n        let params: any = {\n          workSpaceList: [],\n          majorSpaceId: \"\", //类型:String  必有字段  备注:主空间\n          macAddress: proxyData.userInfo.mac, //类型:String  必有字段  备注:平板地址\n        };\n        proxyData.spaceData.map((space: any) => {\n          if (item.spaceId === space.spaceId) {\n            params.majorSpaceId = space.spaceId;\n          }\n          params.workSpaceList.push(space.spaceId);\n        });\n        return params;\n      },\n      // 选择主空间\n      checkMainSpace(item: any) {\n        if (!proxyData.loaging) {\n          let params: any = proxyData.formateData(item);\n          proxyData.saveWorkSpace(params);\n        }\n      },\n      // 删除工作空间\n      delWorkSpace(item: any) {\n        let params: any = {\n          spaceId: item.spaceId,\n          macAddress: proxyData.userInfo.mac,\n        };\n        deleteWorkSpace(params).then(() => {\n          proxyData.queryWorkSpace()\n        });\n      },\n      // 保存空间\n      saveWorkSpace(params: any) {\n        proxyData.loaging = true;\n        proxyGlobal.proxy.$toast.loading({\n          forbidClick: true,\n          duration: 0, // 如果大于0则不必使用destory方法\n          message: \"正在设置主空间...\",\n        });\n        saveWorkSpace(params)\n          .then((res) => {\n            proxyData.closeLoading();\n            router.push({\n              name: \"envmonitor\",\n              query: { spaceId: params.majorSpaceId },\n            });\n          })\n          .catch(() => {\n            proxyData.closeLoading();\n          });\n      },\n      closeLoading() {\n        proxyGlobal.proxy.$toast.clear();\n        proxyData.loaging = false;\n      },\n      spaceData: spaceData,\n      queryWorkSpace() {\n        let params: any = {\n          criteria: {\n            projectId: proxyData.userInfo.projectId,\n            //类型:Object  必有字段  备注:无\n            macAddress: proxyData.userInfo.mac, //类型:String  必有字段  备注:mac地址\n          },\n        };\n        // debugger\n        queryWorkSpace(params).then((res) => {\n          let resData: any = res ? res : {};\n          // debugger;\n          if (resData.result === \"success\") {\n            proxyData.spaceData = resData?.content ?? [];\n          } else {\n            proxyData.spaceData = [];\n          }\n          // 默认都不是主空间\n          proxyData.spaceData.map((item: any) => {\n            item.isMajorSpace = 0;\n          });\n        });\n      },\n    });\n    onMounted(() => {\n      proxyData.queryWorkSpace();\n    });\n    return {\n      ...toRefs(proxyData),\n    };\n  },\n});\n","import { render } from \"./setMainSpace.vue?vue&type=template&id=42e376a5&scoped=true&ts=true\"\nimport script from \"./setMainSpace.vue?vue&type=script&lang=ts\"\nexport * from \"./setMainSpace.vue?vue&type=script&lang=ts\"\n\nimport \"./setMainSpace.vue?vue&type=style&index=0&id=42e376a5&lang=scss&scoped=true\"\nimport \"./setMainSpace.vue?vue&type=style&index=1&id=42e376a5&lang=scss\"\n\nimport exportComponent from \"/Users/wangyong/shanggeyun/code/sagacloud-sagacare-ipad/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-42e376a5\"]])\n\nexport default __exports__","import \"../../style/base.css\";\nimport \"../../badge/index.css\";\nimport \"../../icon/index.css\";\nimport \"../../loading/index.css\";\nimport \"../index.css\";\n","import { createVNode as _createVNode } from \"vue\";\nimport { defineComponent } from \"vue\";\nimport { isDef, extend, truthProp, unknownProp, numericProp, createNamespace } from \"../utils\";\nimport { useRoute, routeProps } from \"../composables/use-route\";\nimport { Icon } from \"../icon\";\nconst [name, bem] = createNamespace(\"cell\");\nconst cellSharedProps = {\n  icon: String,\n  size: String,\n  title: numericProp,\n  value: numericProp,\n  label: numericProp,\n  center: Boolean,\n  isLink: Boolean,\n  border: truthProp,\n  required: Boolean,\n  iconPrefix: String,\n  valueClass: unknownProp,\n  labelClass: unknownProp,\n  titleClass: unknownProp,\n  titleStyle: null,\n  arrowDirection: String,\n  clickable: {\n    type: Boolean,\n    default: null\n  }\n};\nconst cellProps = extend({}, cellSharedProps, routeProps);\nvar stdin_default = defineComponent({\n  name,\n  props: cellProps,\n  setup(props, {\n    slots\n  }) {\n    const route = useRoute();\n    const renderLabel = () => {\n      const showLabel = slots.label || isDef(props.label);\n      if (showLabel) {\n        return _createVNode(\"div\", {\n          \"class\": [bem(\"label\"), props.labelClass]\n        }, [slots.label ? slots.label() : props.label]);\n      }\n    };\n    const renderTitle = () => {\n      if (slots.title || isDef(props.title)) {\n        return _createVNode(\"div\", {\n          \"class\": [bem(\"title\"), props.titleClass],\n          \"style\": props.titleStyle\n        }, [slots.title ? slots.title() : _createVNode(\"span\", null, [props.title]), renderLabel()]);\n      }\n    };\n    const renderValue = () => {\n      const slot = slots.value || slots.default;\n      const hasValue = slot || isDef(props.value);\n      if (hasValue) {\n        const hasTitle = slots.title || isDef(props.title);\n        return _createVNode(\"div\", {\n          \"class\": [bem(\"value\", {\n            alone: !hasTitle\n          }), props.valueClass]\n        }, [slot ? slot() : _createVNode(\"span\", null, [props.value])]);\n      }\n    };\n    const renderLeftIcon = () => {\n      if (slots.icon) {\n        return slots.icon();\n      }\n      if (props.icon) {\n        return _createVNode(Icon, {\n          \"name\": props.icon,\n          \"class\": bem(\"left-icon\"),\n          \"classPrefix\": props.iconPrefix\n        }, null);\n      }\n    };\n    const renderRightIcon = () => {\n      if (slots[\"right-icon\"]) {\n        return slots[\"right-icon\"]();\n      }\n      if (props.isLink) {\n        const name2 = props.arrowDirection ? `arrow-${props.arrowDirection}` : \"arrow\";\n        return _createVNode(Icon, {\n          \"name\": name2,\n          \"class\": bem(\"right-icon\")\n        }, null);\n      }\n    };\n    return () => {\n      var _a, _b;\n      const {\n        size,\n        center,\n        border,\n        isLink,\n        required\n      } = props;\n      const clickable = (_a = props.clickable) != null ? _a : isLink;\n      const classes = {\n        center,\n        required,\n        clickable,\n        borderless: !border\n      };\n      if (size) {\n        classes[size] = !!size;\n      }\n      return _createVNode(\"div\", {\n        \"class\": bem(classes),\n        \"role\": clickable ? \"button\" : void 0,\n        \"tabindex\": clickable ? 0 : void 0,\n        \"onClick\": route\n      }, [renderLeftIcon(), renderTitle(), renderValue(), renderRightIcon(), (_b = slots.extra) == null ? void 0 : _b.call(slots)]);\n    };\n  }\n});\nexport {\n  cellSharedProps,\n  stdin_default as default\n};\n","import { withInstall } from \"../utils\";\nimport _Cell from \"./Cell\";\nconst Cell = withInstall(_Cell);\nvar stdin_default = Cell;\nexport {\n  Cell,\n  stdin_default as default\n};\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./setMainSpace.vue?vue&type=style&index=1&id=42e376a5&lang=scss\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"menuBg\":\"#fff\",\"menuText\":\"#162b64\",\"menuActiveText\":\"#435ebe\"};","import { createVNode as _createVNode } from \"vue\";\nimport { defineComponent } from \"vue\";\nimport { extend, numericProp, preventDefault, makeStringProp, createNamespace, BORDER_SURROUND } from \"../utils\";\nimport { useRoute, routeProps } from \"../composables/use-route\";\nimport { Icon } from \"../icon\";\nimport { Loading } from \"../loading\";\nconst [name, bem] = createNamespace(\"button\");\nconst buttonProps = extend({}, routeProps, {\n  tag: makeStringProp(\"button\"),\n  text: String,\n  icon: String,\n  type: makeStringProp(\"default\"),\n  size: makeStringProp(\"normal\"),\n  color: String,\n  block: Boolean,\n  plain: Boolean,\n  round: Boolean,\n  square: Boolean,\n  loading: Boolean,\n  hairline: Boolean,\n  disabled: Boolean,\n  iconPrefix: String,\n  nativeType: makeStringProp(\"button\"),\n  loadingSize: numericProp,\n  loadingText: String,\n  loadingType: String,\n  iconPosition: makeStringProp(\"left\")\n});\nvar stdin_default = defineComponent({\n  name,\n  props: buttonProps,\n  emits: [\"click\"],\n  setup(props, {\n    emit,\n    slots\n  }) {\n    const route = useRoute();\n    const renderLoadingIcon = () => {\n      if (slots.loading) {\n        return slots.loading();\n      }\n      return _createVNode(Loading, {\n        \"size\": props.loadingSize,\n        \"type\": props.loadingType,\n        \"class\": bem(\"loading\")\n      }, null);\n    };\n    const renderIcon = () => {\n      if (props.loading) {\n        return renderLoadingIcon();\n      }\n      if (slots.icon) {\n        return _createVNode(\"div\", {\n          \"class\": bem(\"icon\")\n        }, [slots.icon()]);\n      }\n      if (props.icon) {\n        return _createVNode(Icon, {\n          \"name\": props.icon,\n          \"class\": bem(\"icon\"),\n          \"classPrefix\": props.iconPrefix\n        }, null);\n      }\n    };\n    const renderText = () => {\n      let text;\n      if (props.loading) {\n        text = props.loadingText;\n      } else {\n        text = slots.default ? slots.default() : props.text;\n      }\n      if (text) {\n        return _createVNode(\"span\", {\n          \"class\": bem(\"text\")\n        }, [text]);\n      }\n    };\n    const getStyle = () => {\n      const {\n        color,\n        plain\n      } = props;\n      if (color) {\n        const style = {\n          color: plain ? color : \"white\"\n        };\n        if (!plain) {\n          style.background = color;\n        }\n        if (color.includes(\"gradient\")) {\n          style.border = 0;\n        } else {\n          style.borderColor = color;\n        }\n        return style;\n      }\n    };\n    const onClick = (event) => {\n      if (props.loading) {\n        preventDefault(event);\n      } else if (!props.disabled) {\n        emit(\"click\", event);\n        route();\n      }\n    };\n    return () => {\n      const {\n        tag,\n        type,\n        size,\n        block,\n        round,\n        plain,\n        square,\n        loading,\n        disabled,\n        hairline,\n        nativeType,\n        iconPosition\n      } = props;\n      const classes = [bem([type, size, {\n        plain,\n        block,\n        round,\n        square,\n        loading,\n        disabled,\n        hairline\n      }]), {\n        [BORDER_SURROUND]: hairline\n      }];\n      return _createVNode(tag, {\n        \"type\": nativeType,\n        \"class\": classes,\n        \"style\": getStyle(),\n        \"disabled\": disabled,\n        \"onClick\": onClick\n      }, {\n        default: () => [_createVNode(\"div\", {\n          \"class\": bem(\"content\")\n        }, [iconPosition === \"left\" && renderIcon(), renderText(), iconPosition === \"right\" && renderIcon()])]\n      });\n    };\n  }\n});\nexport {\n  stdin_default as default\n};\n","import { withInstall } from \"../utils\";\nimport _Button from \"./Button\";\nconst Button = withInstall(_Button);\nvar stdin_default = Button;\nexport {\n  Button,\n  stdin_default as default\n};\n","import \"../../style/base.css\";\nimport \"../../action-bar/index.css\";\nimport \"../../badge/index.css\";\nimport \"../../icon/index.css\";\nimport \"../../loading/index.css\";\nimport \"../../button/index.css\";\nimport \"../../action-bar-button/index.css\";\nimport \"../../overlay/index.css\";\nimport \"../../popup/index.css\";\nimport \"../index.css\";\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/style-resources-loader/lib/index.js??ref--8-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./setMainSpace.vue?vue&type=style&index=0&id=42e376a5&lang=scss&scoped=true\""],"sourceRoot":""}