@assaabloy/amarr-wc-qna 3.0.7 → 3.0.8
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/package.json +2 -2
- package/qna.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@assaabloy/amarr-wc-qna",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8",
|
|
4
4
|
"description": "Web component - Qna",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "qna.js",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
},
|
|
12
12
|
"author": "Nagarro",
|
|
13
13
|
"license": "MIT",
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "a050fed67625ff5bd34612fff8b26380e0caa831"
|
|
15
15
|
}
|
package/qna.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){function n(n){for(var a,o,d=n[0],c=n[1],l=n[2],p=0,s=[];p<d.length;p++)o=d[p],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&s.push(r[o][0]),r[o]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(u&&u(n);s.length;)s.shift()();return i.push.apply(i,l||[]),t()}function t(){for(var e,n=0;n<i.length;n++){for(var t=i[n],a=!0,d=1;d<t.length;d++){var c=t[d];0!==r[c]&&(a=!1)}a&&(i.splice(n--,1),e=o(o.s=t[0]))}return e}var a={},r={67:0},i=[];function o(n){if(a[n])return a[n].exports;var t=a[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=e,o.c=a,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,n){if(1&n&&(e=o(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)o.d(t,a,function(n){return e[n]}.bind(null,a));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="/";var d=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=d.push.bind(d);d.push=n,d=d.slice();for(var l=0;l<d.length;l++)n(d[l]);var u=c;i.push([855,0]),t()}({0:function(e,n){e.exports=React},1:function(e,n,t){"use strict";t.d(n,"g",(function(){return r})),t.d(n,"V",(function(){return i})),t.d(n,"i",(function(){return o})),t.d(n,"D",(function(){return d})),t.d(n,"G",(function(){return c})),t.d(n,"v",(function(){return l})),t.d(n,"B",(function(){return u})),t.d(n,"o",(function(){return p})),t.d(n,"r",(function(){return s})),t.d(n,"I",(function(){return m})),t.d(n,"H",(function(){return f})),t.d(n,"Q",(function(){return x})),t.d(n,"E",(function(){return h})),t.d(n,"u",(function(){return w})),t.d(n,"h",(function(){return g})),t.d(n,"t",(function(){return b})),t.d(n,"y",(function(){return y})),t.d(n,"w",(function(){return v})),t.d(n,"C",(function(){return E})),t.d(n,"s",(function(){return q})),t.d(n,"R",(function(){return O})),t.d(n,"q",(function(){return N})),t.d(n,"J",(function(){return z})),t.d(n,"F",(function(){return C})),t.d(n,"S",(function(){return j})),t.d(n,"m",(function(){return _})),t.d(n,"j",(function(){return Z})),t.d(n,"n",(function(){return D})),t.d(n,"k",(function(){return P})),t.d(n,"l",(function(){return S})),t.d(n,"z",(function(){return $})),t.d(n,"L",(function(){return M})),t.d(n,"x",(function(){return H})),t.d(n,"T",(function(){return F})),t.d(n,"U",(function(){return I})),t.d(n,"b",(function(){return U})),t.d(n,"O",(function(){return R})),t.d(n,"A",(function(){return T})),t.d(n,"a",(function(){return W})),t.d(n,"d",(function(){return J})),t.d(n,"f",(function(){return L})),t.d(n,"e",(function(){return G})),t.d(n,"X",(function(){return B})),t.d(n,"c",(function(){return K})),t.d(n,"W",(function(){return Q})),t.d(n,"K",(function(){return V})),t.d(n,"M",(function(){return X})),t.d(n,"N",(function(){return Y})),t.d(n,"p",(function(){return ee})),t.d(n,"P",(function(){return ne}));var a=t(3),r=function(e){return JSON.parse(decodeURIComponent(escape(atob(e))))},i=function(e){return btoa(unescape(encodeURIComponent(e)))},o=function(e){return e.toUpperCase()},d=function(e){return e.replaceAll(" ","-").toLowerCase()},c=new a.a(!1),l=new a.a(!1),u=new a.a(!1),p=new a.a(!1),s=new a.a(""),m=new a.a(!1),f=new a.a(!1),x=new a.a(!1),h=new a.a(!1),w=new a.a(!1),g=new a.a(!1),b=new a.a(""),y=new a.a(!0),v=new a.a(!0),E=new a.a(!0),q=new a.a(!0),O=new a.a(!0),N=new a.a(!0),z=new a.a({}),A=new a.a(!1),k=0,C=new a.a(!1),j=new a.a(""),_=new a.a(""),Z=new a.a(""),D=new a.a(""),P=new a.a(""),S=new a.a(""),$=new a.a(""),M=new a.a(""),H=new a.a(!1),F=new a.a(!1),I=new a.a(!1),U=function(){setTimeout((function(){k++,A.next(!0)}),0)},R=function(){setTimeout((function(){k>0&&k--,0==k&&A.next(!1)}),0)},T=function(){return A.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)},J=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},L=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)},B=function(e){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(e)},K=function(e){return/^[0-9]*$/.test(e)},Q=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},V=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,n){return e=e?Number(e):0,(0===(n=n?Number(n):0)||"0"===n?0:(e-n)/n*100).toFixed(2)},ee=function(e){var n={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&&(n.color=e.selectedColor),e.colorHex&&(n.colorHex=e.colorHex),e.colorZone&&(n.colorZone=e.colorZone),e.selectedConstruction&&(n.model=e.selectedConstruction),e.selectedWindowDesign&&(n.top=e.selectedWindowDesign),e.glazepattern&&(n.glazepattern=e.glazepattern),e.selectedHardware&&(n.hardware=e.selectedHardware),n},ne=function(e,n,t){var a="",r=e.split(n);return r.forEach((function(e,n){"undefined"!==e&&e&&(a+=e,n!==r.length-1&&(a+=t))})),a}},19:function(e,n){e.exports=ReactDOM},76:function(e,n,t){"use strict";var a=t(0),r=t.n(a),i=t(4),o=i.default.section.withConfig({displayName:"styles__Content",componentId:"sc-1irq4x3-0"})(["ol.qna-container{margin-bottom:0px;width:100%;margin-left:-2rem;@media screen and (min-width:1681px){margin-left:-78px;}@media screen and (min-width:1281px) and (max-width:1680px){margin-left:-45px;line-height:28px;}@media screen and (min-width:768px) and (max-width:1023px){line-height:24px;margin-left:-32px;}@media screen and (min-width:1024px) and (max-width:1025px){line-height:24px;margin-left:-8px;}@media screen and (min-width:1026px) and (max-width:1280px){line-height:24px;margin-left:-24px;}@media screen and (max-width:767px){line-height:24px;margin-left:-20px;}}li{padding-bottom:40px;@media screen and (max-width:1023px){padding-bottom:0px;}@media screen and (min-width:1024px) and (max-width:1680px){padding-bottom:15px;}}li:last-child{padding-bottom:0px;}.qna-container li::marker{font-size:24px;font-weight:600;@media screen and (min-width:1281px) and (max-width:1680px){font-size:18px;}@media screen and (min-width:768px) and (max-width:1280px){font-size:16px;}@media(max-width:767px){font-size:18px;}}@media(max-width:768px){li{margin:0px 0px 0px 36px;}.qna-parent{margin-bottom:24px;&:last-child{margin-bottom:12px;}}}.qna-content-container{@media(max-width:768px){display:block;width:100% !important;padding-right:20px;margin-bottom:10px;padding-left:16px;}display:inline-block;width:50%;vertical-align:top;padding-left:40px;@media(max-width:1680px){padding-left:20px;}&.qna-radiogroup{width:45%;margin:0;@media(min-width:769px){padding:0;padding-left:120px;}& label{display:inline-block;margin-left:14px;line-height:30px;&.yes-label{margin-right:42px;}}& span.input-radio-btn-container{position:relative;}& input[type='radio']:after{width:20px;height:20px;border-radius:20px;top:-10px;left:-3px;position:relative;background-color:white;content:'';display:inline-block;visibility:visible;border:2px solid #8d8d8d;@media screen and (max-width:1680px){width:18px;height:18px;top:-5px;left:-2px;}@media screen and (max-width:1280px){width:16px;height:16px;top:-3px;left:-2px;}}& input[type='radio']:checked:after{border:2px solid #006166;}& input[type='radio']:checked + span{height:10px;width:10px;border-radius:10px;background:#006166;position:absolute;top:15px;left:2px;@media screen and (max-width:1680px){width:10px;height:10px;top:8px;}@media screen and (min-width:1025px) and (max-width:1280px){height:8px;width:8px;top:8px;left:2px;}@media screen and (min-width:992px) and (max-width:1024px){width:9px;height:9px;top:5.8px;left:1.2px;}@media screen and (min-width:768px) and (max-width:991px){width:9px;height:9px;top:6.2px;left:1.25px;}@media screen and (max-width:767px){width:8px;height:8px;top:9.6px;}}}&.qna-question-container{width:55%;& h3{font-weight:600;}& .description-style{@media(max-width:768px){padding-top:20px;}}}}"]),d=t(1),c=t(2),l=i.default.section.withConfig({displayName:"styles__Content",componentId:"sc-1xk6uy9-0"})([".text-style{font-size:1.4rem;}.description-style{}.radio-container{display:flex;align-items:center;gap:10rem;}@media screen and (min-width:768px){.radio-wrapper1{padding-left:120px;.radio-container:not(:last-child){margin-right:42px;}}}@media screen and (max-width:767px){.radio-wrapper1{padding-left:20px;}}"]),u=function(e){var n=e.item,t=e.yeslabel,i=e.nolabel,o=e.name,d=Object(a.useState)(!1),u=Object(c.a)(d,2),p=u[0],s=u[1],m=Object(a.useState)(!1),f=Object(c.a)(m,2),x=f[0],h=f[1];return r.a.createElement(l,null,r.a.createElement("div",{className:"d-flex align-items-baseline flex-wrap"},r.a.createElement("div",{className:"qna-question-container qna-content-container"},r.a.createElement("h5",null,n.question.text),r.a.createElement("div",{className:"d-none d-lg-block description-style body-text2"},x?p?n.yesAnswer.text:n.noAnswer.text:"")),r.a.createElement("div",{className:"radio-wrapper1"},r.a.createElement("div",{className:"radio-container"},r.a.createElement("input",{id:"yes-".concat(o),type:"radio",name:o,value:"yes",className:"qna-yes-radio",onChange:function(){h(!0),s(!0)}}),r.a.createElement("label",{htmlFor:"yes-".concat(o)},r.a.createElement("span",null,r.a.createElement("div",null)),t)),r.a.createElement("div",{className:"radio-container"},r.a.createElement("input",{id:"no-".concat(o),type:"radio",name:o,value:"no",className:"qna-no-radio",onChange:function(){h(!0),s(!1)}}),r.a.createElement("label",{htmlFor:"no-".concat(o)},r.a.createElement("span",null,r.a.createElement("div",null))," ",i)))),r.a.createElement("span",null,r.a.createElement("div",{className:"qna-question-container qna-content-container d-md-block d-lg-none "},x&&r.a.createElement("div",{className:"description-style body-text2 d-md-block d-lg-none mb-4"},x?p?n.yesAnswer.text:n.noAnswer.text:""))))},p=function(e){var n=e.qnaData,t=Object(d.g)(n);return r.a.createElement(o,null,r.a.createElement("div",{className:"container"},r.a.createElement("div",{className:"row"},r.a.createElement("ol",{className:"qna-container",role:"group"},t.qnaItems.map((function(e,n){return r.a.createElement("li",{key:n,className:"amarr-h5 qna-parent"},r.a.createElement(u,{item:e,yeslabel:t.yesLabel.text,nolabel:t.noLabel.text,name:"answer"+n}))}))))))};p.defaultProps={config:"",theme:"",qnaData:""};n.a=p},761:function(e,n,t){"use strict";t.r(n);var a=t(14),r=t(76);n.default=a.a.create({component:r.a,configuration:{tagname:"amarr-qna",useShadow:!1},plugins:[]})}});
|
|
1
|
+
!function(e){function n(n){for(var a,o,d=n[0],c=n[1],l=n[2],p=0,s=[];p<d.length;p++)o=d[p],Object.prototype.hasOwnProperty.call(r,o)&&r[o]&&s.push(r[o][0]),r[o]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(e[a]=c[a]);for(u&&u(n);s.length;)s.shift()();return i.push.apply(i,l||[]),t()}function t(){for(var e,n=0;n<i.length;n++){for(var t=i[n],a=!0,d=1;d<t.length;d++){var c=t[d];0!==r[c]&&(a=!1)}a&&(i.splice(n--,1),e=o(o.s=t[0]))}return e}var a={},r={67:0},i=[];function o(n){if(a[n])return a[n].exports;var t=a[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=e,o.c=a,o.d=function(e,n,t){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,n){if(1&n&&(e=o(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)o.d(t,a,function(n){return e[n]}.bind(null,a));return t},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="/";var d=this["webpackJsonpamarr-frontend-components"]=this["webpackJsonpamarr-frontend-components"]||[],c=d.push.bind(d);d.push=n,d=d.slice();for(var l=0;l<d.length;l++)n(d[l]);var u=c;i.push([854,0]),t()}({0:function(e,n){e.exports=React},1:function(e,n,t){"use strict";t.d(n,"g",(function(){return r})),t.d(n,"V",(function(){return i})),t.d(n,"i",(function(){return o})),t.d(n,"D",(function(){return d})),t.d(n,"G",(function(){return c})),t.d(n,"v",(function(){return l})),t.d(n,"B",(function(){return u})),t.d(n,"o",(function(){return p})),t.d(n,"r",(function(){return s})),t.d(n,"I",(function(){return m})),t.d(n,"H",(function(){return f})),t.d(n,"Q",(function(){return x})),t.d(n,"E",(function(){return h})),t.d(n,"u",(function(){return w})),t.d(n,"h",(function(){return g})),t.d(n,"t",(function(){return b})),t.d(n,"y",(function(){return y})),t.d(n,"w",(function(){return v})),t.d(n,"C",(function(){return E})),t.d(n,"s",(function(){return q})),t.d(n,"R",(function(){return O})),t.d(n,"q",(function(){return N})),t.d(n,"J",(function(){return z})),t.d(n,"F",(function(){return C})),t.d(n,"S",(function(){return j})),t.d(n,"m",(function(){return _})),t.d(n,"j",(function(){return Z})),t.d(n,"n",(function(){return D})),t.d(n,"k",(function(){return P})),t.d(n,"l",(function(){return S})),t.d(n,"z",(function(){return $})),t.d(n,"L",(function(){return M})),t.d(n,"x",(function(){return H})),t.d(n,"T",(function(){return F})),t.d(n,"U",(function(){return I})),t.d(n,"b",(function(){return U})),t.d(n,"O",(function(){return R})),t.d(n,"A",(function(){return T})),t.d(n,"a",(function(){return W})),t.d(n,"d",(function(){return J})),t.d(n,"f",(function(){return L})),t.d(n,"e",(function(){return G})),t.d(n,"X",(function(){return B})),t.d(n,"c",(function(){return K})),t.d(n,"W",(function(){return Q})),t.d(n,"K",(function(){return V})),t.d(n,"M",(function(){return X})),t.d(n,"N",(function(){return Y})),t.d(n,"p",(function(){return ee})),t.d(n,"P",(function(){return ne}));var a=t(3),r=function(e){return JSON.parse(decodeURIComponent(escape(atob(e))))},i=function(e){return btoa(unescape(encodeURIComponent(e)))},o=function(e){return e.toUpperCase()},d=function(e){return e.replaceAll(" ","-").toLowerCase()},c=new a.a(!1),l=new a.a(!1),u=new a.a(!1),p=new a.a(!1),s=new a.a(""),m=new a.a(!1),f=new a.a(!1),x=new a.a(!1),h=new a.a(!1),w=new a.a(!1),g=new a.a(!1),b=new a.a(""),y=new a.a(!0),v=new a.a(!0),E=new a.a(!0),q=new a.a(!0),O=new a.a(!0),N=new a.a(!0),z=new a.a({}),A=new a.a(!1),k=0,C=new a.a(!1),j=new a.a(""),_=new a.a(""),Z=new a.a(""),D=new a.a(""),P=new a.a(""),S=new a.a(""),$=new a.a(""),M=new a.a(""),H=new a.a(!1),F=new a.a(!1),I=new a.a(!1),U=function(){setTimeout((function(){k++,A.next(!0)}),0)},R=function(){setTimeout((function(){k>0&&k--,0==k&&A.next(!1)}),0)},T=function(){return A.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)},J=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},L=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)},B=function(e){return/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)/.test(e)},K=function(e){return/^[0-9]*$/.test(e)},Q=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},V=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,n){return e=e?Number(e):0,(0===(n=n?Number(n):0)||"0"===n?0:(e-n)/n*100).toFixed(2)},ee=function(e){var n={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&&(n.color=e.selectedColor),e.colorHex&&(n.colorHex=e.colorHex),e.colorZone&&(n.colorZone=e.colorZone),e.selectedConstruction&&(n.model=e.selectedConstruction),e.selectedWindowDesign&&(n.top=e.selectedWindowDesign),e.glazepattern&&(n.glazepattern=e.glazepattern),e.selectedHardware&&(n.hardware=e.selectedHardware),n},ne=function(e,n,t){var a="",r=e.split(n);return r.forEach((function(e,n){"undefined"!==e&&e&&(a+=e,n!==r.length-1&&(a+=t))})),a}},19:function(e,n){e.exports=ReactDOM},76:function(e,n,t){"use strict";var a=t(0),r=t.n(a),i=t(4),o=i.default.section.withConfig({displayName:"styles__Content",componentId:"sc-1irq4x3-0"})(["ol.qna-container{margin-bottom:0px;width:100%;margin-left:-2rem;@media screen and (min-width:1681px){margin-left:-78px;}@media screen and (min-width:1281px) and (max-width:1680px){margin-left:-45px;line-height:28px;}@media screen and (min-width:768px) and (max-width:1023px){line-height:24px;margin-left:-32px;}@media screen and (min-width:1024px) and (max-width:1025px){line-height:24px;margin-left:-8px;}@media screen and (min-width:1026px) and (max-width:1280px){line-height:24px;margin-left:-24px;}@media screen and (max-width:767px){line-height:24px;margin-left:-20px;}}li{padding-bottom:40px;@media screen and (max-width:1023px){padding-bottom:0px;}@media screen and (min-width:1024px) and (max-width:1680px){padding-bottom:15px;}}li:last-child{padding-bottom:0px;}.qna-container li::marker{font-size:24px;font-weight:600;@media screen and (min-width:1281px) and (max-width:1680px){font-size:18px;}@media screen and (min-width:768px) and (max-width:1280px){font-size:16px;}@media(max-width:767px){font-size:18px;}}@media(max-width:768px){li{margin:0px 0px 0px 36px;}.qna-parent{margin-bottom:24px;&:last-child{margin-bottom:12px;}}}.qna-content-container{@media(max-width:768px){display:block;width:100% !important;padding-right:20px;margin-bottom:10px;padding-left:16px;}display:inline-block;width:50%;vertical-align:top;padding-left:40px;@media(max-width:1680px){padding-left:20px;}&.qna-radiogroup{width:45%;margin:0;@media(min-width:769px){padding:0;padding-left:120px;}& label{display:inline-block;margin-left:14px;line-height:30px;&.yes-label{margin-right:42px;}}& span.input-radio-btn-container{position:relative;}& input[type='radio']:after{width:20px;height:20px;border-radius:20px;top:-10px;left:-3px;position:relative;background-color:white;content:'';display:inline-block;visibility:visible;border:2px solid #8d8d8d;@media screen and (max-width:1680px){width:18px;height:18px;top:-5px;left:-2px;}@media screen and (max-width:1280px){width:16px;height:16px;top:-3px;left:-2px;}}& input[type='radio']:checked:after{border:2px solid #006166;}& input[type='radio']:checked + span{height:10px;width:10px;border-radius:10px;background:#006166;position:absolute;top:15px;left:2px;@media screen and (max-width:1680px){width:10px;height:10px;top:8px;}@media screen and (min-width:1025px) and (max-width:1280px){height:8px;width:8px;top:8px;left:2px;}@media screen and (min-width:992px) and (max-width:1024px){width:9px;height:9px;top:5.8px;left:1.2px;}@media screen and (min-width:768px) and (max-width:991px){width:9px;height:9px;top:6.2px;left:1.25px;}@media screen and (max-width:767px){width:8px;height:8px;top:9.6px;}}}&.qna-question-container{width:55%;& h3{font-weight:600;}& .description-style{@media(max-width:768px){padding-top:20px;}}}}"]),d=t(1),c=t(2),l=i.default.section.withConfig({displayName:"styles__Content",componentId:"sc-1xk6uy9-0"})([".text-style{font-size:1.4rem;}.description-style{}.radio-container{display:flex;align-items:center;gap:10rem;}@media screen and (min-width:768px){.radio-wrapper1{padding-left:120px;.radio-container:not(:last-child){margin-right:42px;}}}@media screen and (max-width:767px){.radio-wrapper1{padding-left:20px;}}"]),u=function(e){var n=e.item,t=e.yeslabel,i=e.nolabel,o=e.name,d=Object(a.useState)(!1),u=Object(c.a)(d,2),p=u[0],s=u[1],m=Object(a.useState)(!1),f=Object(c.a)(m,2),x=f[0],h=f[1];return r.a.createElement(l,null,r.a.createElement("div",{className:"d-flex align-items-baseline flex-wrap"},r.a.createElement("div",{className:"qna-question-container qna-content-container"},r.a.createElement("h5",null,n.question.text),r.a.createElement("div",{className:"d-none d-lg-block description-style body-text2"},x?p?n.yesAnswer.text:n.noAnswer.text:"")),r.a.createElement("div",{className:"radio-wrapper1"},r.a.createElement("div",{className:"radio-container"},r.a.createElement("input",{id:"yes-".concat(o),type:"radio",name:o,value:"yes",className:"qna-yes-radio",onChange:function(){h(!0),s(!0)}}),r.a.createElement("label",{htmlFor:"yes-".concat(o)},r.a.createElement("span",null,r.a.createElement("div",null)),t)),r.a.createElement("div",{className:"radio-container"},r.a.createElement("input",{id:"no-".concat(o),type:"radio",name:o,value:"no",className:"qna-no-radio",onChange:function(){h(!0),s(!1)}}),r.a.createElement("label",{htmlFor:"no-".concat(o)},r.a.createElement("span",null,r.a.createElement("div",null))," ",i)))),r.a.createElement("span",null,r.a.createElement("div",{className:"qna-question-container qna-content-container d-md-block d-lg-none "},x&&r.a.createElement("div",{className:"description-style body-text2 d-md-block d-lg-none mb-4"},x?p?n.yesAnswer.text:n.noAnswer.text:""))))},p=function(e){var n=e.qnaData,t=Object(d.g)(n);return r.a.createElement(o,null,r.a.createElement("div",{className:"container"},r.a.createElement("div",{className:"row"},r.a.createElement("ol",{className:"qna-container",role:"group"},t.qnaItems.map((function(e,n){return r.a.createElement("li",{key:n,className:"amarr-h5 qna-parent"},r.a.createElement(u,{item:e,yeslabel:t.yesLabel.text,nolabel:t.noLabel.text,name:"answer"+n}))}))))))};p.defaultProps={config:"",theme:"",qnaData:""};n.a=p},761:function(e,n,t){"use strict";t.r(n);var a=t(14),r=t(76);n.default=a.a.create({component:r.a,configuration:{tagname:"amarr-qna",useShadow:!1},plugins:[]})}});
|