PageSourceSearch

https://secure.brainhi.com/static/js/788.a96d1754.chunk.js

js brainhi.com collected 2026-10-03 21:20:46 UTC 16,094 bytes, 2 lines download raw bytes

1/*! For license information please see 788.a96d1754.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunktelescope=self.webpackChunktelescope||[]).push([[788],{44132:(t,n,r)=>{r.d(n,{A:()=>f});var e=r(10467),o=r(80296),a=r(96540),i=r(17479),u=r(35906),c=r(98581);function l(){var t,n,r="function"==typeof Symbol?Symbol:{},e=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,e,o,a){var c=e&&e.prototype instanceof u?e:u,l=Object.create(c.prototype);return s(l,"_invoke",function(r,e,o){var a,u,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(n,r){return a=n,u=0,c=t,p.n=r,i}};function d(r,e){for(u=r,c=e,n=0;!f&&l&&!o&&n<s.length;n++){var o,a=s[n],d=p.p,g=a[2];r>3?(o=g===e)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&d<a[1])?(u=0,p.v=e,p.n=a[1]):d<g&&(o=r<3||a[0]>e||e>g)&&(a[4]=r,a[5]=e,p.n=g,u=0))}if(o||r>1)return i;throw f=!0,e}return function(o,s,g){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,g),u=s,c=g;(n=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(l=2,a){if(u||(o="next"),n=a[o]){if(!(n=n.call(a,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,u<2&&(u=0)}else 1===u&&(n=a.return)&&n.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((n=(f=p.n<0)?c:r.call(e,p))!==i)break}catch(n){a=t,u=1,c=n}finally{l=1}}return{value:n,done:f}}}(r,o,a),!0),l}var i={};function u(){}function c(){}function f(){}n=Object.getPrototypeOf;var p=[][e]?n(n([][e]())):(s(n={},e,function(){return this}),n),d=f.prototype=u.prototype=Object.create(p);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,s(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=f,s(d,"constructor",f),s(f,"constructor",c),c.displayName="GeneratorFunction",s(f,o,"GeneratorFunction"),s(d),s(d,o,"Generator"),s(d,e,function(){return this}),s(d,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:g}})()}function s(t,n,r,e){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}s=function(t,n,r,e){function a(n,r){s(t,n,function(t){return this._invoke(n,r,t)})}n?o?o(t,n,{value:r,enumerable:!e,configurable:!e,writable:!e}):t[n]=r:(a("next",0),a("throw",1),a("return",2))},s(t,n,r,e)}const f=function(){var t=(0,a.useState)(null),n=(0,o.A)(t,2),r=n[0],s=n[1],f=(0,a.useState)(!0),p=(0,o.A)(f,2),d=p[0],g=p[1],v=(0,a.useState)(null),b=(0,o.A)(v,2),_=b[0],y=b[1],h=(0,a.useCallback)((0,e.A)(l().m(function t(){var n,r,e;return l().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,g(!0),y(null),t.n=1,(0,c.Q9)();case 1:n=t.v,r=n.data.data,s(r),t.n=3;break;case 2:t.p=2,e=t.v,y(e),i.y8.error(u.OG.BILLING_CONFIG_FETCH_FAILURE),s({credit_cost:"1.0000",account_type:"SMB",volume_discount_percentage:"0.00",campaign_pause_threshold:10,minimum_commitment_enabled:!1,monthly_commitment_credits:0,auto_funding_enabled:!1,emergency_credit_enabled:!1,product_rates:{}});case 3:return t.p=3,g(!1),t.f(3);case 4:return t.a(2)}},t,null,[[0,2,3,4]])})),[]);(0,a.useEffect)(function(){h()}
2,[h]);var m=(0,a.useCallback)(function(){return parseFloat((null==r?void 0:r.credit_cost)||"1.0000")},[r]),O=(0,a.useCallback)(function(t){var n,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"pay_as_you_go_rate",o=null==r||null===(n=r.product_rates)||void 0===n?void 0:n[t];return o?parseFloat(o[e]||o.pay_as_you_go_rate||"1.0000"):null},[r]),w=(0,a.useCallback)(function(t){var n,e=null==r||null===(n=r.product_rates)||void 0===n?void 0:n[t];return(null==e?void 0:e.commitment_enabled)||!1},[r]);return{billingConfig:r,loading:d,error:_,refreshConfig:h,getCreditCost:m,getProductRate:O,hasCommitmentPricing:w}}},46714:(t,n,r)=>{r.d(n,{J:()=>c,Vg:()=>f,b4:()=>s,bi:()=>o,ge:()=>a,n1:()=>u,t1:()=>l,to:()=>i});var e=r(76225),o=function(t){return e.A.post("/lara/agent_campaigns",t)},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=new URLSearchParams;t.name&&n.append("name",t.name),t.status&&n.append("status",t.status),t.created_at&&n.append("created_at",t.created_at);var r=n.toString(),o=r?"/lara/agent_campaigns?".concat(r):"/lara/agent_campaigns";return e.A.get(o)},i=function(t){return e.A.get("/lara/agent_campaigns/".concat(t))},u=function(t,n){return e.A.post("/lara/agent_campaigns/".concat(t,"/assign"),n)},c=function(t){return e.A.post("/lara/agent_campaigns/".concat(t,"/start"))},l=function(t){return e.A.post("/lara/agent_campaigns/".concat(t,"/pause"))},s=function(t){return e.A.post("/lara/agent_calls/start_test_agent_call",t)},f=function(){return e.A.get("/lara/agent_modules")}},54145:(t,n,r)=>{r.d(n,{A:()=>f});var e=r(10467),o=r(80296),a=r(96540),i=r(17479),u=r(35906),c=r(98581);function l(){var t,n,r="function"==typeof Symbol?Symbol:{},e=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,e,o,a){var c=e&&e.prototype instanceof u?e:u,l=Object.create(c.prototype);return s(l,"_invoke",function(r,e,o){var a,u,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(n,r){return a=n,u=0,c=t,p.n=r,i}};function d(r,e){for(u=r,c=e,n=0;!f&&l&&!o&&n<s.length;n++){var o,a=s[n],d=p.p,g=a[2];r>3?(o=g===e)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&d<a[1])?(u=0,p.v=e,p.n=a[1]):d<g&&(o=r<3||a[0]>e||e>g)&&(a[4]=r,a[5]=e,p.n=g,u=0))}if(o||r>1)return i;throw f=!0,e}return function(o,s,g){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,g),u=s,c=g;(n=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(l=2,a){if(u||(o="next"),n=a[o]){if(!(n=n.call(a,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,u<2&&(u=0)}else 1===u&&(n=a.return)&&n.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((n=(f=p.n<0)?c:r.call(e,p))!==i)break}catch(n){a=t,u=1,c=n}finally{l=1}}return{value:n,done:f}}}(r,o,a),!0),l}var i={};function u(){}function c(){}function f(){}n=Object.getPrototypeOf;var p=[][e]?n(n([][e]())):(s(n={},e,function(){return this}),n),d=f.prototype=u.prototype=Object.create(p);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,s(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=f,s(d,"constructor",f),s(f,"constructor",c),c.displayName="GeneratorFunction",s(f,o,"GeneratorFunction"),s(d),s(d,o,"Generator"),s(d,e,function(){return this}),s(d,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:g}})()}function s(t,n,r,e){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}s=function(t,n,r,e){function a(n,r){s(t,n,function(t){return this._invoke(n,r,t)})}n?o?o(t,n,{value:r,enumerable:!e,configurable:!e,writable:!e}):t[n]=r:(a("next",0),a("throw",1),a("return",2))},s(t,n,r,e)}const f=function(){var t=(0,a.useState)(null),n=(0,o.A)(t,2),r=n[0],s=n[1],f=(0,a.useState)(!1),p=(0,o.A)(f,2),d=p[0],g=p[1],v=(0,a.useState)(null),b=(0,o.A)(v,2),_=b[0],y=b[1],h=(0,a.useCallback)((0,e.A)(l().m(function t(){var n,r,e,o;return l().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,g(!0),y(null),t.n=1,(0,c.fW)();case 1:return n=t.v,r=n.data,e=r.data,s(e.is_authorized),t.a(2,{isAuthorized:e.is_authorized,authorizationDate:e.authorization_date,requiresAuthorization:e.requires_authorization});case 2:return t.p=2,o=t.v,y(o),i.y8.error(u.OG.BILLING_CONFIG_FETCH_FAILURE),t.a(2,null);case 3:return t.p=3,g(!1),t.f(3);case 4:return t.a(2)}},t,null,[[0,2,3,4]])})),[]),m=(0,a.useCallback)(function(){var t=(0,e.A)(l().m(function t(n){var r,e,o,a;return l().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,g(!0),y(null),t.n=1,(0,c.sM)({signature:n.signature,accept_terms:n.accept_terms||!0});case 1:return r=t.v,e=r.data,s(!0),o=e.data,t.a(2,{success:!0,message:o.message,authorizedDate:o.authorization_date});case 2:return t.p=2,a=t.v,y(a),i.y8.error(u.OG.BILLING_PURCHASE_FAILURE),t.a(2,null);case 3:return t.p=3,g(!1),t.f(3);case 4:return t.a(2)}},t,null,[[0,2,3,4]])}));return function(n){return t.apply(this,arguments)}}(),[]);return{isAuthorized:r,loading:d,error:_,checkAuthorization:h,authorize:m}}},69920:(t,n,r)=>{r.d(n,{A:()=>f});var e=r(10467),o=r(80296),a=r(96540),i=r(17479),u=r(35906),c=r(98581);function l(){var t,n,r="function"==typeof Symbol?Symbol:{},e=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,e,o,a){var c=e&&e.prototype instanceof u?e:u,l=Object.create(c.prototype);return s(l,"_invoke",function(r,e,o){var a,u,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(n,r){return a=n,u=0,c=t,p.n=r,i}};function d(r,e){for(u=r,c=e,n=0;!f&&l&&!o&&n<s.length;n++){var o,a=s[n],d=p.p,g=a[2];r>3?(o=g===e)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&d<a[1])?(u=0,p.v=e,p.n=a[1]):d<g&&(o=r<3||a[0]>e||e>g)&&(a[4]=r,a[5]=e,p.n=g,u=0))}if(o||r>1)return i;throw f=!0,e}return function(o,s,g){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,g),u=s,c=g;(n=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(l=2,a){if(u||(o="next"),n=a[o]){if(!(n=n.call(a,c)))throw TypeError("iterator result is not an object");
2if(!n.done)return n;c=n.value,u<2&&(u=0)}else 1===u&&(n=a.return)&&n.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((n=(f=p.n<0)?c:r.call(e,p))!==i)break}catch(n){a=t,u=1,c=n}finally{l=1}}return{value:n,done:f}}}(r,o,a),!0),l}var i={};function u(){}function c(){}function f(){}n=Object.getPrototypeOf;var p=[][e]?n(n([][e]())):(s(n={},e,function(){return this}),n),d=f.prototype=u.prototype=Object.create(p);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,s(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=f,s(d,"constructor",f),s(f,"constructor",c),c.displayName="GeneratorFunction",s(f,o,"GeneratorFunction"),s(d),s(d,o,"Generator"),s(d,e,function(){return this}),s(d,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:g}})()}function s(t,n,r,e){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}s=function(t,n,r,e){function a(n,r){s(t,n,function(t){return this._invoke(n,r,t)})}n?o?o(t,n,{value:r,enumerable:!e,configurable:!e,writable:!e}):t[n]=r:(a("next",0),a("throw",1),a("return",2))},s(t,n,r,e)}const f=function(){var t,n=(0,a.useState)(null),r=(0,o.A)(n,2),s=r[0],f=r[1],p=(0,a.useState)(!1),d=(0,o.A)(p,2),g=d[0],v=d[1],b=(0,a.useState)(null),_=(0,o.A)(b,2),y=_[0],h=_[1],m=(0,a.useCallback)((0,e.A)(l().m(function t(){var n,r,e,o;return l().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,v(!0),h(null),t.n=1,(0,c.i9)();case 1:return n=t.v,r=n.data,e=r.data,f(e),t.a(2,e);case 2:return t.p=2,o=t.v,h(o),i.y8.error(u.OG.BILLING_BALANCE_FETCH_FAILURE),t.a(2,null);case 3:return t.p=3,v(!1),t.f(3);case 4:return t.a(2)}},t,null,[[0,2,3,4]])})),[]),O=(0,a.useCallback)(function(){return m()},[m]),w=(0,a.useCallback)(function(t){f(t)},[]);return(0,a.useEffect)(function(){m()},[m]),{balance:s,loading:g,error:y,fetchBalance:m,refreshBalance:O,updateBalance:w,totalAvailable:s?(t=s,null!=t&&t.breakdown?Object.values(t.breakdown).reduce(function(t,n){return t+parseFloat(n||0)},0):0):0,currentBalance:s?parseFloat(s.total_balance||0):0,trialCreditsRemaining:s?function(t){return null!=t&&t.breakdown?parseFloat(t.breakdown.TRIAL||0):0}(s):0,breakdown:(null==s?void 0:s.breakdown)||{},profile:(null==s?void 0:s.profile)||{}}}},78784:(t,n,r)=>{r.d(n,{tV:()=>f}),r(54145),r(69920),r(44132);var e=r(10467),o=r(80296),a=r(96540),i=r(17479),u=r(35906),c=r(98581);function l(){var t,n,r="function"==typeof Symbol?Symbol:{},e=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,e,o,a){var c=e&&e.prototype instanceof u?e:u,l=Object.create(c.prototype);return s(l,"_invoke",function(r,e,o){var a,u,c,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(n,r){return a=n,u=0,c=t,p.n=r,i}};function d(r,e){for(u=r,c=e,n=0;!f&&l&&!o&&n<s.length;n++){var o,a=s[n],d=p.p,g=a[2];r>3?(o=g===e)&&(c=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=r<2&&d<a[1])?(u=0,p.v=e,p.n=a[1]):d<g&&(o=r<3||a[0]>e||e>g)&&(a[4]=r,a[5]=e,p.n=g,u=0))}if(o||r>1)return i;throw f=!0,e}return function(o,s,g){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&d(s,g),u=s,c=g;(n=u<2?t:c)||!f;){a||(u?u<3?(u>1&&(p.n=-1),d(u,c)):p.n=c:p.v=c);try{if(l=2,a){if(u||(o="next"),n=a[o]){if(!(n=n.call(a,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,u<2&&(u=0)}else 1===u&&(n=a.return)&&n.call(a),u<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=t}else if((n=(f=p.n<0)?c:r.call(e,p))!==i)break}catch(n){a=t,u=1,c=n}finally{l=1}}return{value:n,done:f}}}(r,o,a),!0),l}var i={};function u(){}function c(){}function f(){}n=Object.getPrototypeOf;var p=[][e]?n(n([][e]())):(s(n={},e,function(){return this}),n),d=f.prototype=u.prototype=Object.create(p);function g(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,s(t,o,"GeneratorFunction")),t.prototype=Object.create(d),t}return c.prototype=f,s(d,"constructor",f),s(f,"constructor",c),c.displayName="GeneratorFunction",s(f,o,"GeneratorFunction"),s(d),s(d,o,"Generator"),s(d,e,function(){return this}),s(d,"toString",function(){return"[object Generator]"}),(l=function(){return{w:a,m:g}})()}function s(t,n,r,e){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}s=function(t,n,r,e){function a(n,r){s(t,n,function(t){return this._invoke(n,r,t)})}n?o?o(t,n,{value:r,enumerable:!e,configurable:!e,writable:!e}):t[n]=r:(a("next",0),a("throw",1),a("return",2))},s(t,n,r,e)}const f=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).showErrorToast,n=void 0===t||t,r=(0,a.useState)(null),s=(0,o.A)(r,2),f=s[0],p=s[1],d=(0,a.useState)(!1),g=(0,o.A)(d,2),v=g[0],b=g[1],_=(0,a.useState)(null),y=(0,o.A)(_,2),h=y[0],m=y[1],O=(0,a.useCallback)((0,e.A)(l().m(function t(){var r,e,o,a;return l().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,b(!0),m(null),t.n=1,(0,c.wL)();case 1:return r=t.v,e=r.data,o=e.data,p(o),t.a(2,o);case 2:return t.p=2,a=t.v,m(a),n&&i.y8.error(u.OG.BILLING_USAGE_FETCH_FAILURE),t.a(2,null);case 3:return t.p=3,b(!1),t.f(3);case 4:return t.a(2)}},t,null,[[0,2,3,4]])})),[n]),w=(0,a.useCallback)(function(){return O()},[O]);(0,a.useEffect)(function(){O()},[O]);var A,S,j=function(){var t;return(null==f||null===(t=f.credits)||void 0===t?void 0:t.by_source)||[]},C=function(){var t;return(null==f||null===(t=f.credits)||void 0===t?void 0:t.by_type)||{}};return{usageData:f,loading:v,error:h,fetchUsageData:O,refreshUsageData:w,peri
2odInfo:null!=f&&f.period?{start:new Date(f.period.start),end:new Date(f.period.end),status:f.period.status}:null,creditsBySource:j(),consumptionByType:C(),totals:(null==f||null===(S=f.credits)||void 0===S?void 0:S.totals)||{allocation:0,consumption:0,percentage:0},trialCreditsInfo:j().find(function(t){return"TRIAL"===t.source})||{allocated:0,consumed:0,percentage:0},topConsumingProducts:(A=C(),Object.entries(A).map(function(t){var n=(0,o.A)(t,2),r=n[0];return{name:r,credits:n[1],type:r}}).sort(function(t,n){return n.credits-t.credits}).slice(0,3)),creditsBySourceForTier:j()}}},98581:(t,n,r)=>{r.d(n,{Q9:()=>c,Tu:()=>s,_Z:()=>f,fW:()=>o,i9:()=>u,sM:()=>a,sy:()=>i,wL:()=>l});var e=r(36256),o=function(){return e.nC.get("/billing/billing/is_billing_admin")},a=function(t){return e.nC.post("/billing/billing/authorize_billing",{terms_version:t.terms_version||"1.0",signature_ip:t.signature_ip||null})},i=function(t){return e.nC.post("/billing/billing/add_credits",{amount:t.amount,payment_method_id:t.payment_method_id||null,description:t.description||"Manual credit purchase"})},u=function(){return e.nC.get("/billing/billing/balance")},c=function(){return e.nC.get("/billing/billing/billing_config")},l=function(){return e.nC.get("/billing/billing/current_period_usage")},s=function(){return e.nC.get("/billing/billing/usage_alerts_config")},f=function(t){return e.nC.patch("/billing/billing/usage_alerts_config",t)}}}]);//# sourceMappingURL=788.a96d1754.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.