PageSourceSearch

https://www.benandfrank.com/_next/static/chunks/5663-fdabb5ba13b9910b.js

js benandfrank.com collected 2026-10-03 22:01:00 UTC 17,748 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bb3bdb01-b507-434e-b4ac-410148877919",e._sentryDebugIdIdentifier="sentry-dbid-bb3bdb01-b507-434e-b4ac-410148877919")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5663],{514:function(e,t,r){"use strict";r.d(t,{G:function(){return toAccountError}});var n=r(27833);let a={validation:{},general:null};function toAccountError(e){var t,r,o,s,i;if(!e)return{...a};if(isAccountError(e))return{validation:null!==(t=e.validation)&&void 0!==t?t:{},general:e.general};if(n.default.isAxiosError(e)){let t=null===(o=e.response)||void 0===o?void 0:null===(r=o.data)||void 0===r?void 0:r.error,n=(s=null==t?void 0:t.details)&&"object"==typeof s&&"errors"in s&&isAccountError(s.errors)?{validation:null!==(i=s.errors.validation)&&void 0!==i?i:{},general:s.errors.general}:null;if(n)return n;if((null==t?void 0:t.code)==="RECAPTCHA_FAILED")return{validation:{},general:"recaptcha_failed"};if(!e.response)return{validation:{},general:"network_error"}}return{validation:{},general:"unknown_error"}}function isAccountError(e){return!!e&&"object"==typeof e&&"validation"in e&&"general"in e&&"object"==typeof e.validation}},88900:function(e,t,r){"use strict";var n=r(24246),a=r(38944),o=r(38579),s=r.n(o),i=r(75275),l=r(87618),d=r(71897),c=r(9546),u=r.n(c);t.Z=e=>{let{title:t,subtitle:r,description:o,image:c,items:f,fullScreen:m=!1,stroke:h=!1,cta:p,className:_}=e,g=(0,a.Z)(u().root,{[u().fullScreen]:m},_);return(0,n.jsxs)("div",{className:g,children:[c&&(0,n.jsx)("div",{className:(0,a.Z)(u().image,{[u().smallImage]:"small"===c.variant}),children:(0,n.jsx)(s(),{src:c.src,alt:"mole",fill:!0})}),(0,n.jsx)(i.default,{tag:"p",size:t.size?t.size:"xl",weight:t.weight?t.weight:"bold",variant:t.variant?t.variant:"body",fontFamily:t.fontFamily?t.fontFamily:"sans",className:(0,a.Z)({[u().title]:r}),children:t.text}),r&&(0,n.jsxs)("div",{className:(0,a.Z)(u().subtitleContainer,{[u().withIcon]:null==r?void 0:r.icon}),children:[r.icon&&(0,n.jsx)(l.Z,{name:r.icon}),(0,n.jsx)(i.default,{tag:"p",weight:"normal",variant:r.variant?r.variant:"body",className:u().subtitle,children:r.text})]}),o&&(0,n.jsx)("div",{className:u().descriptionContainer,children:(0,n.jsx)(i.default,{tag:"p",weight:"normal",variant:o.variant?o.variant:"body",children:o.text})}),p&&(0,n.jsx)("div",{className:u().ctaContainer,children:(0,n.jsx)(d.default,{variant:p.variant?p.variant:"primary",href:p.url,flat:!0,children:p.text})}),f&&(0,n.jsxs)("div",{className:(0,a.Z)(u().items,{[u().itemsFullScreen]:m}),children:[f.title&&(0,n.jsx)(i.default,{tag:"p",weight:"normal",variant:"body",children:f.title}),f.items.map(e=>(0,n.jsxs)("div",{className:(0,a.Z)(u().item,{[u().itemFullScreen]:m}),children:[(0,n.jsx)(l.Z,{name:e.icon,size:"lg",className:u().icon}),(0,n.jsx)(i.default,{tag:"p",children:e.text})]},e.text))]}),h&&(0,n.jsx)("div",{className:(0,a.Z)(u().contentLine,{[u().contentLineSubtitle]:r}),children:(0,n.jsx)("hr",{className:u().line})})]})}},91177:function(e,t,r){"use strict";r.d(t,{Z:function(){return Modal_Modal}});var n=r(24246),a=r(27378),o=r(52267),s=r(17046),i=r(36009),l=r(38944),d=r(57784),c=r(66839),u=r(89775),f=r(54598);function FocusTrap(e){let{children:t,focusFirst:r=!1,fullHeight:o=!1}=e,s=a.useRef(null),i=a.useRef("undefined"!=typeof document?document.activeElement:null),l=(0,a.useCallback)(()=>{i.current&&setTimeout(()=>{var e;null===(e=i.current)||void 0===e||e.focus()},10)},[]),d=(0,a.useCallback)(()=>{if(s.current&&r){let e=(0,f.ht)(s.current);e.length>0&&e[0].focus()}},[r]);return(0,a.useEffect)(()=>(d(),()=>{l()}),[r,l,d]),(0,n.jsx)("div",{ref:s,className:"outline-none focus-trap",tabIndex:-1,style:{width:"100%",height:o?"100%":"auto"},children:t})}var m=r(32581),h=r.n(m),Modal_Modal=e=>{let{id:t,children:r,displayCloseButton:f=!0,closeOnClickOutside:m=!0,isOpen:p=!1,onClose:_,variant:g="sm",hideShadow:b=!1,className:w,style:v}=e,[x,y]=(0,a.useState)(p),[S,{height:C}]=(0,d.Z)({polyfill:o.do}),P=(0,a.useRef)(null),N=(0,a.useRef)(null),I=(0,a.useCallback)(()=>{m&&p&&y(e=>!e)},[m,p]);(0,a.useEffect)(()=>{y(p),p&&N.current&&(N.current.scrollTop=0)},[p]);let j=(0,s.q_)({height:x?C:0,config:{tension:250,friction:32,clamp:!0,duration:150},opacity:x?1:0});return(0,a.useEffect)(()=>{let e=null==P?void 0:P.current,toggleUsingScapeKey=e=>{"Escape"===e.key&&_()},toggleUsingClickOutside=()=>{m&&_()};return e&&p&&((0,i.Qp)(e,{reserveScrollBarGap:!0,allowTouchMove:()=>!0}),m&&e.addEventListener("click",toggleUsingClickOutside),window.addEventListener("keydown",toggleUsingScapeKey)),()=>{(0,i.tP)(),window.removeEventListener("keydown",toggleUsingScapeKey),null==e||e.removeEventListener("click",toggleUsingClickOutside)}},[m,p,_]),(0,n.jsx)(u.Z,{active:x&&m,onClick:I,children:(0,n.jsx)("div",{className:h().collapsableItems,children:(0,n.jsxs)(s.a.div,{className:(0,l.Z)(h().root,w,{[h().rootFullScreen]:"fullScreen"===g}),style:{overflow:"hidden",...j,...v},children:[(0,n.jsx)("div",{id:t,className:h().overlay,style:{display:x?"block":"none",pointerEvents:m?"auto":"none"},ref:P}),(0,n.jsxs)("div",{className:(0,l.Z)(h().mainContainer,{[h().mainContainerFullScreen]:"fullScreen"===g,[h().mainContainerFit]:"fit"===g}),ref:S,children:[(0,n.jsxs)("div",{ref:N,className:(0,l.Z)(h().modalContainer,{[h().lgSize]:"lg"===g,[h().mdSize]:"md"===g,[h().fullScreen]:"fullScreen"===g,[h().fitSize]:"fit"===g}),children:[f&&(0,n.jsx)("div",{className:h().header,children:(0,n.jsx)(c.Z,{icon:"xmark",className:h().closeIcon,onClick:_,id:"modal-closeButton"})}),(0,n.jsx)("div",{className:(0,l.Z)(h().infoContainer,{[h().infoContainerFullScreen]:"fullScreen"===g,[h().infoContainerLarge]:"lg"===g,[h().infoContainerFit]:"fit"===g}),children:(0,n.jsx)(FocusTrap,{focusFirst:!0,fullHeight:"fullScreen"===g,children:r})})]}),(0,n.jsx)("div",{className:(0,l.Z)(h().shadowContainer,{[h().hiddenShadow]:"fullScreen"===g||b})})]})]})})})}},88643:function(e,t,r){"use strict";r.d(t,{Z:function(){return RestorePassword_RestorePassword}});var n=r(24246),a=r(27378),o=r(43647),s=r(38944),i=r(88039),l=r(90909),d=r(88900),c=r(75275),u=r(71897),f=r(69684),m=r(68301),h=r(62465);let restorePasswordSchema=()=>m.Ry().shape({password:h.Bj.password,confirmPassword:h.Bj.password.test("match","Tus contrase\xf1as no coinciden",function(e){return e===this.parent.password})}),changePasswordSchema=()=>m.Ry().shape({currentPassword:m.Z_().required("La contrase\xf1a ingresada no es v\xe1lida").test((e,t)=>!!e&&(!!(!(e.length<8)&&/[ `!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]+/.test(e)&&/\d/.test(e)&&/(?=.*[a-z])(?=.*[A-Z])/.test(e))||t.createError({message:"La contrase\xf1a ingresada no es v\xe1lida"}))),password:h.Bj.password.test("match","Tu nueva contrase\xf1a no puede ser igual a tu contrase\xf1a actual",function(e){return e!==this.parent.currentPassword}),confirmPassword:h.Bj.password.test("match","Tus contrase\xf1as no coinciden",function(e){return e===this.parent.password})});
1var p=r(9475),_=r.n(p),RestorePassword_RestorePassword=e=>{let{isChangePassword:t=!1,tokenIssue:r,formError:m,onSubmitForm:h,onGoToRecoverPassword:p,onGoToHome:g,partner:b,className:w}=e,{t:v}=(0,l.$)("molecules",{keyPrefix:"restorePassword"}),{register:x,trigger:y,watch:S,handleSubmit:C,formState:{errors:P,dirtyFields:N,isValid:I,isSubmitting:j}}=(0,i.cI)({resolver:t?(0,o.X)(changePasswordSchema()):(0,o.X)(restorePasswordSchema()),mode:"onChange"}),E=(0,s.Z)(_().root,w),R=S("currentPassword"),A=S("password"),k=S("confirmPassword");return(0,a.useEffect)(()=>{R&&A&&y("password"),A&&k&&y("confirmPassword")},[R,A,k,y]),(0,n.jsxs)("div",{className:E,children:[(0,n.jsx)(d.Z,{title:{text:v(t?"changePassword":(null==b?void 0:b.passwordUpdated)===!1?"addPassword":"forgotPassword")},image:{src:"https://s3.benandfrank.com/headless/img/mole-eyes-right.svg",variant:"normal"},fullScreen:!0,stroke:!0}),"invalid_token"===r||"expired_token"===r?(0,n.jsxs)("div",{className:_().restorePasswordForm,children:[(0,n.jsx)(c.default,{tag:"p",weight:"bold",variant:"danger",size:"base",html:v(r),className:_().tokenText}),"expired_token"===r&&(0,n.jsx)(c.default,{tag:"p",html:v("expired_tokenInstructions"),size:"sm"}),(0,n.jsx)(u.default,{type:"button",onClick:"expired_token"===r?p:g,className:_().button,children:v("".concat(r,"Button"))})]}):(0,n.jsxs)("form",{onSubmit:C(h),className:_().restorePasswordForm,children:[(0,n.jsxs)("div",{className:(0,s.Z)(_().inputContainer),children:[t&&(0,n.jsx)(f.Z,{tabIndex:1,name:"currentPassword",type:"password",label:v("currentPasswordLabel"),required:!0,placeholder:v("currentPasswordPlaceholder"),passwordToggle:!0,rightIcon:"eye",register:x,error:P.currentPassword,isDirty:N.currentPassword}),(0,n.jsx)(f.Z,{tabIndex:2,name:"password",type:"password",label:v("passwordLabel"),required:!0,placeholder:v(t?"forgotPasswordPlaceholder":"changePasswordPlaceholder"),passwordToggle:!0,rightIcon:"eye",disabled:!!t&&(!N.currentPassword||!!P.currentPassword),register:x,error:P.password,isDirty:N.password}),(0,n.jsx)(f.Z,{tabIndex:3,name:"confirmPassword",type:"password",label:v("confirmPasswordLabel"),required:!0,placeholder:v("confirmPasswordPlaceholder"),passwordToggle:!0,rightIcon:"eye",disabled:!N.password||!!P.password||!!t&&(!N.password||!!P.currentPassword||!N.currentPassword||!!P.password),register:x,error:P.confirmPassword,isDirty:N.confirmPassword})]}),(0,n.jsx)(u.default,{type:"submit",className:_().button,variant:"primary",disabled:!I||j,children:(0,n.jsx)(c.default,{tag:"p",size:"sm",weight:"bold",children:v("submit")})})]}),m&&(0,n.jsx)(c.default,{variant:"danger",size:"xs",weight:"bold",className:_().issueItem,children:v("errors.".concat(m))})]})}},62465:function(e,t,r){"use strict";r.d(t,{Bj:function(){return a},JJ:function(){return i}});var n=r(68301);let a={password:n.Z_().required("Tu contrase\xf1a debe tener:\n• M\xednimo 8 caracteres\n• Un car\xe1cter especial y un n\xfamero\n• Una may\xfascula y una min\xfascula").test((e,t)=>{let r=[];if(!e)return!1;if(e.length<8&&r.push("M\xednimo 8 caracteres"),/[ `!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]+/.test(e)&&/\d/.test(e)||r.push("Un car\xe1cter especial y un n\xfamero"),/(?=.*[a-z])(?=.*[A-Z])/.test(e)||r.push("Una may\xfascula y una min\xfascula"),r.length>0){let e="Tu contrase\xf1a debe tener:\n".concat(r.map(e=>"- ".concat(e)).join("\n"));return t.createError({message:e})}return!0})},o={...a,confirmPassword:n.Z_()},s=new RegExp(/^[a-zA-ZÀ-ÿ ]*$/g),i=n.Ry().shape({email:n.Z_().required("Escribe un correo v\xe1lido").email("Escribe un correo v\xe1lido").test("custom","No se permiten correos con '+'.",function(e){return!(null==e?void 0:e.includes("+"))}),firstName:n.Z_().required(" ").max(25,"M\xe1ximo 25 caracteres").matches(s,"Escribe tu nombre s\xf3lo con letras"),lastName:n.Z_().required(" ").max(25,"M\xe1ximo 25 caracteres").matches(s,"Escribe tu apellido s\xf3lo con letras"),terms:n.O7().oneOf([!0],"Por favor acepta los t\xe9rminos y condiciones"),subscribe:n.O7().optional(),...o,confirmPassword:n.Z_().required("Tus contrase\xf1as no coinciden").test("match","Tus contrase\xf1as no coinciden",function(e){return e===this.parent.password})})},9546:function(e){e.exports={root:"AccountHeader_root__zZT_K",title:"AccountHeader_title__E8ZCw",subtitleContainer:"AccountHeader_subtitleContainer__phh6J",descriptionContainer:"AccountHeader_descriptionContainer___yNdK",subtitle:"AccountHeader_subtitle___GRtu",contentLine:"AccountHeader_contentLine__02gKu",contentLineSubtitle:"AccountHeader_contentLineSubtitle__6PGva",line:"AccountHeader_line__XN0H_",image:"AccountHeader_image__BY0Qb",smallImage:"AccountHeader_smallImage__ovhzT",fullScreen:"AccountHeader_fullScreen__VTInC",withIcon:"AccountHeader_withIcon__YSvzK",items:"AccountHeader_items__IhK5j",itemsFullScreen:"AccountHeader_itemsFullScreen__kU4cW",item:"AccountHeader_item__YlEmm",itemFullScreen:"AccountHeader_itemFullScreen__MjIqZ",icon:"AccountHeader_icon__OA56W"}},32581:function(e){e.exports={root:"Modal_root__UXo4V",collapsableItems:"Modal_collapsableItems__VHc4o",overlay:"Modal_overlay__jfeSP",mainContainer:"Modal_mainContainer__dxLaR",modalContainer:"Modal_modalContainer__lxdio",lgSize:"Modal_lgSize__CqRyw",shadowContainer:"Modal_shadowContainer__9FaWw",header:"Modal_header__CM_SN",closeIcon:"Modal_closeIcon__c8Yk4",infoContainer:"Modal_infoContainer__zkW7X",infoContainerFullScreen:"Modal_infoContainerFullScreen__kmRAv",infoContainerLarge:"Modal_infoContainerLarge__D0JDk",infoContainerFit:"Modal_infoContainerFit__PYf4p",mdSize:"Modal_mdSize__1YPJH",fullScreen:"Modal_fullScreen__bHtLD",mainContainerFullScreen:"Modal_mainContainerFullScreen__fnPbc",hiddenShadow:"Modal_hiddenShadow__Uju0a",rootFullScreen:"Modal_rootFullScreen__IvRBb",fitSize:"Modal_fitSize__nnYfe"}},9475:function(e){e.exports={root:"RestorePassword_root__UEvZ1",restorePasswordForm:"RestorePassword_restorePasswordForm__i9OMb",inputContainer:"RestorePassword_
1inputContainer__1bpvi",issueItem:"RestorePassword_issueItem__JbrJT",tokenText:"RestorePassword_tokenText__ybvLJ",button:"RestorePassword_button__DuRfn"}},54598:function(e,t,r){"use strict";r.d(t,{ht:function(){return tabbable}});var n='input,select,textarea,a[href],button,[tabindex]:not(slot),audio[controls],video[controls],[contenteditable]:not([contenteditable="false"]),details>summary:first-of-type,details',a="undefined"==typeof Element,o=a?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!a&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},getCandidates=function(e,t,r){var a=Array.prototype.slice.apply(e.querySelectorAll(n));return t&&o.call(e,n)&&a.unshift(e),a=a.filter(r)},getCandidatesIteratively=function getCandidatesIteratively(e,t,r){for(var a=[],s=Array.from(e);s.length;){var i=s.shift();if("SLOT"===i.tagName){var l=i.assignedElements(),d=getCandidatesIteratively(l.length?l:i.children,!0,r);r.flatten?a.push.apply(a,d):a.push({scope:i,candidates:d})}else{o.call(i,n)&&r.filter(i)&&(t||!e.includes(i))&&a.push(i);var c=i.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(i),u=!r.shadowRootFilter||r.shadowRootFilter(i);if(c&&u){var f=getCandidatesIteratively(!0===c?i.children:c.children,!0,r);r.flatten?a.push.apply(a,f):a.push({scope:i,candidates:f})}else s.unshift.apply(s,i.children)}}return a},getTabindex=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},sortOrderedTabbables=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},isInput=function(e){return"INPUT"===e.tagName},getCheckedRadio=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},isTabbableRadio=function(e){if(!e.name)return!0;var t,r=e.form||s(e),queryRadios=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=queryRadios(window.CSS.escape(e.name));else try{t=queryRadios(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var n=getCheckedRadio(t,e.form);return!n||n===e},isZeroArea=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},isHidden=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var a=o.call(e,"details>summary:first-of-type")?e.parentElement:e;if(o.call(a,"details:not([open]) *"))return!0;var i=s(e).host,l=(null==i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(r&&"full"!==r){if("non-zero-area"===r)return isZeroArea(e)}else{if("function"==typeof n){for(var d=e;e;){var c=e.parentElement,u=s(e);if(c&&!c.shadowRoot&&!0===n(c))return isZeroArea(e);e=e.assignedSlot?e.assignedSlot:c||u===e.ownerDocument?c:u.host}e=d}if(l)return!e.getClientRects().length}return!1},isDisabledFromFieldset=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!o.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1},isNodeMatchingSelectorTabbable=function(e,t){var r,n,a;return!(isInput(r=t)&&"radio"===r.type&&!isTabbableRadio(r)||0>getTabindex(t))&&(n=e,!((a=t).disabled||isInput(a)&&"hidden"===a.type||isHidden(a,n)||"DETAILS"===a.tagName&&Array.prototype.slice.apply(a.children).some(function(e){return"SUMMARY"===e.tagName})||isDisabledFromFieldset(a)))},isValidShadowRootTabbable=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||t>=0},sortByOrder=function sortByOrder(e){var t=[],r=[];return e.forEach(function(e,n){var a=!!e.scope,o=a?e.scope:e,s=getTabindex(o,a),i=a?sortByOrder(e.candidates):o;0===s?a?t.push.apply(t,i):t.push(o):r.push({documentOrder:n,tabIndex:s,item:e,isScope:a,content:i})}),r.sort(sortOrderedTabbables).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},tabbable=function(e,t){return sortByOrder((t=t||{}
1).getShadowRoot?getCandidatesIteratively([e],t.includeContainer,{filter:isNodeMatchingSelectorTabbable.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:isValidShadowRootTabbable}):getCandidates(e,t.includeContainer,isNodeMatchingSelectorTabbable.bind(null,t)))}}}]);

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.