"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[2437],{72437:(t,s,e)=>{e.r(s),e.d(s,{StatusEnum:()=>a,TabTypeEnum:()=>o,useAiRemoveBgStore:()=>r});var n=e(84522),i=e(10435);let a,o;!function(t){t.PRELOAD="preLoad",t.LOADMODEL="loadModel",t.SUCCESSMODEL="successModel",t.FAILMODEL="failModel",t.TRANSFORM="transform",t.SUCCESS="success",t.FAIL="fail"}(a||(a={})),function(t){t[t.IMAGE=0]="IMAGE",t[t.COLOR=1]="COLOR",t[t.BG=2]="BG"}(o||(o={}));const r=(0,i.Q_)(n.BU.aiRemoveBg,{syncStorage:{watch:[]},state:()=>({modalShow:!1,status:a.PRELOAD,container:null,frontEnd:null,backEnd:null,content:null,downloadLoading:!1,tabType:o.IMAGE,showBgSetting:!1,showOriginImage:!1,frontEndFussy:0,backEndFussy:0,currentBg:"clear",originImageUrl:"",currentScale:1,theme:"light"}),getters:{},actions:{setModal(t){this.modalShow=t},setStatus(t){this.status=t},setDownLoadLoading(t){this.downloadLoading=t},setTabType(t){this.tabType=t},setShowBgSetting(t){this.showBgSetting=t},setFrontEndFussy(t){this.frontEndFussy=t},setBackEndFussy(t){this.backEndFussy=t},setCurrentBg(t){this.showOriginImage&&(this.showOriginImage=!1),"clear"===t&&(this.backEndFussy=0),this.currentBg=t},setShowOriginImage(t){this.showOriginImage=t},setOriginImageUrl(t){this.originImageUrl=t},setCurentScale(t){this.currentScale=t},setTheme(t){this.theme=t}}})}}]);