Files
aida_front/dist/js/138.1827dbe2.js
X1627315083 4cb91f3f06 fix
2023-12-01 17:14:33 +08:00

1 line
55 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[138],{4924:function(e,t,i){i.d(t,{Z:function(){return d}});var o=i(6252),s={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"},n=s,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 c=function(e,t){var i=a({},e,t.attrs);return(0,o.Wm)(r.Z,a({},i,{icon:n}),null)};c.displayName="UserOutlined",c.inheritAttrs=!1;var d=c},4272:function(e,t,i){i.d(t,{RX:function(){return te},_y:function(){return se}});let o={};function s(e={}){o={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 n(e){return e?o[e]:o}function r(e,t,i,o){return(e/=o/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t}function a(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&&p(e)))}function l(e){if(!e||d(e))return;const t=n("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 d(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 p(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}let m={};function u(e,t){m[e]=t}function h(e){return e?m[e]:m}function v(){m={}}let w={};function g(e,t){w[e]=t}function _(e){var t;null==(t=w[e])||t.call(w)}function y(){w={}}function k(e,t,i,o){let s=h("__activeStagePosition");const n=s||i.getBoundingClientRect(),a=o.getBoundingClientRect(),l=r(e,n.x,a.x-n.x,t),c=r(e,n.y,a.y-n.y,t),d=r(e,n.width,a.width-n.width,t),p=r(e,n.height,a.height-n.height,t);s={x:l,y:c,width:d,height:p},C(s),u("__activeStagePosition",s)}function f(e){if(!e)return;const t=e.getBoundingClientRect(),i={x:t.x,y:t.y,width:t.width,height:t.height};u("__activeStagePosition",i),C(i)}function b(){const e=h("__activeStagePosition"),t=h("__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 x(e){const t=I(e);document.body.appendChild(t),W(t,(e=>{"path"===e.target.tagName&&_("overlayClick")})),u("__overlaySvg",t)}function C(e){const t=h("__overlaySvg");if(!t)return void x(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 I(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 s=document.createElementNS("http://www.w3.org/2000/svg","path");return s.setAttribute("d",S(e)),s.style.fill=n("overlayColor")||"rgb(0,0,0)",s.style.opacity=`${n("overlayOpacity")}`,s.style.pointerEvents="auto",s.style.cursor="auto",o.appendChild(s),o}function S(e){const t=window.innerWidth,i=window.innerHeight,o=n("stagePadding")||0,s=n("stageRadius")||0,r=e.width+2*o,a=e.height+2*o,l=Math.min(s,r/2,a/2),c=Math.floor(Math.max(l,0)),d=e.x-o+c,p=e.y-o,m=r-2*c,u=a-2*c;return`M${t},0L0,0L0,${i}L${t},${i}L${t},0Z\n M${d},${p} h${m} a${c},${c} 0 0 1 ${c},${c} v${u} a${c},${c} 0 0 1 -${c},${c} h-${m} a${c},${c} 0 0 1 -${c},-${c} v-${u} a${c},${c} 0 0 1 ${c},-${c} z`}function T(){const e=h("__overlaySvg");e&&e.remove()}function L(){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 E(e){const{element:t}=e;let i="string"==typeof t?document.querySelector(t):t;i||(i=L()),H(i,e)}function D(){const e=h("__activeElement"),t=h("__activeStep");e&&(f(e),b(),G(e,t))}function H(e,t){const i=Date.now(),o=h("__activeStep"),s=h("__activeElement")||e,r=!s||s===e,a="driver-dummy-element"===e.id,c="driver-dummy-element"===s.id,d=n("animate"),p=t.onHighlightStarted||n("onHighlightStarted"),m=(null==t?void 0:t.onHighlighted)||n("onHighlighted"),v=(null==o?void 0:o.onDeselected)||n("onDeselected"),w=n(),g=h();!r&&v&&v(c?void 0:s,o,{config:w,state:g}),p&&p(a?void 0:e,t,{config:w,state:g});const _=!r&&d;let y=!1;A(),u("previousStep",o),u("previousElement",s),u("activeStep",t),u("activeElement",e);const b=()=>{if(h("__transitionCallback")!==b)return;const r=Date.now()-i,l=400-r<=200;t.popover&&l&&!y&&_&&(U(e,t),y=!0),n("animate")&&r<400?k(r,400,s,e):(f(e),m&&m(a?void 0:e,t,{config:n(),state:h()}),u("__transitionCallback",void 0),u("__previousStep",o),u("__previousElement",s),u("__activeStep",t),u("__activeElement",e)),window.requestAnimationFrame(b)};u("__transitionCallback",b),window.requestAnimationFrame(b),l(e),!_&&t.popover&&U(e,t),s.classList.remove("driver-active-element","driver-no-interaction"),s.removeAttribute("aria-haspopup"),s.removeAttribute("aria-expanded"),s.removeAttribute("aria-controls"),n("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 N(){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 P(){const e=h("__resizeTimeout");e&&window.cancelAnimationFrame(e),u("__resizeTimeout",window.requestAnimationFrame(D))}function $(e){var t;if(!h("isInitialized")||"Tab"!==e.key&&9!==e.keyCode)return;const i=h("__activeElement"),o=null==(t=h("popover"))?void 0:t.wrapper,s=a([...o?[o]:[],...i?[i]:[]]),n=s[0],r=s[s.length-1];if(e.preventDefault(),e.shiftKey){const e=s[s.indexOf(document.activeElement)-1]||r;null==e||e.focus()}else{const e=s[s.indexOf(document.activeElement)+1]||n;null==e||e.focus()}}function B(e){var t;(null==(t=n("allowKeyboardControl"))||t)&&("Escape"===e.key?_("escapePress"):"ArrowRight"===e.key?_("arrowRightPress"):"ArrowLeft"===e.key&&_("arrowLeftPress"))}function W(e,t,i){const o=(t,o)=>{const s=t.target;e.contains(s)&&((!i||i(s))&&(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 M(){window.addEventListener("keyup",B,!1),window.addEventListener("keydown",$,!1),window.addEventListener("resize",P),window.addEventListener("scroll",P)}function O(){window.removeEventListener("keyup",B),window.removeEventListener("resize",P),window.removeEventListener("scroll",P)}function A(){const e=h("popover");e&&(e.wrapper.style.display="none")}function U(e,t){var i,o;let s=h("popover");s&&document.body.removeChild(s.wrapper),s=F(),document.body.appendChild(s.wrapper);const{title:r,description:c,showButtons:d,disableButtons:p,showProgress:m,nextBtnText:v=n("nextBtnText")||"Next &rarr;",prevBtnText:w=n("prevBtnText")||"&larr; Previous",progressText:g=n("progressText")||"{current} of {total}"}=t.popover||{};s.nextButton.innerHTML=v,s.previousButton.innerHTML=w,s.progress.innerHTML=g,r?(s.title.innerHTML=r,s.title.style.display="block"):s.title.style.display="none",c?(s.description.innerHTML=c,s.description.style.display="block"):s.description.style.display="none";const y=d||n("showButtons"),k=m||n("showProgress")||!1,f=(null==y?void 0:y.includes("next"))||(null==y?void 0:y.includes("previous"))||k;s.closeButton.style.display=y.includes("close")?"block":"none",f?(s.footer.style.display="flex",s.progress.style.display=k?"block":"none",s.nextButton.style.display=y.includes("next")?"block":"none",s.previousButton.style.display=y.includes("previous")?"block":"none"):s.footer.style.display="none";const b=p||n("disableButtons")||[];null!=b&&b.includes("next")&&(s.nextButton.disabled=!0,s.nextButton.classList.add("driver-popover-btn-disabled")),null!=b&&b.includes("previous")&&(s.previousButton.disabled=!0,s.previousButton.classList.add("driver-popover-btn-disabled")),null!=b&&b.includes("close")&&(s.closeButton.disabled=!0,s.closeButton.classList.add("driver-popover-btn-disabled"));const x=s.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=s.arrow;C.className="driver-popover-arrow";const I=(null==(i=t.popover)?void 0:i.popoverClass)||n("popoverClass")||"";x.className=`driver-popover ${I}`.trim(),W(s.wrapper,(i=>{var o,s,r;const a=i.target,l=(null==(o=t.popover)?void 0:o.onNextClick)||n("onNextClick"),c=(null==(s=t.popover)?void 0:s.onPrevClick)||n("onPrevClick"),d=(null==(r=t.popover)?void 0:r.onCloseClick)||n("onCloseClick");return a.classList.contains("driver-popover-next-btn")?l?l(e,t,{config:n(),state:h()}):_("nextClick"):a.classList.contains("driver-popover-prev-btn")?c?c(e,t,{config:n(),state:h()}):_("prevClick"):a.classList.contains("driver-popover-close-btn")?d?d(e,t,{config:n(),state:h()}):_("closeClick"):void 0}),(e=>!(null!=s&&s.description.contains(e))&&!(null!=s&&s.title.contains(e))&&"string"==typeof e.className&&e.className.includes("driver-popover"))),u("popover",s);const S=(null==(o=t.popover)?void 0:o.onPopoverRender)||n("onPopoverRender");S&&S(s,{config:n(),state:h()}),G(e,t),l(x);const T=e.classList.contains("driver-dummy-element"),L=a([x,...T?[]:[e]]);L.length>0&&L[0].focus()}function z(){const e=h("popover");if(null==e||!e.wrapper)return;const t=e.wrapper.getBoundingClientRect(),i=n("stagePadding")||0,o=n("popoverOffset")||0;return{width:t.width+i+o,height:t.height+i+o,realWidth:t.width,realHeight:t.height}}function q(e,t){const{elementDimensions:i,popoverDimensions:o,popoverPadding:s,popoverArrowDimensions:n}=t;return"start"===e?Math.max(Math.min(i.top-s,window.innerHeight-o.realHeight-n.width),n.width):"end"===e?Math.max(Math.min(i.top-(null==o?void 0:o.realHeight)+i.height+s,window.innerHeight-(null==o?void 0:o.realHeight)-n.width),n.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)-n.width),n.width):0}function V(e,t){const{elementDimensions:i,popoverDimensions:o,popoverPadding:s,popoverArrowDimensions:n}=t;return"start"===e?Math.max(Math.min(i.left-s,window.innerWidth-o.realWidth-n.width),n.width):"end"===e?Math.max(Math.min(i.left-(null==o?void 0:o.realWidth)+i.width+s,window.innerWidth-(null==o?void 0:o.realWidth)-n.width),n.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)-n.width),n.width):0}function G(e,t){const i=h("popover");if(!i)return;const{align:o="start",side:s="left"}=(null==t?void 0:t.popover)||{},r=o,a="driver-dummy-element"===e.id?"over":s,l=n("stagePadding")||0,c=z(),d=i.arrow.getBoundingClientRect(),p=e.getBoundingClientRect(),m=p.top-c.height;let u=m>=0;const v=window.innerHeight-(p.bottom+c.height);let w=v>=0;const g=p.left-c.width;let _=g>=0;const y=window.innerWidth-(p.right+c.width);let k=y>=0;const f=!u&&!w&&!_&&!k;let b=a;if("top"===a&&u?k=_=w=!1:"bottom"===a&&w?k=_=u=!1:"left"===a&&_?k=u=w=!1:"right"===a&&k&&(_=u=w=!1),"over"===a){const e=window.innerWidth/2-c.realWidth/2,t=window.innerHeight/2-c.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==c?void 0:c.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(_){const e=Math.min(g,window.innerWidth-(null==c?void 0:c.realWidth)-d.width),t=q(r,{elementDimensions:p,popoverDimensions:c,popoverPadding:l,popoverArrowDimensions:d});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==c?void 0:c.realWidth)-d.width),t=q(r,{elementDimensions:p,popoverDimensions:c,popoverPadding:l,popoverArrowDimensions:d});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-c.realHeight-d.width);let t=V(r,{elementDimensions:p,popoverDimensions:c,popoverPadding:l,popoverArrowDimensions:d});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(v,window.innerHeight-(null==c?void 0:c.realHeight)-d.width);let t=V(r,{elementDimensions:p,popoverDimensions:c,popoverPadding:l,popoverArrowDimensions:d});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"):R(r,b,e)}function R(e,t,i){const o=h("popover");if(!o)return;const s=i.getBoundingClientRect(),n=z(),r=o.arrow,a=n.width,l=window.innerWidth,c=s.width,d=s.left,p=n.height,m=window.innerHeight,u=s.top,v=s.height;r.className="driver-popover-arrow";let w=t,g=e;"top"===t?(d+c<=0?(w="right",g="end"):d+c-a<=0&&(w="top",g="start"),d>=l?(w="left",g="end"):d+a>=l&&(w="top",g="end")):"bottom"===t?(d+c<=0?(w="right",g="start"):d+c-a<=0&&(w="bottom",g="start"),d>=l?(w="left",g="start"):d+a>=l&&(w="bottom",g="end")):"left"===t?(u+v<=0?(w="bottom",g="end"):u+v-p<=0&&(w="left",g="start"),u>=m?(w="top",g="end"):u+p>=m&&(w="left",g="end")):"right"===t&&(u+v<=0?(w="bottom",g="start"):u+v-p<=0&&(w="right",g="start"),u>=m?(w="top",g="start"):u+p>=m&&(w="right",g="end")),w?(r.classList.add(`driver-popover-arrow-side-${w}`),r.classList.add(`driver-popover-arrow-align-${g}`)):r.classList.add("driver-popover-arrow-none")}function F(){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 s=document.createElement("button");s.type="button",s.classList.add("driver-popover-close-btn"),s.setAttribute("aria-label","Close"),s.innerHTML="&times;";const n=document.createElement("footer");n.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="&larr; Previous";const c=document.createElement("button");return c.type="button",c.classList.add("driver-popover-next-btn"),c.innerHTML="Next &rarr;",a.appendChild(l),a.appendChild(c),n.appendChild(r),n.appendChild(a),e.appendChild(s),e.appendChild(t),e.appendChild(i),e.appendChild(o),e.appendChild(n),{wrapper:e,arrow:t,title:i,description:o,footer:n,previousButton:l,nextButton:c,closeButton:s,footerButtons:a,progress:r}}function Z(){var e;const t=h("popover");t&&(null==(e=t.wrapper.parentElement)||e.removeChild(t.wrapper))}function j(e={}){function t(){n("allowClose")&&p()}function i(){const e=h("activeIndex"),t=n("steps")||[];if("undefined"==typeof e)return;const i=e+1;t[i]?d(i):p()}function o(){const e=h("activeIndex"),t=n("steps")||[];if("undefined"==typeof e)return;const i=e-1;t[i]?d(i):p()}function r(e){(n("steps")||[])[e]?d(e):p()}function a(){var e;if(h("__transitionCallback"))return;const t=h("activeIndex"),i=h("__activeStep"),s=h("__activeElement");if("undefined"==typeof t||"undefined"==typeof i||"undefined"==typeof h("activeIndex"))return;const r=(null==(e=i.popover)?void 0:e.onPrevClick)||n("onPrevClick");if(r)return r(s,i,{config:n(),state:h()});o()}function l(){var e;if(h("__transitionCallback"))return;const t=h("activeIndex"),o=h("__activeStep"),s=h("__activeElement");if("undefined"==typeof t||"undefined"==typeof o)return;const r=(null==(e=o.popover)?void 0:e.onNextClick)||n("onNextClick");if(r)return r(s,o,{config:n(),state:h()});i()}function c(){h("isInitialized")||(u("isInitialized",!0),document.body.classList.add("driver-active",n("animate")?"driver-fade":"driver-simple"),M(),g("overlayClick",t),g("escapePress",t),g("arrowLeftPress",a),g("arrowRightPress",l))}function d(e=0){var t,i,o,s,r,a,l,c;const m=n("steps");if(!m)return console.error("No steps to drive through"),void p();if(!m[e])return void p();u("__activeOnDestroyed",document.activeElement),u("activeIndex",e);const h=m[e],v=m[e+1],w=m[e-1],g=(null==(t=h.popover)?void 0:t.doneBtnText)||n("doneBtnText")||"Done",_=n("allowClose"),y="undefined"!=typeof(null==(i=h.popover)?void 0:i.showProgress)?null==(o=h.popover)?void 0:o.showProgress:n("showProgress"),k=((null==(s=h.popover)?void 0:s.progressText)||n("progressText")||"{{current}} of {{total}}").replace("{{current}}",`${e+1}`).replace("{{total}}",`${m.length}`),f=(null==(r=h.popover)?void 0:r.showButtons)||n("showButtons"),b=["next","previous",..._?["close"]:[]].filter((e=>!(null!=f&&f.length)||f.includes(e))),x=(null==(a=h.popover)?void 0:a.onNextClick)||n("onNextClick"),C=(null==(l=h.popover)?void 0:l.onPrevClick)||n("onPrevClick"),I=(null==(c=h.popover)?void 0:c.onCloseClick)||n("onCloseClick");E({...h,popover:{showButtons:b,nextBtnText:v?void 0:g,disableButtons:[...w?[]:["previous"]],showProgress:y,progressText:k,onNextClick:x||(()=>{v?d(e+1):p()}),onPrevClick:C||(()=>{d(e-1)}),onCloseClick:I||(()=>{p()}),...(null==h?void 0:h.popover)||{}}})}function p(e=!0){const t=h("__activeElement"),i=h("__activeStep"),o=h("__activeOnDestroyed"),s=n("onDestroyStarted");if(e&&s){const e=!t||"driver-dummy-element"===(null==t?void 0:t.id);return void s(e?void 0:t,i,{config:n(),state:h()})}const r=(null==i?void 0:i.onDeselected)||n("onDeselected"),a=n("onDestroyed");if(document.body.classList.remove("driver-active","driver-fade","driver-simple"),O(),Z(),N(),T(),y(),v(),t&&i){const e="driver-dummy-element"===t.id;r&&r(e?void 0:t,i,{config:n(),state:h()}),a&&a(e?void 0:t,i,{config:n(),state:h()})}o&&o.focus()}return s(e),{isActive:()=>h("isInitialized")||!1,refresh:P,drive:(e=0)=>{c(),d(e)},setConfig:s,setSteps:e=>{v(),s({...n(),steps:e})},getConfig:n,getState:h,getActiveIndex:()=>h("activeIndex"),isFirstStep:()=>0===h("activeIndex"),isLastStep:()=>{const e=n("steps")||[],t=h("activeIndex");return void 0!==t&&t===e.length-1},getActiveStep:()=>h("activeStep"),getActiveElement:()=>h("activeElement"),getPreviousElement:()=>h("previousElement"),getPreviousStep:()=>h("previousStep"),moveNext:i,movePrevious:o,moveTo:r,hasNextStep:()=>{const e=n("steps")||[],t=h("activeIndex");return void 0!==t&&e[t+1]},hasPreviousStep:()=>{const e=n("steps")||[],t=h("activeIndex");return void 0!==t&&e[t-1]},highlight:e=>{c(),E({...e,popover:e.popover?{showButtons:[],showProgress:!1,progressText:"",...e.popover}:void 0})},destroy:()=>{p(!1)}}}var Y=i(2339),K=i(3907);let J,Q,X=0,ee={index:X,driver:!0};const te=j({steps:[{element:".Guide_1_1",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",popover:{title:"",description:"Upload two print images 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_2",popover:{title:"",description:"Upload two sketches for your collection on this page"}},{element:".Guide_1_13",popover:{title:"",description:"Upload or select two sketches for your collection on this page."}},{element:".Guide_1_13_1",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_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."}},{element:".Guide_1_26",popover:{title:"",description:"Click here to finalize your modification."}},{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."}},{element:".Guide_1_29",popover:{title:"",description:"Select a mannequin of your choice from our system library."}},{element:".Guide_1_30",popover:{title:"",description:"Click the Redesign button to generate new results using the selected mannequin."}},{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/" target="_blank"></a>'}}],allowClose:!1,showButtons:!1,stagePadding:10,stageRadius:5,allowKeyboardControl:!0,disableActiveInteraction:!1,overlayOpacity:.4,overlay:!0,doneBtnText:"✕",onPopoverRender:(e,t)=>{Q&&Q.classList.remove("Guide_"),e.previousButton.style.display="none";let i=document.querySelector("body");t.state.activeIndex>=2&&t.state.activeIndex<3?t.config.stagePadding=0:t.config.stagePadding=10,te.isLastStep()?(e.footer.style.display="block",i.classList.add("showEvents"),ie(t.state.activeElement)):(e.footer.style.display="none",oe(t.state.activeElement),i.classList.remove("showEvents")),X=te.getState().activeIndex,ee={index:X,driver:!0},J?.commit("setGuide",ee),Q=t.state.activeElement,Q.classList.add("Guide_")},onDestroyStarted:()=>{ee={index:X,driver:!1},J?.commit("setGuide",ee),(0,Y.d8)("isBeginner",!1),te.destroy()},onDestroyed:()=>{}});function ie(e){e.style.posiiton="relative";const t=document.getElementsByClassName("driver-mask__")?.[0];if(t);else{const t=document.createElement("div");t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.width="100%",t.style.height="100%",t.style.backgroundColor="rgba(0, 0, 0, 0)",t.style.zIndex="9999",t.classList.add("driver-mask__"),e.appendChild(t)}}function oe(e){const t=document.getElementsByClassName("driver-mask__")?.[0];t&&t.remove()}const se=()=>{let e,t=JSON.parse((0,Y.ej)("isBeginner"));console.log(t),t?(te.drive(),e={index:X,driver:!0}):(te.destroy(),e={index:X,driver:!1}),te.destroy(),e={index:X,driver:!1},J=(0,K.oR)(),J?.commit("setGuide",e)}},2307:function(e,t,i){i.d(t,{Z:function(){return Ze}});var o=i(6252),s=i(3577),n=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"},c={class:"header_component"},d={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))),g={class:"header_user_content marLeft2"},_={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"],S={class:"select_item_des"},T={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 A(e,t,i,a,A,U){const z=(0,o.up)("Habit"),q=(0,o.up)("VerificationCodeInput"),V=(0,o.up)("a-modal");return(0,o.wg)(),(0,o.iD)("div",l,[(0,o._)("header",c,[(0,o._)("div",d,[p,(0,o._)("div",m,[e.isTest?((0,o.wg)(),(0,o.iD)("div",u,[h,(0,o.Uk)(" "+(0,s.zw)(e.$t("Header.hello"))+"@"+(0,s.zw)(e.$t("isTest.userName")),1)])):((0,o.wg)(),(0,o.iD)("div",v,[w,(0,o.Uk)(" "+(0,s.zw)(e.$t("Header.hello"))+"@"+(0,s.zw)(e.userInfo?.userName),1)])),(0,o._)("div",{class:(0,s.C_)(["icon","iconfont","icon-xiala",e.isShowOperate?"icon_rotate":""]),onClick:t[0]||(t[0]=(0,n.iM)((t=>e.changeShowOperateContent()),["stop"]))},null,2)]),(0,o._)("div",g,[(0,o._)("span",_,(0,s.zw)(e.$t("Header.language")),1),(0,o._)("div",{class:(0,s.C_)(["icon","iconfont","icon-xiala",e.isLanguage?"icon_rotate":""]),onClick:t[1]||(t[1]=(0,n.iM)((t=>e.changeLanguage()),["stop"]))},null,2)])]),(0,o._)("nav",y,[(0,o._)("div",{class:(0,s.C_)(["nav_item","home"===e.$route.name?"select_nav":""]),onClick:t[2]||(t[2]=t=>e.turnToPage("home"))},(0,s.zw)(e.$t("Header.HOME")),3),(0,o._)("div",{class:(0,s.C_)(["nav_item","library"===e.$route.name?"select_nav":""]),onClick:t[3]||(t[3]=t=>e.turnToPage("library"))},(0,s.zw)(e.$t("Header.LIBRARY")),3),(0,o._)("div",{class:(0,s.C_)(["nav_item","history"===e.$route.name?"select_nav":""]),onClick:t[4]||(t[4]=t=>e.turnToPage("history"))},(0,s.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)(z)])]),(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,s.zw)(e.$t("Header.logOff")),1)])],512),[[n.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",S,(0,s.zw)(t.name),1)],8,I)))),256))],512),[[n.F8,e.isLanguage]]),(0,o.Wm)(V,{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,s.zw)(e.$t("Header.emailContent")),1),(0,o._)("div",D,(0,s.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,s.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,n.D2)((t=>e.emailNextStepFun()),["enter"]))},null,544),[[n.nr,e.email]])]),(0,o._)("div",{class:"bind_email_submit_button",onClick:t[9]||(t[9]=t=>e.emailNextStepFun())},(0,s.zw)(e.$t("Header.NextStep")),1)],512),[[n.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,s.zw)(e.$t("Header.verification")),1)]),(0,o._)("div",W,[(0,o._)("div",M,(0,s.zw)(e.$t("Header.SentTo"))+" "+(0,s.zw)(e.email),1),(0,o._)("div",O,[(0,o.wy)((0,o._)("span",null,(0,s.zw)(e.time)+"s",513),[[n.F8,e.time]]),(0,o.wy)((0,o._)("span",{onClick:t[11]||(t[11]=t=>e.emailNextStepFun())},(0,s.zw)(e.$t("Header.Resend"))+"Resend",513),[[n.F8,!e.time]])])]),(0,o.Wm)(q,{ct:e.emailCode,onSendCaptcha:t[12]||(t[12]=t=>e.submitBindEmail(t))},null,8,["ct"])],512),[[n.F8,2===e.bindEmailStep]])]))])),_:2},[e.isHaveBindEmail||1!==e.bindEmailStep?void 0:{name:"closeIcon",fn:(0,o.w5)((()=>[(0,o._)("div",T,(0,s.zw)(e.$t("Header.skip")),1)]))}]),1032,["visible"])])}var U=i(2262),z=i(7332),q=i(2339),V=i(9632);const G=e=>((0,o.dD)("data-v-20a55046"),e=e(),(0,o.Cn)(),e),R={class:"habit"},F={class:"habit_mask"},Z=G((()=>(0,o._)("i",{class:"fi fi-bs-angle-down"},null,-1))),j={class:"habit_content"},Y={class:"habit_title"},K={class:"habit_intro"},J={class:"habit_type",trigger:"['click']"},Q={class:"habit_model_show habit_workspace_show"},X={class:"habit_model_list"},ee=["onClick"],te=["onClick"],ie=["onClick"],oe=["onClick"],se={class:"habit_Overal_Single"},ne={class:"habit_model_show habit_sex_show"},re={class:"habit_model_list"},ae=["onClick"],le={class:"habit_Overal_Single"},ce={class:"habit_habit_singleton"},de={class:"habit_model_show habit_singleton_show"},pe={class:"habit_model_list"},me=["onClick"],ue={class:"habit_System_Designer"},he={class:"habit_System_Designer_text_max"},ve={class:"habit_System_Designer_text"},we={class:"habit_System_Designer_text"},ge={class:"habit_model Guide_1_28"},_e={class:"habit_btn"},ye={class:"model_current"},ke={class:"model_text"},fe={class:"model_img"},be=["src"],xe={class:"model_Designer"},Ce={class:"model_text"},Ie={class:"model_img"},Se={class:"model_img_item"},Te=["src","onClick"],Le={class:"model_img"},Ee={class:"model_img_item"},De=["src","onClick"];function He(e,t,i,r,a,l){const c=(0,o.up)("UserOutlined"),d=(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",R,[(0,o.wy)((0,o._)("div",F,null,512),[[n.F8,e.openType.habit]]),(0,o._)("div",{class:"habit_button Guide_1_27",onClick:t[0]||(t[0]=(0,n.iM)((t=>e.setOpenType("habit")),["stop"]))},[(0,o.Uk)((0,s.zw)(e.$t("Habit.Workspace"))+" ",1),Z]),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",j,[(0,o._)("div",Y,[(0,o._)("h3",null,(0,s.zw)(e.$t("Habit.WorkspaceSetting")),1),(0,o._)("div",K,(0,s.zw)(e.$t("Habit.settingWorkspace")),1)]),(0,o._)("div",J,[(0,o.Wm)(m,{placement:"bottomRight",onClick:t[1]||(t[1]=(0,n.iM)((t=>e.setOpenType("workspace")),["stop"]))},{default:(0,o.w5)((()=>[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o.Wm)(c),(0,o.Uk)(" "+(0,s.zw)(e.workspaceItem.workSpaceName)+" ",1),(0,o.Wm)(d)])),_:1})])),_:1}),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",Q,[(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,n.iM)((t=>e.setWorkspace(i.id)),["stop"])},(0,s.zw)(i.workSpaceName),9,ee),[[n.F8,!i.putName]]),(0,o.wy)((0,o._)("input",{type:"text","onUpdate:modelValue":t[2]||(t[2]=t=>e.workspaceItemName=t)},null,512),[[n.F8,i.putName],[n.nr,e.workspaceItemName]]),(0,o.wy)((0,o._)("i",{onClick:(0,n.iM)((t=>e.putName(r,"put")),["stop"]),class:"fi fi-rr-edit"},null,8,te),[[n.F8,!i.putName]]),(0,o.wy)((0,o._)("i",{onClick:(0,n.iM)((t=>e.putName(r,"affirm")),["stop"]),class:"fi fi-br-check"},null,8,ie),[[n.F8,i.putName]]),(0,o._)("i",{onClick:(0,n.iM)((t=>e.putName(r,"delete")),["stop"]),class:"fi fi-rr-trash"},null,8,oe)])))),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),[[n.F8,e.openType.addWorkspace],[n.nr,e.workspaceItemName]]),(0,o.wy)((0,o._)("i",{onClick:t[4]||(t[4]=(0,n.iM)((t=>e.putName(-1,"affirm")),["stop"])),class:"fi fi-br-check"},null,512),[[n.F8,e.openType.addWorkspace]]),(0,o.wy)((0,o._)("div",null,"+",512),[[n.F8,!e.openType.addWorkspace]])])])])),[[v,e.openType.workspace]])]),(0,o._)("div",se,[(0,o.Wm)(m,{onClick:t[6]||(t[6]=(0,n.iM)((t=>e.setOpenType("sex")),["stop"]))},{default:(0,o.w5)((()=>[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o.Wm)(c),(0,o.Uk)(" "+(0,s.zw)(e.workspaceItem?.sexEnum?.value),1),(0,o.Wm)(d)])),_:1})])),_:1}),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",ne,[(0,o._)("ul",re,[((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,n.iM)((i=>e.setSex(t)),["stop"])},(0,s.zw)(t.value),9,ae)])))),256))])])),[[v,e.openType.sex]])]),(0,o._)("div",le,[(0,o._)("div",{class:(0,s.C_)(["habit_Overal_Single_text",{active:!e.workspaceItem.overallSingle}])},(0,s.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,s.C_)(["habit_Overal_Single_text",{active:e.workspaceItem.overallSingle}])},(0,s.zw)(e.$t("Habit.Single")),3)]),(0,o.wy)((0,o._)("div",ce,[(0,o.Wm)(m,{onClick:t[8]||(t[8]=(0,n.iM)((t=>e.setOpenType("singleton")),["stop"]))},{default:(0,o.w5)((()=>[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o.Wm)(c),(0,o.Uk)(" "+(0,s.zw)(e.workspaceItem?.positionEnum?.value)+" ",1),(0,o.Wm)(d)])),_:1})])),_:1}),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",de,[(0,o._)("ul",pe,[((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,n.iM)((i=>e.setSingle(t)),["stop"])},(0,s.zw)(t.value),9,me)])))),256))])])),[[v,e.openType.singleton]])],512),[[n.F8,e.workspaceItem.overallSingle]]),(0,o._)("div",ue,[(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",he,[(0,o._)("div",ve,(0,s.zw)(e.$t("Habit.System")),1),(0,o._)("div",we,(0,s.zw)(e.$t("Habit.Designer")),1)])]),(0,o._)("div",ge,[(0,o.Wm)(m,{placement:"bottomRight",trigger:"['click']",onClick:t[10]||(t[10]=(0,n.iM)((t=>e.setOpenType("model")),["stop"]))},{default:(0,o.w5)((()=>[(0,o.Wm)(p,null,{default:(0,o.w5)((()=>[(0,o.Wm)(c),(0,o.Uk)(" "+(0,s.zw)(e.$t("Habit.Mannequin"))+" ",1),(0,o.Wm)(d)])),_:1})])),_:1})]),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",{id:"modelShow",class:(0,s.C_)(["habit_model_show Guide_1_29",[e.driver__.driver?"showEvents":""]])},[(0,o._)("div",_e,[(0,o._)("div",ye,[(0,o._)("div",ke,(0,s.zw)(e.$t("Habit.Current")),1),(0,o._)("div",fe,[(0,o._)("img",{src:e.workspaceItem.mannequinUrl,alt:""},null,8,be)])]),(0,o._)("div",xe,[(0,o._)("div",Ce,[(0,o._)("div",{class:(0,s.C_)(["habit_System_Seleves_text",{active:!e.systemSeleves}])},(0,s.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,s.C_)(["habit_System_Seleves_text",{active:e.systemSeleves}])},(0,s.zw)(e.$t("Habit.User")),3)]),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",Ie,[(0,o._)("div",Se,[((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,Te)])))),128))])])),[[n.F8,e.systemSeleves],[w]]),(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",Le,[(0,o._)("div",Ee,[((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,De)])))),128))])])),[[n.F8,!e.systemSeleves],[w]])])])],2)),[[v,e.openType.model]])])),[[v,e.openType.habit]])])}var Ne=i(3907),Pe=i(7849),$e=i(4924),Be=i(6214),We=i(327),Me=i(1446),Oe=i(8302),Ae=i(4272),Ue=i(8552),ze=(0,o.aZ)({components:{DownOutlined:Pe.Z,UserOutlined:$e.Z},setup(){const e=(0,Ne.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)([{},{}]),s=(0,U.iH)(!1),n=(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)(""),c=(0,U.iH)([]),d=(0,U.iH)([]);const{t:p}=(0,Ue.QT)();return{systemSeleves:s,mannequins:i,openType:n,driver__:r,workspace:a,workspaceItem:t,workspaceItemName:l,singleTypeList:c,sex:d,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)}}},"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.sex":{handler(e,t){}},workspaceItem:{handler(e,t){this.store.commit("setWorkspace",this.workspaceItem)}}},data(){return{store:(0,Ne.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 Be.V.axiosGet(Be.V.httpUrls.workspaceenumValues,{params:{enumName:"Sex"}}).then((e=>{e&&(this.sex=e)}))},async getPosition(e){let t;t="Female"==this.workspaceItem.sexEnum.name?"FemalePosition":"MalePosition",await Be.V.axiosGet(Be.V.httpUrls.workspaceenumValues,{params:{enumName:t}}).then((t=>{t&&(this.singleTypeList=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};Be.V.axiosPost(Be.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){Be.V.axiosGet(Be.V.httpUrls.workspaceDetail,{params:{id:e}}).then((e=>{}))},getMannequins(){Be.V.axiosGet(Be.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){Be.V.axiosPost(Be.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){Be.V.axiosDelete(Be.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;We.Z.confirm({title:t.t("Habit.jsContent1"),icon:(0,o.Wm)(Oe.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)Me.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),i!=e.id&&this.driver__.driver&&(this.openType.habit=!1,(0,o.Y3)().then((()=>{Ae.RX.moveNext()}))),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((()=>{Ae.RX.moveTo(28)}))):"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&&(0,o.Y3)().then((()=>{Ae.RX.moveNext()}))):"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}}}),qe=i(3744);const Ve=(0,qe.Z)(ze,[["render",He],["__scopeId","data-v-20a55046"]]);var Ge=Ve,Re=(0,o.aZ)({components:{VerificationCodeInput:V.Z,Habit:Ge},setup(){const e=(0,Ne.oR)(),{t:t}=(0,Ue.QT)(),{locale:i}=(0,Ue.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,z.Jh)(this.email))return void Me.ZP.info(this.t("Header.jsContent1"));let e={email:this.email,operationType:"BIND_MAILBOX"};const t=Me.ZP.loading("loading",0);Be.V.axiosPost(Be.V.httpUrls.accountSendEmail,e).then((e=>{e&&(this.bindEmailStep=2,this.emailCode=["","","","","",""],this.createTimer(),t(),Me.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)?Be.V.axiosGet(Be.V.httpUrls.trialUserLogout).then((t=>{Be.V.axiosPost(Be.V.httpUrls.accountLogout,e).then((e=>{this.$router.replace("/login"),(0,q.$m)("token")}))})):Be.V.axiosPost(Be.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};Be.V.axiosPost(Be.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};Be.V.axiosPost(Be.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=We.Z.warning({title:()=>this.t("Header.jsContent3",{numTime:e.numTime}),icon:(0,o.Wm)(Oe.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;Be.V.axiosPost(Be.V.httpUrls.getUserLanguage,t).then((e=>{e&&(this.locale=e)}))},setLang(e){Be.V.axiosGet(Be.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 Fe=(0,qe.Z)(Re,[["render",A],["__scopeId","data-v-22ba4800"]]);var Ze=Fe},9206:function(e,t,i){i.d(t,{Z:function(){return W}});var o=i(6252),s=i(3577),n=i(9963),r=i.p+"img/robot.6fd62bbc.png";const a=e=>((0,o.dD)("data-v-60dd6514"),e=e(),(0,o.Cn)(),e),l={class:"robot_top",ref:"robotDom"},c={class:"robot_text"},d=["href"],p=a((()=>(0,o._)("i",{class:"fi fi-br-link-alt"},null,-1))),m=[p],u={class:"robot_img_item"},h=["src"],v={class:"delete_like_file_block"},w=["onClick"],g=["onClick"],_={class:"robot_content"},y={class:"robot_bottom"},k={class:"robot_input"},f=["placeholder"],b={class:"robot_btn"},x={class:"robot_img"};function C(e,t,i,a,p,C){const I=(0,o.Q2)("fade");return(0,o.wg)(),(0,o.iD)("div",{class:"robot",onMousemove:t[5]||(t[5]=(...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,((t,i)=>((0,o.wg)(),(0,o.iD)("div",{class:(0,s.C_)([1==t.state?"text_right":"text_left",t.img?"white":""]),ref_for:!0,ref:"robotChildDom"},[(0,o._)("div",c,[(0,o._)("span",null,[(0,o.Uk)((0,s.zw)(t.str)+" ",1),t.src?((0,o.wg)(),(0,o.iD)("a",{key:0,href:t.src,target:"_blank"},m,8,d)):(0,o.kq)("",!0)]),(0,o._)("div",{class:(0,s.C_)(["robot_img",[t.img?"img":""]])},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(t.img,((t,s)=>((0,o.wg)(),(0,o.iD)("div",u,[(0,o._)("img",{src:t.presignedUrl,alt:""},null,8,h),(0,o._)("div",v,[null==t.id?((0,o.wg)(),(0,o.iD)("i",{key:0,class:"fi fi-rr-heart",onClick:(0,n.iM)((o=>e.likeFile(t,s,i)),["stop"])},null,8,w)):((0,o.wg)(),(0,o.iD)("i",{key:1,class:"fi fi-sr-heart",onClick:(0,n.iM)((o=>e.likeFile(t,s,i)),["stop"])},null,8,g))])])))),256))],2)])],2)))),256))])),[[I,e.robotTop,"block"]]),(0,o._)("div",_,[(0,o._)("div",{style:(0,s.j5)("width:"+e.bloodBars+"%;")},null,4)]),(0,o._)("div",y,[(0,o.wy)(((0,o.wg)(),(0,o.iD)("div",k,[(0,o.wy)((0,o._)("input",{placeholder:e.$t("RobotAssist.inputContent1"),"onUpdate:modelValue":t[0]||(t[0]=t=>e.chatCentent=t),onKeydown:t[1]||(t[1]=(0,n.D2)((t=>e.roborSend()),["enter"])),onInput:t[2]||(t[2]=(...t)=>e.robotmax&&e.robotmax(...t))},null,40,f),[[n.nr,e.chatCentent]]),(0,o._)("div",b,[(0,o._)("i",{class:"fi fi-ss-paper-plane-top",onClick:t[3]||(t[3]=(...t)=>e.roborSend&&e.roborSend(...t))})])])),[[I,e.robotInput,"flex"]]),(0,o._)("div",x,[(0,o._)("img",{src:r,onClick:t[4]||(t[4]=(...t)=>e.robotBtn&&e.robotBtn(...t))})])])],32)}var I=i(2262),S=i(7849),T=i(4924),L=i(6214),E=i(2339),D=i(3907),H=i(1446),N=i(8552),P=(0,o.aZ)({components:{DownOutlined:S.Z,UserOutlined:T.Z},setup(){const e=(0,I.iH)(null),t=(0,I.iH)(null);let i=(0,I.iH)("");const o=(0,I.iH)(!1),s=(0,I.iH)(!1);let n=0,r=0,a=(0,I.iH)([]);const l={};let c=(0,I.iH)(0),{t:d}=(0,N.QT)(),p=(0,I.iH)(),m=(0,D.oR)(),u=(0,I.iH)({});return{robotTop:o,robotInput:s,chatCentent:i,record:a,robotDom:e,robotChildDom:t,timeTop:n,timeInput:r,userInfo:l,bloodBars:c,t:d,isTest:p,store:m,workspace:u}},data(){return{}},mounted(){this.textScroll();let e=(0,E.ej)("userInfo"),t=(0,E.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(){L.V.axiosGet(L.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 H.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="");L.V.axiosPost(L.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=""},likeFile(e,t,i){let o={...e,userId:this.userInfo?.userId};L.V.axiosPost(L.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)}}}),$=i(3744);const B=(0,$.Z)(P,[["render",C],["__scopeId","data-v-60dd6514"]]);var W=B}}]);