PageSourceSearch

https://liveklassisk.com/_next/static/chunks/pages/[region]/backstage/foyer-script-971d35a3600db264.js

js liveklassisk.com collected 2026-10-09 02:01:16 UTC 25,607 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},a=(new e.Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="57424ed6-d848-477c-a638-3a3d6ffd598d",e._sentryDebugIdIdentifier="sentry-dbid-57424ed6-d848-477c-a638-3a3d6ffd598d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4128,5868],{29721:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[region]/backstage/foyer-script",function(){return t(90856)}])},12056:function(e,a,t){"use strict";var n=t(85893);t(67294);var o=t(55695);let r=(0,t(12332).Z)(e=>({root:{display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"flex-start",paddingTop:"7rem",height:"100%"},progress:{display:"flex",justifyContent:"center",alignItems:"center",height:"50%"}}));a.Z=e=>{let{size:a}=e,t=r();return(0,n.jsx)("div",{className:t.root,children:(0,n.jsx)("div",{className:t.progress,children:(0,n.jsx)(o.Z,{size:a||80})})})}},64797:function(e,a,t){"use strict";var n=t(85893),o=t(67294),r=t(12332),s=t(21207),i=t(26561),c=t(65222),l=t(77563),d=t(68452),u=t(22672),p=t(14327),h=t(72099),m=t(36381),f=t(76437),g=t(91834),v=t(70026),x=t(51343);let b=(0,r.Z)(e=>({root:{"& .MuiOutlinedInput-root":{backgroundColor:"#F5F6F8","&.Mui-disabled":{backgroundColor:"#FFF"}},height:"90vh",color:"#081359",borderRadius:"8px",boxShadow:"0 3px 11px #08135914",overflowX:"hidden"},fullHeight:{height:"100%"},button:{fontWeight:"bold",backgroundColor:"#081359",color:"white",borderRadius:"8px",boxShadow:"0px 3px 11px #08135929",padding:e.spacing(1,8),"&:hover":{backgroundColor:"#081359",boxShadow:"0px 3px 11px #08135929"}}}));a.Z=e=>{let{handleClose:a,open:t,onConcertSelect:r,onConcertDeselect:Z,concertIds:y,hideRecommended:j}=e,k=b(),C=(0,v.I)(),N=(0,g.E)(),[S,w]=(0,o.useState)(""),[E,T]=(0,o.useState)(),[I,R]=(0,o.useState)(),[L,B]=(0,o.useState)([]),F=(0,m.constructConcertFilters)(N,null!=E?E:C,L,I),M=(0,f.V_)(F,S),P=e=>{y.includes(e.objectID)?Z(e.objectID):r(e)};return(0,n.jsxs)(s.Z,{onClose:a,open:t,classes:{root:k.fullHeight,paperScrollPaper:k.root},maxWidth:"xl",children:[(0,n.jsxs)(i.Z,{children:[(0,n.jsx)(c.Z,{container:!0,item:!0,xs:12,justifyContent:"flex-end",children:(0,n.jsx)(l.Z,{onClick:a,children:(0,n.jsx)(p.Z,{})})}),(0,n.jsx)(c.Z,{item:!0,xs:12,children:(0,n.jsx)(h.Z,{query:S,setQuery:w,types:L,setTypes:B,date:E,setDate:T,location:I,setLocation:R})})]}),(0,n.jsx)(d.Z,{children:(0,n.jsx)(c.Z,{container:!0,children:M.hits.filter(e=>!j||!e.recommendation).map(e=>(0,n.jsxs)(c.Z,{container:!0,style:{marginBottom:16},children:[(0,n.jsx)(c.Z,{item:!0,xs:!0,children:(0,n.jsx)(x.Z,{concertId:e.objectID,concert:e})}),(0,n.jsx)(c.Z,{item:!0,children:(0,n.jsx)("div",{children:(0,n.jsx)(u.Z,{onChange:()=>P(e),color:"primary",checked:y.includes(e.objectID)})})})]},e.objectID))})})]})}},84207:function(e,a,t){"use strict";var n=t(87462),o=t(45987),r=t(67294),s=t(86010),i=t(59635),c=t(21540),l=r.forwardRef(function(e,a){var t=e.classes,c=e.className,l=e.raised,d=(0,o.Z)(e,["classes","className","raised"]);return r.createElement(i.Z,(0,n.Z)({className:(0,s.Z)(t.root,c),elevation:void 0!==l&&l?8:1,ref:a},d))});a.Z=(0,c.Z)({root:{overflow:"hidden"}},{name:"MuiCard"})(l)},37790:function(e,a,t){"use strict";var n=t(87462),o=t(45987),r=t(67294),s=t(86010),i=t(21540),c=r.forwardRef(function(e,a){var t=e.classes,i=e.className,c=e.component,l=(0,o.Z)(e,["classes","className","component"]);return r.createElement(void 0===c?"div":c,(0,n.Z)({className:(0,s.Z)(t.root,i),ref:a},l))});a.Z=(0,i.Z)({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(c)},50170:function(e,a,t){"use strict";var n=t(87462),o=t(45987),r=t(67294),s=t(86010),i=t(21540),c=t(82169),l=r.forwardRef(function(e,a){var t=e.action,i=e.avatar,l=e.classes,d=e.className,u=e.component,p=e.disableTypography,h=void 0!==p&&p,m=e.subheader,f=e.subheaderTypographyProps,g=e.title,v=e.titleTypographyProps,x=(0,o.Z)(e,["action","avatar","classes","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"]),b=g;null==b||b.type===c.Z||h||(b=r.createElement(c.Z,(0,n.Z)({variant:i?"body2":"h5",className:l.title,component:"span",display:"block"},v),b));var Z=m;return null==Z||Z.type===c.Z||h||(Z=r.createElement(c.Z,(0,n.Z)({variant:i?"body2":"body1",className:l.subheader,color:"textSecondary",component:"span",display:"block"},f),Z)),r.createElement(void 0===u?"div":u,(0,n.Z)({className:(0,s.Z)(l.root,d),ref:a},x),i&&r.createElement("div",{className:l.avatar},i),r.createElement("div",{className:l.content},b,Z),t&&r.createElement("div",{className:l.action},t))});a.Z=(0,i.Z)({root:{display:"flex",alignItems:"center",padding:16},avatar:{flex:"0 0 auto",marginRight:16},action:{flex:"0 0 auto",alignSelf:"flex-start",marginTop:-8,marginRight:-8},content:{flex:"1 1 auto"},title:{},subheader:{}},{name:"MuiCardHeader"})(l)},22672:function(e,a,t){"use strict";t.d(a,{Z:function(){return b}});var n=t(87462),o=t(45987),r=t(67294),s=t(86010),i=t(54979),c=t(22224),l=(0,c.Z)(r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),d=(0,c.Z)(r.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),u=t(53432),p=(0,c.Z)(r.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),h=t(53676),m=t(21540),f=r.createElement(d,null),g=r.createElement(l,null),v=r.createElement(p,null),x=r.forwardRef(function(e,a){var t=e.checkedIcon,c=e.classes,l=e.color,d=void 0===l?"secondary":l,u=e.icon,p=e.indeterminate,m=void 0!==p&&p,x=e.indeterminateIcon,b=void 0===x?v:x,Z=e.inputProps,y=e.size,j=void 0===y?"medium":y,k=(0,o.Z)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","
1size"]),C=m?b:void 0===u?g:u,N=m?b:void 0===t?f:t;return r.createElement(i.Z,(0,n.Z)({type:"checkbox",classes:{root:(0,s.Z)(c.root,c["color".concat((0,h.Z)(d))],m&&c.indeterminate),checked:c.checked,disabled:c.disabled},color:d,inputProps:(0,n.Z)({"data-indeterminate":m},Z),icon:r.cloneElement(C,{fontSize:void 0===C.props.fontSize&&"small"===j?j:C.props.fontSize}),checkedIcon:r.cloneElement(N,{fontSize:void 0===N.props.fontSize&&"small"===j?j:N.props.fontSize}),ref:a},k))}),b=(0,m.Z)(function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,u.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,u.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}},{name:"MuiCheckbox"})(x)},26561:function(e,a,t){"use strict";var n=t(87462),o=t(45987),r=t(67294),s=t(86010),i=t(21540),c=t(82169),l=r.forwardRef(function(e,a){var t=e.children,i=e.classes,l=e.className,d=e.disableTypography,u=(0,o.Z)(e,["children","classes","className","disableTypography"]);return r.createElement("div",(0,n.Z)({className:(0,s.Z)(i.root,l),ref:a},u),void 0!==d&&d?t:r.createElement(c.Z,{component:"h2",variant:"h6"},t))});a.Z=(0,i.Z)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(l)},36741:function(e,a,t){"use strict";var n=t(87462),o=t(45987),r=t(67294),s=t(86010),i=t(64256),c=t(21540),l=t(82169),d=t(53676),u=r.forwardRef(function(e,a){e.checked;var t=e.classes,c=e.className,u=e.control,p=e.disabled,h=(e.inputRef,e.label),m=e.labelPlacement,f=void 0===m?"end":m,g=(e.name,e.onChange,e.value,(0,o.Z)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),v=(0,i.Z)(),x=p;void 0===x&&void 0!==u.props.disabled&&(x=u.props.disabled),void 0===x&&v&&(x=v.disabled);var b={disabled:x};return["checked","name","onChange","value","inputRef"].forEach(function(a){void 0===u.props[a]&&void 0!==e[a]&&(b[a]=e[a])}),r.createElement("label",(0,n.Z)({className:(0,s.Z)(t.root,c,"end"!==f&&t["labelPlacement".concat((0,d.Z)(f))],x&&t.disabled),ref:a},g),r.cloneElement(u,b),r.createElement(l.Z,{component:"span",className:(0,s.Z)(t.label,x&&t.disabled)},h))});a.Z=(0,c.Z)(function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}},{name:"MuiFormControlLabel"})(u)},89844:function(e,a,t){"use strict";var n=t(87462),o=t(45987),r=t(67294),s=t(86010),i=t(21540),c=r.forwardRef(function(e,a){var t=e.classes,i=e.className,c=e.row,l=(0,o.Z)(e,["classes","className","row"]);return r.createElement("div",(0,n.Z)({className:(0,s.Z)(t.root,i,void 0!==c&&c&&t.row),ref:a},l))});a.Z=(0,i.Z)({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(c)},78481:function(e,a,t){"use strict";var n=t(45987),o=t(4942),r=t(87462),s=t(67294),i=t(86010),c=t(21540),l=t(40553),d=s.forwardRef(function(e,a){var t,o=e.classes,c=e.className,d=e.component,u=e.disableGutters,p=void 0!==u&&u,h=e.ListItemClasses,m=e.role,f=e.selected,g=e.tabIndex,v=(0,n.Z)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(t=void 0!==g?g:-1),s.createElement(l.Z,(0,r.Z)({button:!0,role:void 0===m?"menuitem":m,tabIndex:t,component:void 0===d?"li":d,selected:f,disableGutters:p,classes:(0,r.Z)({dense:o.dense},h),className:(0,i.Z)(o.root,c,f&&o.selected,!p&&o.gutters),ref:a},v))});a.Z=(0,c.Z)(function(e){return{root:(0,r.Z)({},e.typography.body1,(0,o.Z)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",
1whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:(0,r.Z)({},e.typography.body2,{minHeight:"auto"})}},{name:"MuiMenuItem"})(d)},54979:function(e,a,t){"use strict";var n=t(87462),o=t(97685),r=t(45987),s=t(67294),i=t(86010),c=t(46807),l=t(64256),d=t(21540),u=t(77563),p=s.forwardRef(function(e,a){var t=e.autoFocus,d=e.checked,p=e.checkedIcon,h=e.classes,m=e.className,f=e.defaultChecked,g=e.disabled,v=e.icon,x=e.id,b=e.inputProps,Z=e.inputRef,y=e.name,j=e.onBlur,k=e.onChange,C=e.onFocus,N=e.readOnly,S=e.required,w=e.tabIndex,E=e.type,T=e.value,I=(0,r.Z)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),R=(0,c.Z)({controlled:d,default:!!f,name:"SwitchBase",state:"checked"}),L=(0,o.Z)(R,2),B=L[0],F=L[1],M=(0,l.Z)(),P=g;return M&&void 0===P&&(P=M.disabled),s.createElement(u.Z,(0,n.Z)({component:"span",className:(0,i.Z)(h.root,m,B&&h.checked,P&&h.disabled),disabled:P,tabIndex:null,role:void 0,onFocus:function(e){C&&C(e),M&&M.onFocus&&M.onFocus(e)},onBlur:function(e){j&&j(e),M&&M.onBlur&&M.onBlur(e)},ref:a},I),s.createElement("input",(0,n.Z)({autoFocus:t,checked:d,defaultChecked:f,className:h.input,disabled:P,id:("checkbox"===E||"radio"===E)&&x,name:y,onChange:function(e){var a=e.target.checked;F(a),k&&k(e,a)},readOnly:N,ref:Z,required:S,tabIndex:w,type:E,value:T},b)),B?p:v)});a.Z=(0,d.Z)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(p)},90667:function(e,a,t){"use strict";var n=t(64836),o=t(75263);a.Z=void 0;var r=o(t(67294)),s=(0,n(t(14547)).default)(r.createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");a.Z=s},79077:function(e,a,t){"use strict";var n=t(64836),o=t(75263);a.Z=void 0;var r=o(t(67294)),s=(0,n(t(14547)).default)(r.createElement("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");a.Z=s},99222:function(e,a,t){"use strict";var n=t(64836),o=t(75263);a.Z=void 0;var r=o(t(67294)),s=(0,n(t(14547)).default)(r.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");a.Z=s},52962:function(e,a,t){"use strict";var n=t(80770),o=t(44799),r=t(51931),s=Math.ceil,i=Math.max;e.exports=function(e,a,t){a=(t?o(e,a,t):void 0===a)?1:i(r(a),0);var c=null==e?0:e.length;if(!c||a<1)return[];for(var l=0,d=0,u=Array(s(c/a));l<c;)u[d++]=n(e,l,l+=a);return u}},90856:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSG:function(){return A}});var n=t(85893),o=t(67294),r=t(28276),s=t(59251),i=t(3849),c=t(55695),l=t(41852),d=t(84207),u=t(50170),p=t(37790),h=t(82169),m=t(44133),f=t(46366),g=t(43661),v=t(85700),x=t(29187),b=t(33174),Z=t(51607),y=t(78481),j=t(67894),k=t(36741),C=t(22672),N=t(89844),S=t(12332),w=t(62202),E=t(90667),T=t(91834),I=t(64797),R=t(72905),L=t(41664),B=t.n(L),F=t(82925),M=t(25094);let P=(0,S.Z)(e=>({root:{backgroundColor:"#f8f7f5"},pageRoot:{paddingTop:e.spacing(10),padding:e.spacing(3),backgroundColor:"#f5f5f5",minHeight:"100vh",marginLeft:0,"@media screen and (min-width: 1140px)":{marginLeft:300}},drawer:{display:"none","@media screen and (min-width: 1140px)":{display:"block"}},container:{maxWidth:1e3},card:{marginBottom:e.spacing(3),borderRadius:8},cardHeader:{backgroundColor:"#27ae60",color:"#fff",fontWeight:"bold",fontSize:"1.2rem"},section:{marginBottom:e.spacing(3)},sectionTitle:{marginBottom:e.spacing(2),fontWeight:"bold",color:"#081359"},button:{marginTop:e.spacing(2),backgroundColor:"#081359",color:"white",fontWeight:"bold",borderRadius:"8px","&:hover":{backgroundColor:"#081539"}},backButton:{marginBottom:e.spacing(2),color:"#081359"},accordion:{marginBottom:e.spacing(2),borderRadius:8,"&:before":{display:"none"}},accordionSummary:{backgroundColor:"#f0f0f0",borderRadius:8},textAreaField:{fontFamily:"monospace",fontSize:"12px"},concertChip:{margin:e.spacing(.5),backgroundColor:"#e3f2fd"},actionButtons:{display:"flex",gap:e.spacing(2),marginTop:e.spacing(3)},runButton:{backgroundColor:"#27ae60",color:"white",fontWeight:"bold","&:hover":{backgroundColor:"#219a52"}},scheduleSection:{padding:e.spacing(2),backgroundColor:"#f9f9f9",borderRadius:8,marginTop:e.spacing(2)}}));var A=!0;a.default=()=>{let{t:e}=(0,r.$G)("common"),a=(0,T.E)(),t=(0,s.useFirestore)(),S=P(),L=(0,M.Ds)();(0,F.B0)(),(0,F.Ir)(),(0,F.Yf)(),(0,F.c7)();let[A,_]=(0,o.useState)(!0),[D,z]=(0,o.useState)(!1),[W,H]=(0,o.useState)(!1),[O,V]=(0,o.useState)([]),[G,q]=(0,o.useState)(!1),[U,$]=(0,o.useState)(!1),[Y,K]=(0,o.useState)(["Monday","Wednesday","Frid
1ay"]),[X,J]=(0,o.useState)(3),[Q,ee]=(0,o.useState)("upcoming concerts"),[ea,et]=(0,o.useState)("friendly and knowledgeable"),[en,eo]=(0,o.useState)("3-5"),[er,es]=(0,o.useState)(""),ei="You are generating forum discussion threads for Live Klassisk, a Scandinavian classical music community.\n\nYour job is to create engaging, authentic-feeling forum conversations about classical music.\n\nTASK:\nGenerate a forum thread with a main post and ".concat(en," replies about ").concat(Q,".\n\nLANGUAGE: ").concat("dk"===a?"Danish":"se"===a?"Swedish":"no"===a?"Norwegian":"English","\n\nCONVERSATION STYLE:\n- Tone: ").concat(ea,"\n- Make each participant have a distinct personality and perspective\n- Include specific details about concerts, composers, performers\n- Keep responses natural and conversational, not overly formal\n- Some disagreement or different opinions add authenticity\n").concat(er?"\nADDITIONAL INSTRUCTIONS:\n".concat(er):"",'\n\nOUTPUT FORMAT (JSON):\n{\n  "thread": {\n    "title": "Thread title here",\n    "body": "Main post content here",\n    "authorName": "Username, City"\n  },\n  "replies": [\n    {\n      "body": "Reply content here",\n      "authorName": "Username, City"\n    }\n  ],\n  "linkedConcertIds": ["id1", "id2"]\n}');(0,o.useEffect)(()=>{t&&a&&(async()=>{try{let e=t.collection("foyerScriptConfigs").doc("".concat(a,"_config")),n=await e.get();if(n.exists){let e=n.data();$(e.isActive||!1),K(e.deploymentDays||["Monday","Wednesday","Friday"]),J(e.threadsPerRun||3),V(e.selectedConcertIds||[])}let o=t.collection("foyerScriptTemplates").doc("".concat(a,"_template")),r=await o.get();if(r.exists){let e=r.data();ee(e.threadTopic||"upcoming concerts"),et(e.conversationTone||"friendly and knowledgeable"),eo(e.replyCount||"3-5"),es(e.customInstructions||"")}_(!1)}catch(e){console.error("Error loading data:",e),_(!1)}})()},[t,a]);let ec=async()=>{if(t&&a){z(!0);try{await t.collection("foyerScriptConfigs").doc("".concat(a,"_config")).set({region:a,isActive:U,deploymentDays:Y,threadsPerRun:X,selectedConcertIds:O,updatedAt:t.FieldValue.serverTimestamp()},{merge:!0}),await t.collection("foyerScriptTemplates").doc("".concat(a,"_template")).set({region:a,threadTopic:Q,conversationTone:ea,replyCount:en,customInstructions:er,updatedAt:t.FieldValue.serverTimestamp()},{merge:!0}),L.showMessage(e("Settings saved"))}catch(a){console.error("Error saving:",a),L.showMessage(e("Error saving settings"))}finally{z(!1)}}},el=async()=>{if(t&&a){H(!0);try{await t.collection("foyerScriptRuns").add({region:a,status:"pending",requestedAt:t.FieldValue.serverTimestamp(),config:{threadsPerRun:X,selectedConcertIds:O},template:{threadTopic:Q,conversationTone:ea,replyCount:en,customInstructions:er,aiProvider:"claude"}}),L.showMessage(e("Script run queued - threads will appear shortly"))}catch(a){console.error("Error running script:",a),L.showMessage(e("Error starting script"))}finally{H(!1)}}},ed=e=>{V(O.filter(a=>a!==e))},eu=e=>{Y.includes(e)?K(Y.filter(a=>a!==e)):K([...Y,e])};return A?(0,n.jsxs)("div",{className:S.root,children:[(0,n.jsx)("div",{className:S.drawer,children:(0,n.jsx)(R.Z,{})}),(0,n.jsx)("div",{className:S.pageRoot,children:(0,n.jsx)(i.Z,{className:S.container,children:(0,n.jsx)(c.Z,{})})})]}):(0,n.jsxs)("div",{className:S.root,children:[(0,n.jsx)("div",{className:S.drawer,children:(0,n.jsx)(R.Z,{})}),(0,n.jsx)("div",{className:S.pageRoot,children:(0,n.jsxs)(i.Z,{className:S.container,children:[(0,n.jsx)(B(),{href:"/".concat(a,"/backstage/foyer"),passHref:!0,legacyBehavior:!0,children:(0,n.jsx)(l.Z,{className:S.backButton,startIcon:(0,n.jsx)(E.Z,{}),children:e("Back to Foyer")})}),(0,n.jsxs)(d.Z,{className:S.card,children:[(0,n.jsx)(u.Z,{className:S.cardHeader,title:e("Foyer AI Script"),disableTypography:!0}),(0,n.jsx)(p.Z,{children:(0,n.jsx)(h.Z,{variant:"body1",paragraph:!0,children:e("Configure AI to generate forum discussion threads automatically.")})})]}),(0,n.jsxs)(m.Z,{className:S.accordion,defaultExpanded:!0,children:[(0,n.jsx)(f.Z,{expandIcon:(0,n.jsx)(w.Z,{}),className:S.accordionSummary,children:(0,n.jsx)(h.Z,{className:S.sectionTitle,children:e("Conversation Template")})}),(0,n.jsxs)(g.Z,{style:{display:"block"},children:[(0,n.jsx)(v.Z,{label:e("Thread Topic"),fullWidth:!0,variant:"outlined",value:Q,onChange:e=>ee(e.target.value),placeholder:"upcoming concerts, composer discussions, concert reviews...",style:{marginBottom:16}}),(0,n.jsxs)(x.Z,{fullWidth:!0,variant:"outlined",style:{marginBottom:16},children:[(0,n.jsx)(b.Z,{children:e("Conversation Tone")}),(0,n.jsxs)(Z.Z,{value:ea,onChange:e=>et(e.target.value),label:e("Conversation Tone"),children:[(0,n.jsx)(y.Z,{value:"friendly and knowledgeable",children:e("Friendly & Knowledgeable")}),(0,n.jsx)(y.Z,{value:"enthusiastic and passionate",children:e("Enthusiastic & Passionate")}),(0,n.jsx)(y.Z,{value:"thoughtful and analytical",children:e("Thoughtful & Analytical")}),(0,n.jsx)(y.Z,{value:"casual and conversational",children:e("Casual & Conversational")})]})]}),(0,n.jsxs)(x.Z,{fullWidth:!0,variant:"outlined",style:{marginBottom:16},children:[(0,n.jsx)(b.Z,{children:e("Replies per Thread")}),(0,n.jsxs)(Z.Z,{value:en,onChange:e=>eo(e.target.value),label:e("Replies per Thread"),children:[(0,n.jsx)(y.Z,{value:"0",children:e("No replies")}),(0,n.jsxs)(y.Z,{value:"1",children:["1 ",e("reply")]}),(0,n.jsxs)(y.Z,{value:"2-3",children:["2-3 ",e("replies")]}),(0,n.jsxs)(y.Z,{value:"3-5",children:["3-5 ",e("replies")]}),(0,n.jsxs)(y.Z,{value:"5-8",children:["5-8 ",e("replies")]})]})]}),(0,n.jsx)(v.Z,{label:e("Custom Instructions"),fullWidth:!0,variant:"outlined",multiline:!0,rows:4,value:er,onCh
1ange:e=>es(e.target.value),placeholder:e("Any additional guidance for the AI..."),style:{marginBottom:16}})]})]}),(0,n.jsxs)(m.Z,{className:S.accordion,children:[(0,n.jsx)(f.Z,{expandIcon:(0,n.jsx)(w.Z,{}),className:S.accordionSummary,children:(0,n.jsxs)(h.Z,{className:S.sectionTitle,children:[e("Concert Selection")," (",O.length,")"]})}),(0,n.jsxs)(g.Z,{style:{display:"block"},children:[(0,n.jsx)(h.Z,{variant:"body2",color:"textSecondary",paragraph:!0,children:e("Select concerts to reference in generated threads")}),(0,n.jsx)("div",{style:{marginBottom:16},children:O.map(e=>(0,n.jsx)(j.Z,{label:e,onDelete:()=>ed(e),className:S.concertChip},e))}),(0,n.jsx)(l.Z,{variant:"outlined",onClick:()=>q(!0),children:e("Add Concerts")})]})]}),(0,n.jsxs)(m.Z,{className:S.accordion,children:[(0,n.jsx)(f.Z,{expandIcon:(0,n.jsx)(w.Z,{}),className:S.accordionSummary,children:(0,n.jsx)(h.Z,{className:S.sectionTitle,children:e("Schedule")})}),(0,n.jsxs)(g.Z,{style:{display:"block"},children:[(0,n.jsx)(k.Z,{control:(0,n.jsx)(C.Z,{checked:U,onChange:e=>$(e.target.checked),color:"primary"}),label:e("Enable automatic thread generation")}),(0,n.jsxs)("div",{className:S.scheduleSection,children:[(0,n.jsxs)(h.Z,{variant:"subtitle2",gutterBottom:!0,children:[e("Run on days"),":"]}),(0,n.jsx)(N.Z,{row:!0,children:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"].map(a=>(0,n.jsx)(k.Z,{control:(0,n.jsx)(C.Z,{checked:Y.includes(a),onChange:()=>eu(a),color:"primary"}),label:e(a)},a))}),(0,n.jsxs)(x.Z,{variant:"outlined",style:{marginTop:16,minWidth:200},children:[(0,n.jsx)(b.Z,{children:e("Threads per run")}),(0,n.jsxs)(Z.Z,{value:X,onChange:e=>J(e.target.value),label:e("Threads per run"),children:[(0,n.jsxs)(y.Z,{value:1,children:["1 ",e("thread")]}),(0,n.jsxs)(y.Z,{value:2,children:["2 ",e("threads")]}),(0,n.jsxs)(y.Z,{value:3,children:["3 ",e("threads")]}),(0,n.jsxs)(y.Z,{value:5,children:["5 ",e("threads")]})]})]})]})]})]}),(0,n.jsxs)(m.Z,{className:S.accordion,children:[(0,n.jsx)(f.Z,{expandIcon:(0,n.jsx)(w.Z,{}),className:S.accordionSummary,children:(0,n.jsx)(h.Z,{className:S.sectionTitle,children:e("Prompt Preview")})}),(0,n.jsx)(g.Z,{style:{display:"block"},children:(0,n.jsx)(v.Z,{fullWidth:!0,multiline:!0,rows:20,variant:"outlined",value:ei,InputProps:{readOnly:!0,className:S.textAreaField}})})]}),(0,n.jsxs)("div",{className:S.actionButtons,children:[(0,n.jsx)(l.Z,{variant:"contained",className:S.button,onClick:ec,disabled:D,children:D?(0,n.jsx)(c.Z,{size:24}):e("Save Settings")}),(0,n.jsx)(l.Z,{variant:"contained",className:S.runButton,onClick:el,disabled:W,children:W?(0,n.jsx)(c.Z,{size:24}):e("Run Now")})]})]})}),(0,n.jsx)(I.Z,{open:G,handleClose:()=>q(!1),onConcertSelect:e=>{e&&!O.includes(e.id)&&V([...O,e.id])},onConcertDeselect:ed,concertIds:O})]})}},82925:function(e,a,t){"use strict";t.d(a,{B0:function(){return p},Ir:function(){return h},Yf:function(){return m},c7:function(){return f},sd:function(){return g},un:function(){return v}});var n=t(85893),o=t(11163),r=t.n(o),s=t(67294),i=t(25617),c=t(59251),l=t(12056),d=t(56887),u=t(91834);function p(){let e=(0,i.v9)(e=>e.firebase.auth),a=(0,i.v9)(e=>e.firebase.profile),t=(0,u.E)();if((0,s.useEffect)(()=>{e.isLoaded&&a.isLoaded&&e.isEmpty&&r().push((0,d.a0)(t))},[e,a,t]),!(0,c.isLoaded)(e))return(0,n.jsx)(l.Z,{})}function h(){let e=(0,i.v9)(e=>e.firebase.auth),a=(0,i.v9)(e=>e.firebase.profile),t=(0,u.E)();if((0,s.useEffect)(()=>{a.isLoaded&&"pending"===a.status&&r().push((0,d.eN)(t))},[a,t]),!(0,c.isLoaded)(e)||!(0,c.isLoaded)(a))return(0,n.jsx)(l.Z,{})}function m(){let e=(0,i.v9)(e=>e.firebase.auth),a=(0,i.v9)(e=>e.firebase.profile),t=(0,u.E)();if((0,s.useEffect)(()=>{a.isLoaded&&"rejected"===a.status&&r().push((0,d.Rk)(t))},[a,t]),!(0,c.isLoaded)(e)||!(0,c.isLoaded)(a))return(0,n.jsx)(l.Z,{})}function f(){let e=(0,i.v9)(e=>e.firebase.auth),a=(0,i.v9)(e=>e.firebase.profile),t=(0,u.E)();if((0,s.useEffect)(()=>{a.isLoaded&&!a.isSuperAdmin&&r().push((0,d.a0)(t))},[a,t]),!(0,c.isLoaded)(e)||!(0,c.isLoaded)(a))return(0,n.jsx)(l.Z,{})}function g(){let e=(0,i.v9)(e=>e.firebase.auth),a=(0,i.v9)(e=>e.firebase.profile),t=(0,u.E)();if((0,s.useEffect)(()=>{!a.isLoaded||a.isSuperAdmin||a.isWriter||r().push((0,d.a0)(t))},[a,t]),!(0,c.isLoaded)(e)||!(0,c.isLoaded)(a))return(0,n.jsx)(l.Z,{})}function v(){let e=(0,i.v9)(e=>e.firebase.auth),a=(0,i.v9)(e=>e.firebase.profile),t=(0,u.E)();if((0,s.useEffect)(()=>{a.isLoaded&&!a.isSuperAdmin&&"concert_creator"!==a.userRole&&r().push((0,d.a0)(t))},[a,t]),!(0,c.isLoaded)(e)||!(0,c.isLoaded)(a))return(0,n.jsx)(l.Z,{})}}},function(e){e.O(0,[5813,8785,6448,6929,4711,8693,4984,2418,5599,2753,603,7610,2905,1343,1146,7111,6381,2888,9774,179],function(){return e(e.s=29721)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.