PageSourceSearch

https://cdn-img.daxuesoutijiang.com/dx-college/_nuxt/BDBc36qZ.js

js daxuesoutijiang.com collected 2026-10-01 13:07:54 UTC 5,582 bytes, 3 lines download raw bytes

1import{E as et}from"./Bf74sFZ1.js";import{E as st}from"./D7bHo-Z9.js";import{d as ot,bt as at,G as rt,p as lt,r as z,y as nt,z as m,D as k,c as i,a as l,F as L,b as n,g,i as b,e as $,k as it,C as ut,f as h,t as ct,m as pt,l as mt,n as W,_ as dt}from"./DC3gTA0r.js";import"./l0sNRNKZ.js";import{l as ft}from"./TjGUctk1.js";import{s as j}from"./Dh0QGOT2.js";import{setWordNumber as N,getWordNumber as vt}from"./C4xAtk6h.js";import{g as gt}from"./CKoWxBkQ.js";import{u as bt}from"./CSvQJVct.js";import"./DG3dPVXr.js";import"./CwRc5MeV.js";import"./CRRdYrZ7.js";import"./vdnvoQ-f.js";import"./CiS8iwFx.js";import"./BB_Ol6Sd.js";import"./C9cemVWp.js";import"./DhR5X4JO.js";import"./BoD1gpIM.js";import"./Cq9Fpw4b.js";import"./NNMeGzZF.js";import"./DN7XAyoq.js";import"./Br3kk8X-.js";import"./f0AmJp6Q.js";import"./BIntkiJL.js";import"./s2ajfUyE.js";import"./qCYtYV2L.js";import"./Bc0f0DZi.js";import"./B26sgHU9.js";const wt={class:"form-item form-item-outline"},_t={class:"custom-label"},yt={key:0,class:"tips"},kt={class:"tag-box"},Lt=["onClick"],Nt={class:"form-item"},xt={key:0,class:"list-box"},It={key:0,class:"add-box"},Ct=ot({__name:"tpl-outline-input",props:{config:{required:!0,type:Object},origin:String,content:{required:!0,type:String},vipEffect:{type:Number,default:0},wordNum:{required:!0,type:Number},disabled:Boolean},emits:["update:content","update:wordNum","create-outline","interaction","toggle-vip"],setup(V,{expose:q,emit:K}){const w=V,{$track:E}=at(),{creatorStore:d}=bt(),_=rt("isQuanwen",!1),T=[{label:"1000以下",value:0},{label:"1000-2000",value:1},{label:"2500左右",value:2,isVip:0,limitFree:!0},{label:"3000左右",value:3,isVip:0,limitFree:!0}],U=[{label:"5000-10000",value:4,isVip:0,limitFree:!0},{label:"15000左右",value:5,isVip:0,limitFree:!0}],u=K,f=lt(),v=z(null),e=nt({textList:[],tagIndex:1,wordNum:1}),A=m(()=>{const t=_!=null&&_.value?U:[];return T.concat(t)}),p=z(-1),H=m(()=>e.textList.filter(t=>/\S+/.test(t))),P=m(()=>H.value.join(`
2`)),x=m(()=>e.textList.length>0),S=m(()=>e.textList.length>9),B=m(()=>e.textList.findIndex(t=>!/\S+/.test(t))),y=m(()=>!!w.disabled),R=()=>{e.textList=[]},G=t=>t.split(/\n/).filter(s=>/\S+/.test(s)),D=async(t=-1)=>{var s,o;if(S.value||y.value)return!1;if(u("interaction"),B.value>-1)return p.value=B.value,await W(),v.value&&((s=v.value[p.value])==null||s.focus()),!1;if(t=t===-1?e.textList.length-1:t,t===-1)e.textList.push("");else{const C=e.textList[t];e.textList.splice(t,1,C,"")}p.value=t+1,await W(),v.value&&((o=v.value[p.value])==null||o.focus())},F=t=>{p.value=-1,t>-1&&e.textList.length>0&&e.textList.splice(t,1)},Q=t=>{!e.textList[t]&&F(t)},J=(t,s)=>{e.textList[s]=t.replace(/\n/g,"")},M=async(t,s)=>{const o={...gt(),selected_name:t.label,selected_value:t.value};if(E({name:"H11_015",...o}),w.vipEffect===2){t.value===5&&u("toggle-vip",t.value),e.wordNum=t.value,e.tagIndex=s,N(e.wordNum,d.tplId);return}e.wordNum=t.value,e.tagIndex=s,u("toggle-vip",t.value),N(e.wordNum,d.tplId)},X=(t,s)=>{const{key:o}=t;if(t.isComposing||!(o==="Backspace"||o==="Enter"))return!0;if(o==="Backspace"&&!e.textList[s])return F(s),t.preventDefault(),!1;if(o==="Enter")return D(),t.preventDefault(),!1},I=ft.throttle(async()=>{if(y.value)return!1;if(f.value,!f.value.isLogin){j();return}u("interaction"),u("create-outline")},500,{trailing:!1,leading:!0}),O=()=>{if(!f.value.isLogin){j();return}E({name:"H11_003"}),D()},Y=t=>{t===0&&e.wordNum>1&&(e.tagIndex=1,e.wordNum=1,N(e.wordNum,d.tplId)),t===2&&e.wordNum===5&&(e.tagIndex=1,e.wordNum=1,N(e.wordNum,d.tplId))},Z=t=>{e.textList=G(t||"").splice(0,10)},tt=t=>{u("update:content",t)};return k(()=>w.origin,Z),k(P,tt),k(()=>e.wordNum,t=>u("update:wordNum",t)),k(()=>w.vipEffect,Y,{immediate:!0}),(async()=>{e.wordNum=await vt(d.tplId),u("update:wordNum",e.wordNum)})(),q({customAddClick:O,autoCreateClick:I,reset:R}),(t,s)=>{const o=et,C=st;return l(),i(L,null,[n("div",wt,[n("div",_t,[s[2]||(s[2]=n("span",{class:"label-title"},"全文长度*",-1)),b(_)?(l(),i("span",yt,"(注:5000字以上,不适合文学创作哦~)")):g("",!0)]),n("div",kt,[(l(!0),i(L,null,$(A.value,(r,a)=>(l(),i(L,{key:a},[!r.isVip||b(f).vipStatus&&b(f).vipStatus>0?(l(),it(o,{key:0,"hide-after":0,effect:"dark",content:"超优质效果可选",placement:"top",disabled:!r.isVip||V.vipEffect===2},{default:ut(()=>[n("span",{class:h(["custom-tag",{selected:e.wordNum===r.value,free:r.limitFree}]),onClick:c=>M(r,a)},[n("span",null,ct(r.label),1)],10,Lt)]),_:2},1032,["disabled"])):g("",!0)],64))),128))])]),n("div",Nt,[n("div",{class:"custom-label",style:pt({visibility:x.value?"visible":"hidden"})},[s[3]||(s[3]=n("span",{class:"label-title"},"文章大纲",-1)),x.value?(l(),i("span",{key:0,class:h(["header-btn",{disabled:y.value}]),onClick:s[0]||(s[0]=(...r)=>b(I)&&b(I)(...r))}," 自动生成大纲 ",2)):g("",!0)],4),x.value?(l(),i("div",xt,[(l(!0),i(L,null,$(e.textList,(r,a)=>(l(),i("div",{key:a,class:"list-item"},[mt(C,{ref_for:!0,ref_key:"inputRefs",ref:v,type:"textarea",modelValue:e.textList[a],"onUpdate:modelValue":c=>e.textList[a]=c,maxlength:50,clearable:"",readonly:p.value!==a,autosize:!0,class:"custom-edit",resize:"none",onKeydown:c=>X(c,a),onInput:c=>J(c,a),onClick:c=>p.value=a,onBlur:c=>
2Q(a)},null,8,["modelValue","onUpdate:modelValue","readonly","onKeydown","onInput","onClick","onBlur"])]))),128)),S.value?g("",!0):(l(),i("div",It,[n("span",{class:h(["add-btn",{disabled:y.value}]),onClick:s[1]||(s[1]=r=>O())},"添加大纲",2)]))])):g("",!0)])],64)}}}),se=dt(Ct,[["__scopeId","data-v-23288e81"]]);export{se as default};
3//# sourceMappingURL=BDBc36qZ.js.map

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.