@assaabloy/amarr-wc-qna 2.0.2 → 2.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/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": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
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": "492c0fcdf690f0e94235150f0ab548d9553868a7"
|
|
15
15
|
}
|
package/qna.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e){function n(n){for(var a,o,d=n[0],c=n[1],p=n[2],l=0,s=[];l<d.length;l++)o=d[l],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&s.push(i[o][0]),i[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 r.push.apply(r,p||[]),t()}function t(){for(var e,n=0;n<r.length;n++){for(var t=r[n],a=!0,d=1;d<t.length;d++){var c=t[d];0!==i[c]&&(a=!1)}a&&(r.splice(n--,1),e=o(o.s=t[0]))}return e}var a={},i={64:0},r=[];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 p=0;p<d.length;p++)n(d[p]);var u=c;r.push([510,0]),t()}({0:function(e,n){e.exports=React},1:function(e,n,t){"use strict";t.d(n,"g",(function(){return i})),t.d(n,"N",(function(){return r})),t.d(n,"i",(function(){return o})),t.d(n,"B",(function(){return d})),t.d(n,"D",(function(){return c})),t.d(n,"t",(function(){return p})),t.d(n,"z",(function(){return u})),t.d(n,"n",(function(){return l})),t.d(n,"p",(function(){return s})),t.d(n,"E",(function(){return m})),t.d(n,"K",(function(){return x})),t.d(n,"s",(function(){return f})),t.d(n,"h",(function(){return h})),t.d(n,"r",(function(){return w})),t.d(n,"w",(function(){return g})),t.d(n,"u",(function(){return b})),t.d(n,"A",(function(){return y})),t.d(n,"q",(function(){return v})),t.d(n,"o",(function(){return E})),t.d(n,"C",(function(){return N})),t.d(n,"L",(function(){return k})),t.d(n,"l",(function(){return j})),t.d(n,"j",(function(){return z})),t.d(n,"m",(function(){return A})),t.d(n,"k",(function(){return C})),t.d(n,"x",(function(){return _})),t.d(n,"G",(function(){return S})),t.d(n,"v",(function(){return P})),t.d(n,"M",(function(){return $})),t.d(n,"b",(function(){return F})),t.d(n,"J",(function(){return I})),t.d(n,"y",(function(){return M})),t.d(n,"a",(function(){return Z})),t.d(n,"d",(function(){return D})),t.d(n,"f",(function(){return J})),t.d(n,"e",(function(){return L})),t.d(n,"c",(function(){return R})),t.d(n,"O",(function(){return T})),t.d(n,"F",(function(){return U})),t.d(n,"H",(function(){return B})),t.d(n,"I",(function(){return G}));var a=t(3),i=function(e){return JSON.parse(decodeURIComponent(escape(atob(e))))},r=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),p=new a.a(!1),u=new a.a(!1),l=new a.a(!1),s=new a.a(""),m=new a.a(!1),x=new a.a(!1),f=new a.a(!1),h=new a.a(!1),w=new a.a(""),g=new a.a(!0),b=new a.a(!0),y=new a.a(!0),v=new a.a(!0),E=new a.a(!0),q=new a.a(!1),O=0,N=new a.a(!1),k=new a.a(""),j=new a.a(""),z=new a.a(""),A=new a.a(""),C=new a.a(""),_=new a.a(""),S=new a.a(""),P=new a.a(!1),$=new a.a(!1),F=function(){setTimeout((function(){O++,q.next(!0)}),0)},I=function(){setTimeout((function(){O>0&&O--,0==O&&q.next(!1)}),0)},M=function(){return q.asObservable()},Z=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)},D=function(e){return e.match(/^[a-zA-Z\xc0-\xff-. ]*$/)},J=function(e){return/^[0-9a-zA-Z !@#\$%\^\&*\)\(+=._-]+$/.test(e)},L=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},R=function(e){return/^[0-9]*$/.test(e)},T=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},U=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},B=function(e){return e&&(e=e.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==e&&"0"!==e||(e=e.toFixed(2)),e},G=function(e,n){return e=e?Number(e):0,(0===(n=n?Number(n):0)||"0"===n?0:(e-n)/n*100).toFixed(2)}},18:function(e,n){e.exports=ReactDOM},421:function(e,n,t){"use strict";t.r(n);var a=t(13),i=t(73);n.default=a.a.create({component:i.a,configuration:{tagname:"amarr-qna",useShadow:!1},plugins:[]})},73:function(e,n,t){"use strict";var a=t(0),i=t.n(a),r=t(4),o=r.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),p=r.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,r=e.nolabel,o=e.name,d=Object(a.useState)(!1),u=Object(c.a)(d,2),l=u[0],s=u[1],m=Object(a.useState)(!1),x=Object(c.a)(m,2),f=x[0],h=x[1];return i.a.createElement(p,null,i.a.createElement("div",{className:"d-flex align-items-baseline flex-wrap"},i.a.createElement("div",{className:"qna-question-container qna-content-container"},i.a.createElement("h5",null,n.question.text),i.a.createElement("div",{className:"d-none d-lg-block description-style body-text2"},f?l?n.yesAnswer.text:n.noAnswer.text:"")),i.a.createElement("div",{className:"radio-wrapper1"},i.a.createElement("div",{className:"radio-container"},i.a.createElement("input",{id:"yes-".concat(o),type:"radio",name:o,value:"yes",className:"qna-yes-radio",onChange:function(){h(!0),s(!0)}}),i.a.createElement("label",{htmlFor:"yes-".concat(o)},i.a.createElement("span",null,i.a.createElement("div",null)),t)),i.a.createElement("div",{className:"radio-container"},i.a.createElement("input",{id:"no-".concat(o),type:"radio",name:o,value:"no",className:"qna-no-radio",onChange:function(){h(!0),s(!1)}}),i.a.createElement("label",{htmlFor:"no-".concat(o)},i.a.createElement("span",null,i.a.createElement("div",null))," ",r)))),i.a.createElement("span",null,i.a.createElement("div",{className:"qna-question-container qna-content-container d-md-block d-lg-none "},f&&i.a.createElement("div",{className:"description-style body-text2 d-md-block d-lg-none mb-4"},f?l?n.yesAnswer.text:n.noAnswer.text:""))))},l=function(e){var n=e.qnaData,t=Object(d.g)(n);return i.a.createElement(o,null,i.a.createElement("div",{className:"container"},i.a.createElement("div",{className:"row"},i.a.createElement("ol",{className:"qna-container",role:"group"},t.qnaItems.map((function(e,n){return i.a.createElement("li",{key:n,className:"amarr-h5 qna-parent"},i.a.createElement(u,{item:e,yeslabel:t.yesLabel.text,nolabel:t.noLabel.text,name:"answer"+n}))}))))))};l.defaultProps={config:"",theme:"",qnaData:""};n.a=l}});
|
|
1
|
+
!function(e){function n(n){for(var a,o,d=n[0],c=n[1],p=n[2],l=0,s=[];l<d.length;l++)o=d[l],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&s.push(i[o][0]),i[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 r.push.apply(r,p||[]),t()}function t(){for(var e,n=0;n<r.length;n++){for(var t=r[n],a=!0,d=1;d<t.length;d++){var c=t[d];0!==i[c]&&(a=!1)}a&&(r.splice(n--,1),e=o(o.s=t[0]))}return e}var a={},i={64:0},r=[];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 p=0;p<d.length;p++)n(d[p]);var u=c;r.push([510,0]),t()}({0:function(e,n){e.exports=React},1:function(e,n,t){"use strict";t.d(n,"g",(function(){return i})),t.d(n,"O",(function(){return r})),t.d(n,"i",(function(){return o})),t.d(n,"B",(function(){return d})),t.d(n,"D",(function(){return c})),t.d(n,"t",(function(){return p})),t.d(n,"z",(function(){return u})),t.d(n,"n",(function(){return l})),t.d(n,"p",(function(){return s})),t.d(n,"E",(function(){return m})),t.d(n,"K",(function(){return x})),t.d(n,"s",(function(){return f})),t.d(n,"h",(function(){return h})),t.d(n,"r",(function(){return w})),t.d(n,"w",(function(){return g})),t.d(n,"u",(function(){return b})),t.d(n,"A",(function(){return y})),t.d(n,"q",(function(){return v})),t.d(n,"o",(function(){return E})),t.d(n,"C",(function(){return N})),t.d(n,"L",(function(){return k})),t.d(n,"l",(function(){return j})),t.d(n,"j",(function(){return z})),t.d(n,"m",(function(){return A})),t.d(n,"k",(function(){return C})),t.d(n,"x",(function(){return _})),t.d(n,"G",(function(){return P})),t.d(n,"v",(function(){return S})),t.d(n,"M",(function(){return $})),t.d(n,"N",(function(){return F})),t.d(n,"b",(function(){return I})),t.d(n,"J",(function(){return M})),t.d(n,"y",(function(){return Z})),t.d(n,"a",(function(){return D})),t.d(n,"d",(function(){return J})),t.d(n,"f",(function(){return L})),t.d(n,"e",(function(){return R})),t.d(n,"c",(function(){return T})),t.d(n,"P",(function(){return U})),t.d(n,"F",(function(){return B})),t.d(n,"H",(function(){return G})),t.d(n,"I",(function(){return H}));var a=t(3),i=function(e){return JSON.parse(decodeURIComponent(escape(atob(e))))},r=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),p=new a.a(!1),u=new a.a(!1),l=new a.a(!1),s=new a.a(""),m=new a.a(!1),x=new a.a(!1),f=new a.a(!1),h=new a.a(!1),w=new a.a(""),g=new a.a(!0),b=new a.a(!0),y=new a.a(!0),v=new a.a(!0),E=new a.a(!0),q=new a.a(!1),O=0,N=new a.a(!1),k=new a.a(""),j=new a.a(""),z=new a.a(""),A=new a.a(""),C=new a.a(""),_=new a.a(""),P=new a.a(""),S=new a.a(!1),$=new a.a(!1),F=new a.a(!1),I=function(){setTimeout((function(){O++,q.next(!0)}),0)},M=function(){setTimeout((function(){O>0&&O--,0==O&&q.next(!1)}),0)},Z=function(){return q.asObservable()},D=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)},R=function(e){return/^\(?([0-9]{3})\)\s[0-9]{3}-[0-9]{4}$/.test(e)},T=function(e){return/^[0-9]*$/.test(e)},U=function(e){return!!/^[-a-zA-Z0-9+&@#/%?=~|!:,.;]*[-a-zA-Z0-9+&@#/%=~|]$/.test(e)},B=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},G=function(e){return e&&(e=e.toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")),0!==e&&"0"!==e||(e=e.toFixed(2)),e},H=function(e,n){return e=e?Number(e):0,(0===(n=n?Number(n):0)||"0"===n?0:(e-n)/n*100).toFixed(2)}},18:function(e,n){e.exports=ReactDOM},421:function(e,n,t){"use strict";t.r(n);var a=t(13),i=t(73);n.default=a.a.create({component:i.a,configuration:{tagname:"amarr-qna",useShadow:!1},plugins:[]})},73:function(e,n,t){"use strict";var a=t(0),i=t.n(a),r=t(4),o=r.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),p=r.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,r=e.nolabel,o=e.name,d=Object(a.useState)(!1),u=Object(c.a)(d,2),l=u[0],s=u[1],m=Object(a.useState)(!1),x=Object(c.a)(m,2),f=x[0],h=x[1];return i.a.createElement(p,null,i.a.createElement("div",{className:"d-flex align-items-baseline flex-wrap"},i.a.createElement("div",{className:"qna-question-container qna-content-container"},i.a.createElement("h5",null,n.question.text),i.a.createElement("div",{className:"d-none d-lg-block description-style body-text2"},f?l?n.yesAnswer.text:n.noAnswer.text:"")),i.a.createElement("div",{className:"radio-wrapper1"},i.a.createElement("div",{className:"radio-container"},i.a.createElement("input",{id:"yes-".concat(o),type:"radio",name:o,value:"yes",className:"qna-yes-radio",onChange:function(){h(!0),s(!0)}}),i.a.createElement("label",{htmlFor:"yes-".concat(o)},i.a.createElement("span",null,i.a.createElement("div",null)),t)),i.a.createElement("div",{className:"radio-container"},i.a.createElement("input",{id:"no-".concat(o),type:"radio",name:o,value:"no",className:"qna-no-radio",onChange:function(){h(!0),s(!1)}}),i.a.createElement("label",{htmlFor:"no-".concat(o)},i.a.createElement("span",null,i.a.createElement("div",null))," ",r)))),i.a.createElement("span",null,i.a.createElement("div",{className:"qna-question-container qna-content-container d-md-block d-lg-none "},f&&i.a.createElement("div",{className:"description-style body-text2 d-md-block d-lg-none mb-4"},f?l?n.yesAnswer.text:n.noAnswer.text:""))))},l=function(e){var n=e.qnaData,t=Object(d.g)(n);return i.a.createElement(o,null,i.a.createElement("div",{className:"container"},i.a.createElement("div",{className:"row"},i.a.createElement("ol",{className:"qna-container",role:"group"},t.qnaItems.map((function(e,n){return i.a.createElement("li",{key:n,className:"amarr-h5 qna-parent"},i.a.createElement(u,{item:e,yeslabel:t.yesLabel.text,nolabel:t.noLabel.text,name:"answer"+n}))}))))))};l.defaultProps={config:"",theme:"",qnaData:""};n.a=l}});
|