PageSourceSearch

https://www.mannings.com.hk/19.0fd3d85a399e7c7a633f.js

js mannings.com.hk collected 2026-10-01 14:09:00 UTC 38,534 bytes, 174 lines download raw bytes

1/*! @version pwa-studio: 0.0.1, @magento/venia-ui: ~11.3.0, @magento/upward-security-headers: ~1.0.14, @magento/pwa-theme-venia: ~2.4.0, @magento/pwa-buildpack: ~11.4.3, @magento/peregrine: ~15.5.2, @magento/pagebuilder: ~9.2.1, @magento/eslint-config: ~1.5.0, @magento/babel-preset-peregrine: ~1.2.3, @apollo/client: ~3.5.0 */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{"+uOo":function(e,t,n){"use strict"
3var r=n("W8MJ"),a=n.n(r),i=n("lwsE"),o=n.n(i),c=n("a1gu"),s=n.n(c),u=n("Nsbk"),l=n.n(u),d=n("7W2i"),p=n.n(d),m=n("oShl"),f=n.n(m),h=n("lSNA"),g=n.n(h),y="Unable to place order:"
4function _callSuper(e,t,n){return t=l()(t),s()(e,function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return function _isNativeReflectConstruct(){return!!e}()}()?Reflect.construct(t,n||[],l()(e).constructor):t.apply(e,n))}var b=function removeGQLTag(e){return e.replace(/GraphQL error:/,"")},v=function(e){function CheckoutError(e){var t
5o()(this,CheckoutError)
6for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a]
7return t=_callSuper(this,CheckoutError,[r]),g()(t,"hasPaymentExpired",function(){return t.error.graphQLErrors.some(function(e){return e.message.includes(y)})}),t.name="CheckoutError",t.message=b(e.message),t.error=e,t}return p()(CheckoutError,e),a()(CheckoutError)}(f()(Error))
8t.a=v},"2eki":function(e,t,n){"use strict"
9var r=n("JPst"),a=n.n(r)()(function(e){return e[1]})
10a.push([e.i,".productOptions-options-GDt {\n    grid-area: options;\n}\n\n.productOptions-optionLabel-Pyh {\n}\n\n.productOptions-optionValue-guf {\n}\n",""]),a.locals={options:"productOptions-options-GDt leading-normal max-h-[54px] mt-1 overflow-y-auto text-sm",optionLabel:"productOptions-optionLabel-Pyh auto-cols-max grid grid-flow-col",optionValue:"productOptions-optionValue-guf ml-1"},t.a=a},"B+Bh":function(e,t,n){"use strict"
11n.d(t,"a",function(){return M})
12var r,a,c,s,u,l,d=n("yXPU"),p=n.n(d),m=n("lSNA"),h=n.n(m),g=n("QILm"),y=n.n(g),b=n("J4zp"),v=n.n(b),S=n("q1tI"),O=n("8UhI"),_=n("6OIj"),j=n("+TN3"),C=n("pZLH"),w=n("y1Xp"),P=n("LWUl"),T=n("VkAN"),I=n.n(T),D=n("UYTu"),k=n("9etB"),E=n("N/5B"),N=Object(D.a)(r||(r=I()(["\n    query getIsBillingAddressSame($cartId: String!) {\n        cart(cart_id: $cartId) @client {\n            id\n            isBillingAddressSame\n        }\n    }\n"]))),A=Object(D.a)(a||(a=I()(["\n    query getPaymentNonce($cartId: String!) {\n        cart(cart_id: $cartId) @client {\n            id\n            paymentNonce\n        }\n    }\n"]))),F={getBillingAddressQuery:Object(D.a)(c||(c=I()(["\n    query getBillingAddress($cartId: String!) {\n        cart(cart_id: $cartId) {\n            id\n            billingAddress: billing_address {\n                firstName: firstname\n                lastName: lastname\n                country {\n                    code\n                }\n                street\n                city\n                region {\n                    code\n                    label\n                    region_id\n                }\n                postcode\n                phoneNumber: telephone\n            }\n        }\n    }\n"]))),getIsBillingAddressSameQuery:N,getPaymentNonceQuery:A,getShippingAddressQuery:Object(D.a)(s||(s=I()(["\n    query getSelectedShippingAddress($cartId: String!) {\n        cart(cart_id: $cartId) {\n            id\n            shippingAddresses: shipping_addresses {\n                firstName: firstname\n                lastName: lastname\n                country {\n                    code\n                }\n                street\n                city\n                region {\n                    code\n                    label\n                    region_id\n                }\n                postcode\n                phoneNumber: telephone\n            }\n        }\n    }\n"]))),setBillingAddressMutation:Object(D.a)(u||(u=I()(["\n    mutation setBillingAddress(\n        $cartId: String!\n        $firstName: String!\n        $lastName: String!\n        $street1: String!\n        $street2: String\n        $city: String!\n        $region: String!\n        $postcode: String!\n        $country: String!\n        $phoneNumber: String!\n    ) {\n        setBillingAddressOnCart(\n            input: {\n                cart_id: $cartId\n                billing_address: {\n                    address: {\n                        firstname: $firstName\n                        lastname: $lastName\n                        street: [$street1, $street2]\n                        city: $city\n                        region: $region\n                        postcode: $postcode\n                        country_code: $country\n                        telephone: $phoneNumber\n                        save_in_address_book: fal
12se\n                    }\n                }\n            }\n        ) {\n            cart {\n                id\n                billing_address {\n                    firstname\n                    lastname\n                    country {\n                        code\n                    }\n                    street\n                    city\n                    region {\n                        code\n                        label\n                        region_id\n                    }\n                    postcode\n                    telephone\n                }\n                ...PriceSummaryFragment\n                ...AvailablePaymentMethodsFragment\n            }\n        }\n    }\n    ","\n    ","\n"])),k.a,E.a),setCreditCardDetailsOnCartMutation:Object(D.a)(l||(l=I()(['\n    mutation setSelectedPaymentMethod(\n        $cartId: String!\n        $paymentNonce: String!\n    ) {\n        setPaymentMethodOnCart(\n            input: {\n                cart_id: $cartId\n                payment_method: {\n                    code: "braintree"\n                    braintree: {\n                        payment_method_nonce: $paymentNonce\n                        is_active_payment_token_enabler: false\n                    }\n                }\n            }\n        ) {\n            cart {\n                id\n                selected_payment_method {\n                    code\n                    title\n                }\n            }\n        }\n    }\n'])))},L=n("MsnC"),G=["__typename"]
13function _regenerator(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag"
14function i(n,r,a,i){var c=r&&r.prototype instanceof Generator?r:Generator,s=Object.create(c.prototype)
15return _regeneratorDefine2(s,"_invoke",function(n,r,a){var i,c,s,u=0,l=a||[],p=!1,m={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,n){return i=t,c=0,s=e,m.n=n,o}}
16function d(n,r){for(c=n,s=r,t=0;!p&&u&&!a&&t<l.length;t++){var a,i=l[t],d=m.p,f=i[2]
17n>3?(a=f===r)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((a=n<2&&d<i[1])?(c=0,m.v=r,m.n=i[1]):d<f&&(a=n<3||i[0]>r||r>f)&&(i[4]=n,i[5]=r,m.n=f,c=0))}if(a||n>1)return o
18throw p=!0,r}return function(a,l,f){if(u>1)throw TypeError("Generator is already running")
19for(p&&1===l&&d(l,f),c=l,s=f;(t=c<2?e:s)||!p;){i||(c?c<3?(c>1&&(m.n=-1),d(c,s)):m.n=s:m.v=s)
20try{if(u=2,i){if(c||(a="next"),t=i[a]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object")
21if(!t.done)return t
22s=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+a+"' method"),c=1)
23i=e}else if((t=(p=m.n<0)?s:n.call(r,m))!==o)break}catch(t){i=e,c=1,s=t}finally{u=1}}return{value:t,done:p}}}(n,a,i),!0),s}var o={}
24function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf
25var c=[][r]?t(t([][r]())):(_regeneratorDefine2(t={},r,function(){return this}),t),s=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c)
26function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,a,"GeneratorFunction")),e.prototype=Object.create(s),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(s,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,a,"GeneratorFunction"),_regeneratorDefine2(s),_regeneratorDefine2(s,a,"Generator"),_regeneratorDefine2(s,r,function(){return this}),_regeneratorDefine2(s,"toString",function(){return"[object Generator]"}),(_regenerator=function _regenerator(){return{w:i,m:f}})()}function _regeneratorDefine2(e,t,n,r){var a=Object.defineProperty
27try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function _regeneratorDefine(e,t,n,r){function o(t,n){_regeneratorDefine2(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))})(e,t,n,r)}function ownKeys(e,t){var n=Object.keys(e)
28if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
29t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
30t%2?ownKeys(Object(n),!0).forEach(function(t){h()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var R=function getRegion(e){return e.region_id||e.label||e.code},x=function mapAddressData(e){if(e){var t=e.firstName,n=e.lastName,r=e.city,a=e.postcode,i=e.phoneNumber,o=e.street,c=e.country,s=e.region
31return{firstName:t,lastName:n,city:r,postcode:a,phoneNumber:i,street1:o[0],street2:o[1]||"",country:c.code,region:R(s)}}return{}},M=function useCreditCard(e){var t=e.onSuccess,n=e.onReady,r=e.onError,a=e.shouldSubmit,i=e.resetShouldSubmit,o=Object(w.a)(F,e.operations),c=o.getBillingAddressQuery,s=o.getIsBillingAddressSameQuery,u=o.getPaymentNonceQuery,l=o.getShippingAddressQuery,d=o.setBillingAddressMutation,m=o.setCreditCardDetailsOnCartMutation,f=Object(L.a)({currentForm:"BRAINTREE",formAction:"braintree"}),h=f.recaptchaLoading,g=f.generateReCaptchaData,b=f.recaptchaWidgetProps,T=Object(S.useState)(!0),I=v()(T,2),D=I[0],k=I[1],E=Object(S.useState)(!1),N=v()(E,2),A=N[0],M=N[1],q=Object(S.useState)(!1),B=v()(q,2),H=B[0],$=B[1],U=Object(S.useState)(0),Q=v()(U,2),V=Q[0],W=Q[1],J=Object(_.a)(),X=Object(O.l)(),z=Object(O.k)().validate,Z=Object(P.b)(),K=v()(Z,1)[0].cartId,Y=D||h||V>=1&&V<=3,ee=Object(j.a)(c,{skip:!K,variables:{cartId:K}}).data,te=Object(j.a)(l,{skip:!K,variables:{cartId:K}}).data,ne=Object(j.a)(s,{skip:!K,variables:{cartId:K}}).data,re=Object(C.a)(d),ae=v()(re,2),ie=ae[0],oe=ae[1],ce=oe.error,se=oe.called,ue=oe.loading,le=Object(C.a)(m),de=v()(le,2),pe=de[0],me=de[1],fe=me.error,he=me.called,ge=me.loading,ye=te?te.cart.shippingAddresses[0].country.code:"HK",be=X.values.isBillingAddressSame,ve=Object(S.useMemo)(function(){var e=!ne||ne.cart.isBillingAddressSame,t={}
32if(ee&&!e&&ee.cart.billingAddress){var n=ee.cart.billingAddress,r=(n.__typename,y()(n,G))
33t=x(r)}return _objectSpread({isBillingAddressSame:e},t)},[ne,ee]),Se=Object(S.useCallback)(function(){J.writeQuery({query:s,data:{cart:{__typename:"Cart",id:K,isBillingAddressSame:be}}})},[J,K,s,be]),Oe=Object(S.useCallback)(function(){var e=te?x(te.cart.shippingAddresses[0]):{}
34e.region=null==e.region?"":e.region,ie({variables:_objectSpread(_objectSpread({cartId:K},e),{},{sameAsShipping:!0})})},[ie,te,K]),_e=Object(S.useCallback)(function(){var e=X.values,t=e.firstName,n=e.lastName,r=e.country,a=e.street1,i=e.street2,o=e.city,c=e.region,s=e.postcode,u=e.phoneNumber
35ie({variables:{cartId:K,firstName:t,lastName:n,country:r,street1:a,street2:i||"",city:o,region:R(c),postcode:s,phoneNumber:u,sameAsShipping:!1}})},[X.values,ie,K]),je=Object(S.useCallback)(function(e){var t=e.details,n=e.description,r=e.type
36J.writeQuery({query:u,data:{cart:{__typename:"Cart",id:K,paymentNonce:{details:t,description:n,type:r}}}})},[K,J,u]),Ce=Object(S.useCallback)(function(){var e=p()(_regenerator().m(function _callee(e){var t,n
37return _regenerator().w(function(r){for(;;)switch(r.p=r.n){case 0:return r.p=0,t=e.nonce,r.n=1,g()
38case 1:return n=r.v,r.n=2,pe(_objectSpread({variables:{cartId:K,paymentMethod:"braintree",paymentNonce:t}},n))
39case 2:r.n=4
40break
41case 3:r.p=3,r.v
42case 4:return r.a(2)}},_callee,null,[[0,3]])}))
43return function(t){return e.apply(this,arguments)}}(),[pe,K,g]),we=Object(S.useCallback)(function(e){je(e),Ce(e),W(3)},[je,Ce]),Pe=Object(S.useCallback)(function(e){W(0),M(!1),i(),r&&r(e)},[r,i]),Te=Object(S.useCallback)(function(){k(!1),W(0),n&&n()},[n]),Ie=Object(S.useCallback)(function(){$(!1)},[])
44return Object(S.useEffect)(function(){try{if(a){if(z(),Object.keys(X.errors).length)throw new Error("Errors in the billing address form")
45W(1),be?Oe():_e(),Se()}}catch(e){0,W(0),i(),M(!1)}},[a,be,Oe,_e,Se,i,z,X.errors]),Object(S.useEffect)(function(){try{var e=se&&!ue
46if(e&&!ce&&(W(2),M(!0)),e&&ce)throw new Error("Billing address mutation failed")}catch(e){0,W(0),i(),M(!1)}},[ce,se,ue,i]),Object(S.useEffect)(function(){try{var e=he&&!ge
47if(e&&!fe&&(t&&t(),i(),W(4)),e&&fe)throw new Error("Credit card nonce save mutation failed.")}catch(e){0,W(0),i(),M(!1),$(!0)}},[he,ge,t,M,i,fe]),{errors:Object(S.useMemo)(function(){return new Map([["setBillingAddressMutation",ce],["setCreditCardDetail
47sOnCartMutation",fe]])},[ce,fe]),onPaymentError:Pe,onPaymentSuccess:we,onPaymentReady:Te,isBillingAddressSame:be,isLoading:Y,shouldRequestPaymentNonce:A,stepNumber:V,initialValues:ve,shippingAddressCountry:ye,shouldTeardownDropin:H,resetShouldTeardownDropin:Ie,recaptchaWidgetProps:b}}},HaDU:function(e,t,n){"use strict"
48var r=n("17x9"),a=n("q1tI"),i=n.n(a),o=n("LboF"),c=n.n(o),s=n("c4bd"),u={injectType:"singletonStyleTag",insert:"head",singleton:!0},l=(c()(s.a,u),s.a.locals||{}),d=Object(a.forwardRef)(function(e,t){var n=Object(a.useRef)()
49return Object(a.useImperativeHandle)(t,function(){return{scrollIntoView:function scrollIntoView(){var e;(e=n.current).scrollIntoView.apply(e,arguments)}}}),i.a.createElement(a.Fragment,null,i.a.createElement("div",{ref:n,className:l.anchor}),e.children)})
50t.a=d
51d.propTypes={classes:Object(r.shape)({anchor:r.string})}},Hqt8:function(e,t,n){"use strict"
52var r=n("q1tI"),a=n.n(r),i=n("17x9"),o=n("y1Xp"),c=n("LboF"),s=n.n(c),u=n("b1DY"),l={injectType:"singletonStyleTag",insert:"head",singleton:!0},d=(s()(u.a,l),u.a.locals||{}),p=function GoogleReCaptcha(e){var t=e.containerElement,n=void 0===t?function(){}:t,r=e.shouldRender,i=void 0!==r&&r,c=Object(o.a)(d,e.classes)
53return i?a.a.createElement("div",{ref:n,className:c.root}):null}
54p.propTypes={classes:Object(i.shape)({root:i.string}),containerElement:i.func.isRequired,shouldRender:i.bool.isRequired}
55t.a=p},Im5c:function(e,t,n){"use strict"
56var r=n("JPst"),a=n.n(r)()(function(e){return e[1]})
57a.push([e.i,".priceSummary-root-Rrd {\n}\n\n.priceSummary-errorText-r0t {\n}\n\n.priceSummary-lineItems-k-O {\n}\n\n.priceSummary-lineItemLabel-lee {\n}\n\n.priceSummary-price-c9w {\n}\n\n.priceSummary-totalLabel-cuy {\n}\n\n.priceSummary-totalPrice-DNe {\n}\n\n.priceSummary-priceUpdating-e8- {\n}\n\n.priceSummary-checkoutButton_container-oNX {\n    min-height: 5.5rem;\n}\n",""]),a.locals={root:"priceSummary-root-Rrd",errorText:"priceSummary-errorText-r0t leading-normal text-error",lineItems:"priceSummary-lineItems-k-O gap-3 grid grid-cols-autoLast leading-normal",lineItemLabel:"priceSummary-lineItemLabel-lee justify-self-start my-2",price:"priceSummary-price-c9w justify-self-end self-center",totalLabel:"priceSummary-totalLabel-cuy priceSummary-lineItemLabel-lee justify-self-start my-2 font-semibold",totalPrice:"priceSummary-totalPrice-DNe priceSummary-price-c9w justify-self-end self-center font-semibold",priceUpdating:"priceSummary-priceUpdating-e8- priceSummary-price-c9w justify-self-end self-center opacity-0",checkoutButton_container:"priceSummary-checkoutButton_container-oNX items-center inline-flex justify-center mt-xs w-full"},t.a=a},MQRh:function(e,t,n){"use strict"
58var r=n("2C4B")
59t.a={braintree:r.a}},MsnC:function(e,t,n){"use strict"
60n.d(t,"a",function(){return O})
61var r,a=n("lSNA"),c=n.n(a),s=n("yXPU"),u=n.n(s),l=n("J4zp"),d=n.n(l),p=n("q1tI"),m=n("+TN3"),h=n("hibG"),g=n("y1Xp"),y=n("VkAN"),b=n.n(y),v=n("UYTu"),S={getReCaptchaV3ConfigQuery:Object(v.a)(r||(r=b()(["\n    query GetReCaptchaV3Config {\n        recaptchaV3Config {\n            website_key\n            badge_position\n            language_code\n            forms\n        }\n    }\n"])))}
62function _regenerator(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag"
63function i(n,r,a,i){var c=r&&r.prototype instanceof Generator?r:Generator,s=Object.create(c.prototype)
64return _regeneratorDefine2(s,"_invoke",function(n,r,a){var i,c,s,u=0,l=a||[],p=!1,m={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,n){return i=t,c=0,s=e,m.n=n,o}}
65function d(n,r){for(c=n,s=r,t=0;!p&&u&&!a&&t<l.length;t++){var a,i=l[t],d=m.p,f=i[2]
66n>3?(a=f===r)&&(s=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((a=n<2&&d<i[1])?(c=0,m.v=r,m.n=i[1]):d<f&&(a=n<3||i[0]>r||r>f)&&(i[4]=n,i[5]=r,m.n=f,c=0))}if(a||n>1)return o
67throw p=!0,r}return function(a,l,f){if(u>1)throw TypeError("Generator is already running")
68for(p&&1===l&&d(l,f),c=l,s=f;(t=c<2?e:s)||!p;){i||(c?c<3?(c>1&&(m.n=-1),d(c,s)):m.n=s:m.v=s)
69try{if(u=2,i){if(c||(a="next"),t=i[a]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object")
70if(!t.done)return t
71s=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(s=TypeError("The iterator does not provide a '"+a+"' method"),c=1)
72i=e}else if((t=(p=m.n<0)?s:n.call(r,m))!==o)break}catch(t){i=e,c=1,s=t}finally{u=1}}return{value:t,done:p}}}(n,a,i),!0),s}var o={}
73function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf
74var c=[][r]?t(t([][r]())):(_regeneratorDefine2(t={},r,function(){return this}),t),s=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c)
75function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e,a,"GeneratorFunction")),e.prototype=Object.create(s),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(s,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,a,"GeneratorFunction"),_regeneratorDefine2(s),_regeneratorDefine2(s,a,"Generator"),_regeneratorDefine2(s,r,function(){return this}),_regeneratorDefine2(s,"toString",function(){return"[object Generator]"}),(_regenerator=function _regenerator(){return{w:i,m:f}})()}function _regeneratorDefine2(e,t,n,r){var a=Object.defineProperty
76try{a({},"",{})}catch(e){a=0}(_regeneratorDefine2=function _regeneratorDefine(e,t,n,r){function o(t,n){_regeneratorDefine2(e,t,function(e){return this._invoke(t,n,e)})}t?a?a(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(o("next",0),o("throw",1),o("return",2))})(e,t,n,r)}var O=function useGoogleReCaptcha(e){var t,n,r,a,i=Object(g.a)(S,e.operations),o=e.currentForm,s=e.formAction,l=Object(m.a)(i.getReCaptchaV3ConfigQuery,{fetchPolicy:"cache-and-network"}),f=l.data,y=l.error,b=l.loading
77globalThis.recaptchaCallbacks||(globalThis.recaptchaCallbacks={})
78var v=Object(p.useState)(globalThis.hasOwnProperty("grecaptcha")),O=d()(v,2),_=O[0],j=O[1],C=Object(p.useState)(!1),w=d()(C,2),P=w[0],T=w[1],I=Object(p.useState)(null),D=d()(I,2),k=D[0],E=D[1],N=Object(p.useState)(null),A=d()(N,2),F=A[0],L=A[1],G=Object(p.useCallback)(function(e){null!==e&&L(e)}
78,[]),R=null!=f&&null!==(t=f.recaptchaV3Config)&&void 0!==t&&t.badge_position&&f.recaptchaV3Config.badge_position.length>0?f.recaptchaV3Config.badge_position:"bottomright",x=null==f?void 0:null===(n=f.recaptchaV3Config)||void 0===n?void 0:n.website_key,M=null==f?void 0:null===(r=f.recaptchaV3Config)||void 0===r?void 0:r.language_code,q=(null==f?void 0:null===(a=f.recaptchaV3Config)||void 0===a?void 0:a.forms)||[],B=!(y instanceof Error)&&x&&x.length>0&&q.includes(o),H="inline"===R,$=new URL("https://www.google.com/recaptcha/api.js")
79$.searchParams.append("badge",R),$.searchParams.append("render",H?"explicit":x),$.searchParams.append("onload","onloadRecaptchaCallback"),M&&M.length>0&&$.searchParams.append("hl",M)
80var U=Object(h.a)(!_&&B?$:null),Q=b||B&&!_&&"ready"!==U
81return Object(p.useEffect)(function(){if(null!==F&&H&&_&&null===k)if("widgetId"in F.dataset)E(F.dataset.widgetId)
82else{var e=globalThis.grecaptcha.render(F,{sitekey:x,size:"invisible"})
83E(e),F.dataset.widgetId=e}},[_,H,x,k,F]),!globalThis.recaptchaCallbacks[s]&&B&&(globalThis.recaptchaCallbacks[s]=function(){if(!H){var e=document.getElementsByClassName("grecaptcha-badge")
84e&&e.length>0&&(e[0].style.zIndex=999)}j(!0)}),globalThis.onloadRecaptchaCallback=Object(p.useCallback)(function(){for(var e in globalThis.recaptchaCallbacks)globalThis.recaptchaCallbacks[e]()
85globalThis.recaptchaCallbacks={}},[]),{recaptchaLoading:P||Q,generateReCaptchaData:Object(p.useCallback)(u()(_regenerator().m(function _callee(){var e,t
86return _regenerator().w(function(n){for(;;)switch(n.p=n.n){case 0:if(!_){n.n=4
87break}return n.p=1,T(!0),n.n=2,globalThis.grecaptcha.execute(H?k:x,{action:s})
88case 2:return e=n.v,t={context:{headers:c()({},"X-ReCaptcha",e)}},T(!1),n.a(2,t)
89case 3:n.p=3,n.v,T(!1)
90case 4:return n.a(2,{})}},_callee,null,[[1,3]])})),[_,s,H,x,k]),recaptchaWidgetProps:{containerElement:G,shouldRender:!!(B&&H&&_)}}}},OHSb:function(e,t,n){"use strict"
91var r=n("q1tI"),a=n.n(r),i=n("kriW"),o=n("y1Xp"),c=n("+vrd")
92t.a=function(e){var t,n=Object(o.a)({},e.classes),s=(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.printed_card)||{}
93return s&&s.value?a.a.createElement(r.Fragment,null,a.a.createElement("span",{className:n.lineItemLabel},a.a.createElement(i.a,{id:"giftOptionsSummary.lineItemLabel",defaultMessage:"Printed Card"})),a.a.createElement("span",{className:n.price},a.a.createElement(c.a,{value:s.value,currencyCode:s.currency}))):null}},XfiJ:function(e,t,n){"use strict"
94var r=n("pVnL"),a=n.n(r),i=n("lSNA"),o=n.n(i),c=n("QILm"),s=n.n(c),u=n("q1tI"),l=n.n(u),d=n("17x9"),p=n("dDsW"),m=n("8UhI"),f=n("c3RJ"),h=n("y1Xp"),g=n("z8z7"),y=n("ZLnw"),b=n("LboF"),v=n.n(b),S=n("rheR"),O={injectType:"singletonStyleTag",insert:"head",singleton:!0},_=(v()(S.a,O),S.a.locals||{}),j=["classes","fieldInput","label"]
95function ownKeys(e,t){var n=Object.keys(e)
96if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e)
97t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var C=function Postcode(e){var t=e.classes,n=e.fieldInput,r=e.label,i=s()(e,j),c=Object(h.a)(_,t),d=function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{}
98t%2?ownKeys(Object(n),!0).forEach(function(t){o()(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({classes:c},i),b=Object(p.a)().formatMessage,v=r||b({id:"postcode.label",defaultMessage:"ZIP / Postal Code"})
99return function usePostcode(e){var t=e.countryCodeField,n=void 0===t?"country":t,r=e.fieldInput,a=void 0===r?"postcode":r,i=Object(u.useRef)(!1),o=Object(f.a)(n).value,c=Object(m.i)(a)
100Object(u.useEffect)(function(){o&&(i.current?c.reset():i.current=!0)},[o,c])}({fieldInput:n}),l.a.createElement(g.a,{id:c.root,label:v,classes:{root:c.root}},l.a.createElement(y.a,a()({},d,{field:n,id:c.root})))}
101t.a=C
102C.defaultProps={fieldInput:"postcode"},C.propTypes={classes:Object(d.shape)({root:d.string}
102),fieldInput:d.string,label:d.string}},Z9D4:function(e,t,n){"use strict"
103var r=n("q1tI"),a=n.n(r),i=n("dDsW"),o=n("+vrd"),c=n("y1Xp")
104t.a=function TaxSummary(e){var t=Object(c.a)({},e.classes),n=e.data,r=e.isCheckout,s=Object(i.a)().formatMessage
105if(!n.length)return null
106var u=s(r?{id:"taxSummary.tax",defaultMessage:"Tax"}:{id:"taxSummary.estimatedTax",defaultMessage:"Estimated Tax"}),l=function getEstimatedTax(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
107return{currency:e[0].amount.currency,value:e.reduce(function(e,t){return e+t.amount.value},0)}}(e.data)
108return a.a.createElement(a.a.Fragment,null,a.a.createElement("span",{className:t.lineItemLabel},u),a.a.createElement("span",{className:t.price},a.a.createElement(o.a,{value:l.value,currencyCode:l.currency})))}},b1DY:function(e,t,n){"use strict"
109var r=n("JPst"),a=n.n(r)()(function(e){return e[1]})
110a.push([e.i,".googleReCaptcha-root-E8b {\n}\n",""]),a.locals={root:"googleReCaptcha-root-E8b mt-4"},t.a=a},c4bd:function(e,t,n){"use strict"
111var r=n("JPst"),a=n.n(r)()(function(e){return e[1]})
112a.push([e.i,".scrollAnchor-anchor-yLQ {\n    top: calc(\n        var(--venia-global-header-minHeight) * -1 - 5px\n    ); /* TODO @TW: review */\n}\n",""]),a.locals={anchor:"scrollAnchor-anchor-yLQ absolute"},t.a=a},cuY2:function(e,t,n){"use strict"
113Object.defineProperty(t,"__esModule",{value:!0})
114var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
115for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n]
116r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(e,t,n){return t&&defineProperties(e.prototype,t),n&&defineProperties(e,n),e}}(),o=_interopRequireDefault(n("q1tI")),c=_interopRequireDefault(n("zqAg")),s=_interopRequireDefault(n("TSYQ"))
117function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},l=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"]
118function cancelAnimationFrames(e){e.forEach(function(e){return cancelAnimationFrame(e)})}function isNumber(e){return!isNaN(parseFloat(e))&&isFinite(e)}function isPercentage(e){return"string"==typeof e&&e.search("%")===e.length-1&&isNumber(e.substr(0,e.length-1))}function runCallback(e,t){e&&"function"==typeof e&&e(t)}var d=function(e){function AnimateHeight(e){!function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,AnimateHeight)
119var t=function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
120return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(AnimateHeight.__proto__||Object.getPrototypeOf(AnimateHeight)).call(this,e))
121t.animationFrameIDs=[]
122var n="auto",r="visible"
123isNumber(e.height)?(n=e.height<0||"0"===e.height?0:e.height,r="hidden"):isPercentage(e.height)&&(n="0%"===e.height?0:e.height,r="hidden"),t.animationStateClasses=a({},u,e.animationStateClasses)
124var i=t.getStaticStateClasses(n)
125return"undefined"!=typeof window&&window.matchMedia&&(t.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion)").matches),t.state={animationStateClasses:i,height:n,overflow:r,shouldUseTransitions:!1},t}return function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
126e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}
126(AnimateHeight,o.default.Component),i(AnimateHeight,[{key:"componentDidMount",value:function componentDidMount(){var e=this.state.height
127this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function componentDidUpdate(e,t){var n=this,r=this.props,a=r.height,i=r.onAnimationEnd,o=r.onAnimationStart,c=this.getTimings(),u=c.duration,l=c.delay
128if(this.contentElement&&a!==e.height){var d
129this.showContent(t.height),this.contentElement.style.overflow="hidden"
130var p=this.contentElement.offsetHeight
131this.contentElement.style.overflow=""
132var m=u+l,f=null,h={height:null,overflow:"hidden"},g="auto"===t.height
133isNumber(a)?(f=a<0||"0"===a?0:a,h.height=f):isPercentage(a)?(f="0%"===a?0:a,h.height=f):(f=p,h.height="auto",h.overflow=null),g&&(h.height=f,f=p)
134var y=(0,s.default)((_defineProperty(d={},this.animationStateClasses.animating,!0),_defineProperty(d,this.animationStateClasses.animatingUp,"auto"===e.height||a<e.height),_defineProperty(d,this.animationStateClasses.animatingDown,"auto"===a||a>e.height),_defineProperty(d,this.animationStateClasses.animatingToHeightZero,0===h.height),_defineProperty(d,this.animationStateClasses.animatingToHeightAuto,"auto"===h.height),_defineProperty(d,this.animationStateClasses.animatingToHeightSpecific,h.height>0),d)),b=this.getStaticStateClasses(h.height)
135this.setState({animationStateClasses:y,height:f,overflow:"hidden",shouldUseTransitions:!g}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),g?(h.shouldUseTransitions=!0,cancelAnimationFrames(this.animationFrameIDs),this.animationFrameIDs=function startAnimationHelper(e){var t=[]
136return t[0]=requestAnimationFrame(function(){t[1]=requestAnimationFrame(function(){e()})}),t}(function(){n.setState(h),runCallback(o,{newHeight:h.height})}),this.animationClassesTimeoutID=setTimeout(function(){n.setState({animationStateClasses:b,shouldUseTransitions:!1}),n.hideContent(h.height),runCallback(i,{newHeight:h.height})},m)):(runCallback(o,{newHeight:f}),this.timeoutID=setTimeout(function(){h.animationStateClasses=b,h.shouldUseTransitions=!1,n.setState(h),"auto"!==a&&n.hideContent(f),runCallback(i,{newHeight:f})},m))}}},{key:"componentWillUnmount",value:function componentWillUnmount(){cancelAnimationFrames(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null}},{key:"getTimings",value:function getTimings(){if(this.prefersReducedMotion)return{delay:0,duration:0}
137var e=this.props
138return{delay:e.delay,duration:e.duration}}},{key:"showContent",value:function showContent(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function hideContent(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function getStaticStateClasses(e){var t
139return(0,s.default)((_defineProperty(t={},this.animationStateClasses.static,!0),_defineProperty(t,this.animationStateClasses.staticHeightZero,0===e),_defineProperty(t,this.animationStateClasses.staticHeightSpecific,e>0),_defineProperty(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function render(){var e,t=this,n=this.props,r=n.animateOpacity,i=n.applyInlineTransitions,c=n.children,u=n.className,d=n.contentClassName,p=n.easing,m=n.id,f=n.style,h=this.state,g=h.height,y=h.overflow,b=h.animationStateClasses,v=h.shouldUseTransitions,S=this.getTimings(),O=S.duration,_=S.delay,j=a({},f,{height:g,overflow:y||f.overflow})
140v&&i&&(j.transition="height "+O+"ms "+p+" "+_+"ms",f.transition&&(j.transition=f.transition+", "+j.transition),j.WebkitTransition=j.transition)
141var C={}
142r&&(C.transition="opacity "+O+"ms "+p+" "+_+"ms",C.WebkitTransition=C.transition,0===g&&(C.opacity=0))
143var w=(0,s.default)((_defineProperty(e={},b,!0),_defineProperty(e,u,u),e)),P=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===g
144return o.default.createElement("div",a({},function omit(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r]
145if(!n.length)return e
146for(var a={},i=Object.keys(e),o=0;o<i.length;o++){var c=i[o];-1===n.indexOf(c)&&(a[c]=e[c])}return a}.apply(void 0,[this.props].concat(l)),{"aria-hidden":P,className:w,id:m,style:j}),o.default.createElement("div",{className:d,style:C,ref:function ref(e){return t.contentElement=e}},c))}}]),AnimateHeight}()
147d.propTypes={"aria-hidden":c.default.bool,animateOpacity:c.default.bool,animationStateClasses:c.default.object,applyInlineTransitions:c.default.bool,children:c.default.any.isRequired,className:c.default.string,contentClassName:c.default.string,delay:c.default.number,duration:c.default.number,easing:c.default.string,height:function heightPropType(e,t,n){var a=e[t]
148return"number"==typeof a&&a>=0||isPercentage(a)||"auto"===a?null:new TypeError('value "'+a+'" of type "'+(void 0===a?"undefined":r(a))+'" is invali
148d type for '+t+" in "+n+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:c.default.string,onAnimationEnd:c.default.func,onAnimationStart:c.default.func,style:c.default.object},d.defaultProps={animateOpacity:!1,animationStateClasses:u,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.default=d},i5MA:function(e,t,n){"use strict"
149var r=n("LboF"),a=n.n(r),i=n("xzhq"),o={injectType:"singletonStyleTag",insert:"head",singleton:!0}
150a()(i.a,o)
151t.a=i.a.locals||{}},k5y7:function(e,t,n){"use strict"
152n.d(t,"a",function(){return c})
153var r=n("J4zp"),a=n.n(r),i=n("q1tI"),o={currency:"USD",value:0},c=function useDiscountSummary(e){var t=e.data,n=function getTotalDiscount(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
154return e&&e.length?{currency:e[0].amount.currency,value:e.reduce(function(e,t){return e+t.amount.value},0)}:o}(t),r=Object(i.useState)(!1),c=a()(r,2),s=c[0],u=c[1]
155return{totalDiscount:n,discountData:t,expanded:s,handleClick:Object(i.useCallback)(function(){u(function(e){return!e})},[u])}}},"ny1/":function(e,t,n){"use strict"
156e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},pAIL:function(e,t,n){"use strict"
157var r=n("ny1/")
158function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,n,a,i,o){if(o!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")
159throw c.name="Invariant Violation",c}}function getShim(){return shim}shim.isRequired=shim
160var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction}
161return e.PropTypes=e,e}},pNCU:function(e,t,n){"use strict"
162var r=n("q1tI"),a=n.n(r),i=n("17x9"),o=n("y1Xp"),c=n("LboF"),s=n.n(c),u=n("2eki"),l={injectType:"singletonStyleTag",insert:"head",singleton:!0},d=(s()(u.a,l),u.a.locals||{}),p=function ProductOptions(e){var t=e.options,n=void 0===t?[]:t,i=Object(o.a)(d,e.classes),c=Object(r.useMemo)(function(){return n.map(function(e){var t=e.option_label,n=e.value_label,r="".concat(t).concat(n),o="".concat(t," :")
163return a.a.createElement("div",{key:r,className:i.optionLabel},a.a.createElement("dt",{className:i.optionName},o),a.a.createElement("dd",{className:i.optionValue},n))})},[i,n])
164return 0===c.length?null:a.a.createElement("dl",{className:i.options},c)}
165p.propTypes={options:Object(i.arrayOf)(Object(i.shape)({label:i.string,value:i.string}))}
166t.a=p},rheR:function(e,t,n){"use strict"
167var r=n("JPst"),a=n.n(r)()(function(e){return e[1]})
168a.push([e.i,".postcode-root-ttM {\n}\n",""]),a.locals={root:"postcode-root-ttM"},t.a=a},xCjf:function(e,t,n){"use strict"
169var r=n("q1tI"),a=n.n(r),i=n("kriW"),o=n("+vrd"),c=n("y1Xp"),s={currency:"USD",value:0}
170t.a=function(e){var t=Object(c.a)({},e.classes),n=function getGiftCards(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]
171return e.length?{currency:e[0].applied_balance.currency,value:e.reduce(function(e,t){return e+t.applied_balance.value},0)}:s}(e.data)
172return n.value?a.a.createElement(r.Fragment,null,a.a.createElement("span",{className:t.lineItemLabel},a.a.createElement(i.a,{id:"giftCardSummary.lineItemLabel",defaultMessage:"Gift Card(s) applied"})),a.a.createElement("span",{className:t.price},"-",a.a.createElement(o.a,{value:n.value,currencyCode:n.currency}))):null}},xzhq:function(e,t,n){"use strict"
173var r=n("JPst"),a=n.n(r),i=n("Im5c"),o=a()(function(e){return e[1]})
174o.i(i.a,"",!0),o.push([e.i,".discountSummary-root-ZgC {\n}\n\n.discountSummary-discountsButton-aeb {\n}\n\n.discountSummary-discountLineItems-cA4 {\n}\n\n.discountSummary-discountLineItemLabel-neQ {\n}\n\n.discountSummary-individualDiscountSeparator-xco {\n\n    color: rgb(var(--venia-global-color-gray-300));\n}\n.discountSummary-individualDiscountsList-0Tn {\n}\n\n.discountSummary-individualDiscountsListLineItem--uT {\n\n    color: rgb(var(--venia-global-color-gray-700));\n}\n",""]),o.locals={root:"discountSummary-root-ZgC",discountsButton:"discountSummary-discountsButton-aeb grid items-center ml-2",discountLineItems:"discountSummary-discountLineItems-cA4 "+i.a.locals.lineItems+" items-center",discountLineItemLabel:"discountSummary-discountLineItemLabel-neQ "+i.a.locals.lineItemLabel+" grid grid-flow-col items-center",individualDiscountSeparator:"discountSummary-individualDiscountSeparator-xco mx-0 my-4",individualDiscountsList:"discountSummary-individualDiscountsList-0Tn "+i.a.locals.lineItemLabel,individualDiscountsListLineItem:"discountSummary-individualDiscountsListLineItem--uT "+i.a.locals.lineItems+" mx-0 pl-4"},t.a=o},zqAg:function(e,t,n){e.exports=n("pAIL")()}}])

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.