index of
/
home
/
thefkyzp
/
hulmvisaadvisor.com
/
wp-content
/
plugins
/
surecart
/
dist
/
File: /home/thefkyzp/hulmvisaadvisor.com/wp-content/plugins/surecart/dist/9422.js
"use strict";(self.webpackChunk_surecart_surecart=self.webpackChunk_surecart_surecart||[]).push([[9422],{4688:function(e,t,n){n.d(t,{a:function(){return s},b:function(){return u},c:function(){return c},g:function(){return p},s:function(){return a}});var i=n(4942);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 o(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.Z)(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 s(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,s=e.animate(t,o(o({},n),{},{duration:(r=window.matchMedia("(prefers-reduced-motion: reduce)"),r.matches?0:n.duration)}));s&&(s.addEventListener("cancel",i,{once:!0}),s.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 o(o({},e),{},{height:"auto"===e.height?"".concat(t,"px"):e.height})}))}var l=new Map,d=new WeakMap;function u(e,t){l.set(e,function(e){return null!=e?e:{keyframes:[],options:{duration:0}}}(t))}function p(e,t){var n=d.get(e);return(null==n?void 0:n[t])?n[t]:l.get(t)||{keyframes:[],options:{duration:0}}}},6715: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,i=n.body;return i&&i.appendChild(t),t}n.d(t,{s:function(){return s}});var r,o="";function s(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," "),o===e&&(e+=" "),o=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())},9422:function(e,t,n){n.r(t),n.d(t,{sc_summary:function(){return u}});var i=n(5861),r=n(5671),o=n(3144),s=n(1284),a=n.n(s),c=n(8860),l=n(6715),d=n(4688),u=function(){function e(t){(0,r.Z)(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}var t;return(0,o.Z)(e,[{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 %1$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 %1$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:(t=(0,i.Z)(a().mark((function e(){var t,n,i,r,o,s;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.s)(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.s)(this.body);case 16:return this.body.style.overflow="hidden",r=(0,d.g)(this.el,"summary.hide"),o=r.keyframes,s=r.options,e.next=20,(0,d.a)(this.body,(0,d.c)(o,this.body.scrollHeight),s);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 t.apply(this,arguments)})},{key:"render",value:function(){var e=this;return(0,c.h)("div",{class:{summary:!0,"summary--open":!this.collapsed}},this.collapsible&&this.renderHeader(),(0,c.h)("div",{ref:function(t){return e.body=t},class:{summary__content:!0}},(0,c.h)("slot",null)))}},{key:"el",get:function(){return(0,c.a)(this)}}],[{key:"watchers",get:function(){return{collapsed:["handleOpenChange"]}}}]),e}();(0,d.b)("summary.show",{keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:250,easing:"ease"}}),(0,d.b)("summary.hide",{keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:250,easing:"ease"}}),u.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}"},4942:function(e,t,n){function i(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 i}})}}]);