index of
/
home
/
thefkyzp
/
hulmvisaadvisor.com
/
wp-content
/
plugins
/
surecart
/
dist
/
File: /home/thefkyzp/hulmvisaadvisor.com/wp-content/plugins/surecart/dist/8148.js
"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[8148],{6067:function(e,t,n){n.d(t,{a:function(){return o},b:function(){return a},c:function(){return c},g:function(){return u},s:function(){return p}});var i=n(4467);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return new Promise((function(i){if((null==n?void 0:n.duration)===1/0)throw new Error("Promise-based animations must be finite.");if(null==e?void 0:e.animate){var r,o=e.animate(t,s(s({},n),{},{duration:(r=window.matchMedia("(prefers-reduced-motion: reduce)"),r.matches?0:n.duration)}));o&&(o.addEventListener("cancel",i,{once:!0}),o.addEventListener("finish",i,{once:!0}))}}))}function a(e){var t;return Promise.all(((null===(t=null==e?void 0:e.getAnimations)||void 0===t?void 0:t.call(e))||[]).map((function(e){return new Promise((function(t){var n=requestAnimationFrame(t);e.addEventListener("cancel",(function(){return n}),{once:!0}),e.addEventListener("finish",(function(){return n}),{once:!0}),e.cancel()}))})))}function c(e,t){return e.map((function(e){return s(s({},e),{},{height:"auto"===e.height?"".concat(t,"px"):e.height})}))}var l=new Map,d=new WeakMap;function p(e,t){l.set(e,function(e){return null!=e?e:{keyframes:[],options:{duration:0}}}(t))}function u(e,t){var n=d.get(e);return(null==n?void 0:n[t])?n[t]:l.get(t)||{keyframes:[],options:{duration:0}}}},6402:function(e,t,n){function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite",t=document.createElement("div");t.id="a11y-speak-".concat(e),t.className="a11y-speak-region",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("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");var n=document.body;return n&&n.appendChild(t),t}n.d(t,{s:function(){return o}});var r,s="";function o(e,t){!function(){for(var e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text"),n=0;n<e.length;n++)e[n].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),s===e&&(e+=" "),s=e,e}(e);var n=document.getElementById("a11y-speak-intro-text"),i=document.getElementById("a11y-speak-assertive"),r=document.getElementById("a11y-speak-polite");i&&"assertive"===t?i.textContent=e:r&&(r.textContent=e),n&&n.removeAttribute("hidden")}r=function(){var e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){var e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=wp.i18n.__("Notifications"),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("hidden","hidden");var t=document.body;t&&t.appendChild(e)}(),null===t&&i("assertive"),null===n&&i("polite")},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",r):r())},8148:function(e,t,n){n.r(t),n.d(t,{sc_summary:function(){return p}});var i=n(467),r=n(3029),s=n(2901),o=n(9280),a=n.n(o),c=n(1346),l=n(6402),d=n(6067),p=function(){return(0,s.A)((function e(t){(0,r.A)(this,e),(0,c.r)(this,t),this.scShow=(0,c.c)(this,"scShow",7),this.scHide=(0,c.c)(this,"scHide",7),this.loading=void 0,this.busy=void 0,this.closedText=wp.i18n.__("Show Summary","surecart"),this.openText=wp.i18n.__("Summary","surecart"),this.collapsible=!1,this.collapsedOnMobile=!1,this.collapsedOnDesktop=void 0,this.collapsed=!1}),[{key:"isMobileScreen",value:function(){var e,t,n=null===(e=document.body)||void 0===e?void 0:e.getClientRects();return(null==n?void 0:n.length)&&(null===(t=n[0])||void 0===t?void 0:t.width)<781}},{key:"componentWillLoad",value:function(){this.isMobileScreen()?this.collapsed=this.collapsed||this.collapsedOnMobile:this.collapsed=this.collapsed||this.collapsedOnDesktop,this.handleOpenChange()}},{key:"handleClick",value:function(e){e.preventDefault(),this.collapsed=!this.collapsed}},{key:"renderHeader",value:function(){var e=this;return this.loading?(0,c.h)("sc-line-item",null,(0,c.h)("sc-skeleton",{slot:"title",style:{width:"120px",display:"inline-block"}}),(0,c.h)("sc-skeleton",{slot:"price",style:{width:"70px",display:"inline-block","--border-radius":"6px"}}),(0,c.h)("sc-skeleton",{slot:"currency",style:{width:"30px",display:"inline-block"}})):(0,c.h)("sc-line-item",{style:{"--price-size":"var(--sc-font-size-x-large)"}},(0,c.h)("span",{class:"collapse-link",slot:"title",onClick:function(t){return e.handleClick(t)},tabIndex:0,"aria-label":wp.i18n.sprintf(wp.i18n.__("Summary %s","surecart"),this.collapsed?wp.i18n.__("collapsed","surecart"):wp.i18n.__("expanded","surecart")),onKeyDown:function(t){" "===t.key&&(e.handleClick(t),(0,l.s)(wp.i18n.sprintf(wp.i18n.__("Summary %s","surecart"),e.collapsed?wp.i18n.__("collapsed","surecart"):wp.i18n.__("expanded","surecart")),"assertive"))}},this.collapsed?this.closedText||wp.i18n.__("Summary","surecart"):this.openText||wp.i18n.__("Summary","surecart"),(0,c.h)("svg",{xmlns:"http://www.w3.org/2000/svg",class:"collapse-link__icon",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},(0,c.h)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"}))),(0,c.h)("span",{slot:"description"},(0,c.h)("slot",{name:"description"})),(0,c.h)("span",{slot:"price",class:{price:!0,"price--collapsed":this.collapsed}},(0,c.h)("slot",{name:"price"})))}},{key:"handleOpenChange",value:(e=(0,i.A)(a().mark((function e(){var t,n,i,r,s,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.collapsed){e.next=13;break}return this.scShow.emit(),e.next=4,(0,d.b)(this.body);case 4:return this.body.hidden=!1,this.body.style.overflow="hidden",t=(0,d.g)(this.el,"summary.show"),n=t.keyframes,i=t.options,e.next=9,(0,d.a)(this.body,(0,d.c)(n,this.body.scrollHeight),i);case 9:this.body.style.height="auto",this.body.style.overflow="visible",e.next=23;break;case 13:return this.scHide.emit(),e.next=16,(0,d.b)(this.body);case 16:return this.body.style.overflow="hidden",r=(0,d.g)(this.el,"summary.hide"),s=r.keyframes,o=r.options,e.next=20,(0,d.a)(this.body,(0,d.c)(s,this.body.scrollHeight),o);case 20:this.body.hidden=!0,this.body.style.height="auto",this.body.style.overflow="visible";case 23:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"render",value:function(){var e=this;return(0,c.h)("div",{key:"8918c561500c2a8b2c6bc59e3524ae6a76fb72e4",class:{summary:!0,"summary--open":!this.collapsed}},this.collapsible&&this.renderHeader(),(0,c.h)("div",{key:"7f34f645358bf7cf3c51bae80aeb8016c4949f7b",ref:function(t){return e.body=t},class:{summary__content:!0}},(0,c.h)("slot",{key:"05309f7be8b163c70a8eb7040c65dd8fe25bdc69"})))}},{key:"el",get:function(){return(0,c.a)(this)}}],[{key:"watchers",get:function(){return{collapsed:["handleOpenChange"]}}}]);var e}();(0,d.s)("summary.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:250,easing:"ease"}}),(0,d.s)("summary.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:250,easing:"ease"}}),p.style=":host{display:block;font-family:var(--sc-font-sans);font-size:var(--sc-checkout-font-size, 16px)}.collapse-link{display:flex;align-items:center;gap:0.35em}.summary__content--empty{display:none}.collapse-link__icon{width:18px;height:18px;color:var(--sc-order-collapse-link-icon-color, var(--sc-color-gray-500))}.item__product+.item__product{margin-top:20px}.empty{color:var(--sc-order-summary-color, var(--sc-color-gray-500))}.price{display:inline-block;opacity:0;visibility:hidden;transform:translateY(5px);transition:var(--sc-input-transition, var(--sc-transition-medium)) visibility ease, var(--sc-input-transition, var(--sc-transition-medium)) opacity ease, var(--sc-input-transition, var(--sc-transition-medium)) transform ease}.price--collapsed{opacity:1;visibility:visible;transform:translateY(0)}.summary{position:relative;user-select:none;cursor:pointer}.summary .collapse-link__icon{transition:transform 0.25s ease-in-out}.summary .scratch-price{text-decoration:line-through;color:var(--sc-color-gray-500);font-size:var(--sc-font-size-small);margin-right:var(--sc-spacing-xx-small)}.summary--open .collapse-link__icon{transform:rotate(180deg)}::slotted(*){margin:4px 0 !important}::slotted(sc-divider){margin:16px 0 !important}sc-line-item~sc-line-item{margin-top:14px}.total-price{white-space:nowrap}"}}]);