index of
/
home
/
thefkyzp
/
hulmvisaadvisor.com
/
wp-content
/
plugins
/
surecart
/
dist
/
File: /home/thefkyzp/hulmvisaadvisor.com/wp-content/plugins/surecart/dist/7381.js
"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[7381],{448:function(e,t,n){n.d(t,{a:function(){return d},b:function(){return u},g:function(){return l}});var r=n(4942),o=n(885);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){for(var t,n="",r=Object.entries(e);t=r.shift();){var i=t,a=(0,o.Z)(i,2),s=a[0],u=a[1];if(Array.isArray(u)||u&&u.constructor===Object){var l,d=c(Object.entries(u).reverse());try{for(d.s();!(l=d.n()).done;){var f=(0,o.Z)(l.value,2),p=f[0],h=f[1];r.unshift(["".concat(s,"[").concat(p,"]"),h])}}catch(e){d.e(e)}finally{d.f()}}else void 0!==u&&(null===u&&(u=""),n+="&"+[s,u].map(encodeURIComponent).join("="))}return n.substr(1)}function l(e){return(function(e){var t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce((function(e,t){var n=t.split("=").filter(Boolean).map(decodeURIComponent),r=(0,o.Z)(n,2),i=r[0],c=r[1],s=void 0===c?"":c;return i&&function(e,t,n){for(var r=t.length,o=r-1,i=0;i<r;i++){var c=t[i];!c&&Array.isArray(e)&&(c=e.length.toString());var s=!isNaN(Number(t[i+1]));e[c]=i===o?n:e[c]||(s?[]:{}),Array.isArray(e[c])&&!s&&(e[c]=a({},e[c])),e=e[c]}}(e,i.replace(/\]/g,"").split("["),s),e}),{})}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;var n=e,r=e.indexOf("?");return-1!==r&&(t=Object.assign(l(e),t),n=n.substr(0,r)),n+"?"+u(t)}},930:function(e,t,n){n.d(t,{a:function(){return z},h:function(){return G}});var r=n(5861),o=n(5987),i=n(885),a=n(4942),c=n(1284),s=n.n(c),u=n(448),l=["rest_route"],d=["path","url"],f=["url","path","data","parse"];function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw i}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){(0,a.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e,t){var n,r,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(n=e.namespace.replace(/^\/|\/$/g,""),o=(r=e.endpoint.replace(/^\//,""))?n+"/"+r:n),delete e.namespace,delete e.endpoint,t(w(w({},e),{},{path:o}))};function g(e){for(var t,n="",r=Object.entries(e);t=r.shift();){var o=t,a=(0,i.Z)(o,2),c=a[0],s=a[1];if(Array.isArray(s)||s&&s.constructor===Object){var u,l=p(Object.entries(s).reverse());try{for(l.s();!(u=l.n()).done;){var d=(0,i.Z)(u.value,2),f=d[0],h=d[1];r.unshift(["".concat(c,"[").concat(f,"]"),h])}}catch(e){l.e(e)}finally{l.f()}}else void 0!==s&&(null===s&&(s=""),n+="&"+[c,s].map(encodeURIComponent).join("="))}return n.substr(1)}function b(e){return(function(e){var t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce((function(e,t){var n=t.split("=").filter(Boolean).map(decodeURIComponent),r=(0,i.Z)(n,2),o=r[0],a=r[1],c=void 0===a?"":a;return o&&function(e,t,n){for(var r=t.length,o=r-1,i=0;i<r;i++){var a=t[i];!a&&Array.isArray(e)&&(a=e.length.toString()),a=["__proto__","constructor","prototype"].includes(a)?a.toUpperCase():a;var c=!isNaN(Number(t[i+1]));e[a]=i===o?n:e[a]||(c?[]:{}),Array.isArray(e[a])&&!c&&(e[a]=w({},e[a])),e=e[a]}}(e,o.replace(/\]/g,"").split("["),c),e}),Object.create(null))}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;var n=e,r=e.indexOf("?");return-1!==r&&(t=Object.assign(b(e),t),n=n.substr(0,r)),n+"?"+g(t)}function O(e,t){return void 0!==function(e,t){return b(e)[t]}(e,t)}function j(e){var t=e.split("?"),n=t[1],r=t[0];return n?r+"?"+n.split("&").map((function(e){return e.split("=")})).map((function(e){return e.map(decodeURIComponent)})).sort((function(e,t){return e[0].localeCompare(t[0])})).map((function(e){return e.map(encodeURIComponent)})).map((function(e){return e.join("=")})).join("&"):r}function _(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}var k=function(e){return e.json?e.json():Promise.reject(e)},x=function(e){return function(e){if(!e)return{};var t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},P=function(e){var t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),n=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||n},A=function(){var e=(0,r.Z)(s().mark((function e(t,n){var r,i,a,c,u,l;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",n(t));case 2:if(P(t)){e.next=4;break}return e.abrupt("return",n(t));case 4:return e.next=6,z(w(w({},(f={per_page:100},void 0,void 0,p=(s=t).path,h=s.url,w(w({},(0,o.Z)(s,d)),{},{url:h&&m(h,f),path:p&&m(p,f)}))),{},{parse:!1}));case 6:return r=e.sent,e.next=9,k(r);case 9:if(i=e.sent,Array.isArray(i)){e.next=12;break}return e.abrupt("return",i);case 12:if(a=x(r)){e.next=15;break}return e.abrupt("return",i);case 15:c=[].concat(i);case 16:if(!a){e.next=27;break}return e.next=19,z(w(w({},t),{},{path:void 0,url:a,parse:!1}));case 19:return u=e.sent,e.next=22,k(u);case 22:l=e.sent,c=c.concat(l),a=x(u),e.next=16;break;case 27:return e.abrupt("return",c);case 28:case"end":return e.stop()}var s,f,p,h}),e)})));return function(_x,t){return e.apply(this,arguments)}}(),S=new Set(["PATCH","PUT","DELETE"]),E=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t?204===e.status?null:e.json?e.json():Promise.reject(e):e},T=function(e){var t={code:"invalid_json",message:wp.i18n.__("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch((function(){throw t}))},Z=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(E(e,t)).catch((function(e){return C(e,t)}))};function C(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)throw e;return T(e).then((function(e){var t={code:"unknown_error",message:wp.i18n.__("An unknown error occurred.")};throw e||t}))}var D,I,L,U,M,R,N,B={Accept:"application/json, */*;q=0.1"},J={credentials:"include"},W=[function(e,t){return"string"!=typeof e.url||O(e.url,"_locale")||(e.url=m(e.url,{_locale:"user"})),"string"!=typeof e.path||O(e.path,"_locale")||(e.path=m(e.path,{_locale:"user"})),t(e)},y,function(e,t){var n=e.method,r=void 0===n?"GET":n;return S.has(r.toUpperCase())&&(e=w(w({},e),{},{headers:w(w({},e.headers),{},{"X-HTTP-Method-Override":r,"Content-Type":"application/json"}),method:"POST"})),t(e)},A],X=function(e){if(e.status>=200&&e.status<300)return e;throw e},q=function(e){var t=e.url,n=e.path,r=e.data,i=e.parse,a=void 0===i||i,c=(0,o.Z)(e,f),s=e.body,u=e.headers;return u=w(w({},B),u),r&&(s=JSON.stringify(r),u["Content-Type"]="application/json"),window.fetch(t||n||window.location.href,w(w(w({},J),c),{},{body:s,headers:u})).then((function(e){return Promise.resolve(e).then(X).catch((function(e){return C(e,a)})).then((function(e){return Z(e,a)}))}),(function(e){if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:wp.i18n.__("You are probably offline.")}}))};function z(e){return W.reduceRight((function(e,t){return function(n){return t(n,e)}}),q)(e).catch((function(t){return"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(z.nonceEndpoint).then(X).then((function(e){return e.text()})).then((function(t){return z.nonceMiddleware.nonce=t,z(e)}))}))}z.use=function(e){W.unshift(e)},z.setFetchHandler=function(e){q=e},z.createNonceMiddleware=function(e){var t=function e(t,n){var r=t.headers,o=void 0===r?{}:r;for(var i in o)if("x-wp-nonce"===i.toLowerCase()&&o[i]===e.nonce)return n(t);return n(w(w({},t),{},{headers:w(w({},o),{},{"X-WP-Nonce":e.nonce})}))};return t.nonce=e,t},z.createPreloadingMiddleware=function(e){var t=Object.fromEntries(Object.entries(e).map((function(e){var t=(0,i.Z)(e,2),n=t[0],r=t[1];return[j(n),r]})));return function(e,n){var r=e.parse,i=void 0===r||r,a=e.path;if(!a&&e.url){var c=b(e.url),s=c.rest_route,u=(0,o.Z)(c,l);"string"==typeof s&&(a=m(s,u))}if("string"!=typeof a)return n(e);var d=e.method||"GET",f=j(a);if("GET"===d&&t[f]){var p=t[f];return delete t[f],_(p,!!i)}if("OPTIONS"===d&&t[d]&&t[d][f]){var h=t[d][f];return delete t[d][f],_(h,!!i)}return n(e)}},z.createRootURLMiddleware=function(e){return function(t,n){return y(t,(function(t){var r,o=t.url,i=t.path;return"string"==typeof i&&(r=e,-1!==e.indexOf("?")&&(i=i.replace("?","&")),i=i.replace(/^\//,""),"string"==typeof r&&-1!==r.indexOf("?")&&(i=i.replace("?","&")),o=r+i),n(w(w({},t),{},{url:o}))}))}},z.fetchAllMiddleware=A,z.mediaUploadMiddleware=function(e,t){if(!function(e){var t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);var n=0,r=function e(r){return n++,t({path:"/wp/v2/media/".concat(r,"/post-process"),method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((function(){return n<5?e(r):(t({path:"/wp/v2/media/".concat(r,"?force=true"),method:"DELETE"}),Promise.reject())}))};return t(w(w({},e),{},{parse:!1})).catch((function(t){var n=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&n?r(n).catch((function(){return!1!==e.parse?Promise.reject({code:"post_process",message:wp.i18n.__("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t)})):C(t,e.parse)})).then((function(t){return Z(t,e.parse)}))},z.fetchAllMiddleware=null,z.use(z.createRootURLMiddleware((null===(I=null===(D=null===window||void 0===window?void 0:window.parent)||void 0===D?void 0:D.scData)||void 0===I?void 0:I.root_url)||(null===(L=null===window||void 0===window?void 0:window.scData)||void 0===L?void 0:L.root_url))),(null===(U=null===window||void 0===window?void 0:window.scData)||void 0===U?void 0:U.nonce)&&(z.nonceMiddleware=z.createNonceMiddleware(null===(M=null===window||void 0===window?void 0:window.scData)||void 0===M?void 0:M.nonce),z.use(z.nonceMiddleware)),(null===(R=null===window||void 0===window?void 0:window.scData)||void 0===R?void 0:R.nonce_endpoint)&&(z.nonceEndpoint=null===(N=null===window||void 0===window?void 0:window.scData)||void 0===N?void 0:N.nonce_endpoint),z.use((function(e,t){return e.path=(0,u.a)(e.path,{t:Date.now()}),t(e)}));var F=function(e){var t={code:"invalid_json",message:wp.i18n.__("The response is not a valid JSON response.","surecart")};if((null==e?void 0:e.code)&&(null==e?void 0:e.message))throw e;if(!e||!e.json)throw t;return e.json().catch((function(){throw t}))},G=function(){var e=(0,r.Z)(s().mark((function e(t){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,F(t);case 2:if("rest_cookie_invalid_nonce"===(n=e.sent).code){e.next=5;break}throw n;case 5:return e.abrupt("return",window.fetch(z.nonceEndpoint).then((function(e){if(e.status>=200&&e.status<300)return e;throw e})).then((function(e){return e.text()})).then((function(e){z.nonceMiddleware.nonce=e})));case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},6455:function(e,t,n){n.d(t,{o:function(){return r}});var r=function(e,t){new window.IntersectionObserver((function(e,n){e[0].intersectionRatio>0&&(t(),n.unobserve(e[0].target))})).observe(e)}},7381:function(e,t,n){n.r(t),n.d(t,{sc_licenses_list:function(){return v}});var r=n(4942),o=n(5861),i=n(5671),a=n(3144),c=n(1284),s=n.n(c),u=n(8860),l=n(6455),d=n(930),f=n(448);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=function(){function e(t){(0,i.Z)(this,e),(0,u.r)(this,t),this.query={page:1,per_page:10},this.heading=wp.i18n.__("Licenses","surecart"),this.isCustomer=void 0,this.allLink=void 0,this.licenses=[],this.copied=!1,this.loading=!1,this.error="",this.pagination={total:0,total_pages:0}}var t,n,r;return(0,a.Z)(e,[{key:"componentWillLoad",value:function(){var e=this;(0,l.o)(this.el,(function(){e.initialFetch()}))}},{key:"initialFetch",value:(r=(0,o.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,e.next=4,this.getLicenses();case 4:e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),console.error(e.t0),this.error=(null===e.t0||void 0===e.t0?void 0:e.t0.message)||wp.i18n.__("Something went wrong","surecart");case 10:return e.prev=10,this.loading=!1,e.finish(10);case 13:case"end":return e.stop()}}),e,this,[[0,6,10,13]])}))),function(){return r.apply(this,arguments)})},{key:"getLicenses",value:(n=(0,o.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isCustomer){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,(0,d.a)({path:(0,f.a)("surecart/v1/licenses",h({expand:["purchase","purchase.product","activations"]},this.query)),parse:!1});case 4:return e.next=6,e.sent;case 6:return t=e.sent,this.pagination={total:parseInt(t.headers.get("X-WP-Total")),total_pages:parseInt(t.headers.get("X-WP-TotalPages"))},e.next=10,t.json();case 10:return this.licenses=e.sent,e.abrupt("return",this.licenses);case 12:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"renderStatus",value:function(e){return"active"===e?(0,u.h)("sc-tag",{type:"success"},wp.i18n.__("Active","surecart")):"revoked"===e?(0,u.h)("sc-tag",{type:"danger"},wp.i18n.__("Revoked","surecart")):"inactive"===e?(0,u.h)("sc-tag",{type:"info"},wp.i18n.__("Not Activated","surecart")):(0,u.h)("sc-tag",{type:"info"},e)}},{key:"copyKey",value:(t=(0,o.Z)(s().mark((function e(t){var n=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,navigator.clipboard.writeText(t);case 3:this.copied=!0,setTimeout((function(){n.copied=!1}),2e3),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),alert(wp.i18n.__("Error copying to clipboard","surecart"));case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(_x){return t.apply(this,arguments)})},{key:"renderLoading",value:function(){return(0,u.h)("sc-card",{"no-padding":!0,style:{"--overflow":"hidden"}},(0,u.h)("sc-stacked-list",null,(0,u.h)("sc-stacked-list-row",{style:{"--columns":"2"},"mobile-size":0},(0,u.h)("div",{style:{padding:"0.5em"}},(0,u.h)("sc-skeleton",{style:{width:"30%",marginBottom:"0.75em"}}),(0,u.h)("sc-skeleton",{style:{width:"20%",marginBottom:"0.75em"}}),(0,u.h)("sc-skeleton",{style:{width:"40%"}})))))}},{key:"renderEmpty",value:function(){return(0,u.h)("div",null,(0,u.h)("sc-divider",{style:{"--spacing":"0"}}),(0,u.h)("slot",{name:"empty"},(0,u.h)("sc-empty",{icon:"file-text"},wp.i18n.__("You don't have any licenses.","surecart"))))}},{key:"renderContent",value:function(){var e,t,n=this;return this.loading?this.renderLoading():0===(null===(e=this.licenses)||void 0===e?void 0:e.length)?this.renderEmpty():(0,u.h)("sc-card",{"no-padding":!0},(0,u.h)("sc-stacked-list",null,null===(t=this.licenses)||void 0===t?void 0:t.map((function(e){var t,r=e.id,o=e.purchase,i=e.status,a=e.activation_limit,c=e.activation_count;return(0,u.h)("sc-stacked-list-row",{key:r,href:(0,f.a)(window.location.href,{action:"show",model:"license",id:r}),"mobile-size":0},(0,u.h)("div",{class:"license__details"},(0,u.h)("div",{class:"license__name"},null===(t=null==o?void 0:o.product)||void 0===t?void 0:t.name),(0,u.h)("div",null,n.renderStatus(i)," ",wp.i18n.sprintf(wp.i18n.__("%1s of %2s Activations Used"),c||0,a||"∞"))),(0,u.h)("sc-icon",{name:"chevron-right",slot:"suffix"}))}))))}},{key:"render",value:function(){var e;return(0,u.h)("sc-dashboard-module",{class:"purchase",part:"base",error:this.error},(0,u.h)("span",{slot:"heading"},(0,u.h)("slot",{name:"heading"},this.heading||wp.i18n.__("License Keys","surecart"))),!!this.allLink&&!!(null===(e=this.licenses)||void 0===e?void 0:e.length)&&(0,u.h)("sc-button",{type:"link",href:this.allLink,slot:"end"},wp.i18n.__("View all","surecart"),(0,u.h)("sc-icon",{name:"chevron-right",slot:"suffix"})),this.renderContent())}},{key:"el",get:function(){return(0,u.a)(this)}}]),e}();v.style=":host{display:block}.license__name{font-weight:var(--sc-font-weight-semibold)}.license__details{display:grid;gap:0.25em;color:var(--sc-input-label-color)}"},4942:function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},5987:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(3366);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},3366:function(e,t,n){function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:function(){return r}})}}]);