1try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="17d8a0f5-ad73-4b59-9736-58c685ae8a96",t._sentryDebugIdIdentifier="sentry-dbid-17d8a0f5-ad73-4b59-9736-58c685ae8a96")}()}catch(t){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9159],{15526:(t,e,s)=>{"use strict";s.d(e,{n:()=>p});var a=s(14232),n=s(15154),i=s(55640),r=s(68941),l=s(29382);class o extends l.Q{constructor(t,e){super(),this.client=t,this.setOptions(e),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var e;let s=this.options;this.options=this.client.defaultMutationOptions(t),(0,n.f8)(s,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(e=this.currentMutation)||e.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;null==(t=this.currentMutation)||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();let e={listeners:!0};"success"===t.type?e.onSuccess=!0:"error"===t.type&&(e.onError=!0),this.notify(e)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,e){return this.mutateOptions=e,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==t?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let t=this.currentMutation?this.currentMutation.state:(0,i.$)(),e="loading"===t.status,s={...t,isLoading:e,isPending:e,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset};this.currentResult=s}notify(t){r.j.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var e,s,a,n,i,r,l,o;t.onSuccess?(null==(e=(s=this.mutateOptions).onSuccess)||e.call(s,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(a=(n=this.mutateOptions).onSettled)||a.call(n,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):t.onError&&(null==(i=(r=this.mutateOptions).onError)||i.call(r,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(l=(o=this.mutateOptions).onSettled)||l.call(o,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}t.listeners&&this.listeners.forEach(({listener:t})=>{t(this.currentResult)})})}}var d=s(15379),c=s(85461),u=s(7192);function p(t,e,s){let i=(0,n.GR)(t,e,s),l=(0,c.jE)({context:i.context}),[p]=a.useState(()=>new o(l,i));a.useEffect(()=>{p.setOptions(i)},[p,i]);let g=(0,d.r)(a.useCallback(t=>p.subscribe(r.j.batchCalls(t)),[p]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),_=a.useCallback((t,e)=>{p.mutate(t,e).catch(h)},[p]);if(g.error&&(0,u.G)(p.options.useErrorBoundary,[g.error]))throw g.error;return{...g,mutate:_,mutateAsync:g.mutate}}function h(){}},29222:t=>{t.exports={box:"styles_box__rhbVm",icon:"styles_icon__SxAMJ",content:"styles_content__GShL8"}},36793:t=>{t.exports={inputContainer:"styles_inputContainer__oG6Ip",secondary:"styles_secondary__IeOhl",success:"styles_success__T01o3",danger:"styles_danger__zVU_o",noMargin:"styles_noMargin__HuO75",description:"styles_description__G2Hll",input:"styles_input__cudZ0",icon:"styles_icon__cFrfw",tooltip:"styles_tooltip__6Hhw2",phone:"styles_phone__St1px"}},44865:(t,e,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/members-area/settings",function(){return s(73654)}])},60849:(t,e,s)=>{"use strict";s.d(e,{J:()=>n});var a=s(1370);let n={async pandaConfig(){var t,e,s,n,i,r,l,o;let d=await a.z.get("integrations/panda-video");return{panda_group_id:null!=(l=null==(s=d.data)||null==(e=s.settings)||null==(t=e.data)?void 0:t.panda_group_id)?l:"",panda_token:null!=(o=null==(r=d.data)||null==(i=r.settings)||null==(n=i.data)?void 0:n.panda_token)?o:""}},async savePandaConfig(t){await a.z.put("integrations/panda-video",{settings:{data:t}})},async tellaConfig(){var t,e,s,n;return{api_key:null!=(n=null==(s=(await a.z.get("integrations/tella")).data)||null==(e=s.settings)||null==(t=e.data)?void 0:t.api_key)?n:""}},async saveTellaConfig(t){await a.z.put("integrations/tella",{settings:{data:t}})},async tellaMedias(t){var e,s,n,i,r;let l=await a.z.get("integrations/tella/medias",{params:void 0===t?{}
1:{cursor:t}});return{videos:null!=(i=null==(e=l.data)?void 0:e.videos)?i:[],nextCursor:null!=(r=null==(n=l.data)||null==(s=n.pagination)?void 0:s.nextCursor)?r:void 0}}}},73654:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>E});var a=s(37876),n=s(6903),i=s(72609),r=s(55751),l=s(72498),o=s(54587),d=s.n(o),c=s(14232),u=s(34846),p=s(91630),h=s(35801),g=s(77621),_=s(87067),m=s(60634),f=s(60849),y=s(85461),x=s(19871),v=s(15526),b=s(88992),j=s(97250),S=s(97388),C=s(37983),w=s(92672),N=s.n(w);let O=t=>{let{isOpen:e,onClose:s}=t,{t:n}=(0,u.Bd)("components_membersArea_settings"),i=(0,y.jE)(),{register:r,handleSubmit:l,reset:o}=(0,b.mN)({defaultValues:{panda_group_id:"",panda_token:""}}),{data:d,isLoading:w}=(0,x.I)({queryKey:["members-area","integrations","panda"],queryFn:async()=>await f.J.pandaConfig(),enabled:e,retry:!1});(0,c.useEffect)(()=>{void 0!==d&&o(d)},[d,o]);let O=(0,v.n)(async t=>{await f.J.savePandaConfig(t)},{onSuccess:async()=>{C.oR.success(String(n("panda.saved"))),await i.invalidateQueries(["members-area","integrations","panda"]),s()},onError:()=>{C.oR.error(String(n("panda.saveError")))}});return(0,a.jsx)(_.z,{fullScreen:!0,title:String(n("panda.title")),isModalOpen:e,setIsModalOpen:s,children:w?(0,a.jsx)(m.z,{}):(0,a.jsxs)("form",{className:N().pandaForm,onSubmit:t=>{l(t=>{O.mutate(t)})(t)},children:[(0,a.jsx)(p.A,{icon:(0,a.jsx)(S.ElM,{}),title:String(n("panda.info.title")),description:String(n("panda.info.description")),secondDescription:String(n("panda.info.secondDescription"))}),(0,a.jsx)("p",{className:N().pandaWarning,children:n("panda.warning")}),(0,a.jsx)(g.A,{title:String(n("panda.groupId")),"aria-label":String(n("panda.groupId")),...r("panda_group_id")}),(0,a.jsx)(g.A,{title:String(n("panda.token")),"aria-label":String(n("panda.token")),...r("panda_token")}),(0,a.jsx)("div",{className:N().pandaActions,children:(0,a.jsxs)(h.$,{type:"submit",className:"success",isSetting:O.isLoading,children:[n("panda.save")," ",(0,a.jsx)(j.Z13,{})]})})]})})},R=t=>{let{isOpen:e,onClose:s}=t,{t:n}=(0,u.Bd)("components_membersArea_settings"),i=(0,y.jE)(),[l,o]=(0,c.useState)(!1),{register:d,handleSubmit:w,reset:O,setValue:R,formState:{isDirty:k}}=(0,b.mN)({defaultValues:{api_key:""}}),{data:M,isLoading:E}=(0,x.I)({queryKey:["members-area","integrations","tella"],queryFn:async()=>await f.J.tellaConfig(),enabled:e,retry:!1});(0,c.useEffect)(()=>{void 0!==M&&(O(M),o(""!==M.api_key))},[M,O]);let A=(0,v.n)(async t=>{await f.J.saveTellaConfig(t)},{onSuccess:async()=>{C.oR.success(String(n("tella.saved"))),await i.invalidateQueries(["members-area","integrations","tella"]),await i.invalidateQueries(["members-area","integrations","tella","medias"]),s()},onError:()=>{C.oR.error(String(n("tella.saveError")))}});return(0,a.jsx)(_.z,{fullScreen:!0,title:String(n("tella.title")),isModalOpen:e,setIsModalOpen:s,children:E?(0,a.jsx)(m.z,{}):(0,a.jsxs)("form",{className:N().configForm,onSubmit:t=>{w(t=>{A.mutate(t)})(t)},children:[(0,a.jsx)(p.A,{icon:(0,a.jsx)(S.ElM,{}),title:String(n("tella.info.title")),description:String(n("tella.info.description")),secondDescription:String(n("tella.info.secondDescription"))}),(0,a.jsx)(r.b4,{brand:"ticto",label:String(n("tella.enable")),checked:l,onChange:t=>{o(t.target.checked),t.target.checked||R("api_key","",{shouldDirty:!0})},children:(0,a.jsx)("div",{className:N().configClusterField,children:(0,a.jsx)(g.A,{noMargin:!0,title:String(n("tella.apiKey")),"aria-label":String(n("tella.apiKey")),placeholder:String(n("tella.apiKeyPlaceholder")),...d("api_key")})})}),(0,a.jsx)("div",{className:N().configActions,children:(0,a.jsxs)(h.$,{type:"submit",className:"success",isSetting:A.isLoading,disabled:!k||A.isLoading,children:[n("tella.save")," ",(0,a.jsx)(j.Z13,{})]})})]})})},k=()=>{let{t}=(0,u.Bd)("components_membersArea_settings"),{brand:e}=(0,i.R)(),{resolvedTheme:s}=(0,l.D)(),[n,o]=(0,c.useState)(!1),[p,h]=(0,c.useState)(!1);return(0,a.jsxs)(r.wA,{brand:e,label:String(t("title")),children:[(0,a.jsxs)("div",{className:N().grid,children:[(0,a.jsxs)("div",{className:N().cardItem,children:[(0,a.jsx)("button",{type:"button",className:N().card,"aria-label":String(t("panda.open")),onClick:()=>{o(!0)},children:(0,a.jsx)(d(),{src:"light"===s?"/panda_light.png":"/panda.png",alt:"Panda Video",width:200,height:80,className:N().cardLogo})}),(0,a.jsx)("span",{className:N().cardCaption,children:t("panda.caption")})]}),(0,a.jsxs)("div",{className:N().cardItem,children:[(0,a.jsx)("button",{type:"button",className:"".concat(N().card," ").concat(N().cardNoPadding),"aria-label":String(t("tella.open")),onClick:()=>{h(!0)},children:(0,a.jsx)(d(),{src:"/tella-tv.svg",alt:"Tella.tv",width:284,height:164,className:N().cardLogoFill})}),(0,a.jsx)("span",{className:N().cardCaption,children:t("tella.caption")})]})]}),n&&(0,a.jsx)(O,{isOpen:!0,onClose:()=>{o(!1)}}),p&&(0,a.jsx)(R,{isOpen:!0,onClose:()=>{h(!1)}})]})};var M=s(60929);let E=()=>{let{t}=(0,u.Bd)("components_membersArea_settings");return(0,a.jsx)(n.A,{title:String(t("pageTitle")),children:(0,a.jsx)(M.A,{md:12,children:(0,a.jsx)(k,{})})})}},77621:(t,e,s)=>{"use strict";s.d(e,{A:()=>m});var a=s(37876),n=s(83832),i=s(94434),r=s(60913),l=s(14232),o=s(7001),d=s(80807),c=s(24146),u=s(26978),p=s.n(u),h=s(58262),g=s(36793),_=s.n(g);let m=(0,l.forwardRef)((t,e)=>{var s,u;let{title:g,noMargin:m=!1,type:f,description:y=null,defaultValue:x,errors:v,autoComplete:b="off",outsideRef:j,badge:S=null,help:C=null,link:w=null,mask:N=null,maskChar:O=null,currency:R,currencyIsoCode:k,float:M,icon:E,callback:A,counter:I=!1,id:F,...D}=t,L=(0,l.useId)().replace(/:/g,""),z=null!=F?F:"input-".concat(L),{handleShowHelpModal:P}=(0,i.D)(),[T,V]=(0,l.useState)((0,a.jsx)(c.whC,{})),[K,U]=(0,l.useState)(!1),[B,J]=(0,l.useState)(f),{disabled:Q}=D;return(0,l.useEffect)(()=>{"password"===f&&(K?(V((0,a.jsx)(c.Rds,{})),J("text")):(V((0,a.jsx)(c.whC,{})),J("password")))},[K]),(0,a.jsxs)("fieldset",{className:"".concat(_().inputContainer," ").concat(m&&_().noMargin," "),children:[g&&(0,a.jsxs)("label",{htmlFor:z,children:[g,w&&(0,a.jsx)("sup",{children:w}),S&&(0,a.jsx)("sup",{"data-tip":S,children:(0,a.jsx)(d.AOl,{})}),C&&(0,a.jsx)("a",{onClick:()=>P(C),children:(0,a.jsx)("sup",{className:_().badge,"data-tip":S,children:(0,a.jsx)(d.AOl,{})})})]}),S&&(0,a.jsx)(h.A,{place:"top",effect:"solid",className:_().tooltip,delayShow:200,delayHide:100,offset:{top:5}}),(0,a.jsxs)("span",{className:"".concat(_().input," ").concat((E||"password"===f)&&_().icon),children:[N?(0,a.jsx)(p(),{id:z,mask:N,ref:e,inputRef:e,maskChar:O,placeholder:" ",type:B,autoComplete:b,defaultValue:x,...D}):R||M?(0,a.jsx)("input",{id:z,type:B,ref:e,placeholder:" ",onKeyUp:t=>(t=>{(t=>{var e,s;let a=null!=(s=null==(e=t.currentTarget.value.match(/\d/g))?void 0:e.join(""))?s:"",n=(0,r.XO)(a);t.currentTarget.value=R?(0,r.y7)(n):n})(t),A&&A(t.target.value)})(t),autoComplete:b,defaultValue:x,...D}):"number"===f?(0,a.jsx)("input",{id:z,type:"text",ref:e,placeholder:" ",onKeyPress:t=>(t=>{/[0-9]/.test(t.key)||t.preventDefault()})(t),autoComplete:b,defaultValue:x,...D}):"price"===f?(0,a.jsx)("input",{id:z,type:"text",ref:e,placeholder:" ",onKeyUp:t=>{(0,r.dZ)(t,k)},autoComplete:b,defaultValue:x,...D}):"range"===f?(0,a.jsx)(o.A.Range,{id:z,...D,ref:e}
1):A?(0,a.jsx)("input",{...D,id:z,type:B,ref:e,autoComplete:b,onChange:t=>A&&A(t.target.value)}):(0,a.jsx)("input",{...D,id:z,type:B,ref:e,autoComplete:b}),E&&"password"!=f&&E,"password"===f&&(0,a.jsx)("a",{className:_().showPassword,onClick:()=>{Q||U(!K)},children:T})]}),y&&(0,a.jsx)("small",{className:_().description,children:y}),I&&(0,a.jsxs)("div",{className:"text-muted small text-end mt-n5",children:[null!=(s=null==x?void 0:x.length)?s:0,"/",null!=(u=null==D?void 0:D.maxLength)?u:0]}),null!=v&&(0,a.jsx)(n.y,{errors:v,type:f})]})})},91630:(t,e,s)=>{"use strict";s.d(e,{A:()=>r});var a=s(37876);s(14232);var n=s(29222),i=s.n(n);let r=t=>{let{icon:e,title:s,description:n,secondDescription:r}=t;return(0,a.jsxs)("div",{className:i().box,children:[void 0!==e&&(0,a.jsx)("div",{className:i().icon,"aria-hidden":"true",children:e}),(0,a.jsxs)("div",{className:i().content,children:[(0,a.jsx)("strong",{children:s}),void 0!==n&&""!==n&&(0,a.jsx)("p",{children:n}),void 0!==r&&""!==r&&(0,a.jsx)("p",{children:r})]})]})}},92672:t=>{t.exports={grid:"styles_grid__KHSS2",cardItem:"styles_cardItem__C7FZB",cardCaption:"styles_cardCaption__okSJN",card:"styles_card__C2fQ_",cardLogo:"styles_cardLogo__vCOEB",cardLogoFill:"styles_cardLogoFill__V3nOc",cardNoPadding:"styles_cardNoPadding__EOUfG",pandaForm:"styles_pandaForm__q3IxU",configForm:"styles_configForm__vzhRF",configClusterField:"styles_configClusterField__Q8a9o",configActions:"styles_configActions__dQff8",pandaWarning:"styles_pandaWarning__zbYMT",pandaActions:"styles_pandaActions__OEwOD"}}},t=>{t.O(0,[8858,2411,7654,6903,636,6593,8792],()=>t(t.s=44865)),_N_E=t.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.