@assaabloy/amarr-wc-glossary 5.0.2 → 5.0.3
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/glossary.js +1 -1
- package/package.json +2 -2
package/glossary.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t){function e(e){for(var a,i,c=e[0],d=e[1],l=e[2],p=0,m=[];p<c.length;p++)i=c[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&m.push(o[i][0]),o[i]=0;for(a in d)Object.prototype.hasOwnProperty.call(d,a)&&(t[a]=d[a]);for(s&&s(e);m.length;)m.shift()();return r.push.apply(r,l||[]),n()}function n(){for(var t,e=0;e<r.length;e++){for(var n=r[e],a=!0,c=1;c<n.length;c++){var d=n[c];0!==o[d]&&(a=!1)}a&&(r.splice(e--,1),t=i(i.s=n[0]))}return t}var a={},o={48:0},r=[];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"]||[],d=c.push.bind(c);c.push=e,c=c.slice();for(var l=0;l<c.length;l++)e(c[l]);var s=d;r.push([843,0]),n()}({0:function(t,e){t.exports=React},1:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o}));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},o={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)"),smallMobileAndUpMax:"(max-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)"),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)"),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)")}},10:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(0),o=n.n(a),r=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,d=void 0===c||c;return o.a.createElement(r,{className:e,maxWidth:i,padding:d},n)}},113:function(t,e,n){"use strict";var a=n(3),o=n(0),r=n.n(o),i=n(2),c=n(7),d=n(12),l=n.n(d),s={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},p=n(11),m=n(5),u=n(1);function h(){var t=Object(p.a)(["\n form {\n display: flex;\n margin: 0 0 1rem;\n justify-content: center;\n align-items: center;\n }\n\n h4 {\n color: var(--text-color);\n padding: 0;\n margin: 1.5rem 0;\n }\n\n .document-wrapper {\n display: block;\n justify-content: space-between;\n align-items: center;\n }\n\n .text-style {\n // font-size:1.25rem;\n font-weight: var(--font-weight-semi-bold);\n }\n\n .text-style-description {\n color: var(--complementary-hover-alt-5);\n }\n\n .button-style {\n background-color: var(--accent);\n }\n\n .link-style {\n color: var(--accent);\n }\n\n .border-style {\n border-bottom: 1px solid var(--border-color-soft);\n margin-bottom: 1%;\n }\n\n .text-style-heading {\n font-weight: 600;\n }\n\n .bottom-space {\n margin-bottom: 20px;\n }\n\n // -------------DESKTOP SCREEN------------------\n @media only screen and "," {\n form {\n // gap: 1rem;\n input:first-of-type {\n width: 100%;\n }\n .search-box-parent {\n margin-right: 1rem;\n }\n }\n }\n // -------------DESKTOP SCREEN ENDS------------------\n\n .amarrHighlight {\n color: var(--accent) !important;\n }\n\n .content-style {\n display: flex;\n justify-content: space-between;\n }\n input.form-control {\n padding-left: 40px;\n }\n .search-img {\n width: 20px;\n }\n\n .search-box-parent {\n position: relative;\n width: 50%;\n display: flex;\n gap: 0.5rem;\n }\n\n .glossary {\n margin: 0 auto;\n }\n\n h4 {\n margin: 1rem 0;\n }\n\n .alphabetical-item {\n margin-bottom: 2.5rem;\n }\n\n .glossary-search-form {\n margin-bottom: 46px;\n // gap: 1rem;\n .search-box-parent {\n margin-right: 1rem;\n }\n }\n .heading-style {\n font-weight: var(--font-weight-semi-bold);\n }\n .search-icon {\n position: absolute;\n left: 9px;\n top: 4px;\n }\n .close-icon {\n position: absolute;\n right: 1rem;\n top: 5px;\n }\n .ctalist {\n display: flex;\n gap: 1.5rem;\n }\n @media screen and "," {\n .search-box-parent {\n width: auto;\n flex-grow: 2;\n }\n .search-icon,\n .close-icon {\n top: 6px;\n }\n @supports not (flex-gap: 10px) {\n .ctalist {\n display: block;\n .cta-list-child:not(:last-child) {\n margin-bottom: 20px;\n }\n }\n }\n @supports (display: flex) and (gap: 20px) {\n .ctalist {\n flex-wrap: wrap;\n row-gap: 20px;\n }\n }\n }\n @media screen and "," and "," {\n .search-icon,\n .close-icon {\n top: 6px;\n }\n }\n @media screen and "," and "," {\n .search-icon,\n .close-icon {\n top: 5px;\n }\n }\n @media screen and "," and "," {\n .search-icon,\n .close-icon {\n top: 4px;\n img {\n max-width: 75%;\n }\n }\n }\n @media screen and "," and "," {\n .search-icon {\n left: 9px;\n top: 6px;\n }\n .close-icon {\n top: 6px;\n }\n }\n @media screen and "," {\n .search-icon {\n top: 10px;\n left: 14px;\n }\n .close-icon {\n top: 10px;\n }\n }\n @media screen and "," {\n .button-auto-height {\n button.btn {\n height: min-content;\n white-space: break-spaces;\n text-align: left;\n }\n }\n }\n "]);return h=function(){return t},t}var b=m.default.div.withConfig({displayName:"styles__Content",componentId:"i6xuo2-0"})(["",""],(function(t){var e;(null===(e=t.gradients)||void 0===e?void 0:e.visible)?t.theme.gradient:t.theme;return Object(m.css)(h(),u.b.tabletLandscapeAndUp,u.b.mobileMax,u.b.tabletPortraitUp,u.b.desktop2Max,u.b.desktop2Min,u.b.desktopMin1,u.b.desktop1Min,u.b.smallDesktopAndUp2Max,u.b.mediumDesktopMin,u.b.mediumDesktopAndUp3Max,u.b.largeDesktopMin,u.b.tabletPortraitMax)})),x=n(8),f=n(9),g=n(10),w={searchLabel:"",searchEmptyText:"",noResultText:"",dtoList:[{alphabet:"",items:[{term:"",description:""}]}],ctaSectionList:[{ctaItems:[{label:"",url:"",linkAction:"",isInternal:!1}]}]},v=function(t){var e=l()({},w,Object(i.g)(t.content)),n=Object(o.useState)(""),d=Object(a.a)(n,2),p=d[0],m=d[1],u=Object(o.useState)(e.dtoList),h=Object(a.a)(u,2),v=h[0],A=h[1],U=[],k=[],M=[],y=[],D=[];e.dtoList.forEach((function(t,e){U[e]=t.alphabet,k[e]=t.items}));var E=Object(o.useState)({value:!1,message:""}),P=Object(a.a)(E,2),N=P[0],O=P[1],j=Object(o.useState)(!1),L=Object(a.a)(j,2),S=L[0],C=L[1];return $(document).on("click",'a[href^="#"]',(function(t){t.preventDefault();var e=$(this.hash),n=$("header").height(),a=$(".nav-item.active .sub-menu-box").height();$("html, body").animate({scrollTop:e.offset().top-(n+a+10)},500)})),r.a.createElement(x.a,{setter:{componentThemes:s,selectedTheme:t.theme}},r.a.createElement(f.a,null,r.a.createElement(g.a,{padding:!1},r.a.createElement(b,{isReversed:!1},r.a.createElement("div",{className:"container inner-container"},r.a.createElement("div",{className:"row"},r.a.createElement("div",{className:"col-12 col-xl-9 col-md-10 col-sm-11 glossary"},r.a.createElement("form",{className:"glossary-search-form"},r.a.createElement("div",{className:"search-box-parent"},r.a.createElement("div",{className:"search-icon"},r.a.createElement("img",{loading:"lazy",src:"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/ic-search-light.svg",alt:"Seacrh Icon",className:"search-img"})),r.a.createElement("input",{type:"text",name:"search",placeholder:e.searchEmptyText,className:"form-control",value:p,onChange:function(t){m(t.target.value),""!==t.target.value?(C(!0),O({value:!1,message:""})):(A(e.dtoList),C(!1))},title:"search"}),S&&r.a.createElement("span",{className:"close-icon"},r.a.createElement("img",{loading:"lazy",src:"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/ic-close.svg",alt:"Search Icon",onClick:function(t){""!==p&&(O({value:!1,message:""}),m(""),C(!1)),A(e.dtoList)}}))),r.a.createElement(c.a,{label:Object(i.i)(e.searchLabel),inverse:!1,onClick:function(t){t.preventDefault();var n=p&&p.toLowerCase();n.length>0?(M=[],k.forEach((function(t,e){M=[],t.forEach((function(t,e){-1===t.term.toLowerCase().indexOf(n)&&-1===t.description.toLowerCase().indexOf(n)||M.push(t)})),y[e]=M,y[e].length>0&&(D[e]={alphabet:y[e].length>0?U[e]:"",items:y[e]})})),D.length>0?O({value:!1,message:""}):O({value:!0,message:e.noResultText}),A(D)):A(e.dtoList)}})),r.a.createElement("div",{className:"results accordion accordion-wrapper",id:"search-accordian"},N.value&&r.a.createElement("div",{className:"body-text2"},N.message),v.map((function(t,e){return r.a.createElement("div",{key:e,className:"alphabetical-item"},r.a.createElement("h2",{className:"heading-style amarr-h3"},t.alphabet),t.items.map((function(t,e,n){return r.a.createElement("div",{key:e,className:"document-wrapper",id:t.term.toLowerCase().replace(/ /g,"").replace(",","").replace("(","").replace(")","")},r.a.createElement("h3",{className:"text-style amarr-h5"},t.term),r.a.createElement("p",{className:"body-text2",dangerouslySetInnerHTML:{__html:t.description}}))})))})),e.ctaSectionList&&e.ctaSectionList.map((function(t,e){return r.a.createElement("div",{key:e,className:"mt-4 mb-5"},r.a.createElement("div",{className:"ctalist"},t.ctaItems&&t.ctaItems.length>0&&t.ctaItems.map((function(t,e){return r.a.createElement("div",{className:"".concat(t.label.length>25&&"button-auto-height"," cta-list-child")},r.a.createElement(c.a,{label:Object(i.i)(t.label),link:!0,linkHref:t.url}))}))))}))))))))))};v.defaultProps={theme:"",content:""};e.a=v},2:function(t,e,n){"use strict";n.d(e,"g",(function(){return o})),n.d(e,"V",(function(){return r})),n.d(e,"i",(function(){return i})),n.d(e,"D",(function(){return c})),n.d(e,"G",(function(){return d})),n.d(e,"v",(function(){return l})),n.d(e,"B",(function(){return s})),n.d(e,"o",(function(){return p})),n.d(e,"r",(function(){return m})),n.d(e,"I",(function(){return u})),n.d(e,"H",(function(){return h})),n.d(e,"Q",(function(){return b})),n.d(e,"E",(function(){return x})),n.d(e,"u",(function(){return f})),n.d(e,"h",(function(){return g})),n.d(e,"t",(function(){return w})),n.d(e,"y",(function(){return v})),n.d(e,"w",(function(){return A})),n.d(e,"C",(function(){return U})),n.d(e,"s",(function(){return k})),n.d(e,"R",(function(){return M})),n.d(e,"q",(function(){return y})),n.d(e,"J",(function(){return D})),n.d(e,"F",(function(){return N})),n.d(e,"S",(function(){return O})),n.d(e,"m",(function(){return j})),n.d(e,"j",(function(){return L})),n.d(e,"n",(function(){return S})),n.d(e,"k",(function(){return C})),n.d(e,"l",(function(){return W})),n.d(e,"z",(function(){return z})),n.d(e,"L",(function(){return _})),n.d(e,"x",(function(){return T})),n.d(e,"T",(function(){return I})),n.d(e,"U",(function(){return $})),n.d(e,"b",(function(){return H})),n.d(e,"O",(function(){return Z})),n.d(e,"A",(function(){return R})),n.d(e,"a",(function(){return F})),n.d(e,"d",(function(){return J})),n.d(e,"f",(function(){return G})),n.d(e,"e",(function(){return K})),n.d(e,"X",(function(){return q})),n.d(e,"c",(function(){return B})),n.d(e,"W",(function(){return V})),n.d(e,"K",(function(){return Q})),n.d(e,"M",(function(){return X})),n.d(e,"N",(function(){return Y})),n.d(e,"p",(function(){return tt})),n.d(e,"P",(function(){return et}));var a=n(4),o=function(t){return JSON.parse(decodeURIComponent(escape(atob(t))))},r=function(t){return btoa(unescape(encodeURIComponent(t)))},i=function(t){return t.toUpperCase()},c=function(t){return t.replaceAll(" ","-").toLowerCase()},d=new a.a(!1),l=new a.a(!1),s=new a.a(!1),p=new a.a(!1),m=new a.a(""),u=new a.a(!1),h=new a.a(!1),b=new a.a(!1),x=new a.a(!1),f=new a.a(!1),g=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({}),E=new a.a(!1),P=0,N=new a.a(!1),O=new a.a(""),j=new a.a(""),L=new a.a(""),S=new a.a(""),C=new a.a(""),W=new a.a(""),z=new a.a(""),_=new a.a(""),T=new a.a(!1),I=new a.a(!1),$=new a.a(!1),H=(new a.a(!1),new a.a(!1),function(){setTimeout((function(){P++,E.next(!0)}),0)}),Z=function(){setTimeout((function(){P>0&&P--,0==P&&E.next(!1)}),0)},R=function(){return E.asObservable()},F=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){return t.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},G=function(t){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(t)},K=function(t){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(t)},q=function(t){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(t)},B=function(t){return/^[0-9]*$/.test(t)},V=function(t){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(t)},Q=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},X=function(t){return t&&(t=t.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==t&&"0"!==t||(t=t.toFixed(2)),t},Y=function(t,e){return t=t?Number(t):0,(0===(e=e?Number(e):0)||"0"===e?0:(t-e)/e*100).toFixed(2)},tt=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},et=function(t,e,n){var a="",o=t.split(e);return o.forEach((function(t,e){"undefined"!==t&&t&&(a+=t,e!==o.length-1&&(a+=n))})),a}},26:function(t,e){t.exports=ReactDOM},7:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var a=n(30),o=n(0),r=n.n(o),i=n(5),c=n(1),d=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),s=n(25),p=n(24),m=function(t){var e=t.label,n=void 0===e?"label":e,o=t.classStyle,i=void 0===o?"default":o,c=t.link,m=void 0!==c&&c,u=t.disabled,h=void 0!==u&&u,b=t.datatoggle,x=void 0===b?"":b,f=t.datatarget,g=void 0===f?"":f,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,E=void 0===D?"":D,P=t.iconAlt,N=void 0===P?"":P,O=t.dataItemName,j=void 0===O?"":O,L=t.id,S=void 0===L?"":L,C=t.type,W=void 0===C?"button":C,z=t.showDisabledMessage,_=void 0===z?"":z,T=t.ariaLabel,I=void 0===T?"":T,$=Object(a.a)(t,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage","ariaLabel"]);return r.a.createElement(d,null,r.a.createElement("div",{className:"".concat(h&&_&&"disabled-button-parent")},m?r.a.createElement("a",{href:w,download:k,target:A,"data-item-name":j,id:S,"aria-label":I},r.a.createElement(l,Object.assign({role:"presentation",disabled:h,classStyle:"".concat(i)},$,{type:W,className:y?"btn-inverse btn btn-success":"btn btn-success"}),""!=E?r.a.createElement("div",{"data-toggle":x,"data-target":g},r.a.createElement("img",{loading:"lazy",className:"button-icon",src:E,alt:N}),r.a.createElement("span",null,n)):r.a.createElement("span",null,n))):r.a.createElement(l,Object.assign({disabled:h,classStyle:i,className:y?"btn-inverse btn btn-success":"btn btn-success",id:S,"data-item-name":j,type:W},$),r.a.createElement("span",null,n)),h&&_&&r.a.createElement(s.a,{placement:"top",delay:{show:250,hide:250},overlay:r.a.createElement(p.a,{id:"button-tooltip"},r.a.createElement("div",{className:"p-1 amarr-h6"},_))},r.a.createElement("div",{className:"disabled-button-overlay"}))))}},751:function(t,e,n){"use strict";n.r(e);var a=n(21),o=n(113);e.default=a.a.create({component:o.a,configuration:{tagname:"amarr-glossary",useShadow:!1},plugins:[]})},8:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var a=n(5),o=n(0),r=n.n(o),i=function(t){var e=t.setter,n=e.componentThemes,o=e.selectedTheme;return r.a.createElement(a.ThemeProvider,{theme:function(){if(!o)return n.theme1;var t=o.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)}},9:function(t,e,n){"use strict";var a=n(0),o=n.n(a),r=n(5),i=n(20),c=n.n(i),d=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(i){console.log(i)}var a=e?[c.a]:[];return o.a.createElement(r.StyleSheetManager,{stylisPlugins:a},o.a.createElement(d.Provider,{value:{rtl:e}},t.children))}}});
|
|
1
|
+
!function(t){function n(n){for(var a,i,s=n[0],c=n[1],l=n[2],p=0,u=[];p<s.length;p++)i=s[p],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(t[a]=c[a]);for(d&&d(n);u.length;)u.shift()();return o.push.apply(o,l||[]),e()}function e(){for(var t,n=0;n<o.length;n++){for(var e=o[n],a=!0,s=1;s<e.length;s++){var c=e[s];0!==r[c]&&(a=!1)}a&&(o.splice(n--,1),t=i(i.s=e[0]))}return t}var a={},r={48:0},o=[];function i(n){if(a[n])return a[n].exports;var e=a[n]={i:n,l:!1,exports:{}};return t[n].call(e.exports,e,e.exports,i),e.l=!0,e.exports}i.m=t,i.c=a,i.d=function(t,n,e){i.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},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,n){if(1&n&&(t=i(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(i.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var a in t)i.d(e,a,function(n){return t[n]}.bind(null,a));return e},i.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(n,"a",n),n},i.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},i.p="/";var s=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=s.push.bind(s);s.push=n,s=s.slice();for(var l=0;l<s.length;l++)n(s[l]);var d=c;o.push([520,0]),e()}({0:function(t,n){t.exports=React},1:function(t,n,e){"use strict";e.d(n,"a",(function(){return a})),e.d(n,"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},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)"),smallMobileAndUpMax:"(max-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)"),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)"),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)")}},10:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var a=e(0),r=e.n(a),o=e(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 n=t.className,e=t.children,a=t.maxWidth,i=void 0===a?1520:a,s=t.padding,c=void 0===s||s;return r.a.createElement(o,{className:n,maxWidth:i,padding:c},e)}},112:function(t,n,e){"use strict";var a=e(3),r=e(0),o=e.n(r),i=e(2),s=e(7),c=e(12),l=e.n(c),d={theme1:{background:"var(--bg-main)"},theme2:{background:"var(--bg-alt)"}},p=e(11),u=e(5),m=e(1);function b(){var t=Object(p.a)(["\n form {\n display: flex;\n margin: 0 0 1rem;\n justify-content: center;\n align-items: center;\n }\n\n h4 {\n color: var(--text-color);\n padding: 0;\n margin: 1.5rem 0;\n }\n\n .document-wrapper {\n display: block;\n justify-content: space-between;\n align-items: center;\n }\n\n .text-style {\n // font-size:1.25rem;\n font-weight: var(--font-weight-semi-bold);\n }\n\n .text-style-description {\n color: var(--complementary-hover-alt-5);\n }\n\n .button-style {\n background-color: var(--accent);\n }\n\n .link-style {\n color: var(--accent);\n }\n\n .border-style {\n border-bottom: 1px solid var(--border-color-soft);\n margin-bottom: 1%;\n }\n\n .text-style-heading {\n font-weight: 600;\n }\n\n .bottom-space {\n margin-bottom: 20px;\n }\n\n // -------------DESKTOP SCREEN------------------\n @media only screen and "," {\n form {\n // gap: 1rem;\n input:first-of-type {\n width: 100%;\n }\n .search-box-parent {\n margin-right: 1rem;\n }\n }\n }\n // -------------DESKTOP SCREEN ENDS------------------\n\n .amarrHighlight {\n color: var(--accent) !important;\n }\n\n .content-style {\n display: flex;\n justify-content: space-between;\n }\n input.form-control {\n padding-left: 40px;\n }\n .search-img {\n width: 20px;\n }\n\n .search-box-parent {\n position: relative;\n width: 50%;\n display: flex;\n gap: 0.5rem;\n }\n\n .glossary {\n margin: 0 auto;\n }\n\n h4 {\n margin: 1rem 0;\n }\n\n .alphabetical-item {\n margin-bottom: 2.5rem;\n }\n\n .glossary-search-form {\n margin-bottom: 46px;\n // gap: 1rem;\n .search-box-parent {\n margin-right: 1rem;\n }\n }\n .heading-style {\n font-weight: var(--font-weight-semi-bold);\n }\n .search-icon {\n position: absolute;\n left: 9px;\n top: 4px;\n }\n .close-icon {\n position: absolute;\n right: 1rem;\n top: 5px;\n }\n .ctalist {\n display: flex;\n gap: 1.5rem;\n }\n @media screen and "," {\n .search-box-parent {\n width: auto;\n flex-grow: 2;\n }\n .search-icon,\n .close-icon {\n top: 6px;\n }\n @supports not (flex-gap: 10px) {\n .ctalist {\n display: block;\n .cta-list-child:not(:last-child) {\n margin-bottom: 20px;\n }\n }\n }\n @supports (display: flex) and (gap: 20px) {\n .ctalist {\n flex-wrap: wrap;\n row-gap: 20px;\n }\n }\n }\n @media screen and "," and "," {\n .search-icon,\n .close-icon {\n top: 6px;\n }\n }\n @media screen and "," and "," {\n .search-icon,\n .close-icon {\n top: 5px;\n }\n }\n @media screen and "," and "," {\n .search-icon,\n .close-icon {\n top: 4px;\n img {\n max-width: 75%;\n }\n }\n }\n @media screen and "," and "," {\n .search-icon {\n left: 9px;\n top: 6px;\n }\n .close-icon {\n top: 6px;\n }\n }\n @media screen and "," {\n .search-icon {\n top: 10px;\n left: 14px;\n }\n .close-icon {\n top: 10px;\n }\n }\n @media screen and "," {\n .button-auto-height {\n button.btn {\n height: min-content;\n white-space: break-spaces;\n text-align: left;\n }\n }\n }\n "]);return b=function(){return t},t}var h=u.default.div.withConfig({displayName:"styles__Content",componentId:"i6xuo2-0"})(["",""],(function(t){var n;(null===(n=t.gradients)||void 0===n?void 0:n.visible)?t.theme.gradient:t.theme;return Object(u.css)(b(),m.b.tabletLandscapeAndUp,m.b.mobileMax,m.b.tabletPortraitUp,m.b.desktop2Max,m.b.desktop2Min,m.b.desktopMin1,m.b.desktop1Min,m.b.smallDesktopAndUp2Max,m.b.mediumDesktopMin,m.b.mediumDesktopAndUp3Max,m.b.largeDesktopMin,m.b.tabletPortraitMax)})),f=e(8),g=e(9),x=e(10),w={searchLabel:"",searchEmptyText:"",noResultText:"",dtoList:[{alphabet:"",items:[{term:"",description:""}]}],ctaSectionList:[{ctaItems:[{label:"",url:"",linkAction:"",isInternal:!1}]}]},v=function(t){var n=l()({},w,Object(i.g)(t.content)),e=Object(r.useState)(""),c=Object(a.a)(e,2),p=c[0],u=c[1],m=Object(r.useState)(n.dtoList),b=Object(a.a)(m,2),v=b[0],A=b[1],U=[],k=[],y=[],M=[],D=[];n.dtoList.forEach((function(t,n){U[n]=t.alphabet,k[n]=t.items}));var O=Object(r.useState)({value:!1,message:""}),E=Object(a.a)(O,2),P=E[0],N=E[1],S=Object(r.useState)(!1),j=Object(a.a)(S,2),C=j[0],L=j[1];return $(document).on("click",'a[href^="#"]',(function(t){t.preventDefault();var n=$(this.hash),e=$("header").height(),a=$(".nav-item.active .sub-menu-box").height();$("html, body").animate({scrollTop:n.offset().top-(e+a+10)},500)})),o.a.createElement(f.a,{setter:{componentThemes:d,selectedTheme:t.theme}},o.a.createElement(g.a,null,o.a.createElement(x.a,{padding:!1},o.a.createElement(h,{isReversed:!1},o.a.createElement("div",{className:"container inner-container"},o.a.createElement("div",{className:"row"},o.a.createElement("div",{className:"col-12 col-xl-9 col-md-10 col-sm-11 glossary"},o.a.createElement("form",{className:"glossary-search-form"},o.a.createElement("div",{className:"search-box-parent"},o.a.createElement("div",{className:"search-icon"},o.a.createElement("img",{loading:"lazy",src:"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/ic-search-light.svg",alt:"Seacrh Icon",className:"search-img"})),o.a.createElement("input",{type:"text",name:"search",placeholder:n.searchEmptyText,className:"form-control",value:p,onChange:function(t){u(t.target.value),""!==t.target.value?(L(!0),N({value:!1,message:""})):(A(n.dtoList),L(!1))},title:"search"}),C&&o.a.createElement("span",{className:"close-icon"},o.a.createElement("img",{loading:"lazy",src:"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/ic-close.svg",alt:"Search Icon",onClick:function(t){""!==p&&(N({value:!1,message:""}),u(""),L(!1)),A(n.dtoList)}}))),o.a.createElement(s.a,{label:Object(i.i)(n.searchLabel),inverse:!1,onClick:function(t){t.preventDefault();var e=p&&p.toLowerCase();e.length>0?(y=[],k.forEach((function(t,n){y=[],t.forEach((function(t,n){-1===t.term.toLowerCase().indexOf(e)&&-1===t.description.toLowerCase().indexOf(e)||y.push(t)})),M[n]=y,M[n].length>0&&(D[n]={alphabet:M[n].length>0?U[n]:"",items:M[n]})})),D.length>0?N({value:!1,message:""}):N({value:!0,message:n.noResultText}),A(D)):A(n.dtoList)}})),o.a.createElement("div",{className:"results accordion accordion-wrapper",id:"search-accordian"},P.value&&o.a.createElement("div",{className:"body-text2"},P.message),v.map((function(t,n){return o.a.createElement("div",{key:n,className:"alphabetical-item"},o.a.createElement("h2",{className:"heading-style amarr-h3"},t.alphabet),t.items.map((function(t,n,e){return o.a.createElement("div",{key:n,className:"document-wrapper",id:t.term.toLowerCase().replace(/ /g,"").replace(",","").replace("(","").replace(")","")},o.a.createElement("h3",{className:"text-style amarr-h5"},t.term),o.a.createElement("p",{className:"body-text2",dangerouslySetInnerHTML:{__html:t.description}}))})))})),n.ctaSectionList&&n.ctaSectionList.map((function(t,n){return o.a.createElement("div",{key:n,className:"mt-4 mb-5"},o.a.createElement("div",{className:"ctalist"},t.ctaItems&&t.ctaItems.length>0&&t.ctaItems.map((function(t,n){return o.a.createElement("div",{className:"".concat(t.label.length>25&&"button-auto-height"," cta-list-child")},o.a.createElement(s.a,{label:Object(i.i)(t.label),link:!0,linkHref:t.url}))}))))}))))))))))};v.defaultProps={theme:"",content:""};n.a=v},2:function(t,n,e){"use strict";e.d(n,"g",(function(){return r})),e.d(n,"W",(function(){return o})),e.d(n,"i",(function(){return i})),e.d(n,"E",(function(){return s})),e.d(n,"H",(function(){return c})),e.d(n,"v",(function(){return l})),e.d(n,"C",(function(){return d})),e.d(n,"o",(function(){return p})),e.d(n,"r",(function(){return u})),e.d(n,"J",(function(){return m})),e.d(n,"I",(function(){return b})),e.d(n,"R",(function(){return h})),e.d(n,"F",(function(){return f})),e.d(n,"u",(function(){return g})),e.d(n,"h",(function(){return x})),e.d(n,"t",(function(){return w})),e.d(n,"y",(function(){return v})),e.d(n,"w",(function(){return A})),e.d(n,"D",(function(){return U})),e.d(n,"s",(function(){return k})),e.d(n,"S",(function(){return y})),e.d(n,"q",(function(){return M})),e.d(n,"K",(function(){return D})),e.d(n,"G",(function(){return P})),e.d(n,"T",(function(){return N})),e.d(n,"m",(function(){return S})),e.d(n,"j",(function(){return j})),e.d(n,"n",(function(){return C})),e.d(n,"k",(function(){return L})),e.d(n,"l",(function(){return W})),e.d(n,"z",(function(){return T})),e.d(n,"M",(function(){return z})),e.d(n,"x",(function(){return _})),e.d(n,"U",(function(){return I})),e.d(n,"V",(function(){return $})),e.d(n,"b",(function(){return H})),e.d(n,"P",(function(){return Z})),e.d(n,"A",(function(){return R})),e.d(n,"a",(function(){return J})),e.d(n,"d",(function(){return F})),e.d(n,"f",(function(){return G})),e.d(n,"e",(function(){return K})),e.d(n,"Y",(function(){return q})),e.d(n,"c",(function(){return B})),e.d(n,"X",(function(){return V})),e.d(n,"L",(function(){return Y})),e.d(n,"N",(function(){return Q})),e.d(n,"O",(function(){return X})),e.d(n,"p",(function(){return tt})),e.d(n,"Q",(function(){return nt})),e.d(n,"B",(function(){return et}));var a=e(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()},s=function(t){return t.replaceAll(" ","-").toLowerCase()},c=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),b=new a.a(!1),h=new a.a(!1),f=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),y=new a.a(!0),M=new a.a(!0),D=new a.a({}),O=new a.a(!1),E=0,P=new a.a(!1),N=new a.a(""),S=new a.a(""),j=new a.a(""),C=new a.a(""),L=new a.a(""),W=new a.a(""),T=new a.a(""),z=new a.a(""),_=new a.a(!1),I=new a.a(!1),$=new a.a(!1),H=(new a.a(!1),new a.a(!1),function(){setTimeout((function(){E++,O.next(!0)}),0)}),Z=function(){setTimeout((function(){E>0&&E--,0==E&&O.next(!1)}),0)},R=function(){return O.asObservable()},J=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)},F=function(t){return t.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},G=function(t){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(t)},K=function(t){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(t)},q=function(t){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(t)},B=function(t){return/^[0-9]*$/.test(t)},V=function(t){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(t)},Y=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},Q=function(t){return t&&(t=t.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==t&&"0"!==t||(t=t.toFixed(2)),t},X=function(t,n){return t=t?Number(t):0,(0===(n=n?Number(n):0)||"0"===n?0:(t-n)/n*100).toFixed(2)},tt=function(t){var n={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&&(n.color=t.selectedColor),t.colorHex&&(n.colorHex=t.colorHex),t.colorZone&&(n.colorZone=t.colorZone),t.selectedConstruction&&(n.model=t.selectedConstruction),t.selectedWindowDesign&&(n.top=t.selectedWindowDesign),t.glazepattern&&(n.glazepattern=t.glazepattern),t.selectedHardware&&(n.hardware=t.selectedHardware),n},nt=function(t,n,e){var a="",r=t.split(n);return r.forEach((function(t,n){"undefined"!==t&&t&&(a+=t,n!==r.length-1&&(a+=e))})),a};function et(t,n){var e=n||"html",a=t;return e||(e="html"),"html"==e&&(a=function(t){var n,e,a,i,s,d=t,p="";n=r(d,"<!--","-->",c,"W3HTMLCOMMENTPOS"),d=n.rest;for(;d.indexOf("<")>-1;)i="",e=d.indexOf("<"),"<STYLE"==d.substr(e,9).toUpperCase()&&(i="css"),"<SCRIPT"==d.substr(e,10).toUpperCase()&&(i="javascript"),-1==(a=d.indexOf(">",e))&&(a=d.length),p+=d.substring(0,e),p+=o(d.substring(e,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,s=0;s<n.arr.length;s++)d=d.replace("W3HTMLCOMMENTPOS",n.arr[s]);return d}(a)),"css"==e&&(a=l(a)),"js"==e&&(a=m(a)),a;function r(t,n,e,a,r){for(var o,i,s="",c=[];t.search(n)>-1;)o=t.search(n),-1==(i=t.indexOf(e,o))&&(i=t.length),r?(c.push(a(t.substring(o,i+e.length))),t=t.substring(0,o)+r+t.substr(i+e.length)):(s+=t.substring(0,o),s+=a(t.substring(o,i+e.length)),t=t.substr(i+e.length));return{rest:s+t,arr:c}}function o(t){for(var n,e,a,r=t,o="";r.search(/(\s|<br>)/)>-1;)n=r.search(/(\s|<br>)/),-1==(e=r.indexOf(">"))&&(e=r.length),o+=r.substring(0,n),o+=i(r.substring(n,e)),r=r.substr(e);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 n,e,a,r,o,i=t,c="";i.indexOf("=")>-1;)e=-1,n=i.indexOf("="),a=i.indexOf("'",n),r=i.indexOf('"',n),(o=i.indexOf(" ",n+2))>-1&&(o<a||-1==a)&&(o<r||-1==r)?e=i.indexOf(" ",n):r>-1&&(r<a||-1==a)&&(r<o||-1==o)?e=i.indexOf('"',i.indexOf('"',n)+1):a>-1&&(a<r||-1==r)&&(a<o||-1==o)&&(e=i.indexOf("'",i.indexOf("'",n)+1)),(!e||-1==e||e<n)&&(e=i.length),c+=i.substring(0,n),c+=s(i.substring(n,e+1)),i=i.substr(e+1);return"<span style=color:green>"+c+i+"</span>"}function s(t){return"<span style=color:#1c8a9c>"+t+"</span>"}function c(t){return"<span style=color:green>"+t+"</span>"}function l(t){var n,e,a,o,i,s,l,p=t,u="";for(p=(a=r(p,/\/\*/,"*/",c,"W3CSSCOMMENTPOS")).rest;p.search("{")>-1;){for(n=p.search("{"),i=p.substr(n+1),l=1,s=0,o=0;o<i.length&&("{"==i.substr(o,1)&&(l++,s++),"}"==i.substr(o,1)&&l--,0!=l);o++);for(0!=l&&(s=0),e=n,o=0;o<=s;o++)e=p.indexOf("}",e+1);-1==e&&(e=p.length),u+=p.substring(0,n+1),u+=d(p.substring(n+1,e)),p=p.substr(e)}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 n,e,a,r,o=t,i="";if(o.indexOf("{")>-1)return l(o);for(;o.search(":")>-1;){for(r=!0,a=n=o.search(":");1==r;)r=!1,e=o.indexOf(";",a)," "==o.substring(e-5,e+1)&&(r=!0,a=e+1);-1==e&&(e=o.length),i+=o.substring(0,n),i+=p(o.substring(n,e+1)),o=o.substr(e+1)}return"<span style=color:#a10d5f>"+i+o+"</span>"}function p(t){var n,e=t,a="";for(e="<span style=color:grey>:</span>"+e.substring(1);e.search(/!important/i)>-1;)n=e.search(/!important/i),a+=e.substring(0,n),a+=u(e.substring(n,n+10)),e=e.substr(n+10);var r=a+e;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 n,e,a,r,o,i,s,l,d,p,u=t,m="",k=[],y="";for(n=0;n<u.length;n++)"\\"==(e=u.substr(n,1))&&(k.push(u.substr(n,2)),e="W3JSESCAPE",n++),y+=e;for(u=y,1;a=A(u,"'","'",b),r=A(u,'"','"',b),o=A(u,/\/\*/,"*/",c),i=A(u,/\/\//,"<br>",c),l=U(u,f),s=v("js",u,h),p=x(u,g),-1!=Math.max(l[0],a[0],r[0],o[0],i[0],s[0],p[0])&&-1!=(d=w(l,a,r,o,i,s,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,n=0;n<k.length;n++)u=u.replace("W3JSESCAPE",k[n]);return"<span style=color:black>"+u+"</span>"}function b(t){return"<span style=color:brown>"+t+"</span>"}function h(t){return"<span style=color:mediumblue>"+t+"</span>"}function f(t){return"<span style=color:red>"+t+"</span>"}function g(t){return"<span style=color:black>"+t+"</span>"}function x(t,n){var e,a,r,o,i=[".","<"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%"];if((o=t.indexOf("."))>-1)for(e=t.substr(o+1),r=0;r<e.length;r++){var s=e[r];for(a=0;a<i.length;a++)if(s.indexOf(i[a])>-1)return[o+1,r+o+1,n]}return[-1,-1,n]}function w(t,n,e,a,r,o,i){var s,c=[];for(s=0;s<arguments.length;s++)arguments[s][0]>-1&&(0==c.length||arguments[s][0]<c[0])&&(c=arguments[s]);return 0==c.length&&(c=arguments[s]),c}function v(t,n,e){var a,r,o,i,s=-1,c=-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=n.indexOf(i[a]))>-1&&(o=/\W/g,n.substr(r+i[a].length,1).match(o)&&n.substr(r-1,1).match(o)&&r>-1&&(-1==s||r<s)&&(c=(s=r)+i[a].length));return[s,c,e]}function A(t,n,e,a){var r,o;return r=t.search(n),-1==(o=t.indexOf(e,r+e.length))&&(o=t.length),[r,o+e.length,a]}function U(t,n){var e,a,r,o,i,s=["<br>"," ",";","(","+",")","[","]",",","&",":","{","}","/","-","*","|","%","="],c=0;for(e=0;e<t.length;e++)for(a=0;a<s.length;a++)if((r=t.substr(e,s[a].length))==s[a]){if("-"==r&&("e"==t.substr(e-1,1)||"E"==t.substr(e-1,1)))continue;if(c<(o=e)&&(i=t.substring(c,o),!isNaN(i)))return[c,o,n];c=e+=s[a].length,e-=1;break}return[-1,-1,n]}}},26:function(t,n){t.exports=ReactDOM},429:function(t,n,e){"use strict";e.r(n);var a=e(20),r=e(112);n.default=a.a.create({component:r.a,configuration:{tagname:"amarr-glossary",useShadow:!1},plugins:[]})},7:function(t,n,e){"use strict";e.d(n,"a",(function(){return u}));var a=e(30),r=e(0),o=e.n(r),i=e(5),s=e(1),c=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;}"],s.b.smallDesktop2Min),d=e(25),p=e(24),u=function(t){var n=t.label,e=void 0===n?"label":n,r=t.classStyle,i=void 0===r?"default":r,s=t.link,u=void 0!==s&&s,m=t.disabled,b=void 0!==m&&m,h=t.datatoggle,f=void 0===h?"":h,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,y=t.inverse,M=void 0!==y&&y,D=t.icon,O=void 0===D?"":D,E=t.iconAlt,P=void 0===E?"":E,N=t.dataItemName,S=void 0===N?"":N,j=t.id,C=void 0===j?"":j,L=t.type,W=void 0===L?"button":L,T=t.showDisabledMessage,z=void 0===T?"":T,_=t.ariaLabel,I=void 0===_?"":_,$=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(c,null,o.a.createElement("div",{className:"".concat(b&&z&&"disabled-button-parent")},u?o.a.createElement("a",{href:w,download:k,target:A,"data-item-name":S,id:C,"aria-label":I},o.a.createElement(l,Object.assign({role:"none",disabled:b,classStyle:"".concat(i)},$,{type:W,className:M?"btn-inverse btn btn-success":"btn btn-success"}),""!=O?o.a.createElement("div",{"data-toggle":f,"data-target":x},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:O,alt:P}),o.a.createElement("span",null,e)):o.a.createElement("span",null,e))):o.a.createElement(l,Object.assign({disabled:b,classStyle:i,className:M?"btn-inverse btn btn-success":"btn btn-success",id:C,"data-item-name":S,type:W},$),o.a.createElement("span",null,e)),b&&z&&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"},z))},o.a.createElement("div",{className:"disabled-button-overlay"}))))}},8:function(t,n,e){"use strict";e.d(n,"a",(function(){return i}));var a=e(5),r=e(0),o=e.n(r),i=function(t){var n=t.setter,e=n.componentThemes,r=n.selectedTheme;return o.a.createElement(a.ThemeProvider,{theme:function(){if(!r)return e.theme1;var t=r.match(/\d+/g).map(Number),n=Object.keys(e).find((function(n){return!(!Array.isArray(t)||1!==t.length)&&(n.includes(t[0])&&e[n])}));return n?e["".concat(n)]:e.theme1}},t.children)}},9:function(t,n,e){"use strict";var a=e(0),r=e.n(a),o=e(5),i=e(21),s=Object(a.createContext)({});n.a=function(t){var n=!1;try{var e;n=(null===(e=document)||void 0===e?void 0:e.dir)&&"rtl"===document.dir.toLowerCase()||!1}catch(c){console.log(c)}var a=n?[i.a]:[];return r.a.createElement(o.StyleSheetManager,{stylisPlugins:a},r.a.createElement(s.Provider,{value:{rtl:n}},t.children))}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-glossary",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"description": "Web component - Glossary",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "glossary.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "7695881d73e62ecff95e1a43ea4594a0bafc609f"
|
|
15
15
|
}
|