PageSourceSearch

https://www.grandhall.com.tw/cdn/shopifycloud/checkout-web/assets/c1/910cd6e2.D9laAOO_.js

js grandhall.com.tw collected 2026-10-09 18:27:49 UTC 5,220 bytes, 1 lines download raw bytes

1import{u as e,S as i}from"./2c1ab0fe.qpvfywqb.js";import{H as t,D as n,j as r,d as o,L as s,aq as a,bB as l,S as d,bC as c,b as m,G as u}from"./164ad2e3.DcJn775M.js";import{e as p,be as h,bf as v,bg as y,aw as f,az as b}from"./4b4bc88f.DkycdxSK.js";import{h as _,L as P}from"./17425706.DtdfKQJ3.js";import{u as g,s as T,p as C,c as x,a as S,S as D,B as M}from"./347b440c.xpK15B3S.js";import{u as E,m as L,i as j}from"./181d38d3.C21ZO0gV.js";import{r as A}from"./9ce08e25.dSvNrRyM.js";import{g as I,h as w}from"./792bb671.B3OvVnSg.js";import"./app.DH8n-1bp.js";function N({id:i}){const{i18n:n}=p();return h().value?null:e(t,{level:1,autoFocus:!0,id:i,children:n.translate("review.review_title")})}function k({isVaultedReview:t=!1}){const{i18n:s}=p();if(t&&!_("review.review_notice_html",s))return null;const a=e(n,{children:s.translate("review.review_notice_html",{terms_of_sale:e(P,{handle:"terms-of-sale"}),privacy_policy:e(P,{handle:"privacy-policy"}),terms_of_service:e(P,{handle:"terms-of-service"}),refund_policy:e(P,{handle:"refund-policy"}),contact_information:e(P,{handle:"contact-information"}),purchase_options_cancellation_policy:e(P,{handle:"purchase-options-cancellation-policy"}),subscription_policy:e(P,{handle:"subscription-policy"}),shipping_policy:e(P,{handle:"shipping-policy"}),legal_notice:e(P,{handle:"legal-notice"})})});return t?e(i,{children:[e(r,{color:"subdued",size:"small",children:a}),e(o,{blockSize:"@media (inline-size >= medium) large-200, small-300"})]}):a}function z({vatNumber:i,onAdd:t}){return i?e(B,{vatNumber:i}):e(O,{onAdd:t})}function B({vatNumber:i}){const{i18n:t}=p();return e(r,{color:"subdued",children:t.translate("taxes.vat_number.vaulted",{number:i})})}function O({onAdd:i}){const{i18n:t}=p();return e(s,{onClick:i,textDecoration:"none",children:t.translate("taxes.vat_number.add")})}function R({deliveryLines:e}){const{i18n:i,shop:t,checkout:{negotiator:n}}=p(),{asyncDeliveryPromiseExperienceEnabled:r}=t,{selectedMacro:o}=a(),{deliveryExpectationLines:s}=g(),d=v("deliveryExpectations"),c=l(),m=E(),{deliveryNext:u,remoteMerchandiseDetails:h}=n.current.fields,{deliveryLines:_}=n.parts,P=y(u.value),S=P?T((e??[]).filter(f),C(_.value)):[],D=P?S.flatMap(({line:e,method:i})=>"ONE_TIME_PURCHASE"===e.type&&i&&j({line:e,method:i})?i:[]):function(e){return e.flatMap(e=>{if("available"!==e.status||"ONE_TIME_PURCHASE"!==e.type)return[];const i=b(e);return i&&j({line:e,method:i})?i:[]})}(e??[]);if(D.length<2)return;const M=[];for(const{line:a,method:l}of S){if(!l)return;M.push({...l,amountCombinabilityToken:A({line:a,method:l,localShopId:t.id,marketDrivenShippingEnabled:t.marketDrivenShippingEnabled,remoteShopsConfigMap:t.remoteShopsConfigMap,remoteMerchandiseDetails:h.value})})}const N=P?x(M):o;if(!N)return;const{totalCost:k,totalCostAfterDiscounts:z}=N,B=I({selectedMethods:D,deliveryExpectationLines:s??[],deliveryPromiseText:o?.deliveryPromisePresentmentTitle?.short}),O=Boolean(r)&&w(D)&&d.value,R=L(D),q=function({deliveryPromiseLoading:e,shopPromiseSummary:i,formattedTimeInTransit:t,selectedMacroDeliveryPromiseText:n}){if(!e)return i?i.deliveryPromiseText:t||n}({deliveryPromiseLoading:O,shopPromiseSummary:B,formattedTimeInTransit:(R?c(R):void 0)??void 0,selectedMacroDeliveryPromiseText:o?.deliveryPromisePresentmentTitle?.long}),H=m.value.groups.length,U=function({i18n:e,deliveryLines:i,shipmentCount:t,deliveryMacrosOmitted:n}){return function(e){return e.some(({status:e,type:i})=>"available"===e&&"SUBSCRIPTION"===i)}(i)?e.translate("shipping.split_shipping_multiple_shipment_label"):t<=1&&!n?void 0:e.translate("shipping.split_shipping_multiple_shipment_quantity_label",{quantity:t})}({i18n:i,deliveryLines:e??[],shipmentCount:H>0?H:D.length,deliveryMacrosOmitted:P}),V=P?U:o?.totalTitle;return V?{totalTitle:V,totalCost:k,totalCostAfterDiscounts:z,deliveryPromiseText:q,...!P&&U&&{shipmentCountText:U},...B?.brandedPromise&&{deliveryPromiseBrandedPromise:B.brandedPromise},...O&&{deliveryPromiseLoading:O}}:void 0}function q({summary:i}){return e(D,{methodTitle:i.totalTitle,showInterpunct:!0,price:e(S,{cost:i.totalCost,costAfterDiscounts:i.totalCostAfterDiscounts,inlineDiscount:!0})})}function H({summary:i,secondaryContentColor:t}){return i.deliveryPromiseLoading||i.deliveryPromiseText||i.shipmentCountText?e(d,{direction:"@media (inline-size >= extraSmall) inline, block",columnGap:"small-400",alignItems:"baseline",children:[e(U,{summary:i,secondaryContentColor:t}),i.shipmentCountText?e(r,{color:t,children:i.shipmentCountText}):null]}):null}function U({summary:t,secondaryContentColor:n}){const o=t.shipmentCountText?e(m,{display:"@media (inline-size >= extraSmall) auto, none",children:e(r,{color:n,accessibilityVisibility:"hidden",children:c})}):null;return t.deliveryPromiseLoading?e(i,{children:[e(u,{inlineSize:"base"}),o]}):t.deliveryPromiseText?e(i,{children:[e(d,{direction:"inline",gap:"small-300",alignItems:"center",children:[e(r,{color:n,children:t.deliveryPromiseText}),t.deliveryPromiseBrandedPromise?e(M,{brandedPromise:t.deliveryPromiseBrandedPromise}):null]}),o]}):null}function V(){return e("span",{"aria-hidden":"true",className:"yh3r740",children:"·"})}
1export{B as D,V as M,N as R,q as S,z as V,H as a,k as b,R as u};

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.