PageSourceSearch

https://beautyjoint.com/cdn/shopifycloud/checkout-web/assets/c1/5fd968f2.B6YCmvlZ.js

js beautyjoint.com collected 2026-10-02 11:18:36 UTC 6,142 bytes, 1 lines download raw bytes

1import{au as t,b5 as e,a2 as a,l as i,m as n,u as s}from"./2c1ab0fe.GMbxnz74.js";import{c as r,a3 as o}from"./164ad2e3.BbIvMjRY.js";import{S as c,mM as h}from"./4c290a1e.C6TDJ9Fn.js";function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=t&&t.ownerDocument||document;return{document:e,window:e.defaultView||e.parentWindow||window}}function u(t){return t||document.head}var f="hcaptcha-api-script-id",v="hcaptchaOnLoad",m=[],y=function(a){var i,n;function s(t){var i;return(i=a.call(this,t)||this)._hcaptcha=void 0,i.renderCaptcha=i.renderCaptcha.bind(p(i)),i.resetCaptcha=i.resetCaptcha.bind(p(i)),i.removeCaptcha=i.removeCaptcha.bind(p(i)),i.isReady=i.isReady.bind(p(i)),i.loadCaptcha=i.loadCaptcha.bind(p(i)),i.handleOnLoad=i.handleOnLoad.bind(p(i)),i.handleSubmit=i.handleSubmit.bind(p(i)),i.handleExpire=i.handleExpire.bind(p(i)),i.handleError=i.handleError.bind(p(i)),i.handleOpen=i.handleOpen.bind(p(i)),i.handleClose=i.handleClose.bind(p(i)),i.handleChallengeExpired=i.handleChallengeExpired.bind(p(i)),i.ref=e(),i.apiScriptRequested=!1,i.state={isApiReady:!1,isRemoved:!1,elementId:t.id,captchaId:""},i}n=a,(i=s).prototype=Object.create(n.prototype),i.prototype.constructor=i,d(i,n);var r=s.prototype;return r.componentDidMount=function(){var t=this,e=l(u(this.props.scriptLocation));this._hcaptcha=e.window.hcaptcha||void 0,void 0!==this._hcaptcha?this.setState({isApiReady:!0},function(){t.renderCaptcha()}):this.loadCaptcha()},r.componentWillUnmount=function(){var t=this.state.captchaId,e=this._hcaptcha;this.isReady()&&(e.reset(t),e.remove(t))},r.shouldComponentUpdate=function(t,e){return this.state.isApiReady===e.isApiReady&&this.state.isRemoved===e.isRemoved},r.componentDidUpdate=function(t){var e=this;["sitekey","size","theme","tabindex","languageOverride","endpoint"].every(function(a){return t[a]===e.props[a]})||this.removeCaptcha(function(){e.renderCaptcha()})},r.loadCaptcha=function(){if(!this.apiScriptRequested){var t=this.props,e=t.apihost,a=t.assethost,i=t.endpoint,n=t.host,s=t.
1imghost;(function(t){void 0===t&&(t={});var e=u(t.scriptLocation);delete t.scriptLocation;var a=l(e),i=m.find(function(t){return t.scope===a.window});if(a.document.getElementById(f)&&i)return i.promise;var n=new Promise(function(i,n){a.window[v]=i;var s=t.apihost||"https://js.hcaptcha.com";delete t.apihost;var r=a.document.createElement("script");r.id=f,r.src=s+"/1/api.js?render=explicit&onload="+v,r.async=void 0===t.loadAsync||t.loadAsync,delete t.loadAsync,r.onerror=function(t){return n("script-error")};var o=function(t){return Object.entries(t).filter(function(t){t[0];var e=t[1];return e||!1===e}).map(function(t){var e=t[0],a=t[1];return encodeURIComponent(e)+"="+encodeURIComponent(a)}).join("&")}(t);r.src+=""!==o?"&"+o:"",e.appendChild(r)});return m.push({promise:n,scope:a.window}),n})({apihost:e,assethost:a,endpoint:i,hl:t.languageOverride,host:n,imghost:s,recaptchacompat:!1===t.reCaptchaCompat?"off":null,reportapi:t.reportapi,sentry:t.sentry,custom:t.custom,loadAsync:t.loadAsync,scriptLocation:t.scriptLocation}).then(this.handleOnLoad).catch(this.handleError),this.apiScriptRequested=!0}},r.renderCaptcha=function(t){if(this.state.isApiReady){var e=Object.assign({"open-callback":this.handleOpen,"close-callback":this.handleClose,"error-callback":this.handleError,"chalexpired-callback":this.handleChallengeExpired,"expired-callback":this.handleExpire,callback:this.handleSubmit},this.props,{hl:this.props.hl||this.props.languageOverride,languageOverride:void 0}),a=this._hcaptcha.render(this.ref.current,e);this.setState({isRemoved:!1,captchaId:a},function(){t&&t()})}},r.resetCaptcha=function(){var t=this.state.captchaId,e=this._hcaptcha;this.isReady()&&e.reset(t)},r.removeCaptcha=function(t){var e=this.state.captchaId,a=this._hcaptcha;this.isReady()&&this.setState({isRemoved:!0},function(){a.remove(e),t&&t()})},r.handleOnLoad=function(){var t=this;this.setState({isApiReady:!0},function(){var e=l(u(t.props.scriptLocation));t._hcaptcha=e.window.hcaptcha,t.renderCaptcha(function(){var e=t.props.onLoad;e&&e()})})},r.handleSubmit=function(t){var e=this.props.onVerify,a=this.state,i=a.isRemoved,n=a.captchaId,s=this._hcaptcha;if(void 0!==s&&!i){var r=s.getResponse(n),o=s.getRespKey(n);e&&e(r,o)}},r.handleExpire=function(){var t=this.props.onExpire,e=this.state.captchaId,a=this._hcaptcha;this.isReady()&&(a.reset(e),t&&t())},r.handleError=function(t){var e=this.props.onError,a=this.state.captchaId,i=this._hcaptcha;this.isReady()&&i.reset(a),e&&e(t)},r.isReady=function(){var t=this.state,e=t.isApiReady,a=t.isRemoved;return e&&!a},r.handleOpen=function(){this.isReady()&&this.props.onOpen&&this.props.onOpen()},r.handleClose=function(){this.isReady()&&this.props.onClose&&this.props.onClose()},r.handleChallengeExpired=function(){this.isReady()&&this.props.onChalExpired&&this.props.onChalExpired()},r.execute=function(t){void 0===t&&(t=null);var e=this.state.captchaId,a=this._hcaptcha;if(this.isReady())return t&&"object"!=typeof t&&(t=null),a.execute(e,t)},r.setData=function(t){var e=this.state.captchaId,a=this._hcaptcha;this.isReady()&&(t&&"object"!=typeof t&&(t=null),a.setData(e,t))},r.getResponse=function(){return this._hcaptcha.getResponse(this.state.captchaId)},r.getRespKey=function(){return this._hcaptcha.getRespKey(this.state.captchaId)},r.render=function(){var e=this.state.elementId;return t("div",{ref:this.ref,id:e})},s}(a);const b=Object.freeze(Object.defineProperty({__proto__:null,default:function(){const{i18n:t,shopPay:e}=c(),a=("undefined"==typeof window?void 0:window.shopPayCaptchaSiteKey)??h,p=i(null);return n(()=>{if(p.current)return e.signup.unstable_setCaptchaRef(p.current),()=>{e.signup.unstable_setCaptchaRef(void 0)}},[e.signup]),s(o,{accessibilityLabel:t.translate("captcha.title"),children:s(r,{gap:"small-400",children:s(y,{size:"invisible",sitekey:a,languageOverride:t.locale,ref:p})})})}},Symbol.toStringTag,{value:"Module"}));export{y as H,b as S};

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.