1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[904],{37700:function(e,a,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/learning-profile",function(){return n(88325)}])},88325:function(e,a,n){"use strict";n.r(a);var t=n(85893),s=n(67294),l=n(11163),i=n(9473),r=n(94055),c=n(35844),o=n(89312),d=n(59629),m=n(11160),p=n(48817),h=n(7047),_=n.n(h),u=n(46101);let x={interest:"interest",knowledge:"knowledge",goal:"goal",background:"background",characters:"characters",character:"characters",memories:"memories",memory:"memories"},v=["interest","knowledge","goal","background","character","memory"],ProfileCharacterAddFields=e=>{let{charForm:a,setCharForm:n,onEscape:s,phraseLabels:l,maxLength:i}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:_().fieldGroup,children:[(0,t.jsx)("label",{className:_().fieldLabel,children:(0,o.BV)("personalizeFormLabelName",l)}),(0,t.jsx)("input",{className:"".concat(_().inputName," char"),placeholder:(0,o.BV)("personalizeCharFormPlaceholderName",l),value:a.name,maxLength:i,onChange:e=>n({...a,name:e.target.value}),onKeyDown:e=>{"Escape"===e.key&&s()}})]}),(0,t.jsxs)("div",{className:_().fieldGroup,children:[(0,t.jsx)("label",{className:_().fieldLabel,children:(0,o.BV)("personalizeFormLabelRelationship",l)}),(0,t.jsx)("input",{className:"".concat(_().inputName," char"),placeholder:(0,o.BV)("personalizeCharFormPlaceholderRel",l),value:a.rel,maxLength:i,onChange:e=>n({...a,rel:e.target.value}),onKeyDown:e=>{"Escape"===e.key&&s()}})]}),(0,t.jsxs)("div",{className:_().fieldGroup,children:[(0,t.jsxs)("label",{className:_().fieldLabel,children:[(0,o.BV)("personalizeFormLabelWhoAreThey",l)," ",(0,t.jsxs)("span",{className:_().optionalTag,children:["(",(0,o.BV)("personalizeFormOptional",l),")"]})]}),(0,t.jsx)("textarea",{className:"".concat(_().textarea," char"),placeholder:(0,o.BV)("personalizeCharFormPlaceholderWho",l),value:a.desc,maxLength:i,onChange:e=>n({...a,desc:e.target.value})})]})]})},ProfileMemoryAddFields=e=>{let{memForm:a,setMemForm:n,onEscape:s,phraseLabels:l,maxLength:i}=e;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:_().fieldGroup,children:[(0,t.jsx)("label",{className:_().fieldLabel,children:(0,o.BV)("personalizeEditLabelKind",l)}),(0,t.jsx)("div",{className:_().typeRow,children:["scene","insight","metaphor","fact"].map(e=>(0,t.jsxs)("button",{type:"button",className:"".concat(_().memKindChip," ").concat(_()["memKindChip".concat(e.charAt(0).toUpperCase()+e.slice(1))]," ").concat(a.kind===e?_().memKindChipSel:""),...(0,p.BD)(()=>n({...a,kind:e})),children:[z[e]," ","scene"===e?(0,o.BV)("personalizeMemKindScene",l):"insight"===e?(0,o.BV)("personalizeMemKindInsight",l):"metaphor"===e?(0,o.BV)("personalizeMemKindMetaphor",l):(0,o.BV)("personalizeMemKindFact",l)]},e))})]}),(0,t.jsxs)("div",{className:_().fieldGroup,children:[(0,t.jsx)("label",{className:_().fieldLabel,children:(0,o.BV)("personalizeFormLabelTitle",l)}),(0,t.jsx)("input",{className:"".concat(_().inputName," mem"),placeholder:(0,o.BV)("personalizeMemFormPlaceholderTitle",l),value:a.title,maxLength:i,onChange:e=>n({...a,title:e.target.value}),onKeyDown:e=>{"Escape"===e.key&&s()}})]}),(0,t.jsxs)("div",{className:_().fieldGroup,children:[(0,t.jsx)("label",{className:_().fieldLabel,children:(0,o.BV)("personalizeFormLabelDescribeIt",l)}),(0,t.jsx)("textarea",{className:"".concat(_().textarea," mem"),placeholder:(0,o.BV)("personalizeMemFormPlaceholderDescribe",l),value:a.scene,maxLength:i,onChange:e=>n({...a,scene:e.target.value})})]}),(0,t.jsxs)("div",{className:_().fieldGroup,children:[(0,t.jsxs)("label",{className:_().fieldLabel,children:[(0,o.BV)("personalizeFormLabelWhereFrom",l)," ",(0,t.jsxs)("span",{className:_().optionalTag,children:["(",(0,o.BV)("personalizeFormOptional",l),")"]})]}),(0,t.jsx)("input",{className:"".concat(_().inputName," mem"),placeholder:(0,o.BV)("personalizeMemFormPlaceholderSource",l),value:a.source,maxLength:i,onChange:e=>n({...a,source:e.target.value}),onKeyDown:e=>{"Escape"===e.key&&s()}})]})]})},y={interest:"â¨",knowledge:"\uD83E\uDDE0",goal:"\uD83C\uDFAF",background:"\uD83D\uDC64",character:"\uD83C\uDFAD",memory:"\uD83D\uDCAD"}
1,z={scene:"\uD83D\uDDBCï¸",insight:"\uD83D\uDCA1",metaphor:"\uD83D\uDD01",fact:"\uD83D\uDCCA"},j={scene:"visual_scene",insight:"insight",metaphor:"metaphor",fact:"surprising_fact"},normalizeMemoryKind=e=>"visual_scene"===e||"scene"===e?"scene":"insight"===e?"insight":"metaphor"===e?"metaphor":"surprising_fact"===e||"fact"===e?"fact":"scene",getOptionalDetailsText=e=>null==e?"":"string"==typeof e?e:"number"==typeof e?String(e):"object"==typeof e&&(e.relationship||e.rel||e.source)||"",getItemOptionalDetails=e=>{var a,n;return null!==(n=null!==(a=e.optional_details)&&void 0!==a?a:e.optionalDetails)&&void 0!==n?n:""};a.default=e=>{var a,n,h,C;let{onClose:B}=e,g=(0,u.$)(),b=(0,l.useRouter)(),N=(0,i.I0)(),f=(0,i.v9)(e=>{var a;return null===(a=e.myLearning)||void 0===a?void 0:a.phraseLabels}),{items:V,isLoading:D,isSubmitting:A}=(0,i.v9)(e=>e.profileItems),T=(0,i.v9)(e=>e.profileItems.lastMutationSuccess),k=(0,i.v9)(e=>{var a;return(0,d.BZ)(null===(a=e.user)||void 0===a?void 0:a.user)}),M=(0,i.v9)(e=>{var a;return null===(a=e.profileItems)||void 0===a?void 0:a.bigInputs}),F=(0,m.jd)(k,M),w=(0,m.GC)(F)?F:void 0,[L,I]=(0,s.useState)("all"),E=b.query.tab;(0,s.useEffect)(()=>{var e;if(B||!b.isReady)return;let a=Array.isArray(E)?E[0]:E;I(null!==(e=x[String(null!=a?a:"").trim().toLowerCase()])&&void 0!==e?e:"all")},[B,b.isReady,E]);let[K,S]=(0,s.useState)(null),[R,O]=(0,s.useState)(!1),[P,G]=(0,s.useState)(null),[H,U]=(0,s.useState)("item"),[q,Q]=(0,s.useState)(null),[X,W]=(0,s.useState)(null),[Z,J]=(0,s.useState)(!1),[Y,$]=(0,s.useState)({name:"",rel:"",desc:""}),[ee,ea]=(0,s.useState)({name:"",rel:"",desc:""}),[en,et]=(0,s.useState)(null),[es,el]=(0,s.useState)(!1),[ei,er]=(0,s.useState)({kind:"scene",title:"",scene:"",source:""}),[ec,eo]=(0,s.useState)({kind:"scene",title:"",scene:"",source:""}),[ed,em]=(0,s.useState)("interest"),ep=(0,s.useMemo)(()=>V.filter(e=>"character"===e.type).map(e=>{var a;return{id:e.id,name:e.title||"",rel:getOptionalDetailsText(getItemOptionalDetails(e)),desc:e.details||"",muted:!(null===(a=e.isActive)||void 0===a||a)}}),[V]),eh=(0,s.useMemo)(()=>V.filter(e=>"memory"===e.type).map(e=>({id:e.id,kind:normalizeMemoryKind(e.kind),title:e.title||"",scene:e.details||"",source:getOptionalDetailsText(getItemOptionalDetails(e))||null,userAdded:!0})),[V]),[e_,eu]=(0,s.useState)({title:"",details:"",type:"interest"}),[ex,ev]=(0,s.useState)({title:"",details:"",type:"interest"});(0,s.useEffect)(()=>{window.scrollTo(0,0),document.documentElement.scrollTop=0,document.body.scrollTop=0},[]),(0,s.useEffect)(()=>{"all"!==L&&"characters"!==L&&"memories"!==L&&(eu(e=>({...e,type:L})),em(L))},[L]),(0,s.useEffect)(()=>{!A&&!0===T&&q&&("create"===q&&(eu({title:"",details:"",type:"all"===L||"characters"===L||"memories"===L?"interest":L}),em("interest"),$({name:"",rel:"",desc:""}),er({kind:"scene",title:"",scene:"",source:""}),O(!1)),"update"===q&&cancelEdit(),"delete"===q&&G(null),Q(null))},[L,A,T,q]);let ey=(0,s.useMemo)(()=>"all"===L?[...V].sort((e,a)=>{let n=new Date(e.updatedAt||e.createdAt||0).getTime(),t=new Date(a.updatedAt||a.createdAt||0).getTime();return t-n}):"characters"===L||"memories"===L?[]:V.filter(e=>e.type===L),[L,V]),startEdit=e=>{S(e.id),ev({title:e.title||"",details:e.details||"",type:e.type})},cancelEdit=()=>{S(null),ev({title:"",details:"",type:"interest"})},handleCreate=()=>{e_.title.trim()&&(Q("create"),N((0,c.yA)({title:e_.title.trim(),details:e_.details.trim(),type:e_.type})))},handleUpdate=e=>{ex.title.trim()&&(Q("update"),N((0,c.QI)({id:e,title:ex.title.trim(),details:ex.details.trim(),type:ex.type})))},handleDelete=e=>{Q("delete"),N((0,c.ge)({id:e}))},handleToggleActive=e=>{var a;N((0,c.QI)({id:e.id,title:e.title||"",details:e.details||"",type:e.type,optional_details:getItemOptionalDetails(e),is_active:!(null===(a=e.isActive)||void 0===a||a)}))},handleCreateCharacter=()=>{Y.name.trim()&&Y.rel.trim()&&(Q("create"),N((0,c.yA)({title:Y.name.trim(),details:Y.desc.trim(),type:"character",optional_details:Y.rel.trim()})),$({name:"",rel:"",desc:""}),J(!1))},startEditChar=e=>{W(e.id),ea({name:e.name,rel:e.rel,desc:e.desc})},cancelEditChar=()=>{W(null),ea({name:"",rel:"",desc:""})}
1,handleUpdateChar=e=>{ee.name.trim()&&ee.rel.trim()&&(Q("update"),N((0,c.QI)({id:e,title:ee.name.trim(),details:ee.desc.trim(),type:"character",optional_details:ee.rel.trim()})),cancelEditChar())},handleToggleCharMute=e=>{let a=V.find(a=>a.id===e);a&&handleToggleActive(a)},handleCreateMemory=()=>{ei.title.trim()&&ei.scene.trim()&&(Q("create"),N((0,c.yA)({title:ei.title.trim(),details:ei.scene.trim(),type:"memory",kind:j[ei.kind],optional_details:ei.source.trim()})),er({kind:"scene",title:"",scene:"",source:""}),el(!1))},handleProfileTabAddSubmit=()=>{"all"===L?"character"===ed?handleCreateCharacter():"memory"===ed?handleCreateMemory():handleCreate():handleCreate()},startEditMem=e=>{et(e.id),eo({kind:e.kind,title:e.title,scene:e.scene,source:e.source||""})},cancelEditMem=()=>{et(null),eo({kind:"scene",title:"",scene:"",source:""})},handleUpdateMem=e=>{ec.title.trim()&&ec.scene.trim()&&(Q("update"),N((0,c.QI)({id:e,title:ec.title.trim(),details:ec.scene.trim(),type:"memory",kind:j[ec.kind],optional_details:ec.source.trim()})),cancelEditMem())},getInitials=e=>e.split(" ").map(e=>e[0]).join("").slice(0,2).toUpperCase(),ez=(e=>{switch(e){case"all":return{icon:"\uD83D\uDCCB",title:(0,o.BV)("personalizeEverythingCardTitle",f),desc:(0,o.BV)("personalizeEverythingCardDesc",f),tooltip:(0,o.BV)("personalizeTooltipAll",f),cardClass:_().tabCardAll};case"interest":return{icon:"â¨",title:(0,o.BV)("personalizeInterestsCardTitle",f),desc:(0,o.BV)("personalizeInterestsCardDesc",f),tooltip:(0,o.BV)("personalizeTooltipInterests",f),cardClass:_().tabCardInterest};case"knowledge":return{icon:"\uD83E\uDDE0",title:(0,o.BV)("personalizeKnowledgeCardTitle",f),desc:(0,o.BV)("personalizeKnowledgeCardDesc",f),tooltip:(0,o.BV)("personalizeTooltipKnowledge",f),cardClass:_().tabCardKnowledge};case"goal":return{icon:"\uD83C\uDFAF",title:(0,o.BV)("personalizeGoalsCardTitle",f),desc:(0,o.BV)("personalizeGoalsCardDesc",f),tooltip:(0,o.BV)("personalizeTooltipGoals",f),cardClass:_().tabCardGoal};case"background":return{icon:"\uD83D\uDC64",title:(0,o.BV)("personalizeBackgroun
1dCardTitle",f),desc:(0,o.BV)("personalizeBackgroundCardDesc",f),tooltip:(0,o.BV)("personalizeTooltipBackground",f),cardClass:_().tabCardBackground};case"characters":return{icon:"\uD83C\uDFAD",title:(0,o.BV)("personalizeCharactersCardTitle",f),desc:(0,o.BV)("personalizeCharactersCardDesc",f),tooltip:(0,o.BV)("personalizeTooltipCharacters",f),cardClass:_().tabCardCharacters};case"memories":return{icon:"\uD83D\uDCAD",title:(0,o.BV)("personalizeMemoriesCardTitle",f),desc:(0,o.BV)("personalizeMemoriesCardDesc",f),tooltip:(0,o.BV)("personalizeTooltipMemories",f),cardClass:_().tabCardMemories};default:return{icon:"\uD83D\uDCCB",title:"",desc:"",tooltip:"",cardClass:_().tabCardAll}}})(L),ej=V.length,eC=V.filter(e=>"interest"===e.type).length,eB=V.filter(e=>"knowledge"===e.type).length,eg=V.filter(e=>"goal"===e.type).length,eb=V.filter(e=>"background"===e.type).length;return(0,t.jsxs)("div",{className:_().page,children:[(0,t.jsxs)("div",{className:_().header,children:[(0,t.jsx)("div",{className:_().headerTop,children:(0,t.jsxs)("button",{className:_().backBtn,onClick:()=>B?B():b.push("/"),children:[(0,t.jsx)("svg",{viewBox:"0 0 24 24",children:(0,t.jsx)("polyline",{points:"15 18 9 12 15 6"})}),(0,o.BV)("personalizeBackLabel",f)]})}),(0,t.jsx)("h1",{className:_().title,children:(0,o.BV)("personalizeTitle",f)}),(0,t.jsx)("p",{className:_().subtitle,children:(0,o.BV)("personalizeDescription",f)})]}),(0,t.jsxs)("div",{className:_().tabs,children:[(0,t.jsxs)("button",{className:"".concat(_().tab," ").concat("all"===L?_().tabActive:""),...(0,p.BD)(()=>I("all")),children:[(0,t.jsx)("span",{className:_().tabIcon,children:"\uD83D\uDCCB"})," ",(0,o.BV)("personalizeTabEverything",f)," ",(0,t.jsx)("span",{className:_().tabCount,children:ej})]}),(0,t.jsxs)("button",{className:"".concat(_().tab," ").concat("interest"===L?_().tabActive:""),...(0,p.BD)(()=>I("interest")),children:[(0,t.jsx)("span",{className:_().tabIcon,children:"â¨"})," ",(0,o.BV)("personalizeTabInterests",f)," ",(0,t.jsx)("span",{className:_().tabCount,children:eC})]}),(0,t.jsxs)("button",{className:"".concat(_().tab," ").concat("knowledge"===L?_().tabActive:""),...(0,p.BD)(()=>I("knowledge")),children:[(0,t.jsx)("span",{className:_().tabIcon,children:"\uD83E\uDDE0"})," ",(0,o.BV)("personalizeTabKnowledge",f)," ",(0,t.jsx)("span",{className:_().tabCount,children:eB})]}),(0,t.jsxs)("button",{className:"".concat(_().tab," ").concat("goal"===L?_().tabActive:""),...(0,p.BD)(()=>I("goal")),children:[(0,t.jsx)("span",{className:_().tabIcon,children:"\uD83C\uDFAF"})," ",(0,o.BV)("personalizeTabGoals",f)," ",(0,t.jsx)("span",{className:_().tabCount,children:eg})]}),(0,t.jsxs)("button",{className:"".concat(_().tab," ").concat("background"===L?_().tabActive:""),...(0,p.BD)(()=>I("background")),children:[(0,t.jsx)("span",{className:_().tabIcon,children:"\uD83D\uDC64"}
1)," ",(0,o.BV)("personalizeTabBackground",f)," ",(0,t.jsx)("span",{className:_().tabCount,children:eb})]}),(0,t.jsxs)("button",{className:"".concat(_().tab," ").concat(_().tabChar," ").concat("characters"===L?_().tabActive:""),...(0,p.BD)(()=>I("characters")),children:[(0,t.jsx)("span",{className:_().tabIcon,children:"\uD83C\uDFAD"})," ",(0,o.BV)("personalizeTabCharacters",f)," ",(0,t.jsx)("span",{className:_().tabCount,children:ep.length})]}),(0,t.jsxs)("button",{className:"".concat(_().tab," ").concat(_().tabMem," ").concat("memories"===L?_().tabActive:""),...(0,p.BD)(()=>I("memories")),children:[(0,t.jsx)("span",{className:_().tabIcon,children:"\uD83D\uDCAD"})," ",(0,o.BV)("personalizeTabMemories",f)," ",(0,t.jsx)("span",{className:_().tabCount,children:eh.length})]})]}),(0,t.jsxs)("div",{className:_().content,children:[(0,t.jsxs)("div",{className:"".concat(_().tabCard," ").concat(ez.cardClass),children:[(0,t.jsx)("div",{className:_().tabCardIcon,children:ez.icon}),(0,t.jsxs)("div",{className:_().tabCardBody,children:[(0,t.jsxs)("div",{className:_().tabCardTitle,children:[ez.title,(0,t.jsx)(r.default,{title:ez.tooltip,placement:"bottom",children:(0,t.jsx)("span",{className:_().tipAnchor,children:(0,t.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),(0,t.jsx)("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})})})]}),(0,t.jsx)("div",{className:_().tabCardDesc,children:ez.desc})]})]}),"characters"===L&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"".concat(_().inlineAddRow," ").concat(Z?_().inlineAddRowOpen:""," char"),children:[(0,t.jsxs)("button",{className:_().inlineAddTrigger,...(0,p.BD)(()=>J(!Z)),children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,t.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),(0,o.BV)("personalizeAddCharacter",f)]}),(0,t.jsxs)("div",{className:_().inlineAddExpanded,children:[(0,t.jsx)(ProfileCharacterAddFields,{charForm:Y,setCharForm:$,onEscape:()=>J(!1),phraseLabels:f,maxLength:w}),(0,t.jsxs)("div",{className:_().inlineActions,children:[(0,t.jsx)("span",{className:_().actionHint,children:(0,o.BV)("personalizeFormHintNameRelRequired",f)}),(0,t.jsx)("button",{className:_().cancelBtn,onClick:()=>J(!1),children:(0,o.BV)("cancelLabel",f)}),(0,t.jsx)("button",{className:"".concat(_().saveBtn," char"),onClick:handleCreateCharacter,children:(0,o.BV)("personalizeSaveCharacter",f)})]})]})]}),0===ep.length?(0,t.jsxs)("div",{className:_().empty,children:[(0,t.jsx)("div",{className:_().emptyIcon,children:"\uD83C\uDFAD"}),(0,t.jsx)("div",{className:_().emptyText,children:(0,o.BV)("personalizeEmptyCharacters",f)})]}):(0,t.jsx)("div",{className:_().charItems,children:ep.map(e=>X===e.id?(0,t.jsxs)("div",{className:"".concat(_().charCard," ").concat(_().cardEditing),children:[(0,t.jsxs)("div",{className:_().charCardTop,children:[(0,t.jsx)("div",{className:_().charAvatar,children:getInitials(e.name)}),(0,t.jsx)("div",{className:_().charBody,style:{flex:1},children:(0,t.jsx)("input",{className:"".concat(_().cefInput," char"),value:ee.name,maxLength:w,onChange:e=>ea({...ee,name:e.target.value}),placeholder:(0,o.BV)("personalizeFormLabelName",f),style:{fontFamily:"'Instrument Serif', serif",fontSize:"1.05rem"}})})]}),(0,t.jsxs)("div",{className:_().cardEditForm,children:[(0,t.jsxs)("div",{className:_().cefField,children:[(0,t.jsx)("div",{className:_().cefLabel,children:(0,o.BV)("personalizeFormLabelRelationship",f)}),(0,t.jsx)("input",{className:"".concat(_().cefInput," char"),value:ee.rel,maxLength:w,onChange:e=>ea({...ee,rel:e.target.value}),placeholder:(0,o.BV)("personalizeCharFormPlaceholderRel",f)})]}),(0,t.jsxs)("div",{className:_().cefField,children:[(0,t.jsxs)("div",{className:_().cefLabel,children:[(0,o.BV)("personalizeFormLabelWhoAreThey",f)," ",(0,t.jsxs)("span",{className:_().optionalTag,children:["(",(0,o.BV)("personalizeFormOptional",f),")"]})]}),(0,t.jsx)("textarea",{className:"".concat(_().cefTextarea," char"),value:ee.desc,maxLength:w,onChange:e=>ea({...ee,desc:e.target.value}),placeholder:(0,o.BV)("personalizeCharFormPlaceholderWho",f)}),(0,t.jsx)("div",{className:_().cefHint,children:(0,o.BV)("personalizeFormHintCharWho",f)})]}),(0,t.jsxs)("div",{className:_().cefActions,children:[(0,t.jsx)("button",{className:_().cancelBtn,onClick:cancelEditChar,children:(0,o.BV)("cancelLabel",f)}),(0,t.jsx)("button",{className:"".concat(_().saveBtn," char"),onClick:()=>
1handleUpdateChar(e.id),children:(0,o.BV)("saveLabel",f)})]})]})]},e.id):(0,t.jsx)("div",{className:"".concat(_().charCard," ").concat(e.muted?_().cardMuted:""),children:(0,t.jsxs)("div",{className:_().charCardTop,children:[(0,t.jsx)("div",{className:_().charAvatar,children:getInitials(e.name)}),(0,t.jsxs)("div",{className:_().charBody,children:[(0,t.jsx)("div",{className:_().charName,children:e.name}),(0,t.jsx)("div",{className:_().charRel,children:e.rel}),e.desc&&(0,t.jsx)("div",{className:_().charDesc,children:e.desc}),e.muted&&(0,t.jsxs)("div",{className:_().mutedPill,children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}),(0,o.BV)("personalizeMutedCharacter",f)]})]}),(0,t.jsxs)("div",{className:_().charActions,children:[(0,t.jsx)("button",{className:"".concat(_().iconBtn," ").concat(e.muted?_().muteOff:_().muteOn),onClick:()=>handleToggleCharMute(e.id),title:e.muted?(0,o.BV)("personalizeVisibilityShow",f):(0,o.BV)("personalizeVisibilityHide",f),children:e.muted?(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}):(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]})}),(0,t.jsx)("button",{className:_().iconBtn,onClick:()=>startEditChar(e),title:(0,o.BV)("editLabel",f),children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M17 3a2.83 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"})})}),(0,t.jsx)("button",{className:_().iconBtn,onClick:()=>{G(e.id),U("character")},title:g("removeLabel"),children:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,t.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})]})},e.id))})]}),"memories"===L&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"".concat(_().inlineAddRow," ").concat(es?_().inlineAddRowOpen:""," mem"),children:[(0,t.jsxs)("button",{className:_().inlineAddTrigger,...(0,p.BD)(()=>el(!es)),children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,t.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),(0,o.BV)("personalizeAddMemory",f)]}),(0,t.jsxs)("div",{className:_().inlineAddExpanded,children:[(0,t.jsx)(ProfileMemoryAddFields,{memForm:ei,setMemForm:er,onEscape:()=>el(!1),phraseLabels:f,maxLength:w}),(0,t.jsxs)("div",{className:_().inlineActions,children:[(0,t.jsx)("span",{className:_().actionHint,children:(0,o.BV)("personalizeFormHintTitleDescRequired",f)}),(0,t.jsx)("button",{className:_().cancelBtn,onClick:()=>el(!1),children:(0,o.BV)("cancelLabel",f)}),(0,t.jsx)("button",{className:"".concat(_().saveBtn," mem"),onClick:handleCreateMemory,children:(0,o.BV)("personalizeSaveMemory",f)})]})]})]}),0===eh.length?(0,t.jsxs)("div",{className:_().empty,children:[(0,t.jsx)("div",{className:_().emptyIcon,children:"\uD83D\uDCAD"}),(0,t.jsx)("div",{className:_().emptyText,children:(0,o.BV)("personalizeEmptyMemories",f)})]}):(0,t.jsx)("div",{className:_().memItems,children:eh.map(e=>{if(en===e.id)return(0,t.jsx)("div",{className:"".concat(_().memCard," ").concat(_()["mem".concat(e.kind.charAt(0).toUpperCase()+e.kind.slice(1))]," ").concat(_().cardEditing),children:(0,t.jsxs)("div",{className:_().cardEditForm,style:{borderTop:"none",paddingTop:6},children:[(0,t.jsxs)("div",{className:_().cefField,children:[(0,t.jsx)("div",{className:_().cefLabel,children:(0,o.BV)("personalizeEditLabelKind",f)}),(0,t.jsx)("div",{className:_().typeRow,children:["scene","insight","metaphor","fact"].map(e=>(0,t.jsxs)("button",{className:"".concat(_().memKindChip," ").concat(_()["memKindChip".concat(e.charAt(0).toUpperCase()+e.slice(1))]," ").concat(ec.kind===e?_().memKindChipSel:""),...(0,p.BD)(()=>eo({...ec,kind:e})),children:[z[e]," ","scene"===e?(0,o.BV)("personalizeMemKindScene",f):"insight"===e?(0,o.BV)("personalizeMemKindInsight",f):"metaphor"===e?(0,o.BV)("personalizeMemKindMetaphor",f):(0,o.BV)("personalizeMemKindFact",f)]},e))})]}),(0,t.jsxs)("div",{className:_().cefField,children:[(0,t.jsx)("div",{className:_().cefLabel,children:(0,o.BV)("personalizeFormLabelTitle",f)}),(0,t.jsx)("input",{className:"".concat(_().cefInput," mem"),value:ec.title,maxLength:w,onChange:e=>eo({...ec,title:e.target.value}),placeholder:(0,o.BV)("personalizeMemFormPlaceholderTitle",f)})]}),(0,t.jsxs)("div",{className:_().cefField,children:[(0,t.jsx)("div",{className:_().cefLabel,children:(0,o.BV)("personalizeEditLabelDescription",f)}),(0,t.jsx)("textarea",{className:"".concat(_().cefTextarea," mem"),value:ec.scene,maxLength:w,onChange:e=>eo({...ec,scene:e.target.value}),placeholder:(0,o.BV)("personalizeMemFormPlaceholderDescribe",f)})]}),(0,t.jsxs)("div",{className:_().cefField,children:[(0,t.jsxs)("div",{className:_().cefLabel,children:[(0,o.BV)("personalizeEditLabelSource",f)," ",(0,t.jsxs)("span",{className:_().optionalTag,children:["(",(0,o.BV)("personalizeFormOptional",f),")"]})]}),(0,t.jsx)("input",{className:"".concat(_().cefInput," mem"),value:ec.source,maxLength:w,onChange:e=>eo({...ec,source:e.target.value}),placeholder:(0,o.BV)("personalizeMemFormPlaceholderSource",f)})]}),(0,t.jsxs)("div",{className:_().cefActions,children:[(0,t.jsx)("button",{className:_().cancelBtn,onClick:cancelEditMem,children:(0,o.BV)("cancelLabel",f)}),(0,t.jsx)("button",{className:"".concat(_().saveBtn," mem"),onClick:()=>handleUpdateMem(e.id),children:(0,o.BV)("saveLabel",f)})]})]})},e.id);let a="scene"===e.kind?(0,o.BV)("personalizeMemKindScene",f):"insight"===e.kind?(0,o.BV)("personalizeMemKindInsight",f):"metaphor"===e.kind?(0,o.BV)("personalizeMemKindMetaphor",f):(0,o.BV)("personalizeMemKindFact",f);return(0,t.jsxs)("div",{className:"".concat(_().memCard," ").concat(_()["mem".concat(e.kind.charAt(0).toUpperCase()+e.kind.slice(1))]),children:[(0,t.jsxs)("div",{className:_().memCardTop,children:[(0,t.jsx)("div",{className:_().memCardIcon,children:z[e.kind]}),(0,t.jsxs)("div",{className:_().memCardBody,children:[(0,t.jsx)("div",{className:_().memCardText,children:e.title}),(0,t.jsxs)("div",{className:_().memCardKindRow,children:[(0,t.jsx)("div",{className:_().memCardKind,children:a}),e.userAdded&&(0,t.jsx)("span",{className:_().memUserBadge,children:(0,o.BV)("personalizeMemAddedByYou",f)})]})]})]}),(0,t.jsx)("div",{className:_().memCardScene,children:e.scene}),(0,t.jsxs)("div",{className:_().memCardFooter,children:[(0,t.jsx)("div",{className:_().memCardSource,children:e.source?(0,t.jsxs)(t.Fragment,{children:[(0,o.BV)("personalizeMemSourcePrefix",f)," ",(0,t.jsx)("strong",{children:e.source})]}):(0,t.jsx)("em",{style:{color:"#a0a09a"},children:(0,o.BV)("personalizeMemNoSource",f)})}),(0,t.jsx)("button",{className:_().iconBtn,onClick:()=>startEditMem(e),title:(0,o.BV)("editLabel",f),style:{width:24,height:24},children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M17 3a2.83 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"})})}),(0,t.jsx)("button",{className:_().memCardDel,onClick:()=>{G(e.id),U("memory")},title:g("removeLabel"),children:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,t.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})]},e.id)})})]}),"characters"!==L&&"memories"!==L&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"".concat(_().inlineAddRow," ").concat(R?_().inlineAddRowOpen:""," ").concat("all"===L&&"character"===ed?"char":"all"===L&&"memory"===ed?"mem":""),children:[(0,t.jsxs)("button",{className:_().inlineAddTrigger,...(0,p.BD)(()=>O(!R)),children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("line",{x1:"12",y1:"5",x2:"12",y2:"19"}),(0,t.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"})]}),"all"===L?(0,o.BV)("personalizeAddToProfile",f):"interest"===L?(0,o.BV)("personalizeAddInterest",f):"knowledge"===L?(0,o.BV)("personalizeAddKnowledge",f):"goal"===L?(0,o.BV)("personalizeAddGoal",f):(0,o.BV)("personalizeAddBackgroun
1d",f)]}),(0,t.jsxs)("div",{className:_().inlineAddExpanded,children:["all"===L&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:_().typeRow,children:v.map(e=>(0,t.jsxs)("button",{type:"button",className:"".concat(_().typeChip," ").concat(_()["typeChip".concat(e.charAt(0).toUpperCase()+e.slice(1))]," ").concat(ed===e?_().typeChipSel:""),...(0,p.BD)(()=>{em(e),("interest"===e||"knowledge"===e||"goal"===e||"background"===e)&&eu(a=>({...a,type:e}))}),children:[y[e]," ","interest"===e?(0,o.BV)("personalizeTypeInterest",f):"knowledge"===e?(0,o.BV)("personalizeTypeKnowledge",f):"goal"===e?(0,o.BV)("personalizeTypeGoal",f):"background"===e?(0,o.BV)("personalizeTypeBackground",f):"character"===e?(0,o.BV)("personalizeTypeCharacter",f):(0,o.BV)("personalizeTypeMemory",f)]},e))}),(0,t.jsx)("div",{className:_().typeHint,children:(e=>{switch(e){case"interest":return(0,o.BV)("personalizeTypeHintInterest",f);case"knowledge":return(0,o.BV)("personalizeTypeHintKnowledge",f);case"goal":return(0,o.BV)("personalizeTypeHintGoal",f);
1case"background":return(0,o.BV)("personalizeTypeHintBackground",f);case"character":return(0,o.BV)("personalizeTypeHintCharacter",f);case"memory":return(0,o.BV)("personalizeTypeHintMemory",f);default:return""}})(ed)})]}),"all"===L&&"character"===ed&&(0,t.jsx)("div",{style:{marginTop:10},children:(0,t.jsx)(ProfileCharacterAddFields,{charForm:Y,setCharForm:$,onEscape:()=>O(!1),phraseLabels:f,maxLength:w})}),"all"===L&&"memory"===ed&&(0,t.jsx)("div",{style:{marginTop:10},children:(0,t.jsx)(ProfileMemoryAddFields,{memForm:ei,setMemForm:er,onEscape:()=>O(!1),phraseLabels:f,maxLength:w})}),("all"!==L||"character"!==ed&&"memory"!==ed)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:_().fieldGroup,style:{marginTop:"all"===L?10:0},children:[(0,t.jsx)("label",{className:_().fieldLabel,children:(0,o.BV)("personalizeFormLabelWhatIsIt",f)}),(0,t.jsx)("input",{className:_().inputName,placeholder:(e=>{switch(e){case"interest":return(0,o.BV)("personalizeFormPlaceholderInterest",f);case"knowledge":return(0,o.BV)("personalizeFormPlaceholderKnowledge",f);case"goal":return(0,o.BV)("personalizeFormPlaceholderGoal",f);case"background":return(0,o.BV)("personalizeFormPlaceholderBackground",f);default:return""}})(e_.type),value:e_.title,maxLength:w,onChange:e=>eu({...e_,title:e.target.value}),onKeyDown:e=>{"Enter"===e.key&&handleProfileTabAddSubmit(),"Escape"===e.key&&O(!1)}})]}),(0,t.jsxs)("div",{className:_().fieldGroup,children:[(0,t.jsxs)("label",{className:_().fieldLabel,children:[(0,o.BV)("personalizeFormLabelDetails",f)," ",(0,t.jsxs)("span",{className:_().optionalTag,children:["(",(0,o.BV)("personalizeFormOptional",f),")"]})]}),(0,t.jsx)("textarea",{className:_().textarea,placeholder:(0,o.BV)("personalizeFormPlaceholderDetails",f),value:e_.details,maxLength:w,onChange:e=>eu({...e_,details:e.target.value})}),(0,t.jsx)("div",{className:_().cefHint,children:(0,o.BV)("personalizeFormHintDetails",f)})]})]}),(0,t.jsxs)("div",{className:_().inlineActions,children:[(0,t.jsx)("span",{className:_().actionHint,children:"all"===L&&"character"===ed?(0,o.BV)("personalizeFormHintNameRelRequired",f):"all"===L&&"memory"===ed?(0,o.BV)("personalizeFormHintTitleDescRequired",f):(0,o.BV)("personalizeFormHintEnterToSave",f)}),(0,t.jsx)("button",{className:_().cancelBtn,onClick:()=>{O(!1),eu({title:"",details:"",type:"all"===L?"interest":L}),em("all"===L?"interest":L),$({name:"",rel:"",desc:""}),er({kind:"scene",title:"",scene:"",source:""})},children:"Cancel"}),(0,t.jsx)("button",{className:"".concat(_().saveBtn," ").concat("all"===L&&"character"===ed?"char":"all"===L&&"memory"===ed?"mem":""),onClick:handleProfileTabAddSubmit,disabled:A,children:A&&"create"===q?(0,o.BV)("savingLabel",f):"all"===L&&"character"===ed?(0,o.BV)("personalizeSaveCharacter",f):"all"===L&&"memory"===ed?(0,o.BV)("personalizeSaveMemory",f):(0,o.BV)("saveLabel",f)})]})]})]}),(0,t.jsx)("div",{className:_().list,children:0===ey.length?(0,t.jsx)("div",{className:_().empty,children:(0,t.jsx)("div",{className:_().emptyText,children:"all"===L?(0,o.BV)("personalizeEmptyAll",f):"interest"===L?(0,o.BV)("personalizeEmptyInterests",f):"knowledge"===L?(0,o.BV)("personalizeEmptyKnowledge",f):"goal"===L?(0,o.BV)("personalizeEmptyGoals",f):(0,o.BV)("personalizeEmptyBackground",f)})}):ey.map(e=>{var a,n,s,l,i,r,c,d,m,p;if("character"===e.type||"memory"===e.type){let r="character"===e.type?(0,o.BV)("personalizeTypeCharacter",f):(0,o.BV)("personalizeTypeMemory",f),c="memory"===e.type?normalizeMemoryKind(e.kind):null,d="scene"===c?(0,o.BV)("personalizeMemKindScene",f):"insight"===c?(0,o.BV)("personalizeMemKindInsight",f):"metaphor"===c?(0,o.BV)("personalizeMemKindMetaphor",f):(0,o.BV)("personalizeMemKindFact",f),m="character"===e.type?getOptionalDetailsText(getItemOptionalDetails(e)):"",p="memory"===e.type?getOptionalDetailsText(getItemOptionalDetails(e)):"";return(0,t.jsx)("div",{className:"".concat(_().card," ").concat(null===(a=e.isActive)||void 0===a||a?"":_().cardMuted),children:(0,t.jsxs)("div",{className:_().cardTop,children:[(0,t.jsx)("div",{className:"".concat(_().cardBadge," ").concat(_()[e.type]),children:e.emoji||y[e.type]}),(0,t.jsxs)("div",{className:_().cardBody,children:[(0,t.jsx)("div",{className:_().cardName,children:e.title}),(0,t.jsx)("div",{className:"".concat(_().cardType," ").concat(_()[e.type]),children:r}),"memory"===e.type&&(0,t.jsxs)("div",{className:_().cardDesc,style:{marginTop:4},children:[z[c]," ",d]}),"character"===e.type&&m?(0,t.jsx)("div",{className:_().cardDesc,style:{marginTop:6,fontWeight:600},children:m}):null,!(null===(n=e.isActive)||void 0===n||n)&&(0,t.jsxs)("div",{className:_().mutedPill,children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}),(0,o.BV)("personalizeMutedItem",f)]}),e.details?(0,t.jsx)("div",{className:_().cardDesc,children:e.details}):null,"memory"===e.type&&p?(0,t.jsxs)("div",{className:_().cardDesc,children:[(0,o.BV)("personalizeMemSourcePrefix",f)," ",(0,t.jsx)("strong",{children:p})]}):null]}),(0,t.jsxs)("div",{className:_().cardActions,children:[(0,t.jsx)("button",{className:"".concat(_().iconBtn," ").concat(null===(s=e.isActive)||void 0===s||s?_().muteOn:_().muteOff),onClick:()=>handleToggleActive(e),title:null===(l=e.isActive)||void 0===l||l?(0,o.BV)("personalizeVisibilityHide",f):(0,o.BV)("personalizeVisibilityShow",f),children:null===(i=e.isActive)||void 0===i||i?(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]}):(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})}),(0,t.jsx)("button",{className:_().iconBtn,onClick:()=>
1{if("character"===e.type){let a=ep.find(a=>a.id===e.id);a&&(I("characters"),startEditChar(a))}else{let a=eh.find(a=>a.id===e.id);a&&(I("memories"),startEditMem(a))}},title:(0,o.BV)("editLabel",f),children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M17 3a2.83 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"})})}),(0,t.jsx)("button",{className:_().iconBtn,onClick:()=>{G(e.id),U("character"===e.type?"character":"memory")},disabled:A,title:g("removeLabel"),children:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,t.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})]})},e.id)}if(K===e.id)return(0,t.jsxs)("div",{className:"".concat(_().card," ").concat(_().cardEditing),children:[(0,t.jsxs)("div",{className:_().editTop,children:[(0,t.jsx)("div",{className:"".concat(_().cardBadge," ").concat(_()[e.type]),children:e.emoji||y[e.type]}),(0,t.jsx)("div",{className:_().editTopBody,children:(0,t.jsx)("input",{className:_().editTitleInput,value:ex.title,maxLength:w,onChange:e=>ev({...ex,title:e.target.value})})})]}),(0,t.jsxs)("div",{className:_().detailsGroup,children:[(0,t.jsxs)("label",{className:_().fieldLabel,children:[(0,o.BV)("personalizeFormLabelDetails",f)," ",(0,t.jsxs)("span",{className:_().optionalTag,children:["(",(0,o.BV)("personalizeFormOptional",f),")"]})]}),(0,t.jsx)("textarea",{className:_().textarea,value:ex.details,maxLength:w,onChange:e=>ev({...ex,details:e.target.value})}),(0,t.jsx)("div",{className:_().detailsHint,children:(0,o.BV)("personalizeFormHintDetails",f)})]}),(0,t.jsxs)("div",{className:_().actions,children:[(0,t.jsx)("button",{className:_().btn,onClick:cancelEdit,children:(0,o.BV)("cancelLabel",f)}),(0,t.jsx)("button",{className:"".concat(_().btn," ").concat(_().btnPrimary),onClick:()=>handleUpdate(e.id),disabled:A,children:A&&"update"===q?(0,o.BV)("savingLabel",f):(0,o.BV)("saveLabel",f)})]})]},e.id);let h="interest"===e.type?(0,o.BV)("personalizeTypeInterest",f):"knowledge"===e.type?(0,o.BV)("personalizeTypeKnowledge",f):"goal"===e.type?(0,o.BV)("personalizeTypeGoal",f):(0,o.BV)("personalizeTypeBackground",f);return(0,t.jsx)("div",{className:"".concat(_().card," ").concat(null===(r=e.isActive)||void 0===r||r?"":_().cardMuted),children:(0,t.jsxs)("div",{className:_().cardTop,children:[(0,t.jsx)("div",{className:"".concat(_().cardBadge," ").concat(_()[e.type]),children:e.emoji||y[e.type]}),(0,t.jsxs)("div",{className:_().cardBody,children:[(0,t.jsx)("div",{className:_().cardName,children:e.title}),(0,t.jsx)("div",{className:"".concat(_().cardType," ").concat(_()[e.type]),children:h}),!(null===(c=e.isActive)||void 0===c||c)&&(0,t.jsxs)("div",{className:_().mutedPill,children:[(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]}),(0,o.BV)("personalizeMutedItem",f)]}),e.details&&(0,t.jsx)("div",{className:_().cardDesc,children:e.details})]}),(0,t.jsxs)("div",{className:_().cardActions,children:[(0,t.jsx)("button",{className:"".concat(_().iconBtn," ").concat(null===(d=e.isActive)||void 0===d||d?_().muteOn:_().muteOff),onClick:()=>handleToggleActive(e),title:null===(m=e.isActive)||void 0===m||m?(0,o.BV)("personalizeVisibilityHide",f):(0,o.BV)("personalizeVisibilityShow",f),children:null===(p=e.isActive)||void 0===p||p?(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"})]}):(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{d:"M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"}),(0,t.jsx)("line",{x1:"1",y1:"1",x2:"23",y2:"23"})]})}),(0,t.jsx)("button",{className:_().iconBtn,onClick:()=>startEdit(e),title:(0,o.BV)("editLabel",f),children:(0,t.jsx)("svg",{viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M17 3a2.83 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z"})})}),(0,t.jsx)("button",{className:_().iconBtn,onClick:()=>{G(e.id),U("item")},disabled:A,title:g("removeLabel"),children:(0,t.jsxs)("svg",{viewBox:"0 0 24 24",children:[(0,t.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,t.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]})]})},e.id)})})]})]}),null!==P&&(0,t.jsx)("div",{className:_().confirmOverlay,onClick:()=>G(null),children:(0,t.jsxs)("div",{className:_().confirmBox,onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("div",{className:_().confirmIcon,children:(()=>
1{if("character"===H)return"\uD83C\uDFAD";if("memory"===H)return"\uD83D\uDCAD";let e=V.find(e=>e.id===P);return e?y[e.type]:"\uD83D\uDCCB"})()}),(0,t.jsx)("div",{className:_().confirmTitle,children:"character"===H?(0,o.BV)("personalizeConfirmRemoveCharacter",f):"memory"===H?(0,o.BV)("personalizeConfirmRemoveMemory",f):(0,o.BV)("personalizeConfirmRemoveItem",f).replace(":type",(null===(a=V.find(e=>e.id===P))||void 0===a?void 0:a.type)||"item")}),(0,t.jsx)("div",{className:_().confirmBody,dangerouslySetInnerHTML:{__html:(0,o.BV)("personalizeConfirmRemoveBody",f).replace(":name","<strong>".concat("character"===H?(null===(n=ep.find(e=>e.id===P))||void 0===n?void 0:n.name)||"":"memory"===H?(null===(h=eh.find(e=>e.id===P))||void 0===h?void 0:h.title)||"":(null===(C=V.find(e=>e.id===P))||void 0===C?void 0:C.title)||"","</strong>"))}}),(0,t.jsxs)("div",{className:_().confirmActions,children:[(0,t.jsx)("button",{className:_().confirmCancel,onClick:()=>G(null),children:(0,o.BV)("cancelLabel",f)}),(0,t.jsx)("button",{className:_().confirmDelete,onClick:()=>handleDelete(P),disabled:A&&"delete"===q,children:A&&"delete"===q?(0,o.BV)("removingLabel",f):(0,o.BV)("personalizeConfirmRemoveBtn",f)})]})]})})]})}},7047:function(e){e.exports={page:"personalize-content_page__Nogzv",header:"personalize-content_header__6f517",headerTop:"personalize-content_headerTop__81oEe",backBtn:"personalize-content_backBtn__VCeXn",title:"personalize-content_title___34BQ",subtitle:"personalize-content_subtitle__PuouF",statsRow:"personalize-content_statsRow__2_xgZ",statCol:"personalize-content_statCol__4k7cg",statNum:"personalize-content_statNum__twQt2",statLabel:"personalize-content_statLabel__uBrLK",body:"personalize-content_body__Ylzyt",tabs:"personalize-content_tabs___sDrf",tab:"personalize-content_tab__ve9ra",tabActive:"personalize-content_tabActive___HSWV",tabChar:"personalize-content_tabChar__6gQEu",tabMem:"personalize-content_tabMem__nbr3L",tabIcon:"personalize-content_tabIcon__X_0sF",tabCount:"personalize-content_tabCount__qTV4Q",content:"personalize-content_content__4lYVZ",tabCard:"personalize-content_tabCard__LAo0g",tabCardIcon:"personalize-content_tabCardIcon__JOr4Q",tabCardBody:"personalize-content_tabCardBody__rRGq3",tabCardTitle:"personalize-content_tabCardTitle__VdjrO",tabCardDesc:"personalize-content_tabCardDesc__ULhpU",tabCardAll:"personalize-content_tabCardAll__ZRQZp",tabCardInterest:"personalize-content_tabCardInterest__FqFkb",tabCardKnowledge:"personalize-content_tabCardKnowledge__3s7Ft",tabCardGoal:"personalize-content_tabCardGoal__r5aJs",tabCardBackground:"personalize-content_tabCardBackground__fitBj",tabCardCharacters:"personalize-content_tabCardCharacters__0snX5",tabCardMemories:"personalize-content_tabCardMemories__rb3Ad",tipAnchor:"personalize-content_tipAnchor__gtRPr",inlineAddRow:"personalize-content_inlineAddRow__yRFko",inlineAddTrigger:"personalize-content_inlineAddTrigger__mPj33",char:"personalize-content_char__mqqVc",mem:"personalize-content_mem__K_DvH",inlineAddExpanded:"personalize-content_inlineAddExpanded__PK009",inlineAddRowOpen:"personalize-content_inlineAddRowOpen__x_cBz",fieldGroup:"personalize-content_fieldGroup__GsnkV",fieldLabel:"personalize-content_fieldLabel__yEwbe",optionalTag:"personalize-content_optionalTag__qeqVo",inputName:"personalize-content_inputName__znUHq",textarea:"personalize-content_textarea__ErtAT",typeRow:"personalize-content_typeRow__4Z465",typeHint:"personalize-content_typeHint__Xa3_8",typeChip:"personalize-content_typeChip__nxKeB",typeChipSel:"personalize-content_typeChipSel__8aGtQ",typeChipInterest:"personalize-content_typeChipInterest__bQYdM",typeChipKnowledge:"personalize-content_typeChipKnowledge__o6Rms",typeChipGoal:"personalize-content_typeChipGoal__4_App",typeChipBackground:"personalize-content_typeChipBackground__DAaX9",typeChipCharacter:"personalize-content_typeChipCharacter__yDsTv",typeChipMemory:"personalize-content_typeChipMemory__XyBwB",memKindChip:"personalize-content_memKindChip__xO5IY",memKindChipSel:"personalize-content_memKindChipSel__bnp5O",memKindChipScene:"personalize-content_memKindChipScene__lYVpw",memKindChipInsight:"personalize-content_memKindChipInsight__7U0Nh",memKindChipMetaphor:"personalize-content_memKindChipMetaphor__ZuC2c",memKindChipFact:"personalize-content_memKindChipFact__98uPt",inlineActions:"personalize-content_inlineActions__AcB9P",actionHint:"personalize-content_actionHint__7OncF",saveBtn:"personalize-content_saveBtn__9aykB",cancelBtn:"personalize-content_cancelBtn__LaN5b",list:"personalize-content_list__BIDNa",card:"personalize-content_card__Nz0Sm",cardMuted:"personalize-content_cardMuted__r0vFD",mutedPill:"personalize-content_mutedPill__Qz14s",cardTop:"personalize-content_cardTop__ycRap",cardBadge:"personalize-content_cardBadge__rk1Rw",interest:"personalize-content_interest__UXFBN",knowledge:"personalize-content_knowledge__9Eppg",goal:"personalize-content_goal__f7My0",background:"personalize-content_background__Qi7Km",cardBody:"personalize-content_cardBody__tukB5",cardName:"personalize-content_cardName__5zeon",cardType:"personalize-content_cardType__2_wLY",character:"personalize-content_character__KJi6b",memory:"personalize-content_memory__ZUKWR",cardDesc:"personalize-content_cardDesc__q9yWh",cardActions:"personalize-content_cardActions__D9FzV",iconBtn:"personalize-content_iconBtn__Iu5dC",muteOn:"personalize-content_muteOn__fpvj_",muteOff:"personalize-content_muteOff__QI0jx",charItems:"personalize-content_charItems__NL5ST",charCard:"personalize-content_charCard__1uDzD",charCardTop:"personalize-content_charCardTop__IIW5a",charAvatar:"personalize-content_charAvatar__5nc06",charBody:"personalize-content_charBody__kvdBi",charName:"personalize-content_charName__u9k3m",charRel:"personalize-content_charRel__88sVg",charDesc:"personalize-content_charDesc__3eMXM",charActions:"personalize-content_charActions__Ciqq_",memItems:"personalize-content_memItems__coNlH",memCard:"personalize-content_memCard__6k6g1",memScene:"personalize-content_memScene__ub1Wb",memInsight:"personalize-content_memInsight__jMivy",memMetaphor:"personalize-content_memMetaphor__ckB1N",memFact:"personalize-content_memFact__1hDku",memCardTop:"personalize-content_memCardTop__FmmTV",memCardIcon:"personalize-content_memCardIcon__wX2gq",memCardBody:"personalize-content_memCardBody__lordG",memCardText:"personalize-content_memCardText__TDB25",memCardKindRow:"personalize-content_memCardKindRow__NrJpv",memCardKind:"personalize-content_memCardKind__HeaU9",memUserBadge:"personalize-content_memUserBadge__Kh4vN",memCardScene:"personalize-content_memCardScene__0f4sd",memCardFooter:"personalize-content_memCardFooter__eipJg",memCardSource:"personalize-content_memCardSource__aqAE8",memCardDel:"personalize-content_memCardDel__KoGdD",cardEditForm:"personalize-content_cardEditForm__CNH_6",cefField:"personalize-content_cefField__pNGYu",cefLabel:"personalize-content_cefLabel__3P6Mk",cefInput:"personalize-content_cefInput__cKJBc",cefTextarea:"personalize-content_cefTextarea__IgRlX",cefHint:"personalize-content_cefHint__Ghbh_",cefActions:"personalize-content_cefActions__GfSDX",cardEditing:"personalize-content_cardEditing__sVpkO",confirmOverlay:"personalize-content_confirmOverlay__X9p_c",confirmBox:"personalize-content_confirmBox__1JOQN",confirmIcon:"personalize-content_confirmIcon__oaq_a",confirmTitle:"personalize-content_confirmTitle__ncJ1U",confirmBody:"personalize-content_confirmBody__iyH9L",confirmActions:"personalize-content_confirmActions__l5fpv",confirmCancel:"personalize-content_confirmCancel__ne_77",confirmDelete:"personalize-content_confirmDelete__ztUDA",empty:"personalize-content_empty__mR4J_",emptyIcon:"personalize-content_emptyIcon__nV7QG",emptyText:"personalize-content_emptyText__chsRb",meta:"personalize-content_meta__ea4Sd",error:"personalize-content_error__7XNYl",editTitleInput:"personalize-content_editTitleInput__M0i0Z",input:"personalize-content_input__Fe2U_",btn:"personalize-content_btn__Dd7YJ",btnPrimary:"personalize-content_btnPrimary__Ep4Zl",deleteBtn:"personalize-content_deleteBtn__HKd4k",editTop:"personalize-content_editTop__Afi3W",editTopBody:"personalize-content_editTopBody__rCCVY",detailsGroup:"personalize-content_detailsGroup__EQFB9",detailsHint:"personalize-content_detailsHint__ISscc",typeGroup:"personalize-content_typeGroup__3fJOG",chip:"personalize-content_chip__iiovy",chipActive:"personalize-content_chipActive__XqRZe",actions:"personalize-content_actions__P_P8y",modalOverlay:"personalize-content_modalOverlay__vIhwD",modalCard:"personalize-content_modalCard__9dAVH",modalTitle:"personalize-content_modalTitle__gNqDf",modalText:"personalize-content_modalText__b_Ev_",modalActions:"personalize-content_modalActions__pdd1h"}},10434:function(e){function _extends(){return e.exports=_extends=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var n=arguments[a];for(var t in n)({}).hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,_extends.apply(null,arguments)}
1e.exports=_extends,e.exports.__esModule=!0,e.exports.default=e.exports},99496:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},7071:function(e){e.exports=function(e,a){if(null==e)return{};var n={};for(var t in e)if(({}).hasOwnProperty.call(e,t)){if(-1!==a.indexOf(t))continue;n[t]=e[t]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}},function(e){e.O(0,[4055,4322,9774,2888,179],function(){return e(e.s=37700)}),_N_E=e.O()}]);
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.