admin
1 day ago
blocks
1 day ago
components
1 day ago
icon-assets
2 months ago
scripts
1 year ago
store
1 day ago
styles
1 year ago
templates
1 day ago
vendor
1 day ago
1012.js
1 day ago
1013.js
1 day ago
1071.js
1 day ago
1222.js
1 day ago
1279.js
1 day ago
1331.js
1 day ago
1375.js
1 day ago
1418.js
1 day ago
1437.js
1 day ago
1467.js
1 day ago
1545.js
1 day ago
1567.js
1 day ago
1712.js
1 day ago
1782.js
1 day ago
1834.js
1 day ago
1897.js
1 day ago
1935.js
1 day ago
1936.js
1 day ago
1972.js
1 day ago
2023.js
1 day ago
2039.js
1 day ago
2074.js
1 day ago
2107.js
1 day ago
2120.js
1 day ago
216.js
1 day ago
2161.js
1 day ago
2176.js
1 day ago
2179.js
1 day ago
2262.js
1 day ago
2321.js
1 day ago
2368.js
1 day ago
2393.js
1 day ago
2459.js
1 day ago
2487.js
1 day ago
2518.js
1 day ago
2529.js
1 day ago
2655.js
1 day ago
2837.js
1 day ago
2850.js
1 day ago
2865.js
1 day ago
2878.js
1 day ago
2885.js
1 day ago
2894.js
1 day ago
294.js
1 day ago
2940.js
1 day ago
2948.js
1 day ago
3015.js
1 day ago
3074.js
1 day ago
3093.js
1 day ago
3163.js
1 day ago
321.js
1 day ago
3291.js
1 day ago
3328.js
1 day ago
3346.js
1 day ago
3396.js
1 day ago
3419.js
1 day ago
348.js
1 day ago
3590.js
1 day ago
366.js
1 day ago
3684.js
1 day ago
3787.js
1 day ago
3789.js
1 day ago
3829.js
1 day ago
3877.js
1 day ago
3928.js
1 day ago
393.js
1 day ago
3998.js
1 day ago
4006.js
1 day ago
4009.js
1 day ago
4086.js
1 day ago
4127.js
1 day ago
4179.js
1 day ago
4264.js
1 day ago
4276.js
1 day ago
4372.js
1 day ago
4495.js
1 day ago
4498.js
1 day ago
4527.js
1 day ago
4612.js
1 day ago
4691.js
1 day ago
475.js
1 day ago
4869.js
1 day ago
4917.js
1 day ago
515.js
1 day ago
5167.js
1 day ago
5223.js
1 day ago
5230.js
1 day ago
5235.js
1 day ago
5254.js
1 day ago
5360.js
1 day ago
5397.js
1 day ago
5426.js
1 day ago
5471.js
1 day ago
5503.js
1 day ago
5558.js
1 day ago
5585.js
1 day ago
5593.js
1 day ago
5611.js
1 day ago
5668.js
1 day ago
5703.js
1 day ago
5733.js
1 day ago
5812.js
1 day ago
5825.js
1 day ago
5908.js
1 day ago
6000.js
1 day ago
6008.js
1 day ago
6021.js
1 day ago
6034.js
1 day ago
6087.js
1 day ago
610.js
1 day ago
614.js
1 day ago
6241.js
1 day ago
6274.js
1 day ago
6325.js
1 day ago
6387.js
1 day ago
6453.js
1 day ago
648.js
1 day ago
6653.js
1 day ago
6755.js
1 day ago
6756.js
1 day ago
686.js
1 day ago
6886.js
1 day ago
6912.js
1 day ago
6932.js
1 day ago
698.js
1 day ago
713.js
1 day ago
7245.js
1 day ago
7254.js
1 day ago
7272.js
1 day ago
7291.js
1 day ago
7313.js
1 day ago
7349.js
1 day ago
7354.js
1 day ago
7435.js
1 day ago
7481.js
1 day ago
75.js
1 day ago
7513.js
1 day ago
758.js
1 day ago
7581.js
1 day ago
7624.js
1 day ago
7854.js
1 day ago
7893.js
1 day ago
8017.js
1 day ago
8053.js
1 day ago
8084.js
1 day ago
8110.js
1 day ago
8148.js
1 day ago
8207.js
1 day ago
8229.js
1 day ago
8270.js
1 day ago
829.js
1 day ago
8360.js
1 day ago
8371.js
1 day ago
839.js
1 day ago
8516.js
1 day ago
854.js
1 day ago
8566.js
1 day ago
8676.js
1 day ago
868.js
1 day ago
8695.js
1 day ago
8702.js
1 day ago
8739.js
1 day ago
8804.js
1 day ago
8820.js
1 day ago
8839.js
1 day ago
889.js
1 day ago
8923.js
1 day ago
8925.js
1 day ago
8935.js
1 day ago
8942.js
1 day ago
8979.js
1 day ago
9008.js
1 day ago
9010.js
1 day ago
9017.js
1 day ago
9023.js
1 day ago
903.js
1 day ago
9049.js
1 day ago
9063.js
1 day ago
9093.js
1 day ago
9140.js
1 day ago
9173.js
1 day ago
9210.js
1 day ago
9367.js
1 day ago
9372.js
1 day ago
9389.js
1 day ago
9433.js
1 day ago
9459.js
1 day ago
9537.js
1 day ago
9555.js
1 day ago
9640.js
1 day ago
9643.js
1 day ago
965.js
1 day ago
9687.js
1 day ago
9688.js
1 day ago
9691.js
1 day ago
9797.js
1 day ago
9804.js
1 day ago
9812.js
1 day ago
9846.js
1 day ago
9881.js
1 day ago
9969.js
1 day ago
sc-product-collections-detail.js
1 day ago
sc-product-groups-detail.js
1 day ago
sc-products-bulk-delete.js
1 day ago
sc-products-detail.js
1 day ago
sc-reviews-detail.js
1 day ago
style-rtl.css
1 day ago
style.css
1 day ago
4127.js
1 lines
| 1 | "use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[4127],{16402:function(t,e,i){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",e=document.createElement("div");e.id="a11y-speak-".concat(t),e.className="a11y-speak-region",e.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),e.setAttribute("aria-live",t),e.setAttribute("aria-relevant","additions text"),e.setAttribute("aria-atomic","true");var i=document.body;return i&&i.appendChild(e),e}i.d(e,{s:function(){return r}});var a,s="";function r(t,e){!function(){for(var t=document.getElementsByClassName("a11y-speak-region"),e=document.getElementById("a11y-speak-intro-text"),i=0;i<t.length;i++)t[i].textContent="";e&&e.setAttribute("hidden","hidden")}(),t=function(t){return t=t.replace(/<[^<>]+>/g," "),s===t&&(t+=" "),s=t,t}(t);var i=document.getElementById("a11y-speak-intro-text"),n=document.getElementById("a11y-speak-assertive"),a=document.getElementById("a11y-speak-polite");n&&"assertive"===e?n.textContent=t:a&&(a.textContent=t),i&&i.removeAttribute("hidden")}a=function(){var t=document.getElementById("a11y-speak-intro-text"),e=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");null===t&&function(){var t=document.createElement("p");t.id="a11y-speak-intro-text",t.className="a11y-speak-intro-text",t.textContent=wp.i18n.__("Notifications"),t.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),t.setAttribute("hidden","hidden");var e=document.body;e&&e.appendChild(t)}(),null===e&&n("assertive"),null===i&&n("polite")},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",a):a())},54127:function(t,e,i){i.r(e),i.d(e,{sc_password:function(){return h}});var n,a,s=i(10467),r=i(23029),o=i(92901),d=i(89280),u=i.n(d),l=i(27364),c=i(16402),h=function(){return(0,o.A)((function t(e){(0,r.A)(this,t),(0,l.r)(this,e),this.size="medium",this.value="",this.pill=!1,this.label=void 0,this.showLabel=!0,this.help="",this.placeholder=void 0,this.disabled=!1,this.readonly=!1,this.required=!1,this.autofocus=void 0,this.confirmation=!1,this.name="password",this.confirmationLabel=void 0,this.confirmationPlaceholder=void 0,this.confirmationHelp=void 0,this.enableValidation=!0,this.hintText=void 0,this.verifyText=void 0}),[{key:"triggerFocus",value:(e=(0,s.A)(u().mark((function t(e){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.input.triggerFocus(e));case 1:case"end":return t.stop()}}),t,this)}))),function(_x){return e.apply(this,arguments)})},{key:"reportValidity",value:(t=(0,s.A)(u().mark((function t(){var e,i,n,a,s,r,o,d;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null===(i=null===(e=this.input)||void 0===e?void 0:e.setCustomValidity)||void 0===i||i.call(e,""),null===(a=null===(n=this.confirmInput)||void 0===n?void 0:n.setCustomValidity)||void 0===a||a.call(n,""),this.confirmation&&(null===(s=this.confirmInput)||void 0===s?void 0:s.value)&&(null===(r=this.input)||void 0===r?void 0:r.value)!==(null===(o=this.confirmInput)||void 0===o?void 0:o.value)&&(this.confirmInput.setCustomValidity(wp.i18n.__("Password does not match.","surecart")),(0,c.s)(wp.i18n.__("Password does not match.","surecart"),"assertive")),this.hintText&&this.input.setCustomValidity(this.hintText),t.next=6,this.input.reportValidity();case 6:if(d=t.sent){t.next=9;break}return t.abrupt("return",!1);case 9:if(!this.confirmInput){t.next=11;break}return t.abrupt("return",this.confirmInput.reportValidity());case 11:return t.abrupt("return",d);case 12:case"end":return t.stop()}}),t,this)}))),function(){return t.apply(this,arguments)})},{key:"handleVerification",value:function(){var t=this;clearTimeout(a),a=setTimeout((function(){t.verifyPassword()}),500)}},{key:"handleValidate",value:function(){var t=this;this.handleVerification(),clearTimeout(n),n=setTimeout((function(){t.validatePassword()}),500)}},{key:"validatePassword",value:function(){var t,e,i;if(this.enableValidation)if(0!==(null===(t=this.input)||void 0===t?void 0:t.value.trim().length)){if((null===(e=this.input)||void 0===e?void 0:e.value.trim().length)<6)return this.hintText=wp.i18n.__("The password must be at least 6 characters in length.","surecart");if(!/[-'`~!#*$@_%+=.,^&(){}[\]|;:”<>?\\]/.test(null===(i=this.input)||void 0===i?void 0:i.value))return this.hintText=wp.i18n.__("Passwords must contain a special character.","surecart");this.hintText=""}else this.hintText=""}},{key:"verifyPassword",value:function(){var t,e,i,n,a,s,r;if((null===(t=this.confirmInput)||void 0===t?void 0:t.value)&&(null===(e=this.input)||void 0===e?void 0:e.value)!==(null===(i=this.confirmInput)||void 0===i?void 0:i.value))return this.verifyText=wp.i18n.__("Password does not match.","surecart"),void(0,c.s)(this.verifyText,"assertive");(null===(n=this.input)||void 0===n?void 0:n.value)&&(null===(a=this.confirmInput)||void 0===a?void 0:a.value)&&(null===(s=this.input)||void 0===s?void 0:s.value)===(null===(r=this.confirmInput)||void 0===r?void 0:r.value)&&(0,c.s)(wp.i18n.__("Password is matched.","surecart"),"assertive"),this.verifyText=""}},{key:"handleHintTextChange",value:function(){(0,c.s)(this.hintText,"assertive")}},{key:"render",value:function(){var t,e=this;return(0,l.h)("div",{key:"8114b7263df1d1ced36f778c8ff2d07e65213c33",class:"password"},(0,l.h)("div",{key:"24ece1830234e7a5e4c0caf4ac4d5b9431bc9aef"},(0,l.h)("sc-input",{key:"6558b4a4ffaa0b50e144a8a37294ff79024f2118",ref:function(t){return e.input=t},label:this.label,help:this.help,autofocus:this.autofocus,placeholder:this.placeholder,showLabel:this.showLabel,size:this.size?this.size:"medium",type:"password",name:"password",value:this.value,required:this.required,disabled:this.disabled,onScInput:function(){return e.handleValidate()}}),!!this.hintText&&(0,l.h)("small",{key:"01144a3797c77fb4b37c495e727ec73976a78ff4",class:"password__hint"},this.hintText)),this.confirmation&&(0,l.h)("div",{key:"d064bd653818b168e3123e377003873a963e8645"},(0,l.h)("sc-input",{key:"616cbd41b92b7f1e4ea260d33f3d963c3951ff29",ref:function(t){return e.confirmInput=t},label:null!==(t=this.confirmationLabel)&&void 0!==t?t:wp.i18n.__("Confirm Password","surecart"),help:this.confirmationHelp,placeholder:this.confirmationPlaceholder,size:this.size?this.size:"medium",type:"password",value:this.value,onScInput:function(){return e.handleVerification()},required:this.required,disabled:this.disabled}),!!this.verifyText&&(0,l.h)("small",{key:"16a91a4a6041b6db71fd84c79c9b23d8ff7504dc",class:"password__hint"},this.verifyText)))}}],[{key:"watchers",get:function(){return{hintText:["handleHintTextChange"]}}}]);var t,e}();h.style=":host{display:block}.password{display:grid;gap:var(--sc-form-row-spacing, 0.75em)}.password__hint{padding-top:0.36rem;color:red}"}}]); |