@ikas/loyalty-widget-renderer 1.0.0-alpha.96 → 1.0.0-alpha.97
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/ext/dompurify/dist/purify.es.mjs.js +4 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -1
- package/build/locales.d.ts +10 -0
- package/build/models/index.d.ts +3 -0
- package/build/models/index.js +1 -1
- package/build/models/loyalty-widget/faq.d.ts +6 -0
- package/build/models/loyalty-widget/faq.js +1 -0
- package/build/models/loyalty-widget/index.d.ts +2 -0
- package/build/models/loyalty-widget/index.js +1 -1
- package/build/models/types/index.d.ts +2 -1
- package/build/models/types/index.js +1 -1
- package/build/renderer/index.js +1 -1
- package/build/renderer/screens/faq-screen/index.d.ts +9 -0
- package/build/renderer/screens/faq-screen/index.js +1 -0
- package/build/renderer/screens/faq-screen/style.d.ts +19 -0
- package/build/renderer/screens/faq-screen/style.js +1 -0
- package/build/renderer/screens/main-screen/program-info-section/index.js +1 -1
- package/build/renderer/utils/locales/de.json.js +1 -1
- package/build/renderer/utils/locales/en.json.js +1 -1
- package/build/renderer/utils/locales/fr.json.js +1 -1
- package/build/renderer/utils/locales/nl.json.js +1 -1
- package/build/renderer/utils/locales/tr.json.js +1 -1
- package/build/renderer/utils/sanitize-html.d.ts +1 -0
- package/build/renderer/utils/sanitize-html.js +1 -0
- package/build/storefront-widget-script-injector.iife.js +10 -6
- package/build/storefront-widget-script-injector.iife.js.map +1 -1
- package/build/utils.js +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
|
|
2
|
+
function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}
|
|
3
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
4
|
+
function e(e,n){return function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(t){u=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw r}}return l}}(e,n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const n=Object.entries,o=Object.setPrototypeOf,r=Object.isFrozen,i=Object.getPrototypeOf,a=Object.getOwnPropertyDescriptor;let l=Object.freeze,c=Object.seal,u=Object.create,s="undefined"!=typeof Reflect&&Reflect,f=s.apply,p=s.construct;l||(l=function(t){return t}),c||(c=function(t){return t}),f||(f=function(t,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return t.apply(e,o)}),p||(p=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return new t(...n)});const m=P(Array.prototype.forEach),d=P(Array.prototype.lastIndexOf),h=P(Array.prototype.pop),y=P(Array.prototype.push),g=P(Array.prototype.slice),b=P(Array.prototype.splice),S=Array.isArray,T=U(Set),A=P(Set.prototype.add),w=P(Set.prototype.has),E=P(String.prototype.toLowerCase),v=P(String.prototype.toString),O=P(String.prototype.match),x=P(String.prototype.replace),N=P(String.prototype.indexOf),_=P(String.prototype.trim),D=P(Number.prototype.toString),k=P(Boolean.prototype.toString),C="undefined"==typeof BigInt?null:P(BigInt.prototype.toString),R="undefined"==typeof Symbol?null:P(Symbol.prototype.toString),I=P(Object.prototype.hasOwnProperty),L=P(Object.prototype.toString),z=P(RegExp.prototype.test),M=U(TypeError);function P(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return f(t,e,o)}}function U(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return p(t,n)}}function F(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;if(o&&o(t,null),!S(e))return t;let i=e.length;for(;i--;){let o=e[i];if("string"==typeof o){const t=n(o);t!==o&&(r(e)||(e[i]=t),o=t)}t[o]=!0}return t}function H(t){for(let e=0;e<t.length;e++)I(t,e)||(t[e]=null);return t}function j(t){const o=u(null);for(const i of n(t)){var r=e(i,2);const n=r[0],a=r[1];I(t,n)&&(S(a)?o[n]=H(a):a&&"object"==typeof a&&a.constructor===Object?o[n]=j(a):o[n]=a)}return o}function B(t,e){for(;null!==t;){const n=a(t,e);if(n){if(n.get)return P(n.get);if("function"==typeof n.value)return P(n.value)}t=i(t)}return function(){return null}}const W=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Y=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),G=l(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),q=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),X=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),K=l(["#text"]),V=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Z=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),J=l(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Q=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),tt=c(/{{[\w\W]*|^[\w\W]*}}/g),et=c(/<%[\w\W]*|^[\w\W]*%>/g),nt=c(/\${[\w\W]*/g),ot=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),rt=c(/^aria-[\-\w]+$/),it=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),at=c(/^(?:\w+script|data):/i),lt=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ct=c(/^html$/i),ut=c(/^[a-z][.\w]*(-[.\w]+)+$/i),st=c(/<[/\w!]/g),ft=c(/<[/\w]/g),pt=c(/<\/no(script|embed|frames)/i),mt=c(/\/>/i),dt=1,ht=3,yt=7,gt=8,bt=9,St=11,Tt=l(F({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),At=function(){return"undefined"==typeof window?null:window},wt=function(t,e,n,o){return I(t,e)&&S(t[e])?F(o.base?j(o.base):{},t[e],o.transform):n},Et=function(t,e,n){const o=I(t,e)?t[e]:void 0;return o&&"object"==typeof o?j(o):n()};var vt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:At();const o=e=>t(e);if(o.version="3.4.17",o.removed=[],!e||!e.document||e.document.nodeType!==bt||!e.Element)return o.isSupported=!1,o;let r=e.document;const s=r,f=s.currentScript;e.DocumentFragment;const p=e.HTMLTemplateElement,U=e.Node,H=e.Element,vt=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const Ot=e.DOMParser,xt=e.trustedTypes,Nt=H.prototype,_t=B(Nt,"cloneNode"),Dt=B(Nt,"remove"),kt=B(Nt,"removeAttributeNode"),Ct=B(Nt,"nextSibling"),Rt=B(Nt,"childNodes"),It=B(Nt,"parentNode"),Lt=B(Nt,"shadowRoot"),zt=B(Nt,"attributes"),Mt=U&&U.prototype?B(U.prototype,"nodeType"):null,Pt=U&&U.prototype?B(U.prototype,"nodeName"):null,Ut=U&&U.prototype?B(U.prototype,"ownerDocument"):null,Ft=function(t){return Mt?Mt(t):t.nodeType},Ht=function(t){return Pt?Pt(t):t.nodeName},jt=function(t,e){for(;null!==t;){const n=a(t,e);if(n)return n.get?P(n.get):null;t=i(t)}return null}(Nt,"namespaceURI"),Bt=function(t){return jt?jt(t):t.namespaceURI};if("function"==typeof p){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let Wt,Yt,Gt="",qt=!1,$t=0;const Xt=function(){if($t>0)throw M('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Kt=function(t){Xt(),$t++;try{return Wt.createHTML(t)}finally{$t--}},Vt=function(){return qt||(Yt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(xt,f),qt=!0),Yt},Zt=r,Jt=Zt.implementation,Qt=Zt.createNodeIterator,te=Zt.createDocumentFragment,ee=Zt.getElementsByTagName,ne=s.importNode;let oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof n&&"function"==typeof It&&Jt&&void 0!==Jt.createHTMLDocument;const re=tt,ie=et,ae=nt,le=ot,ce=rt,ue=at,se=lt,fe=ut;let pe=it,me=null;const de=F({},[...W,...Y,...G,...$,...K]);let he=null;const ye=F({},[...V,...Z,...J,...Q]);let ge=Object.seal(u(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),be=null,Se=null;const Te=Object.seal(u(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ae=!0,we=!0,Ee=!1,ve=!0,Oe=!1,xe=!0,Ne=!1,_e=!1,De=null,ke=null,Ce=!1,Re=!1,Ie=!1,Le=!1,ze=!0,Me=!1;const Pe="user-content-";let Ue=!0,Fe=!1,He=null,je={},Be=null;const We=F({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ye=null;const Ge=F({},["audio","video","img","source","image","track"]);let qe=null;const $e=F({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Ke="http://www.w3.org/2000/svg",Ve="http://www.w3.org/1999/xhtml";let Ze=Ve,Je=!1,Qe=null;const tn=F({},[Xe,Ke,Ve],v),en=l(["mi","mo","mn","ms","mtext"]);let nn=F({},en);const on=l(["annotation-xml"]);let rn=F({},on);const an=F({},["title","style","font","a","script"]);let ln=null;const cn=["application/xhtml+xml","text/html"];let un=null,sn=null;const fn=r.createElement("form"),pn=function(t){return t instanceof RegExp||t instanceof Function},mn=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(sn&&sn===t)return;t&&"object"==typeof t||(t={}),t=j(t),ln=-1===cn.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,un="application/xhtml+xml"===ln?v:E,me=wt(t,"ALLOWED_TAGS",de,{transform:un}),he=wt(t,"ALLOWED_ATTR",ye,{transform:un}),Qe=wt(t,"ALLOWED_NAMESPACES",tn,{transform:v}),qe=wt(t,"ADD_URI_SAFE_ATTR",$e,{transform:un,base:$e}),Ye=wt(t,"ADD_DATA_URI_TAGS",Ge,{transform:un,base:Ge}),Be=wt(t,"FORBID_CONTENTS",We,{transform:un}),be=wt(t,"FORBID_TAGS",j({}),{transform:un}),Se=wt(t,"FORBID_ATTR",j({}),{transform:un}),je=!!I(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?j(t.USE_PROFILES):t.USE_PROFILES),Ae=!1!==t.ALLOW_ARIA_ATTR,we=!1!==t.ALLOW_DATA_ATTR,Ee=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ve=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Oe=t.SAFE_FOR_TEMPLATES||!1,xe=!1!==t.SAFE_FOR_XML,Ne=t.WHOLE_DOCUMENT||!1,Re=t.RETURN_DOM||!1,Ie=t.RETURN_DOM_FRAGMENT||!1,Le=t.RETURN_TRUSTED_TYPE||!1,Ce=t.FORCE_BODY||!1,ze=!1!==t.SANITIZE_DOM,Me=t.SANITIZE_NAMED_PROPS||!1,Ue=!1!==t.KEEP_CONTENT,Fe=t.IN_PLACE||!1,pe=function(t){try{return z(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:it,Ze="string"==typeof t.NAMESPACE?t.NAMESPACE:Ve,nn=Et(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>F({},en)),rn=Et(t,"HTML_INTEGRATION_POINTS",()=>F({},on));const e=Et(t,"CUSTOM_ELEMENT_HANDLING",()=>u(null));if(ge=u(null),I(e,"tagNameCheck")&&pn(e.tagNameCheck)&&(ge.tagNameCheck=e.tagNameCheck),I(e,"attributeNameCheck")&&pn(e.attributeNameCheck)&&(ge.attributeNameCheck=e.attributeNameCheck),I(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ge.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),c(ge),Oe&&(we=!1),Ie&&(Re=!0),je&&(me=F({},K),he=u(null),!0===je.html&&(F(me,W),F(he,V)),!0===je.svg&&(F(me,Y),F(he,Z),F(he,Q)),!0===je.svgFilters&&(F(me,G),F(he,Z),F(he,Q)),!0===je.mathMl&&(F(me,$),F(he,J),F(he,Q))),Te.tagCheck=null,Te.attributeCheck=null,I(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?Te.tagCheck=t.ADD_TAGS:S(t.ADD_TAGS)&&(me===de&&(me=j(me)),F(me,t.ADD_TAGS,un))),I(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?Te.attributeCheck=t.ADD_ATTR:S(t.ADD_ATTR)&&(he===ye&&(he=j(he)),F(he,t.ADD_ATTR,un))),I(t,"ADD_FORBID_CONTENTS")&&S(t.ADD_FORBID_CONTENTS)&&(Be===We&&(Be=j(Be)),F(Be,t.ADD_FORBID_CONTENTS,un)),Ue&&(me["#text"]=!0),Ne&&F(me,["html","head","body"]),me.table&&(F(me,["tbody"]),delete be.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw M('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Wt;Wt=t.TRUSTED_TYPES_POLICY;try{Gt=Kt("")}catch(t){throw Wt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Wt=void 0,Gt=""):(void 0===Wt&&(Wt=Vt()),Wt&&"string"==typeof Gt&&(Gt=Kt("")));l&&l(t),sn=t},dn=F({},[...Y,...G,...q]),hn=F({},[...$,...X]),yn=function(t){const e=Bt(t),n=E(Ht(t)),o=It(t);let r,i;return o&&Ft(o)===dt?(r={namespaceURI:Bt(o)},i=E(Ht(o))):(r={namespaceURI:Ze},i="template"),!!Qe[e]&&(e===Ke?function(t,e,n){return e.namespaceURI===Ve?"svg"===t:e.namespaceURI===Xe?"svg"===t&&("annotation-xml"===n||nn[n]):Boolean(dn[t])}(n,r,i):e===Xe?function(t,e,n){return e.namespaceURI===Ve?"math"===t:e.namespaceURI===Ke?"math"===t&&rn[n]:Boolean(hn[t])}(n,r,i):e===Ve?function(t,e,n){return!(e.namespaceURI===Ke&&!rn[n])&&!(e.namespaceURI===Xe&&!nn[n])&&!hn[t]&&(an[t]||!dn[t])}(n,r,i):!("application/xhtml+xml"!==ln||!Qe[e]))},gn=function(t){y(o.removed,{element:t});try{It(t).removeChild(t)}catch(e){if(Dt(t),!It(t))throw M("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},bn=function(t,e,n){try{kt(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},Sn=function(t){En(t);const e=Rt(t);e&&m(g(e),t=>{try{Dt(t)}catch(t){}});const n=Ft(t)===dt?zt(t):null;if(n)for(let e=n.length-1;e>=0;--e){const o=n[e],r=o&&o.name;"string"==typeof r&&bn(t,o,r)}},Tn=function(t,e,n){if(!n)try{n=e.getAttributeNode(t)}catch(t){n=null}y(o.removed,{attribute:n||null,from:e});try{n?kt(e,n):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(Re||Ie)try{gn(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},An=function(t){const e=zt(t);if(e)for(let n=e.length-1;n>=0;--n){const o=e[n],r=o&&o.name;"string"!=typeof r||he[un(r)]||bn(t,o,r)}},wn=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const o=[t];for(;o.length>0;){const t=o.pop();if(!1===e(t))continue;if(n&&Ft(t)===dt){const e=Lt(t);Ln(e)&&o.push(e)}const r=Rt(t);if(r)for(let t=r.length-1;t>=0;--t)o.push(r[t])}},En=function(t){wn(t,t=>{Ft(t)===dt&&An(t)})},vn=function(t){const e=[];return wn(t,t=>{e.push(t)},!0),e},On=function(t,e){let n=!1;return m(o.removed,e=>{e.element&&(n=n||e.element===t,En(e.element))}),function(t,e){const n=T();m(vn(t),t=>{Ft(t)===dt&&A(n,t)}),m(e,t=>{Ft(t)!==dt||w(n,t)||An(t)})}(t,e),n},xn=function(t,e,n,o){const r=Dn(t);let i;for(;i=r.nextNode();)w(o,i)&&!w(He,i)&&(e&&Mn(oe.uponSanitizeShadowNode,i,null),Hn(i,n),$n(i,n),Ln(i.content)&&Xn(i.content))},Nn=function(t,e){return!!xe&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},_n=function(t){let e=null,n=null;if(Ce)t="<remove></remove>"+t;else{const e=O(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===ln&&Ze===Ve&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=Wt?Kt(t):t;if(Ze===Ve)try{e=(new Ot).parseFromString(o,ln)}catch(t){}if(!e||!e.documentElement){e=Jt.createDocument(Ze,"template",null);try{e.documentElement.innerHTML=Je?Gt:o}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ze===Ve?ee.call(e,Ne?"html":"body")[0]:Ne?e.documentElement:i},Dn=function(t){const e=Ut?Ut(t):t.ownerDocument;return Qt.call(e||t,t,vt.SHOW_ELEMENT|vt.SHOW_COMMENT|vt.SHOW_TEXT|vt.SHOW_PROCESSING_INSTRUCTION|vt.SHOW_CDATA_SECTION,null)},kn=function(t){return t=x(t,re," "),t=x(t,ie," "),t=x(t,ae," ")},Cn=function(t){var e;Rn(t);const n=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");n&&m(n,t=>{Ln(t.content)&&Cn(t.content)})},Rn=function(t){t.normalize();const e=Ut?Ut(t):t.ownerDocument,n=Qt.call(e||t,t,vt.SHOW_TEXT|vt.SHOW_COMMENT|vt.SHOW_CDATA_SECTION|vt.SHOW_PROCESSING_INSTRUCTION,null);let o=n.nextNode();for(;o;)o.data=kn(o.data),o=n.nextNode()},In=function(t){const e=Pt?Pt(t):null;return"string"==typeof e&&("form"===un(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==zt(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Mt(t)||t.childNodes!==Rt(t)))},Ln=function(t){if(!Mt||"object"!=typeof t||null===t)return!1;try{return Mt(t)===St}catch(t){return!1}},zn=function(t){if(!Mt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Mt(t)}catch(t){return!1}};function Mn(t,e,n){0!==t.length&&m(t,t=>{t.call(o,e,n,sn)})}const Pn=function(t,e){if(t instanceof RegExp)return z(t,e);if(t instanceof Function){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return Boolean(t(e,...o))}return!1},Un=function(t,e,n,o){return 0===t.length?e:e===n||e===o?j(e):e},Fn=function(t,e){return t!==e&&null===It(t)&&(Fe&&En(t),!0)},Hn=function(t,e){var n;if(n=t,He&&A(He,n),Mn(oe.beforeSanitizeElements,t,null),Fn(t,e))return!0;if(In(t))return gn(t),!0;const r=un(Ht(t));if(me=Un(oe.uponSanitizeElement,me,de,De),Mn(oe.uponSanitizeElement,t,{tagName:r,allowedTags:me}),Fn(t,e))return!0;if(function(t,e){return!!(xe&&t.hasChildNodes()&&!zn(t.firstElementChild)&&z(st,t.textContent)&&z(st,t.innerHTML))||!!(xe&&Tt[e]&&Ft(t)===dt&&Bt(t)===Ve&&(zn(t.firstElementChild)||"string"==typeof t.textContent&&z(st,t.textContent)))||t.nodeType===yt||!(!xe||t.nodeType!==gt||!z(ft,t.data))}(t,r))return gn(t),!0;if(be[r]||!(Te.tagCheck instanceof Function&&Te.tagCheck(r))&&!me[r]){const n=function(t,e,n){if(!be[e]&&Wn(e)&&Pn(ge.tagNameCheck,e))return!1;if(Ue&&!Be[e]&&!Be[E(e)]){const e=It(t),o=Rt(t);if(o&&e)for(let r=o.length-1;r>=0;--r){const i=t===n?_t(o[r],!0):o[r];e.insertBefore(i,Ct(t))}}return gn(t),!0}(t,r,e);return!(!1!==n||(Mn(oe.afterSanitizeElements,t,null),!Fn(t,e)))||n}if(Ft(t)===dt&&!yn(t))return gn(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&z(pt,t.innerHTML))return gn(t),!0;if(Oe&&t.nodeType===ht){const e=kn(t.textContent);t.textContent!==e&&(y(o.removed,{element:t.cloneNode()}),t.textContent=e)}return Mn(oe.afterSanitizeElements,t,null),Fn(t,e)},jn=function(t,e,n){if(Se[e])return!1;if(Nn(e,t))return!1;if(ze&&("id"===e||"name"===e)&&(n in r||n in fn))return!1;const o=he[e]||Te.attributeCheck instanceof Function&&Te.attributeCheck(e,t);return!(!we||!z(le,e))||(!(!Ae||!z(ce,e))||(o?!!qe[e]||(!!z(pe,x(n,se,""))||(!("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==N(n,"data:")||!Ye[t])||(!(!Ee||z(ue,x(n,se,"")))||!n))):Wn(t)&&Pn(ge.tagNameCheck,t)&&Pn(ge.attributeNameCheck,e,t)||"is"===e&&ge.allowCustomizedBuiltInElements&&Pn(ge.tagNameCheck,n)))},Bn=F({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Wn=function(t){return!Bn[E(t)]&&z(fe,t)},Yn=function(t,e,n,o){if(Wt&&"object"==typeof xt&&"function"==typeof xt.getAttributeType&&!n)switch(xt.getAttributeType(t,e)){case"TrustedHTML":return Kt(o);case"TrustedScriptURL":return function(t){Xt(),$t++;try{return Wt.createScriptURL(t)}finally{$t--}}(o)}return o},Gn=function(t,e,n,o){try{return n?t.setAttributeNS(n,e,o):t.setAttribute(e,o),!In(t)||(gn(t),!1)}catch(n){return Tn(e,t),!1}},qn=function(t,e){return!(!xe||!z(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,e))||"attributename"===E(t)&&null!==O(e,"href")},$n=function(t,e){if(Mn(oe.beforeSanitizeAttributes,t,null),Fn(t,e))return;const n=t.attributes;if(!n||In(t))return;he=Un(oe.uponSanitizeAttribute,he,ye,ke);const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:he,forceKeepAttr:void 0};let i=n.length;const a=un(t.nodeName);for(;i--;){const e=n[i],l=e.name,c=e.namespaceURI,u=e.value,s=un(l),f=u;let p="value"===l?f:_(f),m=!1;r.attrName=s,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,Mn(oe.uponSanitizeAttribute,t,r),p=r.attrValue,!Me||"id"!==s&&"name"!==s||0===N(p,Pe)||(Tn(l,t,e),p=Pe+p,m=!0),qn(l,p)?Tn(l,t,e):r.forceKeepAttr||(r.keepAttr&&(ve||!z(mt,p))?(Oe&&(p=kn(p)),jn(a,s,p)?(p=Yn(a,s,c,p),p!==f&&Gn(t,l,c,p)&&m&&h(o.removed)):Tn(l,t,e)):Tn(l,t,e))}Mn(oe.afterSanitizeAttributes,t,null),Fn(t,e)},Xn=function(t){let e=null;const n=Dn(t);for(Mn(oe.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(Mn(oe.uponSanitizeShadowNode,e,null),Hn(e,t),$n(e,t),Ln(e.content)&&Xn(e.content),Ft(e)===dt){const t=Lt(e);Ln(t)&&(Kn(t),Xn(t))}Oe&&Rn(t),Mn(oe.afterSanitizeShadowDOM,t,null)},Kn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){Xn(t.shadow);continue}const n=t.node,o=Ft(n)===dt,r=Rt(n);if(r)for(let t=r.length-1;t>=0;--t)e.push({node:r[t],shadow:null});if(o){const t=Pt?Pt(n):null;if("string"==typeof t&&"template"===un(t)){const t=n.content;Ln(t)&&e.push({node:t,shadow:null})}}if(o){const t=Lt(n);Ln(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return o.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,i=null,a=null;if(Je=!t,Je&&(t="\x3c!--\x3e"),"string"!=typeof t&&!zn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return D(t);case"boolean":return k(t);case"bigint":return C?C(t):"0";case"symbol":return R?R(t):"Symbol()";case"undefined":default:return L(t);case"function":case"object":{if(null===t)return L(t);const e=t,n=B(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:L(t)}return L(t)}}}(t)))throw M("dirty is not a string, aborting");if(!o.isSupported)return t;_e?(me=De,he=ke):mn(e),(oe.uponSanitizeElement.length>0||oe.uponSanitizeAttribute.length>0)&&(me=j(me)),oe.uponSanitizeAttribute.length>0&&(he=j(he)),o.removed=[];const l=Fe&&"string"!=typeof t&&zn(t);let c=[];const u=He;if(l){f=t,xe&&wn(f,t=>{const e=Ft(t);if(e===yt||e===gt&&z(ft,t.data)){try{Dt(t)}catch(t){}return!1}if(e===dt){const e=t,n=un(Ht(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&Nn("for",n)&&e.removeAttribute("for")}catch(t){}}return!0});const e=Ht(t);if("string"==typeof e){const n=un(e);if(!me[n]||be[n])throw Sn(t),M("root node is forbidden and cannot be sanitized in-place")}if(In(t))throw Sn(t),M("root node is clobbered and cannot be sanitized in-place");c=vn(t),He=T()}else if(zn(t))n=_n("\x3c!----\x3e"),r=n.ownerDocument.importNode(t,!0),r.nodeType===dt&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r),Kn(n);else{if(!Re&&!Oe&&!Ne&&-1===t.indexOf("<"))return Wt&&Le?Kt(t):t;if(n=_n(t),!n)return Re?null:Le?Gt:""}var f;n&&Ce&&gn(n.firstChild);const p=l?t:n;try{l&&Kn(t);const e=Dn(p);for(;i=e.nextNode();)Hn(i,p),$n(i,p),Ln(i.content)&&Xn(i.content);l&&function(t,e){const n=He;let o=null;const r=()=>(o||(o=T(),m(e,t=>{A(o,t)})),o);for(let e=0;;e++){const o=vn(t),i=[t];let a=!1;if(m(o,t=>{Ft(t)===St?y(i,t):a||w(n,t)||(a=w(r(),t))}),!a)return;if(e>=8)throw M("the tree kept changing during in-place sanitization; refusing to return it");m(i,(e,n)=>{xn(e,n>0,t,r())})}}(t,c)}catch(e){throw l&&(Sn(t),On(t,c)),e}finally{He=u}if(l){if(On(t,c))throw M("a node selected for removal could not be safely returned; refusing to sanitize in place");return Oe&&Cn(t),t}if(Re){if(Oe&&Cn(n),Ie)for(a=te.call(n.ownerDocument);n.firstChild;)a.appendChild(n.firstChild);else a=n;return(he.shadowroot||he.shadowrootmode)&&(a=ne.call(s,a,!0)),a}let d=Ne?n.outerHTML:n.innerHTML;return Ne&&me["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&z(ct,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Oe&&(d=kn(d)),Wt&&Le?Kt(d):d},o.setConfig=function(){mn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),_e=!0,De=me,ke=he},o.clearConfig=function(){sn=null,_e=!1,De=null,ke=null,Wt=Yt,Gt=""},o.isValidAttribute=function(t,e,n){sn||mn({});const o=un(t),r=un(e);return("string"!=typeof n||!(qn(e,n)||!ve&&z(mt,n)))&&jn(o,r,n)},o.addHook=function(t,e){"function"==typeof e&&I(oe,t)&&y(oe[t],e)},o.removeHook=function(t,e){if(I(oe,t)){if(void 0!==e){const n=d(oe[t],e);return-1===n?void 0:b(oe[t],n,1)[0]}return h(oe[t])}},o.removeHooks=function(t){I(oe,t)&&(oe[t]=[])},o.removeAllHooks=function(){oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}();export{vt as default};
|
package/build/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./models/loyalty-widget/types";
|
|
|
4
4
|
export * from "./models/loyalty-widget/header";
|
|
5
5
|
export * from "./models/loyalty-widget/header/header-background";
|
|
6
6
|
export * from "./models/loyalty-widget/translations";
|
|
7
|
+
export * from "./models/loyalty-widget/faq";
|
|
7
8
|
export { locales };
|
|
8
9
|
export * from "./models/image";
|
|
9
10
|
export * from "./models/button";
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{default as locales}from"./locales.js";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{LoyaltyWidgetTranslations}from"./models/loyalty-widget/translations.js";export{IMAGE_SIZE,LoyaltyWidgetImage}from"./models/image/index.js";export{LoyaltyWidgetButton}from"./models/button/index.js";export{CampaignTypeEnum,CartLoyaltyLineData,LoyaltyCustomerInfo,LoyaltyProgramTier,LoyaltyProgramTierTranslation,OrderAmountTypeEnum}from"./models/loyalty-customer-info/index.js";export{LoyaltyProgram}from"./models/loyalty-program/index.js";export{LoyaltyProgramPointHistory}from"./models/loyalty-program-point-history/index.js";export{LoyaltyProgramDiscountSettings,LoyaltyProgramSpendingMethod}from"./models/loyalty-program-spending-method/index.js";export{LoyaltyProgramEarningMethod,LoyaltyProgramEarningMethodOrderSettings,LoyaltyProgramEarningMethodProductSettings}from"./models/loyalty-program-earning-method/index.js";export{LoyaltyWidgetSettings}from"./models/loyalty-widget/settings/index.js";export{LoyaltyWidgetViewModel}from"./models/index.js";export{EarningMethodTypeEnum,LoyaltyProgramFilterTypeEnum,LoyaltyProgramMethodSpendingTypeEnum,LoyaltyProgramPointEarningTypeEnum,LoyaltyProgramPointHistoryTypeEnum,LoyaltyWidgetScreenTypeEnum,PeriodTypeEnum,WidgetMode}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{ArrowRight}from"./assets/icons/arrow-right.js";export{CheckCircle}from"./assets/icons/check-circle.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{InformationCircle}from"./assets/widget-icons/normal/informationCircle.js";export{Refund}from"./assets/widget-icons/normal/refund.js";export{Album02}from"./assets/widget-icons/normal/album02.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{InformationCircleIllustration}from"./assets/widget-icons/illustraions/informationCircleIllustration.js";export{CheckFillIllustration}from"./assets/widget-icons/illustraions/check-fill.js";export{RefundIllustration}from"./assets/widget-icons/illustraions/refundIllustration.js";export{Scenery}from"./assets/widget-icons/illustraions/scenery.js";export{default as LoyaltyWidgetRenderer}from"./renderer/index.js";export{flatten,unflatten}from"./renderer/utils/object-utils.js";
|
|
1
|
+
export{default as locales}from"./locales.js";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{LoyaltyWidgetTranslations}from"./models/loyalty-widget/translations.js";export{LoyaltyWidgetFaqItem}from"./models/loyalty-widget/faq.js";export{IMAGE_SIZE,LoyaltyWidgetImage}from"./models/image/index.js";export{LoyaltyWidgetButton}from"./models/button/index.js";export{CampaignTypeEnum,CartLoyaltyLineData,LoyaltyCustomerInfo,LoyaltyProgramTier,LoyaltyProgramTierTranslation,OrderAmountTypeEnum}from"./models/loyalty-customer-info/index.js";export{LoyaltyProgram}from"./models/loyalty-program/index.js";export{LoyaltyProgramPointHistory}from"./models/loyalty-program-point-history/index.js";export{LoyaltyProgramDiscountSettings,LoyaltyProgramSpendingMethod}from"./models/loyalty-program-spending-method/index.js";export{LoyaltyProgramEarningMethod,LoyaltyProgramEarningMethodOrderSettings,LoyaltyProgramEarningMethodProductSettings}from"./models/loyalty-program-earning-method/index.js";export{LoyaltyWidgetSettings}from"./models/loyalty-widget/settings/index.js";export{LoyaltyWidgetViewModel}from"./models/index.js";export{EarningMethodTypeEnum,LoyaltyProgramFilterTypeEnum,LoyaltyProgramMethodSpendingTypeEnum,LoyaltyProgramPointEarningTypeEnum,LoyaltyProgramPointHistoryTypeEnum,LoyaltyWidgetScreenTypeEnum,PeriodTypeEnum,WidgetMode}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{ArrowRight}from"./assets/icons/arrow-right.js";export{CheckCircle}from"./assets/icons/check-circle.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{InformationCircle}from"./assets/widget-icons/normal/informationCircle.js";export{Refund}from"./assets/widget-icons/normal/refund.js";export{Album02}from"./assets/widget-icons/normal/album02.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{InformationCircleIllustration}from"./assets/widget-icons/illustraions/informationCircleIllustration.js";export{CheckFillIllustration}from"./assets/widget-icons/illustraions/check-fill.js";export{RefundIllustration}from"./assets/widget-icons/illustraions/refundIllustration.js";export{Scenery}from"./assets/widget-icons/illustraions/scenery.js";export{default as LoyaltyWidgetRenderer}from"./renderer/index.js";export{flatten,unflatten}from"./renderer/utils/object-utils.js";
|
package/build/locales.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ declare const locales: {
|
|
|
17
17
|
allRewards: string;
|
|
18
18
|
tiers: string;
|
|
19
19
|
pointHistory: string;
|
|
20
|
+
faq: string;
|
|
20
21
|
cartWarning: string;
|
|
21
22
|
appliedDiscount: {
|
|
22
23
|
fixedAmount: string;
|
|
@@ -143,6 +144,7 @@ declare const locales: {
|
|
|
143
144
|
giftProductSelection: string;
|
|
144
145
|
creditHistory: string;
|
|
145
146
|
loyaltyLevel: string;
|
|
147
|
+
faq: string;
|
|
146
148
|
loyaltyLevelScreen: {
|
|
147
149
|
nextTierLabel: string;
|
|
148
150
|
collectPoints: string;
|
|
@@ -178,6 +180,7 @@ declare const locales: {
|
|
|
178
180
|
allRewards: string;
|
|
179
181
|
tiers: string;
|
|
180
182
|
pointHistory: string;
|
|
183
|
+
faq: string;
|
|
181
184
|
cartWarning: string;
|
|
182
185
|
appliedDiscount: {
|
|
183
186
|
fixedAmount: string;
|
|
@@ -304,6 +307,7 @@ declare const locales: {
|
|
|
304
307
|
giftProductSelection: string;
|
|
305
308
|
creditHistory: string;
|
|
306
309
|
loyaltyLevel: string;
|
|
310
|
+
faq: string;
|
|
307
311
|
loyaltyLevelScreen: {
|
|
308
312
|
nextTierLabel: string;
|
|
309
313
|
collectPoints: string;
|
|
@@ -339,6 +343,7 @@ declare const locales: {
|
|
|
339
343
|
allRewards: string;
|
|
340
344
|
tiers: string;
|
|
341
345
|
pointHistory: string;
|
|
346
|
+
faq: string;
|
|
342
347
|
cartWarning: string;
|
|
343
348
|
appliedDiscount: {
|
|
344
349
|
fixedAmount: string;
|
|
@@ -465,6 +470,7 @@ declare const locales: {
|
|
|
465
470
|
giftProductSelection: string;
|
|
466
471
|
creditHistory: string;
|
|
467
472
|
loyaltyLevel: string;
|
|
473
|
+
faq: string;
|
|
468
474
|
loyaltyLevelScreen: {
|
|
469
475
|
nextTierLabel: string;
|
|
470
476
|
collectPoints: string;
|
|
@@ -500,6 +506,7 @@ declare const locales: {
|
|
|
500
506
|
allRewards: string;
|
|
501
507
|
tiers: string;
|
|
502
508
|
pointHistory: string;
|
|
509
|
+
faq: string;
|
|
503
510
|
cartWarning: string;
|
|
504
511
|
appliedDiscount: {
|
|
505
512
|
fixedAmount: string;
|
|
@@ -626,6 +633,7 @@ declare const locales: {
|
|
|
626
633
|
giftProductSelection: string;
|
|
627
634
|
creditHistory: string;
|
|
628
635
|
loyaltyLevel: string;
|
|
636
|
+
faq: string;
|
|
629
637
|
loyaltyLevelScreen: {
|
|
630
638
|
nextTierLabel: string;
|
|
631
639
|
collectPoints: string;
|
|
@@ -661,6 +669,7 @@ declare const locales: {
|
|
|
661
669
|
allRewards: string;
|
|
662
670
|
tiers: string;
|
|
663
671
|
pointHistory: string;
|
|
672
|
+
faq: string;
|
|
664
673
|
cartWarning: string;
|
|
665
674
|
appliedDiscount: {
|
|
666
675
|
fixedAmount: string;
|
|
@@ -787,6 +796,7 @@ declare const locales: {
|
|
|
787
796
|
giftProductSelection: string;
|
|
788
797
|
creditHistory: string;
|
|
789
798
|
loyaltyLevel: string;
|
|
799
|
+
faq: string;
|
|
790
800
|
loyaltyLevelScreen: {
|
|
791
801
|
nextTierLabel: string;
|
|
792
802
|
collectPoints: string;
|
package/build/models/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export declare class LoyaltyWidgetViewModel {
|
|
|
11
11
|
isMiniModeDescriptionClosed: boolean;
|
|
12
12
|
isLoading: boolean;
|
|
13
13
|
isActionLoading: boolean;
|
|
14
|
+
previewExpandedFaqId: string | null;
|
|
14
15
|
loyaltyWidget: LoyaltyWidget;
|
|
15
16
|
userRefreshTrigger: number;
|
|
16
17
|
cartRefreshTrigger: number;
|
|
@@ -38,6 +39,8 @@ export declare class LoyaltyWidgetViewModel {
|
|
|
38
39
|
pushScreen(screen: LoyaltyWidgetScreenTypeEnum): void;
|
|
39
40
|
popScreen(): void;
|
|
40
41
|
resetNavigation(): void;
|
|
42
|
+
setPreviewExpandedFaqId(id: string | null): void;
|
|
43
|
+
get faqItems(): import("..").LoyaltyWidgetFaqItem[];
|
|
41
44
|
get shouldShowSpendingMethods(): boolean;
|
|
42
45
|
setWidgetMode(mode: WidgetMode): void;
|
|
43
46
|
closeMiniModeDescription(): void;
|
package/build/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as t}from'./../ext/tslib/tslib.es6.mjs.js';import{makeObservable as
|
|
1
|
+
import{__assign as t}from'./../ext/tslib/tslib.es6.mjs.js';import{makeObservable as e,observable as i,computed as o,action as r}from"mobx";import{markDescriptionClosedForSession as n,markDescriptionPermanentlyClosed as s,isDescriptionClosedForCurrentSession as a,isDescriptionPermanentlyClosed as d}from"../utils.js";import{LoyaltyCustomerInfo as c}from"./loyalty-customer-info/index.js";import{LoyaltyProgram as l}from"./loyalty-program/index.js";import{LoyaltyProgramEarningMethod as u}from"./loyalty-program-earning-method/index.js";import{LoyaltyProgramSpendingMethod as p}from"./loyalty-program-spending-method/index.js";import{LoyaltyWidget as h}from"./loyalty-widget/index.js";import{LoyaltyWidgetScreenTypeEnum as g,WidgetMode as y}from"./types/index.js";var m=function(){function m(n,s,m,f,M,v,b){void 0===n&&(n={}),this.previewExpandedFaqId=null,this.userRefreshTrigger=0,this.cartRefreshTrigger=0,this.navigationStack=[g.MAIN_SCREEN],this.currentWidgetMode=v?y.WIDGET_MODE:y.MINI_MODE,this.isMiniModeDescriptionClosed=a()||d(),this.isLoading=n.isLoading||!1,this.isActionLoading=n.isActionLoading||!1,this.loyaltyWidget=new h(n.loyaltyWidget),this.cdnURL=s,this.merchantId=m,this.storeUrl=M||n.storeUrl||"",this.currency=f,this.isPreviewMode=v||!1,this.cartId=n.cartId||null,this.ikasEventUser=n.ikasEventUser||null,this.user=n.user?new c(n.user):null,this.loyaltyProgram=n.loyaltyProgram?new l(n.loyaltyProgram):null,this.earningMethods=n.earningMethods?n.earningMethods.map(function(t){return new u(t)}):[],this.spendingMethods=n.spendingMethods?n.spendingMethods.map(function(t){return new p(t)}):[],this.tiers=n.tiers?n.tiers:[],this.categories=n.categories?n.categories:[],this.products=n.products?n.products:[],this.brands=n.brands?n.brands:[],this.tags=n.tags?n.tags:[],this.pointHistory=n.pointHistory?n.pointHistory:[],this.callbacks=b||void 0,e(this,t(t({cartId:i},v?{}:{loyaltyWidget:i}),{isLoading:i,isActionLoading:i,cdnURL:i,merchantId:i,storeUrl:i,currency:i,navigationStack:i,currentScreen:o,isMainScreen:o,pushScreen:r.bound,popScreen:r.bound,resetNavigation:r.bound,previewExpandedFaqId:i,setPreviewExpandedFaqId:r.bound,faqItems:o,setWidgetMode:r.bound,closeMiniModeDescription:r.bound,formatCurrency:r.bound,currentWidgetMode:i,isMiniModeDescriptionClosed:i,user:i,loyaltyProgram:i,earningMethods:i,spendingMethods:i,tiers:i,categories:i,products:i,brands:i,tags:i,pointHistory:i,ikasEventUser:i,userRefreshTrigger:i,cartRefreshTrigger:i,shouldShowSpendingMethods:o}))}return Object.defineProperty(m.prototype,"currentScreen",{get:function(){return this.navigationStack[this.navigationStack.length-1]},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"isMainScreen",{get:function(){return this.currentScreen===g.MAIN_SCREEN},enumerable:!1,configurable:!0}),m.prototype.pushScreen=function(t){this.currentScreen!==t&&this.navigationStack.push(t)},m.prototype.popScreen=function(){this.navigationStack.length>1&&this.navigationStack.pop()},m.prototype.resetNavigation=function(){this.navigationStack=[g.MAIN_SCREEN]},m.prototype.setPreviewExpandedFaqId=function(t){this.previewExpandedFaqId=t},Object.defineProperty(m.prototype,"faqItems",{get:function(){return this.loyaltyWidget.faqItems.filter(function(t){return!!t.question.trim()})},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"shouldShowSpendingMethods",{get:function(){return!!this.user&&(!(this.user.availablePoint<=0)&&0!==this.spendingMethods.length)},enumerable:!1,configurable:!0}),m.prototype.setWidgetMode=function(t){var e,i;this.currentWidgetMode=t,t!==y.WIDGET_MODE||this.isPreviewMode||(this.isMiniModeDescriptionClosed=!0,n(),(null===(i=null===(e=this.loyaltyWidget)||void 0===e?void 0:e.miniMode)||void 0===i?void 0:i.hideDescriptionAfterClose)&&s())},m.prototype.closeMiniModeDescription=function(){var t,e;this.isMiniModeDescriptionClosed=!0,n(),(null===(e=null===(t=this.loyaltyWidget)||void 0===t?void 0:t.miniMode)||void 0===e?void 0:e.hideDescriptionAfterClose)&&s()},m.prototype.formatCurrency=function(t){var e;return(null===(e=this.callbacks)||void 0===e?void 0:e.formatCurrency)?this.callbacks.formatCurrency(t):"".concat(t.toFixed(2)," ").concat(this.currency)},m}();export{m as LoyaltyWidgetViewModel};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{makeObservable as s,observable as i}from"mobx";import'./../../ext/uuid/dist/esm-browser/stringify.js';import'./../../ext/uuid/dist/esm-browser/v3.js';import o from'./../../ext/uuid/dist/esm-browser/v4.js';import'./../../ext/uuid/dist/esm-browser/v5.js';var e=function(e){void 0===e&&(e={}),this.id=e.id||o(),this.question=e.question||"",this.answer=e.answer||"",s(this,{id:i,question:i,answer:i})};export{e as LoyaltyWidgetFaqItem};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MiniMode } from "models/mini-mode";
|
|
2
2
|
import { LoyaltyWidgetButton } from "../button";
|
|
3
|
+
import { LoyaltyWidgetFaqItem } from "./faq";
|
|
3
4
|
import { LoyaltyWidgetHeader } from "./header";
|
|
4
5
|
import { LoyaltyWidgetSettings } from "./settings";
|
|
5
6
|
import { LoyaltyWidgetTranslations } from "./translations";
|
|
@@ -10,5 +11,6 @@ export declare class LoyaltyWidget {
|
|
|
10
11
|
button: LoyaltyWidgetButton;
|
|
11
12
|
miniMode: MiniMode;
|
|
12
13
|
translations: LoyaltyWidgetTranslations;
|
|
14
|
+
faqItems: LoyaltyWidgetFaqItem[];
|
|
13
15
|
constructor(data?: Partial<LoyaltyWidget>);
|
|
14
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as
|
|
1
|
+
import{makeObservable as t,observable as i}from"mobx";import'./../../ext/uuid/dist/esm-browser/stringify.js';import'./../../ext/uuid/dist/esm-browser/v3.js';import s from'./../../ext/uuid/dist/esm-browser/v4.js';import'./../../ext/uuid/dist/esm-browser/v5.js';import{MiniMode as e}from"../mini-mode/index.js";import{LoyaltyWidgetButton as o}from"../button/index.js";import{LoyaltyWidgetFaqItem as n}from"./faq.js";import{LoyaltyWidgetHeader as r}from"./header/index.js";import{LoyaltyWidgetSettings as m}from"./settings/index.js";import{LoyaltyWidgetTranslations as d}from"./translations.js";var a=function(a){void 0===a&&(a={}),this.id=a.id||s(),this.header=a.header?new r(a.header):new r({}),this.settings=a.settings?new m(a.settings):new m({}),this.miniMode=a.miniMode?new e(a.miniMode):new e({}),this.button=a.button?new o(a.button):new o({}),this.translations=a.translations?new d(a.translations):new d({}),this.faqItems=(a.faqItems||[]).map(function(t){return new n(t)}),t(this,{id:i,miniMode:i,button:i,header:i,settings:i,translations:i,faqItems:i})};export{a as LoyaltyWidget};
|
|
@@ -11,7 +11,8 @@ export declare enum LoyaltyWidgetScreenTypeEnum {
|
|
|
11
11
|
CREDIT_EARNING_METHODS_SCREEN = "CREDIT_EARNING_METHODS_SCREEN",
|
|
12
12
|
CREDIT_HISTORY_SCREEN = "CREDIT_HISTORY_SCREEN",
|
|
13
13
|
LOYALTY_LEVEL_SCREEN = "LOYALTY_LEVEL_SCREEN",
|
|
14
|
-
GIFT_PRODUCT_SELECTION_SCREEN = "GIFT_PRODUCT_SELECTION_SCREEN"
|
|
14
|
+
GIFT_PRODUCT_SELECTION_SCREEN = "GIFT_PRODUCT_SELECTION_SCREEN",
|
|
15
|
+
FAQ_SCREEN = "FAQ_SCREEN"
|
|
15
16
|
}
|
|
16
17
|
export declare enum WidgetMode {
|
|
17
18
|
MINI_MODE = "MINI_MODE",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var E,R,T,
|
|
1
|
+
var E,R,_,T,N,C,A,D;!function(E){E.MAIN_SCREEN="MAIN_SCREEN",E.CREDIT_SPENDING_METHODS_SCREEN="CREDIT_SPENDING_METHODS_SCREEN",E.CREDIT_EARNING_METHODS_SCREEN="CREDIT_EARNING_METHODS_SCREEN",E.CREDIT_HISTORY_SCREEN="CREDIT_HISTORY_SCREEN",E.LOYALTY_LEVEL_SCREEN="LOYALTY_LEVEL_SCREEN",E.GIFT_PRODUCT_SELECTION_SCREEN="GIFT_PRODUCT_SELECTION_SCREEN",E.FAQ_SCREEN="FAQ_SCREEN"}(E||(E={})),function(E){E.MINI_MODE="MINI_MODE",E.WIDGET_MODE="WIDGET_MODE"}(R||(R={})),function(E){E.BUY_PRODUCT="BUY_PRODUCT",E.CUSTOMER_REGISTER="CUSTOMER_REGISTER",E.CUSTOMER_REVIEW="CUSTOMER_REVIEW",E.CUSTOMER_SEGMENT="CUSTOMER_SEGMENT",E.ENABLE_SUBSCRIPTION="ENABLE_SUBSCRIPTION",E.ORDER_CREATE="ORDER_CREATE"}(_||(_={})),function(E){E.DYNAMIC_ORDER_AMOUNT="DYNAMIC_ORDER_AMOUNT",E.DYNAMIC_ORDER_QUANTITY="DYNAMIC_ORDER_QUANTITY",E.STATIC="STATIC"}(T||(T={})),function(E){E.FIXED_AMOUNT="FIXED_AMOUNT",E.FREE_PRODUCT="FREE_PRODUCT",E.FREE_SHIPPING="FREE_SHIPPING",E.RATIO="RATIO"}(N||(N={})),function(E){E.CATEGORY="CATEGORY",E.DYNAMIC_CATEGORY="DYNAMIC_CATEGORY",E.PRODUCT_AND_VARIANT="PRODUCT_AND_VARIANT",E.PRODUCT_BRAND="PRODUCT_BRAND",E.PRODUCT_TAG="PRODUCT_TAG"}(C||(C={})),function(E){E.MONTH="MONTH",E.WEEK="WEEK",E.YEAR="YEAR"}(A||(A={})),function(E){E.EARN="EARN",E.SPEND="SPEND",E.REFUND="REFUND",E.REFILL="REFILL",E.MANUAL_EARN="MANUAL_EARN",E.MANUAL_DEDUCT="MANUAL_DEDUCT"}(D||(D={}));export{_ as EarningMethodTypeEnum,C as LoyaltyProgramFilterTypeEnum,N as LoyaltyProgramMethodSpendingTypeEnum,T as LoyaltyProgramPointEarningTypeEnum,D as LoyaltyProgramPointHistoryTypeEnum,E as LoyaltyWidgetScreenTypeEnum,A as PeriodTypeEnum,R as WidgetMode};
|
package/build/renderer/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__awaiter as e,__generator as t,__spreadArray as n}from'./../ext/tslib/tslib.es6.mjs.js';import{toJS as r}from"mobx";import{observer as i}from"mobx-react";import o,{useState as s,useEffect as a}from"react";import'./../ext/react-i18next/dist/es/context.js';import{I18nextProvider as l}from'./../ext/react-i18next/dist/es/I18nextProvider.js';import{LoyaltyWidgetViewModel as d}from"../models/index.js";import{LoyaltyCustomerInfo as c}from"../models/loyalty-customer-info/index.js";import{LoyaltyProgram as u}from"../models/loyalty-program/index.js";import{LoyaltyProgramEarningMethod as f}from"../models/loyalty-program-earning-method/index.js";import{LoyaltyProgramPointHistory as v}from"../models/loyalty-program-point-history/index.js";import{LoyaltyProgramSpendingMethod as m}from"../models/loyalty-program-spending-method/index.js";import{LoyaltyWidget as g}from"../models/loyalty-widget/index.js";import{WidgetPositionEnum as p,LoyaltyWidgetLayoutTypeEnum as y}from"../models/loyalty-widget/types/index.js";import{WidgetMode as E,LoyaltyWidgetScreenTypeEnum as h,EarningMethodTypeEnum as T,LoyaltyProgramFilterTypeEnum as k,LoyaltyProgramMethodSpendingTypeEnum as R}from"../models/types/index.js";import b from"./components/mini-mode-button/index.js";import w from"./components/mini-mode-description/index.js";import I from"./screens/credit-earning-methods-screen/index.js";import M from"./screens/credit-history-screen/index.js";import _ from"./screens/credit-spending-methods-screen/index.js";import C from"./screens/gift-product-selection-screen/index.js";import O from"./screens/loyalty-level-screen/index.js";import S from"./screens/main-screen/index.js";import D from"./utils/i18n.js";import{unflatten as P}from"./utils/object-utils.js";import{Container as L,MiniModeWrapper as A,Panel as U,ScreenWrapper as j}from"./style.js";var x=i(function(i){var x,W,N,$=i.config,G=s(function(){var e=$||window.ikasLoyaltyWidgetConfig;return new d({cartId:(null==e?void 0:e.cartId)||null,ikasEventUser:(null==e?void 0:e.userId)?{id:e.userId}:null},(null==e?void 0:e.cdnURL)||"",(null==e?void 0:e.merchantId)||"",(null==e?void 0:e.currency)||"",(null==e?void 0:e.storeURL)||null,null==e?void 0:e.isPreviewMode,null==e?void 0:e.callbacks)})[0],B=s(!1),F=B[0],V=B[1],z=s(!1),Y=z[0],H=z[1],J=s(!1),q=J[0],K=J[1],Q=G.loyaltyWidget.translations,X=JSON.stringify(r(null==Q?void 0:Q.custom));a(function(){var e=null==Q?void 0:Q.language,t=(null==Q?void 0:Q.custom)?r(Q.custom):{};if(e){var n=["tr","en","de","nl","fr"].includes(e)?e:"en";if(D.language!==n&&D.changeLanguage(n),Object.keys(t).length>0){var i=P(t);D.addResourceBundle(n,"translation",i,!0,!0)}}},[null==Q?void 0:Q.language,X]),a(function(){var e=$||window.ikasLoyaltyWidgetConfig;(null==e?void 0:e.onViewModelInitialized)&&e.onViewModelInitialized(G)},[G,$]);var Z=function(){return e(void 0,void 0,void 0,function(){var e,r,i,o,s;return t(this,function(t){switch(t.label){case 0:return G.callbacks?(e=new Set,r=new Set,i=new Set,o=new Set,G.earningMethods.forEach(function(t){var s,a;t.methodType!==T.ORDER_CREATE&&t.methodType!==T.BUY_PRODUCT||n(n([],(null===(s=t.orderSettings)||void 0===s?void 0:s.productFilters)||[],!0),(null===(a=t.productSettings)||void 0===a?void 0:a.productFilters)||[],!0).forEach(function(t){t.type===k.PRODUCT_AND_VARIANT?t.idList.forEach(function(t){t.startsWith("v:")||e.add(t.replace(/^p:/,""))}):t.type===k.CATEGORY?t.idList.forEach(function(e){return r.add(e)}):t.type===k.PRODUCT_BRAND?t.idList.forEach(function(e){return i.add(e)}):t.type===k.PRODUCT_TAG&&t.idList.forEach(function(e){return o.add(e)})})}),G.spendingMethods&&G.spendingMethods.forEach(function(t){var n,s;t.type===R.FREE_PRODUCT&&(null===(n=t.discountSettings)||void 0===n?void 0:n.freeProductId)&&e.add(t.discountSettings.freeProductId),null===(s=t.productFilters)||void 0===s||s.forEach(function(t){t.type===k.PRODUCT_AND_VARIANT?t.idList.forEach(function(t){t.startsWith("v:")||e.add(t.replace(/^p:/,""))}):t.type===k.CATEGORY?t.idList.forEach(function(e){return r.add(e)}):t.type===k.PRODUCT_BRAND?t.idList.forEach(function(e){return i.add(e)}):t.type===k.PRODUCT_TAG&&t.idList.forEach(function(e){return o.add(e)})})}),s=[],e.size>0&&G.callbacks.getProducts&&s.push(G.callbacks.getProducts(Array.from(e)).then(function(e){G.products=e})),r.size>0&&G.callbacks.getCategories&&s.push(G.callbacks.getCategories(Array.from(r)).then(function(e){return G.categories=e})),i.size>0&&G.callbacks.getBrands&&s.push(G.callbacks.getBrands(Array.from(i)).then(function(e){return G.brands=e})),o.size>0&&G.callbacks.getTags&&s.push(G.callbacks.getTags(Array.from(o)).then(function(e){return G.tags=e})),[4,Promise.all(s)]):[2];case 1:return t.sent(),[2]}})})};a(function(){e(void 0,void 0,void 0,function(){var e,n,r,i,o,s,a,l,d,c;return t(this,function(t){switch(t.label){case 0:if(!G.callbacks)return[3,6];t.label=1;case 1:return t.trys.push([1,4,5,6]),e=[G.callbacks.getLoyaltyWidget(),G.callbacks.listEarningMethods(),G.callbacks.listLoyaltyProgramTier({}),null!==(c=null===(d=(l=G.callbacks).getLoyaltyProgram)||void 0===d?void 0:d.call(l))&&void 0!==c?c:Promise.resolve(null)],[4,Promise.all(e)];case 2:return n=t.sent(),r=n[0],i=n[1],o=n[2],s=n[3],G.loyaltyWidget=r instanceof g?r:new g(r||{}),G.earningMethods=i.map(function(e){return new f(e)}),G.tiers=o||[],G.loyaltyProgram=s?new u(s):null,[4,Z()];case 3:return t.sent(),!G.isPreviewMode&&G.loyaltyWidget.settings.openOnPageLoad&&G.setWidgetMode(E.WIDGET_MODE),[3,6];case 4:return a=t.sent(),console.error("Failed to initialize loyalty data",a),[3,6];case 5:return V(!0),[7];case 6:return[2]}})})},[]),a(function(){if(window.IkasEvents){var e=function(e){var t,n,r=null===(t=e.data)||void 0===t?void 0:t.customer;(null==r?void 0:r.id)&&(null===(n=G.ikasEventUser)||void 0===n?void 0:n.id)!==r.id&&(G.ikasEventUser=r,G.userRefreshTrigger++,G.cartRefreshTrigger++)},t=function(e){var t,n,r,i,o,s=null===(n=null===(t=e.data)||void 0===t?void 0:t.cart)||void 0===n?void 0:n.id;0===(null===(o=null===(i=null===(r=e.data)||void 0===r?void 0:r.cart)||void 0===i?void 0:i.orderLineItems)||void 0===o?void 0:o.length)?G.cartId=null:G.cartId=s,G.cartRefreshTrigger++},n={CUSTOMER_LOGIN:e,CUSTOMER_VISIT:e,CUSTOMER_LOGOUT:function(){G.ikasEventUser=null,G.user=null,G.pointHistory=[],G.userRefreshTrigger++,G.cartRefreshTrigger++},ADD_TO_CART:function(e){return t(e)},REMOVE_FROM_CART:t,REMOVE_LOYALTY_POINTS:function(){G.cartRefreshTrigger++,G.userRefreshTrigger++},PAGE_VIEW:function(e){var t,n,r=null===(t=e.data)||void 0===t?void 0:t.customer;if(null==r?void 0:r.id){var i=!G.ikasEventUser,o=(null===(n=G.ikasEventUser)||void 0===n?void 0:n.subscriptionStatus)!==r.subscriptionStatus;(i||o)&&(G.ikasEventUser=r,G.userRefreshTrigger++,G.cartRefreshTrigger++)}}},r="ikas-loyalty-widget-subscriber";try{window.IkasEvents.subscribe({id:r,callback:function(e){var t=n[e.type];t&&t(e)}})}catch(e){console.error("Failed to subscribe to IkasEvents",e)}return function(){var e;(null===(e=window.IkasEvents)||void 0===e?void 0:e.unsubscribe)&&window.IkasEvents.unsubscribe(r)}}},[G]),a(function(){e(void 0,void 0,void 0,function(){var e,n,r,i,o;return t(this,function(t){switch(t.label){case 0:if(Y)return[2];if(H(!0),!G.callbacks||!(null===(o=G.ikasEventUser)||void 0===o?void 0:o.id))return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Promise.all([G.callbacks.getLoyaltyCustomerInfo(),G.callbacks.listLoyaltyProgramPointHistory({})])];case 2:return e=t.sent(),n=e[0],r=e[1],G.user=n?new c(n):null,n||(G.ikasEventUser=null),G.pointHistory=r?r.map(function(e){return new v(e)}):[],[3,4];case 3:return i=t.sent(),console.error("Failed to fetch user data",i),[3,4];case 4:return H(!1),[2]}})})},[null===(x=G.ikasEventUser)||void 0===x?void 0:x.id,G.userRefreshTrigger]),a(function(){e(void 0,void 0,void 0,function(){var e,n,r;return t(this,function(t){switch(t.label){case 0:if(q)return[2];if(K(!0),!G.callbacks||!(null===(r=G.ikasEventUser)||void 0===r?void 0:r.id))return[3,6];t.label=1;case 1:return t.trys.push([1,4,,5]),[4,G.callbacks.listSpendingMethodsByCartId(G.cartId)];case 2:return e=t.sent(),G.spendingMethods=e.map(function(e){return new m(e)}),[4,Z()];case 3:return t.sent(),[3,5];case 4:return n=t.sent(),console.error("Failed to fetch cart data",n),[3,5];case 5:return[3,7];case 6:G.spendingMethods=[],t.label=7;case 7:return K(!1),[2]}})})},[G.cartId,G.cartRefreshTrigger,null===(W=G.ikasEventUser)||void 0===W?void 0:W.id]);var ee=function(){G.setWidgetMode(E.MINI_MODE),setTimeout(function(){G.resetNavigation()},300)};a(function(){return G.currentWidgetMode===E.WIDGET_MODE?document.body.style.overflow="hidden":document.body.style.overflow="",function(){document.body.style.overflow=""}},[G.currentWidgetMode]);var te=s(null),ne=te[0],re=te[1],ie=s(null),oe=ie[0],se=ie[1],ae=G.navigationStack.length,le=ae>1?G.navigationStack[1]:null,de=ae>2?G.navigationStack[2]:null;a(function(){le&&re(le)},[le]),a(function(){de&&se(de)},[de]);var ce=G.loyaltyWidget.settings.position||p.RIGHT,ue=G.loyaltyWidget.settings.type||y.DRAWER,fe=function(e){switch(e){case h.CREDIT_SPENDING_METHODS_SCREEN:return o.createElement(_,{viewModel:G,onBack:function(){return G.popScreen()},onClose:ee});case h.CREDIT_EARNING_METHODS_SCREEN:return o.createElement(I,{viewModel:G,onBack:function(){return G.popScreen()},onClose:ee});case h.CREDIT_HISTORY_SCREEN:return o.createElement(M,{viewModel:G,onBack:function(){return G.popScreen()},onClose:ee});case h.LOYALTY_LEVEL_SCREEN:return o.createElement(O,{viewModel:G,onBack:function(){return G.popScreen()},onClose:ee});case h.GIFT_PRODUCT_SELECTION_SCREEN:return o.createElement(C,{viewModel:G,onBack:function(){return G.popScreen()},onClose:ee});default:return null}};if(!F)return null;var ve=(null==$?void 0:$.position)||(null===(N=window.ikasLoyaltyWidgetConfig)||void 0===N?void 0:N.position)||"fixed";return o.createElement(l,{i18n:D},o.createElement(L,{$layoutType:ue,$widgetPosition:ce,$widgetMode:G.currentWidgetMode,$position:ve,onClick:function(){G.currentWidgetMode===E.WIDGET_MODE&&ee()},className:"ikas-storefront-widget"},o.createElement(A,{$isVisible:G.currentWidgetMode===E.MINI_MODE,$widgetPosition:ce},o.createElement(w,{viewModel:G,isInitialized:F}),o.createElement(b,{viewModel:G})),o.createElement(U,{$layoutType:ue,$isOpen:G.currentWidgetMode===E.WIDGET_MODE,$widgetPosition:ce,onClick:function(e){return e.stopPropagation()}},o.createElement(j,{$isActive:G.isMainScreen,$layer:0,$layoutType:ue},o.createElement(S,{viewModel:G,onClose:ee,onNavigate:function(e){return G.pushScreen(e)}})),o.createElement(j,{$isActive:!!le,$layer:1,$layoutType:ue},fe(le||ne)),o.createElement(j,{$isActive:!!de,$layer:2,$layoutType:ue},fe(de||oe)))))});export{x as default};
|
|
1
|
+
import{__awaiter as e,__generator as t,__spreadArray as n}from'./../ext/tslib/tslib.es6.mjs.js';import{toJS as r}from"mobx";import{observer as i}from"mobx-react";import o,{useState as s,useEffect as a}from"react";import'./../ext/react-i18next/dist/es/context.js';import{I18nextProvider as l}from'./../ext/react-i18next/dist/es/I18nextProvider.js';import{LoyaltyWidgetViewModel as c}from"../models/index.js";import{LoyaltyCustomerInfo as d}from"../models/loyalty-customer-info/index.js";import{LoyaltyProgram as u}from"../models/loyalty-program/index.js";import{LoyaltyProgramEarningMethod as f}from"../models/loyalty-program-earning-method/index.js";import{LoyaltyProgramPointHistory as v}from"../models/loyalty-program-point-history/index.js";import{LoyaltyProgramSpendingMethod as m}from"../models/loyalty-program-spending-method/index.js";import{LoyaltyWidget as g}from"../models/loyalty-widget/index.js";import{WidgetPositionEnum as p,LoyaltyWidgetLayoutTypeEnum as y}from"../models/loyalty-widget/types/index.js";import{WidgetMode as E,LoyaltyWidgetScreenTypeEnum as h,EarningMethodTypeEnum as T,LoyaltyProgramFilterTypeEnum as k,LoyaltyProgramMethodSpendingTypeEnum as R}from"../models/types/index.js";import w from"./components/mini-mode-button/index.js";import b from"./components/mini-mode-description/index.js";import I from"./screens/credit-earning-methods-screen/index.js";import M from"./screens/credit-history-screen/index.js";import _ from"./screens/credit-spending-methods-screen/index.js";import C from"./screens/faq-screen/index.js";import O from"./screens/gift-product-selection-screen/index.js";import S from"./screens/loyalty-level-screen/index.js";import D from"./screens/main-screen/index.js";import P from"./utils/i18n.js";import{unflatten as L}from"./utils/object-utils.js";import{Container as A,MiniModeWrapper as U,Panel as j,ScreenWrapper as x}from"./style.js";var N=i(function(i){var N,W,$,G=i.config,B=s(function(){var e=G||window.ikasLoyaltyWidgetConfig;return new c({cartId:(null==e?void 0:e.cartId)||null,ikasEventUser:(null==e?void 0:e.userId)?{id:e.userId}:null},(null==e?void 0:e.cdnURL)||"",(null==e?void 0:e.merchantId)||"",(null==e?void 0:e.currency)||"",(null==e?void 0:e.storeURL)||null,null==e?void 0:e.isPreviewMode,null==e?void 0:e.callbacks)})[0],F=s(!1),V=F[0],z=F[1],Y=s(!1),H=Y[0],q=Y[1],J=s(!1),Q=J[0],K=J[1],X=B.loyaltyWidget.translations,Z=JSON.stringify(r(null==X?void 0:X.custom));a(function(){var e=null==X?void 0:X.language,t=(null==X?void 0:X.custom)?r(X.custom):{};if(e){var n=["tr","en","de","nl","fr"].includes(e)?e:"en";if(P.language!==n&&P.changeLanguage(n),Object.keys(t).length>0){var i=L(t);P.addResourceBundle(n,"translation",i,!0,!0)}}},[null==X?void 0:X.language,Z]),a(function(){var e=G||window.ikasLoyaltyWidgetConfig;(null==e?void 0:e.onViewModelInitialized)&&e.onViewModelInitialized(B)},[B,G]);var ee=function(){return e(void 0,void 0,void 0,function(){var e,r,i,o,s;return t(this,function(t){switch(t.label){case 0:return B.callbacks?(e=new Set,r=new Set,i=new Set,o=new Set,B.earningMethods.forEach(function(t){var s,a;t.methodType!==T.ORDER_CREATE&&t.methodType!==T.BUY_PRODUCT||n(n([],(null===(s=t.orderSettings)||void 0===s?void 0:s.productFilters)||[],!0),(null===(a=t.productSettings)||void 0===a?void 0:a.productFilters)||[],!0).forEach(function(t){t.type===k.PRODUCT_AND_VARIANT?t.idList.forEach(function(t){t.startsWith("v:")||e.add(t.replace(/^p:/,""))}):t.type===k.CATEGORY?t.idList.forEach(function(e){return r.add(e)}):t.type===k.PRODUCT_BRAND?t.idList.forEach(function(e){return i.add(e)}):t.type===k.PRODUCT_TAG&&t.idList.forEach(function(e){return o.add(e)})})}),B.spendingMethods&&B.spendingMethods.forEach(function(t){var n,s;t.type===R.FREE_PRODUCT&&(null===(n=t.discountSettings)||void 0===n?void 0:n.freeProductId)&&e.add(t.discountSettings.freeProductId),null===(s=t.productFilters)||void 0===s||s.forEach(function(t){t.type===k.PRODUCT_AND_VARIANT?t.idList.forEach(function(t){t.startsWith("v:")||e.add(t.replace(/^p:/,""))}):t.type===k.CATEGORY?t.idList.forEach(function(e){return r.add(e)}):t.type===k.PRODUCT_BRAND?t.idList.forEach(function(e){return i.add(e)}):t.type===k.PRODUCT_TAG&&t.idList.forEach(function(e){return o.add(e)})})}),s=[],e.size>0&&B.callbacks.getProducts&&s.push(B.callbacks.getProducts(Array.from(e)).then(function(e){B.products=e})),r.size>0&&B.callbacks.getCategories&&s.push(B.callbacks.getCategories(Array.from(r)).then(function(e){return B.categories=e})),i.size>0&&B.callbacks.getBrands&&s.push(B.callbacks.getBrands(Array.from(i)).then(function(e){return B.brands=e})),o.size>0&&B.callbacks.getTags&&s.push(B.callbacks.getTags(Array.from(o)).then(function(e){return B.tags=e})),[4,Promise.all(s)]):[2];case 1:return t.sent(),[2]}})})};a(function(){e(void 0,void 0,void 0,function(){var e,n,r,i,o,s,a,l,c,d;return t(this,function(t){switch(t.label){case 0:if(!B.callbacks)return[3,6];t.label=1;case 1:return t.trys.push([1,4,5,6]),e=[B.callbacks.getLoyaltyWidget(),B.callbacks.listEarningMethods(),B.callbacks.listLoyaltyProgramTier({}),null!==(d=null===(c=(l=B.callbacks).getLoyaltyProgram)||void 0===c?void 0:c.call(l))&&void 0!==d?d:Promise.resolve(null)],[4,Promise.all(e)];case 2:return n=t.sent(),r=n[0],i=n[1],o=n[2],s=n[3],B.loyaltyWidget=r instanceof g?r:new g(r||{}),B.earningMethods=i.map(function(e){return new f(e)}),B.tiers=o||[],B.loyaltyProgram=s?new u(s):null,[4,ee()];case 3:return t.sent(),!B.isPreviewMode&&B.loyaltyWidget.settings.openOnPageLoad&&B.setWidgetMode(E.WIDGET_MODE),[3,6];case 4:return a=t.sent(),console.error("Failed to initialize loyalty data",a),[3,6];case 5:return z(!0),[7];case 6:return[2]}})})},[]),a(function(){if(window.IkasEvents){var e=function(e){var t,n,r=null===(t=e.data)||void 0===t?void 0:t.customer;(null==r?void 0:r.id)&&(null===(n=B.ikasEventUser)||void 0===n?void 0:n.id)!==r.id&&(B.ikasEventUser=r,B.userRefreshTrigger++,B.cartRefreshTrigger++)},t=function(e){var t,n,r,i,o,s=null===(n=null===(t=e.data)||void 0===t?void 0:t.cart)||void 0===n?void 0:n.id;0===(null===(o=null===(i=null===(r=e.data)||void 0===r?void 0:r.cart)||void 0===i?void 0:i.orderLineItems)||void 0===o?void 0:o.length)?B.cartId=null:B.cartId=s,B.cartRefreshTrigger++},n={CUSTOMER_LOGIN:e,CUSTOMER_VISIT:e,CUSTOMER_LOGOUT:function(){B.ikasEventUser=null,B.user=null,B.pointHistory=[],B.userRefreshTrigger++,B.cartRefreshTrigger++},ADD_TO_CART:function(e){return t(e)},REMOVE_FROM_CART:t,REMOVE_LOYALTY_POINTS:function(){B.cartRefreshTrigger++,B.userRefreshTrigger++},PAGE_VIEW:function(e){var t,n,r=null===(t=e.data)||void 0===t?void 0:t.customer;if(null==r?void 0:r.id){var i=!B.ikasEventUser,o=(null===(n=B.ikasEventUser)||void 0===n?void 0:n.subscriptionStatus)!==r.subscriptionStatus;(i||o)&&(B.ikasEventUser=r,B.userRefreshTrigger++,B.cartRefreshTrigger++)}}},r="ikas-loyalty-widget-subscriber";try{window.IkasEvents.subscribe({id:r,callback:function(e){var t=n[e.type];t&&t(e)}})}catch(e){console.error("Failed to subscribe to IkasEvents",e)}return function(){var e;(null===(e=window.IkasEvents)||void 0===e?void 0:e.unsubscribe)&&window.IkasEvents.unsubscribe(r)}}},[B]),a(function(){e(void 0,void 0,void 0,function(){var e,n,r,i,o;return t(this,function(t){switch(t.label){case 0:if(H)return[2];if(q(!0),!B.callbacks||!(null===(o=B.ikasEventUser)||void 0===o?void 0:o.id))return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,Promise.all([B.callbacks.getLoyaltyCustomerInfo(),B.callbacks.listLoyaltyProgramPointHistory({})])];case 2:return e=t.sent(),n=e[0],r=e[1],B.user=n?new d(n):null,n||(B.ikasEventUser=null),B.pointHistory=r?r.map(function(e){return new v(e)}):[],[3,4];case 3:return i=t.sent(),console.error("Failed to fetch user data",i),[3,4];case 4:return q(!1),[2]}})})},[null===(N=B.ikasEventUser)||void 0===N?void 0:N.id,B.userRefreshTrigger]),a(function(){e(void 0,void 0,void 0,function(){var e,n,r;return t(this,function(t){switch(t.label){case 0:if(Q)return[2];if(K(!0),!B.callbacks||!(null===(r=B.ikasEventUser)||void 0===r?void 0:r.id))return[3,6];t.label=1;case 1:return t.trys.push([1,4,,5]),[4,B.callbacks.listSpendingMethodsByCartId(B.cartId)];case 2:return e=t.sent(),B.spendingMethods=e.map(function(e){return new m(e)}),[4,ee()];case 3:return t.sent(),[3,5];case 4:return n=t.sent(),console.error("Failed to fetch cart data",n),[3,5];case 5:return[3,7];case 6:B.spendingMethods=[],t.label=7;case 7:return K(!1),[2]}})})},[B.cartId,B.cartRefreshTrigger,null===(W=B.ikasEventUser)||void 0===W?void 0:W.id]);var te=function(){B.setWidgetMode(E.MINI_MODE),setTimeout(function(){B.resetNavigation()},300)};a(function(){return B.currentWidgetMode===E.WIDGET_MODE?document.body.style.overflow="hidden":document.body.style.overflow="",function(){document.body.style.overflow=""}},[B.currentWidgetMode]);var ne=s(null),re=ne[0],ie=ne[1],oe=s(null),se=oe[0],ae=oe[1],le=B.navigationStack.length,ce=le>1?B.navigationStack[1]:null,de=le>2?B.navigationStack[2]:null;a(function(){ce&&ie(ce)},[ce]),a(function(){de&&ae(de)},[de]);var ue=B.loyaltyWidget.settings.position||p.RIGHT,fe=B.loyaltyWidget.settings.type||y.DRAWER,ve=function(e){switch(e){case h.CREDIT_SPENDING_METHODS_SCREEN:return o.createElement(_,{viewModel:B,onBack:function(){return B.popScreen()},onClose:te});case h.CREDIT_EARNING_METHODS_SCREEN:return o.createElement(I,{viewModel:B,onBack:function(){return B.popScreen()},onClose:te});case h.CREDIT_HISTORY_SCREEN:return o.createElement(M,{viewModel:B,onBack:function(){return B.popScreen()},onClose:te});case h.LOYALTY_LEVEL_SCREEN:return o.createElement(S,{viewModel:B,onBack:function(){return B.popScreen()},onClose:te});case h.GIFT_PRODUCT_SELECTION_SCREEN:return o.createElement(O,{viewModel:B,onBack:function(){return B.popScreen()},onClose:te});case h.FAQ_SCREEN:return o.createElement(C,{viewModel:B,onBack:function(){return B.popScreen()},onClose:te});default:return null}};if(!V)return null;var me=(null==G?void 0:G.position)||(null===($=window.ikasLoyaltyWidgetConfig)||void 0===$?void 0:$.position)||"fixed";return o.createElement(l,{i18n:P},o.createElement(A,{$layoutType:fe,$widgetPosition:ue,$widgetMode:B.currentWidgetMode,$position:me,onClick:function(){B.currentWidgetMode===E.WIDGET_MODE&&te()},className:"ikas-storefront-widget"},o.createElement(U,{$isVisible:B.currentWidgetMode===E.MINI_MODE,$widgetPosition:ue},o.createElement(b,{viewModel:B,isInitialized:V}),o.createElement(w,{viewModel:B})),o.createElement(j,{$layoutType:fe,$isOpen:B.currentWidgetMode===E.WIDGET_MODE,$widgetPosition:ue,onClick:function(e){return e.stopPropagation()}},o.createElement(x,{$isActive:B.isMainScreen,$layer:0,$layoutType:fe},o.createElement(D,{viewModel:B,onClose:te,onNavigate:function(e){return B.pushScreen(e)}})),o.createElement(x,{$isActive:!!ce,$layer:1,$layoutType:fe},ve(ce||re)),o.createElement(x,{$isActive:!!de,$layer:2,$layoutType:fe},ve(de||se)))))});export{N as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__spreadArray as e}from'./../../../ext/tslib/tslib.es6.mjs.js';import{observer as t}from"mobx-react";import n,{useState as r}from"react";import'./../../../ext/react-i18next/dist/es/context.js';import{useTranslation as l}from'./../../../ext/react-i18next/dist/es/useTranslation.js';import{ChevronLeft as o}from"../../../assets/icons/chevron-left.js";import{XClose as s}from"../../../assets/icons/x-close.js";import{sanitizeRichText as i}from"../../utils/sanitize-html.js";import{Container as a,Header as m,IconButton as c,Title as u,Content as d,Item as f,ItemHeader as p,Question as E,ArrowWrapper as j,AnswerWrapper as v,Answer as x}from"./style.js";var k=t(function(t){var k=t.viewModel,y=t.onBack,_=t.onClose,b=l().t,q=r([]),C=q[0],$=q[1];return n.createElement(a,null,n.createElement(m,null,n.createElement(c,{onClick:y},n.createElement(o,null)),n.createElement(u,null,b("screens.faq")),n.createElement(c,{onClick:_},n.createElement(s,null))),n.createElement(d,null,k.faqItems.map(function(t){var r=C.includes(t.id)||k.previewExpandedFaqId===t.id;return n.createElement(f,{key:t.id,$borderRadius:k.loyaltyWidget.settings.cartBorderRadius},n.createElement(p,{onClick:function(){return n=t.id,void $(function(t){return t.includes(n)?t.filter(function(e){return e!==n}):e(e([],t,!0),[n],!1)});var n}},n.createElement(E,null,t.question),n.createElement(j,{$isOpen:r},n.createElement(o,null))),n.createElement(v,{$isOpen:r},n.createElement(x,{$isOpen:r,dangerouslySetInnerHTML:{__html:i(t.answer)}})))})))});export{k as default};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
export declare const Header: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
+
export declare const Title: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
+
export declare const IconButton: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
5
|
+
export declare const Content: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
+
export declare const ArrowWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
7
|
+
$isOpen: boolean;
|
|
8
|
+
}, never>;
|
|
9
|
+
export declare const Item: import("styled-components").StyledComponent<"div", any, {
|
|
10
|
+
$borderRadius: number;
|
|
11
|
+
}, never>;
|
|
12
|
+
export declare const ItemHeader: import("styled-components").StyledComponent<"button", any, {}, never>;
|
|
13
|
+
export declare const Question: import("styled-components").StyledComponent<"span", any, {}, never>;
|
|
14
|
+
export declare const AnswerWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
15
|
+
$isOpen: boolean;
|
|
16
|
+
}, never>;
|
|
17
|
+
export declare const Answer: import("styled-components").StyledComponent<"div", any, {
|
|
18
|
+
$isOpen: boolean;
|
|
19
|
+
}, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__makeTemplateObject as n}from'./../../../ext/tslib/tslib.es6.mjs.js';import o from"styled-components";import{textMDMedium as e,textSMMedium as t,textSM as r}from"../../components/style/typography.js";var i,d,a,l,s,p,f,c,u,g,x,b=o.div(i||(i=n(["\n display: flex;\n flex-direction: column;\n height: 100%;\n background-color: #ffffff;\n"],["\n display: flex;\n flex-direction: column;\n height: 100%;\n background-color: #ffffff;\n"]))),m=o.div(d||(d=n(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 20px;\n border-bottom: 1px solid #eef2f6;\n position: sticky;\n top: 0;\n background-color: #ffffff;\n z-index: 10;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 20px;\n border-bottom: 1px solid #eef2f6;\n position: sticky;\n top: 0;\n background-color: #ffffff;\n z-index: 10;\n"]))),y=o.div(a||(a=n(["\n ","\n color: #121926;\n text-align: center;\n flex: 1;\n"],["\n ","\n color: #121926;\n text-align: center;\n flex: 1;\n"])),e),h=o.button(l||(l=n(["\n background: none;\n border: none;\n cursor: pointer;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #697586;\n\n &:hover {\n opacity: 0.8;\n }\n"],["\n background: none;\n border: none;\n cursor: pointer;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #697586;\n\n &:hover {\n opacity: 0.8;\n }\n"]))),k=o.div(s||(s=n(["\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 20px 16px;\n flex: 1;\n overflow-y: auto;\n"],["\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 20px 16px;\n flex: 1;\n overflow-y: auto;\n"]))),w=o.div(p||(p=n(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n color: #9aa4b2;\n transform: rotate(",");\n transition:\n transform 0.2s ease-in-out,\n color 0.2s ease-in-out;\n"],["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n color: #9aa4b2;\n transform: rotate(",");\n transition:\n transform 0.2s ease-in-out,\n color 0.2s ease-in-out;\n"])),function(n){return n.$isOpen?"90deg":"-90deg"}),v=o.div(f||(f=n(["\n display: flex;\n flex-direction: column;\n padding: 16px 14px;\n border-radius: ","px;\n border: 1px solid #eef2f6;\n background: #fff;\n transition: border-color 0.2s ease-in-out;\n\n &:hover {\n border-color: #cdd5df;\n\n "," {\n color: #4b5565;\n }\n }\n"],["\n display: flex;\n flex-direction: column;\n padding: 16px 14px;\n border-radius: ","px;\n border: 1px solid #eef2f6;\n background: #fff;\n transition: border-color 0.2s ease-in-out;\n\n &:hover {\n border-color: #cdd5df;\n\n "," {\n color: #4b5565;\n }\n }\n"])),function(n){return n.$borderRadius},w),j=o.button(c||(c=n(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n width: 100%;\n padding: 0;\n border: none;\n background: none;\n cursor: pointer;\n text-align: left;\n"],["\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n width: 100%;\n padding: 0;\n border: none;\n background: none;\n cursor: pointer;\n text-align: left;\n"]))),$=o.span(u||(u=n(["\n ","\n color: #121926;\n word-break: break-word;\n"],["\n ","\n color: #121926;\n word-break: break-word;\n"])),t),O=o.div(g||(g=n(["\n display: grid;\n grid-template-rows: ",";\n transition: grid-template-rows 300ms ease-in-out;\n"],["\n display: grid;\n grid-template-rows: ",";\n transition: grid-template-rows 300ms ease-in-out;\n"])),function(n){return n.$isOpen?"1fr":"0fr"}),q=o.div(x||(x=n(["\n overflow: hidden;\n ","\n color: #4b5565;\n word-break: break-word;\n padding-top: ",";\n opacity: ",";\n transition:\n opacity 300ms ease-in-out,\n padding-top 300ms ease-in-out;\n\n p,\n ul,\n ol,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n blockquote,\n pre {\n margin: 0 0 8px;\n }\n\n > :last-child {\n margin-bottom: 0;\n }\n\n ul,\n ol {\n padding-left: 20px;\n }\n\n b,\n strong {\n font-weight: 600;\n }\n"],["\n overflow: hidden;\n ","\n color: #4b5565;\n word-break: break-word;\n padding-top: ",";\n opacity: ",";\n transition:\n opacity 300ms ease-in-out,\n padding-top 300ms ease-in-out;\n\n p,\n ul,\n ol,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n blockquote,\n pre {\n margin: 0 0 8px;\n }\n\n > :last-child {\n margin-bottom: 0;\n }\n\n ul,\n ol {\n padding-left: 20px;\n }\n\n b,\n strong {\n font-weight: 600;\n }\n"])),r,function(n){return n.$isOpen?"12px":"0px"},function(n){return n.$isOpen?1:0});export{q as Answer,O as AnswerWrapper,w as ArrowWrapper,b as Container,k as Content,m as Header,h as IconButton,v as Item,j as ItemHeader,$ as Question,y as Title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{observer as e}from"mobx-react";import t from"react";import'./../../../../ext/react-i18next/dist/es/context.js';import{useTranslation as n}from'./../../../../ext/react-i18next/dist/es/useTranslation.js';import{WidgetIconTypeEnum as r}from"../../../../models/loyalty-widget/types/index.js";import{LoyaltyWidgetScreenTypeEnum as l}from"../../../../models/types/index.js";import{getScreenIcon as o}from"../../../../utils.js";import{Container as i,GridContainer as a,SmallCard as s,SmallCardIconWrapper as c,SmallCardBottom as
|
|
1
|
+
import{observer as e}from"mobx-react";import t from"react";import'./../../../../ext/react-i18next/dist/es/context.js';import{useTranslation as n}from'./../../../../ext/react-i18next/dist/es/useTranslation.js';import{WidgetIconTypeEnum as r}from"../../../../models/loyalty-widget/types/index.js";import{LoyaltyWidgetScreenTypeEnum as l}from"../../../../models/types/index.js";import{getScreenIcon as o}from"../../../../utils.js";import{Container as i,GridContainer as a,SmallCard as s,SmallCardIconWrapper as c,SmallCardBottom as u,Title as m,ArrowWrapper as E,RowCard as d}from"./style.js";var R=function(){return t.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M7.5 15L12.5 10L7.5 5",stroke:"currentColor",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}))},g=e(function(e){var g=e.viewModel,_=e.onNavigate,y=n().t,N=g.user,C=!!N,T=g.loyaltyWidget.settings.widgetIconType;return t.createElement(i,null,t.createElement(a,null,t.createElement(s,{$borderRadius:g.loyaltyWidget.settings.cartBorderRadius,onClick:function(){return null==_?void 0:_(l.CREDIT_EARNING_METHODS_SCREEN)}},T!==r.NONE&&t.createElement(c,{$hasBgColor:T===r.ILLUSTRATION,$iconType:T},o(l.CREDIT_EARNING_METHODS_SCREEN,T)),t.createElement(u,null,t.createElement(m,null,y("main_screen.earnPoints")),t.createElement(E,null,t.createElement(R,null)))),t.createElement(s,{$borderRadius:g.loyaltyWidget.settings.cartBorderRadius,onClick:function(){return null==_?void 0:_(l.CREDIT_SPENDING_METHODS_SCREEN)}},T!==r.NONE&&t.createElement(c,{$hasBgColor:T===r.ILLUSTRATION,$iconType:T},o(l.CREDIT_SPENDING_METHODS_SCREEN,T)),t.createElement(u,null,t.createElement(m,null,y("main_screen.allRewards")),t.createElement(E,null,t.createElement(R,null))))),C&&t.createElement(t.Fragment,null,(g.tiers.some(function(e){return!e.customerSegmentId})||!!(null==N?void 0:N.customerTier))&&t.createElement(d,{$borderRadius:g.loyaltyWidget.settings.cartBorderRadius,onClick:function(){return null==_?void 0:_(l.LOYALTY_LEVEL_SCREEN)}},t.createElement(m,null,y("main_screen.tiers")),t.createElement(E,null,t.createElement(R,null))),g.pointHistory.length>0&&t.createElement(d,{$borderRadius:g.loyaltyWidget.settings.cartBorderRadius,onClick:function(){return null==_?void 0:_(l.CREDIT_HISTORY_SCREEN)}},t.createElement(m,null,y("main_screen.pointHistory")),t.createElement(E,null,t.createElement(R,null)))),g.faqItems.length>0&&t.createElement(d,{$borderRadius:g.loyaltyWidget.settings.cartBorderRadius,onClick:function(){return null==_?void 0:_(l.FAQ_SCREEN)}},t.createElement(m,null,y("main_screen.faq")),t.createElement(E,null,t.createElement(R,null))))});export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={points:"Punkte",create:"Erstellen",allow:"Erlauben",use:"Benutzen",login:"Anmelden",convert:"Umwandeln",goToProduct:"Zum Produkt"},n={earningMethodsTitle:"Methoden zum Punktesammeln",spendingMethodsTitle:"Verfügbare Belohnungen",programInfoTitle:"Programminformationen",earnPoints:"Punkte sammeln",allRewards:"Alle Belohnungen",tiers:"Stufen",pointHistory:"Punktestand",cartWarning:"Sie können Belohnungen nicht nutzen, ohne einen Warenkorb zu erstellen.",appliedDiscount:{fixedAmount:"{{amount}} Rabatt auf Ihren Warenkorb angewendet.",freeShipping:"Kostenloser Versand auf Ihren Warenkorb angewendet.",ratio:"{{amount}} Rabatt auf Ihren Warenkorb angewendet.",freeProduct:"Geschenkprodukt zu Ihrem Warenkorb hinzugefügt.",generic:"{{amount}} Rabatt auf Ihren Warenkorb angewendet.",remove:"Entfernen",goToCheckout:"Zur Kasse"}},t={minPointLimit:"Mindestens {{points}} Punkte können umgewandelt werden.",FIXED_AMOUNT:{title:"Betragsrabatt",dynamicTitle:"Dynamischer Betragsrabatt"},RATIO:{title:"Prozentualer Rabatt"},FREE_SHIPPING:{title:"Kostenloser Versand"},FREE_PRODUCT:{title:"Geschenkprodukt",description:"{{product}} wird kostenlos zum Warenkorb hinzugefügt.",groupedDescription:"{{minPoint}} ~ {{maxPoint}} Punkte",singleDescription:"{{points}} Punkte",selectGift:"Geschenk auswählen",addFree:"Gratis hinzufügen"}},r={title:"Treueprogramm",subtitle:"Verdienen Sie beim Einkaufen",register_title:"Registrieren",registerDescription:"Ihr Zugang zu aufregenden Vorteilen und exklusiven Belohnungen.",registerButton:"Jetzt registrieren",haveAccount:"Haben Sie bereits ein Konto?",earnedPoints:"Verdiente Punkte",availablePoints:"Verfügbare Punkte",pendingPoints:"Bald verfügbar: {{points}}",logoAlt:"Logo"},i={waitingPeriod_one:"Deine gesammelten Punkte sind nach {{count}} Tag verfügbar.",waitingPeriod_other:"Deine gesammelten Punkte sind nach {{count}} Tagen verfügbar.",xPoints:"{{points}} Punkte",CUSTOMER_REGISTER:{title:"Konto erstellen"},CUSTOMER_REVIEW:{title:"Produkte bewerten"},ENABLE_SUBSCRIPTION:{title:"Kommunikation erlauben"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Punkte beim Einkaufen sammeln",description:"{{points}} Punkte für jede ausgegebene {{amount}}"},BASE:{title:"Bestellung aufgeben",descriptionStaticMinimum:"Bestellwert muss mindestens {{amount}} betragen.",descriptionStaticMaximum:"Bestellwert darf maximal {{amount}} betragen.",descriptionOnlyCategory:"Ein Produkt aus der Kategorie {{category}} muss hinzugefügt werden.",descriptionOnlyProduct:"Das Produkt {{product}} muss hinzugefügt werden.",descriptionOnlyBrand:"Ein Produkt der Marke {{brand}} muss hinzugefügt werden.",descriptionOnlyTag:"Ein Produkt mit dem Tag {{tag}} muss hinzugefügt werden.",genericCategory:"in der Kategorie {{category}}",genericProduct:"mit dem Produkt {{product}}",genericBrand:"der Marke {{brand}}",genericTag:"mit dem Tag {{tag}}",descriptionWithFilter:"{{filter}} eine Bestellung muss aufgegeben werden.",productFilterHeader:"Eine Bestellung mit den folgenden Produkten muss aufgegeben werden.",productAndConditionHeader:"Eine Bestellung, die die folgenden Bedingungen erfüllt und die folgenden Produkte enthält, muss aufgegeben werden."}},BUY_PRODUCT:{title:"Produkt kaufen",productFilterHeader:"Die folgenden Produkte müssen gekauft werden."},CUSTOMER_SEGMENT:{title:"Kundensegment"}},u={availableInDays_one:"In {{count}} Tag verfügbar",availableInDays_other:"In {{count}} Tagen verfügbar",availableInMinutes_one:"In {{count}} Minute verfügbar",availableInMinutes_other:"In {{count}} Minuten verfügbar",availableInHoursAndMinutes:"In {{hours}} {{minutes}} verfügbar",expiresInMinutes_one:"Verfällt in {{count}} Minute",expiresInMinutes_other:"Verfällt in {{count}} Minuten",expiresInHoursAndMinutes:"Verfällt in {{hours}} {{minutes}}",hours_one:"{{count}} Stunde",hours_other:"{{count}} Stunden",minutes_one:"{{count}} Minute",minutes_other:"{{count}} Minuten",expired:"Abgelaufen",expiresInDays_one:"Verfällt in {{count}} Tag",expiresInDays_other:"Verfällt in {{count}} Tagen",earnedTitle:"Punkte verdient",spentTitle:"Punkte ausgegeben",refundTitle:"Punkte storniert",refillTitle:"Punkte wiederhergestellt",manualEarnTitle:"Punkte hinzugefügt",manualDeductTitle:"Punkte entfernt",unknownTitle:"Punktebewegung",earningMethodLabels:{CUSTOMER_REGISTER:"Kontoerstellung",ENABLE_SUBSCRIPTION:"Kommunikationserlaubnis",CUSTOMER_REVIEW:"Produktbewertung",ORDER_CREATE:"Bestellung",BUY_PRODUCT:"Produktkauf",CUSTOMER_SEGMENT:"Kundensegment"},orderRefund:"Bestellung erstattet"},a={creditEarningMethods:"Methoden zum Punktesammeln",creditSpendingMethods:"Methoden zum Einlösen von Punkten",giftProductSelection:"Geschenkprodukt auswählen",creditHistory:"Punktestand",loyaltyLevel:"Stufen",loyaltyLevelScreen:{nextTierLabel:"Für die Stufe {{tierName}}",collectPoints:"Sammeln Sie {{points}} Punkte",afterEarning:"nach dem Verdienen von",reachNextTier:"Sammeln Sie noch {{points}} Punkte, um die Stufe {{tierName}} zu erreichen.",allTiersCompleted:"Sie haben alle Stufen abgeschlossen!",currentTierDescription:"Sie befinden sich aktuell in dieser Stufe.",otherTiers:"Weitere Stufen",multiplierDescription:"Punkte, die Sie beim Erreichen dieser Stufe verdienen, werden mit <0>{{multiplier}}x</0> multipliziert."}},o={description:"Hallo! 👋 Treten Sie unserem Treueprogramm bei und profitieren Sie von extra Rabatten beim Einkaufen!",descriptionLoggedIn:"Hallo! 👋 Sehen Sie Ihre Treuepunkte und erledigen Sie neue Aufgaben!",altText:"Treueprogramm Widget"},s={common:e,main_screen:n,spendingMethods:t,header:r,earningMethods:i,history:u,screens:a,miniMode:o};export{e as common,s as default,i as earningMethods,r as header,u as history,n as main_screen,o as miniMode,a as screens,t as spendingMethods};
|
|
1
|
+
var e={points:"Punkte",create:"Erstellen",allow:"Erlauben",use:"Benutzen",login:"Anmelden",convert:"Umwandeln",goToProduct:"Zum Produkt"},n={earningMethodsTitle:"Methoden zum Punktesammeln",spendingMethodsTitle:"Verfügbare Belohnungen",programInfoTitle:"Programminformationen",earnPoints:"Punkte sammeln",allRewards:"Alle Belohnungen",tiers:"Stufen",pointHistory:"Punktestand",faq:"Häufig gestellte Fragen",cartWarning:"Sie können Belohnungen nicht nutzen, ohne einen Warenkorb zu erstellen.",appliedDiscount:{fixedAmount:"{{amount}} Rabatt auf Ihren Warenkorb angewendet.",freeShipping:"Kostenloser Versand auf Ihren Warenkorb angewendet.",ratio:"{{amount}} Rabatt auf Ihren Warenkorb angewendet.",freeProduct:"Geschenkprodukt zu Ihrem Warenkorb hinzugefügt.",generic:"{{amount}} Rabatt auf Ihren Warenkorb angewendet.",remove:"Entfernen",goToCheckout:"Zur Kasse"}},t={minPointLimit:"Mindestens {{points}} Punkte können umgewandelt werden.",FIXED_AMOUNT:{title:"Betragsrabatt",dynamicTitle:"Dynamischer Betragsrabatt"},RATIO:{title:"Prozentualer Rabatt"},FREE_SHIPPING:{title:"Kostenloser Versand"},FREE_PRODUCT:{title:"Geschenkprodukt",description:"{{product}} wird kostenlos zum Warenkorb hinzugefügt.",groupedDescription:"{{minPoint}} ~ {{maxPoint}} Punkte",singleDescription:"{{points}} Punkte",selectGift:"Geschenk auswählen",addFree:"Gratis hinzufügen"}},r={title:"Treueprogramm",subtitle:"Verdienen Sie beim Einkaufen",register_title:"Registrieren",registerDescription:"Ihr Zugang zu aufregenden Vorteilen und exklusiven Belohnungen.",registerButton:"Jetzt registrieren",haveAccount:"Haben Sie bereits ein Konto?",earnedPoints:"Verdiente Punkte",availablePoints:"Verfügbare Punkte",pendingPoints:"Bald verfügbar: {{points}}",logoAlt:"Logo"},i={waitingPeriod_one:"Deine gesammelten Punkte sind nach {{count}} Tag verfügbar.",waitingPeriod_other:"Deine gesammelten Punkte sind nach {{count}} Tagen verfügbar.",xPoints:"{{points}} Punkte",CUSTOMER_REGISTER:{title:"Konto erstellen"},CUSTOMER_REVIEW:{title:"Produkte bewerten"},ENABLE_SUBSCRIPTION:{title:"Kommunikation erlauben"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Punkte beim Einkaufen sammeln",description:"{{points}} Punkte für jede ausgegebene {{amount}}"},BASE:{title:"Bestellung aufgeben",descriptionStaticMinimum:"Bestellwert muss mindestens {{amount}} betragen.",descriptionStaticMaximum:"Bestellwert darf maximal {{amount}} betragen.",descriptionOnlyCategory:"Ein Produkt aus der Kategorie {{category}} muss hinzugefügt werden.",descriptionOnlyProduct:"Das Produkt {{product}} muss hinzugefügt werden.",descriptionOnlyBrand:"Ein Produkt der Marke {{brand}} muss hinzugefügt werden.",descriptionOnlyTag:"Ein Produkt mit dem Tag {{tag}} muss hinzugefügt werden.",genericCategory:"in der Kategorie {{category}}",genericProduct:"mit dem Produkt {{product}}",genericBrand:"der Marke {{brand}}",genericTag:"mit dem Tag {{tag}}",descriptionWithFilter:"{{filter}} eine Bestellung muss aufgegeben werden.",productFilterHeader:"Eine Bestellung mit den folgenden Produkten muss aufgegeben werden.",productAndConditionHeader:"Eine Bestellung, die die folgenden Bedingungen erfüllt und die folgenden Produkte enthält, muss aufgegeben werden."}},BUY_PRODUCT:{title:"Produkt kaufen",productFilterHeader:"Die folgenden Produkte müssen gekauft werden."},CUSTOMER_SEGMENT:{title:"Kundensegment"}},u={availableInDays_one:"In {{count}} Tag verfügbar",availableInDays_other:"In {{count}} Tagen verfügbar",availableInMinutes_one:"In {{count}} Minute verfügbar",availableInMinutes_other:"In {{count}} Minuten verfügbar",availableInHoursAndMinutes:"In {{hours}} {{minutes}} verfügbar",expiresInMinutes_one:"Verfällt in {{count}} Minute",expiresInMinutes_other:"Verfällt in {{count}} Minuten",expiresInHoursAndMinutes:"Verfällt in {{hours}} {{minutes}}",hours_one:"{{count}} Stunde",hours_other:"{{count}} Stunden",minutes_one:"{{count}} Minute",minutes_other:"{{count}} Minuten",expired:"Abgelaufen",expiresInDays_one:"Verfällt in {{count}} Tag",expiresInDays_other:"Verfällt in {{count}} Tagen",earnedTitle:"Punkte verdient",spentTitle:"Punkte ausgegeben",refundTitle:"Punkte storniert",refillTitle:"Punkte wiederhergestellt",manualEarnTitle:"Punkte hinzugefügt",manualDeductTitle:"Punkte entfernt",unknownTitle:"Punktebewegung",earningMethodLabels:{CUSTOMER_REGISTER:"Kontoerstellung",ENABLE_SUBSCRIPTION:"Kommunikationserlaubnis",CUSTOMER_REVIEW:"Produktbewertung",ORDER_CREATE:"Bestellung",BUY_PRODUCT:"Produktkauf",CUSTOMER_SEGMENT:"Kundensegment"},orderRefund:"Bestellung erstattet"},a={creditEarningMethods:"Methoden zum Punktesammeln",creditSpendingMethods:"Methoden zum Einlösen von Punkten",giftProductSelection:"Geschenkprodukt auswählen",creditHistory:"Punktestand",loyaltyLevel:"Stufen",faq:"Häufig gestellte Fragen",loyaltyLevelScreen:{nextTierLabel:"Für die Stufe {{tierName}}",collectPoints:"Sammeln Sie {{points}} Punkte",afterEarning:"nach dem Verdienen von",reachNextTier:"Sammeln Sie noch {{points}} Punkte, um die Stufe {{tierName}} zu erreichen.",allTiersCompleted:"Sie haben alle Stufen abgeschlossen!",currentTierDescription:"Sie befinden sich aktuell in dieser Stufe.",otherTiers:"Weitere Stufen",multiplierDescription:"Punkte, die Sie beim Erreichen dieser Stufe verdienen, werden mit <0>{{multiplier}}x</0> multipliziert."}},o={description:"Hallo! 👋 Treten Sie unserem Treueprogramm bei und profitieren Sie von extra Rabatten beim Einkaufen!",descriptionLoggedIn:"Hallo! 👋 Sehen Sie Ihre Treuepunkte und erledigen Sie neue Aufgaben!",altText:"Treueprogramm Widget"},s={common:e,main_screen:n,spendingMethods:t,header:r,earningMethods:i,history:u,screens:a,miniMode:o};export{e as common,s as default,i as earningMethods,r as header,u as history,n as main_screen,o as miniMode,a as screens,t as spendingMethods};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={points:"Points",create:"Create",allow:"Allow",use:"Use",login:"Login",convert:"Convert",goToProduct:"Go to Product"},t={earningMethodsTitle:"Points Earning Methods",spendingMethodsTitle:"Rewards You Can Use",programInfoTitle:"Program Information",earnPoints:"Earn Points",allRewards:"All Rewards",tiers:"Tiers",pointHistory:"Points History",cartWarning:"You cannot use rewards without creating a cart.",appliedDiscount:{fixedAmount:"{{amount}} discount applied to your cart.",freeShipping:"Free shipping applied to your cart.",ratio:"{{amount}} discount applied to your cart.",freeProduct:"Gift product added to your cart.",generic:"{{amount}} discount applied to your cart.",remove:"Remove",goToCheckout:"Go to Checkout"}},i={minPointLimit:"At least {{points}} points can be converted.",FIXED_AMOUNT:{title:"Amount Discount",dynamicTitle:"Dynamic Amount Discount"},RATIO:{title:"Percentage Discount"},FREE_SHIPPING:{title:"Free Shipping"},FREE_PRODUCT:{title:"Gift Product",description:"{{product}} will be added to cart for free.",groupedDescription:"{{minPoint}} ~ {{maxPoint}} Points",singleDescription:"{{points}} Points",selectGift:"Select Gift",addFree:"Add Free"}},o={title:"Loyalty Program",subtitle:"Earn as You Spend",register_title:"Sign Up",registerDescription:"It is your pass to unlock exciting benefits and access exclusive rewards.",registerButton:"Register Now",haveAccount:"Already have an account?",earnedPoints:"Earned Points",availablePoints:"Available Points",pendingPoints:"Available soon: {{points}}",logoAlt:"Logo"},n={waitingPeriod_one:"The points you earn will be available after {{count}} day.",waitingPeriod_other:"The points you earn will be available after {{count}} days.",xPoints:"{{points}} Points",CUSTOMER_REGISTER:{title:"Create Account"},CUSTOMER_REVIEW:{title:"Review Products"},ENABLE_SUBSCRIPTION:{title:"Allow Communication"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Earn Points as You Spend",description:"{{points}} points for every {{amount}} spent"},BASE:{title:"Create Order",descriptionStaticMinimum:"Order amount must be at least {{amount}}.",descriptionStaticMaximum:"Order amount must be at most {{amount}}.",descriptionOnlyCategory:"A product from {{category}} category must be added to order.",descriptionOnlyProduct:"The product {{product}} must be added to order.",descriptionOnlyBrand:"A product from {{brand}} brand must be added to order.",descriptionOnlyTag:"A product with {{tag}} tag must be added to order.",genericCategory:"in {{category}} category",genericProduct:"containing {{product}} product",genericBrand:"in {{brand}} brand",genericTag:"in {{tag}} tag",descriptionWithFilter:"{{filter}} an order must be created.",productFilterHeader:"An order containing the following products must be placed.",productAndConditionHeader:"An order meeting the following conditions and containing the following products must be placed."}},BUY_PRODUCT:{title:"Buy Product",productFilterHeader:"The following products must be purchased."},CUSTOMER_SEGMENT:{title:"Customer Segment"}},r={availableInDays_one:"Available in {{count}} day",availableInDays_other:"Available in {{count}} days",availableInMinutes_one:"Available in {{count}} minute",availableInMinutes_other:"Available in {{count}} minutes",availableInHoursAndMinutes:"Available in {{hours}} {{minutes}}",expiresInMinutes_one:"Expires in {{count}} minute",expiresInMinutes_other:"Expires in {{count}} minutes",expiresInHoursAndMinutes:"Expires in {{hours}} {{minutes}}",hours_one:"{{count}} hour",hours_other:"{{count}} hours",minutes_one:"{{count}} minute",minutes_other:"{{count}} minutes",expired:"Expired",expiresInDays_one:"Expires in {{count}} day",expiresInDays_other:"Expires in {{count}} days",earnedTitle:"Points Earned",spentTitle:"Points Spent",refundTitle:"Points Cancelled",refillTitle:"Points Restored",manualEarnTitle:"Points Added",manualDeductTitle:"Points Removed",unknownTitle:"Points Activity",earningMethodLabels:{CUSTOMER_REGISTER:"Account Creation",ENABLE_SUBSCRIPTION:"Communication Permission",CUSTOMER_REVIEW:"Product Review",ORDER_CREATE:"Order",BUY_PRODUCT:"Product Purchase",CUSTOMER_SEGMENT:"Customer Segment"},orderRefund:"Order Refunded"},a={creditEarningMethods:"Points Earning Methods",creditSpendingMethods:"Points Spending Methods",giftProductSelection:"Select Gift Product",creditHistory:"Points History",loyaltyLevel:"Tiers",loyaltyLevelScreen:{nextTierLabel:"For the {{tierName}} tier",collectPoints:"Collect {{points}} points",afterEarning:"after earning",reachNextTier:"Collect {{points}} more points to reach {{tierName}} tier.",allTiersCompleted:"You have completed all tiers!",currentTierDescription:"You are currently in this tier.",otherTiers:"Other Tiers",multiplierDescription:"Points earned when you move to this tier are multiplied by <0>{{multiplier}}x</0>."}},s={description:"Hello! 👋 Join our loyalty program, benefit from extra discounts as you spend!",descriptionLoggedIn:"Hello! 👋 View your loyalty points and complete new tasks!",altText:"Loyalty Widget"},d={common:e,main_screen:t,spendingMethods:i,header:o,earningMethods:n,history:r,screens:a,miniMode:s};export{e as common,d as default,n as earningMethods,o as header,r as history,t as main_screen,s as miniMode,a as screens,i as spendingMethods};
|
|
1
|
+
var e={points:"Points",create:"Create",allow:"Allow",use:"Use",login:"Login",convert:"Convert",goToProduct:"Go to Product"},t={earningMethodsTitle:"Points Earning Methods",spendingMethodsTitle:"Rewards You Can Use",programInfoTitle:"Program Information",earnPoints:"Earn Points",allRewards:"All Rewards",tiers:"Tiers",pointHistory:"Points History",faq:"Frequently Asked Questions",cartWarning:"You cannot use rewards without creating a cart.",appliedDiscount:{fixedAmount:"{{amount}} discount applied to your cart.",freeShipping:"Free shipping applied to your cart.",ratio:"{{amount}} discount applied to your cart.",freeProduct:"Gift product added to your cart.",generic:"{{amount}} discount applied to your cart.",remove:"Remove",goToCheckout:"Go to Checkout"}},i={minPointLimit:"At least {{points}} points can be converted.",FIXED_AMOUNT:{title:"Amount Discount",dynamicTitle:"Dynamic Amount Discount"},RATIO:{title:"Percentage Discount"},FREE_SHIPPING:{title:"Free Shipping"},FREE_PRODUCT:{title:"Gift Product",description:"{{product}} will be added to cart for free.",groupedDescription:"{{minPoint}} ~ {{maxPoint}} Points",singleDescription:"{{points}} Points",selectGift:"Select Gift",addFree:"Add Free"}},o={title:"Loyalty Program",subtitle:"Earn as You Spend",register_title:"Sign Up",registerDescription:"It is your pass to unlock exciting benefits and access exclusive rewards.",registerButton:"Register Now",haveAccount:"Already have an account?",earnedPoints:"Earned Points",availablePoints:"Available Points",pendingPoints:"Available soon: {{points}}",logoAlt:"Logo"},n={waitingPeriod_one:"The points you earn will be available after {{count}} day.",waitingPeriod_other:"The points you earn will be available after {{count}} days.",xPoints:"{{points}} Points",CUSTOMER_REGISTER:{title:"Create Account"},CUSTOMER_REVIEW:{title:"Review Products"},ENABLE_SUBSCRIPTION:{title:"Allow Communication"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Earn Points as You Spend",description:"{{points}} points for every {{amount}} spent"},BASE:{title:"Create Order",descriptionStaticMinimum:"Order amount must be at least {{amount}}.",descriptionStaticMaximum:"Order amount must be at most {{amount}}.",descriptionOnlyCategory:"A product from {{category}} category must be added to order.",descriptionOnlyProduct:"The product {{product}} must be added to order.",descriptionOnlyBrand:"A product from {{brand}} brand must be added to order.",descriptionOnlyTag:"A product with {{tag}} tag must be added to order.",genericCategory:"in {{category}} category",genericProduct:"containing {{product}} product",genericBrand:"in {{brand}} brand",genericTag:"in {{tag}} tag",descriptionWithFilter:"{{filter}} an order must be created.",productFilterHeader:"An order containing the following products must be placed.",productAndConditionHeader:"An order meeting the following conditions and containing the following products must be placed."}},BUY_PRODUCT:{title:"Buy Product",productFilterHeader:"The following products must be purchased."},CUSTOMER_SEGMENT:{title:"Customer Segment"}},r={availableInDays_one:"Available in {{count}} day",availableInDays_other:"Available in {{count}} days",availableInMinutes_one:"Available in {{count}} minute",availableInMinutes_other:"Available in {{count}} minutes",availableInHoursAndMinutes:"Available in {{hours}} {{minutes}}",expiresInMinutes_one:"Expires in {{count}} minute",expiresInMinutes_other:"Expires in {{count}} minutes",expiresInHoursAndMinutes:"Expires in {{hours}} {{minutes}}",hours_one:"{{count}} hour",hours_other:"{{count}} hours",minutes_one:"{{count}} minute",minutes_other:"{{count}} minutes",expired:"Expired",expiresInDays_one:"Expires in {{count}} day",expiresInDays_other:"Expires in {{count}} days",earnedTitle:"Points Earned",spentTitle:"Points Spent",refundTitle:"Points Cancelled",refillTitle:"Points Restored",manualEarnTitle:"Points Added",manualDeductTitle:"Points Removed",unknownTitle:"Points Activity",earningMethodLabels:{CUSTOMER_REGISTER:"Account Creation",ENABLE_SUBSCRIPTION:"Communication Permission",CUSTOMER_REVIEW:"Product Review",ORDER_CREATE:"Order",BUY_PRODUCT:"Product Purchase",CUSTOMER_SEGMENT:"Customer Segment"},orderRefund:"Order Refunded"},a={creditEarningMethods:"Points Earning Methods",creditSpendingMethods:"Points Spending Methods",giftProductSelection:"Select Gift Product",creditHistory:"Points History",loyaltyLevel:"Tiers",faq:"Frequently Asked Questions",loyaltyLevelScreen:{nextTierLabel:"For the {{tierName}} tier",collectPoints:"Collect {{points}} points",afterEarning:"after earning",reachNextTier:"Collect {{points}} more points to reach {{tierName}} tier.",allTiersCompleted:"You have completed all tiers!",currentTierDescription:"You are currently in this tier.",otherTiers:"Other Tiers",multiplierDescription:"Points earned when you move to this tier are multiplied by <0>{{multiplier}}x</0>."}},s={description:"Hello! 👋 Join our loyalty program, benefit from extra discounts as you spend!",descriptionLoggedIn:"Hello! 👋 View your loyalty points and complete new tasks!",altText:"Loyalty Widget"},d={common:e,main_screen:t,spendingMethods:i,header:o,earningMethods:n,history:r,screens:a,miniMode:s};export{e as common,d as default,n as earningMethods,o as header,r as history,t as main_screen,s as miniMode,a as screens,i as spendingMethods};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={points:"Points",create:"Créer",allow:"Autoriser",use:"Utiliser",login:"Connexion",convert:"Convertir",goToProduct:"Voir le produit"},t={earningMethodsTitle:"Méthodes pour gagner des points",spendingMethodsTitle:"Récompenses utilisables",programInfoTitle:"Informations du programme",earnPoints:"Gagner des points",allRewards:"Toutes les récompenses",tiers:"Niveaux",pointHistory:"Historique des points",cartWarning:"Vous ne pouvez pas utiliser de récompenses sans créer de panier.",appliedDiscount:{fixedAmount:"{{amount}} de réduction appliquée à votre panier.",freeShipping:"Livraison gratuite appliquée à votre panier.",ratio:"{{amount}} de réduction appliquée à votre panier.",freeProduct:"Produit cadeau ajouté à votre panier.",generic:"{{amount}} de réduction appliquée à votre panier.",remove:"Retirer",goToCheckout:"Aller au paiement"}},i={minPointLimit:"Au moins {{points}} points peuvent être convertis.",FIXED_AMOUNT:{title:"Réduction de montant",dynamicTitle:"Réduction de montant dynamique"},RATIO:{title:"Réduction en pourcentage"},FREE_SHIPPING:{title:"Livraison gratuite"},FREE_PRODUCT:{title:"Produit cadeau",description:"{{product}} sera ajouté gratuitement au panier.",groupedDescription:"{{minPoint}} ~ {{maxPoint}} Points",singleDescription:"{{points}} Points",selectGift:"Choisir le cadeau",addFree:"Ajouter gratuitement"}},n={title:"Programme de fidélité",subtitle:"Gagnez en dépensant",register_title:"Inscrivez-vous",registerDescription:"C'est votre passe pour débloquer des avantages passionnants et accéder à des récompenses exclusives.",registerButton:"S'inscrire maintenant",haveAccount:"Vous avez déjà un compte ?",earnedPoints:"Points gagnés",availablePoints:"Points disponibles",pendingPoints:"Bientôt disponibles : {{points}}",logoAlt:"Logo"},o={waitingPeriod_one:"Les points gagnés seront disponibles après {{count}} jour.",waitingPeriod_other:"Les points gagnés seront disponibles après {{count}} jours.",xPoints:"{{points}} Points",CUSTOMER_REGISTER:{title:"Créer un compte"},CUSTOMER_REVIEW:{title:"Évaluer les produits"},ENABLE_SUBSCRIPTION:{title:"Autoriser la communication"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Gagnez des points en dépensant",description:"{{points}} points pour chaque {{amount}} dépensé"},BASE:{title:"Créer une commande",descriptionStaticMinimum:"Le montant de la commande doit être d'au moins {{amount}}.",descriptionStaticMaximum:"Le montant de la commande doit être d'au plus {{amount}}.",descriptionOnlyCategory:"Un produit de la catégorie {{category}} doit être ajouté.",descriptionOnlyProduct:"Le produit {{product}} doit être ajouté.",descriptionOnlyBrand:"Un produit de la marque {{brand}} doit être ajouté.",descriptionOnlyTag:"Un produit avec l'étiquette {{tag}} doit être ajouté.",genericCategory:"dans la catégorie {{category}}",genericProduct:"contenant le produit {{product}}",genericBrand:"de la marque {{brand}}",genericTag:"avec l'étiquette {{tag}}",descriptionWithFilter:"{{filter}} une commande doit être créée.",productFilterHeader:"Une commande contenant les produits suivants doit être passée.",productAndConditionHeader:"Une commande respectant les conditions suivantes et contenant les produits suivants doit être passée."}},BUY_PRODUCT:{title:"Acheter un produit",productFilterHeader:"Les produits suivants doivent être achetés."},CUSTOMER_SEGMENT:{title:"Segment client"}},s={availableInDays_one:"Disponibles dans {{count}} jour",availableInDays_other:"Disponibles dans {{count}} jours",availableInMinutes_one:"Disponibles dans {{count}} minute",availableInMinutes_other:"Disponibles dans {{count}} minutes",availableInHoursAndMinutes:"Disponibles dans {{hours}} {{minutes}}",expiresInMinutes_one:"Expire dans {{count}} minute",expiresInMinutes_other:"Expire dans {{count}} minutes",expiresInHoursAndMinutes:"Expire dans {{hours}} {{minutes}}",hours_one:"{{count}} heure",hours_other:"{{count}} heures",minutes_one:"{{count}} minute",minutes_other:"{{count}} minutes",expired:"Expiré",expiresInDays_one:"Expire dans {{count}} jour",expiresInDays_other:"Expire dans {{count}} jours",earnedTitle:"Points gagnés",spentTitle:"Points dépensés",refundTitle:"Points annulés",refillTitle:"Points restaurés",manualEarnTitle:"Points ajoutés",manualDeductTitle:"Points retirés",unknownTitle:"Mouvement de points",earningMethodLabels:{CUSTOMER_REGISTER:"Création de compte",ENABLE_SUBSCRIPTION:"Autorisation de communication",CUSTOMER_REVIEW:"Avis produit",ORDER_CREATE:"Commande",BUY_PRODUCT:"Achat de produit",CUSTOMER_SEGMENT:"Segment client"},orderRefund:"Commande remboursée"},r={creditEarningMethods:"Méthodes pour gagner des points",creditSpendingMethods:"Méthodes pour dépenser des points",giftProductSelection:"Choisir un produit cadeau",creditHistory:"Historique des points",loyaltyLevel:"Niveaux",loyaltyLevelScreen:{nextTierLabel:"Pour le niveau {{tierName}}",collectPoints:"Collectez {{points}} points",afterEarning:"après avoir gagné",reachNextTier:"Collectez {{points}} points supplémentaires pour atteindre le niveau {{tierName}}.",allTiersCompleted:"Vous avez complété tous les niveaux !",currentTierDescription:"Vous êtes actuellement à ce niveau.",otherTiers:"Autres niveaux",multiplierDescription:"Les points gagnés lorsque vous atteignez ce niveau sont multipliés par <0>{{multiplier}}x</0>."}},a={description:"Bonjour ! 👋 Rejoignez notre programme de fidélité, bénéficiez de réductions supplémentaires en dépensant !",descriptionLoggedIn:"Bonjour ! 👋 Consultez vos points de fidélité et accomplissez de nouvelles missions !",altText:"Programme de fidélité"},u={common:e,main_screen:t,spendingMethods:i,header:n,earningMethods:o,history:s,screens:r,miniMode:a};export{e as common,u as default,o as earningMethods,n as header,s as history,t as main_screen,a as miniMode,r as screens,i as spendingMethods};
|
|
1
|
+
var e={points:"Points",create:"Créer",allow:"Autoriser",use:"Utiliser",login:"Connexion",convert:"Convertir",goToProduct:"Voir le produit"},t={earningMethodsTitle:"Méthodes pour gagner des points",spendingMethodsTitle:"Récompenses utilisables",programInfoTitle:"Informations du programme",earnPoints:"Gagner des points",allRewards:"Toutes les récompenses",tiers:"Niveaux",pointHistory:"Historique des points",faq:"Questions fréquentes",cartWarning:"Vous ne pouvez pas utiliser de récompenses sans créer de panier.",appliedDiscount:{fixedAmount:"{{amount}} de réduction appliquée à votre panier.",freeShipping:"Livraison gratuite appliquée à votre panier.",ratio:"{{amount}} de réduction appliquée à votre panier.",freeProduct:"Produit cadeau ajouté à votre panier.",generic:"{{amount}} de réduction appliquée à votre panier.",remove:"Retirer",goToCheckout:"Aller au paiement"}},i={minPointLimit:"Au moins {{points}} points peuvent être convertis.",FIXED_AMOUNT:{title:"Réduction de montant",dynamicTitle:"Réduction de montant dynamique"},RATIO:{title:"Réduction en pourcentage"},FREE_SHIPPING:{title:"Livraison gratuite"},FREE_PRODUCT:{title:"Produit cadeau",description:"{{product}} sera ajouté gratuitement au panier.",groupedDescription:"{{minPoint}} ~ {{maxPoint}} Points",singleDescription:"{{points}} Points",selectGift:"Choisir le cadeau",addFree:"Ajouter gratuitement"}},n={title:"Programme de fidélité",subtitle:"Gagnez en dépensant",register_title:"Inscrivez-vous",registerDescription:"C'est votre passe pour débloquer des avantages passionnants et accéder à des récompenses exclusives.",registerButton:"S'inscrire maintenant",haveAccount:"Vous avez déjà un compte ?",earnedPoints:"Points gagnés",availablePoints:"Points disponibles",pendingPoints:"Bientôt disponibles : {{points}}",logoAlt:"Logo"},o={waitingPeriod_one:"Les points gagnés seront disponibles après {{count}} jour.",waitingPeriod_other:"Les points gagnés seront disponibles après {{count}} jours.",xPoints:"{{points}} Points",CUSTOMER_REGISTER:{title:"Créer un compte"},CUSTOMER_REVIEW:{title:"Évaluer les produits"},ENABLE_SUBSCRIPTION:{title:"Autoriser la communication"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Gagnez des points en dépensant",description:"{{points}} points pour chaque {{amount}} dépensé"},BASE:{title:"Créer une commande",descriptionStaticMinimum:"Le montant de la commande doit être d'au moins {{amount}}.",descriptionStaticMaximum:"Le montant de la commande doit être d'au plus {{amount}}.",descriptionOnlyCategory:"Un produit de la catégorie {{category}} doit être ajouté.",descriptionOnlyProduct:"Le produit {{product}} doit être ajouté.",descriptionOnlyBrand:"Un produit de la marque {{brand}} doit être ajouté.",descriptionOnlyTag:"Un produit avec l'étiquette {{tag}} doit être ajouté.",genericCategory:"dans la catégorie {{category}}",genericProduct:"contenant le produit {{product}}",genericBrand:"de la marque {{brand}}",genericTag:"avec l'étiquette {{tag}}",descriptionWithFilter:"{{filter}} une commande doit être créée.",productFilterHeader:"Une commande contenant les produits suivants doit être passée.",productAndConditionHeader:"Une commande respectant les conditions suivantes et contenant les produits suivants doit être passée."}},BUY_PRODUCT:{title:"Acheter un produit",productFilterHeader:"Les produits suivants doivent être achetés."},CUSTOMER_SEGMENT:{title:"Segment client"}},s={availableInDays_one:"Disponibles dans {{count}} jour",availableInDays_other:"Disponibles dans {{count}} jours",availableInMinutes_one:"Disponibles dans {{count}} minute",availableInMinutes_other:"Disponibles dans {{count}} minutes",availableInHoursAndMinutes:"Disponibles dans {{hours}} {{minutes}}",expiresInMinutes_one:"Expire dans {{count}} minute",expiresInMinutes_other:"Expire dans {{count}} minutes",expiresInHoursAndMinutes:"Expire dans {{hours}} {{minutes}}",hours_one:"{{count}} heure",hours_other:"{{count}} heures",minutes_one:"{{count}} minute",minutes_other:"{{count}} minutes",expired:"Expiré",expiresInDays_one:"Expire dans {{count}} jour",expiresInDays_other:"Expire dans {{count}} jours",earnedTitle:"Points gagnés",spentTitle:"Points dépensés",refundTitle:"Points annulés",refillTitle:"Points restaurés",manualEarnTitle:"Points ajoutés",manualDeductTitle:"Points retirés",unknownTitle:"Mouvement de points",earningMethodLabels:{CUSTOMER_REGISTER:"Création de compte",ENABLE_SUBSCRIPTION:"Autorisation de communication",CUSTOMER_REVIEW:"Avis produit",ORDER_CREATE:"Commande",BUY_PRODUCT:"Achat de produit",CUSTOMER_SEGMENT:"Segment client"},orderRefund:"Commande remboursée"},r={creditEarningMethods:"Méthodes pour gagner des points",creditSpendingMethods:"Méthodes pour dépenser des points",giftProductSelection:"Choisir un produit cadeau",creditHistory:"Historique des points",loyaltyLevel:"Niveaux",faq:"Questions fréquentes",loyaltyLevelScreen:{nextTierLabel:"Pour le niveau {{tierName}}",collectPoints:"Collectez {{points}} points",afterEarning:"après avoir gagné",reachNextTier:"Collectez {{points}} points supplémentaires pour atteindre le niveau {{tierName}}.",allTiersCompleted:"Vous avez complété tous les niveaux !",currentTierDescription:"Vous êtes actuellement à ce niveau.",otherTiers:"Autres niveaux",multiplierDescription:"Les points gagnés lorsque vous atteignez ce niveau sont multipliés par <0>{{multiplier}}x</0>."}},a={description:"Bonjour ! 👋 Rejoignez notre programme de fidélité, bénéficiez de réductions supplémentaires en dépensant !",descriptionLoggedIn:"Bonjour ! 👋 Consultez vos points de fidélité et accomplissez de nouvelles missions !",altText:"Programme de fidélité"},u={common:e,main_screen:t,spendingMethods:i,header:n,earningMethods:o,history:s,screens:r,miniMode:a};export{e as common,u as default,o as earningMethods,n as header,s as history,t as main_screen,a as miniMode,r as screens,i as spendingMethods};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={points:"Punten",create:"Aanmaken",allow:"Toestaan",use:"Gebruiken",login:"Inloggen",convert:"Omzetten",goToProduct:"Naar product"},n={earningMethodsTitle:"Manieren om punten te verdienen",spendingMethodsTitle:"Beschikbare beloningen",programInfoTitle:"Programma-informatie",earnPoints:"Punten verdienen",allRewards:"Alle beloningen",tiers:"Niveaus",pointHistory:"Puntengeschiedenis",cartWarning:"U kunt geen beloningen gebruiken zonder een winkelwagen aan te maken.",appliedDiscount:{fixedAmount:"{{amount}} korting toegepast op uw winkelwagen.",freeShipping:"Gratis verzending toegepast op uw winkelwagen.",ratio:"{{amount}} korting toegepast op uw winkelwagen.",freeProduct:"Cadeauproduct toegevoegd aan uw winkelwagen.",generic:"{{amount}} korting toegepast op uw winkelwagen.",remove:"Verwijderen",goToCheckout:"Naar afrekenen"}},t={minPointLimit:"Er kunnen minimaal {{points}} punten worden omgezet.",FIXED_AMOUNT:{title:"Bedragkorting",dynamicTitle:"Dynamische bedragkorting"},RATIO:{title:"Percentagekorting"},FREE_SHIPPING:{title:"Gratis verzending"},FREE_PRODUCT:{title:"Cadeauproduct",description:"{{product}} wordt gratis aan de winkelwagen toegevoegd.",groupedDescription:"{{minPoint}} ~ {{maxPoint}} Punten",singleDescription:"{{points}} Punten",selectGift:"Cadeau selecteren",addFree:"Gratis toevoegen"}},i={title:"Loyaliteitsprogramma",subtitle:"Verdien terwijl u uitgeeft",register_title:"Aanmelden",registerDescription:"Het is uw toegang tot spannende voordelen en exclusieve beloningen.",registerButton:"Nu registreren",haveAccount:"Heeft u al een account?",earnedPoints:"Verdiende punten",availablePoints:"Beschikbare punten",pendingPoints:"Binnenkort beschikbaar: {{points}}",logoAlt:"Logo"},o={waitingPeriod_one:"Je verdiende punten zijn na {{count}} dag beschikbaar.",waitingPeriod_other:"Je verdiende punten zijn na {{count}} dagen beschikbaar.",xPoints:"{{points}} Punten",CUSTOMER_REGISTER:{title:"Account aanmaken"},CUSTOMER_REVIEW:{title:"Producten beoordelen"},ENABLE_SUBSCRIPTION:{title:"Communicatie toestaan"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Punten verdienen bij uitgaven",description:"{{points}} punten voor elke bestede {{amount}}"},BASE:{title:"Bestelling plaatsen",descriptionStaticMinimum:"Bestelbedrag moet minimaal {{amount}} zijn.",descriptionStaticMaximum:"Bestelbedrag mag maximaal {{amount}} zijn.",descriptionOnlyCategory:"Een product uit categorie {{category}} moet worden toegevoegd.",descriptionOnlyProduct:"Het product {{product}} moet worden toegevoegd.",descriptionOnlyBrand:"Een product van het merk {{brand}} moet worden toegevoegd.",descriptionOnlyTag:"Een product met de tag {{tag}} moet worden toegevoegd.",genericCategory:"in categorie {{category}}",genericProduct:"met product {{product}}",genericBrand:"van merk {{brand}}",genericTag:"met tag {{tag}}",descriptionWithFilter:"{{filter}} een bestelling moet worden aangemaakt.",productFilterHeader:"Een bestelling met de volgende producten moet worden geplaatst.",productAndConditionHeader:"Een bestelling die aan de volgende voorwaarden voldoet en de volgende producten bevat, moet worden geplaatst."}},BUY_PRODUCT:{title:"Product kopen",productFilterHeader:"De volgende producten moeten worden gekocht."},CUSTOMER_SEGMENT:{title:"Klantsegment"}},r={availableInDays_one:"Beschikbaar over {{count}} dag",availableInDays_other:"Beschikbaar over {{count}} dagen",availableInMinutes_one:"Beschikbaar over {{count}} minuut",availableInMinutes_other:"Beschikbaar over {{count}} minuten",availableInHoursAndMinutes:"Beschikbaar over {{hours}} {{minutes}}",expiresInMinutes_one:"Verloopt over {{count}} minuut",expiresInMinutes_other:"Verloopt over {{count}} minuten",expiresInHoursAndMinutes:"Verloopt over {{hours}} {{minutes}}",hours_one:"{{count}} uur",hours_other:"{{count}} uur",minutes_one:"{{count}} minuut",minutes_other:"{{count}} minuten",expired:"Verlopen",expiresInDays_one:"Verloopt over {{count}} dag",expiresInDays_other:"Verloopt over {{count}} dagen",earnedTitle:"Punten verdiend",spentTitle:"Punten uitgegeven",refundTitle:"Punten geannuleerd",refillTitle:"Punten hersteld",manualEarnTitle:"Punten toegevoegd",manualDeductTitle:"Punten verwijderd",unknownTitle:"Puntenbeweging",earningMethodLabels:{CUSTOMER_REGISTER:"Account aanmaken",ENABLE_SUBSCRIPTION:"Communicatietoestemming",CUSTOMER_REVIEW:"Productbeoordeling",ORDER_CREATE:"Bestelling",BUY_PRODUCT:"Product aankoop",CUSTOMER_SEGMENT:"Klantsegment"},orderRefund:"Bestelling terugbetaald"},a={creditEarningMethods:"Manieren om punten te verdienen",creditSpendingMethods:"Manieren om punten uit te geven",giftProductSelection:"Cadeauproduct selecteren",creditHistory:"Puntengeschiedenis",loyaltyLevel:"Niveaus",loyaltyLevelScreen:{nextTierLabel:"Voor niveau {{tierName}}",collectPoints:"Verzamel {{points}} punten",afterEarning:"na het verdienen van",reachNextTier:"Verzamel nog {{points}} punten om niveau {{tierName}} te bereiken.",allTiersCompleted:"U heeft alle niveaus voltooid!",currentTierDescription:"U bevindt zich momenteel in dit niveau.",otherTiers:"Andere niveaus",multiplierDescription:"Punten verdiend bij het bereiken van dit niveau worden vermenigvuldigd met <0>{{multiplier}}x</0>."}},d={description:"Hallo! 👋 Word lid van ons loyaliteitsprogramma, profiteer van extra kortingen terwijl u uitgeeft!",descriptionLoggedIn:"Hallo! 👋 Bekijk uw loyaliteitspunten en voltooi nieuwe taken!",altText:"Loyaliteitsprogramma Widget"},u={common:e,main_screen:n,spendingMethods:t,header:i,earningMethods:o,history:r,screens:a,miniMode:d};export{e as common,u as default,o as earningMethods,i as header,r as history,n as main_screen,d as miniMode,a as screens,t as spendingMethods};
|
|
1
|
+
var e={points:"Punten",create:"Aanmaken",allow:"Toestaan",use:"Gebruiken",login:"Inloggen",convert:"Omzetten",goToProduct:"Naar product"},n={earningMethodsTitle:"Manieren om punten te verdienen",spendingMethodsTitle:"Beschikbare beloningen",programInfoTitle:"Programma-informatie",earnPoints:"Punten verdienen",allRewards:"Alle beloningen",tiers:"Niveaus",pointHistory:"Puntengeschiedenis",faq:"Veelgestelde vragen",cartWarning:"U kunt geen beloningen gebruiken zonder een winkelwagen aan te maken.",appliedDiscount:{fixedAmount:"{{amount}} korting toegepast op uw winkelwagen.",freeShipping:"Gratis verzending toegepast op uw winkelwagen.",ratio:"{{amount}} korting toegepast op uw winkelwagen.",freeProduct:"Cadeauproduct toegevoegd aan uw winkelwagen.",generic:"{{amount}} korting toegepast op uw winkelwagen.",remove:"Verwijderen",goToCheckout:"Naar afrekenen"}},t={minPointLimit:"Er kunnen minimaal {{points}} punten worden omgezet.",FIXED_AMOUNT:{title:"Bedragkorting",dynamicTitle:"Dynamische bedragkorting"},RATIO:{title:"Percentagekorting"},FREE_SHIPPING:{title:"Gratis verzending"},FREE_PRODUCT:{title:"Cadeauproduct",description:"{{product}} wordt gratis aan de winkelwagen toegevoegd.",groupedDescription:"{{minPoint}} ~ {{maxPoint}} Punten",singleDescription:"{{points}} Punten",selectGift:"Cadeau selecteren",addFree:"Gratis toevoegen"}},i={title:"Loyaliteitsprogramma",subtitle:"Verdien terwijl u uitgeeft",register_title:"Aanmelden",registerDescription:"Het is uw toegang tot spannende voordelen en exclusieve beloningen.",registerButton:"Nu registreren",haveAccount:"Heeft u al een account?",earnedPoints:"Verdiende punten",availablePoints:"Beschikbare punten",pendingPoints:"Binnenkort beschikbaar: {{points}}",logoAlt:"Logo"},o={waitingPeriod_one:"Je verdiende punten zijn na {{count}} dag beschikbaar.",waitingPeriod_other:"Je verdiende punten zijn na {{count}} dagen beschikbaar.",xPoints:"{{points}} Punten",CUSTOMER_REGISTER:{title:"Account aanmaken"},CUSTOMER_REVIEW:{title:"Producten beoordelen"},ENABLE_SUBSCRIPTION:{title:"Communicatie toestaan"},ORDER_CREATE:{RECEIVE_POINTS_ON_SPEND:{title:"Punten verdienen bij uitgaven",description:"{{points}} punten voor elke bestede {{amount}}"},BASE:{title:"Bestelling plaatsen",descriptionStaticMinimum:"Bestelbedrag moet minimaal {{amount}} zijn.",descriptionStaticMaximum:"Bestelbedrag mag maximaal {{amount}} zijn.",descriptionOnlyCategory:"Een product uit categorie {{category}} moet worden toegevoegd.",descriptionOnlyProduct:"Het product {{product}} moet worden toegevoegd.",descriptionOnlyBrand:"Een product van het merk {{brand}} moet worden toegevoegd.",descriptionOnlyTag:"Een product met de tag {{tag}} moet worden toegevoegd.",genericCategory:"in categorie {{category}}",genericProduct:"met product {{product}}",genericBrand:"van merk {{brand}}",genericTag:"met tag {{tag}}",descriptionWithFilter:"{{filter}} een bestelling moet worden aangemaakt.",productFilterHeader:"Een bestelling met de volgende producten moet worden geplaatst.",productAndConditionHeader:"Een bestelling die aan de volgende voorwaarden voldoet en de volgende producten bevat, moet worden geplaatst."}},BUY_PRODUCT:{title:"Product kopen",productFilterHeader:"De volgende producten moeten worden gekocht."},CUSTOMER_SEGMENT:{title:"Klantsegment"}},r={availableInDays_one:"Beschikbaar over {{count}} dag",availableInDays_other:"Beschikbaar over {{count}} dagen",availableInMinutes_one:"Beschikbaar over {{count}} minuut",availableInMinutes_other:"Beschikbaar over {{count}} minuten",availableInHoursAndMinutes:"Beschikbaar over {{hours}} {{minutes}}",expiresInMinutes_one:"Verloopt over {{count}} minuut",expiresInMinutes_other:"Verloopt over {{count}} minuten",expiresInHoursAndMinutes:"Verloopt over {{hours}} {{minutes}}",hours_one:"{{count}} uur",hours_other:"{{count}} uur",minutes_one:"{{count}} minuut",minutes_other:"{{count}} minuten",expired:"Verlopen",expiresInDays_one:"Verloopt over {{count}} dag",expiresInDays_other:"Verloopt over {{count}} dagen",earnedTitle:"Punten verdiend",spentTitle:"Punten uitgegeven",refundTitle:"Punten geannuleerd",refillTitle:"Punten hersteld",manualEarnTitle:"Punten toegevoegd",manualDeductTitle:"Punten verwijderd",unknownTitle:"Puntenbeweging",earningMethodLabels:{CUSTOMER_REGISTER:"Account aanmaken",ENABLE_SUBSCRIPTION:"Communicatietoestemming",CUSTOMER_REVIEW:"Productbeoordeling",ORDER_CREATE:"Bestelling",BUY_PRODUCT:"Product aankoop",CUSTOMER_SEGMENT:"Klantsegment"},orderRefund:"Bestelling terugbetaald"},a={creditEarningMethods:"Manieren om punten te verdienen",creditSpendingMethods:"Manieren om punten uit te geven",giftProductSelection:"Cadeauproduct selecteren",creditHistory:"Puntengeschiedenis",loyaltyLevel:"Niveaus",faq:"Veelgestelde vragen",loyaltyLevelScreen:{nextTierLabel:"Voor niveau {{tierName}}",collectPoints:"Verzamel {{points}} punten",afterEarning:"na het verdienen van",reachNextTier:"Verzamel nog {{points}} punten om niveau {{tierName}} te bereiken.",allTiersCompleted:"U heeft alle niveaus voltooid!",currentTierDescription:"U bevindt zich momenteel in dit niveau.",otherTiers:"Andere niveaus",multiplierDescription:"Punten verdiend bij het bereiken van dit niveau worden vermenigvuldigd met <0>{{multiplier}}x</0>."}},d={description:"Hallo! 👋 Word lid van ons loyaliteitsprogramma, profiteer van extra kortingen terwijl u uitgeeft!",descriptionLoggedIn:"Hallo! 👋 Bekijk uw loyaliteitspunten en voltooi nieuwe taken!",altText:"Loyaliteitsprogramma Widget"},u={common:e,main_screen:n,spendingMethods:t,header:i,earningMethods:o,history:r,screens:a,miniMode:d};export{e as common,u as default,o as earningMethods,i as header,r as history,n as main_screen,d as miniMode,a as screens,t as spendingMethods};
|