File: /home/zeusxp5/tour.kamille.us/wp-content/plugins/surecart/dist/8207.js
"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[8207],{4805:function(e,t,r){r.d(t,{a:function(){return d},b:function(){return u},g:function(){return p}});var n=r(4467),i=r(3453);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var _n=0,n=function(){};return{s:n,n:function(){return _n>=e.length?{done:!0}:{done:!1,value:e[_n++]}},e:function(e){throw e},f:n}}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,o=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function u(e){for(var t,r="",n=Object.entries(e);t=n.shift();){var o=t,a=(0,i.A)(o,2),c=a[0],u=a[1];if(Array.isArray(u)||u&&u.constructor===Object){var l,p=s(Object.entries(u).reverse());try{for(p.s();!(l=p.n()).done;){var d=(0,i.A)(l.value,2),f=d[0],h=d[1];n.unshift(["".concat(c,"[").concat(f,"]"),h])}}catch(e){p.e(e)}finally{p.f()}}else void 0!==u&&(null===u&&(u=""),r+="&"+[c,u].map(encodeURIComponent).join("="))}return r.substr(1)}function l(e){try{return decodeURIComponent(e)}catch(t){return e}}function p(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 r=t.split("=").filter(Boolean).map(l),n=(0,i.A)(r,2),o=n[0],s=n[1],c=void 0===s?"":s;return o&&function(e,t,r){for(var n=t.length,i=n-1,o=0;o<n;o++){var s=t[o];!s&&Array.isArray(e)&&(s=e.length.toString()),s=["__proto__","constructor","prototype"].includes(s)?s.toUpperCase():s;var c=!isNaN(Number(t[o+1]));e[s]=o===i?r:e[s]||(c?[]:{}),Array.isArray(e[s])&&!c&&(e[s]=a({},e[s])),e=e[s]}}(e,o.replace(/\]/g,"").split("["),c),e}),Object.create(null))}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 r=e,n=e.indexOf("?");return-1!==n&&(t=Object.assign(p(e),t),r=r.substr(0,n)),r+"?"+u(t)}},8803:function(e,t,r){r.d(t,{a:function(){return z},h:function(){return W}});var n=r(9394),i=r(467),o=r(45),a=r(3453),s=r(4467),c=r(9280),u=r.n(c),l=r(4805),p=r(3506),d=["rest_route"],f=["path","url"],h=["url","path","data","parse"];function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){(0,s.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t){return void 0!==(0,p.g)(e,t)}function g(e){var t=e.split("?"),r=t[1],n=t[0];return r?n+"?"+r.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("&"):n}var y=function(e,t){var r,n,i=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(r=e.namespace.replace(/^\/|\/$/g,""),i=(n=e.endpoint.replace(/^\//,""))?r+"/"+n:r),delete e.namespace,delete e.endpoint,t(w(w({},e),{},{path:i}))};function m(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}var _=function(e){return e.json?e.json():Promise.reject(e)},O=function(e){return function(e){if(!e)return{};var t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}}(e.headers.get("link")).next},j=function(e){var t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),r=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||r},k=function(){var e=(0,i.A)(u().mark((function e(t,r){var n,i,a,s,c,p;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==t.parse){e.next=2;break}return e.abrupt("return",r(t));case 2:if(j(t)){e.next=4;break}return e.abrupt("return",r(t));case 4:return e.next=6,z(w(w({},(d={per_page:100},void 0,void 0,h=(u=t).path,v=u.url,w(w({},(0,o.A)(u,f)),{},{url:v&&(0,l.a)(v,d),path:h&&(0,l.a)(h,d)}))),{},{parse:!1}));case 6:return n=e.sent,e.next=9,_(n);case 9:if(i=e.sent,Array.isArray(i)){e.next=12;break}return e.abrupt("return",i);case 12:if(a=O(n)){e.next=15;break}return e.abrupt("return",i);case 15:s=[].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 c=e.sent,e.next=22,_(c);case 22:p=e.sent,s=s.concat(p),a=O(c),e.next=16;break;case 27:return e.abrupt("return",s);case 28:case"end":return e.stop()}var u,d,h,v}),e)})));return function(_x,t){return e.apply(this,arguments)}}(),P=new Set(["PATCH","PUT","DELETE"]),x=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Promise.resolve(function(e){return arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?e:204===e.status?null:e.json?e.json():Promise.reject(e)}(e,t)).catch((function(e){return A(e,t)}))};function A(e){if(arguments.length>1&&void 0!==arguments[1]&&!arguments[1])throw e;return 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}))}(e).then((function(e){var t={code:"unknown_error",message:wp.i18n.__("An unknown error occurred.")};throw e||t}))}var S,E,T,D,C,L,M,I={Accept:"application/json, */*;q=0.1"},N={credentials:"include"},R=[function(e,t){return"string"!=typeof e.url||b(e.url,"_locale")||(e.url=(0,l.a)(e.url,{_locale:"user"})),"string"!=typeof e.path||b(e.path,"_locale")||(e.path=(0,l.a)(e.path,{_locale:"user"})),t(e)},y,function(e,t){var r=e.method,n=void 0===r?"GET":r;return P.has(n.toUpperCase())&&(e=w(w({},e),{},{headers:w(w({},e.headers),{},{"X-HTTP-Method-Override":n,"Content-Type":"application/json"}),method:"POST"})),t(e)},k],U=function(e){if(e.status>=200&&e.status<300)return e;throw e},q=function(e){var t=e.url,r=e.path,n=e.data,i=e.parse,a=void 0===i||i,s=(0,o.A)(e,h),c=e.body,u=e.headers;return u=w(w({},I),u),n&&(c=JSON.stringify(n),u["Content-Type"]="application/json"),window.fetch(t||r||window.location.href,w(w(w({},N),s),{},{body:c,headers:u})).then((function(e){return Promise.resolve(e).then(U).catch((function(e){return A(e,a)})).then((function(e){return x(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 R.reduceRight((function(e,t){return function(r){return t(r,e)}}),q)(e).catch((function(t){return"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(z.nonceEndpoint).then(U).then((function(e){return e.text()})).then((function(t){return z.nonceMiddleware.nonce=t,z(e)}))}))}z.use=function(e){R.unshift(e)},z.setFetchHandler=function(e){q=e},z.createNonceMiddleware=function(e){var t=function e(t,r){var n=t.headers,i=void 0===n?{}:n;for(var o in i)if("x-wp-nonce"===o.toLowerCase()&&i[o]===e.nonce)return r(t);return r(w(w({},t),{},{headers:w(w({},i),{},{"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,a.A)(e,2),r=t[0],n=t[1];return[g(r),n]})));return function(e,r){var n=e.parse,i=void 0===n||n,a=e.path;if(!a&&e.url){var s=(0,l.g)(e.url),c=s.rest_route,u=(0,o.A)(s,d);"string"==typeof c&&(a=(0,l.a)(c,u))}if("string"!=typeof a)return r(e);var p=e.method||"GET",f=g(a);if("GET"===p&&t[f]){var h=t[f];return delete t[f],m(h,!!i)}if("OPTIONS"===p&&t[p]&&t[p][f]){var v=t[p][f];return delete t[p][f],m(v,!!i)}return r(e)}},z.createRootURLMiddleware=function(e){return function(t,r){return y(t,(function(t){var n,i=t.url,o=t.path;return"string"==typeof o&&(n=e,-1!==e.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),"string"==typeof n&&-1!==n.indexOf("?")&&(o=o.replace("?","&")),i=n+o),r(w(w({},t),{},{url:i}))}))}},z.fetchAllMiddleware=k,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 r=0,n=function e(n){return r++,t({path:"/wp/v2/media/".concat(n,"/post-process"),method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch((function(){return r<5?e(n):(t({path:"/wp/v2/media/".concat(n,"?force=true"),method:"DELETE"}),Promise.reject())}))};return t(w(w({},e),{},{parse:!1})).catch((function(t){var r=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&r?n(r).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)})):A(t,e.parse)})).then((function(t){return x(t,e.parse)}))},z.createThemePreviewMiddleware=function(e){return function(t,r){if("string"==typeof t.url){var n=(0,p.g)(t.url,"wp_theme_preview");void 0===n?t.url=(0,l.a)(t.url,{wp_theme_preview:e}):""===n&&(t.url=(0,p.r)(t.url,"wp_theme_preview"))}if("string"==typeof t.path){var i=(0,p.g)(t.path,"wp_theme_preview");void 0===i?t.path=(0,l.a)(t.path,{wp_theme_preview:e}):""===i&&(t.path=(0,p.r)(t.path,"wp_theme_preview"))}return r(t)}},z.fetchAllMiddleware=null,z.use(z.createRootURLMiddleware((null===(E=null===(S=null===window||void 0===window?void 0:window.parent)||void 0===S?void 0:S.scData)||void 0===E?void 0:E.root_url)||(null===(T=null===window||void 0===window?void 0:window.scData)||void 0===T?void 0:T.root_url))),(null===(D=null===window||void 0===window?void 0:window.scData)||void 0===D?void 0:D.nonce)&&(z.nonceMiddleware=z.createNonceMiddleware(null===(C=null===window||void 0===window?void 0:window.scData)||void 0===C?void 0:C.nonce),z.use(z.nonceMiddleware)),(null===(L=null===window||void 0===window?void 0:window.scData)||void 0===L?void 0:L.nonce_endpoint)&&(z.nonceEndpoint=null===(M=null===window||void 0===window?void 0:window.scData)||void 0===M?void 0:M.nonce_endpoint),z.use((function(e,t){return e.path=(0,l.a)(e.path,{t:Date.now()}),t(e)})),z.use((function(e,t){return e.path=(0,l.a)(e.path,w({},!!(0,p.g)(window.location.href,"currency")&&{currency:(0,p.g)(window.location.href,"currency")})),t(e)})),z.use((function(e,t){var r=t(e);return r.catch((function(e){var t;return"invalid_json"===e.code&&(e.message=wp.i18n.__("The response is not a valid JSON response.","surecart"),e.additional_errors=[{code:"invalid_json",message:wp.i18n.sprintf(/* translators: %s: URL to debug settings page */
wp.i18n.__("Please ensure that your site is not in debug mode as this may interfere with API responses. %s","surecart"),'<a href="'.concat("https://surecart.com/docs/is-not-a-valid-json-response/",'" target="_blank" rel="noopener noreferrer">').concat(wp.i18n.__("More Information","surecart"),"</a>"))}]),"checkout.finalize_error"===e.code&&(e.additional_errors=[].concat((0,n.A)((null===(t=null==e?void 0:e.additional_errors)||void 0===t?void 0:t.length)?[]:[{code:"checkout.finalize_error",message:e.message}]),(0,n.A)(e.additional_errors||[])),e.message=wp.i18n.__("We were not able to process this order","surecart")),Promise.reject(e)})),r}));var J=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}))},W=function(){var e=(0,i.A)(u().mark((function e(t){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J(t);case 2:if("rest_cookie_invalid_nonce"===(r=e.sent).code){e.next=5;break}throw r;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)}}()},2942:function(e,t,r){r.d(t,{o:function(){return n}});var n=function(e,t){new window.IntersectionObserver((function(e,r){e[0].intersectionRatio>0&&(t(),r.unobserve(e[0].target))})).observe(e)}},3506:function(e,t,r){r.d(t,{g:function(){return i},r:function(){return o}});var n=r(4805);function i(e,t){return(0,n.g)(e)[t]}function o(e){var t=e.indexOf("?");if(-1===t)return e;for(var r=(0,n.g)(e),i=e.substr(0,t),o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];a.forEach((function(e){return delete r[e]}));var c=(0,n.b)(r);return c?i+"?"+c:i}},8207:function(e,t,r){r.r(t),r.d(t,{sc_subscriptions_list:function(){return v}});var n=r(4467),i=r(467),o=r(3029),a=r(2901),s=r(9280),c=r.n(s),u=r(1346),l=r(8803),p=r(2942),d=r(4805);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v=function(){return(0,a.A)((function e(t){(0,o.A)(this,e),(0,u.r)(this,t),this.query={page:1,per_page:10},this.allLink=void 0,this.heading=void 0,this.isCustomer=void 0,this.cancelBehavior="period_end",this.subscriptions=[],this.loading=void 0,this.busy=void 0,this.error=void 0,this.pagination={total:0,total_pages:0}}),[{key:"componentWillLoad",value:function(){var e=this;(0,p.o)(this.el,(function(){e.initialFetch()}))}},{key:"initialFetch",value:(r=(0,i.A)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.loading=!0,e.next=4,this.getSubscriptions();case 4:e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),console.error(this.error),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:"fetchSubscriptions",value:(t=(0,i.A)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.busy=!0,e.next=4,this.getSubscriptions();case 4:e.next=10;break;case 6:e.prev=6,e.t0=e.catch(0),console.error(this.error),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.busy=!1,e.finish(10);case 13:case"end":return e.stop()}}),e,this,[[0,6,10,13]])}))),function(){return t.apply(this,arguments)})},{key:"getSubscriptions",value:(e=(0,i.A)(c().mark((function e(){var t;return c().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,l.a)({path:(0,d.a)("surecart/v1/subscriptions/",h({expand:["price","price.product","current_period","period.checkout","purchase","purchase.license","license.activations","discount","discount.coupon"]},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.subscriptions=e.sent,e.abrupt("return",this.subscriptions);case 12:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"nextPage",value:function(){this.query.page=this.query.page+1,this.fetchSubscriptions()}},{key:"prevPage",value:function(){this.query.page=this.query.page-1,this.fetchSubscriptions()}},{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:"repeat"},wp.i18n.__("You don't have any subscriptions.","surecart"))))}},{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:"getSubscriptionLink",value:function(e){return(0,d.a)(window.location.href,{action:"edit",model:"subscription",id:e.id})}},{key:"renderList",value:function(){var e=this;return this.subscriptions.map((function(t){return(0,u.h)("sc-stacked-list-row",{href:e.getSubscriptionLink(t),key:t.id,"mobile-size":0},(0,u.h)("sc-subscription-details",{subscription:t}),(0,u.h)("sc-icon",{name:"chevron-right",slot:"suffix"}))}))}},{key:"renderContent",value:function(){var e;return this.loading?this.renderLoading():0===(null===(e=this.subscriptions)||void 0===e?void 0:e.length)?this.renderEmpty():(0,u.h)("sc-card",{"no-padding":!0,style:{"--overflow":"hidden"}},(0,u.h)("sc-stacked-list",null,this.renderList()))}},{key:"render",value:function(){var e,t,r=this;return(0,u.h)("sc-dashboard-module",{key:"3edef38c7bb435cff304bbf2c102c4ab86d2c729",class:"subscriptions-list",error:this.error},(0,u.h)("span",{key:"7f05c96aab0d032b0ab18053e1ea575c6ac38e64",slot:"heading"},(0,u.h)("slot",{key:"f0cbe407d0a0095d08a704b68226bbd95e9c1dd1",name:"heading"},this.heading||wp.i18n.__("Subscriptions","surecart"))),!!this.allLink&&!!(null===(e=this.subscriptions)||void 0===e?void 0:e.length)&&(0,u.h)("sc-button",{key:"62673507f2a02f88d1a592a2f7b654d5459c2989",type:"link",href:this.allLink,slot:"end","aria-label":wp.i18n.sprintf(wp.i18n.__("View all %s","surecart"),this.heading||"Subscriptions")},wp.i18n.__("View all","surecart"),(0,u.h)("sc-icon",{key:"4d87a03e88e2630ced452a01713a90aa137bdf54","aria-hidden":"true",name:"chevron-right",slot:"suffix"})),this.renderContent(),!this.allLink&&(0,u.h)("sc-pagination",{key:"16fdb18ba37125b12ef42ceba31986a1047c6d1e",page:this.query.page,perPage:this.query.per_page,total:this.pagination.total,totalPages:this.pagination.total_pages,totalShowing:null===(t=null==this?void 0:this.subscriptions)||void 0===t?void 0:t.length,onScNextPage:function(){return r.nextPage()},onScPrevPage:function(){return r.prevPage()}}),this.busy&&(0,u.h)("sc-block-ui",{key:"67088752538e626fb33688ef10a38d7be6f97c37"}))}},{key:"el",get:function(){return(0,u.a)(this)}}]);var e,t,r}();v.style=":host{display:block}.subscriptions-list{display:grid;gap:0.5em}.subscriptions-list__heading{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;margin-bottom:0.5em}.subscriptions-list__title{font-size:var(--sc-font-size-x-large);font-weight:var(--sc-font-weight-bold);line-height:var(--sc-line-height-dense)}.subscriptions-list a{text-decoration:none;font-weight:var(--sc-font-weight-semibold);display:inline-flex;align-items:center;gap:0.25em;color:var(--sc-color-primary-500)}.subscriptions__title{display:none}.subscriptions--has-title-slot .subscriptions__title{display:block}"},45:function(e,t,r){r.d(t,{A:function(){return i}});var n=r(8587);function i(e,t){if(null==e)return{};var r,i,o=(0,n.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],t.indexOf(r)>=0||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}},8587:function(e,t,r){function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}r.d(t,{A:function(){return n}})}}]);