1import{T as h,u as $,a as B,b as I,c as P,d as K,_ as N,e as W}from"./App-Pf2BSsxl.js";import{aF as A,l as G,s as Y,R as O,d as R,y as c,F as m,bW as q,C as T,D as F,a3 as Q,A as _,aj as e,z as p,aI as g,aJ as j,av as L,B as M,aC as D,ac as X,bf as Z,aA as J,az as E,_ as H,at as tt,o as et,a5 as ot,bC as S,ci as st,a7 as b}from"./entry-B6z6W5yR.js";import{A as nt}from"./arrow-down-LLIkdpd1.js";import"./v3-BlBWXSL8.js";function v(t,o){return A().$t(t,o)}function at(){return{[h.Super]:v("tutorial.super")||"Super Sign",[h.Tf]:v("tutorial.tf")||"TF Sign",[h.TutorialIos]:v("tutorial.tutorialIOS")||"Profile Sign",[h.EnterPrise]:v("tutorial.enterPrise")||"Enterprise Sign"}}function rt(){const t=O({show:!1,active:h.Super}),o=Y([]);function r(i){const{tutorial:s=[],tutorialMap:a}=B().getTemplateData()??{};console.log("onBeforeMount",s,a),i.active?(o.value=[a[i.active]],t.active=i.active):(o.value=s.filter(n=>n.value==I.ON),t.active=i.active??o.value[0]?.name),t.show=i.show,console.log(i)}$().on(r);const f=G(()=>{const i={content:"",isImage:!1},s=o.value.find(a=>a.name==t.active);return s==null||(i.content=s.type==P.SYSTEM?s.system:s.custom,i.isImage=/\.(png|jpg|jpeg|gif|avif)$/i.test(i.content)),i});return{data:t,tutorialList:o,activeContent:f}}const it={class:"tutorial-warp flex flex-column"},lt={class:"header hcenter"},ct={class:"flex-con vhcenter"},ut=["onClick","textContent"],ft={class:"flex-base content-warp scroll-container"},pt=["innerHTML"],dt=R({name:"TutorialModule",__name:"index",setup(t){const o=at(),{data:r,tutorialList:f,activeContent:i}=rt();return K(E(r,"show")),(s,a)=>{const n=N;return c(),m(q,{to:"body",defer:""},[T(J,{name:"tutorial"},{default:F(()=>[Q(_("section",it,[_("header",lt,[_("div",{class:"header-item vhcenter",onClick:a[0]||(a[0]=l=>e(r).show=!1)},[T(e(nt),{class:"svg-icon back-icon"}
1)]),_("div",ct,[(c(!0),p(g,null,j(e(f),l=>(c(),p("div",{key:l.name,class:D(["tab-item text-warp",{"tab-active":e(r).active==l.name}]),onClick:u=>e(r).active=l.name,textContent:M(e(o)[l.name]),style:L({"max-width":`${99.9/e(f).length}%`})},null,14,ut))),128))]),a[1]||(a[1]=_("div",{class:"header-item"},null,-1))]),_("div",ft,[e(i).isImage?(c(),m(n,{key:0,class:"tutorial-image",src:e(i).content},null,8,["src"])):(c(),p("div",{key:1,class:"rich-content ph-half pv-half",innerHTML:e(X)(e(i).content)},null,8,pt))])],512),[[Z,e(r).show]])]),_:1})])}}}),_t=H(dt,[["__scopeId","data-v-789e4bf5"]]);function y(t,o){return A().$t(t,o)}function ht(){return{service:y("fixtool.service")||"Support",tutorial:y("fixtool.tutorial")||"Tutorial"}}var U=(t=>(t[t.Right_Top=1]="Right_Top",t[t.Right_Bottom=2]="Right_Bottom",t[t.Left_Top=3]="Left_Top",t[t.Left_Bottom=4]="Left_Bottom",t))(U||{});const vt={1:"right-top",2:"right-bottom",3:"left-top",4:"left-bottom"};var d=(t=>(t[t.Support=0]="Support",t[t.Tutorial=3]="Tutorial",t[t.Custom=999]="Custom",t))(d||{});Object.values(d);var V=(t=>(t[t.CUSTOM_SELF=1]="CUSTOM_SELF",t[t.CUSTOM_BLANK=2]="CUSTOM_BLANK",t))(V||{});function gt(){const t=O({isShowTutorial:tt(),color:"",imagesMap:[],style:U.Right_Top});let o={list:[],onlineList:[],supportIndex:0};const r=$();et(()=>{const s=B().getTemplateData();if(s!=null){const{color:a,style:n,imagesMap:l}=s.fixOperations??{};Object.assign(t,{color:a,style:n}),t.imagesMap=l.filter(u=>{if(u.btnType==d.Custom)return!ot(u.stationImage);if(u.isHide)return!1;if(u.btnType==d.Support)return!0;if(u.btnType==d.Tutorial){const x=(s.tutorial||[]).findIndex(C=>C.value==I.ON);return t.isShowTutorial&&x>-1}return!1}),o.list=s.onlineServices,o.supportIndex=0,o.onlineList=o.list.filter(u=>f(u.onlineTime))}});function f(s){if(!s)return!0;const a=s.split(",");if(a.length!==2)return!0;const n=new Date,l=n.getHours()*60+n.getMinutes(),[u,x]=a[0].split(":").map(Number),[C,z]=a[1].split(":").map(Number),k=u*60+x,w=C*60+z;return k<=w?l>=k&&l<=w:l>=k||l<=w}return{fixOperations:t,goLink:function(s){if(s.btnType==d.Support){if(o.list.length){if(!o.onlineList.length)return;const n=o.supportIndex%o.onlineList.length,l=o.onlineList[n].url;return o.supportIndex=(n+1)%o.onlineList.length,S({href:l,target:"_blank"})}return st("Customer service address not found in this language!")}if(s.btnType==d.Tutorial)return r.emit({show:!0});if(s.btnType==d.Custom){const{isClickJump:a,jumpType:n,jumpUrl:l}=s;a&&S({href:l,target:n==V.CUSTOM_BLANK?"_blank":"_self"})}}}}const mt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52.99 50.01"};function Tt(t,o){return c(),p("svg",mt,[...o[0]||(o[0]=[_("path",{d:"M3.71 23.4A4.76 4.76 0 0 0 0 28.11v2.32a4.76 4.76 0 0 0 3.71 4.71.8.8 0 0 0 .92-.82v-10.1a.8.8 0 0 0-.92-.82m45.57 0a.8.8 0 0 0-.92.82v10.09a.8.8 0 0 0 .92.82A4.76 4.76 0 0 0 53 30.42v-2.31a4.76 4.76 0 0 0-3.72-4.71M26.49 0C16.19 0 7.64 8.83 7.37 19.72a.15.15 0 0 0 0 .07v16.88a2.18 2.18 0 0 0 2.13 2.21h.67v1.23a7.24 7.24 0 0 0 7.1 7.37h3.67A4.15 4.15 0 0 0 24.69 50h3.61a4.32 4.32 0 0 0 0-8.64h-3.61a4.15 4.15 0 0 0-3.8 2.57h-3.65a3.76 3.76 0 0 1-3.68-3.82v-1.22h2.89a2.18 2.18 0 0 0 2.13-2.21V21.86a2.17 2.17 0 0 0-2.13-2.21h-3.94c.31-7.93 6.51-14.32 14-14.32s13.67 6.39 14 14.32h-3.98a2.17 2.17 0 0 0-2.13 2.21v14.81a2.18 2.18 0 0 0 2.13 2.21h7a2.18 2.18 0 0 0 2.13-2.21V19.79a.14.14 0 0 0 0-.07C45.34 8.83 36.8 0 26.49 0","data-name":"Layer 1"},null,-1)])])}const xt={render:Tt},Ct=["onClick"],kt=["textContent"],wt=["onClick"],bt=["textContent"],Lt=R({name:"FixToolModule",__name:"index",setup(t){const o=ht(),{fixOperations:r,goLink:f}=gt();return(i,s)=>{const a=N;return c(),p(g,null,[e(r).imagesMap.length?(c(),p("section",{key:0,class:D(["fix-tool",`fix-${e(vt)[e(r).style]}`])}
1,[(c(!0),p(g,null,j(e(r).imagesMap,(n,l)=>(c(),p(g,{key:l},[n.stationImage?(c(),m(a,{key:0,onClick:u=>e(f)(n),class:"fix-item",src:n.stationImage},null,8,["onClick","src"])):n.btnType==e(d).Support?(c(),p("div",{key:1,onClick:u=>e(f)(n),class:"fix-item fix-default",style:L({color:e(r).color,"border-color":e(r).color})},[T(e(xt),{class:"svg-icon"}),_("div",{class:"text-warp",textContent:M(e(o).service)},null,8,kt)],12,Ct)):n.btnType==e(d).Tutorial?(c(),p("div",{key:2,onClick:u=>e(f)(n),class:"fix-item fix-default",style:L({color:e(r).color,"border-color":e(r).color})},[T(e(W),{class:"svg-icon"}),_("div",{class:"text-warp",textContent:M(e(o).tutorial)},null,8,bt)],12,wt)):b("",!0)],64))),128))],2)):b("",!0),e(r).isShowTutorial?(c(),m(_t,{key:1})):b("",!0)],64)}}}),Bt=H(Lt,[["__scopeId","data-v-c52d137c"]]);export{Bt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.