@ikas/loyalty-widget-renderer 1.0.0-alpha.60 → 1.0.0-alpha.7
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/build/_virtual/_commonjsHelpers.js +1 -0
- package/build/_virtual/index.js +1 -0
- package/build/_virtual/index2.js +1 -0
- package/build/_virtual/index3.js +1 -0
- package/build/_virtual/index4.js +1 -0
- package/build/_virtual/index5.js +1 -0
- package/build/_virtual/index6.js +1 -0
- package/build/_virtual/react-dom.development.js +1 -0
- package/build/_virtual/react-dom.production.min.js +1 -0
- package/build/_virtual/react-is.development.js +1 -0
- package/build/_virtual/react-is.development2.js +1 -0
- package/build/_virtual/react-is.production.js +1 -0
- package/build/_virtual/react-is.production.min.js +1 -0
- package/build/_virtual/react.development.js +1 -0
- package/build/_virtual/react.production.min.js +1 -0
- package/build/_virtual/scheduler.development.js +1 -0
- package/build/_virtual/scheduler.production.min.js +1 -0
- package/build/_virtual/use-sync-external-store-shim.development.js +1 -0
- package/build/_virtual/use-sync-external-store-shim.production.js +1 -0
- package/build/assets/badgeLevel1.js +1 -1
- package/build/assets/badgeLevel2.js +1 -1
- package/build/assets/badgeLevel3.js +1 -1
- package/build/assets/badgeLevel4.js +1 -1
- package/build/assets/icons/check-circle-fill.js +1 -1
- package/build/assets/icons/check.js +1 -1
- package/build/assets/icons/chevron-left.js +1 -1
- package/build/assets/icons/x-close.js +1 -1
- package/build/assets/index.d.ts +0 -1
- package/build/assets/widget-icons/illustraions/approvedChatIllustration.js +1 -1
- package/build/assets/widget-icons/illustraions/bankCoin.js +1 -1
- package/build/assets/widget-icons/illustraions/bigSaleMedal.js +1 -1
- package/build/assets/widget-icons/illustraions/bubbleChatIllustration.js +1 -1
- package/build/assets/widget-icons/illustraions/giftIllustration.js +1 -1
- package/build/assets/widget-icons/illustraions/medal.js +1 -1
- package/build/assets/widget-icons/illustraions/shippingBox.js +1 -1
- package/build/assets/widget-icons/illustraions/shoppingCartIllustration.js +1 -1
- package/build/assets/widget-icons/illustraions/tshirtIllustration.js +1 -1
- package/build/assets/widget-icons/illustraions/usersIllustration.js +1 -1
- package/build/assets/widget-icons/normal/bubbleChatDone.js +1 -1
- package/build/assets/widget-icons/normal/commentAdd01.js +1 -1
- package/build/assets/widget-icons/normal/couponPercent.js +1 -1
- package/build/assets/widget-icons/normal/discountTag02.js +1 -1
- package/build/assets/widget-icons/normal/gift.js +1 -1
- package/build/assets/widget-icons/normal/moneyAdd01.js +1 -1
- package/build/assets/widget-icons/normal/packageDelivered.js +1 -1
- package/build/assets/widget-icons/normal/saveMoneyDollar.js +1 -1
- package/build/assets/widget-icons/normal/shoppingBasketAdd02.js +1 -1
- package/build/assets/widget-icons/normal/userAdd01.js +1 -1
- package/build/ext/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js +1 -0
- package/build/ext/@emotion/memoize/dist/memoize.browser.esm.js +1 -0
- package/build/ext/@emotion/stylis/dist/stylis.browser.esm.js +1 -0
- package/build/ext/@emotion/unitless/dist/unitless.browser.esm.js +1 -0
- package/build/ext/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -0
- package/build/ext/hoist-non-react-statics/ext/react-is/cjs/react-is.development.js +9 -0
- package/build/ext/hoist-non-react-statics/ext/react-is/cjs/react-is.production.min.js +9 -0
- package/build/ext/hoist-non-react-statics/ext/react-is/index.js +1 -0
- package/build/ext/i18next/dist/esm/i18next.js +1 -1
- package/build/ext/mobx/dist/mobx.esm.js +1 -0
- package/build/ext/mobx-react/dist/mobxreact.esm.js +1 -0
- package/build/ext/mobx-react-lite/es/ObserverComponent.js +1 -0
- package/build/ext/mobx-react-lite/es/index.js +1 -0
- package/build/ext/mobx-react-lite/es/observer.js +1 -0
- package/build/ext/mobx-react-lite/es/useAsObservableSource.js +1 -0
- package/build/ext/mobx-react-lite/es/useObserver.js +1 -0
- package/build/ext/mobx-react-lite/es/utils/UniversalFinalizationRegistry.js +1 -0
- package/build/ext/mobx-react-lite/es/utils/assertEnvironment.js +1 -0
- package/build/ext/mobx-react-lite/es/utils/observerBatching.js +1 -0
- package/build/ext/mobx-react-lite/es/utils/observerFinalizationRegistry.js +1 -0
- package/build/ext/mobx-react-lite/es/utils/printDebugValue.js +1 -0
- package/build/ext/react/cjs/react.development.js +10 -0
- package/build/ext/react/cjs/react.production.min.js +10 -0
- package/build/ext/react/index.js +1 -0
- package/build/ext/react-dom/cjs/react-dom.development.js +23 -0
- package/build/ext/react-dom/cjs/react-dom.production.min.js +10 -0
- package/build/ext/react-dom/index.js +1 -0
- package/build/ext/react-i18next/dist/es/I18nextProvider.js +1 -1
- package/build/ext/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js +1 -0
- package/build/ext/react-i18next/dist/es/context.js +1 -1
- package/build/ext/react-i18next/dist/es/defaults.js +1 -0
- package/build/ext/react-i18next/dist/es/i18nInstance.js +1 -0
- package/build/ext/react-i18next/dist/es/initReactI18next.js +1 -0
- package/build/ext/react-i18next/dist/es/unescape.js +1 -1
- package/build/ext/react-i18next/dist/es/useTranslation.js +1 -1
- package/build/ext/react-i18next/dist/es/utils.js +1 -1
- package/build/ext/react-is/cjs/react-is.development.js +10 -0
- package/build/ext/react-is/cjs/react-is.production.js +10 -0
- package/build/ext/react-is/index.js +1 -0
- package/build/ext/scheduler/cjs/scheduler.development.js +10 -0
- package/build/ext/scheduler/cjs/scheduler.production.min.js +10 -0
- package/build/ext/scheduler/index.js +1 -0
- package/build/ext/styled-components/dist/styled-components.browser.esm.js +1 -0
- package/build/ext/tslib/tslib.es6.mjs.js +1 -1
- package/build/ext/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +10 -0
- package/build/ext/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +10 -0
- package/build/ext/use-sync-external-store/shim/index.js +1 -0
- package/build/index.d.ts +0 -5
- package/build/index.js +1 -1
- package/build/models/base.d.ts +4 -0
- package/build/models/base.js +1 -0
- package/build/models/button/index.js +1 -1
- package/build/models/category/index.d.ts +5 -0
- package/build/models/image/index.d.ts +2 -2
- package/build/models/image/index.js +1 -1
- package/build/models/index.d.ts +5 -16
- package/build/models/index.js +1 -1
- package/build/models/loyalty-customer-info/index.d.ts +7 -7
- package/build/models/loyalty-customer-info/index.js +1 -1
- package/build/models/loyalty-program-earning-method/index.d.ts +30 -16
- package/build/models/loyalty-program-earning-method/index.js +1 -1
- package/build/models/loyalty-program-point-history/index.d.ts +3 -3
- package/build/models/loyalty-program-point-history/index.js +1 -1
- package/build/models/loyalty-program-spending-method/index.d.ts +20 -7
- package/build/models/loyalty-program-spending-method/index.js +1 -1
- package/build/models/loyalty-widget/header/header-background/index.d.ts +2 -1
- package/build/models/loyalty-widget/header/header-background/index.js +1 -1
- package/build/models/loyalty-widget/header/index.d.ts +1 -1
- package/build/models/loyalty-widget/header/index.js +1 -1
- package/build/models/loyalty-widget/header-background/index.d.ts +9 -0
- package/build/models/loyalty-widget/index.d.ts +2 -2
- package/build/models/loyalty-widget/index.js +1 -1
- package/build/models/loyalty-widget/settings/index.js +1 -1
- package/build/models/types/index.d.ts +36 -13
- package/build/models/types/index.js +1 -1
- package/build/renderer/components/button/index.js +1 -1
- package/build/renderer/components/button/style.d.ts +0 -1
- package/build/renderer/components/button/style.js +1 -1
- package/build/renderer/components/loyalty-method-card/index.d.ts +1 -2
- package/build/renderer/components/loyalty-method-card/index.js +1 -1
- package/build/renderer/components/loyalty-method-card/style.js +1 -1
- package/build/renderer/components/section-title/index.js +1 -1
- package/build/renderer/components/section-title/style.js +1 -1
- package/build/renderer/components/style/typography.d.ts +1 -3
- package/build/renderer/components/style/typography.js +1 -1
- package/build/renderer/index.js +1 -1
- package/build/renderer/screens/credit-earning-methods-screen/index.js +1 -1
- package/build/renderer/screens/credit-earning-methods-screen/style.js +1 -1
- package/build/renderer/screens/credit-history-screen/index.js +1 -1
- package/build/renderer/screens/credit-history-screen/style.d.ts +1 -3
- package/build/renderer/screens/credit-history-screen/style.js +1 -1
- package/build/renderer/screens/credit-spending-methods-screen/index.js +1 -1
- package/build/renderer/screens/credit-spending-methods-screen/style.d.ts +1 -3
- package/build/renderer/screens/credit-spending-methods-screen/style.js +1 -1
- package/build/renderer/screens/loyalty-level-screen/index.js +1 -1
- package/build/renderer/screens/loyalty-level-screen/style.d.ts +2 -6
- package/build/renderer/screens/loyalty-level-screen/style.js +1 -1
- package/build/renderer/screens/main-screen/earning-methods-section/index.d.ts +0 -1
- package/build/renderer/screens/main-screen/earning-methods-section/index.js +1 -1
- package/build/renderer/screens/main-screen/header/auth-user-section/index.js +1 -1
- package/build/renderer/screens/main-screen/header/auth-user-section/style.js +1 -1
- package/build/renderer/screens/main-screen/header/index.js +1 -1
- package/build/renderer/screens/main-screen/header/logo-section/index.js +1 -1
- package/build/renderer/screens/main-screen/header/logo-section/style.d.ts +1 -3
- package/build/renderer/screens/main-screen/header/logo-section/style.js +1 -1
- package/build/renderer/screens/main-screen/header/style.d.ts +5 -11
- package/build/renderer/screens/main-screen/header/style.js +1 -1
- package/build/renderer/screens/main-screen/header/title-section/index.js +1 -1
- package/build/renderer/screens/main-screen/header/title-section/style.js +1 -1
- package/build/renderer/screens/main-screen/header/user-logged-section/index.js +1 -1
- package/build/renderer/screens/main-screen/header/user-logged-section/style.js +1 -1
- package/build/renderer/screens/main-screen/index.js +1 -1
- package/build/renderer/screens/main-screen/program-info-section/index.js +1 -1
- package/build/renderer/screens/main-screen/program-info-section/style.d.ts +3 -11
- package/build/renderer/screens/main-screen/program-info-section/style.js +1 -1
- package/build/renderer/screens/main-screen/spending-methods-section/dynamic-slider.js +1 -1
- package/build/renderer/screens/main-screen/spending-methods-section/index.d.ts +0 -1
- package/build/renderer/screens/main-screen/spending-methods-section/index.js +1 -1
- package/build/renderer/screens/main-screen/style.js +1 -1
- package/build/renderer/style.d.ts +2 -17
- package/build/renderer/style.js +1 -1
- package/build/renderer/utils/i18n.js +1 -1
- package/build/renderer/utils/locales/en.json.js +1 -1
- package/build/renderer/utils/locales/tr.json.js +1 -1
- package/build/renderer/utils/loyalty-details.js +1 -1
- package/build/utils.d.ts +4 -6
- package/build/utils.js +1 -1
- package/package.json +13 -26
- package/build/assets/icons/arrow-right.d.ts +0 -2
- package/build/assets/icons/arrow-right.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/classCallCheck.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/createClass.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/defineProperty.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/inherits.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/iterableToArray.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/nonIterableRest.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/slicedToArray.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/toArray.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/toPrimitive.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/toPropertyKey.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/typeof.js +0 -1
- package/build/ext/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -1
- package/build/injector.d.ts +0 -5
- package/build/models/common/index.d.ts +0 -21
- package/build/models/common/index.js +0 -1
- package/build/models/mini-mode/index.d.ts +0 -7
- package/build/models/mini-mode/index.js +0 -1
- package/build/renderer/components/count-up/index.d.ts +0 -7
- package/build/renderer/components/count-up/index.js +0 -1
- package/build/renderer/components/flexible-value-container/index.d.ts +0 -16
- package/build/renderer/components/flexible-value-container/index.js +0 -1
- package/build/renderer/components/mini-mode-button/index.d.ts +0 -7
- package/build/renderer/components/mini-mode-button/index.js +0 -1
- package/build/renderer/components/mini-mode-button/style.d.ts +0 -6
- package/build/renderer/components/mini-mode-button/style.js +0 -1
- package/build/renderer/components/mini-mode-description/index.d.ts +0 -7
- package/build/renderer/components/mini-mode-description/index.js +0 -1
- package/build/renderer/components/mini-mode-description/style.d.ts +0 -3
- package/build/renderer/components/mini-mode-description/style.js +0 -1
- package/build/renderer/components/style/icon-wrapper.d.ts +0 -4
- package/build/renderer/components/style/icon-wrapper.js +0 -1
- package/build/storefront-widget-script-injector.iife.js +0 -68
- package/build/storefront-widget-script-injector.iife.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../react-is/index.js";import e from"../../react/index.js";import t from"../../@emotion/stylis/dist/stylis.browser.esm.js";import n from"../../@emotion/unitless/dist/unitless.browser.esm.js";import r from"../../@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js";import o from"../../hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js";import{r as s}from"../../../_virtual/index3.js";import{r as i}from"../../../_virtual/index.js";function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var c=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},u=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!s.exports.typeOf(e)},l=Object.freeze([]),d=Object.freeze({});function p(e){return"function"==typeof e}function h(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function f(e){return e&&"string"==typeof e.styledComponentId}var m="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",y="undefined"!=typeof window&&"HTMLElement"in window,v=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),g="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function w(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(t){e=e.replace(/%[a-z]/,t)}),e}function S(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw"production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(w.apply(void 0,[g[e]].concat(n)).trim())}var b=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&S(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),E=new Map,_=new Map,N=1,A=function(e){if(E.has(e))return E.get(e);for(;_.has(N);)N++;var t=N++;return"production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&S(16,""+t),E.set(e,t),_.set(t,e),t},C=function(e){return _.get(e)},I=function(e,t){t>=N&&(N=t+1),E.set(e,t),_.set(t,e)},P="style["+m+'][data-styled-version="5.3.3"]',R=new RegExp("^"+m+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),x=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},j=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(R);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(I(u,c),x(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(i)}}},D=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(m))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(m,"active"),r.setAttribute("data-styled-version","5.3.3");var i="undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null;return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},O=function(){function e(e){var t=this.element=D(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}S(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),T=function(){function e(e){var t=this.element=D(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),k=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),V=y,z={isServer:!y,useCSSOMInjection:!v},B=function(){function e(e,t,n){void 0===e&&(e=d),void 0===t&&(t={}),this.options=a({},z,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&y&&V&&(V=!1,function(e){for(var t=document.querySelectorAll(P),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(m)&&(j(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return A(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(a({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new k(o):r?new O(o):new T(o),new b(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(A(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(A(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(A(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=C(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=m+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach(function(e){e.length>0&&(u+=e+",")}),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),F=/(a)(d)/gi,L=function(e){return String.fromCharCode(e+(e>25?39:97))};function M(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=L(t%52)+n;return(L(t%52)+n).replace(F,"$1-$2")}var G=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Y=function(e){return G(5381,e)};var q=Y("5.3.3"),$=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(p(n)&&!f(n))return!1}return!0}(e),this.componentId=t,this.baseHash=G(q,t),this.baseStyle=n,B.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var s=se(this.rules,e,t,n).join(""),i=M(G(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a)}o.push(i),this.staticRulesId=i}else{for(var c=this.rules.length,u=G(this.baseHash,n.hash),l="",d=0;d<c;d++){var p=this.rules[d];if("string"==typeof p)l+=p,"production"!==process.env.NODE_ENV&&(u=G(u,p+d));else if(p){var h=se(p,e,t,n),f=Array.isArray(h)?h.join(""):h;u=G(u,f+d),l+=f}}if(l){var m=M(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y)}o.push(m)}}return o.join(" ")},e}(),H=/^\s*\/\/.*$/gm,U=[":","[",".","#"];var W=e.createContext();W.Consumer;var Z=e.createContext(),J=(Z.Consumer,new B),X=function(e){var n,r,o,s,i=void 0===e?d:e,a=i.options,c=void 0===a?d:a,u=i.plugins,p=void 0===u?l:u,h=new t(c),f=[],m=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}(function(e){f.push(e)}),y=function(e,t,o){return 0===t&&-1!==U.indexOf(o[r.length])||o.match(s)?e:"."+n};function v(e,t,i,a){void 0===a&&(a="&");var c=e.replace(H,""),u=t&&i?i+" "+t+" { "+c+" }":c;return n=a,r=t,o=new RegExp("\\"+r+"\\b","g"),s=new RegExp("(\\"+r+"\\b){2,}"),h(i||!t?"":t,u)}return h.use([].concat(p,[function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(r)>0&&(n[0]=n[0].replace(o,y))},m,function(e){if(-2===e){var t=f;return f=[],t}}])),v.hash=p.length?p.reduce(function(e,t){return t.name||S(15),G(e,t.name)},5381).toString():"",v}();var K=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=X);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return S(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=X),this.name+e.hash},e}(),Q=/([A-Z])/,ee=/([A-Z])/g,te=/^ms-/,ne=function(e){return"-"+e.toLowerCase()};function re(e){return Q.test(e)?e.replace(ee,ne).replace(te,"-ms-"):e}var oe=function(e){return null==e||!1===e||""===e};function se(e,t,r,o){if(Array.isArray(e)){for(var i,a=[],c=0,l=e.length;c<l;c+=1)""!==(i=se(e[c],t,r,o))&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}if(oe(e))return"";if(f(e))return"."+e.styledComponentId;if(p(e)){if("function"!=typeof(m=e)||m.prototype&&m.prototype.isReactComponent||!t)return e;var d=e(t);return"production"!==process.env.NODE_ENV&&s.exports.isElement(d)&&console.warn(h(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),se(d,t,r,o)}var m;return e instanceof K?r?(e.inject(r,o),e.getName(o)):e:u(e)?function e(t,r){var o,s,i=[];for(var a in t)t.hasOwnProperty(a)&&!oe(t[a])&&(Array.isArray(t[a])&&t[a].isCss||p(t[a])?i.push(re(a)+":",t[a],";"):u(t[a])?i.push.apply(i,e(t[a],a)):i.push(re(a)+": "+(o=a,(null==(s=t[a])||"boolean"==typeof s||""===s?"":"number"!=typeof s||0===s||o in n?String(s).trim():s+"px")+";")));return r?[r+" {"].concat(i,["}"]):i}(e):e.toString()}var ie=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return p(e)||u(e)?ie(se(c(l,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ie(se(c(e,n)))}var ce=/invalid hook call/i,ue=new Set,le=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,de=/(^-|-$)/g;function pe(e){return e.replace(le,"-").replace(de,"")}var he=function(e){return M(Y(e)>>>0)};function fe(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var me=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ye=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ve(e,t,n){var r=e[n];me(t)&&me(r)?ge(r,t):e[n]=t}function ge(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(me(i))for(var a in i)ye(a)&&ve(e,i[a],a)}return e}var we=e.createContext();we.Consumer;var Se={};function be(t,n,s){var c=f(t),u=!fe(t),m=n.attrs,y=void 0===m?l:m,v=n.componentId,g=void 0===v?function(e,t){var n="string"!=typeof e?"sc":pe(e);Se[n]=(Se[n]||0)+1;var r=n+"-"+he("5.3.3"+n+Se[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):v,w=n.displayName,S=void 0===w?function(e){return fe(e)?"styled."+e:"Styled("+h(e)+")"}(t):w,b=n.displayName&&n.componentId?pe(n.displayName)+"-"+n.componentId:n.componentId||g,E=c&&t.attrs?Array.prototype.concat(t.attrs,y).filter(Boolean):y,_=n.shouldForwardProp;c&&t.shouldForwardProp&&(_=n.shouldForwardProp?function(e,r,o){return t.shouldForwardProp(e,r,o)&&n.shouldForwardProp(e,r,o)}:t.shouldForwardProp);var N,A=new $(s,b,c?t.componentStyle:void 0),C=A.isStatic&&0===y.length,I=function(e,t){return function(e,t,n,o){var s=e.attrs,c=e.componentStyle,u=e.defaultProps,l=e.foldedComponentIds,h=e.shouldForwardProp,f=e.styledComponentId,m=e.target;"production"!==process.env.NODE_ENV&&i.exports.useDebugValue(f);var y=function(e,t,n){void 0===e&&(e=d);var r=a({},t,{theme:e}),o={};return n.forEach(function(e){var t,n,s,i=e;for(t in p(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t]}),[r,o]}(function(e,t,n){return void 0===n&&(n=d),e.theme!==n.theme&&e.theme||t||n.theme}(t,i.exports.useContext(we),u)||d,t,s),v=y[0],g=y[1],w=function(e,t,n,r){var o=i.exports.useContext(W)||J,s=i.exports.useContext(Z)||X,a=t?e.generateAndInjectStyles(d,o,s):e.generateAndInjectStyles(n,o,s);return"production"!==process.env.NODE_ENV&&i.exports.useDebugValue(a),"production"!==process.env.NODE_ENV&&!t&&r&&r(a),a}(c,o,v,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),S=n,b=g.$as||t.$as||g.as||t.as||m,E=fe(b),_=g!==t?a({},t,{},g):t,N={};for(var A in _)"$"!==A[0]&&"as"!==A&&("forwardedAs"===A?N.as=_[A]:(h?h(A,r,b):!E||r(A))&&(N[A]=_[A]));return t.style&&g.style!==t.style&&(N.style=a({},t.style,{},g.style)),N.className=Array.prototype.concat(l,f,w!==f?w:null,t.className,g.className).filter(Boolean).join(" "),N.ref=S,i.exports.createElement(b,N)}(N,e,t,C)};return I.displayName=S,(N=e.forwardRef(I)).attrs=E,N.componentStyle=A,N.displayName=S,N.shouldForwardProp=_,N.foldedComponentIds=c?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):l,N.styledComponentId=b,N.target=c?t.target:t,N.withComponent=function(e){var t=n.componentId,r=function(e,t){if(null==e)return{};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["componentId"]),o=t&&t+"-"+(fe(e)?e:pe(h(e)));return be(e,a({},r,{attrs:E,componentId:o}),s)},Object.defineProperty(N,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=c?ge({},t.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(function(e,t){if("production"!==process.env.NODE_ENV){var n="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var o=!0;console.error=function(e){if(ce.test(e))o=!1,ue.delete(n);else{for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];r.apply(void 0,[e].concat(s))}},i.exports.useRef(),o&&!ue.has(n)&&(console.warn(n),ue.add(n))}catch(e){ce.test(e.message)&&ue.delete(n)}finally{console.error=r}}}(S,b),N.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={}}}}(S,b)),N.toString=function(){return"."+N.styledComponentId},u&&o(N,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),N}var Ee=function(e){return function e(t,n,r){if(void 0===r&&(r=d),!s.exports.isValidElementType(n))return S(1,String(n));var o=function(){return t(n,r,ae.apply(void 0,arguments))};return o.withConfig=function(o){return e(t,n,a({},r,{},o))},o.attrs=function(o){return e(t,n,a({},r,{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o}(be,e)};function _e(e){"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=ae.apply(void 0,[e].concat(n)).join(""),s=he(o);return new K(s,o)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Ee[e]=Ee(e)}),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);export{W as StyleSheetContext,we as ThemeContext,ae as css,Ee as default,f as isStyledComponent,_e as keyframes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=function(){return e=Object.assign||function(
|
|
1
|
+
var t=function(r,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])},t(r,e)};function r(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=r}t(r,e),r.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var e=function(){return e=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},e.apply(this,arguments)};function n(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(e[n[o]]=t[n[o]])}return e}function o(t,r,e,n){return new(e||(e=Promise))(function(o,c){function a(t){try{u(n.next(t))}catch(t){c(t)}}function l(t){try{u(n.throw(t))}catch(t){c(t)}}function u(t){var r;t.done?o(t.value):(r=t.value,r instanceof e?r:new e(function(t){t(r)})).then(a,l)}u((n=n.apply(t,r||[])).next())})}function c(t,r){var e,n,o,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(c=0)),c;)try{if(e=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return c.label++,{value:l[1],done:!1};case 5:c.label++,n=l[1],l=[0];continue;case 7:l=c.ops.pop(),c.trys.pop();continue;default:if(!(o=c.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){c=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){c.label=l[1];break}if(6===l[0]&&c.label<o[1]){c.label=o[1],o=l;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(l);break}o[2]&&c.ops.pop(),c.trys.pop();continue}l=r.call(t,c)}catch(t){l=[6,t],n=0}finally{e=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}function a(t,r,e){if(e||2===arguments.length)for(var n,o=0,c=r.length;o<c;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return t.concat(n||Array.prototype.slice.call(r))}function l(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}"function"==typeof SuppressedError&&SuppressedError;export{e as __assign,o as __awaiter,r as __extends,c as __generator,l as __makeTemplateObject,n as __rest,a as __spreadArray};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{__exports as e}from"../../../_virtual/use-sync-external-store-shim.development.js";import"../../react/index.js";import{r as t}from"../../../_virtual/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* use-sync-external-store-shim.development.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var r;function n(){return r||(r=1,"production"!==process.env.NODE_ENV&&function(){function r(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!o(e,r)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=t.exports,o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=n.useState,a=n.useEffect,i=n.useLayoutEffect,s=n.useDebugValue,_=!1,c=!1,l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){_||void 0===n.startTransition||(_=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var l=t();if(!c){var O=t();o(l,O)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var f=(O=u({inst:{value:l,getSnapshot:t}}))[0].inst,d=O[1];return i(function(){f.value=l,f.getSnapshot=t,r(f)&&d({inst:f})},[e,l,t]),a(function(){return r(f)&&d({inst:f}),e(function(){r(f)&&d({inst:f})})},[e]),s(l),l};e.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),e}export{n as __require};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{__exports as t}from"../../../_virtual/use-sync-external-store-shim.production.js";import"../../react/index.js";import{r as e}from"../../../_virtual/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license React
|
|
4
|
+
* use-sync-external-store-shim.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var n;function r(){if(n)return t;n=1;var r=e.exports;var u="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=r.useState,i=r.useEffect,s=r.useLayoutEffect,a=r.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!u(t,n)}catch(t){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=o({inst:{value:n,getSnapshot:e}}),u=r[0].inst,f=r[1];return s(function(){u.value=n,u.getSnapshot=e,c(u)&&f({inst:u})},[t,n,e]),i(function(){return c(u)&&f({inst:u}),t(function(){c(u)&&f({inst:u})})},[t]),a(n),n};return t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:f,t}export{r as __require};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s as r}from"../../../_virtual/index2.js";import{__require as s}from"../cjs/use-sync-external-store-shim.production.js";import{__require as e}from"../cjs/use-sync-external-store-shim.development.js";var o;o=r,"production"===process.env.NODE_ENV?o.exports=s():o.exports=e();
|
package/build/index.d.ts
CHANGED
|
@@ -4,11 +4,6 @@ export * from "./models/loyalty-widget/header";
|
|
|
4
4
|
export * from "./models/loyalty-widget/header/header-background";
|
|
5
5
|
export * from "./models/image";
|
|
6
6
|
export * from "./models/button";
|
|
7
|
-
export * from "./models/loyalty-customer-info";
|
|
8
|
-
export * from "./models/loyalty-program-point-history";
|
|
9
|
-
export * from "./models/loyalty-program-spending-method";
|
|
10
|
-
export * from "./models/loyalty-program-earning-method";
|
|
11
|
-
export * from "./models/loyalty-widget";
|
|
12
7
|
export * from "./models/loyalty-widget/settings";
|
|
13
8
|
export * from "./models";
|
|
14
9
|
export * from "./models/types";
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{LoyaltyWidget}from"./models/loyalty-widget/index.js";export{BadgeIconTypeEnum,HeaderBackgroundTypeEnum,ImageTypeEnum,LoyaltyWidgetLayoutTypeEnum,WidgetIconTypeEnum,WidgetPositionEnum}from"./models/loyalty-widget/types/index.js";export{LoyaltyWidgetHeader}from"./models/loyalty-widget/header/index.js";export{LoyaltyWidgetHeaderBackground}from"./models/loyalty-widget/header/header-background/index.js";export{IMAGE_SIZE,LoyaltyWidgetImage}from"./models/image/index.js";export{LoyaltyWidgetButton}from"./models/button/index.js";export{
|
|
1
|
+
export{LoyaltyWidget}from"./models/loyalty-widget/index.js";export{BadgeIconTypeEnum,HeaderBackgroundTypeEnum,ImageTypeEnum,LoyaltyWidgetLayoutTypeEnum,WidgetIconTypeEnum,WidgetPositionEnum}from"./models/loyalty-widget/types/index.js";export{LoyaltyWidgetHeader}from"./models/loyalty-widget/header/index.js";export{LoyaltyWidgetHeaderBackground}from"./models/loyalty-widget/header/header-background/index.js";export{IMAGE_SIZE,LoyaltyWidgetImage}from"./models/image/index.js";export{LoyaltyWidgetButton}from"./models/button/index.js";export{LoyaltyWidgetSettings}from"./models/loyalty-widget/settings/index.js";export{LoyaltyWidgetViewModel}from"./models/index.js";export{EarningMethodTypeEnum,LoyaltyProgramFilterTypeEnum,LoyaltyProgramMethodSpendingTypeEnum,LoyaltyProgramPeriod,LoyaltyProgramPointEarningTypeEnum,LoyaltyProgramPointHistoryTypeEnum,LoyaltyWidgetScreenTypeEnum,PeriodTypeEnum}from"./models/types/index.js";export{BadgeLevel1}from"./assets/badgeLevel1.js";export{BadgeLevel2}from"./assets/badgeLevel2.js";export{BadgeLevel3}from"./assets/badgeLevel3.js";export{BadgeLevel4}from"./assets/badgeLevel4.js";export{XClose}from"./assets/icons/x-close.js";export{CheckCircleFill}from"./assets/icons/check-circle-fill.js";export{ChevronLeft}from"./assets/icons/chevron-left.js";export{Check}from"./assets/icons/check.js";export{BubbleChatDone}from"./assets/widget-icons/normal/bubbleChatDone.js";export{CommentAdd01}from"./assets/widget-icons/normal/commentAdd01.js";export{CouponPercent}from"./assets/widget-icons/normal/couponPercent.js";export{DiscountTag02}from"./assets/widget-icons/normal/discountTag02.js";export{Gift}from"./assets/widget-icons/normal/gift.js";export{MoneyAdd01}from"./assets/widget-icons/normal/moneyAdd01.js";export{PackageDelivered}from"./assets/widget-icons/normal/packageDelivered.js";export{SaveMoneyDollar}from"./assets/widget-icons/normal/saveMoneyDollar.js";export{ShoppingBasketAdd02}from"./assets/widget-icons/normal/shoppingBasketAdd02.js";export{UserAdd01}from"./assets/widget-icons/normal/userAdd01.js";export{UsersIllustration}from"./assets/widget-icons/illustraions/usersIllustration.js";export{BubbleChatIllustration}from"./assets/widget-icons/illustraions/bubbleChatIllustration.js";export{ApprovedChatIllustration}from"./assets/widget-icons/illustraions/approvedChatIllustration.js";export{TshirtIllustration}from"./assets/widget-icons/illustraions/tshirtIllustration.js";export{Medal}from"./assets/widget-icons/illustraions/medal.js";export{GiftIllustration}from"./assets/widget-icons/illustraions/giftIllustration.js";export{ShippingBox}from"./assets/widget-icons/illustraions/shippingBox.js";export{BigSaleMedal}from"./assets/widget-icons/illustraions/bigSaleMedal.js";export{ShoppingCartIllustration}from"./assets/widget-icons/illustraions/shoppingCartIllustration.js";export{default as LoyaltyWidgetRenderer}from"./renderer/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{makeObservable as s,observable as o}from'./../ext/mobx/dist/mobx.esm.js';import'./../ext/uuid/dist/esm-browser/stringify.js';import'./../ext/uuid/dist/esm-browser/v3.js';import d from'./../ext/uuid/dist/esm-browser/v4.js';import'./../ext/uuid/dist/esm-browser/v5.js';var i=function(i){void 0===i&&(i={}),this.id=i.id||d(),s(this,{id:o})};export{i as BaseModel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as o,observable as l}from
|
|
1
|
+
import{makeObservable as o,observable as l}from'./../../ext/mobx/dist/mobx.esm.js';var t=function(t){var r,i,u,d;void 0===t&&(t={}),this.buttonRadius=null!==(r=t.buttonRadius)&&void 0!==r?r:0,this.bgColor=null!==(i=t.bgColor)&&void 0!==i?i:null,this.textColor=null!==(u=t.textColor)&&void 0!==u?u:null,this.borderColor=null!==(d=t.borderColor)&&void 0!==d?d:null,o(this,{buttonRadius:l,bgColor:l,textColor:l,borderColor:l})};export{t as LoyaltyWidgetButton};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from "models/base";
|
|
1
2
|
import { ImageTypeEnum } from "models/loyalty-widget/types";
|
|
2
3
|
export declare const IMAGE_SIZE = 1080;
|
|
3
|
-
export declare class LoyaltyWidgetImage {
|
|
4
|
+
export declare class LoyaltyWidgetImage extends BaseModel {
|
|
4
5
|
link: string | null;
|
|
5
6
|
cdnURL: string | null;
|
|
6
7
|
merchantId: string | null;
|
|
7
8
|
imageId: string | null;
|
|
8
9
|
type: ImageTypeEnum;
|
|
9
|
-
maxHeight: number;
|
|
10
10
|
constructor(data: Partial<LoyaltyWidgetImage>);
|
|
11
11
|
get src(): string | undefined;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as t,observable as
|
|
1
|
+
import{__extends as e}from'./../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as t,observable as n,computed as i}from'./../../ext/mobx/dist/mobx.esm.js';import{BaseModel as r}from"../base.js";import{ImageTypeEnum as o}from"../loyalty-widget/types/index.js";var m=1080,c=function(r){function m(e){var m=r.call(this,e)||this;return m.imageId=e.imageId||null,m.link=e.link||null,m.cdnURL=e.cdnURL||null,m.merchantId=e.merchantId||null,m.type=e.type||o.SHOW,t(m,{imageId:n,link:n,cdnURL:n,merchantId:n,type:n,src:i}),m}return e(m,r),Object.defineProperty(m.prototype,"src",{get:function(){if(this.imageId)return"".concat(this.cdnURL,"images/").concat(this.merchantId,"/").concat(this.imageId,"/image_").concat(1080,".jpeg")},enumerable:!1,configurable:!0}),m}(r);export{m as IMAGE_SIZE,c as LoyaltyWidgetImage};
|
package/build/models/index.d.ts
CHANGED
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LoyaltyWidget } from "./loyalty-widget";
|
|
2
|
+
import { LoyaltyWidgetCallbacks, LoyaltyWidgetScreenTypeEnum, Category, Product, Brand, Tag, LoyaltyProgramTier } from "./types";
|
|
3
|
+
import { LoyaltyProgramSpendingMethod } from "./loyalty-program-spending-method";
|
|
2
4
|
import { LoyaltyProgramEarningMethod } from "./loyalty-program-earning-method";
|
|
5
|
+
import { LoyaltyCustomerInfo } from "./loyalty-customer-info";
|
|
3
6
|
import { LoyaltyProgramPointHistory } from "./loyalty-program-point-history";
|
|
4
|
-
import { LoyaltyProgramSpendingMethod } from "./loyalty-program-spending-method";
|
|
5
|
-
import { LoyaltyWidget } from "./loyalty-widget";
|
|
6
|
-
import { Brand, Category, LoyaltyWidgetCallbacks, LoyaltyWidgetScreenTypeEnum, Product, Tag, WidgetMode } from "./types";
|
|
7
7
|
export declare class LoyaltyWidgetViewModel {
|
|
8
8
|
selectedScreen: LoyaltyWidgetScreenTypeEnum;
|
|
9
|
-
currentWidgetMode: WidgetMode;
|
|
10
|
-
isMiniModeDescriptionClosed: boolean;
|
|
11
9
|
isLoading: boolean;
|
|
12
|
-
isActionLoading: boolean;
|
|
13
10
|
loyaltyWidget: LoyaltyWidget;
|
|
14
|
-
userRefreshTrigger: number;
|
|
15
|
-
cartRefreshTrigger: number;
|
|
16
11
|
cartId?: string | null;
|
|
17
|
-
ikasEventUser: any | null;
|
|
18
12
|
cdnURL: string;
|
|
19
13
|
merchantId: string;
|
|
20
14
|
storeUrl: string;
|
|
21
15
|
currency: string;
|
|
22
16
|
locale: string;
|
|
23
|
-
isPreviewMode: boolean;
|
|
24
17
|
user: LoyaltyCustomerInfo | null;
|
|
25
18
|
categories: Category[] | null;
|
|
26
19
|
products: Product[];
|
|
@@ -31,9 +24,5 @@ export declare class LoyaltyWidgetViewModel {
|
|
|
31
24
|
tiers: LoyaltyProgramTier[];
|
|
32
25
|
pointHistory: LoyaltyProgramPointHistory[];
|
|
33
26
|
callbacks?: LoyaltyWidgetCallbacks;
|
|
34
|
-
constructor(data: Partial<LoyaltyWidgetViewModel> | undefined, cdnURL: string, merchantId: string, currency: string, locale: string,
|
|
35
|
-
get shouldShowSpendingMethods(): boolean;
|
|
36
|
-
setWidgetMode(mode: WidgetMode): void;
|
|
37
|
-
closeMiniModeDescription(): void;
|
|
38
|
-
formatCurrency(price: number): string;
|
|
27
|
+
constructor(data: Partial<LoyaltyWidgetViewModel> | undefined, cdnURL: string, merchantId: string, currency: string, locale: string, callbacks?: LoyaltyWidgetCallbacks);
|
|
39
28
|
}
|
package/build/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{makeObservable as t,observable as e}from'./../ext/mobx/dist/mobx.esm.js';import{LoyaltyWidget as s}from"./loyalty-widget/index.js";import{LoyaltyWidgetScreenTypeEnum as i}from"./types/index.js";import{LoyaltyProgramSpendingMethod as r}from"./loyalty-program-spending-method/index.js";import{LoyaltyProgramEarningMethod as o}from"./loyalty-program-earning-method/index.js";import{LoyaltyCustomerInfo as n}from"./loyalty-customer-info/index.js";var d=function(d,a,c,l,h,g){void 0===d&&(d={}),this.selectedScreen=d.selectedScreen||i.MAIN_SCREEN,this.isLoading=d.isLoading||!1,this.loyaltyWidget=d.loyaltyWidget?new s(d.loyaltyWidget):new s,this.cdnURL=a,this.merchantId=c,this.storeUrl=d.storeUrl||"",this.currency=l,this.locale=h,this.cartId=d.cartId||null,this.user=d.user?new n(d.user):null,this.earningMethods=d.earningMethods?d.earningMethods.map(function(t){return new o(t)}):[],this.spendingMethods=d.spendingMethods?d.spendingMethods.map(function(t){return new r(t)}):[],this.tiers=d.tiers?d.tiers:[],this.categories=d.categories?d.categories:[],this.products=d.products?d.products:[],this.brands=d.brands?d.brands:[],this.tags=d.tags?d.tags:[],this.pointHistory=d.pointHistory?d.pointHistory:[],this.callbacks=g||void 0,t(this,{cartId:e,loyaltyWidget:e,isLoading:e,cdnURL:e,merchantId:e,storeUrl:e,currency:e,locale:e,selectedScreen:e,user:e,earningMethods:e,spendingMethods:e,tiers:e,categories:e,products:e,brands:e,tags:e,pointHistory:e})};export{d as LoyaltyWidgetViewModel};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LoyaltyProgramPeriod } from "../
|
|
1
|
+
import { LoyaltyProgramPeriod } from "../types";
|
|
2
2
|
export declare class LoyaltyProgramTierTranslation {
|
|
3
3
|
locale: string;
|
|
4
4
|
name: string;
|
|
@@ -7,16 +7,16 @@ export declare class LoyaltyProgramTierTranslation {
|
|
|
7
7
|
export declare class LoyaltyProgramTier {
|
|
8
8
|
id: string;
|
|
9
9
|
name: string;
|
|
10
|
-
pointsRequired: number
|
|
11
|
-
tierPointMultiplier: number
|
|
10
|
+
pointsRequired: number;
|
|
11
|
+
tierPointMultiplier: number;
|
|
12
12
|
loyaltyProgramId: string;
|
|
13
|
-
customerSegmentId: string
|
|
14
|
-
createdAt:
|
|
15
|
-
updatedAt:
|
|
13
|
+
customerSegmentId: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
updatedAt: string;
|
|
16
16
|
deleted: boolean;
|
|
17
17
|
isActive: boolean;
|
|
18
18
|
period: LoyaltyProgramPeriod | null;
|
|
19
|
-
translations: LoyaltyProgramTierTranslation[]
|
|
19
|
+
translations: LoyaltyProgramTierTranslation[];
|
|
20
20
|
constructor(data?: Partial<LoyaltyProgramTier>);
|
|
21
21
|
}
|
|
22
22
|
export declare class LoyaltyCustomerInfo {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as t,observable as
|
|
1
|
+
import{makeObservable as t,observable as e}from'./../../ext/mobx/dist/mobx.esm.js';import{LoyaltyProgramPeriod as i}from"../types/index.js";var o=function(i){void 0===i&&(i={}),this.locale=i.locale||"",this.name=i.name||"",t(this,{locale:e,name:e})},r=function(r){void 0===r&&(r={}),this.id=r.id||"",this.name=r.name||"",this.pointsRequired=r.pointsRequired||0,this.tierPointMultiplier=r.tierPointMultiplier||0,this.loyaltyProgramId=r.loyaltyProgramId||"",this.customerSegmentId=r.customerSegmentId||"",this.createdAt=r.createdAt||"",this.updatedAt=r.updatedAt||"",this.deleted=r.deleted||!1,this.isActive=r.isActive||!1,this.period=r.period?new i(r.period):null,this.translations=r.translations?r.translations.map(function(t){return new o(t)}):[],t(this,{id:e,name:e,pointsRequired:e,tierPointMultiplier:e,loyaltyProgramId:e,customerSegmentId:e,createdAt:e,updatedAt:e,deleted:e,isActive:e,period:e,translations:e})},s=function(i){void 0===i&&(i={}),this.customerTierId=i.customerTierId?new r(i.customerTierId):null,this.loyaltyProgramCustomerId=i.loyaltyProgramCustomerId||"",this.loyaltyProgramId=i.loyaltyProgramId||"",this.totalPoint=i.totalPoint||0,t(this,{customerTierId:e,loyaltyProgramCustomerId:e,loyaltyProgramId:e,totalPoint:e})};export{s as LoyaltyCustomerInfo,r as LoyaltyProgramTier,o as LoyaltyProgramTierTranslation};
|
|
@@ -1,37 +1,51 @@
|
|
|
1
|
-
import { EarningMethodTypeEnum, LoyaltyProgramPointEarningTypeEnum } from "../types";
|
|
2
|
-
|
|
1
|
+
import { EarningMethodTypeEnum, LoyaltyProgramPointEarningTypeEnum, LoyaltyProgramPeriod, LoyaltyProgramFilterTypeEnum } from "../types";
|
|
2
|
+
export declare class LoyaltyProgramPointLimit {
|
|
3
|
+
maxPointLimit: number;
|
|
4
|
+
minPointLimit: number;
|
|
5
|
+
constructor(data?: Partial<LoyaltyProgramPointLimit>);
|
|
6
|
+
}
|
|
7
|
+
export declare class LoyaltyProgramFilter {
|
|
8
|
+
type: LoyaltyProgramFilterTypeEnum;
|
|
9
|
+
idList: string[];
|
|
10
|
+
constructor(data?: Partial<LoyaltyProgramFilter>);
|
|
11
|
+
}
|
|
3
12
|
export declare class LoyaltyProgramEarningMethodOrderSettings {
|
|
4
|
-
maxOrderAmount: number
|
|
13
|
+
maxOrderAmount: number;
|
|
5
14
|
minOrderAmount: number;
|
|
6
|
-
productFilters: LoyaltyProgramFilter[]
|
|
15
|
+
productFilters: LoyaltyProgramFilter[];
|
|
7
16
|
constructor(data?: Partial<LoyaltyProgramEarningMethodOrderSettings>);
|
|
8
17
|
}
|
|
9
18
|
export declare class LoyaltyProgramEarningMethodProductSettings {
|
|
10
|
-
maxProductQuantity: number
|
|
11
|
-
minProductQuantity: number
|
|
12
|
-
productFilters: LoyaltyProgramFilter[]
|
|
19
|
+
maxProductQuantity: number;
|
|
20
|
+
minProductQuantity: number;
|
|
21
|
+
productFilters: LoyaltyProgramFilter[];
|
|
13
22
|
constructor(data?: Partial<LoyaltyProgramEarningMethodProductSettings>);
|
|
14
23
|
}
|
|
24
|
+
export declare class LoyaltyProgramMethodTranslation {
|
|
25
|
+
description: string;
|
|
26
|
+
locale: string;
|
|
27
|
+
constructor(data?: Partial<LoyaltyProgramMethodTranslation>);
|
|
28
|
+
}
|
|
15
29
|
export declare class LoyaltyProgramEarningMethod {
|
|
16
|
-
amountPerPointsEarned: number
|
|
17
|
-
createdAt:
|
|
30
|
+
amountPerPointsEarned: number;
|
|
31
|
+
createdAt: string;
|
|
18
32
|
deleted: boolean;
|
|
19
|
-
description: string
|
|
33
|
+
description: string;
|
|
20
34
|
earnedPointLimit: LoyaltyProgramPointLimit | null;
|
|
21
35
|
id: string;
|
|
22
36
|
isActive: boolean;
|
|
23
|
-
lastValidityDate:
|
|
37
|
+
lastValidityDate: string;
|
|
24
38
|
loyaltyProgramId: string;
|
|
25
39
|
methodType: EarningMethodTypeEnum;
|
|
26
40
|
orderSettings: LoyaltyProgramEarningMethodOrderSettings | null;
|
|
27
41
|
pointEarningType: LoyaltyProgramPointEarningTypeEnum;
|
|
28
42
|
pointsEarned: number;
|
|
29
43
|
productSettings: LoyaltyProgramEarningMethodProductSettings | null;
|
|
30
|
-
quantityPerPointsEarned: number
|
|
31
|
-
segmentId: string
|
|
32
|
-
tierIds: string[]
|
|
33
|
-
translations: LoyaltyProgramMethodTranslation[]
|
|
34
|
-
updatedAt:
|
|
44
|
+
quantityPerPointsEarned: number;
|
|
45
|
+
segmentId: string;
|
|
46
|
+
tierIds: string[];
|
|
47
|
+
translations: LoyaltyProgramMethodTranslation[];
|
|
48
|
+
updatedAt: string;
|
|
35
49
|
validityPeriod: LoyaltyProgramPeriod | null;
|
|
36
50
|
constructor(data?: Partial<LoyaltyProgramEarningMethod>);
|
|
37
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as t,observable as i}from
|
|
1
|
+
import{makeObservable as t,observable as i}from'./../../ext/mobx/dist/mobx.esm.js';import{EarningMethodTypeEnum as n,LoyaltyProgramPointEarningTypeEnum as e,LoyaltyProgramPeriod as r,LoyaltyProgramFilterTypeEnum as o}from"../types/index.js";var d=function(n){void 0===n&&(n={}),this.maxPointLimit=n.maxPointLimit||0,this.minPointLimit=n.minPointLimit||0,t(this,{maxPointLimit:i,minPointLimit:i})},s=function(n){void 0===n&&(n={}),this.type=n.type||o.CATEGORY,this.idList=n.idList||[],t(this,{type:i,idList:i})},a=function(n){void 0===n&&(n={}),this.maxOrderAmount=n.maxOrderAmount||0,this.minOrderAmount=n.minOrderAmount||0,this.productFilters=n.productFilters?n.productFilters.map(function(t){return new s(t)}):[],t(this,{maxOrderAmount:i,minOrderAmount:i,productFilters:i})},m=function(n){void 0===n&&(n={}),this.maxProductQuantity=n.maxProductQuantity||0,this.minProductQuantity=n.minProductQuantity||0,this.productFilters=n.productFilters?n.productFilters.map(function(t){return new s(t)}):[],t(this,{maxProductQuantity:i,minProductQuantity:i,productFilters:i})},u=function(n){void 0===n&&(n={}),this.description=n.description||"",this.locale=n.locale||"",t(this,{description:i,locale:i})},l=function(o){void 0===o&&(o={}),this.amountPerPointsEarned=o.amountPerPointsEarned||0,this.createdAt=o.createdAt||"",this.deleted=o.deleted||!1,this.description=o.description||"",this.earnedPointLimit=o.earnedPointLimit?new d(o.earnedPointLimit):null,this.id=o.id||"",this.isActive=o.isActive||!1,this.lastValidityDate=o.lastValidityDate||"",this.loyaltyProgramId=o.loyaltyProgramId||"",this.methodType=o.methodType||n.ORDER_CREATE,this.orderSettings=o.orderSettings?new a(o.orderSettings):null,this.pointEarningType=o.pointEarningType||e.STATIC,this.pointsEarned=o.pointsEarned||0,this.productSettings=o.productSettings?new m(o.productSettings):null,this.quantityPerPointsEarned=o.quantityPerPointsEarned||0,this.segmentId=o.segmentId||"",this.tierIds=o.tierIds||[],this.translations=o.translations?o.translations.map(function(t){return new u(t)}):[],this.updatedAt=o.updatedAt||"",this.validityPeriod=o.validityPeriod?new r(o.validityPeriod):null,t(this,{amountPerPointsEarned:i,createdAt:i,deleted:i,description:i,earnedPointLimit:i,id:i,isActive:i,lastValidityDate:i,loyaltyProgramId:i,methodType:i,orderSettings:i,pointEarningType:i,pointsEarned:i,productSettings:i,quantityPerPointsEarned:i,segmentId:i,tierIds:i,translations:i,updatedAt:i,validityPeriod:i})};export{l as LoyaltyProgramEarningMethod,a as LoyaltyProgramEarningMethodOrderSettings,m as LoyaltyProgramEarningMethodProductSettings,s as LoyaltyProgramFilter,u as LoyaltyProgramMethodTranslation,d as LoyaltyProgramPointLimit};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LoyaltyProgramPointHistoryTypeEnum } from "../types";
|
|
2
2
|
export declare class LoyaltyProgramPointHistory {
|
|
3
3
|
amount: number;
|
|
4
|
-
createdAt:
|
|
4
|
+
createdAt: string;
|
|
5
5
|
customerId: string;
|
|
6
6
|
deleted: boolean;
|
|
7
|
-
expireDate:
|
|
7
|
+
expireDate: string | null;
|
|
8
8
|
id: string;
|
|
9
9
|
loyaltyProgramCustomerId: string;
|
|
10
10
|
loyaltyProgramEarningMethodId: string | null;
|
|
@@ -12,6 +12,6 @@ export declare class LoyaltyProgramPointHistory {
|
|
|
12
12
|
loyaltyProgramSpendingMethodId: string | null;
|
|
13
13
|
orderId: string | null;
|
|
14
14
|
type: LoyaltyProgramPointHistoryTypeEnum;
|
|
15
|
-
updatedAt:
|
|
15
|
+
updatedAt: string;
|
|
16
16
|
constructor(data?: Partial<LoyaltyProgramPointHistory>);
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as t,observable as e}from
|
|
1
|
+
import{makeObservable as t,observable as e}from'./../../ext/mobx/dist/mobx.esm.js';import{LoyaltyProgramPointHistoryTypeEnum as d}from"../types/index.js";var o=function(o){void 0===o&&(o={}),this.amount=o.amount||0,this.createdAt=o.createdAt||"",this.customerId=o.customerId||"",this.deleted=o.deleted||!1,this.expireDate=o.expireDate||null,this.id=o.id||"",this.loyaltyProgramCustomerId=o.loyaltyProgramCustomerId||"",this.loyaltyProgramEarningMethodId=o.loyaltyProgramEarningMethodId||null,this.loyaltyProgramId=o.loyaltyProgramId||"",this.loyaltyProgramSpendingMethodId=o.loyaltyProgramSpendingMethodId||null,this.orderId=o.orderId||null,this.type=o.type||d.EARN,this.updatedAt=o.updatedAt||"",t(this,{amount:e,createdAt:e,customerId:e,deleted:e,expireDate:e,id:e,loyaltyProgramCustomerId:e,loyaltyProgramEarningMethodId:e,loyaltyProgramId:e,loyaltyProgramSpendingMethodId:e,orderId:e,type:e,updatedAt:e})};export{o as LoyaltyProgramPointHistory};
|
|
@@ -1,25 +1,38 @@
|
|
|
1
|
-
import { LoyaltyProgramMethodSpendingTypeEnum } from "../types";
|
|
2
|
-
|
|
1
|
+
import { LoyaltyProgramMethodSpendingTypeEnum, LoyaltyProgramFilterTypeEnum } from "../types";
|
|
2
|
+
export declare class LoyaltyProgramPointLimit {
|
|
3
|
+
maxPointLimit: number | null;
|
|
4
|
+
minPointLimit: number | null;
|
|
5
|
+
constructor(data?: Partial<LoyaltyProgramPointLimit>);
|
|
6
|
+
}
|
|
7
|
+
export declare class LoyaltyProgramFilter {
|
|
8
|
+
idList: string[];
|
|
9
|
+
type: LoyaltyProgramFilterTypeEnum;
|
|
10
|
+
constructor(data?: Partial<LoyaltyProgramFilter>);
|
|
11
|
+
}
|
|
3
12
|
export declare class LoyaltyProgramDiscountSettings {
|
|
4
13
|
discountAmount: number | null;
|
|
5
14
|
freeProductId: string | null;
|
|
6
15
|
point: number;
|
|
7
16
|
constructor(data?: Partial<LoyaltyProgramDiscountSettings>);
|
|
8
17
|
}
|
|
18
|
+
export declare class LoyaltyProgramMethodTranslation {
|
|
19
|
+
description: string | null;
|
|
20
|
+
locale: string | null;
|
|
21
|
+
constructor(data?: Partial<LoyaltyProgramMethodTranslation>);
|
|
22
|
+
}
|
|
9
23
|
export declare class LoyaltyProgramSpendingMethod {
|
|
10
|
-
createdAt:
|
|
24
|
+
createdAt: string;
|
|
11
25
|
deleted: boolean;
|
|
12
26
|
description: string | null;
|
|
13
27
|
discountSettings: LoyaltyProgramDiscountSettings | null;
|
|
14
28
|
id: string;
|
|
15
29
|
isActive: boolean;
|
|
16
|
-
isAvailable: boolean | null;
|
|
17
30
|
isDynamic: boolean;
|
|
18
31
|
loyaltyProgramId: string;
|
|
19
32
|
pointUsageLimit: LoyaltyProgramPointLimit | null;
|
|
20
|
-
productFilters: LoyaltyProgramFilter[]
|
|
21
|
-
translations: LoyaltyProgramMethodTranslation[]
|
|
33
|
+
productFilters: LoyaltyProgramFilter[];
|
|
34
|
+
translations: LoyaltyProgramMethodTranslation[];
|
|
22
35
|
type: LoyaltyProgramMethodSpendingTypeEnum;
|
|
23
|
-
updatedAt:
|
|
36
|
+
updatedAt: string;
|
|
24
37
|
constructor(data?: Partial<LoyaltyProgramSpendingMethod>);
|
|
25
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as t,observable as i}from
|
|
1
|
+
import{makeObservable as t,observable as i}from'./../../ext/mobx/dist/mobx.esm.js';import{LoyaltyProgramMethodSpendingTypeEnum as n,LoyaltyProgramFilterTypeEnum as s}from"../types/index.js";var o=function(n){void 0===n&&(n={}),this.maxPointLimit=n.maxPointLimit||null,this.minPointLimit=n.minPointLimit||null,t(this,{maxPointLimit:i,minPointLimit:i})},e=function(n){void 0===n&&(n={}),this.idList=n.idList||[],this.type=n.type||s.PRODUCT_AND_VARIANT,t(this,{idList:i,type:i})},d=function(n){void 0===n&&(n={}),this.discountAmount=n.discountAmount||null,this.freeProductId=n.freeProductId||null,this.point=n.point||0,t(this,{discountAmount:i,freeProductId:i,point:i})},r=function(n){void 0===n&&(n={}),this.description=n.description||null,this.locale=n.locale||null,t(this,{description:i,locale:i})},l=function(s){void 0===s&&(s={}),this.createdAt=s.createdAt||"",this.deleted=s.deleted||!1,this.description=s.description||null,this.discountSettings=s.discountSettings?new d(s.discountSettings):null,this.id=s.id||"",this.isActive=s.isActive||!1,this.isDynamic=s.isDynamic||!1,this.loyaltyProgramId=s.loyaltyProgramId||"",this.pointUsageLimit=s.pointUsageLimit?new o(s.pointUsageLimit):null,this.productFilters=s.productFilters?s.productFilters.map(function(t){return new e(t)}):[],this.translations=s.translations?s.translations.map(function(t){return new r(t)}):[],this.type=s.type||n.FIXED_AMOUNT,this.updatedAt=s.updatedAt||"",t(this,{createdAt:i,deleted:i,description:i,discountSettings:i,id:i,isActive:i,isDynamic:i,loyaltyProgramId:i,pointUsageLimit:i,productFilters:i,translations:i,type:i,updatedAt:i})};export{d as LoyaltyProgramDiscountSettings,e as LoyaltyProgramFilter,r as LoyaltyProgramMethodTranslation,o as LoyaltyProgramPointLimit,l as LoyaltyProgramSpendingMethod};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { BaseModel } from "models/base";
|
|
1
2
|
import { LoyaltyWidgetImage } from "models/image";
|
|
2
3
|
import { HeaderBackgroundTypeEnum } from "../../types";
|
|
3
|
-
export declare class LoyaltyWidgetHeaderBackground {
|
|
4
|
+
export declare class LoyaltyWidgetHeaderBackground extends BaseModel {
|
|
4
5
|
bgColor: string | null;
|
|
5
6
|
image: LoyaltyWidgetImage | null;
|
|
6
7
|
type: HeaderBackgroundTypeEnum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as
|
|
1
|
+
import{__extends as o}from'./../../../../ext/tslib/tslib.es6.mjs.js';import{makeObservable as e,observable as m}from'./../../../../ext/mobx/dist/mobx.esm.js';import{BaseModel as r}from"../../../base.js";import{LoyaltyWidgetImage as i}from"../../../image/index.js";import{HeaderBackgroundTypeEnum as t}from"../../types/index.js";var s=function(r){function s(o){var s=r.call(this,o)||this;return s.bgColor=o.bgColor||null,s.image=o.image?new i(o.image):null,s.type=o.type||t.COLOR,e(s,{bgColor:m,image:m,type:m}),s}return o(s,r),s}(r);export{s as LoyaltyWidgetHeaderBackground};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as o,observable as r}from
|
|
1
|
+
import{makeObservable as o,observable as r}from'./../../../ext/mobx/dist/mobx.esm.js';import{LoyaltyWidgetImage as e}from"../../image/index.js";import{LoyaltyWidgetHeaderBackground as n}from"./header-background/index.js";var t=function(t){var i;void 0===t&&(t={}),this.logo=t.logo?new e(t.logo):new e({}),this.background=t.background?new n(t.background):new n({}),this.textColor=null!==(i=t.textColor)&&void 0!==i?i:null,o(this,{logo:r,background:r,textColor:r})};export{t as LoyaltyWidgetHeader};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseModel } from "models/base";
|
|
2
|
+
import { LoyaltyWidgetImage } from "models/image";
|
|
3
|
+
import { HeaderBackgroundTypeEnum } from "../types";
|
|
4
|
+
export declare class LoyaltyWidgetHeaderBackground extends BaseModel {
|
|
5
|
+
bgColor: string | null;
|
|
6
|
+
image: LoyaltyWidgetImage | null;
|
|
7
|
+
type: HeaderBackgroundTypeEnum;
|
|
8
|
+
constructor(data: Partial<LoyaltyWidgetHeaderBackground>);
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LoyaltyWidgetImage } from "../image";
|
|
2
2
|
import { LoyaltyWidgetButton } from "../button";
|
|
3
3
|
import { LoyaltyWidgetHeader } from "./header";
|
|
4
4
|
import { LoyaltyWidgetSettings } from "./settings";
|
|
@@ -7,6 +7,6 @@ export declare class LoyaltyWidget {
|
|
|
7
7
|
settings: LoyaltyWidgetSettings;
|
|
8
8
|
header: LoyaltyWidgetHeader;
|
|
9
9
|
button: LoyaltyWidgetButton;
|
|
10
|
-
|
|
10
|
+
miniModeLogo: LoyaltyWidgetImage;
|
|
11
11
|
constructor(data?: Partial<LoyaltyWidget>);
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as e,observable as
|
|
1
|
+
import{makeObservable as e,observable as o}from'./../../ext/mobx/dist/mobx.esm.js';import'./../../ext/uuid/dist/esm-browser/stringify.js';import'./../../ext/uuid/dist/esm-browser/v3.js';import i from'./../../ext/uuid/dist/esm-browser/v4.js';import'./../../ext/uuid/dist/esm-browser/v5.js';import{LoyaltyWidgetImage as s}from"../image/index.js";import{LoyaltyWidgetButton as t}from"../button/index.js";import{LoyaltyWidgetHeader as d}from"./header/index.js";import{LoyaltyWidgetSettings as n}from"./settings/index.js";var m=function(m){void 0===m&&(m={}),this.id=m.id||i(),this.header=m.header?new d(m.header):new d({}),this.settings=m.settings?new n(m.settings):new n({}),this.miniModeLogo=m.miniModeLogo?new s(m.miniModeLogo):new s({}),this.button=m.button?new t(m.button):new t({}),e(this,{id:o,miniModeLogo:o,button:o,header:o,settings:o})};export{m as LoyaltyWidget};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as o,observable as i}from
|
|
1
|
+
import{makeObservable as o,observable as i}from'./../../../ext/mobx/dist/mobx.esm.js';import{WidgetPositionEnum as e,LoyaltyWidgetLayoutTypeEnum as r,WidgetIconTypeEnum as t,BadgeIconTypeEnum as s}from"../types/index.js";var d=function(d){var p;void 0===d&&(d={}),this.position=d.position||e.RIGHT,this.type=d.type||r.WIDGET,this.primaryColor=d.primaryColor||null,this.cartBorderRadius=null!==(p=d.cartBorderRadius)&&void 0!==p?p:0,this.widgetIconType=d.widgetIconType||t.NORMAL,this.badgeIconLevel=d.badgeIconLevel||s.LEVEL_1,o(this,{position:i,type:i,primaryColor:i,cartBorderRadius:i,widgetIconType:i,badgeIconLevel:i})};export{d as LoyaltyWidgetSettings};
|