1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1316],{136:e=>{e.exports={modalContainer:"SingleSectionModal_modalContainer__tF4iu"}},4424:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(21161);n(88637);var s=n(30697);let o=s.Ay.button.withConfig({componentId:"sc-c6d0f97f-0"})(["width:44px;height:44px;border-radius:50%;display:flex;justify-content:center;align-items:center;color:var(--text-color);outline:none;&:not(:disabled):hover{background-color:var(--block-bg);}&:disabled{color:var(--border-color) !important;cursor:not-allowed;}"," ",""],e=>{let{disabled:t}=e;return t&&(0,s.AH)(["color:var(--border-color) !important;cursor:not-allowed;"])},e=>{let{primary:t}=e;return t&&(0,s.AH)(["fill:var(--primary-color);color:var(--primary-color);"])}),l=function(e){let{disabled:t=!1,children:n,className:s="",onClick:l,primary:a=!1}=e;return(0,i.jsx)(o,{disabled:t,className:s,onClick:l,primary:!!a,children:n})}},11833:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(21161),s=n(84108),o=n(42155),l=n(87811),a=n(88637);function r(e){let{open:t,onClose:n,deleting:r,onDelete:c,title:d,deleteButtonText:m=d,confirmationText:u="Archive Me"}=e,[h,x]=(0,a.useState)("");return(0,i.jsx)(l.A,{open:t,onClose:n,title:d,children:(0,i.jsxs)("div",{className:"p-4",children:[(0,i.jsx)(o.A,{modelValue:h,maxLength:32,onUpdate:e=>x((null==e?void 0:e.toString())||""),className:"mb-4",children:'Type "'.concat(u,'" *')}),(0,i.jsx)(s.A,{disabled:h!==u||r,onClick:c,loading:r,variant:"contained",primary:!0,children:m})]})})}},15749:e=>{e.exports={cardContainer:"SingleCardLayout_cardContainer__IV3OV"}},16445:(e,t,n)=>{"use strict";function i(e,t){let n={};if((!e.content||e.content.length>1024)&&(n.content=!0),e.choices.forEach(e=>{let t={};(!e.content||e.content.length>256)&&(t.content=!0),Object.keys(t).length>0&&(n.choices||(n.choices={}),n.choices[e.key]=t)}),0===e.answerKeys.length&&(n.answerKeys=!0),Object.keys(n).length>0)t.stepItems||(t.stepItems={}),t.stepItems[e.uuid]=n;else{var i;(null==(i=t.stepItems)?void 0:i[e.uuid])&&delete t.stepItems[e.uuid]}}function s(e,t){var n;console.log("userInput",e);let i={};(null==(n=e.label)?void 0:n.trim())&&!(e.label.length>32)||(i.label=!0),Object.keys(i).length>0?(t.stepItems||(t.stepItems={}),t.stepItems[e.order||0]=i):delete t.stepItems,console.log("stepError",t)}n.d(t,{$:()=>i,c:()=>s})},24310:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var i=n(21161),s=n(85757),o=n(84108),l=n(73706),a=n(88637),r=n(30697);let c=r.Ay.span.withConfig({componentId:"sc-c8ecd619-0"})(["color:var(--text-color);cursor:pointer;.iconclose{color:white !important;}"]),d=r.Ay.a.withConfig({componentId:"sc-c8ecd619-1"})(["border-radius:0.5rem;background-color:#5964f3;color:white;border:1px solid;outline:none;padding:8px 16px;font-size:calc(18 / 16) rem;font-weight:500;min-width:220px;line-height:36px;svg{height:36px;}"]),m=function(e){let{removeDiscord:t,item:n}=e,[r,m]=(0,a.useState)(!1),u=(0,a.useCallback)(e=>{m(e)},[]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"w-full flex justify-center",children:(0,i.jsx)("div",{className:"mb-4",children:(0,i.jsxs)(d,{onClick:()=>u(!0),className:"relative text-white inline-flex items-center justify-center",children:[(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 100 100",viewBox:"0 0 100 100",children:(0,i.jsx)("path",{fill:"white",d:"M85.778,24.561c-11.641-8.71-22.793-8.466-22.793-8.466s-1.14,1.302-1.14,1.302c13.839,4.152,20.27,10.257,20.27,10.257 c-19.799-10.901-45.019-10.823-65.613,0c0,0,6.675-6.431,21.328-10.583c0,0-0.814-0.977-0.814-0.977s-11.071-0.244-22.793,8.466 c0,0-11.722,21.084-11.722,47.052c0,0,6.838,11.722,24.829,12.292c0,0,3.012-3.582,5.454-6.675 c-10.339-3.093-14.246-9.524-14.246-9.524c6.495,4.064,13.063,6.608,21.247,8.222c13.316,2.741,29.879-0.077,42.249-8.222 c0,0-4.07,6.594-14.734,9.606c2.442,3.012,5.373,6.512,5.373,6.512C90.662,83.254,97.5,71.532,97.5,71.613 C97.5,45.645,85.778,24.561,85.778,24.561z M34.818,64.043c-4.559,0-8.303-3.989-8.303-8.955c0.333-11.892,16.357-11.855,16.607,0 C43.121,60.054,39.458,64.043,34.818,64.043z M64.531,64.043c-4.559,0-8.303-3.989-8.303-8.955c0.366-11.869,16.19-11.874,16.607,0 C72.834,60.054,69.171,64.043,64.531,64.043z"})}),(0,i.jsx)("div",{className:"h-[32px] w-full overflow-hidden rounded-full mr-2 flex items-center justify-center",children:(0,i.jsxs)("span",{className:"text-white ml-2",children:["Connect Discord",(0,i.jsx)(c,{className:"text-white right-2 top-0 absolute",onClick:()=>t(n.uuid),children:(0,i.jsx)(l.A,{width:"20",height:"20",className:"link-color",name:"close"})})]})})]})})}),(0,i.jsxs)(s.A,{open:r,onClose:()=>u(!1),children:[(0,i.jsx)("div",{className:"border-b pt-3 pb-2 text-center",children:(0,i.jsx)("h3",{children:"Connect Discord"})}),(0,i.jsx)("div",{className:"modal-body",children:(0,i.jsx)("div",{className:"m-4 space-y-2",children:"This button will be used by the members to connect their Discord"})}),(0,i.jsx)("div",{className:"border-t p-4 text-center",children:(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsx)(o.A,{onClick:()=>u(!1),primary:!0,variant:"contained",children:"Close"})})})]})]})}},36698:e=>{e.exports={menuButton:"EllipsisDropdown_menuButton__Gt9sf",dropdownItem:"EllipsisDropdown_dropdownItem__X1Wd1",active:"EllipsisDropdown_active__PsrdL",menuItems:"EllipsisDropdown_menuItems__4Hdxu"}},41215:(e,t,n)=>{"use strict";n.d(t,{A:()=>u});var i=n(21161),s=n(47012),o=n(47623),l=n(52995),a=n(42155),r=n(53754),c=n(30697);let d=c.Ay.div.withConfig({componentId:"sc-d9f44677-0"})(["padding-bottom:0.5rem;border-bottom:",";"],e=>e.error?"2px solid red":"1px solid var(--border-color)"),m=(0,c.Ay)(a.A).withConfig({componentId:"sc-d9f44677-1"})([""]),u=function(e){let{removeUserInput:t,item:n,userInputErrors:a,updateUserInputLabel:c,updateUserInputPrivate:u,updateUserInputRequired:h}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{className:"float-right my-2 mr-4",onClick:()=>t(n.uuid),iconName:l.B.Trash}),(0,i.jsx)(d,{className:"flex",error:null==a?void 0:a.label,children:(0,i.jsx)(m,{label:"User Input Label",maxLength:64,modelValue:n.label,onUpdate:e=>c(n.uuid,e?e.toString():"")})}),(0,i.jsx)("div",{className:"flex mt-2",children:(0,i.jsx)(s.A,{isChecked:n.required,onChange:e=>h(n.uuid,e),id:"required-".concat(n.uuid),labelContent:"Required"})}),(0,i.jsx)("div",{className:"flex mt-2",children:(0,i.jsx)(s.A,{isChecked:n.type===r.NZ.PrivateShortInput,onChange:e=>u(n.uuid,e),id:"private-".concat(n.uuid),labelContent:"Private"})})]})}},42405:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(21161);let s=function(e){let{name:t,size:n}=e;return(0,i.jsx)("i",{className:"iconfont icon".concat(t),style:n?{fontSize:"".concat(n,"px"),lineHeight:"".concat(n,"px"),color:"var(--text-color)"}:{}})}}
1,47012:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(21161),s=n(98927),o=n.n(s);function l(e){let{id:t,labelContent:n,isChecked:s,className:l,readonly:a,onChange:r}=e;return(0,i.jsxs)("div",{className:"flex items-center ".concat(l||""),children:[(0,i.jsxs)("div",{className:"relative mt-2",children:[(0,i.jsx)("input",{id:t,name:"notification-method",type:"checkbox",checked:s,readOnly:a,onChange:()=>r(!s),className:"h-4 w-4 border focus:ring focus:outline-none mr-2 ".concat(o().styledInput),disabled:a}),(0,i.jsx)("div",{className:"".concat(o().checkboxOverlay," ").concat(a?o().readonly:""," ").concat(s?"isChecked":"")})]}),(0,i.jsx)("label",{htmlFor:t,className:"ml-2 mt-3 block text-sm font-medium leading-6 markdown-body ".concat(o().styledLabel),dangerouslySetInnerHTML:{__html:n}})]},t)}},48131:e=>{e.exports={overlay:"Radio_overlay__Yg19w",readonly:"Radio_readonly__tz5gs",isSelected:"Radio_isSelected__8fJPt",styledInput:"Radio_styledInput__QjHF8",styledLabel:"Radio_styledLabel__qVNvn"}},48930:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var i=n(21161),s=n(849),o=n(88637);let l=n(30697).Ay.label.withConfig({componentId:"sc-c977e775-0"})(["input[type='file']{display:none;font-weight:normal;}&:hover{cursor:pointer;}"]);function a(e){let{loading:t,children:n,className:a,allowedFileTypes:r,uploadFile:c}=e,d=(0,o.useRef)(null),m=async e=>{let t=e.target.files[0];if(!r.includes(t.type))return void console.log("File type not supported");await c(t)};return(0,i.jsx)("div",{className:a,children:t?(0,i.jsx)("div",{className:"pl-4",children:(0,i.jsx)(s.A,{})}):(0,i.jsx)(l,{children:(0,i.jsxs)("div",{children:[(0,i.jsx)("input",{type:"file",ref:d,onChange:m,accept:r.join(", ")}),n]})})})}},50236:(e,t,n)=>{"use strict";function i(e,t,n){return"\nCreate ".concat(t," MCQ questions with four choices related to the following Topic: ").concat(e,' from the below text. Mention the correct choice and the explanation also.\n\nThen populate the questions in the following JSON template\n\n\n[{\n "content": "What is an asset?",\n "answerKeys": [\n "A"\n ],\n "explanation": "Property owned by a person or company, regarded as having value and available to meet debts, commitments, or legacies.",\n "choices": [{\n "content": "Something that is owned by a person or company and increases in value over time",\n "key": "A"\n },\n {\n "content": "Something that you buy from a shop",\n "key": "B"\n },\n {\n "content": "Something that decreases in value over time",\n "key": "C"\n },\n {\n "content": "Something that you buy for fun",\n "key": "D"\n }\n ]\n}] \n\nHere is the description of the fields\n- content is the question\n- explanation field includes the explanation for the correct choice\n- answerKeys includes the "key" field corresponding to the correct choice. The choices are present in the choices field that is explained below.\n- choices has two fields. "content" field is the content of the choice and a random character from A,B,C,D goes into the "key" Field. The key corresponding to the correct choice goes in "answerKeys" field. Make sure the correct choice is random for every question.\n\n \nHere is the text for creating the questions \n').concat(n,"\n\n\n\nMake sure\n- Only one choice is correct and rest are incorrect.\n- Output the questions as json array. \n- Output should be in pure and valid JSON Array format.\n\nThe JSON object:\n").trim()}n.d(t,{A:()=>i})},55753:e=>{e.exports={styledHover:"UploadInput_styledHover__Qnf6N"}},57222:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var i=n(21161);n(88637);var s=n(15749),o=n.n(s);let l=e=>{let{children:t}=e;return(0,i.jsx)("div",{className:"lg:px-6 sm:px-2 py-4 rounded-2xl sm:shadow-lg ".concat(o().cardContainer),children:t})}},65013:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var i=n(21161),s=n(42405);n(88637);let o=e=>{let{title:t,counter:n,slim:o,icon:l,loading:a,onSubmit:r,children:c,className:d}=e;return(0,i.jsxs)("div",{className:"rounded-none md:rounded-lg mb-4 bg-skin-block-bg h-full",children:[t&&(0,i.jsxs)("h4",{className:"px-4 pt-3 block bg-skin-header-bg lg:rou
1nded-2xl ".concat(d),style:{paddingBottom:"12px"},children:[t,l&&(0,i.jsx)("a",{onClick:r,className:"float-right text-color",style:{paddingTop:"2px"},children:(0,i.jsx)(s.A,{name:l,size:"22"})}),(0,i.jsx)("slot",{name:"actions"})]}),a&&(0,i.jsxs)("div",{className:"block px-4 py-4",children:[(0,i.jsx)("div",{className:"bg-skin-text rounded-md animate-pulse-fast mb-2",style:{width:"80%",height:"20px"}}),(0,i.jsx)("div",{className:"bg-skin-text rounded-md animate-pulse-fast",style:{width:"50%",height:"20px"}})]}),!a&&(0,i.jsx)("div",{className:"h-full leading-6".concat(o?"":" p-4"),children:c})]})}},65419:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(21161),s=n(85757),o=n(84108),l=n(53754);let a=n(30697).Ay.h3.withConfig({componentId:"sc-6fbc787d-0"})([""]),r=function(e){let{open:t,hasDiscordEnabled:n,onClose:r,onAddQuestion:c,onAddInput:d,onAddDiscord:m}=e,u=e=>{c(e),r()},h=e=>{d(e),r()};return(0,i.jsxs)(s.A,{open:t,onClose:r,children:[(0,i.jsx)(a,{className:" p-4 text-center font-bold text-2xl",children:"Add Input or Question"}),(0,i.jsxs)("div",{className:"m-4 space-y-2",children:[(0,i.jsx)(o.A,{className:"button-outline w-full flex justify-center items-center",onClick:()=>h(l.NZ.PublicShortInput),children:"Public Input"}),(0,i.jsx)(o.A,{className:"button-outline w-full flex justify-center items-center",onClick:()=>h(l.NZ.PrivateShortInput),children:"Private Input"}),(0,i.jsx)(o.A,{className:"button-outline w-full flex justify-center items-center",onClick:()=>u(l.xi.MultipleChoice),children:"Multiple Choice Question"}),(0,i.jsx)(o.A,{className:"button-outline w-full flex justify-center items-center",onClick:()=>u(l.xi.SingleChoice),children:"Single Choice Question"}),(0,i.jsx)(o.A,{disabled:n,className:"button-outline w-full flex justify-center items-center",onClick:()=>{m(),r()},children:"Add Discord"})]})]})}},69328:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var i=n(21161);n(88637);let s=function(){return(0,i.jsxs)("div",{className:"my-5",children:[(0,i.jsx)("div",{className:"bg-gray-300 rounded-md animate-pulse mb-3",style:{width:"100%",height:"34px"}}),(0,i.jsx)("div",{className:"bg-gray-300 rounded-md animate-pulse mb-3",style:{width:"40%",height:"34px"}}),(0,i.jsx)("div",{className:"bg-gray-300 rounded-md animate-pulse mb-4",style:{width:"65px",height:"28px"}})]})}},72221:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var i=n(21161),s=n(47012),o=n(48131),l=n.n(o);function a(e){let{id:t,labelContent:n,isSelected:s,className:o,readonly:a,onChange:r,questionId:c}=e;return(0,i.jsxs)("div",{className:"custom-radio flex items-center align-middle ".concat(o||""),children:[(0,i.jsxs)("div",{className:"relative mt-2",children:[(0,i.jsx)("input",{id:t,name:c,type:"radio",checked:s,disabled:!!a,readOnly:a,onChange:()=>r(!s),className:"h-4 w-4 border focus:ring focus:outline-none mr-2 peer -mt-3 ".concat(l().styledInput),required:!0}),(0,i.jsx)("div",{className:"".concat(l().overlay," ").concat(a?l().readonly:""," ").concat(s?"isSelected":"")})]}),(0,i.jsx)("label",{htmlFor:t,className:"ml-2 block text-sm leading-6 markdown-body ".concat(l().styledLabel),dangerouslySetInnerHTML:{__html:n}})]},t)}var r=n(4424),c=n(90273);function d(){return(0,i.jsx)("svg",{className:"text-skin-text",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 3.25h2c.69 0 1.25.56 1.25 1.25V5h-4.5v-.5c0-.69.56-1.25 1.25-1.25ZM6.5 5v-.5A2.5 2.5 0 0 1 9 2h2a2.5 2.5 0 0 1 2.5 2.5V5h3.375a.625.625 0 1 1 0 1.25H16V15a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3V6.25h-.875a.625.625 0 1 1 0-1.25H6.5Zm7 1.25H5.25V15c0 .966.784 1.75 1.75 1.75h6A1.75 1.75 0 0 0 14.75 15V6.25H13.5ZM8.125 8h-.25v6h1.25V8h-1Zm2.75 1V8h1.25v6h-1.25V9Z",fill:"currentColor"})})}n(88637);var m=n(42155),u=n(36655),h=n(53754),x=n(6700),p=n(65647),g=n(30697);let f=g.Ay.button.withConfig({componentId:"sc-9d5633b0-0"})(["color:var(--primary-color);"]),y=g.Ay.button.withConfig({componentId:"sc-9d5633b0-1"})(["color:var(--text-color);"]),v=[{text:"Multiple Choice",action:h.xi.MultipleChoice},{text:"Single Choice",action:h.xi.SingleChoice}];function b(e){let{addChoice:t,item:n,questionErrors:o,removeChoice:l,removeQuestion:g,setAnswer:b,updateChoiceContent:j,updateQuestionDescription:w,updateQuestionExplanation:N,updateAnswers:C,updateQuestionType:k}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"flex items-center justify-between pb-2",children:[(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)("div",{className:"pr-1 select-none",children:n.type===h.xi.MultipleChoice?"Multiple Choice":"Single Choice"}),(0,i.jsx)(c.A,{items:v.map(e=>({label:e.text,key:e.action})),onSelect:e=>k(n.uuid,e)})]}),g&&(0,i.jsx)(r.A,{className:"float-right my-2 mr-4",onClick:()=>g(n.uuid),children:(0,i.jsx)(d,{})})]})}),(0,i.jsx)(u.A,{label:"Question",id:"question",modelValue:n.content,placeholder:"Guide question content",className:"input w-full text-left",onUpdate:e=>null==w?void 0:w(n.uuid,void 0!==e?e.toString():"")}),(null==o?void 0:o.content)&&(0,i.jsx)("i",{className:"iconfont iconwarning !text-red","data-v-abc9f7ae":""}),n.choices.map(e=>{var t,r;return(0,i.jsxs)("div",{className:"flex items-center",children:[n.type===h.xi.SingleChoice?(0,i.jsx)(a,{questionId:n.uuid,isSelected:n.answerKeys.includes(e.ke
1y),onChange:t=>null==b?void 0:b(n.uuid,e.key,!n.answerKeys.includes(e.key)),id:e.key,labelContent:"",className:"grow-0"}):(0,i.jsx)(s.A,{isChecked:n.answerKeys.includes(e.key),onChange:t=>null==C?void 0:C(n.uuid,e.key,!n.answerKeys.includes(e.key)),id:e.key,labelContent:"",className:"grow-0"}),(0,i.jsx)(m.A,{modelValue:e.content,maxLength:256,disabled:!1,onUpdate:t=>null==j?void 0:j(n.uuid,e.key,void 0!==t?t.toString():""),error:null==o||null==(r=o.choices)||null==(t=r[e.key])?void 0:t.content,className:"w-full grow-1"}),n.choices.length>1&&(0,i.jsx)(y,{className:"cursor-pointer p-2 grow-0 mt-4",onClick:()=>null==l?void 0:l(n.uuid,e.key),children:(0,i.jsx)(p.A,{height:24,width:24})})]},e.key)}),(0,i.jsx)(f,{className:"m-auto rounded-full text-2xl bg-primary w-[48px] text-white flex items-center font-bold justify-center h-[48px]",onClick:()=>t(n.uuid),children:(0,i.jsx)(x.A,{height:25,width:25})}),(0,i.jsx)(u.A,{label:"Explanation",id:n.uuid+"question_explanation",modelValue:n.explanation,placeholder:"Guide question content",className:"input w-full text-left",onUpdate:e=>null==N?void 0:N(n.uuid,void 0!==e?e.toString():"")})]})}},85757:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var i=n(21161),s=n(88637),o=n(30697),l=n(42405);let a=(0,o.i7)(["0%{opacity:0;}100%{opacity:1;}"]),r=o.Ay.div.withConfig({componentId:"sc-bfc054e-0"})(["animation:"," 0.3s linear;"],a),c=o.Ay.div.withConfig({componentId:"sc-bfc054e-1"})(["position:fixed;display:flex;top:0;bottom:0;left:0;right:0;align-items:center;justify-content:center;z-index:40;"]),d=o.Ay.div.withConfig({componentId:"sc-bfc054e-2"})(["position:fixed;top:0;bottom:0;left:0;right:0;z-index:99;background:rgba(0,0,0,0.4);"]),m=o.Ay.div.withConfig({componentId:"sc-bfc054e-3"})(["border:1px solid var(--border-color);background-color:var(--bg-color);padding-left:0 !important;padding-right:0 !important;max-width:440px;overflow-y:auto !important;max-height:calc(100vh - 120px);display:flex;flex-direction:column;z-index:999;margin:0 auto;width:100%;@media (max-width:767px){border:0;width:100% !important;max-width:100% !important;max-height:100% !important;min-height:100% !important;margin-bottom:0 !important;}"]),u=o.Ay.a.withConfig({componentId:"sc-bfc054e-4"})(["position:absolute;right:25px;top:1rem;padding:1rem;color:var(--text-color);cursor:pointer;"]),h=function(e){let{open:t,shellClass:n,onClose:o,children:a}=e,h=(0,s.useRef)(null);return(0,s.useEffect)(()=>{h.current&&(h.current.style.opacity=t?"1":"0")},[t]),(0,i.jsx)(r,{ref:h,children:t&&(0,i.jsxs)(c,{children:[(0,i.jsx)(d,{onClick:o}),(0,i.jsxs)(m,{className:"shell overflow-hidden relative rounded-none md:rounded-lg ".concat(n||""),children:[a,(0,i.jsx)(u,{onClick:o,children:(0,i.jsx)(l.A,{name:"close"})})]})]})})}},87811:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var i=n(21161),s=n(42160),o=n(17675),l=n(60907),a=n(88637),r=n(136),c=n.n(r);function d(e){let{open:t,title:n,children:r,onClose:d,showCloseButton:m=!0,showSemiTransparentBg:u=!1}=e;return(0,i.jsx)(s.e,{show:t,as:a.Fragment,children:(0,i.jsxs)(o.lG,{as:"div",className:"relative z-10",onClose:d,children:[(0,i.jsx)(s._,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,i.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-0 transition-opacity"})}),(0,i.jsx)("div",{className:"".concat(u?c().modalContainer:"background-color"," text-color fixed inset-0 z-10 overflow-y-auto flex min-h-full items-center justify-center p-4 text-center sm:items-center sm:p-0"),children:(0,i.jsx)(s._,{as:a.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:(0,i.jsxs)(o.Lj,{className:"background-color z-15 border border-color relative transform overflow-hidden rounded-lg p-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-sm sm:p-6",children:[m&&(0,i.jsx)("div",{className:"flex justify-end",children:(0,i.jsxs)("button",{type:"button",className:"inline-flex rounded-md",onClick:()=>{d()},children:[(0,i.jsx)("span",{className:"sr-only",children:"Close"}),(0,i.jsx)(l.A,{className:"h-5 w-5","aria-hidden":"true"})]})}),(0,i.jsxs)("div",{className:"text-center",children:[(0,i.jsx)(o.L3,{as:"h3",className:"text-base font-semibold leading-6",children:n}),(0,i.jsx)("div",{className:"mt-2",children:r})]})]})})})]})})}},90273:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});var i=n(21161),s=n(31639),o=n(39065);n(88637);var l=n(36698),a=n.n(l);function r(e){return(0,i.jsxs)(s.W1,{as:"div",className:"relative inline-block text-left ".concat(e.className||""),children:[(0,i.jsx)("div",{children:(0,i.jsxs)(s.IU,{className:"flex items-center rounded-full focus:ring-offset-2 z-0 ".concat(a().menuButton),children:[(0,i.jsx)("span",{className:"sr-only",children:"Open options"}),(0,i.jsx)(o.A,{className:"h-5 w-5","aria-hidden":"true"})]})}),(0,i.jsx)(s.c,{className:"z-10 mt-2 w-40 origin-top-right rounded-md shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none ".concat(a().menuItems),portal:!0,anchor:{to:"bottom end"},children:(0,i.jsx)("div",{className:"py-1",children:e.items.map((t,n)=>(0,i.jsx)(s.Dr,{children:(0,i.jsx)("a",{className:"block px-4 py-2 text-sm cursor-pointer ".concat(t.disabled?"cursor-not-allowed opacity-50":a().dropdownItem," ").concat(t.active?"active":""),onClick:n=>{t.disabled||e.onSelect(t.key,n)},children:t.label})},n))})})]})}},90490:(e,t,n)=>{"use strict";n.d(t,{A:()=>y});var i=n(21161),s=n(48930),o=n(69783),l=n(72734),a=n(87511),r=n(49204),c=n(18454),d=n(66790),m=n(41015),u=n(88637),h=n(30697),x=n(55753),p=n.n(x);let g=h.Ay.div.withConfig({componentId:"sc-5454fa9d-0"})(["background-color:var(--bg-color);color:var(--text-color);"]),f=h.Ay.input.withConfig({componentId:"sc-5454fa9d-1"})(["background-color:var(--bg-color);border-color:var(--primary-color) !important;color:var(--text-color);&:focus{box-shadow:0 0 0 2px var(--primary-color) !important;}"]);function y(e){let{label:t,modelValue:n,imageType:h,objectId:x,spaceId:y,onInput:v,onLoading:b,placeholder:j="e.g. https://example.com/guide.png",allowedFileTypes:w=["image/jpeg","image/jpg","image/png","image/svg+xml","
1image/svg+xml","image/webp","text/html"],error:N,helpText:C}=e,[k,A]=(0,u.useState)(!1),{postData:_}=(0,o.s)({errorMessage:"Failed to get signed URL"},{});async function I(e){b&&b(!0),A(!0);let t={imageType:h,contentType:e.type,objectId:x.replace(/[^a-z0-9]/gi,"_"),name:e.name.replace(" ","_").toLowerCase()},n=await _("".concat((0,l.A)(),"/api/s3-signed-urls"),{spaceId:y,input:t}),i=null==n?void 0:n.url;await m.A.put(i,e,{headers:{"Content-Type":e.type}});let s=(0,r.Q)(i);v&&v(s),b&&b(!1),A(!1)}let S=y+"-"+(0,a.Y)(t||h||x);return(0,i.jsxs)("div",{className:"my-4",children:[(0,i.jsx)("label",{htmlFor:S,className:"block text-sm font-semibold leading-6",children:t||"Image URL"}),(0,i.jsxs)(g,{className:"mt-2 flex rounded-md shadow-sm",children:[(0,i.jsxs)("div",{className:"relative flex flex-grow items-stretch focus-within:z-10",children:[(0,i.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,i.jsx)(d.A,{className:"h-5 w-5 text-gray-400","aria-hidden":"true"})}),(0,i.jsx)(f,{id:S,className:"block w-full rounded-none rounded-l-md border-0 py-1.5 pl-10 ring-1 ring-inset placeholder:text-gray-400 ring-gray-400 shadow-sm focus:ring-2 focus:ring-inset sm:text-sm sm:leading-6",placeholder:j,"aria-invalid":"true","aria-describedby":"email-error",value:n||"",onChange:e=>v(e.target.value)})]}),(0,i.jsx)(s.A,{allowedFileTypes:w,className:"relative -ml-px inline-flex items-center gap-x-1.5 rounded-r-md px-3 py-2 text-sm font-semibold ring-1 ring-inset ring-gray-300 "+p().styledHover,uploadFile:I,loading:k,children:(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)(c.A,{className:"-ml-0.5 h-5 w-5 text-gray-400","aria-hidden":"true"}),(0,i.jsx)("span",{className:"mx-2",children:"Upload"})]})})]}),C&&(0,i.jsx)("p",{className:"ml-1 mt-2 mb-2 text-sm",children:C}),"string"==typeof N&&(0,i.jsx)("p",{className:"mt-2 text-sm text-left text-red-600",children:N})]})}},98927:e=>{e.exports={checkboxOverlay:"Checkbox_checkboxOverlay__UiJHT",readonly:"Checkbox_readonly__XspAx",isChecked:"Checkbox_isChecked__EY9_u",styledInput:"Checkbox_styledInput__0rsih",styledLabel:"Checkbox_styledLabel__95DWF"}}}]); 2//# sourceMappingURL=1316-5bb2b760358c937c.js.map
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.