PageSourceSearch

https://app.krispcall.com/static/js/85.dd3692ed.chunk.js

js krispcall.com collected 2026-10-01 10:19:42 UTC 17,574 bytes, 2 lines download raw bytes

1(this["webpackJsonpkrispcall-client"]=this["webpackJsonpkrispcall-client"]||[]).push([[85],{1492:function(n,e,t){"use strict";t.d(e,"l",(function(){return h})),t.d(e,"h",(function(){return v})),t.d(e,"c",(function(){return w})),t.d(e,"b",(function(){return x})),t.d(e,"a",(function(){return S})),t.d(e,"g",(function(){return A})),t.d(e,"e",(function(){return R})),t.d(e,"i",(function(){return C})),t.d(e,"f",(function(){return y})),t.d(e,"d",(function(){return N})),t.d(e,"j",(function(){return $})),t.d(e,"k",(function(){return I}));var a,r,i,o,c,d,u,s,l,b,f,j,g=t(3),p=t(16),m=t(22),O=t(1525),h=Object(p.d)(a||(a=Object(g.a)(["\n  mutation updateBillingInformation($data: BillingInformationInputData!) {\n    updateBillingInformation(data: $data) {\n      status\n      data {\n        success\n      }\n      error {\n        ...Error\n      }\n    }\n  }\n  ","\n"])),m.a),v=Object(p.d)(r||(r=Object(g.a)(["\n  mutation saveNotificationAndAutoRecharge($data: NotificationAndAutoRechargeInputData!) {\n    saveNotificationAndAutoRecharge(data: $data) {\n      status\n      data {\n        ...NotificationAndAutoRechargeFields\n      }\n      error {\n        ...Error\n      }\n    }\n  }\n  ","\n  ","\n"])),O.c,m.a),w=Object(p.d)(i||(i=Object(g.a)(["\n  mutation changePlan($data: ChangePlanInputData!) {\n    changePlan(data: $data) {\n      status\n      data {\n        id\n      }\n      error {\n        ...Error\n      }\n    }\n  }\n  ","\n"])),m.a),x=Object(p.d)(o||(o=Object(g.a)(["\n  mutation cancelSubscription {\n    cancelSubscription {\n      status\n      data {\n        subscriptionActive\n      }\n      error {\n        ...Error\n      }\n    }\n  }\n  ","\n"])),m.a),S=Object(p.d)(c||(c=Object(g.a)(["\n  mutation cancellationReasonForm($data: CancellationReasonForm!) {\n    cancellationReasonForm(data: $data) {\n      status\n      data {\n        success\n      }\n      error {\n        ...Error\n      }\n    }\n  }\n  ","\n"])),m.a),A=Object(p.d)(d||(d=Object(g.a)(["\n  mutation renewSubscription($data: RenewSubscriptionInput!) {\n    renewSubscription(data: $data) {\n      status\n      data {\n        id\n        plan {\n          remainingDays\n          subscriptionActive\n          trialPeriod\n          cardInfo\n          currentCredit\n          startedAt\n          endedAt\n          planDetail {\n            title\n            interval\n          }\n        }\n      }\n      error {\n        ...Error\n      }\n    }\n  }\n  ","\n"])),m.a),R=Object(p.d)(u||(u=Object(g.a)(["\n  mutation renewNonVoip($data: RenewNonVoipInput!) {\n    renewNonVoip(data: $data) {\n      status\n      data {\n        id\n      }\n      error {\n        ...Error\n      }\n    }\n  }\n  ","\n"])),m.a),C=Object(p.d)(s||(s=Object(g.a)(["\n  mutation switchPlan($data: SwitchPlanInputData!) {\n    switchPlan(data: $data) {\n      status\n      data {\n        id\n      }\n      error {\n        ...Error\n      }\n    }\n  }\n  ","\n"])),m.a),y=Object(p.d)(l||(l=Object(g.a)(["\n  mutation renewNumberSubscription($data: RenewSubscriptionInput!) {\n    renewNumberSubscription(data: $data) {\n      status\n      data {\n        id\n      }\n      error {\n        ...Error\n      }\n    }\n  }\n  ","\n"])),m.a),N=Object(p.d)(b||(b=Object(g.a)(["\n  mutation invoicePdf($invoice_number: String) {\n    invoicePdf(invoice_number: $invoice_number) {\n      status\n      data {\n        downloadUrl\n      }\n      error {\n        ...Error\n      }\n    }\n  }\n  ","\n"])),m.a),$=Object(p.d)(f||(f=Object(g.a)(["\n  mutation toggleAutoRenewalSubscriptionSettings($data: ToggleAutoRenewalInput!) {\n    toggleAutoRenewalSubscriptionSettings(data: $data) {\n      status\n      data {\n        autoRenewSubscription\n      }\n      error {\n        ...Error\n      }\n    }\n  }\n  ","\n"])),m.a),I=Object(p.d)(j||(j=Object(g.a)(["\n  mutation toggleNonVoipAutoRenewSubscription($data: ToggleNonVoipAutoRenewalInput!) {\n    toggleNonVoipAutoRenewSubscription(data: $data) {\n      status\n      data {\n        nonVoipAutoRenewSubscription\n      }\n      error {\n        ...Error\n      }\n    }\n  }\n  ","\n"])),m.a)},1493:function(n,e,t){"use strict";t.d(e,"b",(function(){return h})),t.d(e,"k",(function(){return v})),t.d(e,"j",(function(){return w})),t.d(e,"i",(function(){return x})),t.d(e,"l",(function(){return S})),t.d(e,"g",(function(){return A})),t.d(e,"d",(function(){return R})),t.d(e,"f",(function(){return C})),t.d(e,"c",(function(){return y}
1)),t.d(e,"a",(function(){return N})),t.d(e,"e",(function(){return $})),t.d(e,"h",(function(){return I}));var a,r,i,o,c,d,u,s,l,b,f,j,g=t(3),p=t(16),m=t(22),O=t(1525),h=Object(p.d)(a||(a=Object(g.a)(["\n  query billingInformation {\n    billingInformation {\n      status\n      error {\n        ...Error\n      }\n      data {\n        ...BillingInfoFields\n      }\n    }\n  }\n  ","\n  ","\n"])),m.a,O.a),v=Object(p.d)(r||(r=Object(g.a)(["\n  query plans($interval: String) {\n    plans(interval: $interval) {\n      status\n      error {\n        ...Error\n      }\n      data {\n        ...PlanFields\n      }\n    }\n  }\n  ","\n  ","\n"])),O.d,m.a),w=Object(p.d)(i||(i=Object(g.a)(["\n  query planOverview {\n    planOverview {\n      status\n      error {\n        ...Error\n      }\n      data {\n        customerId\n        subscriptionActive\n        numberAndAddonTotalAmount\n        currentPeriodEnd\n        totalAmount\n        numberTotalAmount\n        interval\n        remainingDays\n        plan {\n          ...PlanFields\n        }\n        credit {\n          id\n          amount\n        }\n        card {\n          ...CardFields\n        }\n        aiSubscription {\n          hasAiSubscription\n          transcriptionUnitPrice\n        }\n      }\n    }\n  }\n  ","\n  ","\n  ","\n"])),O.b,O.d,m.a),x=Object(p.d)(o||(o=Object(g.a)(["\n  query notificationAndAutoRecharge {\n    notificationAndAutoRecharge {\n      status\n      error {\n        ...Error\n      }\n      data {\n        ...NotificationAndAutoRechargeFields\n      }\n    }\n  }\n  ","\n  ","\n"])),O.c,m.a),S=Object(p.d)(c||(c=Object(g.a)(["\n  query receipts {\n    receipts {\n      status\n      error {\n        ...Error\n      }\n      data {\n        amount\n        invoiceNumber\n        createdOn\n      }\n    }\n  }\n  ","\n"])),m.a),A=Object(p.d)(d||(d=Object(g.a)(["\n  query receipts($invoiceType: InvoiceType) {\n    receipts(invoiceType: $invoiceType) {\n      status\n      error {\n        ...Error\n      }\n      data {\n        amount\n        invoiceNumber\n        createdOn\n      }\n    }\n  }\n  ","\n"])),m.a),R=Object(p.d)(u||(u=Object(g.a)(["\n  query invoices {\n    invoices {\n      status\n      error {\n        ...Error\n      }\n      data {\n        invoiceNumber\n        createdOn\n      }\n    }\n  }\n  ","\n"])),m.a),C=Object(p.d)(s||(s=Object(g.a)(["\n  query invoices($invoiceType: InvoiceType) {\n    invoices(invoiceType: $invoiceType) {\n      status\n      error {\n        ...Error\n      }\n      data {\n        invoiceNumber\n        createdOn\n      }\n    }\n  }\n  ","\n"])),m.a),y=Object(p.d)(l||(l=Object(g.a)(["\n  query invoice($invoiceNumber: String!) {\n    invoice(invoiceNumber: $invoiceNumber) {\n      status\n      error {\n        ...Error\n      }\n      data {\n        invoiceNumber\n        createdOn\n        billingInformation {\n          ...BillingInfoFields\n        }\n        cardDetail {\n          ...CardFields\n        }\n        totalAmount\n        invoiceItems {\n          unitPrice\n          content\n          contentType\n        }\n      }\n    }\n  }\n  ","\n  ","\n  ","\n"])),m.a,O.a,O.b),N=Object(p.d)(b||(b=Object(g.a)(["\n  query autoRenewalSubscriptionSettings {\n    autoRenewalSubscriptionSettings {\n      status\n      error {\n        ...Error\n      }\n      data {\n        autoRenewSubscription\n      }\n    }\n  }\n  ","\n"])),m.a),$=Object(p.d)(f||(f=Object(g.a)(["\n  query nonVoipAutoRenewalSubscriptionSettings {\n    nonVoipAutoRenewalSubscriptionSettings {\n      status\n      data {\n        nonVoipAutoRenewSubscription\n      }\n      error {\n        ...Error\n      }\n    }\n  }\n  ","\n"])),m.a),I=Object(p.d)(j||(j=Object(g.a)(["\n  query nonVoipSubscriptionInformation {\n    nonVoipSubscriptionInformation {\n      status\n      error {\n        ...Error\n      }\n      data {\n        number\n        endedAt\n        amount\n        id\n        subscriptionStatus\n      }\n    }\n  }\n  ","\n"])),m.a)},1512:function(n,e,t){"use strict";var a=t(1493);t.d(e,"b",(function(){return a.b})),t.d(e,"i",(function(){return a.k})),t.d(e,"h",(function(){return a.j})),t.d(e,"g",(function(){return a.i})),t.d(e,"j",(function(){return a.l})),t.d(e,"e",(function(){return a.c})),t.d(e,"f",(function(){return a.d})),t.d(e,"a",(function(){return a.a}));var r=t(1492);t.d(e,"p",(function(){return r.l})),t.d(e,"m",(function(){return r.h})),t.d(e,"d",(function(){return r.c})),t.d(e,"c",(function(){return r.b})),t.d(e,"n",(function(){return r.i})),t.d(e,"l",(function(){return r.g})),t.d(e,"k",(function(){return r.f})),t.d(e,"o",(function(){return r.j}))},1525:function(n,e,t){"use strict";t.d(e,"d",(function(){return u})),t.d(e,"b",(function(){return s})),t.d(e,"c",(function(){return l})),t.d(e,"a",(function(){return b}));var a,r,i,o,c=t(3),d=t(16),u=Object(d.d)(a||(a=Object(c.a)(["\n  fragment PlanFields on PlanResponseData {\n    id\n    productId\n    title\n    rate\n    order\n    details\n  }\n"]))),s=Object(d.d)(r||(r=Object(c.a)(["\n  fragment CardFields on CardResponseData {\n    id\n    name\n    expiryMonth\n    expiryYear\n    lastDigit\n    brand\n    type\n    email\n  }\n"]))),l=Object(d.d)(i||(i=Object(c.a)(["\n  fragment NotificationAndAutoRechargeFields on NotificationAndAutoRecharge {\n    id\n    lowCreditNotification\n    creditAutoRecharge\n    recharge\n    lowCreditBalanceRecharge\n  }\n"]))),b=Object(d.d)(o||(o=Object(c.a)(["\n  fragment BillingInfoFields on BillingInformation {\n    billTo\n    taxId\n    country\n    address\n    recipients\n  }\n"])))},2349:function(n,e,t){"use strict";t.r(e);
1var a=t(5),r=t(2),i=t(1484),o=t(473),c=t(1480),d=t(88),u=t(129),s=t(7),l=t(31),b=t(139),f=t(403),j=t(182),g=t(72),p=t(160),m=t(653),O=t(25),h=t(14),v=t(80),w=t(6),x=t.n(w),S=t(21),A=t(138),R=t(154),C=t(1512);var y=t(253);function N(){var n=function(){var n,e,t=Object(y.a)(C.g,{fetchPolicy:"network-only"}),i=Object(a.a)(t,2),o=i[0],c=i[1].data;return Object(r.useEffect)((function(){o()}),[o]),{optionsData:null!==(n=null===c||void 0===c||null===(e=c.notificationAndAutoRecharge)||void 0===e?void 0:e.data)&&void 0!==n?n:{}}}().optionsData,e=Object(r.useState)({lowCreditNotification:!1,creditAutoRecharge:!1,recharge:10,lowCreditBalanceRecharge:5}),t=Object(a.a)(e,2),i=t[0],o=t[1],c=function(){var e=Object(v.m)(n,"id","__typename"),t=Object(h.a)(Object(h.a)({},e),{},{lowCreditBalanceRecharge:e.lowCreditBalanceRecharge?e.lowCreditBalanceRecharge:5,recharge:e.recharge?e.recharge:10});o(t)};Object(r.useEffect)((function(){n&&c()}),[n]);var d=function(n){var e=n.onSaveCallback,t=Object(R.a)().t,r=Object(A.a)(C.m,{onCompleted:function(n){var a=((null===n||void 0===n?void 0:n.saveNotificationAndAutoRecharge)||{}).error;null!==a?(Object(s.w)({content:(null===a||void 0===a?void 0:a.message)||t("error.unspecific","Something went wrong."),type:"danger"}),null===e||void 0===e||e({error:a})):Object(s.w)({type:"success",content:"Settings saved successfully!"})},onError:function(n){Object(s.w)({content:(null===n||void 0===n?void 0:n.message)||t("error.unspecific","Something went wrong."),type:"danger"})}}),i=Object(a.a)(r,2),o=i[0],c=i[1].loading;return{saveDetails:function(){var n=Object(S.a)(x.a.mark((function n(e){return x.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o({variables:{data:e}});case 2:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),loadingUpdateSettings:c}}({onSaveCallback:function(n){var e=(n||{}).error;"toggle_recharge_time_limit_exceed"===(null===e||void 0===e?void 0:e.errorKey)&&c()}}),u=d.saveDetails,l=d.loadingUpdateSettings;return{onSettingChange:function(n){return function(e){var t=Object(O.a)({},n,e);o((function(n){return Object(h.a)(Object(h.a)({},n),t)})),u(t)}},preference:i,loadingUpdateSettings:l,onAutoRechargeFieldValueChange:function(n){return function(e){o((function(t){var a=Object(h.a)(Object(h.a)({},t),{},Object(O.a)({},n,e));if("creditAutoRecharge"===n&&!e){var r=Object(v.m)(a,"lowCreditNotification");u(r)}return a}))}},resetAutoRechargeValues:c,onAutoRechargeSaveChanges:function(){var n=Object(v.m)(i,"lowCreditNotification");u(n)}}}var $,I=t(3),E=t(15).d.div($||($=Object(I.a)(["\n  .ant-select {\n    background-color: #f3f7fe;\n    border-radius: 8px;\n    width: 100%;\n    height: 44px;\n    @media screen and (min-width: 769px) {\n      width: 113px;\n    }\n  }\n  .ant-select:not(.ant-select-customize-input) .ant-select-selector {\n    background-color: #f3f7fe;\n    border-radius: 8px;\n    width: 100%;\n    height: 44px;\n    border: 1px solid #d7cce4;\n    @media screen and (min-width: 769px) {\n      width: 113px;\n    }\n  }\n  .ant-select-selection-item {\n    font-weight: normal;\n    font-size: 14px;\n    line-height: 16px;\n    color: #3d3358;\n  }\n  .ant-select-arrow {\n    top: 50%;\n    svg {\n      @media screen and (max-width: 768px) {\n        height: 10px;\n      }\n    }\n  }\n  .ant-select-arrow svg {\n    color: #3d3358;\n  }\n  .ant-select-item-option-active,\n  .ant-select-item-option-selected {\n    background: #f5f2f8 !important;\n  }\n  ant-select-dropdown .ant-select-item-option-selected {\n    background: #f5f2f8 !important;\n    color: #564d6d;\n  }\n"]))),k=t(652),P=t(401),D=t(1);var V=function(){var n,e,t=Object(r.useState)(!1),O=Object(a.a)(t,2),h=O[0],v=O[1],w=Object(r.useContext)(j.a).activeWorkspaceData,x=N(),S=x.preference,A=x.onSettingChange,R=x.loadingUpdateSettings,C=x.onAutoRechargeFieldValueChange,y=x.resetAutoRechargeValues,$=x.onAutoRechargeSaveChanges,I=Object(r.useState)((function(){return!1})),V=Object(a.a)(I,2),F=V[0],T=V[1],B=function(){return T((function(n){return!n}))},q=Object(g.a)(),U=q.isTablet,_=q.isMobile,M=((null===w||void 0===w||null===(n=w.workspace)||void 0===n?void 0:n.data)||{}).plan,K=Object(k.a)({onModalCancel:B,setProcessing:v}),z=K.onPurchase,J=K.restricted,W=S.creditAutoRecharge,H=S.lowCreditNotification,Y=S.lowCreditBalanceRecharge,G=S.recharge,L=Object(d.h)(),Q=Object(p.a)(null===L||void 0===L?void 0:L.search),X=decodeURIComponent(null===Q||void 0===Q?void 0:Q.from);Object(r.useEffect)((function(){"dialer"===X&&T(!0)}),[X]);var Z=[1,5,20,30,40,50,250],nn=[10,20,30,40,50,100,250,500];return Object(D.jsxs)("div",{className:"flex flex-col w-full",children:[Object(D.jsx)(f.a,{title:"Credit",children:Object(D.jsx)(s.j,{onClick:B,children:U||_?"Purchase":"Purchase Credit"})}),Object(D.jsxs)("div",{className:"flex flex-col p-4 lg:p-6 max-w-800",children:[Object(D.jsx)(P.a,{heading:"Credit - $".concat(null!==(e=null===M||void 0===M?void 0:M.currentCredit)&&void 0!==e?e:0," USD"),subHeading:"Convenient and easy way for calling, messaging and call recordings Start purchasing credits now",vector:Object(D.jsx)(b.R,{})}),Object(D.jsx)("div",{className:"mt-10",children:Object(D.jsxs)(i.b,{size:36,direction:"vertical",className:"w-full",children:[Object(D.jsx)(P.i,{icon:Object(D.jsx)(l.Mb,{}),title:Object(D.jsx)(c.a,{i18nKey:"optionsCard.title.Notification",children:"Notification"}),description:"Notifications are sent when the credit reaches $10 USD.",onCh
1ange:A("lowCreditNotification"),initialValue:H,disabled:R}),Object(D.jsx)(P.i,{icon:Object(D.jsx)(l.xb,{}),title:Object(D.jsx)(c.a,{i18nKey:"optionsCard.title.autoRecharge",children:"Auto-Recharge"}),description:"Set your Call Credit to be automatically recharged  to your account.",onChange:C("creditAutoRecharge"),initialValue:W,disabled:R})]})}),W&&Object(D.jsxs)("div",{className:"border-t border-gray-100 mt-6 lg:ml-16",children:[Object(D.jsxs)("div",{className:"lg:flex items-center mt-6",children:[Object(D.jsx)("h6",{className:"text-sm text-gray font-semibold leading-normal",children:"When my balance is less than or equal to"}),Object(D.jsx)(E,{className:"lg:ml-6 mt-2 lg:mt-0",children:Object(D.jsx)(o.a,{value:Y,onChange:C("lowCreditBalanceRecharge"),children:null===Z||void 0===Z?void 0:Z.map((function(n){return Object(D.jsxs)(o.a.Option,{value:n,disabled:n>G,children:["$ ",n," USD"]},n)}))})})]}),Object(D.jsxs)("div",{className:"lg:flex items-center mt-4 lg:mt-9",children:[Object(D.jsx)("h6",{className:"text-sm text-gray font-semibold leading-normal",children:"Recharge a credit balance of amount"}),Object(D.jsx)(E,{className:"lg:ml-12 mt-2 lg:mt-0",children:Object(D.jsx)(o.a,{value:G,onChange:C("recharge"),children:null===nn||void 0===nn?void 0:nn.map((function(n){return Object(D.jsxs)(o.a.Option,{value:n,disabled:n<Y,children:["$ ",n," USD"]},n)}))})})]}),Object(D.jsxs)("div",{className:"flex mt-3.5 justify-end gap-2.5",children:[Object(D.jsx)(s.b,{onClick:y,children:"Cancel"}),Object(D.jsx)(s.b,{type:"primary",onClick:$,children:"Save Changes"})]})]})]}),Object(D.jsx)(u.g,{vector:Object(D.jsx)(b.r,{}),title:"Purchase Credits",subTitle:"Buy credit to make best out of Krispcall",buttonText:"Make Payment",isModalOpen:F,formId:"purchase-credit-form",onCancel:B,loading:J||h,maskClosable:!(J||h),children:Object(D.jsx)(m.a,{onSubmit:z})})]})};e.default=V}}]);
2//# sourceMappingURL=85.dd3692ed.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.