1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3ec5dd0d-c8ce-455d-9bd4-bcef1d4bd2aa",e._sentryDebugIdIdentifier="sentry-dbid-3ec5dd0d-c8ce-455d-9bd4-bcef1d4bd2aa")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4624],{4565:(e,n,i)=>{i.d(n,{L:()=>o});var a=i(72007);let t={},d={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateIntent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateIntentInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createIntent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"intent"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"phrasesLocalised"}},{kind:"Field",name:{kind:"Name",value:"isExact"}}]}}]}}]}}]};function o(e){let n={...t,...e};return a.n(d,n)}},6017:(e,n,i)=>{i.d(n,{A:()=>a});let a=function(e){return null!=e}},7507:(e,n,i)=>{i.d(n,{S:()=>t,Z:()=>d});var a=i(15977);let t=(0,a.createContext)({characters:[],entities:[],intents:[],memories:[],subplots:[]}),d=()=>(0,a.useContext)(t)},7724:(e,n,i)=>{i.d(n,{A:()=>c});var a=i(7765),t=i(47769),d=i.n(t),o=i(15977),l=i(57355),s=i(60385),r=i(51248),m=i(97737);let c=e=>{let{config:n,onChangeConfig:i,supportedConfig:t}=e,{version:c}=(0,m.E)(),[k,u]=(0,o.useState)(n.pitch),[p,N]=(0,o.useState)(n.rate),[v,S]=(0,o.useState)(n.volume),[h,g]=(0,o.useState)(n.whispering);(0,o.useEffect)(()=>{u(n.pitch),N(n.rate),S(n.volume),g(n.whispering)},[n.pitch,n.rate,n.volume,n.whispering]);let y=-1===c;return(0,a.jsxs)("div",{className:"jsx-311b45f3a6195a0a",children:[t.supportsPitch&&(0,a.jsxs)("div",{className:"jsx-311b45f3a6195a0a "+((null===k?"inactive":"")||""),children:[(0,a.jsx)("span",{className:"jsx-311b45f3a6195a0a "+(l.E4k||""),children:"Pitch"}),(0,a.jsx)(s.A,{disabled:!y,value:null===k?.5:Number(k),onChange:e=>u(e.toFixed(2)),onRelease:e=>i({...n,pitch:e.toFixed(2)}),min:0,max:1,stepSize:.05,labelRenderer:!1}),(0,a.jsx)("div",{className:"jsx-311b45f3a6195a0a spacer"})]}),t.supportsRate&&(0,a.jsxs)("div",{className:"jsx-311b45f3a6195a0a "+((null===p?"inactive":"")||""),children:[(0,a.jsx)("span",{className:"jsx-311b45f3a6195a0a "+(l.E4k||""),children:"Rate"}),(0,a.jsx)(s.A,{disabled:!y,value:null===p?.5:Number(p),onChange:e=>N(e.toFixed(2)),onRelease:e=>{i({...n,rate:e.toFixed(2)})},min:0,max:1,stepSize:.05,labelRenderer:!1}),(0,a.jsx)("div",{className:"jsx-311b45f3a6195a0a spacer"})]}),t.supportsVolume&&(0,a.jsxs)("div",{className:"jsx-311b45f3a6195a0a "+((null===v?"inactive":"")||""),children:[(0,a.jsx)("span",{className:"jsx-311b45f3a6195a0a "+(l.E4k||""),children:"Volume"}),(0,a.jsx)(s.A,{disabled:!y,value:null===v?.5:Number(v),onChange:e=>S(e.toFixed(2)),onRelease:e=>i({...n,volume:e.toFixed(2)}),min:0,max:1,stepSize:.05,labelRenderer:!1}),(0,a.jsx)("div",{className:"jsx-311b45f3a6195a0a spacer"})]}),t.supportsWhispering&&(0,a.jsx)("div",{className:"jsx-311b45f3a6195a0a "+((null===h?"inactive":"")||""),children:(0,a.jsx)(r.Sc,{disabled:!y,labelElement:(0,a.jsx)("span",{className:"jsx-311b45f3a6195a0a "+(l.E4k||""),children:"Whisper"}),checked:null!==h&&h,onChange:e=>{let{currentTarget:{checked:a}}=e;return i({...n,whispering:a})}})}),(0,a.jsx)(d(),{id:"311b45f3a6195a0a",children:".spacer.jsx-311b45f3a6195a0a{height:10px}.inactive.jsx-311b45f3a6195a0a{opacity:.5}"})]})}},9037:(e,n,i)=>{i.d(n,{A:()=>d});var a=i(7765),t=i(89818);let d=e=>{let{entities:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("option",{disabled:!0,value:"",children:"Select a category"}),(0,a.jsx)("optgroup",{label:"Custom categories",children:n.map(e=>(0,a.jsx)("option",{value:e,children:e},e))}),(0,a.jsx)("optgroup",{label:"Core categories",children:t.p.map(e=>(0,a.jsx)("option",{value:e,children:e},e))})]})}},29301:(e,n,i)=>{i.d(n,{A:()=>N});var a=i(7765),t=i(73917),d=i(39106),o=i(33473),l=i(76736),s=i(48643),r=i(15977),m=i(39488),c=i(97737),k=i(26299),u=i(15523),p=i(59345);let N=(0,r.forwardRef)((e,n)=>{let{serialized:i,onChangeAudio:r,voiceConfig:N,readOnly:v,...S}=e,{storyId:h}=(0,c.E)(),g=(0,u.A)(),{playVoice:y,downloadVoice:F,loading:x}=(0,m.SK)({text:i.text,voiceConfig:N,storyId:h}),f=e=>{i.audio?(0,m.HV)(i.audio.url):y&&y(e.ctrlKey||e.metaKey)},b=(0,a.jsxs)(t.W,{children:[(0,a.jsx)(d.D,{icon:"play",text:"Play voice clip",onClick:f,disabled:!i.audio&&!y}),(0,a.jsx)(d.D,{icon:"download",text:"Download voice clip",onClick:e=>{i.audio?(0,m.x7)(i.audio.url,i.text.replace(/[^A-Za-z0-9]/g,"_").trim().slice(0,64)):F&&F(e.ctrlKey||e.metaKey)},disabled:!i.audio&&!y}),r&&(0,a.jsx)(d.D,{icon:"upload",text:"Upload voice clip",onClick:()=>{g?((e,n)=>{let i=document.createElement("input");i.type="file",i.accept=e,i.addEventListener("change",e=>{let i=e.target;i.files&&n(i.files)}),i.click()})("audio/*",e=>{let n=e[0];n&&r(n)}):(0,k.A)()}}),(0,a.jsx)(d.D,{icon:"refresh",text:"Regenerate voice clip",onClick:()=>{y&&y(!0)},disabled:!!i.audio||!y}),r&&(0,a.jsx)(d.D,{icon:"trash",text:"Remove voice clip",onClick:()=>{i.audio&&r(null)},disabled:!i.audio})]}),C=null;return(i.audio||N.voiceId)&&(C=(0,a.jsx)(o.t,{content:b,children:(0,a.jsx)(l.$,{onClick:f,icon:"volume-up",loading:x,variant:"minimal",intent:i.audio?s.J.PRIMARY:s.J.NONE,style:{borderRadius:"unset",height:"100%"},"aria-label":"Play voice clip"})})),(0,a.jsx)(p.Ay,{...S,rightElement:C,readOnly:v,ref:n})})},39488:(e,n,i)=>{i.d(n,{Ay:()=>u,x7:()=>c,HV:()=>m,SK:()=>k});var a=i(7765),t=i(78639),d=i(15977),o=i(63792),l=i(54927),s=i(37364);let r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"VoiceSample"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"text"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"voiceId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"encodings"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"VoiceSampleEncoding"}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"options"}},type:{kind:"NamedType",name:{kind:"Name",value:"VoiceSampleOptionsInput"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"disableFetchFromCache"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"storyId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"voiceSample"},arguments:[{kind:"Argument",name:{kind:"Name",value:"text"},value:{kind:"Variable",name:{kind:"Name",value:"text"}}},{kind:"Argument",name:{kind:"Name",value:"voiceId"},value:{kind:"Variable",name:{kind:"Name",value:"voiceId"}}},{kind:"Argument",name:{kind:"Name",value:"encodings"},value:{kind:"Variable",name:{kind:"Name",value:"encodings"}}},{kind:"Argument",name:{kind:"Name",value:"options"},value:{kind:"Variable",name:{kind:"Name",value:"options"}}},{kind:"Argument",name:{kind:"Name",value:"disableFetchFromCache"},value:{kind:"Variable",name:{kind:"Name",value:"disableFetchFromCache"}}},{kind:"Argument",name:{kind:"Name",value:"storyId"},value:{kind:"Variable",name:{kind:"Name",value:"storyId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"audioUrl"}}]}}]}}]},m=e=>{new Audio(e).play()},c=async(e,n)=>{let i=await fetch(e).then(e=>e.blob()),a=window.URL.createObjectURL(i),t=document.createElement("a");t.setAttribute("href",a),t.setAttribute("download",n),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t),window.URL.revokeObjectURL(a)},k=e=>{let{text:n,voiceConfig:i,storyId:a}=e,{voiceId:k,...u}=i||{},[p,N]=(0,d.useState)(!1),v=(0,t.m)(),S=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!k)return null;N(!0);let i=(0,l.A)(),t=[o.a5.MP3];i||t.unshift(o.a5.OGG),t.push(o.a5.WAV);try{var d;let{data:i}=await v.query({query:r,variables:{text:n,voiceId:k,encodings:t,options:u,disableFetchFromCache:e,storyId:a},fetchPolicy:"no-cache"});if(null==(d=i.voiceSample)?void 0:d.audioUrl)return i.voiceSample.audioUrl;(0,s.L_)("Could not generate voice sample, if this persists please contact us directly at [email protected]")}catch(e){return k.includes("elevenlabs-custom")?(0,s.L_)("Something went wrong generating the ElevenLabs custom voice sample. Make sure your ElevenLabs api key is valid, and you have not exceeded any limits in your ElevenLabs account."):(0,s.L_)("Something went wrong generating a voice sample, if this persists please contact us directly at [email protected]"),null}finally{N(!1)}},h=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=await S(e);null!==n&&m(n)},g=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=await S(e);null!==i&&c(i,n.replace(/[^A-Za-z0-9]/g,"_").trim().slice(0,64))};return{loading:p,playVoice:"string"==typeof k?h:null,downloadVoice:"string"==typeof k?g:null}},u=e=>{let{children:n,text:i="Will I be the voice for your character?",...t}=e;return(0,a.jsx)(a.Fragment,{children:n(k({...t,text:i}))})}},40709:(e,n,i)=>{i.d(n,{P:()=>a,u:()=>t});let a=e=>{let n=[/^https:\/\/(?:www.)?youtube.com\/embed\/([A-z0-9-]+?)\/?$/,/^https:\/\/youtu.be\/([A-z0-9-]+?)\/?$/,/^https:\/\/(?:www.)?youtube.com\/watch\?v=([A-z0-9-]+?)$/].find(n=>n.test(e));if(!n)return null;let i=n.exec(e);return i?"https://www.youtube.com/embed/".concat(i[1]):null},t=e=>{let n=[/^https:\/\/(?:www.)?vimeo.com\/([0-9]+?)\/?$/,/^https:\/\/player.vimeo.com\/video\/([0-9]+?)\/?$/].find(n=>n.test(e));if(!n)return null;let i=n.exec(e);return i?"https://player.vimeo.com/video/".concat(i[1]):null}},41852:(e,n,i)=>{i.d(n,{hq:()=>o,zi:()=>d});var a=i(31402);let t={},d={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Voices"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"storyId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"voices"},arguments:[{kind:"Argument",name:{kind:"Name",value:"storyId"},value:{kind:"Variable",name:{kind:"Name",value:"storyId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"displayName"}},{kind:"Field",name:{kind:"Name",value:"gender"}},{kind:"Field",name:{kind:"Name",value:"language"}},{kind:"Field",name:{kind:"Name",value:"service"}},{kind:"Field",name:{kind:"Name",value:"supportsRate"}},{kind:"Field",name:{kind:"Name",value:"supportsPitch"}},{kind:"Field",name:{kind:"Name",value:"supportsVolume"}},{kind:"Field",name:{kind:"Name",value:"supportsWhispering"}}]}}]}}]};function o(e){let n={...t,...e};return a.IT(d,n)}},54927:(e,n,i)=>{i.d(n,{A:()=>a});let a=()=>/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)},59345:(e,n,i)=>{i.d(n,{Ay:()=>F,iu:()=>y,lK:()=>g});var a=i(7765),t=i(47769),d=i.n(t),o=i(15977),l=i(74902),s=i(22644),r=i(65421),m=i(22199),c=i(46001),k=i.n(c),u=i(57355);let p=e=>{let{children:n}=e;return m.createPortal(n,document.body)},N=(e,n)=>{l.gB.insertNodes(e,{type:"tag",tag:n,children:[{text:"<".concat(n,">")}]}),l.gB.move(e)},v=e=>{let{attributes:n,children:i,element:t}=e,d=(0,r.f7)(),o=(0,r.zL)();return(0,a.jsxs)("span",{...n,contentEditable:!1,style:{padding:"3px 3px 2px",margin:"0 1px",verticalAlign:"baseline",display:"inline-block",borderRadius:"4px",backgroundColor:"var(--accent-1)",fontSize:"0.9em",boxShadow:d&&o?"0 0 0 2px #B4D5FF":"none"},children:["<",t.tag,">",i]})},S=e=>{let{attributes:n,children:i,element:t}=e;return"tag"===t.type?(0,a.jsx)(v,{...e}):(0,a.jsx)("p",{...n,style:{marginBottom:0},children:i})},h=/(<[A-Za-z0-9_\-.]*?>)/,g=e=>e.map(e=>l.bP.string(e)).join("\n"),y=e=>e.split("\n").map(e=>({type:"wrapper",children:e.split(h).map(e=>h.test(e)?{type:"tag",tag:e.replace("<","").replace(">",""),children:[{text:e}]}:{text:e})})),F=o.forwardRef((e,n)=>{let{value:i,onChangeValue:t,readOnly:m,onKeyDown:c,leftElement:v,rightElement:h,tagList:g,placeholder:y,onPaste:F,onContextMenu:x}=e,f=(0,o.useRef)(null),[b,C]=(0,o.useState)(null),[G,j]=(0,o.useState)(0),[I,P]=(0,o.useState)(""),T=(0,o.useCallback)(e=>(0,a.jsx)(S,{...e}),[]),D=(0,o.useMemo)(()=>(e=>{let{isInline:n,isVoid:i}=e;return e.isInline=e=>"tag"===e.type||n(e),e.isVoid=e=>"tag"===e.type||i(e),e})((0,r.o$)((0,s.$k)((0,l.ie)()))),[]),M=(0,o.useMemo)(()=>Math.random(),[]),R=g.filter(e=>e.toLowerCase().startsWith(I.toLowerCase())).slice(0,10),E=(0,o.useCallback)(e=>{if(b)switch(e.key){case"ArrowDown":e.preventDefault(),j(G>=R.length-1?0:G+1);return;case"ArrowUp":e.preventDefault(),j(G<=0?R.length-1:G-1);return;case"Tab":case"Enter":e.preventDefault(),l.gB.select(D,b),N(D,R[G]),C(null);return;case"Escape":e.preventDefault(),C(null);return}c&&c(e)},[G,b,R,D,c]);(0,o.useEffect)(()=>{let e=f.current;if(e&&b&&R.length>0){let n=r.rL.toDOMRange(D,b).getBoundingClientRect();e.style.top="".concat(n.top+window.pageYOffset+24,"px"),e.style.left="".concat(n.left+window.pageXOffset,"px")}},[R.length,D,G,I,b]);let w=(0,o.useCallback)(e=>{r.rL.isFocused(D)&&t(e);let{selection:n}=D;if(n&&l.Q6.isCollapsed(n)){var i;let[e]=l.Q6.edges(n),a=l.KE.before(D,e,{unit:"word"}),t=null!=(i=a&&l.KE.range(D,a,e))?i:null,d=t&&l.KE.string(D,t),o=d&&/^<(\w+)$/.exec(d),s=l.KE.after(D,e),r=l.KE.range(D,e,s),m=l.KE.string(D,r),c=/^(\s|$)/.exec(m);if(o&&c){C(t),P(o[1]),j(0);return}}C(null)},[D,t]);return(0,o.useImperativeHandle)(n,()=>({focus:()=>{r.rL.focus(D),l.gB.select(D,{offset:0,path:[0,0]})},blur:()=>{r.rL.blur(D)}})),(0,a.jsxs)("div",{className:"jsx-e9217684408e6e0a "+(k()("editor",u.bOq)||""),children:[v,(0,a.jsxs)(r.A,{editor:D,value:i,onChange:w,children:[(0,a.jsx)(r.Fo,{style:{flex:1,outline:"inherit",padding:8},readOnly:m,renderElement:T,onKeyDown:E,placeholder:y||"Enter some text...",onPaste:F,onContextMenu:x}),b&&R.length>0&&(0,a.jsx)(p,{children:(0,a.jsx)("div",{ref:f,className:"jsx-e9217684408e6e0a tags-popover",children:R.map((e,n)=>(0,a.jsx)("div",{onFocus:()=>j(n),onMouseOver:()=>j(n),onMouseDown:()=>{l.gB.select(D,b),N(D,R[n]),C(null)}
1,role:"button",tabIndex:-1,className:"jsx-e9217684408e6e0a "+(k()("tag",{selected:n===G})||""),children:e},e))})})]},M),h,(0,a.jsx)(d(),{id:"e9217684408e6e0a",children:".editor.jsx-e9217684408e6e0a{display:flex;margin-bottom:0;line-height:unset;height:unset;padding:0;overflow:hidden}.editor.jsx-e9217684408e6e0a:focus-within{box-shadow:0 0 0 1px var(--dark-blue),0 0 0 3px rgba(19,124,189,.3),inset 0 1px 1px rgba(16,22,26,.2);z-index:10}.tags-popover.jsx-e9217684408e6e0a{top:-9999px;left:-9999px;position:absolute;z-index:1;padding:3px;background:var(--section-color);border-radius:4px;box-shadow:0 1px 5px rgba(0,0,0,.2)}.tag.jsx-e9217684408e6e0a{padding:1px 3px;border-radius:3px;-webkit-user-select:none;user-select:none;cursor:pointer}.tag.selected.jsx-e9217684408e6e0a{background:var(--section-border-color)}"})]})})},61009:(e,n,i)=>{i.d(n,{Lv:()=>o,xW:()=>d});var a=i(31402);let t={},d={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"IntentsQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"storyVersionId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"searchByName"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"storyVersion"},name:{kind:"Name",value:"storyVersionById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"storyVersionId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",alias:{kind:"Name",value:"intents"},name:{kind:"Name",value:"intentsByStoryVersionId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"NAME_ASC"}]}},{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"name"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"includesInsensitive"},value:{kind:"Variable",name:{kind:"Name",value:"searchByName"}}}]}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"IntentsQueryIntent"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"entities"},name:{kind:"Name",value:"entitiesByStoryVersionId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"term"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"IntentsQueryIntent"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Intent"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"phrasesLocalised"}},{kind:"Field",name:{kind:"Name",value:"isExact"}}]}}]};function o(e){let n={...t,...e};return a.IT(d,n)}},63306:(e,n,i)=>{i.d(n,{A:()=>m});var a=i(7765),t=i(47769),d=i.n(t),o=i(57355),l=i(60385),s=i(46001),r=i.n(s);let m=e=>{let{disabled:n=!1,leftLabel:i,rightLabel:t,labelStyle:s={},style:m={},value:c,onChange:k,onRelease:u,...p}=e;return(0,a.jsxs)("div",{style:m,className:"jsx-3c7e55ed9bf0e164 slider-wrapper",children:[(0,a.jsx)("div",{style:s,className:"jsx-3c7e55ed9bf0e164 "+(r()("trait",o.E4k)||""),children:i}),(0,a.jsx)("div",{className:"jsx-3c7e55ed9bf0e164 slider",children:(0,a.jsx)(l.A,{disabled:n,min:-1,max:1,stepSize:.01,value:c,onChange:k,onRelease:u,labelRenderer:!1,showTrackFill:0!==c,...p})}),(0,a.jsx)("div",{style:s,className:"jsx-3c7e55ed9bf0e164 "+(r()("trait",o.E4k)||""),children:t}),(0,a.jsx)(d(),{id:"3c7e55ed9bf0e164",children:".slider-wrapper.jsx-3c7e55ed9bf0e164{display:flex;align-items:center;margin-bottom:20px}.trait.jsx-3c7e55ed9bf0e164{width:110px;margin:0 15px}.trait.jsx-3c7e55ed9bf0e164:first-child{margin-left:0;text-align:left}.trait.jsx-3c7e55ed9bf0e164:last-child{margin-right:0;text-align:right}.slider.jsx-3c7e55ed9bf0e164{flex:1}"})]})}},74624:(e,n,i)=>{i.d(n,{A:()=>tz});var a=i(7765),t=i(15977),d=i(69011),o=i(81768);let l=t.createContext({disabled:!1,id:null,onEndEdge:()=>void 0,onMouseDown:()=>void 0,onMouseUp:()=>void 0}),s=()=>(0,t.useContext)(l),r=e=>{let{children:n}=e,{id:i,onEndEdge:d}=s(),o=(0,t.useCallback)(()=>d(i),[i,d]);return(0,a.jsx)("div",{onMouseUp:o,children:n})},m=t.memo(e=>{let{id:n,data:i,startX:t,startY:d,endX:o,endY:l,selected:s,onClick:r,renderEdge:m,isPending:c}=e;return(0,a.jsx)(a.Fragment,{children:m({data:i,end:{x:o,y:l},id:n,select:r,selected:s,start:{x:t,y:d},isPending:c})})}),c=e=>{let{edges:n,getSourcePinOffset:i,getTargetPinOffset:t,selectedEdges:d,onClick:o,renderEdge:l}=e;return(0,a.jsx)("g",{children:n.map(e=>{let n=i(e.fromId),s=t(e.toId);return(0,a.jsx)(m,{id:e.id,data:e.data,startX:n.x,startY:n.y,endX:s.x,endY:s.y,selected:d.includes(e.id),onClick:o,renderEdge:l,isPending:e.isPending},e.id)})})},k=e=>{let{color:n,hatchingColor:i,hatchingSize:t,matrix:d}=e;return(0,a.jsx)("div",{style:{backgroundColor:n,backgroundImage:"repeating-linear-gradient(to right, ".concat(i,", ").concat(i," 1px, transparent 1px, transparent ").concat(t*d.a,"px), repeating-linear-gradient(to bottom, ").concat(i,", ").concat(i," 1px, transparent 1px, transparent ").concat(t*d.a,"px)"),backgroundPosition:"".concat(d.e,"px ").concat(d.f,"px"),backgroundSize:"".concat(t*d.a,"px ").concat(t*d.a,"px"),position:"absolute",width:"100%",height:"100%"}})}
1,u="graph-select-restricted";class p extends t.Component{componentDidMount(){document.body.addEventListener("wheel",this.cancelWheel,{passive:!1})}componentWillUnmount(){document.body.removeEventListener("wheel",this.cancelWheel)}render(){let{className:e}=this.props;return(0,a.jsx)("div",{className:e,onDoubleClick:this.onDoubleClick,onMouseDown:this.onMouseDown,onWheel:this.onWheel,ref:this.surfaceRef,style:{height:"100%",width:"100%",position:"absolute"}})}constructor(...e){super(...e),this.surfaceRef=t.createRef(),this.isWheelDisabled=!1,this.initialMousePosition=null,this.lastMousePosition=null,this.cancelWheel=e=>{e.target===this.surfaceRef.current&&e.preventDefault()},this.onDoubleClick=e=>{let n=this.getAbsolutePoint(e),{onDoubleClick:i}=this.props;i({mousePosition:n},e)},this.onMouseDown=e=>{this.isWheelDisabled=!0;let n=this.getAbsolutePoint(e);this.initialMousePosition=n,this.lastMousePosition=n,document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),(e=>{let n="charisma-react-graph",i=e.getElementById(n);i||((i=e.createElement("style")).type="text/css",i.id=n,i.innerHTML='\n.graph-select-restricted { user-select: none; }\n.graph-select-restricted input,\n.graph-select-restricted textarea\n.graph-select-restricted *[contenteditable="true"] { pointer-events: none; }',e.getElementsByTagName("head")[0].appendChild(i)),e.body.classList.add(u)})(document);let{onMouseDown:i}=this.props;i({mousePosition:n},e)},this.onMouseMove=e=>{if(e.stopPropagation(),null===this.initialMousePosition||null===this.lastMousePosition)return;let n=this.initialMousePosition,i=this.getAbsolutePoint(e),a=this.lastMousePosition,t={x:i.x-a.x,y:i.y-a.y},d={x:i.x-n.x,y:i.y-n.y};this.lastMousePosition=i;let{onMouseMove:o}=this.props;o({initialMousePosition:n,lastMousePosition:a,currentMousePosition:i,delta:t,totalDelta:d},e)},this.onMouseUp=e=>{document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.isWheelDisabled=!1,this.initialMousePosition=null,this.lastMousePosition=null,document.body.classList.remove(u);let n=this.getAbsolutePoint(e),{onMouseUp:i}=this.props;i({mousePosition:n},e)},this.onWheel=e=>{if(this.isWheelDisabled)return;let n=this.getAbsolutePoint(e),{onWheel:i}=this.props;i({mousePosition:n,delta:e.deltaY},e)},this.getAbsolutePoint=e=>{if(!this.surfaceRef.current)throw Error("`surfaceRef` is not bound.");let{left:n,top:i}=this.surfaceRef.current.getBoundingClientRect();return{x:e.clientX-Math.round(n),y:e.clientY-Math.round(i)}}}}var N=function(e){return e[e.Move=0]="Move",e[e.Multiselect=1]="Multiselect",e}(N||{});class v extends t.PureComponent{componentDidMount(){document.addEventListener("keyup",this.handleShiftUp),document.addEventListener("keydown",this.handleShiftDown)}componentWillUnmount(){document.removeEventListener("keyup",this.handleShiftUp),document.removeEventListener("keydown",this.handleShiftDown)}render(){let{shiftDown:e}=this.state;return(0,a.jsx)(p,{className:"graph-background".concat(e?" graph-background-multiselect":""),onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseUp:this.handleMouseUp,onDoubleClick:this.handleDoubleClick,onWheel:this.handleWheel})}constructor(...e){super(...e),this.currentTool=null,this.hasMoved=!1,this.state={shiftDown:!1},this.handleShiftDown=e=>{"Shift"===e.key&&this.setState({shiftDown:!0})},this.handleShiftUp=()=>{let{shiftDown:e}=this.state;e&&this.setState({shiftDown:!1})},this.handleDoubleClick=e=>{let{mousePosition:n}=e,i=this.getRelativePoint(n),{onSurfaceDoubleClick:a}=this.props;a(i)},this.handleMouseDown=(e,n)=>{document.activeElement&&document.activeElement.blur();let i=document.getSelection();i&&i.removeAllRanges(),this.currentTool=+!!n.shiftKey},this.handleMouseMove=e=>{let{initialMousePosition:n,currentMousePosition:i,delta:a}=e,{matrix:t,onChangeMatrix:d}=this.props;if(0===this.currentTool){let e=a.x/t.a,n=a.y/t.a;this.hasMoved=!0,d((0,o.pd)(t,(0,o.Tl)(e,n)))}else if(1===this.currentTool){let e=this.getRelativePoint(n),a=this.getRelativePoint(i),t={x:Math.min(e.x,a.x),y:Math.min(e.y,a.y)},d={x:Math.max(e.x,a.x),y:Math.max(e.y,a.y)},{onChangeSelectionBox:o}=this.props;o([t,d])}},this.handleMouseUp=e=>{let{mousePosition:n}=e;if(1===this.currentTool){let{onChangeSelectionBox:e}=this.props;e(null)}else if(0===this.currentTool&&!this.hasMoved){let e=this.getRelativePoint(n),{onSurfaceClick:i}=this.props;i(e)}this.currentTool=null,this.hasMoved=!1},this.handleWheel=e=>{let{mousePosition:n,delta:i}=e,{x:a,y:t}=this.getRelativePoint(n),d=Math.max(-1,Math.min(1,i)),{matrix:l}=this.props;if(1===d&&l.a<=.1||-1===d&&l.a>=2)return;let s=((e,n,i,a,t)=>a+(t-a)*(e-n)/(i-n))(d,-1,1,1.04,.96),{onChangeMatrix:r}=this.props;r((0,o.pd)(l,(0,o.Tl)(a,t),(0,o.hs)(s,s),(0,o.Tl)(-a,-t)))},this.getRelativePoint=e=>{let{x:n,y:i}=e,{matrix:a}=this.props,t=(0,o.DI)(a);return(0,o.MZ)(t,{x:n,y:i})}}}let S=e=>{let{children:n}=e,{id:i,disabled:d,onMouseDown:o,onMouseUp:l}=s(),r=(0,t.useCallback)(e=>o(i,e),[i,o]),m=(0,t.useCallback)(e=>l(i,e),[i,l]);return(0,a.jsx)("div",{style:{cursor:d?"not-allowed":"move"},className:"node-header",onMouseDown:r,onMouseUp:m,children:n})};var h=i(38476),g=i.n(h);let y=()=>void 0,F=(e,n)=>{let{width:i,height:a,scale:d}=n;return(0,t.useCallback)((n,t)=>{let{deltaX:o,deltaY:l}=t;e({width:i+o/d,height:a+l/d})},[e,i,a,d])},x=e=>{let{children:n,width:i,height:d,scale:o,onResizeStart:l=y,onResize:s=y,onResizeEnd:r=y}=e,m=(0,t.useRef)(null),c={width:i,height:d,scale:o}
1,k=F(l,c),u=F(s,c),p=F(r,c);return(0,a.jsxs)(a.Fragment,{children:[n,(0,a.jsx)(h.DraggableCore,{nodeRef:m,onStart:k,onDrag:u,onStop:p,children:(0,a.jsx)("span",{ref:m,className:"react-resizable-handle"})},"resizableHandle")]})};x.defaultProps={onResizeStart:y,onResize:y,onResizeEnd:y};let f="node-group-handle",b="node-group-cancel";class C extends t.Component{render(){let{id:e,x:n,y:i,data:t,scale:d,renderNodeGroup:o,shouldMoveNodes:l}=this.props,{width:s,height:r}=this.props,{size:m}=this.state;return m&&(s=m.width,r=m.height),(0,a.jsx)(h.DraggableCore,{nodeRef:this.nodeElementRef,onStart:this.onStart,onDrag:this.onDrag,onStop:this.onStop,handle:".".concat(f),cancel:".".concat(b),children:(0,a.jsx)("div",{ref:this.nodeElementRef,style:{pointerEvents:"none",position:"absolute",transform:"translate(".concat(n,"px, ").concat(i,"px")},children:(0,a.jsxs)(x,{width:s,height:r,onResize:this.onResize,onResizeEnd:this.onResizeEnd,scale:d,children:[o&&o({data:t,handleClassname:f,height:r,id:e,shouldMoveNodes:l,undraggableClassname:b,width:s}),!o&&(0,a.jsx)("div",{style:{background:"rgba(47, 185, 73, 0.3)",height:r,width:s},className:f})]})})})}constructor(...e){super(...e),this.nodeElementRef=t.createRef(),this.state={size:null},this.onResize=e=>{let{size:n}=this.state;n&&n.height===e.height&&n.width===e.width||this.setState({size:e})},this.onResizeEnd=e=>{this.setState({size:null});let{onResize:n,id:i}=this.props;n(i,{height:Math.floor(e.height),width:Math.floor(e.width)})},this.getScaledDelta=e=>{let{x:n,y:i,scale:a}=this.props;return{x:n+e.deltaX/a,y:i+e.deltaY/a}},this.onStart=(e,n)=>{e.stopPropagation();let{onMoveStart:i,id:a}=this.props;i(a,this.getScaledDelta(n))},this.onDrag=(e,n)=>{let{onMove:i,id:a}=this.props;i(a,this.getScaledDelta(n))},this.onStop=(e,n)=>{let{onMoveEnd:i,id:a}=this.props;i(a,this.getScaledDelta(n))}}}let G=(0,t.memo)(e=>{let{id:n,x:i,y:d,type:o,render:s,data:r,selected:m,disabled:c,getScale:k,onDrag:u,onDragEnd:p,onDragStart:N,onEndEdge:v,onSelect:S,onSelectDown:g,onStartEdge:y,resizeObserver:F,isPending:x}=e,f=(0,t.useRef)(null);(0,t.useEffect)(()=>{let e=f.current;if(e)return F.observe(e),()=>F.unobserve(e)},[F]);let b=(0,t.useCallback)(e=>{e.stopPropagation(),N(n)},[N,n]),C=(0,t.useCallback)((e,a)=>{let t=k();u(n,{x:i+a.deltaX/t,y:d+a.deltaY/t})},[k,u,n,i,d]),G=(0,t.useCallback)(()=>{p(n)},[p,n]),j=(0,t.useMemo)(()=>({disabled:c,id:n,onEndEdge:v,onMouseDown:g,onMouseUp:S}),[c,n,v,S,g]);return(0,a.jsx)(h.DraggableCore,{disabled:c,onStart:b,onDrag:C,onStop:G,handle:".node-header",nodeRef:f,children:(0,a.jsx)("div",{"data-id":n,style:{position:"absolute",transform:"translate(".concat(i,"px, ").concat(d,"px"),pointerEvents:x?"none":void 0},ref:f,children:(0,a.jsx)(l.Provider,{value:j,children:s({id:n,type:o,data:r,disabled:c,onEndEdge:v,onStartEdge:y,selected:m,isPending:x})})})})}),j=(0,t.memo)(e=>{let{nodes:n,selectedNodes:i,...t}=e;return(0,a.jsx)("div",{children:n.map(e=>{let n=i.includes(e.id);return(0,a.jsx)(G,{id:e.id,x:e.x,y:e.y,type:e.type,data:e.data,onDragStart:t.onDragStart,onDrag:t.onDrag,onDragEnd:t.onDragEnd,getScale:t.getScale,render:t.renderNode,selected:n,onStartEdge:t.onStartEdge,onEndEdge:t.onEndEdge,onSelectDown:t.onSelectDown,onSelect:t.onSelect,disabled:t.disabled,resizeObserver:t.resizeObserver,isPending:e.isPending},e.id)})})});class I extends t.Component{componentDidUpdate(){let{pendingGraph:e}=this.props;e!==this.lastPendingGraph&&(this.lastPendingGraph=e,e?(this.setState({creatingNodeAtCoord:null,creatingEdgeFrom:null}),document.addEventListener("mousemove",this.onMouseMove)):document.removeEventListener("mousemove",this.onMouseMove))}componentDidMount(){document.addEventListener("keyup",this.onKeyUp)}componentWillUnmount(){document.removeEventListener("keyup",this.onKeyUp)}render(){let{graph:e}=this.props,{nodes:n,edges:i,nodeGroups:t}=e,d=null,{creatingEdgeFrom:l,mousePosition:s}=this.state;if(null!==l&&s){let e=this.getNodeById(l),{getSourcePinOffset:n}=this.props,i=n(e),a={x:s.x,y:s.y},{renderEdge:t}=this.props;d=t({data:void 0,end:a,id:"new-edge",selected:!1,start:i})}let{disabled:r}=this.props,{creatingNodeAtCoord:m}=this.state,u=null;if(m&&!r){let{renderCreationDialog:e}=this.props,{x:n,y:i}=m;u=(0,a.jsx)("div",{style:{position:"absolute",transform:"translate(".concat(n,"px, ").concat(i,"px)")},children:e({createNode:this.createNewNode,createNodeGroup:this.createNewNodeGroup,isCreatingFromExistingNode:null!==l})})}let{moveNodeDelta:p}=this.state;if(p){let{x:e,y:i}=p,{selection:a}=this.props;n=n.map(n=>
1a.nodes.includes(n.id)?{...n,x:n.x+e,y:n.y+i}:n)}let{nodesBeingMoved:N,moveNodeGroupDelta:S,nodeGroupBeingMoved:h}=this.state;if(t&&N&&S&&h){let{x:e,y:i}=S;n=n.map(n=>N.includes(n.id)?{...n,x:n.x+e,y:n.y+i}:n),t=t.map(n=>n.id!==h?n:{...n,x:n.x+e,y:n.y+i})}let g=null,{selectionBox:y}=this.state;if(y){let{selectionBoxStyle:e}=this.props;g=(0,a.jsx)("div",{style:{zIndex:2,...e,height:y.end.y-y.start.y,position:"absolute",transform:"translate(".concat(y.start.x,"px, ").concat(y.start.y,"px)"),width:y.end.x-y.start.x}})}let{pendingGraph:F}=this.props;F&&s&&(n=[...n.map(e=>({...e,isPending:!1})),...F.nodes.map(e=>({...e,isPending:!0,x:e.x+s.x,y:e.y+s.y}))],i=[...i.map(e=>({...e,isPending:!1})),...F.edges.map(e=>({...e,isPending:!0}))]);let{backgroundColor:x,hatchingColor:b,hatchingSize:G,renderEdge:I,renderNode:P,renderNodeGroup:T,selection:D}=this.props,{isMovingNode:M}=this.state,R=this.getGraphPosition();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(k,{color:x,hatchingColor:b,hatchingSize:G,matrix:R}),(0,a.jsx)(v,{matrix:R,onChangeMatrix:this.moveGraph,onChangeSelectionBox:this.onChangeSelectionBox,onSurfaceClick:this.onSurfaceClick,onSurfaceDoubleClick:this.onSurfaceDoubleClick}),(0,a.jsxs)("div",{ref:this.surfaceRef,style:{transform:(0,o.tH)(R),transformOrigin:"top left 0px",willChange:"transform"},children:[t&&t.length>0&&t.map(e=>(0,a.jsx)(C,{...e,onMoveStart:this.onMoveNodeGroupStart,onMove:this.onMoveNodeGroup,onMoveEnd:this.onMoveNodeGroupEnd,onResize:this.onResizeNodeGroup,renderNodeGroup:T,scale:R.a},e.id)),(0,a.jsxs)("svg",{className:"graph-real-svg",children:[(0,a.jsx)(c,{edges:i,selectedEdges:D.edges,getSourcePinOffset:this.getSourcePinOffset,getTargetPinOffset:this.getTargetPinOffset,onClick:this.selectEdge,renderEdge:I}),d]}),(0,a.jsx)("div",{className:M?"graph-nodes-moving":"",children:(0,a.jsx)(j,{nodes:n,selectedNodes:D.nodes,onStartEdge:this.onStartEdge,onEndEdge:this.onEndEdge,onDragStart:this.handleNodeMoveStart,onDrag:this.handleNodeMove,onDragEnd:this.handleNodeMoveEnd,onSelect:this.selectNodeUp,onSelectDown:this.selectNodeDown,getScale:this.getScale,renderNode:P,disabled:r,resizeObserver:this.nodeResizeObserver})}),u,g]}),(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .graph-background {\n cursor: move;\n cursor: grab;\n cursor: -moz-grab;\n cursor: -webkit-grab;\n }\n\n .graph-background:active {\n cursor: grabbing;\n cursor: -moz-grabbing;\n cursor: -webkit-grabbing;\n }\n\n .graph-background.graph-background-multiselect {\n cursor: crosshair;\n }\n\n .graph-nodes-moving {\n pointer-events: none;\n }\n\n .graph-nodes-moving .node-header {\n pointer-events: all;\n }\n\n .graph-real-svg {\n overflow: unset !important;\n position: absolute;\n pointer-events: none;\n }\n\n .react-resizable-handle {\n pointer-events: all;\n position: absolute;\n width: 20px;\n height: 20px;\n bottom: 0;\n right: 0;\n background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMiAxMiIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6I2ZmZmZmZjAwIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjEycHgiIGhlaWdodD0iMTJweCI+PGcgb3BhY2l0eT0iMC4zMDIiPjxwYXRoIGQ9Ik0gMTIgMTIgTCAwIDEyIEwgMCA4LjQgTCA0IDguNCBMIDguNCA4LjQgTCA4LjQgMCBMIDEyIDAgTCAxMiAxMiBMIDEyIDEyIFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');\n background-position: bottom right;\n padding: 0 3px 3px 0;\n background-repeat: no-repeat;\n background-origin: content-box;\n box-sizing: border-box;\n cursor: se-resize;\n }\n\n .".concat(f," {\n pointer-events: all;\n cursor: move;\n }\n ")}})]})}constructor(...e){super(...e),this.state={creatingEdgeFrom:null,creatingNodeAtCoord:null,isMovingNode:!1,matrix:this.props.initialPosition||(0,o.D_)(),mousePosition:null,moveNodeDelta:null,moveNodeGroupDelta:null,moveNodeGroupStartPosition:null,nodeGroupBeingMoved:null,nodesBeingMoved:null,selectionBox:null},this.surfaceRef=t.createRef(),this.sizes=new Map,this.getGraphPosition=()=>{let{position:e}=this.props,{matrix:n}=this.state;return e||n}
1,this.getScale=()=>this.getGraphPosition().a,this.onKeyUp=e=>{"Backspace"!==e.key&&"Delete"!==e.key||(e=>{let n=e.target;if(null===n||"function"!=typeof n.closest)return!1;let i=n.closest("input, textarea, [contenteditable=true]");if(null===i)return!1;if("input"===i.tagName.toLowerCase()){let e=i.type;if("checkbox"===e||"radio"===e)return!1}return!0})(e)||(e.preventDefault(),e.stopPropagation(),this.deleteSelected())},this.deleteSelected=()=>{let{disabled:e}=this.props;if(e)return;let{selection:n,graph:i}=this.props,a=new Set([...n.nodes]),t=new Set([...n.edges]);a.forEach(e=>{i.edges.filter(n=>e===n.fromId||e===n.toId).forEach(e=>t.add(e.id))});let{onDeleteEdge:d,onDeleteNode:o}=this.props;d&&t.forEach(e=>{d(e)}),o&&a.forEach(e=>{Promise.resolve(o(e)).then(()=>this.sizes.delete(e))});let{onChangeSelection:l}=this.props;l({edges:[],nodes:[]})},this.hasCreatedNodeFromNodeThisTick=!1,this.onMouseUp=()=>{if(document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),this.hasCreatedNodeFromNodeThisTick)this.setState({creatingEdgeFrom:null});else{let{mousePosition:e}=this.state;this.setState({creatingNodeAtCoord:e})}},this.onMouseMove=e=>{if(e.stopPropagation(),e.preventDefault(),this.surfaceRef.current){let n=this.surfaceRef.current.getBoundingClientRect(),i=e.pageX-(n.left+window.scrollX),a=e.pageY-(n.top+window.scrollY),t=this.getGraphPosition();this.setState({mousePosition:{x:i/t.a,y:a/t.a}})}},this.onStartEdge=(e,n)=>{let{disabled:i}=this.props;if(!i&&this.surfaceRef.current){let i=this.surfaceRef.current.getBoundingClientRect(),a=n.pageX-(i.left+window.scrollX),t=n.pageY-(i.top+window.scrollY),d=this.getGraphPosition();this.setState({creatingEdgeFrom:e,mousePosition:{x:a/d.a,y:t/d.a}}),this.hasCreatedNodeFromNodeThisTick=!1,document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp)}},this.onEndEdge=async e=>{let{creatingEdgeFrom:n}=this.state;if(n&&!this.hasCreatedNodeFromNodeThisTick){let{onCreateEdge:i,onChangeSelection:a}=this.props;i&&(this.hasCreatedNodeFromNodeThisTick=!0,a({edges:[await i(n,e)],nodes:[]})),this.setState({creatingEdgeFrom:null})}},this.getNodeById=e=>{let{graph:n,pendingGraph:i}=this.props,a=n.nodes.find(n=>n.id===e);if(!a&&i&&(a=i.nodes.find(n=>n.id===e)),!a)throw Error("Graph node was not found");return a},this.handleNodeMoveStart=()=>{this.setState({isMovingNode:!0})},this.handleNodeMove=(e,n)=>{let{x:i,y:a}=this.getNodeById(e),t={x:n.x-i,y:n.y-a};this.setState({moveNodeDelta:t})},this.handleNodeMoveEnd=()=>{let{moveNodeDelta:e}=this.state;if(null===e)return void this.setState({isMovingNode:!1});let{selection:n,onMoveNodes:i}=this.props;i&&i(n.nodes.map(n=>{let{x:i,y:a}=this.getNodeById(n);return{id:n,x:Math.floor(i+e.x),y:Math.floor(a+e.y)}})),this.setState({isMovingNode:!1,moveNodeDelta:null})},this.createNewNode=async e=>{let{creatingNodeAtCoord:n}=this.state;if(null===n)return;let{x:i,y:a}=n,{onCreateNode:t,onCreateEdge:d,onChangeSelection:o}=this.props;if(t){let n=await t(e,{x:Math.floor(i),y:Math.floor(a)});o({edges:[],nodes:[n]});let{creatingEdgeFrom:l}=this.state;d&&l&&(this.setState({creatingEdgeFrom:null}),await d(l,n))}this.setState({creatingNodeAtCoord:null})},this.createNewNodeGroup=()=>{let{creatingNodeAtCoord:e}=this.state;if(null===e)return;let{x:n,y:i}=e,{onCreateNodeGroup:a}=this.props;a&&a({height:300,width:400,x:Math.floor(n),y:Math.floor(i)}),this.setState({creatingNodeAtCoord:null})},this.onSurfaceClick=e=>{let{selectionBox:n}=this.state;if(null!==n)return;let{pendingGraph:i}=this.props;if(i){let{onCommitPendingGraph:n}=this.props;n&&n(e,i);return}this.setState({creatingNodeAtCoord:null,creatingEdgeFrom:null});let{onChangeSelection:a}=this.props;a({edges:[],nodes:[]})},this.onSurfaceDoubleClick=e=>{this.setState({creatingNodeAtCoord:e})},this.moveGraph=e=>{let{position:n,onChangePosition:i}=this.props;n||this.setState({matrix:e}),i&&i(e)},this.selectNodeDown=(e,n)=>{let{metaKey:i,shiftKey:a}=n,t=i||a,{onChangeSelection:d,selection:o}=this.props;o.nodes.includes(e)||d({edges:t?o.edges:[],nodes:t?[...o.nodes,e]:[e]})},this.selectNodeUp=(e,n)=>{let{metaKey:i,shiftKey:a}=n,t=i||a,{onChangeSelection:d,selection:o}=this.props;d({edges:t?o.edges:[],nodes:t?[...o.nodes,e]:[e]})}
1,this.selectEdge=(e,n)=>{e.stopPropagation();let i=e.metaKey||e.shiftKey,{onChangeSelection:a,selection:t}=this.props;a({edges:i?[...t.edges,n]:[n],nodes:i?t.nodes:[]})},this.getSourcePinOffset=e=>{let n=this.getNodeById(e),{selection:i,getSourcePinOffset:a}=this.props,{moveNodeDelta:t}=this.state;if(t&&i.nodes.includes(e))return a({...n,x:n.x+t.x,y:n.y+t.y});let{nodesBeingMoved:d,moveNodeGroupDelta:o}=this.state;if(d&&o&&d.includes(e))return a({...n,x:n.x+o.x,y:n.y+o.y});let{pendingGraph:l}=this.props,{mousePosition:s}=this.state;return a(l&&s&&l.nodes.find(n=>n.id===e)?{...n,x:n.x+s.x,y:n.y+s.y}:n)},this.getTargetPinOffset=e=>{let n=this.getNodeById(e),{selection:i,getTargetPinOffset:a}=this.props,{moveNodeDelta:t}=this.state;if(t&&i.nodes.includes(e))return a({...n,x:n.x+t.x,y:n.y+t.y});let{nodesBeingMoved:d,moveNodeGroupDelta:o}=this.state;if(d&&o&&d.includes(e))return a({...n,x:n.x+o.x,y:n.y+o.y});let{pendingGraph:l}=this.props,{mousePosition:s}=this.state;return a(l&&s&&l.nodes.find(n=>n.id===e)?{...n,x:n.x+s.x,y:n.y+s.y}:n)},this.onNodeResize=(e,n)=>{null===n?this.sizes.delete(e):this.sizes.set(e,n)},this.nodeResizeObserverCallback=e=>{let{graph:n}=this.props,i="number"==typeof n.nodes[0].id;e.forEach(e=>{let n=e.target.getAttribute("data-id"),a=e.target,t=i?Number(n):n;this.onNodeResize(t,{height:a.offsetHeight,width:a.offsetWidth})})},this.nodeResizeObserver=new ResizeObserver(this.nodeResizeObserverCallback),this.getNodesInBox=e=>{let n=[],{graph:i}=this.props;return i.nodes.forEach(i=>{let{id:a,x:t,y:d}=i,o=this.sizes.get(a);if(!o)return;let l=[{x:t,y:d},{x:t+o.width,y:d+o.height}];e[1].x<l[0].x||l[1].x<e[0].x||e[1].y<l[0].y||l[1].y<e[0].y||n.push(a)}),n},this.getEdgesInBox=e=>{let{graph:{edges:n}}=this.props;return n.filter(n=>{let{fromId:i,toId:a}=n,t=this.getSourcePinOffset(i),o=this.getTargetPinOffset(a);return(0,d.U)(t.x,t.y,t.x+50,t.y,o.x-50,o.y,o.x,o.y,e[0].x,e[0].y,e[1].x,e[1].y)}).map(e=>e.id)},this.onChangeSelectionBox=e=>{if(null===e)return void this.setState({selectionBox:null});let n=this.getNodesInBox(e),i=this.getEdgesInBox(e),{onChangeSelection:a}=this.props;a({edges:i,nodes:n}),this.setState({selectionBox:{start:e[0],end:e[1]}})},this.onMoveNodeGroupStart=(e,n)=>{let{graph:{nodeGroups:i}}=this.props;if(!i)return;let a=i.find(n=>n.id===e);if(!a)throw Error("Node group with id `".concat(e,"` was moved, but does not exist."));let t=a.shouldMoveNodes?this.getNodesInBox([{x:a.x,y:a.y},{x:a.x+a.width,y:a.y+a.height}]):[];this.setState({moveNodeGroupStartPosition:n,nodeGroupBeingMoved:e,nodesBeingMoved:t})},this.onMoveNodeGroup=(e,n)=>{let{moveNodeGroupStartPosition:i}=this.state;if(null===i)throw Error("Moving a node group, but `onMoveNodeGroupStart` was not called.");let a=n.x-i.x,t=n.y-i.y;this.setState({moveNodeGroupDelta:{x:a,y:t}})},this.onMoveNodeGroupEnd=(e,n)=>{let{nodesBeingMoved:i,moveNodeGroupDelta:a}=this.state;if(!i||!a)return;let{onMoveNodeGroup:t,onMoveNodes:d}=this.props;t&&d&&(t(e,{x:Math.floor(n.x),y:Math.floor(n.y)}),d(i.map(e=>{let{x:n,y:i}=this.getNodeById(e);return{id:e,x:Math.floor(n+a.x),y:Math.floor(i+a.y)}}))),this.setState({moveNodeGroupDelta:null,moveNodeGroupStartPosition:null,nodeGroupBeingMoved:null,nodesBeingMoved:null})},this.onResizeNodeGroup=(e,n)=>{let{onResizeNodeGroup:i}=this.props;i&&i(e,n)}}}I.Dropzone=r,I.Handle=S,I.defaultProps={disabled:!1,backgroundColor:"white",hatchingColor:"rgba(0, 0, 0, 0.1)",hatchingSize:100,selectionBoxStyle:{background:"rgba(43, 178, 181, 0.5)",border:"1px solid rgba(43, 178, 181, 0.5)"}},i(43475);var P=i(47769),T=i.n(P),D=i(46001),M=i.n(D),R=i(46322),E=i(52193),w=i(73917),B=i(39106),A=i(33473),L=i(452),O=i.n(L),V=i(81721),_=i.n(V),z=i(32333),U=i(98554),W=i(97737);let $=e=>{let{nodeId:n,title:i,icon:d,textColor:o="white",backgroundColor:l="white",noProperties:s=!1}=e,r=(0,t.useRef)(null),{storyId:m,version:c}=(0,W.E)(),{query:k}=(0,z.useRouter)();return(0,a.jsx)(S,{children:(0,a.jsx)(A.t,{content:e=>(0,a.jsx)(w.W,{children:(0,a.jsx)(B.D,{text:"Copy URL for this node",icon:"link",onClick:()=>{if(m&&c&&k.graphId){let e=(0,U.A)(m,c);O()("".concat(window.location.origin).concat(e,"/graph/").concat(k.graphId,"?nodeId=").concat(n))}}})}),children:(0,a.jsxs)("header",{ref:r,className:T().dynamic([["a05d6cc2a1e313e0",[o,s?"10px":"10px 10px 0 0"]],["b8589b6224bfa5b3",[l]]]),children:["string"==typeof d?(0,a.jsx)("div",{className:T().dynamic([["a05d6cc2a1e313e0",[o,s?"10px":"10px 10px 0 0"]],["b8589b6224bfa5b3",[l]]])+" icon-container",children:(0,a.jsx)(_(),{className:"icon",src:d,alt:"",layout:"fill"})}):d,i,(0,a.jsx)(T(),{id:"b8589b6224bfa5b3",dynamic:[l],children:"header.__jsx-style-dynamic-selector{padding:5px 15px;text-transform:uppercase;font-weight:500;font-size:18px;display:flex;align-items:center;justify-content:space-between;transition:filter.2s ease-in-out;filter:brightness(100%);background:".concat(l,"}header.__jsx-style-dynamic-selector:hover{filter:brightness(120%)}.icon-container.__jsx-style-dynamic-selector{position:relative;height:20px;width:20px;pointer-events:none}")}),(0,a.jsx)(T(),{id:"a05d6cc2a1e313e0",dynamic:[o,s?"10px":"10px 10px 0 0"],children:"header.__jsx-style-dynamic-selector{color:".concat(o,";border-radius:").concat(s?"10px":"10px 10px 0 0","}")})]})})})},H=e=>{let{id:n,type:i,onStartEdge:t=()=>void 0}=e;return(0,a.jsx)("div",{role:"presentation",onMouseDown:e=>{e.preventDefault(),t(n,e)},"data-cy":i,className:"jsx-e47562efc43e9a67 "+"pin pin-".concat(i),children:(0,a.jsx)(T(),{id:"e47562efc43e9a67",children:'.pin.jsx-e47562efc43e9a67{position:absolute;top:10px;border-radius:50%;border:6px solid white;content:" "}.pin.jsx-e47562efc43e9a67:hover{border-color:var(--yellow)}.pin-left.jsx-e47562efc43e9a67{left:-6px}.pin-right.jsx-e47562efc43e9a67{right:-6px}'})})},Y=e=>{let{children:n}=e;return(0,a.jsxs)("div",{className:"jsx-bf9f5ab5f2383e14",children:[n,(0,a.jsx)(T(),{id:"bf9f5ab5f2383e14",children:"div.jsx-bf9f5ab5f2383e14{padding:.5em}"})]})};var J=i(57355);let K=e=>{let{defaultValue:n="",disabled:i,name:d,onBlur:o,placeholder:l}=e,s=(0,t.useRef)(null),[r,m]=(0,t.useState)(n);(0,t.useEffect)(()=>{m(n)},[n]),(0,t.useEffect)(()=>
1{s.current&&(s.current.style.height="5px",s.current.style.height="".concat(s.current.scrollHeight,"px"))});let c=(0,t.useCallback)(e=>{let{currentTarget:{value:n}}=e;m(n)},[]),k=(0,t.useCallback)(e=>{let{currentTarget:{value:n}}=e;o(n)},[o]);return(0,a.jsxs)("div",{className:"jsx-146b8de9f1f5045",children:[(0,a.jsx)("textarea",{disabled:i,name:d,value:r,onBlur:k,onChange:c,placeholder:l,ref:s,className:"jsx-146b8de9f1f5045 "+(J.bOq||"")}),(0,a.jsx)(T(),{id:"146b8de9f1f5045",children:"textarea.jsx-146b8de9f1f5045{width:100%;font-size:14px;resize:none;margin-bottom:5px}"})]})},X=e=>{let{disabled:n,properties:i,updateProperties:t}=e;return(0,a.jsx)(Y,{children:(0,a.jsx)(K,{disabled:n,placeholder:"Enter an action...",name:"action",defaultValue:i.action,onBlur:e=>t({action:e})})})},q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGraphNodePropertiesAction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesActionByGraphNodeIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updatePropertiesAction"},name:{kind:"Name",value:"updateGraphNodePropertiesActionByGraphNodeId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"properties"},name:{kind:"Name",value:"graphNodePropertiesAction"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesAction"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesAction"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesAction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"action"}}]}}]},Z=(0,t.memo)(e=>{let{id:n,properties:i,onStartEdge:t,disabled:d}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)($,{nodeId:n,title:"Action",icon:"/static/images/node-icons/icon-node-sceneentrynode.svg",textColor:"white",backgroundColor:"linear-gradient(to left, var(--action-bg-1), var(--action-bg-2))"}),(0,a.jsx)(E.s,{mutation:q,children:e=>(0,a.jsx)(X,{disabled:d,properties:i,updateProperties:i=>e({variables:{input:{graphNodeId:n,graphNodePropertiesActionPatch:i}}})})}),(0,a.jsx)(H,{id:n,type:"left"}),(0,a.jsx)(H,{id:n,type:"right",onStartEdge:t})]})});var Q=i(28850),ee=i(76736),en=i(42719),ei=i(64104),ea=i(56505),et=i(40709),ed=i(93567);let eo=e=>{let{src:n,height:i="auto",width:t="100%"}=e,{loading:d,contentType:o}=(0,ed.$P)(n);if(d)return null;if(null===o)return(0,a.jsx)("div",{children:"Media not supported."});if((0,ed.cZ)(o))return(0,a.jsx)("video",{height:i,width:t,src:n,title:"Thumbnail for uploaded video.",controls:!0});if((0,ed.JK)(o))return(0,a.jsx)("audio",{style:{maxWidth:t},src:n,controls:!0});if((0,ed.wu)(o))return(0,a.jsx)("img",{height:i,width:t,alt:"Thumbnail for uploaded img",src:n});let l=(0,et.u)(n)||(0,et.P)(n);return null!==l?(0,a.jsx)("iframe",{title:"Uploaded media video.",height:i,width:t,src:l,frameBorder:"0",allowFullScreen:!0}):(0,a.jsx)("div",{children:"Media not supported."})},el=e=>{let{disabled:n,properties:i,updateProperties:d}=e,[o,l]=(0,ei.A)(!1),s=(0,t.useCallback)(e=>{d({mediaId:e}),l(!1)},[l,d]),r=(0,t.useCallback)(e=>{e.stopPropagation()},[]);return(0,a.jsxs)(Y,{children:[(0,a.jsx)(K,{disabled:n,placeholder:"Leave a comment...",name:"comment",defaultValue:i.comment,onBlur:e=>d({comment:e})}),i.media&&(0,a.jsx)(eo,{src:i.media.file.url}),(0,a.jsxs)(Q.t,{children:[(0,a.jsx)(ee.$,{disabled:n,icon:"camera",onClick:l,fill:!0,children:"Add a media file"}),i.media&&(0,a.jsx)(ee.$,{disabled:n,icon:"cross",onClick:()=>d({mediaId:null}),"aria-label":"Remove"})]}),(0,a.jsx)("div",{onWheel:r,children:(0,a.jsx)(en.l,{isOpen:o,onClose:l,title:"Select from Library",className:"media-dialog",style:{minHeight:"90vh",minWidth:"90vw"},children:(0,a.jsx)("div",{className:J.sar,children:(0,a.jsx)(ea.x,{onSelect:s})})})})]})},es={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGraphNodePropertiesComment"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesCommentByGraphNodeIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updatePropertiesComment"},name:{kind:"Name",value:"updateGraphNodePropertiesCommentByGraphNodeId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"properties"},name:{kind:"Name",value:"graphNodePropertiesComment"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesComment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesComment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesComment"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"comment"}},{kind:"Field",name:{kind:"Name",value:"mediaId"}},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"mediaByMediaId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"file"}}]}}]}}]},er=(0,t.memo)(e=>{let{id:n,properties:i,disabled:t}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)($,{nodeId:n,title:"Comment",icon:"/static/images/node-icons/icon-node-commentnode.svg",textColor:"var(--darker-green)",backgroundColor:"linear-gradient(to left, var(--comment-bg-1), var(--comment-bg-2))"}),(0,a.jsx)(E.s,{mutation:es,children:e=>(0,a.jsx)(el,{disabled:t,properties:i,updateProperties:i=>e({variables:{input:{graphNodeId:n,graphNodePropertiesCommentPatch:i}}})})})]})});var em=i(63792),ec=i(96453);let ek=[["Character",em.UE.REPLY],["Player",em.UE.TRIGGER]],eu=[["Action",em.UE.ACTION],["Comment",em.UE.COMMENT],["Function",em.UE.FUNCTION],["Gate",em.UE.GATE],["Generation",em.UE.GENERATION],["Media",em.UE.MEDIA],["Memory",em.UE.MEMORY],["Passthrough",em.UE.PASSTHROUGH],["Subplot",em.UE.SUBPLOT],["Wildcard",em.UE.WILDCARD]],ep=e=>{var n,i;let{createNode:d,createNodeGroup:o,isCreatingFromExistingNode:l}=e,s=(0,t.useRef)(null);(0,t.useEffect)(()=>{s.current&&s.current.focus()},[]);let[r,m]=(0,t.useState)(""),{query:c}=(0,z.useRouter)(),k=parseInt(c.graphId,10),u=e=>{let[n]=e;return n.toLowerCase().includes(r.toLowerCase())},p=ek.filter(u),N=eu.filter(u),{storyTargetPlatform:v,isReplyGenerationAvailable:S,viewerPermission:h}=(0,W.E)(),{data:g}=(0,ec.Db)({variables:{graphId:k},fetchPolicy:"cache-and-network",nextFetchPolicy:"cache-first"}),y=null==g||null==(n=g.graph)?void 0:n.graphNodes.nodes.filter(e=>e.type===em.UE.MEDIA),F=!!(null==g||null==(i=g.graph)?void 0:i.graphNodes.nodes.find(e=>e.type===em.UE.ACTION));return S||(N=N.filter(e=>{let[,n]=e;return n!==em.UE.GENERATION})),l&&(N=N.filter(e=>{let[,n]=e;return n!==em.UE.COMMENT})),v===em.mm.WEB&&((null==y?void 0:y.length)===0&&(N=N.filter(e=>{let[,n]=e;return n!==em.UE.MEDIA})),F||(N=N.filter(e=>{let[,n]=e;return n!==em.UE.ACTION}))),h!==em.gx.MANAGE&&(N=N.filter(e=>{let[,n]=e;return n!==em.UE.FUNCTION})),(0,a.jsxs)("section",{className:T().dynamic([["28734e74c3f645b3",[J.nd0]]]),children:[(0,a.jsx)("header",{className:T().dynamic([["28734e74c3f645b3",[J.nd0]]])+" node-header",children:"+ Create node"}),(0,a.jsx)("div",{className:T().dynamic([["28734e74c3f645b3",[J.nd0]]])+" node-search",children:(0,a.jsx)("input",{ref:s,onChange:e=>{let{currentTarget:{value:n}}=e;return m(n)},placeholder:"search...",value:r,className:T().dynamic([["28734e74c3f645b3",[J.nd0]]])+" "+"".concat(J.bOq," ").concat(J.I5l)})}),(0,a.jsxs)("div",{className:T().dynamic([["28734e74c3f645b3",[J.nd0]]])+" node-types",children:[(0,a.jsx)("hr",{className:T().dynamic([["28734e74c3f645b3",[J.nd0]]])}),p.map(e=>{let[n,i]=e;return(0,a.jsx)("button",{type:"button",onClick:()=>d(i),className:T().dynamic([["28734e74c3f645b3",[J.nd0]]])+" node-type",children:n},i)}),(0,a.jsx)("hr",{className:T().dynamic([["28734e74c3f645b3",[J.nd0]]])}),N.map(e=>{let[n,i]=e;return(0,a.jsx)("button",{type:"button",onClick:()=>d(i),className:T().dynamic([["28734e74c3f645b3",[J.nd0]]])+" node-type",children:n},i)}),!l&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("hr",{className:T().dynamic([["28734e74c3f645b3",[J.nd0]]])}),(0,a.jsx)("button",{type:"button",onClick:()=>o(),className:T().dynamic([["28734e74c3f645b3",[J.nd0]]])+" node-type",children:"Group"})]})]}),(0,a.jsx)(T(),{id:"28734e74c3f645b3",dynamic:[J.nd0],children:".".concat(J.nd0," button.__jsx-style-dynamic-selector{color:white}section.__jsx-style-dynamic-selector{position:absolute;width:255px;border-radius:10px;background:var(--graph-node-background-color);box-shadow:0px 2px 25px rgb(0 0 0/5%),0px 0px 0px 1px var(--accent-2);width:255px;overflow:hidden}.node-header.__jsx-style-dynamic-selector{padding:5px 15px;text-transform:uppercase;font-weight:500;font-size:18px;display:flex;align-items:center;justify-content:space-between;background:var(--accent-1);border-radius:10px 10px 0 0}.node-search.__jsx-style-dynamic-selector{padding:.5rem}.node-type.__jsx-style-dynamic-selector{padding:6px 8px;font-size:15px;border:none;background:none;display:block;width:100%;text-align:left}.node-type.__jsx-style-dynamic-selector:hover{background:var(--green-3);font-weight:bold;cursor:pointer;color:white}.empty.__jsx-style-dynamic-selector:hover{background:inherit}hr.__jsx-style-dynamic-selector{margin:0;height:1px}")})]})};var eN=i(48643),ev=i(75583),eS=i(21911),eh=i(49639),eg=i(53688),ey=i(18085);let eF=e=>{let{disabled:n,properties:i,updateProperties:d}=e,[o,l]=(0,t.useState)(i.functionSource),{theme:s}=(0,ey.DP)(),[r,m]=(0,t.useState)(!1),{viewerPermission:c}
1=(0,W.E)(),k=(0,ev.dJ)();(0,t.useEffect)(()=>{k&&k.languages.typescript.javascriptDefaults.setCompilerOptions({allowNonTsExtensions:!0,target:k.languages.typescript.ScriptTarget.ES2020,lib:["es2020"]})},[k]);let u=c===em.gx.MANAGE;return(0,a.jsxs)(Y,{children:[(0,a.jsx)(eS.A,{language:"javascript",style:"dark"===s?eh.A:eg.A,customStyle:{background:"var(--accent-2)",marginBottom:10,borderRadius:4,overflowY:"auto",maxHeight:200},children:i.functionSource||"// Click 'Edit function' to edit"}),(0,a.jsx)(ee.$,{icon:u?"edit":"eye-open",fill:!0,onClick:()=>m(!0),children:u?"Edit function":"View function"}),(0,a.jsx)(en.l,{isOpen:r,onClose:()=>m(!1),title:"Function editor",style:{padding:0,width:"90vw",height:"90vh"},children:(0,a.jsxs)("div",{className:J.sar,children:[(0,a.jsx)(ev.Ay,{height:"70vh",language:"javascript",value:o,onChange:e=>l(e||""),theme:"dark"===s?"vs-dark":"light",options:{readOnly:!u}}),u?(0,a.jsx)(ee.$,{disabled:n,icon:"saved",intent:eN.J.SUCCESS,fill:!0,style:{marginTop:15},onClick:async()=>{await d({functionSource:o}),m(!1)},children:"Save"}):(0,a.jsx)(ee.$,{disabled:!0,icon:"cross-circle",fill:!0,style:{marginTop:15},children:"Only story managers can save edits to function code"})]})})]})},ex={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGraphNodePropertiesFunction"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesFunctionByGraphNodeIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updatePropertiesFunction"},name:{kind:"Name",value:"updateGraphNodePropertiesFunctionByGraphNodeId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"properties"},name:{kind:"Name",value:"graphNodePropertiesFunction"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesFunction"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesFunction"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesFunction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"functionSource"}}]}}]},ef=(0,t.memo)(e=>{let{id:n,properties:i,onStartEdge:t,disabled:d}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)($,{nodeId:n,title:"FUNCTION",icon:"/static/images/node-icons/icon-node-functionnode.svg",backgroundColor:"linear-gradient(to left, var(--orange), var(--light-orange))"}),(0,a.jsx)(E.s,{mutation:ex,children:e=>(0,a.jsx)(eF,{disabled:d,properties:i,updateProperties:i=>e({variables:{input:{graphNodeId:n,graphNodePropertiesFunctionPatch:i}}})})}),(0,a.jsx)(H,{id:n,type:"left"}),(0,a.jsx)(H,{id:n,type:"right",onStartEdge:t})]})});var eb=i(72220),eC=i(57370);let eG=["HOPE","FEAR","JOY","DISTRESS","PRIDE","SHAME","GRATITUDE","ANGER","LOVE","HATE","INTEREST","DISGUST"],ej=eC.K.ofType(),eI=(e,n)=>{let{handleClick:i,modifiers:t}=n;return t.matchesPredicate?(0,a.jsx)(B.D,{active:t.active,disabled:t.disabled,onClick:i,text:e.toLowerCase()},e):null},eP=e=>{let{selectedFeelings:n,onChangeSelectedFeelings:i}=e;return(0,a.jsx)(ej,{items:eG,tagInputProps:{leftIcon:"heart",placeholder:"Enter feeling name...",onRemove:(e,a)=>{let t=[...n];t.splice(a,1),i(t)}},itemRenderer:eI,onItemSelect:e=>n.includes(e)?i(n.filter(n=>n!==e)):i([...n,e]),popoverProps:{targetTagName:"div"},tagRenderer:e=>e.toLowerCase(),selectedItems:n})},eT=e=>{let{condition:{characterId:n,feelings:i},onChangeCondition:t,characters:d,disabled:o}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eb.g,{disabled:o,fill:!0,options:[{label:"Select a character...",value:"",disabled:!0},...d.map(e=>({label:e.name,value:e.id.toString()}))],value:n||"",onChange:e=>{t({characterId:""!==e.currentTarget.value?Number(e.currentTarget.value):null})},"aria-label":"Character"}),(0,a.jsx)("div",{style:{margin:"5px 0"},children:"...must be experiencing any of these feelings..."}),(0,a.jsx)(eP,{selectedFeelings:i,onChangeSelectedFeelings:e=>{t({feelings:e})}})]})};var eD=i(53352);let eM=e=>{let{condition:{characterId:n,positivityRange:i,energyRange:d},onChangeCondition:o,characters:l,disabled:s}=e,[r,m]=(0,t.useState)(i),[c,k]=(0,t.useState)(d);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eb.g,{disabled:s,fill:!0,options:[{label:"Select a character...",value:"",disabled:!0},...l.map(e=>({label:e.name,value:e.id.toString()}))],value:n||"",onChange:e=>{o({characterId:""!==e.currentTarget.value?Number(e.currentTarget.value):null})},"aria-label":"Character"}),(0,a.jsx)("div",{style:{margin:"5px 0"},className:"jsx-b03a116547938338",children:"...must be in this mood..."}),(0,a.jsxs)("div",{className:"jsx-b03a116547938338",children:[(0,a.jsxs)("div",{className:"jsx-b03a116547938338 labels",children:[(0,a.jsx)("div",{className:"jsx-b03a116547938338 "+(M()(J.E4k,J.KJG)||""),children:"Negative"}),(0,a.jsx)("div",{className:"jsx-b03a116547938338 "+(M()(J.E4k,J.KJG)||""),children:"Neutral"}),(0,a.jsx)("div",{className:"jsx-b03a116547938338 "+(M()(J.E4k,J.KJG)||""),children:"Positive"})]}),(0,a.jsx)(eD.F,{disabled:s,min:-1,max:1,stepSize:.05,value:r,onChange:m,onRelease:e=>o({positivityRange:e}),labelRenderer:!1})]}),(0,a.jsxs)("div",{className:"jsx-b03a116547938338",children:[(0,a.jsxs)("div",{className:"jsx-b03a116547938338 labels",children:[(0,a.jsx)("div",{className:"jsx-b03a116547938338 "+(M()(J.E4k,J.KJG)||""),children:"Lethargic"}),(0,a.jsx)("div",{className:"jsx-b03a116547938338 "+(M()(J.E4k,J.KJG)||""),children:"Neutral"}),(0,a.jsx)("div",{className:"jsx-b03a116547938338 "+(M()(J.E4k,J.KJG)||""),children:"Energetic"})]}),(0,a.jsx)(eD.F,{disabled:s,min:-1,max:1,stepSize:.05,onChange:k,onRelease:e=>o({energyRange:e}),value:c,labelRenderer:!1})]}),(0,a.jsx)(T(),{id:"b03a116547938338",children:".labels.jsx-b03a116547938338{display:flex;margin-bottom:1px}.labels.jsx-b03a116547938338>*.jsx-b03a116547938338{flex:1}.labels.jsx-b03a116547938338>*.jsx-b03a116547938338:nth-child(2){text-align:center}.labels.jsx-b03a116547938338>*.jsx-b03a116547938338:nth-child(3){text-align:right}"})]})},eR=e=>{let{condition:{characterId:n,relationshipRange:i},onChangeCondition:d,characters:o,disabled:l}=e,[s,r]=(0,t.useState)(i);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eb.g,{disabled:l,fill:!0,options:[{label:"Select a character...",value:"",disabled:!0},...o.map(e=>({label:e.name,value:e.id.toString()}))],value:n||"",onChange:e=>{d({characterId:""!==e.currentTarget.value?Number(e.currentTarget.value):null})},"aria-label":"Character"}),(0,a.jsx)("div",{style:{margin:"5px 0"},className:"jsx-b03a116547938338",children:"...must have a..."}),(0,a.jsxs)("div",{className:"jsx-b03a116547938338",children:[(0,a.jsxs)("div",{className:"jsx-b03a116547938338 labels",children:[(0,a.jsx)("div",{className:"jsx-b03a116547938338 "+(M()(J.E4k,J.KJG)||""),children:"Hostile"}),(0,a.jsx)("div",{className:"jsx-b03a116547938338 "+(M()(J.E4k,J.KJG)||""),children:"Neutral"}),(0,a.jsx)("div",{className:"jsx-b03a116547938338 "+(M()(J.E4k,J.KJG)||""),children:"Friendly"})]}),(0,a.jsx)(eD.F,{disabled:l,min:-1,max:1,stepSize:.05,value:s,onChange:r,onRelease:e=>d({relationshipRange:e}),labelRenderer:!1})]}),(0,a.jsx)("div",{style:{margin:"5px 0"},className:"jsx-b03a116547938338",children:"...relationship with the player"}),(0,a.jsx)(T(),{id:"b03a116547938338",children:".labels.jsx-b03a116547938338{display:flex;margin-bottom:1px}.labels.jsx-b03a116547938338>*.jsx-b03a116547938338{flex:1}.labels.jsx-b03a116547938338>*.jsx-b03a116547938338:nth-child(2){text-align:center}.labels.jsx-b03a116547938338>*.jsx-b03a116547938338:nth-child(3){text-align:right}"})]})};var eE=i(37660);let ew=0x80000000-1,eB=e=>{let{condition:{memoryId:n,inverse:i,comparisonType:d,comparisonValue:o},onChangeCondition:l,disabled:s,memories:r}=e,[m,c]=(0,t.useState)(o);return(0,t.useEffect)(()=>{c(o)},[o]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(eb.g,{value:null===n?"":n,onChange:e=>{let{currentTarget:{value:n}}=e;return l({memoryId:+n})},disabled:s,"aria-label":"Memory",children:[(0,a.jsx)("option",{disabled:!0,value:"",children:"Select a memory..."}),r.filter(e=>{let{type:n}=e;return"COUNTER"===n}).map(e=>{let{id:n,prompt:i}=e;return(0,a.jsx)("option",{value:n,children:i},n)})]})," ","counter must"," ",(0,a.jsxs)(eb.g,{value:i?"NOT_BE":"BE",onChange:e=>{let{currentTarget:{value:n}}=e;return l({inverse:"NOT_BE"===n})},disabled:s||null===n,"aria-label":"Inverse",children:[(0,a.jsx)("option",{value:"BE",children:"be"}),(0,a.jsx)("option",{value:"NOT_BE",children:"not be"})]})," ",(0,a.jsxs)(eb.g,{value:d,onChange:e=>{let{currentTarget:{value:n}}=e;return l({comparisonType:n})},disabled:s||null===n,"aria-label":"Comparison type",children:[(0,a.jsx)("option",{value:"GREATER_THAN",children:"greater than"}),(0,a.jsx)("option",{value:"GREATER_THAN_EQ",children:"greater than/equal to"}),(0,a.jsx)("option",{value:"LESS_THAN",children:"less than"}),(0,a.jsx)("option",{value:"LESS_THAN_EQ",children:"less than/equal to"}),(0,a.jsx)("option",{value:"EQUAL",children:"equal to"})]})," ",(0,a.jsx)(eE.O,{disabled:s||null===n,value:m,onValueChange:e=>{e<=ew&&e>=-ew&&c(e)},onButtonClick:e=>{l({comparisonValue:e})},min:-ew,max:ew,onBlur:()=>l({comparisonValue:m}),"aria-label":"Comparison value"})]})},eA=Object.entries(i(2036).A).map(e=>{let[n,i]=e;return{key:n,label:i}}),eL=eC.K.ofType(),eO=e=>{let{condition:{languageCodes:n,inverse:i},onChangeCondition:t,disabled:d}=e,o=e=>!!n.find(n=>
1n===e.key);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{style:{marginBottom:5},children:["Language must"," ",(0,a.jsx)(eb.g,{disabled:d,onChange:e=>{t({inverse:"be"!==e.currentTarget.value})},options:[{label:"be",value:"be"},{label:"not be",value:"not-be"}],value:i?"not-be":"be","aria-label":"Be or not be"})," ","set to..."]}),(0,a.jsx)(eL,{fill:!0,items:eA,selectedItems:n.map(e=>eA.find(n=>n.key===e)),onItemSelect:e=>{o(e)?t({languageCodes:n.filter(n=>n!==e.key)}):t({languageCodes:[...n,e.key]})},itemRenderer:(e,n)=>{let{modifiers:i,handleClick:t}=n;return i.matchesPredicate?(0,a.jsx)(B.D,{active:i.active,icon:o(e)?"tick":"blank",onClick:t,text:e.label,shouldDismissPopover:!1},e.key):null},tagRenderer:e=>e.label,tagInputProps:{disabled:d,onRemove:(e,i)=>{let a=[...n];a.splice(i,1),t({languageCodes:a})}}})]})};var eV=i(6017);let e_=e=>{var n,i;let{condition:{memoryId:t,decision:d},onChangeCondition:o,memories:l,disabled:s}=e,r=null!==t?l.find(e=>{let{id:n}=e;return n===t}):null,m="";return r&&d&&("BOOLEAN"===r.type&&["true","false"].includes(d)?m=d:"DECISION"===r.type&&(null==(i=r.decisions)?void 0:i.includes(d))&&(m=d)),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(eb.g,{value:null===t?"":t,onChange:e=>{let{currentTarget:{value:n}}=e;return o({memoryId:+n})},disabled:s,"aria-label":"Select a memory",children:[(0,a.jsx)("option",{disabled:!0,value:"",children:"Select a memory..."}),l.filter(e=>{let{type:n}=e;return"DECISION"===n||"BOOLEAN"===n}).map(e=>{let{id:n,prompt:i}=e;return(0,a.jsx)("option",{value:n,children:i},n)})]})," ","has to be",(0,a.jsxs)(eb.g,{value:m,onChange:e=>{let{currentTarget:{value:n}}=e;return o({decision:n})},disabled:s||null===t,"aria-label":"Select a decision",children:[(0,a.jsx)("option",{disabled:!0,value:"",children:"Select a decision..."}),r&&"DECISION"===r.type&&(null==(n=r.decisions)?void 0:n.filter(eV.A).map(e=>(0,a.jsx)("option",{value:e,children:e},e))),r&&"BOOLEAN"===r.type&&["true","false"].map(e=>(0,a.jsx)("option",{value:e,children:e},e))]})]})},ez=e=>{let{condition:{memoryId:n},onChangeCondition:i,memories:t,disabled:d}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(eb.g,{value:null===n?"":n,onChange:e=>{let{currentTarget:{value:n}}=e;return i({memoryId:+n})},disabled:d,name:"gatenode-memory-select","aria-label":"Select a memory",children:[(0,a.jsx)("option",{disabled:!0,value:"",children:"Select a memory..."}),t.map(e=>{let{id:n,prompt:i}=e;return(0,a.jsx)("option",{value:n,children:i},n)})]})," ","must be set"]})};var eU=i(30998);let eW=e=>{let{condition:{tags:n,inverse:i},onChangeCondition:t,disabled:d}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eU.F,{addOnBlur:!0,placeholder:"Type tag name and press enter...",onChange:e=>t({tags:e}),disabled:d,values:n}),(0,a.jsxs)("div",{style:{marginTop:5},children:["must be"," ",(0,a.jsx)(eb.g,{onChange:e=>{t({inverse:"set"!==e.currentTarget.value})},options:[{label:"set",value:"set"},{label:"unset",value:"unset"}],value:i?"unset":"set","aria-label":"Set or unset"})]})]})};var e$=i(4753),eH=i(43106),eY=i(14034);let eJ=e=>{let{createCondition:n}=e;return(0,a.jsx)(e$.A,{position:eH.yX.RIGHT,content:(0,a.jsxs)(w.W,{children:[(0,a.jsx)(eY.N,{title:"Emotions"}),(0,a.jsx)(B.D,{text:"Character must be experiencing a certain feeling",icon:"thumbs-up",onClick:()=>n("FEELING")}),(0,a.jsx)(B.D,{text:"Character must be in a certain mood",icon:"heart",onClick:()=>n("MOOD")}),(0,a.jsx)(B.D,{text:"Character must have a certain relationship",icon:"people",onClick:()=>n("RELATIONSHIP")}),(0,a.jsx)(eY.N,{title:"Memory"}),(0,a.jsx)(B.D,{text:"A certain memory has been saved",icon:"saved",onClick:()=>n("MEMORY_SET")}),(0,a.jsx)(B.D,{text:"A decision or true/false memory matches a certain value",icon:"predictive-analysis",onClick:()=>n("MEMORY_DECISION")}),(0,a.jsx)(B.D,{text:"A counter memory matches a comparison",icon:"numerical",onClick:()=>n("COUNTER")}),(0,a.jsx)(B.D,{text:"A tag is set/unset",icon:"tag",onClick:()=>n("TAG_SET")}),(0,a.jsx)(eY.N,{title:"Miscellaneous"}),(0,a.jsx)(B.D,{text:"Player is playing/not playing in a certain language",icon:"translate",onClick:()=>n("LANGUAGE")})]}),children:(0,a.jsx)(ee.$,{fill:!0,icon:"add",children:"Add condition"})})};var eK=i(7507);let eX=e=>{let{disabled:n,conditions:i,createCondition:t,updateCondition:d,deleteCondition:o}=e,{memories:l,characters:s}=(0,eK.Z)();return(0,a.jsxs)(Y,{children:[0===i.length&&(0,a.jsx)("p",{className:T().dynamic([["6bfa6aec515777e1",[J.x8O,J.kKu,J.wWS]]])+" "+(J.E4k||""),children:"A gate is a way of blocking off pathways based on conditions, like whether a character is in a certain mood. To add a condition, click the button below."}),i.length>0&&(0,a.jsx)("p",{className:T().dynamic([["6bfa6aec515777e1",[J.x8O,J.kKu,J.wWS]]])+" "+(J.E4k||""),children:"All of these conditions must be true to pass through this gate:"}),i.map((e,i)=>{let t="Unknown condition";if("FEELING"===e.type){let{id:i,type:o}=e;t=(0,a.jsx)(eT,{disabled:n,condition:e,onChangeCondition:e=>
1d(i,o,e),characters:s})}else if("MOOD"===e.type){let{id:i,type:o}=e;t=(0,a.jsx)(eM,{disabled:n,condition:e,onChangeCondition:e=>d(i,o,e),characters:s})}else if("RELATIONSHIP"===e.type){let{id:i,type:o}=e;t=(0,a.jsx)(eR,{disabled:n,condition:e,onChangeCondition:e=>d(i,o,e),characters:s})}else if("COUNTER"===e.type){let{id:i,type:o}=e;t=(0,a.jsx)(eB,{disabled:n,condition:e,onChangeCondition:e=>d(i,o,e),memories:l.filter(e=>e.type===em.bk.COUNTER)})}else if("LANGUAGE"===e.type){let{id:i,type:o}=e;t=(0,a.jsx)(eO,{disabled:n,condition:e,onChangeCondition:e=>d(i,o,e)})}else if("MEMORY_DECISION"===e.type){let{id:i,type:o}=e;t=(0,a.jsx)(e_,{disabled:n,condition:e,onChangeCondition:e=>d(i,o,e),memories:l.filter(e=>e.type===em.bk.DECISION||e.type===em.bk.BOOLEAN)})}else if("MEMORY_SET"===e.type){let{id:i,type:o}=e;t=(0,a.jsx)(ez,{disabled:n,condition:e,onChangeCondition:e=>d(i,o,e),memories:l})}else if("TAG_SET"===e.type){let{id:i,type:o}=e;t=(0,a.jsx)(eW,{disabled:n,condition:e,onChangeCondition:e=>d(i,o,e)})}let{id:r,type:m}=e;return(0,a.jsxs)("div",{className:T().dynamic([["6bfa6aec515777e1",[J.x8O,J.kKu,J.wWS]]])+" condition",children:[(0,a.jsxs)("div",{className:T().dynamic([["6bfa6aec515777e1",[J.x8O,J.kKu,J.wWS]]])+" condition-header",children:[(0,a.jsxs)("p",{className:T().dynamic([["6bfa6aec515777e1",[J.x8O,J.kKu,J.wWS]]])+" "+(J.E4k||""),children:["Condition ",i+1]}),!n&&(0,a.jsx)(ee.$,{icon:"trash",intent:eN.J.DANGER,size:"small",variant:"minimal",onClick:()=>o(r,m),"aria-label":"Delete"})]}),t]},"".concat(m,"_").concat(r))}),!n&&(0,a.jsx)("div",{className:T().dynamic([["6bfa6aec515777e1",[J.x8O,J.kKu,J.wWS]]])+" popover",children:(0,a.jsx)(eJ,{createCondition:t})}),(0,a.jsx)(T(),{id:"6bfa6aec515777e1",dynamic:[J.x8O,J.kKu,J.wWS],children:"hr.__jsx-style-dynamic-selector{margin:10px 0}.condition.__jsx-style-dynamic-selector{margin-top:20px}.condition.__jsx-style-dynamic-selector .".concat(J.x8O,"{line-height:normal}.condition-header.__jsx-style-dynamic-selector{display:flex;align-items:center;justify-content:space-between}p.__jsx-style-dynamic-selector{margin:0}.condition.__jsx-style-dynamic-selector p.__jsx-style-dynamic-selector{font-weight:bolder;font-size:12px;line-height:normal}.popover.__jsx-style-dynamic-selector .").concat(J.kKu,",.popover.__jsx-style-dynamic-selector .").concat(J.wWS,"{width:100%}.popover.__jsx-style-dynamic-selector{margin-top:20px}")})]})};var eq=i(72007);let eZ={},eQ={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateGateConditionFeeling"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateGraphNodePropertiesGateConditionFeelingInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"createGateConditionFeeling"},name:{kind:"Name",value:"createGraphNodePropertiesGateConditionFeeling"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},e0={},e1={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateGateConditionMood"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateGraphNodePropertiesGateConditionMoodInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"createGateConditionMood"},name:{kind:"Name",value:"createGraphNodePropertiesGateConditionMood"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},e5={},e4={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateGateConditionRelationship"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateGraphNodePropertiesGateConditionRelationshipInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"createGateConditionRelationship"},name:{kind:"Name",value:"createGraphNodePropertiesGateConditionRelationship"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},e3={},e6={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateGateConditionCounter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateGraphNodePropertiesGateConditionCounterInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"createGateConditionCounter"},name:{kind:"Name",value:"createGraphNodePropertiesGateConditionCounter"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},e2={},e7={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateGateConditionLanguage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateGraphNodePropertiesGateConditionLanguageInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"createGateConditionLanguage"},name:{kind:"Name",value:"createGraphNodePropertiesGateConditionLanguage"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},e8={},e9={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateGateConditionMemoryDecision"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateGraphNodePropertiesGateConditionMemoryDecisionInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"createGateConditionMemoryDecision"},name:{kind:"Name",value:"createGraphNodePropertiesGateConditionMemoryDecision"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},ne={},nn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateGateConditionMemorySet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateGraphNodePropertiesGateConditionMemorySetInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"createGateConditionMemorySet"},name:{kind:"Name",value:"createGraphNodePropertiesGateConditionMemorySet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},ni={},na={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateGateConditionTagSet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateGraphNodePropertiesGateConditionTagSetInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"createGateConditionTagSet"},name:{kind:"Name",value:"createGraphNodePropertiesGateConditionTagSet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},nt={},nd={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGateConditionFeeling"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesGateConditionFeelingByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updateGateConditionFeeling"},name:{kind:"Name",value:"updateGraphNodePropertiesGateConditionFeelingById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},no={},nl={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGateConditionMood"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesGateConditionMoodByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updateGateConditionMood"},name:{kind:"Name",value:"updateGraphNodePropertiesGateConditionMoodById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},ns={},nr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGateConditionRelationship"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesGateConditionRelationshipByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updateGateConditionRelationship"},name:{kind:"Name",value:"updateGraphNodePropertiesGateConditionRelationshipById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},nm={},nc={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGateConditionCounter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesGateConditionCounterByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updateGateConditionCounter"},name:{kind:"Name",value:"updateGraphNodePropertiesGateConditionCounterById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},nk={},nu={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGateConditionLanguage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesGateConditionLanguageByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updateGateConditionLanguage"},name:{kind:"Name",value:"updateGraphNodePropertiesGateConditionLanguageById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},np={},nN={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGateConditionMemoryDecision"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesGateConditionMemoryDecisionByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updateGateConditionMemoryDecision"},name:{kind:"Name",value:"updateGraphNodePropertiesGateConditionMemoryDecisionById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},nv={},nS={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGateConditionMemorySet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesGateConditionMemorySetByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updateGateConditionMemorySet"},name:{kind:"Name",value:"updateGraphNodePropertiesGateConditionMemorySetById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},nh={},ng={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGateConditionTagSet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesGateConditionTagSetByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updateGateConditionTagSet"},name:{kind:"Name",value:"updateGraphNodePropertiesGateConditionTagSetById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},ny={},nF={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteGateConditionFeeling"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteGraphNodePropertiesGateConditionFeelingByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"deleteGateConditionFeeling"},name:{kind:"Name",value:"deleteGraphNodePropertiesGateConditionFeelingById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},nx={},nf={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteGateConditionMood"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteGraphNodePropertiesGateConditionMoodByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"deleteGateConditionMood"},name:{kind:"Name",value:"deleteGraphNodePropertiesGateConditionMoodById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},nb={},nC={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteGateConditionRelationship"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteGraphNodePropertiesGateConditionRelationshipByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"deleteGateConditionRelationship"},name:{kind:"Name",value:"deleteGraphNodePropertiesGateConditionRelationshipById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},nG={},nj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteGateConditionCounter"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteGraphNodePropertiesGateConditionCounterByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"deleteGateConditionCounter"},name:{kind:"Name",value:"deleteGraphNodePropertiesGateConditionCounterById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},nI={},nP={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteGateConditionLanguage"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteGraphNodePropertiesGateConditionLanguageByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"deleteGateConditionLanguage"},name:{kind:"Name",value:"deleteGraphNodePropertiesGateConditionLanguageById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},nT={},nD={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteGateConditionMemoryDecision"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteGraphNodePropertiesGateConditionMemoryDecisionByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"deleteGateConditionMemoryDecision"},name:{kind:"Name",value:"deleteGraphNodePropertiesGateConditionMemoryDecisionById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},nM={},nR={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteGateConditionMemorySet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteGraphNodePropertiesGateConditionMemorySetByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"deleteGateConditionMemorySet"},name:{kind:"Name",value:"deleteGraphNodePropertiesGateConditionMemorySetById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},nE={},nw={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteGateConditionTagSet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteGraphNodePropertiesGateConditionTagSetByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"deleteGateConditionTagSet"},name:{kind:"Name",value:"deleteGraphNodePropertiesGateConditionTagSetById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesGateByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}}]},nB=(0,t.memo)(e=>{let{id:n,onStartEdge:i,properties:{conditionsFeeling:t,conditionsMood:d,conditionsRelationship:o,conditionsCounter:l,conditionsLanguage:s,conditionsMemorySet:r,conditionsMemoryDecision:m,conditionsTagSet:c},disabled:k}=e,u=[].concat(t.nodes.map(e=>({...e,type:"FEELING",feelings:e.feelings})),d.nodes.map(e=>({...e,positivityRange:[Number(e.positivityRange[0]),Number(e.positivityRange[1])],energyRange:[Number(e.energyRange[0]),Number(e.energyRange[1])],type:"MOOD"})),o.nodes.map(e=>({...e,relationshipRange:[Number(e.relationshipRange[0]),Number(e.relationshipRange[1])],type:"RELATIONSHIP"})),l.nodes.map(e=>({...e,type:"COUNTER"})),s.nodes.map(e=>({...e,type:"LANGUAGE",languageCodes:e.languageCodes})),r.nodes.map(e=>({...e,type:"MEMORY_SET"})),m.nodes.map(e=>({...e,type:"MEMORY_DECISION"})),c.nodes.map(e=>({...e,type:"TAG_SET",tags:e.tags}))),{createGateConditionFeeling:p,createGateConditionMood:N,createGateConditionRelationship:v,createGateConditionCounter:S,createGateConditionLanguage:h,createGateConditionMemoryDecision:g,createGateConditionMemorySet:y,createGateConditionTagSet:F,updateGateConditionFeeling:x,updateGateConditionMood:f,updateGateConditionRelationship:b,updateGateConditionCounter:C,updateGateConditionLanguage:G,updateGateConditionMemoryDecision:j,updateGateConditionMemorySet:I,updateGateConditionTagSet:P,deleteGateConditionFeeling:T,deleteGateConditionMood:D,deleteGateConditionRelationship:M,deleteGateConditionCounter:R,deleteGateConditionLanguage:E,deleteGateConditionMemoryDecision:w,deleteGateConditionMemorySet:B,deleteGateConditionTagSet:A}=(()=>{let[e]=function(e){let n={...eZ,...void 0};return eq.n(eQ,n)}(),[n]=function(e){let n={...e0,...void 0};return eq.n(e1,n)}(),[i]=function(e){let n={...e5,...void 0};return eq.n(e4,n)}(),[a]=function(e){let n={...e3,...void 0};return eq.n(e6,n)}(),[t]=function(e){let n={...e2,...void 0};return eq.n(e7,n)}(),[d]=function(e){let n={...e8,...void 0};return eq.n(e9,n)}
1(),[o]=function(e){let n={...ne,...void 0};return eq.n(nn,n)}(),[l]=function(e){let n={...ni,...void 0};return eq.n(na,n)}(),[s]=function(e){let n={...nt,...void 0};return eq.n(nd,n)}(),[r]=function(e){let n={...no,...void 0};return eq.n(nl,n)}(),[m]=function(e){let n={...ns,...void 0};return eq.n(nr,n)}(),[c]=function(e){let n={...nm,...void 0};return eq.n(nc,n)}(),[k]=function(e){let n={...nk,...void 0};return eq.n(nu,n)}(),[u]=function(e){let n={...np,...void 0};return eq.n(nN,n)}(),[p]=function(e){let n={...nv,...void 0};return eq.n(nS,n)}(),[N]=function(e){let n={...nh,...void 0};return eq.n(ng,n)}(),[v]=function(e){let n={...ny,...void 0};return eq.n(nF,n)}(),[S]=function(e){let n={...nx,...void 0};return eq.n(nf,n)}(),[h]=function(e){let n={...nb,...void 0};return eq.n(nC,n)}(),[g]=function(e){let n={...nG,...void 0};return eq.n(nj,n)}(),[y]=function(e){let n={...nI,...void 0};return eq.n(nP,n)}(),[F]=function(e){let n={...nT,...void 0};return eq.n(nD,n)}(),[x]=function(e){let n={...nM,...void 0};return eq.n(nR,n)}(),[f]=function(e){let n={...nE,...void 0};return eq.n(nw,n)}();return{createGateConditionFeeling:e,createGateConditionMood:n,createGateConditionRelationship:i,createGateConditionCounter:a,createGateConditionLanguage:t,createGateConditionMemoryDecision:d,createGateConditionMemorySet:o,createGateConditionTagSet:l,updateGateConditionFeeling:s,updateGateConditionMood:r,updateGateConditionRelationship:m,updateGateConditionCounter:c,updateGateConditionLanguage:k,updateGateConditionMemoryDecision:u,updateGateConditionMemorySet:p,updateGateConditionTagSet:N,deleteGateConditionFeeling:v,deleteGateConditionMood:S,deleteGateConditionRelationship:h,deleteGateConditionCounter:g,deleteGateConditionLanguage:y,deleteGateConditionMemoryDecision:F,deleteGateConditionMemorySet:x,deleteGateConditionTagSet:f}})();return(0,a.jsxs)("div",{children:[(0,a.jsx)($,{nodeId:n,title:"Gate",icon:"/static/images/node-icons/icon-node-sceneentrynode.svg",backgroundColor:"linear-gradient(to right, var(--gate-bg-1), var(--dark-orange))"}),(0,a.jsx)(H,{id:n,type:"left"}),(0,a.jsx)(H,{id:n,type:"right",onStartEdge:i}),(0,a.jsx)(eX,{disabled:k,conditions:u,createCondition:e=>{"FEELING"===e?p({variables:{input:{graphNodePropertiesGateConditionFeeling:{gateNodeId:n}}}}):"MOOD"===e?N({variables:{input:{graphNodePropertiesGateConditionMood:{gateNodeId:n}}}}):"RELATIONSHIP"===e?v({variables:{input:{graphNodePropertiesGateConditionRelationship:{gateNodeId:n}}}}):"COUNTER"===e?S({variables:{input:{graphNodePropertiesGateConditionCounter:{gateNodeId:n}}}}):"LANGUAGE"===e?h({variables:{input:{graphNodePropertiesGateConditionLanguage:{gateNodeId:n}}}}):"MEMORY_DECISION"===e?g({variables:{input:{graphNodePropertiesGateConditionMemoryDecision:{gateNodeId:n}}}}):"MEMORY_SET"===e?y({variables:{input:{graphNodePropertiesGateConditionMemorySet:{gateNodeId:n}}}}):"TAG_SET"===e&&F({variables:{input:{graphNodePropertiesGateConditionTagSet:{gateNodeId:n}}}})},updateCondition:(e,n,i)=>{"FEELING"===n?x({variables:{input:{id:e,graphNodePropertiesGateConditionFeelingPatch:i}}}):"MOOD"===n?f({variables:{input:{id:e,graphNodePropertiesGateConditionMoodPatch:{...i,positivityRange:i.positivityRange?[i.positivityRange[0].toString(),i.positivityRange[1].toString()]:void 0,energyRange:i.energyRange?[i.energyRange[0].toString(),i.energyRange[1].toString()]:void 0}}}}):"RELATIONSHIP"===n?b({variables:{input:{id:e,graphNodePropertiesGateConditionRelationshipPatch:{...i,relationshipRange:i.relationshipRange?[i.relationshipRange[0].toString(),i.relationshipRange[1].toString()]:void 0}}}}):"COUNTER"===n?C({variables:{input:{id:e,graphNodePropertiesGateConditionCounterPatch:{...i,comparisonType:i.comparisonType?i.comparisonType:void 0}}}}):"LANGUAGE"===n?G({variables:{input:{id:e,graphNodePropertiesGateConditionLanguagePatch:{...i}}}}):"MEMORY_DECISION"===n?j({variables:{input:{id:e,graphNodePropertiesGateConditionMemoryDecisionPatch:i}}}):"MEMORY_SET"===n?I({variables:{input:{id:e,graphNodePropertiesGateConditionMemorySetPatch:i}}}):"TAG_SET"===n&&P({variables:{input:{id:e,graphNodePropertiesGateConditionTagSetPatch:i}}})},deleteCondition:(e,n)=>{"FEELING"===n?T({variables:{input:{id:e}}}):"MOOD"===n?D({variables:{input:{id:e}}}):"RELATIONSHIP"===n?M({variables:{input:{id:e}}}):"COUNTER"===n?R({variables:{input:{id:e}}}):"LANGUAGE"===n?E({variables:{input:{id:e}}}):"MEMORY_DECISION"===n?w({variables:{input:{id:e}}}
1):"MEMORY_SET"===n?B({variables:{input:{id:e}}}):"TAG_SET"===n&&A({variables:{input:{id:e}}})}})]})});var nA=i(91719),nL=i(86117),nO=i(29825),nV=i(49865),n_=i(88405),nz=i(91903),nU=i(32013),nW=i(5228);let n$={},nH={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RateGenerationNodeGeneration"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateTextGenerationLogGenerationNodeByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateTextGenerationLogGenerationNodeById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"textGenerationLogGenerationNode"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"rating"}},{kind:"Field",name:{kind:"Name",value:"ratingReason"}}]}}]}}]}}]},nY=e=>{let{generation:n}=e,[i]=function(e){let n={...n$,...void 0};return eq.n(nH,n)}(),[d,o]=(0,t.useState)(!1),{generatedAt:l}=n,s=l?Date.now()-new Date(l).getTime():null,{request:r}=n,m=r.messages?r.messages.flatMap(e=>e.content.split("\n").map(e=>(0,a.jsx)("p",{children:e}))):r.prompt,c=n.textGenerationLogGenerationNodesByTextGenerationLogId.nodes[0],k=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unknown";return i({variables:{input:{id:c.id,textGenerationLogGenerationNodePatch:{rating:e,ratingReason:n}}}})};return(0,a.jsxs)("div",{className:"jsx-9111d3ad08a4faed generation",children:[(0,a.jsxs)("div",{className:"jsx-9111d3ad08a4faed generation-details",children:[(0,a.jsx)(ee.$,{icon:d?"caret-down":"caret-right",size:"small",variant:"minimal",onClick:()=>{o(!d)},"aria-label":d?"Hide prompt":"Show prompt"}),(0,a.jsx)("div",{style:{flex:1},className:"jsx-9111d3ad08a4faed",children:c.generatedText}),s&&(0,a.jsx)("div",{className:"jsx-9111d3ad08a4faed "+(M()("generation-time",J.E4k)||""),children:s<6e4?"just now":"".concat((0,nW.A)(s,{long:!0})," ago")}),(0,a.jsxs)("div",{className:"jsx-9111d3ad08a4faed",children:[(0,a.jsx)(ee.$,{icon:"thumbs-down",intent:eN.J.DANGER,variant:c.rating!==em.at.BAD?"minimal":"solid",size:"small",style:{borderRadius:3},onClick:()=>{k(em.at.BAD)},"aria-label":"Rate bad"}),(0,a.jsx)(ee.$,{icon:"thumbs-up",intent:eN.J.SUCCESS,variant:c.rating!==em.at.GOOD?"minimal":"solid",size:"small",style:{borderRadius:3},onClick:()=>{k(em.at.GOOD)},"aria-label":"Rate good"})]})]}),(0,a.jsx)(nU.S,{isOpen:d,children:(0,a.jsx)("div",{className:"jsx-9111d3ad08a4faed prompt",children:m})}),(0,a.jsx)(T(),{id:"9111d3ad08a4faed",children:".generation.jsx-9111d3ad08a4faed{margin-bottom:12px}.generation-details.jsx-9111d3ad08a4faed{display:flex;align-items:center}.generation-time.jsx-9111d3ad08a4faed{margin:0 4px}.prompt.jsx-9111d3ad08a4faed{background:var(--background-color);border-radius:2px;padding:8px}.prompt.jsx-9111d3ad08a4faed p{margin-bottom:8px}.prompt.jsx-9111d3ad08a4faed p:last-child{margin:0}"})]})};var nJ=i(31402);let nK={},nX={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GenerationNodeAnalytics"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"graphNodeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"cursor"}},type:{kind:"NamedType",name:{kind:"Name",value:"Cursor"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"allTextGenerationLogs"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"textGenerationLogGenerationNodesByTextGenerationLogId"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"every"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"graphNodeId"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"equalTo"},value:{kind:"Variable",name:{kind:"Name",value:"graphNodeId"}}}]}}]}}]}}]}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"cursor"}}},{kind:"Argument",name:{kind:"Name",value:"orderBy"}
1,value:{kind:"ListValue",values:[{kind:"EnumValue",value:"GENERATED_AT_DESC"}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GenerationNodeAnalyticsTextGenerationLog"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"hasNextPage"}}]}},{kind:"Field",name:{kind:"Name",value:"totalCount"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GenerationNodeAnalyticsTextGenerationLog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TextGenerationLog"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"generatedAt"}},{kind:"Field",name:{kind:"Name",value:"request"}},{kind:"Field",name:{kind:"Name",value:"inputWasFlagged"}},{kind:"Field",name:{kind:"Name",value:"outputWasFlagged"}},{kind:"Field",name:{kind:"Name",value:"textGenerationLogGenerationNodesByTextGenerationLogId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"generatedText"}},{kind:"Field",name:{kind:"Name",value:"rating"}},{kind:"Field",name:{kind:"Name",value:"ratingReason"}}]}}]}}]}}]},nq=e=>{var n,i;let{graphNodeId:t}=e,{data:d,loading:o,fetchMore:l}=function(e){let n={...nK,...e};return nJ.IT(nX,n)}({variables:{graphNodeId:t,cursor:null},fetchPolicy:"cache-and-network"}),s=(null==d||null==(n=d.allTextGenerationLogs)?void 0:n.edges)||[];return o?(0,a.jsx)(n_.y,{"aria-label":"Loading"}):0===s.length?(0,a.jsx)(nz.I,{icon:"info-sign",iconMuted:!1,description:"Nothing has been generated so far!"}):(0,a.jsxs)(a.Fragment,{children:[s.map(e=>{let{node:n}=e;return(0,a.jsx)(nY,{generation:n},n.id)}),(null==d||null==(i=d.allTextGenerationLogs)?void 0:i.pageInfo.hasNextPage)&&(0,a.jsx)(ee.$,{onClick:()=>{var e;l({variables:{cursor:null==d||null==(e=d.allTextGenerationLogs)?void 0:e.pageInfo.endCursor}})},intent:eN.J.SUCCESS,fill:!0,children:"Load more..."})]})};var nZ=i(51248),nQ=i(60385),n0=i(64964),n1=i.n(n0),n5=i(93772),n4=i(37364),n3=i(48048);let n6=e=>{let{prompt:n,model:i}=e,t=((e,n)=>{if(!e)return"";switch(n){case"openai:gpt-4":if(!e.startsWith("system:")&&!e.startsWith("user:")&&!e.startsWith("assistant:"))return'Prompts must begin with "system:", "user:", or "assistant:" for GPT-4.';return"";case"openai:gpt-4o":case"openai:gpt-4o:assistant-thread":if(!e.startsWith("system:")&&!e.startsWith("user:")&&!e.startsWith("assistant:"))return'Prompts must begin with "system:", "user:", or "assistant:" for GPT-4o.';return"";case"openai:gpt-4o-mini":case"openai:gpt-4o-mini:assistant-thread":if(!e.startsWith("system:")&&!e.startsWith("user:")&&!e.startsWith("assistant:"))return'Prompts must begin with "system:", "user:", or "assistant:" for GPT-4o-mini.';return"";case"openai:gpt-4.1":case"openai:gpt-4.1-mini":case"openai:gpt-4.1-nano":if(!e.startsWith("system:")&&!e.startsWith("user:")&&!e.startsWith("assistant:"))return'Prompts must begin with "system:", "user:", or "assistant:" for GPT-4.1.';return"";case"openai:gpt-5":case"openai:gpt-5-mini":case"openai:gpt-5-nano":if(!e.startsWith("system:")&&!e.startsWith("user:")&&!e.startsWith("assistant:"))return'Prompts must begin with "system:", "user:", or "assistant:" for GPT-5.';return"";case"opensource:llama3.1":case"opensource:llama3.2":if(!(e=>{var n;if(e.startsWith("user:")&&!e.includes("\nassistant:")&&!e.includes("\nsystem:"))return!0;let i=e.split(/(\nuser:)/g).flatMap(e=>e.split(/(\nassistant:)/g)).flatMap(e=>e.split(/(\nsystem:)/g));return(e.startsWith("system:")||e.startsWith("assistant:")||e.startsWith("user:"))&&(null==(n=i.at(-2))?void 0:n.startsWith("\nuser:"))})(e.trim()))return'Your prompt should either start with "user:" and a user prompt, or include "user:" and the user prompt as the final prompt in a sequence for llama models.';return"";case"anthropic:claude-opus-4-20250514":case"anthropic:claude-sonnet-4-20250514":case"anthropic:claude-haiku-4-5-20251001":case"anthropic:claude-sonnet-4-5-20250929":case"anthropic:claude-opus-4-5-20251101":case"anthropic:claude-sonnet-4-6":case"anthropic:claude-opus-4-7":if(!e.startsWith("user:")&&!e.startsWith("assistant:"))return'Prompts must begin with "user:", or "assistant:" for Claude 4 models.';return"";case"anthropic:claude-3-opus":case"anthropic:claude-3-5-sonnet":case"anthropic:claude-3-haiku":if(!e.startsWith("user:")&&!e.startsWith("assistant:"))return'Prompts must begin with "user:", or "assistant:" for Claude 3 models.';return"";default:return""}})(n,i);return t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{"data-testid":"warning-message",className:"jsx-6c789df1a664d3a6 warning-message",children:[(0,a.jsx)(n3.I,{icon:"warning-sign",intent:eN.J.NONE,style:{marginBottom:2,marginRight:2,marginLeft:1}})," ",t]}),(0,a.jsx)(T(),{id:"6c789df1a664d3a6",children:".warning-message.jsx-6c789df1a664d3a6{border-radius:4px;margin-top:8px;padding:8px;background:var(--red);color:var(--pure-white)}"})]}):null},n2=()=>(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{children:"This is a list of special tags which allow you to inject useful bits of text into the prompt."}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)(nO.Cy,{children:"<STORY_DESCRIPTION>"}),": Whatever was put in the story description on the âStory Overviewâ page."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)(nO.Cy,{children:"<GRAPH_DESCRIPTION>"}),": The description entered into the scene or subplot, by clicking âEdit details...â under the graph in the sidebar."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)(nO.Cy,{children:"<MESSAGE_HISTORY(n)>"}),": The last ",(0,a.jsx)(nO.Cy,{children:"n"}),"character and player messages in the conversation."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)(nO.Cy,{children:"<PLAYER_MESSAGE>"}),": The text of the currently considered player message (without `Player: ` like in the"," ",(0,a.jsx)(nO.Cy,{children:"<MESSAGE_HISTORY>"}
1),"). A generation node with this in the prompt can only be after a Wildcard or Player node."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)(nO.Cy,{children:"<CHARACTER_BIO>"}),": The biography from the improvisation tab on character page for the character selected in the âRelated Characterâ drop-down."]}),(0,a.jsxs)("li",{children:[(0,a.jsx)(nO.Cy,{children:"<CHARACTER_EXAMPLE_DIALOGUE>"}),": The example dialogue from the improvisation tab on character page for the character selected in the âRelated Characterâ drop-down."]})]}),(0,a.jsxs)("p",{children:["More info is available in the"," ",(0,a.jsx)("a",{href:"/docs/nodes/generation-nodes",target:"_blank",rel:"noopener noreferrer",children:"generation node docs"}),"."]})]}),n7={"anthropic:claude-1":"Anthropic: Claude 1 - redacted; rerouted to 4.6 Sonnet","anthropic:claude-instant-1":"Anthropic: Claude Instant 1 - redacted; rerouted to 4.6 Sonnet","anthropic:claude-2":"Anthropic: Claude 2 - redacted; rerouted to 4.6 Sonnet","anthropic:claude-3-haiku":"Anthropic: Claude 3 Haiku - redacted; rerouted to 4.5 Haiku","anthropic:claude-3-5-sonnet":"Anthropic: Claude 3.5 Sonnet - redacted; rerouted to 4.6 Sonnet","anthropic:claude-3-opus":"Anthropic: Claude 3 Opus - redacted; rerouted to 4.7 Opus","anthropic:claude-sonnet-4-20250514":"Anthropic: Claude 4 Sonnet","anthropic:claude-opus-4-20250514":"Anthropic: Claude 4 Opus","anthropic:claude-haiku-4-5-20251001":"Anthropic: Claude 4.5 Haiku","anthropic:claude-sonnet-4-5-20250929":"Anthropic: Claude 4.5 Sonnet","anthropic:claude-opus-4-5-20251101":"Anthropic: Claude 4.5 Opus","anthropic:claude-sonnet-4-6":"Anthropic: Claude 4.6 Sonnet","anthropic:claude-opus-4-7":"Anthropic: Claude 4.7 Opus","openai:gpt-4":"OpenAI: GPT-4","openai:gpt-4o":"OpenAI: GPT-4o","openai:gpt-4o-mini":"OpenAI: GPT-4o-mini","openai:gpt-4.1":"OpenAI: GPT-4.1","openai:gpt-4.1-mini":"OpenAI: GPT-4.1-mini","openai:gpt-4.1-nano":"OpenAI: GPT-4.1-nano - redacted; rerouted to GPT-5-nano","openai:gpt-5":"OpenAI: GPT-5","openai:gpt-5-mini":"OpenAI: GPT-5-mini","openai:gpt-5-nano":"OpenAI: GPT-5-nano","openai:gpt-4o:assistant-thread":"OpenAI: GPT-4o with memory of earlier conversation [Experimental]","openai:gpt-4o-mini:assistant-thread":"OpenAI: GPT-4o-mini with memory of earlier conversation [Experimental]","opensource:llama3.1":"Meta Llama 3.1 8B","opensource:llama3.2":"Meta Llama 3.2 3B"},n8=["anthropic:claude-1","anthropic:claude-instant-1","anthropic:claude-2","anthropic:claude-3-haiku","anthropic:claude-3-5-sonnet","anthropic:claude-3-opus","anthropic:claude-sonnet-4-20250514","anthropic:claude-opus-4-20250514","anthropic:claude-haiku-4-5-20251001","anthropic:claude-sonnet-4-5-20250929","anthropic:claude-opus-4-5-20251101","anthropic:claude-sonnet-4-6","anthropic:claude-opus-4-7","openai:gpt-4","openai:gpt-4o","openai:gpt-4o-mini","openai:gpt-4.1","openai:gpt-4.1-mini","openai:gpt-4.1-nano","openai:gpt-5","openai:gpt-5-mini","openai:gpt-5-nano","openai:gpt-4o:assistant-thread","openai:gpt-4o-mini:assistant-thread","opensource:llama3.1","opensource:llama3.2"].map(e=>({label:n7[e],value:e})),n9=e=>{var n,i,d,o,l;let{disabled:s,isOpen:r,onClose:m,initialValues:c,onSaveValues:k}=e,{sourceLanguageCode:u,isLlmThreadGenerationEnabled:p}=(0,W.E)(),[N,v]=(0,t.useState)(c.promptLocalised[u]);(0,t.useEffect)(()=>{v(c.promptLocalised[u])},[c.promptLocalised,u]),(0,n5.J)();let[S,h]=(0,t.useState)(c.model),[g,y]=(0,t.useState)(c.modelParams),[F,x]=(0,t.useState)(c.characterId),{theme:f}=(0,ey.DP)(),{characters:b}=(0,eK.Z)(),[C,G]=(0,t.useState)(!1),j=e=>{y({...g,reasoningEffort:e})},I=n8.filter(e=>!e.value.endsWith(":assistant-thread")||!!p).filter(e=>!["anthropic:claude-1","anthropic:claude-instant-1","anthropic:claude-2","anthropic:claude-3-haiku","anthropic:claude-3-5-sonnet","anthropic:claude-3-opus","openai:gpt-4.1-nano"].includes(e.value)||e.value===S),P=(0,a.jsxs)(a.Fragment,{children:["Select a character to be able to access their <CHARACTER_BIO> and <CHARACTER_EXAMPLE_DIALOGUE> in the prompt.",(0,a.jsx)("br",{}),"If you want the character to say the generation, this node should be followed by a character node containing <Generation>."]});return(0,a.jsx)(en.l,{isOpen:r,onClose:m,title:"Prompt editor",icon:"edit",style:{padding:0,width:"90vw",minHeight:"90vh"},children:(0,a.jsxs)("div",{className:T().dynamic([["6c8e09925ff334c8",[J.kKu]]])+" "+(M()("generation-dialog",J.sar)||""),children:[(0,a.jsxs)("div",{className:T().dynamic([["6c8e09925ff334c8",[J.kKu]]])+" panels",children:[(0,a.jsxs)("div",{className:T().dynamic([["6c8e09925ff334c8",[J.kKu]]])+" panel-left",children:[(0,a.jsx)("div",{"data-cy":"prompt-editor",className:T().dynamic([["6c8e09925ff334c8",[J.kKu]]])+" prompt-editor",children:(0,a.jsx)(ev.Ay,{language:"plaintext",value:N,onChange:e=>v(e||""),theme:"dark"===f?"vs-dark":"light",options:{minimap:{enabled:!1},wordWrap:"on"}}
1)}),(0,a.jsx)(n6,{prompt:N,model:S}),(0,a.jsxs)("div",{className:T().dynamic([["6c8e09925ff334c8",[J.kKu]]])+" generation-help-section",children:[(0,a.jsx)("div",{className:T().dynamic([["6c8e09925ff334c8",[J.kKu]]])+" generation-help-button",children:(0,a.jsx)(n1(),{href:"/docs/nodes/generation-nodes#writing-a-prompt",target:"_blank",children:(0,a.jsx)(ee.$,{size:"small",icon:"book",variant:"minimal","data-testid":"documentation-help-button",children:"Documentation"})})}),(0,a.jsx)("div",{className:T().dynamic([["6c8e09925ff334c8",[J.kKu]]])+" generation-help-button",children:(0,a.jsx)(e$.A,{popoverClassName:J.xPk,interactionKind:"hover","data-testid":"special-tags-help-popover",content:(0,a.jsx)(n2,{}),children:(0,a.jsx)(ee.$,{size:"small",icon:"tag",variant:"minimal","data-testid":"special-tags-help-button",children:"View special tags"})})})]})]}),(0,a.jsxs)("div",{className:T().dynamic([["6c8e09925ff334c8",[J.kKu]]])+" panel-right",children:[(0,a.jsx)(nA.g,{label:"Character",labelInfo:(0,a.jsx)(nL.m,{content:P,children:(0,a.jsx)(ee.$,{icon:"help",variant:"minimal",size:"small",style:{marginTop:"-3px"},"aria-label":"Help"})}),children:(0,a.jsx)(eb.g,{name:"character-select",options:["None",...b.map(e=>e.name)],onChange:e=>{var n;x(null==(n=b.find(n=>n.name===e.target.value))?void 0:n.id)},value:null==(n=b.find(e=>e.id===F))?void 0:n.name,fill:!0,"aria-label":"Related Character"})}),(0,a.jsx)("hr",{className:T().dynamic([["6c8e09925ff334c8",[J.kKu]]])}),(0,a.jsx)(nA.g,{label:"Model",children:(0,a.jsx)(eb.g,{name:"model-select",options:I,onChange:e=>{h(e.target.value),e.target.value.startsWith("openai:gpt-5")?y({unmoderated:g.unmoderated}):j(void 0)},value:S,fill:!0,"aria-label":"Model"})}),(0,a.jsx)(nA.g,{children:(0,a.jsx)(nZ.Sc,{label:"Moderated",type:"checkbox",checked:!g.unmoderated,onChange:e=>y({...g,unmoderated:!e.target.checked})})}),!S.startsWith("openai:gpt-5")&&!S.startsWith("anthropic:claude-opus-4")&&!S.startsWith("anthropic:claude-haiku-4")&&!S.startsWith("anthropic:claude-sonnet-4")&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(nA.g,{label:"Randomness",labelInfo:(0,a.jsx)(nL.m,{content:"A higher setting will make the generated text more random and creative, while a lower setting will make it more focused and deterministic.",children:(0,a.jsx)(ee.$,{icon:"help",variant:"minimal",size:"small",style:{marginTop:"-3px"},"aria-label":"Help"})}),children:(0,a.jsx)("div",{className:T().dynamic([["6c8e09925ff334c8",[J.kKu]]])+" slider-container",children:(0,a.jsx)(nQ.A,{min:0,max:1,stepSize:.01,labelRenderer:(e,n)=>(null==n?void 0:n.isHandleTooltip)?null:0===e?"Low":"High",onChange:e=>y({...g,temperature:e}),onRelease:e=>y({...g,temperature:e}),value:null!=(i=g.temperature)?i:1})})}),(0,a.jsx)(nA.g,{label:"Word Pool Size",labelInfo:(0,a.jsx)(nL.m,{content:"A higher setting will consider a greater vocabulary whilst creating the generated text.",children:(0,a.jsx)(ee.$,{icon:"help",variant:"minimal",size:"small",style:{marginTop:"-3px"},"aria-label":"Help"})}),children:(0,a.jsx)("div",{className:T().dynamic([["6c8e09925ff334c8",[J.kKu]]])+" slider-container",children:(0,a.jsx)(nQ.A,{min:0,max:1,stepSize:.01,labelRenderer:(e,n)=>(null==n?void 0:n.isHandleTooltip)?null:0===e?"Low":"High",onChange:e=>y({...g,topP:e}),onRelease:e=>y({...g,topP:e}
1),value:null!=(d=g.topP)?d:1})})}),S.startsWith("openai:")&&(0,a.jsx)(nA.g,{label:"Word Variation",labelInfo:(0,a.jsx)(nL.m,{content:"A higher setting will decrease the likelihood of lines of text being repeated verbatim.",children:(0,a.jsx)(ee.$,{icon:"help",variant:"minimal",size:"small",style:{marginTop:"-3px"},"aria-label":"Help"})}),children:(0,a.jsx)("div",{className:T().dynamic([["6c8e09925ff334c8",[J.kKu]]])+" slider-container",children:(0,a.jsx)(nQ.A,{min:-2,max:2,stepSize:.05,labelStepSize:4,labelRenderer:(e,n)=>(null==n?void 0:n.isHandleTooltip)?null:-2===e?"Low":"High",onChange:e=>y({...g,frequencyPenalty:e}),onRelease:e=>y({...g,frequencyPenalty:e}),value:null!=(o=g.frequencyPenalty)?o:0})})}),(0,a.jsx)(nA.g,{label:"Topic Variation",labelInfo:(0,a.jsx)(nL.m,{content:"A higher setting increases the likelihood of new topics being introduced into the generated text.",children:(0,a.jsx)(ee.$,{icon:"help",variant:"minimal",size:"small",style:{marginTop:"-3px"},"aria-label":"Help"})}),children:(0,a.jsx)("div",{className:T().dynamic([["6c8e09925ff334c8",[J.kKu]]])+" slider-container",children:(0,a.jsx)(nQ.A,{min:-2,max:2,stepSize:.05,labelStepSize:4,labelRenderer:(e,n)=>(null==n?void 0:n.isHandleTooltip)?null:-2===e?"Low":"High",onChange:e=>y({...g,presencePenalty:e}),onRelease:e=>y({...g,presencePenalty:e}),value:null!=(l=g.presencePenalty)?l:0})})}),(0,a.jsx)(nA.g,{label:"Stop",labelInfo:(0,a.jsx)(nL.m,{content:"Up to 4 sequences to look for to stop generating text upon seeing. The generated text will not contain the stop sequence.",children:(0,a.jsx)(ee.$,{icon:"help",variant:"minimal",size:"small",style:{marginTop:"-3px"},"aria-label":"Help"})}),helperText:"Type a stop sequence and press Enter",children:(0,a.jsx)(eU.F,{values:g.stop||["\\n"],onChange:e=>y({...g,stop:e}),placeholder:"No stop sequences set"})})]}),S.startsWith("openai:gpt-5")&&(0,a.jsx)(nA.g,{label:"Reasoning Effort",labelInfo:(0,a.jsx)(nL.m,{content:"A higher setting will take longer and cost more, but may lead to higher quality deductions.",children:(0,a.jsx)(ee.$,{icon:"help",variant:"minimal",size:"small",style:{marginTop:"-3px"},"aria-label":"Help"})}),children:(0,a.jsx)(eb.g,{name:"reasoning-effort-select",options:[{label:"Minimal",value:"minimal"},{label:"Low",value:"low"},{label:"Medium",value:"medium"},{label:"High",value:"high"}],onChange:e=>{j(e.target.value)},value:g.reasoningEffort,fill:!0,"aria-label":"Model"})})]})]}),(0,a.jsx)(ee.$,{disabled:s,icon:"saved",intent:eN.J.SUCCESS,fill:!0,loading:C,style:{marginTop:15},onClick:()=>{G(!0),Promise.resolve(k({promptLocalised:{...c.promptLocalised,[u]:N},model:S,modelParams:g,characterId:F})).then(()=>{m()}).catch(()=>{(0,n4.L_)("Something went wrong saving the prompt.")}).finally(()=>{G(!1)})},children:"Save"}),(0,a.jsx)(T(),{id:"6c8e09925ff334c8",dynamic:[J.kKu],children:".generation-dialog.__jsx-style-dynamic-selector{display:flex;flex-direction:column;height:100%}.panels.__jsx-style-dynamic-selector{display:flex;width:100%;flex-grow:1}.panel-left.__jsx-style-dynamic-selector{flex:1;display:flex;flex-direction:column;min-width:0}.prompt-editor.__jsx-style-dynamic-selector{border-radius:4px;overflow:hidden;flex:1;min-width:0}.generation-help-section.__jsx-style-dynamic-selector{margin-top:8px;width:100%;display:flex;justify-content:flex-end}.generation-help-button.__jsx-style-dynamic-selector{width:136px}.slider-container.__jsx-style-dynamic-selector{padding:0 11px}.panel-right.__jsx-style-dynamic-selector{width:324px;margin-left:20px;margin-right:10px}.panel-right.__jsx-style-dynamic-selector .".concat(J.kKu,"{display:inline-block;margin:0}")})]})})},ie=e=>{let{graphNodeId:n,disabled:i,properties:d,updateProperties:o}=e,{theme:l}=(0,ey.DP)(),{memories:s}=(0,eK.Z)(),[r,m]=(0,t.useState)(!1),[c,k]=(0,t.useState)(!1),u=s.find(e=>e.id===d.memoryId),{sourceLanguageCode:p}=(0,W.E)(),N=d.promptLocalised[p];return(0,a.jsxs)(Y,{children:[(0,a.jsxs)(nA.g,{label:"Prompt context",children:[(0,a.jsx)(eS.A,{language:"text",style:"dark"===l?eh.A:eg.A,customStyle:{background:"var(--accent-2)",marginBottom:10,borderRadius:4,overflowY:"auto",maxHeight:140,margin:0},wrapLongLines:!0,children:N||"Click 'Edit prompt' to edit"}),(0,a.jsxs)("div",{style:{display:"flex"},className:T().dynamic([["1cf3e2f5a6fd1b56",[J.wWS]]]),children:[(0,a.jsx)(ee.$,{"data-cy":"edit-prompt-btn",icon:"edit",fill:!0,onClick:()=>m(!0),children:"Edit prompt"}),(0,a.jsx)(nL.m,{content:"View analytics",children:(0,a.jsx)(ee.$,{icon:"history",style:{marginLeft:8},onClick:()=>k(!0),"aria-label":"History"})})]})]}),(0,a.jsxs)(nA.g,{label:"Memory to save into",style:{marginBottom:0},children:[(0,a.jsx)("div",{className:T().dynamic([["1cf3e2f5a6fd1b56",[J.wWS]]])+" popover",children:(0,a.jsxs)(Q.t,{fill:!0,children:[(0,a.jsx)(nV.l,{popoverProps:{className:"min-width"}
1,disabled:i,items:s,itemPredicate:(e,n)=>n.prompt.toLowerCase().includes(e.toLowerCase()),itemRenderer:(e,n)=>{let{handleClick:i,modifiers:t}=n;return t.matchesPredicate?(0,a.jsx)(B.D,{active:t.active,label:(e=>{if("ENTITY"===e)return"Category";if("PLAYER_MESSAGE"===e)return"Player message";if("DECISION"===e)return"Decision";if("COUNTER"===e)return"Counter";if("BOOLEAN"===e)return"True/false";throw Error("Unsupported memory type: ".concat(e))})(e.type),onClick:i,text:e.prompt,multiline:!0},e.id):null},onItemSelect:e=>{let{id:n}=e;return o({memoryId:n})},children:(0,a.jsx)(ee.$,{className:"text-overflow",disabled:i,fill:!0,endIcon:"caret-down",children:u?u.prompt:"No memory selected"})}),(0,a.jsx)(ee.$,{disabled:!u,icon:"cross",onClick:()=>{o({memoryId:null})},style:{flex:0},"aria-label":"Clear memory"})]})}),(0,a.jsxs)("p",{style:{marginBottom:0,marginTop:8},className:T().dynamic([["1cf3e2f5a6fd1b56",[J.wWS]]])+" "+(J.E4k||""),children:["To use the generation, use"," ",(0,a.jsxs)(nO.Cy,{children:["<",u?u.recallValue:"Generation",">"]})," ","in a Character node."]})]}),(0,a.jsx)(n9,{isOpen:r,onClose:()=>m(!1),disabled:i,initialValues:d,onSaveValues:o}),(0,a.jsx)(en.l,{isOpen:c,onClose:()=>k(!1),title:"Generation analytics",icon:"history",style:{padding:0,width:"90vw",height:"90vh"},children:(0,a.jsx)("div",{className:T().dynamic([["1cf3e2f5a6fd1b56",[J.wWS]]])+" generations",children:(0,a.jsx)(nq,{graphNodeId:n})})}),(0,a.jsx)(T(),{id:"1cf3e2f5a6fd1b56",dynamic:[J.wWS],children:".popover.__jsx-style-dynamic-selector .min-width{min-width:0px}.popover.__jsx-style-dynamic-selector .".concat(J.wWS,"{width:100%}.panels.__jsx-style-dynamic-selector{display:flex}.generations.__jsx-style-dynamic-selector{overflow-y:scroll;height:100%;padding:20px}")})]})},ii={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGraphNodePropertiesGeneration"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesGenerationByGraphNodeIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updatePropertiesGeneration"},name:{kind:"Name",value:"updateGraphNodePropertiesGenerationByGraphNodeId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"properties"},name:{kind:"Name",value:"graphNodePropertiesGeneration"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGeneration"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGeneration"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGeneration"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"promptLocalised"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"model"}},{kind:"Field",name:{kind:"Name",value:"modelParams"}},{kind:"Field",name:{kind:"Name",value:"characterId"}}]}}]},ia=(0,t.memo)(e=>{let{id:n,properties:i,onStartEdge:t,disabled:d}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)($,{nodeId:n,title:"GENERATION",icon:"/static/images/node-icons/icon-node-generationnode.svg",backgroundColor:"linear-gradient(to right, var(--generation-bg-1), var(--generation-bg-2))"}),(0,a.jsx)(E.s,{mutation:ii,children:e=>(0,a.jsx)(ie,{graphNodeId:n,disabled:d,properties:i,updateProperties:i=>e({variables:{input:{graphNodeId:n,graphNodePropertiesGenerationPatch:i}}})})}),(0,a.jsx)(H,{id:n,type:"left"}),(0,a.jsx)(H,{id:n,type:"right",onStartEdge:t})]})}),it=(0,t.memo)(e=>{let{id:n,onStartEdge:i}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)($,{nodeId:n,title:"Graph Entry",icon:"/static/images/node-icons/icon-node-sceneentrynode.svg",backgroundColor:"var(--black)",noProperties:!0}),(0,a.jsx)(H,{id:n,type:"right",onStartEdge:i})]})}),id=(0,t.memo)(e=>{let{id:n}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)($,{nodeId:n,title:"Graph Exit",icon:"/static/images/node-icons/icon-node-sceneexitnode.svg",backgroundColor:"var(--black)",noProperties:!0}),(0,a.jsx)(H,{id:n,type:"left"})]})}),io=e=>{let{children:n}=e;return(0,a.jsxs)("div",{className:T().dynamic([["ec2def72ff499e6a",[J.opn,J.kb2,J.kb2]]]),children:[n,(0,a.jsx)(T(),{id:"ec2def72ff499e6a",dynamic:[J.opn,J.kb2,J.kb2],children:"div.__jsx-style-dynamic-selector{display:flex;flex-wrap:wrap;background:var(--graph-node-background-color);border-radius:0 0 10px 10px;padding:3px 5px;border-top:1px solid var(--accent-2)}div.__jsx-style-dynamic-selector .".concat(J.opn,"{margin:5px 10px 5px 0;display:inline-block}div.__jsx-style-dynamic-selector .").concat(J.kb2,"{color:var(--m
1id-grey)}div.__jsx-style-dynamic-selector .icon-valid .").concat(J.kb2,"{color:var(--dark-green-2)!important}")})]})},il=e=>{let{properties:n,disabled:i,updateProperties:d}=e,[o,l]=(0,t.useState)(!1),s=(0,t.useCallback)(()=>l(!0),[]),r=(0,t.useCallback)(()=>l(!1),[]),m=(0,t.useCallback)(e=>{d({mediaId:e}),r()},[r,d]),c=(0,t.useCallback)(e=>{e.stopPropagation()},[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Y,{children:[!n.media&&(0,a.jsx)("div",{className:"jsx-f3eb923d65a6d607 media-unselected",children:"No media selected..."}),n.media&&(0,a.jsx)(eo,{src:n.media.file.url}),(0,a.jsxs)(Q.t,{children:[!i&&(0,a.jsx)(ee.$,{"data-cy":"select-media-btn",icon:"camera",onClick:s,fill:!0,children:"Select from Library"}),!i&&n.media&&(0,a.jsx)(ee.$,{icon:"cross",onClick:()=>d({mediaId:null}),"aria-label":"Clear media"})]}),(0,a.jsx)("div",{onWheel:c,className:"jsx-f3eb923d65a6d607",children:(0,a.jsx)(en.l,{isOpen:o,onClose:r,title:"Select from Library",className:"media-dialog",style:{minHeight:"90vh",minWidth:"90vw"},children:(0,a.jsx)("div",{className:"jsx-f3eb923d65a6d607 "+(J.sar||""),children:(0,a.jsx)(ea.x,{onSelect:m})})})})]}),(0,a.jsx)(io,{children:(0,a.jsx)(nL.m,{position:eH.yX.BOTTOM,content:(0,a.jsx)("div",{className:"jsx-f3eb923d65a6d607",children:"Tap to Continue"}),children:(0,a.jsx)(ee.A,{disabled:i,onClick:()=>d({tapToContinue:!n.tapToContinue}),icon:"hand-up",size:"small",variant:"minimal",className:M()({"icon-valid":n.tapToContinue})})})}),(0,a.jsx)(T(),{id:"f3eb923d65a6d607",children:".media-unselected.jsx-f3eb923d65a6d607{margin-bottom:5px}"})]})},is={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGraphNodePropertiesMedia"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesMediaByGraphNodeIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updatePropertiesMedia"},name:{kind:"Name",value:"updateGraphNodePropertiesMediaByGraphNodeId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"graphNode"},name:{kind:"Name",value:"graphNodeByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NodeContent"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesAction"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesAction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"action"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesComment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesComment"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"comment"}},{kind:"Field",name:{kind:"Name",value:"mediaId"}},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"mediaByMediaId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"file"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesFunction"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesFunction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"functionSource"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGeneration"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGeneration"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"promptLocalised"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"model"}},{kind:"Field",name:{kind:"Name",value:"modelParams"}},{kind:"Field",name:{kind:"Name",value:"characterId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesMedia"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesMedia"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"tapToContinue"}},{kind:"Field",name:{kind:"Name",value:"mediaId"}},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"mediaByMediaId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesMemory"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesMemory"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"saveValue"}},{kind:"Field",name:{kind:"Name",value:"isAdvancedMode"}},{kind:"Field",name:{kind:"Name",value:"counterChangeType"}},{kind:"Field",name:{kind:"Name",value:"counterChangeValue"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReplyNodeImageLayer"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyImageLayer"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"index"}},{kind:"Field",name:{kind:"Name",value:"resizeMode"}},{kind:"Field",name:{kind:"Name",value:"points"}},{kind:"Field",name:{kind:"Name",value:"orientation"}},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"mediaByMediaId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReplyNodeAudioTrack"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyAudioTrack"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"index"}},{kind:"Field",name:{kind:"Name",value:"behaviour"}},{kind:"Field",name:{kind:"Name",value:"loop"}},{kind:"Field",name:{kind:"Name",value:"volume"}},{kind:"Field",name:{kind:"Name",value:"stopPlaying"}},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"mediaByMediaId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesReply"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReply"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"repliesLocalised"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"metadata"}},{kind:"Field",name:{kind:"Name",value:"keep"}},{kind:"Field",name:{kind:"Name",value:"endStory"}},{kind:"Field",name:{kind:"Name",value:"delay"}},{kind:"Field",name:{kind:"Name",value:"delayMode"}},{kind:"Field",name:{kind:"Name",value:"tapToContinue"}},{kind:"Field",alias:{kind:"Name",value:"imageLayers"},name:{kind:"Name",value:"graphNodePropertiesReplyImageLayersByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReplyNodeImageLayer"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"audioTracks"},name:{kind:"Name",value:"graphNodePropertiesReplyAudioTracksByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReplyNodeAudioTrack"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"stopAllAudio"}},{kind:"Field",name:{kind:"Name",value:"impact"}},{kind:"Field",name:{kind:"Name",value:"isImpactShareable"}},{kind:"Field",name:{kind:"Name",value:"impactImage"}},{kind:"Field",name:{kind:"Name",value:"voiceLocalised"}},{kind:"Field",name:{kind:"Name",value:"panelAnimationIn"}},{kind:"Field",name:{kind:"Name",value:"panelAnimationOut"}},{kind:"Field",name:{kind:"Name",value:"bubblePoints"}},{kind:"Field",name:{kind:"Name",value:"bubbleStyle"}}
1,{kind:"Field",name:{kind:"Name",value:"bubbleTailPosition"}},{kind:"Field",name:{kind:"Name",value:"tagsToSet"}},{kind:"Field",name:{kind:"Name",value:"tagsToUnset"}},{kind:"Field",name:{kind:"Name",value:"useGenerativeMode"}},{kind:"Field",name:{kind:"Name",value:"promptContextLocalised"}},{kind:"Field",alias:{kind:"Name",value:"feelingEffects"},name:{kind:"Name",value:"graphNodePropertiesReplyFeelingEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feeling"}},{kind:"Field",name:{kind:"Name",value:"intensity"}},{kind:"Field",name:{kind:"Name",value:"duration"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"moodEffects"},name:{kind:"Name",value:"graphNodePropertiesReplyMoodEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivity"}},{kind:"Field",name:{kind:"Name",value:"energy"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"relationshipEffects"},name:{kind:"Name",value:"graphNodePropertiesReplyRelationshipEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationship"}},{kind:"Field",name:{kind:"Name",value:"isSetTo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesSubplot"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesSubplot"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"subplotId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesTrigger"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesTrigger"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"mode"}},{kind:"Field",name:{kind:"Name",value:"intentsSpecificLocalised"}},{kind:"Field",name:{kind:"Name",value:"intentsGeneral"}},{kind:"Field",name:{kind:"Name",value:"exact"}},{kind:"Field",name:{kind:"Name",value:"customIntentIds"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesWildcard"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesWildcard"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"overrideSubplots"}},{kind:"Field",name:{kind:"Name",value:"overrideImprovisation"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"NodeContent"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNode"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"x"}},{kind:"Field",name:{kind:"Name",value:"y"}},{kind:"Field",alias:{kind:"Name",value:"propertiesAction"},name:{kind:"Name",value:"graphNodePropertiesActionByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesAction"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesComment"},name:{kind:"Name",value:"graphNodePropertiesCommentByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesComment"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesFunction"},name:{kind:"Name",value:"graphNodePropertiesFunctionByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesFunction"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesGate"},name:{kind:"Name",value:"graphNodePropertiesGateByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesGeneration"},name:{kind:"Name",value:"graphNodePropertiesGenerationByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGeneration"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesMedia"},name:{kind:"Name",value:"graphNodePropertiesMediaByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesMedia"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesMemory"},name:{kind:"Name",value:"graphNodePropertiesMemoryByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesMemory"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesReply"},name:{kind:"Name",value:"graphNodePropertiesReplyByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesReply"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesSubplot"},name:{kind:"Name",value:"graphNodePropertiesSubplotByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesSubplot"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesTrigger"},name:{kind:"Name",value:"graphNodePropertiesTriggerByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesTrigger"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesWildcard"},name:{kind:"Name",value:"graphNodePropertiesWildcardByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesWildcard"}}]}}]}}]},ir=(0,t.memo)(e=>{let{id:n,properties:i,onStartEdge:t,disabled:d}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)($,{nodeId:n,title:"Media",icon:"/static/images/node-icons/icon-node-medianode.svg",backgroundColor:"linear-gradient(to left, var(--media-bg-1), var(--media-bg-2))"}),(0,a.jsx)(E.s,{mutation:is,children:e=>(0,a.jsx)(il,{disabled:d,properties:i,updateProperties:i=>e({variables:{input:{graphNodeId:n,graphNodePropertiesMediaPatch:i}}})})}),(0,a.jsx)(H,{id:n,type:"left"}),(0,a.jsx)(H,{id:n,type:"right",onStartEdge:t})]})});var im=i(69080),ic=i(89620),ik=i(84094);let iu=0x80000000-1,ip=e=>{let{disabled:n,type:i,value:d,onTypeChange:o,onValueChange:l}=e,[s,r]=(0,t.useState)(d);return(0,t.useEffect)(()=>{r(d)},[d]),(0,a.jsxs)("div",{className:"jsx-f4c0827cc1ffb200",children:[(0,a.jsx)("p",{className:"jsx-f4c0827cc1ffb200 "+(J.E4k||""),children:"Choose how to change the counter's value:"}),(0,a.jsxs)(Q.t,{vertical:!0,children:[(0,a.jsxs)(eb.g,{disabled:n,value:i||"",onChange:e=>{let{currentTarget:{value:n}}=e;return o(n)},fill:!0,"aria-label":"Choose how to change the counter's value",children:[(0,a.jsx)("option",{disabled:!0,value:"",className:"jsx-f4c0827cc1ffb200",children:"Choose..."}),(0,a.jsx)("option",{value:em.pU.SET,className:"jsx-f4c0827cc1ffb200",children:"Set to..."}),(0,a.jsx)("option",{value:em.pU.SET_RANDOM,className:"jsx-f4c0827cc1ffb200",children:"Set to random..."}),(0,a.jsx)("option",{value:em.pU.INCREMENT,className:"jsx-f4c0827cc1ffb200",children:"Increment by..."}),(0,a.jsx)("option",{value:em.pU.DECREMENT,className:"jsx-f4c0827cc1ffb200",children:"Decrement by..."})]}),(0,a.jsx)(eE.O,{fill:!0,clampValueOnBlur:!0,value:"number"==typeof s?s:void 0,onValueChange:e=>{e<=iu&&e>=-iu&&r(e)},onButtonClick:e=>{l(e)},onBlur:()=>{l(s||0)},placeholder:"Enter a number...",min:-iu,max:iu,minorStepSize:null,"aria-label":"Enter a number..."}),"SET_RANDOM"===i&&(0,a.jsx)("p",{className:"jsx-f4c0827cc1ffb200 "+(J.E4k||""),children:"The number will be set between 0 and the number above (inclusive)."})]}),(0,a.jsx)(T(),{id:"f4c0827cc1ffb200",children:"p.jsx-f4c0827cc1ffb200{font-size:.875em;margin:5px 0}"})]})};var iN=i(12489);let iv=e=>{let{properties:n,updateProperties:i,disabled:d}=e,[o,l]=(0,t.useState)(!1),{storyVersionId:s}=(0,W.E)(),{memories:r,entities:m}=(0,eK.Z)(),[c]=(0,ic.a)(),k=r.find(e=>e.id===n.memoryId);return(0,a.jsxs)(Y,{children:[(0,a.jsx)("div",{className:T().dynamic([["93b957f66954
166ab",[J.wWS]]])+" popover",children:(0,a.jsxs)(Q.t,{fill:!0,children:[(0,a.jsx)(nV.l,{popoverProps:{className:"min-width"},disabled:d,items:r,itemPredicate:(e,n)=>n.prompt.toLowerCase().includes(e.toLowerCase()),itemRenderer:(e,n)=>{let{handleClick:i,modifiers:t}=n;return t.matchesPredicate?(0,a.jsx)(B.D,{active:t.active,label:(e=>{if(e===em.bk.ENTITY)return"Category";if(e===em.bk.PLAYER_MESSAGE)return"Player message";if(e===em.bk.DECISION)return"Decision";if(e===em.bk.COUNTER)return"Counter";if(e===em.bk.BOOLEAN)return"True/false";throw Error("Unsupported memory type: ".concat(e))})(e.type),onClick:i,text:e.prompt,multiline:!0},e.id):null},onItemSelect:e=>{let{id:n}=e;return i({memoryId:n,saveValue:""})},children:(0,a.jsx)(ee.$,{className:"text-overflow",disabled:d,fill:!0,endIcon:"caret-down",children:k?k.prompt:"No memory selected"})}),null!==n.saveValue&&(0,a.jsx)(nL.m,{content:"Toggle advanced mode on/off",className:"shrink",children:(0,a.jsx)(ee.A,{disabled:d,icon:"learning",intent:n.isAdvancedMode?eN.J.PRIMARY:eN.J.NONE,onClick:()=>i({isAdvancedMode:!n.isAdvancedMode})})}),(0,a.jsx)(nL.m,{content:"Toggle set/unset memory",className:"shrink",children:(0,a.jsx)(ee.A,{disabled:d,icon:null===n.saveValue?"cube-add":"cube-remove",onClick:()=>i({saveValue:null===n.saveValue?"":null})})})]})}),!d&&void 0===k&&(0,a.jsx)("button",{type:"button",onClick:()=>l(!0),className:T().dynamic([["93b957f6695466ab",[J.wWS]]]),children:"Create a memory..."}),(0,a.jsx)(ik.A,{isOpen:o,onClose:()=>l(!1),createMemory:async e=>{let n=await c({variables:{input:{memory:{...e,storyVersionId:s}}},update:(e,n)=>{if(!n.data||!n.data.createMemory||!n.data.createMemory.memory)return;let i=e.readQuery({query:iN.B4,variables:{storyVersionId:s}});i&&i.storyVersion&&e.writeQuery({query:iN.B4,variables:{storyVersionId:s},data:{...i,storyVersion:{...i.storyVersion,memories:{...i.storyVersion.memories,nodes:[...i.storyVersion.memories.nodes,n.data.createMemory.memory]}}}})}});n&&n.data&&n.data.createMemory&&n.data.createMemory.memory&&(i({memoryId:n.data.createMemory.memory.id}),l(!1))},entities:m.map(e=>{let{term:n}=e;return n})}),void 0!==k&&null===n.saveValue&&(0,a.jsx)("p",{className:T().dynamic([["93b957f6695466ab",[J.wWS]]])+" "+(J.E4k||""),children:"This memory will be unset."}),void 0!==k&&null!==n.saveValue&&!n.isAdvancedMode&&(0,a.jsxs)(a.Fragment,{children:[k.type===em.bk.ENTITY&&(0,a.jsxs)("p",{className:T().dynamic([["93b957f6695466ab",[J.wWS]]])+" "+(J.E4k||""),children:["Make sure to connect this node to the right of a Player node that uses the category"," ",(0,a.jsxs)(nO.Cy,{children:["<",k.entity,">"]}),"."]}),k.type===em.bk.DECISION&&(0,a.jsxs)("div",{className:T().dynamic([["93b957f6695466ab",[J.wWS]]]),children:[(0,a.jsx)("p",{className:T().dynamic([["93b957f6695466ab",[J.wWS]]])+" "+(J.E4k||""),children:"Choose the decision to save to this memory:"}),(0,a.jsxs)(eb.g,{disabled:d,value:n.saveValue||"",onChange:e=>{let{currentTarget:{value:n}}=e;return i({saveValue:n||null})},fill:!0,"aria-label":"Select a decision",children:[(0,a.jsx)("option",{value:"",className:T().dynamic([["93b957f6695466ab",[J.wWS]]]),children:"Select a decision..."}),k.decisions&&k.decisions.map(e=>(0,a.jsx)("option",{value:e,className:T().dynamic([["93b957f6695466ab",[J.wWS]]]),children:e},e))]})]}),k.type===em.bk.COUNTER&&(0,a.jsx)(ip,{disabled:d,type:n.counterChangeType,onTypeChange:e=>i({counterChangeType:e}),value:n.counterChangeValue,onValueChange:e=>i({counterChangeValue:e})}),k.type===em.bk.BOOLEAN&&(0,a.jsxs)("div",{className:T().dynamic([["93b957f6695466ab",[J.wWS]]]),children:[(0,a.jsx)("p",{className:T().dynamic([["93b957f6695466ab",[J.wWS]]])+" "+(J.E4k||""),children:"Choose what to save to this memory:"}),(0,a.jsxs)(im.z,{selectedValue:n.saveValue,onChange:e=>{let{currentTarget:{value:n}}=e;i({saveValue:n})},inline:!0,children:[(0,a.jsx)(nZ.sx,{label:"True",value:"true",style:{marginBottom:0}}),(0,a.jsx)(nZ.sx,{label:"False",value:"false",style:{marginBottom:0}})]})]}),(k.type===em.bk.ENTITY||k.type===em.bk.PLAYER_MESSAGE||k.type===em.bk.BOOLEAN||k.type===em.bk.COUNTER)&&
1(0,a.jsxs)("p",{className:T().dynamic([["93b957f6695466ab",[J.wWS]]])+" "+(J.E4k||""),children:["To get your character to say whatever was saved to this memory, use"," ",(0,a.jsxs)(nO.Cy,{children:["<",k.recallValue,">"]})," ","in a Character node."]})]}),void 0!==k&&null!==n.saveValue&&n.isAdvancedMode&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:T().dynamic([["93b957f6695466ab",[J.wWS]]])+" "+(J.E4k||""),children:[(0,a.jsx)("strong",{className:T().dynamic([["93b957f6695466ab",[J.wWS]]]),children:"Warning!"})," You are using advanced mode."]}),(0,a.jsx)(K,{defaultValue:n.saveValue,disabled:!1,name:"",onBlur:e=>i({saveValue:e}),placeholder:""}),(0,a.jsxs)("p",{className:T().dynamic([["93b957f6695466ab",[J.wWS]]])+" "+(J.E4k||""),children:["To use the saved value, use"," ",(0,a.jsxs)(nO.Cy,{children:["<",k.recallValue,">"]})," ","in a Character node."]})]}),(0,a.jsx)(T(),{id:"93b957f6695466ab",dynamic:[J.wWS],children:"p.__jsx-style-dynamic-selector{margin-top:5px;margin-bottom:5px}p.__jsx-style-dynamic-selector:last-child{margin-bottom:0}p.__jsx-style-dynamic-selector,p.__jsx-style-dynamic-selector>*.__jsx-style-dynamic-selector{font-size:.875em}.popover.__jsx-style-dynamic-selector .min-width{min-width:0px}.popover.__jsx-style-dynamic-selector .".concat(J.wWS,"{width:100%}.popover.__jsx-style-dynamic-selector .shrink{flex:0}.popover.__jsx-style-dynamic-selector button.text-overflow>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.__jsx-style-dynamic-selector{background:none;color:#396;border:none;padding:0;cursor:pointer;margin:5px 0}")})]})},iS={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGraphNodePropertiesMemory"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesMemoryByGraphNodeIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updatePropertiesMemory"},name:{kind:"Name",value:"updateGraphNodePropertiesMemoryByGraphNodeId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"properties"},name:{kind:"Name",value:"graphNodePropertiesMemory"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesMemory"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesMemory"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesMemory"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"saveValue"}},{kind:"Field",name:{kind:"Name",value:"isAdvancedMode"}},{kind:"Field",name:{kind:"Name",value:"counterChangeType"}},{kind:"Field",name:{kind:"Name",value:"counterChangeValue"}}]}}]},ih=(0,t.memo)(e=>{let{id:n,properties:i,onStartEdge:t,disabled:d}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)($,{nodeId:n,title:"Memory",icon:"/static/images/node-icons/icon-node-generationnode.svg",backgroundColor:"linear-gradient(to left, var(--memory-bg-1), var(--memory-bg-2))"}),(0,a.jsx)(E.s,{mutation:iS,children:e=>(0,a.jsx)(iv,{disabled:d,properties:i,updateProperties:i=>e({variables:{input:{graphNodeId:n,graphNodePropertiesMemoryPatch:i}}})})}),(0,a.jsx)(H,{id:n,type:"left"}),(0,a.jsx)(H,{id:n,type:"right",onStartEdge:t})]})}),ig=(0,t.memo)(e=>{let{id:n,onStartEdge:i}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)($,{nodeId:n,icon:"/static/images/node-icons/icon-node-sceneentrynode.svg",backgroundColor:"linear-gradient(to left, var(--darker-grey), var(--black))",noProperties:!0}),(0,a.jsx)(H,{id:n,type:"left"}),(0,a.jsx)(H,{id:n,type:"right",onStartEdge:i})]})});var iy=i(60114),iF=i.n(iy),ix=i(41852);let ib=nV.l.ofType(),iC=(e,n)=>{let{handleClick:i,modifiers:t}=n;if(!t.matchesPredicate)return null;let d=e.displayName;return e.language&&(d+=" - ".concat(e.language)),(0,a.jsx)(B.D,{active:t.active,disabled:t.disabled,label:e.service,onClick:i,text:d},e.id)},iG=(e,n,i,a)=>{let t=n.displayName.toLowerCase(),d=e.toLowerCase();return a?t===d:"".concat(n.displayName," - ").concat(n.language).toLowerCase().includes(d)},ij=e=>{let{disabled:n=!1,voiceId:i,onChangeVoiceId:d,buttonProps:o,setVoiceSupports:l,storyId:s}=e,{data:r,loading:m}=(0,ix.hq)({variables:{storyId:s}}),c=[{id:"",displayName:"None",gender:"",language:"",service:"",__typename:"Voice",supportsPitch:!1,supportsRate:!1,supportsVolume:!1,supportsWhispering:!1},...(null==r?void 0:r.voices)||[]],k=c.find(e=>e.id===i||"");return(0,t.useEffect)(()=>
1{k&&l({supportsPitch:k.supportsPitch,supportsRate:k.supportsRate,supportsVolume:k.supportsVolume,supportsWhispering:k.supportsWhispering})},[l,k]),(0,a.jsxs)("div",{className:T().dynamic([["b37f9e38c96bbfe0",[J.kKu,J.wWS,J.kKu]]])+" voice",children:[(0,a.jsx)(ib,{disabled:n,items:c,itemPredicate:iG,itemRenderer:iC,onItemSelect:e=>{d(e.id||null)},popoverProps:{captureDismiss:!0},children:(0,a.jsx)(ee.$,{disabled:n,fill:!0,size:"large",endIcon:"caret-down",loading:m,alignText:"left",...o,children:k?"".concat(k.displayName," - ").concat(k.language):"None"})}),(0,a.jsx)(T(),{id:"b37f9e38c96bbfe0",dynamic:[J.kKu,J.wWS,J.kKu],children:".voice.__jsx-style-dynamic-selector{width:100%}.voice.__jsx-style-dynamic-selector .".concat(J.kKu,",.voice.__jsx-style-dynamic-selector .").concat(J.wWS,"{display:inline!important}.voice.__jsx-style-dynamic-selector .").concat(J.kKu,"{width:100%}")})]})};var iI=i(26299),iP=i(15523);let iT=e=>{let{behaviour:n,filename:i,index:d,loop:o,volume:l,stopPlaying:s,onChangeBehaviour:r,onChangeLoop:m,onChangeVolume:c,onChangeStopPlaying:k,onDelete:u,onOpenGallery:p}=e,[N,v]=(0,t.useState)(l);return(0,t.useEffect)(()=>{v(l)},[l]),(0,a.jsxs)("div",{className:"jsx-c90a061777a0f5d1 audio-track",children:[(0,a.jsxs)("div",{className:"jsx-c90a061777a0f5d1 "+"text ".concat(J.E4k),children:["Track ",d+1,":"]}),(0,a.jsx)("input",{value:i||"",disabled:!0,className:"jsx-c90a061777a0f5d1 "+(J.bOq||"")}),(0,a.jsx)(ee.$,{icon:"media",style:{marginLeft:"5px"},onClick:p,"aria-label":"Open Gallery"}),(0,a.jsxs)(Q.t,{style:{marginLeft:"5px"},children:[!s&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(nL.m,{content:"What happens if this track is already playing?",position:eH.yX.TOP,children:(0,a.jsxs)(eb.g,{value:n,onChange:e=>r(e.currentTarget.value),"aria-label":"Behaviour when track is already playing",children:[(0,a.jsx)("option",{value:"continue",className:"jsx-c90a061777a0f5d1",children:"Continue"}),(0,a.jsx)("option",{value:"restart",className:"jsx-c90a061777a0f5d1",children:"Restart"})]})}),(0,a.jsx)(nL.m,{position:eH.yX.TOP,content:"Should this track loop?",children:(0,a.jsx)(ee.$,{icon:"refresh",intent:o?eN.J.PRIMARY:eN.J.NONE,onClick:()=>m(!o),"aria-label":o?"Toggle loop off":"Toggle loop on"})}),(0,a.jsx)(e$.A,{position:eH.yX.TOP,content:(0,a.jsx)("div",{style:{padding:"10px 30px"},className:"jsx-c90a061777a0f5d1",children:(0,a.jsx)(nQ.A,{min:0,max:1,onChange:v,onRelease:e=>c(e),stepSize:.01,value:N})}),children:(0,a.jsx)(nL.m,{content:"Adjust volume",position:eH.yX.TOP,children:(0,a.jsx)(ee.$,{icon:"volume-up","aria-label":"Adjust volume"})})})]}),(0,a.jsx)(nL.m,{content:"Should this track be stopped?",position:eH.yX.TOP,children:(0,a.jsx)(ee.$,{icon:"stop",intent:s?eN.J.PRIMARY:eN.J.NONE,onClick:()=>k(!s),"aria-label":"Stop"})})]}),(0,a.jsx)(ee.$,{icon:"delete",style:{marginLeft:"5px"},onClick:u,intent:eN.J.DANGER,variant:"minimal","aria-label":"Delete"}),(0,a.jsx)(T(),{id:"c90a061777a0f5d1",children:".audio-track.jsx-c90a061777a0f5d1{display:flex;align-items:center;margin:5px 0}.text.jsx-c90a061777a0f5d1{width:70px}input.jsx-c90a061777a0f5d1{flex:1}"})]})},iD=e=>{let{disabled:n,audioTracks:i,stopAllAudio:d,onCreateTrack:o,onUpdateTrack:l,onDeleteTrack:s,onOpenGallery:r,onChangeStopAllAudio:m}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"jsx-1085457769b7daa6 audio-info",children:[(0,a.jsxs)("h4",{className:"jsx-1085457769b7daa6",children:["Audio"," ",(0,a.jsx)(nL.m,{content:"Audio tracks can be added to add sound to your stories like background noise or effects!",children:(0,a.jsx)(ee.$,{variant:"minimal",size:"small",icon:"help","aria-label":"Help"})})]}),(0,a.jsx)(nZ.Sc,{checked:d,onChange:()=>m(!d),label:"Stop all currently playing audio?",disabled:n})]}),i.map((e,n)=>{var i,a;return(0,t.createElement)(iT,{...e,key:n,index:n,filename:null!=(a=null==(i=e.media)?void 0:i.filename)?a:"",onChangeBehaviour:e=>l(n,{behaviour:e}),onChangeLoop:e=>l(n,{loop:e}),onChangeVolume:e=>l(n,{volume:e}),onChangeStopPlaying:e=>l(n,{stopPlaying:e}),onDelete:()=>s(n),onOpenGallery:()=>r(n)})}),!n&&(0,a.jsx)(ee.$,{icon:"add",onClick:()=>{o()},children:"Add Track"}),(0,a.jsx)(T(),{id:"1085457769b7daa6",children:".visuals-info.jsx-1085457769b7daa6{margin-bottom:10px}"})]})};var iM=function(e){return e.Contain="contain",e.Cover="cover",e}({}),iR=function(e){return e.Character="character",e.Narrator="narrator",e.Thought="thought",e.Tech="tech",e}({}
1),iE=function(e){return e.None="none",e.TopLeft="top-left",e.Top="top",e.TopRight="top-right",e.BottomLeft="bottom-left",e.Bottom="bottom",e.BottomRight="bottom-right",e.Left="left",e.Right="right",e}({});let iw=e=>{let{disabled:n,type:i,tailPosition:t,onChangeTailPosition:d,onChangeType:o,onReset:l}=e;return(0,a.jsxs)("div",{className:"jsx-b7f413f7ec4387a8",children:[(0,a.jsxs)("h4",{className:"jsx-b7f413f7ec4387a8",children:["Bubble"," ",(0,a.jsx)(nL.m,{content:"You can control how the message bubble appears on the screen.",children:(0,a.jsx)(ee.$,{variant:"minimal",size:"small",icon:"help","aria-label":"Help"})})]}),(0,a.jsxs)("div",{className:"jsx-b7f413f7ec4387a8 controls",children:[(0,a.jsx)(nA.g,{inline:!0,label:"Bubble type",labelFor:"bubble-type",children:(0,a.jsxs)(eb.g,{id:"bubble-type",disabled:n,value:i||iR.Character,onChange:e=>{let{currentTarget:{value:n}}=e;return o(n===iR.Character?null:n)},"aria-label":"Bubble type",children:[(0,a.jsx)("option",{value:iR.Character,className:"jsx-b7f413f7ec4387a8",children:"Speech"}),(0,a.jsx)("option",{value:iR.Narrator,className:"jsx-b7f413f7ec4387a8",children:"Narration"}),(0,a.jsx)("option",{value:iR.Thought,className:"jsx-b7f413f7ec4387a8",children:"Thought"}),(0,a.jsx)("option",{value:iR.Tech,className:"jsx-b7f413f7ec4387a8",children:"Tech"})]})}),(0,a.jsx)(nA.g,{inline:!0,label:"Bubble tail position",labelFor:"bubble-tail",children:(0,a.jsxs)(eb.g,{id:"bubble-tail",disabled:n,value:t||iE.None,onChange:e=>{let{currentTarget:{value:n}}=e;return d(n===iE.None?null:n)},"aria-label":"Bubble tail position",children:[(0,a.jsx)("option",{value:iE.None,className:"jsx-b7f413f7ec4387a8",children:"None"}),(0,a.jsx)("option",{value:iE.TopLeft,className:"jsx-b7f413f7ec4387a8",children:"Top-left"}),(0,a.jsx)("option",{value:iE.Top,className:"jsx-b7f413f7ec4387a8",children:"Top"}),(0,a.jsx)("option",{value:iE.TopRight,className:"jsx-b7f413f7ec4387a8",children:"Top-right"}),(0,a.jsx)("option",{value:iE.BottomLeft,className:"jsx-b7f413f7ec4387a8",children:"Bottom-left"}),(0,a.jsx)("option",{value:iE.Bottom,className:"jsx-b7f413f7ec4387a8",children:"Bottom"}),(0,a.jsx)("option",{value:iE.BottomRight,className:"jsx-b7f413f7ec4387a8",children:"Bottom-right"}),(0,a.jsx)("option",{value:iE.Left,className:"jsx-b7f413f7ec4387a8",children:"Left"}),(0,a.jsx)("option",{value:iE.Right,className:"jsx-b7f413f7ec4387a8",children:"Right"})]})}),!n&&(0,a.jsx)(ee.$,{icon:"reset",onClick:l,children:"Reset"})]}),(0,a.jsx)(T(),{id:"b7f413f7ec4387a8",children:".controls.jsx-b7f413f7ec4387a8{display:flex;align-items:flex-start}.controls.jsx-b7f413f7ec4387a8>*{margin-right:10px;margin-bottom:0}"})]})},iB=e=>{let{filename:n,filteredIndex:i,isResizing:t,onChangeResizeMode:d,onDelete:o,onOpenGallery:l,onResize:s,onResetSize:r,resizeMode:m,disabled:c}=e;return(0,a.jsxs)("div",{className:"jsx-f844cd7dbe469029 layer",children:[(0,a.jsxs)("div",{className:"jsx-f844cd7dbe469029 "+"text ".concat(J.E4k),children:["Layer ",i+1,":"]}),(0,a.jsx)("input",{value:n||"",disabled:!0,className:"jsx-f844cd7dbe469029 "+(J.bOq||"")}),(0,a.jsx)(ee.$,{icon:"media",style:{marginLeft:"5px"},onClick:l,"aria-label":"Open Gallery",disabled:c}),(0,a.jsxs)(Q.t,{style:{marginLeft:"5px"},children:[(0,a.jsxs)(eb.g,{value:m,onChange:e=>d(e.currentTarget.value),"aria-label":"Choose how to resize this layer",disabled:c,children:[(0,a.jsx)("option",{value:iM.Contain,className:"jsx-f844cd7dbe469029",children:"Contain"}),(0,a.jsx)("option",{value:iM.Cover,className:"jsx-f844cd7dbe469029",children:"Cover"})]}),(0,a.jsx)(nL.m,{position:eH.yX.TOP,content:"Toggle to edit position of this layer",children:(0,a.jsx)(ee.$,{icon:"edit",intent:t?eN.J.PRIMARY:eN.J.NONE,onClick:s,"aria-label":"Edit",disabled:c})}),(0,a.jsx)(nL.m,{position:eH.yX.TOP,content:"Reset layer position to full screen",children:(0,a.jsx)(ee.$,{icon:"reset",onClick:r,"aria-label":"Reset position to full screen",disabled:c})})]}),(0,a.jsx)(ee.$,{icon:"delete",style:{marginLeft:"5px"},onClick:o,intent:eN.J.DANGER,variant:"minimal","aria-label":"Delete",disabled:c}),(0,a.jsx)(T(),{id:"f844cd7dbe469029",children:".layer.jsx-f844cd7dbe469029{display:flex;align-items:center;margin:5px 0}.text.jsx-f844cd7dbe469029{width:70px}input.jsx-f844cd7dbe469029{flex:1}"})]})},iA=e=>{let{disabled:n,activeResizingImageLayerIndex:i,animationIn:t,animationOut:d,imageLayers:o,onCreateImageLayer:l,onUpdateImageLayer:s,onDeleteImageLayer:r,onChangeActiveResizingImageLayerIndex:m,onChangeAnimationIn:c,onChangeAnimationOut:k,onOpenGallery:u}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"jsx-5e8b4764be2a0aa0 visuals-info",children:(0,a.jsxs)("h4",{className:"jsx-5e8b4764be2a0aa0",children:["Visuals"," ",(0,a.jsx)(nL.m,{content:(0,a.jsx)("span",{className:"jsx-5e8b4764be2a0aa0",children:"Images can be added as layers, for example, backgrounds, characters, or foreground props!"}),children:(0,a.jsx)(ee.$,{variant:"minimal",size:"small",icon:"help","aria-label":"Help"})})]})}),(0,a.jsxs)("section",{className:"jsx-5e8b4764be2a0aa0",children:[(0,a.jsxs)("h6",{className:"jsx-5e8b4764be2a0aa0",children:["Landscape Layers"," ",(0,a.jsx)(nL.m,{content:(0,a.jsxs)("span",{className:"jsx-5e8b4764be2a0aa0",children:["Landscape layers are displayed on any screen with a width greater than its he
1ight.",(0,a.jsx)("br",{className:"jsx-5e8b4764be2a0aa0"}),"For example: desktops, laptops, and tablets."]}),children:(0,a.jsx)(ee.$,{variant:"minimal",size:"small",icon:"help","aria-label":"Help"})})]}),o.filter(e=>"landscape"===e.orientation).length<=0&&o.filter(e=>"portrait"===e.orientation).length>0&&(0,a.jsx)("p",{className:"jsx-5e8b4764be2a0aa0 warning",children:"No landscape layers added. Will display portrait layers on all screen sizes."}),o.filter(e=>"landscape"===e.orientation).map((e,t)=>{var d,o;return(0,a.jsx)(iB,{filteredIndex:t,isResizing:i===e.index,filename:null!=(o=null==(d=e.media)?void 0:d.filename)?o:null,onChangeResizeMode:n=>s(e.index,{resizeMode:n}),onDelete:()=>r(e.index),onOpenGallery:()=>u(e.index),onResetSize:()=>s(e.index,{points:[[0,0],[1,1]]}),onResize:()=>m(i===e.index?null:e.index),resizeMode:e.resizeMode,disabled:n},e.index)}),!n&&(0,a.jsx)(ee.$,{icon:"add",onClick:()=>{l("landscape")},style:{marginTop:"10px"},children:"Add Landscape Layer"})]}),(0,a.jsxs)("section",{className:"jsx-5e8b4764be2a0aa0",children:[(0,a.jsxs)("h6",{className:"jsx-5e8b4764be2a0aa0",children:["Portrait Layers"," ",(0,a.jsx)(nL.m,{content:(0,a.jsxs)("span",{className:"jsx-5e8b4764be2a0aa0",children:["Portrait layers are displayed on any screen with a width less than its height.",(0,a.jsx)("br",{className:"jsx-5e8b4764be2a0aa0"}),"For example: mobile phones."]}),children:(0,a.jsx)(ee.$,{variant:"minimal",size:"small",icon:"help","aria-label":"Help"})})]}),o.filter(e=>"portrait"===e.orientation).length<=0&&o.filter(e=>"landscape"===e.orientation).length>0&&(0,a.jsx)("p",{className:"jsx-5e8b4764be2a0aa0 warning",children:"No portrait layers added. Will display landscape layers on all screen sizes."}),o.filter(e=>"portrait"===e.orientation).map((e,t)=>{var d,o;return(0,a.jsx)(iB,{filteredIndex:t,isResizing:i===e.index,filename:null!=(o=null==(d=e.media)?void 0:d.filename)?o:null,onChangeResizeMode:n=>s(e.index,{resizeMode:n}),onDelete:()=>r(e.index),onOpenGallery:()=>u(e.index),onResetSize:()=>s(e.index,{points:[[0,0],[1,1]]}),onResize:()=>m(i===e.index?null:e.index),resizeMode:e.resizeMode,disabled:n},e.index)}),!n&&(0,a.jsx)(ee.$,{icon:"add",onClick:()=>{l("portrait")},style:{marginTop:"10px"},children:"Add Portrait Layer"})]}),(0,a.jsxs)("section",{className:"jsx-5e8b4764be2a0aa0 animations",children:[(0,a.jsx)(nA.g,{inline:!0,label:"Animation in",labelFor:"animation-in",children:(0,a.jsxs)(eb.g,{id:"animation-in",disabled:n,value:t||"",onChange:e=>{let{currentTarget:{value:n}}=e;return c(n||null)},"aria-label":"Choose how to animate in",children:[(0,a.jsx)("option",{value:"",className:"jsx-5e8b4764be2a0aa0",children:"Appear (default)"}),(0,a.jsx)("option",{value:"bump",className:"jsx-5e8b4764be2a0aa0",children:"Bump"}),(0,a.jsx)("option",{value:"fade-in",className:"jsx-5e8b4764be2a0aa0",children:"Fade in"}),(0,a.jsx)("option",{value:"slide-left",className:"jsx-5e8b4764be2a0aa0",children:"Slide from left"}),(0,a.jsx)("option",{value:"slide-right",className:"jsx-5e8b4764be2a0aa0",children:"Slide from right"}),(0,a.jsx)("option",{value:"slide-top",className:"jsx-5e8b4764be2a0aa0",children:"Slide from top"}),(0,a.jsx)("option",{value:"slide-bottom",className:"jsx-5e8b4764be2a0aa0",children:"Slide from bottom"})]})}),(0,a.jsx)(nA.g,{inline:!0,label:"Animation out",labelFor:"animation-out",children:(0,a.jsxs)(eb.g,{id:"animation-out",disabled:n,value:d||"",onChange:e=>{let{currentTarget:{value:n}}=e;return k(n||null)},"aria-label":"Choose how to animate out",children:[(0,a.jsx)("option",{value:"",className:"jsx-5e8b4764be2a0aa0",children:"Appear (default)"}),(0,a.jsx)("option",{value:"bump",className:"jsx-5e8b4764be2a0aa0",children:"Bump"}),(0,a.jsx)("option",{value:"fade-out",className:"jsx-5e8b4764be2a0aa0",children:"Fade out"}),(0,a.jsx)("option",{value:"slide-left",className:"jsx-5e8b4764be2a0aa0",children:"Slide to left"}),(0,a.jsx)("option",{value:"slide-right",className:"jsx-5e8b4764be2a0aa0",children:"Slide to right"}),(0,a.jsx)("option",{value:"slide-top",className:"jsx-5e8b4764be2a0aa0",children:"Slide to top"}),(0,a.jsx)("option",{value:"slide-bottom",className:"jsx-5e8b4764be2a0aa0",children:"Slide to bottom"})]})})]}),(0,a.jsx)(T(),{id:"5e8b4764be2a0aa0",children:"h6.jsx-5e8b4764be2a0aa0{margin-bottom:10px}.visuals-info.jsx-5e8b4764be2a0aa0{margin-bottom:10px}.animations.jsx-5e8b4764be2a0aa0{display:flex}.animations.jsx-5e8b4764be2a0aa0>*{margin-right:10px;margin-bottom:0}input.jsx-5e8b4764be2a0aa0{flex:1}section.jsx-5e8b4764be2a0aa0{margin:10px 0;padding:10px;background:var(--accent-2)}"})]})};var iL=i(37614),iO=i(64745),iV=i.n(iO);let i_=e=>{let{disabled:n=!1,children:i,points:d,onDragPoints:o,onStopPoints:l}=e,s=t.useRef(null),r=t.useRef(null);return(0,a.jsxs)(a.Fragment,{children:[i,!n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g(),{nodeRef:s,onDrag:(e,n
1)=>{let{deltaX:i,deltaY:a}=n;o([d[0]+i,d[1],d[2]+a])},onStop:(e,n)=>{let{deltaX:i,deltaY:a}=n;l([d[0]+i,d[1],d[2]+a])},position:{x:d[0]-5,y:d[2]-5},children:(0,a.jsx)("div",{ref:s,className:"jsx-6560e2e38e95e242 resize-handle"})},"resizableHandleTopLeft"),(0,a.jsx)(g(),{nodeRef:r,onDrag:(e,n)=>{let{deltaX:i,deltaY:a}=n;o([d[0],d[1]+i,d[2]+a])},onStop:(e,n)=>{let{deltaX:i,deltaY:a}=n;l([d[0],d[1]+i,d[2]+a])},position:{x:d[1]-5,y:d[2]-5},children:(0,a.jsx)("div",{ref:r,className:"jsx-6560e2e38e95e242 resize-handle"})},"resizableHandleTopRight")]}),(0,a.jsx)(T(),{id:"6560e2e38e95e242",children:".resize-handle.jsx-6560e2e38e95e242{top:0;left:0;pointer-events:all;position:absolute;width:10px;height:10px;border-radius:5px;background:lightblue;box-sizing:border-box;cursor:se-resize}"})]})},iz="rgb(240, 255, 250)",iU="rgb(20, 20, 20)",iW="black",i$="rgb(240, 255, 250)",iH="rgb(20, 20, 20)",iY="black",iJ="rgb(240, 255, 250)",iK="rgb(20, 20, 20)",iX="black",iq="lightblue",iZ="rgb(20, 20, 20)",iQ="black",i0={[iE.TopLeft]:[0,15,15,0,30,15],[iE.Top]:[0,15,15,0,30,15],[iE.TopRight]:[0,15,15,0,30,15],[iE.Right]:[15,0,30,15,15,30],[iE.BottomLeft]:[0,15,15,30,30,15],[iE.Bottom]:[0,15,15,30,30,15],[iE.BottomRight]:[0,15,15,30,30,15],[iE.Left]:[15,0,0,15,15,30]},i1=e=>{let{position:n,style:i}=e;if(null===n||n===iE.None||i===iR.Narrator)return null;if(null===i||i===iR.Character){let e,i,t,d,[o,l,s,r,m,c]=i0[n];return n===iE.TopLeft?(e=-15,d=10):n===iE.Top?(e=-15,d="calc(50% - 15px)"):n===iE.TopRight?(e=-15,i=10):n===iE.BottomLeft?(t=-15,d=10):n===iE.Bottom?(t=-15,d="calc(50% - 15px)"):n===iE.BottomRight?(t=-15,i=10):n===iE.Left?(e="calc(50% - 15px)",d=-15):n===iE.Right&&(e="calc(50% - 15px)",i=-15),(0,a.jsxs)("svg",{height:"30",width:"30",fill:iz,style:{position:"absolute",top:e,right:i,bottom:t,left:d},children:[(0,a.jsx)("polygon",{points:"".concat(o,",").concat(l," ").concat(s,",").concat(r," ").concat(m,",").concat(c)}),(0,a.jsx)("path",{d:"M ".concat(o," ").concat(l," L ").concat(s," ").concat(r," L ").concat(m," ").concat(c),stroke:iU})]})}if(i===iR.Tech){let e,i,t,d,[o,l,s,r,m,c,k,u,p,N,v,S,h,g]=[16,0,12,25,19.5,22,16,45,28,12,20.5,15,24,0],y=0;return n===iE.TopLeft?(e=-45,d=0,y=180):n===iE.Top?(e=-45,d="calc(50% - 22.5px)",y=180):n===iE.TopRight?(e=-45,i=0,y=180):n===iE.BottomLeft?(t=-45,d=0):n===iE.Bottom?(t=-45,d="calc(50% - 22.5px)"):n===iE.BottomRight?(t=-45,i=0):n===iE.Left?(e="calc(50% - 22.5px)",d=-45,y=90):n===iE.Right&&(e="calc(50% - 22.5px)",i=-45,y=270),(0,a.jsx)("svg",{height:"45",width:"45",fill:iq,style:{position:"absolute",top:e,right:i,bottom:t,left:d},children:(0,a.jsxs)("g",{transform:"rotate(".concat(y,", 22.5, 22.5)"),children:[(0,a.jsx)("polygon",{points:"".concat(o,",").concat(l," ").concat(s,",").concat(r," ").concat(m,",").concat(c," ").concat(k,",").concat(u," ").concat(p,",").concat(N," ").concat(v,",").concat(S," ").concat(h,",").concat(g)}),(0,a.jsx)("path",{d:"M ".concat(o," ").concat(l," L ").concat(s," ").concat(r," L ").concat(m," ").concat(c," L ").concat(k," ").concat(u," L ").concat(p," ").concat(N," L ").concat(v," ").concat(S," L ").concat(h," ").concat(g),stroke:iZ})]})})}if(i===iR.Thought){let e,i,t,d,o=0,l=0;return n===iE.TopLeft?(e=-20,d=0,o=-5,l=-10):n===iE.Top?(e=-20,d="calc(50% - 15px)",l=-10):n===iE.TopRight?(e=-20,i=0,o=5,l=-10):n===iE.BottomLeft?(t=-20,d=0,o=-5,l=10):n===iE.Bottom?(t=-20,d="calc(50% - 15px)",l=10):n===iE.BottomRight?(t=-20,i=0,o=5,l=10):n===iE.Left?(e="calc(50% - 15px)",d=-20,o=-10):n===iE.Right&&(e="calc(50% - 15px)",i=-20,o=10),(0,a.jsxs)("svg",{height:"30",width:"30",fill:iJ,style:{position:"absolute",top:e,right:i,bottom:t,left:d},children:[(0,a.jsx)("circle",{cx:"15",cy:"15",r:"7.5",stroke:iK,strokeWidth:1}),(0,a.jsx)("circle",{cx:15+o,cy:15+l,r:"5",stroke:iK,strokeWidth:1})]})}return null},i5=(e,n)=>n?[[Math.max(n[0][0],e[0][0]),Math.max(n[0][1],e[0][1])],[Math.min(n[1][0],e[1][0]),Math.min(n[1][1],e[1][1])]]:e,i4=e=>{let{disabled:n=!1,children:i,points:d,bounds:o,onDragPoints:l,onStopPoints:s}=e,r=t.useRef(null),m=t.useRef(null),[c,k]=d;return(0,a.jsxs)(a.Fragment,{children:[i,!n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g(),{nodeRef:r,onDrag:(e,n
1)=>{let{x:i,y:a}=n;l(i5([[i,a],k],o))},onStop:(e,n)=>{let{x:i,y:a}=n;s(i5([[i,a],k],o))},position:{x:c[0],y:c[1]},children:(0,a.jsx)("div",{ref:r,className:"jsx-ba85313f8551386e resize-handle"})},"resizableHandleTopLeft"),(0,a.jsx)(g(),{nodeRef:m,onDrag:(e,n)=>{let{x:i,y:a}=n;l(i5([c,[i,a]],o))},onStop:(e,n)=>{let{x:i,y:a}=n;s(i5([c,[i,a]],o))},position:{x:k[0],y:k[1]},children:(0,a.jsx)("div",{ref:m,className:"jsx-ba85313f8551386e resize-handle"})},"resizableHandleBottomRight")]}),(0,a.jsx)(T(),{id:"ba85313f8551386e",children:".resize-handle.jsx-ba85313f8551386e{top:-5px;left:-5px;pointer-events:all;position:absolute;width:10px;height:10px;border-radius:5px;background:lightblue;box-sizing:border-box;cursor:se-resize;z-index:10}"})]})},i3=e=>{let{isActive:n,points:i,onChangePoints:d,resizeMode:o,url:l}=e,s=(0,t.useRef)(null),[r,m]=(0,t.useState)(i);return(0,t.useEffect)(()=>{m(i)},[i]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i4,{disabled:!n,points:r,onDragPoints:m,onStopPoints:d,children:(0,a.jsx)(h.DraggableCore,{nodeRef:s,disabled:!n,onDrag:(e,n)=>{let{deltaX:i,deltaY:a}=n;return m([[r[0][0]+i,r[0][1]+a],[r[1][0]+i,r[1][1]+a]])},onStop:()=>d(r),children:(0,a.jsx)("div",{ref:s,style:{width:r[1][0]-r[0][0],height:r[1][1]-r[0][1],top:r[0][1],left:r[0][0]},className:"jsx-efaba985db8d49fc "+(M()("image-layer",{active:n})||""),children:(0,a.jsx)("img",{alt:"Background for this panel.",src:l,className:"jsx-efaba985db8d49fc "+(M()("image-layer-image",{cover:o===iM.Cover,contain:o===iM.Contain})||"")})})})}),(0,a.jsx)(T(),{id:"efaba985db8d49fc",children:".image-layer.jsx-efaba985db8d49fc{position:absolute;box-sizing:border-box;pointer-events:none}.image-layer.active.jsx-efaba985db8d49fc{background:rgba(0,0,0,.1);border:1px solid rgba(0,0,0,.2);pointer-events:all;cursor:move}.image-layer-image.jsx-efaba985db8d49fc{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;user-select:none;object-fit:cover}.image-layer-image.contain.jsx-efaba985db8d49fc{object-fit:contain}.image-layer-image.cover.jsx-efaba985db8d49fc{object-fit:cover}"})]})},i6=[.17,.83,.08],i2=e=>{let{activeImageLayer:n,disabled:i,bubblePoints:d,bubbleTailPosition:o,bubbleStyle:l,imageLayers:s,onChangeBubblePoints:r,onChangeImageLayerPoints:m,replies:c,previewOrientation:k}=e,[u,p]=(0,t.useState)(0),[N,v]=(0,t.useState)(i6),[S,h]=(0,t.useState)({width:1,height:1});(0,t.useEffect)(()=>{v(((e,n)=>[Math.floor(e[0]*n.width),Math.floor(e[1]*n.width),Math.floor(e[2]*n.height)])(d||i6,S))},[d,S]);let g=(0,t.useCallback)(e=>{r(((e,n)=>[e[0]/n.width,e[1]/n.width,e[2]/n.height])(e,S))},[r,S]);return(0,a.jsxs)("div",{className:T().dynamic([["ae586387b2244308",[iz,iU,iW,iV().style.fontFamily,iJ,iK,iX,i$,iH,iY,iq,iZ,iQ]]])+" preview",children:[(0,a.jsxs)("header",{className:T().dynamic([["ae586387b2244308",[iz,iU,iW,iV().style.fontFamily,iJ,iK,iX,i$,iH,iY,iq,iZ,iQ]]]),children:[(0,a.jsx)("div",{className:T().dynamic([["ae586387b2244308",[iz,iU,iW,iV().style.fontFamily,iJ,iK,iX,i$,iH,iY,iq,iZ,iQ]]]),children:"Preview"}),c.length>0&&(0,a.jsxs)("div",{className:T().dynamic([["ae586387b2244308",[iz,iU,iW,iV().style.fontFamily,iJ,iK,iX,i$,iH,iY,iq,iZ,iQ]]])+" reply-chooser",children:[(0,a.jsxs)("div",{className:T().dynamic([["ae586387b2244308",[iz,iU,iW,iV().style.fontFamily,iJ,iK,iX,i$,iH,iY,iq,iZ,iQ]]])+" count",children:[u+1," / ",c.length]}),(0,a.jsxs)(Q.t,{children:[(0,a.jsx)(ee.$,{icon:"arrow-left",size:"small",onClick:()=>p((u-1<0?c.length-1:u-1)%c.length),disabled:1===c.length,"aria-label":"Previous reply"}),(0,a.jsx)(ee.$,{icon:"arrow-right",size:"small",onClick:()=>p((u+1)%c.length),disabled:1===c.length,"aria-label":"Next reply"})]})]})]}),(0,a.jsx)(iL.P,{onResize:e=>{let n=e[0];h({width:n.contentRect.width,height:n.contentRect.height})},children:(0,a.jsxs)("div",{className:T().dynamic([["ae586387b2244308",[iz,iU,iW,iV().style.fontFamily,iJ,iK,iX,i$,iH,iY,iq,iZ,iQ]]])+" "+(M()("preview-window",{vertical:"portrait"===k,horizontal:"landscape"===k})||""),children:[(s.some(e=>e.orientation===k)?s.filter(e=>e.orientation===k):s).map(e=>e.media?(0,a.jsx)(i3,{isActive:e.index===n,onChangePoints:n=>m(e.index,((e,n)=>[[e[0][0]/n.width,e[0][1]/n.height],[e[1][0]/n.width,e[1][1]/n.height]])(n,S)),points:((e,n)=>[[Math.floor(e[0][0]*n.width),Math.floor(e[0][1]*n.height)],[Math.floor(e[1][0]*n.width),Math.floor(e[1][1]*n.height)]])(e.points,S),resizeMode:e.resizeMode,url:e.media.file.url},e.index):null),c.length>0&&(0,a.jsx)(i_,{disabled:i,points:N,onDragPoints:v,onStopPoints:g,children:(0,a.jsxs)("div",{style:{width:N[1]-N[0],top:N[2],left:N[0]},className:T().dynamic([["ae586387b2244308",[iz,iU,iW,iV().style.fontFamily,iJ,iK,iX,i$,iH,iY,iq,iZ,iQ]]])+" "+(M()("bubble",{"style-narrator":l===iR.Narrator,"style-thought":l===iR.Thought,"style-tech":l===iR.Tech})||""),children:[c[u],(0,a.jsx)(i1,{position:o,style:l})]})})]})}),(0,a.jsx)(T(),{id:"ae586387b2244308",dynamic:[iz,iU,iW,iV().style.fontFamily,iJ,iK,iX,i$,iH,iY,iq,iZ,iQ],children:".preview.__jsx-style-dynamic-selector{border-left:1px solid var(--section-border-color);display:flex;flex-direction:column;background:var(--darker-grey)}.preview.__jsx-style-dynamic-selector header.__jsx-style-dynamic-selector{background:var(--section-color);border-top:1px solid var(--section-border-color);border-bottom:1px solid var(--section-border-color);padding:5px 10px;display:flex;justify-content:space-between;align-items:center}.reply-chooser.__jsx-style-dynamic-selector{display:flex;align-items:center}.reply-chooser.__jsx-style-dynamic-selector .count.__jsx-style-dynamic-selector{margin-left:8px;margin-right:5px}.preview-window.__jsx-style-dynamic-selector{background:var(--grey);position:relative;overflow:hidden;aspect-ratio:16/9;height:80vh;max-width:60vw}.preview-window.vertical.__jsx-style-dynamic-selector{aspect-ratio:9/16;height:80vh;max-width:unset}.preview-window.horizontal.__jsx-style-dynamic-selector{aspect-ratio:16/9;max-height:380px}.bubble.__jsx-style-dynamic-selector{background-color:".concat(iz,";border:1px solid ").concat(iU,";border-radius:10px;color:").concat(iW,";font-family:").concat(iV().style.fontFamily,",sans-serif;font-size:15px;padding:10px;position:absolute}.bubble.style-thought.__jsx-style-dynamic-selector{background-color:").concat(iJ,";border-color:").concat(iK,";color:").concat(iX,"}.bubble.style-narrator.__jsx-style-dynamic-selector{background-color:").concat(i$,";border-radius:0;border-color:").concat(iH,";color:").concat(iY,"}.bubble.style-tech.__jsx-style-dynamic-selector{background-color:").concat(iq,";border-color:").concat(iZ,";border-radius:0;color:").concat(iQ,"}")})]})},i7=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"jsx-3ff9121b922558f8 upload-unauthorized",children:"Uploading files is disabled for unauthorized users. If you need authorization please email us at [email protected]."}),(0,a.jsx)(T(),{id:"3ff9121b922558f8",children:".upload-unauthorized.jsx-3ff9121b922558f8{border-radius:4px;margin-top:8px;padding:8px;background:var(--red);color:var(--pure-white)}"})]}),i8=e=>{let{disabled:n=!1,animationIn:i,animationOut:d,bubblePoints:o,bubbleTailPosition:l,bubbleStyle:s,previewReplies:r,media:m,stopAllAudio:c,onChangeAnimationIn:k,onChangeAnimationOut:u,onCh
1angeBubblePoints:p,onChangeBubbleTailPosition:N,onChangeBubbleStyle:v,onChangeImageLayers:S,onChangeAudioTracks:h,onChangeStopAllAudio:g}=e,{isAdmin:y,isAllowedToUpload:F}=(0,n5.J)(),[x,f]=(0,t.useState)(null),{imageLayers:b,audioTracks:C}=m,[G,j]=(0,t.useState)(null),[I,P]=(0,t.useState)("landscape"),D=(e,n)=>{let i=[...b.map(e=>{var n,i;return{mediaId:null!=(i=null==(n=e.media)?void 0:n.id)?i:null,resizeMode:e.resizeMode,points:e.points,orientation:e.orientation}})];return i[e]={...i[e],...n},n.mediaId&&j(e),S(i)},M=(e,n)=>{let i=[...C.map(e=>{var n,i;return{mediaId:null!=(i=null==(n=e.media)?void 0:n.id)?i:null,behaviour:e.behaviour,loop:e.loop,volume:e.volume,stopPlaying:e.stopPlaying}})];return i[e]={...i[e],...n},h(i)},E=(0,R.O$)(e=>e.graph.copiedMedia),w=(0,R.E9)(e=>e.graph.copyMedia),B=(0,t.useCallback)(()=>w({animationIn:i,animationOut:d,bubblePoints:o,bubbleTailPosition:l,bubbleStyle:s,imageLayers:[...b.map(e=>{var n,i;return{mediaId:null!=(i=null==(n=e.media)?void 0:n.id)?i:null,resizeMode:e.resizeMode,points:e.points,orientation:e.orientation}})],audioTracks:[...C.map(e=>{var n,i;return{mediaId:null!=(i=null==(n=e.media)?void 0:n.id)?i:null,behaviour:e.behaviour,loop:e.loop,volume:e.volume,stopPlaying:e.stopPlaying}})],stopAllAudio:c}),[i,d,w,o,l,s,b,C,c]),A=(0,t.useCallback)(()=>{E&&(k(E.animationIn),u(E.animationOut),p(E.bubblePoints),N(E.bubbleTailPosition),v(E.bubbleStyle),S(E.imageLayers),h(E.audioTracks),g(E.stopAllAudio))},[E,k,u,p,N,v,S,h,g]);return(0,a.jsxs)("div",{className:"jsx-e7b86dd9cb9fa1f0 media-manager-dialog-content",children:[(0,a.jsx)("div",{className:"jsx-e7b86dd9cb9fa1f0 media-config",children:(0,a.jsxs)("div",{className:"jsx-e7b86dd9cb9fa1f0",children:[!n&&(0,a.jsxs)("div",{className:"jsx-e7b86dd9cb9fa1f0 control-header",children:[(0,a.jsxs)(Q.t,{children:[(0,a.jsx)(ee.$,{icon:"duplicate",onClick:B,children:"Copy"}),(0,a.jsx)(ee.$,{icon:"clipboard",onClick:A,disabled:null===E,children:"Paste"})]}),(0,a.jsxs)(Q.t,{children:[(0,a.jsx)(ee.$,{icon:"desktop",size:"large",active:"landscape"===I,onClick:()=>{P("landscape")},"aria-label":"Set preview orientation to landscape"}),(0,a.jsx)(ee.$,{icon:"mobile-phone",size:"large",active:"portrait"===I,onClick:()=>{P("portrait")},"aria-label":"Set preview orientation to portrait"})]})]}),r.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(iw,{disabled:n,type:s,tailPosition:l,onChangeType:v,onChangeTailPosition:N,onReset:()=>{p(null),N(null),v(null)}}),(0,a.jsx)("div",{style:{height:"40px"},className:"jsx-e7b86dd9cb9fa1f0"})]}),(0,a.jsx)(iA,{disabled:n,activeResizingImageLayerIndex:G,animationIn:i,animationOut:d,imageLayers:b,onCreateImageLayer:e=>S([...b.map(e=>{var n,i;return{mediaId:null!=(i=null==(n=e.media)?void 0:n.id)?i:null,resizeMode:e.resizeMode,points:e.points,orientation:e.orientation}}),{mediaId:null,resizeMode:iM.Contain,points:[[0,0],[1,1]],orientation:e}]),onUpdateImageLayer:D,onDeleteImageLayer:e=>{let n=[...b.map(e=>{var n,i;return{mediaId:null!=(i=null==(n=e.media)?void 0:n.id)?i:null,resizeMode:e.resizeMode,points:e.points,orientation:e.orientation}})];return n.splice(e,1),S(n)},onChangeActiveResizingImageLayerIndex:j,onChangeAnimationIn:k,onChangeAnimationOut:u,onOpenGallery:e=>f({type:"visual",index:e})}),(0,a.jsx)("div",{style:{height:"40px"},className:"jsx-e7b86dd9cb9fa1f0"}),(0,a.jsx)(iD,{disabled:n,audioTracks:C,stopAllAudio:c,onCreateTrack:()=>h([...C.map(e=>{var n,i;return{mediaId:null!=(i=null==(n=e.media)?void 0:n.id)?i:null,behaviour:e.behaviour,loop:e.loop,volume:e.volume,stopPlaying:e.stopPlaying}}),{mediaId:null,behaviour:"continue",loop:!1,volume:1,stopPlaying:!1}]),onUpdateTrack:M,onDeleteTrack:e=>{let n=[...C.map(e=>{var n,i;return{mediaId:null!=(i=null==(n=e.media)?void 0:n.id)?i:null,behaviour:e.behaviour,loop:e.loop,volume:e.volume,stopPlaying:e.stopPlaying}})];return n.splice(e,1),h(n)},onOpenGallery:e=>f({type:"audio",index:e}),onChangeStopAllAudio:g})]})}),y||F?(0,a.jsx)(i2,{activeImageLayer:G,bubblePoints:o,bubbleTailPosition:l,bubbleStyle:s,disabled:n,imageLayers:b,onChangeBubblePoints:p,onChangeImageLayerPoints:(e,n)=>D(e,{points:n}),replies:r,previewOrientation:I}):(0,a.jsx)(i7,{}),(0,a.jsx)(en.l,{isOpen:null!==x,onClose:()=>f(null),title:"Select from Library",className:"media-dialog",style:{minHeight:"90vh",minWidth:"90vw"},children:(0,a.jsx)("div",{className:"jsx-e7b86dd9cb9fa1f0 "+(J.sar||""),children:(0,a.jsx)(ea.x,{onSelect:e=>{(null==x?void 0:x.type)==="visual"?D(x.index,{mediaId:e}):(null==x?void 0:x.type)==="audio"&&M(x.index,{mediaId:e}),f(null)}})})}),(0,a.jsx)(T(),{id:"e7b86dd9cb9fa1f0",children:".media-manager-dialog-content.jsx-e7b86dd9cb9fa1f0{display:flex;flex-direction:row}.media-config.jsx-e7b86dd9cb9fa1f0{flex:1;padding:20px}.media-config.jsx-e7b86dd9cb9fa1f0 h4{margin-bottom:10px}.media-config.jsx-e7b86dd9cb9fa1f0 p{margin-bottom:10px}.control-header.jsx-e7b86dd9cb9fa1f0{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}"})]})},i9=e=>{e.stopPropagation()},ae=e=>{let{isOpen:n,onClose:i,...t}=e;return(0,a.jsxs)("div",{onWheel:i9,className:"jsx-fe759cab5385f1f3 media-manager",children:[(0,a.jsx)(en.l,{icon:"film",isOpen:n,onClose:i,title:"Media manager",className:"media-manager-full-screen",shouldReturnFocusOnClose
1:!1,children:(0,a.jsx)(i8,{...t})}),(0,a.jsx)(T(),{id:"fe759cab5385f1f3",children:".media-manager-full-screen{width:95vw!important;padding-bottom:0!important}.media-manager-dialog-content.jsx-fe759cab5385f1f3{display:flex;flex-direction:row}"})]})};var an=i(54959),ai=i(50910);let aa=e=>{let{metadata:n,onChangeMetadata:i,disabled:d}=e,{theme:o}=(0,ey.DP)(),[l,s]=(0,t.useState)(()=>JSON.stringify(n)),r=!0;try{let e=JSON.parse(l);("object"!=typeof e||null===e)&&(r=!1),JSON.stringify(e)===JSON.stringify(n)&&(r=!1)}catch(e){r=!1}return(0,a.jsxs)("div",{children:[(0,a.jsx)(ev.Ay,{height:"60vh",language:"json",value:l,onChange:e=>{s(e||"")},theme:"dark"===o?"vs-dark":"light",onMount:e=>{setTimeout(()=>{e.getAction("editor.action.formatDocument").run()},10)}}),(0,a.jsx)(ee.$,{disabled:d||!r,icon:"saved",fill:!0,intent:eN.J.SUCCESS,onClick:()=>{i(JSON.parse(l))},children:"Save"})]})};var at=i(10639);let ad=e=>{let{onSubmit:n}=e;return(0,a.jsx)(at.l1,{initialValues:{key:"",value:""},onSubmit:async(e,i)=>{let{setSubmitting:a,resetForm:t}=i;try{await n(e),t()}catch(e){}a(!1)},enableReinitialize:!0,children:e=>{let{handleSubmit:n,dirty:i,isSubmitting:t}=e;return(0,a.jsxs)("form",{onSubmit:n,className:"jsx-504567699c33f863",children:[(0,a.jsxs)(Q.t,{fill:!0,children:[(0,a.jsx)(at.D0,{className:"".concat(J.bOq," ").concat(J.I5l),component:"input",placeholder:"Key",name:"key"}),(0,a.jsx)(at.D0,{className:"".concat(J.bOq," ").concat(J.I5l),component:"input",placeholder:"Value",name:"value"}),(0,a.jsx)(ee.$,{disabled:!i||t,loading:t,intent:eN.J.SUCCESS,icon:"add",type:"submit","aria-label":"Submit"})]}),(0,a.jsx)(T(),{id:"504567699c33f863",children:"form.jsx-504567699c33f863{margin:0}"})]})}})};var ao=i(39414);let al=e=>{let{disabled:n,metaKey:i,value:d,onChangeKey:o,onChangeValue:l,onDelete:s}=e,[r,m]=(0,t.useState)(!1),[c,k]=(0,t.useState)(!1),[u,p]=(0,t.useState)(i),[N,v]=(0,t.useState)(d);return(0,t.useEffect)(()=>{p(i)},[i]),(0,t.useEffect)(()=>{v(d)},[d]),(0,a.jsxs)(Q.t,{fill:!0,style:{marginBottom:2},children:[(0,a.jsx)(ao.M,{fill:!0,disabled:!r,value:u,onChange:e=>p(e.currentTarget.value),rightElement:(0,a.jsx)(ee.$,{onClick:async()=>{r?(u!==i&&await o(u),m(!1)):m(!0)},icon:r?"tick":"edit",variant:"minimal","aria-label":r?"Confirm":"Edit"})}),"string"==typeof d?(0,a.jsx)(ao.M,{fill:!0,disabled:!c||"string"!=typeof d,value:N,onChange:e=>v(e.currentTarget.value),rightElement:(0,a.jsx)(ee.$,{onClick:async()=>{c?(N!==d&&await l(N),k(!1)):k(!0)},icon:c?"tick":"edit",variant:"minimal","aria-label":c?"Confirm":"Edit"})}):(0,a.jsxs)("div",{style:{flex:"1 1 auto",display:"flex",alignItems:"center",justifyContent:"center",width:"100%",background:"var(--section-color)"},children:[(0,a.jsx)(n3.I,{icon:"warning-sign",intent:eN.J.WARNING,style:{marginRight:4}})," ","Advanced value"]}),!n&&(0,a.jsx)(ee.$,{intent:eN.J.DANGER,onClick:()=>{s()},icon:"trash","aria-label":"Delete"})]})},as=e=>{let{metadata:n,onChangeMetadata:i,disabled:t}=e;return(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:J.E4k,children:"Metadata is a way of giving back arbitary information to a client. For example, you might want to pass back an animation name to associate with this reply, or a colour to change the background to!"}),0===Object.entries(n).length&&(0,a.jsx)("div",{children:"There are no metadata entries for this node at the moment."}),Object.entries(n).map(e=>{let[d,o]=e;return(0,a.jsx)(al,{metaKey:d,value:o,onChangeKey:e=>{let a={...n};return a[e]=a[d],delete a[d],i(a)},onChangeValue:e=>{let a={...n};return a[d]=e,i(a)},onDelete:()=>{let e={...n};delete e[d],i(e)},disabled:t},d)}),(0,a.jsx)("br",{}),!t&&(0,a.jsx)(ad,{onSubmit:e=>{let{key:a,value:t}=e;return i({...n,[a]:t})}})]})},ar=e=>{let{isOpen:n,onClose:i,metadata:t,updateMetadata:d,disabled:o}=e;return(0,a.jsx)(en.l,{isOpen:n,onClose:i,title:"Metadata Manager",shouldReturnFocusOnClose:!1,children:(0,a.jsx)("div",{className:J.sar,children:(0,a.jsxs)(an.t,{id:"TabsExample",renderActiveTabPanelOnly:!0,children:[(0,a.jsx)(ai.o,{id:"simple",title:"Simple mode",panel:(0,a.jsx)(as,{metadata:t,onChangeMetadata:d,disabled:o})}),(0,a.jsx)(ai.o,{id:"advanced",title:"Advanced mode",panel:(0,a.jsx)(aa,{metadata:t,onChangeMetadata:d,disabled:o})})]})})})};var am=i(20851);let ac={},ak={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateFeelingEffect"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesReplyFeelingEffectByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateGraphNodePropertiesReplyFeelingEffectById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyFeelingEffect"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingEffectFragment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingEffectFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyFeelingEffect"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feeling"}},{kind:"Field",name:{kind:"Name",value:"intensity"}},{kind:"Field",name:{kind:"Name",value:"duration"}}]}}]},au={},ap={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteFeelingEffect"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteGraphNodePropertiesReplyFeelingEffectByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteGraphNodePropertiesReplyFeelingEffectById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyFeelingEffect"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"graphNodeByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyFeelingEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingEffectFragment"}}]}}]}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingEffectFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyFeelingEffect"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feeling"}},{kind:"Field",name:{kind:"Name",value:"intensity"}},{kind:"Field",name:{kind:"Name",value:"duration"}}]}}]},aN=e=>e>0?"chevron-up":e<0?"chevron-down":"minus",av=e=>e>0?eN.J.SUCCESS:e<0?eN.J.DANGER:eN.J.WARNING,aS=e=>{let{id:n,characterId:i,feeling:d,intensity:o,duration:l,disabled:s}=e,[r]=function(e){let n={...ac,...void 0};return eq.n(ak,n)}(),[m]=function(e){let n={...au,...void 0};return eq.n(ap,n)}(),[c,k]=(0,t.useState)(o),[u,p]=(0,t.useState)(l),{characters:N}=(0,eK.Z)(),v=(e=>{switch(e){case"HOPE":case"INTEREST":return[.2,.2];case"FEAR":return[-.64,.64];case"JOY":case"GRATITUDE":return[.4,.2];case"DISTRESS":return[-.4,-.2];case"PRIDE":return[.4,.3];case"SHAME":return[-.3,.1];case"ANGER":return[-.51,.59];case"LOVE":return[.3,.1];case"HATE":return[-.6,.6];case"DISGUST":return[-.4,.4];default:return[0,0]}})(d);return(0,a.jsxs)(am.Z,{style:{marginTop:20,padding:10},children:[(0,a.jsxs)("header",{className:"jsx-b57e6a592d6130e4",children:["Feeling",!s&&(0,a.jsx)(ee.$,{icon:"trash",intent:eN.J.DANGER,size:"small",variant:"minimal",onClick:()=>m({variables:{input:{id:n}}}),"aria-label":"Delete"})]}),(0,a.jsx)(eb.g,{"data-cy":"character",disabled:s,fill:!0,options:[{label:"Select a character...",value:"",disabled:!0},...N.map(e=>({label:e.name,value:e.id.toString()}))],value:i||"",onChange:e=>{r({variables:{input:{id:n,graphNodePropertiesReplyFeelingEffectPatch:{characterId:""!==e.currentTarget.value?Number(e.currentTarget.value):null}}}})},"aria-label":"Character"}),(0,a.jsx)("div",{style:{marginTop:8,marginBottom:8},className:"jsx-b57e6a592d6130e4",children:"...feels..."}),(0,a.jsx)(eb.g,{"data-cy":"feeling",disabled:s,fill:!0,options:[{label:"Select a feeling...",value:"",disabled:!0},...eG.map(e=>({label:e.toLowerCase(),value:e}))],value:d||"",onChange:e=>{r({variables:{input:{id:n,graphNodePropertiesReplyFeelingEffectPatch:{feeling:e.currentTarget.value||null}}}})},"aria-label":"Feeling"}),(0,a.jsx)("hr",{className:"jsx-b57e6a592d6130e4"}),(0,a.jsxs)("div",{className:"jsx-b57e6a592d6130e4 "+(M()(J.KJG,J.E4k)||""),children:["Mood effect:"," ",(0,a.jsx)(n3.I,{icon:aN(v[0]),intent:av(v[0])})," ","Positivity"," ",(0,a.jsx)(n3.I,{icon:aN(v[1]),intent:av(v[1])})," ","Energy"]}),(0,a.jsx)("hr",{className:"jsx-b57e6a592d6130e4"}),(0,a.jsxs)("div",{style:{display:"flex"},className:"jsx-b57e6a592d6130e4",children:[(0,a.jsx)(nA.g,{label:"Intensity",style:{flex:1},children:(0,a.jsx)("div",{style:{padding:"0px 10px"},className:"jsx-b57e6a592d6130e4",children:(0,a.jsx)(nQ.A,{disabled:s,min:0,max:1,stepSize:.1,value:c,onChange:e=>k(e),onRelease:e=>r({variables:{input:{id:n,graphNodePropertiesReplyFeelingEffectPatch:{intensity:e.toString()}}}})})})}),(0,a.jsx)(nA.g,{label:"Duration",style:{marginLeft:10},children:(0,a.jsxs)("div",{style:{display:"flex",alignItems:"center"},className:"jsx-b57e6a592d6130e4",children:[(0,a.jsx)(eE.O,{disabled:s,value:u,min:1,max:50,onValueChange:e=>p(e),onButtonClick:e=>{r({variables:{input:{id:n,graphNodePropertiesReplyFeelingEffectPatch:{duration:e}}}})},onBlur:()=>{r({variables:{input:{id:n,graphNodePropertiesReplyFeelingEffectPatch:{duration:u}}}})},style:{width:80},"aria-label":"Active for duration number"}),(0,a.jsx)("div",{style:{marginLeft:5},className:"jsx-b57e6a592d6130e4 "+(J.E4k||""),children:"nodes"})]})})]}),(0,a.jsx)(T(),{id:"b57e6a592d6130e4",children:"header.jsx-b57e6a592d6130e4{margin:-10px -10px 10px -10px;background:var(--accent-2);padding:2px 10px;display:flex;align-items:center;justify-content:space-between}hr.jsx-b57e6a592d6130e4{margin:10px -10px}"})]})};var ah=i(63306);let ag={},ay={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateMoodEffect"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesReplyMoodEffectByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateGraphNodePropertiesReplyMoodEffectById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyMoodEffect"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodEffectFragment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodEffectFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyMoodEffect"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivity"}},{kind:"Field",name:{kind:"Name",value:"energy"}}]}}]},aF={},ax={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteMoodEffect"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteGraphNodePropertiesReplyMoodEffectByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteGraphNodePropertiesReplyMoodEffectById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyMoodEffect"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"graphNodeByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyMoodEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodEffectFragment"}}]}}]}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodEffectFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyMoodEffect"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivity"}},{kind:"Field",name:{kind:"Name",value:"energy"}}]}}]},af=e=>{let{id:n,characterId:i,positivity:d,energy:o,disabled:l}=e,[s]=function(e){let n={...ag,...void 0};return eq.n(ay,n)}(),[r]=function(e){let n={...aF,...void 0};return eq.n(ax,n)}(),{characters:m}=(0,eK.Z)(),[c,k]=(0,t.useState)(d),[u,p]=(0,t.useState)(o);return(0,a.jsxs)(am.Z,{style:{marginTop:20,padding:10},children:[(0,a.jsxs)("header",{className:"jsx-11b1914cc75c294c",children:["Mood",!l&&(0,a.jsx)(ee.$,{icon:"trash",intent:eN.J.DANGER,size:"small",variant:"minimal",onClick:()=>r({variables:{input:{id:n}}}),"aria-label":"Delete"})]}),(0,a.jsx)(eb.g,{fill:!0,options:[{label:"Select a character...",value:"",disabled:!0},...m.map(e=>({label:e.name,value:e.id.toString()}))],value:i||"",onChange:e=>{s({variables:{input:{id:n,graphNodePropertiesReplyMoodEffectPatch:{characterId:""!==e.currentTarget.value?Number(e.currentTarget.value):null}}}})},"aria-label":"Character"}),(0,a.jsx)("div",{style:{marginTop:8,marginBottom:8},className:"jsx-11b1914cc75c294c",children:"...has their mood reset to..."}),(0,a.jsx)(ah.A,{leftLabel:"Negative",rightLabel:"Positive",value:c,onChange:e=>k(e),onRelease:e=>s({variables:{input:{id:n,graphNodePropertiesReplyMoodEffectPatch:{positivity:e.toString()}}}}),labelStyle:{width:60},style:{margin:0}}),(0,a.jsx)(ah.A,{leftLabel:"Lethargic",rightLabel:"Energetic",value:u,onChange:e=>p(e),onRelease:e=>s({variables:{input:{id:n,graphNodePropertiesReplyMoodEffectPatch:{energy:e.toString()}}}}),labelStyle:{width:60},style:{margin:0}}),(0,a.jsx)(T(),{id:"11b1914cc75c294c",children:"header.jsx-11b1914cc75c294c{margin:-10px -10px 10px -10px;background:var(--accent-2);padding:2px 10px;display:flex;align-items:center;justify-content:space-between}"})]})},ab={},aC={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateRelationshipEffect"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesReplyRelationshipEffectByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateGraphNodePropertiesReplyRelationshipEffectById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyRelationshipEffect"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipEffectFragment"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipEffectFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyRelationshipEffect"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationship"}},{kind:"Field",name:{kind:"Name",value:"isSetTo"}}]}}]},aG={},aj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"DeleteRelationshipEffect"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DeleteGraphNodePropertiesReplyRelationshipEffectByIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deleteGraphNodePropertiesReplyRelationshipEffectById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyRelationshipEffect"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"graphNodeByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyRelationshipEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipEffectFragment"}}]}}]}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipEffectFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyRelationshipEffect"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationship"}},{kind:"Field",name:{kind:"Name",value:"isSetTo"}}]}}]},aI=e=>{let{id:n,characterId:i,relationship:d,isSetTo:o,disabled:l}=e,[s]=function(e){let n={...ab,...void 0};return eq.n(aC,n)}(),[r]=function(e){let n={...aG,...void 0};return eq.n(aj,n)}(),{characters:m}=(0,eK.Z)(),[c,k]=(0,t.useState)(d);return(0,a.jsxs)(am.Z,{style:{marginTop:20,padding:10},children:[(0,a.jsxs)("header",{className:"jsx-4f4f41c42b696f29",children:["Relationship",!l&&(0,a.jsx)(ee.$,{icon:"trash",intent:eN.J.DANGER,size:"small",variant:"minimal",onClick:()=>r({variables:{input:{id:n}}}),"aria-label":"Delete"})]}),(0,a.jsx)(eb.g,{disabled:l,fill:!0,options:[{label:"Select a character...",value:"",disabled:!0},...m.map(e=>({label:e.name,value:e.id.toString()}))],value:i||"",onChange:e=>{s({variables:{input:{id:n,graphNodePropertiesReplyRelationshipEffectPatch:{characterId:""!==e.currentTarget.value?Number(e.currentTarget.value):null}}}})},"aria-label":"Character"}),(0,a.jsx)("div",{style:{marginTop:8,marginBottom:8},className:"jsx-4f4f41c42b696f29",children:"...has their relationship with the player..."}),(0,a.jsxs)("div",{className:"jsx-4f4f41c42b696f29 radio",children:[(0,a.jsxs)(im.z,{selectedValue:o?"set-to":"change-by",onChange:e=>{s({variables:{input:{id:n,graphNodePropertiesReplyRelationshipEffectPatch:{isSetTo:"set-to"===e.currentTarget.value}}}})},inline:!0,children:[(0,a.jsx)(nZ.sx,{label:"Changed by...",value:"change-by"}),(0,a.jsx)(nZ.sx,{label:"Set to...",value:"set-to"})]}),(0,a.jsx)(nL.m,{content:(0,a.jsxs)("div",{style:{maxWidth:450},className:"jsx-4f4f41c42b696f29",children:["If ",(0,a.jsx)("strong",{className:"jsx-4f4f41c42b696f29",children:"Changed by..."}),", this effect will incrementally increase or decrease the character's current relationship by the specified value. This is the recommended setting.",(0,a.jsx)("br",{className:"jsx-4f4f41c42b696f29"}),(0,a.jsx)("br",{className:"jsx-4f4f41c42b696f29"}),"If ",(0,a.jsx)("strong",{className:"jsx-4f4f41c42b696f29",children:"Set to..."}),", this effect will directly set the character's relationship to this exact value."]}),children:(0,a.jsx)(ee.$,{icon:"help",variant:"minimal","aria-label":"Help"})})]}),(0,a.jsx)(ah.A,{disabled:l,leftLabel:"Hostile",rightLabel:"Friendly",value:c,onChange:e=>k(e),onRelease:e=>s({variables:{input:{id:n,graphNodePropertiesReplyRelationshipEffectPatch:{relationship:e.toString()}}}}),labelStyle:{width:60},style:{margin:0}}),(0,a.jsx)(T(),{id:"4f4f41c42b696f29",children:"header.jsx-4f4f41c42b696f29{margin:-10px -10px 10px -10px;background:var(--accent-2);padding:2px 10px;display:flex;align-items:center;justify-content:space-between}.radio.jsx-4f4f41c42b696f29{margin:10px 0;display:flex;justify-content:center;align-items:center}.radio.jsx-4f4f41c42b696f29 label{margin-bottom:0px}"})]})},aP={},aT={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateFeelingEffect"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateGraphNodePropertiesReplyFeelingEffectInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createGraphNodePropertiesReplyFeelingEffect"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyFeelingEffect"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingEffectFragment"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"graphNodeByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyFeelingEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingEffectFragment"}}]}}]}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingEffectFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyFeelingEffect"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feeling"}},{kind:"Field",name:{kind:"Name",value:"intensity"}},{kind:"Field",name:{kind:"Name",value:"duration"}}]}}]},aD={},aM={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMoodEffect"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateGraphNodePropertiesReplyMoodEffectInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createGraphNodePropertiesReplyMoodEffect"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyMoodEffect"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodEffectFragment"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"graphNodeByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyMoodEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodEffectFragment"}}]}}]}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodEffectFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyMoodEffect"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivity"}},{kind:"Field",name:{kind:"Name",value:"energy"}}]}}]},aR={},aE={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateRelationshipEffect"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateGraphNodePropertiesReplyRelationshipEffectInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createGraphNodePropertiesReplyRelationshipEffect"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyRelationshipEffect"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipEffectFragment"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"graphNodeByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReplyRelationshipEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipEffectFragment"}}]}}]}}]}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipEffectFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyRelationshipEffect"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationship"}},{kind:"Field",name:{kind:"Name",value:"isSetTo"}}]}}]},aw=e=>{let{disabled:n,replyPropertiesId:i,feelingEffects:t,moodEffects:d,relationshipEffects:o}=e,[l]=function(e){let n={...aP,...void 0};return eq.n(aT,n)}(),[s]=function(e){let n={...aD,...void 0};return eq.n(aM,n)}(),[r]=function(e){let n={...aR,...void 0};return eq.n(aE,n)}();return(0,a.jsxs)("div",{children:[(0,a.jsx)(e$.A,{content:(0,a.jsxs)(w.W,{children:[(0,a.jsx)(B.D,{text:"Feeling",icon:"thumbs-up",onClick:()=>l({variables:{input:{graphNodePropertiesReplyFeelingEffect:{replyPropertiesId:i}}}})}),(0,a.jsx)(B.D,{text:"Mood",icon:"heart",onClick:()=>s({variables:{input:{graphNodePropertiesReplyMoodEffect:{replyPropertiesId:i}}}})}),(0,a.jsx)(B.D,{text:"Relationship",icon:"people",onClick:()=>r({variables:{input:{graphNodePropertiesReplyRelationshipEffect:{replyPropertiesId:i}}}})})]}),children:(0,a.jsx)(ee.$,{icon:"add",disabled:n,children:"Add new effect..."})}),(0,a.jsx)(nL.m,{content:"Learn more about emotion effects in the docs...",children:(0,a.jsx)(ee.A,{icon:"help",variant:"minimal",href:"/docs/emotions",target:"_blank",rel:"noopener noreferrer",style:{marginLeft:10}})}),t.map(e=>(0,a.jsx)(aS,{disabled:n,...e,intensity:Number(e.intensity)})),d.map(e=>(0,a.jsx)(af,{disabled:n,...e,positivity:Number(e.positivity),energy:Number(e.energy)})),o.map(e=>(0,a.jsx)(aI,{disabled:n,...e,relationship:Number(e.relationship)}))]})},aB=e=>{let{isOpen:n,onClose:i,...t}=e;return(0,a.jsx)(en.l,{isOpen:n,onClose:i,title:"Emotions Manager",shouldReturnFocusOnClose:!1,children:(0,a.jsx)("div",{className:J.sar,children:(0,a.jsx)(aw,{...t})})})};var aA=i(88934);let aL={},aO={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"NodeAnalytics"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"graphNodeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"direction"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePlaythroughReactionsDirection"}}}}
1,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"matchTypes"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"ReactionMatchType"}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"languageCode"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"graphNode"},name:{kind:"Name",value:"graphNodeById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"graphNodeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"playthroughReactions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"direction"},value:{kind:"Variable",name:{kind:"Name",value:"direction"}}},{kind:"Argument",name:{kind:"Name",value:"matchTypes"},value:{kind:"Variable",name:{kind:"Name",value:"matchTypes"}}},{kind:"Argument",name:{kind:"Name",value:"languageCode"},value:{kind:"Variable",name:{kind:"Name",value:"languageCode"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"startNodeId"}},{kind:"Field",name:{kind:"Name",value:"endNodeId"}},{kind:"Field",name:{kind:"Name",value:"playerMessages"}}]}}]}}]}}]}}]},aV=e=>{let{graphNodeId:n,direction:i,matchTypes:t}=e,{sourceLanguageCode:d}=(0,W.E)(),{data:o,loading:l,error:s,refetch:r}=function(e){let n={...aL,...e};return nJ.IT(aO,n)}({variables:{graphNodeId:n,direction:i,matchTypes:t,languageCode:d},fetchPolicy:"no-cache"});if(l)return(0,a.jsx)(n_.y,{"aria-label":"Loading"});if(s||!o||!o.graphNode)return(0,a.jsx)(nz.I,{title:"Something went wrong...",description:"Node analytics couldn't be loaded at this time. Maybe try again later?",icon:"warning-sign",iconMuted:!1});let m=o.graphNode.playthroughReactions.nodes;return 0===m.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"jsx-b00ae7f7c08c0c4e",children:(0,a.jsx)(nz.I,{title:"No messages found!",description:"Maybe no-one's played your story yet.",icon:"search",iconMuted:!1})}),(0,a.jsx)(ee.$,{icon:"refresh",variant:"minimal",onClick:()=>{r()},children:"Refetch"}),(0,a.jsx)(T(),{id:"b00ae7f7c08c0c4e",children:"div.jsx-b00ae7f7c08c0c4e{margin:40px 0}"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"jsx-543f6fac89157e6b",children:(0,a.jsx)(aA._,{striped:!0,children:(0,a.jsx)("tbody",{className:"jsx-543f6fac89157e6b",children:m.map(e=>(0,a.jsx)("tr",{className:"jsx-543f6fac89157e6b",children:(0,a.jsx)("td",{className:"jsx-543f6fac89157e6b",children:e.playerMessages.reduce((e,n)=>"".concat(e," ").concat(n.text),"")})},e.id))})})}),(0,a.jsx)(ee.$,{icon:"refresh",variant:"minimal",onClick:()=>{r()},children:"Refresh"}),(0,a.jsx)(T(),{id:"543f6fac89157e6b",children:"div.jsx-543f6fac89157e6b{max-height:250px;overflow:scroll;width:100%}"})]})},a_=e=>{let{isOpen:n,onClose:i,graphNodeId:d}=e,[o,l]=(0,t.useState)("MATCHED_DIRECT"),s=(0,t.useCallback)(e=>{let{currentTarget:{value:n}}=e;l(n)},[]),[r,m]=(0,t.useState)("MATCHED_DIRECT"),c=(0,t.useCallback)(e=>{let{currentTarget:{value:n}}=e;m(n)},[]),k=(0,t.useCallback)(e=>{e.stopPropagation()},[]),{storyVersionId:u}=(0,W.E)();return(0,a.jsx)("div",{onWheel:k,children:(0,a.jsxs)(en.l,{isOpen:n,onClose:i,title:"Response Analytics",style:{width:"90vw"},shouldReturnFocusOnClose:!1,children:[(0,a.jsxs)("div",{className:"jsx-711385c7e2eac230 "+(J.sar||""),children:[(0,a.jsx)("p",{className:"jsx-711385c7e2eac230",children:"Here you can view player responses in order to fine-tune your interaction points."}
1),(0,a.jsxs)("div",{className:"jsx-711385c7e2eac230 analytics-layout",children:[(0,a.jsxs)("div",{className:"jsx-711385c7e2eac230 analytics-part",children:[(0,a.jsxs)("h5",{className:"jsx-711385c7e2eac230",children:["Responses as players ",(0,a.jsx)("i",{className:"jsx-711385c7e2eac230",children:"arrived"})," at this node..."]}),(0,a.jsxs)("div",{className:"jsx-711385c7e2eac230 match-type",children:[(0,a.jsx)("div",{className:"jsx-711385c7e2eac230 match-type-label",children:"Match type"}),(0,a.jsxs)(im.z,{className:"match-type-radios",onChange:s,selectedValue:o,inline:!0,children:[(0,a.jsx)(nZ.sx,{label:"Direct",value:"MATCHED_DIRECT"}),(0,a.jsx)(nZ.sx,{label:"Direct (wildcard)",value:"MATCHED_DIRECT_WILDCARD"}),(0,a.jsx)(nZ.sx,{label:"Subplot",value:"MATCHED_SUBPLOT"}),(0,a.jsx)(nZ.sx,{label:"Subplot (wildcard)",value:"MATCHED_SUBPLOT_WILDCARD"}),(0,a.jsx)(nZ.sx,{label:"Unmatched",value:"UNMATCHED"})]})]}),(0,a.jsx)("div",{className:"jsx-711385c7e2eac230 table",children:"number"==typeof u?(0,a.jsx)(aV,{graphNodeId:d,direction:"IN",matchTypes:[o]}):(0,a.jsx)(nz.I,{icon:"info-sign",iconMuted:!1,title:"Analytics is not available in example graphs",description:"In real stories, this will show what your players are saying at this point!"})})]}),(0,a.jsxs)("div",{className:"jsx-711385c7e2eac230 graph-node-part",children:[(0,a.jsx)(n3.I,{icon:"arrow-right",size:30}),(0,a.jsx)("div",{className:"jsx-711385c7e2eac230 graph-node",children:"This node"}),(0,a.jsx)(n3.I,{icon:"arrow-right",size:30})]}
1),(0,a.jsxs)("div",{className:"jsx-711385c7e2eac230 analytics-part",children:[(0,a.jsxs)("h5",{className:"jsx-711385c7e2eac230",children:["Responses as players ",(0,a.jsx)("i",{className:"jsx-711385c7e2eac230",children:"advanced"})," from this node..."]}),(0,a.jsxs)("div",{className:"jsx-711385c7e2eac230 match-type",children:[(0,a.jsx)("div",{className:"jsx-711385c7e2eac230 match-type-label",children:"Match type"}),(0,a.jsxs)(im.z,{className:"match-type-radios",onChange:c,selectedValue:r,inline:!0,children:[(0,a.jsx)(nZ.sx,{label:"Direct",value:"MATCHED_DIRECT"}),(0,a.jsx)(nZ.sx,{label:"Direct (wildcard)",value:"MATCHED_DIRECT_WILDCARD"}),(0,a.jsx)(nZ.sx,{label:"Subplot",value:"MATCHED_SUBPLOT"}),(0,a.jsx)(nZ.sx,{label:"Subplot (wildcard)",value:"MATCHED_SUBPLOT_WILDCARD"}),(0,a.jsx)(nZ.sx,{label:"Unmatched",value:"UNMATCHED"})]})]}),(0,a.jsx)("div",{className:"jsx-711385c7e2eac230 table",children:"number"==typeof u?(0,a.jsx)(aV,{graphNodeId:d,direction:"OUT",matchTypes:[r]}):(0,a.jsx)(nz.I,{icon:"info-sign",iconMuted:!1,title:"Analytics is not available in example graphs",description:"In real stories, this will show what your players are saying at this point!"})})]})]})]}),(0,a.jsx)(T(),{id:"711385c7e2eac230",children:".analytics-layout.jsx-711385c7e2eac230{display:flex}.analytics-part.jsx-711385c7e2eac230{background:var(--section-color);border-radius:5px;border:1px solid var(--section-border-color);padding:11px;flex:2;overflow:hidden}.graph-node-part.jsx-711385c7e2eac230{flex:1;margin:0 20px;align-self:center;display:flex;align-items:center}.graph-node.jsx-711385c7e2eac230{background:var(--section-color);border-radius:10px;border:1px dashed var(--section-border-color);padding:20px;margin:0 20px;flex:1;text-align:center}h5.jsx-711385c7e2eac230{background:var(--header-color);margin:-11px;padding:10px;margin-bottom:11px;border-bottom:1px solid var(--section-border-color)}.match-type.jsx-711385c7e2eac230{display:flex}.match-type-label.jsx-711385c7e2eac230{margin-right:20px}.match-type.jsx-711385c7e2eac230 .match-type-radios{flex:1}.table.jsx-711385c7e2eac230{display:flex;align-items:center;flex-direction:column}"})]})})};var az=i(22632);let aU=az.Ik().shape({delay:az.ai().nullable(!0)}),aW=e=>{let{onSubmit:n,initialDelay:i,initialDelayMode:t,disabled:d}=e;return(0,a.jsx)(at.l1,{initialValues:{delay:(i/1e3).toString(),delayMode:t},validationSchema:aU,onSubmit:async(e,i)=>{let{setSubmitting:a}=i;try{await n({delay:1e3*Number(e.delay),delayMode:e.delayMode})}catch(e){await (0,n4.L_)("Something went wrong trying to save delay.")}a(!1)},enableReinitialize:!0,children:e=>{let{dirty:n,isValid:i,isSubmitting:t,setFieldValue:o,values:l}=e;return(0,a.jsxs)("div",{className:"jsx-7776c65646dd1189 delay-form",children:[(0,a.jsxs)(at.lV,{children:[(0,a.jsxs)("p",{className:"jsx-7776c65646dd1189 "+(J.E4k||""),children:["The delay is the time ",(0,a.jsx)("b",{className:"jsx-7776c65646dd1189",children:"in seconds"})," to wait between finishing saying the previous reply and starting saying this reply. The delay can be negative, to overlap character nodes."]}),(0,a.jsxs)(im.z,{disabled:d,selectedValue:l.delayMode,onChange:e=>o("delayMode",e.currentTarget.value),children:[(0,a.jsx)(nZ.sx,{label:"Delay relative to start of previous node",value:em.My.RELATIVE_TO_START}),(0,a.jsx)(nZ.sx,{label:"Delay relative to end of previous node",value:em.My.RELATIVE_TO_END})]}),(0,a.jsxs)("div",{className:"jsx-7776c65646dd1189 delay-input-and-save",children:[(0,a.jsx)(at.D0,{name:"delay",children:e=>{let{field:n}=e;return(0,a.jsx)(eE.O,{...n,disabled:d,allowNumericCharactersOnly:!0,clampValueOnBlur:!0,size:"large",max:100,min:-100,placeholder:"(e.g. 10)",onValueChange:(e,n)=>o("delay",n),value:n.value||void 0,fill:!0,"aria-label":"Delay in seconds"})}}),!d&&(0,a.jsx)(ee.$,{intent:eN.J.SUCCESS,type:"submit",disabled:!i||!n||t,loading:t,size:"large",style:{marginLeft:20},children:"Save"})]})]}),(0,a.jsx)(T(),{id:"7776c65646dd1189",children:".delay-form.jsx-7776c65646dd1189 form{margin:0}.delay-input-and-save.jsx-7776c65646dd1189{display:flex;justify-content:space-between}"})]})}})},a$=az.Ik().shape({impact:az.Yj().nullable(!0)}),aH=e=>{let{onSubmit:n,initialValues:i,disabled:t}=e;return(0,a.jsx)(at.l1,{initialValues:i,validationSchema:a$,onSubmit:async(e,i)=>{let{setSubmitting:a}=i;try{await n(e)}catch(e){await (0,n4.L_)("Something went wrong saving this impact.")}a(!1)},enableReinitialize:!0,children:e=>{let{dirty:n,isValid:i,isSubmitting:d,setFieldValue:o}=e;return(0,a.jsxs)("div",{className:"jsx-d702912977910c3c impact-form",children:[(0,a.jsxs)(at.lV,{children:[(0,a.jsx)("p",{className:"jsx-d702912977910c3c "+(J.E4k||""),children:"An impact is a short description of how the player affected the story. Impacts will be shown to the player at the end of each episode to help them understand how they affected the story."}),(0,a.jsx)(at.D0,{name:"impact",children:e=>{let{field:n}=e;return(0,a.jsx)("textarea",{...n,disabled:t,placeholder:"Sherlock became angry because you forgot his name.",onChange:e=>{let{currentTarget:{value:n}}=e;
1o("impact",""===n?null:n)},value:n.value||void 0,className:"jsx-d702912977910c3c "+"impact-text ".concat(J.bOq," ").concat(J.I$u," ").concat(J.I5l)})}}),!t&&(0,a.jsx)(ee.$,{intent:eN.J.SUCCESS,type:"submit",disabled:!i||!n||d,style:{marginTop:10},fill:!0,children:"Save"})]}),(0,a.jsx)(T(),{id:"d702912977910c3c",children:".impact-form.jsx-d702912977910c3c form{margin:0}.impact-text.jsx-d702912977910c3c{margin-bottom:10px}"})]})}})};var aY=i(7724);let aJ=az.Ik().shape({tagsToSet:az.YO(az.Yj()),tagsToUnset:az.YO(az.Yj())}),aK=e=>{let{onSubmit:n,disabled:i,initialTagsToSet:t,initialTagsToUnset:d}=e;return(0,a.jsx)(at.l1,{initialValues:{tagsToSet:t,tagsToUnset:d},validationSchema:aJ,onSubmit:async(e,i)=>{let{setSubmitting:a}=i;try{await n(e)}catch(e){await (0,n4.L_)("Something went wrong trying to save tags.")}a(!1)},enableReinitialize:!0,children:e=>{let{dirty:n,isValid:t,isSubmitting:d,setFieldValue:o,values:l,handleSubmit:s}=e;return(0,a.jsxs)("div",{className:"tags-form",children:[(0,a.jsx)("p",{className:J.E4k,children:"A tag is like a lightweight memory. It can be set and unset on a character node without having to create a memory beforehand. Instead, provide a tag name!"}),(0,a.jsx)(nA.g,{label:"Tags to set...",children:(0,a.jsx)(eU.F,{addOnBlur:!0,disabled:i,placeholder:"Type tag name and press enter to set tag...",onChange:e=>{o("tagsToSet",e)},values:l.tagsToSet})}),(0,a.jsx)(nA.g,{label:"Tags to unset...",children:(0,a.jsx)(eU.F,{addOnBlur:!0,disabled:i,placeholder:"Type tag name and press enter to unset tag...",onChange:e=>{o("tagsToUnset",e)},values:l.tagsToUnset})}),!i&&(0,a.jsx)(ee.$,{onClick:()=>s(),intent:eN.J.SUCCESS,type:"submit",disabled:!t||!n||d,loading:d,fill:!0,children:"Save"})]})}})};var aX=i(32418),aq=i.n(aX),aZ=i(89818),aQ=i(83590),a0=i(80204),a1=i(29301);let a5=[],a4=e=>{let{disabled:n,properties:i,updateProperties:d}=e,{characters:o,entities:l,memories:s}=(0,eK.Z)(),{sourceLanguageCode:r,supportedLanguageCodes:m,isReplyGenerationAvailable:c}=(0,W.E)(),k=m[0],u=o.find(e=>e.id===i.characterId),p=(0,t.useMemo)(()=>(0,aQ.j)(null==u?void 0:u.voiceLocalised[r],i.voiceLocalised[r]),[null==u?void 0:u.voiceLocalised,r,i.voiceLocalised]),N=i.repliesLocalised[k]||a5,v=(0,t.useMemo)(()=>i.repliesLocalised[r]||(i.repliesLocalised[k]||[{id:crypto.randomUUID(),text:""}]).map(()=>({id:crypto.randomUUID(),text:""})),[i.repliesLocalised,r,k]),S=(0,t.useCallback)(e=>{d({repliesLocalised:{...i.repliesLocalised,[r]:e}})},[d,r,i.repliesLocalised]),h=[...l.map(e=>e.term),...s.map(e=>e.recallValue),...aZ.p];c&&h.push("Generation");let[g,y]=(0,t.useState)(!1);return(0,a.jsx)("div",{onFocus:()=>{y(!0)},onBlur:()=>{y(!1)},onMouseEnter:()=>{y(!0)},onMouseLeave:()=>{y(!1)},children:(0,a.jsx)(e$.A,{disabled:r===k,isOpen:g,position:eH.yX.RIGHT_TOP,targetTagName:"div",wrapperTagName:"div",variant:"minimal",autoFocus:!1,enforceFocus:!1,content:(0,a.jsx)("div",{style:{width:255},children:(0,a.jsx)(a0.Dc,{areNoValuesAllowed:!0,disabled:!0,tagList:h,values:N})}),children:(0,a.jsx)(a0.Dc,{component:a1.A,componentProps:(e,n)=>({voiceConfig:p,onChangeAudio:e=>{d({repliesLocalised:aq()(i.repliesLocalised,{[r]:i=>aq()(i||[{id:crypto.randomUUID(),text:""}],{[n]:{audio:{$set:e}}})})})}}),values:v,onUpdateValues:S,areNoValuesAllowed:!0,disabled:n,shouldDebounce:!0,tagList:h})})})},a3={},a6={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RePhraseMutation"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RephraseSentencesInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"rephrase"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"suggestion"}},{kind:"Field",name:{kind:"Name",value:"error"}}]}}]}}]};function a2(e){let n={...a3,...e};return eq.n(a6,n)}let a7=e=>{let{disabled:n,properties:i,updateProperties:d,updateImageLayers:o,updateAudioTracks:l,graphNodeId:s}=e,{characters:r}=(0,eK.Z)(),[m,c]=(0,ei.A)(!1),[k,u]=(0,ei.A)(!1),[p,N]=(0,ei.A)(!1),[v,S]=(0,ei.A)(!1),h=(0,iP.A)(),{storyTargetPlatform:g,sourceLanguageCode:y,supportedLanguageCodes:F,storyId:x}=(0,W.E)(),f=F[0],b=r.find(e=>e.id===i.characterId),C=(0,t.useMemo)(()=>new(iF())(async e=>(await d(Object.assign({},...e)),e.map(()=>void 0)),{cache:!1}),[d]),G=e=>C.load(e),[j,{loading:I}]=a2(),P=i.repliesLocalised[y]||(i.repliesLocalised[f]||[""]).map(()=>({id:crypto.randomUUID(),text:""})),{useGenerativeMode:D}=i,R=(e=>({voiceId:(null==e?void 0:e.voiceId)||"",rate:(null==e?void 0:e.rate)||null,pitch:(null==e?void 0:e.pitch)||null,volume:(null==e?void 0:e.volume)||null,whispering:(null==e?void 0:e.whispering)||null}))(i.voiceLocalised[y]),[E,w]=(0,t.useState)({supportsPitch:!1,supportsRate:!1,supportsVolume:!1,supportsWhispering:!1}),B=g===em.mm.WEB,A=P.filter(e=>""!==e.text.trim()).length>=1,L=async()=>{let e=P.map(e=>e.text);try{var n,a,t,o;let{data:l,errors:s}=await j({variables:{input:{sentences:e,storyId:x}}});if(s||(null==l||null==(n=l.rephrase)?void 0:n.error)||0===(null!=(o=null==l||null==(a=l.rephrase)?void 0:a.suggestion)?o:[]).length)return void(0,n4.L_)("Something went wrong while rephrasing, if this persists please contact us directly at [email protected]");let r=[...P,...(null==l||null==(t=l.rephrase)?void 0:t.suggestion)?[{id:crypto.randomUUID(),text:l.rephrase.suggestion}]:[]];d({repliesLocalised:{...i.repliesLocalised,[y]:r}})}catch(e){(0,n4.L_)("Something went wrong while rephrasing, if this persists please contact us directly at [email protected]")}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(Y,{children:[!D&&0===P.length&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{style:{marginBottom:5},className:"jsx-3edc8f6db11ea1e3 "+(J.E4k||""),children:"This is an empty node and won't display a message."}),(0,a.jsx)(ee.$,{onClick:()=>{d({repliesLocalised:{...i.repliesLocalised,[y]:[{id:crypto.randomUUID(),text:""}]}})},fill:!0,children:"Change to character reply"})]}),D&&(0,a.jsx)(nA.g,{label:"Prompt context",style:{marginBottom:0},children:(0,a.jsx)(K,{disabled:n,placeholder:"Contextual information that will be fed to the prompt... (e.g. 'The player has just eaten a banana.')",name:"generative",defaultValue:i.promptContextLocalised[y],onBlur:e=>{d({promptContextLocalised:{...i.promptContextLocalised,[y]:e}})}})}),(D||P.length>0)&&(0,a.jsxs)(a.Fragment,{children:[!D&&(0,a.jsx)(a4,{properties:i,updateProperties:d,disabled:n}),(0,a.jsxs)(Q.t,{style:{marginTop:"0.5em"},children:[(0,a.jsxs)(eb.g,{disabled:n,name:"character",value:i.characterId||"???",onCh
1ange:e=>{let{currentTarget:{value:n}}=e;d({characterId:"???"===n?null:+n,voiceLocalised:{}})},fill:!0,"aria-label":"Character Select",children:[(0,a.jsx)("option",{value:"???",className:"jsx-3edc8f6db11ea1e3",children:"???"},"blank"),r.map(e=>(0,a.jsx)("option",{value:e.id,className:"jsx-3edc8f6db11ea1e3",children:e.name},e.id))]}),(0,a.jsx)(e$.A,{disabled:!b,popoverClassName:J.xPk,position:eH.yX.BOTTOM,content:(0,a.jsxs)("div",{className:"jsx-3edc8f6db11ea1e3",children:[(0,a.jsx)("span",{className:"jsx-3edc8f6db11ea1e3 "+(J.E4k||""),children:"Voice"}),(0,a.jsx)("div",{style:{marginTop:4,marginBottom:8},className:"jsx-3edc8f6db11ea1e3",children:(0,a.jsx)(ij,{disabled:n,buttonProps:{large:!1},voiceId:(null==R?void 0:R.voiceId)||null,onChangeVoiceId:e=>{d({voiceLocalised:{...i.voiceLocalised,[y]:{...i.voiceLocalised[y],voiceId:e,rate:null,pitch:null,volume:null,whispering:null}}})},setVoiceSupports:w,storyId:x})}),(0,a.jsx)(aY.A,{config:R,onChangeConfig:e=>{d({voiceLocalised:{...i.voiceLocalised,[y]:e}})},supportedConfig:E}),!n&&(0,a.jsx)(ee.$,{icon:"reset",onClick:()=>{d({voiceLocalised:{...i.voiceLocalised,[y]:{}}})},children:"Reset"})]}),children:(0,a.jsx)(ee.$,{icon:"cog",disabled:!b,"aria-label":"Set Specific Voice"})})]})]})]}),(0,a.jsxs)(io,{children:[(0,a.jsx)(nL.m,{position:eH.yX.BOTTOM,content:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3",children:"Emotions Manager"}),children:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3 selection-icon",children:(0,a.jsx)(ee.$,{onClick:S,icon:"heart",size:"small",variant:"minimal",className:M()({"icon-valid":0!==i.feelingEffects.nodes.length||0!==i.moodEffects.nodes.length||0!==i.relationshipEffects.nodes.length}),"aria-label":"Emotions Manager"})})}),(0,a.jsx)(nL.m,{position:eH.yX.BOTTOM,content:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3",children:"Metadata Manager"}),children:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3 selection-icon",children:(0,a.jsx)(ee.$,{onClick:N,icon:"text-highlight",size:"small",variant:"minimal",className:M()({"icon-valid":0!==Object.keys(i.metadata).length}),"aria-label":"Metadata Manager"})})}),(0,a.jsx)(nL.m,{position:eH.yX.BOTTOM,content:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3",children:"Response Analytics"}),children:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3 selection-icon",children:(0,a.jsx)(ee.$,{onClick:c,icon:"predictive-analysis",size:"small",variant:"minimal","aria-label":"Response Analytics",className:"selection-icon"})})}),(0,a.jsx)(nL.m,{position:eH.yX.BOTTOM,content:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3",children:"Toggle Keep Reply"}),children:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3 selection-icon",children:(0,a.jsx)(ee.A,{disabled:n,onClick:()=>{d({keep:!i.keep})},icon:"repeat",size:"small",variant:"minimal",className:M()({"icon-valid":i.keep})})})}),(0,a.jsx)(nL.m,{position:eH.yX.BOTTOM,content:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3",children:"End Story"}),children:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3 selection-icon",children:(0,a.jsx)(ee.A,{disabled:n,onClick:()=>{d({endStory:!i.endStory})},icon:"stop",size:"small",variant:"minimal",className:M()({"icon-valid":i.endStory}),"aria-label":"End Story"})})}),(0,a.jsx)(e$.A,{popoverClassName:J.xPk,position:eH.yX.BOTTOM,content:(0,a.jsx)(aW,{disabled:n,initialDelay:i.delay,initialDelayMode:i.delayMode,onSubmit:e=>{let{delay:n,delayMode:i}=e;return d({delay:n,delayMode:i})}}),children:(0,a.jsx)(nL.m,{position:eH.yX.BOTTOM,content:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3",children:"Delay"}),children:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3 selection-icon",children:(0,a.jsx)(ee.$,{icon:"time",size:"small",variant:"minimal",className:M()({"icon-valid":i.delayMode===em.My.RELATIVE_TO_START||0!==i.delay}),"aria-label":"Delay"})})})}),g===em.mm.WEB&&(0,a.jsx)(e$.A,{popoverClassName:J.xPk,position:eH.yX.BOTTOM,content:(0,a.jsx)(aH,{disabled:n,initialValues:{impact:i.impact},onSubmit:e=>{let{impact:n}=e;d({impact:n})}}),children:(0,a.jsx)(nL.m,{position:eH.yX.BOTTOM,content:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3",children:"Impact"}),children:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3 selection-icon",children:(0,a.jsx)(ee.$,{icon:"star",size:"small",variant:"minimal",className:M()({"icon-valid":null!==i.impact}),"aria-label":"Impact"})})})}),(0,a.jsx)(nL.m,{position:eH.yX.BOTTOM,content:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3",children:"Tap to Continue"}),children:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3 selection-icon",children:(0,a.jsx)(ee.A,{disabled:n,onClick:()=>{d({tapToContinue:!i.tapToContinue})},icon:"hand-up",size:"small",variant:"minimal",className:M()({"icon-valid":i.tapToContinue})})})}),B&&(0,a.jsx)(nL.m,{position:eH.yX.BOTTOM,content:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3",children:"Media Manager"}),children:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3 selection-icon",children:(0,a.jsx)(ee.$,{onClick:h?u:iI.A,icon:"film",size:"small",variant:"minimal","data-cy":"select-media-button",className:M()({"icon-valid":i.imageLayers.nodes.length>0||i.audioTracks.nodes.length>0}),"aria-label":"Media Manager"})})}),(0,a.jsx)(e$.A,{popoverClassName:J.xPk,position:eH.yX.BOTTOM,content:(0,a.jsx)(aK,{disabled:n,initialTagsToSet:i.tagsToSet.filter(eV.A),initialTagsToUnset:i.tagsToUnset.filter(eV.A),onSubmit:e=>{let{tagsToSet:n,tagsToUnset:i}=e;return d({tagsToSet:n,tagsToUnset:i})}}),children:(0,a.jsx)(nL.m,{position:eH.yX.BOTTOM,content:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3",children:"Set/unset tags"}),children:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3 selection-icon",children:(0,a.jsx)(ee.$,{icon:"tag",size:"small",variant:"minimal",className:M()({"icon-valid":i.tagsToSet.length>0||i.tagsToUnset.length>0}),"aria-label":"Tags"})})})}),(0,a.jsx)(nL.m,{position:eH.yX.BOTTOM,content:(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3",children:"Rephrase sentences"}),children:I?(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3 rephrase-spinner",children:(0,a.jsx)(n_.y,{size:15,"aria-label":"Loading"})}):(0,a.jsx)("div",{className:"jsx-3edc8f6db11ea1e3 selection-icon",children:(0,a.jsx)(ee.$,{disabled:!A,icon:"edit",size:"small",variant:"minimal",onClick:()=>{L()},"aria-label":"Add Rephrased Sentences"})})})]}),(0,a.jsx)(aB,{disabled:n,replyPropertiesId:s,isOpen:v,onClose:S,feelingEffects:i.feelingEffects.nodes,moodEffects:i.moodEffects.nodes,relationshipEffects:i.relationshipEffects.nodes}),(0,a.jsx)(ar,{disabled:n,isOpen:p,onClose:N,metadata:i.metadata,updateMetadata:e=>d({metadata:e})}),(0,a.jsx)(a_,{graphNodeId:s,isOpen:m,onClose:c}),B&&(0,a.jsx)(ae,{disabled:n,isOpen:k,onClose:u,animationIn:i.panelAnimationIn,animationOut:i.panelAnimationOut,bubblePoints:i.bubblePoints,bubbleTailPosition:i.bubbleTailPosition,bubbleStyle:i.bubbleStyle,previewReplies:P.map(e=>e.text),stopAllAudio:i.stopAllAudio,media:{audioTracks:i.audioTracks.nodes.map(e=>({...e,behaviour:e.behaviour})),imageLayers:i.imageLayers.nodes.map(e=>({...e,resizeMode:e.resizeMode,orientation:e.orientation,points:[[e.points[0],e.points[1]],[e.points[2],e.points[3]]]}))},onChangeAnimationIn:e=>{G({panelAnimationIn:e})},onChangeAnimationOut:e=>{G({panelAnimationOut:e})},onChangeBubblePoints:e=>{G({bubblePoints:e})},onChangeBubbleTailPosition:e=>{G({bubbleTailPosition:e})},onChangeBubbleStyle:e=>{G({bubbleStyle:e})},onChangeImageLayers:e=>{o(e)},onChangeAudioTracks:e=>{l(e)},onChangeStopAllAudio:e=>{G({stopAllAudio:e})}}),(0,a.jsx)(T(),{id:"3edc8f6db11ea1e3",children:".rephrase-spinner.jsx-3edc8f6db11ea1e3{display:flex;justify-content:center;width:26px;height:25px}.selection-icon.jsx-3edc8f6db11ea1e3{width:22px}"})]})},a8={},a9={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGraphNodePropertiesReply"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesReplyByGraphNodeIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updatePropertiesReply"},name:{kind:"Name",value:"updateGraphNodePropertiesReplyByGraphNodeId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"properties"},name:{kind:"Name",value:"graphNodePropertiesReply"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesReply"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReplyNodeImageLayer"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyImageLayer"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"index"}},{kind:"Field",name:{kind:"Name",value:"resizeMode"}},{kind:"Field",name:{kind:"Name",value:"points"}},{kind:"Field",name:{kind:"Name",value:"orientation"}},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"mediaByMediaId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReplyNodeAudioTrack"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyAudioTrack"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"index"}},{kind:"Field",name:{kind:"Name",value:"behaviour"}},{kind:"Field",name:{kind:"Name",value:"loop"}},{kind:"Field",name:{kind:"Name",value:"volume"}},{kind:"Field",name:{kind:"Name",value:"stopPlaying"}},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"mediaByMediaId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesReply"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReply"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"repliesLocalised"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"metadata"}},{kind:"Field",name:{kind:"Name",value:"keep"}},{kind:"Field",name:{kind:"Name",value:"endStory"}},{kind:"Field",name:{kind:"Name",value:"delay"}},{kind:"Field",name:{kind:"Name",value:"delayMode"}},{kind:"Field",name:{kind:"Name",value:"tapToContinue"}},{kind:"Field",alias:{kind:"Name",value:"imageLayers"},name:{kind:"Name",value:"graphNodePropertiesReplyImageLayersByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReplyNodeImageLayer"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"audioTracks"},name:{kind:"Name",value:"graphNodePropertiesReplyAudioTracksByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReplyNodeAudioTrack"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"stopAllAudio"}},{kind:"Field",name:{kind:"Name",value:"impact"}},{kind:"Field",name:{kind:"Name",value:"isImpactShareable"}},{kind:"Field",name:{kind:"Name",value:"impactImage"}},{kind:"Field",name:{kind:"Name",value:"voiceLocalised"}},{kind:"Field",name:{kind:"Name",value:"panelAnimationIn"}},{kind:"Field",name:{kind:"Name",value:"panelAnimationOut"}},{kind:"Field",name:{kind:"Name",value:"bubblePoints"}},{kind:"Field",name:{kind:"Name",value:"bubbleStyle"}}
1,{kind:"Field",name:{kind:"Name",value:"bubbleTailPosition"}},{kind:"Field",name:{kind:"Name",value:"tagsToSet"}},{kind:"Field",name:{kind:"Name",value:"tagsToUnset"}},{kind:"Field",name:{kind:"Name",value:"useGenerativeMode"}},{kind:"Field",name:{kind:"Name",value:"promptContextLocalised"}},{kind:"Field",alias:{kind:"Name",value:"feelingEffects"},name:{kind:"Name",value:"graphNodePropertiesReplyFeelingEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feeling"}},{kind:"Field",name:{kind:"Name",value:"intensity"}},{kind:"Field",name:{kind:"Name",value:"duration"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"moodEffects"},name:{kind:"Name",value:"graphNodePropertiesReplyMoodEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivity"}},{kind:"Field",name:{kind:"Name",value:"energy"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"relationshipEffects"},name:{kind:"Name",value:"graphNodePropertiesReplyRelationshipEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationship"}},{kind:"Field",name:{kind:"Name",value:"isSetTo"}}]}}]}}]}}]},te={},tn={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateImageLayers"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateImageLayersInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateImageLayers"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReply"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"imageLayers"},name:{kind:"Name",value:"graphNodePropertiesReplyImageLayersByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReplyNodeImageLayer"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReplyNodeImageLayer"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyImageLayer"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"index"}},{kind:"Field",name:{kind:"Name",value:"resizeMode"}},{kind:"Field",name:{kind:"Name",value:"points"}},{kind:"Field",name:{kind:"Name",value:"orientation"}},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"mediaByMediaId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}}]}}]},ti={},ta={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateAudioTracks"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateAudioTracksInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"updateAudioTracks"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"graphNodePropertiesReply"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"audioTracks"},name:{kind:"Name",value:"graphNodePropertiesReplyAudioTracksByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReplyNodeAudioTrack"}}]}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReplyNodeAudioTrack"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyAudioTrack"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"index"}},{kind:"Field",name:{kind:"Name",value:"behaviour"}},{kind:"Field",name:{kind:"Name",value:"loop"}},{kind:"Field",name:{kind:"Name",value:"volume"}},{kind:"Field",name:{kind:"Name",value:"stopPlaying"}},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"mediaByMediaId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}}]}}]},tt=(0,t.memo)(e=>{let{id:n,disabled:i,properties:d,onStartEdge:o}=e,[l]=function(e){let n={...a8,...void 0};return eq.n(a9,n)}(),s=(0,t.useCallback)(e=>{l({variables:{input:{graphNodeId:n,graphNodePropertiesReplyPatch:e}}})},[n,l]),[r]=function(e){let n={...te,...void 0};return eq.n(tn,n)}(),m=(0,t.useCallback)(e=>{r({variables:{input:{graphNodeId:n,imageLayers:e.map(e=>({...e,points:[...e.points[0],...e.points[1]],orientation:e.orientation}))}}})},[n,r]),[c]=function(e){let n={...ti,...void 0};return eq.n(ta,n)}(),k=(0,t.useCallback)(e=>{c({variables:{input:{graphNodeId:n,audioTracks:e}}})},[n,c]),{sourceLanguageCode:u,supportedLanguageCodes:p}=(0,W.E)(),{characters:N}=(0,eK.Z)(),v="Character",S=p[0];if(0===(d.repliesLocalised[u]||d.repliesLocalised[S]||[{id:crypto.randomUUID(),text:""}]).length)v="Empty";else if(null!==d.characterId){let e=N.find(e=>{let{id:n}=e;return n===d.characterId});e&&(v=e.name)}
1d.useGenerativeMode&&(v+=" (AI)"),d.tapToContinue&&(v+=" (Tap)");let h="linear-gradient(to left, var(--dark-green), var(--green))";return d.useGenerativeMode?h="linear-gradient(to left, var(--light-blue), var(--light-green))":d.tapToContinue&&(h="linear-gradient(to left, var(--dark-green), var(--grey-green))"),(0,a.jsxs)("div",{children:[(0,a.jsx)($,{nodeId:n,title:v,icon:"/static/images/node-icons/icon-node-replynode.svg",textColor:d.useGenerativeMode?"var(--dark-grey)":void 0,backgroundColor:h}),(0,a.jsx)(a7,{disabled:i,properties:d,updateProperties:s,updateImageLayers:m,updateAudioTracks:k,graphNodeId:n}),(0,a.jsx)(H,{id:n,type:"left"}),(0,a.jsx)(H,{id:n,type:"right",onStartEdge:o})]})});var td=i(6346),to=i(70234);let tl={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGraphNodePropertiesSubplot"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesSubplotByGraphNodeIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updatePropertiesSubplot"},name:{kind:"Name",value:"updateGraphNodePropertiesSubplotByGraphNodeId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"properties"},name:{kind:"Name",value:"graphNodePropertiesSubplot"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesSubplot"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesSubplot"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesSubplot"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"subplotId"}}]}}]},ts=e=>{let{onSubmit:n}=e;return(0,a.jsx)(at.l1,{initialValues:{name:""},onSubmit:async(e,i)=>{let{setSubmitting:a}=i,t={name:e.name};try{await n(t)}catch(e){await (0,n4.L_)("Something went wrong creating this subplot.")}finally{a(!1)}},validate:e=>{let n={};return e.name||(n.name="Must have a name for the new subplot."),console.log(n),n},children:e=>{let{isValid:n,isSubmitting:i}=e;return(0,a.jsxs)(at.lV,{children:[(0,a.jsx)(nA.g,{label:"Subplot name",children:(0,a.jsx)(at.D0,{id:"name",name:"name",className:"".concat(J.bOq," ").concat(J.I$u," ").concat(J.I5l),placeholder:"Enter a subplot name..."})}),(0,a.jsx)(ee.$,{className:"submit-button",intent:eN.J.SUCCESS,size:"large",type:"submit",disabled:!n||i,loading:i,fill:!0,children:"Create Subplot"})]})}})},tr=e=>{let{isOpen:n,onClose:i,createSubplot:t}=e;return(0,a.jsx)(en.l,{isOpen:n,onClose:i,title:"Create Subplot",style:{paddingBottom:0},children:(0,a.jsx)("div",{className:J.sar,onWheel:e=>{e.stopPropagation()},children:(0,a.jsx)(ts,{onSubmit:t})})})},tm=(0,t.memo)(e=>{let{id:n,onStartEdge:i,properties:d,disabled:o}=e,[l,s]=(0,t.useState)(!1),{storyVersionId:r}=(0,W.E)(),{subplots:m}=(0,eK.Z)(),{storyId:c,version:k}=(0,W.E)(),[u]=(0,td.I)({refetchQueries:[{query:to.sj,variables:{storyVersionId:r}},{query:iN.B4,variables:{storyVersionId:r}}]}),p=m.find(e=>e.id===d.subplotId),N="number"==typeof c&&"number"==typeof k?(0,U.A)(c,k):null;return(0,a.jsxs)("div",{className:"jsx-2aaac40370863a60",children:[(0,a.jsx)($,{nodeId:n,title:"Subplot",icon:"/static/images/node-icons/icon-node-sceneentrynode.svg",backgroundColor:"linear-gradient(to left, var(--dark-blue), var(--blue-2))"}),(0,a.jsxs)(Y,{children:[(0,a.jsx)(E.s,{mutation:tl,children:e=>{let i=i=>e({variables:{input:{graphNodeId:n,graphNodePropertiesSubplotPatch:i}}});return(0,a.jsxs)(Q.t,{children:[(0,a.jsx)(eb.g,{disabled:o,options:[{value:"",label:"Select a subplot..."},...m.map(e=>({value:e.id,label:e.name||""}))],value:null===d.subplotId?"":d.subplotId,onChange:e=>{let{currentTarget:{value:n}}=e;return i({subplotId:""===n?null:+n})},fill:!0,name:"select-subplot","aria-label":"Select subplot"}),null===d.subplotId&&(0,a.jsx)(ee.$,{icon:"arrow-right",variant:"minimal",disabled:!0,"aria-label":"Go to subplot"}),null!==d.subplotId&&void 0!==p&&N&&(0,a.jsx)(nL.m,{content:"Go to subplot",children:(0,a.jsx)("div",{className:"jsx-2aaac40370863a60",children:(0,a.jsx)(ee.A,{href:"".concat(N,"/graph/").concat(p.graphId),icon:"arrow-right",variant:"minimal"})})}),(0,a.jsx)(tr,{isOpen:l,onClose:()=>s(!1),createSubplot:async e=>{let n=await u({variables:{input:{subplot:{name:e.name,storyVersionId:r}}}});n&&n.data&&n.data.createSubplot&&n.data.createSubplot.subplot&&(i({subplotId:n.data.createSubplot.subplot.id}),s(!1))}})]})}}),!o&&void 0===p&&(0,a.jsx)("button",{type:"button",onClick:()=>s(!0),className:"jsx-2aaac40370863a60",children:"Create a subplot..."})]}),(0,a.jsx)(H,{id:n,type:"left"}),(0,a.jsx)(H,{id:n,type:"right",onStartEdge:i}),(0,a.jsx)(T(),{id:"2aaac40370863a60",children:"button.jsx-2aaac40370863a60{background:none;color:var(--link-green);border:none;padding:0;cursor:pointer;margin:5px 0}"})]})});function tc(e,n){return e.includes(n)?e.filter(e=>e!==n):[...e,n]}let tk=e=>{let{disabled:n=!1,intents:i,onChange:t}=e;return(0,a.jsxs)("div",{className:"jsx-eb921cc6904dce64 intent-selector",children:[(0,a.jsx)(ee.$,{disabled:n,intent:i.includes(em.$n.THUMBS_UP)?eN.J.PRIMARY:eN.J.NONE,onClick:()=>t(tc(i,em.$n.THUMBS_UP)),children:"Thumbs up"}),(0,a.jsx)(ee.$,{disabled:n,intent:i.includes(em.$n.THUMBS_DOWN)?eN.J.PRIMARY:eN.J.NONE,onClick:()=>t(tc(i,em.$n.THUMBS_DOWN)),children:"Thumbs down"}),(0,a.jsx)(ee.$,{disabled:n,intent:i.includes(em.$n.APATHY)?eN.J.PRIMARY:eN.J.NONE,onClick:()=>t(tc(i,em.$n.APATHY)),children:"Don't care"}),(0,a.jsx)(ee.$,{disabled:n,intent:i.includes(em.$n.CONFUSED)?eN.J.PRIMARY:eN.J.NONE,onClick:()=>t(tc(i,em.$n.CONFUSED)),children:"Confused"}),(0,a.jsx)(ee.$,{disabled:n,intent:i.includes(em.$n.COMPLIMENT)?eN.J.PRIMARY:eN.J.NONE,onClick:()=>t(tc(i,em.$n.COMPLIMENT)),children:"Compliment"}),(0,a.jsx)(ee.$,{disabled:n,intent:i.includes(em.$n.INSULT)?eN.J.PRIMARY:eN.J.NONE,onClick:()=>t(tc(i,em.$n.INSULT)),children:"Insult"}
1),(0,a.jsx)(T(),{id:"eb921cc6904dce64",children:'.intent-selector.jsx-eb921cc6904dce64{display:grid;grid-template-areas:"a a";grid-auto-columns:1fr}.intent-selector.jsx-eb921cc6904dce64>button{border-radius:unset;margin-right:-1px;margin-bottom:-1px}.intent-selector.jsx-eb921cc6904dce64>button:first-child{border-top-left-radius:5px}.intent-selector.jsx-eb921cc6904dce64>button:nth-child(2){border-top-right-radius:5px}.intent-selector.jsx-eb921cc6904dce64>button:nth-child(5){border-bottom-left-radius:5px}.intent-selector.jsx-eb921cc6904dce64>button:last-child{border-bottom-right-radius:5px}'})]})};var tu=i(59345),tp=i(33285),tN=i(61009),tv=i(4565);let tS=e=>{let{onIntentCreated:n,intentExamplesToAdd:i}=e,{storyVersionId:d,sourceLanguageCode:o}=(0,W.E)(),[l]=(0,tv.L)({refetchQueries:[{query:tN.xW,variables:{storyVersionId:d,searchByName:""}},{query:iN.B4,variables:{storyVersionId:d}}]}),s=(0,t.useCallback)(e=>l({variables:{input:{intent:{...e,storyVersionId:d}}}}),[l,d]);return(0,a.jsxs)("div",{className:"jsx-3a03beede211d7f8 "+(M()("intent")||""),children:[(0,a.jsx)(at.l1,{initialValues:{name:""},onSubmit:async(e,a)=>{let{setSubmitting:t}=a,d={name:e.name.trim(),phrasesLocalised:{[o]:i}};try{var l,r,m;let e=await s(d),i=null==e||null==(m=e.data)||null==(r=m.createIntent)||null==(l=r.intent)?void 0:l.id;if(!i)throw Error("IntentId is undefined");await n(i)}catch(e){await (0,n4.L_)("Something went wrong creating this custom intent."),tp.Cp(e)}finally{t(!1)}},validate:e=>{let n={};return e.name||(n.name="Must have a name for the new custom intent."),e.name.match(/^[A-Za-z0-9_ -]+$/)||(n.name="Name must only include letters, numbers, spaces, dashes and underscores."),n},children:e=>{let{isValid:n,isSubmitting:t,errors:d,dirty:o}=e;return(0,a.jsxs)(at.lV,{children:[(0,a.jsx)(nA.g,{label:"Intent Name",labelFor:"name",helperText:d.name?"Letters, numbers, spaces, dashes and underscores only.":void 0,intent:d.name?eN.J.DANGER:eN.J.NONE,children:(0,a.jsx)(at.D0,{name:"name",className:M()(J.bOq,J.I5l,{[J.n4T]:d.name}),placeholder:"Enter the name of the intent..."})}),(0,a.jsx)(nA.g,{label:"Intent Examples",children:i.map(e=>(0,a.jsx)("div",{className:"jsx-3a03beede211d7f8 intent-example",children:e},e))}),(0,a.jsx)(ee.$,{className:"submit-button",intent:eN.J.SUCCESS,size:"large",type:"submit",disabled:!o||!n||t,loading:t,fill:!0,children:"Create Custom Intent"})]})}}),(0,a.jsx)(T(),{id:"3a03beede211d7f8",children:".intent-example.jsx-3a03beede211d7f8{margin-left:15px;padding:3px;font-style:italic}"})]})},th=e=>{let{isOpen:n,onClose:i,onIntentCreated:t,intentExamplesToAdd:d}=e,o=d&&1===d.length&&""===d[0];return(0,a.jsx)(en.l,{isOpen:n,onClose:i,title:"Create Custom Intent",style:{paddingBottom:0},icon:"array-string",children:(0,a.jsx)("div",{className:J.sar,onWheel:e=>{e.stopPropagation()},children:o?(0,a.jsx)(nz.I,{title:"Nothing to convert...",description:"Please type intents in the player node text field to be able to convert it into a custom intent!",icon:"warning-sign",iconMuted:!1}):(0,a.jsx)(tS,{onIntentCreated:t,intentExamplesToAdd:d})})})},tg=(0,t.forwardRef)((e,n)=>{let{readOnly:i,onIntentCreated:t,isCreateCustomIntentOpen:d,setIsCreateCustomIntentOpen:o,intentExamplesToAdd:l,...s}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(th,{isOpen:d,onClose:()=>o(!1),onIntentCreated:t,intentExamplesToAdd:l}),(0,a.jsx)(tu.Ay,{...s,readOnly:i,onContextMenu:i?void 0:e=>{e.preventDefault(),A.t.show((0,a.jsx)(w.W,{children:(0,a.jsx)(B.D,{icon:"array-string",text:"Convert to custom intent...",onClick:()=>o(!0)})}),{left:e.clientX,top:e.clientY})},ref:n})]})}),ty=nV.l.ofType(),tF=(e,n)=>{let{handleClick:i,modifiers:t}=n;return t.matchesPredicate?(0,a.jsx)(B.D,{active:t.active,disabled:t.disabled,onClick:i,text:e.name},e.id):null},tx=e=>{var n;let{disabled:i,properties:d,updateProperties:o,entities:l,intents:s}=e,r=[...l.map(e=>e.term),...aZ.p],{sourceLanguageCode:m,supportedLanguageCodes:c,storyId:k}=(0,W.E)(),[u,{loading:p}]=a2(),N=c[0],v=d.intentsSpecificLocalised[m]||[],S=d.intentsSpecificLocalised[N]||[],[h,g]=(0,t.useState)(!1),[y,F]=(0,t.useState)(!1),x=(null==(n=d.intentsSpecificLocalised[m])?void 0:n.map(e=>e.text))||[],f=async()=>{let e=v.map(e=>e.text);try{var n,i,a,t;let{data:l,errors:s}=await u({variables:{input:{sentences:e,storyId:k}}});if(s||(null==l||null==(n=l.rephrase)?void 0:n.error)||0===(null!=(t=null==l||null==(i=l.rephrase)?void 0:i.suggestion)?t:[]).length)return void(0,n4.L_)("Something went wrong while rephrasing, if this persists please contact us directly at [email protected]");let r=[...v,...(null==l||null==(a=l.rephrase)?void 0:a.suggestion)?[{id:crypto.randomUUID(),text:l.rephrase.suggestion}]:[]];o({intentsSpecificLocalised:{...d.intentsSpecificLocalised,[m]:r}})}catch(e){(0,n4.L_)("Something went wrong while rephrasing, if this persists please contact us directly at [email protected]")}},b=v.filter(e=>""!==e.text.trim()).length>=1;return(0,a.jsxs)("div",{className:T().dynamic([["20b272a41c510c64",[J.wWS]]]),children:[(0,a.jsxs)(Y,{children:[d.mode===em.nx.SPECIFIC&&(0,a.jsx)("div",{onFocus:()=>{g(!0)},onBlur:()=>{g(!1)},onMouseEnter:()=>{g(!0)},onMouseLeave:()=>{g(!1)},className:T().dynamic([["20b272a41c510c64",[J.wWS]]]),children:(0,a.jsx)(e$.A,{disabled:m===N||0===S.length,isOpen:h,position:eH.yX.RIGHT_TOP,targetTagName:"div",wrapperTagName:"div",minimal:!0,autoFocus:!1,enforceFocus:!1,content:(0,a.jsx)("div",{style:{width:255},className:T().dynamic([["20b272a41c510c64",[J.wWS]]]),children:(0,a.jsx)(a0.Dc,{areNoValuesAllowed:!0,disabled:!0,values:S,tagList:r})}),children:(0,a.jsx)(a0.Dc,{component:tg,componentProps:()=>({isCreateCustomIntentOpen:y,setIsCreateCustomIntentOpen:F,intentExamplesToAdd:x,onIntentCreated:e=>{try{o({customIntentIds:[...d.customIntentIds,e],intentsSpecificLocalised:{...d.intentsSpecificLocalised,[m]:[{id:crypto.randomUUID(),text:""}]}})}catch(e){(0,n4.L_)("Something went wrong creating this custom intent.")}finally{F(!1)}}}),disabled:i,onUpdateValues:e=>o({intentsSpecificLocalised:{...d.intentsSpecificLocalised,[m]:e}}),values:0===v.length?[{id:crypto.randomUUID(),text:""}]:v,tagList:r})})}),d.mode===em.nx.GENERAL&&(0,a.jsx)(tk,{disabled:i,intents:d.intentsGeneral,onChange:e=>o({intentsGeneral:e})}),(0,a.jsx)(ty,{items:s,onItemSelect:e=>{o({customIntentIds:d.customIntentIds.includes(e.id)?d.customIntentIds.filter(n=>n!==e.id):[...d.customIntentIds,e.id]})},itemRenderer:tF,filterable:!1,noResults:(0,a.jsx)(B.D,{disabled:!0,text:"No custom intents available."}),children:(0,a.jsx)(ee.$,{icon:"plus",variant:"minimal",size:"small",intent:"primary",fill:!0,style:{marginTop:5},children:"Link a custom intent"})}),p?(0,a.jsx)(n_.y,{size:n_.H.SMALL,"aria-label":"Loading"}):(0,a.jsx)(ee.$,{disabled:!b,icon:"edit",variant:"minimal",size:"small",intent:"primary",fill:!0,onClick:()=>f(),children:"Rephrase"}),d.customIntentIds.map(e=>{let n=s.find(n=>n.id===e);return n?(0,a.jsxs)("div",{style:{marginTop:5},className:T().dynamic([["20b272a41c510c64",[J.wWS]]]),children:["Custom intent: ",(0,a.jsx)(nO.Cy,{children:n.name})," ",(0,a.jsx)(ee.$,{variant:"minimal",size:"small",icon:"cross",intent:"danger",onClick:()=>{o({customIntentIds:d.customIntentIds.filter(n=>n!==e)})},"aria-label":"Remove"})]},e):null})]}),(0,a.jsxs)(io,{children:[(0,a.jsx)(nZ.Sc,{disabled:i,checked:d.mode===em.nx.GENERAL,label:"Use intents",onChange:()=>o({mode:d.mode===em.nx.GENERAL?em.nx.SPECIFIC:em.nx.GENERAL})}),d.mode===em.nx.SPECIFIC&&(0,a.jsx)(nZ.Sc,{disabled:i,checked:!0===d.exact,label:"Exact match",onChange:()=>o({exact:!d.exact})})]}),(0,a.jsx)(T(),{id:"20b272a41c510c64",dynamic:[J.wWS],children:"div.__jsx-style-dynamic-selector .".concat(J.wWS,"{width:100%}")})]})},tf={},tb={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGraphNodePropertiesTrigger"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesTriggerByGraphNodeIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updatePropertiesTrigger"},name:{kind:"Name",value:"updateGraphNodePropertiesTriggerByGraphNodeId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"properties"},name:{kind:"Name",value:"graphNodePropertiesTrigger"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesTrigger"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesTrigger"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesTrigger"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"mode"}},{kind:"Field",name:{kind:"Name",value:"intentsSpecificLocalised"}},{kind:"Field",name:{kind:"Name",value:"intentsGeneral"}},{kind:"Field",name:{kind:"Name",value:"exact"}},{kind:"Field",name:{kind:"Name",value:"customIntentIds"}}]}}]},tC=(0,t.memo)(e=>{let{id:n,properties:i,onStartEdge:d,disabled:o}=e,[l]=function(e){let n={...tf,...void 0};return eq.n(tb,n)}(),s=(0,t.useCallback)(e=>{l({variables:{input:{graphNodeId:n,graphNodePropertiesTriggerPatch:e}},optimisticResponse:{__typename:"Mutation",updatePropertiesTrigger:{__typename:"UpdateGraphNodePropertiesTriggerPayload",properties:{__typename:"GraphNodePropertiesTrigger",...i,...e}}}})},[l,n,i]),{entities:r,intents:m}=(0,eK.Z)();return(0,a.jsxs)("div",{children:[(0,a.jsx)($,{nodeId:n,title:"Player",icon:"/static/images/node-icons/icon-node-triggernode.svg",backgroundColor:"linear-gradient(to right, #24c6dc, #514a9d)"}),(0,a.jsx)(tx,{disabled:o,properties:i,updateProperties:s,entities:r,intents:m}),(0,a.jsx)(H,{id:n,type:"left"}),(0,a.jsx)(H,{id:n,type:"right",onStartEdge:d})]})}),tG={},tj={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdateGraphNodePropertiesWildcard"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdateGraphNodePropertiesWildcardByGraphNodeIdInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"updatePropertiesWildcard"},name:{kind:"Name",value:"updateGraphNodePropertiesWildcardByGraphNodeId"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"properties"},name:{kind:"Name",value:"graphNodePropertiesWildcard"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesWildcard"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesWildcard"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesWildcard"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"overrideSubplots"}},{kind:"Field",name:{kind:"Name",value:"overrideImprovisation"}}]}}]},tI={ACTION:Z,COMMENT:er,FUNCTION:ef,GATE:nB,GENERATION:ia,GRAPH_ENTRY:it,GRAPH_EXIT:id,MEDIA:ir,MEMORY:ih,PASSTHROUGH:ig,REPLY:tt,SUBPLOT:tm,TRIGGER:tC,WILDCARD:(0,t.memo)(e=>{let n,{id:i,onStartEdge:t,properties:d,disabled:o}=e,{isGenerativeCharacterTrainingEnabled:l}=(0,W.E)(),[s]=function(e){let n={...tG,...void 0};return eq.n(tj,n)}(),r=e=>s({variables:{input:{graphNodeId:i,graphNodePropertiesWildcardPatch:e}}});return n=!1===d.overrideImprovisation?"linear-gradient(to right, var(--wildcard-bg-1), var(--dark-grey))":"linear-gradient(to right, var(--light-grey), var(--white))",(0,a.jsxs)("div",{children:[(0,a.jsx)($,{nodeId:i,title:l&&!d.overrideImprovisation?"Wildcard (Improv)":"Wildcard",backgroundColor:n,textColor:d.overrideImprovisation?"black":"white",icon:(0,a.jsx)(n3.I,{icon:"asterisk",color:d.overrideImprovisation?"black":"white",size:20,style:{pointerEvents:"none"}})}),(0,a.jsx)(H,{id:i,type:"left"}),(0,a.jsx)(H,{id:i,type:"right",onStartEdge:t}),(0,a.jsxs)(io,{children:[(0,a.jsx)(nZ.Sc,{name:"override-subplot",disabled:o,checked:!d.overrideSubplots,label:"Allow subplots?",onChange:()=>{r({overrideSubplots:!d.overrideSubplots})}}),l&&(0,a.jsx)(nZ.Sc,{name:"override-improvisation",disabled:o,checked:!d.overrideImprovisation,label:"Allow improvisation?",onChange:()=>{r({overrideImprovisation:!d.overrideImprovisation})}})]})]})})},tP=e=>{let{id:n,type:i,data:t,selected:d,isPending:o,...l}=e,s=tI[i],m=(0,R.O$)(e=>e.graph.debugPath);return(0,a.jsx)(r,{children:(0,a.jsxs)("div",{"data-cy":i,className:"jsx-875a
1dc213c6d7da1 "+(M()("story-node",{debugSelected:!!m.find(e=>{let{nodes:i}=e;return i.includes(n)}),pulse:m[m.length-1]&&m[m.length-1].nodes.includes(n),selected:d,passthrough:"PASSTHROUGH"===i,isPending:o})||""),children:[(0,a.jsx)(s,{properties:t,...l,id:n,className:"jsx-875adc213c6d7da1 "+(l&&null!=l.className&&l.className||"")}),(0,a.jsx)(T(),{id:"875adc213c6d7da1",children:".story-node.jsx-875adc213c6d7da1{border-radius:10px;background:var(--graph-node-background-color);box-shadow:0px 2px 25px rgb(0 0 0/5%),0px 0px 0px 1px var(--accent-2);width:255px}.story-node.passthrough.jsx-875adc213c6d7da1{width:50px}.isPending.jsx-875adc213c6d7da1{opacity:.5}.debugSelected.jsx-875adc213c6d7da1{box-shadow:0px 2px 25px rgb(0 0 0/5%),0px 0px 0px 4px var(--dark-green)}.selected.jsx-875adc213c6d7da1{box-shadow:0px 2px 25px rgb(0 0 0/5%),0px 0px 0px 4px var(--yellow)!important}.pulse.jsx-875adc213c6d7da1{animation:pulse 1.5s infinite}@keyframes pulse{0%{box-shadow:0px 0px 0px 4px rgba(0,0,0,.5)}50%{box-shadow:0px 0px 0px 6px var(--dark-green)}100%{box-shadow:0px 0px 0px 4px rgba(0,0,0,.5)}}"})]})})};var tT=i(79477);let tD=e=>{let{isActive:n=!1,children:i}=e,[d,o]=(0,t.useState)();return(0,t.useEffect)(()=>{if(n){let e=e=>{let{clientX:n,clientY:i}=e;return o({x:n,y:i})};return window.addEventListener("mousemove",e),()=>{o(void 0),window.removeEventListener("mousemove",e)}}},[n]),d?(0,a.jsx)(tT.Z,{children:(0,a.jsx)("div",{style:{position:"absolute",top:d.y-10,left:d.x+10},children:i})}):null},tM=(0,t.memo)(e=>{let n,i,{id:d,startX:o,startY:l,endX:s,endY:r,selected:m=!1,debugSelected:c=!1,playthroughs:k=0,priority:u=0,onClick:p=()=>void 0}=e,[N,v]=(0,t.useState)(!1),[S,h]=(0,t.useState)(!1),g=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!g.current)return g.current=!0,()=>{g.current=!1};v(!0);let e=setTimeout(()=>v(!1),500);return()=>{g.current=!1,clearTimeout(e)}},[k]);let y=(0,t.useCallback)(e=>{p&&p(e,d)},[d,p]),F=(n=o+50,i=s-50,"M ".concat(o," ").concat(l," C ").concat(n," ").concat(l," ").concat(i," ").concat(r," ").concat(s," ").concat(r)),x={x:o+(s-o)/2,y:l+(r-l)/2};return(0,a.jsxs)("g",{"data-edgeid":d,className:"jsx-7a3d1604f2e1f0a5",children:[(0,a.jsx)("path",{onClick:y,d:F,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),className:"jsx-7a3d1604f2e1f0a5 "+(M()({animate:N,selected:m,debug:c})||"")}),(0,a.jsx)(tD,{isActive:S,children:(0,a.jsxs)("div",{className:"jsx-7a3d1604f2e1f0a5 playthrough-tooltip",children:[(0,a.jsxs)("div",{className:"jsx-7a3d1604f2e1f0a5",children:[k," playthroughs"]}),0!==u&&(0,a.jsxs)("div",{className:"jsx-7a3d1604f2e1f0a5",children:["Priority ",u]})]})}),(0,a.jsx)("text",{onClick:y,x:x.x,y:x.y,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),"data-cy":"edge-playthrough-number",className:"jsx-7a3d1604f2e1f0a5 "+(M()({selected:m})||""),children:k}),u&&(0,a.jsxs)("text",{onClick:y,x:x.x,y:x.y+20,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),className:"jsx-7a3d1604f2e1f0a5 "+(M()({selected:m})||""),children:["Priority ",u]}),(0,a.jsx)(T(),{id:"7a3d1604f2e1f0a5",children:"g.jsx-7a3d1604f2e1f0a5{pointer-events:all}path.jsx-7a3d1604f2e1f0a5{fill:none;stroke:var(--graph-edge-color);stroke-width:4;stroke-linecap:round;opacity:.6}path.jsx-7a3d1604f2e1f0a5:hover{opacity:1}path.debug.jsx-7a3d1604f2e1f0a5{stroke:var(--green-4)}path.selected.jsx-7a3d1604f2e1f0a5{stroke:var(--yellow);opacity:1}text.jsx-7a3d1604f2e1f0a5{fill:var(--grey-2)}
1text.jsx-7a3d1604f2e1f0a5:hover{fill:var(--mid-grey)}text.selected.jsx-7a3d1604f2e1f0a5{fill:#var(--white-2)}text.selected.jsx-7a3d1604f2e1f0a5:hover{fill:var(--pure-white)}text.hovered.jsx-7a3d1604f2e1f0a5{z-index:100;background:black}path.jsx-7a3d1604f2e1f0a5,text.jsx-7a3d1604f2e1f0a5{cursor:pointer}path.animate.jsx-7a3d1604f2e1f0a5{animation:pulse.5s}.playthrough-tooltip.jsx-7a3d1604f2e1f0a5{background:rgba(0,0,0,.8);border-radius:5px;color:white;padding:5px}@keyframes pulse{0%{stroke:var(--dark-grey-2);stroke-width:4}30%{stroke:black;stroke-width:8}100%{stroke:var(--white-2);stroke-width:4}}"})]})}),tR=e=>{let{id:n,start:i,end:t,selected:d,select:o,data:l}=e,s=!!(0,R.O$)(e=>e.graph.debugPath).find(e=>{let{edges:i}=e;return i.includes(n)});return(0,a.jsx)(tM,{id:n,startX:i.x,startY:i.y,endX:t.x,endY:t.y,selected:d,onClick:o,debugSelected:s,...l||{}},n||"new-edge")};var tE=i(24556);let tw=["#2022c1","#208bc1","#20c162","#ffc949","#a960ee","#fc4a1a","#bb2f75","#353535"],tB=(0,t.memo)(e=>{let{id:n,width:i,height:t,shouldMoveNodes:d,handleClassname:o,undraggableClassname:l,data:s,onDeleteNodeGroup:r,onUpdateNodeGroup:m,selected:c,isPending:k}=e;return(0,a.jsxs)("div",{className:"jsx-967eab76b3c6fba9 "+T().dynamic([["cf8a0702ae857454",["".concat(s.color,"88"),i,t]]])+" "+(M()("node-group",{selected:c,pending:k})||""),children:[(0,a.jsx)(S,{children:(0,a.jsxs)("header",{className:"jsx-967eab76b3c6fba9 "+T().dynamic([["cf8a0702ae857454",["".concat(s.color,"88"),i,t]]])+" "+"".concat(J.nd0," ").concat(o),children:[s&&(0,a.jsx)("div",{className:"jsx-967eab76b3c6fba9 "+T().dynamic([["cf8a0702ae857454",["".concat(s.color,"88"),i,t]]])+" node-group-text",children:(0,a.jsx)(tE.w,{placeholder:"Give this node group a name...",defaultValue:s.label,className:"".concat(l," editable-text"),onConfirm:e=>{m&&m(n,{label:e})}},s.label)}),(0,a.jsxs)("div",{className:"jsx-967eab76b3c6fba9 "+T().dynamic([["cf8a0702ae857454",["".concat(s.color,"88"),i,t]]])+" node-group-options",children:[(0,a.jsx)(e$.A,{content:(0,a.jsxs)("div",{className:"jsx-967eab76b3c6fba9 "+T().dynamic([["cf8a0702ae857454",["".concat(s.color,"88"),i,t]]]),children:[(0,a.jsx)("h5",{className:"jsx-967eab76b3c6fba9 "+T().dynamic([["cf8a0702ae857454",["".concat(s.color,"88"),i,t]]]),children:"Choose a colour!"}),(0,a.jsx)("div",{className:"jsx-967eab76b3c6fba9 "+T().dynamic([["cf8a0702ae857454",["".concat(s.color,"88"),i,t]]])+" colors",children:tw.map(e=>(0,a.jsx)("button",{type:"button",style:{background:e},onClick:()=>{m&&m(n,{color:e})},"aria-label":"Select ".concat(e),className:"jsx-967eab76b3c6fba9 "+T().dynamic([["cf8a0702ae857454",["".concat(s.color,"88"),i,t]]])+" color"},e))})]}),popoverClassName:J.xPk,children:(0,a.jsx)(ee.$,{variant:"minimal",icon:"tint","aria-label":"Colour"})}),(0,a.jsx)(ee.$,{variant:"minimal",icon:d?"lock":"unlock",onClick:()=>{m&&m(n,{shouldMoveNodes:!d})},"aria-label":d?"Lock":"Unlock"}),(0,a.jsx)(ee.$,{variant:"minimal",icon:"trash",onClick:()=>{r&&r(n)},"aria-label":"Delete"})]})]})}),(0,a.jsx)(T(),{id:"967eab76b3c6fba9",children:'.node-group.jsx-967eab76b3c6fba9{font-size:20px}.node-group.selected.jsx-967eab76b3c6fba9{box-shadow:0px 2px 25px rgb(0 0 0/5%),0px 0px 0px 4px var(--yellow)}.node-group.pending.jsx-967eab76b3c6fba9{opacity:.5}.node-group.pending.jsx-967eab76b3c6fba9 header.jsx-967eab76b3c6fba9{pointer-events:none}header.jsx-967eab76b3c6fba9{display:flex;justify-content:space-between;align-items:center;height:35px;background:rgba(0,0,0,.5);padding-left:5px}.node-group-text.jsx-967eab76b3c6fba9{flex:1;min-width:0px}.node-group-options.jsx-967eab76b3c6fba9{flex:0 0 auto}h5.jsx-967eab76b3c6fba9{margin-bottom:10px}.colors.jsx-967eab76b3c6fba9{display:grid;grid-gap:5px;grid-template-areas:"a a a a"}.color.jsx-967eab76b3c6fba9{width:40px;height:40px;border-radius:2px;cursor:pointer;border:1px solid black}'}),(0,a.jsx)(T(),{id:"cf8a0702ae857454",dynamic:["".concat(s.color,"88"),i,t],children:".node-group.__jsx-style-dynamic-selector{background:".concat("".concat(s.color,"88"),";width:").concat(i,"px;height:").concat(t,"px}")})]})}),tA=e=>{let{x:n,y:i,type:a}=e;return"PASSTHROUGH"===a?{x:n+50,y:i+16}:{x:n+255,y:i+16}},tL=e=>{let{x:n,y:i}=e;return{x:n,y:i+16}},tO=e=>(0,a.jsx)(tP,{...e}),tV=e=>(0,a.jsx)(tR,{...e}),t_=e=>(0,a.jsx)(ep,{...e}),tz=e=>{let{graph:n,disabled:i=!1,onCreateNode:d,onDeleteNode:o,onCreateEdge:l,onDeleteEdge:s,onCreateNodeGroup:r,onUpdateNodeGroup:m,onDeleteNodeGroup:c,selection:k,onChangeSelection:u,onMoveNodes:p,position:N,onChangePosition:v,pendingGraph:S,onCommitPendingGraph:h}=e,g=(0,t.useCallback)((e,n)=>{m&&m(e,{...n})},[m]),y=(0,t.useCallback)((e,n)=>{m&&m(e,{...n})},[m]),F=(0,t.useCallback)(e=>(0,a.jsx)(tB,{onUpdateNodeGroup:m,onDeleteNodeGroup:c,...e},e.id),[m,c]);return(e=>{let n=(0,t.useCallback)(n=>{let i=n.target;("TEXTAREA"===i.tagName||i.isContentEditable)&&e()},[e]);(0,t.useEffect)(()=>(document.body.addEventListener("focus",n,!0),()=>{document.body.removeEventListener("focus",n,!0)}),[n])})((0,t.useCallback)(()=>{u({nodes:[],edges:[]})},[u])),(0,a.jsx)(I,{graph:n,disabled:i,onCreateNode:d,onDeleteNode:o,onCreateEdge:l,onDeleteEdge:s,onCreateNodeGroup:r,onResizeNodeGroup:y,onDeleteNodeGroup:c,onMoveNodes:p,onMoveNodeGroup:g,getSourcePinOffset:tA,getTargetPinOffset:tL,renderNode:tO,renderEdge:tV,renderCreationDialog:t_,renderNodeGroup:F,selection:k,onChangeSelection:u,position:N,onChangePosition:v,backgroundColor:"var(--graph-background-color)",hatchingColor:"var(--graph-node-hatching-color)",hatchingSize:150,pendingGraph:S,onCommitPendingGraph:h})}},80204:(e,n,i)=>{i.d(n,{Dc:()=>N});var a=i(7765),t=i(15977),d=i(32418),o=i.n(d),l=i(15200),s=i(17396),r=i(12113),m=i(81206),c=i.n(m),k=i(28850),u=i(59345);let p=e=>e.map(e=>({serialized:e,deserialized:(0,u.iu)(e.text)})),N=e=>{let{component:n=u.Ay,componentProps:i=()=>({}),placeholder:d,...m}=e,{values:N,getEditorProps:v}=(e=>
1{let{onUpdateValues:n,values:i,areNoValuesAllowed:a=!1,shouldDebounce:d=!0}=e,[m,k]=(0,t.useState)(!1),[N,v]=(0,t.useState)(()=>p(i));(0,l.A)(()=>{let e=!c()(i,N.map(e=>e.serialized));!m&&e?(k(!1),v(p(i))):m&&!e&&k(!1)},[i]);let[,S]=(0,s.A)(()=>{n&&m&&n(N.map(e=>e.serialized))},1e3*!!d,[N,m]);(0,r.A)(()=>{S()}),(0,l.A)(()=>{0===N.length&&(S(),n&&n(N.map(e=>e.serialized)))},[N]);let h=(0,t.useRef)(null),g=(0,t.useRef)(new Map);return{values:N,getEditorProps:e=>({value:N[e].deserialized,onChangeValue:n=>{v(o()(N,{[e]:{serialized:{text:{$set:(0,u.lK)(n)}},deserialized:{$set:n}}})),k(!0)},onKeyDown:(e=>n=>{"Enter"!==n.key||n.shiftKey?"Backspace"===n.key&&(a||e>0)&&""===N[e].serialized.text&&(n.preventDefault(),v(n=>o()(n,{$splice:[[e,1]]})),k(!0)):(n.preventDefault(),v(n=>o()(n,{$splice:[[e+1,0,{serialized:{id:crypto.randomUUID(),text:""},deserialized:(0,u.iu)("")}]]})),k(!0),h.current=e+1)})(e),onPaste:(e=>n=>{let i=n.clipboardData.getData("text").split("\n");if(i.length<=1)return;n.preventDefault();let[a,...t]=i,d=N[e].serialized.text+a;v(o()(N,{$splice:[[e,1,...[d,...t].map(e=>({serialized:{id:crypto.randomUUID(),text:e},deserialized:(0,u.iu)(e)}))]]})),k(!0)})(e),serialized:N[e].serialized,deserialized:N[e].deserialized,innerRef:n=>{n?(g.current.set(e,n),g.current.forEach((e,n)=>{"number"==typeof h.current&&n===h.current&&(e.focus(),h.current=null)})):g.current.delete(e)}})}})(m);return(0,a.jsx)(k.t,{vertical:!0,children:N.map((e,t)=>{let o=v(t);return(0,a.jsx)(n,{ref:o.innerRef,readOnly:m.disabled,placeholder:d,tagList:m.tagList,...o,...i(e.serialized,t)},e.serialized.id)})})}},83590:(e,n,i)=>{i.d(n,{j:()=>a});let a=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];let a={voiceId:null,pitch:null,rate:null,volume:null,whispering:null};return n.forEach(e=>{e&&("string"==typeof e.voiceId&&(a.voiceId=e.voiceId),"string"==typeof e.pitch?a.pitch=e.pitch:null===e.pitch&&(a.pitch=null),"string"==typeof e.rate?a.rate=e.rate:null===e.rate&&(a.rate=null),"string"==typeof e.volume?a.volume=e.volume:null===e.volume&&(a.volume=null),"boolean"==typeof e.whispering?a.whispering=e.whispering:null===e.volume&&(a.volume=null))}),a}},84094:(e,n,i)=>{i.d(n,{A:()=>b});var a=i(7765),t=i(42719),d=i(57355),o=i(47769),l=i.n(o),s=i(10639),r=i(20851),m=i(69080),c=i(51248),k=i(29825),u=i(72220),p=i(28850),N=i(39414),v=i(76736),S=i(48643),h=i(66193),g=i(37364),y=i(63792),F=i(9037);let x=e=>"<".concat(e.replace(/ /g,"_").replace(/[^A-z0-9_ ]/g,"").toLowerCase(),">"),f=e=>{let{onSubmit:n,entities:i}=e;return(0,a.jsx)(s.l1,{initialValues:{type:null,prompt:"",entity:"",decisions:[""]},onSubmit:async(e,i)=>{let{setSubmitting:a}=i,t={type:e.type,prompt:e.prompt,recallValue:x(e.prompt).replace(/[<>]/g,"")};e.type===y.bk.ENTITY?t.entity=e.entity:e.type===y.bk.DECISION&&(t.decisions=e.decisions);try{await n(t)}catch(e){await (0,g.L_)('Something went wrong creating this memory. Perhaps a memory with the recall value "'.concat(t.recallValue,'" already exists?'))}finally{a(!1)}},validate:e=>{let n={};return null===e.type&&(n.type="Must select a memory type."),e.type===y.bk.ENTITY&&""===e.entity&&(n.entity="Must select a category type."),e.type===y.bk.DECISION&&0===e.decisions.filter(e=>e).length&&(n.decisions="Must add one or more decisions."),""===e.prompt&&(n.prompt="Must have a name for this memory."),n},children:e=>{let{values:n,isValid:t,isSubmitting:o}=e;return(0,a.jsxs)("div",{className:"jsx-cdb5f96f2121cedb create-memory-form",children:[(0,a.jsxs)(s.lV,{children:[(0,a.jsxs)(r.Z,{style:{padding:0},children:[(0,a.jsxs)("section",{className:"jsx-cdb5f96f2121cedb",children:[(0,a.jsx)("h4",{className:"jsx-cdb5f96f2121cedb",children:"1. What would you like to remember?"}),(0,a.jsx)(s.D0,{name:"type",children:e=>{let{field:{name:n,value:i},form:{setFieldValue:t}}=e;return(0,a.jsxs)(m.z,{onChange:e=>{let{currentTarget:{value:i}}=e;t(n,i)},selectedValue:i,children:[(0,a.jsx)(c.sx,{label:"A word/words that the player has said",value:y.bk.ENTITY}),(0,a.jsx)(c.sx,{label:"A sentence that the player has said",value:y.bk.PLAYER_MESSAGE}),(0,a.jsx)(c.sx,{label:"A decision that the player has made",value:y.bk.DECISION}),(0,a.jsx)(c.sx,{label:"A counter (number) that can be increased or decreased",value:y.bk.COUNTER}),(0,a.jsx)(c.sx,{label:"Something that can either be true or false",value:y.bk.BOOLEAN})]})}}),n.type===y.bk.ENTITY&&(0,a.jsxs)("label",{htmlFor:"entity",className:"jsx-cdb5f96f2121cedb",children:["How would you categorise the word/words? For example, someone's name would fall under the ",(0,a.jsx)(k.Cy,{children:"Person"})," ","category.",(0,a.jsx)(s.D0,{id:"entity",name:"entity",as:u.g,fill:!0,"aria-label":"Select an entity",children:(0,a.jsx)(F.A,{entities:i})})]}),n.type===y.bk.DECISION&&(0,a.jsxs)("div",{className:"jsx-cdb5f96f2121cedb",children:["What are the potential decisions that the player could make? Don't worry, you can always add or remove these later!",(0,a.jsx)(s.ED,{name:"decisions",render:e=>{let{push:i,remove:t}=e;return(0,a.jsxs)(p.t,{vertical:!0,children:[n.decisions.map((e,i)=>(0,a.jsx)(s.D0,{name:"decisions.".concat(i),children:e=>{let{field:d}=e;return(0,a.jsx)(N.M,{fill:!0,placeholder:"Enter a decision...",rightElement:(0,a.jsx)(v.$,{disabled:1===n.decisions.length,icon:"trash",intent:S.J.DANGER,onClick:()=>t(i),variant:"minimal","aria-label":"Remove"}),...d})}},i)),(0,a.jsx)(v.$,{onClick:()=>i(""),children:"Add decision"})]})}})]})]}),(0,a.jsx)("hr",{className:"jsx-cdb5f96f2121cedb"}),(0,a.jsx)("section",{className:"jsx-cdb5f96f2121cedb",children:(0,a.jsxs)("label",{htmlFor:"prompt",className:"jsx-cdb5f96f2121cedb",children:[(0,a.jsx)("h4",{className:"jsx-cdb5f96f2121cedb",children:"2. Enter a memory name"}),(0,a.jsx)(h.P,{icon:"info-sign",intent:S.J.SUCCESS,children:"Top tip: Keep it short and sweet!"}),(0,a.jsx)(s.D0,{id:"prompt",name:"prompt",className:"".concat(d.bOq," ").concat(d.I$u," ").concat(d.I5l),placeholder:"(e.g. Player name)"}),(n.type===y.bk.ENTITY||n.type===y.bk.PLAYER_MESSAGE)&&(0,a.jsxs)("p",{className:"jsx-cdb5f96f2121cedb "+(d.E4k||""),children:["To recall this memory, type"," ",(0,a.jsx)(k.Cy,{children:x(n.prompt)})," into a"," ",(0,a.jsx)(k.Cy,{children:"Character"})," node exactly how it appears here."]})]})})]}),(0,a.jsx)(v.$,{className:"submit-button",intent:S.J.SUCCESS,size:"large",type:"submit",disabled:!t||o,loading:o,children:"Create Memory"})]}),(0,a.jsx)(l(),{id:"cdb5f96f2121cedb",children:".create-memory-form.jsx-cdb5f96f2121cedb form{display:flex;flex-direction:column;align-items:stretch}section.jsx-cdb5f96f2121cedb{padding:20px}p.jsx-cdb5f96f2121cedb{margin:0}hr.jsx-cdb5f96f2121cedb{margin:0}.create-memory-form.jsx-cdb5f96f2121cedb .submit-button{align-self:center;margin-top:20px}"})]})}})},b=e=>{let{isOpen:n,onClose:i,createMemory:o,entities:l}=e;return(0,a.jsx)(t.l,{isOpen:n,onClose:i,title:"Create Memory",style:{paddingBottom:0},children:(0,a.jsx)("div",{className:d.sar,onWheel:e=>{e.stopPropagation()},children:(0,a.jsx)(f,{onSubmit:o,entities:l})})})}},89620:(e,n,i)=>{i.d(n,{a:()=>o});var a=i(72007);let t={},d={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateMemory"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateMemoryInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"createMemory"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"memory"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryContent"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryContent"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Memory"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"prompt"}},{kind:"Field",name:{kind:"Name",value:"recallValue"}},{kind:"Field",name:{kind:"Name",value:"decisions"}},{kind:"Field",name:{kind:"Name",value:"entity"}}]}}]};function o(e){let n={...t,...e};return a.n(d,n)}},89818:(e,n,i)=>{i.d(n,{p:()=>a});let a=["Person","Location","Date","Time","Organisation","Percent","Money","Quantity","Numeral"]},93567:(e,n,i)=>{i.d(n,{$P:()=>l,JK:()=>o,cZ:()=>d,wu:()=>t});var a=i(15977);let t=e=>"string"==typeof e&&e.startsWith("image"),d=e=>"string"==typeof e&&e.startsWith("video"),o=e=>"string"==typeof e&&e.startsWith("audio"),l=e=>{let[n,i]=(0,a.useState)(!0),[t,d]=(0,a.useState)(null);return(0,a.useEffect)(()=>{!async function(){if("string"!=typeof e)return d(null);try{let n=await fetch(e,{cache:"no-store",method:"HEAD"});d(n.headers.get("Content-Type"))}catch(e){console.error("An error occured when fetching the `content-type` of a media item.")}i(!1)}()},[e]),{loading:n,contentType:t}}},96453:(e,n,i)=>{i.d(n,{Db:()=>
1o,hT:()=>d});var a=i(31402);let t={},d={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"StoryGraph"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"graphId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"graph"},name:{kind:"Name",value:"graphById"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"graphId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",alias:{kind:"Name",value:"graphNodes"},name:{kind:"Name",value:"graphNodesByGraphId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NodeContent"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"graphEdges"},name:{kind:"Name",value:"graphEdgesByGraphId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EdgeContent"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"graphNodeGroups"},name:{kind:"Name",value:"graphNodeGroupsByGraphId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NodeGroupContent"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesAction"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesAction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"action"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesComment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesComment"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"comment"}},{kind:"Field",name:{kind:"Name",value:"mediaId"}},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"mediaByMediaId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"file"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesFunction"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesFunction"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"functionSource"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FeelingCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionFeeling"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feelings"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MoodCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMood"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivityRange"}},{kind:"Field",name:{kind:"Name",value:"energyRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"RelationshipCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionRelationship"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationshipRange"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"CounterCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionCounter"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"comparisonType"}},{kind:"Field",name:{kind:"Name",value:"comparisonValue"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"LanguageCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionLanguage"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"languageCodes"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemorySetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemorySet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MemoryDecisionCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionMemoryDecision"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"decision"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"TagSetCondition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGateConditionTagSet"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"tags"}},{kind:"Field",name:{kind:"Name",value:"inverse"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGate"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGate"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",alias:{kind:"Name",value:"conditionsFeeling"},name:{kind:"Name",value:"graphNodePropertiesGateConditionFeelings
1ByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeelingCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMood"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMoodsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MoodCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsRelationship"},name:{kind:"Name",value:"graphNodePropertiesGateConditionRelationshipsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"RelationshipCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsCounter"},name:{kind:"Name",value:"graphNodePropertiesGateConditionCountersByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CounterCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsLanguage"},name:{kind:"Name",value:"graphNodePropertiesGateConditionLanguagesByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LanguageCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemorySet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemorySetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemorySetCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsMemoryDecision"},name:{kind:"Name",value:"graphNodePropertiesGateConditionMemoryDecisionsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MemoryDecisionCondition"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"conditionsTagSet"},name:{kind:"Name",value:"graphNodePropertiesGateConditionTagSetsByGateNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TagSetCondition"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesGeneration"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesGeneration"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"promptLocalised"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"model"}},{kind:"Field",name:{kind:"Name",value:"modelParams"}},{kind:"Field",name:{kind:"Name",value:"characterId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesMedia"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesMedia"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"tapToContinue"}},{kind:"Field",name:{kind:"Name",value:"mediaId"}},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"mediaByMediaId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesMemory"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesMemory"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"memoryId"}},{kind:"Field",name:{kind:"Name",value:"saveValue"}},{kind:"Field",name:{kind:"Name",value:"isAdvancedMode"}},{kind:"Field",name:{kind:"Name",value:"counterChangeType"}},{kind:"Field",name:{kind:"Name",value:"counterChangeValue"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReplyNodeImageLayer"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyImageLayer"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"index"}},{kind:"Field",name:{kind:"Name",value:"resizeMode"}},{kind:"Field",name:{kind:"Name",value:"points"}},{kind:"Field",name:{kind:"Name",value:"orientation"}},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"mediaByMediaId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ReplyNodeAudioTrack"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReplyAudioTrack"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"index"}},{kind:"Field",name:{kind:"Name",value:"behaviour"}},{kind:"Field",name:{kind:"Name",value:"loop"}},{kind:"Field",name:{kind:"Name",value:"volume"}},{kind:"Field",name:{kind:"Name",value:"stopPlaying"}},{kind:"Field",alias:{kind:"Name",value:"media"},name:{kind:"Name",value:"mediaByMediaId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"file"}},{kind:"Field",name:{kind:"Name",value:"filename"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesReply"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesReply"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"repliesLocalised"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"metadata"}},{kind:"Field",name:{kind:"Name",value:"keep"}},{kind:"Field",name:{kind:"Name",value:"endStory"}},{kind:"Field",name:{kind:"Name",value:"delay"}},{kind:"Field",name:{kind:"Name",value:"delayMode"}},{kind:"Field",name:{kind:"Name",value:"tapToContinue"}},{kind:"Field",alias:{kind:"Name",value:"imageLayers"},name:{kind:"Name",value:"graphNodePropertiesReplyImageLayersByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReplyNodeImageLayer"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"audioTracks"},name:{kind:"Name",value:"graphNodePropertiesReplyAudioTracksByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ReplyNodeAudioTrack"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"stopAllAudio"}},{kind:"Field",name:{kind:"Name",value:"impact"}},{kind:"Field",name:{kind:"Name",value:"isImpactShareable"}},{kind:"Field",name:{kind:"Name",value:"impactImage"}},{kind:"Field",name:{kind:"Name",value:"voiceLocalised"}},{kind:"Field",name:{kind:"Name",value:"panelAnimationIn"}},{kind:"Field",name:{kind:"Name",value:"panelAnimationOut"}},{kind:"Field",name:{kind:"Name",value:"bubblePoints"}},{kind:"Field",name:{kind:"Name",value:"bubbleStyle"}}
1,{kind:"Field",name:{kind:"Name",value:"bubbleTailPosition"}},{kind:"Field",name:{kind:"Name",value:"tagsToSet"}},{kind:"Field",name:{kind:"Name",value:"tagsToUnset"}},{kind:"Field",name:{kind:"Name",value:"useGenerativeMode"}},{kind:"Field",name:{kind:"Name",value:"promptContextLocalised"}},{kind:"Field",alias:{kind:"Name",value:"feelingEffects"},name:{kind:"Name",value:"graphNodePropertiesReplyFeelingEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"feeling"}},{kind:"Field",name:{kind:"Name",value:"intensity"}},{kind:"Field",name:{kind:"Name",value:"duration"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"moodEffects"},name:{kind:"Name",value:"graphNodePropertiesReplyMoodEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"positivity"}},{kind:"Field",name:{kind:"Name",value:"energy"}}]}}]}},{kind:"Field",alias:{kind:"Name",value:"relationshipEffects"},name:{kind:"Name",value:"graphNodePropertiesReplyRelationshipEffectsByReplyPropertiesId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"characterId"}},{kind:"Field",name:{kind:"Name",value:"relationship"}},{kind:"Field",name:{kind:"Name",value:"isSetTo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesSubplot"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesSubplot"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"subplotId"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesTrigger"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesTrigger"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"mode"}},{kind:"Field",name:{kind:"Name",value:"intentsSpecificLocalised"}},{kind:"Field",name:{kind:"Name",value:"intentsGeneral"}},{kind:"Field",name:{kind:"Name",value:"exact"}},{kind:"Field",name:{kind:"Name",value:"customIntentIds"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"GraphNodePropertiesWildcard"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodePropertiesWildcard"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodeId"}},{kind:"Field",name:{kind:"Name",value:"overrideSubplots"}},{kind:"Field",name:{kind:"Name",value:"overrideImprovisation"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"NodeContent"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNode"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"x"}},{kind:"Field",name:{kind:"Name",value:"y"}},{kind:"Field",alias:{kind:"Name",value:"propertiesAction"},name:{kind:"Name",value:"graphNodePropertiesActionByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesAction"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesComment"},name:{kind:"Name",value:"graphNodePropertiesCommentByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesComment"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesFunction"},name:{kind:"Name",value:"graphNodePropertiesFunctionByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesFunction"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesGate"},name:{kind:"Name",value:"graphNodePropertiesGateByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGate"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesGeneration"},name:{kind:"Name",value:"graphNodePropertiesGenerationByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesGeneration"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesMedia"},name:{kind:"Name",value:"graphNodePropertiesMediaByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesMedia"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesMemory"},name:{kind:"Name",value:"graphNodePropertiesMemoryByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesMemory"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesReply"},name:{kind:"Name",value:"graphNodePropertiesReplyByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesReply"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesSubplot"},name:{kind:"Name",value:"graphNodePropertiesSubplotByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesSubplot"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesTrigger"},name:{kind:"Name",value:"graphNodePropertiesTriggerByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesTrigger"}}]}},{kind:"Field",alias:{kind:"Name",value:"propertiesWildcard"},name:{kind:"Name",value:"graphNodePropertiesWildcardByGraphNodeId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"GraphNodePropertiesWildcard"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"EdgeContent"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphEdge"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"fromId"}},{kind:"Field",name:{kind:"Name",value:"toId"}},{kind:"Field",name:{kind:"Name",value:"priority"}},{kind:"Field",name:{kind:"Name",value:"playthroughs"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"NodeGroupContent"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"GraphNodeGroup"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"x"}},{kind:"Field",name:{kind:"Name",value:"y"}},{kind:"Field",name:{kind:"Name",value:"width"}},{kind:"Field",name:{kind:"Name",value:"height"}},{kind:"Field",name:{kind:"Name",value:"label"}},{kind:"Field",name:{kind:"Name",value:"shouldMoveNodes"}},{kind:"Field",name:{kind:"Name",value:"color"}}]}}]};function o(e){let n={...t,...e};return a.IT(d,n)}}}]);
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.