| 1 |
"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[7252],{9896:function(t,n,i){i.d(n,{o:function(){return s}});var e=i(963),s=function(t,n,i){void 0===i&&(i=!0);var s="Function"===t.constructor.name?t.prototype:t,o=s.componentWillLoad;s.componentWillLoad=function(){var t,s=this,r=(0,e.g)(this),u={promise:new Promise((function(n){t=n})),resolve:t},c=new CustomEvent("openWormhole",{bubbles:!0,composed:!0,detail:{consumer:this,fields:n,updater:function(t,n){(t in r?r:s)[t]=n},onOpen:u}});r.dispatchEvent(c);var h=function(){if(o)return o.call(s)};return i?u.promise.then((function(){return h()})):h()}}},7252:function(t,n,i){i.r(n),i.d(n,{sc_cart_submit:function(){return u}});var e=i(5671),s=i(3144),o=i(963),r=i(9896),u=function(){function t(n){(0,e.Z)(this,t),(0,o.r)(this,n),this.type="primary",this.size="medium",this.full=!0}return(0,s.Z)(t,[{key:"render",value:function(){var t=this;return(0,o.h)("sc-button",{href:this.checkoutLink,type:this.type,size:this.size,full:this.full,loading:this.busy,disabled:this.busy,onClick:function(){return t.busy=!0,!0}},!!this.icon&&(0,o.h)("sc-icon",{name:this.icon,slot:"prefix"}),(0,o.h)("slot",null))}}]),t}();(0,r.o)(u,["busy","checkoutLink"],!1),u.style="sc-order-submit{display:block;width:auto}"}}]); |