PageSourceSearch

https://www.wrike.com/tp/static/chunk-CxFmBsOS2.js

js wrike.com collected 2026-10-01 06:52:59 UTC 73,611 bytes, 8 lines download raw bytes

1import{c as y,n as s,t as r}from"./chunk-BV03mJ0Z.js";import{Br as oC,Ct as Qm,Dt as Rf,Fn as d_,Gt as Vu,I as HH,Ii as yy,Ir as no,It as UH,Jt as WI,Kr as pM,Ln as ds,M as GH,Mn as cw,N as GM,Nn as cy,O as Fd,Pn as dI,Pt as T_,Qr as qf,Ri as zM,Si as v,Sr as lE,Vi as zm,Vn as eM,Wn as ep,Xt as Wu,Yt as Wm,_ as CM,_i as u_,an as Yw,ci as sn,f as BH,gi as uM,hr as j_,ht as Of,in as Ym,it as M,ki as xm,kn as ca,kt as Ry,li as sw,lt as Ni,mi as ty,nn as Y,pt as Ny,qn as fT,r as $f,s as A_,si as sl,t as $H,ui as sy,vn as ai$1,vr as ju,vt as Oy,yi as ur,z as Hu,zn as dy}from"./chunk-ZDNP4dbO.js";import{O as tr}from"./chunk-DnJ3ki3y.js";import{l as Zt$1,n as C}from"./chunk-CeXy1PYF.js";import{n as G}from"./chunk-CLH4okcp.js";import{t as E}from"./chunk-Bkui-QN8.js";import{i as P,l as et,u as it}from"./chunk-iCjNWeCG.js";import{t as g}from"./chunk-LrDha_2Z.js";import{t as d}from"./chunk-Cv-l3zce.js";import{t as d$1}from"./chunk-Lx1NyW4E.js";import{t as Dt}from"./chunk-BTymqwKq.js";import{t as l}from"./chunk-6S3woBys.js";import{t as N}from"./chunk-CAY2SVOu.js";import{t as ye}from"./chunk-BuUhn8PB2.js";import{A as ot,D as it$1,E as ie,F as ye$1,M as se,S as be,T as et$1,a as Gn,b as ai$2,d as Pa,g as Y$1,h as W,i as Et,j as rt,l as Me,m as Vt,n as Ce,o as Hn,r as Dt$1,s as Ho,u as Ot,y as Zn}from"./chunk-WGXcboyd2.js";import{t as g$1}from"./chunk-D2QOs2yS2.js";import{i as k,n as I,r as U$1}from"./chunk-B-_hCt212.js";import{i as X,n as Ft}from"./chunk-CKI3ogCH2.js";import{t as d$2}from"./chunk-CoAl961T2.js";import{_ as me,c as be$1,d as ft,f as ge,g as li$1,h as le,i as St,l as ce,m as kt,n as Ir,o as Uo,r as K,s as _t,u as dt,x as xi$1,y as ut}from"./chunk-28vWBjwo2.js";import{t as V}from"./chunk-BiHqiZMW2.js";import{r as r$1}from"./chunk-Ce343QIc2.js";var jt=y(l());var ai={provide:W,useExisting:ai$1(()=>Ee),multi:!0};var Ee=(()=>{class o{constructor(){this.themeService=v(g),this.isValid=$H(!0),this.colorScheme=$H(`white`),this.checkboxText=$H(),this.isDisabled=$H(!1),this.checkboxType=$H(`form`),this.isResetButtonClick=$H(!1),this.checked=$H(!1),this.receiveCheckboxValue=UH(),this.enabledColor=GM(()=>this.themeService.isDarkTheme(this.colorScheme())?`#08cf65`:`#007860`),this.disabledColor=`#C1C9D8`,this.isChecked=zM(()=>this.checked()),this.isDisabledState=zM(()=>this.isDisabled()),this.isFilterType=GM(()=>this.checkboxType()===`filter`),this.classes=GM(()=>(0,jt.default)(this.themeService.getClassesString(this.colorScheme()),{"checkbox--filter-type":this.isFilterType()})),this.onChange=()=>{},this.onTouched=()=>{},ep(()=>{this.isResetButtonClick()&&this.isChecked.set(!1)})}onCheckboxChange(){this.isDisabledState()||(this.isChecked.set(!this.isChecked()),this.onChange(this.isChecked()),this.receiveCheckboxValue.emit())}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.isDisabledState.set(e)}writeValue(e){e!==this.isChecked()&&(this.isChecked.set(e),this.onChange(e))}onBlur(){this.onTouched()}static{this.ɵfac=function(i){return new(i||o)}}static{this.ɵcmp=Yw({type:o,selectors:[[`website-checkbox`]],hostVars:2,hostBindings:function(i,t){i&2&&eM(t.classes())},inputs:{isValid:[1,`isValid`],colorScheme:[1,`colorScheme`],checkboxText:[1,`checkboxText`],isDisabled:[1,`isDisabled`],checkboxType:[1,`checkboxType`],isResetButtonClick:[1,`isResetButtonClick`],checked:[1,`checked`]},outputs:{receiveCheckboxValue:`receiveCheckboxValue`},features:[CM([ai])],decls:7,vars:14,consts:[[1,`checkbox`],[1,`checkbox__label`,3,`keydown.enter`,`keydown.space`,`tabIndex`],[`type`,`checkbox`,1,`checkbox__control`,3,`change`,`blur`,`disabled`,`checked`,`tabIndex`],[1,`checkbox__tick`],[`xmlns`,`http://www.w3.org/2000/svg`,`fill`,`none`,`viewBox`,`0 0 10 10`],[`d`,`M.63 4.86l3 3 5.75-5.73`,`stroke-linejoin`,`round`,`stroke-width`,`2`],[1,`checkbox__label-text`,3,`innerHTML`]],template:function(i,t){i&1&&(Vu(0,`div`,0)(1,`label`,1),cy(`keydown.enter`,function(){return t.isFilterType()&&t.onCheckboxChange()})(`keydown.space`,function(){return t.isFilterType()&&t.onCheckboxChange()}),Vu(2,`input`,2),cy(`change`,function(){return t.onCheckboxChange()})(`blur`,function(){return t.onBlur()}),Hu(),Vu(3,`span`,3),$f(),Vu(4,`svg`,4),Ym(5,`path`,5),Hu()(),qf(),Ym(6,`span`,6),Hu()()),i&2&&(yy(`checkbox--filter`,t.isFilterType())(`checkbox--checked`,t.isChecked())(`checkbox--disabled`,t.isDisabledState())(`checkbox--invalid`,!t.isValid()),oC(),ty(`tabIndex`,t.isFilterType()?0:-1),oC(),ty(`disabled`,t.isDisabledState())(`checked`,t.isChecked())(`tabIndex`,t.isFilterType()?-1:0),oC(3),Wm(`stroke`,t.isDisabledState()?t.disabledColor:t.enabledColor()),oC(),ty(`innerHTML`,t.checkboxText(),fT))},styles:[`.website-theme--light[_nghost-%COMP%]{--%NS%checkbox-background-color: #ffffff;
1--%NS%checkbox-text-color: var(--%NS%website-theme-text-secondary-color, #657694);--%NS%checkbox-text-color--disabled: #bfc7d9}.website-theme--light[_nghost-%COMP%]   .checkbox--filter[_ngcontent-%COMP%]{--%NS%checkbox-text-color: #162136}.website-theme--dark[_nghost-%COMP%]{--%NS%checkbox-background-color: #ffffff;--%NS%checkbox-text-color: var(--%NS%website-theme-text-secondary-color, #bfc7d9);--%NS%checkbox-text-color--disabled: #657694}.website-theme--dark[_nghost-%COMP%]   .checkbox--filter[_ngcontent-%COMP%]{--%NS%checkbox-text-color: #ffffff}.checkbox__label[_ngcontent-%COMP%]{display:flex;flex-direction:row;cursor:pointer}.checkbox--filter[_ngcontent-%COMP%]   .checkbox__label[_ngcontent-%COMP%]:focus:not(:active){border-radius:6px;outline:none;box-shadow:0 0 0 4px #ffa200}.checkbox__control[_ngcontent-%COMP%]{position:absolute!important;clip:rect(1px,1px,1px,1px);overflow:hidden;height:1px;width:1px;word-wrap:normal}.checkbox__tick[_ngcontent-%COMP%]{flex-shrink:0;width:16px;height:16px;margin-right:8px;border-radius:4px;border:2px solid #bfc7d9;transition-duration:.15s;transition-timing-function:linear;transition-property:border-color,box-shadow;box-sizing:border-box;display:flex;align-items:center;padding:1px;justify-content:center;margin-top:2px;background-color:var(--%NS%checkbox-background-color)}.checkbox__tick[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{width:100%;display:none}.checkbox--filter[_ngcontent-%COMP%]   .checkbox__tick[_ngcontent-%COMP%]{width:20px;height:20px;margin-top:0}.checkbox__label-text[_ngcontent-%COMP%]{color:var(--%NS%website-theme-text-primary-color);font-size:var(--%NS%website-notes-font-size);font-weight:var(--%NS%website-notes-font-weight);line-height:var(--%NS%website-notes-line-height);letter-spacing:var(--%NS%website-notes-letter-spacing);flex-basis:100%;-webkit-user-select:none;user-select:none;color:var(--%NS%checkbox-text-color)}.checkbox--filter[_ngcontent-%COMP%]   .checkbox__label-text[_ngcontent-%COMP%]{font-size:16px;margin-top:1px}.checkbox[_ngcontent-%COMP%]:hover:not(.checkbox--disabled):not(.checkbox--invalid)   .checkbox__tick[_ngcontent-%COMP%]{border-color:#657694}.checkbox[_ngcontent-%COMP%]   input.checkbox__control[_ngcontent-%COMP%]:focus + .checkbox__tick[_ngcontent-%COMP%]{position:relative;border-color:#657694}.checkbox[_ngcontent-%COMP%]   input.checkbox__control[_ngcontent-%COMP%]:focus + .checkbox__tick[_ngcontent-%COMP%]:before{content:"";width:calc(100% + 10px);height:calc(100% + 10px);position:absolute;top:-5px;left:-5px;background:#ffa200;z-index:-1;border-radius:6px}.checkbox--checked[_ngcontent-%COMP%]   .checkbox__tick[_ngcontent-%COMP%]{background-repeat:no-repeat;background-position:center;background-size:10px}.checkbox--checked[_ngcontent-%COMP%]   .checkbox__tick[_ngcontent-%COMP%]     svg{display:block}.checkbox--disabled[_ngcontent-%COMP%]   .checkbox__label[_ngcontent-%COMP%]{cursor:default}.checkbox--disabled[_ngcontent-%COMP%]   .checkbox__tick[_ngcontent-%COMP%]{border-color:#f2f5fa}.checkbox--disabled[_ngcontent-%COMP%]   .checkbox__label-text[_ngcontent-%COMP%]{color:var(--%NS%checkbox-text-color--disabled)}.checkbox--invalid[_ngcontent-%COMP%]   .checkbox__tick[_ngcontent-%COMP%]{border-color:#fc5367}.checkbox--filter[_ngcontent-%COMP%]   .checkbox__tick[_ngcontent-%COMP%]{transition-property:border-color,background-color}.checkbox--filter[_ngcontent-%COMP%]   .checkbox__label[_ngcontent-%COMP%]:hover     svg{display:block}.checkbox--filter[_ngcontent-%COMP%]   .checkbox__label[_ngcontent-%COMP%]:hover     svg path{stroke:#bfc7d9}.checkbox--filter[_ngcontent-%COMP%]   input.checkbox__control[_ngcontent-%COMP%]:focus + .checkbox__tick[_ngcontent-%COMP%]:before{background:none}.checkbox--filter.checkbox--checked[_ngcontent-%COMP%]   .checkbox__tick[_ngcontent-%COMP%]{background-color:#08cf65;border-color:#08cf65}.checkbox--filter.checkbox--checked[_ngcontent-%COMP%]   .checkbox__tick[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]   path[_ngcontent-%COMP%]{stroke:#fff}.checkbox--filter.checkbox--checked[_ngcontent-%COMP%]   .checkbox__label[_ngcontent-%COMP%]:hover   .checkbox__tick[_ngcontent-%COMP%]{background-color:#009669;border-color:#009669}.checkbox--filter.checkbox--checked[_ngcontent-%COMP%]   .checkbox__label[_ngcontent-%COMP%]     svg path{stroke:#fff}.checkbox--filter.checkbox--checked[_ngcontent-%COMP%]   input.checkbox__control[_ngcontent-%COMP%]:focus + .checkbox__tick[_ngcontent-%COMP%]{border-color:transparent}
2/*# sourceMappingURL=checkbox.component-TJ6ZZJVB.css.map */`]})}}return o}
2)();var qt=y(l());var li=[`textarea`];function ci(o,u){if(o&1&&(ds(0,`span`,7),uM(1),ju()),o&2){let e=A_();yy(`textarea__label-text--lifted`,e.textareaVisualState.isLabelLifted),oC(),Wu(` `,e.labelText(),` `)}}function mi(o,u){if(o&1&&(ds(0,`span`,5),uM(1),ju()),o&2){let e=A_();oC(),Wu(` `,e.textareaPlaceholderText(),` `)}}function di(o,u){if(o&1&&Qm(0,`website-image`,10),o&2){let e=A_(2);yy(`textarea__icon--success`,e.validationStatus()===e.validationStatusMap.Valid)(`textarea__icon--failure`,e.validationStatus()===e.validationStatusMap.Invalid),zm(`src`,e.iconUrl())(`width`,20)(`height`,20)(`isDecorative`,!0)(`config`,e.inputIconImageConfig)}}function pi(o,u){if(o&1){let e=T_();ds(0,`span`,8),sy(`click`,function(t){Rf(e);return Of(A_().sendValue(t))}),u_(1,di,1,9,`website-image`,9),ju()}if(o&2){let e=A_();yy(`textarea__additional-item--focused`,e.validationStatus()!==e.validationStatusMap.Pending&&e.isFocused)(`textarea__additional-item--focused-no-error`,!e.isFocused&&!e.isDisabled()&&e.validationStatus()===e.validationStatusMap.Pending),oC(),d_(e.iconUrl()?1:-1)}}var hi={provide:W,useExisting:ai$1(()=>Ve),multi:!0};var Ve=(()=>{class o extends d$1{constructor(){super(),this.themeService=v(g),this.COMPONENT_NAME=`website-textarea`,this.textareaValue=``,this.isFocused=!1,this.validationStatusMap=Y$1,this.inputStatus=ye$1.Default,this.inputIconImageConfig=Et,this.maxLength=$H(2e3),this.validationStatus=$H(),this.size=$H(`large`),this.colorScheme=$H(`white`),this.formControlName=$H(`textarea`),this.formControl=$H(),this.labelText=$H(`default random text`),this.placeholderText=$H(``),this.isDisabled=$H(),this.isResetButtonClick=$H(!1),this.errorColor=$H(`default`),this.validationIcon=$H(),this.hideAdditionalItem=$H(!1),this.receiveValue=UH(),this.textareaRef=GH(`textarea`),this.placeholderCharacterLimit=30,this.classes=GM(()=>(0,qt.default)(`size-${this.size()}`,{disabled:this.isDisabled()},...this.themeService.getClassesArray(this.colorScheme()))),this.textareaPlaceholderText=GM(()=>se(this.placeholderText(),this.placeholderCharacterLimit)),this.iconUrl=GM(()=>this.validationStatus()===this.validationStatusMap.Valid?`/tp/static/assets/img/input/icon-success.svg`:this.validationStatus()===this.validationStatusMap.Invalid?this.validationIcon()||`/tp/static/assets/img/input/icon-error.svg`:``),this.onChange=e=>{},this.onTouched=()=>{},ep(e=>{let i=this.formControl()?.valueChanges.subscribe(()=>{this.changeInputState()});e(()=>i?.unsubscribe())}),ep(()=>{this.validationStatus(),this.isDisabled(),this.size(),this.changeInputState(),this.isResetButtonClick()&&(this.textareaValue=``,this.sendValue(),this.changeInputState())})}get textareaNativeElement(){return this.textareaRef().nativeElement}onFocus(){this.isFocused=!0,this.changeInputState()}focusTextarea(){this.textareaNativeElement.focus()}onBlur(){this.isFocused=!1,this.changeInputState(),this.onTouched()}onInputChange(){this.isFocused=!0,this.changeInputState(),this.onChange(this.textareaValue)}sendValue(e){e?.preventDefault(),this.receiveValue.emit(this.textareaValue)}get shouldShowAdditionalItem(){if(this.hideAdditionalItem())return!1;let e=this.validationStatus()!==this.validationStatusMap.Pending&&!this.isDisabled(),i=!this.isFocused&&!this.isDisabled();return e||i}writeValue(e){this.textareaValue=String(e??``)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}changeInputState(){this.isDisabled()?this.inputStatus=ye$1.Disabled:this.isFocused?this.inputStatus=ye$1.Focused:this.inputStatus=ye$1.Default,this.textareaVisualState=this.generateStateName(this.size(),this.textareaValue?.trim(),this.inputStatus)}generateStateName(e,i,t){let a=t.toString().toUpperCase(),c=i?`VALUE`:`NO_VALUE`;return Dt$1[`${e.toUpperCase()}_SIZE_${a}_HAS_${c}`]}static{this.ɵfac=function(i){return new(i||o)}}static{this.ɵcmp=Yw({type:o,selectors:[[`website-textarea`]],viewQuery:function(i,t){i&1&&dy(t.textareaRef,li,5),i&2&&j_()},hostVars:2,hostBindings:function(i,t){i&2&&eM(t.classes())},inputs:{maxLength:[1,`maxLength`],validationStatus:[1,`validationStatus`],size:[1,`size`],colorScheme:[1,`colorScheme`],formControlName:[1,`formControlName`],formControl:[1,`formControl`],labelText:[1,`labelText`],placeholderText:[1,`placeholderText`],isDisabled:[1,`isDisabled`],isResetButtonClick:[1,`isResetButtonClick`],errorColor:[1,`errorColor`],validationIcon:[1,`validationIcon`],hideAdditionalItem:[1,`hideAdditionalItem`]},outputs:{receiveValue:`receiveValue`},features:[CM([hi]),xm],decls:7,vars:19,consts:[[`textarea`,``],[1,`textarea__container`],[1,`textarea__label`],[`data-application`,`textarea-control`,`dir`,`auto`,1,`textarea__control`,3,`ngModelChange`,`input`,`focus`,`blur`,`focusout`,`disabled`,`ngModel`],[`data-application`,`textarea-label-text`,1,`textarea__label-text`,3,`textarea__label-text--lifted`],[`data-application`,`textarea-placeholder`,1,`textarea__placeholder-text`],[`tabindex`,`-1`,1,`textarea__additional-item`,3,`textarea__additional-item--focused`,`textarea__additional-item--focused-no-error`],[`data-application`,`textarea-label-text`,1,`textarea__label-text`],[`tabindex`,`-1`,1,`textarea__additional-item`,3,`click`],[1,`textarea__icon`,3,`textarea__icon--success`,`textarea__icon--failure`,`src`,`width`,`height`,`isDecorative`,`config`],[1,`textarea__icon`,3,`src`,`width`,`height`,`isDecorative`,`config`]],template:function(i,t){if(i&1){let a=T_();ds(0,`div`,1)(1,`label`,2)(2,`textarea`,3,0),Oy(`ngModelChange`,function(d){return Rf(a),pM(t.textareaValue,d)||(t.textareaValue=d),Of(d)}),sy(`input`,function(){return t.onInputChange()})(`focus`,function(){return t.onFocus()})(`blur`,function(){return t.onBlur()})(`focusout`,function(d){return t.sendValue(d)}),ju(),sw(),u_(4,ci,2,3,`span`,4),u_(5,mi,2,1,`span`,5),u_(6,pi,2,5,`span`,6),ju()()}
2i&2&&(oC(),yy(`textarea__label--focused`,t.isFocused)(`textarea__label--disabled`,t.isDisabled())(`textarea__label--has-error`,t.validationStatus()===t.validationStatusMap.Invalid)(`textarea__label--error--orange`,t.errorColor()===`orange`),oC(),yy(`textarea__control--has-additional-item`,!t.hideAdditionalItem()&&t.validationStatus()!==t.validationStatusMap.Pending&&!t.isDisabled())(`textarea__control--has-additional-item-no-error`,!t.hideAdditionalItem()&&!t.isFocused&&!t.isDisabled()&&t.validationStatus()===t.validationStatusMap.Pending),zm(`disabled`,t.isDisabled()),Ry(`ngModel`,t.textareaValue),Wm(`name`,t.formControlName())(`maxLength`,t.maxLength()),cw(),oC(2),d_(t.textareaVisualState.isLabelVisible?4:-1),oC(),d_(t.textareaVisualState.isPlaceholderVisible?5:-1),oC(),d_(t.shouldShowAdditionalItem?6:-1))},dependencies:[rt,et$1,it$1,Vt,ye],styles:[`[_nghost-%COMP%]{--%NS%input-background-color--default: #ffffff;--%NS%input-background-color--disabled: #ffffff;display:block;position:relative;font-family:inherit}[_nghost-%COMP%], [_nghost-%COMP%]   *[_ngcontent-%COMP%]{box-sizing:border-box}[_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%]{font-size:var(--%NS%website-paragraph-font-size);line-height:var(--%NS%website-paragraph-line-height);width:100%;border:none;padding:0;outline:none;font-family:inherit;line-height:32px;color:#162136;background-color:var(--%NS%input-background-color--default)}[_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%]:-webkit-autofill, [_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%]:-webkit-autofill:hover, [_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%]:-webkit-autofill:focus, [_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%]:-webkit-autofill:active{-webkit-text-fill-color:#162136;caret-color:#162136}[_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%]::-ms-clear{display:none;width:0;height:0}[_nghost-%COMP%]   .textarea__label[_ngcontent-%COMP%]{position:relative;overflow:hidden;display:flex;background-color:var(--%NS%input-background-color--default);border-width:2px;border-style:solid;border-color:#bfc7d9;transition:.15s border-color linear,.15s box-shadow linear,.15s color linear,.15s transform linear}[_nghost-%COMP%]   .textarea__label--focused[_ngcontent-%COMP%]{box-shadow:0 0 0 4px #ffa200;border-color:#657694}[_nghost-%COMP%]   .textarea__label--disabled[_ngcontent-%COMP%]{background-color:var(--%NS%input-background-color--disabled)}[_nghost-%COMP%]   .textarea__label[_ngcontent-%COMP%]:not(.textarea__label--disabled):not(.textarea__label--focused):hover{border-color:#657694}[_nghost-%COMP%]   .textarea__label-text[_ngcontent-%COMP%]{position:absolute;line-height:32px;transform:translateY(0);transition:.15s border-color linear,.15s box-shadow linear,.15s color linear,.15s transform linear;color:#657694;cursor:text;pointer-events:none;white-space:nowrap}[_nghost-%COMP%]   .textarea__label-text--lifted[_ngcontent-%COMP%]{transform:translateY(-10px);color:var(--%NS%website-theme-text-primary-color);font-size:var(--%NS%website-notes-font-size);font-weight:var(--%NS%website-notes-font-weight);line-height:var(--%NS%website-notes-line-height);letter-spacing:var(--%NS%website-notes-letter-spacing);color:#657694}[_nghost-%COMP%]   .textarea__additional-item[_ngcontent-%COMP%]{position:relative;flex-shrink:0;display:flex;align-items:center;justify-content:center;background-color:var(--%NS%input-background-color--default)}[_nghost-%COMP%]   .textarea__additional-item[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;bottom:0;width:30px;left:-30px;background:linear-gradient(90deg,rgba(var(--%NS%input-background-color--default),.0001) 0%,var(--%NS%input-background-color--default) 100%)}[_nghost-%COMP%]   .textarea__additional-item--%NS%focused[_ngcontent-%COMP%]:before{display:none}[_nghost-%COMP%]   .textarea__additional-item[_ngcontent-%COMP%]:dir(rtl){display:none}[_nghost-%COMP%]   .textarea__placeholder-text[_ngcontent-%COMP%]{font-size:var(--%NS%website-paragraph-font-size);line-height:var(--%NS%website-paragraph-line-height);position:absolute;top:0;left:0;width:100%;color:#bfc7d9;cursor:text;line-height:34px;pointer-events:none}.disabled[_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%]{padding-right:20px;color:#bfc7d9}.disabled[_nghost-%COMP%]   .textarea__placeholder-text[_ngcontent-%COMP%]{padding-right:20px}.disabled[_nghost-%COMP%]   .textarea__label-text[_ngcontent-%COMP%]{color:#bfc7d9}.disabled[_nghost-%COMP%]   .textarea__label[_ngcontent-%COMP%]{border-color:#f2f5fa}.disabled.size-small[_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%]{padding-right:20px}.disabled.size-small[_nghost-%COMP%]   .textarea__label-text--lifted[_ngcontent-%COMP%]{color:#bfc7d9}.disabled.size-default[_nghost-%COMP%]   .textarea__label-text--lifted[_ngcontent-%COMP%]{color:#bfc7d9}.ng-invalid.ng-touched[_nghost-%COMP%]   .textarea__label[_ngcontent-%COMP%]:not(.textarea__label--disabled){border-color:#fc5367}.ng-invalid.ng-touched[_nghost-%COMP%]   .textarea__label[_ngcontent-%COMP%]:not(.textarea__label--disabled).textarea__label--error--orange{border-color:#ffa200}.ng-invalid.ng-touched.has-shadow[_nghost-%COMP%]   .textarea__label[_ngcontent-%COMP%]:not(.textarea__label--disabled){border-color:transparent}.ng-invalid.ng-touched[_nghost-%COMP%]   .textarea__additional-item[_ngcontent-%COMP%]:dir(rtl){display:flex}
2.size-large[_nghost-%COMP%]{min-width:200px}.size-large[_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%], .size-large[_nghost-%COMP%]   .textarea__placeholder-text[_ngcontent-%COMP%]{height:56px;margin:22px 0 2px 20px}.size-large[_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%]{height:auto;min-height:98px;max-height:300px;overflow:auto;resize:vertical}.size-large[_nghost-%COMP%]:dir(rtl)   .textarea__control[_ngcontent-%COMP%], .size-large[_nghost-%COMP%]:dir(rtl)   .textarea__placeholder-text[_ngcontent-%COMP%]{margin:22px 20px 2px}.size-large[_nghost-%COMP%]   .textarea__label[_ngcontent-%COMP%]{border-radius:12px}.size-large[_nghost-%COMP%]   .textarea__label-text[_ngcontent-%COMP%]{font-size:var(--%NS%website-paragraph-font-size);line-height:var(--%NS%website-paragraph-line-height);inset-block-start:16px;inset-inline-start:20px}.size-large[_nghost-%COMP%]   .textarea__label-text--lifted[_ngcontent-%COMP%]{color:var(--%NS%website-theme-text-primary-color);font-size:var(--%NS%website-notes-font-size);font-weight:var(--%NS%website-notes-font-weight);line-height:var(--%NS%website-notes-line-height);letter-spacing:var(--%NS%website-notes-letter-spacing);color:#657694}.size-large[_nghost-%COMP%]   .textarea__additional-item[_ngcontent-%COMP%]{width:56px;height:56px}.size-large[_nghost-%COMP%]   .textarea__additional-item--focused-no-error[_ngcontent-%COMP%]{width:20px}.size-large[_nghost-%COMP%]   .textarea__additional-item[_ngcontent-%COMP%]{height:100%}.size-large[_nghost-%COMP%]   .textarea__icon[_ngcontent-%COMP%]{width:20px;height:20px}.size-large.ng-invalid.ng-touched[_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%]{width:calc(100% - 56px)}.size-large.ng-invalid.ng-touched[_nghost-%COMP%]:dir(rtl)   .textarea__control[_ngcontent-%COMP%]{padding-left:0}.size-small[_nghost-%COMP%]{min-width:140px}.size-small[_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%], .size-small[_nghost-%COMP%]   .textarea__placeholder-text[_ngcontent-%COMP%]{height:36px;padding:2px 0 2px 14px;font-size:16px}.size-small[_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%]{height:auto;min-height:120px;max-height:300px;overflow:auto;resize:vertical}.size-small[_nghost-%COMP%]   .textarea__placeholder-text[_ngcontent-%COMP%]{line-height:34px}.size-small[_nghost-%COMP%]   .textarea__label[_ngcontent-%COMP%]{border-radius:8px}.size-small[_nghost-%COMP%]   .textarea__label-text[_ngcontent-%COMP%]{font-size:var(--%NS%website-paragraph-font-size);line-height:var(--%NS%website-paragraph-line-height);top:6px;left:14px}.size-small[_nghost-%COMP%]   .textarea__label-text--lifted[_ngcontent-%COMP%]{color:var(--%NS%website-theme-text-primary-color);font-size:var(--%NS%website-notes-font-size);font-weight:var(--%NS%website-notes-font-weight);line-height:var(--%NS%website-notes-line-height);letter-spacing:var(--%NS%website-notes-letter-spacing);color:#657694}.size-small[_nghost-%COMP%]   .textarea__additional-item[_ngcontent-%COMP%]{width:36px;height:36px}.size-small[_nghost-%COMP%]   .textarea__additional-item--focused-no-error[_ngcontent-%COMP%]{width:15px}.size-small[_nghost-%COMP%]   .textarea__additional-item[_ngcontent-%COMP%]{height:100%}.size-small[_nghost-%COMP%]   .textarea__icon[_ngcontent-%COMP%]{width:16px;height:16px}.size-small.ng-invalid.ng-touched[_nghost-%COMP%]   .textarea__control[_ngcontent-%COMP%]{width:calc(100% - 36px)}
3/*# sourceMappingURL=textarea.component-3HG6JWJZ.css.map */`]})}}return o})();var Ht=(()=>{class o{constructor(){this.document=v(sn),this.platformId=v(dI),this.cookieService=v(E),this.scriptService=v(dt),this.rendererFactory=v(no),this.marketoConfig=ut.production,this.renderer=this.rendererFactory.createRenderer(null,null)}async fetchPrefillValues(e){if(!tr(this.platformId))return null;let{formId:i,isEpcForm:t=!1,timeoutMs:a=4e3}=e,c=String(i);return this.enablePrefill()?(await this.loadScripts(),await new Promise(d=>{let m=null,E=!1,D=()=>{},Q=`mktoForm_${c}`,Y=V=>{E||(E=!0,d(V))},T=setTimeout(()=>{Y(m?.getValues()??null)},a),z=V=>{clearTimeout(T);try{D()}catch{}Y(V)},{production:A,marketoDataSrc:xe,EPCDataSrc:oi}=ut,Le=`https:${A.marketoDomain}`,ni=`${Le}${t?oi:xe}`,De=()=>{new SimpleDTO({debug:!1,mode:`receive`,transport:`message`,messageSource:Le,messageTarget:[`\\.wrike\\.com$`,`\\.wrke\\.io$`,`\\.wrke\\.be$`,`\\.wrke\\.in$`,`klaxoon\\.com$`,`\\.klaxoon\\.com$`,`\\.klxn\\.io$`,`\\.klxn\\.be$`,`\\.klxn\\.in$`],dataSrc:ni,cb:(V,ri)=>{z(ri??null)}})};if(this.document.getElementById(Q)){De();return}let te=this.document.createElement(`div`);te.style.display=`none`,this.renderer.appendChild(this.document.body,te),D=()=>{try{this.renderer.removeChild(this.document.body,te)}catch{}};let Ae=this.document.createElement(`form`);Ae.setAttribute(`id`,Q),this.renderer.appendChild(te,Ae);try{window.MktoForms2?.loadForm(this.marketoConfig.marketoDomain,this.marketoConfig.munchkinId,i,V=>{if(m=V??null,!window.MktoForms2||!V){z(null);return}De()})}catch(V){clearTimeout(T),D(),console.error(`ContactSalesPrefillService.fetchPrefillValues()`,V),d(null)}})):null}async loadScripts(){try{let e={maxRetries:3,delay:100};await this.scriptService.addAsyncScript(r({src:me,id:`script-forms2.min.js`},e)),await this.scriptService.addAsyncScript(r({src:le,id:`script-teknkl-formsplus-core-1.0.8.js`},e)),await this.scriptService.addAsyncScript(r({src:ce,id:`script-teknkl-simpledto-2.0.4-regex.js`},e))}catch(e){throw console.error(`ContactSalesPrefillService.loadScripts()`,e),new Error(`Marketo 
3scripts did not initialize. Error during load marketo prefill.`)}}enablePrefill(){return!!this.cookieService.get(`_mkto_trk`)}ngOnDestroy(){}static{this.ɵfac=function(i){return new(i||o)}}static{this.ɵprov=Y({token:o,factory:o.ɵfac,providedIn:`root`})}}return o})();var Gt=(()=>{class o{constructor(){this.document=v(sn),this.http=v(Zt$1),this.localeService=v(N),this.nonTrialCustomEventTrackingService=v(kt),this.nonTrialStatSiteTrackingService=v(ft),this.cookieService=v(E),this.businessEmailValidatorService=v(et),this.USER_ID_COOKIE_NAME=`uid`,this.DEFAULT_SUBTYPE_VALUE=`Website`,this.nonBusinessEmails=[],this.contactSalesUrlEnding=`/ui/create_email_sales_event`,this.contactSalesRedirectUrlEnding=`/resend-sales/`,this.prepareTrackingDataForCustomEvent=(e,i)=>({formType:`contact_sales`,value:r(r(r(r(r(r(r(r(r(r(r(r(r({type:`contact`},i.subtype&&{subtype:i.subtype}),i.form&&{form:i.form}),i.content&&{content:i.content}),e.email&&{email:e.email}),e.name&&{name:e.name}),e.department&&{department:e.department}),Object.prototype.hasOwnProperty.call(e,`jobRole`)&&{job_role:e.jobRole??``}),e.jobLevel&&{job_title:e.jobLevel}
3),e.companySize&&{company_size:e.companySize}),e.phone&&{phone_number:e.phone}),Object.prototype.hasOwnProperty.call(e,`marketingNotes`)&&{Marketo_Marketing_Notes__c:e.marketingNotes??``}),e.email&&{c_email:this.businessEmailValidatorService.isBusinessEmail(e.email,this.nonBusinessEmails)?1:null}),e.email&&{existing_user:!!this.cookieService.get(this.USER_ID_COOKIE_NAME)})}),this.prepareTrackingDataForStatSite=(e,i)=>({formType:`contact_sales`,actionType:`submit`,value:r(r(r(r(r(r(r(r(r(r(r(r(r({type:`contact`},i.subtype&&{subtype:i.subtype}),i.form&&{form:i.form}),i.content&&{content:i.content}),e.email&&{email:e.email}),e.name&&{name:e.name}),e.department&&{department:e.department}),Object.prototype.hasOwnProperty.call(e,`jobRole`)&&{job_role:e.jobRole??``}),e.jobLevel&&{job_title:e.jobLevel}),e.companySize&&{company_size:e.companySize}),e.phone&&{phone_number:e.phone}),Object.prototype.hasOwnProperty.call(e,`marketingNotes`)&&{Marketo_Marketing_Notes__c:e.marketingNotes??``}),e.email&&{c_email:this.businessEmailValidatorService.isBusinessEmail(e.email,this.nonBusinessEmails)?1:null}),e.email&&{existing_user:!!this.cookieService.get(this.USER_ID_COOKIE_NAME)})}),this.businessEmailValidatorService.getNonBusinessEmails().then(e=>{this.nonBusinessEmails=e})}sendContactSalesRequest(e,i,t){let a=this.prepareSendingData(e),c=`${i}${this.contactSalesUrlEnding}`;return this.http.post(c,a,{headers:this.configureHeaders()}).pipe(ca(d=>lE(d)),Fd(()=>{let d=this.prepareTrackingDataForCustomEvent(e,t),m=this.prepareTrackingDataForStatSite(e,t);this.nonTrialCustomEventTrackingService.track(r({},d)),this.nonTrialStatSiteTrackingService.track(r({},m),i)}))}redirectToResend(e,i){let t=this.localeService.getPathToLocaleSlug(),a={method:`GET`,style:`display:none`,action:i||`${e}${t}${this.contactSalesRedirectUrlEnding}`},c=this.document.createElement(`form`);this.setAttributesFor(c,a),this.document.body.appendChild(c),c.submit()}setAttributesFor(e,i){for(let t in i)e.setAttribute(t,i[t])}prepareSendingData(e){let i=new FormData;return i.append(`email`,e.email),i.append(`name`,e.name||``),i.append(`phone`,e.phone||``),i.append(`department`,e.department||``),i.append(`job_level`,e.jobLevel||``),e.jobRole!==void 0&&i.append(`job_role`,e.jobRole),Object.prototype.hasOwnProperty.call(e,`marketingNotes`)&&i.append(`Marketo_Marketing_Notes__c`,e.marketingNotes??``),i.append(`type`,e.type||``),i.append(`countryCode`,e.countryCode||``),i.append(`sub_type`,e.subType||this.DEFAULT_SUBTYPE_VALUE),i.append(`company_size`,e.companySize||``),i.append(`source`,this.configureSourceUrl()),i.append(`details`,this.configureDetails(e)),i}configureHeaders(){return new C({"Wrike-Client-Id":P()})}configureSourceUrl(){return`https://${window.location.host}${window.location.pathname}`}configureDetails(e){return JSON.stringify(r(s(r({department:e.department},e.jobRole!==void 0&&{job_role:e.jobRole}),{job_level:e.jobLevel}),Object.prototype.hasOwnProperty.call(e,`marketingNotes`)&&{Marketo_Marketing_Notes__c:e.marketingNotes??``}))}static{this.ɵfac=function(i){return new(i||o)}}static{this.ɵprov=Y({token:o,factory:o.ɵfac,providedIn:`root`})}}return o})();var Wt=(()=>{class o{constructor(){this.document=v(sn),this.platformId=v(dI),this.QUALIFIED_IFRAME_ID=`q-messenger-frame`,this.FIND_IFRAME_INTERVAL_MS=2e3,this.FIND_IFRAME_MAX_RETRIES=5,this.qMessengerDomObserver=null,this.qMessengerAttributeObserver=null,this.qMessengerIframe=null,this.changeCallback=null,this.findIframeIntervalId=null}initObserver(e){if(tr(this.platformId)){this.changeCallback=e;let i=this.document.body||this.document.documentElement;if(!i||(this.findAndInitQMessengerIframe()||this.startFindIframeRetry(),this.qMessengerDomObserver))return;this.qMessengerDomObserver=new MutationObserver(a=>{let c=!1;a.forEach(d=>{d.addedNodes&&d.addedNodes.forEach(m=>{m instanceof HTMLElement&&(m.id===this.QUALIFIED_IFRAME_ID||m.querySelector&&m.querySelector(`#${this.QUALIFIED_IFRAME_ID}`))&&(c=!0)}),d.removedNodes&&d.removedNodes.forEach(m=>{m instanceof HTMLElement&&(m.id===this.QUALIFIED_IFRAME_ID||m.querySelector&&m.querySelector(`#${this.QUALIFIED_IFRAME_ID}`))&&(this.cleanupQMessengerAttributeObserver(),this.notifyChange(`removed`,{node:m}))})}),c&&setTimeout(()=>this.findAndInitQMessengerIframe(),100)}),this.qMessengerDomObserver.observe(i,{childList:!0,subtree:!0})}}stopObserver(){this.qMessengerDomObserver&&(this.qMessengerDomObserver.disconnect(),this.qMessengerDomObserver=null),this.cleanupFindIframeRetry(),this.cleanupQMessengerAttributeObserver(),this.changeCallback=null,this.qMessengerIframe=null}findAndInitQMessengerIframe(){let e=this.document.getElementById(this.QUALIFIED_IFRAME_ID);return e&&e!==this.qMessengerIframe?(this.qMessengerIframe=e,this.startQMessengerAttributeObserver(e),this.notifyChange(`found`,{iframe:e}),this.cleanupFindIframeRetry(),!0):!1}startFindIframeRetry(){this.cleanupFindIframeRetry();let e=this.FIND_IFRAME_MAX_RETRIES;this.findIframeIntervalId=setInterval(()=>{let i=this.findAndInitQMessengerIframe();if(e-=1,i){this.cleanupFindIframeRetry();return}e<=0&&(this.document.getElementById(this.QUALIFIED_IFRAME_ID)||this.notifyChange(`general`,{reason:`iframe_not_found`}),this.cleanupFindIframeRetry())},this.FIND_IFRAME_INTERVAL_MS)}cleanupFindIframeRetry(){this.findIframeIntervalId&&(clearInterval(this.findIframeIntervalId),this.findIframeIntervalId=null)}startQMessengerAttributeObserver(e){this.cleanupQMessengerAttributeObserver(),this.qMessengerAttributeObserver=new MutationObserver(i=>
3{i.forEach(t=>{if(t.type===`attributes`){let a=t.attributeName,c=t.oldValue,d=e.getAttribute(a);c!==d&&this.notifyChange(`attribute`,{attribute:a,oldValue:c,newValue:d})}})}),this.qMessengerAttributeObserver.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:[`class`]})}cleanupQMessengerAttributeObserver(){this.qMessengerAttributeObserver&&(this.qMessengerAttributeObserver.disconnect(),this.qMessengerAttributeObserver=null)}notifyChange(e,i){this.changeCallback&&this.changeCallback(e,i)}static{this.ɵfac=function(i){return new(i||o)}}static{this.ɵprov=Y({token:o,factory:o.ɵfac,providedIn:`root`})}}return o})();function $t(o){return o.filter(u=>u!==``)}function Qt(o,u){let e=o.split(/\s/),i=``,t=``;return e=$t(e),e.length>1?(i=u===`/ja`?e.slice(1).join(` `):e[0],t=u===`/ja`?e[0]:e.slice(1).join(` `)):t=e[0],{firstName:i,lastName:t}}var U=(function(o){return o.Default=`default`,o.Loading=`loading`,o.Sent=`sent`,o.HasServerError=`hasServerError`,o})(U||{});var Yt=o=>u=>o(u.value)?null:{isPhonePossible:!0};function Se(){return o=>!((o.value||``).trim().length===0)?null:{hasOnlyWhitespaces:!0}}var Kt={PT:`/pt-br/resend-sales/`,BR:`/pt-br/resend-sales/`,JP:`/ja/resend-sales/`,IT:`/it/resend-sales/`,FR:`/fr/resend-sales/`,DE:`/de/resend-sales/`,RU:`/ru/resend-sales/`};var ui=[`marketoPlacement`];function gi(o,u){if(o&1&&(ds(0,`div`,4),uM(1),ju()),o&2){let e=A_();oC(),Wu(` `,e.errorMessages.fullName,` `)}}function fi(o,u){if(o&1&&(ds(0,`div`,7),uM(1),ju()),o&2){let e=A_();oC(),Wu(` `,e.errorMessages.email,` `)}}function bi(o,u){if(o&1&&(ds(0,`div`,4),uM(1),ju()),o&2){let e=A_();oC(),Wu(` `,e.errorMessages.phone,` `)}}function _i(o,u){if(o&1&&(ds(0,`div`,4),uM(1),ju()),o&2){let e=A_();oC(),Wu(` `,e.errorMessages.department,` `)}}function vi(o,u){if(o&1&&(ds(0,`div`,4),uM(1),ju()),o&2){let e=A_();oC(),Wu(` `,e.errorMessages.jobLevelText,` `)}}function Ci(o,u){if(o&1&&(ds(0,`p`,16),uM(1),ju()),o&2){let e=A_();oC(),Ny(e.formVisualSettings().checkboxesConsentText)}}function Si(o,u){if(o&1&&(ds(0,`div`,17),Qm(1,`website-checkbox`,23),sw(),ju()),o&2){let e=A_();oC(),zm(`colorScheme`,e.colorScheme())(`formControlName`,e.formInputs.privacyEmailInputName)(`checkboxText`,e.formVisualSettings().checkboxEmailText),cw()}}function xi(o,u){if(o&1&&(ds(0,`div`,17),Qm(1,`website-checkbox`,24),sw(),ju()),o&2){let e=A_();oC(),zm(`colorScheme`,e.colorScheme())(`formControlName`,e.formInputs.emailTrackingConsentInputName)(`checkboxText`,e.formVisualSettings().checkboxEmailTrackingText),cw()}}function Mi(o,u){o&1&&($f(),ds(0,`svg`,19),Qm(1,`path`,25),ju())}function ki(o,u){o&1&&($f(),ds(0,`svg`,20),Qm(1,`path`,26),ju())}function Pi(o,u){if(o&1&&(ds(0,`div`,21)(1,`span`,27),uM(2),ju()()),o&2){let e=A_();oC(2),Ny(e.serverErrorMessage)}}var Jt=(()=>{class o{constructor(){this.platformId=v(dI),this.envName=v(ge),this.contactSalesService=v(Gt),this.mktoService=v(Uo),this.contactSalesPrefillService=v(Ht),this.renderer=v(sl),this.cookieService=v(E),this.geoService=v(g$1),this.localeService=v(N),this.businessEmailValidatorService=v(et),this.personalDataProtectionService=v(G),this.qualifiedObserverService=v(Wt),this.buttonV3Service=v(d),this.phoneNumberLoader=HH(()=>import(`./phone-number.loader.service-C1yIRXTO.js`).then(e=>e.PhoneNumberLoaderService),{prefetch:BH}),this.errorList=$H.required(),this.formVisualSettings=$H.required(),this.isEuVisitor=$H.required(),this.type=$H(),this.subtype=$H(),this.environment=$H(),this.trackingParams=$H(),this.stopRedirect=$H(!1),this.businessValidation=$H(!1),this.qualifiedFormExperienceId=$H(null),this.colorScheme=$H.required(),this.redirectUrl=$H(),this.formSentSuccessful=UH(),this.marketoPlacementRef=GH(`marketoPlacement`),this.formInputs={fullNameInputName:`fullName`,emailInputName:`email`,phoneInputName:`phone`,departmentInputName:`department`,jobLevelInputName:`jobLevel`,marketingNotesInputName:`marketingNotes`,privacyEmailInputName:`privacyEmail`,emailTrackingConsentInputName:`emailTrackingConsent`},this.primaryButtonStyleProperties=GM(()=>this.buttonV3Service.getStylesAccordingToPriority(`primary`,this.colorScheme())),this.formState=U.Default,this.formStateMap=U,this.validationStatusMap=Y$1,this.phoneInputPlaceholder=Ni(``),this.marketoId=2005,this.marketoPrefill=null,this.prefillApplyInFlight=null,this.pendingPrefillToApply=null,this.isResendRedirectTriggered=!1,this.getLocalisedFollowupUrl=()=>{if(this.redirectUrl())return this.redirectUrl();let e=`${this.environment()}${this.localeService.getPathToLocaleSlug()}/resend-sales/`,i=this.geoService.getCountryCodeFromCookie(!1);if(i){let t=Kt[i];return t?`${this.environment()}${t}`:e}else return e}}get formControls(){return{fullName:this.form?.get(`fullName`),email:this.form?.get(`email`),phone:this.form?.get(`phone`),department:this.form?.get(`department`),jobLevel:this.form?.get(`jobLevel`),marketingNotes:this.form?.get(`marketingNotes`)}}get validationStates(){let e=this.formControls;
3return{fullName:e.fullName?.touched?e.fullName.invalid?Y$1.Invalid:Y$1.Valid:Y$1.Pending,email:e.email?.touched?e.email.invalid?Y$1.Invalid:Y$1.Valid:Y$1.Pending,phone:e.phone?.touched?e.phone.invalid?Y$1.Invalid:Y$1.Valid:Y$1.Pending,jobLevelText:e.jobLevel?.touched?e.jobLevel.invalid?Y$1.Invalid:Y$1.Valid:Y$1.Pending,marketingNotes:e.marketingNotes?.touched?e.marketingNotes.invalid?Y$1.Invalid:Y$1.Valid:Y$1.Pending}}get errorMessages(){return{fullName:this.getErrorMessage(`fullName`),email:this.getErrorMessage(`email`),phone:this.getErrorMessage(`phone`),department:this.getErrorMessage(`department`),jobLevelText:this.getErrorMessage(`jobLevel`,`jobLevelText`),marketingNotes:this.getErrorMessage(`marketingNotes`)}}get invalidStates(){let e=this.formControls;return{fullName:e.fullName?.invalid&&e.fullName?.touched,email:e.email?.invalid&&e.email?.touched,phone:e.phone?.invalid&&e.phone?.touched,department:e.department?.invalid&&e.department?.touched,jobLevelText:e.jobLevel?.invalid&&e.jobLevel?.touched,marketingNotes:e.marketingNotes?.invalid&&e.marketingNotes?.touched}}get departmentInputValidationStatus(){let e=this.formControls.department;return e?.touched?e.invalid?Y$1.Invalid:Y$1.Valid:Y$1.Pending}ngOnInit(){this.isEuVisitorFromCookie=this.cookieService.get(`is_eu_visitor`)===`1`,this.setPhoneInputPlaceholder(),this.setupConsentSubscription();let a={email:new ot({value:``,disabled:!1},[Ce.required,it(),this.addDevEmailValidator()].filter(Boolean),this.businessValidation()?[this.businessEmailValidatorService.businessEmailValidator()]:[]),fullName:new ot({value:``,disabled:!1},[Ce.required,Se()]),phone:new ot({value:``,disabled:!1},[Ce.required])};a.department=new ot({value:``,disabled:!1},[Ce.required,Se()]),a.jobLevel=new ot({value:``,disabled:!1},[Ce.required,Se()]),a.marketingNotes=new ot({value:``,disabled:!1}),this.form=new ie(a,{updateOn:`change`}),this.getPrivacyCookies(),this.showEmailCheckbox&&this.form.addControl(`privacyEmail`,new ot({value:!1,disabled:!1})),this.showEmailTrackingConsentCheckbox=_t(this.geoService),this.showEmailTrackingConsentCheckbox&&this.form.addControl(`emailTrackingConsent`,new ot({value:!1,disabled:!1})),this.phoneNumberLoader().then(c=>{let d=this.getInputByName(this.formInputs.phoneInputName).value;this.form.removeControl(`phone`),this.form.addControl(`phone`,new ot({value:d,disabled:!1},[Ce.required,Yt(c.isPossibleNumber)]))}),this.prefillFromMarketo()}ngOnDestroy(){this.consentSubscription&&this.consentSubscription.unsubscribe(),this.qualifiedObserverService?.stopObserver()}setPhoneInputPlaceholder(){this.phoneNumberLoader().then(({getExampleNumber:e,examples:i})=>{tr(this.platformId)&&this.phoneInputPlaceholder.set(e(this.formVisualSettings()?.countryCode,i).formatInternational())})}setServerErrorMessage(e){e&&(this.serverErrorMessage=this.errorList().server[e.status]||this.errorList().server.common)}setClientErrorMessage(e,i=e){let t=this.getInputByName(e),a=this.errorList();if(!t||!t.errors)return``;if(e===this.formInputs.emailInputName){if(t.errors.required)return a.inputs.email.errorRequired;if(t.errors.isEmailInvalid)return a.inputs.email.errorWrongFormat;if(t.errors.isNotBusinessEmail)return a.inputs.email.errorBusinessEmail;if(t.errors.isDevEmailInvalid)return`Use test email format. "@team.wrike.com"`}if(e===this.formInputs.phoneInputName){if(t.errors.required)return t.dirty?a.inputs[e].errorWrongFormat:a.inputs[e].errorRequired;if(t.errors.isPhonePossible)return a.inputs.phone.errorWrongFormat}else if(t.errors.hasOnlyWhitespaces||t.errors.required)return a.inputs[i].errorRequired;return``}getInputByName(e){return this.form.get(e)}getErrorMessage(e,i){let t=this.formInputs[`${e}InputName`];return this.setClientErrorMessage(t,i??t)}prepareMktoSendingData(e){let i=this.localeService.getPathToLocaleSlug(),t=Qt(e.name,i);return r(r(r({},r(s(r({FirstName:t.firstName,LastName:t.lastName,Email:e.email,Phone:e.phone,CountryCode:e.countryCode,Department:e.department,ga_cookies:this.cookieService.get(`_ga`),form_type:`contact_sales`},typeof e.privacyEmail<`u`&&{techemailme:e.privacyEmail}),{techcallme:!0}),typeof e.emailTrackingConsent<`u`&&{["Email_Tracking_Consent__c"]:St(!!e.emailTrackingConsent)})),Object.hasOwn(e,`jobLevel`)&&{Title:e.jobLevel??``}),Object.hasOwn(e,`marketingNotes`)&&{Marketo_Marketing_Notes__c:e.marketingNotes??``})}
3submitForm(){this.isResendRedirectTriggered=!1;for(let e in this.formInputs)this.getInputByName(this.formInputs[e])&&!this.getInputByName(this.formInputs[e]).touched&&this.getInputByName(this.formInputs[e]).markAsTouched();this.form.valid&&(this.initQMessengerObserver(),this.formState=U.Loading,this.contactSalesSettings={email:this.getInputByName(this.formInputs.emailInputName).value,name:this.getInputByName(this.formInputs.fullNameInputName).value,phone:this.getInputByName(this.formInputs.phoneInputName).value,department:this.getInputByName(this.formInputs.departmentInputName).value,type:this.type(),subType:this.subtype(),countryCode:this.formVisualSettings()?.countryCode},this.contactSalesSettings.jobLevel=this.getInputByName(this.formInputs.jobLevelInputName)?.value,this.contactSalesSettings.marketingNotes=this.getInputByName(this.formInputs.marketingNotesInputName)?.value,this.contactSalesService.sendContactSalesRequest(this.contactSalesSettings,this.environment(),this.trackingParams()).subscribe(()=>{this.showEmailCheckbox&&this.setPrivacyCookie(`wrike_tech_email_me_confirmed`,this.getInputByName(this.formInputs.privacyEmailInputName).value),this.setPrivacyCookie(`wrike_tech_call_me_confirmed`,`true`),this.formState=U.Sent,this.formSentSuccessful.emit(!0);let e=this.marketoPlacementRef(),i=e?.nativeElement,t=i?.querySelector(`#mktoForm_${this.marketoId}`)??null;i&&t&&this.renderer.removeChild(i,t);let a=this.mktoService.createMarketoForm(this.marketoId);this.renderer.appendChild(e.nativeElement,a),this.mktoService.addAsyncScript(`https://go.wrike.com/js/forms2/js/forms2.min.js`,e.nativeElement,this.renderer).then(()=>{this.isEuVisitor()?this.showEmailCheckbox&&this.formInputs.privacyEmailInputName&&(this.contactSalesSettings.privacyEmail=this.getInputByName(this.formInputs.privacyEmailInputName).value):this.contactSalesSettings.privacyEmail=!0,this.showEmailTrackingConsentCheckbox&&(this.contactSalesSettings.emailTrackingConsent=this.getInputByName(this.formInputs.emailTrackingConsentInputName).value),this.mktoService.init({environment:this.environment()}),this.mktoService.createMarketoPromiseWithSendingData(this.prepareMktoSendingData(this.contactSalesSettings),this.isCookieAccepted&&this.qualifiedFormExperienceId(),this.stopRedirect()?null:this.getLocalisedFollowupUrl()).then(()=>{this.renderer.removeChild(this.marketoPlacementRef().nativeElement,a),!this.stopRedirect()&&(!this.qualifiedFormExperienceId()||!this.isCookieAccepted)&&this.redirectToResendOnce()})})},e=>{this.setServerErrorMessage(e),this.formState=U.HasServerError}))}getPrivacyCookies(){this.showEmailCheckbox=this.isEuVisitor()&&(!this.cookieService.get(`wrike_tech_email_me_confirmed`)||this.cookieService.get(`wrike_tech_email_me_confirmed`)===`false`)}setPrivacyCookie(e,i){this.cookieService.set(e,String(i),{path:`/`,domain:k(),expires:400})}setupConsentSubscription(){this.consentSubscription=this.personalDataProtectionService.consent$.subscribe(e=>{this.isCookieAccepted=!!e[I.Functional]&&!!e[I.Advertising]})}addDevEmailValidator(){return this.envName===`dev`||this.envName===`qa`?Ir():null}initQMessengerObserver(){this.stopRedirect()||!this.qualifiedFormExperienceId()||this.qualifiedObserverService.initObserver((e,i)=>{this.onQMessengerStateChange(e,i)})}onQMessengerStateChange(e,i){if(!this.isCookieAccepted)return;let t=e===`removed`,a=e===`attribute`&&i.attribute===`class`&&i.newValue?.includes(`qlfd-not-full-screen`),c=e===`general`&&i.reason===`iframe_not_found`;(t||a||c)&&this.redirectToResendOnce()}redirectToResendOnce(){this.stopRedirect()||this.isResendRedirectTriggered||(this.isResendRedirectTriggered=!0,this.contactSalesService.redirectToResend(this.environment(),this.redirectUrl()))}async prefillFromMarketo(){if(tr(this.platformId))try{let e=await this.contactSalesPrefillService.fetchPrefillValues({formId:this.marketoId});if(this.marketoPrefill=e,!e)return;this.scheduleApplyPrefill(e)}catch(e){console.error(`ContactSalesFormComponent.prefillFromMarketo()`,e)}}scheduleApplyPrefill(e){if(this.pendingPrefillToApply=e,this.prefillApplyInFlight)return;let i=async()=>{for(;this.pendingPrefillToApply;){let t=this.pendingPrefillToApply;this.pendingPrefillToApply=null,await this.applyPrefillToForm(t)}};this.prefillApplyInFlight=i().catch(t=>{console.error(`ContactSalesFormComponent.applyPrefillToForm()`,t)}).finally(()=>{this.prefillApplyInFlight=null})}async applyPrefillToForm(e){let i=e.Email,t=e.Phone,a=e.FirstName,c=e.LastName,d=e.Department,m=e.job_bucket_level,E=(T,z)=>{if(!T||T.value)return!1;let A=(z??``).toString();return A?(T.setValue(A),T.markAsDirty(),T.markAsTouched(),!0):!1};E(this.formControls.email,i);let D=(t??``).toString();if(D)try{let{parsePhoneNumberFromString:T}=await this.phoneNumberLoader(),A=T(D,this.formVisualSettings()?.countryCode||e.CountryCode||`US`),xe=A?A.formatInternational():D;E(this.formControls.phone,xe)}catch{E(this.formControls.phone,D)}let Q=`${a??``} ${c??``}`.trim();Q&&E(this.formControls.fullName,Q),E(this.formControls.department,d),E(this.formControls.jobLevel,m);let Y=this.form.get(this.formInputs.emailTrackingConsentInputName);this.showEmailTrackingConsentCheckbox&&Y&&`Email_Tracking_Consent__c`in e&&Y.setValue(be$1(e[`Email_Tracking_Consent__c`])),this.form.updateValueAndValidity()}static{this.ɵfac=function(i){return new(i||o)}}static{this.ɵcmp=Yw({type:o,selectors:[[`website-contact-sales-form`]],viewQuery:function(i,t){i&1&&dy(t.marketoPlacementRef,ui,5),i&2&&j_()},inputs:{errorList:[1,`errorList`],formVisualSettings:[1,`formVisualSettings`],isEuVisitor:[1,`isEuVisitor`],type:[1,`type`],subtype:[1,`subtype`],environment:[1,`environment`],trackingParams:[1,`trackingParams`],stopRedirect:[1,`stopRedirect`],businessValidation:[1,`businessValidation`],qual
3ifiedFormExperienceId:[1,`qualifiedFormExperienceId`],colorScheme:[1,`colorScheme`],redirectUrl:[1,`redirectUrl`]},outputs:{formSentSuccessful:`formSentSuccessful`},decls:31,vars:65,consts:[[`marketoPlacement`,``],[`data-application`,`contact-sales`,`websiteTheme`,``,`waitForAsyncValidators`,``,1,`form`,3,`ngSubmit`,`colorScheme`,`formGroup`],[`data-application`,`contact-sales-name-input`,1,`form-control`],[3,`colorScheme`,`validationStatus`,`formControlName`,`placeholderText`,`labelText`],[1,`form-control__validation`],[`data-application`,`contact-sales-email-input`,1,`form-control`],[3,`type`,`colorScheme`,`validationStatus`,`formControlName`,`placeholderText`,`labelText`],[`data-application`,`contact-sales-email-input-error`,1,`form-control__validation`],[`data-application`,`contact-sales-phone-input`,1,`form-control`],[3,`type`,`colorScheme`,`countryCode`,`validationStatus`,`formControlName`,`placeholderText`,`labelText`],[`data-application`,`contact-sales-department-input`,1,`form-control`],[`data-application`,`contact-sales-jobLevelText-input`,1,`form-control`],[1,`form-control`],[3,`colorScheme`,`validationStatus`,`hideAdditionalItem`,`formControlName`,`placeholderText`,`labelText`],[`websiteTheme`,``,1,`form-control__checkboxes-intro`,3,`colorScheme`],[1,`form-control__title`,3,`innerHTML`],[1,`form-control__consent-text`],[1,`form-control__checkbox`],[`website-button-v3`,``,3,`rightIcon`,`hasAction`,`hasText`,`disabled`,`buttonStyleProperties`],[`rightIcon`,``,`width`,`20`,`height`,`20`,`viewBox`,`0 0 20 20`,`fill`,`none`,`xmlns`,`http://www.w3.org/2000/svg`,1,`trial-form__icon--loading`],[`rightIcon`,``,`width`,`20`,`height`,`20`,`viewBox`,`0 0 20 20`,`fill`,`none`,`xmlns`,`http://www.w3.org/2000/svg`],[1,`form-control__validation`,`form-control__validation--server`],[1,`marketo-form__placement`],[`data-application`,`form-gdpr-email-checkbox`,3,`colorScheme`,`formControlName`,`checkboxText`],[`data-application`,`form-email-tracking-consent-checkbox`,3,`colorScheme`,`formControlName`,`checkboxText`],[`d`,`M19 9.74V10a9 9 0 11-9-9v0`,`stroke`,`currentColor`,`stroke-width`,`2`,`stroke-miterlimit`,`10`],[`d`,`M2 9.75l5.5 5.5L18 4.75`,`stroke`,`currentColor`,`stroke-width`,`2`,`stroke-linejoin`,`round`],[1,`form-control__validation-text`]],template:function(i,t){i&1&&(ds(0,`form`,1),sy(`ngSubmit`,function(){return t.submitForm()}),ds(1,`div`,2),Qm(2,`website-input-v2`,3),sw(),u_(3,gi,2,1,`div`,4),ju(),ds(4,`div`,5),Qm(5,`website-input-v2`,6),sw(),u_(6,fi,2,1,`div`,7),ju(),ds(7,`div`,8),Qm(8,`website-input-v2`,9),sw(),u_(9,bi,2,1,`div`,4),ju(),ds(10,`div`,10),Qm(11,`website-input-v2`,3),sw(),u_(12,_i,2,1,`div`,4),ju(),ds(13,`div`,11),Qm(14,`website-input-v2`,3),sw(),u_(15,vi,2,1,`div`,4),ju(),ds(16,`div`,12),Qm(17,`website-textarea`,13),sw(),ju(),ds(18,`div`,12)(19,`div`,14),Qm(20,`div`,15),u_(21,Ci,2,1,`p`,16),ju(),u_(22,Si,2,3,`div`,17),u_(23,xi,2,3,`div`,17),ju(),ds(24,`button`,18),uM(25),u_(26,Mi,2,0,`:svg:svg`,19),u_(27,ki,2,0,`:svg:svg`,20),ju()(),u_(28,Pi,3,1,`div`,21),Qm(29,`div`,22,0)),i&2&&(zm(`colorScheme`,t.colorScheme())(`formGroup`,t.form),oC(),yy(`form-control--invalid`,t.invalidStates.fullName),oC(),zm(`colorScheme`,t.colorScheme())(`validationStatus`,t.validationStates.fullName)(`formControlName`,t.formInputs.fullNameInputName)(`placeholderText`,t.formVisualSettings().inputs.fullName.placeholder)(`labelText`,t.formVisualSettings().inputs.fullName.label),cw(),oC(),d_(t.invalidStates.fullName?3:-1),oC(),yy(`form-control--invalid`,t.invalidStates.email),oC(),zm(`type`,`email`)(`colorScheme`,t.colorScheme())(`validationStatus`,t.validationStates.email)(`formControlName`,t.formInputs.emailInputName)(`placeholderText`,t.formVisualSettings().inputs.email.placeholder)(`labelText`,t.formVisualSettings().inputs.email.label),cw(),oC(),d_(t.invalidStates.email?6:-1),oC(),yy(`form-control--invalid`,t.invalidStates.phone),oC(),zm(`type`,`tel`)(`colorScheme`,t.colorScheme())(`countryCode`,t.formVisualSettings().countryCode)(`validationStatus`,t.validationStates.phone)(`formControlName`,t.formInputs.phoneInputName)(`placeholderText`,t.phoneInputPlaceholder())(`labelText`,t.formVisualSettings().inputs.phone.label),cw(),oC(),d_(t.invali
3dStates.phone?9:-1),oC(),yy(`form-control--invalid`,t.invalidStates.department),oC(),zm(`colorScheme`,t.colorScheme())(`validationStatus`,t.departmentInputValidationStatus)(`formControlName`,t.formInputs.departmentInputName)(`placeholderText`,``)(`labelText`,t.formVisualSettings().inputs.department.label),cw(),oC(),d_(t.invalidStates.department?12:-1),oC(),yy(`form-control--invalid`,t.invalidStates.jobLevelText),oC(),zm(`colorScheme`,t.colorScheme())(`validationStatus`,t.validationStates.jobLevelText)(`formControlName`,t.formInputs.jobLevelInputName)(`placeholderText`,t.formVisualSettings().inputs.jobLevelText.placeholder)(`labelText`,t.formVisualSettings().inputs.jobLevelText.label),cw(),oC(),d_(t.invalidStates.jobLevelText?15:-1),oC(2),zm(`colorScheme`,t.colorScheme())(`validationStatus`,t.validationStates.marketingNotes??t.validationStatusMap.Pending)(`hideAdditionalItem`,!0)(`formControlName`,t.formInputs.marketingNotesInputName)(`placeholderText`,t.formVisualSettings().inputs.marketingNotes.placeholder)(`labelText`,t.formVisualSettings().inputs.marketingNotes.label),cw(),oC(2),zm(`colorScheme`,t.colorScheme()),oC(),zm(`innerHTML`,t.formVisualSettings().checkboxesTitle,fT),oC(),d_(t.formVisualSettings().checkboxesConsentText&&t.isEuVisitorFromCookie?21:-1),oC(),d_(t.showEmailCheckbox?22:-1),oC(),d_(t.showEmailTrackingConsentCheckbox?23:-1),oC(),zm(`rightIcon`,t.formState===t.formStateMap.Loading||t.formState===t.formStateMap.Sent)(`hasAction`,t.formState===t.formStateMap.Loading||t.formState===t.formStateMap.Sent)(`hasText`,t.formState!==t.formStateMap.Loading&&t.formState!==t.formStateMap.Sent)(`disabled`,t.formState===t.formStateMap.Loading||t.formState===t.formStateMap.Sent)(`buttonStyleProperties`,t.primaryButtonStyleProperties()),oC(),Wu(` `,t.formVisualSettings().buttonSendText,` `),oC(),d_(t.formState===t.formStateMap.Loading?26:-1),oC(),d_(t.formState===t.formStateMap.Sent?27:-1),oC(),d_(t.formState===t.formStateMap.HasServerError?28:-1))},dependencies:[rt,Hn,it$1,Gn,ai$2,Zn,be,Ot,Me,Ve,Ee,Dt,d$2],styles:[`.form-control__validation[_ngcontent-%COMP%]{color:var(--%NS%website-theme-text-primary-color);font-size:var(--%NS%website-notes-font-size);font-weight:var(--%NS%website-notes-font-weight);line-height:var(--%NS%website-notes-line-height);letter-spacing:var(--%NS%website-notes-letter-spacing);font-family:inherit;word-break:break-word;margin-top:8px;color:#fc5367}.form-control__validation--tooltip[_ngcontent-%COMP%]{position:absolute;background-color:#fc5367;padding:12px 16px;color:#fff;border-radius:4px;top:calc(100% + 8px);left:0}.form-control__validation--%NS%tooltip[_ngcontent-%COMP%]:before{background-color:inherit;content:"";width:10px;height:10px;border-radius:2px 0 0;position:absolute;top:-4px;left:10px;transform:rotate(45deg)}.form-control__validation--orange[_ngcontent-%COMP%]{color:#eb7d00}.form-control__validation--orange.form-control__validation--tooltip[_ngcontent-%COMP%]{background-color:#ffa200;color:#fff}.form-control__validation[_ngcontent-%COMP%]     a{color:inherit;border-bottom-color:inherit}.form-control__validation[_ngcontent-%COMP%]     a:hover, .form-control__validation[_ngcontent-%COMP%]     a:active, .form-control__validation[_ngcontent-%COMP%]     a:focus:not(:active), .form-control__validation[_ngcontent-%COMP%]     a:focus-visible{color:inherit;border-bottom-color:inherit}.website-theme--dark[_ngcontent-%COMP%]   .form-control__validation[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%]   .form-control[_ngcontent-%COMP%] + .form-control[_ngcontent-%COMP%]{margin-top:var(--%NS%website-spacing-1x)}[_nghost-%COMP%]   .form-control--invalid[_ngcontent-%COMP%] + .form-control[_ngcontent-%COMP%]{margin-top:var(--%NS%website-spacing-1x)}[_nghost-%COMP%]   button[website-button-v3][_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   .form-control[_ngcontent-%COMP%] + button[website-button-v3][_ngcontent-%COMP%]{margin-top:var(--%NS%website-spacing-2x)}[_nghost-%COMP%]   .form-control--invalid[_ngcontent-%COMP%] + button[website-button-v3][_ngcontent-%COMP%]{margin-top:var(--%NS%website-spacing-15x)}[_nghost-%COMP%]   form[_ngcontent-%COMP%] + .form-control__validation[_ngcontent-%COMP%]{margin-top:var(--%NS%web
3site-spacing-05x)}[_nghost-%COMP%]   .form-control__title[_ngcontent-%COMP%]{color:var(--%NS%website-theme-text-primary-color);font-size:var(--%NS%website-notes-font-size);font-weight:var(--%NS%website-notes-font-weight);line-height:var(--%NS%website-notes-line-height);letter-spacing:var(--%NS%website-notes-letter-spacing);color:var(--%NS%website-theme-text-secondary-color)}[_nghost-%COMP%]   .form-control__consent-text[_ngcontent-%COMP%]{color:var(--%NS%website-theme-text-primary-color);font-size:var(--%NS%website-notes-font-size);font-weight:var(--%NS%website-notes-font-weight);line-height:var(--%NS%website-notes-line-height);letter-spacing:var(--%NS%website-notes-letter-spacing);margin:0 0 var(--%NS%website-spacing-1x);color:var(--%NS%website-theme-text-secondary-color)}[_nghost-%COMP%]   .form-control__title[_ngcontent-%COMP%]:not(:last-child){margin-bottom:var(--%NS%website-spacing-1x)}[_nghost-%COMP%]   .form-control__checkbox[_ngcontent-%COMP%]:not(:last-of-type){margin-bottom:var(--%NS%website-spacing-1x)}[_nghost-%COMP%]   [website-button-v3][_ngcontent-%COMP%]   .trial-form__icon--loading[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin 1s linear infinite}@keyframes _ngcontent-%COMP%_spin{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}
4/*# sourceMappingURL=contact-sales-form.component-FCWCBS4P.css.map */`]})}}return o})();var Xt=(()=>{class o extends d$1{constructor(){super(...arguments),this.modalControl=v(X,{optional:!0}),this.ctx=this.modalControl?.contextData,this.COMPONENT_NAME=`contact-sales-form-in-popup`,this.colorScheme=$H(this.ctx?.colorScheme??`white`),this.errorList=$H(this.ctx?.errorList),this.formVisualSettings=$H(this.ctx?.formVisualSettings),this.contactSalesFormInPopupHeader=$H(this.ctx?.contactSalesFormInPopupHeader),this.contactSalesFormInPopupSubheader=$H(this.ctx?.contactSalesFormInPopupSubheader),this.isEuVisitor=$H(this.ctx?.isEuVisitor),this.type=$H(this.ctx?.type),this.subtype=$H(this.ctx?.subType),this.environment=$H(this.ctx?.environment),this.trackingParams=$H(this.ctx?.trackingParams),this.businessValidation=$H(this.ctx?.businessValidation??!1),this.qualifiedFormExperienceId=$H(this.ctx?.qualifiedFormExperienceId),this.redirectUrl=$H(this.ctx?.redirectUrl)}static{this.ɵfac=(()=>{let e;return function(t){return(e||(e=WI(o)))(t||o)}})()}static{this.ɵcmp=Yw({type:o,selectors:[[`website-contact-sales-form-in-popup`]],inputs:{colorScheme:[1,`colorScheme`],errorList:[1,`errorList`],formVisualSettings:[1,`formVisualSettings`],contactSalesFormInPopupHeader:[1,`contactSalesFormInPopupHeader`],contactSalesFormInPopupSubheader:[1,`contactSalesFormInPopupSubheader`],isEuVisitor:[1,`isEuVisitor`],type:[1,`type`],subtype:[1,`subtype`],environment:[1,`environment`],trackingParams:[1,`trackingParams`],businessValidation:[1,`businessValidation`],qualifiedFormExperienceId:[1,`qualifiedFormExperienceId`],redirectUrl:[1,`redirectUrl`]},features:[xm],decls:3,vars:13,consts:[[`data-application`,`contact-form-title`,1,`contact-sales-form-popup__header`,3,`innerHTML`],[`data-application`,`contact-form-subtitle`,1,`contact-sales-form-popup__subheader`,3,`innerHTML`],[3,`isEuVisitor`,`subtype`,`trackingParams`,`colorScheme`,`environment`,`type`,`errorList`,`formVisualSettings`,`businessValidation`,`redirectUrl`,`qualifiedFormExperienceId`]],template:function(i,t){i&1&&Qm(0,`h4`,0)(1,`p`,1)(2,`website-contact-sales-form`,2),i&2&&(zm(`innerHTML`,t.contactSalesFormInPopupHeader(),fT),oC(),zm(`innerHTML`,t.contactSalesFormInPopupSubheader(),fT),oC(),zm(`isEuVisitor`,t.isEuVisitor())(`subtype`,t.subtype())(`trackingParams`,t.trackingParams())(`colorScheme`,t.colorScheme())(`environment`,t.environment())(`type`,t.type())(`errorList`,t.errorList())(`formVisualSettings`,t.formVisualSettings())(`businessValidation`,t.businessValidation())(`redirectUrl`,t.redirectUrl())(`qualifiedFormExperienceId`,t.qualifiedFormExperienceId()))},dependencies:[Jt],styles:[`[_nghost-%COMP%]   .contact-sales-form-popup__header[_ngcontent-%COMP%]{text-align:center;margin:0 0 20px;color:#162136;font-feature-settings:"ss01" on,"ss02" on,"ss03" on,"ss04" on,"ss06" on,"tnum" on;
4font-weight:var(--%NS%website-heading-3-font-weight);font-size:var(--%NS%website-heading-3-font-size--mobile);line-height:var(--%NS%website-heading-3-line-height)}@media(min-width:768px){[_nghost-%COMP%]   .contact-sales-form-popup__header[_ngcontent-%COMP%]{font-size:var(--%NS%website-heading-3-font-size--tablet)}}[_nghost-%COMP%]   .contact-sales-form-popup__subheader[_ngcontent-%COMP%]{text-align:center;margin:0 0 36px;color:#2b3a57;font-weight:var(--%NS%website-subtitle-font-weight);font-size:var(--%NS%website-subtitle-font-size--mobile);line-height:var(--%NS%website-subtitle-line-height)}@media(min-width:768px){[_nghost-%COMP%]   .contact-sales-form-popup__subheader[_ngcontent-%COMP%]{font-size:var(--%NS%website-subtitle-font-size--tablet)}}
5/*# sourceMappingURL=contact-sales-form-in-popup.component-OAD5EZJT.css.map */`]})}}return o})();function Ti(o,u){if(o&1&&Qm(0,`h4`,0),o&2)zm(`innerHTML`,A_().trialFormInPopupTitle(),fT)}function Ii(o,u){if(o&1&&Qm(0,`p`,1),o&2)zm(`innerHTML`,A_().trialFormInPopupSubtitle(),fT)}var Zt=(()=>{class o extends d$1{constructor(){super(...arguments),this.modalControl=v(X,{optional:!0}),this.ctx=this.modalControl?.contextData,this.COMPONENT_NAME=`trial-form-in-popup`,this.trialFormSendingData=$H(this.ctx?.trialFormSendingData),this.errorList=$H(this.ctx?.errorList),this.environment=$H(this.ctx?.environment),this.trialFormInPopupTitle=$H(this.ctx?.trialFormInPopupTitle),this.trialFormInPopupSubtitle=$H(this.ctx?.trialFormInPopupSubtitle),this.buttonSendText=$H(this.ctx?.buttonSendText||`Get started for free`),this.inputLabelText=$H(this.ctx?.inputLabelText||`Business email`),this.inputPlaceholderText=$H(this.ctx?.inputPlaceholderText||`[email protected]`),this.isErrorInTooltip=$H(!1),this.disclaimerOptions=$H(this.ctx?.disclaimerOptions),this.emailValidation=$H(this.ctx?.emailValidation??{business:!1,student:!1}),this.hasGoogleAuth=$H(this.ctx?.hasGoogleAuth||!1),this.hasAnimatedButton=$H(this.ctx?.hasAnimatedButton||!1),this.googleButtonText=$H(this.ctx?.googleButtonText),this.colorScheme=$H(this.ctx?.colorScheme||`white`)}static{this.ɵfac=(()=>{let e;return function(t){return(e||(e=WI(o)))(t||o)}})()}static{this.ɵcmp=Yw({type:o,selectors:[[`website-trial-form-in-popup`]],inputs:{trialFormSendingData:[1,`trialFormSendingData`],errorList:[1,`errorList`],environment:[1,`environment`],trialFormInPopupTitle:[1,`trialFormInPopupTitle`],trialFormInPopupSubtitle:[1,`trialFormInPopupSubtitle`],buttonSendText:[1,`buttonSendText`],inputLabelText:[1,`inputLabelText`],inputPlaceholderText:[1,`inputPlaceholderText`],isErrorInTooltip:[1,`isErrorInTooltip`],disclaimerOptions:[1,`disclaimerOptions`],emailValidation:[1,`emailValidation`],hasGoogleAuth:[1,`hasGoogleAuth`],hasAnimatedButton:[1,`hasAnimatedButton`],googleButtonText:[1,`googleButtonText`],colorScheme:[1,`colorScheme`]},features:[xm],decls:3,vars:15,consts:[[`data-application`,`trial-form-title`,1,`trial-form-popup__header`,3,`innerHTML`],[`data-application`,`trial-form-subtitle`,1,`trial-form-popup__subheader`,3,`innerHTML`],[3,`colorScheme`,`trialFormSendingData`,`buttonSendText`,`inputPlaceholderText`,`inputLabelText`,`errorList`,`environment`,`formType`,`disclaimerOptions`,`emailValidation`,`hasGoogleAuth`,`hasAnimatedButton`,`googleButtonText`]],template:function(i,t){i&1&&(u_(0,Ti,1,1,`h4`,0),u_(1,Ii,1,1,`p`,1),Qm(2,`website-trial-form-v2`,2)),i&2&&(d_(t.trialFormInPopupTitle()?0:-1),oC(),d_(t.trialFormInPopupSubtitle()?1:-1),oC(),zm(`colorScheme`,t.colorScheme())(`trialFormSendingData`,t.trialFormSendingData())(`buttonSendText`,t.buttonSendText())(`inputPlaceholderText`,t.inputPlaceholderText())(`inputLabelText`,t.inputLabelText())(`errorList`,t.errorList())(`environment`,t.environment())(`formType`,`block`)(`disclaimerOptions`,t.disclaimerOptions())(`emailValidation`,t.emailValidation())(`hasGoogleAuth`,t.hasGoogleAuth())(`hasAnimatedButton`,t.hasAnimatedButton())(`googleButtonText`,t.googleButtonText()))},dependencies:[Pa],styles:[`[_nghost-%COMP%]   .trial-form-popup__header[_ngcontent-%COMP%]{text-align:center;margin:0 0 20px;color:#162136;font-feature-settings:"ss01" on,"ss02" on,"ss03" on,"ss04" on,"ss06" on,"tnum" on;
5font-weight:var(--%NS%website-heading-3-font-weight);font-size:var(--%NS%website-heading-3-font-size--mobile);line-height:var(--%NS%website-heading-3-line-height)}@media(min-width:768px){[_nghost-%COMP%]   .trial-form-popup__header[_ngcontent-%COMP%]{font-size:var(--%NS%website-heading-3-font-size--tablet)}}[_nghost-%COMP%]   .trial-form-popup__subheader[_ngcontent-%COMP%]{text-align:center;margin:0 0 36px;color:#2b3a57;font-weight:var(--%NS%website-subtitle-font-weight);font-size:var(--%NS%website-subtitle-font-size--mobile);line-height:var(--%NS%website-subtitle-line-height)}@media(min-width:768px){[_nghost-%COMP%]   .trial-form-popup__subheader[_ngcontent-%COMP%]{font-size:var(--%NS%website-subtitle-font-size--tablet)}}[_nghost-%COMP%]     .form-control__disclaimer{width:100%!important}[_nghost-%COMP%]     .form-control__disclaimer-text{width:100%!important}
6/*# sourceMappingURL=trial-form-in-popup.component-RS334JGF.css.map */`]})}}return o})();var ei=new M(`DEFAULT_TRIAL_FORM_OPTIONS`);var ti=new M(`DEFAULT_CONTACT_SALES_FORM_OPTIONS`);var ii=(()=>{class o{constructor(){this.trialDefaultFormOptions=v(ei),this.contactSalesDefaultFormOptions=v(ti),this.isEuVisitor=v(U$1)}prepareTrialFormParams(e){return{trialFormSendingData:this.prepareRegistrationSettings(e.params),buttonSendText:e.buttonSendText||this.trialDefaultFormOptions.buttonSendText,inputLabelText:e.inputLabel||this.trialDefaultFormOptions.inputLabelText,inputPlaceholderText:e.inputPlaceholder||this.trialDefaultFormOptions.inputPlaceholderText,emailValidation:e.params?.emailValidation||this.trialDefaultFormOptions.emailValidation,hasGoogleAuth:e.params?.hasGoogleAuth||this.trialDefaultFormOptions.hasGoogleAuth,hasAnimatedButton:e.params?.hasAnimatedButton||this.trialDefaultFormOptions.hasAnimatedButton,animatedButtonType:e.params?.animatedButtonType||this.trialDefaultFormOptions.animatedButtonType,hasWorkspaceBackground:`hasWorkspaceBackground`in e.params&&e.params?.hasWorkspaceBackground,environment:this.trialDefaultFormOptions.environment,errorList:this.trialDefaultFormOptions.errorList,googleButtonText:e.params?.customGoogleLinkText?{business:e.params.customGoogleLinkText,nonBusiness:e.params.customGoogleLinkText}:this.trialDefaultFormOptions.googleButtonText,popupBottomImageUrl:e.params?.popupBottomImageUrl,formType:e?.formType}}prepareGoogleFormParams(e){return{trialFormSendingData:this.prepareRegistrationSettings(e.params),buttonSendText:e.buttonSendText||this.trialDefaultFormOptions.buttonSendText,environment:this.trialDefaultFormOptions.environment,emailValidation:e.params?.emailValidation||this.trialDefaultFormOptions.emailValidation,errorList:this.trialDefaultFormOptions.errorList}}prepareContactSalesFormParams(e,i){return{colorScheme:i,errorList:this.contactSalesDefaultFormOptions.errorList,formVisualSettings:s(r({},this.contactSalesDefaultFormOptions.formVisualSettings),{buttonSendText:e.buttonSendText??this.contactSalesDefaultFormOptions.formVisualSettings.buttonSendText}),isEuVisitor:this.isEuVisitor,type:e.type,subType:e.formSubtype,environment:this.contactSalesDefaultFormOptions.environment,trackingParams:{subtype:e.params?.subtype,form:e.params?.form,content:e.params?.content},businessValidation:e.params?.businessValidation||this.contactSalesDefaultFormOptions.businessValidation,qualifiedFormExperienceId:e.qualifiedFormExperienceId,popupBottomImageUrl:e.params?.popupBottomImageUrl,redirectUrl:e.customThankYouLink}}prepareRegistrationSettings(e){return s(r({},e),{addons:e?.addon?[e.addon]:void 0})}static{this.ɵfac=function(i){return new(i||o)}}static{this.ɵprov=Y({token:o,factory:o.ɵfac,providedIn:`root`})}}return o})();var Rn=(()=>{class o{constructor(){this.marketoParamsService=v(xi$1),this.formRegParamsParserService=v(ii),this.modalService=v(Ft),this.videoService=v(V),this.modalOptions={withCloseOnOverlayClick:!0,withCloseOnEscape:!0,withFocusTrap:!0,hideInitialFocus:!0,withAnimation:!0},this.errorsSubject=new ur([]),this.errors$=this.errorsSubject.asObservable()}getCallToActionLinkText(e,i){return i?.isShinyAnimatedButton&&i?.priority===`primary`?`<i></i> `+e:e}parseDisclaimerOptions(e,i){let t=!1,a,c=new Array(e.length);for(let[d,m]of e.entries())(m.content===`buttonLink`||m.content===`trialGoogleForm`)&&!t&&m.buttonOptions.disclaimerText&&(a=m.buttonOptions.disclaimerText,t=!0),m.content===`trialForm`&&!t&&typeof m.disclaimerOptions<`u`&&(c[d]=this.prepareDisclaimerOptions(m.disclaimerOptions,i),t=!0),(m.content===`trialPopup`||m.content===`contactSalesPopup`||m.content===`marketoForm`)&&(!t&&m.buttonOptions.disclaimerText&&(a=m.buttonOptions.disclaimerText,t=!0),m.content===`trialPopup`&&typeof m.disclaimerOptions<`u`&&(c[d]=this.prepareDisclaimerOptionsWithDefaultTheme(m.disclaimerOptions,i)));return{disclaimerSingleText:a,disclaimerOptions:c}}onOpenPopup(e,i,t={text:``,isWithIcon:!1,iconType:Ho.Wrike},a=`white`){return this.modalService.open(this.getModalFormComponent(e),this.getModalOptions(i),this.getModalContextData(e,i,a,t))}onVideoOpen({wistiaId:e,youtubeId:i,autoplay:t=!1,ctaFields:a,callToActions:c}){this.videoService.openVideoModal({wistiaId:e,youtubeId:i,autoplay:t,ctaFields:a,callToActions:c})}getFullMarketoFormOptions(e,i,t,a=`white`){return r({},this.marketoParamsService.getMarketoParams({title:i,subtitle:t,formId:e.formId,trackingParams:e.params,popupBottomImageUrl:e.params.popupBottomImageUrl,colorScheme:a,thankYouState:{t
6itle:e.thankYouState.title,externalLinkText:e.thankYouState.externalLinkText,externalLinkUrl:e.thankYouState.externalLinkUrl,contentLinkText:e.thankYouState.contentLinkText||``,contentLinkUrl:e.thankYouState.contentLinkUrl||``}}))}getFullTrialFormOptions(e,i,t){return s(r({},this.formRegParamsParserService.prepareTrialFormParams(e)),{popupTitle:i,popupSubtitle:t})}getFullFormOptions(e,i=`white`){switch(e.content){case`marketoForm`:return this.getFullMarketoFormOptions(e.formOptions,e.ctaFields.popupTitle||e.ctaFields.title,e.ctaFields.popupSubtitle||e.ctaFields.subtitle,i);case`marketoFormExit`:case`marketoInlineFooterForm`:return this.getFullMarketoFormOptions(e.formOptions,null,null,i);case`trialPopup`:return this.getFullTrialFormOptions(e.formOptions,e.ctaFields.popupTitle,e.ctaFields.popupSubtitle);case`trialForm`:return this.formRegParamsParserService.prepareTrialFormParams(e.formOptions);case`trialGoogleForm`:return this.formRegParamsParserService.prepareGoogleFormParams(e.formOptions);case`contactSalesPopup`:return s(r({},this.formRegParamsParserService.prepareContactSalesFormParams(e.formOptions,i)),{contactSalesFormInPopupTitle:e.ctaFields.popupTitle,contactSalesFormInPopupText:e.ctaFields.popupSubtitle});case`contactSalesForm`:return r({},this.formRegParamsParserService.prepareContactSalesFormParams(e.formOptions,i));default:return{}}}setErrors(e){this.errorsSubject.next(e.filter(Boolean))}clearErrors(){this.errorsSubject.next([])}getModalContextData(e,i,t=`white`,a){switch(e){case`trialPopup`:return this.getTrialFormModalContextData(i,a,t);case`contactSalesPopup`:return this.getContactSalesFormModalContextData(i,t);case`marketoForm`:case`marketoFormExit`:case`marketoInlineFooterForm`:return s(r({},i),{colorScheme:t});default:return i}}getTrialFormModalContextData(e,i,t=`white`){return{trialFormInPopupTitle:e.popupTitle,trialFormInPopupSubtitle:e.popupSubtitle,trialFormSendingData:e.trialFormSendingData,errorList:e.errorList,environment:e.environment,buttonSendText:e.buttonSendText,inputLabelText:e.inputLabelText,inputPlaceholderText:e.inputPlaceholderText,emailValidation:e.emailValidation,hasGoogleAuth:e.hasGoogleAuth,googleButtonText:e.googleButtonText,hasAnimatedButton:e.hasAnimatedButton,animatedButtonType:e.animatedButtonType,popupBottomImageUrl:e.popupBottomImageUrl,disclaimerOptions:i,colorScheme:`white`}}getContactSalesFormModalContextData(e,i=`white`){return{colorScheme:`white`,errorList:e.errorList,formVisualSettings:e.formVisualSettings,contactSalesFormInPopupHeader:e.contactSalesFormInPopupTitle,contactSalesFormInPopupSubheader:e.contactSalesFormInPopupText,isEuVisitor:e.isEuVisitor,type:e.type,subType:e.subType,environment:e.environment,trackingParams:e.trackingParams,businessValidation:e.businessValidation,qualifiedFormExperienceId:e.qualifiedFormExperienceId,popupBottomImageUrl:e.popupBottomImageUrl,redirectUrl:e.redirectUrl}}getModalFormComponent(e){switch(e){case`trialPopup`:return Zt;case`marketoForm`:return li$1;case`contactSalesPopup`:return Xt}}prepareDisclaimerOptions(e,i){return s(r({},e),{alignment:i.align,theme:r$1(i.colorScheme)})}prepareDisclaimerOptionsWithDefaultTheme(e,i){return s(r({},e),{alignment:i?.align||`left`,theme:`light`})}getModalOptions(e){return s(r({},this.modalOptions),{hasWorkspaceBackground:e.hasWorkspaceBackground})}static{this.ɵfac=function(i){return new(i||o)}}static{this.ɵprov=Y({token:o,factory:o.ɵfac,providedIn:`root`})}}return o})();export{ii as a,ei as i,Jt as n,ti as o,Rn as r,Ee as t};
7//# debugId=6ee08f13-9b72-5dec-b8d8-bc054eaf5de5
8//# sourceMappingURL=chunk-CxFmBsOS2.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.