freemium-survey-components 1.0.19 → 1.0.21
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 +1 -1
- package/lib/index.esm.js +1 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e,{useState as n,useRef as t,forwardRef as r,useEffect as o,useMemo as a}from"react";import{SwitchTransition as s,CSSTransition as i,TransitionGroup as c}from"react-transition-group";const l=["RANGE","NPS","BOOLEAN"],u="Others",m=300,d={default:500,compact:500,cozy:400},p={default:"600px",compact:"350px",cozy:"96%"},g={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"]},v=({name:n})=>{switch(n){case"arrow-previous":return e.createElement("svg",{width:"9",height:"14",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{width:"9",height:"14",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none"},e.createElement("mask",{id:"a",maskUnits:"userSpaceOnUse",x:"-.400146",y:"-.400024",width:"11",height:"11",fill:"#000"},e.createElement("path",{fill:"#fff",d:"M-.400146-.400024h11v11h-11z"}),e.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"})),e.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"}),e.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 e.createElement("svg",{width:"8",height:"8",viewBox:"0 0 7 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{width:"11",height:"10",viewBox:"0 0 11 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{opacity:"0.01",x:"0.16748",width:"10",height:"10",fill:"white",fillOpacity:"0.01"}),e.createElement("path",{d:"M1.85129 1.68479L8.48395 8.31744",stroke:"#264966",strokeWidth:"1.5",strokeLinecap:"round"}),e.createElement("path",{d:"M8.48395 1.68479L1.85129 8.31744",stroke:"#264966",strokeWidth:"1.5",strokeLinecap:"round"}));case"thumbs-up":return e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"15",viewBox:"0 2 12 10"},e.createElement("g",{"clip-path":"url(#clip0_5046_3845)"},e.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"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_5046_3845"},e.createElement("rect",{width:"13.5701",height:"13.5701",fill:"white",transform:"translate(0.361694 0.593502)"}))));case"whatsapp-send":return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 30 30",fill:"none"},e.createElement("rect",{x:"0.413086",y:"0.903687",width:"29.0062",height:"29.0062",rx:"14.5031",fill:"#00927C"}),e.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 e.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"},e.createElement("path",{d:"M0 14.98H14V0.98H0V14.98Z",fill:"url(#pattern0)"}),e.createElement("defs",null,e.createElement("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image0_5309_474151",transform:"scale(0.015625)"})),e.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 e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e.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"}),e.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}},f=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"92",height:"20",viewBox:"0 0 200 40"},e.createElement("g",{fill:"none",fillRule:"nonzero"},e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}))),h=({glyph:n})=>{switch(n){case"smiley-1":return e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.createElement("path",{stroke:"#000","stroke-linecap":"round","stroke-width":"1.38",d:"M22.113 40h20.759"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.createElement("path",{d:"M21.4651 36.3131L19.0742 37.4609",stroke:"#272525","stroke-width":"1.37533","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M44.5508 36.3131L46.9456 37.4609",stroke:"#272525","stroke-width":"1.37533","stroke-linecap":"round","stroke-linejoin":"round"}),e.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"}),e.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 e.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}},y=({highlight:n,index:t=0,type:r,scale:o})=>"STAR"===r?e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"5.86,4.97,37.94,36.23",fill:n?"#F5B800":"#adadad"},e.createElement(h,{glyph:"star"})):["tick","cross"].includes(r)?e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(h,{glyph:g[o][t]})):e.createElement("svg",{width:"52",height:"52",viewBox:"0 0 66 66",fill:n?"#ffc75c":"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(h,{glyph:g[o][t]}));function x(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))}}x(".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 b=({type_info:n,onSelect:t,value:r})=>{let o=n?.scale_properties?.labels?.values;const a="descending"===n?.scale_properties?.order,s=e=>a?(e+1)%2:e;return e.createElement("div",{className:"binary-question"},e.createElement("div",{className:"choices"},(a?o?.slice().reverse():o)?.map(((o,a)=>{return e.createElement("button",{className:("choice "+(Number(r)==Number(s(a))?"active":"")).trim(),onClick:()=>{t?.(Boolean(s(a)))}},e.createElement(v,{name:(i=Number(s(a)),c=n?.type_variant,"THUMBS"===c?["thumbs-down","thumbs-up"][i]:["cross","tick"][i])}),"none"!==n?.scale_properties?.labels?.preference&&o);var i,c}))),e.createElement("div",{className:"footer",role:"note"},n.footer_text))};x(".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 .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 w=(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"},k=({type_variant:n,activeStarRating:t,eachValue:r,max:o,props:a})=>e.createElement(e.Fragment,null,"NUMBER"===n&&r,"TEXT"===n&&a.type_info.scale_properties?.labels?.values[r-1],["STAR","EMOJI"].includes(n)&&e.createElement(y,{scale:o,type:n,index:Math.max(0,r-1),highlight:a.value===r&&-1===t})),E=r=>{const{type_info:{type_variant:o="NUMBER",scale_properties:{button_style:{type:a="highlighted",shape:s="rounded"}={},labels:{values:i=["Very unlikely","Very likely"],preference:c="none"}={},range:l=[{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:u}}=r,m=Number(l?.[0]?.min),d=Number(l?.[l.length-1]?.max),p="descending"===r.type_info.scale_properties?.order,[g,v]=n(-1),f=t(Array.from({length:d+(0===m?1:0)},((e,n)=>p?d-n:n+m)));return 1===(h=r.type_info)?.scale_properties?.range?.[h?.scale_properties.range.length-1]?.max?e.createElement(b,{type_info:r.type_info,onSelect:e=>r.onChangeHandler(Number(e)),value:null==r.value?r.value:!!r.value}):e.createElement("div",{className:"range-container","data-test-input":"range"},e.createElement("div",{className:`range-scale ${s} ${a} variant-${o.toLowerCase()}`},e.createElement("div",{className:"button-container "+(d<=7?"compact":"")},e.createElement("div",{className:`choices ${"TEXT"===o||"all"===c?"with-labels ":""}${o} ${f.current.length>7?"wrap":"no-wrap"}`.trim(),role:"radiogroup","aria-required":!0},f.current.map((n=>e.createElement("div",{className:`choice-container scale-${f.current.length}`},e.createElement("button",{className:`choice ${w(n,g,o,p,l,r.value)}`,role:"radio","aria-checked":r.value===n,key:n,"data-test-range-choice":n,onClick:e=>{r.onChangeHandler(n)},onMouseOver:()=>{"STAR"===o&&v(n)},onMouseLeave:()=>{"STAR"===o&&v(-1)}},e.createElement(k,{type_variant:o,activeStarRating:g,eachValue:n,max:d,props:r}),"TEXT"!==o&&"all"===c&&e.createElement("div",{className:"contained label",role:"note"},i[0===m?n:n-1])),"TEXT"!==o&&"all"===c&&e.createElement("div",{className:"uncontained label",role:"note"},i[0===m?n:n-1]))))),"TEXT"!==o&&"edges"===c&&e.createElement("div",{className:"labels",style:{flexDirection:p?"row-reverse":"row"}},e.createElement("span",{className:"label",role:"note"},`${m} - ${i[0]}`),e.createElement("span",{className:"label",role:"note"},`${d} - ${i[i.length-1]}`)))),e.createElement("div",{className:"footer",role:"note"},u));var h},C=(e,n)=>(e.defaultProps=n,e),q=e=>null==e||"string"==typeof e&&""===e.trim()||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,B=(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??""},O=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}});x('.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 _={isRequired:!1,showCount:!0,isErrored:!1,inline:!1,spellCheck:!1},N=r(((n,r)=>{const a=t(null);o((()=>{setTimeout((()=>{a.current?.focus()}),m+(n.autoFocusDelay??0))}),[]);const{inputStyle:s,style:i,className:c,showCount:l,isErrored:u,startLabel:d,isRequired:p,errorText:g,endLabel:v,maxLength:f=256,onChange:h,...y}=n;return e.createElement("div",{className:"input-container",style:i},n.label&&e.createElement("label",{className:"input-label "+(p?"required":"")},n.label),e.createElement(e.Fragment,null,d&&e.createElement("div",{className:"start-label"},d),e.createElement("div",{className:`input-basic ${u?"error":""}${c||""}`},e.createElement("input",{...y,onFocus:e=>e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length),type:"text",autoComplete:"off",ref:a,style:s,onChange:e=>{e.target.value?.length>f||h?.(e)}}),l&&f>0&&e.createElement("div",{className:"end-max-length"},`${n.value&&n.value.length||0}/${f}`)),v&&e.createElement("div",{className:"end-label"},v)),u&&g&&e.createElement("span",{className:"input-error"},n.errorText))})),A=r(((n,r)=>{const a=t(null);o((()=>{setTimeout((()=>{a.current?.focus()}),m+(n.autoFocusDelay??0))}),[]);const{inputStyle:s,style:i,className:c,showCount:l,maxLength:u=1500,startLabel:d,isRequired:p,onChange:g,...v}=n;return e.createElement(e.Fragment,null,e.createElement("div",{className:"textarea-container",style:i},n.label&&e.createElement("label",{className:"input-label "+(p?"required":"")},n.label),d&&e.createElement("div",{className:"start-label"},d),e.createElement("div",{className:`input-basic ${c||""}`},e.createElement("textarea",{...v,onFocus:e=>e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length),autoComplete:"off",ref:a,style:s,onChange:e=>{e.target.value?.length>u||g?.(e)}}),l&&u&&u>0&&e.createElement("div",{className:"end-max-length"},`${n.value&&n.value.length||0}/${u}`)),n.endLabel&&e.createElement("div",{className:"end-label"},n.endLabel)))})),I=C(N,_),M=C(A,_);x('.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 T=()=>e.createElement("svg",{id:"tick",className:"tick-icon",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"title",viewBox:"0 0 10 10"},e.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"})),S=({values:n=[],othersValue:r="",options:a,name:s,autoFocusDelay:i,onChangeHandler:c,saveOthersValue:l})=>{const d=n.includes(u),p=t(null);return o((()=>{setTimeout((()=>{p.current?.focus()}),m+i)}),[]),e.createElement("div",{className:"checkbox-group"},e.createElement("button",{ref:p,className:"autofocus-button","aria-label":"checkbox question"}),a?.filter((e=>e.value!==u)).filter((e=>!e.meta?.is_deleted)).map(((t,r)=>e.createElement(Z,{key:t.id,checked:n?.includes(t.value),name:t.value,id:t.id,onChange:(e,r)=>{if(r){const e=a.reduce(((e,n)=>({...e,[n.value]:n.position})),{});c([...n||[],t.value].sort(((n,t)=>e[n]-e[t])))}else{const e=n.indexOf(t.value);e>-1&&n.splice(e,1),c([...n])}}},t.value))),a?.find((e=>e.value===u))&&e.createElement(Z,{key:"others",checked:d,name:u,id:u,onChange:(e,t)=>{if(t)c([...n,u]);else{const e=n.findIndex((e=>e===u));n.splice(e,1),c(n)}}},"Others"),d&&e.createElement(e.Fragment,null,e.createElement(I,{placeholder:"Enter your comment",value:r,onChange:e=>{l(s,e.target.value)},autoFocusDelay:10,label:""})))},Z=C((n=>{const r=t(null);return o((()=>{n.autoFocus&&setTimeout((()=>{r.current?.focus()}),320)}),[]),e.createElement("label",{className:`checkbox-label ${n.disabled&&"disabled"}`},e.createElement("input",{ref:r,id:n.id,type:"checkbox",name:n.name,readOnly:n.readOnly,disabled:n.disabled,"aria-disabled":n.disabled,checked:n.checked,onChange:n.readOnly?()=>{}:e=>n.onChange(e,e.target.checked)}),e.createElement("div",{className:"checkbox"},n.checked&&e.createElement("div",{className:"icon-container"},e.createElement(T,null)," ")),e.createElement("div",null,n.children))}),{checked:!1});x('.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 z=({name:n,options:r,value:a,autoFocusDelay:s,onChangeHandler:i,saveOthersValue:c,othersOption:l,othersRequired:d,othersValue:p,isFinalQn:g})=>{const v=t(null);return o((()=>{setTimeout((()=>{v.current?.focus()}),m+s)}),[]),e.createElement("div",{className:"radio-group",role:"radiogroup"},e.createElement("button",{ref:v,className:"autofocus-button","aria-label":"radio question",tabIndex:-1}),r?.sort(((e,n)=>e.value===u?1:n.value===u?-1:0)).filter((e=>!e.meta?.is_deleted))?.map(((t,r)=>e.createElement(R,{key:t.value,value:t.value,name:n,onChange:e=>{e.currentTarget.value!==u&&c(n,null),i(e.currentTarget.value)},checked:a===t.value},t.value===u?"Others":t.value))),a===u&&e.createElement(e.Fragment,null,e.createElement(I,{value:p??"",onChange:e=>{a!==u&&g&&i(u),c(n,e.target.value)},placeholder:"Enter your comment",label:"",autoFocusDelay:10})))},R=C((n=>{const r=t(null);return o((()=>{n.autoFocus&&setTimeout((()=>{r.current?.focus()}),320)}),[]),e.createElement("label",{className:"radio-label"},e.createElement("input",{ref:r,type:"radio",name:n.name,value:n.value,checked:n.checked,onChange:n.onChange}),e.createElement("div",{className:"radio"}),e.createElement("div",null,n.children))}),{checked:!1,autoFocus:!1});x(".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 j=n=>{const{totalSteps:t,completedSteps:r,widget:o}=n;return e.createElement("div",{className:"progressbar-container "+(o?"widget":"")},e.createElement("div",{className:"progressbar",style:{width:(r>0?100/t:0)+"%",transform:`scaleX(${r})`}}))};x(".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 L=()=>e.createElement(e.Fragment,null,"..."),V={LARGE:"large",MINI:"mini",NORMAL:"normal"},H=n=>{const{inline:t=!1,children:r,disabled:o,className:a="",htmlType:s,type:i="primary",onClick:c,size:l,overrideStyleClassName:u="",loading:m=!1,...d}=n;return e.createElement("button",{style:t?{display:"inline-block"}:{},disabled:o,className:`action-button ${a} ${u}`,type:s,onClick:c,...d},m?e.createElement(L,null):r)},F=({question:n,formValues:t,othersMeta:r,onChangeHandler:o,saveOthersValue:a,autoFocusDelay:s,isFinalQn:i})=>{switch(n.type_info.question_type){case"RANGE":return e.createElement(E,{type_info:n.type_info,onChangeHandler:o,value:t[n.name]});case"CHECKBOX":case"MULTI_SELECT":return e.createElement(S,{name:n.name,values:t[n.name],othersValue:r[n.name],options:n.choices,onChangeHandler:o,saveOthersValue:a,othersOption:n.choices.find((e=>e.value===u)),othersRequired:n.type_info.meta?.othersRequired,autoFocusDelay:s});case"RADIO":case"DROPDOWN":return e.createElement(z,{autoFocusDelay:s,name:n.name,onChangeHandler:o,saveOthersValue:a,options:n.choices,value:t[n.name],othersValue:r[n.name],othersOption:n.choices.find((e=>e.value===u)),othersRequired:n.type_info.meta?.othersRequired,isFinalQn:i});case"INPUT":case"TEXT":return n.type_info?.meta?.readOnly?e.createElement("div",{className:"message-container"},n.type_info?.meta?.value):e.createElement("div",{className:"responsive-text-field"},e.createElement(I,{autoFocusDelay:s,label:"",isRequired:n.is_required,value:t[n.name]||"",placeholder:n.type_info?.meta?.placeholder??"",onChange:e=>o(e.target.value)}),e.createElement(M,{autoFocusDelay:s,label:"",maxLength:256,isRequired:n.is_required,placeholder:n.type_info?.meta?.placeholder??"",value:t[n.name]||"",onChange:e=>o(e.target.value)}));case"PARAGRAPH":return e.createElement(M,{autoFocusDelay:s,label:"",isRequired:n.is_required,placeholder:n.type_info?.meta?.placeholder??"",value:t[n.name]||"",onChange:e=>o(e.target.value)});case"BOOLEAN":return e.createElement(b,{type_info:n.type_info,onSelect:o,value:t[n.name]});default:return console.error(`Question type ${n.type_info.question_type} not found`),null}};x(":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 D=({questions:e})=>e.find((e=>e.type_info?.pivot_question))??e.find((e=>"RANGE"===e.type_info?.question_type))??e[0],P=(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))},Y=({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},Q=({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))},X=({activeBlock:e,blocks:n,activeIndexOfBlocks:t,answers:r})=>{if((({activeBlock:e,answers:n})=>{const t=n.formValues[e.question.name];return q(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},J=({question:e,answers:n})=>!q(n.formValues[e.name])&&l.includes(e?.type_info?.question_type||"")&&!("DROPDOWN"===e.type_info?.question_type&&n.formValues[e.name]===u)||n.commitDirtyValue,G=({blocks:e,activeIndexOfBlocks:n,renderedBlocks:t,activeIndexOfRenderedBlocks:r,answers:o})=>{const{question:a}=t[r];return!!a&&(!Y({blocks:e,activeIndexOfBlocks:n,renderedBlocks:t,activeIndexOfRenderedBlocks:r})&&J({question:a,answers:o}))},U=(e,{answers:n,blocks:t,activeIndexOfBlocks:r,renderedBlocks:o,activeIndexOfRenderedBlocks:a,surveyStyle:s,widget:i,blockIndex:c})=>{const m=Y({blocks:t,activeIndexOfBlocks:r,renderedBlocks:o,activeIndexOfRenderedBlocks:a}),d=o[a],p=d.question;switch(e){case"next":return(!l.includes(p.type_info?.question_type??"")||"DROPDOWN"===p.type_info?.question_type&&n.formValues[p.name]===u)&&!m&&c===a;case"skip":return!d.required&&!m&&c===a;case"submit":return m;case"navigation":return(i||"card"===s)&&!(0===a&&1===o.length);case"clear-selection":return null!=c&&c!==a&&"DROPDOWN"===o[c].question.type_info?.question_type&&n.formValues[o[c].question.name]}},W=(e,n)=>("MULTI_SELECT"===e.question.type_info?.question_type&&n.formValues[e.question.name]?.includes(u)||"DROPDOWN"===e.question.type_info?.question_type&&n.formValues[e.question.name]===u)&&q(n.others[e.question.name]),K=(e,{answers:n,blocks:t,activeIndexOfBlocks:r,renderedBlocks:o,activeIndexOfRenderedBlocks:a,isSubmitting:s})=>{const i=o[a];switch(e){case"next":return q(n?.formValues[i.question.name])||i.question.type_info?.meta?.othersRequired&&W(i,n);case"submit":return(i.required||i.question.type_info?.pivot_question)&&q(n?.formValues[i.question.name])||i.question?.type_info?.meta?.othersRequired&&W(i,n)||s;case"navigation-prev":return 0==a;case"navigation-next":return a>=o.length-1;default:return!1}},$=({renderedBlocks:e,activeIndexOfRenderedBlocks:n,answers:t})=>{const r=ee({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}},ee=({renderedBlocks:e,activeIndexOfRenderedBlocks:n})=>e.slice(0,n+1),ne=(e,n,t)=>{const{others_meta:r={},...o}=t||{};if(q(o))return{renderedBlocks:[],activeIndexOfRenderedBlocks:0,pivot:null,answers:{formValues:{},others:{},commitDirtyValue:!1},isInitialTransition:!0};const a=e.filter((e=>e.question_names?.some((e=>t?.[e])))).map((e=>{const r=e.question_names?.find((e=>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=D({questions:n}),l={question:c,answer:o[c.name]},u=(({blocks:e,answers:n,questions:t,activeBlock:r,activeIndexOfBlocks:o,pivot:a})=>{const s=X({activeBlock:r,blocks:e,activeIndexOfBlocks:o,answers:n}),i=Q({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 te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var re,oe,ae,se=(re=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]",O="[object Uint16Array]",_="[object Uint32Array]",N=/\w*$/,A=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,M={};M[o]=M["[object Array]"]=M[y]=M[x]=M[a]=M[s]=M[b]=M[w]=M[k]=M[E]=M[C]=M[l]=M[u]=M[m]=M[p]=M[g]=M[v]=M[f]=M[q]=M[B]=M[O]=M[_]=!0,M["[object Error]"]=M[i]=M[h]=!1;var T="object"==typeof te&&te&&te.Object===Object&&te,S="object"==typeof self&&self&&self.Object===Object&&self,Z=T||S||Function("return this")(),z=n&&!n.nodeType&&n,R=z&&e&&!e.nodeType&&e,j=R&&R.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 D(e){var n=-1,t=Array(e.size);return e.forEach((function(e,r){t[++n]=[r,e]})),t}function P(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,J=Function.prototype,G=Object.prototype,U=Z["__core-js_shared__"],W=(Q=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"",K=J.toString,$=G.hasOwnProperty,ee=G.toString,ne=RegExp("^"+K.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=j?Z.Buffer:void 0,oe=Z.Symbol,ae=Z.Uint8Array,se=P(Object.getPrototypeOf,Object),ie=Object.create,ce=G.propertyIsEnumerable,le=X.splice,ue=Object.getOwnPropertySymbols,me=re?re.isBuffer:void 0,de=P(Object.keys,Object),pe=je(Z,"DataView"),ge=je(Z,"Map"),ve=je(Z,"Promise"),fe=je(Z,"Set"),he=je(Z,"WeakMap"),ye=je(Object,"create"),xe=De(pe),be=De(ge),we=De(ve),ke=De(fe),Ee=De(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 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 _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 Ne(e){this.__data__=new Oe(e)}function Ae(e,n){var t=Ye(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Qe(e)}(e)&&$.call(e,"callee")&&(!ce.call(e,"callee")||ee.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&&!$.call(e,s)||a&&("length"==s||He(s,r))||t.push(s);return t}function Ie(e,n,t){var r=e[n];$.call(e,n)&&Pe(r,t)&&(void 0!==t||n in e)||(e[n]=t)}function Me(e,n){for(var t=e.length;t--;)if(Pe(e[t][0],n))return t;return-1}function Te(e,n,t,r,d,h,A){var I;if(r&&(I=h?r(e,d,h,A):r(e)),void 0!==I)return I;if(!Ge(e))return e;var T=Ye(e);if(T){if(I=function(e){var n=e.length,t=e.constructor(n);return n&&"string"==typeof e[0]&&$.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,I)}else{var S=Ve(e),Z=S==i||S==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(S==m||S==o||Z&&!h){if(F(e))return h?e:{};if(I=function(e){return"function"!=typeof e.constructor||Fe(e)?{}:Ge(n=se(e))?ie(n):{};var n}(Z?{}:e),!n)return function(e,n){return ze(e,Le(e),n)}(e,function(e,n){return e&&ze(n,Ue(n),e)}(I,e))}else{if(!M[S])return h?e:{};I=function(e,n,t,r){var o,i=e.constructor;switch(n){case y:return Ze(e);case a:case s:return new i(+e);case x:return function(e,n){var t=n?Ze(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 O:case _:return function(e,n){var t=n?Ze(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(D(e),!0):D(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,S,Te,n)}}A||(A=new Ne);var z=A.get(e);if(z)return z;if(A.set(e,I),!T)var R=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););}(R||e,(function(o,a){R&&(o=e[a=o]),Ie(I,a,Te(o,n,t,r,a,e,A))})),I}function Se(e){return!(!Ge(e)||(n=e,W&&W in n))&&(Je(e)||F(e)?ne:A).test(De(e));var n}function Ze(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;Ie(t,s,void 0===i?e[s]:i)}return t}function Re(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 Se(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 $.call(n,e)?n[e]:void 0},Be.prototype.has=function(e){var n=this.__data__;return ye?void 0!==n[e]:$.call(n,e)},Be.prototype.set=function(e,n){return this.__data__[e]=ye&&void 0===n?t:n,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var n=this.__data__,t=Me(n,e);return!(t<0||(t==n.length-1?n.pop():le.call(n,t,1),0))},Oe.prototype.get=function(e){var n=this.__data__,t=Me(n,e);return t<0?void 0:n[t][1]},Oe.prototype.has=function(e){return Me(this.__data__,e)>-1},Oe.prototype.set=function(e,n){var t=this.__data__,r=Me(t,e);return r<0?t.push([e,n]):t[r][1]=n,this},_e.prototype.clear=function(){this.__data__={hash:new Be,map:new(ge||Oe),string:new Be}},_e.prototype.delete=function(e){return Re(this,e).delete(e)},_e.prototype.get=function(e){return Re(this,e).get(e)},_e.prototype.has=function(e){return Re(this,e).has(e)},_e.prototype.set=function(e,n){return Re(this,e).set(e,n),this},Ne.prototype.clear=function(){this.__data__=new Oe},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 Oe){var r=t.__data__;if(!ge||r.length<199)return r.push([e,n]),this;t=this.__data__=new _e(r)}return t.set(e,n),this};var Le=ue?P(ue,Object):function(){return[]},Ve=function(e){return ee.call(e)};function He(e,n){return!!(n=null==n?r:n)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<n}function Fe(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||G)}function De(e){if(null!=e){try{return K.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Pe(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=ee.call(e),t=n==m?e.constructor:void 0,r=t?De(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)&&!Je(e)}var Xe=me||function(){return!1};function Je(e){var n=Ge(e)?ee.call(e):"";return n==i||n==c}function Ge(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}function Ue(e){return Qe(e)?Ae(e):function(e){if(!Fe(e))return de(e);var n=[];for(var t in Object(e))$.call(e,t)&&"constructor"!=t&&n.push(t);return n}(e)}e.exports=function(e){return Te(e,!0,!0)}},re(ae={path:oe,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&ae.path)}},ae.exports),ae.exports);const ie=(e,n)=>{const{filteredSurvey:t,filteredAnswers:r}=a((()=>{const t=se(e),r=(t.question_details?.questions||[]).filter((e=>!e.type_info?.meta?.is_deleted)),{others_meta:o,...a}=n||{others_meta:{}},s=r.reduce(((e,n)=>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:{...t,question_details:{questions:r},blocks:i},filteredAnswers:{...s,others_meta:o}}}),[]);return{survey:t,answers:r}},ce=r=>{const s=r.survey.question_details?.questions||[],[i]=n(r.survey.blocks?.filter((e=>"TY"!==e.name))),c=a((()=>ne(i,s,r.answers)),[i,s,r.answers]),[l,u]=n(c.answers),[m,d]=n(c.renderedBlocks),[p,g]=n(c.activeIndexOfRenderedBlocks),[v,f]=n(!1),[h,y]=n(!1),x=t(c.pivot),b=t(!1),w=t(),k=t(c.isInitialTransition),E=m[p],C=e.useMemo((()=>m.length>0?i?.findIndex((e=>e.name===m[p].name)):0),[p]);o((()=>{const{others_meta:e,...n}=r.answers||{};if(!i||!i.length||!q(n))return;x.current={...x.current,question:D({questions:s})},null!=r.initialPivotAnswer&&(x.current={...x.current,answer:P(x.current.question,r.initialPivotAnswer)},u({...l,formValues:{[x.current.question.name]:x.current.answer}}));const t=Q({pivotQn:x.current.question,pivotQnAnswer:x.current.answer,block:i[0],questions:s});d([{...i[0],question:t}])}),[i,r.initialPivotAnswer]),o((()=>{m.length&&(m.length>1&&(k.current=!1),g(m.length-1))}),[m]),o((()=>{if(!q(l.formValues)&&i&&G({blocks:i,activeIndexOfBlocks:C,renderedBlocks:m,activeIndexOfRenderedBlocks:p,answers:l})){const e=()=>{f(!1);const e=X({activeBlock:E,blocks:i,activeIndexOfBlocks:C,answers:l});if(e===1/0)return void setTimeout((()=>{_("COMPLETE"),y(!0)}));setTimeout((()=>{_()}));const n=Q({pivotQn:x.current?.question,pivotQnAnswer:x.current?.answer,block:i?.[e],questions:s}),t=ee({renderedBlocks:m,activeIndexOfRenderedBlocks:p});d([...t,{...i?.[e],question:n}])};null!=r.initialPivotAnswer&&1==m.length?w.current?(clearTimeout(w.current),w.current=null,e()):w.current=setTimeout((()=>{e()}),1500):e()}}),[l,i]),o((()=>{!q(l.formValues)&&b.current&&(v?O():B(),b.current=!1)}),[v]);const B=()=>{v?(b.current=!0,f(!1)):g(p+1)},O=()=>{v?g(p-1):(b.current=!0,f(!0))},_=(e="PARTIAL")=>{let n=()=>{};"COMPLETE"===e&&(n=()=>{y(!0)}),r.onSubmit({...l.formValues,others_meta:l.others},n,e)};return{blocks:i,questions:s,renderedBlocks:m,activeBlock:E,activeIndexOfBlocks:C,activeIndexOfRenderedBlocks:p,isSurveyCompleted:h,isReverseAnimation:v,isNavigating:b.current,pivot:x.current,answers:l,isInitialTransition:k.current,navigateToNextBlock:B,navigateToPreviousBlock:O,saveFormValues:(e,n,t=!1)=>{e.question.name===x.current?.question.name&&x.current&&(x.current={...x.current,answer:n});let r=l;(t||J({question:e.question,answers:l}))&&(r=$({renderedBlocks:m,activeIndexOfRenderedBlocks:p,answers:l})),u({...r,formValues:{...r.formValues,...null!=n&&{[e.question.name]:n}},commitDirtyValue:t})},saveOthersValue:(e,n)=>{if(null===n){const n={...l.others};delete n[e],u({...l,commitDirtyValue:!1,others:n})}else u({...l,commitDirtyValue:!1,others:{...l.others,[e]:n}})},skipBlock:()=>{f(!1);const e=E.question;if(delete l.formValues[e.name],delete l.others[e.name],p!==m.length-1){const e=$({renderedBlocks:m,activeIndexOfRenderedBlocks:p,answers:l}),n=ee({renderedBlocks:m,activeIndexOfRenderedBlocks:p});d(n),u({...e,commitDirtyValue:!0})}else u({...l,commitDirtyValue:!0})},onSubmitHandler:_}};x(".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-text.prompt-declined {\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 le=({config:t,onSelect:r,placeholders:o})=>{const[a,s]=n(!1);return a?t.is_declined&&t.declined_message?e.createElement("div",{className:"question-container"},e.createElement("p",{className:"question-text prompt-declined",dangerouslySetInnerHTML:{__html:B(t.declined_message,o)}})):null:e.createElement("div",{className:"prompt-question"},e.createElement("p",{className:"question-text",dangerouslySetInnerHTML:{__html:B(t.text,o)}}),e.createElement("div",{className:"actions"},(t.reverse_order?[...t.choices||[]].reverse():t.choices)?.map((n=>{return e.createElement("button",{className:"action",onClick:()=>{"0"==n.id&&s(!0),r(Number(n.id))}},e.createElement(v,{name:(o=Number(n.id),a=t.type_variant||"THUMBS","THUMBS"===a?["thumbs-down","thumbs-up"][o]:["cross","tick"][o])}),n.value);var o,a}))))},ue=({thankYouQuestion:n,preview:t,placeholders:r,pivotAnswer:a})=>{const{redirectUrl:s,redirectDelay:i}=n.type_info?.meta??{};return o((()=>{t||s&&setTimeout((()=>{window.location.href=s??""}),1e3*(i??0)??1e4)}),[]),e.createElement("div",{className:"question-container thankyou"},e.createElement("div",{className:"heading"},"Thank you!"),e.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:B(n.text,r,a)}}),s&&e.createElement("div",{style:{width:"100%"}},e.createElement("div",{className:"redirection-text"},"You will be redirected to the below URL automatically in"," ",i," seconds.",e.createElement("br",null)),e.createElement("a",{className:"link",href:s},s)))},me=({activeIndexOfBlocks:n,activeIndexOfRenderedBlocks:t,renderedBlocks:r,blocks:o,answers:a,navigateToPreviousBlock:s,navigateToNextBlock:i})=>e.createElement("div",{className:"freemium-survey-step-navigation","data-navigation-element":"1"},e.createElement("button",{disabled:K("navigation-prev",{blocks:o,answers:a,renderedBlocks:r,activeIndexOfBlocks:n,activeIndexOfRenderedBlocks:t}),className:"navigation-button",onClick:s,title:"Go to previous question"},e.createElement(v,{name:"arrow-previous"})),e.createElement("button",{className:"navigation-button",disabled:K("navigation-next",{blocks:o,answers:a,renderedBlocks:r,activeIndexOfBlocks:n,activeIndexOfRenderedBlocks:t}),title:"Go to next question",onClick:i},e.createElement(v,{name:"arrow-next"}))),de=t=>{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}=t,[f,h]=n(!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&&!Y({blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s})?null:e.createElement("div",{className:"question-footer"},U("navigation",y)&&e.createElement(me,{answers:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,blocks:i,navigateToNextBlock:p,navigateToPreviousBlock:g}),e.createElement("div",{className:"action-buttons"},U("next",y)&&e.createElement(H,{onClick:()=>{u(s[l],null,!0)},disabled:K("next",x),className:"next-button"},"Next"),U("skip",y)&&e.createElement("button",{className:"skip-button",onClick:d,"aria-label":"skip question"},"Skip"),U("submit",y)&&e.createElement("div",{className:"submit"},e.createElement(H,{disabled:K("submit",x),onClick:()=>{h(!0),m("COMPLETE")}},f?"Submitting":"Submit survey"))))},pe=t=>{const{blocks:r,renderedBlocks:o,activeBlock:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,isSurveyCompleted:u,isReverseAnimation:m,saveFormValues:d,saveOthersValue:p,skipBlock:g,onSubmitHandler:v,navigateToNextBlock:h,navigateToPreviousBlock:y,answers:x,questions:b,pivot:w,isInitialTransition:k}=ce(t),E=q(x.formValues)&&t.survey.prompt_settings?.is_enabled&&t.preview,[C,O]=n(E);if(!a||!a.question)return null;const _=c+(u?1:0),N=(_>0?100/r.length:0)*_;return e.createElement("div",{className:`freemium-survey-components ${t.mobilePreview?"mobile-preview":""} ${t.surveyStyle}-survey-style`,id:"freemium-survey"},e.createElement(s,{mode:"out-in"},e.createElement(i,{key:l+String(u)+String(C),addEndListener:(e,n)=>{e.addEventListener("transitionend",n,!1)},classNames:m?"fade-reverse":"fade"},e.createElement("div",{className:"questions"},u?e.createElement(ue,{thankYouQuestion:Q({pivotQn:w?.question,pivotQnAnswer:w?.answer,block:t.survey.blocks?.find((e=>"TY"===e.name)),questions:b}),preview:!!t.preview,placeholders:t.placeholders,pivotAnswer:w?.answer}):e.createElement("div",{id:`${a.question.name}`,className:"question-container","data-test-question-name":a.question.name},C&&t.survey.prompt_settings?e.createElement(le,{config:t.survey.prompt_settings,onSelect:e=>{t.onAnsweringPrompt?.(e),1===e&&O(!1)},placeholders:t.placeholders}):e.createElement(e.Fragment,null,e.createElement("div",{className:"question-text",dangerouslySetInnerHTML:{__html:B(a?.question.text,t.placeholders,w?.answer)},"aria-label":`question-${l}`,role:"heading","aria-level":1}),e.createElement("div",{onTransitionEndCapture:e=>e.stopPropagation(),style:{width:"100%"}},e.createElement(F,{question:a.question,isFinalQn:Y({blocks:r,activeIndexOfBlocks:c,renderedBlocks:o,activeIndexOfRenderedBlocks:l}),formValues:x.formValues,othersMeta:x.others,autoFocusDelay:"standard"===t.surveyStyle?350:0,saveOthersValue:p,onChangeHandler:e=>{d(a,e)}})),e.createElement(de,{widget:!1,surveyStyle:t.surveyStyle,answers:x,renderedBlocks:o,blocks:r,activeIndexOfRenderedBlocks:l,activeIndexOfBlocks:c,saveFormValues:d,skipBlock:g,onSubmitHandler:v,navigateToPreviousBlock:y,navigateToNextBlock:h,isInitialTransition:k})))))),e.createElement("footer",{className:"survey-footer"},e.createElement("div",{className:"survey-progress"},e.createElement(e.Fragment,null,e.createElement("span",{className:"progress-completion"},N.toFixed(),"% "),"survey completed",e.createElement(j,{totalSteps:r.length,completedSteps:_}))),e.createElement("div",{className:"survey-footer-text"},"Powered by ",e.createElement("a",{href:"https://www.freshworks.com/?utm_source=survey&utm_medium=survey_public_page",target:"_blank",rel:"noopener noreferrer"},e.createElement(f,null)))))};x(":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 ge=({thankYouQuestion:n,preview:t,placeholders:r,pivotAnswer:a})=>{const{redirectUrl:s,redirectDelay:i}=n.type_info?.meta??{};return o((()=>{t||s&&setTimeout((()=>{window.location.href=s}),1e3*(i??0)??1e4)}),[]),e.createElement("div",{className:"question-container thankyou"},e.createElement("div",{className:"heading"},"Thank you!"),e.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:B(n.text,r,a)}}),s&&e.createElement("div",{style:{width:"100%"}},e.createElement("div",{className:"redirection-text"},"You will be redirected to the below URL automatically in"," ",i," seconds.",e.createElement("br",null)),e.createElement("a",{className:"link",href:s},s)))},ve=n=>{const{blockIndex:t,widget:r,surveyStyle:o,answers:a,renderedBlocks:s,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,saveFormValues:u,skipBlock:m,clearRadioSelection:d}=n,p={answers:a,blocks:i,blockIndex:t,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)&&t===l||U("clear-selection",p)?e.createElement("div",{className:"question-footer"},e.createElement("div",{className:"action-buttons"},U("next",p)&&e.createElement(H,{onClick:()=>{u(s[l],null,!0)},disabled:!!K("next",g),className:"next-button"},"Next"),U("skip",p)&&e.createElement("button",{className:"sec-button",onClick:m,"aria-label":"skip question"},"Skip"),U("clear-selection",p)&&e.createElement("button",{className:"sec-button",onClick:()=>d(t)},"Clear selection"))):null},fe=r=>{const{blocks:c,renderedBlocks:l,activeBlock:u,activeIndexOfBlocks:m,activeIndexOfRenderedBlocks:d,isSurveyCompleted:p,saveFormValues:g,saveOthersValue:v,skipBlock:h,clearRadioSelection:y,onSubmitHandler:x,answers:b,questions:w,pivot:k}=(r=>{const s=r.survey.question_details?.questions||[],[i]=n(r.survey?.blocks?.filter((e=>"TY"!==e.name))),c=a((()=>ne(i,s,r.answers)),[i,s,r.answers]),[l,u]=n(c.renderedBlocks),[m,d]=n(c.activeIndexOfRenderedBlocks),p=t(c.pivot),[g,v]=n(c.answers),f=t(),[h,y]=n(!1),x=t(null),b=l[m],w=e.useMemo((()=>l.length>0?i?.findIndex((e=>e.name===l[m].name)):0),[m]);o((()=>{const{others_meta:e,...n}=r.answers;if(!i||!i.length||!q(n))return;p.current={...p.current,question:D({questions:s})},null!=r.initialPivotAnswer&&(p.current={...p.current,answer:P(p.current.question,r.initialPivotAnswer)},v({...g,formValues:{[p.current.question.name]:p.current.answer}}));const t=Q({pivotQn:p.current.question,pivotQnAnswer:p.current.answer,block:i[0],questions:s});u([{...i[0],question:t}])}),[i,r.initialPivotAnswer]),o((()=>{l.length&&d(l.length-1),x.current?.scrollIntoView({block:"start",behavior:"smooth"})}),[l]),o((()=>{if(!q(g.formValues)&&i&&G({blocks:i,activeIndexOfBlocks:w,renderedBlocks:l,activeIndexOfRenderedBlocks:m,answers:g})){const e=()=>{const e=X({activeBlock:b,blocks:i,activeIndexOfBlocks:w,answers:g});if(e===1/0)return void setTimeout((()=>{k("COMPLETE"),y(!0)}));setTimeout((()=>{k()}));const n=Q({pivotQn:p.current?.question,pivotQnAnswer:p.current?.answer,block:i?.[e],questions:s}),t=ee({renderedBlocks:l,activeIndexOfRenderedBlocks:m});u([...t,{...i?.[e],question:n}])};null!=r.initialPivotAnswer&&1==l.length?f.current?(clearTimeout(f.current),f.current=null,e()):f.current=setTimeout((()=>{e()}),1500):e()}}),[g,i]);const k=(e="PARTIAL")=>{let n=()=>{};"COMPLETE"===e&&(n=()=>{y(!0)}),r.onSubmit({...g.formValues,others_meta:g.others},n,e)};return{blocks:i,questions:s,renderedBlocks:l,activeBlock:b,activeIndexOfBlocks:w,activeIndexOfRenderedBlocks:m,isSurveyCompleted:h,pivot:p.current,answers:g,saveFormValues:(e,n,t=!1,r=m)=>{e.question.name===p.current?.question.name&&(p.current={...p.current,answer:n});let o=g;(t||J({question:e.question,answers:g}))&&(o=$({renderedBlocks:l,activeIndexOfRenderedBlocks:r,answers:g})),r!==m&&d(r),v({...o,formValues:{...o.formValues,...null!=n&&{[e.question.name]:n}},commitDirtyValue:t})},saveOthersValue:(e,n,t=m)=>{if(t!==m&&d(t),null===n){const n={...g.others};delete n[e],v({...g,commitDirtyValue:!1,others:n})}else v({...g,commitDirtyValue:!1,others:{...g.others,[e]:n}})},skipBlock:()=>{const e=b.question;if(delete g.formValues[e.name],delete g.others[e.name],m!==l.length-1){const e=$({renderedBlocks:l,activeIndexOfRenderedBlocks:m,answers:g}),n=ee({renderedBlocks:l,activeIndexOfRenderedBlocks:m});u(n),v({...e,commitDirtyValue:!0})}else v({...g,commitDirtyValue:!0})},clearRadioSelection:e=>{e!==m&&d(e);const n=l[e].question;delete g.formValues[n.name],delete g.others[n.name];const t=$({renderedBlocks:l,activeIndexOfRenderedBlocks:e,answers:g}),r=ee({renderedBlocks:l,activeIndexOfRenderedBlocks:e});u(r),v({...t,commitDirtyValue:!1})},onSubmitHandler:k}})(r),E=t(null),[C,O]=n(!1);o((()=>{E.current?.scrollIntoView({block:"start",behavior:"smooth"})}),[l]);const _=q(b.formValues)&&r.survey.prompt_settings?.is_enabled&&r.preview,[N,A]=n(_),I=m+(p?1:0),M=(I>0?100/c.length:0)*I;return u&&u.question?e.createElement("div",{className:`freemium-survey-components ${r.mobilePreview?"mobile-preview":""} standard-survey-style`,id:"freemium-survey"},e.createElement(s,{mode:"out-in"},e.createElement(i,{key:String(p)+String(N),addEndListener:(e,n)=>{e.addEventListener("transitionend",n,!1)},classNames:"fade"},e.createElement("div",null,N&&r.survey.prompt_settings?e.createElement("div",{className:"questions"},e.createElement("div",{className:"question-container"},e.createElement(le,{config:r.survey.prompt_settings,onSelect:e=>{r.onAnsweringPrompt?.(e),1===e&&A(!1)},placeholders:r.placeholders}))):e.createElement(e.Fragment,null,p?e.createElement(ge,{thankYouQuestion:Q({pivotQn:k?.question,pivotQnAnswer:k?.answer,block:r.survey?.blocks?.find((e=>"TY"===e.name)),questions:w}),preview:!!r.preview,placeholders:r.placeholders,pivotAnswer:k?.answer}):e.createElement(e.Fragment,null,e.createElement("div",{onTransitionEndCapture:e=>e.stopPropagation(),className:"questions"},l.map(((n,t)=>e.createElement("div",{key:n.question.name,ref:E,className:"question-container"},e.createElement("div",{className:"question-text "+(0===t?"nps":""),dangerouslySetInnerHTML:{__html:B(n.question.text,r.placeholders,k?.answer)},"aria-label":`question-${t}`,role:"heading","aria-level":1}),e.createElement(F,{question:n.question,isFinalQn:Y({blocks:c,activeIndexOfBlocks:m,renderedBlocks:l,activeIndexOfRenderedBlocks:d}),formValues:b.formValues,othersMeta:b.others,autoFocusDelay:"standard"===r.surveyStyle?350:20,saveOthersValue:(e,n)=>{v(e,n,t)},onChangeHandler:e=>{g(n,e,!1,t)}}),e.createElement(ve,{widget:!1,surveyStyle:r.surveyStyle,answers:b,renderedBlocks:l,blocks:c,blockIndex:t,activeIndexOfRenderedBlocks:d,activeIndexOfBlocks:m,saveFormValues:g,skipBlock:h,clearRadioSelection:y,onSubmitHandler:x})))),U("submit",{answers:b,blocks:c,activeIndexOfBlocks:m,activeIndexOfRenderedBlocks:d,renderedBlocks:l,surveyStyle:r.surveyStyle,widget:!1})&&e.createElement("div",{className:"submit"},e.createElement(H,{disabled:!!K("submit",{answers:b,blocks:c,activeIndexOfBlocks:m,activeIndexOfRenderedBlocks:d,renderedBlocks:l,isSubmitting:C}),onClick:()=>{O(!0),x("COMPLETE")}},C?"Submitting":"Submit survey")))))))),e.createElement("footer",{className:"survey-footer"},e.createElement("div",{className:"survey-progress"},e.createElement(e.Fragment,null,e.createElement("span",{className:"progress-completion"},M.toFixed(),"% "),"survey completed",e.createElement(j,{totalSteps:c.length,completedSteps:I}))),e.createElement("div",{className:"survey-footer-text"},"Powered by ",e.createElement("a",{href:"https://www.freshworks.com/?utm_source=survey&utm_medium=survey_public_page",target:"_blank",rel:"noopener noreferrer"},e.createElement(f,null))))):null};x(":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 he=({thankYouQuestion:n,placeholders:t,pivotAnswer:r})=>e.createElement(e.Fragment,null,e.createElement("div",{className:"heading"},"Thank you!"),e.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:B(n.text,t,r)}})),ye=({activeIndexOfBlocks:n,activeIndexOfRenderedBlocks:t,renderedBlocks:r,blocks:o,answers:a,navigateToPreviousBlock:s,navigateToNextBlock:i})=>e.createElement("div",{className:"freemium-survey-step-navigation","data-navigation-element":"1"},e.createElement("button",{disabled:!!K("navigation-prev",{blocks:o,renderedBlocks:r,activeIndexOfBlocks:n,activeIndexOfRenderedBlocks:t,answers:a}),className:"navigation-button",onClick:s,title:"go to previous question"},e.createElement(v,{name:"arrow-previous"})),e.createElement("button",{className:"navigation-button",disabled:!!K("navigation-next",{blocks:o,renderedBlocks:r,activeIndexOfBlocks:n,activeIndexOfRenderedBlocks:t,answers:a}),onClick:i,title:"go to next question"},e.createElement(v,{name:"arrow-next"}))),xe=t=>{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}=t,[v,f]=n(!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&&U("navigation",h)&&U("skip",h);return 1!=s.length||0!==l||Y({blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s})?e.createElement("div",{className:"question-footer"},x?e.createElement(e.Fragment,null,U("next",h)&&e.createElement(H,{onClick:()=>{u(s[l],null,!0)},disabled:!!K("next",y),className:"next-button"},"Next"),e.createElement("div",{className:"compact-footer-layout"},e.createElement(ye,{answers:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,blocks:i,navigateToNextBlock:p,navigateToPreviousBlock:g}),e.createElement("button",{className:"skip-button",onClick:d,"aria-label":"skip question"},"Skip"))):e.createElement("div",{className:"action-buttons"},U("navigation",h)&&e.createElement("div",{style:{marginRight:"auto"}},e.createElement(ye,{answers:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,blocks:i,navigateToNextBlock:p,navigateToPreviousBlock:g})),U("skip",h)&&e.createElement("button",{className:"skip-button",onClick:d,"aria-label":"skip question"},"Skip"),U("next",h)&&e.createElement(H,{onClick:()=>{u(s[l],null,!0)},disabled:!!K("next",y),className:"next-button"},"Next"),U("submit",h)&&e.createElement("div",{className:"submit"},e.createElement(H,{disabled:!!K("submit",y),onClick:()=>{f(!0),m("COMPLETE")}},v?"Submitting":"Submit survey")))):null},be=r=>{const{blocks:s,renderedBlocks:l,activeBlock:u,activeIndexOfBlocks:m,activeIndexOfRenderedBlocks:p,isSurveyCompleted:g,isReverseAnimation:v,saveFormValues:f,saveOthersValue:h,skipBlock:y,onSubmitHandler:x,navigateToNextBlock:b,navigateToPreviousBlock:w,answers:k,questions:E,pivot:C}=ce(r),[O,_]=n(null),N=t(0),A=q(k.formValues)&&r.survey.prompt_settings?.is_enabled,[I,M]=n(A),T=t(A?-1:p);if(a((()=>{(()=>{if(O){O.style.minHeight="unset",O.style.maxHeight="unset",O.style.height="min-content",O.style.position="static";const e=Math.min(O?.scrollHeight+2,d[r.widgetStyle]);O.style.height=e+"px",O.style.minHeight=e+"px",N.current=e}})()}),[O]),o((()=>{r.setCurrentSurveyState?.({question:l[p]?.question,npsScore:C?.answer})}),[p,C?.answer]),o((()=>{p!==T.current&&(T.current=-1)}),[p]),!u||!u?.question)return null;r.widgetHeaderQuerySelector&&document.querySelector(r.widgetHeaderQuerySelector);const S=m+(g?1:0),Z=(S>0?100/s.length:0)*S;return e.createElement("div",{className:`freemium-survey-components widget-survey-components\n ${r.widgetStyle}-style `,id:"freemium-survey"},g||I?null:e.createElement("div",{className:"widget-progressbar"},e.createElement("div",{className:"progress-completion"},Z.toFixed(),"%"),e.createElement(j,{totalSteps:s.length,completedSteps:m+(g?1:0),widget:!0})),e.createElement("div",{className:"questions",style:{height:N.current,...A&&I||T.current===p?{transition:"none"}:{}}},e.createElement(c,{component:null},e.createElement(i,{key:p+String(g)+String(I),unmountOnExit:!0,addEndListener:(e,n)=>{e.addEventListener("transitionend",n,!1)},classNames:v?"fade-reverse":"fade"},e.createElement("div",{ref:e=>e?_(e):null,id:`${u.question.name}`,className:`question-container ${g?"thankyou":""} ${I?"prompt-container":""}`,"data-test-question-name":u.question.name},I&&r.survey.prompt_settings?e.createElement(le,{config:r.survey.prompt_settings,onSelect:e=>{r.onAnsweringPrompt(e),1===e&&M(!1)},placeholders:r.placeholders}):e.createElement(e.Fragment,null,g?e.createElement(he,{thankYouQuestion:Q({pivotQn:C?.question,pivotQnAnswer:C?.answer,block:r.survey.blocks?.find((e=>"TY"===e.name)),questions:E}),placeholders:r.placeholders,pivotAnswer:C?.answer}):e.createElement(e.Fragment,null,e.createElement("div",{className:"question-text "+("RANGE"===u?.question?.type_info?.question_type?"range-question-text":""),dangerouslySetInnerHTML:{__html:B(u?.question.text,r.placeholders,C?.answer)},"aria-label":`question-${p}`,role:"heading","aria-level":1}),e.createElement("div",{className:"question-wrapper",onTransitionEndCapture:e=>e.stopPropagation()},e.createElement(F,{question:u.question,isFinalQn:Y({blocks:s,activeIndexOfBlocks:m,renderedBlocks:l,activeIndexOfRenderedBlocks:p}),formValues:k.formValues,othersMeta:k.others,autoFocusDelay:0,saveOthersValue:h,onChangeHandler:e=>{f(u,e)}})),e.createElement(xe,{widget:!0,widgetStyle:r.widgetStyle,surveyStyle:"standard",answers:k,renderedBlocks:l,blocks:s,activeIndexOfRenderedBlocks:p,activeIndexOfBlocks:m,saveFormValues:f,skipBlock:y,onSubmitHandler:x,navigateToPreviousBlock:w,navigateToNextBlock:b}))))))))};x('#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 we=({survey:r,preview:o,placeholders:a,onSubmit:s,onDismiss:i,onClose:c,surveyType:l,unsubscribeUrl:u,isSurveyCompleted:m,children:d=null,answers:g,onAnsweringPrompt:h})=>{const y=r.question_details?.questions||[],[x,b]=n(!1),[w,k]=n(!1),[E,C]=n(0),{ui_theme:_}=r,[N,A]=n(null),[I,M]=n(null),T=D({questions:y}),S=()=>{b(!0),setTimeout((()=>{c?.()}),300)},Z=t(null);return e.createElement("div",{className:`surveyserv-widget-container ${l}-container-style ${w?"minimized":""}`,style:{opacity:x?0:1,"--container-width":`${p[l]}`,"--height-transition-duration":"600ms",...O(_)}},d,e.createElement("header",{id:"surveyserv-widget-header",className:"widget-header "+(w?"minimized":"")},w&&e.createElement("span",{className:"header-content minimized",dangerouslySetInnerHTML:{__html:B((r.prompt_settings?.is_enabled?r.prompt_settings.text:I?.question?.text)??T?.text,{...a,"{{nps.rating}}":String(I?.npsScore??"")})}}),e.createElement("div",{className:"icons"},!m&&e.createElement("button",{onClick:()=>{w?(k(!w),setTimeout((()=>{C(0)}),700)):(C(N?.clientHeight??0),setTimeout((()=>{k(!w)}),0))},className:"icon minimize-btn",title:w?"Maximize widget":"Minimize widget"},w?e.createElement(v,{name:"widget-maximize"}):e.createElement(v,{name:"widget-minimize"})),e.createElement("button",{ref:Z,onClick:()=>{m||i(),S()},title:"Dismiss widget",className:"icon minimize-btn"},e.createElement(v,{name:"widget-close"})))),e.createElement("main",{ref:e=>A(e),className:"widget-main "+(w?"minimized":""),style:{height:w?0:E||"auto"}},e.createElement(be,{answers:g,widgetStyle:l,survey:r,placeholders:a,onSubmit:s,setCurrentSurveyState:M,widgetHeaderQuerySelector:w?void 0:"#surveyserv-widget-header",onAnsweringPrompt:e=>{h?.(e),0==e&&q(r.prompt_settings?.declined_message)&&S()}})),e.createElement("footer",{className:"widget-footer"},u&&!w&&e.createElement("a",{href:u,target:"_blank",rel:"noopener noreferrer",onClick:e=>{o&&e.preventDefault(),e.stopPropagation(),S()}},"Unsubscribe"),e.createElement("div",{className:"footer-text"},"Powered by ",e.createElement("a",{className:"fw-link",href:"https://www.freshworks.com/?utm_source=survey&utm_medium=survey_public_page",target:"_blank",rel:"noopener noreferrer"},e.createElement(f,null)))))},ke=n=>{const{survey:t,answers:r}=ie(n.survey,n.answers);return e.createElement(e.Fragment,null,"standard"===n.surveyStyle?e.createElement(fe,{...n,answers:r,survey:t,initialPivotAnswer:q(n.answers)?n.initialPivotAnswer:void 0}):e.createElement(pe,{...n,answers:r,survey:t,surveyStyle:"card",initialPivotAnswer:q(n.answers)?n.initialPivotAnswer:void 0}))},Ee=n=>{const{survey:t,answers:r}=ie(n.survey,n.answers);return e.createElement(we,{...n,survey:t,answers:r})};x('.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 Ce=({children:n,title:t,closeModal:r,isModalOpen:o})=>e.createElement(i,{in:o,unmountOnExit:!0,timeout:500,classNames:"fade"},e.createElement("div",{className:"options-popup",style:{}},e.createElement("header",null,e.createElement("button",{onClick:r,className:"close"},e.createElement(v,{name:"widget-close"})),e.createElement("h4",null,t)),e.createElement("main",null,n),e.createElement("footer",null,"Tab an item to select it"))),qe=({question:r,saveFormValues:o})=>{const[a,s]=n(!1),{range:i}=r.type_info.scale_properties,c=i?.[0]?.min,l=i?.[i.length-1]?.max,u="descending"===r.type_info.scale_properties?.order,m=t(Array.from({length:l+(0===c?1:0)},((e,n)=>u?l-n:n+c)));return m.current.length<=3?e.createElement("ul",{className:"choices"},m.current.map((n=>e.createElement("li",{className:"choice range-choice"},e.createElement("button",{onClick:()=>{o(n),s(!1)}},Array.from({length:n},((n,t)=>e.createElement(e.Fragment,null,e.createElement(v,{name:"whatsapp-star"})," ")))))))):e.createElement(e.Fragment,null,e.createElement("button",{onClick:()=>s(!0),className:"choices-button choice"},e.createElement(v,{name:"whatsapp-choices"}),"Rate Support"),e.createElement(Ce,{title:"Rate Support",isModalOpen:a,closeModal:()=>s(!1)},m.current.reverse().map((n=>e.createElement("div",{className:"option-row"},e.createElement("button",{onClick:()=>{o(n),s(!1)}},Array.from({length:n},((n,t)=>e.createElement(v,{name:"whatsapp-star"})))))))))},Be=({question:t,saveFormValues:r})=>{const[o,a]=n(!1);return e.createElement(e.Fragment,null,e.createElement("button",{onClick:()=>a(!0),className:"choices-button choice"},e.createElement(v,{name:"whatsapp-choices"}),"Select answer"),e.createElement(Ce,{title:"Select a choice",isModalOpen:o,closeModal:()=>a(!1)},e.createElement("ul",{className:"choices"},t.choices.map((n=>e.createElement("li",{className:"choice"},e.createElement("button",{onClick:()=>{r(n.value),a(!1)}},n.value)))))))},Oe=n=>{const r=t(null);return((e,n)=>{o((()=>{if(e){e.style.height="0px";const n=e.scrollHeight;e.style.height=n+"px"}}),[e,n])})(r.current,String(n.value)??""),o((()=>{n.autoFocus&&r.current?.focus()}),[n.autoFocus]),e.createElement("div",{className:"textarea-container"},e.createElement("textarea",{placeholder:"Type a message",ref:r,rows:1,onChange:n.onChange,value:n.value}),e.createElement("button",{onClick:()=>{n.onSubmit(),r.current&&(r.current.value="")}},e.createElement(v,{name:"whatsapp-send"})))},_e=({children:n,text:t,placeholders:r})=>e.createElement("div",{className:"question-text-container"},e.createElement("div",{className:"question-text",dangerouslySetInnerHTML:{__html:B(t,r)},role:"heading","aria-level":1})),Ne=({block:n,saveFormValues:t})=>{const{question_type:r}=n.question.type_info;switch(r){case"RANGE":return e.createElement(qe,{question:n.question,saveFormValues:e=>t(e,!0)});case"DROPDOWN":case"MULTI_CHOICE":return e.createElement(Be,{question:n.question,saveFormValues:e=>t(e,!0)});case"PARAGRAPH":case"INPUT":return null;default:return console.error(`Question type ${r} not supported`),null}},Ae=({config:n,placeholders:t,onSelect:r,promptAccepted:o})=>{const s=a((()=>n.reverse_order?n.choices?.reverse():n.choices),[n]);return e.createElement(e.Fragment,null,e.createElement("div",{className:"question-container "+(null==o?"active":"")},e.createElement(_e,{text:n.text,placeholders:t}),e.createElement("ul",{className:"choices"},s?.map((n=>e.createElement("li",{className:"choice"},e.createElement("button",{className:"action",onClick:()=>{r(Number(n.id))}},n.value)))))),void 0!==o&&e.createElement("div",{className:"answers-container"},e.createElement("p",{className:"answers"},s.find((e=>e.id==o))?.value)),!1===o&&n.is_declined&&n.declined_message&&e.createElement("div",{className:"question-container"},e.createElement(_e,{text:n.declined_message,placeholders:t})))},Ie=r=>{const{activeBlock:a,activeIndexOfBlocks:s,activeIndexOfRenderedBlocks:i,answers:c,saveFormValues:l,blocks:u,questions:m,renderedBlocks:d,onSubmitHandler:p,isSurveyCompleted:g,pivot:v}=ce(r),{type:f="whatsapp"}=r,{question_type:h}=a?.question.type_info??{},y=t(null),[x,b]=n(void 0);return o((()=>{y.current&&y.current.scroll({top:1e4,behavior:"smooth"})}),[a,c,g]),a&&a.question?(console.log("blocks",u),e.createElement("div",{className:`${f} whatsapp-container`},e.createElement("div",{className:"scroll-wrapper",ref:y},r.survey.prompt_settings?e.createElement(Ae,{config:r.survey.prompt_settings,onSelect:e=>{b(1===e)},promptAccepted:x,placeholders:r.placeholders}):null,x?d.map(((n,t)=>e.createElement(e.Fragment,null,e.createElement("div",{className:"question-container "+(t===d.length-1?"active":"")},e.createElement(_e,{text:n.question.text,placeholders:r.placeholders}),e.createElement(Ne,{block:n,placeholders:r.placeholders,saveFormValues:(e,t)=>{l(n,e,t),setTimeout((()=>{!0===t&&Y({blocks:u,activeIndexOfBlocks:s,renderedBlocks:d,activeIndexOfRenderedBlocks:i})&&p("COMPLETE")}))}})),n.name!==a.name||c.commitDirtyValue?e.createElement("div",{className:"answers-container"},e.createElement("p",{className:"answers"},c.formValues[n.question.name])):null))):null,g&&e.createElement("div",{className:"question-container",id:"new"},e.createElement(_e,{text:Q({pivotQn:v?.question,pivotQnAnswer:v?.answer,block:r.survey.blocks?.find((e=>"TY"===e.name)),questions:m})?.text,placeholders:r.placeholders}))),e.createElement(Oe,{onChange:e=>{"PARAGRAPH"===h&&l(a,e.target.value)},value:"PARAGRAPH"!==h||g?"":c.formValues[a.question.name],activeBlock:!0,autoFocus:"PARAGRAPH"===h,onSubmit:()=>{l(a,null,!0),a.name===u[u.length-1].name&&p("COMPLETE")}}))):null},Me=n=>{const{survey:t,answers:r}=ie(n.survey,n.answers);return"whatsapp"===n.channel?e.createElement(Ie,{...n,survey:t,answers:r}):"instagram"===n.channel?e.createElement(Ie,{type:"instagram",...n,survey:t,answers:r}):(console.error(`Channel ${n.channel} not supported`),null)};export{V as BUTTON_SIZE_VARIANTS,b as Binary,H as Button,Me as ChannelPreview,S as CheckboxGroup,I as Input,j as ProgressBar,R as Radio,z as RadioGroup,E as Range,ke as Survey,M as TextArea,Ee as WebInAppSurvey};
|
|
1
|
+
import e,{useState as n,useRef as t,forwardRef as r,useEffect as o,useMemo as a}from"react";import{SwitchTransition as s,CSSTransition as i,TransitionGroup as c}from"react-transition-group";const l=["RANGE","NPS","BOOLEAN"],u="Others",m=300,d={default:500,compact:500,cozy:400},p={default:"600px",compact:"350px",cozy:"96%"},g={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"]},v=({name:n})=>{switch(n){case"arrow-previous":return e.createElement("svg",{width:"9",height:"14",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{width:"9",height:"14",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"11",viewBox:"0 0 11 11",fill:"none"},e.createElement("mask",{id:"a",maskUnits:"userSpaceOnUse",x:"-.400146",y:"-.400024",width:"11",height:"11",fill:"#000"},e.createElement("path",{fill:"#fff",d:"M-.400146-.400024h11v11h-11z"}),e.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"})),e.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"}),e.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 e.createElement("svg",{width:"8",height:"8",viewBox:"0 0 7 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{width:"11",height:"10",viewBox:"0 0 11 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("rect",{opacity:"0.01",x:"0.16748",width:"10",height:"10",fill:"white",fillOpacity:"0.01"}),e.createElement("path",{d:"M1.85129 1.68479L8.48395 8.31744",stroke:"#264966",strokeWidth:"1.5",strokeLinecap:"round"}),e.createElement("path",{d:"M8.48395 1.68479L1.85129 8.31744",stroke:"#264966",strokeWidth:"1.5",strokeLinecap:"round"}));case"thumbs-up":return e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.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 e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"15",viewBox:"0 2 12 10"},e.createElement("g",{"clip-path":"url(#clip0_5046_3845)"},e.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"})),e.createElement("defs",null,e.createElement("clipPath",{id:"clip0_5046_3845"},e.createElement("rect",{width:"13.5701",height:"13.5701",fill:"white",transform:"translate(0.361694 0.593502)"}))));case"whatsapp-send":return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 30 30",fill:"none"},e.createElement("rect",{x:"0.413086",y:"0.903687",width:"29.0062",height:"29.0062",rx:"14.5031",fill:"#00927C"}),e.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 e.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"},e.createElement("path",{d:"M0 14.98H14V0.98H0V14.98Z",fill:"url(#pattern0)"}),e.createElement("defs",null,e.createElement("pattern",{id:"pattern0",patternContentUnits:"objectBoundingBox",width:"1",height:"1"},e.createElement("use",{xlinkHref:"#image0_5309_474151",transform:"scale(0.015625)"})),e.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 e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20"},e.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"}),e.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}},f=()=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"92",height:"20",viewBox:"0 0 200 40"},e.createElement("g",{fill:"none",fillRule:"nonzero"},e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}),e.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"}))),h=({glyph:n})=>{switch(n){case"smiley-1":return e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.createElement("path",{stroke:"#000","stroke-linecap":"round","stroke-width":"1.38",d:"M22.113 40h20.759"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.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"}),e.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 e.createElement(e.Fragment,null,e.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"}),e.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"}),e.createElement("path",{d:"M21.4651 36.3131L19.0742 37.4609",stroke:"#272525","stroke-width":"1.37533","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElement("path",{d:"M44.5508 36.3131L46.9456 37.4609",stroke:"#272525","stroke-width":"1.37533","stroke-linecap":"round","stroke-linejoin":"round"}),e.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"}),e.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 e.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}},y=({highlight:n,index:t=0,type:r,scale:o})=>"STAR"===r?e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"5.86,4.97,37.94,36.23",fill:n?"#F5B800":"#adadad"},e.createElement(h,{glyph:"star"})):["tick","cross"].includes(r)?e.createElement("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(h,{glyph:g[o][t]})):e.createElement("svg",{width:"52",height:"52",viewBox:"0 0 66 66",fill:n?"#ffc75c":"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement(h,{glyph:g[o][t]}));function x(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))}}x(".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 b=({type_info:n,onSelect:t,value:r})=>{let o=n?.scale_properties?.labels?.values;const a="descending"===n?.scale_properties?.order,s=e=>a?(e+1)%2:e;return e.createElement("div",{className:"binary-question"},e.createElement("div",{className:"choices"},(a?o?.slice().reverse():o)?.map(((o,a)=>{return e.createElement("button",{className:("choice "+(Number(r)==Number(s(a))?"active":"")).trim(),onClick:()=>{t?.(Boolean(s(a)))}},e.createElement(v,{name:(i=Number(s(a)),c=n?.type_variant,"THUMBS"===c?["thumbs-down","thumbs-up"][i]:["cross","tick"][i])}),"none"!==n?.scale_properties?.labels?.preference&&o);var i,c}))),e.createElement("div",{className:"footer",role:"note"},n.footer_text))};x(".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 w=(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"},k=({type_variant:n,activeStarRating:t,eachValue:r,max:o,props:a})=>e.createElement(e.Fragment,null,"NUMBER"===n&&r,"TEXT"===n&&a.type_info.scale_properties?.labels?.values[r-1],["STAR","EMOJI"].includes(n)&&e.createElement(y,{scale:o,type:n,index:Math.max(0,r-1),highlight:a.value===r&&-1===t})),E=r=>{const{type_info:{type_variant:o="NUMBER",scale_properties:{button_style:{type:a="highlighted",shape:s="rounded"}={},labels:{values:i=["Very unlikely","Very likely"],preference:c="none"}={},range:l=[{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:u}}=r,m=Number(l?.[0]?.min),d=Number(l?.[l.length-1]?.max),p="descending"===r.type_info.scale_properties?.order,[g,v]=n(-1),f=t(Array.from({length:d+(0===m?1:0)},((e,n)=>p?d-n:n+m)));return 1===(h=r.type_info)?.scale_properties?.range?.[h?.scale_properties.range.length-1]?.max?e.createElement(b,{type_info:r.type_info,onSelect:e=>r.onChangeHandler(Number(e)),value:null==r.value?r.value:!!r.value}):e.createElement("div",{className:"range-container","data-test-input":"range"},e.createElement("div",{className:`range-scale ${s} ${a} variant-${o.toLowerCase()} ${3===f.current.length?"minimal":""}`},e.createElement("div",{className:"button-container "+(d<=7?"compact":"")},e.createElement("div",{className:`choices ${"TEXT"===o||"all"===c?"with-labels ":""}${o} ${f.current.length>7?"wrap":"no-wrap"}`.trim(),role:"radiogroup","aria-required":!0},f.current.map((n=>e.createElement("div",{className:`choice-container scale-${f.current.length}`},e.createElement("button",{className:`choice ${w(n,g,o,p,l,r.value)}`,role:"radio","aria-checked":r.value===n,key:n,"data-test-range-choice":n,onClick:e=>{r.onChangeHandler(n)},onMouseOver:()=>{"STAR"===o&&v(n)},onMouseLeave:()=>{"STAR"===o&&v(-1)}},e.createElement(k,{type_variant:o,activeStarRating:g,eachValue:n,max:d,props:r}),"TEXT"!==o&&"all"===c&&e.createElement("div",{className:"contained label",role:"note"},i[0===m?n:n-1])),"TEXT"!==o&&"all"===c&&e.createElement("div",{className:"uncontained label",role:"note"},i[0===m?n:n-1]))))),"TEXT"!==o&&"edges"===c&&e.createElement("div",{className:"labels",style:{flexDirection:p?"row-reverse":"row"}},e.createElement("span",{className:"label",role:"note"},`${m} - ${i[0]}`),e.createElement("span",{className:"label",role:"note"},`${d} - ${i[i.length-1]}`)))),e.createElement("div",{className:"footer",role:"note"},u));var h},C=(e,n)=>(e.defaultProps=n,e),q=e=>null==e||"string"==typeof e&&""===e.trim()||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,B=(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??""},O=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}});x('.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 _={isRequired:!1,showCount:!0,isErrored:!1,inline:!1,spellCheck:!1},N=r(((n,r)=>{const a=t(null);o((()=>{setTimeout((()=>{a.current?.focus()}),m+(n.autoFocusDelay??0))}),[]);const{inputStyle:s,style:i,className:c,showCount:l,isErrored:u,startLabel:d,isRequired:p,errorText:g,endLabel:v,maxLength:f=256,onChange:h,...y}=n;return e.createElement("div",{className:"input-container",style:i},n.label&&e.createElement("label",{className:"input-label "+(p?"required":"")},n.label),e.createElement(e.Fragment,null,d&&e.createElement("div",{className:"start-label"},d),e.createElement("div",{className:`input-basic ${u?"error":""}${c||""}`},e.createElement("input",{...y,onFocus:e=>e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length),type:"text",autoComplete:"off",ref:a,style:s,onChange:e=>{e.target.value?.length>f||h?.(e)}}),l&&f>0&&e.createElement("div",{className:"end-max-length"},`${n.value&&n.value.length||0}/${f}`)),v&&e.createElement("div",{className:"end-label"},v)),u&&g&&e.createElement("span",{className:"input-error"},n.errorText))})),A=r(((n,r)=>{const a=t(null);o((()=>{setTimeout((()=>{a.current?.focus()}),m+(n.autoFocusDelay??0))}),[]);const{inputStyle:s,style:i,className:c,showCount:l,maxLength:u=1500,startLabel:d,isRequired:p,onChange:g,...v}=n;return e.createElement(e.Fragment,null,e.createElement("div",{className:"textarea-container",style:i},n.label&&e.createElement("label",{className:"input-label "+(p?"required":"")},n.label),d&&e.createElement("div",{className:"start-label"},d),e.createElement("div",{className:`input-basic ${c||""}`},e.createElement("textarea",{...v,onFocus:e=>e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length),autoComplete:"off",ref:a,style:s,onChange:e=>{e.target.value?.length>u||g?.(e)}}),l&&u&&u>0&&e.createElement("div",{className:"end-max-length"},`${n.value&&n.value.length||0}/${u}`)),n.endLabel&&e.createElement("div",{className:"end-label"},n.endLabel)))})),I=C(N,_),M=C(A,_);x('.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 T=()=>e.createElement("svg",{id:"tick",className:"tick-icon",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"title",viewBox:"0 0 10 10"},e.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"})),S=({values:n=[],othersValue:r="",options:a,name:s,autoFocusDelay:i,onChangeHandler:c,saveOthersValue:l})=>{const d=n.includes(u),p=t(null);return o((()=>{setTimeout((()=>{p.current?.focus()}),m+i)}),[]),e.createElement("div",{className:"checkbox-group"},e.createElement("button",{ref:p,className:"autofocus-button","aria-label":"checkbox question"}),a?.filter((e=>e.value!==u)).filter((e=>!e.meta?.is_deleted)).map(((t,r)=>e.createElement(Z,{key:t.id,checked:n?.includes(t.value),name:t.value,id:t.id,onChange:(e,r)=>{if(r){const e=a.reduce(((e,n)=>({...e,[n.value]:n.position})),{});c([...n||[],t.value].sort(((n,t)=>e[n]-e[t])))}else{const e=n.indexOf(t.value);e>-1&&n.splice(e,1),c([...n])}}},t.value))),a?.find((e=>e.value===u))&&e.createElement(Z,{key:"others",checked:d,name:u,id:u,onChange:(e,t)=>{if(t)c([...n,u]);else{const e=n.findIndex((e=>e===u));n.splice(e,1),c(n)}}},"Others"),d&&e.createElement(e.Fragment,null,e.createElement(I,{placeholder:"Enter your comment",value:r,onChange:e=>{l(s,e.target.value)},autoFocusDelay:10,label:""})))},Z=C((n=>{const r=t(null);return o((()=>{n.autoFocus&&setTimeout((()=>{r.current?.focus()}),320)}),[]),e.createElement("label",{className:`checkbox-label ${n.disabled&&"disabled"}`},e.createElement("input",{ref:r,id:n.id,type:"checkbox",name:n.name,readOnly:n.readOnly,disabled:n.disabled,"aria-disabled":n.disabled,checked:n.checked,onChange:n.readOnly?()=>{}:e=>n.onChange(e,e.target.checked)}),e.createElement("div",{className:"checkbox"},n.checked&&e.createElement("div",{className:"icon-container"},e.createElement(T,null)," ")),e.createElement("div",null,n.children))}),{checked:!1});x('.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 z=({name:n,options:r,value:a,autoFocusDelay:s,onChangeHandler:i,saveOthersValue:c,othersOption:l,othersRequired:d,othersValue:p,isFinalQn:g})=>{const v=t(null);return o((()=>{setTimeout((()=>{v.current?.focus()}),m+s)}),[]),e.createElement("div",{className:"radio-group",role:"radiogroup"},e.createElement("button",{ref:v,className:"autofocus-button","aria-label":"radio question",tabIndex:-1}),r?.sort(((e,n)=>e.value===u?1:n.value===u?-1:0)).filter((e=>!e.meta?.is_deleted))?.map(((t,r)=>e.createElement(R,{key:t.value,value:t.value,name:n,onChange:e=>{e.currentTarget.value!==u&&c(n,null),i(e.currentTarget.value)},checked:a===t.value},t.value===u?"Others":t.value))),a===u&&e.createElement(e.Fragment,null,e.createElement(I,{value:p??"",onChange:e=>{a!==u&&g&&i(u),c(n,e.target.value)},placeholder:"Enter your comment",label:"",autoFocusDelay:10})))},R=C((n=>{const r=t(null);return o((()=>{n.autoFocus&&setTimeout((()=>{r.current?.focus()}),320)}),[]),e.createElement("label",{className:"radio-label"},e.createElement("input",{ref:r,type:"radio",name:n.name,value:n.value,checked:n.checked,onChange:n.onChange}),e.createElement("div",{className:"radio"}),e.createElement("div",null,n.children))}),{checked:!1,autoFocus:!1});x(".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 j=n=>{const{totalSteps:t,completedSteps:r,widget:o}=n;return e.createElement("div",{className:"progressbar-container "+(o?"widget":"")},e.createElement("div",{className:"progressbar",style:{width:(r>0?100/t:0)+"%",transform:`scaleX(${r})`}}))};x(".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 L=()=>e.createElement(e.Fragment,null,"..."),V={LARGE:"large",MINI:"mini",NORMAL:"normal"},H=n=>{const{inline:t=!1,children:r,disabled:o,className:a="",htmlType:s,type:i="primary",onClick:c,size:l,overrideStyleClassName:u="",loading:m=!1,...d}=n;return e.createElement("button",{style:t?{display:"inline-block"}:{},disabled:o,className:`action-button ${a} ${u}`,type:s,onClick:c,...d},m?e.createElement(L,null):r)},F=({question:n,formValues:t,othersMeta:r,onChangeHandler:o,saveOthersValue:a,autoFocusDelay:s,isFinalQn:i})=>{switch(n.type_info.question_type){case"RANGE":return e.createElement(E,{type_info:n.type_info,onChangeHandler:o,value:t[n.name]});case"CHECKBOX":case"MULTI_SELECT":return e.createElement(S,{name:n.name,values:t[n.name],othersValue:r[n.name],options:n.choices,onChangeHandler:o,saveOthersValue:a,othersOption:n.choices.find((e=>e.value===u)),othersRequired:n.type_info.meta?.othersRequired,autoFocusDelay:s});case"RADIO":case"DROPDOWN":return e.createElement(z,{autoFocusDelay:s,name:n.name,onChangeHandler:o,saveOthersValue:a,options:n.choices,value:t[n.name],othersValue:r[n.name],othersOption:n.choices.find((e=>e.value===u)),othersRequired:n.type_info.meta?.othersRequired,isFinalQn:i});case"INPUT":case"TEXT":return n.type_info?.meta?.readOnly?e.createElement("div",{className:"message-container"},n.type_info?.meta?.value):e.createElement("div",{className:"responsive-text-field"},e.createElement(I,{autoFocusDelay:s,label:"",isRequired:n.is_required,value:t[n.name]||"",placeholder:n.type_info?.meta?.placeholder??"",onChange:e=>o(e.target.value)}),e.createElement(M,{autoFocusDelay:s,label:"",maxLength:256,isRequired:n.is_required,placeholder:n.type_info?.meta?.placeholder??"",value:t[n.name]||"",onChange:e=>o(e.target.value)}));case"PARAGRAPH":return e.createElement(M,{autoFocusDelay:s,label:"",isRequired:n.is_required,placeholder:n.type_info?.meta?.placeholder??"",value:t[n.name]||"",onChange:e=>o(e.target.value)});case"BOOLEAN":return e.createElement(b,{type_info:n.type_info,onSelect:o,value:t[n.name]});default:return console.error(`Question type ${n.type_info.question_type} not found`),null}};x(":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 D=({questions:e})=>e.find((e=>e.type_info?.pivot_question))??e.find((e=>"RANGE"===e.type_info?.question_type))??e[0],P=(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))},Y=({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},Q=({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))},X=({activeBlock:e,blocks:n,activeIndexOfBlocks:t,answers:r})=>{if((({activeBlock:e,answers:n})=>{const t=n.formValues[e.question.name];return q(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},J=({question:e,answers:n})=>!q(n.formValues[e.name])&&l.includes(e?.type_info?.question_type||"")&&!("DROPDOWN"===e.type_info?.question_type&&n.formValues[e.name]===u)||n.commitDirtyValue,G=({blocks:e,activeIndexOfBlocks:n,renderedBlocks:t,activeIndexOfRenderedBlocks:r,answers:o})=>{const{question:a}=t[r];return!!a&&(!Y({blocks:e,activeIndexOfBlocks:n,renderedBlocks:t,activeIndexOfRenderedBlocks:r})&&J({question:a,answers:o}))},U=(e,{answers:n,blocks:t,activeIndexOfBlocks:r,renderedBlocks:o,activeIndexOfRenderedBlocks:a,surveyStyle:s,widget:i,blockIndex:c})=>{const m=Y({blocks:t,activeIndexOfBlocks:r,renderedBlocks:o,activeIndexOfRenderedBlocks:a}),d=o[a],p=d.question;switch(e){case"next":return(!l.includes(p.type_info?.question_type??"")||"DROPDOWN"===p.type_info?.question_type&&n.formValues[p.name]===u)&&!m&&c===a;case"skip":return!d.required&&!m&&c===a;case"submit":return m;case"navigation":return(i||"card"===s)&&!(0===a&&1===o.length);case"clear-selection":return null!=c&&c!==a&&"DROPDOWN"===o[c].question.type_info?.question_type&&n.formValues[o[c].question.name]}},W=(e,n)=>("MULTI_SELECT"===e.question.type_info?.question_type&&n.formValues[e.question.name]?.includes(u)||"DROPDOWN"===e.question.type_info?.question_type&&n.formValues[e.question.name]===u)&&q(n.others[e.question.name]),K=(e,{answers:n,blocks:t,activeIndexOfBlocks:r,renderedBlocks:o,activeIndexOfRenderedBlocks:a,isSubmitting:s})=>{const i=o[a];switch(e){case"next":return q(n?.formValues[i.question.name])||i.question.type_info?.meta?.othersRequired&&W(i,n);case"submit":return(i.required||i.question.type_info?.pivot_question)&&q(n?.formValues[i.question.name])||i.question?.type_info?.meta?.othersRequired&&W(i,n)||s;case"navigation-prev":return 0==a;case"navigation-next":return a>=o.length-1;default:return!1}},$=({renderedBlocks:e,activeIndexOfRenderedBlocks:n,answers:t})=>{const r=ee({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}},ee=({renderedBlocks:e,activeIndexOfRenderedBlocks:n})=>e.slice(0,n+1),ne=(e,n,t)=>{const{others_meta:r={},...o}=t||{};if(q(o))return{renderedBlocks:[],activeIndexOfRenderedBlocks:0,pivot:null,answers:{formValues:{},others:{},commitDirtyValue:!1},isInitialTransition:!0};const a=e.filter((e=>e.question_names?.some((e=>t?.[e])))).map((e=>{const r=e.question_names?.find((e=>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=D({questions:n}),l={question:c,answer:o[c.name]},u=(({blocks:e,answers:n,questions:t,activeBlock:r,activeIndexOfBlocks:o,pivot:a})=>{const s=X({activeBlock:r,blocks:e,activeIndexOfBlocks:o,answers:n}),i=Q({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 te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var re,oe,ae,se=(re=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]",O="[object Uint16Array]",_="[object Uint32Array]",N=/\w*$/,A=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,M={};M[o]=M["[object Array]"]=M[y]=M[x]=M[a]=M[s]=M[b]=M[w]=M[k]=M[E]=M[C]=M[l]=M[u]=M[m]=M[p]=M[g]=M[v]=M[f]=M[q]=M[B]=M[O]=M[_]=!0,M["[object Error]"]=M[i]=M[h]=!1;var T="object"==typeof te&&te&&te.Object===Object&&te,S="object"==typeof self&&self&&self.Object===Object&&self,Z=T||S||Function("return this")(),z=n&&!n.nodeType&&n,R=z&&e&&!e.nodeType&&e,j=R&&R.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 D(e){var n=-1,t=Array(e.size);return e.forEach((function(e,r){t[++n]=[r,e]})),t}function P(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,J=Function.prototype,G=Object.prototype,U=Z["__core-js_shared__"],W=(Q=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"",K=J.toString,$=G.hasOwnProperty,ee=G.toString,ne=RegExp("^"+K.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=j?Z.Buffer:void 0,oe=Z.Symbol,ae=Z.Uint8Array,se=P(Object.getPrototypeOf,Object),ie=Object.create,ce=G.propertyIsEnumerable,le=X.splice,ue=Object.getOwnPropertySymbols,me=re?re.isBuffer:void 0,de=P(Object.keys,Object),pe=je(Z,"DataView"),ge=je(Z,"Map"),ve=je(Z,"Promise"),fe=je(Z,"Set"),he=je(Z,"WeakMap"),ye=je(Object,"create"),xe=De(pe),be=De(ge),we=De(ve),ke=De(fe),Ee=De(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 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 _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 Ne(e){this.__data__=new Oe(e)}function Ae(e,n){var t=Ye(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&Qe(e)}(e)&&$.call(e,"callee")&&(!ce.call(e,"callee")||ee.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&&!$.call(e,s)||a&&("length"==s||He(s,r))||t.push(s);return t}function Ie(e,n,t){var r=e[n];$.call(e,n)&&Pe(r,t)&&(void 0!==t||n in e)||(e[n]=t)}function Me(e,n){for(var t=e.length;t--;)if(Pe(e[t][0],n))return t;return-1}function Te(e,n,t,r,d,h,A){var I;if(r&&(I=h?r(e,d,h,A):r(e)),void 0!==I)return I;if(!Ge(e))return e;var T=Ye(e);if(T){if(I=function(e){var n=e.length,t=e.constructor(n);return n&&"string"==typeof e[0]&&$.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,I)}else{var S=Ve(e),Z=S==i||S==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(S==m||S==o||Z&&!h){if(F(e))return h?e:{};if(I=function(e){return"function"!=typeof e.constructor||Fe(e)?{}:Ge(n=se(e))?ie(n):{};var n}(Z?{}:e),!n)return function(e,n){return ze(e,Le(e),n)}(e,function(e,n){return e&&ze(n,Ue(n),e)}(I,e))}else{if(!M[S])return h?e:{};I=function(e,n,t,r){var o,i=e.constructor;switch(n){case y:return Ze(e);case a:case s:return new i(+e);case x:return function(e,n){var t=n?Ze(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 O:case _:return function(e,n){var t=n?Ze(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(D(e),!0):D(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,S,Te,n)}}A||(A=new Ne);var z=A.get(e);if(z)return z;if(A.set(e,I),!T)var R=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););}(R||e,(function(o,a){R&&(o=e[a=o]),Ie(I,a,Te(o,n,t,r,a,e,A))})),I}function Se(e){return!(!Ge(e)||(n=e,W&&W in n))&&(Je(e)||F(e)?ne:A).test(De(e));var n}function Ze(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;Ie(t,s,void 0===i?e[s]:i)}return t}function Re(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 Se(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 $.call(n,e)?n[e]:void 0},Be.prototype.has=function(e){var n=this.__data__;return ye?void 0!==n[e]:$.call(n,e)},Be.prototype.set=function(e,n){return this.__data__[e]=ye&&void 0===n?t:n,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var n=this.__data__,t=Me(n,e);return!(t<0||(t==n.length-1?n.pop():le.call(n,t,1),0))},Oe.prototype.get=function(e){var n=this.__data__,t=Me(n,e);return t<0?void 0:n[t][1]},Oe.prototype.has=function(e){return Me(this.__data__,e)>-1},Oe.prototype.set=function(e,n){var t=this.__data__,r=Me(t,e);return r<0?t.push([e,n]):t[r][1]=n,this},_e.prototype.clear=function(){this.__data__={hash:new Be,map:new(ge||Oe),string:new Be}},_e.prototype.delete=function(e){return Re(this,e).delete(e)},_e.prototype.get=function(e){return Re(this,e).get(e)},_e.prototype.has=function(e){return Re(this,e).has(e)},_e.prototype.set=function(e,n){return Re(this,e).set(e,n),this},Ne.prototype.clear=function(){this.__data__=new Oe},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 Oe){var r=t.__data__;if(!ge||r.length<199)return r.push([e,n]),this;t=this.__data__=new _e(r)}return t.set(e,n),this};var Le=ue?P(ue,Object):function(){return[]},Ve=function(e){return ee.call(e)};function He(e,n){return!!(n=null==n?r:n)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<n}function Fe(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||G)}function De(e){if(null!=e){try{return K.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Pe(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=ee.call(e),t=n==m?e.constructor:void 0,r=t?De(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)&&!Je(e)}var Xe=me||function(){return!1};function Je(e){var n=Ge(e)?ee.call(e):"";return n==i||n==c}function Ge(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}function Ue(e){return Qe(e)?Ae(e):function(e){if(!Fe(e))return de(e);var n=[];for(var t in Object(e))$.call(e,t)&&"constructor"!=t&&n.push(t);return n}(e)}e.exports=function(e){return Te(e,!0,!0)}},re(ae={path:oe,exports:{},require:function(e,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&ae.path)}},ae.exports),ae.exports);const ie=(e,n)=>{const{filteredSurvey:t,filteredAnswers:r}=a((()=>{const t=se(e),r=(t.question_details?.questions||[]).filter((e=>!e.type_info?.meta?.is_deleted)),{others_meta:o,...a}=n||{others_meta:{}},s=r.reduce(((e,n)=>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:{...t,question_details:{questions:r},blocks:i},filteredAnswers:{...s,others_meta:o}}}),[]);return{survey:t,answers:r}},ce=r=>{const s=r.survey.question_details?.questions||[],[i]=n(r.survey.blocks?.filter((e=>"TY"!==e.name))),c=a((()=>ne(i,s,r.answers)),[i,s,r.answers]),[l,u]=n(c.answers),[m,d]=n(c.renderedBlocks),[p,g]=n(c.activeIndexOfRenderedBlocks),[v,f]=n(!1),[h,y]=n(!1),x=t(c.pivot),b=t(!1),w=t(),k=t(c.isInitialTransition),E=m[p],C=e.useMemo((()=>m.length>0?i?.findIndex((e=>e.name===m[p].name)):0),[p]);o((()=>{const{others_meta:e,...n}=r.answers||{};if(!i||!i.length||!q(n))return;x.current={...x.current,question:D({questions:s})},null!=r.initialPivotAnswer&&(x.current={...x.current,answer:P(x.current.question,r.initialPivotAnswer)},u({...l,formValues:{[x.current.question.name]:x.current.answer}}));const t=Q({pivotQn:x.current.question,pivotQnAnswer:x.current.answer,block:i[0],questions:s});d([{...i[0],question:t}])}),[i,r.initialPivotAnswer]),o((()=>{m.length&&(m.length>1&&(k.current=!1),g(m.length-1))}),[m]),o((()=>{if(!q(l.formValues)&&i&&G({blocks:i,activeIndexOfBlocks:C,renderedBlocks:m,activeIndexOfRenderedBlocks:p,answers:l})){const e=()=>{f(!1);const e=X({activeBlock:E,blocks:i,activeIndexOfBlocks:C,answers:l});if(e===1/0)return void setTimeout((()=>{_("COMPLETE"),y(!0)}));setTimeout((()=>{_()}));const n=Q({pivotQn:x.current?.question,pivotQnAnswer:x.current?.answer,block:i?.[e],questions:s}),t=ee({renderedBlocks:m,activeIndexOfRenderedBlocks:p});d([...t,{...i?.[e],question:n}])};null!=r.initialPivotAnswer&&1==m.length?w.current?(clearTimeout(w.current),w.current=null,e()):w.current=setTimeout((()=>{e()}),1500):e()}}),[l,i]),o((()=>{!q(l.formValues)&&b.current&&(v?O():B(),b.current=!1)}),[v]);const B=()=>{v?(b.current=!0,f(!1)):g(p+1)},O=()=>{v?g(p-1):(b.current=!0,f(!0))},_=(e="PARTIAL")=>{let n=()=>{};"COMPLETE"===e&&(n=()=>{y(!0)}),r.onSubmit({...l.formValues,others_meta:l.others},n,e)};return{blocks:i,questions:s,renderedBlocks:m,activeBlock:E,activeIndexOfBlocks:C,activeIndexOfRenderedBlocks:p,isSurveyCompleted:h,isReverseAnimation:v,isNavigating:b.current,pivot:x.current,answers:l,isInitialTransition:k.current,navigateToNextBlock:B,navigateToPreviousBlock:O,saveFormValues:(e,n,t=!1)=>{e.question.name===x.current?.question.name&&x.current&&(x.current={...x.current,answer:n});let r=l;(t||J({question:e.question,answers:l}))&&(r=$({renderedBlocks:m,activeIndexOfRenderedBlocks:p,answers:l})),u({...r,formValues:{...r.formValues,...null!=n&&{[e.question.name]:n}},commitDirtyValue:t})},saveOthersValue:(e,n)=>{if(null===n){const n={...l.others};delete n[e],u({...l,commitDirtyValue:!1,others:n})}else u({...l,commitDirtyValue:!1,others:{...l.others,[e]:n}})},skipBlock:()=>{f(!1);const e=E.question;if(delete l.formValues[e.name],delete l.others[e.name],p!==m.length-1){const e=$({renderedBlocks:m,activeIndexOfRenderedBlocks:p,answers:l}),n=ee({renderedBlocks:m,activeIndexOfRenderedBlocks:p});d(n),u({...e,commitDirtyValue:!0})}else u({...l,commitDirtyValue:!0})},onSubmitHandler:_}};x(".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-text.prompt-declined {\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 le=({config:t,onSelect:r,placeholders:o})=>{const[a,s]=n(!1);return a?t.is_declined&&t.declined_message?e.createElement("div",{className:"question-container"},e.createElement("p",{className:"question-text prompt-declined",dangerouslySetInnerHTML:{__html:B(t.declined_message,o)}})):null:e.createElement("div",{className:"prompt-question"},e.createElement("p",{className:"question-text",dangerouslySetInnerHTML:{__html:B(t.text,o)}}),e.createElement("div",{className:"actions"},(t.reverse_order?[...t.choices||[]].reverse():t.choices)?.map((n=>{return e.createElement("button",{className:"action",onClick:()=>{"0"==n.id&&s(!0),r(Number(n.id))}},e.createElement(v,{name:(o=Number(n.id),a=t.type_variant||"THUMBS","THUMBS"===a?["thumbs-down","thumbs-up"][o]:["cross","tick"][o])}),n.value);var o,a}))))},ue=({thankYouQuestion:n,preview:t,placeholders:r,pivotAnswer:a})=>{const{redirectUrl:s,redirectDelay:i}=n.type_info?.meta??{};return o((()=>{t||s&&setTimeout((()=>{window.location.href=s??""}),1e3*(i??0)??1e4)}),[]),e.createElement("div",{className:"question-container thankyou"},e.createElement("div",{className:"heading"},"Thank you!"),e.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:B(n.text,r,a)}}),s&&e.createElement("div",{style:{width:"100%"}},e.createElement("div",{className:"redirection-text"},"You will be redirected to the below URL automatically in"," ",i," seconds.",e.createElement("br",null)),e.createElement("a",{className:"link",href:s},s)))},me=({activeIndexOfBlocks:n,activeIndexOfRenderedBlocks:t,renderedBlocks:r,blocks:o,answers:a,navigateToPreviousBlock:s,navigateToNextBlock:i})=>e.createElement("div",{className:"freemium-survey-step-navigation","data-navigation-element":"1"},e.createElement("button",{disabled:K("navigation-prev",{blocks:o,answers:a,renderedBlocks:r,activeIndexOfBlocks:n,activeIndexOfRenderedBlocks:t}),className:"navigation-button",onClick:s,title:"Go to previous question"},e.createElement(v,{name:"arrow-previous"})),e.createElement("button",{className:"navigation-button",disabled:K("navigation-next",{blocks:o,answers:a,renderedBlocks:r,activeIndexOfBlocks:n,activeIndexOfRenderedBlocks:t}),title:"Go to next question",onClick:i},e.createElement(v,{name:"arrow-next"}))),de=t=>{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}=t,[f,h]=n(!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&&!Y({blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s})?null:e.createElement("div",{className:"question-footer"},U("navigation",y)&&e.createElement(me,{answers:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,blocks:i,navigateToNextBlock:p,navigateToPreviousBlock:g}),e.createElement("div",{className:"action-buttons"},U("next",y)&&e.createElement(H,{onClick:()=>{u(s[l],null,!0)},disabled:K("next",x),className:"next-button"},"Next"),U("skip",y)&&e.createElement("button",{className:"skip-button",onClick:d,"aria-label":"skip question"},"Skip"),U("submit",y)&&e.createElement("div",{className:"submit"},e.createElement(H,{disabled:K("submit",x),onClick:()=>{h(!0),m("COMPLETE")}},f?"Submitting":"Submit survey"))))},pe=t=>{const{blocks:r,renderedBlocks:o,activeBlock:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,isSurveyCompleted:u,isReverseAnimation:m,saveFormValues:d,saveOthersValue:p,skipBlock:g,onSubmitHandler:v,navigateToNextBlock:h,navigateToPreviousBlock:y,answers:x,questions:b,pivot:w,isInitialTransition:k}=ce(t),E=q(x.formValues)&&t.survey.prompt_settings?.is_enabled&&t.preview,[C,O]=n(E);if(!a||!a.question)return null;const _=u?r.length:c+(u?1:0),N=u?100:(_>0?100/r.length:0)*_;return e.createElement("div",{className:`freemium-survey-components ${t.mobilePreview?"mobile-preview":""} ${t.surveyStyle}-survey-style`,id:"freemium-survey"},e.createElement(s,{mode:"out-in"},e.createElement(i,{key:l+String(u)+String(C),addEndListener:(e,n)=>{e.addEventListener("transitionend",n,!1)},classNames:m?"fade-reverse":"fade"},e.createElement("div",{className:"questions"},u?e.createElement(ue,{thankYouQuestion:Q({pivotQn:w?.question,pivotQnAnswer:w?.answer,block:t.survey.blocks?.find((e=>"TY"===e.name)),questions:b}),preview:!!t.preview,placeholders:t.placeholders,pivotAnswer:w?.answer}):e.createElement("div",{id:`${a.question.name}`,className:"question-container","data-test-question-name":a.question.name},C&&t.survey.prompt_settings?e.createElement(le,{config:t.survey.prompt_settings,onSelect:e=>{t.onAnsweringPrompt?.(e),1===e&&O(!1)},placeholders:t.placeholders}):e.createElement(e.Fragment,null,e.createElement("div",{className:"question-text",dangerouslySetInnerHTML:{__html:B(a?.question.text,t.placeholders,w?.answer)},"aria-label":`question-${l}`,role:"heading","aria-level":1}),e.createElement("div",{onTransitionEndCapture:e=>e.stopPropagation(),style:{width:"100%"}},e.createElement(F,{question:a.question,isFinalQn:Y({blocks:r,activeIndexOfBlocks:c,renderedBlocks:o,activeIndexOfRenderedBlocks:l}),formValues:x.formValues,othersMeta:x.others,autoFocusDelay:"standard"===t.surveyStyle?350:0,saveOthersValue:p,onChangeHandler:e=>{d(a,e)}})),e.createElement(de,{widget:!1,surveyStyle:t.surveyStyle,answers:x,renderedBlocks:o,blocks:r,activeIndexOfRenderedBlocks:l,activeIndexOfBlocks:c,saveFormValues:d,skipBlock:g,onSubmitHandler:v,navigateToPreviousBlock:y,navigateToNextBlock:h,isInitialTransition:k})))))),e.createElement("footer",{className:"survey-footer"},e.createElement("div",{className:"survey-progress"},e.createElement(e.Fragment,null,e.createElement("span",{className:"progress-completion"},N.toFixed(),"% "),"survey completed",e.createElement(j,{totalSteps:r.length,completedSteps:_}))),e.createElement("div",{className:"survey-footer-text"},"Powered by ",e.createElement("a",{href:"https://www.freshworks.com/?utm_source=survey&utm_medium=survey_public_page",target:"_blank",rel:"noopener noreferrer"},e.createElement(f,null)))))};x(":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 ge=({thankYouQuestion:n,preview:t,placeholders:r,pivotAnswer:a})=>{const{redirectUrl:s,redirectDelay:i}=n.type_info?.meta??{};return o((()=>{t||s&&setTimeout((()=>{window.location.href=s}),1e3*(i??0)??1e4)}),[]),e.createElement("div",{className:"question-container thankyou"},e.createElement("div",{className:"heading"},"Thank you!"),e.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:B(n.text,r,a)}}),s&&e.createElement("div",{style:{width:"100%"}},e.createElement("div",{className:"redirection-text"},"You will be redirected to the below URL automatically in"," ",i," seconds.",e.createElement("br",null)),e.createElement("a",{className:"link",href:s},s)))},ve=n=>{const{blockIndex:t,widget:r,surveyStyle:o,answers:a,renderedBlocks:s,blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,saveFormValues:u,skipBlock:m,clearRadioSelection:d}=n,p={answers:a,blocks:i,blockIndex:t,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)&&t===l||U("clear-selection",p)?e.createElement("div",{className:"question-footer"},e.createElement("div",{className:"action-buttons"},U("next",p)&&e.createElement(H,{onClick:()=>{u(s[l],null,!0)},disabled:!!K("next",g),className:"next-button"},"Next"),U("skip",p)&&e.createElement("button",{className:"sec-button",onClick:m,"aria-label":"skip question"},"Skip"),U("clear-selection",p)&&e.createElement("button",{className:"sec-button",onClick:()=>d(t)},"Clear selection"))):null},fe=r=>{const{blocks:c,renderedBlocks:l,activeBlock:u,activeIndexOfBlocks:m,activeIndexOfRenderedBlocks:d,isSurveyCompleted:p,saveFormValues:g,saveOthersValue:v,skipBlock:h,clearRadioSelection:y,onSubmitHandler:x,answers:b,questions:w,pivot:k}=(r=>{const s=r.survey.question_details?.questions||[],[i]=n(r.survey?.blocks?.filter((e=>"TY"!==e.name))),c=a((()=>ne(i,s,r.answers)),[i,s,r.answers]),[l,u]=n(c.renderedBlocks),[m,d]=n(c.activeIndexOfRenderedBlocks),p=t(c.pivot),[g,v]=n(c.answers),f=t(),[h,y]=n(!1),x=t(null),b=l[m],w=e.useMemo((()=>l.length>0?i?.findIndex((e=>e.name===l[m].name)):0),[m]);o((()=>{const{others_meta:e,...n}=r.answers;if(!i||!i.length||!q(n))return;p.current={...p.current,question:D({questions:s})},null!=r.initialPivotAnswer&&(p.current={...p.current,answer:P(p.current.question,r.initialPivotAnswer)},v({...g,formValues:{[p.current.question.name]:p.current.answer}}));const t=Q({pivotQn:p.current.question,pivotQnAnswer:p.current.answer,block:i[0],questions:s});u([{...i[0],question:t}])}),[i,r.initialPivotAnswer]),o((()=>{l.length&&d(l.length-1),x.current?.scrollIntoView({block:"start",behavior:"smooth"})}),[l]),o((()=>{if(!q(g.formValues)&&i&&G({blocks:i,activeIndexOfBlocks:w,renderedBlocks:l,activeIndexOfRenderedBlocks:m,answers:g})){const e=()=>{const e=X({activeBlock:b,blocks:i,activeIndexOfBlocks:w,answers:g});if(e===1/0)return void setTimeout((()=>{k("COMPLETE"),y(!0)}));setTimeout((()=>{k()}));const n=Q({pivotQn:p.current?.question,pivotQnAnswer:p.current?.answer,block:i?.[e],questions:s}),t=ee({renderedBlocks:l,activeIndexOfRenderedBlocks:m});u([...t,{...i?.[e],question:n}])};null!=r.initialPivotAnswer&&1==l.length?f.current?(clearTimeout(f.current),f.current=null,e()):f.current=setTimeout((()=>{e()}),1500):e()}}),[g,i]);const k=(e="PARTIAL")=>{let n=()=>{};"COMPLETE"===e&&(n=()=>{y(!0)}),r.onSubmit({...g.formValues,others_meta:g.others},n,e)};return{blocks:i,questions:s,renderedBlocks:l,activeBlock:b,activeIndexOfBlocks:w,activeIndexOfRenderedBlocks:m,isSurveyCompleted:h,pivot:p.current,answers:g,saveFormValues:(e,n,t=!1,r=m)=>{e.question.name===p.current?.question.name&&(p.current={...p.current,answer:n});let o=g;(t||J({question:e.question,answers:g}))&&(o=$({renderedBlocks:l,activeIndexOfRenderedBlocks:r,answers:g})),r!==m&&d(r),v({...o,formValues:{...o.formValues,...null!=n&&{[e.question.name]:n}},commitDirtyValue:t})},saveOthersValue:(e,n,t=m)=>{if(t!==m&&d(t),null===n){const n={...g.others};delete n[e],v({...g,commitDirtyValue:!1,others:n})}else v({...g,commitDirtyValue:!1,others:{...g.others,[e]:n}})},skipBlock:()=>{const e=b.question;if(delete g.formValues[e.name],delete g.others[e.name],m!==l.length-1){const e=$({renderedBlocks:l,activeIndexOfRenderedBlocks:m,answers:g}),n=ee({renderedBlocks:l,activeIndexOfRenderedBlocks:m});u(n),v({...e,commitDirtyValue:!0})}else v({...g,commitDirtyValue:!0})},clearRadioSelection:e=>{e!==m&&d(e);const n=l[e].question;delete g.formValues[n.name],delete g.others[n.name];const t=$({renderedBlocks:l,activeIndexOfRenderedBlocks:e,answers:g}),r=ee({renderedBlocks:l,activeIndexOfRenderedBlocks:e});u(r),v({...t,commitDirtyValue:!1})},onSubmitHandler:k}})(r),E=t(null),[C,O]=n(!1);o((()=>{E.current?.scrollIntoView({block:"start",behavior:"smooth"})}),[l]);const _=q(b.formValues)&&r.survey.prompt_settings?.is_enabled&&r.preview,[N,A]=n(_),I=p?c.length:m+(p?1:0),M=p?100:(I>0?100/c.length:0)*I;return u&&u.question?e.createElement("div",{className:`freemium-survey-components ${r.mobilePreview?"mobile-preview":""} standard-survey-style`,id:"freemium-survey"},e.createElement(s,{mode:"out-in"},e.createElement(i,{key:String(p)+String(N),addEndListener:(e,n)=>{e.addEventListener("transitionend",n,!1)},classNames:"fade"},e.createElement("div",null,N&&r.survey.prompt_settings?e.createElement("div",{className:"questions"},e.createElement("div",{className:"question-container"},e.createElement(le,{config:r.survey.prompt_settings,onSelect:e=>{r.onAnsweringPrompt?.(e),1===e&&A(!1)},placeholders:r.placeholders}))):e.createElement(e.Fragment,null,p?e.createElement(ge,{thankYouQuestion:Q({pivotQn:k?.question,pivotQnAnswer:k?.answer,block:r.survey?.blocks?.find((e=>"TY"===e.name)),questions:w}),preview:!!r.preview,placeholders:r.placeholders,pivotAnswer:k?.answer}):e.createElement(e.Fragment,null,e.createElement("div",{onTransitionEndCapture:e=>e.stopPropagation(),className:"questions"},l.map(((n,t)=>e.createElement("div",{key:n.question.name,ref:E,className:"question-container"},e.createElement("div",{className:"question-text "+(0===t?"nps":""),dangerouslySetInnerHTML:{__html:B(n.question.text,r.placeholders,k?.answer)},"aria-label":`question-${t}`,role:"heading","aria-level":1}),e.createElement(F,{question:n.question,isFinalQn:Y({blocks:c,activeIndexOfBlocks:m,renderedBlocks:l,activeIndexOfRenderedBlocks:d}),formValues:b.formValues,othersMeta:b.others,autoFocusDelay:"standard"===r.surveyStyle?350:20,saveOthersValue:(e,n)=>{v(e,n,t)},onChangeHandler:e=>{g(n,e,!1,t)}}),e.createElement(ve,{widget:!1,surveyStyle:r.surveyStyle,answers:b,renderedBlocks:l,blocks:c,blockIndex:t,activeIndexOfRenderedBlocks:d,activeIndexOfBlocks:m,saveFormValues:g,skipBlock:h,clearRadioSelection:y,onSubmitHandler:x})))),U("submit",{answers:b,blocks:c,activeIndexOfBlocks:m,activeIndexOfRenderedBlocks:d,renderedBlocks:l,surveyStyle:r.surveyStyle,widget:!1})&&e.createElement("div",{className:"submit"},e.createElement(H,{disabled:!!K("submit",{answers:b,blocks:c,activeIndexOfBlocks:m,activeIndexOfRenderedBlocks:d,renderedBlocks:l,isSubmitting:C}),onClick:()=>{O(!0),x("COMPLETE")}},C?"Submitting":"Submit survey")))))))),e.createElement("footer",{className:"survey-footer"},e.createElement("div",{className:"survey-progress"},e.createElement(e.Fragment,null,e.createElement("span",{className:"progress-completion"},M.toFixed(),"% "),"survey completed",e.createElement(j,{totalSteps:c.length,completedSteps:I}))),e.createElement("div",{className:"survey-footer-text"},"Powered by ",e.createElement("a",{href:"https://www.freshworks.com/?utm_source=survey&utm_medium=survey_public_page",target:"_blank",rel:"noopener noreferrer"},e.createElement(f,null))))):null};x(":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 he=({thankYouQuestion:n,placeholders:t,pivotAnswer:r})=>e.createElement(e.Fragment,null,e.createElement("div",{className:"heading"},"Thank you!"),e.createElement("div",{className:"text",dangerouslySetInnerHTML:{__html:B(n.text,t,r)}})),ye=({activeIndexOfBlocks:n,activeIndexOfRenderedBlocks:t,renderedBlocks:r,blocks:o,answers:a,navigateToPreviousBlock:s,navigateToNextBlock:i})=>e.createElement("div",{className:"freemium-survey-step-navigation","data-navigation-element":"1"},e.createElement("button",{disabled:!!K("navigation-prev",{blocks:o,renderedBlocks:r,activeIndexOfBlocks:n,activeIndexOfRenderedBlocks:t,answers:a}),className:"navigation-button",onClick:s,title:"go to previous question"},e.createElement(v,{name:"arrow-previous"})),e.createElement("button",{className:"navigation-button",disabled:!!K("navigation-next",{blocks:o,renderedBlocks:r,activeIndexOfBlocks:n,activeIndexOfRenderedBlocks:t,answers:a}),onClick:i,title:"go to next question"},e.createElement(v,{name:"arrow-next"}))),xe=t=>{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}=t,[v,f]=n(!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&&U("navigation",h)&&U("skip",h);return 1!=s.length||0!==l||Y({blocks:i,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s})?e.createElement("div",{className:"question-footer"},x?e.createElement(e.Fragment,null,U("next",h)&&e.createElement(H,{onClick:()=>{u(s[l],null,!0)},disabled:!!K("next",y),className:"next-button"},"Next"),e.createElement("div",{className:"compact-footer-layout"},e.createElement(ye,{answers:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,blocks:i,navigateToNextBlock:p,navigateToPreviousBlock:g}),e.createElement("button",{className:"skip-button",onClick:d,"aria-label":"skip question"},"Skip"))):e.createElement("div",{className:"action-buttons"},U("navigation",h)&&e.createElement("div",{style:{marginRight:"auto"}},e.createElement(ye,{answers:a,activeIndexOfBlocks:c,activeIndexOfRenderedBlocks:l,renderedBlocks:s,blocks:i,navigateToNextBlock:p,navigateToPreviousBlock:g})),U("skip",h)&&e.createElement("button",{className:"skip-button",onClick:d,"aria-label":"skip question"},"Skip"),U("next",h)&&e.createElement(H,{onClick:()=>{u(s[l],null,!0)},disabled:!!K("next",y),className:"next-button"},"Next"),U("submit",h)&&e.createElement("div",{className:"submit"},e.createElement(H,{disabled:!!K("submit",y),onClick:()=>{f(!0),m("COMPLETE")}},v?"Submitting":"Submit survey")))):null},be=r=>{const{blocks:s,renderedBlocks:l,activeBlock:u,activeIndexOfBlocks:m,activeIndexOfRenderedBlocks:p,isSurveyCompleted:g,isReverseAnimation:v,saveFormValues:f,saveOthersValue:h,skipBlock:y,onSubmitHandler:x,navigateToNextBlock:b,navigateToPreviousBlock:w,answers:k,questions:E,pivot:C}=ce(r),[O,_]=n(null),N=t(0),A=q(k.formValues)&&r.survey.prompt_settings?.is_enabled,[I,M]=n(A),T=t(A?-1:p);if(a((()=>{(()=>{if(O){O.style.minHeight="unset",O.style.maxHeight="unset",O.style.height="min-content",O.style.position="static";const e=Math.min(O?.scrollHeight+2,d[r.widgetStyle]);O.style.height=e+"px",O.style.minHeight=e+"px",N.current=e}})()}),[O]),o((()=>{r.setCurrentSurveyState?.({question:l[p]?.question,npsScore:C?.answer})}),[p,C?.answer]),o((()=>{p!==T.current&&(T.current=-1)}),[p]),!u||!u?.question)return null;r.widgetHeaderQuerySelector&&document.querySelector(r.widgetHeaderQuerySelector);const S=g?s.length:m+(g?1:0),Z=g?100:(S>0?100/s.length:0)*S;return e.createElement("div",{className:`freemium-survey-components widget-survey-components\n ${r.widgetStyle}-style `,id:"freemium-survey"},g||I?null:e.createElement("div",{className:"widget-progressbar"},e.createElement("div",{className:"progress-completion"},Z.toFixed(),"%"),e.createElement(j,{totalSteps:s.length,completedSteps:m+(g?1:0),widget:!0})),e.createElement("div",{className:"questions",style:{height:N.current,...A&&I||T.current===p?{transition:"none"}:{}}},e.createElement(c,{component:null},e.createElement(i,{key:p+String(g)+String(I),unmountOnExit:!0,addEndListener:(e,n)=>{e.addEventListener("transitionend",n,!1)},classNames:v?"fade-reverse":"fade"},e.createElement("div",{ref:e=>e?_(e):null,id:`${u.question.name}`,className:`question-container ${g?"thankyou":""} ${I?"prompt-container":""}`,"data-test-question-name":u.question.name},I&&r.survey.prompt_settings?e.createElement(le,{config:r.survey.prompt_settings,onSelect:e=>{r.onAnsweringPrompt(e),1===e&&M(!1)},placeholders:r.placeholders}):e.createElement(e.Fragment,null,g?e.createElement(he,{thankYouQuestion:Q({pivotQn:C?.question,pivotQnAnswer:C?.answer,block:r.survey.blocks?.find((e=>"TY"===e.name)),questions:E}),placeholders:r.placeholders,pivotAnswer:C?.answer}):e.createElement(e.Fragment,null,e.createElement("div",{className:"question-text "+("RANGE"===u?.question?.type_info?.question_type?"range-question-text":""),dangerouslySetInnerHTML:{__html:B(u?.question.text,r.placeholders,C?.answer)},"aria-label":`question-${p}`,role:"heading","aria-level":1}),e.createElement("div",{className:"question-wrapper",onTransitionEndCapture:e=>e.stopPropagation()},e.createElement(F,{question:u.question,isFinalQn:Y({blocks:s,activeIndexOfBlocks:m,renderedBlocks:l,activeIndexOfRenderedBlocks:p}),formValues:k.formValues,othersMeta:k.others,autoFocusDelay:0,saveOthersValue:h,onChangeHandler:e=>{f(u,e)}})),e.createElement(xe,{widget:!0,widgetStyle:r.widgetStyle,surveyStyle:"standard",answers:k,renderedBlocks:l,blocks:s,activeIndexOfRenderedBlocks:p,activeIndexOfBlocks:m,saveFormValues:f,skipBlock:y,onSubmitHandler:x,navigateToPreviousBlock:w,navigateToNextBlock:b}))))))))};x('#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 we=({survey:r,preview:o,placeholders:a,onSubmit:s,onDismiss:i,onClose:c,surveyType:l,unsubscribeUrl:u,isSurveyCompleted:m,children:d=null,answers:g,onAnsweringPrompt:h})=>{const y=r.question_details?.questions||[],[x,b]=n(!1),[w,k]=n(!1),[E,C]=n(0),{ui_theme:_}=r,[N,A]=n(null),[I,M]=n(null),T=D({questions:y}),S=()=>{b(!0),setTimeout((()=>{c?.()}),300)},Z=t(null);return e.createElement("div",{className:`surveyserv-widget-container ${l}-container-style ${w?"minimized":""}`,style:{opacity:x?0:1,"--container-width":`${p[l]}`,"--height-transition-duration":"600ms",...O(_)}},d,e.createElement("header",{id:"surveyserv-widget-header",className:"widget-header "+(w?"minimized":"")},w&&e.createElement("span",{className:"header-content minimized",dangerouslySetInnerHTML:{__html:B((r.prompt_settings?.is_enabled?r.prompt_settings.text:I?.question?.text)??T?.text,{...a,"{{nps.rating}}":String(I?.npsScore??"")})}}),e.createElement("div",{className:"icons"},!m&&e.createElement("button",{onClick:()=>{w?(k(!w),setTimeout((()=>{C(0)}),700)):(C(N?.clientHeight??0),setTimeout((()=>{k(!w)}),0))},className:"icon minimize-btn",title:w?"Maximize widget":"Minimize widget"},w?e.createElement(v,{name:"widget-maximize"}):e.createElement(v,{name:"widget-minimize"})),e.createElement("button",{ref:Z,onClick:()=>{m||i(),S()},title:"Dismiss widget",className:"icon minimize-btn"},e.createElement(v,{name:"widget-close"})))),e.createElement("main",{ref:e=>A(e),className:"widget-main "+(w?"minimized":""),style:{height:w?0:E||"auto"}},e.createElement(be,{answers:g,widgetStyle:l,survey:r,placeholders:a,onSubmit:s,setCurrentSurveyState:M,widgetHeaderQuerySelector:w?void 0:"#surveyserv-widget-header",onAnsweringPrompt:e=>{h?.(e),0==e&&q(r.prompt_settings?.declined_message)&&S()}})),e.createElement("footer",{className:"widget-footer"},u&&!w&&e.createElement("a",{href:u,target:"_blank",rel:"noopener noreferrer",onClick:e=>{o&&e.preventDefault(),e.stopPropagation(),S()}},"Unsubscribe"),e.createElement("div",{className:"footer-text"},"Powered by ",e.createElement("a",{className:"fw-link",href:"https://www.freshworks.com/?utm_source=survey&utm_medium=survey_public_page",target:"_blank",rel:"noopener noreferrer"},e.createElement(f,null)))))},ke=n=>{const{survey:t,answers:r}=ie(n.survey,n.answers);return e.createElement(e.Fragment,null,"standard"===n.surveyStyle?e.createElement(fe,{...n,answers:r,survey:t,initialPivotAnswer:q(n.answers)?n.initialPivotAnswer:void 0}):e.createElement(pe,{...n,answers:r,survey:t,surveyStyle:"card",initialPivotAnswer:q(n.answers)?n.initialPivotAnswer:void 0}))},Ee=n=>{const{survey:t,answers:r}=ie(n.survey,n.answers);return e.createElement(we,{...n,survey:t,answers:r})};x('.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 Ce=({children:n,title:t,closeModal:r,isModalOpen:o})=>e.createElement(i,{in:o,unmountOnExit:!0,timeout:500,classNames:"fade"},e.createElement("div",{className:"options-popup",style:{}},e.createElement("header",null,e.createElement("button",{onClick:r,className:"close"},e.createElement(v,{name:"widget-close"})),e.createElement("h4",null,t)),e.createElement("main",null,n),e.createElement("footer",null,"Tab an item to select it"))),qe=({question:r,saveFormValues:o})=>{const[a,s]=n(!1),{range:i}=r.type_info.scale_properties,c=i?.[0]?.min,l=i?.[i.length-1]?.max,u="descending"===r.type_info.scale_properties?.order,m=t(Array.from({length:l+(0===c?1:0)},((e,n)=>u?l-n:n+c)));return m.current.length<=3?e.createElement("ul",{className:"choices"},m.current.map((n=>e.createElement("li",{className:"choice range-choice"},e.createElement("button",{onClick:()=>{o(n),s(!1)}},Array.from({length:n},((n,t)=>e.createElement(e.Fragment,null,e.createElement(v,{name:"whatsapp-star"})," ")))))))):e.createElement(e.Fragment,null,e.createElement("button",{onClick:()=>s(!0),className:"choices-button choice"},e.createElement(v,{name:"whatsapp-choices"}),"Rate Support"),e.createElement(Ce,{title:"Rate Support",isModalOpen:a,closeModal:()=>s(!1)},m.current.reverse().map((n=>e.createElement("div",{className:"option-row"},e.createElement("button",{onClick:()=>{o(n),s(!1)}},Array.from({length:n},((n,t)=>e.createElement(v,{name:"whatsapp-star"})))))))))},Be=({question:t,saveFormValues:r})=>{const[o,a]=n(!1);return e.createElement(e.Fragment,null,e.createElement("button",{onClick:()=>a(!0),className:"choices-button choice"},e.createElement(v,{name:"whatsapp-choices"}),"Select answer"),e.createElement(Ce,{title:"Select a choice",isModalOpen:o,closeModal:()=>a(!1)},e.createElement("ul",{className:"choices"},t.choices.map((n=>e.createElement("li",{className:"choice"},e.createElement("button",{onClick:()=>{r(n.value),a(!1)}},n.value)))))))},Oe=n=>{const r=t(null);return((e,n)=>{o((()=>{if(e){e.style.height="0px";const n=e.scrollHeight;e.style.height=n+"px"}}),[e,n])})(r.current,String(n.value)??""),o((()=>{n.autoFocus&&r.current?.focus()}),[n.autoFocus]),e.createElement("div",{className:"textarea-container"},e.createElement("textarea",{placeholder:"Type a message",ref:r,rows:1,onChange:n.onChange,value:n.value}),e.createElement("button",{onClick:()=>{n.onSubmit(),r.current&&(r.current.value="")}},e.createElement(v,{name:"whatsapp-send"})))},_e=({children:n,text:t,placeholders:r})=>e.createElement("div",{className:"question-text-container"},e.createElement("div",{className:"question-text",dangerouslySetInnerHTML:{__html:B(t,r)},role:"heading","aria-level":1})),Ne=({block:n,saveFormValues:t})=>{const{question_type:r}=n.question.type_info;switch(r){case"RANGE":return e.createElement(qe,{question:n.question,saveFormValues:e=>t(e,!0)});case"DROPDOWN":case"MULTI_CHOICE":return e.createElement(Be,{question:n.question,saveFormValues:e=>t(e,!0)});case"PARAGRAPH":case"INPUT":return null;default:return console.error(`Question type ${r} not supported`),null}},Ae=({config:n,placeholders:t,onSelect:r,promptAccepted:o})=>{const s=a((()=>n.reverse_order?n.choices?.reverse():n.choices),[n]);return e.createElement(e.Fragment,null,e.createElement("div",{className:"question-container "+(null==o?"active":"")},e.createElement(_e,{text:n.text,placeholders:t}),e.createElement("ul",{className:"choices"},s?.map((n=>e.createElement("li",{className:"choice"},e.createElement("button",{className:"action",onClick:()=>{r(Number(n.id))}},n.value)))))),void 0!==o&&e.createElement("div",{className:"answers-container"},e.createElement("p",{className:"answers"},s.find((e=>e.id==o))?.value)),!1===o&&n.is_declined&&n.declined_message&&e.createElement("div",{className:"question-container"},e.createElement(_e,{text:n.declined_message,placeholders:t})))},Ie=r=>{const{activeBlock:a,activeIndexOfBlocks:s,activeIndexOfRenderedBlocks:i,answers:c,saveFormValues:l,blocks:u,questions:m,renderedBlocks:d,onSubmitHandler:p,isSurveyCompleted:g,pivot:v}=ce(r),{type:f="whatsapp"}=r,{question_type:h}=a?.question.type_info??{},y=t(null),[x,b]=n(void 0);return o((()=>{y.current&&y.current.scroll({top:1e4,behavior:"smooth"})}),[a,c,g]),a&&a.question?(console.log("blocks",u),e.createElement("div",{className:`${f} whatsapp-container`},e.createElement("div",{className:"scroll-wrapper",ref:y},r.survey.prompt_settings?e.createElement(Ae,{config:r.survey.prompt_settings,onSelect:e=>{b(1===e)},promptAccepted:x,placeholders:r.placeholders}):null,x?d.map(((n,t)=>e.createElement(e.Fragment,null,e.createElement("div",{className:"question-container "+(t===d.length-1?"active":"")},e.createElement(_e,{text:n.question.text,placeholders:r.placeholders}),e.createElement(Ne,{block:n,placeholders:r.placeholders,saveFormValues:(e,t)=>{l(n,e,t),setTimeout((()=>{!0===t&&Y({blocks:u,activeIndexOfBlocks:s,renderedBlocks:d,activeIndexOfRenderedBlocks:i})&&p("COMPLETE")}))}})),n.name!==a.name||c.commitDirtyValue?e.createElement("div",{className:"answers-container"},e.createElement("p",{className:"answers"},c.formValues[n.question.name])):null))):null,g&&e.createElement("div",{className:"question-container",id:"new"},e.createElement(_e,{text:Q({pivotQn:v?.question,pivotQnAnswer:v?.answer,block:r.survey.blocks?.find((e=>"TY"===e.name)),questions:m})?.text,placeholders:r.placeholders}))),e.createElement(Oe,{onChange:e=>{"PARAGRAPH"===h&&l(a,e.target.value)},value:"PARAGRAPH"!==h||g?"":c.formValues[a.question.name],activeBlock:!0,autoFocus:"PARAGRAPH"===h,onSubmit:()=>{l(a,null,!0),a.name===u[u.length-1].name&&p("COMPLETE")}}))):null},Me=n=>{const{survey:t,answers:r}=ie(n.survey,n.answers);return"whatsapp"===n.channel?e.createElement(Ie,{...n,survey:t,answers:r}):"instagram"===n.channel?e.createElement(Ie,{type:"instagram",...n,survey:t,answers:r}):(console.error(`Channel ${n.channel} not supported`),null)};export{V as BUTTON_SIZE_VARIANTS,b as Binary,H as Button,Me as ChannelPreview,S as CheckboxGroup,I as Input,j as ProgressBar,R as Radio,z as RadioGroup,E as Range,ke as Survey,M as TextArea,Ee as WebInAppSurvey};
|