freemium-survey-components 1.0.33 → 1.0.34

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/lib/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,n=require("react"),t=(e=n)&&"object"==typeof e&&"default"in e?e.default:e,r=require("react-transition-group");const o=["RANGE","NPS","BOOLEAN"],a="Others",s=300,i={default:500,compact:500,cozy:400},c={default:"600px",compact:"350px",cozy:"96%"},l={3:["smiley-1","smiley-5","smiley-10"],4:["smiley-1","smiley-4","smiley-5","smiley-10"],5:["smiley-1","smiley-3","smiley-5","smiley-7","smiley-10"],7:["smiley-1","smiley-2","smiley-4","smiley-5","smiley-7","smiley-9","smiley-10"],10:["smiley-1","smiley-2","smiley-3","smiley-4","smiley-5","smiley-6","smiley-7","smiley-8","smiley-9","smiley-10"]},u=({name:e})=>{switch(e){case"declined-prompt-thumb":return t.createElement("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M24 48C37.2548 48 48 37.2548 48 24C48 10.7452 37.2548 0 24 0C10.7452 0 0 10.7452 0 24C0 37.2548 10.7452 48 24 48Z",fill:"#EBEFF3"}),t.createElement("path",{d:"M35.2403 23.3501C35.3542 23.9655 35.0663 24.4377 34.762 24.9378C34.2628 25.758 34.8126 25.5632 34.7456 26.5507C34.6913 27.3494 34.1674 27.4872 33.908 28.0503C33.6821 28.5408 34.1112 29.0193 34.0345 29.6002C33.9224 30.4483 33.3116 30.5018 32.9521 31.0759C32.6476 31.5622 33.0859 32.1443 32.8762 32.7484C32.3734 34.1978 30.5713 34.2855 29.2611 34.2855C26.4366 34.2855 23.6024 33.6136 20.7835 33.392C18.6701 33.226 18.0059 32.7398 18.0059 30.7936C18.0059 29.0282 18.0288 26.3309 18.0288 24.4751C18.0288 23.4506 18.7692 22.7211 19.6948 21.9112C21.9883 19.9041 24.1088 18.3506 25.3426 15.5096C25.842 14.3597 25.5388 12.5506 27.2837 12.7495C28.479 12.8857 29.026 14.3689 29.1246 15.4792C29.2338 16.7094 28.8019 18.2376 28.1563 19.3306C27.5251 20.3992 25.9302 21.8245 27.9868 21.9628C29.7837 22.0837 34.7432 20.6659 35.2403 23.3499V23.3501ZM16.7286 23.3091H14.3305C13.9905 23.3091 13.7148 23.5758 13.7148 23.9048V33.0385C13.7148 33.3674 13.9905 33.6342 14.3305 33.6342H16.7286C17.0686 33.6342 17.3443 33.3674 17.3443 33.0385V23.9048C17.3443 23.5758 17.0686 23.3091 16.7286 23.3091Z",fill:"#264966"}));case"arrow-previous":return t.createElement("svg",{width:"9",height:"14",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M0.256667 7.83755C0.0925257 7.67361 0.000204227 7.4512 0 7.21921V6.77588C0.00268801 6.5444 0.0946357 6.32289 0.256667 6.15755L6.25333 0.172549C6.30756 0.117874 6.37208 0.0744776 6.44316 0.0448625C6.51425 0.0152474 6.59049 0 6.6675 0C6.74451 0 6.82075 0.0152474 6.89184 0.0448625C6.96292 0.0744776 7.02744 0.117874 7.08167 0.172549L7.91 1.00088C7.96432 1.05411 8.00748 1.11764 8.03694 1.18776C8.06641 1.25787 8.08158 1.33316 8.08158 1.40922C8.08158 1.48527 8.06641 1.56056 8.03694 1.63067C8.00748 1.70079 7.96432 1.76432 7.91 1.81755L2.71833 6.99755L7.91 12.1775C7.96467 12.2318 8.00807 12.2963 8.03769 12.3674C8.0673 12.4385 8.08255 12.5147 8.08255 12.5917C8.08255 12.6687 8.0673 12.745 8.03769 12.8161C8.00807 12.8871 7.96467 12.9517 7.91 13.0059L7.08167 13.8225C7.02744 13.8772 6.96292 13.9206 6.89184 13.9502C6.82075 13.9799 6.74451 13.9951 6.6675 13.9951C6.59049 13.9951 6.51425 13.9799 6.44316 13.9502C6.37208 13.9206 6.30756 13.8772 6.25333 13.8225L0.256667 7.83755Z",fill:"#6B6B6B"}));case"arrow-next":return t.createElement("svg",{width:"9",height:"14",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M7.82585 6.15754C7.98999 6.32147 8.08232 6.54389 8.08252 6.77587L8.08252 7.2192C8.07983 7.45069 7.98788 7.6722 7.82585 7.83754L1.82919 13.8225C1.77496 13.8772 1.71044 13.9206 1.63936 13.9502C1.56827 13.9798 1.49203 13.9951 1.41502 13.9951C1.33801 13.9951 1.26177 13.9798 1.19068 13.9502C1.1196 13.9206 1.05508 13.8772 1.00085 13.8225L0.172521 12.9942C0.118197 12.941 0.0750381 12.8774 0.0455752 12.8073C0.0161124 12.7372 0.000937578 12.6619 0.000937585 12.5859C0.000937592 12.5098 0.0161125 12.4345 0.0455753 12.3644C0.0750381 12.2943 0.118197 12.2308 0.172521 12.1775L5.36419 6.99754L0.172522 1.81754C0.117847 1.76331 0.0744506 1.69879 0.0448352 1.62771C0.0152208 1.55662 -2.75162e-05 1.48038 -2.75094e-05 1.40337C-2.75027e-05 1.32636 0.0152208 1.25012 0.0448353 1.17904C0.0744507 1.10795 0.117847 1.04343 0.172522 0.989205L1.00086 0.172537C1.05508 0.117862 1.1196 0.0744661 1.19069 0.0448507C1.26177 0.0152353 1.33801 -1.20337e-05 1.41502 -1.2027e-05C1.49203 -1.20203e-05 1.56827 0.0152353 1.63936 0.0448507C1.71044 0.0744661 1.77496 0.117862 1.82919 0.172537L7.82585 6.15754Z",fill:"#6B6B6B"}));case"widget-maximize":return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none"},t.createElement("mask",{id:"a",maskUnits:"userSpaceOnUse",x:"-.400146",y:"-.400024",width:"11",height:"11",fill:"#000"},t.createElement("path",{fill:"#fff",d:"M-.400146-.400024h11v11h-11z"}),t.createElement("path",{d:"m4.70226 6.76428-2.6856 2.6856 2.60775-.00293c.02738-.00011.05452.0052.07983.01562.02532.01043.04833.02577.06769.04513.01936.01936.0347.04237.04512.06769.01043.02531.01574.05245.01563.07983l-.00293.41358c.00011.0274-.0052.0545-.01563.0799-.01043.0253-.02576.0483-.04512.0676-.01937.0194-.04237.0347-.06769.0452-.02532.0104-.05245.0157-.07983.0156l-3.59922.0029c-.082493.0001-.161625-.0326-.220005-.0909l-.111467-.1115c-.057526-.0589-.090102-.13767-.090934-.21998L.602787 6.2584c-.000112-.02738.005198-.05452.015625-.07984.010427-.02532.025763-.04832.045125-.06768.019362-.01936.042366-.0347.067685-.04513.025319-.01042.052451-.01573.079833-.01562h.416535c.02704-.00028.05387.00485.0789.01507.02504.01022.04779.02533.06691.04445.01912.01913.03424.04187.04446.06691s.01534.05186.01507.0789l-.00294 2.60775 4.74323-4.74323.0044-.00427 2.6856-2.6856-2.60775.00294c-.02738.00011-.05452-.0052-.07983-.01563-.02532-.01042-.04833-.02576-.06769-.04512-.01936-.01936-.0347-.04237-.04512-.06769-.01043-.02532-.01574-.05245-.01563-.07983l.00293-.413603c-.00011-.027382.0052-.054514.01563-.079833.01043-.025319.02576-.048323.04512-.067685.01937-.019362.04237-.034698.06769-.045125.02532-.010427.05245-.015737.07983-.015625L9.85762.599976c.08249-.000052.16158.032657.21998.090934l.1115.111467c.0575.058878.0901.13769.0909.220003l-.0029 3.59922c.0001.02738-.0052.05452-.0156.07983-.0105.02532-.0258.04833-.0452.06769-.0193.01936-.0423.0347-.0676.04512-.0254.01043-.0525.01574-.0799.01563h-.41651c-.02704.00027-.05387-.00485-.0789-.01507-.02504-.01022-.04779-.02533-.06691-.04446-.01912-.01912-.03424-.04187-.04446-.0669-.01022-.02504-.01534-.05186-.01506-.07891l.00293-2.60775-4.74323 4.74323-.0044.00427Z"})),t.createElement("path",{d:"m4.70226 6.76428-2.6856 2.6856 2.60775-.00293c.02738-.00011.05452.0052.07983.01562.02532.01043.04833.02577.06769.04513.01936.01936.0347.04237.04512.06769.01043.02531.01574.05245.01563.07983l-.00293.41358c.00011.0274-.0052.0545-.01563.0799-.01043.0253-.02576.0483-.04512.0676-.01937.0194-.04237.0347-.06769.0452-.02532.0104-.05245.0157-.07983.0156l-3.59922.0029c-.082493.0001-.161625-.0326-.220005-.0909l-.111467-.1115c-.057526-.0589-.090102-.13767-.090934-.21998L.602787 6.2584c-.000112-.02738.005198-.05452.015625-.07984.010427-.02532.025763-.04832.045125-.06768.019362-.01936.042366-.0347.067685-.04513.025319-.01042.052451-.01573.079833-.01562h.416535c.02704-.00028.05387.00485.0789.01507.02504.01022.04779.02533.06691.04445.01912.01913.03424.04187.04446.06691s.01534.05186.01507.0789l-.00294 2.60775 4.74323-4.74323.0044-.00427 2.6856-2.6856-2.60775.00294c-.02738.00011-.05452-.0052-.07983-.01563-.02532-.01042-.04833-.02576-.06769-.04512-.01936-.01936-.0347-.04237-.04512-.06769-.01043-.02532-.01574-.05245-.01563-.07983l.00293-.413603c-.00011-.027382.0052-.054514.01563-.079833.01043-.025319.02576-.048323.04512-.067685.01937-.019362.04237-.034698.06769-.045125.02532-.010427.05245-.015737.07983-.015625L9.85762.599976c.08249-.000052.16158.032657.21998.090934l.1115.111467c.0575.058878.0901.13769.0909.220003l-.0029 3.59922c.0001.02738-.0052.05452-.0156.07983-.0105.02532-.0258.04833-.0452.06769-.0193.01936-.0423.0347-.0676.04512-.0254.01043-.0525.01574-.0799.01563h-.41651c-.02704.00027-.05387-.00485-.0789-.01507-.02504-.01022-.04779-.02533-.06691-.04446-.01912-.01912-.03424-.04187-.04446-.0669-.01022-.02504-.01534-.05186-.01506-.07891l.00293-2.60775-4.74323 4.74323-.0044.00427Z",fill:"#264966"}),t.createElement("path",{d:"m4.70226 6.76428-.19158-.19732-.00287.00287.19445.19445Zm-2.6856 2.6856-.19445-.19445-.4702.4702.66496-.00075-.00031-.275Zm2.60775-.00293.00031.275h.00082l-.00113-.275Zm.14752.06075.19446-.19445-.00001-.00001-.19445.19446Zm.06075.14752.27499.00195.00001-.00082-.275-.00113Zm-.00293.41358-.27501-.0019.00001.003.275-.0011Zm-.06075.1475.19445.1945-.19445-.1945Zm-.06769.0452-.10471-.2543.10471.2543Zm-.07983.0156.00113-.275h-.00136l.00023.275Zm-3.59922.0029.00017.275h.00005l-.00022-.275Zm-.220005-.0909-.194454.1944.00017.0002.194284-.1946Zm-.111467-.1115-.196712.1922.002257.0023.194455-.1945Zm-.090934-.21998L.324837 9.8574l.000031.003.274986-.00278ZM.602787 6.2584l.275003.00022-.000005-.00135-.274998.00113Zm.015625-.07984L.36413 6.07385H.364129l.254283.10471Zm.045125-.06768.194453.19445h.000003l-.194456-.19445Zm.067685-.04513.104714.25429.000005-.00001-.104719-.25428Zm.079833-.01562-.001128.275h.001127l.000001-.275Zm.416535 0v.27501l.00281-.00002-.00281-.27499Zm.0789.01507-.10394.2546h.00001l.10393-.2546Zm.06691.04445.19445-.19445-.19445.19445Zm.04446.06691.2546-.10394-.2546.10394Zm.01507.0789-.275-.0028v.00249l.275.00031Zm-.00294 2.60775-.275-.00031-.00075.66497.47021-.4702-.19446-.19446Zm4.74323-4.74323-.19158-.19732-.00287.00287.19445.19445Zm.0044-.00427.19158.19733.00287-.00287-.19445-.19446Zm2.6856-2.6856.19445.19446.4702-.4702-.66496.00074.00031.275Zm-2.60775.00294-.00031-.275h-.00082l.00113.275Zm-.07983-.01563-.10472.25429.10472-.25429Zm-.06769-.04512.19446-.19446H6.3024l-.19445.19446Zm-.04512-.06769.25428-.10471v-.00001l-.25428.10472Zm-.01563-.07983-.27499-.00195-.00001.00082.275.00113Zm.00293-.413603.27502.001951L6.32513.81005l-.275.001127Zm.01563-.079833L5.81148.626625v.000004l.25428.104715Zm.04512-.067685L5.91643.469203v.000003l.19445.194453Zm.06769-.045125L6.07385.364252l.10472.254282ZM6.2584.602909 6.25728.87791l.00135-.000001-.00023-.275ZM9.85762.599976l-.00017-.275H9.8574l.00022.275Zm.21998.090934.1945-.194455-.0002-.000172-.1943.194627Zm.1115.111467.1967-.192197-.0023-.002257-.1944.194454Zm.0909.220003.275.00022v-.003l-.275.00278Zm-.0029 3.59922-.275-.00022v.00135l.275-.00113Zm-.0156.07983-.2543-.10472v.00001l.2543.10471Zm-.0452.06769-.1944-.19446.1944.19446Zm-.1475.06075.0012-.275h-.0012v.275Zm-.41651 0v-.27502l-.00281.00003.00281.27499Zm-.0789-.01507.10394-.2546-.10394.2546Zm-.06691-.04446.19446-.19445-.00001-.00001-.19445.19446Zm-.04446-.0669.25461-.10394-.00001-.00001-.2546.10395Zm-.01506-.07891.27499.00282.00001-.00251-.275-.00031Zm.00293-2.60775.275.00031.00075-.66496-.47021.4702.19446.19445ZM4.70666 6.76001l.19159.19733.00286-.00287-.19445-.19446Zm-.19885-.19018-2.6856 2.6856.38891.38891 2.6856-2.6856-.38891-.38891ZM2.01697 9.72488l2.60775-.00293-.00062-.55-2.60775.00293.00062.55Zm2.60857-.00293c-.00893.00003-.01777-.0017-.02601-.00509l.20943-.50857c-.05888-.02425-.12198-.0366-.18568-.03634l.00226.55Zm-.02601-.00509c-.00825-.0034-.01575-.0084-.02205-.0147l.3889-.38892c-.04503-.04503-.09853-.0807-.15742-.10495l-.20943.50857Zm-.02206-.01471c-.00631-.00631-.0113-.0138-.0147-.02205l.50857-.20943c-.02425-.05889-.05992-.11239-.10495-.15742l-.38892.3889Zm-.0147-.02205c-.0034-.00825-.00512-.01709-.00509-.02601l.55.00226c.00026-.06369-.01209-.12679-.03634-.18568l-.50857.20943Zm-.00508-.02683-.00294.41363.54999.0039.00293-.41363-.54998-.0039Zm-.00294.41663c-.00004-.0089.00169-.0177.00509-.026l.50856.2095c.02425-.0589.0366-.122.03634-.1857l-.54999.0022Zm.00509-.026c.0034-.0082.00839-.0157.0147-.022l.38891.3889c.04503-.045.0807-.0985.10495-.1574l-.50856-.2095Zm.01471-.022c.0063-.0063.01379-.0113.02205-.0147l.20943.5085c.05889-.0242.11239-.0599.15742-.1049l-.3889-.3889Zm.02205-.0147c.00824-.0034.01708-.0051.02601-.0051l-.00226.55c.06369.0002.1268-.0121.18568-.0364l-.20943-.5085Zm.02465-.0051-3.59922.0029.00045.55 3.59922-.0029-.00045-.55Zm-3.59917.0029c-.00957 0-.01876-.0038-.025541-.01054l-.388568.38924c.109981.1098.259058.1714.414459.1713l-.00035-.55Zm-.025371-.01037-.111467-.11146-.388909.38893.111468.1114.388908-.38887Zm-.109222-.10919c-.008001-.00819-.012532-.01915-.012648-.0306l-.549971.00556c.001548.1532.062169.2998.169221.4094l.393398-.38436Zm-.012634-.0276.002934-3.59922-.55-.00045L.324854 9.8574l.549999.00044Zm.002932-3.60057a.0675974.0675974 0 0 1-.005091.02601l-.508565-.20943c-.024249.05888-.036601.12199-.03634.18567l.549996-.00225Zm-.005092.02601c-.003395.00825-.008392.01574-.014703.02205l-.388906-.38891c-.045036.04504-.080705.09854-.104954.15743l.508563.20943Zm-.0147.02205c-.006311.00631-.013807.01131-.022057.01471l-.209429-.50857c-.058887.02425-.112392.05992-.157426.10496l.388912.3889Zm-.022052.0147c-.008251.0034-.017093.00513-.026013.0051l.002254-.55c-.063684-.00026-.12679.01209-.185679.03634l.209438.50856Zm-.024887.0051h.416536v-.55H.811055l-.000001.55Zm.419346-.00001c-.00954.00009-.01901-.00171-.02785-.00532l.20788-.5092c-.05891-.02405-.12202-.03611-.18564-.03546l.00561.54998Zm-.02784-.00532c-.00884-.00361-.01687-.00894-.02361-.01569l.3889-.38891c-.04499-.04499-.09851-.08055-.15742-.1046l-.20787.5092Zm-.02362-.01569c-.00674-.00675-.01208-.01477-.01568-.02361l.5092-.20788c-.02405-.05891-.05962-.11243-.10461-.15742l-.38891.38891Zm-.01568-.02361c-.00361-.00884-.00542-.0183-.00532-.02784l.54997.00561c.00065-.06362-.0114-.12674-.03545-.18565l-.5092.20788Zm-.00533-.02535L1.15499 8.8629l.55.00062.00294-2.60775-.55-.00062Zm.46652 2.80252 4.74323-4.74323-.38891-.38891-4.74323 4.74323.38891.38891Zm4.74033-4.74038.0044-.00427-.38312-.39461-.0044.00427.38312.39461Zm.00729-.00712 2.6856-2.6856-.38891-.38891-2.6856 2.6856.38891.38891Zm2.49084-3.15506-2.60775.00294.00062.55 2.60775-.00294-.00062-.55Zm-2.60857.00294c.00892-.00004.01776.00169.02601.00509l-.20943.50857c.05889.02424.12199.0366.18568.03634l-.00226-.55Zm.02601.00509c.00825.0034.01575.00839.02206.0147l-.38891.38891c.04503.04503.09853.0807.15742.10496l.20943-.50857Zm.02205.0147c.00631.00631.01131.01381.01471.02206l-.50857.20943c.02425.05888.05992.11239.10496.15742l.3889-.38891Zm.01471.02205c.0034.00826.00513.0171.00509.02602l-.55-.00226c-.00026.06369.01209.12679.03635.18568l.50856-.20944Zm.00508.02684.00294-.413602-.54999-.003901-.00293.413603.54998.0039Zm.00294-.41668c.00004.00892-.00169.01776-.00509.026009l-.50856-.20943c-.02425.058887-.0366.121992-.03634.185675L6.32513.81005Zm-.00509.026013c-.0034.008247-.00839.015741-.0147.022049L5.91643.469206c-.04503.045032-.0807.098534-.10495.157419l.50856.209438Zm-.0147.022052c-.00631.006307-.0138.011304-.02205.014701L6.07385.364252c-.05889.024251-.11239.059921-.15742.104951l.38891.388912Zm-.02205.014701a.0675974.0675974 0 0 1-.02601.005091l.00225-.549996c-.06369-.000261-.12679.012091-.18568.036341l.20944.508564Zm-.02466.005093L9.85785.874976l-.00045-.55-3.59922.002933.00045.55ZM9.8578.874976c.00957-.000006.01876.003791.02554.01056l.38856-.389253c-.11-.109784-.259-.171404-.41445-.171307l.00035.55Zm.02537.010388.11147.111467.38886-.388908-.1114-.111467-.38893.388908Zm.10922.109197c.00801.008189.01251.019149.01261.030599l.55-.00556c-.0015-.153176-.0622-.29984-.1692-.409407l-.39341.384368Zm.01261.027589-.0029 3.59923.55.00044.0029-3.59922-.55-.00045Zm-.0029 3.60058c0-.00892.0017-.01777.0051-.02602l.5085.20945c.0243-.05889.0367-.122.0364-.18569l-.55.00226Zm.0051-.02601c.0034-.00825.0084-.01574.0147-.02206l.3889.38892c.045-.04504.0807-.09855.105-.15743l-.5086-.20943Zm.0147-.02206c.0063-.00631.0138-.0113.022-.0147l.2095.50857c.0589-.02425.1124-.05992.1574-.10496l-.3889-.38891Zm.022-.0147c.0083-.0034.0171-.00513.0261-.00509l-.0023.55c.0637.00026.1268-.01209.1857-.03634l-.2095-.50857Zm.0249-.00509h-.41651v.55h.41651v-.55Zm-.41932.00001c.00954-.00009.01901.00171.02785.00532l-.20789.5092c.05892.02405.12203.0361.18566.03545l-.00562-.54997Zm.02785.00532c.00883.00361.01686.00894.02361.01569l-.38892.3889c.045.045.09852.08056.15743.10461l.20788-.5092Zm.0236.01568c.00675.00675.01209.01478.0157.02362l-.50921.20787c.02405.05892.05961.11244.10461.15743l.3889-.38892Zm.01569.02361c.00361.00884.00542.01831.00532.02786l-.54997-.00563c-.00065.06363.0114.12675.03546.18566l.50919-.20789Zm.00534.02535.00293-2.60775-.55-.00061-.00293 2.60774.55.00062Zm-.46653-2.80251L4.51221 6.56556l.3889.38891 4.74323-4.74323-.38891-.38891ZM4.51509 6.56271l-.00439.00427.38313.3946.0044-.00427-.38314-.3946Z",fill:"#264966",mask:"url(#a)"}));case"widget-minimize":return t.createElement("svg",{width:"8",height:"8",viewBox:"0 0 7 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M6.08333 1.32682H0.583333C0.261167 1.32682 0 1.06565 0 0.743489C0 0.421323 0.261167 0.160156 0.583333 0.160156H6.08333C6.4055 0.160156 6.66667 0.421323 6.66667 0.743489C6.66667 1.06565 6.4055 1.32682 6.08333 1.32682Z",fill:"#264966"}));case"widget-close":return t.createElement("svg",{width:"11",height:"10",viewBox:"0 0 11 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("rect",{opacity:"0.01",x:"0.16748",width:"10",height:"10",fill:"white",fillOpacity:"0.01"}),t.createElement("path",{d:"M1.85129 1.68479L8.48395 8.31744",stroke:"#264966",strokeWidth:"1.5",strokeLinecap:"round"}),t.createElement("path",{d:"M8.48395 1.68479L1.85129 8.31744",stroke:"#264966",strokeWidth:"1.5",strokeLinecap:"round"}));case"thumbs-up":return t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M1.5 7.25H4C4.276 7.25 4.5 7.474 4.5 7.75V8.19175C5.0415 7.84475 5.9365 7.23325 6.75 6.5C7.64425 5.69375 8.5 3.478 8.5 2.25C8.5 1.5595 9.0595 1 9.75 1C10.4405 1 11 1.5595 11 2.25C11 2.25 11 2.2595 11 3.5C11 4.83875 10.685 5.91025 10.4635 6.5H15.5C16.3282 6.5 17 7.17175 17 8C17 8.646 16.5892 9.192 16.0165 9.403C16.3122 9.677 16.5 10.0653 16.5 10.5C16.5 11.146 16.0892 11.692 15.5165 11.903C15.8122 12.177 16 12.5653 16 13C16 13.646 15.5892 14.192 15.0165 14.403C15.3122 14.677 15.5 15.0653 15.5 15.5C15.5 16.3282 14.8282 17 14 17H8.75C6.759 17 5.105 15.9045 4.5 15.448V16.5C4.5 16.776 4.276 17 4 17H1.5C1.224 17 1 16.776 1 16.5V7.75C1 7.474 1.224 7.25 1.5 7.25ZM4.5 14.716C5.312 15.488 7.00675 16.5 8.75 16.5H14C14.5522 16.5 15 16.0522 15 15.5C15 15.0493 14.7 14.6728 14.2905 14.5478C14.2905 14.5478 14 14.5035 14 14.25C14 13.977 14.4 14 14.4 14H14.5C15.0523 14 15.5 13.5522 15.5 13C15.5 12.5493 15.2 12.1728 14.7905 12.0478C14.7905 12.0478 14.5 11.9952 14.5 11.75C14.5 11.4532 14.9 11.5 14.9 11.5H15C15.5523 11.5 16 11.0522 16 10.5C16 10.0493 15.7 9.67275 15.2905 9.54775C15.2905 9.54775 15 9.53275 15 9.25C15 8.94425 15.4 9 15.4 9H15.5C16.0523 9 16.5 8.55225 16.5 8C16.5 7.44775 16.0523 7 15.5 7H10C9.842 7 9.63025 6.88125 9.81175 6.5205C10.1547 5.83925 10.5 4.893 10.5 3.5C10.5 2.66125 10.5 2.25 10.5 2.25C10.5 1.83575 10.1642 1.5 9.75 1.5C9.33575 1.5 9 1.83575 9 2.25V2.5C9 3.86375 8.09125 6.023 7 7C5.89675 7.98775 5.01525 8.5165 4.5 8.77775V14.716ZM1.5 16.5H4V8.5V7.75H1.5V16.5ZM11.75 14H14.2738C14.4121 14 14.5238 14.1118 14.5238 14.25C14.5238 14.3883 14.4121 14.5 14.2738 14.5H11.75C11.6118 14.5 11.5 14.3883 11.5 14.25C11.5 14.1118 11.6118 14 11.75 14ZM12 11.75C12 11.6118 12.1118 11.5 12.25 11.5H14.7738C14.9121 11.5 15.0238 11.6118 15.0238 11.75C15.0238 11.8883 14.9121 12 14.7738 12H12.25C12.1118 12 12 11.8883 12 11.75ZM12.5 9.25C12.5 9.11175 12.6118 9 12.75 9H15.2738C15.4121 9 15.5238 9.11175 15.5238 9.25C15.5238 9.38825 15.4121 9.5 15.2738 9.5H12.75C12.6118 9.5 12.5 9.38825 12.5 9.25Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"}));case"thumbs-down":return t.createElement("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M16.5 10.25H14C13.724 10.25 13.5 10.026 13.5 9.75V9.30825C12.9585 9.65525 12.0635 10.2667 11.25 11C10.3558 11.8063 9.5 14.022 9.5 15.25C9.5 15.9405 8.9405 16.5 8.25 16.5C7.5595 16.5 7 15.9405 7 15.25C7 15.25 7 15.2405 7 14C7 12.6612 7.315 11.5897 7.5365 11H2.5C1.67175 11 1 10.3282 1 9.5C1 8.854 1.41075 8.308 1.9835 8.097C1.68775 7.823 1.5 7.43475 1.5 7C1.5 6.354 1.91075 5.808 2.4835 5.597C2.18775 5.323 2 4.93475 2 4.5C2 3.854 2.41075 3.308 2.9835 3.097C2.68775 2.823 2.5 2.43475 2.5 2C2.5 1.17175 3.17175 0.5 4 0.5H9.25C11.241 0.5 12.895 1.5955 13.5 2.052V1C13.5 0.724 13.724 0.5 14 0.5H16.5C16.776 0.5 17 0.724 17 1V9.75C17 10.026 16.776 10.25 16.5 10.25ZM13.5 2.784C12.688 2.012 10.9932 1 9.25 1H4C3.44775 1 3 1.44775 3 2C3 2.45075 3.3 2.82725 3.7095 2.95225C3.7095 2.95225 4 2.9965 4 3.25C4 3.523 3.6 3.5 3.6 3.5H3.5C2.94775 3.5 2.5 3.94775 2.5 4.5C2.5 4.95075 2.8 5.32725 3.2095 5.45225C3.2095 5.45225 3.5 5.50475 3.5 5.75C3.5 6.04675 3.1 6 3.1 6H3C2.44775 6 2 6.44775 2 7C2 7.45075 2.3 7.82725 2.7095 7.95225C2.7095 7.95225 3 7.96725 3 8.25C3 8.55575 2.6 8.5 2.6 8.5H2.5C1.94775 8.5 1.5 8.94775 1.5 9.5C1.5 10.0522 1.94775 10.5 2.5 10.5H8C8.158 10.5 8.36975 10.6187 8.18825 10.9795C7.84525 11.6607 7.5 12.607 7.5 14C7.5 14.8388 7.5 15.25 7.5 15.25C7.5 15.6642 7.83575 16 8.25 16C8.66425 16 9 15.6642 9 15.25V15C9 13.6363 9.90875 11.477 11 10.5C12.1033 9.51225 12.9847 8.9835 13.5 8.72225V2.784ZM16.5 1H14V9V9.75H16.5V1ZM6.25 3.5H3.72619C3.58794 3.5 3.47619 3.38825 3.47619 3.25C3.47619 3.11175 3.58794 3 3.72619 3H6.25C6.38825 3 6.5 3.11175 6.5 3.25C6.5 3.38825 6.38825 3.5 6.25 3.5ZM6 5.75C6 5.88825 5.88825 6 5.75 6H3.22619C3.08794 6 2.97619 5.88825 2.97619 5.75C2.97619 5.61175 3.08794 5.5 3.22619 5.5H5.75C5.88825 5.5 6 5.61175 6 5.75ZM5.5 8.25C5.5 8.38825 5.38825 8.5 5.25 8.5H2.72619C2.58794 8.5 2.47619 8.38825 2.47619 8.25C2.47619 8.11175 2.58794 8 2.72619 8H5.25C5.38825 8 5.5 8.11175 5.5 8.25Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"}));case"tick":return t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.3552 16.1457C13.7379 15.1037 16.0337 11.9625 15.9995 8.42306C15.9987 8.02539 15.9689 7.6283 15.9104 7.23496C15.875 6.98912 15.7112 6.78082 15.4806 6.68854C15.25 6.59625 14.9877 6.63399 14.7925 6.78755C14.5973 6.9411 14.4988 7.18713 14.5342 7.43297C14.5901 7.75998 14.6166 8.09133 14.6134 8.42306C14.6134 12.032 11.6877 14.9577 8.07878 14.9577C4.46983 14.9577 1.5442 12.032 1.5442 8.42306C1.5442 4.81411 4.46983 1.88847 8.07878 1.88847C8.94795 1.89329 9.80701 2.07521 10.6035 2.42312C10.9562 2.57349 11.364 2.40948 11.5144 2.05679C11.6648 1.7041 11.5008 1.29628 11.1481 1.14591C7.89405 -0.246989 4.11151 0.664075 1.84854 3.38579C-0.414427 6.10751 -0.619803 9.9928 1.34361 12.9379C3.30703 15.8831 6.97244 17.1878 10.3552 16.1457ZM4.75255 7.63644C4.93969 7.63644 5.11863 7.71321 5.24759 7.84881L7.02975 9.63097L13.2277 3.41321C13.5011 3.13981 13.9444 3.13981 14.2178 3.41321C14.4912 3.68662 14.4912 4.1299 14.2178 4.4033L7.5149 11.1062C7.38452 11.2392 7.2061 11.3142 7.01985 11.3141C6.83634 11.3149 6.6607 11.2396 6.53471 11.1062L4.2575 8.8389C3.98567 8.56485 3.98567 8.12287 4.2575 7.84881C4.38647 7.71321 4.56541 7.63644 4.75255 7.63644Z",fill:"#12344D"}));case"cross":return t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 16.5C12.4183 16.5 16 12.9183 16 8.5C16 4.08172 12.4183 0.5 8 0.5C3.58172 0.5 0 4.08172 0 8.5C0 12.9183 3.58172 16.5 8 16.5ZM8 15.2346C4.28056 15.2346 1.26535 12.2194 1.26535 8.5C1.26535 4.78056 4.28056 1.76535 8 1.76535C11.7194 1.76535 14.7346 4.78056 14.7346 8.5C14.7346 12.2194 11.7194 15.2346 8 15.2346ZM5.00502 5.50503C5.27839 5.23166 5.72161 5.23166 5.99497 5.50503L8.25 7.76005L10.505 5.50503C10.7784 5.23166 11.2216 5.23166 11.495 5.50503C11.7683 5.77839 11.7683 6.22161 11.495 6.49497L9.23995 8.75L11.495 11.005C11.7683 11.2784 11.7683 11.7216 11.495 11.995C11.2216 12.2683 10.7784 12.2683 10.505 11.995L8.25 9.73995L5.99497 11.995C5.72161 12.2683 5.27839 12.2683 5.00503 11.995C4.73166 11.7216 4.73166 11.2784 5.00503 11.005L7.26005 8.75L5.00502 6.49497C4.73166 6.22161 4.73166 5.77839 5.00502 5.50503Z",fill:"#12344D"}));case"whatsapp-choices":return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"15",viewBox:"0 2 12 10"},t.createElement("g",{"clip-path":"url(#clip0_5046_3845)"},t.createElement("path",{d:"M2.05795 7.944H3.1888V6.81315H2.05795V7.944ZM2.05795 10.2057H3.1888V9.07484H2.05795V10.2057ZM2.05795 5.68231H3.1888V4.55146H2.05795V5.68231ZM4.31964 7.944H12.2356V6.81315H4.31964V7.944ZM4.31964 10.2057H12.2356V9.07484H4.31964V10.2057ZM4.31964 4.55146V5.68231H12.2356V4.55146H4.31964Z",fill:"inherit"})),t.createElement("defs",null,t.createElement("clipPath",{id:"clip0_5046_3845"},t.createElement("rect",{width:"13.5701",height:"13.5701",fill:"white",transform:"translate(0.361694 0.593502)"}))));case"whatsapp-send":return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 30 30",fill:"none"},t.createElement("rect",{x:"0.413086",y:"0.903687",width:"29.0062",height:"29.0062",rx:"14.5031",fill:"#00927C"}),t.createElement("path",{d:"M20.4162 15.2496L9.4162 9.90677L10.511 14.7782L16 15.3537L10.511 15.9306L9.4162 20.9068L20.4162 15.2496Z",fill:"white"}));case"whatsapp-star":return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"20",height:"20",viewBox:"0 0 14 15",fill:"none"},t.createElement("path",{d:"M0 14.98H14V0.98H0V14.98Z",fill:"url(#pattern0)"}),t.createElement("defs",null,t.createElement("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},t.createElement("use",{xlinkHref:"#image0_5309_474151",transform:"scale(0.015625)"})),t.createElement("image",{id:"image0_5309_474151",width:"64",height:"64",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAARmklEQVR4nOWbe6xnV1XHP2vvfc7v/u7vPuY99DXT0tLSwaY8ijAtj1KCD0QkIAF5SRRCFBCNJpYYozzklYgQHsYAihKRKEJEUEHeGIy0UCRMO6V0aEs7nZnO3LnP3+93zt57Lf8453fnzmWmnXvlXhLdyc795Tz2Wuu7Hnuttc+F/+dDflKEq+O3bZPqgWfie6ZTl34KWPhJ8BGG/dlNJ6oLd18o9/zLm93J7z7PXGlc8HPX6YU/cyMwv9m8BKXYVIK6eO8Wf/DDH3Z3ffzpznmwDIe/+hs5DgvglZvKDCBLB/5ucym68hXhG7/7gaJTIhMXgmX0xEHSxJWabvjI9cDXNpOdwHlP2jRiqvVUOPChV/lOD9lzLUzuAU1Ibxvu/oPOHbnpdWw2AO7ITZtGzLo7r3PzB6+R8/bBwx4P47tAMzLWxQ2O4458/fp4zR/sAe7ZLJ5CvvBpm0UL+f4/PtvJPLLzOthyKYxtB1Xwguy8HXfk4HY3/4MXA2/dLJ6Cm//BphBSkcvciZufL71xZPoR0N0NnWnQDJaQ7Vcix+/B3f+fv5z2vexPgXoz+Aq69RGbQQfu+dJTXH3/drfr4TB+HhQ9kA54hXIaJi5BprcjM996FP1nPhH46mawFegf33Aipv2Onz3wQldGZPrh0NkGfgwoAIXQhbHdyLaH42Zv6bjjt/w6mwWAO37LhhPJ5eRj3cJtN7gtu6C3F4oJGuEdIOBKKLch04/A9W7FPXDT0+OVv7YTeGCjeQt5x1UbTQN331ee4dySl+mrYGxXq31Pk4kLECCMQ/d8ZPphuGPfv0AW73sO8IGN5i3I4n0bSsB0sEvmb3up6xYwcXHj71JyehniwZdQ7kS2PAI38yXciVtelC96xgcB20j+go3v2Mj14dhN17p432WyZRfSvaDVfuB0AASkgDABvYuRyS24xdsfk6uf3gcc2Ej2AtXcRq6P9A8/x5WKTO5tgp/r0Pg+nK7c0IDT2Y1M7cUtHpiWxUOvAH5nI/kLsnhowxZX06vD8NBzXW8cxve0W19o7662bNcGw2lk6lLczO342e++IF30C28HjmwUj8Em927U2rhj3/hFx8KkTF6GjO1eFfzOMKQNhmPnI5O78SfuOk+rmScBH98oHoOrZjZkYXGMuTzzTN8tkN6eNviNtr6zDde4SLkdmbwYN/tDwtKhl+vup34SyBvBZ3ATF23EuvjFO26QfHS/TG1Fuhc1mj2r+Y+GgAtQTCLje3GTB2B46AZh/2XA7RvBZ/AblHK7vPBsV+Qm+I3tbPwboRHeOHs3zjeuMrYbmd6LO3ZXV+LMC9l21duA6sfNp+Sl0ytPnTk4JjroClKanxjD4rhoNW552LXc76Daw6wnxB5U46jr4se6CD0kTYgU42jcJv1D1zMuE7JjP0w8EopJoMOp5OdsQ4EhVCdh8dtw9OtY1R0wdcV3DFvCcoWyBLpkwhKU85gsILpkfnIBwhJiC+LCAiZ9EzfAjfUlV32EOrveIpCWAaju+Rz9pdlndWa+/ZIgaZfzflLIPTSNgY6hcQyNHTSWEINZbpkEnCACiIB34DziPTiBbg/Z9miYegyUW8CNcv8z6mHFbwNq0CFUR2HhFjh5O1bXTfssZ0wV1JpSWrV539q5vF7IIBXia6QYgB+YuKFmZlKx8+BwxxPfCdwmR2/99HXh3k9/tly8qxfySULpcJ1xJBQgrvFJ8eA8Jh6ca68XTfYWCsSX4DtQjEE5jpST0N0JY3uh3Nqa/8gFVmv/TO6QgQhaQzwJ9VGoZ6FegjzA8hByhFRBrkEj5NQ8n1NTYucImhqAUoXFCh0OSFVFipF6y9W3pstf+fygx775W3nheC9JQIqATF8Akw/DjU0joYv4DkiBiUecA0YA+Cao+RYIVzbPhrGmuvPjDSguNO8sB76VAVBWXFsNhG/zgh0QpqBTNYJaRDSCpUZIi1iOy/caodvZPmNxgA5OkucOk2bvp176Ienuz+7TiSt+JZj2L8qWIC/A5A6Yvhq27oHxrbjQQZwHcYi0lZu0WhR3ajrfWImEFb+b907t+62pPmgAXD1c616+ARMDs2YtayeKaG7cw2z5GqpNwzVHcr1ELo8R0xhxYYbaEtmVMP/9ncF6uz9jC4f2M6yaRVwHC5NY6BGKLviAOI9IK/Sy5kYgrABjJUCjUhdrTXpV7r9876HG6D3fPC+txcjoXQU/AmY0GwBUEznWpJSIVlLnTMyRLAXa3QGTF9/prHvhe23LZV+w0CPXC8SFO6kHs8RYE3Mim6KASSvcaXMkS0tY9HQmyO3UFX9XXl957Wz3Vj9jq+YIp1N8GULGSDkR6z7VYIFq4TDV3J3Eqk8a24nu3v9fOr3voyFqmCt2XPNiLbrvl5Pfeq7Nfg8TxfRx2NQFmI4Tyg6EEieusYSRpm2ltltmZKWJy4q5WqOrtWw8tFWsjiO26p5iquScyHFAHM4TF2eoTx4iHv9v8uJRNExjWy//vGy5+jdJ8/cFS/PUiaPFtse8wHznXTJz86vt5Pex3If0GGx6L9gkaAuCc00wNNfy6xvNjFzAdIUbrBT+bH9XC/dggo9+24/+NsM0k1NFqvvUwwXiwjHqk3cST9xK7p/E3BazycvfL71Lf99ytQQQLDfJVT13OMGW1xQ7rr2N2VveYguHpywuotUJbOsj0d5WirKDL0ocARGH4EBa/7Z2hzjN/0cxAc7NEh4MjDMLjRhobv29IlZLxP4c9fxh4sztxNkfkKsh6refsInLbsT4ICsq4JBXlcMZ3tfZ+oSDef7bH7L+XXs13ozFk+j2R8HEwzDr4osSH5rCRkbCysgqVgVBW2UJIivkeyjTP5PmVwBhjclrjuQ4JA6XqJdmiLN3U88cJM3fj2ZBi923WmfPK8n69dUUAll/hGw1c9cXOtsf+/Pqu++3/p3X28z30DiHbbsSnbqYYmwCyg4uFDjnmy1yNG0UjFZYwUpLsAezgtUC00b3lfdGWldMm20u1UPicJF64Sj1zB3E2TtJS3OolVh53j9Zef7rgLvPgDDhbKZYnfjBbeWOn/olCxNvscVbX61zh9G4QK5PolsuR8e3U5QlhIBrt8rGAlyr1NXb4rkGxJUaXiX8KAfAMMvkFEl1TRzMUc/dTXXiIHH2XtKwQqWLlRe8WYpdb8Wsf0YhgXCKyI+O+oE75oHXlFOPPWRLB/6EwQNjlg9gaRbbcjk2eQElXYQArARhFBNWuMNpebo8RAg4U6A7tdebKZozOVak/gPUM3cwnLmDOH+cXGVUJuat2PV7mH7A6gdvJoWHegCgOn7knZ3dj7td+wffY4N7LrGZu6Ceg3gUN3UJbnwHnrIRVDycFhdWBcURCMu75Sr/tzMIzijDa5/XjMYF0uIPqWcOUZ34IXFhnhQNddMH8Dteg/HlhxQMCKf75IOAcOS7n+mcf83dFrrvtaU7npoXjpPzPDkeQfMl+MmLgWlw7a6wnC/4Fb9HAbC1gNNoW3tvteCr4kJegngcWzqMzt5Hmpsh9ZfIKqjf9hlky2uBcz7wPGsMOCMIh7/53c75j3+BGe+gf9vLbLCAMcBsDrUT+Im9UO4C12M5dSWdCowGyy2xERArhTsNhNGQNscfQD4G9VGsnsP6i2h/Fq0HmBRYsfUv0N6NwOw5CwQE3LkDAFAdufko8Ku98Qtuk/qO10s1mGIAFPdifgD6ABK2gp8ENwky1ljBOR9vrKgQLYEugs5ieRZ0CXIFcYjUC0geIqE3a+x6Y4A/W5Mg7Qjl+IM1Kc8+Iu5tY35yTJj9I6n7UBdY3QUnmM6DKxDXAzfV/u3QnAgVbZxYVQovV3k1WIXZEHQB8hxY2wkzw3INaQlJfVzo4P2eN0zAu9YlBBAmJsfW+y7+xGAoMkRihlhC7EPhG0EtYVohchLDgxRNE0U6zaRoQWgLH0s0naCqAYHUlrgjaoZpapogsY+kPqKKZ3hs3QIAwdtw3S9LXtrvGDYtsFRhaYik0Ajk2i5SG/1Fhm0nTVYE/tN3ACMjox0Cxayt/qwtqTW3HaABkit8HCJ0bwA+ul4ZgsT1AWgzD+xw1PtEUrPna278M/umPjAPOjr+dhhtJbmcGNmy6KdgUGyUA4waG6an3GO51dX0B12u8DL7tGg7dwNH1wWA5vV9J+gs7XekSwVt6gFrtGPJIaS2MzTKDJs4Y8tNlFZsofHr0aLLGh8Jv6oDpE1TFI3L15z1L3EsPWrdADhbWhcAovF6IYq03RjTjOQakmEUTcksrmmiahtohRXV4eoD0pWab7fDkenDqQ5w1rbflxEMRxIhXgF8cT1yBCGu5z3E0j4hIyMtaW46ssnAMuZbk3e+feGU7xvSimuNz2PLDZ1ln7cRCKfigKlCtsYKWgDEEiLpWuDP1wlAeuinVo18Yv78QNonI01poxVLIC60YAjmXHN20L5nJk1jy0DV2tMFwYk1MbN9VoRTvj+yBGstQGmtoMHFacL54VMS288D7l8zAEpvzQBgJ5/sSHsEba1Wm7iXAFFQQcQvlwBKK7hCViMlJScjWyOw8xCC4AvBO6HBrRG+MYrRQUhrCYkWAGlBqPaIpKvWBYDY2i1AsCfLiAsDVLDU1ukm4AWT1NY8gpqRsxCzkiLEWolJyRlEBBeEUApl6SgKIYSmEz5KUgVrtW+YWmsFDtQjKk3QlfoK4HNrBgBdx+Go2JWizQ7f2HEGkUbPKsuVsJmQFZJaI3g06gh1hJQNNZr3nOADxEIoOkKnhKIwgpfmxA1DzJotcgSAejDB1GGWwVXXAu9ZBwBrO3DN83JZofkqyYrIKABq0wxWUBFMZNlVU4I6GTHRzCxkFTIC3jUBMTVFZIpGUSuxMDqFURZQBggjEOAUANYAjAhiGWH41KiTa/7OOKS0tjzAEW8QjTtFtTV5w6Q1zSRksSZQqxCzUWchZkhZSCZkPOY9FMURfPFRcdIV0Zea6kTKiqZMSplcKSkoqTA63iic4V1DsiGrqCk4Q5wi1Oeh1aPWDAB5bRYg6H6XE6LaZqyGtlldxkhAyo3Z1yokg2yOjEODbw5Ty/Jj4su3At8BkLHi7xG90VL6WasTOUWGOZGqRKozyRsdL5Te8GL4tptilhsr8jTZp9aXA/+6NgDWEgPq7QV6/ApSQrWJ0qraHMACSSGaEVXIJiQEdQ71YST4twjFO4G/PdXhARtUX3bTvf9wRfkqK9Nrta6vsGFNjA5NqbEIpySXKR0EGQXIUXCUFv78ZODdawLA9Nw/vdE4vFzSYF+uM0YTxHJeIbgJyRzZGsEbUw9IWSxK0flLE/8G4IwfJdncIBm8z22d+Gfv/BvV+xfq0HdyFdFYNz3ABEmUQhTfgiDekKAoGXN5f8xjFwL3njMAdb2GGFD3r5M4nLaozf6uRlRIOvJvQcVh3kERoCxwZfl5fPFG4Gvn1HqZXbwHeLmbGv+YOP+H6v21NnSkWKNJiCkTEDyGF/DecKpYSuQinZ+xfWsCIOdzbtVg9eBqjRHJitGYeTYa/5Y28wseygIpi/skFG/C+b9iPd/+Lwz+TSa7X/HOv8qCf70N/a48rMiWiDnjNeMwvFrbhsxYTliw89dCJqR07gBorHdabPd6EUxc89f7RvDCI0WRJYS/xvm3A99b6etrHvNLA+BdMtn7d/Hh9Xj/IvWV5CqSa0FyxuV2exRDNCGa1wZArNcQA3KeMDUEh0mr7eCRIuCKgBThGzj/x6wxEj/kWFw6ALzE9bofE+/fhKserVKRKyHnzPLplimeNLWWpUOM554KC7JICE2JGzxSNp/VuBDuwrt3I/IR4MRaGFjLkMHg03TGvuGde7nz/reTq87TOmIxYblJwy2lc26JA4SUzh2AoijfLd4/zhXu4VJ4JPjviPN/g/AJ1tCL/98MqYbHgHdop/yUd+55EvxLcxWvoE5qSf7BlE+uab1b3nPZmhjoThfPcoVcJ8HNmMgXgW+uaYEf80iZ63Idn6DDFLXmE8Ca/gFCbnnf2gD4vzbWdyjwf2j8D+Zaa5WmjvaeAAAAAElFTkSuQmCC"})));case"fchat":return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},t.createElement("path",{fill:"#20A849",d:"M10.392.26H17.5a2.367 2.367 0 0 1 2.368 2.37v7.1c0 2.51-.996 4.919-2.77 6.694a9.456 9.456 0 0 1-6.69 2.774 9.454 9.454 0 0 1-8.755-5.842 9.473 9.473 0 0 1 2.05-10.323A9.456 9.456 0 0 1 10.391.26Z"}),t.createElement("path",{fill:"#fff",d:"M13.303 5.88H8.57a2.367 2.367 0 0 0-2.368 2.37v4.03a.525.525 0 0 0 .527.525h6.574a2.367 2.367 0 0 0 2.367-2.37V8.25a2.371 2.371 0 0 0-2.367-2.37Zm-1.709 5.07H8.175a.46.46 0 0 1-.459-.647.463.463 0 0 1 .46-.276h3.418a.462.462 0 0 1 0 .922Zm2.103-2.257H8.175a.462.462 0 1 1 0-.923h5.522a.462.462 0 0 1 0 .923Z"}));default:return null}},m=()=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"92",height:"20",viewBox:"0 0 200 40"},t.createElement("g",{fill:"none",fillRule:"nonzero"},t.createElement("path",{fill:"#4D4D4D",d:"M48.6 1c-5 0-6.8 3.5-6.8 6.8v2h-1c-.8 0-1.4.6-1.4 1.4 0 .8.6 1.4 1.4 1.4h1v13.8c0 .8.6 1.5 1.5 1.5s1.5-.6 1.5-1.5V12.5H48c.8 0 1.4-.6 1.4-1.4 0-.8-.6-1.4-1.4-1.4h-3.2v-2c0-1.8.7-4 3.9-4 .8 0 1.4-.6 1.4-1.3-.1-.8-.7-1.4-1.5-1.4zM60 9.3c-2-.1-3.8.8-5 2.4v-.8c0-.8-.6-1.5-1.5-1.5s-1.5.7-1.5 1.5v15.4c0 .8.6 1.5 1.5 1.5s1.5-.6 1.5-1.5v-8.5c0-3.6 1.9-5.7 5-5.7.8 0 1.4-.6 1.4-1.4 0-.8-.7-1.4-1.4-1.4zM77.7 16.9c0-1.7-.5-3.4-1.4-4.8-1.4-1.9-3.7-3-6.1-2.8-5.1 0-8 3.4-8 9.3 0 6.1 2.9 9.4 8.4 9.4 2.2.1 4.4-.7 6.1-2.2.3-.2.5-.6.5-1 0-.7-.6-1.3-1.3-1.3-.3 0-.6.1-.8.3-1.2 1-2.8 1.6-4.4 1.6-3.3 0-5.4-2.2-5.5-5.7H76c1.7-.2 1.7-1.8 1.7-2.8zm-7.4-5c3 0 4.5 1.7 4.6 5h-9.7c.3-3.2 2.1-5 5.1-5zM87.5 17.1c-2.2-.8-4-1.4-4-3 0-1.8 2-2 3.1-2 1.5-.1 3 .5 4 1.5.5.5 1.4.5 1.9 0 .3-.3.4-.6.4-1 0-.3-.1-.6-.3-.9-1.5-1.7-3.7-2.7-5.9-2.5-3.7 0-6 1.9-6 4.8 0 3.6 3.2 4.7 6 5.7 2.1.7 4 1.3 4 2.9 0 2.1-2.4 2.5-3.8 2.5-1.7.1-3.4-.6-4.6-1.8-.3-.3-.6-.4-1-.5-.7 0-1.3.6-1.3 1.3 0 .3.1.6.3.9 1.7 2 4.1 3 6.6 3 4.2 0 6.7-2 6.7-5.2-.2-3.7-3.3-4.7-6.1-5.7zM104.8 9.2c-1.8-.1-3.6.7-4.8 2.1V1.5c0-.8-.6-1.5-1.5-1.5-.8 0-1.4.6-1.4 1.5v24.8c0 .8.6 1.5 1.4 1.5.8 0 1.5-.6 1.5-1.5V17c0-3.4 1.6-5.1 4.8-5.1 3.2 0 4.3 1.4 4.3 4.8v9.6c0 .8.6 1.5 1.5 1.5.8 0 1.4-.6 1.4-1.5V16.2c0-4.6-2.4-7-7.2-7zM136.2 9.5c-.6 0-1.2.4-1.4 1l-4.2 11.8-3.4-11.8c-.3-.8-1.1-1.1-1.9-.9-.4.1-.7.5-.9.9L121 22.3l-4-11.9c-.2-.6-.7-1-1.4-.9-.8 0-1.4.6-1.4 1.4 0 .2 0 .4.1.6l5.6 15.3c.2.6.7 1 1.4 1 .6 0 1.2-.4 1.4-1l3.3-11.2 3.3 11.2c.2.6.8 1 1.4 1 .6 0 1.2-.4 1.4-1l5.6-15.3c.1-.2.1-.4.1-.6-.2-.8-.8-1.4-1.6-1.4zM146.8 9.2c-5.3 0-8.2 3.3-8.2 9.3 0 6 2.9 9.4 8.2 9.4 5.3 0 8.2-3.3 8.2-9.4 0-6.1-2.9-9.3-8.2-9.3zm0 16c-3.5 0-5.3-2.2-5.3-6.7s1.8-6.7 5.3-6.7 5.2 2.3 5.2 6.7-1.7 6.8-5.2 6.7zM166.2 9.3c-2-.1-3.8.8-5 2.4v-.8c0-.8-.6-1.5-1.4-1.5-.8 0-1.5.6-1.5 1.4v15.4c0 .8.6 1.5 1.4 1.5.8 0 1.5-.6 1.5-1.4v-8.5c0-3.6 1.9-5.7 5-5.7.8 0 1.4-.6 1.4-1.4 0-.8-.6-1.4-1.4-1.4zM177.3 16.9l6-4.8c.4-.3.6-.7.6-1.2 0-.8-.6-1.4-1.4-1.4-.4 0-.7.1-1 .4l-8.6 7V1.5c0-.8-.6-1.5-1.4-1.5-.8 0-1.5.6-1.5 1.4v24.8c0 .8.6 1.5 1.4 1.5.8 0 1.5-.6 1.5-1.4v-6l2-1.6 6.6 8.4c.3.4.8.7 1.2.7.8 0 1.4-.6 1.4-1.4 0-.3-.1-.7-.3-.9l-6.5-8.6zM193.7 17.1c-2.2-.8-4-1.4-4-3 0-1.8 2-2 3.1-2 1.5-.1 3 .5 4 1.5.3.3.6.4 1 .4.7-.1 1.2-.7 1.2-1.4 0-.3-.1-.6-.3-.9-1.5-1.7-3.7-2.7-5.9-2.5-3.7 0-6 1.9-6 4.8 0 3.6 3.2 4.7 6 5.7 2.1.7 4 1.3 4 2.9 0 2.1-2.4 2.5-3.8 2.5-1.7.1-3.4-.6-4.6-1.8-.3-.3-.6-.4-1-.5-.7 0-1.3.6-1.3 1.3 0 .3.1.6.3.9 1.7 1.9 4.1 2.9 6.7 2.8 4.2 0 6.7-2 6.7-5.2-.2-3.5-3.3-4.5-6.1-5.5z"}),t.createElement("path",{fill:"#9B65C3",d:"M.2 25.5C.7 29.1 2.4 32.4 5 35l5.8-5.8c0-6.1 3.2-11.7 8.5-14.8L.2 25.5z"}),t.createElement("path",{fill:"#9B65C3",d:"M10.8 29.2c-3 0-5.9-.8-8.5-2.3-.7-.4-1.4-.9-2.1-1.4.5 3.6 2.2 6.9 4.8 9.5l5.8-5.8z"}),t.createElement("path",{fill:"#BE63C5",d:"M10.8 29.2L5 35c2.6 2.6 5.9 4.3 9.5 4.8l11-19.1c-3 5.2-8.6 8.5-14.7 8.5z"}),t.createElement("path",{fill:"#BF63C6",d:"M13.1 37.7c-1.5-2.6-2.3-5.5-2.3-8.5L5 35c2.6 2.6 5.9 4.3 9.5 4.8-.5-.7-1-1.4-1.4-2.1z"}),t.createElement("path",{fill:"#3278B1",d:"M32.5 6.8l-13.2 7.6c-5.3 3-11.7 3-17 0C.8 17 0 20 0 23c0 .8.1 1.7.2 2.5.7.5 1.4 1 2.1 1.4 2.6 1.5 5.5 2.3 8.5 2.3l22-22c-.1-.1-.2-.2-.3-.4z"}),t.createElement("path",{fill:"#3278B2",d:"M2.3 26.9c2.6 1.5 5.5 2.3 8.5 2.3 0-6.1 3.2-11.7 8.5-14.8L.2 25.4c.7.6 1.4 1.1 2.1 1.5z"}),t.createElement("path",{fill:"#45A4EC",d:"M2.3 14.4C.8 17 0 20 0 23c0 .8.1 1.7.2 2.5l19.1-11.1c-5.2 3.1-11.7 3.1-17 0z"}),t.createElement("path",{fill:"#19BB7D",d:"M32.8 7.2c-.3-.3-.5-.5-.8-.7-.6-.4-1.4-.6-2.1-.6H17c-6.1 0-11.7 3.3-14.7 8.5 5.3 3 11.7 3 17 0-5.3 3-8.5 8.7-8.5 14.8 6.1 0 11.7-3.2 14.8-8.5l7.6-13.2c-.2-.1-.3-.2-.4-.3z"}),t.createElement("path",{fill:"#08C7FB",d:"M19.3 14.4l13.2-7.6c-.2-.1-.3-.3-.5-.4l-29.7 8c5.3 3.1 11.8 3.1 17 0z"}),t.createElement("path",{fill:"#59F2F6",d:"M29.8 5.9H17c-6.1 0-11.7 3.3-14.7 8.5l29.7-8c-.7-.3-1.4-.5-2.2-.5z"}),t.createElement("path",{fill:"#DA3757",d:"M25.6 20.7l7.6-13.2c-.1-.1-.2-.2-.3-.4l-22 22c0 3 .8 5.9 2.3 8.5.4.7.9 1.4 1.4 2.1.8.1 1.6.2 2.4.2 3 0 5.9-.8 8.5-2.3-3-5.2-3-11.7.1-16.9z"}),t.createElement("path",{fill:"#D33C4E",d:"M10.8 29.2c0 3 .8 5.9 2.3 8.5.4.7.9 1.4 1.4 2.1l11-19.1c-3 5.2-8.6 8.5-14.7 8.5z"}),t.createElement("path",{fill:"#EE5A24",d:"M25.6 20.7l-11 19.1c.8.1 1.6.2 2.5.2 3 0 5.9-.8 8.5-2.3-3.1-5.3-3.1-11.8 0-17z"}),t.createElement("path",{fill:"#8BDF55",d:"M33.5 8c-.3-.5-.6-.9-1-1.2l-13.2 7.6c-5.3 3-8.5 8.7-8.5 14.8 6.1 0 11.7-3.2 14.8-8.5-3 5.3-3 11.7 0 17 5.2-3 8.5-8.6 8.5-14.6V10.2c0-.8-.2-1.5-.6-2.2z"}),t.createElement("path",{fill:"#25C16F",d:"M32.5 6.8l-13.2 7.6c-5.3 3-8.5 8.7-8.5 14.8l22-22c-.1-.1-.2-.3-.3-.4z"}),t.createElement("path",{fill:"#8BDF55",d:"M10.8 29.2c6.1 0 11.7-3.2 14.8-8.5l7.6-13.2c-.1-.1-.2-.2-.3-.4L10.8 29.2z"}),t.createElement("path",{fill:"#FB0",d:"M33.2 7.5l-7.6 13.2c-3 5.3-3 11.7 0 17l8-29.7c-.2-.2-.3-.3-.4-.5z"}),t.createElement("path",{fill:"#FFA800",d:"M25.6 37.7c5.3-3 8.5-8.6 8.5-14.7V10.2c0-.8-.2-1.5-.6-2.2l-7.9 29.7z"}))),d=({glyph:e})=>{switch(e){case"smiley-1":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.221",d:"M49.047 16.925c8.87 8.87 8.87 23.252 0 32.122-8.87 8.87-23.252 8.87-32.122 0-8.87-8.87-8.87-23.252 0-32.122 8.87-8.87 23.252-8.87 32.122 0Z"}),t.createElement("path",{fill:"#272525",d:"M20.41 27.56a2.06 2.06 0 0 1 2.061-2.062 2.06 2.06 0 0 1 2.062 2.061 2.06 2.06 0 0 1-2.062 2.061 2.06 2.06 0 0 1-2.06-2.06ZM41.438 27.56a2.06 2.06 0 0 1 2.06-2.062 2.06 2.06 0 0 1 2.062 2.061 2.06 2.06 0 0 1-2.061 2.061 2.06 2.06 0 0 1-2.062-2.06Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.375",d:"M26.653 37.125a12.263 12.263 0 0 1 6.546-2.16c2.734-.095 5.294.71 7.386 2.148"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.331",d:"m23.517 38.814-3.106-5.83-3.106 5.83c-.504.93-.754 1.43-.754 2.288a3.86 3.86 0 0 0 3.86 3.86 3.86 3.86 0 0 0 3.86-3.86c0-.858-.198-1.22-.754-2.288Z"}));case"smiley-2":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.22",d:"M49.623 49.411c9.07-9.071 9.07-23.779 0-32.85-9.072-9.071-23.78-9.071-32.85 0-9.072 9.071-9.072 23.779 0 32.85 9.07 9.071 23.778 9.071 32.85 0Z"}),t.createElement("path",{fill:"#272525",d:"M20.676 27.58a2.053 2.053 0 1 1 4.107.001 2.053 2.053 0 0 1-4.107-.001ZM41.613 27.58a2.053 2.053 0 1 1 4.107.001 2.053 2.053 0 0 1-4.107-.001Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.22",d:"M21.945 42.49c1.883-4.346 6.214-7.388 11.253-7.388 5.038 0 9.365 3.038 11.248 7.385"}));case"smiley-3":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.221",d:"M49.47 16.925c8.87 8.87 8.87 23.252 0 32.122-8.871 8.87-23.253 8.87-32.123 0-8.87-8.87-8.87-23.252 0-32.122 8.87-8.87 23.252-8.87 32.122 0Z"}),t.createElement("path",{fill:"#272525",d:"M20.695 27.556a2.062 2.062 0 1 1 4.124.002 2.062 2.062 0 0 1-4.124-.002ZM41.723 27.556a2.062 2.062 0 1 1 4.123.002 2.062 2.062 0 0 1-4.123-.002Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.375",d:"M26.489 40.929a12.264 12.264 0 0 1 6.545-2.16c2.735-.094 5.294.71 7.387 2.148"}));case"smiley-4":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.221",d:"M49.813 16.925c8.87 8.87 8.87 23.252 0 32.122-8.87 8.87-23.252 8.87-32.123 0-8.87-8.87-8.87-23.252 0-32.122 8.87-8.87 23.253-8.87 32.123 0Z"}),t.createElement("path",{fill:"#272525",d:"M21.04 27.556a2.062 2.062 0 1 1 4.123.002 2.062 2.062 0 0 1-4.124-.002ZM42.066 27.556a2.062 2.062 0 1 1 4.124.002 2.062 2.062 0 0 1-4.124-.002Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.375",d:"M28.6 40.88c1.38-1.29 3.05-2.071 4.864-2.134 2.04-.071 3.958.772 5.533 2.254"}));case"smiley-5":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.221",d:"M49.16 16.925c8.871 8.87 8.871 23.252 0 32.122-8.87 8.87-23.251 8.87-32.122 0-8.87-8.87-8.87-23.252 0-32.122 8.87-8.87 23.252-8.87 32.123 0Z"}),t.createElement("path",{stroke:"#000","stroke-linecap":"round","stroke-width":"1.38",d:"M22.113 40h20.759"}),t.createElement("path",{fill:"#272525",d:"M19.977 28.061a2.062 2.062 0 1 1 4.123.002 2.062 2.062 0 0 1-4.123-.002ZM41.004 28.061a2.062 2.062 0 1 1 4.124.002 2.062 2.062 0 0 1-4.124-.002Z"}));case"smiley-6":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.22",d:"M49.305 16.992c8.833 8.834 8.833 23.155 0 31.988-8.834 8.833-23.155 8.833-31.988 0-8.833-8.833-8.833-23.154 0-31.987 8.833-8.834 23.154-8.834 31.988 0Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.375",d:"M38.96 39.217c-1.424 1.24-3.119 1.964-4.935 1.964-2.041 0-3.929-.91-5.451-2.445"}),t.createElement("path",{fill:"#272525",d:"M20.527 28.053a2.053 2.053 0 1 1 4.107.001 2.053 2.053 0 0 1-4.107-.001ZM41.469 28.053a2.053 2.053 0 1 1 4.106.001 2.053 2.053 0 0 1-4.106-.001Z"}));case"smiley-7":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.22",d:"M49.379 16.992c8.833 8.834 8.833 23.155 0 31.988-8.833 8.833-23.154 8.833-31.987 0-8.834-8.833-8.834-23.154 0-31.987 8.832-8.834 23.154-8.834 31.987 0Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.22",d:"M40.927 38.424c-1.813 2.127-4.032 3.428-6.477 3.555-2.747.143-5.365-1.21-7.545-3.613"}),t.createElement("path",{fill:"#272525",d:"M20.602 28.053a2.053 2.053 0 1 1 4.106.001 2.053 2.053 0 0 1-4.106-.001ZM41.543 28.053a2.053 2.053 0 1 1 4.107.001 2.053 2.053 0 0 1-4.107-.001Z"}));case"smiley-8":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.22",d:"M49.453 16.992c8.833 8.834 8.833 23.155 0 31.988-8.833 8.833-23.154 8.833-31.987 0-8.833-8.833-8.833-23.154 0-31.987 8.833-8.834 23.154-8.834 31.987 0Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.22",d:"M21.566 36.892c1.664 5.345 6.649 9.225 12.542 9.225 5.894 0 10.878-3.88 12.542-9.225h-.004"}),t.createElement("path",{fill:"#272525",d:"M20.676 28.053a2.053 2.053 0 1 1 4.107.001 2.053 2.053 0 0 1-4.107-.001ZM41.617 28.053a2.053 2.053 0 1 1 4.107.001 2.053 2.053 0 0 1-4.107-.001Z"}));case"smiley-9":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",d:"M50.0498 49.4782C59.1583 40.3696 59.1583 25.6017 50.0498 16.4932C40.9412 7.3846 26.1733 7.3846 17.0648 16.4932C7.9562 25.6017 7.95621 40.3696 17.0648 49.4782C26.1733 58.5867 40.9412 58.5867 50.0498 49.4782Z",stroke:"#272525","stroke-width":"1.22","stroke-linecap":"round","stroke-linejoin":"round"}),t.createElement("path",{d:"M46.6555 36.8911C44.9915 42.2366 40.0074 46.1166 34.1139 46.1166C28.2204 46.1166 23.2363 42.2366 21.5723 36.8911H46.6515H46.6555Z",stroke:"#272525","stroke-width":"1.22","stroke-linecap":"round","stroke-linejoin":"round"}),t.createElement("path",{d:"M21.2988 27.5586C21.2988 26.4228 22.2202 25.4974 23.36 25.4974C24.4998 25.4974 25.4211 26.4188 25.4211 27.5586C25.4211 28.6984 24.4998 29.6197 23.36 29.6197C22.2202 29.6197 21.2988 28.6984 21.2988 27.5586Z",fill:"#272525"}),t.createElement("path",{d:"M42.3232 27.5586C42.3232 26.4228 43.2446 25.4974 44.3844 25.4974C45.5242 25.4974 46.4455 26.4188 46.4455 27.5586C46.4455 28.6984 45.5242 29.6197 44.3844 29.6197C43.2446 29.6197 42.3232 28.6984 42.3232 27.5586Z",fill:"#272525"}));case"smiley-10":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",d:"M49.0748 16.9248C57.9453 25.7952 57.9453 40.1771 49.0748 49.0475C40.2044 57.9179 25.8226 57.9179 16.9521 49.0475C8.08169 40.1771 8.08169 25.7952 16.9521 16.9248C25.8226 8.05435 40.2044 8.05435 49.0748 16.9248Z",stroke:"black","stroke-width":"1.22108"}),t.createElement("path",{d:"M45.549 36.8849C43.8849 42.2306 38.9006 46.1107 33.0069 46.1107C27.1132 46.1107 22.1289 42.2306 20.4648 36.8849",stroke:"#272525","stroke-width":"1.37533","stroke-linecap":"round","stroke-linejoin":"round"}),t.createElement("path",{d:"M21.4651 36.3131L19.0742 37.4609",stroke:"#272525","stroke-width":"1.37533","stroke-linecap":"round","stroke-linejoin":"round"}),t.createElement("path",{d:"M44.5508 36.3131L46.9456 37.4609",stroke:"#272525","stroke-width":"1.37533","stroke-linecap":"round","stroke-linejoin":"round"}),t.createElement("path",{d:"M44.0689 24.4893L44.8314 26.8404H47.3096L45.304 28.2979L46.0705 30.6531L44.0689 29.1955L42.0633 30.6531L42.8298 28.2979L40.8281 26.8404H43.3024L44.0689 24.4893Z",fill:"#272525",stroke:"#272525","stroke-width":"0.610541","stroke-linecap":"round","stroke-linejoin":"round"}),t.createElement("path",{d:"M22.5181 24.4893L23.2846 26.8404H25.7589L23.7572 28.2979L24.5197 30.6531L22.5181 29.1955L20.5165 30.6531L21.279 28.2979L19.2773 26.8404H21.7516L22.5181 24.4893Z",fill:"#272525",stroke:"#272525","stroke-width":"0.610541","stroke-linecap":"round","stroke-linejoin":"round"}));case"star":return t.createElement("path",{fill:"inherit",d:"M23.412 6.009c.45-1.382 2.404-1.382 2.853 0l3.226 9.927a2.5 2.5 0 0 0 2.377 1.727h10.438c1.453 0 2.058 1.86.882 2.714l-8.444 6.135a2.5 2.5 0 0 0-.909 2.795l3.226 9.927c.449 1.382-1.133 2.531-2.308 1.677l-8.445-6.135a2.5 2.5 0 0 0-2.939 0l-8.444 6.135c-1.176.854-2.758-.295-2.309-1.677l3.226-9.927a2.5 2.5 0 0 0-.908-2.795l-8.445-6.135c-1.175-.854-.571-2.714.882-2.714H17.81a2.5 2.5 0 0 0 2.378-1.727l3.225-9.927Z"});default:return null}},p=({highlight:e,index:n=0,type:r,scale:o})=>"STAR"===r?t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"5.86,4.97,37.94,36.23",fill:e?"#F5B800":"#adadad"},t.createElement(d,{glyph:"star"})):["tick","cross"].includes(r)?t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement(d,{glyph:l[o][n]})):t.createElement("svg",{width:"52",height:"52",viewBox:"0 0 66 66",fill:e?"#ffc75c":"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement(d,{glyph:l[o][n]}));function g(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===t&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}g(".freemium-survey-components .binary-question {\n display: flex;\n flex-direction: column;\n grid-gap: 20px;\n gap: 20px;\n}\n.freemium-survey-components .binary-question .choices {\n display: flex;\n align-items: center;\n grid-gap: 20px;\n gap: 20px;\n flex-wrap: wrap;\n justify-content: center;\n}\n.freemium-survey-components .binary-question .choice {\n cursor: pointer;\n border-radius: 5px;\n border: none;\n padding: 12px;\n font-weight: 400;\n font-size: 14px;\n min-width: 180px;\n display: flex;\n align-items: center;\n justify-content: center;\n grid-gap: 8px;\n gap: 8px;\n background-color: #f2f2f2;\n transition: background ease 0.2s;\n}\n.freemium-survey-components .binary-question .choice:hover, .freemium-survey-components .binary-question .choice:focus, .freemium-survey-components .binary-question .choice.active {\n color: #fff;\n background: var(--default-brand-color) !important;\n background: var(--brand-color, var(--default-brand-color)) !important;\n}\n.freemium-survey-components .binary-question .choice:hover svg path, .freemium-survey-components .binary-question .choice:focus svg path, .freemium-survey-components .binary-question .choice.active svg path {\n stroke: #fff;\n fill: #fff;\n}\n.freemium-survey-components .binary-question .footer {\n border-top: 1px solid var(--choice-background-color);\n padding-top: 20px;\n display: flex;\n justify-content: center;\n font-size: 0.875rem;\n line-height: 1.5;\n color: rgba(18, 52, 77, 0.831372549);\n}\n.freemium-survey-components .binary-question .footer:empty {\n display: none;\n}\n\n.freemium-survey-components.mobile-preview .binary-question .actions {\n flex-wrap: wrap;\n justify-content: center;\n}");const v=({type_info:e,onSelect:n,value:r})=>{let o=e?.scale_properties?.labels?.values;const a="descending"===e?.scale_properties?.order,s=e=>a?(e+1)%2:e;return t.createElement("div",{className:"binary-question"},t.createElement("div",{className:"choices"},(a?o?.slice().reverse():o)?.map(((o,a)=>{return t.createElement("button",{className:("choice "+(Number(r)==Number(s(a))?"active":"")).trim(),onClick:()=>{n?.(Boolean(s(a)))}},t.createElement(u,{name:(i=Number(s(a)),c=e?.type_variant,"THUMBS"===c?["thumbs-down","thumbs-up"][i]:["cross","tick"][i])}),"none"!==e?.scale_properties?.labels?.preference&&o);var i,c}))),t.createElement("div",{className:"footer",role:"note"},e.footer_text))};g(".freemium-survey-components {\n --choice-background-color: #ebeff3;\n}\n.freemium-survey-components .range-container {\n margin: 0 auto;\n width: 100%;\n display: flex;\n flex-direction: column;\n grid-gap: 40px;\n gap: 40px;\n}\n.freemium-survey-components .range-container .footer {\n border-top: 1px solid var(--choice-background-color);\n padding-top: 20px;\n display: flex;\n justify-content: center;\n font-size: 0.875rem;\n line-height: 1.5;\n color: rgba(18, 52, 77, 0.831372549);\n}\n.freemium-survey-components .range-container .footer:empty {\n display: none;\n}\n.freemium-survey-components .range-container .range-scale.square button {\n border-radius: unset;\n}\n.freemium-survey-components .range-container .range-scale.minimal .choices {\n justify-content: space-around;\n}\n.freemium-survey-components .range-container .range-scale .button-container {\n flex-direction: column;\n display: flex;\n grid-gap: 20px;\n gap: 20px;\n margin: auto;\n}\n.freemium-survey-components .range-container .range-scale .labels {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.freemium-survey-components .range-container .range-scale .label {\n color: rgba(18, 52, 77, 0.831372549);\n font-size: 0.875rem;\n line-height: 1.4;\n}\n.freemium-survey-components .range-container .range-scale .choices {\n width: 100%;\n display: flex;\n justify-content: space-between;\n font-weight: 400;\n border-radius: 4px;\n}\n.freemium-survey-components .range-container .range-scale .choices.EMOJI {\n grid-gap: 8px;\n gap: 8px;\n}\n.freemium-survey-components .range-container .range-scale .choices.STAR {\n grid-gap: 16px;\n gap: 16px;\n}\n.freemium-survey-components .range-container .range-scale .choices.TEXT {\n grid-gap: 8px !important;\n gap: 8px !important;\n flex-wrap: nowrap;\n}\n.freemium-survey-components .range-container .range-scale .choices.TEXT .scale-7 button {\n width: 85px;\n}\n.freemium-survey-components .range-container .range-scale .choices.TEXT button {\n padding: 2px 4px !important;\n height: 54px;\n width: 94px;\n line-height: 16px;\n color: #12344d;\n}\n.freemium-survey-components .range-container .range-scale .choices.compact {\n grid-gap: 40px;\n gap: 40px;\n}\n.freemium-survey-components .range-container .range-scale .choice-container {\n flex: 0 0 0px;\n text-align: center;\n}\n.freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-5,\n.freemium-survey-components .range-container .range-scale .choices.STAR .scale-5 {\n min-width: 78px;\n max-width: 78px;\n word-break: break-word;\n}\n.freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-7,\n.freemium-survey-components .range-container .range-scale .choices.STAR .scale-7 {\n min-width: 75px;\n max-width: 75px;\n word-break: break-word;\n}\n.freemium-survey-components .range-container .range-scale .contained {\n display: none;\n}\n.freemium-survey-components .range-container .range-scale .uncontained {\n display: block;\n padding-top: 4px;\n}\n.freemium-survey-components .range-container .range-scale button {\n display: inline-block;\n font-size: 14px;\n word-wrap: break-word;\n background: none;\n border: none;\n box-shadow: none;\n cursor: pointer;\n text-align: center;\n font-weight: 400;\n border-radius: 4px;\n margin: 0;\n outline: none;\n margin-left: -1px;\n transform: scale(1);\n padding: 0;\n}\n.freemium-survey-components .range-container .range-scale button:hover {\n transition: background 0.2s ease-in, border-color 0.2s ease-in, transform 0.2s cubic-bezier(0.5, 2, 0.5, 0.75);\n}\n.freemium-survey-components .range-container .range-scale button:hover, .freemium-survey-components .range-container .range-scale button:focus {\n color: #fff !important;\n z-index: 2;\n}\n.freemium-survey-components .range-container .range-scale button.active {\n color: #fff;\n z-index: 2;\n}\n.freemium-survey-components .range-container .variant-emoji.range-scale button,\n.freemium-survey-components .range-container .variant-star.range-scale button {\n transform: scale(1);\n}\n.freemium-survey-components .range-container .variant-emoji.range-scale button svg,\n.freemium-survey-components .range-container .variant-star.range-scale button svg {\n transition: stroke 0.2s ease-in, fill 0.2s ease-in;\n}\n.freemium-survey-components .range-container .variant-emoji.range-scale button:hover,\n.freemium-survey-components .range-container .variant-star.range-scale button:hover {\n transition: background 0.2s ease-in, border-color 0.2s ease-in, transform 0.2s cubic-bezier(0.5, 2, 0.5, 0.75);\n}\n.freemium-survey-components .range-container .variant-emoji.range-scale button.active, .freemium-survey-components .range-container .variant-emoji.range-scale button:hover, .freemium-survey-components .range-container .variant-emoji.range-scale button:focus,\n.freemium-survey-components .range-container .variant-star.range-scale button.active,\n.freemium-survey-components .range-container .variant-star.range-scale button:hover,\n.freemium-survey-components .range-container .variant-star.range-scale button:focus {\n transform: scale(1.1);\n}\n.freemium-survey-components .range-container .variant-emoji.range-scale button.active svg, .freemium-survey-components .range-container .variant-emoji.range-scale button:hover svg, .freemium-survey-components .range-container .variant-emoji.range-scale button:focus svg,\n.freemium-survey-components .range-container .variant-star.range-scale button.active svg,\n.freemium-survey-components .range-container .variant-star.range-scale button:hover svg,\n.freemium-survey-components .range-container .variant-star.range-scale button:focus svg {\n fill: #f5b800;\n}\n.freemium-survey-components .range-container .variant-emoji.range-scale button.active svg path#outline, .freemium-survey-components .range-container .variant-emoji.range-scale button:hover svg path#outline, .freemium-survey-components .range-container .variant-emoji.range-scale button:focus svg path#outline,\n.freemium-survey-components .range-container .variant-star.range-scale button.active svg path#outline,\n.freemium-survey-components .range-container .variant-star.range-scale button:hover svg path#outline,\n.freemium-survey-components .range-container .variant-star.range-scale button:focus svg path#outline {\n stroke: none;\n}\n.freemium-survey-components .range-container .variant-text.range-scale .choices {\n flex-wrap: wrap;\n justify-content: center;\n grid-gap: 20px;\n gap: 20px;\n}\n.freemium-survey-components .range-container .variant-text.range-scale button {\n background: var(--choice-background-color);\n padding: 12px;\n transition: background 0.2s ease-in, border-color 0.2s ease-in, transform 0.4s cubic-bezier(0.5, 2, 0.5, 0.75);\n}\n.freemium-survey-components .range-container .variant-text.range-scale button:hover, .freemium-survey-components .range-container .variant-text.range-scale button:focus {\n transform: scale(1.05);\n}\n.freemium-survey-components .range-container .variant-text.range-scale button.active {\n transform: scale(1.05);\n}\n.freemium-survey-components .range-container .variant-text.range-scale.highlighted button:hover, .freemium-survey-components .range-container .variant-text.range-scale.highlighted button:focus, .freemium-survey-components .range-container .variant-text.range-scale.highlighted button.active {\n background: var(--default-brand-color) !important;\n background: var(--brand-color, var(--default-brand-color)) !important;\n}\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice {\n background: rgba(228, 62, 61, 0.3);\n}\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice:focus, .freemium-survey-components .range-container .variant-text.range-scale.standard .choice:hover, .freemium-survey-components .range-container .variant-text.range-scale.standard .choice.active {\n background: rgb(228, 62, 61);\n}\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.promoter,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.positive {\n background: rgba(0, 175, 80, 0.3);\n}\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.promoter:focus, .freemium-survey-components .range-container .variant-text.range-scale.standard .choice.promoter:hover, .freemium-survey-components .range-container .variant-text.range-scale.standard .choice.promoter.active,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.positive:focus,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.positive:hover,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.positive.active {\n background: rgb(0, 175, 80);\n}\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.passive,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.neutral {\n background: rgba(248, 196, 62, 0.3);\n}\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.passive:focus, .freemium-survey-components .range-container .variant-text.range-scale.standard .choice.passive:hover, .freemium-survey-components .range-container .variant-text.range-scale.standard .choice.passive.active,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.neutral:focus,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.neutral:hover,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.neutral.active {\n background: rgb(248, 196, 62);\n}\n.freemium-survey-components .range-container .variant-number.range-scale button {\n width: 40px;\n height: 40px;\n background: var(--choice-background-color);\n}\n.freemium-survey-components .range-container .variant-number.range-scale button:hover {\n transition: background 0.2s ease-in, border-color 0.2s ease-in, transform 0.2s cubic-bezier(0.5, 2, 0.5, 0.75);\n}\n.freemium-survey-components .range-container .variant-number.range-scale button:hover, .freemium-survey-components .range-container .variant-number.range-scale button:focus {\n transform: scale(1.1);\n}\n.freemium-survey-components .range-container .variant-number.range-scale button.active {\n transform: scale(1.1);\n}\n.freemium-survey-components .range-container .variant-number.range-scale.rounded button {\n border-radius: 50%;\n}\n.freemium-survey-components .range-container .variant-number.range-scale.square button {\n border-radius: 0;\n}\n.freemium-survey-components .range-container .variant-number.range-scale.curved button {\n border-radius: 3px;\n}\n.freemium-survey-components .range-container .variant-number.range-scale.highlighted button:hover, .freemium-survey-components .range-container .variant-number.range-scale.highlighted button:focus, .freemium-survey-components .range-container .variant-number.range-scale.highlighted button.active {\n background: var(--default-brand-color) !important;\n background: var(--brand-color, var(--default-brand-color)) !important;\n}\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice {\n background: rgba(228, 62, 61, 0.3);\n}\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice:focus, .freemium-survey-components .range-container .variant-number.range-scale.standard .choice:hover, .freemium-survey-components .range-container .variant-number.range-scale.standard .choice.active {\n background: rgb(228, 62, 61);\n}\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.promoter,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.positive {\n background: rgba(0, 175, 80, 0.3);\n}\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.promoter:focus, .freemium-survey-components .range-container .variant-number.range-scale.standard .choice.promoter:hover, .freemium-survey-components .range-container .variant-number.range-scale.standard .choice.promoter.active,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.positive:focus,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.positive:hover,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.positive.active {\n background: rgb(0, 175, 80);\n}\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.passive,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.neutral {\n background: rgba(248, 196, 62, 0.3);\n}\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.passive:focus, .freemium-survey-components .range-container .variant-number.range-scale.standard .choice.passive:hover, .freemium-survey-components .range-container .variant-number.range-scale.standard .choice.passive.active,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.neutral:focus,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.neutral:hover,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.neutral.active {\n background: rgb(248, 196, 62);\n}\n\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices {\n flex-wrap: nowrap;\n justify-content: center;\n grid-row-gap: 6px;\n row-gap: 6px;\n grid-column-gap: 6px;\n -moz-column-gap: 6px;\n column-gap: 6px;\n background: transparent;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .compact .choices {\n grid-gap: 2px;\n gap: 2px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.EMOJI .scale-5 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.EMOJI .scale-5 svg {\n display: block;\n width: 50px;\n height: 50px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.EMOJI .scale-7 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.EMOJI .scale-7 svg {\n display: block;\n width: 40px;\n height: 40px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.EMOJI .scale-10 svg {\n display: block;\n width: 25px;\n height: 25px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.STAR .scale-5 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.STAR .scale-5 svg {\n display: block;\n width: 30px;\n height: 30px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.STAR .scale-7 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.STAR .scale-7 svg {\n display: block;\n width: 30px;\n height: 30px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.STAR .scale-10 svg {\n display: block;\n width: 25px;\n height: 25px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.wrap {\n flex-wrap: wrap;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels {\n flex-direction: column;\n grid-gap: 8px !important;\n gap: 8px !important;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels .choice {\n display: flex;\n align-items: center;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 8px;\n grid-gap: 12px;\n gap: 12px;\n width: 100%;\n min-height: 44px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels.TEXT .choice {\n border: none;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels .contained {\n display: block;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels .uncontained {\n display: none;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels .scale-5 {\n min-width: 100%;\n max-width: 100%;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels .scale-7 {\n min-width: 100%;\n max-width: 100%;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .button-container.compact {\n width: auto;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .button-container.compact .choices {\n justify-content: space-between;\n}\n.freemium-survey-components.mobile-preview .range-container .variant-number.range-scale button {\n background: var(--choice-background-color);\n}\n.freemium-survey-components.mobile-preview .range-container .variant-text.range-scale .button-container {\n width: auto;\n max-width: 80%;\n}\n.freemium-survey-components.mobile-preview .range-container .variant-text.range-scale .button-container .choice {\n padding: 12px;\n justify-content: center;\n min-height: 44px;\n}\n\n@media (max-width: 550px) {\n .freemium-survey-components .range-container .range-scale .choices,\n .card-survey-style .range-container .range-scale .choices {\n flex-wrap: nowrap;\n justify-content: center;\n grid-row-gap: 6px;\n row-gap: 6px;\n grid-column-gap: 6px;\n -moz-column-gap: 6px;\n column-gap: 6px;\n background: transparent;\n }\n .freemium-survey-components .range-container .range-scale .compact .choices,\n .card-survey-style .range-container .range-scale .compact .choices {\n grid-gap: 2px;\n gap: 2px;\n }\n .freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-5,\n .card-survey-style .range-container .range-scale .choices.EMOJI .scale-5 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n }\n .freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-5 svg,\n .card-survey-style .range-container .range-scale .choices.EMOJI .scale-5 svg {\n display: block;\n width: 50px;\n height: 50px;\n }\n .freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-7,\n .card-survey-style .range-container .range-scale .choices.EMOJI .scale-7 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n }\n .freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-7 svg,\n .card-survey-style .range-container .range-scale .choices.EMOJI .scale-7 svg {\n display: block;\n width: 40px;\n height: 40px;\n }\n .freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-10 svg,\n .card-survey-style .range-container .range-scale .choices.EMOJI .scale-10 svg {\n display: block;\n width: 25px;\n height: 25px;\n }\n .freemium-survey-components .range-container .range-scale .choices.STAR .scale-5,\n .card-survey-style .range-container .range-scale .choices.STAR .scale-5 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n }\n .freemium-survey-components .range-container .range-scale .choices.STAR .scale-5 svg,\n .card-survey-style .range-container .range-scale .choices.STAR .scale-5 svg {\n display: block;\n width: 30px;\n height: 30px;\n }\n .freemium-survey-components .range-container .range-scale .choices.STAR .scale-7,\n .card-survey-style .range-container .range-scale .choices.STAR .scale-7 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n }\n .freemium-survey-components .range-container .range-scale .choices.STAR .scale-7 svg,\n .card-survey-style .range-container .range-scale .choices.STAR .scale-7 svg {\n display: block;\n width: 30px;\n height: 30px;\n }\n .freemium-survey-components .range-container .range-scale .choices.STAR .scale-10 svg,\n .card-survey-style .range-container .range-scale .choices.STAR .scale-10 svg {\n display: block;\n width: 25px;\n height: 25px;\n }\n .freemium-survey-components .range-container .range-scale .choices.wrap,\n .card-survey-style .range-container .range-scale .choices.wrap {\n flex-wrap: wrap;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels,\n .card-survey-style .range-container .range-scale .choices.with-labels {\n flex-direction: column;\n grid-gap: 8px !important;\n gap: 8px !important;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels .choice,\n .card-survey-style .range-container .range-scale .choices.with-labels .choice {\n display: flex;\n align-items: center;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 8px;\n grid-gap: 12px;\n gap: 12px;\n width: 100%;\n min-height: 44px;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels.TEXT .choice,\n .card-survey-style .range-container .range-scale .choices.with-labels.TEXT .choice {\n border: none;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels .contained,\n .card-survey-style .range-container .range-scale .choices.with-labels .contained {\n display: block;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels .uncontained,\n .card-survey-style .range-container .range-scale .choices.with-labels .uncontained {\n display: none;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels .scale-5,\n .card-survey-style .range-container .range-scale .choices.with-labels .scale-5 {\n min-width: 100%;\n max-width: 100%;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels .scale-7,\n .card-survey-style .range-container .range-scale .choices.with-labels .scale-7 {\n min-width: 100%;\n max-width: 100%;\n }\n .freemium-survey-components .range-container .range-scale .button-container.compact,\n .card-survey-style .range-container .range-scale .button-container.compact {\n width: auto;\n }\n .freemium-survey-components .range-container .range-scale .button-container.compact .choices,\n .card-survey-style .range-container .range-scale .button-container.compact .choices {\n justify-content: space-between;\n }\n .freemium-survey-components .range-container .variant-number.range-scale button,\n .card-survey-style .range-container .variant-number.range-scale button {\n background: var(--choice-background-color);\n }\n .freemium-survey-components .range-container .variant-text.range-scale .button-container,\n .card-survey-style .range-container .variant-text.range-scale .button-container {\n width: auto;\n max-width: 80%;\n }\n .freemium-survey-components .range-container .variant-text.range-scale .button-container .choice,\n .card-survey-style .range-container .variant-text.range-scale .button-container .choice {\n padding: 12px;\n justify-content: center;\n min-height: 44px;\n }\n .freemium-survey-components .range-container .range-scale button:hover, .freemium-survey-components .range-container .range-scale button:focus,\n .card-survey-style .range-container .range-scale button:hover,\n .card-survey-style .range-container .range-scale button:focus {\n color: unset;\n transform: unset;\n z-index: unset;\n position: unset;\n }\n .freemium-survey-components .range-container .range-scale.highlighted button:hover, .freemium-survey-components .range-container .range-scale.highlighted button:focus, .freemium-survey-components .range-container .range-scale.standard button:hover, .freemium-survey-components .range-container .range-scale.standard button:focus,\n .card-survey-style .range-container .range-scale.highlighted button:hover,\n .card-survey-style .range-container .range-scale.highlighted button:focus,\n .card-survey-style .range-container .range-scale.standard button:hover,\n .card-survey-style .range-container .range-scale.standard button:focus {\n background: var(--choice-background-color) !important;\n }\n}\n.widget-survey-components .range-container .range-scale .choices {\n background: transparent;\n}\n.widget-survey-components .range-container .range-scale .choices {\n flex-wrap: wrap;\n justify-content: center;\n grid-gap: 16px;\n gap: 16px;\n background: transparent;\n}\n.widget-survey-components .range-container .variant-number.range-scale button {\n border-radius: 50%;\n background: var(--choice-background-color);\n}\n\n.widget-survey-components.compact-style .range-container .range-scale .choices {\n flex-wrap: nowrap;\n justify-content: center;\n grid-row-gap: 6px;\n row-gap: 6px;\n grid-column-gap: 6px;\n -moz-column-gap: 6px;\n column-gap: 6px;\n background: transparent;\n}\n.widget-survey-components.compact-style .range-container .range-scale .compact .choices {\n grid-gap: 2px;\n gap: 2px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.EMOJI .scale-5 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.EMOJI .scale-5 svg {\n display: block;\n width: 50px;\n height: 50px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.EMOJI .scale-7 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.EMOJI .scale-7 svg {\n display: block;\n width: 40px;\n height: 40px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.EMOJI .scale-10 svg {\n display: block;\n width: 25px;\n height: 25px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.STAR .scale-5 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.STAR .scale-5 svg {\n display: block;\n width: 30px;\n height: 30px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.STAR .scale-7 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.STAR .scale-7 svg {\n display: block;\n width: 30px;\n height: 30px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.STAR .scale-10 svg {\n display: block;\n width: 25px;\n height: 25px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.wrap {\n flex-wrap: wrap;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels {\n flex-direction: column;\n grid-gap: 8px !important;\n gap: 8px !important;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels .choice {\n display: flex;\n align-items: center;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 8px;\n grid-gap: 12px;\n gap: 12px;\n width: 100%;\n min-height: 44px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels.TEXT .choice {\n border: none;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels .contained {\n display: block;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels .uncontained {\n display: none;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels .scale-5 {\n min-width: 100%;\n max-width: 100%;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels .scale-7 {\n min-width: 100%;\n max-width: 100%;\n}\n.widget-survey-components.compact-style .range-container .range-scale .button-container.compact {\n width: auto;\n}\n.widget-survey-components.compact-style .range-container .range-scale .button-container.compact .choices {\n justify-content: space-between;\n}\n.widget-survey-components.compact-style .range-container .variant-number.range-scale button {\n background: var(--choice-background-color);\n}\n.widget-survey-components.compact-style .range-container .variant-text.range-scale .button-container {\n width: auto;\n max-width: 80%;\n}\n.widget-survey-components.compact-style .range-container .variant-text.range-scale .button-container .choice {\n padding: 12px;\n justify-content: center;\n min-height: 44px;\n}");const f=(e,n,t,r,o,a)=>{let s="";return s="STAR"===t?-1!==n?(r?n<e:n>=e)?"active":"":(r?(a??1/0)<e:(a??-1)>=e)?"active":"":e===a?"active":"",s+" "+o.find((n=>n.min<=e&&n.max>=e))?.label??"promoter"},h=({type_variant:e,activeStarRating:n,eachValue:r,max:o,props:a})=>t.createElement(t.Fragment,null,"NUMBER"===e&&r,"TEXT"===e&&a.type_info.scale_properties?.labels?.values[r-1],["STAR","EMOJI"].includes(e)&&t.createElement(p,{scale:o,type:e,index:Math.max(0,r-1),highlight:a.value===r&&-1===n})),y=e=>{const{type_info:{type_variant:r="NUMBER",scale_properties:{button_style:{type:o="highlighted",shape:a="rounded"}={},labels:{values:s=["Very unlikely","Very likely"],preference:i="none"}={},range:c=[{id:"3",min:0,max:6,label:"detractor"},{id:"2",min:7,max:8,label:"passive"},{id:"1",min:9,max:10,label:"promoter"}]}={},footer_text:l}}=e,u=Number(c?.[0]?.min),m=Number(c?.[c.length-1]?.max),d="descending"===e.type_info.scale_properties?.order,[p,g]=n.useState(-1),y=n.useRef(Array.from({length:m+(0===u?1:0)},((e,n)=>d?m-n:n+u)));return 1===(x=e.type_info)?.scale_properties?.range?.[x?.scale_properties.range.length-1]?.max?t.createElement(v,{type_info:e.type_info,onSelect:n=>e.onChangeHandler(Number(n)),value:null==e.value?e.value:!!e.value}):t.createElement("div",{className:"range-container","data-test-input":"range"},t.createElement("div",{className:`range-scale ${a} ${o} variant-${r.toLowerCase()} ${3===y.current.length?"minimal":""}`},t.createElement("div",{className:"button-container "+(m<=7?"compact":"")},t.createElement("div",{className:`choices ${"TEXT"===r||"all"===i?"with-labels ":""}${r} ${y.current.length>7?"wrap":"no-wrap"}`.trim(),role:"radiogroup","aria-required":!0},y.current.map((n=>t.createElement("div",{className:`choice-container scale-${y.current.length}`},t.createElement("button",{className:`choice ${f(n,p,r,d,c,e.value)}`,role:"radio","aria-checked":e.value===n,key:n,"data-test-range-choice":n,onClick:t=>{e.onChangeHandler(n)},onMouseOver:()=>{"STAR"===r&&g(n)},onMouseLeave:()=>{"STAR"===r&&g(-1)}},t.createElement(h,{type_variant:r,activeStarRating:p,eachValue:n,max:m,props:e}),"TEXT"!==r&&"all"===i&&t.createElement("div",{className:"contained label",role:"note"},s[0===u?n:n-1])),"TEXT"!==r&&"all"===i&&t.createElement("div",{className:"uncontained label",role:"note"},s[0===u?n:n-1]))))),"TEXT"!==r&&"edges"===i&&t.createElement("div",{className:"labels",style:{flexDirection:d?"row-reverse":"row"}},t.createElement("span",{className:"label",role:"note"},`${u} - ${s[0]}`),t.createElement("span",{className:"label",role:"note"},`${m} - ${s[s.length-1]}`)))),t.createElement("div",{className:"footer",role:"note"},l));var x},x=(e,n)=>(e.defaultProps=n,e),b=e=>null==e||"string"==typeof e&&""===e.trim()||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,w=(e,n,t)=>{if(e){let r=null;if(null!=t&&(r={"{{nps.rating}}":String(t)}),n&&"object"==typeof n&&Object.keys(n).length>0&&(r={...n,...r??{}}),r){const n=new RegExp(Object.keys(r).join("|"),"gi");return e.replace(n,(function(e){return r?.[e.toLowerCase()]??""}))??""}}return e??""},k=e=>({...e?.brand_color&&{"--brand-color":e.brand_color},...e?.body_background_color&&{"--background-color":e.body_background_color},...e?.secondary_button_color&&{"--secondary-button-color":e.secondary_button_color},...e?.question_background_color&&{"--question-background-color":e.question_background_color},...e?.primary_button_text_color&&{"--button-text-color":e.primary_button_text_color},...e?.secondary_button_text_color&&{"--secondary-button-text-color":e.secondary_button_text_color},...e?.question_text_color&&{"--question-text-color":e.question_text_color}});g('.freemium-survey-components .input-container,\n.freemium-survey-components .textarea-container {\n display: flex;\n flex-direction: column;\n width: 100%;\n border-radius: 4px;\n position: relative;\n}\n.freemium-survey-components label.input-label {\n display: inline-block;\n padding-bottom: 8px;\n padding-left: 2px;\n font-size: 0.75rem;\n font-weight: 400;\n}\n.freemium-survey-components label.required::after {\n content: "*";\n position: relative;\n top: 2px;\n font-weight: 500;\n font-size: 0.85rem;\n padding-left: 3px;\n color: #d72d30;\n}\n.freemium-survey-components .input-basic {\n width: 100%;\n display: flex;\n align-items: center;\n border-radius: 4px;\n border: 1px solid var(--default-brand-color);\n border: 1px solid var(--brand-color, var(--default-brand-color));\n transition: border-color 0.2s linear;\n background: #fff;\n}\n.freemium-survey-components .textarea-container .input-basic {\n flex-direction: column;\n align-items: unset;\n}\n.freemium-survey-components .input-basic.error {\n border: 1px solid #d72d30;\n}\n.freemium-survey-components .input-basic.error:hover {\n border: 1px solid #d72d30;\n}\n.freemium-survey-components .input-basic.error[focus-within] {\n box-shadow: none;\n}\n.freemium-survey-components .input-basic.error:focus-within {\n box-shadow: none;\n}\n.freemium-survey-components .input-basic:hover {\n border-color: var(--default-brand-color);\n border-color: var(--brand-color, var(--default-brand-color));\n transition: 0.2s linear;\n}\n.freemium-survey-components .input-basic[focus-within] {\n border: 1px solid transparent;\n box-shadow: 0 0 0 2px var(--default-brand-color);\n box-shadow: 0 0 0 2px var(--brand-color, var(--default-brand-color));\n}\n.freemium-survey-components .input-basic:focus-within {\n border: 1px solid transparent;\n box-shadow: 0 0 0 2px var(--default-brand-color);\n box-shadow: 0 0 0 2px var(--brand-color, var(--default-brand-color));\n}\n.freemium-survey-components .input-basic[focus-within] .end-max-length {\n opacity: 1;\n}\n.freemium-survey-components .input-basic:focus-within .end-max-length {\n opacity: 1;\n}\n.freemium-survey-components .end-max-length {\n transition: opacity ease 0.2s;\n opacity: 0;\n padding: 0 8px;\n font-size: 0.75rem;\n color: #264966;\n}\n.freemium-survey-components .textarea-container .end-max-length {\n padding: 8px;\n align-self: flex-end;\n}\n.freemium-survey-components span.input-error {\n display: block;\n padding-left: 2px;\n padding-top: 4px;\n font-size: 0.9rem;\n color: #d72d30;\n}\n.freemium-survey-components input[type=text] {\n padding: 6px 12px;\n flex: 1;\n border: unset;\n height: 32px;\n font-size: 1rem;\n min-width: 0;\n /* line-height: ${typography.input.text.lineHeight}; */\n border-radius: 4px;\n}\n.freemium-survey-components input[type=text],\n.freemium-survey-components textarea {\n outline: none;\n border: none;\n}\n.freemium-survey-components input[type=text]:focus,\n.freemium-survey-components textarea:focus {\n box-shadow: none !important;\n}\n.freemium-survey-components input[type=text]::-moz-placeholder {\n color: #92a2b2;\n font-weight: 400;\n font-size: 0.85rem;\n}\n.freemium-survey-components input[type=text]::placeholder {\n color: #92a2b2;\n font-weight: 400;\n font-size: 0.85rem;\n}\n.freemium-survey-components textarea {\n min-height: 116px;\n padding: 12px;\n flex: 1;\n border: unset;\n resize: none;\n font-size: 1rem;\n min-width: 0;\n /* line-height: ${typography.input.text.lineHeight}; */\n border-radius: 4px;\n}\n.freemium-survey-components textarea::-moz-placeholder {\n color: #92a2b2;\n font-weight: 400;\n font-size: 0.85rem;\n}\n.freemium-survey-components textarea::placeholder {\n color: #92a2b2;\n font-weight: 400;\n font-size: 0.85rem;\n}');const E={isRequired:!1,showCount:!0,isErrored:!1,inline:!1,spellCheck:!1},C=n.forwardRef(((e,r)=>{const o=n.useRef(null);n.useEffect((()=>{setTimeout((()=>{o.current?.focus()}),s+(e.autoFocusDelay??0))}),[]);const{inputStyle:a,style:i,className:c,showCount:l,isErrored:u,startLabel:m,isRequired:d,errorText:p,endLabel:g,maxLength:v=256,onChange:f,...h}=e;return t.createElement("div",{className:"input-container",style:i},e.label&&t.createElement("label",{className:"input-label "+(d?"required":"")},e.label),t.createElement(t.Fragment,null,m&&t.createElement("div",{className:"start-label"},m),t.createElement("div",{className:`input-basic ${u?"error":""}${c||""}`},t.createElement("input",{...h,onFocus:e=>e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length),type:"text",autoComplete:"off",ref:o,style:a,onChange:e=>{e.target.value?.length>v||f?.(e)}}),l&&v>0&&t.createElement("div",{className:"end-max-length"},`${e.value&&e.value.length||0}/${v}`)),g&&t.createElement("div",{className:"end-label"},g)),u&&p&&t.createElement("span",{className:"input-error"},e.errorText))})),q=n.forwardRef(((e,r)=>{const o=n.useRef(null);n.useEffect((()=>{setTimeout((()=>{o.current?.focus()}),s+(e.autoFocusDelay??0))}),[]);const{inputStyle:a,style:i,className:c,showCount:l,maxLength:u=1500,startLabel:m,isRequired:d,onChange:p,...g}=e;return t.createElement(t.Fragment,null,t.createElement("div",{className:"textarea-container",style:i},e.label&&t.createElement("label",{className:"input-label "+(d?"required":"")},e.label),m&&t.createElement("div",{className:"start-label"},m),t.createElement("div",{className:`input-basic ${c||""}`},t.createElement("textarea",{...g,onFocus:e=>e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length),autoComplete:"off",ref:o,style:a,onChange:e=>{e.target.value?.length>u||p?.(e)}}),l&&u&&u>0&&t.createElement("div",{className:"end-max-length"},`${e.value&&e.value.length||0}/${u}`)),e.endLabel&&t.createElement("div",{className:"end-label"},e.endLabel)))})),B=x(C,E),_=x(q,E);g('.freemium-survey-components .checkbox-group {\n width: 100%;\n display: flex;\n grid-gap: 12px;\n gap: 12px;\n flex-direction: column;\n white-space: nowrap;\n flex-wrap: wrap;\n}\n.freemium-survey-components .icon-container {\n display: inline-block;\n flex: 0 0 12px;\n width: 12px;\n height: 12px;\n min-width: 12px;\n min-height: 12px;\n color: inherit;\n position: absolute;\n left: 1px;\n top: 2px;\n}\n.freemium-survey-components .tick-icon {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 100%;\n width: 100%;\n color: inherit;\n fill: currentColor;\n}\n.freemium-survey-components input[type=checkbox] {\n position: absolute;\n clip: rect(0px 0px 0px 0px);\n width: 0px;\n height: 0px;\n}\n.freemium-survey-components input[type=checkbox]:focus ~ .checkbox {\n /* box-shadow: ${pseudo.focus} 0px 0px 0px 2px; */\n box-shadow: var(--default-brand-color) 0px 0px 0px 2px;\n box-shadow: var(--brand-color, var(--default-brand-color)) 0px 0px 0px 2px;\n border-color: transparent;\n}\n.freemium-survey-components .checkbox-label {\n display: flex;\n align-items: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: left;\n opacity: 1;\n line-height: 1.2;\n cursor: pointer;\n font-size: 1rem;\n padding: 16px 24px;\n min-width: 200px;\n border: 1px solid #ebeff3;\n border-radius: 4px;\n white-space: pre-wrap;\n}\n.freemium-survey-components .checkbox-label:hover {\n border-color: #92a2b1;\n}\n.freemium-survey-components .checkbox-label.disabled {\n opacity: 0.5;\n cursor: "not-allowed";\n}\n.freemium-survey-components .checkbox {\n transition: background-color ease-in 0.2s;\n min-width: 14px;\n min-height: 14px;\n min-height: 14px;\n max-height: 14px;\n border-radius: 2px;\n position: relative;\n margin-right: 16px;\n background-color: #fff;\n border: 1px solid;\n text-align: left;\n border-color: var(--default-brand-color);\n border-color: var(--brand-color, var(--default-brand-color));\n}\n.freemium-survey-components .checkbox:hover {\n border-color: var(--default-brand-color);\n border-color: var(--brand-color, var(--default-brand-color));\n box-shadow: var(--default-background-color) 0px 0px 0px 5px;\n box-shadow: var(--background-color, var(--default-background-color)) 0px 0px 0px 5px;\n}\n.freemium-survey-components input[type=checkbox]:checked ~ .checkbox {\n background-color: var(--default-brand-color);\n background-color: var(--brand-color, var(--default-brand-color));\n border-color: var(--default-brand-color);\n border-color: var(--brand-color, var(--default-brand-color));\n}\n.freemium-survey-components input[type=checkbox]:checked ~ .checkbox:hover {\n border-color: var(--default-brand-color);\n border-color: var(--brand-color, var(--default-brand-color));\n}\n.freemium-survey-components input[type=checkbox]:disabled ~ .checkbox:hover {\n box-shadow: unset;\n border-color: unset;\n}');const O=()=>t.createElement("svg",{id:"tick",className:"tick-icon",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"title",viewBox:"0 0 10 10"},t.createElement("path",{d:"M3 5.87c-.18666814.00267463-.36667109-.06932655-.5-.2L.21 3.41c-.1786328-.17863279-.24839684-.43899577-.1830127-.6830127.06538414-.24401694.25598306-.43461586.5-.5C.77100423 2.16160316 1.0313672 2.23136721 1.21 2.41L3 4.18 6.8.33c.27679776-.27455556.72320224-.27455556 1 0 .13696438.13025306.21450026.31098915.21450026.5S7.93696438 1.19974694 7.8 1.33L3.45 5.67c-.12082534.11896945-.28072735.19003701-.45.2Z",fill:"#fff",fillRule:"evenodd"})),N=({values:e=[],othersValue:r="",options:o,name:i,autoFocusDelay:c,onChangeHandler:l,saveOthersValue:u})=>{const m=e.includes(a),d=n.useRef(null);return n.useEffect((()=>{setTimeout((()=>{d.current?.focus()}),s+c)}),[]),t.createElement("div",{className:"checkbox-group"},t.createElement("button",{ref:d,className:"autofocus-button","aria-label":"checkbox question"}),o?.filter((e=>e.value!==a)).filter((e=>!e.meta?.is_deleted)).map(((n,r)=>t.createElement(S,{key:n.id,checked:e?.includes(n.value),name:n.value,id:n.id,onChange:(t,r)=>{if(r){const t=o.reduce(((e,n)=>({...e,[n.value]:n.position})),{});l([...e||[],n.value].sort(((e,n)=>t[e]-t[n])))}else{const t=e.indexOf(n.value);t>-1&&e.splice(t,1),l([...e])}}},n.value))),o?.find((e=>e.value===a))&&t.createElement(S,{key:"others",checked:m,name:a,id:a,onChange:(n,t)=>{if(t)l([...e,a]);else{const n=e.findIndex((e=>e===a));e.splice(n,1),l(e)}}},"Others"),m&&t.createElement(t.Fragment,null,t.createElement(B,{placeholder:"Enter your comment",value:r,onChange:e=>{u(i,e.target.value)},autoFocusDelay:10,label:""})))},S=x((e=>{const r=n.useRef(null);return n.useEffect((()=>{e.autoFocus&&setTimeout((()=>{r.current?.focus()}),320)}),[]),t.createElement("label",{className:`checkbox-label ${e.disabled&&"disabled"}`},t.createElement("input",{ref:r,id:e.id,type:"checkbox",name:e.name,readOnly:e.readOnly,disabled:e.disabled,"aria-disabled":e.disabled,checked:e.checked,onChange:e.readOnly?()=>{}:n=>e.onChange(n,n.target.checked)}),t.createElement("div",{className:"checkbox"},e.checked&&t.createElement("div",{className:"icon-container"},t.createElement(O,null)," ")),t.createElement("div",null,e.children))}),{checked:!1});g('.freemium-survey-components .radio-group {\n display: flex;\n grid-gap: 12px;\n gap: 12px;\n white-space: nowrap;\n flex-direction: column;\n width: 100%;\n}\n.freemium-survey-components .radio {\n background-color: #fff;\n border: 1px solid;\n border-color: var(--default-brand-color);\n border-color: var(--brand-color, var(--default-brand-color));\n transition: background-color ease-in 0.2s;\n min-width: 18px;\n max-width: 18px;\n min-height: 18px;\n max-height: 18px;\n border-radius: 50%;\n position: relative;\n margin-right: 16px;\n text-align: left;\n}\n.freemium-survey-components .radio:before {\n left: 3px;\n top: 3px;\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n transition: all ease-in 0.2s;\n background-color: #fff;\n}\n.freemium-survey-components .radio-label {\n display: flex;\n align-items: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: left;\n cursor: pointer;\n line-height: 1.2;\n font-size: 1rem;\n font-weight: 400;\n padding: 16px 24px;\n min-width: 200px;\n border: 1px solid #ebeff3;\n border-radius: 4px;\n white-space: pre-wrap;\n color: #3a4b67;\n}\n.freemium-survey-components input[type=radio] {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n width: 0px;\n height: 0px;\n}\n.freemium-survey-components input[type=radio]:focus ~ .radio {\n /* box-shadow: ${pseudo.focus} 0px 0px 0px 3px; */\n box-shadow: var(--default-brand-color) 0px 0px 0px 3px;\n box-shadow: var(--brand-color, var(--default-brand-color)) 0px 0px 0px 3px;\n border-color: transparent;\n}\n.freemium-survey-components input[type=radio]:checked ~ .radio:before {\n background-color: var(--default-brand-color);\n background-color: var(--brand-color, var(--default-brand-color));\n}\n.freemium-survey-components .radio-label:hover {\n border-color: #92a2b1;\n}');const A=({name:e,options:r,value:o,autoFocusDelay:i,onChangeHandler:c,saveOthersValue:l,othersOption:u,othersRequired:m,othersValue:d,isFinalQn:p})=>{const g=n.useRef(null);return n.useEffect((()=>{setTimeout((()=>{g.current?.focus()}),s+i)}),[]),t.createElement("div",{className:"radio-group",role:"radiogroup"},t.createElement("button",{ref:g,className:"autofocus-button","aria-label":"radio question",tabIndex:-1}),r?.sort(((e,n)=>e.value===a?1:n.value===a?-1:0)).filter((e=>!e.meta?.is_deleted))?.map(((n,r)=>t.createElement(I,{key:n.value,value:n.value,name:e,onChange:n=>{n.currentTarget.value!==a&&l(e,null),c(n.currentTarget.value)},checked:o===n.value},n.value===a?"Others":n.value))),o===a&&t.createElement(t.Fragment,null,t.createElement(B,{value:d??"",onChange:n=>{o!==a&&p&&c(a),l(e,n.target.value)},placeholder:"Enter your comment",label:"",autoFocusDelay:10})))},I=x((e=>{const r=n.useRef(null);return n.useEffect((()=>{e.autoFocus&&setTimeout((()=>{r.current?.focus()}),320)}),[]),t.createElement("label",{className:"radio-label"},t.createElement("input",{ref:r,type:"radio",name:e.name,value:e.value,checked:e.checked,onChange:e.onChange}),t.createElement("div",{className:"radio"}),t.createElement("div",null,e.children))}),{checked:!1,autoFocus:!1});g(".progressbar-container {\n width: 100%;\n height: 4px;\n position: fixed;\n top: 0;\n left: 0;\n z-index: 1;\n text-align: left;\n overflow: hidden;\n border-top-left-radius: inherit;\n border-top-right-radius: inherit;\n}\n\n.progressbar-container.widget {\n position: absolute;\n top: 0;\n height: 2px;\n}\n\n.progressbar {\n transition: transform 0.2s linear 200ms;\n transform-origin: left;\n height: 100%;\n background-color: var(--default-brand-color);\n background-color: var(--brand-color, var(--default-brand-color));\n}");const M=e=>{const{totalSteps:n,completedSteps:r,widget:o}=e;return t.createElement("div",{className:"progressbar-container "+(o?"widget":"")},t.createElement("div",{className:"progressbar",style:{width:(r>0?100/n:0)+"%",transform:`scaleX(${r})`}}))};g(".freemium-survey-components .action-button {\n width: auto;\n display: block;\n padding: 8px 16px;\n cursor: pointer;\n line-height: 1.5;\n text-align: center;\n font-weight: 600;\n letter-spacing: 0.3px;\n border-radius: 4px;\n white-space: nowrap;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n color: --default-button-text-color;\n color: var(--button-text-color, --default-button-text-color);\n background: var(--default-brand-color);\n background: var(--brand-color, var(--default-brand-color));\n border: 1px solid var(--default-brand-color);\n border: 1px solid var(--brand-color, var(--default-brand-color));\n border-radius: 4px;\n min-width: 200px;\n max-width: -moz-fit-content;\n max-width: fit-content;\n transform: translateY(0px);\n transition: transform ease 0.2s;\n}\n.freemium-survey-components .action-button:not([disabled]):hover {\n transform: translateY(-4px);\n}\n.freemium-survey-components .action-button[disabled] {\n cursor: not-allowed;\n opacity: 0.6;\n}\n.freemium-survey-components button:focus:not(:active) {\n /* box-shadow: 0 0 0 2px ${pseudo.focus}; */\n}\n\n@media (max-width: 550px) {\n .freemium-survey-components .action-button {\n min-width: 120px;\n }\n}\n.widget-survey-components .action-button {\n min-width: 120px;\n}\n\n.freemium-survey-components.mobile-preview .action-button {\n min-width: 120px;\n}");const T=()=>t.createElement(t.Fragment,null,"..."),R=e=>{const{inline:n=!1,children:r,disabled:o,className:a="",htmlType:s,type:i="primary",onClick:c,size:l,overrideStyleClassName:u="",loading:m=!1,...d}=e;return t.createElement("button",{style:n?{display:"inline-block"}:{},disabled:o,className:`action-button ${a} ${u}`,type:s,onClick:c,...d},m?t.createElement(T,null):r)},Z=({question:e,formValues:n,othersMeta:r,onChangeHandler:o,saveOthersValue:s,autoFocusDelay:i,isFinalQn:c})=>{switch(e.type_info.question_type){case"RANGE":return t.createElement(y,{type_info:e.type_info,onChangeHandler:o,value:n[e.name]});case"CHECKBOX":case"MULTI_SELECT":return t.createElement(N,{name:e.name,values:n[e.name],othersValue:r[e.name],options:e.choices,onChangeHandler:o,saveOthersValue:s,othersOption:e.choices.find((e=>e.value===a)),othersRequired:e.type_info.meta?.othersRequired,autoFocusDelay:i});case"RADIO":case"DROPDOWN":return t.createElement(A,{autoFocusDelay:i,name:e.name,onChangeHandler:o,saveOthersValue:s,options:e.choices,value:n[e.name],othersValue:r[e.name],othersOption:e.choices.find((e=>e.value===a)),othersRequired:e.type_info.meta?.othersRequired,isFinalQn:c});case"INPUT":case"TEXT":return e.type_info?.meta?.readOnly?t.createElement("div",{className:"message-container"},e.type_info?.meta?.value):t.createElement("div",{className:"responsive-text-field"},t.createElement(B,{autoFocusDelay:i,label:"",isRequired:e.is_required,value:n[e.name]||"",placeholder:e.type_info?.meta?.placeholder??"",onChange:e=>o(e.target.value)}),t.createElement(_,{autoFocusDelay:i,label:"",maxLength:256,isRequired:e.is_required,placeholder:e.type_info?.meta?.placeholder??"",value:n[e.name]||"",onChange:e=>o(e.target.value)}));case"PARAGRAPH":return t.createElement(_,{autoFocusDelay:i,label:"",isRequired:e.is_required,placeholder:e.type_info?.meta?.placeholder??"",value:n[e.name]||"",onChange:e=>o(e.target.value)});case"BOOLEAN":return t.createElement(v,{type_info:e.type_info,onSelect:o,value:n[e.name]});default:return console.error(`Question type ${e.type_info.question_type} not found`),null}};g(":root {\n --default-brand-color: #264966;\n --default-question-text-color: #3a4b67;\n --default-question-background-color: #fff;\n --default-background-color: #f8f8f8;\n --default-button-text-color: #fff;\n --default-secondary-button-text-color: #000;\n --default-input-placeholder-color: #92a2b1;\n --compact-widget-max-height: 560px;\n --default-widget-max-height: 400px;\n --cozy-widget-max-height: 380px;\n}\n\n.freemium-survey-components.card-survey-style {\n padding: 20px 0;\n}\n.freemium-survey-components.card-survey-style .freemium-survey-step-navigation {\n white-space: nowrap;\n border-radius: 3px;\n border: 1px solid #efefef;\n}\n.freemium-survey-components.card-survey-style .freemium-survey-step-navigation .navigation-button {\n width: 38px;\n text-align: -webkit-center;\n height: 38px;\n background-color: #fff;\n border: none;\n cursor: pointer;\n border-radius: 0 3px 3px 0;\n}\n.freemium-survey-components.card-survey-style .freemium-survey-step-navigation .navigation-button svg {\n margin-top: 5px;\n}\n.freemium-survey-components.card-survey-style .freemium-survey-step-navigation .navigation-button:first-of-type {\n border-right: 1px solid #efefef;\n border-radius: 3px 0 0 3px;\n}\n.freemium-survey-components.card-survey-style .freemium-survey-step-navigation .navigation-button:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.freemium-survey-components.card-survey-style .freemium-survey-step-navigation .navigation-button:focus {\n position: relative;\n z-index: 1;\n}\n.freemium-survey-components.card-survey-style .question-container {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n text-align: center;\n width: 100%;\n max-width: 700px;\n margin: 0 auto;\n background: var(--default-question-background-color);\n background: var(--question-background-color, var(--default-question-background-color));\n border-radius: 4px;\n transition: transform 500ms ease 0ms, opacity 200ms ease 0ms;\n box-shadow: 0px 12px 15px rgba(18, 52, 77, 0.03);\n padding: 28px;\n grid-gap: 32px;\n gap: 32px;\n position: relative;\n height: -moz-fit-content;\n height: fit-content;\n transition: opacity 50ms ease-out;\n overflow: auto;\n}\n.freemium-survey-components.card-survey-style .hide-question-container {\n opacity: 0;\n}\n.freemium-survey-components.card-survey-style .question-text {\n font-size: 1rem;\n font-weight: 600;\n line-height: 1.8;\n width: 100%;\n text-align: left;\n color: var(--default-question-text-color);\n color: var(--question-text-color, var(--default-question-text-color));\n}\n.freemium-survey-components.card-survey-style .autofocus-button {\n border: none;\n width: 0;\n height: 0;\n opacity: 0;\n margin-top: -12px;\n margin-left: -12px;\n position: absolute;\n}\n.freemium-survey-components.card-survey-style .fade-enter .question-container {\n opacity: 0;\n transform: translateY(15px);\n}\n.freemium-survey-components.card-survey-style .fade-enter-active .question-container {\n opacity: 1;\n transform: translateY(0);\n}\n.freemium-survey-components.card-survey-style .fade-exit .question-container {\n opacity: 1;\n transform: translateY(0);\n}\n.freemium-survey-components.card-survey-style .fade-exit-active .question-container {\n opacity: 0.05;\n transform: translateY(-15px);\n}\n.freemium-survey-components.card-survey-style .fade-reverse-enter .question-container {\n opacity: 0;\n transform: translateY(-15px);\n}\n.freemium-survey-components.card-survey-style .fade-reverse-enter-active .question-container {\n opacity: 1;\n transform: translateY(0);\n}\n.freemium-survey-components.card-survey-style .fade-reverse-exit .question-container {\n opacity: 1;\n transform: translateY(0);\n}\n.freemium-survey-components.card-survey-style .fade-reverse-exit-active .question-container {\n opacity: 0.05;\n transform: translateY(15px);\n}\n.freemium-survey-components.card-survey-style .fade-enter-active .question-container,\n.freemium-survey-components.card-survey-style .fade-exit-active .question-container,\n.freemium-survey-components.card-survey-style .fade-reverse-enter-active .question-container,\n.freemium-survey-components.card-survey-style .fade-reverse-exit-active .question-container {\n transition: opacity 200ms, transform 200ms;\n pointer-events: none;\n}\n.freemium-survey-components.card-survey-style .question-footer {\n display: flex;\n grid-gap: 40px;\n gap: 40px;\n width: 100%;\n align-items: center;\n}\n.freemium-survey-components.card-survey-style .question-footer:empty {\n display: none;\n}\n.freemium-survey-components.card-survey-style .question-footer:only-child {\n margin-left: auto;\n}\n.freemium-survey-components.card-survey-style .action-buttons {\n display: flex;\n grid-gap: 20px;\n gap: 20px;\n flex-direction: row-reverse;\n width: 100%;\n}\n.freemium-survey-components.card-survey-style .action-buttons:empty {\n display: none;\n}\n.freemium-survey-components.card-survey-style .skip-button {\n font-weight: 500;\n color: #3a4b67;\n cursor: pointer;\n background: transparent;\n border: none;\n min-width: 40px;\n padding: 8px 16px;\n border-radius: 4px;\n color: var(--default-secondary-button-text-color);\n color: var(--secondary-button-text-color, var(--default-secondary-button-text-color));\n letter-spacing: 0.05rem;\n line-height: 1.5;\n border: 1px solid transparent;\n transform: translateY(0px);\n transition: transform ease 0.2s;\n}\n.freemium-survey-components.card-survey-style .skip-button:hover {\n background-color: #f3f3f3;\n transform: translateY(-4px);\n}\n.freemium-survey-components.card-survey-style .next-button {\n color: var(--default-button-text-color);\n color: var(--button-text-color, var(--default-button-text-color));\n}\n.freemium-survey-components.card-survey-style .submit {\n max-width: 700px;\n text-align: left;\n background: transparent;\n box-shadow: none;\n color: var(--default-button-text-color);\n color: var(--button-text-color, var(--default-button-text-color));\n}\n.freemium-survey-components.card-survey-style .thankyou {\n display: flex;\n align-items: center;\n justify-content: center;\n grid-gap: 20px;\n gap: 20px;\n min-height: 180px;\n}\n.freemium-survey-components.card-survey-style .thankyou .heading {\n font-weight: 500;\n font-size: 22px;\n}\n.freemium-survey-components.card-survey-style .thankyou .text {\n white-space: pre-wrap;\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1.6;\n color: #475867;\n width: 75%;\n}\n.freemium-survey-components.card-survey-style .thankyou .redirection-text {\n color: #929292;\n margin-bottom: 12px;\n font-weight: 300;\n}\n.freemium-survey-components.card-survey-style .thankyou .link {\n width: 100%;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: #666;\n font-weight: 500;\n text-decoration: underline;\n}\n.freemium-survey-components.card-survey-style .responsive-text-field {\n width: 100%;\n}\n.freemium-survey-components.card-survey-style .responsive-text-field .textarea-container {\n display: none;\n}\n.freemium-survey-components.card-survey-style .message-container:empty {\n display: none;\n}\n.freemium-survey-components.card-survey-style footer.survey-footer {\n display: flex;\n padding: 12px 0;\n border-top: 1px solid #eaeaea;\n justify-content: center;\n align-items: center;\n background-color: #fff;\n position: fixed;\n bottom: 0;\n left: 0;\n font-weight: 400;\n width: 100%;\n box-shadow: 0px 0px 15px rgba(18, 52, 77, 0.05);\n}\n.freemium-survey-components.card-survey-style footer.survey-footer .survey-footer-text {\n display: flex;\n color: #4C4C4C;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n padding-top: 8px;\n margin: 0 40px;\n}\n.freemium-survey-components.card-survey-style footer.survey-footer .survey-progress {\n border-right: 1px solid #CFD7DF;\n padding: 0px 40px;\n font-size: 14px;\n line-height: 20px;\n font-weight: 400;\n color: #4C4C4C;\n}\n.freemium-survey-components.card-survey-style footer.survey-footer .survey-progress .progress-completion {\n font-weight: 700;\n}\n.freemium-survey-components.card-survey-style footer.survey-footer .progressbar-container {\n position: static;\n margin-top: 3px;\n background-color: #D9D9D9;\n}\n\n@media (max-width: 550px) {\n div.freemium-survey-components.card-survey-style .responsive-text-field .input-container {\n display: none;\n }\n div.freemium-survey-components.card-survey-style .responsive-text-field .textarea-container {\n display: flex;\n }\n div.freemium-survey-components.card-survey-style .responsive-text-field .textarea-container textarea {\n min-height: 80px;\n height: 80px;\n }\n div.freemium-survey-components.card-survey-style .question-footer {\n flex-direction: column-reverse;\n grid-gap: 0;\n gap: 0;\n }\n div.freemium-survey-components.card-survey-style .question-footer > *:first-child {\n margin-bottom: 0px;\n }\n div.freemium-survey-components.card-survey-style .question-footer > * {\n margin-bottom: 20px;\n }\n div.freemium-survey-components.card-survey-style .freemium-survey-step-navigation {\n width: 100%;\n }\n div.freemium-survey-components.card-survey-style .freemium-survey-step-navigation .navigation-button {\n width: 50%;\n }\n div.freemium-survey-components.card-survey-style .action-buttons {\n flex-direction: column;\n width: 100%;\n }\n div.freemium-survey-components.card-survey-style .action-buttons button {\n max-width: unset;\n }\n div.freemium-survey-components.card-survey-style .action-button {\n max-width: unset;\n width: 100%;\n }\n div.freemium-survey-components.card-survey-style .thankyou .text {\n width: auto;\n }\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .responsive-text-field .input-container {\n display: none;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .responsive-text-field .textarea-container {\n display: flex;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .responsive-text-field .textarea-container textarea {\n min-height: 80px;\n height: 80px;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .question-footer {\n flex-direction: column-reverse;\n grid-gap: 0;\n gap: 0;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .question-footer > *:first-child {\n margin-bottom: 0px;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .question-footer > * {\n margin-bottom: 20px;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .freemium-survey-step-navigation {\n width: 100%;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .freemium-survey-step-navigation .navigation-button {\n width: 50%;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .action-buttons {\n flex-direction: column;\n width: 100%;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .action-buttons button {\n max-width: unset;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .action-button {\n max-width: unset;\n width: 100%;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .thankyou .text {\n width: auto;\n}\n\n.freemium-survey-components.mobile-preview .thankyou .text {\n width: unset;\n}");const z=({questions:e})=>e.find((e=>e.type_info?.pivot_question))??e.find((e=>"RANGE"===e.type_info?.question_type))??e[0],j=(e,n)=>{const t=e.type_info?.scale_properties?.range;return Math.min(t?.[t?.length-1].max??10,Math.max(t?.[0].min??0,n))},L=({blocks:e,activeIndexOfBlocks:n,renderedBlocks:t,activeIndexOfRenderedBlocks:r})=>{const o=t[r];return(n===e.length-1||1===o.question.dependent_blocks?.length&&"TY"===o.question.dependent_blocks?.[0].next_block)&&r===t.length-1},V=({pivotQn:e,pivotQnAnswer:n,block:t,questions:r})=>{if(t?.category?.length){const o=e?.type_info?.scale_properties?.range?.find((e=>(e.min??0)<=n&&n<=(e.max??10))),a=t?.category.find((e=>e.id===o?.id)),s=a?.question_name;return r.find((e=>e.name===s))}return r.find((e=>e.name===t?.question_name))},H=({activeBlock:e,blocks:n,activeIndexOfBlocks:t,answers:r})=>{if((({activeBlock:e,answers:n})=>{const t=n.formValues[e.question.name];return b(t)})({activeBlock:e,answers:r}))return t+1;if(1===e.question.dependent_blocks?.length){const t=e.question.dependent_blocks?.[0];return"TY"===t?.next_block?1/0:n.findIndex((e=>e.name===t?.next_block))}return(e.question.dependent_blocks?.length??0)>1?(({activeBlock:e,answers:n,blocks:t,activeIndexOfBlocks:r})=>{const o=e.question.dependent_blocks||[],a=n.formValues[e.question.name];let s;return s="RANGE"===e.question.type_info?.question_type?o.find((e=>a>=(e?.values?.[0]??0)&&a<=(e?.values?.[1]??10)))?.next_block:1===o.length?o[0].next_block:o.find((e=>e.values?.includes(String(a))))?.next_block,s?"TY"===s?1/0:t.findIndex((e=>e.name===s)):r+1})({activeBlock:e,answers:r,blocks:n,activeIndexOfBlocks:t}):t+1},F=({question:e,answers:n})=>!b(n.formValues[e.name])&&o.includes(e?.type_info?.question_type||"")&&!("DROPDOWN"===e.type_info?.question_type&&n.formValues[e.name]===a)||n.commitDirtyValue,P=({blocks:e,activeIndexOfBlocks:n,renderedBlocks:t,activeIndexOfRenderedBlocks:r,answers:o})=>{const{question:a}=t[r];return!!a&&(!L({blocks:e,activeIndexOfBlocks:n,renderedBlocks:t,activeIndexOfRenderedBlocks:r})&&F({question:a,answers:o}))},D=(e,{answers:n,blocks:t,activeIndexOfBlocks:r,renderedBlocks:s,activeIndexOfRenderedBlocks:i,surveyStyle:c,widget:l,blockIndex:u})=>{const m=L({blocks:t,activeIndexOfBlocks:r,renderedBlocks:s,activeIndexOfRenderedBlocks:i}),d=s[i],p=d.question;switch(e){case"next":return(!o.includes(p.type_info?.question_type??"")||"DROPDOWN"===p.type_info?.question_type&&n.formValues[p.name]===a)&&!m&&u===i;case"skip":return!d.required&&!m&&u===i;case"submit":return m;case"navigation":return(l||"card"===c)&&!(0===i&&1===s.length);case"clear-selection":return null!=u&&u!==i&&"DROPDOWN"===s[u].question.type_info?.question_type&&n.formValues[s[u].question.name]}},Y=(e,n)=>("MULTI_SELECT"===e.question.type_info?.question_type&&n.formValues[e.question.name]?.includes(a)||"DROPDOWN"===e.question.type_info?.question_type&&n.formValues[e.question.name]===a)&&b(n.others[e.question.name]),Q=(e,{answers:n,blocks:t,activeIndexOfBlocks:r,renderedBlocks:o,activeIndexOfRenderedBlocks:a,isSubmitting:s})=>{const i=o[a];switch(e){case"next":return b(n?.formValues[i.question.name])||i.question.type_info?.meta?.othersRequired&&Y(i,n);case"submit":return(i.required||i.question.type_info?.pivot_question)&&b(n?.formValues[i.question.name])||i.question?.type_info?.meta?.othersRequired&&Y(i,n)||s;case"navigation-prev":return 0==a;case"navigation-next":return a>=o.length-1;default:return!1}},X=({renderedBlocks:e,activeIndexOfRenderedBlocks:n,answers:t})=>{const r=G({renderedBlocks:e,activeIndexOfRenderedBlocks:n}).reduce(((e,n)=>(void 0!==t.formValues[n.question.name]&&(e[n.question.name]=t.formValues[n.question.name]),e)),{});return{...t,formValues:r}},G=({renderedBlocks:e,activeIndexOfRenderedBlocks:n})=>e.slice(0,n+1),J=(e,n,t)=>{const{others_meta:r={},...o}=t||{};if(b(o))return{renderedBlocks:[],activeIndexOfRenderedBlocks:0,pivot:null,answers:{formValues:{},others:{},commitDirtyValue:!1},isInitialTransition:!0};const a=e.filter((e=>e.question_names?.some((e=>null!=t?.[e])))).map((e=>{const r=e.question_names?.find((e=>null!=t?.[e])),o=n.find((e=>e.name===r));return{...e,question:o}})),s=Math.max(a.length-1,0),i=e?.findIndex((e=>e.name===a[s].name)),c=z({questions:n}),l={question:c,answer:o[c.name]},u=(({blocks:e,answers:n,questions:t,activeBlock:r,activeIndexOfBlocks:o,pivot:a})=>{const s=H({activeBlock:r,blocks:e,activeIndexOfBlocks:o,answers:n}),i=V({pivotQn:a?.question,pivotQnAnswer:a?.answer,block:e?.[s],questions:t});return{...e?.[s],question:i}})({activeBlock:a[s],blocks:e,answers:{formValues:o||{},others:r||{},commitDirtyValue:!0},pivot:l,questions:n,activeIndexOfBlocks:i});return{renderedBlocks:[...a,u],activeIndexOfRenderedBlocks:s+1,pivot:{question:c,answer:o?.[c.name]},isInitialTransition:!1,answers:{others:r,formValues:o,commitDirtyValue:!1}}};var U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var W,K,$,ee=(W=function(e,n){var t="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Boolean]",s="[object Date]",i="[object Function]",c="[object GeneratorFunction]",l="[object Map]",u="[object Number]",m="[object Object]",d="[object Promise]",p="[object RegExp]",g="[object Set]",v="[object String]",f="[object Symbol]",h="[object WeakMap]",y="[object ArrayBuffer]",x="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",k="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",q="[object Uint8Array]",B="[object Uint8ClampedArray]",_="[object Uint16Array]",O="[object Uint32Array]",N=/\w*$/,S=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,I={};I[o]=I["[object Array]"]=I[y]=I[x]=I[a]=I[s]=I[b]=I[w]=I[k]=I[E]=I[C]=I[l]=I[u]=I[m]=I[p]=I[g]=I[v]=I[f]=I[q]=I[B]=I[_]=I[O]=!0,I["[object Error]"]=I[i]=I[h]=!1;var M="object"==typeof U&&U&&U.Object===Object&&U,T="object"==typeof self&&self&&self.Object===Object&&self,R=M||T||Function("return this")(),Z=n&&!n.nodeType&&n,z=Z&&e&&!e.nodeType&&e,j=z&&z.exports===Z;function L(e,n){return e.set(n[0],n[1]),e}function V(e,n){return e.add(n),e}function H(e,n,t,r){var o=-1,a=e?e.length:0;for(r&&a&&(t=e[++o]);++o<a;)t=n(t,e[o],o,e);return t}function F(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}function P(e){var n=-1,t=Array(e.size);return e.forEach((function(e,r){t[++n]=[r,e]})),t}function D(e,n){return function(t){return e(n(t))}}function Y(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=e})),t}var Q,X=Array.prototype,G=Function.prototype,J=Object.prototype,W=R["__core-js_shared__"],K=(Q=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"",$=G.toString,ee=J.hasOwnProperty,ne=J.toString,te=RegExp("^"+$.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=j?R.Buffer:void 0,oe=R.Symbol,ae=R.Uint8Array,se=D(Object.getPrototypeOf,Object),ie=Object.create,ce=J.propertyIsEnumerable,le=X.splice,ue=Object.getOwnPropertySymbols,me=re?re.isBuffer:void 0,de=D(Object.keys,Object),pe=je(R,"DataView"),ge=je(R,"Map"),ve=je(R,"Promise"),fe=je(R,"Set"),he=je(R,"WeakMap"),ye=je(Object,"create"),xe=Pe(pe),be=Pe(ge),we=Pe(ve),ke=Pe(fe),Ee=Pe(he),Ce=oe?oe.prototype:void 0,qe=Ce?Ce.valueOf:void 0;function Be(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function _e(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Oe(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Ne(e){this.__data__=new _e(e)}function Se(e,n){var t=Ye(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Qe(e)}(e)&&ee.call(e,"callee")&&(!ce.call(e,"callee")||ne.call(e)==o)}(e)?function(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}(e.length,String):[],r=t.length,a=!!r;for(var s in e)!n&&!ee.call(e,s)||a&&("length"==s||He(s,r))||t.push(s);return t}function Ae(e,n,t){var r=e[n];ee.call(e,n)&&De(r,t)&&(void 0!==t||n in e)||(e[n]=t)}function Ie(e,n){for(var t=e.length;t--;)if(De(e[t][0],n))return t;return-1}function Me(e,n,t,r,d,h,S){var A;if(r&&(A=h?r(e,d,h,S):r(e)),void 0!==A)return A;if(!Je(e))return e;var M=Ye(e);if(M){if(A=function(e){var n=e.length,t=e.constructor(n);return n&&"string"==typeof e[0]&&ee.call(e,"index")&&(t.index=e.index,t.input=e.input),t}(e),!n)return function(e,n){var t=-1,r=e.length;for(n||(n=Array(r));++t<r;)n[t]=e[t];return n}(e,A)}else{var T=Ve(e),R=T==i||T==c;if(Xe(e))return function(e,n){if(n)return e.slice();var t=new e.constructor(e.length);return e.copy(t),t}(e,n);if(T==m||T==o||R&&!h){if(F(e))return h?e:{};if(A=function(e){return"function"!=typeof e.constructor||Fe(e)?{}:Je(n=se(e))?ie(n):{};var n}(R?{}:e),!n)return function(e,n){return Ze(e,Le(e),n)}(e,function(e,n){return e&&Ze(n,Ue(n),e)}(A,e))}else{if(!I[T])return h?e:{};A=function(e,n,t,r){var o,i=e.constructor;switch(n){case y:return Re(e);case a:case s:return new i(+e);case x:return function(e,n){var t=n?Re(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}(e,r);case b:case w:case k:case E:case C:case q:case B:case _:case O:return function(e,n){var t=n?Re(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}(e,r);case l:return function(e,n,t){var r=n?t(P(e),!0):P(e);return H(r,L,new e.constructor)}(e,r,t);case u:case v:return new i(e);case p:return function(e){var n=new e.constructor(e.source,N.exec(e));return n.lastIndex=e.lastIndex,n}(e);case g:return function(e,n,t){var r=n?t(Y(e),!0):Y(e);return H(r,V,new e.constructor)}(e,r,t);case f:return o=e,qe?Object(qe.call(o)):{}}}(e,T,Me,n)}}S||(S=new Ne);var Z=S.get(e);if(Z)return Z;if(S.set(e,A),!M)var z=t?function(e){return function(e,n,t){var r=n(e);return Ye(e)?r:function(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t];return e}(r,t(e))}(e,Ue,Le)}(e):Ue(e);return function(e,n){for(var t=-1,r=e?e.length:0;++t<r&&!1!==n(e[t],t,e););}(z||e,(function(o,a){z&&(o=e[a=o]),Ae(A,a,Me(o,n,t,r,a,e,S))})),A}function Te(e){return!(!Je(e)||(n=e,K&&K in n))&&(Ge(e)||F(e)?te:S).test(Pe(e));var n}function Re(e){var n=new e.constructor(e.byteLength);return new ae(n).set(new ae(e)),n}function Ze(e,n,t,r){t||(t={});for(var o=-1,a=n.length;++o<a;){var s=n[o],i=r?r(t[s],e[s],s,t,e):void 0;Ae(t,s,void 0===i?e[s]:i)}return t}function ze(e,n){var t,r,o=e.__data__;return("string"==(r=typeof(t=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?o["string"==typeof n?"string":"hash"]:o.map}function je(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return Te(t)?t:void 0}Be.prototype.clear=function(){this.__data__=ye?ye(null):{}},Be.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Be.prototype.get=function(e){var n=this.__data__;if(ye){var r=n[e];return r===t?void 0:r}return ee.call(n,e)?n[e]:void 0},Be.prototype.has=function(e){var n=this.__data__;return ye?void 0!==n[e]:ee.call(n,e)},Be.prototype.set=function(e,n){return this.__data__[e]=ye&&void 0===n?t:n,this},_e.prototype.clear=function(){this.__data__=[]},_e.prototype.delete=function(e){var n=this.__data__,t=Ie(n,e);return!(t<0||(t==n.length-1?n.pop():le.call(n,t,1),0))},_e.prototype.get=function(e){var n=this.__data__,t=Ie(n,e);return t<0?void 0:n[t][1]},_e.prototype.has=function(e){return Ie(this.__data__,e)>-1},_e.prototype.set=function(e,n){var t=this.__data__,r=Ie(t,e);return r<0?t.push([e,n]):t[r][1]=n,this},Oe.prototype.clear=function(){this.__data__={hash:new Be,map:new(ge||_e),string:new Be}},Oe.prototype.delete=function(e){return ze(this,e).delete(e)},Oe.prototype.get=function(e){return ze(this,e).get(e)},Oe.prototype.has=function(e){return ze(this,e).has(e)},Oe.prototype.set=function(e,n){return ze(this,e).set(e,n),this},Ne.prototype.clear=function(){this.__data__=new _e},Ne.prototype.delete=function(e){return this.__data__.delete(e)},Ne.prototype.get=function(e){return this.__data__.get(e)},Ne.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.set=function(e,n){var t=this.__data__;if(t instanceof _e){var r=t.__data__;if(!ge||r.length<199)return r.push([e,n]),this;t=this.__data__=new Oe(r)}return t.set(e,n),this};var Le=ue?D(ue,Object):function(){return[]},Ve=function(e){return ne.call(e)};function He(e,n){return!!(n=null==n?r:n)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<n}function Fe(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||J)}function Pe(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function De(e,n){return e===n||e!=e&&n!=n}(pe&&Ve(new pe(new ArrayBuffer(1)))!=x||ge&&Ve(new ge)!=l||ve&&Ve(ve.resolve())!=d||fe&&Ve(new fe)!=g||he&&Ve(new he)!=h)&&(Ve=function(e){var n=ne.call(e),t=n==m?e.constructor:void 0,r=t?Pe(t):void 0;if(r)switch(r){case xe:return x;case be:return l;case we:return d;case ke:return g;case Ee:return h}return n});var Ye=Array.isArray;function Qe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Ge(e)}var Xe=me||function(){return!1};function Ge(e){var n=Je(e)?ne.call(e):"";return n==i||n==c}function Je(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}function Ue(e){return Qe(e)?Se(e):function(e){if(!Fe(e))return de(e);var n=[];for(var t in Object(e))ee.call(e,t)&&"constructor"!=t&&n.push(t);return n}(e)}e.exports=function(e){return Me(e,!0,!0)}},W($={path:K,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&$.path)}},$.exports),$.exports);const ne=(e,t)=>{const{filteredSurvey:r,filteredAnswers:o}=n.useMemo((()=>{const n=ee(e),r=(n.question_details?.questions||[]).filter((e=>!e.type_info?.meta?.is_deleted)),{others_meta:o,...a}=t||{others_meta:{}},s=r.reduce(((e,n)=>null!==a[n.name]&&void 0!==a[n.name]?{...e,[n.name]:a[n.name]}:e),{}),i=(e?.blocks||[]).map((e=>({...e,question_names:e.question_name?[e.question_name]:e.category?.map((e=>e.question_name))})));return{filteredSurvey:{...n,question_details:{questions:r},blocks:i},filteredAnswers:{...s,others_meta:o}}}),[]);return{survey:r,answers:o}},te=e=>{const r=e.survey.question_details?.questions||[],[o]=n.useState(e.survey.blocks?.filter((e=>"TY"!==e.name))),a=n.useMemo((()=>J(o,r,e.answers)),[o,r,e.answers]),[s,i]=n.useState(a.answers),[c,l]=n.useState(a.renderedBlocks),[u,m]=n.useState(a.activeIndexOfRenderedBlocks),[d,p]=n.useState(!1),[g,v]=n.useState(!1),f=n.useRef(a.pivot),h=n.useRef(!1),y=n.useRef(),x=n.useRef(a.isInitialTransition),w=c[u],k=t.useMemo((()=>c.length>0?o?.findIndex((e=>e.name===c[u].name)):0),[u]);n.useEffect((()=>{const{others_meta:n,...t}=e.answers||{};if(!o||!o.length||!b(t))return;f.current={...f.current,question:z({questions:r})},null!=e.initialPivotAnswer&&(f.current={...f.current,answer:j(f.current.question,e.initialPivotAnswer)},i({...s,formValues:{[f.current.question.name]:f.current.answer}}));const a=V({pivotQn:f.current.question,pivotQnAnswer:f.current.answer,block:o[0],questions:r});l([{...o[0],question:a}])}),[o,e.initialPivotAnswer]),n.useEffect((()=>{c.length&&(c.length>1&&(x.current=!1),m(c.length-1))}),[c]),n.useEffect((()=>{if(!b(s.formValues)&&o&&P({blocks:o,activeIndexOfBlocks:k,renderedBlocks:c,activeIndexOfRenderedBlocks:u,answers:s})){const n=()=>{p(!1);const e=H({activeBlock:w,blocks:o,activeIndexOfBlocks:k,answers:s});if(e===1/0)return void setTimeout((()=>{q("COMPLETE"),v(!0)}));setTimeout((()=>{q()}));const n=V({pivotQn:f.current?.question,pivotQnAnswer:f.current?.answer,block:o?.[e],questions:r}),t=G({renderedBlocks:c,activeIndexOfRenderedBlocks:u});l([...t,{...o?.[e],question:n}])};null!=e.initialPivotAnswer&&1==c.length?y.current?(clearTimeout(y.current),y.current=null,n()):y.current=setTimeout((()=>{n()}),1500):n()}}),[s,o]),n.useEffect((()=>{!b(s.formValues)&&h.current&&(d?C():E(),h.current=!1)}),[d]);const E=()=>{d?(h.current=!0,p(!1)):m(u+1)},C=()=>{d?m(u-1):(h.current=!0,p(!0))},q=(n="PARTIAL")=>{let t=()=>{};"COMPLETE"===n&&(t=()=>{v(!0)}),e.onSubmit({...s.formValues,others_meta:s.others},t,n)};return{blocks:o,questions:r,renderedBlocks:c,activeBlock:w,activeIndexOfBlocks:k,activeIndexOfRenderedBlocks:u,isSurveyCompleted:g,isReverseAnimation:d,isNavigating:h.current,pivot:f.current,answers:s,isInitialTransition:x.current,navigateToNextBlock:E,navigateToPreviousBlock:C,saveFormValues:(e,n,t=!1)=>{e.question.name===f.current?.question.name&&f.current&&(f.current={...f.current,answer:n});let r=s;(t||F({question:e.question,answers:s}))&&(r=X({renderedBlocks:c,activeIndexOfRenderedBlocks:u,answers:s})),i({...r,formValues:{...r.formValues,...null!=n&&{[e.question.name]:n}},commitDirtyValue:t})},saveOthersValue:(e,n)=>{if(null===n){const n={...s.others};delete n[e],i({...s,commitDirtyValue:!1,others:n})}else i({...s,commitDirtyValue:!1,others:{...s.others,[e]:n}})},skipBlock:()=>{p(!1);const e=w.question;if(delete s.formValues[e.name],delete s.others[e.name],u!==c.length-1){const e=X({renderedBlocks:c,activeIndexOfRenderedBlocks:u,answers:s}),n=G({renderedBlocks:c,activeIndexOfRenderedBlocks:u});l(n),i({...e,commitDirtyValue:!0})}else i({...s,commitDirtyValue:!0})},onSubmitHandler:q}};g(".freemium-survey-components .prompt-question {\n padding: 20px 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n grid-gap: 20px;\n gap: 20px;\n width: 100%;\n}\n.freemium-survey-components .prompt-question .question-text {\n text-align: center !important;\n}\n.freemium-survey-components .prompt-question .actions {\n display: flex;\n align-items: center;\n grid-gap: 20px;\n gap: 20px;\n}\n.freemium-survey-components .prompt-question .action {\n cursor: pointer;\n border-radius: 5px;\n border: none;\n padding: 12px;\n font-weight: 500;\n font-size: 14px;\n min-width: 120px;\n display: flex;\n align-items: center;\n justify-content: center;\n grid-gap: 8px;\n gap: 8px;\n background-color: #f2f2f2;\n transform: translateY(0px);\n transition: transform ease 0.2s;\n}\n.freemium-survey-components .prompt-question .action:hover {\n transform: translateY(-4px);\n background-color: var(--default-brand-color);\n background-color: var(--brand-color, var(--default-brand-color));\n color: #fff;\n}\n.freemium-survey-components .question-container .prompt-ques-icon {\n margin: 0 auto;\n}\n.freemium-survey-components .question-text.prompt-declined {\n text-align: center !important;\n color: #12344d !important;\n}\n\n.freemium-survey-components.mobile-preview .prompt-question .actions {\n flex-wrap: wrap;\n justify-content: center;\n}");const re=({config:e,onSelect:r,placeholders:o})=>{const[a,s]=n.useState(!1);return a?e.is_declined&&e.declined_message?t.createElement("div",{className:"question-container"},t.createElement("div",{className:"prompt-ques-icon"},t.createElement(u,{name:"declined-prompt-thumb"})),t.createElement("p",{className:"question-text prompt-declined",dangerouslySetInnerHTML:{__html:w(e.declined_message,o)}})):null:t.createElement("div",{className:"prompt-question"},t.createElement("p",{className:"question-text",dangerouslySetInnerHTML:{__html:w(e.text,o)}}),t.createElement("div",{className:"actions"},(e.reverse_order?[...e.choices||[]].reverse():e.choices)?.map((n=>{return t.createElement("button",{className:"action",onClick:()=>{"0"==n.id&&s(!0),r(Number(n.id))}},t.createElement(u,{name:(o=Number(n.id),a=e.type_variant||"THUMBS","THUMBS"===a?["thumbs-down","thumbs-up"][o]:["cross","tick"][o])}),n.value);var o,a}))))},oe=({thankYouQuestion:e,preview:r,placeholders:o,pivotAnswer:a})=>{const{redirectUrl:s,redirectDelay:i}=e.type_info?.meta??{};return n.useEffect((()=>{r||s&&setTimeout((()=>{window.location.href=s??""}),1e3*(i??0)??1e4)}),[]),t.createElement("div",{className:"question-container thankyou"},t.createElement("div",{className:"heading"},"Thank you!"),t.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:w(e.text,o,a)}}),s&&t.createElement("div",{style:{width:"100%"}},t.createElement("div",{className:"redirection-text"},"You will be redirected to the below URL automatically in"," ",i," seconds.",t.createElement("br",null)),t.createElement("a",{className:"link",href:s},s)))},ae=({activeIndexOfBlocks:e,activeIndexOfRenderedBlocks:n,renderedBlocks:r,blocks:o,answers:a,navigateToPreviousBlock:s,navigateToNextBlock:i})=>t.createElement("div",{className:"freemium-survey-step-navigation","data-navigation-element":"1"},t.createElement("button",{disabled:Q("navigation-prev",{blocks:o,answers:a,renderedBlocks:r,activeIndexOfBlocks:e,activeIndexOfRenderedBlocks:n}),className:"navigation-button",onClick:s,title:"Go to previous question"},t.createElement(u,{name:"arrow-previous"})),t.createElement("button",{className:"navigation-button",disabled:Q("navigation-next",{blocks:o,answers:a,renderedBlocks:r,activeIndexOfBlocks:e,activeIndexOfRenderedBlocks:n}),title:"Go to next question",onClick:i},t.createElement(u,{name:"arrow-next"}))),se=e=>{const{widget:r,surveyStyle:o,answers:a,renderedBlocks:s,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,saveFormValues:u,onSubmitHandler:m,skipBlock:d,navigateToNextBlock:p,navigateToPreviousBlock:g,isInitialTransition:v}=e,[f,h]=n.useState(!1),y={answers:a,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,surveyStyle:o,widget:r,blockIndex:l},x={answers:a,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,isSubmitting:f};return v&&!L({blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s})?null:t.createElement("div",{className:"question-footer"},D("navigation",y)&&t.createElement(ae,{answers:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,blocks:i,navigateToNextBlock:p,navigateToPreviousBlock:g}),t.createElement("div",{className:"action-buttons"},D("next",y)&&t.createElement(R,{onClick:()=>{u(s[l],null,!0)},disabled:Q("next",x),className:"next-button"},"Next"),D("skip",y)&&t.createElement("button",{className:"skip-button",onClick:d,"aria-label":"skip question"},"Skip"),D("submit",y)&&t.createElement("div",{className:"submit"},t.createElement(R,{disabled:Q("submit",x),onClick:()=>{h(!0),m("COMPLETE")}},f?"Submitting":"Submit survey"))))},ie=e=>{const{blocks:o,renderedBlocks:a,activeBlock:s,activeIndexOfBlocks:i,activeIndexOfRenderedBlocks:c,isSurveyCompleted:l,isReverseAnimation:u,saveFormValues:d,saveOthersValue:p,skipBlock:g,onSubmitHandler:v,navigateToNextBlock:f,navigateToPreviousBlock:h,answers:y,questions:x,pivot:k,isInitialTransition:E}=te(e),C=b(y.formValues)&&e.survey.prompt_settings?.is_enabled&&e.preview,[q,B]=n.useState(C);if(!s||!s.question)return null;const _=l?o.length:i+(l?1:0),O=l?100:(_>0?100/o.length:0)*_;return t.createElement("div",{className:`freemium-survey-components ${e.mobilePreview?"mobile-preview":""} ${e.surveyStyle}-survey-style`,id:"freemium-survey"},t.createElement(r.SwitchTransition,{mode:"out-in"},t.createElement(r.CSSTransition,{key:c+String(l)+String(q),addEndListener:(e,n)=>{e.addEventListener("transitionend",n,!1)},classNames:u?"fade-reverse":"fade"},t.createElement("div",{className:"questions"},l?t.createElement(oe,{thankYouQuestion:V({pivotQn:k?.question,pivotQnAnswer:k?.answer,block:e.survey.blocks?.find((e=>"TY"===e.name)),questions:x}),preview:!!e.preview,placeholders:e.placeholders,pivotAnswer:k?.answer}):t.createElement("div",{id:`${s.question.name}`,className:"question-container","data-test-question-name":s.question.name},q&&e.survey.prompt_settings?t.createElement(re,{config:e.survey.prompt_settings,onSelect:n=>{e.onAnsweringPrompt?.(n),1===n&&B(!1)},placeholders:e.placeholders}):t.createElement(t.Fragment,null,t.createElement("div",{className:"question-text",dangerouslySetInnerHTML:{__html:w(s?.question.text,e.placeholders,k?.answer)},"aria-label":`question-${c}`,role:"heading","aria-level":1}),t.createElement("div",{onTransitionEndCapture:e=>e.stopPropagation(),style:{width:"100%"}},t.createElement(Z,{question:s.question,isFinalQn:L({blocks:o,activeIndexOfBlocks:i,renderedBlocks:a,activeIndexOfRenderedBlocks:c}),formValues:y.formValues,othersMeta:y.others,autoFocusDelay:"standard"===e.surveyStyle?350:0,saveOthersValue:p,onChangeHandler:e=>{d(s,e)}})),t.createElement(se,{widget:!1,surveyStyle:e.surveyStyle,answers:y,renderedBlocks:a,blocks:o,activeIndexOfRenderedBlocks:c,activeIndexOfBlocks:i,saveFormValues:d,skipBlock:g,onSubmitHandler:v,navigateToPreviousBlock:h,navigateToNextBlock:f,isInitialTransition:E})))))),t.createElement("footer",{className:"survey-footer"},t.createElement("div",{className:"survey-progress"},t.createElement(t.Fragment,null,t.createElement("span",{className:"progress-completion"},O.toFixed(),"%  "),"survey completed",t.createElement(M,{totalSteps:o.length,completedSteps:_}))),t.createElement("div",{className:"survey-footer-text"},"Powered by   ",t.createElement("a",{href:"https://www.freshworks.com/?utm_source=survey&utm_medium=survey_public_page",target:"_blank",rel:"noopener noreferrer"},t.createElement(m,null)))))};g(":root {\n --default-brand-color: #264966;\n --default-question-text-color: #3a4b67;\n --default-question-background-color: #fff;\n --default-background-color: #f8f8f8;\n --default-button-text-color: #fff;\n --default-secondary-button-text-color: #000;\n --default-input-placeholder-color: #92a2b1;\n --compact-widget-max-height: 480px;\n --default-widget-max-height: 460px;\n --cozy-widget-max-height: 380px;\n}\n\n.freemium-survey-step-navigation {\n border-radius: 3px;\n border: 1px solid #efefef;\n white-space: nowrap;\n}\n.freemium-survey-step-navigation .navigation-button {\n width: 38px;\n text-align: -webkit-center;\n height: 38px;\n background-color: #fff;\n border: none;\n cursor: pointer;\n border-radius: 0 3px 3px 0;\n}\n.freemium-survey-step-navigation .navigation-button:first-of-type {\n border-right: 1px solid #efefef;\n border-radius: 3px 0 0 3px;\n}\n.freemium-survey-step-navigation .navigation-button:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.freemium-survey-step-navigation .navigation-button:focus {\n position: relative;\n z-index: 1;\n}\n\n.freemium-survey-components.standard-survey-style {\n padding-bottom: 80px;\n}\n.freemium-survey-components.standard-survey-style .question-container {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n text-align: center;\n max-width: 700px;\n margin: 0 auto;\n background: var(--default-question-background-color);\n background: var(--question-background-color, var(--default-question-background-color));\n border-radius: 4px;\n transition: transform 500ms ease 0ms, opacity 800ms ease 0ms;\n box-shadow: 0px 12px 15px rgba(18, 52, 77, 0.03);\n margin-bottom: 28px;\n padding: 28px;\n grid-gap: 28px;\n gap: 28px;\n position: relative;\n height: -moz-fit-content;\n height: fit-content;\n overflow: auto;\n opacity: 1;\n}\n.freemium-survey-components.standard-survey-style .hide-question-container {\n pointer-events: none;\n opacity: 0;\n}\n.freemium-survey-components.standard-survey-style .question-text {\n font-size: 1rem;\n font-weight: 600;\n line-height: 1.8;\n width: 100%;\n text-align: left;\n color: var(--default-question-text-color);\n color: var(--question-text-color, var(--default-question-text-color));\n}\n.freemium-survey-components.standard-survey-style .autofocus-button {\n border: none;\n width: 0;\n height: 0;\n opacity: 0;\n margin-top: -12px;\n margin-left: -12px;\n position: absolute;\n}\n.freemium-survey-components.standard-survey-style .question-footer {\n display: flex;\n justify-content: flex-start;\n grid-gap: 40px;\n gap: 40px;\n width: 100%;\n align-items: center;\n}\n.freemium-survey-components.standard-survey-style .question-footer:empty {\n display: none;\n}\n.freemium-survey-components.standard-survey-style .action-buttons {\n display: flex;\n grid-gap: 20px;\n gap: 20px;\n flex-direction: row-reverse;\n}\n.freemium-survey-components.standard-survey-style .action-buttons:empty {\n display: none;\n}\n.freemium-survey-components.standard-survey-style .sec-button {\n font-weight: 500;\n color: #3a4b67;\n cursor: pointer;\n background: transparent;\n border: none;\n min-width: 40px;\n padding: 8px 16px;\n border-radius: 4px;\n color: var(--default-secondary-button-text-color);\n color: var(--secondary-button-text-color, var(--default-secondary-button-text-color));\n letter-spacing: 0.05rem;\n line-height: 1.5;\n border: 1px solid transparent;\n transform: translateY(0px);\n transition: transform ease 0.2s;\n}\n.freemium-survey-components.standard-survey-style .sec-button:hover {\n background-color: #f3f3f3;\n transform: translateY(-4px);\n}\n.freemium-survey-components.standard-survey-style .next-button {\n color: var(--default-button-text-color);\n color: var(--button-text-color, var(--default-button-text-color));\n}\n.freemium-survey-components.standard-survey-style .submit {\n max-width: 700px;\n margin: 0 auto;\n text-align: left;\n background: transparent;\n box-shadow: none;\n padding-bottom: 40px;\n color: var(--default-button-text-color);\n color: var(--button-text-color, var(--default-button-text-color));\n}\n.freemium-survey-components.standard-survey-style .fade-enter {\n opacity: 0;\n transform: translateY(40px);\n}\n.freemium-survey-components.standard-survey-style .fade-enter-active {\n opacity: 1;\n transform: translateY(0);\n}\n.freemium-survey-components.standard-survey-style .fade-exit {\n opacity: 1;\n transform: translateY(0);\n}\n.freemium-survey-components.standard-survey-style .fade-exit-active {\n opacity: 0;\n transform: translateY(-40px);\n}\n.freemium-survey-components.standard-survey-style .fade-enter,\n.freemium-survey-components.standard-survey-style .fade-enter-active,\n.freemium-survey-components.standard-survey-style .fade-exit,\n.freemium-survey-components.standard-survey-style .fade-exit-active {\n transition: all ease 400ms;\n pointer-events: none;\n}\n.freemium-survey-components.standard-survey-style .thankyou {\n display: flex;\n align-items: center;\n justify-content: center;\n grid-gap: 20px;\n gap: 20px;\n min-height: 180px;\n}\n.freemium-survey-components.standard-survey-style .thankyou .heading {\n font-weight: 500;\n font-size: 22px;\n}\n.freemium-survey-components.standard-survey-style .thankyou .text {\n white-space: pre-wrap;\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1.6;\n color: #475867;\n width: 75%;\n}\n.freemium-survey-components.standard-survey-style .thankyou .redirection-text {\n color: #929292;\n margin-bottom: 12px;\n font-weight: 300;\n}\n.freemium-survey-components.standard-survey-style .thankyou .link {\n width: 100%;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: #666;\n font-weight: 500;\n text-decoration: underline;\n}\n.freemium-survey-components.standard-survey-style .responsive-text-field {\n width: 100%;\n}\n.freemium-survey-components.standard-survey-style .responsive-text-field .textarea-container {\n display: none;\n}\n.freemium-survey-components.standard-survey-style .message-container:empty {\n display: none;\n}\n@media (max-width: 550px) {\n .freemium-survey-components.standard-survey-style .action-buttons {\n flex-direction: column;\n width: 100%;\n }\n .freemium-survey-components.standard-survey-style .action-buttons button {\n max-width: unset;\n }\n .freemium-survey-components.standard-survey-style .action-button {\n max-width: unset;\n width: 100%;\n }\n .freemium-survey-components.standard-survey-style .thankyou .text {\n width: auto;\n }\n}\n.freemium-survey-components.standard-survey-style footer.survey-footer {\n display: flex;\n padding: 12px 0;\n border-top: 1px solid #eaeaea;\n justify-content: center;\n align-items: center;\n background-color: #fff;\n position: fixed;\n bottom: 0;\n left: 0;\n font-weight: 400;\n width: 100%;\n box-shadow: 0px 0px 15px rgba(18, 52, 77, 0.05);\n}\n.freemium-survey-components.standard-survey-style footer.survey-footer .survey-footer-text {\n display: flex;\n color: #4C4C4C;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n padding-top: 8px;\n margin: 0 40px;\n}\n.freemium-survey-components.standard-survey-style footer.survey-footer .survey-progress {\n border-right: 1px solid #CFD7DF;\n padding: 0px 40px;\n font-size: 14px;\n line-height: 20px;\n font-weight: 400;\n color: #4C4C4C;\n}\n.freemium-survey-components.standard-survey-style footer.survey-footer .survey-progress .progress-completion {\n font-weight: 700;\n}\n.freemium-survey-components.standard-survey-style footer.survey-footer .progressbar-container {\n position: static;\n margin-top: 3px;\n background-color: #D9D9D9;\n}\n\n@media (max-width: 550px) {\n .freemium-survey-component .responsive-text-field .input-container {\n display: none;\n }\n .freemium-survey-component .responsive-text-field .textarea-container {\n display: flex;\n }\n .freemium-survey-component .responsive-text-field .textarea-container textarea {\n min-height: 80px;\n height: 80px;\n }\n}\n.freemium-survey-components.mobile-preview .thankyou .text {\n width: unset;\n}");const ce=({thankYouQuestion:e,preview:r,placeholders:o,pivotAnswer:a})=>{const{redirectUrl:s,redirectDelay:i}=e.type_info?.meta??{};return n.useEffect((()=>{r||s&&setTimeout((()=>{window.location.href=s}),1e3*(i??0)??1e4)}),[]),t.createElement("div",{className:"question-container thankyou"},t.createElement("div",{className:"heading"},"Thank you!"),t.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:w(e.text,o,a)}}),s&&t.createElement("div",{style:{width:"100%"}},t.createElement("div",{className:"redirection-text"},"You will be redirected to the below URL automatically in"," ",i," seconds.",t.createElement("br",null)),t.createElement("a",{className:"link",href:s},s)))},le=e=>{const{blockIndex:n,widget:r,surveyStyle:o,answers:a,renderedBlocks:s,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,saveFormValues:u,skipBlock:m,clearRadioSelection:d}=e,p={answers:a,blocks:i,blockIndex:n,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,surveyStyle:o,widget:r},g={answers:a,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s};return(1!==s.length||1===i.length)&&n===l||D("clear-selection",p)?t.createElement("div",{className:"question-footer"},t.createElement("div",{className:"action-buttons"},D("next",p)&&t.createElement(R,{onClick:()=>{u(s[l],null,!0)},disabled:!!Q("next",g),className:"next-button"},"Next"),D("skip",p)&&t.createElement("button",{className:"sec-button",onClick:m,"aria-label":"skip question"},"Skip"),D("clear-selection",p)&&t.createElement("button",{className:"sec-button",onClick:()=>d(n)},"Clear selection"))):null},ue=e=>{const{blocks:o,renderedBlocks:a,activeBlock:s,activeIndexOfBlocks:i,activeIndexOfRenderedBlocks:c,isSurveyCompleted:l,saveFormValues:u,saveOthersValue:d,skipBlock:p,clearRadioSelection:g,onSubmitHandler:v,answers:f,questions:h,pivot:y}=(e=>{const r=e.survey.question_details?.questions||[],[o]=n.useState(e.survey?.blocks?.filter((e=>"TY"!==e.name))),a=n.useMemo((()=>J(o,r,e.answers)),[o,r,e.answers]),[s,i]=n.useState(a.renderedBlocks),[c,l]=n.useState(a.activeIndexOfRenderedBlocks),u=n.useRef(a.pivot),[m,d]=n.useState(a.answers),p=n.useRef(),[g,v]=n.useState(!1),f=n.useRef(null),h=s[c],y=t.useMemo((()=>s.length>0?o?.findIndex((e=>e.name===s[c].name)):0),[c]);n.useEffect((()=>{const{others_meta:n,...t}=e.answers;if(!o||!o.length||!b(t))return;u.current={...u.current,question:z({questions:r})},null!=e.initialPivotAnswer&&(u.current={...u.current,answer:j(u.current.question,e.initialPivotAnswer)},d({...m,formValues:{[u.current.question.name]:u.current.answer}}));const a=V({pivotQn:u.current.question,pivotQnAnswer:u.current.answer,block:o[0],questions:r});i([{...o[0],question:a}])}),[o,e.initialPivotAnswer]),n.useEffect((()=>{s.length&&l(s.length-1),f.current?.scrollIntoView({block:"start",behavior:"smooth"})}),[s]),n.useEffect((()=>{if(!b(m.formValues)&&o&&P({blocks:o,activeIndexOfBlocks:y,renderedBlocks:s,activeIndexOfRenderedBlocks:c,answers:m})){const n=()=>{const e=H({activeBlock:h,blocks:o,activeIndexOfBlocks:y,answers:m});if(e===1/0)return void setTimeout((()=>{x("COMPLETE"),v(!0)}));setTimeout((()=>{x()}));const n=V({pivotQn:u.current?.question,pivotQnAnswer:u.current?.answer,block:o?.[e],questions:r}),t=G({renderedBlocks:s,activeIndexOfRenderedBlocks:c});i([...t,{...o?.[e],question:n}])};null!=e.initialPivotAnswer&&1==s.length?p.current?(clearTimeout(p.current),p.current=null,n()):p.current=setTimeout((()=>{n()}),1500):n()}}),[m,o]);const x=(n="PARTIAL")=>{let t=()=>{};"COMPLETE"===n&&(t=()=>{v(!0)}),e.onSubmit({...m.formValues,others_meta:m.others},t,n)};return{blocks:o,questions:r,renderedBlocks:s,activeBlock:h,activeIndexOfBlocks:y,activeIndexOfRenderedBlocks:c,isSurveyCompleted:g,pivot:u.current,answers:m,saveFormValues:(e,n,t=!1,r=c)=>{e.question.name===u.current?.question.name&&(u.current={...u.current,answer:n});let o=m;(t||F({question:e.question,answers:m}))&&(o=X({renderedBlocks:s,activeIndexOfRenderedBlocks:r,answers:m})),r!==c&&l(r),d({...o,formValues:{...o.formValues,...null!=n&&{[e.question.name]:n}},commitDirtyValue:t})},saveOthersValue:(e,n,t=c)=>{if(t!==c&&l(t),null===n){const n={...m.others};delete n[e],d({...m,commitDirtyValue:!1,others:n})}else d({...m,commitDirtyValue:!1,others:{...m.others,[e]:n}})},skipBlock:()=>{const e=h.question;if(delete m.formValues[e.name],delete m.others[e.name],c!==s.length-1){const e=X({renderedBlocks:s,activeIndexOfRenderedBlocks:c,answers:m}),n=G({renderedBlocks:s,activeIndexOfRenderedBlocks:c});i(n),d({...e,commitDirtyValue:!0})}else d({...m,commitDirtyValue:!0})},clearRadioSelection:e=>{e!==c&&l(e);const n=s[e].question;delete m.formValues[n.name],delete m.others[n.name];const t=X({renderedBlocks:s,activeIndexOfRenderedBlocks:e,answers:m}),r=G({renderedBlocks:s,activeIndexOfRenderedBlocks:e});i(r),d({...t,commitDirtyValue:!1})},onSubmitHandler:x}})(e),x=n.useRef(null),[k,E]=n.useState(!1);n.useEffect((()=>{x.current?.scrollIntoView({block:"start",behavior:"smooth"})}),[a]);const C=b(f.formValues)&&e.survey.prompt_settings?.is_enabled&&e.preview,[q,B]=n.useState(C),_=l?o.length:i+(l?1:0),O=l?100:(_>0?100/o.length:0)*_;return s&&s.question?t.createElement("div",{className:`freemium-survey-components ${e.mobilePreview?"mobile-preview":""} standard-survey-style`,id:"freemium-survey"},t.createElement(r.SwitchTransition,{mode:"out-in"},t.createElement(r.CSSTransition,{key:String(l)+String(q),addEndListener:(e,n)=>{e.addEventListener("transitionend",n,!1)},classNames:"fade"},t.createElement("div",null,q&&e.survey.prompt_settings?t.createElement("div",{className:"questions"},t.createElement("div",{className:"question-container"},t.createElement(re,{config:e.survey.prompt_settings,onSelect:n=>{e.onAnsweringPrompt?.(n),1===n&&B(!1)},placeholders:e.placeholders}))):t.createElement(t.Fragment,null,l?t.createElement(ce,{thankYouQuestion:V({pivotQn:y?.question,pivotQnAnswer:y?.answer,block:e.survey?.blocks?.find((e=>"TY"===e.name)),questions:h}),preview:!!e.preview,placeholders:e.placeholders,pivotAnswer:y?.answer}):t.createElement(t.Fragment,null,t.createElement("div",{onTransitionEndCapture:e=>e.stopPropagation(),className:"questions"},a.map(((n,r)=>t.createElement("div",{key:n.question.name,ref:x,className:"question-container"},t.createElement("div",{className:"question-text "+(0===r?"nps":""),dangerouslySetInnerHTML:{__html:w(n.question.text,e.placeholders,y?.answer)},"aria-label":`question-${r}`,role:"heading","aria-level":1}),t.createElement(Z,{question:n.question,isFinalQn:L({blocks:o,activeIndexOfBlocks:i,renderedBlocks:a,activeIndexOfRenderedBlocks:c}),formValues:f.formValues,othersMeta:f.others,autoFocusDelay:"standard"===e.surveyStyle?350:20,saveOthersValue:(e,n)=>{d(e,n,r)},onChangeHandler:e=>{u(n,e,!1,r)}}),t.createElement(le,{widget:!1,surveyStyle:e.surveyStyle,answers:f,renderedBlocks:a,blocks:o,blockIndex:r,activeIndexOfRenderedBlocks:c,activeIndexOfBlocks:i,saveFormValues:u,skipBlock:p,clearRadioSelection:g,onSubmitHandler:v})))),D("submit",{answers:f,blocks:o,activeIndexOfBlocks:i,activeIndexOfRenderedBlocks:c,renderedBlocks:a,surveyStyle:e.surveyStyle,widget:!1})&&t.createElement("div",{className:"submit"},t.createElement(R,{disabled:!!Q("submit",{answers:f,blocks:o,activeIndexOfBlocks:i,activeIndexOfRenderedBlocks:c,renderedBlocks:a,isSubmitting:k}),onClick:()=>{E(!0),v("COMPLETE")}},k?"Submitting":"Submit survey")))))))),t.createElement("footer",{className:"survey-footer"},t.createElement("div",{className:"survey-progress"},t.createElement(t.Fragment,null,t.createElement("span",{className:"progress-completion"},O.toFixed(),"%  "),"survey completed",t.createElement(M,{totalSteps:o.length,completedSteps:_}))),t.createElement("div",{className:"survey-footer-text"},"Powered by   ",t.createElement("a",{href:"https://www.freshworks.com/?utm_source=survey&utm_medium=survey_public_page",target:"_blank",rel:"noopener noreferrer"},t.createElement(m,null))))):null};g(":root {\n --default-brand-color: #264966;\n --default-question-text-color: #3a4b67;\n --default-question-background-color: #fff;\n --default-background-color: #f8f8f8;\n --default-button-text-color: #fff;\n --default-secondary-button-text-color: #000;\n --default-input-placeholder-color: #92a2b1;\n}\n\n.freemium-survey-components.widget-survey-components {\n overflow: hidden;\n}\n.freemium-survey-components.widget-survey-components * {\n scrollbar-color: rgba(216, 216, 216, 0.5) transparent !important;\n}\n.freemium-survey-components.widget-survey-components * ::-webkit-scrollbar {\n height: auto;\n height: initial;\n width: 6px;\n}\n.freemium-survey-components.widget-survey-components * ::-webkit-scrollbar-track {\n background: transparent !important;\n}\n.freemium-survey-components.widget-survey-components * ::-webkit-scrollbar-thumb {\n border-radius: 5px;\n background: rgba(216, 216, 216, 0.5) !important;\n}\n.freemium-survey-components.widget-survey-components p {\n margin: 0;\n}\n.freemium-survey-components.widget-survey-components .questions {\n min-width: 100%;\n max-width: 100%;\n background: var(--default-question-background-color);\n background: var(--question-background-color, var(--default-question-background-color));\n position: relative;\n display: flex;\n justify-content: row;\n align-items: flex-end;\n height: 100%;\n transition: height 200ms ease;\n}\n.freemium-survey-components.widget-survey-components .question-container {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n text-align: center;\n max-height: 100%;\n min-width: 100%;\n max-width: 700px;\n margin: 0 auto;\n box-shadow: 0px 12px 15px rgba(18, 52, 77, 0.03);\n padding: 28px 0;\n padding-top: 0;\n grid-gap: 28px;\n gap: 28px;\n overflow: auto;\n}\n.freemium-survey-components.widget-survey-components .prompt-container {\n align-items: center;\n justify-content: center;\n padding: 0;\n}\n.freemium-survey-components.widget-survey-components .question-wrapper {\n width: 100%;\n flex-grow: 1;\n padding: 4px 28px;\n overflow: auto;\n}\n.freemium-survey-components.widget-survey-components .prompt-declined {\n text-align: center !important;\n}\n.freemium-survey-components.widget-survey-components .hide-question-container {\n opacity: 0;\n}\n.freemium-survey-components.widget-survey-components .question-text {\n font-size: 1rem;\n font-weight: 600;\n line-height: 1.8;\n width: 100%;\n text-align: left;\n padding: 0 28px;\n color: var(--default-question-text-color);\n color: var(--question-text-color, var(--default-question-text-color));\n}\n.freemium-survey-components.widget-survey-components .question-text p {\n all: inherit;\n padding: 0;\n}\n.freemium-survey-components.widget-survey-components .range-container .footer {\n display: none;\n}\n.freemium-survey-components.widget-survey-components .autofocus-button {\n border: none;\n width: 0;\n height: 0;\n opacity: 0;\n margin-top: -12px;\n margin-left: -12px;\n position: absolute;\n}\n.freemium-survey-components.widget-survey-components .fade-enter {\n opacity: 1;\n transform: translateX(80px);\n position: absolute;\n}\n.freemium-survey-components.widget-survey-components .fade-enter-active {\n position: absolute;\n opacity: 1;\n transform: translateX(0);\n}\n.freemium-survey-components.widget-survey-components .fade-enter-done {\n position: absolute;\n}\n.freemium-survey-components.widget-survey-components .fade-exit {\n opacity: 0.05;\n pointer-events: none;\n transform: translateX(0);\n}\n.freemium-survey-components.widget-survey-components .fade-exit-active {\n pointer-events: none;\n opacity: 0;\n transform: translateX(-80px);\n}\n.freemium-survey-components.widget-survey-components .fade-reverse-enter {\n opacity: 0;\n position: absolute;\n transform: translateX(-80px);\n}\n.freemium-survey-components.widget-survey-components .fade-reverse-enter-active {\n opacity: 1;\n position: absolute;\n transform: translateX(0);\n}\n.freemium-survey-components.widget-survey-components .fade-reverse-exit {\n opacity: 0.05;\n transform: translateX(0);\n}\n.freemium-survey-components.widget-survey-components .fade-reverse-exit-active {\n opacity: 0;\n transform: translateX(80px);\n}\n.freemium-survey-components.widget-survey-components .fade-enter-active,\n.freemium-survey-components.widget-survey-components .fade-reverse-enter-active,\n.freemium-survey-components.widget-survey-components .fade-reverse-exit-active,\n.freemium-survey-components.widget-survey-components .fade-exit-active {\n transition: opacity 200ms, transform 200ms;\n}\n.freemium-survey-components.widget-survey-components .question-footer {\n margin: 0px auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: sticky;\n padding: 0 28px;\n bottom: -28px;\n background: var(--default-question-background-color);\n background: var(--question-background-color, var(--default-question-background-color));\n grid-gap: 40px;\n gap: 40px;\n width: 100%;\n}\n.freemium-survey-components.widget-survey-components .question-footer:empty {\n display: none;\n}\n.freemium-survey-components.widget-survey-components .question-footer:only-child {\n margin-left: auto;\n}\n.freemium-survey-components.widget-survey-components .freemium-survey-step-navigation {\n white-space: nowrap;\n border-radius: 3px;\n border: 1px solid #efefef;\n}\n.freemium-survey-components.widget-survey-components .freemium-survey-step-navigation .navigation-button {\n width: 38px;\n text-align: -webkit-center;\n height: 40px;\n background-color: #fff;\n border: none;\n cursor: pointer;\n border-radius: 0 3px 3px 0;\n}\n.freemium-survey-components.widget-survey-components .freemium-survey-step-navigation .navigation-button:first-of-type {\n border-right: 1px solid #efefef;\n border-radius: 3px 0 0 3px;\n}\n.freemium-survey-components.widget-survey-components .freemium-survey-step-navigation .navigation-button:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.freemium-survey-components.widget-survey-components .freemium-survey-step-navigation .navigation-button:focus {\n position: relative;\n z-index: 1;\n}\n.freemium-survey-components.widget-survey-components .action-buttons {\n display: flex;\n grid-gap: 20px;\n gap: 20px;\n width: 100%;\n}\n.freemium-survey-components.widget-survey-components .action-buttons:empty {\n display: none;\n}\n.freemium-survey-components.widget-survey-components .skip-button {\n font-weight: 500;\n cursor: pointer;\n color: #3a4b67;\n background: transparent;\n border: none;\n min-width: 40px;\n padding: 8px 16px;\n border-radius: 4px;\n color: var(--default-secondary-button-text-color);\n color: var(--secondary-button-text-color, var(--default-secondary-button-text-color));\n letter-spacing: 0.05rem;\n line-height: 1.5;\n border: 1px solid transparent;\n transform: translateY(0px);\n transition: transform ease 0.2s;\n}\n.freemium-survey-components.widget-survey-components .skip-button:hover {\n background-color: #f3f3f3;\n transform: translateY(-4px);\n}\n.freemium-survey-components.widget-survey-components .next-button,\n.freemium-survey-components.widget-survey-components .submit {\n color: var(--default-button-text-color);\n color: var(--button-text-color, var(--default-button-text-color));\n}\n.freemium-survey-components.widget-survey-components .submit {\n margin-left: auto;\n}\n.freemium-survey-components.widget-survey-components .thankyou {\n display: flex;\n align-items: center;\n justify-content: center;\n grid-gap: 20px;\n gap: 20px;\n min-height: 180px;\n}\n.freemium-survey-components.widget-survey-components .thankyou .heading {\n font-weight: 500;\n font-size: 22px;\n}\n.freemium-survey-components.widget-survey-components .thankyou .text {\n white-space: pre-wrap;\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1.6;\n color: #475867;\n width: 75%;\n}\n.freemium-survey-components.widget-survey-components .thankyou .redirection-text {\n color: #929292;\n margin-bottom: 12px;\n font-weight: 300;\n}\n.freemium-survey-components.widget-survey-components .thankyou .link {\n width: 100%;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: #666;\n font-weight: 500;\n text-decoration: underline;\n}\n.freemium-survey-components.widget-survey-components .responsive-text-field .input-container {\n display: none;\n}\n.freemium-survey-components.widget-survey-components .responsive-text-field .textarea-container {\n display: flex;\n}\n.freemium-survey-components.widget-survey-components .responsive-text-field .textarea-container textarea {\n min-height: 80px;\n height: 80px;\n}\n.freemium-survey-components.widget-survey-components .message-container:empty {\n display: none;\n}\n\n.freemium-survey-components.widget-survey-components.compact-style .range-question-text {\n text-align: center;\n}\n.freemium-survey-components.widget-survey-components.compact-style .question-container {\n grid-gap: 20px;\n gap: 20px;\n max-width: 100%;\n}\n.freemium-survey-components.widget-survey-components.compact-style .question-footer {\n flex-direction: column;\n grid-gap: 20px;\n gap: 20px;\n}\n.freemium-survey-components.widget-survey-components.compact-style .question-footer .compact-footer-layout {\n display: flex;\n justify-content: space-between;\n width: 100%;\n align-items: center;\n}\n.freemium-survey-components.widget-survey-components.compact-style .question-footer .compact-footer-layout:empty {\n display: none;\n}\n.freemium-survey-components.widget-survey-components.compact-style .question-footer .action-buttons {\n grid-gap: 32px;\n gap: 32px;\n}\n.freemium-survey-components.widget-survey-components.compact-style .question-footer .submit,\n.freemium-survey-components.widget-survey-components.compact-style .question-footer .action-button {\n max-width: unset;\n width: 100%;\n}\n.freemium-survey-components.widget-survey-components.compact-style .range-container .footer {\n padding-top: 12px;\n}\n.freemium-survey-components.widget-survey-components.compact-style .thankyou .text {\n width: 86%;\n}\n\n.freemium-survey-components.widget-survey-components.default-style .question-footer {\n justify-content: space-between;\n}\n.freemium-survey-components.widget-survey-components.default-style .range-container .footer {\n padding-top: 12px;\n}\n.freemium-survey-components.widget-survey-components.default-style .range-container .choices {\n flex-wrap: unset;\n grid-gap: 12px;\n gap: 12px;\n}\n.freemium-survey-components.widget-survey-components.default-style .radio-group {\n flex-direction: column;\n flex-wrap: nowrap;\n}\n.freemium-survey-components.widget-survey-components.default-style .radio-group .radio-label {\n padding: 12px 16px;\n min-width: 160px;\n font-size: 0.9rem;\n color: #3a4b67;\n}\n.freemium-survey-components.widget-survey-components.default-style .checkbox-group .checkbox-label {\n padding: 12px 16px;\n min-width: 160px;\n font-size: 0.9rem;\n}\n.freemium-survey-components.widget-survey-components.default-style textarea {\n min-height: 84px;\n}\n.freemium-survey-components.widget-survey-components.default-style .end-max-length {\n font-size: 0.8rem;\n font-weight: 300;\n padding: 4px;\n}\n\n.freemium-survey-components.widget-survey-components.cozy-style {\n max-width: 1000px;\n min-width: 600px;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .question-text {\n font-size: 1rem;\n text-align: left;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .range-question-text {\n text-align: center;\n width: 70%;\n margin: 0 auto;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .question-footer {\n justify-content: space-between;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .range-container .widget {\n display: flex;\n justify-content: center;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .range-container .button-container {\n width: 60%;\n min-width: 600px;\n margin: 0 auto;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .range-container .footer {\n padding-top: 8px;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .action-button {\n line-height: 1.2;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .radio-group {\n flex-direction: row;\n flex-wrap: wrap;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .radio-group .radio-label {\n padding: 12px 16px;\n min-width: 160px;\n font-size: 0.9rem;\n color: #3a4b67;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .checkbox-group {\n flex-direction: row;\n flex-wrap: wrap;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .checkbox-group .checkbox-label {\n padding: 12px 16px;\n min-width: 160px;\n font-size: 0.9rem;\n}\n.freemium-survey-components.widget-survey-components.cozy-style textarea {\n min-height: 60px;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .end-max-length {\n font-size: 0.8rem;\n font-weight: 300;\n padding: 4px;\n}\n\n.freemium-survey-components.mobile-preview .thankyou .text {\n width: unset;\n}");const me=({thankYouQuestion:e,placeholders:n,pivotAnswer:r})=>t.createElement(t.Fragment,null,t.createElement("div",{className:"heading"},"Thank you!"),t.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:w(e.text,n,r)}})),de=({activeIndexOfBlocks:e,activeIndexOfRenderedBlocks:n,renderedBlocks:r,blocks:o,answers:a,navigateToPreviousBlock:s,navigateToNextBlock:i})=>t.createElement("div",{className:"freemium-survey-step-navigation","data-navigation-element":"1"},t.createElement("button",{disabled:!!Q("navigation-prev",{blocks:o,renderedBlocks:r,activeIndexOfBlocks:e,activeIndexOfRenderedBlocks:n,answers:a}),className:"navigation-button",onClick:s,title:"go to previous question"},t.createElement(u,{name:"arrow-previous"})),t.createElement("button",{className:"navigation-button",disabled:!!Q("navigation-next",{blocks:o,renderedBlocks:r,activeIndexOfBlocks:e,activeIndexOfRenderedBlocks:n,answers:a}),onClick:i,title:"go to next question"},t.createElement(u,{name:"arrow-next"}))),pe=e=>{const{widget:r,widgetStyle:o,answers:a,renderedBlocks:s,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,saveFormValues:u,onSubmitHandler:m,skipBlock:d,navigateToNextBlock:p,navigateToPreviousBlock:g}=e,[v,f]=n.useState(!1),h={answers:a,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,widget:r,blockIndex:l},y={answers:a,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,isSubmitting:v},x="compact"===o&&D("navigation",h)&&D("skip",h);return 1!=s.length||0!==l||L({blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s})?t.createElement("div",{className:"question-footer"},x?t.createElement(t.Fragment,null,D("next",h)&&t.createElement(R,{onClick:()=>{u(s[l],null,!0)},disabled:!!Q("next",y),className:"next-button"},"Next"),t.createElement("div",{className:"compact-footer-layout"},t.createElement(de,{answers:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,blocks:i,navigateToNextBlock:p,navigateToPreviousBlock:g}),t.createElement("button",{className:"skip-button",onClick:d,"aria-label":"skip question"},"Skip"))):t.createElement("div",{className:"action-buttons"},D("navigation",h)&&t.createElement("div",{style:{marginRight:"auto"}},t.createElement(de,{answers:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,blocks:i,navigateToNextBlock:p,navigateToPreviousBlock:g})),D("skip",h)&&t.createElement("button",{className:"skip-button",onClick:d,"aria-label":"skip question"},"Skip"),D("next",h)&&t.createElement(R,{onClick:()=>{u(s[l],null,!0)},disabled:!!Q("next",y),className:"next-button"},"Next"),D("submit",h)&&t.createElement("div",{className:"submit"},t.createElement(R,{disabled:!!Q("submit",y),onClick:()=>{f(!0),m("COMPLETE")}},v?"Submitting":"Submit survey")))):null},ge=e=>{const{blocks:o,renderedBlocks:a,activeBlock:s,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,isSurveyCompleted:u,isReverseAnimation:m,saveFormValues:d,saveOthersValue:p,skipBlock:g,onSubmitHandler:v,navigateToNextBlock:f,navigateToPreviousBlock:h,answers:y,questions:x,pivot:k}=te(e),[E,C]=n.useState(null),q=n.useRef(0),B=b(y.formValues)&&e.survey.prompt_settings?.is_enabled,[_,O]=n.useState(B),N=n.useRef(B?-1:l);if(n.useMemo((()=>{(()=>{if(E){E.style.minHeight="unset",E.style.maxHeight="unset",E.style.height="min-content",E.style.position="static";const n=Math.min(E?.scrollHeight+2,i[e.widgetStyle]);E.style.height=n+"px",E.style.minHeight=n+"px",q.current=n}})()}),[E]),n.useEffect((()=>{e.setCurrentSurveyState?.({question:a[l]?.question,npsScore:k?.answer})}),[l,k?.answer]),n.useEffect((()=>{l!==N.current&&(N.current=-1)}),[l]),!s||!s?.question)return null;e.widgetHeaderQuerySelector&&document.querySelector(e.widgetHeaderQuerySelector);const S=u?o.length:c+(u?1:0),A=u?100:(S>0?100/o.length:0)*S;return t.createElement("div",{className:`freemium-survey-components widget-survey-components\n ${e.widgetStyle}-style `,id:"freemium-survey"},u||_?null:t.createElement("div",{className:"widget-progressbar"},t.createElement("div",{className:"progress-completion"},A.toFixed(),"%"),t.createElement(M,{totalSteps:o.length,completedSteps:c+(u?1:0),widget:!0})),t.createElement("div",{className:"questions",style:{height:q.current,...B&&_||N.current===l?{transition:"none"}:{}}},t.createElement(r.TransitionGroup,{component:null},t.createElement(r.CSSTransition,{key:l+String(u)+String(_),unmountOnExit:!0,addEndListener:(e,n)=>{e.addEventListener("transitionend",n,!1)},classNames:m?"fade-reverse":"fade"},t.createElement("div",{ref:e=>e?C(e):null,id:`${s.question.name}`,className:`question-container ${u?"thankyou":""} ${_?"prompt-container":""}`,"data-test-question-name":s.question.name},_&&e.survey.prompt_settings?t.createElement(re,{config:e.survey.prompt_settings,onSelect:n=>{e.onAnsweringPrompt(n),1===n&&O(!1)},placeholders:e.placeholders}):t.createElement(t.Fragment,null,u?t.createElement(me,{thankYouQuestion:V({pivotQn:k?.question,pivotQnAnswer:k?.answer,block:e.survey.blocks?.find((e=>"TY"===e.name)),questions:x}),placeholders:e.placeholders,pivotAnswer:k?.answer}):t.createElement(t.Fragment,null,t.createElement("div",{className:"question-text "+("RANGE"===s?.question?.type_info?.question_type?"range-question-text":""),dangerouslySetInnerHTML:{__html:w(s?.question.text,e.placeholders,k?.answer)},"aria-label":`question-${l}`,role:"heading","aria-level":1}),t.createElement("div",{className:"question-wrapper",onTransitionEndCapture:e=>e.stopPropagation()},t.createElement(Z,{question:s.question,isFinalQn:L({blocks:o,activeIndexOfBlocks:c,renderedBlocks:a,activeIndexOfRenderedBlocks:l}),formValues:y.formValues,othersMeta:y.others,autoFocusDelay:0,saveOthersValue:p,onChangeHandler:e=>{d(s,e)}})),t.createElement(pe,{widget:!0,widgetStyle:e.widgetStyle,surveyStyle:"standard",answers:y,renderedBlocks:a,blocks:o,activeIndexOfRenderedBlocks:l,activeIndexOfBlocks:c,saveFormValues:d,skipBlock:g,onSubmitHandler:v,navigateToPreviousBlock:h,navigateToNextBlock:f}))))))))};g('#freshworks-survey-widget {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n --container-width: 350px;\n --widget-header-height: 36px;\n --widget-footer-height: 38px;\n}\n#freshworks-survey-widget * {\n box-sizing: border-box;\n}\n#freshworks-survey-widget input,\n#freshworks-survey-widget select,\n#freshworks-survey-widget textarea,\n#freshworks-survey-widget button {\n font-family: inherit;\n}\n@keyframes mountWidget {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n#freshworks-survey-widget div.widget-survey-components {\n border: none;\n}\n#freshworks-survey-widget .freemium-survey-components {\n width: 100%;\n height: 100%;\n min-height: inherit;\n}\n#freshworks-survey-widget .default-container-style {\n right: calc(50% - var(--container-width) / 2);\n}\n#freshworks-survey-widget .default-container-style .choices.TEXT {\n flex-wrap: wrap !important;\n grid-gap: 18px !important;\n gap: 18px !important;\n}\n#freshworks-survey-widget .default-container-style .choices.EMOJI, #freshworks-survey-widget .default-container-style .choices.STAR {\n grid-gap: 6px;\n gap: 6px;\n}\n#freshworks-survey-widget .default-container-style .choices.EMOJI .scale-5, #freshworks-survey-widget .default-container-style .choices.STAR .scale-5 {\n min-width: 78px;\n}\n#freshworks-survey-widget .default-container-style .choices.EMOJI .scale-7, #freshworks-survey-widget .default-container-style .choices.STAR .scale-7 {\n min-width: 70px;\n}\n#freshworks-survey-widget .compact-container-style {\n right: 40px;\n}\n#freshworks-survey-widget .compact-container-style .widget-footer {\n padding: 8px 16px;\n}\n#freshworks-survey-widget .compact-container-style .header-content.minimized {\n padding-left: 16px;\n}\n#freshworks-survey-widget .compact-container-style .prompt-question .actions {\n flex-wrap: wrap;\n justify-content: center;\n grid-gap: 12px;\n gap: 12px;\n max-width: 80%;\n display: inline-flex;\n}\n#freshworks-survey-widget .cozy-container-style {\n max-width: 1000px;\n min-width: 800px;\n left: 50%;\n transform: translate(-50%, 0);\n}\n#freshworks-survey-widget .cozy-container-style .choices.TEXT {\n grid-gap: 6px !important;\n gap: 6px !important;\n}\n#freshworks-survey-widget .cozy-container-style .choices.EMOJI, #freshworks-survey-widget .cozy-container-style .choices.STAR {\n grid-gap: 6px;\n gap: 6px;\n}\n#freshworks-survey-widget .cozy-container-style .choices.EMOJI .scale-5, #freshworks-survey-widget .cozy-container-style .choices.STAR .scale-5 {\n min-width: 88px;\n}\n#freshworks-survey-widget .cozy-container-style .choices.EMOJI .scale-7, #freshworks-survey-widget .cozy-container-style .choices.STAR .scale-7 {\n min-width: 80px;\n}\n#freshworks-survey-widget .surveyserv-widget-container {\n position: fixed;\n bottom: 0;\n border-radius: 4px 4px 0 0;\n z-index: 2147483647;\n display: flex;\n flex-direction: column;\n background-color: #fff;\n background-color: var(--question-background-color, #fff);\n width: var(--container-width);\n box-shadow: 0px 7px 13px rgba(18, 52, 77, 0.19);\n transition: opacity 0.25s ease, height var(--height-transition-duration) ease;\n animation: mountWidget 0.5s ease;\n height: auto;\n}\n#freshworks-survey-widget .widget-header {\n height: var(--widget-header-height);\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-direction: row-reverse;\n grid-gap: 8px;\n gap: 8px;\n background-color: #fff;\n background-color: var(--question-background-color, #fff);\n border-radius: inherit;\n position: relative;\n}\n#freshworks-survey-widget .widget-header .icons {\n height: 100%;\n display: flex;\n padding-top: 2px;\n padding-right: 2px;\n}\n#freshworks-survey-widget .widget-header .icon {\n cursor: pointer;\n height: 100%;\n width: 48px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n background-color: transparent;\n border: none;\n}\n#freshworks-survey-widget .widget-header .icon:hover .icon-tooltip {\n display: block;\n animation: mountWidget 0.4s ease;\n opacity: 1;\n}\n#freshworks-survey-widget .widget-header .icon:hover .icon-tooltip:hover {\n display: none;\n}\n#freshworks-survey-widget .widget-header .minimize-btn:hover {\n background-color: #f5f5f5;\n border-radius: 4px;\n}\n#freshworks-survey-widget .widget-header .icon-tooltip {\n background: rgba(18, 52, 77, 0.8901960784);\n color: #fff;\n letter-spacing: 0.5px;\n padding: 4px 8px;\n border-radius: 4px;\n font-weight: 500;\n font-size: 0.9rem;\n position: absolute;\n right: 48px;\n top: 12px;\n white-space: nowrap;\n z-index: 1;\n transition: opacity ease 0.2s;\n display: none;\n opacity: 0;\n}\n#freshworks-survey-widget .widget-header.minimized {\n min-height: var(--widget-header-height);\n width: 100%;\n flex-direction: row;\n}\n#freshworks-survey-widget .header-content.minimized {\n opacity: 0;\n text-overflow: ellipsis;\n width: calc(100% - 72px);\n padding-left: 28px;\n overflow: hidden;\n white-space: nowrap;\n animation: mountWidget 0.8s ease forwards;\n animation-delay: 0.3s;\n font-weight: 500;\n line-height: 1.8;\n text-align: left;\n color: var(--default-question-text-color);\n color: var(--question-text-color, var(--default-question-text-color));\n}\n#freshworks-survey-widget .header-content.minimized p {\n all: inherit !important;\n width: 100% !important;\n padding: 0 !important;\n margin: 0 !important;\n}\n#freshworks-survey-widget .widget-main {\n opacity: 1;\n flex-grow: 1;\n transition: opacity 0.25s ease, height var(--height-transition-duration) ease;\n padding-top: 4px;\n}\n#freshworks-survey-widget .widget-main.minimized {\n opacity: 0;\n height: 0;\n border-radius: 3px 3px 0 0;\n}\n#freshworks-survey-widget .widget-footer {\n height: var(--widget-footer-height);\n font-size: 12px;\n display: flex;\n padding: 8px 28px;\n justify-content: space-between;\n align-items: center;\n color: rgba(18, 52, 77, 0.831372549);\n background-color: rgba(187, 187, 187, 0.1);\n letter-spacing: 0.2px;\n}\n#freshworks-survey-widget .widget-footer .fw-link {\n display: flex;\n align-items: center;\n grid-gap: 6px;\n gap: 6px;\n}\n#freshworks-survey-widget .widget-footer .emoji {\n position: relative;\n top: -1px;\n left: -2px;\n}\n#freshworks-survey-widget .widget-footer a {\n color: inherit;\n text-decoration: none;\n box-sizing: border-box;\n border-bottom: 1px solid transparent;\n}\n#freshworks-survey-widget .widget-footer a:hover {\n border-bottom: 1px solid;\n}\n#freshworks-survey-widget .widget-footer .footer-text {\n display: flex;\n align-items: center;\n line-height: 20px;\n}\n#freshworks-survey-widget .widget-footer .footer-text svg {\n width: 76px;\n height: 20px;\n margin-top: 2px;\n}\n#freshworks-survey-widget .widget-progressbar {\n position: absolute;\n top: 9px;\n left: 18px;\n font-size: 12px;\n line-height: 20px;\n width: 120px;\n font-weight: 600;\n display: flex;\n align-items: center;\n}\n#freshworks-survey-widget .widget-progressbar .progressbar-container {\n position: static;\n width: 60px;\n height: 3px;\n background-color: #EBEFF3;\n border-radius: 10px;\n}\n#freshworks-survey-widget .widget-progressbar .progress-completion {\n height: 20px;\n margin-right: 6px;\n}\n#freshworks-survey-widget .title,\n#freshworks-survey-widget .description {\n text-align: center;\n}\n#freshworks-survey-widget .description {\n color: #666;\n line-height: 1.2;\n}\n#freshworks-survey-widget .close-widget {\n position: absolute;\n z-index: 10;\n background-color: #fff;\n flex-direction: column;\n display: flex;\n top: 40px;\n right: 12px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);\n border-radius: 2px;\n padding: 4px;\n}\n#freshworks-survey-widget .close-widget button {\n cursor: pointer;\n border: none;\n background-color: transparent;\n padding: 8px 12px;\n border-radius: 2px;\n font-size: 14px;\n}\n#freshworks-survey-widget .close-widget button:hover {\n background-color: #f3f3f3;\n}\n#freshworks-survey-widget .close-widget.top {\n top: -72px;\n}');const ve=({survey:e,preview:r,placeholders:o,onSubmit:a,onDismiss:s,onClose:i,surveyType:l,unsubscribeUrl:d,isSurveyCompleted:p,children:g=null,answers:v,onAnsweringPrompt:f})=>{const h=e.question_details?.questions||[],[y,x]=n.useState(!1),[E,C]=n.useState(!1),[q,B]=n.useState(0),{ui_theme:_}=e,[O,N]=n.useState(null),[S,A]=n.useState(null),I=z({questions:h}),M=()=>{x(!0),setTimeout((()=>{i?.()}),300)},T=n.useRef(null);return t.createElement("div",{className:`surveyserv-widget-container ${l}-container-style ${E?"minimized":""}`,style:{opacity:y?0:1,"--container-width":`${c[l]}`,"--height-transition-duration":"600ms",...k(_||{})}},g,t.createElement("header",{id:"surveyserv-widget-header",className:"widget-header "+(E?"minimized":"")},E&&t.createElement("span",{className:"header-content minimized",dangerouslySetInnerHTML:{__html:w((e.prompt_settings?.is_enabled?e.prompt_settings.text:S?.question?.text)??I?.text,{...o,"{{nps.rating}}":String(S?.npsScore??"")})}}),t.createElement("div",{className:"icons"},!p&&t.createElement("button",{onClick:()=>{E?(C(!E),setTimeout((()=>{B(0)}),700)):(B(O?.clientHeight??0),setTimeout((()=>{C(!E)}),0))},className:"icon minimize-btn",title:E?"Maximize widget":"Minimize widget"},E?t.createElement(u,{name:"widget-maximize"}):t.createElement(u,{name:"widget-minimize"})),t.createElement("button",{ref:T,onClick:()=>{p||s(),M()},title:"Dismiss widget",className:"icon minimize-btn"},t.createElement(u,{name:"widget-close"})))),t.createElement("main",{ref:e=>N(e),className:("widget-main "+(E?"minimized":"")).trim(),style:{height:E?0:q||"auto"}},t.createElement(ge,{answers:v,widgetStyle:l,survey:e,placeholders:o,onSubmit:a,setCurrentSurveyState:A,widgetHeaderQuerySelector:E?void 0:"#surveyserv-widget-header",onAnsweringPrompt:n=>{f?.(n),0==n&&b(e.prompt_settings?.declined_message)&&M()}})),t.createElement("footer",{className:"widget-footer"},d&&!E&&t.createElement("a",{href:d,target:"_blank",rel:"noopener noreferrer",onClick:e=>{r&&e.preventDefault(),e.stopPropagation(),M()}},"Unsubscribe"),t.createElement("div",{className:"footer-text"},"Powered by  ",t.createElement("a",{className:"fw-link",href:"https://www.freshworks.com/?utm_source=survey&utm_medium=survey_public_page",target:"_blank",rel:"noopener noreferrer"},t.createElement(m,null)))))};g('.whatsapp-container {\n --message-margin: 40px;\n --message-border: 6px;\n --message-bg: #fff;\n --message-color: #0096de;\n --message-disabled-color: #aaa;\n --answers-bg: #d3ffc8;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n font-size: 14px;\n position: relative;\n width: 340px;\n height: 574px;\n background-image: url("https://microfrontend.prestaging.sta91ng-surveyserv.com/survey/whatsapp-bg.svg");\n background-repeat: no-repeat;\n background-size: contain;\n}\n.whatsapp-container.instagram {\n background-image: url("https://microfrontend.prestaging.sta91ng-surveyserv.com/survey/instagram-bg.svg");\n}\n.whatsapp-container.instagram .scroll-wrapper {\n position: relative;\n}\n.whatsapp-container.instagram .question-text-container {\n --message-bg: #f5f7f9;\n}\n.whatsapp-container.instagram .choices {\n display: none;\n flex-direction: row;\n position: absolute;\n bottom: 0;\n}\n.whatsapp-container.instagram .question-container {\n background: #f5f7f9;\n padding: 2px;\n}\n.whatsapp-container.instagram .question-container .options-popup {\n display: flex;\n overflow: auto;\n flex-direction: row;\n padding: 5px 2px 2px;\n box-shadow: none;\n border-top: 1px solid #e8e8e8;\n border-radius: 0;\n left: 10px;\n}\n.whatsapp-container.instagram .question-container .options-popup footer,\n.whatsapp-container.instagram .question-container .options-popup header {\n display: none;\n}\n.whatsapp-container.instagram .question-container .options-popup main {\n display: flex;\n}\n.whatsapp-container.instagram .question-container .options-popup main .option-row {\n background: #e8e8e8;\n border-radius: 50px;\n margin: 5px;\n padding: 5px 10px;\n}\n.whatsapp-container.instagram .question-container .options-popup main .option-row button {\n display: flex;\n}\n.whatsapp-container.instagram .question-container .choices-button.choice {\n font-weight: 700;\n font-size: 13.4838px;\n line-height: 16px;\n letter-spacing: -0.03em;\n color: #333333;\n border: none;\n width: auto;\n padding: 8px;\n border-radius: 10px;\n margin: 5px 10px 10px;\n}\n.whatsapp-container.instagram .question-container .choices-button.choice svg {\n display: none;\n}\n.whatsapp-container.instagram .question-container.active .choices {\n display: flex;\n}\n.whatsapp-container.instagram .choice {\n border: 1px solid #0584fe;\n border-radius: 50px;\n color: #0584fe;\n}\n.whatsapp-container.instagram .choices::before {\n content: "";\n display: block;\n width: 93%;\n position: absolute;\n top: -10px;\n border-top: 1px solid #e8e8e8;\n}\n.whatsapp-container.instagram .textarea-container textarea {\n background: #e8e8e8;\n border-radius: 18px;\n}\n.whatsapp-container .scroll-wrapper {\n margin-top: 80px;\n margin-left: 18px;\n margin-right: 20px;\n flex-grow: 1;\n padding: 8px;\n display: flex;\n flex-direction: column;\n align-items: baseline;\n grid-gap: 12px;\n gap: 12px;\n overflow: scroll;\n}\n.whatsapp-container .question-text {\n font-size: 14px;\n line-height: 18px;\n padding: 12px;\n background-color: var(--message-bg);\n border-radius: var(--message-border);\n}\n.whatsapp-container .question-container {\n margin-right: var(--message-margin);\n grid-gap: 2px;\n gap: 2px;\n display: flex;\n flex-direction: column;\n pointer-events: none;\n}\n.whatsapp-container .question-container.active {\n pointer-events: initial;\n}\n.whatsapp-container .question-container.active .choice {\n color: var(--message-color);\n}\n.whatsapp-container .question-container.active .choice button {\n color: var(--message-color);\n}\n.whatsapp-container .question-container.active .choice svg {\n fill: var(--message-color);\n}\n.whatsapp-container .answers-container {\n width: 100%;\n display: flex;\n justify-content: end;\n}\n.whatsapp-container .answers {\n background: var(--answers-bg);\n margin-left: var(--message-margin);\n border-radius: 6px;\n padding: 12px;\n width: -moz-fit-content;\n width: fit-content;\n min-width: 80px;\n}\n.whatsapp-container .answers:empty {\n display: none;\n}\n.whatsapp-container .options-popup {\n position: absolute;\n z-index: 1;\n border-radius: 12px 12px 30px 30px;\n background-color: #fff;\n box-shadow: 0px -10px 10px rgba(0, 0, 0, 0.06);\n padding: 12px 8px;\n bottom: 15px;\n left: 18px;\n right: 22px;\n transform: translateY(80px);\n transition: all linear 0.3s;\n opacity: 0;\n}\n.whatsapp-container .fade-enter-active {\n transform: translateY(0px);\n opacity: 1;\n}\n.whatsapp-container .fade-enter-done {\n transform: translateY(0px);\n opacity: 1;\n}\n.whatsapp-container .fade-exit-active {\n opacity: 0;\n transform: translateY(80px);\n}\n.whatsapp-container .fade-exit-done {\n opacity: 0;\n transform: translateY(80px);\n}\n.whatsapp-container .option-row {\n padding-bottom: 16px;\n}\n.whatsapp-container .option-row svg:not(:last-child) {\n margin-right: 8px;\n}\n.whatsapp-container header {\n text-align: center;\n display: flex;\n align-items: center;\n padding-bottom: 20px;\n position: relative;\n}\n.whatsapp-container main {\n padding: 0 8px;\n}\n.whatsapp-container .close {\n background: transparent;\n border: none;\n width: 32px;\n height: 32px;\n position: absolute;\n}\n.whatsapp-container .choices-button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n grid-gap: 12px;\n gap: 12px;\n}\n.whatsapp-container .choices {\n display: flex;\n flex-direction: column;\n grid-gap: 2px;\n gap: 2px;\n list-style-type: none;\n width: 100%;\n}\n.whatsapp-container .choice {\n background-color: var(--message-bg);\n padding: 8px 12px;\n border-radius: var(--message-border);\n text-align: center;\n color: var(--message-disabled-color);\n}\n.whatsapp-container .choice button {\n color: var(--message-disabled-color);\n}\n.whatsapp-container .choice svg {\n fill: var(--message-disabled-color);\n}\n.whatsapp-container .range-choice {\n padding-top: 4px;\n padding-bottom: 4px;\n}\n.whatsapp-container h4 {\n margin: 0 auto;\n font-weight: 500;\n}\n.whatsapp-container footer {\n color: #979797;\n font-size: 12px;\n text-align: center;\n padding: 12px 0;\n}\n.whatsapp-container button {\n background: transparent;\n border: 0;\n cursor: pointer;\n}\n.whatsapp-container .textarea-container {\n display: flex;\n grid-gap: 8px;\n gap: 8px;\n padding-bottom: 4px;\n margin-left: 12px;\n margin-right: 16px;\n margin-bottom: 26px;\n margin-top: 10px;\n padding: 0 12px;\n align-items: end;\n background-color: inherit;\n}\n.whatsapp-container textarea {\n resize: none;\n min-height: 40px;\n max-height: 100px;\n border-radius: 20px;\n padding: 12px;\n resize: none;\n border: none;\n width: 100%;\n}\n.whatsapp-container textarea:focus {\n outline: none;\n}\n.whatsapp-container textarea::-moz-placeholder {\n line-height: 16px;\n padding-left: 2px;\n}\n.whatsapp-container textarea::placeholder {\n line-height: 16px;\n padding-left: 2px;\n}');const fe=({children:e,title:n,closeModal:o,isModalOpen:a})=>t.createElement(r.CSSTransition,{in:a,unmountOnExit:!0,timeout:500,classNames:"fade"},t.createElement("div",{className:"options-popup",style:{}},t.createElement("header",null,t.createElement("button",{onClick:o,className:"close"},t.createElement(u,{name:"widget-close"})),t.createElement("h4",null,n)),t.createElement("main",null,e),t.createElement("footer",null,"Tab an item to select it"))),he=({question:e,saveFormValues:r})=>{const[o,a]=n.useState(!1),{range:s}=e.type_info.scale_properties,i=s?.[0]?.min,c=s?.[s.length-1]?.max,l="descending"===e.type_info.scale_properties?.order,m=n.useRef(Array.from({length:c+(0===i?1:0)},((e,n)=>l?c-n:n+i)));return m.current.length<=3?t.createElement("ul",{className:"choices"},m.current.map((e=>t.createElement("li",{className:"choice range-choice"},t.createElement("button",{onClick:()=>{r(e),a(!1)}},Array.from({length:e},((e,n)=>t.createElement(t.Fragment,null,t.createElement(u,{name:"whatsapp-star"})," ")))))))):t.createElement(t.Fragment,null,t.createElement("button",{onClick:()=>a(!0),className:"choices-button choice"},t.createElement(u,{name:"whatsapp-choices"}),"Rate Support"),t.createElement(fe,{title:"Rate Support",isModalOpen:o,closeModal:()=>a(!1)},m.current.reverse().map((e=>t.createElement("div",{className:"option-row"},t.createElement("button",{onClick:()=>{r(e),a(!1)}},Array.from({length:e},((e,n)=>t.createElement(u,{name:"whatsapp-star"})))))))))},ye=({question:e,saveFormValues:r})=>{const[o,a]=n.useState(!1);return t.createElement(t.Fragment,null,t.createElement("button",{onClick:()=>a(!0),className:"choices-button choice"},t.createElement(u,{name:"whatsapp-choices"}),"Select answer"),t.createElement(fe,{title:"Select a choice",isModalOpen:o,closeModal:()=>a(!1)},t.createElement("ul",{className:"choices"},e.choices.map((e=>t.createElement("li",{className:"choice"},t.createElement("button",{onClick:()=>{r(e.value),a(!1)}},e.value)))))))},xe=e=>{const r=n.useRef(null);return((e,t)=>{n.useEffect((()=>{if(e){e.style.height="0px";const n=e.scrollHeight;e.style.height=n+"px"}}),[e,t])})(r.current,String(e.value)??""),n.useEffect((()=>{e.autoFocus&&r.current?.focus()}),[e.autoFocus]),t.createElement("div",{className:"textarea-container"},t.createElement("textarea",{placeholder:"Type a message",ref:r,rows:1,onChange:e.onChange,value:e.value}),t.createElement("button",{onClick:()=>{e.onSubmit(),r.current&&(r.current.value="")}},t.createElement(u,{name:"whatsapp-send"})))},be=({children:e,text:n,placeholders:r})=>t.createElement("div",{className:"question-text-container"},t.createElement("div",{className:"question-text",dangerouslySetInnerHTML:{__html:w(n,r)},role:"heading","aria-level":1})),we=({block:e,saveFormValues:n})=>{const{question_type:r}=e.question.type_info;switch(r){case"RANGE":return t.createElement(he,{question:e.question,saveFormValues:e=>n(e,!0)});case"DROPDOWN":case"MULTI_CHOICE":return t.createElement(ye,{question:e.question,saveFormValues:e=>n(e,!0)});case"PARAGRAPH":case"INPUT":return null;default:return console.error(`Question type ${r} not supported`),null}},ke=({config:e,placeholders:r,onSelect:o,promptAccepted:a})=>{const s=n.useMemo((()=>e.reverse_order?e.choices?.reverse():e.choices),[e]);return t.createElement(t.Fragment,null,t.createElement("div",{className:"question-container "+(null==a?"active":"")},t.createElement(be,{text:e.text,placeholders:r}),t.createElement("ul",{className:"choices"},s?.map((e=>t.createElement("li",{className:"choice"},t.createElement("button",{className:"action",onClick:()=>{o(Number(e.id))}},e.value)))))),void 0!==a&&t.createElement("div",{className:"answers-container"},t.createElement("p",{className:"answers"},s.find((e=>e.id==a))?.value)),!1===a&&e.is_declined&&e.declined_message&&t.createElement("div",{className:"question-container"},t.createElement(be,{text:e.declined_message,placeholders:r})))},Ee=e=>{const{activeBlock:r,activeIndexOfBlocks:o,activeIndexOfRenderedBlocks:a,answers:s,saveFormValues:i,blocks:c,questions:l,renderedBlocks:u,onSubmitHandler:m,isSurveyCompleted:d,pivot:p}=te(e),{type:g="whatsapp"}=e,{question_type:v}=r?.question.type_info??{},f=n.useRef(null),[h,y]=n.useState(void 0);return n.useEffect((()=>{f.current&&f.current.scroll({top:1e4,behavior:"smooth"})}),[r,s,d]),r&&r.question?(console.log("blocks",c),t.createElement("div",{className:`${g} whatsapp-container`},t.createElement("div",{className:"scroll-wrapper",ref:f},e.survey.prompt_settings?t.createElement(ke,{config:e.survey.prompt_settings,onSelect:e=>{y(1===e)},promptAccepted:h,placeholders:e.placeholders}):null,h?u.map(((n,l)=>t.createElement(t.Fragment,null,t.createElement("div",{className:"question-container "+(l===u.length-1?"active":"")},t.createElement(be,{text:n.question.text,placeholders:e.placeholders}),t.createElement(we,{block:n,placeholders:e.placeholders,saveFormValues:(e,t)=>{i(n,e,t),setTimeout((()=>{!0===t&&L({blocks:c,activeIndexOfBlocks:o,renderedBlocks:u,activeIndexOfRenderedBlocks:a})&&m("COMPLETE")}))}})),n.name!==r.name||s.commitDirtyValue?t.createElement("div",{className:"answers-container"},t.createElement("p",{className:"answers"},s.formValues[n.question.name])):null))):null,d&&t.createElement("div",{className:"question-container",id:"new"},t.createElement(be,{text:V({pivotQn:p?.question,pivotQnAnswer:p?.answer,block:e.survey.blocks?.find((e=>"TY"===e.name)),questions:l})?.text,placeholders:e.placeholders}))),t.createElement(xe,{onChange:e=>{"PARAGRAPH"===v&&i(r,e.target.value)},value:"PARAGRAPH"!==v||d?"":s.formValues[r.question.name],activeBlock:!0,autoFocus:"PARAGRAPH"===v,onSubmit:()=>{i(r,null,!0),r.name===c[c.length-1].name&&m("COMPLETE")}}))):null};exports.BUTTON_SIZE_VARIANTS={LARGE:"large",MINI:"mini",NORMAL:"normal"},exports.Binary=v,exports.Button=R,exports.ChannelPreview=e=>{const{survey:n,answers:r}=ne(e.survey,e.answers);return"whatsapp"===e.channel?t.createElement(Ee,{...e,survey:n,answers:r}):"instagram"===e.channel?t.createElement(Ee,{type:"instagram",...e,survey:n,answers:r}):(console.error(`Channel ${e.channel} not supported`),null)},exports.CheckboxGroup=N,exports.Input=B,exports.ProgressBar=M,exports.Radio=I,exports.RadioGroup=A,exports.Range=y,exports.Survey=e=>{const{survey:n,answers:r}=ne(e.survey,e.answers);return t.createElement(t.Fragment,null,"standard"===e.surveyStyle?t.createElement(ue,{...e,answers:r,survey:n,initialPivotAnswer:b(e.answers)?e.initialPivotAnswer:void 0}):t.createElement(ie,{...e,answers:r,survey:n,surveyStyle:"card",initialPivotAnswer:b(e.answers)?e.initialPivotAnswer:void 0}))},exports.TextArea=_,exports.WebInAppSurvey=e=>{const{survey:n,answers:r}=ne(e.survey,e.answers);return t.createElement(ve,{...e,survey:n,answers:r})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,n=require("react"),t=(e=n)&&"object"==typeof e&&"default"in e?e.default:e,r=require("react-transition-group");const o=["RANGE","NPS","BOOLEAN"],a="Others",s=300,i={default:500,compact:500,cozy:400},c={default:"600px",compact:"350px",cozy:"96%"},l={3:["smiley-1","smiley-5","smiley-10"],4:["smiley-1","smiley-4","smiley-5","smiley-10"],5:["smiley-1","smiley-3","smiley-5","smiley-7","smiley-10"],7:["smiley-1","smiley-2","smiley-4","smiley-5","smiley-7","smiley-9","smiley-10"],10:["smiley-1","smiley-2","smiley-3","smiley-4","smiley-5","smiley-6","smiley-7","smiley-8","smiley-9","smiley-10"]},u=({name:e})=>{switch(e){case"declined-prompt-thumb":return t.createElement("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M24 48C37.2548 48 48 37.2548 48 24C48 10.7452 37.2548 0 24 0C10.7452 0 0 10.7452 0 24C0 37.2548 10.7452 48 24 48Z",fill:"#EBEFF3"}),t.createElement("path",{d:"M35.2403 23.3501C35.3542 23.9655 35.0663 24.4377 34.762 24.9378C34.2628 25.758 34.8126 25.5632 34.7456 26.5507C34.6913 27.3494 34.1674 27.4872 33.908 28.0503C33.6821 28.5408 34.1112 29.0193 34.0345 29.6002C33.9224 30.4483 33.3116 30.5018 32.9521 31.0759C32.6476 31.5622 33.0859 32.1443 32.8762 32.7484C32.3734 34.1978 30.5713 34.2855 29.2611 34.2855C26.4366 34.2855 23.6024 33.6136 20.7835 33.392C18.6701 33.226 18.0059 32.7398 18.0059 30.7936C18.0059 29.0282 18.0288 26.3309 18.0288 24.4751C18.0288 23.4506 18.7692 22.7211 19.6948 21.9112C21.9883 19.9041 24.1088 18.3506 25.3426 15.5096C25.842 14.3597 25.5388 12.5506 27.2837 12.7495C28.479 12.8857 29.026 14.3689 29.1246 15.4792C29.2338 16.7094 28.8019 18.2376 28.1563 19.3306C27.5251 20.3992 25.9302 21.8245 27.9868 21.9628C29.7837 22.0837 34.7432 20.6659 35.2403 23.3499V23.3501ZM16.7286 23.3091H14.3305C13.9905 23.3091 13.7148 23.5758 13.7148 23.9048V33.0385C13.7148 33.3674 13.9905 33.6342 14.3305 33.6342H16.7286C17.0686 33.6342 17.3443 33.3674 17.3443 33.0385V23.9048C17.3443 23.5758 17.0686 23.3091 16.7286 23.3091Z",fill:"#264966"}));case"arrow-previous":return t.createElement("svg",{width:"9",height:"14",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M0.256667 7.83755C0.0925257 7.67361 0.000204227 7.4512 0 7.21921V6.77588C0.00268801 6.5444 0.0946357 6.32289 0.256667 6.15755L6.25333 0.172549C6.30756 0.117874 6.37208 0.0744776 6.44316 0.0448625C6.51425 0.0152474 6.59049 0 6.6675 0C6.74451 0 6.82075 0.0152474 6.89184 0.0448625C6.96292 0.0744776 7.02744 0.117874 7.08167 0.172549L7.91 1.00088C7.96432 1.05411 8.00748 1.11764 8.03694 1.18776C8.06641 1.25787 8.08158 1.33316 8.08158 1.40922C8.08158 1.48527 8.06641 1.56056 8.03694 1.63067C8.00748 1.70079 7.96432 1.76432 7.91 1.81755L2.71833 6.99755L7.91 12.1775C7.96467 12.2318 8.00807 12.2963 8.03769 12.3674C8.0673 12.4385 8.08255 12.5147 8.08255 12.5917C8.08255 12.6687 8.0673 12.745 8.03769 12.8161C8.00807 12.8871 7.96467 12.9517 7.91 13.0059L7.08167 13.8225C7.02744 13.8772 6.96292 13.9206 6.89184 13.9502C6.82075 13.9799 6.74451 13.9951 6.6675 13.9951C6.59049 13.9951 6.51425 13.9799 6.44316 13.9502C6.37208 13.9206 6.30756 13.8772 6.25333 13.8225L0.256667 7.83755Z",fill:"#6B6B6B"}));case"arrow-next":return t.createElement("svg",{width:"9",height:"14",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M7.82585 6.15754C7.98999 6.32147 8.08232 6.54389 8.08252 6.77587L8.08252 7.2192C8.07983 7.45069 7.98788 7.6722 7.82585 7.83754L1.82919 13.8225C1.77496 13.8772 1.71044 13.9206 1.63936 13.9502C1.56827 13.9798 1.49203 13.9951 1.41502 13.9951C1.33801 13.9951 1.26177 13.9798 1.19068 13.9502C1.1196 13.9206 1.05508 13.8772 1.00085 13.8225L0.172521 12.9942C0.118197 12.941 0.0750381 12.8774 0.0455752 12.8073C0.0161124 12.7372 0.000937578 12.6619 0.000937585 12.5859C0.000937592 12.5098 0.0161125 12.4345 0.0455753 12.3644C0.0750381 12.2943 0.118197 12.2308 0.172521 12.1775L5.36419 6.99754L0.172522 1.81754C0.117847 1.76331 0.0744506 1.69879 0.0448352 1.62771C0.0152208 1.55662 -2.75162e-05 1.48038 -2.75094e-05 1.40337C-2.75027e-05 1.32636 0.0152208 1.25012 0.0448353 1.17904C0.0744507 1.10795 0.117847 1.04343 0.172522 0.989205L1.00086 0.172537C1.05508 0.117862 1.1196 0.0744661 1.19069 0.0448507C1.26177 0.0152353 1.33801 -1.20337e-05 1.41502 -1.2027e-05C1.49203 -1.20203e-05 1.56827 0.0152353 1.63936 0.0448507C1.71044 0.0744661 1.77496 0.117862 1.82919 0.172537L7.82585 6.15754Z",fill:"#6B6B6B"}));case"widget-maximize":return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none"},t.createElement("mask",{id:"a",maskUnits:"userSpaceOnUse",x:"-.400146",y:"-.400024",width:"11",height:"11",fill:"#000"},t.createElement("path",{fill:"#fff",d:"M-.400146-.400024h11v11h-11z"}),t.createElement("path",{d:"m4.70226 6.76428-2.6856 2.6856 2.60775-.00293c.02738-.00011.05452.0052.07983.01562.02532.01043.04833.02577.06769.04513.01936.01936.0347.04237.04512.06769.01043.02531.01574.05245.01563.07983l-.00293.41358c.00011.0274-.0052.0545-.01563.0799-.01043.0253-.02576.0483-.04512.0676-.01937.0194-.04237.0347-.06769.0452-.02532.0104-.05245.0157-.07983.0156l-3.59922.0029c-.082493.0001-.161625-.0326-.220005-.0909l-.111467-.1115c-.057526-.0589-.090102-.13767-.090934-.21998L.602787 6.2584c-.000112-.02738.005198-.05452.015625-.07984.010427-.02532.025763-.04832.045125-.06768.019362-.01936.042366-.0347.067685-.04513.025319-.01042.052451-.01573.079833-.01562h.416535c.02704-.00028.05387.00485.0789.01507.02504.01022.04779.02533.06691.04445.01912.01913.03424.04187.04446.06691s.01534.05186.01507.0789l-.00294 2.60775 4.74323-4.74323.0044-.00427 2.6856-2.6856-2.60775.00294c-.02738.00011-.05452-.0052-.07983-.01563-.02532-.01042-.04833-.02576-.06769-.04512-.01936-.01936-.0347-.04237-.04512-.06769-.01043-.02532-.01574-.05245-.01563-.07983l.00293-.413603c-.00011-.027382.0052-.054514.01563-.079833.01043-.025319.02576-.048323.04512-.067685.01937-.019362.04237-.034698.06769-.045125.02532-.010427.05245-.015737.07983-.015625L9.85762.599976c.08249-.000052.16158.032657.21998.090934l.1115.111467c.0575.058878.0901.13769.0909.220003l-.0029 3.59922c.0001.02738-.0052.05452-.0156.07983-.0105.02532-.0258.04833-.0452.06769-.0193.01936-.0423.0347-.0676.04512-.0254.01043-.0525.01574-.0799.01563h-.41651c-.02704.00027-.05387-.00485-.0789-.01507-.02504-.01022-.04779-.02533-.06691-.04446-.01912-.01912-.03424-.04187-.04446-.0669-.01022-.02504-.01534-.05186-.01506-.07891l.00293-2.60775-4.74323 4.74323-.0044.00427Z"})),t.createElement("path",{d:"m4.70226 6.76428-2.6856 2.6856 2.60775-.00293c.02738-.00011.05452.0052.07983.01562.02532.01043.04833.02577.06769.04513.01936.01936.0347.04237.04512.06769.01043.02531.01574.05245.01563.07983l-.00293.41358c.00011.0274-.0052.0545-.01563.0799-.01043.0253-.02576.0483-.04512.0676-.01937.0194-.04237.0347-.06769.0452-.02532.0104-.05245.0157-.07983.0156l-3.59922.0029c-.082493.0001-.161625-.0326-.220005-.0909l-.111467-.1115c-.057526-.0589-.090102-.13767-.090934-.21998L.602787 6.2584c-.000112-.02738.005198-.05452.015625-.07984.010427-.02532.025763-.04832.045125-.06768.019362-.01936.042366-.0347.067685-.04513.025319-.01042.052451-.01573.079833-.01562h.416535c.02704-.00028.05387.00485.0789.01507.02504.01022.04779.02533.06691.04445.01912.01913.03424.04187.04446.06691s.01534.05186.01507.0789l-.00294 2.60775 4.74323-4.74323.0044-.00427 2.6856-2.6856-2.60775.00294c-.02738.00011-.05452-.0052-.07983-.01563-.02532-.01042-.04833-.02576-.06769-.04512-.01936-.01936-.0347-.04237-.04512-.06769-.01043-.02532-.01574-.05245-.01563-.07983l.00293-.413603c-.00011-.027382.0052-.054514.01563-.079833.01043-.025319.02576-.048323.04512-.067685.01937-.019362.04237-.034698.06769-.045125.02532-.010427.05245-.015737.07983-.015625L9.85762.599976c.08249-.000052.16158.032657.21998.090934l.1115.111467c.0575.058878.0901.13769.0909.220003l-.0029 3.59922c.0001.02738-.0052.05452-.0156.07983-.0105.02532-.0258.04833-.0452.06769-.0193.01936-.0423.0347-.0676.04512-.0254.01043-.0525.01574-.0799.01563h-.41651c-.02704.00027-.05387-.00485-.0789-.01507-.02504-.01022-.04779-.02533-.06691-.04446-.01912-.01912-.03424-.04187-.04446-.0669-.01022-.02504-.01534-.05186-.01506-.07891l.00293-2.60775-4.74323 4.74323-.0044.00427Z",fill:"#264966"}),t.createElement("path",{d:"m4.70226 6.76428-.19158-.19732-.00287.00287.19445.19445Zm-2.6856 2.6856-.19445-.19445-.4702.4702.66496-.00075-.00031-.275Zm2.60775-.00293.00031.275h.00082l-.00113-.275Zm.14752.06075.19446-.19445-.00001-.00001-.19445.19446Zm.06075.14752.27499.00195.00001-.00082-.275-.00113Zm-.00293.41358-.27501-.0019.00001.003.275-.0011Zm-.06075.1475.19445.1945-.19445-.1945Zm-.06769.0452-.10471-.2543.10471.2543Zm-.07983.0156.00113-.275h-.00136l.00023.275Zm-3.59922.0029.00017.275h.00005l-.00022-.275Zm-.220005-.0909-.194454.1944.00017.0002.194284-.1946Zm-.111467-.1115-.196712.1922.002257.0023.194455-.1945Zm-.090934-.21998L.324837 9.8574l.000031.003.274986-.00278ZM.602787 6.2584l.275003.00022-.000005-.00135-.274998.00113Zm.015625-.07984L.36413 6.07385H.364129l.254283.10471Zm.045125-.06768.194453.19445h.000003l-.194456-.19445Zm.067685-.04513.104714.25429.000005-.00001-.104719-.25428Zm.079833-.01562-.001128.275h.001127l.000001-.275Zm.416535 0v.27501l.00281-.00002-.00281-.27499Zm.0789.01507-.10394.2546h.00001l.10393-.2546Zm.06691.04445.19445-.19445-.19445.19445Zm.04446.06691.2546-.10394-.2546.10394Zm.01507.0789-.275-.0028v.00249l.275.00031Zm-.00294 2.60775-.275-.00031-.00075.66497.47021-.4702-.19446-.19446Zm4.74323-4.74323-.19158-.19732-.00287.00287.19445.19445Zm.0044-.00427.19158.19733.00287-.00287-.19445-.19446Zm2.6856-2.6856.19445.19446.4702-.4702-.66496.00074.00031.275Zm-2.60775.00294-.00031-.275h-.00082l.00113.275Zm-.07983-.01563-.10472.25429.10472-.25429Zm-.06769-.04512.19446-.19446H6.3024l-.19445.19446Zm-.04512-.06769.25428-.10471v-.00001l-.25428.10472Zm-.01563-.07983-.27499-.00195-.00001.00082.275.00113Zm.00293-.413603.27502.001951L6.32513.81005l-.275.001127Zm.01563-.079833L5.81148.626625v.000004l.25428.104715Zm.04512-.067685L5.91643.469203v.000003l.19445.194453Zm.06769-.045125L6.07385.364252l.10472.254282ZM6.2584.602909 6.25728.87791l.00135-.000001-.00023-.275ZM9.85762.599976l-.00017-.275H9.8574l.00022.275Zm.21998.090934.1945-.194455-.0002-.000172-.1943.194627Zm.1115.111467.1967-.192197-.0023-.002257-.1944.194454Zm.0909.220003.275.00022v-.003l-.275.00278Zm-.0029 3.59922-.275-.00022v.00135l.275-.00113Zm-.0156.07983-.2543-.10472v.00001l.2543.10471Zm-.0452.06769-.1944-.19446.1944.19446Zm-.1475.06075.0012-.275h-.0012v.275Zm-.41651 0v-.27502l-.00281.00003.00281.27499Zm-.0789-.01507.10394-.2546-.10394.2546Zm-.06691-.04446.19446-.19445-.00001-.00001-.19445.19446Zm-.04446-.0669.25461-.10394-.00001-.00001-.2546.10395Zm-.01506-.07891.27499.00282.00001-.00251-.275-.00031Zm.00293-2.60775.275.00031.00075-.66496-.47021.4702.19446.19445ZM4.70666 6.76001l.19159.19733.00286-.00287-.19445-.19446Zm-.19885-.19018-2.6856 2.6856.38891.38891 2.6856-2.6856-.38891-.38891ZM2.01697 9.72488l2.60775-.00293-.00062-.55-2.60775.00293.00062.55Zm2.60857-.00293c-.00893.00003-.01777-.0017-.02601-.00509l.20943-.50857c-.05888-.02425-.12198-.0366-.18568-.03634l.00226.55Zm-.02601-.00509c-.00825-.0034-.01575-.0084-.02205-.0147l.3889-.38892c-.04503-.04503-.09853-.0807-.15742-.10495l-.20943.50857Zm-.02206-.01471c-.00631-.00631-.0113-.0138-.0147-.02205l.50857-.20943c-.02425-.05889-.05992-.11239-.10495-.15742l-.38892.3889Zm-.0147-.02205c-.0034-.00825-.00512-.01709-.00509-.02601l.55.00226c.00026-.06369-.01209-.12679-.03634-.18568l-.50857.20943Zm-.00508-.02683-.00294.41363.54999.0039.00293-.41363-.54998-.0039Zm-.00294.41663c-.00004-.0089.00169-.0177.00509-.026l.50856.2095c.02425-.0589.0366-.122.03634-.1857l-.54999.0022Zm.00509-.026c.0034-.0082.00839-.0157.0147-.022l.38891.3889c.04503-.045.0807-.0985.10495-.1574l-.50856-.2095Zm.01471-.022c.0063-.0063.01379-.0113.02205-.0147l.20943.5085c.05889-.0242.11239-.0599.15742-.1049l-.3889-.3889Zm.02205-.0147c.00824-.0034.01708-.0051.02601-.0051l-.00226.55c.06369.0002.1268-.0121.18568-.0364l-.20943-.5085Zm.02465-.0051-3.59922.0029.00045.55 3.59922-.0029-.00045-.55Zm-3.59917.0029c-.00957 0-.01876-.0038-.025541-.01054l-.388568.38924c.109981.1098.259058.1714.414459.1713l-.00035-.55Zm-.025371-.01037-.111467-.11146-.388909.38893.111468.1114.388908-.38887Zm-.109222-.10919c-.008001-.00819-.012532-.01915-.012648-.0306l-.549971.00556c.001548.1532.062169.2998.169221.4094l.393398-.38436Zm-.012634-.0276.002934-3.59922-.55-.00045L.324854 9.8574l.549999.00044Zm.002932-3.60057a.0675974.0675974 0 0 1-.005091.02601l-.508565-.20943c-.024249.05888-.036601.12199-.03634.18567l.549996-.00225Zm-.005092.02601c-.003395.00825-.008392.01574-.014703.02205l-.388906-.38891c-.045036.04504-.080705.09854-.104954.15743l.508563.20943Zm-.0147.02205c-.006311.00631-.013807.01131-.022057.01471l-.209429-.50857c-.058887.02425-.112392.05992-.157426.10496l.388912.3889Zm-.022052.0147c-.008251.0034-.017093.00513-.026013.0051l.002254-.55c-.063684-.00026-.12679.01209-.185679.03634l.209438.50856Zm-.024887.0051h.416536v-.55H.811055l-.000001.55Zm.419346-.00001c-.00954.00009-.01901-.00171-.02785-.00532l.20788-.5092c-.05891-.02405-.12202-.03611-.18564-.03546l.00561.54998Zm-.02784-.00532c-.00884-.00361-.01687-.00894-.02361-.01569l.3889-.38891c-.04499-.04499-.09851-.08055-.15742-.1046l-.20787.5092Zm-.02362-.01569c-.00674-.00675-.01208-.01477-.01568-.02361l.5092-.20788c-.02405-.05891-.05962-.11243-.10461-.15742l-.38891.38891Zm-.01568-.02361c-.00361-.00884-.00542-.0183-.00532-.02784l.54997.00561c.00065-.06362-.0114-.12674-.03545-.18565l-.5092.20788Zm-.00533-.02535L1.15499 8.8629l.55.00062.00294-2.60775-.55-.00062Zm.46652 2.80252 4.74323-4.74323-.38891-.38891-4.74323 4.74323.38891.38891Zm4.74033-4.74038.0044-.00427-.38312-.39461-.0044.00427.38312.39461Zm.00729-.00712 2.6856-2.6856-.38891-.38891-2.6856 2.6856.38891.38891Zm2.49084-3.15506-2.60775.00294.00062.55 2.60775-.00294-.00062-.55Zm-2.60857.00294c.00892-.00004.01776.00169.02601.00509l-.20943.50857c.05889.02424.12199.0366.18568.03634l-.00226-.55Zm.02601.00509c.00825.0034.01575.00839.02206.0147l-.38891.38891c.04503.04503.09853.0807.15742.10496l.20943-.50857Zm.02205.0147c.00631.00631.01131.01381.01471.02206l-.50857.20943c.02425.05888.05992.11239.10496.15742l.3889-.38891Zm.01471.02205c.0034.00826.00513.0171.00509.02602l-.55-.00226c-.00026.06369.01209.12679.03635.18568l.50856-.20944Zm.00508.02684.00294-.413602-.54999-.003901-.00293.413603.54998.0039Zm.00294-.41668c.00004.00892-.00169.01776-.00509.026009l-.50856-.20943c-.02425.058887-.0366.121992-.03634.185675L6.32513.81005Zm-.00509.026013c-.0034.008247-.00839.015741-.0147.022049L5.91643.469206c-.04503.045032-.0807.098534-.10495.157419l.50856.209438Zm-.0147.022052c-.00631.006307-.0138.011304-.02205.014701L6.07385.364252c-.05889.024251-.11239.059921-.15742.104951l.38891.388912Zm-.02205.014701a.0675974.0675974 0 0 1-.02601.005091l.00225-.549996c-.06369-.000261-.12679.012091-.18568.036341l.20944.508564Zm-.02466.005093L9.85785.874976l-.00045-.55-3.59922.002933.00045.55ZM9.8578.874976c.00957-.000006.01876.003791.02554.01056l.38856-.389253c-.11-.109784-.259-.171404-.41445-.171307l.00035.55Zm.02537.010388.11147.111467.38886-.388908-.1114-.111467-.38893.388908Zm.10922.109197c.00801.008189.01251.019149.01261.030599l.55-.00556c-.0015-.153176-.0622-.29984-.1692-.409407l-.39341.384368Zm.01261.027589-.0029 3.59923.55.00044.0029-3.59922-.55-.00045Zm-.0029 3.60058c0-.00892.0017-.01777.0051-.02602l.5085.20945c.0243-.05889.0367-.122.0364-.18569l-.55.00226Zm.0051-.02601c.0034-.00825.0084-.01574.0147-.02206l.3889.38892c.045-.04504.0807-.09855.105-.15743l-.5086-.20943Zm.0147-.02206c.0063-.00631.0138-.0113.022-.0147l.2095.50857c.0589-.02425.1124-.05992.1574-.10496l-.3889-.38891Zm.022-.0147c.0083-.0034.0171-.00513.0261-.00509l-.0023.55c.0637.00026.1268-.01209.1857-.03634l-.2095-.50857Zm.0249-.00509h-.41651v.55h.41651v-.55Zm-.41932.00001c.00954-.00009.01901.00171.02785.00532l-.20789.5092c.05892.02405.12203.0361.18566.03545l-.00562-.54997Zm.02785.00532c.00883.00361.01686.00894.02361.01569l-.38892.3889c.045.045.09852.08056.15743.10461l.20788-.5092Zm.0236.01568c.00675.00675.01209.01478.0157.02362l-.50921.20787c.02405.05892.05961.11244.10461.15743l.3889-.38892Zm.01569.02361c.00361.00884.00542.01831.00532.02786l-.54997-.00563c-.00065.06363.0114.12675.03546.18566l.50919-.20789Zm.00534.02535.00293-2.60775-.55-.00061-.00293 2.60774.55.00062Zm-.46653-2.80251L4.51221 6.56556l.3889.38891 4.74323-4.74323-.38891-.38891ZM4.51509 6.56271l-.00439.00427.38313.3946.0044-.00427-.38314-.3946Z",fill:"#264966",mask:"url(#a)"}));case"widget-minimize":return t.createElement("svg",{width:"8",height:"8",viewBox:"0 0 7 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M6.08333 1.32682H0.583333C0.261167 1.32682 0 1.06565 0 0.743489C0 0.421323 0.261167 0.160156 0.583333 0.160156H6.08333C6.4055 0.160156 6.66667 0.421323 6.66667 0.743489C6.66667 1.06565 6.4055 1.32682 6.08333 1.32682Z",fill:"#264966"}));case"widget-close":return t.createElement("svg",{width:"11",height:"10",viewBox:"0 0 11 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("rect",{opacity:"0.01",x:"0.16748",width:"10",height:"10",fill:"white",fillOpacity:"0.01"}),t.createElement("path",{d:"M1.85129 1.68479L8.48395 8.31744",stroke:"#264966",strokeWidth:"1.5",strokeLinecap:"round"}),t.createElement("path",{d:"M8.48395 1.68479L1.85129 8.31744",stroke:"#264966",strokeWidth:"1.5",strokeLinecap:"round"}));case"thumbs-up":return t.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M1.5 7.25H4C4.276 7.25 4.5 7.474 4.5 7.75V8.19175C5.0415 7.84475 5.9365 7.23325 6.75 6.5C7.64425 5.69375 8.5 3.478 8.5 2.25C8.5 1.5595 9.0595 1 9.75 1C10.4405 1 11 1.5595 11 2.25C11 2.25 11 2.2595 11 3.5C11 4.83875 10.685 5.91025 10.4635 6.5H15.5C16.3282 6.5 17 7.17175 17 8C17 8.646 16.5892 9.192 16.0165 9.403C16.3122 9.677 16.5 10.0653 16.5 10.5C16.5 11.146 16.0892 11.692 15.5165 11.903C15.8122 12.177 16 12.5653 16 13C16 13.646 15.5892 14.192 15.0165 14.403C15.3122 14.677 15.5 15.0653 15.5 15.5C15.5 16.3282 14.8282 17 14 17H8.75C6.759 17 5.105 15.9045 4.5 15.448V16.5C4.5 16.776 4.276 17 4 17H1.5C1.224 17 1 16.776 1 16.5V7.75C1 7.474 1.224 7.25 1.5 7.25ZM4.5 14.716C5.312 15.488 7.00675 16.5 8.75 16.5H14C14.5522 16.5 15 16.0522 15 15.5C15 15.0493 14.7 14.6728 14.2905 14.5478C14.2905 14.5478 14 14.5035 14 14.25C14 13.977 14.4 14 14.4 14H14.5C15.0523 14 15.5 13.5522 15.5 13C15.5 12.5493 15.2 12.1728 14.7905 12.0478C14.7905 12.0478 14.5 11.9952 14.5 11.75C14.5 11.4532 14.9 11.5 14.9 11.5H15C15.5523 11.5 16 11.0522 16 10.5C16 10.0493 15.7 9.67275 15.2905 9.54775C15.2905 9.54775 15 9.53275 15 9.25C15 8.94425 15.4 9 15.4 9H15.5C16.0523 9 16.5 8.55225 16.5 8C16.5 7.44775 16.0523 7 15.5 7H10C9.842 7 9.63025 6.88125 9.81175 6.5205C10.1547 5.83925 10.5 4.893 10.5 3.5C10.5 2.66125 10.5 2.25 10.5 2.25C10.5 1.83575 10.1642 1.5 9.75 1.5C9.33575 1.5 9 1.83575 9 2.25V2.5C9 3.86375 8.09125 6.023 7 7C5.89675 7.98775 5.01525 8.5165 4.5 8.77775V14.716ZM1.5 16.5H4V8.5V7.75H1.5V16.5ZM11.75 14H14.2738C14.4121 14 14.5238 14.1118 14.5238 14.25C14.5238 14.3883 14.4121 14.5 14.2738 14.5H11.75C11.6118 14.5 11.5 14.3883 11.5 14.25C11.5 14.1118 11.6118 14 11.75 14ZM12 11.75C12 11.6118 12.1118 11.5 12.25 11.5H14.7738C14.9121 11.5 15.0238 11.6118 15.0238 11.75C15.0238 11.8883 14.9121 12 14.7738 12H12.25C12.1118 12 12 11.8883 12 11.75ZM12.5 9.25C12.5 9.11175 12.6118 9 12.75 9H15.2738C15.4121 9 15.5238 9.11175 15.5238 9.25C15.5238 9.38825 15.4121 9.5 15.2738 9.5H12.75C12.6118 9.5 12.5 9.38825 12.5 9.25Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"}));case"thumbs-down":return t.createElement("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{d:"M16.5 10.25H14C13.724 10.25 13.5 10.026 13.5 9.75V9.30825C12.9585 9.65525 12.0635 10.2667 11.25 11C10.3558 11.8063 9.5 14.022 9.5 15.25C9.5 15.9405 8.9405 16.5 8.25 16.5C7.5595 16.5 7 15.9405 7 15.25C7 15.25 7 15.2405 7 14C7 12.6612 7.315 11.5897 7.5365 11H2.5C1.67175 11 1 10.3282 1 9.5C1 8.854 1.41075 8.308 1.9835 8.097C1.68775 7.823 1.5 7.43475 1.5 7C1.5 6.354 1.91075 5.808 2.4835 5.597C2.18775 5.323 2 4.93475 2 4.5C2 3.854 2.41075 3.308 2.9835 3.097C2.68775 2.823 2.5 2.43475 2.5 2C2.5 1.17175 3.17175 0.5 4 0.5H9.25C11.241 0.5 12.895 1.5955 13.5 2.052V1C13.5 0.724 13.724 0.5 14 0.5H16.5C16.776 0.5 17 0.724 17 1V9.75C17 10.026 16.776 10.25 16.5 10.25ZM13.5 2.784C12.688 2.012 10.9932 1 9.25 1H4C3.44775 1 3 1.44775 3 2C3 2.45075 3.3 2.82725 3.7095 2.95225C3.7095 2.95225 4 2.9965 4 3.25C4 3.523 3.6 3.5 3.6 3.5H3.5C2.94775 3.5 2.5 3.94775 2.5 4.5C2.5 4.95075 2.8 5.32725 3.2095 5.45225C3.2095 5.45225 3.5 5.50475 3.5 5.75C3.5 6.04675 3.1 6 3.1 6H3C2.44775 6 2 6.44775 2 7C2 7.45075 2.3 7.82725 2.7095 7.95225C2.7095 7.95225 3 7.96725 3 8.25C3 8.55575 2.6 8.5 2.6 8.5H2.5C1.94775 8.5 1.5 8.94775 1.5 9.5C1.5 10.0522 1.94775 10.5 2.5 10.5H8C8.158 10.5 8.36975 10.6187 8.18825 10.9795C7.84525 11.6607 7.5 12.607 7.5 14C7.5 14.8388 7.5 15.25 7.5 15.25C7.5 15.6642 7.83575 16 8.25 16C8.66425 16 9 15.6642 9 15.25V15C9 13.6363 9.90875 11.477 11 10.5C12.1033 9.51225 12.9847 8.9835 13.5 8.72225V2.784ZM16.5 1H14V9V9.75H16.5V1ZM6.25 3.5H3.72619C3.58794 3.5 3.47619 3.38825 3.47619 3.25C3.47619 3.11175 3.58794 3 3.72619 3H6.25C6.38825 3 6.5 3.11175 6.5 3.25C6.5 3.38825 6.38825 3.5 6.25 3.5ZM6 5.75C6 5.88825 5.88825 6 5.75 6H3.22619C3.08794 6 2.97619 5.88825 2.97619 5.75C2.97619 5.61175 3.08794 5.5 3.22619 5.5H5.75C5.88825 5.5 6 5.61175 6 5.75ZM5.5 8.25C5.5 8.38825 5.38825 8.5 5.25 8.5H2.72619C2.58794 8.5 2.47619 8.38825 2.47619 8.25C2.47619 8.11175 2.58794 8 2.72619 8H5.25C5.38825 8 5.5 8.11175 5.5 8.25Z",fill:"currentColor",stroke:"currentColor","stroke-width":"0.5"}));case"tick":return t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.3552 16.1457C13.7379 15.1037 16.0337 11.9625 15.9995 8.42306C15.9987 8.02539 15.9689 7.6283 15.9104 7.23496C15.875 6.98912 15.7112 6.78082 15.4806 6.68854C15.25 6.59625 14.9877 6.63399 14.7925 6.78755C14.5973 6.9411 14.4988 7.18713 14.5342 7.43297C14.5901 7.75998 14.6166 8.09133 14.6134 8.42306C14.6134 12.032 11.6877 14.9577 8.07878 14.9577C4.46983 14.9577 1.5442 12.032 1.5442 8.42306C1.5442 4.81411 4.46983 1.88847 8.07878 1.88847C8.94795 1.89329 9.80701 2.07521 10.6035 2.42312C10.9562 2.57349 11.364 2.40948 11.5144 2.05679C11.6648 1.7041 11.5008 1.29628 11.1481 1.14591C7.89405 -0.246989 4.11151 0.664075 1.84854 3.38579C-0.414427 6.10751 -0.619803 9.9928 1.34361 12.9379C3.30703 15.8831 6.97244 17.1878 10.3552 16.1457ZM4.75255 7.63644C4.93969 7.63644 5.11863 7.71321 5.24759 7.84881L7.02975 9.63097L13.2277 3.41321C13.5011 3.13981 13.9444 3.13981 14.2178 3.41321C14.4912 3.68662 14.4912 4.1299 14.2178 4.4033L7.5149 11.1062C7.38452 11.2392 7.2061 11.3142 7.01985 11.3141C6.83634 11.3149 6.6607 11.2396 6.53471 11.1062L4.2575 8.8389C3.98567 8.56485 3.98567 8.12287 4.2575 7.84881C4.38647 7.71321 4.56541 7.63644 4.75255 7.63644Z",fill:"#12344D"}));case"cross":return t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 16.5C12.4183 16.5 16 12.9183 16 8.5C16 4.08172 12.4183 0.5 8 0.5C3.58172 0.5 0 4.08172 0 8.5C0 12.9183 3.58172 16.5 8 16.5ZM8 15.2346C4.28056 15.2346 1.26535 12.2194 1.26535 8.5C1.26535 4.78056 4.28056 1.76535 8 1.76535C11.7194 1.76535 14.7346 4.78056 14.7346 8.5C14.7346 12.2194 11.7194 15.2346 8 15.2346ZM5.00502 5.50503C5.27839 5.23166 5.72161 5.23166 5.99497 5.50503L8.25 7.76005L10.505 5.50503C10.7784 5.23166 11.2216 5.23166 11.495 5.50503C11.7683 5.77839 11.7683 6.22161 11.495 6.49497L9.23995 8.75L11.495 11.005C11.7683 11.2784 11.7683 11.7216 11.495 11.995C11.2216 12.2683 10.7784 12.2683 10.505 11.995L8.25 9.73995L5.99497 11.995C5.72161 12.2683 5.27839 12.2683 5.00503 11.995C4.73166 11.7216 4.73166 11.2784 5.00503 11.005L7.26005 8.75L5.00502 6.49497C4.73166 6.22161 4.73166 5.77839 5.00502 5.50503Z",fill:"#12344D"}));case"whatsapp-choices":return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"15",viewBox:"0 2 12 10"},t.createElement("g",{"clip-path":"url(#clip0_5046_3845)"},t.createElement("path",{d:"M2.05795 7.944H3.1888V6.81315H2.05795V7.944ZM2.05795 10.2057H3.1888V9.07484H2.05795V10.2057ZM2.05795 5.68231H3.1888V4.55146H2.05795V5.68231ZM4.31964 7.944H12.2356V6.81315H4.31964V7.944ZM4.31964 10.2057H12.2356V9.07484H4.31964V10.2057ZM4.31964 4.55146V5.68231H12.2356V4.55146H4.31964Z",fill:"inherit"})),t.createElement("defs",null,t.createElement("clipPath",{id:"clip0_5046_3845"},t.createElement("rect",{width:"13.5701",height:"13.5701",fill:"white",transform:"translate(0.361694 0.593502)"}))));case"whatsapp-send":return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 30 30",fill:"none"},t.createElement("rect",{x:"0.413086",y:"0.903687",width:"29.0062",height:"29.0062",rx:"14.5031",fill:"#00927C"}),t.createElement("path",{d:"M20.4162 15.2496L9.4162 9.90677L10.511 14.7782L16 15.3537L10.511 15.9306L9.4162 20.9068L20.4162 15.2496Z",fill:"white"}));case"whatsapp-star":return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"20",height:"20",viewBox:"0 0 14 15",fill:"none"},t.createElement("path",{d:"M0 14.98H14V0.98H0V14.98Z",fill:"url(#pattern0)"}),t.createElement("defs",null,t.createElement("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},t.createElement("use",{xlinkHref:"#image0_5309_474151",transform:"scale(0.015625)"})),t.createElement("image",{id:"image0_5309_474151",width:"64",height:"64",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAARmklEQVR4nOWbe6xnV1XHP2vvfc7v/u7vPuY99DXT0tLSwaY8ijAtj1KCD0QkIAF5SRRCFBCNJpYYozzklYgQHsYAihKRKEJEUEHeGIy0UCRMO6V0aEs7nZnO3LnP3+93zt57Lf8453fnzmWmnXvlXhLdyc795Tz2Wuu7Hnuttc+F/+dDflKEq+O3bZPqgWfie6ZTl34KWPhJ8BGG/dlNJ6oLd18o9/zLm93J7z7PXGlc8HPX6YU/cyMwv9m8BKXYVIK6eO8Wf/DDH3Z3ffzpznmwDIe/+hs5DgvglZvKDCBLB/5ucym68hXhG7/7gaJTIhMXgmX0xEHSxJWabvjI9cDXNpOdwHlP2jRiqvVUOPChV/lOD9lzLUzuAU1Ibxvu/oPOHbnpdWw2AO7ITZtGzLo7r3PzB6+R8/bBwx4P47tAMzLWxQ2O4458/fp4zR/sAe7ZLJ5CvvBpm0UL+f4/PtvJPLLzOthyKYxtB1Xwguy8HXfk4HY3/4MXA2/dLJ6Cm//BphBSkcvciZufL71xZPoR0N0NnWnQDJaQ7Vcix+/B3f+fv5z2vexPgXoz+Aq69RGbQQfu+dJTXH3/drfr4TB+HhQ9kA54hXIaJi5BprcjM996FP1nPhH46mawFegf33Aipv2Onz3wQldGZPrh0NkGfgwoAIXQhbHdyLaH42Zv6bjjt/w6mwWAO37LhhPJ5eRj3cJtN7gtu6C3F4oJGuEdIOBKKLch04/A9W7FPXDT0+OVv7YTeGCjeQt5x1UbTQN331ee4dySl+mrYGxXq31Pk4kLECCMQ/d8ZPphuGPfv0AW73sO8IGN5i3I4n0bSsB0sEvmb3up6xYwcXHj71JyehniwZdQ7kS2PAI38yXciVtelC96xgcB20j+go3v2Mj14dhN17p432WyZRfSvaDVfuB0AASkgDABvYuRyS24xdsfk6uf3gcc2Ej2AtXcRq6P9A8/x5WKTO5tgp/r0Pg+nK7c0IDT2Y1M7cUtHpiWxUOvAH5nI/kLsnhowxZX06vD8NBzXW8cxve0W19o7662bNcGw2lk6lLczO342e++IF30C28HjmwUj8Em927U2rhj3/hFx8KkTF6GjO1eFfzOMKQNhmPnI5O78SfuOk+rmScBH98oHoOrZjZkYXGMuTzzTN8tkN6eNviNtr6zDde4SLkdmbwYN/tDwtKhl+vup34SyBvBZ3ATF23EuvjFO26QfHS/TG1Fuhc1mj2r+Y+GgAtQTCLje3GTB2B46AZh/2XA7RvBZ/AblHK7vPBsV+Qm+I3tbPwboRHeOHs3zjeuMrYbmd6LO3ZXV+LMC9l21duA6sfNp+Sl0ytPnTk4JjroClKanxjD4rhoNW552LXc76Daw6wnxB5U46jr4se6CD0kTYgU42jcJv1D1zMuE7JjP0w8EopJoMOp5OdsQ4EhVCdh8dtw9OtY1R0wdcV3DFvCcoWyBLpkwhKU85gsILpkfnIBwhJiC+LCAiZ9EzfAjfUlV32EOrveIpCWAaju+Rz9pdlndWa+/ZIgaZfzflLIPTSNgY6hcQyNHTSWEINZbpkEnCACiIB34DziPTiBbg/Z9miYegyUW8CNcv8z6mHFbwNq0CFUR2HhFjh5O1bXTfssZ0wV1JpSWrV539q5vF7IIBXia6QYgB+YuKFmZlKx8+BwxxPfCdwmR2/99HXh3k9/tly8qxfySULpcJ1xJBQgrvFJ8eA8Jh6ca68XTfYWCsSX4DtQjEE5jpST0N0JY3uh3Nqa/8gFVmv/TO6QgQhaQzwJ9VGoZ6FegjzA8hByhFRBrkEj5NQ8n1NTYucImhqAUoXFCh0OSFVFipF6y9W3pstf+fygx775W3nheC9JQIqATF8Akw/DjU0joYv4DkiBiUecA0YA+Cao+RYIVzbPhrGmuvPjDSguNO8sB76VAVBWXFsNhG/zgh0QpqBTNYJaRDSCpUZIi1iOy/caodvZPmNxgA5OkucOk2bvp176Ienuz+7TiSt+JZj2L8qWIC/A5A6Yvhq27oHxrbjQQZwHcYi0lZu0WhR3ajrfWImEFb+b907t+62pPmgAXD1c616+ARMDs2YtayeKaG7cw2z5GqpNwzVHcr1ELo8R0xhxYYbaEtmVMP/9ncF6uz9jC4f2M6yaRVwHC5NY6BGKLviAOI9IK/Sy5kYgrABjJUCjUhdrTXpV7r9876HG6D3fPC+txcjoXQU/AmY0GwBUEznWpJSIVlLnTMyRLAXa3QGTF9/prHvhe23LZV+w0CPXC8SFO6kHs8RYE3Mim6KASSvcaXMkS0tY9HQmyO3UFX9XXl957Wz3Vj9jq+YIp1N8GULGSDkR6z7VYIFq4TDV3J3Eqk8a24nu3v9fOr3voyFqmCt2XPNiLbrvl5Pfeq7Nfg8TxfRx2NQFmI4Tyg6EEieusYSRpm2ltltmZKWJy4q5WqOrtWw8tFWsjiO26p5iquScyHFAHM4TF2eoTx4iHv9v8uJRNExjWy//vGy5+jdJ8/cFS/PUiaPFtse8wHznXTJz86vt5Pex3If0GGx6L9gkaAuCc00wNNfy6xvNjFzAdIUbrBT+bH9XC/dggo9+24/+NsM0k1NFqvvUwwXiwjHqk3cST9xK7p/E3BazycvfL71Lf99ytQQQLDfJVT13OMGW1xQ7rr2N2VveYguHpywuotUJbOsj0d5WirKDL0ocARGH4EBa/7Z2hzjN/0cxAc7NEh4MjDMLjRhobv29IlZLxP4c9fxh4sztxNkfkKsh6refsInLbsT4ICsq4JBXlcMZ3tfZ+oSDef7bH7L+XXs13ozFk+j2R8HEwzDr4osSH5rCRkbCysgqVgVBW2UJIivkeyjTP5PmVwBhjclrjuQ4JA6XqJdmiLN3U88cJM3fj2ZBi923WmfPK8n69dUUAll/hGw1c9cXOtsf+/Pqu++3/p3X28z30DiHbbsSnbqYYmwCyg4uFDjnmy1yNG0UjFZYwUpLsAezgtUC00b3lfdGWldMm20u1UPicJF64Sj1zB3E2TtJS3OolVh53j9Zef7rgLvPgDDhbKZYnfjBbeWOn/olCxNvscVbX61zh9G4QK5PolsuR8e3U5QlhIBrt8rGAlyr1NXb4rkGxJUaXiX8KAfAMMvkFEl1TRzMUc/dTXXiIHH2XtKwQqWLlRe8WYpdb8Wsf0YhgXCKyI+O+oE75oHXlFOPPWRLB/6EwQNjlg9gaRbbcjk2eQElXYQArARhFBNWuMNpebo8RAg4U6A7tdebKZozOVak/gPUM3cwnLmDOH+cXGVUJuat2PV7mH7A6gdvJoWHegCgOn7knZ3dj7td+wffY4N7LrGZu6Ceg3gUN3UJbnwHnrIRVDycFhdWBcURCMu75Sr/tzMIzijDa5/XjMYF0uIPqWcOUZ34IXFhnhQNddMH8Dteg/HlhxQMCKf75IOAcOS7n+mcf83dFrrvtaU7npoXjpPzPDkeQfMl+MmLgWlw7a6wnC/4Fb9HAbC1gNNoW3tvteCr4kJegngcWzqMzt5Hmpsh9ZfIKqjf9hlky2uBcz7wPGsMOCMIh7/53c75j3+BGe+gf9vLbLCAMcBsDrUT+Im9UO4C12M5dSWdCowGyy2xERArhTsNhNGQNscfQD4G9VGsnsP6i2h/Fq0HmBRYsfUv0N6NwOw5CwQE3LkDAFAdufko8Ku98Qtuk/qO10s1mGIAFPdifgD6ABK2gp8ENwky1ljBOR9vrKgQLYEugs5ieRZ0CXIFcYjUC0geIqE3a+x6Y4A/W5Mg7Qjl+IM1Kc8+Iu5tY35yTJj9I6n7UBdY3QUnmM6DKxDXAzfV/u3QnAgVbZxYVQovV3k1WIXZEHQB8hxY2wkzw3INaQlJfVzo4P2eN0zAu9YlBBAmJsfW+y7+xGAoMkRihlhC7EPhG0EtYVohchLDgxRNE0U6zaRoQWgLH0s0naCqAYHUlrgjaoZpapogsY+kPqKKZ3hs3QIAwdtw3S9LXtrvGDYtsFRhaYik0Ajk2i5SG/1Fhm0nTVYE/tN3ACMjox0Cxayt/qwtqTW3HaABkit8HCJ0bwA+ul4ZgsT1AWgzD+xw1PtEUrPna278M/umPjAPOjr+dhhtJbmcGNmy6KdgUGyUA4waG6an3GO51dX0B12u8DL7tGg7dwNH1wWA5vV9J+gs7XekSwVt6gFrtGPJIaS2MzTKDJs4Y8tNlFZsofHr0aLLGh8Jv6oDpE1TFI3L15z1L3EsPWrdADhbWhcAovF6IYq03RjTjOQakmEUTcksrmmiahtohRXV4eoD0pWab7fDkenDqQ5w1rbflxEMRxIhXgF8cT1yBCGu5z3E0j4hIyMtaW46ssnAMuZbk3e+feGU7xvSimuNz2PLDZ1ln7cRCKfigKlCtsYKWgDEEiLpWuDP1wlAeuinVo18Yv78QNonI01poxVLIC60YAjmXHN20L5nJk1jy0DV2tMFwYk1MbN9VoRTvj+yBGstQGmtoMHFacL54VMS288D7l8zAEpvzQBgJ5/sSHsEba1Wm7iXAFFQQcQvlwBKK7hCViMlJScjWyOw8xCC4AvBO6HBrRG+MYrRQUhrCYkWAGlBqPaIpKvWBYDY2i1AsCfLiAsDVLDU1ukm4AWT1NY8gpqRsxCzkiLEWolJyRlEBBeEUApl6SgKIYSmEz5KUgVrtW+YWmsFDtQjKk3QlfoK4HNrBgBdx+Go2JWizQ7f2HEGkUbPKsuVsJmQFZJaI3g06gh1hJQNNZr3nOADxEIoOkKnhKIwgpfmxA1DzJotcgSAejDB1GGWwVXXAu9ZBwBrO3DN83JZofkqyYrIKABq0wxWUBFMZNlVU4I6GTHRzCxkFTIC3jUBMTVFZIpGUSuxMDqFURZQBggjEOAUANYAjAhiGWH41KiTa/7OOKS0tjzAEW8QjTtFtTV5w6Q1zSRksSZQqxCzUWchZkhZSCZkPOY9FMURfPFRcdIV0Zea6kTKiqZMSplcKSkoqTA63iic4V1DsiGrqCk4Q5wi1Oeh1aPWDAB5bRYg6H6XE6LaZqyGtlldxkhAyo3Z1yokg2yOjEODbw5Ty/Jj4su3At8BkLHi7xG90VL6WasTOUWGOZGqRKozyRsdL5Te8GL4tptilhsr8jTZp9aXA/+6NgDWEgPq7QV6/ApSQrWJ0qraHMACSSGaEVXIJiQEdQ71YST4twjFO4G/PdXhARtUX3bTvf9wRfkqK9Nrta6vsGFNjA5NqbEIpySXKR0EGQXIUXCUFv78ZODdawLA9Nw/vdE4vFzSYF+uM0YTxHJeIbgJyRzZGsEbUw9IWSxK0flLE/8G4IwfJdncIBm8z22d+Gfv/BvV+xfq0HdyFdFYNz3ABEmUQhTfgiDekKAoGXN5f8xjFwL3njMAdb2GGFD3r5M4nLaozf6uRlRIOvJvQcVh3kERoCxwZfl5fPFG4Gvn1HqZXbwHeLmbGv+YOP+H6v21NnSkWKNJiCkTEDyGF/DecKpYSuQinZ+xfWsCIOdzbtVg9eBqjRHJitGYeTYa/5Y28wseygIpi/skFG/C+b9iPd/+Lwz+TSa7X/HOv8qCf70N/a48rMiWiDnjNeMwvFrbhsxYTliw89dCJqR07gBorHdabPd6EUxc89f7RvDCI0WRJYS/xvm3A99b6etrHvNLA+BdMtn7d/Hh9Xj/IvWV5CqSa0FyxuV2exRDNCGa1wZArNcQA3KeMDUEh0mr7eCRIuCKgBThGzj/x6wxEj/kWFw6ALzE9bofE+/fhKserVKRKyHnzPLplimeNLWWpUOM554KC7JICE2JGzxSNp/VuBDuwrt3I/IR4MRaGFjLkMHg03TGvuGde7nz/reTq87TOmIxYblJwy2lc26JA4SUzh2AoijfLd4/zhXu4VJ4JPjviPN/g/AJ1tCL/98MqYbHgHdop/yUd+55EvxLcxWvoE5qSf7BlE+uab1b3nPZmhjoThfPcoVcJ8HNmMgXgW+uaYEf80iZ63Idn6DDFLXmE8Ca/gFCbnnf2gD4vzbWdyjwf2j8D+Zaa5WmjvaeAAAAAElFTkSuQmCC"})));case"fchat":return t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},t.createElement("path",{fill:"#20A849",d:"M10.392.26H17.5a2.367 2.367 0 0 1 2.368 2.37v7.1c0 2.51-.996 4.919-2.77 6.694a9.456 9.456 0 0 1-6.69 2.774 9.454 9.454 0 0 1-8.755-5.842 9.473 9.473 0 0 1 2.05-10.323A9.456 9.456 0 0 1 10.391.26Z"}),t.createElement("path",{fill:"#fff",d:"M13.303 5.88H8.57a2.367 2.367 0 0 0-2.368 2.37v4.03a.525.525 0 0 0 .527.525h6.574a2.367 2.367 0 0 0 2.367-2.37V8.25a2.371 2.371 0 0 0-2.367-2.37Zm-1.709 5.07H8.175a.46.46 0 0 1-.459-.647.463.463 0 0 1 .46-.276h3.418a.462.462 0 0 1 0 .922Zm2.103-2.257H8.175a.462.462 0 1 1 0-.923h5.522a.462.462 0 0 1 0 .923Z"}));default:return null}},m=()=>t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"92",height:"20",viewBox:"0 0 200 40"},t.createElement("g",{fill:"none",fillRule:"nonzero"},t.createElement("path",{fill:"#4D4D4D",d:"M48.6 1c-5 0-6.8 3.5-6.8 6.8v2h-1c-.8 0-1.4.6-1.4 1.4 0 .8.6 1.4 1.4 1.4h1v13.8c0 .8.6 1.5 1.5 1.5s1.5-.6 1.5-1.5V12.5H48c.8 0 1.4-.6 1.4-1.4 0-.8-.6-1.4-1.4-1.4h-3.2v-2c0-1.8.7-4 3.9-4 .8 0 1.4-.6 1.4-1.3-.1-.8-.7-1.4-1.5-1.4zM60 9.3c-2-.1-3.8.8-5 2.4v-.8c0-.8-.6-1.5-1.5-1.5s-1.5.7-1.5 1.5v15.4c0 .8.6 1.5 1.5 1.5s1.5-.6 1.5-1.5v-8.5c0-3.6 1.9-5.7 5-5.7.8 0 1.4-.6 1.4-1.4 0-.8-.7-1.4-1.4-1.4zM77.7 16.9c0-1.7-.5-3.4-1.4-4.8-1.4-1.9-3.7-3-6.1-2.8-5.1 0-8 3.4-8 9.3 0 6.1 2.9 9.4 8.4 9.4 2.2.1 4.4-.7 6.1-2.2.3-.2.5-.6.5-1 0-.7-.6-1.3-1.3-1.3-.3 0-.6.1-.8.3-1.2 1-2.8 1.6-4.4 1.6-3.3 0-5.4-2.2-5.5-5.7H76c1.7-.2 1.7-1.8 1.7-2.8zm-7.4-5c3 0 4.5 1.7 4.6 5h-9.7c.3-3.2 2.1-5 5.1-5zM87.5 17.1c-2.2-.8-4-1.4-4-3 0-1.8 2-2 3.1-2 1.5-.1 3 .5 4 1.5.5.5 1.4.5 1.9 0 .3-.3.4-.6.4-1 0-.3-.1-.6-.3-.9-1.5-1.7-3.7-2.7-5.9-2.5-3.7 0-6 1.9-6 4.8 0 3.6 3.2 4.7 6 5.7 2.1.7 4 1.3 4 2.9 0 2.1-2.4 2.5-3.8 2.5-1.7.1-3.4-.6-4.6-1.8-.3-.3-.6-.4-1-.5-.7 0-1.3.6-1.3 1.3 0 .3.1.6.3.9 1.7 2 4.1 3 6.6 3 4.2 0 6.7-2 6.7-5.2-.2-3.7-3.3-4.7-6.1-5.7zM104.8 9.2c-1.8-.1-3.6.7-4.8 2.1V1.5c0-.8-.6-1.5-1.5-1.5-.8 0-1.4.6-1.4 1.5v24.8c0 .8.6 1.5 1.4 1.5.8 0 1.5-.6 1.5-1.5V17c0-3.4 1.6-5.1 4.8-5.1 3.2 0 4.3 1.4 4.3 4.8v9.6c0 .8.6 1.5 1.5 1.5.8 0 1.4-.6 1.4-1.5V16.2c0-4.6-2.4-7-7.2-7zM136.2 9.5c-.6 0-1.2.4-1.4 1l-4.2 11.8-3.4-11.8c-.3-.8-1.1-1.1-1.9-.9-.4.1-.7.5-.9.9L121 22.3l-4-11.9c-.2-.6-.7-1-1.4-.9-.8 0-1.4.6-1.4 1.4 0 .2 0 .4.1.6l5.6 15.3c.2.6.7 1 1.4 1 .6 0 1.2-.4 1.4-1l3.3-11.2 3.3 11.2c.2.6.8 1 1.4 1 .6 0 1.2-.4 1.4-1l5.6-15.3c.1-.2.1-.4.1-.6-.2-.8-.8-1.4-1.6-1.4zM146.8 9.2c-5.3 0-8.2 3.3-8.2 9.3 0 6 2.9 9.4 8.2 9.4 5.3 0 8.2-3.3 8.2-9.4 0-6.1-2.9-9.3-8.2-9.3zm0 16c-3.5 0-5.3-2.2-5.3-6.7s1.8-6.7 5.3-6.7 5.2 2.3 5.2 6.7-1.7 6.8-5.2 6.7zM166.2 9.3c-2-.1-3.8.8-5 2.4v-.8c0-.8-.6-1.5-1.4-1.5-.8 0-1.5.6-1.5 1.4v15.4c0 .8.6 1.5 1.4 1.5.8 0 1.5-.6 1.5-1.4v-8.5c0-3.6 1.9-5.7 5-5.7.8 0 1.4-.6 1.4-1.4 0-.8-.6-1.4-1.4-1.4zM177.3 16.9l6-4.8c.4-.3.6-.7.6-1.2 0-.8-.6-1.4-1.4-1.4-.4 0-.7.1-1 .4l-8.6 7V1.5c0-.8-.6-1.5-1.4-1.5-.8 0-1.5.6-1.5 1.4v24.8c0 .8.6 1.5 1.4 1.5.8 0 1.5-.6 1.5-1.4v-6l2-1.6 6.6 8.4c.3.4.8.7 1.2.7.8 0 1.4-.6 1.4-1.4 0-.3-.1-.7-.3-.9l-6.5-8.6zM193.7 17.1c-2.2-.8-4-1.4-4-3 0-1.8 2-2 3.1-2 1.5-.1 3 .5 4 1.5.3.3.6.4 1 .4.7-.1 1.2-.7 1.2-1.4 0-.3-.1-.6-.3-.9-1.5-1.7-3.7-2.7-5.9-2.5-3.7 0-6 1.9-6 4.8 0 3.6 3.2 4.7 6 5.7 2.1.7 4 1.3 4 2.9 0 2.1-2.4 2.5-3.8 2.5-1.7.1-3.4-.6-4.6-1.8-.3-.3-.6-.4-1-.5-.7 0-1.3.6-1.3 1.3 0 .3.1.6.3.9 1.7 1.9 4.1 2.9 6.7 2.8 4.2 0 6.7-2 6.7-5.2-.2-3.5-3.3-4.5-6.1-5.5z"}),t.createElement("path",{fill:"#9B65C3",d:"M.2 25.5C.7 29.1 2.4 32.4 5 35l5.8-5.8c0-6.1 3.2-11.7 8.5-14.8L.2 25.5z"}),t.createElement("path",{fill:"#9B65C3",d:"M10.8 29.2c-3 0-5.9-.8-8.5-2.3-.7-.4-1.4-.9-2.1-1.4.5 3.6 2.2 6.9 4.8 9.5l5.8-5.8z"}),t.createElement("path",{fill:"#BE63C5",d:"M10.8 29.2L5 35c2.6 2.6 5.9 4.3 9.5 4.8l11-19.1c-3 5.2-8.6 8.5-14.7 8.5z"}),t.createElement("path",{fill:"#BF63C6",d:"M13.1 37.7c-1.5-2.6-2.3-5.5-2.3-8.5L5 35c2.6 2.6 5.9 4.3 9.5 4.8-.5-.7-1-1.4-1.4-2.1z"}),t.createElement("path",{fill:"#3278B1",d:"M32.5 6.8l-13.2 7.6c-5.3 3-11.7 3-17 0C.8 17 0 20 0 23c0 .8.1 1.7.2 2.5.7.5 1.4 1 2.1 1.4 2.6 1.5 5.5 2.3 8.5 2.3l22-22c-.1-.1-.2-.2-.3-.4z"}),t.createElement("path",{fill:"#3278B2",d:"M2.3 26.9c2.6 1.5 5.5 2.3 8.5 2.3 0-6.1 3.2-11.7 8.5-14.8L.2 25.4c.7.6 1.4 1.1 2.1 1.5z"}),t.createElement("path",{fill:"#45A4EC",d:"M2.3 14.4C.8 17 0 20 0 23c0 .8.1 1.7.2 2.5l19.1-11.1c-5.2 3.1-11.7 3.1-17 0z"}),t.createElement("path",{fill:"#19BB7D",d:"M32.8 7.2c-.3-.3-.5-.5-.8-.7-.6-.4-1.4-.6-2.1-.6H17c-6.1 0-11.7 3.3-14.7 8.5 5.3 3 11.7 3 17 0-5.3 3-8.5 8.7-8.5 14.8 6.1 0 11.7-3.2 14.8-8.5l7.6-13.2c-.2-.1-.3-.2-.4-.3z"}),t.createElement("path",{fill:"#08C7FB",d:"M19.3 14.4l13.2-7.6c-.2-.1-.3-.3-.5-.4l-29.7 8c5.3 3.1 11.8 3.1 17 0z"}),t.createElement("path",{fill:"#59F2F6",d:"M29.8 5.9H17c-6.1 0-11.7 3.3-14.7 8.5l29.7-8c-.7-.3-1.4-.5-2.2-.5z"}),t.createElement("path",{fill:"#DA3757",d:"M25.6 20.7l7.6-13.2c-.1-.1-.2-.2-.3-.4l-22 22c0 3 .8 5.9 2.3 8.5.4.7.9 1.4 1.4 2.1.8.1 1.6.2 2.4.2 3 0 5.9-.8 8.5-2.3-3-5.2-3-11.7.1-16.9z"}),t.createElement("path",{fill:"#D33C4E",d:"M10.8 29.2c0 3 .8 5.9 2.3 8.5.4.7.9 1.4 1.4 2.1l11-19.1c-3 5.2-8.6 8.5-14.7 8.5z"}),t.createElement("path",{fill:"#EE5A24",d:"M25.6 20.7l-11 19.1c.8.1 1.6.2 2.5.2 3 0 5.9-.8 8.5-2.3-3.1-5.3-3.1-11.8 0-17z"}),t.createElement("path",{fill:"#8BDF55",d:"M33.5 8c-.3-.5-.6-.9-1-1.2l-13.2 7.6c-5.3 3-8.5 8.7-8.5 14.8 6.1 0 11.7-3.2 14.8-8.5-3 5.3-3 11.7 0 17 5.2-3 8.5-8.6 8.5-14.6V10.2c0-.8-.2-1.5-.6-2.2z"}),t.createElement("path",{fill:"#25C16F",d:"M32.5 6.8l-13.2 7.6c-5.3 3-8.5 8.7-8.5 14.8l22-22c-.1-.1-.2-.3-.3-.4z"}),t.createElement("path",{fill:"#8BDF55",d:"M10.8 29.2c6.1 0 11.7-3.2 14.8-8.5l7.6-13.2c-.1-.1-.2-.2-.3-.4L10.8 29.2z"}),t.createElement("path",{fill:"#FB0",d:"M33.2 7.5l-7.6 13.2c-3 5.3-3 11.7 0 17l8-29.7c-.2-.2-.3-.3-.4-.5z"}),t.createElement("path",{fill:"#FFA800",d:"M25.6 37.7c5.3-3 8.5-8.6 8.5-14.7V10.2c0-.8-.2-1.5-.6-2.2l-7.9 29.7z"}))),d=({glyph:e})=>{switch(e){case"smiley-1":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.221",d:"M49.047 16.925c8.87 8.87 8.87 23.252 0 32.122-8.87 8.87-23.252 8.87-32.122 0-8.87-8.87-8.87-23.252 0-32.122 8.87-8.87 23.252-8.87 32.122 0Z"}),t.createElement("path",{fill:"#272525",d:"M20.41 27.56a2.06 2.06 0 0 1 2.061-2.062 2.06 2.06 0 0 1 2.062 2.061 2.06 2.06 0 0 1-2.062 2.061 2.06 2.06 0 0 1-2.06-2.06ZM41.438 27.56a2.06 2.06 0 0 1 2.06-2.062 2.06 2.06 0 0 1 2.062 2.061 2.06 2.06 0 0 1-2.061 2.061 2.06 2.06 0 0 1-2.062-2.06Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.375",d:"M26.653 37.125a12.263 12.263 0 0 1 6.546-2.16c2.734-.095 5.294.71 7.386 2.148"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.331",d:"m23.517 38.814-3.106-5.83-3.106 5.83c-.504.93-.754 1.43-.754 2.288a3.86 3.86 0 0 0 3.86 3.86 3.86 3.86 0 0 0 3.86-3.86c0-.858-.198-1.22-.754-2.288Z"}));case"smiley-2":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.22",d:"M49.623 49.411c9.07-9.071 9.07-23.779 0-32.85-9.072-9.071-23.78-9.071-32.85 0-9.072 9.071-9.072 23.779 0 32.85 9.07 9.071 23.778 9.071 32.85 0Z"}),t.createElement("path",{fill:"#272525",d:"M20.676 27.58a2.053 2.053 0 1 1 4.107.001 2.053 2.053 0 0 1-4.107-.001ZM41.613 27.58a2.053 2.053 0 1 1 4.107.001 2.053 2.053 0 0 1-4.107-.001Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.22",d:"M21.945 42.49c1.883-4.346 6.214-7.388 11.253-7.388 5.038 0 9.365 3.038 11.248 7.385"}));case"smiley-3":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.221",d:"M49.47 16.925c8.87 8.87 8.87 23.252 0 32.122-8.871 8.87-23.253 8.87-32.123 0-8.87-8.87-8.87-23.252 0-32.122 8.87-8.87 23.252-8.87 32.122 0Z"}),t.createElement("path",{fill:"#272525",d:"M20.695 27.556a2.062 2.062 0 1 1 4.124.002 2.062 2.062 0 0 1-4.124-.002ZM41.723 27.556a2.062 2.062 0 1 1 4.123.002 2.062 2.062 0 0 1-4.123-.002Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.375",d:"M26.489 40.929a12.264 12.264 0 0 1 6.545-2.16c2.735-.094 5.294.71 7.387 2.148"}));case"smiley-4":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.221",d:"M49.813 16.925c8.87 8.87 8.87 23.252 0 32.122-8.87 8.87-23.252 8.87-32.123 0-8.87-8.87-8.87-23.252 0-32.122 8.87-8.87 23.253-8.87 32.123 0Z"}),t.createElement("path",{fill:"#272525",d:"M21.04 27.556a2.062 2.062 0 1 1 4.123.002 2.062 2.062 0 0 1-4.124-.002ZM42.066 27.556a2.062 2.062 0 1 1 4.124.002 2.062 2.062 0 0 1-4.124-.002Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.375",d:"M28.6 40.88c1.38-1.29 3.05-2.071 4.864-2.134 2.04-.071 3.958.772 5.533 2.254"}));case"smiley-5":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.221",d:"M49.16 16.925c8.871 8.87 8.871 23.252 0 32.122-8.87 8.87-23.251 8.87-32.122 0-8.87-8.87-8.87-23.252 0-32.122 8.87-8.87 23.252-8.87 32.123 0Z"}),t.createElement("path",{stroke:"#000","stroke-linecap":"round","stroke-width":"1.38",d:"M22.113 40h20.759"}),t.createElement("path",{fill:"#272525",d:"M19.977 28.061a2.062 2.062 0 1 1 4.123.002 2.062 2.062 0 0 1-4.123-.002ZM41.004 28.061a2.062 2.062 0 1 1 4.124.002 2.062 2.062 0 0 1-4.124-.002Z"}));case"smiley-6":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.22",d:"M49.305 16.992c8.833 8.834 8.833 23.155 0 31.988-8.834 8.833-23.155 8.833-31.988 0-8.833-8.833-8.833-23.154 0-31.987 8.833-8.834 23.154-8.834 31.988 0Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.375",d:"M38.96 39.217c-1.424 1.24-3.119 1.964-4.935 1.964-2.041 0-3.929-.91-5.451-2.445"}),t.createElement("path",{fill:"#272525",d:"M20.527 28.053a2.053 2.053 0 1 1 4.107.001 2.053 2.053 0 0 1-4.107-.001ZM41.469 28.053a2.053 2.053 0 1 1 4.106.001 2.053 2.053 0 0 1-4.106-.001Z"}));case"smiley-7":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.22",d:"M49.379 16.992c8.833 8.834 8.833 23.155 0 31.988-8.833 8.833-23.154 8.833-31.987 0-8.834-8.833-8.834-23.154 0-31.987 8.832-8.834 23.154-8.834 31.987 0Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.22",d:"M40.927 38.424c-1.813 2.127-4.032 3.428-6.477 3.555-2.747.143-5.365-1.21-7.545-3.613"}),t.createElement("path",{fill:"#272525",d:"M20.602 28.053a2.053 2.053 0 1 1 4.106.001 2.053 2.053 0 0 1-4.106-.001ZM41.543 28.053a2.053 2.053 0 1 1 4.107.001 2.053 2.053 0 0 1-4.107-.001Z"}));case"smiley-8":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",stroke:"#000","stroke-width":"1.22",d:"M49.453 16.992c8.833 8.834 8.833 23.155 0 31.988-8.833 8.833-23.154 8.833-31.987 0-8.833-8.833-8.833-23.154 0-31.987 8.833-8.834 23.154-8.834 31.987 0Z"}),t.createElement("path",{stroke:"#272525","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.22",d:"M21.566 36.892c1.664 5.345 6.649 9.225 12.542 9.225 5.894 0 10.878-3.88 12.542-9.225h-.004"}),t.createElement("path",{fill:"#272525",d:"M20.676 28.053a2.053 2.053 0 1 1 4.107.001 2.053 2.053 0 0 1-4.107-.001ZM41.617 28.053a2.053 2.053 0 1 1 4.107.001 2.053 2.053 0 0 1-4.107-.001Z"}));case"smiley-9":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",d:"M50.0498 49.4782C59.1583 40.3696 59.1583 25.6017 50.0498 16.4932C40.9412 7.3846 26.1733 7.3846 17.0648 16.4932C7.9562 25.6017 7.95621 40.3696 17.0648 49.4782C26.1733 58.5867 40.9412 58.5867 50.0498 49.4782Z",stroke:"#272525","stroke-width":"1.22","stroke-linecap":"round","stroke-linejoin":"round"}),t.createElement("path",{d:"M46.6555 36.8911C44.9915 42.2366 40.0074 46.1166 34.1139 46.1166C28.2204 46.1166 23.2363 42.2366 21.5723 36.8911H46.6515H46.6555Z",stroke:"#272525","stroke-width":"1.22","stroke-linecap":"round","stroke-linejoin":"round"}),t.createElement("path",{d:"M21.2988 27.5586C21.2988 26.4228 22.2202 25.4974 23.36 25.4974C24.4998 25.4974 25.4211 26.4188 25.4211 27.5586C25.4211 28.6984 24.4998 29.6197 23.36 29.6197C22.2202 29.6197 21.2988 28.6984 21.2988 27.5586Z",fill:"#272525"}),t.createElement("path",{d:"M42.3232 27.5586C42.3232 26.4228 43.2446 25.4974 44.3844 25.4974C45.5242 25.4974 46.4455 26.4188 46.4455 27.5586C46.4455 28.6984 45.5242 29.6197 44.3844 29.6197C43.2446 29.6197 42.3232 28.6984 42.3232 27.5586Z",fill:"#272525"}));case"smiley-10":return t.createElement(t.Fragment,null,t.createElement("path",{id:"outline",d:"M49.0748 16.9248C57.9453 25.7952 57.9453 40.1771 49.0748 49.0475C40.2044 57.9179 25.8226 57.9179 16.9521 49.0475C8.08169 40.1771 8.08169 25.7952 16.9521 16.9248C25.8226 8.05435 40.2044 8.05435 49.0748 16.9248Z",stroke:"black","stroke-width":"1.22108"}),t.createElement("path",{d:"M45.549 36.8849C43.8849 42.2306 38.9006 46.1107 33.0069 46.1107C27.1132 46.1107 22.1289 42.2306 20.4648 36.8849",stroke:"#272525","stroke-width":"1.37533","stroke-linecap":"round","stroke-linejoin":"round"}),t.createElement("path",{d:"M21.4651 36.3131L19.0742 37.4609",stroke:"#272525","stroke-width":"1.37533","stroke-linecap":"round","stroke-linejoin":"round"}),t.createElement("path",{d:"M44.5508 36.3131L46.9456 37.4609",stroke:"#272525","stroke-width":"1.37533","stroke-linecap":"round","stroke-linejoin":"round"}),t.createElement("path",{d:"M44.0689 24.4893L44.8314 26.8404H47.3096L45.304 28.2979L46.0705 30.6531L44.0689 29.1955L42.0633 30.6531L42.8298 28.2979L40.8281 26.8404H43.3024L44.0689 24.4893Z",fill:"#272525",stroke:"#272525","stroke-width":"0.610541","stroke-linecap":"round","stroke-linejoin":"round"}),t.createElement("path",{d:"M22.5181 24.4893L23.2846 26.8404H25.7589L23.7572 28.2979L24.5197 30.6531L22.5181 29.1955L20.5165 30.6531L21.279 28.2979L19.2773 26.8404H21.7516L22.5181 24.4893Z",fill:"#272525",stroke:"#272525","stroke-width":"0.610541","stroke-linecap":"round","stroke-linejoin":"round"}));case"star":return t.createElement("path",{fill:"inherit",d:"M23.412 6.009c.45-1.382 2.404-1.382 2.853 0l3.226 9.927a2.5 2.5 0 0 0 2.377 1.727h10.438c1.453 0 2.058 1.86.882 2.714l-8.444 6.135a2.5 2.5 0 0 0-.909 2.795l3.226 9.927c.449 1.382-1.133 2.531-2.308 1.677l-8.445-6.135a2.5 2.5 0 0 0-2.939 0l-8.444 6.135c-1.176.854-2.758-.295-2.309-1.677l3.226-9.927a2.5 2.5 0 0 0-.908-2.795l-8.445-6.135c-1.175-.854-.571-2.714.882-2.714H17.81a2.5 2.5 0 0 0 2.378-1.727l3.225-9.927Z"});default:return null}},p=({highlight:e,index:n=0,type:r,scale:o})=>"STAR"===r?t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"5.86,4.97,37.94,36.23",fill:e?"#F5B800":"#adadad"},t.createElement(d,{glyph:"star"})):["tick","cross"].includes(r)?t.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement(d,{glyph:l[o][n]})):t.createElement("svg",{width:"52",height:"52",viewBox:"0 0 66 66",fill:e?"#ffc75c":"none",xmlns:"http://www.w3.org/2000/svg"},t.createElement(d,{glyph:l[o][n]}));function g(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===t&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}g(".freemium-survey-components .binary-question {\n display: flex;\n flex-direction: column;\n grid-gap: 20px;\n gap: 20px;\n}\n.freemium-survey-components .binary-question .choices {\n display: flex;\n align-items: center;\n grid-gap: 20px;\n gap: 20px;\n flex-wrap: wrap;\n justify-content: center;\n}\n.freemium-survey-components .binary-question .choice {\n cursor: pointer;\n border-radius: 5px;\n border: none;\n padding: 12px;\n font-weight: 400;\n font-size: 14px;\n min-width: 180px;\n display: flex;\n align-items: center;\n justify-content: center;\n grid-gap: 8px;\n gap: 8px;\n background-color: #f2f2f2;\n transition: background ease 0.2s;\n}\n.freemium-survey-components .binary-question .choice:hover, .freemium-survey-components .binary-question .choice:focus, .freemium-survey-components .binary-question .choice.active {\n color: #fff;\n background: var(--default-brand-color) !important;\n background: var(--brand-color, var(--default-brand-color)) !important;\n}\n.freemium-survey-components .binary-question .choice:hover svg path, .freemium-survey-components .binary-question .choice:focus svg path, .freemium-survey-components .binary-question .choice.active svg path {\n stroke: #fff;\n fill: #fff;\n}\n.freemium-survey-components .binary-question .footer {\n border-top: 1px solid var(--choice-background-color);\n padding-top: 20px;\n display: flex;\n justify-content: center;\n font-size: 0.875rem;\n line-height: 1.5;\n color: rgba(18, 52, 77, 0.831372549);\n}\n.freemium-survey-components .binary-question .footer:empty {\n display: none;\n}\n\n.freemium-survey-components.mobile-preview .binary-question .actions {\n flex-wrap: wrap;\n justify-content: center;\n}");const v=({type_info:e,onSelect:n,value:r})=>{let o=e?.scale_properties?.labels?.values;const a="descending"===e?.scale_properties?.order,s=e=>a?(e+1)%2:e;return t.createElement("div",{className:"binary-question"},t.createElement("div",{className:"choices"},(a?o?.slice().reverse():o)?.map(((o,a)=>{return t.createElement("button",{className:("choice "+(Number(r)==Number(s(a))?"active":"")).trim(),onClick:()=>{n?.(Boolean(s(a)))}},t.createElement(u,{name:(i=Number(s(a)),c=e?.type_variant,"THUMBS"===c?["thumbs-down","thumbs-up"][i]:["cross","tick"][i])}),"none"!==e?.scale_properties?.labels?.preference&&o);var i,c}))),t.createElement("div",{className:"footer",role:"note"},e.footer_text))};g(".freemium-survey-components {\n --choice-background-color: #ebeff3;\n}\n.freemium-survey-components .range-container {\n margin: 0 auto;\n width: 100%;\n display: flex;\n flex-direction: column;\n grid-gap: 40px;\n gap: 40px;\n}\n.freemium-survey-components .range-container .footer {\n border-top: 1px solid var(--choice-background-color);\n padding-top: 20px;\n display: flex;\n justify-content: center;\n font-size: 0.875rem;\n line-height: 1.5;\n color: rgba(18, 52, 77, 0.831372549);\n}\n.freemium-survey-components .range-container .footer:empty {\n display: none;\n}\n.freemium-survey-components .range-container .range-scale.square button {\n border-radius: unset;\n}\n.freemium-survey-components .range-container .range-scale.minimal .choices {\n justify-content: space-around;\n}\n.freemium-survey-components .range-container .range-scale .button-container {\n flex-direction: column;\n display: flex;\n grid-gap: 20px;\n gap: 20px;\n margin: auto;\n}\n.freemium-survey-components .range-container .range-scale .labels {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.freemium-survey-components .range-container .range-scale .label {\n color: rgba(18, 52, 77, 0.831372549);\n font-size: 0.875rem;\n line-height: 1.4;\n}\n.freemium-survey-components .range-container .range-scale .choices {\n width: 100%;\n display: flex;\n justify-content: space-between;\n font-weight: 400;\n border-radius: 4px;\n}\n.freemium-survey-components .range-container .range-scale .choices.EMOJI {\n grid-gap: 8px;\n gap: 8px;\n}\n.freemium-survey-components .range-container .range-scale .choices.STAR {\n grid-gap: 16px;\n gap: 16px;\n}\n.freemium-survey-components .range-container .range-scale .choices.TEXT {\n grid-gap: 8px !important;\n gap: 8px !important;\n flex-wrap: nowrap;\n}\n.freemium-survey-components .range-container .range-scale .choices.TEXT .scale-7 button {\n width: 85px;\n}\n.freemium-survey-components .range-container .range-scale .choices.TEXT button {\n padding: 2px 4px !important;\n height: 54px;\n width: 94px;\n line-height: 16px;\n color: #12344d;\n}\n.freemium-survey-components .range-container .range-scale .choices.compact {\n grid-gap: 40px;\n gap: 40px;\n}\n.freemium-survey-components .range-container .range-scale .choice-container {\n flex: 0 0 0px;\n text-align: center;\n}\n.freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-5,\n.freemium-survey-components .range-container .range-scale .choices.STAR .scale-5 {\n min-width: 78px;\n max-width: 78px;\n word-break: break-word;\n}\n.freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-7,\n.freemium-survey-components .range-container .range-scale .choices.STAR .scale-7 {\n min-width: 75px;\n max-width: 75px;\n word-break: break-word;\n}\n.freemium-survey-components .range-container .range-scale .contained {\n display: none;\n}\n.freemium-survey-components .range-container .range-scale .uncontained {\n display: block;\n padding-top: 4px;\n}\n.freemium-survey-components .range-container .range-scale button {\n display: inline-block;\n font-size: 14px;\n word-wrap: break-word;\n background: none;\n border: none;\n box-shadow: none;\n cursor: pointer;\n text-align: center;\n font-weight: 400;\n border-radius: 4px;\n margin: 0;\n outline: none;\n margin-left: -1px;\n transform: scale(1);\n padding: 0;\n}\n.freemium-survey-components .range-container .range-scale button:hover {\n transition: background 0.2s ease-in, border-color 0.2s ease-in, transform 0.2s cubic-bezier(0.5, 2, 0.5, 0.75);\n}\n.freemium-survey-components .range-container .range-scale button:hover, .freemium-survey-components .range-container .range-scale button:focus {\n color: #fff !important;\n z-index: 2;\n}\n.freemium-survey-components .range-container .range-scale button.active {\n color: #fff;\n z-index: 2;\n}\n.freemium-survey-components .range-container .variant-emoji.range-scale button,\n.freemium-survey-components .range-container .variant-star.range-scale button {\n transform: scale(1);\n}\n.freemium-survey-components .range-container .variant-emoji.range-scale button svg,\n.freemium-survey-components .range-container .variant-star.range-scale button svg {\n transition: stroke 0.2s ease-in, fill 0.2s ease-in;\n}\n.freemium-survey-components .range-container .variant-emoji.range-scale button:hover,\n.freemium-survey-components .range-container .variant-star.range-scale button:hover {\n transition: background 0.2s ease-in, border-color 0.2s ease-in, transform 0.2s cubic-bezier(0.5, 2, 0.5, 0.75);\n}\n.freemium-survey-components .range-container .variant-emoji.range-scale button.active, .freemium-survey-components .range-container .variant-emoji.range-scale button:hover, .freemium-survey-components .range-container .variant-emoji.range-scale button:focus,\n.freemium-survey-components .range-container .variant-star.range-scale button.active,\n.freemium-survey-components .range-container .variant-star.range-scale button:hover,\n.freemium-survey-components .range-container .variant-star.range-scale button:focus {\n transform: scale(1.1);\n}\n.freemium-survey-components .range-container .variant-emoji.range-scale button.active svg, .freemium-survey-components .range-container .variant-emoji.range-scale button:hover svg, .freemium-survey-components .range-container .variant-emoji.range-scale button:focus svg,\n.freemium-survey-components .range-container .variant-star.range-scale button.active svg,\n.freemium-survey-components .range-container .variant-star.range-scale button:hover svg,\n.freemium-survey-components .range-container .variant-star.range-scale button:focus svg {\n fill: #f5b800;\n}\n.freemium-survey-components .range-container .variant-emoji.range-scale button.active svg path#outline, .freemium-survey-components .range-container .variant-emoji.range-scale button:hover svg path#outline, .freemium-survey-components .range-container .variant-emoji.range-scale button:focus svg path#outline,\n.freemium-survey-components .range-container .variant-star.range-scale button.active svg path#outline,\n.freemium-survey-components .range-container .variant-star.range-scale button:hover svg path#outline,\n.freemium-survey-components .range-container .variant-star.range-scale button:focus svg path#outline {\n stroke: none;\n}\n.freemium-survey-components .range-container .variant-text.range-scale .choices {\n flex-wrap: wrap;\n justify-content: center;\n grid-gap: 20px;\n gap: 20px;\n}\n.freemium-survey-components .range-container .variant-text.range-scale button {\n background: var(--choice-background-color);\n padding: 12px;\n transition: background 0.2s ease-in, border-color 0.2s ease-in, transform 0.4s cubic-bezier(0.5, 2, 0.5, 0.75);\n}\n.freemium-survey-components .range-container .variant-text.range-scale button:hover, .freemium-survey-components .range-container .variant-text.range-scale button:focus {\n transform: scale(1.05);\n}\n.freemium-survey-components .range-container .variant-text.range-scale button.active {\n transform: scale(1.05);\n}\n.freemium-survey-components .range-container .variant-text.range-scale.highlighted button:hover, .freemium-survey-components .range-container .variant-text.range-scale.highlighted button:focus, .freemium-survey-components .range-container .variant-text.range-scale.highlighted button.active {\n background: var(--default-brand-color) !important;\n background: var(--brand-color, var(--default-brand-color)) !important;\n}\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice {\n background: rgba(228, 62, 61, 0.3);\n}\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice:focus, .freemium-survey-components .range-container .variant-text.range-scale.standard .choice:hover, .freemium-survey-components .range-container .variant-text.range-scale.standard .choice.active {\n background: rgb(228, 62, 61);\n}\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.promoter,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.positive {\n background: rgba(0, 175, 80, 0.3);\n}\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.promoter:focus, .freemium-survey-components .range-container .variant-text.range-scale.standard .choice.promoter:hover, .freemium-survey-components .range-container .variant-text.range-scale.standard .choice.promoter.active,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.positive:focus,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.positive:hover,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.positive.active {\n background: rgb(0, 175, 80);\n}\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.passive,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.neutral {\n background: rgba(248, 196, 62, 0.3);\n}\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.passive:focus, .freemium-survey-components .range-container .variant-text.range-scale.standard .choice.passive:hover, .freemium-survey-components .range-container .variant-text.range-scale.standard .choice.passive.active,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.neutral:focus,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.neutral:hover,\n.freemium-survey-components .range-container .variant-text.range-scale.standard .choice.neutral.active {\n background: rgb(248, 196, 62);\n}\n.freemium-survey-components .range-container .variant-number.range-scale button {\n width: 40px;\n height: 40px;\n background: var(--choice-background-color);\n}\n.freemium-survey-components .range-container .variant-number.range-scale button:hover {\n transition: background 0.2s ease-in, border-color 0.2s ease-in, transform 0.2s cubic-bezier(0.5, 2, 0.5, 0.75);\n}\n.freemium-survey-components .range-container .variant-number.range-scale button:hover, .freemium-survey-components .range-container .variant-number.range-scale button:focus {\n transform: scale(1.1);\n}\n.freemium-survey-components .range-container .variant-number.range-scale button.active {\n transform: scale(1.1);\n}\n.freemium-survey-components .range-container .variant-number.range-scale.rounded button {\n border-radius: 50%;\n}\n.freemium-survey-components .range-container .variant-number.range-scale.square button {\n border-radius: 0;\n}\n.freemium-survey-components .range-container .variant-number.range-scale.curved button {\n border-radius: 3px;\n}\n.freemium-survey-components .range-container .variant-number.range-scale.highlighted button:hover, .freemium-survey-components .range-container .variant-number.range-scale.highlighted button:focus, .freemium-survey-components .range-container .variant-number.range-scale.highlighted button.active {\n background: var(--default-brand-color) !important;\n background: var(--brand-color, var(--default-brand-color)) !important;\n}\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice {\n background: rgba(228, 62, 61, 0.3);\n}\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice:focus, .freemium-survey-components .range-container .variant-number.range-scale.standard .choice:hover, .freemium-survey-components .range-container .variant-number.range-scale.standard .choice.active {\n background: rgb(228, 62, 61);\n}\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.promoter,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.positive {\n background: rgba(0, 175, 80, 0.3);\n}\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.promoter:focus, .freemium-survey-components .range-container .variant-number.range-scale.standard .choice.promoter:hover, .freemium-survey-components .range-container .variant-number.range-scale.standard .choice.promoter.active,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.positive:focus,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.positive:hover,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.positive.active {\n background: rgb(0, 175, 80);\n}\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.passive,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.neutral {\n background: rgba(248, 196, 62, 0.3);\n}\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.passive:focus, .freemium-survey-components .range-container .variant-number.range-scale.standard .choice.passive:hover, .freemium-survey-components .range-container .variant-number.range-scale.standard .choice.passive.active,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.neutral:focus,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.neutral:hover,\n.freemium-survey-components .range-container .variant-number.range-scale.standard .choice.neutral.active {\n background: rgb(248, 196, 62);\n}\n\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices {\n flex-wrap: nowrap;\n justify-content: center;\n grid-row-gap: 6px;\n row-gap: 6px;\n grid-column-gap: 6px;\n -moz-column-gap: 6px;\n column-gap: 6px;\n background: transparent;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .compact .choices {\n grid-gap: 2px;\n gap: 2px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.EMOJI .scale-5 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.EMOJI .scale-5 svg {\n display: block;\n width: 50px;\n height: 50px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.EMOJI .scale-7 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.EMOJI .scale-7 svg {\n display: block;\n width: 40px;\n height: 40px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.EMOJI .scale-10 svg {\n display: block;\n width: 25px;\n height: 25px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.STAR .scale-5 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.STAR .scale-5 svg {\n display: block;\n width: 30px;\n height: 30px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.STAR .scale-7 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.STAR .scale-7 svg {\n display: block;\n width: 30px;\n height: 30px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.STAR .scale-10 svg {\n display: block;\n width: 25px;\n height: 25px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.wrap {\n flex-wrap: wrap;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels {\n flex-direction: column;\n grid-gap: 8px !important;\n gap: 8px !important;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels .choice {\n display: flex;\n align-items: center;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 8px;\n grid-gap: 12px;\n gap: 12px;\n width: 100%;\n min-height: 44px;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels.TEXT .choice {\n border: none;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels .contained {\n display: block;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels .uncontained {\n display: none;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels .scale-5 {\n min-width: 100%;\n max-width: 100%;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .choices.with-labels .scale-7 {\n min-width: 100%;\n max-width: 100%;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .button-container.compact {\n width: auto;\n}\n.freemium-survey-components.mobile-preview .range-container .range-scale .button-container.compact .choices {\n justify-content: space-between;\n}\n.freemium-survey-components.mobile-preview .range-container .variant-number.range-scale button {\n background: var(--choice-background-color);\n}\n.freemium-survey-components.mobile-preview .range-container .variant-text.range-scale .button-container {\n width: auto;\n max-width: 80%;\n}\n.freemium-survey-components.mobile-preview .range-container .variant-text.range-scale .button-container .choice {\n padding: 12px;\n justify-content: center;\n min-height: 44px;\n}\n\n@media (max-width: 550px) {\n .freemium-survey-components .range-container .range-scale .choices,\n .card-survey-style .range-container .range-scale .choices {\n flex-wrap: nowrap;\n justify-content: center;\n grid-row-gap: 6px;\n row-gap: 6px;\n grid-column-gap: 6px;\n -moz-column-gap: 6px;\n column-gap: 6px;\n background: transparent;\n }\n .freemium-survey-components .range-container .range-scale .compact .choices,\n .card-survey-style .range-container .range-scale .compact .choices {\n grid-gap: 2px;\n gap: 2px;\n }\n .freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-5,\n .card-survey-style .range-container .range-scale .choices.EMOJI .scale-5 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n }\n .freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-5 svg,\n .card-survey-style .range-container .range-scale .choices.EMOJI .scale-5 svg {\n display: block;\n width: 50px;\n height: 50px;\n }\n .freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-7,\n .card-survey-style .range-container .range-scale .choices.EMOJI .scale-7 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n }\n .freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-7 svg,\n .card-survey-style .range-container .range-scale .choices.EMOJI .scale-7 svg {\n display: block;\n width: 40px;\n height: 40px;\n }\n .freemium-survey-components .range-container .range-scale .choices.EMOJI .scale-10 svg,\n .card-survey-style .range-container .range-scale .choices.EMOJI .scale-10 svg {\n display: block;\n width: 25px;\n height: 25px;\n }\n .freemium-survey-components .range-container .range-scale .choices.STAR .scale-5,\n .card-survey-style .range-container .range-scale .choices.STAR .scale-5 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n }\n .freemium-survey-components .range-container .range-scale .choices.STAR .scale-5 svg,\n .card-survey-style .range-container .range-scale .choices.STAR .scale-5 svg {\n display: block;\n width: 30px;\n height: 30px;\n }\n .freemium-survey-components .range-container .range-scale .choices.STAR .scale-7,\n .card-survey-style .range-container .range-scale .choices.STAR .scale-7 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n }\n .freemium-survey-components .range-container .range-scale .choices.STAR .scale-7 svg,\n .card-survey-style .range-container .range-scale .choices.STAR .scale-7 svg {\n display: block;\n width: 30px;\n height: 30px;\n }\n .freemium-survey-components .range-container .range-scale .choices.STAR .scale-10 svg,\n .card-survey-style .range-container .range-scale .choices.STAR .scale-10 svg {\n display: block;\n width: 25px;\n height: 25px;\n }\n .freemium-survey-components .range-container .range-scale .choices.wrap,\n .card-survey-style .range-container .range-scale .choices.wrap {\n flex-wrap: wrap;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels,\n .card-survey-style .range-container .range-scale .choices.with-labels {\n flex-direction: column;\n grid-gap: 8px !important;\n gap: 8px !important;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels .choice,\n .card-survey-style .range-container .range-scale .choices.with-labels .choice {\n display: flex;\n align-items: center;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 8px;\n grid-gap: 12px;\n gap: 12px;\n width: 100%;\n min-height: 44px;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels.TEXT .choice,\n .card-survey-style .range-container .range-scale .choices.with-labels.TEXT .choice {\n border: none;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels .contained,\n .card-survey-style .range-container .range-scale .choices.with-labels .contained {\n display: block;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels .uncontained,\n .card-survey-style .range-container .range-scale .choices.with-labels .uncontained {\n display: none;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels .scale-5,\n .card-survey-style .range-container .range-scale .choices.with-labels .scale-5 {\n min-width: 100%;\n max-width: 100%;\n }\n .freemium-survey-components .range-container .range-scale .choices.with-labels .scale-7,\n .card-survey-style .range-container .range-scale .choices.with-labels .scale-7 {\n min-width: 100%;\n max-width: 100%;\n }\n .freemium-survey-components .range-container .range-scale .button-container.compact,\n .card-survey-style .range-container .range-scale .button-container.compact {\n width: auto;\n }\n .freemium-survey-components .range-container .range-scale .button-container.compact .choices,\n .card-survey-style .range-container .range-scale .button-container.compact .choices {\n justify-content: space-between;\n }\n .freemium-survey-components .range-container .variant-number.range-scale button,\n .card-survey-style .range-container .variant-number.range-scale button {\n background: var(--choice-background-color);\n }\n .freemium-survey-components .range-container .variant-text.range-scale .button-container,\n .card-survey-style .range-container .variant-text.range-scale .button-container {\n width: auto;\n max-width: 80%;\n }\n .freemium-survey-components .range-container .variant-text.range-scale .button-container .choice,\n .card-survey-style .range-container .variant-text.range-scale .button-container .choice {\n padding: 12px;\n justify-content: center;\n min-height: 44px;\n }\n .freemium-survey-components .range-container .range-scale button:hover, .freemium-survey-components .range-container .range-scale button:focus,\n .card-survey-style .range-container .range-scale button:hover,\n .card-survey-style .range-container .range-scale button:focus {\n color: unset;\n transform: unset;\n z-index: unset;\n position: unset;\n }\n .freemium-survey-components .range-container .range-scale.highlighted button:hover, .freemium-survey-components .range-container .range-scale.highlighted button:focus, .freemium-survey-components .range-container .range-scale.standard button:hover, .freemium-survey-components .range-container .range-scale.standard button:focus,\n .card-survey-style .range-container .range-scale.highlighted button:hover,\n .card-survey-style .range-container .range-scale.highlighted button:focus,\n .card-survey-style .range-container .range-scale.standard button:hover,\n .card-survey-style .range-container .range-scale.standard button:focus {\n background: var(--choice-background-color) !important;\n }\n}\n.widget-survey-components .range-container .range-scale .choices {\n background: transparent;\n}\n.widget-survey-components .range-container .range-scale .choices {\n flex-wrap: wrap;\n justify-content: center;\n grid-gap: 16px;\n gap: 16px;\n background: transparent;\n}\n.widget-survey-components .range-container .variant-number.range-scale button {\n border-radius: 50%;\n background: var(--choice-background-color);\n}\n\n.widget-survey-components.compact-style .range-container .range-scale .choices {\n flex-wrap: nowrap;\n justify-content: center;\n grid-row-gap: 6px;\n row-gap: 6px;\n grid-column-gap: 6px;\n -moz-column-gap: 6px;\n column-gap: 6px;\n background: transparent;\n}\n.widget-survey-components.compact-style .range-container .range-scale .compact .choices {\n grid-gap: 2px;\n gap: 2px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.EMOJI .scale-5 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.EMOJI .scale-5 svg {\n display: block;\n width: 50px;\n height: 50px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.EMOJI .scale-7 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.EMOJI .scale-7 svg {\n display: block;\n width: 40px;\n height: 40px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.EMOJI .scale-10 svg {\n display: block;\n width: 25px;\n height: 25px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.STAR .scale-5 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.STAR .scale-5 svg {\n display: block;\n width: 30px;\n height: 30px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.STAR .scale-7 {\n width: 40px;\n min-width: 40px;\n max-width: 40px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.STAR .scale-7 svg {\n display: block;\n width: 30px;\n height: 30px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.STAR .scale-10 svg {\n display: block;\n width: 25px;\n height: 25px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.wrap {\n flex-wrap: wrap;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels {\n flex-direction: column;\n grid-gap: 8px !important;\n gap: 8px !important;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels .choice {\n display: flex;\n align-items: center;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 8px;\n grid-gap: 12px;\n gap: 12px;\n width: 100%;\n min-height: 44px;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels.TEXT .choice {\n border: none;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels .contained {\n display: block;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels .uncontained {\n display: none;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels .scale-5 {\n min-width: 100%;\n max-width: 100%;\n}\n.widget-survey-components.compact-style .range-container .range-scale .choices.with-labels .scale-7 {\n min-width: 100%;\n max-width: 100%;\n}\n.widget-survey-components.compact-style .range-container .range-scale .button-container.compact {\n width: auto;\n}\n.widget-survey-components.compact-style .range-container .range-scale .button-container.compact .choices {\n justify-content: space-between;\n}\n.widget-survey-components.compact-style .range-container .variant-number.range-scale button {\n background: var(--choice-background-color);\n}\n.widget-survey-components.compact-style .range-container .variant-text.range-scale .button-container {\n width: auto;\n max-width: 80%;\n}\n.widget-survey-components.compact-style .range-container .variant-text.range-scale .button-container .choice {\n padding: 12px;\n justify-content: center;\n min-height: 44px;\n}");const f=(e,n,t,r,o,a)=>{let s="";return s="STAR"===t?-1!==n?(r?n<e:n>=e)?"active":"":(r?(a??1/0)<e:(a??-1)>=e)?"active":"":e===a?"active":"",s+" "+o.find((n=>n.min<=e&&n.max>=e))?.label??"promoter"},h=({type_variant:e,activeStarRating:n,eachValue:r,max:o,props:a})=>t.createElement(t.Fragment,null,"NUMBER"===e&&r,"TEXT"===e&&a.type_info.scale_properties?.labels?.values[r-1],["STAR","EMOJI"].includes(e)&&t.createElement(p,{scale:o,type:e,index:Math.max(0,r-1),highlight:a.value===r&&-1===n})),y=e=>{const{type_info:{type_variant:r="NUMBER",scale_properties:{button_style:{type:o="highlighted",shape:a="rounded"}={},labels:{values:s=["Very unlikely","Very likely"],preference:i="none"}={},range:c=[{id:"3",min:0,max:6,label:"detractor"},{id:"2",min:7,max:8,label:"passive"},{id:"1",min:9,max:10,label:"promoter"}]}={},footer_text:l}}=e,u=Number(c?.[0]?.min),m=Number(c?.[c.length-1]?.max),d="descending"===e.type_info.scale_properties?.order,[p,g]=n.useState(-1),y=n.useRef(Array.from({length:m+(0===u?1:0)},((e,n)=>d?m-n:n+u)));return 1===(x=e.type_info)?.scale_properties?.range?.[x?.scale_properties.range.length-1]?.max?t.createElement(v,{type_info:e.type_info,onSelect:n=>e.onChangeHandler(Number(n)),value:null==e.value?e.value:!!e.value}):t.createElement("div",{className:"range-container","data-test-input":"range"},t.createElement("div",{className:`range-scale ${a} ${o} variant-${r.toLowerCase()} ${3===y.current.length?"minimal":""}`},t.createElement("div",{className:"button-container "+(m<=7?"compact":"")},t.createElement("div",{className:`choices ${"TEXT"===r||"all"===i?"with-labels ":""}${r} ${y.current.length>7?"wrap":"no-wrap"}`.trim(),role:"radiogroup","aria-required":!0},y.current.map((n=>t.createElement("div",{className:`choice-container scale-${y.current.length}`},t.createElement("button",{className:`choice ${f(n,p,r,d,c,e.value)}`,role:"radio","aria-checked":e.value===n,key:n,"data-test-range-choice":n,onClick:t=>{e.onChangeHandler(n)},onMouseOver:()=>{"STAR"===r&&g(n)},onMouseLeave:()=>{"STAR"===r&&g(-1)}},t.createElement(h,{type_variant:r,activeStarRating:p,eachValue:n,max:m,props:e}),"TEXT"!==r&&"all"===i&&t.createElement("div",{className:"contained label",role:"note"},s[0===u?n:n-1])),"TEXT"!==r&&"all"===i&&t.createElement("div",{className:"uncontained label",role:"note"},s[0===u?n:n-1]))))),"TEXT"!==r&&"edges"===i&&t.createElement("div",{className:"labels",style:{flexDirection:d?"row-reverse":"row"}},t.createElement("span",{className:"label",role:"note"},`${u} - ${s[0]}`),t.createElement("span",{className:"label",role:"note"},`${m} - ${s[s.length-1]}`)))),t.createElement("div",{className:"footer",role:"note"},l));var x},x=(e,n)=>(e.defaultProps=n,e),b=e=>null==e||"string"==typeof e&&""===e.trim()||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,w=(e,n,t)=>{if(e){let r=null;if(null!=t&&(r={"{{nps.rating}}":String(t)}),n&&"object"==typeof n&&Object.keys(n).length>0&&(r={...n,...r??{}}),r){const n=new RegExp(Object.keys(r).join("|"),"gi");return e.replace(n,(function(e){return r?.[e.toLowerCase()]??""}))??""}}return e??""},k=e=>({...e?.brand_color&&{"--brand-color":e.brand_color},...e?.body_background_color&&{"--background-color":e.body_background_color},...e?.secondary_button_color&&{"--secondary-button-color":e.secondary_button_color},...e?.question_background_color&&{"--question-background-color":e.question_background_color},...e?.primary_button_text_color&&{"--button-text-color":e.primary_button_text_color},...e?.secondary_button_text_color&&{"--secondary-button-text-color":e.secondary_button_text_color},...e?.question_text_color&&{"--question-text-color":e.question_text_color}});g('.freemium-survey-components .input-container,\n.freemium-survey-components .textarea-container {\n display: flex;\n flex-direction: column;\n width: 100%;\n border-radius: 4px;\n position: relative;\n}\n.freemium-survey-components label.input-label {\n display: inline-block;\n padding-bottom: 8px;\n padding-left: 2px;\n font-size: 0.75rem;\n font-weight: 400;\n}\n.freemium-survey-components label.required::after {\n content: "*";\n position: relative;\n top: 2px;\n font-weight: 500;\n font-size: 0.85rem;\n padding-left: 3px;\n color: #d72d30;\n}\n.freemium-survey-components .input-basic {\n width: 100%;\n display: flex;\n align-items: center;\n border-radius: 4px;\n border: 1px solid var(--default-brand-color);\n border: 1px solid var(--brand-color, var(--default-brand-color));\n transition: border-color 0.2s linear;\n background: #fff;\n}\n.freemium-survey-components .textarea-container .input-basic {\n flex-direction: column;\n align-items: unset;\n}\n.freemium-survey-components .input-basic.error {\n border: 1px solid #d72d30;\n}\n.freemium-survey-components .input-basic.error:hover {\n border: 1px solid #d72d30;\n}\n.freemium-survey-components .input-basic.error[focus-within] {\n box-shadow: none;\n}\n.freemium-survey-components .input-basic.error:focus-within {\n box-shadow: none;\n}\n.freemium-survey-components .input-basic:hover {\n border-color: var(--default-brand-color);\n border-color: var(--brand-color, var(--default-brand-color));\n transition: 0.2s linear;\n}\n.freemium-survey-components .input-basic[focus-within] {\n border: 1px solid transparent;\n box-shadow: 0 0 0 2px var(--default-brand-color);\n box-shadow: 0 0 0 2px var(--brand-color, var(--default-brand-color));\n}\n.freemium-survey-components .input-basic:focus-within {\n border: 1px solid transparent;\n box-shadow: 0 0 0 2px var(--default-brand-color);\n box-shadow: 0 0 0 2px var(--brand-color, var(--default-brand-color));\n}\n.freemium-survey-components .input-basic[focus-within] .end-max-length {\n opacity: 1;\n}\n.freemium-survey-components .input-basic:focus-within .end-max-length {\n opacity: 1;\n}\n.freemium-survey-components .end-max-length {\n transition: opacity ease 0.2s;\n opacity: 0;\n padding: 0 8px;\n font-size: 0.75rem;\n color: #264966;\n}\n.freemium-survey-components .textarea-container .end-max-length {\n padding: 8px;\n align-self: flex-end;\n}\n.freemium-survey-components span.input-error {\n display: block;\n padding-left: 2px;\n padding-top: 4px;\n font-size: 0.9rem;\n color: #d72d30;\n}\n.freemium-survey-components input[type=text] {\n padding: 6px 12px;\n flex: 1;\n border: unset;\n height: 32px;\n font-size: 1rem;\n min-width: 0;\n /* line-height: ${typography.input.text.lineHeight}; */\n border-radius: 4px;\n}\n.freemium-survey-components input[type=text],\n.freemium-survey-components textarea {\n outline: none;\n border: none;\n}\n.freemium-survey-components input[type=text]:focus,\n.freemium-survey-components textarea:focus {\n box-shadow: none !important;\n}\n.freemium-survey-components input[type=text]::-moz-placeholder {\n color: #92a2b2;\n font-weight: 400;\n font-size: 0.85rem;\n}\n.freemium-survey-components input[type=text]::placeholder {\n color: #92a2b2;\n font-weight: 400;\n font-size: 0.85rem;\n}\n.freemium-survey-components textarea {\n min-height: 116px;\n padding: 12px;\n flex: 1;\n border: unset;\n resize: none;\n font-size: 1rem;\n min-width: 0;\n /* line-height: ${typography.input.text.lineHeight}; */\n border-radius: 4px;\n}\n.freemium-survey-components textarea::-moz-placeholder {\n color: #92a2b2;\n font-weight: 400;\n font-size: 0.85rem;\n}\n.freemium-survey-components textarea::placeholder {\n color: #92a2b2;\n font-weight: 400;\n font-size: 0.85rem;\n}');const E={isRequired:!1,showCount:!0,isErrored:!1,inline:!1,spellCheck:!1},C=n.forwardRef(((e,r)=>{const o=n.useRef(null);n.useEffect((()=>{setTimeout((()=>{o.current?.focus()}),s+(e.autoFocusDelay??0))}),[]);const{inputStyle:a,style:i,className:c,showCount:l,isErrored:u,startLabel:m,isRequired:d,errorText:p,endLabel:g,maxLength:v=256,onChange:f,...h}=e;return t.createElement("div",{className:"input-container",style:i},e.label&&t.createElement("label",{className:"input-label "+(d?"required":"")},e.label),t.createElement(t.Fragment,null,m&&t.createElement("div",{className:"start-label"},m),t.createElement("div",{className:`input-basic ${u?"error":""}${c||""}`},t.createElement("input",{...h,onFocus:e=>e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length),type:"text",autoComplete:"off",ref:o,style:a,onChange:e=>{e.target.value?.length>v||f?.(e)}}),l&&v>0&&t.createElement("div",{className:"end-max-length"},`${e.value&&e.value.length||0}/${v}`)),g&&t.createElement("div",{className:"end-label"},g)),u&&p&&t.createElement("span",{className:"input-error"},e.errorText))})),q=n.forwardRef(((e,r)=>{const o=n.useRef(null);n.useEffect((()=>{setTimeout((()=>{o.current?.focus()}),s+(e.autoFocusDelay??0))}),[]);const{inputStyle:a,style:i,className:c,showCount:l,maxLength:u=1500,startLabel:m,isRequired:d,onChange:p,...g}=e;return t.createElement(t.Fragment,null,t.createElement("div",{className:"textarea-container",style:i},e.label&&t.createElement("label",{className:"input-label "+(d?"required":"")},e.label),m&&t.createElement("div",{className:"start-label"},m),t.createElement("div",{className:`input-basic ${c||""}`},t.createElement("textarea",{...g,onFocus:e=>e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length),autoComplete:"off",ref:o,style:a,onChange:e=>{e.target.value?.length>u||p?.(e)}}),l&&u&&u>0&&t.createElement("div",{className:"end-max-length"},`${e.value&&e.value.length||0}/${u}`)),e.endLabel&&t.createElement("div",{className:"end-label"},e.endLabel)))})),B=x(C,E),_=x(q,E);g('.freemium-survey-components .checkbox-group {\n width: 100%;\n display: flex;\n grid-gap: 12px;\n gap: 12px;\n flex-direction: column;\n white-space: nowrap;\n flex-wrap: wrap;\n}\n.freemium-survey-components .icon-container {\n display: inline-block;\n flex: 0 0 12px;\n width: 12px;\n height: 12px;\n min-width: 12px;\n min-height: 12px;\n color: inherit;\n position: absolute;\n left: 1px;\n top: 2px;\n}\n.freemium-survey-components .tick-icon {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n height: 100%;\n width: 100%;\n color: inherit;\n fill: currentColor;\n}\n.freemium-survey-components input[type=checkbox] {\n position: absolute;\n clip: rect(0px 0px 0px 0px);\n width: 0px;\n height: 0px;\n}\n.freemium-survey-components input[type=checkbox]:focus ~ .checkbox {\n /* box-shadow: ${pseudo.focus} 0px 0px 0px 2px; */\n box-shadow: var(--default-brand-color) 0px 0px 0px 2px;\n box-shadow: var(--brand-color, var(--default-brand-color)) 0px 0px 0px 2px;\n border-color: transparent;\n}\n.freemium-survey-components .checkbox-label {\n display: flex;\n align-items: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: left;\n opacity: 1;\n line-height: 1.2;\n cursor: pointer;\n font-size: 1rem;\n padding: 16px 24px;\n min-width: 200px;\n border: 1px solid #ebeff3;\n border-radius: 4px;\n white-space: pre-wrap;\n}\n.freemium-survey-components .checkbox-label:hover {\n border-color: #92a2b1;\n}\n.freemium-survey-components .checkbox-label.disabled {\n opacity: 0.5;\n cursor: "not-allowed";\n}\n.freemium-survey-components .checkbox {\n transition: background-color ease-in 0.2s;\n min-width: 14px;\n min-height: 14px;\n min-height: 14px;\n max-height: 14px;\n border-radius: 2px;\n position: relative;\n margin-right: 16px;\n background-color: #fff;\n border: 1px solid;\n text-align: left;\n border-color: var(--default-brand-color);\n border-color: var(--brand-color, var(--default-brand-color));\n}\n.freemium-survey-components .checkbox:hover {\n border-color: var(--default-brand-color);\n border-color: var(--brand-color, var(--default-brand-color));\n box-shadow: var(--default-background-color) 0px 0px 0px 5px;\n box-shadow: var(--background-color, var(--default-background-color)) 0px 0px 0px 5px;\n}\n.freemium-survey-components input[type=checkbox]:checked ~ .checkbox {\n background-color: var(--default-brand-color);\n background-color: var(--brand-color, var(--default-brand-color));\n border-color: var(--default-brand-color);\n border-color: var(--brand-color, var(--default-brand-color));\n}\n.freemium-survey-components input[type=checkbox]:checked ~ .checkbox:hover {\n border-color: var(--default-brand-color);\n border-color: var(--brand-color, var(--default-brand-color));\n}\n.freemium-survey-components input[type=checkbox]:disabled ~ .checkbox:hover {\n box-shadow: unset;\n border-color: unset;\n}');const O=()=>t.createElement("svg",{id:"tick",className:"tick-icon",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"title",viewBox:"0 0 10 10"},t.createElement("path",{d:"M3 5.87c-.18666814.00267463-.36667109-.06932655-.5-.2L.21 3.41c-.1786328-.17863279-.24839684-.43899577-.1830127-.6830127.06538414-.24401694.25598306-.43461586.5-.5C.77100423 2.16160316 1.0313672 2.23136721 1.21 2.41L3 4.18 6.8.33c.27679776-.27455556.72320224-.27455556 1 0 .13696438.13025306.21450026.31098915.21450026.5S7.93696438 1.19974694 7.8 1.33L3.45 5.67c-.12082534.11896945-.28072735.19003701-.45.2Z",fill:"#fff",fillRule:"evenodd"})),N=({values:e=[],othersValue:r="",options:o,name:i,autoFocusDelay:c,onChangeHandler:l,saveOthersValue:u})=>{const m=e.includes(a),d=n.useRef(null);return n.useEffect((()=>{setTimeout((()=>{d.current?.focus()}),s+c)}),[]),t.createElement("div",{className:"checkbox-group"},t.createElement("button",{ref:d,className:"autofocus-button","aria-label":"checkbox question"}),o?.filter((e=>e.value!==a)).filter((e=>!e.meta?.is_deleted)).map(((n,r)=>t.createElement(S,{key:n.id,checked:e?.includes(n.value),name:n.value,id:n.id,onChange:(t,r)=>{if(r){const t=o.reduce(((e,n)=>({...e,[n.value]:n.position})),{});l([...e||[],n.value].sort(((e,n)=>t[e]-t[n])))}else{const t=e.indexOf(n.value);t>-1&&e.splice(t,1),l([...e])}}},n.value))),o?.find((e=>e.value===a))&&t.createElement(S,{key:"others",checked:m,name:a,id:a,onChange:(n,t)=>{if(t)l([...e,a]);else{const n=e.findIndex((e=>e===a));e.splice(n,1),l(e)}}},"Others"),m&&t.createElement(t.Fragment,null,t.createElement(B,{placeholder:"Enter your comment",value:r,onChange:e=>{u(i,e.target.value)},autoFocusDelay:10,label:""})))},S=x((e=>{const r=n.useRef(null);return n.useEffect((()=>{e.autoFocus&&setTimeout((()=>{r.current?.focus()}),320)}),[]),t.createElement("label",{className:`checkbox-label ${e.disabled&&"disabled"}`},t.createElement("input",{ref:r,id:e.id,type:"checkbox",name:e.name,readOnly:e.readOnly,disabled:e.disabled,"aria-disabled":e.disabled,checked:e.checked,onChange:e.readOnly?()=>{}:n=>e.onChange(n,n.target.checked)}),t.createElement("div",{className:"checkbox"},e.checked&&t.createElement("div",{className:"icon-container"},t.createElement(O,null)," ")),t.createElement("div",null,e.children))}),{checked:!1});g('.freemium-survey-components .radio-group {\n display: flex;\n grid-gap: 12px;\n gap: 12px;\n white-space: nowrap;\n flex-direction: column;\n width: 100%;\n}\n.freemium-survey-components .radio {\n background-color: #fff;\n border: 1px solid;\n border-color: var(--default-brand-color);\n border-color: var(--brand-color, var(--default-brand-color));\n transition: background-color ease-in 0.2s;\n min-width: 18px;\n max-width: 18px;\n min-height: 18px;\n max-height: 18px;\n border-radius: 50%;\n position: relative;\n margin-right: 16px;\n text-align: left;\n}\n.freemium-survey-components .radio:before {\n left: 3px;\n top: 3px;\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n transition: all ease-in 0.2s;\n background-color: #fff;\n}\n.freemium-survey-components .radio-label {\n display: flex;\n align-items: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n text-align: left;\n cursor: pointer;\n line-height: 1.2;\n font-size: 1rem;\n font-weight: 400;\n padding: 16px 24px;\n min-width: 200px;\n border: 1px solid #ebeff3;\n border-radius: 4px;\n white-space: pre-wrap;\n color: #3a4b67;\n}\n.freemium-survey-components input[type=radio] {\n position: absolute;\n clip: rect(0, 0, 0, 0);\n width: 0px;\n height: 0px;\n}\n.freemium-survey-components input[type=radio]:focus ~ .radio {\n /* box-shadow: ${pseudo.focus} 0px 0px 0px 3px; */\n box-shadow: var(--default-brand-color) 0px 0px 0px 3px;\n box-shadow: var(--brand-color, var(--default-brand-color)) 0px 0px 0px 3px;\n border-color: transparent;\n}\n.freemium-survey-components input[type=radio]:checked ~ .radio:before {\n background-color: var(--default-brand-color);\n background-color: var(--brand-color, var(--default-brand-color));\n}\n.freemium-survey-components .radio-label:hover {\n border-color: #92a2b1;\n}');const A=({name:e,options:r,value:o,autoFocusDelay:i,onChangeHandler:c,saveOthersValue:l,othersOption:u,othersRequired:m,othersValue:d,isFinalQn:p})=>{const g=n.useRef(null);return n.useEffect((()=>{setTimeout((()=>{g.current?.focus()}),s+i)}),[]),t.createElement("div",{className:"radio-group",role:"radiogroup"},t.createElement("button",{ref:g,className:"autofocus-button","aria-label":"radio question",tabIndex:-1}),r?.sort(((e,n)=>e.value===a?1:n.value===a?-1:0)).filter((e=>!e.meta?.is_deleted))?.map(((n,r)=>t.createElement(I,{key:n.value,value:n.value,name:e,onChange:n=>{n.currentTarget.value!==a&&l(e,null),c(n.currentTarget.value)},checked:o===n.value},n.value===a?"Others":n.value))),o===a&&t.createElement(t.Fragment,null,t.createElement(B,{value:d??"",onChange:n=>{o!==a&&p&&c(a),l(e,n.target.value)},placeholder:"Enter your comment",label:"",autoFocusDelay:10})))},I=x((e=>{const r=n.useRef(null);return n.useEffect((()=>{e.autoFocus&&setTimeout((()=>{r.current?.focus()}),320)}),[]),t.createElement("label",{className:"radio-label"},t.createElement("input",{ref:r,type:"radio",name:e.name,value:e.value,checked:e.checked,onChange:e.onChange}),t.createElement("div",{className:"radio"}),t.createElement("div",null,e.children))}),{checked:!1,autoFocus:!1});g(".progressbar-container {\n width: 100%;\n height: 4px;\n position: fixed;\n top: 0;\n left: 0;\n z-index: 1;\n text-align: left;\n overflow: hidden;\n border-top-left-radius: inherit;\n border-top-right-radius: inherit;\n}\n\n.progressbar-container.widget {\n position: absolute;\n top: 0;\n height: 2px;\n}\n\n.progressbar {\n transition: transform 0.2s linear 200ms;\n transform-origin: left;\n height: 100%;\n background-color: var(--default-brand-color);\n background-color: var(--brand-color, var(--default-brand-color));\n}");const M=e=>{const{totalSteps:n,completedSteps:r,widget:o}=e;return t.createElement("div",{className:"progressbar-container "+(o?"widget":"")},t.createElement("div",{className:"progressbar",style:{width:(r>0?100/n:0)+"%",transform:`scaleX(${r})`}}))};g(".freemium-survey-components .action-button {\n width: auto;\n display: block;\n padding: 8px 16px;\n cursor: pointer;\n line-height: 1.5;\n text-align: center;\n font-weight: 600;\n letter-spacing: 0.3px;\n border-radius: 4px;\n white-space: nowrap;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n color: --default-button-text-color;\n color: var(--button-text-color, --default-button-text-color);\n background: var(--default-brand-color);\n background: var(--brand-color, var(--default-brand-color));\n border: 1px solid var(--default-brand-color);\n border: 1px solid var(--brand-color, var(--default-brand-color));\n border-radius: 4px;\n min-width: 200px;\n max-width: -moz-fit-content;\n max-width: fit-content;\n transform: translateY(0px);\n transition: transform ease 0.2s;\n}\n.freemium-survey-components .action-button:not([disabled]):hover {\n transform: translateY(-4px);\n}\n.freemium-survey-components .action-button[disabled] {\n cursor: not-allowed;\n opacity: 0.6;\n}\n.freemium-survey-components button:focus:not(:active) {\n /* box-shadow: 0 0 0 2px ${pseudo.focus}; */\n}\n\n@media (max-width: 550px) {\n .freemium-survey-components .action-button {\n min-width: 120px;\n }\n}\n.widget-survey-components .action-button {\n min-width: 120px;\n}\n\n.freemium-survey-components.mobile-preview .action-button {\n min-width: 120px;\n}");const T=()=>t.createElement(t.Fragment,null,"..."),R=e=>{const{inline:n=!1,children:r,disabled:o,className:a="",htmlType:s,type:i="primary",onClick:c,size:l,overrideStyleClassName:u="",loading:m=!1,...d}=e;return t.createElement("button",{style:n?{display:"inline-block"}:{},disabled:o,className:`action-button ${a} ${u}`,type:s,onClick:c,...d},m?t.createElement(T,null):r)},Z=({question:e,formValues:n,othersMeta:r,onChangeHandler:o,saveOthersValue:s,autoFocusDelay:i,isFinalQn:c})=>{switch(e.type_info.question_type){case"RANGE":return t.createElement(y,{type_info:e.type_info,onChangeHandler:o,value:n[e.name]});case"CHECKBOX":case"MULTI_SELECT":return t.createElement(N,{name:e.name,values:n[e.name],othersValue:r[e.name],options:e.choices,onChangeHandler:o,saveOthersValue:s,othersOption:e.choices.find((e=>e.value===a)),othersRequired:e.type_info.meta?.othersRequired,autoFocusDelay:i});case"RADIO":case"DROPDOWN":return t.createElement(A,{autoFocusDelay:i,name:e.name,onChangeHandler:o,saveOthersValue:s,options:e.choices,value:n[e.name],othersValue:r[e.name],othersOption:e.choices.find((e=>e.value===a)),othersRequired:e.type_info.meta?.othersRequired,isFinalQn:c});case"INPUT":case"TEXT":return e.type_info?.meta?.readOnly?t.createElement("div",{className:"message-container"},e.type_info?.meta?.value):t.createElement("div",{className:"responsive-text-field"},t.createElement(B,{autoFocusDelay:i,label:"",isRequired:e.is_required,value:n[e.name]||"",placeholder:e.type_info?.meta?.placeholder??"",onChange:e=>o(e.target.value)}),t.createElement(_,{autoFocusDelay:i,label:"",maxLength:256,isRequired:e.is_required,placeholder:e.type_info?.meta?.placeholder??"",value:n[e.name]||"",onChange:e=>o(e.target.value)}));case"PARAGRAPH":return t.createElement(_,{autoFocusDelay:i,label:"",isRequired:e.is_required,placeholder:e.type_info?.meta?.placeholder??"",value:n[e.name]||"",onChange:e=>o(e.target.value)});case"BOOLEAN":return t.createElement(v,{type_info:e.type_info,onSelect:o,value:n[e.name]});default:return console.error(`Question type ${e.type_info.question_type} not found`),null}};g(":root {\n --default-brand-color: #264966;\n --default-question-text-color: #3a4b67;\n --default-question-background-color: #fff;\n --default-background-color: #f8f8f8;\n --default-button-text-color: #fff;\n --default-secondary-button-text-color: #000;\n --default-input-placeholder-color: #92a2b1;\n --compact-widget-max-height: 560px;\n --default-widget-max-height: 400px;\n --cozy-widget-max-height: 380px;\n}\n\n.freemium-survey-components.card-survey-style {\n padding: 20px 0;\n}\n.freemium-survey-components.card-survey-style .freemium-survey-step-navigation {\n white-space: nowrap;\n border-radius: 3px;\n border: 1px solid #efefef;\n}\n.freemium-survey-components.card-survey-style .freemium-survey-step-navigation .navigation-button {\n width: 38px;\n text-align: -webkit-center;\n height: 38px;\n background-color: #fff;\n border: none;\n cursor: pointer;\n border-radius: 0 3px 3px 0;\n}\n.freemium-survey-components.card-survey-style .freemium-survey-step-navigation .navigation-button svg {\n margin-top: 5px;\n}\n.freemium-survey-components.card-survey-style .freemium-survey-step-navigation .navigation-button:first-of-type {\n border-right: 1px solid #efefef;\n border-radius: 3px 0 0 3px;\n}\n.freemium-survey-components.card-survey-style .freemium-survey-step-navigation .navigation-button:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.freemium-survey-components.card-survey-style .freemium-survey-step-navigation .navigation-button:focus {\n position: relative;\n z-index: 1;\n}\n.freemium-survey-components.card-survey-style .question-container {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n text-align: center;\n width: 100%;\n max-width: 700px;\n margin: 0 auto;\n background: var(--default-question-background-color);\n background: var(--question-background-color, var(--default-question-background-color));\n border-radius: 4px;\n transition: transform 500ms ease 0ms, opacity 200ms ease 0ms;\n box-shadow: 0px 12px 15px rgba(18, 52, 77, 0.03);\n padding: 28px;\n grid-gap: 32px;\n gap: 32px;\n position: relative;\n height: -moz-fit-content;\n height: fit-content;\n transition: opacity 50ms ease-out;\n overflow: auto;\n}\n.freemium-survey-components.card-survey-style .hide-question-container {\n opacity: 0;\n}\n.freemium-survey-components.card-survey-style .question-text {\n font-size: 1rem;\n font-weight: 600;\n line-height: 1.8;\n width: 100%;\n text-align: left;\n color: var(--default-question-text-color);\n color: var(--question-text-color, var(--default-question-text-color));\n}\n.freemium-survey-components.card-survey-style .autofocus-button {\n border: none;\n width: 0;\n height: 0;\n opacity: 0;\n margin-top: -12px;\n margin-left: -12px;\n position: absolute;\n}\n.freemium-survey-components.card-survey-style .fade-enter .question-container {\n opacity: 0;\n transform: translateY(15px);\n}\n.freemium-survey-components.card-survey-style .fade-enter-active .question-container {\n opacity: 1;\n transform: translateY(0);\n}\n.freemium-survey-components.card-survey-style .fade-exit .question-container {\n opacity: 1;\n transform: translateY(0);\n}\n.freemium-survey-components.card-survey-style .fade-exit-active .question-container {\n opacity: 0.05;\n transform: translateY(-15px);\n}\n.freemium-survey-components.card-survey-style .fade-reverse-enter .question-container {\n opacity: 0;\n transform: translateY(-15px);\n}\n.freemium-survey-components.card-survey-style .fade-reverse-enter-active .question-container {\n opacity: 1;\n transform: translateY(0);\n}\n.freemium-survey-components.card-survey-style .fade-reverse-exit .question-container {\n opacity: 1;\n transform: translateY(0);\n}\n.freemium-survey-components.card-survey-style .fade-reverse-exit-active .question-container {\n opacity: 0.05;\n transform: translateY(15px);\n}\n.freemium-survey-components.card-survey-style .fade-enter-active .question-container,\n.freemium-survey-components.card-survey-style .fade-exit-active .question-container,\n.freemium-survey-components.card-survey-style .fade-reverse-enter-active .question-container,\n.freemium-survey-components.card-survey-style .fade-reverse-exit-active .question-container {\n transition: opacity 200ms, transform 200ms;\n pointer-events: none;\n}\n.freemium-survey-components.card-survey-style .question-footer {\n display: flex;\n grid-gap: 40px;\n gap: 40px;\n width: 100%;\n align-items: center;\n}\n.freemium-survey-components.card-survey-style .question-footer:empty {\n display: none;\n}\n.freemium-survey-components.card-survey-style .question-footer:only-child {\n margin-left: auto;\n}\n.freemium-survey-components.card-survey-style .action-buttons {\n display: flex;\n grid-gap: 20px;\n gap: 20px;\n flex-direction: row-reverse;\n width: 100%;\n}\n.freemium-survey-components.card-survey-style .action-buttons:empty {\n display: none;\n}\n.freemium-survey-components.card-survey-style .skip-button {\n font-weight: 500;\n color: #3a4b67;\n cursor: pointer;\n background: transparent;\n border: none;\n min-width: 40px;\n padding: 8px 16px;\n border-radius: 4px;\n color: var(--default-secondary-button-text-color);\n color: var(--secondary-button-text-color, var(--default-secondary-button-text-color));\n letter-spacing: 0.05rem;\n line-height: 1.5;\n border: 1px solid transparent;\n transform: translateY(0px);\n transition: transform ease 0.2s;\n}\n.freemium-survey-components.card-survey-style .skip-button:hover {\n background-color: #f3f3f3;\n transform: translateY(-4px);\n}\n.freemium-survey-components.card-survey-style .next-button {\n color: var(--default-button-text-color);\n color: var(--button-text-color, var(--default-button-text-color));\n}\n.freemium-survey-components.card-survey-style .submit {\n max-width: 700px;\n text-align: left;\n background: transparent;\n box-shadow: none;\n color: var(--default-button-text-color);\n color: var(--button-text-color, var(--default-button-text-color));\n}\n.freemium-survey-components.card-survey-style .thankyou {\n display: flex;\n align-items: center;\n justify-content: center;\n grid-gap: 20px;\n gap: 20px;\n min-height: 180px;\n}\n.freemium-survey-components.card-survey-style .thankyou .heading {\n font-weight: 500;\n font-size: 22px;\n}\n.freemium-survey-components.card-survey-style .thankyou .text {\n white-space: pre-wrap;\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1.6;\n color: #475867;\n width: 75%;\n}\n.freemium-survey-components.card-survey-style .thankyou .redirection-text {\n color: #929292;\n margin-bottom: 12px;\n font-weight: 300;\n}\n.freemium-survey-components.card-survey-style .thankyou .link {\n width: 100%;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: #666;\n font-weight: 500;\n text-decoration: underline;\n}\n.freemium-survey-components.card-survey-style .responsive-text-field {\n width: 100%;\n}\n.freemium-survey-components.card-survey-style .responsive-text-field .textarea-container {\n display: none;\n}\n.freemium-survey-components.card-survey-style .message-container:empty {\n display: none;\n}\n.freemium-survey-components.card-survey-style footer.survey-footer {\n display: flex;\n padding: 12px 0;\n border-top: 1px solid #eaeaea;\n justify-content: center;\n align-items: center;\n background-color: #fff;\n position: fixed;\n bottom: 0;\n left: 0;\n font-weight: 400;\n width: 100%;\n box-shadow: 0px 0px 15px rgba(18, 52, 77, 0.05);\n}\n.freemium-survey-components.card-survey-style footer.survey-footer .survey-footer-text {\n display: flex;\n color: #4C4C4C;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n padding-top: 8px;\n margin: 0 20px;\n white-space: nowrap;\n}\n.freemium-survey-components.card-survey-style footer.survey-footer .survey-progress {\n border-right: 1px solid #CFD7DF;\n padding: 0px 20px;\n font-size: 14px;\n line-height: 20px;\n font-weight: 400;\n color: #4C4C4C;\n white-space: nowrap;\n}\n.freemium-survey-components.card-survey-style footer.survey-footer .survey-progress .progress-completion {\n font-weight: 700;\n}\n.freemium-survey-components.card-survey-style footer.survey-footer .progressbar-container {\n position: static;\n margin-top: 3px;\n background-color: #D9D9D9;\n border-radius: 4px;\n}\n\n@media (max-width: 550px) {\n div.freemium-survey-components.card-survey-style .responsive-text-field .input-container {\n display: none;\n }\n div.freemium-survey-components.card-survey-style .responsive-text-field .textarea-container {\n display: flex;\n }\n div.freemium-survey-components.card-survey-style .responsive-text-field .textarea-container textarea {\n min-height: 80px;\n height: 80px;\n }\n div.freemium-survey-components.card-survey-style .question-footer {\n flex-direction: column-reverse;\n grid-gap: 0;\n gap: 0;\n }\n div.freemium-survey-components.card-survey-style .question-footer > *:first-child {\n margin-bottom: 0px;\n }\n div.freemium-survey-components.card-survey-style .question-footer > * {\n margin-bottom: 20px;\n }\n div.freemium-survey-components.card-survey-style .freemium-survey-step-navigation {\n width: 100%;\n }\n div.freemium-survey-components.card-survey-style .freemium-survey-step-navigation .navigation-button {\n width: 50%;\n }\n div.freemium-survey-components.card-survey-style .action-buttons {\n flex-direction: column;\n width: 100%;\n }\n div.freemium-survey-components.card-survey-style .action-buttons button {\n max-width: unset;\n }\n div.freemium-survey-components.card-survey-style .action-button {\n max-width: unset;\n width: 100%;\n }\n div.freemium-survey-components.card-survey-style .thankyou .text {\n width: auto;\n }\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .responsive-text-field .input-container {\n display: none;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .responsive-text-field .textarea-container {\n display: flex;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .responsive-text-field .textarea-container textarea {\n min-height: 80px;\n height: 80px;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .question-footer {\n flex-direction: column-reverse;\n grid-gap: 0;\n gap: 0;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .question-footer > *:first-child {\n margin-bottom: 0px;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .question-footer > * {\n margin-bottom: 20px;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .freemium-survey-step-navigation {\n width: 100%;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .freemium-survey-step-navigation .navigation-button {\n width: 50%;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .action-buttons {\n flex-direction: column;\n width: 100%;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .action-buttons button {\n max-width: unset;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .action-button {\n max-width: unset;\n width: 100%;\n}\ndiv.freemium-survey-components.card-survey-style.mobile-preview .thankyou .text {\n width: auto;\n}\n\n.freemium-survey-components.mobile-preview .thankyou .text {\n width: unset;\n}");const z=({questions:e})=>e.find((e=>e.type_info?.pivot_question))??e.find((e=>"RANGE"===e.type_info?.question_type))??e[0],j=(e,n)=>{const t=e.type_info?.scale_properties?.range;return Math.min(t?.[t?.length-1].max??10,Math.max(t?.[0].min??0,n))},L=({blocks:e,activeIndexOfBlocks:n,renderedBlocks:t,activeIndexOfRenderedBlocks:r})=>{const o=t[r];return(n===e.length-1||1===o.question.dependent_blocks?.length&&"TY"===o.question.dependent_blocks?.[0].next_block)&&r===t.length-1},V=({pivotQn:e,pivotQnAnswer:n,block:t,questions:r})=>{if(t?.category?.length){const o=e?.type_info?.scale_properties?.range?.find((e=>(e.min??0)<=n&&n<=(e.max??10))),a=t?.category.find((e=>e.id===o?.id)),s=a?.question_name;return r.find((e=>e.name===s))}return r.find((e=>e.name===t?.question_name))},H=({activeBlock:e,blocks:n,activeIndexOfBlocks:t,answers:r})=>{if((({activeBlock:e,answers:n})=>{const t=n.formValues[e.question.name];return b(t)})({activeBlock:e,answers:r}))return t+1;if(1===e.question.dependent_blocks?.length){const t=e.question.dependent_blocks?.[0];return"TY"===t?.next_block?1/0:n.findIndex((e=>e.name===t?.next_block))}return(e.question.dependent_blocks?.length??0)>1?(({activeBlock:e,answers:n,blocks:t,activeIndexOfBlocks:r})=>{const o=e.question.dependent_blocks||[],a=n.formValues[e.question.name];let s;return s="RANGE"===e.question.type_info?.question_type?o.find((e=>a>=(e?.values?.[0]??0)&&a<=(e?.values?.[1]??10)))?.next_block:1===o.length?o[0].next_block:o.find((e=>e.values?.includes(String(a))))?.next_block,s?"TY"===s?1/0:t.findIndex((e=>e.name===s)):r+1})({activeBlock:e,answers:r,blocks:n,activeIndexOfBlocks:t}):t+1},F=({question:e,answers:n})=>!b(n.formValues[e.name])&&o.includes(e?.type_info?.question_type||"")&&!("DROPDOWN"===e.type_info?.question_type&&n.formValues[e.name]===a)||n.commitDirtyValue,P=({blocks:e,activeIndexOfBlocks:n,renderedBlocks:t,activeIndexOfRenderedBlocks:r,answers:o})=>{const{question:a}=t[r];return!!a&&(!L({blocks:e,activeIndexOfBlocks:n,renderedBlocks:t,activeIndexOfRenderedBlocks:r})&&F({question:a,answers:o}))},D=(e,{answers:n,blocks:t,activeIndexOfBlocks:r,renderedBlocks:s,activeIndexOfRenderedBlocks:i,surveyStyle:c,widget:l,blockIndex:u})=>{const m=L({blocks:t,activeIndexOfBlocks:r,renderedBlocks:s,activeIndexOfRenderedBlocks:i}),d=s[i],p=d.question;switch(e){case"next":return(!o.includes(p.type_info?.question_type??"")||"DROPDOWN"===p.type_info?.question_type&&n.formValues[p.name]===a)&&!m&&u===i;case"skip":return!d.required&&!m&&u===i;case"submit":return m;case"navigation":return(l||"card"===c)&&!(0===i&&1===s.length);case"clear-selection":return null!=u&&u!==i&&"DROPDOWN"===s[u].question.type_info?.question_type&&n.formValues[s[u].question.name]}},Y=(e,n)=>("MULTI_SELECT"===e.question.type_info?.question_type&&n.formValues[e.question.name]?.includes(a)||"DROPDOWN"===e.question.type_info?.question_type&&n.formValues[e.question.name]===a)&&b(n.others[e.question.name]),Q=(e,{answers:n,blocks:t,activeIndexOfBlocks:r,renderedBlocks:o,activeIndexOfRenderedBlocks:a,isSubmitting:s})=>{const i=o[a];switch(e){case"next":return b(n?.formValues[i.question.name])||i.question.type_info?.meta?.othersRequired&&Y(i,n);case"submit":return(i.required||i.question.type_info?.pivot_question)&&b(n?.formValues[i.question.name])||i.question?.type_info?.meta?.othersRequired&&Y(i,n)||s;case"navigation-prev":return 0==a;case"navigation-next":return a>=o.length-1;default:return!1}},X=({renderedBlocks:e,activeIndexOfRenderedBlocks:n,answers:t})=>{const r=G({renderedBlocks:e,activeIndexOfRenderedBlocks:n}).reduce(((e,n)=>(void 0!==t.formValues[n.question.name]&&(e[n.question.name]=t.formValues[n.question.name]),e)),{});return{...t,formValues:r}},G=({renderedBlocks:e,activeIndexOfRenderedBlocks:n})=>e.slice(0,n+1),J=(e,n,t)=>{const{others_meta:r={},...o}=t||{};if(b(o))return{renderedBlocks:[],activeIndexOfRenderedBlocks:0,pivot:null,answers:{formValues:{},others:{},commitDirtyValue:!1},isInitialTransition:!0};const a=e.filter((e=>e.question_names?.some((e=>null!=t?.[e])))).map((e=>{const r=e.question_names?.find((e=>null!=t?.[e])),o=n.find((e=>e.name===r));return{...e,question:o}})),s=Math.max(a.length-1,0),i=e?.findIndex((e=>e.name===a[s].name)),c=z({questions:n}),l={question:c,answer:o[c.name]},u=(({blocks:e,answers:n,questions:t,activeBlock:r,activeIndexOfBlocks:o,pivot:a})=>{const s=H({activeBlock:r,blocks:e,activeIndexOfBlocks:o,answers:n}),i=V({pivotQn:a?.question,pivotQnAnswer:a?.answer,block:e?.[s],questions:t});return{...e?.[s],question:i}})({activeBlock:a[s],blocks:e,answers:{formValues:o||{},others:r||{},commitDirtyValue:!0},pivot:l,questions:n,activeIndexOfBlocks:i});return{renderedBlocks:[...a,u],activeIndexOfRenderedBlocks:s+1,pivot:{question:c,answer:o?.[c.name]},isInitialTransition:!1,answers:{others:r,formValues:o,commitDirtyValue:!1}}};var U="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var W,K,$,ee=(W=function(e,n){var t="__lodash_hash_undefined__",r=9007199254740991,o="[object Arguments]",a="[object Boolean]",s="[object Date]",i="[object Function]",c="[object GeneratorFunction]",l="[object Map]",u="[object Number]",m="[object Object]",d="[object Promise]",p="[object RegExp]",g="[object Set]",v="[object String]",f="[object Symbol]",h="[object WeakMap]",y="[object ArrayBuffer]",x="[object DataView]",b="[object Float32Array]",w="[object Float64Array]",k="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",q="[object Uint8Array]",B="[object Uint8ClampedArray]",_="[object Uint16Array]",O="[object Uint32Array]",N=/\w*$/,S=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,I={};I[o]=I["[object Array]"]=I[y]=I[x]=I[a]=I[s]=I[b]=I[w]=I[k]=I[E]=I[C]=I[l]=I[u]=I[m]=I[p]=I[g]=I[v]=I[f]=I[q]=I[B]=I[_]=I[O]=!0,I["[object Error]"]=I[i]=I[h]=!1;var M="object"==typeof U&&U&&U.Object===Object&&U,T="object"==typeof self&&self&&self.Object===Object&&self,R=M||T||Function("return this")(),Z=n&&!n.nodeType&&n,z=Z&&e&&!e.nodeType&&e,j=z&&z.exports===Z;function L(e,n){return e.set(n[0],n[1]),e}function V(e,n){return e.add(n),e}function H(e,n,t,r){var o=-1,a=e?e.length:0;for(r&&a&&(t=e[++o]);++o<a;)t=n(t,e[o],o,e);return t}function F(e){var n=!1;if(null!=e&&"function"!=typeof e.toString)try{n=!!(e+"")}catch(e){}return n}function P(e){var n=-1,t=Array(e.size);return e.forEach((function(e,r){t[++n]=[r,e]})),t}function D(e,n){return function(t){return e(n(t))}}function Y(e){var n=-1,t=Array(e.size);return e.forEach((function(e){t[++n]=e})),t}var Q,X=Array.prototype,G=Function.prototype,J=Object.prototype,W=R["__core-js_shared__"],K=(Q=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"",$=G.toString,ee=J.hasOwnProperty,ne=J.toString,te=RegExp("^"+$.call(ee).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=j?R.Buffer:void 0,oe=R.Symbol,ae=R.Uint8Array,se=D(Object.getPrototypeOf,Object),ie=Object.create,ce=J.propertyIsEnumerable,le=X.splice,ue=Object.getOwnPropertySymbols,me=re?re.isBuffer:void 0,de=D(Object.keys,Object),pe=je(R,"DataView"),ge=je(R,"Map"),ve=je(R,"Promise"),fe=je(R,"Set"),he=je(R,"WeakMap"),ye=je(Object,"create"),xe=Pe(pe),be=Pe(ge),we=Pe(ve),ke=Pe(fe),Ee=Pe(he),Ce=oe?oe.prototype:void 0,qe=Ce?Ce.valueOf:void 0;function Be(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function _e(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Oe(e){var n=-1,t=e?e.length:0;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}function Ne(e){this.__data__=new _e(e)}function Se(e,n){var t=Ye(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Qe(e)}(e)&&ee.call(e,"callee")&&(!ce.call(e,"callee")||ne.call(e)==o)}(e)?function(e,n){for(var t=-1,r=Array(e);++t<e;)r[t]=n(t);return r}(e.length,String):[],r=t.length,a=!!r;for(var s in e)!n&&!ee.call(e,s)||a&&("length"==s||He(s,r))||t.push(s);return t}function Ae(e,n,t){var r=e[n];ee.call(e,n)&&De(r,t)&&(void 0!==t||n in e)||(e[n]=t)}function Ie(e,n){for(var t=e.length;t--;)if(De(e[t][0],n))return t;return-1}function Me(e,n,t,r,d,h,S){var A;if(r&&(A=h?r(e,d,h,S):r(e)),void 0!==A)return A;if(!Je(e))return e;var M=Ye(e);if(M){if(A=function(e){var n=e.length,t=e.constructor(n);return n&&"string"==typeof e[0]&&ee.call(e,"index")&&(t.index=e.index,t.input=e.input),t}(e),!n)return function(e,n){var t=-1,r=e.length;for(n||(n=Array(r));++t<r;)n[t]=e[t];return n}(e,A)}else{var T=Ve(e),R=T==i||T==c;if(Xe(e))return function(e,n){if(n)return e.slice();var t=new e.constructor(e.length);return e.copy(t),t}(e,n);if(T==m||T==o||R&&!h){if(F(e))return h?e:{};if(A=function(e){return"function"!=typeof e.constructor||Fe(e)?{}:Je(n=se(e))?ie(n):{};var n}(R?{}:e),!n)return function(e,n){return Ze(e,Le(e),n)}(e,function(e,n){return e&&Ze(n,Ue(n),e)}(A,e))}else{if(!I[T])return h?e:{};A=function(e,n,t,r){var o,i=e.constructor;switch(n){case y:return Re(e);case a:case s:return new i(+e);case x:return function(e,n){var t=n?Re(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}(e,r);case b:case w:case k:case E:case C:case q:case B:case _:case O:return function(e,n){var t=n?Re(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}(e,r);case l:return function(e,n,t){var r=n?t(P(e),!0):P(e);return H(r,L,new e.constructor)}(e,r,t);case u:case v:return new i(e);case p:return function(e){var n=new e.constructor(e.source,N.exec(e));return n.lastIndex=e.lastIndex,n}(e);case g:return function(e,n,t){var r=n?t(Y(e),!0):Y(e);return H(r,V,new e.constructor)}(e,r,t);case f:return o=e,qe?Object(qe.call(o)):{}}}(e,T,Me,n)}}S||(S=new Ne);var Z=S.get(e);if(Z)return Z;if(S.set(e,A),!M)var z=t?function(e){return function(e,n,t){var r=n(e);return Ye(e)?r:function(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t];return e}(r,t(e))}(e,Ue,Le)}(e):Ue(e);return function(e,n){for(var t=-1,r=e?e.length:0;++t<r&&!1!==n(e[t],t,e););}(z||e,(function(o,a){z&&(o=e[a=o]),Ae(A,a,Me(o,n,t,r,a,e,S))})),A}function Te(e){return!(!Je(e)||(n=e,K&&K in n))&&(Ge(e)||F(e)?te:S).test(Pe(e));var n}function Re(e){var n=new e.constructor(e.byteLength);return new ae(n).set(new ae(e)),n}function Ze(e,n,t,r){t||(t={});for(var o=-1,a=n.length;++o<a;){var s=n[o],i=r?r(t[s],e[s],s,t,e):void 0;Ae(t,s,void 0===i?e[s]:i)}return t}function ze(e,n){var t,r,o=e.__data__;return("string"==(r=typeof(t=n))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?o["string"==typeof n?"string":"hash"]:o.map}function je(e,n){var t=function(e,n){return null==e?void 0:e[n]}(e,n);return Te(t)?t:void 0}Be.prototype.clear=function(){this.__data__=ye?ye(null):{}},Be.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Be.prototype.get=function(e){var n=this.__data__;if(ye){var r=n[e];return r===t?void 0:r}return ee.call(n,e)?n[e]:void 0},Be.prototype.has=function(e){var n=this.__data__;return ye?void 0!==n[e]:ee.call(n,e)},Be.prototype.set=function(e,n){return this.__data__[e]=ye&&void 0===n?t:n,this},_e.prototype.clear=function(){this.__data__=[]},_e.prototype.delete=function(e){var n=this.__data__,t=Ie(n,e);return!(t<0||(t==n.length-1?n.pop():le.call(n,t,1),0))},_e.prototype.get=function(e){var n=this.__data__,t=Ie(n,e);return t<0?void 0:n[t][1]},_e.prototype.has=function(e){return Ie(this.__data__,e)>-1},_e.prototype.set=function(e,n){var t=this.__data__,r=Ie(t,e);return r<0?t.push([e,n]):t[r][1]=n,this},Oe.prototype.clear=function(){this.__data__={hash:new Be,map:new(ge||_e),string:new Be}},Oe.prototype.delete=function(e){return ze(this,e).delete(e)},Oe.prototype.get=function(e){return ze(this,e).get(e)},Oe.prototype.has=function(e){return ze(this,e).has(e)},Oe.prototype.set=function(e,n){return ze(this,e).set(e,n),this},Ne.prototype.clear=function(){this.__data__=new _e},Ne.prototype.delete=function(e){return this.__data__.delete(e)},Ne.prototype.get=function(e){return this.__data__.get(e)},Ne.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.set=function(e,n){var t=this.__data__;if(t instanceof _e){var r=t.__data__;if(!ge||r.length<199)return r.push([e,n]),this;t=this.__data__=new Oe(r)}return t.set(e,n),this};var Le=ue?D(ue,Object):function(){return[]},Ve=function(e){return ne.call(e)};function He(e,n){return!!(n=null==n?r:n)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<n}function Fe(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||J)}function Pe(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function De(e,n){return e===n||e!=e&&n!=n}(pe&&Ve(new pe(new ArrayBuffer(1)))!=x||ge&&Ve(new ge)!=l||ve&&Ve(ve.resolve())!=d||fe&&Ve(new fe)!=g||he&&Ve(new he)!=h)&&(Ve=function(e){var n=ne.call(e),t=n==m?e.constructor:void 0,r=t?Pe(t):void 0;if(r)switch(r){case xe:return x;case be:return l;case we:return d;case ke:return g;case Ee:return h}return n});var Ye=Array.isArray;function Qe(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Ge(e)}var Xe=me||function(){return!1};function Ge(e){var n=Je(e)?ne.call(e):"";return n==i||n==c}function Je(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}function Ue(e){return Qe(e)?Se(e):function(e){if(!Fe(e))return de(e);var n=[];for(var t in Object(e))ee.call(e,t)&&"constructor"!=t&&n.push(t);return n}(e)}e.exports=function(e){return Me(e,!0,!0)}},W($={path:K,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&$.path)}},$.exports),$.exports);const ne=(e,t)=>{const{filteredSurvey:r,filteredAnswers:o}=n.useMemo((()=>{const n=ee(e),r=(n.question_details?.questions||[]).filter((e=>!e.type_info?.meta?.is_deleted)),{others_meta:o,...a}=t||{others_meta:{}},s=r.reduce(((e,n)=>null!==a[n.name]&&void 0!==a[n.name]?{...e,[n.name]:a[n.name]}:e),{}),i=(e?.blocks||[]).map((e=>({...e,question_names:e.question_name?[e.question_name]:e.category?.map((e=>e.question_name))})));return{filteredSurvey:{...n,question_details:{questions:r},blocks:i},filteredAnswers:{...s,others_meta:o}}}),[]);return{survey:r,answers:o}},te=e=>{const r=e.survey.question_details?.questions||[],[o]=n.useState(e.survey.blocks?.filter((e=>"TY"!==e.name))),a=n.useMemo((()=>J(o,r,e.answers)),[o,r,e.answers]),[s,i]=n.useState(a.answers),[c,l]=n.useState(a.renderedBlocks),[u,m]=n.useState(a.activeIndexOfRenderedBlocks),[d,p]=n.useState(!1),[g,v]=n.useState(!1),f=n.useRef(a.pivot),h=n.useRef(!1),y=n.useRef(),x=n.useRef(a.isInitialTransition),w=c[u],k=t.useMemo((()=>c.length>0?o?.findIndex((e=>e.name===c[u].name)):0),[u]);n.useEffect((()=>{const{others_meta:n,...t}=e.answers||{};if(!o||!o.length||!b(t))return;f.current={...f.current,question:z({questions:r})},null!=e.initialPivotAnswer&&(f.current={...f.current,answer:j(f.current.question,e.initialPivotAnswer)},i({...s,formValues:{[f.current.question.name]:f.current.answer}}));const a=V({pivotQn:f.current.question,pivotQnAnswer:f.current.answer,block:o[0],questions:r});l([{...o[0],question:a}])}),[o,e.initialPivotAnswer]),n.useEffect((()=>{c.length&&(c.length>1&&(x.current=!1),m(c.length-1))}),[c]),n.useEffect((()=>{if(!b(s.formValues)&&o&&P({blocks:o,activeIndexOfBlocks:k,renderedBlocks:c,activeIndexOfRenderedBlocks:u,answers:s})){const n=()=>{p(!1);const e=H({activeBlock:w,blocks:o,activeIndexOfBlocks:k,answers:s});if(e===1/0)return void setTimeout((()=>{q("COMPLETE"),v(!0)}));setTimeout((()=>{q()}));const n=V({pivotQn:f.current?.question,pivotQnAnswer:f.current?.answer,block:o?.[e],questions:r}),t=G({renderedBlocks:c,activeIndexOfRenderedBlocks:u});l([...t,{...o?.[e],question:n}])};null!=e.initialPivotAnswer&&1==c.length?y.current?(clearTimeout(y.current),y.current=null,n()):y.current=setTimeout((()=>{n()}),1500):n()}}),[s,o]),n.useEffect((()=>{!b(s.formValues)&&h.current&&(d?C():E(),h.current=!1)}),[d]);const E=()=>{d?(h.current=!0,p(!1)):m(u+1)},C=()=>{d?m(u-1):(h.current=!0,p(!0))},q=(n="PARTIAL")=>{let t=()=>{};"COMPLETE"===n&&(t=()=>{v(!0)}),e.onSubmit({...s.formValues,others_meta:s.others},t,n)};return{blocks:o,questions:r,renderedBlocks:c,activeBlock:w,activeIndexOfBlocks:k,activeIndexOfRenderedBlocks:u,isSurveyCompleted:g,isReverseAnimation:d,isNavigating:h.current,pivot:f.current,answers:s,isInitialTransition:x.current,navigateToNextBlock:E,navigateToPreviousBlock:C,saveFormValues:(e,n,t=!1)=>{e.question.name===f.current?.question.name&&f.current&&(f.current={...f.current,answer:n});let r=s;(t||F({question:e.question,answers:s}))&&(r=X({renderedBlocks:c,activeIndexOfRenderedBlocks:u,answers:s})),i({...r,formValues:{...r.formValues,...null!=n&&{[e.question.name]:n}},commitDirtyValue:t})},saveOthersValue:(e,n)=>{if(null===n){const n={...s.others};delete n[e],i({...s,commitDirtyValue:!1,others:n})}else i({...s,commitDirtyValue:!1,others:{...s.others,[e]:n}})},skipBlock:()=>{p(!1);const e=w.question;if(delete s.formValues[e.name],delete s.others[e.name],u!==c.length-1){const e=X({renderedBlocks:c,activeIndexOfRenderedBlocks:u,answers:s}),n=G({renderedBlocks:c,activeIndexOfRenderedBlocks:u});l(n),i({...e,commitDirtyValue:!0})}else i({...s,commitDirtyValue:!0})},onSubmitHandler:q}};g(".freemium-survey-components .prompt-question {\n padding: 20px 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n grid-gap: 20px;\n gap: 20px;\n width: 100%;\n}\n.freemium-survey-components .prompt-question .question-text {\n text-align: center !important;\n}\n.freemium-survey-components .prompt-question .actions {\n display: flex;\n align-items: center;\n grid-gap: 20px;\n gap: 20px;\n}\n.freemium-survey-components .prompt-question .action {\n cursor: pointer;\n border-radius: 5px;\n border: none;\n padding: 12px;\n font-weight: 500;\n font-size: 14px;\n min-width: 120px;\n display: flex;\n align-items: center;\n justify-content: center;\n grid-gap: 8px;\n gap: 8px;\n background-color: #f2f2f2;\n transform: translateY(0px);\n transition: transform ease 0.2s;\n}\n.freemium-survey-components .prompt-question .action:hover {\n transform: translateY(-4px);\n background-color: var(--default-brand-color);\n background-color: var(--brand-color, var(--default-brand-color));\n color: #fff;\n}\n.freemium-survey-components .question-container .prompt-ques-icon {\n margin: 0 auto;\n}\n.freemium-survey-components .question-text.prompt-declined {\n text-align: center !important;\n color: #12344d !important;\n}\n\n.freemium-survey-components.mobile-preview .prompt-question .actions {\n flex-wrap: wrap;\n justify-content: center;\n}");const re=({config:e,onSelect:r,placeholders:o})=>{const[a,s]=n.useState(!1);return a?e.is_declined&&e.declined_message?t.createElement("div",{className:"question-container"},t.createElement("div",{className:"prompt-ques-icon"},t.createElement(u,{name:"declined-prompt-thumb"})),t.createElement("p",{className:"question-text prompt-declined",dangerouslySetInnerHTML:{__html:w(e.declined_message,o)}})):null:t.createElement("div",{className:"prompt-question"},t.createElement("p",{className:"question-text",dangerouslySetInnerHTML:{__html:w(e.text,o)}}),t.createElement("div",{className:"actions"},(e.reverse_order?[...e.choices||[]].reverse():e.choices)?.map((n=>{return t.createElement("button",{className:"action",onClick:()=>{"0"==n.id&&s(!0),r(Number(n.id))}},t.createElement(u,{name:(o=Number(n.id),a=e.type_variant||"THUMBS","THUMBS"===a?["thumbs-down","thumbs-up"][o]:["cross","tick"][o])}),n.value);var o,a}))))},oe=({thankYouQuestion:e,preview:r,placeholders:o,pivotAnswer:a})=>{const{redirectUrl:s,redirectDelay:i}=e.type_info?.meta??{};return n.useEffect((()=>{r||s&&setTimeout((()=>{window.location.href=s??""}),1e3*(i??0)??1e4)}),[]),t.createElement("div",{className:"question-container thankyou"},t.createElement("div",{className:"heading"},"Thank you!"),t.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:w(e.text,o,a)}}),s&&t.createElement("div",{style:{width:"100%"}},t.createElement("div",{className:"redirection-text"},"You will be redirected to the below URL automatically in"," ",i," seconds.",t.createElement("br",null)),t.createElement("a",{className:"link",href:s},s)))},ae=({activeIndexOfBlocks:e,activeIndexOfRenderedBlocks:n,renderedBlocks:r,blocks:o,answers:a,navigateToPreviousBlock:s,navigateToNextBlock:i})=>t.createElement("div",{className:"freemium-survey-step-navigation","data-navigation-element":"1"},t.createElement("button",{disabled:Q("navigation-prev",{blocks:o,answers:a,renderedBlocks:r,activeIndexOfBlocks:e,activeIndexOfRenderedBlocks:n}),className:"navigation-button",onClick:s,title:"Go to previous question"},t.createElement(u,{name:"arrow-previous"})),t.createElement("button",{className:"navigation-button",disabled:Q("navigation-next",{blocks:o,answers:a,renderedBlocks:r,activeIndexOfBlocks:e,activeIndexOfRenderedBlocks:n}),title:"Go to next question",onClick:i},t.createElement(u,{name:"arrow-next"}))),se=e=>{const{widget:r,surveyStyle:o,answers:a,renderedBlocks:s,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,saveFormValues:u,onSubmitHandler:m,skipBlock:d,navigateToNextBlock:p,navigateToPreviousBlock:g,isInitialTransition:v}=e,[f,h]=n.useState(!1),y={answers:a,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,surveyStyle:o,widget:r,blockIndex:l},x={answers:a,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,isSubmitting:f};return v&&!L({blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s})?null:t.createElement("div",{className:"question-footer"},D("navigation",y)&&t.createElement(ae,{answers:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,blocks:i,navigateToNextBlock:p,navigateToPreviousBlock:g}),t.createElement("div",{className:"action-buttons"},D("next",y)&&t.createElement(R,{onClick:()=>{u(s[l],null,!0)},disabled:Q("next",x),className:"next-button"},"Next"),D("skip",y)&&t.createElement("button",{className:"skip-button",onClick:d,"aria-label":"skip question"},"Skip"),D("submit",y)&&t.createElement("div",{className:"submit"},t.createElement(R,{disabled:Q("submit",x),onClick:()=>{h(!0),m("COMPLETE")}},f?"Submitting":"Submit survey"))))},ie=e=>{const{blocks:o,renderedBlocks:a,activeBlock:s,activeIndexOfBlocks:i,activeIndexOfRenderedBlocks:c,isSurveyCompleted:l,isReverseAnimation:u,saveFormValues:d,saveOthersValue:p,skipBlock:g,onSubmitHandler:v,navigateToNextBlock:f,navigateToPreviousBlock:h,answers:y,questions:x,pivot:k,isInitialTransition:E}=te(e),C=b(y.formValues)&&e.survey.prompt_settings?.is_enabled&&e.preview,[q,B]=n.useState(C);if(!s||!s.question)return null;const _=l?o.length:i+(l?1:0),O=l?100:(_>0?100/o.length:0)*_;return t.createElement("div",{className:`freemium-survey-components ${e.mobilePreview?"mobile-preview":""} ${e.surveyStyle}-survey-style`,id:"freemium-survey"},t.createElement(r.SwitchTransition,{mode:"out-in"},t.createElement(r.CSSTransition,{key:c+String(l)+String(q),addEndListener:(e,n)=>{e.addEventListener("transitionend",n,!1)},classNames:u?"fade-reverse":"fade"},t.createElement("div",{className:"questions"},l?t.createElement(oe,{thankYouQuestion:V({pivotQn:k?.question,pivotQnAnswer:k?.answer,block:e.survey.blocks?.find((e=>"TY"===e.name)),questions:x}),preview:!!e.preview,placeholders:e.placeholders,pivotAnswer:k?.answer}):t.createElement("div",{id:`${s.question.name}`,className:"question-container","data-test-question-name":s.question.name},q&&e.survey.prompt_settings?t.createElement(re,{config:e.survey.prompt_settings,onSelect:n=>{e.onAnsweringPrompt?.(n),1===n&&B(!1)},placeholders:e.placeholders}):t.createElement(t.Fragment,null,t.createElement("div",{className:"question-text",dangerouslySetInnerHTML:{__html:w(s?.question.text,e.placeholders,k?.answer)},"aria-label":`question-${c}`,role:"heading","aria-level":1}),t.createElement("div",{onTransitionEndCapture:e=>e.stopPropagation(),style:{width:"100%"}},t.createElement(Z,{question:s.question,isFinalQn:L({blocks:o,activeIndexOfBlocks:i,renderedBlocks:a,activeIndexOfRenderedBlocks:c}),formValues:y.formValues,othersMeta:y.others,autoFocusDelay:"standard"===e.surveyStyle?350:0,saveOthersValue:p,onChangeHandler:e=>{d(s,e)}})),t.createElement(se,{widget:!1,surveyStyle:e.surveyStyle,answers:y,renderedBlocks:a,blocks:o,activeIndexOfRenderedBlocks:c,activeIndexOfBlocks:i,saveFormValues:d,skipBlock:g,onSubmitHandler:v,navigateToPreviousBlock:h,navigateToNextBlock:f,isInitialTransition:E})))))),t.createElement("footer",{className:"survey-footer"},t.createElement("div",{className:"survey-progress"},t.createElement(t.Fragment,null,t.createElement("span",{className:"progress-completion"},O.toFixed(),"%  "),"survey completed",t.createElement(M,{totalSteps:o.length,completedSteps:_}))),t.createElement("div",{className:"survey-footer-text"},"Powered by   ",t.createElement("a",{href:"https://www.freshworks.com/?utm_source=survey&utm_medium=survey_public_page",target:"_blank",rel:"noopener noreferrer"},t.createElement(m,null)))))};g(":root {\n --default-brand-color: #264966;\n --default-question-text-color: #3a4b67;\n --default-question-background-color: #fff;\n --default-background-color: #f8f8f8;\n --default-button-text-color: #fff;\n --default-secondary-button-text-color: #000;\n --default-input-placeholder-color: #92a2b1;\n --compact-widget-max-height: 480px;\n --default-widget-max-height: 460px;\n --cozy-widget-max-height: 380px;\n}\n\n.freemium-survey-step-navigation {\n border-radius: 3px;\n border: 1px solid #efefef;\n white-space: nowrap;\n}\n.freemium-survey-step-navigation .navigation-button {\n width: 38px;\n text-align: -webkit-center;\n height: 38px;\n background-color: #fff;\n border: none;\n cursor: pointer;\n border-radius: 0 3px 3px 0;\n}\n.freemium-survey-step-navigation .navigation-button:first-of-type {\n border-right: 1px solid #efefef;\n border-radius: 3px 0 0 3px;\n}\n.freemium-survey-step-navigation .navigation-button:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.freemium-survey-step-navigation .navigation-button:focus {\n position: relative;\n z-index: 1;\n}\n\n.freemium-survey-components.standard-survey-style {\n padding-bottom: 80px;\n}\n.freemium-survey-components.standard-survey-style .question-container {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n text-align: center;\n max-width: 700px;\n margin: 0 auto;\n background: var(--default-question-background-color);\n background: var(--question-background-color, var(--default-question-background-color));\n border-radius: 4px;\n transition: transform 500ms ease 0ms, opacity 800ms ease 0ms;\n box-shadow: 0px 12px 15px rgba(18, 52, 77, 0.03);\n margin-bottom: 28px;\n padding: 28px;\n grid-gap: 28px;\n gap: 28px;\n position: relative;\n height: -moz-fit-content;\n height: fit-content;\n overflow: auto;\n opacity: 1;\n}\n.freemium-survey-components.standard-survey-style .hide-question-container {\n pointer-events: none;\n opacity: 0;\n}\n.freemium-survey-components.standard-survey-style .question-text {\n font-size: 1rem;\n font-weight: 600;\n line-height: 1.8;\n width: 100%;\n text-align: left;\n color: var(--default-question-text-color);\n color: var(--question-text-color, var(--default-question-text-color));\n}\n.freemium-survey-components.standard-survey-style .autofocus-button {\n border: none;\n width: 0;\n height: 0;\n opacity: 0;\n margin-top: -12px;\n margin-left: -12px;\n position: absolute;\n}\n.freemium-survey-components.standard-survey-style .question-footer {\n display: flex;\n justify-content: flex-start;\n grid-gap: 40px;\n gap: 40px;\n width: 100%;\n align-items: center;\n}\n.freemium-survey-components.standard-survey-style .question-footer:empty {\n display: none;\n}\n.freemium-survey-components.standard-survey-style .action-buttons {\n display: flex;\n grid-gap: 20px;\n gap: 20px;\n flex-direction: row-reverse;\n}\n.freemium-survey-components.standard-survey-style .action-buttons:empty {\n display: none;\n}\n.freemium-survey-components.standard-survey-style .sec-button {\n font-weight: 500;\n color: #3a4b67;\n cursor: pointer;\n background: transparent;\n border: none;\n min-width: 40px;\n padding: 8px 16px;\n border-radius: 4px;\n color: var(--default-secondary-button-text-color);\n color: var(--secondary-button-text-color, var(--default-secondary-button-text-color));\n letter-spacing: 0.05rem;\n line-height: 1.5;\n border: 1px solid transparent;\n transform: translateY(0px);\n transition: transform ease 0.2s;\n}\n.freemium-survey-components.standard-survey-style .sec-button:hover {\n background-color: #f3f3f3;\n transform: translateY(-4px);\n}\n.freemium-survey-components.standard-survey-style .next-button {\n color: var(--default-button-text-color);\n color: var(--button-text-color, var(--default-button-text-color));\n}\n.freemium-survey-components.standard-survey-style .submit {\n max-width: 700px;\n margin: 0 auto;\n text-align: left;\n background: transparent;\n box-shadow: none;\n padding-bottom: 40px;\n color: var(--default-button-text-color);\n color: var(--button-text-color, var(--default-button-text-color));\n}\n.freemium-survey-components.standard-survey-style .fade-enter {\n opacity: 0;\n transform: translateY(40px);\n}\n.freemium-survey-components.standard-survey-style .fade-enter-active {\n opacity: 1;\n transform: translateY(0);\n}\n.freemium-survey-components.standard-survey-style .fade-exit {\n opacity: 1;\n transform: translateY(0);\n}\n.freemium-survey-components.standard-survey-style .fade-exit-active {\n opacity: 0;\n transform: translateY(-40px);\n}\n.freemium-survey-components.standard-survey-style .fade-enter,\n.freemium-survey-components.standard-survey-style .fade-enter-active,\n.freemium-survey-components.standard-survey-style .fade-exit,\n.freemium-survey-components.standard-survey-style .fade-exit-active {\n transition: all ease 400ms;\n pointer-events: none;\n}\n.freemium-survey-components.standard-survey-style .thankyou {\n display: flex;\n align-items: center;\n justify-content: center;\n grid-gap: 20px;\n gap: 20px;\n min-height: 180px;\n}\n.freemium-survey-components.standard-survey-style .thankyou .heading {\n font-weight: 500;\n font-size: 22px;\n}\n.freemium-survey-components.standard-survey-style .thankyou .text {\n white-space: pre-wrap;\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1.6;\n color: #475867;\n width: 75%;\n}\n.freemium-survey-components.standard-survey-style .thankyou .redirection-text {\n color: #929292;\n margin-bottom: 12px;\n font-weight: 300;\n}\n.freemium-survey-components.standard-survey-style .thankyou .link {\n width: 100%;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: #666;\n font-weight: 500;\n text-decoration: underline;\n}\n.freemium-survey-components.standard-survey-style .responsive-text-field {\n width: 100%;\n}\n.freemium-survey-components.standard-survey-style .responsive-text-field .textarea-container {\n display: none;\n}\n.freemium-survey-components.standard-survey-style .message-container:empty {\n display: none;\n}\n@media (max-width: 550px) {\n .freemium-survey-components.standard-survey-style .action-buttons {\n flex-direction: column;\n width: 100%;\n }\n .freemium-survey-components.standard-survey-style .action-buttons button {\n max-width: unset;\n }\n .freemium-survey-components.standard-survey-style .action-button {\n max-width: unset;\n width: 100%;\n }\n .freemium-survey-components.standard-survey-style .thankyou .text {\n width: auto;\n }\n}\n.freemium-survey-components.standard-survey-style footer.survey-footer {\n display: flex;\n padding: 12px 0;\n border-top: 1px solid #eaeaea;\n justify-content: center;\n align-items: center;\n background-color: #fff;\n position: fixed;\n bottom: 0;\n left: 0;\n font-weight: 400;\n width: 100%;\n box-shadow: 0px 0px 15px rgba(18, 52, 77, 0.05);\n}\n.freemium-survey-components.standard-survey-style footer.survey-footer .survey-footer-text {\n display: flex;\n color: #4C4C4C;\n font-weight: 400;\n font-size: 14px;\n line-height: 20px;\n padding-top: 8px;\n margin: 0 20px;\n white-space: nowrap;\n}\n.freemium-survey-components.standard-survey-style footer.survey-footer .survey-progress {\n border-right: 1px solid #CFD7DF;\n padding: 0px 20px;\n font-size: 14px;\n line-height: 20px;\n font-weight: 400;\n color: #4C4C4C;\n white-space: nowrap;\n}\n.freemium-survey-components.standard-survey-style footer.survey-footer .survey-progress .progress-completion {\n font-weight: 700;\n}\n.freemium-survey-components.standard-survey-style footer.survey-footer .progressbar-container {\n position: static;\n margin-top: 3px;\n background-color: #D9D9D9;\n border-radius: 4px;\n}\n\n@media (max-width: 550px) {\n .freemium-survey-component .responsive-text-field .input-container {\n display: none;\n }\n .freemium-survey-component .responsive-text-field .textarea-container {\n display: flex;\n }\n .freemium-survey-component .responsive-text-field .textarea-container textarea {\n min-height: 80px;\n height: 80px;\n }\n}\n.freemium-survey-components.mobile-preview .thankyou .text {\n width: unset;\n}");const ce=({thankYouQuestion:e,preview:r,placeholders:o,pivotAnswer:a})=>{const{redirectUrl:s,redirectDelay:i}=e.type_info?.meta??{};return n.useEffect((()=>{r||s&&setTimeout((()=>{window.location.href=s}),1e3*(i??0)??1e4)}),[]),t.createElement("div",{className:"question-container thankyou"},t.createElement("div",{className:"heading"},"Thank you!"),t.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:w(e.text,o,a)}}),s&&t.createElement("div",{style:{width:"100%"}},t.createElement("div",{className:"redirection-text"},"You will be redirected to the below URL automatically in"," ",i," seconds.",t.createElement("br",null)),t.createElement("a",{className:"link",href:s},s)))},le=e=>{const{blockIndex:n,widget:r,surveyStyle:o,answers:a,renderedBlocks:s,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,saveFormValues:u,skipBlock:m,clearRadioSelection:d}=e,p={answers:a,blocks:i,blockIndex:n,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,surveyStyle:o,widget:r},g={answers:a,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s};return(1!==s.length||1===i.length)&&n===l||D("clear-selection",p)?t.createElement("div",{className:"question-footer"},t.createElement("div",{className:"action-buttons"},D("next",p)&&t.createElement(R,{onClick:()=>{u(s[l],null,!0)},disabled:!!Q("next",g),className:"next-button"},"Next"),D("skip",p)&&t.createElement("button",{className:"sec-button",onClick:m,"aria-label":"skip question"},"Skip"),D("clear-selection",p)&&t.createElement("button",{className:"sec-button",onClick:()=>d(n)},"Clear selection"))):null},ue=e=>{const{blocks:o,renderedBlocks:a,activeBlock:s,activeIndexOfBlocks:i,activeIndexOfRenderedBlocks:c,isSurveyCompleted:l,saveFormValues:u,saveOthersValue:d,skipBlock:p,clearRadioSelection:g,onSubmitHandler:v,answers:f,questions:h,pivot:y}=(e=>{const r=e.survey.question_details?.questions||[],[o]=n.useState(e.survey?.blocks?.filter((e=>"TY"!==e.name))),a=n.useMemo((()=>J(o,r,e.answers)),[o,r,e.answers]),[s,i]=n.useState(a.renderedBlocks),[c,l]=n.useState(a.activeIndexOfRenderedBlocks),u=n.useRef(a.pivot),[m,d]=n.useState(a.answers),p=n.useRef(),[g,v]=n.useState(!1),f=n.useRef(null),h=s[c],y=t.useMemo((()=>s.length>0?o?.findIndex((e=>e.name===s[c].name)):0),[c]);n.useEffect((()=>{const{others_meta:n,...t}=e.answers;if(!o||!o.length||!b(t))return;u.current={...u.current,question:z({questions:r})},null!=e.initialPivotAnswer&&(u.current={...u.current,answer:j(u.current.question,e.initialPivotAnswer)},d({...m,formValues:{[u.current.question.name]:u.current.answer}}));const a=V({pivotQn:u.current.question,pivotQnAnswer:u.current.answer,block:o[0],questions:r});i([{...o[0],question:a}])}),[o,e.initialPivotAnswer]),n.useEffect((()=>{s.length&&l(s.length-1),f.current?.scrollIntoView({block:"start",behavior:"smooth"})}),[s]),n.useEffect((()=>{if(!b(m.formValues)&&o&&P({blocks:o,activeIndexOfBlocks:y,renderedBlocks:s,activeIndexOfRenderedBlocks:c,answers:m})){const n=()=>{const e=H({activeBlock:h,blocks:o,activeIndexOfBlocks:y,answers:m});if(e===1/0)return void setTimeout((()=>{x("COMPLETE"),v(!0)}));setTimeout((()=>{x()}));const n=V({pivotQn:u.current?.question,pivotQnAnswer:u.current?.answer,block:o?.[e],questions:r}),t=G({renderedBlocks:s,activeIndexOfRenderedBlocks:c});i([...t,{...o?.[e],question:n}])};null!=e.initialPivotAnswer&&1==s.length?p.current?(clearTimeout(p.current),p.current=null,n()):p.current=setTimeout((()=>{n()}),1500):n()}}),[m,o]);const x=(n="PARTIAL")=>{let t=()=>{};"COMPLETE"===n&&(t=()=>{v(!0)}),e.onSubmit({...m.formValues,others_meta:m.others},t,n)};return{blocks:o,questions:r,renderedBlocks:s,activeBlock:h,activeIndexOfBlocks:y,activeIndexOfRenderedBlocks:c,isSurveyCompleted:g,pivot:u.current,answers:m,saveFormValues:(e,n,t=!1,r=c)=>{e.question.name===u.current?.question.name&&(u.current={...u.current,answer:n});let o=m;(t||F({question:e.question,answers:m}))&&(o=X({renderedBlocks:s,activeIndexOfRenderedBlocks:r,answers:m})),r!==c&&l(r),d({...o,formValues:{...o.formValues,...null!=n&&{[e.question.name]:n}},commitDirtyValue:t})},saveOthersValue:(e,n,t=c)=>{if(t!==c&&l(t),null===n){const n={...m.others};delete n[e],d({...m,commitDirtyValue:!1,others:n})}else d({...m,commitDirtyValue:!1,others:{...m.others,[e]:n}})},skipBlock:()=>{const e=h.question;if(delete m.formValues[e.name],delete m.others[e.name],c!==s.length-1){const e=X({renderedBlocks:s,activeIndexOfRenderedBlocks:c,answers:m}),n=G({renderedBlocks:s,activeIndexOfRenderedBlocks:c});i(n),d({...e,commitDirtyValue:!0})}else d({...m,commitDirtyValue:!0})},clearRadioSelection:e=>{e!==c&&l(e);const n=s[e].question;delete m.formValues[n.name],delete m.others[n.name];const t=X({renderedBlocks:s,activeIndexOfRenderedBlocks:e,answers:m}),r=G({renderedBlocks:s,activeIndexOfRenderedBlocks:e});i(r),d({...t,commitDirtyValue:!1})},onSubmitHandler:x}})(e),x=n.useRef(null),[k,E]=n.useState(!1);n.useEffect((()=>{x.current?.scrollIntoView({block:"start",behavior:"smooth"})}),[a]);const C=b(f.formValues)&&e.survey.prompt_settings?.is_enabled&&e.preview,[q,B]=n.useState(C),_=l?o.length:i+(l?1:0),O=l?100:(_>0?100/o.length:0)*_;return s&&s.question?t.createElement("div",{className:`freemium-survey-components ${e.mobilePreview?"mobile-preview":""} standard-survey-style`,id:"freemium-survey"},t.createElement(r.SwitchTransition,{mode:"out-in"},t.createElement(r.CSSTransition,{key:String(l)+String(q),addEndListener:(e,n)=>{e.addEventListener("transitionend",n,!1)},classNames:"fade"},t.createElement("div",null,q&&e.survey.prompt_settings?t.createElement("div",{className:"questions"},t.createElement("div",{className:"question-container"},t.createElement(re,{config:e.survey.prompt_settings,onSelect:n=>{e.onAnsweringPrompt?.(n),1===n&&B(!1)},placeholders:e.placeholders}))):t.createElement(t.Fragment,null,l?t.createElement(ce,{thankYouQuestion:V({pivotQn:y?.question,pivotQnAnswer:y?.answer,block:e.survey?.blocks?.find((e=>"TY"===e.name)),questions:h}),preview:!!e.preview,placeholders:e.placeholders,pivotAnswer:y?.answer}):t.createElement(t.Fragment,null,t.createElement("div",{onTransitionEndCapture:e=>e.stopPropagation(),className:"questions"},a.map(((n,r)=>t.createElement("div",{key:n.question.name,ref:x,className:"question-container"},t.createElement("div",{className:"question-text "+(0===r?"nps":""),dangerouslySetInnerHTML:{__html:w(n.question.text,e.placeholders,y?.answer)},"aria-label":`question-${r}`,role:"heading","aria-level":1}),t.createElement(Z,{question:n.question,isFinalQn:L({blocks:o,activeIndexOfBlocks:i,renderedBlocks:a,activeIndexOfRenderedBlocks:c}),formValues:f.formValues,othersMeta:f.others,autoFocusDelay:"standard"===e.surveyStyle?350:20,saveOthersValue:(e,n)=>{d(e,n,r)},onChangeHandler:e=>{u(n,e,!1,r)}}),t.createElement(le,{widget:!1,surveyStyle:e.surveyStyle,answers:f,renderedBlocks:a,blocks:o,blockIndex:r,activeIndexOfRenderedBlocks:c,activeIndexOfBlocks:i,saveFormValues:u,skipBlock:p,clearRadioSelection:g,onSubmitHandler:v})))),D("submit",{answers:f,blocks:o,activeIndexOfBlocks:i,activeIndexOfRenderedBlocks:c,renderedBlocks:a,surveyStyle:e.surveyStyle,widget:!1})&&t.createElement("div",{className:"submit"},t.createElement(R,{disabled:!!Q("submit",{answers:f,blocks:o,activeIndexOfBlocks:i,activeIndexOfRenderedBlocks:c,renderedBlocks:a,isSubmitting:k}),onClick:()=>{E(!0),v("COMPLETE")}},k?"Submitting":"Submit survey")))))))),t.createElement("footer",{className:"survey-footer"},t.createElement("div",{className:"survey-progress"},t.createElement(t.Fragment,null,t.createElement("span",{className:"progress-completion"},O.toFixed(),"%  "),"survey completed",t.createElement(M,{totalSteps:o.length,completedSteps:_}))),t.createElement("div",{className:"survey-footer-text"},"Powered by   ",t.createElement("a",{href:"https://www.freshworks.com/?utm_source=survey&utm_medium=survey_public_page",target:"_blank",rel:"noopener noreferrer"},t.createElement(m,null))))):null};g(":root {\n --default-brand-color: #264966;\n --default-question-text-color: #3a4b67;\n --default-question-background-color: #fff;\n --default-background-color: #f8f8f8;\n --default-button-text-color: #fff;\n --default-secondary-button-text-color: #000;\n --default-input-placeholder-color: #92a2b1;\n}\n\n.freemium-survey-components.widget-survey-components {\n overflow: hidden;\n}\n.freemium-survey-components.widget-survey-components * {\n scrollbar-color: rgba(216, 216, 216, 0.5) transparent !important;\n}\n.freemium-survey-components.widget-survey-components * ::-webkit-scrollbar {\n height: auto;\n height: initial;\n width: 6px;\n}\n.freemium-survey-components.widget-survey-components * ::-webkit-scrollbar-track {\n background: transparent !important;\n}\n.freemium-survey-components.widget-survey-components * ::-webkit-scrollbar-thumb {\n border-radius: 5px;\n background: rgba(216, 216, 216, 0.5) !important;\n}\n.freemium-survey-components.widget-survey-components p {\n margin: 0;\n}\n.freemium-survey-components.widget-survey-components .questions {\n min-width: 100%;\n max-width: 100%;\n background: var(--default-question-background-color);\n background: var(--question-background-color, var(--default-question-background-color));\n position: relative;\n display: flex;\n justify-content: row;\n align-items: flex-end;\n height: 100%;\n transition: height 200ms ease;\n}\n.freemium-survey-components.widget-survey-components .question-container {\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n text-align: center;\n max-height: 100%;\n min-width: 100%;\n max-width: 700px;\n margin: 0 auto;\n box-shadow: 0px 12px 15px rgba(18, 52, 77, 0.03);\n padding: 28px 0;\n padding-top: 0;\n grid-gap: 28px;\n gap: 28px;\n overflow: auto;\n}\n.freemium-survey-components.widget-survey-components .prompt-container {\n align-items: center;\n justify-content: center;\n padding: 0;\n}\n.freemium-survey-components.widget-survey-components .question-wrapper {\n width: 100%;\n flex-grow: 1;\n padding: 4px 28px;\n overflow: auto;\n}\n.freemium-survey-components.widget-survey-components .prompt-declined {\n text-align: center !important;\n}\n.freemium-survey-components.widget-survey-components .hide-question-container {\n opacity: 0;\n}\n.freemium-survey-components.widget-survey-components .question-text {\n font-size: 1rem;\n font-weight: 600;\n line-height: 1.8;\n width: 100%;\n text-align: left;\n padding: 0 28px;\n color: var(--default-question-text-color);\n color: var(--question-text-color, var(--default-question-text-color));\n}\n.freemium-survey-components.widget-survey-components .question-text p {\n all: inherit;\n padding: 0;\n}\n.freemium-survey-components.widget-survey-components .range-container .footer {\n display: none;\n}\n.freemium-survey-components.widget-survey-components .autofocus-button {\n border: none;\n width: 0;\n height: 0;\n opacity: 0;\n margin-top: -12px;\n margin-left: -12px;\n position: absolute;\n}\n.freemium-survey-components.widget-survey-components .fade-enter {\n opacity: 1;\n transform: translateX(80px);\n position: absolute;\n}\n.freemium-survey-components.widget-survey-components .fade-enter-active {\n position: absolute;\n opacity: 1;\n transform: translateX(0);\n}\n.freemium-survey-components.widget-survey-components .fade-enter-done {\n position: absolute;\n}\n.freemium-survey-components.widget-survey-components .fade-exit {\n opacity: 0.05;\n pointer-events: none;\n transform: translateX(0);\n}\n.freemium-survey-components.widget-survey-components .fade-exit-active {\n pointer-events: none;\n opacity: 0;\n transform: translateX(-80px);\n}\n.freemium-survey-components.widget-survey-components .fade-reverse-enter {\n opacity: 0;\n position: absolute;\n transform: translateX(-80px);\n}\n.freemium-survey-components.widget-survey-components .fade-reverse-enter-active {\n opacity: 1;\n position: absolute;\n transform: translateX(0);\n}\n.freemium-survey-components.widget-survey-components .fade-reverse-exit {\n opacity: 0.05;\n transform: translateX(0);\n}\n.freemium-survey-components.widget-survey-components .fade-reverse-exit-active {\n opacity: 0;\n transform: translateX(80px);\n}\n.freemium-survey-components.widget-survey-components .fade-enter-active,\n.freemium-survey-components.widget-survey-components .fade-reverse-enter-active,\n.freemium-survey-components.widget-survey-components .fade-reverse-exit-active,\n.freemium-survey-components.widget-survey-components .fade-exit-active {\n transition: opacity 200ms, transform 200ms;\n}\n.freemium-survey-components.widget-survey-components .question-footer {\n margin: 0px auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: sticky;\n padding: 0 28px;\n bottom: -28px;\n background: var(--default-question-background-color);\n background: var(--question-background-color, var(--default-question-background-color));\n grid-gap: 40px;\n gap: 40px;\n width: 100%;\n}\n.freemium-survey-components.widget-survey-components .question-footer:empty {\n display: none;\n}\n.freemium-survey-components.widget-survey-components .question-footer:only-child {\n margin-left: auto;\n}\n.freemium-survey-components.widget-survey-components .freemium-survey-step-navigation {\n white-space: nowrap;\n border-radius: 3px;\n border: 1px solid #efefef;\n}\n.freemium-survey-components.widget-survey-components .freemium-survey-step-navigation .navigation-button {\n width: 38px;\n text-align: -webkit-center;\n height: 40px;\n background-color: #fff;\n border: none;\n cursor: pointer;\n border-radius: 0 3px 3px 0;\n}\n.freemium-survey-components.widget-survey-components .freemium-survey-step-navigation .navigation-button:first-of-type {\n border-right: 1px solid #efefef;\n border-radius: 3px 0 0 3px;\n}\n.freemium-survey-components.widget-survey-components .freemium-survey-step-navigation .navigation-button:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n.freemium-survey-components.widget-survey-components .freemium-survey-step-navigation .navigation-button:focus {\n position: relative;\n z-index: 1;\n}\n.freemium-survey-components.widget-survey-components .action-buttons {\n display: flex;\n grid-gap: 20px;\n gap: 20px;\n width: 100%;\n}\n.freemium-survey-components.widget-survey-components .action-buttons:empty {\n display: none;\n}\n.freemium-survey-components.widget-survey-components .skip-button {\n font-weight: 500;\n cursor: pointer;\n color: #3a4b67;\n background: transparent;\n border: none;\n min-width: 40px;\n padding: 8px 16px;\n border-radius: 4px;\n color: var(--default-secondary-button-text-color);\n color: var(--secondary-button-text-color, var(--default-secondary-button-text-color));\n letter-spacing: 0.05rem;\n line-height: 1.5;\n border: 1px solid transparent;\n transform: translateY(0px);\n transition: transform ease 0.2s;\n}\n.freemium-survey-components.widget-survey-components .skip-button:hover {\n background-color: #f3f3f3;\n transform: translateY(-4px);\n}\n.freemium-survey-components.widget-survey-components .next-button,\n.freemium-survey-components.widget-survey-components .submit {\n color: var(--default-button-text-color);\n color: var(--button-text-color, var(--default-button-text-color));\n}\n.freemium-survey-components.widget-survey-components .submit {\n margin-left: auto;\n}\n.freemium-survey-components.widget-survey-components .thankyou {\n display: flex;\n align-items: center;\n justify-content: center;\n grid-gap: 20px;\n gap: 20px;\n min-height: 180px;\n}\n.freemium-survey-components.widget-survey-components .thankyou .heading {\n font-weight: 500;\n font-size: 22px;\n}\n.freemium-survey-components.widget-survey-components .thankyou .text {\n white-space: pre-wrap;\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1.6;\n color: #475867;\n width: 75%;\n}\n.freemium-survey-components.widget-survey-components .thankyou .redirection-text {\n color: #929292;\n margin-bottom: 12px;\n font-weight: 300;\n}\n.freemium-survey-components.widget-survey-components .thankyou .link {\n width: 100%;\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: #666;\n font-weight: 500;\n text-decoration: underline;\n}\n.freemium-survey-components.widget-survey-components .responsive-text-field .input-container {\n display: none;\n}\n.freemium-survey-components.widget-survey-components .responsive-text-field .textarea-container {\n display: flex;\n}\n.freemium-survey-components.widget-survey-components .responsive-text-field .textarea-container textarea {\n min-height: 80px;\n height: 80px;\n}\n.freemium-survey-components.widget-survey-components .message-container:empty {\n display: none;\n}\n\n.freemium-survey-components.widget-survey-components.compact-style .range-question-text {\n text-align: center;\n}\n.freemium-survey-components.widget-survey-components.compact-style .question-container {\n grid-gap: 20px;\n gap: 20px;\n max-width: 100%;\n}\n.freemium-survey-components.widget-survey-components.compact-style .question-footer {\n flex-direction: column;\n grid-gap: 20px;\n gap: 20px;\n}\n.freemium-survey-components.widget-survey-components.compact-style .question-footer .compact-footer-layout {\n display: flex;\n justify-content: space-between;\n width: 100%;\n align-items: center;\n}\n.freemium-survey-components.widget-survey-components.compact-style .question-footer .compact-footer-layout:empty {\n display: none;\n}\n.freemium-survey-components.widget-survey-components.compact-style .question-footer .action-buttons {\n grid-gap: 32px;\n gap: 32px;\n}\n.freemium-survey-components.widget-survey-components.compact-style .question-footer .submit,\n.freemium-survey-components.widget-survey-components.compact-style .question-footer .action-button {\n max-width: unset;\n width: 100%;\n}\n.freemium-survey-components.widget-survey-components.compact-style .range-container .footer {\n padding-top: 12px;\n}\n.freemium-survey-components.widget-survey-components.compact-style .thankyou .text {\n width: 86%;\n}\n\n.freemium-survey-components.widget-survey-components.default-style .question-footer {\n justify-content: space-between;\n}\n.freemium-survey-components.widget-survey-components.default-style .range-container .footer {\n padding-top: 12px;\n}\n.freemium-survey-components.widget-survey-components.default-style .range-container .choices {\n flex-wrap: unset;\n grid-gap: 12px;\n gap: 12px;\n}\n.freemium-survey-components.widget-survey-components.default-style .radio-group {\n flex-direction: column;\n flex-wrap: nowrap;\n}\n.freemium-survey-components.widget-survey-components.default-style .radio-group .radio-label {\n padding: 12px 16px;\n min-width: 160px;\n font-size: 0.9rem;\n color: #3a4b67;\n}\n.freemium-survey-components.widget-survey-components.default-style .checkbox-group .checkbox-label {\n padding: 12px 16px;\n min-width: 160px;\n font-size: 0.9rem;\n}\n.freemium-survey-components.widget-survey-components.default-style textarea {\n min-height: 84px;\n}\n.freemium-survey-components.widget-survey-components.default-style .end-max-length {\n font-size: 0.8rem;\n font-weight: 300;\n padding: 4px;\n}\n\n.freemium-survey-components.widget-survey-components.cozy-style {\n max-width: 1000px;\n min-width: 600px;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .question-text {\n font-size: 1rem;\n text-align: left;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .range-question-text {\n text-align: center;\n width: 70%;\n margin: 0 auto;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .question-footer {\n justify-content: space-between;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .range-container .widget {\n display: flex;\n justify-content: center;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .range-container .button-container {\n width: 60%;\n min-width: 600px;\n margin: 0 auto;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .range-container .footer {\n padding-top: 8px;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .action-button {\n line-height: 1.2;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .radio-group {\n flex-direction: row;\n flex-wrap: wrap;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .radio-group .radio-label {\n padding: 12px 16px;\n min-width: 160px;\n font-size: 0.9rem;\n color: #3a4b67;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .checkbox-group {\n flex-direction: row;\n flex-wrap: wrap;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .checkbox-group .checkbox-label {\n padding: 12px 16px;\n min-width: 160px;\n font-size: 0.9rem;\n}\n.freemium-survey-components.widget-survey-components.cozy-style textarea {\n min-height: 60px;\n}\n.freemium-survey-components.widget-survey-components.cozy-style .end-max-length {\n font-size: 0.8rem;\n font-weight: 300;\n padding: 4px;\n}\n\n.freemium-survey-components.mobile-preview .thankyou .text {\n width: unset;\n}");const me=({thankYouQuestion:e,placeholders:n,pivotAnswer:r})=>t.createElement(t.Fragment,null,t.createElement("div",{className:"heading"},"Thank you!"),t.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:w(e.text,n,r)}})),de=({activeIndexOfBlocks:e,activeIndexOfRenderedBlocks:n,renderedBlocks:r,blocks:o,answers:a,navigateToPreviousBlock:s,navigateToNextBlock:i})=>t.createElement("div",{className:"freemium-survey-step-navigation","data-navigation-element":"1"},t.createElement("button",{disabled:!!Q("navigation-prev",{blocks:o,renderedBlocks:r,activeIndexOfBlocks:e,activeIndexOfRenderedBlocks:n,answers:a}),className:"navigation-button",onClick:s,title:"go to previous question"},t.createElement(u,{name:"arrow-previous"})),t.createElement("button",{className:"navigation-button",disabled:!!Q("navigation-next",{blocks:o,renderedBlocks:r,activeIndexOfBlocks:e,activeIndexOfRenderedBlocks:n,answers:a}),onClick:i,title:"go to next question"},t.createElement(u,{name:"arrow-next"}))),pe=e=>{const{widget:r,widgetStyle:o,answers:a,renderedBlocks:s,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,saveFormValues:u,onSubmitHandler:m,skipBlock:d,navigateToNextBlock:p,navigateToPreviousBlock:g}=e,[v,f]=n.useState(!1),h={answers:a,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,widget:r,blockIndex:l},y={answers:a,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,isSubmitting:v},x="compact"===o&&D("navigation",h)&&D("skip",h);return 1!=s.length||0!==l||L({blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s})?t.createElement("div",{className:"question-footer"},x?t.createElement(t.Fragment,null,D("next",h)&&t.createElement(R,{onClick:()=>{u(s[l],null,!0)},disabled:!!Q("next",y),className:"next-button"},"Next"),t.createElement("div",{className:"compact-footer-layout"},t.createElement(de,{answers:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,blocks:i,navigateToNextBlock:p,navigateToPreviousBlock:g}),t.createElement("button",{className:"skip-button",onClick:d,"aria-label":"skip question"},"Skip"))):t.createElement("div",{className:"action-buttons"},D("navigation",h)&&t.createElement("div",{style:{marginRight:"auto"}},t.createElement(de,{answers:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,blocks:i,navigateToNextBlock:p,navigateToPreviousBlock:g})),D("skip",h)&&t.createElement("button",{className:"skip-button",onClick:d,"aria-label":"skip question"},"Skip"),D("next",h)&&t.createElement(R,{onClick:()=>{u(s[l],null,!0)},disabled:!!Q("next",y),className:"next-button"},"Next"),D("submit",h)&&t.createElement("div",{className:"submit"},t.createElement(R,{disabled:!!Q("submit",y),onClick:()=>{f(!0),m("COMPLETE")}},v?"Submitting":"Submit survey")))):null},ge=e=>{const{blocks:o,renderedBlocks:a,activeBlock:s,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,isSurveyCompleted:u,isReverseAnimation:m,saveFormValues:d,saveOthersValue:p,skipBlock:g,onSubmitHandler:v,navigateToNextBlock:f,navigateToPreviousBlock:h,answers:y,questions:x,pivot:k}=te(e),[E,C]=n.useState(null),q=n.useRef(0),B=b(y.formValues)&&e.survey.prompt_settings?.is_enabled,[_,O]=n.useState(B),N=n.useRef(B?-1:l);if(n.useMemo((()=>{(()=>{if(E){E.style.minHeight="unset",E.style.maxHeight="unset",E.style.height="min-content",E.style.position="static";const n=Math.min(E?.scrollHeight+2,i[e.widgetStyle]);E.style.height=n+"px",E.style.minHeight=n+"px",q.current=n}})()}),[E]),n.useEffect((()=>{e.setCurrentSurveyState?.({question:a[l]?.question,npsScore:k?.answer})}),[l,k?.answer]),n.useEffect((()=>{l!==N.current&&(N.current=-1)}),[l]),!s||!s?.question)return null;e.widgetHeaderQuerySelector&&document.querySelector(e.widgetHeaderQuerySelector);const S=u?o.length:c+(u?1:0),A=u?100:(S>0?100/o.length:0)*S;return t.createElement("div",{className:`freemium-survey-components widget-survey-components\n ${e.widgetStyle}-style `,id:"freemium-survey"},u||_?null:t.createElement("div",{className:"widget-progressbar"},t.createElement("div",{className:"progress-completion"},A.toFixed(),"%"),t.createElement(M,{totalSteps:o.length,completedSteps:c+(u?1:0),widget:!0})),t.createElement("div",{className:"questions",style:{height:q.current,...B&&_||N.current===l?{transition:"none"}:{}}},t.createElement(r.TransitionGroup,{component:null},t.createElement(r.CSSTransition,{key:l+String(u)+String(_),unmountOnExit:!0,addEndListener:(e,n)=>{e.addEventListener("transitionend",n,!1)},classNames:m?"fade-reverse":"fade"},t.createElement("div",{ref:e=>e?C(e):null,id:`${s.question.name}`,className:`question-container ${u?"thankyou":""} ${_?"prompt-container":""}`,"data-test-question-name":s.question.name},_&&e.survey.prompt_settings?t.createElement(re,{config:e.survey.prompt_settings,onSelect:n=>{e.onAnsweringPrompt(n),1===n&&O(!1)},placeholders:e.placeholders}):t.createElement(t.Fragment,null,u?t.createElement(me,{thankYouQuestion:V({pivotQn:k?.question,pivotQnAnswer:k?.answer,block:e.survey.blocks?.find((e=>"TY"===e.name)),questions:x}),placeholders:e.placeholders,pivotAnswer:k?.answer}):t.createElement(t.Fragment,null,t.createElement("div",{className:"question-text "+("RANGE"===s?.question?.type_info?.question_type?"range-question-text":""),dangerouslySetInnerHTML:{__html:w(s?.question.text,e.placeholders,k?.answer)},"aria-label":`question-${l}`,role:"heading","aria-level":1}),t.createElement("div",{className:"question-wrapper",onTransitionEndCapture:e=>e.stopPropagation()},t.createElement(Z,{question:s.question,isFinalQn:L({blocks:o,activeIndexOfBlocks:c,renderedBlocks:a,activeIndexOfRenderedBlocks:l}),formValues:y.formValues,othersMeta:y.others,autoFocusDelay:0,saveOthersValue:p,onChangeHandler:e=>{d(s,e)}})),t.createElement(pe,{widget:!0,widgetStyle:e.widgetStyle,surveyStyle:"standard",answers:y,renderedBlocks:a,blocks:o,activeIndexOfRenderedBlocks:l,activeIndexOfBlocks:c,saveFormValues:d,skipBlock:g,onSubmitHandler:v,navigateToPreviousBlock:h,navigateToNextBlock:f}))))))))};g('#freshworks-survey-widget {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;\n --container-width: 350px;\n --widget-header-height: 36px;\n --widget-footer-height: 38px;\n}\n#freshworks-survey-widget * {\n box-sizing: border-box;\n}\n#freshworks-survey-widget input,\n#freshworks-survey-widget select,\n#freshworks-survey-widget textarea,\n#freshworks-survey-widget button {\n font-family: inherit;\n}\n@keyframes mountWidget {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n#freshworks-survey-widget div.widget-survey-components {\n border: none;\n}\n#freshworks-survey-widget .freemium-survey-components {\n width: 100%;\n height: 100%;\n min-height: inherit;\n}\n#freshworks-survey-widget .default-container-style {\n right: calc(50% - var(--container-width) / 2);\n}\n#freshworks-survey-widget .default-container-style .choices.TEXT {\n flex-wrap: wrap !important;\n grid-gap: 18px !important;\n gap: 18px !important;\n}\n#freshworks-survey-widget .default-container-style .choices.EMOJI, #freshworks-survey-widget .default-container-style .choices.STAR {\n grid-gap: 6px;\n gap: 6px;\n}\n#freshworks-survey-widget .default-container-style .choices.EMOJI .scale-5, #freshworks-survey-widget .default-container-style .choices.STAR .scale-5 {\n min-width: 78px;\n}\n#freshworks-survey-widget .default-container-style .choices.EMOJI .scale-7, #freshworks-survey-widget .default-container-style .choices.STAR .scale-7 {\n min-width: 70px;\n}\n#freshworks-survey-widget .compact-container-style {\n right: 40px;\n}\n#freshworks-survey-widget .compact-container-style .widget-footer {\n padding: 8px 16px;\n}\n#freshworks-survey-widget .compact-container-style .header-content.minimized {\n padding-left: 16px;\n}\n#freshworks-survey-widget .compact-container-style .prompt-question .actions {\n flex-wrap: wrap;\n justify-content: center;\n grid-gap: 12px;\n gap: 12px;\n max-width: 80%;\n display: inline-flex;\n}\n#freshworks-survey-widget .cozy-container-style {\n max-width: 1000px;\n min-width: 800px;\n left: 50%;\n transform: translate(-50%, 0);\n}\n#freshworks-survey-widget .cozy-container-style .choices.TEXT {\n grid-gap: 6px !important;\n gap: 6px !important;\n}\n#freshworks-survey-widget .cozy-container-style .choices.EMOJI, #freshworks-survey-widget .cozy-container-style .choices.STAR {\n grid-gap: 6px;\n gap: 6px;\n}\n#freshworks-survey-widget .cozy-container-style .choices.EMOJI .scale-5, #freshworks-survey-widget .cozy-container-style .choices.STAR .scale-5 {\n min-width: 88px;\n}\n#freshworks-survey-widget .cozy-container-style .choices.EMOJI .scale-7, #freshworks-survey-widget .cozy-container-style .choices.STAR .scale-7 {\n min-width: 80px;\n}\n#freshworks-survey-widget .surveyserv-widget-container {\n position: fixed;\n bottom: 0;\n border-radius: 4px 4px 0 0;\n z-index: 2147483647;\n display: flex;\n flex-direction: column;\n background-color: #fff;\n background-color: var(--question-background-color, #fff);\n width: var(--container-width);\n box-shadow: 0px 7px 13px rgba(18, 52, 77, 0.19);\n transition: opacity 0.25s ease, height var(--height-transition-duration) ease;\n animation: mountWidget 0.5s ease;\n height: auto;\n}\n#freshworks-survey-widget .widget-header {\n height: var(--widget-header-height);\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-direction: row-reverse;\n grid-gap: 8px;\n gap: 8px;\n background-color: #fff;\n background-color: var(--question-background-color, #fff);\n border-radius: inherit;\n position: relative;\n}\n#freshworks-survey-widget .widget-header .icons {\n height: 100%;\n display: flex;\n padding-top: 2px;\n padding-right: 2px;\n}\n#freshworks-survey-widget .widget-header .icon {\n cursor: pointer;\n height: 100%;\n width: 48px;\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n background-color: transparent;\n border: none;\n}\n#freshworks-survey-widget .widget-header .icon:hover .icon-tooltip {\n display: block;\n animation: mountWidget 0.4s ease;\n opacity: 1;\n}\n#freshworks-survey-widget .widget-header .icon:hover .icon-tooltip:hover {\n display: none;\n}\n#freshworks-survey-widget .widget-header .minimize-btn:hover {\n background-color: #f5f5f5;\n border-radius: 4px;\n}\n#freshworks-survey-widget .widget-header .icon-tooltip {\n background: rgba(18, 52, 77, 0.8901960784);\n color: #fff;\n letter-spacing: 0.5px;\n padding: 4px 8px;\n border-radius: 4px;\n font-weight: 500;\n font-size: 0.9rem;\n position: absolute;\n right: 48px;\n top: 12px;\n white-space: nowrap;\n z-index: 1;\n transition: opacity ease 0.2s;\n display: none;\n opacity: 0;\n}\n#freshworks-survey-widget .widget-header.minimized {\n min-height: var(--widget-header-height);\n width: 100%;\n flex-direction: row;\n}\n#freshworks-survey-widget .header-content.minimized {\n opacity: 0;\n text-overflow: ellipsis;\n width: calc(100% - 72px);\n padding-left: 28px;\n overflow: hidden;\n white-space: nowrap;\n animation: mountWidget 0.8s ease forwards;\n animation-delay: 0.3s;\n font-weight: 500;\n line-height: 1.8;\n text-align: left;\n color: var(--default-question-text-color);\n color: var(--question-text-color, var(--default-question-text-color));\n}\n#freshworks-survey-widget .header-content.minimized p {\n all: inherit !important;\n width: 100% !important;\n padding: 0 !important;\n margin: 0 !important;\n}\n#freshworks-survey-widget .widget-main {\n opacity: 1;\n flex-grow: 1;\n transition: opacity 0.25s ease, height var(--height-transition-duration) ease;\n padding-top: 4px;\n}\n#freshworks-survey-widget .widget-main.minimized {\n opacity: 0;\n height: 0;\n border-radius: 3px 3px 0 0;\n}\n#freshworks-survey-widget .widget-footer {\n height: var(--widget-footer-height);\n font-size: 12px;\n display: flex;\n padding: 8px 28px;\n justify-content: space-between;\n align-items: center;\n color: rgba(18, 52, 77, 0.831372549);\n background-color: rgba(187, 187, 187, 0.1);\n letter-spacing: 0.2px;\n}\n#freshworks-survey-widget .widget-footer .fw-link {\n display: flex;\n align-items: center;\n grid-gap: 6px;\n gap: 6px;\n}\n#freshworks-survey-widget .widget-footer .emoji {\n position: relative;\n top: -1px;\n left: -2px;\n}\n#freshworks-survey-widget .widget-footer a {\n color: inherit;\n text-decoration: none;\n box-sizing: border-box;\n border-bottom: 1px solid transparent;\n}\n#freshworks-survey-widget .widget-footer a:hover {\n border-bottom: 1px solid;\n}\n#freshworks-survey-widget .widget-footer .footer-text {\n display: flex;\n align-items: center;\n line-height: 20px;\n}\n#freshworks-survey-widget .widget-footer .footer-text svg {\n width: 76px;\n height: 20px;\n margin-top: 2px;\n}\n#freshworks-survey-widget .widget-progressbar {\n position: absolute;\n top: 9px;\n left: 18px;\n font-size: 12px;\n line-height: 20px;\n width: 120px;\n font-weight: 600;\n display: flex;\n align-items: center;\n}\n#freshworks-survey-widget .widget-progressbar .progressbar-container {\n position: static;\n width: 60px;\n height: 3px;\n background-color: #EBEFF3;\n border-radius: 10px;\n}\n#freshworks-survey-widget .widget-progressbar .progress-completion {\n height: 20px;\n margin-right: 6px;\n}\n#freshworks-survey-widget .title,\n#freshworks-survey-widget .description {\n text-align: center;\n}\n#freshworks-survey-widget .description {\n color: #666;\n line-height: 1.2;\n}\n#freshworks-survey-widget .close-widget {\n position: absolute;\n z-index: 10;\n background-color: #fff;\n flex-direction: column;\n display: flex;\n top: 40px;\n right: 12px;\n box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);\n border-radius: 2px;\n padding: 4px;\n}\n#freshworks-survey-widget .close-widget button {\n cursor: pointer;\n border: none;\n background-color: transparent;\n padding: 8px 12px;\n border-radius: 2px;\n font-size: 14px;\n}\n#freshworks-survey-widget .close-widget button:hover {\n background-color: #f3f3f3;\n}\n#freshworks-survey-widget .close-widget.top {\n top: -72px;\n}');const ve=({survey:e,preview:r,placeholders:o,onSubmit:a,onDismiss:s,onClose:i,surveyType:l,unsubscribeUrl:d,isSurveyCompleted:p,children:g=null,answers:v,onAnsweringPrompt:f})=>{const h=e.question_details?.questions||[],[y,x]=n.useState(!1),[E,C]=n.useState(!1),[q,B]=n.useState(0),{ui_theme:_}=e,[O,N]=n.useState(null),[S,A]=n.useState(null),I=z({questions:h}),M=()=>{x(!0),setTimeout((()=>{i?.()}),300)},T=n.useRef(null);return t.createElement("div",{className:`surveyserv-widget-container ${l}-container-style ${E?"minimized":""}`,style:{opacity:y?0:1,"--container-width":`${c[l]}`,"--height-transition-duration":"600ms",...k(_||{})}},g,t.createElement("header",{id:"surveyserv-widget-header",className:"widget-header "+(E?"minimized":"")},E&&t.createElement("span",{className:"header-content minimized",dangerouslySetInnerHTML:{__html:w((e.prompt_settings?.is_enabled?e.prompt_settings.text:S?.question?.text)??I?.text,{...o,"{{nps.rating}}":String(S?.npsScore??"")})}}),t.createElement("div",{className:"icons"},!p&&t.createElement("button",{onClick:()=>{E?(C(!E),setTimeout((()=>{B(0)}),700)):(B(O?.clientHeight??0),setTimeout((()=>{C(!E)}),0))},className:"icon minimize-btn",title:E?"Maximize widget":"Minimize widget"},E?t.createElement(u,{name:"widget-maximize"}):t.createElement(u,{name:"widget-minimize"})),t.createElement("button",{ref:T,onClick:()=>{p||s(),M()},title:"Dismiss widget",className:"icon minimize-btn"},t.createElement(u,{name:"widget-close"})))),t.createElement("main",{ref:e=>N(e),className:("widget-main "+(E?"minimized":"")).trim(),style:{height:E?0:q||"auto"}},t.createElement(ge,{answers:v,widgetStyle:l,survey:e,placeholders:o,onSubmit:a,setCurrentSurveyState:A,widgetHeaderQuerySelector:E?void 0:"#surveyserv-widget-header",onAnsweringPrompt:n=>{f?.(n),0==n&&b(e.prompt_settings?.declined_message)&&M()}})),t.createElement("footer",{className:"widget-footer"},d&&!E&&t.createElement("a",{href:d,target:"_blank",rel:"noopener noreferrer",onClick:e=>{r&&e.preventDefault(),e.stopPropagation(),M()}},"Unsubscribe"),t.createElement("div",{className:"footer-text"},"Powered by  ",t.createElement("a",{className:"fw-link",href:"https://www.freshworks.com/?utm_source=survey&utm_medium=survey_public_page",target:"_blank",rel:"noopener noreferrer"},t.createElement(m,null)))))};g('.whatsapp-container {\n --message-margin: 40px;\n --message-border: 6px;\n --message-bg: #fff;\n --message-color: #0096de;\n --message-disabled-color: #aaa;\n --answers-bg: #d3ffc8;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n font-size: 14px;\n position: relative;\n width: 340px;\n height: 574px;\n background-image: url("https://microfrontend.prestaging.sta91ng-surveyserv.com/survey/whatsapp-bg.svg");\n background-repeat: no-repeat;\n background-size: contain;\n}\n.whatsapp-container.instagram {\n background-image: url("https://microfrontend.prestaging.sta91ng-surveyserv.com/survey/instagram-bg.svg");\n}\n.whatsapp-container.instagram .scroll-wrapper {\n position: relative;\n}\n.whatsapp-container.instagram .question-text-container {\n --message-bg: #f5f7f9;\n}\n.whatsapp-container.instagram .choices {\n display: none;\n flex-direction: row;\n position: absolute;\n bottom: 0;\n}\n.whatsapp-container.instagram .question-container {\n background: #f5f7f9;\n padding: 2px;\n}\n.whatsapp-container.instagram .question-container .options-popup {\n display: flex;\n overflow: auto;\n flex-direction: row;\n padding: 5px 2px 2px;\n box-shadow: none;\n border-top: 1px solid #e8e8e8;\n border-radius: 0;\n left: 10px;\n}\n.whatsapp-container.instagram .question-container .options-popup footer,\n.whatsapp-container.instagram .question-container .options-popup header {\n display: none;\n}\n.whatsapp-container.instagram .question-container .options-popup main {\n display: flex;\n}\n.whatsapp-container.instagram .question-container .options-popup main .option-row {\n background: #e8e8e8;\n border-radius: 50px;\n margin: 5px;\n padding: 5px 10px;\n}\n.whatsapp-container.instagram .question-container .options-popup main .option-row button {\n display: flex;\n}\n.whatsapp-container.instagram .question-container .choices-button.choice {\n font-weight: 700;\n font-size: 13.4838px;\n line-height: 16px;\n letter-spacing: -0.03em;\n color: #333333;\n border: none;\n width: auto;\n padding: 8px;\n border-radius: 10px;\n margin: 5px 10px 10px;\n}\n.whatsapp-container.instagram .question-container .choices-button.choice svg {\n display: none;\n}\n.whatsapp-container.instagram .question-container.active .choices {\n display: flex;\n}\n.whatsapp-container.instagram .choice {\n border: 1px solid #0584fe;\n border-radius: 50px;\n color: #0584fe;\n}\n.whatsapp-container.instagram .choices::before {\n content: "";\n display: block;\n width: 93%;\n position: absolute;\n top: -10px;\n border-top: 1px solid #e8e8e8;\n}\n.whatsapp-container.instagram .textarea-container textarea {\n background: #e8e8e8;\n border-radius: 18px;\n}\n.whatsapp-container .scroll-wrapper {\n margin-top: 80px;\n margin-left: 18px;\n margin-right: 20px;\n flex-grow: 1;\n padding: 8px;\n display: flex;\n flex-direction: column;\n align-items: baseline;\n grid-gap: 12px;\n gap: 12px;\n overflow: scroll;\n}\n.whatsapp-container .question-text {\n font-size: 14px;\n line-height: 18px;\n padding: 12px;\n background-color: var(--message-bg);\n border-radius: var(--message-border);\n}\n.whatsapp-container .question-container {\n margin-right: var(--message-margin);\n grid-gap: 2px;\n gap: 2px;\n display: flex;\n flex-direction: column;\n pointer-events: none;\n}\n.whatsapp-container .question-container.active {\n pointer-events: initial;\n}\n.whatsapp-container .question-container.active .choice {\n color: var(--message-color);\n}\n.whatsapp-container .question-container.active .choice button {\n color: var(--message-color);\n}\n.whatsapp-container .question-container.active .choice svg {\n fill: var(--message-color);\n}\n.whatsapp-container .answers-container {\n width: 100%;\n display: flex;\n justify-content: end;\n}\n.whatsapp-container .answers {\n background: var(--answers-bg);\n margin-left: var(--message-margin);\n border-radius: 6px;\n padding: 12px;\n width: -moz-fit-content;\n width: fit-content;\n min-width: 80px;\n}\n.whatsapp-container .answers:empty {\n display: none;\n}\n.whatsapp-container .options-popup {\n position: absolute;\n z-index: 1;\n border-radius: 12px 12px 30px 30px;\n background-color: #fff;\n box-shadow: 0px -10px 10px rgba(0, 0, 0, 0.06);\n padding: 12px 8px;\n bottom: 15px;\n left: 18px;\n right: 22px;\n transform: translateY(80px);\n transition: all linear 0.3s;\n opacity: 0;\n}\n.whatsapp-container .fade-enter-active {\n transform: translateY(0px);\n opacity: 1;\n}\n.whatsapp-container .fade-enter-done {\n transform: translateY(0px);\n opacity: 1;\n}\n.whatsapp-container .fade-exit-active {\n opacity: 0;\n transform: translateY(80px);\n}\n.whatsapp-container .fade-exit-done {\n opacity: 0;\n transform: translateY(80px);\n}\n.whatsapp-container .option-row {\n padding-bottom: 16px;\n}\n.whatsapp-container .option-row svg:not(:last-child) {\n margin-right: 8px;\n}\n.whatsapp-container header {\n text-align: center;\n display: flex;\n align-items: center;\n padding-bottom: 20px;\n position: relative;\n}\n.whatsapp-container main {\n padding: 0 8px;\n}\n.whatsapp-container .close {\n background: transparent;\n border: none;\n width: 32px;\n height: 32px;\n position: absolute;\n}\n.whatsapp-container .choices-button {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n grid-gap: 12px;\n gap: 12px;\n}\n.whatsapp-container .choices {\n display: flex;\n flex-direction: column;\n grid-gap: 2px;\n gap: 2px;\n list-style-type: none;\n width: 100%;\n}\n.whatsapp-container .choice {\n background-color: var(--message-bg);\n padding: 8px 12px;\n border-radius: var(--message-border);\n text-align: center;\n color: var(--message-disabled-color);\n}\n.whatsapp-container .choice button {\n color: var(--message-disabled-color);\n}\n.whatsapp-container .choice svg {\n fill: var(--message-disabled-color);\n}\n.whatsapp-container .range-choice {\n padding-top: 4px;\n padding-bottom: 4px;\n}\n.whatsapp-container h4 {\n margin: 0 auto;\n font-weight: 500;\n}\n.whatsapp-container footer {\n color: #979797;\n font-size: 12px;\n text-align: center;\n padding: 12px 0;\n}\n.whatsapp-container button {\n background: transparent;\n border: 0;\n cursor: pointer;\n}\n.whatsapp-container .textarea-container {\n display: flex;\n grid-gap: 8px;\n gap: 8px;\n padding-bottom: 4px;\n margin-left: 12px;\n margin-right: 16px;\n margin-bottom: 26px;\n margin-top: 10px;\n padding: 0 12px;\n align-items: end;\n background-color: inherit;\n}\n.whatsapp-container textarea {\n resize: none;\n min-height: 40px;\n max-height: 100px;\n border-radius: 20px;\n padding: 12px;\n resize: none;\n border: none;\n width: 100%;\n}\n.whatsapp-container textarea:focus {\n outline: none;\n}\n.whatsapp-container textarea::-moz-placeholder {\n line-height: 16px;\n padding-left: 2px;\n}\n.whatsapp-container textarea::placeholder {\n line-height: 16px;\n padding-left: 2px;\n}');const fe=({children:e,title:n,closeModal:o,isModalOpen:a})=>t.createElement(r.CSSTransition,{in:a,unmountOnExit:!0,timeout:500,classNames:"fade"},t.createElement("div",{className:"options-popup",style:{}},t.createElement("header",null,t.createElement("button",{onClick:o,className:"close"},t.createElement(u,{name:"widget-close"})),t.createElement("h4",null,n)),t.createElement("main",null,e),t.createElement("footer",null,"Tab an item to select it"))),he=({question:e,saveFormValues:r})=>{const[o,a]=n.useState(!1),{range:s}=e.type_info.scale_properties,i=s?.[0]?.min,c=s?.[s.length-1]?.max,l="descending"===e.type_info.scale_properties?.order,m=n.useRef(Array.from({length:c+(0===i?1:0)},((e,n)=>l?c-n:n+i)));return m.current.length<=3?t.createElement("ul",{className:"choices"},m.current.map((e=>t.createElement("li",{className:"choice range-choice"},t.createElement("button",{onClick:()=>{r(e),a(!1)}},Array.from({length:e},((e,n)=>t.createElement(t.Fragment,null,t.createElement(u,{name:"whatsapp-star"})," ")))))))):t.createElement(t.Fragment,null,t.createElement("button",{onClick:()=>a(!0),className:"choices-button choice"},t.createElement(u,{name:"whatsapp-choices"}),"Rate Support"),t.createElement(fe,{title:"Rate Support",isModalOpen:o,closeModal:()=>a(!1)},m.current.reverse().map((e=>t.createElement("div",{className:"option-row"},t.createElement("button",{onClick:()=>{r(e),a(!1)}},Array.from({length:e},((e,n)=>t.createElement(u,{name:"whatsapp-star"})))))))))},ye=({question:e,saveFormValues:r})=>{const[o,a]=n.useState(!1);return t.createElement(t.Fragment,null,t.createElement("button",{onClick:()=>a(!0),className:"choices-button choice"},t.createElement(u,{name:"whatsapp-choices"}),"Select answer"),t.createElement(fe,{title:"Select a choice",isModalOpen:o,closeModal:()=>a(!1)},t.createElement("ul",{className:"choices"},e.choices.map((e=>t.createElement("li",{className:"choice"},t.createElement("button",{onClick:()=>{r(e.value),a(!1)}},e.value)))))))},xe=e=>{const r=n.useRef(null);return((e,t)=>{n.useEffect((()=>{if(e){e.style.height="0px";const n=e.scrollHeight;e.style.height=n+"px"}}),[e,t])})(r.current,String(e.value)??""),n.useEffect((()=>{e.autoFocus&&r.current?.focus()}),[e.autoFocus]),t.createElement("div",{className:"textarea-container"},t.createElement("textarea",{placeholder:"Type a message",ref:r,rows:1,onChange:e.onChange,value:e.value}),t.createElement("button",{onClick:()=>{e.onSubmit(),r.current&&(r.current.value="")}},t.createElement(u,{name:"whatsapp-send"})))},be=({children:e,text:n,placeholders:r})=>t.createElement("div",{className:"question-text-container"},t.createElement("div",{className:"question-text",dangerouslySetInnerHTML:{__html:w(n,r)},role:"heading","aria-level":1})),we=({block:e,saveFormValues:n})=>{const{question_type:r}=e.question.type_info;switch(r){case"RANGE":return t.createElement(he,{question:e.question,saveFormValues:e=>n(e,!0)});case"DROPDOWN":case"MULTI_CHOICE":return t.createElement(ye,{question:e.question,saveFormValues:e=>n(e,!0)});case"PARAGRAPH":case"INPUT":return null;default:return console.error(`Question type ${r} not supported`),null}},ke=({config:e,placeholders:r,onSelect:o,promptAccepted:a})=>{const s=n.useMemo((()=>e.reverse_order?e.choices?.reverse():e.choices),[e]);return t.createElement(t.Fragment,null,t.createElement("div",{className:"question-container "+(null==a?"active":"")},t.createElement(be,{text:e.text,placeholders:r}),t.createElement("ul",{className:"choices"},s?.map((e=>t.createElement("li",{className:"choice"},t.createElement("button",{className:"action",onClick:()=>{o(Number(e.id))}},e.value)))))),void 0!==a&&t.createElement("div",{className:"answers-container"},t.createElement("p",{className:"answers"},s.find((e=>e.id==a))?.value)),!1===a&&e.is_declined&&e.declined_message&&t.createElement("div",{className:"question-container"},t.createElement(be,{text:e.declined_message,placeholders:r})))},Ee=e=>{const{activeBlock:r,activeIndexOfBlocks:o,activeIndexOfRenderedBlocks:a,answers:s,saveFormValues:i,blocks:c,questions:l,renderedBlocks:u,onSubmitHandler:m,isSurveyCompleted:d,pivot:p}=te(e),{type:g="whatsapp"}=e,{question_type:v}=r?.question.type_info??{},f=n.useRef(null),[h,y]=n.useState(void 0);return n.useEffect((()=>{f.current&&f.current.scroll({top:1e4,behavior:"smooth"})}),[r,s,d]),r&&r.question?(console.log("blocks",c),t.createElement("div",{className:`${g} whatsapp-container`},t.createElement("div",{className:"scroll-wrapper",ref:f},e.survey.prompt_settings?t.createElement(ke,{config:e.survey.prompt_settings,onSelect:e=>{y(1===e)},promptAccepted:h,placeholders:e.placeholders}):null,h?u.map(((n,l)=>t.createElement(t.Fragment,null,t.createElement("div",{className:"question-container "+(l===u.length-1?"active":"")},t.createElement(be,{text:n.question.text,placeholders:e.placeholders}),t.createElement(we,{block:n,placeholders:e.placeholders,saveFormValues:(e,t)=>{i(n,e,t),setTimeout((()=>{!0===t&&L({blocks:c,activeIndexOfBlocks:o,renderedBlocks:u,activeIndexOfRenderedBlocks:a})&&m("COMPLETE")}))}})),n.name!==r.name||s.commitDirtyValue?t.createElement("div",{className:"answers-container"},t.createElement("p",{className:"answers"},s.formValues[n.question.name])):null))):null,d&&t.createElement("div",{className:"question-container",id:"new"},t.createElement(be,{text:V({pivotQn:p?.question,pivotQnAnswer:p?.answer,block:e.survey.blocks?.find((e=>"TY"===e.name)),questions:l})?.text,placeholders:e.placeholders}))),t.createElement(xe,{onChange:e=>{"PARAGRAPH"===v&&i(r,e.target.value)},value:"PARAGRAPH"!==v||d?"":s.formValues[r.question.name],activeBlock:!0,autoFocus:"PARAGRAPH"===v,onSubmit:()=>{i(r,null,!0),r.name===c[c.length-1].name&&m("COMPLETE")}}))):null};exports.BUTTON_SIZE_VARIANTS={LARGE:"large",MINI:"mini",NORMAL:"normal"},exports.Binary=v,exports.Button=R,exports.ChannelPreview=e=>{const{survey:n,answers:r}=ne(e.survey,e.answers);return"whatsapp"===e.channel?t.createElement(Ee,{...e,survey:n,answers:r}):"instagram"===e.channel?t.createElement(Ee,{type:"instagram",...e,survey:n,answers:r}):(console.error(`Channel ${e.channel} not supported`),null)},exports.CheckboxGroup=N,exports.Input=B,exports.ProgressBar=M,exports.Radio=I,exports.RadioGroup=A,exports.Range=y,exports.Survey=e=>{const{survey:n,answers:r}=ne(e.survey,e.answers);return t.createElement(t.Fragment,null,"standard"===e.surveyStyle?t.createElement(ue,{...e,answers:r,survey:n,initialPivotAnswer:b(e.answers)?e.initialPivotAnswer:void 0}):t.createElement(ie,{...e,answers:r,survey:n,surveyStyle:"card",initialPivotAnswer:b(e.answers)?e.initialPivotAnswer:void 0}))},exports.TextArea=_,exports.WebInAppSurvey=e=>{const{survey:n,answers:r}=ne(e.survey,e.answers);return t.createElement(ve,{...e,survey:n,answers:r})};