"use strict";(("undefined"!=typeof self?self:this).webpackJsonp__wix_form_app=("undefined"!=typeof self?self:this).webpackJsonp__wix_form_app||[]).push([[874],{75955:(e,o,t)=>{t.r(o),t.d(o,{classes:()=>i,cssStates:()=>l,keyframes:()=>s,layers:()=>c,namespace:()=>r,st:()=>h,stVars:()=>a,style:()=>d,vars:()=>n});var r="opZr8uI",i={root:"sl7p3Qe",focusRing:"sc9MGtO",container:"s__7MEjLA",core:"s__7Om383",icon:"sEjsRdd",label:"stICAwg",iconToolTip:"sMuCLC6",errorIcon:"sAqZQNL",suffixed:"sbwh_FY",suffix:"sTsilMy",disabled:"s__2vvD4y"},s={},c={},a={},n={"wix-color-1":"--wix-color-1","wix-color-8":"--wix-color-8","wix-color-5":"--wix-color-5","wix-color-4":"--wix-color-4","wix-color-29":"--wix-color-29","wst-primary-background-color-rgb":"--wst-primary-background-color-rgb","wst-paragraph-2-color-rgb":"--wst-paragraph-2-color-rgb","wst-system-disabled-color-rgb":"--wst-system-disabled-color-rgb","wst-system-error-color-rgb":"--wst-system-error-color-rgb","wst-links-and-actions-color-rgb":"--wst-links-and-actions-color-rgb","wix-ui-tpa-checkbox-text-color":"--wix-ui-tpa-checkbox-text-color","wix-ui-tpa-checkbox-border-color":"--wix-ui-tpa-checkbox-border-color","wix-ui-tpa-checkbox-icon-color":"--wix-ui-tpa-checkbox-icon-color","wix-ui-tpa-checkbox-hover-icon-color":"--wix-ui-tpa-checkbox-hover-icon-color","wix-ui-tpa-checkbox-disabled-icon-color":"--wix-ui-tpa-checkbox-disabled-icon-color","wix-ui-tpa-checkbox-disabled-box-border-color":"--wix-ui-tpa-checkbox-disabled-box-border-color","wix-ui-tpa-checkbox-box-border-color":"--wix-ui-tpa-checkbox-box-border-color","wix-ui-tpa-checkbox-box-border-radius":"--wix-ui-tpa-checkbox-box-border-radius","wix-ui-tpa-checkbox-box-color":"--wix-ui-tpa-checkbox-box-color","wix-ui-tpa-checkbox-label-font":"--wix-ui-tpa-checkbox-label-font","wix-ui-tpa-checkbox-disabled-label-color":"--wix-ui-tpa-checkbox-disabled-label-color","wix-ui-tpa-checkbox-error-color":"--wix-ui-tpa-checkbox-error-color","wix-ui-tpa-checkbox-error-message-min-height":"--wix-ui-tpa-checkbox-error-message-min-height","wix-ui-tpa-checkbox-input-main-border-opacity":"--wix-ui-tpa-checkbox-input-main-border-opacity","wix-ui-tpa-checkbox-input-hover-border-color":"--wix-ui-tpa-checkbox-input-hover-border-color","wix-ui-tpa-checkbox-input-background-color":"--wix-ui-tpa-checkbox-input-background-color","wix-ui-tpa-checkbox-input-size":"--wix-ui-tpa-checkbox-input-size","wix-ui-tpa-checkbox-input-background-opacity":"--wix-ui-tpa-checkbox-input-background-opacity","wix-ui-tpa-checkbox-input-hover-background-color":"--wix-ui-tpa-checkbox-input-hover-background-color","wix-ui-tpa-checkbox-input-hover-background-opacity":"--wix-ui-tpa-checkbox-input-hover-background-opacity","wix-ui-tpa-checkbox-input-checked-background-color":"--wix-ui-tpa-checkbox-input-checked-background-color","wix-ui-tpa-checkbox-input-checked-background-opacity":"--wix-ui-tpa-checkbox-input-checked-background-opacity","wix-ui-tpa-checkbox-input-disabled-background-color":"--wix-ui-tpa-checkbox-input-disabled-background-color","wix-ui-tpa-checkbox-input-disabled-background-opacity":"--wix-ui-tpa-checkbox-input-disabled-background-opacity","wix-ui-tpa-checkbox-hover-text-color":"--wix-ui-tpa-checkbox-hover-text-color","wix-ui-tpa-checkbox-input-border-width":"--wix-ui-tpa-checkbox-input-border-width","wix-ui-tpa-checkbox-input-border-radius":"--wix-ui-tpa-checkbox-input-border-radius","wix-ui-tpa-checkbox-input-hover-border-width":"--wix-ui-tpa-checkbox-input-hover-border-width","wix-ui-tpa-checkbox-input-hover-border-radius":"--wix-ui-tpa-checkbox-input-hover-border-radius","wut-error-color":"--wut-error-color","wix-ui-tpa-checkbox-label-font-line-height":"--wix-ui-tpa-checkbox-label-font-line-height","wix-ui-tpa-checkbox-margin-inline-end":"--wix-ui-tpa-checkbox-margin-inline-end","default-error-color":"--Checkbox1987911174-default-error-color",transparent:"--Checkbox1987911174-transparent","wix-ui-tpa-checkbox-box-color-opacity":"--Checkbox1987911174-wix-ui-tpa-checkbox-box-color-opacity","wix-ui-tpa-checkbox-icon-error-border-color":"--Checkbox1987911174-wix-ui-tpa-checkbox-icon-error-border-color"},l=t.stc.bind(null,r),d=t.sts.bind(null,r),h=d},66709:(e,o,t)=>{t.r(o),t.d(o,{classes:()=>i,cssStates:()=>l,keyframes:()=>s,layers:()=>c,namespace:()=>r,st:()=>h,stVars:()=>a,style:()=>d,vars:()=>n});var r="oF8E_NB",i={root:"sp_jKr9",srOnly:"sNeqtkO",box:"sHLnIB4",nativeCheckbox:"sH4c_bz",childContainer:"sU_9IWG"},s={},c={},a={},n={},l=t.stc.bind(null,r),d=t.sts.bind(null,r),h=d},99372:(e,o,t)=>{t.d(o,{X:()=>v});var r=t(27762),i=t(95685),s=t.n(i),c=t(9737);const a=({size:e,...o})=>r.createElement("svg",{viewBox:"0 0 16 16",fill:"currentColor",width:e||"16",height:e||"16",...o},r.createElement("path",{d:"M4 7h8v2H4z"}));a.displayName="IndeterminateXSmall";var n=a;const l=({size:e,...o})=>r.createElement("svg",{viewBox:"0 0 16 16",fill:"currentColor",width:e||"16",height:e||"16",...o},r.createElement("path",{fillRule:"evenodd",d:"M2.58594 8.13691L6.78515 12.3361L13.4144 5.70691L11.2932 3.58569L6.78515 8.09369L4.70715 6.01569L2.58594 8.13691Z",clipRule:"evenodd"}));l.displayName="CheckXBold";var d=l;const h=({size:e,...o})=>r.createElement("svg",{viewBox:"0 0 16 16",fill:"currentColor",width:e||"16",height:e||"16",...o},r.createElement("path",{fillRule:"evenodd",d:"M6.7847,10.9609 L6.07759322,10.2537932 L6.0777,10.2537932 L3.9997,8.1759 L4.70680678,7.46879322 L6.7847,9.54679322 L11.2925932,5.03879322 L11.9997,5.7459 L6.7847,10.9609 Z"}));h.displayName="CheckXSmall";var u=h;const p=({size:e,...o})=>r.createElement("svg",{viewBox:"0 0 16 16",fill:"currentColor",width:e||"16",height:e||"16",...o},r.createElement("path",{fillRule:"evenodd",d:"M11.2931 4.29297L12.7072 5.70708L6.78508 11.6292L3.29297 8.13708L4.70707 6.72297L6.78508 8.80097L11.2931 4.29297Z",clipRule:"evenodd"}));p.displayName="CheckXMedium";var b=p,x=t(52650),k=t(75955),w=t(7334),m=t(24385),f=t(66472),g=t(40555),I=t(37293),E=t(38585),_=t(47173),y=t(60144);class v extends r.Component{constructor(e){super(e),this.inputRef=r.createRef(),this._rootRef=r.createRef(),this._errorIconRef=r.createRef(),this.state={focused:!1,isErrorTooltipShown:!1,errorIconClicked:!1,isWithinRoot:!1},this.focus=e=>{this.inputRef.current&&(this.inputRef.current.focus(e),this.setState({focused:!0}))},this.showErrorTooltip=()=>{this._toggleTooltip(!0)},this.hideErrorTooltip=()=>{this._toggleTooltip(!1)},this._renderIcon=()=>{const{checked:e,indeterminate:o}=this.props,t=this.getIcon();return r.createElement("span",{className:s()(k.classes.icon),"data-hook":x.Qr.IconWrapper},e?r.createElement(t,null):o?r.createElement(n,null):"")},this._onRootFocus=()=>{const{isWithinRoot:e,errorIconClicked:o}=this.state;e||o||(this.setState({isWithinRoot:!0}),this._toggleTooltip(!0))},this._onRootKeyDown=e=>{const{id:o}=document.activeElement||{};document.activeElement&&(o===this._errorIconId&&this._wasTabClicked(e)||o===this._checkboxId&&this._wasShiftTabClicked(e))&&(this._toggleTooltip(!1),this.setState({isWithinRoot:!1}))},this._wasShiftTabClicked=e=>e.shiftKey&&"Tab"===e.key,this._wasTabClicked=e=>!e.shiftKey&&"Tab"===e.key,this._onFocus=()=>{this.setState({focused:!0})},this._onBlur=()=>{this.setState({focused:!1})},this._toggleTooltip=e=>{this.setState({isErrorTooltipShown:e})},this._onErrorIconMouseDown=()=>{this.setState({errorIconClicked:!0})},this._onErrorIconClick=()=>{const{isErrorTooltipShown:e}=this.state;this._toggleTooltip(!e),this.setState({errorIconClicked:!1})},this._onClickOutside=()=>{this._rootRef.current&&!this._rootRef.current.contains(document.activeElement)&&(this._toggleTooltip(!1),this.setState({isWithinRoot:!1}))},this._getErrorSuffix=()=>{const{isErrorTooltipShown:e}=this.state,{errorMessage:o}=this.props;return r.createElement("div",{className:k.classes.iconToolTip},r.createElement(w.M,{"data-hook":x.Qr.ErrorIcon,message:o,icon:r.createElement(m.Z,{className:k.classes.errorIcon}),tooltipId:this._errorMessageId,tooltipSkin:f.y.Error,showTooltip:e,onMouseDown:this._onErrorIconMouseDown,onClick:this._onErrorIconClick,onClickOutside:this._onClickOutside,contentRef:this._errorIconRef,id:this._errorIconId}))},this.getIcon=()=>{const{checkmarkStyle:e}=this.props;return e===x.fN.Bold?d:e===x.fN.Regular?u:b},this._errorMessageId=(0,E.Z)("error-message"),this._errorIconId=(0,E.Z)("error-icon"),this._checkboxId=(0,E.Z)("checkbox")}getDataAttributes(){const{disabled:e,error:o,indeterminate:t,checked:r}=this.props,{focused:i}=this.state;return{[x.O$.Disabled]:e,[x.O$.Error]:o,[x.O$.Indeterminate]:t,[x.O$.Checked]:r,[x.O$.Focused]:i}}render(){const{theme:e,checked:o,disabled:t,label:i,error:a,errorAppearance:n,errorMessage:l,newErrorMessage:d,indeterminate:h,onChange:u,name:p,suffix:b,className:w,"aria-describedby":m,"aria-label":f,required:E,showAsterisk:_=!0,verticalAlignment:v=x.Ns.Center,lang:C}=this.props,{mobile:T}=this.context,F=this._renderIcon(),R=a&&l&&!d,L=d?g.Y:r.Fragment,M="box"===e,S={error:a,newErrorMessage:d,box:M,disabled:t,checked:!!o},N=l&&l.length>0,B=E&&_,D=(0,k.st)(k.classes.root,{disabled:t,error:a,newErrorMessage:d,checked:!!o,box:M},w),A=k.classes.container,O=d?A:D,q=(0,I.w)([m,l?this._errorMessageId:""]);return r.createElement(L,{...d&&{visible:a&&N,message:l,messageId:this._errorMessageId,className:(0,k.st)(k.classes.root,S,w),"data-hook":this.props["data-hook"],errorAppearance:n,lang:C}},r.createElement("div",{className:(0,k.st)(O,!T&&this.state.focused&&k.classes.focused),"data-hook":this.props["data-hook"],ref:this._rootRef,onFocus:this._onRootFocus,onKeyDown:this._onRootKeyDown,...this.getDataAttributes(),...d?{}:{lang:C}},r.createElement(c.I,{className:(0,k.st)(k.classes.core,{verticalAlignment:v}),checkedIcon:F,uncheckedIcon:F,indeterminateIcon:F,indeterminate:h,checked:o,onChange:u,name:p,disabled:t,ref:this.inputRef,onFocusByKeyboard:this._onFocus,onBlur:this._onBlur,"data-hook":x.Qr.CheckboxCore,"aria-invalid":a,"aria-describedby":q,"aria-label":f,id:this._checkboxId,required:E},r.createElement("div",{"data-hook":x.Qr.LabelWrapper,className:s()(k.classes.label,{[k.classes.suffixed]:!!b})},i,B&&r.createElement(y.d,null)),b&&r.createElement("div",{className:`${k.classes.label} ${k.classes.suffix}`},b),R?this._getErrorSuffix():null)))}}v.displayName="Checkbox",v.defaultProps={checked:!1,disabled:!1,label:"",error:!1,errorMessage:"",indeterminate:!1,theme:x.u_.Default,"data-hook":x.Qr.CheckboxWrapper},v.contextType=_.I},52650:(e,o,t)=>{var r,i,s,c,a;t.d(o,{Ns:()=>i,O$:()=>a,Qr:()=>c,fN:()=>s,u_:()=>r}),function(e){e.Default="default",e.Box="box"}(r||(r={})),function(e){e.Center="center",e.Top="top"}(i||(i={})),function(e){e.Regular="regular",e.Medium="medium",e.Bold="bold"}(s||(s={})),function(e){e.CheckboxWrapper="checkbox-wrapper",e.IconWrapper="icon-wrapper",e.LabelWrapper="label-wrapper",e.CheckboxCore="checkbox-core",e.ErrorIcon="error-icon"}(c||(c={})),function(e){e.Error="data-error",e.Disabled="data-disabled",e.Checked="data-checked",e.Indeterminate="data-indeterminate",e.Focused="data-focused"}(a||(a={}))},60144:(e,o,t)=>{t.d(o,{d:()=>c});var r=t(27762),i=t.n(r),s="sKo6uIs";const c=({dataHook:e,...o})=>i().createElement("span",{className:s,"aria-hidden":"true","data-hook":e,...o},"*")},9737:(e,o,t)=>{t.d(o,{I:()=>a});var r=t(27762),i=t(66709),s=t(3632);const c=()=>null;class a extends r.Component{constructor(){super(...arguments),this.focusedByMouse=!1,this.state={isFocused:!1,focusVisible:!1},this.handleMouseDown=e=>{this.props.disabled||(e.preventDefault(),this.focusedByMouse=!0,this.setState({isFocused:!0}))},this.handleInputKeyDown=()=>{this.setState({focusVisible:!0})},this.handleInputBlur=e=>{this.state.isFocused&&this.setState({isFocused:!1,focusVisible:!1}),this.focusedByMouse=!1,this.props.onBlur&&this.props.onBlur(e)},this.handleInputFocus=e=>{!this.focusedByMouse&&this.props.onFocusByKeyboard&&this.props.onFocusByKeyboard(e),this.setState({isFocused:!0,focusVisible:!this.focusedByMouse})},this.handleChange=e=>{this.props.onChange({checked:!this.props.checked,...e})}}focus(e){this.checkbox?.focus(e)}render(){const{checked:e,disabled:o,error:t,indeterminate:c,indeterminateIcon:a,checkedIcon:n,uncheckedIcon:l}=this.props;return r.createElement("label",{className:(0,i.st)(i.classes.root,{checked:e,disabled:o,readonly:this.props.readOnly,error:t,indeterminate:c,focus:this.state.isFocused,"focus-visible":this.state.focusVisible},this.props.className),onMouseDown:this.handleMouseDown,...(0,s._)(this.props)},r.createElement("input",{type:"checkbox",className:i.classes.nativeCheckbox,onClick:e=>e.stopPropagation(),onChange:this.handleChange,onKeyDown:this.handleInputKeyDown,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,ref:e=>this.checkbox=e,checked:e,disabled:o,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,id:this.props.id,required:this.props.required,autoFocus:this.props.autoFocus,name:this.props.name,"aria-controls":this.props["aria-controls"],"aria-label":this.props["aria-label"],"aria-invalid":this.props["aria-invalid"],"aria-describedby":this.props["aria-describedby"]}),r.createElement("span",{className:i.classes.box},this.props.indeterminate?a:this.props.checked?n:l),this.props.children?r.createElement("div",{className:i.classes.childContainer},this.props.children):null)}}a.displayName="CoreCheckbox",a.defaultProps={onChange:c,checked:!1,indeterminate:!1,tabIndex:0,onBlur:c}},874:(e,o,t)=>{t.d(o,{W:()=>F});var r=t(95685),i=t.n(r),s=t(27762),c=t.n(s),a=t(99372),n=t(18800);const l="Y1Tjcb";var d={root:"sFHdAEE",error:"sidOyUv",hover:"slyCsF3"};var h=t(34624),u=t(20011),p=t(17966),b=t(7362),x=t(96080),k=t(89054);const w="Lwo8J5",m="oOurwR",f="HFpF6t",g="DIX5XF",I="or2qHt";var E=t(13621),_=t.n(E);const y=e=>{let{label:o,required:t,disabled:r,requiredIndicatorType:a=h.nh.ASTERISK,requiredIndicatorPlacement:n=h.YI.AFTER_FIELD_TITLE,ricosTheme:l,requiredIndicatorClassName:d}=e;const u=(0,k.Xy)(l),{t:E}=(0,x.$G)(),y=function(e,o){switch(e){case h.nh.ASTERISK:return"*";case h.nh.TEXT:return o("settings.required-indicator-text");default:return""}}(a,E),v=(0,s.useMemo)(()=>{var e;if(!t)return o;const r=e=>({stringValue:e}),s={type:b.J.EXTERNAL,id:"",nodes:[],externalData:{fields:{"aria-hidden":r("true"),className:r(i()(f,d))}},textData:{text:y,decorations:[]}},c=_()(o);switch(n){case h.YI.BEFORE_FIELD_TITLE:const o=null==c?void 0:c.nodes.find(Boolean);o&&(o.nodes??=[],o.nodes.unshift(s));break;case h.YI.AFTER_FIELD_TITLE:const t=null==c||null==(e=c.nodes)?void 0:e.findLast(Boolean);t&&(t.nodes??=[],t.nodes.push(s))}return c},[t,d,y,o,n]);return(0,s.useMemo)(()=>c().createElement(p.Z,{content:v,className:i()(I,{[w]:r,[g]:n===h.YI.BEFORE_FIELD_TITLE,[m]:n===h.YI.AFTER_FIELD_TITLE}),customTheme:u}),[r,n,v,u])},v={customStyles:{p:{fontSize:"var(--wix-forms-formInputValueFont-size, 16px)",fontFamily:"var(--wix-forms-formInputValueFont-family)",color:"rgb(var(--wix-forms-formInputValueColor, 0,0,0))"}}},C=e=>c().createElement(y,(0,u.Z)({ricosTheme:v},e));var T=t(19148);const F=e=>{let{id:o,label:t,disabled:r=!1,value:u=!1,onChange:p,onFocus:b,onBlur:x,hasError:k=!1,errorMessage:w,required:m,FieldLayout:f,requiredIndicatorType:g=h.nh.ASTERISK,requiredIndicatorPlacement:I=h.YI.AFTER_FIELD_TITLE}=e;const E=(0,n.F0)().includes(n.dA.INPUT_FIELDS_HOVER),_=(0,s.useRef)(null),y=(0,s.useCallback)(e=>{null==p||p(e.checked)},[p]);return(0,T.q3)(()=>{var e;null==(e=_.current)||e.focus({preventScroll:!0})},o),c().createElement(f,{fieldId:o,renderLabel:()=>null,renderInput:()=>c().createElement("div",{onBlur:x,onFocus:b},c().createElement(a.X,{newErrorMessage:!0,className:i()(l,d.root,d.checkbox,{[d.error]:k,[d.hover]:E}),label:c().createElement(C,{label:t,disabled:r,required:m,requiredIndicatorType:g,requiredIndicatorPlacement:I}),checked:Boolean(u),onChange:y,disabled:r,error:k,errorMessage:w,required:m,showAsterisk:!1,ref:_})),renderDescription:()=>null})}}}]); //# sourceMappingURL=874.chunk.min.js.map