zz-shopify-components 0.3.1-beta.0 → 0.3.1-beta.1
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/assets/zz-components.css
CHANGED
package/package.json
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
Do not modify this file. Any changes will be reset the next time that
|
|
5
5
|
Locksmith interacts with this theme.
|
|
6
6
|
|
|
7
|
-
Last updated:
|
|
7
|
+
Last updated: Tue, 12 Aug 2025 18:05:48 -0700 (PDT)
|
|
8
8
|
{% endcomment -%}
|
|
9
9
|
|
|
10
|
-
{%assign _p=cart%}{%assign
|
|
10
|
+
{%assign _p=cart%}{%assign _d=customer%}{%assign _l=theme%}{%capture _%}{%assign _h=_9%}{%capture locksmith_client%}<script data-locksmith>!function(){var require=undefined,reqwest=function(){function succeed(e){var t=protocolRe.exec(e.url);return t=t&&t[1]||context.location.protocol,httpsRe.test(t)?twoHundo.test(e.request.status):!!e.request.response}function handleReadyState(e,t,n){return function(){return e._aborted?n(e.request):e._timedOut?n(e.request,"Request is aborted: timeout"):void(e.request&&4==e.request[readyState]&&(e.request.onreadystatechange=noop,succeed(e)?t(e.request):n(e.request)))}}function setHeaders(e,t){var n,s=t.headers||{};s.Accept=s.Accept||defaultHeaders.accept[t.type]||defaultHeaders.accept["*"];var r="undefined"!=typeof FormData&&t.data instanceof FormData;for(n in!t.crossOrigin&&!s[requestedWith]&&(s[requestedWith]=defaultHeaders.requestedWith),!s[contentType]&&!r&&(s[contentType]=t.contentType||defaultHeaders.contentType),s)s.hasOwnProperty(n)&&"setRequestHeader"in e&&e.setRequestHeader(n,s[n])}function setCredentials(e,t){"undefined"!=typeof t.withCredentials&&"undefined"!=typeof e.withCredentials&&(e.withCredentials=!!t.withCredentials)}function generalCallback(e){lastValue=e}function urlappend(e,t){return e+(/[?]/.test(e)?"&":"?")+t}function handleJsonp(e,t,n,s){var r=uniqid++,o=e.jsonpCallback||"callback",a=e.jsonpCallbackName||reqwest.getcallbackPrefix(r),i=new RegExp("((^|[?]|&)"+o+")=([^&]+)"),l=s.match(i),c=doc.createElement("script"),u=0,d=-1!==navigator.userAgent.indexOf("MSIE 10.0");return l?"?"===l[3]?s=s.replace(i,"$1="+a):a=l[3]:s=urlappend(s,o+"="+a),context[a]=generalCallback,c.type="text/javascript",c.src=s,c.async=!0,"undefined"!=typeof c.onreadystatechange&&!d&&(c.htmlFor=c.id="_reqwest_"+r),c.onload=c.onreadystatechange=function(){if(c[readyState]&&"complete"!==c[readyState]&&"loaded"!==c[readyState]||u)return!1;c.onload=c.onreadystatechange=null,c.onclick&&c.onclick(),t(lastValue),lastValue=undefined,head.removeChild(c),u=1},head.appendChild(c),{abort:function(){c.onload=c.onreadystatechange=null,n({},"Request is aborted: timeout",{}),lastValue=undefined,head.removeChild(c),u=1}}}function getRequest(e,t){var n,s=this.o,r=(s.method||"GET").toUpperCase(),o="string"==typeof s?s:s.url,a=!1!==s.processData&&s.data&&"string"!=typeof s.data?reqwest.toQueryString(s.data):s.data||null,i=!1;return("jsonp"==s.type||"GET"==r)&&a&&(o=urlappend(o,a),a=null),"jsonp"==s.type?handleJsonp(s,e,t,o):((n=s.xhr&&s.xhr(s)||xhr(s)).open(r,o,!1!==s.async),setHeaders(n,s),setCredentials(n,s),context[xDomainRequest]&&n instanceof context[xDomainRequest]?(n.onload=e,n.onerror=t,n.onprogress=function(){},i=!0):n.onreadystatechange=handleReadyState(this,e,t),s.before&&s.before(n),i?setTimeout(function(){n.send(a)},200):n.send(a),n)}function Reqwest(e,t){this.o=e,this.fn=t,init.apply(this,arguments)}function setType(e){return null===e?undefined:e.match("json")?"json":e.match("javascript")?"js":e.match("text")?"html":e.match("xml")?"xml":void 0}function init(o,fn){function complete(e){for(o.timeout&&clearTimeout(self.timeout),self.timeout=null;0<self._completeHandlers.length;)self._completeHandlers.shift()(e)}function success(resp){var type=o.type||resp&&setType(resp.getResponseHeader("Content-Type"));resp="jsonp"!==type?self.request:resp;var filteredResponse=globalSetupOptions.dataFilter(resp.responseText,type),r=filteredResponse;try{resp.responseText=r}catch(e){}if(r)switch(type){case"json":try{resp=context.JSON?context.JSON.parse(r):eval("("+r+")")}catch(err){return error(resp,"Could not parse JSON in response",err)}break;case"js":resp=eval(r);break;case"html":resp=r;break;case"xml":resp=resp.responseXML&&resp.responseXML.parseError&&resp.responseXML.parseError.errorCode&&resp.responseXML.parseError.reason?null:resp.responseXML}for(self._responseArgs.resp=resp,self._fulfilled=!0,fn(resp),self._successHandler(resp);0<self._fulfillmentHandlers.length;)resp=self._fulfillmentHandlers.shift()(resp);complete(resp)}function timedOut(){self._timedOut=!0,self.request.abort()}function error(e,t,n){for(e=self.request,self._responseArgs.resp=e,self._responseArgs.msg=t,self._responseArgs.t=n,self._erred=!0;0<self._errorHandlers.length;)self._errorHandlers.shift()(e,t,n);complete(e)}this.url="string"==typeof o?o:o.url,this.timeout=null,this._fulfilled=!1,this._successHandler=function(){},this._fulfillmentHandlers=[],this._errorHandlers=[],this._completeHandlers=[],this._erred=!1,this._responseArgs={};var self=this;fn=fn||function(){},o.timeout&&(this.timeout=setTimeout(function(){timedOut()},o.timeout)),o.success&&(this._successHandler=function(){o.success.apply(o,arguments)}),o.error&&this._errorHandlers.push(function(){o.error.apply(o,arguments)}),o.complete&&this._completeHandlers.push(function(){o.complete.apply(o,arguments)}),this.request=getRequest.call(this,success,error)}function reqwest(e,t){return new Reqwest(e,t)}function normalize(e){return e?e.replace(/\r?\n/g,"\r\n"):""}function serial(e,t){var n,s,r,o,a=e.name,i=e.tagName.toLowerCase(),l=function(e){e&&!e.disabled&&t(a,normalize(e.attributes.value&&e.attributes.value.specified?e.value:e.text))};if(!e.disabled&&a)switch(i){case"input":/reset|button|image|file/i.test(e.type)||(n=/checkbox/i.test(e.type),s=/radio/i.test(e.type),r=e.value,(!n&&!s||e.checked)&&t(a,normalize(n&&""===r?"on":r)));break;case"textarea":t(a,normalize(e.value));break;case"select":if("select-one"===e.type.toLowerCase())l(0<=e.selectedIndex?e.options[e.selectedIndex]:null);else for(o=0;e.length&&o<e.length;o++)e.options[o].selected&&l(e.options[o])}}function eachFormElement(){var e,t,o=this,n=function(e,t){var n,s,r;for(n=0;n<t.length;n++)for(r=e[byTag](t[n]),s=0;s<r.length;s++)serial(r[s],o)};for(t=0;t<arguments.length;t++)e=arguments[t],/input|select|textarea/i.test(e.tagName)&&serial(e,o),n(e,["input","select","textarea"])}function serializeQueryString(){return reqwest.toQueryString(reqwest.serializeArray.apply(null,arguments))}function serializeHash(){var n={};return eachFormElement.apply(function(e,t){e in n?(n[e]&&!isArray(n[e])&&(n[e]=[n[e]]),n[e].push(t)):n[e]=t},arguments),n}function buildParams(e,t,n,s){var r,o,a,i=/\[\]$/;if(isArray(t))for(o=0;t&&o<t.length;o++)a=t[o],n||i.test(e)?s(e,a):buildParams(e+"["+("object"==typeof a?o:"")+"]",a,n,s);else if(t&&"[object Object]"===t.toString())for(r in t)buildParams(e+"["+r+"]",t[r],n,s);else s(e,t)}var context=this,XHR2;if("window"in context)var doc=document,byTag="getElementsByTagName",head=doc[byTag]("head")[0];else try{XHR2=require("xhr2")}catch(ex){throw new Error("Peer dependency `xhr2` required! Please npm install xhr2")}var httpsRe=/^http/,protocolRe=/(^\w+):\/\//,twoHundo=/^(20\d|1223)$/,readyState="readyState",contentType="Content-Type",requestedWith="X-Requested-With",uniqid=0,callbackPrefix="reqwest_"+ +new Date,lastValue,xmlHttpRequest="XMLHttpRequest",xDomainRequest="XDomainRequest",noop=function(){},isArray="function"==typeof Array.isArray?Array.isArray:function(e){return e instanceof Array},defaultHeaders={contentType:"application/x-www-form-urlencoded",requestedWith:xmlHttpRequest,accept:{"*":"text/javascript, text/html, application/xml, text/xml, */*",xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript",js:"application/javascript, text/javascript"}},xhr=function(e){if(!0!==e.crossOrigin)return context[xmlHttpRequest]?new XMLHttpRequest:XHR2?new XHR2:new ActiveXObject("Microsoft.XMLHTTP");var t=context[xmlHttpRequest]?new XMLHttpRequest:null;if(t&&"withCredentials"in t)return t;if(context[xDomainRequest])return new XDomainRequest;throw new Error("Browser does not support cross-origin requests")},globalSetupOptions={dataFilter:function(e){return e}};return Reqwest.prototype={abort:function(){this._aborted=!0,this.request.abort()},retry:function(){init.call(this,this.o,this.fn)},then:function(e,t){return e=e||function(){},t=t||function(){},this._fulfilled?this._responseArgs.resp=e(this._responseArgs.resp):this._erred?t(this._responseArgs.resp,this._responseArgs.msg,this._responseArgs.t):(this._fulfillmentHandlers.push(e),this._errorHandlers.push(t)),this},always:function(e){return this._fulfilled||this._erred?e(this._responseArgs.resp):this._completeHandlers.push(e),this},fail:function(e){return this._erred?e(this._responseArgs.resp,this._responseArgs.msg,this._responseArgs.t):this._errorHandlers.push(e),this},"catch":function(e){return this.fail(e)}},reqwest.serializeArray=function(){var n=[];return eachFormElement.apply(function(e,t){n.push({name:e,value:t})},arguments),n},reqwest.serialize=function(){if(0===arguments.length)return"";var e,t=Array.prototype.slice.call(arguments,0);return(e=t.pop())&&e.nodeType&&t.push(e)&&(e=null),e&&(e=e.type),("map"==e?serializeHash:"array"==e?reqwest.serializeArray:serializeQueryString).apply(null,t)},reqwest.toQueryString=function(e,t){var n,s,r=t||!1,o=[],a=encodeURIComponent,i=function(e,t){t="function"==typeof t?t():null==t?"":t,o[o.length]=a(e)+"="+a(t)};if(isArray(e))for(s=0;e&&s<e.length;s++)i(e[s].name,e[s].value);else for(n in e)e.hasOwnProperty(n)&&buildParams(n,e[n],r,i);return o.join("&").replace(/%20/g,"+")},reqwest.getcallbackPrefix=function(){return callbackPrefix},reqwest.compat=function(e,t){return e&&(e.type&&(e.method=e.type)&&delete e.type,e.dataType&&(e.type=e.dataType),e.jsonpCallback&&(e.jsonpCallbackName=e.jsonpCallback)&&delete e.jsonpCallback,e.jsonp&&(e.jsonpCallback=e.jsonp)),new Reqwest(e,t)},reqwest.ajaxSetup=function(e){for(var t in e=e||{})globalSetupOptions[t]=e[t]},reqwest}();
|
|
11
11
|
/*!
|
|
12
12
|
* Reqwest! A general purpose XHR connection manager
|
|
13
13
|
* license MIT (c) Dustin Diaz 2015
|
|
@@ -41,15 +41,9 @@
|
|
|
41
41
|
var locale = encodeURIComponent('{{request.locale.iso_code}}');
|
|
42
42
|
node.search = `return_to=${returnTo}&locale=${locale}`;
|
|
43
43
|
});
|
|
44
|
-
</script>{%endcapture%}{%assign customer_login_form=locksmith_customer_login_form%}{%assign customer_register_form=locksmith_customer_register_form%}{%unless _lock_guest_content%}{%capture
|
|
45
|
-
<p>This content is protected. Please log in with your customer account to continue.</p>
|
|
44
|
+
</script>{%endcapture%}{%assign customer_login_form=locksmith_customer_login_form%}{%assign customer_register_form=locksmith_customer_register_form%}{%unless _lock_guest_content%}{%capture locksmith_guest_message_basic%}{%if _lock_guest_content != blank%}{{_lock_guest_content}}{%else%}<p>This content is protected. Please log in with your customer account to continue.</p>
|
|
46
45
|
|
|
47
|
-
|
|
48
|
-
</div>{%endif%}{%endcapture%}{%endunless%}{%if locksmith_access_denied_content == blank%}{%capture locksmith_access_denied_content%}{%if _l%}{%if _lock_access_denied_content != blank%}{{_lock_access_denied_content}}{%else%}<div class="page-width">
|
|
49
|
-
<p>This content is protected, but it doesn’t look like you have access. If you feel this is a mistake, please contact the store owner.</p>
|
|
50
|
-
</div>{%endif%}{%if locksmith_manual_lock%}<p><a href="#" onclick="window.parent.__locksmith_hide_frame(); return false;">‹ Back</a></p>{%endif%}{%elsif locksmith_requires_customer%}{{locksmith_guest_content}}{%else%}{%if _lock_access_denied_content != blank%}{{_lock_access_denied_content}}{%else%}<div class="page-width">
|
|
51
|
-
<p>This content is protected, but it doesn’t look like you have access. If you feel this is a mistake, please contact the store owner.</p>
|
|
52
|
-
</div>{%endif%}{%endif%}{%if _h.name contains "Debut"%}<style>
|
|
46
|
+
<div>{{locksmith_customer_login_form}}</div>{%endif%}{%endcapture%}{%capture locksmith_guest_content%}{{locksmith_guest_message_basic}}{%endcapture%}{%endunless%}{%if locksmith_access_denied_content == blank%}{%capture locksmith_access_denied_message_basic%}{%if _d%}{%if _lock_access_denied_content != blank%}{{_lock_access_denied_content}}{%else%}<p>This content is protected, but it doesn’t look like you have access. If you feel this is a mistake, please contact the store owner.</p>{%endif%}{%if locksmith_manual_lock%}<p><a href="#" onclick="window.parent.__locksmith_hide_frame(); return false;">‹ Back</a></p>{%endif%}{%else%}{%if _lock_access_denied_content != blank%}{{_lock_access_denied_content}}{%else%}<p>This content is protected, but it doesn’t look like you have access. If you feel this is a mistake, please contact the store owner.</p>{%endif%}{%endif%}{%endcapture%}{%capture locksmith_access_denied_content%}{%if locksmith_requires_customer and _d == nil%}{{locksmith_guest_content}}{%else%}{{locksmith_access_denied_message_basic}}{%endif%}{%if _l.name contains "Debut"%}<style>
|
|
53
47
|
/* fix for Debut+Gempages, per Gempages technical support */
|
|
54
48
|
html.gemapp.video {
|
|
55
49
|
display: block;
|
|
@@ -57,4 +51,4 @@
|
|
|
57
51
|
</style>{%endif%}{%endcapture%}{%endif%}{%capture locksmith_passcode_form%}<p id="locksmith-passcode-form-content"><strong>…</strong></p>
|
|
58
52
|
<script>Locksmith.postResource({}, {spinner: false, container: 'locksmith-passcode-form-content', form_type: 'passcode'});</script>{%endcapture%}{%capture locksmith_email_form%}<p id="locksmith-newsletter-form-content"><strong>…</strong></p>
|
|
59
53
|
<script>Locksmith.postResource({}, {spinner: false, container: 'locksmith-newsletter-form-content', form_type: 'mailing_list'});</script>{%endcapture%}{%capture locksmith_confirmation_form%}<p id="locksmith-confirmation-form-content"><strong>…</strong></p>
|
|
60
|
-
<script>Locksmith.postResource({}, {spinner: false, container: 'locksmith-confirmation-form-content', form_type: 'confirmation'});</script>{%endcapture%}{%assign _9=
|
|
54
|
+
<script>Locksmith.postResource({}, {spinner: false, container: 'locksmith-confirmation-form-content', form_type: 'confirmation'});</script>{%endcapture%}{%assign _9=_h%}{%endcapture%}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Do not modify this file. Any changes will be reset the next time that
|
|
5
5
|
Locksmith interacts with this theme.
|
|
6
6
|
|
|
7
|
-
Last updated:
|
|
7
|
+
Last updated: Tue, 12 Aug 2025 18:05:48 -0700 (PDT)
|
|
8
8
|
{% endcomment -%}
|
|
9
9
|
|
|
10
|
-
{%assign _c=false%}{%assign _0o='product_in_collection'%}{%assign _0g='variant'%}{%assign _14='collection'%}{%capture _%}{%assign _0k=_c%}{%assign _8=nil%}{%assign _2o=scope%}{%assign _g=nil%}{%assign _1o=_c%}{%assign _0c=true%}{%assign _1c=_c%}{%assign _1g=_c%}{%assign _0w=_c%}{%assign _10=_c%}{%assign _1k=_c%}{%assign _w='resource'%}{%assign _s=''%}{%assign _00=''%}{%assign _18=''%}{%assign _1s=_c%}{%assign _1w=_c%}{%assign _20=''|split:''%}{%assign _3o=nil%}{%assign _3k=_c%}{%assign _28=nil%}{%assign _3g=_c%}{%assign _3c=nil%}{%assign _38=_c%}{%assign _40=(0..2)%}{%assign _3s=nil%}{%assign _20=""|split:""%}{%assign _0k=true%}{%assign _34="now"|date:"%s"|plus:0%}{%for _30 in _20%}{%assign _0s=_30|split:"-"%}{%assign _3w=_0s[0]%}{%assign _2w=_0s[1]|plus:0%}{%unless _0s[1]%}{%assign skip_timestamp_check=true%}{%endunless%}{%if skip_timestamp_check or _34 < _2w%}{%endif%}{%endfor%}{%if original_template%}{%assign _08=template%}{%assign template=original_template%}{%elsif locksmith_original_template%}{%assign _08=template%}{%assign template=locksmith_original_template%}{%else%}{%assign _08=nil%}{%endif%}{%assign _o=template%}{%assign _04=_o|split:'.'|first%}{%if scope and scope != _0o%}{%assign _8=scope%}{%elsif locksmith_scope and locksmith_scope != _0o%}{%assign _8=locksmith_scope%}{%else%}{%assign _8=_o|split:'/'|first|split:'.'|first%}{%endif%}{%if hiding_scope%}{%assign _w=hiding_scope%}{%elsif locksmith_hiding_scope%}{%assign _w=locksmith_hiding_scope%}{%endif%}{%if _8 == blank%}{%assign _8='app'%}{%endif%}{%if _8 == "app" and content_for_layout contains "spof-container"%}{%assign app="single-page-order-form"%}{%endif%}{%if _8 == "app" and content_for_layout contains "sc-shopify-qs-main-container"%}{%assign app="one-page-quick-shop"%}{%endif%}{%if _8 == "app" and content_for_layout contains "get_surrounding_stores.php"%}{%assign app="store-locator"%}{%endif%}{%if _8 == 'subject'%}{%if subject%}{%assign _4=subject%}{%else%}{%assign _4=locksmith_subject%}{%endif%}{%if subject_parent%}{%assign _k=subject_parent%}{%else%}{%assign _k=locksmith_subject_parent%}{%endif%}{%if _4.price and _4.variants%}{%assign product=_4%}{%assign _8='product'%}{%elsif _4.position and _4.src and _4.variants == nil and _4.position != 1%}{%for _2c in _k.variants%}{%if _2c.featured_media.id == _4.id%}{%assign variant=_2c%}{%assign product=_k%}{%break%}{%endif%}{%endfor%}{%assign _8=_0g%}{%elsif _4.position and _4.product_id and _4.src and _4.position != 1%}{%assign variant=_4.variants.first%}{%assign _8=_0g%}{%if _4.product_id == _k.id%}{%assign product=_k%}{%else%}{%assign product=nil%}{%endif%}{%elsif _4.inventory_policy%}{%assign variant=_4%}{%assign _8=_0g%}{%if _k.variants contains variant%}{%assign product=_k%}{%else%}{%assign _2s=variant.url|split:'?variant='|first|split:'/'|last%}{%assign product=all_products[_2s]%}{%endif%}{%elsif _k.name and _k.position and _k.values contains _4%}{%assign variant=nil%}{%assign variant_option_name=_k.name%}{%assign variant_option_value=_4%}{%assign _8=_0g%}{%assign _44=_k.name%}{%assign _48=_4%}{%elsif _4.all_types and _4.products%}{%assign collection=_4%}{%assign _8=_14%}{%elsif _4.handle and _4.articles%}{%assign blog=_4%}{%assign _8='blog'%}{%elsif _4.content and _4.excerpt and _4.comments%}{%assign article=_4%}{%assign _8='article'%}{%elsif _4.handle and _4.url contains '/pages/' and _4.current == nil%}{%assign page=_4%}{%assign _8='page'%}{%elsif _4.total_price and _4.total_weight%}{%assign cart=_4%}{%assign _8='cart'%}{%elsif _4.type and _4.url%}{%assign _w='link_to_resource'%}{%if _4.type == 'collection_link'%}{%assign collection=_4.object%}{%assign _8=_14%}{%elsif _4.type == 'product_link'%}{%assign product=_4.object%}{%assign _8='product'%}{%elsif _4.type == 'page_link'%}{%assign page=_4.object%}{%assign _8='page'%}{%elsif _4.type == 'blog_link'%}{%assign blog=_4.object%}{%assign _8='blog'%}{%elsif _4.url == '/collections/all'%}{%assign collection=collections.all%}{%assign _8=_14%}{%else%}{%assign _w='resource'%}{%assign link=_4%}{%assign _8='link'%}{%endif%}{%elsif _4.links and _4.title%}{%assign linklist=_4%}{%assign _8='linklist'%}{%elsif shop.vendors contains _4%}{%assign _8='vendor'%}{%assign vendor=_4%}{%endif%}{%endif%}{%if _8 == _0g%}{%assign _38=true%}{%endif%}{%if collection and _8 == 'product'%}{%assign locksmith_scope=_0o%}{%assign scope=_0o%}{%else%}{%assign locksmith_scope=_8%}{%assign scope=_8%}{%endif%}{%if is_edu_checked%}{%assign _s=_s|append:",722911,"%}{%assign _1g=true%}{%endif%}{%assign _s=_s|remove_first:","|replace:",,", ","|split:","%}{%assign _00=_00|remove_first:","|replace:",,", ","|split:","%}{%assign _18=_18|remove_first:","|replace:",,", ","|split:","%}{%assign _2k="722911"|split:","%}{%for _24 in _2k%}{%if _s contains _24%}{%unless _00 contains _24%}{%assign _10=true%}{%endunless%}{%endif%}{%endfor%}{%if request.design_mode or request.host contains ".shopifypreview.com"%}{%unless __locksmith_disable_preview_mode_escape_hatch%}{%assign _1s=true%}{%endunless%}{%endif%}{%if _1s%}{%assign _00=_s%}{%assign _0w=_c%}{%endif%}{%if _0w == _c%}{%assign _0k=true%}{%endif%}{%assign locksmith_lock_ids=_s%}{%assign locksmith_opened_lock_ids=_00%}{%assign locksmith_key_ids=_18%}{%if locksmith_lock_ids.size > 0%}{%assign _1o=true%}{%unless locksmith_opened_lock_ids == locksmith_lock_ids%}{%assign _0c=_c%}{%assign _1c=true%}{%endunless%}{%endif%}{%assign _28=request.locale.root_url%}{%if _0c%}{%assign _1w=_c%}{%endif%}{%assign locksmith_initialized=_0k%}{%assign locksmith_locked=_1o%}{%unless locksmith_scope%}{%assign locksmith_scope=_8%}{%endunless%}{%assign locksmith_access_granted=_0c%}{%assign locksmith_access_denied=_1c%}{%assign locksmith_manual_lock=_1g%}{%assign locksmith_remote_lock=_0w%}{%assign locksmith_hide_resource=_10%}{%assign locksmith_hide_links_to_resource=_1k%}{%assign locksmith_requires_customer=_1w%}{%assign locksmith_redirect=_3o%}{%assign locksmith_noindex=_3k%}{%assign locksmith_locale_root_url=_28%}{%assign locksmith_has_timeout=_3g%}{%assign locksmith_section_replacement_content=_3c%}{%assign locksmith_transparent=_c%}{%if _0c%}{%assign locksmith_transparent=true%}{%elsif _w == 'resource' and _10 == _c%}{%assign locksmith_transparent=true%}{%elsif _w == 'link_to_resource' and _1k == _c%}{%assign locksmith_transparent=true%}{%endif%}{%if _04 == 'product'%}{%capture _g%}{%if collection%}/collections/{{collection.handle}}{%endif%}/products/{{product.handle}}{%endcapture%}{%elsif _04 == _14%}{%capture _g%}/collections/{{collection.handle}}{%endcapture%}{%elsif _04 == 'page'%}{%assign _g=page.url%}{%elsif _04 == 'blog'%}{%assign _g=blog.url%}{%elsif _04 == 'article'%}{%assign _g=article.url%}{%elsif _o == 'customers/login'%}{%assign _g='/account/login'%}{%elsif _o == 'customers/register'%}{%assign _g='/account/register'%}{%elsif _o == 'index'%}{%assign _g='/'%}{%elsif _o == 'list-collections'%}{%assign _g='/collections'%}{%elsif _o == 'cart'%}{%assign _g='/cart'%}{%elsif _o contains 'search'%}{%assign _g='/search'%}{%endif%}{%assign locksmith_path=_g%}{%assign locksmith_current_path=_g%}{%assign locksmith_version="v222"%}{%capture locksmith_json%}{"version":{{locksmith_version|json}},"locked":{{locksmith_locked|json}},"initialized":{{_0k|json}},"scope":{{_8|json}},"access_granted":{{locksmith_access_granted|json}},"access_denied":{{locksmith_access_denied|json}},"requires_customer":{{locksmith_requires_customer|json}},"manual_lock":{{locksmith_manual_lock|json}},"remote_lock":{{locksmith_remote_lock|json}},"has_timeout":{{locksmith_has_timeout|json}},"remote_rendered":{{locksmith_remote_rendered|json}},"hide_resource":{{locksmith_hide_resource}},"hide_links_to_resource":{{locksmith_hide_links_to_resource|json}},"transparent":{{locksmith_transparent|json}},"locks":{"all":{{locksmith_lock_ids|json|replace:'"', ''}},"opened":{{locksmith_opened_lock_ids|json|replace:'"', ''}}},"keys":{{locksmith_key_ids|json|replace:'"', ''}},"keys_signature":{{locksmith_key_ids|join:','|hmac_sha256:shop.metafields.locksmith.client_key|json}},"state":{"template":{{template|json}},"theme":{{theme.id|json}},"product":{{product.handle|json}},"collection":{{collection.handle|json}},"page":{{page.handle|json}},"blog":{{blog.handle|json}},"article":{{article.id|json}},"app":{%if locksmith_scope == "app" and app%}{{app|json}}{%else%}null{%endif%}},"now":{{"now"|date:"%s"}},"path":{{locksmith_path|json}},"locale_root_url":{{locksmith_locale_root_url|json}},"canonical_url":{{canonical_url|json}},"customer_id":{{customer.id|json}},"customer_id_signature":{{customer.id|hmac_sha256:shop.metafields.locksmith.client_key|json}},"cart":{{cart.attributes.locksmith|json}}}{%endcapture%}{%assign locksmith_json_signature=locksmith_json|hmac_sha256: shop.metafields.locksmith.client_key%}{%capture locksmith_json_script%}<script type="application/vnd.locksmith+json" data-locksmith>{{locksmith_json}}</script>{%endcapture%}{%if _08%}{%assign template=_08%}{%endif%}{%assign scope=_2o%}{%endcapture%}{%if variable != blank%}{%capture value%}{%case variable%}{%when "locked"%}{{locksmith_locked|json}}{%when "initialized"%}{{locksmith_initialized|json}}{%when "scope"%}{{locksmith_scope|json}}{%when "access_granted"%}{{locksmith_access_granted|json}}{%when "access_denied"%}{{locksmith_access_denied|json}}{%when "requires_customer"%}{{locksmith_requires_customer|json}}{%when "manual_lock"%}{{locksmith_manual_lock|json}}{%when "remote_lock"%}{{locksmith_remote_lock|json}}{%when "remote_rendered"%}{{locksmith_remote_rendered|json}}{%when "hide_resource"%}{{locksmith_hide_resource|json}}{%when "hide_links_to_resource"%}{{locksmith_hide_links_to_resource|json}}{%when "transparent"%}{{locksmith_transparent|json}}{%when "lock_ids"%}{{locksmith_lock_ids|join:","|json}}{%when "opened_lock_ids"%}{{locksmith_opened_lock_ids|join:","|json}}{%when "key_ids"%}{{locksmith_key_ids|join:","|json}}{%when "json_tag"%}{{locksmith_json_script}}{%when "section_replacement"%}{{locksmith_section_replacement_content}}{%endcase%}{%endcapture%}{{value|strip}}{%endif%}
|
|
10
|
+
{%assign _c=false%}{%assign _0o='product_in_collection'%}{%assign _0g='variant'%}{%assign _14='collection'%}{%capture _%}{%assign _0k=_c%}{%assign _8=nil%}{%assign _2o=scope%}{%assign _g=nil%}{%assign _1o=_c%}{%assign _0c=true%}{%assign _1c=_c%}{%assign _1g=_c%}{%assign _0w=_c%}{%assign _10=_c%}{%assign _1k=_c%}{%assign _w='resource'%}{%assign _s=''%}{%assign _00=''%}{%assign _18=''%}{%assign _1s=_c%}{%assign _1w=_c%}{%assign _20=''|split:''%}{%assign _3o=nil%}{%assign _3k=_c%}{%assign _28=nil%}{%assign _3g=_c%}{%assign _3c=nil%}{%assign _38=_c%}{%assign _40=(0..2)%}{%assign _3s=nil%}{%assign _20=""|split:""%}{%assign _0k=true%}{%assign _34="now"|date:"%s"|plus:0%}{%for _30 in _20%}{%assign _0s=_30|split:"-"%}{%assign _3w=_0s[0]%}{%assign _2w=_0s[1]|plus:0%}{%unless _0s[1]%}{%assign skip_timestamp_check=true%}{%endunless%}{%if skip_timestamp_check or _34 < _2w%}{%endif%}{%endfor%}{%if original_template%}{%assign _08=template%}{%assign template=original_template%}{%elsif locksmith_original_template%}{%assign _08=template%}{%assign template=locksmith_original_template%}{%else%}{%assign _08=nil%}{%endif%}{%assign _o=template%}{%assign _04=_o|split:'.'|first%}{%if scope and scope != _0o%}{%assign _8=scope%}{%elsif locksmith_scope and locksmith_scope != _0o%}{%assign _8=locksmith_scope%}{%else%}{%assign _8=_o|split:'/'|first|split:'.'|first%}{%endif%}{%if hiding_scope%}{%assign _w=hiding_scope%}{%elsif locksmith_hiding_scope%}{%assign _w=locksmith_hiding_scope%}{%endif%}{%if _8 == blank%}{%assign _8='app'%}{%endif%}{%if _8 == "app" and content_for_layout contains "spof-container"%}{%assign app="single-page-order-form"%}{%endif%}{%if _8 == "app" and content_for_layout contains "sc-shopify-qs-main-container"%}{%assign app="one-page-quick-shop"%}{%endif%}{%if _8 == "app" and content_for_layout contains "get_surrounding_stores.php"%}{%assign app="store-locator"%}{%endif%}{%if _8 == 'subject'%}{%if subject%}{%assign _4=subject%}{%else%}{%assign _4=locksmith_subject%}{%endif%}{%if subject_parent%}{%assign _k=subject_parent%}{%else%}{%assign _k=locksmith_subject_parent%}{%endif%}{%if _4.price and _4.variants%}{%assign product=_4%}{%assign _8='product'%}{%elsif _4.position and _4.src and _4.variants == nil and _4.position != 1%}{%for _2c in _k.variants%}{%if _2c.featured_media.id == _4.id%}{%assign variant=_2c%}{%assign product=_k%}{%break%}{%endif%}{%endfor%}{%assign _8=_0g%}{%elsif _4.position and _4.product_id and _4.src and _4.position != 1%}{%assign variant=_4.variants.first%}{%assign _8=_0g%}{%if _4.product_id == _k.id%}{%assign product=_k%}{%else%}{%assign product=nil%}{%endif%}{%elsif _4.inventory_policy%}{%assign variant=_4%}{%assign _8=_0g%}{%if _k.variants contains variant%}{%assign product=_k%}{%else%}{%assign _2s=variant.url|split:'?variant='|first|split:'/'|last%}{%assign product=all_products[_2s]%}{%endif%}{%elsif _k.name and _k.position and _k.values contains _4%}{%assign variant=nil%}{%assign variant_option_name=_k.name%}{%assign variant_option_value=_4%}{%assign _8=_0g%}{%assign _44=_k.name%}{%assign _48=_4%}{%elsif _4.all_types and _4.products%}{%assign collection=_4%}{%assign _8=_14%}{%elsif _4.handle and _4.articles%}{%assign blog=_4%}{%assign _8='blog'%}{%elsif _4.content and _4.excerpt and _4.comments%}{%assign article=_4%}{%assign _8='article'%}{%elsif _4.handle and _4.url contains '/pages/' and _4.current == nil%}{%assign page=_4%}{%assign _8='page'%}{%elsif _4.total_price and _4.total_weight%}{%assign cart=_4%}{%assign _8='cart'%}{%elsif _4.type and _4.url%}{%assign _w='link_to_resource'%}{%if _4.type == 'collection_link'%}{%assign collection=_4.object%}{%assign _8=_14%}{%elsif _4.type == 'product_link'%}{%assign product=_4.object%}{%assign _8='product'%}{%elsif _4.type == 'page_link'%}{%assign page=_4.object%}{%assign _8='page'%}{%elsif _4.type == 'blog_link'%}{%assign blog=_4.object%}{%assign _8='blog'%}{%elsif _4.url == '/collections/all'%}{%assign collection=collections.all%}{%assign _8=_14%}{%else%}{%assign _w='resource'%}{%assign link=_4%}{%assign _8='link'%}{%endif%}{%elsif _4.links and _4.title%}{%assign linklist=_4%}{%assign _8='linklist'%}{%elsif shop.vendors contains _4%}{%assign _8='vendor'%}{%assign vendor=_4%}{%endif%}{%endif%}{%if _8 == _0g%}{%assign _38=true%}{%endif%}{%if collection and _8 == 'product'%}{%assign locksmith_scope=_0o%}{%assign scope=_0o%}{%else%}{%assign locksmith_scope=_8%}{%assign scope=_8%}{%endif%}{%if is_edu_checked%}{%assign _s=_s|append:",722911,"%}{%assign _1g=true%}{%endif%}{%assign _s=_s|remove_first:","|replace:",,", ","|split:","%}{%assign _00=_00|remove_first:","|replace:",,", ","|split:","%}{%assign _18=_18|remove_first:","|replace:",,", ","|split:","%}{%assign _2k="722911"|split:","%}{%for _24 in _2k%}{%if _s contains _24%}{%unless _00 contains _24%}{%assign _10=true%}{%endunless%}{%endif%}{%endfor%}{%if request.design_mode or request.host contains ".shopifypreview.com"%}{%unless __locksmith_disable_preview_mode_escape_hatch%}{%assign _1s=true%}{%endunless%}{%endif%}{%if _1s%}{%assign _00=_s%}{%assign _0w=_c%}{%endif%}{%if _0w == _c%}{%assign _0k=true%}{%endif%}{%assign locksmith_lock_ids=_s%}{%assign locksmith_opened_lock_ids=_00%}{%assign locksmith_key_ids=_18%}{%if locksmith_lock_ids.size > 0%}{%assign _1o=true%}{%unless locksmith_opened_lock_ids == locksmith_lock_ids%}{%assign _0c=_c%}{%assign _1c=true%}{%endunless%}{%endif%}{%assign _28=request.locale.root_url%}{%if _0c%}{%assign _1w=_c%}{%endif%}{%assign locksmith_initialized=_0k%}{%assign locksmith_locked=_1o%}{%unless locksmith_scope%}{%assign locksmith_scope=_8%}{%endunless%}{%assign locksmith_access_granted=_0c%}{%assign locksmith_access_denied=_1c%}{%assign locksmith_manual_lock=_1g%}{%assign locksmith_remote_lock=_0w%}{%assign locksmith_hide_resource=_10%}{%assign locksmith_hide_links_to_resource=_1k%}{%assign locksmith_requires_customer=_1w%}{%assign locksmith_redirect=_3o%}{%assign locksmith_noindex=_3k%}{%assign locksmith_locale_root_url=_28%}{%assign locksmith_has_timeout=_3g%}{%assign locksmith_section_replacement_content=_3c%}{%assign locksmith_transparent=_c%}{%if _0c%}{%assign locksmith_transparent=true%}{%elsif _w == 'resource' and _10 == _c%}{%assign locksmith_transparent=true%}{%elsif _w == 'link_to_resource' and _1k == _c%}{%assign locksmith_transparent=true%}{%endif%}{%if _04 == 'product'%}{%capture _g%}{%if collection%}/collections/{{collection.handle}}{%endif%}/products/{{product.handle}}{%endcapture%}{%elsif _04 == _14%}{%capture _g%}/collections/{{collection.handle}}{%endcapture%}{%elsif _04 == 'page'%}{%assign _g=page.url%}{%elsif _04 == 'blog'%}{%assign _g=blog.url%}{%elsif _04 == 'article'%}{%assign _g=article.url%}{%elsif _o == 'customers/login'%}{%assign _g='/account/login'%}{%elsif _o == 'customers/register'%}{%assign _g='/account/register'%}{%elsif _o == 'index'%}{%assign _g='/'%}{%elsif _o == 'list-collections'%}{%assign _g='/collections'%}{%elsif _o == 'cart'%}{%assign _g='/cart'%}{%elsif _o contains 'search'%}{%assign _g='/search'%}{%endif%}{%assign locksmith_path=_g%}{%assign locksmith_current_path=_g%}{%assign locksmith_version="v223"%}{%capture locksmith_json%}{"version":{{locksmith_version|json}},"locked":{{locksmith_locked|json}},"initialized":{{_0k|json}},"scope":{{_8|json}},"access_granted":{{locksmith_access_granted|json}},"access_denied":{{locksmith_access_denied|json}},"requires_customer":{{locksmith_requires_customer|json}},"manual_lock":{{locksmith_manual_lock|json}},"remote_lock":{{locksmith_remote_lock|json}},"has_timeout":{{locksmith_has_timeout|json}},"remote_rendered":{{locksmith_remote_rendered|json}},"hide_resource":{{locksmith_hide_resource}},"hide_links_to_resource":{{locksmith_hide_links_to_resource|json}},"transparent":{{locksmith_transparent|json}},"locks":{"all":{{locksmith_lock_ids|json|replace:'"', ''}},"opened":{{locksmith_opened_lock_ids|json|replace:'"', ''}}},"keys":{{locksmith_key_ids|json|replace:'"', ''}},"keys_signature":{{locksmith_key_ids|join:','|hmac_sha256:shop.metafields.locksmith.client_key|json}},"state":{"template":{{template|json}},"theme":{{theme.id|json}},"product":{{product.handle|json}},"collection":{{collection.handle|json}},"page":{{page.handle|json}},"blog":{{blog.handle|json}},"article":{{article.id|json}},"app":{%if locksmith_scope == "app" and app%}{{app|json}}{%else%}null{%endif%}},"now":{{"now"|date:"%s"}},"path":{{locksmith_path|json}},"locale_root_url":{{locksmith_locale_root_url|json}},"canonical_url":{{canonical_url|json}},"customer_id":{{customer.id|json}},"customer_id_signature":{{customer.id|hmac_sha256:shop.metafields.locksmith.client_key|json}},"cart":{{cart.attributes.locksmith|json}}}{%endcapture%}{%assign locksmith_json_signature=locksmith_json|hmac_sha256: shop.metafields.locksmith.client_key%}{%capture locksmith_json_script%}<script type="application/vnd.locksmith+json" data-locksmith>{{locksmith_json}}</script>{%endcapture%}{%if _08%}{%assign template=_08%}{%endif%}{%assign scope=_2o%}{%endcapture%}{%if variable != blank%}{%capture value%}{%case variable%}{%when "locked"%}{{locksmith_locked|json}}{%when "initialized"%}{{locksmith_initialized|json}}{%when "scope"%}{{locksmith_scope|json}}{%when "access_granted"%}{{locksmith_access_granted|json}}{%when "access_denied"%}{{locksmith_access_denied|json}}{%when "requires_customer"%}{{locksmith_requires_customer|json}}{%when "manual_lock"%}{{locksmith_manual_lock|json}}{%when "remote_lock"%}{{locksmith_remote_lock|json}}{%when "remote_rendered"%}{{locksmith_remote_rendered|json}}{%when "hide_resource"%}{{locksmith_hide_resource|json}}{%when "hide_links_to_resource"%}{{locksmith_hide_links_to_resource|json}}{%when "transparent"%}{{locksmith_transparent|json}}{%when "lock_ids"%}{{locksmith_lock_ids|join:","|json}}{%when "opened_lock_ids"%}{{locksmith_opened_lock_ids|join:","|json}}{%when "key_ids"%}{{locksmith_key_ids|join:","|json}}{%when "json_tag"%}{{locksmith_json_script}}{%when "section_replacement"%}{{locksmith_section_replacement_content}}{%endcase%}{%endcapture%}{{value|strip}}{%endif%}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
Do not modify this file. Any changes will be reset the next time that
|
|
5
5
|
Locksmith interacts with this theme.
|
|
6
6
|
|
|
7
|
-
Last updated:
|
|
7
|
+
Last updated: Tue, 12 Aug 2025 18:05:48 -0700 (PDT)
|
|
8
8
|
{% endcomment -%}
|
|
9
9
|
|
|
10
10
|
{%include 'locksmith-variables', locksmith_scope: nil%}{%if locksmith_access_denied_content == blank%}{%capture locksmith_access_denied_content%}{%if locksmith_manual_lock%}{{content_for_layout}}{%elsif locksmith_remote_lock%}<div id="locksmith-content">
|
|
@@ -71,7 +71,51 @@
|
|
|
71
71
|
}
|
|
72
72
|
</script>{%endif%}{%endcapture%}{%endif%}{%include 'locksmith-content-variables'%}{%include 'locksmith-variables', locksmith_scope: nil%}{%if locksmith_access_denied%}{%capture content_for_header%}{{content_for_header|replace:'.oembed', ''|replace:'.atom', ''|replace:'link rel="alternate" type="application/json+oembed"', 'link'|replace:' title="Feed" rel="alternate" type="application/atom+xml"', ''}}{%endcapture%}{%endif%}{%capture locksmith_initializations%}{%if locksmith_access_denied and locksmith_manual_lock == false and locksmith_noindex%}<meta name="robots" content="noindex" />{%endif%}{{locksmith_json_script}}{{locksmith_client}}
|
|
73
73
|
|
|
74
|
-
<script data-locksmith>Locksmith.jsonTag={{locksmith_json|json}};Locksmith.jsonTagSignature={{locksmith_json_signature|json}}</script>{%endcapture%}{%if locksmith_access_granted or locksmith_manual_lock%}{%if locksmith_redirect != blank%}{%assign content_for_layout=locksmith_redirect%}{%endif%}{%else%}{%assign content_for_layout=locksmith_access_denied_content%}{%endif%}{%capture _3%}<
|
|
74
|
+
<script data-locksmith>Locksmith.jsonTag={{locksmith_json|json}};Locksmith.jsonTagSignature={{locksmith_json_signature|json}}</script>{%endcapture%}{%if locksmith_access_granted or locksmith_manual_lock%}{%if locksmith_redirect != blank%}{%assign content_for_layout=locksmith_redirect%}{%endif%}{%else%}{%assign content_for_layout=locksmith_access_denied_content%}{%endif%}{%capture _3%}{%if locksmith_access_denied%}<style>
|
|
75
|
+
/* Smart spacing for Locksmith content - only applied when access is denied */
|
|
76
|
+
/* Base padding: always add 20px minimum to top */
|
|
77
|
+
#locksmith-content .section {
|
|
78
|
+
padding-top: 20px;
|
|
79
|
+
padding-bottom: 40px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Locksmith-specific centering that doesn't rely on theme CSS */
|
|
83
|
+
#locksmith-content .locksmith-content-inner {
|
|
84
|
+
max-width: var(--page-width, 1200px);
|
|
85
|
+
margin-left: auto !important;
|
|
86
|
+
margin-right: auto !important;
|
|
87
|
+
padding-left: var(--page-padding, 1.5rem);
|
|
88
|
+
padding-right: var(--page-padding, 1.5rem);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Mobile adjustments */
|
|
92
|
+
@media screen and (max-width: 768px) {
|
|
93
|
+
#locksmith-content .locksmith-content-inner {
|
|
94
|
+
padding-left: var(--mobile-page-padding, 1rem);
|
|
95
|
+
padding-right: var(--mobile-page-padding, 1rem);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/* For themes with transparent headers - detect and add offset when header is transparent */
|
|
100
|
+
/* This matches the pattern used by Fabric and similar themes */
|
|
101
|
+
body:has(> #header-group > .header-section > #header-component[transparent]):not(
|
|
102
|
+
:has(> #header-group > .header-section + .shopify-section)
|
|
103
|
+
)
|
|
104
|
+
> main
|
|
105
|
+
> #locksmith-content:first-child .section {
|
|
106
|
+
/* Prioritize header-height, then header-group-height, default to 70px for transparent headers */
|
|
107
|
+
/* The 20px base padding is already included in the base rule above */
|
|
108
|
+
padding-top: calc(var(--header-height, var(--header-group-height, 70px)) + 20px );
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* Alternative selector for themes that don't use #header-group */
|
|
112
|
+
body:has(header[data-transparent], .header[data-transparent], #shopify-section-header[data-transparent])
|
|
113
|
+
> main
|
|
114
|
+
> #locksmith-content:first-child .section {
|
|
115
|
+
padding-top: calc(var(--header-height, var(--header-group-height, 70px)) + 20px );
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
</style>{%endif%}<script data-locksmith>
|
|
75
119
|
var load = function () {
|
|
76
120
|
{%unless _7%}
|
|
77
121
|
if (document.querySelectorAll('.locksmith-manual-trigger').length > 0) {
|