1 line
58 KiB
JavaScript
1 line
58 KiB
JavaScript
"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[736],{4924:function(e,t,i){i.d(t,{Z:function(){return c}});var o=i(6252),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},s=n,r=i(2130);function a(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?Object(arguments[t]):{},o=Object.keys(i);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable})))),o.forEach((function(t){l(e,t,i[t])}))}return e}function l(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var d=function(e,t){var i=a({},e,t.attrs);return(0,o.Wm)(r.Z,a({},i,{icon:s}),null)};d.displayName="UserOutlined",d.inheritAttrs=!1;var c=d},4272:function(e,t,i){i.d(t,{RX:function(){return ie},_y:function(){return oe}});var o=i(6252);let n={};function s(e={}){n={animate:!0,allowClose:!0,overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...e}}function r(e){return e?n[e]:n}function a(e,t,i,o){return(e/=o/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t}function l(e){const t='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return e.flatMap((e=>{const i=e.matches(t),o=Array.from(e.querySelectorAll(t));return[...i?[e]:[],...o]})).filter((e=>"none"!==getComputedStyle(e).pointerEvents&&m(e)))}function d(e){if(!e||p(e))return;const t=r("smoothScroll");e.scrollIntoView({behavior:!t||c(e)?"auto":"smooth",inline:"center",block:"center"})}function c(e){if(!e||!e.parentElement)return;const t=e.parentElement;return t.scrollHeight>t.clientHeight}function p(e){const t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function m(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}let u={};function h(e,t){u[e]=t}function v(e){return e?u[e]:u}function w(){u={}}let _={};function g(e,t){_[e]=t}function y(e){var t;null==(t=_[e])||t.call(_)}function k(){_={}}function f(e,t,i,o){let n=v("__activeStagePosition");const s=n||i.getBoundingClientRect(),r=o.getBoundingClientRect(),l=a(e,s.x,r.x-s.x,t),d=a(e,s.y,r.y-s.y,t),c=a(e,s.width,r.width-s.width,t),p=a(e,s.height,r.height-s.height,t);n={x:l,y:d,width:c,height:p},I(n),h("__activeStagePosition",n)}function b(e){if(!e)return;const t=e.getBoundingClientRect(),i={x:t.x,y:t.y,width:t.width,height:t.height};h("__activeStagePosition",i),I(i)}function x(){const e=v("__activeStagePosition"),t=v("__overlaySvg");if(!e)return;if(!t)return void console.warn("No stage svg found.");const i=window.innerWidth,o=window.innerHeight;t.setAttribute("viewBox",`0 0 ${i} ${o}`)}function C(e){const t=T(e);document.body.appendChild(t),M(t,(e=>{"path"===e.target.tagName&&y("overlayClick")})),h("__overlaySvg",t)}function I(e){const t=v("__overlaySvg");if(!t)return void C(e);const i=t.firstElementChild;if("path"!==(null==i?void 0:i.tagName))throw new Error("no path element found in stage svg");i.setAttribute("d",S(e))}function T(e){const t=window.innerWidth,i=window.innerHeight,o=document.createElementNS("http://www.w3.org/2000/svg","svg");o.classList.add("driver-overlay","driver-overlay-animated"),o.setAttribute("viewBox",`0 0 ${t} ${i}`),o.setAttribute("xmlSpace","preserve"),o.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),o.setAttribute("version","1.1"),o.setAttribute("preserveAspectRatio","xMinYMin slice"),o.style.fillRule="evenodd",o.style.clipRule="evenodd",o.style.strokeLinejoin="round",o.style.strokeMiterlimit="2",o.style.zIndex="10000",o.style.position="fixed",o.style.top="0",o.style.left="0",o.style.width="100%",o.style.height="100%";const n=document.createElementNS("http://www.w3.org/2000/svg","path");return n.setAttribute("d",S(e)),n.style.fill=r("overlayColor")||"rgb(0,0,0)",n.style.opacity=`${r("overlayOpacity")}`,n.style.pointerEvents="auto",n.style.cursor="auto",o.appendChild(n),o}function S(e){const t=window.innerWidth,i=window.innerHeight,o=r("stagePadding")||0,n=r("stageRadius")||0,s=e.width+2*o,a=e.height+2*o,l=Math.min(n,s/2,a/2),d=Math.floor(Math.max(l,0)),c=e.x-o+d,p=e.y-o,m=s-2*d,u=a-2*d;return`M${t},0L0,0L0,${i}L${t},${i}L${t},0Z\n M${c},${p} h${m} a${d},${d} 0 0 1 ${d},${d} v${u} a${d},${d} 0 0 1 -${d},${d} h-${m} a${d},${d} 0 0 1 -${d},-${d} v-${u} a${d},${d} 0 0 1 ${d},-${d} z`}function L(){const e=v("__overlaySvg");e&&e.remove()}function E(){const e=document.getElementById("driver-dummy-element");if(e)return e;let t=document.createElement("div");return t.id="driver-dummy-element",t.style.width="0",t.style.height="0",t.style.pointerEvents="none",t.style.opacity="0",t.style.position="fixed",t.style.top="50%",t.style.left="50%",document.body.appendChild(t),t}function D(e){const{element:t}=e;let i="string"==typeof t?document.querySelector(t):t;i||(i=E()),N(i,e)}function H(){const e=v("__activeElement"),t=v("__activeStep");e&&(b(e),x(),V(e,t))}function N(e,t){const i=Date.now(),o=v("__activeStep"),n=v("__activeElement")||e,s=!n||n===e,a="driver-dummy-element"===e.id,l="driver-dummy-element"===n.id,c=r("animate"),p=t.onHighlightStarted||r("onHighlightStarted"),m=(null==t?void 0:t.onHighlighted)||r("onHighlighted"),u=(null==o?void 0:o.onDeselected)||r("onDeselected"),w=r(),_=v();!s&&u&&u(l?void 0:n,o,{config:w,state:_}),p&&p(a?void 0:e,t,{config:w,state:_});const g=!s&&c;let y=!1;U(),h("previousStep",o),h("previousElement",n),h("activeStep",t),h("activeElement",e);const k=()=>{if(v("__transitionCallback")!==k)return;const s=Date.now()-i,l=400-s<=200;t.popover&&l&&!y&&g&&(A(e,t),y=!0),r("animate")&&s<400?f(s,400,n,e):(b(e),m&&m(a?void 0:e,t,{config:r(),state:v()}),h("__transitionCallback",void 0),h("__previousStep",o),h("__previousElement",n),h("__activeStep",t),h("__activeElement",e)),window.requestAnimationFrame(k)};h("__transitionCallback",k),window.requestAnimationFrame(k),d(e),!g&&t.popover&&A(e,t),n.classList.remove("driver-active-element","driver-no-interaction"),n.removeAttribute("aria-haspopup"),n.removeAttribute("aria-expanded"),n.removeAttribute("aria-controls"),r("disableActiveInteraction")&&e.classList.add("driver-no-interaction"),e.classList.add("driver-active-element"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded","true"),e.setAttribute("aria-controls","driver-popover-content")}function P(){var e;null==(e=document.getElementById("driver-dummy-element"))||e.remove(),document.querySelectorAll(".driver-active-element").forEach((e=>{e.classList.remove("driver-active-element","driver-no-interaction"),e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded"),e.removeAttribute("aria-controls")}))}function $(){const e=v("__resizeTimeout");e&&window.cancelAnimationFrame(e),h("__resizeTimeout",window.requestAnimationFrame(H))}function B(e){var t;if(!v("isInitialized")||"Tab"!==e.key&&9!==e.keyCode)return;const i=v("__activeElement"),o=null==(t=v("popover"))?void 0:t.wrapper,n=l([...o?[o]:[],...i?[i]:[]]),s=n[0],r=n[n.length-1];if(e.preventDefault(),e.shiftKey){const e=n[n.indexOf(document.activeElement)-1]||r;null==e||e.focus()}else{const e=n[n.indexOf(document.activeElement)+1]||s;null==e||e.focus()}}function W(e){var t;(null==(t=r("allowKeyboardControl"))||t)&&("Escape"===e.key?y("escapePress"):"ArrowRight"===e.key?y("arrowRightPress"):"ArrowLeft"===e.key&&y("arrowLeftPress"))}function M(e,t,i){const o=(t,o)=>{const n=t.target;e.contains(n)&&((!i||i(n))&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()),null==o||o(t))};document.addEventListener("pointerdown",o,!0),document.addEventListener("mousedown",o,!0),document.addEventListener("pointerup",o,!0),document.addEventListener("mouseup",o,!0),document.addEventListener("click",(e=>{o(e,t)}),!0)}function O(){window.addEventListener("keyup",W,!1),window.addEventListener("keydown",B,!1),window.addEventListener("resize",$),window.addEventListener("scroll",$)}function G(){window.removeEventListener("keyup",W),window.removeEventListener("resize",$),window.removeEventListener("scroll",$)}function U(){const e=v("popover");e&&(e.wrapper.style.display="none")}function A(e,t){var i,o;let n=v("popover");n&&document.body.removeChild(n.wrapper),n=Z(),document.body.appendChild(n.wrapper);const{title:s,description:a,showButtons:c,disableButtons:p,showProgress:m,nextBtnText:u=r("nextBtnText")||"Next →",prevBtnText:w=r("prevBtnText")||"← Previous",progressText:_=r("progressText")||"{current} of {total}"}=t.popover||{};n.nextButton.innerHTML=u,n.previousButton.innerHTML=w,n.progress.innerHTML=_,s?(n.title.innerHTML=s,n.title.style.display="block"):n.title.style.display="none",a?(n.description.innerHTML=a,n.description.style.display="block"):n.description.style.display="none";const g=c||r("showButtons"),k=m||r("showProgress")||!1,f=(null==g?void 0:g.includes("next"))||(null==g?void 0:g.includes("previous"))||k;n.closeButton.style.display=g.includes("close")?"block":"none",f?(n.footer.style.display="flex",n.progress.style.display=k?"block":"none",n.nextButton.style.display=g.includes("next")?"block":"none",n.previousButton.style.display=g.includes("previous")?"block":"none"):n.footer.style.display="none";const b=p||r("disableButtons")||[];null!=b&&b.includes("next")&&(n.nextButton.disabled=!0,n.nextButton.classList.add("driver-popover-btn-disabled")),null!=b&&b.includes("previous")&&(n.previousButton.disabled=!0,n.previousButton.classList.add("driver-popover-btn-disabled")),null!=b&&b.includes("close")&&(n.closeButton.disabled=!0,n.closeButton.classList.add("driver-popover-btn-disabled"));const x=n.wrapper;x.style.display="block",x.style.left="",x.style.top="",x.style.bottom="",x.style.right="",x.id="driver-popover-content",x.setAttribute("role","dialog"),x.setAttribute("aria-labelledby","driver-popover-title"),x.setAttribute("aria-describedby","driver-popover-description");const C=n.arrow;C.className="driver-popover-arrow";const I=(null==(i=t.popover)?void 0:i.popoverClass)||r("popoverClass")||"";x.className=`driver-popover ${I}`.trim(),M(n.wrapper,(i=>{var o,n,s;const a=i.target,l=(null==(o=t.popover)?void 0:o.onNextClick)||r("onNextClick"),d=(null==(n=t.popover)?void 0:n.onPrevClick)||r("onPrevClick"),c=(null==(s=t.popover)?void 0:s.onCloseClick)||r("onCloseClick");return a.classList.contains("driver-popover-next-btn")?l?l(e,t,{config:r(),state:v()}):y("nextClick"):a.classList.contains("driver-popover-prev-btn")?d?d(e,t,{config:r(),state:v()}):y("prevClick"):a.classList.contains("driver-popover-close-btn")?c?c(e,t,{config:r(),state:v()}):y("closeClick"):void 0}),(e=>!(null!=n&&n.description.contains(e))&&!(null!=n&&n.title.contains(e))&&"string"==typeof e.className&&e.className.includes("driver-popover"))),h("popover",n);const T=(null==(o=t.popover)?void 0:o.onPopoverRender)||r("onPopoverRender");T&&T(n,{config:r(),state:v()}),V(e,t),d(x);const S=e.classList.contains("driver-dummy-element"),L=l([x,...S?[]:[e]]);L.length>0&&L[0].focus()}function q(){const e=v("popover");if(null==e||!e.wrapper)return;const t=e.wrapper.getBoundingClientRect(),i=r("stagePadding")||0,o=r("popoverOffset")||0;return{width:t.width+i+o,height:t.height+i+o,realWidth:t.width,realHeight:t.height}}function z(e,t){const{elementDimensions:i,popoverDimensions:o,popoverPadding:n,popoverArrowDimensions:s}=t;return"start"===e?Math.max(Math.min(i.top-n,window.innerHeight-o.realHeight-s.width),s.width):"end"===e?Math.max(Math.min(i.top-(null==o?void 0:o.realHeight)+i.height+n,window.innerHeight-(null==o?void 0:o.realHeight)-s.width),s.width):"center"===e?Math.max(Math.min(i.top+i.height/2-(null==o?void 0:o.realHeight)/2,window.innerHeight-(null==o?void 0:o.realHeight)-s.width),s.width):0}function R(e,t){const{elementDimensions:i,popoverDimensions:o,popoverPadding:n,popoverArrowDimensions:s}=t;return"start"===e?Math.max(Math.min(i.left-n,window.innerWidth-o.realWidth-s.width),s.width):"end"===e?Math.max(Math.min(i.left-(null==o?void 0:o.realWidth)+i.width+n,window.innerWidth-(null==o?void 0:o.realWidth)-s.width),s.width):"center"===e?Math.max(Math.min(i.left+i.width/2-(null==o?void 0:o.realWidth)/2,window.innerWidth-(null==o?void 0:o.realWidth)-s.width),s.width):0}function V(e,t){const i=v("popover");if(!i)return;const{align:o="start",side:n="left"}=(null==t?void 0:t.popover)||{},s=o,a="driver-dummy-element"===e.id?"over":n,l=r("stagePadding")||0,d=q(),c=i.arrow.getBoundingClientRect(),p=e.getBoundingClientRect(),m=p.top-d.height;let u=m>=0;const h=window.innerHeight-(p.bottom+d.height);let w=h>=0;const _=p.left-d.width;let g=_>=0;const y=window.innerWidth-(p.right+d.width);let k=y>=0;const f=!u&&!w&&!g&&!k;let b=a;if("top"===a&&u?k=g=w=!1:"bottom"===a&&w?k=g=u=!1:"left"===a&&g?k=u=w=!1:"right"===a&&k&&(g=u=w=!1),"over"===a){const e=window.innerWidth/2-d.realWidth/2,t=window.innerHeight/2-d.realHeight/2;i.wrapper.style.left=`${e}px`,i.wrapper.style.right="auto",i.wrapper.style.top=`${t}px`,i.wrapper.style.bottom="auto"}else if(f){const e=window.innerWidth/2-(null==d?void 0:d.realWidth)/2,t=10;i.wrapper.style.left=`${e}px`,i.wrapper.style.right="auto",i.wrapper.style.bottom=`${t}px`,i.wrapper.style.top="auto"}else if(g){const e=Math.min(_,window.innerWidth-(null==d?void 0:d.realWidth)-c.width),t=z(s,{elementDimensions:p,popoverDimensions:d,popoverPadding:l,popoverArrowDimensions:c});i.wrapper.style.left=`${e}px`,i.wrapper.style.top=`${t}px`,i.wrapper.style.bottom="auto",i.wrapper.style.right="auto",b="left"}else if(k){const e=Math.min(y,window.innerWidth-(null==d?void 0:d.realWidth)-c.width),t=z(s,{elementDimensions:p,popoverDimensions:d,popoverPadding:l,popoverArrowDimensions:c});i.wrapper.style.right=`${e}px`,i.wrapper.style.top=`${t}px`,i.wrapper.style.bottom="auto",i.wrapper.style.left="auto",b="right"}else if(u){const e=Math.min(m,window.innerHeight-d.realHeight-c.width);let t=R(s,{elementDimensions:p,popoverDimensions:d,popoverPadding:l,popoverArrowDimensions:c});i.wrapper.style.top=`${e}px`,i.wrapper.style.left=`${t}px`,i.wrapper.style.bottom="auto",i.wrapper.style.right="auto",b="top"}else if(w){const e=Math.min(h,window.innerHeight-(null==d?void 0:d.realHeight)-c.width);let t=R(s,{elementDimensions:p,popoverDimensions:d,popoverPadding:l,popoverArrowDimensions:c});i.wrapper.style.left=`${t}px`,i.wrapper.style.bottom=`${e}px`,i.wrapper.style.top="auto",i.wrapper.style.right="auto",b="bottom"}f?i.arrow.classList.add("driver-popover-arrow-none"):F(s,b,e)}function F(e,t,i){const o=v("popover");if(!o)return;const n=i.getBoundingClientRect(),s=q(),r=o.arrow,a=s.width,l=window.innerWidth,d=n.width,c=n.left,p=s.height,m=window.innerHeight,u=n.top,h=n.height;r.className="driver-popover-arrow";let w=t,_=e;"top"===t?(c+d<=0?(w="right",_="end"):c+d-a<=0&&(w="top",_="start"),c>=l?(w="left",_="end"):c+a>=l&&(w="top",_="end")):"bottom"===t?(c+d<=0?(w="right",_="start"):c+d-a<=0&&(w="bottom",_="start"),c>=l?(w="left",_="start"):c+a>=l&&(w="bottom",_="end")):"left"===t?(u+h<=0?(w="bottom",_="end"):u+h-p<=0&&(w="left",_="start"),u>=m?(w="top",_="end"):u+p>=m&&(w="left",_="end")):"right"===t&&(u+h<=0?(w="bottom",_="start"):u+h-p<=0&&(w="right",_="start"),u>=m?(w="top",_="start"):u+p>=m&&(w="right",_="end")),w?(r.classList.add(`driver-popover-arrow-side-${w}`),r.classList.add(`driver-popover-arrow-align-${_}`)):r.classList.add("driver-popover-arrow-none")}function Z(){const e=document.createElement("div");e.classList.add("driver-popover");const t=document.createElement("div");t.classList.add("driver-popover-arrow");const i=document.createElement("header");i.id="driver-popover-title",i.classList.add("driver-popover-title"),i.style.display="none",i.innerText="Popover Title";const o=document.createElement("div");o.id="driver-popover-description",o.classList.add("driver-popover-description"),o.style.display="none",o.innerText="Popover description is here";const n=document.createElement("button");n.type="button",n.classList.add("driver-popover-close-btn"),n.setAttribute("aria-label","Close"),n.innerHTML="×";const s=document.createElement("footer");s.classList.add("driver-popover-footer");const r=document.createElement("span");r.classList.add("driver-popover-progress-text"),r.innerText="";const a=document.createElement("span");a.classList.add("driver-popover-navigation-btns");const l=document.createElement("button");l.type="button",l.classList.add("driver-popover-prev-btn"),l.innerHTML="← Previous";const d=document.createElement("button");return d.type="button",d.classList.add("driver-popover-next-btn"),d.innerHTML="Next →",a.appendChild(l),a.appendChild(d),s.appendChild(r),s.appendChild(a),e.appendChild(n),e.appendChild(t),e.appendChild(i),e.appendChild(o),e.appendChild(s),{wrapper:e,arrow:t,title:i,description:o,footer:s,previousButton:l,nextButton:d,closeButton:n,footerButtons:a,progress:r}}function j(){var e;const t=v("popover");t&&(null==(e=t.wrapper.parentElement)||e.removeChild(t.wrapper))}function Y(e={}){function t(){r("allowClose")&&p()}function i(){const e=v("activeIndex"),t=r("steps")||[];if("undefined"==typeof e)return;const i=e+1;t[i]?c(i):p()}function o(){const e=v("activeIndex"),t=r("steps")||[];if("undefined"==typeof e)return;const i=e-1;t[i]?c(i):p()}function n(e){(r("steps")||[])[e]?c(e):p()}function a(){var e;if(v("__transitionCallback"))return;const t=v("activeIndex"),i=v("__activeStep"),n=v("__activeElement");if("undefined"==typeof t||"undefined"==typeof i||"undefined"==typeof v("activeIndex"))return;const s=(null==(e=i.popover)?void 0:e.onPrevClick)||r("onPrevClick");if(s)return s(n,i,{config:r(),state:v()});o()}function l(){var e;if(v("__transitionCallback"))return;const t=v("activeIndex"),o=v("__activeStep"),n=v("__activeElement");if("undefined"==typeof t||"undefined"==typeof o)return;const s=(null==(e=o.popover)?void 0:e.onNextClick)||r("onNextClick");if(s)return s(n,o,{config:r(),state:v()});i()}function d(){v("isInitialized")||(h("isInitialized",!0),document.body.classList.add("driver-active",r("animate")?"driver-fade":"driver-simple"),O(),g("overlayClick",t),g("escapePress",t),g("arrowLeftPress",a),g("arrowRightPress",l))}function c(e=0){var t,i,o,n,s,a,l,d;const m=r("steps");if(!m)return console.error("No steps to drive through"),void p();if(!m[e])return void p();h("__activeOnDestroyed",document.activeElement),h("activeIndex",e);const u=m[e],v=m[e+1],w=m[e-1],_=(null==(t=u.popover)?void 0:t.doneBtnText)||r("doneBtnText")||"Done",g=r("allowClose"),y="undefined"!=typeof(null==(i=u.popover)?void 0:i.showProgress)?null==(o=u.popover)?void 0:o.showProgress:r("showProgress"),k=((null==(n=u.popover)?void 0:n.progressText)||r("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${e+1}`).replace("{{total}}",`${m.length}`),f=(null==(s=u.popover)?void 0:s.showButtons)||r("showButtons"),b=["next","previous",...g?["close"]:[]].filter((e=>!(null!=f&&f.length)||f.includes(e))),x=(null==(a=u.popover)?void 0:a.onNextClick)||r("onNextClick"),C=(null==(l=u.popover)?void 0:l.onPrevClick)||r("onPrevClick"),I=(null==(d=u.popover)?void 0:d.onCloseClick)||r("onCloseClick");D({...u,popover:{showButtons:b,nextBtnText:v?void 0:_,disableButtons:[...w?[]:["previous"]],showProgress:y,progressText:k,onNextClick:x||(()=>{v?c(e+1):p()}),onPrevClick:C||(()=>{c(e-1)}),onCloseClick:I||(()=>{p()}),...(null==u?void 0:u.popover)||{}}})}function p(e=!0){const t=v("__activeElement"),i=v("__activeStep"),o=v("__activeOnDestroyed"),n=r("onDestroyStarted");if(e&&n){const e=!t||"driver-dummy-element"===(null==t?void 0:t.id);return void n(e?void 0:t,i,{config:r(),state:v()})}const s=(null==i?void 0:i.onDeselected)||r("onDeselected"),a=r("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),G(),j(),P(),L(),k(),w(),t&&i){const e="driver-dummy-element"===t.id;s&&s(e?void 0:t,i,{config:r(),state:v()}),a&&a(e?void 0:t,i,{config:r(),state:v()})}o&&o.focus()}return s(e),{isActive:()=>v("isInitialized")||!1,refresh:$,drive:(e=0)=>{d(),c(e)},setConfig:s,setSteps:e=>{w(),s({...r(),steps:e})},getConfig:r,getState:v,getActiveIndex:()=>v("activeIndex"),isFirstStep:()=>0===v("activeIndex"),isLastStep:()=>{const e=r("steps")||[],t=v("activeIndex");return void 0!==t&&t===e.length-1},getActiveStep:()=>v("activeStep"),getActiveElement:()=>v("activeElement"),getPreviousElement:()=>v("previousElement"),getPreviousStep:()=>v("previousStep"),moveNext:i,movePrevious:o,moveTo:n,hasNextStep:()=>{const e=r("steps")||[],t=v("activeIndex");return void 0!==t&&e[t+1]},hasPreviousStep:()=>{const e=r("steps")||[],t=v("activeIndex");return void 0!==t&&e[t-1]},highlight:e=>{d(),D({...e,popover:e.popover?{showButtons:[],showProgress:!1,progressText:"",...e.popover}:void 0})},destroy:()=>{p(!1)}}}var K=i(2339),J=i(3907);let X,Q,ee=0,te={index:ee,driver:!0};const ie=Y({steps:[{element:".Guide_1_1_1",popover:{title:"Title",description:"Description"}},{element:".Guide_1_27",popover:{title:"",description:"You can change the mannequin and other settings in Workspace."}},{element:".Guide_1_28",popover:{title:"",description:"Change the mannequin here.",side:"right",align:"center"}},{element:".Guide_1_28",popover:{title:"",description:"Change the mannequin here.",side:"right",align:"end"}},{element:".Guide_1_29",popover:{title:"",description:"Select a mannequin of your choice from our system library."}},{element:".Guide_1_1",popover:{title:"",description:"Begin your creative journey here. "}},{element:".Guide_1_1_2",popover:{title:"",description:"Begin your creative journey here. "}},{element:".Guide_1_1_2",popover:{title:"",description:"Begin your creative journey here. "}},{element:".Guide_1_4",popover:{title:"",description:"Click here to try the latest image generation technology to create your mood board."}},{element:".Guide_1_5",popover:{title:"",description:"Enter keywords that capture the mood you wish to express and then click the 'Generate' button."}},{element:".Guide_1_6",popover:{title:"",description:"Select three images for your moodboard."}},{element:".Guide_1_7",popover:{title:"",description:"Click here to layout your moodboard."}},{element:".Guide_1_8",popover:{title:"",description:"Click here for next step."}},{element:".Guide_1_2_1",popover:{title:"",description:"Upload two print images here"}},{element:".Guide_1_2_2",popover:{title:"",description:"Crop the uploaded image here."}},{element:".Guide_1_2_2",popover:{title:"",description:"Crop the uploaded image here."}},{element:".Guide_1_2_3",popover:{title:"",description:"Crop the uploaded image here."}},{element:".Guide_1_2_4",popover:{title:"",description:"Crop the uploaded image here."}},{element:".Guide_1_2_5",popover:{title:"",description:"Crop the uploaded image here."}},{element:".Guide_1_2_6",popover:{title:"",description:"Crop the uploaded image here."}},{element:".Guide_1_2_7",popover:{title:"",description:"Crop the uploaded image here."}},{element:".Guide_1_2_8",popover:{title:"",description:"Crop the uploaded image here."}},{element:".Guide_1_2_9",popover:{title:"",description:"Crop the uploaded image here."}},{element:".Guide_1_8",popover:{title:"",description:"Click here for next step."}},{element:".Guide_1_10",popover:{title:"",description:"Click here to extract primary colors from image."}},{element:".Guide_1_11",popover:{title:"",description:"Select the color you want from these color blocks as the first color."}},{element:".Guide_1_11_1",popover:{title:"",description:"Click on this block to select the second color."}},{element:".Guide_1_11_2",popover:{title:"",description:"Choose the color you want from these color blocks."}},{element:".Guide_1_8",popover:{title:"",description:"Click here for next step."}},{element:".Guide_1_9",popover:{title:"",description:"Upload or select two sketches for your collection on this page."}},{element:".Guide_1_9_1",popover:{title:"",description:"Upload or select two sketches for your collection on this page."}},{element:".Guide_1_9_2",popover:{title:"",description:"Upload or select two sketches for your collection on this page."}},{element:".Guide_1_13",popover:{title:"",description:"Click here to choose a category for the uploaded sketch."}},{element:".Guide_1_13_1",popover:{title:"",description:"Choose correct category for the sketch."}},{element:".Guide_1_13_2",popover:{title:"",description:"Choose correct category for the sketch."}},{element:".Guide_1_14",popover:{title:"",description:"After you have confirmed categories of sketches are correct, click here to complete the uploading process."}},{element:".Guide_1_15",popover:{title:"",description:"Click here to let AI generate design illustrations."}},{element:".Guide_1_16",popover:{title:"",description:"Please wait a few seconds."}},{element:".Guide_1_17",popover:{title:"",description:"Click on any design image you are interested in to modify the details."}},{element:".Guide_1_30",popover:{title:"",description:"Click the ‘Redesign’ button to generate new results using the selected mannequin."}},{element:".Guide_1_16",popover:{title:"",description:"Click here to let AI generate design illustrations."}},{element:".Guide_1_17",popover:{title:"",description:"Click on any design image you are interested in to modify the details."}},{element:".Guide_1_19",popover:{title:"",description:"Click on the clothes to modify its details."}},{element:".Guide_1_20",popover:{title:"",description:"Click here to add or change the print."}},{element:".Guide_1_21",popover:{title:"",description:"You can find the print you uploaded earlier in your Library."}},{element:".Guide_1_22",popover:{title:"",description:"Select a print for this sketch."}},{element:".Guide_1_23",popover:{title:"",description:"Click here to layout the selected print"}},{element:".Guide_1_25",popover:{title:"",description:"Preview printed design here.",side:"right",align:"end"}},{element:".Guide_1_26",popover:{title:"",description:"Click here to finalize your modification."}},{element:".Guide_1_99",popover:{title:"Begin Your Design",description:'Your guide is complete, and now the canvas is yours to create freely. For more insights and details, check out our demo video on the homepage at <a href="https://code-create.com.hk/aida/" style="pointer-events: auto;" target="_blank">https://code-create.com.hk/aida/</a>'}}],allowClose:!1,showButtons:!1,stagePadding:10,stageRadius:5,allowKeyboardControl:!0,disableActiveInteraction:!1,overlayOpacity:.4,overlay:!0,doneBtnText:"✕",onPopoverRender:(e,t)=>{e.previousButton.style.display="none",ee=ie.getState().activeIndex,te={index:ee,driver:!0},X?.commit("setGuide",te),0==t.state.activeIndex?e.wrapper.style.display="none":e.wrapper.style.display="block",t.state.activeIndex>=6&&t.state.activeIndex<9||t.state.activeIndex>=14&&t.state.activeIndex<16||ie.isLastStep()?(e.footer.style.display="block",e.footerButtons.style.pointerEvents="auto"):(e.footer.style.display="none",e.footerButtons.style.pointerEvents="none"),(0,o.Y3)().then((()=>{Q&&Q.classList.remove("Guide_"),Q=t.state.activeElement,Q.classList.add("Guide_")}))},onDestroyStarted:()=>{console.log(213123123),te={index:ee,driver:!1},X?.commit("setGuide",te),(0,K.d8)("isBeginner",!1),ie.destroy()},onDestroyed:()=>{}});const oe=()=>{let e,t=JSON.parse((0,K.ej)("isBeginner"));t?(ie.drive(),e={index:ee,driver:!0}):(ie.destroy(),e={index:ee,driver:!1}),ie.destroy(),e={index:ee,driver:!1},X=(0,J.oR)(),X?.commit("setGuide",e)}},7365:function(e,t,i){i.d(t,{Z:function(){return Re}});var o=i(6252),n=i(3577),s=i(9963),r=i.p+"img/aida_logo.5ab4163e.png";const a=e=>((0,o.dD)("data-v-22ba4800"),e=e(),(0,o.Cn)(),e),l={class:"header_max"},d={class:"header_component"},c={class:"header_right_content"},p=a((()=>(0,o._)("div",{class:"header_user_icon"},null,-1))),m={class:"header_user_content"},u={key:0,class:"username"},h=a((()=>(0,o._)("span",null,"/",-1))),v={key:1,class:"username"},w=a((()=>(0,o._)("span",null,"/",-1))),_={class:"header_user_content marLeft2"},g={class:"username"},y={class:"header_nav_content"},k={class:"header_right"},f={class:"select_block"},b=a((()=>(0,o._)("span",{class:"icon iconfont icon-tuichu"},null,-1))),x={class:"select_item_des"},C={class:"select_block select_list"},I=["onClick"],T={class:"select_item_des"},S={class:"skip_content"},L={key:0,class:"bind_email_content"},E={class:"bind_email_tip"},D={class:"bind_email"},H={key:1,class:"bind_email_content"},N={class:"bind_email_form_content"},P={class:"bind_email_form_title"},$=a((()=>(0,o._)("span",{class:"icon iconfont icon--shangyibu"},null,-1))),B={class:"email_last_step_content"},W={class:"email_last_step_des"},M={class:"sent_email_content"},O={class:"tip_content"};function G(e,t,i,a,G,U){const A=(0,o.up)("Habit"),q=(0,o.up)("VerificationCodeInput"),z=(0,o.up)("a-modal");return(0,o.wg)(),(0,o.iD)("div",l,[(0,o._)("header",d,[(0,o._)("div",c,[p,(0,o._)("div",m,[e.isTest?((0,o.wg)(),(0,o.iD)("div",u,[h,(0,o.Uk)(" "+(0,n.zw)(e.$t("Header.hello"))+"@"+(0,n.zw)(e.$t("isTest.userName")),1)])):((0,o.wg)(),(0,o.iD)("div",v,[w,(0,o.Uk)(" "+(0,n.zw)(e.$t("Header.hello"))+"@"+(0,n.zw)(e.userInfo?.userName),1)])),(0,o._)("div",{class:(0,n.C_)(["icon","iconfont","icon-xiala",e.isShowOperate?"icon_rotate":""]),onClick:t[0]||(t[0]=(0,s.iM)((t=>e.changeShowOperateContent()),["stop"]))},null,2)]),(0,o._)("div",_,[(0,o._)("span",g,(0,n.zw)(e.$t("Header.language")),1),(0,o._)("div",{class:(0,n.C_)(["icon","iconfont","icon-xiala",e.isLanguage?"icon_rotate":""]),onClick:t[1]||(t[1]=(0,s.iM)((t=>e.changeLanguage()),["stop"]))},null,2)])]),(0,o._)("nav",y,[(0,o._)("div",{class:(0,n.C_)(["nav_item","home"===e.$route.name?"select_nav":""]),onClick:t[2]||(t[2]=t=>e.turnToPage("home"))},(0,n.zw)(e.$t("Header.HOME")),3),(0,o._)("div",{class:(0,n.C_)(["nav_item","library"===e.$route.name?"select_nav":""]),onClick:t[3]||(t[3]=t=>e.turnToPage("library"))},(0,n.zw)(e.$t("Header.LIBRARY")),3),(0,o._)("div",{class:(0,n.C_)(["nav_item","history"===e.$route.name?"select_nav":""]),onClick:t[4]||(t[4]=t=>e.turnToPage("history"))},(0,n.zw)(e.$t("Header.HISTORY")),3)]),(0,o._)("div",k,[(0,o._)("img",{class:"header_logo",onClick:t[5]||(t[5]=t=>e.turnToNewPage("https://www.aidlab.hk/en/")),src:r}),(0,o.Wm)(A)])]),(0,o.wy)((0,o._)("nav",f,[(0,o._)("div",{class:"select_item",onClick:t[6]||(t[6]=t=>e.logout())},[b,(0,o._)("span",x,(0,n.zw)(e.$t("Header.logOff")),1)])],512),[[s.F8,e.isShowOperate]]),(0,o.wy)((0,o._)("ul",C,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.language,(t=>((0,o.wg)(),(0,o.iD)("li",{class:"select_item",onClick:i=>e.setLocale(t.value)},[(0,o._)("span",T,(0,n.zw)(t.name),1)],8,I)))),256))],512),[[s.F8,e.isLanguage]]),(0,o.Wm)(z,{class:"modal_component",visible:e.bindEmailVisible,"onUpdate:visible":t[13]||(t[13]=t=>e.bindEmailVisible=t),footer:null,title:"Mailbox binding",width:"56rem",maskClosable:!1,keyboard:!1,centered:!0},(0,o.Nv)({default:(0,o.w5)((()=>[e.isHaveBindEmail?((0,o.wg)(),(0,o.iD)("div",L,[(0,o._)("div",E,(0,n.zw)(e.$t("Header.emailContent")),1),(0,o._)("div",D,(0,n.zw)(e.userInfo.email),1)])):((0,o.wg)(),(0,o.iD)("div",H,[(0,o.wy)((0,o._)("div",null,[(0,o._)("div",N,[(0,o._)("div",P,(0,n.zw)(e.$t("Header.Email")),1),(0,o.wy)((0,o._)("input",{class:"bind_email_form_input",placeholder:"Enter a new email","onUpdate:modelValue":t[7]||(t[7]=t=>e.email=t),onKeydown:t[8]||(t[8]=(0,s.D2)((t=>e.emailNextStepFun()),["enter"]))},null,544),[[s.nr,e.email]])]),(0,o._)("div",{class:"bind_email_submit_button",onClick:t[9]||(t[9]=t=>e.emailNextStepFun())},(0,n.zw)(e.$t("Header.NextStep")),1)],512),[[s.F8,1===e.bindEmailStep]]),(0,o.wy)((0,o._)("div",null,[(0,o._)("div",{onClick:t[10]||(t[10]=t=>e.emailLastStepFun())},[$,(0,o._)("span",B,(0,n.zw)(e.$t("Header.verification")),1)]),(0,o._)("div",W,[(0,o._)("div",M,(0,n.zw)(e.$t("Header.SentTo"))+" "+(0,n.zw)(e.email),1),(0,o._)("div",O,[(0,o.wy)((0,o._)("span",null,(0,n.zw)(e.time)+"s",513),[[s.F8,e.time]]),(0,o.wy)((0,o._)("span",{onClick:t[11]||(t[11]=t=>e.emailNextStepFun())},(0,n.zw)(e.$t("Header.Resend"))+"Resend",513),[[s.F8,!e.time]])])]),(0,o.Wm)(q,{ct:e.emailCode,onSendCaptcha:t[12]||(t[12]=t=>e.submitBindEmail(t))},null,8,["ct"])],512),[[s.F8,2===e.bindEmailStep]])]))])),_:2},[e.isHaveBindEmail||1!==e.bindEmailStep?void 0:{name:"closeIcon",fn:(0,o.w5)((()=>[(0,o._)("div",S,(0,n.zw)(e.$t("Header.skip")),1)]))}]),1032,["visible"])])}var U=i(2262),A=i(7332),q=i(2339),z=i(9632);const R=e=>((0,o.dD)("data-v-b43da8b0"),e=e(),(0,o.Cn)(),e),V={class:"habit"},F={class:"habit_mask"},Z=R((()=>(0,o._)("i",{class:"fi fi-bs-angle-down"},null,-1))),j={class:"habit_title"},Y={class:"habit_intro"},K={class:"habit_type",trigger:"['click']"},J={class:"habit_model_show habit_workspace_show"},X={class:"habit_model_list"},Q=["onClick"],ee=["onClick"],te=["onClick"],ie=["onClick"],oe={class:"habit_model_show habit_sex_show"},ne={class:"habit_model_list"},se=["onClick"],re={class:"habit_Overal_Single"},ae={class:"habit_habit_singleton"},le={class:"habit_model_show habit_singleton_show"},de={class:"habit_model_list"},ce=["onClick"],pe={class:"habit_System_Designer"},me={class:"habit_System_Designer_text_max"},ue={class:"habit_System_Designer_text"},he={class:"habit_System_Designer_text"},ve={class:"habit_btn"},we={class:"model_current"},_e={class:"model_text"},ge={class:"model_img"},ye=["src"],ke={class:"model_Designer"},fe={class:"model_text"},be={class:"model_img"},xe={class:"model_img_item"},Ce=["src","onClick"],Ie={class:"model_img"},Te={class:"model_img_item"},Se=["src","onClick"];function Le(e,t,i,r,a,l){const d=(0,o.up)("UserOutlined"),c=(0,o.up)("DownOutlined"),p=(0,o.up)("a-button"),m=(0,o.up)("a-dropdown"),u=(0,o.up)("a-switch"),h=(0,o.up)("a-slider"),v=(0,o.Q2)("fade"),w=(0,o.Q2)("mousewheel");return(0,o.wg)(),(0,o.iD)("div",V,[(0,o.wy)((0,o._)("div",F,null,512),[[s.F8,e.openType.habit]]),(0,o._)("div",{class:"habit_button Guide_1_27",onClick:t[0]||(t[0]=(0,s.iM)((t=>e.setOpenType("habit")),["stop"]))},[(0,o.Uk)((0,n.zw)(e.$t("Habit.Workspace"))+" ",1),Z]),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",{class:(0,n.C_)(["habit_content Guide_1_28",[e.driver__.driver?"showEvents":""]])},[(0,o._)("div",j,[(0,o._)("h3",null,(0,n.zw)(e.$t("Habit.WorkspaceSetting")),1),(0,o._)("div",Y,(0,n.zw)(e.$t("Habit.settingWorkspace")),1)]),(0,o._)("div",K,[(0,o.Wm)(m,{placement:"bottomRight",onClick:t[1]||(t[1]=(0,s.iM)((t=>e.setOpenType("workspace")),["stop"]))},{default:(0,o.w5)((()=>[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o.Wm)(d),(0,o.Uk)(" "+(0,n.zw)(e.workspaceItem.workSpaceName)+" ",1),(0,o.Wm)(c)])),_:1})])),_:1}),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",J,[(0,o._)("ul",X,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.workspace.workspaceList,((i,r)=>((0,o.wg)(),(0,o.iD)("li",null,[(0,o.wy)((0,o._)("div",{onClick:(0,s.iM)((t=>e.setWorkspace(i.id)),["stop"])},(0,n.zw)(i.workSpaceName),9,Q),[[s.F8,!i.putName]]),(0,o.wy)((0,o._)("input",{type:"text","onUpdate:modelValue":t[2]||(t[2]=t=>e.workspaceItemName=t)},null,512),[[s.F8,i.putName],[s.nr,e.workspaceItemName]]),(0,o.wy)((0,o._)("i",{onClick:(0,s.iM)((t=>e.putName(r,"put")),["stop"]),class:"fi fi-rr-edit"},null,8,ee),[[s.F8,!i.putName]]),(0,o.wy)((0,o._)("i",{onClick:(0,s.iM)((t=>e.putName(r,"affirm")),["stop"]),class:"fi fi-br-check"},null,8,te),[[s.F8,i.putName]]),(0,o._)("i",{onClick:(0,s.iM)((t=>e.putName(r,"delete")),["stop"]),class:"fi fi-rr-trash"},null,8,ie)])))),256)),(0,o._)("li",{onClick:t[5]||(t[5]=(...t)=>e.newWorkspace&&e.newWorkspace(...t)),class:"newWorkspace"},[(0,o.wy)((0,o._)("input",{type:"text","onUpdate:modelValue":t[3]||(t[3]=t=>e.workspaceItemName=t)},null,512),[[s.F8,e.openType.addWorkspace],[s.nr,e.workspaceItemName]]),(0,o.wy)((0,o._)("i",{onClick:t[4]||(t[4]=(0,s.iM)((t=>e.putName(-1,"affirm")),["stop"])),class:"fi fi-br-check"},null,512),[[s.F8,e.openType.addWorkspace]]),(0,o.wy)((0,o._)("div",null,"+",512),[[s.F8,!e.openType.addWorkspace]])])])])),[[v,e.openType.workspace]])]),(0,o._)("div",{class:(0,n.C_)(["habit_Overal_Single",[2==e.driver__.index&&e.driver__.driver?"Guide_active":""]])},[(0,o.Wm)(m,{onClick:t[6]||(t[6]=(0,s.iM)((t=>e.setOpenType("sex")),["stop"]))},{default:(0,o.w5)((()=>[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o.Wm)(d),(0,o.Uk)(" "+(0,n.zw)(e.workspaceItem?.sexEnum?.value),1),(0,o.Wm)(c)])),_:1})])),_:1}),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",oe,[(0,o._)("ul",ne,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.sex,((t,i)=>((0,o.wg)(),(0,o.iD)("li",null,[(0,o._)("div",{onClick:(0,s.iM)((i=>e.setSex(t)),["stop"])},(0,n.zw)(t.value),9,se)])))),256))])])),[[v,e.openType.sex]])],2),(0,o._)("div",re,[(0,o._)("div",{class:(0,n.C_)(["habit_Overal_Single_text",{active:!e.workspaceItem.overallSingle}])},(0,n.zw)(e.$t("Habit.Overall")),3),(0,o.Wm)(u,{onClick:e.setOverallSingle,checked:e.workspaceItem.overallSingle,"onUpdate:checked":t[7]||(t[7]=t=>e.workspaceItem.overallSingle=t)},null,8,["onClick","checked"]),(0,o._)("div",{class:(0,n.C_)(["habit_Overal_Single_text",{active:e.workspaceItem.overallSingle}])},(0,n.zw)(e.$t("Habit.Single")),3)]),(0,o.wy)((0,o._)("div",ae,[(0,o.Wm)(m,{onClick:t[8]||(t[8]=(0,s.iM)((t=>e.setOpenType("singleton")),["stop"]))},{default:(0,o.w5)((()=>[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o.Wm)(d),(0,o.Uk)(" "+(0,n.zw)(e.workspaceItem?.positionEnum?.value)+" ",1),(0,o.Wm)(c)])),_:1})])),_:1}),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",le,[(0,o._)("ul",de,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.singleTypeList,((t,i)=>((0,o.wg)(),(0,o.iD)("li",null,[(0,o._)("div",{onClick:(0,s.iM)((i=>e.setSingle(t)),["stop"])},(0,n.zw)(t.value),9,ce)])))),256))])])),[[v,e.openType.singleton]])],512),[[s.F8,e.workspaceItem.overallSingle]]),(0,o._)("div",pe,[(0,o.Wm)(h,{id:"system_silder",value:e.workspaceItem.systemDesignerPercentage,"onUpdate:value":t[9]||(t[9]=t=>e.workspaceItem.systemDesignerPercentage=t),onAfterChange:e.systemDesigner,"tip-formatter":e.formatter},null,8,["value","onAfterChange","tip-formatter"]),(0,o._)("div",me,[(0,o._)("div",ue,(0,n.zw)(e.$t("Habit.System")),1),(0,o._)("div",he,(0,n.zw)(e.$t("Habit.Designer")),1)])]),(0,o._)("div",{class:(0,n.C_)(["habit_model",[3==e.driver__.index&&e.driver__.driver?"Guide_active":""]])},[(0,o.Wm)(m,{placement:"bottomRight",trigger:"['click']",onClick:t[10]||(t[10]=(0,s.iM)((t=>e.setOpenType("model")),["stop"]))},{default:(0,o.w5)((()=>[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o.Wm)(d),(0,o.Uk)(" "+(0,n.zw)(e.$t("Habit.Mannequin"))+" ",1),(0,o.Wm)(c)])),_:1})])),_:1})],2),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",{id:"modelShow",class:(0,n.C_)(["habit_model_show Guide_1_29",[e.driver__.driver?"showEvents":""]])},[(0,o._)("div",ve,[(0,o._)("div",we,[(0,o._)("div",_e,(0,n.zw)(e.$t("Habit.Current")),1),(0,o._)("div",ge,[(0,o._)("img",{src:e.workspaceItem.mannequinUrl,alt:""},null,8,ye)])]),(0,o._)("div",ke,[(0,o._)("div",fe,[(0,o._)("div",{class:(0,n.C_)(["habit_System_Seleves_text",{active:!e.systemSeleves}])},(0,n.zw)(e.$t("Habit.System")),3),(0,o.Wm)(u,{disabled:null==e.mannequins?.[0],checked:e.systemSeleves,"onUpdate:checked":t[11]||(t[11]=t=>e.systemSeleves=t)},null,8,["disabled","checked"]),(0,o._)("div",{class:(0,n.C_)(["habit_System_Seleves_text",{active:e.systemSeleves}])},(0,n.zw)(e.$t("Habit.User")),3)]),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",be,[(0,o._)("div",xe,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.mannequins?.[0]?.modelList,((t,i)=>((0,o.wg)(),(0,o.iD)("div",{key:t.id},[(0,o._)("img",{src:t?.presignedUrl,alt:"",onClick:i=>e.setMannequins(t,"Library")},null,8,Ce)])))),128))])])),[[s.F8,e.systemSeleves],[w]]),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",Ie,[(0,o._)("div",Te,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.mannequins?.[1]?.modelList,((t,i)=>((0,o.wg)(),(0,o.iD)("div",{key:t.id},[(0,o._)("img",{src:t?.presignedUrl,alt:"",onClick:i=>e.setMannequins(t,"System")},null,8,Se)])))),128))])])),[[s.F8,!e.systemSeleves],[w]])])])],2)),[[v,e.openType.model]])],2)),[[v,e.openType.habit]])])}var Ee=i(3907),De=i(7849),He=i(4924),Ne=i(6214),Pe=i(327),$e=i(1446),Be=i(8302),We=i(4272),Me=i(8552),Oe=(0,o.aZ)({components:{DownOutlined:De.Z,UserOutlined:He.Z},setup(){const e=(0,Ee.oR)();let t=(0,U.iH)({id:"",id_:1,workSpaceName:"工作台1",putName:!1,systemDesignerPercentage:30,position:"",sex:"",overallSingle:!1,mannequinUrl:"",mannequinType:"",mannequinId:""}),i=(0,U.iH)([{},{}]),n=(0,U.iH)(!1),s=(0,U.iH)({workspace:!1,singleton:!1,habit:!1,model:!1,addWorkspace:!1,sex:!1}),r=(0,o.Fl)((()=>e.state.Guide.guide)),a=(0,U.iH)({}),l=(0,U.iH)(""),d=(0,U.iH)([]),c=(0,U.iH)([]);const{t:p}=(0,Me.QT)();return{systemSeleves:n,mannequins:i,openType:s,driver__:r,workspace:a,workspaceItem:t,workspaceItemName:l,singleTypeList:d,sex:c,t:p}},watch:{"openType.habit":{handler(e,t){if(!e){this.workspaceItem.overallSingle||(this.workspaceItem.position="Overall");let e=this.workspaceItem;delete e.isLastIndex,this.putWorkspace(e,""),this.openType.model=!1,this.store.commit("setWorkspace",this.workspaceItem)}}},driver__:{handler(e,t){e.index>=5&&(this.openType.habit=!1)}},"workspaceItem.id_":{handler(e,t){this.workspace.workspaceList.forEach((i=>{i.id==this.workspaceItem.id_&&(this.workspaceItem=i,this.workspaceItem.id_=i.id),i.id==t&&(delete i.isLastIndex,this.putWorkspace(i,e),this.getDetail(e))})),this.getMannequins()}},"openType.workspace":{handler(e,t){this.openType.addWorkspace=!1,this.workspace.workspaceList.forEach((e=>{e.putName=!1}))}},"workspaceItem.overallSingle":{handler(e,t){this.driver__.driver&&We.RX.refresh()}},"openType.sex":{handler(e,t){this.driver__.driver&&t&&We.RX.moveTo(3)}},workspaceItem:{handler(e,t){this.store.commit("setWorkspace",this.workspaceItem)}}},data(){return{store:(0,Ee.oR)()}},mounted(){this.getworkspace(),this.getSex()},directives:{fade:{mounted(e,t){e.addEventListener("click",(()=>{}))},updated(e,t){t.value?(e.style.display="block",setTimeout((()=>{e.classList.add("active")}),100)):(e.classList.remove("active"),setTimeout((()=>{e.style.display="none"}),100))}},mousewheel:{mounted(e){e.addEventListener("wheel",(t=>{let i=0;i=t.deltaY>0?25:-25,e.scrollBy(i,0)}))}}},methods:{async getSex(){await Ne.V.axiosGet(Ne.V.httpUrls.workspaceenumValues,{params:{enumName:"Sex"}}).then((e=>{e&&(this.store.commit("setWorkspaceSex",e),this.sex=e)}))},async getPosition(e){let t;t="Female"==this.workspaceItem.sexEnum.name?"FemalePosition":"MalePosition",await Ne.V.axiosGet(Ne.V.httpUrls.workspaceenumValues,{params:{enumName:t}}).then((t=>{t&&(this.singleTypeList=t,this.store.commit("setWorkspacePosition",t),"sex"==e&&(this.workspaceItem.position=this.singleTypeList[0].name,this.workspaceItem.positionEnum=this.singleTypeList[0]))}))},setPosition(){this.workspaceItem.position=this.singleTypeList[0].name,this.workspaceItem.positionEnum=this.singleTypeList[0]},getworkspace(){let e={page:1,size:10};Ne.V.axiosPost(Ne.V.httpUrls.workspaceList,e).then((e=>{e&&(e.page.content.forEach((t=>{t.id_=t.id,"Overall"==t.position?t.overallSingle=!1:t.overallSingle=!0,t.putName=!1,t.id==(this.workspaceItem.id?this.workspaceItem.id:e.id)&&(this.workspaceItem=t,this.setMannequinsSex(),this.getPosition(""))})),this.workspace.id=e.id,this.workspace.workspaceList=e.page.content)}))},getDetail(e){Ne.V.axiosGet(Ne.V.httpUrls.workspaceDetail,{params:{id:e}}).then((e=>{}))},getMannequins(){Ne.V.axiosGet(Ne.V.httpUrls.getMannequins,{params:{sex:this.workspaceItem.sex}}).then((e=>{if(e){if("System"==e[0].type){let t=e[0];e[0]=e[1],e[1]=t}this.mannequins=e,null==this.mannequins?.[0]&&(this.systemSeleves=!1)}}))},putWorkspace(e,t){Ne.V.axiosPost(Ne.V.httpUrls.workspacesaveOrUpdate,e).then((e=>{e&&(t||this.getworkspace(),this.workspace.workspaceList[t].workSpaceName=this.workspaceItemName,this.workspace.workspaceList[t].putName=!1,this.openType.addWorkspace=!1)})).catch((e=>{this.getworkspace()}))},deleteWorkspace(e){Ne.V.axiosDelete(Ne.V.httpUrls.workspaceRemove,e).then((e=>{e&&this.getworkspace()}))},setOverallSingle(){this.workspaceItem.overallSingle?(this.workspaceItem.position=this.singleTypeList[0].name,this.workspaceItem.positionEnum=this.singleTypeList[0]):this.workspaceItem.position="Overall"},cancelDsign(e){let t=this;Pe.Z.confirm({title:t.t("Habit.jsContent1"),icon:(0,o.Wm)(Be.Z),okText:"Yes",cancelText:"No",mask:!1,wrapClassName:"habit",zIndex:999999999,centered:!0,onOk(){let i=[{id:t.workspace.workspaceList[e].id}];t.workspace.workspaceList[e].id;t.deleteWorkspace(i)}})},putName(e,t){if(this.workspace.workspaceList.forEach((e=>{e.putName=!1})),this.openType.addWorkspace=!1,"put"==t)this.workspaceItemName=this.workspace.workspaceList[e].workSpaceName,this.workspace.workspaceList[e].putName=!0;else if("delete"==t)this.cancelDsign(e);else if(""==this.workspaceItemName)$e.ZP.info(this.t("Habit.jsContent2"));else if(-1==e){let e={workSpaceName:this.workspaceItemName};this.putWorkspace(e,"")}else{let t;this.workspace.workspaceList.forEach((i=>{this.workspace.workspaceList[e].id==i.id&&(t=i)})),t.workSpaceName=this.workspaceItemName,this.putWorkspace(t,"")}},systemDesigner(e){this.workspaceItem.systemDesignerPercentage=e},formatter(e){return`${e}%`},setWorkspace(e){this.openType.addWorkspace=!1,this.workspace.workspaceList.forEach((e=>{e.putName=!1})),this.workspaceItem.id_=e,this.openType.workspace=!1},newWorkspace(){this.workspaceItemName="",this.openType.addWorkspace=!0,this.workspace.workspaceList.forEach((e=>{e.putName=!1}))},setSex(e){this.workspaceItem.sexEnum=e,this.openType.sex=!1,this.workspaceItem.sex=e.name,this.getMannequins(),this.setMannequinsSex(),this.getPosition("sex")},setSingle(e){this.openType.singleton=!1,this.workspaceItem.position=e.name,this.workspaceItem.positionEnum=e},setMannequins(e,t){let i;"Female"==this.workspaceItem.sexEnum.name?(i=this.workspaceItem.mannequinFemaleId,this.workspaceItem.femalePresignedUrl=e.presignedUrl,this.workspaceItem.mannequinFemaleType=t,this.workspaceItem.mannequinFemaleId=e.id):"Male"==this.workspaceItem.sexEnum.name&&(i=this.workspaceItem.mannequinMaleId,this.workspaceItem.malePresignedUrl=e.presignedUrl,this.workspaceItem.mannequinMaleType=t,this.workspaceItem.mannequinMaleId=e.id),this.driver__.driver&&(0,o.Y3)().then((()=>{We.RX.moveNext(),this.openType.model=!1})),this.workspaceItem.mannequinUrl=e.presignedUrl,this.workspaceItem.mannequinType=t,this.workspaceItem.mannequinId=e.id},setMannequinsSex(){"Female"==this.workspaceItem.sexEnum.name?(this.workspaceItem.mannequinUrl=this.workspaceItem.femalePresignedUrl,this.workspaceItem.mannequinType=this.workspaceItem.mannequinFemaleType,this.workspaceItem.mannequinId=this.workspaceItem.mannequinFemaleId):"Male"==this.workspaceItem.sexEnum.name&&(this.workspaceItem.mannequinUrl=this.workspaceItem.malePresignedUrl,this.workspaceItem.mannequinType=this.workspaceItem.mannequinMaleType,this.workspaceItem.mannequinId=this.workspaceItem.mannequinMaleId)},setOpenType(e){"habit"==e?(this.openType.habit=!this.openType.habit,this.driver__.driver&&(0,o.Y3)().then((()=>{We.RX.moveNext()}))):"workspace"==e?(this.openType.singleton=!1,this.openType.sex=!1,this.openType.workspace=!this.openType.workspace):"model"==e?(this.openType.singleton=!1,this.openType.workspace=!1,this.openType.sex=!1,this.openType.model=!this.openType.model,this.getMannequins(),this.driver__.driver&&this.openType.model&&(0,o.Y3)().then((()=>{We.RX.moveTo(4)}))):"singleton"==e?(this.openType.singleton=!this.openType.singleton,this.openType.workspace=!1,this.openType.sex=!1):"sex"==e&&(this.openType.sex=!this.openType.sex,this.openType.workspace=!1,this.openType.singleton=!1);let t=document.getElementsByClassName("habit_mask")[0];t.addEventListener("click",this.documentClick,!0)},documentClick(){let e=document.getElementsByClassName("habit_mask")[0];e.removeEventListener("click",this.documentClick),this.openType.habit=!1,this.openType.workspace=!1,this.openType.model=!1,this.openType.singleton=!1,this.openType.sex=!1}}}),Ge=i(3744);const Ue=(0,Ge.Z)(Oe,[["render",Le],["__scopeId","data-v-b43da8b0"]]);var Ae=Ue,qe=(0,o.aZ)({components:{VerificationCodeInput:z.Z,Habit:Ae},setup(){const e=(0,Ee.oR)(),{t:t}=(0,Me.QT)(),{locale:i}=(0,Me.QT)();let o=(0,U.iH)();return{store:e,t:t,locale:i,isTest:o}},data(){return{isShowOperate:!1,bindEmailVisible:!1,isHaveBindEmail:!1,bindEmailStep:1,email:"",emailCode:["","","","","",""],time:60,timer:0,userInfo:{},timerOperate:null,numTime:30,timerSec:null,modalWarning:null,isLanguage:!1,language:[{name:"English",value:"ENGLISH"},{name:"中文",value:"CHINESE_SIMPLIFIED"},{name:"한국인",value:"KOREAN"},{name:"にほんご",value:"JAPANESE"},{name:"Русский",value:"RUSSIAN"},{name:"Français",value:"FRENCH"},{name:"แบบไทย",value:"THAI"},{name:"Tiếng Việt",value:"VIETNAMESE"},{name:"Italiano",value:"ITALIAN"}]}},mounted(){let e=(0,q.ej)("isTest");this.isTest=JSON.parse(e)||"",this.userInfo=JSON.parse((0,q.ej)("userInfo")),this.userInfo?this.accountIsLogin(this.userInfo):this.$router.replace("/login"),this.isHaveBindEmail=!!this.userInfo?.email,this.operateClick(),document.addEventListener("click",this.operateClick),this.getLang("")},methods:{turnToNewPage(e){window.open(e)},turnToPage(e){let t="home"===e;this.$router.push({name:e,params:{noRefresh:t}})},changeShowOperateContent(){this.isShowOperate=!this.isShowOperate,document.addEventListener("click",this.closeShowOperateContent,!1)},changeLanguage(){this.isLanguage=!this.isLanguage,document.addEventListener("click",this.closeShowOperateContent,!1)},closeShowOperateContent(){this.isShowOperate=!1,this.isLanguage=!1,document.removeEventListener("click",this.closeShowOperateContent)},showBindEmailModal(){this.bindEmailVisible=!0},emailNextStepFun(){if(!(0,A.Jh)(this.email))return void $e.ZP.info(this.t("Header.jsContent1"));let e={email:this.email,operationType:"BIND_MAILBOX"};const t=$e.ZP.loading("loading",0);Ne.V.axiosPost(Ne.V.httpUrls.accountSendEmail,e).then((e=>{e&&(this.bindEmailStep=2,this.emailCode=["","","","","",""],this.createTimer(),t(),$e.ZP.success(this.t("Header.jsContent2")))})).catch((e=>{t()}))},emailLastStepFun(){this.bindEmailStep=1,this.email="",this.emailCode=["","","","","",""],this.clearTimer()},createTimer(){this.timer=setInterval((()=>{this.time--,this.time||clearInterval(this.timer)}),1e3)},clearTimer(){this.time=60,this.timer&&clearInterval(this.timer)},async logout(){let e={userId:this.userInfo.userId},t=(0,q.ej)("isTest");JSON.parse(t)?Ne.V.axiosGet(Ne.V.httpUrls.trialUserLogout).then((t=>{Ne.V.axiosPost(Ne.V.httpUrls.accountLogout,e).then((e=>{this.$router.replace("/login"),(0,q.$m)("token")}))})):Ne.V.axiosPost(Ne.V.httpUrls.accountLogout,e).then((e=>{this.$router.replace("/login"),(0,q.$m)("token")}))},submitBindEmail(e){let t={userEmail:this.email,userId:this.userInfo.userId,emailVerifyCode:e};Ne.V.axiosPost(Ne.V.httpUrls.accountBindEmail,t).then((e=>{e&&(this.userInfo.email=this.email,(0,q.d8)("userInfo",JSON.stringify(this.userInfo)),this.bindEmailVisible=!1,this.bindEmailStep=1,this.clearTimer(),this.emailCode=["","","","","",""])}))},accountIsLogin(e){let t={userId:e.userId};Ne.V.axiosPost(Ne.V.httpUrls.accountIsLogin,t).then((e=>{e||this.$router.replace("/login")}))},operateClick(){this.timer&&clearTimeout(this.timer);let e=this,t=72e5;this.timer=setTimeout((()=>{this.modalWarning=Pe.Z.warning({title:()=>this.t("Header.jsContent3",{numTime:e.numTime}),icon:(0,o.Wm)(Be.Z),okText:"Ok",centered:!0,onOk(){e.numTime=30,clearInterval(e.timerSec)}}),e.numCounter()}),t)},numCounter(){this.timerSec=setInterval((()=>{this.numTime>0?this.numTime=this.numTime-1:(clearTimeout(this.timer),clearInterval(this.timerSec),this.logout(),this.modalWarning.destroy())}),1e3)},getLang(e){let t;Ne.V.axiosPost(Ne.V.httpUrls.getUserLanguage,t).then((e=>{e&&(this.locale=e)}))},setLang(e){Ne.V.axiosGet(Ne.V.httpUrls.changeUserLanguage,{params:{language:e}}).then((e=>{if(e&&e){let t=e;(0,q.d8)("token",t),this.getLang(""),this.store.commit("clearAllData"),window.location.reload()}}))},setLocale(e){this.setLang(e)}}});const ze=(0,Ge.Z)(qe,[["render",G],["__scopeId","data-v-22ba4800"]]);var Re=ze},8436:function(e,t,i){i.d(t,{Z:function(){return G}});var o=i(6252),n=i(3577),s=i(9963),r=i.p+"img/robot.6fd62bbc.png";const a=e=>((0,o.dD)("data-v-18c2f2ff"),e=e(),(0,o.Cn)(),e),l={class:"robot_top",ref:"robotDom"},d={class:"robot_text"},c=["href"],p=a((()=>(0,o._)("i",{class:"fi fi-br-link-alt"},null,-1))),m=[p],u={key:0,class:"driver__"},h={key:0,class:"driver__btn"},v={class:"robot_img_item"},w=["src"],_={class:"delete_like_file_block"},g=["onClick"],y=["onClick"],k={class:"robot_content"},f={class:"robot_bottom"},b={class:"robot_input"},x=["placeholder"],C={class:"robot_btn"},I={class:"robot_img"};function T(e,t,i,a,p,T){const S=(0,o.Q2)("fade");return(0,o.wg)(),(0,o.iD)("div",{class:(0,n.C_)(["robot Guide_1_1_1",[e.driver__.driver?"showEvents":""]]),onMousemove:t[7]||(t[7]=(...t)=>e.robotmax&&e.robotmax(...t))},[(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",l,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.record,((i,r)=>((0,o.wg)(),(0,o.iD)("div",{class:(0,n.C_)([1==i.state?"text_right":"text_left",i.img?"white":""]),ref_for:!0,ref:"robotChildDom"},[(0,o._)("div",d,[(0,o._)("span",null,[(0,o.Uk)((0,n.zw)(i.str)+" ",1),i.src?((0,o.wg)(),(0,o.iD)("a",{key:0,href:i.src,target:"_blank"},m,8,c)):(0,o.kq)("",!0)]),e.driver__.driver?((0,o.wg)(),(0,o.iD)("span",u,[(0,o.Uk)((0,n.zw)(i.str)+" ",1),i.driver?((0,o.wg)(),(0,o.iD)("div",h,[(0,o._)("span",{onClick:t[0]||(t[0]=(...t)=>e.setDriver&&e.setDriver(...t))}," Yes "),(0,o._)("span",{onClick:t[1]||(t[1]=(...t)=>e.removeDriver&&e.removeDriver(...t))}," No ")])):(0,o.kq)("",!0)])):(0,o.kq)("",!0),(0,o._)("div",{class:(0,n.C_)(["robot_img",[i.img?"img":""]])},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(i.img,((t,i)=>((0,o.wg)(),(0,o.iD)("div",v,[(0,o._)("img",{src:t.presignedUrl,alt:""},null,8,w),(0,o._)("div",_,[null==t.id?((0,o.wg)(),(0,o.iD)("i",{key:0,class:"fi fi-rr-heart",onClick:(0,s.iM)((o=>e.likeFile(t,i,r)),["stop"])},null,8,g)):((0,o.wg)(),(0,o.iD)("i",{key:1,class:"fi fi-sr-heart",onClick:(0,s.iM)((o=>e.likeFile(t,i,r)),["stop"])},null,8,y))])])))),256))],2)])],2)))),256))])),[[S,e.robotTop,"block"]]),(0,o._)("div",k,[(0,o._)("div",{style:(0,n.j5)("width:"+e.bloodBars+"%;")},null,4)]),(0,o._)("div",f,[(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",b,[(0,o.wy)((0,o._)("input",{placeholder:e.$t("RobotAssist.inputContent1"),"onUpdate:modelValue":t[2]||(t[2]=t=>e.chatCentent=t),onKeydown:t[3]||(t[3]=(0,s.D2)((t=>e.roborSend()),["enter"])),onInput:t[4]||(t[4]=(...t)=>e.robotmax&&e.robotmax(...t))},null,40,x),[[s.nr,e.chatCentent]]),(0,o._)("div",C,[(0,o._)("i",{class:"fi fi-ss-paper-plane-top",onClick:t[5]||(t[5]=(...t)=>e.roborSend&&e.roborSend(...t))})])])),[[S,e.robotInput,"flex"]]),(0,o._)("div",I,[(0,o._)("img",{src:r,onClick:t[6]||(t[6]=(...t)=>e.robotBtn&&e.robotBtn(...t))})])])],34)}var S=i(2262),L=i(7849),E=i(4924),D=i(6214),H=i(2339),N=i(3907),P=i(1446),$=i(4272),B=i(8552),W=(0,o.aZ)({components:{DownOutlined:L.Z,UserOutlined:E.Z},setup(){const e=(0,S.iH)(null),t=(0,S.iH)(null);let i=(0,S.iH)("");const n=(0,S.iH)(!1),s=(0,S.iH)(!1);let r=0,a=0,l=(0,S.iH)([]);const d={};let c=(0,S.iH)(0),{t:p}=(0,B.QT)(),m=(0,S.iH)(),u=(0,N.oR)(),h=(0,S.iH)({}),v=(0,o.Fl)((()=>u.state.Guide.guide)),w=(0,S.iH)();return{robotTop:n,robotInput:s,chatCentent:i,record:l,robotDom:e,robotChildDom:t,timeTop:r,timeInput:a,userInfo:d,bloodBars:c,t:p,isTest:m,store:u,workspace:h,driver__:v,driver__Time:w}},data(){return{}},watch:{driver__:{handler:function(e){console.log(this.driver__),this.driver__.driver&&0==this.driver__.index?(this.robotTop=!0,this.robotInput=!0,$.RX.refresh(),this.record.push({state:1,str:"123123123",driver:!0}),this.driver__Time=setInterval((()=>{this.$nextTick().then((()=>{$.RX.refresh()})),this.createTimer()}),3e3)):clearTimeout(this.driver__Time)}}},mounted(){this.textScroll();let e=(0,H.ej)("userInfo"),t=(0,H.ej)("isTest");this.isTest=JSON.parse(t)||"",this.userInfo=JSON.parse(e),null==sessionStorage.getItem("record")?this.record=[]:this.record=JSON.parse(sessionStorage.getItem("record")),this.getBloodBars(),this.workspace=(0,o.Fl)((()=>this.store?.state?.Workspace?.workspace))},directives:{fade:{updated(e,t){t.value?(e.style.display=t.arg,setTimeout((()=>{e.classList.add("active")}),100)):(e.classList.remove("active"),setTimeout((()=>{e.style.display="none"}),100))}}},methods:{robotBtn(){this.robotTop&&this.robotInput?(this.robotTop=!1,this.robotInput=!1):(this.robotTop=!0,this.robotInput=!0),this.textScroll(),this.createTimer()},getBloodBars(){D.V.axiosGet(D.V.httpUrls.getBloodBars,{params:{userId:this?.userInfo?.userId}}).then((e=>{e&&(this.bloodBars=100*e)}))},textScroll(){this.$nextTick((()=>{if(this.robotDom&&this.robotChildDom){let e=0;for(let t=0;t<this.$refs.robotChildDom.length;t++){const i=this.$refs.robotChildDom[t].clientHeight;e=e+40+i}this.robotDom.scrollTop=e}}))},robotmax(){this.createTimer()},roborSend(){if(this.clearTimer(),!this.chatCentent)return void P.ZP.info(this.t("RobotAssist.jsContent1"));let e;if(this.record.push({state:2,str:this.chatCentent}),this.textScroll(),null==sessionStorage.getItem("sessionId")){let t=Math.floor(9e15*Math.random())+1e15;sessionStorage.setItem("sessionId",t),e=t}else e=sessionStorage.getItem("sessionId");let t={user_id:this.userInfo?.userId,session_id:e,message:this.chatCentent,gender:this.workspace.sexEnum.name};if(this.isTest)return this.record.push({state:1,str:this.t("isTest.src"),src:"https://code-create.com.hk/aida/"}),this.createTimer(),this.textScroll(),void(this.chatCentent="");D.V.axiosPost(D.V.httpUrls.chatStreamTest,t).then((e=>{e&&(null!=e.chatRobotLibraryList?this.record.push({state:1,img:e.chatRobotLibraryList}):this.record.push({state:1,str:e.output}),sessionStorage.setItem("record",JSON.stringify(this.record)),this.createTimer(),this.textScroll(),this.getBloodBars())})).catch((e=>{})),this.chatCentent=""},setDriver(){this.driver__.driver&&($.RX.moveNext(),this.robotTop=!1,this.robotInput=!1)},removeDriver(){if(this.driver__.driver){$.RX.destroy();let e={index:0,driver:!1};this.store?.commit("setGuide",e),this.robotTop=!1,this.robotInput=!1}},likeFile(e,t,i){let o={...e,userId:this.userInfo?.userId};D.V.axiosPost(D.V.httpUrls.pictureLikeOrUnLike,o).then((e=>{null==this.record[i].img[t].id?this.record[i].img[t].id=e.id:this.record[i].img[t].id=null,sessionStorage.setItem("record",JSON.stringify(this.record))})).catch((e=>{}))},createTimer(){(this.robotTop||this.robotInput)&&(this.clearTimer(),this.timeTop=setInterval((()=>{this.robotTop=!1}),15e3),this.timeInput=setInterval((()=>{this.robotInput=!1}),1e4))},clearTimer(){clearInterval(this.timeTop),clearInterval(this.timeInput)}}}),M=i(3744);const O=(0,M.Z)(W,[["render",T],["__scopeId","data-v-18c2f2ff"]]);var G=O}}]); |