1"use strict";(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[12254],{628226(e,r,t){var n=t(391426),i=t(658687),s=t(804939),a=t(803224),l=t(955453),o=function(e){var r=e.children,t=(0,s.P)(),o=(0,a.KR)(),c=l.S5;return t&&(c=o?l.Wm:l.jc),(0,n.jsx)(i.J,{selectorQuery:c,children:r},c)};o.displayName="CanvasHeaderRightActions",t.d(r,{r:()=>o})},596653(e,r,t){t.d(r,{e:()=>o});var n=t(391426),i=t(927561),s=t(570310),a=t(451430),l=function(e){var r=e.children;return(0,n.jsx)("div",{className:"w-full",children:r})},o=function(e){var r=e.name,t=e.translationRoot,o=e.id,c=e.label,d=e.description,u=e.childrenWrapper,m=e.isHorizontal,p=void 0!==m&&m,h=e.hideLabel,x=e.placeholder,_=e.hidePlaceholder,g=e.hideDescription,j=e.rules,v=e.className,f=e.fullWidth,b=e.children,y=e.isDisabled,w=e.tooltipText,N=e.inlineReverse,k=e.inline,S=e.isFirstChild;return(0,n.jsx)(i.l.Item,{id:null!=o?o:(0,a.uniqueId)("".concat(r,"-")),name:r,translationRoot:t,label:c,description:d,isFirstChild:void 0!==S&&S,className:(0,s.x)("flex gap-4",{"flex-col":!p},v),layout:p?"horizontal":"vertical",labelWrapperClassName:"!w-full !order-none !p-0",placeholder:x,hidePlaceholder:void 0!==_&&_,hideBorder:!0,hideLabel:void 0!==h&&h,hideDescription:void 0!==g&&g,childrenWrapper:void 0===u?l:u,rules:j,fullWidth:f,isDisabled:void 0!==y&&y,tooltipText:w,inlineReverse:void 0!==N&&N,inline:void 0!==k&&k,children:b})}},996049(e,r,t){var n=t(391426),i=t(570310),s=function(e){var r=e.className,t=e.children;return(0,n.jsx)("div",{className:(0,i.x)("bg-secondary my-4 flex flex-col gap-5 rounded-md p-5",r),children:t})};t.d(r,{l:()=>s})},378894(e,r,t){var n=t(825284),i=t(417980),s="settings.validation",a=function(e){var r=null!=e?e:{},t=r.isRequired,a=r.maxLength,l=void 0===a?255:a,o=r.requiredText,c=void 0===o?(0,i.t)([s,"this_field_is_required"]):o,d=r.maxLengthText,u=void 0===d?(0,i.t)([s,"maximum_number_of_characters_allowed"],{count:l}):d,m=r.isURL,p=void 0!==m&&m;return{required:{value:void 0===t||t,message:c},maxLength:{value:l,message:u},validate:{isURL:function(e){return!p||!e||!!(0,n.G)(e)||(0,i.t)([s,"invalid_url_format"])}}}},l=function(e){return/^[a-z0-9_-]+$/.test(e)},o=function(e){return new Date(1e3*e)};t.d(r,{D3:()=>o,eX:()=>a,hw:()=>l})},629624(e,r,t){var n=t(391426),i=t(723781),s=t(452825),a=t(892907),l=t(288513),o=t(570310),c=t(231127),d=function(e){var r=e.title,t=e.subtitle,d=e.children;return(0,c.T)("circle_v4_form_elements_enabled")?(0,n.jsxs)(i.a,{className:"mb-10",children:[!!r&&(0,n.jsx)(a.o5,{variant:"heading-md",component:"h2",className:"mb-1",children:r}),!!t&&(0,n.jsx)(a.o5,{variant:"body-sm",color:"secondary",component:"p",className:"mb-4",children:t}),(!!r||!!t)&&(0,n.jsx)(s.c,{className:"mb-4"}),d]}):(0,n.jsxs)("div",{className:(0,o.x)((0,l.W2)("form-content"),"bg-primary border-primary mt-6 rounded-md border px-8 py-6 first:mt-0"),children:[!!r&&(0,n.jsx)(a.o5,{variant:"heading-md",component:"h2",className:"mb-1",children:r}),!!t&&(0,n.jsx)(a.o5,{variant:"body-sm",color:"secondary",component:"p",className:"mb-4",children:t}),d]})};t.d(r,{s:()=>d})},480234(e,r,t){var n=t(391426),i=t(570310),s=t(288513),a=t(231127),l=function(e){var r=e.children;return(0,a.T)("circle_v4_form_elements_enabled")?(0,n.jsx)("div",{className:(0,i.x)((0,s.W2)("form-wrapper")),children:r}):(0,n.jsx)("div",{className:(0,i.x)((0,s.W2)("form-wrapper"),"!mt-6"),children:r})};t.d(r,{_:()=>l})},73020(e,r,t){var n=t(391426),i=t(570310),s=t(417980),a=t(804939),l=t(61098),o=t(126032),c=t(288513),d=function(e){var r=e.maxWidth,t=e.className,d=e.children,u=e.wrapperClassName,m={default:l.Y,preview:"max-w-[1440px]",none:"max-w-none"}[void 0===r?"default":r],p=(0,a.P)();return(0,n.jsx)("div",{className:(0,i.x)("w-full",p?"px-0":o.V9,u),children:(0,n.jsx)("main",{"aria-label":(0,s.t)("main_content"),className:(0,i.x)((0,c._h)("settings-app"),"text-dark mx-auto w-full py-4 lg:py-12",m,t,p&&"first:pt-0 gap-6 flex flex-col py-0"),children:d})})};t.d(r,{L:()=>d})},861345(e,r,t){t.d(r,{b:()=>m});var n=t(274685),i=t(258752),s=t(417980),a=t(717526),l=t(51730),o=t(915779);function c(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}
1))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}function d(e,r){return r=null!=r?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):(function(e){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r.push.apply(r,t)}return r})(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e}var u="settings.messages",m=function(){var e=(0,a.d)(),r=e.success,t=e.error,m=(0,n.jE)(),p=(0,i.IT)({queryKey:["auth-provider"],queryFn:function(){return(0,l.i_)(o.iK.authProviders.index())},select:function(e){var r;return d(c({},e),{status:"enabled"===e.status,auth_scheme:null!=(r=e.auth_scheme)?r:"request_body"})}}),h=p.data,x=p.isLoading,_=(0,i.IT)({queryKey:["auth-providers-strategies"],queryFn:function(){return(0,l.i_)(o.iK.authProviders.getStrategies())}}),g=_.data,j=_.isLoading,v=(0,i.n_)({mutationFn:function(e){var r;return r=d(c({},e),{auth_provider_strategy_id:e.strategy.id,status:e.status?"enabled":"disabled"}),(0,l.kS)(o.iK.authProviders.update(),{auth_provider:r})},onSuccess:function(){m.invalidateQueries({queryKey:["auth-provider"]}),r((0,s.t)([u,"success"]))},onError:function(){return t((0,s.t)([u,"error"]))}}),f=v.mutate;return{strategies:void 0===g?[]:g,isLoading:x||j,isSaving:v.isPending,defaultValues:h,handleSubmit:f}}},463996(e,r,t){var n=t(391426),i=t(570310),s=t(605274),a=t(417980),l=t(288513),o=t(852362),c=t(751370),d=t(926847),u="circle_plus.banners.single_sign_on",m="https://circle.so/headless?utm_source=organic&utm_medium=product&utm_campaign=plus",p=function(){var e=(0,o.X)().trackEvent,r=function(){e("plus_banner.cta.clicked",{origin:"single_sign_on"})},t=(0,s.Ub)("(max-width: 425px)"),p=(0,n.jsx)("div",{className:(0,i.x)((0,l._h)("api-token-custom-backround"),"bg-plus-banner rounded-md bg-contain bg-no-repeat text-white dark:bg-white dark:text-slate-900"),children:(0,n.jsxs)("div",{className:"px-4 py-8 md:px-10 md:py-8",children:[(0,n.jsx)("div",{className:"text-md font-bold md:text-xl",children:(0,a.t)("".concat(u,".title"))}),(0,n.jsx)("div",{className:"mt-1 w-1/2 text-xs font-normal md:text-sm",children:(0,a.t)("".concat(u,".description"))}),(0,n.jsx)("a",{href:m,target:"_blank",className:"hidden sm:block",rel:"noreferrer",onClick:t?void 0:r,children:(0,n.jsx)(d.A,{children:(0,a.t)("".concat(u,".button"))})})]})});return(0,n.jsx)(c.A,{children:t?(0,n.jsx)("a",{href:m,target:"_blank",rel:"noreferrer",onClick:r,children:p}):p})};t.d(r,{U:()=>p},{A:p})},751370(e,r,t){var n=t(391426),i=t(640668);t.d(r,{},{A:function(e){var r=e.children;return(0,i.B)().isCommunityOnPlus?null:(0,n.jsx)(n.Fragment,{children:r})}})},926847(e,r,t){var n=t(391426),i=t(387099);t.d(r,{},{A:function(e){var r=e.children;return(0,n.jsx)(i.$,{small:!0,variant:"secondary-light",className:"mt-4 font-medium",children:r})}})},825284(e,r,t){var n=function(e){return!!RegExp("^(https?:\\/\\/)?(([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z\\d]{2,}(\\:\\d+)?(\\/[\\-;:&=\\+\\$,\\w\\.]*\\/?)*(\\?[\\-;:&=\\+\\$,\\w\\.%]*)?(\\#[\\-/\\w]*)?$","i").test(e)},i=function(e){try{var r=new URL(e),t="http:"===r.protocol||"https:"===r.protocol,n=/^(([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z\d]{2,}$/i.test(r.hostname)||/^(\d{1,3}\.){3}\d{1,3}$/.test(r.hostname),i=""===r.username&&""===r.password,s=!r.pathname.includes(" ");return t&&n&&i&&s}catch(e){return!1}};t.d(r,{G:()=>i,M:()=>n})},178349(e,r,t){t.r(r),t.d(r,{component:()=>eF});var n=t(391426),i=t(417980),s=t(244458),a=t(463996),l=t(59655),o=t(927561),c=t(257957),d=t(547570),u=t(89267),m=t(629624),p=t(480234),h=t(73020),x=t(231127),_="sso-settings-form",g=t(236252),j=t(596653),v=t(996049),f=t(378894),b=t(230763),y=t(933578),w=t(361971),N=t(628226),k=t(387099),S=t(355104),O="auth_providers",P=(0,f.eX)({isURL:!0}),R=function(e){var r=e.provider,t=e.providerParameterized,s=null!=t?t:r.toLocaleLowerCase();return(0,n.jsx)(j.e,{id:"field-auth-provider-auth-provider-base-url",translationRoot:O,name:"auth_provider_base_url",label:(0,i.t)([O,"auth_provider_base_url"],{provider:r}),description:(0,i.t)([O,"auth_provider_base_url_description"],{provider:r,provider_parameterized:s}),className:"!gap-2 !py-0",rules:P,children:(0,n.jsx)(g.Z,{name:"auth_provider_base_url"})})},F=[{value:"request_body",label:(0,i.t)("auth_providers.auth_scheme_options.request_body")},{value:"basic_auth",label:(0,i.t)("auth_providers.auth_scheme_options.basic_auth")}],z=function(){return(0,n.jsx)(j.e,{name:"auth_scheme",translationRoot:"auth_providers",className:"!gap-2 !py-0",children:(0,n.jsx)(o.l.SelectNative,{name:"auth_scheme",options:F})})},C="auth_providers",W=(0,f.eX)({isURL:!0}),L=function(){return(0,n.jsx)(j.e,{translationRoot:C,name:"authorization_url",label:(0,i.t)([C,"authorization_url"]),description:(0,i.t)([C,"authorization_url_description"]),className:"!gap-2 !py-0",rules:W,children:(0,n.jsx)(g.Z,{name:"authorization_url"})})},I=(0,f.eX)(),T=function(){return(0,n.jsx)(j.e,{id:"field-auth-provider-client-id",name:"client_id",translationRoot:"auth_providers",className:"!gap-2 !py-0",rules:I,children:(0,n.jsx)(o.l.Input,{name:"client_id"})})},E=(0,f.eX)(),U=function(){return(0,n.jsx)(j.e,{id:"field-auth-provider-client-secret",name:"client_secret",translationRoot:"auth_providers",className:"!gap-2 !py-0",rules:E,children:(0,n.jsx)(o.l.Input,{name:"client_secret"})})},A="auth_providers",X=(0,f.eX)(),q=function(e){var r=e.provider;return(0,n.jsx)(j.e,{id:"field-auth-provider-name",name:"name",translationRoot:A,className:"!gap-2 !py-0",description:(0,i.t)([A,"name_description"],{provider:r}),rules:X,children:(0,n.jsx)(o.l.Input,{name:"name"})})},D=function(){return(0,n.jsx)(j.e,{name:"scope",translationRoot:"auth_providers",className:"!gap-2 !py-0",children:(0,n.jsx)(o.l.Input,{name:"scope"})})},H=(0,f.eX)({isURL:!0}),M=function(){return(0,n.jsx)(j.e,{translationRoot:"auth_providers",name:"token_url",className:"!gap-2 !py-0",rules:H,children:(0,n.jsx)(g.Z,{name:"token_url"})})},V=(0,f.eX)(),$=function(){return(0,n.jsx)(j.e,{name:"user_email_path",translationRoot:"auth_providers",className:"!gap-2 !py-0",rules:V,isHorizontal:!0,fullWidth:!0,children:(0,n.jsx)(o.l.Input,{name:"user_email_path"})})},K=(0,f.eX)(),Z=function(){return(0,n.jsx)(j.e,{name:"user_id_path",translationRoot:"auth_providers",className:"!gap-2 !py-0",rules:K,isHorizontal:!0,fullWidth:!0,children:(0,n.jsx)(o.l.Input,{name:"user_id_path"})})},G=(0,f.eX)({isURL:!0}),B=function(){return(0,n.jsx)(j.e,{translationRoot:"auth_providers",name:"user_info_url",className:"!gap-2 !py-0",rules:G,children:(0,n.jsx)(g.Z,{name:"user_info_url"})})},Q=(0,f.eX)(),J=function(){return(0,n.jsx)(j.e,{name:"user_name_path",translationRoot:"auth_providers",className:"!gap-2 !py-0",rules:Q,isHorizontal:!0,fullWidth:!0,children:(0,n.jsx)(o.l.Input,{name:"user_name_path"})})},Y=(0,f.eX)({isRequired:!1}),ee=function(){return(0,n.jsx)(j.e,{name:"user_profile_image_src_path",translationRoot:"auth_providers",className:"!gap-2 !py-0",isHorizontal:!0,fullWidth:!0,rules:Y,children:(0,n.jsx)(o.l.Input,{name:"user_profile_image_src_path"})})},er="MemberSpace",et="Memberful",en="Wordpress (WP-OAuth)",ei="Bubble",es="Outseta",ea="Teachable",el="Doorkeeper (localhost)",eo="Auth0",ec="Memberstack 2.0",ed="Wordpress (MiniOrange)",eu={custom:function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q,{provider:"Facebook"}),(0,n.jsx)(T,{}),(0,n.jsx)(U,{}),(0,n.jsx)(D,{}),(0,n.jsx)(z,{}),(0,n.jsx)(L,{}),(0,n.jsx)(M,{}),(0,n.jsx)(B,{}),(0,n.jsxs)("div",{className:"flex flex-col gap-8",children:[(0,n.jsx)(Z,{}),(0,n.jsx)($,{}),(0,n.jsx)(J,{}),(0,n.jsx)(ee,{})]})]})},member_space:function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q,{provider:er}),(0,n.jsx)(T,{}),(0,n.jsx)(U,{}),(0,n.jsx)(R,{provider:er})]})},memberstack:function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"bg-primary rounded-md",children:(0,n.jsx)(l.F,{showIcon:!1,type:"warning",description:(0,i.t)("settings.sso.memberstack_alert")})}),(0,n.jsx)(q,{provider:"Memberstack"}),(0,n.jsx)(T,{}),(0,n.jsx)(U,{})]})},memberful:function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q,{provider:et}),(0,n.jsx)(T,{}),(0,n.jsx)(U,{}),(0,n.jsx)(R,{provider:et})]})},wp_oauth:function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q,{provider:en}),(0,n.jsx)(T,{}),(0,n.jsx)(U,{}),(0,n.jsx)(R,{provider:en,providerParameterized:"wordpress-wp-oauth"})]})},bubble:function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q,{provider:ei}),(0,n.jsx)(T,{}),(0,n.jsx)(U,{}),(0,n.jsx)(R,{provider:ei})]})},outseta:function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q,{provider:es}),(0,n.jsx)(T,{}),(0,n.jsx)(U,{}),(0,n.jsx)(R,{provider:es})]})},teachable:function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q,{provider:ea}
1),(0,n.jsx)(T,{}),(0,n.jsx)(U,{}),(0,n.jsx)(R,{provider:ea})]})},thinkific:function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q,{provider:"Thinkific"}),(0,n.jsx)(T,{}),(0,n.jsx)(U,{})]})},doorkeeper:function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q,{provider:el}),(0,n.jsx)(T,{}),(0,n.jsx)(U,{}),(0,n.jsx)(R,{provider:el,providerParameterized:"doorkeeper-localhost"})]})},auth0:function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q,{provider:eo}),(0,n.jsx)(T,{}),(0,n.jsx)(U,{}),(0,n.jsx)(R,{provider:eo})]})},memberstack_2:function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q,{provider:ec}),(0,n.jsx)(T,{}),(0,n.jsx)(U,{}),(0,n.jsx)(R,{provider:ec,providerParameterized:"memberstack-2-0"})]})},wp_mini_orange:function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(q,{provider:ed}),(0,n.jsx)(T,{}),(0,n.jsx)(U,{}),(0,n.jsx)(R,{provider:ed,providerParameterized:"wordpress-miniorange"})]})}},em=function(e){var r=e.strategyKey,t=(0,y.useMemo)(function(){return eu[r]},[r]);return t?(0,n.jsx)(v.l,{className:"gap-6",children:(0,n.jsx)(t,{})}):null},ep=t(915921),eh=t(729824),ex=t(287305),e_=t(682037),eg=t(852362),ej="community.feature.sso",ev=function(){var e=(0,eg.X)().trackEvent,r=(0,ep.M)(),t=(0,e_.M)().enterprise;return(0,n.jsxs)("div",{className:"bg-secondary flex flex-col gap-5 rounded-lg p-6",children:[(0,n.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,n.jsx)("p",{className:"text-dark text-lg font-semibold leading-7 tracking-tight",children:(0,i.t)([ej,"upgrade_title"])}),(0,n.jsx)("p",{className:"text-primary text-sm font-normal leading-5 tracking-normal",children:(0,i.t)([ej,"upgrade_description"])})]}),(0,n.jsx)("div",{className:"columns-1 gap-2 sm:columns-2",children:t.map(function(e){return(0,n.jsx)("div",{className:"break-inside-avoid pb-2",children:(0,n.jsx)(ex.s,{feature:e.text,isHighlighted:!0,isOnOffer:!1,highlightColor:e.highlightColor,highlightIcon:e.highlightIcon,color:e.color,fontWeight:e.fontWeight})},e.text)})}),(0,n.jsx)(k.$,{type:"button",variant:"marketing-gradient-blue",onClick:function(){e("sso_upgrade_panel.upgrade_clicked",{source:eh.p6.SSO_UPGRADE_PANEL}),r.show({planTier:"enterprise",source:eh.p6.SSO_UPGRADE_PANEL})},className:"self-start",children:(0,i.t)([ej,"upgrade_cta"])})]})},ef=t(628604),eb="verify-sso-form",ey=function(){return(0,n.jsx)("form",{id:eb,action:"/custom_logins/debug_sessions",method:"POST",target:"_blank",children:(0,n.jsx)(ef.W,{})})},ew=["client_id","client_secret","name","authorization_url","auth_provider_base_url","scope","token_url","user_id_path","user_info_url","user_email_path","user_name_path","user_profile_image_src_path"],eN=function(e){var r,t=e.defaultValues,n=e.strategies,i=(0,w.xW)(),s=i.watch,a=i.setValue,l=i.reset,o=i.formState,c=(0,b.Od)().currentCommunity,d=(null!=(r=null==c?void 0:c.policies)?r:{}).custom_login_enabled,u=!!o.dirtyFields.strategy,m=s("allow_sign_in_using_circle"),p=s("custom_sign_up"),h=s("strategy.id"),x=(0,y.useMemo)(function(){return n.map(function(e){return{value:e.id,label:e.title}})},[n]),_=(0,y.useMemo)(function(){return n.find(function(e){return String(e.id)===String(h)})},[n,h]),g=(0,y.useCallback)(function(){l(function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({},t))},[t,l]),j=(0,y.useCallback)(function(){ew.forEach(function(e){return a(e,"")})},[a]),v=null!=_?_:{},f=v.title,N=v.is_custom_login_strategy_enabled_for_admin,k=v.is_custom;return(0,y.useEffect)(function(){var e;u&&(String(h)===String(null==t||null==(e=t.strategy)?void 0:e.id)?g():j())},[h,u,t,g,j,l]),{strategiesOptions:x,shouldAllowSignInUsingCircle:m,isCustomSignUp:p,isCustomLoginEnabled:d,selectedStrategyTitle:f,isSelectedStrategyEnabled:void 0!==N&&N,isSelectedStrategyCustom:void 0!==k&&k}},ek="settings.sso",eS=function(e){var r,t=e.defaultValues,s=e.strategies,a=e.isSaving,l=(0,S.c)().isCircleV4,c=eN({defaultValues:t,strategies:s}),d=c.strategiesOptions,u=c.shouldAllowSignInUsingCircle,m=c.isCustomSignUp,p=c.isCustomLoginEnabled,h=c.isSelectedStrategyEnabled,x=(0,b.Od)().currentCommunity,O=(null!=x?x:{}).custom_logins_oauth2_callback_url,P=(0,(0,w.xW)().watch)("strategy.id"),R=(0,y.useMemo)(function(){var e;return(null==(e=s.find(function(e){return"".concat(e.id)==="".concat(P)}))?void 0:e.key)||""},[s,P]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(j.e,{id:"field-auth-provider-enabled",name:"status",translationRoot:ek,childrenWrapper:y.Fragment,isH
1orizontal:!0,hidePlaceholder:!0,children:(0,n.jsx)(o.l.ToggleSwitch,{name:"status",variant:"small"})}),(0,n.jsx)(j.e,{name:"enable_state_param",translationRoot:ek,childrenWrapper:y.Fragment,isHorizontal:!0,hidePlaceholder:!0,children:(0,n.jsx)(o.l.ToggleSwitch,{name:"enable_state_param",variant:"small"})}),(0,n.jsx)(j.e,{name:"allow_sign_in_using_circle",translationRoot:ek,childrenWrapper:y.Fragment,isHorizontal:!0,hidePlaceholder:!0,children:(0,n.jsx)(o.l.ToggleSwitch,{name:"allow_sign_in_using_circle",variant:"small"})}),u&&(0,n.jsx)(v.l,{children:(0,n.jsx)(j.e,{name:"sign_in_with_circle_link_label",className:"!py-0",translationRoot:ek,rules:(0,f.eX)(),children:(0,n.jsx)(o.l.Input,{name:"sign_in_with_circle_link_label"})})}),(0,n.jsx)(j.e,{id:"field-auth-provider-custom-sign-up",name:"custom_sign_up",translationRoot:ek,childrenWrapper:y.Fragment,isHorizontal:!0,hidePlaceholder:!0,children:(0,n.jsx)(o.l.ToggleSwitch,{name:"custom_sign_up",variant:"small"})}),m&&(0,n.jsx)(v.l,{children:(0,n.jsx)(j.e,{id:"field-auth-provider-custom-sign-up-link-url",name:"custom_sign_up_link_url",className:"!py-0",translationRoot:ek,rules:(0,f.eX)({isURL:!0}),children:(0,n.jsx)(g.Z,{name:"custom_sign_up_link_url"})})}),(0,n.jsx)(j.e,{name:"skip_profile_confirmation",translationRoot:ek,childrenWrapper:y.Fragment,isHorizontal:!0,hidePlaceholder:!0,children:(0,n.jsx)(o.l.ToggleSwitch,{name:"skip_profile_confirmation",variant:"small"})}),(0,n.jsx)(j.e,{name:"strategy.id",translationRoot:ek,hidePlaceholder:!0,description:(0,i.t)([ek,"strategy.id_description"],{url:null!=O?O:"-"}),children:(0,n.jsx)(o.l.SelectNative,{name:"strategy.id",options:d})}),h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(em,{strategyKey:R}),(r=(0,n.jsxs)(n.Fragment,{children:[p&&(0,n.jsx)(k.$,{type:"submit",variant:"secondary",form:eb,small:l,children:(0,i.t)([ek,"verify_sso_connection"])}),(0,n.jsx)(k.$,{type:"submit",variant:"circle",form:_,disabled:a,large:!l,small:l,children:a?(0,i.t)("saving"):(0,i.t)("save_changes")})]}),l?(0,n.jsx)(N.r,{children:r}):(0,n.jsx)("div",{className:"mt-6 flex justify-end gap-4",children:r}))]}):(0,n.jsx)("div",{className:"mt-3",children:(0,n.jsx)(ev,{})})]})},eO=t(861345),eP="settings.sso",eR=function(){var e=(0,eO.b)(),r=e.strategies,t=e.isLoading,s=e.isSaving,g=e.defaultValues,j=e.handleSubmit,v=(0,x.T)("circle_v4_form_elements_enabled");return t||!g?(0,n.jsx)(c.a,{center:!0}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.U,{}),(0,n.jsx)(h.L,{children:(0,n.jsx)(p._,{children:(0,n.jsxs)(m.s,{title:(0,i.t)([eP,"title"]),subtitle:(0,n.jsx)(u.A,{html:(0,i.t)([eP,"subtitle"])}),children:[(0,n.jsxs)(o.l,{id:_,onSubmit:function(e){return j(e)},defaultValues:g,children:[v?(0,n.jsx)(d.F,{variant:"warning",description:(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,i.t)([eP,"custom_domain_warning"])}})}):(0,n.jsx)(l.F,{type:"warning",description:(0,n.jsx)(u.A,{html:(0,i.t)([eP,"custom_domain_warning"])}),showIcon:!1}),(0,n.jsx)(eS,{defaultValues:g,strategies:r,isSaving:s})]}),(0,n.jsx)(ey,{})]})})})]})},eF=function(){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.C,{title:(0,i.t)(["settings.sso","title"])}),(0,n.jsx)(eR,{})]})}}}]); 2//# sourceMappingURL=/packs/js/12254-0eefda5f76f1a588.chunk.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.