@assaabloy/amarr-wc-glossary 2.0.13 → 2.0.16

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.
Files changed (2) hide show
  1. package/glossary.js +1 -1
  2. package/package.json +2 -2
package/glossary.js CHANGED
@@ -1 +1 @@
1
- !function(e){function t(t){for(var a,c,i=t[0],s=t[1],l=t[2],d=0,m=[];d<i.length;d++)c=i[d],Object.prototype.hasOwnProperty.call(r,c)&&r[c]&&m.push(r[c][0]),r[c]=0;for(a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a]);for(u&&u(t);m.length;)m.shift()();return o.push.apply(o,l||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,i=1;i<n.length;i++){var s=n[i];0!==r[s]&&(a=!1)}a&&(o.splice(t--,1),e=c(c.s=n[0]))}return e}var a={},r={48:0},o=[];function c(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.m=e,c.c=a,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)c.d(n,a,function(t){return e[t]}.bind(null,a));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/";var i=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var u=s;o.push([509,0]),n()}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"T",(function(){return o})),n.d(t,"i",(function(){return c})),n.d(t,"C",(function(){return i})),n.d(t,"F",(function(){return s})),n.d(t,"u",(function(){return l})),n.d(t,"A",(function(){return u})),n.d(t,"n",(function(){return d})),n.d(t,"q",(function(){return m})),n.d(t,"H",(function(){return p})),n.d(t,"G",(function(){return f})),n.d(t,"O",(function(){return h})),n.d(t,"D",(function(){return b})),n.d(t,"t",(function(){return g})),n.d(t,"h",(function(){return w})),n.d(t,"s",(function(){return x})),n.d(t,"x",(function(){return v})),n.d(t,"v",(function(){return y})),n.d(t,"B",(function(){return E})),n.d(t,"r",(function(){return N})),n.d(t,"P",(function(){return O})),n.d(t,"p",(function(){return k})),n.d(t,"I",(function(){return j})),n.d(t,"E",(function(){return A})),n.d(t,"Q",(function(){return _})),n.d(t,"l",(function(){return L})),n.d(t,"j",(function(){return z})),n.d(t,"m",(function(){return D})),n.d(t,"k",(function(){return $})),n.d(t,"y",(function(){return I})),n.d(t,"K",(function(){return H})),n.d(t,"w",(function(){return Z})),n.d(t,"R",(function(){return M})),n.d(t,"S",(function(){return P})),n.d(t,"b",(function(){return T})),n.d(t,"N",(function(){return R})),n.d(t,"z",(function(){return U})),n.d(t,"a",(function(){return B})),n.d(t,"d",(function(){return F})),n.d(t,"f",(function(){return J})),n.d(t,"e",(function(){return W})),n.d(t,"V",(function(){return G})),n.d(t,"c",(function(){return q})),n.d(t,"U",(function(){return V})),n.d(t,"J",(function(){return K})),n.d(t,"L",(function(){return Q})),n.d(t,"M",(function(){return X})),n.d(t,"o",(function(){return Y}));var a=n(3),r=function(e){return JSON.parse(decodeURIComponent(escape(atob(e))))},o=function(e){return btoa(unescape(encodeURIComponent(e)))},c=function(e){return e.toUpperCase()},i=function(e){return e.replaceAll(" ","-").toLowerCase()},s=new a.a(!1),l=new a.a(!1),u=new a.a(!1),d=new a.a(!1),m=new a.a(""),p=new a.a(!1),f=new a.a(!1),h=new a.a(!1),b=new a.a(!1),g=new a.a(!1),w=new a.a(!1),x=new a.a(""),v=new a.a(!0),y=new a.a(!0),E=new a.a(!0),N=new a.a(!0),O=new a.a(!0),k=new a.a(!0),j=new a.a({}),S=new a.a(!1),C=0,A=new a.a(!1),_=new a.a(""),L=new a.a(""),z=new a.a(""),D=new a.a(""),$=new a.a(""),I=new a.a(""),H=new a.a(""),Z=new a.a(!1),M=new a.a(!1),P=new a.a(!1),T=function(){setTimeout((function(){C++,S.next(!0)}),0)},R=function(){setTimeout((function(){C>0&&C--,0==C&&S.next(!1)}),0)},U=function(){return S.asObservable()},B=function(e){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(e)},F=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},J=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},W=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},G=function(e){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(e)},q=function(e){return/^[0-9]*$/.test(e)},V=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},K=function(e){if(e&&""!==e&&-1===e.indexOf("(")&&-1===e.indexOf(") ")&&-1===e.indexOf("-")){return"("+e.substring(0,3)+") "+e.substring(3,6)+"-"+e.substring(6,e.length)}return e},Q=function(e){return e&&(e=e.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==e&&"0"!==e||(e=e.toFixed(2)),e},X=function(e,t){return e=e?Number(e):0,(0===(t=t?Number(t):0)||"0"===t?0:(e-t)/t*100).toFixed(2)},Y=function(e){var t={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:e.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:e.selectedHeight,glass:e.selectedGlass,collection:e.selectedCollection,print:!0,baseUrl:"",gplacement:e.selectedWindowPlacement,width:e.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return e.selectedColor&&(t.color=e.selectedColor),e.colorHex&&(t.colorHex=e.colorHex),e.colorZone&&(t.colorZone=e.colorZone),e.selectedConstruction&&(t.model=e.selectedConstruction),e.selectedWindowDesign&&(t.top=e.selectedWindowDesign),e.glazepattern&&(t.glazepattern=e.glazepattern),e.selectedHardware&&(t.hardware=e.selectedHardware),t}},107:function(e,t,n){"use strict";var a=n(2),r=n(0),o=n.n(r),c=n(4).default.section.withConfig({displayName:"styles__Content",componentId:"sc-50398y-0"})(["form{display:flex;margin:0 0 1rem;justify-content:center;align-items:center;}h4{color:#333;padding:0;margin:1.5rem 0;}.document-wrapper{display:block;justify-content:space-between;align-items:center;}.text-style{font-weight:600;}.text-style-description{color:#666;}.button-style{background-color:#006166;}.link-style{color:#006166;}.border-style{border-bottom:1px solid #b6b9bb;margin-bottom:1%;}.text-style-heading{font-weight:600;}.bottom-space{margin-bottom:20px;}@media only screen and (min-width:992px){form{input:first-of-type{width:100%;}.search-box-parent{margin-right:1rem;}}}.amarrHighlight{color:#006166 !important;}.content-style{display:flex;justify-content:space-between;}input.form-control{padding-left:40px;}.search-img{width:20px}.search-box-parent{position:relative;width:50%;display:flex;gap:.5rem;}.glossary{margin:0 auto;}h4{margin:1rem 0;}.alphabetical-item{margin-bottom:2.5rem;}.glossary-search-form{margin-bottom:46px;.search-box-parent{margin-right:1rem;}}.heading-style{font-weight:600;}.search-icon{position:absolute;left:9px;top:4px;}.close-icon{position:absolute;right:1rem;top:5px;}.ctalist{display:flex;gap:1.5rem;}@media screen and (max-width:767px){.search-box-parent{width:auto;flex-grow:2;}.search-icon,.close-icon{top:6px;}@supports not (flex-gap:10px){.ctalist{display:block;.cta-list-child:not(:last-child){margin-bottom:20px;}}}@supports (display:flex) and (gap:20px){.ctalist{flex-wrap:wrap;row-gap:20px;}}}@media screen and (min-width 768px) and (max-width:1023px){.search-icon,.close-icon{top:6px;}}@media screen and (min-width:1023px) and (max-width:1025px){.search-icon,.close-icon{top:5px;}}@media screen and (min-width:1026px) and (max-width:1280px){.search-icon,.close-icon{top:4px;img{max-width:75%;}}}@media screen and (min-width:1281px) and (max-width:1680px){.search-icon{left:9px;top:6px;}.close-icon{top:6px;}}@media screen and (min-width:1681px){.search-icon{top:10px;left:14px;}.close-icon{top:10px;}}@media screen and (max-width:991px){.button-auto-height{button.btn{height:min-content;white-space:break-spaces;text-align:left;}}}"]),i=n(1),s=n(5),l=function(e){var t=e.glossaryData,n=Object(i.g)(t),l=Object(r.useState)(""),u=Object(a.a)(l,2),d=u[0],m=u[1],p=Object(r.useState)(n.dtoList),f=Object(a.a)(p,2),h=f[0],b=f[1],g=[],w=[],x=[],v=[],y=[];n.dtoList.forEach((function(e,t){g[t]=e.alphabet,w[t]=e.items}));var E=Object(r.useState)({value:!1,message:""}),N=Object(a.a)(E,2),O=N[0],k=N[1],j=Object(r.useState)(!1),S=Object(a.a)(j,2),C=S[0],A=S[1];return $(document).on("click",'a[href^="#"]',(function(e){e.preventDefault();var t=$(this.hash),n=$("header").height(),a=$(".nav-item.active .sub-menu-box").height();$("html, body").animate({scrollTop:t.offset().top-(n+a+10)},500)})),o.a.createElement(c,null,o.a.createElement("div",{className:"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",{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:d,onChange:function(e){m(e.target.value),""!==e.target.value?(A(!0),k({value:!1,message:""})):(b(n.dtoList),A(!1))},title:"search"}),C&&o.a.createElement("span",{className:"close-icon"},o.a.createElement("img",{src:"/etc.clientlibs/amarr/clientlibs/themes/amarr/resources/images/ic-close.svg",alt:"Search Icon",onClick:function(e){""!==d&&(k({value:!1,message:""}),m(""),A(!1)),b(n.dtoList)}}))),o.a.createElement(s.a,{label:Object(i.i)(n.searchLabel),inverse:!1,onClick:function(e){e.preventDefault();var t=d&&d.toLowerCase();t.length>0?(x=[],w.forEach((function(e,n){x=[],e.forEach((function(e,n){-1===e.term.toLowerCase().indexOf(t)&&-1===e.description.toLowerCase().indexOf(t)||x.push(e)})),v[n]=x,v[n].length>0&&(y[n]={alphabet:v[n].length>0?g[n]:"",items:v[n]})})),y.length>0?k({value:!1,message:""}):k({value:!0,message:n.noResultText}),b(y)):b(n.dtoList)}})),o.a.createElement("div",{className:"results accordion accordion-wrapper",id:"search-accordian"},O.value&&o.a.createElement("div",{className:"body-text2"},O.message),h.map((function(e,t){return o.a.createElement("div",{key:t,className:"alphabetical-item"},o.a.createElement("h2",{className:"heading-style amarr-h3"},e.alphabet),e.items.map((function(e,t,n){return o.a.createElement("div",{key:t,className:"document-wrapper",id:e.term.toLowerCase().replace(/ /g,"").replace(",","").replace("(","").replace(")","")},o.a.createElement("h3",{className:"text-style amarr-h5"},e.term),o.a.createElement("p",{className:"body-text2",dangerouslySetInnerHTML:{__html:e.description}}))})))})),n.ctaSectionList&&n.ctaSectionList.map((function(e,t){return o.a.createElement("div",{key:t,className:"mt-4 mb-5"},o.a.createElement("div",{className:"ctalist"},e.ctaItems&&e.ctaItems.length>0&&e.ctaItems.map((function(e,t){return o.a.createElement("div",{className:"".concat(e.label.length>25&&"button-auto-height"," cta-list-child")},o.a.createElement(s.a,{label:Object(i.i)(e.label),link:!0,linkHref:e.url}))}))))})))))))};l.defaultProps={theme:"",glossaryData:""};t.a=l},17:function(e,t){e.exports=ReactDOM},418:function(e,t,n){"use strict";n.r(t);var a=n(13),r=n(107);t.default=a.a.create({component:r.a,configuration:{tagname:"amarr-glossary",useShadow:!1},plugins:[]})},5:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(22),r=n(0),o=n.n(r),c=n(4),i=c.default.div.withConfig({displayName:"styles__View",componentId:"sc-1jt3i0i-0"})([""]),s=c.default.button.withConfig({displayName:"styles__Button",componentId:"sc-1jt3i0i-1"})(['font-size:12px;font-family:"Open Sans";font-weight:600;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:#fff;padding:12px 19px 12px 20px;border-radius:4px;background-color:#006166;box-shadow:none;border:none;transition:all ease 300ms;&:hover{transform:scale(1.1);background-color:#338084;color:#fff;}&:focus{transform:scale(1);box-shadow:none !important;background-color:#004347;}&:active{background-color:#006166 !important;box-shadow:none !important;transform:scale(1);border:none !important;}&.btn-inverse{color:#333333;background:#b2cfd1;&:hover{background:#8EB8BB;}&:focus{background:#8EA5A7;border:none;transform:scale(1);box-shadow:none !important;}&:active{background-color:#8EA5A7 !important;border:none !important;transform:scale(1.1);box-shadow:none !important;}}@media(min-width:1201px){font-size:16px;}.button-icon{vertical-align:top;padding-right:8px;}']),l=n(19),u=n(18),d=function(e){var t=e.label,n=void 0===t?"label":t,r=e.classStyle,c=void 0===r?"default":r,d=e.link,m=void 0!==d&&d,p=e.disabled,f=void 0!==p&&p,h=e.datatoggle,b=void 0===h?"":h,g=e.datatarget,w=void 0===g?"":g,x=e.linkHref,v=e.target,y=void 0===v?"_self":v,E=e.downloadLink,N=void 0!==E&&E,O=e.inverse,k=void 0!==O&&O,j=e.icon,S=void 0===j?"":j,C=e.iconAlt,A=void 0===C?"":C,_=e.dataItemName,L=void 0===_?"":_,z=e.id,D=void 0===z?"":z,$=e.type,I=void 0===$?"button":$,H=e.showDisabledMessage,Z=void 0===H?"":H,M=Object(a.a)(e,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage"]);return o.a.createElement(i,null,o.a.createElement("div",{className:"".concat(f&&Z&&"disabled-button-parent")},m?o.a.createElement("a",{href:x,download:N,target:y,"data-item-name":L,id:D},o.a.createElement(s,Object.assign({disabled:f,classStyle:"".concat(c)},M,{type:I,className:k?"btn-inverse btn btn-success":"btn btn-success"}),""!=S?o.a.createElement("div",{"data-toggle":b,"data-target":w},o.a.createElement("img",{className:"button-icon",src:S,alt:A}),o.a.createElement("span",null,n)):o.a.createElement("span",null,n))):o.a.createElement(s,Object.assign({disabled:f,classStyle:c,className:k?"btn-inverse btn btn-success":"btn btn-success",id:D,"data-item-name":L,type:I},M),o.a.createElement("span",null,n)),f&&Z&&o.a.createElement(l.a,{placement:"top",delay:{show:250,hide:250},overlay:o.a.createElement(u.a,{id:"button-tooltip"},o.a.createElement("div",{className:"p-1 amarr-h6"},Z))},o.a.createElement("div",{className:"disabled-button-overlay"}))))}}});
1
+ !function(e){function t(t){for(var a,i,c=t[0],s=t[1],l=t[2],u=0,m=[];u<c.length;u++)i=c[u],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&m.push(r[i][0]),r[i]=0;for(a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a]);for(d&&d(t);m.length;)m.shift()();return o.push.apply(o,l||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],a=!0,c=1;c<n.length;c++){var s=n[c];0!==r[s]&&(a=!1)}a&&(o.splice(t--,1),e=i(i.s=n[0]))}return e}var a={},r={49:0},o=[];function i(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=a,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/";var c=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],s=c.push.bind(c);c.push=t,c=c.slice();for(var l=0;l<c.length;l++)t(c[l]);var d=s;o.push([838,0]),n()}({0:function(e,t){e.exports=React},1:function(e,t,n){"use strict";n.d(t,"g",(function(){return r})),n.d(t,"U",(function(){return o})),n.d(t,"i",(function(){return i})),n.d(t,"D",(function(){return c})),n.d(t,"G",(function(){return s})),n.d(t,"v",(function(){return l})),n.d(t,"B",(function(){return d})),n.d(t,"o",(function(){return u})),n.d(t,"r",(function(){return m})),n.d(t,"I",(function(){return p})),n.d(t,"H",(function(){return f})),n.d(t,"P",(function(){return h})),n.d(t,"E",(function(){return g})),n.d(t,"u",(function(){return b})),n.d(t,"h",(function(){return w})),n.d(t,"t",(function(){return x})),n.d(t,"y",(function(){return v})),n.d(t,"w",(function(){return y})),n.d(t,"C",(function(){return E})),n.d(t,"s",(function(){return N})),n.d(t,"Q",(function(){return O})),n.d(t,"q",(function(){return k})),n.d(t,"J",(function(){return j})),n.d(t,"F",(function(){return A})),n.d(t,"R",(function(){return z})),n.d(t,"m",(function(){return _})),n.d(t,"j",(function(){return L})),n.d(t,"n",(function(){return D})),n.d(t,"k",(function(){return $})),n.d(t,"l",(function(){return I})),n.d(t,"z",(function(){return H})),n.d(t,"L",(function(){return Z})),n.d(t,"x",(function(){return M})),n.d(t,"S",(function(){return P})),n.d(t,"T",(function(){return T})),n.d(t,"b",(function(){return R})),n.d(t,"O",(function(){return U})),n.d(t,"A",(function(){return B})),n.d(t,"a",(function(){return W})),n.d(t,"d",(function(){return F})),n.d(t,"f",(function(){return J})),n.d(t,"e",(function(){return G})),n.d(t,"W",(function(){return q})),n.d(t,"c",(function(){return V})),n.d(t,"V",(function(){return K})),n.d(t,"K",(function(){return Q})),n.d(t,"M",(function(){return X})),n.d(t,"N",(function(){return Y})),n.d(t,"p",(function(){return ee}));var a=n(3),r=function(e){return JSON.parse(decodeURIComponent(escape(atob(e))))},o=function(e){return btoa(unescape(encodeURIComponent(e)))},i=function(e){return e.toUpperCase()},c=function(e){return e.replaceAll(" ","-").toLowerCase()},s=new a.a(!1),l=new a.a(!1),d=new a.a(!1),u=new a.a(!1),m=new a.a(""),p=new a.a(!1),f=new a.a(!1),h=new a.a(!1),g=new a.a(!1),b=new a.a(!1),w=new a.a(!1),x=new a.a(""),v=new a.a(!0),y=new a.a(!0),E=new a.a(!0),N=new a.a(!0),O=new a.a(!0),k=new a.a(!0),j=new a.a({}),S=new a.a(!1),C=0,A=new a.a(!1),z=new a.a(""),_=new a.a(""),L=new a.a(""),D=new a.a(""),$=new a.a(""),I=new a.a(""),H=new a.a(""),Z=new a.a(""),M=new a.a(!1),P=new a.a(!1),T=new a.a(!1),R=function(){setTimeout((function(){C++,S.next(!0)}),0)},U=function(){setTimeout((function(){C>0&&C--,0==C&&S.next(!1)}),0)},B=function(){return S.asObservable()},W=function(e){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(e)},F=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},J=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},G=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},q=function(e){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(e)},V=function(e){return/^[0-9]*$/.test(e)},K=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},Q=function(e){if(e&&""!==e&&-1===e.indexOf("(")&&-1===e.indexOf(") ")&&-1===e.indexOf("-")){return"("+e.substring(0,3)+") "+e.substring(3,6)+"-"+e.substring(6,e.length)}return e},X=function(e){return e&&(e=e.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==e&&"0"!==e||(e=e.toFixed(2)),e},Y=function(e,t){return e=e?Number(e):0,(0===(t=t?Number(t):0)||"0"===t?0:(e-t)/t*100).toFixed(2)},ee=function(e){var t={tabs:!0,type:"designer",clavos:!1,download:!0,quote:!0,srcUrl:"/DoorApp",id:"AmarrDoorDesigner",panel:e.selectedPanel,brand:"",myGuid:"d-608280c6f378f8.36911414",email:!0,height:e.selectedHeight,glass:e.selectedGlass,collection:e.selectedCollection,print:!0,baseUrl:"",gplacement:e.selectedWindowPlacement,width:e.selectedWidth,srcDir:"DoorApp",MosaicName:"Mosaic",logooption:""};return e.selectedColor&&(t.color=e.selectedColor),e.colorHex&&(t.colorHex=e.colorHex),e.colorZone&&(t.colorZone=e.colorZone),e.selectedConstruction&&(t.model=e.selectedConstruction),e.selectedWindowDesign&&(t.top=e.selectedWindowDesign),e.glazepattern&&(t.glazepattern=e.glazepattern),e.selectedHardware&&(t.hardware=e.selectedHardware),t}},108:function(e,t,n){"use strict";var a=n(2),r=n(0),o=n.n(r),i=n(4).default.section.withConfig({displayName:"styles__Content",componentId:"sc-50398y-0"})(["form{display:flex;margin:0 0 1rem;justify-content:center;align-items:center;}h4{color:#333;padding:0;margin:1.5rem 0;}.document-wrapper{display:block;justify-content:space-between;align-items:center;}.text-style{font-weight:600;}.text-style-description{color:#666;}.button-style{background-color:#006166;}.link-style{color:#006166;}.border-style{border-bottom:1px solid #b6b9bb;margin-bottom:1%;}.text-style-heading{font-weight:600;}.bottom-space{margin-bottom:20px;}@media only screen and (min-width:992px){form{input:first-of-type{width:100%;}.search-box-parent{margin-right:1rem;}}}.amarrHighlight{color:#006166 !important;}.content-style{display:flex;justify-content:space-between;}input.form-control{padding-left:40px;}.search-img{width:20px}.search-box-parent{position:relative;width:50%;display:flex;gap:.5rem;}.glossary{margin:0 auto;}h4{margin:1rem 0;}.alphabetical-item{margin-bottom:2.5rem;}.glossary-search-form{margin-bottom:46px;.search-box-parent{margin-right:1rem;}}.heading-style{font-weight:600;}.search-icon{position:absolute;left:9px;top:4px;}.close-icon{position:absolute;right:1rem;top:5px;}.ctalist{display:flex;gap:1.5rem;}@media screen and (max-width:767px){.search-box-parent{width:auto;flex-grow:2;}.search-icon,.close-icon{top:6px;}@supports not (flex-gap:10px){.ctalist{display:block;.cta-list-child:not(:last-child){margin-bottom:20px;}}}@supports (display:flex) and (gap:20px){.ctalist{flex-wrap:wrap;row-gap:20px;}}}@media screen and (min-width 768px) and (max-width:1023px){.search-icon,.close-icon{top:6px;}}@media screen and (min-width:1023px) and (max-width:1025px){.search-icon,.close-icon{top:5px;}}@media screen and (min-width:1026px) and (max-width:1280px){.search-icon,.close-icon{top:4px;img{max-width:75%;}}}@media screen and (min-width:1281px) and (max-width:1680px){.search-icon{left:9px;top:6px;}.close-icon{top:6px;}}@media screen and (min-width:1681px){.search-icon{top:10px;left:14px;}.close-icon{top:10px;}}@media screen and (max-width:991px){.button-auto-height{button.btn{height:min-content;white-space:break-spaces;text-align:left;}}}"]),c=n(1),s=n(5),l=function(e){var t=e.glossaryData,n=Object(c.g)(t),l=Object(r.useState)(""),d=Object(a.a)(l,2),u=d[0],m=d[1],p=Object(r.useState)(n.dtoList),f=Object(a.a)(p,2),h=f[0],g=f[1],b=[],w=[],x=[],v=[],y=[];n.dtoList.forEach((function(e,t){b[t]=e.alphabet,w[t]=e.items}));var E=Object(r.useState)({value:!1,message:""}),N=Object(a.a)(E,2),O=N[0],k=N[1],j=Object(r.useState)(!1),S=Object(a.a)(j,2),C=S[0],A=S[1];return $(document).on("click",'a[href^="#"]',(function(e){e.preventDefault();var t=$(this.hash),n=$("header").height(),a=$(".nav-item.active .sub-menu-box").height();$("html, body").animate({scrollTop:t.offset().top-(n+a+10)},500)})),o.a.createElement(i,null,o.a.createElement("div",{className:"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:u,onChange:function(e){m(e.target.value),""!==e.target.value?(A(!0),k({value:!1,message:""})):(g(n.dtoList),A(!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(e){""!==u&&(k({value:!1,message:""}),m(""),A(!1)),g(n.dtoList)}}))),o.a.createElement(s.a,{label:Object(c.i)(n.searchLabel),inverse:!1,onClick:function(e){e.preventDefault();var t=u&&u.toLowerCase();t.length>0?(x=[],w.forEach((function(e,n){x=[],e.forEach((function(e,n){-1===e.term.toLowerCase().indexOf(t)&&-1===e.description.toLowerCase().indexOf(t)||x.push(e)})),v[n]=x,v[n].length>0&&(y[n]={alphabet:v[n].length>0?b[n]:"",items:v[n]})})),y.length>0?k({value:!1,message:""}):k({value:!0,message:n.noResultText}),g(y)):g(n.dtoList)}})),o.a.createElement("div",{className:"results accordion accordion-wrapper",id:"search-accordian"},O.value&&o.a.createElement("div",{className:"body-text2"},O.message),h.map((function(e,t){return o.a.createElement("div",{key:t,className:"alphabetical-item"},o.a.createElement("h2",{className:"heading-style amarr-h3"},e.alphabet),e.items.map((function(e,t,n){return o.a.createElement("div",{key:t,className:"document-wrapper",id:e.term.toLowerCase().replace(/ /g,"").replace(",","").replace("(","").replace(")","")},o.a.createElement("h3",{className:"text-style amarr-h5"},e.term),o.a.createElement("p",{className:"body-text2",dangerouslySetInnerHTML:{__html:e.description}}))})))})),n.ctaSectionList&&n.ctaSectionList.map((function(e,t){return o.a.createElement("div",{key:t,className:"mt-4 mb-5"},o.a.createElement("div",{className:"ctalist"},e.ctaItems&&e.ctaItems.length>0&&e.ctaItems.map((function(e,t){return o.a.createElement("div",{className:"".concat(e.label.length>25&&"button-auto-height"," cta-list-child")},o.a.createElement(s.a,{label:Object(c.i)(e.label),link:!0,linkHref:e.url}))}))))})))))))};l.defaultProps={theme:"",glossaryData:""};t.a=l},19:function(e,t){e.exports=ReactDOM},5:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(22),r=n(0),o=n.n(r),i=n(4),c=i.default.div.withConfig({displayName:"styles__View",componentId:"sc-1jt3i0i-0"})([""]),s=i.default.button.withConfig({displayName:"styles__Button",componentId:"sc-1jt3i0i-1"})(['font-size:12px;font-family:"Open Sans";font-weight:600;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:#fff;padding:12px 19px 12px 20px;border-radius:4px;background-color:#006166;box-shadow:none;border:none;transition:all ease 300ms;&:hover{transform:scale(1.1);background-color:#338084;color:#fff;}&:focus{transform:scale(1);box-shadow:none !important;background-color:#004347;}&:active{background-color:#006166 !important;box-shadow:none !important;transform:scale(1);border:none !important;}&.btn-inverse{color:#333333;background:#b2cfd1;&:hover{background:#8EB8BB;}&:focus{background:#8EA5A7;border:none;transform:scale(1);box-shadow:none !important;}&:active{background-color:#8EA5A7 !important;border:none !important;transform:scale(1.1);box-shadow:none !important;}}@media(min-width:1201px){font-size:16px;}.button-icon{vertical-align:top;padding-right:8px;}']),l=n(18),d=n(17),u=function(e){var t=e.label,n=void 0===t?"label":t,r=e.classStyle,i=void 0===r?"default":r,u=e.link,m=void 0!==u&&u,p=e.disabled,f=void 0!==p&&p,h=e.datatoggle,g=void 0===h?"":h,b=e.datatarget,w=void 0===b?"":b,x=e.linkHref,v=e.target,y=void 0===v?"_self":v,E=e.downloadLink,N=void 0!==E&&E,O=e.inverse,k=void 0!==O&&O,j=e.icon,S=void 0===j?"":j,C=e.iconAlt,A=void 0===C?"":C,z=e.dataItemName,_=void 0===z?"":z,L=e.id,D=void 0===L?"":L,$=e.type,I=void 0===$?"button":$,H=e.showDisabledMessage,Z=void 0===H?"":H,M=Object(a.a)(e,["label","classStyle","link","disabled","datatoggle","datatarget","linkHref","target","downloadLink","inverse","icon","iconAlt","dataItemName","id","type","showDisabledMessage"]);return o.a.createElement(c,null,o.a.createElement("div",{className:"".concat(f&&Z&&"disabled-button-parent")},m?o.a.createElement("a",{href:x,download:N,target:y,"data-item-name":_,id:D},o.a.createElement(s,Object.assign({disabled:f,classStyle:"".concat(i)},M,{type:I,className:k?"btn-inverse btn btn-success":"btn btn-success"}),""!=S?o.a.createElement("div",{"data-toggle":g,"data-target":w},o.a.createElement("img",{loading:"lazy",className:"button-icon",src:S,alt:A}),o.a.createElement("span",null,n)):o.a.createElement("span",null,n))):o.a.createElement(s,Object.assign({disabled:f,classStyle:i,className:k?"btn-inverse btn btn-success":"btn btn-success",id:D,"data-item-name":_,type:I},M),o.a.createElement("span",null,n)),f&&Z&&o.a.createElement(l.a,{placement:"top",delay:{show:250,hide:250},overlay:o.a.createElement(d.a,{id:"button-tooltip"},o.a.createElement("div",{className:"p-1 amarr-h6"},Z))},o.a.createElement("div",{className:"disabled-button-overlay"}))))}},745:function(e,t,n){"use strict";n.r(t);var a=n(14),r=n(108);t.default=a.a.create({component:r.a,configuration:{tagname:"amarr-glossary",useShadow:!1},plugins:[]})}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assaabloy/amarr-wc-glossary",
3
- "version": "2.0.13",
3
+ "version": "2.0.16",
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": "7dd3c4369442b387351da7807a9979172dd760dc"
14
+ "gitHead": "7bbf0c0df7df5c71c35eea64eb7f8ec7ea230f04"
15
15
  }