@cyberskill/shared 1.193.0 → 1.195.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_tsup-dts-rollup.d.cts +76 -5
- package/dist/_tsup-dts-rollup.d.ts +76 -5
- package/dist/node/cli/cli.util.cjs +1 -1
- package/dist/node/cli/cli.util.js +1 -1
- package/dist/node/cli/index.cjs +1 -1
- package/dist/node/cli/index.js +1 -1
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.js +1 -1
- package/dist/react/apollo-client/apollo-client.component.cjs +1 -1
- package/dist/react/apollo-client/apollo-client.component.js +1 -1
- package/dist/react/apollo-client/apollo-client.context.cjs +1 -0
- package/dist/react/apollo-client/apollo-client.context.d.cts +2 -0
- package/dist/react/apollo-client/apollo-client.context.d.ts +2 -0
- package/dist/react/apollo-client/apollo-client.context.js +1 -0
- package/dist/react/apollo-client/apollo-client.hook.cjs +1 -0
- package/dist/react/apollo-client/apollo-client.hook.d.cts +1 -0
- package/dist/react/apollo-client/apollo-client.hook.d.ts +1 -0
- package/dist/react/apollo-client/apollo-client.hook.js +1 -0
- package/dist/react/apollo-client/apollo-client.util.cjs +1 -0
- package/dist/react/apollo-client/apollo-client.util.css +1 -0
- package/dist/react/apollo-client/apollo-client.util.d.cts +1 -0
- package/dist/react/apollo-client/apollo-client.util.d.ts +1 -0
- package/dist/react/apollo-client/apollo-client.util.js +1 -0
- package/dist/react/apollo-client/index.cjs +1 -1
- package/dist/react/apollo-client/index.d.cts +12 -0
- package/dist/react/apollo-client/index.d.ts +12 -0
- package/dist/react/apollo-client/index.js +1 -1
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.d.cts +12 -0
- package/dist/react/index.d.ts +12 -0
- package/dist/react/index.js +1 -1
- package/dist/react/userback/index.cjs +1 -0
- package/dist/react/userback/index.d.cts +3 -0
- package/dist/react/userback/index.d.ts +3 -0
- package/dist/react/userback/index.js +1 -0
- package/dist/react/userback/userback.component.cjs +1 -0
- package/dist/react/userback/userback.component.d.cts +1 -0
- package/dist/react/userback/userback.component.d.ts +1 -0
- package/dist/react/userback/userback.component.js +1 -0
- package/dist/react/userback/userback.type.cjs +1 -0
- package/dist/react/userback/userback.type.d.cts +2 -0
- package/dist/react/userback/userback.type.d.ts +2 -0
- package/dist/react/userback/userback.type.js +0 -0
- package/package.json +9 -2
package/dist/react/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,r){if(r==null||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function r(e){if(Array.isArray(e))return e}function t(r){if(Array.isArray(r))return e(r)}function n(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function o(e,r,t,n,o,a,i){try{var l=e[a](i);var u=l.value}catch(e){t(e);return}if(l.done){r(u)}else{Promise.resolve(u).then(n,o)}}function a(e){return function(){var r=this,t=arguments;return new Promise(function(n,a){var i=e.apply(r,t);function l(e){o(i,n,a,l,u,"next",e)}function u(e){o(i,n,a,l,u,"throw",e)}l(undefined)})}}function i(e,r,t){r=E(r);return h(e,C()?Reflect.construct(r,t||[],E(e).constructor):r.apply(e,t))}function l(e,r){if(!(e instanceof r)){throw new TypeError("Cannot call a class as a function")}}function u(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function s(e,r,t){if(r)u(e.prototype,r);if(t)u(e,t);return e}function c(e,r,t){if(r in e){Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true})}else{e[r]=t}return e}function E(e){E=Object.setPrototypeOf?Object.getPrototypeOf:function e(e){return e.__proto__||Object.getPrototypeOf(e)};return E(e)}function f(e,r){if(typeof r!=="function"&&r!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:true,configurable:true}});if(r)y(e,r)}function d(e,r){if(r!=null&&typeof Symbol!=="undefined"&&r[Symbol.hasInstance]){return!!r[Symbol.hasInstance](e)}else{return e instanceof r}}function m(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p(e,r){var t=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t==null)return;var n=[];var o=true;var a=false;var i,l;try{for(t=t.call(e);!(o=(i=t.next()).done);o=true){n.push(i.value);if(r&&n.length===r)break}}catch(e){a=true;l=e}finally{try{if(!o&&t["return"]!=null)t["return"]()}finally{if(a)throw l}}return n}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};var n=Object.keys(t);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))}n.forEach(function(r){c(e,r,t[r])})}return e}function O(e,r){if(e==null)return{};var t=A(e,r);var n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++){n=a[o];if(r.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;t[n]=e[n]}}return t}function A(e,r){if(e==null)return{};var t={};var n=Object.keys(e);var o,a;for(a=0;a<n.length;a++){o=n[a];if(r.indexOf(o)>=0)continue;t[o]=e[o]}return t}function h(e,r){if(r&&(T(r)==="object"||typeof r==="function")){return r}return n(e)}function y(e,r){y=Object.setPrototypeOf||function e(e,r){e.__proto__=r;return e};return y(e,r)}function g(e,t){return r(e)||p(e,t)||N(e,t)||v()}function b(e){return t(e)||m(e)||N(e)||S()}function T(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function N(r,t){if(!r)return;if(typeof r==="string")return e(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor)n=r.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(r,t)}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(C=function(){return!!e})()}function D(e,r){var t,n,o,a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=l(0),i["throw"]=l(1),i["return"]=l(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(e){return function(r){return u([e,r])}}function u(l){if(t)throw new TypeError("Generator is already executing.");while(i&&(i=0,l[0]&&(a=0)),a)try{if(t=1,n&&(o=l[0]&2?n["return"]:l[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;if(n=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;n=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(l[0]===6&&a.label<o[1]){a.label=o[1];o=l;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(l);break}if(o[2])a.ops.pop();a.trys.pop();continue}l=r.call(e,a)}catch(e){l=[6,e];n=0}finally{t=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}}var I=Object.defineProperty;var R=function(e,r,t){return r in e?I(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t};var L=function(e,r){return I(e,"name",{value:r,configurable:!0})};var M=function(e,r,t){return R(e,(typeof r==="undefined"?"undefined":T(r))!="symbol"?r+"":r,t)};import{ApolloClient as w,ApolloError as G,InMemoryCache as P}from"@apollo/client/core/core.cjs";import{ApolloLink as k,from as U,split as x}from"@apollo/client/link/core/core.cjs";import{onError as F}from"@apollo/client/link/error/error.cjs";import{HttpLink as Q}from"@apollo/client/link/http/http.cjs";import{removeTypenameFromVariables as j}from"@apollo/client/link/remove-typename/remove-typename.cjs";import{GraphQLWsLink as z}from"@apollo/client/link/subscriptions/subscriptions.cjs";import{ApolloProvider as q}from"@apollo/client/react/react.cjs";import{getMainDefinition as H}from"@apollo/client/utilities/utilities.cjs";import{createClient as B}from"graphql-ws";import V,{useMemo as Y}from"react";import W,{use as J}from"react";import{createContext as X}from"react";var K=X(void 0);var Z={"modal-backdrop":"_modal-backdrop_8fveh_1","modal-content":"_modal-content_8fveh_11","btn-close":"_btn-close_8fveh_22","error-title":"_error-title_8fveh_36","btn-retry":"_btn-retry_8fveh_41","error-details":"_error-details_8fveh_54",main:"_main_8fveh_72",network:"_network_8fveh_75",extra:"_extra_8fveh_78"};function $(){var e=J(K),r=e===null||e===void 0?void 0:e.error;if(!r)return null;var t=L(function(e,r){return(r===null||r===void 0?void 0:r.length)?W.createElement("div",null,W.createElement("strong",null,e,":"),W.createElement("ul",null,r.map(function(e){return W.createElement("li",{key:e.message},e.message)}))):null},"renderErrorList");return W.createElement("div",{className:Z["modal-backdrop"]},W.createElement("div",{className:Z["modal-content"]},W.createElement("button",{type:"button",className:Z["btn-close"],onClick:e.hideError},"✕"),W.createElement("div",{className:Z["error-title"]},W.createElement("button",{type:"button",className:Z["btn-retry"],onClick:L(function(){return window.location.reload()},"onClick")},"Reload")," ",r.message),W.createElement("div",{className:Z["error-details"]},r.networkError&&W.createElement("pre",{className:"network"},W.createElement("strong",null,"Network Error:")," ",r.networkError.message),t("GraphQL Errors",b(r.graphQLErrors)),t("Protocol Errors",b(r.protocolErrors)),t("Client Errors",b(r.clientErrors)),r.extraInfo&&W.createElement("pre",{className:"extra"},W.createElement("strong",null,"Extra Info:")," ",JSON.stringify(r.extraInfo,null,4)))))}L($,"ApolloErrorComponent");import{use as ee}from"react";function er(){var e=ee(K);if(!e)throw new Error("useApolloError must be used within ApolloErrorProvider");return e}L(er,"useApolloError");import et,{useEffect as en,useMemo as eo,useState as ea}from"react";var ei=null;function el(e){ei=e}L(el,"setGlobalApolloErrorCallback");function eu(e){ei===null||ei===void 0?void 0:ei(e)}L(eu,"showGlobalApolloError");function es(e){var r=e.children;var t=g(ea(null),2),n=t[0],o=t[1];en(function(){el(o)},[]);var a=eo(function(){return{error:n,showError:o,hideError:L(function(){return o(null)},"hideError")}},[n]);return et.createElement(K,{value:a},r)}L(es,"ApolloErrorProvider");import{consola as ec}from"consola/browser";var eE={GRAPHQL_PARSE_FAILED:{CODE:"GRAPHQL_PARSE_FAILED",MESSAGE:"The GraphQL operation string contains a syntax error."},GRAPHQL_VALIDATION_FAILED:{CODE:"GRAPHQL_VALIDATION_FAILED",MESSAGE:"The GraphQL operation is not valid against the server's schema."},BAD_USER_INPUT:{CODE:"BAD_USER_INPUT",MESSAGE:"The GraphQL operation includes an invalid value for a field argument."},PERSISTED_QUERY_NOT_FOUND:{CODE:"PERSISTED_QUERY_NOT_FOUND",MESSAGE:"A client sent the hash of a query string to execute via automatic persisted queries, but the query was not in the APQ cache."},PERSISTED_QUERY_NOT_SUPPORTED:{CODE:"PERSISTED_QUERY_NOT_SUPPORTED",MESSAGE:"A client sent the hash of a query string to execute via automatic persisted queries, but the server has disabled APQ."},OPERATION_RESOLUTION_FAILURE:{CODE:"OPERATION_RESOLUTION_FAILURE",MESSAGE:"The request was parsed successfully and is valid against the server's schema, but the server couldn't resolve which operation to run. This occurs when a request containing multiple named operations doesn't specify which operation to run (i.e.,operationName), or if the named operation isn't included in the request."},CONTINUE:{CODE:100,MESSAGE:"Continue"},SWITCHING_PROTOCOLS:{CODE:101,MESSAGE:"Switching Protocols"},PROCESSING:{CODE:102,MESSAGE:"Processing"},OK:{CODE:200,MESSAGE:"OK"},CREATED:{CODE:201,MESSAGE:"Created"},ACCEPTED:{CODE:202,MESSAGE:"Accepted"},NON_AUTHORITATIVE_INFORMATION:{CODE:203,MESSAGE:"Non Authoritative Information"},NO_CONTENT:{CODE:204,MESSAGE:"No Content"},RESET_CONTENT:{CODE:205,MESSAGE:"Reset Content"},PARTIAL_CONTENT:{CODE:206,MESSAGE:"Partial Content"},MULTI_STATUS:{CODE:207,MESSAGE:"Multi-Status"},MULTIPLE_CHOICES:{CODE:300,MESSAGE:"Multiple Choices"},MOVED_PERMANENTLY:{CODE:301,MESSAGE:"Moved Permanently"},MOVED_TEMPORARILY:{CODE:302,MESSAGE:"Moved Temporarily"},SEE_OTHER:{CODE:303,MESSAGE:"See Other"},NOT_MODIFIED:{CODE:304,MESSAGE:"Not Modified"},USE_PROXY:{CODE:305,MESSAGE:"Use Proxy"},TEMPORARY_REDIRECT:{CODE:307,MESSAGE:"Temporary Redirect"},PERMANENT_REDIRECT:{CODE:308,MESSAGE:"Permanent Redirect"},BAD_REQUEST:{CODE:400,MESSAGE:"Bad Request"},UNAUTHORIZED:{CODE:401,MESSAGE:"Unauthorized"},PAYMENT_REQUIRED:{CODE:402,MESSAGE:"Payment Required"},FORBIDDEN:{CODE:403,MESSAGE:"Forbidden"},NOT_FOUND:{CODE:404,MESSAGE:"Not Found"},METHOD_NOT_ALLOWED:{CODE:405,MESSAGE:"Method Not Allowed"},NOT_ACCEPTABLE:{CODE:406,MESSAGE:"Not Acceptable"},PROXY_AUTHENTICATION_REQUIRED:{CODE:407,MESSAGE:"Proxy Authentication Required"},REQUEST_TIMEOUT:{CODE:408,MESSAGE:"Request Timeout"},CONFLICT:{CODE:409,MESSAGE:"Conflict"},GONE:{CODE:410,MESSAGE:"Gone"},LENGTH_REQUIRED:{CODE:411,MESSAGE:"Length Required"},PRECONDITION_FAILED:{CODE:412,MESSAGE:"Precondition Failed"},REQUEST_TOO_LONG:{CODE:413,MESSAGE:"Request Entity Too Large"},REQUEST_URI_TOO_LONG:{CODE:414,MESSAGE:"Request-URI Too Long"},UNSUPPORTED_MEDIA_TYPE:{CODE:415,MESSAGE:"Unsupported Media Type"},REQUESTED_RANGE_NOT_SATISFIABLE:{CODE:416,MESSAGE:"Requested Range Not Satisfiable"},EXPECTATION_FAILED:{CODE:417,MESSAGE:"Expectation Failed"},IM_A_TEAPOT:{CODE:418,MESSAGE:"I'm a teapot"},INSUFFICIENT_SPACE_ON_RESOURCE:{CODE:419,MESSAGE:"Insufficient Space on Resource"},METHOD_FAILURE:{CODE:420,MESSAGE:"Method Failure"},MISDIRECTED_REQUEST:{CODE:421,MESSAGE:"Misdirected Request"},UNPROCESSABLE_ENTITY:{CODE:422,MESSAGE:"Unprocessable Entity"},LOCKED:{CODE:423,MESSAGE:"Locked"},FAILED_DEPENDENCY:{CODE:424,MESSAGE:"Failed Dependency"},PRECONDITION_REQUIRED:{CODE:428,MESSAGE:"Precondition Required"},TOO_MANY_REQUESTS:{CODE:429,MESSAGE:"Too Many Requests"},REQUEST_HEADER_FIELDS_TOO_LARGE:{CODE:431,MESSAGE:"Request Header Fields Too Large"},UNAVAILABLE_FOR_LEGAL_REASONS:{CODE:451,MESSAGE:"Unavailable For Legal Reasons"},INTERNAL_SERVER_ERROR:{CODE:500,MESSAGE:"Internal Server Error"},NOT_IMPLEMENTED:{CODE:501,MESSAGE:"Not Implemented"},BAD_GATEWAY:{CODE:502,MESSAGE:"Bad Gateway"},SERVICE_UNAVAILABLE:{CODE:503,MESSAGE:"Service Unavailable"},GATEWAY_TIMEOUT:{CODE:504,MESSAGE:"Gateway Timeout"},HTTP_VERSION_NOT_SUPPORTED:{CODE:505,MESSAGE:"HTTP Version Not Supported"},INSUFFICIENT_STORAGE:{CODE:507,MESSAGE:"Insufficient Storage"},NETWORK_AUTHENTICATION_REQUIRED:{CODE:511,MESSAGE:"Network Authentication Required"}};var ef={silent:ec.silent,level:ec.level,fatal:ec.fatal,error:ec.error,warn:ec.warn,log:ec.log,info:ec.info,success:ec.success,ready:ec.ready,start:ec.start,box:ec.box,debug:ec.debug,trace:ec.trace,verbose:ec.verbose};function ed(e,r){var t=r!==null&&r!==void 0?r:{},n=t.shouldLog,o=n===void 0?!0:n,a=t.returnValue,i=t.callback,l=d(e,Error)?e:new Error(typeof e=="string"?e:"Unknown error");return o&&ef.error(l.message),i&&typeof i=="function"&&i(l),a||{success:!1,message:l.message,code:eE.INTERNAL_SERVER_ERROR.CODE}}L(ed,"catchError");import{toast as em,Toaster as ep}from"react-hot-toast";var ev="/graphql";var eS,e_=(eS=/*#__PURE__*/function(e){"use strict";f(r,e);function r(){l(this,r);var e;e=i(this,r,arguments);M(e,"count",0);return e}s(r,[{key:"request",value:function e(e,r){var t=this;var n=Date.now();return this.count+=1,r(e).map(function(r){var o=Date.now()-n,a=e.operationName||"Unnamed";return ef.info("[Apollo] #".concat(t.count,": ").concat(a," (").concat(o,"ms)")),r})}}]);return r}(k),L(eS,"DevLoggerLink"),eS);function eO(e){var r=e.uri,t=e.wsUrl,n=e.customLinks,o=new e_,a=F(function(e){var r=e.graphQLErrors,t=e.networkError,n=e.protocolErrors,o=e.operation;var a=(o===null||o===void 0?void 0:o.operationName)||"Unknown";if(r&&r.forEach(function(e){var r=e.message,t=e.locations,n=e.path;ef.error("[GraphQL error] ".concat(a,": ").concat(r,", Location: ").concat(JSON.stringify(t,null,4),", Path: ").concat(n))}),n&&n.forEach(function(e){var r=e.message,t=e.extensions;ef.error("[Protocol error]: ".concat(r,", Extensions: ").concat(JSON.stringify(t,null,4)))}),t&&ef.error("[Network error]: ".concat(t)),r||n||t){var i,l;var u=(r===null||r===void 0?void 0:(i=r[0])===null||i===void 0?void 0:i.message)||(n===null||n===void 0?void 0:(l=n[0])===null||l===void 0?void 0:l.message)||(t===null||t===void 0?void 0:t.message)||"Unexpected error",s=new G({graphQLErrors:r||[],protocolErrors:n||[],clientErrors:[],networkError:t||null,errorMessage:u,extraInfo:{operation:o}});em.error(function(e){return V.createElement(V.Fragment,null,u,"\xa0",V.createElement("button",{type:"button",onClick:L(function(){setTimeout(function(){eu(s)},0),em.dismiss(e.id)},"onClick")},"Show Details"))})}}),i=j();r||ef.warn('[Apollo] No GraphQL URI provided — using "'.concat(ev,'" as default'));var l=new Q({uri:r!==null&&r!==void 0?r:ev,credentials:"include"}),u=t?new z(B({url:t})):k.empty(),s=d(u,k)?x(function(e){var r=e.query;var t=H(r);return t.kind==="OperationDefinition"&&t.operation==="subscription"},u,l):l;return s===l&&t&&ef.warn("[Apollo] WS URL is set, but subscriptions fallback to HTTP. Check your wsLink config."),[o,a,i].concat(b(n!==null&&n!==void 0?n:[]),[s])}L(eO,"createApolloLinks");function eA(e){var r=e.isNextJS,t=e.options,n=e.children,o=e.client,a=e.provider,i=e.cache;var l=t||{},u=l.uri,s=l.wsUrl,c=l.customLinks,E=O(l,["uri","wsUrl","customLinks"]),f=o!==null&&o!==void 0?o:w;if(typeof f!="function")throw new TypeError("Invalid ApolloClient provided. Ensure CustomClient is a class.");var m=a||q,p=Y(function(){return U(eO({uri:u!==null&&u!==void 0?u:ev,wsUrl:s!==null&&s!==void 0?s:"",customLinks:c!==null&&c!==void 0?c:[]}))},[u,s,c]),v=Y(function(){return d(i,P)?i:new P},[i]),S=Y(function(){return new f(_({link:p,cache:v},E))},[f,p,v,E]),A=r?V.createElement(m,{makeClient:L(function(){return S},"makeClient")},n):V.createElement(m,{client:S},n);return V.createElement(V.Fragment,null,V.createElement(es,null,A,V.createElement($,null)),V.createElement(ep,{position:"top-right"}))}L(eA,"ApolloProvider");import{useLazyQuery as eh,useMutation as ey,useQuery as eg,useSubscription as eb}from"@apollo/client/react/hooks/hooks.cjs";import{useTranslation as eT}from"react-i18next";var eN=eT;import eC from"i18next";import{initReactI18next as eD}from"react-i18next";function eI(e){return eC.use(eD).init(e)}L(eI,"initI18next");import eR from"clsx";import eL,{useEffect as eM}from"react";var ew={overlay:"_overlay_1ank4_1",fullscreen:"_fullscreen_1ank4_1",block:"_block_1ank4_2","overlay-fade-in":"_overlay-fade-in_1ank4_1",container:"_container_1ank4_35",ring:"_ring_1ank4_45",rotate1:"_rotate1_1ank4_1",rotate2:"_rotate2_1ank4_1",rotate3:"_rotate3_1ank4_1",rotate4:"_rotate4_1ank4_1",message:"_message_1ank4_69","text-fade":"_text-fade_1ank4_1"};function eG(){if(document.getElementById("noscroll-style"))return;var e=document.createElement("style");e.id="noscroll-style",e.innerHTML="\n .noscroll {\n overflow: hidden !important;\n height: 100vh !important;\n }\n ",document.head.appendChild(e)}L(eG,"injectNoScrollStyle");function eP(e){var r=e.full,t=r===void 0?!1:r,n=e.block,o=n===void 0?!1:n,a=e.className,i=a===void 0?"":a,l=e.message,u=l===void 0?"Loading":l,s=O(e,["full","block","className","message"]);eM(function(){if(t){document.body.classList.add("noscroll");var e=L(function(e){return e.preventDefault()},"handleContextMenu");return document.addEventListener("contextmenu",e),function(){document.body.classList.remove("noscroll"),document.removeEventListener("contextmenu",e)}}},[t]),eM(function(){eG()},[]);function c(){return eL.createElement("div",_({className:ew.container},s),eL.createElement("div",{className:ew.ring}),eL.createElement("div",{className:ew.ring}),eL.createElement("div",{className:ew.ring}),eL.createElement("div",{className:ew.ring}),u&&eL.createElement("div",{className:ew.message},u))}return L(c,"_renderLoading"),t?eL.createElement("div",{className:eR(ew.fullscreen,i)},c()):o?eL.createElement("div",{className:eR(ew.block,i)},c()):c()}L(eP,"Loading");import{createContext as ek}from"react";var eU=ek(void 0);import{use as ex}from"react";function eF(){var e=ex(eU);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}L(eF,"useLoading");import eQ,{useCallback as ej,useMemo as ez,useState as eq}from"react";function eH(e){var r=e.children;var t=g(eq(!1),2),n=t[0],o=t[1],a=g(eq(!1),2),i=a[0],l=a[1],u=ej(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;o(!0),l(e)},[]),s=ej(function(){o(!1),l(!1)},[]),c=ez(function(){return{isLoading:n,isGlobalLoading:i,showLoading:u,hideLoading:s}},[n,i,u,s]);return eQ.createElement(eU,{value:c},n?eQ.createElement(eP,{full:i}):r)}L(eH,"LoadingProvider");import{enUS as eB}from"date-fns/locale";var eV={label:"English",value:"en",flag:"\uD83C\uDDFA\uD83C\uDDF8",adapterLocale:eB,icon:"flagpack:gb-nir",numberFormat:{code:"en-US",currency:"USD"},timezone:"America/New_York"};import{createContext as eY}from"react";var eW=eY(void 0);import{NextIntlClientProvider as eJ}from"next-intl";import eX from"react";import{useTranslations as eK}from"next-intl";import{use as eZ}from"react";function e$(){var e=eZ(eW);if(!e)throw new Error("useNextIntl must be used within a NextIntlProvider");return e}L(e$,"useNextIntl");var e0=eK;function e1(e){var r=L(function(r){var t;var n;var o=e$(),a=o.currentLanguage,i=r.messages,l=r.languages,u="en",s=i[(a===null||a===void 0?void 0:a.value)||u],c=(n=(t=l.find(function(e){return e.value===(a===null||a===void 0?void 0:a.value)}))===null||t===void 0?void 0:t.timezone)!==null&&n!==void 0?n:eV.timezone;return i?eX.createElement(eJ,{locale:(a===null||a===void 0?void 0:a.value)||u,messages:s||null,timeZone:c},eX.createElement(e,r)):(ef.warn("Missing messages for language: ".concat((a===null||a===void 0?void 0:a.value)||u)),null)},"PageWithI18n");return r.displayName="withNextIntl(".concat(e.displayName||e.name||"Component",")"),r}L(e1,"withNextIntl");import e2,{useMemo as e4}from"react";import{useCallback as e3,useEffect as e8,useState as e5}from"react";var e7={Date:{is:L(function(e){return d(e,Date)},"is"),serialize:L(function(e){return{__type:"Date",value:e.toISOString()}},"serialize"),deserialize:L(function(e){return new Date(e)},"deserialize")},Map:{is:L(function(e){return d(e,Map)},"is"),serialize:L(function(e){return{__type:"Map",value:Array.from(e.entries())}},"serialize"),deserialize:L(function(e){return new Map(e)},"deserialize")},Set:{is:L(function(e){return d(e,Set)},"is"),serialize:L(function(e){return{__type:"Set",value:Array.from(e)}},"serialize"),deserialize:L(function(e){return new Set(e)},"deserialize")},RegExp:{is:L(function(e){return d(e,RegExp)},"is"),serialize:L(function(e){return{__type:"RegExp",value:{source:e.source,flags:e.flags}}},"serialize"),deserialize:L(function(e){var r=e.source,t=e.flags;return new RegExp(r,t)},"deserialize")},BigInt:{is:L(function(e){return(typeof e==="undefined"?"undefined":T(e))=="bigint"},"is"),serialize:L(function(e){return{__type:"BigInt",value:e.toString()}},"serialize"),deserialize:L(function(e){return BigInt(e)},"deserialize")}},e6={serialize:function e(e){return JSON.stringify(e,function(e,r){var t=true,n=false,o=undefined;try{for(var a=Object.keys(e7)[Symbol.iterator](),i;!(t=(i=a.next()).done);t=true){var l=i.value;var u=e7[l];if(u.is(r))return u.serialize(r)}}catch(e){n=true;o=e}finally{try{if(!t&&a.return!=null){a.return()}}finally{if(n){throw o}}}return r})},deserialize:function e(e){return JSON.parse(e,function(e,r){if(r&&(typeof r==="undefined"?"undefined":T(r))=="object"&&"__type"in r&&typeof r.__type=="string"){var t=r.__type,n=e7[t];if(n)return n.deserialize(r.value)}return r})}};import e9 from"localforage";var re={get:function e(e){return a(function(){var r;return D(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,e9.getItem(e)];case 1:return[2,t.sent()];case 2:r=t.sent();return[2,ed(r,{returnValue:null})];case 3:return[2]}})})()},set:function e(e,r){return a(function(){var t;return D(this,function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,e9.setItem(e,r)];case 1:n.sent();return[3,3];case 2:t=n.sent();ed(t);return[3,3];case 3:return[2]}})})()},remove:function e(e){return a(function(){var r;return D(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,e9.removeItem(e)];case 1:t.sent();return[3,3];case 2:r=t.sent();ed(r);return[3,3];case 3:return[2]}})})()},keys:function e(){return a(function(){var e,r;return D(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,e9.keys()];case 1:return[2,(e=t.sent())!==null&&e!==void 0?e:[]];case 2:r=t.sent();return[2,ed(r,{returnValue:[]})];case 3:return[2]}})})()}};function rr(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e6;var n=g(e5(r),2),o=n[0],i=n[1],l=g(e5(!1),2),u=l[0],s=l[1];e8(function(){var n=!0;return L(function(){return a(function(){var o,a,l,u;return D(this,function(c){switch(c.label){case 0:c.trys.push([0,6,7,8]);return[4,re.get(e)];case 1:o=c.sent();if(!n)return[3,5];if(!(o!==null))return[3,2];a=t.deserialize(o);i(a);return[3,5];case 2:if(!(r!==void 0))return[3,4];l=t.serialize(r);return[4,re.set(e,l)];case 3:c.sent(),i(r);return[3,5];case 4:i(void 0);c.label=5;case 5:return[3,8];case 6:u=c.sent();ed(u),n&&i(r);return[3,8];case 7:n&&s(!0);return[7];case 8:return[2]}})})()},"loadValue")(),function(){n=!1,s(!1)}},[e,r,t]),e8(function(){if(!u)return;L(function(){return a(function(){var r,n;return D(this,function(a){switch(a.label){case 0:a.trys.push([0,3,,4]);if(!(o!==void 0))return[3,2];r=t.serialize(o);return[4,re.set(e,r)];case 1:a.sent();a.label=2;case 2:return[3,4];case 3:n=a.sent();ed(n);return[3,4];case 4:return[2]}})})()},"saveValue")()},[o,e,t,u]);var c=e3(function(e){i(function(r){return typeof e=="function"?e(r):e})},[]),E=e3(function(){return a(function(){var r;return D(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,re.remove(e)];case 1:t.sent(),i(void 0);return[3,3];case 2:r=t.sent();ed(r);return[3,3];case 3:return[2]}})})()},[e]);return{value:o,set:c,remove:E}}L(rr,"useStorage");function rt(e){var r=e.children;return e2.createElement(e2.Fragment,null,r)}L(rt,"LanguageWrapperBase");var rn=e1(rt);function ro(e){var r=e.children,t=e.languages,n=e.messages;var o=rr("lang",t[0]),a=o.value,i=o.set,l=e4(function(){return{languages:t,currentLanguage:a!==null&&a!==void 0?a:eV,setCurrentLanguage:i}},[t,i,a]);return e2.createElement(eW,{value:l},e2.createElement(rn,{languages:t,messages:n},r))}L(ro,"NextIntlProvider");export{$ as ApolloErrorComponent,K as ApolloErrorContext,es as ApolloErrorProvider,eA as ApolloProvider,ev as GRAPHQL_URI_DEFAULT,eP as Loading,eU as LoadingContext,eH as LoadingProvider,eV as NEXT_INTL_DEFAULT_LANGUAGE,eW as NextIntlContext,ro as NextIntlProvider,ep as Toaster,ed as catchError,eI as initI18next,ef as log,el as setGlobalApolloErrorCallback,eu as showGlobalApolloError,re as storage,em as toast,er as useApolloError,eh as useLazyQuery,eF as useLoading,ey as useMutation,e$ as useNextIntl,eg as useQuery,rr as useStorage,eb as useSubscription,eN as useTranslateI18next,e0 as useTranslateNextIntl,e1 as withNextIntl};
|
|
1
|
+
function e(e,r){if(r==null||r>e.length)r=e.length;for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function r(e){if(Array.isArray(e))return e}function t(r){if(Array.isArray(r))return e(r)}function n(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function o(e,r,t,n,o,a,i){try{var l=e[a](i);var s=l.value}catch(e){t(e);return}if(l.done){r(s)}else{Promise.resolve(s).then(n,o)}}function a(e){return function(){var r=this,t=arguments;return new Promise(function(n,a){var i=e.apply(r,t);function l(e){o(i,n,a,l,s,"next",e)}function s(e){o(i,n,a,l,s,"throw",e)}l(undefined)})}}function i(e,r,t){r=E(r);return h(e,N()?Reflect.construct(r,t||[],E(e).constructor):r.apply(e,t))}function l(e,r){if(!(e instanceof r)){throw new TypeError("Cannot call a class as a function")}}function s(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function u(e,r,t){if(r)s(e.prototype,r);if(t)s(e,t);return e}function c(e,r,t){if(r in e){Object.defineProperty(e,r,{value:t,enumerable:true,configurable:true,writable:true})}else{e[r]=t}return e}function E(e){E=Object.setPrototypeOf?Object.getPrototypeOf:function e(e){return e.__proto__||Object.getPrototypeOf(e)};return E(e)}function f(e,r){if(typeof r!=="function"&&r!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:true,configurable:true}});if(r)y(e,r)}function m(e,r){if(r!=null&&typeof Symbol!=="undefined"&&r[Symbol.hasInstance]){return!!r[Symbol.hasInstance](e)}else{return e instanceof r}}function d(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p(e,r){var t=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t==null)return;var n=[];var o=true;var a=false;var i,l;try{for(t=t.call(e);!(o=(i=t.next()).done);o=true){n.push(i.value);if(r&&n.length===r)break}}catch(e){a=true;l=e}finally{try{if(!o&&t["return"]!=null)t["return"]()}finally{if(a)throw l}}return n}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};var n=Object.keys(t);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))}n.forEach(function(r){c(e,r,t[r])})}return e}function A(e,r){if(e==null)return{};var t=O(e,r);var n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++){n=a[o];if(r.indexOf(n)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,n))continue;t[n]=e[n]}}return t}function O(e,r){if(e==null)return{};var t={};var n=Object.keys(e);var o,a;for(a=0;a<n.length;a++){o=n[a];if(r.indexOf(o)>=0)continue;t[o]=e[o]}return t}function h(e,r){if(r&&(C(r)==="object"||typeof r==="function")){return r}return n(e)}function y(e,r){y=Object.setPrototypeOf||function e(e,r){e.__proto__=r;return e};return y(e,r)}function g(e,t){return r(e)||p(e,t)||T(e,t)||v()}function b(e){return t(e)||d(e)||T(e)||S()}function C(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function T(r,t){if(!r)return;if(typeof r==="string")return e(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor)n=r.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(r,t)}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(N=function(){return!!e})()}function D(e,r){var t,n,o,a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=l(0),i["throw"]=l(1),i["return"]=l(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(e){return function(r){return s([e,r])}}function s(l){if(t)throw new TypeError("Generator is already executing.");while(i&&(i=0,l[0]&&(a=0)),a)try{if(t=1,n&&(o=l[0]&2?n["return"]:l[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;if(n=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;n=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(l[0]===6&&a.label<o[1]){a.label=o[1];o=l;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(l);break}if(o[2])a.ops.pop();a.trys.pop();continue}l=r.call(e,a)}catch(e){l=[6,e];n=0}finally{t=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}}var R=Object.defineProperty;var I=function(e,r,t){return r in e?R(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t};var M=function(e,r){return R(e,"name",{value:r,configurable:!0})};var L=function(e,r,t){return I(e,(typeof r==="undefined"?"undefined":C(r))!="symbol"?r+"":r,t)};import{ApolloNextAppProvider as w}from"@apollo/client-integration-nextjs";import{ApolloProvider as G}from"@apollo/client/react/react.cjs";import P,{useMemo as k}from"react";import U,{use as x}from"react";import{createContext as Q}from"react";var F=Q(void 0);var j={"modal-backdrop":"_modal-backdrop_8fveh_1","modal-content":"_modal-content_8fveh_11","btn-close":"_btn-close_8fveh_22","error-title":"_error-title_8fveh_36","btn-retry":"_btn-retry_8fveh_41","error-details":"_error-details_8fveh_54",main:"_main_8fveh_72",network:"_network_8fveh_75",extra:"_extra_8fveh_78"};function z(){var e=x(F),r=e===null||e===void 0?void 0:e.error;if(!r)return null;var t=M(function(e,r){return(r===null||r===void 0?void 0:r.length)?U.createElement("div",null,U.createElement("strong",null,e,":"),U.createElement("ul",null,r.map(function(e){return U.createElement("li",{key:e.message},e.message)}))):null},"renderErrorList");return U.createElement("div",{className:j["modal-backdrop"]},U.createElement("div",{className:j["modal-content"]},U.createElement("button",{type:"button",className:j["btn-close"],onClick:e.hideError},"✕"),U.createElement("div",{className:j["error-title"]},U.createElement("button",{type:"button",className:j["btn-retry"],onClick:M(function(){return window.location.reload()},"onClick")},"Reload")," ",r.message),U.createElement("div",{className:j["error-details"]},r.networkError&&U.createElement("pre",{className:"network"},U.createElement("strong",null,"Network Error:")," ",r.networkError.message),t("GraphQL Errors",b(r.graphQLErrors)),t("Protocol Errors",b(r.protocolErrors)),t("Client Errors",b(r.clientErrors)),r.extraInfo&&U.createElement("pre",{className:"extra"},U.createElement("strong",null,"Extra Info:")," ",JSON.stringify(r.extraInfo,null,4)))))}M(z,"ApolloErrorComponent");import{use as q}from"react";function H(){var e=q(F);if(!e)throw new Error("useApolloError must be used within ApolloErrorProvider");return e}M(H,"useApolloError");import B,{useEffect as V,useMemo as Y,useState as W}from"react";var J=null;function X(e){J=e}M(X,"setGlobalApolloErrorCallback");function K(e){J===null||J===void 0?void 0:J(e)}M(K,"showGlobalApolloError");function Z(e){var r=e.children;var t=g(W(null),2),n=t[0],o=t[1];V(function(){X(o)},[]);var a=Y(function(){return{error:n,showError:o,hideError:M(function(){return o(null)},"hideError")}},[n]);return B.createElement(F,{value:a},r)}M(Z,"ApolloErrorProvider");import{toast as $,Toaster as ee}from"react-hot-toast";import er,{createContext as et}from"react";var en=et(null);function eo(e){var r=e.client,t=e.children;return er.createElement(en,{value:r},t)}M(eo,"ApolloClientProvider");import{ApolloClient as ea,InMemoryCache as ei}from"@apollo/client-integration-nextjs";import{ApolloClient as el,ApolloError as es,InMemoryCache as eu}from"@apollo/client/core/core.cjs";import{ApolloLink as ec,from as eE,split as ef}from"@apollo/client/link/core/core.cjs";import{onError as em}from"@apollo/client/link/error/error.cjs";import{HttpLink as ed}from"@apollo/client/link/http/http.cjs";import{removeTypenameFromVariables as ep}from"@apollo/client/link/remove-typename/remove-typename.cjs";import{GraphQLWsLink as ev}from"@apollo/client/link/subscriptions/subscriptions.cjs";import{getMainDefinition as eS}from"@apollo/client/utilities/utilities.cjs";import{createClient as e_}from"graphql-ws";import eA from"react";import{consola as eO}from"consola/browser";var eh={GRAPHQL_PARSE_FAILED:{CODE:"GRAPHQL_PARSE_FAILED",MESSAGE:"The GraphQL operation string contains a syntax error."},GRAPHQL_VALIDATION_FAILED:{CODE:"GRAPHQL_VALIDATION_FAILED",MESSAGE:"The GraphQL operation is not valid against the server's schema."},BAD_USER_INPUT:{CODE:"BAD_USER_INPUT",MESSAGE:"The GraphQL operation includes an invalid value for a field argument."},PERSISTED_QUERY_NOT_FOUND:{CODE:"PERSISTED_QUERY_NOT_FOUND",MESSAGE:"A client sent the hash of a query string to execute via automatic persisted queries, but the query was not in the APQ cache."},PERSISTED_QUERY_NOT_SUPPORTED:{CODE:"PERSISTED_QUERY_NOT_SUPPORTED",MESSAGE:"A client sent the hash of a query string to execute via automatic persisted queries, but the server has disabled APQ."},OPERATION_RESOLUTION_FAILURE:{CODE:"OPERATION_RESOLUTION_FAILURE",MESSAGE:"The request was parsed successfully and is valid against the server's schema, but the server couldn't resolve which operation to run. This occurs when a request containing multiple named operations doesn't specify which operation to run (i.e.,operationName), or if the named operation isn't included in the request."},CONTINUE:{CODE:100,MESSAGE:"Continue"},SWITCHING_PROTOCOLS:{CODE:101,MESSAGE:"Switching Protocols"},PROCESSING:{CODE:102,MESSAGE:"Processing"},OK:{CODE:200,MESSAGE:"OK"},CREATED:{CODE:201,MESSAGE:"Created"},ACCEPTED:{CODE:202,MESSAGE:"Accepted"},NON_AUTHORITATIVE_INFORMATION:{CODE:203,MESSAGE:"Non Authoritative Information"},NO_CONTENT:{CODE:204,MESSAGE:"No Content"},RESET_CONTENT:{CODE:205,MESSAGE:"Reset Content"},PARTIAL_CONTENT:{CODE:206,MESSAGE:"Partial Content"},MULTI_STATUS:{CODE:207,MESSAGE:"Multi-Status"},MULTIPLE_CHOICES:{CODE:300,MESSAGE:"Multiple Choices"},MOVED_PERMANENTLY:{CODE:301,MESSAGE:"Moved Permanently"},MOVED_TEMPORARILY:{CODE:302,MESSAGE:"Moved Temporarily"},SEE_OTHER:{CODE:303,MESSAGE:"See Other"},NOT_MODIFIED:{CODE:304,MESSAGE:"Not Modified"},USE_PROXY:{CODE:305,MESSAGE:"Use Proxy"},TEMPORARY_REDIRECT:{CODE:307,MESSAGE:"Temporary Redirect"},PERMANENT_REDIRECT:{CODE:308,MESSAGE:"Permanent Redirect"},BAD_REQUEST:{CODE:400,MESSAGE:"Bad Request"},UNAUTHORIZED:{CODE:401,MESSAGE:"Unauthorized"},PAYMENT_REQUIRED:{CODE:402,MESSAGE:"Payment Required"},FORBIDDEN:{CODE:403,MESSAGE:"Forbidden"},NOT_FOUND:{CODE:404,MESSAGE:"Not Found"},METHOD_NOT_ALLOWED:{CODE:405,MESSAGE:"Method Not Allowed"},NOT_ACCEPTABLE:{CODE:406,MESSAGE:"Not Acceptable"},PROXY_AUTHENTICATION_REQUIRED:{CODE:407,MESSAGE:"Proxy Authentication Required"},REQUEST_TIMEOUT:{CODE:408,MESSAGE:"Request Timeout"},CONFLICT:{CODE:409,MESSAGE:"Conflict"},GONE:{CODE:410,MESSAGE:"Gone"},LENGTH_REQUIRED:{CODE:411,MESSAGE:"Length Required"},PRECONDITION_FAILED:{CODE:412,MESSAGE:"Precondition Failed"},REQUEST_TOO_LONG:{CODE:413,MESSAGE:"Request Entity Too Large"},REQUEST_URI_TOO_LONG:{CODE:414,MESSAGE:"Request-URI Too Long"},UNSUPPORTED_MEDIA_TYPE:{CODE:415,MESSAGE:"Unsupported Media Type"},REQUESTED_RANGE_NOT_SATISFIABLE:{CODE:416,MESSAGE:"Requested Range Not Satisfiable"},EXPECTATION_FAILED:{CODE:417,MESSAGE:"Expectation Failed"},IM_A_TEAPOT:{CODE:418,MESSAGE:"I'm a teapot"},INSUFFICIENT_SPACE_ON_RESOURCE:{CODE:419,MESSAGE:"Insufficient Space on Resource"},METHOD_FAILURE:{CODE:420,MESSAGE:"Method Failure"},MISDIRECTED_REQUEST:{CODE:421,MESSAGE:"Misdirected Request"},UNPROCESSABLE_ENTITY:{CODE:422,MESSAGE:"Unprocessable Entity"},LOCKED:{CODE:423,MESSAGE:"Locked"},FAILED_DEPENDENCY:{CODE:424,MESSAGE:"Failed Dependency"},PRECONDITION_REQUIRED:{CODE:428,MESSAGE:"Precondition Required"},TOO_MANY_REQUESTS:{CODE:429,MESSAGE:"Too Many Requests"},REQUEST_HEADER_FIELDS_TOO_LARGE:{CODE:431,MESSAGE:"Request Header Fields Too Large"},UNAVAILABLE_FOR_LEGAL_REASONS:{CODE:451,MESSAGE:"Unavailable For Legal Reasons"},INTERNAL_SERVER_ERROR:{CODE:500,MESSAGE:"Internal Server Error"},NOT_IMPLEMENTED:{CODE:501,MESSAGE:"Not Implemented"},BAD_GATEWAY:{CODE:502,MESSAGE:"Bad Gateway"},SERVICE_UNAVAILABLE:{CODE:503,MESSAGE:"Service Unavailable"},GATEWAY_TIMEOUT:{CODE:504,MESSAGE:"Gateway Timeout"},HTTP_VERSION_NOT_SUPPORTED:{CODE:505,MESSAGE:"HTTP Version Not Supported"},INSUFFICIENT_STORAGE:{CODE:507,MESSAGE:"Insufficient Storage"},NETWORK_AUTHENTICATION_REQUIRED:{CODE:511,MESSAGE:"Network Authentication Required"}};var ey={silent:eO.silent,level:eO.level,fatal:eO.fatal,error:eO.error,warn:eO.warn,log:eO.log,info:eO.info,success:eO.success,ready:eO.ready,start:eO.start,box:eO.box,debug:eO.debug,trace:eO.trace,verbose:eO.verbose};function eg(e,r){var t=r!==null&&r!==void 0?r:{},n=t.shouldLog,o=n===void 0?!0:n,a=t.returnValue,i=t.callback,l=m(e,Error)?e:new Error(typeof e=="string"?e:"Unknown error");return o&&ey.error(l.message),i&&typeof i=="function"&&i(l),a||{success:!1,message:l.message,code:eh.INTERNAL_SERVER_ERROR.CODE}}M(eg,"catchError");var eb="/graphql";var eC,eT=(eC=/*#__PURE__*/function(e){"use strict";f(r,e);function r(){l(this,r);var e;e=i(this,r,arguments);L(e,"count",0);return e}u(r,[{key:"request",value:function e(e,r){var t=this;var n=Date.now();return this.count+=1,r(e).map(function(r){var o=Date.now()-n,a=e.operationName||"Unnamed";return ey.info("[Apollo] #".concat(t.count,": ").concat(a," (").concat(o,"ms)")),r})}}]);return r}(ec),M(eC,"DevLoggerLink"),eC);function eN(e){var r=e.uri,t=e.wsUrl,n=e.customLinks,o=new eT,a=em(function(e){var r=e.graphQLErrors,t=e.networkError,n=e.protocolErrors,o=e.operation;var a=(o===null||o===void 0?void 0:o.operationName)||"Unknown";if(r&&r.forEach(function(e){var r=e.message,t=e.locations,n=e.path;ey.error("[GraphQL error] ".concat(a,": ").concat(r,", Location: ").concat(JSON.stringify(t,null,4),", Path: ").concat(n))}),n&&n.forEach(function(e){var r=e.message,t=e.extensions;ey.error("[Protocol error]: ".concat(r,", Extensions: ").concat(JSON.stringify(t,null,4)))}),t&&ey.error("[Network error]: ".concat(t)),r||n||t){var i,l;var s=(r===null||r===void 0?void 0:(i=r[0])===null||i===void 0?void 0:i.message)||(n===null||n===void 0?void 0:(l=n[0])===null||l===void 0?void 0:l.message)||(t===null||t===void 0?void 0:t.message)||"Unexpected error",u=new es({graphQLErrors:r||[],protocolErrors:n||[],clientErrors:[],networkError:t||null,errorMessage:s,extraInfo:{operation:o}});$.error(function(e){return eA.createElement(eA.Fragment,null,s,"\xa0",eA.createElement("button",{type:"button",onClick:M(function(){setTimeout(function(){K(u)},0),$.dismiss(e.id)},"onClick")},"Show Details"))})}}),i=ep();r||ey.warn('[Apollo] No GraphQL URI provided — using "'.concat(eb,'" as default'));var l=new ed({uri:r!==null&&r!==void 0?r:eb,credentials:"include"}),s=t?new ev(e_({url:t})):ec.empty(),u=m(s,ec)?ef(function(e){var r=e.query;var t=eS(r);return t.kind==="OperationDefinition"&&t.operation==="subscription"},s,l):l;return u===l&&t&&ey.warn("[Apollo] WS URL is set, but subscriptions fallback to HTTP. Check your wsLink config."),[o,a,i].concat(b(n!==null&&n!==void 0?n:[]),[u])}M(eN,"createApolloLinks");function eD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var t=eE(eN(e)),n=e.cache,o=A(e,["cache"]);return r?new ea(_({link:t,cache:new ei},o)):new el(_({link:t,cache:new eu},o))}M(eD,"getClient");function eR(e){var r=e.isNextJS,t=e.options,n=e.children;var o=k(function(){return eD(t||{},r)},[t,r]),a=r?P.createElement(w,{makeClient:M(function(){return o},"makeClient")},n):P.createElement(G,{client:o},n);return P.createElement(P.Fragment,null,P.createElement(Z,null,P.createElement(eo,{client:o},a),P.createElement(z,null)),P.createElement(ee,{position:"top-right"}))}M(eR,"ApolloProvider");import{use as eI}from"react";import{useApolloClient as eM,useBackgroundQuery as eL,useFragment as ew,useLazyQuery as eG,useLoadableQuery as eP,useMutation as ek,useQuery as eU,useQueryRefHandlers as ex,useReactiveVar as eQ,useReadQuery as eF,useSubscription as ej,useSuspenseFragment as ez,useSuspenseQuery as eq}from"@apollo/client/react/hooks/hooks.cjs";import{useTranslation as eH}from"react-i18next";var eB=eH;import eV from"i18next";import{initReactI18next as eY}from"react-i18next";function eW(e){return eV.use(eY).init(e)}M(eW,"initI18next");import eJ from"clsx";import eX,{useEffect as eK}from"react";var eZ={overlay:"_overlay_1ank4_1",fullscreen:"_fullscreen_1ank4_1",block:"_block_1ank4_2","overlay-fade-in":"_overlay-fade-in_1ank4_1",container:"_container_1ank4_35",ring:"_ring_1ank4_45",rotate1:"_rotate1_1ank4_1",rotate2:"_rotate2_1ank4_1",rotate3:"_rotate3_1ank4_1",rotate4:"_rotate4_1ank4_1",message:"_message_1ank4_69","text-fade":"_text-fade_1ank4_1"};function e$(){if(document.getElementById("noscroll-style"))return;var e=document.createElement("style");e.id="noscroll-style",e.innerHTML="\n .noscroll {\n overflow: hidden !important;\n height: 100vh !important;\n }\n ",document.head.appendChild(e)}M(e$,"injectNoScrollStyle");function e0(e){var r=e.full,t=r===void 0?!1:r,n=e.block,o=n===void 0?!1:n,a=e.className,i=a===void 0?"":a,l=e.message,s=l===void 0?"Loading":l,u=A(e,["full","block","className","message"]);eK(function(){if(t){document.body.classList.add("noscroll");var e=M(function(e){return e.preventDefault()},"handleContextMenu");return document.addEventListener("contextmenu",e),function(){document.body.classList.remove("noscroll"),document.removeEventListener("contextmenu",e)}}},[t]),eK(function(){e$()},[]);function c(){return eX.createElement("div",_({className:eZ.container},u),eX.createElement("div",{className:eZ.ring}),eX.createElement("div",{className:eZ.ring}),eX.createElement("div",{className:eZ.ring}),eX.createElement("div",{className:eZ.ring}),s&&eX.createElement("div",{className:eZ.message},s))}return M(c,"_renderLoading"),t?eX.createElement("div",{className:eJ(eZ.fullscreen,i)},c()):o?eX.createElement("div",{className:eJ(eZ.block,i)},c()):c()}M(e0,"Loading");import{createContext as e1}from"react";var e2=e1(void 0);import{use as e4}from"react";function e3(){var e=e4(e2);if(!e)throw new Error("useLoading must be used within a LoadingProvider");return e}M(e3,"useLoading");import e8,{useCallback as e5,useMemo as e7,useState as e6}from"react";function e9(e){var r=e.children;var t=g(e6(!1),2),n=t[0],o=t[1],a=g(e6(!1),2),i=a[0],l=a[1],s=e5(function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;o(!0),l(e)},[]),u=e5(function(){o(!1),l(!1)},[]),c=e7(function(){return{isLoading:n,isGlobalLoading:i,showLoading:s,hideLoading:u}},[n,i,s,u]);return e8.createElement(e2,{value:c},n?e8.createElement(e0,{full:i}):r)}M(e9,"LoadingProvider");import{enUS as re}from"date-fns/locale";var rr={label:"English",value:"en",flag:"\uD83C\uDDFA\uD83C\uDDF8",adapterLocale:re,icon:"flagpack:gb-nir",numberFormat:{code:"en-US",currency:"USD"},timezone:"America/New_York"};import{createContext as rt}from"react";var rn=rt(void 0);import{NextIntlClientProvider as ro}from"next-intl";import ra from"react";import{useTranslations as ri}from"next-intl";import{use as rl}from"react";function rs(){var e=rl(rn);if(!e)throw new Error("useNextIntl must be used within a NextIntlProvider");return e}M(rs,"useNextIntl");var ru=ri;function rc(e){var r=M(function(r){var t;var n;var o=rs(),a=o.currentLanguage,i=r.messages,l=r.languages,s="en",u=i[(a===null||a===void 0?void 0:a.value)||s],c=(n=(t=l.find(function(e){return e.value===(a===null||a===void 0?void 0:a.value)}))===null||t===void 0?void 0:t.timezone)!==null&&n!==void 0?n:rr.timezone;return i?ra.createElement(ro,{locale:(a===null||a===void 0?void 0:a.value)||s,messages:u||null,timeZone:c},ra.createElement(e,r)):(ey.warn("Missing messages for language: ".concat((a===null||a===void 0?void 0:a.value)||s)),null)},"PageWithI18n");return r.displayName="withNextIntl(".concat(e.displayName||e.name||"Component",")"),r}M(rc,"withNextIntl");import rE,{useMemo as rf}from"react";import{useCallback as rm,useEffect as rd,useState as rp}from"react";var rv={Date:{is:M(function(e){return m(e,Date)},"is"),serialize:M(function(e){return{__type:"Date",value:e.toISOString()}},"serialize"),deserialize:M(function(e){return new Date(e)},"deserialize")},Map:{is:M(function(e){return m(e,Map)},"is"),serialize:M(function(e){return{__type:"Map",value:Array.from(e.entries())}},"serialize"),deserialize:M(function(e){return new Map(e)},"deserialize")},Set:{is:M(function(e){return m(e,Set)},"is"),serialize:M(function(e){return{__type:"Set",value:Array.from(e)}},"serialize"),deserialize:M(function(e){return new Set(e)},"deserialize")},RegExp:{is:M(function(e){return m(e,RegExp)},"is"),serialize:M(function(e){return{__type:"RegExp",value:{source:e.source,flags:e.flags}}},"serialize"),deserialize:M(function(e){var r=e.source,t=e.flags;return new RegExp(r,t)},"deserialize")},BigInt:{is:M(function(e){return(typeof e==="undefined"?"undefined":C(e))=="bigint"},"is"),serialize:M(function(e){return{__type:"BigInt",value:e.toString()}},"serialize"),deserialize:M(function(e){return BigInt(e)},"deserialize")}},rS={serialize:function e(e){return JSON.stringify(e,function(e,r){var t=true,n=false,o=undefined;try{for(var a=Object.keys(rv)[Symbol.iterator](),i;!(t=(i=a.next()).done);t=true){var l=i.value;var s=rv[l];if(s.is(r))return s.serialize(r)}}catch(e){n=true;o=e}finally{try{if(!t&&a.return!=null){a.return()}}finally{if(n){throw o}}}return r})},deserialize:function e(e){return JSON.parse(e,function(e,r){if(r&&(typeof r==="undefined"?"undefined":C(r))=="object"&&"__type"in r&&typeof r.__type=="string"){var t=r.__type,n=rv[t];if(n)return n.deserialize(r.value)}return r})}};import r_ from"localforage";var rA={get:function e(e){return a(function(){var r;return D(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,r_.getItem(e)];case 1:return[2,t.sent()];case 2:r=t.sent();return[2,eg(r,{returnValue:null})];case 3:return[2]}})})()},set:function e(e,r){return a(function(){var t;return D(this,function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,r_.setItem(e,r)];case 1:n.sent();return[3,3];case 2:t=n.sent();eg(t);return[3,3];case 3:return[2]}})})()},remove:function e(e){return a(function(){var r;return D(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,r_.removeItem(e)];case 1:t.sent();return[3,3];case 2:r=t.sent();eg(r);return[3,3];case 3:return[2]}})})()},keys:function e(){return a(function(){var e,r;return D(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,r_.keys()];case 1:return[2,(e=t.sent())!==null&&e!==void 0?e:[]];case 2:r=t.sent();return[2,eg(r,{returnValue:[]})];case 3:return[2]}})})()}};function rO(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rS;var n=g(rp(r),2),o=n[0],i=n[1],l=g(rp(!1),2),s=l[0],u=l[1];rd(function(){var n=!0;return M(function(){return a(function(){var o,a,l,s;return D(this,function(c){switch(c.label){case 0:c.trys.push([0,6,7,8]);return[4,rA.get(e)];case 1:o=c.sent();if(!n)return[3,5];if(!(o!==null))return[3,2];a=t.deserialize(o);i(a);return[3,5];case 2:if(!(r!==void 0))return[3,4];l=t.serialize(r);return[4,rA.set(e,l)];case 3:c.sent(),i(r);return[3,5];case 4:i(void 0);c.label=5;case 5:return[3,8];case 6:s=c.sent();eg(s),n&&i(r);return[3,8];case 7:n&&u(!0);return[7];case 8:return[2]}})})()},"loadValue")(),function(){n=!1,u(!1)}},[e,r,t]),rd(function(){if(!s)return;M(function(){return a(function(){var r,n;return D(this,function(a){switch(a.label){case 0:a.trys.push([0,3,,4]);if(!(o!==void 0))return[3,2];r=t.serialize(o);return[4,rA.set(e,r)];case 1:a.sent();a.label=2;case 2:return[3,4];case 3:n=a.sent();eg(n);return[3,4];case 4:return[2]}})})()},"saveValue")()},[o,e,t,s]);var c=rm(function(e){i(function(r){return typeof e=="function"?e(r):e})},[]),E=rm(function(){return a(function(){var r;return D(this,function(t){switch(t.label){case 0:t.trys.push([0,2,,3]);return[4,rA.remove(e)];case 1:t.sent(),i(void 0);return[3,3];case 2:r=t.sent();eg(r);return[3,3];case 3:return[2]}})})()},[e]);return{value:o,set:c,remove:E}}M(rO,"useStorage");function rh(e){var r=e.children;return rE.createElement(rE.Fragment,null,r)}M(rh,"LanguageWrapperBase");var ry=rc(rh);function rg(e){var r=e.children,t=e.languages,n=e.messages;var o=rO("lang",t[0]),a=o.value,i=o.set,l=rf(function(){return{languages:t,currentLanguage:a!==null&&a!==void 0?a:rr,setCurrentLanguage:i}},[t,i,a]);return rE.createElement(rn,{value:l},rE.createElement(ry,{languages:t,messages:n},r))}M(rg,"NextIntlProvider");export{en as ApolloClientContext,eo as ApolloClientProvider,z as ApolloErrorComponent,F as ApolloErrorContext,Z as ApolloErrorProvider,eR as ApolloProvider,eb as GRAPHQL_URI_DEFAULT,e0 as Loading,e2 as LoadingContext,e9 as LoadingProvider,rr as NEXT_INTL_DEFAULT_LANGUAGE,rn as NextIntlContext,rg as NextIntlProvider,ee as Toaster,eg as catchError,eD as getClient,eW as initI18next,ey as log,X as setGlobalApolloErrorCallback,K as showGlobalApolloError,rA as storage,$ as toast,eM as useApolloClient,H as useApolloError,eL as useBackgroundQuery,ew as useFragment,eG as useLazyQuery,eP as useLoadableQuery,e3 as useLoading,ek as useMutation,rs as useNextIntl,eU as useQuery,ex as useQueryRefHandlers,eQ as useReactiveVar,eF as useReadQuery,rO as useStorage,ej as useSubscription,ez as useSuspenseFragment,eq as useSuspenseQuery,eB as useTranslateI18next,ru as useTranslateNextIntl,rc as withNextIntl};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function e(e,r,t,n,o,u,c){try{var a=e[u](c);var i=a.value}catch(e){t(e);return}if(a.done){r(i)}else{Promise.resolve(i).then(n,o)}}function r(r){return function(){var t=this,n=arguments;return new Promise(function(o,u){var c=r.apply(t,n);function a(r){e(c,o,u,a,i,"next",r)}function i(r){e(c,o,u,a,i,"throw",r)}a(undefined)})}}function t(e,r){if(e==null)return{};var t=n(e,r);var o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(u=0;u<c.length;u++){o=c[u];if(r.indexOf(o)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,o))continue;t[o]=e[o]}}return t}function n(e,r){if(e==null)return{};var t={};var n=Object.keys(e);var o,u;for(u=0;u<n.length;u++){o=n[u];if(r.indexOf(o)>=0)continue;t[o]=e[o]}return t}function o(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function u(e,r){var t,n,o,u={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},c=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return c.next=a(0),c["throw"]=a(1),c["return"]=a(2),typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(e){return function(r){return i([e,r])}}function i(a){if(t)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(u=0)),u)try{if(t=1,n&&(o=a[0]&2?n["return"]:a[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;if(n=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:u.label++;return{value:a[1],done:false};case 5:u.label++;n=a[1];a=[0];continue;case 7:a=u.ops.pop();u.trys.pop();continue;default:if(!(o=u.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){u=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(a[0]===6&&u.label<o[1]){u.label=o[1];o=a;break}if(o&&u.label<o[2]){u.label=o[2];u.ops.push(a);break}if(o[2])u.ops.pop();u.trys.pop();continue}a=r.call(e,u)}catch(e){a=[6,e];n=0}finally{t=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var c=Object.create;var a=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;var b=function(e,r){return a(e,"name",{value:r,configurable:!0})};var v=function(e,r){for(var t in r)a(e,t,{get:r[t],enumerable:!0})},y=function(e,r,t,n){var u=true,c=false,f=undefined;if(r&&(typeof r==="undefined"?"undefined":o(r))=="object"||typeof r=="function")try{var b=function(){var o=y.value;!s.call(e,o)&&o!==t&&a(e,o,{get:function(){return r[o]},enumerable:!(n=i(r,o))||n.enumerable})};for(var v=l(r)[Symbol.iterator](),y;!(u=(y=v.next()).done);u=true)b()}catch(e){c=true;f=e}finally{try{if(!u&&v.return!=null){v.return()}}finally{if(c){throw f}}}return e};var p=function(e,r,t){return t=e!=null?c(f(e)):{},y(r||!e||!e.__esModule?a(t,"default",{value:e,enumerable:!0}):t,e)},d=function(e){return y(a({},"__esModule",{value:!0}),e)};var h={};v(h,{Userback:function(){return w}});module.exports=d(h);var m=p(require("@userback/widget"),1),O=require("react");function w(e){var n=e.token,o=e.options;return(0,O.useEffect)(function(){if(!n)return;var e;return b(function(){return r(function(){var r,c;return u(this,function(u){switch(u.label){case 0:r=o.hide,c=t(o,["hide"]);return[4,(0,m.default)(n,c)];case 1:u.sent(),r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})}),e=new MutationObserver(function(){r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})})}),e.observe(document.body,{childList:!0,subtree:!0});return[2]}})})()},"loadUserback")(),function(){e===null||e===void 0?void 0:e.disconnect()}},[n,o]),null}b(w,"Userback");0&&(module.exports={Userback:Userback});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,r,n,t,o,u,i){try{var c=e[u](i);var a=c.value}catch(e){n(e);return}if(c.done){r(a)}else{Promise.resolve(a).then(t,o)}}function r(r){return function(){var n=this,t=arguments;return new Promise(function(o,u){var i=r.apply(n,t);function c(r){e(i,o,u,c,a,"next",r)}function a(r){e(i,o,u,c,a,"throw",r)}c(undefined)})}}function n(e,r){if(e==null)return{};var n=t(e,r);var o,u;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(u=0;u<i.length;u++){o=i[u];if(r.indexOf(o)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,o))continue;n[o]=e[o]}}return n}function t(e,r){if(e==null)return{};var n={};var t=Object.keys(e);var o,u;for(u=0;u<t.length;u++){o=t[u];if(r.indexOf(o)>=0)continue;n[o]=e[o]}return n}function o(e,r){var n,t,o,u={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=c(0),i["throw"]=c(1),i["return"]=c(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(r){return a([e,r])}}function a(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(u=0)),u)try{if(n=1,t&&(o=c[0]&2?t["return"]:c[0]?t["throw"]||((o=t["return"])&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;if(t=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:u.label++;return{value:c[1],done:false};case 5:u.label++;t=c[1];c=[0];continue;case 7:c=u.ops.pop();u.trys.pop();continue;default:if(!(o=u.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){u=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){u.label=c[1];break}if(c[0]===6&&u.label<o[1]){u.label=o[1];o=c;break}if(o&&u.label<o[2]){u.label=o[2];u.ops.push(c);break}if(o[2])u.ops.pop();u.trys.pop();continue}c=r.call(e,u)}catch(e){c=[6,e];t=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}}var u=Object.defineProperty;var i=function(e,r){return u(e,"name",{value:r,configurable:!0})};import c from"@userback/widget";import{useEffect as a}from"react";function l(e){var t=e.token,u=e.options;return a(function(){if(!t)return;var e;return i(function(){return r(function(){var r,i;return o(this,function(o){switch(o.label){case 0:r=u.hide,i=n(u,["hide"]);return[4,c(t,i)];case 1:o.sent(),r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})}),e=new MutationObserver(function(){r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})})}),e.observe(document.body,{childList:!0,subtree:!0});return[2]}})})()},"loadUserback")(),function(){e===null||e===void 0?void 0:e.disconnect()}},[t,u]),null}i(l,"Userback");export{l as Userback};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function e(e,r,t,n,o,u,c){try{var a=e[u](c);var i=a.value}catch(e){t(e);return}if(a.done){r(i)}else{Promise.resolve(i).then(n,o)}}function r(r){return function(){var t=this,n=arguments;return new Promise(function(o,u){var c=r.apply(t,n);function a(r){e(c,o,u,a,i,"next",r)}function i(r){e(c,o,u,a,i,"throw",r)}a(undefined)})}}function t(e,r){if(e==null)return{};var t=n(e,r);var o,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(u=0;u<c.length;u++){o=c[u];if(r.indexOf(o)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,o))continue;t[o]=e[o]}}return t}function n(e,r){if(e==null)return{};var t={};var n=Object.keys(e);var o,u;for(u=0;u<n.length;u++){o=n[u];if(r.indexOf(o)>=0)continue;t[o]=e[o]}return t}function o(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function u(e,r){var t,n,o,u={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},c=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return c.next=a(0),c["throw"]=a(1),c["return"]=a(2),typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function a(e){return function(r){return i([e,r])}}function i(a){if(t)throw new TypeError("Generator is already executing.");while(c&&(c=0,a[0]&&(u=0)),u)try{if(t=1,n&&(o=a[0]&2?n["return"]:a[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;if(n=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:u.label++;return{value:a[1],done:false};case 5:u.label++;n=a[1];a=[0];continue;case 7:a=u.ops.pop();u.trys.pop();continue;default:if(!(o=u.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){u=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(a[0]===6&&u.label<o[1]){u.label=o[1];o=a;break}if(o&&u.label<o[2]){u.label=o[2];u.ops.push(a);break}if(o[2])u.ops.pop();u.trys.pop();continue}a=r.call(e,u)}catch(e){a=[6,e];n=0}finally{t=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}}var c=Object.create;var a=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var f=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty;var b=function(e,r){return a(e,"name",{value:r,configurable:!0})};var v=function(e,r){for(var t in r)a(e,t,{get:r[t],enumerable:!0})},y=function(e,r,t,n){var u=true,c=false,f=undefined;if(r&&(typeof r==="undefined"?"undefined":o(r))=="object"||typeof r=="function")try{var b=function(){var o=y.value;!s.call(e,o)&&o!==t&&a(e,o,{get:function(){return r[o]},enumerable:!(n=i(r,o))||n.enumerable})};for(var v=l(r)[Symbol.iterator](),y;!(u=(y=v.next()).done);u=true)b()}catch(e){c=true;f=e}finally{try{if(!u&&v.return!=null){v.return()}}finally{if(c){throw f}}}return e};var p=function(e,r,t){return t=e!=null?c(f(e)):{},y(r||!e||!e.__esModule?a(t,"default",{value:e,enumerable:!0}):t,e)},d=function(e){return y(a({},"__esModule",{value:!0}),e)};var h={};v(h,{Userback:function(){return w}});module.exports=d(h);var m=p(require("@userback/widget"),1),O=require("react");function w(e){var n=e.token,o=e.options;return(0,O.useEffect)(function(){if(!n)return;var e;return b(function(){return r(function(){var r,c;return u(this,function(u){switch(u.label){case 0:r=o.hide,c=t(o,["hide"]);return[4,(0,m.default)(n,c)];case 1:u.sent(),r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})}),e=new MutationObserver(function(){r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})})}),e.observe(document.body,{childList:!0,subtree:!0});return[2]}})})()},"loadUserback")(),function(){e===null||e===void 0?void 0:e.disconnect()}},[n,o]),null}b(w,"Userback");0&&(module.exports={Userback:Userback});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Userback_alias_1 as Userback } from '../../_tsup-dts-rollup.cjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Userback_alias_1 as Userback } from '../../_tsup-dts-rollup.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,r,n,t,o,u,i){try{var c=e[u](i);var a=c.value}catch(e){n(e);return}if(c.done){r(a)}else{Promise.resolve(a).then(t,o)}}function r(r){return function(){var n=this,t=arguments;return new Promise(function(o,u){var i=r.apply(n,t);function c(r){e(i,o,u,c,a,"next",r)}function a(r){e(i,o,u,c,a,"throw",r)}c(undefined)})}}function n(e,r){if(e==null)return{};var n=t(e,r);var o,u;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(u=0;u<i.length;u++){o=i[u];if(r.indexOf(o)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,o))continue;n[o]=e[o]}}return n}function t(e,r){if(e==null)return{};var n={};var t=Object.keys(e);var o,u;for(u=0;u<t.length;u++){o=t[u];if(r.indexOf(o)>=0)continue;n[o]=e[o]}return n}function o(e,r){var n,t,o,u={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return i.next=c(0),i["throw"]=c(1),i["return"]=c(2),typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function c(e){return function(r){return a([e,r])}}function a(c){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,c[0]&&(u=0)),u)try{if(n=1,t&&(o=c[0]&2?t["return"]:c[0]?t["throw"]||((o=t["return"])&&o.call(t),0):t.next)&&!(o=o.call(t,c[1])).done)return o;if(t=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:u.label++;return{value:c[1],done:false};case 5:u.label++;t=c[1];c=[0];continue;case 7:c=u.ops.pop();u.trys.pop();continue;default:if(!(o=u.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){u=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){u.label=c[1];break}if(c[0]===6&&u.label<o[1]){u.label=o[1];o=c;break}if(o&&u.label<o[2]){u.label=o[2];u.ops.push(c);break}if(o[2])u.ops.pop();u.trys.pop();continue}c=r.call(e,u)}catch(e){c=[6,e];t=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}}var u=Object.defineProperty;var i=function(e,r){return u(e,"name",{value:r,configurable:!0})};import c from"@userback/widget";import{useEffect as a}from"react";function l(e){var t=e.token,u=e.options;return a(function(){if(!t)return;var e;return i(function(){return r(function(){var r,i;return o(this,function(o){switch(o.label){case 0:r=u.hide,i=n(u,["hide"]);return[4,c(t,i)];case 1:o.sent(),r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})}),e=new MutationObserver(function(){r&&r.length>0&&r.forEach(function(e){document.querySelectorAll(e).forEach(function(e){return e.remove()})})}),e.observe(document.body,{childList:!0,subtree:!0});return[2]}})})()},"loadUserback")(),function(){e===null||e===void 0?void 0:e.disconnect()}},[t,u]),null}i(l,"Userback");export{l as Userback};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function e(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}var r=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var n=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var u=function(u,a,f,l){var c=true,i=false,y=undefined;if(a&&(typeof a==="undefined"?"undefined":e(a))=="object"||typeof a=="function")try{var p=function(){var e=d.value;!o.call(u,e)&&e!==f&&r(u,e,{get:function(){return a[e]},enumerable:!(l=t(a,e))||l.enumerable})};for(var v=n(a)[Symbol.iterator](),d;!(c=(d=v.next()).done);c=true)p()}catch(e){i=true;y=e}finally{try{if(!c&&v.return!=null){v.return()}}finally{if(i){throw y}}}return u};var a=function(e){return u(r({},"__esModule",{value:!0}),e)};var f={};module.exports=a(f);
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberskill/shared",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.195.0",
|
|
5
5
|
"description": "CyberSkill Shared",
|
|
6
6
|
"author": "Stephen Cheng",
|
|
7
7
|
"license": "MIT",
|
|
@@ -169,6 +169,11 @@
|
|
|
169
169
|
"import": "./dist/react/toast/index.js",
|
|
170
170
|
"require": "./dist/react/toast/index.cjs"
|
|
171
171
|
},
|
|
172
|
+
"./react/userback": {
|
|
173
|
+
"types": "./dist/react/userback/index.d.ts",
|
|
174
|
+
"import": "./dist/react/userback/index.js",
|
|
175
|
+
"require": "./dist/react/userback/index.cjs"
|
|
176
|
+
},
|
|
172
177
|
"./react/index.css": {
|
|
173
178
|
"import": "./dist/react/index.css",
|
|
174
179
|
"require": "./dist/react/index.css"
|
|
@@ -229,6 +234,7 @@
|
|
|
229
234
|
"dependencies": {
|
|
230
235
|
"@antfu/eslint-config": "4.16.1",
|
|
231
236
|
"@apollo/client": "3.13.8",
|
|
237
|
+
"@apollo/client-integration-nextjs": "0.12.2",
|
|
232
238
|
"@apollo/server": "4.12.2",
|
|
233
239
|
"@dotenvx/dotenvx": "1.45.1",
|
|
234
240
|
"@eddeee888/gcg-typescript-resolver-files": "0.12.1",
|
|
@@ -236,6 +242,7 @@
|
|
|
236
242
|
"@graphql-codegen/client-preset": "4.8.3",
|
|
237
243
|
"@nestjs/common": "11.1.3",
|
|
238
244
|
"@nestjs/core": "11.1.3",
|
|
245
|
+
"@userback/widget": "0.3.11",
|
|
239
246
|
"@vitejs/plugin-react-swc": "3.10.2",
|
|
240
247
|
"body-parser": "2.2.0",
|
|
241
248
|
"chalk": "5.4.1",
|
|
@@ -275,7 +282,7 @@
|
|
|
275
282
|
"unorm": "1.6.0",
|
|
276
283
|
"uuid": "11.1.0",
|
|
277
284
|
"vite": "7.0.0",
|
|
278
|
-
"ws": "8.18.
|
|
285
|
+
"ws": "8.18.3",
|
|
279
286
|
"yargs": "18.0.0"
|
|
280
287
|
},
|
|
281
288
|
"devDependencies": {
|