PageSourceSearch

https://app.krispcall.com/static/js/73.966b110a.chunk.js

js krispcall.com collected 2026-10-01 10:19:28 UTC 52,004 bytes, 2 lines download raw bytes

1(this["webpackJsonpkrispcall-client"]=this["webpackJsonpkrispcall-client"]||[]).push([[73],{1501:function(e,t,n){"use strict";var a=n(2),r=Object(a.createContext)({});t.a=r},1508:function(e,t,n){"use strict";n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return j})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return x})),n.d(t,"f",(function(){return h}));var a,r,c,i,s,o,l,d=n(3),u=n(15),b=n(1538),p=u.d.form(a||(a=Object(d.a)(["\n  position: relative;\n  min-height: 530px;\n  width: 400px;\n  .ant-input:not(textarea),\n  .ant-input-password,\n  .ant-btn {\n    height: 44px !important;\n  }\n\n  .checkbox-wrapper {\n    .ant-checkbox {\n      margin-top: -37px;\n    }\n  }\n\n  .ant-checkbox-wrapper {\n    align-items: center;\n    .ant-checkbox {\n      top: 0;\n    }\n  }\n  .combined-input-fields {\n    .ant-col > div {\n      margin-bottom: 0;\n    }\n  }\n  .ant-btn-loading-icon {\n    padding-right: 8px;\n  }\n\n  @media only screen and (max-width: 768px) {\n    & {\n      max-width: 400px;\n      width: 100%;\n      padding: 0 24px;\n    }\n    > h5 {\n      font-size: 20px;\n      line-height: 20px;\n      margin-bottom: 8px;\n      + p {\n        font-size: 12px;\n        line-height: 12px;\n        margin-bottom: 16px;\n      }\n    }\n    label {\n      &,\n      & > span {\n        font-size: 12px;\n      }\n      &.ant-checkbox-wrapper + a {\n        font-size: 12px;\n      }\n    }\n  }\n  &.business-form {\n    min-height: auto;\n    width: 100%;\n  }\n"]))),m=u.d.div(r||(r=Object(d.a)(["\n  max-width: 450px;\n  margin: 0 auto;\n  &.invalid-invitation {\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    transform: translate(-50%, -50%);\n  }\n\n  .link {\n    color: ",";\n    a,\n    span {\n      color: ",";\n      text-transform: capitalize;\n      text-decoration: none;\n    }\n  }\n  .ant-btn {\n    font-weight: ",";\n  }\n\n  .continue-to-dashboard--white > span {\n    color: ",";\n  }\n"])),(function(e){return e.theme.colors.text.t5}),(function(e){return e.theme.colors.info.default}),(function(e){return e.theme.text.weight.bold}),(function(e){return e.theme.colors.text.t4})),j=u.d.img(c||(c=Object(d.a)(["\n  margin: 0 auto;\n  display: block;\n"]))),f=Object(u.d)(b.a)(i||(i=Object(d.a)(["\n  .ant-col-lg-12:nth-child(1) {\n    flex-basis: 50.5%;\n    max-width: 50.5%;\n  }\n  .ant-col-lg-12:nth-child(2) {\n    flex-basis: 49.5%;\n    max-width: 49.5%;\n  }\n"]))),x=(u.d.div(s||(s=Object(d.a)(["\n  > div > div > div {\n    width: 100% !important;\n    iframe,\n    .rc-anchor {\n      width: 100% !important;\n      position: relative;\n      .rc-anchor-content,\n      .rc-anchor-pt {\n        width: 100%;\n      }\n      .rc-anchor-checkbox-label {\n        width: 100%;\n      }\n    }\n  }\n"]))),u.d.div(o||(o=Object(d.a)(["\n  margin-bottom: 24px;\n  @media (min-width: 1280px) {\n    position: absolute;\n    top: -108px; // error div height + space between error div and title\n    white-space: nowrap;\n  }\n"])))),h=u.d.div(l||(l=Object(d.a)(["\n  max-width: 364px;\n  .otp-container {\n    justify-content: space-between;\n    input.otp-input {\n      min-width: 44px;\n      height: 44px;\n      background: #f5f2f8;\n      border: 1px solid #f5f2f8;\n      border-radius: 8px;\n      outline: none;\n      :focus {\n        outline: 1px solid #390179;\n      }\n    }\n    .otp-separator {\n      margin: 0 -8px;\n    }\n    span:not(:nth-child(6)) {\n      display: none;\n    }\n  }\n"])))},1526:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var a,r,c,i,s,o=n(139),l=n(3),d=n(15),u=d.d.div(a||(a=Object(l.a)(["\n  max-width: inherit;\n  padding: 68px 80px 80px;\n  background: #f5f2f8;\n  height: 100vh;\n"]))),b=(d.d.div(r||(r=Object(l.a)(["\n  height: 100%;\n  display: flex;\n  flex-direction: column;\n  .slick-slider {\n    height: 100%;\n    margin-bottom: -6px;\n    .slick-list {\n      height: 100%;\n      .slick-track {\n        height: 100%;\n        .slick-slide {\n          height: 100%;\n          > div {\n            height: 100%;\n            > div {\n              height: 100%;\n              display: flex !important;\n              flex-direction: column;\n            }\n          }\n        }\n      }\n    }
1\n    .slick-dots {\n      bottom: -40px;\n      li {\n        margin: 0;\n        top: -2px;\n        button {\n          padding: 6px;\n          &:before {\n            opacity: 1;\n            font-size: 8px;\n            line-height: 23px;\n            color: #613494;\n          }\n        }\n        &.slick-active {\n          button:before {\n            color: #ffffff;\n          }\n        }\n      }\n    }\n  }\n"]))),d.d.div(c||(c=Object(l.a)(["\n  max-width: 457px;\n  margin: 0 auto;\n  text-align: center;\n  h3 {\n    color: #251a43;\n    font-weight: bold;\n    font-size: 24px;\n    line-height: 140%;\n    margin-bottom: 14px;\n  }\n  p {\n    color: #6e6681;\n    font-family: Heebo;\n    font-weight: normal;\n    font-size: 15px;\n    line-height: 150%;\n  }\n"])))),p=d.d.div(i||(i=Object(l.a)(["\n  display: grid;\n  height: 100%;\n  align-content: space-between;\n  margin-top: 7%;\n  &.map-container {\n    background: #f5f2f8;\n  }\n"]))),m=d.d.div(s||(s=Object(l.a)(["\n  width: 100%;\n  display: flex;\n  justify-content: center;
1\n"]))),j=n(1);function f(e){var t=e.vector,n=e.title,a=e.description;return Object(j.jsxs)(u,{className:"h-full w-full fixed flex flex-col",children:[Object(j.jsx)(o.x,{className:"flex-shrink-0"}),Object(j.jsxs)(p,{children:[Object(j.jsx)(m,{children:null!==t&&void 0!==t?t:Object(j.jsx)(o.o,{})}),Object(j.jsxs)(b,{children:[Object(j.jsx)("h3",{children:null!==n&&void 0!==n?n:"Simplicity is the Key"}),Object(j.jsx)("p",{children:null!==a&&void 0!==a?a:"KrispCall helps you manage your personal, business, and corporate telephony requirements all from a single app"})]})]})]})}},1538:function(e,t,n){"use strict";var a=n(4),r=n(9),c=n(35),i=n(17),s=n(2),o=n(20),l=n.n(o),d=n(286),u=n(1501),b=n(130),p=n(371),m=n(613),j=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},f=(Object(b.a)("top","middle","bottom","stretch"),Object(b.a)("start","end","center","space-around","space-between"),s.forwardRef((function(e,t){var n,o=e.prefixCls,b=e.justify,f=e.align,x=e.className,h=e.style,v=e.children,O=e.gutter,y=void 0===O?0:O,g=e.wrap,N=j(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),w=s.useContext(d.b),C=w.getPrefixCls,k=w.direction,P=s.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),S=Object(i.a)(P,2),E=S[0],T=S[1],I=Object(m.a)(),M=s.useRef(y);s.useEffect((function(){var e=p.a.subscribe((function(e){var t=M.current||0;(!Array.isArray(t)&&"object"===Object(c.a)(t)||Array.isArray(t)&&("object"===Object(c.a)(t[0])||"object"===Object(c.a)(t[1])))&&T(e)}
1));return function(){return p.a.unsubscribe(e)}}),[]);var A=C("row",o),z=function(){var e=[0,0];return(Array.isArray(y)?y:[y,0]).forEach((function(t,n){if("object"===Object(c.a)(t))for(var a=0;a<p.b.length;a++){var r=p.b[a];if(E[r]&&void 0!==t[r]){e[n]=t[r];break}}else e[n]=t||0})),e}(),R=l()(A,(n={},Object(r.a)(n,"".concat(A,"-no-wrap"),!1===g),Object(r.a)(n,"".concat(A,"-").concat(b),b),Object(r.a)(n,"".concat(A,"-").concat(f),f),Object(r.a)(n,"".concat(A,"-rtl"),"rtl"===k),n),x),D={},F=z[0]>0?z[0]/-2:void 0,B=z[1]>0?z[1]/-2:void 0;if(F&&(D.marginLeft=F,D.marginRight=F),I){var U=Object(i.a)(z,2);D.rowGap=U[1]}else B&&(D.marginTop=B,D.marginBottom=B);var _=Object(i.a)(z,2),L=_[0],W=_[1],G=s.useMemo((function(){return{gutter:[L,W],wrap:g,supportFlexGap:I}}),[L,W,g,I]);return s.createElement(u.a.Provider,{value:G},s.createElement("div",Object(a.a)({},N,{className:R,style:Object(a.a)(Object(a.a)({},D),h),ref:t}),v))})));f.displayName="Row";var x=f;t.a=x},1550:function(e,t,n){"use strict";var a=n(9),r=n(4),c=n(35),i=n(2),s=n(20),o=n.n(s),l=n(1501),d=n(286),u=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};var b=["xs","sm","md","lg","xl","xxl"],p=i.forwardRef((function(e,t){var n,s=i.useContext(d.b),p=s.getPrefixCls,m=s.direction,j=i.useContext(l.a),f=j.gutter,x=j.wrap,h=j.supportFlexGap,v=e.prefixCls,O=e.span,y=e.order,g=e.offset,N=e.push,w=e.pull,C=e.className,k=e.children,P=e.flex,S=e.style,E=u(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),T=p("col",v),I={};b.forEach((function(t){var n,i={},s=e[t];"number"===typeof s?i.span=s:"object"===Object(c.a)(s)&&(i=s||{}),delete E[t],I=Object(r.a)(Object(r.a)({},I),(n={},Object(a.a)(n,"".concat(T,"-").concat(t,"-").concat(i.span),void 0!==i.span),Object(a.a)(n,"".concat(T,"-").concat(t,"-order-").concat(i.order),i.order||0===i.order),Object(a.a)(n,"".concat(T,"-").concat(t,"-offset-").concat(i.offset),i.offset||0===i.offset),Object(a.a)(n,"".concat(T,"-").concat(t,"-push-").concat(i.push),i.push||0===i.push),Object(a.a)(n,"".concat(T,"-").concat(t,"-pull-").concat(i.pull),i.pull||0===i.pull),Object(a.a)(n,"".concat(T,"-rtl"),"rtl"===m),n))}));var M=o()(T,(n={},Object(a.a)(n,"".concat(T,"-").concat(O),void 0!==O),Object(a.a)(n,"".concat(T,"-order-").concat(y),y),Object(a.a)(n,"".concat(T,"-offset-").concat(g),g),Object(a.a)(n,"".concat(T,"-push-").concat(N),N),Object(a.a)(n,"".concat(T,"-pull-").concat(w),w),n),C,I),A={};if(f&&f[0]>0){var z=f[0]/2;A.paddingLeft=z,A.paddingRight=z}if(f&&f[1]>0&&!h){var R=f[1]/2;A.paddingTop=R,A.paddingBottom=R}return P&&(A.flex=function(e){return"number"===typeof e?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}(P),!1!==x||A.minWidth||(A.minWidth=0)),i.createElement("div",Object(r.a)({},E,{style:Object(r.a)(Object(r.a)({},A),S),className:M,ref:t}),k)}));p.displayName="Col";var m=p;t.a=m},2286:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return pt}));var a=n(411),r=n(1537),c=n(6),i=n.n(c),s=n(21),o=n(5),l=n(2),d=n.n(l),u=n(4),b=n(9),p=n(8),m=n(39),j=n(36),f=n(37),x=n(45),h=n(53),v=n(143),O=n(20),y=n.n(O),g=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function N(e){return"string"===typeof e}var w=function(e){Object(x.a)(n,e);var t=Object(h.a)(n);function n(){var e;return Object(j.a)(this,n),(e=t.apply(this,arguments)).onClick=function(){var t=e.props,n=t.onClick,a=t.onStepClick,r=t.stepIndex;n&&n.apply(void 0,arguments),a(r)},e}return Object(f.a)(n,[{key:"renderIconNode",value:function(){var e,t,n=this.props,a=n.prefixCls,r=n.progressDot,c=n.stepIcon,i=n.stepNumber,s=n.status,o=n.title,d=n.description,u=n.icon,p=n.iconPrefix,m=n.icons,j=y()("".concat(a,"-icon"),"".concat(p,"icon"),(e={}
1,Object(b.a)(e,"".concat(p,"icon-").concat(u),u&&N(u)),Object(b.a)(e,"".concat(p,"icon-check"),!u&&"finish"===s&&(m&&!m.finish||!m)),Object(b.a)(e,"".concat(p,"icon-cross"),!u&&"error"===s&&(m&&!m.error||!m)),e)),f=l.createElement("span",{className:"".concat(a,"-icon-dot")});return t=r?"function"===typeof r?l.createElement("span",{className:"".concat(a,"-icon")},r(f,{index:i-1,status:s,title:o,description:d})):l.createElement("span",{className:"".concat(a,"-icon")},f):u&&!N(u)?l.createElement("span",{className:"".concat(a,"-icon")},u):m&&m.finish&&"finish"===s?l.createElement("span",{className:"".concat(a,"-icon")},m.finish):m&&m.error&&"error"===s?l.createElement("span",{className:"".concat(a,"-icon")},m.error):u||"finish"===s||"error"===s?l.createElement("span",{className:j}):l.createElement("span",{className:"".concat(a,"-icon")},i),c&&(t=c({index:i-1,status:s,title:o,description:d,node:t})),t}},{key:"render",value:function(){var e,t=this.props,n=t.className,a=t.prefixCls,r=t.style,c=t.active,i=t.status,s=void 0===i?"wait":i,o=(t.iconPrefix,t.icon),d=(t.wrapperStyle,t.stepNumber,t.disabled),u=t.description,j=t.title,f=t.subTitle,x=(t.progressDot,t.stepIcon,t.tailContent),h=(t.icons,t.stepIndex,t.onStepClick),v=t.onClick,O=Object(m.a)(t,g),N=y()("".concat(a,"-item"),"".concat(a,"-item-").concat(s),n,(e={},Object(b.a)(e,"".concat(a,"-item-custom"),o),Object(b.a)(e,"".concat(a,"-item-active"),c),Object(b.a)(e,"".concat(a,"-item-disabled"),!0===d),e)),w=Object(p.a)({},r),C={};return h&&!d&&(C.role="button",C.tabIndex=0,C.onClick=this.onClick),l.createElement("div",Object.assign({},O,{className:N,style:w}),l.createElement("div",Object.assign({onClick:v},C,{className:"".concat(a,"-item-container")}),l.createElement("div",{className:"".concat(a,"-item-tail")},x),l.createElement("div",{className:"".concat(a,"-item-icon")},this.renderIconNode()),l.createElement("div",{className:"".concat(a,"-item-content")},l.createElement("div",{className:"".concat(a,"-item-title")},j,f&&l.createElement("div",{title:"string"===typeof f?f:void 0,className:"".concat(a,"-item-subtitle")},f)),u&&l.createElement("div",{className:"".concat(a,"-item-description")},u))))}}]),n}(l.Component),C=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],k=function(e){Object(x.a)(n,e);var t=Object(h.a)(n);function n(){var e;return Object(j.a)(this,n),(e=t.apply(this,arguments)).onStepClick=function(t){var n=e.props,a=n.onChange,r=n.current;a&&r!==t&&a(t)},e}return Object(f.a)(n,[{key:"render",value:function(){var e,t=this,n=this.props,a=n.prefixCls,r=n.style,c=void 0===r?{}:r,i=n.className,s=n.children,o=n.direction,u=n.type,j=n.labelPlacement,f=n.iconPrefix,x=n.status,h=n.size,O=n.current,g=n.progressDot,N=n.stepIcon,w=n.initial,k=n.icons,P=n.onChange,S=Object(m.a)(n,C),E="navigation"===u,T=g?"vertical":j,I=y()(a,"".concat(a,"-").concat(o),i,(e={},Object(b.a)(e,"".concat(a,"-").concat(h),h),Object(b.a)(e,"".concat(a,"-label-").concat(T),"horizontal"===o),Object(b.a)(e,"".concat(a,"-dot"),!!g),Object(b.a)(e,"".concat(a,"-navigation"),E),e));return d.a.createElement("div",Object.assign({className:I,style:c},S),Object(v.a)(s).map((function(e,n){var r=w+n,i=Object(p.a)({stepNumber:"".concat(r+1),stepIndex:r,key:r,prefixCls:a,iconPrefix:f,wrapperStyle:c,progressDot:g,stepIcon:N,icons:k,onStepClick:P&&t.onStepClick},e.props);return"error"===x&&n===O-1&&(i.className="".concat(a,"-next-error")),e.props.status||(i.status=r===O?x:r<O?"finish":"wait"),i.active=r===O,Object(l.cloneElement)(e,i)})))}}]),n}(d.a.Component);k.Step=w,k.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var P=k,S=n(475),E=n(181),T=n(286),I=n(778),M=n(644),A=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},z=function(e){var t,n=e.percent,a=e.size,r=e.className,c=e.direction,i=e.responsive,s=A(e,["percent","size","className","direction","responsive"]),o=Object(M.a)(i).xs,d=l.useContext(T.b),p=d.getPrefixCls,m=d.direction,j=l.useCallback((function(){return i&&o?"vertical":c}),[o,c]),f=p("steps",e.prefixCls),x=p("",e.iconPrefix),h=y()((t={},Object(b.a)(t,"".concat(f,"-rtl"),"rtl"===m),Object(b.a)(t,"".concat(f,"-with-progress"),void 0!==n),t),r),v={finish:l.createElement(S.a,{className:"".concat(f,"-finish-icon")}),error:l.createElement(E.a,{className:"".concat(f,"-error-icon")})};return l.createElement(P,Object(u.a)({icons:v},s,{size:a,direction:j(),stepIcon:function(e){var t=e.node;if("process"===e.status&&void 0!==n){var r="small"===a?32:40;return l.createElement("div",{className:"".concat(f,"-progress-icon")},l.createElement(I.a,{type:"circle",percent:n,width:r,strokeWidth:4,format:function(){return null}}),t)}return t},prefixCls:f,iconPrefix:x,className:h}))};z.Step=P.Step,z.defaultProps={current:0,responsive:!0};
1var R=z,D=n(843),F=n(62),B=n(2017),U=n(449),_=n(749);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=L(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==L(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(){var e=Object(U.a)(arguments),t=e.text,n=e.options,a=e.metadata;n=G(G({},n),{},{extract:!1});var r=Object(_.a)(t,n,a);return r&&r.isValid()||!1}function J(){return Object(B.a)(Y,arguments)}var $=n(2259),V=n(7),K=n(139),q=n(608),Z=n(61),X=n(71),Q=n(121),ee=n(648),te=n(1),ne=[{label:Object(te.jsxs)("div",{"data-cy":"account-setup-card-first",children:[Object(te.jsx)(K.S,{className:"mx-auto mb-8"}),Object(te.jsx)("p",{children:"For Individual Use"})]}),value:"individual"},{label:Object(te.jsxs)("div",{"data-cy":"account-setup-card-second",children:[Object(te.jsx)(K.N,{className:"mx-auto mb-8"}),Object(te.jsx)("p",{children:"For Business Use"})]}),value:"business"}],ae=[{label:Object(te.jsxs)("div",{className:"w-26.5",children:["Whatsapp",Object(te.jsx)("p",{className:"text-xs",children:" verification"})]}),value:"Whatsapp verification"},{label:Object(te.jsxs)("div",{className:"w-26.5",children:["Telegram",Object(te.jsx)("p",{className:"text-xs",children:" verification"})]}),value:"Telegram verification"},{label:Object(te.jsxs)("div",{className:"w-26.5",children:["PayPal",Object(te.jsx)("p",{className:"text-xs",children:" verification"})]}),value:"Paypal verification"},{label:Object(te.jsxs)("div",{className:"w-26.5",children:["TikTok",Object(te.jsx)("p",{className:"text-xs",children:" verification"})]}),value:"TikTok verification"},{label:Object(te.jsxs)("div",{className:"w-26.5",children:["Tinder",Object(te.jsx)("p",{className:"text-xs",children:" verification"})]}),value:"Tinder verification"},{label:Object(te.jsxs)("div",{className:"w-26.5",children:["Google",Object(te.jsx)("p",{className:"text-xs",children:" verification"})]}),value:"Google verification"},{label:"OTP for Banks",value:"OTP for Banks"},{label:"Calling & receiving calls",value:"Calling & receiving calls"},{label:"Sending/Receiving SMS",value:"Sending/Receiving SMS"},{label:"Marketplace signup",value:"Marketplace signup"},{label:"Number porting",value:"Number porting"},{label:"Number for my website",value:"Number for my website"},{label:"Need number while I am abroad",value:"Need number while I am abroad"},{label:"Secondary number to maintain privacy",value:"Secondary number to maintain privacy"},{label:"Others",value:"Others"}],re=[{label:"Make outbound calls",value:"Make outbound calls"},{label:"Receive business calls",value:"Receive business calls"},{label:"Corporate number for my business",value:"Corporate number for my business"},{label:"Local number for business expansion",value:"Local number for business expansion"},{label:"Marketing campaigns",value:"Marketing campaigns"},{label:"Number porting",value:"Number porting"},{label:"Enable a contact center",value:"Enable a contact center"},{label:"Shared number for my employee",value:"Shared number for my employee"},{label:"Enable a call center",value:"Enable a call center"},{label:"Number for my website",value:"Number for my website"},{label:"Customer service & support",value:"Customer service & support"},{label:"Outsource BPO",value:"Outsource BPO"},{label:"Call center CRM integration",value:"Call center CRM integration"},{label:"Others",value:"Others"}],ce=n(1550),ie=n(72),se=n(25),oe=n(14),le=n(1469),de=n(284),ue=n(50),be=n(649),pe=n(667),me=n(418),je=n(161),fe=n(80),xe=n(95),he=n.n(xe),ve=n(154),Oe=n(138),ye=n(78),ge=n(83),Ne=n(279),we=n(275),Ce=n(274),ke=n(413),Pe=n(629),Se=n(114),Ee=n(1873),Te=n(1874),Ie=n(1664),Me=n(1770),Ae=n(414),ze=n(1705),Re=n(305),De=n(1578),Fe
1=new he.a({encodingType:"aes",isCompression:!1});var Be,Ue=function(e){var t=e.calculatedMonthlyPrice,n=e.isYearlyPlan,a=e.totalBillAmount,r=e.yearlySaving,c=e.discountedAmount;return Object(te.jsxs)("div",{"data-cy":"billing-summary",children:[Object(te.jsx)("h6",{className:" text-gray-700 text-lg font-bold leading-snug mt-10 mb-5",children:"Billing Summary"}),Object(te.jsxs)("div",{className:"text-gray-600 font-normal text-base bg-primary-50 divide-y  divide-primary-100 rounded-lg","data-cy":"billing-info",children:[Object(te.jsxs)("div",{className:"grid grid-cols-2 gap-y-3 p-5 pb-4",children:[Object(te.jsx)("div",{children:"1 user"})," ",Object(te.jsxs)("div",{className:"flex justify-end",children:[t,"$/mo"]}),Object(te.jsx)("div",{children:"Duration"}),Object(te.jsx)("div",{className:"flex justify-end",children:n?"12 months":"1 month"})]}),Object(te.jsxs)("div",{className:"grid grid-cols-2 gap-y-1 p-5 pt-4 pb-5.5",children:[Object(te.jsx)("div",{children:"Billed Now"}),Object(te.jsxs)("div",{className:"flex justify-end text-gray-700 font-medium text-2xl leading-snug",children:["$",a," USD"]}),n&&Object(te.jsxs)(te.Fragment,{children:[Object(te.jsx)("div",{className:"text-info",children:"Your yearly savings"}),Object(te.jsxs)("div",{className:"flex justify-end text-info",children:["-$",r]})]}),c?Object(te.jsxs)(te.Fragment,{children:[Object(te.jsx)("div",{className:"text-info mt-2",children:"Promo code applied"}),Object(te.jsxs)("div",{className:"flex justify-end text-info mt-2",children:["-$",c]})]}):Object(te.jsx)(te.Fragment,{})]})]}),Object(te.jsxs)("div",{className:"text-gray-600 font-normal leading-normal text-sm mt-8 mb-10",children:["All sales are charged in USD and payments are final. You will be charged $",a," ","USD immediately. Numbers and members added during, will be charged for the remaining subscription duration. Your subscription can be renewed or cancelled any time."]})]})},_e=n(1566),Le=n(3),We=n(15).d.span(Be||(Be=Object(Le.a)(["\n  background: #4c9610;\n  border-radius: 54px;\n  font-weight: 500;\n  font-size: 13px;\n  line-height: 13px;\n  color: #fff;\n  display: inline-block;\n  font-family: 'Heebo';\n  padding: 6px 6px 6px 8px;\n"]))),Ge=function(e){var t=e.percent,n=e.className;return Object(te.jsxs)(We,{className:n,children:["Save ",t,"%"]})},He=function(e){var t=e.selectedPlanPrice,n=e.duration,a=e.handleDurationChange,r=e.priceAfterDiscount,c=e.disabled;return Object(te.jsxs)(_e.b,{"data-cy":"confirm-payment-duration-wrapper-compo",children:[Object(te.jsx)("h6",{"data-cy":"confirm-payment-duration-wrapper-title",className:"text-gray-700 text-lg font-bold leading-6.25 mb-5",children:"Duration"}),Object(te.jsxs)(D.a.Group,{name:"duration",value:n,onChange:a,disabled:c,"data-cy":"confirm-payment-duration-radio-wrapper",children:[Object(te.jsx)(D.a,{value:"month","data-cy":"radio-monthly",children:Object(te.jsxs)("div",{"data-cy":"bill-monthly",children:[Object(te.jsx)("h4",{children:"Bill Monthly"}),Object(te.jsxs)("p",{children:["$",t," user/month"]})]})}),Object(te.jsx)(D.a,{value:"year","data-cy":"radio-yearly",children:Object(te.jsxs)("div",{className:"flex items-end gap-x-2",children:[Object(te.jsxs)("div",{"data-cy":"bill-yearly",children:[Object(te.jsx)("h4",{children:"Bill Yearly"}),Object(te.jsxs)("p",{children:["$",r," user/month"]})]}),Object(te.jsx)(Ge,{percent:20})]})})]})]})},Ye=n(2016),Je=n(1595),$e=n(756),Ve=function(e){var t=e.isOpen,n=e.onRedirect,a=e.content;return Object(te.jsx)($e.a,{closable:!1,isModalOpen:t,title:"Redirecting to Mobile App",width:480,info:a,onOk:n,btnText:"Redirect Now"})},Ke=function(e,t){return(100-t)/100*+e},qe=function(){var e,t=Object(l.useState)(!0),n=Object(o.a)(t,2),a=n[0],c=n[1],d=Object(l.useState)({hasCardNumber:!1,hasExpiry:!1,hasCvv:!1}),u=Object(o.a)(d,2),b=u[0],p=u[1],m=Object(l.useContext)(r.a),j=m.handleBack,f=m.selectedPlanTitle,x=m.selectedPlanPrice,h=void 0===x?0:x,v=m.isYearlyPlan,O=m.setIsYearlyPlan,y=m.cardHolderName,g=m.setCardHolderName,N=m.zipCode,w=m.setZipCode,C=m.couponResponse,k=m.setPaymentMethodType,P=m.paymentMethodType,S=Object(me.a)(),E=S.styles,T=S.classes,I=Object(l.useState)(!0),M=Object(o.a)(I,2),A=M[0],z=M[1],R=(null===C||void 0===C||null===(e=C.checkCouponCode)||void 0===e?void 0:e.data)||{},D=R.discountPercentage,F=R.discountAmount,B=R.discountType,U=v?"year":"month",_=v?Ke(h,20):h,L=v?12*_:h,W=12*h-L,G=(Math.round(L*D)/100).toFixed(2),H=parseFloat("fixed_amount"===B?F:G),Y=(H?L-H:L).toFixed(2),J={duration:U,finalAmount:Y},$=Object(Je.a)().pushMixpanelAfterConfirmPayment,K=function(){var e,t=Object(we.a)().createPaymentIntent,n=Object(l.useContext)(r.a),a=n.setLoadingAfterPayment,c=n.selectedPlanTitle,d=n.isYearlyPlan,u=n.cardHolderName,b=n.zipCode,p=n.workspaceTitle,m=n.useCases,j=n.accountType,f=n.businessDetail,x=n.resetAccountSetupWizard,h=n.user,v=n.setUser,O=n.couponResponse,y=Object(Ee.a)().getFingerPrintData,g=Object(Te.a)().fetchFingerprintMutation,N=f||{},w=N.name,C=N.role,k=N.noOfUsers,P=N.businessType,S=N.id,E=Object(l.useState)(!1),T=Object(o.a)(E,2),I=T[0],M=T[1],A=Object(ve.a)().t,z=Object(l.useRef)(),R=Object(l.useState)(""),D=Object(o.a)(R,2),F=D[0],B=D[1],U=Object(l.useState)({}),_=Object(o.a)(U,2),L=_[0],W=_[1],G=Object(Ne.c)(),H=G.selectWorkspace,Y=G.showMobileRedirectModal,J=Object(l.useState)(!1),$=Object(o.a)(J,2),K=$[0],q=$[1],Z=Object(De.a)({accountType:j}).pushEventAfterPayment,X=Object(ke.a)().trackActivityInMixpanel,Q=Object(Me.a)().trackAdAttribution,ee=((null===O||void 0===O||null===(e=O.checkCouponCode)||void 0===e?void 0:e.data)||{}).id,te=void 0===ee?null:ee,ne=Object(l.useRef)();ne.current=h;var ae=Re.a.MOBILE_APP_REDIRECT,re=Object(Ae.a)().logoutSession,ce=function(){var e=Object(s.a)(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,re();case 2:window.location.href=ae||"";case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ie={};try{var se,le,de=null!==(se=Fe.get("_tokens"))&&void 0!==se?se:JSON.stringify("");ie=de&&(null===JSON||void 0===JSON||null===(le=JSON.parse)||void 0===le?void 0:le.call(JSON,de))}catch(Le){console.warn(Le)}var ue={workspaceTitle:p,planTitle:c,interval:d?"year":"month",accountType:j,useCases:m,name:w,role:C,noOfUsers:parseInt(k,10),businessType:P,businessId:S,couponCode:te},be=Object(Oe.a)(ge.j,{onCompleted:function(){var e=Object(s.a)(i.a.mark((function e(t){var n,r,c,s,o,l,d,u,b,p,m,j,f,h,O,N,w,C;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=t.workspaceSubscription,o=s.data,!(l=s.error)){e.next=5;break}return Object(V.w)({content:l.message,type:"danger"}),q(!1),e.abrupt("return");case 5:return u=(d=o||{}).memberId,b=d.workspaceId,e.next=8,null===y||void 0===y?void 0:y();case 8:if(p=e.sent,!(m=(p||{}).requestId)){e.next=14;break}return j={requestId:m,workspaceId:b},e.next=14,g(j);case 14:return f={memberId:u,workspaceId:b,authToken:null===(n=ie)||void 0===n?void 0:n.authToken},e.next=17,H(f);case 17:if(!(null===(h=e.sent)||void 0===h?void 0:h.mobileRedirect)){e.next=21;break}return q(!1),e.abrupt("return");case 21:return e.next=23,Object(Ie.a)();case 23:O=e.sent,N=(null===(r=ne.current)||void 0===r||null===(c=r.userDetails)||void 0===c?void 0:c.userProfile)||{},w=N.email,O&&(null===O||void 0===O?void 0:O.isUserTracked)&&(Q(O,w,ze.a.START_SUBSCRIPTION),Object(Ie.c)()),C=Object(ye.a)(ne.current,(function(e){var t;(null===e||void 0===e||null===(t=e.userDetails)||void 0===t?void 0:t.userProfile)&&(e.userDetails.userProfile.signupComplete=!0)})),v(C),x(),q(!1),a(!0),Z();case 32:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onError:function(){Object(V.w)({content:A("error.unspecific","Something went wrong."),type:"danger"}),q(!1)}}),pe=Object(o.a)(be,2),me=pe[0],fe=pe[1].loading,xe=function(){var e=Object(s.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,me({variables:{data:Object(oe.a)({},t)}});case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),he=function(e){var t=e||{},n=t.payment_method_type,a=t.active_payment_attempt,r={workspaceTitle:p,planTitle:c.replace(/\s+/g,"_"),interval:d?"year":"month",gatewayAccountId:null===e||void 0===e?void 0:e.gateway_account_id,gwToken:n!==je.a.Paypal?null===a||void 0===a?void 0:a.id_at_gateway:void 0,accountType:j,useCases:m,name:w,role:C,noOfUsers:parseInt(k,10),businessType:P,businessId:S,couponCode:te,paymentMethodType:n,paymentIntentId:null===e||void 0===e?void 0:e.id};xe(r)},Be=function(e){var t,n,a;(null===(t=window)||void 0===t||null===(n=t.Chargebee)||void 0===n||null===(a=n.getInstance)||void 0===a?void 0:a.call(n)).load("paypal").then((function(t){M(!1),t.setPaymentIntent(e),t.mountPaymentButton("#paypal-button",{style:je.d}).then((function(){t.handlePayment().then(function(){var e=Object(s.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:he(t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(t){var n=Object(oe.a)(Object(oe.a)({},ue),{}
1,{paymentIntentData:e,context:"Create Workspace",errText:"Create Workspace Failed"});Object(Se.c)(t,n),Object(V.w)({content:"Unable to make payment with Paypal",type:"danger"})})).finally((function(){q(!1),M(!1)}))}))}))},Ue=function(e,t){var n,a,r={firstName:null===u||void 0===u||null===(n=u.split(" "))||void 0===n?void 0:n[0],lastName:null===u||void 0===u||null===(a=u.split(" "))||void 0===a?void 0:a[1],billingZip:b};z.current.authorizeWith3ds(e,r).then((function(e){he(e)})).catch((function(t){if(q(!1),t){var n,a,r=t||{},c=r.displayMessage,i=r.message,s=r.detail,o=((null===(n=ne.current)||void 0===n||null===(a=n.userDetails)||void 0===a?void 0:a.userProfile)||{}).email,l=(null===s||void 0===s?void 0:s.error_message)||c||i||A("error.unspecific","Something went wrong.");B(l);var d=Object(oe.a)(Object(oe.a)({},ue),{},{paymentIntentData:e,context:"Create Workspace",errText:"Create Workspace Failed [Payment Error Authorize with 3ds]",email:o});Object(Se.c)(t,d);var u={event:Pe.a.SignupFailed,data:{signupFailed:{email:o,errorMessage:(null===s||void 0===s?void 0:s.error_message)||c||i}}};X(u)}})).finally((function(){q(!1)}))},_e=function(){var e=Object(s.a)(i.a.mark((function e(n,a){var r,c,s,o,l,d,u,b,p,m;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,q(!0),c=a===je.b.Paypal,e.next=5,t({variables:{data:{amount:n,paymentMethodType:c?je.a.Paypal:je.a.Card}}});case 5:if(s=e.sent,o=null===s||void 0===s||null===(r=s.data)||void 0===r?void 0:r.createPaymentIntent,l=(null===o||void 0===o?void 0:o.data)||{},!(null===o||void 0===o?void 0:o.error)){e.next=11;break}return q(!1),e.abrupt("return");case 11:return e.abrupt("return",Object(Ce.a)(l));case 14:e.prev=14,e.t0=e.catch(0),q(!1),b=(null===(d=ne.current)||void 0===d||null===(u=d.userDetails)||void 0===u?void 0:u.userProfile)||{},p=b.email,m=Object(oe.a)(Object(oe.a)({},ue),{},{paymentIntentPayload:{amount:n},email:p,context:"Create Workspace",errText:"Create Workspace Failed [Fetch Payment Intent]"}),Object(Se.c)(e.t0,m),Object(V.w)({content:A("error.unspecific","Something went wrong."),type:"danger"});case 21:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(t,n){return e.apply(this,arguments)}}();return{loadPaypalButton:function(){var e=Object(s.a)(i.a.mark((function e(t){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return document.querySelectorAll("[id^=zoid-paypal-button-]").forEach((function(e){return e.remove()})),M(!0),e.next=4,_e(t,je.b.Paypal);case 4:n=e.sent,Be(n);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),onSubmit:function(){var e=Object(s.a)(i.a.mark((function e(t){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(u&&b&&(null===z||void 0===z?void 0:z.current))){e.next=8;break}return e.next=4,_e(t,je.b.Card);case 4:if(n=e.sent){e.next=7;break}return e.abrupt("return");case 7:Ue(n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),processing:K,subscribing:fe,cardRef:z,onChange:function(e){var t=L,n="";if(e.error)t[e.field]=e.error,n=e.error.message;else{t[e.field]=null;var a=Object.values(t).filter((function(e){return e})).pop();n=a?a.message:""}W(t),B(n)},errorMsg:F,loadingPaypalBtn:I,setProcessing:q,showMobileRedirectModal:Y,onRedirect:ce}}(),q=K.loadPaypalButton,X=K.onSubmit,Q=K.processing,ne=K.subscribing,ae=K.cardRef,re=K.onChange,ce=K.errorMsg,ie=K.loadingPaypalBtn,xe=K.setProcessing,he=K.showMobileRedirectModal,Be=K.onRedirect;Object(l.useEffect)((function(){Y&&P===je.b.Paypal&&q(Object(fe.c)(Y))}),[Y]),Object(l.useEffect)((function(){return function(){k(je.b.Card),xe(!1)}}),[k,xe]),Object(l.useEffect)((function(){z(!(y&&N&&b.hasCardNumber&&b.hasCvv&&b.hasExpiry))}),[y,N,b]);var Le;return Object(te.jsxs)("div",{className:"h-screen w-full px-10 2xl:pr-29.5 flex 2xl:items-end items-center flex-col",children:[Object(te.jsx)(Ve,{isOpen:he,onRedirect:Be,content:'Your workspace has been created successfully. Click "Redirect Now" to launch the KrispCall mobile app.'}),Object(te.jsxs)("div",{className:"max-w-630 ",children:[Object(te.jsxs)("button",{"data-cy":"confirm-payment-change-plan-submit",type:"button",className:"text-info leading-normal text-sm cursor-pointer mt-10 py-px",onClick:j,children:[Object(te.jsx)(ue.h,{className:"inline mr-1 w-4 h-4"}),"Change Plan"]}),Object(te.jsxs)("h4",{"data-cy":"confirm-payment-title",className:"text-gray-700 text-2xl leading-8.5 font-bold mt-14.25 mb-12",children:["Subscribe to ",f," Plan"]}),Object(te.jsx)(He,{"data-cy":"confirm-payment-duration-wrapper",selectedPlanPrice:h,duration:U,handleDurationChange:function(e){var t=null===e||void 0===e?void 0:e.target.value;O("year"===t)},priceAfterDiscount:Ke(h,20),disabled:ie}),Object(te.jsx)("h6",{className:"text-gray-700 text-lg font-bold leading-snug mt-10 mb-5",children:"Payment Method"}
1),Object(te.jsxs)(_e.c,{className:"flex",children:[Object(te.jsxs)("button",{"data-cy":"payment-method-card-submit",type:"button",onClick:(Le=je.b.Card,function(e){k(Le),c(Le===je.b.Card),xe(!1),Le!==je.b.Paypal||ie||q(Object(fe.c)(Y))}),className:"".concat(P===je.b.Card?"active":""," border p-3 rounded-lg w-full flex justify-center items-center"),children:[Object(te.jsx)(V.i,{name:"icon-credit-card"}),Object(te.jsx)("h6",{className:" text-sm font-semibold leading-4 ml-2",children:"Card"})]}),!1]}),a&&Object(te.jsxs)("div",{"data-cy":"confirm-payment-credit-card-detail",className:"border-dashed border border-primary-400/50 rounded-lg p-6 pb-7 mt-5",children:[Object(te.jsxs)("h6",{className:"flex flex-col text-lg font-bold leading-6.25 mb-5",children:["Credit card details",ce&&Object(te.jsxs)("div",{className:"my-4 flex text-error","data-cy":"confirm-payment-credit-card-detail-title-errormsg",children:[Object(te.jsx)(ue.w,{"data-cy":"confirm-payment-credit-card-detail-title-error-icon",className:"m-1 flex-shrink-0",size:16}),Object(te.jsx)("p",{"data-cy":"confirm-payment-credit-card-detail-title-error-text",className:"text-15 font-normal text-center leading-normal",children:ce})]})]}),Object(te.jsx)(Z.b,{"data-cy":"confirm-payment-card-holder-name",name:"cardHolderName",id:"cardHolderName",label:"Card Holder\u2019s Name",value:y,placeholder:"John Doe",onChange:function(e){var t=null===e||void 0===e?void 0:e.target.value;g(t)},size:"large"}),Object(te.jsx)(de.b,{ref:ae,styles:E,classes:T,className:"fieldset field my-5",onChange:re,children:Object(te.jsx)(pe.a,{onCardValueChanges:function(e){var t=function(e,t){p((function(n){return Object(oe.a)(Object(oe.a)({},n),{},Object(se.a)({},e,t))}))};if(null===e||void 0===e?void 0:e.error)switch(e.field){case"cvv":t("hasCvv",!1);break;case"expiry":t("hasExpiry",!1);break;case"number":t("hasCardNumber",!1);break;default:console.error("Invalid field:",e.field)}else switch(e.field){case"cvv":t("hasCvv",e.complete);break;case"expiry":t("hasExpiry",e.complete);break;case"number":t("hasCardNumber",e.complete);break;default:console.error("Invalid field:",e.field)}}})}),Object(te.jsx)(Z.b,{"data-cy":"confirm-payment-postal-code",name:"zip",id:"zip",label:"ZIP/Postal code",value:N,onChange:function(e){var t=null===e||void 0===e?void 0:e.target.value;w(t)},size:"large"})]}),Object(te.jsx)(Ye.a,{"data-cy":"confirm-payment-cupon-code"}),Object(te.jsx)(Ue,{calculatedMonthlyPrice:_,isYearlyPlan:v,totalBillAmount:Y,yearlySaving:W,discountedAmount:H}),Object(te.jsxs)("div",{children:["card"===P&&Object(te.jsx)(V.b,{"data-cy":"confirm-payment-btn",variant:"success",className:"w-full",onClick:function(){X(Object(fe.c)(Y)),$(J)},loading:Q||ne,disabled:Q||ne||A,size:"large",children:"Confirm Payment"}),Object(te.jsxs)(ee.d,{className:"".concat("card"===P?"hidden":"paypal-custom"),children:[Object(te.jsx)("div",{id:"paypal-button"}),ie&&Object(te.jsx)(le.a.Button,{block:!0,active:!0,size:"large"})]})]}),Object(te.jsxs)("div",{className:"flex items-center justify-center text-15 text-gray font-normal leading-normal mt-3 mb-5",children:[Object(te.jsx)(be.b,{className:"text-success mr-1"}),"PCI-compliant, secure and encrypted"]})]})]})},Ze=n(1526),Xe=n(1508),Qe=function(){var e=Object(ie.a)(),t=e.isBigScreen,n=e.isDesktop;return Object(te.jsx)(te.Fragment,{children:t||n?Object(te.jsxs)(Xe.b,{children:[Object(te.jsx)(ce.a,{lg:12,children:Object(te.jsx)(qe,{})}),Object(te.jsx)(ce.a,{lg:12,children:Object(te.jsx)(Ze.a,{})})]}):Object(te.jsx)(qe,{})})},et=n(42),tt=n(592),nt=n(473),at=function(e){var t=e.methods,n=t.control,a=t.formState.errors;return Object(te.jsxs)("div",{className:"max-w-400",children:[Object(te.jsx)(Z.b,{"data-cy":"business-name",label:"Business Name",name:"businessName",id:"businessName",control:n,errors:a}),Object(te.jsx)("div",{className:"mt-8",children:Object(te.jsx)(Z.b,{"data-cy":"role",label:"Role",name:"role",id:"role",control:n,errors:a})}),Object(te.jsx)("div",{className:"mt-8",children:Object(te.jsx)(Z.g,{"data-cy":"business-type",label:"Business Type",name:"businessType",id:"businessType",control:n,errors:a,placeholder:"Select your business type",children:[{label:"Agriculture & Forestry/Wildlife",value:"Agriculture & Forestry/Wildlife"},{label:"Business & Information",value:"Business & Information"},{label:"Construction/Utilities/Contracting",value:"Construction/Utilities/Contracting"},{label:"Education",value:"Education"},{label:"Finance & Insurance",value:"Finance & Insurance"}
1,{label:"Food & Hospitality",value:"Food & Hospitality"},{label:"Gaming",value:"Gaming"},{label:"Health Services",value:"Health Services"},{label:"Motor Vehicle",value:"Motor Vehicle"},{label:"Natural Resources/Environmental",value:"Natural Resources/Environmental"},{label:"Personal Services",value:"Personal Services"},{label:"Real Estate & Housing",value:"Real Estate & Housing"},{label:"Safety/Security & Legal",value:"Safety/Security & Legal"},{label:"Transportation",value:"Transportation"}].map((function(e){return Object(te.jsx)(nt.a.Option,{value:e.value,children:e.label},e.value)}))})}),Object(te.jsx)("div",{className:"mt-8",children:Object(te.jsx)(Z.b,{"data-cy":"number-of-users",label:"Number of Users",name:"numberOfUsers",id:"numberOfUsers",control:n,errors:a})})]})},rt=n(99),ct=n(1771);function it(e){var t=e.title,n=e.price,a=void 0===n?0:n,r=e.description,c=e.action,i=e.disabled,s=e.yearly,o=void 0!==s&&s,l=e.isSelected,d=void 0!==l&&l,u=e.isMaxPlanEnabled,b=void 0!==u&&u,p="enterprise"===(null===t||void 0===t?void 0:t.toLowerCase()),m=b?"krispcall max"===(null===t||void 0===t?void 0:t.toLowerCase()):"standard"===(null===t||void 0===t?void 0:t.toLowerCase());return Object(te.jsxs)("div",{className:"".concat(p?"bg-primary-50":"bg-white"," p-6 border border-solid border-gray-100 rounded-lg shadow-light ").concat(d?"border-info":""," w-80 md:flex-grow-0 flex-grow"),children:[Object(te.jsxs)("div",{className:"flex justify-between mb-3.5",children:[Object(te.jsx)("h5",{className:"text-gray-700 font-semibold text-lg leading-snug",children:t}),m&&Object(te.jsxs)("div",{className:"bg-warning-100 flex text-warning text-sm px-2.5 leading-normal items-center rounded-5",children:[Object(te.jsx)(V.i,{name:"crown-three",className:"mr-1.5"})," Popular"]})]}),Object(te.jsx)("h4",{className:"text-gray-800 mb-1 font-bold leading-snug",children:p?Object(te.jsx)("p",{className:"text-32 mt-6.25",children:"Custom"}):Object(te.jsxs)("div",{children:[Object(te.jsx)("span",{className:"text-2xl",children:"$"}),Object(te.jsx)("span",{className:"text-40 tracking-tighter",children:a}),Object(te.jsx)("span",{className:"text-2xl pl-2",children:"USD"}),o&&Object(te.jsx)(Ge,{className:"relative bottom-2.5 ml-4",percent:20})]})}),Object(te.jsx)("div",{className:"text-gray text-sm font-normal leading-normal",children:p?"Pricing":"Per user per month"}),Object(te.jsxs)("div",{className:"text-gray-600 mt-6 text-15 font-normal leading-normal min-h-69",children:[r,p?Object(te.jsx)("button",{type:"button",className:"text-info",onClick:c,children:"Upgrading to Enterprise plan"}):Object(te.jsx)(te.Fragment,{})]}),Object(te.jsx)(V.b,{"data-cy":"choose-btn-".concat(t),size:"large",variant:p?"info":void 0,className:"w-full mt-7.5",type:"primary",onClick:c,disabled:i,children:p?"About Enterprise plan":"Cho
1ose"})]})}var st=n(1782),ot=function(){var e=Object(l.useContext)(r.a),t=e.workspaceTitle,n=e.selectedPlanTitle,a=e.setSelectedPlanTitle,c=e.setSelectedPlanPrice,i=e.isYearlyPlan,s=e.setIsYearlyPlan,o=Object(ct.a)(rt.g),d=o.isAllowed,u=(o.loading,d);return Object(te.jsxs)("div",{children:[Object(te.jsx)("h5",{"data-cy":"krispcall-plans",className:"text-gray-700 font-bold text-2xl leading-snug",children:"KrispCall Plans"}),Object(te.jsxs)("div",{className:"flex text-gray text-base leading-normal justify-between mb-10 mt-3.75",children:[Object(te.jsxs)("div",{children:["Choose the right plan for your workspace"," ",Object(te.jsxs)("span",{className:"font-medium text-gray-700 truncate max-w-150 inline-block align-bottom",children:[t,"."]})," ",Object(te.jsxs)("a",{className:"inline text-info group hover:text-info-600",href:Re.a.PRICING_DETAIL,target:"_blank",rel:"noopener noreferrer",children:["Compare plans",Object(te.jsx)(V.i,{className:"text-info inline group-hover:text-info-600",name:"external-link"})]})]}),Object(te.jsxs)("div",{"data-cy":"switch-period",children:[Object(te.jsx)("span",{className:"text-gray",children:"Monthly"}),Object(te.jsx)("span",{className:"mx-3.75",children:Object(te.jsx)(V.u,{id:"switch-period-plan",onChange:function(e){s(e)},checked:i})}),Object(te.jsx)("span",{className:"text-gray",children:"Annual"})]})]}),Object(te.jsx)("div",{className:"flex gap-7 flex-wrap",children:st.a.filter((function(e){return!e.hidden&&("KRISPCALL_MAX"!==e.planType||u)})).map((function(e){var t,r=e.title,s=void 0===r?"":r,o=e.price,l=void 0===o?"":o,d=e.description,b=void 0===d?"":d,p=i?.8*+ +l:l;return Object(te.jsx)(it,{title:s,price:p,description:b,action:(t=e,function(){var e;"enterprise"===(null===t||void 0===t||null===(e=t.title)||void 0===e?void 0:e.toLowerCase())?window.open(Re.a.PRICING_DETAIL,"_blank","noopener,noreferrer"):(a(null===t||void 0===t?void 0:t.title),c(null===t||void 0===t?void 0:t.price))}),yearly:i,isSelected:n===s,isMaxPlanEnabled:u},s)}))})]})},lt=n(1552),dt=n(412),ut=R.Step,bt=function(){var e,t,n,a=Object(l.useContext)(r.a),c=a.current,d=a.accountType,u=a.showHowToUsePlan,b=a.useCases,p=a.handleBack,m=a.isNextStepDisabled,j=a.submitAccountType,f=a.onAccountTypeChange,x=a.next,h=a.loadingAfterPayment,v=a.selectedPlanTitle,O=a.isUpdateUseCasesLoading,y=a.isUpdateBusinessDataLoading,g=Object(X.a)("user",""),N=Object(o.a)(g,1)[0],w=(null===N||void 0===N||null===(e=N.userDetails)||void 0===e?void 0:e.userProfile)||{},C=w.phoneNumber,k=w.casdoorUser,P=(null!==k&&void 0!==k?k:{}).authProvider,S=void 0===P?[]:P,E=S.find((function(e){return(null===e||void 0===e?void 0:e.provider)===Q.g})),T=S.find((function(e){return(null===e||void 0===e?void 0:e.provider)===Q.c})),I=!!(null===T||void 0===T?void 0:T.provider)||!!(null===E||void 0===E?void 0:E.provider),M=Object(F.g)({mode:"onChange",defaultValues:{number:null!==(t=null===C||void 0===C||null===(n=C.split("+"))||void 0===n?void 0:n[1])&&void 0!==t?t:""}}),A=M.control,z=M.setError,B=M.getValues,U=M.formState.errors,_=function(){var e=Object(l.useContext)(r.a),t=e.useCases,n=e.onUseCasesChange,a=e.businessFormMethods,c=e.accountType,i=e.onBusinessFormSubmit,s=[{title:"indiviual usecase",content:Object(te.jsxs)("div",{children:[Object(te.jsxs)(ee.e,{className:"mb-10",children:[Object(te.jsx)("h5",{"data-cy":"choose-usecase-title",className:"mb-3.75",children:"Choose your use case"}),Object(te.jsx)("p",{children:"For personal use, select the appropriate level of access to data"})]}),Object(te.jsx)(ee.a,{className:"max-w-1085","data-cy":"individual-usecase",children:Object(te.jsx)(tt.a.Group,{defaultValue:Object(et.a)(t),options:ae,onChange:n})})]})},{title:"individual workspace plan",content:Object(te.jsx)("div",{className:"max-w-1020",children:Object(te.jsx)(ot,{})})}],o=[{title:"business use case",content:Object(te.jsxs)("div",{"data-cy":"account-setup-use-cases",children:[Object(te.jsxs)(ee.e,{className:"mb-10","data-cy":"account-setup-use-cases-title",children:[Object(te.jsx)("h5",{className:"mb-3.75",children:"Choose your use case"}),Object(te.jsx)("p",{children:"For personal use, select the appropriate level of access to data"})]}),Object(te.jsx)(ee.a,{className:"w-full","data-cy":"business-usecase",children:Object(te.jsx)(tt.a.Group,{defaultValue:Object(et.a)(t),options:re,onChange:n})})]})},{title:"business form",content:Object(te.jsxs)("div",{children:[Object(te.jsxs)(ee.e,{className:"mb-10",children:[Object(te.jsx)("h5",{className:"mb-3.75","data-cy":"enter-company-info",children:"Enter your company information"}),Object(te.jsx)("p",{children:"For organizational use, please provide your information."})]}),Object(te.jsx)(Xe.d,{onSubmit:i,className:"business-form",id:"account-business-form",children:Object(te.jsx)(at,{methods:a})})]})},{title:"business plan",content:Object(te.jsx)("div",{className:"max-w-1020",children:Object(te.jsx)(ot,{})})}];return c===lt.e?s:o}(),L=c<_.length,W=c===_.length,G=d===lt.a&&c===lt.b,H=Object(De.a)({accountType:d,current:c}).pushEventOnNextClick,Y=Object(Je.a)({accountType:d}),ce=Y.pushMixEventOnNextClick,ie=Y.pushMixpanelAfterPlanSelect,se=function(){var e=Object(ve.a)().t,t=Object(X.a)("_tokens",null),n=Object(o.a)(t,1)[0],a=Object(Oe.a)(dt.a,{onCompleted:function(t){null!==t.updateSocialLoginUserProfile.error?Object(V.w)({content:e("error.unspecific","Something went wrong."),type:"danger"}):Object(V.w)({content:"Phone number added.",type:"success"})},onError:function(){Object(V.w)({content:e("error.unspecific","Something went wrong."),type:"danger"})}}),r=Object(o.a)(a,2),c=r[0],l=r[1].loading;return{addPhoneNumber:function(){var e=Object(s.a)(i.a.mark((function e(t){var a;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.phoneNumber,e.next=3,c({context:{headers:{Authorization:"JWT ".concat(null===n||void 0===n?void 0:n.authToken)}},variables:{data:{phoneNumber:a}}});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),isAddingPhone:l}}(),oe=se.addPhoneNumber,le=se.isAddingPhone,de=function(){var e=Object(s.a)(i.a.mark((function e(){var t,n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!I){e.next=8;break}
1if(t=B("number"),J("+".concat(t))){e.next=5;break}return z("number",{type:"error",message:"Invalid Phone Number"}),e.abrupt("return");case 5:return n=Object($.a)("+".concat(t)),e.next=8,oe({phoneNumber:n.number});case 8:j();case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return h?Object(te.jsx)(V.h,{}):W?Object(te.jsx)(Qe,{}):Object(te.jsxs)(ee.f,{className:"p-5 lg:p-10 3xl:p-15",children:[Object(te.jsxs)("div",{className:"flex justify-between items-center",children:[Object(te.jsx)("h5",{className:"text-base font-semibold text-gray-600",children:"Guided Account Setup"}),Object(te.jsx)(K.x,{className:"flex-shrink-0"})]}),Object(te.jsx)(ee.c,{className:"mt-6 xl:mt-12 3xl:mt-20.5 flex flex-col justify-between",children:u?Object(te.jsxs)(te.Fragment,{children:[Object(te.jsxs)("div",{children:[Object(te.jsx)("div",{className:"h-5",children:d&&Object(te.jsx)(R,{size:"small",current:-1,children:_.map((function(e){return Object(te.jsx)(ut,{},e.title)}))})}),Object(te.jsxs)(ee.e,{className:"mt-6 mb-10",children:[I&&Object(te.jsxs)(te.Fragment,{children:[Object(te.jsx)("h5",{className:"mb-3.75","data-cy":"account-setup-title",children:"Please enter your phone number"}),Object(te.jsx)("div",{className:"w-90",children:Object(te.jsx)(Z.e,{errors:U,control:A,name:"number",id:"number",autoFocus:!0})})]}),Object(te.jsx)("h5",{className:"mb-3.75 mt-6","data-cy":"account-setup-title",children:"Please tell us how you plan to use KrispCall"}),Object(te.jsx)("p",{children:"Make sure your work fits the right use case"})]}),Object(te.jsx)(ee.b,{"data-cy":"account-setup-card",children:Object(te.jsx)(D.a.Group,{size:"large",value:d,onChange:f,children:ne.map((function(e){return Object(te.jsx)(D.a.Button,{value:e.value,children:e.label},e.value)}))})})]}),Object(te.jsx)(V.b,{"data-cy":"select-purpose",className:"min-w-160 ml-auto",type:"primary",onClick:de,size:"large",disabled:!d,loading:le,children:"Next"})]}):Object(te.jsxs)(te.Fragment,{children:[Object(te.jsxs)("div",{children:[Object(te.jsx)(R,{size:"small",current:c,children:_.map((function(e){return Object(te.jsx)(ut,{},e.title)}))}),Object(te.jsx)("div",{className:"steps-content mt-6",children:_[c].content})]}),Object(te.jsxs)("div",{className:"steps-action flex justify-between",children:[Object(te.jsx)(V.b,{"data-cy":"go-back-btn",onClick:p,size:"large",icon:Object(te.jsx)(q.a,{}),type:"text",children:"Go back"}),L&&!G&&Object(te.jsx)(V.b,{"data-cy":"usecase-next-btn",className:"ml-auto",type:"primary",onClick:function(){v&&ie(v);var e=b.join();H(),ce(e),G||x()},size:"large",disabled:m||O,loading:O,children:"Next"}),G&&L&&Object(te.jsx)(V.b,{"data-cy":"business-form-next-btn",className:"ml-auto",type:"primary",size:"large",disabled:m||y,loading:y,htmlType:"submit",form:"account-business-form",children:"Next"})]})]})})]})};function pt(){return Object(te.jsx)(a.b,{children:Object(te.jsx)(r.b,{children:Object(te.jsx)(bt,{})})})}}}]);
2//# sourceMappingURL=73.966b110a.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.