<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

class CarrierAssets {

    public static function getLogo($carrier) {
        $carrier = Carriers::getCarrierCode($carrier);
        switch ($carrier) {
            case "usps":
                return "data:image/svg+xml;base64,[encoded data, 13100 characters]";
                break;
            case "ups":
                return "data:image/svg+xml;base64,[encoded data, 6996 characters]";
                break;
            case "fedex":
                return "data:image/svg+xml;base64,PHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA3OS42IDM0LjYiIHZpZXdCb3g9IjAgMCA3OS42IDM0LjYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibS0xMy41LTdoOTl2NDguMmgtOTl6IiBmaWxsPSJub25lIi8+PGcgZmlsbD0iI2Y2MCI+PHBhdGggZD0ibTc5LjEgMjUuM2MwLTEuMi0uOS0yLjEtMi4xLTIuMXMtMi4xLjktMi4xIDIuMS45IDIuMSAyLjEgMi4xYzEuMyAwIDIuMS0uOSAyLjEtMi4xem0tMi42LjF2MS40aC0uNHYtMy4xaDEuMWMuNyAwIDEgLjMgMSAuOCAwIC4zLS4yLjYtLjUuNy4zIDAgLjQuMy40LjcgMCAuMy4xLjcuMi45aC0uNWMtLjEtLjMtLjEtLjctLjItMXMtLjItLjQtLjUtLjR6bS42LS40Yy40IDAgLjYtLjIuNi0uNHMtLjEtLjQtLjYtLjRoLS42di44em0tMi42LjNjMC0xLjUgMS4yLTIuNSAyLjYtMi41czIuNiAxIDIuNiAyLjUtMS4yIDIuNS0yLjYgMi41LTIuNi0xLTIuNi0yLjV6Ii8+PHBhdGggZD0ibTY1LjYgMjcuOC0yLjktMy4zLTIuOSAzLjNoLTYuMmw2LTYuNy02LTYuOGg2LjRsMi45IDMuMyAyLjktMy4zaDYuMWwtNiA2LjcgNi4xIDYuOHoiLz48cGF0aCBkPSJtNDEuOCAyNy44di0yMS4zaDExLjh2NC44aC02Ljh2M2g2Ljh2NC42aC02Ljh2NC4yaDYuOHY0Ljd6Ii8+PC9nPjxwYXRoIGQ9Im0zNi44IDYuNXY4LjdoLS4xYy0xLjEtMS4zLTIuNS0xLjctNC4xLTEuNy0zLjMgMC01LjcgMi4yLTYuNiA1LjItMS0zLjItMy41LTUuMi03LjMtNS4yLTMuMSAwLTUuNSAxLjQtNi44IDMuNnYtMi44aC02LjJ2LTNoNi45di00LjhoLTEyLjZ2MjEuM2g1Ljd2LTguOWg1LjZjLS4yLjYtLjMgMS4zLS4zIDIuMSAwIDQuNCAzLjQgNy42IDcuNyA3LjYgMy42IDAgNi0xLjcgNy4zLTQuOGgtNC44Yy0uNy45LTEuMiAxLjItMi41IDEuMi0xLjUgMC0yLjgtMS4zLTIuOC0yLjloOS45Yy40IDMuNSAzLjIgNi42IDYuOSA2LjYgMS42IDAgMy4xLS44IDQtMi4yaC4xdjEuNGg1di0yMS40em0tMjAuNyAxMi40Yy4zLTEuNCAxLjQtMi4yIDIuNy0yLjIgMS40IDAgMi40LjkgMi43IDIuMnptMTcuNyA1LjdjLTEuOCAwLTMtMS43LTMtMy41IDAtMS45IDEtMy43IDMtMy43IDIuMSAwIDIuOSAxLjggMi45IDMuNyAwIDEuOC0uOSAzLjUtMi45IDMuNXoiIGZpbGw9IiM0NjE0OGMiLz48L3N2Zz4=";
                break;
            case "helena_express":
                return "data:image/svg+xml;base64,[encoded data, 11964 characters]";
                break;
        }
        return "";
    }

    public static function getAttribution($carrier) {
        $carrier = Carriers::getCarrierCode($carrier);
        switch ($carrier) {
            case "usps":
                return "Information provided by www.usps.com.";
                break;
            case "ups":
                return "UPS, the UPS brand mark, and the Color Brown are trademarks of United Parcel Service of America, Inc. All Rights Reserved.";
                break;
            case "fedex":
                return "";
                break;
            case "helena_express":
                return "Tracking provided by Helena Express.";
                break;
        }
        return "";
    }

}
