PageSourceSearch

https://storybookly.app/_app/immutable/chunks/BzrdApvE.js

js storybookly.app collected 2026-10-08 07:39:48 UTC 5,526 bytes, 1 lines download raw bytes

1import{gZ as Ie,gU as we,gL as Te,gM as Ae,gH as Se,gr as u,gF as C,g2 as p,gW as Ce,h8 as Ee,gv as e,a as ae,gt as y,gQ as E,hf as te,ge as s,h2 as f,h9 as n,h0 as a,he as se,hk as T,ho as c,h6 as d,gc as $e,hj as Le,gs as Ge,gp as le,h4 as re,gG as ie,h3 as He}from"./tVgDUV26.js";import{a as K,g as Pe,T as $,I as L}from"./CY8ff9sT.js";var Fe=y('<div class="loading-container svelte-13yjjv"><div class="loading-text svelte-13yjjv"> </div></div>'),ve=y('<span class="radio-dot svelte-13yjjv"></span>'),Ve=y('<button><span class="option-radio svelte-13yjjv"><!></span> <span class="option-label svelte-13yjjv"> </span></button>'),De=y('<button><span class="option-radio svelte-13yjjv"><!></span> <span class="option-label svelte-13yjjv"> </span> <span class="option-multiplier svelte-13yjjv"> </span></button>'),Ne=y('<div class="config-section svelte-13yjjv"><div class="section-header svelte-13yjjv"><span class="section-icon svelte-13yjjv">💬</span> <span class="section-title svelte-13yjjv"> </span></div> <p class="section-description svelte-13yjjv"> </p> <div class="model-options svelte-13yjjv"></div></div> <div class="config-section svelte-13yjjv"><div class="section-header svelte-13yjjv"><span class="section-icon svelte-13yjjv">🖼️</span> <span class="section-title svelte-13yjjv"> </span></div> <p class="section-description svelte-13yjjv"> </p> <div class="model-options svelte-13yjjv"></div></div>',1),ze=y('<div class="popover svelte-13yjjv" role="dialog" aria-labelledby="popover-title" aria-modal="true" tabindex="-1"><div class="popover-header svelte-13yjjv"><h4 id="popover-title" class="svelte-13yjjv"> </h4></div> <div class="popover-content svelte-13yjjv"><!></div></div>'),Be=y('<div class="custom-config-container svelte-13yjjv"><button class="custom-config-button button svelte-13yjjv"><svg class="config-icon svelte-13yjjv" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg></button> <!></div>');function Ue(oe,Q){Ie(Q,!1);const U=()=>te(K,"$aiConfigStore",W),r=()=>te(Le,"$t",W),[W,ne]=Ee();let m=E(!1),h=E(),b=E(),A=E(!0);we(async()=>{await Pe(),f(A,!1)});function ce(l){K.setTextFromOption(l)}function de(l){K.setImageFromOption(l)}function pe(l){l.target.closest(".custom-config-container")||f(m,!1)}function ge(l){l.key==="Escape"&&f(m,!1)}function je(){f(m,!e(m))}Te(()=>(e(A),U()),()=>{if(!e(A)&&$.length>0&&L.length>0){const l=U();f(h,$.find(v=>v.provider===l.text.provider&&v.model===l.text.model)||$[0]),f(b,L.find(v=>v.provider===l.image.provider&&v.model===l.image.model)||L[0])}}),Ae(),Se();var G=Be();u("click",ae,pe),u("keydown",ae,ge);var X=s(G),_e=n(X,2);{var ue=l=>{var v=ze(),H=s(v),Z=s(H),fe=s(Z,!0);a(Z),a(H);var q=n(H,2),ye=s(q);{var me=o=>{var x=Fe(),k=s(x),O=s(k,!0);a(k),a(x),T(S=>d(O,S),[()=>(r(),c(()=>r()("Loading model options...")))]),p(o,x)},he=o=>{var x=Ne(),k=Ge(x),O=s(k),S=n(s(O),2),be=s(S,!0);a(S),a(O);var P=n(O,2),xe=s(P,!0);a(P);var J=n(P,2);le(J,5,()=>$,ie,(I,t)=>{var i=Ve();let g;var j=s(i),D=s(j);{var N=_=>{var B=ve();p(_,B)};C(D,_=>{e(t),e(h),c(()=>e(t).provider===e(h).provider&&e(t).model===e(h).model)&&_(N)})}a(j);var M=n(j,2),z=s(M,!0);a(M),a(i),T(()=>{g=re(i,1,"model-option svelte-13yjjv",null,g,{selected:e(t).provider===e(h).provider&&e(t).model===e(h).model}),d(z,(e(t),c(()=>e(t).label)))}),u("click",i,()=>ce(e(t))),p(I,i)}),a(J),a(k);var R=n(k,2),F=s(R),Y=n(s(F),2),ke=s(Y,!0);a(Y),a(F);var V=n(F,2),Me=s(V,!0);a(V);var ee=n(V,2);le(ee,5,()=>L,ie,(I,t)=>{var i=De();let g;var j=s(i),D=s(j);{var N=w=>{var Oe=ve();p(w,Oe)};C(D,w=>{e(t),e(b),c(()=>e(t).provider===e(b).provider&&e(t).model===e(b).model)&&w(N)})}a(j);var M=n(j,2),z=s(M,!0);a(M);var _=n(M,2),B=s(_);a(_),a(i),T(w=>{g=re(i,1,"model-option svelte-13yjjv",null,g,{selected:e(t).provider===e(b).provider&&e(t).model===e(b).model}),d(z,(e(t),c(()=>
1e(t).label))),He(_,"title",w),d(B,`${e(t),c(()=>e(t).creditMultiplier)??""}x`)},[()=>(r(),e(t),c(()=>r()("uses {creditMultiplier}x credits per image").replace("{creditMultiplier}",String(e(t).creditMultiplier))))]),u("click",i,()=>de(e(t))),p(I,i)}),a(ee),a(R),T((I,t,i,g)=>{d(be,I),d(xe,t),d(ke,i),d(Me,g)},[()=>(r(),c(()=>r()("Text Generation"))),()=>(r(),c(()=>r()("Model used for story writing, editing, and chat responses"))),()=>(r(),c(()=>r()("Image Generation"))),()=>(r(),c(()=>r()("Model used for creating story illustrations")))]),p(o,x)};C(ye,o=>{e(A)?o(me):o(he,-1)})}a(q),a(v),T(o=>d(fe,o),[()=>(r(),c(()=>r()("AI Model Configuration")))]),u("click",v,se(function(o){$e.call(this,Q,o)})),u("keydown",v,o=>{o.key==="Escape"&&f(m,!1)}),p(l,v)};C(_e,l=>{e(m)&&l(ue)})}a(G),u("click",X,se(je)),p(oe,G),Ce(),ne()}export{Ue as A};

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.