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,CAAEQ,KAAM,MAC/BU,CACb,E,iDC3DC,MAAMC,UAAwB,IAI/B,WAAAlB,CAAYD,GACNoB,MAAMpB,EAAK,UACjB,E,iDCNC,MAAMqB,UAA0B,IAIjC,WAAApB,CAAYD,GACNoB,MAAMpB,EAAK,UACjB,E,iDCYC,MAAesB,EAKRC,QACAC,YACAxB,IAER,WAAAC,CAAYD,EAAQyB,GAEdvB,KAAKF,IAAMA,EACXE,KAAKsB,YAAcC,EACnBvB,KAAKqB,QACU,UAATE,EACQC,aACAC,cACpB,CAEA,IAAAxB,CAAKC,GAEC,MAAMwB,EAAWtB,KAAKC,UAAUH,GAEhCF,KAAKqB,QAAQM,QAAQ3B,KAAKF,IAAK4B,EACrC,CAEA,QAAAnB,GAEM,MAAMC,EAAOR,KAAKqB,QAAQO,QAAQ5B,KAAKF,KAEvC,GAAa,OAATU,EAEE,OAAO,KAEb,IAEM,OAAOJ,KAAKM,MAAMF,EACxB,CACA,MAAOG,GAOD,OAAO,IACb,CACN,CAEA,MAAAC,CAAOV,GAED,OAAI,QAAkBA,IAEhBF,KAAKa,SAEEX,IAGbF,KAAKC,KAAKC,GAEHA,EACb,CAEA,QAAAY,GAEM,OAA0C,OAAnCd,KAAKqB,QAAQO,QAAQ5B,KAAKF,IACvC,CAEA,MAAAe,GAEM,MAAMgB,EAAS7B,KAAKc,WAIpB,OAFAd,KAAKqB,QAAQS,WAAW9B,KAAKF,KAEtB+B,CACb,E","sources":["webpack:///./src/types/httpTypes.tsx","webpack:///./src/types/storage/CookieStorage.tsx","webpack:///./src/types/storage/LocalStorage.tsx","webpack:///./src/types/storage/SessionStorage.tsx","webpack:///./src/types/storage/WebStorageBase.tsx"],"sourcesContent":["import { IconMaterialUiOrFontAwesome } from './graphicsTypes';\r\nimport { IconDefinition } from '@fortawesome/fontawesome-svg-core';\r\nimport {\r\n faCoffee,\r\n faRocket,\r\n faMugHot,\r\n faBookOpen,\r\n faLaughSquint,\r\n faQuestionCircle,\r\n faWalking,\r\n faGrinStars,\r\n faCut,\r\n faTasks,\r\n faCheckDouble,\r\n faBirthdayCake,\r\n faGift,\r\n faUserNinja,\r\n faPuzzlePiece,\r\n faUserSecret,\r\n faEgg,\r\n faAward,\r\n faSatellite,\r\n faMapSigns,\r\n faRandom,\r\n faBan,\r\n faSearch,\r\n faThumbsDown,\r\n faTrashAlt,\r\n faLock,\r\n faHandPointer,\r\n faBug,\r\n faHistory,\r\n faGhost,\r\n faSkullCrossbones,\r\n faRedo,\r\n faMeteor,\r\n faBomb,\r\n faTools,\r\n faUnlink,\r\n faWrench,\r\n faClock,\r\n faCodeBranch,\r\n faExchangeAlt,\r\n faDatabase,\r\n faSyncAlt,\r\n faExpandArrowsAlt,\r\n faUserShield,\r\n faSnowflake,\r\n faBed,\r\n faDna,\r\n faShip,\r\n faArrowsSplitUpAndLeft,\r\n faSchoolLock,\r\n faPersonDigging,\r\n faPersonWalkingArrowLoopLeft,\r\n faPeoplePulling,\r\n faDiamondTurnRight,\r\n faFileCircleExclamation,\r\n faFileCircleXmark,\r\n faRoadBarrier,\r\n faRoadCircleXmark,\r\n faRoadLock,\r\n faScaleUnbalanced,\r\n faUserLock,\r\n faTableCells,\r\n faBridgeLock,\r\n} from '@fortawesome/free-solid-svg-icons';\r\n\r\nimport {\r\n SpeakerNotesOff,\r\n Error,\r\n Info,\r\n CheckCircle,\r\n Warning,\r\n PartyMode,\r\n Cake,\r\n Lock,\r\n HourglassEmpty,\r\n Explore,\r\n Public,\r\n NewReleases,\r\n Memory,\r\n Update,\r\n Policy,\r\n OfflineBolt,\r\n Security,\r\n SentimentVerySatisfied,\r\n SentimentDissatisfied,\r\n Block,\r\n Money,\r\n Refresh,\r\n Timer,\r\n Upgrade,\r\n CompareArrows,\r\n ReportOff,\r\n SyncProblem,\r\n Straighten,\r\n RocketLaunch,\r\n} from '@mui/icons-material';\r\n\r\n// As copied from ->https://www.rfc-editor.org/rfc/rfc9110#name-overview\r\n// ----------------------------------------------------------------\r\n// GET\tTransfer a current representation of the target resource.\r\n// HEAD\tSame as GET, but do not transfer the response content.\r\n// POST\tPerform resource-specific processing on the request content.\r\n// PUT\tReplace all current representations of the target resource with the request content.\r\n// DELETE\tRemove all current representations of the target resource.\r\n// CONNECT\tEstablish a tunnel to the server identified by the target resource.\r\n// OPTIONS\tDescribe the communication options for the target resource.\r\n// TRACE\tPerform a message loop-back test along the path to the target resource.\r\n\r\nexport type HttpMethod =\r\n | 'GET'\r\n | 'HEAD'\r\n | 'POST'\r\n | 'PUT'\r\n | 'DELETE'\r\n | 'CONNECT'\r\n | 'OPTIONS'\r\n | 'TRACE';\r\n\r\nexport type HttpResponseFlag =\r\n | 'info'\r\n | 'success'\r\n | 'error'\r\n | 'warning';\r\n\r\nexport interface IHttpResponseStatus {\r\n code: number;\r\n name: string;\r\n description: string;\r\n flag: HttpResponseFlag;\r\n icon: IconMaterialUiOrFontAwesome;\r\n}\r\n\r\nexport const httpStatusCodes: IHttpResponseStatus[] = [\r\n {\r\n code: 100,\r\n name: `Continue`,\r\n description: `The client should continue with its request.`,\r\n flag: `info`,\r\n icon: HourglassEmpty,\r\n },\r\n {\r\n code: 101,\r\n name: `Switching Protocols`,\r\n description: `The protocol is being switched.`,\r\n flag: `info`,\r\n icon: Update,\r\n },\r\n {\r\n code: 102,\r\n name: `Processing`,\r\n description: `The server is processing the request.`,\r\n flag: `info`,\r\n icon: Memory,\r\n },\r\n {\r\n code: 103,\r\n name: `Early Hints`,\r\n description: `Early hints for preloading resources.`,\r\n flag: `info`,\r\n icon: NewReleases,\r\n },\r\n {\r\n code: 150,\r\n name: `Chatting Mode`,\r\n description: `Server is in a chatty mood and wants to talk.`,\r\n flag: `info`,\r\n icon: faCoffee,\r\n },\r\n {\r\n code: 151,\r\n name: `Time Travel Initiated`,\r\n description: `Hold tight, we are going back to the future!`,\r\n flag: `info`,\r\n icon: faRocket,\r\n },\r\n {\r\n code: 152,\r\n name: `Coffee Break`,\r\n description: `Server is on a coffee break. Please wait.`,\r\n flag: `info`,\r\n icon: faMugHot,\r\n },\r\n {\r\n code: 153,\r\n name: `Story Time`,\r\n description: `Server is ready to tell you a story.`,\r\n flag: `info`,\r\n icon: faBookOpen,\r\n },\r\n {\r\n code: 154,\r\n name: `Joke Time`,\r\n description: `Server is in a mood for jokes. Here comes one.`,\r\n flag: `info`,\r\n icon: faLaughSquint,\r\n },\r\n {\r\n code: 155,\r\n name: `Philosophical Mood`,\r\n description: `Server is feeling philosophical and questioning the HTTP protocols.`,\r\n flag: `info`,\r\n icon: faQuestionCircle,\r\n },\r\n {\r\n code: 156,\r\n name: `Stretching Legs`,\r\n description: `Server is stretching its legs. Expect a slight delay.`,\r\n flag: `info`,\r\n icon: faWalking,\r\n },\r\n {\r\n code: 157,\r\n name: `Loading Fun Facts`,\r\n description: `Loading some fun facts before proceeding with your request.`,\r\n flag: `info`,\r\n icon: faGrinStars,\r\n },\r\n {\r\n code: 200,\r\n name: `OK`,\r\n description: `The request has succeeded.`,\r\n flag: `success`,\r\n icon: CheckCircle,\r\n },\r\n {\r\n code: 201,\r\n name: `Created`,\r\n description: `The request has succeeded and a new resource is created.`,\r\n flag: `success`,\r\n icon: NewReleases,\r\n },\r\n {\r\n code: 202,\r\n name: `Accepted`,\r\n description: `The request has been accepted for processing.`,\r\n flag: `success`,\r\n icon: SentimentVerySatisfied,\r\n },\r\n {\r\n code: 203,\r\n name: `Non-Authoritative Information`,\r\n description: `The meta information presented is not from the original server.`,\r\n flag: `success`,\r\n icon: Policy,\r\n },\r\n {\r\n code: 204,\r\n name: `No Content`,\r\n description: `There is no content to send for this request.`,\r\n flag: `success`,\r\n icon: SentimentDissatisfied,\r\n },\r\n {\r\n code: 205,\r\n name: `Reset Content`,\r\n description: `The user agent should reset the document view.`,\r\n flag: `success`,\r\n icon: Refresh,\r\n },\r\n {\r\n code: 206,\r\n name: `Partial Content`,\r\n description: `The server is delivering only part of the resource.`,\r\n flag: `success`,\r\n icon: faCut,\r\n },\r\n {\r\n code: 207,\r\n name: `Multi-Status`,\r\n description: `Multiple status codes might be appropriate.`,\r\n flag: `success`,\r\n icon: faTasks,\r\n },\r\n {\r\n code: 208,\r\n name: `Already Reported`,\r\n description: `The members of a DAV binding have already been enumerated.`,\r\n flag: `success`,\r\n icon: faCheckDouble,\r\n },\r\n {\r\n code: 210,\r\n name: `Cake Found`,\r\n description: `Success! We found some cake, and it is not a lie.`,\r\n flag: `success`,\r\n icon: faBirthdayCake,\r\n },\r\n {\r\n code: 211,\r\n name: `It's a Party`,\r\n description: `Your request was successful, and it started a party.`,\r\n flag: `success`,\r\n icon: PartyMode,\r\n },\r\n {\r\n code: 212,\r\n name: `Treasure Unlocked`,\r\n description: `Congrats! You've unlocked a hidden treasure.`,\r\n flag: `success`,\r\n icon: faGift,\r\n },\r\n {\r\n code: 213,\r\n name: `Mission Accomplished`,\r\n description: `Your mission, should you choose to accept it, was successful.`,\r\n flag: `success`,\r\n icon: faUserNinja,\r\n },\r\n {\r\n code: 214,\r\n name: `Puzzle Solved`,\r\n description: `You have successfully solved the server puzzle.`,\r\n flag: `success`,\r\n icon: faPuzzlePiece,\r\n },\r\n {\r\n code: 215,\r\n name: `Secret Revealed`,\r\n description: `A secret has been revealed to you.`,\r\n flag: `success`,\r\n icon: faUserSecret,\r\n },\r\n {\r\n code: 216,\r\n name: `Easter Egg Found`,\r\n description: `You found an easter egg on the server.`,\r\n flag: `success`,\r\n icon: faEgg,\r\n },\r\n {\r\n code: 217,\r\n name: `Bonus Points`,\r\n description: `You've earned some bonus points.`,\r\n flag: `success`,\r\n icon: faAward,\r\n },\r\n {\r\n code: 226,\r\n name: `IM Used`,\r\n description: `The server has fulfilled a GET request for the resource.`,\r\n flag: `success`,\r\n icon: faSatellite,\r\n },\r\n {\r\n code: 300,\r\n name: `Multiple Choices`,\r\n description: `There are multiple options for the resource.`,\r\n flag: `info`,\r\n icon: Public,\r\n },\r\n {\r\n code: 301,\r\n name: `Moved Permanently`,\r\n description: `The resource has moved permanently to a new URI.`,\r\n flag: `info`,\r\n icon: Explore,\r\n },\r\n {\r\n code: 302,\r\n name: `Found`,\r\n description: `The URI of requested resource has been changed temporarily.`,\r\n flag: `info`,\r\n icon: faMapSigns,\r\n },\r\n {\r\n code: 303,\r\n name: `See Other`,\r\n description: `The response can be found under a different URI.`,\r\n flag: `info`,\r\n icon: Explore,\r\n },\r\n {\r\n code: 304,\r\n name: `Not Modified`,\r\n description: `The resource has not been modified.`,\r\n flag: `info`,\r\n icon: SpeakerNotesOff,\r\n },\r\n {\r\n code: 305,\r\n name: `Use Proxy`,\r\n description: `The requested response must be accessed by a proxy.`,\r\n flag: `info`,\r\n icon: Security,\r\n },\r\n {\r\n code: 306,\r\n name: `Unused`,\r\n description: `This code is no longer used, but is reserved.`,\r\n flag: `info`,\r\n icon: Block,\r\n },\r\n {\r\n code: 307,\r\n name: `Temporary Redirect`,\r\n description: `The resource has moved temporarily to a new URI.`,\r\n flag: `info`,\r\n icon: faRandom,\r\n },\r\n {\r\n code: 308,\r\n name: `Permanent Redirect`,\r\n description: `The resource has been permanently moved to a new URI.`,\r\n flag: `info`,\r\n icon: CompareArrows,\r\n },\r\n {\r\n code: 400,\r\n name: `Bad Request`,\r\n description: `The server could not understand the request.`,\r\n flag: `error`,\r\n icon: Error,\r\n },\r\n {\r\n code: 401,\r\n name: `Unauthorized`,\r\n description: `The request requires user authentication.`,\r\n flag: `error`,\r\n icon: Lock,\r\n },\r\n {\r\n code: 402,\r\n name: `Payment Required`,\r\n description: `Reserved for future use.`,\r\n flag: `error`,\r\n icon: Money,\r\n },\r\n {\r\n code: 403,\r\n name: `Forbidden`,\r\n description: `The server understood the request but refuses to authorize it.`,\r\n flag: `error`,\r\n icon: faBan,\r\n },\r\n {\r\n code: 404,\r\n name: `Not Found`,\r\n description: `The server has not found anything matching the URI.`,\r\n flag: `error`,\r\n icon: faSearch,\r\n },\r\n {\r\n code: 405,\r\n name: `Method Not Allowed`,\r\n description: `The method specified is not allowed for the resource.`,\r\n flag: `error`,\r\n icon: ReportOff,\r\n },\r\n {\r\n code: 406,\r\n name: `Not Acceptable`,\r\n description: `The resource is not available in a format that would be acceptable.`,\r\n flag: `error`,\r\n icon: faThumbsDown,\r\n },\r\n {\r\n code: 407,\r\n name: `Proxy Authentication Required`,\r\n description: `The request requires proxy authentication.`,\r\n flag: `error`,\r\n icon: faUserLock,\r\n },\r\n {\r\n code: 408,\r\n name: `Request Timeout`,\r\n description: `The server timed out waiting for the request.`,\r\n flag: `error`,\r\n icon: Timer,\r\n },\r\n {\r\n code: 409,\r\n name: `Conflict`,\r\n description: `The request could not be completed due to a conflict.`,\r\n flag: `error`,\r\n icon: SyncProblem,\r\n },\r\n {\r\n code: 410,\r\n name: `Gone`,\r\n description: `The requested resource is no longer available.`,\r\n flag: `error`,\r\n icon: faTrashAlt,\r\n },\r\n {\r\n code: 411,\r\n name: `Length Required`,\r\n description: `The request did not specify the length of its content.`,\r\n flag: `error`,\r\n icon: Straighten,\r\n },\r\n {\r\n code: 412,\r\n name: `Precondition Failed`,\r\n description: `A precondition given in the request header failed.`,\r\n flag: `error`,\r\n icon: faRoadLock,\r\n },\r\n {\r\n code: 413,\r\n name: `Payload Too Large`,\r\n description: `The request is larger than the server is willing to process.`,\r\n flag: `error`,\r\n icon: faRoadCircleXmark,\r\n },\r\n {\r\n code: 414,\r\n name: `URI Too Long`,\r\n description: `The URI provided was too long for the server to process.`,\r\n flag: `error`,\r\n icon: faRoadBarrier,\r\n },\r\n {\r\n code: 415,\r\n name: `Unsupported Media Type`,\r\n description: `The server does not support the media type transmitted.`,\r\n flag: `error`,\r\n icon: faFileCircleXmark,\r\n },\r\n {\r\n code: 416,\r\n name: `Range Not Satisfiable`,\r\n description: `The client has asked for a portion of the file, but the server cannot supply that portion.`,\r\n flag: `error`,\r\n icon: faBridgeLock,\r\n },\r\n {\r\n code: 417,\r\n name: `Expectation Failed`,\r\n description: `The server cannot meet the requirements of the Expect request-header field.`,\r\n flag: `error`,\r\n icon: faFileCircleExclamation,\r\n },\r\n {\r\n code: 418,\r\n name: `I'm a teapot`,\r\n description: `The server refuses the attempt to brew coffee with a teapot.`,\r\n flag: `error`,\r\n icon: faCoffee,\r\n },\r\n {\r\n code: 421,\r\n name: `Misdirected Request`,\r\n description: `The request was directed at a server that is not able to produce a response.`,\r\n flag: `error`,\r\n icon: faDiamondTurnRight,\r\n },\r\n {\r\n code: 422,\r\n name: `Unprocessable Content`,\r\n description: `The request was well-formed but was unable to be followed due to semantic errors.`,\r\n flag: `error`,\r\n icon: faPeoplePulling,\r\n },\r\n {\r\n code: 423,\r\n name: `Locked`,\r\n description: `The resource that is being accessed is locked.`,\r\n flag: `error`,\r\n icon: faLock,\r\n },\r\n {\r\n code: 424,\r\n name: `Failed Dependency`,\r\n description: `The request failed due to failure of a previous request.`,\r\n flag: `error`,\r\n icon: faPersonWalkingArrowLoopLeft,\r\n },\r\n {\r\n code: 425,\r\n name: `Too Early`,\r\n description: `Indicates that the server is unwilling to risk processing a request that might be replayed.`,\r\n flag: `error`,\r\n icon: faSchoolLock,\r\n },\r\n {\r\n code: 426,\r\n name: `Upgrade Required`,\r\n description: `The client should switch to a different protocol.`,\r\n flag: `error`,\r\n icon: Upgrade,\r\n },\r\n {\r\n code: 428,\r\n name: `Precondition Required`,\r\n description: `The server requires the request to be conditional.`,\r\n flag: `error`,\r\n icon: faArrowsSplitUpAndLeft,\r\n },\r\n {\r\n code: 429,\r\n name: `Too Many Requests`,\r\n description: `The user has sent too many requests in a given amount of time.`,\r\n flag: `error`,\r\n icon: faPersonDigging,\r\n },\r\n {\r\n code: 431,\r\n name: `Request Header Fields Too Large`,\r\n description: `The server is unwilling to process the request because its header fields are too large.`,\r\n flag: `error`,\r\n icon: faScaleUnbalanced,\r\n },\r\n {\r\n code: 451,\r\n name: `Unavailable For Legal Reasons`,\r\n description: `The requested resource is unavailable for legal reasons.`,\r\n flag: `error`,\r\n icon: Policy,\r\n },\r\n {\r\n code: 470,\r\n name: `Reality Not Found`,\r\n description: `Warning! You are trying to access a reality that does not exist.`,\r\n flag: `warning`,\r\n icon: faQuestionCircle,\r\n },\r\n {\r\n code: 471,\r\n name: `Don't Push This Button`,\r\n description: `Warning! Something might happen if this button is pushed.`,\r\n flag: `warning`,\r\n icon: faHandPointer,\r\n },\r\n {\r\n code: 472,\r\n name: `Glitch in Matrix`,\r\n description: `Warning: There's a glitch in the matrix, things may not be as they appear.`,\r\n flag: `warning`,\r\n icon: faBug,\r\n },\r\n {\r\n code: 473,\r\n name: `Time Paradox`,\r\n description: `Warning: Your actions may cause a time paradox!`,\r\n flag: `warning`,\r\n icon: faHistory,\r\n },\r\n {\r\n code: 474,\r\n name: `Possible Haunting`,\r\n description: `Warning: This server may be haunted.`,\r\n flag: `warning`,\r\n icon: faGhost,\r\n },\r\n {\r\n code: 475,\r\n name: `Curse Alert`,\r\n description: `Warning: This request may trigger a curse.`,\r\n flag: `warning`,\r\n icon: faSkullCrossbones,\r\n },\r\n {\r\n code: 476,\r\n name: `Infinite Loop`,\r\n description: `Warning: You might be entering an infinite loop.`,\r\n flag: `warning`,\r\n icon: faRedo,\r\n },\r\n {\r\n code: 477,\r\n name: `Black Hole Nearby`,\r\n description: `Warning: A black hole has been detected nearby.`,\r\n flag: `warning`,\r\n icon: faMeteor,\r\n },\r\n {\r\n code: 500,\r\n name: `Internal Server Error`,\r\n description: `The server encountered an unexpected condition.`,\r\n flag: `error`,\r\n icon: faBomb,\r\n },\r\n {\r\n code: 501,\r\n name: `Not Implemented`,\r\n description: `The server does not support the functionality required to fulfill the request.`,\r\n flag: `error`,\r\n icon: faTools,\r\n },\r\n {\r\n code: 502,\r\n name: `Bad Gateway`,\r\n description: `The server received an invalid response from the upstream server.`,\r\n flag: `error`,\r\n icon: faUnlink,\r\n },\r\n {\r\n code: 503,\r\n name: `Service Unavailable`,\r\n description: `The server is currently unable to handle the request.`,\r\n flag: `error`,\r\n icon: faWrench,\r\n },\r\n {\r\n code: 504,\r\n name: `Gateway Timeout`,\r\n description: `The server was acting as a gateway and did not receive a response in time.`,\r\n flag: `error`,\r\n icon: faClock,\r\n },\r\n {\r\n code: 505,\r\n name: `HTTP Version Not Supported`,\r\n description: `The server does not support the HTTP protocol version used in the request.`,\r\n flag: `error`,\r\n icon: faCodeBranch,\r\n },\r\n {\r\n code: 506,\r\n name: `Variant Also Negotiates`,\r\n description: `Transparent content negotiation for the request results in a circular reference.`,\r\n flag: `error`,\r\n icon: faExchangeAlt,\r\n },\r\n {\r\n code: 507,\r\n name: `Insufficient Storage`,\r\n description: `The server is unable to store the representation needed to complete the request.`,\r\n flag: `error`,\r\n icon: faDatabase,\r\n },\r\n {\r\n code: 508,\r\n name: `Loop Detected`,\r\n description: `The server detected an infinite loop while processing the request.`,\r\n flag: `error`,\r\n icon: faSyncAlt,\r\n },\r\n {\r\n code: 510,\r\n name: `Not Extended`,\r\n description: `Further extensions to the request are required for the server to fulfill it.`,\r\n flag: `error`,\r\n icon: faExpandArrowsAlt,\r\n },\r\n {\r\n code: 511,\r\n name: `Network Authentication Required`,\r\n description: `The client needs to authenticate to gain network access.`,\r\n flag: `error`,\r\n icon: faUserShield,\r\n },\r\n {\r\n code: 520,\r\n name: `Tea Overload`,\r\n description: `Too many tea requests have caused the server to overheat.`,\r\n flag: `error`,\r\n icon: faMugHot,\r\n },\r\n {\r\n code: 521,\r\n name: `Brain Freeze`,\r\n description: `Server has a brain freeze, try again when it warms up.`,\r\n flag: `error`,\r\n icon: faSnowflake,\r\n },\r\n {\r\n code: 522,\r\n name: `Monster Under Bed`,\r\n description: `Error: There's a monster under the server's bed.`,\r\n flag: `error`,\r\n icon: faBed,\r\n },\r\n {\r\n code: 523,\r\n name: `Lost in Space`,\r\n description: `Server error: It got lost somewhere in the galaxy.`,\r\n flag: `error`,\r\n icon: faRocket,\r\n },\r\n {\r\n code: 524,\r\n name: `Zombie Attack`,\r\n description: `Zombies have attacked the server, services will resume once cleared.`,\r\n flag: `error`,\r\n icon: faWalking,\r\n },\r\n {\r\n code: 525,\r\n name: `Alien Abduction`,\r\n description: `The server has been temporarily abducted by aliens.`,\r\n flag: `error`,\r\n icon: RocketLaunch,\r\n },\r\n {\r\n code: 526,\r\n name: `Dinosaur Resurrection`,\r\n description: `Dinosaurs resurrected and are running the server now.`,\r\n flag: `error`,\r\n icon: faDna,\r\n },\r\n {\r\n code: 527,\r\n name: `Pirates Hijacked`,\r\n description: `Pirates have hijacked the server. Ransomware expected.`,\r\n flag: `error`,\r\n icon: faShip,\r\n },\r\n];\r\n","import { Cookies } from 'react-cookie';\r\nimport {\r\n IWebStorage,\r\n StorageDataType,\r\n} from './WebStorageBase';\r\nimport { isNullOrUndefined } from '../../utilities/Utils';\r\n\r\nclass CookieStorage implements IWebStorage {\r\n private cookies: Cookies;\r\n private key: StorageDataType;\r\n\r\n constructor(key: StorageDataType) {\r\n this.key = key;\r\n this.cookies = new Cookies();\r\n }\r\n\r\n save(data: T): void {\r\n this.cookies.set(\r\n this.key,\r\n JSON.stringify(data),\r\n { path: '/' },\r\n );\r\n }\r\n\r\n retrieve(): T | null {\r\n const item = this.cookies.get(this.key);\r\n\r\n if (!item) {\r\n return null;\r\n }\r\n\r\n try {\r\n return JSON.parse(item);\r\n }\r\n catch (error) {\r\n console.error(\r\n `Error parsing cookie for key: '${this.key}'`,\r\n error,\r\n );\r\n\r\n return null;\r\n }\r\n }\r\n\r\n update(data: T | null): T | null {\r\n if (isNullOrUndefined(data)) {\r\n this.remove();\r\n\r\n return data;\r\n }\r\n\r\n this.save(data!);\r\n\r\n return data;\r\n }\r\n\r\n contains(): boolean {\r\n return this.cookies.get(this.key) !== undefined;\r\n }\r\n\r\n remove(): boolean {\r\n const exists = this.contains();\r\n this.cookies.remove(this.key, { path: '/' });\r\n return exists;\r\n }\r\n}\r\n\r\nexport default CookieStorage;\r\n","import {\r\n StorageDataType,\r\n WebStorageBase,\r\n} from './WebStorageBase';\r\n\r\nexport class LocalStorage extends WebStorageBase<\r\n T,\r\n StorageDataType\r\n> {\r\n constructor(key: StorageDataType) {\r\n super(key, 'session');\r\n }\r\n}\r\n","import {\r\n StorageDataType,\r\n WebStorageBase,\r\n} from './WebStorageBase';\r\n\r\nexport class SessionStorage extends WebStorageBase<\r\n T,\r\n StorageDataType\r\n> {\r\n constructor(key: StorageDataType) {\r\n super(key, 'session');\r\n }\r\n}\r\n","import { isNullOrUndefined } from '../../utilities/Utils';\r\n\r\nexport type StorageType = 'local' | 'session' | 'cookie';\r\n\r\nexport type StorageDataType =\r\n | 'UserLogin'\r\n | 'UserTokens'\r\n | 'UserLoginFormData'\r\n | 'CartItems'\r\n | 'CartCheckoutInformation'\r\n | 'CartFailedResponse';\r\n\r\nexport interface IWebStorage\r\n{\r\n save(data: T): void;\r\n retrieve(): T | null;\r\n update(data: T | null): T | null;\r\n contains(): boolean;\r\n remove(): boolean;\r\n}\r\n\r\nexport type IWebStorageKey = string;\r\n\r\nexport abstract class WebStorageBase<\r\n T,\r\n K extends IWebStorageKey,\r\n>\r\n{\r\n private storage: Storage;\r\n private storageType: StorageType;\r\n private key: K;\r\n\r\n constructor(key: K, type: StorageType)\r\n {\r\n this.key = key;\r\n this.storageType = type;\r\n this.storage =\r\n type === 'local'\r\n ? localStorage\r\n : sessionStorage;\r\n }\r\n\r\n save(data: T): void\r\n {\r\n const jsonData = JSON.stringify(data);\r\n\r\n this.storage.setItem(this.key, jsonData);\r\n }\r\n\r\n retrieve(): T | null\r\n {\r\n const item = this.storage.getItem(this.key);\r\n\r\n if (item === null)\r\n {\r\n return null;\r\n }\r\n try\r\n {\r\n return JSON.parse(item) as T;\r\n }\r\n catch (error)\r\n {\r\n console.error(\r\n `Parsing error in WebStorage (type: '${this.storageType}') retrieve for key: '${this.key}'`,\r\n error,\r\n );\r\n\r\n return null;\r\n }\r\n }\r\n\r\n update(data: T | null): T | null\r\n {\r\n if (isNullOrUndefined(data))\r\n {\r\n this.remove();\r\n\r\n return data;\r\n }\r\n\r\n this.save(data!);\r\n\r\n return data;\r\n }\r\n\r\n contains(): boolean\r\n {\r\n return this.storage.getItem(this.key) !== null;\r\n }\r\n\r\n remove(): boolean\r\n {\r\n const result = this.contains();\r\n\r\n this.storage.removeItem(this.key);\r\n\r\n return result;\r\n }\r\n}\r\n"],"names":["httpStatusCodes","code","name","description","flag","icon","cookies","key","constructor","this","save","data","set","JSON","stringify","path","retrieve","item","get","parse","error","update","remove","contains","undefined","exists","LocalStorage","super","SessionStorage","WebStorageBase","storage","storageType","type","localStorage","sessionStorage","jsonData","setItem","getItem","result","removeItem"],"sourceRoot":""}