PageSourceSearch

https://personeo.ai/build/assets/CreateOrEdit-BiKwTtJx.js

js personeo.ai collected 2026-10-05 12:24:50 UTC 38,779 bytes, 1 lines download raw bytes

1import{o as u,i as p,a as i,A as $t,F as j,b as d,p as s,a9 as Lt,w as f,c as B,G as jt,j as D,t as O,m as A,n as N,D as le,T as Tt,h as pt,v as Ut,k as At,l as H,a3 as Dt,r as S,d as I,u as bt,y as vt,aB as Ot,f as de,x as It,N as oe,L as Bt,I as P,R as mt,ak as ft}from"./app-xLVlCRxi.js";import{t as re,_ as yt}from"./PrimaryButton-Bwrn-3rM.js";import{_ as X}from"./SecondaryButton-DYX8LZhW.js";import{_ as zt}from"./_plugin-vue_export-helper-C8tdCacw.js";import{m as Et}from"./composables-CTp1paw4.js";import{_ as F}from"./TextInput.vue_vue_type_script_setup_true_lang-BzYMpROF.js";import{I as Ft,E as Nt,j as Rt,A as Gt,F as Mt}from"./listbox-B8paNIbr.js";import{r as Pt}from"./ChevronDownIcon-CNtda2dX.js";import{C as G}from"./GlobalModalManager-Cd7hPCoP.js";import{_ as Wt,S as Jt}from"./CriteriaTranslationsEditor-CJYn2LeM.js";import{P as Yt,_ as Ht,a as Kt}from"./PersonaSection-4KebQQYA.js";import{S as Qt}from"./ScenarioSection-mFRqF9Jh.js";import{R as Xt}from"./RevealText-DvwWB8VJ.js";import{_ as Zt}from"./ShinyButton-Begpq0XM.js";import{_ as ae}from"./TextAreaInput.vue_vue_type_script_setup_true_lang-DdX2FMKZ.js";import{S as qt}from"./Spinner-DQGA236w.js";import{g as es,A as ts}from"./AppLayout-Ga7k3sVZ.js";import{r as ss}from"./UserIcon-BlA2kB3Z.js";import{r as is}from"./BookOpenIcon-C_T6jdpz.js";import{r as gt}from"./LockClosedIcon-D5jAxmgH.js";import{r as os}from"./LinkIcon-BnFefAbR.js";import"./transition-C-SQPkQy.js";import"./AvatarTextual-BvKOOHz9.js";import"./CheckIcon-jomwxdhh.js";import"./InformationCircleIcon-CucgfLX6.js";import"./ConfirmationDialog-NQNPMxUi.js";import"./TrashIcon-mwVpO1tS.js";import"./ArrowDownTrayIcon-C3IzCDrD.js";import"./ArrowUpTrayIcon-DsTCZWe_.js";import"./PlusIcon-BHhLRZV3.js";import"./Tabs-CiiNZWUp.js";import"./LanguageIcon-Db6s-tMN.js";import"./ChevronLeftIcon-o6Z4l3Px.js";import"./ArrowPathIcon-B-HDdGNT.js";import"./DocumentPlusIcon-B9N5DJSf.js";import"./PlayCircleIcon-C0F0y0p0.js";import"./PersoneoLogo-C5EbmV-z.js";import"./AidvisorLogo-DeagN9oL.js";import"./ChatBubbleOvalLeftEllipsisIcon-nqFrPwfJ.js";/* empty css                                                                  */(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new a.Error().stack;
1n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="7a8c58ea-3b02-4bbd-8fb3-db7f1deaaa20",a._sentryDebugIdIdentifier="sentry-dbid-7a8c58ea-3b02-4bbd-8fb3-db7f1deaaa20")}catch{}})();function rs(a,n){return u(),p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[i("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12c0 1.268-.63 2.39-1.593 3.068a3.745 3.745 0 0 1-1.043 3.296 3.745 3.745 0 0 1-3.296 1.043A3.745 3.745 0 0 1 12 21c-1.268 0-2.39-.63-3.068-1.593a3.746 3.746 0 0 1-3.296-1.043 3.745 3.745 0 0 1-1.043-3.296A3.745 3.745 0 0 1 3 12c0-1.268.63-2.39 1.593-3.068a3.745 3.745 0 0 1 1.043-3.296 3.746 3.746 0 0 1 3.296-1.043A3.746 3.746 0 0 1 12 3c1.268 0 2.39.63 3.068 1.593a3.746 3.746 0 0 1 3.296 1.043 3.746 3.746 0 0 1 1.043 3.296A3.745 3.745 0 0 1 21 12Z"})])}const as={class:"relative"},ns={class:"block grow text-left"},ls={key:0},ds={class:"pointer-events-none inset-y-0 flex items-center"},us={key:0,class:"p-2 border-b border-gray-200"},cs={class:"overflow-y-auto"},ps={key:0},ms={key:0,class:"absolute inset-y-0 left-0 flex items-center pl-3 text-amber-600"},fs={class:"text-[#E31266] mt-2"},gs={inheritAttrs:!1},bs=$t({...gs,__name:"Listbox",props:{errors:{},modelValue:{},getLabel:{},getButtonLabel:{},getKey:{},dropdownItems:{},label:{},classListListBoxButton:{},classListListBoxOptions:{},classListListBoxOption:{},placement:{default:"bottom"},searchable:{type:Boolean,default:!1},searchFunction:{}},emits:["update:modelValue"],setup(a,{emit:n}){const h=a,z=n,t=S(""),C=I(()=>!h.searchable||!t.value||!h.searchFunction?h.dropdownItems:h.searchFunction(h.dropdownItems,t.value));return($,k)=>(u(),p(j,null,[d(s(Ft),Lt($.$attrs,{as:"div",modelValue:a.modelValue,"onUpdate:modelValue":k[2]||(k[2]=T=>z("update:modelValue",T))}),{default:f(({open:T})=>[$.$slots.label||a.label?(u(),B(s(Nt),{key:0,class:"text-base text-[#3F4A55] font-medium inline-block"},{default:f(()=>[$.$slots.label?jt($.$slots,"label",{key:0}):(u(),p(j,{key:1},[D(O(a.label),1)],64))]),_:3})):A("",!0),i("div",as,[d(s(Rt),{class:N(s(re)("relative w-full cursor-default flex items-center min-w-[4rem] rounded-xl bg-white text-base text-[#3F4A55] placeholder:text-[#BBC4CD] placeholder:font-normal border-2 px-5 py-3 focus:border-[#6212E5] outline-none",T?"!border-[#1212E0]":"",a.classListListBoxButton))},{default:f(()=>[i("span",ns,[a.getButtonLabel??a.getLabel?(u(),p(j,{key:0},[typeof(a.getButtonLabel??a.getLabel)(a.modelValue)=="string"?(u(),p("span",ls,O((a.getButtonLabel??a.getLabel)(a.modelValue)),1)):(u(),B(le((a.getButtonLabel??a.getLabel)(a.modelValue)),{key:1}))],64)):(u(),p(j,{key:1},[D(O(a.modelValue),1)],64))]),i("span",ds,[d(s(Pt),{class:"h-3 w-3 ml-2 text-[#3F4A55]","aria-hidden":"true"})])]),_:1},8,["class"]),d(Tt,{"leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:f(()=>[d(s(Gt),{class:N(s(re)("absolute bg-white mt-1 w-full overflow-hidden rounded-xl border-[#EAF0F5] border-2 flex flex-col",a.placement==="bottom"?"":"bottom-full",a.classListListBoxOptions))},{default:f(()=>[a.searchable?(u(),p("div",us,[pt(i("input",{"onUpdate:modelValue":k[0]||(k[0]=_=>t.value=_),type:"text",placeholder:"Search...",class:"relative w-full cursor-default rounded-xl bg-white text-base text-[#3F4A55] placeholder:text-[#BBC4CD] placeholder:font-normal border-2 px-5 py-3 focus:border-[#6212E5] outline-none",onClick:k[1]||(k[1]=At(()=>{},["stop"]))},null,512),[[Ut,t.value]])])):A("",!0),i("ul",cs,[(u(!0),p(j,null,H(C.value,(_,V)=>(u(),B(s(Mt),{key:typeof _=="object"&&typeof _!="string"?a.getKey?a.getKey(_):V:typeof _=="boolean"?V:_,value:_,as:"template",class:N(s(re)("hover:bg-[#DEF4FC] hover:text-[#1212E0] text-[#8C96A1] relative cursor-pointer select-none rounded-2xl py-5 pl-7 mx-2 my-1",a.classListListBoxOption))},{default:f(({selected:L})=>[i("li",null,[i("span",{class:N(["font-normal","block"])},[a.getLabel?(u(),p(j,{key:0},[typeof a.getLabel(_)=="string"?(u(),p("span",ps,O(a.getLabel(_)),1)):(u(),B(le(a.getLabel(_)),{key:1}))],64)):(u(),p(j,{key:1},[D(O(_),1)],64))],2),L?(u(),p("span",ms)):A("",!0)])]),_:2},1032,["value","class"]))),128))])]),_:1},8,["class"])]),_:1})])]),_:3},16,["modelValue"]),pt(i("ul",fs,[(u(!0),p(j,null,H(a.errors,T=>(u(),p("li",{key:T,class:"flex"},O(T),1))),128))],512),[[Dt,!!a.errors]])],64))}}
1),vs=["width","height"],ys=["fill"],_s=["fill"],hs=["fill"],xs=["fill"],ws=["fill"],ks=["fill"],Ss=["fill"],Vs=["fill"],ne={__name:"StarsIcon",props:{size:{type:[String,Number],default:24},color:{type:String,default:"currentColor"},className:{type:String,default:""}},setup(a){return(n,h)=>(u(),p("svg",{width:a.size,height:a.size,viewBox:"0 0 800 800",xmlns:"http://www.w3.org/2000/svg",class:N(a.className)},[i("polygon",{points:"400,200 450,400 400,600 350,400",fill:a.color},null,8,ys),i("polygon",{points:"200,400 400,450 600,400 400,350",fill:a.color},null,8,_s),i("polygon",{points:"150,75 175,150 150,225 125,150",fill:a.color},null,8,hs),i("polygon",{points:"75,150 150,175 225,150 150,125",fill:a.color},null,8,xs),i("polygon",{points:"650,75 675,150 650,225 625,150",fill:a.color},null,8,ws),i("polygon",{points:"575,150 650,175 725,150 650,125",fill:a.color},null,8,ks),i("polygon",{points:"550,275 560,300 550,325 540,300",fill:a.color},null,8,Ss),i("polygon",{points:"525,300 550,310 575,300 550,290",fill:a.color},null,8,Vs)],10,vs))}},Cs={class:"max-w-4xl mx-auto"},$s={class:"bg-white rounded-2xl shadow-sm p-6 md:p-8"},Ls={class:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-6"},js={class:"mb-2"},Ts={class:"mb-6 flex items-center gap-2"},Us={class:"mb-2"},As={class:"mb-6 flex items-center gap-2"},Ds={class:"mb-2"},Os={class:"mb-6 flex items-center gap-2"},Is={class:"flex justify-end items-center"},Bs={__name:"RoleplayBuilderWizzard",props:{userRole:{type:String,default:""},personaRole:{type:String,default:""},isLoading:{type:Boolean,default:!1},errors:{type:Object,default:()=>({})}},emits:["close","submit","update:userRole","update:personaRole"],setup(a,{emit:n}){const h=a,z=n,t=bt({persona_description:"",scenario_description:"",criteria_description:""}),C=S(!1),$=S(!1),k=S(!1),T=I(()=>{var l,g,W;return`personeo:magic-builder-draft:${(W=(g=(l=de().props)==null?void 0:l.auth)==null?void 0:g.user)==null?void 0:W.id}`});function _(){try{const y=localStorage.getItem(T.value);if(!y)return;const l=JSON.parse(y);if(!l||typeof l!="object")return;typeof l.persona_description=="string"&&(t.persona_description=l.persona_description),typeof l.scenario_description=="string"&&(t.scenario_description=l.scenario_description),typeof l.criteria_description=="string"&&(t.criteria_description=l.criteria_description),typeof l.skipPersonaGeneration=="boolean"&&(C.value=l.skipPersonaGeneration),typeof l.skipScenarioGeneration=="boolean"&&($.value=l.skipScenarioGeneration),typeof l.skipCriteriaGeneration=="boolean"&&(k.value=l.skipCriteriaGeneration)}catch(y){console.warn("Failed to restore magic builder draft",y)}}function V(){try{localStorage.setItem(T.value,JSON.stringify({persona_description:t.persona_description,scenario_description:t.scenario_description,criteria_description:t.criteria_description,skipPersonaGeneration:C.value,skipScenarioGeneration:$.value,skipCriteriaGeneration:k.value}))}catch(y){console.warn("Failed to persist magic builder draft",y)}}function L(){z("submit",{user_role:h.userRole,persona_role:h.personaRole,persona_description:C.value?null:t.persona_description,scenario_description:$.value?null:t.scenario_description,criteria_description:k.value?null:t.criteria_description})}return vt(()=>{_()}),Ot(()=>[t.persona_description,t.scenario_description,t.criteria_description,C.value,$.value,k.value],()=>V(),{debounce:200}),(y,l)=>(u(),p("div",Cs,[i("div",$s,[l[15]||(l[15]=i("h1",{class:"text-3xl font-bold text-gray-900 mb-8"},"Magic builder",-1)),i("div",Ls,[d(F,{"model-value":a.personaRole,"onUpdate:modelValue":l[0]||(l[0]=g=>z("update:personaRole",g)),label:"Persona role",placeholder:"e.g. Client",errors:a.errors.persona_role},null,8,["model-value","errors"]),d(F,{"model-value":a.userRole,"onUpdate:modelValue":l[1]||(l[1]=g=>z("update:userRole",g)),label:"User role",placeholder:"e.g. Sales representative",errors:a.errors.user_role},null,8,["model-value","errors"])]),i("div",js,[d(ae,{placeholder:"Describe the persona: Who are they? What's their background, personality, and role? How skeptical or friendly should they be? What c
1oncerns or priorities do they have?",modelValue:s(t).persona_description,"onUpdate:modelValue":l[2]||(l[2]=g=>s(t).persona_description=g),errors:a.errors.persona_description,rows:"3",class:"grow resize-none",label:"Persona description",disabled:C.value},null,8,["modelValue","errors","disabled"])]),i("div",Ts,[d(G,{modelValue:C.value,"onUpdate:modelValue":l[3]||(l[3]=g=>C.value=g),class:"align-middle"},null,8,["modelValue"]),l[9]||(l[9]=i("span",{class:"align-middle text-sm text-gray-600"},"Skip persona generation",-1))]),i("div",Us,[d(ae,{placeholder:"Describe the scenario: What type of conversation is it? What's the context and goal? How should the conversation typically flow?",modelValue:s(t).scenario_description,"onUpdate:modelValue":l[4]||(l[4]=g=>s(t).scenario_description=g),errors:a.errors.scenario_description,rows:"3",class:"grow resize-none",label:"Scenario description",disabled:$.value},null,8,["modelValue","errors","disabled"])]),i("div",As,[d(G,{modelValue:$.value,"onUpdate:modelValue":l[5]||(l[5]=g=>$.value=g),class:"align-middle"},null,8,["modelValue"]),l[10]||(l[10]=i("span",{class:"align-middle text-sm text-gray-600"},"Skip scenario generation",-1))]),i("div",Ds,[d(ae,{placeholder:"Describe how the user should approach this scenario. You can paste your company playbook, best practices, or specific methodology. If you don't have a playbook, just write 'best practices' and we'll create criteria based on industry standards.",modelValue:s(t).criteria_description,"onUpdate:modelValue":l[6]||(l[6]=g=>s(t).criteria_description=g),errors:a.errors.criteria_description,rows:"3",class:"grow resize-none",label:"Success criteria description",disabled:k.value},null,8,["modelValue","errors","disabled"])]),i("div",Os,[d(G,{modelValue:k.value,"onUpdate:modelValue":l[7]||(l[7]=g=>k.value=g),class:"align-middle"},null,8,["modelValue"]),l[11]||(l[11]=i("span",{class:"align-middle text-sm text-gray-600"},"Skip success criteria generation",-1))]),i("div",Is,[d(X,{onClick:l[8]||(l[8]=g=>z("close"))},{default:f(()=>[...l[12]||(l[12]=[D("Close",-1)])]),_:1}),d(Xt,{text:a.isLoading?"This may take a while...":void 0},{default:f(()=>[a.isLoading?(u(),B(yt,{key:0},{icon:f(()=>[d(qt,{class:"h-6 animate-spin"})]),default:f(()=>[l[13]||(l[13]=i("span",{class:"animate-pulse"},"Generating",-1))]),_:1})):(u(),B(Zt,{key:1,onClick:L},{default:f(()=>[...l[14]||(l[14]=[D(" Generate ",-1)])]),_:1}))]),_:1},8,["text"])])])]))}},zs={class:"min-h-screen relative xl:mr-[13rem]"},Es={class:"hidden xl:block fixed right-8 top-1/2 -translate-y-1/2 z-10"},Fs={class:"flex flex-col gap-0"},Ns=["onClick"],Rs={class:"relative z-10"},Gs={key:0,class:"animate-spin rounded-full h-5 w-5 border-b-2 border-current"},Ms={key:0,class:"w-12 flex justify-center py-3"},Ps={key:0,class:"flex items-start gap-3 bg-gradient-to-r from-purple-50 to-indigo-50 border border-purple-200 rounded-xl p-4 mb-6"},Ws={class:"shrink-0 w-10 h-10 bg-purple-100 rounded-lg flex items-center justify-center"},Js={class:"text-xs text-purple-600 mt-1"},Ys=["href"],Hs={key:1,class:"bg-white rounded-2xl shadow-sm p-6 md:p-8 mb-6"},Ks={class:"space-y-4"},Qs={key:2,class:"flex flex-wrap items-center justify-between gap-4 bg-gradient-to-r from-purple-50 to-indigo-50 border border-purple-200 rounded-xl p-4 mb-6"},Xs={class:"flex items-center gap-3"},Zs={class:"w-10 h-10 bg-purple-100 rounded-lg flex items-center justify-center"},qs={key:3,class:"flex items-center mb-6"},ei={class:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-6"},ti={class:"grid grid-cols-1 lg:grid-cols-12 gap-4 mb-6"},si={class:"bg-gray-50 p-4 rounded-lg overflow-y-auto"},ii={class:"space-y-2 max-h-60 overflow-y-auto border border-gray-200 rounded-md p-3"},oi={class:"flex items-center"},ri=["for"],ai={class:"flex flex-wrap gap-6 mt-6"},ni={class:"grow"},li={class:"space-y-4"},di={class:"flex items-center justify-start"},ui={class:"flex items-center justify-start"},ci={class:"mt-6"},pi={class:"flex justify-end items-center gap-x-4 mt-6"},mi={class:"max-w-2xl mx-auto bg-white rounded-2xl shadow-xl p-6 md:p-8 relative"},fi={class:"flex items-center gap-3 mb-6"},gi={class:"w-10 h-10 bg-gradient-to-br from-purple-500 to-indigo-600 rounded-xl flex items-center justify-center shadow-md"},bi={class:"space-y-4"},vi={key:0,class:"bg-gray-50 rounded-xl p-4 border border-gray-100"},yi={class:"text-gray-700 whitespace-pre-wrap leading-relaxed"},_i={key:1,class:"bg-gray-50 rounded-xl p-4 border border-gray-100"},hi={class:"text-gray-700 whitespace-pre-wrap leading-relaxed"},xi={key:2,class:"bg-gray-50 rounded-xl p-4 border border-gray-100"},wi={class:"text-gray-700 whitespace-pre-wrap leading-relaxed"},ki={class:"flex justify-end mt-6 pt-4 border-t border-gray-100"},Si={__name:"CreateOrEdit",props:{voices:{type:Object,required:!0},visibilities:{type:Array,required:!0},availableTeams:{type:Array,required:!1},supportedLanguages:{type:Array,required:!1,default:()=>[]},simulation:{type:Object,required:!1},action:{type:String,default:"create"}},setup(a){var ve,ye,_e,he,xe,we,ke,Se,Ve,Ce,$e,Le,je,Te,Ue,Ae,De,Oe,Ie,Be,ze,Ee,Fe,Ne,Re,Ge,Me,Pe,We,Je,Ye,He,Ke,Qe,Xe,Ze,qe,et,tt,st,it,ot,rt,at,
1nt,lt,dt;const n=a,h=!!((ve=n.simulation)!=null&&ve.hasCustomInstructions),z=I(()=>{var r;return Object.keys(((r=n.simulation)==null?void 0:r.custom_fields)??{}).length>0}),t=bt({roleplay_name:((ye=n.simulation)==null?void 0:ye.name)??"",thumbnail:((_e=n.simulation)==null?void 0:_e.thumbnail)??null,persona_name:((xe=(he=n.simulation)==null?void 0:he.impersonator)==null?void 0:xe.name)??"",persona_voice:((ke=(we=n.simulation)==null?void 0:we.impersonator)==null?void 0:ke.voice)??Object.keys(n.voices)[0],user_role:((Ve=(Se=n.simulation)==null?void 0:Se.participant)==null?void 0:Ve.role)??"",persona_role:(($e=(Ce=n.simulation)==null?void 0:Ce.impersonator)==null?void 0:$e.role)??"",persona_identity:((je=(Le=n.simulation)==null?void 0:Le.impersonator)==null?void 0:je.identity)??[],persona_goals:((Ue=(Te=n.simulation)==null?void 0:Te.impersonator)==null?void 0:Ue.goals)??[],persona_opinions:((De=(Ae=n.simulation)==null?void 0:Ae.impersonator)==null?void 0:De.opinions)??[],persona_objections:((Ie=(Oe=n.simulation)==null?void 0:Oe.impersonator)==null?void 0:Ie.objections)??[],persona_behavior:((ze=(Be=n.simulation)==null?void 0:Be.impersonator)==null?void 0:ze.behavior)??[],opening_phrase:((Ee=n.simulation)==null?void 0:Ee.opening_phrase)??"",conversation_phases:((Fe=n.simulation)==null?void 0:Fe.conversation_phases)??[],success_criteria:((Ne=n.simulation)==null?void 0:Ne.success_criteria_json)??[],success_criteria_set_id:n.action==="duplicate"?null:((Ge=(Re=n.simulation)==null?void 0:Re.successCriteriasSet)==null?void 0:Ge.id)??null,translations:{originalLocale:((We=(Pe=(Me=n.simulation)==null?void 0:Me.successCriteriasSet)==null?void 0:Pe.translations)==null?void 0:We.originalLocale)??"en-US",variants:(He=(Ye=(Je=n.simulation)==null?void 0:Je.successCriteriasSet)==null?void 0:Ye.translations)!=null&&He.variants?JSON.parse(JSON.stringify(n.simulation.successCriteriasSet.translations.variants)):{}},persona_set_id:((Qe=(Ke=n.simulation)==null?void 0:Ke.personaSet)==null?void 0:Qe.id)??null,scenario_set_id:((Ze=(Xe=n.simulation)==null?void 0:Xe.scenarioSet)==null?void 0:Ze.id)??null,visibility:((qe=n.simulation)==null?void 0:qe.visibility)??"UNLISTED",duplicatable:((et=n.simulation)==null?void 0:et.isDuplicatable)??!1,reviewable:((tt=n.simulation)==null?void 0:tt.isReviewable)??!0,time_limit_minutes:((st=n.simulation)==null?void 0:st.timeLimitMinutes)??null,editors:{teamIds:((ot=(it=n.simulation)==null?void 0:it.editors)==null?void 0:ot.teamIds)??[],company:((at=(rt=n.simulation)==null?void 0:rt.editors)==null?void 0:at.company)??!1},magic_builder_input:((nt=n.simulation)==null?void 0:nt.magic_builder_input)??null,is_duplicate:n.action==="duplicate",custom_fields:(lt=n.simulation)!=null&&lt.custom_fields?Object.fromEntries(Object.entries(n.simulation.custom_fields).map(([r,{value:e}])=>[r,e])):void 0}),C=It(),$=JSON.stringify((((dt=n.simulation)==null?void 0:dt.success_criteria_json)??[]).map(r=>({name:r.name,criteria:(r.criteria??[]).map(e=>({title:e.title}))}))),k=I(()=>JSON.stringify(t.success_criteria.map(e=>({name:e.name,criteria:(e.criteria??[]).map(b=>({title:b.title}))})))!==$),T=I({get(){return t.editors.teamIds},set(r){t.editors.teamIds=r}});Et(t.editors);const _=S(!1),V=S("idle"),L=S("idle"),y=S("idle"),l=S({}),g=S(!1),W=S(null),_t=I(()=>V.value==="loading"||L.value==="loading"||y.value==="loading");function ue(){_.value=!0,V.value="idle",y.value="idle",l.value={}}function J(){_.value=!1}function M(){C.error("We're at full capacity right now. Please try again in a moment.")}function Z(r,e){return r?r.status===503?!0:(e==null?void 0:e.error)==="over_capacity":!1}async function ht(r){l.value={};const e={"Content-Type":"application/json",Accept:"application/json","X-CSRF-TOKEN":de().props.csrf_token};let b=!1,x=!1,o=!1;const v=()=>{var c,w,U;if((!r.persona_description||b)&&(!r.scenario_description||x)&&(!r.criteria_description||o)){const R=(U=(w=(c=de().props)==null?void 0:c.auth)==null?void 0:w.user)==null?void 0:U.id;R&&localStorage.removeItem(`personeo:magic-builder-draft:${R}`)}};r.persona_description&&(V.value="loading",fetch(route("simulations.generate.persona"),{method:"POST",headers:e,body:JSON.stringify(r)}).then(async m=>{const c=await m.json();if(m.status===422){l.value={...l.value,...c.errors},V.value="error";return}if(!m.ok){Z(m,c)?M():C.error("Something went wrong. Please try again."),V.value="error";return}if(c.persona_name&&(t.persona_name=c.persona_name),c.identity&&(t.persona_identity=[...c.identity,""]),c.goals&&(t.persona_goals=[...c.goals,""]),c.opinions&&(t.persona_opinions=[...c.opinions,""]),c.objections&&(t.persona_objections=[...c.objections,""]),c.behavior&&(t.persona_behavior=[...c.behavior,""]),c.gender){const w=Object.keys(n.voices).find(U=>n.voices[U].gender===c.gender);
1w&&(t.persona_voice=w)}b=!0,V.value="success",v(),J(),oe(()=>{var w;return(w=W.value)==null?void 0:w.generateThumbnail()})}).catch(m=>{console.error("Error generating persona:",m),M(),V.value="error"})),r.scenario_description&&(L.value="loading",fetch(route("simulations.generate.scenario"),{method:"POST",headers:e,body:JSON.stringify(r)}).then(async m=>{const c=await m.json();if(m.status===422){l.value={...l.value,...c.errors},L.value="error";return}if(!m.ok){Z(m,c)?M():C.error("Something went wrong. Please try again."),L.value="error";return}c.roleplay_name&&(t.roleplay_name=c.roleplay_name),c.user_role&&!r.persona_description&&(t.user_role=c.user_role),c.opening_phrase&&(t.opening_phrase=c.opening_phrase),c.conversation_phases&&(t.conversation_phases=c.conversation_phases.map((w,U)=>({...w,id:Date.now()+U,minimized:!1}))),t.magic_builder_input={persona_description:r.persona_description,scenario_description:r.scenario_description,criteria_description:r.criteria_description},x=!0,L.value="success",v(),r.persona_description||J()}).catch(m=>{console.error("Error generating scenario:",m),M(),L.value="error"})),r.criteria_description&&(y.value="loading",fetch(route("simulations.generate.criteria"),{method:"POST",headers:e,body:JSON.stringify(r)}).then(async m=>{const c=await m.json();if(m.status===422){l.value={...l.value,...c.errors},y.value="error";return}if(!m.ok){Z(m,c)?M():C.error("Something went wrong. Please try again."),y.value="error";return}c&&Array.isArray(c)&&(t.success_criteria=c.map((w,U)=>({...w,id:Date.now()+U,minimized:!1,criteria:Array.isArray(w.criteria)?w.criteria.map((R,Q)=>({...R,id:Date.now()+U*1e3+Q})):[]}))),y.value="success",o=!0,v()}).catch(m=>{console.error("Error generating criteria:",m),M(),y.value="error"})),!r.persona_description&&!r.scenario_description&&!r.criteria_description&&J()}const q=I({get:()=>({persona_name:t.persona_name,persona_voice:t.persona_voice,persona_role:t.persona_role,persona_identity:t.persona_identity,persona_goals:t.persona_goals,persona_opinions:t.persona_opinions,persona_objections:t.persona_objections,persona_behavior:t.persona_behavior}),set:r=>{t.persona_name=r.persona_name,t.persona_voice=r.persona_voice,t.persona_role=r.persona_role,t.persona_identity=r.persona_identity,t.persona_goals=r.persona_goals,t.persona_opinions=r.persona_opinions,t.persona_objections=r.persona_objections,t.persona_behavior=r.persona_behavior}}),ce=I({get:()=>({opening_phrase:t.opening_phrase,conversation_phases:t.conversation_phases}),set:r=>{t.opening_phrase=r.opening_phrase,t.conversation_phases=r.conversation_phases}});function xt(r){return{...r,conversation_phases:r.conversation_phases.map(({id:e,minimized:b,...x})=>x),success_criteria:r.success_criteria.map(({id:e,minimized:b,...x})=>({...x,criteria:x.criteria.map(({id:o,...v})=>v)}))}}const pe=r=>JSON.stringify([r.thumbnail,r.persona_name,r.persona_role,r.persona_identity]),wt=pe(t);function me(r){const e=xt(r);return h&&pe(r)!==wt&&(e.persona_set_id=null),e}function fe(){oe(()=>{var r;(r=document.querySelector(".input--error"))==null||r.scrollIntoView({behavior:"smooth",block:"center"})})}function kt(){n.action==="edit"||n.action==="duplicate"?t.transform(me).post(route("simulations.update",{maybeSharableSimulation:n.simulation.id}),{preserveScroll:!0,onSuccess:()=>{},onError:fe}):t.transform(me).post(route("simulations.store"),{preserveScroll:!0,onSuccess:()=>{},onError:fe})}const K=[{id:"persona",label:"Persona",icon:ss},{id:"scenario",label:"Scenario",icon:is},{id:"success-criteria",label:"Success Criteria",icon:rs},{id:"settings",label:"Settings",icon:es}],E=S("persona"),ee=S(null),te=S(null),se=S(null),ie=S(null),St=I(()=>({persona:ee.value,scenario:te.value,"success-criteria":se.value,settings:ie.value})),Vt=r=>{E.value=r;const e=St.value[r];if(e){const b=e.offsetTop-20;window.scrollTo({top:b,behavior:"smooth"})}},ge=()=>{const r=window.scrollY+window.innerHeight/3,e=[{id:"persona",element:ee.value},{id:"scenario",element:te.value},{id:"success-criteria",element:se.value},{id:"settings",element:ie.value}];for(let b=e.length-1;b>=0;b--){const x=e[b];if(x.element){const o=x.element.offsetTop;if(r>=o){E.value=x.id;return}}}E.value="persona"};let Y=null;const be=()=>{Y&&clearTimeout(Y),Y=setTimeout(()=>{ge()},50)};vt(()=>{oe(()=>{ge(),window.addEventListener("scroll",be,{passive:!0}),n.action==="create"&&ue()})}),Bt(()=>{window.removeEventListener("scroll",be),Y&&clearTimeout(Y)});function Ct({option:r}){const e=r==="PRIVATE"?"Only accessible to members of your organization":"Available for others to chat with via link";return P("div",[P("div",{class:"flex gap-x-1 items-center"},[P(r==="PRIVATE"?gt:os,{class:"h-6 w-6 text-current"}),P("span",{class:"capitalize"},r)]),P("p",{class:"mt-2 text-muted"},e)])}return(r,e)=>(u(),p(j,null,[d(ts,null,{default:f(()=>{var b,x;return[i("div",zs,[i("div",Es,[i("div",Fs,[(u(),p(j,null,H(K,(o,v)=>(u(),p(j,{key:o.id},[i("div",{onClick:m=>Vt(o.id),class:"flex items-center cursor-pointer group"},[i("div",Rs,[i("div",{class:N(["w-12 h-12 rounded-full flex items-center justify-center transition-all duration-300 shadow-sm border-2",[E.value===o.id?"bg-primary text-white border-primary scale-110":"bg-white text-gray-400 border-white group-hover:text-gray-600 group-hover:border-white group-hover:shadow-md",o.id==="success-criteria"&&y.value==="loading"||o.id==="scenario"&&L.value==="loading"||o.id==="persona"&&V.value==="loading"?"animate-pulse":""]])},[o.id==="success-criteria"&&y.value==="loading"||o.id==="scenario"&&L.value==="loading"||o.id==="persona"&&V.value==="loading"?(u(),p("div",Gs)):(u(),B(le(o.icon),{key:1,class:"w-6 h-6"}))],2)]),i("div",{class:N(["ml-4 text-sm font-semibold transition-all duration-300 whitespace-nowrap",[E.value===o.id?"text-primary":"text-white group-hover:text-gray-700"]])},O(o.label),3)],8,Ns),v<K.length-1?(u(),p("div",Ms,[i("div",{class:N(["w-1 h-8 rounded transition-colors duration-300",[E.value===o.id||v===0&&E.value===K[1].id||v===1&&E.value===K[2].id?"bg-primary":"bg-white"]])},null,2)])):A("",!0)],64))),64))])]),i("div",null,[i("div",null,[s(h)?(u(),p("div",Ps,[i("div",Ws,[d(s(gt),{class:"w-5 h-5 text-purple-600"})]),i("div",null,[e[28]||(e[28]=i("p",{class:"text-sm font-semibold text-purple-900"},"This roleplay is managed by Personeo",-1)),i("p",Js,[e[26]||(e[26]=D(" The persona's behaviour in the conversation cannot be edited here. Custom variables change the conversation; persona details and success criteria only affect how the roleplay is presented and how feedback is evaluated. ",-1)),i("a",{href:r.route("contact.show"),class:"underline",target:"_blank"}
1,"Contact us",8,Ys),e[27]||(e[27]=D(" to request other changes. ",-1))])])])):A("",!0),s(h)&&z.value?(u(),p("div",Hs,[e[29]||(e[29]=i("h1",{class:"text-3xl font-bold text-gray-900 mb-8"},"Custom variables",-1)),i("div",Ks,[(u(!0),p(j,null,H(a.simulation.custom_fields,(o,v)=>(u(),B(s(F),{key:v,modelValue:s(t).custom_fields[v],"onUpdate:modelValue":m=>s(t).custom_fields[v]=m,label:o.label,errors:s(t).errors["custom_fields."+v]&&[s(t).errors["custom_fields."+v]]},null,8,["modelValue","onUpdate:modelValue","label","errors"]))),128))])])):A("",!0),n.action==="edit"&&((b=n.simulation)!=null&&b.magic_builder_input)?(u(),p("div",Qs,[i("div",Xs,[i("div",Zs,[d(ne,{class:"w-5 h-5 text-purple-600"})]),e[30]||(e[30]=i("div",null,[i("p",{class:"text-sm font-semibold text-purple-900"},"Created with Magic Builder"),i("p",{class:"text-xs text-purple-600"},"View the original inputs used to generate this roleplay")],-1))]),d(X,{class:"shrink-0",onClick:e[0]||(e[0]=o=>g.value=!0)},{default:f(()=>[...e[31]||(e[31]=[D(" View input ",-1)])]),_:1})])):n.action==="create"?(u(),p("div",qs,[e[33]||(e[33]=i("p",{class:"text-sm font-semibold text-gray-700 mr-4"},"Short on time?",-1)),d(X,{onClick:ue},{icon:f(()=>[d(ne)]),default:f(()=>[e[32]||(e[32]=D(" Try magic builder ",-1))]),_:1})])):A("",!0),i("div",{ref_key:"personaSection",ref:ee,"data-section":"persona",class:"bg-white rounded-2xl shadow-sm p-6 md:p-8"},[i("div",ei,[d(s(F),{modelValue:s(t).roleplay_name,"onUpdate:modelValue":e[1]||(e[1]=o=>s(t).roleplay_name=o),label:"Roleplay name",placeholder:"e.g. Sales Training with Difficult Client",errors:s(t).errors.roleplay_name&&[s(t).errors.roleplay_name]},null,8,["modelValue","errors"]),d(s(F),{modelValue:s(t).user_role,"onUpdate:modelValue":e[2]||(e[2]=o=>s(t).user_role=o),label:"Your role in this roleplay",placeholder:"e.g. Sales representative",errors:s(t).errors.user_role&&[s(t).errors.user_role]},null,8,["modelValue","errors"])]),s(h)?(u(),p(j,{key:1},[e[34]||(e[34]=i("h1",{class:"text-3xl font-bold text-gray-900 mb-8"},"Persona",-1)),i("div",ti,[d(Ht,{class:"col-span-2",modelValue:s(t).thumbnail,"onUpdate:modelValue":e[6]||(e[6]=o=>s(t).thumbnail=o),persona:q.value,gender:((x=a.voices[s(t).persona_voice])==null?void 0:x.gender)??null},null,8,["modelValue","persona","gender"]),d(s(F),{modelValue:s(t).persona_name,"onUpdate:modelValue":e[7]||(e[7]=o=>s(t).persona_name=o),label:"AI persona name",placeholder:"e.g. John Doe",errors:s(t).errors.persona_name&&[s(t).errors.persona_name],class:"col-span-5"},null,8,["modelValue","errors"]),d(s(F),{modelValue:s(t).persona_role,"onUpdate:modelValue":e[8]||(e[8]=o=>s(t).persona_role=o),label:"AI persona role",placeholder:"e.g. Client",errors:s(t).errors.persona_role&&[s(t).errors.persona_role],class:"col-span-5"},null,8,["modelValue","errors"])]),d(Kt,{modelValue:s(t).persona_identity,"onUpdate:modelValue":e[9]||(e[9]=o=>s(t).persona_identity=o),label:"Personal details",hint:'Describe their background, role, company, team size, current tools, and situation as distinct facts. Write each detail as "You are..." statements.',placeholder:"Enter personal detail",error:s(t).errors.persona_identity},null,8,["modelValue","error"])],64)):(u(),B(s(Yt),{key:0,ref_key:"personaSectionRef",ref:W,modelValue:q.value,"onUpdate:modelValue":e[3]||(e[3]=o=>q.value=o),thumbnail:s(t).thumbnail,"onUpdate:thumbnail":e[4]||(e[4]=o=>s(t).thumbnail=o),voices:a.voices,errors:s(t).errors,"is-generating":V.value==="loading","linked-persona-set-id":s(t).persona_set_id,"onUpdate:linkedPersonaSetId":e[5]||(e[5]=o=>s(t).persona_set_id=o),title:"Persona","role-label":"AI persona role"},null,8,["modelValue","thumbnail","voices","errors","is-generating","linked-persona-set-id"]))],512),s(h)?A("",!0):(u(),p("div",{key:4,ref_key:"scenarioSection",ref:te,"data-section":"scenario",class:"bg-white rounded-2xl shadow-sm p-6 md:p-8 mt-6"},[d(s(Qt),{modelValue:ce.value,"onUpdate:modelValue":e[10]||(e[10]=o=>ce.value=o),errors:s(t).errors,"is-generating":L.value==="loading","linked-scenario-set-id":s(t).scenario_set_id,"onUpdate:linkedScenarioSetId":e[11]||(e[11]=o=>s(t).scenario_set_id=o),title:"Scenario"},null,8,["modelValue","errors","is-generating","linked-scenario-set-id"])],512)),i("div",{ref_key:"successCriteriaSection",ref:se,"data-section":"success-criteria",class:"bg-white rounded-2xl shadow-sm p-6 md:p-8 mt-6"},[d(Wt,{translations:s(t).translations,"onUpdate:translations":e[15]||(e[15]=o=>s(t).translations=o),"success-criteria":s(t).success_criteria,"supported-languages":a.supportedLanguages,"criteria-set-id":s(t).success_criteria_set_id,"originals-dirty":k.value},{original:f(()=>[d(s(Jt),{modelValue:s(t).success_criteria,"onUpdate:modelValue":e[12]||(e[12]=o=>s(t).success_criteria=o),errors:s(t).errors,"is-generating":y.value==="loading","linked-criteria-set-id":s(t).success_criteria_set_id,"onUpdate:linkedCriteriaSetId":e[13]||(e[13]=o=>s(t).success_criteria_set_id=o),"onUpdate:translations":e[14]||(e[14]=o=>s(t).translations={originalLocale:o.originalLocale??s(t).translations.originalLocale,variants:o.variants??{}})},null,8,["modelValue","errors","is-generating","linked-criteria-set-id"])]),_:1}
1,8,["translations","success-criteria","supported-languages","criteria-set-id","originals-dirty"])],512),s(h)?A("",!0):(u(),p("div",{key:5,ref_key:"settingsSection",ref:ie,"data-section":"settings",class:"bg-white rounded-2xl shadow-sm p-6 md:p-8 mt-6"},[e[46]||(e[46]=i("h1",{class:"text-3xl font-bold text-gray-900 mb-8"},"Settings",-1)),e[47]||(e[47]=i("div",{class:"cursor-pointer text-base font-bold text-[#3F4A55] mb-2 inline-block"}," Teams that can edit this roleplay ",-1)),i("div",si,[e[37]||(e[37]=i("p",{class:"text-sm text-gray-500 mb-2"},"Select teams to share this roleplay editability with. If no teams are selected, only you will be able to edit it.",-1)),i("div",ii,[i("div",oi,[d(G,{id:"share-to-company",modelValue:s(t).editors.company,"onUpdate:modelValue":e[16]||(e[16]=o=>s(t).editors.company=o),class:"shrink-0 mr-2"},null,8,["modelValue"]),e[35]||(e[35]=i("label",{for:"share-to-company",class:"ml-2 block text-sm text-gray-900 font-medium"}," Share to all ",-1))]),e[36]||(e[36]=i("div",{class:"border-t border-gray-200 my-2"},null,-1)),(u(!0),p(j,null,H(a.availableTeams,o=>(u(),p("div",{key:o.id,class:"flex items-center"},[d(G,{id:`team-${o.id}`,value:o.id,modelValue:T.value,"onUpdate:modelValue":e[17]||(e[17]=v=>T.value=v),class:"shrink-0 mr-2"},null,8,["id","value","modelValue"]),i("label",{for:`team-${o.id}`,class:"ml-2 block text-sm text-gray-900"},O(o.name),9,ri)]))),128))])]),i("div",ai,[d(bs,{class:"w-[min-content] max-w-full",classListListBoxButton:"truncate",classListListBoxOptions:"z-30",dropdownItems:a.visibilities,errors:s(t).errors.visibility&&[s(t).errors.visibility],modelValue:s(t).visibility,"onUpdate:modelValue":e[18]||(e[18]=o=>s(t).visibility=o),getLabel:o=>P(Ct,{option:o}),placement:"top"},{label:f(()=>[...e[38]||(e[38]=[i("div",{class:"text-base font-bold text-[#3F4A55] mb-2 inline-block"}," Visibility ",-1)])]),_:1},8,["dropdownItems","errors","modelValue","getLabel"]),i("div",ni,[e[43]||(e[43]=i("div",{class:"text-base font-bold text-[#3F4A55] mb-2 inline-block"}," ",-1)),i("div",li,[d(s(mt),{placement:"top"},{popper:f(()=>[...e[39]||(e[39]=[D(" If allowed, other users can replicate this simulation, see the instructions and edit them. ",-1)])]),default:f(()=>[i("div",di,[d(G,{modelValue:s(t).duplicatable,"onUpdate:modelValue":e[19]||(e[19]=o=>s(t).duplicatable=o),value:s(t).duplicatable,class:"shrink-0 mr-5"},null,8,["modelValue","value"]),e[40]||(e[40]=i("div",{class:"cursor-pointer text-base font-bold text-[#3F4A55] inline-block"}," Duplicatable ",-1))])]),_:1}),d(s(mt),{placement:"top",class:"inline-block"},{popper:f(()=>[...e[41]||(e[41]=[i("div",{class:"max-w-xs"}," Turning off success criteria disables the option to receive feedback for roleplay conversations. Turn it off only in roleplay cases where conversation analysis is not required, e.g. coaching, mentoring sessions, or quizzes. ",-1)])]),default:f(()=>[i("div",ui,[d(G,{modelValue:s(t).reviewable,"onUpdate:modelValue":e[20]||(e[20]=o=>s(t).reviewable=o),value:s(t).reviewable,class:"shrink-0 mr-5"},null,8,["modelValue","value"]),e[42]||(e[42]=i("div",{class:"cursor-pointer text-base font-bold text-[#3F4A55] inline-block"}," Include success criteria ",-1))])]),_:1})])])]),i("div",ci,[d(s(F),{class:"w-full max-w-xs",type:"number",min:"1",max:"180",step:"1",placeholder:"No limit",modelValue:s(t).time_limit_minutes===null?"":String(s(t).time_limit_minutes),"onUpdate:modelValue":e[21]||(e[21]=o=>s(t).time_limit_minutes=o===""?null:Number(o)),errors:s(t).errors.time_limit_minutes&&[s(t).errors.time_limit_minutes]},{label:f(()=>[...e[44]||(e[44]=[i("div",{class:"text-base font-bold text-[#3F4A55] mb-2 inline-block"}," Time limit (minutes) ",-1)])]),_:1},8,["modelValue","errors"]),e[45]||(e[45]=i("p",{class:"text-sm text-gray-500 mt-2"},"Leave empty for no limit. With a limit, every play of this roleplay ends automatically once the time is up.",-1))])],512)),i("div",pi,[d(yt,{onClick:kt,disabled:s(t).processing},{default:f(()=>[D(O(n.action==="edit"?"Update":n.action==="duplicate"?"Create Duplicate":"Create"),1)]),_:1},8,["disabled"])])])])])]}),_:1}),d(s(ft),{show:_.value,onClose:J},{default:f(()=>[d(Bs,{"user-role":s(t).user_role,"onUpdate:userRole":e[22]||(e[22]=b=>s(t).user_role=b),"persona-role":s(t).persona_role,"onUpdate:personaRole":e[23]||(e[23]=b=>s(t).persona_role=b),"is-loading":_t.value,errors:l.value,onClose:J,onSubmit:ht},null,8,["user-role","persona-role","is-loading","errors"])]),_:1},8,["show"]),d(s(ft),{show:g.value,onClose:e[25]||(e[25]=b=>g.value=!1)},{default:f(()=>{var b,x,o,v,m,c,w,U,R,Q,ut,ct;return[i("div",mi,[i("div",fi,[i("div",gi,[d(ne,{class:"w-5 h-5 text-white"})]),e[48]||(e[48]=i("div",null,[i("h1",{class:"text-xl font-bold text-gray-900"},"Magic Builder Input"),i("p",{class:"text-sm text-gray-500"},"Original inputs used to generate this roleplay")],-1))]),i("div",bi,[(x=(b=n.simulation)==null?void 0:b.magic_builder_input)!=null&&x.persona_description?(u(),p("div",vi,[e[49]||(e[49]=i("p",{class:"text-xs font-semibold text-gray-500 uppercase tracking-wide mb-2"},"Persona description",-1)),i("p",yi,O((v=(o=n.simulation)==null?void 0:o.magic_builder_input)==null?void 0:v.persona_description),1)])):A("",!0),(c=(m=n.simulation)==null?void 0:m.magic_builder_input)!=null&&c.scenario_description?(u(),p("div",_i,[e[50]||(e[50]=i("p",{class:"text-xs font-semibold text-gray-500 uppercase tracking-wide mb-2"},"Scenario description",-1)),i("p",hi,O((U=(w=n.simulation)==null?void 0:w.magic_builder_input)==null?void 0:U.scenario_description),1)])):A("",!0),(Q=(R=n.simulation)==null?void 0:R.magic_builder_input)!=null&&Q.criteria_description?(u(),p("div",xi,[e[51]||(e[51]=i("p",{class:"text-xs font-semibold text-gray-500 uppercase tracking-wide mb-2"},"Success criteria description",-1)),i("p",wi,O((ct=(ut=n.simulation)==null?void 0:ut.magic_builder_input)==null?void 0:ct.criteria_description),1)])):A("",!0)]),i("div",ki,[d(X,{onClick:e[24]||(e[24]=Vi=>g.value=!1)},{default:f(()=>[...e[52]||(e[52]=[D("Close",-1)])]),_:1})])])]}),_:1},8,["show"])],64))}},mo=zt(Si,[["__scopeId","data-v-6432a480"]]);export{mo 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.