PageSourceSearch

https://shop.ica.art/cdn/shopifycloud/checkout-web/assets/c1/d2e6a587.DdUzoAUU.js

js ica.art collected 2026-10-01 10:42:59 UTC 13,007 bytes, 1 lines download raw bytes

1import{f as e,h as a,u as n,i as r,g as i,A as l,T as s,k as t,G as o,a7 as d,o as c,q as m,S as u}from"./2c1ab0fe.D_oO1jU7.js";import{dM as h,dN as g,O as p,dO as v,dP as y,dQ as f,dR as b,bx as S,dS as w,cV as _,P as C,aT as x,b$ as N,dT as T,b0 as F,N as k}from"./4c290a1e.D9lE9kmU.js";import{eq as z,$ as I,Z as E,er as L,b1 as B,an as A,c as D,az as j,n as O,es as R,I as W,a3 as P,et as M,eu as H,ev as V,bz as Q,ew as U,ex as G,B as $,y as J,ey as K,e as Y,dc as q,dj as X,ez as Z,dW as ee,c7 as ae,eA as ne,eB as re,eC as ie,H as le,l as se,aA as te,df as oe,eD as de,eE as ce,b as me}from"./164ad2e3.DgUUtBtV.js";import{T as ue}from"./7b0c98ea.0CGJF8wQ.js";import{u as he,f as ge}from"./1ed8f5e3.Oin1LrS4.js";import{u as pe}from"./945a08d6.DUn1GrN-.js";import{u as ve}from"./d5d34b3b.HJgnljYP.js";import"./app.bDJ3v-8C.js";import"./65f3d4da.8ZfwXSRH.js";import"./60a453ce.BIyixFcg.js";import"./0a7dffce.BMM606kb.js";import"./bb728e1c.BObJOhlA.js";const ye={FloatingSummaryWrapper:"Uo0Cz","FloatingSummaryWrapper-enter":"vbGnb","FloatingSummaryWrapper-entering":"_30e7y","FloatingSummaryWrapper-exit":"_1LMtV","FloatingSummaryWrapper-exiting":"TEpNv","FloatingSummaryWrapper-exited":"_16LRF",FloatingSummary:"YrNyQ","FloatingSummaryWrapper-hidden":"Ngyh8","FloatingSummary-dark":"Y0h8K"};function fe({merchandise:l,paymentDue:s,onClick:t}){const o=h(),d=g(),c=z(),{i18n:m,checkout:u}=p(),f=u.configuration.layout.isOnePage.value,b=e((()=>s.value.amount>0&&v({comparisonPrice:o.value,payableTotal:s.value,suppressed:d.value,hasStoredValue:c.value}))),{colors:{schemes:S={}}}=I(),{orderSummary:{floatingSummary:{visibility:w}={}}}=E(),_="visible"===w&&f,{config:C,floatingElementHidden:x,ready:N}=L("floating_summary"),{offset:T}=he("floating_summary",{active:_}),F=N.value&&!x.value;a((()=>{C.value=_?{blockEndOffset:T.value+32,floatingElementBlockSize:0,floatingElementHiddenBelowTrigger:!0}:void 0}),[T.value,C,_]);const k=B(F,F?"fast":"none");if(!_||!N.value||"exited"===k)return null;const P=S?.scheme1?.base?.background,M=Boolean(P&&!y(P));return n("div",{className:i(ye.FloatingSummaryWrapper,ye[`FloatingSummaryWrapper-${k}`],ge.FloatingLayer),style:{"--floating-summary-offset":`${T.value}px`,"--floating-layer-view-transition-name":"vt-floating-summary"},children:n(A,{onClick:t,accessibilityVisibility:"hidden","data-event-name":"floating_summary",children:n(D,{className:i(ye.FloatingSummary,M&&ye["FloatingSummary-dark"]),alignItems:"center",direction:"inline",padding:"small-100",gap:"small-200",children:[n(j,{merchandise:l,size:"small-200",variant:l.length<=3?"inline":"fan",max:3}),n(D,{direction:"inline",alignItems:"center",gap:"small-200",children:[n(D,{gap:"small-400",alignItems:"end",children:[n(r,{when:b,children:()=>n(O,{size:"small",color:"subdued",type:"redundant",translate:!1,children:m.formatCurrency(o.value.amount,{currency:o.value.currencyCode,form:"short"})})}),n(R,{paymentDue:s,hideCurrencyCode:!0})]}),n(W,{type:"chevron-down",size:"small-200"})]})]})})})}function be(){const{embed:a,shop:n}=p(),r=n.hasFlagEnabled(f),i=b(),l=P();return e((()=>{const e=l.configurationSignal.value.orderSummary?.collapsedSavingsDisplay,n=i.value;return{showTotalSavings:"base"!==e&&!r&&!S(a?.embedder)&&n&&Boolean(0!==n.amount)}}))}function Se(){const{i18n:a}=p(),i=b(),l=be(),s=M(),t=e((()=>l.value.showTotalSavings?i.value:void 0)),o=e((()=>null!=s.value||null!=t.value));return n(r,{when:o,children:n(D,{alignItems:"end",gap:"small-500",children:[n(r,{when:s,children:e=>n(H,{bgnAmount:e})}),n(r,{when:t,children:e=>n("div",{className:"JH32S",children:n(D,{direction:"inline",alignItems:"center",gap:"small-400",children:[n(D,{direction:"inline",alignItems:"center",gap:"small-500",children:[n(W,{type:"savings",size:"small",color:"base"}),n(O,{color:"subdued",children:a.translate("order_summary.total_savings")})]}),n(O,{color:"subdued",translate:!1,children:a.formatCurrency(e.amount,{currency:e.currencyCode,form:"short"})})]})})})]})})}function we(){const{shop:a,i18n:i}=p(),l=a.hasFlagEnabled(w),s=V(),t=Q(),o=_(),d=C(),c=e((()=>{const e=d.paymentFlexibilityPaymentTermsTemplate.value;if(e?.dueDate){const a=s(e.dueDate,{month:"short"});return i.translate("order_summary.deferred_total_due_date_label",{date:a})}return"FULFILLMENT"===e?.type?i.translate("order_summary.payment_terms_totals.due_on_fulfillment"):i.translate("order_summary.total_due_later_label")}));return n(r,{when:()=>d.recurringTotals.value||o.value&&t.value,children:n(D,{gap:"small-300",children:[n(U,{cardStyle:!0}),n(r,{when:()=>t.value&&l,children:n(G,{variant:"card"})}),n(r,{when:()=>t.value&&!l?o.value:void 0,children:e=>n($,{background:"subdued",padding:"small-300",borderRadius:"small",children:n(J,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gridTemplateRows:"minmax(0, 1fr)",alignItems:"center",alignContent:"center",children:[n(O,{color:"subdued",children:c}),n(O,{color:"subdued",children:i.formatCurrency(e.amount,{currency:e.currencyCode,form:"short"})})]})})}),n(K,{variant:"card"})]})})}const _e="MTaKn",Ce="OhxUg",xe="_497ww",Ne="mobileOrderSummary",Te={base:"small-200","large-100":"small-100"};function Fe(){const y=Y(),{value:f}=C().merchandiseLines,{showTotalSavings:b}=be().value,w=Q(),{checkout:B,i18n:P,shop:{discountCodesEnabled:M,name:H},source:V,embed:U}=p(),{configuration:G}=B,K=B.proposal.facts.merchandiseLines??[],he=q(),ge=M&&he.value,ye=G.visibility.showReductions,Fe=S(U?.embedder),ke=Fe&&"beforeDetails"!==G.orderSummary?.placement,{reductions:{position:ze,disclosureVisibility:Ie},orderSummary:{isCollapsible:Ee,headerPosition:Le,defaultState:Be,chevronSize:Ae="base",collapsedSavingsDisplay:De,thumbnailStyle:je}={}}=E(),Oe="base"===je,Re="base"!==ze&&ye,We=X(),Pe="COMPACT"===G.orderSummary?.layoutStyle,Me=P.translate("order_summary.payment_terms_totals.due_today_next"),{amount:He,label:Ve}=Z(),Qe=P.translate("order_summary.pay_merchant_label",{merchant_name:H}),Ue=e((()=>w.value?Me:Ve.value)),Ge=G.orderSummary?.headerPosition??Le,$e=G.orderSummary?.defaultState??Be,Je=Ee??!0,Ke=_(),Ye=h(),qe=g(),Xe=z(),Ze=N(),ea=T(),aa=e((()=>"BOTTOM"===Ge&&!0===Ee&&(ea.value||Boolean(B.proposal.facts.taxesIncluded))&&!Ze.value&&!Xe.value&&Boolean(Ke.value))),na="base"===De,ra=na&&v({comparisonPrice:Ye.value,payableTotal:Ke.value,suppressed:qe.value,hasStoredValue:Xe.value}),{lineItems:{priority:ia="base"},moneyLines:{color:la}}=I(),sa=G.visibility.showAside,ta=!G.visibility.showOrderSummaryMerchandiseLines||"high"===ia,oa=ee("bottom",{hideMerchandiseLines:ta}),da=pe(oa),ca=ae(),ma=ne(),ua=b||ra,ha=e((()=>!da.value&&Je)),[ga,pa]=t(o((()=>da.value||"EXPANDED"===$e||"shopPayLogin"===y.value.currentDetour?.type))),[va,ya]=t(),{triggerNode:fa,floatingElementHidden:ba,ready:Sa,setTriggerNode:wa}=L("floating_summary"),_a=d(null),{ref:Ca,max:xa}=re("base");(function({open:e,setOpen:n,enabled:r=!0}){const i=l(new Set),{discountCodeWarningSignal:t}=x(),o=s((()=>{return(e=t.value||[])&&0!==e.length?e.map((e=>JSON.stringify({code:e.discountCode,errorCode:e.errorCode??null,message:e.message??e.messageHtml??"",tone:e.tone??"info"}))):[];var e}),[t.value]);a((()=>
1{if(!r)return;const a=o.some((e=>!i.current.has(e)));!e&&a&&n(!0),i.current=new Set(o)}),[r,e,o,n])})({open:ga,setOpen:pa,enabled:Re}),c((()=>{ca.value&&ma.value.hasViolations&&pa(!0)}));const[Na,Ta]=t(!1),[Fa,ka]=t(!1),za=m((()=>{ga&&Na&&(ka(!0),Ta(!1))}),[ga,Na]),Ia=P.translate("order_summary.title"),Ea=m((()=>pa((e=>!e))),[]),La=m((()=>{const e=fa.value;if(!e)return;const a=_a.value?.offsetHeight??0,n=window.scrollY+e.getBoundingClientRect().top-a;ya({duration:0}),pa(!0),requestAnimationFrame((()=>{window.scrollTo({top:n,behavior:"smooth"}),ya(void 0)}))}),[fa,_a]),{totalLineQuantities:Ba=0,totalLineQuantitiesFact:Aa=0}=ie(),Da=F(V)?K:f?.lines||[],ja=ve(),Oa=m((()=>{pa(!0),Ta(!0),ka(!1)}),[pa,Ta,ka]),Ra=l(He.peek()??Ke.peek()),Wa=e((()=>{if(w.value)return{amount:0,currencyCode:Ke.value?.currencyCode??"USD"};const e=He.value??Ke.value;return e&&(Ra.current=e),Ra.current??{amount:0,currencyCode:"USD"}}));if(!ja.value)return null;const Pa=P.translate("order_summary.number_items",{count:F(V)?Aa:Ba}),Ma=!ua||ga||na||Oe?"center":"start",Ha=function(e){return void 0===e?"default":e?"simplified":"flex"}(Ee),Va=!Oe||Da.length<=1,Qa={variant:Oe?"inline-discrete":"fan-legacy",size:Oe?"base":"small",merchandise:Da,useImageAltTexts:!1,sortByPrice:!Oe},Ua="default"===Ha&&!ga,Ga=n("div",{className:Ua?"jzkzG":void 0,children:n(J,{gridAutoFlow:"column",gridTemplateColumns:ga?"minmax(0, 1fr) minmax(auto, max-content) minmax(auto, max-content)":"minmax(0, 1fr) auto auto",gridTemplateRows:"minmax(0, 1fr)",gap:"small-200",alignItems:Ma,alignContent:Ma,children:[!ga&&n("span",{className:k({screenReaders:"only"}),children:Ia}),n(D,{direction:"inline",gap:"small-200",alignItems:"center",className:"GkiQ5",ref:Ca,children:[Da&&!ga&&n(j,{...Qa,...Oe&&{max:xa.value}}),!ga&&Va&&n(D,{gap:"small-400",children:[n("div",{className:Ce,children:n(O,{size:ke?"base":"large",type:"strong",children:Ue.value})}),n("div",{className:Ce,children:n(O,{color:"subdued",children:Pa})})]}),ga&&n(le,{level:ke?3:1,accessibilityRole:"presentation",children:Ia})]}),n(D,{direction:"inline",alignItems:ga?"center":"start",gap:"small-200",justifyContent:"end",children:n("div",{className:i(Ce,ga&&_e),children:n(D,{gap:"small-400",alignItems:"end",children:[ra&&n(O,{size:"base",color:"subdued",type:"redundant",translate:!1,children:P.formatCurrency(Ye.value.amount,{currency:Ye.value.currencyCode,form:"short"})}),n(R,{paymentDue:Wa,alignItems:"center",showCurrencyBadge:!0,size:Fe&&!ke?"large":void 0}),ga?void 0:n(Se,{})]})})}),n("div",{className:i(ua&&!ga&&!na&&"EeiAc"),children:n(W,{size:Te[Ae],type:ga?"chevron-up":"chevron-down",color:"strong"})})]})}),$a=n("div",{className:xe,children:n(J,{gridAutoFlow:"column",gridTemplateColumns:"minmax(0, 1fr) minmax(auto, max-content)",gridAutoColumns:"1fr",gridTemplateRows:"minmax(0, 1fr)",gap:"small-200",alignItems:"center",alignContent:"center",children:[n("div",{className:Ce,children:n(O,{color:la,children:Qe})}),n(D,{direction:"inline",gap:"large-100",alignItems:"center",children:[n(r,{when:()=>!da.value,children:n(W,{size:Te[Ae],type:ga?"chevron-up":"chevron-down",color:"strong"})}),n(R,{paymentDue:Wa,alignItems:"center",showCurrencyBadge:!1})]}),n("span",{className:k({screenReaders:"only"}),children:Ia})]})}),Ja=n(r,{when:aa,children:n("div",{className:xe,children:n(ce,{taxesIncluded:!0,variant:"card"})})}),Ka=n("div",{className:"HoRN2",children:[n(le,{level:ke?3:1,children:n(r,{when:()=>ga||da.value,fallback:Ue,children:Ia})}),n(r,{when:()=>!da.value,children:n(u,{children:[n("div",{className:"BKEy4"}),n("div",{className:ga?_e:void 0,children:n(R,{paymentDue:Wa})}),n(W,{size:Te[Ae],type:ga?"chevron-up":"chevron-down",color:"strong"})]})})]}),Ya=(()=>{switch(Ha){case"default":return n(r,{when:da,fallback:Ga,children:n("div",{className:Ce,children:n(le,{level:ke?3:1,children:Ia})})});case"simplified":return $a;case"flex":return Ka}})(),qa="BOTTOM"===Ge,Xa=n(A,{"data-event-name":ga?"order_summary_hide":"order_summary_show",expanded:ga,controlId:Ne,onClick:Ea,inlineSize:"100%",className:i("E5sxd",!ga&&Sa.value&&!ba.value&&"odSWN"),children:Ya}),Za="hidden"!==Ie&&ge&&Re&&!ga&&(!Pe||Fe)&&!Ee,en=n(D,{gap:"base",accessibilityRole:"section",accessibilityLabelledBy:"mobile-order-summary-heading",children:[n(le,{id:"mobile-order-summary-heading",visibility:"hidden",children:Ia}),Za?n(se,{tone:"monochrome",onClick:Oa,commandFor:Ne,size:"small","aria-expanded":!1,children:n(D,{direction:"inline",gap:"small-400",alignItems:"center",children:[n(W,{type:"discount",size:"small-100",tone:"monochrome"}),n(O,{children:P.translate("order_summary.discount_discovery.add_code")})]})}
1):null,n($,{children:["base"===ze&&ye&&n(te,{id:"inline-reductions",open:!ga,duration:"fast",children:n("div",{ref:_a,children:n($,{paddingBlockEnd:"large-400",children:n(oe,{monorailSection:"order_summary",headerLevel:We.value.payment?void 0:2})})})}),n("div",{ref:wa,children:n($,{display:sa?"@media (inline-size >= medium) none, auto":"auto",className:Ua?"QF5CJ":void 0,children:n(ue,{config:va,onTransitionEnd:za,children:[!qa&&Xa,ga?n("div",{id:Ne,children:n($,{paddingBlockStart:qa?void 0:"small-100",children:n(de,{skipWrappingSection:!0,hideAccessibilityTitle:!0,hideMerchandiseLines:ta,hideReductions:!ye,reductionsFieldAutoFocus:Na,reductionsFieldAutoScroll:Fa})})},"mobile-order-summary-open"):n("div",{id:Ne},"mobile-order-summary-closed"),qa&&ga&&Ja,qa&&Xa]})})})]}),ga?null:n(we,{})]}),an=n(D,{children:n($,{display:sa?"@media (inline-size >= medium) none, auto":"auto",children:[!qa&&Je&&Ya,!qa&&Je&&n(me,{blockSize:"small-100"}),n(de,{skipWrappingSection:!0,hideAccessibilityTitle:!0,hideMerchandiseLines:ta,hideReductions:!ye}),qa&&Je&&Ja,qa&&Je&&Ya]})});return n(u,{children:[n(fe,{merchandise:Da,paymentDue:Wa,onClick:La}),n(r,{when:ha,fallback:an,children:en})]})}export{Fe as MobileOrderSummary};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.