@assaabloy/amarr-wc-order-success 1.0.2
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/LICENSE.md +21 -0
- package/README.md +19 -0
- package/order-success.js +1 -0
- package/package.json +15 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020-present ASSA ABLOY global web contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+

|
|
2
|
+
<sup>Global web - web components</sup>
|
|
3
|
+
|
|
4
|
+
# Order-success
|
|
5
|
+
|
|
6
|
+
**Custom HTML element**
|
|
7
|
+
```html
|
|
8
|
+
<order-success foo="" bar="" baz=""></order-success>
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
**Properties**
|
|
12
|
+
| Name | Type | Description |
|
|
13
|
+
| ------------- | --------- | ----------------------------- |
|
|
14
|
+
| foo | Object | |
|
|
15
|
+
| bar | String | Allowed values, required etc. |
|
|
16
|
+
| baz | Array | |
|
|
17
|
+
|
|
18
|
+
**Dependencies**
|
|
19
|
+
@assaabloy/wc-vendor
|
package/order-success.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t){function e(e){for(var a,i,c=e[0],s=e[1],l=e[2],p=0,u=[];p<c.length;p++)i=c[p],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(a in s)Object.prototype.hasOwnProperty.call(s,a)&&(t[a]=s[a]);for(d&&d(e);u.length;)u.shift()();return o.push.apply(o,l||[]),n()}function n(){for(var t,e=0;e<o.length;e++){for(var n=o[e],a=!0,c=1;c<n.length;c++){var s=n[c];0!==r[s]&&(a=!1)}a&&(o.splice(e--,1),t=i(i.s=n[0]))}return t}var a={},r={76:0},o=[];function i(e){if(a[e])return a[e].exports;var n=a[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=a,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/";var c=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],s=c.push.bind(c);c.push=e,c=c.slice();for(var l=0;l<c.length;l++)e(c[l]);var d=s;o.push([638,0]),n()}({0:function(t,e){t.exports=React},1:function(t,e,n){"use strict";n.d(e,"g",(function(){return r})),n.d(e,"fb",(function(){return o})),n.d(e,"i",(function(){return i})),n.d(e,"L",(function(){return c})),n.d(e,"O",(function(){return s})),n.d(e,"w",(function(){return l})),n.d(e,"J",(function(){return d})),n.d(e,"p",(function(){return p})),n.d(e,"s",(function(){return u})),n.d(e,"Q",(function(){return m})),n.d(e,"P",(function(){return f})),n.d(e,"ab",(function(){return b})),n.d(e,"M",(function(){return h})),n.d(e,"v",(function(){return g})),n.d(e,"h",(function(){return x})),n.d(e,"u",(function(){return w})),n.d(e,"z",(function(){return v})),n.d(e,"x",(function(){return A})),n.d(e,"K",(function(){return U})),n.d(e,"t",(function(){return k})),n.d(e,"bb",(function(){return M})),n.d(e,"r",(function(){return y})),n.d(e,"R",(function(){return D})),n.d(e,"N",(function(){return E})),n.d(e,"cb",(function(){return S})),n.d(e,"n",(function(){return N})),n.d(e,"k",(function(){return j})),n.d(e,"o",(function(){return C})),n.d(e,"l",(function(){return L})),n.d(e,"m",(function(){return W})),n.d(e,"C",(function(){return z})),n.d(e,"V",(function(){return T})),n.d(e,"y",(function(){return _})),n.d(e,"db",(function(){return I})),n.d(e,"eb",(function(){return H})),n.d(e,"b",(function(){return Z})),n.d(e,"Y",(function(){return $})),n.d(e,"E",(function(){return R})),n.d(e,"a",(function(){return B})),n.d(e,"gb",(function(){return J})),n.d(e,"d",(function(){return F})),n.d(e,"f",(function(){return V})),n.d(e,"e",(function(){return G})),n.d(e,"jb",(function(){return Y})),n.d(e,"c",(function(){return q})),n.d(e,"hb",(function(){return K})),n.d(e,"ib",(function(){return Q})),n.d(e,"S",(function(){return X})),n.d(e,"T",(function(){return tt})),n.d(e,"U",(function(){return et})),n.d(e,"W",(function(){return nt})),n.d(e,"X",(function(){return at})),n.d(e,"q",(function(){return rt})),n.d(e,"Z",(function(){return ot})),n.d(e,"I",(function(){return it})),n.d(e,"j",(function(){return ct})),n.d(e,"D",(function(){return st})),n.d(e,"G",(function(){return lt})),n.d(e,"H",(function(){return dt})),n.d(e,"F",(function(){return pt})),n.d(e,"A",(function(){return mt})),n.d(e,"B",(function(){return ft}));var a=n(4),r=function(t){return JSON.parse(decodeURIComponent(escape(atob(t))))},o=function(t){return btoa(unescape(encodeURIComponent(t)))},i=function(t){return t.toUpperCase()},c=function(t){return t.replaceAll(" ","-").toLowerCase()},s=new a.a(!1),l=new a.a(!1),d=new a.a(!1),p=new a.a(!1),u=new a.a(""),m=new a.a(!1),f=new a.a(!1),b=new a.a(!1),h=new a.a(!1),g=new a.a(!1),x=new a.a(!1),w=new a.a(""),v=new a.a(!0),A=new a.a(!0),U=new a.a(!0),k=new a.a(!0),M=new a.a(!0),y=new a.a(!0),D=new a.a({}),O=new a.a(!1),P=0,E=new a.a(!1),S=new a.a(""),N=new a.a(""),j=new a.a(""),C=new a.a(""),L=new a.a(""),W=new a.a(""),z=new a.a(""),T=new a.a(""),_=new a.a(!1),I=new a.a(!1),H=new a.a(!1),Z=(new a.a(!1),new a.a(!1),new a.a({flag:!1}),function(){setTimeout((function(){P++,O.next(!0)}),0)}),$=function(){setTimeout((function(){P>0&&P--,0==P&&O.next(!1)}),0)},R=function(){return O.asObservable()},B=function(t){return!!/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)},J=function(t){var e=0;return!!/(?=.{8,})/.test(t)&&(/([a-z])/.test(t)&&e++,/([A-Z])/.test(t)&&e++,/(\d)/.test(t)&&e++,/([!@#$%^&*])/.test(t)&&e++,!(e<3))},F=function(t){return t.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},V=function(t){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(t)},G=function(t){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(t)},Y=function(t){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(t)},q=function(t){return/^[0-9]*$/.test(t)},K=function(t){return new RegExp("^[0-9]+[.][0-9]{0,2}$").test(t)},Q=function(t){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(t)},X=function(t){if(t&&""!==t&&-1===t.indexOf("(")&&-1===t.indexOf(") ")&&-1===t.indexOf("-")){return"("+t.substring(0,3)+") "+t.substring(3,6)+"-"+t.substring(6,t.length)}return t},tt=function(t){var e=(""+t).replace(/\D/g,"");if(e.length>10){var n=(e=e.slice(0,10)).match(/^(\d{3})(\d{3})(\d{4})$/);if(n)return"("+n[1]+") "+n[2]+"-"+n[3]}var a="";return e.split("").forEach((function(t,e){a+=0==e?"("+t:2==e?t+") ":5==e?t+"-":t})),a},et=function(t){var e=t.target.value;return 1==e.length?"("+e:5==e.length?e.slice(0,e.length-1)+") "+e[e.length-1]:10==e.length&&"-"!==e[e.length-1]?e.slice(0,e.length-1)+"-"+e[e.length-1]:10==e.length&&"-"===e[e.length-1]?e.substring(0,e.length-1):6==e.length?e.substring(0,e.length-2):e},nt=function(t){return t&&(t=t.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==t&&"0"!==t||(t=t.toFixed(2)),t},at=function(t,e){return t=t?Number(t):0,(0===(e=e?Number(e):0)||"0"===e?0:(t-e)/e*100).toFixed(2)},rt=function(t){var e={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:t.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:t.selectedHeight,glass:t.selectedGlass,collection:t.selectedCollection,print:!0,baseUrl:"",gplacement:t.selectedWindowPlacement,width:t.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return t.selectedColor&&(e.color=t.selectedColor),t.colorHex&&(e.colorHex=t.colorHex),t.colorZone&&(e.colorZone=t.colorZone),t.selectedConstruction&&(e.model=t.selectedConstruction),t.selectedWindowDesign&&(e.top=t.selectedWindowDesign),t.glazepattern&&(e.glazepattern=t.glazepattern),t.selectedHardware&&(e.hardware=t.selectedHardware),e},ot=function(t,e,n){var a="",r=t.split(e);return r.forEach((function(t,e){"undefined"!==t&&t&&(a+=t,e!==r.length-1&&(a+=n))})),a};function it(t,e){var n=e||"html",a=t;return n||(n="html"),"html"==n&&(a=function(t){var e,n,a,i,c,d=t,p="";e=r(d,"<!--","-->",s,"W3HTMLCOMMENTPOS"),d=e.rest;for(;d.indexOf("<")>-1;)i="",n=d.indexOf("<"),"<STYLE"==d.substr(n,9).toUpperCase()&&(i="css"),"<SCRIPT"==d.substr(n,10).toUpperCase()&&(i="javascript"),-1==(a=d.indexOf(">",n))&&(a=d.length),p+=d.substring(0,n),p+=o(d.substring(n,a+4)),d=d.substr(a+4),"css"==i&&(a=d.indexOf("</style>"))>-1&&(p+=l(d.substring(0,a)),d=d.substr(a)),"javascript"==i&&(a=d.indexOf("</script>"))>-1&&(p+=m(d.substring(0,a)),d=d.substr(a));for(d=p+d,c=0;c<e.arr.length;c++)d=d.replace("W3HTMLCOMMENTPOS",e.arr[c]);return d}(a)),"css"==n&&(a=l(a)),"js"==n&&(a=m(a)),a;function r(t,e,n,a,r){for(var o,i,c="",s=[];t.search(e)>-1;)o=t.search(e),-1==(i=t.indexOf(n,o))&&(i=t.length),r?(s.push(a(t.substring(o,i+n.length))),t=t.substring(0,o)+r+t.substr(i+n.length)):(c+=t.substring(0,o),c+=a(t.substring(o,i+n.length)),t=t.substr(i+n.length));return{rest:c+t,arr:s}}function o(t){for(var e,n,a,r=t,o="";r.search(/(\s|<br>)/)>-1;)e=r.search(/(\s|<br>)/),-1==(n=r.indexOf(">"))&&(n=r.length),o+=r.substring(0,e),o+=i(r.substring(e,n)),r=r.substr(n);return">"==(a="<span style=color:grey><</span>"+(a=o+r).substring(4)).substr(a.length-4,4)&&(a=a.substring(0,a.length-4)+"<span style=color:grey>></span>"),"<span style=color:#a10d5f>"+a+"</span>"}function i(t){for(var e,n,a,r,o,i=t,s="";i.indexOf("=")>-1;)n=-1,e=i.indexOf("="),a=i.indexOf("'",e),r=i.indexOf('"',e),(o=i.indexOf(" ",e+2))>-1&&(o<a||-1==a)&&(o<r||-1==r)?n=i.indexOf(" ",e):r>-1&&(r<a||-1==a)&&(r<o||-1==o)?n=i.indexOf('"',i.indexOf('"',e)+1):a>-1&&(a<r||-1==r)&&(a<o||-1==o)&&(n=i.indexOf("'",i.indexOf("'",e)+1)),(!n||-1==n||n<e)&&(n=i.length),s+=i.substring(0,e),s+=c(i.substring(e,n+1)),i=i.substr(n+1);return"<span style=color:green>"+s+i+"</span>"}function c(t){return"<span style=color:#1c8a9c>"+t+"</span>"}function s(t){return"<span style=color:green>"+t+"</span>"}function l(t){var e,n,a,o,i,c,l,p=t,u="";for(p=(a=r(p,/\/\*/,"*/",s,"W3CSSCOMMENTPOS")).rest;p.search("{")>-1;){for(e=p.search("{"),i=p.substr(e+1),l=1,c=0,o=0;o<i.length&&("{"==i.substr(o,1)&&(l++,c++),"}"==i.substr(o,1)&&l--,0!=l);o++);for(0!=l&&(c=0),n=e,o=0;o<=c;o++)n=p.indexOf("}",n+1);-1==n&&(n=p.length),u+=p.substring(0,e+1),u+=d(p.substring(e+1,n)),p=p.substr(n)}for(p=(p=(p=u+p).replace(/{/g,"<span style=color:grey>{</span>")).replace(/}/g,"<span style=color:grey>}</span>"),o=0;o<a.arr.length;o++)p=p.replace("W3CSSCOMMENTPOS",a.arr[o]);return"<span style=color:green>"+p+"</span>"}function d(t){var e,n,a,r,o=t,i="";if(o.indexOf("{")>-1)return l(o);for(;o.search(":")>-1;){for(r=!0,a=e=o.search(":");1==r;)r=!1,n=o.indexOf(";",a)," "==o.substring(n-5,n+1)&&(r=!0,a=n+1);-1==n&&(n=o.length),i+=o.substring(0,e),i+=p(o.substring(e,n+1)),o=o.substr(n+1)}return"<span style=color:#a10d5f>"+i+o+"</span>"}function p(t){var e,n=t,a="";for(n="<span style=color:grey>:</span>"+n.substring(1);n.search(/!important/i)>-1;)e=n.search(/!important/i),a+=n.substring(0,e),a+=u(n.substring(e,e+10)),n=n.substr(e+10);var r=a+n;return";"==r.substr(r.length-1,1)&&" "!=r.substr(r.length-6,6)&&"<"!=r.substr(r.length-4,4)&&">"!=r.substr(r.length-4,4)&&"&"!=r.substr(r.length-5,5)&&(r=r.substring(0,r.length-1)+"<span style=color:grey>;</span>"),"<span style=color:black>"+r+"</span>"}function u(t){return"<span style=color:red;font-weight:bold;>"+t+"</span>"}function m(t){var e,n,a,r,o,i,c,l,d,p,u=t,m="",k=[],M="";for(e=0;e<u.length;e++)"\\"==(n=u.substr(e,1))&&(k.push(u.substr(e,2)),n="W3JSESCAPE",e++),M+=n;for(u=M,1;a=A(u,"'","'",f),r=A(u,'"','"',f),o=A(u,/\/\*/,"*/",s),i=A(u,/\/\//,"<br>",s),l=U(u,h),c=v("js",u,b),p=x(u,g),-1!=Math.max(l[0],a[0],r[0],o[0],i[0],c[0],p[0])&&-1!=(d=w(l,a,r,o,i,c,p))[0];)d[0]>-1&&(m+=u.substring(0,d[0]),m+=d[2](u.substring(d[0],d[1])),u=u.substr(d[1]));for(u=m+u,e=0;e<k.length;e++)u=u.replace("W3JSESCAPE",k[e]);return"<span style=color:black>"+u+"</span>"}function f(t){return"<span style=color:brown>"+t+"</span>"}function b(t){return"<span style=color:mediumblue>"+t+"</span>"}function h(t){return"<span style=color:red>"+t+"</span>"}function g(t){return"<span style=color:black>"+t+"</span>"}function x(t,e){var n,a,r,o,i=[".","<"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%"];if((o=t.indexOf("."))>-1)for(n=t.substr(o+1),r=0;r<n.length;r++){var c=n[r];for(a=0;a<i.length;a++)if(c.indexOf(i[a])>-1)return[o+1,r+o+1,e]}return[-1,-1,e]}function w(t,e,n,a,r,o,i){var c,s=[];for(c=0;c<arguments.length;c++)arguments[c][0]>-1&&(0==s.length||arguments[c][0]<s[0])&&(s=arguments[c]);return 0==s.length&&(s=arguments[c]),s}function v(t,e,n){var a,r,o,i,c=-1,s=-1;for("js"==t&&(i=["abstract","arguments","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","eval","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","let","long","NaN","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with","yield"]),a=0;a<i.length;a++)(r=e.indexOf(i[a]))>-1&&(o=/\W/g,e.substr(r+i[a].length,1).match(o)&&e.substr(r-1,1).match(o)&&r>-1&&(-1==c||r<c)&&(s=(c=r)+i[a].length));return[c,s,n]}function A(t,e,n,a){var r,o;return r=t.search(e),-1==(o=t.indexOf(n,r+n.length))&&(o=t.length),[r,o+n.length,a]}function U(t,e){var n,a,r,o,i,c=["<br>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],s=0;for(n=0;n<t.length;n++)for(a=0;a<c.length;a++)if((r=t.substr(n,c[a].length))==c[a]){if("-"==r&&("e"==t.substr(n-1,1)||"E"==t.substr(n-1,1)))continue;if(s<(o=n)&&(i=t.substring(s,o),!isNaN(i)))return[s,o,e];s=n+=c[a].length,n-=1;break}return[-1,-1,e]}}var ct=function(t){return t?t.charAt(0).toUpperCase()+t.slice(1):""},st=function(){return getComputedStyle(document.body).getPropertyValue("--asset-path").trim()},lt=function(){return getComputedStyle(document.body).getPropertyValue("--accent").trim()},dt=function(t){if("string"===typeof t){var e=t;return e=(e=e.replace(/\\/g,"\\\\")).replace(/"/g,'\\"')}return t},pt=function(t){return Math.floor(Math.random()*t)+1},ut=["January","February","March","April","May","June","July","August","September","October","November","December"],mt=function(t){var e=new Date(t);if("Invalid Date"==e.toString())return t;var n=e.getFullYear(),a=e.getMonth(),r=(e.getDate()+"").padStart(2,"0");return"".concat(ut[a].slice(0,3)," ").concat(r,", ").concat(n)},ft=function(t){return t.length>0?t.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"").replace(/ /g,""):t}},10:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(0),r=n.n(a),o=n(5).default.div.withConfig({displayName:"styles__Wrapper",componentId:"sc-1pdbosk-0"})(["box-sizing:border-box;width:100%;margin:0 auto;padding:",";max-width:",";"],(function(t){return t.padding?"0 var(--grid-margin);":0}),(function(t){t.maxWidth;return"calc(var(--container-max-width)px + var(--grid-margin) + var(--grid-margin));"})),i=function(t){var e=t.className,n=t.children,a=t.maxWidth,i=void 0===a?1520:a,c=t.padding,s=void 0===c||c;return r.a.createElement(o,{className:e,maxWidth:i,padding:s},n)};e.b=i},176:function(t,e,n){"use strict";var a=n(3),r=n(0),o=n.n(r),i=n(1),c=n(13),s=n.n(c),l={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},d=n(11),p=n(5),u=n(2);function m(){var t=Object(d.a)(["\n .success-container {\n margin: auto;\n text-align: center;\n background-color: var(--bg-main);\n border-radius: 5px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n max-width: 480px;\n @media screen and "," {\n max-width: 480px;\n }\n @media screen and "," {\n max-width: 507px;\n }\n .logo {\n width: 60px;\n height: 60px;\n }\n }\n\n button.btn {\n width: 100%;\n letter-spacing: 1px;\n text-transform: uppercase;\n }\n\n .order-title {\n margin-bottom: 4px;\n }\n\n .site-check-button {\n margin-bottom: 18px;\n }\n"]);return m=function(){return t},t}var f=p.default.div(m(),u.b.tabletLandscapeAndUp,u.b.mediumDesktopMin),b=n(8),h=n(9),g=n(10),x=n(6),w={paymentSuccessTitle:{text:""},paymentSuccessDescription:{text:""},bookSiteCheckButton:{label:"",url:"",color:"",isInternal:!1},viewOrderDetailsButton:{label:"",url:"",color:"",isInternal:!1},continueShoppingButton:{label:"",url:"",color:"",isInternal:!1},apiURL:""},v=function(t){var e=s()({},w,Object(i.g)(t.content)),n=Object(r.useState)(""),c=Object(a.a)(n,2),d=c[0],p=c[1],u=Object(r.useState)(""),m=Object(a.a)(u,2),v=m[0],A=m[1],U=Object(r.useState)(""),k=Object(a.a)(U,2),M=k[0],y=k[1];return Object(r.useEffect)((function(){var t=window.location.search,n=new URLSearchParams(t).get("orderId")||"";p(n);var a=new URL(window.location.origin+e.bookSiteCheckButton.url),r=a.searchParams;r.set("orderId",n),A(a.toString()),(r=(a=new URL(window.location.origin+e.viewOrderDetailsButton.url)).searchParams).set("orderId",n),y(a.toString())}),[]),o.a.createElement(b.a,{setter:{componentThemes:l,selectedTheme:t.theme}},o.a.createElement(h.a,null,o.a.createElement(g.a,null,o.a.createElement(f,{isReversed:!1},o.a.createElement("section",{className:"container mb-60"},o.a.createElement("div",{className:"row justify-content-center"},o.a.createElement("div",{className:"success-container mt-3 pt-1"},o.a.createElement("img",{loading:"lazy",src:Object(i.D)().concat("ic-success-green.svg"),alt:"Amarr",className:"logo mb-4 mt-5"}),o.a.createElement("h4",{className:"order-title amarr-h4"},e.paymentSuccessTitle.text),o.a.createElement("p",{className:"body-text2 order-text mb-4"},e.paymentSuccessDescription.text," ",d),o.a.createElement("form",{id:"",role:"form"},o.a.createElement("div",{className:"row text-center"},o.a.createElement("div",{className:"col-12 site-check-button"},o.a.createElement(x.a,{label:e.bookSiteCheckButton.label,linkHref:v,link:!0})),o.a.createElement("div",{className:"col-6 pr-2"},o.a.createElement(x.a,{label:e.viewOrderDetailsButton.label,linkHref:M,link:!0,inverse:!0})),o.a.createElement("div",{className:"col-6 pl-2"},o.a.createElement(x.a,{label:e.continueShoppingButton.label,linkHref:e.continueShoppingButton.url,link:!0,inverse:!0})))))))))))};v.defaultProps={theme:"",content:""};e.a=v},2:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r}));var a={mobileAndUpMin:128,mobileAndUp:320,smallMobileAndUp:375,largeMobileAndUp:426,tabletPortraitUp:606,largeMobileAndUp2:576,tabletPortraitAndUp:768,tabletPortraitAndUp2:835,tabletLandscapeAndUp:992,desktopAndUp:1024,smallDesktopAndUp1:1100,smallDesktopAndUp:1200,smallDesktopAndUp2:1280,smallDesktopAndUp3:1300,smallDesktopAndUp4:1150,mediumDesktopAndUp:1400,mediumDesktopAndUp2:1600,mediumDesktopAndUp3:1680,mediumDesktopAndUp4:1440,mediumDesktopAndUp5:1520,largeDesktop:1800,maxWidthAndUp:1900,wrapperMaxWidth:1920,extraLarge:2560},r={mobileAndUpMin:"(min-width: ".concat(a.mobileAndUpMin,"px)"),mobileAndUp:"(min-width: ".concat(a.mobileAndUp,"px)"),mobile1AndUp:"(max-width: ".concat(a.mobileAndUp-20,"px)"),mobileMax:"(max-width: ".concat(a.tabletPortraitAndUp-1,"px)"),smallMobileAndUp:"(min-width: ".concat(a.smallMobileAndUp,"px)"),smallMobileMax:"(max-width: ".concat(a.smallMobileAndUp,"px)"),smallMobileAndUpMax:"(max-width: ".concat(a.smallMobileAndUp+1,"px)"),smallMobileAndUpMin:"(min-width: ".concat(a.smallMobileAndUp+1,"px)"),smallMobileAndUpMax2:"(max-width: ".concat(a.smallMobileAndUp+5,"px)"),largeMobileAndUp:"(min-width: ".concat(a.largeMobileAndUp,"px)"),largeMobileAndUpMax:"(max-width: ".concat(a.largeMobileAndUp,"px)"),largeMobileAndUpMax2:"(max-width: ".concat(a.largeMobileAndUp-2,"px)"),largeMobileAndUpMax3:"(max-width: ".concat(a.largeMobileAndUp-1,"px)"),largeMobileAndUpMin:"(min-width: ".concat(a.largeMobileAndUp-1,"px)"),largeMobileAndUp2:"(min-width: ".concat(a.largeMobileAndUp2,"px)"),largeMobileAndUp2Max:"(max-width: ".concat(a.largeMobileAndUp2,"px)"),largeMobileAndUp2Max2:"(max-width: ".concat(a.tabletPortraitUp+34,"px)"),largeMobileMin:"(min-width: ".concat(a.tabletPortraitAndUp+1,"px)"),tabletPortraitUp:"(min-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitUp2:"(min-width: ".concat(a.tabletPortraitAndUp+16,"px)"),tabletPortraitUpMax1:"(max-width: ".concat(a.tabletPortraitAndUp-1,"px)"),tabletPortraitAndUp:"(min-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitAndUpMax:"(max-width: ".concat(a.tabletPortraitAndUp,"px)"),tabletPortraitAndUpMax2:"(max-width: ".concat(a.tabletPortraitAndUp+4,"px)"),tabletPortraitAndUpMax3:"(max-width: ".concat(a.tabletPortraitAndUp-12,"px)"),tabletPortraitAndUp2:"(min-width: ".concat(a.tabletPortraitAndUp2,"px)"),tabletPortraitAndUp2Max:"(max-width: ".concat(a.tabletPortraitAndUp2,"px)"),tabletPortraitAndUp2Max2:"(max-width: ".concat(a.tabletPortraitAndUp2-1,"px)"),tabletPortraitMax:"(max-width: ".concat(a.tabletLandscapeAndUp-1,"px)"),tabletPortraitMin:"(min-width: ".concat(a.tabletLandscapeAndUp-1,"px)"),tabletPortraitMax2:"(max-width: ".concat(a.tabletLandscapeAndUp-2,"px)"),tabletLandscapeAndUp:"(min-width: ".concat(a.tabletLandscapeAndUp,"px)"),tabletLandscapeAndUpMax:"(max-width: ".concat(a.tabletLandscapeAndUp,"px)"),desktopAndUp:"(min-width: ".concat(a.desktopAndUp,"px)"),desktopAndUpMax:"(max-width: ".concat(a.desktopAndUp,"px)"),desktopMin:"(min-width: ".concat(a.desktopAndUp+1,"px)"),desktopMax2:"(max-width: ".concat(a.desktopAndUp+1,"px)"),desktop2Max:"(max-width: ".concat(a.desktopAndUp-1,"px)"),desktopMin2:"(min-width: ".concat(a.desktopAndUp+2,"px)"),desktopMin1:"(max-width: ".concat(a.desktopAndUp+1,"px)"),desktop1Min:"(min-width: ".concat(a.desktopMin1+1,"px)"),desktop2Min:"(min-width: ".concat(a.desktopAndUp-1,"px)"),desktopMax:"(max-width: ".concat(a.smallDesktopAndUp-1,"px)"),smallDesktopAndUp1:"(min-width: ".concat(a.smallDesktopAndUp1,"px)"),smallDesktopAndUp1Max:"(max-width: ".concat(a.smallDesktopAndUp1,"px)"),smallDesktopAndUp:"(min-width: ".concat(a.smallDesktopAndUp,"px)"),smallDesktopAndUpMax:"(max-width: ".concat(a.smallDesktopAndUp,"px)"),smallDesktop2Min:"(min-width: ".concat(a.smallDesktopAndUp+1,"px)"),smallDesktopAndUp2:"(min-width: ".concat(a.smallDesktopAndUp2,"px)"),smallDesktopAndUp2Max:"(max-width: ".concat(a.smallDesktopAndUp2,"px)"),smallDesktopAndUp3:"(min-width: ".concat(a.smallDesktopAndUp3,"px)"),smallDesktopAndUp4:"(max-width: ".concat(a.smallDesktopAndUp4,"px)"),smallDesktopAndUp3Max:"(max-width: ".concat(a.smallDesktopAndUp3,"px)"),mediumDesktopMin:"(min-width: ".concat(a.smallDesktopAndUp2+1,"px)"),mediumDesktopMin2:"(min-width: ".concat(a.mediumDesktopAndUp+1,"px)"),mediumDesktopAndUp:"(min-width: ".concat(a.mediumDesktopAndUp,"px)"),mediumDesktopAndUpMax:"(max-width: ".concat(a.mediumDesktopAndUp,"px)"),mediumDesktopAndUp2:"(min-width: ".concat(a.mediumDesktopAndUp2,"px)"),mediumDesktopAndUp2Max:"(max-width: ".concat(a.mediumDesktopAndUp2,"px)"),mediumDesktopAndUp3:"(min-width: ".concat(a.mediumDesktopAndUp3,"px)"),mediumDesktopAndUp3Max:"(max-width: ".concat(a.mediumDesktopAndUp3,"px)"),mediumDesktopAndUp4:"(min-width: ".concat(a.mediumDesktopAndUp4,"px)"),mediumDesktopAndUp4Min:"(min-width: ".concat(a.mediumDesktopAndUp4+1,"px)"),mediumDesktopAndUp4Max:"(max-width: ".concat(a.mediumDesktopAndUp4,"px)"),mediumDesktopAndUp5:"(min-width: ".concat(a.mediumDesktopAndUp5,"px)"),mediumDesktopAndUp5Max:"(max-width: ".concat(a.mediumDesktopAndUp5-1,"px)"),largeDesktopMax:"(min-width: ".concat(a.mediumDesktopAndUp3-1,"px)"),largeDesktopMax2:"(max-width: ".concat(a.mediumDesktopAndUp3-1,"px)"),largeDesktopMin:"(min-width: ".concat(a.mediumDesktopAndUp3+1,"px)"),largeDesktop:"(min-width: ".concat(a.largeDesktop,"px)"),maxWidthAndUp:"(min-width: ".concat(a.maxWidthAndUp,"px)"),maxWidthAndUpMax:"(max-width: ".concat(a.maxWidthAndUp,"px)"),wrapperMaxWidth:"(min-width: ".concat(a.wrapperMaxWidth,"px)"),wrapperMaxWidthMax:"(max-width: ".concat(a.wrapperMaxWidth-1,"px)"),wrapperMaxWidth2:"(min-width: ".concat(a.wrapperMaxWidth+1,"px)"),largeMobile460:"(max-width: ".concat(a.largeMobileAndUp-6,"px)"),minWidth1901:"(min-width: ".concat(a.maxWidthAndUp+1,"px)"),extraLargeMax:"(max-width: ".concat(a.extraLarge,"px)"),extraLargeMin:"(min-width: ".concat(a.extraLarge,"px)")}},32:function(t,e){t.exports=ReactDOM},521:function(t,e,n){"use strict";n.r(e);var a=n(22),r=n(176);e.default=a.a.create({component:r.a,configuration:{tagname:"amarr-order-success",useShadow:!1},plugins:[]})},6:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var a=n(31),r=n(0),o=n.n(r),i=n(5),c=n(2),s=i.default.div.withConfig({displayName:"styles__View",componentId:"sc-1jt3i0i-0"})([""]),l=i.default.button.withConfig({displayName:"styles__Button",componentId:"sc-1jt3i0i-1"})(["font-size:var(--font-size-s1);font-family:var(--font-family-body);font-weight:var(--font-weight-semi-bold);font-stretch:var(--font-normal);font-style:var(--font-normal);line-height:1.5;letter-spacing:var(--font-normal);text-align:var(--text-center);color:var(--bg-main);padding:12px 19px 12px 20px;border-radius:var(--border-radius);background-color:var(--accent);box-shadow:none;border:none;transition:all ease 300ms;&:hover{transform:scale(1.1);background-color:var(--accent-hover);color:var(--bg-main);}&:focus{transform:scale(1);box-shadow:none !important;background-color:var(--accent-focus);}&:active{background-color:var(--accent-active) !important;box-shadow:none !important;transform:scale(1);border:none !important;}&.btn-inverse{color:var(--text-color);background:var(--accent-inverse);&:hover{background:var(--accent-inverse-hover);}&:focus{background:var(--accent-inverse-focus);border:none;transform:scale(1);box-shadow:none !important;}&:active{background-color:var(--accent-inverse-active) !important;border:none !important;transform:scale(1.1);box-shadow:none !important;}}@media ","{font-size:var(--font-size-m1);}.button-icon{vertical-align:top;padding-right:8px;}"],c.b.smallDesktop2Min),d=n(30),p=n(29),u=function(t){var e=t.label,n=void 0===e?"label":e,r=t.classStyle,i=void 0===r?"default":r,c=t.link,u=void 0!==c&&c,m=t.disabled,f=void 0!==m&&m,b=t.datatoggle,h=void 0===b?"":b,g=t.datatarget,x=void 0===g?"":g,w=t.linkHref,v=t.target,A=void 0===v?"_self":v,U=t.downloadLink,k=void 0!==U&&U,M=t.inverse,y=void 0!==M&&M,D=t.icon,O=void 0===D?"":D,P=t.iconAlt,E=void 0===P?"":P,S=t.dataItemName,N=void 0===S?"":S,j=t.id,C=void 0===j?"":j,L=t.type,W=void 0===L?"button":L,z=t.showDisabledMessage,T=void 0===z?"":z,_=t.ariaLabel,I=void 0===_?"":_,H=Object(a.a)(t,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel"]);return o.a.createElement(s,null,o.a.createElement("div",{className:"".concat(f&&T&&"disabled-button-parent")},u?o.a.createElement("a",{href:w,download:k,target:A,"data-item-name":N,id:C,"aria-label":I},o.a.createElement(l,Object.assign({role:"none",disabled:f,classStyle:"".concat(i)},H,{type:W,className:y?"btn-inverse btn btn-success":"btn btn-success"}),""!=O?o.a.createElement("div",{"data-toggle":h,"data-target":x},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:O,alt:E}),o.a.createElement("span",null,n)):o.a.createElement("span",null,n))):o.a.createElement(l,Object.assign({disabled:f,classStyle:i,className:y?"btn-inverse btn btn-success":"btn btn-success",id:C,"data-item-name":N,type:W,"data-toggle":h,"data-target":x},H),o.a.createElement("span",null,n)),f&&T&&o.a.createElement(d.a,{placement:"top",delay:{show:250,hide:250},overlay:o.a.createElement(p.a,{id:"button-tooltip"},o.a.createElement("div",{className:"p-1 amarr-h6"},T))},o.a.createElement("div",{className:"disabled-button-overlay"}))))}},8:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(5),r=n(0),o=n.n(r),i=function(t){var e=t.setter,n=e.componentThemes,r=e.selectedTheme;return o.a.createElement(a.ThemeProvider,{theme:function(){if(!r)return n.theme1;var t=r.match(/\d+/g).map(Number),e=Object.keys(n).find((function(e){return!(!Array.isArray(t)||1!==t.length)&&(e.includes(t[0])&&n[e])}));return e?n["".concat(e)]:n.theme1}},t.children)};e.b=i},9:function(t,e,n){"use strict";var a=n(0),r=n.n(a),o=n(5),i=n(23),c=Object(a.createContext)({});e.a=function(t){var e=!1;try{var n;e=(null===(n=document)||void 0===n?void 0:n.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(s){console.log(s)}var a=e?[i.a]:[];return r.a.createElement(o.StyleSheetManager,{stylisPlugins:a},r.a.createElement(c.Provider,{value:{rtl:e}},t.children))}}});
|
package/package.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@assaabloy/amarr-wc-order-success",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Web component - Order-success",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "order-success.js",
|
|
7
|
+
"module": "order-success.js",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/ASSAABLOY/amarr-frontend-components"
|
|
11
|
+
},
|
|
12
|
+
"author": "Nagarro",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"gitHead": "df19edbe2dcbb909196a47080a5833bdc0a361e6"
|
|
15
|
+
}
|