PageSourceSearch

https://static.touchsurgery.com/static/js/react-intl.Dhuu5ozO.js

js touchsurgery.com collected 2026-09-24 09:22:15 UTC 5,215 bytes, 2 lines download raw bytes

1import{r as i}from"./react.B-3k8uP_.js";import{D as N,n as b,o as D,q as R,c as S}from"./@formatjs.C1_ZfTE-.js";import{i as j}from"./intl-messageformat.C--v9pf6.js";import{h as F}from"./hoist-non-react-statics.CkEEqia5.js";var y=function(t,e){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},y(t,e)};function A(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");y(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var s=function(){return s=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},s.apply(this,arguments)};function P(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function k(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,a;n<o;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return t.concat(a||Array.prototype.slice.call(e))}function C(t){b(t,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var I=s(s({},N),{textComponent:i.Fragment});function M(t){return function(e){return t(i.Children.toArray(e))}}function q(t,e){if(t===e)return!0;if(!t||!e)return!1;var r=Object.keys(t),n=Object.keys(e),o=r.length;if(n.length!==o)return!1;for(var a=0;a<o;a++){var l=r[a];if(t[l]!==e[l]||!Object.prototype.hasOwnProperty.call(e,l))return!1}return!0}function K(t){return t.displayName||t.name||"Component"}var x=i.createContext(null),U=x.Consumer,Z=x.Provider,$=Z,G=x;function Q(t,e){var r=e||{},n=r.intlPropName,o=n===void 0?"intl":n,a=r.forwardRef,l=a===void 0?!1:a,u=r.enforceContext,f=u===void 0?!0:u,m=function(d){return i.createElement(U,null,function(v){var p;f&&C(v);var L=(p={},p[o]=v,p);return i.createElement(t,s({},d,L,{ref:l?d.forwardedRef:null}))})};return m.displayName="injectIntl(".concat(K(t),")"),m.WrappedComponent=t,l?F(i.forwardRef(function(d,v){return i.createElement(m,s({},d,{forwardedRef:v}))}),t):F(m,t)}function T(){var t=i.useContext(G);return C(t),t}var g;(function(t){t.formatDate="FormattedDate",t.formatTime="FormattedTime",t.formatNumber="FormattedNumber",t.formatList="FormattedList",t.formatDisplayName="FormattedDisplayName"})(g||(g={}));var E;(function(t){t.formatDate="FormattedDateParts",t.formatTime="FormattedTimeParts",t.formatNumber="FormattedNumberParts",t.formatList="FormattedListParts"})(E||(E={}));function _(t){var e=function(r){var n=T(),o=r.value,a=r.children,l=P(r,["value","children"]),u=typeof o=="string"?new Date(o||0):o,f=t==="formatDate"?n.formatDateToParts(u,l):n.formatTimeToParts(u,l);return a(f)};return e.displayName=E[t],e}function c(t){var e=function(r){var n=T(),o=r.value,a=r.children,l=P(r,["value","children"]),u=n[t](o,l);if(typeof a=="function")return a(u);var f=n.textComponent||i.Fragment;return i.createElement(f,null,u)};return e.displayName=g[t],e}function h(t){return{locale:t.locale,timeZone:t.timeZone,fallbackOnEmptyString:t.fallbackOnEmptyString,formats:t.formats,textComponent:t.textComponent,messages:t.messages,defaultLocale:t.defaultLocale,defaultFormats:t.defaultFormats,onError:t.onError,onWarn:t.onWarn,wrapRichTextChunksInFragment:t.wrapRichTextChunksInFragment,defaultRichTextElements:t.defaultRichTextElements}}function w(t){return t&&Object.keys(t).reduce(function(e,r){var n=t[r];return e[r]=j(n)?M(n):n,e},{})}var X=function(t,e,r,n){for(var o=[],a=4;a<arguments.length;a++)o[a-4]=arguments[a];var l=w(n),u=R.apply(void 0,k([t,e,r,l],o,!1));return Array.isArray(u)?i.Children.toArray(u):u},O=function(t,e){var r=t.defaultRichTextElements,n=P(t,["defaultRichTextElements"]),o=w(r),a=D(s(s(s({},I),n),{defaultRichTextElements:o}),e);return s(s({},a),{formatMessage:X.bind(null,{locale:a.locale,timeZone:a.timeZone,fallbackOnEmptyString:a.fallbackOnEmptyString,formats:a.formats,defaultLocale:a.defaultLocale,defaultFormats:a.defaultFormats,messages:a.messages,onError:a.onError,defaultRichTextElements:o},a.formatters)})},W=function(t){A(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.cache=S(),r.state={cache:r.cache,intl:O(h(r.props),r.cache),prevConfig:h(r.props)},r}return e.getDerivedStateFromProps=function(r,n){var o=n.prevConfig,a=n.cache,l=h(r);return q(o,l)?null:{intl:O(l,a),prevConfig:l}},e.prototype.render=function(){return C(this.state.intl),i.createElement($,{value:this.state.intl},this.props.children)},e.displayName="IntlProvider",e.defaultProps=I,e}(i.PureComponent);function Y(t){return t}function B(t){return t}c("formatDate");c("formatTime");c("formatNumber");c("formatList");c("formatDisplayName");_("formatDate");_("formatTime");export{W as I,B as a,O as c,Y as d,Q as i,T as u};
2//# sourceMappingURL=react-intl.Dhuu5ozO.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.