1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5032],{7482:function(e,t,r){var n={"./moldeparaimprimir-com/constants":651};function a(e){return r(s(e))}function s(e){if(!r.o(n,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=s,e.exports=a,a.id=7482},4982:function(e,t,r){var n={"./moldeparaimprimir-com/large-logo.png":143};function a(e){return r(s(e))}function s(e){if(!r.o(n,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=s,e.exports=a,a.id=4982},5401:function(e,t,r){var n={"./moldeparaimprimir-com/small-logo.png":675};function a(e){return r(s(e))}function s(e){if(!r.o(n,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}a.keys=function(){return Object.keys(n)},a.resolve=s,e.exports=a,a.id=5401},7407:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(1373);let a=(0,n.Z)("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},6316:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var n=r(1373);let a=(0,n.Z)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},810:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/quiz/[product]/[step]",function(){return r(9925)}])},143:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/large-logo.af22455d.png",height:413,width:2e3,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAACVBMVEUJFVQHFFQJFVK9Ctk8AAAAA3RSTlMkPIPCcIGHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAD0lEQVR4nGNgYmSAABgDAABbAAc5rcTxAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:2}},675:function(e,t,r){"use strict";r.r(t),t.default={src:"/_next/static/media/small-logo.af22455d.png",height:413,width:2e3,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAACVBMVEUJFVQHFFQJFVK9Ctk8AAAAA3RSTlMkPIPCcIGHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAD0lEQVR4nGNgYmSAABgDAABbAAc5rcTxAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:2}},5949:function(e,t,r){"use strict";r.d(t,{h:function(){return s}});var n=r(5893),a=r(6258);function s(e){let{title:t,description:r,theme:s,currentStep:l,totalSteps:i,titleColor:o,backgroundColor:c}=e;return"image"===s?(0,n.jsxs)("div",{className:"w-full flex flex-col items-center mb-6",children:[l&&i&&(0,n.jsx)("div",{className:"w-full max-w-md px-4",children:(0,n.jsx)(a.C,{currentStep:Number(l),totalSteps:i,backgroundColor:c})}),(0,n.jsx)("div",{className:"w-full py-6 px-4 text-center text-white shadow-sm mt-2 ".concat(o?"":"bg-primary"),style:o?{backgroundColor:o}:{},children:(0,n.jsx)("h2",{className:"text-xl md:text-2xl font-bold uppercase tracking-wide leading-tight",children:t})}),r&&(0,n.jsx)("p",{className:"text-gray-500 text-sm mt-4 px-6 text-center italic leading-relaxed",children:r})]}):(0,n.jsx)("div",{className:"lg:relative lg:text-center mb-2 md:mb-2 lg:pt-10 lg:pb-8 lg:mx-auto lg:max-w-lg",children:(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"font-semibold text-title text-xl text-center lg:text-2xl text-gray-900",children:t}),r&&(0,n.jsx)("p",{className:"font-normal text-text text-sm text-center px-4 pb-0 lg:p-0 break-words lg:break-normal lg:text-base text-gray-500 pt-1",children:r})]})})}},4553:function(e,t,r){"use strict";r.d(t,{J:function(){return I}});var n=r(5893);r(7294);var a=r(9965),s=r(8621),l=r(937),i=r(1267),o=r(2227),c=r(4237),d=r(6048),u=r(4154),m=r(6330),g=r(6309),h=r(8250),x=r(1596),p=r(7921),f=r(8051),b=r(3043),w=r(5829),y=r(9283),v=r(2406),j=r(5592),A=r(781),N=r(6448),k=r(5298),Z=r(4927),C=r(9482),S=r(1963),_=r(2022),E=r(3618),F=r(9525),T=r(3125),U=r(737),q=r(993),B=r(1787),G=r(1470),O=r(713),M=r(1728),R=r(3761),z=r(9455),P=r(6125),L=r(9560);let D={GiPayMoney:a.Z,GiSwipeCard:s.Z,GiTakeMyMoney:l.Z,GiCash:i.Z,GiThumbUp:o.Z,GiThumbDown:c.Z,GiMoneyStack:d.Z,FaCoins:i.Z,FaDollarSign:d.Z,FaMoneyBill1:u.Z,FaSackDollar:d.Z,FaHouseChimney:m.Z,FaBuilding:g.Z,GiBroom:h.Z,FaThumbsUp:o.Z,FaThumbsDown:c.Z,FaHandshake:x.Z,FaBan:p.Z,FaRightToBracket:f.Z,GiBuyCard:b.Z,GiPerson:w.Z,GiGraduateCap:y.Z,GiLaptop:v.Z,GiPiggyBank:j.Z,GiCoins:A.Z,GiCommercialAirplane
1:N.Z,FaMoneyBillTrendUp:k.Z,FaEuroSign:Z.Z,FaForwardStep:C.Z,GiFemale:S.Z,GiMale:_.Z,FaUserLarge:E.Z,FaUserGroup:F.Z,FaUsers:T.Z,FaUserPlus:U.Z,GiThermometerCold:q.Z,FaLink:B.Z,GiTrophyCup:G.Z,GiBackwardTime:O.Z,GiExtraTime:M.Z,GiSandsOfTime:M.Z,GiTimeTrap:M.Z,GiJetFighter:N.Z,GiOpenBook:R.Z},V={BanknoteArrowDown:l.Z,CreditCard:s.Z,Coins:i.Z,ThumbsUp:o.Z,ThumbsDown:c.Z,CircleDollarSign:d.Z,Banknote:u.Z,House:m.Z,Building2:g.Z,BrushCleaning:h.Z,Handshake:x.Z,Ban:p.Z,LogOut:f.Z,Receipt:b.Z,PersonStanding:w.Z,GraduationCap:y.Z,Laptop:v.Z,PiggyBank:j.Z,Landmark:A.Z,Plane:N.Z,BanknoteArrowUp:k.Z,Euro:Z.Z,Play:C.Z,Venus:S.Z,Mars:_.Z,CircleUser:E.Z,Users:F.Z,Users2:T.Z,UserPlus2:U.Z,ThermometerSnowflake:q.Z,Link:B.Z,Trophy:G.Z,RotateCcw:O.Z,Hourglass:M.Z,BookOpen:R.Z,Shield:z.Z,Percent:P.Z};function I(e){let{nameIcon:t,propsIcon:r,fallback:a=L.Z,onMissingIcon:s}=e,l=a;return t&&(D[t]?l=D[t]:V[t]?l=V[t]:null==s||s(t)),(0,n.jsx)(l,{...r})}},1300:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(5893),a=r(9008),s=r.n(a);function l(e){let{children:t,siteName:r}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s(),{children:(0,n.jsxs)("title",{children:[r," - Quiz"]})}),(0,n.jsx)("main",{className:"flex flex-col min-h-screen lg:w-full lg:h-screen lg:mr-0 lg:mb-0 lg:p-0 w-screen h-screen pt-6 px-5 pb-4 box-border overflow-x-hidden overflow-y-auto will-change-scroll bg-container",children:t})]})}},6258:function(e,t,r){"use strict";r.d(t,{C:function(){return l}});var n=r(5893),a=r(7294);let s=a.forwardRef(function({title:e,titleId:t,...r},n){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))});function l(e){let{currentStep:t,totalSteps:r,backgroundColor:a}=e,l=!!a;return(0,n.jsxs)("div",{className:"w-full max-w-md mx-auto mt-6 mb-7 relative",children:[(0,n.jsx)("div",{className:"absolute top-1/2 left-0 right-0 h-1 bg-gray-300 rounded-full -translate-y-1/2 z-0"}),(0,n.jsx)("div",{className:"absolute top-1/2 left-0 h-1 rounded-full -translate-y-1/2 z-0 transition-all duration-700 ".concat(l?"":"bg-primary"),style:{backgroundColor:a,width:1===t&&2===r?"24%":"".concat((t-1)/(r-1)*100,"%")}}),(0,n.jsx)("div",{className:"relative z-10 flex items-center ".concat(r<=2?"justify-around":"justify-between"),children:Array.from({length:r}).map((e,r)=>{let i=r+1,o=t>=i,c=t===i;return(0,n.jsx)("div",{style:{backgroundColor:o&&l?a:void 0,borderColor:(o||c)&&l?a:void 0},className:"w-6 h-6 rounded-full border-4 flex items-center justify-center transition-all duration-300 ".concat(l?o?"text-white":c?"bg-white":"bg-white border-gray-300":o?"bg-primary border-primary text-white":c?"bg-white border-primary":"bg-white border-gray-300"),children:o&&(0,n.jsx)(s,{className:"w-4 h-4 text-white"})},r)})})]})}},9925:function(e,t,r){"use strict";let n,a;r.r(t),r.d(t,{__N_SSG:function(){return $},default:function(){return ee}});var s=r(5893);let l=r(651).mda_params;function i(e){let{settings:t,messages:{footer:r}}=e;return(0,s.jsx)("footer",{className:"flex justify-between flex-col text-text-contrast text-xs items-center md:pb-4 mt-8",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsxs)("p",{children:[l.company," - ",l.rightsReserved]}),l.businessNumber&&(0,s.jsx)("p",{children:l.businessNumber}),l.based&&(0,s.jsx)("p",{children:l.based})]})})}var o=r(5949),c=r(1300),d=r(5675),u=r.n(d);function m(e){let{logo:t,label:r,theme:n,quiz_large_logo_path:a,quiz_small_logo_path:l}=e,i=a||t.large,o=l||t.small||i;return i?"image"===n?(0,s.jsx)("div",{className:"w-full flex flex-col items-center justify-center py-5 bg-white select-none",children:(0,s.jsx)(u(),{priority:!0,src:i,alt:r,width:"0",height:"0",sizes:"100vw",className:"w-auto h-12 md:h-14 object-contain"})}):(0,s.jsxs)("div",{role:"button",tabIndex:0,className:"select-none transition-colors cursor-pointer inline-flex items-center justify-center flex-shrink-0 whitespace-nowrap rounded text-sm min-w-0 px-2 pb-5 text-black lg:absolute",children:[(0,s.jsx)(u(),{priority:!0,src:i,alt:r,width:"0",height:"0",sizes:"100vw",className:"w-auto h-16 hidden md:block"}),o&&(0,s.jsx)(u(),{priority:!0,src:o,alt:r,width:"0",height:"0",sizes:"100vw",className:"w-auto h-16 block md:hidden"})]}):null}var g=r(7294);let h=(0,g.createContext)(null);function x(e){let{children:t,value:r}=e;return(0,s.jsx)(h.Provider,{value:r,children:t})}function p(e){let{value:t,description:r,checked:n=!1,onChange:a,icon:l}=e;return(0,s.jsx)("div",{role:"button",tabIndex:0,onClick:()=>a(t),className:"select-none transition-all cursor-pointer rounded-xl bg-white border px-4 py-4 flex items-center justify-center w-full shadow-sm hover:shadow-md hover:border-primary ".concat(n?"border-primary shadow-inner":"border-gray-300"),children:(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsx)("span",{className:"text-lg md:text-base text-gray-800 font-medium",children:r})})})}var f=r(1332);function b(e){let{value:t,description:r,checked:n=!1,onChange:a,image:l}=e;return(0,s.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>a(t),className:"select-none transition-all cursor-pointer shadow-sm bg-white overflow-hidden rounded-xl border-2 flex flex-col items-center relative w-full max-w-[160px] sm:max-w-[180px] lg:max-w-[210px] ".concat(n?"border-primary shadow-lg scale-[1.02]":"border-transparent hover:border-primary/50"),children:[(0,s.jsx)("div",{className:"absolute top-2 right-2 z-10",children:n?(0,s.jsx)(f.Z,{className:"w-6 h-6 text-primary shadow-sm"}):(0,s.jsx)("span",{className:"w-6 h-6 bg-black/5 backdrop-blur-sm rounded-full block border border-white/50"})}),(0,s.jsx)("div",{className:"w-full aspect-square bg-gray-50 overflow-hidden flex items-center justify-center",children:(0,s.jsx)("img",{src:l,alt:r,className:"w-full h-full object-cover transition-transform duration-500 hover:scale-110"})}),(0,s.jsx)("div",{className:"p-2.5 w-full bg-white text-center border-t border-gray-100",children:(0,s.jsx)("span",{className:"font-bold text-[10px] lg:text-xs uppercase tracking-tight leading-tight block truncate ".concat(n?"text-primary":"text-gray-600"),children:r})})]})}var w=r(4553);function y(e){let{value:t,description:r,checked:n=!1,onChange:a,icon:l}=e;return(0,s.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>a(t),className:"select-none transition-all cursor-pointer shadow-sm bg-white ".concat(n?"opacity-100 shadow-none border lg:border-2 border-solid border-primary":"opacity-100"," whitespace-normal rounded-xl text-sm bg-white flex flex-col gap-2 lg:block items-center justify-center relative mt-5 p-0 lg:m-3 lg:text-center w-[135px] h-[135px] sm:w-[150px] sm:h-[150px] md:w-[180px] md:h-[180px] lg:w-[206px] lg:h-[256px] lg:py-10 lg:px-0 shadow-4xl shadow-gray-400 hover:shadow-
1primary hover:opacity-100 hover:border-solid hover:border-primary"),children:[n?(0,s.jsx)(f.Z,{className:"w-5 h-5 text-primary absolute top-2 right-2"}):(0,s.jsx)("span",{className:"w-5 h-5 bg-gray-200 absolute top-2 right-2 rounded-full"}),(0,s.jsx)("div",{className:"text-center flex justify-center items-center lg:w-full lg:m-0 lg:h-24 lg:flex lg:justify-center",children:(0,s.jsx)(w.J,{nameIcon:l,propsIcon:{className:"text-primary w-10 h-10 md:w-16 md:h-16"}})}),(0,s.jsx)("main",{className:"m-0 lg:m-5 lg:flex-1 lg:h-16 flex items-center lg:block px-1 text-center",children:(0,s.jsx)("header",{className:"font-medium text-xs lg:mt-7 lg:text-base text-text",children:r})})]})}function v(e){let{theme:t,answer:r,isSelected:n,onSelect:a}=e,{isLastStep:l,settings:i}=function(){let e=(0,g.useContext)(h);if(!e)throw Error("useQuiz must be used within QuizProvider");return e}();function o(){switch(t){case"grogu":return(0,s.jsx)(p,{value:r.id,description:r.text,checked:n,icon:r.icon,onChange:a});case"image":return(0,s.jsx)(b,{value:r.id,description:r.text,checked:n,image:r.image,onChange:a});default:return(0,s.jsx)(y,{value:r.id,description:r.text,checked:n,icon:r.icon,onChange:a})}}return l&&i.activeInterstitial?(0,s.jsx)("a",{href:"#deny",onClickCapture:e=>{e.stopPropagation(),a(r.id)},children:o()}):o()}var j=r(6258);function A(e){let{step:t,totalSteps:r,currentStep:n,value:a,onStepChange:l,theme:i}=e;return(0,s.jsxs)(s.Fragment,{children:["grogu"===i&&(0,s.jsx)(j.C,{currentStep:Number(n),totalSteps:Number(r)}),(0,s.jsx)("div",{className:"lg:flex lg:flex-col lg:items-center",children:(0,s.jsx)("div",{className:"lg:m-0 lg:w-full lg:flex lg:flex-row lg:items-center lg:justify-center",children:(0,s.jsx)("div",{className:"grogu"!==i?"grid grid-cols-2 lg:flex lg:flex-row lg:gap-4 items-center justify-items-center lg:border-none":"grid grid-cols-1 gap-3 w-full mt-10 lg:mt-1",children:t.answers.map((e,r)=>(0,s.jsx)(v,{theme:i,answer:e,isSelected:a===e.id,onSelect:e=>l(t,e)},"".concat(t.key,"-").concat(e.id,"-").concat(r)))})})})]})}var N=r(6316),k=r(4439);r(9182);var Z=r(16),C=r(4529),S=r(3513);let _=(0,C.Ue)(e=>{let t=t=>e((0,S.Uy)(t));return{state:{answers:{},user:{fullname:"",email:"",phone:""}},actions:{setAnswers:(e,r)=>{t(t=>{let{state:n}=t;n.answers={...n.answers,[e]:r}})},setUser:(e,r)=>{t(t=>{let{state:n}=t;n.user={...n.user,[e]:r}})}}}}),E=g.forwardRef(function({title:e,titleId:t,...r},n){return g.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{fillRule:"evenodd",d:"M10 1c-1.828 0-3.623.149-5.371.435a.75.75 0 0 0-.629.74v.387c-.827.157-1.642.345-2.445.564a.75.75 0 0 0-.552.698 5 5 0 0 0 4.503 5.152 6 6 0 0 0 2.946 1.822A6.451 6.451 0 0 1 7.768 13H7.5A1.5 1.5 0 0 0 6 14.5V17h-.75C4.56 17 4 17.56 4 18.25c0 .414.336.75.75.75h10.5a.75.75 0 0 0 .75-.75c0-.69-.56-1.25-1.25-1.25H14v-2.5a1.5 1.5 0 0 0-1.5-1.5h-.268a6.453 6.453 0 0 1-.684-2.202 6 6 0 0 0 2.946-1.822 5 5 0 0 0 4.503-5.152.75.75 0 0 0-.552-.698A31.804 31.804 0 0 0 16 2.562v-.387a.75.75 0 0 0-.629-.74A33.227 33.227 0 0 0 10 1ZM2.525 4.422C3.012 4.3 3.504 4.19 4 4.09V5c0 .74.134 1.448.38 2.103a3.503 3.503 0 0 1-1.855-2.68Zm14.95 0a3.503 3.503 0 0 1-1.854 2.68C15.866 6.449 16 5.74 16 5v-.91c.496.099.988.21 1.475.332Z",clipRule:"evenodd"}))});var F=r(1681);let T=g.forwardRef((e,t)=>{let{className:r,asChild:n=!1,disabled:a=!1,...l}=e;return(0,s.jsx)("button",{ref:t,"aria-disabled":a,disabled:a,role:"button",tabIndex:-1,className:"select-none transition-colors ".concat(a?"opacity-40 cursor-default":"opacity-100 cursor-pointer"," inline-flex items-center justify-center whitespace-nowrap h-11 lg:mb-11 lg:w-full rounded shadow-sm bg-primary text-white fill-white px-3 mt-2 text-sm font-medium w-full"),...l})});T.displayName="Button";var U=r(7407),q=r(3510);let B=e=>{let{children:t,...r}=e;return(0,s.jsx)("div",{...r,className:"max-w-md lg:max-w-lg",children:t})},G=e=>{let{children:t,...r}=e;return(0,s.jsx)("span",{...r,className:"text-xs md:text-md px-2 py-1 text-title",children:t})},O=e=>void 0===e?null:e?(0,s.jsx)(U.Z,{width:16,height:16,className:"text-primary-dark"}):(0,s.jsx)(q.Z,{width:16,height:16,className:"text-yellow-500"}),M=(0,g.forwardRef)(function(e,t){let{children:r,label:n,hasError:a,...l}=e;return(0,s.jsxs)("label",{ref:t,...l,className:"flex flex-col mb-4 w-full text-base text-text gap-2",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[n,O(a)]}),r]})});M.displayName="Label";let R=(0,g.forwardRef)(function(e,t){let{type:r,...n}=e;return(0,s.jsx)("input",{ref:t,type:r,className:"\n ".concat("checkbox"===r?"h-5 w-5":"h-12"," \n accent-primary\n rounded-lg\n border\n border-input\n border-border\n bg-white\n px-3\n py-2\n text-lg\n ring-offset-background\n placeholder:text-muted-foreground\n focus-visible:outline-none\n focus-visible:ring-2\n focus-visible:ring-ring\
1n focus-visible:ring-offset-2\n disabled:cursor-not-allowed\n disabled:opacity-50\n text-text\n "),...n})});function z(e){let{settings:t,messages:r,onStepChange:n,theme:a,totalSteps:l,currentStep:i}=e,{setUser:o}=_(e=>e.actions),{user:c}=_(e=>e.state),[d,u]=(0,g.useState)(!0),[m,h]=(0,g.useState)(!1),[x,p]=(0,g.useState)(!1),f=async()=>{try{let e;h(!0),r.email&&r.firstName&&(e=await (0,Z.BG)(c.email,c.fullname,t.apiKeyEmailable)),await n(e,c)}catch(e){console.error("Trace: Error emailable",e),h(!1)}finally{h(!1)}};return(0,g.useEffect)(()=>{p(!0),setTimeout(()=>{p(!1)},3e3)},[]),(0,s.jsxs)(s.Fragment,{children:["grogu"===a&&(0,s.jsx)(j.C,{currentStep:Number(i),totalSteps:Number(l)}),(0,s.jsxs)("div",{className:"flex flex-col",children:[r.firstName&&(0,s.jsx)(B,{children:(0,s.jsx)(M,{label:r.firstName,hasError:(0,Z.av)(null==c?void 0:c.fullname),children:(0,s.jsx)(R,{type:"text",onChange:e=>o("fullname",e.target.value),value:null==c?void 0:c.fullname})})}),r.email&&(0,s.jsx)(B,{children:(0,s.jsx)(M,{label:r.email,hasError:(0,Z.vV)(null==c?void 0:c.email),children:(0,s.jsx)(R,{type:"email",onChange:e=>o("email",e.target.value),value:null==c?void 0:c.email})})}),r.phone&&(0,s.jsx)(B,{children:(0,s.jsx)(M,{label:r.phone,children:(0,s.jsx)(k.sb,{inputClassName:"w-full !h-12 !px-3 !py-2 !rounded-r-lg !border !border-input !border-border !bg-white !text-lg !ring-offset-background placeholder:!text-muted-foreground focus-visible:!outline-none focus-visible:!ring-2 focus-visible:!ring-ring focus-visible:!ring-offset-2 disabled:!cursor-not-allowed disabled:!opacity-50 !text-text",countrySelectorStyleProps:{buttonClassName:"!h-12 !px-2 !rounded-l-lg !ring-offset-background focus-visible:!outline-none focus-visible:!ring-2 focus-visible:!ring-ring focus-visible:!ring-offset-2"},defaultCountry:r.phoneDefaultCountry||"us",onChange:e=>o("phone",e),value:null==c?void 0:c.phone})})}),r.firstName&&r.email&&(0,s.jsx)(B,{children:(0,s.jsxs)("label",{className:"flex items-center",children:[(0,s.jsx)("div",{className:"w-5",children:(0,s.jsx)(R,{type:"checkbox",onClick:()=>d?u(!1):u(!0),defaultChecked:d})}),(0,s.jsx)(G,{children:r.term})]})}),(0,s.jsx)("div",{className:"py-2 md:py-6"}),m?(0,s.jsxs)(T,{disabled:!0,children:[(0,s.jsx)(N.Z,{className:"mr-2 h-4 w-4 animate-spin"}),r.ctaSubmitLoading]}):(0,s.jsx)(s.Fragment,{children:r.email?(0,s.jsx)(T,{onClick:f,disabled:!(0,Z.vV)(c.email)||!(0,Z.av)(c.fullname),children:r.ctaSubmit}):(0,s.jsxs)("div",{className:"flex flex-col items-center gap-8",children:[(0,s.jsx)("div",{tabIndex:0,className:"select-none transition-all cursor-pointer shadow-sm bg-white ".concat("opacity-100 shadow-none border lg:border-2 border-solid border-primary"," whitespace-normal rounded-xl text-sm bg-white flex flex-col gap-2 lg:block items-center justify-center relative mt-5 p-0 lg:m-3 lg:text-center w-[135px] h-[135px] sm:w-[150px] sm:h-[150px] md:w-[180px] md:h-[180px] lg:w-[206px] lg:h-[256px] lg:py-10 lg:px-0 shadow-4xl shadow-gray-400 hover:shadow-primary hover:opacity-100 hover:border-solid hover:border-primary"),children:(0,s.jsx)("div",{className:"text-center flex justify-center items-center lg:w-full lg:m-0 lg:h-24 lg:flex lg:justify-center",children:(0,s.jsx)(E,{className:"w-20 h-20 text-primary"})})}),(0,s.jsx)(T,{onClick:f,children:r.ctaSubmit}),x&&(0,s.jsx)(F.default,{duration:3e3,force:.5})]})})]})]})}R.displayName="Input";var P=r(6362),L=r(9614),D=r(1373);let V=(0,D.Z)("circle-chevron-right",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m10 8 4 4-4 4",key:"1wy4r4"}]]);var I=r(9008),H=r.n(I),Q=r(1163),J=r(4298),X=r.n(J);let K=r(651).mda_params,W="moldeparaimprimir-com";try{n=r(5401)("./".concat(W,"/small-logo.png")),a=r(4982)("./".concat(W,"/large-logo.png"))}catch(e){console.log("No logos founded")}let Y=r(7482)("./".concat(W,"/constants")).mda_params;var $=!0;function ee(e){var t;let{data:r,step:l,product:d,currentStep:u,totalSteps:h,currentQuestion:p,isLastStep:f}=e,b={large:a,small:n},{setAnswers:w}=_(e=>e.actions),{answers:y}=_(e=>e.state),[v,j]=(0,g.useState)(!1),N=(0,Q.useRouter)();if((0,g.useEffect)(()=>{var e;
1if((0,L.fF)("Query: ",N.query),!f)return;let{gclid:t,fbclid:n}=N.query,a=t||"",s=n||"";if(!a&&!s)return;let l=a.length>20||s.length>20;l&&(null===(e=r.settings)||void 0===e?void 0:e.activeAVScriptQuiz)&&j(!0)},[N]),(0,g.useEffect)(()=>{v&&(0,P.k)(Y)},[v]),!r)return(0,s.jsx)(s.Fragment,{});let k={__html:"\n window.dataLayer = window.dataLayer || [];\n function gtag(){dataLayer.push(arguments);}\n gtag('js', new Date());\n gtag('config', '".concat(r.settings.gtag,"', {\n page_path: window.location.pathname,\n });\n !function(f,b,e,v,n,t,s)\n {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n n.queue=[];t=b.createElement(e);t.async=!0;\n t.src=v;s=b.getElementsByTagName(e)[0];\n s.parentNode.insertBefore(t,s)}(window, document,'script',\n 'https://connect.facebook.net/en_US/fbevents.js');\n fbq('init', 'xxx');\n fbq('track', 'PageView');\n ")};function C(){r.settings.activeOW&&((0,Z.d8)("loaderCopy",r.messages.loaderCopy,r.settings.domain),(0,Z.d8)("rewardedReady","true",r.settings.domain))}async function S(){let e=N.query;(0,L.y_)({event:"quiz_skip",step:l}),await fetch("/api/quiz/snowflake-events",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_name:"skip",vertical:r.settings.vertical,step:l,event_type:"mda-flow"})});let t={};for(let r in e){let n=e[r];Array.isArray(n)?t[r]=n.join(","):"string"==typeof n&&(t[r]=n)}delete t.product,delete t.step;let n=new URLSearchParams(t).toString(),a="".concat(r.settings.redirectUrl,"?").concat(n);console.log(a),C(),window.location.href=a}async function E(e,t){let{settings:n,steps:a}=r,s=Object.keys(y).map(e=>y[e]),i=a.filter(e=>"question"===e.type),o=N.query,c={};Object.keys(o).forEach(e=>{c[e]="string"==typeof o[e]?o[e]:null});let d={questions:i,answers:s,utm_source:c.utm_source,utm_campaign:c.utm_campaign,conversion_date:new Date().toLocaleString(),emailable_reponse:e,domain:n.domain,quizSource:n.quizSource,vertical:n.vertical,fullname:t?null==t?void 0:t.fullname:"",email:t?null==t?void 0:t.email:"",params:c};r.messages.phone&&(d.phone=t?null==t?void 0:t.phone:"");let u=N.query,m={};for(let e in u){let t=u[e];Array.isArray(t)?m[e]=t.join(","):"string"==typeof t&&(m[e]=t)}delete m.product,delete m.step;let g=new URLSearchParams(m).toString(),h="".concat(n.redirectUrl,"?").concat(g);if(await fetch("/api/quiz/snowflake-events",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({event_name:"click_registration",vertical:r.settings.vertical,step:l,event_type:"mda-flow"})}),console.log("Emailable: ",e),e&&e.state&&"undeliverable"!==e.state)try{let t=await fetch(n.inserterUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(d)});if(!t.ok)throw Error("Failed to send to the insertedURL");await t.json(),(!e.state||"undeliverable"===e.state)&&(r.messages.email||r.messages.firstName)||(console.log("Trace: Send events"),fbq("track","cadastro"),gtag("event","conversion",{send_to:n.gtagPixel})),(0,L.y_)({event:"quiz_registration",step:l}),C(),window.location.href=h}catch(a){console.log("Trace: Error on save",a);let e="[".concat(W," - ").concat(n.vertical,"]: Quiz Error: ").concat(a,"; name: [").concat(null==t?void 0:t.fullname,", email: ").concat(t.email,", utm_campaign: ").concat(c.utm_campaign,"]; URL: ").concat(window.location.href,"; "),r=await fetch("/api/quiz/slack-log",{method:"POST",headers:{"Content-type":"application/json"},body:JSON.stringify({message:e})});r.ok||console.log("Failed to send quiz error")}C(),window.location.href=h}return(0,s.jsx)(x,{value:{isLastStep:f,theme:null!==(t=r.settings.theme)&&void 0!==t?t:"default",settings:r.settings,messages:r.messages},children:(0,s.jsxs)(c.Z,{siteName:Y.cms_name,children:[(0,s.jsx)(H(),{children:v&&(0,s.jsx)("script",{id:"av_script",src:K.ads_script})}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(X(),{id:"ga_1",async:!0,src:"https://www.googletagmanager.com/gtag/js?i
1d=".concat(r.settings.gtag)}),(0,s.jsx)(X(),{id:"ga_2",strategy:"lazyOnload",dangerouslySetInnerHTML:k})]}),(0,s.jsx)(m,{logo:b,label:r.messages.logoLabel,theme:r.settings.theme,quiz_large_logo_path:Y.quiz_large_logo_path,quiz_small_logo_path:Y.quiz_small_logo_path}),(0,s.jsxs)("section",{className:"text-base flex-1 mx-auto max-w-sm box-content lg:flex lg:flex-col lg:mt-20 lg:items-center h-screen lg:max-w-none lg:mx-0",children:["question"===p.type&&(0,s.jsxs)("div",{children:[(0,s.jsx)(o.h,{title:p.question,description:p.description,theme:r.settings.theme,currentStep:l,totalSteps:h,titleColor:r.settings.titleColor,backgroundColor:r.settings.backgroundColor}),(0,s.jsx)(A,{step:p,currentStep:l,totalSteps:h,value:y[p.question]||null,onStepChange:(e,t)=>(function(e,t){if("question"===e.type){let n=N.query;w(e.question,t);let a="/quiz/".concat(d,"/").concat(parseInt(l)+1),s={};for(let e in n){let t=n[e];Array.isArray(t)?s[e]=t.join(","):"string"==typeof t&&(s[e]=t)}let i=new URLSearchParams(s).toString(),o="".concat(a,"?").concat(i);if(u===h){let e={...s};delete e.product,delete e.step;let t=new URLSearchParams(e).toString(),n="".concat(r.settings.redirectUrl,"?").concat(t);C(),window.location.href=n;return}if(u===h-1){(0,L.y_)({event:"quiz_step",step:l}),window.location.href=o;return}N.replace({pathname:a,query:n})}})(p,t),theme:r.settings.theme})]}),"registration"===p.type&&(0,s.jsxs)("div",{children:[(0,s.jsx)(o.h,{title:p.title,description:p.subtitle}),(0,s.jsx)(z,{step:p,currentStep:l,totalSteps:h,messages:r.messages,settings:r.settings,onStepChange:E,theme:r.settings.theme})]}),"question"===p.type&&r.messages.skipMessage?(0,s.jsx)("div",{className:"mt-4 flex w-full justify-center items-center ",children:(0,s.jsx)("button",{onClick:()=>S(),children:(0,s.jsxs)("div",{className:"text-xs flex gap-1 justify-center items-center text-gray-400",children:[(0,s.jsx)("span",{className:"underline",children:r.messages.skipMessage?r.messages.skipMessage:"Skip and go to recommendation"}),(0,s.jsx)(V,{className:"w-3 h-3 text-gray-400"})]})})}):(0,s.jsx)(s.Fragment,{children:r.messages.firstName&&r.messages.email&&r.messages.skipMessage&&(0,s.jsx)("div",{className:"mt-4 flex w-full justify-center items-center ",children:(0,s.jsx)("button",{onClick:()=>S(),children:(0,s.jsxs)("div",{className:"text-xs flex gap-1 justify-center items-center text-gray-400",children:[(0,s.jsx)("span",{className:"underline",children:r.messages.skipMessage?r.messages.skipMessage:"Skip and go to recommendation"}),(0,s.jsx)(V,{className:"w-3 h-3 text-gray-400"})]})})})})]}),(0,s.jsx)(i,{settings:r.settings,messages:r.messages})]})})}},1332:function(e,t,r){"use strict";var n=r(7294);let a=n.forwardRef(function({title:e,titleId:t,...r},a){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"}))});t.Z=a}},function(e){e.O(0,[4182,5914,1681,6362,9774,2888,179],function(){return e(e.s=810)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.