PageSourceSearch

https://wine-from-the-edge.netlify.app/component---node-modules-bo…-regions-page-id-js-a7b10960d595722bf697.js

js wine-from-the-edge.netlify.app collected 2026-10-03 11:37:59 UTC 8,752 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgatsby_starter_event=self.webpackChunkgatsby_starter_event||[]).push([[7982],{87573:function(e,t,n){n.d(t,{x:function(){return a}});var r=n(79467),o=n(67294),i=n(92183);function a(e){var t=(0,o.useContext)((0,i.K)()),n=e||t.client;return __DEV__?(0,r.kG)(!!n,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):(0,r.kG)(!!n,29),n}},43753:function(e,t,n){n.d(t,{a:function(){return p}});var r=n(79900),o=n(67294),i=n(19151),a=n(33959),u=n(92183),s=n(34674),l=n(45185),c=n(55713),d=n(87573);function p(e,t){var n,a=(0,o.useContext)((0,u.K)()),p=(0,d.x)(null==t?void 0:t.client),v=p.defaultOptions.watchQuery;(0,c.Vp)(e,c.n_.Query);var g,h=(0,o.useState)((function(){var n=f(e,t,v),r=null;return a.renderPromises&&(r=a.renderPromises.getSSRObservable(n)),r||(r=p.watchQuery(n),a.renderPromises&&a.renderPromises.registerSSRObservable(r,n)),a.renderPromises&&!1!==(null==t?void 0:t.ssr)&&!(null==t?void 0:t.skip)&&r.getCurrentResult().loading&&a.renderPromises.addQueryPromise({getOptions:function(){return f(e,t,v)},fetchData:function(){return new Promise((function(e){var t=r.subscribe({next:function(n){n.loading||(e(),t.unsubscribe())},error:function(){e(),t.unsubscribe()},complete:function(){e()}})}))}},(function(){return null})),r})),y=h[0],b=h[1],m=(0,o.useState)((function(){var e,n,r=y.getCurrentResult();return!r.loading&&t&&(r.error?null===(e=t.onError)||void 0===e||e.call(t,r.error):r.data&&(null===(n=t.onCompleted)||void 0===n||n.call(t,r.data))),r})),k=m[0],w=m[1],_=(0,o.useRef)({client:p,query:e,options:t,result:k,previousData:void 0,watchQueryOptions:f(e,t,v)});(0,o.useEffect)((function(){var n,r,o,a=f(e,t,v);if(_.current.client===p&&(0,i.D)(_.current.query,e))(0,i.D)(_.current.watchQueryOptions,a)||(y.setOptions(a).catch((function(){})),o=y.getCurrentResult(),_.current.watchQueryOptions=a);else{var u=p.watchQuery(a);b(u),o=u.getCurrentResult()}if(o){var s=_.current.result;s.data&&(_.current.previousData=s.data),w(_.current.result=o),!o.loading&&t&&(o.error?null===(n=t.onError)||void 0===n||n.call(t,o.error):o.data&&(null===(r=t.onCompleted)||void 0===r||r.call(t,o.data)))}Object.assign(_.current,{client:p,query:e})}),[y,p,e,t]),(0,o.useEffect)((function(){if(!a.renderPromises){var e=y.subscribe(t,(function n(r){var o,a,u=y.last;e.unsubscribe();try{y.resetLastResults(),e=y.subscribe(t,n)}finally{y.last=u}if(!r.hasOwnProperty("graphQLErrors"))throw r;var s=_.current.result;(s&&s.loading||!(0,i.D)(r,s.error))&&(w(_.current.result={data:s.data,error:r,loading:!1,networkStatus:l.I.error}),null===(a=null===(o=_.current.options)||void 0===o?void 0:o.onError)||void 0===a||a.call(o,r))}));return function(){return e.unsubscribe()}}function t(){var e,t,n=_.current.result,r=y.getCurrentResult();n&&n.loading===r.loading&&n.networkStatus===r.networkStatus&&(0,i.D)(n.data,r.data)||(n.data&&(_.current.previousData=n.data),w(_.current.result=r),r.loading||null===(t=null===(e=_.current.options)||void 0===e?void 0:e.onCompleted)||void 0===t||t.call(e,r.data))}}),[y,a.renderPromises,p.disableNetworkFetches]),g=(n=k).partial,k=(0,r._T)(n,["partial"]),!g||!(null==t?void 0:t.partialRefetch)||k.loading||k.data&&0!==Object.keys(k.data).length||"cache-only"===y.options.fetchPolicy||(k=(0,r.pi)((0,r.pi)({},k),{loading:!0,networkStatus:l.I.refetch}),y.refetch()),a.renderPromises&&!1!==(null==t?void 0:t.ssr)&&!(null==t?void 0:t.skip)&&k.loading&&y.setOptions(f(e,t,v)).catch((function(){})),Object.assign(_.current,{options:t}),(a.renderPromises||p.disableNetworkFetches)&&!1===(null==t?void 0:t.ssr)?k=_.current.result={loading:!0,data:void 0,error:void 0,networkStatus:l.I.loading}:((null==t?void 0:t.skip)||"standby"===(null==t?void 0:t.fetchPolicy))&&(k={loading:!1,data:void 0,error:void 0,networkStatus:l.I.ready}),k.errors&&k.errors.length&&(k=(0,r.pi)((0,r.pi)({},k),{error:k.error||new s.c({graphQLErrors:k.errors})}));var P=(0,o.useMemo)((function(){return{refetch:y.refetch.bind(y),fetchMore:y.fetchMore.bind(y),updateQuery:y.updateQuery.bind(y),startPolling:y.startPolling.bind(y),stopPolling:y.stopPolling.bind(y),subscribeToMore:y.subscribeToMore.bind(y)}}),[y]);return(0,r.pi)((0,r.pi)((0,r.pi)({},P),{variables:f(e,t,v).variables,client:p,called:!0,previousData:_.current.previousData}),k)}function f(e,t,n){var o;void 0===t&&(t={});var i=t.skip,u=(t.ssr,t.onCompleted,t.onError,t.displayName,(0,r._T)(t,["skip","ssr","onCompleted","onError","displayName"])),s=(0,r.pi)({query:e},u);return n&&(s=(0,a.J)(n,s)),i?s.fetchPolicy="standby":(!(null===(o=s.context)||void 0===o?void 0:o.renderPromises)||"network-only"!==s.fetchPolicy&&"cache-and-network"!==s.fetchPolicy)&&s.fetchPolicy||(s.fetchPolicy="cache-first"),s.variables||(s.variables={}),s}},55713:function(e,t,n){n.d(t,{Vp:function(){return u},n_:function(){return r}});var r,o=n(79467);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(r||(r={}));var i=new Map;function a(e){var t;switch(e){case r.Query:t="Query";break;case r.Mutation:t="Mutation";break;case r.Subscription:t="Subscription"}return t}function u(e,t){var n=function(e){var t,n,a=i.get(e);if(a)return a;__DEV__?(0,o.kG)(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):(0,o.kG)(!!e&&!!e.kind,30);var u=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),s=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),l=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),c=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));__DEV__?(0,o.kG)(!u.length||s.length||l.length||c.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):(0,o.kG)(!u.length||s.length||l.length||c.length,31),__DEV__?(0,o.kG)(s.length+l.length+c.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(s.length," queries, ").concat(c.length," ")+"subscriptions and ".concat(l.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):(0,o.kG)(s.length+l.length+c.length<=1,32),n=s.length?r.Query:r.Mutation,s.length||l.length||(n=r.Subscription);var d=s.length?s:l.length?l:c;__DEV__?(0,o.kG)(1===d.length,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(d.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):(0,o.kG)(1===d.length,33);var p=d[0];t=p.variableDefinitions||[];var f={name:p.name&&"Name"===p.name.kind?p.name.value:"data",type:n,variables:t};return i.set(e,f),f}(e),u=a(t),s=a(n.type);__DEV__?(0,o.kG)(n.type===t,"Running a ".concat(u," requires a graphql ")+"".concat(u,", but a ").concat(s," was used instead.")):(0,o.kG)(n.type===t,34)}},17679:function(e,t,n){n.r(t),n.d(t,{default:function(){return c}});var r,o=n(81880),i=n(43753),a=n(28833),u=n(35723),s=n(70977),l=n(43545);function c(e){var t=e.params.pageId,n=(0,i.a)(p,{variables:{id:t}
1,fetchPolicy:"network-only",pollInterval:500,context:{clientName:"sanity"}}),r=n.data,o=n.loading,a=n.error;if(o)return(0,s.tZ)(u.kC,{align:"center",justify:"center",sx:{height:"100vh"}},(0,s.tZ)(u.xv,null,"Loading Preview"));if(a)return(0,s.tZ)(l.a5,{error:a},(0,s.tZ)(u.xv,null,"Potential solution: Check that CORS is active for this site. Ensure that 'Allow Credentials' is checked."),(0,s.tZ)(u.xu,{sx:{marginTop:2}},(0,s.tZ)(u.zx,{variant:"primary",href:"https://www.sanity.io/manage/project/0f9pue7m/api",target:"_blank"},(0,s.tZ)(u.xv,null,"Go to Sanity project"))));if(!r.Region)return(0,s.tZ)(l.a5,{error:{message:"Page not found"}},(0,s.tZ)(u.xv,null,"Confirm that you are logged into your CMS, or this page doesn't exist. Try reloading this page preview from the CMS."));var c=d(r).slug;return(0,s.tZ)(u.xu,null,(0,s.tZ)(u.kC,{align:"center",justify:"center",sx:{paddingY:3,backgroundColor:"#f3f3f3"}},(0,s.tZ)(u.xv,null,"This is a preview.","  ",(0,s.tZ)("a",{href:"index"!==(null==c?void 0:c.current)?"/"+(null==c?void 0:c.current):"/"},"View live version."))),(0,s.tZ)(l.h5,d(r)))}function d(e){return e.Region}var p=(0,a.Ps)(r||(r=(0,o.Z)(["\n  query ($id: ID!) {\n    Region(id: $id) {\n      ...SanityRegion\n    }\n  }\n  ","\n"])),l.h5.fragment)}}]);
2//# sourceMappingURL=component---node-modules-bottlebooks-gatsby-theme-cms-src-pages-cms-preview-regions-page-id-js-a7b10960d595722bf697.js.map

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.